diff --git a/Cargo.lock b/Cargo.lock index 67212d1..878f6f8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -610,12 +610,6 @@ dependencies = [ "version_check", ] -[[package]] -name = "core-foundation-sys" -version = "0.8.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" - [[package]] name = "cpufeatures" version = "0.2.17" @@ -643,25 +637,6 @@ dependencies = [ "crossbeam-utils", ] -[[package]] -name = "crossbeam-deque" -version = "0.8.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9dd111b7b7f7d55b72c0a6ae361660ee5853c9af73f70c3c2ef6858b950e2e51" -dependencies = [ - "crossbeam-epoch", - "crossbeam-utils", -] - -[[package]] -name = "crossbeam-epoch" -version = "0.9.18" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b82ac4a3c2ca9c3460964f020e1402edd5753411d7737aa39c3714ad1b5420e" -dependencies = [ - "crossbeam-utils", -] - [[package]] name = "crossbeam-utils" version = "0.8.21" @@ -1084,9 +1059,9 @@ checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" [[package]] name = "libc" -version = "0.2.169" +version = "0.2.174" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b5aba8db14291edd000dfcc4d620c7ebfb122c613afb886ca8803fa4e128a20a" +checksum = "1171693293099992e19cddea4e8b849964e9846f4acee11b3948bcc337be8776" [[package]] name = "linux-raw-sys" @@ -1293,6 +1268,25 @@ dependencies = [ "syn", ] +[[package]] +name = "objc2-core-foundation" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1c10c2894a6fed806ade6027bcd50662746363a9589d3ec9d9bef30a4e4bc166" +dependencies = [ + "bitflags", +] + +[[package]] +name = "objc2-io-kit" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "71c1c64d6120e51cd86033f67176b1cb66780c2efe34dec55176f77befd93c0a" +dependencies = [ + "libc", + "objc2-core-foundation", +] + [[package]] name = "object" version = "0.36.7" @@ -1456,26 +1450,6 @@ dependencies = [ "getrandom", ] -[[package]] -name = "rayon" -version = "1.10.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b418a60154510ca1a002a752ca9714984e21e4241e804d32555251faf8b78ffa" -dependencies = [ - "either", - "rayon-core", -] - -[[package]] -name = "rayon-core" -version = "1.12.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1465873a3dfdaa8ae7cb14b4383657caab0b3e8a0aa9ae8e04b044854c8dfce2" -dependencies = [ - "crossbeam-deque", - "crossbeam-utils", -] - [[package]] name = "redox_syscall" version = "0.5.8" @@ -1787,15 +1761,15 @@ dependencies = [ [[package]] name = "sysinfo" -version = "0.33.1" +version = "0.36.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4fc858248ea01b66f19d8e8a6d55f41deaf91e9d495246fd01368d99935c6c01" +checksum = "252800745060e7b9ffb7b2badbd8b31cfa4aa2e61af879d0a3bf2a317c20217d" dependencies = [ - "core-foundation-sys", "libc", "memchr", "ntapi", - "rayon", + "objc2-core-foundation", + "objc2-io-kit", "windows", ] @@ -2154,31 +2128,55 @@ checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" [[package]] name = "windows" -version = "0.57.0" +version = "0.61.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "12342cb4d8e3b046f3d80effd474a7a02447231330ef77d71daa6fbc40681143" +checksum = "9babd3a767a4c1aef6900409f85f5d53ce2544ccdfaa86dad48c91782c6d6893" +dependencies = [ + "windows-collections", + "windows-core", + "windows-future", + "windows-link", + "windows-numerics", +] + +[[package]] +name = "windows-collections" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3beeceb5e5cfd9eb1d76b381630e82c4241ccd0d27f1a39ed41b2760b255c5e8" dependencies = [ "windows-core", - "windows-targets", ] [[package]] name = "windows-core" -version = "0.57.0" +version = "0.61.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d2ed2439a290666cd67ecce2b0ffaad89c2a56b976b736e6ece670297897832d" +checksum = "c0fdd3ddb90610c7638aa2b3a3ab2904fb9e5cdbecc643ddb3647212781c4ae3" dependencies = [ "windows-implement", "windows-interface", + "windows-link", "windows-result", - "windows-targets", + "windows-strings", +] + +[[package]] +name = "windows-future" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc6a41e98427b19fe4b73c550f060b59fa592d7d686537eebf9385621bfbad8e" +dependencies = [ + "windows-core", + "windows-link", + "windows-threading", ] [[package]] name = "windows-implement" -version = "0.57.0" +version = "0.60.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9107ddc059d5b6fbfbffdfa7a7fe3e22a226def0b2608f72e9d552763d3e1ad7" +checksum = "a47fddd13af08290e67f4acabf4b459f647552718f683a7b415d290ac744a836" dependencies = [ "proc-macro2", "quote", @@ -2187,9 +2185,9 @@ dependencies = [ [[package]] name = "windows-interface" -version = "0.57.0" +version = "0.59.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "29bee4b38ea3cde66011baa44dba677c432a78593e202392d1e9070cf2a7fca7" +checksum = "bd9211b69f8dcdfa817bfd14bf1c97c9188afa36f4750130fcdf3f400eca9fa8" dependencies = [ "proc-macro2", "quote", @@ -2197,12 +2195,37 @@ dependencies = [ ] [[package]] -name = "windows-result" -version = "0.1.2" +name = "windows-link" +version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5e383302e8ec8515204254685643de10811af0ed97ea37210dc26fb0032647f8" +checksum = "5e6ad25900d524eaabdbbb96d20b4311e1e7ae1699af4fb28c17ae66c80d798a" + +[[package]] +name = "windows-numerics" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9150af68066c4c5c07ddc0ce30421554771e528bde427614c61038bc2c92c2b1" dependencies = [ - "windows-targets", + "windows-core", + "windows-link", +] + +[[package]] +name = "windows-result" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56f42bd332cc6c8eac5af113fc0c1fd6a8fd2aa08a0119358686e5160d0586c6" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-strings" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56e6c93f3a0c3b36176cb1327a4958a0353d5d166c2a35cb268ace15e91d3b57" +dependencies = [ + "windows-link", ] [[package]] @@ -2239,6 +2262,15 @@ dependencies = [ "windows_x86_64_msvc", ] +[[package]] +name = "windows-threading" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b66463ad2e0ea3bbf808b7f1d371311c80e115c0b71d60efc142cafbcfb057a6" +dependencies = [ + "windows-link", +] + [[package]] name = "windows_aarch64_gnullvm" version = "0.52.6" diff --git a/config.toml b/config.toml index dde060f..a8df0f7 100644 --- a/config.toml +++ b/config.toml @@ -1,7 +1,7 @@ [Config] -ingress_ifindex = "enp1s0f0" # nic name -egress_ifindex = "enp1s0f1" # nic name -management_ifindex = "wlan0" # nic name +ingress_ifindex = "enp6s18" # nic name +egress_ifindex = "enp6s19" # nic name +management_ifindex = "enp6s19" # nic name alert_path = "/tmp/alert" http_server_bind_port = 8080 # port refresh_interval = 1 # seconds diff --git a/net-guardia-egress-ebpf/src/action/statistics.rs b/net-guardia-egress-ebpf/src/action/statistics.rs index ab58633..3573349 100644 --- a/net-guardia-egress-ebpf/src/action/statistics.rs +++ b/net-guardia-egress-ebpf/src/action/statistics.rs @@ -78,13 +78,15 @@ unsafe fn ipv4_update_flow_stats( event: &IPv4Event, now: u64, ) { - if let Some(status) = map.get_ptr_mut(key) { - (*status)[0] += event.len as u64; - (*status)[1] += 1; - (*status)[2] = now; - } else { - let new_stats = [event.len as u64, 1, now]; - let _ = map.insert(key, &new_stats, 0); + unsafe { + if let Some(status) = map.get_ptr_mut(key) { + (*status)[0] += event.len as u64; + (*status)[1] += 1; + (*status)[2] = now; + } else { + let new_stats = [event.len as u64, 1, now]; + let _ = map.insert(key, &new_stats, 0); + } } } @@ -95,12 +97,14 @@ unsafe fn ipv6_update_flow_status( event: &IPv6Event, now: u64, ) { - if let Some(status) = map.get_ptr_mut(key) { - (*status)[0] += event.len as u64; - (*status)[1] += 1; - (*status)[2] = now; - } else { - let new_stats = [event.len as u64, 1, now]; - let _ = map.insert(key, &new_stats, 0); + unsafe { + if let Some(status) = map.get_ptr_mut(key) { + (*status)[0] += event.len as u64; + (*status)[1] += 1; + (*status)[2] = now; + } else { + let new_stats = [event.len as u64, 1, now]; + let _ = map.insert(key, &new_stats, 0); + } } } diff --git a/net-guardia-egress-ebpf/src/main.rs b/net-guardia-egress-ebpf/src/main.rs index 6db113c..b7b3213 100644 --- a/net-guardia-egress-ebpf/src/main.rs +++ b/net-guardia-egress-ebpf/src/main.rs @@ -26,16 +26,18 @@ pub fn net_guardia(ctx: XdpContext) -> u32 { } unsafe fn parsing(ctx: XdpContext) -> Result { - let start = ctx.data(); - let end = ctx.data_end(); - let event = parsing::parse_packet(start, end)?; - let ptr = PARSED_PACKET.get_ptr_mut(0).ok_or(())?; - let parsed_packet = ptr.as_mut().ok_or(())?; - *parsed_packet = event; - if PROGRAM_ARRAY.tail_call(&ctx, 0).is_err() { - error!(&ctx, "Tail call failed"); + unsafe { + let start = ctx.data(); + let end = ctx.data_end(); + let event = parsing::parse_packet(start, end)?; + let ptr = PARSED_PACKET.get_ptr_mut(0).ok_or(())?; + let parsed_packet = ptr.as_mut().ok_or(())?; + *parsed_packet = event; + if PROGRAM_ARRAY.tail_call(&ctx, 0).is_err() { + error!(&ctx, "Tail call failed"); + } + Err(()) } - Err(()) } #[xdp] @@ -47,22 +49,25 @@ pub fn statistics(ctx: XdpContext) -> u32 { } unsafe fn try_statistics(_: XdpContext) -> Result { - let ptr = PARSED_PACKET.get_ptr(0).ok_or(())?; - let parsed_packet = ptr.read(); - match parsed_packet.eth_type { - EtherType::Ipv4 => { - let event = parsed_packet.into_ipv4_event(); - statistics::ipv4_update_stats(&event); + unsafe { + let ptr = PARSED_PACKET.get_ptr(0).ok_or(())?; + let parsed_packet = ptr.read(); + match parsed_packet.eth_type { + EtherType::Ipv4 => { + let event = parsed_packet.into_ipv4_event(); + statistics::ipv4_update_stats(&event); + } + EtherType::Ipv6 => { + let event = parsed_packet.into_ipv6_event(); + statistics::ipv6_update_stats(&event); + } + _ => Err(())?, } - EtherType::Ipv6 => { - let event = parsed_packet.into_ipv6_event(); - statistics::ipv6_update_stats(&event); - } - _ => Err(())?, + Ok(xdp_action::XDP_PASS) } - Ok(xdp_action::XDP_PASS) } +#[cfg(not(test))] #[panic_handler] fn panic(_info: &core::panic::PanicInfo) -> ! { unsafe { core::hint::unreachable_unchecked() } diff --git a/net-guardia-ingress-ebpf/src/action/statistics.rs b/net-guardia-ingress-ebpf/src/action/statistics.rs index 1504643..f96ba02 100644 --- a/net-guardia-ingress-ebpf/src/action/statistics.rs +++ b/net-guardia-ingress-ebpf/src/action/statistics.rs @@ -78,13 +78,15 @@ unsafe fn ipv4_update_flow_stats( event: &IPv4Event, now: u64, ) { - if let Some(status) = map.get_ptr_mut(key) { - (*status)[0] += event.len as u64; - (*status)[1] += 1; - (*status)[2] = now; - } else { - let new_stats = [event.len as u64, 1, now]; - let _ = map.insert(key, &new_stats, 0); + unsafe { + if let Some(status) = map.get_ptr_mut(key) { + (*status)[0] += event.len as u64; + (*status)[1] += 1; + (*status)[2] = now; + } else { + let new_stats = [event.len as u64, 1, now]; + let _ = map.insert(key, &new_stats, 0); + } } } @@ -95,12 +97,14 @@ unsafe fn ipv6_update_flow_status( event: &IPv6Event, now: u64, ) { - if let Some(status) = map.get_ptr_mut(key) { - (*status)[0] += event.len as u64; - (*status)[1] += 1; - (*status)[2] = now; - } else { - let new_stats = [event.len as u64, 1, now]; - let _ = map.insert(key, &new_stats, 0); + unsafe { + if let Some(status) = map.get_ptr_mut(key) { + (*status)[0] += event.len as u64; + (*status)[1] += 1; + (*status)[2] = now; + } else { + let new_stats = [event.len as u64, 1, now]; + let _ = map.insert(key, &new_stats, 0); + } } } diff --git a/net-guardia-ingress-ebpf/src/main.rs b/net-guardia-ingress-ebpf/src/main.rs index dc8be69..0601f94 100644 --- a/net-guardia-ingress-ebpf/src/main.rs +++ b/net-guardia-ingress-ebpf/src/main.rs @@ -26,16 +26,18 @@ pub fn net_guardia(ctx: XdpContext) -> u32 { } unsafe fn parsing(ctx: XdpContext) -> Result { - let start = ctx.data(); - let end = ctx.data_end(); - let event = parsing::parse_packet(start, end)?; - let ptr = PARSED_PACKET.get_ptr_mut(0).ok_or(())?; - let parsed_packet = ptr.as_mut().ok_or(())?; - *parsed_packet = event; - if PROGRAM_ARRAY.tail_call(&ctx, 0).is_err() { - error!(&ctx, "Tail call failed"); + unsafe { + let start = ctx.data(); + let end = ctx.data_end(); + let event = parsing::parse_packet(start, end)?; + let ptr = PARSED_PACKET.get_ptr_mut(0).ok_or(())?; + let parsed_packet = ptr.as_mut().ok_or(())?; + *parsed_packet = event; + if PROGRAM_ARRAY.tail_call(&ctx, 0).is_err() { + error!(&ctx, "Tail call failed"); + } + Err(()) } - Err(()) } #[xdp] @@ -47,33 +49,35 @@ pub fn access_control(ctx: XdpContext) -> u32 { } unsafe fn try_access_control(ctx: XdpContext) -> Result { - let ptr = PARSED_PACKET.get_ptr(0).ok_or(())?; - let parsed_packet = ptr.read(); - match parsed_packet.eth_type { - EtherType::Ipv4 => { - let event = parsed_packet.into_ipv4_event(); - if access_control::ipv4_is_whitelisted(&event) { - return Ok(xdp_action::XDP_PASS); + unsafe { + let ptr = PARSED_PACKET.get_ptr(0).ok_or(())?; + let parsed_packet = ptr.read(); + match parsed_packet.eth_type { + EtherType::Ipv4 => { + let event = parsed_packet.into_ipv4_event(); + if access_control::ipv4_is_whitelisted(&event) { + return Ok(xdp_action::XDP_PASS); + } + if access_control::ipv4_is_blacklisted(&event) { + return Ok(xdp_action::XDP_DROP); + } } - if access_control::ipv4_is_blacklisted(&event) { - return Ok(xdp_action::XDP_DROP); + EtherType::Ipv6 => { + let event = parsed_packet.into_ipv6_event(); + if access_control::ipv6_is_whitelisted(&event) { + return Ok(xdp_action::XDP_PASS); + } + if access_control::ipv6_is_blacklisted(&event) { + return Ok(xdp_action::XDP_DROP); + } } + _ => Err(())?, } - EtherType::Ipv6 => { - let event = parsed_packet.into_ipv6_event(); - if access_control::ipv6_is_whitelisted(&event) { - return Ok(xdp_action::XDP_PASS); - } - if access_control::ipv6_is_blacklisted(&event) { - return Ok(xdp_action::XDP_DROP); - } + if PROGRAM_ARRAY.tail_call(&ctx, 1).is_err() { + error!(&ctx, "Tail call failed"); } - _ => Err(())?, + Err(()) } - if PROGRAM_ARRAY.tail_call(&ctx, 1).is_err() { - error!(&ctx, "Tail call failed"); - } - Err(()) } #[xdp] @@ -85,29 +89,31 @@ pub fn service(ctx: XdpContext) -> u32 { } unsafe fn try_service(ctx: XdpContext) -> Result { - let start = ctx.data(); - let end = ctx.data_end(); - let ptr = PARSED_PACKET.get_ptr(0).ok_or(())?; - let parsed_packet = ptr.read(); - match parsed_packet.eth_type { - EtherType::Ipv4 => { - let event = parsed_packet.into_ipv4_event(); - if service::ipv4_service_rule_violation(start, end, &event) { - return Ok(xdp_action::XDP_DROP); + unsafe { + let start = ctx.data(); + let end = ctx.data_end(); + let ptr = PARSED_PACKET.get_ptr(0).ok_or(())?; + let parsed_packet = ptr.read(); + match parsed_packet.eth_type { + EtherType::Ipv4 => { + let event = parsed_packet.into_ipv4_event(); + if service::ipv4_service_rule_violation(start, end, &event) { + return Ok(xdp_action::XDP_DROP); + } } - } - EtherType::Ipv6 => { - let event = parsed_packet.into_ipv6_event(); - if service::ipv6_service_rule_violation(start, end, &event) { - return Ok(xdp_action::XDP_DROP); + EtherType::Ipv6 => { + let event = parsed_packet.into_ipv6_event(); + if service::ipv6_service_rule_violation(start, end, &event) { + return Ok(xdp_action::XDP_DROP); + } } + _ => Err(())?, } - _ => Err(())?, + if PROGRAM_ARRAY.tail_call(&ctx, 3).is_err() { + error!(&ctx, "Tail call failed"); + } + Err(()) } - if PROGRAM_ARRAY.tail_call(&ctx, 3).is_err() { - error!(&ctx, "Tail call failed"); - } - Err(()) } // #[xdp] @@ -151,7 +157,7 @@ pub fn sampling(ctx: XdpContext) -> u32 { } unsafe fn try_sampling(ctx: XdpContext) -> Result { - if PROGRAM_ARRAY.tail_call(&ctx, 4).is_err() { + if unsafe { PROGRAM_ARRAY.tail_call(&ctx, 4).is_err() } { error!(&ctx, "Tail call failed"); } Err(()) @@ -166,22 +172,25 @@ pub fn statistics(ctx: XdpContext) -> u32 { } unsafe fn try_statistics(_: XdpContext) -> Result { - let ptr = PARSED_PACKET.get_ptr(0).ok_or(())?; - let parsed_packet = ptr.read(); - match parsed_packet.eth_type { - EtherType::Ipv4 => { - let event = parsed_packet.into_ipv4_event(); - statistics::ipv4_update_stats(&event); + unsafe { + let ptr = PARSED_PACKET.get_ptr(0).ok_or(())?; + let parsed_packet = ptr.read(); + match parsed_packet.eth_type { + EtherType::Ipv4 => { + let event = parsed_packet.into_ipv4_event(); + statistics::ipv4_update_stats(&event); + } + EtherType::Ipv6 => { + let event = parsed_packet.into_ipv6_event(); + statistics::ipv6_update_stats(&event); + } + _ => Err(())?, } - EtherType::Ipv6 => { - let event = parsed_packet.into_ipv6_event(); - statistics::ipv6_update_stats(&event); - } - _ => Err(())?, + Ok(xdp_action::XDP_PASS) } - Ok(xdp_action::XDP_PASS) } +#[cfg(not(test))] #[panic_handler] fn panic(_info: &core::panic::PanicInfo) -> ! { unsafe { core::hint::unreachable_unchecked() } diff --git a/net-guardia/Cargo.toml b/net-guardia/Cargo.toml index 9d43f9c..0f9cc8a 100644 --- a/net-guardia/Cargo.toml +++ b/net-guardia/Cargo.toml @@ -24,7 +24,7 @@ actix = "0.13.5" mime_guess = "2.0.5" actix-web-actors = "4.3.0" serde_json = "1.0.133" -sysinfo = "0.33.0" +sysinfo = "0.36.1" [build-dependencies] cargo_metadata = { workspace = true } diff --git a/net-guardia/src/core/health.rs b/net-guardia/src/core/health.rs new file mode 100644 index 0000000..05f0c4f --- /dev/null +++ b/net-guardia/src/core/health.rs @@ -0,0 +1,423 @@ +use crate::core::config_manager::ConfigManager; +use serde::Serialize; +// use std::collections::HashMap; +use std::sync::OnceLock; +use std::time::Duration; +use sysinfo::{Components, Networks, System}; +use tokio::sync::{broadcast, mpsc, RwLock, RwLockReadGuard, RwLockWriteGuard}; +use tokio::time::interval; +use tracing::{error, info, warn}; + +static SYSTEM_HEALTH_INSTANCE: OnceLock> = OnceLock::new(); + +pub struct SystemHealth { + system: System, + networks: Networks, + components: Components, + broadcast_tx: broadcast::Sender, + shutdown_tx: mpsc::UnboundedSender<()>, + ingress_interface: String, + egress_interface: String, + management_interface: String, +} + +#[derive(Debug, Clone, Serialize)] +pub struct SystemHealthMetrics { + pub timestamp: u64, + pub boot_time: u64, + pub uptime_seconds: u64, + pub system_info: SystemInfo, + pub cpu_details: CpuDetails, + pub memory_usage: MemoryUsage, + pub network_stats: ConfiguredNetworkStats, + pub load_average: Option, + pub temperature: Option, +} + +#[derive(Debug, Clone, Serialize)] +pub struct SystemInfo { + pub kernel_version: Option, + pub os_name: Option, + pub os_version: Option, + pub architecture: String, + pub total_processes: usize, +} + +#[derive(Debug, Clone, Serialize)] +pub struct CpuDetails { + pub cpu_brand: String, + pub core_count: usize, + pub cpu_usage: f32, + pub cpu_frequency: u64, + pub cores: Vec, +} + +#[derive(Debug, Clone, Serialize)] +pub struct CpuCoreInfo { + pub core_id: usize, + pub usage_percent: f32, + pub frequency: u64, +} + +#[derive(Debug, Clone, Serialize)] +pub struct MemoryUsage { + pub total: u64, + pub used: u64, + pub available: u64, + pub usage_percent: f32, + pub swap_total: u64, + pub swap_used: u64, +} + +#[derive(Debug, Clone, Serialize)] +pub struct ConfiguredNetworkStats { + pub ingress: Option, + pub egress: Option, + pub management: Option, +} + +#[derive(Debug, Clone, Serialize)] +pub struct NetworkStats { + pub interface: String, + pub bytes_received: u64, + pub bytes_transmitted: u64, + pub packets_received: u64, + pub packets_transmitted: u64, + pub errors_received: u64, + pub errors_transmitted: u64, +} + +#[derive(Debug, Clone, Serialize)] +pub struct LoadAverage { + pub one_minute: f64, + pub five_minute: f64, + pub fifteen_minute: f64, +} + +#[derive(Debug, Clone, Serialize)] +pub struct SystemHealthStatus { + pub overall_healthy: bool, + pub issues: Vec, + pub warnings: Vec, +} + +impl SystemHealth { + pub async fn initialize(monitoring_interval: Duration) { + let (broadcast_tx, _) = broadcast::channel(100); + let (shutdown_tx, shutdown_rx) = mpsc::unbounded_channel(); + + let config = ConfigManager::now().await; + + let system_health = SystemHealth { + system: System::new_all(), + networks: Networks::new_with_refreshed_list(), + components: Components::new_with_refreshed_list(), + broadcast_tx: broadcast_tx.clone(), + shutdown_tx, + ingress_interface: config.ingress_ifindex.clone(), + egress_interface: config.egress_ifindex.clone(), + management_interface: config.management_ifindex.clone(), + }; + + SYSTEM_HEALTH_INSTANCE.get_or_init(|| RwLock::new(system_health)); + + let ingress_interface = config.ingress_ifindex; + let egress_interface = config.egress_ifindex; + let management_interface = config.management_ifindex; + + tokio::spawn(async move { + Self::monitoring_loop( + broadcast_tx, + shutdown_rx, + monitoring_interval, + ingress_interface, + egress_interface, + management_interface, + ).await; + }); + + info!("System health monitoring initialized with configured interfaces"); + } + + async fn monitoring_loop( + broadcast_tx: broadcast::Sender, + mut shutdown_rx: mpsc::UnboundedReceiver<()>, + monitoring_interval: Duration, + ingress_interface: String, + egress_interface: String, + management_interface: String, + ) { + let mut system = System::new_all(); + let mut networks = Networks::new_with_refreshed_list(); + let mut components = Components::new_with_refreshed_list(); + let mut interval_timer = interval(monitoring_interval); + + loop { + tokio::select! { + _ = shutdown_rx.recv() => { + info!("System health monitoring shutdown requested"); + break; + } + _ = interval_timer.tick() => { + system.refresh_all(); + networks.refresh(true); + components.refresh(true); + + let metrics = Self::collect_metrics( + &system, + &networks, + &components, + &ingress_interface, + &egress_interface, + &management_interface, + ); + + if broadcast_tx.receiver_count() > 0 { + if let Err(e) = broadcast_tx.send(metrics) { + error!("Failed to broadcast system health metrics: {}", e); + } + } + } + } + } + + info!("System health monitoring stopped"); + } + + pub async fn instance() -> RwLockReadGuard<'static, SystemHealth> { + let instance = SYSTEM_HEALTH_INSTANCE.get().unwrap(); + instance.read().await + } + + pub async fn instance_mut() -> RwLockWriteGuard<'static, SystemHealth> { + let instance = SYSTEM_HEALTH_INSTANCE.get().unwrap(); + instance.write().await + } + + fn collect_metrics( + system: &System, + networks: &Networks, + components: &Components, + ingress_interface: &str, + egress_interface: &str, + management_interface: &str, + ) -> SystemHealthMetrics { + let timestamp = std::time::SystemTime::now() + .duration_since(std::time::UNIX_EPOCH) + .unwrap() + .as_secs(); + + let boot_time = System::boot_time(); + let uptime_seconds = timestamp - boot_time; + + let system_info = Self::collect_system_info(system); + + let cpu_details = Self::collect_cpu_details(system); + + let memory_usage = MemoryUsage { + total: system.total_memory(), + used: system.used_memory(), + available: system.available_memory(), + usage_percent: (system.used_memory() as f32 / system.total_memory() as f32) * 100.0, + swap_total: system.total_swap(), + swap_used: system.used_swap(), + }; + + let network_stats = Self::collect_configured_network_stats( + networks, + ingress_interface, + egress_interface, + management_interface, + ); + + let load_average = System::load_average(); + let load_average = if load_average.one != 0.0 || load_average.five != 0.0 || load_average.fifteen != 0.0 { + Some(LoadAverage { + one_minute: load_average.one, + five_minute: load_average.five, + fifteen_minute: load_average.fifteen, + }) + } else { + None + }; + + let temperature = components + .iter() + .find(|component| { + let label = component.label().to_lowercase(); + label.contains("cpu") || label.contains("core") || label.contains("processor") + }) + .and_then(|component| component.temperature()); + + SystemHealthMetrics { + timestamp, + boot_time, + uptime_seconds, + system_info, + cpu_details, + memory_usage, + network_stats, + load_average, + temperature, + } + } + + fn collect_system_info(system: &System) -> SystemInfo { + SystemInfo { + kernel_version: System::kernel_version(), + os_name: System::name(), + os_version: System::os_version(), + architecture: std::env::consts::ARCH.to_string(), + total_processes: system.processes().len(), + } + } + + fn collect_cpu_details(system: &System) -> CpuDetails { + let cpus = system.cpus(); + + let cpu_usage = cpus.iter().map(|cpu| cpu.cpu_usage()).sum::() + / cpus.len() as f32; + + let cores: Vec = cpus + .iter() + .enumerate() + .map(|(index, cpu)| CpuCoreInfo { + core_id: index, + usage_percent: cpu.cpu_usage(), + frequency: cpu.frequency(), + }) + .collect(); + + let cpu_brand = cpus + .first() + .map(|cpu| cpu.brand().to_string()) + .unwrap_or_else(|| "Unknown".to_string()); + + let avg_frequency = if !cores.is_empty() { + cores.iter().map(|core| core.frequency).sum::() / cores.len() as u64 + } else { + 0 + }; + + CpuDetails { + cpu_brand, + core_count: cores.len(), + cpu_usage, + cpu_frequency: avg_frequency, + cores, + } + } + + fn collect_configured_network_stats( + networks: &Networks, + ingress_interface: &str, + egress_interface: &str, + management_interface: &str, + ) -> ConfiguredNetworkStats { + let create_network_stats = |interface_name: &str| -> Option { + networks.get(interface_name).map(|network| NetworkStats { + interface: interface_name.to_string(), + bytes_received: network.total_received(), + bytes_transmitted: network.total_transmitted(), + packets_received: network.total_packets_received(), + packets_transmitted: network.total_packets_transmitted(), + errors_received: network.total_errors_on_received(), + errors_transmitted: network.total_errors_on_transmitted(), + }) + }; + + let ingress = create_network_stats(ingress_interface); + let egress = create_network_stats(egress_interface); + let management = create_network_stats(management_interface); + + if ingress.is_none() { + warn!("Ingress interface '{}' not found", ingress_interface); + } + if egress.is_none() { + warn!("Egress interface '{}' not found", egress_interface); + } + if management.is_none() { + warn!("Management interface '{}' not found", management_interface); + } + + ConfiguredNetworkStats { + ingress, + egress, + management, + } + } + + pub async fn get_current_metrics() -> SystemHealthMetrics { + let mut instance = Self::instance_mut().await; + instance.system.refresh_all(); + instance.networks.refresh(true); + instance.components.refresh(true); + + Self::collect_metrics( + &instance.system, + &instance.networks, + &instance.components, + &instance.ingress_interface, + &instance.egress_interface, + &instance.management_interface, + ) + } + + pub async fn subscribe_to_metrics() -> broadcast::Receiver { + let instance = Self::instance().await; + instance.broadcast_tx.subscribe() + } + + pub async fn shutdown() { + if let Ok(instance) = SYSTEM_HEALTH_INSTANCE.get().unwrap().try_read() { + let _ = instance.shutdown_tx.send(()); + } + } + + pub async fn is_system_healthy() -> SystemHealthStatus { + let metrics = Self::get_current_metrics().await; + + let mut status = SystemHealthStatus { + overall_healthy: true, + issues: Vec::new(), + warnings: Vec::new(), + }; + + if metrics.cpu_details.cpu_usage > 90.0 { + status.overall_healthy = false; + status.issues.push(format!("High CPU usage: {:.1}%", metrics.cpu_details.cpu_usage)); + } else if metrics.cpu_details.cpu_usage > 75.0 { + status.warnings.push(format!("Moderate CPU usage: {:.1}%", metrics.cpu_details.cpu_usage)); + } + + if metrics.memory_usage.usage_percent > 95.0 { + status.overall_healthy = false; + status.issues.push(format!("Critical memory usage: {:.1}%", metrics.memory_usage.usage_percent)); + } else if metrics.memory_usage.usage_percent > 80.0 { + status.warnings.push(format!("High memory usage: {:.1}%", metrics.memory_usage.usage_percent)); + } + + if let Some(temp) = metrics.temperature { + if temp > 80.0 { + status.overall_healthy = false; + status.issues.push(format!("High CPU temperature: {:.1}°C", temp)); + } else if temp > 70.0 { + status.warnings.push(format!("Elevated CPU temperature: {:.1}°C", temp)); + } + } + + if metrics.network_stats.ingress.is_none() { + status.overall_healthy = false; + status.issues.push("Ingress interface not available".to_string()); + } + if metrics.network_stats.egress.is_none() { + status.overall_healthy = false; + status.issues.push("Egress interface not available".to_string()); + } + if metrics.network_stats.management.is_none() { + status.warnings.push("Management interface not available".to_string()); + } + + status + } +} \ No newline at end of file diff --git a/net-guardia/src/core/mod.rs b/net-guardia/src/core/mod.rs index 64867db..2acb4ee 100644 --- a/net-guardia/src/core/mod.rs +++ b/net-guardia/src/core/mod.rs @@ -3,3 +3,4 @@ pub mod config_manager; pub mod control; pub mod statistics; pub mod system; +pub mod health; diff --git a/net-guardia/src/core/system.rs b/net-guardia/src/core/system.rs index 1e9a29b..e502d08 100644 --- a/net-guardia/src/core/system.rs +++ b/net-guardia/src/core/system.rs @@ -5,7 +5,7 @@ use crate::core::statistics::Statistics; use crate::utils::log_entry::ebpf::EbpfEntry; use crate::utils::log_entry::system::SystemEntry; use crate::utils::logging::Logging; -use crate::web::api::{ai, control, default, misc, statistics}; +use crate::web::api::{ai, control, default, misc, statistics, health}; use actix_web::web::route; use actix_web::{App, HttpServer}; use anyhow::Context; @@ -16,6 +16,8 @@ use std::sync::OnceLock; use sysinfo::System as SystemInfo; use tokio::sync::{RwLock, RwLockReadGuard, RwLockWriteGuard}; use tracing::{error, info, warn}; +use crate::core::health::SystemHealth; +use std::time::Duration; static SYSTEM: OnceLock> = OnceLock::new(); @@ -33,11 +35,16 @@ impl System { pub async fn initialize() -> anyhow::Result<()> { Logging::initialize().await?; info!("{}", SystemEntry::Initializing); + ConfigManager::initialization().await?; + + SystemHealth::initialize(Duration::from_secs(5)).await; + System::ebpf_initialize().await?; AI::initialize().await; Statistics::initialize().await?; Control::initialize().await?; + info!("{}", SystemEntry::InitializeComplete); Ok(()) } @@ -147,7 +154,9 @@ impl System { pub async fn run() -> anyhow::Result<()> { info!("{}", SystemEntry::Online); + Statistics::run().await; + let config = ConfigManager::now().await; HttpServer::new(|| { let cors = actix_cors::Cors::default() @@ -161,6 +170,7 @@ impl System { .service(statistics::initialize()) .service(control::initialize()) .service(misc::initialize()) + .service(health::initialize()) .default_service(route().to(default::default_route)) }) .bind(format!("0.0.0.0:{}", config.http_server_bind_port))? @@ -171,8 +181,11 @@ impl System { pub async fn terminate() -> anyhow::Result<()> { info!("{}", SystemEntry::Terminating); + AI::terminate().await; Statistics::terminate().await; + SystemHealth::shutdown().await; + info!("{}", SystemEntry::TerminateComplete); Ok(()) } diff --git a/net-guardia/src/web/api/health.rs b/net-guardia/src/web/api/health.rs new file mode 100644 index 0000000..41615ea --- /dev/null +++ b/net-guardia/src/web/api/health.rs @@ -0,0 +1,34 @@ +// src/web/api/system_health.rs +use crate::core::health::SystemHealth; +use crate::web::utils::health_websocket::SystemHealthWebSocket; +use actix_web::{get, web, HttpRequest, HttpResponse, Responder, Scope}; +use actix_web_actors::ws::start; + +pub fn initialize() -> Scope { + web::scope("/health") + .service(get_current_metrics) + .service(get_health_status) + .service(websocket_metrics) +} + +#[get("/metrics")] +async fn get_current_metrics() -> impl Responder { + let metrics = SystemHealth::get_current_metrics().await; + HttpResponse::Ok().json(metrics) +} + +#[get("/status")] +async fn get_health_status() -> impl Responder { + let status = SystemHealth::is_system_healthy().await; + HttpResponse::Ok().json(status) +} + +#[get("/websocket/system_health")] +async fn websocket_metrics(req: HttpRequest, stream: web::Payload) -> impl Responder { + let broadcast_rx = SystemHealth::subscribe_to_metrics().await; + let websocket = SystemHealthWebSocket { + handle: None, + broadcast_rx, + }; + start(websocket, &req, stream) +} \ No newline at end of file diff --git a/net-guardia/src/web/api/mod.rs b/net-guardia/src/web/api/mod.rs index debb96a..a0f8a0a 100644 --- a/net-guardia/src/web/api/mod.rs +++ b/net-guardia/src/web/api/mod.rs @@ -3,3 +3,4 @@ pub mod control; pub mod default; pub mod misc; pub mod statistics; +pub mod health; diff --git a/net-guardia/src/web/utils/health_websocket.rs b/net-guardia/src/web/utils/health_websocket.rs new file mode 100644 index 0000000..385253c --- /dev/null +++ b/net-guardia/src/web/utils/health_websocket.rs @@ -0,0 +1,61 @@ +use crate::core::health::SystemHealthMetrics; +use actix::prelude::*; +use actix_web_actors::ws; +use tokio::sync::broadcast; + +pub struct SystemHealthWebSocket { + pub handle: Option, + pub broadcast_rx: broadcast::Receiver, +} + +impl Actor for SystemHealthWebSocket { + type Context = ws::WebsocketContext; + + fn started(&mut self, ctx: &mut Self::Context) { + self.handle_metrics(ctx); + } + + fn stopping(&mut self, ctx: &mut Self::Context) -> Running { + if let Some(handle) = self.handle.take() { + ctx.cancel_future(handle); + } + Running::Stop + } +} + +impl SystemHealthWebSocket { + fn handle_metrics(&mut self, ctx: &mut ::Context) { + let mut rx = self.broadcast_rx.resubscribe(); + + let fut = async move { + match rx.recv().await { + Ok(metrics) => Some(metrics), + Err(_) => None, + } + }; + + let handle = ctx.spawn(fut.into_actor(self).map(|result, act, ctx| { + if let Some(metrics) = result { + if let Ok(json) = serde_json::to_string(&metrics) { + ctx.text(json); + } + act.handle_metrics(ctx); + } + })); + + self.handle = Some(handle); + } +} + +impl StreamHandler> for SystemHealthWebSocket { + fn handle(&mut self, msg: Result, ctx: &mut Self::Context) { + match msg { + Ok(ws::Message::Ping(msg)) => ctx.pong(&msg), + Ok(ws::Message::Pong(_)) => (), + Ok(ws::Message::Text(text)) => ctx.text(text), + Ok(ws::Message::Binary(bin)) => ctx.binary(bin), + Ok(ws::Message::Close(reason)) => ctx.close(reason), + _ => (), + } + } +} \ No newline at end of file diff --git a/net-guardia/src/web/utils/mod.rs b/net-guardia/src/web/utils/mod.rs index 1f70a29..122d0d1 100644 --- a/net-guardia/src/web/utils/mod.rs +++ b/net-guardia/src/web/utils/mod.rs @@ -1,2 +1,3 @@ pub mod alert_websocket; pub mod flow_websocket; +pub mod health_websocket; \ No newline at end of file diff --git a/net-guardia/static/web/404.html b/net-guardia/static/web/404.html new file mode 100644 index 0000000..c1b5a26 --- /dev/null +++ b/net-guardia/static/web/404.html @@ -0,0 +1 @@ +404 - 頁面未找到 | NetGuardia

404

頁面未找到

抱歉,您要訪問的頁面不存在或已被移動。
請選擇以下選項繼續使用 NetGuardia 系統。

需要幫助?

如果您認為這是一個系統錯誤,請聯繫技術支援團隊或系統管理員。

\ No newline at end of file diff --git a/net-guardia/static/web/_next/static/chunks/182-f7d7e0bcbc4935b2.js b/net-guardia/static/web/_next/static/chunks/182-f7d7e0bcbc4935b2.js new file mode 100644 index 0000000..a10c849 --- /dev/null +++ b/net-guardia/static/web/_next/static/chunks/182-f7d7e0bcbc4935b2.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[182],{181:(t,e,i)=>{"use strict";i.d(e,{E:()=>s});var n=i(4232);let s=i(2205).B?n.useLayoutEffect:n.useEffect},1026:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"useMergedRef",{enumerable:!0,get:function(){return s}});let n=i(4232);function s(t,e){let i=(0,n.useRef)(null),s=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let t=i.current;t&&(i.current=null,t());let e=s.current;e&&(s.current=null,e())}else t&&(i.current=r(t,n)),e&&(s.current=r(e,n))},[t,e])}function r(t,e){if("function"!=typeof t)return t.current=e,()=>{t.current=null};{let i=t(e);return"function"==typeof i?i:()=>t(null)}}("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},1200:(t,e,i)=>{"use strict";i.d(e,{M:()=>s});var n=i(4232);function s(t){let e=(0,n.useRef)(null);return null===e.current&&(e.current=t()),e.current}},1639:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),!function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(e,{default:function(){return w},useLinkStatus:function(){return T}});let n=i(8365),s=i(7876),r=n._(i(4232)),o=i(6658),a=i(1851),l=i(6225),u=i(8407),h=i(2696),d=i(8265),c=i(2343),p=i(8940),m=i(7469),f=i(1026);i(3724);let g=new Set;function y(t,e,i,n){if((0,a.isLocalURL)(e)){if(!n.bypassPrefetchedCheck){let s=e+"%"+i+"%"+(void 0!==n.locale?n.locale:"locale"in t?t.locale:void 0);if(g.has(s))return;g.add(s)}t.prefetch(e,i,n).catch(t=>{})}}function v(t){return"string"==typeof t?t:(0,l.formatUrl)(t)}let x=r.default.forwardRef(function(t,e){let i,n,{href:l,as:g,children:x,prefetch:b=null,passHref:T,replace:w,shallow:P,scroll:S,locale:A,onClick:M,onNavigate:E,onMouseEnter:C,onTouchStart:V,legacyBehavior:D=!1,...k}=t;i=x,D&&("string"==typeof i||"number"==typeof i)&&(i=(0,s.jsx)("a",{children:i}));let R=r.default.useContext(d.RouterContext),j=!1!==b,{href:L,as:F}=r.default.useMemo(()=>{if(!R){let t=v(l);return{href:t,as:g?v(g):t}}let[t,e]=(0,o.resolveHref)(R,l,!0);return{href:t,as:g?(0,o.resolveHref)(R,g):e||t}},[R,l,g]),O=r.default.useRef(L),B=r.default.useRef(F);D&&(n=r.default.Children.only(i));let I=D?n&&"object"==typeof n&&n.ref:e,[U,N,$]=(0,c.useIntersection)({rootMargin:"200px"}),W=r.default.useCallback(t=>{(B.current!==F||O.current!==L)&&($(),B.current=F,O.current=L),U(t)},[F,L,$,U]),_=(0,f.useMergedRef)(W,I);r.default.useEffect(()=>{R&&N&&j&&y(R,L,F,{locale:A})},[F,L,N,A,j,null==R?void 0:R.locale,R]);let Y={ref:_,onClick(t){D||"function"!=typeof M||M(t),D&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(t),R&&(t.defaultPrevented||function(t,e,i,n,s,r,o,l,u){let{nodeName:h}=t.currentTarget;if(!("A"===h.toUpperCase()&&function(t){let e=t.currentTarget.getAttribute("target");return e&&"_self"!==e||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which}(t)||t.currentTarget.hasAttribute("download"))){if(!(0,a.isLocalURL)(i)){s&&(t.preventDefault(),location.replace(i));return}t.preventDefault(),(()=>{if(u){let t=!1;if(u({preventDefault:()=>{t=!0}}),t)return}let t=null==o||o;"beforePopState"in e?e[s?"replace":"push"](i,n,{shallow:r,locale:l,scroll:t}):e[s?"replace":"push"](n||i,{scroll:t})})()}}(t,R,L,F,w,P,S,A,E))},onMouseEnter(t){D||"function"!=typeof C||C(t),D&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(t),R&&y(R,L,F,{locale:A,priority:!0,bypassPrefetchedCheck:!0})},onTouchStart:function(t){D||"function"!=typeof V||V(t),D&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(t),R&&y(R,L,F,{locale:A,priority:!0,bypassPrefetchedCheck:!0})}};if((0,u.isAbsoluteUrl)(F))Y.href=F;else if(!D||T||"a"===n.type&&!("href"in n.props)){let t=void 0!==A?A:null==R?void 0:R.locale;Y.href=(null==R?void 0:R.isLocaleDomain)&&(0,p.getDomainLocale)(F,t,null==R?void 0:R.locales,null==R?void 0:R.domainLocales)||(0,m.addBasePath)((0,h.addLocale)(F,t,null==R?void 0:R.defaultLocale))}return D?r.default.cloneElement(n,Y):(0,s.jsx)("a",{...k,...Y,children:i})}),b=(0,r.createContext)({pending:!1}),T=()=>(0,r.useContext)(b),w=x;("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},2205:(t,e,i)=>{"use strict";i.d(e,{B:()=>n});let n="undefined"!=typeof window},2343:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"useIntersection",{enumerable:!0,get:function(){return l}});let n=i(4232),s=i(4754),r="function"==typeof IntersectionObserver,o=new Map,a=[];function l(t){let{rootRef:e,rootMargin:i,disabled:l}=t,u=l||!r,[h,d]=(0,n.useState)(!1),c=(0,n.useRef)(null),p=(0,n.useCallback)(t=>{c.current=t},[]);return(0,n.useEffect)(()=>{if(r){if(u||h)return;let t=c.current;if(t&&t.tagName)return function(t,e,i){let{id:n,observer:s,elements:r}=function(t){let e,i={root:t.root||null,margin:t.rootMargin||""},n=a.find(t=>t.root===i.root&&t.margin===i.margin);if(n&&(e=o.get(n)))return e;let s=new Map;return e={id:i,observer:new IntersectionObserver(t=>{t.forEach(t=>{let e=s.get(t.target),i=t.isIntersecting||t.intersectionRatio>0;e&&i&&e(i)})},t),elements:s},a.push(i),o.set(i,e),e}(i);return r.set(t,e),s.observe(t),function(){if(r.delete(t),s.unobserve(t),0===r.size){s.disconnect(),o.delete(n);let t=a.findIndex(t=>t.root===n.root&&t.margin===n.margin);t>-1&&a.splice(t,1)}}}(t,t=>t&&d(t),{root:null==e?void 0:e.current,rootMargin:i})}else if(!h){let t=(0,s.requestIdleCallback)(()=>d(!0));return()=>(0,s.cancelIdleCallback)(t)}},[u,i,e,h,c.current]),[p,h,(0,n.useCallback)(()=>{d(!1)},[])]}("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},3724:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"errorOnce",{enumerable:!0,get:function(){return i}});let i=t=>{}},3866:(t,e,i)=>{"use strict";i.d(e,{t:()=>n});let n=(0,i(4232).createContext)(null)},3885:(t,e,i)=>{"use strict";i.d(e,{xQ:()=>r});var n=i(4232),s=i(3866);function r(t=!0){let e=(0,n.useContext)(s.t);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:o,register:a}=e,l=(0,n.useId)();(0,n.useEffect)(()=>{if(t)return a(l)},[t]);let u=(0,n.useCallback)(()=>t&&o&&o(l),[l,o,t]);return!i&&o?[!1,u]:[!0]}},5048:(t,e,i)=>{"use strict";i.d(e,{L:()=>n});let n=(0,i(4232).createContext)({})},6848:(t,e,i)=>{"use strict";let n;i.d(e,{P:()=>rE});var s=i(4232);let r=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],o=new Set(r),a=t=>180*t/Math.PI,l=t=>h(a(Math.atan2(t[1],t[0]))),u={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:l,rotateZ:l,skewX:t=>a(Math.atan(t[1])),skewY:t=>a(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},h=t=>((t%=360)<0&&(t+=360),t),d=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),c=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),p={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:d,scaleY:c,scale:t=>(d(t)+c(t))/2,rotateX:t=>h(a(Math.atan2(t[6],t[5]))),rotateY:t=>h(a(Math.atan2(-t[2],t[0]))),rotateZ:l,rotate:l,skewX:t=>a(Math.atan(t[4])),skewY:t=>a(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function m(t){return+!!t.includes("scale")}function f(t,e){let i,n;if(!t||"none"===t)return m(e);let s=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(s)i=p,n=s;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=u,n=e}if(!n)return m(e);let r=i[e],o=n[1].split(",").map(y);return"function"==typeof r?r(o):o[r]}let g=(t,e)=>{let{transform:i="none"}=getComputedStyle(t);return f(i,e)};function y(t){return parseFloat(t.trim())}let v=t=>e=>"string"==typeof e&&e.startsWith(t),x=v("--"),b=v("var(--"),T=t=>!!b(t)&&w.test(t.split("/*")[0].trim()),w=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function P({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}let S=(t,e,i)=>t+(e-t)*i;function A(t){return void 0===t||1===t}function M({scale:t,scaleX:e,scaleY:i}){return!A(t)||!A(e)||!A(i)}function E(t){return M(t)||C(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function C(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function V(t,e,i,n,s){return void 0!==s&&(t=n+s*(t-n)),n+i*(t-n)+e}function D(t,e=0,i=1,n,s){t.min=V(t.min,e,i,n,s),t.max=V(t.max,e,i,n,s)}function k(t,{x:e,y:i}){D(t.x,e.translate,e.scale,e.originPoint),D(t.y,i.translate,i.scale,i.originPoint)}function R(t,e){t.min=t.min+e,t.max=t.max+e}function j(t,e,i,n,s=.5){let r=S(t.min,t.max,s);D(t,e,i,r,n)}function L(t,e){j(t.x,e.x,e.scaleX,e.scale,e.originX),j(t.y,e.y,e.scaleY,e.scale,e.originY)}function F(t,e){return P(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}(t.getBoundingClientRect(),e))}let O=new Set(["width","height","top","left","right","bottom",...r]),B=(t,e,i)=>i>e?e:i"number"==typeof t,parse:parseFloat,transform:t=>t},U={...I,transform:t=>B(0,1,t)},N={...I,default:1},$=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),W=$("deg"),_=$("%"),Y=$("px"),z=$("vh"),H=$("vw"),X={..._,parse:t=>_.parse(t)/100,transform:t=>_.transform(100*t)},K=t=>e=>e.test(t),q=[I,Y,_,W,H,z,{test:t=>"auto"===t,parse:t=>t}],G=t=>q.find(K(t)),Z=()=>{},Q=()=>{},J=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),tt=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,te=t=>t===I||t===Y,ti=new Set(["x","y","z"]),tn=r.filter(t=>!ti.has(t)),ts={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>f(e,"x"),y:(t,{transform:e})=>f(e,"y")};ts.translateX=ts.x,ts.translateY=ts.y;let tr=t=>t,to={},ta=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],tl={value:null,addProjectionMetrics:null};function tu(t,e){let i=!1,n=!0,s={delta:0,timestamp:0,isProcessing:!1},r=()=>i=!0,o=ta.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,n=new Set,s=!1,r=!1,o=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1},l=0;function u(e){o.has(e)&&(h.schedule(e),t()),l++,e(a)}let h={schedule:(t,e=!1,r=!1)=>{let a=r&&s?i:n;return e&&o.add(t),a.has(t)||a.add(t),t},cancel:t=>{n.delete(t),o.delete(t)},process:t=>{if(a=t,s){r=!0;return}s=!0,[i,n]=[n,i],i.forEach(u),e&&tl.value&&tl.value.frameloop[e].push(l),l=0,i.clear(),s=!1,r&&(r=!1,h.process(t))}};return h}(r,e?i:void 0),t),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:h,update:d,preRender:c,render:p,postRender:m}=o,f=()=>{let r=to.useManualTiming?s.timestamp:performance.now();i=!1,to.useManualTiming||(s.delta=n?1e3/60:Math.max(Math.min(r-s.timestamp,40),1)),s.timestamp=r,s.isProcessing=!0,a.process(s),l.process(s),u.process(s),h.process(s),d.process(s),c.process(s),p.process(s),m.process(s),s.isProcessing=!1,i&&e&&(n=!1,t(f))},g=()=>{i=!0,n=!0,s.isProcessing||t(f)};return{schedule:ta.reduce((t,e)=>{let n=o[e];return t[e]=(t,e=!1,s=!1)=>(i||g(),n.schedule(t,e,s)),t},{}),cancel:t=>{for(let e=0;et.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=function(t){let e=[];return tn.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(+!!i.startsWith("scale")))}),e}(t);e.length&&(i.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{t.getValue(e)?.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}tg=!1,tf=!1,tm.forEach(t=>t.complete(ty)),tm.clear()}function tx(){tm.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(tg=!0)})}class tb{constructor(t,e,i,n,s,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=s,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(tm.add(this),tf||(tf=!0,th.read(tx),th.resolveKeyframes(tv))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;if(null===t[0]){let s=n?.get(),r=t[t.length-1];if(void 0!==s)t[0]=s;else if(i&&e){let n=i.readValue(e,r);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=r),n&&void 0===s&&n.set(t[0])}for(let e=1;e/^0[^.\s]+$/u.test(t),tw=t=>Math.round(1e5*t)/1e5,tP=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,tS=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,tA=(t,e)=>i=>!!("string"==typeof i&&tS.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),tM=(t,e,i)=>n=>{if("string"!=typeof n)return n;let[s,r,o,a]=n.match(tP);return{[t]:parseFloat(s),[e]:parseFloat(r),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},tE=t=>B(0,255,t),tC={...I,transform:t=>Math.round(tE(t))},tV={test:tA("rgb","red"),parse:tM("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+tC.transform(t)+", "+tC.transform(e)+", "+tC.transform(i)+", "+tw(U.transform(n))+")"},tD={test:tA("#"),parse:function(t){let e="",i="",n="",s="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),s=t.substring(4,5),e+=e,i+=i,n+=n,s+=s),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:s?parseInt(s,16)/255:1}},transform:tV.transform},tk={test:tA("hsl","hue"),parse:tM("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:n=1})=>"hsla("+Math.round(t)+", "+_.transform(tw(e))+", "+_.transform(tw(i))+", "+tw(U.transform(n))+")"},tR={test:t=>tV.test(t)||tD.test(t)||tk.test(t),parse:t=>tV.test(t)?tV.parse(t):tk.test(t)?tk.parse(t):tD.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?tV.transform(t):tk.transform(t),getAnimatableNone:t=>{let e=tR.parse(t);return e.alpha=0,tR.transform(e)}},tj=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,tL="number",tF="color",tO=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function tB(t){let e=t.toString(),i=[],n={color:[],number:[],var:[]},s=[],r=0,o=e.replace(tO,t=>(tR.test(t)?(n.color.push(r),s.push(tF),i.push(tR.parse(t))):t.startsWith("var(")?(n.var.push(r),s.push("var"),i.push(t)):(n.number.push(r),s.push(tL),i.push(parseFloat(t))),++r,"${}")).split("${}");return{values:i,split:o,indexes:n,types:s}}function tI(t){return tB(t).values}function tU(t){let{split:e,types:i}=tB(t),n=e.length;return t=>{let s="";for(let r=0;r"number"==typeof t?0:tR.test(t)?tR.getAnimatableNone(t):t,t$={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(tP)?.length||0)+(t.match(tj)?.length||0)>0},parse:tI,createTransformer:tU,getAnimatableNone:function(t){let e=tI(t);return tU(t)(e.map(tN))}},tW=new Set(["brightness","contrast","saturate","opacity"]);function t_(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(tP)||[];if(!n)return t;let s=i.replace(n,""),r=+!!tW.has(e);return n!==i&&(r*=100),e+"("+r+s+")"}let tY=/\b([a-z-]*)\(.*?\)/gu,tz={...t$,getAnimatableNone:t=>{let e=t.match(tY);return e?e.map(t_).join(" "):t}},tH={...I,transform:Math.round},tX={borderWidth:Y,borderTopWidth:Y,borderRightWidth:Y,borderBottomWidth:Y,borderLeftWidth:Y,borderRadius:Y,radius:Y,borderTopLeftRadius:Y,borderTopRightRadius:Y,borderBottomRightRadius:Y,borderBottomLeftRadius:Y,width:Y,maxWidth:Y,height:Y,maxHeight:Y,top:Y,right:Y,bottom:Y,left:Y,padding:Y,paddingTop:Y,paddingRight:Y,paddingBottom:Y,paddingLeft:Y,margin:Y,marginTop:Y,marginRight:Y,marginBottom:Y,marginLeft:Y,backgroundPositionX:Y,backgroundPositionY:Y,rotate:W,rotateX:W,rotateY:W,rotateZ:W,scale:N,scaleX:N,scaleY:N,scaleZ:N,skew:W,skewX:W,skewY:W,distance:Y,translateX:Y,translateY:Y,translateZ:Y,x:Y,y:Y,z:Y,perspective:Y,transformPerspective:Y,opacity:U,originX:X,originY:X,originZ:Y,zIndex:tH,fillOpacity:U,strokeOpacity:U,numOctaves:tH},tK={...tX,color:tR,backgroundColor:tR,outlineColor:tR,fill:tR,stroke:tR,borderColor:tR,borderTopColor:tR,borderRightColor:tR,borderBottomColor:tR,borderLeftColor:tR,filter:tz,WebkitFilter:tz},tq=t=>tK[t];function tG(t,e){let i=tq(t);return i!==tz&&(i=t$),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let tZ=new Set(["auto","none","0"]);class tQ extends tb{constructor(t,e,i,n,s){super(t,e,i,n,s,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}let tJ=t=>!!(t&&t.getVelocity);function t0(){n=void 0}let t1={now:()=>(void 0===n&&t1.set(tc.isProcessing||to.useManualTiming?tc.timestamp:performance.now()),n),set:t=>{n=t,queueMicrotask(t0)}};function t2(t,e){-1===t.indexOf(e)&&t.push(e)}function t5(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class t3{constructor(){this.subscriptions=[]}add(t){return t2(this.subscriptions,t),()=>t5(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](t,e,i);else for(let s=0;s!isNaN(parseFloat(t)),t4={current:void 0};class t6{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=t1.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=t1.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=t9(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new t3);let i=this.events[t].add(e);return"change"===t?()=>{i(),th.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return t4.current&&t4.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t;let e=t1.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let i=Math.min(this.updatedAt-this.prevUpdatedAt,30);return t=parseFloat(this.current)-parseFloat(this.prevFrameValue),i?1e3/i*t:0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function t8(t,e){return new t6(t,e)}let t7=[...q,tR,t$],et=t=>t7.find(K(t)),{schedule:ee}=tu(queueMicrotask,!1),ei={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},en={};for(let t in ei)en[t]={isEnabled:e=>ei[t].some(t=>!!e[t])};let es=()=>({translate:0,scale:1,origin:0,originPoint:0}),er=()=>({x:es(),y:es()}),eo=()=>({min:0,max:0}),ea=()=>({x:eo(),y:eo()});var el=i(2205);let eu={current:null},eh={current:!1},ed=new WeakMap;function ec(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function ep(t){return"string"==typeof t||Array.isArray(t)}let em=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ef=["initial",...em];function eg(t){return ec(t.animate)||ef.some(e=>ep(t[e]))}function ey(t){return!!(eg(t)||t.variants)}function ev(t){let e=[{},{}];return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function ex(t,e,i,n){if("function"==typeof e){let[s,r]=ev(n);e=e(void 0!==i?i:t.custom,s,r)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[s,r]=ev(n);e=e(void 0!==i?i:t.custom,s,r)}return e}let eb=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class eT{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,blockInitialAnimation:s,visualState:r},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=tb,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=t1.now();this.renderScheduledAtthis.bindToMotionValue(e,t)),eh.current||function(){if(eh.current=!0,el.B)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>eu.current=t.matches;t.addEventListener("change",e),e()}else eu.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||eu.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in this.projection&&this.projection.unmount(),td(this.notifyUpdate),td(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){let i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let n=o.has(t);n&&this.onBindTransform&&this.onBindTransform();let s=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&th.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{s(),i&&i(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in en){let e=en[t];if(!e)continue;let{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ea()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;ee.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=t8(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){let i=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=i&&("string"==typeof i&&(J(i)||tT(i))?i=parseFloat(i):!et(i)&&t$.test(e)&&(i=tG(t,e)),this.setBaseTarget(t,tJ(i)?i.get():i)),tJ(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let n=ex(this.props,i,this.presenceContext?.custom);n&&(e=n[t])}if(i&&void 0!==e)return e;let n=this.getBaseTargetFromProps(this.props,t);return void 0===n||tJ(n)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:n}on(t,e){return this.events[t]||(this.events[t]=new t3),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){ee.render(this.render)}}class ew extends eT{constructor(){super(...arguments),this.KeyframeResolver=tQ}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;tJ(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}let eP=(t,e)=>e&&"number"==typeof t?e.transform(t):t,eS={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},eA=r.length;function eM(t,e,i){let{style:n,vars:s,transformOrigin:a}=t,l=!1,u=!1;for(let t in e){let i=e[t];if(o.has(t)){l=!0;continue}if(x(t)){s[t]=i;continue}{let e=eP(i,tX[t]);t.startsWith("origin")?(u=!0,a[t]=e):n[t]=e}}if(!e.transform&&(l||i?n.transform=function(t,e,i){let n="",s=!0;for(let o=0;ot.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),ej={offset:"stroke-dashoffset",array:"stroke-dasharray"},eL={offset:"strokeDashoffset",array:"strokeDasharray"};function eF(t,{attrX:e,attrY:i,attrScale:n,pathLength:s,pathSpacing:r=1,pathOffset:o=0,...a},l,u,h){if(eM(t,a,u),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:d,style:c}=t;d.transform&&(c.transform=d.transform,delete d.transform),(c.transform||d.transformOrigin)&&(c.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),c.transform&&(c.transformBox=h?.transformBox??"fill-box",delete d.transformBox),void 0!==e&&(d.x=e),void 0!==i&&(d.y=i),void 0!==n&&(d.scale=n),void 0!==s&&function(t,e,i=1,n=0,s=!0){t.pathLength=1;let r=s?ej:eL;t[r.offset]=Y.transform(-n);let o=Y.transform(e),a=Y.transform(i);t[r.array]=`${o} ${a}`}(d,s,r,o,!1)}let eO=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),eB=t=>"string"==typeof t&&"svg"===t.toLowerCase();function eI(t,e,i){let n=eD(t,e,i);for(let i in t)(tJ(t[i])||tJ(e[i]))&&(n[-1!==r.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return n}class eU extends ew{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ea}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(o.has(e)){let t=tq(e);return t&&t.default||0}return e=eO.has(e)?e:eR(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return eI(t,e,i)}build(t,e,i){eF(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,n){for(let i in eE(t,e,void 0,n),e.attrs)t.setAttribute(eO.has(i)?i:eR(i),e.attrs[i])}mount(t){this.isSVGTag=eB(t.tagName),super.mount(t)}}let eN=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function e$(t){if("string"!=typeof t||t.includes("-"));else if(eN.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var eW=i(7876),e_=i(5048);let eY=(0,s.createContext)({strict:!1});var ez=i(9751);let eH=(0,s.createContext)({});function eX(t){return Array.isArray(t)?t.join(" "):t}let eK=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function eq(t,e,i){for(let n in e)tJ(e[n])||eV(n,i)||(t[n]=e[n])}let eG=()=>({...eK(),attrs:{}}),eZ=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function eQ(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||eZ.has(t)}let eJ=t=>!eQ(t);try{!function(t){"function"==typeof t&&(eJ=e=>e.startsWith("on")?!eQ(e):t(e))}(require("@emotion/is-prop-valid").default)}catch{}var e0=i(3866),e1=i(1200);function e2(t){return tJ(t)?t.get():t}let e5=t=>(e,i)=>{let n=(0,s.useContext)(eH),r=(0,s.useContext)(e0.t),o=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},i,n,s){return{latestValues:function(t,e,i,n){let s={},r=n(t,{});for(let t in r)s[t]=e2(r[t]);let{initial:o,animate:a}=t,l=eg(t),u=ey(t);e&&u&&!l&&!1!==t.inherit&&(void 0===o&&(o=e.initial),void 0===a&&(a=e.animate));let h=!!i&&!1===i.initial,d=(h=h||!1===o)?a:o;if(d&&"boolean"!=typeof d&&!ec(d)){let e=Array.isArray(d)?d:[d];for(let i=0;i({initial:e,animate:i}),[eX(e),eX(i)])}(i),m=r(i,c);if(!c&&el.B){l=0,u=0,(0,s.useContext)(eY).strict;let e=function(t){let{drag:e,layout:i}=en;if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:e?.isEnabled(t)||i?.isEnabled(t)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(d);h=e.MeasureLayout,p.visualElement=function(t,e,i,n,r){let{visualElement:o}=(0,s.useContext)(eH),a=(0,s.useContext)(eY),l=(0,s.useContext)(e0.t),u=(0,s.useContext)(ez.Q).reducedMotion,h=(0,s.useRef)(null);n=n||a.renderer,!h.current&&n&&(h.current=n(t,{visualState:e,parent:o,props:i,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:u}));let d=h.current,c=(0,s.useContext)(e7);d&&!d.projection&&r&&("html"===d.type||"svg"===d.type)&&function(t,e,i,n){let{layoutId:s,layout:r,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:h}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:s,layout:r,alwaysMeasureLayout:!!o||a&&e6(a),visualElement:t,animationType:"string"==typeof r?r:"both",initialPromotionConfig:n,crossfade:h,layoutScroll:l,layoutRoot:u})}(h.current,i,r,c);let p=(0,s.useRef)(!1);(0,s.useInsertionEffect)(()=>{d&&p.current&&d.update(i,l)});let m=i[e8],f=(0,s.useRef)(!!m&&!window.MotionHandoffIsComplete?.(m)&&window.MotionHasOptimisedAnimation?.(m));return(0,it.E)(()=>{d&&(p.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),d.scheduleRenderMicrotask(),f.current&&d.animationState&&d.animationState.animateChanges())}),(0,s.useEffect)(()=>{d&&(!f.current&&d.animationState&&d.animationState.animateChanges(),f.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(m)}),f.current=!1),d.enteringChildren=void 0)}),d}(t,m,d,n,e.ProjectionNode)}return(0,eW.jsxs)(eH.Provider,{value:p,children:[h&&p.visualElement?(0,eW.jsx)(h,{visualElement:p.visualElement,...d}):null,function(t,e,i,{latestValues:n},r,o=!1){let a=(e$(t)?function(t,e,i,n){let r=(0,s.useMemo)(()=>{let i=eG();return eF(i,e,eB(n),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};eq(e,t.style,t),r.style={...e,...r.style}}return r}:function(t,e){let i={},n=function(t,e){let i=t.style||{},n={};return eq(n,i,t),Object.assign(n,function({transformTemplate:t},e){return(0,s.useMemo)(()=>{let i=eK();return eM(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),n}(t,e);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=n,i})(e,n,r,t),l=function(t,e,i){let n={};for(let s in t)("values"!==s||"object"!=typeof t.values)&&(eJ(s)||!0===i&&eQ(s)||!e&&!eQ(s)||t.draggable&&s.startsWith("onDrag"))&&(n[s]=t[s]);return n}(e,"string"==typeof t,o),u=t!==s.Fragment?{...l,...a,ref:i}:{},{children:h}=e,d=(0,s.useMemo)(()=>tJ(h)?h.get():h,[h]);return(0,s.createElement)(t,{...u,children:d})}(t,i,(a=p.visualElement,(0,s.useCallback)(t=>{t&&m.onMount&&m.onMount(t),a&&(t?a.mount(t):a.unmount()),o&&("function"==typeof o?o(t):e6(o)&&(o.current=t))},[a])),m,c,e)]})}o.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;let a=(0,s.forwardRef)(o);return a[e4]=t,a}function ii(t,e,i){let n=t.getProps();return ex(n,e,void 0!==i?i:n.custom,t)}function is(t,e){return t?.[e]??t?.default??t}let ir=t=>Array.isArray(t);function io(t,e){let i=t.getValue("willChange");if(tJ(i)&&i.add)return i.add(e);if(!i&&to.WillChange){let i=new to.WillChange("auto");t.addValue("willChange",i),i.add(e)}}function ia(t){t.duration=0,t.type}let il=(t,e)=>i=>e(t(i)),iu=(...t)=>t.reduce(il),ih=t=>1e3*t,id=t=>t/1e3,ic={layout:0,mainThread:0,waapi:0};function ip(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function im(t,e){return i=>i>0?e:t}let ig=(t,e,i)=>{let n=t*t,s=i*(e*e-n)+n;return s<0?0:Math.sqrt(s)},iy=[tD,tV,tk],iv=t=>iy.find(e=>e.test(t));function ix(t){let e=iv(t);if(Z(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let i=e.parse(t);return e===tk&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let s=0,r=0,o=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,a=2*i-n;s=ip(a,n,t+1/3),r=ip(a,n,t),o=ip(a,n,t-1/3)}else s=r=o=i;return{red:Math.round(255*s),green:Math.round(255*r),blue:Math.round(255*o),alpha:n}}(i)),i}let ib=(t,e)=>{let i=ix(t),n=ix(e);if(!i||!n)return im(t,e);let s={...i};return t=>(s.red=ig(i.red,n.red,t),s.green=ig(i.green,n.green,t),s.blue=ig(i.blue,n.blue,t),s.alpha=S(i.alpha,n.alpha,t),tV.transform(s))},iT=new Set(["none","hidden"]);function iw(t,e){return i=>S(t,e,i)}function iP(t){return"number"==typeof t?iw:"string"==typeof t?T(t)?im:tR.test(t)?ib:iM:Array.isArray(t)?iS:"object"==typeof t?tR.test(t)?ib:iA:im}function iS(t,e){let i=[...t],n=i.length,s=t.map((t,i)=>iP(t)(t,e[i]));return t=>{for(let e=0;e{for(let e in n)i[e]=n[e](t);return i}}let iM=(t,e)=>{let i=t$.createTransformer(e),n=tB(t),s=tB(e);return n.indexes.var.length===s.indexes.var.length&&n.indexes.color.length===s.indexes.color.length&&n.indexes.number.length>=s.indexes.number.length?iT.has(t)&&!s.values.length||iT.has(e)&&!n.values.length?function(t,e){return iT.has(t)?i=>i<=0?t:e:i=>i>=1?e:t}(t,e):iu(iS(function(t,e){let i=[],n={color:0,var:0,number:0};for(let s=0;s{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>th.update(e,t),stop:()=>td(e),now:()=>tc.isProcessing?tc.timestamp:t1.now()}},iV=(t,e,i=10)=>{let n="",s=Math.max(Math.round(e/i),2);for(let e=0;e=2e4?1/0:e}function ik(t,e,i){var n,s;let r=Math.max(e-5,0);return n=i-t(r),(s=e-r)?1e3/s*n:0}let iR={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function ij(t,e){return t*Math.sqrt(1-e*e)}let iL=["duration","bounce"],iF=["stiffness","damping","mass"];function iO(t,e){return e.some(e=>void 0!==t[e])}function iB(t=iR.visualDuration,e=iR.bounce){let i,n="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:s,restDelta:r}=n,o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],l={done:!1,value:o},{stiffness:u,damping:h,mass:d,duration:c,velocity:p,isResolvedFromDuration:m}=function(t){let e={velocity:iR.velocity,stiffness:iR.stiffness,damping:iR.damping,mass:iR.mass,isResolvedFromDuration:!1,...t};if(!iO(t,iF)&&iO(t,iL))if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),n=i*i,s=2*B(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:iR.mass,stiffness:n,damping:s}}else{let i=function({duration:t=iR.duration,bounce:e=iR.bounce,velocity:i=iR.velocity,mass:n=iR.mass}){let s,r;Z(t<=ih(iR.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-e;o=B(iR.minDamping,iR.maxDamping,o),t=B(iR.minDuration,iR.maxDuration,id(t)),o<1?(s=e=>{let n=e*o,s=n*t;return .001-(n-i)/ij(e,o)*Math.exp(-s)},r=e=>{let n=e*o*t,r=Math.pow(o,2)*Math.pow(e,2)*t,a=Math.exp(-n),l=ij(Math.pow(e,2),o);return(n*i+i-r)*a*(-s(e)+.001>0?-1:1)/l}):(s=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),r=e=>t*t*(i-e)*Math.exp(-e*t));let a=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(s,r,5/t);if(t=ih(t),isNaN(a))return{stiffness:iR.stiffness,damping:iR.damping,duration:t};{let e=Math.pow(a,2)*n;return{stiffness:e,damping:2*o*Math.sqrt(n*e),duration:t}}}(t);(e={...e,...i,mass:iR.mass}).isResolvedFromDuration=!0}return e}({...n,velocity:-id(n.velocity||0)}),f=p||0,g=h/(2*Math.sqrt(u*d)),y=a-o,v=id(Math.sqrt(u/d)),x=5>Math.abs(y);if(s||(s=x?iR.restSpeed.granular:iR.restSpeed.default),r||(r=x?iR.restDelta.granular:iR.restDelta.default),g<1){let t=ij(v,g);i=e=>a-Math.exp(-g*v*e)*((f+g*v*y)/t*Math.sin(t*e)+y*Math.cos(t*e))}else if(1===g)i=t=>a-Math.exp(-v*t)*(y+(f+v*y)*t);else{let t=v*Math.sqrt(g*g-1);i=e=>{let i=Math.exp(-g*v*e),n=Math.min(t*e,300);return a-i*((f+g*v*y)*Math.sinh(n)+t*y*Math.cosh(n))/t}}let b={calculatedDuration:m&&c||null,next:t=>{let e=i(t);if(m)l.done=t>=c;else{let n=0===t?f:0;g<1&&(n=0===t?ih(f):ik(i,t,e));let o=Math.abs(a-e)<=r;l.done=Math.abs(n)<=s&&o}return l.value=l.done?a:e,l},toString:()=>{let t=Math.min(iD(b),2e4),e=iV(e=>b.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return b}function iI({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:s=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:h}){let d,c,p=t[0],m={done:!1,value:p},f=t=>void 0!==a&&tl,g=t=>void 0===a?l:void 0===l||Math.abs(a-t)-y*Math.exp(-t/n),T=t=>x+b(t),w=t=>{let e=b(t),i=T(t);m.done=Math.abs(e)<=u,m.value=m.done?x:i},P=t=>{f(m.value)&&(d=t,c=iB({keyframes:[m.value,g(m.value)],velocity:ik(T,t,m.value),damping:s,stiffness:r,restDelta:u,restSpeed:h}))};return P(0),{calculatedDuration:null,next:t=>{let e=!1;return(c||void 0!==d||(e=!0,w(t),P(t)),void 0!==d&&t>=d)?c.next(t-d):(e||w(t),m)}}}iB.applyToOptions=t=>{let e=function(t,e=100,i){let n=i({...t,keyframes:[0,e]}),s=Math.min(iD(n),2e4);return{type:"keyframes",ease:t=>n.next(s*t).value/e,duration:id(s)}}(t,100,iB);return t.ease=e.ease,t.duration=ih(e.duration),t.type="keyframes",t};let iU=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function iN(t,e,i,n){if(t===e&&i===n)return tr;let s=e=>(function(t,e,i,n,s){let r,o,a=0;do(r=iU(o=e+(i-e)/2,n,s)-t)>0?i=o:e=o;while(Math.abs(r)>1e-7&&++a<12);return o})(e,0,1,t,i);return t=>0===t||1===t?t:iU(s(t),e,n)}let i$=iN(.42,0,1,1),iW=iN(0,0,.58,1),i_=iN(.42,0,.58,1),iY=t=>Array.isArray(t)&&"number"!=typeof t[0],iz=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,iH=t=>e=>1-t(1-e),iX=iN(.33,1.53,.69,.99),iK=iH(iX),iq=iz(iK),iG=t=>(t*=2)<1?.5*iK(t):.5*(2-Math.pow(2,-10*(t-1))),iZ=t=>1-Math.sin(Math.acos(t)),iQ=iH(iZ),iJ=iz(iZ),i0=t=>Array.isArray(t)&&"number"==typeof t[0],i1={linear:tr,easeIn:i$,easeInOut:i_,easeOut:iW,circIn:iZ,circInOut:iJ,circOut:iQ,backIn:iK,backInOut:iq,backOut:iX,anticipate:iG},i2=t=>"string"==typeof t,i5=t=>{if(i0(t)){Q(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,i,n,s]=t;return iN(e,i,n,s)}return i2(t)?(Q(void 0!==i1[t],`Invalid easing type '${t}'`,"invalid-easing-type"),i1[t]):t},i3=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n};function i9({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){var s;let r=iY(n)?n.map(i5):i5(n),o={done:!1,value:e[0]},a=function(t,e,{clamp:i=!0,ease:n,mixer:s}={}){let r=t.length;if(Q(r===e.length,"Both input and output ranges must be the same length","range-length"),1===r)return()=>e[0];if(2===r&&e[0]===e[1])return()=>e[1];let o=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());let a=function(t,e,i){let n=[],s=i||to.mix||iE,r=t.length-1;for(let i=0;i{if(o&&i1)for(;nu(B(t[0],t[r-1],e)):u}((s=i&&i.length===e.length?i:function(t){let e=[0];return!function(t,e){let i=t[t.length-1];for(let n=1;n<=e;n++){let s=i3(0,e,n);t.push(S(i,1,s))}}(e,t.length-1),e}(e),s.map(e=>e*t)),e,{ease:Array.isArray(r)?r:e.map(()=>r||i_).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(o.value=a(e),o.done=e>=t,o)}}let i4=t=>null!==t;function i6(t,{repeat:e,repeatType:i="loop"},n,s=1){let r=t.filter(i4),o=s<0||e&&"loop"!==i&&e%2==1?0:r.length-1;return o&&void 0!==n?n:r[o]}let i8={decay:iI,inertia:iI,tween:i9,keyframes:i9,spring:iB};function i7(t){"string"==typeof t.type&&(t.type=i8[t.type])}class nt{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}let ne=t=>t/100;class ni extends nt{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==t1.now()&&this.tick(t1.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},ic.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;i7(t);let{type:e=i9,repeat:i=0,repeatDelay:n=0,repeatType:s,velocity:r=0}=t,{keyframes:o}=t,a=e||i9;a!==i9&&"number"!=typeof o[0]&&(this.mixKeyframes=iu(ne,iE(o[0],o[1])),o=[0,100]);let l=a({...t,keyframes:o});"mirror"===s&&(this.mirroredGenerator=a({...t,keyframes:[...o].reverse(),velocity:-r})),null===l.calculatedDuration&&(l.calculatedDuration=iD(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+n,this.totalDuration=this.resolvedDuration*(i+1)-n,this.generator=l}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let{generator:i,totalDuration:n,mixKeyframes:s,mirroredGenerator:r,resolvedDuration:o,calculatedDuration:a}=this;if(null===this.startTime)return i.next(0);let{delay:l=0,keyframes:u,repeat:h,repeatType:d,repeatDelay:c,type:p,onUpdate:m,finalKeyframe:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-n/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let g=this.currentTime-l*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?g<0:g>n;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=n);let v=this.currentTime,x=i;if(h){let t=Math.min(this.currentTime,n)/o,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,h+1))%2&&("reverse"===d?(i=1-i,c&&(i-=c/o)):"mirror"===d&&(x=r)),v=B(0,1,i)*o}let b=y?{done:!1,value:u[0]}:x.next(v);s&&(b.value=s(b.value));let{done:T}=b;y||null===a||(T=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let w=null===this.holdTime&&("finished"===this.state||"running"===this.state&&T);return w&&p!==iI&&(b.value=i6(u,this.options,f,this.speed)),m&&m(b.value),w&&this.finish(),b}then(t,e){return this.finished.then(t,e)}get duration(){return id(this.calculatedDuration)}get time(){return id(this.currentTime)}set time(t){t=ih(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(t1.now());let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=id(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=iC,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();let i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=e??i),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(t1.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,ic.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}let nn=t=>t.startsWith("--");function ns(t){let e;return()=>(void 0===e&&(e=t()),e)}let nr=ns(()=>void 0!==window.ScrollTimeline),no={},na=function(t,e){let i=ns(t);return()=>no[e]??i()}(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),nl=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,nu={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:nl([0,.65,.55,1]),circOut:nl([.55,0,1,.45]),backIn:nl([.31,.01,.66,-.59]),backOut:nl([.33,1.53,.69,.99])};function nh(t){return"function"==typeof t&&"applyToOptions"in t}class nd extends nt{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;let{element:e,name:i,keyframes:n,pseudoElement:s,allowFlatten:r=!1,finalKeyframe:o,onComplete:a}=t;this.isPseudoElement=!!s,this.allowFlatten=r,this.options=t,Q("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");let l=function({type:t,...e}){return nh(t)&&na()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:n=0,duration:s=300,repeat:r=0,repeatType:o="loop",ease:a="easeOut",times:l}={},u){let h={[e]:i};l&&(h.offset=l);let d=function t(e,i){if(e)return"function"==typeof e?na()?iV(e,i):"ease-out":i0(e)?nl(e):Array.isArray(e)?e.map(e=>t(e,i)||nu.easeOut):nu[e]}(a,s);Array.isArray(d)&&(h.easing=d),tl.value&&ic.waapi++;let c={delay:n,duration:s,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:r+1,direction:"reverse"===o?"alternate":"normal"};u&&(c.pseudoElement=u);let p=t.animate(h,c);return tl.value&&p.finished.finally(()=>{ic.waapi--}),p}(e,i,n,l,s),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){let t=i6(n,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(t):function(t,e,i){nn(e)?t.style.setProperty(e,i):t.style[e]=i}(e,i,t),this.animation.cancel()}a?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){return id(Number(this.animation.effect?.getComputedTiming?.().duration||0))}get time(){return id(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=ih(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:e}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&nr())?(this.animation.timeline=t,tr):e(this)}}let nc={anticipate:iG,backInOut:iq,circInOut:iJ};class np extends nd{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in nc&&(t.ease=nc[t.ease])}(t),i7(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:n,element:s,...r}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let o=new ni({...r,autoplay:!1}),a=ih(this.finishedTime??this.time);e.setWithVelocity(o.sample(a-10).value,o.sample(a).value,10),o.stop()}}let nm=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(t$.test(t)||"0"===t)&&!t.startsWith("url(")),nf=new Set(["opacity","clipPath","filter","transform"]),ng=ns(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class ny extends nt{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:s=0,repeatType:r="loop",keyframes:o,name:a,motionValue:l,element:u,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=t1.now();let d={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:s,repeatType:r,name:a,motionValue:l,element:u,...h},c=u?.KeyframeResolver||tb;this.keyframeResolver=new c(o,(t,e,i)=>this.onKeyframesResolved(t,e,d,!i),a,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,n){this.keyframeResolver=void 0;let{name:s,type:r,velocity:o,delay:a,isHandoff:l,onUpdate:u}=i;this.resolvedAt=t1.now(),!function(t,e,i,n){let s=t[0];if(null===s)return!1;if("display"===e||"visibility"===e)return!0;let r=t[t.length-1],o=nm(s,e),a=nm(r,e);return Z(o===a,`You are trying to animate ${e} from "${s}" to "${r}". "${o?r:s}" is not an animatable value.`,"value-not-animatable"),!!o&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},d=!l&&function(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:s,damping:r,type:o}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:a,transformTemplate:l}=e.owner.getProps();return ng()&&i&&nf.has(i)&&("transform"!==i||!l)&&!a&&!n&&"mirror"!==s&&0!==r&&"inertia"!==o}(h)?new np({...h,element:h.motionValue.owner.current}):new ni(h);d.finished.then(()=>this.notifyFinished()).catch(tr),this.pendingTimeline&&(this.stopTimeline=d.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=d}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),ty=!0,tx(),tv(),ty=!1),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let nv=t=>null!==t,nx={type:"spring",stiffness:500,damping:25,restSpeed:10},nb=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),nT={type:"keyframes",duration:.8},nw={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},nP=(t,{keyframes:e})=>e.length>2?nT:o.has(t)?t.startsWith("scale")?nb(e[1]):nx:nw,nS=(t,e,i,n={},s,r)=>o=>{let a=is(n,t)||{},l=a.delay||n.delay||0,{elapsed:u=0}=n;u-=ih(l);let h={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:r?void 0:s};!function({when:t,delay:e,delayChildren:i,staggerChildren:n,staggerDirection:s,repeat:r,repeatType:o,repeatDelay:a,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(a)&&Object.assign(h,nP(t,h)),h.duration&&(h.duration=ih(h.duration)),h.repeatDelay&&(h.repeatDelay=ih(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let d=!1;if(!1!==h.type&&(0!==h.duration||h.repeatDelay)||(ia(h),0===h.delay&&(d=!0)),(to.instantAnimations||to.skipAnimations)&&(d=!0,ia(h),h.delay=0),h.allowFlatten=!a.type&&!a.ease,d&&!r&&void 0!==e.get()){let t=function(t,{repeat:e,repeatType:i="loop"},n){let s=t.filter(nv),r=e&&"loop"!==i&&e%2==1?0:s.length-1;return s[r]}(h.keyframes,a);if(void 0!==t)return void th.update(()=>{h.onUpdate(t),h.onComplete()})}return a.isSync?new ni(h):new ny(h)};function nA(t,e,{delay:i=0,transitionOverride:n,type:s}={}){let{transition:r=t.getDefaultTransition(),transitionEnd:o,...a}=e;n&&(r=n);let l=[],u=s&&t.animationState&&t.animationState.getState()[s];for(let e in a){let n=t.getValue(e,t.latestValues[e]??null),s=a[e];if(void 0===s||u&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(u,e))continue;let o={delay:i,...is(r||{},e)},h=n.get();if(void 0!==h&&!n.isAnimating&&!Array.isArray(s)&&s===h&&!o.velocity)continue;let d=!1;if(window.MotionHandoffAnimation){let i=t.props[e8];if(i){let t=window.MotionHandoffAnimation(i,e,th);null!==t&&(o.startTime=t,d=!0)}}io(t,e),n.start(nS(e,n,s,t.shouldReduceMotion&&O.has(e)?{type:!1}:o,t,d));let c=n.animation;c&&l.push(c)}return o&&Promise.all(l).then(()=>{th.update(()=>{o&&function(t,e){let{transitionEnd:i={},transition:n={},...s}=ii(t,e)||{};for(let e in s={...s,...i}){var r;let i=ir(r=s[e])?r[r.length-1]||0:r;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,t8(i))}}(t,o)})}),l}function nM(t,e,i,n=0,s=1){let r=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),o=t.size,a=(o-1)*n;return"function"==typeof i?i(r,o):1===s?r*n:a-r*n}function nE(t,e,i={}){let n=ii(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:s=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(s=i.transitionOverride);let r=n?()=>Promise.all(nA(t,n,i)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:r=0,staggerChildren:o,staggerDirection:a}=s;return function(t,e,i=0,n=0,s=0,r=1,o){let a=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),a.push(nE(l,e,{...o,delay:i+("function"==typeof n?0:n)+nM(t.variantChildren,l,n,s,r)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}(t,e,n,r,o,a,i)}:()=>Promise.resolve(),{when:a}=s;if(!a)return Promise.all([r(),o(i.delay)]);{let[t,e]="beforeChildren"===a?[r,o]:[o,r];return t().then(()=>e())}}function nC(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;nPromise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>nE(t,e,i)));else if("string"==typeof e)n=nE(t,e,i);else{let s="function"==typeof e?ii(t,e,i.custom):e;n=Promise.all(nA(t,s,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=nj(),n=!0,s=e=>(i,n)=>{let s=ii(t,n,"exit"===e?t.presenceContext?.custom:void 0);if(s){let{transition:t,transitionEnd:e,...n}=s;i={...i,...n,...e}}return i};function r(r){let{props:o}=t,a=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;td&&y,w=!1,P=Array.isArray(g)?g:[g],S=P.reduce(s(m),{});!1===v&&(S={});let{prevResolvedValues:A={}}=f,M={...A,...S},E=e=>{T=!0,u.has(e)&&(w=!0,u.delete(e)),f.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in M){let e=S[t],i=A[t];if(h.hasOwnProperty(t))continue;let n=!1;(ir(e)&&ir(i)?nC(e,i):e===i)?void 0!==e&&u.has(t)?E(t):f.protectedKeys[t]=!0:null!=e?E(t):u.add(t)}f.prevProp=g,f.prevResolvedValues=S,f.isActive&&(h={...h,...S}),n&&t.blockInitialAnimation&&(T=!1);let C=x&&b,V=!C||w;T&&V&&l.push(...P.map(e=>{let i={type:m};if("string"==typeof e&&n&&!C&&t.manuallyAnimateOnMount&&t.parent){let{parent:n}=t,s=ii(n,e);if(n.enteringChildren&&s){let{delayChildren:e}=s.transition||{};i.delay=nM(n.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(u.size){let e={};if("boolean"!=typeof o.initial){let i=ii(t,Array.isArray(o.initial)?o.initial[0]:o.initial);i&&i.transition&&(e.transition=i.transition)}u.forEach(i=>{let n=t.getBaseTarget(i),s=t.getValue(i);s&&(s.liveStyle=!0),e[i]=n??null}),l.push({animation:e})}let m=!!l.length;return n&&(!1===o.initial||o.initial===o.animate)&&!t.manuallyAnimateOnMount&&(m=!1),n=!1,m?e(l):Promise.resolve()}return{animateChanges:r,setActive:function(e,n){if(i[e].isActive===n)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,n)),i[e].isActive=n;let s=r(e);for(let t in i)i[t].protectedKeys={};return s},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=nj(),n=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();ec(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let nO=0;class nB extends nL{constructor(){super(...arguments),this.id=nO++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}let nI={x:!1,y:!1};function nU(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}let nN=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function n$(t){return{point:{x:t.pageX,y:t.pageY}}}let nW=t=>e=>nN(e)&&t(e,n$(e));function n_(t,e,i,n){return nU(t,e,nW(i),n)}function nY(t){return t.max-t.min}function nz(t,e,i,n=.5){t.origin=n,t.originPoint=S(e.min,e.max,t.origin),t.scale=nY(i)/nY(e),t.translate=S(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function nH(t,e,i,n){nz(t.x,e.x,i.x,n?n.originX:void 0),nz(t.y,e.y,i.y,n?n.originY:void 0)}function nX(t,e,i){t.min=i.min+e.min,t.max=t.min+nY(e)}function nK(t,e,i){t.min=e.min-i.min,t.max=t.min+nY(e)}function nq(t,e,i){nK(t.x,e.x,i.x),nK(t.y,e.y,i.y)}function nG(t){return[t("x"),t("y")]}let nZ=({current:t})=>t?t.ownerDocument.defaultView:null,nQ=(t,e)=>Math.abs(t-e);class nJ{constructor(t,e,{transformPagePoint:i,contextWindow:n=window,dragSnapToOrigin:s=!1,distanceThreshold:r=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let t=n2(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,i=function(t,e){return Math.sqrt(nQ(t.x,e.x)**2+nQ(t.y,e.y)**2)}(t.offset,{x:0,y:0})>=this.distanceThreshold;if(!e&&!i)return;let{point:n}=t,{timestamp:s}=tc;this.history.push({...n,timestamp:s});let{onStart:r,onMove:o}=this.handlers;e||(r&&r(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=n0(e,this.transformPagePoint),th.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:s}=this.handlers;if(this.dragSnapToOrigin&&s&&s(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=n2("pointercancel"===t.type?this.lastMoveEventInfo:n0(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,r),n&&n(t,r)},!nN(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=r,this.contextWindow=n||window;let o=n0(n$(t),this.transformPagePoint),{point:a}=o,{timestamp:l}=tc;this.history=[{...a,timestamp:l}];let{onSessionStart:u}=e;u&&u(t,n2(o,this.history)),this.removeListeners=iu(n_(this.contextWindow,"pointermove",this.handlePointerMove),n_(this.contextWindow,"pointerup",this.handlePointerUp),n_(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),td(this.updatePoint)}}function n0(t,e){return e?{point:e(t.point)}:t}function n1(t,e){return{x:t.x-e.x,y:t.y-e.y}}function n2({point:t},e){return{point:t,delta:n1(t,n5(e)),offset:n1(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,s=n5(t);for(;i>=0&&(n=t[i],!(s.timestamp-n.timestamp>ih(.1)));)i--;if(!n)return{x:0,y:0};let r=id(s.timestamp-n.timestamp);if(0===r)return{x:0,y:0};let o={x:(s.x-n.x)/r,y:(s.y-n.y)/r};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,.1)}}function n5(t){return t[t.length-1]}function n3(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function n9(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(n$(t).point)},onStart:(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:s}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(nI[t])return null;else return nI[t]=!0,()=>{nI[t]=!1};return nI.x||nI.y?null:(nI.x=nI.y=!0,()=>{nI.x=nI.y=!1})}(i),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),nG(t=>{let e=this.getAxisMotionValue(t).get()||0;if(_.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];n&&(e=nY(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),s&&th.postRender(()=>s(t,e)),io(this.visualElement,"transform");let{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},onMove:(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:s,onDrag:r}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&s&&s(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),r&&r(t,e)},onSessionEnd:(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},resumeAnimation:()=>nG(t=>"paused"===this.getAnimationState(t)&&this.getAxisMotionValue(t).animation?.play())},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:s,distanceThreshold:i,contextWindow:nZ(this.visualElement)})}stop(t,e){let i=t||this.latestPointerEvent,n=e||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!n||!i)return;let{velocity:r}=n;this.startAnimation(r);let{onDragEnd:o}=this.getProps();o&&th.postRender(()=>o(i,n))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!st(t,n,this.currentDirection))return;let s=this.getAxisMotionValue(t),r=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(r=function(t,{min:e,max:i},n){return void 0!==e&&ti&&(t=n?S(i,t,n.max):Math.min(t,i)),t}(r,this.constraints[t],this.elastic[t])),s.set(r)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;t&&e6(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:n,right:s}){return{x:n3(t.x,i,s),y:n3(t.y,e,n)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:n4(t,"left","right"),y:n4(t,"top","bottom")}}(e),n!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&nG(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(i.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!e6(e))return!1;let n=e.current;Q(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:s}=this.visualElement;if(!s||!s.layout)return!1;let r=function(t,e,i){let n=F(t,i),{scroll:s}=e;return s&&(R(n.x,s.offset.x),R(n.y,s.offset.y)),n}(n,s.root,this.visualElement.getTransformPagePoint()),o=(t=s.layout.layoutBox,{x:n9(t.x,r.x),y:n9(t.y,r.y)});if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=P(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:s,dragSnapToOrigin:r,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(nG(o=>{if(!st(o,e,this.currentDirection))return;let l=a&&a[o]||{};r&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...s,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return io(this.visualElement,t),i.start(nS(t,i,0,e,this.visualElement,!1))}stopAnimation(){nG(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){nG(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){nG(e=>{let{drag:i}=this.getProps();if(!st(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,s=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:r}=n.layout.layoutBox[e];s.set(t[e]-S(i,r,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!e6(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};nG(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();n[t]=function(t,e){let i=.5,n=nY(t),s=nY(e);return s>n?i=i3(e.min,e.max-n,t.min):n>s&&(i=i3(t.min,t.max-s,e.min)),B(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),nG(e=>{if(!st(e,t,null))return;let i=this.getAxisMotionValue(e),{min:s,max:r}=this.constraints[e];i.set(S(s,r,n[e]))})}addListeners(){if(!this.visualElement.current)return;n8.set(this.visualElement,this);let t=n_(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();e6(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,n=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),th.read(e);let s=nU(window,"resize",()=>this.scalePositionWithinConstraints()),r=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(nG(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{s(),t(),n(),r&&r()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:s=!1,dragElastic:r=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:s,dragElastic:r,dragMomentum:o}}}function st(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class se extends nL{constructor(t){super(t),this.removeGroupControls=tr,this.removeListeners=tr,this.controls=new n7(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tr}unmount(){this.removeGroupControls(),this.removeListeners()}}let si=t=>(e,i)=>{t&&th.postRender(()=>t(e,i))};class sn extends nL{constructor(){super(...arguments),this.removePointerDownListener=tr}onPointerDown(t){this.session=new nJ(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:nZ(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:si(t),onStart:si(e),onMove:i,onEnd:(t,e)=>{delete this.session,n&&th.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=n_(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var ss=i(3885);let sr={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function so(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let sa={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!Y.test(t))return t;else t=parseFloat(t);let i=so(t,e.target.x),n=so(t,e.target.y);return`${i}% ${n}%`}},sl=!1;class su extends s.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:s}=t;for(let t in sd)eC[t]=sd[t],x(t)&&(eC[t].isCSSVariable=!0);s&&(e.group&&e.group.add(s),i&&i.register&&n&&i.register(s),sl&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),sr.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:s}=this.props,{projection:r}=i;return r&&(r.isPresent=s,sl=!0,n||t.layoutDependency!==e||void 0===e||t.isPresent!==s?r.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?r.promote():r.relegate()||th.postRender(()=>{let t=r.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),ee.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;sl=!0,n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function sh(t){let[e,i]=(0,ss.xQ)(),n=(0,s.useContext)(e_.L);return(0,eW.jsx)(su,{...t,layoutGroup:n,switchLayoutGroup:(0,s.useContext)(e7),isPresent:e,safeToRemove:i})}let sd={borderRadius:{...sa,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:sa,borderTopRightRadius:sa,borderBottomLeftRadius:sa,borderBottomRightRadius:sa,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=t$.parse(t);if(n.length>5)return t;let s=t$.createTransformer(t),r=+("number"!=typeof n[0]),o=i.x.scale*e.x,a=i.y.scale*e.y;n[0+r]/=o,n[1+r]/=a;let l=S(o,a,.5);return"number"==typeof n[2+r]&&(n[2+r]/=l),"number"==typeof n[3+r]&&(n[3+r]/=l),s(n)}}};var sc=i(7594);function sp(t){return(0,sc.G)(t)&&"ownerSVGElement"in t}let sm=(t,e)=>t.depth-e.depth;class sf{constructor(){this.children=[],this.isDirty=!1}add(t){t2(this.children,t),this.isDirty=!0}remove(t){t5(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(sm),this.isDirty=!1,this.children.forEach(t)}}let sg=["TopLeft","TopRight","BottomLeft","BottomRight"],sy=sg.length,sv=t=>"string"==typeof t?parseFloat(t):t,sx=t=>"number"==typeof t||Y.test(t);function sb(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let sT=sP(0,.5,iQ),sw=sP(.5,.95,tr);function sP(t,e,i){return n=>ne?1:i(i3(t,e,n))}function sS(t,e){t.min=e.min,t.max=e.max}function sA(t,e){sS(t.x,e.x),sS(t.y,e.y)}function sM(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function sE(t,e,i,n,s){return t-=e,t=n+1/i*(t-n),void 0!==s&&(t=n+1/s*(t-n)),t}function sC(t,e,[i,n,s],r,o){!function(t,e=0,i=1,n=.5,s,r=t,o=t){if(_.test(e)&&(e=parseFloat(e),e=S(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=S(r.min,r.max,n);t===r&&(a-=e),t.min=sE(t.min,e,i,a,s),t.max=sE(t.max,e,i,a,s)}(t,e[i],e[n],e[s],e.scale,r,o)}let sV=["x","scaleX","originX"],sD=["y","scaleY","originY"];function sk(t,e,i,n){sC(t.x,e,sV,i?i.x:void 0,n?n.x:void 0),sC(t.y,e,sD,i?i.y:void 0,n?n.y:void 0)}function sR(t){return 0===t.translate&&1===t.scale}function sj(t){return sR(t.x)&&sR(t.y)}function sL(t,e){return t.min===e.min&&t.max===e.max}function sF(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function sO(t,e){return sF(t.x,e.x)&&sF(t.y,e.y)}function sB(t){return nY(t.x)/nY(t.y)}function sI(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class sU{constructor(){this.members=[]}add(t){t2(this.members,t),t.scheduleRender()}remove(t){if(t5(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e,i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:n}=t.options;!1===n&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let sN={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},s$=["","X","Y","Z"],sW=0;function s_(t,e,i,n){let{latestValues:s}=e;s[t]&&(i[t]=s[t],e.setStaticValue(t,0),n&&(n[t]=0))}function sY({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:s}){return class{constructor(t={},i=e?.()){this.id=sW++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,tl.value&&(sN.nodes=sN.calculatedTargetDeltas=sN.calculatedProjections=0),this.nodes.forEach(sX),this.nodes.forEach(s0),this.nodes.forEach(s1),this.nodes.forEach(sK),tl.addProjectionMetrics&&tl.addProjectionMetrics(sN)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;tthis.root.updateBlockedByResize=!1;th.read(()=>{n=window.innerWidth}),t(e,()=>{let t=window.innerWidth;t!==n&&(n=t,this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=t1.now(),n=({timestamp:s})=>{let r=s-i;r>=250&&(td(n),t(r-e))};return th.setup(n,!0),()=>td(n)}(s,250),sr.hasAnimatedSinceResize&&(sr.hasAnimatedSinceResize=!1,this.nodes.forEach(sJ)))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&s&&(i||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||s.getDefaultTransition()||s6,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!sO(this.targetLayout,n),u=!e&&i;if(this.options.layoutRoot||this.resumeFrom||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...is(r,"layout"),onPlay:o,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,u)}else e||sJ(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),td(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(s2),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let n=i.props[e8];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",th,!(t||i))}let{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&t(s)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||nY(this.snapshot.measuredBox.x)||nY(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=ea());let{target:a}=t;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(sM(this.prevProjectionDelta.x,this.projectionDelta.x),sM(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),nH(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===r&&this.treeScale.y===o&&sI(this.projectionDelta.x,this.prevProjectionDelta.x)&&sI(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a)),tl.value&&sN.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=er(),this.projectionDelta=er(),this.projectionDeltaWithTransform=er()}setAnimationOrigin(t,e=!1){let i,n=this.snapshot,s=n?n.latestValues:{},r={...this.latestValues},o=er();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=ea(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,d=!!(l&&!h&&!0===this.options.crossfade&&!this.path.some(s4));this.animationProgress=0,this.mixTargetDelta=e=>{let n=e/1e3;if(s3(o.x,t.x,n),s3(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,c,p,m,f,g;nq(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=a,g=n,s9(p.x,m.x,f.x,g),s9(p.y,m.y,f.y,g),i&&(u=this.relativeTarget,c=i,sL(u.x,c.x)&&sL(u.y,c.y))&&(this.isProjectionDirty=!1),i||(i=ea()),sA(i,this.relativeTarget)}l&&(this.animationValues=r,function(t,e,i,n,s,r){s?(t.opacity=S(0,i.opacity??1,sT(n)),t.opacityExit=S(e.opacity??1,0,sw(n))):r&&(t.opacity=S(e.opacity??1,i.opacity??1,n));for(let s=0;s{sr.hasAnimatedSinceResize=!0,ic.layout++,this.motionValue||(this.motionValue=t8(0)),this.currentAnimation=function(t,e,i){let n=tJ(t)?t:t8(t);return n.start(nS("",n,e,i)),n.animation}(this.motionValue,[0,1e3],{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{ic.layout--},onComplete:()=>{ic.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:s}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&re(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||ea();let e=nY(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=nY(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}sA(e,i),L(e,s),nH(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new sU),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let n=this.getStack();n&&n.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let n={};i.z&&s_("z",t,n,this.animationValues);for(let e=0;et.currentAnimation?.stop()),this.root.nodes.forEach(sG),this.root.sharedNodes.clear()}}}function sz(t){t.updateLayout()}function sH(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:n}=t.layout,{animationType:s}=t.options,r=e.source!==t.layout.source;"size"===s?nG(t=>{let n=r?e.measuredBox[t]:e.layoutBox[t],s=nY(n);n.min=i[t].min,n.max=n.min+s}):re(s,e.layoutBox,i)&&nG(n=>{let s=r?e.measuredBox[n]:e.layoutBox[n],o=nY(i[n]);s.max=s.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+o)});let o=er();nH(o,i,e.layoutBox);let a=er();r?nH(a,t.applyTransform(n,!0),e.measuredBox):nH(a,i,e.layoutBox);let l=!sj(o),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:s,layout:r}=n;if(s&&r){let o=ea();nq(o,e.layoutBox,s.layoutBox);let a=ea();nq(a,i,r.layoutBox),sO(o,a)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function sX(t){tl.value&&sN.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function sK(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function sq(t){t.clearSnapshot()}function sG(t){t.clearMeasurements()}function sZ(t){t.isLayoutDirty=!1}function sQ(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function sJ(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function s0(t){t.resolveTargetDelta()}function s1(t){t.calcProjection()}function s2(t){t.resetSkewAndRotation()}function s5(t){t.removeLeadSnapshot()}function s3(t,e,i){t.translate=S(e.translate,0,i),t.scale=S(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function s9(t,e,i,n){t.min=S(e.min,i.min,n),t.max=S(e.max,i.max,n)}function s4(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let s6={duration:.45,ease:[.4,0,.1,1]},s8=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),s7=s8("applewebkit/")&&!s8("chrome/")?Math.round:tr;function rt(t){t.min=s7(t.min),t.max=s7(t.max)}function re(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(sB(e)-sB(i)))}function ri(t){return t!==t.root&&t.scroll?.wasRoot}let rn=sY({attachResizeListener:(t,e)=>nU(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),rs={current:void 0},rr=sY({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!rs.current){let t=new rn({});t.mount(window),t.setOptions({layoutScroll:!0}),rs.current=t}return rs.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function ro(t,e){let i=function(t,e,i){if(t instanceof EventTarget)return[t];if("string"==typeof t){let e=document,i=(void 0)??e.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t)}(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function ra(t){return!("touch"===t.pointerType||nI.x||nI.y)}function rl(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let s=n["onHover"+i];s&&th.postRender(()=>s(e,n$(e)))}class ru extends nL{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,s,r]=ro(t,i),o=t=>{if(!ra(t))return;let{target:i}=t,n=e(i,t);if("function"!=typeof n||!i)return;let r=t=>{ra(t)&&(n(t),i.removeEventListener("pointerleave",r))};i.addEventListener("pointerleave",r,s)};return n.forEach(t=>{t.addEventListener("pointerenter",o,s)}),r}(t,(t,e)=>(rl(this.node,e,"Start"),t=>rl(this.node,t,"End"))))}unmount(){}}class rh extends nL{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=iu(nU(this.node.current,"focus",()=>this.onFocus()),nU(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}var rd=i(7990);let rc=(t,e)=>!!e&&(t===e||rc(t,e.parentElement)),rp=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),rm=new WeakSet;function rf(t){return e=>{"Enter"===e.key&&t(e)}}function rg(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}let ry=(t,e)=>{let i=t.currentTarget;if(!i)return;let n=rf(()=>{if(rm.has(i))return;rg(i,"down");let t=rf(()=>{rg(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>rg(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)};function rv(t){return nN(t)&&!(nI.x||nI.y)}function rx(t,e,i){let{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let s=n["onTap"+("End"===i?"":i)];s&&th.postRender(()=>s(e,n$(e)))}class rb extends nL{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,s,r]=ro(t,i),o=t=>{let n=t.currentTarget;if(!rv(t))return;rm.add(n);let r=e(n,t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),rm.has(n)&&rm.delete(n),rv(t)&&"function"==typeof r&&r(t,{success:e})},a=t=>{o(t,n===window||n===document||i.useGlobalTarget||rc(n,t.target))},l=t=>{o(t,!1)};window.addEventListener("pointerup",a,s),window.addEventListener("pointercancel",l,s)};return n.forEach(t=>{((i.useGlobalTarget?window:t).addEventListener("pointerdown",o,s),(0,rd.s)(t))&&(t.addEventListener("focus",t=>ry(t,s)),rp.has(t.tagName)||-1!==t.tabIndex||t.hasAttribute("tabindex")||(t.tabIndex=0))}),r}(t,(t,e)=>(rx(this.node,e,"Start"),(t,{success:e})=>rx(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let rT=new WeakMap,rw=new WeakMap,rP=t=>{let e=rT.get(t.target);e&&e(t)},rS=t=>{t.forEach(rP)},rA={some:0,all:1};class rM extends nL{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:n="some",once:s}=t,r={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof n?n:rA[n]};return function(t,e,i){let n=function({root:t,...e}){let i=t||document;rw.has(i)||rw.set(i,{});let n=rw.get(i),s=JSON.stringify(e);return n[s]||(n[s]=new IntersectionObserver(rS,{root:t,...e})),n[s]}(e);return rT.set(t,i),n.observe(t),()=>{rT.delete(t),n.unobserve(t)}}(this.node.current,r,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,s&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),r=e?i:n;r&&r(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}let rE=function(t,e){if("undefined"==typeof Proxy)return ie;let i=new Map,n=(i,n)=>ie(i,n,t,e);return new Proxy((t,e)=>n(t,e),{get:(s,r)=>"create"===r?n:(i.has(r)||i.set(r,ie(r,void 0,t,e)),i.get(r))})}({animation:{Feature:nF},exit:{Feature:nB},inView:{Feature:rM},tap:{Feature:rb},focus:{Feature:rh},hover:{Feature:ru},pan:{Feature:sn},drag:{Feature:se,ProjectionNode:rr,MeasureLayout:sh},layout:{ProjectionNode:rr,MeasureLayout:sh}},(t,e)=>e$(t)?new eU(e):new ek(e,{allowProjection:t!==s.Fragment}))},7328:(t,e,i)=>{t.exports=i(9836)},7594:(t,e,i)=>{"use strict";function n(t){return"object"==typeof t&&null!==t}i.d(e,{G:()=>n})},7990:(t,e,i)=>{"use strict";i.d(e,{s:()=>s});var n=i(7594);function s(t){return(0,n.G)(t)&&"offsetHeight"in t}},8230:(t,e,i)=>{t.exports=i(1639)},8940:(t,e,i)=>{"use strict";function n(t,e,i,n){return!1}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getDomainLocale",{enumerable:!0,get:function(){return n}}),i(7810),("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},9751:(t,e,i)=>{"use strict";i.d(e,{Q:()=>n});let n=(0,i(4232).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})}}]); \ No newline at end of file diff --git a/net-guardia/static/web/_next/static/chunks/335-efb20d23e9c8fbdc.js b/net-guardia/static/web/_next/static/chunks/335-efb20d23e9c8fbdc.js new file mode 100644 index 0000000..cb9439a --- /dev/null +++ b/net-guardia/static/web/_next/static/chunks/335-efb20d23e9c8fbdc.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[335],{1370:(t,e)=>{"use strict";e.byteLength=function(t){var e=l(t),n=e[0],i=e[1];return(n+i)*3/4-i},e.toByteArray=function(t){var e,n,o=l(t),a=o[0],s=o[1],u=new r((a+s)*3/4-s),h=0,c=s>0?a-4:a;for(n=0;n>16&255,u[h++]=e>>8&255,u[h++]=255&e;return 2===s&&(e=i[t.charCodeAt(n)]<<2|i[t.charCodeAt(n+1)]>>4,u[h++]=255&e),1===s&&(e=i[t.charCodeAt(n)]<<10|i[t.charCodeAt(n+1)]<<4|i[t.charCodeAt(n+2)]>>2,u[h++]=e>>8&255,u[h++]=255&e),u},e.fromByteArray=function(t){for(var e,i=t.length,r=i%3,o=[],a=0,s=i-r;a>18&63]+n[r>>12&63]+n[r>>6&63]+n[63&r]);return o.join("")}(t,a,a+16383>s?s:a+16383));return 1===r?o.push(n[(e=t[i-1])>>2]+n[e<<4&63]+"=="):2===r&&o.push(n[(e=(t[i-2]<<8)+t[i-1])>>10]+n[e>>4&63]+n[e<<2&63]+"="),o.join("")};for(var n=[],i=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a0)throw Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");-1===n&&(n=e);var i=n===e?0:4-n%4;return[n,i]}i[45]=62,i[95]=63},2909:(t,e,n)=>{"use strict";var i=n(1370),r=n(7247),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(t){if(t>0x7fffffff)throw RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,s.prototype),e}function s(t,e,n){if("number"==typeof t){if("string"==typeof e)throw TypeError('The "string" argument must be of type string. Received type number');return h(t)}return l(t,e,n)}function l(t,e,n){if("string"==typeof t){var i=t,r=e;if(("string"!=typeof r||""===r)&&(r="utf8"),!s.isEncoding(r))throw TypeError("Unknown encoding: "+r);var o=0|f(i,r),l=a(o),u=l.write(i,r);return u!==o&&(l=l.slice(0,u)),l}if(ArrayBuffer.isView(t)){var h=t;if(D(h,Uint8Array)){var g=new Uint8Array(h);return p(g.buffer,g.byteOffset,g.byteLength)}return c(h)}if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(D(t,ArrayBuffer)||t&&D(t.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(D(t,SharedArrayBuffer)||t&&D(t.buffer,SharedArrayBuffer)))return p(t,e,n);if("number"==typeof t)throw TypeError('The "value" argument must not be of type number. Received type number');var y=t.valueOf&&t.valueOf();if(null!=y&&y!==t)return s.from(y,e,n);var v=function(t){if(s.isBuffer(t)){var e=0|d(t.length),n=a(e);return 0===n.length||t.copy(n,0,0,e),n}return void 0!==t.length?"number"!=typeof t.length||function(t){return t!=t}(t.length)?a(0):c(t):"Buffer"===t.type&&Array.isArray(t.data)?c(t.data):void 0}(t);if(v)return v;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return s.from(t[Symbol.toPrimitive]("string"),e,n);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function u(t){if("number"!=typeof t)throw TypeError('"size" argument must be of type number');if(t<0)throw RangeError('The value "'+t+'" is invalid for option "size"')}function h(t){return u(t),a(t<0?0:0|d(t))}function c(t){for(var e=t.length<0?0:0|d(t.length),n=a(e),i=0;i=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|t}function f(t,e){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||D(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var n=t.length,i=arguments.length>2&&!0===arguments[2];if(!i&&0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return T(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return C(t).length;default:if(r)return i?-1:T(t).length;e=(""+e).toLowerCase(),r=!0}}function g(t,e,n){var r,o,a,s=!1;if((void 0===e||e<0)&&(e=0),e>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(e>>>=0)))return"";for(t||(t="utf8");;)switch(t){case"hex":return function(t,e,n){var i=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>i)&&(n=i);for(var r="",o=e;o0x7fffffff?n=0x7fffffff:n<-0x80000000&&(n=-0x80000000),(o=n*=1)!=o&&(n=r?0:t.length-1),n<0&&(n=t.length+n),n>=t.length)if(r)return -1;else n=t.length-1;else if(n<0)if(!r)return -1;else n=0;if("string"==typeof e&&(e=s.from(e,i)),s.isBuffer(e))return 0===e.length?-1:m(t,e,n,i,r);if("number"==typeof e){if(e&=255,"function"==typeof Uint8Array.prototype.indexOf)if(r)return Uint8Array.prototype.indexOf.call(t,e,n);else return Uint8Array.prototype.lastIndexOf.call(t,e,n);return m(t,[e],n,i,r)}throw TypeError("val must be string, number or Buffer")}function m(t,e,n,i,r){var o,a=1,s=t.length,l=e.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return -1;a=2,s/=2,l/=2,n/=2}function u(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(r){var h=-1;for(o=n;os&&(n=s-l),o=n;o>=0;o--){for(var c=!0,p=0;p239?4:u>223?3:u>191?2:1;if(r+c<=n)switch(c){case 1:u<128&&(h=u);break;case 2:(192&(o=t[r+1]))==128&&(l=(31&u)<<6|63&o)>127&&(h=l);break;case 3:o=t[r+1],a=t[r+2],(192&o)==128&&(192&a)==128&&(l=(15&u)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(h=l);break;case 4:o=t[r+1],a=t[r+2],s=t[r+3],(192&o)==128&&(192&a)==128&&(192&s)==128&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(h=l)}null===h?(h=65533,c=1):h>65535&&(h-=65536,i.push(h>>>10&1023|55296),h=56320|1023&h),i.push(h),r+=c}var p=i,d=p.length;if(d<=4096)return String.fromCharCode.apply(String,p);for(var f="",g=0;gn)throw RangeError("Trying to access beyond buffer length")}function b(t,e,n,i,r,o){if(!s.isBuffer(t))throw TypeError('"buffer" argument must be a Buffer instance');if(e>r||et.length)throw RangeError("Index out of range")}function w(t,e,n,i,r,o){if(n+i>t.length||n<0)throw RangeError("Index out of range")}function S(t,e,n,i,o){return e*=1,n>>>=0,o||w(t,e,n,4,34028234663852886e22,-34028234663852886e22),r.write(t,e,n,i,23,4),n+4}function M(t,e,n,i,o){return e*=1,n>>>=0,o||w(t,e,n,8,17976931348623157e292,-17976931348623157e292),r.write(t,e,n,i,52,8),n+8}e.hp=s,e.IS=50,s.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(t,e,n){return l(t,e,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(t,e,n){return(u(t),t<=0)?a(t):void 0!==e?"string"==typeof n?a(t).fill(e,n):a(t).fill(e):a(t)},s.allocUnsafe=function(t){return h(t)},s.allocUnsafeSlow=function(t){return h(t)},s.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==s.prototype},s.compare=function(t,e){if(D(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),D(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(t)||!s.isBuffer(e))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var n=t.length,i=e.length,r=0,o=Math.min(n,i);ri.length?s.from(o).copy(i,r):Uint8Array.prototype.set.call(i,o,r);else if(s.isBuffer(o))o.copy(i,r);else throw TypeError('"list" argument must be an Array of Buffers');r+=o.length}return i},s.byteLength=f,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;en&&(t+=" ... "),""},o&&(s.prototype[o]=s.prototype.inspect),s.prototype.compare=function(t,e,n,i,r){if(D(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(t))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),e<0||n>t.length||i<0||r>this.length)throw RangeError("out of range index");if(i>=r&&e>=n)return 0;if(i>=r)return -1;if(e>=n)return 1;if(e>>>=0,n>>>=0,i>>>=0,r>>>=0,this===t)return 0;for(var o=r-i,a=n-e,l=Math.min(o,a),u=this.slice(i,r),h=t.slice(e,n),c=0;c>>=0,isFinite(n)?(n>>>=0,void 0===i&&(i="utf8")):(i=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var r,o,a,s,l,u,h,c,p=this.length-e;if((void 0===n||n>p)&&(n=p),t.length>0&&(n<0||e<0)||e>this.length)throw RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var d=!1;;)switch(i){case"hex":return function(t,e,n,i){n=Number(n)||0;var r=t.length-n;i?(i=Number(i))>r&&(i=r):i=r;var o=e.length;i>o/2&&(i=o/2);for(var a=0;a>8,r.push(n%256),r.push(i);return r}(t,this.length-h),this,h,c);default:if(d)throw TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),d=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(t,e){var n=this.length;t=~~t,e=void 0===e?n:~~e,t<0?(t+=n)<0&&(t=0):t>n&&(t=n),e<0?(e+=n)<0&&(e=0):e>n&&(e=n),e>>=0,e>>>=0,n||_(t,e,this.length);for(var i=this[t],r=1,o=0;++o>>=0,e>>>=0,n||_(t,e,this.length);for(var i=this[t+--e],r=1;e>0&&(r*=256);)i+=this[t+--e]*r;return i},s.prototype.readUint8=s.prototype.readUInt8=function(t,e){return t>>>=0,e||_(t,1,this.length),this[t]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(t,e){return t>>>=0,e||_(t,2,this.length),this[t]|this[t+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(t,e){return t>>>=0,e||_(t,2,this.length),this[t]<<8|this[t+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(t,e){return t>>>=0,e||_(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+0x1000000*this[t+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(t,e){return t>>>=0,e||_(t,4,this.length),0x1000000*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},s.prototype.readIntLE=function(t,e,n){t>>>=0,e>>>=0,n||_(t,e,this.length);for(var i=this[t],r=1,o=0;++o=(r*=128)&&(i-=Math.pow(2,8*e)),i},s.prototype.readIntBE=function(t,e,n){t>>>=0,e>>>=0,n||_(t,e,this.length);for(var i=e,r=1,o=this[t+--i];i>0&&(r*=256);)o+=this[t+--i]*r;return o>=(r*=128)&&(o-=Math.pow(2,8*e)),o},s.prototype.readInt8=function(t,e){return(t>>>=0,e||_(t,1,this.length),128&this[t])?-((255-this[t]+1)*1):this[t]},s.prototype.readInt16LE=function(t,e){t>>>=0,e||_(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?0xffff0000|n:n},s.prototype.readInt16BE=function(t,e){t>>>=0,e||_(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?0xffff0000|n:n},s.prototype.readInt32LE=function(t,e){return t>>>=0,e||_(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},s.prototype.readInt32BE=function(t,e){return t>>>=0,e||_(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},s.prototype.readFloatLE=function(t,e){return t>>>=0,e||_(t,4,this.length),r.read(this,t,!0,23,4)},s.prototype.readFloatBE=function(t,e){return t>>>=0,e||_(t,4,this.length),r.read(this,t,!1,23,4)},s.prototype.readDoubleLE=function(t,e){return t>>>=0,e||_(t,8,this.length),r.read(this,t,!0,52,8)},s.prototype.readDoubleBE=function(t,e){return t>>>=0,e||_(t,8,this.length),r.read(this,t,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(t,e,n,i){if(t*=1,e>>>=0,n>>>=0,!i){var r=Math.pow(2,8*n)-1;b(this,t,e,n,r,0)}var o=1,a=0;for(this[e]=255&t;++a>>=0,n>>>=0,!i){var r=Math.pow(2,8*n)-1;b(this,t,e,n,r,0)}var o=n-1,a=1;for(this[e+o]=255&t;--o>=0&&(a*=256);)this[e+o]=t/a&255;return e+n},s.prototype.writeUint8=s.prototype.writeUInt8=function(t,e,n){return t*=1,e>>>=0,n||b(this,t,e,1,255,0),this[e]=255&t,e+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(t,e,n){return t*=1,e>>>=0,n||b(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(t,e,n){return t*=1,e>>>=0,n||b(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(t,e,n){return t*=1,e>>>=0,n||b(this,t,e,4,0xffffffff,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(t,e,n){return t*=1,e>>>=0,n||b(this,t,e,4,0xffffffff,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},s.prototype.writeIntLE=function(t,e,n,i){if(t*=1,e>>>=0,!i){var r=Math.pow(2,8*n-1);b(this,t,e,n,r-1,-r)}var o=0,a=1,s=0;for(this[e]=255&t;++o>>=0,!i){var r=Math.pow(2,8*n-1);b(this,t,e,n,r-1,-r)}var o=n-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a|0)-s&255;return e+n},s.prototype.writeInt8=function(t,e,n){return t*=1,e>>>=0,n||b(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},s.prototype.writeInt16LE=function(t,e,n){return t*=1,e>>>=0,n||b(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},s.prototype.writeInt16BE=function(t,e,n){return t*=1,e>>>=0,n||b(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},s.prototype.writeInt32LE=function(t,e,n){return t*=1,e>>>=0,n||b(this,t,e,4,0x7fffffff,-0x80000000),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},s.prototype.writeInt32BE=function(t,e,n){return t*=1,e>>>=0,n||b(this,t,e,4,0x7fffffff,-0x80000000),t<0&&(t=0xffffffff+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},s.prototype.writeFloatLE=function(t,e,n){return S(this,t,e,!0,n)},s.prototype.writeFloatBE=function(t,e,n){return S(this,t,e,!1,n)},s.prototype.writeDoubleLE=function(t,e,n){return M(this,t,e,!0,n)},s.prototype.writeDoubleBE=function(t,e,n){return M(this,t,e,!1,n)},s.prototype.copy=function(t,e,n,i){if(!s.isBuffer(t))throw TypeError("argument should be a Buffer");if(n||(n=0),i||0===i||(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i=this.length)throw RangeError("Index out of range");if(i<0)throw RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(r=e;r55295&&n<57344){if(!r){if(n>56319||a+1===i){(e-=3)>-1&&o.push(239,191,189);continue}r=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),r=n;continue}n=(r-55296<<10|n-56320)+65536}else r&&(e-=3)>-1&&o.push(239,191,189);if(r=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return o}function C(t){return i.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(I,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function A(t,e,n,i){for(var r=0;r=e.length)&&!(r>=t.length);++r)e[r+n]=t[r];return r}function D(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}var L=function(){for(var t="0123456789abcdef",e=Array(256),n=0;n<16;++n)for(var i=16*n,r=0;r<16;++r)e[i+r]=t[n]+t[r];return e}()},6335:(t,e,n)=>{"use strict";n.d(e,{fA:()=>W,Ts:()=>d9});var i,r,o,a,s,l,u,h,c,p,d,f,g,y,v,m,x,_,b,w,S,M,I,T,C,A,D,L,k,P,O,R,N,E,z,B,V,F,G={};n.r(G),n.d(G,{Arc:()=>cR,BezierCurve:()=>ck,BoundingRect:()=>eq,Circle:()=>h4,CompoundPath:()=>cN,Ellipse:()=>h7,Group:()=>i9,Image:()=>ae,IncrementalDisplayable:()=>cY,Line:()=>cT,LinearGradient:()=>cz,OrientedBoundingRect:()=>cH,Path:()=>o4,Point:()=>eF,Polygon:()=>cx,Polyline:()=>cw,RadialGradient:()=>cB,Rect:()=>au,Ring:()=>cg,Sector:()=>cp,Text:()=>aI,applyTransform:()=>c9,clipPointsByRect:()=>pn,clipRectByRect:()=>pi,createIcon:()=>pr,extendPath:()=>c$,extendShape:()=>cq,getShapeClass:()=>cQ,getTransform:()=>c7,groupTransition:()=>pe,initProps:()=>sc,isElementRemoved:()=>sp,lineLineIntersect:()=>pa,linePolygonIntersect:()=>po,makeImage:()=>c1,makePath:()=>c0,mergePath:()=>c5,registerShape:()=>cJ,removeElement:()=>sd,removeElementWithFadeOut:()=>sg,resizePath:()=>c3,setTooltipConfig:()=>ps,subPixelOptimize:()=>c8,subPixelOptimizeLine:()=>c4,subPixelOptimizeRect:()=>c6,transformDirection:()=>pt,traverseElements:()=>pu,updateProps:()=>sh});var W={};n.r(W),n.d(W,{W4:()=>cz});var H=function(t,e){return(H=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function U(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}H(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create;Object.create;var Y=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},X=new function(){this.browser=new Y,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!=typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(X.wxa=!0,X.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?X.worker=!0:!X.hasGlobalWindow||"Deno"in window?(X.node=!0,X.svgSupported=!0):function(t,e){var n=e.browser,i=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);i&&(n.firefox=!0,n.version=i[1]),r&&(n.ie=!0,n.version=r[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),a&&(n.weChat=!0),e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!=typeof document;var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}(navigator.userAgent,X);var Z="sans-serif",j="12px "+Z,q=function(t){var e={};if("undefined"==typeof JSON)return e;for(var n=0;n=0)s=a*n.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",i[l]+":0",r[u]+":0",i[1-l]+":auto",r[1-u]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}(e,o),o,r);if(a)return a(t,n,i),!0}return!1}function eg(t){return"CANVAS"===t.nodeName.toUpperCase()}var ey=/([&<>"'])/g,ev={"&":"&","<":"<",">":">",'"':""","'":"'"};function em(t){return null==t?"":(t+"").replace(ey,function(t,e){return ev[e]})}var ex=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,e_=[],eb=X.browser.firefox&&39>+X.browser.version.split(".")[0];function ew(t,e,n,i){return n=n||{},i?eS(t,e,n):eb&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):eS(t,e,n),n}function eS(t,e,n){if(X.domSupported&&t.getBoundingClientRect){var i=e.clientX,r=e.clientY;if(eg(t)){var o=t.getBoundingClientRect();n.zrX=i-o.left,n.zrY=r-o.top;return}if(ef(e_,t,i,r)){n.zrX=e_[0],n.zrY=e_[1];return}}n.zrX=n.zrY=0}function eM(t){return t||window.event}function eI(t,e,n){if(null!=(e=eM(e)).zrX)return e;var i=e.type;if(i&&i.indexOf("touch")>=0){var r="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];r&&ew(t,r,e,n)}else{ew(t,e,e,n);var o=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,i=t.deltaY;return null==n||null==i?e:3*(0!==i?Math.abs(i):Math.abs(n))*(i>0?-1:i<0?1:n>0?-1:1)}(e);e.zrDelta=o?o/120:-(e.detail||0)/3}var a=e.button;return null==e.which&&void 0!==a&&ex.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e}function eT(t,e,n,i){t.addEventListener(e,n,i)}var eC=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function eA(t){return 2===t.which||3===t.which}var eD=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},o=0,a=i.length;o1&&i&&i.length>1){var o=eL(i)/eL(r);isFinite(o)||(o=1),e.pinchScale=o;var a=[(i[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2];return e.pinchX=a[0],e.pinchY=a[1],{type:"pinch",target:t[0].target,event:e}}}}};function eP(){return[1,0,0,1,0,0]}function eO(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function eR(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function eN(t,e,n){var i=e[0]*n[0]+e[2]*n[1],r=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function eE(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function ez(t,e,n,i){void 0===i&&(i=[0,0]);var r=e[0],o=e[2],a=e[4],s=e[1],l=e[3],u=e[5],h=Math.sin(n),c=Math.cos(n);return t[0]=r*c+s*h,t[1]=-r*h+s*c,t[2]=o*c+l*h,t[3]=-o*h+c*l,t[4]=c*(a-i[0])+h*(u-i[1])+i[0],t[5]=c*(u-i[1])-h*(a-i[0])+i[1],t}function eB(t,e,n){var i=n[0],r=n[1];return t[0]=e[0]*i,t[1]=e[1]*r,t[2]=e[2]*i,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*r,t}function eV(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*i;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-a*r)*l,t[5]=(o*r-n*s)*l,t):null}let eF=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},t.lerp=function(t,e,n,i){var r=1-i;t.x=r*e.x+i*n.x,t.y=r*e.y+i*n.y},t}();var eG=Math.min,eW=Math.max,eH=new eF,eU=new eF,eY=new eF,eX=new eF,eZ=new eF,ej=new eF;let eq=function(){function t(t,e,n,i){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return t.prototype.union=function(t){var e=eG(t.x,this.x),n=eG(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=eW(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=eW(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=t.width/this.width,n=t.height/this.height,i=eP();return eE(i,i,[-this.x,-this.y]),eB(i,i,[e,n]),eE(i,i,[t.x,t.y]),i},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var i=this.x,r=this.x+this.width,o=this.y,a=this.y+this.height,s=e.x,l=e.x+e.width,u=e.y,h=e.y+e.height,c=!(rd&&(d=m,fd&&(d=x,y=this.x&&t<=this.x+this.width&&e>=this.y&&e<=this.y+this.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,i){if(!i){e!==n&&t.copy(e,n);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],o=i[3],a=i[4],s=i[5];e.x=n.x*r+a,e.y=n.y*o+s,e.width=n.width*r,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}eH.x=eY.x=n.x,eH.y=eX.y=n.y,eU.x=eX.x=n.x+n.width,eU.y=eY.y=n.y+n.height,eH.transform(i),eX.transform(i),eU.transform(i),eY.transform(i),e.x=eG(eH.x,eU.x,eY.x,eX.x),e.y=eG(eH.y,eU.y,eY.y,eX.y);var l=eW(eH.x,eU.x,eY.x,eX.x),u=eW(eH.y,eU.y,eY.y,eX.y);e.width=l-e.x,e.height=u-e.y},t}();var eK="silent";function e$(){eC(this.event)}var eJ=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return t0(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(el),eQ=function(t,e){this.x=t,this.y=e},e0=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e1=new eq(0,0,0,0),e2=function(t){function e(e,n,i,r,o){var a=t.call(this)||this;return a._hovered=new eQ(0,0),a.storage=e,a.painter=n,a.painterRoot=r,a._pointerSize=o,i=i||new eJ,a.proxy=null,a.setHandlerProxy(i),a._draggingMgr=new es(a),a}return t0(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(tm(e0,function(e){t.on&&t.on(e,this[e],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=e3(this,e,n),r=this._hovered,o=r.target;o&&!o.__zr&&(o=(r=this.findHover(r.x,r.y)).target);var a=this._hovered=i?new eQ(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new eQ(0,0)},e.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,n){var i=(t=t||{}).target;if(!i||!i.silent){for(var r,o="on"+e,a={type:e,event:n,target:(r=t).target,topTarget:r.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:e$};i&&(i[o]&&(a.cancelBubble=!!i[o].call(i,a)),i.trigger(e,a),i=i.__hostTarget?i.__hostTarget:i.parent,!a.cancelBubble););!a.cancelBubble&&(this.trigger(e,a),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(t){"function"==typeof t[o]&&t[o].call(t,a),t.trigger&&t.trigger(e,a)}))}},e.prototype.findHover=function(t,e,n){var i=this.storage.getDisplayList(),r=new eQ(t,e);if(e5(i,r,t,e,n),this._pointerSize&&!r.target){for(var o=[],a=this._pointerSize,s=a/2,l=new eq(t-s,e-s,a,a),u=i.length-1;u>=0;u--){var h=i[u];h===n||h.ignore||h.ignoreCoarsePointer||h.parent&&h.parent.ignoreCoarsePointer||(e1.copy(h.getBoundingRect()),h.transform&&e1.applyTransform(h.transform),e1.intersect(l)&&o.push(h))}if(o.length){for(var c=Math.PI/12,p=2*Math.PI,d=0;d=0;o--){var a=t[o],s=void 0;if(a!==r&&!a.ignore&&(s=function(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var i=t,r=void 0,o=!1;i;){if(i.ignoreClip&&(o=!0),!o){var a=i.getClipPath();if(a&&!a.contain(e,n))return!1}i.silent&&(r=!0),i=i.__hostTarget||i.parent}return!r||eK}return!1}(a,n,i))&&(e.topTarget||(e.topTarget=a),s!==eK)){e.target=a;break}}}function e3(t,e,n){var i=t.painter;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}function e4(t,e,n,i){var r=e+1;if(r===n)return 1;if(0>i(t[r++],t[e])){for(;ri(t[r],t[r-1]);)r++;var o=t,a=e,s=r;for(s--;a=0;)r++;return r-e}function e6(t,e,n,i,r){for(i===e&&i++;ir(a,t[o=s+l>>>1])?l=o:s=o+1;var u=i-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=a}}function e8(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])>0){for(s=i-r;l0;)a=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;l=o(t,e[n+r-l]);)a=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}for(a++;a>>1);o(t,e[n+h])>0?a=h+1:l=h}return l}function e7(t,e,n,i,r,o){var a=0,s=0,l=1;if(0>o(t,e[n+r])){for(s=r+1;lo(t,e[n+r-l]);)a=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}else{for(s=i-r;l=0;)a=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;a>>1);0>o(t,e[n+h])?l=h:a=h+1}return l}function e9(t,e,n,i){n||(n=0),i||(i=t.length);var r=i-n;if(!(r<2)){var o=0;if(r<32){o=e4(t,n,i,e),e6(t,n,i,n+o,e);return}var a=function(t,e){var n,i,r=7,o=0,a=[];function s(s){var l=n[s],u=i[s],h=n[s+1],c=i[s+1];i[s]=u+c,s===o-3&&(n[s+1]=n[s+2],i[s+1]=i[s+2]),o--;var p=e7(t[h],t,l,u,0,e);l+=p,0!=(u-=p)&&0!==(c=e8(t[l+u-1],t,h,c,c-1,e))&&(u<=c?function(n,i,o,s){var l,u,h,c=0;for(c=0;ce(t[d],a[p])){if(t[f++]=t[d++],u++,l=0,0==--s){h=!0;break}}else if(t[f++]=a[p++],l++,u=0,1==--i){h=!0;break}while((l|u)=7||u>=7);if(h)break;g<0&&(g=0),g+=2}if((r=g)<1&&(r=1),1===i){for(c=0;c=0;l--)t[d+l]=t[p+l];t[c]=a[h];return}for(var f=r;;){var g=0,y=0,v=!1;do if(0>e(a[h],t[u])){if(t[c--]=t[u--],g++,y=0,0==--i){v=!0;break}}else if(t[c--]=a[h--],y++,g=0,1==--s){v=!0;break}while((g|y)=0;l--)t[d+l]=t[p+l];if(0===i){v=!0;break}}if(t[c--]=a[h--],1==--s){v=!0;break}if(0!=(y=s-e8(t[u],a,0,s,s-1,e))){for(c-=y,h-=y,s-=y,d=c+1,p=h+1,l=0;l=7||y>=7);if(v)break;f<0&&(f=0),f+=2}if((r=f)<1&&(r=1),1===s){for(c-=i,u-=i,d=c+1,p=u+1,l=i-1;l>=0;l--)t[d+l]=t[p+l];t[c]=a[h]}else if(0===s)throw Error();else for(l=0,p=c-(s-1);l1;){var t=o-2;if(t>=1&&i[t-1]<=i[t]+i[t+1]||t>=2&&i[t-2]<=i[t]+i[t-1])i[t-1]i[t+1])break;s(t)}},forceMergeRuns:function(){for(;o>1;){var t=o-2;t>0&&i[t-1]=32;)e|=1&t,t>>=1;return t+e}(r);do{if((o=e4(t,n,i,e))s&&(l=s),e6(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),r-=o,n+=o}while(0!==r);a.forceMergeRuns()}}tm(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){e2.prototype[t]=function(e){var n,i,r=e.zrX,o=e.zrY,a=e3(this,r,o);if("mouseup"===t&&a||(i=(n=this.findHover(r,o)).target),"mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||et(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}});var nt=!1;function ne(){nt||(nt=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function nn(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var ni=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=nn}return t.prototype.traverse=function(t,e){for(var n=0;n0&&(t.__clipPaths=[]),isNaN(t.z)&&(ne(),t.z=0),isNaN(t.z2)&&(ne(),t.z2=0),isNaN(t.zlevel)&&(ne(),t.zlevel=0),this._displayList[this._displayListLen++]=t;var u=t.getDecalElement&&t.getDecalElement();u&&this._updateAndAddDisplayable(u,e,n);var h=t.getTextGuideLine();h&&this._updateAndAddDisplayable(h,e,n);var c=t.getTextContent();c&&this._updateAndAddDisplayable(c,e,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,n=t.length;e=0&&this._roots.splice(i,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}();i=X.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var nr={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*(t-=1))*Math.sin(2*Math.PI*(t-e)/.4)))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin(2*Math.PI*(t-e)/.4)+1)},elasticInOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),(t*=2)<1)?-.5*(n*Math.pow(2,10*(t-=1))*Math.sin(2*Math.PI*(t-e)/.4)):n*Math.pow(2,-10*(t-=1))*Math.sin(2*Math.PI*(t-e)/.4)*.5+1},backIn:function(t){return t*t*(2.70158*t-1.70158)},backOut:function(t){return--t*t*(2.70158*t+1.70158)+1},backInOut:function(t){return(t*=2)<1?t*t*(3.5949095*t-2.5949095)*.5:.5*((t-=2)*t*(3.5949095*t+2.5949095)+2)},bounceIn:function(t){return 1-nr.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*nr.bounceIn(2*t):.5*nr.bounceOut(2*t-1)+.5}},no=Math.pow,na=Math.sqrt,ns=na(3),nl=1/3,nu=t1(),nh=t1(),nc=t1();function np(t){return t>-1e-8&&t<1e-8}function nd(t){return t>1e-8||t<-1e-8}function nf(t,e,n,i,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*i+3*o*n)}function ng(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function ny(t,e,n,i,r,o){var a=i+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-r,h=s*s-3*a*l,c=s*l-9*a*u,p=l*l-3*s*u,d=0;if(np(h)&&np(c))if(np(s))o[0]=0;else{var f=-l/s;f>=0&&f<=1&&(o[d++]=f)}else{var g=c*c-4*h*p;if(np(g)){var y=c/h,f=-s/a+y,v=-y/2;f>=0&&f<=1&&(o[d++]=f),v>=0&&v<=1&&(o[d++]=v)}else if(g>0){var m=na(g),x=h*s+1.5*a*(-c+m),_=h*s+1.5*a*(-c-m),f=(-s-((x=x<0?-no(-x,nl):no(x,nl))+(_=_<0?-no(-_,nl):no(_,nl))))/(3*a);f>=0&&f<=1&&(o[d++]=f)}else{var b=Math.acos((2*h*s-3*a*c)/(2*na(h*h*h)))/3,w=na(h),S=Math.cos(b),f=(-s-2*w*S)/(3*a),v=(-s+w*(S+ns*Math.sin(b)))/(3*a),M=(-s+w*(S-ns*Math.sin(b)))/(3*a);f>=0&&f<=1&&(o[d++]=f),v>=0&&v<=1&&(o[d++]=v),M>=0&&M<=1&&(o[d++]=M)}}return d}function nv(t,e,n,i,r){var o=6*n-12*e+6*t,a=9*e+3*i-3*t-9*n,s=3*e-3*t,l=0;if(np(a)){if(nd(o)){var u=-s/o;u>=0&&u<=1&&(r[l++]=u)}}else{var h=o*o-4*a*s;if(np(h))r[0]=-o/(2*a);else if(h>0){var c=na(h),u=(-o+c)/(2*a),p=(-o-c)/(2*a);u>=0&&u<=1&&(r[l++]=u),p>=0&&p<=1&&(r[l++]=p)}}return l}function nm(t,e,n,i,r,o){var a=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,u=(s-a)*r+a,h=(l-s)*r+s,c=(h-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=c,o[4]=c,o[5]=h,o[6]=l,o[7]=i}function nx(t,e,n,i,r,o,a,s,l,u,h){var c,p,d,f,g,y=.005,v=1/0;nu[0]=l,nu[1]=u;for(var m=0;m<1;m+=.05)nh[0]=nf(t,n,r,a,m),nh[1]=nf(e,i,o,s,m),(f=ee(nu,nh))=0&&f=0&&d=1?1:ny(0,i,o,1,t,s)&&nf(0,r,a,1,s[0])}}}var nC=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||t$,this.ondestroy=t.ondestroy||t$,this.onrestart=t.onrestart||t$,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var n=this._life,i=t-this._startTime-this._pausedTime,r=i/n;r<0&&(r=0),r=Math.min(r,1);var o=this.easingFunc,a=o?o(r):r;if(this.onframe(a),1===r)if(!this.loop)return!0;else this._startTime=t-i%n,this._pausedTime=0,this.onrestart();return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=tT(t)?t:nr[t]||nT(t)},t}(),nA=function(t){this.value=t},nD=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new nA(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),nL=function(){function t(t){this._list=new nD,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,i=this._map,r=null;if(null==i[t]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete i[s.key],r=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new nA(e),a.key=t,n.insertEntry(a),i[t]=a}return r},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}(),nk={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 nP(t){return(t=Math.round(t))<0?0:t>255?255:t}function nO(t){return t<0?0:t>1?1:t}function nR(t){return t.length&&"%"===t.charAt(t.length-1)?nP(parseFloat(t)/100*255):nP(parseInt(t,10))}function nN(t){return t.length&&"%"===t.charAt(t.length-1)?nO(parseFloat(t)/100):nO(parseFloat(t))}function nE(t,e,n){return(n<0?n+=1:n>1&&(n-=1),6*n<1)?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function nz(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function nB(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var nV=new nL(20),nF=null;function nG(t,e){nF&&nB(nF,e),nF=nV.put(t,nF||e.slice())}function nW(t,e){if(t){e=e||[];var n=nV.get(t);if(n)return nB(e,n);var i=(t+="").replace(/ /g,"").toLowerCase();if(i in nk)return nB(e,nk[i]),nG(t,e),e;var r=i.length;if("#"===i.charAt(0)){if(4===r||5===r){var o=parseInt(i.slice(1,4),16);return o>=0&&o<=4095?(nz(e,(3840&o)>>4|(3840&o)>>8,240&o|(240&o)>>4,15&o|(15&o)<<4,5===r?parseInt(i.slice(4),16)/15:1),nG(t,e),e):void nz(e,0,0,0,1)}if(7===r||9===r){var o=parseInt(i.slice(1,7),16);return o>=0&&o<=0xffffff?(nz(e,(0xff0000&o)>>16,(65280&o)>>8,255&o,9===r?parseInt(i.slice(7),16)/255:1),nG(t,e),e):void nz(e,0,0,0,1)}return}var a=i.indexOf("("),s=i.indexOf(")");if(-1!==a&&s+1===r){var l=i.substr(0,a),u=i.substr(a+1,s-(a+1)).split(","),h=1;switch(l){case"rgba":if(4!==u.length)return 3===u.length?nz(e,+u[0],+u[1],+u[2],1):nz(e,0,0,0,1);h=nN(u.pop());case"rgb":if(u.length>=3)return nz(e,nR(u[0]),nR(u[1]),nR(u[2]),3===u.length?h:nN(u[3])),nG(t,e),e;return void nz(e,0,0,0,1);case"hsla":if(4!==u.length)return void nz(e,0,0,0,1);return u[3]=nN(u[3]),nH(u,e),nG(t,e),e;case"hsl":if(3!==u.length)return void nz(e,0,0,0,1);return nH(u,e),nG(t,e),e;default:return}}nz(e,0,0,0,1)}}function nH(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=nN(t[1]),r=nN(t[2]),o=r<=.5?r*(i+1):r+i-r*i,a=2*r-o;return nz(e=e||[],nP(255*nE(a,o,n+1/3)),nP(255*nE(a,o,n)),nP(255*nE(a,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function nU(t,e){var n=nW(t);if(n){for(var i=0;i<3;i++)e<0?n[i]=n[i]*(1-e)|0:n[i]=(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return nj(n,4===n.length?"rgba":"rgb")}}function nY(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var i,r,o,a,s=t*(e.length-1),l=Math.floor(s),u=Math.ceil(s),h=e[l],c=e[u],p=s-l;return n[0]=nP((i=h[0],i+(c[0]-i)*p)),n[1]=nP((r=h[1],r+(c[1]-r)*p)),n[2]=nP((o=h[2],o+(c[2]-o)*p)),n[3]=nO((a=h[3],a+(c[3]-a)*p)),n}}function nX(t,e,n,i){var r,o=nW(t);if(t)return o=function(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var h=((s-i)/6+l/2)/l,c=((s-r)/6+l/2)/l,p=((s-o)/6+l/2)/l;i===s?e=p-c:r===s?e=1/3+h-p:o===s&&(e=2/3+c-h),e<0&&(e+=1),e>1&&(e-=1)}var d=[360*e,n,u];return null!=t[3]&&d.push(t[3]),d}}(o),null!=e&&(o[0]=(r=Math.round(r=e))<0?0:r>360?360:r),null!=n&&(o[1]=nN(n)),null!=i&&(o[2]=nN(i)),nj(nH(o),"rgba")}function nZ(t,e){var n=nW(t);if(n&&null!=e)return n[3]=nO(e),nj(n,"rgba")}function nj(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return("rgba"===e||"hsva"===e||"hsla"===e)&&(n+=","+t[3]),e+"("+n+")"}}function nq(t,e){var n=nW(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}var nK=new nL(100);function n$(t){if(tC(t)){var e=nK.get(t);return e||(e=nU(t,-.1),nK.put(t,e)),e}if(tR(t)){var n=td({},t);return n.colorStops=tx(t.colorStops,function(t){return{offset:t.offset,color:nU(t.color,-.1)}}),n}return t}var nJ=n(2909).hp,nQ=Math.round;function n0(t){var e;if(t&&"transparent"!==t){if("string"==typeof t&&t.indexOf("rgba")>-1){var n=nW(t);n&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3])}}else t="none";return{color:t,opacity:null==e?1:e}}function n1(t){return t<1e-4&&t>-1e-4}function n2(t){return nQ(1e3*t)/1e3}function n5(t){return nQ(1e4*t)/1e4}var n3={left:"start",right:"end",center:"middle",middle:"middle"};function n4(t){return t&&!!t.image}function n6(t){return n4(t)||t&&!!t.svgElement}function n8(t){return"linear"===t.type}function n7(t){return"radial"===t.type}function n9(t){return t&&("linear"===t.type||"radial"===t.type)}function it(t){return"url(#"+t+")"}function ie(t){var e=t.getGlobalScale();return Math.max(Math.ceil(Math.log(Math.max(e[0],e[1]))/Math.log(10)),1)}function ii(t){var e=t.x||0,n=t.y||0,i=(t.rotation||0)*tJ,r=tE(t.scaleX,1),o=tE(t.scaleY,1),a=t.skewX||0,s=t.skewY||0,l=[];return(e||n)&&l.push("translate("+e+"px,"+n+"px)"),i&&l.push("rotate("+i+")"),(1!==r||1!==o)&&l.push("scale("+r+","+o+")"),(a||s)&&l.push("skew("+nQ(a*tJ)+"deg, "+nQ(s*tJ)+"deg)"),l.join(" ")}var ir=X.hasGlobalWindow&&tT(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:void 0!==nJ?function(t){return nJ.from(t).toString("base64")}:function(t){return null},io=Array.prototype.slice;function ia(t,e,n,i){for(var r,o=e.length,a=0;a=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,r=i.length,o=!1,a=6,s=e;if(tv(e)){var l=tv(e&&e[0])?2:1;a=l,(1!==l||tD(e[0]))&&(2!==l||tD(e[0][0]))||(o=!0)}else if(tD(e)&&e==e)a=0;else if(tC(e))if(isNaN(+e)){var u=nW(e);u&&(s=u,a=3)}else a=0;else if(tR(e)){var h=td({},s);h.colorStops=tx(e.colorStops,function(t){return{offset:t.offset,color:nW(t.color)}}),n8(e)?a=4:n7(e)&&(a=5),s=h}0===r?this.valType=a:(a!==this.valType||6===a)&&(o=!0),this.discrete=this.discrete||o;var c={time:t,value:s,rawValue:e,percent:0};return n&&(c.easing=n,c.easingFunc=tT(n)?n:nr[n]||nT(n)),i.push(c),c},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort(function(t,e){return t.time-e.time});for(var i=this.valType,r=n.length,o=n[r-1],a=this.discrete,s=ip(i),l=ic(i),u=0;ur)t.length=r;else for(var o=i;oi?e:t,o=Math.min(n,i),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;s=0&&!(l[n].percent<=e);n--);n=d(n,u-2)}else{for(n=p;ne);n++);n=d(n-1,u-2)}r=l[n+1],i=l[n]}if(i&&r){this._lastFr=n,this._lastFrP=e;var f=r.percent-i.percent,g=0===f?1:d((e-i.percent)/f,1);r.easingFunc&&(g=r.easingFunc(g));var y=o?this._additiveValue:c?id:t[h];if((ip(s)||c)&&!y&&(y=this._additiveValue=[]),this.discrete)t[h]=g<1?i.rawValue:r.rawValue;else if(ip(s))1===s?ia(y,i[a],r[a],g):function(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a0&&s.addKeyframe(0,iu(l),i),this._trackKeys.push(a)}s.addKeyframe(t,iu(e[a]),i)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,r=0;r1){var a=o.pop();r.addKeyframe(a.time,t[i]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},t}();function iv(){return new Date().getTime()}var im=function(t){function e(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,n.stage=(e=e||{}).stage||{},n}return t0(e,t),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 e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){for(var e=iv()-this._pausedTime,n=e-this._time,i=this._head;i;){var r=i.next;i.step(e,n)&&(i.ondestroy(),this.removeClip(i)),i=r}this._time=e,!t&&(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0,i(function e(){t._running&&(i(e),t._paused||t.update())})},e.prototype.start=function(){this._running||(this._time=iv(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=iv(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=iv()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var n=new iy(t,e.loop);return this.addAnimator(n),n},e}(el),ix=X.domSupported,i_=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=tx(t,function(t){var n=t.replace("mouse","pointer");return e.hasOwnProperty(n)?n:t});return{mouse:t,touch:["touchstart","touchend","touchmove"],pointer:n}}(),ib={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},iw=!1;function iS(t){var e=t.pointerType;return"pen"===e||"touch"===e}function iM(t){t&&(t.zrByTouch=!0)}function iI(t,e){for(var n=e,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return i}var iT=function(t,e){this.stopPropagation=t$,this.stopImmediatePropagation=t$,this.preventDefault=t$,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},iC={mousedown:function(t){t=eI(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=eI(this.dom,t);var e=this.__mayPointerCapture;e&&(t.zrX!==e[0]||t.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=eI(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){iI(this,(t=eI(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){iw=!0,t=eI(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){iw||(t=eI(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){iM(t=eI(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),iC.mousemove.call(this,t),iC.mousedown.call(this,t)},touchmove:function(t){iM(t=eI(this.dom,t)),this.handler.processGesture(t,"change"),iC.mousemove.call(this,t)},touchend:function(t){iM(t=eI(this.dom,t)),this.handler.processGesture(t,"end"),iC.mouseup.call(this,t),new Date-this.__lastTouchMoment<300&&iC.click.call(this,t)},pointerdown:function(t){iC.mousedown.call(this,t)},pointermove:function(t){iS(t)||iC.mousemove.call(this,t)},pointerup:function(t){iC.mouseup.call(this,t)},pointerout:function(t){iS(t)||iC.mouseout.call(this,t)}};tm(["click","dblclick","contextmenu"],function(t){iC[t]=function(e){e=eI(this.dom,e),this.trigger(t,e)}});var iA={pointermove:function(t){iS(t)||iA.mousemove.call(this,t)},pointerup:function(t){iA.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function iD(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,eT(t.domTarget,e,n,i)}function iL(t){var e,n,i,r=t.mounted;for(var o in r)r.hasOwnProperty(o)&&(e=t.domTarget,n=r[o],i=t.listenerOpts[o],e.removeEventListener(o,n,i));t.mounted={}}var ik=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e},iP=function(t){function e(e,n){var i,r,o=t.call(this)||this;return o.__pointerCapturing=!1,o.dom=e,o.painterRoot=n,o._localHandlerScope=new ik(e,iC),ix&&(o._globalHandlerScope=new ik(document,iA)),r=(i=o._localHandlerScope).domHandlers,X.pointerEventsSupported?tm(i_.pointer,function(t){iD(i,t,function(e){r[t].call(o,e)})}):(X.touchEventsSupported&&tm(i_.touch,function(t){iD(i,t,function(e){r[t].call(o,e),i.touching=!0,null!=i.touchTimer&&(clearTimeout(i.touchTimer),i.touchTimer=null),i.touchTimer=setTimeout(function(){i.touching=!1,i.touchTimer=null},700)})}),tm(i_.mouse,function(t){iD(i,t,function(e){e=eM(e),i.touching||r[t].call(o,e)})})),o}return t0(e,t),e.prototype.dispose=function(){iL(this._localHandlerScope),ix&&iL(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,ix&&this.__pointerCapturing^t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?function(t,e){X.pointerEventsSupported?tm(ib.pointer,n):X.touchEventsSupported||tm(ib.mouse,n);function n(n){iD(e,n,function(i){if(!iI(t,(i=eM(i)).target)){var r;r=i,i=eI(t.dom,new iT(t,r),!0),e.domHandlers[n].call(t,i)}},{capture:!0})}}(this,e):iL(e)}},e}(el),iO=1;X.hasGlobalWindow&&(iO=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var iR=iO,iN="#333",iE="#ccc";function iz(t){return t>5e-5||t<-5e-5}var iB=[],iV=[],iF=eP(),iG=Math.abs,iW=function(){var t;function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return iz(this.rotation)||iz(this.x)||iz(this.y)||iz(this.scaleX-1)||iz(this.scaleY-1)||iz(this.skewX)||iz(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;if(!(e||t)){n&&(eO(n),this.invTransform=null);return}n=n||eP(),e?this.getLocalTransform(n):eO(n),t&&(e?eN(n,t,n):eR(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(iB);var n=iB[0]<0?-1:1,i=iB[1]<0?-1:1,r=((iB[0]-n)*e+n)/iB[0]||0,o=((iB[1]-i)*e+i)/iB[1]||0;t[0]*=r,t[1]*=r,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||eP(),eV(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),r=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(r),e=Math.sqrt(e),this.skewX=r,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||eP(),eN(iV,t.invTransform,e),e=iV);var n=this.originX,i=this.originY;(n||i)&&(iF[4]=n,iF[5]=i,eN(iV,e,iF),iV[4]-=n,iV[5]-=i,e=iV),this.setLocalTransform(e)}},e.prototype.getGlobalScale=function(t){var e=this.transform;return(t=t||[],e)?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1])):(t[0]=1,t[1]=1),t},e.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&ei(n,n,i),n},e.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&ei(n,n,i),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&iG(t[0]-1)>1e-10&&iG(t[3]-1)>1e-10?Math.sqrt(iG(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){iU(this,t)},e.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,r=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,h=t.y,c=t.skewX?Math.tan(t.skewX):0,p=t.skewY?Math.tan(-t.skewY):0;if(n||i||a||s){var d=n+a,f=i+s;e[4]=-d*r-c*f*o,e[5]=-f*o-p*d*r}else e[4]=e[5]=0;return e[0]=r,e[3]=o,e[1]=p*r,e[2]=c*o,l&&ez(e,e,l),e[4]+=n+u,e[5]+=i+h,e},e.initDefaultProps=void((t=e.prototype).scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0),e}(),iH=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function iU(t,e){for(var n=0;n=0?parseFloat(t)/100*e:parseFloat(t):t}function iQ(t,e,n){var i=e.position||"inside",r=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,h="left",c="top";if(i instanceof Array)l+=iJ(i[0],n.width),u+=iJ(i[1],n.height),h=null,c=null;else switch(i){case"left":l-=r,u+=s,h="right",c="middle";break;case"right":l+=r+a,u+=s,c="middle";break;case"top":l+=a/2,u-=r,h="center",c="bottom";break;case"bottom":l+=a/2,u+=o+r,h="center";break;case"inside":l+=a/2,u+=s,h="center",c="middle";break;case"insideLeft":l+=r,u+=s,c="middle";break;case"insideRight":l+=a-r,u+=s,h="right",c="middle";break;case"insideTop":l+=a/2,u+=r,h="center";break;case"insideBottom":l+=a/2,u+=o-r,h="center",c="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,h="right";break;case"insideBottomLeft":l+=r,u+=o-r,c="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,h="right",c="bottom"}return(t=t||{}).x=l,t.y=u,t.align=h,t.verticalAlign=c,t}var i0="__zr_normal__",i1=iH.concat(["ignore"]),i2=t_(iH,function(t,e){return t[e]=!0,t},{ignore:!1}),i5={},i3=new eq(0,0,0,0),i4=function(){function t(t){this.id=tl++,this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,r=e.innerTransformable,o=void 0,a=void 0,s=!1;r.parent=i?this:null;var l=!1;if(r.copyTransform(e),null!=n.position){n.layoutRect?i3.copy(n.layoutRect):i3.copy(this.getBoundingRect()),i||i3.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(i5,n,i3):iQ(i5,n,i3),r.x=i5.x,r.y=i5.y,o=i5.align,a=i5.verticalAlign;var u=n.origin;if(u&&null!=n.rotation){var h=void 0,c=void 0;"center"===u?(h=.5*i3.width,c=.5*i3.height):(h=iJ(u[0],i3.width),c=iJ(u[1],i3.height)),l=!0,r.originX=-r.x+h+(i?0:i3.x),r.originY=-r.y+c+(i?0:i3.y)}}null!=n.rotation&&(r.rotation=n.rotation);var p=n.offset;p&&(r.x+=p[0],r.y+=p[1],l||(r.originX=-p[0],r.originY=-p[1]));var d=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,f=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),g=void 0,y=void 0,v=void 0;d&&this.canBeInsideText()?(g=n.insideFill,y=n.insideStroke,(null==g||"auto"===g)&&(g=this.getInsideTextFill()),(null==y||"auto"===y)&&(y=this.getInsideTextStroke(g),v=!0)):(g=n.outsideFill,y=n.outsideStroke,(null==g||"auto"===g)&&(g=this.getOutsideFill()),(null==y||"auto"===y)&&(y=this.getOutsideStroke(g),v=!0)),((g=g||"#000")!==f.fill||y!==f.stroke||v!==f.autoStroke||o!==f.align||a!==f.verticalAlign)&&(s=!0,f.fill=g,f.stroke=y,f.autoStroke=v,f.align=o,f.verticalAlign=a,e.setDefaultTextStyle(f)),e.__dirty|=1,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?iE:iN},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&nW(e);n||(n=[255,255,255,1]);for(var i=n[3],r=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+255*!r*(1-i);return n[3]=1,nj(n,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},td(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(tL(t))for(var n=tw(t),i=0;i0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(i0,!1,t)},t.prototype.useState=function(t,e,n,i){var r,o=t===i0;if(this.hasState()||!o){var a=this.currentStates,s=this.stateTransition;if(!(tg(a,t)>=0)||!e&&1!==a.length){if(this.stateProxy&&!o&&(r=this.stateProxy(t)),r||(r=this.states&&this.states[t]),!r&&!o)return void tu("State "+t+" not exists.");o||this.saveCurrentToNormalState(r);var l=!!(r&&r.hoverLayer||i);l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,r,this._normalState,e,!n&&!this.__inHover&&s&&s.duration>0,s);var u=this._textContent,h=this._textGuide;return u&&u.useState(t,e,n,l),h&&h.useState(t,e,n,l),o?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),r}}},t.prototype.useStates=function(t,e,n){if(t.length){var i=[],r=this.currentStates,o=t.length,a=o===r.length;if(a){for(var s=0;s0,d);var f=this._textContent,g=this._textGuide;f&&f.useStates(t,e,c),g&&g.useStates(t,e,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}}else this.clearStates()},t.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=!0;break}e=e.parent}return t},t.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),r=tg(i,t),o=tg(i,e)>=0;r>=0?o?i.splice(r,1):i[r]=e:n&&!o&&i.push(e),this.useStates(i)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},i=0;i=0&&e.splice(n,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,r=[],o=0;o0||o.force&&!s.length){var M=void 0,I=void 0,T=void 0;if(l){I={},d&&(M={});for(var b=0;b<_;b++){var m=y[b];I[m]=i[m],d?M[m]=r[m]:i[m]=r[m]}}else if(d){T={};for(var b=0;b<_;b++){var m=y[b];T[m]=iu(i[m]),function(t,e,n){if(tv(e[n]))if(tv(t[n])||(t[n]=[]),tP(e[n])){var i=e[n].length;t[n].length!==i&&(t[n]=new e[n].constructor(i),i8(t[n],e[n],i))}else{var r=e[n],o=t[n],a=r.length;if(tv(r[0]))for(var s=r[0].length,l=0;l0&&n.during&&o[0].during(function(t,e){n.during(e)});for(var p=0;p=0&&(n.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var n=tg(this._children,t);return n>=0&&this.replaceAt(e,n),this},e.prototype.replaceAt=function(t,e){var n=this._children,i=n[e];if(t&&t!==this&&t.parent!==this&&t!==i){n[e]=t,i.parent=null;var r=this.__zr;r&&i.removeSelfFromZr(r),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,n=this._children,i=tg(n,t);return i<0||(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;nnq(t,1);if(t.colorStops){for(var e=t.colorStops,n=0,i=e.length,r=0;r0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){!this._disposed&&(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},t.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},t.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},t.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e0){if(t<=r)return a;else if(t>=o)return s}else if(t>=r)return a;else if(t<=o)return s}else{if(t===r)return a;if(t===o)return s}return(t-r)/l*u+a}function ro(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return tC(t)?t.replace(/^\s+|\s+$/g,"").match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function ra(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),n?t:+t}function rs(t){return t.sort(function(t,e){return t-e}),t}function rl(t){if(isNaN(t*=1))return 0;if(t>1e-14){for(var e,n,i,r,o,a=1,s=0;s<15;s++,a*=10)if(Math.round(t*a)/a===t)return s}return i=(n=(e=t.toString().toLowerCase()).indexOf("e"))>0?+e.slice(n+1):0,r=n>0?n:e.length,Math.max(0,((o=e.indexOf("."))<0?0:r-1-o)-i)}function ru(t,e){var n=Math.log,i=Math.LN10,r=Math.min(Math.max(-Math.floor(n(t[1]-t[0])/i)+Math.round(n(Math.abs(e[1]-e[0]))/i),0),20);return isFinite(r)?r:20}function rh(t){var e=2*Math.PI;return(t%e+e)%e}function rc(t){return t>-1e-4&&t<1e-4}var rp=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function rd(t){if(t instanceof Date)return t;if(tC(t)){var e=rp.exec(t);if(!e)return new Date(NaN);if(!e[8])return new Date(+e[1],(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0);var n=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(n-=e[8].slice(0,3)),new Date(Date.UTC(+e[1],(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}return null==t?new Date(NaN):new Date(Math.round(t))}function rf(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function rg(t,e){var n,i=rf(t),r=Math.pow(10,i),o=t/r;return t=(e?o<1.5?1:o<2.5?2:o<4?3:o<7?5:10:o<1?1:o<2?2:o<3?3:o<5?5:10)*r,i>=-20?+t.toFixed(i<0?-i:0):t}function ry(t,e){var n=(t.length-1)*e+1,i=Math.floor(n),r=+t[i-1],o=n-i;return o?r+o*(t[i]-r):r}function rv(t){t.sort(function(t,e){return!function t(e,n,i){return e.interval[i]=t.indexOf("x"))?e:NaN}function rx(t){return!isNaN(rm(t))}function r_(){return Math.round(9*Math.random())}function rb(t,e){return null==t?e:null==e?t:t*e/function t(e,n){return 0===n?e:t(n,e%n)}(t,e)}var rw="series\0",rS="\0_ec_\0";function rM(t){return t instanceof Array?t:null==t?[]:[t]}function rI(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,r=n.length;itg(e.includeMainTypes,s)||(a=a||!!s,(r.get(s)||r.set(s,{}))[l]=t)}),{mainTypeSpecified:a,queryOptionMap:r,others:o}}var rV={useDefault:!0,enableAll:!1,enableNone:!1},rF={useDefault:!1,enableAll:!0,enableNone:!0};function rG(t,e,n,i){i=i||rV;var r=n.index,o=n.id,a=n.name,s={models:null,specified:null!=r||null!=o||null!=a};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=t.getComponent(e))?[l]:[],s}return"none"===r||!1===r?(tF(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[]):("all"===r&&(tF(i.enableAll,'`"all"` is not a valid value on index option.'),r=o=a=null),s.models=t.queryComponents({mainType:e,index:r,id:o,name:a})),s}function rW(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function rH(t,e){var n=tX(),i=[];return tm(t,function(t){var r=e(t);(n.get(r)||(i.push(r),n.set(r,[]))).push(t)}),{keys:i,buckets:n}}function rU(t,e,n,i,r){var o=null==e||"auto"===e;if(null==i)return i;if(tD(i)){var a,s=(i-(a=n||0))*r+a;return ra(s,o?Math.max(rl(n||0),rl(i)):e)}if(tC(i))return r<1?n:i;for(var l=[],u=Math.max(n?n.length:0,i.length),h=0;h=0||r&&0>tg(r,s))){var l=n.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}var r1=r0([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),r2=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return r1(this,t,e)},t}(),r5=new nL(50);function r3(t,e,n,i,r){if(!t)return e;if("string"!=typeof t)return t;if(e&&e.__zrImageSrc===t||!n)return e;var o=r5.get(t),a={hostEl:n,cb:i,cbPayload:r};return o?r6(e=o.image)||o.pending.push(a):((e=K.loadImage(t,r4,r4)).__zrImageSrc=t,r5.put(t,e.__cachedImgObj={image:e,pending:[a]})),e}function r4(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=a;l++)s-=a;var u=iX(n,e);return u>s&&(n="",u=0),s=t-u,r.ellipsis=n,r.ellipsisWidth=u,r.contentWidth=s,r.containerWidth=t,r}function r9(t,e,n){var i=n.containerWidth,r=n.font,o=n.contentWidth;if(!i){t.textLine="",t.isTruncated=!1;return}var a=iX(e,r);if(a<=i){t.textLine=e,t.isTruncated=!1;return}for(var s=0;;s++){if(a<=o||s>=n.maxIterations){e+=n.ellipsis;break}var l=0===s?function(t,e,n,i){for(var r=0,o=0,a=t.length;o0?Math.floor(e.length*o/a):0;a=iX(e=e.substr(0,l),r)}""===e&&(e=n.placeholder),t.textLine=e,t.isTruncated=!0}var ot=function(){},oe=function(t){this.tokens=[],t&&(this.tokens=t)},on=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1};function oi(t,e,n,i,r){var o,a,s=""===e,l=r&&n.rich[r]||{},u=t.lines,h=l.font||n.font,c=!1;if(i){var p=l.padding,d=p?p[1]+p[3]:0;if(null!=l.width&&"auto"!==l.width){var f=iJ(l.width,i.width)+d;u.length>0&&f+i.accumWidth>i.width&&(o=e.split("\n"),c=!0),i.accumWidth=f}else{var g=oo(e,h,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+d,a=g.linesWidths,o=g.lines}}else o=e.split("\n");for(var y=0;y=32)||!(e<=591))&&(!(e>=880)||!(e<=4351))&&(!(e>=4608)||!(e<=5119))&&(!(e>=7680)||!(e<=8303))||!!or[t]}(p);if(o.length?h+d>n:r+h+d>n){h?(s||l)&&(f?(s||(s=l,l="",h=u=0),o.push(s),a.push(h-u),l+=p,u+=d,s="",h=u):(l&&(s+=l,l="",u=0),o.push(s),a.push(h),s=p,h=d)):f?(o.push(l),a.push(u),l=p,u=d):(o.push(p),a.push(d));continue}h+=d,f?(l+=p,u+=d):(l&&(s+=l,l="",u=0),s+=p)}return o.length||s||(s=t,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(h)),1===o.length&&(h+=r),{accumWidth:h,lines:o,linesWidths:a}}var oa="__zr_style_"+Math.round(10*Math.random()),os={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},ol={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};os[oa]=!0;var ou=["z","z2","invisible"],oh=["invisible"],oc=function(t){var e;function n(e){return t.call(this,e)||this}return t0(n,t),n.prototype._init=function(e){for(var n=tw(e),i=0;i=oV?r=n+oV:e&&n-r>=oV?r=n-oV:!e&&n>r?r=n+(oV-oW(n-r)):e&&n0&&(this._ux=oz(n/iR/t)||0,this._uy=oz(n/iR/e)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(oT.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},e.prototype.lineTo=function(t,e){var n=oz(t-this._xi),i=oz(e-this._yi),r=n>this._ux||i>this._uy;if(this.addData(oT.L,t,e),this._ctx&&r&&this._ctx.lineTo(t,e),r)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,e,n,i,r,o){return this._drawPendingPt(),this.addData(oT.C,t,e,n,i,r,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,r,o),this._xi=r,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(oT.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},e.prototype.arc=function(t,e,n,i,r,o){this._drawPendingPt(),oG[0]=i,oG[1]=r,oH(oG,o),i=oG[0];var a=(r=oG[1])-i;return this.addData(oT.A,t,e,n,n,i,a,0,+!o),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=oN(r)*n+t,this._yi=oE(r)*n+e,this},e.prototype.arcTo=function(t,e,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},e.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(oT.R,t,e,n,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(oT.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var e=t.length;!(this.data&&this.data.length===e)&&oF&&(this.data=new Float32Array(e));for(var n=0;nu.length&&(this._expandData(),u=this.data);for(var h=0;h0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){oD[0]=oD[1]=ok[0]=ok[1]=Number.MAX_VALUE,oL[0]=oL[1]=oP[0]=oP[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,i=0,r=0,o=0;for(t=0;t1e-4){s[0]=t-n,s[1]=e-i,l[0]=t+n,l[1]=e+i;return}if(ox[0]=ov(r)*n+t,ox[1]=oy(r)*i+e,o_[0]=ov(o)*n+t,o_[1]=oy(o)*i+e,er(s,ox,o_),eo(l,ox,o_),(r%=om)<0&&(r+=om),(o%=om)<0&&(o+=om),r>o&&!a?o+=om:rr&&(ob[0]=ov(c)*n+t,ob[1]=oy(c)*i+e,er(s,ob,s),eo(l,ob,l))}(l,u,h,c,p,d,f,ok,oP),n=oN(d)*h+l,i=oE(d)*c+u;break;case oT.R:oS(r=n=e[t++],o=i=e[t++],r+e[t++],o+e[t++],ok,oP);break;case oT.Z:n=r,i=o}er(oD,oD,ok),eo(oL,oL,oP)}return 0===t&&(oD[0]=oD[1]=oL[0]=oL[1]=0),new eq(oD[0],oD[1],oL[0]-oD[0],oL[1]-oD[1])},e.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,i=this._uy,r=0,o=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,h=0,c=0;cn||oz(m)>i||c===e-1)&&(f=Math.sqrt(v*v+m*m),r=g,o=y);break;case oT.C:var x=t[c++],_=t[c++],g=t[c++],y=t[c++],b=t[c++],w=t[c++];f=function(t,e,n,i,r,o,a,s,l){for(var u=t,h=e,c=0,p=1;p<=10;p++){var d=.1*p,f=nf(t,n,r,a,d),g=nf(e,i,o,s,d),y=f-u,v=g-h;c+=Math.sqrt(y*y+v*v),u=f,h=g}return c}(r,o,x,_,g,y,b,w,10),r=b,o=w;break;case oT.Q:var x=t[c++],_=t[c++],g=t[c++],y=t[c++];f=function(t,e,n,i,r,o,a){for(var s=t,l=e,u=0,h=1;h<=10;h++){var c=.1*h,p=n_(t,n,r,c),d=n_(e,i,o,c),f=p-s,g=d-l;u+=Math.sqrt(f*f+g*g),s=p,l=d}return u}(r,o,x,_,g,y,10),r=g,o=y;break;case oT.A:var S=t[c++],M=t[c++],I=t[c++],T=t[c++],C=t[c++],A=t[c++],D=A+C;c+=1,d&&(a=oN(C)*I+S,s=oE(C)*T+M),f=oR(I,T)*oO(oV,Math.abs(A)),r=oN(D)*I+S,o=oE(D)*T+M;break;case oT.R:a=r=t[c++],s=o=t[c++],f=2*t[c++]+2*t[c++];break;case oT.Z:var v=a-r,m=s-o;f=Math.sqrt(v*v+m*m),r=a,o=s}f>=0&&(l[h++]=f,u+=f)}return this._pathLen=u,u},e.prototype.rebuildPath=function(t,e){var n,i,r,o,a,s,l,u,h,c,p=this.data,d=this._ux,f=this._uy,g=this._len,y=e<1,v=0,m=0,x=0;if(!y||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=e*this._pathLen))t:for(var _=0;_0&&(t.lineTo(h,c),x=0),b){case oT.M:n=r=p[_++],i=o=p[_++],t.moveTo(r,o);break;case oT.L:a=p[_++],s=p[_++];var S=oz(a-r),M=oz(s-o);if(S>d||M>f){if(y){var I=l[m++];if(v+I>u){var T=(u-v)/I;t.lineTo(r*(1-T)+a*T,o*(1-T)+s*T);break t}v+=I}t.lineTo(a,s),r=a,o=s,x=0}else{var C=S*S+M*M;C>x&&(h=a,c=s,x=C)}break;case oT.C:var A=p[_++],D=p[_++],L=p[_++],k=p[_++],P=p[_++],O=p[_++];if(y){var I=l[m++];if(v+I>u){var T=(u-v)/I;nm(r,A,L,P,T,oC),nm(o,D,k,O,T,oA),t.bezierCurveTo(oC[1],oA[1],oC[2],oA[2],oC[3],oA[3]);break t}v+=I}t.bezierCurveTo(A,D,L,k,P,O),r=P,o=O;break;case oT.Q:var A=p[_++],D=p[_++],L=p[_++],k=p[_++];if(y){var I=l[m++];if(v+I>u){var T=(u-v)/I;nS(r,A,L,T,oC),nS(o,D,k,T,oA),t.quadraticCurveTo(oC[1],oA[1],oC[2],oA[2]);break t}v+=I}t.quadraticCurveTo(A,D,L,k),r=L,o=k;break;case oT.A:var R=p[_++],N=p[_++],E=p[_++],z=p[_++],B=p[_++],V=p[_++],F=p[_++],G=!p[_++],W=E>z?E:z,H=oz(E-z)>.001,U=B+V,Y=!1;if(y){var I=l[m++];v+I>u&&(U=B+V*(u-v)/I,Y=!0),v+=I}if(H&&t.ellipse?t.ellipse(R,N,E,z,F,B,U,G):t.arc(R,N,W,B,U,G),Y)break t;w&&(n=oN(B)*E+R,i=oE(B)*z+N),r=oN(U)*E+R,o=oE(U)*z+N;break;case oT.R:n=r=p[_],i=o=p[_+1],a=p[_++],s=p[_++];var X=p[_++],Z=p[_++];if(y){var I=l[m++];if(v+I>u){var j=u-v;t.moveTo(a,s),t.lineTo(a+oO(j,X),s),(j-=X)>0&&t.lineTo(a+X,s+oO(j,Z)),(j-=Z)>0&&t.lineTo(a+oR(X-j,0),s+Z),(j-=X)>0&&t.lineTo(a,s+oR(Z-j,0));break t}v+=I}t.rect(a,s,X,Z);break;case oT.Z:if(y){var I=l[m++];if(v+I>u){var T=(u-v)/I;t.lineTo(r*(1-T)+n*T,o*(1-T)+i*T);break t}v+=I}t.closePath(),r=n,o=i}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.CMD=oT,e.initDefaultProps=void((t=e.prototype)._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0),e}();function oY(t,e,n,i,r,o,a){if(0===r)return!1;var s=0,l=t;if(a>e+r&&a>i+r||at+r&&o>n+r||oe+a)||!(l>i+a)||!(l>o+a))&&(!(lt+a)||!(s>n+a)||!(s>r+a))&&(!(se&&o>i||or?s:0}var o$=oU.CMD,oJ=2*Math.PI,oQ=[-1,-1,-1],o0=[-1,-1];function o1(t,e,n,i,r){for(var o,a,s=t.data,l=t.len(),u=0,h=0,c=0,p=0,d=0,f=0;f1&&!n&&(u+=oK(h,c,p,d,i,r)),M&&(h=s[f],c=s[f+1],p=h,d=c),S){case o$.M:p=s[f++],d=s[f++],h=p,c=d;break;case o$.L:if(n){if(oY(h,c,s[f],s[f+1],e,i,r))return!0}else u+=oK(h,c,s[f],s[f+1],i,r)||0;h=s[f++],c=s[f++];break;case o$.C:if(n){if(g=h,y=c,v=s[f++],m=s[f++],x=s[f++],_=s[f++],b=s[f],w=s[f+1],0!==e&&(!(r>y+e)||!(r>m+e)||!(r>_+e)||!(r>w+e))&&(!(rg+e)||!(i>v+e)||!(i>x+e)||!(i>b+e))&&(!(ie&&u>i&&u>o&&u>s||u1&&function(){var t=o0[0];o0[0]=o0[1],o0[1]=t}(),d=nf(e,i,o,s,o0[0]),p>1&&(f=nf(e,i,o,s,o0[1]))),2===p?ye&&s>i&&s>o||s=0&&u<=1&&(r[l++]=u)}}else{var h=a*a-4*o*s;if(np(h)){var u=-a/(2*o);u>=0&&u<=1&&(r[l++]=u)}else if(h>0){var c=na(h),u=(-a+c)/(2*o),p=(-a-c)/(2*o);u>=0&&u<=1&&(r[l++]=u),p>=0&&p<=1&&(r[l++]=p)}}return l}(e,i,o,s,oQ);if(0===l)return 0;var u=nw(e,i,o);if(u>=0&&u<=1){for(var h=0,c=n_(e,i,o,u),p=0;pn||u+ar&&(r+=oq);var c=Math.atan2(l,s);return c<0&&(c+=oq),c>=i&&c<=r||c+oq>=i&&c+oq<=r}(I,T,A,D,D+L,k,e,P,r))return!0}else u+=function(t,e,n,i,r,o,a,s){if((s-=e)>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);oQ[0]=-l,oQ[1]=l;var u=Math.abs(i-r);if(u<1e-4)return 0;if(u>=oJ-1e-4){i=0,r=oJ;var h=o?1:-1;return a>=oQ[0]+t&&a<=oQ[1]+t?h:0}if(i>r){var c=i;i=r,r=c}i<0&&(i+=oJ,r+=oJ);for(var p=0,d=0;d<2;d++){var f=oQ[d];if(f+t>a){var g=Math.atan2(s,f),h=o?1:-1;g<0&&(g=oJ+g),(g>=i&&g<=r||g+oJ>=i&&g+oJ<=r)&&(g>Math.PI/2&&g<1.5*Math.PI&&(h=-h),p+=h)}}return p}(I,T,A,D,D+L,k,P,r);h=Math.cos(D+L)*C+I,c=Math.sin(D+L)*A+T;break;case o$.R:p=h=s[f++],d=c=s[f++];var O=s[f++],R=s[f++];if(o=p+O,a=d+R,n){if(oY(p,d,o,d,e,i,r)||oY(o,d,o,a,e,i,r)||oY(o,a,p,a,e,i,r)||oY(p,a,p,d,e,i,r))return!0}else u+=oK(o,d,o,a,i,r),u+=oK(p,a,p,d,i,r);break;case o$.Z:if(n){if(oY(h,c,p,d,e,i,r))return!0}else u+=oK(h,c,p,d,i,r);h=p,c=d}}return n||1e-4>Math.abs(c-d)||(u+=oK(h,c,p,d,i,r)||0),0!==u}var o2=tf({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},os),o5={style:tf({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},ol.style)},o3=iH.concat(["invisible","culling","z","z2","zlevel","parent"]);let o4=function(t){var e;function n(e){return t.call(this,e)||this}return t0(n,t),n.prototype.update=function(){var e=this;t.prototype.update.call(this);var i=this.style;if(i.decal){var r=this._decalEl=this._decalEl||new n;r.buildPath===n.prototype.buildPath&&(r.buildPath=function(t){e.buildPath(t,e.shape)}),r.silent=!0;var o=r.style;for(var a in i)o[a]!==i[a]&&(o[a]=i[a]);o.fill=i.fill?i.decal:null,o.decal=null,o.shadowColor=null,i.strokeFirst&&(o.stroke=null);for(var s=0;s.5?iN:e>.2?"#eee":iE}else if(t)return iE}return iN},n.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(tC(e)){var n=this.__zr;if(!!(n&&n.isDarkMode())==.4>nq(t,0))return e}},n.prototype.buildPath=function(t,e,n){},n.prototype.pathUpdated=function(){this.__dirty&=-5},n.prototype.getUpdatedPathProxy=function(t){return this.path||this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},n.prototype.createPathProxy=function(){this.path=new oU(!1)},n.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0},n.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},n.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var r=this.path;(i||4&this.__dirty)&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),t=r.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},n.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),r=this.style;if(t=n[0],e=n[1],i.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),o1(o,a/s,!0,t,e)))return!0}if(this.hasFill())return o1(o,0,!1,t,e)}return!1},n.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},n.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},n.prototype.animateShape=function(t){return this.animate("shape",t)},n.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},n.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},n.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"==typeof t?n[t]=e:td(n,t),this.dirtyShape(),this},n.prototype.shapeChanged=function(){return!!(4&this.__dirty)},n.prototype.createStyle=function(t){return tj(o2,t)},n.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=td({},this.shape))},n.prototype._applyStateObj=function(e,n,i,r,o,a){t.prototype._applyStateObj.call(this,e,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.shape?o?r?s=n.shape:(s=td({},i.shape),td(s,n.shape)):(s=td({},r?this.shape:i.shape),td(s,n.shape)):l&&(s=i.shape),s)if(o){this.shape=td({},this.shape);for(var u={},h=tw(s),c=0;c0},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.createStyle=function(t){return tj(o6,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var n=ij(e,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},e.initDefaultProps=void(e.prototype.dirtyRectTolerance=10),e}(oc);o8.prototype.type="tspan";var o7=tf({x:0,y:0},os),o9={style:tf({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},ol.style)},at=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return t0(e,t),e.prototype.createStyle=function(t){return tj(o7,t)},e.prototype._getSize=function(t){var e,n=this.style,i=n[t];if(null!=i)return i;var r=(e=n.image)&&"string"!=typeof e&&e.width&&e.height?n.image:this.__image;if(!r)return 0;var o="width"===t?"height":"width",a=n[o];return null==a?r[t]:r[t]/r[o]*a},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return o9},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new eq(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(oc);at.prototype.type="image";let ae=at;var an=Math.round;function ai(t,e,n){if(e){var i=e.x1,r=e.x2,o=e.y1,a=e.y2;t.x1=i,t.x2=r,t.y1=o,t.y2=a;var s=n&&n.lineWidth;return s&&(an(2*i)===an(2*r)&&(t.x1=t.x2=ao(i,s,!0)),an(2*o)===an(2*a)&&(t.y1=t.y2=ao(o,s,!0))),t}}function ar(t,e,n){if(e){var i=e.x,r=e.y,o=e.width,a=e.height;t.x=i,t.y=r,t.width=o,t.height=a;var s=n&&n.lineWidth;return s&&(t.x=ao(i,s,!0),t.y=ao(r,s,!0),t.width=Math.max(ao(i+o,s,!1)-t.x,+(0!==o)),t.height=Math.max(ao(r+a,s,!1)-t.y,+(0!==a))),t}}function ao(t,e,n){if(!e)return t;var i=an(2*t);return(i+an(e))%2==0?i/2:(i+(n?1:-1))/2}var aa=function(){this.x=0,this.y=0,this.width=0,this.height=0},as={},al=function(t){function e(e){return t.call(this,e)||this}return t0(e,t),e.prototype.getDefaultShape=function(){return new aa},e.prototype.buildPath=function(t,e){if(this.subPixelOptimize){var n,i,r,o,a,s,l,u,h,c,p,d,f,g,y,v=ar(as,e,this.style);d=v.x,f=v.y,g=v.width,y=v.height,v.r=e.r,e=v}else d=e.x,f=e.y,g=e.width,y=e.height;e.r?(l=(n=e).x,u=n.y,h=n.width,c=n.height,p=n.r,h<0&&(l+=h,h=-h),c<0&&(u+=c,c=-c),"number"==typeof p?i=r=o=a=p:p instanceof Array?1===p.length?i=r=o=a=p[0]:2===p.length?(i=o=p[0],r=a=p[1]):3===p.length?(i=p[0],r=a=p[1],o=p[2]):(i=p[0],r=p[1],o=p[2],a=p[3]):i=r=o=a=0,i+r>h&&(s=i+r,i*=h/s,r*=h/s),o+a>h&&(s=o+a,o*=h/s,a*=h/s),r+o>c&&(s=r+o,r*=c/s,o*=c/s),i+a>c&&(s=i+a,i*=c/s,a*=c/s),t.moveTo(l+i,u),t.lineTo(l+h-r,u),0!==r&&t.arc(l+h-r,u+r,r,-Math.PI/2,0),t.lineTo(l+h,u+c-o),0!==o&&t.arc(l+h-o,u+c-o,o,0,Math.PI/2),t.lineTo(l+a,u+c),0!==a&&t.arc(l+a,u+c-a,a,Math.PI/2,Math.PI),t.lineTo(l,u+i),0!==i&&t.arc(l+i,u+i,i,Math.PI,1.5*Math.PI)):t.rect(d,f,g,y)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(o4);al.prototype.type="rect";let au=al;var ah={fill:"#000"},ac={style:tf({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},ol.style)},ap=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=ah,n.attr(e),n}return t0(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;ed&&u){var f=Math.floor(d/s);h=h||n.length>f,n=n.slice(0,f)}if(t&&"truncate"===i&&null!=c)for(var g=r7(c,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),y={},v=0;v0,I=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),T=i.calculatedLineHeight,C=0;Cl&&oi(i,t.substring(l,u),e,s),oi(i,n[2],e,s,n[1]),l=r8.lastIndex}lo){var D=i.lines.length;w>0?(x.tokens=x.tokens.slice(0,w),v(x,b,_),i.lines=i.lines.slice(0,m+1)):i.lines=i.lines.slice(0,m),i.isTruncated=i.isTruncated||i.lines.length=0&&"right"===(C=x[T]).align;)this._placeToken(C,t,b,f,I,"right",y),w-=C.width,I-=C.width,T--;for(M+=(n-(M-d)-(g-I)-w)/2;S<=T;)C=x[S],this._placeToken(C,t,b,f,M+C.width/2,"center",y),M+=C.width,S++;f+=b}},e.prototype._placeToken=function(t,e,n,i,r,o,a){var s=e.rich[t.styleName]||{};s.text=t.text;var l=t.verticalAlign,u=i+n/2;"top"===l?u=i+t.height/2:"bottom"===l&&(u=i+n-t.height/2),!t.isLineHolder&&aM(s)&&this._renderBackground(s,e,"right"===o?r-t.width:"center"===o?r-t.width/2:r,u-t.height/2,t.width,t.height);var h=!!s.backgroundColor,c=t.textPadding;c&&(r=aw(r,o,c),u-=t.height/2-c[0]-t.innerHeight/2);var p=this._getOrCreateChild(o8),d=p.createStyle();p.useStyle(d);var f=this._defaultStyle,g=!1,y=0,v=ab("fill"in s?s.fill:"fill"in e?e.fill:(g=!0,f.fill)),m=a_("stroke"in s?s.stroke:"stroke"in e?e.stroke:h||a||f.autoStroke&&!g?null:(y=2,f.stroke)),x=s.textShadowBlur>0||e.textShadowBlur>0;d.text=t.text,d.x=r,d.y=u,x&&(d.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,d.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",d.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,d.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),d.textAlign=o,d.textBaseline="middle",d.font=t.font||j,d.opacity=tz(s.opacity,e.opacity,1),av(d,s),m&&(d.lineWidth=tz(s.lineWidth,e.lineWidth,y),d.lineDash=tE(s.lineDash,e.lineDash),d.lineDashOffset=e.lineDashOffset||0,d.stroke=m),v&&(d.fill=v);var _=t.contentWidth,b=t.contentHeight;p.setBoundingRect(new eq(iq(d.x,_,d.textAlign),iK(d.y,b,d.textBaseline),_,b))},e.prototype._renderBackground=function(t,e,n,i,r,o){var a,s,l=t.backgroundColor,u=t.borderWidth,h=t.borderColor,c=l&&l.image,p=l&&!c,d=t.borderRadius,f=this;if(p||t.lineHeight||u&&h){(a=this._getOrCreateChild(au)).useStyle(a.createStyle()),a.style.fill=null;var g=a.shape;g.x=n,g.y=i,g.width=r,g.height=o,g.r=d,a.dirtyShape()}if(p){var y=a.style;y.fill=l||null,y.fillOpacity=tE(t.fillOpacity,1)}else if(c){(s=this._getOrCreateChild(ae)).onload=function(){f.dirtyStyle()};var v=s.style;v.image=l.image,v.x=n,v.y=i,v.width=r,v.height=o}if(u&&h){var y=a.style;y.lineWidth=u,y.stroke=h,y.strokeOpacity=tE(t.strokeOpacity,1),y.lineDash=t.borderDash,y.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var m=(a||s).style;m.shadowBlur=t.shadowBlur||0,m.shadowColor=t.shadowColor||"transparent",m.shadowOffsetX=t.shadowOffsetX||0,m.shadowOffsetY=t.shadowOffsetY||0,m.opacity=tz(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";return am(t)&&(e=[t.fontStyle,t.fontWeight,ay(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&tG(e)||t.textFont||t.font},e}(oc),ad={left:!0,right:1,center:1},af={top:1,bottom:1,middle:1},ag=["fontStyle","fontWeight","fontSize","fontFamily"];function ay(t){return"string"==typeof t&&(-1!==t.indexOf("px")||-1!==t.indexOf("rem")||-1!==t.indexOf("em"))?t:isNaN(+t)?"12px":t+"px"}function av(t,e){for(var n=0;n=0,o=!1;if(t instanceof o4){var a=aL(t),s=r&&a.selectFill||a.normalFill,l=r&&a.selectStroke||a.normalStroke;if(aV(s)||aV(l)){var u=(i=i||{}).style||{};"inherit"===u.fill?(o=!0,i=td({},i),(u=td({},u)).fill=s):!aV(u.fill)&&aV(s)?(o=!0,i=td({},i),(u=td({},u)).fill=n$(s)):!aV(u.stroke)&&aV(l)&&(o||(i=td({},i),u=td({},u)),u.stroke=n$(l)),i.style=u}}if(i&&null==i.z2){o||(i=td({},i));var h=t.z2EmphasisLift;i.z2=t.z2+(null!=h?h:10)}return i}(this,0,e,s);else if("blur"===t)return n=s,i=tg(this.currentStates,t)>=0,r=this.style.opacity,o=i?null:function(t,e,n,i){for(var r=t.style,o={},a=0;au.__fromStateTransition.indexOf(n)&&"style"===u.targetName&&u.saveTo(o,e)}return o}(this,["opacity"],t,{opacity:1}),null==(a=(n=n||{}).style||{}).opacity&&(n=td({},n),a=td({opacity:i?r:.1*o.opacity},a),n.style=a),n;else if("select"===t){var l=s;if(l&&null==l.z2){l=td({},l);var u=this.z2SelectLift;l.z2=this.z2+(null!=u?u:9)}return l}}return s}function aK(t){t.stateProxy=aq;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=aq),n&&(n.stateProxy=aq)}function a$(t,e){a1(t,e)||t.__highByOuter||aZ(t,aG)}function aJ(t,e){a1(t,e)||t.__highByOuter||aZ(t,aW)}function aQ(t,e){t.__highByOuter|=1<<(e||0),aZ(t,aG)}function a0(t,e){(t.__highByOuter&=~(1<<(e||0)))||aZ(t,aW)}function a1(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function a2(t){var e=t.getModel(),n=[],i=[];e.eachComponent(function(e,r){var o=ak(r),a="series"===e,s=a?t.getViewOfSeriesModel(r):t.getViewOfComponentModel(r);a||i.push(s),o.isBlured&&(s.group.traverse(function(t){aU(t)}),a&&n.push(r)),o.isBlured=!1}),tm(i,function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)})}function a5(t,e,n,i){var r=i.getModel();function o(t,e){for(var n=0;n0){var c={duration:h.duration,delay:h.delay||0,easing:h.easing,done:o,force:!!o||!!a,setToFinal:!u,scope:t,during:a};l?e.animateFrom(n,c):e.animateTo(n,c)}else e.stopAnimation(),l||e.attr(n),a&&a(1),o&&o()}function sh(t,e,n,i,r,o){su("update",t,e,n,i,r,o)}function sc(t,e,n,i,r,o){su("enter",t,e,n,i,r,o)}function sp(t){if(!t.__zr)return!0;for(var e=0;e-1?"ZH":"EN";function sq(t,e){sZ[t=t.toUpperCase()]=new sW(e),sX[t]=e}sq("EN",{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",custom:"Custom chart",chart:"Chart"}},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:". "}}}}),sq("ZH",{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:"旭日图",custom:"自定义图表",chart:"图表"}},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 sK={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}"},s$="{yyyy}-{MM}-{dd}",sJ={year:"{yyyy}",month:"{yyyy}-{MM}",day:s$,hour:s$+" "+sK.hour,minute:s$+" "+sK.minute,second:s$+" "+sK.second,millisecond:sK.none},sQ=["year","month","day","hour","minute","second","millisecond"],s0=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function s1(t,e){return t+="","0000".substr(0,e-t.length)+t}function s2(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function s5(t,e,n,i){var r=rd(t),o=r[s6(n)](),a=r[s8(n)]()+1,s=Math.floor((a-1)/3)+1,l=r[s7(n)](),u=r["get"+(n?"UTC":"")+"Day"](),h=r[s9(n)](),c=(h-1)%12+1,p=r[lt(n)](),d=r[le(n)](),f=r[ln(n)](),g=h>=12?"pm":"am",y=g.toUpperCase(),v=(i instanceof sW?i:sZ[i||sj]||sZ.EN).getModel("time"),m=v.get("month"),x=v.get("monthAbbr"),_=v.get("dayOfWeek"),b=v.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,g+"").replace(/{A}/g,y+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,s1(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,m[a-1]).replace(/{MMM}/g,x[a-1]).replace(/{MM}/g,s1(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,s1(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,s1(h,2)).replace(/{H}/g,h+"").replace(/{hh}/g,s1(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,s1(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,s1(d,2)).replace(/{s}/g,d+"").replace(/{SSS}/g,s1(f,3)).replace(/{S}/g,f+"")}function s3(t,e){var n=rd(t),i=n[s8(e)]()+1,r=n[s7(e)](),o=n[s9(e)](),a=n[lt(e)](),s=n[le(e)](),l=0===n[ln(e)](),u=l&&0===s,h=u&&0===a,c=h&&0===o,p=c&&1===r;if(p&&1===i)return"year";if(p)return"month";if(c)return"day";if(h)return"hour";if(u)return"minute";else if(l)return"second";else return"millisecond"}function s4(t,e,n){var i=tD(t)?rd(t):t;switch(e=e||s3(t,n)){case"year":return i[s6(n)]();case"half-year":return+(i[s8(n)]()>=6);case"quarter":return Math.floor((i[s8(n)]()+1)/4);case"month":return i[s8(n)]();case"day":return i[s7(n)]();case"half-day":return i[s9(n)]()/24;case"hour":return i[s9(n)]();case"minute":return i[lt(n)]();case"second":return i[le(n)]();case"millisecond":return i[ln(n)]()}}function s6(t){return t?"getUTCFullYear":"getFullYear"}function s8(t){return t?"getUTCMonth":"getMonth"}function s7(t){return t?"getUTCDate":"getDate"}function s9(t){return t?"getUTCHours":"getHours"}function lt(t){return t?"getUTCMinutes":"getMinutes"}function le(t){return t?"getUTCSeconds":"getSeconds"}function ln(t){return t?"getUTCMilliseconds":"getMilliseconds"}function li(t){return t?"setUTCMonth":"setMonth"}function lr(t){return t?"setUTCDate":"setDate"}function lo(t){return t?"setUTCHours":"setHours"}function la(t){return t?"setUTCMinutes":"setMinutes"}function ls(t){return t?"setUTCSeconds":"setSeconds"}function ll(t){return t?"setUTCMilliseconds":"setMilliseconds"}function lu(t){if(!rx(t))return tC(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function lh(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}function lc(t,e,n){function i(t){return t&&tG(t)?t:"-"}function r(t){return!!(null!=t&&!isNaN(t)&&isFinite(t))}var o="time"===e,a=t instanceof Date;if(o||a){var s=o?rd(t):t;if(!isNaN(+s))return s5(s,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(a)return"-"}if("ordinal"===e)return tA(t)?i(t):tD(t)&&r(t)?t+"":"-";var l=rm(t);return r(l)?lu(l):tA(t)?i(t):"boolean"==typeof t?t+"":"-"}var lp=["a","b","c","d","e","f","g"],ld=function(t,e){return"{"+t+(null==e?"":e)+"}"};function lf(t,e,n){tI(e)||(e=[e]);var i=e.length;if(!i)return"";for(var r=e[0].$vars||[],o=0;oi||l.newline?(o=0,h=g,a+=s+n,s=p.height):s=Math.max(s,p.height)}else{var y=p.height+(f?-f.y+p.y:0);(c=a+y)>r||l.newline?(o+=s+n,a=0,c=y,s=p.width):s=Math.max(s,p.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=h+n:a=c+n)})}function l_(t,e,n){n=tV(n||0);var i=e.width,r=e.height,o=ro(t.left,i),a=ro(t.top,r),s=ro(t.right,i),l=ro(t.bottom,r),u=ro(t.width,i),h=ro(t.height,r),c=n[2]+n[0],p=n[1]+n[3],d=t.aspect;switch(isNaN(u)&&(u=i-s-p-o),isNaN(h)&&(h=r-l-c-a),null!=d&&(isNaN(u)&&isNaN(h)&&(d>i/r?u=.8*i:h=.8*r),isNaN(u)&&(u=d*h),isNaN(h)&&(h=u/d)),isNaN(o)&&(o=i-s-u-p),isNaN(a)&&(a=r-l-h-c),t.left||t.right){case"center":o=i/2-u/2-n[3];break;case"right":o=i-u-p}switch(t.top||t.bottom){case"middle":case"center":a=r/2-h/2-n[0];break;case"bottom":a=r-h-c}o=o||0,a=a||0,isNaN(u)&&(u=i-p-o-(s||0)),isNaN(h)&&(h=r-c-a-(l||0));var f=new eq(o+n[3],a+n[0],u,h);return f.margin=n,f}function lb(t,e,n,i,r,o){var a,s=!r||!r.hv||r.hv[0],l=!r||!r.hv||r.hv[1],u=r&&r.boundingMode||"all";if((o=o||t).x=t.x,o.y=t.y,!s&&!l)return!1;if("raw"===u)a="group"===t.type?new eq(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(a=t.getBoundingRect(),t.needLocalTransform()){var h=t.getLocalTransform();(a=a.clone()).applyTransform(h)}var c=l_(tf({width:a.width,height:a.height},e),n,i),p=s?c.x-a.x:0,d=l?c.y-a.y:0;return"raw"===u?(o.x=p,o.y=d):(o.x+=p,o.y+=d),o===t&&t.markRedraw(),!0}function lw(t){var e=t.layoutMode||t.constructor.layoutMode;return tL(e)?e:e?{type:e}:null}function lS(t,e,n){var i=n&&n.ignoreSize;tI(i)||(i=[i,i]);var r=a(lm[0],0),o=a(lm[1],1);function a(n,r){var o={},a=0,u={},h=0;if(tm(n,function(e){u[e]=t[e]}),tm(n,function(t){s(e,t)&&(o[t]=u[t]=e[t]),l(o,t)&&a++,l(u,t)&&h++}),i[r])return l(e,n[1])?u[n[2]]=null:l(e,n[2])&&(u[n[1]]=null),u;if(2===h||!a)return u;if(a>=2)return o;for(var c=0;c=0;a--)o=tc(o,n[a],!0);e.defaultOption=o}return e.defaultOption},n.prototype.getReferringComponents=function(t,e){return rG(this.ecModel,t,{index:this.get(t+"Index",!0),id:this.get(t+"Id",!0)},e)},n.prototype.getBoxLayoutParams=function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}},n.prototype.getZLevelKey=function(){return""},n.prototype.setZLevel=function(t){this.option.zlevel=t},n.protoInitialize=void((e=n.prototype).type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0),n}(sW);rq(lC,sW),rQ(lC),function(t){var e={};t.registerSubTypeDefaulter=function(t,n){e[rZ(t).main]=n},t.determineSubType=function(n,i){var r=i.type;if(!r){var o=rZ(n).main;t.hasSubTypes(n)&&e[o]&&(r=e[o](i))}return r}}(lC),function(t,e){t.topologicalTravel=function(t,i,r,o){if(t.length){var a,s,l,u=(s={},l=[],tm(a=i,function(t){var i,r,o,u=n(s,t),h=(i=u.originalDeps=e(t),r=a,o=[],tm(i,function(t){tg(r,t)>=0&&o.push(t)}),o);u.entryCount=h.length,0===u.entryCount&&l.push(t),tm(h,function(e){0>tg(u.predecessor,e)&&u.predecessor.push(e);var i=n(s,e);0>tg(i.successor,e)&&i.successor.push(t)})}),{graph:s,noEntryList:l}),h=u.graph,c=u.noEntryList,p={};for(tm(t,function(t){p[t]=!0});c.length;){var d=c.pop(),f=h[d],g=!!p[d];g&&(r.call(o,d,f.originalDeps.slice()),delete p[d]),tm(f.successor,g?v:y)}tm(p,function(){throw Error("")})}function y(t){h[t].entryCount--,0===h[t].entryCount&&c.push(t)}function v(t){p[t]=!0,y(t)}};function n(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}}(lC,function(t){var e=[];return tm(lC.getClassesByMainType(t),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=tx(e,function(t){return rZ(t).main}),"dataset"!==t&&0>=tg(e,"dataset")&&e.unshift("dataset"),e});var lA="";"undefined"!=typeof navigator&&(lA=navigator.platform||"");var lD="rgba(0, 0, 0, 0.2)";let lL={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:lD,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:lD,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:lD,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:lD,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:lD,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:lD,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:lA.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 lk=tX(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),lP="original",lO="arrayRows",lR="objectRows",lN="keyedColumns",lE="typedArray",lz="unknown",lB="column",lV={Must:1,Might:2,Not:3},lF=rN();function lG(t,e,n){var i,r,o={},a=lH(e);if(!a||!t)return o;var s=[],l=[],u=lF(e.ecModel).datasetMap,h=a.uid+"_"+n.seriesLayoutBy;tm(t=t.slice(),function(e,n){var a=tL(e)?e:t[n]={name:e};"ordinal"===a.type&&null==i&&(i=n,r=d(a)),o[a.name]=[]});var c=u.get(h)||u.set(h,{categoryWayDim:r,valueWayDim:0});function p(t,e,n){for(var i=0;ie)return t[i];return t[n-1]}(i,a):n;if((h=h||n)&&h.length){var c=h[l];return r&&(u[r]=c),s.paletteIdx=(l+1)%h.length,c}}var lJ="\0_ec_inner",lQ=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return U(e,t),e.prototype.init=function(t,e,n,i,r,o){i=i||{},this.option=null,this._theme=new sW(i),this._locale=new sW(r),this._optionManager=o},e.prototype.setOption=function(t,e,n){var i=l2(e);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,e){return this._resetOption(t,l2(e))},e.prototype._resetOption=function(t,e){var n=!1,i=this._optionManager;if(!t||"recreate"===t){var r=i.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(r,e)):s(this,r),n=!0}if(("timeline"===t||"media"===t)&&this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=i.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=i.getMediaOption(this);a.length&&tm(a,function(t){n=!0,this._mergeOption(t,e)},this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,e){var n=this.option,i=this._componentsMap,r=this._componentsCount,a=[],s=tX(),l=e&&e.replaceMergeMainTypeMap;lF(this).datasetMap=tX(),tm(t,function(t,e){null!=t&&(lC.hasClass(e)?e&&(a.push(e),s.set(e,!0)):n[e]=null==n[e]?th(t):tc(n[e],t,!0))}),l&&l.each(function(t,e){lC.hasClass(e)&&!s.get(e)&&(a.push(e),s.set(e,!0))}),lC.topologicalTravel(a,lC.getAllClassMainTypes(),function(e){var a,s=function(t,e,n){var i=lX.get(e);if(!i)return n;var r=i(t);return r?n.concat(r):n}(this,e,rM(t[e])),u=i.get(e),h=u?l&&l.get(e)?"replaceMerge":"normalMerge":"replaceAll",c=rA(u,s,h);tm(c,function(t){var n,i,r,o,a=t.newOption;tL(a)&&(t.keyInfo.mainType=e,t.keyInfo.subType=(n=e,i=a,r=t.existing,o=lC,i.type?i.type:r?r.subType:o.determineSubType(n,i)))}),n[e]=null,i.set(e,null),r.set(e,0);var p=[],d=[],f=0;tm(c,function(t,n){var i=t.existing,r=t.newOption;if(r){var o="series"===e,s=lC.getClass(e,t.keyInfo.subType,!o);if(!s)return;if("tooltip"===e){if(a)return;a=!0}if(i&&i.constructor===s)i.name=t.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1);else{var l=td({componentIndex:n},t.keyInfo);td(i=new s(r,this,this,l),l),t.brandNew&&(i.__requireNewView=!0),i.init(r,this,this),i.optionUpdated(null,!0)}}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(p.push(i.option),d.push(i),f++):(p.push(void 0),d.push(void 0))},this),n[e]=p,i.set(e,d),r.set(e,f),"series"===e&&o(this)},this),this._seriesIndices||o(this)},e.prototype.getOption=function(){var t=th(this.option);return tm(t,function(e,n){if(lC.hasClass(n)){for(var i=rM(e),r=i.length,o=!1,a=r-1;a>=0;a--)i[a]&&!rO(i[a])?o=!0:(i[a]=null,!o&&r--);i.length=r,t[n]=i}}),delete t[lJ],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,e){var n=this._componentsMap.get(t);if(n){var i=n[e||0];if(i)return i;if(null==e){for(var r=0;r=a:"max"===s?o<=a:o===a)||(r=!1)}}),r})(o[u].query,i,r)&&s.push(u);return!s.length&&a&&(s=[-1]),s.length&&(e=s,n=this._currentMediaIndices,e.join(",")!==n.join(","))&&(l=tx(s,function(t){return th(-1===t?a.option:o[t].option)})),this._currentMediaIndices=s,l},t}(),l9=tL,ut=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function ue(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=ut.length;n=0;g--){var y=t[g];if(s||(p=y.data.rawIndexOf(y.stackedByDimension,c)),p>=0){var v=y.data.getByRawIndex(y.stackResultDimension,p);if("all"===l||"positive"===l&&v>0||"negative"===l&&v<0||"samesign"===l&&d>=0&&v>0||"samesign"===l&&d<=0&&v<0){d=function(t,e){var n=Math.max(rl(t),rl(e)),i=t+e;return n>20?i:ra(i,n)}(d,v),f=v;break}}}return i[0]=d,i[1]=f,i})})}var uv=function(t){this.data=t.data||(t.sourceFormat===lN?{}:[]),this.sourceFormat=t.sourceFormat||lz,this.seriesLayoutBy=t.seriesLayoutBy||lB,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;nu&&(u=d)}s[0]=l,s[1]=u}},i=function(){return this._data?this._data.length/this._dimSize:0};function r(t){for(var e=0;e=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""}):void 0},t.prototype.getRawValue=function(t,e){return uE(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function uV(t){var e,n;return tL(t)?t.type&&(n=t):e=t,{text:e,frag:n}}function uF(t){return new uG(t)}var uG=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){var e,n,i,r,o=this._upstream,a=t&&t.skip;if(this._dirty&&o){var s=this.context;s.data=s.outputData=o.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!a&&(i=this._plan(this.context));var l=((e=this._modBy)>=1||(e=1),e),u=this._modDataCount||0,h=((n=t&&t.modBy)>=1||(n=1),n),c=t&&t.modDataCount||0;(l!==h||u!==c)&&(i="reset"),(this._dirty||"reset"===i)&&(this._dirty=!1,r=this._doReset(a)),this._modBy=h,this._modDataCount=c;var p=t&&t.step;if(o?this._dueEnd=o._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,f=Math.min(null!=p?this._dueIndex+p:1/0,this._dueEnd);if(!a&&(r||d1&&i>0?s:a}};return o;function a(){return e=t?null:oe},gte:function(t,e){return t>=e}},uK=function(){function t(t,e){tD(e)||uX(""),this._opFn=uq[t],this._rvalFloat=rm(e)}return t.prototype.evaluate=function(t){return tD(t)?this._opFn(t,this._rvalFloat):this._opFn(rm(t),this._rvalFloat)},t}(),u$=function(){function t(t,e){var n="desc"===t;this._resultLT=n?1:-1,null==e&&(e=n?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=tD(t)?t:rm(t),i=tD(e)?e:rm(e),r=isNaN(n),o=isNaN(i);if(r&&(n=this._incomparable),o&&(i=this._incomparable),r&&o){var a=tC(t),s=tC(e);a&&(n=s?t:0),s&&(i=a?e:0)}return ni?-this._resultLT:0},t}(),uJ=function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=rm(e)}return t.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n!==this._rvalTypeof&&("number"===n||"number"===this._rvalTypeof)&&(e=rm(t)===this._rvalFloat)}return this._isEQ?e:!e},t}(),uQ=function(){function t(){}return t.prototype.getRawData=function(){throw Error("not supported")},t.prototype.getRawDataItem=function(t){throw Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(t){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(t,e){},t.prototype.retrieveValueFromItem=function(t,e){},t.prototype.convertValue=function(t,e){return uZ(t,e)},t}();function u0(t){return u4(t.sourceFormat)||uX(""),t.data}function u1(t){var e=t.sourceFormat,n=t.data;if(u4(e)||uX(""),e===lO){for(var i=[],r=0,o=n.length;r65535?u8:u7}function hi(){return[1/0,-1/0]}function hr(t,e,n,i,r){var o=he[n||"float"];if(r){var a=t[e],s=a&&a.length;if(s!==i){for(var l=new o(i),u=0;uy[1]&&(y[1]=g)}return this._rawCount=this._count=s,{start:a,end:s}},t.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,r=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=tx(o,function(t){return t.property}),u=0;uy[1]&&(y[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&e=0&&e=this._rawCount||t<0)return -1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&nt))return o;r=o-1}}return -1},t.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks[t],r=[];if(!i)return r;null==n&&(n=1/0);for(var o=1/0,a=-1,s=0,l=0,u=this.count();l=0&&a<0)&&(o=c,a=h,s=0),h===a&&(r[s++]=l))}return r.length=s,r},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,i=this._count;if(n===Array){t=new n(i);for(var r=0;r=u&&y<=h||isNaN(y))&&(a[s++]=d),d++}p=!0}else if(2===r){for(var f=c[i[0]],v=c[i[1]],m=t[i[1]][0],x=t[i[1]][1],g=0;g=u&&y<=h||isNaN(y))&&(_>=m&&_<=x||isNaN(_))&&(a[s++]=d),d++}p=!0}}if(!p)if(1===r)for(var g=0;g=u&&y<=h||isNaN(y))&&(a[s++]=b)}else for(var g=0;gt[M][1])&&(w=!1)}w&&(a[s++]=e.getRawIndex(g))}return sy[1]&&(y[1]=g)}}}},t.prototype.lttbDownSample=function(t,e){var n,i,r,o=this.clone([t],!0),a=o._chunks[t],s=this.count(),l=0,u=Math.floor(1/e),h=this.getRawIndex(0),c=new(hn(this._rawCount))(Math.min((Math.ceil(s/u)+2)*2,s));c[l++]=h;for(var p=1;pn&&(n=i,r=m)}I>0&&Ia&&(f=a-u);for(var g=0;gd&&(d=y,p=u+g)}var v=this.getRawIndex(h),m=this.getRawIndex(p);hu-d&&(a.length=s=u-d);for(var f=0;fh[1]&&(h[1]=y),c[p++]=v}return r._count=p,r._indices=c,r._updateGetRawIdx(),r},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,r=0,o=this.count();ra&&(a=l)}return e=[o,a],this._extent[t]=e,e},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,r=0;r=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,n,i){return uZ(t[i],this._dimensions[i])}d={arrayRows:t,objectRows:function(t,e,n,i){return uZ(t[e],this._dimensions[i])},keyedColumns:t,original:function(t,e,n,i){var r=t&&(null==t.value?t:t.value);return uZ(r instanceof Array?r[i]:r,this._dimensions[i])},typedArray:function(t,e,n,i){return t[i]}}}(),t}(),ha=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n=this._sourceHost,i=this._getUpstreamSourceManagers(),r=!!i.length;if(hl(n)){var o=void 0,a=void 0,s=void 0;if(r){var l=i[0];l.prepareSource(),o=(s=l.getSource()).data,a=s.sourceFormat,e=[l._getVersionSign()]}else a=tP(o=n.get("data",!0))?lE:lP,e=[];var u=this._getSourceMetaRawOption()||{},h=s&&s.metaRawOption||{},c=tE(u.seriesLayoutBy,h.seriesLayoutBy)||null,p=tE(u.sourceHeader,h.sourceHeader),d=tE(u.dimensions,h.dimensions);t=c!==h.seriesLayoutBy||!!p!=!!h.sourceHeader||d?[ux(o,{seriesLayoutBy:c,sourceHeader:p,dimensions:d},a)]:[]}else if(r){var f=this._applyTransform(i);t=f.sourceList,e=f.upstreamSignList}else t=[ux(n.get("source",!0),this._getSourceMetaRawOption(),null)],e=[];this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,n,i=this._sourceHost,r=i.get("transform",!0),o=i.get("fromTransformResult",!0);null!=o&&1!==t.length&&hu("");var a=[],s=[];return(tm(t,function(t){t.prepareSource();var e=t.getSource(o||0);null==o||e||hu(""),a.push(e),s.push(t._getVersionSign())}),r)?n=function(t,e,n){var i=rM(t),r=i.length;r||uX("");for(var o=0;o1||i>0&&!e.noHeader;return tm(e.blocks,function(e){var i=t(e);i>=n&&(n=i+ +(r&&(!i||hg(e)&&!e.noHeader)))}),n}return 0}(e)],richText:hd[r]},s=[],l=e.blocks||[];tF(!l||tI(l)),l=l||[];var u=t.orderMode;if(e.sortBlocks&&u){l=l.slice();var h={valueAsc:"asc",valueDesc:"desc"};if(tK(h,u)){var c=new u$(h[u],null);l.sort(function(t,e){return c.evaluate(t.sortParam,e.sortParam)})}else"seriesDesc"===u&&l.reverse()}tm(l,function(n,r){var o=e.valueFormatter,l=(hg(n)?hy:hv)(o?td(td({},t),{valueFormatter:o}):t,n,r>0?a.html:0,i);null!=l&&s.push(l)});var p="richText"===t.renderMode?s.join(a.richText):hx(i,s.join(""),o?n:a.html);if(o)return p;var d=lc(e.header,"ordinal",t.useUTC),f=hc(i,t.renderMode).nameStyle,g=hh(i);return"richText"===t.renderMode?h_(t,d,f)+a.richText+p:hx(i,'
'+em(d)+"
"+p,n)}function hv(t,e,n,i){var r=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,h=e.valueFormatter||t.valueFormatter||function(t){return tx(t=tI(t)?t:[t],function(t,e){return lc(t,tI(b)?b[e]:b,u)})};if(!o||!a){var c,p,d,f,g,y,v,m,x=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",r),_=o?"":lc(l,"ordinal",u),b=e.valueType,w=a?[]:h(e.value,e.dataIndex),S=!s||!o,M=!s&&o,I=hc(i,r),T=I.nameStyle,C=I.valueStyle;return"richText"===r?(s?"":x)+(o?"":h_(t,_,T))+(a?"":(c=t,p=w,d=S,f=M,g=[C],d&&g.push({padding:[0,0,0,f?10:20],align:"right"}),c.markupStyleCreator.wrapRichTextStyle(tI(p)?p.join(" "):p,g))):hx(i,(s?"":x)+(o?"":''+em(_)+"")+(a?"":(y=w,v=S,m=M,''+tx(y=tI(y)?y:[y],function(t){return em(t)}).join("  ")+"")),n)}}function hm(t,e,n,i,r,o){if(t)return(hg(t)?hy:hv)({useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,o)}function hx(t,e,n){return'
'+e+'
'}function h_(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function hb(t,e){return lg(t.getData().getItemVisual(e,"style")[t.visualDrawType])}function hw(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var hS=function(){function t(){this.richTextStyles={},this._nextStyleNameId=r_()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var i,r,o,a,s,l,u="richText"===n?this._generateStyleName():null,h=(a=(o=tC(i={color:e,type:t,renderMode:n,markerId:u})?{color:i,extraCssText:r}:i||{}).color,s=o.type,r=o.extraCssText,l=o.renderMode||"html",a?"html"===l?"subItem"===s?'':'':{renderMode:l,content:"{"+(o.markerId||"markerX")+"|} ",style:"subItem"===s?{width:4,height:4,borderRadius:2,backgroundColor:a}:{width:10,height:10,borderRadius:5,backgroundColor:a}}:"");return tC(h)?h:(this.richTextStyles[u]=h.style,h.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};tI(e)?tm(e,function(t){return td(n,t)}):td(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},t}();function hM(t){var e,n,i,r,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),h=u.length,c=o.getRawValue(a),p=tI(c),d=hb(o,a);if(h>1||p&&!h){var f=function(t,e,n,i,r){var o=e.getData(),a=t_(t,function(t,e,n){var i=o.getDimensionInfo(n);return t=t||i&&!1!==i.tooltip&&null!=i.displayName},!1),s=[],l=[],u=[];function h(t,e){var n=o.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(a?u.push(hf("nameValue",{markerType:"subItem",markerColor:r,name:n.displayName,value:t,valueType:n.type})):(s.push(t),l.push(n.type)))}return i.length?tm(i,function(t){h(uE(o,n,t),t)}):tm(t,h),{inlineValues:s,inlineValueTypes:l,blocks:u}}(c,o,a,u,d);e=f.inlineValues,n=f.inlineValueTypes,i=f.blocks,r=f.inlineValues[0]}else if(h){var g=l.getDimensionInfo(u[0]);r=e=uE(l,a,u[0]),n=g.type}else r=e=p?c[0]:c;var y=rP(o),v=y&&o.name||"",m=l.getName(a),x=s?v:m;return hf("section",{header:v,noHeader:s||!y,sortParam:r,blocks:[hf("nameValue",{markerType:"item",markerColor:d,name:x,noName:!tG(x),value:e,valueType:n,dataIndex:a})].concat(i||[])})}var hI=rN();function hT(t,e){return t.getName(e)||t.getId(e)}var hC="__universalTransitionEnabled",hA=function(t){var e;function n(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return U(n,t),n.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=uF({count:hL,reset:hk}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(hI(this).sourceManager=new ha(this)).prepareSource();var i=this.getInitialData(t,n);hO(i,this),this.dataTask.context.data=i,hI(this).dataBeforeProcessed=i,hD(this),this._initSelectedMapFromData(i)},n.prototype.mergeDefaultAndTheme=function(t,e){var n=lw(this),i=n?lM(t):{},r=this.subType;lC.hasClass(r)&&(r+="Series"),tc(t,e.getTheme().get(this.subType)),tc(t,this.getDefaultOption()),rI(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&lS(t,i,n)},n.prototype.mergeOption=function(t,e){t=tc(this.option,t,!0),this.fillDataTextStyle(t.data);var n=lw(this);n&&lS(this.option,t,n);var i=hI(this).sourceManager;i.dirty(),i.prepareSource();var r=this.getInitialData(t,e);hO(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,hI(this).dataBeforeProcessed=r,hD(this),this._initSelectedMapFromData(r)},n.prototype.fillDataTextStyle=function(t){if(t&&!tP(t))for(var e=["show"],n=0;nthis.getShallow("animationThreshold")&&(e=!1),!!e},n.prototype.restoreData=function(){this.dataTask.dirty()},n.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel,r=lq.prototype.getColorFromPalette.call(this,t,e,n);return r||(r=i.getColorFromPalette(t,e,n)),r},n.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},n.prototype.getProgressive=function(){return this.get("progressive")},n.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},n.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},n.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,r=this.getData(e);if("series"===i||"all"===n){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var o=0;o=0&&n.push(r)}return n},n.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(e);return("all"===n||n[hT(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},n.prototype.isUniversalTransitionEnabled=function(){if(this[hC])return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},n.prototype._innerSelect=function(t,e){var n,i,r=this.option,o=r.selectedMode,a=e.length;if(o&&a){if("series"===o)r.selectedMap="all";else if("multiple"===o){tL(r.selectedMap)||(r.selectedMap={});for(var s=r.selectedMap,l=0;l0&&this._innerSelect(t,e)}},n.registerClass=function(t){return lC.registerClass(t)},n.protoInitialize=void((e=n.prototype).type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"),n}(lC);function hD(t){var e,n,i,r=t.name;rP(t)||(t.name=(n=(e=t.getRawData()).mapDimensionsAll("seriesName"),i=[],tm(n,function(t){var n=e.getDimensionInfo(t);n.displayName&&i.push(n.displayName)}),i.join(" ")||r))}function hL(t){return t.model.getRawData().count()}function hk(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),hP}function hP(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function hO(t,e){tm(tZ(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(n){t.wrapMethod(n,tM(hR,e))})}function hR(t,e){var n=hN(t);return n&&n.setOutputEnd((e||this).count()),e}function hN(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(t.uid))}return i}}ty(hA,uB),ty(hA,lq),rq(hA,lC);var hE=function(){function t(){this.group=new i9,this.uid=sU("viewComponent")}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){},t.prototype.updateLayout=function(t,e,n,i){},t.prototype.updateVisual=function(t,e,n,i){},t.prototype.toggleBlurSeries=function(t,e,n){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();function hz(){var t=rN();return function(e){var n=t(e),i=e.pipelineContext,r=!!n.large,o=!!n.progressiveRender,a=n.large=!!(i&&i.large),s=n.progressiveRender=!!(i&&i.progressiveRender);return(r!==a||o!==s)&&"reset"}}rj(hE),rQ(hE);var hB=oU.CMD,hV=[[],[],[]],hF=Math.sqrt,hG=Math.atan2;function hW(t,e){if(e){var n,i,r,o,a,s,l=t.data,u=t.len(),h=hB.M,c=hB.C,p=hB.L,d=hB.R,f=hB.A,g=hB.Q;for(r=0,o=0;r1&&(a*=hH(f),s*=hH(f));var g=(r===o?-1:1)*hH((a*a*(s*s)-a*a*(d*d)-s*s*(p*p))/(a*a*(d*d)+s*s*(p*p)))||0,y=g*a*d/s,v=-(g*s)*p/a,m=(t+n)/2+hY(c)*y-hU(c)*v,x=(e+i)/2+hU(c)*y+hY(c)*v,_=hq([1,0],[(p-y)/a,(d-v)/s]),b=[(p-y)/a,(d-v)/s],w=[(-1*p-y)/a,(-1*d-v)/s],S=hq(b,w);if(-1>=hj(b,w)&&(S=hX),hj(b,w)>=1&&(S=0),S<0){var M=Math.round(S/hX*1e6)/1e6;S=2*hX+M%2*hX}h.addData(u,m,x,a,s,_,S,c,o)}var h$=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,hJ=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,hQ=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return t0(e,t),e.prototype.applyTransform=function(t){},e}(o4);function h0(t){return null!=t.setData}function h1(t,e){var n=function(t){var e,n=new oU;if(!t)return n;var i=0,r=0,o=0,a=0,s=oU.CMD,l=t.match(h$);if(!l)return n;for(var u=0;uL*L+k*k&&(M=T,I=C),{cx:M,cy:I,x0:-h,y0:-c,x1:M*(r/b-1),y1:I*(r/b-1)}}var ch=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},cc=function(t){function e(e){return t.call(this,e)||this}return t0(e,t),e.prototype.getDefaultShape=function(){return new ch},e.prototype.buildPath=function(t,e){!function(t,e){var n,i=cs(e.r,0),r=cs(e.r0||0,0),o=i>0,a=r>0;if(o||a){if(o||(i=r,r=0),r>i){var s=i;i=r,r=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var h=e.cx,c=e.cy,p=!!e.clockwise,d=co(u-l),f=d>ct&&d%ct;if(f>1e-4&&(d=f),i>1e-4)if(d>ct-1e-4)t.moveTo(h+i*cn(l),c+i*ce(l)),t.arc(h,c,i,l,u,!p),r>1e-4&&(t.moveTo(h+r*cn(u),c+r*ce(u)),t.arc(h,c,r,u,l,p));else{var g=void 0,y=void 0,v=void 0,m=void 0,x=void 0,_=void 0,b=void 0,w=void 0,S=void 0,M=void 0,I=void 0,T=void 0,C=void 0,A=void 0,D=void 0,L=void 0,k=i*cn(l),P=i*ce(l),O=r*cn(u),R=r*ce(u),N=d>1e-4;if(N){var E=e.cornerRadius;E&&(g=(n=function(t){var e;if(tI(t)){var n=t.length;if(!n)return t;e=1===n?[t[0],t[0],0,0]:2===n?[t[0],t[0],t[1],t[1]]:3===n?t.concat(t[2]):t}else e=[t,t,t,t];return e}(E))[0],y=n[1],v=n[2],m=n[3]);var z=co(i-r)/2;if(x=cl(z,v),_=cl(z,m),b=cl(z,g),w=cl(z,y),I=S=cs(x,_),T=M=cs(b,w),(S>1e-4||M>1e-4)&&(C=i*cn(u),A=i*ce(u),D=r*cn(l),L=r*ce(l),d1e-4){var Y=cl(v,I),X=cl(m,I),Z=cu(D,L,k,P,i,Y,p),j=cu(C,A,O,R,i,X,p);t.moveTo(h+Z.cx+Z.x0,c+Z.cy+Z.y0),I0&&t.arc(h+Z.cx,c+Z.cy,Y,cr(Z.y0,Z.x0),cr(Z.y1,Z.x1),!p),t.arc(h,c,i,cr(Z.cy+Z.y1,Z.cx+Z.x1),cr(j.cy+j.y1,j.cx+j.x1),!p),X>0&&t.arc(h+j.cx,c+j.cy,X,cr(j.y1,j.x1),cr(j.y0,j.x0),!p))}else t.moveTo(h+k,c+P),t.arc(h,c,i,l,u,!p);else t.moveTo(h+k,c+P);if(r>1e-4&&N)if(T>1e-4){var Y=cl(g,T),X=cl(y,T),Z=cu(O,R,C,A,r,-X,p),j=cu(k,P,D,L,r,-Y,p);t.lineTo(h+Z.cx+Z.x0,c+Z.cy+Z.y0),T0&&t.arc(h+Z.cx,c+Z.cy,X,cr(Z.y0,Z.x0),cr(Z.y1,Z.x1),!p),t.arc(h,c,r,cr(Z.cy+Z.y1,Z.cx+Z.x1),cr(j.cy+j.y1,j.cx+j.x1),p),Y>0&&t.arc(h+j.cx,c+j.cy,Y,cr(j.y1,j.x1),cr(j.y0,j.x0),!p))}else t.lineTo(h+O,c+R),t.arc(h,c,r,u,l,p);else t.lineTo(h+O,c+R)}else t.moveTo(h,c);t.closePath()}}}(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(o4);cc.prototype.type="sector";let cp=cc;var cd=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},cf=function(t){function e(e){return t.call(this,e)||this}return t0(e,t),e.prototype.getDefaultShape=function(){return new cd},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=2*Math.PI;t.moveTo(n+e.r,i),t.arc(n,i,e.r,0,r,!1),t.moveTo(n+e.r0,i),t.arc(n,i,e.r0,0,r,!0)},e}(o4);cf.prototype.type="ring";let cg=cf;function cy(t,e,n){var i=e.smooth,r=e.points;if(r&&r.length>=2){if(i){var o=function(t,e,n,i){var r,o,a,s,l=[],u=[],h=[],c=[];if(i){a=[1/0,1/0],s=[-1/0,-1/0];for(var p=0,d=t.length;pcF[1]){if(a=!1,r)return a;var u=Math.abs(cF[0]-cV[1]),h=Math.abs(cV[0]-cF[1]);Math.min(u,h)>i.len()&&(uMath.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function pe(t,e,n){if(t&&e){var i,r=(i={},t.traverse(function(t){!t.isGroup&&t.anid&&(i[t.anid]=t)}),i);e.traverse(function(t){if(!t.isGroup&&t.anid){var e=r[t.anid];if(e){var i=o(t);t.attr(o(e)),sh(t,i,n,aT(t).dataIndex)}}})}function o(t){var e={x:t.x,y:t.y,rotation:t.rotation};return null!=t.shape&&(e.shape=td({},t.shape)),e}}function pn(t,e){return tx(t,function(t){var n=t[0];n=cZ(n=cX(n,e.x),e.x+e.width);var i=t[1];return[n,i=cZ(i=cX(i,e.y),e.y+e.height)]})}function pi(t,e){var n=cX(t.x,e.x),i=cZ(t.x+t.width,e.x+e.width),r=cX(t.y,e.y),o=cZ(t.y+t.height,e.y+e.height);if(i>=n&&o>=r)return{x:n,y:r,width:i-n,height:o-r}}function pr(t,e,n){var i=td({rectHover:!0},e),r=i.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(r.image=t.slice(8),tf(r,n),new ae(i)):c0(t.replace("path://",""),i,n,"center")}function po(t,e,n,i,r){for(var o=0,a=r[r.length-1];o=-1e-6)return!1;var f=t-r,g=e-o,y=(f*h-u*g)/d;if(y<0||y>1)return!1;var v=(f*p-c*g)/d;return!(v<0)&&!(v>1)}function ps(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,r=tC(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:i,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&tm(tw(l),function(t){tK(s,t)||(s[t]=l[t],s.$vars.push(t))});var u=aT(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:i,option:tf({content:i,encodeHTMLContent:!0,formatterParams:s},r)}}function pl(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function pu(t,e){if(t)if(tI(t))for(var n=0;n=0?c():h=setTimeout(c,-r),l=i};return p.clear=function(){h&&(clearTimeout(h),h=null)},p.debounceNextCall=function(t){s=t},p}function pw(t,e,n,i){var r=t[e];if(r){var o=r[pm]||r,a=r[p_];if(r[px]!==n||a!==i){if(null==n||!i)return t[e]=o;(r=t[e]=pb(o,n,"debounce"===i))[pm]=o,r[p_]=i,r[px]=n}return r}}function pS(t,e){var n=t[e];n&&n[pm]&&(n.clear&&n.clear(),t[e]=n[pm])}var pM=rN(),pI={itemStyle:r0(sV,!0),lineStyle:r0(sE,!0)},pT={lineStyle:"stroke",itemStyle:"fill"};function pC(t,e){var n=t.visualStyleMapper||pI[e];return n||(console.warn("Unknown style type '"+e+"'."),pI.itemStyle)}function pA(t,e){var n=t.visualDrawType||pT[e];return n||(console.warn("Unknown style type '"+e+"'."),"fill")}var pD=new sW,pL=Math.PI,pk=function(){function t(t,e,n,i){this._stageTaskMap=tX(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(t){var e=t.overallTask;e&&e.dirty()})},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,r=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex?n.step:null,o=i&&i.modDataCount,a=null!=o?Math.ceil(o/r):null;return{step:r,modBy:a,modDataCount:o}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData().count(),r=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,o=t.get("large")&&i>=t.get("largeThreshold"),a="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:r,modDataCount:a,large:o}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=tX();t.eachSeries(function(t){var i=t.getProgressive(),r=t.uid;n.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(t,t.dataTask)})},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;tm(this._allHandlers,function(i){var r=t.get(i.uid)||t.set(i.uid,{});tF(!(i.reset&&i.overallReset),""),i.reset&&this._createSeriesStageTask(i,r,e,n),i.overallReset&&this._createOverallStageTask(i,r,e,n)},this)},t.prototype.prepareView=function(t,e,n,i){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=n,o.api=i,r.__block=!t.incrementalPrepareRender,this._pipe(e,r)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,i){i=i||{};var r=!1,o=this;function a(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}tm(t,function(t,s){if(!i.visualType||i.visualType===t.visualType){var l=o._stageTaskMap.get(t.uid),u=l.seriesTaskMap,h=l.overallTask;if(h){var c,p=h.agentStubMap;p.each(function(t){a(i,t)&&(t.dirty(),c=!0)}),c&&h.dirty(),o.updatePayload(h,n);var d=o.getPerformArgs(h,i.block);p.each(function(t){t.perform(d)}),h.perform(d)&&(r=!0)}else u&&u.each(function(s,l){a(i,s)&&s.dirty();var u=o.getPerformArgs(s,i.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(u)&&(r=!0)})}}),this.unfinished=r||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e=t.dataTask.perform()||e}),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,i){var r=this,o=e.seriesTaskMap,a=e.seriesTaskMap=tX(),s=t.seriesType,l=t.getTargetSeries;function u(e){var s=e.uid,l=a.set(s,o&&o.get(s)||uF({plan:pE,reset:pz,count:pF}));l.context={model:e,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:r},r._pipe(e,l)}t.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,i).each(u)},t.prototype._createOverallStageTask=function(t,e,n,i){var r=this,o=e.overallTask=e.overallTask||uF({reset:pP});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:r};var a=o.agentStubMap,s=o.agentStubMap=tX(),l=t.seriesType,u=t.getTargetSeries,h=!0,c=!1;function p(t){var e=t.uid,n=s.set(e,a&&a.get(e)||(c=!0,uF({reset:pO,onDirty:pN})));n.context={model:t,overallProgress:h},n.agent=o,n.__block=h,r._pipe(t,n)}tF(!t.createOnAllSeries,""),l?n.eachRawSeriesByType(l,p):u?u(n,i).each(p):(h=!1,tm(n.getSeries(),p)),c&&o.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,i=this._pipelineMap.get(n);i.head||(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxInPipeline=i.count++,e.__pipeline=i},t.wrapStageHandler=function(t,e){return tT(t)&&(t={overallReset:t,seriesType:function(t){f=null;try{t(pG,pW)}catch(t){}return f}(t)}),t.uid=sU("stageHandler"),e&&(t.visualType=e),t},t}();function pP(t){t.overallReset(t.ecModel,t.api,t.payload)}function pO(t){return t.overallProgress&&pR}function pR(){this.agent.dirty(),this.getDownstream().dirty()}function pN(){this.agent&&this.agent.dirty()}function pE(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function pz(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=rM(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?tx(e,function(t,e){return pV(e)}):pB}var pB=pV(0);function pV(t){return function(e,n){var i=n.data,r=n.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o0&&h===r.length-u.length){var c=r.slice(0,h);"data"!==c&&(e.mainType=c,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(r)&&(n[r]=t,s=!0),s||(i[r]=t)})}return{cptQuery:e,dataQuery:n,otherQuery:i}},t.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,r=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=e.cptQuery,l=e.dataQuery;return u(s,o,"mainType")&&u(s,o,"subType")&&u(s,o,"index","componentIndex")&&u(s,o,"name")&&u(s,o,"id")&&u(l,r,"name")&&u(l,r,"dataIndex")&&u(l,r,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,i,r));function u(t,e,n,i){return null==t[n]||e[i||n]===t[n]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),p$=["symbol","symbolSize","symbolRotate","symbolOffset"],pJ=p$.concat(["symbolKeepAspect"]);function pQ(t,e,n){switch(n){case"color":return t.getItemVisual(e,"style")[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n)}}function p0(t,e){switch(e){case"color":return t.getVisual("style")[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}function p1(t,e,n,i){switch(n){case"color":t.ensureUniqueItemVisual(e,"style")[t.getVisual("drawType")]=i,t.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":t.ensureUniqueItemVisual(e,"style").opacity=i;break;case"symbol":case"symbolSize":case"liftZ":t.setItemVisual(e,n,i)}}function p2(t,e){tm([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(n){e(n[0],function(e,i,r){var o,a;e=td({},e),r.dispatchAction(td(e,{type:n[1],seriesIndex:(o=e,a=[],i.eachComponent({mainType:"series",subType:t,query:o},function(t){a.push(t.seriesIndex)}),a)}))})})}function p5(t,e,n,i,r){var o=t+e;n.isSilent(o)||i.eachComponent({mainType:"series",subType:"pie"},function(t){for(var e=t.seriesIndex,i=t.option.selectedMap,a=r.selected,s=0;s=0&&dh(l)?l:.5,t.createRadialGradient(a,s,0,a,s,l)):(u=null==e.x?0:e.x,h=null==e.x2?1:e.x2,c=null==e.y?0:e.y,p=null==e.y2?0:e.y2,e.global||(u=u*n.width+n.x,h=h*n.width+n.x,c=c*n.height+n.y,p=p*n.height+n.y),u=dh(u)?u:0,h=dh(h)?h:1,c=dh(c)?c:0,p=dh(p)?p:0,t.createLinearGradient(u,c,h,p)),f=e.colorStops,g=0;g0&&(e=i.lineDash,n=i.lineWidth,e&&"solid"!==e&&n>0?"dashed"===e?[4*n,2*n]:"dotted"===e?[n]:tD(e)?[e]:tI(e)?e:null:null),o=i.lineDashOffset;if(r){var a=i.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&1!==a&&(r=tx(r,function(t){return t/a}),o/=a)}return[r,o]}var dg=new oU(!0);function dy(t){var e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0}function dv(t){return"string"==typeof t&&"none"!==t}function dm(t){var e=t.fill;return null!=e&&"none"!==e}function dx(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function d_(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function db(t,e,n){var i=r3(e.image,e.__image,n);if(r6(i)){var r=t.createPattern(i,e.repeat||"repeat");if("function"==typeof DOMMatrix&&r&&r.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*tJ),o.scaleSelf(e.scaleX||1,e.scaleY||1),r.setTransform(o)}return r}}var dw=["shadowBlur","shadowOffsetX","shadowOffsetY"],dS=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function dM(t,e,n,i,r){var o=!1;if(!i&&e===(n=n||{}))return!1;if(i||e.opacity!==n.opacity){dC(t,r),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?os.opacity:a}(i||e.blend!==n.blend)&&(o||(dC(t,r),o=!0),t.globalCompositeOperation=e.blend||os.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,e,n){if(!this[dB]){if(this._disposed)return void this.id;if(tL(e)&&(n=e.lazyUpdate,i=e.silent,r=e.replaceMerge,o=e.transition,e=e.notMerge),this[dB]=!0,!this._model||e){var i,r,o,a=new l7(this._api),s=this._theme,l=this._model=new lQ;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:r},d1);var u={seriesTransition:o,optionChanged:!0};if(n)this[dV]={silent:i,updateParams:u},this[dB]=!1,this.getZr().wakeUp();else{try{g(this),m.update.call(this,null,u)}catch(t){throw this[dV]=null,this[dB]=!1,t}this._ssr||this._zr.flush(),this[dV]=null,this[dB]=!1,w.call(this,i),S.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||X.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){return t=t||{},this._zr.painter.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){return t=t||{},this._zr.painter.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(X.svgSupported){var t=this._zr;return tm(t.storage.getDisplayList(),function(t){t.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(this._disposed)return void this.id;var e=(t=t||{}).excludeComponents,n=this._model,i=[],r=this;tm(e,function(t){n.eachComponent({mainType:t},function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(i.push(e),e.group.ignore=!0)})});var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return tm(i,function(t){t.group.ignore=!1}),o},e.prototype.getConnectedDataURL=function(t){if(this._disposed)return void this.id;var e="svg"===t.type,n=this.group,i=Math.min,r=Math.max,o=1/0;if(!d6[n])return this.getDataURL(t);var a=o,s=o,l=-o,u=-o,h=[],c=t&&t.pixelRatio||this.getDevicePixelRatio();tm(d4,function(o,c){if(o.group===n){var p=e?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(th(t)),d=o.getDom().getBoundingClientRect();a=i(d.left,a),s=i(d.top,s),l=r(d.right,l),u=r(d.bottom,u),h.push({dom:p,left:d.left,top:d.top})}}),a*=c,s*=c,l*=c,u*=c;var p=l-a,d=u-s,f=K.createCanvas(),g=ri(f,{renderer:e?"svg":"canvas"});if(g.resize({width:p,height:d}),!e)return t.connectedBackgroundColor&&g.add(new au({shape:{x:0,y:0,width:p,height:d},style:{fill:t.connectedBackgroundColor}})),tm(h,function(t){var e=new ae({style:{x:t.left*c-a,y:t.top*c-s,image:t.dom}});g.add(e)}),g.refreshImmediately(),f.toDataURL("image/"+(t&&t.type||"png"));var y="";return tm(h,function(t){var e=t.left-a,n=t.top-s;y+=''+t.dom+""}),g.painter.getSvgRoot().innerHTML=y,t.connectedBackgroundColor&&g.painter.setBackgroundColor(t.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()},e.prototype.convertToPixel=function(t,e){return x(this,"convertToPixel",t,e)},e.prototype.convertFromPixel=function(t,e){return x(this,"convertFromPixel",t,e)},e.prototype.containPixel=function(t,e){var n;return this._disposed?void this.id:(tm(rz(this._model,t),function(t,i){i.indexOf("Models")>=0&&tm(t,function(t){var r=t.coordinateSystem;if(r&&r.containPoint)n=n||!!r.containPoint(e);else if("seriesModels"===i){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n=n||o.containPoint(e,t))}},this)},this),!!n)},e.prototype.getVisual=function(t,e){var n=rz(this._model,t,{defaultMainType:"series"}),i=n.seriesModel.getData(),r=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?i.indexOfRawIndex(n.dataIndex):null;return null!=r?pQ(i,r,e):p0(i,e)},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,e,n,i=this;tm(dK,function(t){var e=function(e){var n,r=i.getModel(),o=e.target;if("globalout"===t?n={}:o&&p3(o,function(t){var e=aT(t);if(e&&null!=e.dataIndex){var i=e.dataModel||r.getSeriesByIndex(e.seriesIndex);return n=i&&i.getDataParams(e.dataIndex,e.dataType,o)||{},!0}if(e.eventData)return n=td({},e.eventData),!0},!0),n){var a=n.componentType,s=n.componentIndex;("markLine"===a||"markPoint"===a||"markArea"===a)&&(a="series",s=n.seriesIndex);var l=a&&null!=s&&r.getComponent(a,s),u=l&&i["series"===l.mainType?"_chartsMap":"_componentsMap"][l.__viewId];n.event=e,n.type=t,i._$eventProcessor.eventInfo={targetEl:o,packedEvent:n,model:l,view:u},i.trigger(t,n)}};e.zrEventfulCallAtLast=!0,i._zr.on(t,e,i)}),tm(dQ,function(t,e){i._messageCenter.on(e,function(t){this.trigger(e,t)},i)}),tm(["selectchanged"],function(t){i._messageCenter.on(t,function(e){this.trigger(t,e)},i)}),t=this._messageCenter,e=this,n=this._api,t.on("selectchanged",function(t){var i=n.getModel();t.isFromClick?(p5("map","selectchanged",e,i,t),p5("pie","selectchanged",e,i,t)):"select"===t.fromAction?(p5("map","selected",e,i,t),p5("pie","selected",e,i,t)):"unselect"===t.fromAction&&(p5("map","unselected",e,i,t),p5("pie","unselected",e,i,t))})},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed)return void this.id;this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)return void this.id;this._disposed=!0,this.getDom()&&rW(this.getDom(),d7,"");var t=this._api,e=this._model;tm(this._componentsViews,function(n){n.dispose(e,t)}),tm(this._chartsViews,function(n){n.dispose(e,t)}),this._zr.dispose(),this._dom=this._model=this._chartsMap=this._componentsMap=this._chartsViews=this._componentsViews=this._scheduler=this._api=this._zr=this._throttledZrFlush=this._theme=this._coordSysMgr=this._messageCenter=null,delete d4[this.id]},e.prototype.resize=function(t){if(!this[dB]){if(this._disposed)return void this.id;this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),i=t&&t.silent;this[dV]&&(null==i&&(i=this[dV].silent),n=!0,this[dV]=null),this[dB]=!0;try{n&&g(this),m.update.call(this,{type:"resize",animation:td({duration:0},t&&t.animation)})}catch(t){throw this[dB]=!1,t}this[dB]=!1,w.call(this,i),S.call(this,i)}}},e.prototype.showLoading=function(t,e){if(this._disposed)return void this.id;if(tL(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),d3[t]){var n=d3[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}},e.prototype.hideLoading=function(){if(this._disposed)return void this.id;this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var e=td({},t);return e.type=dQ[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)return void this.id;if((tL(e)||(e={silent:!!e}),dJ[t.type])&&this._model){if(this[dB])return void this._pendingActions.push(t);var n=e.silent;b.call(this,t,n);var i=e.flush;i?this._zr.flush():!1!==i&&X.browser.weChat&&this._throttledZrFlush(),w.call(this,n),S.call(this,n)}},e.prototype.updateLabelLayout=function(){dE.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)return void this.id;var e=t.seriesIndex;this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()})}function e(t){for(var e=[],n=t.currentStates,i=0;i0?{duration:o,delay:i.get("delay"),easing:i.get("easing")}:null;n.eachRendered(function(t){if(t.states&&t.states.emphasis&&!sp(t)){if(t instanceof o4&&((n=aL(t)).normalFill=t.style.fill,n.normalStroke=t.style.stroke,n.selectFill=(i=t.states.select||{}).style&&i.style.fill||null,n.selectStroke=i.style&&i.style.stroke||null),t.__dirty){var n,i,o=t.prevStates;o&&t.useStates(o)}if(r){t.stateTransition=a;var s=t.getTextContent(),l=t.getTextGuideLine();s&&(s.stateTransition=a),l&&(l.stateTransition=a)}t.__dirty&&e(t)}})}g=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),y(t,!0),y(t,!1),e.plan()},y=function(t,e){for(var n=t._model,i=t._scheduler,r=e?t._componentsViews:t._chartsViews,o=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;l0){var r={dataIndex:i,seriesIndex:t.seriesIndex};null!=n&&(r.dataType=n),b.push(r)}})}),b),isFromClick:t.isFromClick||!1,fromAction:t.type,fromActionPayload:t};_.trigger(w.type,w)}}},w=function(t){for(var e=this._pendingActions;e.length;){var n=e.shift();b.call(this,n,t)}},S=function(t){t||this.trigger("updated")},M=function(t,e){t.on("rendered",function(n){e.trigger("rendered",n),!t.animation.isFinished()||e[dV]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")})},I=function(t,e){t.on("mouseover",function(t){var n,i,r,o,a,s=p3(t.target,sr);s&&(n=e._api,o=(r=a4((i=aT(s)).componentMainType,i.componentIndex,i.componentHighDownName,n)).dispatchers,a=r.focusSelf,o?(a&&a3(i.componentMainType,i.componentIndex,n),tm(o,function(e){return a$(e,t)})):(a5(i.seriesIndex,i.focus,i.blurScope,n),"self"===i.focus&&a3(i.componentMainType,i.componentIndex,n),a$(s,t)),k(e))}).on("mouseout",function(t){var n,i,r,o=p3(t.target,sr);o&&(a2(n=e._api),(r=a4((i=aT(o)).componentMainType,i.componentIndex,i.componentHighDownName,n).dispatchers)?tm(r,function(e){return aJ(e,t)}):aJ(o,t),k(e))}).on("click",function(t){var n=p3(t.target,function(t){return null!=aT(t).dataIndex},!0);if(n){var i=n.selected?"unselect":"select",r=aT(n);e._api.dispatchAction({type:i,dataType:r.dataType,dataIndexInside:r.dataIndex,seriesIndex:r.seriesIndex,isFromClick:!0})}})},T=function(t,e,n,i,r){!function(t){var e=[],n=[],i=!1;if(t.eachComponent(function(t,r){var o=r.get("zlevel")||0,a=r.get("z")||0,s=r.getZLevelKey();i=i||!!s,("series"===t?n:e).push({zlevel:o,z:a,idx:r.componentIndex,type:t,key:s})}),i){var r,o,a=e.concat(n);e9(a,function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel}),tm(a,function(e){var n=t.getComponent(e.type,e.idx),i=e.zlevel,a=e.key;null!=r&&(i=Math.max(r,i)),a?(i===r&&a!==o&&i++,o=a):o&&(i===r&&i++,o=""),r=i,n.setZLevel(i)})}}(e),C(t,e,n,i,r),tm(t._chartsViews,function(t){t.__alive=!1}),A(t,e,n,i,r),tm(t._chartsViews,function(t){t.__alive||t.remove(e,n)})},C=function(t,e,o,a,s,l){tm(l||t._componentsViews,function(t){var s=t.__model;i(s,t),t.render(s,e,o,a),n(s,t),r(s,t)})},A=function(t,e,o,a,s,l){var u,h,c,p,d=t._scheduler;s=td(s||{},{updatedSeries:e.getSeries()}),dE.trigger("series:beforeupdate",e,o,s);var f=!1;e.eachSeries(function(e){var n,r,o,s=t._chartsMap[e.__viewId];s.__alive=!0;var u=s.renderTask;d.updatePayload(u,a),i(e,s),l&&l.get(e.uid)&&u.dirty(),u.perform(d.getPerformArgs(u))&&(f=!0),s.group.silent=!!e.get("silent"),n=e,r=s,o=n.get("blendMode")||null,r.eachRendered(function(t){t.isGroup||(t.style.blend=o)}),a6(e)}),d.unfinished=f||d.unfinished,dE.trigger("series:layoutlabels",e,o,s),dE.trigger("series:transition",e,o,s),e.eachSeries(function(e){var i=t._chartsMap[e.__viewId];n(e,i),r(e,i)}),u=t,h=e,c=u._zr.storage,p=0,c.traverse(function(t){!t.isGroup&&p++}),!(p>h.get("hoverLayerThreshold"))||X.node||X.worker||h.eachSeries(function(t){if(!t.preventUsingHoverLayer){var e=u._chartsMap[t.__viewId];e.__alive&&e.eachRendered(function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)})}}),dE.trigger("series:afterupdate",e,o,s)},k=function(t){t[dF]=!0,t.getZr().wakeUp()},P=function(t){t[dF]&&(t.getZr().storage.traverse(function(t){sp(t)||e(t)}),t[dF]=!1)},D=function(t){return new(function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return U(n,e),n.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(e){for(;e;){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},n.prototype.enterEmphasis=function(e,n){aQ(e,n),k(t)},n.prototype.leaveEmphasis=function(e,n){a0(e,n),k(t)},n.prototype.enterBlur=function(e){aZ(e,aH),k(t)},n.prototype.leaveBlur=function(e){aZ(e,aU),k(t)},n.prototype.enterSelect=function(e){aZ(e,aY),k(t)},n.prototype.leaveSelect=function(e){aZ(e,aX),k(t)},n.prototype.getModel=function(){return t.getModel()},n.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},n.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},n}(l3))(t)},L=function(t){function e(t,e){for(var n=0;ntg(d1,t)&&d1.push(t)}function fe(t,e){fa(d0,t,e,2e3)}function fn(t,e){dE.on(t,e)}function fi(t,e,n){tT(e)&&(n=e,e="");var i=tL(t)?t.type:[t,t={event:e}][0];t.event=(t.event||i).toLowerCase(),dQ[e=t.event]||(tF(dG.test(i)&&dG.test(e)),dJ[i]||(dJ[i]={action:n,actionInfo:t}),dQ[e]=i)}function fr(t,e){fa(d2,t,e,3e3,"visual")}var fo=[];function fa(t,e,n,i,r){if((tT(e)||tL(e))&&(n=e,e=i),!(tg(fo,n)>=0)){fo.push(n);var o=pk.wrapStageHandler(n,r);o.__prio=e,o.__raw=n,t.push(o)}}fr(2e3,{createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=t.getModel(i),o=pC(t,i)(r),a=r.getShallow("decal");a&&(n.setVisual("decal",a),a.dirty=!0);var s=pA(t,i),l=o[s],u=tT(l)?l:null,h="auto"===o.fill||"auto"===o.stroke;if(!o[s]||u||h){var c=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[s]||(o[s]=c,n.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||tT(o.fill)?c:o.fill,o.stroke="auto"===o.stroke||tT(o.stroke)?c:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",s),!e.isSeriesFiltered(t)&&u)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var i=t.getDataParams(n),r=td({},o);r[s]=u(i),e.setItemVisual(n,"style",r)}}}}),fr(4500,{createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!(t.ignoreStyleOnData||e.isSeriesFiltered(t))){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=pC(t,i),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[i]){pD.option=n[i];var a=r(pD);td(t.ensureUniqueItemVisual(e,"style"),a),pD.option.decal&&(t.setItemVisual(e,"decal",pD.option.decal),pD.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}}),fr(4500,{performRawSeries:!0,overallReset:function(t){var e=tX();t.eachSeries(function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var i=t.type+"-"+n,r=e.get(i);r||(r={},e.set(i,r)),pM(t).scope=r}}),t.eachSeries(function(e){if(!(e.isColorBySeries()||t.isSeriesFiltered(e))){var n=e.getRawData(),i={},r=e.getData(),o=pM(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=pA(e,a);r.each(function(t){i[r.getRawIndex(t)]=t}),n.each(function(t){var a=i[t];if(r.getItemVisual(a,"colorFromPalette")){var l=r.ensureUniqueItemVisual(a,"style"),u=n.getName(t)||t+"",h=n.count();l[s]=e.getColorFromPalette(u,o,h)}})}})}}),fr(2e3,{createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var i={},r={},o=!1,a=0;a=0||(fs.push(t),tT(t)&&(t={install:t}),t.install(fl))}var fh=2*Math.PI,fc=oU.CMD,fp=["top","right","bottom","left"];function fd(t,e,n,i,r,o,a,s){var l=n-t,u=i-e,h=Math.sqrt(l*l+u*u),c=((r-t)*(l/=h)+(o-e)*(u/=h))/h;s&&(c=Math.min(Math.max(c,0),1)),c*=h;var p=a[0]=t+c*l,d=a[1]=e+c*u;return Math.sqrt((p-r)*(p-r)+(d-o)*(d-o))}function ff(t,e,n,i,r,o,a){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i);var s=t+n,l=e+i,u=a[0]=Math.min(Math.max(r,t),s),h=a[1]=Math.min(Math.max(o,e),l);return Math.sqrt((u-r)*(u-r)+(h-o)*(h-o))}var fg=[],fy=new eF,fv=new eF,fm=new eF,fx=new eF,f_=new eF;function fb(t,e){if(t){var n=t.getTextGuideLine(),i=t.getTextContent();if(i&&n){var r=t.textGuideLineConfig||{},o=[[0,0],[0,0],[0,0]],a=r.candidates||fp,s=i.getBoundingRect().clone();s.applyTransform(i.getComputedTransform());var l=1/0,u=r.anchor,h=t.getComputedTransform(),c=h&&eV([],h),p=e.get("length2")||0;u&&fm.copy(u);for(var d=0;dr&&(r+=fh);var d=Math.atan2(s,a);if(d<0&&(d+=fh),d>=i&&d<=r||d+fh>=i&&d+fh<=r)return l[0]=h,l[1]=c,u-n;var f=n*Math.cos(i)+t,g=n*Math.sin(i)+e,y=n*Math.cos(r)+t,v=n*Math.sin(r)+e,m=(f-a)*(f-a)+(g-s)*(g-s),x=(y-a)*(y-a)+(v-s)*(v-s);return m0){e=e/180*Math.PI,fy.fromArray(t[0]),fv.fromArray(t[1]),fm.fromArray(t[2]),eF.sub(fx,fy,fv),eF.sub(f_,fm,fv);var n=fx.len(),i=f_.len();if(!(n<.001)&&!(i<.001)&&(fx.scale(1/n),f_.scale(1/i),Math.cos(e)1&&eF.copy(fS,fm),fS.toArray(t[1])}}}function fI(t,e,n,i){var r="normal"===n,o=r?t:t.ensureState(n);o.ignore=e;var a=i.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=i.getModel("lineStyle").getLineStyle();r?t.useStyle(s):o.style=s}function fT(t,e){var n=e.smooth,i=e.points;if(i)if(t.moveTo(i[0][0],i[0][1]),n>0&&i.length>=3){var r=et(i[0],i[1]),o=et(i[1],i[2]);if(!r||!o){t.lineTo(i[1][0],i[1][1]),t.lineTo(i[2][0],i[2][1]);return}var a=Math.min(r,o)*n,s=en([],i[1],i[0],a/r),l=en([],i[1],i[2],a/o),u=en([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var h=1;h0&&o&&w(-d/u,0,u);var m=t[0],x=t[u-1];return _(),s<0&&S(-s,.8),l<0&&S(l,.8),_(),b(s,l,1),b(l,s,-1),_(),s<0&&M(-s),l<0&&M(l),c}function _(){s=m.rect[e]-i,l=r-x.rect[e]-x.rect[n]}function b(t,e,n){if(t<0){var i=Math.min(e,-t);if(i>0){w(i*n,0,u);var r=i+t;r<0&&S(-r*n,1)}else S(-t*n,1)}}function w(n,i,r){0!==n&&(c=!0);for(var o=i;o0)for(var s=0;s0;s--){var p=o[s-1]*c;w(-p,s,u)}}}function M(t){for(var e=t<0?-1:1,n=Math.ceil((t=Math.abs(t))/(u-1)),i=0;i0?w(n,0,i+1):w(-n,u-i-1,u),(t-=n)<=0)return}}function fk(t,e,n,i){return fL(t,"y","height",e,n,i)}function fP(t){var e=[];t.sort(function(t,e){return e.priority-t.priority});var n=new eq(0,0,0,0);function i(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}for(var r=0;r=0&&n.attr(r.oldLayoutSelect),tg(h,"emphasis")>=0&&n.attr(r.oldLayoutEmphasis)),sh(n,l,e,s)}else if(n.attr(l),!sD(n).valueAnimation){var c=tE(n.style.opacity,1);n.style.opacity=0,sc(n,{style:{opacity:c}},e,s)}if(r.oldLayout=l,n.states.select){var p=r.oldLayoutSelect={};fz(p,l,fB),fz(p,n.states.select,fB)}if(n.states.emphasis){var d=r.oldLayoutEmphasis={};fz(d,l,fB),fz(d,n.states.emphasis,fB)}sk(n,s,u,e,e)}if(i&&!i.ignore&&!i.invisible){var r=fE(i),o=r.oldLayout,f={points:i.shape.points};o?(i.attr({shape:o}),sh(i,{shape:f},e)):(i.setShape(f),i.style.strokePercent=0,sc(i,{style:{strokePercent:1}},e)),r.oldLayout=f}},t}(),fF=rN();function fG(t){t.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){var i=fF(e).labelManager;i||(i=fF(e).labelManager=new fV),i.clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var i=fF(e).labelManager;n.updatedSeries.forEach(function(t){i.addLabelsOfSeries(e.getViewOfSeriesModel(t))}),i.updateLayoutConfig(e),i.layout(e),i.processLabelsOverall()})}function fW(t,e,n){var i=K.createCanvas(),r=e.getWidth(),o=e.getHeight(),a=i.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=r+"px",a.height=o+"px",i.setAttribute("data-zr-dom-id",t)),i.width=r*n,i.height=o*n,i}fu(fG);var fH=function(t){function e(e,n,i){var r,o=t.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,i=i||iR,"string"==typeof e?r=fW(e,n,i):tL(e)&&(e=(r=e).id),o.id=e,o.dom=r;var a=r.style;return a&&(tq(r),r.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),o.painter=n,o.dpr=i,o}return t0(e,t),e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=fW("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,e,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var r,o=[],a=this.maxRepaintRectCount,s=!1,l=new eq(0,0,0,0);function u(t){if(!(!t.isFinite()||t.isZero()))if(0===o.length){var e=new eq(0,0,0,0);e.copy(t),o.push(e)}else{for(var n=!1,i=1/0,r=0,u=0;u=a)}}for(var h=this.__startIndex;h15)break}n.prevElClipPaths&&p.restore()};if(d)if(0===d.length)s=l.__endIndex;else for(var _=c.dpr,b=0;b0&&t>i[0]){for(s=0;st));s++);a=n[i[s]]}if(i.splice(s+1,0,t),n[t]=e,!e.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(e.painter=this)}}},t.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i0),this._needsManuallyCompositing),u.__builtin__||tu("ZLevel "+l+" has been used by unkown layer "+u.id),u!==a&&(u.__used=!0,u.__startIndex!==i&&(u.__dirty=!0),u.__startIndex=i,u.incremental?u.__drawIndex=-1:u.__drawIndex=i,e(i),a=u),1&o.__dirty&&!o.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=i))}e(i),this.eachBuiltinLayer(function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)})},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,tm(this._layers,function(t){t.setUnpainted()})},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?tc(n[t],e,!0):n[t]=e;for(var i=0;i=fj:-l>=fj),p=l>0?l%fj:l%fj+fj,d=!1;d=!!c||!n1(h)&&p>=fZ==!!u;var f=t+n*fX(o),g=e+i*fY(o);this._start&&this._add("M",f,g);var y=Math.round(r*fq);if(c){var v=1/this._p,m=(u?1:-1)*(fj-v);this._add("A",n,i,y,1,+u,t+n*fX(o+m),e+i*fY(o+m)),v>.01&&this._add("A",n,i,y,0,+u,f,g)}else{var x=t+n*fX(a),_=e+i*fY(a);this._add("A",n,i,y,+d,+u,x,_)}},t.prototype.rect=function(t,e,n,i){this._add("M",t,e),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(t,e,n,i,r,o,a,s,l){for(var u=[],h=this._p,c=1;c"}(r,o)+("style"!==r?em(a):a||"")+(i?""+n+tx(i,function(e){return t(e)}).join(n)+n:"")+""}(t)}function f8(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function f7(t,e,n,i){return f4("svg","root",{width:t,height:e,xmlns:f1,"xmlns:xlink":f2,version:"1.1",baseProfile:"full",viewBox:!!i&&"0 0 "+t+" "+e},n)}var f9=0,gt={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"},ge="transform-origin",gn={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function gi(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function gr(t){return tC(t)?gt[t]?"cubic-bezier("+gt[t]+")":nT(t)?t:"":""}function go(t,e,n,i){var r=t.animators,o=r.length,a=[];if(t instanceof cN){var s=function(t,e,n){var i,r,o=t.shape.paths,a={};if(tm(o,function(t){var e=f8(n.zrId);e.animation=!0,go(t,{},e,!0);var o=e.cssAnims,s=e.cssNodes,l=tw(o),u=l.length;if(u){var h=o[r=l[u-1]];for(var c in h){var p=h[c];a[c]=a[c]||{d:""},a[c].d+=p.d||""}for(var d in s){var f=s[d].animation;f.indexOf(r)>=0&&(i=f)}}}),i){e.d=!1;var s=gi(a,n);return i.replace(r,s)}}(t,e,n);if(s)a.push(s);else if(!o)return}else if(!o)return;for(var l={},u=0;u0}).length)return gi(c,n)+" "+r[0]+" both"}(l[g]);s&&a.push(s)}if(a.length){var y=n.zrId+"-cls-"+f9++;n.cssNodes["."+y]={animation:a.join(",")},e.class=y}}function ga(t,e,n,i){var r=JSON.stringify(t),o=n.cssStyleCache[r];o||(o=n.zrId+"-cls-"+f9++,n.cssStyleCache[r]=o,n.cssNodes["."+o+(i?":hover":"")]=t),e.class=e.class?e.class+" "+o:o}var gs=Math.round;function gl(t){return t&&tT(t.toDataURL)}function gu(t,e,n,i){!function(t,e,n,i){var r,o,a=null==e.opacity?1:e.opacity;if(n instanceof ae)return t("opacity",a);if(null!=(r=e.fill)&&r!==f$){var s=n0(e.fill);t("fill",s.color);var l=null!=e.fillOpacity?e.fillOpacity*s.opacity*a:s.opacity*a;(i||l<1)&&t("fill-opacity",l)}else t("fill",f$);if(null!=(o=e.stroke)&&o!==f$){var u=n0(e.stroke);t("stroke",u.color);var h=e.strokeNoScale?n.getLineScale():1,c=h?(e.lineWidth||0)/h:0,p=null!=e.strokeOpacity?e.strokeOpacity*u.opacity*a:u.opacity*a,d=e.strokeFirst;if((i||1!==c)&&t("stroke-width",c),(i||d)&&t("paint-order",d?"stroke":"fill"),(i||p<1)&&t("stroke-opacity",p),e.lineDash){var f=df(n),g=f[0],y=f[1];g&&(y=fJ(y||0),t("stroke-dasharray",g.join(",")),(y||i)&&t("stroke-dashoffset",y))}else i&&t("stroke-dasharray",f$);for(var v=0;v=0&&s||a;l&&(o=n$(l))}var u=r.lineWidth;u&&(u/=!r.strokeNoScale&&t.transform?t.transform[0]:1);var i={cursor:"pointer"};o&&(i.fill=o),r.stroke&&(i.stroke=r.stroke),u&&(i["stroke-width"]=u),ga(i,e,n,!0)}}(t,o,e),f4(s,t.id+"",o)}function gv(t,e){return t instanceof o4?gy(t,e):t instanceof ae?function(t,e){var n,i=t.style,r=i.image;if(r&&!tC(r)&&((n=r)&&tC(n.src)?r=r.src:gl(r)&&(r=r.toDataURL())),r){var o=i.x||0,a=i.y||0,s={href:r,width:i.width,height:i.height};return o&&(s.x=o),a&&(s.y=a),gp(s,t.transform),gu(s,i,t,e),gh(s,t),e.animation&&go(t,s,e),f4("image",t.id+"",s)}}(t,e):t instanceof o8?function(t,e){var n=t.style,i=n.text;if(null!=i&&(i+=""),!(!i||isNaN(n.x)||isNaN(n.y))){var r,o,a,s=n.font||j,l=n.x||0,u=(r=n.y||0,o=i$(s),"top"===(a=n.textBaseline)?r+=o/2:"bottom"===a&&(r-=o/2),r),h={"dominant-baseline":"central","text-anchor":n3[n.textAlign]||n.textAlign};if(am(n)){var c="",p=n.fontStyle,d=ay(n.fontSize);if(!parseFloat(d))return;var f=n.fontFamily||Z,g=n.fontWeight;c+="font-size:"+d+";font-family:"+f+";",p&&"normal"!==p&&(c+="font-style:"+p+";"),g&&"normal"!==g&&(c+="font-weight:"+g+";"),h.style=c}else h.style="font: "+s;return i.match(/\s/)&&(h["xml:space"]="preserve"),l&&(h.x=l),u&&(h.y=u),gp(h,t.transform),gu(h,n,t,e),gh(h,t),e.animation&&go(t,h,e),f4("text",t.id+"",h,void 0,i)}}(t,e):void 0}function gm(t,e,n,i){var r,o=t[n],a={gradientUnits:o.global?"userSpaceOnUse":"objectBoundingBox"};if(n8(o))r="linearGradient",a.x1=o.x,a.y1=o.y,a.x2=o.x2,a.y2=o.y2;else{if(!n7(o))return;r="radialGradient",a.cx=tE(o.x,.5),a.cy=tE(o.y,.5),a.r=tE(o.r,.5)}for(var s=o.colorStops,l=[],u=0,h=s.length;uu?gP(e,null==i[p+1]?null:i[p+1].elm,i,l,p):gO(e,n,s,u))}(i,r,o):gD(o)?(gD(e.text)&&gT(i,""),gP(i,null,o,0,o.length-1)):gD(r)?gO(i,r,0,r.length-1):gD(e.text)&&gT(i,""):e.text!==n.text&&(gD(r)&&gO(i,r,0,r.length-1),gT(i,n.text)))}(t,e);else{var n=t.elm,i=gM(n);gk(e),null!==i&&(gb(i,e.elm,gI(n)),gO(i,[t],0,0))}}(this._oldVNode,t),this._oldVNode=t}},t.prototype.renderOneToVNode=function(t){return gv(t,f8(this._id))},t.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._width,i=this._height,r=f8(this._id);r.animation=t.animation,r.willUpdate=t.willUpdate,r.compress=t.compress,r.emphasis=t.emphasis,r.ssr=this._opts.ssr;var o=[],a=this._bgVNode=function(t,e,n,i){var r;if(n&&"none"!==n)if(r=f4("rect","bg",{width:t,height:e,x:"0",y:"0"}),n9(n))gm({fill:n},r.attrs,"fill",i);else if(n6(n))gx({style:{fill:n},dirty:t$,getBoundingRect:function(){return{width:t,height:e}}},r.attrs,"fill",i);else{var o=n0(n),a=o.color,s=o.opacity;r.attrs.fill=a,s<1&&(r.attrs["fill-opacity"]=s)}return r}(n,i,this._backgroundColor,r);a&&o.push(a);var s=t.compress?null:this._mainVNode=f4("g","main",{},[]);this._paintList(e,r,s?s.children:o),s&&o.push(s);var l=tx(tw(r.defs),function(t){return r.defs[t]});if(l.length&&o.push(f4("defs","defs",{},l)),t.animation){var u,h,c,p,d,f,g,y,v=(u=r.cssNodes,h=r.cssAnims,d=" {"+(p=(c={newline:!0}).newline?"\n":""),f=p+"}",g=tx(tw(u),function(t){return t+d+tx(tw(u[t]),function(e){return e+":"+u[t][e]+";"}).join(p)+f}).join(p),y=tx(tw(h),function(t){return"@keyframes "+t+d+tx(tw(h[t]),function(e){return e+d+tx(tw(h[t][e]),function(n){var i=h[t][e][n];return"d"===n&&(i='path("'+i+'")'),n+":"+i+";"}).join(p)+f}).join(p)+f}).join(p),g||y?[""].join(p):"");if(v){var m=f4("style","stl",{},[],v);o.push(m)}}return f7(n,i,o,t.useViewBox)},t.prototype.renderToString=function(t){return t=t||{},f6(this.renderToVNode({animation:tE(t.cssAnimation,!0),emphasis:tE(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:tE(t.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(t,e,n){for(var i,r,o=t.length,a=[],s=0,l=0,u=0;u=0&&(!c||!r||c[f]!==r[f]);f--);for(var g=d-1;g>f;g--)i=a[--s-1];for(var y=f+1;y1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(r,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},r=[],o=[];this._initIndexMap(t,n,r,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var a=0;a1&&1===c)this._updateManyToOne&&this._updateManyToOne(u,l),i[s]=null;else if(1===h&&c>1)this._updateOneToMany&&this._updateOneToMany(u,l),i[s]=null;else if(1===h&&1===c)this._update&&this._update(u,l),i[s]=null;else if(h>1&&c>1)this._updateManyToMany&&this._updateManyToMany(u,l),i[s]=null;else if(h>1)for(var p=0;p1)for(var a=0;a30),i="",r=[],o=0,a=0;othis._schema.getSourceDimensionIndex(t)))return+t},t.prototype._getStoreDimIndex=function(t){return this.getDimensionIndex(t)},t.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},t.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(t){return e.hasOwnProperty(t)?e[t]:void 0}:function(t){return e[t]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(t,e){var n=this._dimSummary;if(null==e)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return i?i[e]:null},t.prototype.mapDimensionsAll=function(t){return(this._dimSummary.encode[t]||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(t,e,n){var i,r,o,a,s,l,u,h,c,p,d,f,g,y=this;if(t instanceof ho&&(g=t),!g){var v=this.dimensions,m=um(t)||tv(t)?new uI(t,v.length):t;g=new ho;var x=tx(v,function(t){return{type:y._dimInfos[t].type,property:t}});g.initData(m,x,n)}this._store=g,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,g.count()),this._dimSummary=(i=this,r=this._schema,a=(o={}).encode={},s=tX(),l=[],u=[],h={},tm(i.dimensions,function(t){var e=i.getDimensionInfo(t),n=e.coordDim;if(n){var r,o=e.coordDimIndex;gW(a,n)[o]=t,e.isExtraCoord||(s.set(n,1),"ordinal"!==(r=e.type)&&"time"!==r&&(l[0]=t),gW(h,n)[o]=i.getDimensionIndex(e.name)),e.defaultTooltip&&u.push(t)}lk.each(function(t,n){var i=gW(a,n),r=e.otherDims[n];null!=r&&!1!==r&&(i[r]=e.name)})}),c=[],p={},s.each(function(t,e){var n=a[e];p[e]=n[0],c=c.concat(n)}),o.dataDimsOnCoord=c,o.dataDimIndicesOnCoord=tx(c,function(t){return i.getDimensionInfo(t).storeDimIndex}),o.encodeFirstDimNotExtra=p,(d=a.label)&&d.length&&(l=d.slice()),(f=a.tooltip)&&f.length?u=f.slice():u.length||(u=l.slice()),a.defaultedLabel=l,a.defaultedTooltip=u,o.userOutput=new gG(h,r),o),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},t.prototype.appendValues=function(t,e){var n=this._store.appendValues(t,e&&e.length),i=n.start,r=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var a=i;a=e)){var n=this._store.getProvider();this._updateOrdinalMeta();var i=this._nameList,r=this._idList;if(n.getSource().sourceFormat===lP&&!n.pure)for(var o=[],a=t;a0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var r=i[e];return null==r&&(tI(r=this.getVisual(e))?r=r.slice():g$(r)&&(r=td({},r)),i[e]=r),r},t.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,g$(e)?td(i,e):i[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){g$(t)?td(this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?td(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){aC(this.hostModel&&this.hostModel.seriesIndex,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){tm(this._graphicEls,function(n,i){n&&t&&t.call(e,n,i)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:tx(this.dimensions,this._getDimInfo,this),this.hostModel)),z(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];tT(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(tB(arguments)))})},t.internalField=void(O=function(t){var e=t._invertedIndicesMap;tm(e,function(n,i){var r=t._dimInfos[i],o=r.ordinalMeta,a=t._store;if(o){n=e[i]=new gJ(o.categories.length);for(var s=0;s1&&(s+="__ec__"+u),i[e]=s}}),t}();function g2(t,e){um(t)||(t=u_(t));var n,i,r,o,a,s=(e=e||{}).coordDimensions||[],l=e.dimensionsDefine||t.dimensionsDefine||[],u=tX(),h=[],c=(n=t,i=s,r=l,o=e.dimensionsCount,a=Math.max(n.dimensionsDetectedCount||1,i.length,r.length,o||0),tm(i,function(t){var e;tL(t)&&(e=t.dimsDef)&&(a=Math.max(a,e.length))}),a),p=e.canOmitUnusedDimensions&&c>30,d=l===t.dimensionsDefine,f=d?gK(t):gq(l),g=e.encodeDefine;!g&&e.encodeDefaulter&&(g=e.encodeDefaulter(t,c));for(var y=tX(g),v=new u9(c),m=0;m0&&(i.name=r+(o-1)),o++,e.set(r,o)}}(h),new gZ({source:t,dimensions:h,fullDimensionCount:c,dimensionOmitted:p})}var g5=function(t){this.coordSysDims=[],this.axisMap=tX(),this.categoryAxisMap=tX(),this.coordSysName=t},g3={cartesian2d:function(t,e,n,i){var r=t.getReferringComponents("xAxis",rV).models[0],o=t.getReferringComponents("yAxis",rV).models[0];e.coordSysDims=["x","y"],n.set("x",r),n.set("y",o),g4(r)&&(i.set("x",r),e.firstCategoryDimIndex=0),g4(o)&&(i.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,i){var r=t.getReferringComponents("singleAxis",rV).models[0];e.coordSysDims=["single"],n.set("single",r),g4(r)&&(i.set("single",r),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var r=t.getReferringComponents("polar",rV).models[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),g4(o)&&(i.set("radius",o),e.firstCategoryDimIndex=0),g4(a)&&(i.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,i){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,i){var r=t.ecModel,o=r.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();tm(o.parallelAxisIndex,function(t,o){var s=r.getComponent("parallelAxis",t),l=a[o];n.set(l,s),g4(s)&&(i.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))})}};function g4(t){return"category"===t.get("type")}function g6(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function g8(t,e){return g6(t,e)?t.getCalculationInfo("stackResultDimension"):e}let g7=function(t,e,n){n=n||{};var i,r,o,a,s,l,u,h,c=e.getSourceManager(),p=!1;t?(p=!0,h=u_(t)):p=(h=c.getSource()).sourceFormat===lP;var d=function(t){var e=t.get("coordinateSystem"),n=new g5(e),i=g3[e];if(i)return i(t,n,n.axisMap,n.categoryAxisMap),n}(e),f=(r=e.get("coordinateSystem"),o=l6.get(r),d&&d.coordSysDims&&(i=tx(d.coordSysDims,function(t){var e={name:t},n=d.axisMap.get(t);return n&&(e.type=gH(n.get("type"))),e})),i||(i=o&&(o.getDimensionsInfo?o.getDimensionsInfo():o.dimensions.slice())||["x","y"]),i),g=n.useEncodeDefaulter,y=tT(g)?g:g?tM(lG,f,e):null,v=g2(h,{coordDimensions:f,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:y,canOmitUnusedDimensions:!p}),m=(a=v.dimensions,s=n.createInvertedIndices,d&&tm(a,function(t,e){var n=t.coordDim,i=d.categoryAxisMap.get(n);i&&(null==l&&(l=e),t.ordinalMeta=i.getOrdinalMeta(),s&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(u=!0)}),u||null==l||(a[l].otherDims.itemName=0),l),x=p?null:c.getSharedDataStore(v),_=function(t,e,n){var i,r,o,a,s,l,u,h=(n=n||{}).byIndex,c=n.stackedCoordDimension;gj(e.schema)?(i=(r=e.schema).dimensions,o=e.store):i=e;var p=!!(t&&t.get("stack"));if(tm(i,function(t,e){tC(t)&&(i[e]=t={name:t}),p&&!t.isExtraCoord&&(h||a||!t.ordinalMeta||(a=t),s||"ordinal"===t.type||"time"===t.type||c&&c!==t.coordDim||(s=t))}),!s||h||a||(h=!0),s){l="__\0ecstackresult_"+t.id,u="__\0ecstackedover_"+t.id,a&&(a.createInvertedIndices=!0);var d=s.coordDim,f=s.type,g=0;tm(i,function(t){t.coordDim===d&&g++});var y={name:l,coordDim:d,coordDimIndex:g,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},v={name:u,coordDim:u,coordDimIndex:g+1,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};r?(o&&(y.storeDimIndex=o.ensureCalculationDimension(u,f),v.storeDimIndex=o.ensureCalculationDimension(l,f)),r.appendCalculationDimension(y),r.appendCalculationDimension(v)):(i.push(y),i.push(v))}return{stackedDimension:s&&s.name,stackedByDimension:a&&a.name,isStackedByIndex:h,stackedOverDimension:u,stackResultDimension:l}}(e,{schema:v,store:x}),b=new g1(v,e);b.setCalculationInfo(_);var w=null!=m&&function(t){if(t.sourceFormat===lP)return!tI(rC(function(t){for(var e=0;e-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),e},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}(hA);function yt(t,e){var n=t.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var r=uE(t,e,n[0]);return null!=r?r+"":null}if(i){for(var o=[],a=0;a=0&&i.push(e[o])}return i.join(" ")}var yn=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o.updateData(e,n,i,r),o}return U(e,t),e.prototype._createSymbol=function(t,e,n,i,r){this.removeAll();var o=ds(t,-1,-1,2,2,null,r);o.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),o.drift=yi,this._symbolType=t,this.add(o)},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(){aQ(this.childAt(0))},e.prototype.downplay=function(){a0(this.childAt(0))},e.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},e.prototype.setDraggable=function(t,e){var n=this.childAt(0);n.draggable=t,n.cursor=!e&&t?"move":n.cursor},e.prototype.updateData=function(t,n,i,r){this.silent=!1;var o=t.getItemVisual(n,"symbol")||"circle",a=t.hostModel,s=e.getSymbolSize(t,n),l=o!==this._symbolType,u=r&&r.disableAnimation;if(l){var h=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,t,n,s,h)}else{var c=this.childAt(0);c.silent=!1;var p={scaleX:s[0]/2,scaleY:s[1]/2};u?c.attr(p):sh(c,p,a,n),sy(c)}if(this._updateCommon(t,n,s,i,r),l){var c=this.childAt(0);if(!u){var p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:c.style.opacity}};c.scaleX=c.scaleY=0,c.style.opacity=0,sc(c,p,a,n)}}u&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,n,i,r){var o,a,s,l,u,h,c,p,d,f=this.childAt(0),g=t.hostModel;if(i&&(o=i.emphasisItemStyle,a=i.blurItemStyle,s=i.selectItemStyle,l=i.focus,u=i.blurScope,c=i.labelStatesModels,p=i.hoverScale,d=i.cursorStyle,h=i.emphasisDisabled),!i||t.hasItemOption){var y=i&&i.itemModel?i.itemModel:t.getItemModel(e),v=y.getModel("emphasis");o=v.getModel("itemStyle").getItemStyle(),s=y.getModel(["select","itemStyle"]).getItemStyle(),a=y.getModel(["blur","itemStyle"]).getItemStyle(),l=v.get("focus"),u=v.get("blurScope"),h=v.get("disabled"),c=sb(y),p=v.getShallow("scale"),d=y.getShallow("cursor")}var m=t.getItemVisual(e,"symbolRotate");f.attr("rotation",(m||0)*Math.PI/180||0);var x=du(t.getItemVisual(e,"symbolOffset"),n);x&&(f.x=x[0],f.y=x[1]),d&&f.attr("cursor",d);var _=t.getItemVisual(e,"style"),b=_.fill;if(f instanceof ae){var w=f.style;f.useStyle(td({image:w.image,x:w.x,y:w.y,width:w.width,height:w.height},_))}else f.__isEmptyBrush?f.useStyle(td({},_)):f.useStyle(_),f.style.decal=null,f.setColor(b,r&&r.symbolInnerColor),f.style.strokeNoScale=!0;var S=t.getItemVisual(e,"liftZ"),M=this._z2;null!=S?null==M&&(this._z2=f.z2,f.z2+=S):null!=M&&(f.z2=M,this._z2=null);var I=r&&r.useNameLabel;s_(f,c,{labelFetcher:g,labelDataIndex:e,defaultText:function(e){return I?t.getName(e):yt(t,e)},inheritColor:b,defaultOpacity:_.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var T=f.ensureState("emphasis");T.style=o,f.ensureState("select").style=s,f.ensureState("blur").style=a;var C=null==p||!0===p?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;T.scaleX=this._sizeX*C,T.scaleY=this._sizeY*C,this.setSymbolScale(1),a7(this,l,u,h)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e,n){var i=this.childAt(0),r=aT(this).dataIndex,o=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var a=i.getTextContent();a&&sd(a,{style:{opacity:0}},e,{dataIndex:r,removeOpt:o,cb:function(){i.removeTextContent()}})}else i.removeTextContent();sd(i,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:r,cb:t,removeOpt:o})},e.getSymbolSize=function(t,e){return dl(t.getItemVisual(e,"symbolSize"))},e}(i9);function yi(t,e){this.parent.drift(t,e)}function yr(t,e,n,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i.isIgnore&&i.isIgnore(n))&&!(i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function yo(t){return null==t||tL(t)||(t={isIgnore:t}),t||{}}function ya(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:sb(e),cursorStyle:e.get("cursor")}}var ys=function(){function t(t){this.group=new i9,this._SymbolCtor=t||yn}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=yo(e);var n=this.group,i=t.hostModel,r=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=ya(t),l={disableAnimation:a},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};r||n.removeAll(),t.diff(r).add(function(i){var r=u(i);if(yr(t,r,i,e)){var a=new o(t,i,s,l);a.setPosition(r),t.setItemGraphicEl(i,a),n.add(a)}}).update(function(h,c){var p=r.getItemGraphicEl(c),d=u(h);if(!yr(t,d,h,e))return void n.remove(p);var f=t.getItemVisual(h,"symbol")||"circle",g=p&&p.getSymbolType&&p.getSymbolType();if(!p||g&&g!==f)n.remove(p),(p=new o(t,h,s,l)).setPosition(d);else{p.updateData(t,h,s,l);var y={x:d[0],y:d[1]};a?p.attr(y):sh(p,y,i)}n.add(p),t.setItemGraphicEl(h,p)}).remove(function(t){var e=r.getItemGraphicEl(t);e&&e.fadeOut(function(){n.remove(e)},i)}).execute(),this._getSymbolPoint=u,this._data=t},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(e,n){var i=t._getSymbolPoint(n);e.setPosition(i),e.markRedraw()})},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=ya(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=yo(n);for(var r=t.start;r0?o=a[0]:a[1]<0&&(o=a[1]),o),h=s.dim,c=l.dim,p=e.mapDimension(c),d=e.mapDimension(h),f=+("x"===c||"radius"===c),g=tx(t.dimensions,function(t){return e.mapDimension(t)}),y=!1,v=e.getCalculationInfo("stackResultDimension");return g6(e,g[0])&&(y=!0,g[0]=v),g6(e,g[1])&&(y=!0,g[1]=v),{dataDimsForPoint:g,valueStart:u,valueAxisDim:c,baseAxisDim:h,stacked:!!y,valueDim:p,baseDim:d,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function yu(t,e,n,i){var r=NaN;t.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,i),a[1-o]=r,e.dataToPoint(a)}var yh="undefined"!=typeof Float32Array,yc=yh?Float32Array:Array;function yp(t){return tI(t)?yh?new Float32Array(t):t:new yc(t)}var yd=Math.min,yf=Math.max;function yg(t,e){return isNaN(t)||isNaN(e)}function yy(t,e,n,i,r,o,a,s,l){for(var u,h,c,p,d,f,g=n,y=0;y=r||g<0)break;if(yg(v,m)){if(l){g+=o;continue}break}if(g===n)t[o>0?"moveTo":"lineTo"](v,m),c=v,p=m;else{var x=v-u,_=m-h;if(x*x+_*_<.5){g+=o;continue}if(a>0){for(var b=g+o,w=e[2*b],S=e[2*b+1];w===v&&S===m&&y=i||yg(w,S))d=v,f=m;else{T=w-u,C=S-h;var L=v-u,k=w-v,P=m-h,O=S-m,R=void 0,N=void 0;if("x"===s){R=Math.abs(L),N=Math.abs(k);var E=T>0?1:-1;d=v-E*R*a,f=m,A=v+E*N*a,D=m}else if("y"===s){R=Math.abs(P),N=Math.abs(O);var z=C>0?1:-1;d=v,f=m-z*R*a,A=v,D=m+z*N*a}else R=Math.sqrt(L*L+P*P),d=v-T*a*(1-(I=(N=Math.sqrt(k*k+O*O))/(N+R))),f=m-C*a*(1-I),A=v+T*a*I,D=m+C*a*I,A=yd(A,yf(w,v)),D=yd(D,yf(S,m)),A=yf(A,yd(w,v)),D=yf(D,yd(S,m)),T=A-v,C=D-m,d=v-T*R/N,f=m-C*R/N,d=yd(d,yf(u,v)),f=yd(f,yf(h,m)),d=yf(d,yd(u,v)),f=yf(f,yd(h,m)),T=v-d,C=m-f,A=v+T*N/R,D=m+C*N/R}t.bezierCurveTo(c,p,d,f,v,m),c=A,p=D}else t.lineTo(v,m)}u=v,h=m,g+=o}return y}var yv=function(){this.smooth=0,this.smoothConstraint=!0},ym=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return U(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new yv},e.prototype.buildPath=function(t,e){var n=e.points,i=0,r=n.length/2;if(e.connectNulls){for(;r>0&&yg(n[2*r-2],n[2*r-1]);r--);for(;i=0){var v=a?(c-i)*y+i:(h-n)*y+n;return a?[t,v]:[v,t]}n=h,i=c;break;case o.C:h=r[l++],c=r[l++],p=r[l++],d=r[l++],f=r[l++],g=r[l++];var m=a?ny(n,h,p,f,t,s):ny(i,c,d,g,t,s);if(m>0)for(var x=0;x=0){var v=a?nf(i,c,d,g,_):nf(n,h,p,f,_);return a?[t,v]:[v,t]}}n=f,i=g}}},e}(o4),yx=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return U(e,t),e}(yv),y_=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return U(e,t),e.prototype.getDefaultShape=function(){return new yx},e.prototype.buildPath=function(t,e){var n=e.points,i=e.stackedOnPoints,r=0,o=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0&&yg(n[2*o-2],n[2*o-1]);o--);for(;ri)return!1;return!0}(o,e))){var a=e.mapDimension(o.dim),s={};return tm(o.getViewLabels(),function(t){s[o.scale.getRawOrdinalNumber(t.tickValue)]=1}),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}(t,a,r),M=this._data;M&&M.eachItemGraphicEl(function(t,e){t.__temp&&(o.remove(t),M.setItemGraphicEl(e,null))}),b||p.remove(),o.add(g);var I=!h&&t.get("step");r&&r.getArea&&t.get("clip",!0)&&(null!=(i=r.getArea()).width?(i.x-=.1,i.y-=.1,i.width+=.2,i.height+=.2):i.r0&&(i.r0-=.5,i.r+=.5)),this._clipShapeForSymbol=i;var T=function(t,e,n){var i,r,o=t.getVisual("visualMeta");if(o&&o.length&&t.count()){if("cartesian2d"!==e.type)return;for(var a=o.length-1;a>=0;a--){var s=t.getDimensionInfo(o[a].dimension);if("x"===(i=s&&s.coordDim)||"y"===i){r=o[a];break}}if(!r)return;var l=e.getAxis(i),u=tx(r.stops,function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}}),h=u.length,c=r.outerColors.slice();h&&u[0].coord>u[h-1].coord&&(u.reverse(),c.reverse());var p=function(t,e){var n,i,r=[],o=t.length;function a(t,e,n){var i=t.coord,r=function(t,e,n){if(e&&e.length&&t>=0&&t<=1){var i,r,o,a,s=t*(e.length-1),l=Math.floor(s),u=Math.ceil(s),h=nW(e[l]),c=nW(e[u]),p=s-l;return nj([nP((i=h[0],i+(c[0]-i)*p)),nP((r=h[1],r+(c[1]-r)*p)),nP((o=h[2],o+(c[2]-o)*p)),nO((a=h[3],a+(c[3]-a)*p))],"rgba")}}((n-i)/(e.coord-i),[t.color,e.color]);return{coord:n,color:r}}for(var s=0;se){i?r.push(a(i,l,e)):n&&r.push(a(n,l,0),a(n,l,e));break}else n&&(r.push(a(n,l,0)),n=null),r.push(l),i=l}return r}(u,"x"===i?n.getWidth():n.getHeight()),d=p.length;if(!d&&h)return u[0].coord<0?c[1]?c[1]:u[h-1].color:c[0]?c[0]:u[0].color;var f=p[0].coord-10,g=p[d-1].coord+10,y=g-f;if(y<.001)return"transparent";tm(p,function(t){t.offset=(t.coord-f)/y}),p.push({offset:d?p[d-1].offset:.5,color:c[1]||"transparent"}),p.unshift({offset:d?p[0].offset:.5,color:c[0]||"transparent"});var v=new cz(0,0,0,0,p,!0);return v[i]=f,v[i+"2"]=g,v}}(a,r,n)||a.getVisual("style")[a.getVisual("drawType")];if(d&&c.type===r.type&&I===this._step){v&&!f?f=this._newPolygon(u,_):f&&!v&&(g.remove(f),f=this._polygon=null),h||this._initOrUpdateEndLabel(t,r,lg(T));var C=g.getClipPath();C?sc(C,{shape:yP(this,r,!1,t).shape},t):g.setClipPath(yP(this,r,!0,t)),b&&p.updateData(a,{isIgnore:S,clipShape:i,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),yI(this._stackedOnPoints,_)&&yI(this._points,u)||(y?this._doUpdateAnimation(a,_,r,n,I,m,w):(I&&(_&&(_=yD(_,u,r,I,w)),u=yD(u,null,r,I,w)),d.setShape({points:u}),f&&f.setShape({points:u,stackedOnPoints:_})))}else b&&p.updateData(a,{isIgnore:S,clipShape:i,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),y&&this._initSymbolLabelAnimation(a,r,i),I&&(_&&(_=yD(_,u,r,I,w)),u=yD(u,null,r,I,w)),d=this._newPolyline(u),v?f=this._newPolygon(u,_):f&&(g.remove(f),f=this._polygon=null),h||this._initOrUpdateEndLabel(t,r,lg(T)),g.setClipPath(yP(this,r,!0,t));var A=t.getModel("emphasis"),D=A.get("focus"),L=A.get("blurScope"),k=A.get("disabled");d.useStyle(tf(s.getLineStyle(),{fill:"none",stroke:T,lineJoin:"bevel"})),sn(d,t,"lineStyle"),d.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"])&&(d.getState("emphasis").style.lineWidth=+d.style.lineWidth+1),aT(d).seriesIndex=t.seriesIndex,a7(d,D,L,k);var P=yA(t.get("smooth")),O=t.get("smoothMonotone");if(d.setShape({smooth:P,smoothMonotone:O,connectNulls:w}),f){var R=a.getCalculationInfo("stackedOnSeries"),N=0;f.useStyle(tf(l.getAreaStyle(),{fill:T,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),R&&(N=yA(R.get("smooth"))),f.setShape({smooth:P,stackedOnSmooth:N,smoothMonotone:O,connectNulls:w}),sn(f,t,"areaStyle"),aT(f).seriesIndex=t.seriesIndex,a7(f,D,L,k)}var E=this._changePolyState;a.eachItemGraphicEl(function(t){t&&(t.onHoverStateChange=E)}),this._polyline.onHoverStateChange=E,this._data=a,this._coordSys=r,this._stackedOnPoints=_,this._points=u,this._step=I,this._valueOrigin=m,t.get("triggerLineEvent")&&(this.packEventData(t,d),f&&this.packEventData(t,f))},e.prototype.packEventData=function(t,e){aT(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,e,n,i){var r=t.getData(),o=rR(r,i);if(this._changePolyState("emphasis"),o instanceof Array||null==o||!(o>=0))pp.prototype.highlight.call(this,t,e,n,i);else{var a=r.getLayout("points"),s=r.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var h=t.get("zlevel")||0,c=t.get("z")||0;(s=new yn(r,o)).x=l,s.y=u,s.setZ(h,c);var p=s.getSymbolPath().getTextContent();p&&(p.zlevel=h,p.z=c,p.z2=this._polyline.z2+1),s.__temp=!0,r.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}},e.prototype.downplay=function(t,e,n,i){var r=t.getData(),o=rR(r,i);if(this._changePolyState("normal"),null!=o&&o>=0){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else pp.prototype.downplay.call(this,t,e,n,i)},e.prototype._changePolyState=function(t){var e=this._polygon;aj(this._polyline,t),e&&aj(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new ym({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},e.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new y_({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,e,n){var i,r,o=e.getBaseAxis(),a=o.inverse;"cartesian2d"===e.type?(i=o.isHorizontal(),r=!1):"polar"===e.type&&(i="angle"===o.dim,r=!0);var s=t.hostModel,l=s.get("animationDuration");tT(l)&&(l=l(null));var u=s.get("animationDelay")||0,h=tT(u)?u(null):u;t.eachItemGraphicEl(function(t,o){if(t){var s=[t.x,t.y],c=void 0,p=void 0,d=void 0;if(n)if(r){var f=e.pointToCoord(s);i?(c=n.startAngle,p=n.endAngle,d=-f[1]/180*Math.PI):(c=n.r0,p=n.r,d=f[0])}else i?(c=n.x,p=n.x+n.width,d=t.x):(c=n.y+n.height,p=n.y,d=t.y);var g=p===c?0:(d-c)/(p-c);a&&(g=1-g);var y=tT(u)?u(o):l*g+h,v=t.getSymbolPath(),m=v.getTextContent();t.attr({scaleX:0,scaleY:0}),t.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:y}),m&&m.animateFrom({style:{opacity:0}},{duration:300,delay:y}),v.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,e,n){var i=t.getModel("endLabel");if(yk(t)){var r,o,a,s=t.getData(),l=this._polyline,u=s.getLayout("points");if(!u){l.removeTextContent(),this._endLabel=null;return}var h=this._endLabel;h||((h=this._endLabel=new aI({z2:200})).ignoreClip=!0,l.setTextContent(this._endLabel),l.disableLabelAnimation=!0);var c=function(t){for(var e,n,i=t.length/2;i>0&&(e=t[2*i-2],n=t[2*i-1],isNaN(e)||isNaN(n));i--);return i-1}(u);c>=0&&(s_(l,sb(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:c,defaultText:function(t,e,n){return null!=n?ye(s,n):yt(s,t)},enableTextSetter:!0},(o=(r=e.getBaseAxis()).isHorizontal(),a=r.inverse,{normal:{align:i.get("align")||(o?a?"right":"left":"center"),verticalAlign:i.get("verticalAlign")||(o?"middle":a?"top":"bottom")}})),l.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,e,n,i,r,o,a){var s=this._endLabel,l=this._polyline;if(s){t<1&&null==i.originalX&&(i.originalX=s.x,i.originalY=s.y);var u=n.getLayout("points"),h=n.hostModel,c=h.get("connectNulls"),p=o.get("precision"),d=o.get("distance")||0,f=a.getBaseAxis(),g=f.isHorizontal(),y=f.inverse,v=e.shape,m=y?g?v.x:v.y+v.height:g?v.x+v.width:v.y,x=(g?d:0)*(y?-1:1),_=(g?0:-d)*(y?-1:1),b=g?"x":"y",w=function(t,e,n){for(var i,r,o=t.length/2,a=+("x"!==n),s=0,l=-1,u=0;u=e||i>=e&&r<=e){l=u;break}s=u,i=r}return{range:[s,l],t:(e-i)/(r-i)}}(u,m,b),S=w.range,M=S[1]-S[0],I=void 0;if(M>=1){if(M>1&&!c){var T=yL(u,S[0]);s.attr({x:T[0]+x,y:T[1]+_}),r&&(I=h.getRawValue(S[0]))}else{var T=l.getPointOn(m,b);T&&s.attr({x:T[0]+x,y:T[1]+_});var C=h.getRawValue(S[0]),A=h.getRawValue(S[1]);r&&(I=rU(n,p,C,A,w.t))}i.lastFrameIndex=S[0]}else{var D=1===t||i.lastFrameIndex>0?S[0]:0,T=yL(u,D);r&&(I=h.getRawValue(D)),s.attr({x:T[0]+x,y:T[1]+_})}if(r){var L=sD(s);"function"==typeof L.setLabelText&&L.setLabelText(I)}}},e.prototype._doUpdateAnimation=function(t,e,n,i,r,o,a){var s=this._polyline,l=this._polygon,u=t.hostModel,h=function(t,e,n,i,r,o,a,s){for(var l,u=(l=[],e.diff(t).add(function(t){l.push({cmd:"+",idx:t})}).update(function(t,e){l.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){l.push({cmd:"-",idx:t})}).execute(),l),h=[],c=[],p=[],d=[],f=[],g=[],y=[],v=yl(r,e,a),m=t.getLayout("points")||[],x=e.getLayout("points")||[],_=0;_3e3||l&&yC(p,f)>3e3){s.stopAnimation(),s.setShape({points:d}),l&&(l.stopAnimation(),l.setShape({points:d,stackedOnPoints:f}));return}s.shape.__points=h.current,s.shape.points=c;var g={shape:{points:d}};h.current!==c&&(g.shape.__points=h.next),s.stopAnimation(),sh(s,g,u),l&&(l.setShape({points:c,stackedOnPoints:p}),l.stopAnimation(),sh(l,{shape:{stackedOnPoints:f}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var y=[],v=h.status,m=0;me&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n10&&"cartesian2d"===o.type&&r){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),h=n.getDevicePixelRatio(),c=Math.round(a/(Math.abs(u[1]-u[0])*(h||1)));if(isFinite(c)&&c>1){"lttb"===r?t.setData(i.lttbDownSample(i.mapDimension(l.dim),1/c)):"minmax"===r&&t.setData(i.minmaxDownSample(i.mapDimension(l.dim),1/c));var p=void 0;tC(r)?p=yN[r]:tT(r)&&(p=r),p&&t.setData(i.downSample(i.mapDimension(l.dim),1/c,p,yE))}}}}}var yB="__ec_stack_";function yV(t){return t.get("stack")||yB+t.seriesIndex}function yF(t){return t.dim+t.index}function yG(t,e){var n=[];return e.eachSeriesByType(t,function(t){yX(t)&&n.push(t)}),n}function yW(t){var e=function(t){var e={};tm(t,function(t){var n=t.coordinateSystem.getBaseAxis();if("time"===n.type||"value"===n.type)for(var i=t.getData(),r=n.dim+"_"+n.index,o=i.getDimensionIndex(i.mapDimension(n.dim)),a=i.getStore(),s=0,l=a.count();s0&&(o=null===o?s:Math.min(o,s))}n[i]=o}}return n}(t),n=[];return tm(t,function(t){var i,r=t.coordinateSystem.getBaseAxis(),o=r.getExtent();if("category"===r.type)i=r.getBandWidth();else if("value"===r.type||"time"===r.type){var a=e[r.dim+"_"+r.index],s=Math.abs(o[1]-o[0]),l=r.scale.getExtent(),u=Math.abs(l[1]-l[0]);i=a?s/u*a:s}else{var h=t.getData();i=Math.abs(o[1]-o[0])/h.count()}var c=ro(t.get("barWidth"),i),p=ro(t.get("barMaxWidth"),i),d=ro(t.get("barMinWidth")||(yZ(t)?.5:1),i),f=t.get("barGap"),g=t.get("barCategoryGap");n.push({bandWidth:i,barWidth:c,barMaxWidth:p,barMinWidth:d,barGap:f,barCategoryGap:g,axisKey:yF(r),stackId:yV(t)})}),yH(n)}function yH(t){var e={};tm(t,function(t,n){var i=t.axisKey,r=t.bandWidth,o=e[i]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;e[i]=o;var s=t.stackId;!a[s]&&o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=t.barMaxWidth;u&&(a[s].maxWidth=u);var h=t.barMinWidth;h&&(a[s].minWidth=h);var c=t.barGap;null!=c&&(o.gap=c);var p=t.barCategoryGap;null!=p&&(o.categoryGap=p)});var n={};return tm(e,function(t,e){n[e]={};var i,r=t.stacks,o=t.bandWidth,a=t.categoryGap;null==a&&(a=Math.max(35-4*tw(r).length,15)+"%");var s=ro(a,o),l=ro(t.gap,1),u=t.remainedWidth,h=t.autoWidthCount,c=(u-s)/(h+(h-1)*l);c=Math.max(c,0),tm(r,function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){var i=t.width;e&&(i=Math.min(i,e)),n&&(i=Math.max(i,n)),t.width=i,u-=i+l*i,h--}else{var i=c;e&&ei&&(i=n),i!==c&&(t.width=i,u-=i+l*i,h--)}}),c=Math.max(c=(u-s)/(h+(h-1)*l),0);var p=0;tm(r,function(t,e){t.width||(t.width=c),i=t,p+=t.width*(1+l)}),i&&(p-=i.width*l);var d=-p/2;tm(r,function(t,i){n[e][i]=n[e][i]||{bandWidth:o,offset:d,width:t.width},d+=t.width*(1+l)})}),n}function yU(t,e){var n=yG(t,e),i=yW(n);tm(n,function(t){var e=t.getData(),n=t.coordinateSystem.getBaseAxis(),r=yV(t),o=i[yF(n)][r],a=o.offset,s=o.width;e.setLayout({bandWidth:o.bandWidth,offset:a,size:s})})}function yY(t){return{seriesType:t,plan:hz(),reset:function(t){if(yX(t)){var e,n,i,r=t.getData(),o=t.coordinateSystem,a=o.getBaseAxis(),s=o.getOtherAxis(a),l=r.getDimensionIndex(r.mapDimension(s.dim)),u=r.getDimensionIndex(r.mapDimension(a.dim)),h=t.get("showBackground",!0),c=r.mapDimension(s.dim),p=r.getCalculationInfo("stackResultDimension"),d=g6(r,c)&&!!r.getCalculationInfo("stackedOnSeries"),f=s.isHorizontal(),g=(e=0,(i=(n=s).model.get("startValue"))||(i=0),n.toGlobalCoord(n.dataToCoord("log"===n.type?i>0?i:1:i))),y=yZ(t),v=t.get("barMinHeight")||0,m=p&&r.getDimensionIndex(p),x=r.getLayout("size"),_=r.getLayout("offset");return{progress:function(t,e){for(var n,i=t.count,r=y&&yp(3*i),a=y&&h&&yp(3*i),s=y&&yp(i),c=o.master.getRect(),p=f?c.width:c.height,b=e.getStore(),w=0;null!=(n=t.next());){var S=b.get(d?m:l,n),M=b.get(u,n),I=g,T=void 0;d&&(T=S-b.get(l,n));var C=void 0,A=void 0,D=void 0,L=void 0;if(f){var k=o.dataToPoint([S,M]);if(d){var P=o.dataToPoint([T,M]);I=P[0]}C=I,A=k[1]+_,D=k[0]-I,L=x,Math.abs(D)s){h=(d+u)/2;break}1===p&&(c=f-i[0].tickValue)}null==h&&(u?u&&(h=i[i.length-1].coord):h=i[0].coord),o[n]=t.toGlobalCoord(h)}}});else{var a=this.getData(),s=a.getLayout("offset"),l=a.getLayout("size"),u=+!i.getBaseAxis().isHorizontal();o[u]+=s+l/2}return o}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}(hA);hA.registerClass(yj);var yq=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return U(e,t),e.prototype.getInitialData=function(){return g7(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(t=e),t},e.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=sY(yj.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}(yj),yK=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},y$=function(t){function e(e){var n=t.call(this,e)||this;return n.type="sausage",n}return U(e,t),e.prototype.getDefaultShape=function(){return new yK},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=(o-r)*.5,s=r+a,l=e.startAngle,u=e.endAngle,h=e.clockwise,c=2*Math.PI,p=h?u-lo)return!0;o=u}return!1},e.prototype._isOrderDifferentInView=function(t,e){for(var n=e.scale,i=n.getExtent(),r=Math.max(0,i[0]),o=Math.min(i[1],n.getOrdinalMeta().categories.length-1);r<=o;++r)if(t.ordinalNumbers[r]!==n.getRawOrdinalNumber(r))return!0},e.prototype._updateSortWithinSameData=function(t,e,n,i){if(this._isOrderChangedWithinSameData(t,e,n)){var r=this._dataSort(t,n,e);this._isOrderDifferentInView(r,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:r}))}},e.prototype._dispatchInitSort=function(t,e,n){var i=e.baseAxis,r=this._dataSort(t,i,function(n){return t.get(t.mapDimension(e.otherAxis.dim),n)});n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:r})},e.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},e.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var e=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(e){sg(e,t,aT(e).dataIndex)})):e.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(pp),y3={cartesian2d:function(t,e){var n=e.width<0?-1:1,i=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height);var r=t.x+t.width,o=t.y+t.height,a=y1(e.x,t.x),s=y2(e.x+e.width,r),l=y1(e.y,t.y),u=y2(e.y+e.height,o),h=sr?s:a,e.y=c&&l>o?u:l,e.width=h?0:s-a,e.height=c?0:u-l,n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),h||c},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var i=e.r;e.r=e.r0,e.r0=i}var r=y2(e.r,t.r),o=y1(e.r0,t.r0);e.r=r,e.r0=o;var a=r-o<0;if(n<0){var i=e.r;e.r=e.r0,e.r0=i}return a}},y4={cartesian2d:function(t,e,n,i,r,o,a,s,l){var u=new au({shape:td({},i),z2:1});return u.__dataIndex=n,u.name="item",o&&(u.shape[r?"height":"width"]=0),u},polar:function(t,e,n,i,r,o,a,s,l){var u,h,c,p=!r&&l?y$:cp,d=new p({shape:i,z2:1});if(d.name="item",u=vn(r),c=p===y$,d.calculateTextPosition=function(t,e,n){var i=e.position;if(!i||i instanceof Array)return iQ(t,e,n);var r=u(i),o=null!=e.distance?e.distance:5,a=this.shape,s=a.cx,l=a.cy,h=a.r,p=a.r0,d=(h+p)/2,f=a.startAngle,g=a.endAngle,y=(f+g)/2,v=c?Math.abs(h-p)/2:0,m=Math.cos,x=Math.sin,_=s+h*m(f),b=l+h*x(f),w="left",S="top";switch(r){case"startArc":_=s+(p-o)*m(y),b=l+(p-o)*x(y),w="center",S="top";break;case"insideStartArc":_=s+(p+o)*m(y),b=l+(p+o)*x(y),w="center",S="bottom";break;case"startAngle":_=s+d*m(f)+yJ(f,o+v,!1),b=l+d*x(f)+yQ(f,o+v,!1),w="right",S="middle";break;case"insideStartAngle":_=s+d*m(f)+yJ(f,-o+v,!1),b=l+d*x(f)+yQ(f,-o+v,!1),w="left",S="middle";break;case"middle":_=s+d*m(y),b=l+d*x(y),w="center",S="middle";break;case"endArc":_=s+(h+o)*m(y),b=l+(h+o)*x(y),w="center",S="bottom";break;case"insideEndArc":_=s+(h-o)*m(y),b=l+(h-o)*x(y),w="center",S="top";break;case"endAngle":_=s+d*m(g)+yJ(g,o+v,!0),b=l+d*x(g)+yQ(g,o+v,!0),w="left",S="middle";break;case"insideEndAngle":_=s+d*m(g)+yJ(g,-o+v,!0),b=l+d*x(g)+yQ(g,-o+v,!0),w="right",S="middle";break;default:return iQ(t,e,n)}return(t=t||{}).x=_,t.y=b,t.align=w,t.verticalAlign=S,t},o){var f=d.shape,g=r?"r":"endAngle",y={};f[g]=r?i.r0:i.startAngle,y[g]=i[g],(s?sh:sc)(d,{shape:y},o)}return d}};function y6(t,e,n,i,r,o,a,s){var l,u;o?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(a?sh:sc)(n,{shape:l},e,r,null),(a?sh:sc)(n,{shape:u},e?t.baseAxis.model:null,r)}function y8(t,e){for(var n=0;n0?1:-1,u=a.height>0?1:-1;return{x:a.x+l*s/2,y:a.y+u*s/2,width:a.width-l*s,height:a.height-u*s}},polar:function(t,e,n){var i=t.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function vn(t){var e;return e=t?"Arc":"Angle",function(t){switch(t){case"start":case"insideStart":case"end":case"insideEnd":return t+e;default:return t}}}function vi(t,e,n,i,r,o,a,s){var l=e.getItemVisual(n,"style");if(s){if(!o.get("roundCap")){var u=t.shape,h=y0(i.getModel("itemStyle"),u,!0);td(u,h),t.setShape(u)}}else{var c=i.get(["itemStyle","borderRadius"])||0;t.setShape("r",c)}t.useStyle(l);var p=i.getShallow("cursor");p&&t.attr("cursor",p);var d=s?a?r.r>=r.r0?"endArc":"startArc":r.endAngle>=r.startAngle?"endAngle":"startAngle":a?r.height>=0?"bottom":"top":r.width>=0?"right":"left",f=sb(i);s_(t,f,{labelFetcher:o,labelDataIndex:n,defaultText:yt(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:d});var g=t.getTextContent();if(s&&g){var y=i.get(["label","position"]);t.textConfig.inside="middle"===y||null,function(t,e,n,i){if(tD(i))return t.setTextConfig({rotation:i});if(tI(e))return t.setTextConfig({rotation:0});var r,o=t.shape,a=o.clockwise?o.startAngle:o.endAngle,s=o.clockwise?o.endAngle:o.startAngle,l=n(e);switch(l){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":r=(a+s)/2;break;case"startAngle":case"insideStartAngle":r=a;break;case"endAngle":case"insideEndAngle":r=s;break;default:t.setTextConfig({rotation:0});return}var u=1.5*Math.PI-r;"middle"===l&&u>Math.PI/2&&u<1.5*Math.PI&&(u-=Math.PI),t.setTextConfig({rotation:u})}(t,"outside"===y?d:y,vn(a),i.get(["label","rotate"]))}sL(g,f,o.getRawValue(n),function(t){return ye(e,t)});var v=i.getModel(["emphasis"]);a7(t,v.get("focus"),v.get("blurScope"),v.get("disabled")),sn(t,i),null!=r.startAngle&&null!=r.endAngle&&r.startAngle===r.endAngle&&(t.style.fill="none",t.style.stroke="none",tm(t.states,function(t){t.style&&(t.style.fill=t.style.stroke="none")}))}var vr=function(){},vo=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeBar",n}return U(e,t),e.prototype.getDefaultShape=function(){return new vr},e.prototype.buildPath=function(t,e){for(var n=e.points,i=this.baseDimIdx,r=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l=s[0]&&e<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[h]}return -1}(this,t.offsetX,t.offsetY);aT(this).dataIndex=e>=0?e:null},30,!1);function vl(t,e,n){if(yM(n,"cartesian2d")){var i=n.getArea();return{x:t?e.x:i.x,y:t?i.y:e.y,width:t?e.width:i.width,height:t?i.height:e.height}}var i=n.getArea();return{cx:i.cx,cy:i.cy,r0:t?i.r0:e.r0,r:t?i.r:e.r,startAngle:t?e.startAngle:0,endAngle:t?e.endAngle:2*Math.PI}}var vu=2*Math.PI,vh=Math.PI/180;function vc(t,e){return l_(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function vp(t,e){var n,i,r=vc(t,e),o=t.get("center"),a=t.get("radius");tI(a)||(a=[0,a]);var s=ro(r.width,e.getWidth()),l=ro(r.height,e.getHeight()),u=Math.min(s,l),h=ro(a[0],u/2),c=ro(a[1],u/2),p=t.coordinateSystem;if(p){var d=p.dataToPoint(o);n=d[0]||0,i=d[1]||0}else tI(o)||(o=[o,o]),n=ro(o[0],s)+r.x,i=ro(o[1],l)+r.y;return{cx:n,cy:i,r0:h,r:c}}function vd(t,e,n){e.eachSeriesByType(t,function(t){var e=t.getData(),i=e.mapDimension("value"),r=vc(t,n),o=vp(t,n),a=o.cx,s=o.cy,l=o.r,u=o.r0,h=-t.get("startAngle")*vh,c=t.get("endAngle"),p=t.get("padAngle")*vh;c="auto"===c?h-vu:-c*vh;var d=t.get("minAngle")*vh+p,f=0;e.each(i,function(t){!isNaN(t)&&f++});var g=e.getSum(i),y=Math.PI/(g||f)*2,v=t.get("clockwise"),m=t.get("roseType"),x=t.get("stillShowZeroSum"),_=e.getDataExtent(i);_[0]=0;var b=v?1:-1,w=[h,c],S=b*p/2;oH(w,!v),h=w[0],c=w[1];var M=vf(t);M.startAngle=h,M.endAngle=c,M.clockwise=v;var I=Math.abs(c-h),T=I,C=0,A=h;if(e.setLayout({viewRect:r,r:l}),e.each(i,function(t,n){if(isNaN(t))return void e.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:v,cx:a,cy:s,r0:u,r:m?NaN:l});(i="area"!==m?0===g&&x?y:t*y:I/f)i?h=o=A+b*i/2:(o=A+S,h=r-S),e.setItemLayout(n,{angle:i,startAngle:o,endAngle:h,clockwise:v,cx:a,cy:s,r0:u,r:m?rr(t,_,[u,l]):l}),A=r}),Tn?a:o,h=Math.abs(l.label.y-n);if(h>=u.maxY){var c=l.label.x-e-l.len2*r,p=i+l.len;u.rB=Math.abs(c)t.unconstrainedWidth?null:d:null;i.setStyle("width",f)}var g=i.getBoundingRect();o.width=g.width;var y=(i.style.margin||0)+2.1;o.height=g.height+y,o.y-=(o.height-c)/2}}}function vx(t){return"center"===t.position}var v_=function(t){function e(e,n,i){var r=t.call(this)||this;r.z2=2;var o=new aI;return r.setTextContent(o),r.updateData(e,n,i,!0),r}return U(e,t),e.prototype.updateData=function(t,e,n,i){var r=t.hostModel,o=t.getItemModel(e),a=o.getModel("emphasis"),s=t.getItemLayout(e),l=td(y0(o.getModel("itemStyle"),s,!0),s);if(isNaN(l.startAngle))return void this.setShape(l);if(i){this.setShape(l);var u=r.getShallow("animationType");r.ecModel.ssr?(sc(this,{scaleX:0,scaleY:0},r,{dataIndex:e,isFrom:!0}),this.originX=l.cx,this.originY=l.cy):"scale"===u?(this.shape.r=s.r0,sc(this,{shape:{r:s.r}},r,e)):null!=n?(this.setShape({startAngle:n,endAngle:n}),sc(this,{shape:{startAngle:s.startAngle,endAngle:s.endAngle}},r,e)):(this.shape.endAngle=s.startAngle,sh(this,{shape:{endAngle:s.endAngle}},r,e))}else sy(this),sh(this,{shape:l},r,e);this.useStyle(t.getItemVisual(e,"style")),sn(this,o);var h=(s.startAngle+s.endAngle)/2,c=r.get("selectedOffset"),p=Math.cos(h)*c,d=Math.sin(h)*c,f=o.getShallow("cursor");f&&this.attr("cursor",f),this._updateLabel(r,t,e),this.ensureState("emphasis").shape=td({r:s.r+(a.get("scale")&&a.get("scaleSize")||0)},y0(a.getModel("itemStyle"),s)),td(this.ensureState("select"),{x:p,y:d,shape:y0(o.getModel(["select","itemStyle"]),s)}),td(this.ensureState("blur"),{shape:y0(o.getModel(["blur","itemStyle"]),s)});var g=this.getTextGuideLine(),y=this.getTextContent();g&&td(g.ensureState("select"),{x:p,y:d}),td(y.ensureState("select"),{x:p,y:d}),a7(this,a.get("focus"),a.get("blurScope"),a.get("disabled"))},e.prototype._updateLabel=function(t,e,n){var i=e.getItemModel(n),r=i.getModel("labelLine"),o=e.getItemVisual(n,"style"),a=o&&o.fill,s=o&&o.opacity;s_(this,sb(i),{labelFetcher:e.hostModel,labelDataIndex:n,inheritColor:a,defaultOpacity:s,defaultText:t.getFormattedLabel(n,"normal")||e.getName(n)});var l=this.getTextContent();this.setTextConfig({position:null,rotation:null}),l.attr({z2:10});var u=t.get(["label","position"]);if("outside"!==u&&"outer"!==u)this.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new cw,this.setTextGuideLine(h)),fC(this,fA(i),{stroke:a,opacity:tz(r.get(["lineStyle","opacity"]),s,1)})}},e}(cp),vb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return U(e,t),e.prototype.render=function(t,e,n,i){var r,o=t.getData(),a=this._data,s=this.group;if(!a&&o.count()>0){for(var l=o.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u0?"right":"left":L>0?"left":"right"}var B=Math.PI,V=0,F=_.get("rotate");if(tD(F))V=B/180*F;else if("center"===b)V=0;else if("radial"===F||!0===F)V=L<0?-D+B:-D;else if("tangential"===F&&"outside"!==b&&"outer"!==b){var G=Math.atan2(L,k);G<0&&(G=2*B+G),k>0&&(G=B+G),V=G-B}if(o=!!V,v.x=s,v.y=c,v.rotation=V,v.setStyle({verticalAlign:"middle"}),P){v.setStyle({align:f});var W=v.states.select;W&&(W.x+=v.x,W.y+=v.y)}else{var H=v.getBoundingRect().clone();H.applyTransform(v.getComputedTransform());var U=(v.style.margin||0)+2.1;H.y-=U/2,H.height+=U,r.push({label:v,labelLine:m,position:b,len:C,len2:A,minTurnAngle:T.get("minTurnAngle"),maxSurfaceAngle:T.get("maxSurfaceAngle"),surfaceNormal:new eF(L,k),linePoints:p,textAlign:f,labelDistance:w,labelAlignTo:S,edgeDistance:M,bleedMargin:I,rect:H,unconstrainedWidth:H.width,labelStyleWidth:v.style.width})}g.setTextConfig({inside:P})}}),!o&&t.get("avoidLabelOverlap")&&function(t,e,n,i,r,o,a,s){for(var l=[],u=[],h=Number.MAX_VALUE,c=-Number.MAX_VALUE,p=0;p0){n=n/180*Math.PI,fy.fromArray(t[0]),fv.fromArray(t[1]),fm.fromArray(t[2]),eF.sub(fx,fv,fy),eF.sub(f_,fm,fv);var i=fx.len(),r=f_.len();if(!(i<.001)&&!(r<.001)&&(fx.scale(1/i),f_.scale(1/r),fx.dot(e)=a)eF.copy(fS,fm);else{fS.scaleAndAdd(f_,o/Math.tan(Math.PI/2-s));var l=fm.x!==fv.x?(fS.x-fv.x)/(fm.x-fv.x):(fS.y-fv.y)/(fm.y-fv.y);if(isNaN(l))return;l<0?eF.copy(fS,fv):l>1&&eF.copy(fS,fm)}fS.toArray(t[1])}}}(_,g.surfaceNormal,g.maxSurfaceAngle),v.setShape({points:_}),y.__hostTarget.textGuideLineConfig={anchor:new eF(_[0][0],_[0][1])})}}}(t),"expansion"!==t.get("animationTypeUpdate")&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,e){var n=e.getData().getItemLayout(0);if(n){var i=t[0]-n.cx,r=t[1]-n.cy,o=Math.sqrt(i*i+r*r);return o<=n.r&&o>=n.r0}},e.type="pie",e}(pp);function vw(t,e,n){e=tI(e)&&{coordDimensions:e}||td({encodeDefine:t.getEncode()},e);var i=t.getSource(),r=new g1(g2(i,e).dimensions,t);return r.initData(i,n),r}var vS=function(){function t(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return t.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},t.prototype.containName=function(t){return this._getRawData().indexOfName(t)>=0},t.prototype.indexOfName=function(t){return this._getDataWithEncodedVisual().indexOfName(t)},t.prototype.getItemVisual=function(t,e){return this._getDataWithEncodedVisual().getItemVisual(t,e)},t}(),vM=rN(),vI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return U(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new vS(tS(this.getData,this),tS(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return vw(this,{coordDimensions:["value"],encodeDefaulter:tM(lW,this)})},e.prototype.getDataParams=function(e){var n=this.getData(),i=vM(n),r=i.seats;if(!r){var o=[];n.each(n.mapDimension("value"),function(t){o.push(t)}),r=i.seats=function(t,e){var n=t_(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===n)return[];for(var i=Math.pow(10,e),r=tx(t,function(t){return(isNaN(t)?0:t)/n*i*100}),o=100*i,a=tx(r,function(t){return Math.floor(t)}),s=t_(a,function(t,e){return t+e},0),l=tx(r,function(t,e){return t-a[e]});su&&(u=l[c],h=c);++a[h],l[h]=0,++s}return tx(a,function(t){return t/i})}(o,n.hostModel.get("percentPrecision"))}var a=t.prototype.getDataParams.call(this,e);return a.percent=r[e]||0,a.$vars.push("percent"),a},e.prototype._defaultLabelLine=function(t){rI(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.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,endAngle:"auto",padAngle:0,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}(hA),vT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return U(e,t),e.prototype.getInitialData=function(t,e){return g7(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},e.prototype.brushSelector=function(t,e,n){return n.point(e.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}(hA),vC=function(){},vA=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return U(e,t),e.prototype.getDefaultShape=function(){return new vC},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,e){var n,i=e.points,r=e.size,o=this.symbolProxy,a=o.shape,s=t.getContext?t.getContext():t,l=s&&r[0]<4,u=this.softClipShape;if(l){this._ctx=s;return}for(this._ctx=null,n=this._off;n=0;s--){var l=2*s,u=i[l]-o/2,h=i[l+1]-a/2;if(t>=u&&e>=h&&t<=u+o&&e<=h+a)return s}return -1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();return(t=n[0],e=n[1],i.contain(t,e))?(this.hoverDataIdx=this.findDataIndex(t,e))>=0:(this.hoverDataIdx=-1,!1)},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape,n=e.points,i=e.size,r=i[0],o=i[1],a=1/0,s=1/0,l=-1/0,u=-1/0,h=0;h=0&&(l.dataIndex=n+(t.startIndex||0))})},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),vL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return U(e,t),e.prototype.render=function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},e.prototype.updateTransform=function(t,e,n){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var r=yR("").reset(t,e,n);r.progress&&r.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){if(t.get("clip",!0)){var e=t.coordinateSystem;return e&&e.getArea&&e.getArea(.1)}},e.prototype._updateSymbolDraw=function(t,e){var n=this._symbolDraw,i=e.pipelineContext.large;return n&&i===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=i?new vD:new ys,this._isLargeDraw=i,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(pp),vk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return U(e,t),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}(lC),vP=function(){function t(){}return t.prototype.getNeedCrossZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t}(),vO=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return U(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",rV).models[0]},e.type="cartesian2dAxis",e}(lC);ty(vO,vP);var vR={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,showMinLine:!0,showMaxLine:!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)"]}}},vN=tc({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},vR),vE=tc({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}}},vR),vz=tc({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},vE),vB=tf({logBase:10},vE);let vV={category:vN,value:vE,time:vz,log:vB};var vF=0,vG=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++vF}return t.createByAxisModel=function(e){var n=e.option,i=n.data,r=i&&tx(i,vW);return new t({categories:r,needCollect:!r,deduplication:!1!==n.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!tC(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=this._getOrCreateMap();return null==(e=i.get(t))&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=tX(this.categories))},t}();function vW(t){return tL(t)&&null!=t.value?t.value:t+""}var vH={value:1,category:1,time:1,log:1};function vU(t,e,n,i){tm(vH,function(r,o){var a=tc(tc({},vV[o],!0),i,!0),s=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e+"Axis."+o,n}return U(n,t),n.prototype.mergeDefaultAndTheme=function(t,e){var n=lw(this),i=n?lM(t):{};tc(t,e.getTheme().get(o+"Axis")),tc(t,this.getDefaultOption()),t.type=vY(t),n&&lS(t,i,n)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=vG.createByAxisModel(this))},n.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=e+"Axis."+o,n.defaultOption=a,n}(n);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+"Axis",vY)}function vY(t){return t.type||(t.data?"category":"value")}var vX=function(){function t(t){this._setting=t||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(t){return this._setting[t]},t.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1])},t.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();function vZ(t){return"interval"===t.type||"log"===t.type}function vj(t){var e=Math.pow(10,rf(t)),n=t/e;return n?2===n?n=3:3===n?n=5:n*=2:n=1,ra(n*e)}rQ(vX);function vq(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function vK(t,e){return t>=e[0]&&t<=e[1]}function v$(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function vJ(t,e){return t*(e[1]-e[0])+e[0]}var vQ=function(t){function e(e){var n=t.call(this,e)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new vG({})),tI(i)&&(i=new vG({categories:tx(i,function(t){return tL(t)?t.value:t})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return U(e,t),e.prototype.parse=function(t){return null==t?NaN:tC(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return vK(t=this.parse(t),this._extent)&&null!=this._ordinalMeta.categories[t]},e.prototype.normalize=function(t){return v$(t=this._getTickNumber(this.parse(t)),this._extent)},e.prototype.scale=function(t){return t=Math.round(vJ(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null==t){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);r=0&&t=0&&t=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(vX);vX.registerClass(vQ);var v0=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return U(e,t),e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return vK(t,this._extent)},e.prototype.normalize=function(t){return v$(t,this._extent)},e.prototype.scale=function(t){return vJ(t,this._extent)},e.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},e.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=rl(t)+2},e.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=[];if(!e)return o;n[0]1e4)return[];var s=o.length?o[o.length-1].value:i[1];return n[1]>s&&(t?o.push({value:ra(s+e,r)}):o.push({value:n[1]})),o},e.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],i=this.getExtent(),r=1;ri[0]&&hn&&(u=l.interval=n),h=l.intervalPrecision=rl(u)+2,o=l.niceTickExtent=[ra(Math.ceil(i[0]/u)*u,h),ra(Math.floor(i[1]/u)*u,h)],a=i,isFinite(o[0])||(o[0]=a[0]),isFinite(o[1])||(o[1]=a[1]),vq(o,0,a),vq(o,1,a),o[0]>o[1]&&(o[0]=o[1]),l);this._intervalPrecision=c.intervalPrecision,this._interval=c.interval,this._niceExtent=c.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var n=Math.abs(e[0]);t.fixMax||(e[1]+=n/2),e[0]-=n/2}else e[1]=1;isFinite(e[1]-e[0])||(e[0]=0,e[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var i=this._interval;t.fixMin||(e[0]=ra(Math.floor(e[0]/i)*i)),t.fixMax||(e[1]=ra(Math.ceil(e[1]/i)*i))},e.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},e.type="interval",e}(vX);vX.registerClass(v0);var v1=function(t,e,n,i){for(;n>>1;t[r][1]0)for(var s=0;s=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(tI(o)){var c=null==t.level?0:t.level>=0?t.level:o.length+t.level;c=Math.min(c,o.length-1),o=o[c]}}return s5(new Date(t.value),o,r,i)}(t,e,n,this.getSetting("locale"),i)},e.prototype.getTicks=function(){var t=this._interval,e=this._extent,n=[];if(!t)return n;n.push({value:e[0],level:0});var i=this.getSetting("useUTC"),r=function(t,e,n,i){for(var r=0,o=[],a=[],s=0,l=0,u=0;u6?6:c>3?3:c>2?2:1,g=s8(n),y=li(n);break;case"week":case"half-week":case"day":f=(p=e/864e5)>16?16:p>7.5?7:p>3.5?4:p>1.5?2:1,g=s7(n),y=lr(n);break;case"half-day":case"quarter-day":case"hour":f=(d=e/36e5)>12?12:d>6?6:d>3.5?4:d>2?2:1,g=s9(n),y=lo(n);break;case"minute":f=v3(e,!0),g=lt(n),y=la(n);break;case"second":f=v3(e,!1),g=le(n),y=ls(n);break;case"millisecond":f=rg(e,!0),g=ln(n),y=ll(n)}!function(t,e,n,r,o,a,s){for(var l=new Date(e),u=e,h=l[r]();u1&&0===l&&o.unshift({value:o[0].value-f})}}for(var l=0;l=i[0]&&f<=i[1]&&s++)}var g=(i[1]-i[0])/e;if(s>1.5*g&&l>g/1.5||(o.push(p),s>g||t===s0[u]))break}a=[]}}for(var y=tb(tx(o,function(t){return tb(t,function(t){return t.value>=i[0]&&t.value<=i[1]&&!t.notAdd})}),function(t){return t.length>0}),v=[],m=y.length-1,u=0;un&&(this._approxInterval=n);var o=v5.length,a=Math.min(v1(v5,this._approxInterval,0,o),o-1);this._interval=v5[a][1],this._minLevelUnit=v5[Math.max(a-1,0)][0]},e.prototype.parse=function(t){return tD(t)?t:+rd(t)},e.prototype.contain=function(t){return vK(this.parse(t),this._extent)},e.prototype.normalize=function(t){return v$(this.parse(t),this._extent)},e.prototype.scale=function(t){return vJ(t,this._extent)},e.type="time",e}(v0),v5=[["second",1e3],["minute",6e4],["hour",36e5],["quarter-day",216e5],["half-day",432e5],["day",10368e4],["half-week",3024e5],["week",6048e5],["month",26784e5],["quarter",8208e6],["half-year",15768e6],["year",31536e6]];function v3(t,e){return(t/=e?6e4:1e3)>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}vX.registerClass(v2);var v4=vX.prototype,v6=v0.prototype,v8=Math.floor,v7=Math.ceil,v9=Math.pow,mt=Math.log,me=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new v0,e._interval=0,e}return U(e,t),e.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,i=e.getExtent();return tx(v6.getTicks.call(this,t),function(t){var e=t.value,r=ra(v9(this.base,e));return r=e===n[0]&&this._fixMin?ra(r,rl(i[0])):r,{value:r=e===n[1]&&this._fixMax?ra(r,rl(i[1])):r}},this)},e.prototype.setExtent=function(t,e){var n=mt(this.base);t=mt(Math.max(0,t))/n,e=mt(Math.max(0,e))/n,v6.setExtent.call(this,t,e)},e.prototype.getExtent=function(){var t,e,n=this.base,i=v4.getExtent.call(this);i[0]=v9(n,i[0]),i[1]=v9(n,i[1]);var r=this._originalScale.getExtent();return this._fixMin&&(i[0]=(t=i[0],ra(t,rl(r[0])))),this._fixMax&&(i[1]=(e=i[1],ra(e,rl(r[1])))),i},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=mt(t[0])/mt(e),t[1]=mt(t[1])/mt(e),v4.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(n!==1/0&&!(n<=0)){var i=Math.pow(10,rf(n));for(t/n*i<=.5&&(i*=10);!isNaN(i)&&1>Math.abs(i)&&Math.abs(i)>0;)i*=10;var r=[ra(v7(e[0]/i)*i),ra(v8(e[1]/i)*i)];this._interval=i,this._niceExtent=r}},e.prototype.calcNiceExtent=function(t){v6.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 vK(t=mt(t)/mt(this.base),this._extent)},e.prototype.normalize=function(t){return v$(t=mt(t)/mt(this.base),this._extent)},e.prototype.scale=function(t){return t=vJ(t,this._extent),v9(this.base,t)},e.type="log",e}(vX),mn=me.prototype;mn.getMinorTicks=v6.getMinorTicks,mn.getLabel=v6.getLabel,vX.registerClass(me);var mi=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]0&&u>0&&!h&&(l=0),l<0&&u<0&&!c&&(u=0));var d=this._determinedMin,f=this._determinedMax;return null!=d&&(l=d,h=!0),null!=f&&(u=f,c=!0),{min:l,max:u,minFixed:h,maxFixed:c,isBlank:p}},t.prototype.modifyDataMinMax=function(t,e){this[mo[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){this[mr[t]]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),mr={min:"_determinedMin",max:"_determinedMax"},mo={min:"_dataMin",max:"_dataMax"};function ma(t,e,n){var i=t.rawExtentInfo;return i||(i=new mi(t,e,n),t.rawExtentInfo=i),i}function ms(t,e){return null==e?null:e!=e?NaN:t.parse(e)}function ml(t,e){var n=t.type,i=ma(t,e,t.getExtent()).calculate();t.setBlank(i.isBlank);var r=i.min,o=i.max,a=e.ecModel;if(a&&"time"===n){var s=yG("bar",a),l=!1;if(tm(s,function(t){l=l||t.getBaseAxis()===e.axis}),l){var u=function(t,e,n,i){var r=n.axis.getExtent(),o=Math.abs(r[1]-r[0]),a=function(t,e,n){if(t&&e)return t[yF(e)]}(i,n.axis);if(void 0===a)return{min:t,max:e};var s=1/0;tm(a,function(t){s=Math.min(t.offset,s)});var l=-1/0;tm(a,function(t){l=Math.max(t.offset+t.width,l)});var u=(s=Math.abs(s))+(l=Math.abs(l)),h=e-t,c=h/(1-(s+l)/o)-h;return e+=l/u*c,{min:t-=s/u*c,max:e}}(r,o,e,yW(s));r=u.min,o=u.max}}return{extent:[r,o],fixMin:i.minFixed,fixMax:i.maxFixed}}function mu(t,e){var n=ml(t,e),i=n.extent,r=e.get("splitNumber");t instanceof me&&(t.base=e.get("logBase"));var o=t.type,a=e.get("interval"),s="interval"===o||"time"===o;t.setExtent(i[0],i[1]),t.calcNiceExtent({splitNumber:r,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:s?e.get("minInterval"):null,maxInterval:s?e.get("maxInterval"):null}),null!=a&&t.setInterval&&t.setInterval(a)}function mh(t,e){if(e=e||t.get("type"))switch(e){case"category":return new vQ({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new v2({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(vX.getClass(e)||v0)}}function mc(t){var e=t.getLabelModel().get("formatter"),n="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?function(n,i){return t.scale.getFormattedLabel(n,i,e)}:tC(e)?function(n){var i=t.scale.getLabel(n);return e.replace("{value}",null!=i?i:"")}:tT(e)?function(i,r){return null!=n&&(r=i.value-n),e(mp(t,i),r,null!=i.level?{level:i.level}:null)}:function(e){return t.scale.getLabel(e)}}function mp(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function md(t){var e=t.get("interval");return null==e?"auto":e}function mf(t){return"category"===t.type&&0===md(t.getLabelModel())}function mg(t,e){var n={};return tm(t.mapDimensionsAll(e),function(e){n[g8(t,e)]=!0}),tw(n)}var my=function(){function t(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return t.prototype.getAxis=function(t){return this._axes[t]},t.prototype.getAxes=function(){return tx(this._dimList,function(t){return this._axes[t]},this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),tb(this.getAxes(),function(e){return e.scale.type===t})},t.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},t}(),mv=["x","y"];function mm(t){return"interval"===t.type||"time"===t.type}var mx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=mv,e}return U(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(mm(t)&&mm(e)){var n=t.getExtent(),i=e.getExtent(),r=this.dataToPoint([n[0],i[0]]),o=this.dataToPoint([n[1],i[1]]),a=n[1]-n[0],s=i[1]-i[0];if(a&&s){var l=(o[0]-r[0])/a,u=(o[1]-r[1])/s,h=r[0]-n[0]*l,c=r[1]-i[0]*u,p=this._transform=[l,0,0,u,h,c];this._invTransform=eV([],p)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.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,e){var n=this.dataToPoint(t),i=this.dataToPoint(e),r=this.getArea(),o=new eq(n[0],n[1],i[0]-n[0],i[1]-n[1]);return r.intersect(o)},e.prototype.dataToPoint=function(t,e,n){n=n||[];var i=t[0],r=t[1];if(this._transform&&null!=i&&isFinite(i)&&null!=r&&isFinite(r))return ei(n,t,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(i,e)),n[1]=a.toGlobalCoord(a.dataToCoord(r,e)),n},e.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),o=i.getExtent(),a=n.parse(t[0]),s=i.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(r[0],r[1]),a),Math.max(r[0],r[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),e},e.prototype.pointToData=function(t,e){var n=[];if(this._invTransform)return ei(n,t,this._invTransform);var i=this.getAxis("x"),r=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(t[0]),e),n[1]=r.coordToData(r.toLocalCoord(t[1]),e),n},e.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},e.prototype.getArea=function(t){t=t||0;var e=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(e[0],e[1])-t,r=Math.min(n[0],n[1])-t,o=Math.max(e[0],e[1])-i+t,a=Math.max(n[0],n[1])-r+t;return new eq(i,r,o,a)},e}(my),m_=rN();function mb(t,e){var n=tx(e,function(e){return t.scale.parse(e)});return"time"===t.type&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function mw(t,e){var n,i,r,o,a=mS(t,"labels"),s=md(e),l=mM(a,s);return l||(tT(s)?r=mC(t,s):(o="auto"===s?null!=(i=m_(n=t).autoInterval)?i:m_(n).autoInterval=n.calculateCategoryInterval():s,r=mT(t,o)),mI(a,s,{labels:r,labelCategoryInterval:o}))}function mS(t,e){return m_(t)[e]||(m_(t)[e]=[])}function mM(t,e){for(var n=0;n1&&h/l>2&&(u=Math.round(Math.ceil(u/l)*l));var c=mf(t),p=a.get("showMinLabel")||c,d=a.get("showMaxLabel")||c;p&&u!==o[0]&&g(o[0]);for(var f=u;f<=o[1];f+=l)g(f);function g(t){var e={value:t};s.push(n?t:{formattedLabel:i(e),rawLabel:r.getLabel(e),tickValue:t})}return d&&f-l!==o[1]&&g(o[1]),s}function mC(t,e,n){var i=t.scale,r=mc(t),o=[];return tm(i.getTicks(),function(t){var a=i.getLabel(t),s=t.value;e(t.value,a)&&o.push(n?s:{formattedLabel:r(t),rawLabel:a,tickValue:s})}),o}var mA=[0,1],mD=function(){function t(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return t.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},t.prototype.containData=function(t){return this.scale.contain(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return ru(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&mL(n=n.slice(),i.count()),rr(t,mA,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&mL(n=n.slice(),i.count());var r=rr(t,n,mA,e);return this.scale.scale(r)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){var e=(t=t||{}).tickModel||this.getTickModel(),n=function(t,e){var n=t.getTickModel().get("customValues");if(n){var i=t.scale.getExtent();return{ticks:tb(mb(t,n),function(t){return t>=i[0]&&t<=i[1]})}}return"category"===t.type?function(t,e){var n,i,r=mS(t,"ticks"),o=md(e),a=mM(r,o);if(a)return a;if((!e.get("show")||t.scale.isBlank())&&(n=[]),tT(o))n=mC(t,o,!0);else if("auto"===o){var s=mw(t,t.getLabelModel());i=s.labelCategoryInterval,n=tx(s.labels,function(t){return t.tickValue})}else n=mT(t,i=o,!0);return mI(r,o,{ticks:n,tickCategoryInterval:i})}(t,e):{ticks:tx(t.scale.getTicks(),function(t){return t.value})}}(this,e).ticks,i=tx(n,function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}},this);return function(t,e,n,i){var r,o,a=e.length;if(t.onBand&&!n&&a){var s=t.getExtent();if(1===a)e[0].coord=s[0],r=e[1]={coord:s[1],tickValue:e[0].tickValue};else{var l=e[a-1].tickValue-e[0].tickValue,u=(e[a-1].coord-e[0].coord)/l;tm(e,function(t){t.coord-=u/2});var h=t.scale.getExtent();o=1+h[1]-e[a-1].tickValue,r={coord:e[a-1].coord+u*o,tickValue:h[1]+1},e.push(r)}var c=s[0]>s[1];p(e[0].coord,s[0])&&(i?e[0].coord=s[0]:e.shift()),i&&p(s[0],e[0].coord)&&e.unshift({coord:s[0]}),p(s[1],r.coord)&&(i?r.coord=s[1]:e.pop()),i&&p(r.coord,s[1])&&e.push({coord:s[1]})}function p(t,e){return t=ra(t),e=ra(e),c?t>e:t0&&t<100||(t=5),tx(this.scale.getMinorTicks(t),function(t){return tx(t,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this)},this)},t.prototype.getViewLabels=function(){return function(t){var e,n,i,r,o,a,s=t.getLabelModel().get("customValues");if(s){var l=mc(t),u=t.scale.getExtent();return{labels:tx(tb(mb(t,s),function(t){return t>=u[0]&&t<=u[1]}),function(e){var n={value:e};return{formattedLabel:l(n),rawLabel:t.scale.getLabel(n),tickValue:e}})}}return"category"===t.type?(n=(e=t).getLabelModel(),i=mw(e,n),!n.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:i.labelCategoryInterval}:i):(o=(r=t).scale.getTicks(),a=mc(r),{labels:tx(o,function(t,e){return{level:t.level,formattedLabel:a(t,e),rawLabel:r.scale.getLabel(t),tickValue:t.value}})})}(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+ +!!this.onBand;return 0===n&&(n=1),Math.abs(Math.abs(t[1]-t[0]))/n},t.prototype.calculateCategoryInterval=function(){return function(t){var e,n,i=(n=(e=t).getLabelModel(),{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:n.get("rotate")||0,font:n.getFont()}),r=mc(t),o=(i.axisRotate-i.labelRotate)/180*Math.PI,a=t.scale,s=a.getExtent(),l=a.count();if(s[1]-s[0]<1)return 0;var u=1;l>40&&(u=Math.max(1,Math.floor(l/40)));for(var h=s[0],c=t.dataToCoord(h+1)-t.dataToCoord(h),p=Math.abs(c*Math.cos(o)),d=Math.abs(c*Math.sin(o)),f=0,g=0;h<=s[1];h+=u){var y=0,v=0,m=ij(r({value:h}),i.font,"center","top");y=1.3*m.width,v=1.3*m.height,f=Math.max(f,y,7),g=Math.max(g,v,7)}var x=f/p,_=g/d;isNaN(x)&&(x=1/0),isNaN(_)&&(_=1/0);var b=Math.max(0,Math.floor(Math.min(x,_))),w=m_(t.model),S=t.getExtent(),M=w.lastAutoInterval,I=w.lastTickCount;return null!=M&&null!=I&&1>=Math.abs(M-b)&&1>=Math.abs(I-l)&&M>b&&w.axisExtent0===S[0]&&w.axisExtent1===S[1]?b=M:(w.lastTickCount=l,w.lastAutoInterval=b,w.axisExtent0=S[0],w.axisExtent1=S[1]),b}(this)},t}();function mL(t,e){var n=(t[1]-t[0])/e/2;t[0]+=n,t[1]-=n}var mk=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.index=0,a.type=r||"value",a.position=o||"bottom",a}return U(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},e.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t[+("x"!==this.dim)]),e)},e.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(mD);function mP(t,e,n){n=n||{};var i=t.coordinateSystem,r=e.axis,o={},a=r.getAxesOnZeroOf()[0],s=r.position,l=a?"onZero":s,u=r.dim,h=i.getRect(),c=[h.x,h.x+h.width,h.y,h.y+h.height],p={left:0,right:1,top:0,bottom:1,onZero:2},d=e.get("offset")||0,f="x"===u?[c[2]-d,c[3]+d]:[c[0]-d,c[1]+d];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));f[p.onZero]=Math.max(Math.min(g,f[1]),f[0])}o.position=["y"===u?f[p[l]]:c[0],"x"===u?f[p[l]]:c[3]],o.rotation=Math.PI/2*("x"!==u),o.labelDirection=o.tickDirection=o.nameDirection=({top:-1,bottom:1,left:-1,right:1})[s],o.labelOffset=a?f[p[s]]-f[p.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),tN(n.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var y=e.get(["axisLabel","rotate"]);return o.labelRotate="top"===l?-y:y,o.z2=1,o}function mO(t){return"cartesian2d"===t.get("coordinateSystem")}function mR(t){var e={xAxisModel:null,yAxisModel:null};return tm(e,function(n,i){var r=i.replace(/Model$/,""),o=t.getReferringComponents(r,rV).models[0];e[i]=o}),e}var mN=Math.log;function mE(t,e,n){var i=v0.prototype,r=i.getTicks.call(n),o=i.getTicks.call(n,!0),a=r.length-1,s=i.getInterval.call(n),l=ml(t,e),u=l.extent,h=l.fixMin,c=l.fixMax;if("log"===t.type){var p=mN(t.base);u=[mN(u[0])/p,mN(u[1])/p]}t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:a,fixMin:h,fixMax:c});var d=i.getExtent.call(t);h&&(u[0]=d[0]),c&&(u[1]=d[1]);var f=i.getInterval.call(t),g=u[0],y=u[1];if(h&&c)f=(y-g)/a;else if(h)for(y=u[0]+f*a;yu[0]&&isFinite(g)&&isFinite(u[0]);)f=vj(f),g=u[1]-f*a;else{t.getTicks().length-1>a&&(f=vj(f));var v=f*a;(g=ra((y=Math.ceil(u[1]/f)*f)-v))<0&&u[0]>=0?(g=0,y=ra(v)):y>0&&u[1]<=0&&(y=0,g=-ra(v))}var m=(r[0].value-o[0].value)/s,x=(r[a].value-o[a].value)/s;i.setExtent.call(t,g+f*m,y+f*x),i.setInterval.call(t,f),(m||x)&&i.setNiceExtent.call(t,g+f,y-f)}var mz=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=mv,this._initCartesian(t,e,n),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){var n=this._axesMap;function i(t){var e,n=tw(t),i=n.length;if(i){for(var r=[],o=i-1;o>=0;o--){var a=t[+n[o]],s=a.model,l=a.scale;vZ(l)&&s.get("alignTicks")&&null==s.get("interval")?r.push(a):(mu(l,s),vZ(l)&&(e=a))}r.length&&(e||mu((e=r.pop()).scale,e.model),tm(r,function(t){mE(t.scale,t.model,e.scale)}))}}this._updateScale(t,this.model),i(n.x),i(n.y);var r={};tm(n.x,function(t){mV(n,"y",t,r)}),tm(n.y,function(t){mV(n,"x",t,r)}),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){var i=t.getBoxLayoutParams(),r=!n&&t.get("containLabel"),o=l_(i,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var a=this._axesList;function s(){tm(a,function(t){var e,n,i,r,a=t.isHorizontal(),s=a?[0,o.width]:[0,o.height],l=+!!t.inverse;t.setExtent(s[l],s[1-l]),e=t,n=a?o.x:o.y,r=(i=e.getExtent())[0]+i[1],e.toGlobalCoord="x"===e.dim?function(t){return t+n}:function(t){return r-t+n},e.toLocalCoord="x"===e.dim?function(t){return t-n}:function(t){return r-t+n}})}s(),r&&(tm(a,function(t){if(!t.model.get(["axisLabel","inside"])){var e=function(t){var e,n,i,r=t.model,o=t.scale;if(!(!r.get(["axisLabel","show"])||o.isBlank())){var a=o.getExtent();n=o instanceof vQ?o.count():(e=o.getTicks()).length;var s=t.getLabelModel(),l=mc(t),u=1;n>40&&(u=Math.ceil(n/40));for(var h=0;htg(s,e=i.coordinateSystem)&&(e=null):r&&o?e=this.getCartesian(r.componentIndex,o.componentIndex):r?n=this.getAxis("x",r.componentIndex):o?n=this.getAxis("y",o.componentIndex):a&&a.coordinateSystem===this&&(e=this._coordsList[0]),{cartesian:e,axis:n}},t.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},t.prototype._initCartesian=function(t,e,n){var i=this,r=this,o={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};if(e.eachComponent("xAxis",l("x"),this),e.eachComponent("yAxis",l("y"),this),!s.x||!s.y){this._axesMap={},this._axesList=[];return}function l(e){return function(n,i){if(mB(n,t)){var l=n.get("position");"x"===e?"top"!==l&&"bottom"!==l&&(l=o.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=o.left?"right":"left"),o[l]=!0;var u=new mk(e,mh(n),[0,0],n.get("type"),l),h="category"===u.type;u.onBand=h&&n.get("boundaryGap"),u.inverse=n.get("inverse"),n.axis=u,u.model=n,u.grid=r,u.index=i,r._axesList.push(u),a[e][i]=u,s[e]++}}}this._axesMap=a,tm(a.x,function(e,n){tm(a.y,function(r,o){var a="x"+n+"y"+o,s=new mx(a);s.master=i,s.model=t,i._coordsMap[a]=s,i._coordsList.push(s),s.addAxis(e),s.addAxis(r)})})},t.prototype._updateScale=function(t,e){function n(t,e){tm(mg(t,e.dim),function(n){e.scale.unionExtentFromData(t,n)})}tm(this._axesList,function(t){if(t.scale.setExtent(1/0,-1/0),"category"===t.type){var e=t.model.get("categorySortInfo");t.scale.setSortInfo(e)}}),t.eachSeries(function(t){if(mO(t)){var i=mR(t),r=i.xAxisModel,o=i.yAxisModel;if(mB(r,e)&&mB(o,e)){var a=this.getCartesian(r.componentIndex,o.componentIndex),s=t.getData(),l=a.getAxis("x"),u=a.getAxis("y");n(s,l),n(s,u)}}},this)},t.prototype.getTooltipAxes=function(t){var e=[],n=[];return tm(this.getCartesians(),function(i){var r=null!=t&&"auto"!==t?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(r);0>tg(e,r)&&e.push(r),0>tg(n,o)&&n.push(o)}),{baseAxes:e,otherAxes:n}},t.create=function(e,n){var i=[];return e.eachComponent("grid",function(r,o){var a=new t(r,e,n);a.name="grid_"+o,a.resize(r,n,!0),r.coordinateSystem=a,i.push(a)}),e.eachSeries(function(t){if(mO(t)){var e=mR(t),n=e.xAxisModel,i=e.yAxisModel;t.coordinateSystem=n.getCoordSysModel().coordinateSystem.getCartesian(n.componentIndex,i.componentIndex)}}),i},t.dimensions=mv,t}();function mB(t,e){return t.getCoordSysModel()===e}function mV(t,e,n,i){n.getAxesOnZeroOf=function(){return r?[r]:[]};var r,o=t[e],a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)mF(o[l])&&(r=o[l]);else for(var u in o)if(o.hasOwnProperty(u)&&mF(o[u])&&!i[h(o[u])]){r=o[u];break}r&&(i[h(r)]=!0)}function h(t){return t.dim+"_"+t.index}}function mF(t){var e,n,i;return t&&"category"!==t.type&&"time"!==t.type&&(n=(e=t.scale.getExtent())[0],i=e[1],!(n>0&&i>0||n<0&&i<0))}var mG=Math.PI,mW=function(){function t(t,e){this.group=new i9,this.opt=e,this.axisModel=t,tf(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new i9({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(t){return!!mH[t]},t.prototype.add=function(t){mH[t](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(t,e,n){var i,r,o=rh(e-t);return rc(o)?(r=n>0?"top":"bottom",i="center"):rc(o-mG)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&o0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:i,textVerticalAlign:r}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),mH={axisLine:function(t,e,n,i){var r=e.get(["axisLine","show"]);if("auto"===r&&t.handleAutoShown&&(r=t.handleAutoShown("axisLine")),r){var o=e.axis.getExtent(),a=i.transform,s=[o[0],0],l=[o[1],0],u=s[0]>l[0];a&&(ei(s,s,a),ei(l,l,a));var h=td({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new cT({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:h,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});c4(c.shape,c.style.lineWidth),c.anid="line",n.add(c);var p=e.get(["axisLine","symbol"]);if(null!=p){var d=e.get(["axisLine","symbolSize"]);tC(p)&&(p=[p,p]),(tC(d)||tD(d))&&(d=[d,d]);var f=du(e.get(["axisLine","symbolOffset"])||0,d),g=d[0],y=d[1];tm([{rotate:t.rotation+Math.PI/2,offset:f[0],r:0},{rotate:t.rotation-Math.PI/2,offset:f[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(e,i){if("none"!==p[i]&&null!=p[i]){var r=ds(p[i],-g/2,-y/2,g,y,h.stroke,!0),o=e.r+e.offset,a=u?l:s;r.attr({rotation:e.rotate,x:a[0]+o*Math.cos(t.rotation),y:a[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),n.add(r)}})}}},axisTickLabel:function(t,e,n,i){var r=function(t,e,n,i){var r=n.axis,o=n.getModel("axisTick"),a=o.get("show");if("auto"===a&&i.handleAutoShown&&(a=i.handleAutoShown("axisTick")),!(!a||r.scale.isBlank())){for(var s=o.getModel("lineStyle"),l=i.tickDirection*o.get("length"),u=mZ(r.getTicksCoords(),e.transform,l,tf(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h_[1]?-1:1,w=["start"===y?_[0]-b*x:"end"===y?_[1]+b*x:(_[0]+_[1])/2,mX(y)?t.labelOffset+v*x:0],S=e.get("nameRotate");null!=S&&(S=S*mG/180),mX(y)?r=mW.innerTextLayout(t.rotation,null!=S?S:t.rotation,v):(s=t.rotation,l=y,u=S||0,h=_,d=rh(u-s),f=h[0]>h[1],g="start"===l&&!f||"start"!==l&&f,rc(d-mG/2)?(p=g?"bottom":"top",c="center"):rc(d-1.5*mG)?(p=g?"top":"bottom",c="center"):(p="middle",c=d<1.5*mG&&d>mG/2?g?"left":"right":g?"right":"left"),r={rotation:d,textAlign:c,textVerticalAlign:p},null!=(o=t.axisNameAvailableWidth)&&(isFinite(o=Math.abs(o/Math.sin(r.rotation)))||(o=null)));var M=m.getFont(),I=e.get("nameTruncate",!0)||{},T=I.ellipsis,C=tN(t.nameTruncateMaxWidth,I.maxWidth,o),A=new aI({x:w[0],y:w[1],rotation:r.rotation,silent:mW.isLabelSilent(e),style:sw(m,{text:a,font:M,overflow:"truncate",width:C,ellipsis:T,fill:m.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:m.get("align")||r.textAlign,verticalAlign:m.get("verticalAlign")||r.textVerticalAlign}),z2:1});if(ps({el:A,componentModel:e,itemName:a}),A.__fullText=a,A.anid="name",e.get("triggerEvent")){var D=mW.makeAxisEventDataBase(e);D.targetType="axisName",D.name=a,aT(A).eventData=D}i.add(A),A.updateTransform(),n.add(A),A.decomposeTransform()}}};function mU(t){t&&(t.ignore=!0)}function mY(t,e){var n=t&&t.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();if(n&&i){var r=eO([]);return ez(r,r,-t.rotation),n.applyTransform(eN([],r,t.getLocalTransform())),i.applyTransform(eN([],r,e.getLocalTransform())),n.intersect(i)}}function mX(t){return"middle"===t||"center"===t}function mZ(t,e,n,i,r){for(var o=[],a=[],s=[],l=0;l=0||t===e}function mq(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[m$(t)]}function mK(t){return!!t.get(["handle","show"])}function m$(t){return t.type+"||"+t.id}var mJ={},mQ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return U(e,t),e.prototype.render=function(e,n,i,r){this.axisPointerClass&&function(t){var e=mq(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,r=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=i.parse(a));var s=mK(n);null==o&&(r.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a0&&!c.min?c.min=0:null!=c.min&&c.min<0&&!c.max&&(c.max=0);var p=a;null!=c.color&&(p=tf({color:c.color},a));var d=tc(th(c),{boundaryGap:t,splitNumber:e,scale:n,axisLine:i,axisTick:r,axisLabel:o,name:c.text,showName:s,nameLocation:"end",nameGap:u,nameTextStyle:p,triggerEvent:h},!1);if(tC(l)){var f=d.name;d.name=l.replace("{value}",null!=f?f:"")}else tT(l)&&(d.name=l(d.name,d));var g=new sW(d,null,this.ecModel);return ty(g,vP.prototype),g.mainType="radar",g.componentIndex=this.componentIndex,g},this);this._indicatorModels=c},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:tc({lineStyle:{color:"#bbb"}},xs.axisLine),axisLabel:xl(xs.axisLabel,!1),axisTick:xl(xs.axisTick,!1),splitLine:xl(xs.splitLine,!0),splitArea:xl(xs.splitArea,!0),indicator:[]},e}(lC),xh=["axisLine","axisTickLabel","axisName"],xc=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return U(e,t),e.prototype.render=function(t,e,n){this.group.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var e=t.coordinateSystem;tm(tx(e.getIndicatorAxes(),function(t){var n=t.model.get("showName")?t.name:"";return new mW(t.model,{axisName:n,position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}),function(t){tm(xh,t.add,t),this.group.add(t.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes();if(n.length){var i=t.get("shape"),r=t.getModel("splitLine"),o=t.getModel("splitArea"),a=r.getModel("lineStyle"),s=o.getModel("areaStyle"),l=r.get("show"),u=o.get("show"),h=a.get("color"),c=s.get("color"),p=tI(h)?h:[h],d=tI(c)?c:[c],f=[],g=[];if("circle"===i)for(var y=n[0].getTicksCoords(),v=e.cx,m=e.cy,x=0;x3?1.4:r>1?1.2:1.1;xm(this,"zoom","zoomOnMouseWheel",t,{scale:i>0?s:1/s,originX:o,originY:a,isAvailableBehavior:null})}if(n){var l=Math.abs(i);xm(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:(i>0?1:-1)*(l>3?.4:l>1?.15:.05),originX:o,originY:a,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!xy(this._zr).globalPan){var e=t.pinchScale>1?1.1:1/1.1;xm(this,"zoom",null,t,{scale:e,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(el);function xm(t,e,n,i,r){t.pointerChecker&&t.pointerChecker(i,r.originX,r.originY)&&(eC(i.event),xx(t,e,n,i,r))}function xx(t,e,n,i,r){r.isAvailableBehavior=tS(x_,null,n,i),t.trigger(e,r)}function x_(t,e,n){var i=n[t];return!t||i&&(!tC(i)||e.event[i+"Key"])}function xb(t,e,n){var i=t.target;i.x+=e,i.y+=n,i.dirty()}function xw(t,e,n,i){var r=t.target,o=t.zoomLimit,a=t.zoom=t.zoom||1;if(a*=e,o){var s=o.min||0;a=Math.max(Math.min(o.max||1/0,a),s)}var l=a/t.zoom;t.zoom=a,r.x-=(n-r.x)*(l-1),r.y-=(i-r.y)*(l-1),r.scaleX*=l,r.scaleY*=l,r.dirty()}var xS={axisPointer:1,tooltip:1,brush:1};function xM(t,e,n){var i=e.getComponentByElement(t.topTarget),r=i&&i.coordinateSystem;return i&&i!==n&&!xS.hasOwnProperty(i.mainType)&&r&&r.model!==n}function xI(t){tC(t)&&(t=new DOMParser().parseFromString(t,"text/xml"));var e=t;for(9===e.nodeType&&(e=e.firstChild);"svg"!==e.nodeName.toLowerCase()||1!==e.nodeType;)e=e.nextSibling;return e}var xT={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"},xC=tw(xT),xA={"alignment-baseline":"textBaseline","stop-color":"stopColor"},xD=tw(xA),xL=function(){function t(){this._defs={},this._root=null}return t.prototype.parse=function(t,e){e=e||{};var n,i,r=xI(t);this._defsUsePending=[];var o=new i9;this._root=o;var a=[],s=r.getAttribute("viewBox")||"",l=parseFloat(r.getAttribute("width")||e.width),u=parseFloat(r.getAttribute("height")||e.height);isNaN(l)&&(l=null),isNaN(u)&&(u=null),xE(r,o,null,!0,!1);for(var h=r.firstChild;h;)this._parseNode(h,o,a,null,!1,!1),h=h.nextSibling;if(function(t,e){for(var n=0;n=4&&(n={x:parseFloat(c[0]||0),y:parseFloat(c[1]||0),width:parseFloat(c[2]),height:parseFloat(c[3])})}if(n&&null!=l&&null!=u&&(i=xY(n,{x:0,y:0,width:l,height:u}),!e.ignoreViewBox)){var p=o;(o=new i9).add(p),p.scaleX=p.scaleY=i.scale,p.x=i.x,p.y=i.y}return e.ignoreRootClip||null==l||null==u||o.setClipPath(new au({shape:{x:0,y:0,width:l,height:u}})),{root:o,width:l,height:u,viewBoxRect:n,viewBoxTransform:i,named:a}},t.prototype._parseNode=function(t,e,n,i,r,o){var a,s=t.nodeName.toLowerCase(),l=i;if("defs"===s&&(r=!0),"text"===s&&(o=!0),"defs"===s||"switch"===s)a=e;else{if(!r){var u=F[s];if(u&&tK(F,s)){a=u.call(this,t,e);var h=t.getAttribute("name");if(h){var c={name:h,namedFrom:null,svgNodeTagLower:s,el:a};n.push(c),"g"===s&&(l=c)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:a});e.add(a)}}var p=xk[s];if(p&&tK(xk,s)){var d=p.call(this,t),f=t.getAttribute("id");f&&(this._defs[f]=d)}}if(a&&a.isGroup)for(var g=t.firstChild;g;)1===g.nodeType?this._parseNode(g,a,n,l,r,o):3===g.nodeType&&o&&this._parseText(g,a),g=g.nextSibling},t.prototype._parseText=function(t,e){var n=new o8({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});xR(e,n),xE(t,n,this._defsUsePending,!1,!1),function(t,e){var n=e.__selfStyle;if(n){var i=n.textBaseline,r=i;i&&"auto"!==i?"baseline"===i?r="alphabetic":"before-edge"===i||"text-before-edge"===i?r="top":"after-edge"===i||"text-after-edge"===i?r="bottom":("central"===i||"mathematical"===i)&&(r="middle"):r="alphabetic",t.style.textBaseline=r}var o=e.__inheritedStyle;if(o){var a=o.textAlign,s=a;a&&("middle"===a&&(s="center"),t.style.textAlign=s)}}(n,e);var i=n.style,r=i.fontSize;r&&r<9&&(i.fontSize=9,n.scaleX*=r/9,n.scaleY*=r/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var a=n.getBoundingRect();return this._textX+=a.width,e.add(n),n},t.internalField=void(F={g:function(t,e){var n=new i9;return xR(e,n),xE(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new au;return xR(e,n),xE(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,e){var n=new h4;return xR(e,n),xE(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,e){var n=new cT;return xR(e,n),xE(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,e){var n=new h7;return xR(e,n),xE(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,e){var n,i=t.getAttribute("points");i&&(n=xN(i));var r=new cx({shape:{points:n||[]},silent:!0});return xR(e,r),xE(t,r,this._defsUsePending,!1,!1),r},polyline:function(t,e){var n,i=t.getAttribute("points");i&&(n=xN(i));var r=new cw({shape:{points:n||[]},silent:!0});return xR(e,r),xE(t,r,this._defsUsePending,!1,!1),r},image:function(t,e){var n=new ae;return xR(e,n),xE(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,e){var n=t.getAttribute("x")||"0",i=t.getAttribute("y")||"0",r=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(r),this._textY=parseFloat(i)+parseFloat(o);var a=new i9;return xR(e,a),xE(t,a,this._defsUsePending,!1,!0),a},tspan:function(t,e){var n=t.getAttribute("x"),i=t.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i));var r=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",a=new i9;return xR(e,a),xE(t,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(r),this._textY+=parseFloat(o),a},path:function(t,e){var n=new hQ(h1(t.getAttribute("d")||"",void 0));return xR(e,n),xE(t,n,this._defsUsePending,!1,!1),n.silent=!0,n}}),t}(),xk={lineargradient:function(t){var e=new cz(parseInt(t.getAttribute("x1")||"0",10),parseInt(t.getAttribute("y1")||"0",10),parseInt(t.getAttribute("x2")||"10",10),parseInt(t.getAttribute("y2")||"0",10));return xP(t,e),xO(t,e),e},radialgradient:function(t){var e=new cB(parseInt(t.getAttribute("cx")||"0",10),parseInt(t.getAttribute("cy")||"0",10),parseInt(t.getAttribute("r")||"0",10));return xP(t,e),xO(t,e),e}};function xP(t,e){"userSpaceOnUse"===t.getAttribute("gradientUnits")&&(e.global=!0)}function xO(t,e){for(var n=t.firstChild;n;){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var i=n.getAttribute("offset"),r=void 0;r=i&&i.indexOf("%")>0?parseInt(i,10)/100:i?parseFloat(i):0;var o={};xU(n,o,o);var a=o.stopColor||n.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:r,color:a})}n=n.nextSibling}}function xR(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),tf(e.__inheritedStyle,t.__inheritedStyle))}function xN(t){for(var e=xF(t),n=[],i=0;i0;o-=2){var a=i[o],s=i[o-1],l=xF(a);switch(r=r||eP(),s){case"translate":eE(r,r,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":eB(r,r,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":ez(r,r,-parseFloat(l[0])*xW,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":eN(r,[1,0,Math.tan(parseFloat(l[0])*xW),1,0,0],r);break;case"skewY":eN(r,[1,Math.tan(parseFloat(l[0])*xW),0,1,0,0],r);break;case"matrix":r[0]=parseFloat(l[0]),r[1]=parseFloat(l[1]),r[2]=parseFloat(l[2]),r[3]=parseFloat(l[3]),r[4]=parseFloat(l[4]),r[5]=parseFloat(l[5])}}e.setLocalTransform(r)}}(t,e),xU(t,o,a),i||function(t,e,n){for(var i=0;iMath.abs(t-e)}function xZ(t,e,n){var i=0,r=t[0];if(!r)return!1;for(var o=1;on&&(t=r,n=a)}if(t)return function(t){for(var e=0,n=0,i=0,r=t.length,o=t[r-1][0],a=t[r-1][1],s=0;s>1^-(1&l),s=(s>>1^-(1&s))+r,l+=o,r=s,o=l,i.push([s/n,l/n])}return i}for(var x6=[126,25],x8="南海诸岛",x7=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],x9=0;x90}),function(e){var n=e.properties,i=e.geometry,r=[];switch(i.type){case"Polygon":var o=i.coordinates;r.push(new xJ(o[0],o.slice(1)));break;case"MultiPolygon":tm(i.coordinates,function(t){t[0]&&r.push(new xJ(t[0],t.slice(1)))});break;case"LineString":r.push(new xQ([i.coordinates]));break;case"MultiLineString":r.push(new xQ(i.coordinates))}var a=new x0(n[t||"name"],r,n.cp);return a.properties=n,a})):[]}catch(t){throw Error("Invalid geoJson format\n"+t.message)}return!function(t,e){if("china"===t){for(var n=0;n0,f={api:n,geo:s,mapOrGeoModel:t,data:a,isVisualEncodedByVisualMap:d,isGeo:o,transformInfoRaw:c};"geoJSON"===s.resourceType?this._buildGeoJSON(f):"geoSVG"===s.resourceType&&this._buildSVG(f),this._updateController(t,e,n),this._updateMapSelectHandler(t,l,n,i)},t.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=tX(),n=tX(),i=this._regionsGroup,r=t.transformInfoRaw,o=t.mapOrGeoModel,a=t.data,s=t.geo.projection,l=s&&s.stream;function u(t,e){return e&&(t=e(t)),t&&[t[0]*r.scaleX+r.x,t[1]*r.scaleY+r.y]}function h(t){return{shape:{points:function(t){for(var e=[],n=!l&&s&&s.project,i=0;i=0)&&(p=r);var d=a?{normal:{align:"center",verticalAlign:"middle"}}:null;s_(e,sb(i),{labelFetcher:p,labelDataIndex:c,defaultText:n},d);var f=e.getTextContent();if(f&&(_h(f).ignore=f.ignore,e.textConfig&&a)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(a[0]-g.x)/g.width*100+"%",(a[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function _y(t,e,n,i,r,o){t.data?t.data.setItemGraphicEl(o,e):aT(e).eventData={componentType:"geo",componentIndex:r.componentIndex,geoIndex:r.componentIndex,name:n,region:i&&i.option||{}}}function _v(t,e,n,i,r){t.data||ps({el:e,componentModel:r,itemName:n,itemTooltipOption:i.get("tooltip")})}function _m(t,e,n,i,r){e.highDownSilentOnTouch=!!r.get("selectedMode");var o,a=i.getModel("emphasis"),s=a.get("focus");return a7(e,s,a.get("blurScope"),a.get("disabled")),t.isGeo&&((o=aT(e)).componentMainType=r.mainType,o.componentIndex=r.componentIndex,o.componentHighDownName=n),s}function _x(t,e,n){var i,r=[];function o(){i=[]}function a(){i.length&&(r.push(i),i=[])}var s=e({polygonStart:o,polygonEnd:a,lineStart:o,lineEnd:a,point:function(t,e){isFinite(t)&&isFinite(e)&&i.push([t,e])},sphere:function(){}});return n||s.polygonStart(),tm(t,function(t){s.lineStart();for(var e=0;e-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},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}(hA);function _w(t){var e={};t.eachSeriesByType("map",function(t){var n=t.getHostGeoModel(),i=n?"o"+n.id:"i"+t.getMapType();(e[i]=e[i]||[]).push(t)}),tm(e,function(t,e){for(var n,i,r,o=(n=tx(t,function(t){return t.getData()}),i=t[0].get("mapValueCalculation"),r={},tm(n,function(t){t.each(t.mapDimension("value"),function(e,n){var i="ec-"+t.getName(n);r[i]=r[i]||[],isNaN(e)||r[i].push(e)})}),n[0].map(n[0].mapDimension("value"),function(t,e){for(var o,a="ec-"+n[0].getName(e),s=0,l=1/0,u=-1/0,h=r[a].length,c=0;c1?(r.width=i,r.height=i/x):(r.height=i,r.width=i*x),r.y=n[1]-r.height/2,r.x=n[0]-r.width/2;else{var b=t.getBoxLayoutParams();b.aspect=x,r=l_(b,{width:v,height:m})}this.setViewRect(r.x,r.y,r.width,r.height),this.setCenter(t.get("center"),e),this.setZoom(t.get("zoom"))}ty(_A,_M);var _k=new(function(){function t(){this.dimensions=_C}return t.prototype.create=function(t,e){var n=[];function i(t){return{nameProperty:t.get("nameProperty"),aspectScale:t.get("aspectScale"),projection:t.get("projection")}}t.eachComponent("geo",function(t,r){var o=t.get("map"),a=new _A(o+r,o,td({nameMap:t.get("nameMap")},i(t)));a.zoomLimit=t.get("scaleLimit"),n.push(a),t.coordinateSystem=a,a.model=t,a.resize=_L,a.resize(t,e)}),t.eachSeries(function(t){if("geo"===t.get("coordinateSystem")){var e=t.get("geoIndex")||0;t.coordinateSystem=n[e]}});var r={};return t.eachSeriesByType("map",function(t){if(!t.getHostGeoModel()){var e=t.getMapType();r[e]=r[e]||[],r[e].push(t)}}),tm(r,function(t,r){var o=new _A(r,r,td({nameMap:tp(tx(t,function(t){return t.get("nameMap")}))},i(t[0])));o.zoomLimit=tN.apply(null,tx(t,function(t){return t.get("scaleLimit")})),n.push(o),o.resize=_L,o.resize(t[0],e),tm(t,function(t){t.coordinateSystem=o,tm(t.get("geoCoord"),function(t,e){o.addGeoCoord(e,t)})})}),n},t.prototype.getFilledRegions=function(t,e,n,i){for(var r=(t||[]).slice(),o=tX(),a=0;a=0;){var o=e[n];o.hierNode.prelim+=i,o.hierNode.modifier+=i,r+=o.hierNode.change,i+=o.hierNode.shift+r}}(t);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;r?(t.hierNode.prelim=r.hierNode.prelim+e(t,r),t.hierNode.modifier=t.hierNode.prelim-o):t.hierNode.prelim=o}else r&&(t.hierNode.prelim=r.hierNode.prelim+e(t,r));t.parentNode.hierNode.defaultAncestor=function(t,e,n,i){if(e){for(var r=t,o=t,a=o.parentNode.children[0],s=e,l=r.hierNode.modifier,u=o.hierNode.modifier,h=a.hierNode.modifier,c=s.hierNode.modifier;s=_W(s),o=_H(o),s&&o;){r=_W(r),a=_H(a),r.hierNode.ancestor=t;var p,d,f,g=s.hierNode.prelim+c-o.hierNode.prelim-u+i(s,o);g>0&&(function(t,e,n){var i=n/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=i,e.hierNode.shift+=n,e.hierNode.modifier+=n,e.hierNode.prelim+=n,t.hierNode.change+=i}((p=s,d=t,f=n,p.hierNode.ancestor.parentNode===d.parentNode?p.hierNode.ancestor:f),t,g),u+=g,l+=g),c+=s.hierNode.modifier,u+=o.hierNode.modifier,l+=r.hierNode.modifier,h+=a.hierNode.modifier}s&&!_W(r)&&(r.hierNode.thread=s,r.hierNode.modifier+=c-l),o&&!_H(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=u-h,n=t)}return n}(t,r,t.parentNode.hierNode.defaultAncestor||i[0],e)}function _V(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function _F(t){return arguments.length?t:_U}function _G(t,e){return{x:e*Math.cos(t-=Math.PI/2),y:e*Math.sin(t)}}function _W(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function _H(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function _U(t,e){return t.parentNode===e.parentNode?1:2}var _Y=function(){this.parentPoint=[],this.childPoints=[]},_X=function(t){function e(e){return t.call(this,e)||this}return U(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new _Y},e.prototype.buildPath=function(t,e){var n=e.childPoints,i=n.length,r=e.parentPoint,o=n[0],a=n[i-1];if(1===i){t.moveTo(r[0],r[1]),t.lineTo(o[0],o[1]);return}var s=e.orient,l=+("TB"!==s&&"BT"!==s),u=1-l,h=ro(e.forkPosition,1),c=[];c[l]=r[l],c[u]=r[u]+(a[u]-r[u])*h,t.moveTo(r[0],r[1]),t.lineTo(c[0],c[1]),t.moveTo(o[0],o[1]),c[l]=o[l],t.lineTo(c[0],c[1]),c[l]=a[l],t.lineTo(c[0],c[1]),t.lineTo(a[0],a[1]);for(var p=1;pm.x)||(_-=Math.PI);var S=b?"left":"right",M=s.getModel("label"),I=M.get("rotate"),T=Math.PI/180*I,C=y.getTextContent();C&&(y.setTextConfig({position:M.get("position")||S,rotation:null==I?-_:T,origin:"center"}),C.setStyle("verticalAlign","middle"))}var A=s.get(["emphasis","focus"]),D="relative"===A?tZ(a.getAncestorsIndices(),a.getDescendantIndices()):"ancestor"===A?a.getAncestorsIndices():"descendant"===A?a.getDescendantIndices():null;D&&(aT(n).focus=D),function(t,e,n,i,r,o,a,s){var l=e.getModel(),u=t.get("edgeShape"),h=t.get("layout"),c=t.getOrient(),p=t.get(["lineStyle","curveness"]),d=t.get("edgeForkPosition"),f=l.getModel("lineStyle").getLineStyle(),g=i.__edge;if("curve"===u)e.parentNode&&e.parentNode!==n&&(g||(g=i.__edge=new ck({shape:_Q(h,c,p,r,r)})),sh(g,{shape:_Q(h,c,p,o,a)},t));else if("polyline"===u&&"orthogonal"===h&&e!==n&&e.children&&0!==e.children.length&&!0===e.isExpand){for(var y=e.children,v=[],m=0;me&&(e=i.height)}this.height=e+1},t.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,i=n.length;e=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},t.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},t.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(t)},t.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},t.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},t.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},t.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},t.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},t.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e=0){var i=n.getData().tree.root,r=t.targetNode;if(tC(r)&&(r=i.getNodeById(r)),r&&i.contains(r))return{node:r};var o=t.targetNodeId;if(null!=o&&(r=i.getNodeById(o)))return{node:r}}}function bn(t){for(var e=[];t;)(t=t.parentNode)&&e.push(t);return e.reverse()}function bi(t,e){return tg(bn(t),e)>=0}function br(t,e){for(var n=[];t;){var i=t.dataIndex;n.push({name:t.name,dataIndex:i,value:e.getRawValue(i)}),t=t.parentNode}return n.reverse(),n}var bo=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return U(e,t),e.prototype.getInitialData=function(t){var e={name:t.name,children:t.data},n=new sW(t.leaves||{},this,this.ecModel),i=bt.createTree(e,this,function(t){t.wrapMethod("getItemModel",function(t,e){var r=i.getNodeByDataIndex(e);return r&&r.children.length&&r.isExpand||(t.parentModel=n),t})}),r=0;i.eachNode("preorder",function(t){t.depth>r&&(r=t.depth)});var o=t.expandAndCollapse&&t.initialTreeDepth>=0?t.initialTreeDepth:r;return i.root.eachNode("preorder",function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=o}),i.data},e.prototype.getOrient=function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(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,e,n){for(var i=this.getData().tree,r=i.root.children[0],o=i.getNodeByDataIndex(t),a=o.getValue(),s=o.name;o&&o!==r;)s=o.parentNode.name+"."+s,o=o.parentNode;return hf("nameValue",{name:s,value:a,noValue:isNaN(a)||null==a})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=br(i,this),n.collapsed=!i.isExpand,n},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}(hA);function ba(t,e){for(var n,i=[t];n=i.pop();)if(e(n),n.isExpand){var r=n.children;if(r.length)for(var o=r.length-1;o>=0;o--)i.push(r[o])}}function bs(t,e){t.eachSeriesByType("tree",function(t){!function(t,e){var n=l_(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()});t.layoutInfo=n;var i=t.get("layout"),r=0,o=0,a=null;"radial"===i?(r=2*Math.PI,o=Math.min(n.height,n.width)/2,a=_F(function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth})):(r=n.width,o=n.height,a=_F());var s=t.getData().tree.root,l=s.children[0];if(l){!function(t){t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var e,n,i=[t];e=i.pop();)if(n=e.children,e.isExpand&&n.length)for(var r=n.length,o=r-1;o>=0;o--){var a=n[o];a.hierNode={defaultAncestor:null,ancestor:a,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},i.push(a)}}(s),function(t,e,n){for(var i,r=[t],o=[];i=r.pop();)if(o.push(i),i.isExpand){var a=i.children;if(a.length)for(var s=0;sh.getLayout().x&&(h=t),t.depth>c.depth&&(c=t)});var p=u===h?1:a(u,h)/2,d=p-u.getLayout().x,f=0,g=0,y=0,v=0;if("radial"===i)f=r/(h.getLayout().x+p+d),g=o/(c.depth-1||1),ba(l,function(t){y=(t.getLayout().x+d)*f,v=(t.depth-1)*g;var e=_G(y,v);t.setLayout({x:e.x,y:e.y,rawX:y,rawY:v},!0)});else{var m=t.getOrient();"RL"===m||"LR"===m?(g=o/(h.getLayout().x+p+d),f=r/(c.depth-1||1),ba(l,function(t){v=(t.getLayout().x+d)*g,y="LR"===m?(t.depth-1)*f:r-(t.depth-1)*f,t.setLayout({x:y,y:v},!0)})):("TB"===m||"BT"===m)&&(f=r/(h.getLayout().x+p+d),g=o/(c.depth-1||1),ba(l,function(t){y=(t.getLayout().x+d)*f,v="TB"===m?(t.depth-1)*g:o-(t.depth-1)*g,t.setLayout({x:y,y:v},!0)}))}}}(t,e)})}function bl(t){t.eachSeriesByType("tree",function(t){var e=t.getData();e.tree.eachNode(function(t){var n=t.getModel().getModel("itemStyle").getItemStyle();td(e.ensureUniqueItemVisual(t.dataIndex,"style"),n)})})}var bu=["treemapZoomToNode","treemapRender","treemapMove"];function bh(t){var e=t.getData().tree,n={};e.eachNode(function(e){for(var i=e;i&&i.depth>1;)i=i.parentNode;var r=lK(t.ecModel,i.name||i.dataIndex+"",n);e.setVisual("decal",r)})}var bc=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventUsingHoverLayer=!0,n}return U(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};!function t(e){var n=0;tm(e.children,function(e){t(e);var i=e.value;tI(i)&&(i=i[0]),n+=i});var i=e.value;tI(i)&&(i=i[0]),(null==i||isNaN(i))&&(i=n),i<0&&(i=0),tI(e.value)?e.value[0]=i:e.value=i}(n);var i=t.levels||[],r=new sW({itemStyle:this.designatedVisualItemStyle={}},this,e),o=tx((i=t.levels=function(t,e){var n,i,r=rM(e.get("color")),o=rM(e.get(["aria","decal","decals"]));if(r){tm(t=t||[],function(t){var e=new sW(t),r=e.get("color"),o=e.get("decal");(e.get(["itemStyle","color"])||r&&"none"!==r)&&(n=!0),(e.get(["itemStyle","decal"])||o&&"none"!==o)&&(i=!0)});var a=t[0]||(t[0]={});return n||(a.color=r.slice()),!i&&o&&(a.decal=o.slice()),t}}(i,e))||[],function(t){return new sW(t,r,e)},this),a=bt.createTree(n,this,function(t){t.wrapMethod("getItemModel",function(t,e){var n=a.getNodeByDataIndex(e);return t.parentModel=(n?o[n.depth]:null)||r,t})});return a.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=this.getRawValue(t);return hf("nameValue",{name:i.getName(t),value:r})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments);return n.treeAncestors=br(this.getData().tree.getNodeByDataIndex(e),this),n.treePathInfo=n.treeAncestors,n},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},td(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=tX(),this._idIndexMapCount=0);var n=e.get(t);return null==n&&e.set(t,n=this._idIndexMapCount++),n},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){bh(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:.1024,scaleLimit:null,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}(hA),bp=function(){function t(t){this.group=new i9,t.add(this.group)}return t.prototype.render=function(t,e,n,i){var r=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),r.get("show")&&n){var a=r.getModel("itemStyle"),s=r.getModel("emphasis"),l=a.getModel("textStyle"),u=s.getModel(["itemStyle","textStyle"]),h={pos:{left:r.get("left"),right:r.get("right"),top:r.get("top"),bottom:r.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:r.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,h,l),this._renderContent(t,h,a,s,l,u,i),lb(o,h.pos,h.box)}},t.prototype._prepare=function(t,e,n){for(var i=t;i;i=i.parentNode){var r=rk(i.getModel().get("name"),""),o=Math.max(n.getTextRect(r).width+16,e.emptyItemWidth);e.totalWidth+=o+8,e.renderList.push({node:i,text:r,width:o})}},t.prototype._renderContent=function(t,e,n,i,r,o,a){for(var s,l,u,h,c,p,d,f,g,y=0,v=e.emptyItemWidth,m=t.get(["breadcrumb","height"]),x=(s=e.pos,h=(l=e.box).width,c=l.height,p=ro(s.left,h),d=ro(s.top,c),f=ro(s.right,h),g=ro(s.bottom,c),(isNaN(p)||isNaN(parseFloat(s.left)))&&(p=0),(isNaN(f)||isNaN(parseFloat(s.right)))&&(f=h),(isNaN(d)||isNaN(parseFloat(s.top)))&&(d=0),(isNaN(g)||isNaN(parseFloat(s.bottom)))&&(g=c),{width:Math.max(f-p-(u=tV(u||0))[1]-u[3],0),height:Math.max(g-d-u[0]-u[2],0)}),_=e.totalWidth,b=e.renderList,w=i.getModel("itemStyle").getItemStyle(),S=b.length-1;S>=0;S--){var M,I,T,C=b[S],A=C.node,D=C.width,L=C.text;_>x.width&&(_-=D-v,D=v,L=null);var k=new cx({shape:{points:function(t,e,n,i,r,o){var a=[[r?t:t-5,0],[t+n,e],[t+n,e+i],[r?t:t-5,e+i]];return o||a.splice(2,0,[t+n+5,e+i/2]),r||a.push([t,e+i/2]),a}(y,0,D,m,S===b.length-1,0===S)},style:tf(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new aI({style:sw(r,{text:L})}),textConfig:{position:"inside"},z2:1e5,onclick:tM(a,A)});k.disableLabelAnimation=!0,k.getTextContent().ensureState("emphasis").style=sw(o,{text:L}),k.ensureState("emphasis").style=w,a7(k,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(k),M=k,I=t,T=A,aT(M).eventData={componentType:"series",componentSubType:"treemap",componentIndex:I.componentIndex,seriesIndex:I.seriesIndex,seriesName:I.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:T&&T.dataIndex,name:T&&T.name},treePathInfo:T&&br(T,I)},y+=D+8}},t.prototype.remove=function(){this.group.removeAll()},t}(),bd=function(){function t(){this._storage=[],this._elExistsMap={}}return t.prototype.add=function(t,e,n,i,r){return!this._elExistsMap[t.id]&&(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:n,delay:i,easing:r}),!0)},t.prototype.finished=function(t){return this._finishedCallback=t,this},t.prototype.start=function(){for(var t=this,e=this._storage.length,n=function(){--e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},i=0,r=this._storage.length;itg(e.findComponents({mainType:"series",subType:"treemap",query:i}),t))){this.seriesModel=t,this.api=n,this.ecModel=e;var r=be(i,["treemapZoomToNode","treemapRootToNode"],t),o=i&&i.type,a=t.layoutInfo,s=!this._oldTree,l=this._storage,u="treemapRootToNode"===o&&r&&l?{rootNodeGroup:l.nodeGroup[r.node.getRawIndex()],direction:i.direction}:null,h=this._giveContainerGroup(a),c=t.get("animation"),p=this._doRender(h,t,u);!c||s||o&&"treemapZoomToNode"!==o&&"treemapRootToNode"!==o?p.renderFinally():this._doAnimation(h,p,t,u),this._resetController(n),this._renderBreadcrumb(t,n,r)}},e.prototype._giveContainerGroup=function(t){var e=this._containerGroup;return e||(e=this._containerGroup=new i9,this._initEvents(e),this.group.add(e)),e.x=t.x,e.y=t.y,e},e.prototype._doRender=function(t,e,n){var i,r,o=e.getData().tree,a=this._oldTree,s=b_(),l=b_(),u=this._storage,h=[];!function t(i,r,o,a,c){function p(t){return t.getId()}function d(p,d){var f=null!=p?i[p]:null,g=null!=d?r[d]:null,y=function(t,e,n,i,r,o,a,s,l,u){if(a){var h=a.getLayout(),c=t.getData(),p=a.getModel();if(c.setItemGraphicEl(a.dataIndex,null),h&&h.isInView){var d=h.width,f=h.height,g=h.borderWidth,y=h.invisible,v=a.getRawIndex(),m=s&&s.getRawIndex(),x=a.viewChildren,_=h.upperHeight,b=x&&x.length,w=p.getModel("itemStyle"),S=p.getModel(["emphasis","itemStyle"]),M=p.getModel(["blur","itemStyle"]),I=p.getModel(["select","itemStyle"]),T=w.get("borderRadius")||0,C=V("nodeGroup",i9);if(C){if(l.add(C),C.x=h.x||0,C.y=h.y||0,C.markRedraw(),bm(C).nodeWidth=d,bm(C).nodeHeight=f,h.isAboveViewRoot)return C;var A=V("background",au,u,20);A&&function(e,n,i){var r=aT(n);if(r.dataIndex=a.dataIndex,r.seriesIndex=t.seriesIndex,n.setShape({x:0,y:0,width:d,height:f,r:T}),y)E(n);else{n.invisible=!1;var o=a.getVisual("style"),s=o.stroke,l=bv(w);l.fill=s;var u=by(S);u.fill=S.get("borderColor");var h=by(M);h.fill=M.get("borderColor");var c=by(I);if(c.fill=I.get("borderColor"),i){var p=d-2*g;z(n,s,o.opacity,{x:g,y:0,width:p,height:_})}else n.removeTextContent();n.setStyle(l),n.ensureState("emphasis").style=u,n.ensureState("blur").style=h,n.ensureState("select").style=c,aK(n)}e.add(n)}(C,A,b&&h.upperLabelHeight);var D=p.getModel("emphasis"),L=D.get("focus"),k=D.get("blurScope"),P=D.get("disabled"),O="ancestor"===L?a.getAncestorsIndices():"descendant"===L?a.getDescendantIndices():L;if(b)sr(C)&&si(C,!1),A&&(si(A,!P),c.setItemGraphicEl(a.dataIndex,A),a9(A,O,k));else{var R=V("content",au,u,30);R&&function(e,n){var i=aT(n);i.dataIndex=a.dataIndex,i.seriesIndex=t.seriesIndex;var r=Math.max(d-2*g,0),o=Math.max(f-2*g,0);if(n.culling=!0,n.setShape({x:g,y:g,width:r,height:o,r:T}),y)E(n);else{n.invisible=!1;var s=a.getVisual("style"),l=s.fill,u=bv(w);u.fill=l,u.decal=s.decal;var h=by(S),c=by(M),p=by(I);z(n,l,s.opacity,null),n.setStyle(u),n.ensureState("emphasis").style=h,n.ensureState("blur").style=c,n.ensureState("select").style=p,aK(n)}e.add(n)}(C,R),A.disableMorphing=!0,A&&sr(A)&&si(A,!1),si(C,!P),c.setItemGraphicEl(a.dataIndex,C);var N=p.getShallow("cursor");N&&R.attr("cursor",N),a9(C,O,k)}return C}}}function E(t){t.invisible||o.push(t)}function z(e,n,i,r){var o=p.getModel(r?bg:bf),s=rk(p.get("name"),null),l=o.getShallow("show");s_(e,sb(p,r?bg:bf),{defaultText:l?s:null,inheritColor:n,defaultOpacity:i,labelFetcher:t,labelDataIndex:a.dataIndex});var u=e.getTextContent();if(u){var c=u.style,d=tV(c.padding||0);r&&(e.setTextConfig({layoutRect:r}),u.disableLabelLayout=!0),u.beforeUpdate=function(){var t=Math.max((r?r.width:e.shape.width)-d[1]-d[3],0),n=Math.max((r?r.height:e.shape.height)-d[0]-d[2],0);(c.width!==t||c.height!==n)&&u.setStyle({width:t,height:n})},c.truncateMinChar=2,c.lineOverflow="truncate",B(c,r,h);var f=u.getState("emphasis");B(f?f.style:null,r,h)}}function B(e,n,i){var r=e?e.text:null;if(!n&&i.isLeafRoot&&null!=r){var o=t.get("drillDownIcon",!0);e.text=o?o+" "+r:r}}function V(t,o,s,l){var u,h,c,p=null!=m&&n[t][m],d=r[t];return p?(n[t][m]=null,u=d,h=p,c=u[v]={},h instanceof i9?(c.oldX=h.x,c.oldY=h.y):c.oldShape=td({},h.shape)):y||((p=new o)instanceof oc&&(p.z2=100*s+l),function(t,e){var n=t[v]={},o=a.parentNode,s=e instanceof i9;if(o&&(!i||"drillDown"===i.direction)){var l=0,u=0,h=r.background[o.getRawIndex()];!i&&h&&h.oldShape&&(l=h.oldShape.width,u=h.oldShape.height),s?(n.oldX=0,n.oldY=u):n.oldShape={x:l,y:u,width:0,height:0}}n.fadein=!s}(d,p)),e[t][v]=p}}(e,l,u,n,s,h,f,g,o,c);y&&t(f&&f.viewChildren||[],g&&g.viewChildren||[],y,a,c+1)}a?(r=i,tm(i,function(t,e){t.isRemoved()||d(e,e)})):new gF(r,i,p,p).add(d).update(d).remove(tM(d,null)).execute()}(o.root?[o.root]:[],a&&a.root?[a.root]:[],t,o===a||!a,0);var c=(i=u,r=b_(),i&&tm(i,function(t,e){var n=r[e];tm(t,function(t){t&&(n.push(t),bm(t).willDelete=!0)})}),r);if(this._oldTree=o,this._storage=l,this._controllerHost){var p=this.seriesModel.layoutInfo,d=o.root.getLayout();d.width===p.width&&d.height===p.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:s,willDeleteEls:c,renderFinally:function(){tm(c,function(t){tm(t,function(t){t.parent&&t.parent.remove(t)})}),tm(h,function(t){t.invisible=!0,t.dirty()})}}},e.prototype._doAnimation=function(t,e,n,i){var r=n.get("animationDurationUpdate"),o=n.get("animationEasing"),a=(tT(r)?0:r)||0,s=(tT(o)?null:o)||"cubicOut",l=new bd;tm(e.willDeleteEls,function(t,e){tm(t,function(t,n){if(!t.invisible){var r,o=t.parent,u=bm(o);if(i&&"drillDown"===i.direction)r=o===i.rootNodeGroup?{shape:{x:0,y:0,width:u.nodeWidth,height:u.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var h=0,c=0;u.willDelete||(h=u.nodeWidth/2,c=u.nodeHeight/2),r="nodeGroup"===e?{x:h,y:c,style:{opacity:0}}:{shape:{x:h,y:c,width:0,height:0},style:{opacity:0}}}r&&l.add(t,r,a,0,s)}})}),tm(this._storage,function(t,n){tm(t,function(t,i){var r=e.lastsForAnimation[n][i],o={};r&&(t instanceof i9?null!=r.oldX&&(o.x=t.x,o.y=t.y,t.x=r.oldX,t.y=r.oldY):(r.oldShape&&(o.shape=td({},t.shape),t.setShape(r.oldShape)),r.fadein?(t.setStyle("opacity",0),o.style={opacity:1}):1!==t.style.opacity&&(o.style={opacity:1})),l.add(t,o,a,0,s))})},this),this._state="animating",l.finished(tS(function(){this._state="ready",e.renderFinally()},this)).start()},e.prototype._resetController=function(t){var e=this._controller,n=this._controllerHost;n||(this._controllerHost={target:this.group},n=this._controllerHost),e||((e=this._controller=new xv(t.getZr())).enable(this.seriesModel.get("roam")),n.zoomLimit=this.seriesModel.get("scaleLimit"),n.zoom=this.seriesModel.get("zoom"),e.on("pan",tS(this._onPan,this)),e.on("zoom",tS(this._onZoom,this)));var i=new eq(0,0,t.getWidth(),t.getHeight());e.setPointerChecker(function(t,e,n){return i.contain(e,n)})},e.prototype._clearController=function(){var t=this._controller;this._controllerHost=null,t&&(t.dispose(),t=null)},e.prototype._onPan=function(t){if("animating"!==this._state&&(Math.abs(t.dx)>3||Math.abs(t.dy)>3)){var e=this.seriesModel.getData().tree.root;if(e){var n=e.getLayout();n&&this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}}},e.prototype._onZoom=function(t){var e=t.originX,n=t.originY,i=t.scale;if("animating"!==this._state){var r=this.seriesModel.getData().tree.root;if(!r)return;var o=r.getLayout();if(!o)return;var a=new eq(o.x,o.y,o.width,o.height),s=null,l=this._controllerHost;s=l.zoomLimit;var u=l.zoom=l.zoom||1;if(u*=i,s){var h=s.min||0;u=Math.max(Math.min(s.max||1/0,u),h)}var c=u/l.zoom;l.zoom=u;var p=this.seriesModel.layoutInfo;e-=p.x,n-=p.y;var d=eP();eE(d,d,[-e,-n]),eB(d,d,[c,c]),eE(d,d,[e,n]),a.applyTransform(d),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x,y:a.y,width:a.width,height:a.height}})}},e.prototype._initEvents=function(t){var e=this;t.on("click",function(t){if("ready"===e._state){var n=e.seriesModel.get("nodeClick",!0);if(n){var i=e.findTarget(t.offsetX,t.offsetY);if(i){var r=i.node;if(r.getLayout().isLeafRoot)e._rootToNode(i);else if("zoomToNode"===n)e._zoomToNode(i);else if("link"===n){var o=r.hostTree.data.getItemModel(r.dataIndex),a=o.get("link",!0),s=o.get("target",!0)||"blank";a&&ly(a,s)}}}}},this)},e.prototype._renderBreadcrumb=function(t,e,n){var i=this;!n&&((n=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2))||(n={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new bp(this.group))).render(t,e,n.node,function(e){"animating"!==i._state&&(bi(t.getViewRoot(),e)?i._rootToNode({node:e}):i._zoomToNode({node:e}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=b_(),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,e){var n;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},function(i){var r=this._storage.background[i.getRawIndex()];if(r){var o=r.transformCoordToLocal(t,e),a=r.shape;if(!(a.x<=o[0])||!(o[0]<=a.x+a.width)||!(a.y<=o[1])||!(o[1]<=a.y+a.height))return!1;n={node:i,offsetX:o[0],offsetY:o[1]}}},this),n},e.type="treemap",e}(pp);function b_(){return{nodeGroup:[],background:[],content:[]}}var bb=function(){function t(e){var n,i,r=e.mappingMethod,o=e.type,a=this.option=th(e);this.type=o,this.mappingMethod=r,this._normalizeData=bk[r];var s=t.visualHandlers[o];this.applyVisual=s.applyVisual,this.getColorMapper=s.getColorMapper,this._normalizedToVisual=s._normalizedToVisual[r],"piecewise"===r?(bw(a),i=(n=a).pieceList,n.hasSpecialVisual=!1,tm(i,function(t,e){t.originIndex=e,null!=t.visual&&(n.hasSpecialVisual=!0)})):"category"===r?a.categories?function(t){var e=t.categories,n=t.categoryMap={},i=t.visual;if(tm(e,function(t,e){n[t]=e}),!tI(i)){var r=[];tL(i)?tm(i,function(t,e){var i=n[e];r[null!=i?i:-1]=t}):r[-1]=i,i=bL(t,r)}for(var o=e.length-1;o>=0;o--)null==i[o]&&(delete n[e[o]],e.pop())}(a):bw(a,!0):(tF("linear"!==r||a.dataExtent),bw(a))}return t.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},t.prototype.getNormalizer=function(){return tS(this._normalizeData,this)},t.listVisualTypes=function(){return tw(t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(t,e,n){tL(t)?tm(t,e,n):e.call(n,t)},t.mapVisual=function(e,n,i){var r,o=tI(e)?[]:tL(e)?{}:(r=!0,null);return t.eachVisual(e,function(t,e){var a=n.call(i,t,e);r?o=a:o[e]=a}),o},t.retrieveVisuals=function(e){var n,i={};return e&&tm(t.visualHandlers,function(t,r){e.hasOwnProperty(r)&&(i[r]=e[r],n=!0)}),n?i:null},t.prepareVisualTypes=function(t){if(tI(t))t=t.slice();else{if(!tL(t))return[];var e=[];tm(t,function(t,n){e.push(n)}),t=e}return t.sort(function(t,e){return"color"===e&&"color"!==t&&0===t.indexOf("color")?1:-1}),t},t.dependsOn=function(t,e){return"color"===e?!!(t&&0===t.indexOf(e)):t===e},t.findPieceIndex=function(t,e,n){for(var i,r=1/0,o=0,a=e.length;ou[1]&&(u[1]=l);var h=e.get("colorMappingBy"),c={type:a.name,dataExtent:u,visual:a.range};"color"===c.type&&("index"===h||"id"===h)?(c.mappingMethod="category",c.loop=!0):c.mappingMethod="linear";var p=new bb(c);return bP(p).drColorMappingBy=h,p}}}(0,a,s,0,v,b);tm(b,function(e,n){if(e.depth>=i.length||e===i[e.depth]){var o=function(t,e,n,i,r,o){var a=td({},e);if(r){var s=r.type,l="color"===s&&bP(r).drColorMappingBy,u="index"===l?i:"id"===l?o.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension"));a[s]=r.mapValueToVisual(u)}return a}(a,v,e,n,w,r);t(e,o,i,r)}})}else m.fill=bR(v)}}(e,{},t.getViewRoot().getAncestors(),t)}};function bR(t){var e=bN(t,"color");if(e){var n=bN(t,"colorAlpha"),i=bN(t,"colorSaturation");return i&&(e=nX(e,null,null,i)),n&&(e=nZ(e,n)),e}}function bN(t,e){var n=t[e];if(null!=n&&"none"!==n)return n}function bE(t,e){var n=t.get(e);return tI(n)&&n.length?{name:e,range:n}:null}var bz=Math.max,bB=Math.min,bV=["itemStyle","borderWidth"],bF=["itemStyle","gapWidth"],bG=["upperLabel","show"],bW=["upperLabel","height"];let bH={seriesType:"treemap",reset:function(t,e,n,i){var r=n.getWidth(),o=n.getHeight(),a=t.option,s=l_(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=a.size||[],u=ro(tN(s.width,l[0]),r),h=ro(tN(s.height,l[1]),o),c=i&&i.type,p=be(i,["treemapZoomToNode","treemapRootToNode"],t),d="treemapRender"===c||"treemapMove"===c?i.rootRect:null,f=t.getViewRoot(),g=bn(f);if("treemapMove"!==c){var y="treemapZoomToNode"===c?function(t,e,n,i,r){var o,a=(e||{}).node,s=[i,r];if(!a||a===n)return s;for(var l=i*r,u=l*t.option.zoomToNodeRatio;o=a.parentNode;){for(var h=0,c=o.children,p=0,d=c.length;p0x1fffffffffffff&&(u=0x1fffffffffffff),a=o}ui[1]&&(i[1]=e)})):i=[NaN,NaN],{sum:r,dataExtent:i}}(e,l,u);if(0===c.sum||(c.sum=function(t,e,n,i,r){if(!i)return n;for(var o=t.get("visibleMin"),a=r.length,s=a,l=a-1;l>=0;l--){var u=r["asc"===i?a-l-1:l].getValue();u/n*ei&&(i=a));var l=t.area*t.area,u=e*e*n;return l?bz(u*i/l,l/(u*r)):1/0}(_,m,n.squareRatio);M<=x?(b++,x=M):(_.area-=_.pop().getLayout().area,bU(_,m,v,h,!1),m=bB(v.width,v.height),_.length=_.area=0,x=1/0)}if(_.length&&bU(_,m,v,h,!0),!i){var I=l.get("childrenVisibleMin");null!=I&&gn[l[a]])&&(h=n[l[a]]);for(var c=0,p=t.length;ci&&(i=e);var o=i%2?i+2:i+3;r=[];for(var a=0;a0&&(v[0]=-v[0],v[1]=-v[1]);var x=y[0]<0?-1:1;if("start"!==n.__position&&"end"!==n.__position){var _=-Math.atan2(y[1],y[0]);l[0].8?"left":u[0]<-.8?"right":"center",c=u[1]>.8?"top":u[1]<-.8?"bottom":"middle";break;case"start":n.x=-u[0]*d+s[0],n.y=-u[1]*f+s[1],h=u[0]>.8?"right":u[0]<-.8?"left":"center",c=u[1]>.8?"bottom":u[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":n.x=d*x+s[0],n.y=s[1]+b,h=y[0]<0?"right":"left",n.originX=-d*x,n.originY=-b;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":n.x=m[0],n.y=m[1]+b,h="center",n.originY=-b;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":n.x=-d*x+l[0],n.y=l[1]+b,h=y[0]>=0?"right":"left",n.originX=d*x,n.originY=-b}n.scaleX=n.scaleY=i,n.setStyle({verticalAlign:n.__verticalAlign||c,align:n.__align||h})}}}function w(t,e){var n=t.__specifiedRotation;if(null==n){var i=o.tangentAt(e);t.attr("rotation",(1===e?-1:1)*Math.PI/2-Math.atan2(i[1],i[0]))}else t.attr("rotation",n)}},e}(i9),wv=function(){function t(t){this.group=new i9,this._LineCtor=t||wy}return t.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var n=this.group,i=this._lineData;this._lineData=t,i||n.removeAll();var r=wm(t);t.diff(i).add(function(n){e._doAdd(t,n,r)}).update(function(n,o){e._doUpdate(i,t,o,n,r)}).remove(function(t){n.remove(i.getItemGraphicEl(t))}).execute()},t.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(e,n){e.updateLayout(t,n)},this)},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=wm(t),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e){function n(t){var e;t.isGroup||(e=t).animators&&e.animators.length>0||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var i=t.start;iwI(c))break;var f=ee(wM,e)-l;u/=2,c<0?f>=0?i+=u:i-=u:f>=0?i-=u:i+=u}return i}function wC(t,e){var n=[],i=[[],[],[]],r=[[],[]],o=[];e/=2,t.eachEdge(function(t,a){var s=t.getLayout(),l=t.getVisual("fromSymbol"),u=t.getVisual("toSymbol");!s.__original&&(s.__original=[t5(s[0]),t5(s[1])],s[2]&&s.__original.push(t5(s[2])));var h=s.__original;if(null!=s[2]){if(t2(i[0],h[0]),t2(i[1],h[2]),t2(i[2],h[1]),l&&"none"!==l){var c=b8(t.node1),p=wT(i,h[0],c*e);nS(i[0][0],i[1][0],i[2][0],p,n),i[0][0]=n[3],i[1][0]=n[4],nS(i[0][1],i[1][1],i[2][1],p,n),i[0][1]=n[3],i[1][1]=n[4]}if(u&&"none"!==u){var c=b8(t.node2),p=wT(i,h[1],c*e);nS(i[0][0],i[1][0],i[2][0],p,n),i[1][0]=n[1],i[2][0]=n[2],nS(i[0][1],i[1][1],i[2][1],p,n),i[1][1]=n[1],i[2][1]=n[2]}t2(s[0],i[0]),t2(s[1],i[2]),t2(s[2],i[1])}else{if(t2(r[0],h[0]),t2(r[1],h[1]),t6(o,r[1],r[0]),t9(o,o),l&&"none"!==l){var c=b8(t.node1);t4(r[0],r[0],o,c*e)}if(u&&"none"!==u){var c=b8(t.node2);t4(r[1],r[1],o,-c*e)}t2(s[0],r[0]),t2(s[1],r[1])}})}function wA(t){return"view"===t.type}var wD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return U(e,t),e.prototype.init=function(t,e){var n=new ys,i=new wv,r=this.group;this._controller=new xv(e.getZr()),this._controllerHost={target:r},r.add(n.group),r.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},e.prototype.render=function(t,e,n){var i=this,r=t.coordinateSystem;this._model=t;var o=this._symbolDraw,a=this._lineDraw,s=this.group;if(wA(r)){var l={x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.scaleY};this._firstRender?s.attr(l):sh(s,l,t)}wC(t.getGraph(),b6(t));var u=t.getData();o.updateData(u);var h=t.getEdgeData();a.updateData(h),this._updateNodeAndLinkScale(),this._updateController(t,e,n),clearTimeout(this._layoutTimeout);var c=t.forceLayout,p=t.get(["force","layoutAnimation"]);c&&this._startForceLayoutIteration(c,p);var d=t.get("layout");u.graph.eachNode(function(e){var n=e.dataIndex,r=e.getGraphicEl(),o=e.getModel();if(r){r.off("drag").off("dragend");var a=o.get("draggable");a&&r.on("drag",function(o){switch(d){case"force":c.warmUp(),i._layouting||i._startForceLayoutIteration(c,p),c.setFixed(n),u.setItemLayout(n,[r.x,r.y]);break;case"circular":u.setItemLayout(n,[r.x,r.y]),e.setLayout({fixed:!0},!0),wt(t,"symbolSize",e,[o.offsetX,o.offsetY]),i.updateLayout(t);break;default:u.setItemLayout(n,[r.x,r.y]),b3(t.getGraph(),t),i.updateLayout(t)}}).on("dragend",function(){c&&c.setUnfixed(n)}),r.setDraggable(a,!!o.get("cursor")),"adjacency"===o.get(["emphasis","focus"])&&(aT(r).focus=e.getAdjacentDataIndices())}}),u.graph.eachEdge(function(t){var e=t.getGraphicEl(),n=t.getModel().get(["emphasis","focus"]);e&&"adjacency"===n&&(aT(e).focus={edge:[t.dataIndex],node:[t.node1.dataIndex,t.node2.dataIndex]})});var f="circular"===t.get("layout")&&t.get(["circular","rotateLabel"]),g=u.getLayout("cx"),y=u.getLayout("cy");u.graph.eachNode(function(t){wn(t,f,g,y)}),this._firstRender=!1},e.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,e){var n=this;!function i(){t.step(function(t){n.updateLayout(n._model),(n._layouting=!t)&&(e?n._layoutTimeout=setTimeout(i,16):i())})}()},e.prototype._updateController=function(t,e,n){var i=this,r=this._controller,o=this._controllerHost,a=this.group;if(r.setPointerChecker(function(e,i,r){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(i,r)&&!xM(e,n,t)}),!wA(t.coordinateSystem))return void r.disable();r.enable(t.get("roam")),o.zoomLimit=t.get("scaleLimit"),o.zoom=t.coordinateSystem.getZoom(),r.off("pan").off("zoom").on("pan",function(e){xb(o,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"graphRoam",dx:e.dx,dy:e.dy})}).on("zoom",function(e){xw(o,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),i._updateNodeAndLinkScale(),wC(t.getGraph(),b6(t)),i._lineDraw.updateLayout(),n.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,e=t.getData(),n=b6(t);e.eachItemGraphicEl(function(t,e){t&&t.setSymbolScale(n)})},e.prototype.updateLayout=function(t){wC(t.getGraph(),b6(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(pp);function wL(t){return"_EC_"+t}var wk=function(){function t(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return t.prototype.isDirected=function(){return this._directed},t.prototype.addNode=function(t,e){t=null==t?""+e:""+t;var n=this._nodesMap;if(!n[wL(t)]){var i=new wP(t,e);return i.hostGraph=this,this.nodes.push(i),n[wL(t)]=i,i}},t.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},t.prototype.getNodeById=function(t){return this._nodesMap[wL(t)]},t.prototype.addEdge=function(t,e,n){var i=this._nodesMap,r=this._edgesMap;if(tD(t)&&(t=this.nodes[t]),tD(e)&&(e=this.nodes[e]),t instanceof wP||(t=i[wL(t)]),e instanceof wP||(e=i[wL(e)]),t&&e){var o=t.id+"-"+e.id,a=new wO(t,e,n);return a.hostGraph=this,this._directed&&(t.outEdges.push(a),e.inEdges.push(a)),t.edges.push(a),t!==e&&e.edges.push(a),this.edges.push(a),r[o]=a,a}},t.prototype.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},t.prototype.getEdge=function(t,e){t instanceof wP&&(t=t.id),e instanceof wP&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},t.prototype.eachNode=function(t,e){for(var n=this.nodes,i=n.length,r=0;r=0&&t.call(e,n[r],r)},t.prototype.eachEdge=function(t,e){for(var n=this.edges,i=n.length,r=0;r=0&&n[r].node1.dataIndex>=0&&n[r].node2.dataIndex>=0&&t.call(e,n[r],r)},t.prototype.breadthFirstTraverse=function(t,e,n,i){if(e instanceof wP||(e=this._nodesMap[wL(e)]),e){for(var r="out"===n?"outEdges":"in"===n?"inEdges":"edges",o=0;o=0&&n.node2.dataIndex>=0});for(var r=0,o=i.length;r=0&&this[t][e].setItemVisual(this.dataIndex,n,i)},getVisual:function(n){return this[t][e].getItemVisual(this.dataIndex,n)},setLayout:function(n,i){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,n,i)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}}function wN(t,e,n,i,r){for(var o,a=new wk(i),s=0;s "+d)),h++)}var f=n.get("coordinateSystem");if("cartesian2d"===f||"polar"===f)o=g7(t,n);else{var g=l6.get(f),y=g&&g.dimensions||[];0>tg(y,"value")&&y.concat(["value"]),(o=new g1(g2(t,{coordDimensions:y,encodeDefine:n.getEncode()}).dimensions,n)).initData(t)}var v=new g1(["value"],n);return v.initData(u,l),r&&r(o,v),_7({mainData:o,struct:a,structAttr:"graph",datas:{node:o,edge:v},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}ty(wP,wR("hostGraph","data")),ty(wO,wR("hostGraph","edgeData"));var wE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return U(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new vS(i,i),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(e){t.prototype.mergeDefaultAndTheme.apply(this,arguments),rI(e,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,e){var n=t.edges||t.links||[],i=t.data||t.nodes||[],r=this;if(i&&n){bK(this)&&(this.__curvenessList=[],this.__edgeMap={},b$(this));var o=wN(i,n,this,!0,function(t,e){t.wrapMethod("getItemModel",function(t){var e=r._categoriesModels[t.getShallow("category")];return e&&(e.parentModel=t.parentModel,t.parentModel=e),t});var n=sW.prototype.getModel;function i(t,e){var i=n.call(this,t,e);return i.resolveParentPath=o,i}function o(t){if(t&&("label"===t[0]||"label"===t[1])){var e=t.slice();return"label"===t[0]?e[0]="edgeLabel":"label"===t[1]&&(e[1]="edgeLabel"),e}return t}e.wrapMethod("getItemModel",function(t){return t.resolveParentPath=o,t.getModel=i,t})});return tm(o.edges,function(t){!function(t,e,n,i){if(bK(n)){var r=bJ(t,e,n),o=n.__edgeMap,a=o[bQ(r)];o[r]&&!a?o[r].isForward=!0:a&&o[r]&&(a.isForward=!0,o[r].isForward=!1),o[r]=o[r]||[],o[r].push(i)}}(t.node1,t.node2,this,t.dataIndex)},this),o.data}},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,e,n){if("edge"===n){var i=this.getData(),r=this.getDataParams(t,n),o=i.graph.getEdgeByIndex(t),a=i.getName(o.node1.dataIndex),s=i.getName(o.node2.dataIndex),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),hf("nameValue",{name:l.join(" > "),value:r.value,noValue:null==r.value})}return hM({series:this,dataIndex:t,multipleSeries:e})},e.prototype._updateCategoriesData=function(){var t=tx(this.option.categories||[],function(t){return null!=t.value?t:td({value:0},t)}),e=new g1(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray(function(t){return e.getItemModel(t)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return t.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&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}(hA),wz={type:"graphRoam",event:"graphRoam",update:"none"},wB=function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0},wV=function(t){function e(e){var n=t.call(this,e)||this;return n.type="pointer",n}return U(e,t),e.prototype.getDefaultShape=function(){return new wB},e.prototype.buildPath=function(t,e){var n=Math.cos,i=Math.sin,r=e.r,o=e.width,a=e.angle,s=e.x-n(a)*o*(o>=r/3?1:2),l=e.y-i(a)*o*(o>=r/3?1:2);a=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+n(a)*o,e.y+i(a)*o),t.lineTo(e.x+n(e.angle)*r,e.y+i(e.angle)*r),t.lineTo(e.x-n(a)*o,e.y-i(a)*o),t.lineTo(s,l)},e}(o4);function wF(t,e){var n=null==t?"":t+"";return e&&(tC(e)?n=e.replace("{value}",n):tT(e)&&(n=e(t))),n}var wG=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return U(e,t),e.prototype.render=function(t,e,n){this.group.removeAll();var i,r,o=t.get(["axisLine","lineStyle","color"]),a=(i=t.get("center"),r=Math.min(n.getWidth(),n.getHeight()),{cx:ro(i[0],n.getWidth()),cy:ro(i[1],n.getHeight()),r:ro(t.get("radius"),r/2)});this._renderMain(t,e,n,o,a),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,e,n,i,r){var o=this.group,a=t.get("clockwise"),s=-t.get("startAngle")/180*Math.PI,l=-t.get("endAngle")/180*Math.PI,u=t.getModel("axisLine"),h=u.get("roundCap")?y$:cp,c=u.get("show"),p=u.getModel("lineStyle"),d=p.get("width"),f=[s,l];oH(f,!a),s=f[0];for(var g=(l=f[1])-s,y=s,v=[],m=0;c&&m=t&&(0===e?0:i[e-1][0])Math.PI/2&&(B+=Math.PI):"tangential"===z?B=-M-Math.PI/2:tD(z)&&(B=z*Math.PI/180),0===B?c.add(new aI({style:sw(x,{text:O,x:N,y:E,verticalAlign:h<-.8?"top":h>.8?"bottom":"middle",align:u<-.4?"left":u>.4?"right":"center"},{inheritColor:R}),silent:!0})):c.add(new aI({style:sw(x,{text:O,x:N,y:E,verticalAlign:"middle",align:"center"},{inheritColor:R}),silent:!0,originX:N,originY:E,rotation:B}))}if(m.get("show")&&L!==_){var k=m.get("distance");k=k?k+l:l;for(var V=0;V<=b;V++){var F=new cT({shape:{x1:(u=Math.cos(M))*(f-k)+p,y1:(h=Math.sin(M))*(f-k)+d,x2:u*(f-S-k)+p,y2:h*(f-S-k)+d},silent:!0,style:A});"auto"===A.stroke&&F.setStyle({stroke:i((L+V/b)/_)}),c.add(F),M+=T}M-=T}else M+=I}},e.prototype._renderPointer=function(t,e,n,i,r,o,a,s,l){var u=this.group,h=this._data,c=this._progressEls,p=[],d=t.get(["pointer","show"]),f=t.getModel("progress"),g=f.get("show"),y=t.getData(),v=y.mapDimension("value"),m=+t.get("min"),x=+t.get("max"),_=[m,x],b=[o,a];function w(e,n){var i,o=y.getItemModel(e).getModel("pointer"),a=ro(o.get("width"),r.r),s=ro(o.get("length"),r.r),l=t.get(["pointer","icon"]),u=o.get("offsetCenter"),h=ro(u[0],r.r),c=ro(u[1],r.r),p=o.get("keepAspect");return(i=l?ds(l,h-a/2,c-s,a,s,null,p):new wV({shape:{angle:-Math.PI/2,width:a,r:s,x:h,y:c}})).rotation=-(n+Math.PI/2),i.x=r.cx,i.y=r.cy,i}function S(t,e){var n=f.get("roundCap")?y$:cp,i=f.get("overlap"),a=i?f.get("width"):l/y.count(),u=i?r.r-a:r.r-(t+1)*a,h=i?r.r:r.r-t*a,c=new n({shape:{startAngle:o,endAngle:e,cx:r.cx,cy:r.cy,clockwise:s,r0:u,r:h}});return i&&(c.z2=rr(y.get(v,t),[m,x],[100,0],!0)),c}(g||d)&&(y.diff(h).add(function(e){var n=y.get(v,e);if(d){var i=w(e,o);sc(i,{rotation:-((isNaN(+n)?b[0]:rr(n,_,b,!0))+Math.PI/2)},t),u.add(i),y.setItemGraphicEl(e,i)}if(g){var r=S(e,o);sc(r,{shape:{endAngle:rr(n,_,b,f.get("clip"))}},t),u.add(r),aC(t.seriesIndex,y.dataType,e,r),p[e]=r}}).update(function(e,n){var i=y.get(v,e);if(d){var r=h.getItemGraphicEl(n),a=r?r.rotation:o,s=w(e,a);s.rotation=a,sh(s,{rotation:-((isNaN(+i)?b[0]:rr(i,_,b,!0))+Math.PI/2)},t),u.add(s),y.setItemGraphicEl(e,s)}if(g){var l=c[n],m=S(e,l?l.shape.endAngle:o);sh(m,{shape:{endAngle:rr(i,_,b,f.get("clip"))}},t),u.add(m),aC(t.seriesIndex,y.dataType,e,m),p[e]=m}}).execute(),y.each(function(t){var e=y.getItemModel(t),n=e.getModel("emphasis"),r=n.get("focus"),o=n.get("blurScope"),a=n.get("disabled");if(d){var s=y.getItemGraphicEl(t),l=y.getItemVisual(t,"style"),u=l.fill;if(s instanceof ae){var h=s.style;s.useStyle(td({image:h.image,x:h.x,y:h.y,width:h.width,height:h.height},l))}else s.useStyle(l),"pointer"!==s.type&&s.setColor(u);s.setStyle(e.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===s.style.fill&&s.setStyle("fill",i(rr(y.get(v,t),_,[0,1],!0))),s.z2EmphasisLift=0,sn(s,e),a7(s,r,o,a)}if(g){var c=p[t];c.useStyle(y.getItemVisual(t,"style")),c.setStyle(e.getModel(["progress","itemStyle"]).getItemStyle()),c.z2EmphasisLift=0,sn(c,e),a7(c,r,o,a)}}),this._progressEls=p)},e.prototype._renderAnchor=function(t,e){var n=t.getModel("anchor");if(n.get("show")){var i=n.get("size"),r=n.get("icon"),o=n.get("offsetCenter"),a=n.get("keepAspect"),s=ds(r,e.cx-i/2+ro(o[0],e.r),e.cy-i/2+ro(o[1],e.r),i,i,null,a);s.z2=+!!n.get("showAbove"),s.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(s)}},e.prototype._renderTitleAndDetail=function(t,e,n,i,r){var o=this,a=t.getData(),s=a.mapDimension("value"),l=+t.get("min"),u=+t.get("max"),h=new i9,c=[],p=[],d=t.isAnimationEnabled(),f=t.get(["pointer","showAbove"]);a.diff(this._data).add(function(t){c[t]=new aI({silent:!0}),p[t]=new aI({silent:!0})}).update(function(t,e){c[t]=o._titleEls[e],p[t]=o._detailEls[e]}).execute(),a.each(function(e){var n=a.getItemModel(e),o=a.get(s,e),g=new i9,y=i(rr(o,[l,u],[0,1],!0)),v=n.getModel("title");if(v.get("show")){var m=v.get("offsetCenter"),x=r.cx+ro(m[0],r.r),_=r.cy+ro(m[1],r.r),b=c[e];b.attr({z2:2*!f,style:sw(v,{x:x,y:_,text:a.getName(e),align:"center",verticalAlign:"middle"},{inheritColor:y})}),g.add(b)}var w=n.getModel("detail");if(w.get("show")){var S=w.get("offsetCenter"),M=r.cx+ro(S[0],r.r),I=r.cy+ro(S[1],r.r),T=ro(w.get("width"),r.r),C=ro(w.get("height"),r.r),A=t.get(["progress","show"])?a.getItemVisual(e,"style").fill:y,b=p[e],D=w.get("formatter");b.attr({z2:2*!f,style:sw(w,{x:M,y:I,text:wF(o,D),width:isNaN(T)?null:T,height:isNaN(C)?null:C,align:"center",verticalAlign:"middle"},{inheritColor:A})}),sL(b,{normal:w},o,function(t){return wF(t,D)}),d&&sk(b,e,a,t,{getFormattedLabel:function(t,e,n,i,r,a){return wF(a?a.interpolatedValue:o,D)}}),g.add(b)}h.add(g)}),this.group.add(h),this._titleEls=c,this._detailEls=p},e.type="gauge",e}(pp),wW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="itemStyle",n}return U(e,t),e.prototype.getInitialData=function(t,e){return vw(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}(hA),wH=["itemStyle","opacity"],wU=function(t){function e(e,n){var i=t.call(this)||this,r=new cw,o=new aI;return i.setTextContent(o),i.setTextGuideLine(r),i.updateData(e,n,!0),i}return U(e,t),e.prototype.updateData=function(t,e,n){var i=t.hostModel,r=t.getItemModel(e),o=t.getItemLayout(e),a=r.getModel("emphasis"),s=r.get(wH);s=null==s?1:s,n||sy(this),this.useStyle(t.getItemVisual(e,"style")),this.style.lineJoin="round",n?(this.setShape({points:o.points}),this.style.opacity=0,sc(this,{style:{opacity:s}},i,e)):sh(this,{style:{opacity:s},shape:{points:o.points}},i,e),sn(this,r),this._updateLabel(t,e),a7(this,a.get("focus"),a.get("blurScope"),a.get("disabled"))},e.prototype._updateLabel=function(t,e){var n=this.getTextGuideLine(),i=this.getTextContent(),r=t.hostModel,o=t.getItemModel(e),a=t.getItemLayout(e).label,s=t.getItemVisual(e,"style"),l=s.fill;s_(i,sb(o),{labelFetcher:t.hostModel,labelDataIndex:e,defaultOpacity:s.opacity,defaultText:t.getName(e)},{normal:{align:a.textAlign,verticalAlign:a.verticalAlign}}),this.setTextConfig({local:!0,inside:!!a.inside,insideStroke:l,outsideFill:l});var u=a.linePoints;n.setShape({points:u}),this.textGuideLineConfig={anchor:u?new eF(u[0][0],u[0][1]):null},sh(i,{style:{x:a.x,y:a.y}},r,e),i.attr({rotation:a.rotation,originX:a.x,originY:a.y,z2:10}),fC(this,fA(o),{stroke:l})},e}(cx),wY=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreLabelLineUpdate=!0,n}return U(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this._data,o=this.group;i.diff(r).add(function(t){var e=new wU(i,t);i.setItemGraphicEl(t,e),o.add(e)}).update(function(t,e){var n=r.getItemGraphicEl(e);n.updateData(i,t),o.add(n),i.setItemGraphicEl(t,n)}).remove(function(e){sg(r.getItemGraphicEl(e),t,e)}).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(pp),wX=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return U(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new vS(tS(this.getData,this),tS(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.getInitialData=function(t,e){return vw(this,{coordDimensions:["value"],encodeDefaulter:tM(lW,this)})},e.prototype._defaultLabelLine=function(t){rI(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.prototype.getDataParams=function(e){var n=this.getData(),i=t.prototype.getDataParams.call(this,e),r=n.mapDimension("value"),o=n.getSum(r);return i.percent=o?+(n.get(r,e)/o*100).toFixed(2):0,i.$vars.push("percent"),i},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}(hA);function wZ(t,e){t.eachSeriesByType("funnel",function(t){var n,i=t.getData(),r=i.mapDimension("value"),o=t.get("sort"),a=l_(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),s=t.get("orient"),l=a.width,u=a.height,h=function(t,e){for(var n=t.mapDimension("value"),i=t.mapArray(n,function(t){return t}),r=[],o="ascending"===e,a=0,s=t.count();a5)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==i.behavior&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&w6(this,"mousemove")){var e=this._model,n=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),i=n.behavior;"jump"===i&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===i?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===i?null:{duration:0}})}}};function w6(t,e){var n=t._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===e}var w8=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return U(e,t),e.prototype.init=function(){t.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var e=this.option;t&&tc(e,t,!0),this._initDimensions()},e.prototype.contains=function(t,e){var n=t.get("parallelIndex");return null!=n&&e.getComponent("parallel",n)===this},e.prototype.setAxisExpand=function(t){tm(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(e){t.hasOwnProperty(e)&&(this.option[e]=t[e])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],e=this.parallelAxisIndex=[];tm(tb(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(t){return(t.get("parallelIndex")||0)===this.componentIndex},this),function(n){t.push("dim"+n.get("dim")),e.push(n.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}(lC),w7=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.type=r||"value",a.axisIndex=o,a}return U(e,t),e.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},e}(mD);function w9(t,e,n,i,r,o){t=t||0;var a,s=n[1]-n[0];if(null!=r&&(r=Se(r,[0,s])),null!=o&&(o=Math.max(o,null!=r?r:0)),"all"===i){var l=Math.abs(e[1]-e[0]);l=Se(l,[0,s]),r=o=Se(l,[r,o]),i=0}e[0]=Se(e[0],n),e[1]=Se(e[1],n);var u=St(e,i);e[i]+=t;var h=r||0,c=n.slice();return u.sign<0?c[0]+=h:c[1]-=h,e[i]=Se(e[i],c),a=St(e,i),null!=r&&(a.sign!==u.sign||a.spano&&(e[1-i]=e[i]+a.sign*o),e}function St(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:n<0?1:e?-1:1}}function Se(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var Sn=Math.min,Si=Math.max,Sr=Math.floor,So=Math.ceil,Sa=Math.PI,Ss=function(){function t(t,e,n){this.type="parallel",this._axesMap=tX(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,n)}return t.prototype._init=function(t,e,n){var i=t.dimensions,r=t.parallelAxisIndex;tm(i,function(t,n){var i=r[n],o=e.getComponent("parallelAxis",i),a=this._axesMap.set(t,new w7(t,mh(o),[0,0],o.get("type"),i)),s="category"===a.type;a.onBand=s&&o.get("boundaryGap"),a.inverse=o.get("inverse"),o.axis=a,a.model=o,a.coordinateSystem=o.coordinateSystem=this},this)},t.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},t.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),n=e.axisBase,i=e.layoutBase,r=e.pixelDimIndex,o=t[1-r],a=t[r];return o>=n&&o<=n+e.axisLength&&a>=i&&a<=i+e.layoutLength},t.prototype.getModel=function(){return this._model},t.prototype._updateAxesFromSeries=function(t,e){e.eachSeries(function(n){if(t.contains(n,e)){var i=n.getData();tm(this.dimensions,function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(i,i.mapDimension(t)),mu(e.scale,e.model)},this)}},this)},t.prototype.resize=function(t,e){this._rect=l_(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},t.prototype.getRect=function(){return this._rect},t.prototype._makeLayoutInfo=function(){var t,e=this._model,n=this._rect,i=["x","y"],r=["width","height"],o=e.get("layout"),a=+("horizontal"!==o),s=n[r[a]],l=[0,s],u=this.dimensions.length,h=Sl(e.get("axisExpandWidth"),l),c=Sl(e.get("axisExpandCount")||0,[0,u]),p=e.get("axisExpandable")&&u>3&&u>c&&c>1&&h>0&&s>0,d=e.get("axisExpandWindow");d?(t=Sl(d[1]-d[0],l),d[1]=d[0]+t):(t=Sl(h*(c-1),l),(d=[h*(e.get("axisExpandCenter")||Sr(u/2))-t/2])[1]=d[0]+t);var f=(s-t)/(u-c);f<3&&(f=0);var g=[Sr(ra(d[0]/h,1))+1,So(ra(d[1]/h,1))-1],y=f/h*d[0];return{layout:o,pixelDimIndex:a,layoutBase:n[i[a]],layoutLength:s,axisBase:n[i[1-a]],axisLength:n[r[1-a]],axisExpandable:p,axisExpandWidth:h,axisCollapseWidth:f,axisExpandWindow:d,axisCount:u,winInnerIndices:g,axisExpandWindow0Pos:y}},t.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),r=i.layout;e.each(function(t){var e=[0,i.axisLength],n=+!!t.inverse;t.setExtent(e[n],e[1-n])}),tm(n,function(e,n){var o=(i.axisExpandable?function(t,e){var n,i,r=e.layoutLength,o=e.axisExpandWidth,a=e.axisCount,s=e.axisCollapseWidth,l=e.winInnerIndices,u=s,h=!1;return to*(1-h[0])?(l="jump",e=s-o*(1-h[2])):(e=s-o*h[1])>=0&&(e=s-o*(1-h[1]))<=0&&(e=0),(e*=n.axisExpandWidth/u)?w9(e,r,a,"all"):l="none";else{var p=r[1]-r[0];(r=[Si(0,a[1]*s/p-p/2)])[1]=Sn(a[1],r[0]+p),r[0]=r[1]-p}return{axisExpandWindow:r,behavior:l}},t}();function Sl(t,e){return Sn(Si(t,e[0]),e[1])}let Su={create:function(t,e){var n=[];return t.eachComponent("parallel",function(i,r){var o=new Ss(i,t,e);o.name="parallel_"+r,o.resize(i,e),i.coordinateSystem=o,o.model=i,n.push(o)}),t.eachSeries(function(t){if("parallel"===t.get("coordinateSystem")){var e=t.getReferringComponents("parallel",rV).models[0];t.coordinateSystem=e.coordinateSystem}}),n}};var Sh=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.activeIntervals=[],n}return U(e,t),e.prototype.getAreaSelectStyle=function(){return r0([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var e=this.activeIntervals=th(t);if(e)for(var n=e.length-1;n>=0;n--)rs(e[n])},e.prototype.getActiveState=function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t||isNaN(+t))return"inactive";if(1===e.length){var n=e[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,r=e.length;i6}(t)||o){if(a&&!o){"single"===s.brushMode&&SA(t);var l=th(s);l.brushType=SY(l.brushType,a),l.panelId=!0===a?null:a.panelId,o=t._creatingCover=S_(t,l),t._covers.push(o)}if(o){var u=Sj[SY(t._brushType,a)];o.__brushOption.range=u.getCreatingRange(SG(t,o,t._track)),i&&(Sb(t,o),u.updateCommon(t,o)),Sw(t,o),r={isEnd:i}}}else i&&"single"===s.brushMode&&s.removeOnClick&&ST(t,e,n)&&SA(t)&&(r={isEnd:i,removeOnClick:!0});return r}function SY(t,e){return"auto"===t?e.defaultBrushType:t}var SX={mousedown:function(t){if(this._dragging)SZ(this,t);else if(!t.target||!t.target.draggable){SW(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null,(this._creatingPanel=ST(this,t,e))&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=t.offsetX,n=t.offsetY,i=this.group.transformCoordToLocal(e,n);if(!function(t,e,n){if(!(!t._brushType||(i=t,r=e.offsetX,o=e.offsetY,a=i._zr,r<0||r>a.getWidth()||o<0||o>a.getHeight()))){var i,r,o,a,s=t._zr,l=t._covers,u=ST(t,e,n);if(!t._dragging)for(var h=0;h=0&&(o[r[a].depth]=new sW(r[a],this,e));return wN(i,n,this,!0,function(t,e){t.wrapMethod("getItemModel",function(t,e){var n=t.parentModel,i=n.getData().getItemLayout(e);if(i){var r=i.depth,o=n.levelModels[r];o&&(t.parentModel=o)}return t}),e.wrapMethod("getItemModel",function(t,e){var n=t.parentModel,i=n.getGraph().getEdgeByIndex(e).node1.getLayout();if(i){var r=i.depth,o=n.levelModels[r];o&&(t.parentModel=o)}return t})}).data},e.prototype.setNodePosition=function(t,e){var n=(this.option.data||this.option.nodes)[t];n.localX=e[0],n.localY=e[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,e,n){function i(t){return isNaN(t)||null==t}if("edge"===n){var r=this.getDataParams(t,n),o=r.data,a=r.value;return hf("nameValue",{name:o.source+" -- "+o.target,value:a,noValue:i(a)})}var s=this.getGraph().getNodeByIndex(t).getLayout().value,l=this.getDataParams(t,n).data.name;return hf("nameValue",{name:null!=l?l+"":null,value:s,noValue:i(s)})},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(e,n){var i=t.prototype.getDataParams.call(this,e,n);return null==i.value&&"node"===n&&(i.value=this.getGraph().getNodeByIndex(e).getLayout().value),i},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}(hA);function Mt(t,e){t.eachSeriesByType("sankey",function(t){var n,i,r,o,a,s,l,u,h,c,p,d,f=t.get("nodeWidth"),g=t.get("nodeGap"),y=(n=t,i=e,l_(n.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()}));t.layoutInfo=y;var v=y.width,m=y.height,x=t.getGraph(),_=x.nodes,b=x.edges;tm(_,function(t){var e=Math.max(Mu(t.outEdges,Ml),Mu(t.inEdges,Ml),t.getValue()||0);t.setLayout({value:e},!0)});var w=0!==tb(_,function(t){return 0===t.getLayout().value}).length?0:t.get("layoutIterations");r=_,o=b,a=f,s=g,l=v,u=m,h=w,c=t.get("orient"),function(t,e,n,i,r,o,a){for(var s,l,u,h=[],c=[],p=[],d=[],f=0,g=0;g=0;_&&x.depth>y&&(y=x.depth),m.setLayout({depth:_?x.depth:f},!0),"vertical"===o?m.setLayout({dy:n},!0):m.setLayout({dx:n},!0);for(var b=0;bd.indexOf(S)&&d.push(S)}}++f,p=d,d=[]}for(var g=0;gf-1?y:f-1;a&&"left"!==a&&function(t,e,n,i){if("right"===e){for(var r,o,a=[],s=t,l=0;s.length;){for(var u=0;ua.indexOf(p.node1)&&a.push(p.node1)}}s=a,a=[],++l}tm(t,function(t){Me(t)||t.setLayout({depth:Math.max(0,i-t.getLayout().skNodeHeight)},!0)})}else{"justify"===e&&(r=t,o=i,tm(r,function(t){Me(t)||t.outEdges.length||t.setLayout({depth:o},!0)}))}}(t,a,0,I),s=t,l="vertical"===o?(r-n)/I:(i-n)/I,u=o,tm(s,function(t){var e=t.getLayout().depth*l;"vertical"===u?t.setLayout({y:e},!0):t.setLayout({x:e},!0)})}(r,o,a,l,u,c,t.get("nodeAlign")),function(t,e,n,i,r,o,a){var s,l,u,h,c,p,d,f,g,y,v,m=(s=t,l=[],u="vertical"===a?"y":"x",(h=rH(s,function(t){return t.getLayout()[u]})).keys.sort(function(t,e){return t-e}),tm(h.keys,function(t){l.push(h.buckets.get(t))}),l);c=m,p=e,d=n,f=i,g=r,y=a,v=1/0,tm(c,function(t){var e=t.length,n=0;tm(t,function(t){n+=t.getLayout().value});var i="vertical"===y?(f-(e-1)*g)/n:(d-(e-1)*g)/n;i0;o--)(function(t,e,n){tm(t.slice().reverse(),function(t){tm(t,function(t){if(t.outEdges.length){var i=Mu(t.outEdges,Mi,n)/Mu(t.outEdges,Ml);if(isNaN(i)){var r=t.outEdges.length;i=r?Mu(t.outEdges,Mr,n)/r:0}if("vertical"===n){var o=t.getLayout().x+(i-Ms(t,n))*e;t.setLayout({x:o},!0)}else{var a=t.getLayout().y+(i-Ms(t,n))*e;t.setLayout({y:a},!0)}}})})})(m,x*=.99,a),Mn(m,r,n,i,a),function(t,e,n){tm(t,function(t){tm(t,function(t){if(t.inEdges.length){var i=Mu(t.inEdges,Mo,n)/Mu(t.inEdges,Ml);if(isNaN(i)){var r=t.inEdges.length;i=r?Mu(t.inEdges,Ma,n)/r:0}if("vertical"===n){var o=t.getLayout().x+(i-Ms(t,n))*e;t.setLayout({x:o},!0)}else{var a=t.getLayout().y+(i-Ms(t,n))*e;t.setLayout({y:a},!0)}}})})}(m,x,a),Mn(m,r,n,i,a)}(r,o,u,l,s,h,c),p=r,d="vertical"===c?"x":"y",tm(p,function(t){t.outEdges.sort(function(t,e){return t.node2.getLayout()[d]-e.node2.getLayout()[d]}),t.inEdges.sort(function(t,e){return t.node1.getLayout()[d]-e.node1.getLayout()[d]})}),tm(p,function(t){var e=0,n=0;tm(t.outEdges,function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy}),tm(t.inEdges,function(t){t.setLayout({ty:n},!0),n+=t.getLayout().dy})})})}function Me(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return null!=e.depth&&e.depth>=0}function Mn(t,e,n,i,r){var o="vertical"===r?"x":"y";tm(t,function(t){t.sort(function(t,e){return t.getLayout()[o]-e.getLayout()[o]});for(var a,s,l,u=0,h=t.length,c="vertical"===r?"dx":"dy",p=0;p0&&(a=s.getLayout()[o]+l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]+s.getLayout()[c]+e;if((l=u-e-("vertical"===r?i:n))>0){a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0),u=a;for(var p=h-2;p>=0;--p)(l=(s=t[p]).getLayout()[o]+s.getLayout()[c]+e-u)>0&&(a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]}})}function Mi(t,e){return Ms(t.node2,e)*t.getValue()}function Mr(t,e){return Ms(t.node2,e)}function Mo(t,e){return Ms(t.node1,e)*t.getValue()}function Ma(t,e){return Ms(t.node1,e)}function Ms(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function Ml(t){return t.getValue()}function Mu(t,e,n){for(var i=0,r=t.length,o=-1;++oo&&(o=e)}),tm(n,function(e){var n=new bb({type:"color",mappingMethod:"linear",dataExtent:[r,o],visual:t.get("color")}).mapValueToVisual(e.getLayout().value),i=e.getModel().get(["itemStyle","color"]);null!=i?(e.setVisual("color",i),e.setVisual("style",{fill:i})):(e.setVisual("color",n),e.setVisual("style",{fill:n}))})}i.length&&tm(i,function(t){var e=t.getModel().get("lineStyle");t.setVisual("style",e)})})}var Mc=function(){function t(){}return t.prototype._hasEncodeRule=function(t){var e=this.getEncode();return e&&null!=e.get(t)},t.prototype.getInitialData=function(t,e){var n,i,r=e.getComponent("xAxis",this.get("xAxisIndex")),o=e.getComponent("yAxis",this.get("yAxisIndex")),a=r.get("type"),s=o.get("type");"category"===a?(t.layout="horizontal",n=r.getOrdinalMeta(),i=!this._hasEncodeRule("x")):"category"===s?(t.layout="vertical",n=o.getOrdinalMeta(),i=!this._hasEncodeRule("y")):t.layout=t.layout||"horizontal";var l=["x","y"],u=+("horizontal"!==t.layout),h=this._baseAxisDim=l[u],c=l[1-u],p=[r,o],d=p[u].get("type"),f=p[1-u].get("type"),g=t.data;if(g&&i){var y=[];tm(g,function(t,e){var n;tI(t)?(n=t.slice(),t.unshift(e)):tI(t.value)?((n=td({},t)).value=n.value.slice(),t.value.unshift(e)):n=t,y.push(n)}),t.data=y}var v=this.defaultValueDimensions,m=[{name:h,type:gH(d),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:c,type:gH(f),dimsDef:v.slice()}];return vw(this,{coordDimensions:m,dimensionsCount:v.length+1,encodeDefaulter:tM(lG,m,this)})},t.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},t}(),Mp=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return U(e,t),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}(hA);ty(Mp,Mc,!0);var Md=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return U(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this.group,o=this._data;this._data||r.removeAll();var a=+("horizontal"===t.get("layout"));i.diff(o).add(function(t){if(i.hasValue(t)){var e=My(i.getItemLayout(t),i,t,a,!0);i.setItemGraphicEl(t,e),r.add(e)}}).update(function(t,e){var n=o.getItemGraphicEl(e);if(!i.hasValue(t))return void r.remove(n);var s=i.getItemLayout(t);n?(sy(n),Mv(s,n,i,t)):n=My(s,i,t,a),r.add(n),i.setItemGraphicEl(t,n)}).remove(function(t){var e=o.getItemGraphicEl(t);e&&r.remove(e)}).execute(),this._data=i},e.prototype.remove=function(t){var e=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(t){t&&e.remove(t)})},e.type="boxplot",e}(pp),Mf=function(){},Mg=function(t){function e(e){var n=t.call(this,e)||this;return n.type="boxplotBoxPath",n}return U(e,t),e.prototype.getDefaultShape=function(){return new Mf},e.prototype.buildPath=function(t,e){var n=e.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();ig){var _=[v,x];i.push(_)}}}return{boxData:n,outliers:i}}(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}},M_=["itemStyle","borderColor"],Mb=["itemStyle","borderColor0"],Mw=["itemStyle","borderColorDoji"],MS=["itemStyle","color"],MM=["itemStyle","color0"];function MI(t,e){return e.get(t>0?MS:MM)}function MT(t,e){return e.get(0===t?Mw:t>0?M_:Mb)}var MC={seriesType:"candlestick",plan:hz(),performRawSeries:!0,reset:function(t,e){if(!e.isSeriesFiltered(t))return!t.pipelineContext.large&&{progress:function(t,e){for(var n;null!=(n=t.next());){var i=e.getItemModel(n),r=e.getItemLayout(n).sign,o=i.getItemStyle();o.fill=MI(r,i),o.stroke=MT(r,i)||o.fill,td(e.ensureUniqueItemVisual(n,"style"),o)}}}}},MA=["color","borderColor"],MD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return U(e,t),e.prototype.render=function(t,e,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,e,n){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,e,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,e):this._incrementalRenderNormal(t,e)},e.prototype.eachRendered=function(t){pu(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;(null==this._isLargeDraw||e!==this._isLargeDraw)&&(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t){var e=t.getData(),n=this._data,i=this.group,r=e.getLayout("isSimpleBox"),o=t.get("clip",!0),a=t.coordinateSystem,s=a.getArea&&a.getArea();this._data||i.removeAll(),e.diff(n).add(function(n){if(e.hasValue(n)){var a=e.getItemLayout(n);if(!(o&&MO(s,a))){var l=MP(a,n,!0);sc(l,{shape:{points:a.ends}},t,n),MR(l,e,n,r),i.add(l),e.setItemGraphicEl(n,l)}}}).update(function(a,l){var u=n.getItemGraphicEl(l);if(!e.hasValue(a))return void i.remove(u);var h=e.getItemLayout(a);if(o&&MO(s,h))return void i.remove(u);u?(sh(u,{shape:{points:h.ends}},t,a),sy(u)):u=MP(h,a),MR(u,e,a,r),i.add(u),e.setItemGraphicEl(a,u)}).remove(function(t){var e=n.getItemGraphicEl(t);e&&i.remove(e)}).execute(),this._data=e},e.prototype._renderLarge=function(t){this._clear(),Mz(t,this.group);var e=t.get("clip",!0)?yS(t.coordinateSystem,!1,t):null;e?this.group.setClipPath(e):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,e){for(var n,i=e.getData(),r=i.getLayout("isSimpleBox");null!=(n=t.next());){var o=MP(i.getItemLayout(n),n);MR(o,i,n,r),o.incremental=!0,this.group.add(o),this._progressiveEls.push(o)}},e.prototype._incrementalRenderLarge=function(t,e){Mz(e,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}(pp),ML=function(){},Mk=function(t){function e(e){var n=t.call(this,e)||this;return n.type="normalCandlestickBox",n}return U(e,t),e.prototype.getDefaultShape=function(){return new ML},e.prototype.buildPath=function(t,e){var n=e.points;this.__simpleBox?(t.moveTo(n[4][0],n[4][1]),t.lineTo(n[6][0],n[6][1])):(t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]),t.lineTo(n[3][0],n[3][1]),t.closePath(),t.moveTo(n[4][0],n[4][1]),t.lineTo(n[5][0],n[5][1]),t.moveTo(n[6][0],n[6][1]),t.lineTo(n[7][0],n[7][1]))},e}(o4);function MP(t,e,n){var i,r,o=t.ends;return new Mk({shape:{points:n?(i=o,r=t,tx(i,function(t){return(t=t.slice())[1]=r.initBaseline,t})):o},z2:100})}function MO(t,e){for(var n=!0,i=0;ia?x[1]:f[1],ends:w,brushRect:function(t,e,n){var i=M(t,n),r=M(e,n);return i[0]-=c/2,r[0]-=c/2,{x:i[0],y:i[1],width:c,height:r[1]-i[1]}}(s,l,r)})}function M(t,e){var n=[];return n[0]=e,n[1]=t,isNaN(e)||isNaN(t)?[NaN,NaN]:u.dataToPoint(n)}function I(t,e,n){var i=e.slice(),r=e.slice();i[0]=c8(i[0]+c/2,1,!1),r[0]=c8(r[0]-c/2,1,!0),n?t.push(i,r):t.push(r,i)}function T(t){return t[0]=c8(t[0],1),t}}}}};function MW(t,e,n,i,r,o){var a;return n>i?-1:n0?t.get(r,e-1)<=i?1:-1:1}function MH(t,e){var n=e.rippleEffectColor||e.color;t.eachChild(function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?n:null,fill:"fill"===e.brushType?n:null}})})}var MU=function(t){function e(e,n){var i=t.call(this)||this,r=new yn(e,n),o=new i9;return i.add(r),i.add(o),i.updateData(e,n),i}return U(e,t),e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var e=t.symbolType,n=t.color,i=t.rippleNumber,r=this.childAt(1),o=0;o0&&(o=this._getLineLength(i)/l*1e3),o!==this._period||a!==this._loop||s!==this._roundTrip){i.stopAnimation();var h=void 0;h=tT(u)?u(n):u,i.__t>0&&(h=-o*i.__t),this._animateSymbol(i,o,h,a,s)}this._period=o,this._loop=a,this._roundTrip=s}},e.prototype._animateSymbol=function(t,e,n,i,r){if(e>0){t.__t=0;var o=this,a=t.animate("",i).when(r?2*e:e,{__t:r?2:1}).delay(n).during(function(){o._updateSymbolPosition(t)});i||a.done(function(){o.remove(t)}),a.start()}},e.prototype._getLineLength=function(t){return et(t.__p1,t.__cp1)+et(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},e.prototype.updateData=function(t,e,n){this.childAt(0).updateData(t,e,n),this._updateEffectSymbol(t,e)},e.prototype._updateSymbolPosition=function(t){var e=t.__p1,n=t.__p2,i=t.__cp1,r=t.__t<1?t.__t:2-t.__t,o=[t.x,t.y],a=o.slice();o[0]=n_(e[0],i[0],n[0],r),o[1]=n_(e[1],i[1],n[1],r);var s=t.__t<1?nb(e[0],i[0],n[0],r):nb(n[0],i[0],e[0],1-r),l=t.__t<1?nb(e[1],i[1],n[1],r):nb(n[1],i[1],e[1],1-r);t.rotation=-Math.atan2(l,s)-Math.PI/2,("line"===this._symbolType||"rect"===this._symbolType||"roundRect"===this._symbolType)&&(void 0!==t.__lastT&&t.__lastT=0&&!(r[e]<=n);e--);e=Math.min(e,o-2)}else{for(e=a;en);e++);e=Math.min(e-1,o-2)}var s=(n-r[e])/(r[e+1]-r[e]),l=i[e],u=i[e+1];t.x=l[0]*(1-s)+s*u[0],t.y=l[1]*(1-s)+s*u[1];var h=t.__t<1?u[0]-l[0]:l[0]-u[0],c=t.__t<1?u[1]-l[1]:l[1]-u[1];t.rotation=-Math.atan2(c,h)-Math.PI/2,this._lastFrame=e,this._lastFramePercent=n,t.ignore=!1}},e}(MZ),MK=function(){this.polyline=!1,this.curveness=0,this.segs=[]},M$=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return U(e,t),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 MK},e.prototype.buildPath=function(t,e){var n,i=e.segs,r=e.curveness;if(e.polyline)for(n=this._off;n0){t.moveTo(i[n++],i[n++]);for(var a=1;a0){var c=(s+u)/2-(l-h)*r,p=(l+h)/2-(u-s)*r;t.quadraticCurveTo(c,p,u,h)}else t.lineTo(u,h)}this.incremental&&(this._off=n,this.notClear=!0)},e.prototype.findDataIndex=function(t,e){var n=this.shape,i=n.segs,r=n.curveness,o=this.style.lineWidth;if(n.polyline)for(var a=0,s=0;s0)for(var u=i[s++],h=i[s++],c=1;c0){var f=(u+p)/2-(h-d)*r,g=(h+d)/2-(p-u)*r;if(oX(u,h,f,g,p,d,o,t,e))return a}else if(oY(u,h,p,d,o,t,e))return a;a++}return -1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();return(t=n[0],e=n[1],i.contain(t,e))?(this.hoverDataIdx=this.findDataIndex(t,e))>=0:(this.hoverDataIdx=-1,!1)},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape.segs,n=1/0,i=1/0,r=-1/0,o=-1/0,a=0;a0&&(o.dataIndex=n+t.__startIndex)})},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),MQ={seriesType:"lines",plan:hz(),reset:function(t){var e=t.coordinateSystem;if(e){var n=t.get("polyline"),i=t.pipelineContext.large;return{progress:function(r,o){var a=[];if(i){var s=void 0,l=r.end-r.start;if(n){for(var u=0,h=r.start;h0&&(l||s.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),r.updateData(i);var u=t.get("clip",!0)&&yS(t.coordinateSystem,!1,t);u?this.group.setClipPath(u):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData();this._updateLineDraw(i,t).incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._lineDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,e,n){var i=t.getData(),r=t.pipelineContext;if(!this._finished||r.large||r.progressiveRender)return{update:!0};var o=MQ.reset(t,e,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},e.prototype._updateLineDraw=function(t,e){var n=this._lineDraw,i=this._showEffect(e),r=!!e.get("polyline"),o=e.pipelineContext.large;return n&&i===this._hasEffet&&r===this._isPolyline&&o===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=o?new MJ:new wv(r?i?Mq:Mj:i?MZ:wy),this._hasEffet=i,this._isPolyline=r,this._isLargeDraw=o),this.group.add(n.group),n},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var e=t.getZr();"svg"!==e.painter.getType()&&null!=this._lastZlevel&&e.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,e){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},e.prototype.dispose=function(t,e){this.remove(t,e)},e.type="lines",e}(pp),M1="undefined"==typeof Uint32Array?Array:Uint32Array,M2="undefined"==typeof Float64Array?Array:Float64Array;function M5(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=tx(e,function(t){var e={coords:[t[0].coord,t[1].coord]};return t[0].name&&(e.fromName=t[0].name),t[1].name&&(e.toName=t[1].name),tp([e,t[0],t[1]])}))}var M3=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return U(e,t),e.prototype.init=function(e){e.data=e.data||[],M5(e);var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count)),t.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(e){if(M5(e),e.data){var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count))}t.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var e=this._processFlatCoordsArray(t.data);e.flatCoords&&(this._flatCoords?(this._flatCoords=tZ(this._flatCoords,e.flatCoords),this._flatCoordsOffset=tZ(this._flatCoordsOffset,e.flatCoordsOffset)):(this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset),t.data=new Float32Array(e.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var e=this.getData().getItemModel(t);return e.option instanceof Array?e.option:e.getShallow("coords")},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,e){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*t],i=this._flatCoordsOffset[2*t+1],r=0;r ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),e=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&e>0?e+"":""},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}(hA);function M4(t){return t instanceof Array||(t=[t,t]),t}let M6={seriesType:"lines",reset:function(t){var e=M4(t.get("symbol")),n=M4(t.get("symbolSize")),i=t.getData();return i.setVisual("fromSymbol",e&&e[0]),i.setVisual("toSymbol",e&&e[1]),i.setVisual("fromSymbolSize",n&&n[0]),i.setVisual("toSymbolSize",n&&n[1]),{dataEach:i.hasItemOption?function(t,e){var n=t.getItemModel(e),i=M4(n.getShallow("symbol",!0)),r=M4(n.getShallow("symbolSize",!0));i[0]&&t.setItemVisual(e,"fromSymbol",i[0]),i[1]&&t.setItemVisual(e,"toSymbol",i[1]),r[0]&&t.setItemVisual(e,"fromSymbolSize",r[0]),r[1]&&t.setItemVisual(e,"toSymbolSize",r[1])}:null}}};var M8=function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=K.createCanvas();this.canvas=t}return t.prototype.update=function(t,e,n,i,r,o){var a=this._getBrush(),s=this._getGradient(r,"inRange"),l=this._getGradient(r,"outOfRange"),u=this.pointSize+this.blurSize,h=this.canvas,c=h.getContext("2d"),p=t.length;h.width=e,h.height=n;for(var d=0;d0){var I=o(v)?s:l;v>0&&(v=v*S+w),x[_++]=I[M],x[_++]=I[M+1],x[_++]=I[M+2],x[_++]=I[M+3]*v*256}else _+=4}return c.putImageData(m,0,0),h},t.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=K.createCanvas()),e=this.pointSize+this.blurSize,n=2*e;t.width=n,t.height=n;var i=t.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-e,e,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),t},t.prototype._getGradient=function(t,e){for(var n=this._gradientPixels,i=n[e]||(n[e]=new Uint8ClampedArray(1024)),r=[0,0,0,0],o=0,a=0;a<256;a++)t[e](a/255,!0,r),i[o++]=r[0],i[o++]=r[1],i[o++]=r[2],i[o++]=r[3];return i},t}();function M7(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}var M9=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return U(e,t),e.prototype.render=function(t,e,n){e.eachComponent("visualMap",function(e){e.eachTargetSeries(function(n){n===t&&(i=e)})}),this._progressiveEls=null,this.group.removeAll();var i,r=t.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):M7(r)&&this._renderOnGeo(r,t,i,n)},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll()},e.prototype.incrementalRender=function(t,e,n,i){var r=e.coordinateSystem;r&&(M7(r)?this.render(e,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(e,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){pu(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,e,n,i,r){var o,a,s,l,u=t.coordinateSystem,h=yM(u,"cartesian2d");if(h){var c=u.getAxis("x"),p=u.getAxis("y");o=c.getBandWidth()+.5,a=p.getBandWidth()+.5,s=c.scale.getExtent(),l=p.scale.getExtent()}for(var d=this.group,f=t.getData(),g=t.getModel(["emphasis","itemStyle"]).getItemStyle(),y=t.getModel(["blur","itemStyle"]).getItemStyle(),v=t.getModel(["select","itemStyle"]).getItemStyle(),m=t.get(["itemStyle","borderRadius"]),x=sb(t),_=t.getModel("emphasis"),b=_.get("focus"),w=_.get("blurScope"),S=_.get("disabled"),M=h?[f.mapDimension("x"),f.mapDimension("y"),f.mapDimension("value")]:[f.mapDimension("time"),f.mapDimension("value")],I=n;Is[1]||Dl[1])continue;var L=u.dataToPoint([A,D]);T=new au({shape:{x:L[0]-o/2,y:L[1]-a/2,width:o,height:a},style:C})}else{if(isNaN(f.get(M[1],I)))continue;T=new au({z2:1,shape:u.dataToRect([f.get(M[0],I)]).contentShape,style:C})}if(f.hasItemOption){var k=f.getItemModel(I),P=k.getModel("emphasis");g=P.getModel("itemStyle").getItemStyle(),y=k.getModel(["blur","itemStyle"]).getItemStyle(),v=k.getModel(["select","itemStyle"]).getItemStyle(),m=k.get(["itemStyle","borderRadius"]),b=P.get("focus"),w=P.get("blurScope"),S=P.get("disabled"),x=sb(k)}T.shape.r=m;var O=t.getRawValue(I),R="-";O&&null!=O[2]&&(R=O[2]+""),s_(T,x,{labelFetcher:t,labelDataIndex:I,defaultOpacity:C.opacity,defaultText:R}),T.ensureState("emphasis").style=g,T.ensureState("blur").style=y,T.ensureState("select").style=v,a7(T,b,w,S),T.incremental=r,r&&(T.states.emphasis.hoverLayer=!0),d.add(T),f.setItemGraphicEl(I,T),this._progressiveEls&&this._progressiveEls.push(T)}},e.prototype._renderOnGeo=function(t,e,n,i){var r,o,a,s,l,u,h,c=n.targetVisuals.inRange,p=n.targetVisuals.outOfRange,d=e.getData(),f=this._hmLayer||this._hmLayer||new M8;f.blurSize=e.get("blurSize"),f.pointSize=e.get("pointSize"),f.minOpacity=e.get("minOpacity"),f.maxOpacity=e.get("maxOpacity");var g=t.getViewRect().clone(),y=t.getRoamTransform();g.applyTransform(y);var v=Math.max(g.x,0),m=Math.max(g.y,0),x=Math.min(g.width+g.x,i.getWidth()),_=Math.min(g.height+g.y,i.getHeight()),b=x-v,w=_-m,S=[d.mapDimension("lng"),d.mapDimension("lat"),d.mapDimension("value")],M=d.mapArray(S,function(e,n,i){var r=t.dataToPoint([e,n]);return r[0]-=v,r[1]-=m,r.push(i),r}),I=n.getExtent(),T="visualMap.continuous"===n.type?(r=n.option.range,o=I[1]-I[0],r=[(r[0]-I[0])/o,(r[1]-I[0])/o],function(t){return t>=r[0]&&t<=r[1]}):(a=n.getPieceList(),s=n.option.selected,l=I[1]-I[0],u=(a=tx(a,function(t){return{interval:[(t.interval[0]-I[0])/l,(t.interval[1]-I[0])/l]}})).length,h=0,function(t){var e;for(e=h;e=0;e--){var n=a[e].interval;if(n[0]<=t&&t<=n[1]){h=e;break}}return e>=0&&e=0?1:-1:o>0?1:-1})(n,C,T,i,O),r=t,o=e,a=T,s=C,l=0,u=O.boundingLength,h=O.pxSign,c=k,p=i,d=O,g=p.valueDim,v=Math.abs(a[(y=p.categoryDim).wh]),(f=tI(m=r.getItemVisual(o,"symbolSize"))?m.slice():null==m?["100%","100%"]:[m,m])[y.index]=ro(f[y.index],v),f[g.index]=ro(f[g.index],s?v:Math.abs(u)),d.symbolSize=f,x=d.symbolScale=[f[0]/c,f[1]/c],x[g.index]*=(p.isHorizontal?-1:1)*h,_=n,b=O.symbolScale,w=L,S=i,M=O,(I=_.get(Ie)||0)&&(Ii.attr({scaleX:b[0],scaleY:b[1],rotation:w}),Ii.updateTransform(),I/=Ii.getLineScale(),I*=b[S.valueDim.index]),M.valueLineWidth=I||0;var R=O.symbolSize,N=du(n.get("symbolOffset"),R);return function(t,e,n,i,r,o,a,s,l,u,h,c){var p=h.categoryDim,d=h.valueDim,f=c.pxSign,g=Math.max(e[d.index]+s,0),y=g;if(i){var v=Math.abs(l),m=tN(t.get("symbolMargin"),"15%")+"",x=!1;m.lastIndexOf("!")===m.length-1&&(x=!0,m=m.slice(0,m.length-1));var _=ro(m,e[d.index]),b=Math.max(g+2*_,0),w=x?0:2*_,S=rx(i),M=S?i:Ib((v+w)/b);_=(v-M*g)/2/(x?M:Math.max(M-1,1)),b=g+2*_,w=x?0:2*_,S||"fixed"===i||(M=u?Ib((Math.abs(u)+w)/b):0),y=M*b-w,c.repeatTimes=M,c.symbolMargin=_}var I=y/2*f,T=c.pathPosition=[];T[p.index]=n[p.wh]/2,T[d.index]="start"===a?I:"end"===a?l-I:l/2,o&&(T[0]+=o[0],T[1]+=o[1]);var C=c.bundlePosition=[];C[p.index]=n[p.xy],C[d.index]=n[d.xy];var A=c.barRectShape=td({},n);A[d.wh]=f*Math.max(Math.abs(n[d.wh]),Math.abs(T[d.index]+I)),A[p.wh]=n[p.wh];var D=c.clipShape={};D[p.xy]=-n[p.xy],D[p.wh]=h.ecSize[p.wh],D[d.xy]=0,D[d.wh]=n[d.wh]}(n,R,T,C,0,N,D,O.valueLineWidth,O.boundingLength,O.repeatCutLength,i,O),O}function Ia(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function Is(t){var e=t.symbolPatternSize,n=ds(t.symbolType,-e/2,-e/2,e,e);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function Il(t,e,n,i){var r=t.__pictorialBundle,o=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,l=e.valueDim,u=n.repeatTimes||0,h=0,c=o[e.valueDim.index]+a+2*n.symbolMargin;for(Im(t,function(t){t.__pictorialAnimationIndex=h,t.__pictorialRepeatTimes=u,h0:i<0)&&(r=u-1-t),e[l.index]=c*(r-u/2+.5)+s[l.index],{x:e[0],y:e[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function Iu(t,e,n,i){var r=t.__pictorialBundle,o=t.__pictorialMainPath;o?Ix(o,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,i):(o=t.__pictorialMainPath=Is(n),r.add(o),Ix(o,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,i))}function Ih(t,e,n){var i=td({},e.barRectShape),r=t.__pictorialBarRect;r?Ix(r,null,{shape:i},e,n):((r=t.__pictorialBarRect=new au({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}})).disableMorphing=!0,t.add(r))}function Ic(t,e,n,i){if(n.symbolClip){var r=t.__pictorialClipPath,o=td({},n.clipShape),a=e.valueDim,s=n.animationModel,l=n.dataIndex;if(r)sh(r,{shape:o},s,l);else{o[a.wh]=0,r=new au({shape:o}),t.__pictorialBundle.setClipPath(r),t.__pictorialClipPath=r;var u={};u[a.wh]=n.clipShape[a.wh],G[i?"updateProps":"initProps"](r,{shape:u},s,l)}}}function Ip(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=Id,n.isAnimationEnabled=If,n}function Id(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function If(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function Ig(t,e,n,i){var r=new i9,o=new i9;return r.add(o),r.__pictorialBundle=o,o.x=n.bundlePosition[0],o.y=n.bundlePosition[1],n.symbolRepeat?Il(r,e,n):Iu(r,e,n),Ih(r,n,i),Ic(r,e,n,i),r.__pictorialShapeStr=Iv(t,n),r.__pictorialSymbolMeta=n,r}function Iy(t,e,n,i){var r=i.__pictorialBarRect;r&&r.removeTextContent();var o=[];Im(i,function(t){o.push(t)}),i.__pictorialMainPath&&o.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),tm(o,function(t){sd(t,{scaleX:0,scaleY:0},n,e,function(){i.parent&&i.parent.remove(i)})}),t.setItemGraphicEl(e,null)}function Iv(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function Im(t,e,n){tm(t.__pictorialBundle.children(),function(i){i!==t.__pictorialBarRect&&e.call(n,i)})}function Ix(t,e,n,i,r,o){e&&t.attr(e),i.symbolClip&&!r?n&&t.attr(n):n&&G[r?"updateProps":"initProps"](t,n,i.animationModel,i.dataIndex,o)}function I_(t,e,n){var i=n.dataIndex,r=n.itemModel,o=r.getModel("emphasis"),a=o.getModel("itemStyle").getItemStyle(),s=r.getModel(["blur","itemStyle"]).getItemStyle(),l=r.getModel(["select","itemStyle"]).getItemStyle(),u=r.getShallow("cursor"),h=o.get("focus"),c=o.get("blurScope"),p=o.get("scale");Im(t,function(t){if(t instanceof ae){var e=t.style;t.useStyle(td({image:e.image,x:e.x,y:e.y,width:e.width,height:e.height},n.style))}else t.useStyle(n.style);var i=t.ensureState("emphasis");i.style=a,p&&(i.scaleX=1.1*t.scaleX,i.scaleY=1.1*t.scaleY),t.ensureState("blur").style=s,t.ensureState("select").style=l,u&&(t.cursor=u),t.z2=n.z2});var d=e.valueDim.posDesc[+(n.boundingLength>0)],f=t.__pictorialBarRect;f.ignoreClip=!0,s_(f,sb(r),{labelFetcher:e.seriesModel,labelDataIndex:i,defaultText:yt(e.seriesModel.getData(),i),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:d}),a7(t,h,c,o.get("disabled"))}function Ib(t){var e=Math.round(t);return 1e-4>Math.abs(t-e)?e:Math.ceil(t)}var Iw=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return U(e,t),e.prototype.getInitialData=function(e){return e.stack=null,t.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=sY(yj.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%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(yj),IS=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._layers=[],n}return U(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this,o=this.group,a=t.getLayerSeries(),s=i.getLayout("layoutInfo"),l=s.rect,u=s.boundaryGap;function h(t){return t.name}o.x=0,o.y=l.y+u[0];var c=new gF(this._layersSeries||[],a,h,h),p=[];function d(e,n,s){var l,u,h=r._layers;if("remove"===e)return void o.remove(h[n]);for(var c=[],d=[],f=a[n].indices,g=0;go&&(o=s),i.push(s)}for(var u=0;uo&&(o=c)}return{y0:r,max:o}}(l),h=u.y0,c=n/u.max,p=o.length,d=o[0].indices.length,f=0;fI&&!rc(C-I)&&C0?(a.virtualPiece?a.virtualPiece.updateData(!1,r,t,e,n):(a.virtualPiece=new IC(r,t,e,n),h.add(a.virtualPiece)),o.piece.off("click"),a.virtualPiece.on("click",function(t){a._rootToNode(o.parentNode)})):a.virtualPiece&&(h.remove(a.virtualPiece),a.virtualPiece=null),this._initEvents(),this._oldChildren=p},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(e){var n=!1;t.seriesModel.getViewRoot().eachNode(function(i){if(!n&&i.piece&&i.piece===e.target){var r=i.getModel().get("nodeClick");if("rootToNode"===r)t._rootToNode(i);else if("link"===r){var o=i.getModel(),a=o.get("link");a&&ly(a,o.get("target",!0)||"_blank")}n=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:IA,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,e){var n=e.getData().getItemLayout(0);if(n){var i=t[0]-n.cx,r=t[1]-n.cy,o=Math.sqrt(i*i+r*r);return o<=n.r&&o>=n.r0}},e.type="sunburst",e}(pp),Ik=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreStyleOnData=!0,n}return U(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};!function t(e){var n=0;tm(e.children,function(e){t(e);var i=e.value;tI(i)&&(i=i[0]),n+=i});var i=e.value;tI(i)&&(i=i[0]),(null==i||isNaN(i))&&(i=n),i<0&&(i=0),tI(e.value)?e.value[0]=i:e.value=i}(n);var i=this._levelModels=tx(t.levels||[],function(t){return new sW(t,this,e)},this),r=bt.createTree(n,this,function(t){t.wrapMethod("getItemModel",function(t,e){var n=i[r.getNodeByDataIndex(e).depth];return n&&(t.parentModel=n),t})});return r.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments);return n.treePathInfo=br(this.getData().tree.getNodeByDataIndex(e),this),n},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 e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){bh(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}(hA),IP=Math.PI/180;function IO(t,e,n){e.eachSeriesByType(t,function(t){var e=t.get("center"),i=t.get("radius");tI(i)||(i=[0,i]),tI(e)||(e=[e,e]);var r=n.getWidth(),o=n.getHeight(),a=Math.min(r,o),s=ro(e[0],r),l=ro(e[1],o),u=ro(i[0],a/2),h=ro(i[1],a/2),c=-t.get("startAngle")*IP,p=t.get("minAngle")*IP,d=t.getData().tree.root,f=t.getViewRoot(),g=f.depth,y=t.get("sort");null!=y&&function t(e,n){var i=e.children||[];e.children=function(t,e){if(tT(e)){var n=tx(t,function(t,e){var n=t.getValue();return{params:{depth:t.depth,height:t.height,dataIndex:t.dataIndex,getValue:function(){return n}},index:e}});return n.sort(function(t,n){return e(t.params,n.params)}),tx(n,function(e){return t[e.index]})}var i="asc"===e;return t.sort(function(t,e){var n=(t.getValue()-e.getValue())*(i?1:-1);return 0===n?(t.dataIndex-e.dataIndex)*(i?-1:1):n})}(i,n),i.length&&tm(e.children,function(e){t(e,n)})}(f,y);var v=0;tm(f.children,function(t){!isNaN(t.getValue())&&v++});var m=f.getValue(),x=Math.PI/(m||v)*2,_=f.depth>0,b=(h-u)/(f.height-(_?-1:1)||1),w=t.get("clockwise"),S=t.get("stillShowZeroSum"),M=w?1:-1,I=function(e,n){if(e){var i=n;if(e!==d){var r=e.getValue(),o=0===m&&S?x:r*x;o1;)r=r.parentNode;var o=n.getColorFromPalette(r.name||r.dataIndex+"",e);return t.depth>1&&tC(o)&&(o=nU(o,(t.depth-1)/(i-1)*.5)),o}(r,t,i.root.height)),td(n.ensureUniqueItemVisual(r.dataIndex,"style"),o)})})}var IN={color:"fill",borderColor:"stroke"},IE={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Iz=rN(),IB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return U(e,t),e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,e){return g7(null,this)},e.prototype.getDataParams=function(e,n,i){var r=t.prototype.getDataParams.call(this,e,n);return i&&(r.info=Iz(i).info),r},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(hA);function IV(t,e){return e=e||[0,0],tx(["x","y"],function(n,i){var r=this.getAxis(n),o=e[i],a=t[i]/2;return"category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a))},this)}function IF(t,e){return e=e||[0,0],tx([0,1],function(n){var i=e[n],r=t[n]/2,o=[],a=[];return o[n]=i-r,a[n]=i+r,o[1-n]=a[1-n]=e[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])},this)}function IG(t,e){var n=this.getAxis(),i=e instanceof Array?e[0]:e,r=(t instanceof Array?t[0]:t)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-r)-n.dataToCoord(i+r))}function IW(t,e){return e=e||[0,0],tx(["Radius","Angle"],function(n,i){var r=this["get"+n+"Axis"](),o=e[i],a=t[i]/2,s="category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a));return"Angle"===n&&(s=s*Math.PI/180),s},this)}function IH(t,e,n,i){return t&&(t.legacy||!1!==t.legacy&&!n&&!i&&"tspan"!==e&&("text"===e||tK(t,"text")))}function IU(t,e,n){var i,r,o;if("text"===e)o=t;else{o={},tK(t,"text")&&(o.text=t.text),tK(t,"rich")&&(o.rich=t.rich),tK(t,"textFill")&&(o.fill=t.textFill),tK(t,"textStroke")&&(o.stroke=t.textStroke),tK(t,"fontFamily")&&(o.fontFamily=t.fontFamily),tK(t,"fontSize")&&(o.fontSize=t.fontSize),tK(t,"fontStyle")&&(o.fontStyle=t.fontStyle),tK(t,"fontWeight")&&(o.fontWeight=t.fontWeight),r={type:"text",style:o,silent:!0},i={};var a=tK(t,"textPosition");n?i.position=a?t.textPosition:"inside":a&&(i.position=t.textPosition),tK(t,"textPosition")&&(i.position=t.textPosition),tK(t,"textOffset")&&(i.offset=t.textOffset),tK(t,"textRotation")&&(i.rotation=t.textRotation),tK(t,"textDistance")&&(i.distance=t.textDistance)}return IY(o,t),tm(o.rich,function(t){IY(t,t)}),{textConfig:i,textContent:r}}function IY(t,e){e&&(e.font=e.textFont||e.font,tK(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),tK(e,"textAlign")&&(t.align=e.textAlign),tK(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),tK(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),tK(e,"textWidth")&&(t.width=e.textWidth),tK(e,"textHeight")&&(t.height=e.textHeight),tK(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),tK(e,"textPadding")&&(t.padding=e.textPadding),tK(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),tK(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),tK(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),tK(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),tK(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),tK(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),tK(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function IX(t,e,n){t.textPosition=t.textPosition||n.position||"inside",null!=n.offset&&(t.textOffset=n.offset),null!=n.rotation&&(t.textRotation=n.rotation),null!=n.distance&&(t.textDistance=n.distance);var i=t.textPosition.indexOf("inside")>=0,r=t.fill||"#000";IZ(t,e);var o=null==t.textFill;return i?o&&(t.textFill=n.insideFill||"#fff",!t.textStroke&&n.insideStroke&&(t.textStroke=n.insideStroke),t.textStroke||(t.textStroke=r),null==t.textStrokeWidth&&(t.textStrokeWidth=2)):(o&&(t.textFill=t.fill||n.outsideFill||"#000"),!t.textStroke&&n.outsideStroke&&(t.textStroke=n.outsideStroke)),t.text=e.text,t.rich=e.rich,tm(e.rich,function(t){IZ(t,t)}),t}function IZ(t,e){e&&(tK(e,"fill")&&(t.textFill=e.fill),tK(e,"stroke")&&(t.textStroke=e.fill),tK(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),tK(e,"font")&&(t.font=e.font),tK(e,"fontStyle")&&(t.fontStyle=e.fontStyle),tK(e,"fontWeight")&&(t.fontWeight=e.fontWeight),tK(e,"fontSize")&&(t.fontSize=e.fontSize),tK(e,"fontFamily")&&(t.fontFamily=e.fontFamily),tK(e,"align")&&(t.textAlign=e.align),tK(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),tK(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),tK(e,"width")&&(t.textWidth=e.width),tK(e,"height")&&(t.textHeight=e.height),tK(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),tK(e,"padding")&&(t.textPadding=e.padding),tK(e,"borderColor")&&(t.textBorderColor=e.borderColor),tK(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),tK(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),tK(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),tK(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),tK(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),tK(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),tK(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),tK(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),tK(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),tK(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}var Ij={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},Iq=tw(Ij);t_(iH,function(t,e){return t[e]=1,t},{}),iH.join(", ");var IK=["","style","shape","extra"],I$=rN();function IJ(t,e,n,i,r){var o=t+"Animation",a=sl(t,i,r)||{},s=I$(e).userDuring;return a.duration>0&&(a.during=s?tS(I4,{el:e,userDuring:s}):null,a.setToFinal=!0,a.scope=t),td(a,n[o]),a}function IQ(t,e,n,i){var r,o,a=(i=i||{}).dataIndex,s=i.isInit,l=i.clearStyle,u=n.isAnimationEnabled(),h=I$(t),c=e.style;h.userDuring=e.during;var p={},d={};if(function(t,e,n){for(var i=0;i=0)){var p=t.getAnimationStyleProps(),d=p?p.style:null;if(d){r||(r=i.style={});for(var f=tw(n),u=0;u0&&t.animateFrom(f,g)}else{var y=t,v=e,m=a||0,x=n,_=p;if(_){var b=IJ("update",y,v,x,m);b.duration>0&&y.animateFrom(_,b)}}I0(t,e),c?t.dirty():t.markRedraw()}function I0(t,e){for(var n=I$(t).leaveToProps,i=0;i=0){r||(r=i[t]={});for(var d=tw(a),h=0;htg(I9,t)})),u.length){o||((o=t.animate(n,e.loop,!0)).scope="keyframe");for(var h=0;hi[1]&&i.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:i[1],r0:i[0]},api:{coord:function(i){var r=e.dataToRadius(i[0]),o=n.dataToAngle(i[1]),a=t.coordToPoint([r,o]);return a.push(r,o*Math.PI/180),a},size:tS(IW,t)}}},calendar:function(t){var e=t.getRect(),n=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(e,n){return t.dataToPoint(e,n)}}}}};function Tp(t){return t instanceof o4}function Td(t){return t instanceof oc}var Tf=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return U(e,t),e.prototype.render=function(t,e,n,i){this._progressiveEls=null;var r=this._data,o=t.getData(),a=this.group,s=Tm(t,o,e,n);r||a.removeAll(),o.diff(r).add(function(e){Tx(n,null,e,s(e,i),t,a,o)}).remove(function(e){var n=r.getItemGraphicEl(e);n&&I1(n,Iz(n).option,t)}).update(function(e,l){Tx(n,r.getItemGraphicEl(l),e,s(e,i),t,a,o)}).execute();var l=t.get("clip",!0)?yS(t.coordinateSystem,!1,t):null;l?a.setClipPath(l):a.removeClipPath(),this._data=o},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,e,n,i,r){var o=e.getData(),a=Tm(e,o,n,i),s=this._progressiveEls=[];function l(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}for(var u=t.start;u=0?e.getStore().get(r,n):void 0}var o=e.get(i.name,n),s=i&&i.ordinalMeta;return s?s.categories[o]:o},styleEmphasis:function(n,i){null==i&&(i=a);var r=_(i,Tn).getItemStyle(),o=b(i,Tn),s=sw(o,null,null,!0,!0);s.text=o.getShallow("show")?tz(t.getFormattedLabel(i,Tn),t.getFormattedLabel(i,Ti),yt(e,i)):null;var l=sS(o,null,!0);return S(n,r),r=IX(r,s,l),n&&w(r,n),r.legacy=!0,r},visual:function(t,n){if(null==n&&(n=a),tK(IN,t)){var i=e.getItemVisual(n,"style");return i?i[IN[t]]:null}if(tK(IE,t))return e.getItemVisual(n,t)},barLayout:function(t){if("cartesian2d"===u.type)return function(t){var e=[],n=t.axis,i="axis0";if("category"===n.type){for(var r=n.getBandWidth(),o=0;o=h;d--){var f,g,y,v,m=e.childAt(d);g=e,y=m,v=r,y&&I1(y,Iz(g).option,v)}}}(t,h,n,i,r),s>=0?o.replaceAt(h,s):o.add(h),h}function Tb(t,e,n){var i,r=Iz(t),o=e.type,a=e.shape,s=e.style;return n.isUniversalTransitionEnabled()||null!=o&&o!==r.customGraphicType||"path"===o&&(i=a)&&(tK(i,"pathData")||tK(i,"d"))&&TA(a)!==r.customPathData||"image"===o&&tK(s,"image")&&s.image!==r.customImagePath}function Tw(t,e,n){var i=e?TS(t,e):t,r=e?TM(t,i,Tn):t.style,o=t.type,a=i?i.textConfig:null,s=t.textContent,l=s?e?TS(s,e):s:null;if(r&&(n.isLegacy||IH(r,o,!!a,!!l))){n.isLegacy=!0;var u=IU(r,o,!e);!a&&u.textConfig&&(a=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var h=l;h.type||(h.type="text")}var c=e?n[e]:n.normal;c.cfg=a,c.conOpt=l}function TS(t,e){return e?t?t[e]:null:t}function TM(t,e,n){var i=e&&e.style;return null==i&&n===Tn&&t&&(i=t.styleEmphasis),i}function TI(t,e){var n=t&&t.name;return null!=n?n:"e\0\0"+e}function TT(t,e){var n=this.context,i=null!=t?n.newChildren[t]:null,r=null!=e?n.oldChildren[e]:null;T_(n.api,r,n.dataIndex,i,n.seriesModel,n.group)}function TC(t){var e=this.context,n=e.oldChildren[t];n&&I1(n,Iz(n).option,e.seriesModel)}function TA(t){return t&&(t.pathData||t.d)}var TD=rN(),TL=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,n,i){var r=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,i||this._lastValue!==r||this._lastStatus!==o){this._lastValue=r,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o){a&&a.hide(),s&&s.hide();return}a&&a.show(),s&&s.show();var l={};this.makeElOption(l,r,t,e,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var h=this._moveAnimation=this.determineAnimation(t,e);if(a){var c=tM(Tk,e,h);this.updatePointerEl(a,l,c),this.updateLabelEl(a,l,c,e)}else a=this._group=new i9,this.createPointerEl(a,l,t,e),this.createLabelEl(a,l,t,e),n.getZr().add(a);TR(a,e,!0),this._renderHandle(r)}},t.prototype.remove=function(t){this.clear(t)},t.prototype.dispose=function(t){this.clear(t)},t.prototype.determineAnimation=function(t,e){var n=e.get("animation"),i=t.axis,r="category"===i.type,o=e.get("snap");if(!o&&!r)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(r&&i.getBandWidth()>a)return!0;if(o){var s=mq(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},t.prototype.makeElOption=function(t,e,n,i,r){},t.prototype.createPointerEl=function(t,e,n,i){var r=e.pointer;if(r){var o=TD(t).pointerEl=new G[r.type](th(e.pointer));t.add(o)}},t.prototype.createLabelEl=function(t,e,n,i){if(e.label){var r=TD(t).labelEl=new aI(th(e.label));t.add(r),TP(r,i)}},t.prototype.updatePointerEl=function(t,e,n){var i=TD(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,i){var r=TD(t).labelEl;r&&(r.setStyle(e.label.style),n(r,{x:e.label.x,y:e.label.y}),TP(r,i))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,i=this._api.getZr(),r=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a){r&&i.remove(r),this._handle=null;return}this._handle||(e=!0,r=this._handle=pr(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){eC(t.event)},onmousedown:tS(this._onHandleDragMove,this,0,0),drift:tS(this._onHandleDragMove,this),ondragend:tS(this._onHandleDragEnd,this)}),i.add(r)),TR(r,n,!1),r.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");tI(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,pw(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){Tk(this._axisPointerModel,!e&&this._moveAnimation,this._handle,TO(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(TO(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(TO(i)),TD(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){if(this._handle){var t=this._payloadInfo,e=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),pS(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}},t}();function Tk(t,e,n,i){!function t(e,n){if(!(tL(e)&&tL(n)))return e===n;var i=!0;return tm(n,function(n,r){i=i&&t(e[r],n)}),!!i}(TD(n).lastProp,i)&&(TD(n).lastProp=i,e?sh(n,i,t):(n.stopAnimation(),n.attr(i)))}function TP(t,e){t[e.get(["label","show"])?"show":"hide"]()}function TO(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function TR(t,e,n){var i=e.get("z"),r=e.get("zlevel");t&&t.traverse(function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=r&&(t.zlevel=r),t.silent=n)})}function TN(t){var e,n=t.get("type"),i=t.getModel(n+"Style");return"line"===n?(e=i.getLineStyle()).fill=null:"shadow"===n&&((e=i.getAreaStyle()).stroke=null),e}function TE(t,e,n,i,r){var o,a,s,l,u,h,c=Tz(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),p=n.getModel("label"),d=tV(p.get("padding")||0),f=p.getFont(),g=ij(c,f),y=r.position,v=g.width+d[1]+d[3],m=g.height+d[0]+d[2],x=r.align;"right"===x&&(y[0]-=v),"center"===x&&(y[0]-=v/2);var _=r.verticalAlign;"bottom"===_&&(y[1]-=m),"middle"===_&&(y[1]-=m/2),o=y,a=v,s=m,u=(l=i).getWidth(),h=l.getHeight(),o[0]=Math.min(o[0]+a,u)-a,o[1]=Math.min(o[1]+s,h)-s,o[0]=Math.max(o[0],0),o[1]=Math.max(o[1],0);var b=p.get("backgroundColor");b&&"auto"!==b||(b=e.get(["axisLine","lineStyle","color"])),t.label={x:y[0],y:y[1],style:sw(p,{text:c,font:f,fill:p.getTextColor(),padding:d,backgroundColor:b}),z2:10}}function Tz(t,e,n,i,r){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:r.precision}),a=r.formatter;if(a){var s={value:mp(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};tm(i,function(t){var e=n.getSeriesByIndex(t.seriesIndex),i=t.dataIndexInside,r=e&&e.getDataParams(i);r&&s.seriesData.push(r)}),tC(a)?o=a.replace("{value}",o):tT(a)&&(o=a(s))}return o}function TB(t,e,n){var i=eP();return ez(i,i,n.rotation),eE(i,i,n.position),c9([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function TV(t,e,n,i,r,o){var a=mW.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get(["label","margin"]),TE(e,i,r,o,{position:TB(i.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function TF(t,e,n){return{x1:t[n=n||0],y1:t[1-n],x2:e[n],y2:e[1-n]}}function TG(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}}function TW(t,e,n,i,r,o){return{cx:t,cy:e,r0:n,r:i,startAngle:r,endAngle:o,clockwise:!0}}var TH=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return U(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis,a=o.grid,s=i.get("type"),l=TU(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&"none"!==s){var h=TN(i),c=TY[s](o,u,l);c.style=h,t.graphicKey=c.type,t.pointer=c}TV(e,t,mP(a.model,n),n,i,r)},e.prototype.getHandleTransform=function(t,e,n){var i=mP(e.axis.grid.model,e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=TB(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,i){var r=n.axis,o=r.grid,a=r.getGlobalExtent(!0),s=TU(o,r).getOtherAxis(r).getGlobalExtent(),l=+("x"!==r.dim),u=[t.x,t.y];u[l]+=e[l],u[l]=Math.min(a[1],u[l]),u[l]=Math.max(a[0],u[l]);var h=(s[1]+s[0])/2,c=[h,h];return c[l]=u[l],{x:u[0],y:u[1],rotation:t.rotation,cursorPoint:c,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}},e}(TL);function TU(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var TY={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:TF([e,n[0]],[e,n[1]],TX(t))}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),r=n[1]-n[0];return{type:"Rect",shape:TG([e-i/2,n[0]],[i,r],TX(t))}}};function TX(t){return+("x"!==t.dim)}var TZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return U(e,t),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}(lC),Tj=rN();function Tq(t,e,n){if(!X.node){var i=e.getZr();Tj(i).records||(Tj(i).records={}),function(t,e){Tj(t).initialized||(Tj(t).initialized=!0,n("click",tM(T$,"click")),n("mousemove",tM(T$,"mousemove")),n("globalout",TK));function n(n,i){t.on(n,function(n){var r,o,a,s,l,u,h,c,p=(r=e,o={showTip:[],hideTip:[]},{dispatchAction:a=function(t){var e=o[t.type];e?e.push(t):(t.dispatchAction=a,r.dispatchAction(t))},pendings:o});tm(Tj(t).records,function(t){t&&i(t,n,p.dispatchAction)}),s=p.pendings,l=e,h=s.showTip.length,c=s.hideTip.length,h?u=s.showTip[h-1]:c&&(u=s.hideTip[c-1]),u&&(u.dispatchAction=null,l.dispatchAction(u))})}}(i,e),(Tj(i).records[t]||(Tj(i).records[t]={})).handler=n}}function TK(t,e,n){t.handler("leave",null,n)}function T$(t,e,n,i){e.handler(t,n,i)}function TJ(t,e){if(!X.node){var n=e.getZr();(Tj(n).records||{})[t]&&(Tj(n).records[t]=null)}}var TQ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return U(e,t),e.prototype.render=function(t,e,n){var i=e.getComponent("tooltip"),r=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";Tq("axisPointer",n,function(t,e,n){"none"!==r&&("leave"===t||r.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},e.prototype.remove=function(t,e){TJ("axisPointer",e)},e.prototype.dispose=function(t,e){TJ("axisPointer",e)},e.type="axisPointer",e}(hE);function T0(t,e){var n,i=[],r=t.seriesIndex;if(null==r||!(n=e.getSeriesByIndex(r)))return{point:[]};var o=n.getData(),a=rR(o,t);if(null==a||a<0||tI(a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),h=l.getOtherAxis(u).dim,c=u.dim,p=+("x"===h||"radius"===h),d=o.mapDimension(c),f=[];f[p]=o.get(d,a),f[1-p]=o.get(o.getCalculationInfo("stackResultDimension"),a),i=l.dataToPoint(f)||[]}else i=l.dataToPoint(o.getValues(tx(l.dimensions,function(t){return o.mapDimension(t)}),a))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),i=[g.x+g.width/2,g.y+g.height/2]}return{point:i,el:s}}var T1=rN();function T2(t,e,n){var i=t.currTrigger,r=[t.x,t.y],o=t.dispatchAction||tS(n.dispatchAction,n),a=e.getComponent("axisPointer").coordSysAxesInfo;if(a){T8(r)&&(r=T0({seriesIndex:t.seriesIndex,dataIndex:t.dataIndex},e).point);var s,l,u,h,c,p,d,f,g,y,v,m,x=T8(r),_=t.axesInfo,b=a.axesInfo,w="leave"===i||T8(r),S={},M={},I={list:[],map:{}},T={showPointer:tM(T3,M),showTooltip:tM(T4,I)};tm(a.coordSysMap,function(t,e){var n=x||t.containPoint(r);tm(a.coordSysAxesInfo[e],function(t,e){var i=t.axis,o=function(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}(_,t);if(!w&&n&&(!_||o)){var a=o&&o.value;null!=a||x||(a=i.pointToData(r)),null!=a&&T5(t,a,T,!1,S)}})});var C={};return tm(b,function(t,e){var n=t.linkGroup;n&&!M[e]&&tm(n.axesInfo,function(e,i){var r=M[i];if(e!==t&&r){var o=r.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,T6(e),T6(t)))),C[t.key]=o}})}),tm(C,function(t,e){T5(b[e],t,T,!0,S)}),s=M,l=b,u=S.axesInfo=[],tm(l,function(t,e){var n=t.axisPointerModel.option,i=s[e];i?(t.useHandle||(n.status="show"),n.value=i.value,n.seriesDataIndices=(i.payloadBatch||[]).slice()):t.useHandle||(n.status="hide"),"show"===n.status&&u.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:n.value})}),function(t,e,n,i){if(T8(e)||!t.list.length)return i({type:"hideTip"});var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}(I,r,t,o),h=b,c=0,d=(p=n).getZr(),f="axisPointerLastHighlights",g=T1(d)[f]||{},y=T1(d)[f]={},tm(h,function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&t.triggerEmphasis&&tm(n.seriesDataIndices,function(t){y[t.seriesIndex+" | "+t.dataIndex]=t})}),v=[],m=[],tm(g,function(t,e){y[e]||m.push(t)}),tm(y,function(t,e){g[e]||v.push(t)}),m.length&&p.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:m}),v.length&&p.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:v}),S}}function T5(t,e,n,i,r){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e)){if(!t.involveSeries)return void n.showPointer(t,e);var a,s,l,u,h,c,p,d,f=(a=e,u=(l=(s=t).axis).dim,h=a,c=[],p=Number.MAX_VALUE,d=-1,tm(s.seriesModels,function(t,e){var n,i,r=t.getData().mapDimensionsAll(u);if(t.getAxisTooltipData){var o=t.getAxisTooltipData(r,a,l);i=o.dataIndices,n=o.nestestValue}else{if(!(i=t.getData().indicesOfNearest(r[0],a,"category"===l.type?.5:null)).length)return;n=t.getData().get(r[0],i[0])}if(null!=n&&isFinite(n)){var s=a-n,f=Math.abs(s);f<=p&&((f=0&&d<0)&&(p=f,d=s,h=n,c.length=0),tm(i,function(e){c.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:c,snapToValue:h}),g=f.payloadBatch,y=f.snapToValue;g[0]&&null==r.seriesIndex&&td(r,g[0]),!i&&t.snap&&o.containData(y)&&null!=y&&(e=y),n.showPointer(t,e,g),n.showTooltip(t,f,y)}}function T3(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function T4(t,e,n,i){var r=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&r.length){var l=e.coordSys.model,u=m$(l),h=t.map[u];h||(h=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(h)),h.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function T6(t){var e=t.axis.model,n={},i=n.axisDim=t.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=e.componentIndex,n.axisName=n[i+"AxisName"]=e.name,n.axisId=n[i+"AxisId"]=e.id,n}function T8(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function T7(t){mQ.registerAxisPointerClass("CartesianAxisPointer",TH),t.registerComponentModel(TZ),t.registerComponentView(TQ),t.registerPreprocessor(function(t){if(t){t.axisPointer&&0!==t.axisPointer.length||(t.axisPointer={});var e=t.axisPointer.link;e&&!tI(e)&&(t.axisPointer.link=[e])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(t,e){var n,i,r,o,a,s,l,u,h;t.getComponent("axisPointer").coordSysAxesInfo=(i=n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}},r=t,o=e,a=r.getComponent("tooltip"),l=(s=r.getComponent("axisPointer")).get("link",!0)||[],u=[],tm(o.getCoordinateSystems(),function(t){if(t.axisPointerEnabled){var e=m$(t.model),n=i.coordSysAxesInfo[e]={};i.coordSysMap[e]=t;var o=t.model.getModel("tooltip",a);if(tm(t.getAxes(),tM(d,!1,null)),t.getTooltipAxes&&a&&o.get("show")){var h="axis"===o.get("trigger"),c="cross"===o.get(["axisPointer","type"]),p=t.getTooltipAxes(o.get(["axisPointer","axis"]));(h||c)&&tm(p.baseAxes,tM(d,!c||"cross",h)),c&&tm(p.otherAxes,tM(d,"cross",!1))}}function d(e,a,h){var c=h.model.getModel("axisPointer",s),p=c.get("show");if(p&&("auto"!==p||e||mK(c))){null==a&&(a=c.get("triggerTooltip"));var d=(c=e?function(t,e,n,i,r,o){var a=e.getModel("axisPointer"),s={};tm(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(t){s[t]=th(a.get(t))}),s.snap="category"!==t.type&&!!o,"cross"===a.get("type")&&(s.type="line");var l=s.label||(s.label={});if(null==l.show&&(l.show=!1),"cross"===r){var u=a.get(["label","show"]);if(l.show=null==u||u,!o){var h=s.lineStyle=a.get("crossStyle");h&&tf(l,h.textStyle)}}return t.model.getModel("axisPointer",new sW(s,n,i))}(h,o,s,r,e,a):c).get("snap"),f=c.get("triggerEmphasis"),g=m$(h.model),y=a||d||"category"===h.type,v=i.axesInfo[g]={key:g,axis:h,coordSys:t,axisPointerModel:c,triggerTooltip:a,triggerEmphasis:f,involveSeries:y,snap:d,useHandle:mK(c),seriesModels:[],linkGroup:null};n[g]=v,i.seriesInvolved=i.seriesInvolved||y;var m=function(t,e){for(var n=e.model,i=e.dim,r=0;ry?"left":"right",s=Math.abs(o[1]-v)/g<.3?"middle":o[1]>v?"top":"bottom"}return{position:o,align:a,verticalAlign:s}}(e,n,0,a,i.get(["label","margin"]));TE(t,n,i,r,p)},e}(TL),Ct={line:function(t,e,n,i){return"angle"===t.dim?{type:"Line",shape:TF(e.coordToPoint([i[0],n]),e.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,i){var r=Math.max(1,t.getBandWidth()),o=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:TW(e.cx,e.cy,i[0],i[1],(-n-r/2)*o,(-n+r/2)*o)}:{type:"Sector",shape:TW(e.cx,e.cy,n-r/2,n+r/2,0,2*Math.PI)}}},Ce=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return U(e,t),e.prototype.findAxisModel=function(t){var e;return this.ecModel.eachComponent(t,function(t){t.getCoordSysModel()===this&&(e=t)},this),e},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(lC),Cn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return U(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",rV).models[0]},e.type="polarAxis",e}(lC);ty(Cn,vP);var Ci=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return U(e,t),e.type="angleAxis",e}(Cn),Cr=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return U(e,t),e.type="radiusAxis",e}(Cn),Co=function(t){function e(e,n){return t.call(this,"radius",e,n)||this}return U(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)[+("radius"!==this.dim)]},e}(mD);Co.prototype.dataToRadius=mD.prototype.dataToCoord,Co.prototype.radiusToData=mD.prototype.coordToData;var Ca=rN(),Cs=function(t){function e(e,n){return t.call(this,"angle",e,n||[0,360])||this}return U(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)[+("radius"!==this.dim)]},e.prototype.calculateCategoryInterval=function(){var t=this.getLabelModel(),e=this.scale,n=e.getExtent(),i=e.count();if(n[1]-n[0]<1)return 0;var r=n[0],o=Math.abs(this.dataToCoord(r+1)-this.dataToCoord(r)),a=Math.max(ij(null==r?"":r+"",t.getFont(),"center","top").height,7)/o;isNaN(a)&&(a=1/0);var s=Math.max(0,Math.floor(a)),l=Ca(this.model),u=l.lastAutoInterval,h=l.lastTickCount;return null!=u&&null!=h&&1>=Math.abs(u-s)&&1>=Math.abs(h-i)&&u>s?s=u:(l.lastTickCount=i,l.lastAutoInterval=s),s},e}(mD);Cs.prototype.dataToAngle=mD.prototype.dataToCoord,Cs.prototype.angleToData=mD.prototype.coordToData;var Cl=["radius","angle"],Cu=function(){function t(t){this.dimensions=Cl,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new Co,this._angleAxis=new Cs,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return t.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},t.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},t.prototype.getAxis=function(t){return this["_"+t+"Axis"]},t.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},t.prototype.getAxesByScale=function(t){var e=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===t&&e.push(n),i.scale.type===t&&e.push(i),e},t.prototype.getAngleAxis=function(){return this._angleAxis},t.prototype.getRadiusAxis=function(){return this._radiusAxis},t.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},t.prototype.getTooltipAxes=function(t){var e=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},t.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},t.prototype.pointToData=function(t,e){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],e),this._angleAxis.angleToData(n[1],e)]},t.prototype.pointToCoord=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=this.getAngleAxis(),r=i.getExtent(),o=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);i.inverse?o=a-360:a=o+360;var s=Math.sqrt(e*e+n*n);e/=s;for(var l=Math.atan2(-(n/=s),e)/Math.PI*180,u=la;)l+=360*u;return[s,l]},t.prototype.coordToPoint=function(t){var e=t[0],n=t[1]/180*Math.PI;return[Math.cos(n)*e+this.cx,-Math.sin(n)*e+this.cy]},t.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis().getExtent().slice();e[0]>e[1]&&e.reverse();var n=t.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:e[0],r:e[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:t.inverse,contain:function(t,e){var n=t-this.cx,i=e-this.cy,r=n*n+i*i,o=this.r,a=this.r0;return o!==a&&r-1e-4<=o*o&&r+1e-4>=a*a}}},t.prototype.convertToPixel=function(t,e,n){return Ch(e)===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){return Ch(e)===this?this.pointToData(n):null},t}();function Ch(t){var e=t.seriesModel,n=t.polarModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}function Cc(t,e){var n=this,i=n.getAngleAxis(),r=n.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),r.scale.setExtent(1/0,-1/0),t.eachSeries(function(t){if(t.coordinateSystem===n){var e=t.getData();tm(mg(e,"radius"),function(t){r.scale.unionExtentFromData(e,t)}),tm(mg(e,"angle"),function(t){i.scale.unionExtentFromData(e,t)})}}),mu(i.scale,i.model),mu(r.scale,r.model),"category"===i.type&&!i.onBand){var o=i.getExtent(),a=360/i.scale.count();i.inverse?o[1]+=a:o[1]-=a,i.setExtent(o[0],o[1])}}function Cp(t,e){var n;if(t.type=e.get("type"),t.scale=mh(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),"angleAxis"===e.mainType){t.inverse=t.inverse!==e.get("clockwise");var i=e.get("startAngle"),r=null!=(n=e.get("endAngle"))?n:i+(t.inverse?-360:360);t.setExtent(i,r)}e.axis=t,t.model=e}let Cd={dimensions:Cl,create:function(t,e){var n=[];return t.eachComponent("polar",function(t,i){var r,o,a,s,l,u,h,c=new Cu(i+"");c.update=Cc;var p=c.getRadiusAxis(),d=c.getAngleAxis(),f=t.findAxisModel("radiusAxis"),g=t.findAxisModel("angleAxis");Cp(p,f),Cp(d,g),r=t.get("center"),o=e.getWidth(),a=e.getHeight(),c.cx=ro(r[0],o),c.cy=ro(r[1],a),s=c.getRadiusAxis(),l=Math.min(o,a)/2,null==(u=t.get("radius"))?u=[0,"100%"]:tI(u)||(u=[0,u]),h=[ro(u[0],l),ro(u[1],l)],s.inverse?s.setExtent(h[1],h[0]):s.setExtent(h[0],h[1]),n.push(c),t.coordinateSystem=c,c.model=t}),t.eachSeries(function(t){if("polar"===t.get("coordinateSystem")){var e=t.getReferringComponents("polar",rV).models[0];t.coordinateSystem=e.coordinateSystem}}),n}};var Cf=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Cg(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var i=t.coordToPoint([e[0],n]),r=t.coordToPoint([e[1],n]);return{x1:i[0],y1:i[1],x2:r[0],y2:r[1]}}function Cy(t){return+!t.getRadiusAxis().inverse}function Cv(t){var e=t[0],n=t[t.length-1];e&&n&&1e-4>Math.abs(Math.abs(e.coord-n.coord)-360)&&t.pop()}var Cm=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return U(e,t),e.prototype.render=function(t,e){if(this.group.removeAll(),t.get("show")){var n=t.axis,i=n.polar,r=i.getRadiusAxis().getExtent(),o=n.getTicksCoords(),a=n.getMinorTicksCoords(),s=tx(n.getViewLabels(),function(t){t=th(t);var e=n.scale,i="ordinal"===e.type?e.getRawOrdinalNumber(t.tickValue):t.tickValue;return t.coord=n.dataToCoord(i),t});Cv(s),Cv(o),tm(Cf,function(e){t.get([e,"show"])&&(!n.scale.isBlank()||"axisLine"===e)&&Cx[e](this.group,t,i,o,a,r,s)},this)}},e.type="angleAxis",e}(mQ),Cx={axisLine:function(t,e,n,i,r,o){var a,s=e.getModel(["axisLine","lineStyle"]),l=n.getAngleAxis(),u=Math.PI/180,h=l.getExtent(),c=Cy(n),p=+!c,d=360===Math.abs(h[1]-h[0])?"Circle":"Arc";(a=0===o[p]?new G[d]({shape:{cx:n.cx,cy:n.cy,r:o[c],startAngle:-h[0]*u,endAngle:-h[1]*u,clockwise:l.inverse},style:s.getLineStyle(),z2:1,silent:!0}):new cg({shape:{cx:n.cx,cy:n.cy,r:o[c],r0:o[p]},style:s.getLineStyle(),z2:1,silent:!0})).style.fill=null,t.add(a)},axisTick:function(t,e,n,i,r,o){var a=e.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=o[Cy(n)],u=tx(i,function(t){return new cT({shape:Cg(n,[l,l+s],t.coord)})});t.add(c5(u,{style:tf(a.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,e,n,i,r,o){if(r.length){for(var a=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),u=o[Cy(n)],h=[],c=0;cf?"left":"right",v=Math.abs(d[1]-g)/p<.3?"middle":d[1]>g?"top":"bottom";if(s&&s[c]){var m=s[c];tL(m)&&m.textStyle&&(a=new sW(m.textStyle,l,l.ecModel))}var x=new aI({silent:mW.isLabelSilent(e),style:sw(a,{x:d[0],y:d[1],fill:a.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:i.formattedLabel,align:y,verticalAlign:v})});if(t.add(x),h){var _=mW.makeAxisEventDataBase(e);_.targetType="axisLabel",_.value=i.rawLabel,aT(x).eventData=_}},this)},splitLine:function(t,e,n,i,r,o){var a=e.getModel("splitLine").getModel("lineStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],h=0;h=0?"p":"n",C=b;m&&(a[o][I]||(a[o][I]={p:b,n:b}),C=a[o][I][T]);var A=void 0,D=void 0,L=void 0,k=void 0;if("radius"===c.dim){var P=c.dataToCoord(M)-b,O=i.dataToCoord(I);Math.abs(P)=k})}}})};var CC={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},CA={splitNumber:5},CD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return U(e,t),e.type="polar",e}(hE);function CL(t,e){e=e||{};var n=t.coordinateSystem,i=t.axis,r={},o=i.position,a=i.orient,s=n.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};r.position=["vertical"===a?u.vertical[o]:l[0],"horizontal"===a?u.horizontal[o]:l[3]],r.rotation=Math.PI/2*({horizontal:0,vertical:1})[a],r.labelDirection=r.tickDirection=r.nameDirection=({top:-1,bottom:1,right:1,left:-1})[o],t.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),tN(e.labelInside,t.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection);var h=e.rotate;return null==h&&(h=t.get(["axisLabel","rotate"])),r.labelRotation="top"===o?-h:h,r.z2=1,r}var Ck=["axisLine","axisTickLabel","axisName"],CP=["splitArea","splitLine"],CO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="SingleAxisPointer",n}return U(e,t),e.prototype.render=function(e,n,i,r){var o=this.group;o.removeAll();var a=this._axisGroup;this._axisGroup=new i9;var s=CL(e),l=new mW(e,s);tm(Ck,l.add,l),o.add(this._axisGroup),o.add(l.getGroup()),tm(CP,function(t){e.get([t,"show"])&&CR[t](this,this.group,this._axisGroup,e)},this),pe(a,this._axisGroup,e),t.prototype.render.call(this,e,n,i,r)},e.prototype.remove=function(){m2(this)},e.type="singleAxis",e}(mQ),CR={splitLine:function(t,e,n,i){var r=i.axis;if(!r.scale.isBlank()){var o=i.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=s instanceof Array?s:[s];for(var l=a.get("width"),u=i.coordinateSystem.getRect(),h=r.isHorizontal(),c=[],p=0,d=r.getTicksCoords({tickModel:o}),f=[],g=[],y=0;y=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},t.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t[+("horizontal"!==e.orient)]))]},t.prototype.dataToPoint=function(t){var e=this.getAxis(),n=this.getRect(),i=[],r=+("horizontal"!==e.orient);return t instanceof Array&&(t=t[0]),i[r]=e.toGlobalCoord(e.dataToCoord(+t)),i[1-r]=0===r?n.y+n.height/2:n.x+n.width/2,i},t.prototype.convertToPixel=function(t,e,n){return CV(e)===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){return CV(e)===this?this.pointToData(n):null},t}();function CV(t){var e=t.seriesModel,n=t.singleAxisModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}let CF={create:function(t,e){var n=[];return t.eachComponent("singleAxis",function(i,r){var o=new CB(i,t,e);o.name="single_"+r,o.resize(i,e),i.coordinateSystem=o,n.push(o)}),t.eachSeries(function(t){if("singleAxis"===t.get("coordinateSystem")){var e=t.getReferringComponents("singleAxis",rV).models[0];t.coordinateSystem=e&&e.coordinateSystem}}),n},dimensions:Cz};var CG=["x","y"],CW=["width","height"],CH=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return U(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis,a=o.coordinateSystem,s=CX(a,1-CY(o)),l=a.dataToPoint(e)[0],u=i.get("type");if(u&&"none"!==u){var h=TN(i),c=CU[u](o,l,s);c.style=h,t.graphicKey=c.type,t.pointer=c}TV(e,t,CL(n),n,i,r)},e.prototype.getHandleTransform=function(t,e,n){var i=CL(e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=TB(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,i){var r=n.axis,o=r.coordinateSystem,a=CY(r),s=CX(o,a),l=[t.x,t.y];l[a]+=e[a],l[a]=Math.min(s[1],l[a]),l[a]=Math.max(s[0],l[a]);var u=CX(o,1-a),h=(u[1]+u[0])/2,c=[h,h];return c[a]=l[a],{x:l[0],y:l[1],rotation:t.rotation,cursorPoint:c,tooltipOption:{verticalAlign:"middle"}}},e}(TL),CU={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:TF([e,n[0]],[e,n[1]],CY(t))}},shadow:function(t,e,n){var i=t.getBandWidth(),r=n[1]-n[0];return{type:"Rect",shape:TG([e-i/2,n[0]],[i,r],CY(t))}}};function CY(t){return+!t.isHorizontal()}function CX(t,e){var n=t.getRect();return[n[CG[e]],n[CG[e]]+n[CW[e]]]}var CZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return U(e,t),e.type="single",e}(hE),Cj=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return U(e,t),e.prototype.init=function(e,n,i){var r=lM(e);t.prototype.init.apply(this,arguments),Cq(e,r)},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),Cq(this.option,e)},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}(lC);function Cq(t,e){var n,i=t.cellSize;1===(n=tI(i)?i:t.cellSize=[i,i]).length&&(n[1]=n[0]);var r=tx([0,1],function(t){return(null!=e[lm[t][0]]||null!=e[lm[t][1]]&&null!=e[lm[t][2]])&&(n[t]="auto"),null!=n[t]&&"auto"!==n[t]});lS(t,e,{type:"box",ignoreSize:r})}var CK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return U(e,t),e.prototype.render=function(t,e,n){var i=this.group;i.removeAll();var r=t.coordinateSystem,o=r.getRangeInfo(),a=r.getOrient(),s=e.getLocaleModel();this._renderDayRect(t,o,i),this._renderLines(t,o,a,i),this._renderYearText(t,o,a,i),this._renderMonthText(t,s,a,i),this._renderWeekText(t,s,o,a,i)},e.prototype._renderDayRect=function(t,e,n){for(var i=t.coordinateSystem,r=t.getModel("itemStyle").getItemStyle(),o=i.getCellWidth(),a=i.getCellHeight(),s=e.start.time;s<=e.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToRect([s],!1).tl,u=new au({shape:{x:l[0],y:l[1],width:o,height:a},cursor:"default",style:r});n.add(u)}},e.prototype._renderLines=function(t,e,n,i){var r=this,o=t.coordinateSystem,a=t.getModel(["splitLine","lineStyle"]).getLineStyle(),s=t.get(["splitLine","show"]),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=e.start,h=0;u.time<=e.end.time;h++){p(u.formatedDate),0===h&&(u=o.getDateInfo(e.start.y+"-"+e.start.m));var c=u.date;c.setMonth(c.getMonth()+1),u=o.getDateInfo(c)}function p(e){r._firstDayOfMonth.push(o.getDateInfo(e)),r._firstDayPoints.push(o.dataToRect([e],!1).tl);var l=r._getLinePointsOfOneWeek(t,e,n);r._tlpoints.push(l[0]),r._blpoints.push(l[l.length-1]),s&&r._drawSplitline(l,a,i)}p(o.getNextNDay(e.end.time,1).formatedDate),s&&this._drawSplitline(r._getEdgesPoints(r._tlpoints,l,n),a,i),s&&this._drawSplitline(r._getEdgesPoints(r._blpoints,l,n),a,i)},e.prototype._getEdgesPoints=function(t,e,n){var i=[t[0].slice(),t[t.length-1].slice()],r=+("horizontal"!==n);return i[0][r]=i[0][r]-e/2,i[1][r]=i[1][r]+e/2,i},e.prototype._drawSplitline=function(t,e,n){var i=new cw({z2:20,shape:{points:t},style:e});n.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,e,n){for(var i=t.coordinateSystem,r=i.getDateInfo(e),o=[],a=0;a<7;a++){var s=i.getNextNDay(r.time,a),l=i.dataToRect([s.time],!1);o[2*s.day]=l.tl,o[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return o},e.prototype._formatterLabel=function(t,e){if(tC(t)&&t){var n;return n=t,tm(e,function(t,e){n=n.replace("{"+e+"}",t)}),n}return tT(t)?t(e):e.nameMap},e.prototype._yearTextPositionControl=function(t,e,n,i,r){var o=e[0],a=e[1],s=["center","bottom"];"bottom"===i?(a+=r,s=["center","top"]):"left"===i?o-=r:"right"===i?(o+=r,s=["center","top"]):a-=r;var l=0;return("left"===i||"right"===i)&&(l=Math.PI/2),{rotation:l,x:o,y:a,style:{align:s[0],verticalAlign:s[1]}}},e.prototype._renderYearText=function(t,e,n,i){var r=t.getModel("yearLabel");if(r.get("show")){var o=r.get("margin"),a=r.get("position");a||(a="horizontal"!==n?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,u=(s[0][1]+s[1][1])/2,h=+("horizontal"!==n),c={top:[l,s[h][1]],bottom:[l,s[1-h][1]],left:[s[1-h][0],u],right:[s[h][0],u]},p=e.start.y;+e.end.y>+e.start.y&&(p=p+"-"+e.end.y);var d=r.get("formatter"),f={start:e.start.y,end:e.end.y,nameMap:p},g=new aI({z2:30,style:sw(r,{text:this._formatterLabel(d,f)}),silent:r.get("silent")});g.attr(this._yearTextPositionControl(g,c[a],n,a,o)),i.add(g)}},e.prototype._monthTextPositionControl=function(t,e,n,i,r){var o="left",a="top",s=t[0],l=t[1];return"horizontal"===n?(l+=r,e&&(o="center"),"start"===i&&(a="bottom")):(s+=r,e&&(a="middle"),"start"===i&&(o="right")),{x:s,y:l,align:o,verticalAlign:a}},e.prototype._renderMonthText=function(t,e,n,i){var r=t.getModel("monthLabel");if(r.get("show")){var o=r.get("nameMap"),a=r.get("margin"),s=r.get("position"),l=r.get("align"),u=[this._tlpoints,this._blpoints];(!o||tC(o))&&(o&&(e=sZ[o]||e),o=e.get(["time","monthAbbr"])||[]);var h=+("start"!==s),c=+("horizontal"!==n);a="start"===s?-a:a;for(var p="center"===l,d=r.get("silent"),f=0;f=i.start.time&&n.timea.end.time&&t.reverse(),t},t.prototype._getRangeInfo=function(t){var e,n=[this.getDateInfo(t[0]),this.getDateInfo(t[1])];n[0].time>n[1].time&&(e=!0,n.reverse());var i=Math.floor(n[1].time/864e5)-Math.floor(n[0].time/864e5)+1,r=new Date(n[0].time),o=r.getDate(),a=n[1].date.getDate();r.setDate(o+i-1);var s=r.getDate();if(s!==a)for(var l=r.getTime()-n[1].time>0?1:-1;(s=r.getDate())!==a&&(r.getTime()-n[1].time)*l>0;)i-=l,r.setDate(s-l);var u=Math.floor((i+n[0].day+6)/7),h=e?-u+1:u-1;return e&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:i,weeks:u,nthWeek:h,fweek:n[0].day,lweek:n[1].day}},t.prototype._getDateByWeeksAndDay=function(t,e,n){var i=this._getRangeInfo(n);if(t>i.weeks||0===t&&ei.lweek)return null;var r=(t-1)*7-i.fweek+e,o=new Date(i.start.time);return o.setDate(+i.start.d+r),this.getDateInfo(o)},t.create=function(e,n){var i=[];return e.eachComponent("calendar",function(r){var o=new t(r,e,n);i.push(o),r.coordinateSystem=o}),e.eachSeries(function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("calendarIndex")||0])}),i},t.dimensions=["time","value"],t}();function CJ(t){var e=t.calendarModel,n=t.seriesModel;return e?e.coordinateSystem:n?n.coordinateSystem:null}function CQ(t,e){var n;return tm(e,function(e){null!=t[e]&&"auto"!==t[e]&&(n=!0)}),n}var C0=["transition","enterFrom","leaveTo"],C1=C0.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function C2(t,e,n){if(n&&(!t[n]&&e[n]&&(t[n]={}),t=t[n],e=e[n]),t&&e)for(var i=n?C0:C1,r=0;r=0;l--){var u=n[l],h=rk(u.id,null),c=null!=h?r.get(h):null;if(c){var p=c.parent,g=C4(p),y=p===i?{width:o,height:a}:{width:g.width,height:g.height},v={},m=lb(c,u,y,null,{hv:u.hv,boundingMode:u.bounding},v);if(!C4(c).isNew&&m){for(var x=u.transition,_={},b=0;b=0)?_[w]=S:c[w]=S}sh(c,_,t,0)}else c.attr(v)}}},e.prototype._clear=function(){var t=this,e=this._elMap;e.each(function(n){C9(n,C4(n).option,e,t._lastGraphicModel)}),this._elMap=tX()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(hE);function C8(t){var e=new(tK(C3,t)?C3[t]:cQ(t))({});return C4(e).type=t,e}function C7(t,e,n,i){var r=C8(n);return e.add(r),i.set(t,r),C4(r).id=t,C4(r).isNew=!0,r}function C9(t,e,n,i){t&&t.parent&&("group"===t.type&&t.traverse(function(t){C9(t,e,n,i)}),I1(t,e,i),n.removeKey(C4(t).id))}function At(t,e,n,i){t.isGroup||tm([["cursor",oc.prototype.cursor],["zlevel",i||0],["z",n||0],["z2",0]],function(n){var i=n[0];tK(e,i)?t[i]=tE(e[i],n[1]):null==t[i]&&(t[i]=n[1])}),tm(tw(e),function(n){if(0===n.indexOf("on")){var i=e[n];t[n]=tT(i)?i:null}}),tK(e,"draggable")&&(t.draggable=e.draggable),null!=e.name&&(t.name=e.name),null!=e.id&&(t.id=e.id)}var Ae=["x","y","radius","angle","single"],An=["cartesian2d","polar","singleAxis"];function Ai(t){return t+"Axis"}function Ar(t){var e=t.ecModel,n={infoList:[],infoMap:tX()};return t.eachTargetAxis(function(t,i){var r=e.getComponent(Ai(t),i);if(r){var o=r.getCoordSysModel();if(o){var a=o.uid,s=n.infoMap.get(a);s||(s={model:o,axisModels:[]},n.infoList.push(s),n.infoMap.set(a,s)),s.axisModels.push(r)}}}),n}var Ao=function(){function t(){this.indexList=[],this.indexMap=[]}return t.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},t}(),Aa=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return U(e,t),e.prototype.init=function(t,e,n){var i=As(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this._doInit(i)},e.prototype.mergeOption=function(t){var e=As(t);tc(this.option,t,!0),tc(this.settledOption,e,!0),this._doInit(e)},e.prototype._doInit=function(t){var e=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var n=this.settledOption;tm([["start","startValue"],["end","endValue"]],function(t,i){"value"===this._rangePropMode[i]&&(e[t[0]]=n[t[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),e=this._targetAxisInfoMap=tX();this._fillSpecifiedTargetAxis(e)?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(e,this._orient)),this._noTarget=!0,e.each(function(t){t.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var e=!1;return tm(Ae,function(n){var i=this.getReferringComponents(Ai(n),rF);if(i.specified){e=!0;var r=new Ao;tm(i.models,function(t){r.add(t.componentIndex)}),t.set(n,r)}},this),e},e.prototype._fillAutoTargetAxisByOrient=function(t,e){var n=this.ecModel,i=!0,r="vertical"===e?"y":"x",o=n.findComponents({mainType:r+"Axis"});if(a(o,r),i){var o=n.findComponents({mainType:"singleAxis",filter:function(t){return t.get("orient",!0)===e}});a(o,"single")}function a(e,n){var r=e[0];if(r){var o=new Ao;if(o.add(r.componentIndex),t.set(n,o),i=!1,"x"===n||"y"===n){var a=r.getReferringComponents("grid",rV).models[0];a&&tm(e,function(t){r.componentIndex!==t.componentIndex&&a===t.getReferringComponents("grid",rV).models[0]&&o.add(t.componentIndex)})}}}i&&tm(Ae,function(e){if(i){var r=n.findComponents({mainType:Ai(e),filter:function(t){return"category"===t.get("type",!0)}});if(r[0]){var o=new Ao;o.add(r[0].componentIndex),t.set(e,o),i=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(e){t||(t=e)},this),"y"===t?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var e=this.ecModel.option;this.option.throttle=e.animation&&e.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var e=this._rangePropMode,n=this.get("rangeMode");tm([["start","startValue"],["end","endValue"]],function(i,r){var o=null!=t[i[0]],a=null!=t[i[1]];o&&!a?e[r]="percent":!o&&a?e[r]="value":n?e[r]=n[r]:o&&(e[r]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(e,n){null==t&&(t=this.ecModel.getComponent(Ai(e),n))},this),t},e.prototype.eachTargetAxis=function(t,e){this._targetAxisInfoMap.each(function(n,i){tm(n.indexList,function(n){t.call(e,i,n)})})},e.prototype.getAxisProxy=function(t,e){var n=this.getAxisModel(t,e);if(n)return n.__dzAxisProxy},e.prototype.getAxisModel=function(t,e){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[e])return this.ecModel.getComponent(Ai(t),e)},e.prototype.setRawRange=function(t){var e=this.option,n=this.settledOption;tm([["start","startValue"],["end","endValue"]],function(i){(null!=t[i[0]]||null!=t[i[1]])&&(e[i[0]]=n[i[0]]=t[i[0]],e[i[1]]=n[i[1]]=t[i[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var e=this.option;tm(["start","startValue","end","endValue"],function(n){e[n]=t[n]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var n=this.findRepresentativeAxisProxy();if(n)return n.getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var e,n=this._targetAxisInfoMap.keys(),i=0;i=0){var n=Ai(this._dimName),i=e.getReferringComponents(n,rV).models[0];i&&this._axisIndex===i.componentIndex&&t.push(e)}},this),t},t.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},t.prototype.getMinMaxSpan=function(){return th(this._minMaxSpan)},t.prototype.calculateDataWindow=function(t){var e,n=this._dataExtent,i=this.getAxisModel().axis.scale,r=this._dataZoomModel.getRangePropMode(),o=[0,100],a=[],s=[];tm(["start","end"],function(l,u){var h=t[l],c=t[l+"Value"];"percent"===r[u]?(null==h&&(h=o[u]),c=i.parse(rr(h,o,n))):(e=!0,h=rr(c=null==c?n[u]:i.parse(c),n,o)),s[u]=null==c||isNaN(c)?n[u]:c,a[u]=null==h||isNaN(h)?o[u]:h}),rs(s),rs(a);var l=this._minMaxSpan;function u(t,e,n,r,o){var a=o?"Span":"ValueSpan";w9(0,t,n,"all",l["min"+a],l["max"+a]);for(var s=0;s<2;s++)e[s]=rr(t[s],n,r,!0),o&&(e[s]=i.parse(e[s]))}return e?u(s,a,n,o,!1):u(a,s,o,n,!0),{valueWindow:s,percentWindow:a}},t.prototype.reset=function(t){if(t===this._dataZoomModel){var e,n,i,r,o,a=this.getTargetSeriesModels();this._dataExtent=(e=this,n=this._dimName,i=[1/0,-1/0],tm(a,function(t){var e;e=t.getData(),e&&tm(mg(e,n),function(t){var n=e.getApproximateExtent(t);n[0]i[1]&&(i[1]=n[1])})}),[(o=ma((r=e.getAxisModel()).axis.scale,r,i).calculate()).min,o.max]),this._updateMinMaxSpan();var s=this.calculateDataWindow(t.settledOption);this._valueWindow=s.valueWindow,this._percentWindow=s.percentWindow,this._setAxisModel()}},t.prototype.filterData=function(t,e){if(t===this._dataZoomModel){var n=this._dimName,i=this.getTargetSeriesModels(),r=t.get("filterMode"),o=this._valueWindow;"none"!==r&&tm(i,function(t){var e=t.getData(),i=e.mapDimensionsAll(n);if(i.length){if("weakFilter"===r){var a=e.getStore(),s=tx(i,function(t){return e.getDimensionIndex(t)},e);e.filterSelf(function(t){for(var e,n,r,l=0;lo[1];if(h&&!c&&!p)return!0;h&&(r=!0),c&&(e=!0),p&&(n=!0)}return r&&e&&n})}else tm(i,function(n){if("empty"===r)t.setData(e=e.map(n,function(t){var e;return(e=t)>=o[0]&&e<=o[1]?t:NaN}));else{var i={};i[n]=o,e.selectRange(i)}});tm(i,function(t){e.setApproximateExtent(o,t)})}})}},t.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;tm(["min","max"],function(i){var r=e.get(i+"Span"),o=e.get(i+"ValueSpan");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?r=rr(n[0]+o,n,[0,100],!0):null!=r&&(o=rr(r,[0,100],n,!0)-n[0]),t[i+"Span"]=r,t[i+"ValueSpan"]=o},this)},t.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var i=ru(n,[0,500]);i=Math.min(i,20);var r=t.axis.scale.rawExtentInfo;0!==e[0]&&r.setDeterminedMinMax("min",+n[0].toFixed(i)),100!==e[1]&&r.setDeterminedMinMax("max",+n[1].toFixed(i)),r.freeze()}},t}();let Ap={getTargetSeries:function(t){function e(e){t.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(i,r){var o=t.getComponent(Ai(i),r);e(i,r,o,n)})})}e(function(t,e,n,i){n.__dzAxisProxy=null});var n=[];e(function(e,i,r,o){r.__dzAxisProxy||(r.__dzAxisProxy=new Ac(e,i,o,t),n.push(r.__dzAxisProxy))});var i=tX();return tm(n,function(t){tm(t.getTargetSeriesModels(),function(t){i.set(t.uid,t)})}),i},overallReset:function(t,e){t.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(e,n){t.getAxisProxy(e,n).reset(t)}),t.eachTargetAxis(function(n,i){t.getAxisProxy(n,i).filterData(t,e)})}),t.eachComponent("dataZoom",function(t){var e=t.findRepresentativeAxisProxy();if(e){var n=e.getDataPercentWindow(),i=e.getDataValueWindow();t.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}})}};var Ad=!1;function Af(t){Ad||(Ad=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,Ap),t.registerAction("dataZoom",function(t,e){tm(function(t,e){var n,i=tX(),r=[],o=tX();t.eachComponent({mainType:"dataZoom",query:e},function(t){o.get(t.uid)||s(t)});do n=!1,t.eachComponent("dataZoom",a);while(n);function a(t){var e;!o.get(t.uid)&&(e=!1,t.eachTargetAxis(function(t,n){var r=i.get(t);r&&r[n]&&(e=!0)}),e)&&(s(t),n=!0)}function s(t){o.set(t.uid,!0),r.push(t),t.eachTargetAxis(function(t,e){(i.get(t)||i.set(t,[]))[e]=!0})}return r}(e,t),function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})}),t.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function Ag(t){t.registerComponentModel(Al),t.registerComponentView(Ah),Af(t)}var Ay=function(){},Av={},Am=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return U(e,t),e.prototype.optionUpdated=function(){t.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;tm(this.option.feature,function(t,n){var i=Av[n];i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),tc(t,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}(lC);function Ax(t,e){var n=tV(e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),t=new au({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1})}var A_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return U(e,t),e.prototype.render=function(t,e,n,i){var r=this.group;if(r.removeAll(),t.get("show")){var o,a,s,l,u=+t.get("itemSize"),h="vertical"===t.get("orient"),c=t.get("feature")||{},p=this._features||(this._features={}),d=[];tm(c,function(t,e){d.push(e)}),new gF(this._featureNames||[],d).add(f).update(f).remove(tM(f,null)).execute(),this._featureNames=d,o=t.getBoxLayoutParams(),a=t.get("padding"),l=l_(o,s={width:n.getWidth(),height:n.getHeight()},a),lx(t.get("orient"),r,t.get("itemGap"),l.width,l.height),lb(r,o,s,a),r.add(Ax(r.getBoundingRect(),t)),h||r.eachChild(function(t){var e=t.__title,i=t.ensureState("emphasis"),o=i.textConfig||(i.textConfig={}),a=t.getTextContent(),s=a&&a.ensureState("emphasis");if(s&&!tT(s)&&e){var l=s.style||(s.style={}),h=ij(e,aI.makeFont(l)),c=t.x+r.x,p=t.y+r.y+u,d=!1;p+h.height>n.getHeight()&&(o.position="top",d=!0);var f=d?-5-h.height:u+10;c+h.width/2>n.getWidth()?(o.position=["100%",f],l.align="right"):c-h.width/2<0&&(o.position=[0,f],l.align="left")}})}function f(o,a){var s,l,f,g,y,v,m,x,_,b,w,S=d[o],M=d[a],I=c[S],T=new sW(I,t,t.ecModel);if(i&&null!=i.newTitle&&i.featureName===S&&(I.title=i.newTitle),S&&!M){if(0===S.indexOf("my"))w={onclick:T.option.onclick,featureName:S};else{var C=Av[S];if(!C)return;w=new C}p[S]=w}else if(!(w=p[M]))return;w.uid=sU("toolbox-feature"),w.model=T,w.ecModel=e,w.api=n;var A=w instanceof Ay;if(!S&&M){A&&w.dispose&&w.dispose(e,n);return}if(!T.get("show")||A&&w.unusable){A&&w.remove&&w.remove(e,n);return}s=T,l=w,f=S,v=s.getModel("iconStyle"),m=s.getModel(["emphasis","iconStyle"]),x=l instanceof Ay&&l.getIcons?l.getIcons():s.get("icon"),_=s.get("title")||{},tC(x)?(g={})[f]=x:g=x,tC(_)?(y={})[f]=_:y=_,b=s.iconPaths={},tm(g,function(i,o){var a=pr(i,{},{x:-u/2,y:-u/2,width:u,height:u});a.setStyle(v.getItemStyle()),a.ensureState("emphasis").style=m.getItemStyle();var c=new aI({style:{text:y[o],align:m.get("textAlign"),borderRadius:m.get("textBorderRadius"),padding:m.get("textPadding"),fill:null,font:sA({fontStyle:m.get("textFontStyle"),fontFamily:m.get("textFontFamily"),fontSize:m.get("textFontSize"),fontWeight:m.get("textFontWeight")},e)},ignore:!0});a.setTextContent(c),ps({el:a,componentModel:t,itemName:o,formatterParamsExtra:{title:y[o]}}),a.__title=y[o],a.on("mouseover",function(){var e=m.getItemStyle(),i=h?null==t.get("right")&&"right"!==t.get("left")?"right":"left":null==t.get("bottom")&&"bottom"!==t.get("top")?"bottom":"top";c.setStyle({fill:m.get("textFill")||e.fill||e.stroke||"#000",backgroundColor:m.get("textBackgroundColor")}),a.setTextConfig({position:m.get("textPosition")||i}),c.ignore=!t.get("showTitle"),n.enterEmphasis(this)}).on("mouseout",function(){"emphasis"!==s.get(["iconStatus",o])&&n.leaveEmphasis(this),c.hide()}),("emphasis"===s.get(["iconStatus",o])?aQ:a0)(a),r.add(a),a.on("click",tS(l.onclick,l,e,n,o)),b[o]=a}),T.setIconStatus=function(t,e){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&("emphasis"===e?aQ:a0)(i[t])},w instanceof Ay&&w.render&&w.render(T,e,n,i)}},e.prototype.updateView=function(t,e,n,i){tm(this._features,function(t){t instanceof Ay&&t.updateView&&t.updateView(t.model,e,n,i)})},e.prototype.remove=function(t,e){tm(this._features,function(n){n instanceof Ay&&n.remove&&n.remove(t,e)}),this.group.removeAll()},e.prototype.dispose=function(t,e){tm(this._features,function(n){n instanceof Ay&&n.dispose&&n.dispose(t,e)})},e.type="toolbox",e}(hE),Ab=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return U(e,t),e.prototype.onclick=function(t,e){var n=this.model,i=n.get("name")||t.get("title.0.text")||"echarts",r="svg"===e.getZr().painter.getType(),o=r?"svg":n.get("type",!0)||"png",a=e.getConnectedDataURL({type:o,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),s=X.browser;if("function"!=typeof MouseEvent||!s.newEdge&&(s.ie||s.edge))if(window.navigator.msSaveOrOpenBlob||r){var l=a.split(","),u=l[0].indexOf("base64")>-1,h=r?decodeURIComponent(l[1]):l[1];u&&(h=window.atob(h));var c=i+"."+o;if(window.navigator.msSaveOrOpenBlob){for(var p=h.length,d=new Uint8Array(p);p--;)d[p]=h.charCodeAt(p);var f=new Blob([d]);window.navigator.msSaveOrOpenBlob(f,c)}else{var g=document.createElement("iframe");document.body.appendChild(g);var y=g.contentWindow,v=y.document;v.open("image/svg+xml","replace"),v.write(h),v.close(),y.focus(),v.execCommand("SaveAs",!0,c),document.body.removeChild(g)}}else{var m=n.get("lang"),x='',_=window.open();_.document.write(x),_.document.title=i}else{var b=document.createElement("a");b.download=i+"."+o,b.target="_blank",b.href=a;var w=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});b.dispatchEvent(w)}},e.getDefaultOption=function(t){return{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"])}},e}(Ay),Aw="__ec_magicType_stack__",AS=[["line","bar"],["stack"]],AM=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return U(e,t),e.prototype.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return tm(t.get("type"),function(t){e[t]&&(n[t]=e[t])}),n},e.getDefaultOption=function(t){return{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:{}}},e.prototype.onclick=function(t,e,n){var i,r=this.model,o=r.get(["seriesIndex",n]);if(AI[n]){var a={series:[]};tm(AS,function(t){tg(t,n)>=0&&tm(t,function(t){r.setIconStatus(t,"normal")})}),r.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:null==o?null:{seriesIndex:o}},function(t){var e=t.subType,i=t.id,o=AI[n](e,i,t,r);o&&(tf(o,t.option),a.series.push(o));var s=t.coordinateSystem;if(s&&"cartesian2d"===s.type&&("line"===n||"bar"===n)){var l=s.getAxesByScale("ordinal")[0];if(l){var u=l.dim+"Axis",h=t.getReferringComponents(u,rV).models[0].componentIndex;a[u]=a[u]||[];for(var c=0;c<=h;c++)a[u][h]=a[u][h]||{};a[u][h].boundaryGap="bar"===n}}});var s=n;"stack"===n&&(i=tc({stack:r.option.title.tiled,tiled:r.option.title.stack},r.option.title),"emphasis"!==r.get(["iconStatus",n])&&(s="tiled")),e.dispatchAction({type:"changeMagicType",currentType:s,newOption:a,newTitle:i,featureName:"magicType"})}},e}(Ay),AI={line:function(t,e,n,i){if("bar"===t)return tc({id:e,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(t,e,n,i){if("line"===t)return tc({id:e,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(t,e,n,i){var r=n.get("stack")===Aw;if("line"===t||"bar"===t)return i.setIconStatus("stack",r?"normal":"emphasis"),tc({id:e,stack:r?"":Aw},i.get(["option","stack"])||{},!0)}};fi({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e.mergeOption(t.newOption)});var AT=Array(60).join("-");function AC(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var AA=RegExp("[ ]+","g"),AD=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return U(e,t),e.prototype.onclick=function(t,e){setTimeout(function(){e.dispatchAction({type:"hideTip"})});var n,i,r,o,a,s,l=e.getDom(),u=this.model;this._dom&&l.removeChild(this._dom);var h=document.createElement("div");h.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",h.style.backgroundColor=u.get("backgroundColor")||"#fff";var c=document.createElement("h4"),p=u.get("lang")||[];c.innerHTML=p[0]||u.get("title"),c.style.cssText="margin:10px 20px",c.style.color=u.get("textColor");var d=document.createElement("div"),f=document.createElement("textarea");d.style.cssText="overflow:auto";var g=u.get("optionToContent"),y=u.get("contentToOption"),v={value:tb([(o=(s=(n={},i=[],r=[],t.eachRawSeries(function(t){var e=t.coordinateSystem;if(e&&("cartesian2d"===e.type||"polar"===e.type)){var o=e.getBaseAxis();if("category"===o.type){var a=o.dim+"_"+o.index;n[a]||(n[a]={categoryAxis:o,valueAxis:e.getOtherAxis(o),series:[]},r.push({axisDim:o.dim,axisIndex:o.index})),n[a].series.push(t)}else i.push(t)}else i.push(t)}),{seriesGroupByCategoryAxis:n,other:i,meta:r})).seriesGroupByCategoryAxis,a=[],tm(o,function(t,e){var n=t.categoryAxis,i=t.valueAxis.dim,r=[" "].concat(tx(t.series,function(t){return t.name})),o=[n.model.getCategories()];tm(t.series,function(t){var e=t.getRawData();o.push(t.getRawData().mapArray(e.mapDimension(i),function(t){return t}))});for(var s=[r.join(" ")],l=0;l=0)return!0}(t)){var n=function(t){for(var e=t.split(/\n+/g),n=AC(e.shift()).split(AA),i=[],r=tx(n,function(t){return{name:t,data:[]}}),o=0;o=0)&&t(r,i._targetInfoList)})}return t.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(t,e,n){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var i=AF[t.brushType](0,n,e);t.__rangeOffset={offset:AW[t.brushType](i.values,t.range,[1,1]),xyMinMax:i.xyMinMax}}}),t},t.prototype.matchOutputRanges=function(t,e,n){tm(t,function(t){var i=this.findTargetInfo(t,e);i&&!0!==i&&tm(i.coordSyses,function(i){var r=AF[t.brushType](1,i,t.range,!0);n(t,r.values,i,e)})},this)},t.prototype.setInputRanges=function(t,e){tm(t,function(t){var n=this.findTargetInfo(t,e);if(t.range=t.range||[],n&&!0!==n){t.panelId=n.panelId;var i,r,o,a,s,l=AF[t.brushType](0,n.coordSys,t.coordRange),u=t.__rangeOffset;t.range=u?AW[t.brushType](l.values,u.offset,(i=l.xyMinMax,r=u.xyMinMax,o=AU(i),a=AU(r),isNaN((s=[o[0]/a[0],o[1]/a[1]])[0])&&(s[0]=1),isNaN(s[1])&&(s[1]=1),s)):l.values}},this)},t.prototype.makePanelOpts=function(t,e){return tx(this._targetInfoList,function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:SK(i),isTargetByCursor:SJ(i,t,n.coordSysModel),getLinearBrushOtherExtent:S$(i)}})},t.prototype.controlSeries=function(t,e,n){var i=this.findTargetInfo(t,n);return!0===i||i&&tg(i.coordSyses,e.coordinateSystem)>=0},t.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=AE(e,t),r=0;rt[1]&&t.reverse(),t}function AE(t,e){return rz(t,e,{includeMainTypes:AO})}var Az={grid:function(t,e){var n=t.xAxisModels,i=t.yAxisModels,r=t.gridModels,o=tX(),a={},s={};(n||i||r)&&(tm(n,function(t){var e=t.axis.grid.model;o.set(e.id,e),a[e.id]=!0}),tm(i,function(t){var e=t.axis.grid.model;o.set(e.id,e),s[e.id]=!0}),tm(r,function(t){o.set(t.id,t),a[t.id]=!0,s[t.id]=!0}),o.each(function(t){var r=t.coordinateSystem,o=[];tm(r.getCartesians(),function(t,e){(tg(n,t.getAxis("x").model)>=0||tg(i,t.getAxis("y").model)>=0)&&o.push(t)}),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:o[0],coordSyses:o,getPanelRect:AV.grid,xAxisDeclared:a[t.id],yAxisDeclared:s[t.id]})}))},geo:function(t,e){tm(t.geoModels,function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:AV.geo})})}},AB=[function(t,e){var n=t.xAxisModel,i=t.yAxisModel,r=t.gridModel;return!r&&n&&(r=n.axis.grid.model),!r&&i&&(r=i.axis.grid.model),r&&r===e.gridModel},function(t,e){var n=t.geoModel;return n&&n===e.geoModel}],AV={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(c7(t)),e}},AF={lineX:tM(AG,0),lineY:tM(AG,1),rect:function(t,e,n,i){var r=t?e.pointToData([n[0][0],n[1][0]],i):e.dataToPoint([n[0][0],n[1][0]],i),o=t?e.pointToData([n[0][1],n[1][1]],i):e.dataToPoint([n[0][1],n[1][1]],i),a=[AN([r[0],o[0]]),AN([r[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(t,e,n,i){var r=[[1/0,-1/0],[1/0,-1/0]];return{values:tx(n,function(n){var o=t?e.pointToData(n,i):e.dataToPoint(n,i);return r[0][0]=Math.min(r[0][0],o[0]),r[1][0]=Math.min(r[1][0],o[1]),r[0][1]=Math.max(r[0][1],o[0]),r[1][1]=Math.max(r[1][1],o[1]),o}),xyMinMax:r}}};function AG(t,e,n,i){var r=n.getAxis(["x","y"][t]),o=AN(tx([0,1],function(t){return e?r.coordToData(r.toLocalCoord(i[t]),!0):r.toGlobalCoord(r.dataToCoord(i[t]))})),a=[];return a[t]=o,a[1-t]=[NaN,NaN],{values:o,xyMinMax:a}}var AW={lineX:tM(AH,0),lineY:tM(AH,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,e,n){return tx(t,function(t,i){return[t[0]-n[0]*e[i][0],t[1]-n[1]*e[i][1]]})}};function AH(t,e,n,i){return[e[0]-i[t]*n[0],e[1]-i[t]*n[1]]}function AU(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var AY=rS+"toolbox-dataZoom_",AX=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return U(e,t),e.prototype.render=function(t,e,n,i){var r,o,a,s,l,u,h,c,p;this._brushController||(this._brushController=new Sx(n.getZr()),this._brushController.on("brush",tS(this._onBrush,this)).mount()),r=t,o=e,a=this,s=i,l=n,u=a._isZoomActive,s&&"takeGlobalCursor"===s.type&&(u="dataZoomSelect"===s.key&&s.dataZoomSelectActive),a._isZoomActive=u,r.setIconStatus("zoom",u?"emphasis":"normal"),h=new AR(Aj(r),o,{include:["grid"]}).makePanelOpts(l,function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"}),a._brushController.setPanels(h).enableBrush(!!u&&!!h.length&&{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}),c=t,p=e,c.setIconStatus("back",Ak(p).length>1?"emphasis":"normal")},e.prototype.onclick=function(t,e,n){AZ[n].call(this)},e.prototype.remove=function(t,e){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,e){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var e=t.areas;if(t.isEnd&&e.length){var n,i,r,o={},a=this.ecModel;this._brushController.updateCovers([]),new AR(Aj(this.model),a,{include:["grid"]}).matchOutputRanges(e,a,function(t,e,n){if("cartesian2d"===n.type){var i=t.brushType;"rect"===i?(s("x",n,e[0]),s("y",n,e[1])):s({lineX:"x",lineY:"y"}[i],n,e)}}),n=a,i=o,r=Ak(n),tm(i,function(t,e){for(var i=r.length-1;i>=0&&!r[i][e];i--);if(i<0){var o=n.queryComponents({mainType:"dataZoom",subType:"select",id:e})[0];if(o){var a=o.getPercentRange();r[0][e]={dataZoomId:e,start:a[0],end:a[1]}}}}),r.push(i),this._dispatchZoomAction(o)}function s(t,e,n){var i,r,s,l=e.getAxis(t),u=l.model,h=(i=t,r=u,a.eachComponent({mainType:"dataZoom",subType:"select"},function(t){t.getAxisModel(i,r.componentIndex)&&(s=t)}),s),c=h.findRepresentativeAxisProxy(u).getMinMaxSpan();(null!=c.minValueSpan||null!=c.maxValueSpan)&&(n=w9(0,n.slice(),l.scale.getExtent(),0,c.minValueSpan,c.maxValueSpan)),h&&(o[h.id]={dataZoomId:h.id,startValue:n[0],endValue:n[1]})}},e.prototype._dispatchZoomAction=function(t){var e=[];tm(t,function(t,n){e.push(th(t))}),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},e.getDefaultOption=function(t){return{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)"}}},e}(Ay),AZ={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){var t,e,n;this._dispatchZoomAction((e=(t=Ak(this.ecModel))[t.length-1],t.length>1&&t.pop(),n={},tm(e,function(e,i){for(var r=t.length-1;r>=0;r--)if(e=t[r][i]){n[i]=e;break}}),n))}};function Aj(t){var e={xAxisIndex:t.get("xAxisIndex",!0),yAxisIndex:t.get("yAxisIndex",!0),xAxisId:t.get("xAxisId",!0),yAxisId:t.get("yAxisId",!0)};return null==e.xAxisIndex&&null==e.xAxisId&&(e.xAxisIndex="all"),null==e.yAxisIndex&&null==e.yAxisId&&(e.yAxisIndex="all"),e}!function(t,e){tF(null==lX.get(t)&&e),lX.set(t,e)}("dataZoom",function(t){var e=t.getComponent("toolbox",0),n=["feature","dataZoom"];if(e&&null!=e.get(n)){var i=e.getModel(n),r=[],o=rz(t,Aj(i));return tm(o.xAxisModels,function(t){return a(t,"xAxis","xAxisIndex")}),tm(o.yAxisModels,function(t){return a(t,"yAxis","yAxisIndex")}),r}function a(t,e,n){var o=t.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:AY+e+o};a[n]=o,r.push(a)}});var Aq=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return U(e,t),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}(lC);function AK(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function A$(t){if(X.domSupported){for(var e=document.documentElement.style,n=0,i=t.length;n-1?(u+="top:50%",h+="translateY(-50%) rotate("+(r="left"===s?-225:-45)+"deg)"):(u+="left:50%",h+="translateX(-50%) rotate("+(r="top"===s?225:45)+"deg)");var c=r*Math.PI/180,p=l+a,d=p*Math.abs(Math.cos(c))+p*Math.abs(Math.sin(c));u+=";"+s+":-"+Math.round(((d-Math.SQRT2*a)/2+Math.SQRT2*a-(d-p)/2)*100)/100+"px";var f=e+" solid "+a+"px;";return'
'}(n,i,r)),tC(t))o.innerHTML=t+a;else if(t){o.innerHTML="",tI(t)||(t=[t]);for(var s=0;s=0?this._tryShow(n,i):"leave"===e&&this._hide(i))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api,i=t.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==i&&"click"!==i){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){n.isDisposed()||r.manuallyShowTip(t,e,n,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,e,n,i){if(i.from!==this.uid&&!X.node&&n.getDom()){var r=Di(i,n);this._ticket="";var o=i.dataByCoordSys,a=function(t,e,n){var i,r=rB(t).queryOptionMap,o=r.keys()[0];if(o&&"series"!==o){var a=rG(e,o,r.get(o),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a&&(n.getViewOfComponentModel(a).group.traverse(function(e){var n=aT(e).tooltipConfig;if(n&&n.name===t.name)return i=e,!0}),i))return{componentMainType:o,componentIndex:a.componentIndex,el:i}}}(i,e,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:i.position,positionDefault:"bottom"},r)}else if(i.tooltip&&null!=i.x&&null!=i.y)Dt.x=i.x,Dt.y=i.y,Dt.update(),aT(Dt).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:Dt},r);else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:o,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,i))return;var l=T0(i,e),u=l.point[0],h=l.point[1];null!=u&&null!=h&&this._tryShow({offsetX:u,offsetY:h,target:l.el,position:i.position,positionDefault:"bottom"},r)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},r))}},e.prototype.manuallyHideTip=function(t,e,n,i){var r=this._tooltipContent;this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(Di(i,n))},e.prototype._manuallyAxisShowTip=function(t,e,n,i){var r=i.seriesIndex,o=i.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=e.getSeriesByIndex(r);if(s&&"axis"===Dn([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0}},e.prototype._tryShow=function(t,e){var n=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var i,r,o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(n){if("legend"===aT(n).ssrType)return;this._lastDataByCoordSys=null,p3(n,function(t){return null!=aT(t).dataIndex?(i=t,!0):null!=aT(t).tooltipConfig?(r=t,!0):void 0},!0),i?this._showSeriesItemTooltip(t,i,e):r?this._showComponentItemTooltip(t,r,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=tS(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},e.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,i=this._tooltipModel,r=[e.offsetX,e.offsetY],o=Dn([e.tooltipOption],i),a=this._renderMode,s=[],l=hf("section",{blocks:[],noHeader:!0}),u=[],h=new hS;tm(t,function(t){tm(t.dataByAxis,function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),r=t.value;if(e&&null!=r){var o=Tz(r,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),c=hf("section",{header:o,noHeader:!tG(o),sortBlocks:!0,blocks:[]});l.blocks.push(c),tm(t.seriesDataIndices,function(l){var p=n.getSeriesByIndex(l.seriesIndex),d=l.dataIndexInside,f=p.getDataParams(d);if(!(f.dataIndex<0)){f.axisDim=t.axisDim,f.axisIndex=t.axisIndex,f.axisType=t.axisType,f.axisId=t.axisId,f.axisValue=mp(e.axis,{value:r}),f.axisValueLabel=o,f.marker=h.makeTooltipMarker("item",lg(f.color),a);var g=uV(p.formatTooltip(d,!0,null)),y=g.frag;if(y){var v=Dn([p],i).get("valueFormatter");c.blocks.push(v?td({valueFormatter:v},y):y)}g.text&&u.push(g.text),s.push(f)}})}})}),l.blocks.reverse(),u.reverse();var c=e.position,p=hm(l,h,a,o.get("order"),n.get("useUTC"),o.get("textStyle"));p&&u.unshift(p);var d="richText"===a?"\n\n":"
",f=u.join(d);this._showOrMove(o,function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,c,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(o,f,s,Math.random()+"",r[0],r[1],c,null,h)})},e.prototype._showSeriesItemTooltip=function(t,e,n){var i=this._ecModel,r=aT(e),o=r.seriesIndex,a=i.getSeriesByIndex(o),s=r.dataModel||a,l=r.dataIndex,u=r.dataType,h=s.getData(u),c=this._renderMode,p=t.positionDefault,d=Dn([h.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),f=d.get("trigger");if(null==f||"item"===f){var g=s.getDataParams(l,u),y=new hS;g.marker=y.makeTooltipMarker("item",lg(g.color),c);var v=uV(s.formatTooltip(l,!1,u)),m=d.get("order"),x=d.get("valueFormatter"),_=v.frag,b=_?hm(x?td({valueFormatter:x},_):_,y,c,m,i.get("useUTC"),d.get("textStyle")):v.text,w="item_"+s.name+"_"+l;this._showOrMove(d,function(){this._showTooltipContent(d,b,g,w,t.offsetX,t.offsetY,t.position,t.target,y)}),n({type:"showTip",dataIndexInside:l,dataIndex:h.getRawIndex(l),seriesIndex:o,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var i="html"===this._renderMode,r=aT(e),o=r.tooltipConfig.option||{},a=o.encodeHTMLContent;if(tC(o)){var s=o;o={content:s,formatter:s},a=!0}a&&i&&o.content&&((o=th(o)).content=em(o.content));var l=[o],u=this._ecModel.getComponent(r.componentMainType,r.componentIndex);u&&l.push(u),l.push({formatter:o.content});var h=t.positionDefault,c=Dn(l,this._tooltipModel,h?{position:h}:null),p=c.get("content"),d=Math.random()+"",f=new hS;this._showOrMove(c,function(){var n=th(c.get("formatterParams")||{});this._showTooltipContent(c,p,n,d,t.offsetX,t.offsetY,t.position,e,f)}),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,i,r,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent;u.setEnterable(t.get("enterable"));var h=t.get("formatter");a=a||t.get("position");var c=e,p=this._getNearestPoint([r,o],n,t.get("trigger"),t.get("borderColor")).color;if(h)if(tC(h)){var d=t.ecModel.get("useUTC"),f=tI(n)?n[0]:n,g=f&&f.axisType&&f.axisType.indexOf("time")>=0;c=h,g&&(c=s5(f.axisValue,c,d)),c=lf(c,n,!0)}else if(tT(h)){var y=tS(function(e,i){e===this._ticket&&(u.setContent(i,l,t,p,a),this._updatePosition(t,a,r,o,u,n,s))},this);this._ticket=i,c=h(n,i,y)}else c=h;u.setContent(c,l,t,p,a),u.show(t,p),this._updatePosition(t,a,r,o,u,n,s)}},e.prototype._getNearestPoint=function(t,e,n,i){return"axis"===n||tI(e)?{color:i||("html"===this._renderMode?"#fff":"none")}:tI(e)?void 0:{color:i||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,i,r,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=r.getSize(),h=t.get("align"),c=t.get("verticalAlign"),p=a&&a.getBoundingRect().clone();if(a&&p.applyTransform(a.transform),tT(e)&&(e=e([n,i],o,r.el,p,{viewSize:[s,l],contentSize:u.slice()})),tI(e))n=ro(e[0],s),i=ro(e[1],l);else if(tL(e)){var d=e;d.width=u[0],d.height=u[1];var f=l_(d,{width:s,height:l});n=f.x,i=f.y,h=null,c=null}else if(tC(e)&&a){var g=function(t,e,n,i){var r=n[0],o=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,h=e.height;switch(t){case"inside":s=e.x+u/2-r/2,l=e.y+h/2-o/2;break;case"top":s=e.x+u/2-r/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-r/2,l=e.y+h+a;break;case"left":s=e.x-r-a,l=e.y+h/2-o/2;break;case"right":s=e.x+u+a,l=e.y+h/2-o/2}return[s,l]}(e,p,u,t.get("borderWidth"));n=g[0],i=g[1]}else{var y,v,m,x,_,b,w,S,M,I,g=(y=n,v=i,m=r,x=s,_=l,b=h?null:20,w=c?null:20,M=(S=m.getSize())[0],I=S[1],null!=b&&(y+M+b+2>x?y-=M+b:y+=b),null!=w&&(v+I+w>_?v-=I+w:v+=w),[y,v]);n=g[0],i=g[1]}if(h&&(n-=Dr(h)?u[0]/2:"right"===h?u[0]:0),c&&(i-=Dr(c)?u[1]/2:"bottom"===c?u[1]:0),AK(t)){var T,C,A,D,L,k,P,O,g=(T=n,C=i,A=r,D=s,L=l,P=(k=A.getSize())[0],O=k[1],T=Math.min(T+P,D)-P,C=Math.min(C+O,L)-O,[T=Math.max(T,0),C=Math.max(C,0)]);n=g[0],i=g[1]}r.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,i=this._cbParamsList,r=!!n&&n.length===t.length;return r&&tm(n,function(n,o){var a=n.dataByAxis||[],s=(t[o]||{}).dataByAxis||[];(r=r&&a.length===s.length)&&tm(a,function(t,n){var o=s[n]||{},a=t.seriesDataIndices||[],l=o.seriesDataIndices||[];(r=r&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&a.length===l.length)&&tm(a,function(t,e){var n=l[e];r=r&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex}),i&&tm(t.seriesDataIndices,function(t){var n=t.seriesIndex,o=e[n],a=i[n];o&&a&&a.data!==o.data&&(r=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=e,!!r},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!X.node&&e.getDom()&&(pS(this,"_updatePosition"),this._tooltipContent.dispose(),TJ("itemTooltip",e))},e.type="tooltip",e}(hE);function Dn(t,e,n){var i,r=e.ecModel;n?(i=new sW(n,r,r),i=new sW(e.option,i,r)):i=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof sW&&(a=a.get("tooltip",!0)),tC(a)&&(a={formatter:a}),a&&(i=new sW(a,i,r)))}return i}function Di(t,e){return t.dispatchAction||tS(e.dispatchAction,e)}function Dr(t){return"center"===t||"middle"===t}var Do=["rect","polygon","keep","clear"];function Da(t,e){var n=rM(t?t.brush:[]);if(n.length){var i,r,o=[];tm(n,function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(o=o.concat(e))});var a=t&&t.toolbox;tI(a)&&(a=a[0]),a||(t.toolbox=[a={feature:{}}]);var s=a.feature||(a.feature={}),l=s.brush||(s.brush={}),u=l.type||(l.type=[]);u.push.apply(u,o),r={},tm(i=u,function(t){r[t]=1}),i.length=0,tm(r,function(t,e){i.push(e)}),e&&!u.length&&u.push.apply(u,Do)}}function Ds(t){if(t){for(var e in t)if(t.hasOwnProperty(e))return!0}}function Dl(t,e,n){var i={};return tm(e,function(e){var r,o=i[e]=((r=function(){}).prototype.__hidden=r.prototype,new r);tm(t[e],function(t,i){if(bb.isValidType(i)){var r={type:i,visual:t};n&&n(r,e),o[i]=new bb(r),"opacity"===i&&((r=th(r)).type="colorAlpha",o.__hidden.__alphaForOpacity=new bb(r))}})}),i}function Du(t,e,n){var i;tm(n,function(t){e.hasOwnProperty(t)&&Ds(e[t])&&(i=!0)}),i&&tm(n,function(n){e.hasOwnProperty(n)&&Ds(e[n])?t[n]=th(e[n]):delete t[n]})}var Dh={lineX:Dc(0),lineY:Dc(1),rect:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])},rect:function(t,e,n){return t&&n.boundingRect.intersect(t)}},polygon:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])&&xZ(n.range,t[0],t[1])},rect:function(t,e,n){var i=n.range;if(!t||i.length<=1)return!1;var r=t.x,o=t.y,a=t.width,s=t.height,l=i[0];if(xZ(i,r,o)||xZ(i,r+a,o)||xZ(i,r,o+s)||xZ(i,r+a,o+s)||eq.create(t).contain(l[0],l[1])||po(r,o,r+a,o,i)||po(r,o,r,o+s,i)||po(r+a,o,r+a,o+s,i)||po(r,o+s,r+a,o+s,i))return!0}}};function Dc(t){var e=["x","y"],n=["width","height"];return{point:function(e,n,i){if(e){var r=i.range;return Dp(e[t],r)}},rect:function(i,r,o){if(i){var a=o.range,s=[i[e[t]],i[e[t]]+i[n[t]]];return s[1]tg(s,a):a!==s)))&&(tm(d,function(i){e.brushTargetManager.controlSeries(i,n,t)&&r.push(i),p=p||y(r)}),g(i)&&y(r))){var o,a,s,l=n.getData();l.each(function(t){Dx(n,r,l,t)&&(h[t]=1)})}}(n,i,s)}),t.eachSeries(function(t,e){var n={seriesId:t.id,seriesIndex:e,seriesName:t.name,dataIndex:[]};a.selected.push(n);var i=c[e],r=t.getData(),o=g(e)?function(t){return h[t]?(n.dataIndex.push(r.getRawIndex(t)),"inBrush"):"outOfBrush"}:function(e){return Dx(t,i,r,e)?(n.dataIndex.push(r.getRawIndex(e)),"inBrush"):"outOfBrush"};(g(e)?p:y(i))&&function(t,e,n,i,r,o){var a,s={};function l(t){return pQ(n,a,t)}function u(t,e){p1(n,a,t,e)}function h(t,r){a=t;var o=n.getRawDataItem(a);if(!o||!1!==o.visualMap)for(var h=i.call(void 0,t),c=e[h],p=s[h],d=0,f=p.length;de[0][1]&&(e[0][1]=o[0]),o[1]e[1][1]&&(e[1][1]=o[1])}return e&&Db(e)}};function Db(t){return new eq(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var Dw=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return U(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new Sx(e.getZr())).on("brush",tS(this._onBrush,this)).mount()},e.prototype.render=function(t,e,n,i){this.model=t,this._updateController(t,e,n,i)},e.prototype.updateTransform=function(t,e,n,i){Dy(e),this._updateController(t,e,n,i)},e.prototype.updateVisual=function(t,e,n,i){this.updateTransform(t,e,n,i)},e.prototype.updateView=function(t,e,n,i){this._updateController(t,e,n,i)},e.prototype._updateController=function(t,e,n,i){i&&i.$from===t.id||this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var e=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:e,areas:th(n),$from:e}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:e,areas:th(n),$from:e})},e.type="brush",e}(hE),DS=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.areas=[],n.brushOption={},n}return U(e,t),e.prototype.optionUpdated=function(t,e){var n=this.option;e||Du(n,t,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:"#ddd"},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=tx(t,function(t){return DM(this.option,t)},this))},e.prototype.setBrushOption=function(t){this.brushOption=DM(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}(lC);function DM(t,e){return tc({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new sW(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}var DI=["rect","polygon","lineX","lineY","keep","clear"],DT=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return U(e,t),e.prototype.render=function(t,e,n){var i,r,o;e.eachComponent({mainType:"brush"},function(t){i=t.brushType,r=t.brushOption.brushMode||"single",o=o||!!t.areas.length}),this._brushType=i,this._brushMode=r,tm(t.get("type",!0),function(e){t.setIconStatus(e,("keep"===e?"multiple"===r:"clear"===e?o:e===i)?"emphasis":"normal")})},e.prototype.updateView=function(t,e,n){this.render(t,e,n)},e.prototype.getIcons=function(){var t=this.model,e=t.get("icon",!0),n={};return tm(t.get("type",!0),function(t){e[t]&&(n[t]=e[t])}),n},e.prototype.onclick=function(t,e,n){var i=this._brushType,r=this._brushMode;"clear"===n?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===r?"single":"multiple":r}})},e.getDefaultOption=function(t){return{show:!0,type:DI.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"])}},e}(Ay),DC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return U(e,t),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}(lC),DA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return U(e,t),e.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get("show")){var i=this.group,r=t.getModel("textStyle"),o=t.getModel("subtextStyle"),a=t.get("textAlign"),s=tE(t.get("textBaseline"),t.get("textVerticalAlign")),l=new aI({style:sw(r,{text:t.get("text"),fill:r.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),h=t.get("subtext"),c=new aI({style:sw(o,{text:h,fill:o.getTextColor(),y:u.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=t.get("link"),d=t.get("sublink"),f=t.get("triggerEvent",!0);l.silent=!p&&!f,c.silent=!d&&!f,p&&l.on("click",function(){ly(p,"_"+t.get("target"))}),d&&c.on("click",function(){ly(d,"_"+t.get("subtarget"))}),aT(l).eventData=aT(c).eventData=f?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(l),h&&i.add(c);var g=i.getBoundingRect(),y=t.getBoxLayoutParams();y.width=g.width,y.height=g.height;var v=l_(y,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));a||("middle"===(a=t.get("left")||t.get("right"))&&(a="center"),"right"===a?v.x+=v.width:"center"===a&&(v.x+=v.width/2)),s||("center"===(s=t.get("top")||t.get("bottom"))&&(s="middle"),"bottom"===s?v.y+=v.height:"middle"===s&&(v.y+=v.height/2),s=s||"top"),i.x=v.x,i.y=v.y,i.markRedraw();var m={align:a,verticalAlign:s};l.setStyle(m),c.setStyle(m),g=i.getBoundingRect();var x=v.margin,_=t.getItemStyle(["color","opacity"]);_.fill=t.get("backgroundColor");var b=new au({shape:{x:g.x-x[3],y:g.y-x[0],width:g.width+x[1]+x[3],height:g.height+x[0]+x[2],r:t.get("borderRadius")},style:_,subPixelOptimize:!0,silent:!0});i.add(b)}},e.type="title",e}(hE),DD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode="box",n}return U(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._initData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-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,e=this.option,n=e.data||[],i=e.axisType,r=this._names=[];"category"===i?(t=[],tm(n,function(e,n){var i,o=rk(rC(e),"");tL(e)?(i=th(e)).value=n:i=n,t.push(i),r.push(o)})):t=n,(this._data=new g1([{name:"value",type:{category:"ordinal",time:"time",value:"number"}[i]||"number"}],this)).initData(t,r)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if("category"===this.get("axisType"))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}(lC),DL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return U(e,t),e.type="timeline.slider",e.defaultOption=sY(DD.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}(DD);ty(DL,uB.prototype);var Dk=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return U(e,t),e.type="timeline",e}(hE),DP=function(t){function e(e,n,i,r){var o=t.call(this,e,n,i)||this;return o.type=r||"value",o}return U(e,t),e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},e}(mD),DO=Math.PI,DR=rN(),DN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return U(e,t),e.prototype.init=function(t,e){this.api=e},e.prototype.render=function(t,e,n){if(this.model=t,this.api=n,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,n),r=this._createGroup("_mainGroup"),o=this._createGroup("_labelGroup"),a=this._axis=this._createAxis(i,t);t.formatTooltip=function(t){return hf("nameValue",{noName:!0,value:a.scale.getLabel({value:t})})},tm(["AxisLine","AxisTick","Control","CurrentPointer"],function(e){this["_render"+e](i,r,a,t)},this),this._renderAxisLabel(i,o,a,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,e){var n,i,r,o,a,s,l=t.get(["label","position"]),u=t.get("orient"),h=(n=t,i=e,l_(n.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()},n.get("padding"))),c={horizontal:"center",vertical:(r=null==l||"auto"===l?"horizontal"===u?h.y+h.height/2=0||"+"===r?"left":"right"},p="vertical"===u?h.height:h.width,d=t.getModel("controlStyle"),f=d.get("show",!0),g=f?d.get("itemSize"):0,y=f?d.get("itemGap"):0,v=g+y,m=t.get(["label","rotate"])||0;m=m*DO/180;var x=d.get("position",!0),_=f&&d.get("showPlayBtn",!0),b=f&&d.get("showPrevBtn",!0),w=f&&d.get("showNextBtn",!0),S=0,M=p;"left"===x||"bottom"===x?(_&&(o=[0,0],S+=v),b&&(a=[S,0],S+=v)):(_&&(o=[M-g,0],M-=v),b&&(a=[0,0],S+=v)),w&&(s=[M-g,0],M-=v);var I=[S,M];return t.get("inverse")&&I.reverse(),{viewRect:h,mainLength:p,orient:u,rotation:({horizontal:0,vertical:DO/2})[u],labelRotation:m,labelPosOpt:r,labelAlign:t.get(["label","align"])||c[u],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||({horizontal:r>=0||"+"===r?"top":"bottom",vertical:"middle"})[u],playPosition:o,prevBtnPosition:a,nextBtnPosition:s,axisExtent:I,controlSize:g,controlGap:y}},e.prototype._position=function(t,e){var n=this._mainGroup,i=this._labelGroup,r=t.viewRect;if("vertical"===t.orient){var o=eP(),a=r.x,s=r.y+r.height;eE(o,o,[-a,-s]),ez(o,o,-DO/2),eE(o,o,[a,s]),(r=r.clone()).applyTransform(o)}var l=y(r),u=y(n.getBoundingRect()),h=y(i.getBoundingRect()),c=[n.x,n.y],p=[i.x,i.y];p[0]=c[0]=l[0][0];var d=t.labelPosOpt;if(null==d||tC(d)){var f=+("+"!==d);v(c,u,l,1,f),v(p,h,l,1,1-f)}else{var f=d>=0?0:1;v(c,u,l,1,f),p[1]=c[1]+d}function g(t){t.originX=l[0][0]-t.x,t.originY=l[1][0]-t.y}function y(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function v(t,e,n,i,r){t[i]+=n[i][r]-e[i][r]}n.setPosition(c),i.setPosition(p),n.rotation=i.rotation=t.rotation,g(n),g(i)},e.prototype._createAxis=function(t,e){var n=e.getData(),i=e.get("axisType"),r=function(t,e){if(e=e||t.get("type"))switch(e){case"category":return new vQ({ordinalMeta:t.getCategories(),extent:[1/0,-1/0]});case"time":return new v2({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new v0}}(e,i);r.getTicks=function(){return n.mapArray(["value"],function(t){return{value:t}})};var o=n.getDataExtent("value");r.setExtent(o[0],o[1]),r.calcNiceTicks();var a=new DP("value",r,t.axisExtent,i);return a.model=e,a},e.prototype._createGroup=function(t){var e=this[t]=new i9;return this.group.add(e),e},e.prototype._renderAxisLine=function(t,e,n,i){var r=n.getExtent();if(i.get(["lineStyle","show"])){var o=new cT({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:td({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});e.add(o);var a=this._progressLine=new cT({shape:{x1:r[0],x2:this._currentPointer?this._currentPointer.x:r[0],y1:0,y2:0},style:tf({lineCap:"round",lineWidth:o.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});e.add(a)}},e.prototype._renderAxisTick=function(t,e,n,i){var r=this,o=i.getData(),a=n.scale.getTicks();this._tickSymbols=[],tm(a,function(t){var a=n.dataToCoord(t.value),s=o.getItemModel(t.value),l=s.getModel("itemStyle"),u=s.getModel(["emphasis","itemStyle"]),h=s.getModel(["progress","itemStyle"]),c=DE(s,l,e,{x:a,y:0,onclick:tS(r._changeTimeline,r,t.value)});c.ensureState("emphasis").style=u.getItemStyle(),c.ensureState("progress").style=h.getItemStyle(),a8(c);var p=aT(c);s.get("tooltip")?(p.dataIndex=t.value,p.dataModel=i):p.dataIndex=p.dataModel=null,r._tickSymbols.push(c)})},e.prototype._renderAxisLabel=function(t,e,n,i){var r=this;if(n.getLabelModel().get("show")){var o=i.getData(),a=n.getViewLabels();this._tickLabels=[],tm(a,function(i){var a=i.tickValue,s=o.getItemModel(a),l=s.getModel("label"),u=s.getModel(["emphasis","label"]),h=s.getModel(["progress","label"]),c=new aI({x:n.dataToCoord(i.tickValue),y:0,rotation:t.labelRotation-t.rotation,onclick:tS(r._changeTimeline,r,a),silent:!1,style:sw(l,{text:i.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});c.ensureState("emphasis").style=sw(u),c.ensureState("progress").style=sw(h),e.add(c),a8(c),DR(c).dataIndex=a,r._tickLabels.push(c)})}},e.prototype._renderControl=function(t,e,n,i){var r=t.controlSize,o=t.rotation,a=i.getModel("controlStyle").getItemStyle(),s=i.getModel(["emphasis","controlStyle"]).getItemStyle(),l=i.getPlayState(),u=i.get("inverse",!0);function h(t,n,l,u){if(t){var h,c,p,d,f,g,y=iJ(tE(i.get(["controlStyle",n+"BtnSize"]),r),r),v=(h=i,c=n+"Icon",p=[0,-y/2,y,y],f=(d={x:t[0],y:t[1],originX:r/2,originY:0,rotation:u?-o:0,rectHover:!0,style:a,onclick:l}).style,g=pr(h.get(["controlStyle",c]),d||{},new eq(p[0],p[1],p[2],p[3])),f&&g.setStyle(f),g);v.ensureState("emphasis").style=s,e.add(v),a8(v)}}h(t.nextBtnPosition,"next",tS(this._changeTimeline,this,u?"-":"+")),h(t.prevBtnPosition,"prev",tS(this._changeTimeline,this,u?"+":"-")),h(t.playPosition,l?"stop":"play",tS(this._handlePlayClick,this,!l),!0)},e.prototype._renderCurrentPointer=function(t,e,n,i){var r=i.getData(),o=i.getCurrentIndex(),a=r.getItemModel(o).getModel("checkpointStyle"),s=this;this._currentPointer=DE(a,a,this._mainGroup,{},this._currentPointer,{onCreate:function(t){t.draggable=!0,t.drift=tS(s._handlePointerDrag,s),t.ondragend=tS(s._handlePointerDragend,s),Dz(t,s._progressLine,o,n,i,!0)},onUpdate:function(t){Dz(t,s._progressLine,o,n,i)}})},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,e){var n=this._toAxisCoord(t)[0],i=rs(this._axis.getExtent().slice());n>i[1]&&(n=i[1]),n=0&&(a[o]=+a[o].toFixed(c)),[a,h]}var Dj={min:tM(DZ,"min"),max:tM(DZ,"max"),average:tM(DZ,"average"),median:tM(DZ,"median")};function Dq(t,e){if(e){var n,i=t.getData(),r=t.coordinateSystem,o=r&&r.dimensions;if(!(!isNaN(parseFloat((n=e).x))&&!isNaN(parseFloat(n.y)))&&!tI(e.coord)&&tI(o)){var a=DK(e,i,r,t);if((e=th(e)).type&&Dj[e.type]&&a.baseAxis&&a.valueAxis){var s=tg(o,a.baseAxis.dim),l=tg(o,a.valueAxis.dim),u=Dj[e.type](i,a.baseDataDim,a.valueDataDim,s,l);e.coord=u[0],e.value=u[1]}else e.coord=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis]}if(null!=e.coord&&tI(o))for(var h=e.coord,c=0;c<2;c++)Dj[h[c]]&&(h[c]=DQ(i,i.mapDimension(o[c]),h[c]));else e.coord=[];return e}}function DK(t,e,n,i){var r,o,a,s={};return null!=t.valueIndex||null!=t.valueDim?(s.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,s.valueAxis=n.getAxis((r=i,o=s.valueDataDim,(a=r.getData().getDimensionInfo(o))&&a.coordDim)),s.baseAxis=n.getOtherAxis(s.valueAxis),s.baseDataDim=e.mapDimension(s.baseAxis.dim)):(s.baseAxis=i.getBaseAxis(),s.valueAxis=n.getOtherAxis(s.baseAxis),s.baseDataDim=e.mapDimension(s.baseAxis.dim),s.valueDataDim=e.mapDimension(s.valueAxis.dim)),s}function D$(t,e){return!t||!t.containData||!e.coord||!!DX(e)||t.containData(e.coord)}function DJ(t,e){return t?function(t,n,i,r){return uZ(r<2?t.coord&&t.coord[r]:t.value,e[r])}:function(t,n,i,r){return uZ(t.value,e[r])}}function DQ(t,e,n){if("average"===n){var i=0,r=0;return t.each(e,function(t,e){!isNaN(t)&&(i+=t,r++)}),i/r}return"median"===n?t.getMedian(e):t.getDataExtent(e)[+("max"===n)]}var D0=rN(),D1=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return U(e,t),e.prototype.init=function(){this.markerGroupMap=tX()},e.prototype.render=function(t,e,n){var i=this,r=this.markerGroupMap;r.each(function(t){D0(t).keep=!1}),e.eachSeries(function(t){var r=DU.getMarkerModelFromSeries(t,i.type);r&&i.renderSeries(t,r,e,n)}),r.each(function(t){D0(t).keep||i.group.remove(t.group)})},e.prototype.markKeep=function(t){D0(t).keep=!0},e.prototype.toggleBlurSeries=function(t,e){var n=this;tm(t,function(t){var i=DU.getMarkerModelFromSeries(t,n.type);i&&i.getData().eachItemGraphicEl(function(t){t&&(e?aZ(t,aH):aZ(t,aU))})})},e.type="marker",e}(hE);function D2(t,e,n){var i=e.coordinateSystem;t.each(function(r){var o,a=t.getItemModel(r),s=ro(a.get("x"),n.getWidth()),l=ro(a.get("y"),n.getHeight());if(isNaN(s)||isNaN(l)){if(e.getMarkerPosition)o=e.getMarkerPosition(t.getValues(t.dimensions,r));else if(i){var u=t.get(i.dimensions[0],r),h=t.get(i.dimensions[1],r);o=i.dataToPoint([u,h])}}else o=[s,l];isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),t.setItemLayout(r,o)})}var D5=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return U(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries(function(t){var e=DU.getMarkerModelFromSeries(t,"markPoint");e&&(D2(e.getData(),t,n),this.markerGroupMap.get(t.id).updateLayout())},this)},e.prototype.renderSeries=function(t,e,n,i){var r,o,a,s,l,u,h,c=t.coordinateSystem,p=t.id,d=t.getData(),f=this.markerGroupMap,g=f.get(p)||f.set(p,new ys),y=(r=c,o=t,a=e,l=new g1(s=r?tx(r&&r.dimensions,function(t){return td(td({},o.getData().getDimensionInfo(o.getData().mapDimension(t))||{}),{name:t,ordinalMeta:null})}):[{name:"value",type:"float"}],a),u=tx(a.get("data"),tM(Dq,o)),r&&(u=tb(u,tM(D$,r))),h=DJ(!!r,s),l.initData(u,null,h),l);e.setData(y),D2(e.getData(),t,i),y.each(function(t){var n=y.getItemModel(t),i=n.getShallow("symbol"),r=n.getShallow("symbolSize"),o=n.getShallow("symbolRotate"),a=n.getShallow("symbolOffset"),s=n.getShallow("symbolKeepAspect");if(tT(i)||tT(r)||tT(o)||tT(a)){var l=e.getRawValue(t),u=e.getDataParams(t);tT(i)&&(i=i(l,u)),tT(r)&&(r=r(l,u)),tT(o)&&(o=o(l,u)),tT(a)&&(a=a(l,u))}var h=n.getModel("itemStyle").getItemStyle(),c=p0(d,"color");h.fill||(h.fill=c),y.setItemVisual(t,{symbol:i,symbolSize:r,symbolRotate:o,symbolOffset:a,symbolKeepAspect:s,style:h})}),g.updateData(y),this.group.add(g.group),y.eachItemGraphicEl(function(t){t.traverse(function(t){aT(t).dataModel=e})}),this.markKeep(g),g.group.silent=e.get("silent")||t.get("silent")},e.type="markPoint",e}(D1),D3=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return U(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},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}(DU),D4=rN(),D6=function(t,e,n,i){var r,o=t.getData();if(tI(i))r=i;else{var a=i.type;if("min"===a||"max"===a||"average"===a||"median"===a||null!=i.xAxis||null!=i.yAxis){var s=void 0,l=void 0;if(null!=i.yAxis||null!=i.xAxis)s=e.getAxis(null!=i.yAxis?"y":"x"),l=tN(i.yAxis,i.xAxis);else{var u=DK(i,o,e,t);s=u.valueAxis;var h=g8(o,u.valueDataDim);l=DQ(o,h,a)}var c=+("x"!==s.dim),p=1-c,d=th(i),f={coord:[]};d.type=null,d.coord=[],d.coord[p]=-1/0,f.coord[p]=1/0;var g=n.get("precision");g>=0&&tD(l)&&(l=+l.toFixed(Math.min(g,20))),d.coord[c]=f.coord[c]=l,r=[d,f,{type:a,valueIndex:i.valueIndex,value:l}]}else r=[]}var y=[Dq(t,r[0]),Dq(t,r[1]),td({},r[2])];return y[2].type=y[2].type||null,tc(y[2],y[0]),tc(y[2],y[1]),y};function D8(t){return!isNaN(t)&&!isFinite(t)}function D7(t,e,n,i){var r=1-t,o=i.dimensions[t];return D8(e[r])&&D8(n[r])&&e[t]===n[t]&&i.getAxis(o).containData(e[t])}function D9(t,e){if("cartesian2d"===t.type){var n=e[0].coord,i=e[1].coord;if(n&&i&&(D7(1,n,i,t)||D7(0,n,i,t)))return!0}return D$(t,e[0])&&D$(t,e[1])}function Lt(t,e,n,i,r){var o,a=i.coordinateSystem,s=t.getItemModel(e),l=ro(s.get("x"),r.getWidth()),u=ro(s.get("y"),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition)o=i.getMarkerPosition(t.getValues(t.dimensions,e));else{var h=a.dimensions,c=t.get(h[0],e),p=t.get(h[1],e);o=a.dataToPoint([c,p])}if(yM(a,"cartesian2d")){var d=a.getAxis("x"),f=a.getAxis("y"),h=a.dimensions;D8(t.get(h[0],e))?o[0]=d.toGlobalCoord(d.getExtent()[+!n]):D8(t.get(h[1],e))&&(o[1]=f.toGlobalCoord(f.getExtent()[+!n]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];t.setItemLayout(e,o)}var Le=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return U(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries(function(t){var e=DU.getMarkerModelFromSeries(t,"markLine");if(e){var i=e.getData(),r=D4(e).from,o=D4(e).to;r.each(function(e){Lt(r,e,!0,t,n),Lt(o,e,!1,t,n)}),i.each(function(t){i.setItemLayout(t,[r.getItemLayout(t),o.getItemLayout(t)])}),this.markerGroupMap.get(t.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,e,n,i){var r,o,a,s,l,u,h,c,p,d=t.coordinateSystem,f=t.id,g=t.getData(),y=this.markerGroupMap,v=y.get(f)||y.set(f,new wv);this.group.add(v.group);var m=(r=d,o=t,a=e,l=new g1(s=r?tx(r&&r.dimensions,function(t){return td(td({},o.getData().getDimensionInfo(o.getData().mapDimension(t))||{}),{name:t,ordinalMeta:null})}):[{name:"value",type:"float"}],a),u=new g1(s,a),h=new g1([],a),c=tx(a.get("data"),tM(D6,o,r,a)),r&&(c=tb(c,tM(D9,r))),p=DJ(!!r,s),l.initData(tx(c,function(t){return t[0]}),null,p),u.initData(tx(c,function(t){return t[1]}),null,p),h.initData(tx(c,function(t){return t[2]})),h.hasItemOption=!0,{from:l,to:u,line:h}),x=m.from,_=m.to,b=m.line;D4(e).from=x,D4(e).to=_,e.setData(b);var w=e.get("symbol"),S=e.get("symbolSize"),M=e.get("symbolRotate"),I=e.get("symbolOffset");function T(e,n,r){var o=e.getItemModel(n);Lt(e,n,r,t,i);var a=o.getModel("itemStyle").getItemStyle();null==a.fill&&(a.fill=p0(g,"color")),e.setItemVisual(n,{symbolKeepAspect:o.get("symbolKeepAspect"),symbolOffset:tE(o.get("symbolOffset",!0),I[+!r]),symbolRotate:tE(o.get("symbolRotate",!0),M[+!r]),symbolSize:tE(o.get("symbolSize"),S[+!r]),symbol:tE(o.get("symbol",!0),w[+!r]),style:a})}tI(w)||(w=[w,w]),tI(S)||(S=[S,S]),tI(M)||(M=[M,M]),tI(I)||(I=[I,I]),m.from.each(function(t){T(x,t,!0),T(_,t,!1)}),b.each(function(t){var e=b.getItemModel(t).getModel("lineStyle").getLineStyle();b.setItemLayout(t,[x.getItemLayout(t),_.getItemLayout(t)]),null==e.stroke&&(e.stroke=x.getItemVisual(t,"style").fill),b.setItemVisual(t,{fromSymbolKeepAspect:x.getItemVisual(t,"symbolKeepAspect"),fromSymbolOffset:x.getItemVisual(t,"symbolOffset"),fromSymbolRotate:x.getItemVisual(t,"symbolRotate"),fromSymbolSize:x.getItemVisual(t,"symbolSize"),fromSymbol:x.getItemVisual(t,"symbol"),toSymbolKeepAspect:_.getItemVisual(t,"symbolKeepAspect"),toSymbolOffset:_.getItemVisual(t,"symbolOffset"),toSymbolRotate:_.getItemVisual(t,"symbolRotate"),toSymbolSize:_.getItemVisual(t,"symbolSize"),toSymbol:_.getItemVisual(t,"symbol"),style:e})}),v.updateData(b),m.line.eachItemGraphicEl(function(t){aT(t).dataModel=e,t.traverse(function(t){aT(t).dataModel=e})}),this.markKeep(v),v.group.silent=e.get("silent")||t.get("silent")},e.type="markLine",e}(D1),Ln=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return U(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},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}(DU),Li=rN(),Lr=function(t,e,n,i){var r=i[0],o=i[1];if(r&&o){var a=Dq(t,r),s=Dq(t,o),l=a.coord,u=s.coord;l[0]=tN(l[0],-1/0),l[1]=tN(l[1],-1/0),u[0]=tN(u[0],1/0),u[1]=tN(u[1],1/0);var h=tp([{},a,s]);return h.coord=[a.coord,s.coord],h.x0=a.x,h.y0=a.y,h.x1=s.x,h.y1=s.y,h}};function Lo(t){return!isNaN(t)&&!isFinite(t)}function La(t,e,n,i){var r=1-t;return Lo(e[r])&&Lo(n[r])}function Ls(t,e){var n=e.coord[0],i=e.coord[1],r={coord:n,x:e.x0,y:e.y0},o={coord:i,x:e.x1,y:e.y1};if(yM(t,"cartesian2d"))return!!(n&&i&&(La(1,n,i,t)||La(0,n,i,t)))||!t||!t.containZone||!r.coord||!o.coord||!!DX(r)||!!DX(o)||t.containZone(r.coord,o.coord);return D$(t,r)||D$(t,o)}function Ll(t,e,n,i,r){var o,a=i.coordinateSystem,s=t.getItemModel(e),l=ro(s.get(n[0]),r.getWidth()),u=ro(s.get(n[1]),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition){var h=t.getValues(["x0","y0"],e),c=t.getValues(["x1","y1"],e),p=a.clampData(h),d=a.clampData(c),f=[];"x0"===n[0]?f[0]=p[0]>d[0]?c[0]:h[0]:f[0]=p[0]>d[0]?h[0]:c[0],"y0"===n[1]?f[1]=p[1]>d[1]?c[1]:h[1]:f[1]=p[1]>d[1]?h[1]:c[1],o=i.getMarkerPosition(f,n,!0)}else{var g=t.get(n[0],e),y=t.get(n[1],e),v=[g,y];a.clampData&&a.clampData(v,v),o=a.dataToPoint(v,!0)}if(yM(a,"cartesian2d")){var m=a.getAxis("x"),x=a.getAxis("y"),g=t.get(n[0],e),y=t.get(n[1],e);Lo(g)?o[0]=m.toGlobalCoord(m.getExtent()[+("x0"!==n[0])]):Lo(y)&&(o[1]=x.toGlobalCoord(x.getExtent()[+("y0"!==n[1])]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];return o}var Lu=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],Lh=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return U(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries(function(t){var e=DU.getMarkerModelFromSeries(t,"markArea");if(e){var i=e.getData();i.each(function(e){var r=tx(Lu,function(r){return Ll(i,e,r,t,n)});i.setItemLayout(e,r),i.getItemGraphicEl(e).setShape("points",r)})}},this)},e.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,{group:new i9});this.group.add(l.group),this.markKeep(l);var u=function(t,e,n){if(t){var i,r,o=tx(t&&t.dimensions,function(t){var n=e.getData();return td(td({},n.getDimensionInfo(n.mapDimension(t))||{}),{name:t,ordinalMeta:null})});i=new g1(r=tx(["x0","y0","x1","y1"],function(t,e){return{name:t,type:o[e%2].type}}),n)}else i=new g1(r=[{name:"value",type:"float"}],n);var a=tx(n.get("data"),tM(Lr,e,t,n));t&&(a=tb(a,tM(Ls,t)));var s=t?function(t,e,n,i){return uZ(t.coord[Math.floor(i/2)][i%2],r[i])}:function(t,e,n,i){return uZ(t.value,r[i])};return i.initData(a,null,s),i.hasItemOption=!0,i}(r,t,e);e.setData(u),u.each(function(e){var n=tx(Lu,function(n){return Ll(u,e,n,t,i)}),o=r.getAxis("x").scale,s=r.getAxis("y").scale,l=o.getExtent(),h=s.getExtent(),c=[o.parse(u.get("x0",e)),o.parse(u.get("x1",e))],p=[s.parse(u.get("y0",e)),s.parse(u.get("y1",e))];rs(c),rs(p);var d=!(l[0]>c[1]||l[1]p[1]||h[1]=0},e.prototype.getOrient=function(){return"vertical"===this.get("orient")?{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}(lC),Lp=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return U(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new i9),this.group.add(this._selectorGroup=new i9),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,e,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var r=t.get("align"),o=t.get("orient");r&&"auto"!==r||(r="right"===t.get("left")&&"vertical"===o?"right":"left");var a=t.get("selector",!0),s=t.get("selectorPosition",!0);a&&(!s||"auto"===s)&&(s="horizontal"===o?"end":"start"),this.renderInner(r,t,e,n,a,o,s);var l=t.getBoxLayoutParams(),u={width:n.getWidth(),height:n.getHeight()},h=t.get("padding"),c=l_(l,u,h),p=this.layoutInner(t,r,c,i,a,s),d=l_(tf({width:p.width,height:p.height},l),u,h);this.group.x=d.x-p.x,this.group.y=d.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=Ax(p,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,e,n,i,r,o,a){var s=this.getContentGroup(),l=tX(),u=e.get("selectedMode"),h=[];n.eachRawSeries(function(t){t.get("legendHoverLink")||h.push(t.id)}),tm(e.getData(),function(r,o){var a=r.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var c=new i9;c.newline=!0,s.add(c);return}var p=n.getSeriesByName(a)[0];if(!l.get(a))if(p){var d=p.getData(),f=d.getVisual("legendLineStyle")||{},g=d.getVisual("legendIcon"),y=d.getVisual("style"),v=this._createItem(p,a,o,r,e,t,f,y,g,u,i);v.on("click",tM(Ld,a,null,i,h)).on("mouseover",tM(Lg,p.name,null,i,h)).on("mouseout",tM(Ly,p.name,null,i,h)),n.ssr&&v.eachChild(function(t){var e=aT(t);e.seriesIndex=p.seriesIndex,e.dataIndex=o,e.ssrType="legend"}),l.set(a,!0)}else n.eachRawSeries(function(s){if(!l.get(a)&&s.legendVisualProvider){var c=s.legendVisualProvider;if(c.containName(a)){var p=c.indexOfName(a),d=c.getItemVisual(p,"style"),f=c.getItemVisual(p,"legendIcon"),g=nW(d.fill);g&&0===g[3]&&(g[3]=.2,d=td(td({},d),{fill:nj(g,"rgba")}));var y=this._createItem(s,a,o,r,e,t,{},d,f,u,i);y.on("click",tM(Ld,null,a,i,h)).on("mouseover",tM(Lg,null,a,i,h)).on("mouseout",tM(Ly,null,a,i,h)),n.ssr&&y.eachChild(function(t){var e=aT(t);e.seriesIndex=s.seriesIndex,e.dataIndex=o,e.ssrType="legend"}),l.set(a,!0)}}},this)},this),r&&this._createSelector(r,e,i,o,a)},e.prototype._createSelector=function(t,e,n,i,r){var o=this.getSelectorGroup();tm(t,function(t){var i=t.type,r=new aI({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect",legendId:e.id})}});o.add(r),s_(r,{normal:e.getModel("selectorLabel"),emphasis:e.getModel(["emphasis","selectorLabel"])},{defaultText:t.title}),a8(r)})},e.prototype._createItem=function(t,e,n,i,r,o,a,s,l,u,h){var c=t.visualDrawType,p=r.get("itemWidth"),d=r.get("itemHeight"),f=r.isSelected(e),g=i.get("symbolRotate"),y=i.get("symbolKeepAspect"),v=i.get("icon"),m=function(t,e,n,i,r,o,a){function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=2*(e.lineWidth>0)),tm(t,function(n,i){"inherit"===t[i]&&(t[i]=e[i])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),h=0===t.lastIndexOf("empty",0)?"fill":"stroke",c=l.getShallow("decal");u.decal=c&&"inherit"!==c?dR(c,a):i.decal,"inherit"===u.fill&&(u.fill=i[r]),"inherit"===u.stroke&&(u.stroke=i[h]),"inherit"===u.opacity&&(u.opacity=("fill"===r?i:n).opacity),s(u,i);var p=e.getModel("lineStyle"),d=p.getLineStyle();if(s(d,n),"auto"===u.fill&&(u.fill=i.fill),"auto"===u.stroke&&(u.stroke=i.fill),"auto"===d.stroke&&(d.stroke=i.fill),!o){var f=e.get("inactiveBorderWidth"),g=u[h];u.lineWidth="auto"===f?i.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),d.stroke=p.get("inactiveColor"),d.lineWidth=p.get("inactiveWidth")}return{itemStyle:u,lineStyle:d}}(l=v||l||"roundRect",i,a,s,c,f,h),x=new i9,_=i.getModel("textStyle");if(tT(t.getLegendIcon)&&(!v||"inherit"===v))x.add(t.getLegendIcon({itemWidth:p,itemHeight:d,icon:l,iconRotate:g,itemStyle:m.itemStyle,lineStyle:m.lineStyle,symbolKeepAspect:y}));else{var b,w,S,M="inherit"===v&&t.getData().getVisual("symbol")?"inherit"===g?t.getData().getVisual("symbolRotate"):g:0;x.add(((S=ds(w=(b={itemWidth:p,itemHeight:d,icon:l,iconRotate:M,itemStyle:m.itemStyle,lineStyle:m.lineStyle,symbolKeepAspect:y}).icon||"roundRect",0,0,b.itemWidth,b.itemHeight,b.itemStyle.fill,b.symbolKeepAspect)).setStyle(b.itemStyle),S.rotation=(b.iconRotate||0)*Math.PI/180,S.setOrigin([b.itemWidth/2,b.itemHeight/2]),w.indexOf("empty")>-1&&(S.style.stroke=S.style.fill,S.style.fill="#fff",S.style.lineWidth=2),S))}var I=r.get("formatter"),T=e;tC(I)&&I?T=I.replace("{name}",null!=e?e:""):tT(I)&&(T=I(e));var C=f?_.getTextColor():i.get("inactiveColor");x.add(new aI({style:sw(_,{text:T,x:"left"===o?p+5:-5,y:d/2,fill:C,align:o,verticalAlign:"middle"},{inheritColor:C})}));var A=new au({shape:x.getBoundingRect(),style:{fill:"transparent"}}),D=i.getModel("tooltip");return D.get("show")&&ps({el:A,componentModel:r,itemName:e,itemTooltipOption:D.option}),x.add(A),x.eachChild(function(t){t.silent=!0}),A.silent=!u,this.getContentGroup().add(x),a8(x),x.__legendDataIndex=n,x},e.prototype.layoutInner=function(t,e,n,i,r,o){var a=this.getContentGroup(),s=this.getSelectorGroup();lx(t.get("orient"),a,t.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),!r)return a.x=u[0],a.y=u[1],this.group.getBoundingRect();lx("horizontal",s,t.get("selectorItemGap",!0));var h=s.getBoundingRect(),c=[-h.x,-h.y],p=t.get("selectorButtonGap",!0),d=t.getOrient().index,f=0===d?"width":"height",g=0===d?"height":"width",y=0===d?"y":"x";"end"===o?c[d]+=l[f]+p:u[d]+=h[f]+p,c[1-d]+=l[g]/2-h[g]/2,s.x=c[0],s.y=c[1],a.x=u[0],a.y=u[1];var v={x:0,y:0};return v[f]=l[f]+p+h[f],v[g]=Math.max(l[g],h[g]),v[y]=Math.min(0,h[y]+c[1-d]),v},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(hE);function Ld(t,e,n,i){Ly(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),Lg(t,e,n,i)}function Lf(t){for(var e,n=t.getZr().storage.getDisplayList(),i=0,r=n.length;in[r],f=[-c.x,-c.y];e||(f[i]=l[s]);var g=[0,0],y=[-p.x,-p.y],v=tE(t.get("pageButtonGap",!0),t.get("itemGap",!0));d&&("end"===t.get("pageButtonPosition",!0)?y[i]+=n[r]-p[r]:g[i]+=p[r]+v),y[1-i]+=c[o]/2-p[o]/2,l.setPosition(f),u.setPosition(g),h.setPosition(y);var m={x:0,y:0};if(m[r]=d?n[r]:c[r],m[o]=Math.max(c[o],p[o]),m[a]=Math.min(0,p[a]+y[1-i]),u.__rectSize=n[r],d){var x={x:0,y:0};x[r]=Math.max(n[r]-p[r]-v,0),x[o]=m[o],u.setClipPath(new au({shape:x})),u.__rectSize=x[r]}else h.eachChild(function(t){t.attr({invisible:!0,silent:!0})});var _=this._getPageInfo(t);return null!=_.pageIndex&&sh(l,{x:_.contentPosition[0],y:_.contentPosition[1]},d?t:null),this._updatePageInfoView(t,_),m},e.prototype._pageGo=function(t,e,n){var i=this._getPageInfo(e)[t];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:e.id})},e.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup;tm(["pagePrev","pageNext"],function(i){var r=null!=e[i+"DataIndex"],o=n.childOfName(i);o&&(o.setStyle("fill",r?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),o.cursor=r?"pointer":"default")});var i=n.childOfName("pageText"),r=t.get("pageFormatter"),o=e.pageIndex,a=null!=o?o+1:0,s=e.pageCount;i&&r&&i.setStyle("text",tC(r)?r.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):r({current:a,total:s}))},e.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=t.getOrient().index,o=LS[r],a=LM[r],s=this._findTargetItemIndex(e),l=n.children(),u=l[s],h=l.length,c=+!!h,p={contentPosition:[n.x,n.y],pageCount:c,pageIndex:c-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return p;var d=m(u);p.contentPosition[r]=-d.s;for(var f=s+1,g=d,y=d,v=null;f<=h;++f)(!(v=m(l[f]))&&y.e>g.s+i||v&&!x(v,g.s))&&(g=y.i>g.i?y:v)&&(null==p.pageNextDataIndex&&(p.pageNextDataIndex=g.i),++p.pageCount),y=v;for(var f=s-1,g=d,y=d,v=null;f>=-1;--f)(!(v=m(l[f]))||!x(y,v.s))&&g.i=e&&t.s<=e+i}},e.prototype._findTargetItemIndex=function(t){var e,n;return this._showController?(this.getContentGroup().eachChild(function(i,r){var o=i.__legendDataIndex;null==n&&null!=o&&(n=r),o===t&&(e=r)}),null!=e?e:n):0},e.type="legend.scroll",e}(Lp);function LT(t){fu(L_),t.registerComponentModel(Lb),t.registerComponentView(LI),t.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(t){t.setScrollDataIndex(n)})})}var LC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return U(e,t),e.type="dataZoom.inside",e.defaultOption=sY(Aa.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(Aa),LA=rN();function LD(t,e){if(e){t.removeKey(e.model.uid);var n=e.controller;n&&n.dispose()}}function LL(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function Lk(t,e,n,i){return t.coordinateSystem.containPoint([n,i])}var LP=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return U(e,t),e.prototype.render=function(e,n,i){var r;if(t.prototype.render.apply(this,arguments),e.noTarget())return void this._clear();this.range=e.getPercentRange(),r={pan:tS(LO.pan,this),zoom:tS(LO.zoom,this),scrollMove:tS(LO.scrollMove,this)},LA(i).coordSysRecordMap.each(function(t){var n=t.dataZoomInfoMap.get(e.uid);n&&(n.getRange=r)})},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){!function(t,e){for(var n=LA(t).coordSysRecordMap,i=n.keys(),r=0;r0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/i.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var h=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(w9(0,o,[0,100],0,h.minSpan,h.maxSpan),this.range=o,r[0]!==o[0]||r[1]!==o[1])return o}},pan:LR(function(t,e,n,i,r,o){var a=LN[i]([o.oldX,o.oldY],[o.newX,o.newY],e,r,n);return a.signal*(t[1]-t[0])*a.pixel/a.pixelLength}),scrollMove:LR(function(t,e,n,i,r,o){return LN[i]([0,0],[o.scrollDelta,o.scrollDelta],e,r,n).signal*(t[1]-t[0])*o.scrollDelta})};function LR(t){return function(e,n,i,r){var o=this.range,a=o.slice(),s=e.axisModels[0];if(s&&(w9(t(a,s,e,n,i,r),a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1]))return a}}var LN={grid:function(t,e,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem.getRect();return t=t||[0,0],"x"===o.dim?(a.pixel=e[0]-t[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(t,e,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===n.mainType?(a.pixel=e[0]-t[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?-1:1),a},singleAxis:function(t,e,n,i,r){var o=n.axis,a=r.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===o.orient?(s.pixel=e[0]-t[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}};function LE(t){Af(t),t.registerComponentModel(LC),t.registerComponentView(LP),t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,function(t,e){var n=LA(e),i=n.coordSysRecordMap||(n.coordSysRecordMap=tX());i.each(function(t){t.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(t){tm(Ar(t).infoList,function(n){var r,o,a,s=n.model.uid,l=i.get(s)||i.set(s,(a=(o={model:r=n.model,containsPoint:tM(Lk,r),dispatchAction:tM(LL,e),dataZoomInfoMap:null,controller:null}).controller=new xv(e.getZr()),tm(["pan","zoom","scrollMove"],function(t){a.on(t,function(e){var n=[];o.dataZoomInfoMap.each(function(i){if(e.isAvailableBehavior(i.model.option)){var r=(i.getRange||{})[t],a=r&&r(i.dzReferCoordSysInfo,o.model.mainType,o.controller,e);!i.model.get("disabled",!0)&&a&&n.push({dataZoomId:i.model.id,start:a[0],end:a[1]})}}),n.length&&o.dispatchAction(n)})}),o));(l.dataZoomInfoMap||(l.dataZoomInfoMap=tX())).set(t.uid,{dzReferCoordSysInfo:n,model:t,getRange:null})})}),i.each(function(t){var e,n,r,o,a,s=t.controller,l=t.dataZoomInfoMap;if(l){var u=l.keys()[0];null!=u&&(a=l.get(u))}if(!a)return void LD(i,t);var h=(n="type_",r={type_true:2,type_move:1,type_false:0,type_undefined:-1},o=!0,l.each(function(t){var i=t.model,a=!i.get("disabled",!0)&&(!i.get("zoomLock",!0)||"move");r[n+a]>r[n+e]&&(e=a),o=o&&i.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o}});s.enable(h.controlType,h.opt),s.setPointerChecker(t.containsPoint),pw(t,"dispatchAction",a.model.get("throttle",!0),"fixRate")})})}var Lz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return U(e,t),e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=sY(Aa.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:{handleLabel:{show:!0},handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(Aa),LB="horizontal",LV="vertical",LF=["line","bar","candlestick","scatter"],LG={easing:"cubicOut",duration:100,delay:0},LW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._displayables={},n}return U(e,t),e.prototype.init=function(t,e){this.api=e,this._onBrush=tS(this._onBrush,this),this._onBrushEnd=tS(this._onBrushEnd,this)},e.prototype.render=function(e,n,i,r){if(t.prototype.render.apply(this,arguments),pw(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),!1===e.get("show"))return void this.group.removeAll();if(e.noTarget()){this._clear(),this.group.removeAll();return}r&&"dataZoom"===r.type&&r.from===this.uid||this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){pS(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 e=this._displayables.sliderGroup=new i9;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,e=this.api,n=t.get("brushSelect"),i=this._findCoordRect(),r={width:e.getWidth(),height:e.getHeight()},o=this._orient===LB?{right:r.width-i.x-i.width,top:r.height-30-7-7*!!n,width:i.width,height:30}:{right:7,top:i.y,width:30,height:i.height},a=lM(t.option);tm(["right","top","width","height"],function(t){"ph"===a[t]&&(a[t]=o[t])});var s=l_(a,r);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],this._orient===LV&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,e=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),r=i&&i.get("inverse"),o=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==LB||r?n===LB&&r?{scaleY:a?1:-1,scaleX:-1}:n!==LV||r?{scaleY:a?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:a?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:a?1:-1,scaleX:1});var s=t.getBoundingRect([o]);t.x=e.x-s.x,t.y=e.y-s.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.sliderGroup,i=t.get("brushSelect");n.add(new au({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var r=new au({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:tS(this._onClickPanel,this)}),o=this.api.getZr();i?(r.on("mousedown",this._onBrushStart,this),r.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)),n.add(r)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],t){var e=this._size,n=this._shadowSize||[],i=t.series,r=i.getRawData(),o=i.getShadowDim&&i.getShadowDim(),a=o&&r.getDimensionInfo(o)?i.getShadowDim():t.otherDim;if(null!=a){var s=this._shadowPolygonPts,l=this._shadowPolylinePts;if(r!==this._shadowData||a!==this._shadowDim||e[0]!==n[0]||e[1]!==n[1]){var u,h=r.getDataExtent(a),c=(h[1]-h[0])*.3;h=[h[0]-c,h[1]+c];var p=[0,e[1]],d=[0,e[0]],f=[[e[0],0],[0,0]],g=[],y=d[1]/(r.count()-1),v=0,m=Math.round(r.count()/e[0]);r.each([a],function(t,e){if(m>0&&e%m){v+=y;return}var n=null==t||isNaN(t)||""===t,i=n?0:rr(t,h,p,!0);n&&!u&&e?(f.push([f[f.length-1][0],0]),g.push([g[g.length-1][0],0])):!n&&u&&(f.push([v,0]),g.push([v,0])),f.push([v,i]),g.push([v,i]),v+=y,u=n}),s=this._shadowPolygonPts=f,l=this._shadowPolylinePts=g}this._shadowData=r,this._shadowDim=a,this._shadowSize=[e[0],e[1]];for(var x=this.dataZoomModel,_=0;_<3;_++){var b=function(t){var e=x.getModel(t?"selectedDataBackground":"dataBackground"),n=new i9,i=new cx({shape:{points:s},segmentIgnoreThreshold:1,style:e.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),r=new cw({shape:{points:l},segmentIgnoreThreshold:1,style:e.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(i),n.add(r),n}(1===_);this._displayables.sliderGroup.add(b),this._displayables.dataShadowSegs.push(b)}}}},e.prototype._prepareDataShadowInfo=function(){var t,e=this.dataZoomModel,n=e.get("showDataShadow");if(!1!==n){var i=this.ecModel;return e.eachTargetAxis(function(r,o){tm(e.getAxisProxy(r,o).getTargetSeriesModels(),function(e){if(!t&&!(!0!==n&&0>tg(LF,e.get("type")))){var a,s=i.getComponent(Ai(r),o).axis,l={x:"y",y:"x",radius:"angle",angle:"radius"}[r],u=e.coordinateSystem;null!=l&&u.getOtherAxis&&(a=u.getOtherAxis(s).inverse),l=e.getData().mapDimension(l),t={thisAxis:s,series:e,thisDim:r,otherDim:l,otherAxisInverse:a}}},this)},this),t}},e.prototype._renderHandle=function(){var t=this.group,e=this._displayables,n=e.handles=[null,null],i=e.handleLabels=[null,null],r=this._displayables.sliderGroup,o=this._size,a=this.dataZoomModel,s=this.api,l=a.get("borderRadius")||0,u=a.get("brushSelect"),h=e.filler=new au({silent:u,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});r.add(h),r.add(new au({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:l},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),tm([0,1],function(e){var o=a.get("handleIcon");!di[o]&&0>o.indexOf("path://")&&0>o.indexOf("image://")&&(o="path://"+o);var s=ds(o,-1,0,2,2,null,!0);s.attr({cursor:LH(this._orient),draggable:!0,drift:tS(this._onDragMove,this,e),ondragend:tS(this._onDragEnd,this),onmouseover:tS(this._showDataInfo,this,!0),onmouseout:tS(this._showDataInfo,this,!1),z2:5});var l=s.getBoundingRect(),u=a.get("handleSize");this._handleHeight=ro(u,this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,s.setStyle(a.getModel("handleStyle").getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState("emphasis").style=a.getModel(["emphasis","handleStyle"]).getItemStyle(),a8(s);var h=a.get("handleColor");null!=h&&(s.style.fill=h),r.add(n[e]=s);var c=a.getModel("textStyle"),p=(a.get("handleLabel")||{}).show||!1;t.add(i[e]=new aI({silent:!0,invisible:!p,style:sw(c,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:c.getTextColor(),font:c.getFont()}),z2:10}))},this);var c=h;if(u){var p=ro(a.get("moveHandleSize"),o[1]),d=e.moveHandle=new au({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:p}}),f=.8*p,g=e.moveHandleIcon=ds(a.get("moveHandleIcon"),-f/2,-f/2,f,f,"#fff",!0);g.silent=!0,g.y=o[1]+p/2-.5,d.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(o[1]/2,Math.max(p,10));(c=e.moveZone=new au({invisible:!0,shape:{y:o[1]-y,height:p+y}})).on("mouseover",function(){s.enterEmphasis(d)}).on("mouseout",function(){s.leaveEmphasis(d)}),r.add(d),r.add(g),r.add(c)}c.attr({draggable:!0,cursor:LH(this._orient),drift:tS(this._onDragMove,this,"all"),ondragstart:tS(this._showDataInfo,this,!0),ondragend:tS(this._onDragEnd,this),onmouseover:tS(this._showDataInfo,this,!0),onmouseout:tS(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[rr(t[0],[0,100],e,!0),rr(t[1],[0,100],e,!0)]},e.prototype._updateInterval=function(t,e){var n=this.dataZoomModel,i=this._handleEnds,r=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];w9(e,i,r,n.get("zoomLock")?"all":t,null!=o.minSpan?rr(o.minSpan,a,r,!0):null,null!=o.maxSpan?rr(o.maxSpan,a,r,!0):null);var s=this._range,l=this._range=rs([rr(i[0],r,a,!0),rr(i[1],r,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},e.prototype._updateView=function(t){var e=this._displayables,n=this._handleEnds,i=rs(n.slice()),r=this._size;tm([0,1],function(t){var i=e.handles[t],o=this._handleHeight;i.attr({scaleX:o/2,scaleY:o/2,x:n[t]+(t?-1:1),y:r[1]/2-o/2})},this),e.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:r[1]});var o={x:i[0],width:i[1]-i[0]};e.moveHandle&&(e.moveHandle.setShape(o),e.moveZone.setShape(o),e.moveZone.getBoundingRect(),e.moveHandleIcon&&e.moveHandleIcon.attr("x",o.x+o.width/2));for(var a=e.dataShadowSegs,s=[0,i[0],i[1],r[0]],l=0;le[0])&&!(n[1]<0)&&!(n[1]>e[1])){var i=this._handleEnds,r=(i[0]+i[1])/2,o=this._updateInterval("all",n[0]-r);this._updateView(),o&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var e=t.offsetX,n=t.offsetY;this._brushStart=new eF(e,n),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var e=this._displayables.brushRect;if(this._brushing=!1,e){e.attr("ignore",!0);var n=e.shape;if(!(new Date-this._brushStartTime<200&&5>Math.abs(n.width))){var i=this._getViewExtent(),r=[0,100];this._range=rs([rr(n.x,i,r,!0),rr(n.x+n.width,i,r,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(eC(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,e){var n=this._displayables,i=this.dataZoomModel,r=n.brushRect;r||(r=n.brushRect=new au({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(r)),r.attr("ignore",!1);var o=this._brushStart,a=this._displayables.sliderGroup,s=a.transformCoordToLocal(t,e),l=a.transformCoordToLocal(o.x,o.y),u=this._size;s[0]=Math.max(Math.min(u[0],s[0]),0),r.setShape({x:l[0],y:0,width:s[0]-l[0],height:u[1]})},e.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?LG:null,start:e[0],end:e[1]})},e.prototype._findCoordRect=function(){var t,e=Ar(this.dataZoomModel).infoList;if(!t&&e.length){var n=e[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var i=this.api.getWidth(),r=this.api.getHeight();t={x:.2*i,y:.2*r,width:.6*i,height:.6*r}}return t},e.type="dataZoom.slider",e}(Au);function LH(t){return"vertical"===t?"ns-resize":"ew-resize"}function LU(t){t.registerComponentModel(Lz),t.registerComponentView(LW),Af(t)}var LY={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]}};let LX={get:function(t,e,n){var i=th((LY[t]||{})[e]);return n&&tI(i)?i[i.length-1]:i}};var LZ=bb.mapVisual,Lj=bb.eachVisual,Lq=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return U(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,e){var n=this.option;e||Du(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var e=this.stateList;t=tS(t,this),this.controllerVisuals=Dl(this.option.controller,e,t),this.targetVisuals=Dl(this.option.target,e,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,e=[];return null==t||"all"===t?this.ecModel.eachSeries(function(t,n){e.push(n)}):e=rM(t),e},e.prototype.eachTargetSeries=function(t,e){tm(this.getTargetSeriesIndices(),function(n){var i=this.ecModel.getSeriesByIndex(n);i&&t.call(e,i)},this)},e.prototype.isTargetSeries=function(t){var e=!1;return this.eachTargetSeries(function(n){n===t&&(e=!0)}),e},e.prototype.formatValueText=function(t,e,n){var i,r=this.option,o=r.precision,a=this.dataBound,s=r.formatter;n=n||["<",">"],tI(t)&&(t=t.slice(),i=!0);var l=e?t:i?[u(t[0]),u(t[1])]:u(t);if(tC(s))return s.replace("{value}",i?l[0]:l).replace("{value2}",i?l[1]:l);if(tT(s))return i?s(t[0],t[1]):s(t);if(!i)return l;if(t[0]===a[0])return n[0]+" "+l[1];if(t[1]===a[1])return n[1]+" "+l[0];return l[0]+" - "+l[1];function u(t){return t===a[0]?"min":t===a[1]?"max":(+t).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,e=rs([t.min,t.max]);this._dataExtent=e},e.prototype.getDataDimensionIndex=function(t){var e=this.option.dimension;if(null!=e)return t.getDimensionIndex(e);for(var n=t.dimensions,i=n.length-1;i>=0;i--){var r=n[i],o=t.getDimensionInfo(r);if(!o.isCalculationCoord)return o.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,e=this.option,n={inRange:e.inRange,outOfRange:e.outOfRange},i=e.target||(e.target={}),r=e.controller||(e.controller={});tc(i,n),tc(r,n);var o=this.isCategory();function a(n){tI(e.color)&&!n.inRange&&(n.inRange={color:e.color.slice().reverse()}),n.inRange=n.inRange||{color:t.get("gradientColor")}}a.call(this,i),a.call(this,r),(function(t,e,n){var i=t[e],r=t[n];i&&!r&&(r=t[n]={},tm(i,function(t,e){if(bb.isValidType(e)){var n=LX.get(e,"inactive",o);null!=n&&(r[e]=n,"color"!==e||r.hasOwnProperty("opacity")||r.hasOwnProperty("colorAlpha")||(r.opacity=[0,0]))}}))}).call(this,i,"inRange","outOfRange"),(function(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,i=this.get("inactiveColor"),r=this.getItemSymbol()||"roundRect";tm(this.stateList,function(a){var s=this.itemSize,l=t[a];l||(l=t[a]={color:o?i:[i]}),null==l.symbol&&(l.symbol=e&&th(e)||(o?r:[r])),null==l.symbolSize&&(l.symbolSize=n&&th(n)||(o?s[0]:[s[0],s[0]])),l.symbol=LZ(l.symbol,function(t){return"none"===t?r:t});var u=l.symbolSize;if(null!=u){var h=-1/0;Lj(u,function(t){t>h&&(h=t)}),l.symbolSize=LZ(u,function(t){return rr(t,[0,h],[0,s[0]],!0)})}},this)}).call(this,r)},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}(lC),LK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return U(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){t.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(null==e[0]||isNaN(e[0]))&&(e[0]=20),(null==e[1]||isNaN(e[1]))&&(e[1]=140)},e.prototype._resetRange=function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):tI(e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},e.prototype.completeVisualOption=function(){t.prototype.completeVisualOption.apply(this,arguments),tm(this.stateList,function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=e[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),e=rs((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]=n[1]||t<=e[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[];return this.eachTargetSeries(function(n){var i=[],r=n.getData();r.each(this.getDataDimensionIndex(r),function(e,n){t[0]<=e&&e<=t[1]&&i.push(n)},this),e.push({seriesId:n.id,dataIndex:i})},this),e},e.prototype.getVisualMeta=function(t){var e=L$(this,"outOfRange",this.getExtent()),n=L$(this,"inRange",this.option.range.slice()),i=[];function r(e,n){i.push({value:e,color:t(e,n)})}for(var o=0,a=0,s=n.length,l=e.length;at[1])break;n.push({color:this.getControllerVisual(o,"color",e),offset:r/100})}return n.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),n},e.prototype._createBarPoints=function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},e.prototype._createBarGroup=function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new i9("horizontal"===e&&!n?{scaleX:"bottom"===t?1:-1,rotation:Math.PI/2}:"horizontal"===e&&n?{scaleX:"bottom"===t?-1:1,rotation:-Math.PI/2}:"vertical"===e&&!n?{scaleX:"left"===t?1:-1,scaleY:-1}:{scaleX:"left"===t?1:-1})},e.prototype._updateHandle=function(t,e){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,r=n.handleThumbs,o=n.handleLabels,a=i.itemSize,s=i.getExtent(),l=this._applyTransform("left",n.mainGroup);tm([0,1],function(u){var h=r[u];h.setStyle("fill",e.handlesColor[u]),h.y=t[u];var c=rr(t[u],[0,a[1]],s,!0),p=this.getControllerVisual(c,"symbolSize");h.scaleX=h.scaleY=p/a[0],h.x=a[0]-p/2;var d=c9(n.handleLabelPoints[u],c7(h,this.group));if("horizontal"===this._orient){var f="left"===l||"top"===l?(a[0]-p)/2:-((a[0]-p)/2);d[1]+=f}o[u].setStyle({x:d[0],y:d[1],text:i.formatValueText(this._dataInterval[u]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,e,n,i){var r=this.visualMapModel,o=r.getExtent(),a=r.itemSize,s=[0,a[1]],l=this._shapes,u=l.indicator;if(u){u.attr("invisible",!1);var h=this.getControllerVisual(t,"color",{convertOpacityToAlpha:!0}),c=this.getControllerVisual(t,"symbolSize"),p=rr(t,o,s,!0),d=a[0]-c/2,f={x:u.x,y:u.y};u.y=p,u.x=d;var g=c9(l.indicatorLabelPoint,c7(u,this.group)),y=l.indicatorLabel;y.attr("invisible",!1);var v=this._applyTransform("left",l.mainGroup),m="horizontal"===this._orient;y.setStyle({text:(n||"")+r.formatValueText(e),verticalAlign:m?v:"middle",align:m?"center":v});var x={x:d,y:p,style:{fill:h}},_={style:{x:g[0],y:g[1]}};if(r.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var b={duration:100,easing:"cubicInOut",additive:!0};u.x=f.x,u.y=f.y,u.animateTo(x,b),y.animateTo(_,b)}else u.attr(x),y.attr(_);this._firstShowIndicator=!1;var w=this._shapes.handleLabels;if(w)for(var S=0;Su[1]&&(f[1]=1/0),e&&(f[0]===-1/0?this._showIndicator(d,f[1],"< ",c):f[1]===1/0?this._showIndicator(d,f[0],"> ",c):this._showIndicator(d,d,"≈ ",c));var g=this._hoverLinkDataIndices,y=[];(e||L6(n))&&(y=this._hoverLinkDataIndices=n.findTargetDataIndices(f));var v=function(t,e){var n={},i={};return r(t||[],n),r(e||[],i,n),[o(n),o(i)];function r(t,e,n){for(var i=0,r=t.length;i=0&&(r.dimension=o,i.push(r))}}),t.getData().setVisual("visualMeta",i)}}];function ke(t,e,n,i){for(var r=e.targetVisuals[i],o=bb.prepareVisualTypes(r),a={color:p0(t.getData(),"color")},s=0,l=o.length;s0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"}),t.registerAction(L7,L9),tm(kt,function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)}),t.registerPreprocessor(kn))}function ka(t){t.registerComponentModel(LK),t.registerComponentView(L3),ko(t)}var ks=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._pieceList=[],n}return U(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],kl[this._mode].call(this,this._pieceList),this._resetSelected(e,n);var r=this.option.categories;this.resetVisual(function(t,e){"categories"===i?(t.mappingMethod="category",t.categories=th(r)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=tx(this._pieceList,function(t){return t=th(t),"inRange"!==e&&(t.visual=null),t}))})},e.prototype.completeVisualOption=function(){var e=this.option,n={},i=bb.listVisualTypes(),r=this.isCategory();function o(t,e,n){return t&&t[e]&&t[e].hasOwnProperty(n)}tm(e.pieces,function(t){tm(i,function(e){t.hasOwnProperty(e)&&(n[e]=1)})}),tm(n,function(t,n){var i=!1;tm(this.stateList,function(t){i=i||o(e,t,n)||o(e.target,t,n)},this),i||tm(this.stateList,function(t){(e[t]||(e[t]={}))[n]=LX.get(n,"inRange"===t?"active":"inactive",r)})},this),t.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,e){var n=this.option,i=this._pieceList,r=(e?n:t).selected||{};if(n.selected=r,tm(i,function(t,e){var n=this.getSelectedMapKey(t);r.hasOwnProperty(n)||(r[n]=!0)},this),"single"===n.selectedMode){var o=!1;tm(i,function(t,e){var n=this.getSelectedMapKey(t);r[n]&&(o?r[n]=!1:o=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return"categories"===this._mode?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=th(t)},e.prototype.getValueState=function(t){var e=bb.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[],n=this._pieceList;return this.eachTargetSeries(function(i){var r=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(e,i){bb.findPieceIndex(e,n)===t&&r.push(i)},this),e.push({seriesId:i.id,dataIndex:r})},this),e},e.prototype.getRepresentValue=function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var n=t.interval||[];e=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return e},e.prototype.getVisualMeta=function(t){if(!this.isCategory()){var e=[],n=["",""],i=this,r=this._pieceList.slice();if(r.length){var o=r[0].interval[0];o!==-1/0&&r.unshift({interval:[-1/0,o]}),(o=r[r.length-1].interval[1])!==1/0&&r.push({interval:[o,1/0]})}else r.push({interval:[-1/0,1/0]});var a=-1/0;return tm(r,function(t){var e=t.interval;e&&(e[0]>a&&s([a,e[0]],"outOfRange"),s(e.slice()),a=e[1])},this),{stops:e,outerColors:n}}function s(r,o){var a=i.getRepresentValue({interval:r});o||(o=i.getValueState(a));var s=t(a,o);r[0]===-1/0?n[0]=s:r[1]===1/0?n[1]=s:e.push({value:r[0],color:s},{value:r[1],color:s})}},e.type="visualMap.piecewise",e.defaultOption=sY(Lq.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}(Lq),kl={splitNumber:function(t){var e=this.option,n=Math.min(e.precision,20),i=this.getExtent(),r=e.splitNumber;e.splitNumber=r=Math.max(parseInt(r,10),1);for(var o=(i[1]-i[0])/r;+o.toFixed(n)!==o&&n<5;)n++;e.precision=n,o=+o.toFixed(n),e.minOpen&&t.push({interval:[-1/0,i[0]],close:[0,0]});for(var a=0,s=i[0];a","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,n)},this)}};function ku(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}var kh=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return U(e,t),e.prototype.doRender=function(){var t=this.group;t.removeAll();var e=this.visualMapModel,n=e.get("textGap"),i=e.textStyleModel,r=i.getFont(),o=i.getTextColor(),a=this._getItemAlign(),s=e.itemSize,l=this._getViewData(),u=l.endsText,h=tN(e.get("showLabel",!0),!u),c=!e.get("selectedMode");u&&this._renderEndsText(t,u[0],s,h,a),tm(l.viewPieceList,function(i){var l=i.piece,u=new i9;u.onclick=tS(this._onItemClick,this,l),this._enableHoverLink(u,i.indexInModelPieceList);var p=e.getRepresentValue(l);if(this._createItemSymbol(u,p,[0,0,s[0],s[1]],c),h){var d=this.visualMapModel.getValueState(p);u.add(new aI({style:{x:"right"===a?-n:s[0]+n,y:s[1]/2,text:l.text,verticalAlign:"middle",align:a,font:r,fill:o,opacity:"outOfRange"===d?.5:1},silent:c}))}t.add(u)},this),u&&this._renderEndsText(t,u[1],s,h,a),lx(e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,e){var n=this;t.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(t){var i=n.visualMapModel;i.option.hoverLink&&n.api.dispatchAction({type:t,batch:L1(i.findTargetDataIndices(e),i)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return L0(t,this.api,t.itemSize);var n=e.align;return n&&"auto"!==n||(n="left"),n},e.prototype._renderEndsText=function(t,e,n,i,r){if(e){var o=new i9,a=this.visualMapModel.textStyleModel;o.add(new aI({style:sw(a,{x:i?"right"===r?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?r:"center",text:e})})),t.add(o)}},e.prototype._getViewData=function(){var t=this.visualMapModel,e=tx(t.getPieceList(),function(t,e){return{piece:t,indexInModelPieceList:e}}),n=t.get("text"),i=t.get("orient"),r=t.get("inverse");return("horizontal"===i?r:!r)?e.reverse():n&&(n=n.slice().reverse()),{viewPieceList:e,endsText:n}},e.prototype._createItemSymbol=function(t,e,n,i){var r=ds(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color"));r.silent=i,t.add(r)},e.prototype._onItemClick=function(t){var e=this.visualMapModel,n=e.option,i=n.selectedMode;if(i){var r=th(n.selected),o=e.getSelectedMapKey(t);"single"===i||!0===i?(r[o]=!0,tm(r,function(t,e){r[e]=e===o})):r[o]=!r[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})}},e.type="visualMap.piecewise",e}(LJ);function kc(t){t.registerComponentModel(ks),t.registerComponentView(kh),ko(t)}var kp={label:{enabled:!0},decal:{show:!1}},kd=rN(),kf={};function kg(t,e){var n=t.getModel("aria");if(n.get("enabled")){var i=th(kp);tc(i.label,t.getLocaleModel().get("aria"),!1),tc(n.option,i,!1),function(){if(n.getModel("decal").get("show")){var e=tX();t.eachSeries(function(t){if(!t.isColorBySeries()){var n=e.get(t.type);n||(n={},e.set(t.type,n)),kd(t).scope=n}}),t.eachRawSeries(function(e){if(!t.isSeriesFiltered(e)){if(tT(e.enableAriaDecal))return void e.enableAriaDecal();var n=e.getData();if(e.isColorBySeries()){var i=lK(e.ecModel,e.name,kf,t.getSeriesCount()),r=n.getVisual("decal");n.setVisual("decal",u(r,i))}else{var o=e.getRawData(),a={},s=kd(e).scope;n.each(function(t){a[n.getRawIndex(t)]=t});var l=o.count();o.each(function(t){var i=a[t],r=o.getName(t)||t+"",h=lK(e.ecModel,r,s,l),c=n.getItemVisual(i,"decal");n.setItemVisual(i,"decal",u(c,h))})}}function u(t,e){var n=t?td(td({},e),t):e;return n.dirty=!0,n}})}}(),function(){var i,o=e.getZr().dom;if(o){var a=t.getLocaleModel().get("aria"),s=n.getModel("label");if(s.option=tf(s.option,a),s.get("enabled")){if(o.setAttribute("role","img"),s.get("description"))return o.setAttribute("aria-label",s.get("description"));var l,u=t.getSeriesCount(),h=s.get(["data","maxCount"])||10,c=Math.min(u,s.get(["series","maxCount"])||10);if(u<1)return;var p=((l=t.get("title"))&&l.length&&(l=l[0]),l&&l.text);i=p?r(s.get(["general","withTitle"]),{title:p}):s.get(["general","withoutTitle"]);var d=[];i+=r(u>1?s.get(["series","multiple","prefix"]):s.get(["series","single","prefix"]),{seriesCount:u}),t.eachSeries(function(e,n){if(n1?s.get(["series","multiple",l]):s.get(["series","single",l]),{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:(i=e.subType,(o=t.getLocaleModel().get(["series","typeNames"]))[i]||o.chart)});var p=e.getData();p.count()>h?a+=r(s.get(["data","partialData"]),{displayCnt:h}):a+=s.get(["data","allData"]);for(var f=s.get(["data","separator","middle"]),g=s.get(["data","separator","end"]),y=s.get(["data","excludeDimensionId"]),v=[],m=0;m":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},km=function(){function t(t){null==(this._condVal=tC(t)?new RegExp(t):"[object RegExp]"===Q.call(t)?t:null)&&uX("")}return t.prototype.evaluate=function(t){var e=typeof t;return tC(e)?this._condVal.test(t):!!tD(e)&&this._condVal.test(t+"")},t}(),kx=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),k_=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;eMath.abs(t-e)}function kO(t){var e,n,i,r,o,a=t.data,s=t.len(),l=[],u=0,h=0,c=0,p=0;function d(t,n){e&&e.length>2&&l.push(e),e=[t,n]}function f(t,n,i,r){kP(t,i)&&kP(n,r)||e.push(t,n,i,r,i,r)}for(var g=0;gS:T2&&l.push(e),l}function kR(t,e,n){var i=Math.ceil(Math.sqrt(Math.abs(t[e]/t[1-e])*n)),r=Math.floor(n/i);0===r&&(r=1,i=n);for(var o=[],a=0;a0)for(var a=0;aMath.abs(l),h=kR([s,l],+!u,e),c=(u?a:l)/h.length,p=0;pa?(u.x=h.x=s+o/2,u.y=l,h.y=l+a):(u.y=h.y=l+a/2,u.x=s,h.x=s+o),function(t,e,n){for(var i=t.length,r=[],o=0;oMath.abs(p))return null;var d=((t-r)*c-h*(e-o))/p;return d<0||d>1?null:new eF(d*l+t,d*u+e)}(a[0],a[1],s[0],s[1],e.x,e.y,n.x,n.y);l&&r.push({projPt:function(t,e,n){var i=new eF;eF.sub(i,n,e),i.normalize();var r=new eF;return eF.sub(r,t,e),r.dot(i)}(l,e,n),pt:l,idx:o})}if(r.length<2)return[{points:t},{points:t}];r.sort(function(t,e){return t.projPt-e.projPt});var u=r[0],h=r[r.length-1];if(h.idx0;l/=2){var u=0,h=0;(t&l)>0&&(u=1),(e&l)>0&&(h=1),s+=l*l*(3*u^h),0===h&&(1===u&&(t=l-1-t,e=l-1-e),a=t,t=e,e=a)}return s}(o[0],o[1],e,n,i,r),path:t[a]}}).sort(function(t,e){return t.z-e.z}).map(function(t){return t.path})}function kq(t){return function(t,e){var n,i=[],r=t.shape;switch(t.type){case"rect":!function(t,e,n){for(var i=t.width,r=t.height,o=i>r,a=kR([i,r],+!o,e),s=o?"width":"height",l=o?"height":"width",u=o?"x":"y",h=o?"y":"x",c=t[s]/a.length,p=0;p=0&&b-S*S=0)return void u.push(s,l);var M=[],I=[];nm(e,i,o,s,.5,M),nm(n,r,a,l,.5,I),t(M[0],I[0],M[1],I[1],M[2],I[2],M[3],I[3],u,h),t(M[4],I[4],M[5],I[5],M[6],I[6],M[7],I[7],u,h)}(s,l,h,c,p,d,f,g,a,e),s=f,l=g}i.push(a)}return i}(t.getUpdatedPathProxy(),a),function(t){for(var e=[],n=0;n=0;r--)if(!n[r].many.length){var l=n[s].many;if(l.length<=1)if(!s)return n;else s=0;var o=l.length,u=Math.ceil(o/2);n[r].many=l.slice(u,o),n[s].many=l.slice(0,u),s++}return n}var kJ={clone:function(t){for(var e=[],n=1-Math.pow(1-t.path.style.opacity,1/t.count),i=0;i0){var u=i.getModel("universalTransition").get("delay"),h=Object.assign({setToFinal:!0},l);tI(t[0])&&(a=t,s=e),tI(e[0])&&(a=e,s=t);for(var c=a?a===t:t.length>e.length,p=a?k$(s,a):k$(c?e:t,[c?t:e]),d=0,f=0;f1e4))for(var r=n.getIndices(),o=0;o0&&i.group.traverse(function(t){t instanceof o4&&!t.animators.length&&t.animateFrom({style:{opacity:0}},r)})})}function k7(t){var e=t.getModel("universalTransition").get("seriesKey");return e||t.id}function k9(t){return tI(t)?t.sort().join(","):t}function Pt(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function Pe(t,e){for(var n=0;n=0&&r.push({dataGroupId:i.oldDataGroupIds[e],data:i.oldData[e],divide:Pt(i.oldData[e]),groupIdDim:t.dimension})}),tm(rM(t.to),function(t){var e=Pe(n.updatedSeries,t);if(e>=0){var r=n.updatedSeries[e].getData();o.push({dataGroupId:i.oldDataGroupIds[e],data:r,divide:Pt(r),groupIdDim:t.dimension})}}),r.length>0&&o.length>0&&k8(r,o,e)});else{var o,a,s,l=(o=tX(),a=tX(),s=tX(),tm(i.oldSeries,function(t,e){var n=i.oldDataGroupIds[e],r=i.oldData[e],o=k7(t),l=k9(o);a.set(l,{dataGroupId:n,data:r}),tI(o)&&tm(o,function(t){s.set(t,{key:l,dataGroupId:n,data:r})})}),tm(n.updatedSeries,function(t){if(t.isUniversalTransitionEnabled()&&t.isAnimationEnabled()){var e=t.get("dataGroupId"),n=t.getData(),i=k7(t),r=k9(i),l=a.get(r);if(l)o.set(r,{oldSeries:[{dataGroupId:l.dataGroupId,divide:Pt(l.data),data:l.data}],newSeries:[{dataGroupId:e,divide:Pt(n),data:n}]});else if(tI(i)){var u=[];tm(i,function(t){var e=a.get(t);e.data&&u.push({dataGroupId:e.dataGroupId,divide:Pt(e.data),data:e.data})}),u.length&&o.set(r,{oldSeries:u,newSeries:[{dataGroupId:e,data:n,divide:Pt(n)}]})}else{var h=s.get(i);if(h){var c=o.get(h.key);c||(c={oldSeries:[{dataGroupId:h.dataGroupId,data:h.data,divide:Pt(h.data)}],newSeries:[]},o.set(h.key,c)),c.newSeries.push({dataGroupId:e,data:n,divide:Pt(n)})}}}}),o);tm(l.keys(),function(t){var n=l.get(t);k8(n.oldSeries,n.newSeries,e)})}tm(n.updatedSeries,function(t){t[hC]&&(t[hC]=!1)})}for(var u=t.getSeries(),h=i.oldSeries=[],c=i.oldDataGroupIds=[],p=i.oldData=[],d=0;df.count()&&(h.push(u[d]),c.push(u[d].get("dataGroupId")),p.push(f))}})}),fu(fG)},7247:(t,e)=>{e.read=function(t,e,n,i,r){var o,a,s=8*r-i-1,l=(1<>1,h=-7,c=n?r-1:0,p=n?-1:1,d=t[e+c];for(c+=p,o=d&(1<<-h)-1,d>>=-h,h+=s;h>0;o=256*o+t[e+c],c+=p,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=i;h>0;a=256*a+t[e+c],c+=p,h-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,i),o-=u}return(d?-1:1)*a*Math.pow(2,o-i)},e.write=function(t,e,n,i,r,o){var a,s,l,u=8*o-r-1,h=(1<>1,p=5960464477539062e-23*(23===r),d=i?0:o-1,f=i?1:-1,g=+(e<0||0===e&&1/e<0);for(isNaN(e=Math.abs(e))||e===1/0?(s=+!!isNaN(e),a=h):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+c>=1?e+=p/l:e+=p*Math.pow(2,1-c),e*l>=2&&(a++,l/=2),a+c>=h?(s=0,a=h):a+c>=1?(s=(e*l-1)*Math.pow(2,r),a+=c):(s=e*Math.pow(2,c-1)*Math.pow(2,r),a=0));r>=8;t[n+d]=255&s,d+=f,s/=256,r-=8);for(a=a<0;t[n+d]=255&a,d+=f,a/=256,u-=8);t[n+d-f]|=128*g}}}]); \ No newline at end of file diff --git a/net-guardia/static/web/_next/static/chunks/597-536a1ec6d7dc1ed9.js b/net-guardia/static/web/_next/static/chunks/597-536a1ec6d7dc1ed9.js new file mode 100644 index 0000000..9f1a2eb --- /dev/null +++ b/net-guardia/static/web/_next/static/chunks/597-536a1ec6d7dc1ed9.js @@ -0,0 +1,9 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[597],{5096:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var i=n(7876),r=n(4232),s=n(7328),a=n.n(s),o=n(6463),l=n(8230),c=n.n(l),d=n(9099),h=n(6848),p=n(1772),u=n(1041);let x=[{href:"/",icon:u.v02,label:"Home"},{href:"/dashboard",icon:u.xiI,label:"Dashboard"},{href:"/statistics",icon:u.$Fj,label:"Statistics"},{href:"/access-control",icon:u.imB,label:"Access Control"},{href:"/detection",icon:u.UBk,label:"Detection"}],m=e=>{let{children:t}=e,n=(0,d.useRouter)(),[s,a]=(0,r.useState)(!1),o=e=>"/"===e?"/"===n.pathname:n.pathname.startsWith(e),l={expanded:{x:0,opacity:1},collapsed:{x:-10,opacity:0}};return(0,i.jsxs)("div",{className:"flex min-h-screen bg-gray-100",children:[(0,i.jsxs)(h.P.aside,{className:"fixed top-0 left-0 h-screen bg-gradient-to-br from-slate-800 to-slate-700 text-white flex flex-col shadow-lg z-50 overflow-hidden",initial:"expanded",animate:s?"collapsed":"expanded",variants:{expanded:{width:"240px"},collapsed:{width:"80px"}},transition:{duration:.3,ease:"easeInOut"},children:[(0,i.jsxs)("div",{className:"flex items-center justify-between p-4 border-b border-white/10 min-h-[70px]",children:[!s&&(0,i.jsx)(c(),{href:"/",className:"no-underline text-inherit",children:(0,i.jsx)(h.P.h1,{className:"text-2xl font-bold text-blue-400 m-0 whitespace-nowrap",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},children:"NetGuardia"})}),(0,i.jsx)("button",{onClick:()=>{a(!s)},className:"bg-transparent border-none text-white cursor-pointer p-2 rounded-md flex items-center justify-center w-10 h-10 hover:bg-white/10 transition-colors duration-200",children:(0,i.jsx)(p.g,{icon:u.ckx})})]}),(0,i.jsx)("nav",{className:"flex-1 py-4 flex flex-col gap-2",children:x.map(e=>(0,i.jsxs)(c(),{href:e.href,className:"\n flex items-center no-underline transition-all duration-200 relative mx-2 rounded-lg\n ".concat(s?"px-2 py-2 justify-center h-12 w-12":"px-4 py-3","\n ").concat(o(e.href)?"bg-blue-600 text-white shadow-lg shadow-blue-600/30":"text-slate-300 hover:bg-white/10 hover:text-white","\n "),children:[(0,i.jsx)("div",{className:"flex items-center justify-center flex-shrink-0 w-6 h-6",children:(0,i.jsx)(p.g,{icon:e.icon,className:"text-lg"})}),!s&&(0,i.jsx)(h.P.span,{className:"font-medium whitespace-nowrap overflow-hidden ml-3",variants:l,initial:"expanded",animate:s?"collapsed":"expanded",transition:{duration:.2},children:e.label})]},e.href))})]}),(0,i.jsx)("div",{className:"flex-1 flex flex-col transition-all duration-300 ".concat(s?"ml-20":"ml-60"),children:(0,i.jsx)("section",{className:"flex-1 p-8",children:(0,i.jsx)("div",{className:"max-w-full mx-auto",children:t})})})]})},f=e=>{let{children:t,title:n="NetGuardia",description:r="NetGuardia"}=e,s="".concat(o.hX,"/logo.png");return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(a(),{children:[(0,i.jsx)("title",{children:n}),(0,i.jsx)("meta",{name:"description",content:r}),(0,i.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),(0,i.jsx)("link",{rel:"icon",href:"/favicon.ico"}),(0,i.jsx)("meta",{property:"og:type",content:"website"}),(0,i.jsx)("meta",{property:"og:title",content:n}),(0,i.jsx)("meta",{property:"og:description",content:r}),(0,i.jsx)("meta",{property:"og:url",content:o.hX}),(0,i.jsx)("meta",{property:"og:image",content:s}),(0,i.jsx)("meta",{property:"og:image:width",content:"200"}),(0,i.jsx)("meta",{property:"og:image:height",content:"200"}),(0,i.jsx)("meta",{property:"og:image:alt",content:"NetGuardia"}),(0,i.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,i.jsx)("meta",{name:"twitter:title",content:n}),(0,i.jsx)("meta",{name:"twitter:description",content:r}),(0,i.jsx)("meta",{name:"twitter:image",content:s})]}),(0,i.jsx)(m,{children:t})]})}},7212:(e,t,n)=>{"use strict";n.d(t,{N:()=>j});var i=n(7876),r=n(4232),s=n(5048),a=n(1200),o=n(181),l=n(3866),c=n(7990),d=n(9751);class h extends r.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=t.offsetParent,n=(0,c.s)(e)&&e.offsetWidth||0,i=this.props.sizeRef.current;i.height=t.offsetHeight||0,i.width=t.offsetWidth||0,i.top=t.offsetTop,i.left=t.offsetLeft,i.right=n-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function p({children:e,isPresent:t,anchorX:n,root:s}){let a=(0,r.useId)(),o=(0,r.useRef)(null),l=(0,r.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:c}=(0,r.useContext)(d.Q);return(0,r.useInsertionEffect)(()=>{let{width:e,height:i,top:r,left:d,right:h}=l.current;if(t||!o.current||!e||!i)return;let p="left"===n?`left: ${d}`:`right: ${h}`;o.current.dataset.motionPopId=a;let u=document.createElement("style");c&&(u.nonce=c);let x=s??document.head;return x.appendChild(u),u.sheet&&u.sheet.insertRule(` + [data-motion-pop-id="${a}"] { + position: absolute !important; + width: ${e}px !important; + height: ${i}px !important; + ${p}px !important; + top: ${r}px !important; + } + `),()=>{x.contains(u)&&x.removeChild(u)}},[t]),(0,i.jsx)(h,{isPresent:t,childRef:o,sizeRef:l,children:r.cloneElement(e,{ref:o})})}let u=({children:e,initial:t,isPresent:n,onExitComplete:s,custom:o,presenceAffectsLayout:c,mode:d,anchorX:h,root:u})=>{let m=(0,a.M)(x),f=(0,r.useId)(),g=!0,j=(0,r.useMemo)(()=>(g=!1,{id:f,initial:t,isPresent:n,custom:o,onExitComplete:e=>{for(let t of(m.set(e,!0),m.values()))if(!t)return;s&&s()},register:e=>(m.set(e,!1),()=>m.delete(e))}),[n,m,s]);return c&&g&&(j={...j}),(0,r.useMemo)(()=>{m.forEach((e,t)=>m.set(t,!1))},[n]),r.useEffect(()=>{n||m.size||!s||s()},[n]),"popLayout"===d&&(e=(0,i.jsx)(p,{isPresent:n,anchorX:h,root:u,children:e})),(0,i.jsx)(l.t.Provider,{value:j,children:e})};function x(){return new Map}var m=n(3885);let f=e=>e.key||"";function g(e){let t=[];return r.Children.forEach(e,e=>{(0,r.isValidElement)(e)&&t.push(e)}),t}let j=({children:e,custom:t,initial:n=!0,onExitComplete:l,presenceAffectsLayout:c=!0,mode:d="sync",propagate:h=!1,anchorX:p="left",root:x})=>{let[j,w]=(0,m.xQ)(h),b=(0,r.useMemo)(()=>g(e),[e]),y=h&&!j?[]:b.map(f),v=(0,r.useRef)(!0),N=(0,r.useRef)(b),E=(0,a.M)(()=>new Map),[C,P]=(0,r.useState)(b),[k,R]=(0,r.useState)(b);(0,o.E)(()=>{v.current=!1,N.current=b;for(let e=0;e{let r=f(e),s=(!h||!!j)&&(b===k||y.includes(r));return(0,i.jsx)(u,{isPresent:s,initial:(!v.current||!!n)&&void 0,custom:t,presenceAffectsLayout:c,mode:d,root:x,onExitComplete:s?void 0:()=>{if(!E.has(r))return;E.set(r,!0);let e=!0;E.forEach(t=>{t||(e=!1)}),e&&(M?.(),R(N.current),h&&w?.(),l&&l())},anchorX:p,children:e},r)})})}},9099:(e,t,n)=>{e.exports=n(8253)}}]); \ No newline at end of file diff --git a/net-guardia/static/web/_next/static/chunks/620-cfbe65d7a4660b89.js b/net-guardia/static/web/_next/static/chunks/620-cfbe65d7a4660b89.js new file mode 100644 index 0000000..630bd43 --- /dev/null +++ b/net-guardia/static/web/_next/static/chunks/620-cfbe65d7a4660b89.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[620],{529:(r,n,e)=>{"use strict";e.d(n,{N:()=>u});var t=e(9168);function u(r){return function(n){if((0,t.T)(null==n?void 0:n.lift))return n.lift(function(n){try{return r(n,this)}catch(r){this.error(r)}});throw TypeError("Unable to lift unknown Observable type")}}},734:(r,n,e)=>{"use strict";e.d(n,{l:()=>t});var t="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},827:(r,n,e)=>{"use strict";e.d(n,{ms:()=>c,lI:()=>i});var t=e(9168);function u(r){return r[r.length-1]}function c(r){return(0,t.T)(u(r))?r.pop():void 0}function i(r){var n;return(n=u(r))&&(0,t.T)(n.schedule)?r.pop():void 0}},1684:(r,n,e)=>{"use strict";e.d(n,{l:()=>c});var t=e(7049),u=e(9168);function c(r){return(0,u.T)(r[t.s])}},2288:(r,n,e)=>{"use strict";function t(r){return TypeError("You provided "+(null!==r&&"object"==typeof r?"an invalid object":"'"+r+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}e.d(n,{L:()=>t})},2433:(r,n,e)=>{"use strict";e.d(n,{Tg:()=>h});var t=e(4902),u=e(4506),c=e(9085),i=e(3352),o=e(1684),s=e(7778),a=e(2288),l=e(3214),f=e(7447),v=e(9168),d=e(8905),b=e(7049);function h(r){if(r instanceof i.c)return r;if(null!=r){var n,e,h,y,m;if((0,o.l)(r)){return n=r,new i.c(function(r){var e=n[b.s]();if((0,v.T)(e.subscribe))return e.subscribe(r);throw TypeError("Provided object does not correctly implement Symbol.observable")})}if((0,u.X)(r)){return e=r,new i.c(function(r){for(var n=0;n{"use strict";e.d(n,{x:()=>c});var t=e(734),u=e(9168);function c(r){return(0,u.T)(null==r?void 0:r[t.l])}},4486:(r,n,e)=>{"use strict";e.d(n,{of:()=>c});var t=e(827),u=e(6206);function c(){for(var r=[],n=0;n{"use strict";e.d(n,{X:()=>t});var t=function(r){return r&&"number"==typeof r.length&&"function"!=typeof r}},4986:(r,n,e)=>{"use strict";e.d(n,{W:()=>function r(n){return(0,c.N)(function(e,c){var i,o=null,s=!1;o=e.subscribe((0,u._)(c,void 0,void 0,function(u){i=(0,t.Tg)(n(u,r(n)(e))),o?(o.unsubscribe(),o=null,i.subscribe(c)):s=!0})),s&&(o.unsubscribe(),o=null,i.subscribe(c))})}});var t=e(2433),u=e(7567),c=e(529)},6206:(r,n,e)=>{"use strict";e.d(n,{H:()=>x});var t=e(2433),u=e(9854),c=e(529),i=e(7567);function o(r,n){return void 0===n&&(n=0),(0,c.N)(function(e,t){e.subscribe((0,i._)(t,function(e){return(0,u.N)(t,r,function(){return t.next(e)},n)},function(){return(0,u.N)(t,r,function(){return t.complete()},n)},function(e){return(0,u.N)(t,r,function(){return t.error(e)},n)}))})}function s(r,n){return void 0===n&&(n=0),(0,c.N)(function(e,t){t.add(r.schedule(function(){return e.subscribe(t)},n))})}var a=e(3352),l=e(734),f=e(9168);function v(r,n){if(!r)throw Error("Iterable cannot be null");return new a.c(function(e){(0,u.N)(e,n,function(){var t=r[Symbol.asyncIterator]();(0,u.N)(e,n,function(){t.next().then(function(r){r.done?e.complete():e.next(r.value)})},0,!0)})})}var d=e(1684),b=e(9085),h=e(4506),p=e(3214),y=e(7778),m=e(2288),w=e(7447);function x(r,n){return n?function(r,n){if(null!=r){if((0,d.l)(r))return(0,t.Tg)(r).pipe(s(n),o(n));if((0,h.X)(r))return new a.c(function(e){var t=0;return n.schedule(function(){t===r.length?e.complete():(e.next(r[t++]),e.closed||this.schedule())})});if((0,b.y)(r))return(0,t.Tg)(r).pipe(s(n),o(n));if((0,y.T)(r))return v(r,n);if((0,p.x)(r))return new a.c(function(e){var t;return(0,u.N)(e,n,function(){t=r[l.l](),(0,u.N)(e,n,function(){var r,n,u;try{n=(r=t.next()).value,u=r.done}catch(r){e.error(r);return}u?e.complete():e.next(n)},0,!0)}),function(){return(0,f.T)(null==t?void 0:t.return)&&t.return()}});if((0,w.U)(r))return v((0,w.C)(r),n)}throw(0,m.L)(r)}(r,n):(0,t.Tg)(r)}},7447:(r,n,e)=>{"use strict";e.d(n,{C:()=>c,U:()=>i});var t=e(4902),u=e(9168);function c(r){return(0,t.AQ)(this,arguments,function(){var n,e,u;return(0,t.YH)(this,function(c){switch(c.label){case 0:n=r.getReader(),c.label=1;case 1:c.trys.push([1,,9,10]),c.label=2;case 2:return[4,(0,t.N3)(n.read())];case 3:if(u=(e=c.sent()).value,!e.done)return[3,5];return[4,(0,t.N3)(void 0)];case 4:return[2,c.sent()];case 5:return[4,(0,t.N3)(u)];case 6:return[4,c.sent()];case 7:return c.sent(),[3,2];case 8:return[3,10];case 9:return n.releaseLock(),[7];case 10:return[2]}})})}function i(r){return(0,u.T)(null==r?void 0:r.getReader)}},7567:(r,n,e)=>{"use strict";e.d(n,{_:()=>u});var t=e(4902);function u(r,n,e,t,u){return new c(r,n,e,t,u)}var c=function(r){function n(n,e,t,u,c,i){var o=r.call(this,n)||this;return o.onFinalize=c,o.shouldUnsubscribe=i,o._next=e?function(r){try{e(r)}catch(r){n.error(r)}}:r.prototype._next,o._error=u?function(r){try{u(r)}catch(r){n.error(r)}finally{this.unsubscribe()}}:r.prototype._error,o._complete=t?function(){try{t()}catch(r){n.error(r)}finally{this.unsubscribe()}}:r.prototype._complete,o}return(0,t.C6)(n,r),n.prototype.unsubscribe=function(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var e=this.closed;r.prototype.unsubscribe.call(this),e||null==(n=this.onFinalize)||n.call(this)}},n}(e(4698).vU)},7778:(r,n,e)=>{"use strict";e.d(n,{T:()=>u});var t=e(9168);function u(r){return Symbol.asyncIterator&&(0,t.T)(null==r?void 0:r[Symbol.asyncIterator])}},8488:(r,n,e)=>{"use strict";e.d(n,{z:()=>p});var t=e(3352),u=Array.isArray,c=Object.getPrototypeOf,i=Object.prototype,o=Object.keys,s=e(6206),a=e(2374),l=e(4902),f=e(8517),v=Array.isArray,d=e(827),b=e(7567),h=e(9854);function p(){for(var r,n,e,h=[],p=0;p{"use strict";e.d(n,{T:()=>c});var t=e(529),u=e(7567);function c(r,n){return(0,t.N)(function(e,t){var c=0;e.subscribe((0,u._)(t,function(e){t.next(r.call(n,e,c++))}))})}},9085:(r,n,e)=>{"use strict";e.d(n,{y:()=>u});var t=e(9168);function u(r){return(0,t.T)(null==r?void 0:r.then)}},9099:(r,n,e)=>{r.exports=e(8253)},9854:(r,n,e)=>{"use strict";function t(r,n,e,t,u){void 0===t&&(t=0),void 0===u&&(u=!1);var c=n.schedule(function(){e(),u?r.add(this.schedule(null,t)):this.unsubscribe()},t);if(r.add(c),!u)return c}e.d(n,{N:()=>t})}}]); \ No newline at end of file diff --git a/net-guardia/static/web/_next/static/chunks/framework-8241368a3aa58199.js b/net-guardia/static/web/_next/static/chunks/framework-8241368a3aa58199.js new file mode 100644 index 0000000..8178df5 --- /dev/null +++ b/net-guardia/static/web/_next/static/chunks/framework-8241368a3aa58199.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[593],{2167:(e,t,n)=>{var r=n(5364),l=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),h=Symbol.iterator,g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y=Object.assign,v={};function b(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}function k(){}function w(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}b.prototype.isReactComponent={},b.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},k.prototype=b.prototype;var S=w.prototype=new k;S.constructor=w,y(S,b.prototype),S.isPureReactComponent=!0;var x=Array.isArray,E={H:null,A:null,T:null,S:null},C=Object.prototype.hasOwnProperty;function _(e,t,n,r,a,o){return{$$typeof:l,type:e,key:t,ref:void 0!==(n=o.ref)?n:null,props:o}}function P(e){return"object"==typeof e&&null!==e&&e.$$typeof===l}var z=/\/+/g;function N(e,t){var n,r;return"object"==typeof e&&null!==e&&null!=e.key?(n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,function(e){return r[e]})):t.toString(36)}function T(){}function L(e,t,n){if(null==e)return e;var r=[],o=0;return!function e(t,n,r,o,i){var u,s,c,f=typeof t;("undefined"===f||"boolean"===f)&&(t=null);var d=!1;if(null===t)d=!0;else switch(f){case"bigint":case"string":case"number":d=!0;break;case"object":switch(t.$$typeof){case l:case a:d=!0;break;case m:return e((d=t._init)(t._payload),n,r,o,i)}}if(d)return i=i(t),d=""===o?"."+N(t,0):o,x(i)?(r="",null!=d&&(r=d.replace(z,"$&/")+"/"),e(i,n,r,"",function(e){return e})):null!=i&&(P(i)&&(u=i,s=r+(null==i.key||t&&t.key===i.key?"":(""+i.key).replace(z,"$&/")+"/")+d,i=_(u.type,s,void 0,void 0,void 0,u.props)),n.push(i)),1;d=0;var p=""===o?".":o+":";if(x(t))for(var g=0;g{e.exports=n(5919)},4232:(e,t,n)=>{e.exports=n(2167)},4279:(e,t,n)=>{var r,l,a=n(5364),o=n(2786),i=n(4232),u=n(8477);function s(e){var t="https://react.dev/errors/"+e;if(1)":-1l||u[r]!==s[l]){var c="\n"+u[r].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=r&&0<=l);break}}}finally{F=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?A(n):""}function M(e){try{var t="";do t+=function(e){switch(e.tag){case 26:case 27:case 5:return A(e.type);case 16:return A("Lazy");case 13:return A("Suspense");case 19:return A("SuspenseList");case 0:case 15:return e=D(e.type,!1);case 11:return e=D(e.type.render,!1);case 1:return e=D(e.type,!0);default:return""}}(e),e=e.return;while(e);return t}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}function I(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do 0!=(4098&(t=e).flags)&&(n=t.return),e=t.return;while(e)}return 3===t.tag?n:null}function U(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function j(e){if(I(e)!==e)throw Error(s(188))}var H=Array.isArray,$=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V={pending:!1,data:null,method:null,action:null},B=[],W=-1;function Q(e){return{current:e}}function q(e){0>W||(e.current=B[W],B[W]=null,W--)}function K(e,t){B[++W]=e.current,e.current=t}var Y=Q(null),G=Q(null),X=Q(null),Z=Q(null);function J(e,t){switch(K(X,t),K(G,e),K(Y,null),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)&&(t=t.namespaceURI)?u5(t):0;break;default:if(t=(e=8===e?t.parentNode:t).tagName,e=e.namespaceURI)t=u9(e=u5(e),t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}q(Y),K(Y,t)}function ee(){q(Y),q(G),q(X)}function et(e){null!==e.memoizedState&&K(Z,e);var t=Y.current,n=u9(t,e.type);t!==n&&(K(G,e),K(Y,n))}function en(e){G.current===e&&(q(Y),q(G)),Z.current===e&&(q(Z),sM._currentValue=V)}var er=Object.prototype.hasOwnProperty,el=o.unstable_scheduleCallback,ea=o.unstable_cancelCallback,eo=o.unstable_shouldYield,ei=o.unstable_requestPaint,eu=o.unstable_now,es=o.unstable_getCurrentPriorityLevel,ec=o.unstable_ImmediatePriority,ef=o.unstable_UserBlockingPriority,ed=o.unstable_NormalPriority,ep=o.unstable_LowPriority,em=o.unstable_IdlePriority,eh=o.log,eg=o.unstable_setDisableYieldValue,ey=null,ev=null;function eb(e){if("function"==typeof eh&&eg(e),ev&&"function"==typeof ev.setStrictMode)try{ev.setStrictMode(ey,e)}catch(e){}}var ek=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(ew(e)/eS|0)|0},ew=Math.log,eS=Math.LN2,ex=128,eE=4194304;function eC(e){var t=42&e;if(0!==t)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 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 4194176&e;case 4194304:case 8388608:case 0x1000000:case 0x2000000:return 0x3c00000&e;case 0x4000000:return 0x4000000;case 0x8000000:return 0x8000000;case 0x10000000:return 0x10000000;case 0x20000000:return 0x20000000;case 0x40000000:return 0;default:return e}}function e_(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,l=e.suspendedLanes,a=e.pingedLanes,o=e.warmLanes;e=0!==e.finishedLanes;var i=0x7ffffff&n;return 0!==i?0!=(n=i&~l)?r=eC(n):0!=(a&=i)?r=eC(a):e||0!=(o=i&~o)&&(r=eC(o)):0!=(i=n&~l)?r=eC(i):0!==a?r=eC(a):e||0!=(o=n&~o)&&(r=eC(o)),0===r?0:0!==t&&t!==r&&0==(t&l)&&((l=r&-r)>=(o=t&-t)||32===l&&0!=(4194176&o))?t:r}function eP(e,t){return 0==(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function ez(){var e=ex;return 0==(4194176&(ex<<=1))&&(ex=128),e}function eN(){var e=eE;return 0==(0x3c00000&(eE<<=1))&&(eE=4194304),e}function eT(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function eL(e,t){e.pendingLanes|=t,0x10000000!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function eO(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-ek(t);e.entangledLanes|=t,e.entanglements[r]=0x40000000|e.entanglements[r]|4194218&n}function eR(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ek(n),l=1<=ne),nr=!1;function nl(e,t){switch(e){case"keyup":return -1!==t9.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function na(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var no=!1,ni={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function nu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!ni[e.type]:"textarea"===t}function ns(e,t,n,r){tw?tS?tS.push(r):tS=[r]:tw=r,0<(t=uq(t,"onChange")).length&&(n=new tH("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var nc=null,nf=null;function nd(e){uU(e,0)}function np(e){if(tt(eK(e)))return e}function nm(e,t){if("change"===e)return t}var nh=!1;if(e1){if(e1){var ng="oninput"in document;if(!ng){var ny=document.createElement("div");ny.setAttribute("oninput","return;"),ng="function"==typeof ny.oninput}r=ng}else r=!1;nh=r&&(!document.documentMode||9=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=n_(r)}}function nz(e){e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window;for(var t=tn(e.document);t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(n)e=t.contentWindow;else break;t=tn(e.document)}return t}function nN(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var nT=e1&&"documentMode"in document&&11>=document.documentMode,nL=null,nO=null,nR=null,nA=!1;function nF(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;nA||null==nL||nL!==tn(r)||(r="selectionStart"in(r=nL)&&nN(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},nR&&nC(nR,r)||(nR=r,0<(r=uq(nO,"onSelect")).length&&(t=new tH("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=nL)))}function nD(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var nM={animationend:nD("Animation","AnimationEnd"),animationiteration:nD("Animation","AnimationIteration"),animationstart:nD("Animation","AnimationStart"),transitionrun:nD("Transition","TransitionRun"),transitionstart:nD("Transition","TransitionStart"),transitioncancel:nD("Transition","TransitionCancel"),transitionend:nD("Transition","TransitionEnd")},nI={},nU={};function nj(e){if(nI[e])return nI[e];if(!nM[e])return e;var t,n=nM[e];for(t in n)if(n.hasOwnProperty(t)&&t in nU)return nI[e]=n[t];return e}e1&&(nU=document.createElement("div").style,"AnimationEvent"in window||(delete nM.animationend.animation,delete nM.animationiteration.animation,delete nM.animationstart.animation),"TransitionEvent"in window||delete nM.transitionend.transition);var nH=nj("animationend"),n$=nj("animationiteration"),nV=nj("animationstart"),nB=nj("transitionrun"),nW=nj("transitionstart"),nQ=nj("transitioncancel"),nq=nj("transitionend"),nK=new Map,nY="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll scrollEnd toggle touchMove waiting wheel".split(" ");function nG(e,t){nK.set(e,t),eJ(t,[e])}var nX=[],nZ=0,nJ=0;function n0(){for(var e=nZ,t=nJ=nZ=0;t>=o,l-=o,ro=1<<32-ek(t)+l|n<d?(p=f,f=null):p=f.sibling;var m=g(l,f,i[d],u);if(null===m){null===f&&(f=p);break}e&&f&&null===m.alternate&&t(l,f),o=a(m,o,d),null===c?s=m:c.sibling=m,c=m,f=p}if(d===i.length)return n(l,f),rm&&ru(l,d),s;if(null===f){for(;dp?(m=d,d=null):m=d.sibling;var b=g(l,d,v.value,u);if(null===b){null===d&&(d=m);break}e&&d&&null===b.alternate&&t(l,d),o=a(b,o,p),null===f?c=b:f.sibling=b,f=b,d=m}if(v.done)return n(l,d),rm&&ru(l,p),c;if(null===d){for(;!v.done;p++,v=i.next())null!==(v=h(l,v.value,u))&&(o=a(v,o,p),null===f?c=v:f.sibling=v,f=v);return rm&&ru(l,p),c}for(d=r(d);!v.done;p++,v=i.next())null!==(v=y(d,l,p,v.value,u))&&(e&&null!==v.alternate&&d.delete(null===v.key?p:v.key),o=a(v,o,p),null===f?c=v:f.sibling=v,f=v);return e&&d.forEach(function(e){return t(l,e)}),rm&&ru(l,p),c}(u,c,f=k.call(f),v)}if("function"==typeof f.then)return i(u,c,rA(f),v);if(f.$$typeof===b)return i(u,c,op(u,f),v);rD(u,f)}return"string"==typeof f&&""!==f||"number"==typeof f||"bigint"==typeof f?(f=""+f,null!==c&&6===c.tag?(n(u,c.sibling),(v=l(c,f)).return=u):(n(u,c),(v=im(f,u.mode,v)).return=u),o(u=v)):n(u,c)}(i,u,c,f);return rO=null,v}catch(e){if(e===rE)throw e;var k=io(29,e,null,i.mode);return k.lanes=f,k.return=i,k}finally{}}}var rU=rI(!0),rj=rI(!1),rH=Q(null),r$=Q(0);function rV(e,t){K(r$,e=iR),K(rH,t),iR=e|t.baseLanes}function rB(){K(r$,iR),K(rH,rH.current)}function rW(){iR=r$.current,q(rH),q(r$)}var rQ=Q(null),rq=null;function rK(e){var t=e.alternate;K(rZ,1&rZ.current),K(rQ,e),null===rq&&(null===t||null!==rH.current?rq=e:null!==t.memoizedState&&(rq=e))}function rY(e){if(22===e.tag){if(K(rZ,rZ.current),K(rQ,e),null===rq){var t=e.alternate;null!==t&&null!==t.memoizedState&&(rq=e)}}else rG(e)}function rG(){K(rZ,rZ.current),K(rQ,rQ.current)}function rX(e){q(rQ),rq===e&&(rq=null),q(rZ)}var rZ=Q(0);function rJ(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var r0="undefined"!=typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},r1=o.unstable_scheduleCallback,r2=o.unstable_NormalPriority,r3={$$typeof:b,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function r4(){return{controller:new r0,data:new Map,refCount:0}}function r6(e){e.refCount--,0===e.refCount&&r1(r2,function(){e.controller.abort()})}var r8=null,r5=0,r9=0,r7=null;function le(){if(0==--r5&&null!==r8){null!==r7&&(r7.status="fulfilled");var e=r8;r8=null,r9=0,r7=null;for(var t=0;ta?a:8;var o=O.T,i={};O.T=i,av(e,!1,t,n);try{var u=l(),s=O.S;if(null!==s&&s(i,u),null!==u&&"object"==typeof u&&"function"==typeof u.then){var c,f,d=(c=[],f={status:"pending",value:null,reason:null,then:function(e){c.push(e)}},u.then(function(){f.status="fulfilled",f.value=r;for(var e=0;e title"))),u3(a,r,n),a[eM]=e,eG(a),r=a;break e;case"link":var o=sz("link","href",l).get(r+(n.href||""));if(o){for(var i=0;i<\/script>",e=e.removeChild(e.firstChild);break;case"select":e="string"==typeof r.is?l.createElement("select",{is:r.is}):l.createElement("select"),r.multiple?e.multiple=!0:r.size&&(e.size=r.size);break;default:e="string"==typeof r.is?l.createElement(n,{is:r.is}):l.createElement(n)}}e[eM]=t,e[eI]=r;e:for(l=t.child;null!==l;){if(5===l.tag||6===l.tag)e.appendChild(l.stateNode);else if(4!==l.tag&&27!==l.tag&&null!==l.child){l.child.return=l,l=l.child;continue}if(l===t)break;for(;null===l.sibling;){if(null===l.return||l.return===t)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}switch(t.stateNode=e,u3(e,n,r),n){case"button":case"input":case"select":case"textarea":e=!!r.autoFocus;break;case"img":e=!0;break;default:e=!1}e&&ig(t)}}return ik(t),t.flags&=-0x1000001,null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==r&&ig(t);else{if("string"!=typeof r&&null===t.stateNode)throw Error(s(166));if(e=X.current,rw(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,null!==(l=rd))switch(l.tag){case 27:case 5:r=l.memoizedProps}e[eM]=t,(e=!!(e.nodeValue===n||null!==r&&!0===r.suppressHydrationWarning||uJ(e.nodeValue,n)))||rv(t)}else(e=u8(e).createTextNode(r))[eM]=t,t.stateNode=e}return ik(t),null;case 13:if(r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(l=rw(t),null!==r&&null!==r.dehydrated){if(null===e){if(!l)throw Error(s(318));if(!(l=null!==(l=t.memoizedState)?l.dehydrated:null))throw Error(s(317));l[eM]=t}else rS(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;ik(t),l=!1}else null!==rh&&(i4(rh),rh=null),l=!0;if(!l){if(256&t.flags)return rX(t),t;return rX(t),null}}if(rX(t),0!=(128&t.flags))return t.lanes=n,t;if(n=null!==r,e=null!==e&&null!==e.memoizedState,n){r=t.child,l=null,null!==r.alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(l=r.alternate.memoizedState.cachePool.pool);var a=null;null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(a=r.memoizedState.cachePool.pool),a!==l&&(r.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),iv(t,t.updateQueue),ik(t),null;case 4:return ee(),null===e&&uV(t.stateNode.containerInfo),ik(t),null;case 10:return oo(t.type),ik(t),null;case 19:if(q(rZ),null===(l=t.memoizedState))return ik(t),null;if(r=0!=(128&t.flags),null===(a=l.rendering))if(r)ib(l,!1);else{if(0!==iA||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(a=rJ(e))){for(t.flags|=128,ib(l,!1),e=a.updateQueue,t.updateQueue=e,iv(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)is(n,e),n=n.sibling;return K(rZ,1&rZ.current|2),t.child}e=e.sibling}null!==l.tail&&eu()>iB&&(t.flags|=128,r=!0,ib(l,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=rJ(a))){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,iv(t,e),ib(l,!0),null===l.tail&&"hidden"===l.tailMode&&!a.alternate&&!rm)return ik(t),null}else 2*eu()-l.renderingStartTime>iB&&0x20000000!==n&&(t.flags|=128,r=!0,ib(l,!1),t.lanes=4194304);l.isBackwards?(a.sibling=t.child,t.child=a):(null!==(e=l.last)?e.sibling=a:t.child=a,l.last=a)}if(null!==l.tail)return t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=eu(),t.sibling=null,e=rZ.current,K(rZ,r?1&e|2:1&e),t;return ik(t),null;case 22:case 23:return rX(t),rW(),r=null!==t.memoizedState,null!==e?null!==e.memoizedState!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?0!=(0x20000000&n)&&0==(128&t.flags)&&(ik(t),6&t.subtreeFlags&&(t.flags|=8192)):ik(t),null!==(n=t.updateQueue)&&iv(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),r=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),null!==e&&q(ln),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),oo(r3),ik(t),null;case 25:return null}throw Error(s(156,t.tag))}(t.alternate,t,iR);if(null!==n){i_=n;return}if(null!==(t=t.sibling)){i_=t;return}i_=t=e}while(null!==t);0===iA&&(iA=5)}function us(e,t){do{var n=function(e,t){switch(rf(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return oo(r3),ee(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return en(t),null;case 13:if(rX(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(s(340));rS()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return q(rZ),null;case 4:return ee(),null;case 10:return oo(t.type),null;case 22:case 23:return rX(t),rW(),null!==e&&q(ln),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return oo(r3),null;default:return null}}(e.alternate,e);if(null!==n){n.flags&=32767,i_=n;return}if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling)){i_=e;return}i_=e=n}while(null!==e);iA=6,i_=null}function uc(e,t,n,r,l,a,o,i,u,c){var f=O.T,d=$.p;try{$.p=2,O.T=null,function(e,t,n,r,l,a,o,i){do ud();while(null!==iK);if(0!=(6&iE))throw Error(s(327));var u,c,f=e.finishedWork;if(r=e.finishedLanes,null!==f){if(e.finishedWork=null,e.finishedLanes=0,f===e.current)throw Error(s(177));e.callbackNode=null,e.callbackPriority=0,e.cancelPendingCommit=null;var d=f.lanes|f.childLanes;!function(e,t,n,r,l,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var i=e.entanglements,u=e.expirationTimes,s=e.hiddenUpdates;for(n=o&~n;0r&&(l=r,r=a,a=l),l=nP(t,a);var o=nP(t,r);l&&o&&(1!==n.rangeCount||n.anchorNode!==l.node||n.anchorOffset!==l.offset||n.focusNode!==o.node||n.focusOffset!==o.offset)&&((e=e.createRange()).setStart(l.node,l.offset),n.removeAllRanges(),a>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;)1===n.nodeType&&e.push({element:n,left:n.scrollLeft,top:n.scrollTop});for("function"==typeof t.focus&&t.focus(),t=0;tn?32:n,O.T=null,null===iK)var a=!1;else{n=iX,iX=null;var o=iK,i=iY;if(iK=null,iY=0,0!=(6&iE))throw Error(s(331));var u=iE;if(iE|=4,ir(o.current),o6(o,o.current,i,n),iE=u,uP(0,!1),ev&&"function"==typeof ev.onPostCommitFiberRoot)try{ev.onPostCommitFiberRoot(ey,o)}catch(e){}a=!0}return a}finally{$.p=l,O.T=r,uf(e,t)}}return!1}function up(e,t,n){t=n9(n,t),t=aM(e.stateNode,t,2),null!==(e=ob(e,t,2))&&(eL(e,2),u_(e))}function um(e,t,n){if(3===e.tag)up(e,e,n);else for(;null!==t;){if(3===t.tag){up(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===iQ||!iQ.has(r))){e=n9(n,e),null!==(r=ob(t,n=aI(2),2))&&(aU(n,r,t,e),eL(r,2),u_(r));break}}t=t.return}}function uh(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ix;var l=new Set;r.set(t,l)}else void 0===(l=r.get(t))&&(l=new Set,r.set(t,l));l.has(n)||(iO=!0,l.add(n),e=ug.bind(null,e,t,n),t.then(e,e))}function ug(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,iC===e&&(iP&n)===n&&(4===iA||3===iA&&(0x3c00000&iP)===iP&&300>eu()-iV?0==(2&iE)&&i7(e,0):iM|=n,iU===iP&&(iU=0)),u_(e)}function uy(e,t){0===t&&(t=eN()),null!==(e=n3(e,t))&&(eL(e,t),u_(e))}function uv(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),uy(e,n)}function ub(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;null!==l&&(n=l.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(s(314))}null!==r&&r.delete(t),uy(e,n)}var uk=null,uw=null,uS=!1,ux=!1,uE=!1,uC=0;function u_(e){var t;e!==uw&&null===e.next&&(null===uw?uk=uw=e:uw=uw.next=e),ux=!0,uS||(uS=!0,t=uz,sl(function(){0!=(6&iE)?el(ec,t):t()}))}function uP(e,t){if(!uE&&ux){uE=!0;do for(var n=!1,r=uk;null!==r;){if(!t)if(0!==e){var l=r.pendingLanes;if(0===l)var a=0;else{var o=r.suspendedLanes,i=r.pingedLanes;a=0xc000055&(a=(1<<31-ek(42|e)+1)-1&(l&~(o&~i)))?0xc000055&a|1:a?2|a:0}0!==a&&(n=!0,uL(r,a))}else a=iP,0==(3&(a=e_(r,r===iC?a:0)))||eP(r,a)||(n=!0,uL(r,a));r=r.next}while(n);uE=!1}}function uz(){ux=uS=!1;var e,t=0;0!==uC&&(((e=window.event)&&"popstate"===e.type?e===se||(se=e,0):(se=null,1))||(t=uC),uC=0);for(var n=eu(),r=null,l=uk;null!==l;){var a=l.next,o=uN(l,n);0===o?(l.next=null,null===r?uk=a:r.next=a,null===a&&(uw=r)):(r=l,(0!==t||0!=(3&o))&&(ux=!0)),l=a}uP(t,!1)}function uN(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,a=-0x3c00001&e.pendingLanes;0 title"):null)}function sT(e){return"stylesheet"!==e.type||0!=(3&e.state.loading)}var sL=null;function sO(){}function sR(){if(this.count--,0===this.count){if(this.stylesheets)sF(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var sA=null;function sF(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,sA=new Map,t.forEach(sD,e),sA=null,sR.call(e))}function sD(e,t){if(!(4&t.state.loading)){var n=sA.get(e);if(n)var r=n.get(null);else{n=new Map,sA.set(e,n);for(var l=e.querySelectorAll("link[data-precedence],style[data-precedence]"),a=0;a{var r=n(4232);function l(e){var t="https://react.dev/errors/"+e;if(1{function n(e,t){var n=e.length;for(e.push(t);0>>1,l=e[r];if(0>>1;ra(u,n))sa(c,u)?(e[r]=c,e[s]=n,r=s):(e[r]=u,e[i]=n,r=i);else if(sa(c,n))e[r]=c,e[s]=n,r=s;else break}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(t.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var o,i=performance;t.unstable_now=function(){return i.now()}}else{var u=Date,s=u.now();t.unstable_now=function(){return u.now()-s}}var c=[],f=[],d=1,p=null,m=3,h=!1,g=!1,y=!1,v="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,k="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=r(f);null!==t;){if(null===t.callback)l(f);else if(t.startTime<=e)l(f),t.sortIndex=t.expirationTime,n(c,t);else break;t=r(f)}}function S(e){if(y=!1,w(e),!g)if(null!==r(c))g=!0,L();else{var t=r(f);null!==t&&O(S,t.startTime-e)}}var x=!1,E=-1,C=5,_=-1;function P(){return!(t.unstable_now()-_e&&P());){var i=p.callback;if("function"==typeof i){p.callback=null,m=p.priorityLevel;var u=i(p.expirationTime<=e);if(e=t.unstable_now(),"function"==typeof u){p.callback=u,w(e),n=!0;break t}p===r(c)&&l(c),w(e)}else l(c);p=r(c)}if(null!==p)n=!0;else{var s=r(f);null!==s&&O(S,s.startTime-e),n=!1}}break e}finally{p=null,m=a,h=!1}}}finally{n?o():x=!1}}}if("function"==typeof k)o=function(){k(z)};else if("undefined"!=typeof MessageChannel){var N=new MessageChannel,T=N.port2;N.port1.onmessage=z,o=function(){T.postMessage(null)}}else o=function(){v(z,0)};function L(){x||(x=!0,o())}function O(e,n){E=v(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){g||h||(g=!0,L())},t.unstable_forceFrameRate=function(e){0>e||125o?(e.sortIndex=a,n(f,e),null===r(c)&&e===r(f)&&(y?(b(E),E=-1):y=!0,O(S,a-o))):(e.sortIndex=i,n(c,e),g||h||(g=!0,L())),e},t.unstable_shouldYield=P,t.unstable_wrapCallback=function(e){var t=m;return function(){var n=m;m=t;try{return e.apply(this,arguments)}finally{m=n}}}},7876:(e,t,n)=>{e.exports=n(8228)},8228:(e,t)=>{var n=Symbol.for("react.transitional.element");function r(e,t,r){var l=null;if(void 0!==r&&(l=""+r),void 0!==t.key&&(l=""+t.key),"key"in t)for(var a in r={},t)"key"!==a&&(r[a]=t[a]);else r=t;return{$$typeof:n,type:e,key:l,ref:void 0!==(t=r.ref)?t:null,props:r}}t.Fragment=Symbol.for("react.fragment"),t.jsx=r,t.jsxs=r},8477:(e,t,n)=>{!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(4655)},8944:(e,t,n)=>{!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(4279)}}]); \ No newline at end of file diff --git a/net-guardia/static/web/_next/static/chunks/main-8b597568282ddf7d.js b/net-guardia/static/web/_next/static/chunks/main-8b597568282ddf7d.js new file mode 100644 index 0000000..65d794b --- /dev/null +++ b/net-guardia/static/web/_next/static/chunks/main-8b597568282ddf7d.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[792],{57:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return u}});let n=r(4252),o=r(7876),a=n._(r(4232)),i=r(8407);async function l(e){let{Component:t,ctx:r}=e;return{pageProps:await (0,i.loadGetInitialProps)(t,r)}}class u extends a.default.Component{render(){let{Component:e,pageProps:t}=this.props;return(0,o.jsx)(e,{...t})}}u.origGetInitialProps=l,u.getInitialProps=l,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},72:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageConfigContext",{enumerable:!0,get:function(){return a}});let n=r(4252)._(r(4232)),o=r(6904),a=n.default.createContext(o.imageConfigDefault)},95:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{APP_BUILD_MANIFEST:function(){return E},APP_CLIENT_INTERNALS:function(){return Q},APP_PATHS_MANIFEST:function(){return m},APP_PATH_ROUTES_MANIFEST:function(){return g},BARREL_OPTIMIZATION_PREFIX:function(){return X},BLOCKED_PAGES:function(){return U},BUILD_ID_FILE:function(){return D},BUILD_MANIFEST:function(){return b},CLIENT_PUBLIC_FILES_PATH:function(){return k},CLIENT_REFERENCE_MANIFEST:function(){return W},CLIENT_STATIC_FILES_PATH:function(){return F},CLIENT_STATIC_FILES_RUNTIME_AMP:function(){return Z},CLIENT_STATIC_FILES_RUNTIME_MAIN:function(){return K},CLIENT_STATIC_FILES_RUNTIME_MAIN_APP:function(){return $},CLIENT_STATIC_FILES_RUNTIME_POLYFILLS:function(){return et},CLIENT_STATIC_FILES_RUNTIME_POLYFILLS_SYMBOL:function(){return er},CLIENT_STATIC_FILES_RUNTIME_REACT_REFRESH:function(){return J},CLIENT_STATIC_FILES_RUNTIME_WEBPACK:function(){return ee},COMPILER_INDEXES:function(){return a},COMPILER_NAMES:function(){return o},CONFIG_FILES:function(){return L},DEFAULT_RUNTIME_WEBPACK:function(){return en},DEFAULT_SANS_SERIF_FONT:function(){return eu},DEFAULT_SERIF_FONT:function(){return el},DEV_CLIENT_MIDDLEWARE_MANIFEST:function(){return N},DEV_CLIENT_PAGES_MANIFEST:function(){return C},DYNAMIC_CSS_MANIFEST:function(){return Y},EDGE_RUNTIME_WEBPACK:function(){return eo},EDGE_UNSUPPORTED_NODE_APIS:function(){return ep},EXPORT_DETAIL:function(){return O},EXPORT_MARKER:function(){return R},FUNCTIONS_CONFIG_MANIFEST:function(){return y},IMAGES_MANIFEST:function(){return T},INTERCEPTION_ROUTE_REWRITE_MANIFEST:function(){return z},MIDDLEWARE_BUILD_MANIFEST:function(){return q},MIDDLEWARE_MANIFEST:function(){return w},MIDDLEWARE_REACT_LOADABLE_MANIFEST:function(){return V},MODERN_BROWSERSLIST_TARGET:function(){return n.default},NEXT_BUILTIN_DOCUMENT:function(){return H},NEXT_FONT_MANIFEST:function(){return v},PAGES_MANIFEST:function(){return h},PHASE_DEVELOPMENT_SERVER:function(){return f},PHASE_EXPORT:function(){return u},PHASE_INFO:function(){return p},PHASE_PRODUCTION_BUILD:function(){return s},PHASE_PRODUCTION_SERVER:function(){return c},PHASE_TEST:function(){return d},PRERENDER_MANIFEST:function(){return S},REACT_LOADABLE_MANIFEST:function(){return x},ROUTES_MANIFEST:function(){return j},RSC_MODULE_TYPES:function(){return ed},SERVER_DIRECTORY:function(){return M},SERVER_FILES_MANIFEST:function(){return A},SERVER_PROPS_ID:function(){return ei},SERVER_REFERENCE_MANIFEST:function(){return G},STATIC_PROPS_ID:function(){return ea},STATIC_STATUS_PAGES:function(){return es},STRING_LITERAL_DROP_BUNDLE:function(){return B},SUBRESOURCE_INTEGRITY_MANIFEST:function(){return P},SYSTEM_ENTRYPOINTS:function(){return eh},TRACE_OUTPUT_VERSION:function(){return ec},TURBOPACK_CLIENT_MIDDLEWARE_MANIFEST:function(){return I},TURBO_TRACE_DEFAULT_MEMORY_LIMIT:function(){return ef},UNDERSCORE_NOT_FOUND_ROUTE:function(){return i},UNDERSCORE_NOT_FOUND_ROUTE_ENTRY:function(){return l},WEBPACK_STATS:function(){return _}});let n=r(4252)._(r(877)),o={client:"client",server:"server",edgeServer:"edge-server"},a={[o.client]:0,[o.server]:1,[o.edgeServer]:2},i="/_not-found",l=""+i+"/page",u="phase-export",s="phase-production-build",c="phase-production-server",f="phase-development-server",d="phase-test",p="phase-info",h="pages-manifest.json",_="webpack-stats.json",m="app-paths-manifest.json",g="app-path-routes-manifest.json",b="build-manifest.json",E="app-build-manifest.json",y="functions-config-manifest.json",P="subresource-integrity-manifest",v="next-font-manifest",R="export-marker.json",O="export-detail.json",S="prerender-manifest.json",j="routes-manifest.json",T="images-manifest.json",A="required-server-files.json",C="_devPagesManifest.json",w="middleware-manifest.json",I="_clientMiddlewareManifest.json",N="_devMiddlewareManifest.json",x="react-loadable-manifest.json",M="server",L=["next.config.js","next.config.mjs","next.config.ts"],D="BUILD_ID",U=["/_document","/_app","/_error"],k="public",F="static",B="__NEXT_DROP_CLIENT_FILE__",H="__NEXT_BUILTIN_DOCUMENT__",X="__barrel_optimize__",W="client-reference-manifest",G="server-reference-manifest",q="middleware-build-manifest",V="middleware-react-loadable-manifest",z="interception-route-rewrite-manifest",Y="dynamic-css-manifest",K="main",$=""+K+"-app",Q="app-pages-internals",J="react-refresh",Z="amp",ee="webpack",et="polyfills",er=Symbol(et),en="webpack-runtime",eo="edge-runtime-webpack",ea="__N_SSG",ei="__N_SSP",el={name:"Times New Roman",xAvgCharWidth:821,azAvgWidth:854.3953488372093,unitsPerEm:2048},eu={name:"Arial",xAvgCharWidth:904,azAvgWidth:934.5116279069767,unitsPerEm:2048},es=["/500"],ec=1,ef=6e3,ed={client:"client",server:"server"},ep=["clearImmediate","setImmediate","BroadcastChannel","ByteLengthQueuingStrategy","CompressionStream","CountQueuingStrategy","DecompressionStream","DomException","MessageChannel","MessageEvent","MessagePort","ReadableByteStreamController","ReadableStreamBYOBRequest","ReadableStreamDefaultController","TransformStreamDefaultController","WritableStreamDefaultController"],eh=new Set([K,J,Z,$]);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},178:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"denormalizePagePath",{enumerable:!0,get:function(){return a}});let n=r(1426),o=r(3416);function a(e){let t=(0,o.normalizePathSep)(e);return t.startsWith("/index/")&&!(0,n.isDynamicRoute)(t)?t.slice(6):"/index"!==t?t:"/"}},187:(e,t)=>{"use strict";function r(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return r}})},296:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getSortedRouteObjects:function(){return o},getSortedRoutes:function(){return n}});class r{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e){void 0===e&&(e="/");let t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);let r=t.map(t=>this.children.get(t)._smoosh(""+e+t+"/")).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&r.push(...this.children.get("[]")._smoosh(e+"["+this.slugName+"]/")),!this.placeholder){let t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Object.defineProperty(Error('You cannot define a route with the same specificity as a optional catch-all route ("'+t+'" and "'+t+"[[..."+this.optionalRestSlugName+']]").'),"__NEXT_ERROR_CODE",{value:"E458",enumerable:!1,configurable:!0});r.unshift(t)}return null!==this.restSlugName&&r.push(...this.children.get("[...]")._smoosh(e+"[..."+this.restSlugName+"]/")),null!==this.optionalRestSlugName&&r.push(...this.children.get("[[...]]")._smoosh(e+"[[..."+this.optionalRestSlugName+"]]/")),r}_insert(e,t,n){if(0===e.length){this.placeholder=!1;return}if(n)throw Object.defineProperty(Error("Catch-all must be the last part of the URL."),"__NEXT_ERROR_CODE",{value:"E392",enumerable:!1,configurable:!0});let o=e[0];if(o.startsWith("[")&&o.endsWith("]")){let r=o.slice(1,-1),i=!1;if(r.startsWith("[")&&r.endsWith("]")&&(r=r.slice(1,-1),i=!0),r.startsWith("…"))throw Object.defineProperty(Error("Detected a three-dot character ('…') at ('"+r+"'). Did you mean ('...')?"),"__NEXT_ERROR_CODE",{value:"E147",enumerable:!1,configurable:!0});if(r.startsWith("...")&&(r=r.substring(3),n=!0),r.startsWith("[")||r.endsWith("]"))throw Object.defineProperty(Error("Segment names may not start or end with extra brackets ('"+r+"')."),"__NEXT_ERROR_CODE",{value:"E421",enumerable:!1,configurable:!0});if(r.startsWith("."))throw Object.defineProperty(Error("Segment names may not start with erroneous periods ('"+r+"')."),"__NEXT_ERROR_CODE",{value:"E288",enumerable:!1,configurable:!0});function a(e,r){if(null!==e&&e!==r)throw Object.defineProperty(Error("You cannot use different slug names for the same dynamic path ('"+e+"' !== '"+r+"')."),"__NEXT_ERROR_CODE",{value:"E337",enumerable:!1,configurable:!0});t.forEach(e=>{if(e===r)throw Object.defineProperty(Error('You cannot have the same slug name "'+r+'" repeat within a single dynamic path'),"__NEXT_ERROR_CODE",{value:"E247",enumerable:!1,configurable:!0});if(e.replace(/\W/g,"")===o.replace(/\W/g,""))throw Object.defineProperty(Error('You cannot have the slug names "'+e+'" and "'+r+'" differ only by non-word symbols within a single dynamic path'),"__NEXT_ERROR_CODE",{value:"E499",enumerable:!1,configurable:!0})}),t.push(r)}if(n)if(i){if(null!=this.restSlugName)throw Object.defineProperty(Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+e[0]+'" ).'),"__NEXT_ERROR_CODE",{value:"E299",enumerable:!1,configurable:!0});a(this.optionalRestSlugName,r),this.optionalRestSlugName=r,o="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Object.defineProperty(Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+e[0]+'").'),"__NEXT_ERROR_CODE",{value:"E300",enumerable:!1,configurable:!0});a(this.restSlugName,r),this.restSlugName=r,o="[...]"}else{if(i)throw Object.defineProperty(Error('Optional route parameters are not yet supported ("'+e[0]+'").'),"__NEXT_ERROR_CODE",{value:"E435",enumerable:!1,configurable:!0});a(this.slugName,r),this.slugName=r,o="[]"}}this.children.has(o)||this.children.set(o,new r),this.children.get(o)._insert(e.slice(1),t,n)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function n(e){let t=new r;return e.forEach(e=>t.insert(e)),t.smoosh()}function o(e,t){let r={},o=[];for(let n=0;ne[r[t]])}},546:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"warnOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},553:(e,t)=>{"use strict";function r(e,t){if(void 0===t&&(t={}),t.onlyHashChange)return void e();let r=document.documentElement,n=r.style.scrollBehavior;r.style.scrollBehavior="auto",t.dontForceLayout||r.getClientRects(),e(),r.style.scrollBehavior=n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleSmoothScroll",{enumerable:!0,get:function(){return r}})},641:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return d}});let n=r(4252),o=r(7469),a=r(3872),i=n._(r(8804)),l=r(2696),u=r(8346),s=r(9960),c=r(9517),f=r(9591);r(95);class d{getPageList(){return(0,f.getClientBuildManifest)().then(e=>e.sortedPages)}getMiddleware(){return window.__MIDDLEWARE_MATCHERS=[],window.__MIDDLEWARE_MATCHERS}getDataHref(e){let{asPath:t,href:r,locale:n}=e,{pathname:f,query:d,search:p}=(0,s.parseRelativeUrl)(r),{pathname:h}=(0,s.parseRelativeUrl)(t),_=(0,c.removeTrailingSlash)(f);if("/"!==_[0])throw Object.defineProperty(Error('Route name should start with a "/", got "'+_+'"'),"__NEXT_ERROR_CODE",{value:"E303",enumerable:!1,configurable:!0});var m=e.skipInterpolation?h:(0,u.isDynamicRoute)(_)?(0,a.interpolateAs)(f,h,d).result:_;let g=(0,i.default)((0,c.removeTrailingSlash)((0,l.addLocale)(m,n)),".json");return(0,o.addBasePath)("/_next/data/"+this.buildId+g+p,!0)}_isSsg(e){return this.promisedSsgManifest.then(t=>t.has(e))}loadPage(e){return this.routeLoader.loadRoute(e).then(e=>{if("component"in e)return{page:e.component,mod:e.exports,styleSheets:e.styles.map(e=>({href:e.href,text:e.content}))};throw e.error})}prefetch(e){return this.routeLoader.prefetch(e)}constructor(e,t){this.routeLoader=(0,f.createRouteLoader)(t),this.buildId=e,this.assetPrefix=t,this.promisedSsgManifest=new Promise(e=>{window.__SSG_MANIFEST?e(window.__SSG_MANIFEST):window.__SSG_MANIFEST_CB=()=>{e(window.__SSG_MANIFEST)}})}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},692:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{PathnameContextProviderAdapter:function(){return p},adaptForAppRouterInstance:function(){return c},adaptForPathParams:function(){return d},adaptForSearchParams:function(){return f}});let n=r(8365),o=r(7876),a=n._(r(4232)),i=r(6394),l=r(1426),u=r(8400),s=r(9645);function c(e){return{back(){e.back()},forward(){e.forward()},refresh(){e.reload()},hmrRefresh(){},push(t,r){let{scroll:n}=void 0===r?{}:r;e.push(t,void 0,{scroll:n})},replace(t,r){let{scroll:n}=void 0===r?{}:r;e.replace(t,void 0,{scroll:n})},prefetch(t){e.prefetch(t)}}}function f(e){return e.isReady&&e.query?(0,u.asPathToSearchParams)(e.asPath):new URLSearchParams}function d(e){if(!e.isReady||!e.query)return null;let t={};for(let r of Object.keys((0,s.getRouteRegex)(e.pathname).groups))t[r]=e.query[r];return t}function p(e){let{children:t,router:r,...n}=e,u=(0,a.useRef)(n.isAutoExport),s=(0,a.useMemo)(()=>{let e,t=u.current;if(t&&(u.current=!1),(0,l.isDynamicRoute)(r.pathname)&&(r.isFallback||t&&!r.isReady))return null;try{e=new URL(r.asPath,"http://f")}catch(e){return"/"}return e.pathname},[r.asPath,r.isFallback,r.isReady,r.pathname]);return(0,o.jsx)(i.PathnameContext.Provider,{value:s,children:t})}},795:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{RouteAnnouncer:function(){return u},default:function(){return s}});let n=r(4252),o=r(7876),a=n._(r(4232)),i=r(8253),l={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",top:0,width:"1px",whiteSpace:"nowrap",wordWrap:"normal"},u=()=>{let{asPath:e}=(0,i.useRouter)(),[t,r]=a.default.useState(""),n=a.default.useRef(e);return a.default.useEffect(()=>{if(n.current!==e)if(n.current=e,document.title)r(document.title);else{var t;let n=document.querySelector("h1");r((null!=(t=null==n?void 0:n.innerText)?t:null==n?void 0:n.textContent)||e)}},[e]),(0,o.jsx)("p",{"aria-live":"assertive",id:"__next-route-announcer__",role:"alert",style:l,children:t})},s=u;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},866:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return o}});let n=r(3563);function o(e){return(0,n.pathHasPrefix)(e,"")}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},877:e=>{"use strict";e.exports=["chrome 64","edge 79","firefox 67","opera 51","safari 12"]},919:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"formatNextPathnameInfo",{enumerable:!0,get:function(){return l}});let n=r(9517),o=r(5214),a=r(2091),i=r(7986);function l(e){let t=(0,i.addLocale)(e.pathname,e.locale,e.buildId?void 0:e.defaultLocale,e.ignorePrefix);return(e.buildId||!e.trailingSlash)&&(t=(0,n.removeTrailingSlash)(t)),e.buildId&&(t=(0,a.addPathSuffix)((0,o.addPathPrefix)(t,"/_next/data/"+e.buildId),"/"===e.pathname?"index.json":".json")),t=(0,o.addPathPrefix)(t,e.basePath),!e.buildId&&e.trailingSlash?t.endsWith("/")?t:(0,a.addPathSuffix)(t,"/"):(0,n.removeTrailingSlash)(t)}},1039:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return r}});let r=function(){for(var e=arguments.length,t=Array(e),r=0;r{},1291:()=>{"trimStart"in String.prototype||(String.prototype.trimStart=String.prototype.trimLeft),"trimEnd"in String.prototype||(String.prototype.trimEnd=String.prototype.trimRight),"description"in Symbol.prototype||Object.defineProperty(Symbol.prototype,"description",{configurable:!0,get:function(){var e=/\((.*)\)/.exec(this.toString());return e?e[1]:void 0}}),Array.prototype.flat||(Array.prototype.flat=function(e,t){return t=this.concat.apply([],this),e>1&&t.some(Array.isArray)?t.flat(e-1):t},Array.prototype.flatMap=function(e,t){return this.map(e,t).flat()}),Promise.prototype.finally||(Promise.prototype.finally=function(e){if("function"!=typeof e)return this.then(e,e);var t=this.constructor||Promise;return this.then(function(r){return t.resolve(e()).then(function(){return r})},function(r){return t.resolve(e()).then(function(){throw r})})}),Object.fromEntries||(Object.fromEntries=function(e){return Array.from(e).reduce(function(e,t){return e[t[0]]=t[1],e},{})}),Array.prototype.at||(Array.prototype.at=function(e){var t=Math.trunc(e)||0;if(t<0&&(t+=this.length),!(t<0||t>=this.length))return this[t]}),Object.hasOwn||(Object.hasOwn=function(e,t){if(null==e)throw TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(e),t)}),"canParse"in URL||(URL.canParse=function(e,t){try{return new URL(e,t),!0}catch(e){return!1}})},1393:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let n=r(4232),o=n.useLayoutEffect,a=n.useEffect;function i(e){let{headManager:t,reduceComponentsToState:r}=e;function i(){if(t&&t.mountedInstances){let o=n.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(r(o,e))}}return o(()=>{var r;return null==t||null==(r=t.mountedInstances)||r.add(e.children),()=>{var r;null==t||null==(r=t.mountedInstances)||r.delete(e.children)}}),o(()=>(t&&(t._pendingUpdate=i),()=>{t&&(t._pendingUpdate=i)})),a(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},1426:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getSortedRouteObjects:function(){return n.getSortedRouteObjects},getSortedRoutes:function(){return n.getSortedRoutes},isDynamicRoute:function(){return o.isDynamicRoute}});let n=r(296),o=r(8346)},1530:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{HTML_LIMITED_BOT_UA_RE:function(){return n.HTML_LIMITED_BOT_UA_RE},HTML_LIMITED_BOT_UA_RE_STRING:function(){return a},getBotType:function(){return u},isBot:function(){return l}});let n=r(6032),o=/Googlebot|Google-PageRenderer|AdsBot-Google|googleweblight|Storebot-Google/i,a=n.HTML_LIMITED_BOT_UA_RE.source;function i(e){return n.HTML_LIMITED_BOT_UA_RE.test(e)}function l(e){return o.test(e)||i(e)}function u(e){return o.test(e)?"dom":i(e)?"html":void 0}},1670:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isNextRouterError",{enumerable:!0,get:function(){return a}});let n=r(3794),o=r(5318);function a(e){return(0,o.isRedirectError)(e)||(0,n.isHTTPAccessFallbackError)(e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1851:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return a}});let n=r(8407),o=r(866);function a(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,o.hasBasePath)(r.pathname)}catch(e){return!1}}},2091:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathSuffix",{enumerable:!0,get:function(){return o}});let n=r(8059);function o(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:o,hash:a}=(0,n.parsePath)(e);return""+r+t+o+a}},2193:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(6919),r(7647);let n=r(6656);window.next={version:n.version,get router(){return n.router},emitter:n.emitter},(0,n.initialize)({}).then(()=>(0,n.hydrate)()).catch(console.error),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2326:(e,t)=>{"use strict";function r(e){return"/api"===e||!!(null==e?void 0:e.startsWith("/api/"))}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isAPIRoute",{enumerable:!0,get:function(){return r}})},2696:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}}),r(7810);let n=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n{"use strict";function r(e){return"("===e[0]&&e.endsWith(")")}function n(e){return e.startsWith("@")&&"@children"!==e}function o(e,t){if(e.includes(a)){let e=JSON.stringify(t);return"{}"!==e?a+"?"+e:a}return e}Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DEFAULT_SEGMENT_KEY:function(){return i},PAGE_SEGMENT_KEY:function(){return a},addSearchParamsIfPageSegment:function(){return o},isGroupSegment:function(){return r},isParallelRouteSegment:function(){return n}});let a="__PAGE__",i="__DEFAULT__"},2875:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{AppRouterContext:function(){return o},GlobalLayoutRouterContext:function(){return i},LayoutRouterContext:function(){return a},MissingSlotContext:function(){return u},TemplateContext:function(){return l}});let n=r(4252)._(r(4232)),o=n.default.createContext(null),a=n.default.createContext(null),i=n.default.createContext(null),l=n.default.createContext(null),u=n.default.createContext(new Set)},2992:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getReactStitchedError",{enumerable:!0,get:function(){return s}});let n=r(4252),o=n._(r(4232)),a=n._(r(6240)),i=r(8089),l="react-stack-bottom-frame",u=RegExp("(at "+l+" )|("+l+"\\@)");function s(e){let t=(0,a.default)(e),r=t&&e.stack||"",n=t?e.message:"",l=r.split("\n"),s=l.findIndex(e=>u.test(e)),c=s>=0?l.slice(0,s).join("\n"):r,f=Object.defineProperty(Error(n),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return Object.assign(f,e),(0,i.copyNextErrorCode)(e,f),f.stack=c,function(e){if(!o.default.captureOwnerStack)return;let t=e.stack||"",r=o.default.captureOwnerStack();r&&!1===t.endsWith(r)&&(e.stack=t+=r)}(f),f}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3137:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return o}});let r=/[|\\{}()[\]^$+*?.-]/,n=/[|\\{}()[\]^$+*?.-]/g;function o(e){return r.test(e)?e.replace(n,"\\$&"):e}},3365:(e,t,r)=>{"use strict";function n(e,t){return e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeLocale",{enumerable:!0,get:function(){return n}}),r(8059),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3416:(e,t)=>{"use strict";function r(e){return e.replace(/\\/g,"/")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathSep",{enumerable:!0,get:function(){return r}})},3420:(e,t)=>{"use strict";let r;Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return n},setConfig:function(){return o}});let n=()=>r;function o(e){r=e}},3498:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getNextPathnameInfo",{enumerable:!0,get:function(){return i}});let n=r(6237),o=r(4385),a=r(3563);function i(e,t){var r,i;let{basePath:l,i18n:u,trailingSlash:s}=null!=(r=t.nextConfig)?r:{},c={pathname:e,trailingSlash:"/"!==e?e.endsWith("/"):s};l&&(0,a.pathHasPrefix)(c.pathname,l)&&(c.pathname=(0,o.removePathPrefix)(c.pathname,l),c.basePath=l);let f=c.pathname;if(c.pathname.startsWith("/_next/data/")&&c.pathname.endsWith(".json")){let e=c.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/");c.buildId=e[0],f="index"!==e[1]?"/"+e.slice(1).join("/"):"/",!0===t.parseData&&(c.pathname=f)}if(u){let e=t.i18nProvider?t.i18nProvider.analyze(c.pathname):(0,n.normalizeLocalePath)(c.pathname,u.locales);c.locale=e.detectedLocale,c.pathname=null!=(i=e.pathname)?i:c.pathname,!e.detectedLocale&&c.buildId&&(e=t.i18nProvider?t.i18nProvider.analyze(f):(0,n.normalizeLocalePath)(f,u.locales)).detectedLocale&&(c.locale=e.detectedLocale)}return c}},3542:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let n=r(4252)._(r(8460));class o{end(e){if("ended"===this.state.state)throw Object.defineProperty(Error("Span has already ended"),"__NEXT_ERROR_CODE",{value:"E17",enumerable:!1,configurable:!0});this.state={state:"ended",endTime:null!=e?e:Date.now()},this.onSpanEnd(this)}constructor(e,t,r){var n,o;this.name=e,this.attributes=null!=(n=t.attributes)?n:{},this.startTime=null!=(o=t.startTime)?o:Date.now(),this.onSpanEnd=r,this.state={state:"inprogress"}}}class a{startSpan(e,t){return new o(e,t,this.handleSpanEnd)}onSpanEnd(e){return this._emitter.on("spanend",e),()=>{this._emitter.off("spanend",e)}}constructor(){this._emitter=(0,n.default)(),this.handleSpanEnd=e=>{this._emitter.emit("spanend",e)}}}let i=new a;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3563:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return o}});let n=r(8059);function o(e,t){if("string"!=typeof e)return!1;let{pathname:r}=(0,n.parsePath)(e);return r===t||r.startsWith(t+"/")}},3794:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{HTTPAccessErrorStatus:function(){return r},HTTP_ERROR_FALLBACK_ERROR_CODE:function(){return o},getAccessFallbackErrorTypeByStatus:function(){return l},getAccessFallbackHTTPStatus:function(){return i},isHTTPAccessFallbackError:function(){return a}});let r={NOT_FOUND:404,FORBIDDEN:403,UNAUTHORIZED:401},n=new Set(Object.values(r)),o="NEXT_HTTP_ERROR_FALLBACK";function a(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let[t,r]=e.digest.split(";");return t===o&&n.has(Number(r))}function i(e){return Number(e.digest.split(";")[1])}function l(e){switch(e){case 401:return"unauthorized";case 403:return"forbidden";case 404:return"not-found";default:return}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3872:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return a}});let n=r(6808),o=r(9645);function a(e,t,r){let a="",i=(0,o.getRouteRegex)(e),l=i.groups,u=(t!==e?(0,n.getRouteMatcher)(i)(t):"")||r;a=e;let s=Object.keys(l);return s.every(e=>{let t=u[e]||"",{repeat:r,optional:n}=l[e],o="["+(r?"...":"")+e+"]";return n&&(o=(t?"":"/")+"["+o+"]"),r&&!Array.isArray(t)&&(t=[t]),(n||e in u)&&(a=a.replace(o,r?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(a=""),{params:s,result:a}}},4014:(e,t)=>{"use strict";function r(e,t){let r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(let n=r.length;n--;){let o=r[n];if("query"===o){let r=Object.keys(e.query);if(r.length!==Object.keys(t.query).length)return!1;for(let n=r.length;n--;){let o=r[n];if(!t.query.hasOwnProperty(o)||e.query[o]!==t.query[o])return!1}}else if(!t.hasOwnProperty(o)||e[o]!==t[o])return!1}return!0}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"compareRouterStates",{enumerable:!0,get:function(){return r}})},4020:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{normalizeAppPath:function(){return a},normalizeRscURL:function(){return i}});let n=r(7465),o=r(2835);function a(e){return(0,n.ensureLeadingSlash)(e.split("/").reduce((e,t,r,n)=>!t||(0,o.isGroupSegment)(t)||"@"===t[0]||("page"===t||"route"===t)&&r===n.length-1?e:e+"/"+t,""))}function i(e){return e.replace(/\.rsc($|\?)/,"$1")}},4030:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"onRecoverableError",{enumerable:!0,get:function(){return u}});let n=r(4252),o=r(5346),a=r(9898),i=r(2992),l=n._(r(6240)),u=(e,t)=>{let r=(0,l.default)(e)&&"cause"in e?e.cause:e,n=(0,i.getReactStitchedError)(r);(0,o.isBailoutToCSRError)(r)||(0,a.reportGlobalError)(n)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4100:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return c}});let n=r(4252),o=r(7876),a=n._(r(4232)),i=n._(r(9836)),l={400:"Bad Request",404:"This page could not be found",405:"Method Not Allowed",500:"Internal Server Error"};function u(e){let{req:t,res:r,err:n}=e;return{statusCode:r&&r.statusCode?r.statusCode:n?n.statusCode:404,hostname:window.location.hostname}}let s={error:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},desc:{lineHeight:"48px"},h1:{display:"inline-block",margin:"0 20px 0 0",paddingRight:23,fontSize:24,fontWeight:500,verticalAlign:"top"},h2:{fontSize:14,fontWeight:400,lineHeight:"28px"},wrap:{display:"inline-block"}};class c extends a.default.Component{render(){let{statusCode:e,withDarkMode:t=!0}=this.props,r=this.props.title||l[e]||"An unexpected error has occurred";return(0,o.jsxs)("div",{style:s.error,children:[(0,o.jsx)(i.default,{children:(0,o.jsx)("title",{children:e?e+": "+r:"Application error: a client-side exception has occurred"})}),(0,o.jsxs)("div",{style:s.desc,children:[(0,o.jsx)("style",{dangerouslySetInnerHTML:{__html:"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}"+(t?"@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}":"")}}),e?(0,o.jsx)("h1",{className:"next-error-h1",style:s.h1,children:e}):null,(0,o.jsx)("div",{style:s.wrap,children:(0,o.jsxs)("h2",{style:s.h2,children:[this.props.title||e?r:(0,o.jsxs)(o.Fragment,{children:["Application error: a client-side exception has occurred"," ",!!this.props.hostname&&(0,o.jsxs)(o.Fragment,{children:["while loading ",this.props.hostname]})," ","(see the browser console for more information)"]}),"."]})})]})]})}}c.displayName="ErrorPage",c.getInitialProps=u,c.origGetInitialProps=u,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4252:(e,t,r)=>{"use strict";function n(e){return e&&e.__esModule?e:{default:e}}r.r(t),r.d(t,{_:()=>n})},4385:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removePathPrefix",{enumerable:!0,get:function(){return o}});let n=r(3563);function o(e,t){if(!(0,n.pathHasPrefix)(e,t))return e;let r=e.slice(t.length);return r.startsWith("/")?r:"/"+r}},4754:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{cancelIdleCallback:function(){return n},requestIdleCallback:function(){return r}});let r="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},n="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4929:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{createKey:function(){return G},default:function(){return z},matchesMiddleware:function(){return D}});let n=r(4252),o=r(8365),a=r(9517),i=r(9591),l=r(7195),u=o._(r(6240)),s=r(178),c=r(6237),f=n._(r(8460)),d=r(8407),p=r(8346),h=r(9960);r(1226);let _=r(6808),m=r(9645),g=r(6225);r(1039);let b=r(8059),E=r(2696),y=r(3365),P=r(6814),v=r(7469),R=r(866),O=r(6658),S=r(2326),j=r(3498),T=r(919),A=r(4014),C=r(1851),w=r(1530),I=r(187),N=r(3872),x=r(553),M=r(9308);function L(){return Object.assign(Object.defineProperty(Error("Route Cancelled"),"__NEXT_ERROR_CODE",{value:"E315",enumerable:!1,configurable:!0}),{cancelled:!0})}async function D(e){let t=await Promise.resolve(e.router.pageLoader.getMiddleware());if(!t)return!1;let{pathname:r}=(0,b.parsePath)(e.asPath),n=(0,R.hasBasePath)(r)?(0,P.removeBasePath)(r):r,o=(0,v.addBasePath)((0,E.addLocale)(n,e.locale));return t.some(e=>new RegExp(e.regexp).test(o))}function U(e){let t=(0,d.getLocationOrigin)();return e.startsWith(t)?e.substring(t.length):e}function k(e,t,r){let[n,o]=(0,O.resolveHref)(e,t,!0),a=(0,d.getLocationOrigin)(),i=n.startsWith(a),l=o&&o.startsWith(a);n=U(n),o=o?U(o):o;let u=i?n:(0,v.addBasePath)(n),s=r?U((0,O.resolveHref)(e,r)):o||n;return{url:u,as:l?s:(0,v.addBasePath)(s)}}function F(e,t){let r=(0,a.removeTrailingSlash)((0,s.denormalizePagePath)(e));return"/404"===r||"/_error"===r?e:(t.includes(r)||t.some(t=>{if((0,p.isDynamicRoute)(t)&&(0,m.getRouteRegex)(t).re.test(r))return e=t,!0}),(0,a.removeTrailingSlash)(e))}async function B(e){if(!await D(e)||!e.fetchData)return null;let t=await e.fetchData(),r=await function(e,t,r){let n={basePath:r.router.basePath,i18n:{locales:r.router.locales},trailingSlash:!1},o=t.headers.get("x-nextjs-rewrite"),l=o||t.headers.get("x-nextjs-matched-path"),u=t.headers.get(M.MATCHED_PATH_HEADER);if(!u||l||u.includes("__next_data_catchall")||u.includes("/_error")||u.includes("/404")||(l=u),l){if(l.startsWith("/")){let t=(0,h.parseRelativeUrl)(l),u=(0,j.getNextPathnameInfo)(t.pathname,{nextConfig:n,parseData:!0}),s=(0,a.removeTrailingSlash)(u.pathname);return Promise.all([r.router.pageLoader.getPageList(),(0,i.getClientBuildManifest)()]).then(a=>{let[i,{__rewrites:l}]=a,f=(0,E.addLocale)(u.pathname,u.locale);if((0,p.isDynamicRoute)(f)||!o&&i.includes((0,c.normalizeLocalePath)((0,P.removeBasePath)(f),r.router.locales).pathname)){let r=(0,j.getNextPathnameInfo)((0,h.parseRelativeUrl)(e).pathname,{nextConfig:n,parseData:!0});t.pathname=f=(0,v.addBasePath)(r.pathname)}if(!i.includes(s)){let e=F(s,i);e!==s&&(s=e)}let d=i.includes(s)?s:F((0,c.normalizeLocalePath)((0,P.removeBasePath)(t.pathname),r.router.locales).pathname,i);if((0,p.isDynamicRoute)(d)){let e=(0,_.getRouteMatcher)((0,m.getRouteRegex)(d))(f);Object.assign(t.query,e||{})}return{type:"rewrite",parsedAs:t,resolvedHref:d}})}let t=(0,b.parsePath)(e);return Promise.resolve({type:"redirect-external",destination:""+(0,T.formatNextPathnameInfo)({...(0,j.getNextPathnameInfo)(t.pathname,{nextConfig:n,parseData:!0}),defaultLocale:r.router.defaultLocale,buildId:""})+t.query+t.hash})}let s=t.headers.get("x-nextjs-redirect");if(s){if(s.startsWith("/")){let e=(0,b.parsePath)(s),t=(0,T.formatNextPathnameInfo)({...(0,j.getNextPathnameInfo)(e.pathname,{nextConfig:n,parseData:!0}),defaultLocale:r.router.defaultLocale,buildId:""});return Promise.resolve({type:"redirect-internal",newAs:""+t+e.query+e.hash,newUrl:""+t+e.query+e.hash})}return Promise.resolve({type:"redirect-external",destination:s})}return Promise.resolve({type:"next"})}(t.dataHref,t.response,e);return{dataHref:t.dataHref,json:t.json,response:t.response,text:t.text,cacheKey:t.cacheKey,effect:r}}let H=Symbol("SSG_DATA_NOT_FOUND");function X(e){try{return JSON.parse(e)}catch(e){return null}}function W(e){let{dataHref:t,inflightCache:r,isPrefetch:n,hasMiddleware:o,isServerRender:a,parseJSON:l,persistCache:u,isBackground:s,unstable_skipClientCache:c}=e,{href:f}=new URL(t,window.location.href),d=e=>{var s;return(function e(t,r,n){return fetch(t,{credentials:"same-origin",method:n.method||"GET",headers:Object.assign({},n.headers,{"x-nextjs-data":"1"})}).then(o=>!o.ok&&r>1&&o.status>=500?e(t,r-1,n):o)})(t,a?3:1,{headers:Object.assign({},n?{purpose:"prefetch"}:{},n&&o?{"x-middleware-prefetch":"1"}:{},{}),method:null!=(s=null==e?void 0:e.method)?s:"GET"}).then(r=>r.ok&&(null==e?void 0:e.method)==="HEAD"?{dataHref:t,response:r,text:"",json:{},cacheKey:f}:r.text().then(e=>{if(!r.ok){if(o&&[301,302,307,308].includes(r.status))return{dataHref:t,response:r,text:e,json:{},cacheKey:f};if(404===r.status){var n;if(null==(n=X(e))?void 0:n.notFound)return{dataHref:t,json:{notFound:H},response:r,text:e,cacheKey:f}}let l=Object.defineProperty(Error("Failed to load static props"),"__NEXT_ERROR_CODE",{value:"E124",enumerable:!1,configurable:!0});throw a||(0,i.markAssetError)(l),l}return{dataHref:t,json:l?X(e):null,response:r,text:e,cacheKey:f}})).then(e=>(u&&"no-cache"!==e.response.headers.get("x-middleware-cache")||delete r[f],e)).catch(e=>{throw c||delete r[f],("Failed to fetch"===e.message||"NetworkError when attempting to fetch resource."===e.message||"Load failed"===e.message)&&(0,i.markAssetError)(e),e})};return c&&u?d({}).then(e=>("no-cache"!==e.response.headers.get("x-middleware-cache")&&(r[f]=Promise.resolve(e)),e)):void 0!==r[f]?r[f]:r[f]=d(s?{method:"HEAD"}:{})}function G(){return Math.random().toString(36).slice(2,10)}function q(e){let{url:t,router:r}=e;if(t===(0,v.addBasePath)((0,E.addLocale)(r.asPath,r.locale)))throw Object.defineProperty(Error("Invariant: attempted to hard navigate to the same URL "+t+" "+location.href),"__NEXT_ERROR_CODE",{value:"E282",enumerable:!1,configurable:!0});window.location.href=t}let V=e=>{let{route:t,router:r}=e,n=!1,o=r.clc=()=>{n=!0};return()=>{if(n){let e=Object.defineProperty(Error('Abort fetching component for route: "'+t+'"'),"__NEXT_ERROR_CODE",{value:"E483",enumerable:!1,configurable:!0});throw e.cancelled=!0,e}o===r.clc&&(r.clc=null)}};class z{reload(){window.location.reload()}back(){window.history.back()}forward(){window.history.forward()}push(e,t,r){return void 0===r&&(r={}),{url:e,as:t}=k(this,e,t),this.change("pushState",e,t,r)}replace(e,t,r){return void 0===r&&(r={}),{url:e,as:t}=k(this,e,t),this.change("replaceState",e,t,r)}async _bfl(e,t,n,o){{if(!this._bfl_s&&!this._bfl_d){let t,a,{BloomFilter:l}=r(5254);try{({__routerFilterStatic:t,__routerFilterDynamic:a}=await (0,i.getClientBuildManifest)())}catch(t){if(console.error(t),o)return!0;return q({url:(0,v.addBasePath)((0,E.addLocale)(e,n||this.locale,this.defaultLocale)),router:this}),new Promise(()=>{})}(null==t?void 0:t.numHashes)&&(this._bfl_s=new l(t.numItems,t.errorRate),this._bfl_s.import(t)),(null==a?void 0:a.numHashes)&&(this._bfl_d=new l(a.numItems,a.errorRate),this._bfl_d.import(a))}let c=!1,f=!1;for(let{as:r,allowMatchCurrent:i}of[{as:e},{as:t}])if(r){let t=(0,a.removeTrailingSlash)(new URL(r,"http://n").pathname),d=(0,v.addBasePath)((0,E.addLocale)(t,n||this.locale));if(i||t!==(0,a.removeTrailingSlash)(new URL(this.asPath,"http://n").pathname)){var l,u,s;for(let e of(c=c||!!(null==(l=this._bfl_s)?void 0:l.contains(t))||!!(null==(u=this._bfl_s)?void 0:u.contains(d)),[t,d])){let t=e.split("/");for(let e=0;!f&&e{})}}}}return!1}async change(e,t,r,n,o){var s,c,f,O,S,j,T,w,x;let M,U;if(!(0,C.isLocalURL)(t))return q({url:t,router:this}),!1;let B=1===n._h;B||n.shallow||await this._bfl(r,void 0,n.locale);let X=B||n._shouldResolveHref||(0,b.parsePath)(t).pathname===(0,b.parsePath)(r).pathname,W={...this.state},G=!0!==this.isReady;this.isReady=!0;let V=this.isSsr;if(B||(this.isSsr=!1),B&&this.clc)return!1;let Y=W.locale;d.ST&&performance.mark("routeChange");let{shallow:K=!1,scroll:$=!0}=n,Q={shallow:K};this._inFlightRoute&&this.clc&&(V||z.events.emit("routeChangeError",L(),this._inFlightRoute,Q),this.clc(),this.clc=null),r=(0,v.addBasePath)((0,E.addLocale)((0,R.hasBasePath)(r)?(0,P.removeBasePath)(r):r,n.locale,this.defaultLocale));let J=(0,y.removeLocale)((0,R.hasBasePath)(r)?(0,P.removeBasePath)(r):r,W.locale);this._inFlightRoute=r;let Z=Y!==W.locale;if(!B&&this.onlyAHashChange(J)&&!Z){W.asPath=J,z.events.emit("hashChangeStart",r,Q),this.changeState(e,t,r,{...n,scroll:!1}),$&&this.scrollToHash(J);try{await this.set(W,this.components[W.route],null)}catch(e){throw(0,u.default)(e)&&e.cancelled&&z.events.emit("routeChangeError",e,J,Q),e}return z.events.emit("hashChangeComplete",r,Q),!0}let ee=(0,h.parseRelativeUrl)(t),{pathname:et,query:er}=ee;try{[M,{__rewrites:U}]=await Promise.all([this.pageLoader.getPageList(),(0,i.getClientBuildManifest)(),this.pageLoader.getMiddleware()])}catch(e){return q({url:r,router:this}),!1}this.urlIsNew(J)||Z||(e="replaceState");let en=r;et=et?(0,a.removeTrailingSlash)((0,P.removeBasePath)(et)):et;let eo=(0,a.removeTrailingSlash)(et),ea=r.startsWith("/")&&(0,h.parseRelativeUrl)(r).pathname;if(null==(s=this.components[et])?void 0:s.__appRouter)return q({url:r,router:this}),new Promise(()=>{});let ei=!!(ea&&eo!==ea&&(!(0,p.isDynamicRoute)(eo)||!(0,_.getRouteMatcher)((0,m.getRouteRegex)(eo))(ea))),el=!n.shallow&&await D({asPath:r,locale:W.locale,router:this});if(B&&el&&(X=!1),X&&"/_error"!==et&&(n._shouldResolveHref=!0,ee.pathname=F(et,M),ee.pathname!==et&&(et=ee.pathname,ee.pathname=(0,v.addBasePath)(et),el||(t=(0,g.formatWithValidation)(ee)))),!(0,C.isLocalURL)(r))return q({url:r,router:this}),!1;en=(0,y.removeLocale)((0,P.removeBasePath)(en),W.locale),eo=(0,a.removeTrailingSlash)(et);let eu=!1;if((0,p.isDynamicRoute)(eo)){let e=(0,h.parseRelativeUrl)(en),n=e.pathname,o=(0,m.getRouteRegex)(eo);eu=(0,_.getRouteMatcher)(o)(n);let a=eo===n,i=a?(0,N.interpolateAs)(eo,n,er):{};if(eu&&(!a||i.result))a?r=(0,g.formatWithValidation)(Object.assign({},e,{pathname:i.result,query:(0,I.omit)(er,i.params)})):Object.assign(er,eu);else{let e=Object.keys(o.groups).filter(e=>!er[e]&&!o.groups[e].optional);if(e.length>0&&!el)throw Object.defineProperty(Error((a?"The provided `href` ("+t+") value is missing query values ("+e.join(", ")+") to be interpolated properly. ":"The provided `as` value ("+n+") is incompatible with the `href` value ("+eo+"). ")+"Read more: https://nextjs.org/docs/messages/"+(a?"href-interpolation-failed":"incompatible-href-as")),"__NEXT_ERROR_CODE",{value:"E344",enumerable:!1,configurable:!0})}}B||z.events.emit("routeChangeStart",r,Q);let es="/404"===this.pathname||"/_error"===this.pathname;try{let a=await this.getRouteInfo({route:eo,pathname:et,query:er,as:r,resolvedAs:en,routeProps:Q,locale:W.locale,isPreview:W.isPreview,hasMiddleware:el,unstable_skipClientCache:n.unstable_skipClientCache,isQueryUpdating:B&&!this.isFallback,isMiddlewareRewrite:ei});if(B||n.shallow||await this._bfl(r,"resolvedAs"in a?a.resolvedAs:void 0,W.locale),"route"in a&&el){eo=et=a.route||eo,Q.shallow||(er=Object.assign({},a.query||{},er));let e=(0,R.hasBasePath)(ee.pathname)?(0,P.removeBasePath)(ee.pathname):ee.pathname;if(eu&&et!==e&&Object.keys(eu).forEach(e=>{eu&&er[e]===eu[e]&&delete er[e]}),(0,p.isDynamicRoute)(et)){let e=!Q.shallow&&a.resolvedAs?a.resolvedAs:(0,v.addBasePath)((0,E.addLocale)(new URL(r,location.href).pathname,W.locale),!0);(0,R.hasBasePath)(e)&&(e=(0,P.removeBasePath)(e));let t=(0,m.getRouteRegex)(et),n=(0,_.getRouteMatcher)(t)(new URL(e,location.href).pathname);n&&Object.assign(er,n)}}if("type"in a)if("redirect-internal"===a.type)return this.change(e,a.newUrl,a.newAs,n);else return q({url:a.destination,router:this}),new Promise(()=>{});let i=a.Component;if(i&&i.unstable_scriptLoader&&[].concat(i.unstable_scriptLoader()).forEach(e=>{(0,l.handleClientScriptLoad)(e.props)}),(a.__N_SSG||a.__N_SSP)&&a.props){if(a.props.pageProps&&a.props.pageProps.__N_REDIRECT){n.locale=!1;let t=a.props.pageProps.__N_REDIRECT;if(t.startsWith("/")&&!1!==a.props.pageProps.__N_REDIRECT_BASE_PATH){let r=(0,h.parseRelativeUrl)(t);r.pathname=F(r.pathname,M);let{url:o,as:a}=k(this,t,t);return this.change(e,o,a,n)}return q({url:t,router:this}),new Promise(()=>{})}if(W.isPreview=!!a.props.__N_PREVIEW,a.props.notFound===H){let e;try{await this.fetchComponent("/404"),e="/404"}catch(t){e="/_error"}if(a=await this.getRouteInfo({route:e,pathname:e,query:er,as:r,resolvedAs:en,routeProps:{shallow:!1},locale:W.locale,isPreview:W.isPreview,isNotFound:!0}),"type"in a)throw Object.defineProperty(Error("Unexpected middleware effect on /404"),"__NEXT_ERROR_CODE",{value:"E158",enumerable:!1,configurable:!0})}}B&&"/_error"===this.pathname&&(null==(f=self.__NEXT_DATA__.props)||null==(c=f.pageProps)?void 0:c.statusCode)===500&&(null==(O=a.props)?void 0:O.pageProps)&&(a.props.pageProps.statusCode=500);let s=n.shallow&&W.route===(null!=(S=a.route)?S:eo),d=null!=(j=n.scroll)?j:!B&&!s,g=null!=o?o:d?{x:0,y:0}:null,b={...W,route:eo,pathname:et,query:er,asPath:J,isFallback:!1};if(B&&es){if(a=await this.getRouteInfo({route:this.pathname,pathname:this.pathname,query:er,as:r,resolvedAs:en,routeProps:{shallow:!1},locale:W.locale,isPreview:W.isPreview,isQueryUpdating:B&&!this.isFallback}),"type"in a)throw Object.defineProperty(Error("Unexpected middleware effect on "+this.pathname),"__NEXT_ERROR_CODE",{value:"E225",enumerable:!1,configurable:!0});"/_error"===this.pathname&&(null==(w=self.__NEXT_DATA__.props)||null==(T=w.pageProps)?void 0:T.statusCode)===500&&(null==(x=a.props)?void 0:x.pageProps)&&(a.props.pageProps.statusCode=500);try{await this.set(b,a,g)}catch(e){throw(0,u.default)(e)&&e.cancelled&&z.events.emit("routeChangeError",e,J,Q),e}return!0}if(z.events.emit("beforeHistoryChange",r,Q),this.changeState(e,t,r,n),!(B&&!g&&!G&&!Z&&(0,A.compareRouterStates)(b,this.state))){try{await this.set(b,a,g)}catch(e){if(e.cancelled)a.error=a.error||e;else throw e}if(a.error)throw B||z.events.emit("routeChangeError",a.error,J,Q),a.error;B||z.events.emit("routeChangeComplete",r,Q),d&&/#.+$/.test(r)&&this.scrollToHash(r)}return!0}catch(e){if((0,u.default)(e)&&e.cancelled)return!1;throw e}}changeState(e,t,r,n){void 0===n&&(n={}),("pushState"!==e||(0,d.getURL)()!==r)&&(this._shallow=n.shallow,window.history[e]({url:t,as:r,options:n,__N:!0,key:this._key="pushState"!==e?this._key:G()},"",r))}async handleRouteInfoError(e,t,r,n,o,a){if(e.cancelled)throw e;if((0,i.isAssetError)(e)||a)throw z.events.emit("routeChangeError",e,n,o),q({url:n,router:this}),L();console.error(e);try{let n,{page:o,styleSheets:a}=await this.fetchComponent("/_error"),i={props:n,Component:o,styleSheets:a,err:e,error:e};if(!i.props)try{i.props=await this.getInitialProps(o,{err:e,pathname:t,query:r})}catch(e){console.error("Error in error page `getInitialProps`: ",e),i.props={}}return i}catch(e){return this.handleRouteInfoError((0,u.default)(e)?e:Object.defineProperty(Error(e+""),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0}),t,r,n,o,!0)}}async getRouteInfo(e){let{route:t,pathname:r,query:n,as:o,resolvedAs:i,routeProps:l,locale:s,hasMiddleware:f,isPreview:d,unstable_skipClientCache:p,isQueryUpdating:h,isMiddlewareRewrite:_,isNotFound:m}=e,b=t;try{var E,y,v,R;let e=this.components[b];if(l.shallow&&e&&this.route===b)return e;let t=V({route:b,router:this});f&&(e=void 0);let u=!e||"initial"in e?void 0:e,O={dataHref:this.pageLoader.getDataHref({href:(0,g.formatWithValidation)({pathname:r,query:n}),skipInterpolation:!0,asPath:m?"/404":i,locale:s}),hasMiddleware:!0,isServerRender:this.isSsr,parseJSON:!0,inflightCache:h?this.sbc:this.sdc,persistCache:!d,isPrefetch:!1,unstable_skipClientCache:p,isBackground:h},j=h&&!_?null:await B({fetchData:()=>W(O),asPath:m?"/404":i,locale:s,router:this}).catch(e=>{if(h)return null;throw e});if(j&&("/_error"===r||"/404"===r)&&(j.effect=void 0),h&&(j?j.json=self.__NEXT_DATA__.props:j={json:self.__NEXT_DATA__.props}),t(),(null==j||null==(E=j.effect)?void 0:E.type)==="redirect-internal"||(null==j||null==(y=j.effect)?void 0:y.type)==="redirect-external")return j.effect;if((null==j||null==(v=j.effect)?void 0:v.type)==="rewrite"){let t=(0,a.removeTrailingSlash)(j.effect.resolvedHref),o=await this.pageLoader.getPageList();if((!h||o.includes(t))&&(b=t,r=j.effect.resolvedHref,n={...n,...j.effect.parsedAs.query},i=(0,P.removeBasePath)((0,c.normalizeLocalePath)(j.effect.parsedAs.pathname,this.locales).pathname),e=this.components[b],l.shallow&&e&&this.route===b&&!f))return{...e,route:b}}if((0,S.isAPIRoute)(b))return q({url:o,router:this}),new Promise(()=>{});let T=u||await this.fetchComponent(b).then(e=>({Component:e.page,styleSheets:e.styleSheets,__N_SSG:e.mod.__N_SSG,__N_SSP:e.mod.__N_SSP})),A=null==j||null==(R=j.response)?void 0:R.headers.get("x-middleware-skip"),C=T.__N_SSG||T.__N_SSP;A&&(null==j?void 0:j.dataHref)&&delete this.sdc[j.dataHref];let{props:w,cacheKey:I}=await this._getData(async()=>{if(C){if((null==j?void 0:j.json)&&!A)return{cacheKey:j.cacheKey,props:j.json};let e=(null==j?void 0:j.dataHref)?j.dataHref:this.pageLoader.getDataHref({href:(0,g.formatWithValidation)({pathname:r,query:n}),asPath:i,locale:s}),t=await W({dataHref:e,isServerRender:this.isSsr,parseJSON:!0,inflightCache:A?{}:this.sdc,persistCache:!d,isPrefetch:!1,unstable_skipClientCache:p});return{cacheKey:t.cacheKey,props:t.json||{}}}return{headers:{},props:await this.getInitialProps(T.Component,{pathname:r,query:n,asPath:o,locale:s,locales:this.locales,defaultLocale:this.defaultLocale})}});return T.__N_SSP&&O.dataHref&&I&&delete this.sdc[I],this.isPreview||!T.__N_SSG||h||W(Object.assign({},O,{isBackground:!0,persistCache:!1,inflightCache:this.sbc})).catch(()=>{}),w.pageProps=Object.assign({},w.pageProps),T.props=w,T.route=b,T.query=n,T.resolvedAs=i,this.components[b]=T,T}catch(e){return this.handleRouteInfoError((0,u.getProperError)(e),r,n,o,l)}}set(e,t,r){return this.state=e,this.sub(t,this.components["/_app"].Component,r)}beforePopState(e){this._bps=e}onlyAHashChange(e){if(!this.asPath)return!1;let[t,r]=this.asPath.split("#",2),[n,o]=e.split("#",2);return!!o&&t===n&&r===o||t===n&&r!==o}scrollToHash(e){let[,t=""]=e.split("#",2);(0,x.handleSmoothScroll)(()=>{if(""===t||"top"===t)return void window.scrollTo(0,0);let e=decodeURIComponent(t),r=document.getElementById(e);if(r)return void r.scrollIntoView();let n=document.getElementsByName(e)[0];n&&n.scrollIntoView()},{onlyHashChange:this.onlyAHashChange(e)})}urlIsNew(e){return this.asPath!==e}async prefetch(e,t,r){if(void 0===t&&(t=e),void 0===r&&(r={}),(0,w.isBot)(window.navigator.userAgent))return;let n=(0,h.parseRelativeUrl)(e),o=n.pathname,{pathname:i,query:l}=n,u=i,s=await this.pageLoader.getPageList(),c=t,f=void 0!==r.locale?r.locale||void 0:this.locale,d=await D({asPath:t,locale:f,router:this});n.pathname=F(n.pathname,s),(0,p.isDynamicRoute)(n.pathname)&&(i=n.pathname,n.pathname=i,Object.assign(l,(0,_.getRouteMatcher)((0,m.getRouteRegex)(n.pathname))((0,b.parsePath)(t).pathname)||{}),d||(e=(0,g.formatWithValidation)(n)));let E=await B({fetchData:()=>W({dataHref:this.pageLoader.getDataHref({href:(0,g.formatWithValidation)({pathname:u,query:l}),skipInterpolation:!0,asPath:c,locale:f}),hasMiddleware:!0,isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0}),asPath:t,locale:f,router:this});if((null==E?void 0:E.effect.type)==="rewrite"&&(n.pathname=E.effect.resolvedHref,i=E.effect.resolvedHref,l={...l,...E.effect.parsedAs.query},c=E.effect.parsedAs.pathname,e=(0,g.formatWithValidation)(n)),(null==E?void 0:E.effect.type)==="redirect-external")return;let y=(0,a.removeTrailingSlash)(i);await this._bfl(t,c,r.locale,!0)&&(this.components[o]={__appRouter:!0}),await Promise.all([this.pageLoader._isSsg(y).then(t=>!!t&&W({dataHref:(null==E?void 0:E.json)?null==E?void 0:E.dataHref:this.pageLoader.getDataHref({href:e,asPath:c,locale:f}),isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0,unstable_skipClientCache:r.unstable_skipClientCache||r.priority&&!0}).then(()=>!1).catch(()=>!1)),this.pageLoader[r.priority?"loadPage":"prefetch"](y)])}async fetchComponent(e){let t=V({route:e,router:this});try{let r=await this.pageLoader.loadPage(e);return t(),r}catch(e){throw t(),e}}_getData(e){let t=!1,r=()=>{t=!0};return this.clc=r,e().then(e=>{if(r===this.clc&&(this.clc=null),t){let e=Object.defineProperty(Error("Loading initial props cancelled"),"__NEXT_ERROR_CODE",{value:"E405",enumerable:!1,configurable:!0});throw e.cancelled=!0,e}return e})}getInitialProps(e,t){let{Component:r}=this.components["/_app"],n=this._wrapApp(r);return t.AppTree=n,(0,d.loadGetInitialProps)(r,{AppTree:n,Component:e,router:this,ctx:t})}get route(){return this.state.route}get pathname(){return this.state.pathname}get query(){return this.state.query}get asPath(){return this.state.asPath}get locale(){return this.state.locale}get isFallback(){return this.state.isFallback}get isPreview(){return this.state.isPreview}constructor(e,t,r,{initialProps:n,pageLoader:o,App:i,wrapApp:l,Component:u,err:s,subscription:c,isFallback:f,locale:_,locales:m,defaultLocale:b,domainLocales:E,isPreview:y}){this.sdc={},this.sbc={},this.isFirstPopStateEvent=!0,this._key=G(),this.onPopState=e=>{let t,{isFirstPopStateEvent:r}=this;this.isFirstPopStateEvent=!1;let n=e.state;if(!n){let{pathname:e,query:t}=this;this.changeState("replaceState",(0,g.formatWithValidation)({pathname:(0,v.addBasePath)(e),query:t}),(0,d.getURL)());return}if(n.__NA)return void window.location.reload();if(!n.__N||r&&this.locale===n.options.locale&&n.as===this.asPath)return;let{url:o,as:a,options:i,key:l}=n;this._key=l;let{pathname:u}=(0,h.parseRelativeUrl)(o);(!this.isSsr||a!==(0,v.addBasePath)(this.asPath)||u!==(0,v.addBasePath)(this.pathname))&&(!this._bps||this._bps(n))&&this.change("replaceState",o,a,Object.assign({},i,{shallow:i.shallow&&this._shallow,locale:i.locale||this.defaultLocale,_h:0}),t)};let P=(0,a.removeTrailingSlash)(e);this.components={},"/_error"!==e&&(this.components[P]={Component:u,initial:!0,props:n,err:s,__N_SSG:n&&n.__N_SSG,__N_SSP:n&&n.__N_SSP}),this.components["/_app"]={Component:i,styleSheets:[]},this.events=z.events,this.pageLoader=o;let R=(0,p.isDynamicRoute)(e)&&self.__NEXT_DATA__.autoExport;if(this.basePath="",this.sub=c,this.clc=null,this._wrapApp=l,this.isSsr=!0,this.isLocaleDomain=!1,this.isReady=!!(self.__NEXT_DATA__.gssp||self.__NEXT_DATA__.gip||self.__NEXT_DATA__.isExperimentalCompile||self.__NEXT_DATA__.appGip&&!self.__NEXT_DATA__.gsp||!R&&!self.location.search),this.state={route:P,pathname:e,query:t,asPath:R?e:r,isPreview:!!y,locale:void 0,isFallback:f},this._initialMatchesMiddlewarePromise=Promise.resolve(!1),!r.startsWith("//")){let n={locale:_},o=(0,d.getURL)();this._initialMatchesMiddlewarePromise=D({router:this,locale:_,asPath:o}).then(a=>(n._shouldResolveHref=r!==e,this.changeState("replaceState",a?o:(0,g.formatWithValidation)({pathname:(0,v.addBasePath)(e),query:t}),o,n),a))}window.addEventListener("popstate",this.onPopState)}}z.events=(0,f.default)()},5214:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathPrefix",{enumerable:!0,get:function(){return o}});let n=r(8059);function o(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:o,hash:a}=(0,n.parsePath)(e);return""+t+r+o+a}},5254:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BloomFilter",{enumerable:!0,get:function(){return r}});class r{static from(e,t){void 0===t&&(t=1e-4);let n=new r(e.length,t);for(let t of e)n.add(t);return n}export(){return{numItems:this.numItems,errorRate:this.errorRate,numBits:this.numBits,numHashes:this.numHashes,bitArray:this.bitArray}}import(e){this.numItems=e.numItems,this.errorRate=e.errorRate,this.numBits=e.numBits,this.numHashes=e.numHashes,this.bitArray=e.bitArray}add(e){this.getHashValues(e).forEach(e=>{this.bitArray[e]=1})}contains(e){return this.getHashValues(e).every(e=>this.bitArray[e])}getHashValues(e){let t=[];for(let r=1;r<=this.numHashes;r++){let n=function(e){let t=0;for(let r=0;r>>13,t=Math.imul(t,0x5bd1e995);return t>>>0}(""+e+r)%this.numBits;t.push(n)}return t}constructor(e,t=1e-4){this.numItems=e,this.errorRate=t,this.numBits=Math.ceil(-(e*Math.log(t))/(Math.log(2)*Math.log(2))),this.numHashes=Math.ceil(this.numBits/e*Math.log(2)),this.bitArray=Array(this.numBits).fill(0)}}},5318:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{REDIRECT_ERROR_CODE:function(){return o},RedirectType:function(){return a},isRedirectError:function(){return i}});let n=r(8316),o="NEXT_REDIRECT";var a=function(e){return e.push="push",e.replace="replace",e}({});function i(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let t=e.digest.split(";"),[r,a]=t,i=t.slice(2,-2).join(";"),l=Number(t.at(-2));return r===o&&("replace"===a||"push"===a)&&"string"==typeof i&&!isNaN(l)&&l in n.RedirectStatusCode}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5346:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{BailoutToCSRError:function(){return n},isBailoutToCSRError:function(){return o}});let r="BAILOUT_TO_CLIENT_SIDE_RENDERING";class n extends Error{constructor(e){super("Bail out to client-side rendering: "+e),this.reason=e,this.digest=r}}function o(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===r}},5364:(e,t,r)=>{"use strict";var n,o;e.exports=(null==(n=r.g.process)?void 0:n.env)&&"object"==typeof(null==(o=r.g.process)?void 0:o.env)?r.g.process:r(5861)},5647:(e,t)=>{"use strict";let r;function n(e){var t;return(null==(t=function(){if(void 0===r){var e;r=(null==(e=window.trustedTypes)?void 0:e.createPolicy("nextjs",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e}))||null}return r}())?void 0:t.createScriptURL(e))||e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"__unsafeCreateTrustedScriptURL",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5648:(e,t)=>{"use strict";function r(e){let{ampFirst:t=!1,hybrid:r=!1,hasQuery:n=!1}=void 0===e?{}:e;return t||r&&n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isInAmpMode",{enumerable:!0,get:function(){return r}})},5805:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Portal",{enumerable:!0,get:function(){return a}});let n=r(4232),o=r(8477),a=e=>{let{children:t,type:r}=e,[a,i]=(0,n.useState)(null);return(0,n.useEffect)(()=>{let e=document.createElement(r);return document.body.appendChild(e),i(e),()=>{document.body.removeChild(e)}},[r]),a?(0,o.createPortal)(t,a):null};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5861:e=>{!function(){var t={229:function(e){var t,r,n,o=e.exports={};function a(){throw Error("setTimeout has not been defined")}function i(){throw Error("clearTimeout has not been defined")}try{t="function"==typeof setTimeout?setTimeout:a}catch(e){t=a}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}function l(e){if(t===setTimeout)return setTimeout(e,0);if((t===a||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}var u=[],s=!1,c=-1;function f(){s&&n&&(s=!1,n.length?u=n.concat(u):c=-1,u.length&&d())}function d(){if(!s){var e=l(f);s=!0;for(var t=u.length;t;){for(n=u,u=[];++c1)for(var r=1;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HTML_LIMITED_BOT_UA_RE",{enumerable:!0,get:function(){return r}});let r=/Mediapartners-Google|Slurp|DuckDuckBot|baiduspider|yandex|sogou|bitlybot|tumblr|vkShare|quora link preview|redditbot|ia_archiver|Bingbot|BingPreview|applebot|facebookexternalhit|facebookcatalog|Twitterbot|LinkedInBot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|Yeti/i},6225:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{formatUrl:function(){return a},formatWithValidation:function(){return l},urlObjectKeys:function(){return i}});let n=r(8365)._(r(7139)),o=/https?|ftp|gopher|file/;function a(e){let{auth:t,hostname:r}=e,a=e.protocol||"",i=e.pathname||"",l=e.hash||"",u=e.query||"",s=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?s=t+e.host:r&&(s=t+(~r.indexOf(":")?"["+r+"]":r),e.port&&(s+=":"+e.port)),u&&"object"==typeof u&&(u=String(n.urlQueryToSearchParams(u)));let c=e.search||u&&"?"+u||"";return a&&!a.endsWith(":")&&(a+=":"),e.slashes||(!a||o.test(a))&&!1!==s?(s="//"+(s||""),i&&"/"!==i[0]&&(i="/"+i)):s||(s=""),l&&"#"!==l[0]&&(l="#"+l),c&&"?"!==c[0]&&(c="?"+c),""+a+s+(i=i.replace(/[?#]/g,encodeURIComponent))+(c=c.replace("#","%23"))+l}let i=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function l(e){return a(e)}},6237:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return n}});let r=new WeakMap;function n(e,t){let n;if(!t)return{pathname:e};let o=r.get(t);o||(o=t.map(e=>e.toLowerCase()),r.set(t,o));let a=e.split("/",2);if(!a[1])return{pathname:e};let i=a[1].toLowerCase(),l=o.indexOf(i);return l<0?{pathname:e}:(n=t[l],{pathname:e=e.slice(n.length+1)||"/",detectedLocale:n})}},6240:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return o},getProperError:function(){return a}});let n=r(7925);function o(e){return"object"==typeof e&&null!==e&&"name"in e&&"message"in e}function a(e){return o(e)?e:Object.defineProperty(Error((0,n.isPlainObject)(e)?function(e){let t=new WeakSet;return JSON.stringify(e,(e,r)=>{if("object"==typeof r&&null!==r){if(t.has(r))return"[Circular]";t.add(r)}return r})}(e):e+""),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0})}},6394:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{PathParamsContext:function(){return i},PathnameContext:function(){return a},SearchParamsContext:function(){return o}});let n=r(4232),o=(0,n.createContext)(null),a=(0,n.createContext)(null),i=(0,n.createContext)(null)},6443:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{INTERCEPTION_ROUTE_MARKERS:function(){return o},extractInterceptionRouteInformation:function(){return i},isInterceptionRouteAppPath:function(){return a}});let n=r(4020),o=["(..)(..)","(.)","(..)","(...)"];function a(e){return void 0!==e.split("/").find(e=>o.find(t=>e.startsWith(t)))}function i(e){let t,r,a;for(let n of e.split("/"))if(r=o.find(e=>n.startsWith(e))){[t,a]=e.split(r,2);break}if(!t||!r||!a)throw Object.defineProperty(Error("Invalid interception route: "+e+". Must be in the format //(..|...|..)(..)/"),"__NEXT_ERROR_CODE",{value:"E269",enumerable:!1,configurable:!0});switch(t=(0,n.normalizeAppPath)(t),r){case"(.)":a="/"===t?"/"+a:t+"/"+a;break;case"(..)":if("/"===t)throw Object.defineProperty(Error("Invalid interception route: "+e+". Cannot use (..) marker at the root level, use (.) instead."),"__NEXT_ERROR_CODE",{value:"E207",enumerable:!1,configurable:!0});a=t.split("/").slice(0,-1).concat(a).join("/");break;case"(...)":a="/"+a;break;case"(..)(..)":let i=t.split("/");if(i.length<=2)throw Object.defineProperty(Error("Invalid interception route: "+e+". Cannot use (..)(..) marker at the root level or one level up."),"__NEXT_ERROR_CODE",{value:"E486",enumerable:!1,configurable:!0});a=i.slice(0,-2).concat(a).join("/");break;default:throw Object.defineProperty(Error("Invariant: unexpected marker"),"__NEXT_ERROR_CODE",{value:"E112",enumerable:!1,configurable:!0})}return{interceptingRoute:t,interceptedRoute:a}}},6656:(e,t,r)=>{"use strict";let n,o,a,i,l,u,s,c,f,d,p,h;Object.defineProperty(t,"__esModule",{value:!0});let _=r(8365);Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{emitter:function(){return X},hydrate:function(){return eu},initialize:function(){return V},router:function(){return n},version:function(){return H}});let m=r(4252),g=r(7876);r(1291);let b=m._(r(4232)),E=m._(r(8944)),y=r(6834),P=m._(r(8460)),v=r(8265),R=r(553),O=r(8346),S=r(7139),j=r(3420),T=r(8407),A=r(5805),C=m._(r(8660)),w=m._(r(641)),I=r(795),N=r(8253),x=r(6240),M=r(72),L=r(6814),D=r(866),U=r(2875),k=r(692),F=r(6394),B=r(4030);r(3542),r(1670);let H="15.3.5",X=(0,P.default)(),W=e=>[].slice.call(e),G=!1;class q extends b.default.Component{componentDidCatch(e,t){this.props.fn(e,t)}componentDidMount(){this.scrollToHash(),n.isSsr&&(o.isFallback||o.nextExport&&((0,O.isDynamicRoute)(n.pathname)||location.search||G)||o.props&&o.props.__N_SSG&&(location.search||G))&&n.replace(n.pathname+"?"+String((0,S.assign)((0,S.urlQueryToSearchParams)(n.query),new URLSearchParams(location.search))),a,{_h:1,shallow:!o.isFallback&&!G}).catch(e=>{if(!e.cancelled)throw e})}componentDidUpdate(){this.scrollToHash()}scrollToHash(){let{hash:e}=location;if(!(e=e&&e.substring(1)))return;let t=document.getElementById(e);t&&setTimeout(()=>t.scrollIntoView(),0)}render(){return this.props.children}}async function V(e){void 0===e&&(e={}),o=JSON.parse(document.getElementById("__NEXT_DATA__").textContent),window.__NEXT_DATA__=o,h=o.defaultLocale;let t=o.assetPrefix||"";if(self.__next_set_public_path__(""+t+"/_next/"),(0,j.setConfig)({serverRuntimeConfig:{},publicRuntimeConfig:o.runtimeConfig||{}}),a=(0,T.getURL)(),(0,D.hasBasePath)(a)&&(a=(0,L.removeBasePath)(a)),o.scriptLoader){let{initScriptLoader:e}=r(7195);e(o.scriptLoader)}i=new w.default(o.buildId,t);let s=e=>{let[t,r]=e;return i.routeLoader.onEntrypoint(t,r)};return window.__NEXT_P&&window.__NEXT_P.map(e=>setTimeout(()=>s(e),0)),window.__NEXT_P=[],window.__NEXT_P.push=s,(u=(0,C.default)()).getIsSsr=()=>n.isSsr,l=document.getElementById("__next"),{assetPrefix:t}}function z(e,t){return(0,g.jsx)(e,{...t})}function Y(e){var t;let{children:r}=e,o=b.default.useMemo(()=>(0,k.adaptForAppRouterInstance)(n),[]);return(0,g.jsx)(q,{fn:e=>$({App:f,err:e}).catch(e=>console.error("Error rendering page: ",e)),children:(0,g.jsx)(U.AppRouterContext.Provider,{value:o,children:(0,g.jsx)(F.SearchParamsContext.Provider,{value:(0,k.adaptForSearchParams)(n),children:(0,g.jsx)(k.PathnameContextProviderAdapter,{router:n,isAutoExport:null!=(t=self.__NEXT_DATA__.autoExport)&&t,children:(0,g.jsx)(F.PathParamsContext.Provider,{value:(0,k.adaptForPathParams)(n),children:(0,g.jsx)(v.RouterContext.Provider,{value:(0,N.makePublicRouterInstance)(n),children:(0,g.jsx)(y.HeadManagerContext.Provider,{value:u,children:(0,g.jsx)(M.ImageConfigContext.Provider,{value:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1},children:r})})})})})})})})}let K=e=>t=>{let r={...t,Component:p,err:o.err,router:n};return(0,g.jsx)(Y,{children:z(e,r)})};function $(e){let{App:t,err:l}=e;return console.error(l),console.error("A client-side exception has occurred, see here for more info: https://nextjs.org/docs/messages/client-side-exception-occurred"),i.loadPage("/_error").then(n=>{let{page:o,styleSheets:a}=n;return(null==s?void 0:s.Component)===o?Promise.resolve().then(()=>_._(r(4100))).then(n=>Promise.resolve().then(()=>_._(r(57))).then(r=>(e.App=t=r.default,n))).then(e=>({ErrorComponent:e.default,styleSheets:[]})):{ErrorComponent:o,styleSheets:a}}).then(r=>{var i;let{ErrorComponent:u,styleSheets:s}=r,c=K(t),f={Component:u,AppTree:c,router:n,ctx:{err:l,pathname:o.page,query:o.query,asPath:a,AppTree:c}};return Promise.resolve((null==(i=e.props)?void 0:i.err)?e.props:(0,T.loadGetInitialProps)(t,f)).then(t=>ei({...e,err:l,Component:u,styleSheets:s,props:t}))})}function Q(e){let{callback:t}=e;return b.default.useLayoutEffect(()=>t(),[t]),null}let J={navigationStart:"navigationStart",beforeRender:"beforeRender",afterRender:"afterRender",afterHydrate:"afterHydrate",routeChange:"routeChange"},Z={hydration:"Next.js-hydration",beforeHydration:"Next.js-before-hydration",routeChangeToRender:"Next.js-route-change-to-render",render:"Next.js-render"},ee=null,et=!0;function er(){[J.beforeRender,J.afterHydrate,J.afterRender,J.routeChange].forEach(e=>performance.clearMarks(e))}function en(){T.ST&&(performance.mark(J.afterHydrate),performance.getEntriesByName(J.beforeRender,"mark").length&&(performance.measure(Z.beforeHydration,J.navigationStart,J.beforeRender),performance.measure(Z.hydration,J.beforeRender,J.afterHydrate)),d&&performance.getEntriesByName(Z.hydration).forEach(d),er())}function eo(){if(!T.ST)return;performance.mark(J.afterRender);let e=performance.getEntriesByName(J.routeChange,"mark");e.length&&(performance.getEntriesByName(J.beforeRender,"mark").length&&(performance.measure(Z.routeChangeToRender,e[0].name,J.beforeRender),performance.measure(Z.render,J.beforeRender,J.afterRender),d&&(performance.getEntriesByName(Z.render).forEach(d),performance.getEntriesByName(Z.routeChangeToRender).forEach(d))),er(),[Z.routeChangeToRender,Z.render].forEach(e=>performance.clearMeasures(e)))}function ea(e){let{callbacks:t,children:r}=e;return b.default.useLayoutEffect(()=>t.forEach(e=>e()),[t]),r}function ei(e){let t,r,{App:o,Component:a,props:i,err:u}=e,f="initial"in e?void 0:e.styleSheets;a=a||s.Component;let d={...i=i||s.props,Component:a,err:u,router:n};s=d;let p=!1,h=new Promise((e,t)=>{c&&c(),r=()=>{c=null,e()},c=()=>{p=!0,c=null;let e=Object.defineProperty(Error("Cancel rendering route"),"__NEXT_ERROR_CODE",{value:"E503",enumerable:!1,configurable:!0});e.cancelled=!0,t(e)}});function _(){r()}!function(){if(!f)return;let e=new Set(W(document.querySelectorAll("style[data-n-href]")).map(e=>e.getAttribute("data-n-href"))),t=document.querySelector("noscript[data-n-css]"),r=null==t?void 0:t.getAttribute("data-n-css");f.forEach(t=>{let{href:n,text:o}=t;if(!e.has(n)){let e=document.createElement("style");e.setAttribute("data-n-href",n),e.setAttribute("media","x"),r&&e.setAttribute("nonce",r),document.head.appendChild(e),e.appendChild(document.createTextNode(o))}})}();let m=(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(Q,{callback:function(){if(f&&!p){let e=new Set(f.map(e=>e.href)),t=W(document.querySelectorAll("style[data-n-href]")),r=t.map(e=>e.getAttribute("data-n-href"));for(let n=0;n{let{href:t}=e,r=document.querySelector('style[data-n-href="'+t+'"]');r&&(n.parentNode.insertBefore(r,n.nextSibling),n=r)}),W(document.querySelectorAll("link[data-n-p]")).forEach(e=>{e.parentNode.removeChild(e)})}if(e.scroll){let{x:t,y:r}=e.scroll;(0,R.handleSmoothScroll)(()=>{window.scrollTo(t,r)})}}}),(0,g.jsxs)(Y,{children:[z(o,d),(0,g.jsx)(A.Portal,{type:"next-route-announcer",children:(0,g.jsx)(I.RouteAnnouncer,{})})]})]});var y=l;T.ST&&performance.mark(J.beforeRender);let P=(t=et?en:eo,(0,g.jsx)(ea,{callbacks:[t,_],children:(0,g.jsx)(b.default.StrictMode,{children:m})}));return ee?(0,b.default.startTransition)(()=>{ee.render(P)}):(ee=E.default.hydrateRoot(y,P,{onRecoverableError:B.onRecoverableError}),et=!1),h}async function el(e){if(e.err&&(void 0===e.Component||!e.isHydratePass))return void await $(e);try{await ei(e)}catch(r){let t=(0,x.getProperError)(r);if(t.cancelled)throw t;await $({...e,err:t})}}async function eu(e){let t=o.err;try{let e=await i.routeLoader.whenEntrypoint("/_app");if("error"in e)throw e.error;let{component:t,exports:r}=e;f=t,r&&r.reportWebVitals&&(d=e=>{let t,{id:n,name:o,startTime:a,value:i,duration:l,entryType:u,entries:s,attribution:c}=e,f=Date.now()+"-"+(Math.floor(Math.random()*(9e12-1))+1e12);s&&s.length&&(t=s[0].startTime);let d={id:n||f,name:o,startTime:a||t,value:null==i?l:i,label:"mark"===u||"measure"===u?"custom":"web-vital"};c&&(d.attribution=c),r.reportWebVitals(d)});let n=await i.routeLoader.whenEntrypoint(o.page);if("error"in n)throw n.error;p=n.component}catch(e){t=(0,x.getProperError)(e)}window.__NEXT_PRELOADREADY&&await window.__NEXT_PRELOADREADY(o.dynamicIds),n=(0,N.createRouter)(o.page,o.query,a,{initialProps:o.props,pageLoader:i,App:f,Component:p,wrapApp:K,err:t,isFallback:!!o.isFallback,subscription:(e,t,r)=>el(Object.assign({},e,{App:t,scroll:r})),locale:o.locale,locales:o.locales,defaultLocale:h,domainLocales:o.domainLocales,isPreview:o.isPreview}),G=await n._initialMatchesMiddlewarePromise;let r={App:f,initial:!0,Component:p,props:o.props,err:t,isHydratePass:!0};(null==e?void 0:e.beforeRender)&&await e.beforeRender(),el(r)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6658:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return f}});let n=r(7139),o=r(6225),a=r(187),i=r(8407),l=r(7810),u=r(1851),s=r(1426),c=r(3872);function f(e,t,r){let f,d="string"==typeof t?t:(0,o.formatWithValidation)(t),p=d.match(/^[a-zA-Z]{1,}:\/\//),h=p?d.slice(p[0].length):d;if((h.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+d+"' passed to next/router in page: '"+e.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");let t=(0,i.normalizeRepeatedSlashes)(h);d=(p?p[0]:"")+t}if(!(0,u.isLocalURL)(d))return r?[d]:d;try{f=new URL(d.startsWith("#")?e.asPath:e.pathname,"http://n")}catch(e){f=new URL("/","http://n")}try{let e=new URL(d,f);e.pathname=(0,l.normalizePathTrailingSlash)(e.pathname);let t="";if((0,s.isDynamicRoute)(e.pathname)&&e.searchParams&&r){let r=(0,n.searchParamsToUrlQuery)(e.searchParams),{result:i,params:l}=(0,c.interpolateAs)(e.pathname,e.pathname,r);i&&(t=(0,o.formatWithValidation)({pathname:i,hash:e.hash,query:(0,a.omit)(r,l)}))}let i=e.origin===f.origin?e.href.slice(e.origin.length):e.href;return r?[i,t||i]:i}catch(e){return r?[d]:d}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6808:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return o}});let n=r(8407);function o(e){let{re:t,groups:r}=e;return e=>{let o=t.exec(e);if(!o)return!1;let a=e=>{try{return decodeURIComponent(e)}catch(e){throw Object.defineProperty(new n.DecodeError("failed to decode param"),"__NEXT_ERROR_CODE",{value:"E528",enumerable:!1,configurable:!0})}},i={};for(let[e,t]of Object.entries(r)){let r=o[t.pos];void 0!==r&&(t.repeat?i[e]=r.split("/").map(e=>a(e)):i[e]=a(r))}return i}}},6814:(e,t,r)=>{"use strict";function n(e){return e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeBasePath",{enumerable:!0,get:function(){return n}}),r(866),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6834:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HeadManagerContext",{enumerable:!0,get:function(){return n}});let n=r(4252)._(r(4232)).default.createContext({})},6886:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"setAttributesFromProps",{enumerable:!0,get:function(){return a}});let r={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"},n=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"];function o(e){return["async","defer","noModule"].includes(e)}function a(e,t){for(let[a,i]of Object.entries(t)){if(!t.hasOwnProperty(a)||n.includes(a)||void 0===i)continue;let l=r[a]||a.toLowerCase();"SCRIPT"===e.tagName&&o(l)?e[l]=!!i:e.setAttribute(l,String(i)),(!1===i||"SCRIPT"===e.tagName&&o(l)&&(!i||"false"===i))&&(e.setAttribute(l,""),e.removeAttribute(l))}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6904:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{VALID_LOADERS:function(){return r},imageConfigDefault:function(){return n}});let r=["default","imgix","cloudinary","akamai","custom"],n={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:void 0,unoptimized:!1}},6919:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8757),self.__next_set_public_path__=e=>{r.p=e},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7137:(e,t)=>{"use strict";function r(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"encodeURIPath",{enumerable:!0,get:function(){return r}})},7139:(e,t)=>{"use strict";function r(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function n(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function o(e){let t=new URLSearchParams;for(let[r,o]of Object.entries(e))if(Array.isArray(o))for(let e of o)t.append(r,n(e));else t.set(r,n(o));return t}function a(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return b},handleClientScriptLoad:function(){return _},initScriptLoader:function(){return m}});let n=r(4252),o=r(8365),a=r(7876),i=n._(r(8477)),l=o._(r(4232)),u=r(6834),s=r(6886),c=r(4754),f=new Map,d=new Set,p=e=>{if(i.default.preinit)return void e.forEach(e=>{i.default.preinit(e,{as:"style"})});{let t=document.head;e.forEach(e=>{let r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.href=e,t.appendChild(r)})}},h=e=>{let{src:t,id:r,onLoad:n=()=>{},onReady:o=null,dangerouslySetInnerHTML:a,children:i="",strategy:l="afterInteractive",onError:u,stylesheets:c}=e,h=r||t;if(h&&d.has(h))return;if(f.has(t)){d.add(h),f.get(t).then(n,u);return}let _=()=>{o&&o(),d.add(h)},m=document.createElement("script"),g=new Promise((e,t)=>{m.addEventListener("load",function(t){e(),n&&n.call(this,t),_()}),m.addEventListener("error",function(e){t(e)})}).catch(function(e){u&&u(e)});a?(m.innerHTML=a.__html||"",_()):i?(m.textContent="string"==typeof i?i:Array.isArray(i)?i.join(""):"",_()):t&&(m.src=t,f.set(t,g)),(0,s.setAttributesFromProps)(m,e),"worker"===l&&m.setAttribute("type","text/partytown"),m.setAttribute("data-nscript",l),c&&p(c),document.body.appendChild(m)};function _(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>h(e))}):h(e)}function m(e){e.forEach(_),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");d.add(t)})}function g(e){let{id:t,src:r="",onLoad:n=()=>{},onReady:o=null,strategy:s="afterInteractive",onError:f,stylesheets:p,..._}=e,{updateScripts:m,scripts:g,getIsSsr:b,appDir:E,nonce:y}=(0,l.useContext)(u.HeadManagerContext),P=(0,l.useRef)(!1);(0,l.useEffect)(()=>{let e=t||r;P.current||(o&&e&&d.has(e)&&o(),P.current=!0)},[o,t,r]);let v=(0,l.useRef)(!1);if((0,l.useEffect)(()=>{if(!v.current){if("afterInteractive"===s)h(e);else"lazyOnload"===s&&("complete"===document.readyState?(0,c.requestIdleCallback)(()=>h(e)):window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>h(e))}));v.current=!0}},[e,s]),("beforeInteractive"===s||"worker"===s)&&(m?(g[s]=(g[s]||[]).concat([{id:t,src:r,onLoad:n,onReady:o,onError:f,..._}]),m(g)):b&&b()?d.add(t||r):b&&!b()&&h(e)),E){if(p&&p.forEach(e=>{i.default.preinit(e,{as:"style"})}),"beforeInteractive"===s)if(!r)return _.dangerouslySetInnerHTML&&(_.children=_.dangerouslySetInnerHTML.__html,delete _.dangerouslySetInnerHTML),(0,a.jsx)("script",{nonce:y,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{..._,id:t}])+")"}});else return i.default.preload(r,_.integrity?{as:"script",integrity:_.integrity,nonce:y,crossOrigin:_.crossOrigin}:{as:"script",nonce:y,crossOrigin:_.crossOrigin}),(0,a.jsx)("script",{nonce:y,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([r,{..._,id:t}])+")"}});"afterInteractive"===s&&r&&i.default.preload(r,_.integrity?{as:"script",integrity:_.integrity,nonce:y,crossOrigin:_.crossOrigin}:{as:"script",nonce:y,crossOrigin:_.crossOrigin})}return null}Object.defineProperty(g,"__nextScript",{value:!0});let b=g;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7465:(e,t)=>{"use strict";function r(e){return e.startsWith("/")?e:"/"+e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ensureLeadingSlash",{enumerable:!0,get:function(){return r}})},7469:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return a}});let n=r(5214),o=r(7810);function a(e,t){return(0,o.normalizePathTrailingSlash)((0,n.addPathPrefix)(e,""))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7647:(e,t,r)=>{"use strict";e.exports=r(9393)},7810:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return a}});let n=r(9517),o=r(8059),a=e=>{if(!e.startsWith("/"))return e;let{pathname:t,query:r,hash:a}=(0,o.parsePath)(e);return""+(0,n.removeTrailingSlash)(t)+r+a};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7925:(e,t)=>{"use strict";function r(e){return Object.prototype.toString.call(e)}function n(e){if("[object Object]"!==r(e))return!1;let t=Object.getPrototypeOf(e);return null===t||t.hasOwnProperty("isPrototypeOf")}Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getObjectClassLabel:function(){return r},isPlainObject:function(){return n}})},7986:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return a}});let n=r(5214),o=r(3563);function a(e,t,r,a){if(!t||t===r)return e;let i=e.toLowerCase();return!a&&((0,o.pathHasPrefix)(i,"/api")||(0,o.pathHasPrefix)(i,"/"+t.toLowerCase()))?e:(0,n.addPathPrefix)(e,"/"+t)}},8059:(e,t)=>{"use strict";function r(e){let t=e.indexOf("#"),r=e.indexOf("?"),n=r>-1&&(t<0||r-1?{pathname:e.substring(0,n?r:t),query:n?e.substring(r,t>-1?t:void 0):"",hash:t>-1?e.slice(t):""}:{pathname:e,query:"",hash:""}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parsePath",{enumerable:!0,get:function(){return r}})},8089:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{copyNextErrorCode:function(){return n},createDigestWithErrorCode:function(){return r},extractNextErrorCode:function(){return o}});let r=(e,t)=>"object"==typeof e&&null!==e&&"__NEXT_ERROR_CODE"in e?`${t}@${e.__NEXT_ERROR_CODE}`:t,n=(e,t)=>{let r=o(e);r&&"object"==typeof t&&null!==t&&Object.defineProperty(t,"__NEXT_ERROR_CODE",{value:r,enumerable:!1,configurable:!0})},o=e=>"object"==typeof e&&null!==e&&"__NEXT_ERROR_CODE"in e&&"string"==typeof e.__NEXT_ERROR_CODE?e.__NEXT_ERROR_CODE:"object"==typeof e&&null!==e&&"digest"in e&&"string"==typeof e.digest?e.digest.split("@").find(e=>e.startsWith("E")):void 0},8253:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{Router:function(){return a.default},createRouter:function(){return _},default:function(){return p},makePublicRouterInstance:function(){return m},useRouter:function(){return h},withRouter:function(){return u.default}});let n=r(4252),o=n._(r(4232)),a=n._(r(4929)),i=r(8265),l=n._(r(6240)),u=n._(r(8538)),s={router:null,readyCallbacks:[],ready(e){if(this.router)return e();this.readyCallbacks.push(e)}},c=["pathname","route","query","asPath","components","isFallback","basePath","locale","locales","defaultLocale","isReady","isPreview","isLocaleDomain","domainLocales"],f=["push","replace","reload","back","prefetch","beforePopState"];function d(){if(!s.router)throw Object.defineProperty(Error('No router instance found.\nYou should only use "next/router" on the client side of your app.\n'),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return s.router}Object.defineProperty(s,"events",{get:()=>a.default.events}),c.forEach(e=>{Object.defineProperty(s,e,{get:()=>d()[e]})}),f.forEach(e=>{s[e]=function(){for(var t=arguments.length,r=Array(t),n=0;n{s.ready(()=>{a.default.events.on(e,function(){for(var t=arguments.length,r=Array(t),n=0;ne()),s.readyCallbacks=[],s.router}function m(e){let t={};for(let r of c){if("object"==typeof e[r]){t[r]=Object.assign(Array.isArray(e[r])?[]:{},e[r]);continue}t[r]=e[r]}return t.events=a.default.events,f.forEach(r=>{t[r]=function(){for(var t=arguments.length,n=Array(t),o=0;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return n}});let n=r(4252)._(r(4232)).default.createContext(null)},8316:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RedirectStatusCode",{enumerable:!0,get:function(){return r}});var r=function(e){return e[e.SeeOther=303]="SeeOther",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect",e}({});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8346:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return i}});let n=r(6443),o=/\/[^/]*\[[^/]+\][^/]*(?=\/|$)/,a=/\/\[[^/]+\](?=\/|$)/;function i(e,t){return(void 0===t&&(t=!0),(0,n.isInterceptionRouteAppPath)(e)&&(e=(0,n.extractInterceptionRouteInformation)(e).interceptedRoute),t)?a.test(e):o.test(e)}},8365:(e,t,r)=>{"use strict";function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}function o(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=a?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(o,i,l):o[i]=e[i]}return o.default=e,r&&r.set(e,o),o}r.r(t),r.d(t,{_:()=>o})},8400:(e,t)=>{"use strict";function r(e){return new URL(e,"http://n").searchParams}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"asPathToSearchParams",{enumerable:!0,get:function(){return r}})},8407:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DecodeError:function(){return h},MiddlewareNotFoundError:function(){return b},MissingStaticPage:function(){return g},NormalizeError:function(){return _},PageNotFoundError:function(){return m},SP:function(){return d},ST:function(){return p},WEB_VITALS:function(){return r},execOnce:function(){return n},getDisplayName:function(){return u},getLocationOrigin:function(){return i},getURL:function(){return l},isAbsoluteUrl:function(){return a},isResSent:function(){return s},loadGetInitialProps:function(){return f},normalizeRepeatedSlashes:function(){return c},stringifyError:function(){return E}});let r=["CLS","FCP","FID","INP","LCP","TTFB"];function n(e){let t,r=!1;return function(){for(var n=arguments.length,o=Array(n),a=0;ao.test(e);function i(){let{protocol:e,hostname:t,port:r}=window.location;return e+"//"+t+(r?":"+r:"")}function l(){let{href:e}=window.location,t=i();return e.substring(t.length)}function u(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function s(e){return e.finished||e.headersSent}function c(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function f(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await f(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&s(r))return n;if(!n)throw Object.defineProperty(Error('"'+u(e)+'.getInitialProps()" should resolve to an object. But found "'+n+'" instead.'),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return n}let d="undefined"!=typeof performance,p=d&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class h extends Error{}class _ extends Error{}class m extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class g extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class b extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function E(e){return JSON.stringify({message:e.message,stack:e.stack})}},8460:(e,t)=>{"use strict";function r(){let e=Object.create(null);return{on(t,r){(e[t]||(e[t]=[])).push(r)},off(t,r){e[t]&&e[t].splice(e[t].indexOf(r)>>>0,1)},emit(t){for(var r=arguments.length,n=Array(r>1?r-1:0),o=1;o{e(...n)})}}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}})},8538:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}}),r(4252);let n=r(7876);r(4232);let o=r(8253);function a(e){function t(t){return(0,n.jsx)(e,{router:(0,o.useRouter)(),...t})}return t.getInitialProps=e.getInitialProps,t.origGetInitialProps=e.origGetInitialProps,t}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8660:(e,t,r)=>{"use strict";let n;Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return i},isEqualNode:function(){return a}});let o=r(6886);function a(e,t){if(e instanceof HTMLElement&&t instanceof HTMLElement){let r=t.getAttribute("nonce");if(r&&!e.getAttribute("nonce")){let n=t.cloneNode(!0);return n.setAttribute("nonce",""),n.nonce=r,r===e.nonce&&e.isEqualNode(n)}}return e.isEqualNode(t)}function i(){return{mountedInstances:new Set,updateHead:e=>{let t={};e.forEach(e=>{if("link"===e.type&&e.props["data-optimized-fonts"])if(document.querySelector('style[data-href="'+e.props["data-href"]+'"]'))return;else e.props.href=e.props["data-href"],e.props["data-href"]=void 0;let r=t[e.type]||[];r.push(e),t[e.type]=r});let r=t.title?t.title[0]:null,o="";if(r){let{children:e}=r.props;o="string"==typeof e?e:Array.isArray(e)?e.join(""):""}o!==document.title&&(document.title=o),["meta","base","link","style","script"].forEach(e=>{n(e,t[e]||[])})}}}n=(e,t)=>{let r=document.querySelector("head");if(!r)return;let n=new Set(r.querySelectorAll(""+e+"[data-next-head]"));if("meta"===e){let e=r.querySelector("meta[charset]");null!==e&&n.add(e)}let i=[];for(let e=0;e{"use strict";function r(){return""}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDeploymentIdQueryOrEmptyString",{enumerable:!0,get:function(){return r}})},8804:(e,t)=>{"use strict";function r(e,t){return void 0===t&&(t=""),("/"===e?"/index":/^\/index(\/|$)/.test(e)?"/index"+e:e)+t}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}})},9308:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ACTION_SUFFIX:function(){return f},APP_DIR_ALIAS:function(){return I},CACHE_ONE_YEAR:function(){return R},DOT_NEXT_ALIAS:function(){return C},ESLINT_DEFAULT_DIRS:function(){return $},GSP_NO_RETURNED_VALUE:function(){return G},GSSP_COMPONENT_MEMBER_ERROR:function(){return z},GSSP_NO_RETURNED_VALUE:function(){return q},INFINITE_CACHE:function(){return O},INSTRUMENTATION_HOOK_FILENAME:function(){return T},MATCHED_PATH_HEADER:function(){return o},MIDDLEWARE_FILENAME:function(){return S},MIDDLEWARE_LOCATION_REGEXP:function(){return j},NEXT_BODY_SUFFIX:function(){return h},NEXT_CACHE_IMPLICIT_TAG_ID:function(){return v},NEXT_CACHE_REVALIDATED_TAGS_HEADER:function(){return m},NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER:function(){return g},NEXT_CACHE_SOFT_TAG_MAX_LENGTH:function(){return P},NEXT_CACHE_TAGS_HEADER:function(){return _},NEXT_CACHE_TAG_MAX_ITEMS:function(){return E},NEXT_CACHE_TAG_MAX_LENGTH:function(){return y},NEXT_DATA_SUFFIX:function(){return d},NEXT_INTERCEPTION_MARKER_PREFIX:function(){return n},NEXT_META_SUFFIX:function(){return p},NEXT_QUERY_PARAM_PREFIX:function(){return r},NEXT_RESUME_HEADER:function(){return b},NON_STANDARD_NODE_ENV:function(){return Y},PAGES_DIR_ALIAS:function(){return A},PRERENDER_REVALIDATE_HEADER:function(){return a},PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER:function(){return i},PUBLIC_DIR_MIDDLEWARE_CONFLICT:function(){return k},ROOT_DIR_ALIAS:function(){return w},RSC_ACTION_CLIENT_WRAPPER_ALIAS:function(){return U},RSC_ACTION_ENCRYPTION_ALIAS:function(){return D},RSC_ACTION_PROXY_ALIAS:function(){return M},RSC_ACTION_VALIDATE_ALIAS:function(){return x},RSC_CACHE_WRAPPER_ALIAS:function(){return L},RSC_MOD_REF_PROXY_ALIAS:function(){return N},RSC_PREFETCH_SUFFIX:function(){return l},RSC_SEGMENTS_DIR_SUFFIX:function(){return u},RSC_SEGMENT_SUFFIX:function(){return s},RSC_SUFFIX:function(){return c},SERVER_PROPS_EXPORT_ERROR:function(){return W},SERVER_PROPS_GET_INIT_PROPS_CONFLICT:function(){return B},SERVER_PROPS_SSG_CONFLICT:function(){return H},SERVER_RUNTIME:function(){return Q},SSG_FALLBACK_EXPORT_ERROR:function(){return K},SSG_GET_INITIAL_PROPS_CONFLICT:function(){return F},STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR:function(){return X},UNSTABLE_REVALIDATE_RENAME_ERROR:function(){return V},WEBPACK_LAYERS:function(){return Z},WEBPACK_RESOURCE_QUERIES:function(){return ee}});let r="nxtP",n="nxtI",o="x-matched-path",a="x-prerender-revalidate",i="x-prerender-revalidate-if-generated",l=".prefetch.rsc",u=".segments",s=".segment.rsc",c=".rsc",f=".action",d=".json",p=".meta",h=".body",_="x-next-cache-tags",m="x-next-revalidated-tags",g="x-next-revalidate-tag-token",b="next-resume",E=128,y=256,P=1024,v="_N_T_",R=31536e3,O=0xfffffffe,S="middleware",j=`(?:src/)?${S}`,T="instrumentation",A="private-next-pages",C="private-dot-next",w="private-next-root-dir",I="private-next-app-dir",N="private-next-rsc-mod-ref-proxy",x="private-next-rsc-action-validate",M="private-next-rsc-server-reference",L="private-next-rsc-cache-wrapper",D="private-next-rsc-action-encryption",U="private-next-rsc-action-client-wrapper",k="You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict",F="You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps",B="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",H="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",X="can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props",W="pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export",G="Your `getStaticProps` function did not return an object. Did you forget to add a `return`?",q="Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?",V="The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.",z="can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member",Y='You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env',K="Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export",$=["app","pages","components","lib","src"],Q={edge:"edge",experimentalEdge:"experimental-edge",nodejs:"nodejs"},J={shared:"shared",reactServerComponents:"rsc",serverSideRendering:"ssr",actionBrowser:"action-browser",apiNode:"api-node",apiEdge:"api-edge",middleware:"middleware",instrument:"instrument",edgeAsset:"edge-asset",appPagesBrowser:"app-pages-browser",pagesDirBrowser:"pages-dir-browser",pagesDirEdge:"pages-dir-edge",pagesDirNode:"pages-dir-node"},Z={...J,GROUP:{builtinReact:[J.reactServerComponents,J.actionBrowser],serverOnly:[J.reactServerComponents,J.actionBrowser,J.instrument,J.middleware],neutralTarget:[J.apiNode,J.apiEdge],clientOnly:[J.serverSideRendering,J.appPagesBrowser],bundled:[J.reactServerComponents,J.actionBrowser,J.serverSideRendering,J.appPagesBrowser,J.shared,J.instrument,J.middleware],appPages:[J.reactServerComponents,J.serverSideRendering,J.appPagesBrowser,J.actionBrowser]}},ee={edgeSSREntry:"__next_edge_ssr_entry__",metadata:"__next_metadata__",metadataRoute:"__next_metadata_route__",metadataImageMeta:"__next_metadata_image_meta__"}},9393:()=>{},9517:(e,t)=>{"use strict";function r(e){return e.replace(/\/$/,"")||"/"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeTrailingSlash",{enumerable:!0,get:function(){return r}})},9591:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{createRouteLoader:function(){return m},getClientBuildManifest:function(){return h},isAssetError:function(){return c},markAssetError:function(){return s}}),r(4252),r(8804);let n=r(5647),o=r(4754),a=r(8757),i=r(7137);function l(e,t,r){let n,o=t.get(e);if(o)return"future"in o?o.future:Promise.resolve(o);let a=new Promise(e=>{n=e});return t.set(e,{resolve:n,future:a}),r?r().then(e=>(n(e),e)).catch(r=>{throw t.delete(e),r}):a}let u=Symbol("ASSET_LOAD_ERROR");function s(e){return Object.defineProperty(e,u,{})}function c(e){return e&&u in e}let f=function(e){try{return e=document.createElement("link"),!!window.MSInputMethodContext&&!!document.documentMode||e.relList.supports("prefetch")}catch(e){return!1}}(),d=()=>(0,a.getDeploymentIdQueryOrEmptyString)();function p(e,t,r){return new Promise((n,a)=>{let i=!1;e.then(e=>{i=!0,n(e)}).catch(a),(0,o.requestIdleCallback)(()=>setTimeout(()=>{i||a(r)},t))})}function h(){return self.__BUILD_MANIFEST?Promise.resolve(self.__BUILD_MANIFEST):p(new Promise(e=>{let t=self.__BUILD_MANIFEST_CB;self.__BUILD_MANIFEST_CB=()=>{e(self.__BUILD_MANIFEST),t&&t()}}),3800,s(Object.defineProperty(Error("Failed to load client build manifest"),"__NEXT_ERROR_CODE",{value:"E273",enumerable:!1,configurable:!0})))}function _(e,t){return h().then(r=>{if(!(t in r))throw s(Object.defineProperty(Error("Failed to lookup route: "+t),"__NEXT_ERROR_CODE",{value:"E446",enumerable:!1,configurable:!0}));let o=r[t].map(t=>e+"/_next/"+(0,i.encodeURIPath)(t));return{scripts:o.filter(e=>e.endsWith(".js")).map(e=>(0,n.__unsafeCreateTrustedScriptURL)(e)+d()),css:o.filter(e=>e.endsWith(".css")).map(e=>e+d())}})}function m(e){let t=new Map,r=new Map,n=new Map,a=new Map;function i(e){{var t;let n=r.get(e.toString());return n?n:document.querySelector('script[src^="'+e+'"]')?Promise.resolve():(r.set(e.toString(),n=new Promise((r,n)=>{(t=document.createElement("script")).onload=r,t.onerror=()=>n(s(Object.defineProperty(Error("Failed to load script: "+e),"__NEXT_ERROR_CODE",{value:"E74",enumerable:!1,configurable:!0}))),t.crossOrigin=void 0,t.src=e,document.body.appendChild(t)})),n)}}function u(e){let t=n.get(e);return t||n.set(e,t=fetch(e,{credentials:"same-origin"}).then(t=>{if(!t.ok)throw Object.defineProperty(Error("Failed to load stylesheet: "+e),"__NEXT_ERROR_CODE",{value:"E189",enumerable:!1,configurable:!0});return t.text().then(t=>({href:e,content:t}))}).catch(e=>{throw s(e)})),t}return{whenEntrypoint:e=>l(e,t),onEntrypoint(e,r){(r?Promise.resolve().then(()=>r()).then(e=>({component:e&&e.default||e,exports:e}),e=>({error:e})):Promise.resolve(void 0)).then(r=>{let n=t.get(e);n&&"resolve"in n?r&&(t.set(e,r),n.resolve(r)):(r?t.set(e,r):t.delete(e),a.delete(e))})},loadRoute(r,n){return l(r,a,()=>{let o;return p(_(e,r).then(e=>{let{scripts:n,css:o}=e;return Promise.all([t.has(r)?[]:Promise.all(n.map(i)),Promise.all(o.map(u))])}).then(e=>this.whenEntrypoint(r).then(t=>({entrypoint:t,styles:e[1]}))),3800,s(Object.defineProperty(Error("Route did not complete loading: "+r),"__NEXT_ERROR_CODE",{value:"E12",enumerable:!1,configurable:!0}))).then(e=>{let{entrypoint:t,styles:r}=e,n=Object.assign({styles:r},t);return"error"in t?t:n}).catch(e=>{if(n)throw e;return{error:e}}).finally(()=>null==o?void 0:o())})},prefetch(t){let r;return(r=navigator.connection)&&(r.saveData||/2g/.test(r.effectiveType))?Promise.resolve():_(e,t).then(e=>Promise.all(f?e.scripts.map(e=>{var t,r,n;return t=e.toString(),r="script",new Promise((e,o)=>{let a='\n link[rel="prefetch"][href^="'+t+'"],\n link[rel="preload"][href^="'+t+'"],\n script[src^="'+t+'"]';if(document.querySelector(a))return e();n=document.createElement("link"),r&&(n.as=r),n.rel="prefetch",n.crossOrigin=void 0,n.onload=e,n.onerror=()=>o(s(Object.defineProperty(Error("Failed to prefetch: "+t),"__NEXT_ERROR_CODE",{value:"E268",enumerable:!1,configurable:!0}))),n.href=t,document.head.appendChild(n)})}):[])).then(()=>{(0,o.requestIdleCallback)(()=>this.loadRoute(t,!0).catch(()=>{}))}).catch(()=>{})}}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9645:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getNamedMiddlewareRegex:function(){return _},getNamedRouteRegex:function(){return h},getRouteRegex:function(){return f},parseParameter:function(){return u}});let n=r(9308),o=r(6443),a=r(3137),i=r(9517),l=/^([^[]*)\[((?:\[[^\]]*\])|[^\]]+)\](.*)$/;function u(e){let t=e.match(l);return t?s(t[2]):s(e)}function s(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let r=e.startsWith("...");return r&&(e=e.slice(3)),{key:e,repeat:r,optional:t}}function c(e,t,r){let n={},u=1,c=[];for(let f of(0,i.removeTrailingSlash)(e).slice(1).split("/")){let e=o.INTERCEPTION_ROUTE_MARKERS.find(e=>f.startsWith(e)),i=f.match(l);if(e&&i&&i[2]){let{key:t,optional:r,repeat:o}=s(i[2]);n[t]={pos:u++,repeat:o,optional:r},c.push("/"+(0,a.escapeStringRegexp)(e)+"([^/]+?)")}else if(i&&i[2]){let{key:e,repeat:t,optional:o}=s(i[2]);n[e]={pos:u++,repeat:t,optional:o},r&&i[1]&&c.push("/"+(0,a.escapeStringRegexp)(i[1]));let l=t?o?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)";r&&i[1]&&(l=l.substring(1)),c.push(l)}else c.push("/"+(0,a.escapeStringRegexp)(f));t&&i&&i[3]&&c.push((0,a.escapeStringRegexp)(i[3]))}return{parameterizedRoute:c.join(""),groups:n}}function f(e,t){let{includeSuffix:r=!1,includePrefix:n=!1,excludeOptionalTrailingSlash:o=!1}=void 0===t?{}:t,{parameterizedRoute:a,groups:i}=c(e,r,n),l=a;return o||(l+="(?:/)?"),{re:RegExp("^"+l+"$"),groups:i}}function d(e){let t,{interceptionMarker:r,getSafeRouteKey:n,segment:o,routeKeys:i,keyPrefix:l,backreferenceDuplicateKeys:u}=e,{key:c,optional:f,repeat:d}=s(o),p=c.replace(/\W/g,"");l&&(p=""+l+p);let h=!1;(0===p.length||p.length>30)&&(h=!0),isNaN(parseInt(p.slice(0,1)))||(h=!0),h&&(p=n());let _=p in i;l?i[p]=""+l+c:i[p]=c;let m=r?(0,a.escapeStringRegexp)(r):"";return t=_&&u?"\\k<"+p+">":d?"(?<"+p+">.+?)":"(?<"+p+">[^/]+?)",f?"(?:/"+m+t+")?":"/"+m+t}function p(e,t,r,u,s){let c,f=(c=0,()=>{let e="",t=++c;for(;t>0;)e+=String.fromCharCode(97+(t-1)%26),t=Math.floor((t-1)/26);return e}),p={},h=[];for(let c of(0,i.removeTrailingSlash)(e).slice(1).split("/")){let e=o.INTERCEPTION_ROUTE_MARKERS.some(e=>c.startsWith(e)),i=c.match(l);if(e&&i&&i[2])h.push(d({getSafeRouteKey:f,interceptionMarker:i[1],segment:i[2],routeKeys:p,keyPrefix:t?n.NEXT_INTERCEPTION_MARKER_PREFIX:void 0,backreferenceDuplicateKeys:s}));else if(i&&i[2]){u&&i[1]&&h.push("/"+(0,a.escapeStringRegexp)(i[1]));let e=d({getSafeRouteKey:f,segment:i[2],routeKeys:p,keyPrefix:t?n.NEXT_QUERY_PARAM_PREFIX:void 0,backreferenceDuplicateKeys:s});u&&i[1]&&(e=e.substring(1)),h.push(e)}else h.push("/"+(0,a.escapeStringRegexp)(c));r&&i&&i[3]&&h.push((0,a.escapeStringRegexp)(i[3]))}return{namedParameterizedRoute:h.join(""),routeKeys:p}}function h(e,t){var r,n,o;let a=p(e,t.prefixRouteKeys,null!=(r=t.includeSuffix)&&r,null!=(n=t.includePrefix)&&n,null!=(o=t.backreferenceDuplicateKeys)&&o),i=a.namedParameterizedRoute;return t.excludeOptionalTrailingSlash||(i+="(?:/)?"),{...f(e,t),namedRegex:"^"+i+"$",routeKeys:a.routeKeys}}function _(e,t){let{parameterizedRoute:r}=c(e,!1,!1),{catchAll:n=!0}=t;if("/"===r)return{namedRegex:"^/"+(n?".*":"")+"$"};let{namedParameterizedRoute:o}=p(e,!1,!1,!1,!1);return{namedRegex:"^"+o+(n?"(?:(/.*)?)":"")+"$"}}},9836:(e,t,r)=>{"use strict";var n=r(5364);Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return m},defaultHead:function(){return d}});let o=r(4252),a=r(8365),i=r(7876),l=a._(r(4232)),u=o._(r(1393)),s=r(9896),c=r(6834),f=r(5648);function d(e){void 0===e&&(e=!1);let t=[(0,i.jsx)("meta",{charSet:"utf-8"},"charset")];return e||t.push((0,i.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")),t}function p(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===l.default.Fragment?e.concat(l.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}r(546);let h=["name","httpEquiv","charSet","itemProp"];function _(e,t){let{inAmpMode:r}=t;return e.reduce(p,[]).reverse().concat(d(r).reverse()).filter(function(){let e=new Set,t=new Set,r=new Set,n={};return o=>{let a=!0,i=!1;if(o.key&&"number"!=typeof o.key&&o.key.indexOf("$")>0){i=!0;let t=o.key.slice(o.key.indexOf("$")+1);e.has(t)?a=!1:e.add(t)}switch(o.type){case"title":case"base":t.has(o.type)?a=!1:t.add(o.type);break;case"meta":for(let e=0,t=h.length;e{let o=e.key||t;if(n.env.__NEXT_OPTIMIZE_FONTS&&!r&&"link"===e.type&&e.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(t=>e.props.href.startsWith(t))){let t={...e.props||{}};return t["data-href"]=t.href,t.href=void 0,t["data-optimized-fonts"]=!0,l.default.cloneElement(e,t)}return l.default.cloneElement(e,{key:o})})}let m=function(e){let{children:t}=e,r=(0,l.useContext)(s.AmpStateContext),n=(0,l.useContext)(c.HeadManagerContext);return(0,i.jsx)(u.default,{reduceComponentsToState:_,headManager:n,inAmpMode:(0,f.isInAmpMode)(r),children:t})};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9896:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AmpStateContext",{enumerable:!0,get:function(){return n}});let n=r(4252)._(r(4232)).default.createContext({})},9898:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"reportGlobalError",{enumerable:!0,get:function(){return r}});let r="function"==typeof reportError?reportError:e=>{globalThis.console.error(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9960:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parseRelativeUrl",{enumerable:!0,get:function(){return a}});let n=r(8407),o=r(7139);function a(e,t,r){void 0===r&&(r=!0);let a=new URL((0,n.getLocationOrigin)()),i=t?new URL(t,a):e.startsWith(".")?new URL(window.location.href):a,{pathname:l,searchParams:u,search:s,hash:c,href:f,origin:d}=new URL(e,i);if(d!==a.origin)throw Object.defineProperty(Error("invariant: invalid relative URL, router received "+e),"__NEXT_ERROR_CODE",{value:"E159",enumerable:!1,configurable:!0});return{pathname:l,query:r?(0,o.searchParamsToUrlQuery)(u):void 0,search:s,hash:c,href:f.slice(d.length)}}}},e=>{var t=t=>e(e.s=t);e.O(0,[593],()=>t(2193)),_N_E=e.O()}]); \ No newline at end of file diff --git a/net-guardia/static/web/_next/static/chunks/pages/404-88ca1a114c255c82.js b/net-guardia/static/web/_next/static/chunks/pages/404-88ca1a114c255c82.js new file mode 100644 index 0000000..3774299 --- /dev/null +++ b/net-guardia/static/web/_next/static/chunks/pages/404-88ca1a114c255c82.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[336],{7396:(e,r,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/404",function(){return t(7438)}])},7438:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>h});var o=t(7876);t(4232);var i=t(8230),a=t.n(i),s=t(7328),l=t.n(s),n=t(6848),d=t(1772),c=t(1041);let h=()=>{let e=[{href:"/dashboard",icon:c.xiI,title:"Dashboard",description:"系統儀表板總覽",color:"blue"},{href:"/statistics",icon:c.$Fj,title:"Statistics",description:"數據統計與分析",color:"green"},{href:"/access_control",icon:c.imB,title:"Access Control",description:"存取控制管理",color:"red"},{href:"/detection",icon:c.UBk,title:"Detection",description:"威脅檢測系統",color:"purple"}],r=e=>({blue:{bg:"bg-blue-500",hover:"hover:bg-blue-600",border:"border-blue-200",hoverBorder:"hover:border-blue-300",hoverBg:"hover:bg-blue-50",text:"text-blue-600"},purple:{bg:"bg-purple-500",hover:"hover:bg-purple-600",border:"border-purple-200",hoverBorder:"hover:border-purple-300",hoverBg:"hover:bg-purple-50",text:"text-purple-600"},green:{bg:"bg-green-500",hover:"hover:bg-green-600",border:"border-green-200",hoverBorder:"hover:border-green-300",hoverBg:"hover:bg-green-50",text:"text-green-600"},red:{bg:"bg-red-500",hover:"hover:bg-red-600",border:"border-red-200",hoverBorder:"hover:border-red-300",hoverBg:"hover:bg-red-50",text:"text-red-600"}})[e];return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(l(),{children:[(0,o.jsx)("title",{children:"404 - 頁面未找到 | NetGuardia"}),(0,o.jsx)("meta",{name:"description",content:"您要找的頁面不存在。"})]}),(0,o.jsx)("div",{className:"min-h-screen bg-gradient-to-b from-gray-50 to-gray-100",children:(0,o.jsx)("div",{className:"container mx-auto px-4 py-16",children:(0,o.jsxs)("div",{className:"max-w-4xl mx-auto",children:[(0,o.jsxs)(n.P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},className:"text-center mb-12",children:[(0,o.jsx)("h1",{className:"text-7xl font-bold bg-gradient-to-r from-gray-700 to-gray-900 bg-clip-text text-transparent mb-4",children:"404"}),(0,o.jsx)("h2",{className:"text-3xl font-semibold text-gray-800 mb-4",children:"頁面未找到"}),(0,o.jsxs)("p",{className:"text-lg text-gray-600 max-w-lg mx-auto leading-relaxed",children:["抱歉,您要訪問的頁面不存在或已被移動。",(0,o.jsx)("br",{}),"請選擇以下選項繼續使用 NetGuardia 系統。"]})]}),(0,o.jsxs)(n.P.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.6,delay:.2},className:"mb-12",children:[(0,o.jsx)("h3",{className:"text-xl font-semibold text-gray-800 mb-6 text-center",children:"快速導航到主要功能"}),(0,o.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:e.map((e,t)=>{let i=r(e.color);return(0,o.jsx)(n.P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.3+.1*t},whileHover:{y:-4},children:(0,o.jsx)(a(),{href:e.href,className:"block",children:(0,o.jsx)("div",{className:"bg-white rounded-xl p-6 shadow-md border-2 ".concat(i.border," ").concat(i.hoverBorder," ").concat(i.hoverBg," transition-all duration-300 hover:shadow-lg group h-full"),children:(0,o.jsxs)("div",{className:"flex items-start space-x-4",children:[(0,o.jsx)("div",{className:"w-14 h-14 ".concat(i.bg," ").concat(i.hover," rounded-xl flex items-center justify-center transition-colors shadow-sm"),children:(0,o.jsx)(d.g,{icon:e.icon,className:"text-white text-xl"})}),(0,o.jsxs)("div",{className:"flex-1",children:[(0,o.jsx)("h4",{className:"text-lg font-semibold text-gray-900 mb-2 group-hover:text-gray-700 transition-colors",children:e.title}),(0,o.jsx)("p",{className:"text-gray-600 leading-relaxed",children:e.description})]})]})})})},e.href)})})]}),(0,o.jsxs)(n.P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.7},className:"flex flex-col sm:flex-row gap-4 justify-center mb-12",children:[(0,o.jsx)(a(),{href:"/",children:(0,o.jsxs)(n.P.button,{whileHover:{scale:1.02},whileTap:{scale:.98},className:"w-full sm:w-auto bg-gradient-to-r from-blue-600 to-blue-700 text-white px-8 py-4 rounded-lg font-semibold hover:from-blue-700 hover:to-blue-800 transition-all duration-300 flex items-center justify-center gap-3 shadow-lg",children:[(0,o.jsx)(d.g,{icon:c.v02}),"返回首頁"]})}),(0,o.jsxs)(n.P.button,{whileHover:{scale:1.02},whileTap:{scale:.98},onClick:()=>window.history.back(),className:"w-full sm:w-auto bg-gray-600 text-white px-8 py-4 rounded-lg font-semibold hover:bg-gray-700 transition-all duration-300 flex items-center justify-center gap-3 shadow-lg",children:[(0,o.jsx)(d.g,{icon:c.CeG}),"返回上一頁"]})]}),(0,o.jsx)(n.P.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.6,delay:.9},className:"text-center",children:(0,o.jsxs)("div",{className:"bg-white rounded-lg p-6 shadow-sm border border-gray-200",children:[(0,o.jsx)("p",{className:"text-gray-600 mb-2",children:(0,o.jsx)("strong",{children:"需要幫助?"})}),(0,o.jsx)("p",{className:"text-sm text-gray-500",children:"如果您認為這是一個系統錯誤,請聯繫技術支援團隊或系統管理員。"})]})})]})})})]})}}},e=>{var r=r=>e(e.s=r);e.O(0,[182,636,593,792],()=>r(7396)),_N_E=e.O()}]); \ No newline at end of file diff --git a/net-guardia/static/web/_next/static/chunks/pages/_app-3847060648a79052.js b/net-guardia/static/web/_next/static/chunks/pages/_app-3847060648a79052.js new file mode 100644 index 0000000..c987239 --- /dev/null +++ b/net-guardia/static/web/_next/static/chunks/pages/_app-3847060648a79052.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[636],{92:(t,e,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(4492)}])},1002:(t,e,n)=>{"use strict";n.d(e,{R:()=>f,x:()=>s});var r=n(7876),a=n(4232),o=n(2268),i=n(6463);let s=(0,a.createContext)({currentData:[],filteredData:[],isLoading:!1,setFilteredData:()=>{},switchTo:()=>{},refreshData:async()=>{},getCacheStatus:()=>({})}),c=(t,e)=>"".concat(t?"ipv6":"ipv4","_").concat(e),l=t=>Date.now()-t>6e5,f=t=>{let{children:e}=t,[n,f]=(0,a.useState)({}),[u,d]=(0,a.useState)([]),[p,m]=(0,a.useState)(""),h=(0,a.useRef)(new Set),b=(0,a.useCallback)(async function(t,e){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=c(t,e),s=n[a];if(!r&&s&&!l(s.timestamp)&&!s.isLoading)return s.data;if(h.current.has(a))return new Promise(t=>{let e=setInterval(()=>{if(!h.current.has(a)){clearInterval(e);let r=n[a];t(r?r.data:[])}},100)});h.current.add(a),f(t=>({...t,[a]:{data:(null==s?void 0:s.data)||[],timestamp:(null==s?void 0:s.timestamp)||0,isLoading:!0}}));try{let n=t?i.DS.access_control.ipv6[e]:i.DS.access_control.ipv4[e],r=await new Promise((t,e)=>{(0,o.Fd)(n,n=>{try{let e=JSON.parse(n),r=Object.entries(e).map(t=>{let[e,n]=t;return{ip:e,ports:n}});t(r)}catch(t){console.error("Error parsing data:",t),e(Error("Invalid data format"))}},t=>{console.error("Error fetching from ".concat(n,":"),t),e(Error("Network error: Please check your connection"))})});return f(t=>({...t,[a]:{data:r,timestamp:Date.now(),isLoading:!1}})),r}catch(t){throw f(t=>({...t,[a]:{data:(null==s?void 0:s.data)||[],timestamp:(null==s?void 0:s.timestamp)||0,isLoading:!1}})),t}finally{h.current.delete(a)}},[n]),g=(0,a.useCallback)(async(t,e)=>{let n=c(t,e);m(n);try{let n=await b(t,e);d(n)}catch(t){console.error("Failed to switch to ".concat(n,":"),t),d([])}},[b]),y=(0,a.useCallback)(async(t,e)=>{if(void 0===t||void 0===e){if(!p)return;let[t,e]=p.split("_");await g("ipv6"===t,e);return}try{let n=await b(t,e,!0);c(t,e)===p&&d(n)}catch(n){throw console.error("Failed to refresh data for ".concat(c(t,e),":"),n),n}},[p,b,g]),v=(0,a.useCallback)(()=>{let t={};return Object.entries(n).forEach(e=>{let[n,r]=e;t[n]={lastUpdate:new Date(r.timestamp),isStale:l(r.timestamp)}}),t},[n]),x=(0,a.useMemo)(()=>{var t;return p&&(null==(t=n[p])?void 0:t.data)||[]},[n,p]),w=(0,a.useMemo)(()=>{var t;return!!p&&((null==(t=n[p])?void 0:t.isLoading)||!1)},[n,p]);a.useEffect(()=>{n[c(!1,"black_list")]||b(!1,"black_list").catch(t=>{console.warn("Failed to preload IPv4 blacklist:",t)})},[]),a.useEffect(()=>{let t=setInterval(()=>{f(t=>{let e=Date.now(),n={};return Object.entries(t).forEach(t=>{let[r,a]=t;e-a.timestamp<18e5&&(n[r]=a)}),n})},3e5);return()=>clearInterval(t)},[]);let k=(0,a.useMemo)(()=>({currentData:x,filteredData:u,isLoading:w,setFilteredData:d,switchTo:g,refreshData:y,getCacheStatus:v}),[x,u,w,g,y,v]);return(0,r.jsx)(s.Provider,{value:k,children:e})}},1041:(t,e,n)=>{"use strict";n.d(e,{$Fj:()=>p,ArK:()=>R,B0C:()=>M,BwJ:()=>d,Bwz:()=>f,CeG:()=>z,D6w:()=>u,DW4:()=>c,Dvs:()=>S,G1Y:()=>h,GRI:()=>F,HqV:()=>i,INu:()=>T,ITF:()=>s,MjD:()=>_,OM7:()=>y,QLR:()=>I,Rog:()=>l,SGM:()=>m,UBk:()=>D,Vpu:()=>b,Ync:()=>r,a$:()=>C,ckx:()=>a,dmS:()=>w,e68:()=>U,eGi:()=>E,gK3:()=>x,hem:()=>H,iW_:()=>A,ijD:()=>j,imB:()=>g,mRM:()=>v,pS3:()=>k,tUE:()=>o,v02:()=>N,xiI:()=>L,yLS:()=>O,zm_:()=>P,zpE:()=>Y});let r={prefix:"fas",iconName:"sort-down",icon:[320,512,["sort-desc"],"f0dd","M182.6 470.6c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-9.2-9.2-11.9-22.9-6.9-34.9s16.6-19.8 29.6-19.8l256 0c12.9 0 24.6 7.8 29.6 19.8s2.2 25.7-6.9 34.9l-128 128z"]},a={prefix:"fas",iconName:"bars",icon:[448,512,["navicon"],"f0c9","M0 96C0 78.3 14.3 64 32 64l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32L32 448c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"]},o={prefix:"fas",iconName:"circle-exclamation",icon:[512,512,["exclamation-circle"],"f06a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]},i={prefix:"fas",iconName:"memory",icon:[576,512,[],"f538","M64 64C28.7 64 0 92.7 0 128l0 7.4c0 6.8 4.4 12.6 10.1 16.3C23.3 160.3 32 175.1 32 192s-8.7 31.7-21.9 40.3C4.4 236 0 241.8 0 248.6L0 320l576 0 0-71.4c0-6.8-4.4-12.6-10.1-16.3C552.7 223.7 544 208.9 544 192s8.7-31.7 21.9-40.3c5.7-3.7 10.1-9.5 10.1-16.3l0-7.4c0-35.3-28.7-64-64-64L64 64zM576 352L0 352l0 64c0 17.7 14.3 32 32 32l48 0 0-32c0-8.8 7.2-16 16-16s16 7.2 16 16l0 32 96 0 0-32c0-8.8 7.2-16 16-16s16 7.2 16 16l0 32 96 0 0-32c0-8.8 7.2-16 16-16s16 7.2 16 16l0 32 96 0 0-32c0-8.8 7.2-16 16-16s16 7.2 16 16l0 32 48 0c17.7 0 32-14.3 32-32l0-64zM192 160l0 64c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-64c0-17.7 14.3-32 32-32s32 14.3 32 32zm128 0l0 64c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-64c0-17.7 14.3-32 32-32s32 14.3 32 32zm128 0l0 64c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-64c0-17.7 14.3-32 32-32s32 14.3 32 32z"]},s={prefix:"fas",iconName:"list",icon:[512,512,["list-squares"],"f03a","M40 48C26.7 48 16 58.7 16 72l0 48c0 13.3 10.7 24 24 24l48 0c13.3 0 24-10.7 24-24l0-48c0-13.3-10.7-24-24-24L40 48zM192 64c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L192 64zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-288 0zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-288 0zM16 232l0 48c0 13.3 10.7 24 24 24l48 0c13.3 0 24-10.7 24-24l0-48c0-13.3-10.7-24-24-24l-48 0c-13.3 0-24 10.7-24 24zM40 368c-13.3 0-24 10.7-24 24l0 48c0 13.3 10.7 24 24 24l48 0c13.3 0 24-10.7 24-24l0-48c0-13.3-10.7-24-24-24l-48 0z"]},c={prefix:"fas",iconName:"lock",icon:[448,512,[128274],"f023","M144 144l0 48 160 0 0-48c0-44.2-35.8-80-80-80s-80 35.8-80 80zM80 192l0-48C80 64.5 144.5 0 224 0s144 64.5 144 144l0 48 16 0c35.3 0 64 28.7 64 64l0 192c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 256c0-35.3 28.7-64 64-64l16 0z"]},l={prefix:"fas",iconName:"temperature-half",icon:[320,512,[127777,"temperature-2","thermometer-2","thermometer-half"],"f2c9","M160 64c-26.5 0-48 21.5-48 48l0 164.5c0 17.3-7.1 31.9-15.3 42.5C86.2 332.6 80 349.5 80 368c0 44.2 35.8 80 80 80s80-35.8 80-80c0-18.5-6.2-35.4-16.7-48.9c-8.2-10.6-15.3-25.2-15.3-42.5L208 112c0-26.5-21.5-48-48-48zM48 112C48 50.2 98.1 0 160 0s112 50.1 112 112l0 164.4c0 .1 .1 .3 .2 .6c.2 .6 .8 1.6 1.7 2.8c18.9 24.4 30.1 55 30.1 88.1c0 79.5-64.5 144-144 144S16 447.5 16 368c0-33.2 11.2-63.8 30.1-88.1c.9-1.2 1.5-2.2 1.7-2.8c.1-.3 .2-.5 .2-.6L48 112zM208 368c0 26.5-21.5 48-48 48s-48-21.5-48-48c0-20.9 13.4-38.7 32-45.3L144 208c0-8.8 7.2-16 16-16s16 7.2 16 16l0 114.7c18.6 6.6 32 24.4 32 45.3z"]},f={prefix:"fas",iconName:"globe",icon:[512,512,[127760],"f0ac","M352 256c0 22.2-1.2 43.6-3.3 64l-185.3 0c-2.2-20.4-3.3-41.8-3.3-64s1.2-43.6 3.3-64l185.3 0c2.2 20.4 3.3 41.8 3.3 64zm28.8-64l123.1 0c5.3 20.5 8.1 41.9 8.1 64s-2.8 43.5-8.1 64l-123.1 0c2.1-20.6 3.2-42 3.2-64s-1.1-43.4-3.2-64zm112.6-32l-116.7 0c-10-63.9-29.8-117.4-55.3-151.6c78.3 20.7 142 77.5 171.9 151.6zm-149.1 0l-176.6 0c6.1-36.4 15.5-68.6 27-94.7c10.5-23.6 22.2-40.7 33.5-51.5C239.4 3.2 248.7 0 256 0s16.6 3.2 27.8 13.8c11.3 10.8 23 27.9 33.5 51.5c11.6 26 20.9 58.2 27 94.7zm-209 0L18.6 160C48.6 85.9 112.2 29.1 190.6 8.4C165.1 42.6 145.3 96.1 135.3 160zM8.1 192l123.1 0c-2.1 20.6-3.2 42-3.2 64s1.1 43.4 3.2 64L8.1 320C2.8 299.5 0 278.1 0 256s2.8-43.5 8.1-64zM194.7 446.6c-11.6-26-20.9-58.2-27-94.6l176.6 0c-6.1 36.4-15.5 68.6-27 94.6c-10.5 23.6-22.2 40.7-33.5 51.5C272.6 508.8 263.3 512 256 512s-16.6-3.2-27.8-13.8c-11.3-10.8-23-27.9-33.5-51.5zM135.3 352c10 63.9 29.8 117.4 55.3 151.6C112.2 482.9 48.6 426.1 18.6 352l116.7 0zm358.1 0c-30 74.1-93.6 130.9-171.9 151.6c25.5-34.2 45.2-87.7 55.3-151.6l116.7 0z"]},u={prefix:"fas",iconName:"server",icon:[512,512,[],"f233","M64 32C28.7 32 0 60.7 0 96l0 64c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-64c0-35.3-28.7-64-64-64L64 32zm280 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm48 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0zM64 288c-35.3 0-64 28.7-64 64l0 64c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-64c0-35.3-28.7-64-64-64L64 288zm280 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm56 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0z"]},d={prefix:"fas",iconName:"wifi",icon:[640,512,["wifi-3","wifi-strong"],"f1eb","M54.2 202.9C123.2 136.7 216.8 96 320 96s196.8 40.7 265.8 106.9c12.8 12.2 33 11.8 45.2-.9s11.8-33-.9-45.2C549.7 79.5 440.4 32 320 32S90.3 79.5 9.8 156.7C-2.9 169-3.3 189.2 8.9 202s32.5 13.2 45.2 .9zM320 256c56.8 0 108.6 21.1 148.2 56c13.3 11.7 33.5 10.4 45.2-2.8s10.4-33.5-2.8-45.2C459.8 219.2 393 192 320 192s-139.8 27.2-190.5 72c-13.3 11.7-14.5 31.9-2.8 45.2s31.9 14.5 45.2 2.8c39.5-34.9 91.3-56 148.2-56zm64 160a64 64 0 1 0 -128 0 64 64 0 1 0 128 0z"]},p={prefix:"fas",iconName:"chart-bar",icon:[512,512,["bar-chart"],"f080","M32 32c17.7 0 32 14.3 32 32l0 336c0 8.8 7.2 16 16 16l400 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L80 480c-44.2 0-80-35.8-80-80L0 64C0 46.3 14.3 32 32 32zm96 96c0-17.7 14.3-32 32-32l192 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-192 0c-17.7 0-32-14.3-32-32zm32 64l128 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-128 0c-17.7 0-32-14.3-32-32s14.3-32 32-32zm0 96l256 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-256 0c-17.7 0-32-14.3-32-32s14.3-32 32-32z"]},m={prefix:"fas",iconName:"circle-check",icon:[512,512,[61533,"check-circle"],"f058","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"]},h={prefix:"fas",iconName:"pause",icon:[320,512,[9208],"f04c","M48 64C21.5 64 0 85.5 0 112L0 400c0 26.5 21.5 48 48 48l32 0c26.5 0 48-21.5 48-48l0-288c0-26.5-21.5-48-48-48L48 64zm192 0c-26.5 0-48 21.5-48 48l0 288c0 26.5 21.5 48 48 48l32 0c26.5 0 48-21.5 48-48l0-288c0-26.5-21.5-48-48-48l-32 0z"]},b={prefix:"fas",iconName:"arrows-rotate",icon:[512,512,[128472,"refresh","sync"],"f021","M105.1 202.6c7.7-21.8 20.2-42.3 37.8-59.8c62.5-62.5 163.8-62.5 226.3 0L386.3 160 352 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l111.5 0c0 0 0 0 0 0l.4 0c17.7 0 32-14.3 32-32l0-112c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 35.2L414.4 97.6c-87.5-87.5-229.3-87.5-316.8 0C73.2 122 55.6 150.7 44.8 181.4c-5.9 16.7 2.9 34.9 19.5 40.8s34.9-2.9 40.8-19.5zM39 289.3c-5 1.5-9.8 4.2-13.7 8.2c-4 4-6.7 8.8-8.1 14c-.3 1.2-.6 2.5-.8 3.8c-.3 1.7-.4 3.4-.4 5.1L16 432c0 17.7 14.3 32 32 32s32-14.3 32-32l0-35.1 17.6 17.5c0 0 0 0 0 0c87.5 87.4 229.3 87.4 316.7 0c24.4-24.4 42.1-53.1 52.9-83.8c5.9-16.7-2.9-34.9-19.5-40.8s-34.9 2.9-40.8 19.5c-7.7 21.8-20.2 42.3-37.8 59.8c-62.5 62.5-163.8 62.5-226.3 0l-.1-.1L125.6 352l34.4 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L48.4 288c-1.6 0-3.2 .1-4.8 .3s-3.1 .5-4.6 1z"]},g={prefix:"fas",iconName:"shield-halved",icon:[512,512,["shield-alt"],"f3ed","M256 0c4.6 0 9.2 1 13.4 2.9L457.7 82.8c22 9.3 38.4 31 38.3 57.2c-.5 99.2-41.3 280.7-213.6 363.2c-16.7 8-36.1 8-52.8 0C57.3 420.7 16.5 239.2 16 140c-.1-26.2 16.3-47.9 38.3-57.2L242.7 2.9C246.8 1 251.4 0 256 0zm0 66.8l0 378.1C394 378 431.1 230.1 432 141.4L256 66.8s0 0 0 0z"]},y={prefix:"fas",iconName:"sort",icon:[320,512,["unsorted"],"f0dc","M137.4 41.4c12.5-12.5 32.8-12.5 45.3 0l128 128c9.2 9.2 11.9 22.9 6.9 34.9s-16.6 19.8-29.6 19.8L32 224c-12.9 0-24.6-7.8-29.6-19.8s-2.2-25.7 6.9-34.9l128-128zm0 429.3l-128-128c-9.2-9.2-11.9-22.9-6.9-34.9s16.6-19.8 29.6-19.8l256 0c12.9 0 24.6 7.8 29.6 19.8s2.2 25.7-6.9 34.9l-128 128c-12.5 12.5-32.8 12.5-45.3 0z"]},v={prefix:"fas",iconName:"filter",icon:[512,512,[],"f0b0","M3.9 54.9C10.5 40.9 24.5 32 40 32l432 0c15.5 0 29.5 8.9 36.1 22.9s4.6 30.5-5.2 42.5L320 320.9 320 448c0 12.1-6.8 23.2-17.7 28.6s-23.8 4.3-33.5-3l-64-48c-8.1-6-12.8-15.5-12.8-25.6l0-79.1L9 97.3C-.7 85.4-2.8 68.8 3.9 54.9z"]},x={prefix:"fas",iconName:"chart-line",icon:[512,512,["line-chart"],"f201","M64 64c0-17.7-14.3-32-32-32S0 46.3 0 64L0 400c0 44.2 35.8 80 80 80l400 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L80 416c-8.8 0-16-7.2-16-16L64 64zm406.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L320 210.7l-57.4-57.4c-12.5-12.5-32.8-12.5-45.3 0l-112 112c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L240 221.3l57.4 57.4c12.5 12.5 32.8 12.5 45.3 0l128-128z"]},w={prefix:"fas",iconName:"arrow-right",icon:[448,512,[8594],"f061","M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z"]},k={prefix:"fas",iconName:"eye",icon:[576,512,[128065],"f06e","M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64c-7.1 0-13.9-1.2-20.3-3.3c-5.5-1.8-11.9 1.6-11.7 7.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3z"]},S={prefix:"fas",iconName:"sort-up",icon:[320,512,["sort-asc"],"f0de","M182.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-128 128c-9.2 9.2-11.9 22.9-6.9 34.9s16.6 19.8 29.6 19.8l256 0c12.9 0 24.6-7.8 29.6-19.8s2.2-25.7-6.9-34.9l-128-128z"]},O={prefix:"fas",iconName:"trash",icon:[448,512,[],"f1f8","M135.2 17.7L128 32 32 32C14.3 32 0 46.3 0 64S14.3 96 32 96l384 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0-7.2-14.3C307.4 6.8 296.3 0 284.2 0L163.8 0c-12.1 0-23.2 6.8-28.6 17.7zM416 128L32 128 53.2 467c1.6 25.3 22.6 45 47.9 45l245.8 0c25.3 0 46.3-19.7 47.9-45L416 128z"]},z={prefix:"fas",iconName:"arrow-left",icon:[448,512,[8592],"f060","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.2 288 416 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0L214.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"]},A={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},C={prefix:"fas",iconName:"clock",icon:[512,512,[128339,"clock-four"],"f017","M256 0a256 256 0 1 1 0 512A256 256 0 1 1 256 0zM232 120l0 136c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2 280 120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"]},E={prefix:"fas",iconName:"network-wired",icon:[640,512,[],"f6ff","M256 64l128 0 0 64-128 0 0-64zM240 0c-26.5 0-48 21.5-48 48l0 96c0 26.5 21.5 48 48 48l48 0 0 32L32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0 0 32-48 0c-26.5 0-48 21.5-48 48l0 96c0 26.5 21.5 48 48 48l160 0c26.5 0 48-21.5 48-48l0-96c0-26.5-21.5-48-48-48l-48 0 0-32 256 0 0 32-48 0c-26.5 0-48 21.5-48 48l0 96c0 26.5 21.5 48 48 48l160 0c26.5 0 48-21.5 48-48l0-96c0-26.5-21.5-48-48-48l-48 0 0-32 96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-256 0 0-32 48 0c26.5 0 48-21.5 48-48l0-96c0-26.5-21.5-48-48-48L240 0zM96 448l0-64 128 0 0 64L96 448zm320-64l128 0 0 64-128 0 0-64z"]},N={prefix:"fas",iconName:"house",icon:[576,512,[127968,63498,63500,"home","home-alt","home-lg-alt"],"f015","M575.8 255.5c0 18-15 32.1-32 32.1l-32 0 .7 160.2c0 2.7-.2 5.4-.5 8.1l0 16.2c0 22.1-17.9 40-40 40l-16 0c-1.1 0-2.2 0-3.3-.1c-1.4 .1-2.8 .1-4.2 .1L416 512l-24 0c-22.1 0-40-17.9-40-40l0-24 0-64c0-17.7-14.3-32-32-32l-64 0c-17.7 0-32 14.3-32 32l0 64 0 24c0 22.1-17.9 40-40 40l-24 0-31.9 0c-1.5 0-3-.1-4.5-.2c-1.2 .1-2.4 .2-3.6 .2l-16 0c-22.1 0-40-17.9-40-40l0-112c0-.9 0-1.9 .1-2.8l0-69.7-32 0c-18 0-32-14-32-32.1c0-9 3-17 10-24L266.4 8c7-7 15-8 22-8s15 2 21 7L564.8 231.5c8 7 12 15 11 24z"]},P={prefix:"fas",iconName:"bolt",icon:[448,512,[9889,"zap"],"f0e7","M349.4 44.6c5.9-13.7 1.5-29.7-10.6-38.5s-28.6-8-39.9 1.8l-256 224c-10 8.8-13.6 22.9-8.9 35.3S50.7 288 64 288l111.5 0L98.6 467.4c-5.9 13.7-1.5 29.7 10.6 38.5s28.6 8 39.9-1.8l256-224c10-8.8 13.6-22.9 8.9-35.3s-16.6-20.7-30-20.7l-111.5 0L349.4 44.6z"]},M={prefix:"fas",iconName:"arrow-down",icon:[384,512,[8595],"f063","M169.4 470.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 370.8 224 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 306.7L54.6 265.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"]},L={prefix:"fas",iconName:"gauge-high",icon:[512,512,[62461,"tachometer-alt","tachometer-alt-fast"],"f625","M0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zM288 96a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM256 416c35.3 0 64-28.7 64-64c0-17.4-6.9-33.1-18.1-44.6L366 161.7c5.3-12.1-.2-26.3-12.3-31.6s-26.3 .2-31.6 12.3L257.9 288c-.6 0-1.3 0-1.9 0c-35.3 0-64 28.7-64 64s28.7 64 64 64zM176 144a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM96 288a32 32 0 1 0 0-64 32 32 0 1 0 0 64zm352-32a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},j={prefix:"fas",iconName:"play",icon:[384,512,[9654],"f04b","M73 39c-14.8-9.1-33.4-9.4-48.5-.9S0 62.6 0 80L0 432c0 17.4 9.4 33.4 24.5 41.9s33.7 8.1 48.5-.9L361 297c14.3-8.7 23-24.2 23-41s-8.7-32.2-23-41L73 39z"]},_={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},T={prefix:"fas",iconName:"arrow-up",icon:[384,512,[8593],"f062","M214.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 141.2 160 448c0 17.7 14.3 32 32 32s32-14.3 32-32l0-306.7L329.4 246.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-160-160z"]},I={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 144L48 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l144 0 0 144c0 17.7 14.3 32 32 32s32-14.3 32-32l0-144 144 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-144 0 0-144z"]},F={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},D={prefix:"fas",iconName:"robot",icon:[640,512,[129302],"f544","M320 0c17.7 0 32 14.3 32 32l0 64 120 0c39.8 0 72 32.2 72 72l0 272c0 39.8-32.2 72-72 72l-304 0c-39.8 0-72-32.2-72-72l0-272c0-39.8 32.2-72 72-72l120 0 0-64c0-17.7 14.3-32 32-32zM208 384c-8.8 0-16 7.2-16 16s7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0zm96 0c-8.8 0-16 7.2-16 16s7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0zm96 0c-8.8 0-16 7.2-16 16s7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0zM264 256a40 40 0 1 0 -80 0 40 40 0 1 0 80 0zm152 40a40 40 0 1 0 0-80 40 40 0 1 0 0 80zM48 224l16 0 0 192-16 0c-26.5 0-48-21.5-48-48l0-96c0-26.5 21.5-48 48-48zm544 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-16 0 0-192 16 0z"]},R={prefix:"fas",iconName:"desktop",icon:[576,512,[128421,61704,"desktop-alt"],"f390","M64 0C28.7 0 0 28.7 0 64L0 352c0 35.3 28.7 64 64 64l176 0-10.7 32L160 448c-17.7 0-32 14.3-32 32s14.3 32 32 32l256 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-69.3 0L336 416l176 0c35.3 0 64-28.7 64-64l0-288c0-35.3-28.7-64-64-64L64 0zM512 64l0 224L64 288 64 64l448 0z"]},U={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]},Y={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480L40 480c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24l0 112c0 13.3 10.7 24 24 24s24-10.7 24-24l0-112c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},H={prefix:"fas",iconName:"database",icon:[448,512,[],"f1c0","M448 80l0 48c0 44.2-100.3 80-224 80S0 172.2 0 128L0 80C0 35.8 100.3 0 224 0S448 35.8 448 80zM393.2 214.7c20.8-7.4 39.9-16.9 54.8-28.6L448 288c0 44.2-100.3 80-224 80S0 332.2 0 288L0 186.1c14.9 11.8 34 21.2 54.8 28.6C99.7 230.7 159.5 240 224 240s124.3-9.3 169.2-25.3zM0 346.1c14.9 11.8 34 21.2 54.8 28.6C99.7 390.7 159.5 400 224 400s124.3-9.3 169.2-25.3c20.8-7.4 39.9-16.9 54.8-28.6l0 85.9c0 44.2-100.3 80-224 80S0 476.2 0 432l0-85.9z"]}},1279:(t,e,n)=>{"use strict";function r(t,e){if(t){var n=t.indexOf(e);0<=n&&t.splice(n,1)}}n.d(e,{o:()=>r})},1772:(t,e,n)=>{"use strict";function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function a(t){for(var e=1;ee2});let o=()=>{},i={},s={},c=null,l={mark:o,measure:o};try{"undefined"!=typeof window&&(i=window),"undefined"!=typeof document&&(s=document),"undefined"!=typeof MutationObserver&&(c=MutationObserver),"undefined"!=typeof performance&&(l=performance)}catch(t){}let{userAgent:f=""}=i.navigator||{},u=i,d=s,p=c,m=l;u.document;let h=!!d.documentElement&&!!d.head&&"function"==typeof d.addEventListener&&"function"==typeof d.createElement,b=~f.indexOf("MSIE")||~f.indexOf("Trident/");var g={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"}},y=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],v="classic",x="duotone",w=[v,x,"sharp","sharp-duotone"],k=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}]]),S=["fak","fa-kit","fakd","fa-kit-duotone"],O={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},z=["fak","fakd"],A={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},C={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},E=["fak","fa-kit","fakd","fa-kit-duotone"],N={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"}},P=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt","fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],M=[1,2,3,4,5,6,7,8,9,10],L=M.concat([11,12,13,14,15,16,17,18,19,20]),j=["classic","duotone","sharp","sharp-duotone","solid","regular","light","thin","duotone","brands","2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",C.GROUP,C.SWAP_OPACITY,C.PRIMARY,C.SECONDARY].concat(M.map(t=>"".concat(t,"x"))).concat(L.map(t=>"w-".concat(t)));let _="___FONT_AWESOME___",T="svg-inline--fa",I="data-fa-i2svg",F="data-fa-pseudo-element",D="data-prefix",R="data-icon",U="fontawesome-i2svg",Y=["HTML","HEAD","STYLE","SCRIPT"],H=(()=>{try{return!0}catch(t){return!1}})();function W(t){return new Proxy(t,{get:(t,e)=>e in t?t[e]:t[v]})}let B=a({},g);B[v]=a(a(a(a({},{"fa-duotone":"duotone"}),g[v]),O.kit),O["kit-duotone"]);let $=W(B),X=a({},{classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",brands:"fab"},duotone:{solid:"fad",regular:"fadr",light:"fadl",thin:"fadt"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds",regular:"fasdr",light:"fasdl",thin:"fasdt"}});X[v]=a(a(a(a({},{duotone:"fad"}),X[v]),A.kit),A["kit-duotone"]);let G=W(X),q=a({},N);q[v]=a(a({},q[v]),{fak:"fa-kit"});let K=W(q),V=a({},{classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"}});V[v]=a(a({},V[v]),{"fa-kit":"fak"}),W(V);let J=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,Q="fa-layers-text",Z=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i;W(a({},{classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"}}));let tt=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],te={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},tn=["kit",...j],tr=u.FontAwesomeConfig||{};d&&"function"==typeof d.querySelector&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(t=>{let[e,n]=t,r=function(t){return""===t||"false"!==t&&("true"===t||t)}(function(t){var e=d.querySelector("script["+t+"]");if(e)return e.getAttribute(t)}(e));null!=r&&(tr[n]=r)});let ta={styleDefault:"solid",familyDefault:v,cssPrefix:"fa",replacementClass:T,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};tr.familyPrefix&&(tr.cssPrefix=tr.familyPrefix);let to=a(a({},ta),tr);to.autoReplaceSvg||(to.observeMutations=!1);let ti={};Object.keys(ta).forEach(t=>{Object.defineProperty(ti,t,{enumerable:!0,set:function(e){to[t]=e,ts.forEach(t=>t(ti))},get:function(){return to[t]}})}),Object.defineProperty(ti,"familyPrefix",{enumerable:!0,set:function(t){to.cssPrefix=t,ts.forEach(t=>t(ti))},get:function(){return to.cssPrefix}}),u.FontAwesomeConfig=ti;let ts=[],tc={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function tl(){let t=12,e="";for(;t-- >0;)e+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return e}function tf(t){let e=[];for(let n=(t||[]).length>>>0;n--;)e[n]=t[n];return e}function tu(t){return t.classList?tf(t.classList):(t.getAttribute("class")||"").split(" ").filter(t=>t)}function td(t){return"".concat(t).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function tp(t){return Object.keys(t||{}).reduce((e,n)=>e+"".concat(n,": ").concat(t[n].trim(),";"),"")}function tm(t){return t.size!==tc.size||t.x!==tc.x||t.y!==tc.y||t.rotate!==tc.rotate||t.flipX||t.flipY}function th(){let t=ti.cssPrefix,e=ti.replacementClass,n=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Pro";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-duotone-regular: normal 400 1em/1 "Font Awesome 6 Duotone";\n --fa-font-duotone-light: normal 300 1em/1 "Font Awesome 6 Duotone";\n --fa-font-duotone-thin: normal 100 1em/1 "Font Awesome 6 Duotone";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 6 Sharp Duotone";\n --fa-font-sharp-duotone-regular: normal 400 1em/1 "Font Awesome 6 Sharp Duotone";\n --fa-font-sharp-duotone-light: normal 300 1em/1 "Font Awesome 6 Sharp Duotone";\n --fa-font-sharp-duotone-thin: normal 100 1em/1 "Font Awesome 6 Sharp Duotone";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n transform: scale(var(--fa-counter-scale, 0.25));\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(-1 * var(--fa-li-width, 2em));\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n animation-name: fa-beat;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n animation-name: fa-bounce;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n animation-name: fa-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n animation-name: fa-beat-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n animation-name: fa-flip;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n animation-name: fa-shake;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n animation-name: fa-spin;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 2s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n animation-name: fa-spin;\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n animation-delay: -1ms;\n animation-duration: 1ms;\n animation-iteration-count: 1;\n transition-delay: 0s;\n transition-duration: 0s;\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n transform: scale(1);\n }\n 45% {\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-bounce {\n 0% {\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-flip {\n 50% {\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-shake {\n 0% {\n transform: rotate(-15deg);\n }\n 4% {\n transform: rotate(15deg);\n }\n 8%, 24% {\n transform: rotate(-18deg);\n }\n 12%, 28% {\n transform: rotate(18deg);\n }\n 16% {\n transform: rotate(-22deg);\n }\n 20% {\n transform: rotate(22deg);\n }\n 32% {\n transform: rotate(-12deg);\n }\n 36% {\n transform: rotate(12deg);\n }\n 40%, 100% {\n transform: rotate(0deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n transform: rotate(var(--fa-rotate-angle, 0));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}';if("fa"!==t||e!==T){let r=RegExp("\\.".concat("fa","\\-"),"g"),a=RegExp("\\--".concat("fa","\\-"),"g"),o=RegExp("\\.".concat(T),"g");n=n.replace(r,".".concat(t,"-")).replace(a,"--".concat(t,"-")).replace(o,".".concat(e))}return n}let tb=!1;function tg(){ti.autoAddCss&&!tb&&(!function(t){if(!t||!h)return;let e=d.createElement("style");e.setAttribute("type","text/css"),e.innerHTML=t;let n=d.head.childNodes,r=null;for(let t=n.length-1;t>-1;t--){let e=n[t];["STYLE","LINK"].indexOf((e.tagName||"").toUpperCase())>-1&&(r=e)}d.head.insertBefore(e,r)}(th()),tb=!0)}let ty=u||{};ty[_]||(ty[_]={}),ty[_].styles||(ty[_].styles={}),ty[_].hooks||(ty[_].hooks={}),ty[_].shims||(ty[_].shims=[]);var tv=ty[_];let tx=[],tw=function(){d.removeEventListener("DOMContentLoaded",tw),tk=1,tx.map(t=>t())},tk=!1;function tS(t){let{tag:e,attributes:n={},children:r=[]}=t;return"string"==typeof t?td(t):"<".concat(e," ").concat(Object.keys(n||{}).reduce((t,e)=>t+"".concat(e,'="').concat(td(n[e]),'" '),"").trim(),">").concat(r.map(tS).join(""),"")}function tO(t,e,n){if(t&&t[e]&&t[e][n])return{prefix:e,iconName:n,icon:t[e][n]}}h&&((tk=(d.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(d.readyState))||d.addEventListener("DOMContentLoaded",tw));var tz=function(t,e,n,r){var a,o,i,s=Object.keys(t),c=s.length,l=void 0!==r?function(t,n,a,o){return e.call(r,t,n,a,o)}:e;for(void 0===n?(a=1,i=t[s[0]]):(a=0,i=n);a=55296&&a<=56319&&n{let r=t[n];return r.icon?e[r.iconName]=r.icon:e[n]=r,e},{})}function tE(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{skipHooks:r=!1}=n,o=tC(e);"function"!=typeof tv.hooks.addPack||r?tv.styles[t]=a(a({},tv.styles[t]||{}),o):tv.hooks.addPack(t,tC(e)),"fas"===t&&tE("fa",e)}let{styles:tN,shims:tP}=tv,tM=Object.keys(K),tL=tM.reduce((t,e)=>(t[e]=Object.keys(K[e]),t),{}),tj=null,t_={},tT={},tI={},tF={},tD={},tR=()=>{let t=t=>tz(tN,(e,n,r)=>(e[r]=tz(n,t,{}),e),{});t_=t((t,e,n)=>(e[3]&&(t[e[3]]=n),e[2]&&e[2].filter(t=>"number"==typeof t).forEach(e=>{t[e.toString(16)]=n}),t)),tT=t((t,e,n)=>(t[n]=n,e[2]&&e[2].filter(t=>"string"==typeof t).forEach(e=>{t[e]=n}),t)),tD=t((t,e,n)=>{let r=e[2];return t[n]=n,r.forEach(e=>{t[e]=n}),t});let e="far"in tN||ti.autoFetchSvg,n=tz(tP,(t,n)=>{let r=n[0],a=n[1],o=n[2];return"far"!==a||e||(a="fas"),"string"==typeof r&&(t.names[r]={prefix:a,iconName:o}),"number"==typeof r&&(t.unicodes[r.toString(16)]={prefix:a,iconName:o}),t},{names:{},unicodes:{}});tI=n.names,tF=n.unicodes,tj=tB(ti.styleDefault,{family:ti.familyDefault})};function tU(t,e){return(t_[t]||{})[e]}function tY(t,e){return(tD[t]||{})[e]}function tH(t){return tI[t]||{prefix:null,iconName:null}}!function(t){ts.push(t),()=>{ts.splice(ts.indexOf(t),1)}}(t=>{tj=tB(t.styleDefault,{family:ti.familyDefault})}),tR();let tW=()=>({prefix:null,iconName:null,rest:[]});function tB(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{family:n=v}=e,r=$[n][t];if(n===x&&!t)return"fad";let a=G[n][t]||G[n][r],o=t in tv.styles?t:null;return a||o||null}function t$(t){return t.sort().filter((t,e,n)=>n.indexOf(t)===e)}function tX(t){let e,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{skipLookups:o=!1}=r,i=null,s=P.concat(E),c=t$(t.filter(t=>s.includes(t))),l=t$(t.filter(t=>!P.includes(t))),[f=null]=c.filter(t=>(i=t,!y.includes(t))),u=function(t){let e=v,n=tM.reduce((t,e)=>(t[e]="".concat(ti.cssPrefix,"-").concat(e),t),{});return w.forEach(r=>{(t.includes(n[r])||t.some(t=>tL[r].includes(t)))&&(e=r)}),e}(c),d=a(a({},(e=[],n=null,l.forEach(t=>{let r=function(t,e){let n=e.split("-"),r=n[0],a=n.slice(1).join("-");return r!==t||""===a||~tn.indexOf(a)?null:a}(ti.cssPrefix,t);r?n=r:t&&e.push(t)}),{iconName:n,rest:e})),{},{prefix:tB(f,{family:u})});return a(a(a({},d),function(t){let{values:e,family:n,canonical:r,givenPrefix:a="",styles:o={},config:i={}}=t,s=n===x,c=e.includes("fa-duotone")||e.includes("fad"),l="duotone"===i.familyDefault,f="fad"===r.prefix||"fa-duotone"===r.prefix;return!s&&(c||l||f)&&(r.prefix="fad"),(e.includes("fa-brands")||e.includes("fab"))&&(r.prefix="fab"),!r.prefix&&tG.includes(n)&&(Object.keys(o).find(t=>tq.includes(t))||i.autoFetchSvg)&&(r.prefix=k.get(n).defaultShortPrefixId,r.iconName=tY(r.prefix,r.iconName)||r.iconName),("fa"===r.prefix||"fa"===a)&&(r.prefix=tj||"fas"),r}({values:t,family:u,styles:tN,config:ti,canonical:d,givenPrefix:i})),function(t,e,n){let{prefix:r,iconName:a}=n;if(t||!r||!a)return{prefix:r,iconName:a};let o="fa"===e?tH(a):{},i=tY(r,a);return a=o.iconName||i||a,"far"!==(r=o.prefix||r)||tN.far||!tN.fas||ti.autoFetchSvg||(r="fas"),{prefix:r,iconName:a}}(o,i,d))}let tG=w.filter(t=>t!==v||t!==x),tq=Object.keys(N).filter(t=>t!==v).map(t=>Object.keys(N[t])).flat();class tK{constructor(){this.definitions={}}add(){for(var t=arguments.length,e=Array(t),n=0;n{this.definitions[t]=a(a({},this.definitions[t]||{}),r[t]),tE(t,r[t]);let e=K[v][t];e&&tE(e,r[t]),tR()})}reset(){this.definitions={}}_pullDefinitions(t,e){let n=e.prefix&&e.iconName&&e.icon?{0:e}:e;return Object.keys(n).map(e=>{let{prefix:r,iconName:a,icon:o}=n[e],i=o[2];t[r]||(t[r]={}),i.length>0&&i.forEach(e=>{"string"==typeof e&&(t[r][e]=o)}),t[r][a]=o}),t}}let tV=[],tJ={},tQ={},tZ=Object.keys(tQ);function t2(t,e){for(var n=arguments.length,r=Array(n>2?n-2:0),a=2;a{e=t.apply(null,[e,...r])}),e}function t1(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r{t.apply(null,n)})}function t0(){let t=arguments[0],e=Array.prototype.slice.call(arguments,1);return tQ[t]?tQ[t].apply(null,e):void 0}function t3(t){"fa"===t.prefix&&(t.prefix="fas");let{iconName:e}=t,n=t.prefix||tj;if(e)return e=tY(n,e)||e,tO(t4.definitions,n,e)||tO(tv.styles,n,e)}let t4=new tK,t6={noAuto:()=>{ti.autoReplaceSvg=!1,ti.observeMutations=!1,t1("noAuto")},config:ti,dom:{i2svg:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return h?(t1("beforeI2svg",t),t0("pseudoElements2svg",t),t0("i2svg",t)):Promise.reject(Error("Operation requires a DOM of some kind."))},watch:function(){var t;let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{autoReplaceSvgRoot:n}=e;!1===ti.autoReplaceSvg&&(ti.autoReplaceSvg=!0),ti.observeMutations=!0,t=()=>{t5({autoReplaceSvgRoot:n}),t1("watch",e)},h&&(tk?setTimeout(t,0):tx.push(t))}},parse:{icon:t=>{if(null===t)return null;if("object"==typeof t&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:tY(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&2===t.length){let e=0===t[1].indexOf("fa-")?t[1].slice(3):t[1],n=tB(t[0]);return{prefix:n,iconName:tY(n,e)||e}}if("string"==typeof t&&(t.indexOf("".concat(ti.cssPrefix,"-"))>-1||t.match(J))){let e=tX(t.split(" "),{skipLookups:!0});return{prefix:e.prefix||tj,iconName:tY(e.prefix,e.iconName)||e.iconName}}if("string"==typeof t){let e=tj;return{prefix:e,iconName:tY(e,t)||t}}}},library:t4,findIconDefinition:t3,toHtml:tS},t5=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{autoReplaceSvgRoot:e=d}=t;(Object.keys(tv.styles).length>0||ti.autoFetchSvg)&&h&&ti.autoReplaceSvg&&t6.dom.i2svg({node:e})};function t8(t,e){return Object.defineProperty(t,"abstract",{get:e}),Object.defineProperty(t,"html",{get:function(){return t.abstract.map(t=>tS(t))}}),Object.defineProperty(t,"node",{get:function(){if(!h)return;let e=d.createElement("div");return e.innerHTML=t.html,e.children}}),t}function t7(t){let{icons:{main:e,mask:n},prefix:r,iconName:o,transform:i,symbol:s,title:c,maskId:l,titleId:f,extra:u,watchable:d=!1}=t,{width:p,height:m}=n.found?n:e,h=z.includes(r),b=[ti.replacementClass,o?"".concat(ti.cssPrefix,"-").concat(o):""].filter(t=>-1===u.classes.indexOf(t)).filter(t=>""!==t||!!t).concat(u.classes).join(" "),g={children:[],attributes:a(a({},u.attributes),{},{"data-prefix":r,"data-icon":o,class:b,role:u.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(p," ").concat(m)})},y=h&&!~u.classes.indexOf("fa-fw")?{width:"".concat(p/m*1,"em")}:{};d&&(g.attributes[I]=""),c&&(g.children.push({tag:"title",attributes:{id:g.attributes["aria-labelledby"]||"title-".concat(f||tl())},children:[c]}),delete g.attributes.title);let v=a(a({},g),{},{prefix:r,iconName:o,main:e,mask:n,maskId:l,transform:i,symbol:s,styles:a(a({},y),u.styles)}),{children:x,attributes:w}=n.found&&e.found?t0("generateAbstractMask",v)||{children:[],attributes:{}}:t0("generateAbstractIcon",v)||{children:[],attributes:{}};return(v.children=x,v.attributes=w,s)?function(t){let{prefix:e,iconName:n,children:r,attributes:o,symbol:i}=t,s=!0===i?"".concat(e,"-").concat(ti.cssPrefix,"-").concat(n):i;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:a(a({},o),{},{id:s}),children:r}]}]}(v):function(t){let{children:e,main:n,mask:r,attributes:o,styles:i,transform:s}=t;if(tm(s)&&n.found&&!r.found){let{width:t,height:e}=n,r={x:t/e/2,y:.5};o.style=tp(a(a({},i),{},{"transform-origin":"".concat(r.x+s.x/16,"em ").concat(r.y+s.y/16,"em")}))}return[{tag:"svg",attributes:o,children:e}]}(v)}function t9(t){let{content:e,width:n,height:r,transform:o,title:i,extra:s,watchable:c=!1}=t,l=a(a(a({},s.attributes),i?{title:i}:{}),{},{class:s.classes.join(" ")});c&&(l[I]="");let f=a({},s.styles);tm(o)&&(f.transform=function(t){let{transform:e,width:n=16,height:r=16,startCentered:a=!1}=t,o="";return a&&b?o+="translate(".concat(e.x/16-n/2,"em, ").concat(e.y/16-r/2,"em) "):a?o+="translate(calc(-50% + ".concat(e.x/16,"em), calc(-50% + ").concat(e.y/16,"em)) "):o+="translate(".concat(e.x/16,"em, ").concat(e.y/16,"em) "),o+="scale(".concat(e.size/16*(e.flipX?-1:1),", ").concat(e.size/16*(e.flipY?-1:1),") "),o+="rotate(".concat(e.rotate,"deg) ")}({transform:o,startCentered:!0,width:n,height:r}),f["-webkit-transform"]=f.transform);let u=tp(f);u.length>0&&(l.style=u);let d=[];return d.push({tag:"span",attributes:l,children:[e]}),i&&d.push({tag:"span",attributes:{class:"sr-only"},children:[i]}),d}let{styles:et}=tv;function ee(t){let e=t[0],n=t[1],[r]=t.slice(4),a=null;return{found:!0,width:e,height:n,icon:Array.isArray(r)?{tag:"g",attributes:{class:"".concat(ti.cssPrefix,"-").concat(te.GROUP)},children:[{tag:"path",attributes:{class:"".concat(ti.cssPrefix,"-").concat(te.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(ti.cssPrefix,"-").concat(te.PRIMARY),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}}}}let en={found:!1,width:512,height:512};function er(t,e){let n=e;return"fa"===e&&null!==ti.styleDefault&&(e=tj),new Promise((r,o)=>{var i,s;if("fa"===n){let n=tH(t)||{};t=n.iconName||t,e=n.prefix||e}if(t&&e&&et[e]&&et[e][t])return r(ee(et[e][t]));i=t,s=e,H||ti.showMissingIcons||!i||console.error('Icon with name "'.concat(i,'" and prefix "').concat(s,'" is missing.')),r(a(a({},en),{},{icon:ti.showMissingIcons&&t&&t0("missingIconAbstract")||{}}))})}let ea=()=>{},eo=ti.measurePerformance&&m&&m.mark&&m.measure?m:{mark:ea,measure:ea},ei='FA "6.7.2"',es=t=>{eo.mark("".concat(ei," ").concat(t," ends")),eo.measure("".concat(ei," ").concat(t),"".concat(ei," ").concat(t," begins"),"".concat(ei," ").concat(t," ends"))};var ec={begin:t=>(eo.mark("".concat(ei," ").concat(t," begins")),()=>es(t))};let el=()=>{};function ef(t){return"string"==typeof(t.getAttribute?t.getAttribute(I):null)}function eu(t){return d.createElementNS("http://www.w3.org/2000/svg",t)}function ed(t){return d.createElement(t)}let ep={replace:function(t){let e=t[0];if(e.parentNode)if(t[1].forEach(t=>{e.parentNode.insertBefore(function t(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{ceFn:r="svg"===e.tag?eu:ed}=n;if("string"==typeof e)return d.createTextNode(e);let a=r(e.tag);return Object.keys(e.attributes||[]).forEach(function(t){a.setAttribute(t,e.attributes[t])}),(e.children||[]).forEach(function(e){a.appendChild(t(e,{ceFn:r}))}),a}(t),e)}),null===e.getAttribute(I)&&ti.keepOriginalSource){let t,n=d.createComment((t=" ".concat(e.outerHTML," "),t="".concat(t,"Font Awesome fontawesome.com ")));e.parentNode.replaceChild(n,e)}else e.remove()},nest:function(t){let e=t[0],n=t[1];if(~tu(e).indexOf(ti.replacementClass))return ep.replace(t);let r=new RegExp("".concat(ti.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){let t=n[0].attributes.class.split(" ").reduce((t,e)=>(e===ti.replacementClass||e.match(r)?t.toSvg.push(e):t.toNode.push(e),t),{toNode:[],toSvg:[]});n[0].attributes.class=t.toSvg.join(" "),0===t.toNode.length?e.removeAttribute("class"):e.setAttribute("class",t.toNode.join(" "))}let a=n.map(t=>tS(t)).join("\n");e.setAttribute(I,""),e.innerHTML=a}};function em(t){t()}function eh(t,e){let n="function"==typeof e?e:el;if(0===t.length)n();else{let e=em;"async"===ti.mutateApproach&&(e=u.requestAnimationFrame||em),e(()=>{let e=!0===ti.autoReplaceSvg?ep.replace:ep[ti.autoReplaceSvg]||ep.replace,r=ec.begin("mutate");t.map(e),r(),n()})}}let eb=!1,eg=null;function ey(t){if(!p||!ti.observeMutations)return;let{treeCallback:e=el,nodeCallback:n=el,pseudoElementsCallback:r=el,observeMutationsRoot:a=d}=t;eg=new p(t=>{if(eb)return;let a=tj;tf(t).forEach(t=>{if("childList"===t.type&&t.addedNodes.length>0&&!ef(t.addedNodes[0])&&(ti.searchPseudoElements&&r(t.target),e(t.target)),"attributes"===t.type&&t.target.parentNode&&ti.searchPseudoElements&&r(t.target.parentNode),"attributes"===t.type&&ef(t.target)&&~tt.indexOf(t.attributeName))if("class"===t.attributeName&&function(t){let e=t.getAttribute?t.getAttribute(D):null,n=t.getAttribute?t.getAttribute(R):null;return e&&n}(t.target)){let{prefix:e,iconName:n}=tX(tu(t.target));t.target.setAttribute(D,e||a),n&&t.target.setAttribute(R,n)}else{var o;(o=t.target)&&o.classList&&o.classList.contains&&o.classList.contains(ti.replacementClass)&&n(t.target)}})}),h&&eg.observe(a,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function ev(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},{iconName:n,prefix:r,rest:o}=function(t){var e,n;let r=t.getAttribute("data-prefix"),a=t.getAttribute("data-icon"),o=void 0!==t.innerText?t.innerText.trim():"",i=tX(tu(t));return(i.prefix||(i.prefix=tj),r&&a&&(i.prefix=r,i.iconName=a),i.iconName&&i.prefix)?i:(i.prefix&&o.length>0&&(e=i.prefix,n=t.innerText,i.iconName=(tT[e]||{})[n]||tU(i.prefix,tA(t.innerText))),!i.iconName&&ti.autoFetchSvg&&t.firstChild&&t.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=t.firstChild.data),i)}(t),i=function(t){let e=tf(t.attributes).reduce((t,e)=>("class"!==t.name&&"style"!==t.name&&(t[e.name]=e.value),t),{}),n=t.getAttribute("title"),r=t.getAttribute("data-fa-title-id");return ti.autoA11y&&(n?e["aria-labelledby"]="".concat(ti.replacementClass,"-title-").concat(r||tl()):(e["aria-hidden"]="true",e.focusable="false")),e}(t),s=t2("parseNodeAttributes",{},t),c=e.styleParser?function(t){let e=t.getAttribute("style"),n=[];return e&&(n=e.split(";").reduce((t,e)=>{let n=e.split(":"),r=n[0],a=n.slice(1);return r&&a.length>0&&(t[r]=a.join(":").trim()),t},{})),n}(t):[];return a({iconName:n,title:t.getAttribute("title"),titleId:t.getAttribute("data-fa-title-id"),prefix:r,transform:tc,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:c,attributes:i}},s)}let{styles:ex}=tv;function ew(t){let e="nest"===ti.autoReplaceSvg?ev(t,{styleParser:!1}):ev(t);return~e.extra.classes.indexOf(Q)?t0("generateLayersText",t,e):t0("generateSvgReplacementMutation",t,e)}function ek(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!h)return Promise.resolve();let n=d.documentElement.classList,r=t=>n.add("".concat(U,"-").concat(t)),a=t=>n.remove("".concat(U,"-").concat(t)),o=ti.autoFetchSvg?[...S,...P]:y.concat(Object.keys(ex));o.includes("fa")||o.push("fa");let i=[".".concat(Q,":not([").concat(I,"])")].concat(o.map(t=>".".concat(t,":not([").concat(I,"])"))).join(", ");if(0===i.length)return Promise.resolve();let s=[];try{s=tf(t.querySelectorAll(i))}catch(t){}if(!(s.length>0))return Promise.resolve();r("pending"),a("complete");let c=ec.begin("onTree"),l=s.reduce((t,e)=>{try{let n=ew(e);n&&t.push(n)}catch(t){H||"MissingIcon"!==t.name||console.error(t)}return t},[]);return new Promise((t,n)=>{Promise.all(l).then(n=>{eh(n,()=>{r("active"),r("complete"),a("pending"),"function"==typeof e&&e(),c(),t()})}).catch(t=>{c(),n(t)})})}function eS(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;ew(t).then(t=>{t&&eh([t],e)})}let eO=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{transform:n=tc,symbol:r=!1,mask:o=null,maskId:i=null,title:s=null,titleId:c=null,classes:l=[],attributes:f={},styles:u={}}=e;if(!t)return;let{prefix:d,iconName:p,icon:m}=t;return t8(a({type:"icon"},t),()=>(t1("beforeDOMElementCreation",{iconDefinition:t,params:e}),ti.autoA11y&&(s?f["aria-labelledby"]="".concat(ti.replacementClass,"-title-").concat(c||tl()):(f["aria-hidden"]="true",f.focusable="false")),t7({icons:{main:ee(m),mask:o?ee(o.icon):{found:!1,width:null,height:null,icon:{}}},prefix:d,iconName:p,transform:a(a({},tc),n),symbol:r,title:s,maskId:i,titleId:c,extra:{attributes:f,styles:u,classes:l}})))},ez=RegExp('"',"ug"),eA=a(a(a(a({},{FontAwesome:{normal:"fas",400:"fas"}}),{"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"}}),{"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}}),{"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}}),eC=Object.keys(eA).reduce((t,e)=>(t[e.toLowerCase()]=eA[e],t),{}),eE=Object.keys(eC).reduce((t,e)=>{let n=eC[e];return t[e]=n[900]||[...Object.entries(n)][0][1],t},{});function eN(t,e){let n="".concat("data-fa-pseudo-element-pending").concat(e.replace(":","-"));return new Promise((r,o)=>{if(null!==t.getAttribute(n))return r();let i=tf(t.children).filter(t=>t.getAttribute(F)===e)[0],s=u.getComputedStyle(t,e),c=s.getPropertyValue("font-family"),l=c.match(Z),f=s.getPropertyValue("font-weight"),p=s.getPropertyValue("content");if(i&&!l)return t.removeChild(i),r();if(l&&"none"!==p&&""!==p){let u=s.getPropertyValue("content"),p=function(t,e){let n=t.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(e),a=isNaN(r)?"normal":r;return(eC[n]||{})[a]||eE[n]}(c,f),{value:m,isSecondary:h}=function(t){let e=t.replace(ez,""),n=function(t,e){let n,r=t.length,a=t.charCodeAt(0);return a>=55296&&a<=56319&&r>1&&(n=t.charCodeAt(e+1))>=56320&&n<=57343?(a-55296)*1024+n-56320+65536:a}(e,0),r=2===e.length&&e[0]===e[1];return{value:r?tA(e[0]):tA(e),isSecondary:n>=1105920&&n<=1112319||r}}(u),b=l[0].startsWith("FontAwesome"),g=tU(p,m),y=g;if(b){let t=function(t){let e=tF[t],n=tU("fas",t);return e||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}(m);t.iconName&&t.prefix&&(g=t.iconName,p=t.prefix)}if(!g||h||i&&i.getAttribute(D)===p&&i.getAttribute(R)===y)r();else{t.setAttribute(n,y),i&&t.removeChild(i);let s={iconName:null,title:null,titleId:null,prefix:null,transform:tc,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},{extra:c}=s;c.attributes[F]=e,er(g,p).then(o=>{let i=t7(a(a({},s),{},{icons:{main:o,mask:tW()},prefix:p,iconName:y,extra:c,watchable:!0})),l=d.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===e?t.insertBefore(l,t.firstChild):t.appendChild(l),l.outerHTML=i.map(t=>tS(t)).join("\n"),t.removeAttribute(n),r()}).catch(o)}}else r()})}function eP(t){return Promise.all([eN(t,"::before"),eN(t,"::after")])}function eM(t){return t.parentNode!==document.head&&!~Y.indexOf(t.tagName.toUpperCase())&&!t.getAttribute(F)&&(!t.parentNode||"svg"!==t.parentNode.tagName)}function eL(t){if(h)return new Promise((e,n)=>{let r=tf(t.querySelectorAll("*")).filter(eM).map(eP),a=ec.begin("searchPseudoElements");eb=!0,Promise.all(r).then(()=>{a(),eb=!1,e()}).catch(()=>{a(),eb=!1,n()})})}let ej=!1,e_=t=>t.toLowerCase().split(" ").reduce((t,e)=>{let n=e.toLowerCase().split("-"),r=n[0],a=n.slice(1).join("-");if(r&&"h"===a)return t.flipX=!0,t;if(r&&"v"===a)return t.flipY=!0,t;if(isNaN(a=parseFloat(a)))return t;switch(r){case"grow":t.size=t.size+a;break;case"shrink":t.size=t.size-a;break;case"left":t.x=t.x-a;break;case"right":t.x=t.x+a;break;case"up":t.y=t.y-a;break;case"down":t.y=t.y+a;break;case"rotate":t.rotate=t.rotate+a}return t},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0}),eT={x:0,y:0,width:"100%",height:"100%"};function eI(t){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return t.attributes&&(t.attributes.fill||e)&&(t.attributes.fill="black"),t}!function(t,e){let{mixoutsTo:n}=e;tV=t,tJ={},Object.keys(tQ).forEach(t=>{-1===tZ.indexOf(t)&&delete tQ[t]}),tV.forEach(t=>{let e=t.mixout?t.mixout():{};if(Object.keys(e).forEach(t=>{"function"==typeof e[t]&&(n[t]=e[t]),"object"==typeof e[t]&&Object.keys(e[t]).forEach(r=>{n[t]||(n[t]={}),n[t][r]=e[t][r]})}),t.hooks){let e=t.hooks();Object.keys(e).forEach(t=>{tJ[t]||(tJ[t]=[]),tJ[t].push(e[t])})}t.provides&&t.provides(tQ)})}([{mixout:()=>({dom:{css:th,insertCss:tg}}),hooks:()=>({beforeDOMElementCreation(){tg()},beforeI2svg(){tg()}})},{mixout:()=>({icon:function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(t||{}).icon?t:t3(t||{}),{mask:r}=e;return r&&(r=(r||{}).icon?r:t3(r||{})),eO(n,a(a({},e),{},{mask:r}))}}),hooks:()=>({mutationObserverCallbacks:t=>(t.treeCallback=ek,t.nodeCallback=eS,t)}),provides(t){t.i2svg=function(t){let{node:e=d,callback:n=()=>{}}=t;return ek(e,n)},t.generateSvgReplacementMutation=function(t,e){let{iconName:n,title:r,titleId:a,prefix:o,transform:i,symbol:s,mask:c,maskId:l,extra:f}=e;return new Promise((e,u)=>{Promise.all([er(n,o),c.iconName?er(c.iconName,c.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(c=>{let[u,d]=c;e([t,t7({icons:{main:u,mask:d},prefix:o,iconName:n,transform:i,symbol:s,maskId:l,title:r,titleId:a,extra:f,watchable:!0})])}).catch(u)})},t.generateAbstractIcon=function(t){let e,{children:n,attributes:r,main:a,transform:o,styles:i}=t,s=tp(i);return s.length>0&&(r.style=s),tm(o)&&(e=t0("generateAbstractTransformGrouping",{main:a,transform:o,containerWidth:a.width,iconWidth:a.width})),n.push(e||a.icon),{children:n,attributes:r}}}},{mixout:()=>({layer(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{classes:n=[]}=e;return t8({type:"layer"},()=>{t1("beforeDOMElementCreation",{assembler:t,params:e});let r=[];return t(t=>{Array.isArray(t)?t.map(t=>{r=r.concat(t.abstract)}):r=r.concat(t.abstract)}),[{tag:"span",attributes:{class:["".concat(ti.cssPrefix,"-layers"),...n].join(" ")},children:r}]})}})},{mixout:()=>({counter(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{title:n=null,classes:r=[],attributes:o={},styles:i={}}=e;return t8({type:"counter",content:t},()=>(t1("beforeDOMElementCreation",{content:t,params:e}),function(t){let{content:e,title:n,extra:r}=t,o=a(a(a({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),i=tp(r.styles);i.length>0&&(o.style=i);let s=[];return s.push({tag:"span",attributes:o,children:[e]}),n&&s.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),s}({content:t.toString(),title:n,extra:{attributes:o,styles:i,classes:["".concat(ti.cssPrefix,"-layers-counter"),...r]}})))}})},{mixout:()=>({text(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{transform:n=tc,title:r=null,classes:o=[],attributes:i={},styles:s={}}=e;return t8({type:"text",content:t},()=>(t1("beforeDOMElementCreation",{content:t,params:e}),t9({content:t,transform:a(a({},tc),n),title:r,extra:{attributes:i,styles:s,classes:["".concat(ti.cssPrefix,"-layers-text"),...o]}})))}}),provides(t){t.generateLayersText=function(t,e){let{title:n,transform:r,extra:a}=e,o=null,i=null;if(b){let e=parseInt(getComputedStyle(t).fontSize,10),n=t.getBoundingClientRect();o=n.width/e,i=n.height/e}return ti.autoA11y&&!n&&(a.attributes["aria-hidden"]="true"),Promise.resolve([t,t9({content:t.innerHTML,width:o,height:i,transform:r,title:n,extra:a,watchable:!0})])}}},{hooks:()=>({mutationObserverCallbacks:t=>(t.pseudoElementsCallback=eL,t)}),provides(t){t.pseudoElements2svg=function(t){let{node:e=d}=t;ti.searchPseudoElements&&eL(e)}}},{mixout:()=>({dom:{unwatch(){eb=!0,ej=!0}}}),hooks:()=>({bootstrap(){ey(t2("mutationObserverCallbacks",{}))},noAuto(){eg&&eg.disconnect()},watch(t){let{observeMutationsRoot:e}=t;ej?eb=!1:ey(t2("mutationObserverCallbacks",{observeMutationsRoot:e}))}})},{mixout:()=>({parse:{transform:t=>e_(t)}}),hooks:()=>({parseNodeAttributes(t,e){let n=e.getAttribute("data-fa-transform");return n&&(t.transform=e_(n)),t}}),provides(t){t.generateAbstractTransformGrouping=function(t){let{main:e,transform:n,containerWidth:r,iconWidth:o}=t,i="translate(".concat(32*n.x,", ").concat(32*n.y,") "),s="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),c="rotate(".concat(n.rotate," 0 0)"),l={transform:"".concat(i," ").concat(s," ").concat(c)},f={outer:{transform:"translate(".concat(r/2," 256)")},inner:l,path:{transform:"translate(".concat(-(o/2*1)," -256)")}};return{tag:"g",attributes:a({},f.outer),children:[{tag:"g",attributes:a({},f.inner),children:[{tag:e.icon.tag,children:e.icon.children,attributes:a(a({},e.icon.attributes),f.path)}]}]}}}},{hooks:()=>({parseNodeAttributes(t,e){let n=e.getAttribute("data-fa-mask"),r=n?tX(n.split(" ").map(t=>t.trim())):tW();return r.prefix||(r.prefix=tj),t.mask=r,t.maskId=e.getAttribute("data-fa-mask-id"),t}}),provides(t){t.generateAbstractMask=function(t){let{children:e,attributes:n,main:r,mask:o,maskId:i,transform:s}=t,{width:c,icon:l}=r,{width:f,icon:u}=o,d=function(t){let{transform:e,containerWidth:n,iconWidth:r}=t,a="translate(".concat(32*e.x,", ").concat(32*e.y,") "),o="scale(".concat(e.size/16*(e.flipX?-1:1),", ").concat(e.size/16*(e.flipY?-1:1),") "),i="rotate(".concat(e.rotate," 0 0)"),s={transform:"".concat(a," ").concat(o," ").concat(i)};return{outer:{transform:"translate(".concat(n/2," 256)")},inner:s,path:{transform:"translate(".concat(-(r/2*1)," -256)")}}}({transform:s,containerWidth:f,iconWidth:c}),p={tag:"rect",attributes:a(a({},eT),{},{fill:"white"})},m=l.children?{children:l.children.map(eI)}:{},h={tag:"g",attributes:a({},d.inner),children:[eI(a({tag:l.tag,attributes:a(a({},l.attributes),d.path)},m))]},b={tag:"g",attributes:a({},d.outer),children:[h]},g="mask-".concat(i||tl()),y="clip-".concat(i||tl()),v={tag:"mask",attributes:a(a({},eT),{},{id:g,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[p,b]},x={tag:"defs",children:[{tag:"clipPath",attributes:{id:y},children:"g"===u.tag?u.children:[u]},v]};return e.push(x,{tag:"rect",attributes:a({fill:"currentColor","clip-path":"url(#".concat(y,")"),mask:"url(#".concat(g,")")},eT)}),{children:e,attributes:n}}}},{provides(t){let e=!1;u.matchMedia&&(e=u.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){let t=[],n={fill:"currentColor"},r={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};t.push({tag:"path",attributes:a(a({},n),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});let o=a(a({},r),{},{attributeName:"opacity"}),i={tag:"circle",attributes:a(a({},n),{},{cx:"256",cy:"364",r:"28"}),children:[]};return e||i.children.push({tag:"animate",attributes:a(a({},r),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:a(a({},o),{},{values:"1;0;1;1;0;1;"})}),t.push(i),t.push({tag:"path",attributes:a(a({},n),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:e?[]:[{tag:"animate",attributes:a(a({},o),{},{values:"1;0;0;0;0;1;"})}]}),e||t.push({tag:"path",attributes:a(a({},n),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:a(a({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:t}}}},{hooks:()=>({parseNodeAttributes(t,e){let n=e.getAttribute("data-fa-symbol");return t.symbol=null!==n&&(""===n||n),t}})}],{mixoutsTo:t6}),t6.noAuto,t6.config,t6.library,t6.dom;let eF=t6.parse;t6.findIconDefinition,t6.toHtml;let eD=t6.icon;t6.layer,t6.text,t6.counter;var eR=n(5062),eU=n.n(eR),eY=n(4232);function eH(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function eW(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=Array(e);n0||!Array.isArray(e)&&e?e$({},t,e):{}}var eZ={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1},e2=eY.forwardRef(function(t,e){var n,r,a,o,i,s,c,l,f,u,d,p,m,h,b,g,y,v,x,w,k=eW(eW({},eZ),t),S=k.icon,O=k.mask,z=k.symbol,A=k.className,C=k.title,E=k.titleId,N=k.maskId,P=eJ(S),M=eQ("classes",[].concat(eX((r=k.beat,a=k.fade,o=k.beatFade,i=k.bounce,s=k.shake,c=k.flash,l=k.spin,f=k.spinPulse,u=k.spinReverse,d=k.pulse,p=k.fixedWidth,m=k.inverse,h=k.border,b=k.listItem,g=k.flip,y=k.size,v=k.rotation,x=k.pull,Object.keys((e$(n={"fa-beat":r,"fa-fade":a,"fa-beat-fade":o,"fa-bounce":i,"fa-shake":s,"fa-flash":c,"fa-spin":l,"fa-spin-reverse":u,"fa-spin-pulse":f,"fa-pulse":d,"fa-fw":p,"fa-inverse":m,"fa-border":h,"fa-li":b,"fa-flip":!0===g,"fa-flip-horizontal":"horizontal"===g||"both"===g,"fa-flip-vertical":"vertical"===g||"both"===g},"fa-".concat(y),null!=y),e$(n,"fa-rotate-".concat(v),null!=v&&0!==v),e$(n,"fa-pull-".concat(x),null!=x),e$(n,"fa-swap-opacity",k.swapOpacity),w=n)).map(function(t){return w[t]?t:null}).filter(function(t){return t}))),eX((A||"").split(" ")))),L=eQ("transform","string"==typeof k.transform?eF.transform(k.transform):k.transform),j=eQ("mask",eJ(O)),_=eD(P,eW(eW(eW(eW({},M),L),j),{},{symbol:z,title:C,titleId:E,maskId:N}));if(!_)return!function(){if(!eV&&console&&"function"==typeof console.error){var t;(t=console).error.apply(t,arguments)}}("Could not find icon",P),null;var T=_.abstract,I={ref:e};return Object.keys(k).forEach(function(t){eZ.hasOwnProperty(t)||(I[t]=k[t])}),e1(T[0],I)});e2.displayName="FontAwesomeIcon",e2.propTypes={beat:eU().bool,border:eU().bool,beatFade:eU().bool,bounce:eU().bool,className:eU().string,fade:eU().bool,flash:eU().bool,mask:eU().oneOfType([eU().object,eU().array,eU().string]),maskId:eU().string,fixedWidth:eU().bool,inverse:eU().bool,flip:eU().oneOf([!0,!1,"horizontal","vertical","both"]),icon:eU().oneOfType([eU().object,eU().array,eU().string]),listItem:eU().bool,pull:eU().oneOf(["right","left"]),pulse:eU().bool,rotation:eU().oneOf([0,90,180,270]),shake:eU().bool,size:eU().oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:eU().bool,spinPulse:eU().bool,spinReverse:eU().bool,symbol:eU().oneOfType([eU().bool,eU().string]),title:eU().string,titleId:eU().string,transform:eU().oneOfType([eU().string,eU().object]),swapOpacity:eU().bool};var e1=(function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof n)return n;var a=(n.children||[]).map(function(n){return t(e,n)}),o=Object.keys(n.attributes||{}).reduce(function(t,e){var r=n.attributes[e];switch(e){case"class":t.attrs.className=r,delete n.attributes.class;break;case"style":t.attrs.style=r.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,e){var n=e.indexOf(":"),r=eq(e.slice(0,n)),a=e.slice(n+1).trim();return r.startsWith("webkit")?t[r.charAt(0).toUpperCase()+r.slice(1)]=a:t[r]=a,t},{});break;default:0===e.indexOf("aria-")||0===e.indexOf("data-")?t.attrs[e.toLowerCase()]=r:t.attrs[eq(e)]=r}return t},{attrs:{}}),i=r.style,s=function(t,e){if(null==t)return{};var n,r,a=function(t,e){if(null==t)return{};var n,r,a={},o=Object.keys(t);for(r=0;r=0||(a[n]=t[n]);return a}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}(r,eK);return o.attrs.style=eW(eW({},o.attrs.style),void 0===i?{}:i),e.apply(void 0,[n.tag,eW(eW({},o.attrs),s)].concat(eX(a)))}).bind(null,eY.createElement)},2268:(t,e,n)=>{"use strict";n.d(e,{Fd:()=>a,Wv:()=>i,sS:()=>o,ug:()=>r});let r=(t,e,n)=>{let r=new WebSocket(t);return r.onmessage=t=>{try{let n=JSON.parse(t.data);e(n)}catch(t){console.error("Failed to parse WebSocket message:",t)}},r.onerror=t=>{console.error("WebSocket Error:",t),n&&n(t)},r},a=async(t,e,n)=>{try{let n=await fetch(t);if(!n.ok)throw Error("HTTP Error: ".concat(n.status));let r=await n.text();e(r)}catch(e){console.error("Failed to fetch data from URL: ".concat(t)),n&&n(e)}},o=async(t,e,n,r)=>{try{let r=await fetch(t,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!r.ok)throw Error("HTTP Error: ".concat(r.status));let a=r.headers.get("Content-Type"),o=a&&a.includes("application/json")?await r.json():null;n&&n(o)}catch(e){console.error("Failed to send PUT request to URL: ".concat(t),e),r&&r(e)}},i=async(t,e,n,r)=>{try{let r=await fetch(t,{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!r.ok)throw Error("HTTP Error: ".concat(r.status));let a=await r.text();n&&n(a)}catch(e){console.error("Failed to send DELETE request to URL: ".concat(t),e),r&&r(e)}}},2374:(t,e,n)=>{"use strict";function r(t){return t}n.d(e,{D:()=>r})},3021:()=>{},3352:(t,e,n)=>{"use strict";n.d(e,{c:()=>f});var r=n(4698),a=n(4856),o=n(7049),i=n(2374),s=n(5517),c=n(9168),l=n(9693),f=function(){function t(t){t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var o=this,i=!function(t){return t&&t instanceof r.vU||t&&(0,c.T)(t.next)&&(0,c.T)(t.error)&&(0,c.T)(t.complete)&&(0,a.Uv)(t)}(t)?new r.Ms(t,e,n):t;return(0,l.Y)(function(){var t=o.operator,e=o.source;i.add(t?t.call(i,e):e?o._subscribe(i):o._trySubscribe(i))}),i},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=u(e))(function(e,a){var o=new r.Ms({next:function(e){try{t(e)}catch(t){a(t),o.unsubscribe()}},error:a,complete:e});n.subscribe(o)})},t.prototype._subscribe=function(t){var e;return null==(e=this.source)?void 0:e.subscribe(t)},t.prototype[o.s]=function(){return this},t.prototype.pipe=function(){for(var t,e=[],n=0;n{"use strict";function r(t){var e=t(function(t){Error.call(t),t.stack=Error().stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}n.d(e,{L:()=>r})},3717:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4339:(t,e,n)=>{"use strict";n.d(e,{f:()=>b,v:()=>h});var r=n(7876),a=n(4232),o=n(6463),i=n(2268),s=n(4902),c=n(3352),l=n(4856),f=(0,n(3414).L)(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),u=n(1279),d=n(9693),p=function(t){function e(){var e=t.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return(0,s.C6)(e,t),e.prototype.lift=function(t){var e=new m(this,this);return e.operator=t,e},e.prototype._throwIfClosed=function(){if(this.closed)throw new f},e.prototype.next=function(t){var e=this;(0,d.Y)(function(){var n,r;if(e._throwIfClosed(),!e.isStopped){e.currentObservers||(e.currentObservers=Array.from(e.observers));try{for(var a=(0,s.Ju)(e.currentObservers),o=a.next();!o.done;o=a.next())o.value.next(t)}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}}})},e.prototype.error=function(t){var e=this;(0,d.Y)(function(){if(e._throwIfClosed(),!e.isStopped){e.hasError=e.isStopped=!0,e.thrownError=t;for(var n=e.observers;n.length;)n.shift().error(t)}})},e.prototype.complete=function(){var t=this;(0,d.Y)(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return(null==(t=this.observers)?void 0:t.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(e){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var e=this,n=this.hasError,r=this.isStopped,a=this.observers;return n||r?l.Kn:(this.currentObservers=null,a.push(t),new l.yU(function(){e.currentObservers=null,(0,u.o)(a,t)}))},e.prototype._checkFinalizedStatuses=function(t){var e=this.hasError,n=this.thrownError,r=this.isStopped;e?t.error(n):r&&t.complete()},e.prototype.asObservable=function(){var t=new c.c;return t.source=this,t},e.create=function(t,e){return new m(t,e)},e}(c.c),m=function(t){function e(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r}return(0,s.C6)(e,t),e.prototype.next=function(t){var e,n;null==(n=null==(e=this.destination)?void 0:e.next)||n.call(e,t)},e.prototype.error=function(t){var e,n;null==(n=null==(e=this.destination)?void 0:e.error)||n.call(e,t)},e.prototype.complete=function(){var t,e;null==(e=null==(t=this.destination)?void 0:t.complete)||e.call(t)},e.prototype._subscribe=function(t){var e,n;return null!=(n=null==(e=this.source)?void 0:e.subscribe(t))?n:l.Kn},e}(p);let h=(0,a.createContext)({bootTime:null,getAiAlertStream:()=>null,getIPv4FlowStream:()=>null,getIPv6FlowStream:()=>null,getSystemHealthStream:()=>null}),b=t=>{let{children:e}=t,n=(0,a.useRef)({}),[s,c]=(0,a.useState)(null),l=(0,a.useRef)({}),f=(0,a.useRef)({}),u=async()=>{try{await (0,i.Fd)(o.DS.bootTime,t=>c(Number(t.trim())),t=>{throw Error("Failed to fetch boot_time: ".concat((null==t?void 0:t.message)||"Unknown error"))})}catch(t){console.error("Boot time fetch error:",t)}},d=t=>(f.current[t]||(f.current[t]=new p),f.current[t].asObservable()),m=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;n.current[t]&&n.current[t].close();let r=(0,i.ug)(t,e=>{f.current[t]&&f.current[t].next(e)},e=>console.error("WebSocket error for ".concat(t,":"),e));return r.onclose=()=>{console.warn("WebSocket for ".concat(t," closed. Retrying..."));let n=l.current[t]||1e3;l.current[t]=Math.min(2*n,3e4),setTimeout(()=>m(t,e+1),n)},r.onopen=()=>{console.log("WebSocket connected: ".concat(t)),l.current[t]=1e3},n.current[t]=r,r},b=()=>{m(o.$1.aiAlert),m(o.$1.systemHealth);let t=["source","destination"],e=["1min","10min","1hour"];["ingress","egress"].forEach(n=>{t.forEach(t=>{e.forEach(e=>{m(o.$1.ipv4FlowStats(n,t,e)),m(o.$1.ipv6FlowStats(n,t,e))})})})},g=()=>{Object.entries(n.current).forEach(t=>{let[e,r]=t;try{r.close(),delete n.current[e]}catch(t){console.error("Failed to close WebSocket ".concat(e,":"),t)}}),Object.values(f.current).forEach(t=>{t.complete()}),f.current={}};return(0,a.useEffect)(()=>(u(),b(),()=>g()),[]),(0,r.jsx)(h.Provider,{value:{bootTime:s,getAiAlertStream:()=>d(o.$1.aiAlert),getIPv4FlowStream:(t,e,n)=>d(o.$1.ipv4FlowStats(t,e,n)),getIPv6FlowStream:(t,e,n)=>d(o.$1.ipv6FlowStats(t,e,n)),getSystemHealthStream:()=>d(o.$1.systemHealth)},children:e})}},4492:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>p});var r=n(7876),a=n(4232);let o=(0,a.createContext)(null),i={didCatch:!1,error:null};class s extends a.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=i}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){let{error:t}=this.state;if(null!==t){for(var e,n,r=arguments.length,a=Array(r),o=0;o0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.length!==e.length||t.some((t,n)=>!Object.is(t,e[n]))}(t.resetKeys,r)){var a,o;null==(a=(o=this.props).onReset)||a.call(o,{next:r,prev:t.resetKeys,reason:"keys"}),this.setState(i)}}render(){let{children:t,fallbackRender:e,FallbackComponent:n,fallback:r}=this.props,{didCatch:i,error:s}=this.state,c=t;if(i){let t={error:s,resetErrorBoundary:this.resetErrorBoundary};if("function"==typeof e)c=e(t);else if(n)c=(0,a.createElement)(n,t);else if(void 0!==r)c=r;else throw s}return(0,a.createElement)(o.Provider,{value:{didCatch:i,error:s,resetErrorBoundary:this.resetErrorBoundary}},c)}}var c=n(4339),l=n(1002),f=n(1772),u=n(1041);let d=t=>{let{error:e,resetErrorBoundary:n}=t;return(0,r.jsx)("div",{className:"modal-overlay",children:(0,r.jsxs)("div",{className:"modal-content max-w-md",children:[(0,r.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,r.jsx)(f.g,{icon:u.zpE,className:"text-red-500 text-2xl"}),(0,r.jsx)("h2",{className:"text-xl font-semibold text-gray-800",children:"Oops! Something went wrong"})]}),(0,r.jsxs)("div",{className:"mb-6",children:[(0,r.jsx)("p",{className:"text-gray-600 mb-3",children:"We encountered an unexpected error. Here are the details:"}),(0,r.jsx)("div",{className:"bg-red-50 border border-red-200 rounded-lg p-3",children:(0,r.jsx)("code",{className:"text-red-700 text-sm break-all",children:e?e.toString():"Something went wrong"})})]}),(0,r.jsxs)("div",{className:"flex justify-end gap-3",children:[(0,r.jsx)("button",{onClick:()=>{window.location.href="/"},className:"btn-secondary",children:"Go Home"}),(0,r.jsx)("button",{onClick:n,className:"btn-primary",children:"Try Again"})]})]})})};function p(t){let{Component:e,pageProps:n}=t;return(0,r.jsx)(s,{FallbackComponent:d,children:(0,r.jsx)(c.f,{children:(0,r.jsx)(l.R,{children:(0,r.jsx)(e,{...n})})})})}n(3021)},4698:(t,e,n)=>{"use strict";n.d(e,{Ms:()=>g,vU:()=>p});var r=n(4902),a=n(9168),o=n(4856),i=n(5517),s=n(8905);function c(){}var l=f("C",void 0,void 0);function f(t,e,n){return{kind:t,value:e,error:n}}var u=n(9973),d=n(9693),p=function(t){function e(e){var n=t.call(this)||this;return n.isStopped=!1,e?(n.destination=e,(0,o.Uv)(e)&&e.add(n)):n.destination=x,n}return(0,r.C6)(e,t),e.create=function(t,e,n){return new g(t,e,n)},e.prototype.next=function(t){this.isStopped?v(f("N",t,void 0),this):this._next(t)},e.prototype.error=function(t){this.isStopped?v(f("E",void 0,t),this):(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped?v(l,this):(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(o.yU),m=Function.prototype.bind;function h(t,e){return m.call(t,e)}var b=function(){function t(t){this.partialObserver=t}return t.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(t){y(t)}},t.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(t){y(t)}else y(t)},t.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(t){y(t)}},t}(),g=function(t){function e(e,n,r){var o,s,c=t.call(this)||this;return(0,a.T)(e)||!e?o={next:null!=e?e:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:c&&i.$.useDeprecatedNextContext?((s=Object.create(e)).unsubscribe=function(){return c.unsubscribe()},o={next:e.next&&h(e.next,s),error:e.error&&h(e.error,s),complete:e.complete&&h(e.complete,s)}):o=e,c.destination=new b(o),c}return(0,r.C6)(e,t),e}(p);function y(t){i.$.useDeprecatedSynchronousErrorHandling?(0,d.l)(t):(0,s.m)(t)}function v(t,e){var n=i.$.onStoppedNotification;n&&u.f.setTimeout(function(){return n(t,e)})}var x={closed:!0,next:c,error:function(t){throw t},complete:c}},4856:(t,e,n)=>{"use strict";n.d(e,{Kn:()=>c,yU:()=>s,Uv:()=>l});var r=n(4902),a=n(9168),o=(0,n(3414).L)(function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=e}}),i=n(1279),s=function(){var t;function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t,e,n,i,s,c=this._parentage;if(c)if(this._parentage=null,Array.isArray(c))try{for(var l=(0,r.Ju)(c),u=l.next();!u.done;u=l.next())u.value.remove(this)}catch(e){t={error:e}}finally{try{u&&!u.done&&(e=l.return)&&e.call(l)}finally{if(t)throw t.error}}else c.remove(this);var d=this.initialTeardown;if((0,a.T)(d))try{d()}catch(t){s=t instanceof o?t.errors:[t]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var m=(0,r.Ju)(p),h=m.next();!h.done;h=m.next()){var b=h.value;try{f(b)}catch(t){s=null!=s?s:[],t instanceof o?s=(0,r.fX)((0,r.fX)([],(0,r.zs)(s)),(0,r.zs)(t.errors)):s.push(t)}}}catch(t){n={error:t}}finally{try{h&&!h.done&&(i=m.return)&&i.call(m)}finally{if(n)throw n.error}}}if(s)throw new o(s)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)f(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!=(n=this._finalizers)?n:[]).push(t)}},e.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},e.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},e.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&(0,i.o)(e,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&(0,i.o)(n,t),t instanceof e&&t._removeParent(this)},(t=new e).closed=!0,e.EMPTY=t,e}(),c=s.EMPTY;function l(t){return t instanceof s||t&&"closed"in t&&(0,a.T)(t.remove)&&(0,a.T)(t.add)&&(0,a.T)(t.unsubscribe)}function f(t){(0,a.T)(t)?t():t.unsubscribe()}},4902:(t,e,n)=>{"use strict";n.d(e,{AQ:()=>u,C6:()=>a,Ju:()=>s,N3:()=>f,YH:()=>i,fX:()=>l,sH:()=>o,xN:()=>d,zs:()=>c});var r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function a(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function o(t,e,n,r){return new(n||(n=Promise))(function(a,o){function i(t){try{c(r.next(t))}catch(t){o(t)}}function s(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?a(t.value):((e=t.value)instanceof n?e:new n(function(t){t(e)})).then(i,s)}c((r=r.apply(t,e||[])).next())})}function i(t,e){var n,r,a,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=s(0),i.throw=s(1),i.return=s(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(c){var l=[s,c];if(n)throw TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(o=0)),o;)try{if(n=1,r&&(a=2&l[0]?r.return:l[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,l[1])).done)return a;switch(r=0,a&&(l=[2&l[0],a.value]),l[0]){case 0:case 1:a=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,r=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(!(a=(a=o.trys).length>0&&a[a.length-1])&&(6===l[0]||2===l[0])){o=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function c(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,a,o=n.call(t),i=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)i.push(r.value)}catch(t){a={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(a)throw a.error}}return i}function l(t,e,n){if(n||2==arguments.length)for(var r,a=0,o=e.length;a1||s(t,e)})},e&&(r[t]=e(r[t])))}function s(t,e){try{var n;(n=a[t](e)).value instanceof f?Promise.resolve(n.value.v).then(c,l):u(o[0][2],n)}catch(t){u(o[0][3],t)}}function c(t){s("next",t)}function l(t){s("throw",t)}function u(t,e){t(e),o.shift(),o.length&&s(o[0][0],o[0][1])}}function d(t){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=s(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise(function(r,a){var o,i,s;o=r,i=a,s=(e=t[n](e)).done,Promise.resolve(e.value).then(function(t){o({value:t,done:s})},i)})}}}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError},5062:(t,e,n)=>{t.exports=n(9706)()},5517:(t,e,n)=>{"use strict";n.d(e,{$:()=>r});var r={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},6463:(t,e,n)=>{"use strict";n.d(e,{$1:()=>s,DS:()=>i,hX:()=>o});let r="http",a="".concat("140.130.34.65",":").concat(59182),o="".concat(r,"://").concat(a),i={bootTime:"".concat(r,"://").concat(a,"/misc/boot_time"),access_control:{ipv4:{white_list:"".concat(r,"://").concat(a,"/control/access_control/ipv4/source/white_list"),black_list:"".concat(r,"://").concat(a,"/control/access_control/ipv4/source/black_list")},ipv6:{white_list:"".concat(r,"://").concat(a,"/control/access_control/ipv6/source/white_list"),black_list:"".concat(r,"://").concat(a,"/control/access_control/ipv6/source/black_list")}}},s={ipv4FlowStats:(t,e,n)=>"".concat("ws","://").concat(a,"/statistics/websocket/ipv4/").concat(t,"/").concat(e,"/").concat(n),ipv6FlowStats:(t,e,n)=>"".concat("ws","://").concat(a,"/statistics/websocket/ipv6/").concat(t,"/").concat(e,"/").concat(n),systemHealth:"".concat("ws","://").concat(a,"/health/websocket/system_health"),aiAlert:"".concat("ws","://").concat(a,"/ai/websocket/alert")}},7049:(t,e,n)=>{"use strict";n.d(e,{s:()=>r});var r="function"==typeof Symbol&&Symbol.observable||"@@observable"},8905:(t,e,n)=>{"use strict";n.d(e,{m:()=>o});var r=n(5517),a=n(9973);function o(t){a.f.setTimeout(function(){var e=r.$.onUnhandledError;if(e)e(t);else throw t})}},9168:(t,e,n)=>{"use strict";function r(t){return"function"==typeof t}n.d(e,{T:()=>r})},9693:(t,e,n)=>{"use strict";n.d(e,{Y:()=>o,l:()=>i});var r=n(5517),a=null;function o(t){if(r.$.useDeprecatedSynchronousErrorHandling){var e=!a;if(e&&(a={errorThrown:!1,error:null}),t(),e){var n=a,o=n.errorThrown,i=n.error;if(a=null,o)throw i}}else t()}function i(t){r.$.useDeprecatedSynchronousErrorHandling&&a&&(a.errorThrown=!0,a.error=t)}},9706:(t,e,n)=>{"use strict";var r=n(3717);function a(){}function o(){}o.resetWarningCache=a,t.exports=function(){function t(t,e,n,a,o,i){if(i!==r){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function e(){return t}t.isRequired=t;var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:o,resetWarningCache:a};return n.PropTypes=n,n}},9973:(t,e,n)=>{"use strict";n.d(e,{f:()=>a});var r=n(4902),a={setTimeout:function(t,e){for(var n=[],o=2;o{var e=e=>t(t.s=e);t.O(0,[593,792],()=>(e(92),e(8253))),_N_E=t.O()}]); \ No newline at end of file diff --git a/net-guardia/static/web/_next/static/chunks/pages/_error-41608b100cc61246.js b/net-guardia/static/web/_next/static/chunks/pages/_error-41608b100cc61246.js new file mode 100644 index 0000000..675576f --- /dev/null +++ b/net-guardia/static/web/_next/static/chunks/pages/_error-41608b100cc61246.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[731],{2164:(_,n,e)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_error",function(){return e(4100)}])}},_=>{var n=n=>_(_.s=n);_.O(0,[636,593,792],()=>n(2164)),_N_E=_.O()}]); \ No newline at end of file diff --git a/net-guardia/static/web/_next/static/chunks/pages/access-control-02dfbb4c16554211.js b/net-guardia/static/web/_next/static/chunks/pages/access-control-02dfbb4c16554211.js new file mode 100644 index 0000000..8c960af --- /dev/null +++ b/net-guardia/static/web/_next/static/chunks/pages/access-control-02dfbb4c16554211.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[474],{6608:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/access-control",function(){return t(8132)}])},8132:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>j});var l=t(7876),a=t(4232),r=t(7328),c=t.n(r),i=t(6848),n=t(7212),o=t(1772),d=t(1041),x=t(1002),m=t(2268),u=t(6463),b=t(5096);let h=e=>{let{message:s,type:t,onClose:r}=e;return(0,a.useEffect)(()=>{let e=setTimeout(()=>{r()},4e3);return()=>clearTimeout(e)},[r]),(0,l.jsx)(i.P.div,{initial:{opacity:0,y:-50,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-50,scale:.95},className:"fixed top-4 right-4 z-50 px-4 py-3 border rounded-lg shadow-lg max-w-md ".concat({success:"bg-green-100 border-green-400 text-green-700",error:"bg-red-100 border-red-400 text-red-700",warning:"bg-yellow-100 border-yellow-400 text-yellow-700",info:"bg-blue-100 border-blue-400 text-blue-700"}[t]),children:(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("span",{className:"text-sm font-medium",children:s}),(0,l.jsx)("button",{onClick:r,className:"ml-3 text-xl font-bold hover:opacity-70 transition-opacity",children:"\xd7"})]})})},g=e=>{let{title:s,children:t,onClose:a,onSubmit:r,submitLabel:c="Submit",submitDisabled:x=!1}=e;return(0,l.jsx)(n.N,{children:(0,l.jsx)(i.P.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50",onClick:a,children:(0,l.jsxs)(i.P.div,{initial:{opacity:0,scale:.95,y:20},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:20},className:"bg-white rounded-lg shadow-xl max-w-md w-full mx-4 max-h-[90vh] overflow-y-auto",onClick:e=>e.stopPropagation(),children:[(0,l.jsx)("div",{className:"px-6 py-4 border-b border-gray-200",children:(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h2",{className:"text-xl font-semibold text-gray-900",children:s}),(0,l.jsx)("button",{onClick:a,className:"text-gray-400 hover:text-gray-600 transition-colors",children:(0,l.jsx)(o.g,{icon:d.GRI})})]})}),(0,l.jsx)("div",{className:"px-6 py-4",children:t}),(0,l.jsxs)("div",{className:"px-6 py-4 border-t border-gray-200 flex justify-end space-x-3",children:[(0,l.jsx)("button",{onClick:a,className:"px-4 py-2 text-gray-700 bg-gray-100 rounded-lg hover:bg-gray-200 transition-colors",children:"取消"}),r&&(0,l.jsx)("button",{onClick:r,disabled:x,className:"px-4 py-2 rounded-lg transition-colors ".concat(x?"bg-gray-300 text-gray-500 cursor-not-allowed":"bg-blue-600 text-white hover:bg-blue-700"),children:c})]})]})})})},p=e=>{let{isActive:s,onClick:t,children:a,className:r=""}=e;return(0,l.jsx)("button",{className:"px-4 py-2 rounded-lg transition-all duration-200 font-medium ".concat(r," ").concat(s?"bg-blue-600 text-white shadow-lg":"bg-white text-gray-700 border border-gray-300 hover:bg-gray-50"),onClick:t,children:a})},y=e=>{let{title:s,value:t,icon:a,color:r}=e;return(0,l.jsx)(i.P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"bg-white rounded-lg shadow-md p-6",children:(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("p",{className:"text-sm font-medium text-gray-600 mb-1",children:s}),(0,l.jsx)("p",{className:"text-2xl font-bold text-gray-900",children:t.toLocaleString()})]}),(0,l.jsx)("div",{className:"".concat(r," p-3 rounded-lg"),children:(0,l.jsx)(o.g,{icon:a,className:"text-white text-xl"})})]})})},j=()=>{let{currentData:e,filteredData:s,isLoading:t,setFilteredData:r,switchTo:j,refreshData:f,getCacheStatus:N}=(0,a.useContext)(x.x),[v,w]=(0,a.useState)(!1),[k,C]=(0,a.useState)("black_list"),[P,_]=(0,a.useState)(""),[I,S]=(0,a.useState)(!1),[E,A]=(0,a.useState)(""),[D,L]=(0,a.useState)(""),[z,M]=(0,a.useState)(!1),[R,F]=(0,a.useState)(!1),[G,T]=(0,a.useState)(null),[$,W]=(0,a.useState)(null),[B,O]=(0,a.useState)(!1),Q=(0,a.useCallback)(e=>{e!==v&&(w(e),j(e,k))},[v,k,j]),X=(0,a.useCallback)(e=>{e!==k&&(C(e),j(v,e))},[v,k,j]),q=(0,a.useCallback)(()=>{S(!0),A(""),L(""),M(!1)},[]),V=(0,a.useCallback)(()=>{S(!1),A(""),L(""),M(!1)},[]),H=(0,a.useCallback)(function(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"success";W({message:e,type:s})},[]),J=(0,a.useCallback)(()=>{W(null)},[]),K=(0,a.useCallback)(async()=>{try{await f(v,k),H("資料已更新","success")}catch(e){H("更新失敗","error")}},[v,k,f,H]);(0,a.useEffect)(()=>{j(v,k)},[]),(0,a.useEffect)(()=>{if(!P.trim())return void r(e);let s=P.toLowerCase();r(e.filter(e=>{let{ip:t}=e;return t.toLowerCase().includes(s)}))},[P,e,r]);let U=(0,a.useMemo)(()=>s.flatMap(e=>{let{ip:s,ports:t}=e;return t.map(e=>({ip:s,port:e}))}),[s]),Y=(0,a.useMemo)(()=>{let e=new Set(s.map(e=>e.ip)).size,t=U.length,l=U.filter(e=>"0"===e.port||0===e.port).length;return{uniqueIPs:e,totalEntries:t,allPortsEntries:l,specificPortEntries:t-l}},[s,U]),Z=(0,a.useCallback)((e,s)=>s?/^([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}$|^::1$|^::$/.test(e)||e.includes("::"):!!/^(\d{1,3}\.){3}\d{1,3}$/.test(e)&&e.split(".").every(e=>{let s=parseInt(e,10);return s>=0&&s<=255}),[]),ee=(0,a.useCallback)(e=>{if(!e.trim())return!1;let s=parseInt(e,10);return!isNaN(s)&&s>=1&&s<=65535},[]),es=(0,a.useCallback)(async()=>{if(!E.trim())return void H("請輸入有效的 IP 地址","error");if(!Z(E.trim(),v))return void H("請輸入有效的 ".concat(v?"IPv6":"IPv4"," 地址"),"error");if(!z&&!ee(D))return void H("請輸入有效的端口號 (1-65535)","error");let e=z?"0":D,s=v?u.DS.access_control.ipv6[k]:u.DS.access_control.ipv4[k];O(!0);try{await new Promise((t,l)=>{(0,m.sS)(s,"".concat(E.trim(),":").concat(e),()=>{H("成功添加: ".concat(E.trim(),":").concat(z?"*":e),"success"),S(!1),A(""),L(""),M(!1),f(v,k),t()},e=>{H("添加失敗: ".concat(e.message),"error"),l(e)})})}catch(e){console.error("Add item error:",e)}finally{O(!1)}},[E,D,z,v,k,f,H,Z,ee]),et=(0,a.useCallback)((e,s)=>{T({ip:e,port:s}),F(!0)},[]),el=(0,a.useCallback)(()=>{F(!1),T(null)},[]),ea=(0,a.useCallback)(async()=>{if(!G)return;let{ip:e,port:s}=G,t=v?"[".concat(e,"]"):e,l=v?u.DS.access_control.ipv6[k]:u.DS.access_control.ipv4[k];O(!0);try{await new Promise((e,a)=>{(0,m.Wv)(l,"".concat(t,":").concat(s),()=>{H("成功刪除: ".concat(t,":").concat("0"===s||0===s?"*":s),"success"),f(v,k),F(!1),T(null),e()},e=>{H("刪除失敗: ".concat(e.message),"error"),F(!1),T(null),a(e)})})}catch(e){console.error("Delete item error:",e)}finally{O(!1)}},[G,v,k,f,H]),er=(0,a.useCallback)(e=>{_(e.target.value)},[]),ec=(0,a.useCallback)(e=>{M(e.target.checked),e.target.checked&&L("")},[]);return N(),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(c(),{children:[(0,l.jsx)("title",{children:"存取控制 - NetGuardia"}),(0,l.jsx)("meta",{name:"description",content:"NetGuardia 存取控制管理 - IP 白名單與黑名單"})]}),(0,l.jsxs)(b.A,{children:[(0,l.jsx)(n.N,{children:$&&(0,l.jsx)(h,{message:$.message,type:$.type,onClose:J})}),(0,l.jsx)(i.P.div,{initial:{opacity:0,y:-20},animate:{opacity:1,y:0},className:"mb-8",children:(0,l.jsx)("div",{className:"flex items-center justify-between",children:(0,l.jsxs)("div",{children:[(0,l.jsxs)("h1",{className:"text-3xl font-bold text-gray-900 mb-2 flex items-center",children:[(0,l.jsx)(o.g,{icon:d.imB,className:"mr-3 text-blue-600"}),"存取控制管理"]}),(0,l.jsx)("p",{className:"text-gray-600",children:"管理 IPv4 和 IPv6 網路存取白名單與黑名單"})]})})}),(0,l.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8",children:[(0,l.jsx)(y,{title:"唯一 IP 數",value:Y.uniqueIPs,icon:d.Bwz,color:"bg-blue-500"}),(0,l.jsx)(y,{title:"總規則數",value:Y.totalEntries,icon:d.eGi,color:"bg-green-500"}),(0,l.jsx)(y,{title:"全端口規則",value:Y.allPortsEntries,icon:d.mRM,color:"bg-purple-500"}),(0,l.jsx)(y,{title:"特定端口規則",value:Y.specificPortEntries,icon:d.e68,color:"bg-orange-500"})]}),(0,l.jsx)(i.P.div,{initial:{opacity:0,y:-20},animate:{opacity:1,y:0},className:"bg-white rounded-lg shadow-md p-6 mb-6",children:(0,l.jsxs)("div",{className:"flex flex-wrap items-center gap-4",children:[(0,l.jsx)("div",{className:"flex-1 min-w-64",children:(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(o.g,{icon:d.MjD,className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400"}),(0,l.jsx)("input",{type:"text",value:P,onChange:er,placeholder:"搜索 IP 地址...",className:"w-full pl-10 pr-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:border-blue-500 focus:ring-1 focus:ring-blue-500"})]})}),(0,l.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,l.jsx)("span",{className:"text-sm font-medium text-gray-600",children:"IP 版本:"}),(0,l.jsxs)("div",{className:"flex space-x-1",children:[(0,l.jsx)(p,{isActive:!v,onClick:()=>Q(!1),children:"IPv4"}),(0,l.jsx)(p,{isActive:v,onClick:()=>Q(!0),children:"IPv6"})]})]}),(0,l.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,l.jsx)("span",{className:"text-sm font-medium text-gray-600",children:"列表類型:"}),(0,l.jsxs)("div",{className:"flex space-x-1",children:[(0,l.jsxs)(p,{isActive:"black_list"===k,onClick:()=>X("black_list"),children:[(0,l.jsx)(o.g,{icon:d.mRM,className:"mr-1"}),"黑名單"]}),(0,l.jsxs)(p,{isActive:"white_list"===k,onClick:()=>X("white_list"),children:[(0,l.jsx)(o.g,{icon:d.e68,className:"mr-1"}),"白名單"]})]})]}),(0,l.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,l.jsxs)("button",{className:"px-3 py-2 bg-gray-100 text-gray-700 rounded-lg hover:bg-gray-200 transition-colors flex items-center space-x-2",onClick:K,title:"更新資料",children:[(0,l.jsx)(o.g,{icon:d.Vpu}),(0,l.jsx)("span",{children:"更新"})]}),(0,l.jsxs)("button",{className:"px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors flex items-center space-x-2",onClick:q,children:[(0,l.jsx)(o.g,{icon:d.QLR}),(0,l.jsx)("span",{children:"添加規則"})]})]})]})}),(0,l.jsxs)(i.P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"bg-white rounded-lg shadow-md overflow-hidden",children:[(0,l.jsx)("div",{className:"px-6 py-4 border-b border-gray-200",children:(0,l.jsxs)("div",{className:"flex justify-between items-center",children:[(0,l.jsxs)("h2",{className:"text-xl font-semibold text-gray-900 flex items-center",children:[v?"IPv6":"IPv4"," ","black_list"===k?"黑名單":"白名單",t&&(0,l.jsx)("div",{className:"ml-3",children:(0,l.jsx)("div",{className:"animate-spin rounded-full h-4 w-4 border-b-2 border-blue-600"})})]}),(0,l.jsxs)("span",{className:"text-sm text-gray-500",children:[U.length," 條規則"]})]})}),0===U.length?(0,l.jsxs)("div",{className:"p-12 text-center",children:[(0,l.jsx)(o.g,{icon:d.iW_,className:"text-6xl text-gray-300 mb-4"}),(0,l.jsx)("h3",{className:"text-xl font-semibold text-gray-700 mb-2",children:P?"沒有找到匹配的結果":"暫無資料"}),(0,l.jsx)("p",{className:"text-gray-500 mb-4",children:P?"請嘗試調整搜索條件":"點擊上方按鈕添加第一條規則"}),!P&&(0,l.jsxs)("button",{className:"px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors",onClick:q,children:[(0,l.jsx)(o.g,{icon:d.QLR,className:"mr-2"}),"添加規則"]})]}):(0,l.jsx)("div",{className:"overflow-x-auto",children:(0,l.jsxs)("table",{className:"min-w-full divide-y divide-gray-200",children:[(0,l.jsx)("thead",{className:"bg-gray-50",children:(0,l.jsxs)("tr",{children:[(0,l.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"IP 地址"}),(0,l.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"端口"}),(0,l.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"操作"})]})}),(0,l.jsx)("tbody",{className:"bg-white divide-y divide-gray-200",children:U.map((e,s)=>{let{ip:t,port:a}=e;return(0,l.jsxs)("tr",{className:"hover:bg-gray-50 transition-colors",children:[(0,l.jsx)("td",{className:"px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900",children:t}),(0,l.jsx)("td",{className:"px-6 py-4 whitespace-nowrap text-sm text-gray-900",children:(0,l.jsx)("span",{className:"inline-flex px-2 py-1 text-xs font-medium rounded-full ".concat("0"===a||0===a?"bg-red-100 text-red-800":"bg-blue-100 text-blue-800"),children:"0"===a||0===a?"所有端口 (*)":a})}),(0,l.jsx)("td",{className:"px-6 py-4 whitespace-nowrap text-sm font-medium",children:(0,l.jsx)("button",{className:"text-red-600 hover:text-red-800 transition-colors",onClick:()=>et(t,a),title:"刪除規則",children:(0,l.jsx)(o.g,{icon:d.yLS})})})]},"".concat(t,"-").concat(a,"-").concat(s))})})]})})]}),I&&(0,l.jsx)(g,{title:"添加 ".concat(v?"IPv6":"IPv4"," ").concat("black_list"===k?"黑名單":"白名單","規則"),onClose:V,onSubmit:es,submitLabel:"添加",submitDisabled:B,children:(0,l.jsxs)("div",{className:"space-y-4",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"IP 地址"}),(0,l.jsx)("input",{type:"text",value:E,onChange:e=>A(e.target.value),placeholder:v?"2001:db8::":"192.168.1.1",className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:border-blue-500 focus:ring-1 focus:ring-blue-500"})]}),(0,l.jsx)("div",{children:(0,l.jsxs)("div",{className:"flex items-center space-x-2 mb-2",children:[(0,l.jsx)("input",{id:"block-all-ports",type:"checkbox",checked:z,onChange:ec,className:"h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded"}),(0,l.jsx)("label",{htmlFor:"block-all-ports",className:"text-sm font-medium text-gray-700",children:"阻擋所有端口"})]})}),(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"端口"}),(0,l.jsx)("input",{type:"text",value:z?"":D,onChange:e=>L(e.target.value),placeholder:"80",disabled:z,className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:border-blue-500 focus:ring-1 focus:ring-blue-500 ".concat(z?"bg-gray-100 text-gray-500":"")}),z&&(0,l.jsx)("p",{className:"mt-1 text-sm text-gray-500",children:"將阻擋此 IP 的所有端口"})]}),(0,l.jsx)("div",{className:"bg-blue-50 border border-blue-200 rounded-lg p-3",children:(0,l.jsxs)("div",{className:"flex items-start",children:[(0,l.jsx)(o.g,{icon:d.iW_,className:"text-blue-400 mt-0.5 mr-2"}),(0,l.jsxs)("div",{className:"text-sm text-blue-700",children:[(0,l.jsxs)("p",{className:"font-medium mb-1",children:["將添加到 ","black_list"===k?"黑名單":"白名單"]}),(0,l.jsxs)("p",{children:["black_list"===k?"黑名單中的 IP 將被拒絕存取":"只有白名單中的 IP 可以存取",z&&",所有端口都將受到影響"]})]})]})})]})}),R&&(0,l.jsx)(g,{title:"確認刪除",onClose:el,onSubmit:ea,submitLabel:"刪除",submitDisabled:B,children:(0,l.jsxs)("div",{className:"space-y-4",children:[(0,l.jsxs)("div",{className:"flex items-center text-yellow-600 mb-4",children:[(0,l.jsx)(o.g,{icon:d.zpE,className:"mr-2"}),(0,l.jsx)("span",{className:"font-medium",children:"警告"})]}),(0,l.jsx)("p",{className:"text-gray-700",children:"您確定要刪除此規則嗎?"}),G&&(0,l.jsx)("div",{className:"bg-gray-50 border border-gray-200 rounded-lg p-4",children:(0,l.jsxs)("div",{className:"space-y-2",children:[(0,l.jsxs)("div",{className:"flex justify-between",children:[(0,l.jsx)("span",{className:"font-medium text-gray-700",children:"IP 地址:"}),(0,l.jsx)("span",{className:"text-gray-900",children:G.ip})]}),(0,l.jsxs)("div",{className:"flex justify-between",children:[(0,l.jsx)("span",{className:"font-medium text-gray-700",children:"端口:"}),(0,l.jsx)("span",{className:"text-gray-900",children:"0"===G.port||0===G.port?"所有端口 (*)":G.port})]}),(0,l.jsxs)("div",{className:"flex justify-between",children:[(0,l.jsx)("span",{className:"font-medium text-gray-700",children:"列表類型:"}),(0,l.jsx)("span",{className:"text-gray-900",children:"black_list"===k?"黑名單":"白名單"})]})]})}),(0,l.jsx)("div",{className:"bg-red-50 border border-red-200 rounded-lg p-3",children:(0,l.jsxs)("div",{className:"flex items-start",children:[(0,l.jsx)(o.g,{icon:d.zpE,className:"text-red-400 mt-0.5 mr-2"}),(0,l.jsx)("p",{className:"text-sm text-red-700",children:"此操作無法撤銷。刪除後,此規則將立即失效。"})]})})]})})]})]})}}},e=>{var s=s=>e(e.s=s);e.O(0,[182,597,636,593,792],()=>s(6608)),_N_E=e.O()}]); \ No newline at end of file diff --git a/net-guardia/static/web/_next/static/chunks/pages/dashboard-79264065de788f0d.js b/net-guardia/static/web/_next/static/chunks/pages/dashboard-79264065de788f0d.js new file mode 100644 index 0000000..c452b0d --- /dev/null +++ b/net-guardia/static/web/_next/static/chunks/pages/dashboard-79264065de788f0d.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[724],{835:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var s=r(7876);r(4232);let n=()=>(0,s.jsx)("div",{className:"flex justify-center items-center",children:(0,s.jsx)("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-blue-600"})})},3698:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>C});var s=r(7876),n=r(4232),a=r(7328),i=r.n(a),o=r(6848),c=r(1772),l=r(1041),u=r(4339),d=r(5096),x=r(835),m=r(8488),g=r(8517),h=r(4986),p=r(4486),f=r(6335);let v=[{label:"即時",value:0},{label:"0.5秒",value:500},{label:"1秒",value:1e3},{label:"2秒",value:2e3},{label:"3秒",value:3e3},{label:"5秒",value:5e3},{label:"10秒",value:1e4}],b=e=>{let t=["B","KB","MB","GB","TB"];if(e<1024)return{value:e,unit:"B"};let r=0,s=e;for(;s>=1024&&r{let{value:t,unit:r}=b(e);return"".concat(t," ").concat(r)},y=e=>{if(0===e.length)return{unit:"B",divisor:1};let t=Math.max(...e.map(e=>e.value));return t<10240?{unit:"B",divisor:1}:t<0xa00000?{unit:"KB",divisor:1024}:t<0x280000000?{unit:"MB",divisor:1048576}:{unit:"GB",divisor:0x40000000}},w=e=>{try{if("object"==typeof e&&null!==e)return e;return JSON.parse(e)}catch(e){return console.error("Error parsing flow data:",e),{}}},N=e=>{let{updateInterval:t,setUpdateInterval:r,isPaused:n,setIsPaused:a,lastUpdateTime:i,connectionStatus:o}=e;return(0,s.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,s.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,s.jsx)(c.g,{icon:l.a$,className:"text-gray-500"}),(0,s.jsx)("label",{className:"text-sm text-gray-600",children:"更新間隔:"}),(0,s.jsx)("select",{value:t,onChange:e=>r(Number(e.target.value)),className:"text-sm border border-gray-300 rounded px-2 py-1 bg-white focus:outline-none focus:border-blue-500",children:v.map(e=>(0,s.jsx)("option",{value:e.value,children:e.label},e.value))})]}),(0,s.jsxs)("button",{onClick:()=>a(!n),className:"px-3 py-1 rounded-md text-sm font-medium transition-colors flex items-center space-x-1 ".concat(n?"bg-green-100 text-green-700 hover:bg-green-200":"bg-orange-100 text-orange-700 hover:bg-orange-200"),children:[(0,s.jsx)(c.g,{icon:n?l.ijD:l.G1Y,className:"text-xs"}),(0,s.jsx)("span",{children:n?"恢復":"暫停"})]}),(0,s.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,s.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,s.jsx)("div",{className:"w-3 h-3 rounded-full ".concat("connected"!==o||n?"connected"===o&&n?"bg-yellow-500":"connecting"===o?"bg-yellow-500 animate-pulse":"bg-red-500":"bg-green-500 animate-pulse")}),(0,s.jsx)("span",{className:"text-sm font-medium ".concat("connected"!==o||n?"connected"===o&&n||"connecting"===o?"text-yellow-600":"text-red-600":"text-green-600"),children:n?"已暫停":"connected"===o?"每 ".concat(0===t?"即時":t/1e3+"s"," 更新"):"connecting"===o?"連線中...":"連線失敗"})]}),i&&!n&&(0,s.jsxs)("div",{className:"text-xs text-gray-500",children:["最後更新: ",i.toLocaleTimeString()]})]})]})},S=e=>{let{data:t,title:r,type:a,isPaused:i}=e,o=(0,n.useRef)(null),c=(0,n.useRef)(),l=(0,n.useRef)();return(0,n.useEffect)(()=>{if(o.current){c.current=f.Ts(o.current),l.current=new ResizeObserver(e=>{requestAnimationFrame(()=>{c.current&&!c.current.isDisposed()&&c.current.resize()})}),l.current.observe(o.current);let e=()=>{requestAnimationFrame(()=>{c.current&&!c.current.isDisposed()&&c.current.resize()})};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e),l.current&&l.current.disconnect(),c.current&&c.current.dispose()}}},[]),(0,n.useEffect)(()=>{if(c.current&&t.ingressSource.length>0&&t.egressSource.length>0){if(i)return;let e=e=>e.every(e=>e&&"number"==typeof e.value&&!isNaN(e.value)&&e.time);if(!e(t.ingressSource)||!e(t.egressSource))return void console.warn("Invalid chart data detected for ".concat(a,", skipping update"));let s="ipv4"===a?["#3B82F6","#EF4444"]:["#10B981","#F59E0B"],n=t.ingressSource.map(e=>e.time),o=[...t.ingressSource,...t.egressSource],{unit:l,divisor:u}=y(o),d=t.ingressSource.map(e=>"number"!=typeof e.value||isNaN(e.value)?0:Math.max(0,e.value/u)),x=t.egressSource.map(e=>"number"!=typeof e.value||isNaN(e.value)?0:Math.max(0,e.value/u)),m=Math.max(...o.map(e=>e.value));console.log("".concat(a," chart unit selection:"),{maxBytes:m,maxFormatted:j(m),selectedUnit:l,divisor:u,sampleValues:{ingress:d.slice(-3).map(e=>e.toFixed(3)),egress:x.slice(-3).map(e=>e.toFixed(3))}}),((e,t)=>{let r=[];for(let e=0;e"),r=0;return e.forEach(e=>{let s="number"==typeof e.value?e.value:0;t+="".concat(e.seriesName,": ").concat(s.toFixed(2)," ").concat(l,"
"),r+=s}),t+="總流量: ".concat(r.toFixed(2)," ").concat(l,"")}},legend:{data:["".concat(a.toUpperCase()," 來源流量"),"".concat(a.toUpperCase()," 目標流量")],top:30,textStyle:{color:"#6B7280"}},grid:{left:"3%",right:"4%",bottom:"3%",top:"60px",containLabel:!0},xAxis:{type:"category",boundaryGap:!1,data:n,axisLabel:{color:"#6B7280",rotate:45,interval:Math.max(1,Math.floor(n.length/6))},axisLine:{lineStyle:{color:"#E5E7EB"}}},yAxis:{type:"value",name:"流量 (".concat(l,")"),nameTextStyle:{color:"#6B7280"},axisLabel:{color:"#6B7280",formatter:"{value} ".concat(l)},axisLine:{lineStyle:{color:"#E5E7EB"}},splitLine:{lineStyle:{color:"#F3F4F6"}},min:0},series:[{name:"".concat(a.toUpperCase()," 來源流量"),type:"line",stack:"Total",smooth:!1,symbol:"none",lineStyle:{width:0},areaStyle:{color:new f.fA.W4(0,0,0,1,[{offset:0,color:s[0]+"CC"},{offset:1,color:s[0]+"88"}])},data:d.map((e,t)=>({name:"point_".concat(t),value:e})),emphasis:{focus:"series"},animation:!1},{name:"".concat(a.toUpperCase()," 目標流量"),type:"line",stack:"Total",smooth:!1,symbol:"none",lineStyle:{width:0},areaStyle:{color:new f.fA.W4(0,0,0,1,[{offset:0,color:s[1]+"CC"},{offset:1,color:s[1]+"88"}])},data:x.map((e,t)=>({name:"point_".concat(t),value:e})),emphasis:{focus:"series"},animation:!1}]};c.current.setOption(g,!1,!0)}},[t,r,a,i]),(0,n.useEffect)(()=>{if(c.current&&t.ingressSource.length>0){let e=setTimeout(()=>{c.current&&!c.current.isDisposed()&&c.current.resize()},100);return()=>clearTimeout(e)}},[t]),(0,s.jsx)("div",{ref:o,style:{width:"100%",height:"320px"}})},C=()=>{let{getIPv4FlowStream:e,getIPv6FlowStream:t}=(0,n.useContext)(u.v),[r,a]=(0,n.useState)(!0),[f,v]=(0,n.useState)("connecting"),[b,y]=(0,n.useState)({}),[C,E]=(0,n.useState)(2e3),[k,B]=(0,n.useState)(!1),[P,D]=(0,n.useState)(null),[F,I]=(0,n.useState)("1min"),_=(0,n.useRef)({}),G=(0,n.useRef)(0),T=(0,n.useRef)(C),z=(0,n.useRef)(k);(0,n.useEffect)(()=>{T.current=C},[C]),(0,n.useEffect)(()=>{z.current=k},[k]);let[A,M]=(0,n.useState)({ingressSource:[],egressSource:[]}),[O,U]=(0,n.useState)({ingressSource:[],egressSource:[]}),[W,L]=(0,n.useState)({ipv4:{ingressSource:0,egressSource:0},ipv6:{ingressSource:0,egressSource:0}}),R=(0,n.useCallback)((e,t,r)=>{try{var s;let n="".concat(t,"_").concat(r),a=(null==(s=_.current[n])?void 0:s[e])||{},i=0;for(let e in a){let t=a[e];t&&"number"==typeof t.bytes&&t.bytes>=0&&(i+=t.bytes)}return Math.max(0,i)}catch(s){return console.error("Error calculating throughput for ".concat(e," ").concat(t," ").concat(r,":"),s),0}},[]),K=(0,n.useCallback)(()=>{if(z.current)return;let e=R("ipv4","ingress","source"),t=R("ipv4","egress","source"),r=R("ipv6","ingress","source"),s=R("ipv6","egress","source");L({ipv4:{ingressSource:e,egressSource:t},ipv6:{ingressSource:r,egressSource:s}});let n=new Date().toLocaleTimeString("zh-TW",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"}),a=(e,t)=>{let r={time:n,value:Math.max(0,t)};return e.length<16?[...e,r]:[...e.slice(1),r]};M(r=>({ingressSource:a(r.ingressSource,e),egressSource:a(r.egressSource,t)})),U(e=>({ingressSource:a(e.ingressSource,r),egressSource:a(e.egressSource,s)})),D(new Date)},[R]),X=(0,n.useCallback)(e=>{let t=e.filter(e=>null!==e);if(0===t.length)return;let r={};if(t.forEach(e=>{let{key:t,protocol:s,data:n}=e;r[t]||(r[t]={}),r[t][s]=n}),Object.keys(r).length>0){_.current={..._.current,...r},y(e=>{let t={...e};return Object.entries(r).forEach(e=>{let[r,s]=e;t[r]||(t[r]={}),Object.entries(s).forEach(e=>{let[s,n]=e;t[r][s]=n})}),t});let e=Date.now(),t=T.current;!z.current&&(0===t||e-G.current>=t)&&(K(),G.current=e)}},[K]);(0,n.useEffect)(()=>{!k&&Object.keys(_.current).length>0&&(K(),G.current=Date.now())},[k,K]),(0,n.useEffect)(()=>{if(0===C||k)return;let e=setInterval(()=>{let e=Date.now();Object.keys(_.current).length>0&&e-G.current>=C&&!z.current&&(K(),G.current=e)},Math.min(C/4,1e3));return()=>clearInterval(e)},[C,k,K]),(0,n.useEffect)(()=>{if(!e||!t){console.warn("WebSocket streams not available"),v("error"),a(!1);return}return console.log("Initializing WebSocket connections (one-time setup)..."),v("connecting"),()=>{console.log("Component unmounting - cleaning up WebSocket subscriptions")}},[e,t]),(0,n.useEffect)(()=>{if(!e||!t||"error"===f)return;console.log("Fetching data with ".concat(F," time range...")),M({ingressSource:[],egressSource:[]}),U({ingressSource:[],egressSource:[]}),y({}),_.current={};let r=[{protocol:"ipv4",direction:"ingress",flowDirection:"source"},{protocol:"ipv4",direction:"egress",flowDirection:"source"},{protocol:"ipv6",direction:"ingress",flowDirection:"source"},{protocol:"ipv6",direction:"egress",flowDirection:"source"}].map(r=>{let{protocol:s,direction:n,flowDirection:a}=r;return("ipv4"===s?e:t)(n,a,F).pipe((0,g.T)(e=>{let t=w(e);return{key:"".concat(n,"_").concat(a),protocol:s,data:t}}),(0,h.W)(e=>(console.error("Error in ".concat(s," ").concat(n," ").concat(a," stream:"),e),(0,p.of)(null))))}),s=(0,m.z)(r).subscribe({next:e=>{X(e),v("connected"),a(!1)},error:e=>{console.error("WebSocket subscription error:",e),v("error"),a(!1)}});return()=>{console.log("Cleaning up ".concat(F," data subscription")),s.unsubscribe()}},[e,t,F,f,X]);let Y=[{title:"IPv4 來源流量",value:j(W.ipv4.ingressSource),icon:l.Bwz,color:"from-blue-500 to-blue-600",iconColor:"text-blue-600",bgColor:"bg-blue-50"},{title:"IPv4 目標流量",value:j(W.ipv4.egressSource),icon:l.eGi,color:"from-red-500 to-red-600",iconColor:"text-red-600",bgColor:"bg-red-50"},{title:"IPv6 來源流量",value:j(W.ipv6.ingressSource),icon:l.Bwz,color:"from-green-500 to-green-600",iconColor:"text-green-600",bgColor:"bg-green-50"},{title:"IPv6 目標流量",value:j(W.ipv6.egressSource),icon:l.eGi,color:"from-yellow-500 to-yellow-600",iconColor:"text-yellow-600",bgColor:"bg-yellow-50"}];return r?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i(),{children:(0,s.jsx)("title",{children:"Dashboard - NetGuardia"})}),(0,s.jsx)(d.A,{children:(0,s.jsx)("div",{className:"flex items-center justify-center w-full h-full min-h-[calc(100vh-4rem)]",children:(0,s.jsx)("div",{className:"flex flex-col items-center space-y-4",children:(0,s.jsx)(x.A,{})})})})]}):"error"===f?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i(),{children:(0,s.jsx)("title",{children:"Dashboard - NetGuardia"})}),(0,s.jsx)(d.A,{children:(0,s.jsx)("div",{className:"flex items-center justify-center min-h-[60vh]",children:(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)("div",{className:"text-red-500 text-6xl mb-4",children:(0,s.jsx)(c.g,{icon:l.D6w})}),(0,s.jsx)("h2",{className:"text-2xl font-bold text-gray-800 mb-2",children:"連線錯誤"}),(0,s.jsx)("p",{className:"text-gray-600 mb-4",children:"無法建立 WebSocket 連線,請檢查網路狀態"}),(0,s.jsx)("button",{onClick:()=>window.location.reload(),className:"px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors",children:"重新載入"})]})})})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(i(),{children:[(0,s.jsx)("title",{children:"Dashboard - NetGuardia"}),(0,s.jsx)("meta",{name:"description",content:"NetGuardia 網路流量監控儀表板"})]}),(0,s.jsxs)(d.A,{children:[(0,s.jsx)(o.P.div,{initial:{opacity:0,y:-20},animate:{opacity:1,y:0},className:"mb-8",children:(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h1",{className:"text-3xl font-bold text-gray-900 mb-2",children:"網路流量監控"}),(0,s.jsx)("p",{className:"text-gray-600",children:"即時監控 IPv4 和 IPv6 網路流量狀態"})]}),(0,s.jsxs)("div",{className:"flex items-center space-x-6",children:[(0,s.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,s.jsx)(c.g,{icon:l.a$,className:"text-gray-500"}),(0,s.jsx)("label",{className:"text-sm text-gray-600",children:"時間範圍:"}),(0,s.jsxs)("select",{value:F,onChange:e=>I(e.target.value),className:"text-sm border border-gray-300 rounded px-3 py-1 bg-white focus:outline-none focus:border-blue-500",children:[(0,s.jsx)("option",{value:"1min",children:"1 分鐘"}),(0,s.jsx)("option",{value:"10min",children:"10 分鐘"}),(0,s.jsx)("option",{value:"1hour",children:"1 小時"})]})]}),(0,s.jsx)(N,{updateInterval:C,setUpdateInterval:E,isPaused:k,setIsPaused:B,lastUpdateTime:P,connectionStatus:f})]})]})}),(0,s.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8",children:Y.map((e,t)=>(0,s.jsx)(o.P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1*t},className:"bg-white rounded-lg shadow-md p-6 hover:shadow-lg transition-shadow duration-300 ".concat(k?"opacity-75":""),children:(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-sm font-medium text-gray-600 mb-1",children:e.title}),(0,s.jsx)("p",{className:"text-2xl font-bold text-gray-900",children:e.value}),k&&(0,s.jsxs)("p",{className:"text-xs text-yellow-600 mt-1 flex items-center space-x-1",children:[(0,s.jsx)(c.g,{icon:l.G1Y,className:"text-xs"}),(0,s.jsx)("span",{children:"已暫停"})]})]}),(0,s.jsx)("div",{className:"".concat(e.bgColor," p-3 rounded-lg"),children:(0,s.jsx)(c.g,{icon:e.icon,className:"".concat(e.iconColor," text-xl")})})]})},e.title))}),(0,s.jsxs)("div",{className:"grid grid-cols-1 xl:grid-cols-2 gap-8",children:[(0,s.jsxs)(o.P.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:.5},className:"bg-white rounded-lg shadow-md p-6 ".concat(k?"opacity-75":""),children:[(0,s.jsxs)("div",{className:"flex items-center mb-4",children:[(0,s.jsx)(c.g,{icon:l.gK3,className:"text-blue-600 mr-2"}),(0,s.jsx)("h2",{className:"text-xl font-semibold text-gray-900",children:"IPv4 網路使用趨勢"}),k&&(0,s.jsxs)("div",{className:"ml-auto flex items-center space-x-1 text-yellow-600",children:[(0,s.jsx)(c.g,{icon:l.G1Y,className:"text-sm"}),(0,s.jsx)("span",{className:"text-sm",children:"已暫停"})]})]}),(0,s.jsx)(S,{data:A,title:"IPv4 網路流量趨勢",type:"ipv4",isPaused:k})]}),(0,s.jsxs)(o.P.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{delay:.6},className:"bg-white rounded-lg shadow-md p-6 ".concat(k?"opacity-75":""),children:[(0,s.jsxs)("div",{className:"flex items-center mb-4",children:[(0,s.jsx)(c.g,{icon:l.gK3,className:"text-green-600 mr-2"}),(0,s.jsx)("h2",{className:"text-xl font-semibold text-gray-900",children:"IPv6 網路使用趨勢"}),k&&(0,s.jsxs)("div",{className:"ml-auto flex items-center space-x-1 text-yellow-600",children:[(0,s.jsx)(c.g,{icon:l.G1Y,className:"text-sm"}),(0,s.jsx)("span",{className:"text-sm",children:"已暫停"})]})]}),(0,s.jsx)(S,{data:O,title:"IPv6 網路流量趨勢",type:"ipv6",isPaused:k})]})]})]})]})}},5096:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var s=r(7876),n=r(4232),a=r(7328),i=r.n(a),o=r(6463),c=r(8230),l=r.n(c),u=r(9099),d=r(6848),x=r(1772),m=r(1041);let g=[{href:"/",icon:m.v02,label:"Home"},{href:"/dashboard",icon:m.xiI,label:"Dashboard"},{href:"/statistics",icon:m.$Fj,label:"Statistics"},{href:"/access-control",icon:m.imB,label:"Access Control"},{href:"/detection",icon:m.UBk,label:"Detection"}],h=e=>{let{children:t}=e,r=(0,u.useRouter)(),[a,i]=(0,n.useState)(!1),o=e=>"/"===e?"/"===r.pathname:r.pathname.startsWith(e),c={expanded:{x:0,opacity:1},collapsed:{x:-10,opacity:0}};return(0,s.jsxs)("div",{className:"flex min-h-screen bg-gray-100",children:[(0,s.jsxs)(d.P.aside,{className:"fixed top-0 left-0 h-screen bg-gradient-to-br from-slate-800 to-slate-700 text-white flex flex-col shadow-lg z-50 overflow-hidden",initial:"expanded",animate:a?"collapsed":"expanded",variants:{expanded:{width:"240px"},collapsed:{width:"80px"}},transition:{duration:.3,ease:"easeInOut"},children:[(0,s.jsxs)("div",{className:"flex items-center justify-between p-4 border-b border-white/10 min-h-[70px]",children:[!a&&(0,s.jsx)(l(),{href:"/",className:"no-underline text-inherit",children:(0,s.jsx)(d.P.h1,{className:"text-2xl font-bold text-blue-400 m-0 whitespace-nowrap",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},children:"NetGuardia"})}),(0,s.jsx)("button",{onClick:()=>{i(!a)},className:"bg-transparent border-none text-white cursor-pointer p-2 rounded-md flex items-center justify-center w-10 h-10 hover:bg-white/10 transition-colors duration-200",children:(0,s.jsx)(x.g,{icon:m.ckx})})]}),(0,s.jsx)("nav",{className:"flex-1 py-4 flex flex-col gap-2",children:g.map(e=>(0,s.jsxs)(l(),{href:e.href,className:"\n flex items-center no-underline transition-all duration-200 relative mx-2 rounded-lg\n ".concat(a?"px-2 py-2 justify-center h-12 w-12":"px-4 py-3","\n ").concat(o(e.href)?"bg-blue-600 text-white shadow-lg shadow-blue-600/30":"text-slate-300 hover:bg-white/10 hover:text-white","\n "),children:[(0,s.jsx)("div",{className:"flex items-center justify-center flex-shrink-0 w-6 h-6",children:(0,s.jsx)(x.g,{icon:e.icon,className:"text-lg"})}),!a&&(0,s.jsx)(d.P.span,{className:"font-medium whitespace-nowrap overflow-hidden ml-3",variants:c,initial:"expanded",animate:a?"collapsed":"expanded",transition:{duration:.2},children:e.label})]},e.href))})]}),(0,s.jsx)("div",{className:"flex-1 flex flex-col transition-all duration-300 ".concat(a?"ml-20":"ml-60"),children:(0,s.jsx)("section",{className:"flex-1 p-8",children:(0,s.jsx)("div",{className:"max-w-full mx-auto",children:t})})})]})},p=e=>{let{children:t,title:r="NetGuardia",description:n="NetGuardia"}=e,a="".concat(o.hX,"/logo.png");return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(i(),{children:[(0,s.jsx)("title",{children:r}),(0,s.jsx)("meta",{name:"description",content:n}),(0,s.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),(0,s.jsx)("link",{rel:"icon",href:"/favicon.ico"}),(0,s.jsx)("meta",{property:"og:type",content:"website"}),(0,s.jsx)("meta",{property:"og:title",content:r}),(0,s.jsx)("meta",{property:"og:description",content:n}),(0,s.jsx)("meta",{property:"og:url",content:o.hX}),(0,s.jsx)("meta",{property:"og:image",content:a}),(0,s.jsx)("meta",{property:"og:image:width",content:"200"}),(0,s.jsx)("meta",{property:"og:image:height",content:"200"}),(0,s.jsx)("meta",{property:"og:image:alt",content:"NetGuardia"}),(0,s.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,s.jsx)("meta",{name:"twitter:title",content:r}),(0,s.jsx)("meta",{name:"twitter:description",content:n}),(0,s.jsx)("meta",{name:"twitter:image",content:a})]}),(0,s.jsx)(h,{children:t})]})}},7580:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard",function(){return r(3698)}])}},e=>{var t=t=>e(e.s=t);e.O(0,[182,620,335,636,593,792],()=>t(7580)),_N_E=e.O()}]); \ No newline at end of file diff --git a/net-guardia/static/web/_next/static/chunks/pages/detection-58f841797f6fb8cf.js b/net-guardia/static/web/_next/static/chunks/pages/detection-58f841797f6fb8cf.js new file mode 100644 index 0000000..02a392e --- /dev/null +++ b/net-guardia/static/web/_next/static/chunks/pages/detection-58f841797f6fb8cf.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[889],{835:(e,s,t)=>{"use strict";t.d(s,{A:()=>i});var a=t(7876);t(4232);let i=()=>(0,a.jsx)("div",{className:"flex justify-center items-center",children:(0,a.jsx)("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-blue-600"})})},5615:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>_});var a=t(7876),i=t(4232),l=t(7328),r=t.n(l),n=t(6848),c=t(7212),o=t(1772),d=t(1041),x=t(4339),m=t(2268),g=t(6463),h=t(5096),p=t(835);let u=()=>({timestamp:"N/A",message:"Error parsing log data",source_ip:"Unknown",source_port:"Unknown",destination_ip:"Unknown",destination_port:"Unknown",classification:"Unknown",priority:"Unknown",protocol:"Unknown",signature_id:"Unknown"}),b=e=>{let s={};return e.replace(/^\{|\}$/g,"").split(",").forEach(e=>{let t=e.match(/(\\?)(\w+)(\\?):(\\?)([^,]+)/);if(t&&t.length>=6){let e=t[2],a=t[5].trim().replace(/^\\|\\$/g,"").replace(/^"|"$/g,"");s[e]=a}}),s},j=e=>{try{let s,t="string"==typeof e?e:JSON.stringify(e);try{s=JSON.parse(t)}catch(e){if(t.includes("\\"))try{let e=t.replace(/\\/g,"");s=JSON.parse(e)}catch(e){s=b(t)}else s=b(t)}return{timestamp:s.timestamp||"N/A",message:s.message||"No message",source_ip:s.source_ip||"Unknown",source_port:s.source_port||"Unknown",destination_ip:s.destination_ip||"Unknown",destination_port:s.destination_port||"Unknown",classification:s.classification||"Unknown",priority:s.priority||"Unknown",protocol:s.protocol||"Unknown",signature_id:s.signature_id||"Unknown"}}catch(s){return console.error("AI WebSocket 資料解析錯誤:",s,"原始資料:",e),u()}},N=e=>{switch("string"==typeof e?parseInt(e,10):e){case 1:return{color:"#e53e3e",bgColor:"rgba(239, 68, 68, 0.1)",icon:d.zpE,label:"Critical"};case 2:return{color:"#dd6b20",bgColor:"rgba(251, 146, 60, 0.1)",icon:d.zpE,label:"High"};case 3:return{color:"#d69e2e",bgColor:"rgba(251, 191, 36, 0.1)",icon:d.zpE,label:"Medium"};case 4:return{color:"#38a169",bgColor:"rgba(34, 197, 94, 0.1)",icon:d.zpE,label:"Low"};default:return{color:"#718096",bgColor:"rgba(107, 114, 128, 0.1)",icon:d.zpE,label:"Unknown"}}},y=e=>{let{message:s,type:t,onClose:l}=e;return(0,i.useEffect)(()=>{let e=setTimeout(()=>{l()},4e3);return()=>clearTimeout(e)},[l]),(0,a.jsx)(n.P.div,{initial:{opacity:0,y:-50,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-50,scale:.95},className:"fixed top-4 right-4 z-50 px-4 py-3 border rounded-lg shadow-lg max-w-md ".concat({success:"bg-green-100 border-green-400 text-green-700",error:"bg-red-100 border-red-400 text-red-700",warning:"bg-yellow-100 border-yellow-400 text-yellow-700",info:"bg-blue-100 border-blue-400 text-blue-700"}[t]),children:(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)("span",{className:"text-sm font-medium",children:s}),(0,a.jsx)("button",{onClick:l,className:"ml-3 text-xl font-bold hover:opacity-70 transition-opacity",children:"\xd7"})]})})},v=e=>{let{log:s,onClose:t,showNotification:l}=e,r=N(s.priority),x=s.source_ip.includes(":")&&!s.source_ip.includes("."),h=s.destination_ip.includes(":")&&!s.destination_ip.includes("."),p=(0,i.useCallback)(function(e,s,t){let a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=t?x:h,r="black_list",n=i?g.DS.access_control.ipv6[r]:g.DS.access_control.ipv4[r],c=a?"*":s;(0,m.sS)(n,"".concat(i?"[".concat(e,"]"):e,":").concat(a?"0":s),()=>{l("已成功添加到黑名單: ".concat(e,":").concat(c),"success")},e=>{l("添加到黑名單失敗: ".concat(e.message),"error")})},[x,h,l]),u=(0,i.useCallback)(function(e,s,t){let a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=t?x:h,r="white_list",n=i?g.DS.access_control.ipv6[r]:g.DS.access_control.ipv4[r],c=a?"*":s;(0,m.sS)(n,"".concat(i?"[".concat(e,"]"):e,":").concat(a?"0":s),()=>{l("已成功添加到白名單: ".concat(e,":").concat(c),"success")},e=>{l("添加到白名單失敗: ".concat(e.message),"error")})},[x,h,l]);return(0,a.jsx)(c.N,{children:(0,a.jsxs)(n.P.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:20},className:"bg-white rounded-lg shadow-md p-6 max-h-[calc(100vh-2rem)] overflow-y-auto",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,a.jsxs)("h3",{className:"text-xl font-semibold text-gray-900 flex items-center",children:[(0,a.jsx)(o.g,{icon:d.pS3,className:"mr-2 text-blue-600"}),"警報詳情"]}),(0,a.jsx)("button",{onClick:t,className:"text-gray-400 hover:text-gray-600 transition-colors",children:(0,a.jsx)(o.g,{icon:d.GRI})})]}),(0,a.jsxs)("div",{className:"space-y-4 mb-6",children:[(0,a.jsxs)("div",{className:"flex justify-between",children:[(0,a.jsx)("span",{className:"text-sm font-medium text-gray-600",children:"時間戳:"}),(0,a.jsx)("span",{className:"text-sm text-gray-900",children:s.timestamp})]}),(0,a.jsxs)("div",{className:"flex justify-between",children:[(0,a.jsx)("span",{className:"text-sm font-medium text-gray-600",children:"優先級:"}),(0,a.jsxs)("span",{className:"inline-flex px-2 py-1 text-xs font-medium rounded-full",style:{backgroundColor:r.bgColor,color:r.color},children:[(0,a.jsx)(o.g,{icon:r.icon,className:"mr-1"}),r.label," (",s.priority,")"]})]}),(0,a.jsxs)("div",{className:"flex justify-between",children:[(0,a.jsx)("span",{className:"text-sm font-medium text-gray-600",children:"分類:"}),(0,a.jsx)("span",{className:"text-sm text-gray-900",children:s.classification})]}),(0,a.jsxs)("div",{className:"flex justify-between",children:[(0,a.jsx)("span",{className:"text-sm font-medium text-gray-600",children:"協議:"}),(0,a.jsx)("span",{className:"text-sm text-gray-900",children:s.protocol})]}),(0,a.jsxs)("div",{className:"flex justify-between",children:[(0,a.jsx)("span",{className:"text-sm font-medium text-gray-600",children:"簽名ID:"}),(0,a.jsx)("span",{className:"text-sm text-gray-900",children:s.signature_id})]})]}),(0,a.jsxs)("div",{className:"mb-6",children:[(0,a.jsx)("span",{className:"text-sm font-medium text-gray-600",children:"訊息:"}),(0,a.jsx)("div",{className:"mt-1 p-3 bg-gray-50 rounded-lg",children:(0,a.jsx)("p",{className:"text-sm text-gray-900",children:s.message})})]}),(0,a.jsxs)("div",{className:"mb-6",children:[(0,a.jsx)("h4",{className:"text-lg font-medium text-gray-900 mb-3",children:"連接詳情"}),(0,a.jsxs)("div",{className:"flex items-center justify-between bg-gray-50 rounded-lg p-4",children:[(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsx)("div",{className:"text-sm font-medium text-gray-600",children:"來源"}),(0,a.jsx)("div",{className:"text-lg font-semibold text-blue-600",children:s.source_ip}),(0,a.jsxs)("div",{className:"text-sm text-gray-500",children:["Port: ",s.source_port]})]}),(0,a.jsx)(o.g,{icon:d.dmS,className:"text-gray-400"}),(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsx)("div",{className:"text-sm font-medium text-gray-600",children:"目標"}),(0,a.jsx)("div",{className:"text-lg font-semibold text-red-600",children:s.destination_ip}),(0,a.jsxs)("div",{className:"text-sm text-gray-500",children:["Port: ",s.destination_port]})]})]})]}),(0,a.jsxs)("div",{className:"space-y-6",children:[(0,a.jsx)("h4",{className:"text-lg font-medium text-gray-900",children:"IP 管理操作"}),(0,a.jsxs)("div",{className:"bg-blue-50 rounded-lg p-4",children:[(0,a.jsxs)("h5",{className:"font-medium text-gray-900 mb-3",children:["來源 IP: ",s.source_ip]}),(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,a.jsxs)("button",{className:"px-3 py-2 bg-red-600 text-white text-sm rounded-lg hover:bg-red-700 transition-colors",onClick:()=>p(s.source_ip,s.source_port,!0),children:[(0,a.jsx)(o.g,{icon:d.mRM,className:"mr-1"}),"封鎖端口 ",s.source_port]}),(0,a.jsxs)("button",{className:"px-3 py-2 bg-red-700 text-white text-sm rounded-lg hover:bg-red-800 transition-colors",onClick:()=>p(s.source_ip,s.source_port,!0,!0),children:[(0,a.jsx)(o.g,{icon:d.mRM,className:"mr-1"}),"封鎖所有端口"]}),(0,a.jsxs)("button",{className:"px-3 py-2 bg-green-600 text-white text-sm rounded-lg hover:bg-green-700 transition-colors",onClick:()=>u(s.source_ip,s.source_port,!0),children:[(0,a.jsx)(o.g,{icon:d.e68,className:"mr-1"}),"允許端口 ",s.source_port]}),(0,a.jsxs)("button",{className:"px-3 py-2 bg-green-700 text-white text-sm rounded-lg hover:bg-green-800 transition-colors",onClick:()=>u(s.source_ip,s.source_port,!0,!0),children:[(0,a.jsx)(o.g,{icon:d.e68,className:"mr-1"}),"允許所有端口"]})]})]}),(0,a.jsxs)("div",{className:"bg-red-50 rounded-lg p-4",children:[(0,a.jsxs)("h5",{className:"font-medium text-gray-900 mb-3",children:["目標 IP: ",s.destination_ip]}),(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,a.jsxs)("button",{className:"px-3 py-2 bg-red-600 text-white text-sm rounded-lg hover:bg-red-700 transition-colors",onClick:()=>p(s.destination_ip,s.destination_port,!1),children:[(0,a.jsx)(o.g,{icon:d.mRM,className:"mr-1"}),"封鎖端口 ",s.destination_port]}),(0,a.jsxs)("button",{className:"px-3 py-2 bg-red-700 text-white text-sm rounded-lg hover:bg-red-800 transition-colors",onClick:()=>p(s.destination_ip,s.destination_port,!1,!0),children:[(0,a.jsx)(o.g,{icon:d.mRM,className:"mr-1"}),"封鎖所有端口"]}),(0,a.jsxs)("button",{className:"px-3 py-2 bg-green-600 text-white text-sm rounded-lg hover:bg-green-700 transition-colors",onClick:()=>u(s.destination_ip,s.destination_port,!1),children:[(0,a.jsx)(o.g,{icon:d.e68,className:"mr-1"}),"允許端口 ",s.destination_port]}),(0,a.jsxs)("button",{className:"px-3 py-2 bg-green-700 text-white text-sm rounded-lg hover:bg-green-800 transition-colors",onClick:()=>u(s.destination_ip,s.destination_port,!1,!0),children:[(0,a.jsx)(o.g,{icon:d.e68,className:"mr-1"}),"允許所有端口"]})]})]})]})]})})},f=e=>{let{log:s,index:t,onClick:l}=e,r=N(s.priority),c=(0,i.useCallback)(()=>{l(t)},[t,l]);return(0,a.jsx)(n.P.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:.05*t},className:"bg-white border border-gray-200 rounded-lg p-4 cursor-pointer hover:shadow-md transition-shadow duration-200",onClick:c,children:(0,a.jsxs)("div",{className:"flex items-start space-x-4",children:[(0,a.jsx)("div",{className:"flex-shrink-0 w-10 h-10 rounded-full flex items-center justify-center",style:{backgroundColor:r.bgColor},children:(0,a.jsx)(o.g,{icon:r.icon,style:{color:r.color},className:"text-sm"})}),(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,a.jsx)("span",{className:"text-xs text-gray-500",children:s.timestamp}),(0,a.jsx)("span",{className:"text-xs px-2 py-1 bg-blue-100 text-blue-800 rounded-full",children:s.classification})]}),(0,a.jsx)("div",{className:"text-sm text-gray-900 mb-2 line-clamp-2",children:s.message}),(0,a.jsxs)("div",{className:"flex items-center text-xs text-gray-600 space-x-2",children:[(0,a.jsxs)("span",{children:[s.source_ip,":",s.source_port]}),(0,a.jsx)(o.g,{icon:d.dmS,className:"text-gray-400"}),(0,a.jsxs)("span",{children:[s.destination_ip,":",s.destination_port]})]})]})]})})},w=e=>{let{isActive:s,onClick:t,children:i,className:l="",activeClassName:r="",activeHoverClassName:n=""}=e;return(0,a.jsx)("button",{className:"px-4 py-2 rounded-lg transition-all duration-200 font-medium ".concat(s?"".concat(r||"bg-blue-600 text-white shadow-lg"," ").concat(n):"bg-white text-gray-700 border border-gray-300 hover:bg-gray-50 ".concat(l)),onClick:t,children:i})},_=()=>{let{getAiAlertStream:e}=(0,i.useContext)(x.v),[s,t]=(0,i.useState)([]),[l,m]=(0,i.useState)(null),[g,u]=(0,i.useState)("all"),[b,N]=(0,i.useState)(null),[_,k]=(0,i.useState)(!0),[C,A]=(0,i.useState)(!1),I=(0,i.useCallback)(function(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"success";N({message:e,type:s})},[]),S=(0,i.useCallback)(()=>{N(null)},[]),P=(0,i.useCallback)(e=>{if(!C)try{let s=j(e);t(e=>[s,...e.slice(0,199)])}catch(e){console.error("Error processing AI alert data:",e)}},[C]);(0,i.useEffect)(()=>{if(!e)return void k(!1);let s=setTimeout(()=>{k(!1)},3e3),t=e().subscribe({next:e=>{clearTimeout(s),P(e),k(!1)},error:e=>{console.error("WebSocket subscription error:",e),clearTimeout(s),k(!1)}});return()=>{clearTimeout(s),t.unsubscribe()}},[e,P]);let U=(0,i.useMemo)(()=>"all"===g?s:s.filter(e=>{let s=parseInt(e.priority,10);switch(g){case"critical":return 1===s;case"high":return 2===s;case"medium":return 3===s;case"low":return 4===s;default:return!0}}),[s,g]),E=(0,i.useCallback)(e=>{m(e)},[]),z=(0,i.useCallback)(()=>{m(null)},[]),T=(0,i.useCallback)(e=>{u(e)},[]),M=(0,i.useCallback)(()=>{A(!C)},[C]),D=(0,i.useMemo)(()=>{let e=s.length,t=s.filter(e=>1===parseInt(e.priority)).length;return{totalAlerts:e,criticalAlerts:t,highAlerts:s.filter(e=>2===parseInt(e.priority)).length,uniqueIPs:new Set([...s.map(e=>e.source_ip),...s.map(e=>e.destination_ip)]).size}},[s]);return _?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r(),{children:(0,a.jsx)("title",{children:"AI 威脅檢測 - NetGuardia"})}),(0,a.jsx)(h.A,{children:(0,a.jsx)("div",{className:"flex items-center justify-center w-full h-full min-h-[calc(100vh-4rem)]",children:(0,a.jsx)("div",{className:"flex flex-col items-center space-y-4",children:(0,a.jsx)(p.A,{})})})})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(r(),{children:[(0,a.jsx)("title",{children:"AI 威脅檢測 - NetGuardia"}),(0,a.jsx)("meta",{name:"description",content:"NetGuardia AI 威脅檢測系統"})]}),(0,a.jsxs)(h.A,{children:[(0,a.jsx)(c.N,{children:b&&(0,a.jsx)(y,{message:b.message,type:b.type,onClose:S})}),(0,a.jsx)(n.P.div,{initial:{opacity:0,y:-20},animate:{opacity:1,y:0},className:"mb-8",children:(0,a.jsxs)("div",{children:[(0,a.jsxs)("h1",{className:"text-3xl font-bold text-gray-900 mb-2 flex items-center",children:[(0,a.jsx)(o.g,{icon:d.UBk,className:"mr-3 text-purple-600"}),"AI 威脅檢測"]}),(0,a.jsx)("p",{className:"text-gray-600",children:"智能檢測網路威脅,實時監控異常行為"})]})}),(0,a.jsxs)(n.P.div,{initial:{opacity:0,y:-20},animate:{opacity:1,y:0},className:"bg-white rounded-lg shadow-md p-6 mb-6",children:[(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-4 bg-gray-50 p-3 rounded-lg",children:[(0,a.jsxs)("button",{onClick:M,className:"px-3 py-1 rounded-md text-sm font-medium transition-colors ".concat(C?"bg-green-100 text-green-700 hover:bg-green-200":"bg-orange-100 text-orange-700 hover:bg-orange-200"),children:[(0,a.jsx)(o.g,{icon:C?d.ijD:d.G1Y,className:"mr-1"}),C?"恢復":"暫停"]}),(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)("div",{className:"w-3 h-3 rounded-full ".concat(C?"bg-orange-500":"bg-green-500 animate-pulse")}),(0,a.jsx)("span",{className:"text-sm font-medium ".concat(C?"text-orange-600":"text-green-600"),children:C?"AI 檢測已暫停":"AI 檢測運行中"})]}),(0,a.jsxs)("div",{className:"text-xs text-gray-500 ml-auto",children:["最後更新: ",new Date().toLocaleTimeString("zh-TW")]})]}),(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-4 mb-4",children:[(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)(o.g,{icon:d.mRM,className:"text-gray-500"}),(0,a.jsx)("span",{className:"text-sm font-medium text-gray-600",children:"過濾條件:"})]}),(0,a.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,a.jsxs)(w,{isActive:"all"===g,onClick:()=>T("all"),children:["全部 (",s.length,")"]}),(0,a.jsxs)(w,{isActive:"critical"===g,onClick:()=>T("critical"),className:"border-red-200 hover:bg-red-50",activeClassName:"bg-red-600 text-white shadow-lg",activeHoverClassName:"hover:bg-red-700",children:["嚴重 (",D.criticalAlerts,")"]}),(0,a.jsxs)(w,{isActive:"high"===g,onClick:()=>T("high"),className:"border-orange-200 hover:bg-orange-50",activeClassName:"bg-orange-600 text-white shadow-lg",activeHoverClassName:"hover:bg-orange-700",children:["高 (",D.highAlerts,")"]}),(0,a.jsxs)(w,{isActive:"medium"===g,onClick:()=>T("medium"),className:"border-yellow-200 hover:bg-yellow-50",activeClassName:"bg-yellow-600 text-white shadow-lg",activeHoverClassName:"hover:bg-yellow-700",children:["中 (",s.filter(e=>3===parseInt(e.priority)).length,")"]}),(0,a.jsxs)(w,{isActive:"low"===g,onClick:()=>T("low"),className:"border-green-200 hover:bg-green-50",activeClassName:"bg-green-600 text-white shadow-lg",activeHoverClassName:"hover:bg-green-700",children:["低 (",s.filter(e=>4===parseInt(e.priority)).length,")"]})]})]})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8",children:[(0,a.jsx)(n.P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"bg-white rounded-lg shadow-md p-6",children:(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-sm font-medium text-gray-600 mb-1",children:"總警報數"}),(0,a.jsx)("p",{className:"text-2xl font-bold text-gray-900",children:D.totalAlerts})]}),(0,a.jsx)("div",{className:"bg-blue-500 p-3 rounded-lg",children:(0,a.jsx)(o.g,{icon:d.ITF,className:"text-white text-xl"})})]})}),(0,a.jsx)(n.P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:"bg-white rounded-lg shadow-md p-6",children:(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-sm font-medium text-gray-600 mb-1",children:"嚴重警報"}),(0,a.jsx)("p",{className:"text-2xl font-bold text-gray-900",children:D.criticalAlerts})]}),(0,a.jsx)("div",{className:"bg-red-500 p-3 rounded-lg",children:(0,a.jsx)(o.g,{icon:d.zpE,className:"text-white text-xl"})})]})}),(0,a.jsx)(n.P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"bg-white rounded-lg shadow-md p-6",children:(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-sm font-medium text-gray-600 mb-1",children:"高優先級"}),(0,a.jsx)("p",{className:"text-2xl font-bold text-gray-900",children:D.highAlerts})]}),(0,a.jsx)("div",{className:"bg-orange-500 p-3 rounded-lg",children:(0,a.jsx)(o.g,{icon:d.zpE,className:"text-white text-xl"})})]})}),(0,a.jsx)(n.P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.3},className:"bg-white rounded-lg shadow-md p-6",children:(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-sm font-medium text-gray-600 mb-1",children:"涉及 IP 數"}),(0,a.jsx)("p",{className:"text-2xl font-bold text-gray-900",children:D.uniqueIPs})]}),(0,a.jsx)("div",{className:"bg-purple-500 p-3 rounded-lg",children:(0,a.jsx)(o.g,{icon:d.Bwz,className:"text-white text-xl"})})]})})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-8",children:[(0,a.jsx)(n.P.div,{initial:{opacity:0,x:-50},animate:{opacity:1,x:0},transition:{delay:.1,duration:.25,ease:"linear"},className:null!==l?"lg:col-span-7":"lg:col-span-12",children:(0,a.jsxs)("div",{className:"bg-white rounded-lg shadow-md overflow-hidden",children:[(0,a.jsx)("div",{className:"px-6 py-4 border-b border-gray-200",children:(0,a.jsxs)("div",{className:"flex justify-between items-center",children:[(0,a.jsxs)("h2",{className:"text-xl font-semibold text-gray-900 flex items-center",children:[(0,a.jsx)(o.g,{icon:d.imB,className:"mr-2 text-blue-600"}),"安全警報"]}),(0,a.jsxs)("span",{className:"text-sm text-gray-500",children:[U.length," 條警報"]})]})}),(0,a.jsx)("div",{className:"max-h-[600px] overflow-y-auto",children:0===U.length?(0,a.jsxs)("div",{className:"p-12 text-center",children:[(0,a.jsx)(o.g,{icon:d.imB,className:"text-6xl text-gray-300 mb-4"}),(0,a.jsx)("h3",{className:"text-xl font-semibold text-gray-700 mb-2",children:0===s.length?"未檢測到警報":"沒有符合條件的警報"}),(0,a.jsx)("p",{className:"text-gray-500",children:0===s.length?"當系統偵測到警報時,警報將顯示在此處":"請嘗試調整過濾條件"}),C&&0===s.length&&(0,a.jsx)("div",{className:"mt-4 p-3 bg-orange-50 border border-orange-200 rounded-lg",children:(0,a.jsxs)("div",{className:"flex items-center justify-center space-x-2 text-orange-700",children:[(0,a.jsx)(o.g,{icon:d.G1Y}),(0,a.jsx)("span",{className:"text-sm",children:"檢測目前已暫停"})]})})]}):(0,a.jsx)("div",{className:"p-4 space-y-4",children:U.map((e,s)=>(0,a.jsx)(f,{log:e,index:s,onClick:E},"alert-".concat(s,"-").concat(e.timestamp)))})})]})}),null!==l&&(0,a.jsx)(n.P.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},className:"lg:col-span-5",children:(0,a.jsx)(v,{log:U[l],onClose:z,showNotification:I})})]})]})]})}},5756:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/detection",function(){return t(5615)}])}},e=>{var s=s=>e(e.s=s);e.O(0,[182,597,636,593,792],()=>s(5756)),_N_E=e.O()}]); \ No newline at end of file diff --git a/net-guardia/static/web/_next/static/chunks/pages/index-20fac084227e433f.js b/net-guardia/static/web/_next/static/chunks/pages/index-20fac084227e433f.js new file mode 100644 index 0000000..41b7e88 --- /dev/null +++ b/net-guardia/static/web/_next/static/chunks/pages/index-20fac084227e433f.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[332],{835:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var a=s(7876);s(4232);let r=()=>(0,a.jsx)("div",{className:"flex justify-center items-center",children:(0,a.jsx)("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-blue-600"})})},5096:(e,t,s)=>{"use strict";s.d(t,{A:()=>p});var a=s(7876),r=s(4232),n=s(7328),i=s.n(n),l=s(6463),c=s(8230),o=s.n(c),d=s(9099),m=s(6848),x=s(1772),u=s(1041);let g=[{href:"/",icon:u.v02,label:"Home"},{href:"/dashboard",icon:u.xiI,label:"Dashboard"},{href:"/statistics",icon:u.$Fj,label:"Statistics"},{href:"/access-control",icon:u.imB,label:"Access Control"},{href:"/detection",icon:u.UBk,label:"Detection"}],h=e=>{let{children:t}=e,s=(0,d.useRouter)(),[n,i]=(0,r.useState)(!1),l=e=>"/"===e?"/"===s.pathname:s.pathname.startsWith(e),c={expanded:{x:0,opacity:1},collapsed:{x:-10,opacity:0}};return(0,a.jsxs)("div",{className:"flex min-h-screen bg-gray-100",children:[(0,a.jsxs)(m.P.aside,{className:"fixed top-0 left-0 h-screen bg-gradient-to-br from-slate-800 to-slate-700 text-white flex flex-col shadow-lg z-50 overflow-hidden",initial:"expanded",animate:n?"collapsed":"expanded",variants:{expanded:{width:"240px"},collapsed:{width:"80px"}},transition:{duration:.3,ease:"easeInOut"},children:[(0,a.jsxs)("div",{className:"flex items-center justify-between p-4 border-b border-white/10 min-h-[70px]",children:[!n&&(0,a.jsx)(o(),{href:"/",className:"no-underline text-inherit",children:(0,a.jsx)(m.P.h1,{className:"text-2xl font-bold text-blue-400 m-0 whitespace-nowrap",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},children:"NetGuardia"})}),(0,a.jsx)("button",{onClick:()=>{i(!n)},className:"bg-transparent border-none text-white cursor-pointer p-2 rounded-md flex items-center justify-center w-10 h-10 hover:bg-white/10 transition-colors duration-200",children:(0,a.jsx)(x.g,{icon:u.ckx})})]}),(0,a.jsx)("nav",{className:"flex-1 py-4 flex flex-col gap-2",children:g.map(e=>(0,a.jsxs)(o(),{href:e.href,className:"\n flex items-center no-underline transition-all duration-200 relative mx-2 rounded-lg\n ".concat(n?"px-2 py-2 justify-center h-12 w-12":"px-4 py-3","\n ").concat(l(e.href)?"bg-blue-600 text-white shadow-lg shadow-blue-600/30":"text-slate-300 hover:bg-white/10 hover:text-white","\n "),children:[(0,a.jsx)("div",{className:"flex items-center justify-center flex-shrink-0 w-6 h-6",children:(0,a.jsx)(x.g,{icon:e.icon,className:"text-lg"})}),!n&&(0,a.jsx)(m.P.span,{className:"font-medium whitespace-nowrap overflow-hidden ml-3",variants:c,initial:"expanded",animate:n?"collapsed":"expanded",transition:{duration:.2},children:e.label})]},e.href))})]}),(0,a.jsx)("div",{className:"flex-1 flex flex-col transition-all duration-300 ".concat(n?"ml-20":"ml-60"),children:(0,a.jsx)("section",{className:"flex-1 p-8",children:(0,a.jsx)("div",{className:"max-w-full mx-auto",children:t})})})]})},p=e=>{let{children:t,title:s="NetGuardia",description:r="NetGuardia"}=e,n="".concat(l.hX,"/logo.png");return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(i(),{children:[(0,a.jsx)("title",{children:s}),(0,a.jsx)("meta",{name:"description",content:r}),(0,a.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),(0,a.jsx)("link",{rel:"icon",href:"/favicon.ico"}),(0,a.jsx)("meta",{property:"og:type",content:"website"}),(0,a.jsx)("meta",{property:"og:title",content:s}),(0,a.jsx)("meta",{property:"og:description",content:r}),(0,a.jsx)("meta",{property:"og:url",content:l.hX}),(0,a.jsx)("meta",{property:"og:image",content:n}),(0,a.jsx)("meta",{property:"og:image:width",content:"200"}),(0,a.jsx)("meta",{property:"og:image:height",content:"200"}),(0,a.jsx)("meta",{property:"og:image:alt",content:"NetGuardia"}),(0,a.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,a.jsx)("meta",{name:"twitter:title",content:s}),(0,a.jsx)("meta",{name:"twitter:description",content:r}),(0,a.jsx)("meta",{name:"twitter:image",content:n})]}),(0,a.jsx)(h,{children:t})]})}},6760:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return s(9306)}])},9099:(e,t,s)=>{e.exports=s(8253)},9306:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>N});var a=s(7876),r=s(7328),n=s.n(r),i=s(6848),l=s(4232),c=s(1772),o=s(1041),d=s(5096),m=s(4339),x=s(835),u=s(8230),g=s.n(u);let h=e=>{if(0===e)return"0 B";let t=Math.floor(Math.log(e)/Math.log(1024)),s=e/Math.pow(1024,t);return"".concat(s.toFixed(1)," ").concat(["B","KB","MB","GB","TB"][t])},p=e=>{let t=Math.floor(e/86400),s=Math.floor(e%86400/3600),a=Math.floor(e%3600/60);return t>0?"".concat(t,"天 ").concat(s,"時 ").concat(a,"分"):s>0?"".concat(s,"時 ").concat(a,"分"):"".concat(a,"分")},y=(e,t)=>{switch(t){case"cpu":if(e<50)return"good";if(e<80)return"warning";return"critical";case"memory":if(e<60)return"good";if(e<85)return"warning";return"critical";case"temperature":if(e<45)return"good";if(e<70)return"warning";return"critical";case"load":if(e<1)return"good";if(e<2)return"warning";return"critical";default:return"good"}},f=e=>{switch(e){case"good":return{color:"text-green-600",bgColor:"bg-green-100",iconColor:"text-green-500",dotColor:"bg-green-500"};case"warning":return{color:"text-yellow-600",bgColor:"bg-yellow-100",iconColor:"text-yellow-500",dotColor:"bg-yellow-500"};case"critical":return{color:"text-red-600",bgColor:"bg-red-100",iconColor:"text-red-500",dotColor:"bg-red-500"};default:return{color:"text-gray-600",bgColor:"bg-gray-100",iconColor:"text-gray-500",dotColor:"bg-gray-500"}}},j=e=>{let{metric:t,index:s,systemHealth:r}=e,n=f(t.status),[o,d]=(0,l.useState)(!1),m=()=>{if(!r)return"";switch(t.name){case"CPU 使用率":var e;return"處理器負載: ".concat(r.cpu_details.cpu_usage.toFixed(1),"%\n系統負載 (1分鐘): ").concat((null==(e=r.load_average)?void 0:e.one_minute.toFixed(2))||"N/A","\n狀態: ").concat("good"===t.status?"正常":"warning"===t.status?"警告":"緊急");case"記憶體使用率":return"總記憶體: ".concat(h(r.memory_usage.total),"\n已使用: ").concat(h(r.memory_usage.used),"\n可用記憶體: ").concat(h(r.memory_usage.available),"\n使用率: ").concat(r.memory_usage.usage_percent.toFixed(1),"%\n交換空間: ").concat(h(r.memory_usage.swap_used)," / ").concat(h(r.memory_usage.swap_total));case"系統溫度":return"當前溫度: ".concat(r.temperature.toFixed(1),"\xb0C\n狀態: ").concat("good"===t.status?"正常運行":"warning"===t.status?"溫度偏高":"溫度過高","\n建議: ").concat(r.temperature>70?"檢查散熱系統":"運行正常");default:return t.description||""}},x=(()=>{if("number"!=typeof t.value)return 0;switch(t.name){case"CPU 使用率":case"記憶體使用率":return t.value;case"系統溫度":return Math.min(t.value/100*100,100);default:return 0}})(),u=t.name.includes("使用率")||t.name.includes("溫度");return(0,a.jsxs)(i.P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1*s},className:"bg-white rounded-lg shadow-md p-6 hover:shadow-lg transition-all duration-300 group border-l-4 relative",style:{borderLeftColor:"green"===n.dotColor.replace("bg-","").replace("-500","")?"#10b981":"yellow"===n.dotColor.replace("bg-","").replace("-500","")?"#f59e0b":"red"===n.dotColor.replace("bg-","").replace("-500","")?"#ef4444":"#6b7280"},onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1),children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsxs)("div",{className:"flex items-center space-x-2 mb-1",children:[(0,a.jsx)("p",{className:"text-sm font-medium text-gray-600",children:t.name}),(0,a.jsx)("div",{className:"w-2 h-2 rounded-full ".concat(n.dotColor," ").concat("good"===t.status?"animate-pulse":"")})]}),(0,a.jsxs)("p",{className:"text-2xl font-bold text-gray-900 mb-1",children:["number"==typeof t.value?t.value.toFixed(t.name.includes("使用率")||t.name.includes("溫度")?1:0):t.value,t.unit&&(0,a.jsx)("span",{className:"text-lg text-gray-500 ml-1",children:t.unit})]}),t.description&&(0,a.jsx)("p",{className:"text-xs text-gray-500",children:t.description}),u&&(0,a.jsx)("div",{className:"mt-2 mb-2",children:(0,a.jsx)("div",{className:"w-3/4 bg-gray-200 rounded-full h-1.5",children:(0,a.jsx)("div",{className:"h-1.5 rounded-full transition-all duration-500 ".concat("good"===t.status?"bg-green-500":"warning"===t.status?"bg-yellow-500":"bg-red-500"),style:{width:"".concat(x,"%")}})})}),(0,a.jsx)("div",{className:"flex items-center mt-2",children:(0,a.jsx)("span",{className:"text-xs uppercase tracking-wide font-medium ".concat(n.color),children:"good"===t.status?"正常":"warning"===t.status?"警告":"critical"===t.status?"緊急":"未知"})})]}),(0,a.jsx)("div",{className:"".concat(n.bgColor," p-3 rounded-lg group-hover:scale-110 transition-transform duration-300"),children:(0,a.jsx)(c.g,{icon:t.icon,className:"".concat(n.iconColor," text-xl")})})]}),o&&m()&&(0,a.jsxs)("div",{className:"absolute z-50 bottom-full left-1/2 transform -translate-x-1/2 mb-2 px-3 py-2 bg-gray-900 text-white text-xs rounded-lg shadow-lg min-w-max max-w-xs",children:[(0,a.jsx)("div",{className:"whitespace-pre-line",children:m()}),(0,a.jsx)("div",{className:"absolute top-full left-1/2 transform -translate-x-1/2 w-0 h-0 border-l-4 border-r-4 border-t-4 border-transparent border-t-gray-900"})]})]})},b=e=>{let{loadAverage:t}=e;if(!t)return(0,a.jsxs)(i.P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.8},className:"bg-white rounded-lg shadow-md p-6",children:[(0,a.jsxs)("h3",{className:"text-lg font-semibold text-gray-900 mb-4 flex items-center",children:[(0,a.jsx)(c.g,{icon:o.xiI,className:"mr-2 text-yellow-600"}),"系統負載平均值"]}),(0,a.jsxs)("div",{className:"text-center text-gray-500 py-8",children:[(0,a.jsx)(c.g,{icon:o.tUE,className:"text-4xl mb-2"}),(0,a.jsx)("p",{children:"系統負載資料不可用"})]})]});let s=[{label:"1分鐘",value:t.one_minute,color:y(t.one_minute,"load")},{label:"5分鐘",value:t.five_minute,color:y(t.five_minute,"load")},{label:"15分鐘",value:t.fifteen_minute,color:y(t.fifteen_minute,"load")}],r=e=>e<.5?"系統空閒":e<1?"負載正常":e<1.5?"負載較高":e<2?"負載很高":"系統超載",n=e=>Math.min(e/3*100,100);return(0,a.jsxs)(i.P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.8},className:"bg-white rounded-lg shadow-md p-6",children:[(0,a.jsxs)("h3",{className:"text-lg font-semibold text-gray-900 mb-4 flex items-center",children:[(0,a.jsx)(c.g,{icon:o.xiI,className:"mr-2 text-yellow-600"}),"系統負載平均值"]}),(0,a.jsx)("div",{className:"space-y-4",children:s.map((e,t)=>{let s=f(e.color),l=n(e.value);return(0,a.jsxs)(i.P.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:.9+.1*t},className:"space-y-2",children:[(0,a.jsxs)("div",{className:"flex justify-between items-center",children:[(0,a.jsx)("span",{className:"text-sm font-medium text-gray-700",children:e.label}),(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)("span",{className:"text-lg font-bold text-gray-900",children:e.value.toFixed(2)}),(0,a.jsx)("span",{className:"text-xs px-2 py-1 rounded-full ".concat(s.bgColor," ").concat(s.color),children:r(e.value)})]})]}),(0,a.jsx)("div",{className:"w-full bg-gray-200 rounded-full h-3",children:(0,a.jsx)("div",{className:"h-3 rounded-full transition-all duration-500 ".concat("good"===e.color?"bg-green-500":"warning"===e.color?"bg-yellow-500":"bg-red-500"),style:{width:"".concat(l,"%")}})}),(0,a.jsxs)("div",{className:"flex justify-between text-xs text-gray-500",children:[(0,a.jsx)("span",{children:"0.0"}),(0,a.jsx)("span",{children:"1.0"}),(0,a.jsx)("span",{children:"2.0"}),(0,a.jsx)("span",{children:"3.0+"})]})]},e.label)})})]})},v=e=>{let{networkStats:t}=e,s=[{key:"ingress",name:"入口網路",icon:o.B0C,color:"text-blue-600"},{key:"egress",name:"出口網路",icon:o.INu,color:"text-green-600"},{key:"management",name:"管理網路",icon:o.ArK,color:"text-purple-600"}];return(0,a.jsxs)(i.P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.7},className:"bg-white rounded-lg shadow-md p-6",children:[(0,a.jsxs)("h3",{className:"text-lg font-semibold text-gray-900 mb-4 flex items-center",children:[(0,a.jsx)(c.g,{icon:o.BwJ,className:"mr-2 text-blue-600"}),"網路介面狀態"]}),(0,a.jsx)("div",{className:"space-y-4",children:s.map((e,s)=>{let r=t[e.key],n=r.errors_received>0||r.errors_transmitted>0;return(0,a.jsxs)(i.P.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:.8+.1*s},className:"border border-gray-200 rounded-lg p-4",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)(c.g,{icon:e.icon,className:e.color}),(0,a.jsx)("span",{className:"font-medium text-gray-900",children:e.name}),(0,a.jsxs)("span",{className:"text-sm text-gray-500",children:["(",r.interface,")"]})]}),n?(0,a.jsx)(c.g,{icon:o.zpE,className:"text-yellow-500"}):(0,a.jsx)(c.g,{icon:o.SGM,className:"text-green-500"})]}),(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-4 text-sm",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"text-gray-600",children:"接收"}),(0,a.jsx)("div",{className:"font-medium",children:h(r.bytes_received)}),(0,a.jsxs)("div",{className:"text-xs text-gray-500",children:[r.packets_received.toLocaleString()," 封包"]})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"text-gray-600",children:"傳送"}),(0,a.jsx)("div",{className:"font-medium",children:h(r.bytes_transmitted)}),(0,a.jsxs)("div",{className:"text-xs text-gray-500",children:[r.packets_transmitted.toLocaleString()," 封包"]})]})]}),n&&(0,a.jsx)("div",{className:"mt-2 pt-2 border-t border-gray-200",children:(0,a.jsxs)("div",{className:"text-sm text-yellow-600",children:["錯誤: 接收 ",r.errors_received,", 傳送 ",r.errors_transmitted]})})]},e.key)})})]})};function N(){let{bootTime:e,getSystemHealthStream:t}=(0,l.useContext)(m.v),[s,r]=(0,l.useState)(new Date),[u,f]=(0,l.useState)(null),[N,w]=(0,l.useState)(!0),[_,k]=(0,l.useState)(null),[C,P]=(0,l.useState)(!1),[S,M]=(0,l.useState)(null),[U,D]=(0,l.useState)("connecting");(0,l.useEffect)(()=>{let e=setInterval(()=>{r(new Date)},1e3);return()=>clearInterval(e)},[]);let E=(0,l.useCallback)(e=>{if(!C)try{let h="object"==typeof e?e:JSON.parse(e);if(h&&"object"==typeof h){var t,s,a,r,n,i,l,c,o,d,m,x,u,g;let e={timestamp:h.timestamp||Date.now()/1e3,boot_time:h.boot_time,uptime_seconds:h.uptime_seconds,system_info:{kernel_version:(null==(t=h.system_info)?void 0:t.kernel_version)||"Unknown",os_name:(null==(s=h.system_info)?void 0:s.os_name)||"Unknown",os_version:(null==(a=h.system_info)?void 0:a.os_version)||"Unknown",architecture:(null==(r=h.system_info)?void 0:r.architecture)||"Unknown",total_processes:(null==(n=h.system_info)?void 0:n.total_processes)||0},cpu_details:h.cpu_details?{cpu_brand:h.cpu_details.cpu_brand||"Unknown",core_count:h.cpu_details.core_count||0,cpu_usage:h.cpu_details.cpu_usage||0,cpu_frequency:h.cpu_details.cpu_frequency||0,cores:h.cpu_details.cores||[]}:void 0,memory_usage:{total:(null==(i=h.memory_usage)?void 0:i.total)||0,used:(null==(l=h.memory_usage)?void 0:l.used)||0,available:(null==(c=h.memory_usage)?void 0:c.available)||0,usage_percent:(null==(o=h.memory_usage)?void 0:o.usage_percent)||0,swap_total:(null==(d=h.memory_usage)?void 0:d.swap_total)||0,swap_used:(null==(m=h.memory_usage)?void 0:m.swap_used)||0},network_stats:{ingress:(null==(x=h.network_stats)?void 0:x.ingress)||{interface:"Unknown",bytes_received:0,bytes_transmitted:0,packets_received:0,packets_transmitted:0,errors_received:0,errors_transmitted:0},egress:(null==(u=h.network_stats)?void 0:u.egress)||{interface:"Unknown",bytes_received:0,bytes_transmitted:0,packets_received:0,packets_transmitted:0,errors_received:0,errors_transmitted:0},management:(null==(g=h.network_stats)?void 0:g.management)||{interface:"Unknown",bytes_received:0,bytes_transmitted:0,packets_received:0,packets_transmitted:0,errors_received:0,errors_transmitted:0}},load_average:h.load_average||null,temperature:h.temperature||0};f(e),M(new Date)}}catch(e){console.error("Error processing system health data:",e)}},[C]);(0,l.useEffect)(()=>{if(!t){k("WebSocket 服務不可用"),w(!1);return}k(null),w(!0);let e=t().subscribe({next:e=>{E(e),D("connected"),w(!1)},error:e=>{console.error("System health WebSocket error:",e),D("error"),k("WebSocket 連接失敗"),w(!1)}});return()=>{e.unsubscribe()}},[t,E]),(0,l.useEffect)(()=>{!C&&u&&M(new Date)},[C,u]),(0,l.useEffect)(()=>{if(!t){console.warn("WebSocket streams not available"),D("error"),w(!1);return}return console.log("Initializing WebSocket connections..."),D("connecting"),()=>{console.log("Component unmounting - cleaning up WebSocket subscriptions")}},[t]);let F=(0,l.useMemo)(()=>{if(!u)return[];let e=u.cpu_details.cpu_usage,t=u.memory_usage.usage_percent,s=u.temperature;return[{name:"CPU 使用率",value:e,unit:"%",status:y(e,"cpu"),icon:o.D6w,color:"bg-blue-500",bgColor:"bg-blue-50",description:"處理器負載"},{name:"記憶體使用率",value:t,unit:"%",status:y(t,"memory"),icon:o.HqV,color:"bg-green-500",bgColor:"bg-green-50",description:"已用 ".concat(h(u.memory_usage.used)," / ").concat(h(u.memory_usage.total))},{name:"系統溫度",value:s,unit:"\xb0C",status:y(s,"temperature"),icon:o.Rog,color:"bg-orange-500",bgColor:"bg-orange-50",description:"硬體溫度"}]},[u]),I=[{title:"網路流量監控",description:"即時查看 IPv4/IPv6 流量統計和趨勢分析",icon:o.gK3,color:"bg-blue-500",href:"/dashboard",badge:"即時"},{title:"統計分析",description:"深度分析網路使用模式和性能指標",icon:o.hem,color:"bg-green-500",href:"/statistics",badge:"分析"},{title:"存取控制",description:"管理 IP 白名單、黑名單和防火牆規則",icon:o.DW4,color:"bg-red-500",href:"/access-control",badge:"安全"},{title:"AI 威脅檢測",description:"智能檢測異常行為和潛在網路威脅",icon:o.UBk,color:"bg-purple-500",href:"/detection",badge:"AI"}];return N&&!u?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n(),{children:(0,a.jsx)("title",{children:"Dashboard - NetGuardia"})}),(0,a.jsx)(d.A,{children:(0,a.jsx)("div",{className:"flex items-center justify-center w-full h-full min-h-[calc(100vh-4rem)]",children:(0,a.jsx)("div",{className:"flex flex-col items-center space-y-4",children:(0,a.jsx)(x.A,{})})})})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(n(),{children:[(0,a.jsx)("title",{children:"NetGuardia - 網路安全監控系統"}),(0,a.jsx)("meta",{name:"description",content:"NetGuardia 網路安全監控系統主頁"}),(0,a.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),(0,a.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,a.jsxs)(d.A,{children:[(0,a.jsx)(i.P.div,{initial:{opacity:0,y:-20},animate:{opacity:1,y:0},className:"mb-8",children:(0,a.jsxs)("div",{className:"flex items-center justify-between flex-wrap gap-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h1",{className:"text-3xl font-bold text-gray-900 mb-2",children:"歡迎使用 NetGuardia"}),(0,a.jsx)("p",{className:"text-gray-600",children:"網路安全監控系統 - 保護您的網路環境,提供全面的安全監控"})]}),(0,a.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,a.jsxs)("div",{className:"bg-white rounded-lg shadow-md px-4 py-2 flex items-center",children:[(0,a.jsx)("div",{className:"w-3 h-3 rounded-full mr-2 ".concat(_?"bg-red-500":u?"bg-green-500 animate-pulse":"bg-yellow-500")}),(0,a.jsx)("span",{className:"text-sm font-medium text-gray-700",children:_?"系統錯誤":u?"系統正常":"連接中"})]}),(0,a.jsxs)("button",{onClick:()=>P(!C),className:"px-3 py-2 rounded-lg text-sm font-medium transition-colors ".concat(C?"bg-green-100 text-green-700 hover:bg-green-200":"bg-orange-100 text-orange-700 hover:bg-orange-200"),children:[(0,a.jsx)(c.g,{icon:C?o.ijD:o.G1Y,className:"mr-1"}),C?"恢復":"暫停"]}),(0,a.jsxs)("button",{onClick:()=>window.location.reload(),className:"px-3 py-2 bg-blue-600 text-white rounded-lg text-sm font-medium hover:bg-blue-700 transition-colors",children:[(0,a.jsx)(c.g,{icon:o.Vpu,className:"mr-1"}),"更新"]}),S&&(0,a.jsxs)("div",{className:"bg-white rounded-lg shadow-md px-4 py-2 flex items-center",children:[(0,a.jsx)(c.g,{icon:o.a$,className:"text-gray-500 mr-2"}),(0,a.jsxs)("div",{className:"text-sm",children:[(0,a.jsx)("div",{className:"font-medium text-gray-700",children:"最後更新"}),(0,a.jsx)("div",{className:"text-gray-500",children:S.toLocaleTimeString()})]})]})]})]})}),_&&(0,a.jsx)(i.P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"bg-red-50 border border-red-200 rounded-lg p-4 mb-6",children:(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)(c.g,{icon:o.zpE,className:"text-red-500 mr-2"}),(0,a.jsxs)("span",{className:"text-red-700 font-medium",children:["系統狀態載入失敗: ",_]})]})}),F.length>0&&(0,a.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6 mb-8",children:F.map((e,t)=>(0,a.jsx)(j,{metric:e,index:t,systemHealth:u},e.name))}),u&&(0,a.jsx)("div",{className:"space-y-8 mb-8",children:(0,a.jsx)(v,{networkStats:u.network_stats})}),u&&(0,a.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8 mb-8",children:[(0,a.jsx)(b,{loadAverage:u.load_average}),(0,a.jsxs)(i.P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:1},className:"bg-white rounded-lg shadow-md p-6",children:[(0,a.jsxs)("h3",{className:"text-lg font-semibold text-gray-900 mb-4 flex items-center",children:[(0,a.jsx)(c.g,{icon:o.D6w,className:"mr-2 text-blue-600"}),"系統資訊"]}),(0,a.jsxs)("div",{className:"max-h-60 overflow-y-auto pr-2 space-y-4",children:[(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsxs)("div",{className:"flex justify-between",children:[(0,a.jsx)("span",{className:"text-gray-600",children:"系統資料"}),(0,a.jsxs)("span",{className:"font-medium",children:[u.system_info.os_name," ",u.system_info.os_version," (",u.system_info.architecture,", ",u.system_info.kernel_version,")"]})]}),u.cpu_details&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex justify-between",children:[(0,a.jsx)("span",{className:"text-gray-600",children:"CPU 型號"}),(0,a.jsx)("span",{className:"font-medium",children:u.cpu_details.cpu_brand})]}),(0,a.jsxs)("div",{className:"flex justify-between",children:[(0,a.jsx)("span",{className:"text-gray-600",children:"CPU 核心"}),(0,a.jsx)("span",{className:"font-medium",children:u.cpu_details.core_count})]}),(0,a.jsxs)("div",{className:"flex justify-between",children:[(0,a.jsx)("span",{className:"text-gray-600",children:"CPU 頻率"}),(0,a.jsxs)("span",{className:"font-medium",children:[u.cpu_details.cpu_frequency," MHz"]})]})]}),(0,a.jsxs)("div",{className:"flex justify-between",children:[(0,a.jsx)("span",{className:"text-gray-600",children:"RAM 大小"}),(0,a.jsxs)("span",{className:"font-medium",children:[h(u.memory_usage.total)," GB"]})]}),(0,a.jsxs)("div",{className:"flex justify-between",children:[(0,a.jsx)("span",{className:"text-gray-600",children:"系統時間"}),(0,a.jsx)("span",{className:"font-medium",children:new Date(1e3*u.timestamp).toLocaleString("zh-TW")})]}),u.uptime_seconds&&(0,a.jsxs)("div",{className:"flex justify-between",children:[(0,a.jsx)("span",{className:"text-gray-600",children:"運行時間"}),(0,a.jsx)("span",{className:"font-medium",children:p(u.uptime_seconds)})]})]}),u.cpu_details&&(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"border-t border-gray-200 pt-4",children:[(0,a.jsxs)("h5",{className:"text-sm font-medium text-gray-900 mb-3 flex items-center",children:[(0,a.jsx)(c.g,{icon:o.xiI,className:"mr-2 text-purple-600"}),"各核心使用率"]}),(0,a.jsx)("div",{className:"grid grid-cols-2 gap-2",children:u.cpu_details.cores.map(e=>{let t=e.usage_percent;return(0,a.jsxs)("div",{className:"space-y-1",children:[(0,a.jsxs)("div",{className:"flex justify-between items-center",children:[(0,a.jsxs)("span",{className:"text-xs text-gray-600",children:["核心 ",e.core_id]}),(0,a.jsxs)("span",{className:"text-xs font-medium",children:[t.toFixed(1),"%"]})]}),(0,a.jsx)("div",{className:"w-full bg-gray-200 rounded-full h-1",children:(0,a.jsx)("div",{className:"h-1 rounded-full transition-all duration-500 ".concat(t<30?"bg-green-500":t<70?"bg-yellow-500":"bg-red-500"),style:{width:"".concat(Math.min(t,100),"%")}})}),(0,a.jsxs)("div",{className:"text-xs text-gray-500",children:[e.frequency," MHz"]})]},e.core_id)})})]})})]})]})]}),(0,a.jsxs)(i.P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.4},className:"mb-8",children:[(0,a.jsxs)("h2",{className:"text-2xl font-semibold text-gray-900 mb-6 flex items-center",children:[(0,a.jsx)(c.g,{icon:o.zm_,className:"mr-3 text-yellow-500"}),"快速導航"]}),(0,a.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:I.map((e,t)=>(0,a.jsx)(i.P.div,{initial:{opacity:0,x:t%2==0?-20:20},animate:{opacity:1,x:0},transition:{delay:.5+.1*t},children:(0,a.jsx)(g(),{href:e.href,className:"block group",children:(0,a.jsx)("div",{className:"bg-white rounded-lg shadow-md p-6 hover:shadow-xl transition-all duration-300 border-l-4 border-transparent group-hover:border-blue-500",children:(0,a.jsxs)("div",{className:"flex items-start justify-between",children:[(0,a.jsxs)("div",{className:"flex items-start space-x-4 flex-1",children:[(0,a.jsx)("div",{className:"".concat(e.color," p-3 rounded-lg group-hover:scale-110 transition-transform duration-300"),children:(0,a.jsx)(c.g,{icon:e.icon,className:"text-white text-lg"})}),(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)("h3",{className:"text-lg font-semibold text-gray-900 group-hover:text-blue-600 transition-colors duration-300",children:e.title}),(0,a.jsx)("p",{className:"text-gray-600 mt-1 text-sm",children:e.description})]})]}),(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)("span",{className:"px-2 py-1 bg-blue-100 text-blue-800 text-xs font-medium rounded-full",children:e.badge}),(0,a.jsx)(c.g,{icon:o.ijD,className:"text-gray-400 group-hover:text-blue-500 transition-colors duration-300"})]})]})})})},e.title))})]})]})]})}}},e=>{var t=t=>e(e.s=t);e.O(0,[182,636,593,792],()=>t(6760)),_N_E=e.O()}]); \ No newline at end of file diff --git a/net-guardia/static/web/_next/static/chunks/pages/statistics-2ac73b87bd720929.js b/net-guardia/static/web/_next/static/chunks/pages/statistics-2ac73b87bd720929.js new file mode 100644 index 0000000..0ced7d0 --- /dev/null +++ b/net-guardia/static/web/_next/static/chunks/pages/statistics-2ac73b87bd720929.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[777],{835:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var a=s(7876);s(4232);let r=()=>(0,a.jsx)("div",{className:"flex justify-center items-center",children:(0,a.jsx)("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-blue-600"})})},3230:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/statistics",function(){return s(9567)}])},5096:(e,t,s)=>{"use strict";s.d(t,{A:()=>g});var a=s(7876),r=s(4232),i=s(7328),n=s.n(i),l=s(6463),c=s(8230),o=s.n(c),d=s(9099),x=s(6848),m=s(1772),u=s(1041);let h=[{href:"/",icon:u.v02,label:"Home"},{href:"/dashboard",icon:u.xiI,label:"Dashboard"},{href:"/statistics",icon:u.$Fj,label:"Statistics"},{href:"/access-control",icon:u.imB,label:"Access Control"},{href:"/detection",icon:u.UBk,label:"Detection"}],p=e=>{let{children:t}=e,s=(0,d.useRouter)(),[i,n]=(0,r.useState)(!1),l=e=>"/"===e?"/"===s.pathname:s.pathname.startsWith(e),c={expanded:{x:0,opacity:1},collapsed:{x:-10,opacity:0}};return(0,a.jsxs)("div",{className:"flex min-h-screen bg-gray-100",children:[(0,a.jsxs)(x.P.aside,{className:"fixed top-0 left-0 h-screen bg-gradient-to-br from-slate-800 to-slate-700 text-white flex flex-col shadow-lg z-50 overflow-hidden",initial:"expanded",animate:i?"collapsed":"expanded",variants:{expanded:{width:"240px"},collapsed:{width:"80px"}},transition:{duration:.3,ease:"easeInOut"},children:[(0,a.jsxs)("div",{className:"flex items-center justify-between p-4 border-b border-white/10 min-h-[70px]",children:[!i&&(0,a.jsx)(o(),{href:"/",className:"no-underline text-inherit",children:(0,a.jsx)(x.P.h1,{className:"text-2xl font-bold text-blue-400 m-0 whitespace-nowrap",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},children:"NetGuardia"})}),(0,a.jsx)("button",{onClick:()=>{n(!i)},className:"bg-transparent border-none text-white cursor-pointer p-2 rounded-md flex items-center justify-center w-10 h-10 hover:bg-white/10 transition-colors duration-200",children:(0,a.jsx)(m.g,{icon:u.ckx})})]}),(0,a.jsx)("nav",{className:"flex-1 py-4 flex flex-col gap-2",children:h.map(e=>(0,a.jsxs)(o(),{href:e.href,className:"\n flex items-center no-underline transition-all duration-200 relative mx-2 rounded-lg\n ".concat(i?"px-2 py-2 justify-center h-12 w-12":"px-4 py-3","\n ").concat(l(e.href)?"bg-blue-600 text-white shadow-lg shadow-blue-600/30":"text-slate-300 hover:bg-white/10 hover:text-white","\n "),children:[(0,a.jsx)("div",{className:"flex items-center justify-center flex-shrink-0 w-6 h-6",children:(0,a.jsx)(m.g,{icon:e.icon,className:"text-lg"})}),!i&&(0,a.jsx)(x.P.span,{className:"font-medium whitespace-nowrap overflow-hidden ml-3",variants:c,initial:"expanded",animate:i?"collapsed":"expanded",transition:{duration:.2},children:e.label})]},e.href))})]}),(0,a.jsx)("div",{className:"flex-1 flex flex-col transition-all duration-300 ".concat(i?"ml-20":"ml-60"),children:(0,a.jsx)("section",{className:"flex-1 p-8",children:(0,a.jsx)("div",{className:"max-w-full mx-auto",children:t})})})]})},g=e=>{let{children:t,title:s="NetGuardia",description:r="NetGuardia"}=e,i="".concat(l.hX,"/logo.png");return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(n(),{children:[(0,a.jsx)("title",{children:s}),(0,a.jsx)("meta",{name:"description",content:r}),(0,a.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),(0,a.jsx)("link",{rel:"icon",href:"/favicon.ico"}),(0,a.jsx)("meta",{property:"og:type",content:"website"}),(0,a.jsx)("meta",{property:"og:title",content:s}),(0,a.jsx)("meta",{property:"og:description",content:r}),(0,a.jsx)("meta",{property:"og:url",content:l.hX}),(0,a.jsx)("meta",{property:"og:image",content:i}),(0,a.jsx)("meta",{property:"og:image:width",content:"200"}),(0,a.jsx)("meta",{property:"og:image:height",content:"200"}),(0,a.jsx)("meta",{property:"og:image:alt",content:"NetGuardia"}),(0,a.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,a.jsx)("meta",{name:"twitter:title",content:s}),(0,a.jsx)("meta",{name:"twitter:description",content:r}),(0,a.jsx)("meta",{name:"twitter:image",content:i})]}),(0,a.jsx)(p,{children:t})]})}},9567:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>A});var a=s(7876),r=s(4232),i=s(7328),n=s.n(i),l=s(6848),c=s(1772),o=s(1041),d=s(4339),x=s(5096),m=s(835),u=s(4486),h=s(8488),p=s(8517),g=s(4986);let j=["source","destination"],f=["ingress","egress"],y=["1min","10min","1hour"],b=[{label:"即時",value:0},{label:"1秒",value:1e3},{label:"3秒",value:3e3},{label:"5秒",value:5e3},{label:"10秒",value:1e4}],v=(e,t)=>{if(!e||!t)return"Loading...";let s=new Date((t+Number(e))/1e6);return s.setHours(s.getHours()+8),s.toISOString().replace("T"," ").split(".")[0]},N=e=>{try{if("object"==typeof e&&null!==e)return e;return JSON.parse(e)}catch(e){return console.error("Error parsing flow data:",e),{}}},w=e=>{let t=["B","KB","MB","GB","TB"];if(e<1024)return"".concat(e," B");let s=0,a=e;for(;a>=1024&&s{if(t){let t=(e=>{let t=e.split("::"),s=(t[0]||"").split(":"),a=(t[1]||"").split(":"),r=Array(8-(s.length+a.length)).fill("0");return[...s,...r,...a].map(e=>e||"0")})(e.replace(/\[|\]|:[0-9]+/g,""));try{let e=t.reduce((e,t)=>e+t.padStart(4,"0"),"");return BigInt("0x"+e)}catch(t){return console.error("Error converting IPv6 to number:",t),e}}try{return e.split(".").reduce((e,t)=>256*e+parseInt(t,10),0)}catch(t){return console.error("Error converting IPv4 to number:",t),e}},S=e=>{let{isActive:t,onClick:s,children:r,className:i=""}=e;return(0,a.jsx)("button",{className:"px-4 py-2 rounded-lg transition-all duration-200 font-medium ".concat(i," ").concat(t?"bg-blue-600 text-white shadow-lg":"bg-white text-gray-700 border border-gray-300 hover:bg-gray-50"),onClick:s,children:r})},P=e=>{let{column:t,sortConfig:s,onSort:r}=e;return(0,a.jsx)("th",{onClick:()=>r(t.key),className:"px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider cursor-pointer hover:bg-gray-100 transition-colors ".concat(s.key===t.key?"bg-blue-50":""),children:(0,a.jsxs)("div",{className:"flex items-center space-x-1",children:[(0,a.jsx)("span",{children:t.label}),(0,a.jsx)(c.g,{icon:s.key===t.key?"asc"===s.direction?o.Dvs:o.Ync:o.OM7,className:"text-xs"})]})})},C=e=>{let{updateInterval:t,setUpdateInterval:s,isPaused:r,setIsPaused:i,lastUpdateTime:n}=e;return(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-4 bg-gray-50 p-3 rounded-lg",children:[(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)(c.g,{icon:o.a$,className:"text-gray-500"}),(0,a.jsx)("span",{className:"text-sm font-medium text-gray-600",children:"更新頻率:"}),(0,a.jsx)("select",{value:t,onChange:e=>s(Number(e.target.value)),className:"px-3 py-1 border border-gray-300 rounded-md text-sm focus:outline-none focus:border-blue-500",children:b.map(e=>(0,a.jsx)("option",{value:e.value,children:e.label},e.value))})]}),(0,a.jsxs)("button",{onClick:()=>i(!r),className:"px-3 py-1 rounded-md text-sm font-medium transition-colors ".concat(r?"bg-green-100 text-green-700 hover:bg-green-200":"bg-orange-100 text-orange-700 hover:bg-orange-200"),children:[(0,a.jsx)(c.g,{icon:r?o.ijD:o.G1Y,className:"mr-1"}),r?"恢复":"暂停"]}),(0,a.jsxs)("button",{onClick:()=>window.location.reload(),className:"px-3 py-1 bg-blue-600 text-white rounded-md text-sm font-medium hover:bg-blue-700 transition-colors flex items-center space-x-1",children:[(0,a.jsx)(c.g,{icon:o.Vpu,className:"text-xs"}),(0,a.jsx)("span",{children:"更新"})]}),n&&(0,a.jsxs)("div",{className:"text-xs text-gray-500 ml-auto",children:["最後更新: ",n.toLocaleTimeString()]})]})},I=e=>{let{isIPv6:t,setIsIPv6:s,direction:r,setDirection:i,trafficType:n,setTrafficType:d,timeRange:x,setTimeRange:m,searchTerm:u,setSearchTerm:h,updateInterval:p,setUpdateInterval:g,isPaused:b,setIsPaused:v,lastUpdateTime:N}=e;return(0,a.jsxs)(l.P.div,{initial:{opacity:0,y:-20},animate:{opacity:1,y:0},className:"bg-white rounded-lg shadow-md p-6 mb-6 space-y-4",children:[(0,a.jsx)(C,{updateInterval:p,setUpdateInterval:g,isPaused:b,setIsPaused:v,lastUpdateTime:N}),(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-4",children:[(0,a.jsx)("div",{className:"flex-1 min-w-64",children:(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)(c.g,{icon:o.MjD,className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400"}),(0,a.jsx)("input",{type:"text",value:u,onChange:e=>h(e.target.value),placeholder:"搜索 IP 地址...",className:"w-full pl-10 pr-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:border-blue-500 focus:ring-1 focus:ring-blue-500"})]})}),(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)("span",{className:"text-sm font-medium text-gray-600",children:"IP 版本:"}),(0,a.jsxs)("div",{className:"flex space-x-1",children:[(0,a.jsx)(S,{isActive:!t,onClick:()=>s(!1),children:"IPv4"}),(0,a.jsx)(S,{isActive:t,onClick:()=>s(!0),children:"IPv6"})]})]}),(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)("span",{className:"text-sm font-medium text-gray-600",children:"方向:"}),(0,a.jsx)("div",{className:"flex space-x-1",children:f.map(e=>(0,a.jsx)(S,{isActive:r===e,onClick:()=>i(e),children:"ingress"===e?"入站":"出站"},e))})]}),(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)("span",{className:"text-sm font-medium text-gray-600",children:"類型:"}),(0,a.jsx)("div",{className:"flex space-x-1",children:j.map(e=>(0,a.jsx)(S,{isActive:n===e,onClick:()=>d(e),children:"source"===e?"來源":"目標"},e))})]}),(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)("span",{className:"text-sm font-medium text-gray-600",children:"時間:"}),(0,a.jsx)("div",{className:"flex space-x-1",children:y.map(e=>(0,a.jsx)(S,{isActive:x===e,onClick:()=>m(e),children:e},e))})]})]})]})},_=e=>{let{data:t,sortConfig:s,handleSort:r,bootTime:i,isUpdating:n}=e;return(0,a.jsxs)(l.P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"bg-white rounded-lg shadow-md overflow-hidden",children:[(0,a.jsx)("div",{className:"max-h-[600px] overflow-y-auto",children:(0,a.jsxs)("table",{className:"min-w-full divide-y divide-gray-200",children:[(0,a.jsx)("thead",{className:"bg-gray-50 sticky top-0 z-10",children:(0,a.jsx)("tr",{children:[{key:"ip",label:"IP 地址"},{key:"bytes",label:"位元組數"},{key:"packets",label:"封包數"},{key:"last_seen",label:"最後見到時間 (GMT+8)"}].map(e=>(0,a.jsx)(P,{column:e,sortConfig:s,onSort:r},e.key))})}),(0,a.jsx)("tbody",{className:"bg-white divide-y divide-gray-200",children:t.map((e,t)=>(0,a.jsxs)(l.P.tr,{initial:{opacity:0},animate:{opacity:1},transition:{delay:Math.min(.01*t,.5)},className:"hover:bg-gray-50 transition-colors",children:[(0,a.jsx)("td",{className:"px-4 py-3 whitespace-nowrap text-sm font-medium text-gray-900",children:e.ip}),(0,a.jsx)("td",{className:"px-4 py-3 whitespace-nowrap text-sm text-gray-900",children:w(e.bytes)}),(0,a.jsx)("td",{className:"px-4 py-3 whitespace-nowrap text-sm text-gray-900",children:e.packets.toLocaleString()}),(0,a.jsx)("td",{className:"px-4 py-3 whitespace-nowrap text-sm text-gray-500",children:v(e.last_seen,i)})]},"".concat(e.ip,"-").concat(t)))})]})}),t.length>0&&(0,a.jsx)("div",{className:"bg-gray-50 px-4 py-2 border-t border-gray-200",children:(0,a.jsx)("div",{className:"flex justify-between items-center text-sm text-gray-600",children:(0,a.jsxs)("span",{children:["顯示 ",t.length," 條記錄"]})})})]})},T=e=>{let{isSearchFiltered:t}=e;return(0,a.jsxs)(l.P.div,{initial:{opacity:0},animate:{opacity:1},className:"bg-white rounded-lg shadow-md p-12 text-center",children:[(0,a.jsx)(c.g,{icon:o.iW_,className:"text-6xl text-gray-300 mb-4"}),t?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h3",{className:"text-xl font-semibold text-gray-700 mb-2",children:"沒有找到匹配的結果"}),(0,a.jsx)("p",{className:"text-gray-500",children:"請嘗試調整搜索條件"})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h3",{className:"text-xl font-semibold text-gray-700 mb-2",children:"沒有找到資料"}),(0,a.jsx)("p",{className:"text-gray-500",children:"請嘗試更改篩選條件或時間範圍"})]})]})},E=e=>{let{data:t,isIPv6:s,direction:r,trafficType:i}=e,n=t.reduce((e,t)=>e+t.bytes,0),d=t.reduce((e,t)=>e+t.packets,0),x=new Set(t.map(e=>e.ip.includes("[")&&e.ip.includes("]:")?e.ip.split("]:")[0]+"]":e.ip.includes(":")&&!e.ip.includes("[")?e.ip.split(":").slice(0,-1).join(":"):e.ip)).size,m=[{title:"總流量",value:w(n),icon:o.eGi,color:"bg-blue-500"},{title:"總封包數",value:d.toLocaleString(),icon:o.$Fj,color:"bg-green-500"},{title:"唯一 IP 數",value:x.toLocaleString(),icon:o.Bwz,color:"bg-purple-500"}];return(0,a.jsx)(l.P.div,{initial:{opacity:0,y:-20},animate:{opacity:1,y:0},className:"grid grid-cols-1 md:grid-cols-3 gap-6 mb-6",children:m.map((e,t)=>(0,a.jsx)(l.P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1*t},className:"bg-white rounded-lg shadow-md p-6",children:(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-sm font-medium text-gray-600 mb-1",children:e.title}),(0,a.jsx)("p",{className:"text-2xl font-bold text-gray-900",children:e.value})]}),(0,a.jsx)("div",{className:"".concat(e.color," p-3 rounded-lg"),children:(0,a.jsx)(c.g,{icon:e.icon,className:"text-white text-xl"})})]})},e.title))})},A=()=>{let{bootTime:e,getIPv4FlowStream:t,getIPv6FlowStream:s}=(0,r.useContext)(d.v),[i,c]=(0,r.useState)(!1),[o,b]=(0,r.useState)("source"),[v,w]=(0,r.useState)("ingress"),[S,P]=(0,r.useState)("1min"),[C,A]=(0,r.useState)({key:null,direction:"desc"}),[D,G]=(0,r.useState)(""),[F,B]=(0,r.useState)(!0),[O,L]=(0,r.useState)({}),[M,R]=(0,r.useState)(null),[U,W]=(0,r.useState)(3e3),[z,X]=(0,r.useState)(!1),[H,$]=(0,r.useState)(null),[Y,J]=(0,r.useState)(!1),K=(0,r.useRef)({}),V=(0,r.useRef)(0),q=(0,r.useRef)(U),Q=(0,r.useRef)(z);(0,r.useEffect)(()=>{q.current=U},[U]),(0,r.useEffect)(()=>{Q.current=z},[z]);let Z=(0,r.useCallback)(()=>{var e;let t="".concat(v,"_").concat(o,"_").concat(S),s=i?"ipv6":"ipv4",a=null==(e=O[t])?void 0:e[s];return a?Object.entries(a).map(e=>{let[t,s]=e;return{ip:t,bytes:s.bytes||0,packets:s.packets||0,last_seen:s.last_seen||0}}):null},[O,v,o,S,i]),ee=(0,r.useMemo)(()=>{let e=Z();if(!e)return null;if(!C.key)return D.trim()?e.filter(e=>e.ip.toLowerCase().includes(D.trim().toLowerCase())):e;let t=[...e].sort((e,t)=>{let s=e[C.key],a=t[C.key];return("ip"===C.key&&(s=k(s,i),a=k(a,i)),sa?"asc"===C.direction?1:-1:0});return D.trim()?t.filter(e=>e.ip.toLowerCase().includes(D.trim().toLowerCase())):t},[Z,C,D,i]),et=(0,r.useMemo)(()=>""!==D.trim()&&null!==Z(),[D,Z]),es=(0,r.useCallback)(e=>{A(t=>{let s=t.key===e&&"asc"===t.direction?"desc":"asc";return{key:e,direction:s}})},[]),ea=(0,r.useCallback)(e=>{let t=e.filter(e=>null!==e);if(0===t.length)return;let s={};if(t.forEach(e=>{if(!e)return;let{key:t,protocol:a,data:r}=e;s[t]||(s[t]={}),s[t][a]=r}),Object.keys(s).length>0){K.current=s;let e=Date.now(),t=q.current;!Q.current&&(0===t||e-V.current>=t)&&(J(!0),L(s),$(new Date),V.current=e,setTimeout(()=>J(!1),300))}},[]);return((0,r.useEffect)(()=>{if(!t||!s){R("WebSocket 服務不可用"),B(!1);return}R(null),B(!0);let e=[];f.forEach(t=>{j.forEach(s=>{y.forEach(a=>{e.push({dir:t,type:s,range:a,protocol:"ipv4"}),e.push({dir:t,type:s,range:a,protocol:"ipv6"})})})});let a=e.map(e=>{let{dir:a,type:r,range:i,protocol:n}=e;return("ipv4"===n?t:s)(a,r,i).pipe((0,p.T)(e=>({key:"".concat(a,"_").concat(r,"_").concat(i),protocol:n,data:N(e)})),(0,g.W)(e=>(console.error("Error in ".concat(n," stream (").concat(a,", ").concat(r,", ").concat(i,"):"),e),(0,u.of)(null))))}),r=(0,h.z)(a).subscribe({next:e=>{ea(e),B(!1)},error:e=>{console.error("WebSocket subscription error:",e),R("WebSocket 連接錯誤"),B(!1)}});return()=>{r.unsubscribe()}},[t,s,ea]),(0,r.useEffect)(()=>{!z&&Object.keys(K.current).length>0&&(L(K.current),$(new Date),V.current=Date.now())},[z]),(0,r.useEffect)(()=>{if(0===U||z)return;let e=setInterval(()=>{let e=Date.now();Object.keys(K.current).length>0&&e-V.current>=U&&!Q.current&&(J(!0),L(K.current),$(new Date),V.current=e,setTimeout(()=>J(!1),300))},Math.min(U/4,1e3));return()=>clearInterval(e)},[U,z]),F)?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n(),{children:(0,a.jsx)("title",{children:"Statistics - NetGuardia"})}),(0,a.jsx)(x.A,{children:(0,a.jsx)("div",{className:"flex items-center justify-center w-full h-full min-h-[calc(100vh-4rem)]",children:(0,a.jsx)("div",{className:"flex flex-col items-center space-y-4",children:(0,a.jsx)(m.A,{})})})})]}):M?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n(),{children:(0,a.jsx)("title",{children:"Statistics - NetGuardia"})}),(0,a.jsx)(x.A,{children:(0,a.jsx)("div",{className:"flex items-center justify-center min-h-[60vh]",children:(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsx)("div",{className:"text-red-500 text-6xl mb-4",children:"⚠️"}),(0,a.jsx)("h2",{className:"text-2xl font-bold text-gray-800 mb-2",children:"載入錯誤"}),(0,a.jsx)("p",{className:"text-gray-600 mb-4",children:M}),(0,a.jsx)("button",{onClick:()=>window.location.reload(),className:"px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors",children:"重新載入"})]})})})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(n(),{children:[(0,a.jsx)("title",{children:"Statistics - NetGuardia"}),(0,a.jsx)("meta",{name:"description",content:"NetGuardia 網路流量統計分析"})]}),(0,a.jsxs)(x.A,{children:[(0,a.jsx)(l.P.div,{initial:{opacity:0,y:-20},animate:{opacity:1,y:0},className:"mb-8",children:(0,a.jsx)("div",{className:"flex items-center justify-between",children:(0,a.jsxs)("div",{children:[(0,a.jsx)("h1",{className:"text-3xl font-bold text-gray-900 mb-2",children:"網路流量統計"}),(0,a.jsx)("p",{className:"text-gray-600",children:"分析和監控網路流量資料,查看詳細的連接統計"})]})})}),(0,a.jsx)(I,{isIPv6:i,setIsIPv6:c,direction:v,setDirection:w,trafficType:o,setTrafficType:b,timeRange:S,setTimeRange:P,searchTerm:D,setSearchTerm:G,updateInterval:U,setUpdateInterval:W,isPaused:z,setIsPaused:X,lastUpdateTime:H}),ee&&ee.length>0&&(0,a.jsx)(E,{data:ee,isIPv6:i,direction:v,trafficType:o}),(0,a.jsx)("div",{className:"mb-8",children:null===ee?(0,a.jsx)(T,{isSearchFiltered:!1}):0===ee.length?(0,a.jsx)(T,{isSearchFiltered:et}):(0,a.jsx)(_,{data:ee,sortConfig:C,handleSort:es,bootTime:e,isUpdating:Y})})]})]})}}},e=>{var t=t=>e(e.s=t);e.O(0,[182,620,636,593,792],()=>t(3230)),_N_E=e.O()}]); \ No newline at end of file diff --git a/net-guardia/static/web/_next/static/chunks/polyfills-42372ed130431b0a.js b/net-guardia/static/web/_next/static/chunks/polyfills-42372ed130431b0a.js new file mode 100644 index 0000000..ab422b9 --- /dev/null +++ b/net-guardia/static/web/_next/static/chunks/polyfills-42372ed130431b0a.js @@ -0,0 +1 @@ +!function(){var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t){var e={exports:{}};return t(e,e.exports),e.exports}var r,n,o=function(t){return t&&t.Math===Math&&t},i=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof t&&t)||o("object"==typeof t&&t)||function(){return this}()||Function("return this")(),a=function(t){try{return!!t()}catch(t){return!0}},u=!a(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}),s=!a(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}),c=Function.prototype.call,f=s?c.bind(c):function(){return c.apply(c,arguments)},l={}.propertyIsEnumerable,h=Object.getOwnPropertyDescriptor,p=h&&!l.call({1:2},1)?function(t){var e=h(this,t);return!!e&&e.enumerable}:l,v={f:p},d=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},g=Function.prototype,y=g.call,m=s&&g.bind.bind(y,y),b=s?m:function(t){return function(){return y.apply(t,arguments)}},w=b({}.toString),S=b("".slice),E=function(t){return S(w(t),8,-1)},O=Object,x=b("".split),R=a(function(){return!O("z").propertyIsEnumerable(0)})?function(t){return"String"===E(t)?x(t,""):O(t)}:O,P=function(t){return null==t},A=TypeError,j=function(t){if(P(t))throw new A("Can't call method on "+t);return t},k=function(t){return R(j(t))},I="object"==typeof document&&document.all,T=void 0===I&&void 0!==I?function(t){return"function"==typeof t||t===I}:function(t){return"function"==typeof t},M=function(t){return"object"==typeof t?null!==t:T(t)},L=function(t,e){return arguments.length<2?T(r=i[t])?r:void 0:i[t]&&i[t][e];var r},U=b({}.isPrototypeOf),N=i.navigator,C=N&&N.userAgent,_=C?String(C):"",F=i.process,B=i.Deno,D=F&&F.versions||B&&B.version,z=D&&D.v8;z&&(n=(r=z.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!n&&_&&(!(r=_.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=_.match(/Chrome\/(\d+)/))&&(n=+r[1]);var W=n,q=i.String,H=!!Object.getOwnPropertySymbols&&!a(function(){var t=Symbol("symbol detection");return!q(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&W&&W<41}),$=H&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,K=Object,G=$?function(t){return"symbol"==typeof t}:function(t){var e=L("Symbol");return T(e)&&U(e.prototype,K(t))},V=String,Y=function(t){try{return V(t)}catch(t){return"Object"}},X=TypeError,J=function(t){if(T(t))return t;throw new X(Y(t)+" is not a function")},Q=function(t,e){var r=t[e];return P(r)?void 0:J(r)},Z=TypeError,tt=Object.defineProperty,et=function(t,e){try{tt(i,t,{value:e,configurable:!0,writable:!0})}catch(r){i[t]=e}return e},rt=e(function(t){var e="__core-js_shared__",r=t.exports=i[e]||et(e,{});(r.versions||(r.versions=[])).push({version:"3.38.1",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"})}),nt=function(t,e){return rt[t]||(rt[t]=e||{})},ot=Object,it=function(t){return ot(j(t))},at=b({}.hasOwnProperty),ut=Object.hasOwn||function(t,e){return at(it(t),e)},st=0,ct=Math.random(),ft=b(1..toString),lt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+ft(++st+ct,36)},ht=i.Symbol,pt=nt("wks"),vt=$?ht.for||ht:ht&&ht.withoutSetter||lt,dt=function(t){return ut(pt,t)||(pt[t]=H&&ut(ht,t)?ht[t]:vt("Symbol."+t)),pt[t]},gt=TypeError,yt=dt("toPrimitive"),mt=function(t,e){if(!M(t)||G(t))return t;var r,n=Q(t,yt);if(n){if(void 0===e&&(e="default"),r=f(n,t,e),!M(r)||G(r))return r;throw new gt("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var r,n;if("string"===e&&T(r=t.toString)&&!M(n=f(r,t)))return n;if(T(r=t.valueOf)&&!M(n=f(r,t)))return n;if("string"!==e&&T(r=t.toString)&&!M(n=f(r,t)))return n;throw new Z("Can't convert object to primitive value")}(t,e)},bt=function(t){var e=mt(t,"string");return G(e)?e:e+""},wt=i.document,St=M(wt)&&M(wt.createElement),Et=function(t){return St?wt.createElement(t):{}},Ot=!u&&!a(function(){return 7!==Object.defineProperty(Et("div"),"a",{get:function(){return 7}}).a}),xt=Object.getOwnPropertyDescriptor,Rt={f:u?xt:function(t,e){if(t=k(t),e=bt(e),Ot)try{return xt(t,e)}catch(t){}if(ut(t,e))return d(!f(v.f,t,e),t[e])}},Pt=u&&a(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),At=String,jt=TypeError,kt=function(t){if(M(t))return t;throw new jt(At(t)+" is not an object")},It=TypeError,Tt=Object.defineProperty,Mt=Object.getOwnPropertyDescriptor,Lt="enumerable",Ut="configurable",Nt="writable",Ct={f:u?Pt?function(t,e,r){if(kt(t),e=bt(e),kt(r),"function"==typeof t&&"prototype"===e&&"value"in r&&Nt in r&&!r[Nt]){var n=Mt(t,e);n&&n[Nt]&&(t[e]=r.value,r={configurable:Ut in r?r[Ut]:n[Ut],enumerable:Lt in r?r[Lt]:n[Lt],writable:!1})}return Tt(t,e,r)}:Tt:function(t,e,r){if(kt(t),e=bt(e),kt(r),Ot)try{return Tt(t,e,r)}catch(t){}if("get"in r||"set"in r)throw new It("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},_t=u?function(t,e,r){return Ct.f(t,e,d(1,r))}:function(t,e,r){return t[e]=r,t},Ft=Function.prototype,Bt=u&&Object.getOwnPropertyDescriptor,Dt=ut(Ft,"name"),zt={EXISTS:Dt,PROPER:Dt&&"something"===function(){}.name,CONFIGURABLE:Dt&&(!u||u&&Bt(Ft,"name").configurable)},Wt=b(Function.toString);T(rt.inspectSource)||(rt.inspectSource=function(t){return Wt(t)});var qt,Ht,$t,Kt=rt.inspectSource,Gt=i.WeakMap,Vt=T(Gt)&&/native code/.test(String(Gt)),Yt=nt("keys"),Xt=function(t){return Yt[t]||(Yt[t]=lt(t))},Jt={},Qt="Object already initialized",Zt=i.TypeError;if(Vt||rt.state){var te=rt.state||(rt.state=new(0,i.WeakMap));te.get=te.get,te.has=te.has,te.set=te.set,qt=function(t,e){if(te.has(t))throw new Zt(Qt);return e.facade=t,te.set(t,e),e},Ht=function(t){return te.get(t)||{}},$t=function(t){return te.has(t)}}else{var ee=Xt("state");Jt[ee]=!0,qt=function(t,e){if(ut(t,ee))throw new Zt(Qt);return e.facade=t,_t(t,ee,e),e},Ht=function(t){return ut(t,ee)?t[ee]:{}},$t=function(t){return ut(t,ee)}}var re,ne={set:qt,get:Ht,has:$t,enforce:function(t){return $t(t)?Ht(t):qt(t,{})},getterFor:function(t){return function(e){var r;if(!M(e)||(r=Ht(e)).type!==t)throw new Zt("Incompatible receiver, "+t+" required");return r}}},oe=e(function(t){var e=zt.CONFIGURABLE,r=ne.enforce,n=ne.get,o=String,i=Object.defineProperty,s=b("".slice),c=b("".replace),f=b([].join),l=u&&!a(function(){return 8!==i(function(){},"length",{value:8}).length}),h=String(String).split("String"),p=t.exports=function(t,n,a){"Symbol("===s(o(n),0,7)&&(n="["+c(o(n),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),a&&a.getter&&(n="get "+n),a&&a.setter&&(n="set "+n),(!ut(t,"name")||e&&t.name!==n)&&(u?i(t,"name",{value:n,configurable:!0}):t.name=n),l&&a&&ut(a,"arity")&&t.length!==a.arity&&i(t,"length",{value:a.arity});try{a&&ut(a,"constructor")&&a.constructor?u&&i(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var p=r(t);return ut(p,"source")||(p.source=f(h,"string"==typeof n?n:"")),t};Function.prototype.toString=p(function(){return T(this)&&n(this).source||Kt(this)},"toString")}),ie=function(t,e,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:e;if(T(r)&&oe(r,i,n),n.global)o?t[e]=r:et(e,r);else{try{n.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=r:Ct.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},ae=Math.ceil,ue=Math.floor,se=Math.trunc||function(t){var e=+t;return(e>0?ue:ae)(e)},ce=function(t){var e=+t;return e!=e||0===e?0:se(e)},fe=Math.max,le=Math.min,he=function(t,e){var r=ce(t);return r<0?fe(r+e,0):le(r,e)},pe=Math.min,ve=function(t){var e=ce(t);return e>0?pe(e,9007199254740991):0},de=function(t){return ve(t.length)},ge=function(t){return function(e,r,n){var o=k(e),i=de(o);if(0===i)return!t&&-1;var a,u=he(n,i);if(t&&r!=r){for(;i>u;)if((a=o[u++])!=a)return!0}else for(;i>u;u++)if((t||u in o)&&o[u]===r)return t||u||0;return!t&&-1}},ye={includes:ge(!0),indexOf:ge(!1)},me=ye.indexOf,be=b([].push),we=function(t,e){var r,n=k(t),o=0,i=[];for(r in n)!ut(Jt,r)&&ut(n,r)&&be(i,r);for(;e.length>o;)ut(n,r=e[o++])&&(~me(i,r)||be(i,r));return i},Se=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ee=Se.concat("length","prototype"),Oe={f:Object.getOwnPropertyNames||function(t){return we(t,Ee)}},xe={f:Object.getOwnPropertySymbols},Re=b([].concat),Pe=L("Reflect","ownKeys")||function(t){var e=Oe.f(kt(t)),r=xe.f;return r?Re(e,r(t)):e},Ae=function(t,e,r){for(var n=Pe(e),o=Ct.f,i=Rt.f,a=0;aa;)Ct.f(t,r=o[a++],n[r]);return t},Be={f:Fe},De=L("document","documentElement"),ze="prototype",We="script",qe=Xt("IE_PROTO"),He=function(){},$e=function(t){return"<"+We+">"+t+""},Ke=function(t){t.write($e("")),t.close();var e=t.parentWindow.Object;return t=null,e},Ge=function(){try{re=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;Ge="undefined"!=typeof document?document.domain&&re?Ke(re):(e=Et("iframe"),r="java"+We+":",e.style.display="none",De.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write($e("document.F=Object")),t.close(),t.F):Ke(re);for(var n=Se.length;n--;)delete Ge[ze][Se[n]];return Ge()};Jt[qe]=!0;var Ve=Object.create||function(t,e){var r;return null!==t?(He[ze]=kt(t),r=new He,He[ze]=null,r[qe]=t):r=Ge(),void 0===e?r:Be.f(r,e)},Ye=Ct.f,Xe=dt("unscopables"),Je=Array.prototype;void 0===Je[Xe]&&Ye(Je,Xe,{configurable:!0,value:Ve(null)});var Qe=function(t){Je[Xe][t]=!0};Ce({target:"Array",proto:!0},{at:function(t){var e=it(this),r=de(e),n=ce(t),o=n>=0?n:r+n;return o<0||o>=r?void 0:e[o]}}),Qe("at");var Ze=function(t,e){return b(i[t].prototype[e])},tr=(Ze("Array","at"),TypeError),er=function(t,e){if(!delete t[e])throw new tr("Cannot delete property "+Y(e)+" of "+Y(t))},rr=Math.min,nr=[].copyWithin||function(t,e){var r=it(this),n=de(r),o=he(t,n),i=he(e,n),a=arguments.length>2?arguments[2]:void 0,u=rr((void 0===a?n:he(a,n))-i,n-o),s=1;for(i0;)i in r?r[o]=r[i]:er(r,o),o+=s,i+=s;return r};Ce({target:"Array",proto:!0},{copyWithin:nr}),Qe("copyWithin"),Ze("Array","copyWithin"),Ce({target:"Array",proto:!0},{fill:function(t){for(var e=it(this),r=de(e),n=arguments.length,o=he(n>1?arguments[1]:void 0,r),i=n>2?arguments[2]:void 0,a=void 0===i?r:he(i,r);a>o;)e[o++]=t;return e}}),Qe("fill"),Ze("Array","fill");var or=function(t){if("Function"===E(t))return b(t)},ir=or(or.bind),ar=function(t,e){return J(t),void 0===e?t:s?ir(t,e):function(){return t.apply(e,arguments)}},ur=Array.isArray||function(t){return"Array"===E(t)},sr={};sr[dt("toStringTag")]="z";var cr="[object z]"===String(sr),fr=dt("toStringTag"),lr=Object,hr="Arguments"===E(function(){return arguments}()),pr=cr?E:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=lr(t),fr))?r:hr?E(e):"Object"===(n=E(e))&&T(e.callee)?"Arguments":n},vr=function(){},dr=L("Reflect","construct"),gr=/^\s*(?:class|function)\b/,yr=b(gr.exec),mr=!gr.test(vr),br=function(t){if(!T(t))return!1;try{return dr(vr,[],t),!0}catch(t){return!1}},wr=function(t){if(!T(t))return!1;switch(pr(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return mr||!!yr(gr,Kt(t))}catch(t){return!0}};wr.sham=!0;var Sr=!dr||a(function(){var t;return br(br.call)||!br(Object)||!br(function(){t=!0})||t})?wr:br,Er=dt("species"),Or=Array,xr=function(t,e){return new(function(t){var e;return ur(t)&&(Sr(e=t.constructor)&&(e===Or||ur(e.prototype))||M(e)&&null===(e=e[Er]))&&(e=void 0),void 0===e?Or:e}(t))(0===e?0:e)},Rr=b([].push),Pr=function(t){var e=1===t,r=2===t,n=3===t,o=4===t,i=6===t,a=7===t,u=5===t||i;return function(s,c,f,l){for(var h,p,v=it(s),d=R(v),g=de(d),y=ar(c,f),m=0,b=l||xr,w=e?b(s,g):r||a?b(s,0):void 0;g>m;m++)if((u||m in d)&&(p=y(h=d[m],m,v),t))if(e)w[m]=p;else if(p)switch(t){case 3:return!0;case 5:return h;case 6:return m;case 2:Rr(w,h)}else switch(t){case 4:return!1;case 7:Rr(w,h)}return i?-1:n||o?o:w}},Ar={forEach:Pr(0),map:Pr(1),filter:Pr(2),some:Pr(3),every:Pr(4),find:Pr(5),findIndex:Pr(6),filterReject:Pr(7)},jr=Ar.find,kr="find",Ir=!0;kr in[]&&Array(1)[kr](function(){Ir=!1}),Ce({target:"Array",proto:!0,forced:Ir},{find:function(t){return jr(this,t,arguments.length>1?arguments[1]:void 0)}}),Qe(kr),Ze("Array","find");var Tr=Ar.findIndex,Mr="findIndex",Lr=!0;Mr in[]&&Array(1)[Mr](function(){Lr=!1}),Ce({target:"Array",proto:!0,forced:Lr},{findIndex:function(t){return Tr(this,t,arguments.length>1?arguments[1]:void 0)}}),Qe(Mr),Ze("Array","findIndex");var Ur=TypeError,Nr=function(t){if(t>9007199254740991)throw Ur("Maximum allowed index exceeded");return t},Cr=function(t,e,r,n,o,i,a,u){for(var s,c,f=o,l=0,h=!!a&&ar(a,u);l0&&ur(s)?(c=de(s),f=Cr(t,e,s,c,f,i-1)-1):(Nr(f+1),t[f]=s),f++),l++;return f},_r=Cr;Ce({target:"Array",proto:!0},{flatMap:function(t){var e,r=it(this),n=de(r);return J(t),(e=xr(r,0)).length=_r(e,r,r,n,0,1,t,arguments.length>1?arguments[1]:void 0),e}}),Qe("flatMap"),Ze("Array","flatMap"),Ce({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=it(this),r=de(e),n=xr(e,0);return n.length=_r(n,e,e,r,0,void 0===t?1:ce(t)),n}}),Qe("flat"),Ze("Array","flat");var Fr,Br,Dr,zr=String,Wr=function(t){if("Symbol"===pr(t))throw new TypeError("Cannot convert a Symbol value to a string");return zr(t)},qr=b("".charAt),Hr=b("".charCodeAt),$r=b("".slice),Kr=function(t){return function(e,r){var n,o,i=Wr(j(e)),a=ce(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=Hr(i,a))<55296||n>56319||a+1===u||(o=Hr(i,a+1))<56320||o>57343?t?qr(i,a):n:t?$r(i,a,a+2):o-56320+(n-55296<<10)+65536}},Gr={codeAt:Kr(!1),charAt:Kr(!0)},Vr=!a(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),Yr=Xt("IE_PROTO"),Xr=Object,Jr=Xr.prototype,Qr=Vr?Xr.getPrototypeOf:function(t){var e=it(t);if(ut(e,Yr))return e[Yr];var r=e.constructor;return T(r)&&e instanceof r?r.prototype:e instanceof Xr?Jr:null},Zr=dt("iterator"),tn=!1;[].keys&&("next"in(Dr=[].keys())?(Br=Qr(Qr(Dr)))!==Object.prototype&&(Fr=Br):tn=!0);var en=!M(Fr)||a(function(){var t={};return Fr[Zr].call(t)!==t});en&&(Fr={}),T(Fr[Zr])||ie(Fr,Zr,function(){return this});var rn={IteratorPrototype:Fr,BUGGY_SAFARI_ITERATORS:tn},nn=Ct.f,on=dt("toStringTag"),an=function(t,e,r){t&&!r&&(t=t.prototype),t&&!ut(t,on)&&nn(t,on,{configurable:!0,value:e})},un={},sn=rn.IteratorPrototype,cn=function(){return this},fn=function(t,e,r,n){var o=e+" Iterator";return t.prototype=Ve(sn,{next:d(+!n,r)}),an(t,o,!1),un[o]=cn,t},ln=function(t,e,r){try{return b(J(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}},hn=String,pn=TypeError,vn=function(t){if(function(t){return M(t)||null===t}(t))return t;throw new pn("Can't set "+hn(t)+" as a prototype")},dn=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=ln(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return j(r),vn(n),M(r)?(e?t(r,n):r.__proto__=n,r):r}}():void 0),gn=zt.PROPER,yn=zt.CONFIGURABLE,mn=rn.IteratorPrototype,bn=rn.BUGGY_SAFARI_ITERATORS,wn=dt("iterator"),Sn="keys",En="values",On="entries",xn=function(){return this},Rn=function(t,e,r,n,o,i,a){fn(r,e,n);var u,s,c,l=function(t){if(t===o&&g)return g;if(!bn&&t&&t in v)return v[t];switch(t){case Sn:case En:case On:return function(){return new r(this,t)}}return function(){return new r(this)}},h=e+" Iterator",p=!1,v=t.prototype,d=v[wn]||v["@@iterator"]||o&&v[o],g=!bn&&d||l(o),y="Array"===e&&v.entries||d;if(y&&(u=Qr(y.call(new t)))!==Object.prototype&&u.next&&(Qr(u)!==mn&&(dn?dn(u,mn):T(u[wn])||ie(u,wn,xn)),an(u,h,!0)),gn&&o===En&&d&&d.name!==En&&(yn?_t(v,"name",En):(p=!0,g=function(){return f(d,this)})),o)if(s={values:l(En),keys:i?g:l(Sn),entries:l(On)},a)for(c in s)(bn||p||!(c in v))&&ie(v,c,s[c]);else Ce({target:e,proto:!0,forced:bn||p},s);return v[wn]!==g&&ie(v,wn,g,{name:o}),un[e]=g,s},Pn=function(t,e){return{value:t,done:e}},An=Gr.charAt,jn="String Iterator",kn=ne.set,In=ne.getterFor(jn);Rn(String,"String",function(t){kn(this,{type:jn,string:Wr(t),index:0})},function(){var t,e=In(this),r=e.string,n=e.index;return n>=r.length?Pn(void 0,!0):(t=An(r,n),e.index+=t.length,Pn(t,!1))});var Tn=function(t,e,r){var n,o;kt(t);try{if(!(n=Q(t,"return"))){if("throw"===e)throw r;return r}n=f(n,t)}catch(t){o=!0,n=t}if("throw"===e)throw r;if(o)throw n;return kt(n),r},Mn=function(t,e,r,n){try{return n?e(kt(r)[0],r[1]):e(r)}catch(e){Tn(t,"throw",e)}},Ln=dt("iterator"),Un=Array.prototype,Nn=function(t){return void 0!==t&&(un.Array===t||Un[Ln]===t)},Cn=function(t,e,r){u?Ct.f(t,e,d(0,r)):t[e]=r},_n=dt("iterator"),Fn=function(t){if(!P(t))return Q(t,_n)||Q(t,"@@iterator")||un[pr(t)]},Bn=TypeError,Dn=function(t,e){var r=arguments.length<2?Fn(t):e;if(J(r))return kt(f(r,t));throw new Bn(Y(t)+" is not iterable")},zn=Array,Wn=function(t){var e=it(t),r=Sr(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=void 0!==o;i&&(o=ar(o,n>2?arguments[2]:void 0));var a,u,s,c,l,h,p=Fn(e),v=0;if(!p||this===zn&&Nn(p))for(a=de(e),u=r?new this(a):zn(a);a>v;v++)h=i?o(e[v],v):e[v],Cn(u,v,h);else for(u=r?new this:[],l=(c=Dn(e,p)).next;!(s=f(l,c)).done;v++)h=i?Mn(c,o,[s.value,v],!0):s.value,Cn(u,v,h);return u.length=v,u},qn=dt("iterator"),Hn=!1;try{var $n=0,Kn={next:function(){return{done:!!$n++}},return:function(){Hn=!0}};Kn[qn]=function(){return this},Array.from(Kn,function(){throw 2})}catch(t){}var Gn=function(t,e){try{if(!e&&!Hn)return!1}catch(t){return!1}var r=!1;try{var n={};n[qn]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r},Vn=!Gn(function(t){Array.from(t)});Ce({target:"Array",stat:!0,forced:Vn},{from:Wn});var Yn=i,Xn=ye.includes,Jn=a(function(){return!Array(1).includes()});Ce({target:"Array",proto:!0,forced:Jn},{includes:function(t){return Xn(this,t,arguments.length>1?arguments[1]:void 0)}}),Qe("includes"),Ze("Array","includes");var Qn=Ct.f,Zn="Array Iterator",to=ne.set,eo=ne.getterFor(Zn),ro=Rn(Array,"Array",function(t,e){to(this,{type:Zn,target:k(t),index:0,kind:e})},function(){var t=eo(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=null,Pn(void 0,!0);switch(t.kind){case"keys":return Pn(r,!1);case"values":return Pn(e[r],!1)}return Pn([r,e[r]],!1)},"values"),no=un.Arguments=un.Array;if(Qe("keys"),Qe("values"),Qe("entries"),u&&"values"!==no.name)try{Qn(no,"name",{value:"values"})}catch(t){}cr||ie(Object.prototype,"toString",cr?{}.toString:function(){return"[object "+pr(this)+"]"},{unsafe:!0}),Ze("Array","values");var oo=Array,io=a(function(){function t(){}return!(oo.of.call(t)instanceof t)});Ce({target:"Array",stat:!0,forced:io},{of:function(){for(var t=0,e=arguments.length,r=new(Sr(this)?this:oo)(e);e>t;)Cn(r,t,arguments[t++]);return r.length=e,r}});var ao=dt("hasInstance"),uo=Function.prototype;ao in uo||Ct.f(uo,ao,{value:oe(function(t){if(!T(this)||!M(t))return!1;var e=this.prototype;return M(e)?U(e,t):t instanceof this},ao)}),dt("hasInstance");var so=function(t,e,r){return r.get&&oe(r.get,e,{getter:!0}),r.set&&oe(r.set,e,{setter:!0}),Ct.f(t,e,r)},co=zt.EXISTS,fo=Function.prototype,lo=b(fo.toString),ho=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,po=b(ho.exec);u&&!co&&so(fo,"name",{configurable:!0,get:function(){try{return po(ho,lo(this))[1]}catch(t){return""}}});var vo=b([].slice),go=Oe.f,yo="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],mo={f:function(t){return yo&&"Window"===E(t)?function(t){try{return go(t)}catch(t){return vo(yo)}}(t):go(k(t))}},bo=a(function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),wo=Object.isExtensible,So=a(function(){wo(1)})||bo?function(t){return!!M(t)&&(!bo||"ArrayBuffer"!==E(t))&&(!wo||wo(t))}:wo,Eo=!a(function(){return Object.isExtensible(Object.preventExtensions({}))}),Oo=e(function(t){var e=Ct.f,r=!1,n=lt("meta"),o=0,i=function(t){e(t,n,{value:{objectID:"O"+o++,weakData:{}}})},a=t.exports={enable:function(){a.enable=function(){},r=!0;var t=Oe.f,e=b([].splice),o={};o[n]=1,t(o).length&&(Oe.f=function(r){for(var o=t(r),i=0,a=o.length;ii;i++)if((u=y(t[i]))&&U(Po,u))return u;return new Ro(!1)}n=Dn(t,o)}for(s=h?t.next:n.next;!(c=f(s,n)).done;){try{u=y(c.value)}catch(t){Tn(n,"throw",t)}if("object"==typeof u&&u&&U(Po,u))return u}return new Ro(!1)},jo=TypeError,ko=function(t,e){if(U(e,t))return t;throw new jo("Incorrect invocation")},Io=function(t,e,r){var n,o;return dn&&T(n=e.constructor)&&n!==r&&M(o=n.prototype)&&o!==r.prototype&&dn(t,o),t},To=function(t,e,r){var n=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),u=n?"set":"add",s=i[t],c=s&&s.prototype,f=s,l={},h=function(t){var e=b(c[t]);ie(c,t,"add"===t?function(t){return e(this,0===t?0:t),this}:"delete"===t?function(t){return!(o&&!M(t))&&e(this,0===t?0:t)}:"get"===t?function(t){return o&&!M(t)?void 0:e(this,0===t?0:t)}:"has"===t?function(t){return!(o&&!M(t))&&e(this,0===t?0:t)}:function(t,r){return e(this,0===t?0:t,r),this})};if(Ue(t,!T(s)||!(o||c.forEach&&!a(function(){(new s).entries().next()}))))f=r.getConstructor(e,t,n,u),Oo.enable();else if(Ue(t,!0)){var p=new f,v=p[u](o?{}:-0,1)!==p,d=a(function(){p.has(1)}),g=Gn(function(t){new s(t)}),y=!o&&a(function(){for(var t=new s,e=5;e--;)t[u](e,e);return!t.has(-0)});g||((f=e(function(t,e){ko(t,c);var r=Io(new s,t,f);return P(e)||Ao(e,r[u],{that:r,AS_ENTRIES:n}),r})).prototype=c,c.constructor=f),(d||y)&&(h("delete"),h("has"),n&&h("get")),(y||v)&&h(u),o&&c.clear&&delete c.clear}return l[t]=f,Ce({global:!0,constructor:!0,forced:f!==s},l),an(f,t),o||r.setStrong(f,t,n),f},Mo=function(t,e,r){for(var n in e)ie(t,n,e[n],r);return t},Lo=dt("species"),Uo=function(t){var e=L(t);u&&e&&!e[Lo]&&so(e,Lo,{configurable:!0,get:function(){return this}})},No=Oo.fastKey,Co=ne.set,_o=ne.getterFor,Fo={getConstructor:function(t,e,r,n){var o=t(function(t,o){ko(t,i),Co(t,{type:e,index:Ve(null),first:null,last:null,size:0}),u||(t.size=0),P(o)||Ao(o,t[n],{that:t,AS_ENTRIES:r})}),i=o.prototype,a=_o(e),s=function(t,e,r){var n,o,i=a(t),s=c(t,e);return s?s.value=r:(i.last=s={index:o=No(e,!0),key:e,value:r,previous:n=i.last,next:null,removed:!1},i.first||(i.first=s),n&&(n.next=s),u?i.size++:t.size++,"F"!==o&&(i.index[o]=s)),t},c=function(t,e){var r,n=a(t),o=No(e);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key===e)return r};return Mo(i,{clear:function(){for(var t=a(this),e=t.first;e;)e.removed=!0,e.previous&&(e.previous=e.previous.next=null),e=e.next;t.first=t.last=null,t.index=Ve(null),u?t.size=0:this.size=0},delete:function(t){var e=this,r=a(e),n=c(e,t);if(n){var o=n.next,i=n.previous;delete r.index[n.index],n.removed=!0,i&&(i.next=o),o&&(o.previous=i),r.first===n&&(r.first=o),r.last===n&&(r.last=i),u?r.size--:e.size--}return!!n},forEach:function(t){for(var e,r=a(this),n=ar(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!c(this,t)}}),Mo(i,r?{get:function(t){var e=c(this,t);return e&&e.value},set:function(t,e){return s(this,0===t?0:t,e)}}:{add:function(t){return s(this,t=0===t?0:t,t)}}),u&&so(i,"size",{configurable:!0,get:function(){return a(this).size}}),o},setStrong:function(t,e,r){var n=e+" Iterator",o=_o(e),i=_o(n);Rn(t,e,function(t,e){Co(this,{type:n,target:t,state:o(t),kind:e,last:null})},function(){for(var t=i(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?Pn("keys"===e?r.key:"values"===e?r.value:[r.key,r.value],!1):(t.target=null,Pn(void 0,!0))},r?"entries":"values",!r,!0),Uo(e)}};To("Map",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Fo);var Bo=Map.prototype,Do={Map:Map,set:b(Bo.set),get:b(Bo.get),has:b(Bo.has),remove:b(Bo.delete),proto:Bo},zo=Do.Map,Wo=Do.has,qo=Do.get,Ho=Do.set,$o=b([].push),Ko=a(function(){return 1!==zo.groupBy("ab",function(t){return t}).get("a").length});Ce({target:"Map",stat:!0,forced:Ko},{groupBy:function(t,e){j(t),J(e);var r=new zo,n=0;return Ao(t,function(t){var o=e(t,n++);Wo(r,o)?$o(qo(r,o),t):Ho(r,o,[t])}),r}});var Go={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Vo=Et("span").classList,Yo=Vo&&Vo.constructor&&Vo.constructor.prototype,Xo=Yo===Object.prototype?void 0:Yo,Jo=dt("iterator"),Qo=ro.values,Zo=function(t,e){if(t){if(t[Jo]!==Qo)try{_t(t,Jo,Qo)}catch(e){t[Jo]=Qo}if(an(t,e,!0),Go[e])for(var r in ro)if(t[r]!==ro[r])try{_t(t,r,ro[r])}catch(e){t[r]=ro[r]}}};for(var ti in Go)Zo(i[ti]&&i[ti].prototype,ti);Zo(Xo,"DOMTokenList");var ei=function(t,e,r){return function(n){var o=it(n),i=arguments.length,a=i>1?arguments[1]:void 0,u=void 0!==a,s=u?ar(a,i>2?arguments[2]:void 0):void 0,c=new t,f=0;return Ao(o,function(t){var n=u?s(t,f++):t;r?e(c,kt(n)[0],n[1]):e(c,n)}),c}};Ce({target:"Map",stat:!0,forced:!0},{from:ei(Do.Map,Do.set,!0)});var ri=function(t,e,r){return function(){for(var n=new t,o=arguments.length,i=0;i1?arguments[1]:void 0);return!1!==di(e,function(t,n){if(!r(t,n,e))return!1},!0)}});var gi=Do.Map,yi=Do.set;Ce({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(t){var e=oi(this),r=ar(t,arguments.length>1?arguments[1]:void 0),n=new gi;return di(e,function(t,o){r(t,o,e)&&yi(n,o,t)}),n}}),Ce({target:"Map",proto:!0,real:!0,forced:!0},{find:function(t){var e=oi(this),r=ar(t,arguments.length>1?arguments[1]:void 0),n=di(e,function(t,n){if(r(t,n,e))return{value:t}},!0);return n&&n.value}}),Ce({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(t){var e=oi(this),r=ar(t,arguments.length>1?arguments[1]:void 0),n=di(e,function(t,n){if(r(t,n,e))return{key:n}},!0);return n&&n.key}}),Ce({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(t){return!0===di(oi(this),function(e){if((r=e)===(n=t)||r!=r&&n!=n)return!0;var r,n},!0)}});var mi=Do.Map;Ce({target:"Map",stat:!0,forced:!0},{keyBy:function(t,e){var r=new(T(this)?this:mi);J(e);var n=J(r.set);return Ao(t,function(t){f(n,r,e(t),t)}),r}}),Ce({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(t){var e=di(oi(this),function(e,r){if(e===t)return{key:r}},!0);return e&&e.key}});var bi=Do.Map,wi=Do.set;Ce({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(t){var e=oi(this),r=ar(t,arguments.length>1?arguments[1]:void 0),n=new bi;return di(e,function(t,o){wi(n,r(t,o,e),t)}),n}});var Si=Do.Map,Ei=Do.set;Ce({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(t){var e=oi(this),r=ar(t,arguments.length>1?arguments[1]:void 0),n=new Si;return di(e,function(t,o){Ei(n,o,r(t,o,e))}),n}});var Oi=Do.set;Ce({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(t){for(var e=oi(this),r=arguments.length,n=0;n1?arguments[1]:void 0);return!0===di(e,function(t,n){if(r(t,n,e))return!0},!0)}});var Ri=TypeError,Pi=Do.get,Ai=Do.has,ji=Do.set;Ce({target:"Map",proto:!0,real:!0,forced:!0},{update:function(t,e){var r=oi(this),n=arguments.length;J(e);var o=Ai(r,t);if(!o&&n<3)throw new Ri("Updating absent value");var i=o?Pi(r,t):J(n>2?arguments[2]:void 0)(t,r);return ji(r,t,e(i,t,r)),r}});var ki=TypeError,Ii=function(t,e){var r,n=kt(this),o=J(n.get),i=J(n.has),a=J(n.set),u=arguments.length>2?arguments[2]:void 0;if(!T(e)&&!T(u))throw new ki("At least one callback required");return f(i,n,t)?(r=f(o,n,t),T(e)&&(r=e(r),f(a,n,t,r))):T(u)&&(r=u(),f(a,n,t,r)),r};Ce({target:"Map",proto:!0,real:!0,forced:!0},{upsert:Ii}),Ce({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:Ii});var Ti=b(1..valueOf),Mi="\t\n\v\f\r                 \u2028\u2029\ufeff",Li=b("".replace),Ui=RegExp("^["+Mi+"]+"),Ni=RegExp("(^|[^"+Mi+"])["+Mi+"]+$"),Ci=function(t){return function(e){var r=Wr(j(e));return 1&t&&(r=Li(r,Ui,"")),2&t&&(r=Li(r,Ni,"$1")),r}},_i={start:Ci(1),end:Ci(2),trim:Ci(3)},Fi=Oe.f,Bi=Rt.f,Di=Ct.f,zi=_i.trim,Wi="Number",qi=i[Wi],Hi=qi.prototype,$i=i.TypeError,Ki=b("".slice),Gi=b("".charCodeAt),Vi=Ue(Wi,!qi(" 0o1")||!qi("0b1")||qi("+0x1")),Yi=function(t){var e,r=arguments.length<1?0:qi(function(t){var e=mt(t,"number");return"bigint"==typeof e?e:function(t){var e,r,n,o,i,a,u,s,c=mt(t,"number");if(G(c))throw new $i("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=zi(c),43===(e=Gi(c,0))||45===e){if(88===(r=Gi(c,2))||120===r)return NaN}else if(48===e){switch(Gi(c,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+c}for(a=(i=Ki(c,2)).length,u=0;uo)return NaN;return parseInt(i,n)}return+c}(e)}(t));return U(Hi,e=this)&&a(function(){Ti(e)})?Io(Object(r),this,Yi):r};Yi.prototype=Hi,Vi&&(Hi.constructor=Yi),Ce({global:!0,constructor:!0,wrap:!0,forced:Vi},{Number:Yi}),Vi&&function(t,e){for(var r,n=u?Fi(e):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;n.length>o;o++)ut(e,r=n[o])&&!ut(t,r)&&Di(t,r,Bi(e,r))}(Yn[Wi],qi),Ce({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)});var Xi=i.isFinite;Ce({target:"Number",stat:!0},{isFinite:Number.isFinite||function(t){return"number"==typeof t&&Xi(t)}});var Ji=Math.floor,Qi=Number.isInteger||function(t){return!M(t)&&isFinite(t)&&Ji(t)===t};Ce({target:"Number",stat:!0},{isInteger:Qi}),Ce({target:"Number",stat:!0},{isNaN:function(t){return t!=t}});var Zi=Math.abs;Ce({target:"Number",stat:!0},{isSafeInteger:function(t){return Qi(t)&&Zi(t)<=9007199254740991}}),Ce({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991}),Ce({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991});var ta=_i.trim,ea=b("".charAt),ra=i.parseFloat,na=i.Symbol,oa=na&&na.iterator,ia=1/ra(Mi+"-0")!=-Infinity||oa&&!a(function(){ra(Object(oa))})?function(t){var e=ta(Wr(t)),r=ra(e);return 0===r&&"-"===ea(e,0)?-0:r}:ra;Ce({target:"Number",stat:!0,forced:Number.parseFloat!==ia},{parseFloat:ia});var aa=_i.trim,ua=i.parseInt,sa=i.Symbol,ca=sa&&sa.iterator,fa=/^[+-]?0x/i,la=b(fa.exec),ha=8!==ua(Mi+"08")||22!==ua(Mi+"0x16")||ca&&!a(function(){ua(Object(ca))})?function(t,e){var r=aa(Wr(t));return ua(r,e>>>0||(la(fa,r)?16:10))}:ua;Ce({target:"Number",stat:!0,forced:Number.parseInt!==ha},{parseInt:ha});var pa=b(v.f),va=b([].push),da=u&&a(function(){var t=Object.create(null);return t[2]=2,!pa(t,2)}),ga=function(t){return function(e){for(var r,n=k(e),o=_e(n),i=da&&null===Qr(n),a=o.length,s=0,c=[];a>s;)r=o[s++],u&&!(i?r in n:pa(n,r))||va(c,t?[r,n[r]]:n[r]);return c}},ya={entries:ga(!0),values:ga(!1)},ma=ya.entries;Ce({target:"Object",stat:!0},{entries:function(t){return ma(t)}}),Ce({target:"Object",stat:!0,sham:!u},{getOwnPropertyDescriptors:function(t){for(var e,r,n=k(t),o=Rt.f,i=Pe(n),a={},u=0;i.length>u;)void 0!==(r=o(n,e=i[u++]))&&Cn(a,e,r);return a}});var ba=a(function(){_e(1)});Ce({target:"Object",stat:!0,forced:ba},{keys:function(t){return _e(it(t))}});var wa=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};Ce({target:"Object",stat:!0},{is:wa});var Sa=ya.values;Ce({target:"Object",stat:!0},{values:function(t){return Sa(t)}}),Ce({target:"Object",stat:!0},{hasOwn:ut});var Ea=Function.prototype,Oa=Ea.apply,xa=Ea.call,Ra="object"==typeof Reflect&&Reflect.apply||(s?xa.bind(Oa):function(){return xa.apply(Oa,arguments)}),Pa=!a(function(){Reflect.apply(function(){})});Ce({target:"Reflect",stat:!0,forced:Pa},{apply:function(t,e,r){return Ra(J(t),e,kt(r))}});var Aa=Function,ja=b([].concat),ka=b([].join),Ia={},Ta=s?Aa.bind:function(t){var e=J(this),r=e.prototype,n=vo(arguments,1),o=function(){var r=ja(n,vo(arguments));return this instanceof o?function(t,e,r){if(!ut(Ia,e)){for(var n=[],o=0;ob)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$c")}),gs=Oe.f,ys=ne.enforce,ms=dt("match"),bs=i.RegExp,ws=bs.prototype,Ss=i.SyntaxError,Es=b(ws.exec),Os=b("".charAt),xs=b("".replace),Rs=b("".indexOf),Ps=b("".slice),As=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,js=/a/g,ks=/a/g,Is=new bs(js)!==js,Ts=cs.MISSED_STICKY,Ms=cs.UNSUPPORTED_Y,Ls=u&&(!Is||Ts||ps||ds||a(function(){return ks[ms]=!1,bs(js)!==js||bs(ks)===ks||"/a/i"!==String(bs(js,"i"))}));if(Ue("RegExp",Ls)){for(var Us=function(t,e){var r,n,o,i,a,u,s=U(ws,this),c=es(t),f=void 0===e,l=[],h=t;if(!s&&c&&f&&t.constructor===Us)return t;if((c||U(ws,t))&&(t=t.source,f&&(e=os(h))),t=void 0===t?"":Wr(t),e=void 0===e?"":Wr(e),h=t,ps&&"dotAll"in js&&(n=!!e&&Rs(e,"s")>-1)&&(e=xs(e,/s/g,"")),r=e,Ts&&"sticky"in js&&(o=!!e&&Rs(e,"y")>-1)&&Ms&&(e=xs(e,/y/g,"")),ds&&(i=function(t){for(var e,r=t.length,n=0,o="",i=[],a=Ve(null),u=!1,s=!1,c=0,f="";n<=r;n++){if("\\"===(e=Os(t,n)))e+=Os(t,++n);else if("]"===e)u=!1;else if(!u)switch(!0){case"["===e:u=!0;break;case"("===e:if(o+=e,"?:"===Ps(t,n+1,n+3))continue;Es(As,Ps(t,n+1))&&(n+=2,s=!0),c++;continue;case">"===e&&s:if(""===f||ut(a,f))throw new Ss("Invalid capture group name");a[f]=!0,i[i.length]=[f,c],s=!1,f="";continue}s?f+=e:o+=e}return[o,i]}(t),t=i[0],l=i[1]),a=Io(bs(t,e),s?this:ws,Us),(n||o||l.length)&&(u=ys(a),n&&(u.dotAll=!0,u.raw=Us(function(t){for(var e,r=t.length,n=0,o="",i=!1;n<=r;n++)"\\"!==(e=Os(t,n))?i||"."!==e?("["===e?i=!0:"]"===e&&(i=!1),o+=e):o+="[\\s\\S]":o+=e+Os(t,++n);return o}(t),r)),o&&(u.sticky=!0),l.length&&(u.groups=l)),t!==h)try{_t(a,"source",""===h?"(?:)":h)}catch(t){}return a},Ns=gs(bs),Cs=0;Ns.length>Cs;)ls(Us,bs,Ns[Cs++]);ws.constructor=Us,Us.prototype=ws,ie(i,"RegExp",Us,{constructor:!0})}Uo("RegExp");var _s=zt.PROPER,Fs="toString",Bs=RegExp.prototype,Ds=Bs[Fs];(a(function(){return"/a/b"!==Ds.call({source:"a",flags:"b"})})||_s&&Ds.name!==Fs)&&ie(Bs,Fs,function(){var t=kt(this);return"/"+Wr(t.source)+"/"+Wr(os(t))},{unsafe:!0});var zs=ne.get,Ws=RegExp.prototype,qs=TypeError;u&&ps&&so(Ws,"dotAll",{configurable:!0,get:function(){if(this!==Ws){if("RegExp"===E(this))return!!zs(this).dotAll;throw new qs("Incompatible receiver, RegExp required")}}});var Hs=ne.get,$s=nt("native-string-replace",String.prototype.replace),Ks=RegExp.prototype.exec,Gs=Ks,Vs=b("".charAt),Ys=b("".indexOf),Xs=b("".replace),Js=b("".slice),Qs=function(){var t=/a/,e=/b*/g;return f(Ks,t,"a"),f(Ks,e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),Zs=cs.BROKEN_CARET,tc=void 0!==/()??/.exec("")[1];(Qs||tc||Zs||ps||ds)&&(Gs=function(t){var e,r,n,o,i,a,u,s=this,c=Hs(s),l=Wr(t),h=c.raw;if(h)return h.lastIndex=s.lastIndex,e=f(Gs,h,l),s.lastIndex=h.lastIndex,e;var p=c.groups,v=Zs&&s.sticky,d=f(rs,s),g=s.source,y=0,m=l;if(v&&(d=Xs(d,"y",""),-1===Ys(d,"g")&&(d+="g"),m=Js(l,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==Vs(l,s.lastIndex-1))&&(g="(?: "+g+")",m=" "+m,y++),r=new RegExp("^(?:"+g+")",d)),tc&&(r=new RegExp("^"+g+"$(?!\\s)",d)),Qs&&(n=s.lastIndex),o=f(Ks,v?r:s,m),v?o?(o.input=Js(o.input,y),o[0]=Js(o[0],y),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Qs&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),tc&&o&&o.length>1&&f($s,o[0],r,function(){for(i=1;i]*>)/g,Oc=/\$([$&'`]|\d{1,2})/g,xc=function(t,e,r,n,o,i){var a=r+t.length,u=n.length,s=Oc;return void 0!==o&&(o=it(o),s=Ec),wc(i,s,function(i,s){var c;switch(bc(s,0)){case"$":return"$";case"&":return t;case"`":return Sc(e,0,r);case"'":return Sc(e,a);case"<":c=o[Sc(s,1,-1)];break;default:var f=+s;if(0===f)return i;if(f>u){var l=mc(f/10);return 0===l?i:l<=u?void 0===n[l-1]?bc(s,1):n[l-1]+bc(s,1):i}c=n[f-1]}return void 0===c?"":c})},Rc=dt("replace"),Pc=Math.max,Ac=Math.min,jc=b([].concat),kc=b([].push),Ic=b("".indexOf),Tc=b("".slice),Mc="$0"==="a".replace(/./,"$0"),Lc=!!/./[Rc]&&""===/./[Rc]("a","$0"),Uc=!a(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")});pc("replace",function(t,e,r){var n=Lc?"$":"$0";return[function(t,r){var n=j(this),o=P(t)?void 0:Q(t,Rc);return o?f(o,t,n,r):f(e,Wr(n),t,r)},function(t,o){var i=kt(this),a=Wr(t);if("string"==typeof o&&-1===Ic(o,n)&&-1===Ic(o,"$<")){var u=r(e,i,a,o);if(u.done)return u.value}var s=T(o);s||(o=Wr(o));var c,f=i.global;f&&(c=i.unicode,i.lastIndex=0);for(var l,h=[];null!==(l=yc(i,a))&&(kc(h,l),f);)""===Wr(l[0])&&(i.lastIndex=dc(a,ve(i.lastIndex),c));for(var p,v="",d=0,g=0;g=d&&(v+=Tc(a,d,b)+y,d=b+m.length)}return v+Tc(a,d)}]},!Uc||!Mc||Lc),pc("search",function(t,e,r){return[function(e){var r=j(this),n=P(e)?void 0:Q(e,t);return n?f(n,e,r):new RegExp(e)[t](Wr(r))},function(t){var n=kt(this),o=Wr(t),i=r(e,n,o);if(i.done)return i.value;var a=n.lastIndex;wa(a,0)||(n.lastIndex=0);var u=yc(n,o);return wa(n.lastIndex,a)||(n.lastIndex=a),null===u?-1:u.index}]});var Nc=dt("species"),Cc=function(t,e){var r,n=kt(t).constructor;return void 0===n||P(r=kt(n)[Nc])?e:La(r)},_c=cs.UNSUPPORTED_Y,Fc=Math.min,Bc=b([].push),Dc=b("".slice),zc=!a(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]}),Wc="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;pc("split",function(t,e,r){var n="0".split(void 0,0).length?function(t,r){return void 0===t&&0===r?[]:f(e,this,t,r)}:e;return[function(e,r){var o=j(this),i=P(e)?void 0:Q(e,t);return i?f(i,e,o,r):f(n,Wr(o),e,r)},function(t,o){var i=kt(this),a=Wr(t);if(!Wc){var u=r(n,i,a,o,n!==e);if(u.done)return u.value}var s=Cc(i,RegExp),c=i.unicode,f=new s(_c?"^(?:"+i.source+")":i,(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(_c?"g":"y")),l=void 0===o?4294967295:o>>>0;if(0===l)return[];if(0===a.length)return null===yc(f,a)?[a]:[];for(var h=0,p=0,v=[];p0;(n>>>=1)&&(e+=e))1&n&&(r+=e);return r},Kc=b($c),Gc=b("".slice),Vc=Math.ceil,Yc=function(t){return function(e,r,n){var o,i,a=Wr(j(e)),u=ve(r),s=a.length,c=void 0===n?" ":Wr(n);return u<=s||""===c?a:((i=Kc(c,Vc((o=u-s)/c.length))).length>o&&(i=Gc(i,0,o)),t?a+i:i+a)}},Xc={start:Yc(!1),end:Yc(!0)},Jc=Xc.start,Qc=Array,Zc=RegExp.escape,tf=b("".charAt),ef=b("".charCodeAt),rf=b(1.1.toString),nf=b([].join),of=/^[0-9a-z]/i,af=/^[$()*+./?[\\\]^{|}]/,uf=RegExp("^[!\"#%&',\\-:;<=>@`~"+Mi+"]"),sf=b(of.exec),cf={"\t":"t","\n":"n","\v":"v","\f":"f","\r":"r"},ff=function(t){var e=rf(ef(t,0),16);return e.length<3?"\\x"+Jc(e,2,"0"):"\\u"+Jc(e,4,"0")},lf=!Zc||"\\x61b"!==Zc("ab");Ce({target:"RegExp",stat:!0,forced:lf},{escape:function(t){!function(t){if("string"==typeof t)return t;throw new qc("Argument is not a string")}(t);for(var e=t.length,r=Qc(e),n=0;n=56320||n+1>=e||56320!=(64512&ef(t,n+1))?r[n]=ff(o):(r[n]=o,r[++n]=tf(t,n))}}return nf(r,"")}}),To("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Fo);var hf=Set.prototype,pf={Set:Set,add:b(hf.add),has:b(hf.has),remove:b(hf.delete),proto:hf},vf=pf.has,df=function(t){return vf(t),t},gf=pf.Set,yf=pf.proto,mf=b(yf.forEach),bf=b(yf.keys),wf=bf(new gf).next,Sf=function(t,e,r){return r?ci({iterator:bf(t),next:wf},e):mf(t,e)},Ef=pf.Set,Of=pf.add,xf=function(t){var e=new Ef;return Sf(t,function(t){Of(e,t)}),e},Rf=ln(pf.proto,"size","get")||function(t){return t.size},Pf="Invalid size",Af=RangeError,jf=TypeError,kf=Math.max,If=function(t,e){this.set=t,this.size=kf(e,0),this.has=J(t.has),this.keys=J(t.keys)};If.prototype={getIterator:function(){return{iterator:t=kt(f(this.keys,this.set)),next:t.next,done:!1};var t},includes:function(t){return f(this.has,this.set,t)}};var Tf=function(t){kt(t);var e=+t.size;if(e!=e)throw new jf(Pf);var r=ce(e);if(r<0)throw new Af(Pf);return new If(t,r)},Mf=pf.has,Lf=pf.remove,Uf=function(t){var e=df(this),r=Tf(t),n=xf(e);return Rf(e)<=r.size?Sf(e,function(t){r.includes(t)&&Lf(n,t)}):ci(r.getIterator(),function(t){Mf(e,t)&&Lf(n,t)}),n},Nf=function(t){return{size:t,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},Cf=function(t){var e=L("Set");try{(new e)[t](Nf(0));try{return(new e)[t](Nf(-1)),!1}catch(t){return!0}}catch(t){return!1}};Ce({target:"Set",proto:!0,real:!0,forced:!Cf("difference")},{difference:Uf});var _f=pf.Set,Ff=pf.add,Bf=pf.has,Df=function(t){var e=df(this),r=Tf(t),n=new _f;return Rf(e)>r.size?ci(r.getIterator(),function(t){Bf(e,t)&&Ff(n,t)}):Sf(e,function(t){r.includes(t)&&Ff(n,t)}),n},zf=!Cf("intersection")||a(function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))});Ce({target:"Set",proto:!0,real:!0,forced:zf},{intersection:Df});var Wf=pf.has,qf=function(t){var e=df(this),r=Tf(t);if(Rf(e)<=r.size)return!1!==Sf(e,function(t){if(r.includes(t))return!1},!0);var n=r.getIterator();return!1!==ci(n,function(t){if(Wf(e,t))return Tn(n,"normal",!1)})};Ce({target:"Set",proto:!0,real:!0,forced:!Cf("isDisjointFrom")},{isDisjointFrom:qf});var Hf=function(t){var e=df(this),r=Tf(t);return!(Rf(e)>r.size)&&!1!==Sf(e,function(t){if(!r.includes(t))return!1},!0)};Ce({target:"Set",proto:!0,real:!0,forced:!Cf("isSubsetOf")},{isSubsetOf:Hf});var $f=pf.has,Kf=function(t){var e=df(this),r=Tf(t);if(Rf(e)1?arguments[1]:void 0);return!1!==Sf(e,function(t){if(!r(t,t,e))return!1},!0)}});var el=dt("iterator"),rl=Object,nl=L("Set"),ol=function(t){return function(t){return M(t)&&"number"==typeof t.size&&T(t.has)&&T(t.keys)}(t)?t:function(t){if(P(t))return!1;var e=rl(t);return void 0!==e[el]||"@@iterator"in e||ut(un,pr(e))}(t)?new nl(t):t};Ce({target:"Set",proto:!0,real:!0,forced:!0},{difference:function(t){return f(Uf,this,ol(t))}});var il=pf.Set,al=pf.add;Ce({target:"Set",proto:!0,real:!0,forced:!0},{filter:function(t){var e=df(this),r=ar(t,arguments.length>1?arguments[1]:void 0),n=new il;return Sf(e,function(t){r(t,t,e)&&al(n,t)}),n}}),Ce({target:"Set",proto:!0,real:!0,forced:!0},{find:function(t){var e=df(this),r=ar(t,arguments.length>1?arguments[1]:void 0),n=Sf(e,function(t){if(r(t,t,e))return{value:t}},!0);return n&&n.value}}),Ce({target:"Set",proto:!0,real:!0,forced:!0},{intersection:function(t){return f(Df,this,ol(t))}}),Ce({target:"Set",proto:!0,real:!0,forced:!0},{isDisjointFrom:function(t){return f(qf,this,ol(t))}}),Ce({target:"Set",proto:!0,real:!0,forced:!0},{isSubsetOf:function(t){return f(Hf,this,ol(t))}}),Ce({target:"Set",proto:!0,real:!0,forced:!0},{isSupersetOf:function(t){return f(Kf,this,ol(t))}});var ul=b([].join),sl=b([].push);Ce({target:"Set",proto:!0,real:!0,forced:!0},{join:function(t){var e=df(this),r=void 0===t?",":Wr(t),n=[];return Sf(e,function(t){sl(n,t)}),ul(n,r)}});var cl=pf.Set,fl=pf.add;Ce({target:"Set",proto:!0,real:!0,forced:!0},{map:function(t){var e=df(this),r=ar(t,arguments.length>1?arguments[1]:void 0),n=new cl;return Sf(e,function(t){fl(n,r(t,t,e))}),n}});var ll=TypeError;Ce({target:"Set",proto:!0,real:!0,forced:!0},{reduce:function(t){var e=df(this),r=arguments.length<2,n=r?void 0:arguments[1];if(J(t),Sf(e,function(o){r?(r=!1,n=o):n=t(n,o,o,e)}),r)throw new ll("Reduce of empty set with no initial value");return n}}),Ce({target:"Set",proto:!0,real:!0,forced:!0},{some:function(t){var e=df(this),r=ar(t,arguments.length>1?arguments[1]:void 0);return!0===Sf(e,function(t){if(r(t,t,e))return!0},!0)}}),Ce({target:"Set",proto:!0,real:!0,forced:!0},{symmetricDifference:function(t){return f(Xf,this,ol(t))}}),Ce({target:"Set",proto:!0,real:!0,forced:!0},{union:function(t){return f(Qf,this,ol(t))}});var hl=dt("species"),pl=dt("isConcatSpreadable"),vl=W>=51||!a(function(){var t=[];return t[pl]=!1,t.concat()[0]!==t}),dl=function(t){if(!M(t))return!1;var e=t[pl];return void 0!==e?!!e:ur(t)},gl=!(vl&&(W>=51||!a(function(){var t=[];return(t.constructor={})[hl]=function(){return{foo:1}},1!==t.concat(Boolean).foo})));Ce({target:"Array",proto:!0,arity:1,forced:gl},{concat:function(t){var e,r,n,o,i,a=it(this),u=xr(a,0),s=0;for(e=-1,n=arguments.length;e1?arguments[1]:void 0,n=e.length,o=void 0===r?n:ip(ve(r),n),i=Wr(t);return op(e,o-i.length,o)===i}}),Ze("String","endsWith");var sp=RangeError,cp=String.fromCharCode,fp=String.fromCodePoint,lp=b([].join);Ce({target:"String",stat:!0,arity:1,forced:!!fp&&1!==fp.length},{fromCodePoint:function(t){for(var e,r=[],n=arguments.length,o=0;n>o;){if(e=+arguments[o++],he(e,1114111)!==e)throw new sp(e+" is not a valid code point");r[o]=e<65536?cp(e):cp(55296+((e-=65536)>>10),e%1024+56320)}return lp(r,"")}});var hp=b("".indexOf);Ce({target:"String",proto:!0,forced:!rp("includes")},{includes:function(t){return!!~hp(Wr(j(this)),Wr(tp(t)),arguments.length>1?arguments[1]:void 0)}}),Ze("String","includes"),b(un.String);var pp=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(_),vp=Xc.start;Ce({target:"String",proto:!0,forced:pp},{padStart:function(t){return vp(this,t,arguments.length>1?arguments[1]:void 0)}}),Ze("String","padStart");var dp=Xc.end;Ce({target:"String",proto:!0,forced:pp},{padEnd:function(t){return dp(this,t,arguments.length>1?arguments[1]:void 0)}}),Ze("String","padEnd");var gp=b([].push),yp=b([].join);Ce({target:"String",stat:!0},{raw:function(t){var e=k(it(t).raw),r=de(e);if(!r)return"";for(var n=arguments.length,o=[],i=0;;){if(gp(o,Wr(e[i++])),i===r)return yp(o,"");i1?arguments[1]:void 0,e.length)),n=Wr(t);return bp(e,r,r+n.length)===n}}),Ze("String","startsWith");var Op=zt.PROPER,xp=function(t){return a(function(){return!!Mi[t]()||"​…᠎"!=="​…᠎"[t]()||Op&&Mi[t].name!==t})},Rp=_i.start,Pp=xp("trimStart")?function(){return Rp(this)}:"".trimStart;Ce({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==Pp},{trimLeft:Pp}),Ce({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==Pp},{trimStart:Pp}),Ze("String","trimLeft");var Ap=_i.end,jp=xp("trimEnd")?function(){return Ap(this)}:"".trimEnd;Ce({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==jp},{trimRight:jp}),Ce({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==jp},{trimEnd:jp}),Ze("String","trimRight");var kp=Object.getOwnPropertyDescriptor,Ip=function(t){if(!u)return i[t];var e=kp(i,t);return e&&e.value},Tp=dt("iterator"),Mp=!a(function(){var t=new URL("b?a=1&b=2&c=3","https://a"),e=t.searchParams,r=new URLSearchParams("a=1&a=2&b=3"),n="";return t.pathname="c%20d",e.forEach(function(t,r){e.delete("b"),n+=r+t}),r.delete("a",2),r.delete("b",void 0),!e.size&&!u||!e.sort||"https://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[Tp]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==n||"x"!==new URL("https://x",void 0).host}),Lp=TypeError,Up=function(t,e){if(t0;)t[o]=t[--o];o!==i++&&(t[o]=n)}else for(var a=Np(r/2),u=Cp(vo(t,0,a),e),s=Cp(vo(t,a),e),c=u.length,f=s.length,l=0,h=0;l0&&0!=(t&r);r>>=1)e++;return e},pv=function(t){var e=null;switch(t.length){case 1:e=t[0];break;case 2:e=(31&t[0])<<6|63&t[1];break;case 3:e=(15&t[0])<<12|(63&t[1])<<6|63&t[2];break;case 4:e=(7&t[0])<<18|(63&t[1])<<12|(63&t[2])<<6|63&t[3]}return e>1114111?null:e},vv=function(t){for(var e=(t=nv(t,cv," ")).length,r="",n=0;ne){r+="%",n++;continue}var i=lv(t,n+1);if(i!=i){r+=o,n++;continue}n+=2;var a=hv(i);if(0===a)o=Jp(i);else{if(1===a||a>4){r+="�",n++;continue}for(var u=[i],s=1;se||"%"!==tv(t,n));){var c=lv(t,n+1);if(c!=c){n+=3;break}if(c>191||c<128)break;rv(u,c),n+=2,s++}if(u.length!==a){r+="�";continue}var f=pv(u);null===f?r+="�":o=Qp(f)}}r+=o,n++}return r},dv=/[!'()~]|%20/g,gv={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},yv=function(t){return gv[t]},mv=function(t){return nv(Xp(t),dv,yv)},bv=fn(function(t,e){zp(this,{type:Dp,target:Wp(t).entries,index:0,kind:e})},Bp,function(){var t=qp(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=null,Pn(void 0,!0);var n=e[r];switch(t.kind){case"keys":return Pn(n.key,!1);case"values":return Pn(n.value,!1)}return Pn([n.key,n.value],!1)},!0),wv=function(t){this.entries=[],this.url=null,void 0!==t&&(M(t)?this.parseObject(t):this.parseQuery("string"==typeof t?"?"===tv(t,0)?uv(t,1):t:Wr(t)))};wv.prototype={type:Bp,bindURL:function(t){this.url=t,this.update()},parseObject:function(t){var e,r,n,o,i,a,u,s=this.entries,c=Fn(t);if(c)for(r=(e=Dn(t,c)).next;!(n=f(r,e)).done;){if(o=Dn(kt(n.value)),(a=f(i=o.next,o)).done||(u=f(i,o)).done||!f(i,o).done)throw new Yp("Expected sequence with length 2");rv(s,{key:Wr(a.value),value:Wr(u.value)})}else for(var l in t)ut(t,l)&&rv(s,{key:l,value:Wr(t[l])})},parseQuery:function(t){if(t)for(var e,r,n=this.entries,o=av(t,"&"),i=0;i0?arguments[0]:void 0));u||(this.size=t.entries.length)},Ev=Sv.prototype;if(Mo(Ev,{append:function(t,e){var r=Wp(this);Up(arguments.length,2),rv(r.entries,{key:Wr(t),value:Wr(e)}),u||this.length++,r.updateURL()},delete:function(t){for(var e=Wp(this),r=Up(arguments.length,1),n=e.entries,o=Wr(t),i=r<2?void 0:arguments[1],a=void 0===i?i:Wr(i),s=0;se.key?1:-1}),t.updateURL()},forEach:function(t){for(var e,r=Wp(this).entries,n=ar(t,arguments.length>1?arguments[1]:void 0),o=0;o1?Rv(arguments[1]):{})}}),T($p)){var Pv=function(t){return ko(this,Gp),new $p(t,arguments.length>1?Rv(arguments[1]):{})};Gp.constructor=Pv,Pv.prototype=Gp,Ce({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Pv})}}var Av={URLSearchParams:Sv,getState:Wp},jv=URLSearchParams,kv=jv.prototype,Iv=b(kv.append),Tv=b(kv.delete),Mv=b(kv.forEach),Lv=b([].push),Uv=new jv("a=1&a=2&b=3");Uv.delete("a",1),Uv.delete("b",void 0),Uv+""!="a=2"&&ie(kv,"delete",function(t){var e=arguments.length,r=e<2?void 0:arguments[1];if(e&&void 0===r)return Tv(this,t);var n=[];Mv(this,function(t,e){Lv(n,{key:e,value:t})}),Up(e,1);for(var o,i=Wr(t),a=Wr(r),u=0,s=0,c=!1,f=n.length;uo;)for(var s,c=R(arguments[o++]),l=i?$v(_e(c),i(c)):_e(c),h=l.length,p=0;h>p;)s=l[p++],u&&!f(a,c,s)||(r[s]=c[s]);return r}:qv,Gv=2147483647,Vv=/[^\0-\u007E]/,Yv=/[.\u3002\uFF0E\uFF61]/g,Xv="Overflow: input needs wider integers to process",Jv=RangeError,Qv=b(Yv.exec),Zv=Math.floor,td=String.fromCharCode,ed=b("".charCodeAt),rd=b([].join),nd=b([].push),od=b("".replace),id=b("".split),ad=b("".toLowerCase),ud=function(t){return t+22+75*(t<26)},sd=function(t,e,r){var n=0;for(t=r?Zv(t/700):t>>1,t+=Zv(t/e);t>455;)t=Zv(t/35),n+=36;return Zv(n+36*t/(t+38))},cd=function(t){var e=[];t=function(t){for(var e=[],r=0,n=t.length;r=55296&&o<=56319&&r=i&&nZv((Gv-a)/l))throw new Jv(Xv);for(a+=(f-i)*l,i=f,r=0;rGv)throw new Jv(Xv);if(n===i){for(var h=a,p=36;;){var v=p<=u?1:p>=u+26?26:p-u;if(h?@[\\\]^|]/,qd=/[\0\t\n\r #/:<>?@[\\\]^|]/,Hd=/^[\u0000-\u0020]+/,$d=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,Kd=/[\t\n\r]/g,Gd=function(t){var e,r,n,o;if("number"==typeof t){for(e=[],r=0;r<4;r++)Td(e,t%256),t=md(t/256);return Ed(e,".")}if("object"==typeof t){for(e="",n=function(t){for(var e=null,r=1,n=null,o=0,i=0;i<8;i++)0!==t[i]?(o>r&&(e=n,r=o),n=null,o=0):(null===n&&(n=i),++o);return o>r?n:e}(t),r=0;r<8;r++)o&&0===t[r]||(o&&(o=!1),n===r?(e+=r?":":"::",o=!0):(e+=Od(t[r],16),r<7&&(e+=":")));return"["+e+"]"}return t},Vd={},Yd=Kv({},Vd,{" ":1,'"':1,"<":1,">":1,"`":1}),Xd=Kv({},Yd,{"#":1,"?":1,"{":1,"}":1}),Jd=Kv({},Xd,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Qd=function(t,e){var r=fd(t,0);return r>32&&r<127&&!ut(e,t)?t:encodeURIComponent(t)},Zd={ftp:21,file:null,http:80,https:443,ws:80,wss:443},tg=function(t,e){var r;return 2===t.length&&Sd(Nd,wd(t,0))&&(":"===(r=wd(t,1))||!e&&"|"===r)},eg=function(t){var e;return t.length>1&&tg(kd(t,0,2))&&(2===t.length||"/"===(e=wd(t,2))||"\\"===e||"?"===e||"#"===e)},rg=function(t){return"."===t||"%2e"===Id(t)},ng={},og={},ig={},ag={},ug={},sg={},cg={},fg={},lg={},hg={},pg={},vg={},dg={},gg={},yg={},mg={},bg={},wg={},Sg={},Eg={},Og={},xg=function(t,e,r){var n,o,i,a=Wr(t);if(e){if(o=this.parse(a))throw new gd(o);this.searchParams=null}else{if(void 0!==r&&(n=new xg(r,!0)),o=this.parse(a,null,n))throw new gd(o);(i=vd(new pd)).bindURL(this),this.searchParams=i}};xg.prototype={type:"URL",parse:function(t,e,r){var n,o,i,a,u,s=this,c=e||ng,f=0,l="",h=!1,p=!1,v=!1;for(t=Wr(t),e||(s.scheme="",s.username="",s.password="",s.host=null,s.port=null,s.path=[],s.query=null,s.fragment=null,s.cannotBeABaseURL=!1,t=Pd(t,Hd,""),t=Pd(t,$d,"$1")),t=Pd(t,Kd,""),n=Wn(t);f<=n.length;){switch(o=n[f],c){case ng:if(!o||!Sd(Nd,o)){if(e)return Md;c=ig;continue}l+=Id(o),c=og;break;case og:if(o&&(Sd(Cd,o)||"+"===o||"-"===o||"."===o))l+=Id(o);else{if(":"!==o){if(e)return Md;l="",c=ig,f=0;continue}if(e&&(s.isSpecial()!==ut(Zd,l)||"file"===l&&(s.includesCredentials()||null!==s.port)||"file"===s.scheme&&!s.host))return;if(s.scheme=l,e)return void(s.isSpecial()&&Zd[s.scheme]===s.port&&(s.port=null));l="","file"===s.scheme?c=gg:s.isSpecial()&&r&&r.scheme===s.scheme?c=ag:s.isSpecial()?c=fg:"/"===n[f+1]?(c=ug,f++):(s.cannotBeABaseURL=!0,Rd(s.path,""),c=Sg)}break;case ig:if(!r||r.cannotBeABaseURL&&"#"!==o)return Md;if(r.cannotBeABaseURL&&"#"===o){s.scheme=r.scheme,s.path=vo(r.path),s.query=r.query,s.fragment="",s.cannotBeABaseURL=!0,c=Og;break}c="file"===r.scheme?gg:sg;continue;case ag:if("/"!==o||"/"!==n[f+1]){c=sg;continue}c=lg,f++;break;case ug:if("/"===o){c=hg;break}c=wg;continue;case sg:if(s.scheme=r.scheme,o===Wv)s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=vo(r.path),s.query=r.query;else if("/"===o||"\\"===o&&s.isSpecial())c=cg;else if("?"===o)s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=vo(r.path),s.query="",c=Eg;else{if("#"!==o){s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=vo(r.path),s.path.length--,c=wg;continue}s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=vo(r.path),s.query=r.query,s.fragment="",c=Og}break;case cg:if(!s.isSpecial()||"/"!==o&&"\\"!==o){if("/"!==o){s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,c=wg;continue}c=hg}else c=lg;break;case fg:if(c=lg,"/"!==o||"/"!==wd(l,f+1))continue;f++;break;case lg:if("/"!==o&&"\\"!==o){c=hg;continue}break;case hg:if("@"===o){h&&(l="%40"+l),h=!0,i=Wn(l);for(var d=0;d65535)return Ud;s.port=s.isSpecial()&&m===Zd[s.scheme]?null:m,l=""}if(e)return;c=bg;continue}return Ud}l+=o;break;case gg:if(s.scheme="file","/"===o||"\\"===o)c=yg;else{if(!r||"file"!==r.scheme){c=wg;continue}switch(o){case Wv:s.host=r.host,s.path=vo(r.path),s.query=r.query;break;case"?":s.host=r.host,s.path=vo(r.path),s.query="",c=Eg;break;case"#":s.host=r.host,s.path=vo(r.path),s.query=r.query,s.fragment="",c=Og;break;default:eg(Ed(vo(n,f),""))||(s.host=r.host,s.path=vo(r.path),s.shortenPath()),c=wg;continue}}break;case yg:if("/"===o||"\\"===o){c=mg;break}r&&"file"===r.scheme&&!eg(Ed(vo(n,f),""))&&(tg(r.path[0],!0)?Rd(s.path,r.path[0]):s.host=r.host),c=wg;continue;case mg:if(o===Wv||"/"===o||"\\"===o||"?"===o||"#"===o){if(!e&&tg(l))c=wg;else if(""===l){if(s.host="",e)return;c=bg}else{if(a=s.parseHost(l))return a;if("localhost"===s.host&&(s.host=""),e)return;l="",c=bg}continue}l+=o;break;case bg:if(s.isSpecial()){if(c=wg,"/"!==o&&"\\"!==o)continue}else if(e||"?"!==o)if(e||"#"!==o){if(o!==Wv&&(c=wg,"/"!==o))continue}else s.fragment="",c=Og;else s.query="",c=Eg;break;case wg:if(o===Wv||"/"===o||"\\"===o&&s.isSpecial()||!e&&("?"===o||"#"===o)){if(".."===(u=Id(u=l))||"%2e."===u||".%2e"===u||"%2e%2e"===u?(s.shortenPath(),"/"===o||"\\"===o&&s.isSpecial()||Rd(s.path,"")):rg(l)?"/"===o||"\\"===o&&s.isSpecial()||Rd(s.path,""):("file"===s.scheme&&!s.path.length&&tg(l)&&(s.host&&(s.host=""),l=wd(l,0)+":"),Rd(s.path,l)),l="","file"===s.scheme&&(o===Wv||"?"===o||"#"===o))for(;s.path.length>1&&""===s.path[0];)Ad(s.path);"?"===o?(s.query="",c=Eg):"#"===o&&(s.fragment="",c=Og)}else l+=Qd(o,Xd);break;case Sg:"?"===o?(s.query="",c=Eg):"#"===o?(s.fragment="",c=Og):o!==Wv&&(s.path[0]+=Qd(o,Vd));break;case Eg:e||"#"!==o?o!==Wv&&("'"===o&&s.isSpecial()?s.query+="%27":s.query+="#"===o?"%23":Qd(o,Vd)):(s.fragment="",c=Og);break;case Og:o!==Wv&&(s.fragment+=Qd(o,Yd))}f++}},parseHost:function(t){var e,r,n;if("["===wd(t,0)){if("]"!==wd(t,t.length-1))return Ld;if(e=function(t){var e,r,n,o,i,a,u,s=[0,0,0,0,0,0,0,0],c=0,f=null,l=0,h=function(){return wd(t,l)};if(":"===h()){if(":"!==wd(t,1))return;l+=2,f=++c}for(;h();){if(8===c)return;if(":"!==h()){for(e=r=0;r<4&&Sd(zd,h());)e=16*e+yd(h(),16),l++,r++;if("."===h()){if(0===r)return;if(l-=r,c>6)return;for(n=0;h();){if(o=null,n>0){if(!("."===h()&&n<4))return;l++}if(!Sd(_d,h()))return;for(;Sd(_d,h());){if(i=yd(h(),10),null===o)o=i;else{if(0===o)return;o=10*o+i}if(o>255)return;l++}s[c]=256*s[c]+o,2!=++n&&4!==n||c++}if(4!==n)return;break}if(":"===h()){if(l++,!h())return}else if(h())return;s[c++]=e}else{if(null!==f)return;l++,f=++c}}if(null!==f)for(a=c-f,c=7;0!==c&&a>0;)u=s[c],s[c--]=s[f+a-1],s[f+--a]=u;else if(8!==c)return;return s}(kd(t,1,-1)),!e)return Ld;this.host=e}else if(this.isSpecial()){if(t=function(t){var e,r,n=[],o=id(od(ad(t),Yv,"."),".");for(e=0;e4)return t;for(r=[],n=0;n1&&"0"===wd(o,0)&&(i=Sd(Fd,o)?16:8,o=kd(o,8===i?1:2)),""===o)a=0;else{if(!Sd(10===i?Dd:8===i?Bd:zd,o))return t;a=yd(o,i)}Rd(r,a)}for(n=0;n=bd(256,5-e))return null}else if(a>255)return null;for(u=xd(r),n=0;n1?arguments[1]:void 0,n=ld(e,new xg(t,!1,r));u||(e.href=n.serialize(),e.origin=n.getOrigin(),e.protocol=n.getProtocol(),e.username=n.getUsername(),e.password=n.getPassword(),e.host=n.getHost(),e.hostname=n.getHostname(),e.port=n.getPort(),e.pathname=n.getPathname(),e.search=n.getSearch(),e.searchParams=n.getSearchParams(),e.hash=n.getHash())},Pg=Rg.prototype,Ag=function(t,e){return{get:function(){return hd(this)[t]()},set:e&&function(t){return hd(this)[e](t)},configurable:!0,enumerable:!0}};if(u&&(so(Pg,"href",Ag("serialize","setHref")),so(Pg,"origin",Ag("getOrigin")),so(Pg,"protocol",Ag("getProtocol","setProtocol")),so(Pg,"username",Ag("getUsername","setUsername")),so(Pg,"password",Ag("getPassword","setPassword")),so(Pg,"host",Ag("getHost","setHost")),so(Pg,"hostname",Ag("getHostname","setHostname")),so(Pg,"port",Ag("getPort","setPort")),so(Pg,"pathname",Ag("getPathname","setPathname")),so(Pg,"search",Ag("getSearch","setSearch")),so(Pg,"searchParams",Ag("getSearchParams")),so(Pg,"hash",Ag("getHash","setHash"))),ie(Pg,"toJSON",function(){return hd(this).serialize()},{enumerable:!0}),ie(Pg,"toString",function(){return hd(this).serialize()},{enumerable:!0}),dd){var jg=dd.createObjectURL,kg=dd.revokeObjectURL;jg&&ie(Rg,"createObjectURL",ar(jg,dd)),kg&&ie(Rg,"revokeObjectURL",ar(kg,dd))}an(Rg,"URL"),Ce({global:!0,constructor:!0,forced:!Mp,sham:!u},{URL:Rg});var Ig=L("URL"),Tg=Mp&&a(function(){Ig.canParse()}),Mg=a(function(){return 1!==Ig.canParse.length});Ce({target:"URL",stat:!0,forced:!Tg||Mg},{canParse:function(t){var e=Up(arguments.length,1),r=Wr(t),n=e<2||void 0===arguments[1]?void 0:Wr(arguments[1]);try{return!!new Ig(r,n)}catch(t){return!1}}});var Lg=L("URL");Ce({target:"URL",stat:!0,forced:!Mp},{parse:function(t){var e=Up(arguments.length,1),r=Wr(t),n=e<2||void 0===arguments[1]?void 0:Wr(arguments[1]);try{return new Lg(r,n)}catch(t){return null}}}),Ce({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return f(URL.prototype.toString,this)}});var Ug=WeakMap.prototype,Ng={WeakMap:WeakMap,set:b(Ug.set),get:b(Ug.get),has:b(Ug.has),remove:b(Ug.delete)},Cg=Ng.has,_g=function(t){return Cg(t),t},Fg=Ng.get,Bg=Ng.has,Dg=Ng.set;Ce({target:"WeakMap",proto:!0,real:!0,forced:!0},{emplace:function(t,e){var r,n,o=_g(this);return Bg(o,t)?(r=Fg(o,t),"update"in e&&(r=e.update(r,t,o),Dg(o,t,r)),r):(n=e.insert(t,o),Dg(o,t,n),n)}}),Ce({target:"WeakMap",stat:!0,forced:!0},{from:ei(Ng.WeakMap,Ng.set,!0)}),Ce({target:"WeakMap",stat:!0,forced:!0},{of:ri(Ng.WeakMap,Ng.set,!0)});var zg=Ng.remove;Ce({target:"WeakMap",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var t,e=_g(this),r=!0,n=0,o=arguments.length;n2&&(n=r,M(o=arguments[2])&&"cause"in o&&_t(n,"cause",o.cause));var s=[];return Ao(t,ny,{that:s}),_t(r,"errors",s),r};dn?dn(oy,ry):Ae(oy,ry,{name:!0});var iy=oy.prototype=Ve(ry.prototype,{constructor:d(1,oy),message:d(1,""),name:d(1,"AggregateError")});Ce({global:!0,constructor:!0,arity:2},{AggregateError:oy});var ay,uy,sy,cy,fy=function(t){return _.slice(0,t.length)===t},ly=fy("Bun/")?"BUN":fy("Cloudflare-Workers")?"CLOUDFLARE":fy("Deno/")?"DENO":fy("Node.js/")?"NODE":i.Bun&&"string"==typeof Bun.version?"BUN":i.Deno&&"object"==typeof Deno.version?"DENO":"process"===E(i.process)?"NODE":i.window&&i.document?"BROWSER":"REST",hy="NODE"===ly,py=/(?:ipad|iphone|ipod).*applewebkit/i.test(_),vy=i.setImmediate,dy=i.clearImmediate,gy=i.process,yy=i.Dispatch,my=i.Function,by=i.MessageChannel,wy=i.String,Sy=0,Ey={},Oy="onreadystatechange";a(function(){ay=i.location});var xy=function(t){if(ut(Ey,t)){var e=Ey[t];delete Ey[t],e()}},Ry=function(t){return function(){xy(t)}},Py=function(t){xy(t.data)},Ay=function(t){i.postMessage(wy(t),ay.protocol+"//"+ay.host)};vy&&dy||(vy=function(t){Up(arguments.length,1);var e=T(t)?t:my(t),r=vo(arguments,1);return Ey[++Sy]=function(){Ra(e,void 0,r)},uy(Sy),Sy},dy=function(t){delete Ey[t]},hy?uy=function(t){gy.nextTick(Ry(t))}:yy&&yy.now?uy=function(t){yy.now(Ry(t))}:by&&!py?(cy=(sy=new by).port2,sy.port1.onmessage=Py,uy=ar(cy.postMessage,cy)):i.addEventListener&&T(i.postMessage)&&!i.importScripts&&ay&&"file:"!==ay.protocol&&!a(Ay)?(uy=Ay,i.addEventListener("message",Py,!1)):uy=Oy in Et("script")?function(t){De.appendChild(Et("script"))[Oy]=function(){De.removeChild(this),xy(t)}}:function(t){setTimeout(Ry(t),0)});var jy={set:vy,clear:dy},ky=function(){this.head=null,this.tail=null};ky.prototype={add:function(t){var e={item:t,next:null},r=this.tail;r?r.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var Iy,Ty,My,Ly,Uy,Ny=ky,Cy=/ipad|iphone|ipod/i.test(_)&&"undefined"!=typeof Pebble,_y=/web0s(?!.*chrome)/i.test(_),Fy=jy.set,By=i.MutationObserver||i.WebKitMutationObserver,Dy=i.document,zy=i.process,Wy=i.Promise,qy=Ip("queueMicrotask");if(!qy){var Hy=new Ny,$y=function(){var t,e;for(hy&&(t=zy.domain)&&t.exit();e=Hy.get();)try{e()}catch(t){throw Hy.head&&Iy(),t}t&&t.enter()};py||hy||_y||!By||!Dy?!Cy&&Wy&&Wy.resolve?((Ly=Wy.resolve(void 0)).constructor=Wy,Uy=ar(Ly.then,Ly),Iy=function(){Uy($y)}):hy?Iy=function(){zy.nextTick($y)}:(Fy=ar(Fy,i),Iy=function(){Fy($y)}):(Ty=!0,My=Dy.createTextNode(""),new By($y).observe(My,{characterData:!0}),Iy=function(){My.data=Ty=!Ty}),qy=function(t){Hy.head||Iy(),Hy.add(t)}}var Ky,Gy,Vy,Yy=qy,Xy=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Jy=i.Promise,Qy=dt("species"),Zy=!1,tm=T(i.PromiseRejectionEvent),em=Ue("Promise",function(){var t=Kt(Jy),e=t!==String(Jy);if(!e&&66===W)return!0;if(!W||W<51||!/native code/.test(t)){var r=new Jy(function(t){t(1)}),n=function(t){t(function(){},function(){})};if((r.constructor={})[Qy]=n,!(Zy=r.then(function(){})instanceof n))return!0}return!(e||"BROWSER"!==ly&&"DENO"!==ly||tm)}),rm={CONSTRUCTOR:em,REJECTION_EVENT:tm,SUBCLASSING:Zy},nm=TypeError,om=function(t){var e,r;this.promise=new t(function(t,n){if(void 0!==e||void 0!==r)throw new nm("Bad Promise constructor");e=t,r=n}),this.resolve=J(e),this.reject=J(r)},im={f:function(t){return new om(t)}},am=jy.set,um="Promise",sm=rm.CONSTRUCTOR,cm=rm.REJECTION_EVENT,fm=rm.SUBCLASSING,lm=ne.getterFor(um),hm=ne.set,pm=Jy&&Jy.prototype,vm=Jy,dm=pm,gm=i.TypeError,ym=i.document,mm=i.process,bm=im.f,wm=bm,Sm=!!(ym&&ym.createEvent&&i.dispatchEvent),Em="unhandledrejection",Om=function(t){var e;return!(!M(t)||!T(e=t.then))&&e},xm=function(t,e){var r,n,o,i=e.value,a=1===e.state,u=a?t.ok:t.fail,s=t.resolve,c=t.reject,l=t.domain;try{u?(a||(2===e.rejection&&km(e),e.rejection=1),!0===u?r=i:(l&&l.enter(),r=u(i),l&&(l.exit(),o=!0)),r===t.promise?c(new gm("Promise-chain cycle")):(n=Om(r))?f(n,r,s,c):s(r)):c(i)}catch(t){l&&!o&&l.exit(),c(t)}},Rm=function(t,e){t.notified||(t.notified=!0,Yy(function(){for(var r,n=t.reactions;r=n.get();)xm(r,t);t.notified=!1,e&&!t.rejection&&Am(t)}))},Pm=function(t,e,r){var n,o;Sm?((n=ym.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),i.dispatchEvent(n)):n={promise:e,reason:r},!cm&&(o=i["on"+t])?o(n):t===Em&&function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}}("Unhandled promise rejection",r)},Am=function(t){f(am,i,function(){var e,r=t.facade,n=t.value;if(jm(t)&&(e=Xy(function(){hy?mm.emit("unhandledRejection",n,r):Pm(Em,r,n)}),t.rejection=hy||jm(t)?2:1,e.error))throw e.value})},jm=function(t){return 1!==t.rejection&&!t.parent},km=function(t){f(am,i,function(){var e=t.facade;hy?mm.emit("rejectionHandled",e):Pm("rejectionhandled",e,t.value)})},Im=function(t,e,r){return function(n){t(e,n,r)}},Tm=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,Rm(t,!0))},Mm=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw new gm("Promise can't be resolved itself");var n=Om(e);n?Yy(function(){var r={done:!1};try{f(n,e,Im(Mm,r,t),Im(Tm,r,t))}catch(e){Tm(r,e,t)}}):(t.value=e,t.state=1,Rm(t,!1))}catch(e){Tm({done:!1},e,t)}}};if(sm&&(vm=function(t){ko(this,dm),J(t),f(Ky,this);var e=lm(this);try{t(Im(Mm,e),Im(Tm,e))}catch(t){Tm(e,t)}},(Ky=function(t){hm(this,{type:um,done:!1,notified:!1,parent:!1,reactions:new Ny,rejection:!1,state:0,value:null})}).prototype=ie(dm=vm.prototype,"then",function(t,e){var r=lm(this),n=bm(Cc(this,vm));return r.parent=!0,n.ok=!T(t)||t,n.fail=T(e)&&e,n.domain=hy?mm.domain:void 0,0===r.state?r.reactions.add(n):Yy(function(){xm(n,r)}),n.promise}),Gy=function(){var t=new Ky,e=lm(t);this.promise=t,this.resolve=Im(Mm,e),this.reject=Im(Tm,e)},im.f=bm=function(t){return t===vm||void 0===t?new Gy(t):wm(t)},T(Jy)&&pm!==Object.prototype)){Vy=pm.then,fm||ie(pm,"then",function(t,e){var r=this;return new vm(function(t,e){f(Vy,r,t,e)}).then(t,e)},{unsafe:!0});try{delete pm.constructor}catch(t){}dn&&dn(pm,dm)}Ce({global:!0,constructor:!0,wrap:!0,forced:sm},{Promise:vm}),an(vm,um,!1),Uo(um);var Lm=rm.CONSTRUCTOR||!Gn(function(t){Jy.all(t).then(void 0,function(){})});Ce({target:"Promise",stat:!0,forced:Lm},{all:function(t){var e=this,r=im.f(e),n=r.resolve,o=r.reject,i=Xy(function(){var r=J(e.resolve),i=[],a=0,u=1;Ao(t,function(t){var s=a++,c=!1;u++,f(r,e,t).then(function(t){c||(c=!0,i[s]=t,--u||n(i))},o)}),--u||n(i)});return i.error&&o(i.value),r.promise}});var Um=Jy&&Jy.prototype;if(Ce({target:"Promise",proto:!0,forced:rm.CONSTRUCTOR,real:!0},{catch:function(t){return this.then(void 0,t)}}),T(Jy)){var Nm=L("Promise").prototype.catch;Um.catch!==Nm&&ie(Um,"catch",Nm,{unsafe:!0})}Ce({target:"Promise",stat:!0,forced:Lm},{race:function(t){var e=this,r=im.f(e),n=r.reject,o=Xy(function(){var o=J(e.resolve);Ao(t,function(t){f(o,e,t).then(r.resolve,n)})});return o.error&&n(o.value),r.promise}}),Ce({target:"Promise",stat:!0,forced:rm.CONSTRUCTOR},{reject:function(t){var e=im.f(this);return(0,e.reject)(t),e.promise}});var Cm=function(t,e){if(kt(t),M(e)&&e.constructor===t)return e;var r=im.f(t);return(0,r.resolve)(e),r.promise};Ce({target:"Promise",stat:!0,forced:rm.CONSTRUCTOR},{resolve:function(t){return Cm(this,t)}}),Ce({target:"Promise",stat:!0,forced:Lm},{allSettled:function(t){var e=this,r=im.f(e),n=r.resolve,o=r.reject,i=Xy(function(){var r=J(e.resolve),o=[],i=0,a=1;Ao(t,function(t){var u=i++,s=!1;a++,f(r,e,t).then(function(t){s||(s=!0,o[u]={status:"fulfilled",value:t},--a||n(o))},function(t){s||(s=!0,o[u]={status:"rejected",reason:t},--a||n(o))})}),--a||n(o)});return i.error&&o(i.value),r.promise}});var _m="No one promise resolved";Ce({target:"Promise",stat:!0,forced:Lm},{any:function(t){var e=this,r=L("AggregateError"),n=im.f(e),o=n.resolve,i=n.reject,a=Xy(function(){var n=J(e.resolve),a=[],u=0,s=1,c=!1;Ao(t,function(t){var l=u++,h=!1;s++,f(n,e,t).then(function(t){h||c||(c=!0,o(t))},function(t){h||c||(h=!0,a[l]=t,--s||i(new r(a,_m)))})}),--s||i(new r(a,_m))});return a.error&&i(a.value),n.promise}}),Ce({target:"Promise",stat:!0},{withResolvers:function(){var t=im.f(this);return{promise:t.promise,resolve:t.resolve,reject:t.reject}}});var Fm=Jy&&Jy.prototype,Bm=!!Jy&&a(function(){Fm.finally.call({then:function(){}},function(){})});if(Ce({target:"Promise",proto:!0,real:!0,forced:Bm},{finally:function(t){var e=Cc(this,L("Promise")),r=T(t);return this.then(r?function(r){return Cm(e,t()).then(function(){return r})}:t,r?function(r){return Cm(e,t()).then(function(){throw r})}:t)}}),T(Jy)){var Dm=L("Promise").prototype.finally;Fm.finally!==Dm&&ie(Fm,"finally",Dm,{unsafe:!0})}var zm=i.Promise,Wm=!1,qm=!zm||!zm.try||Xy(function(){zm.try(function(t){Wm=8===t},8)}).error||!Wm;Ce({target:"Promise",stat:!0,forced:qm},{try:function(t){var e=arguments.length>1?vo(arguments,1):[],r=im.f(this),n=Xy(function(){return Ra(J(t),void 0,e)});return(n.error?r.reject:r.resolve)(n.value),r.promise}}),Ze("Promise","finally");var Hm="URLSearchParams"in self,$m="Symbol"in self&&"iterator"in Symbol,Km="FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(t){return!1}}(),Gm="FormData"in self,Vm="ArrayBuffer"in self;if(Vm)var Ym=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],Xm=ArrayBuffer.isView||function(t){return t&&Ym.indexOf(Object.prototype.toString.call(t))>-1};function Jm(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function Qm(t){return"string"!=typeof t&&(t=String(t)),t}function Zm(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return $m&&(e[Symbol.iterator]=function(){return e}),e}function tb(t){this.map={},t instanceof tb?t.forEach(function(t,e){this.append(e,t)},this):Array.isArray(t)?t.forEach(function(t){this.append(t[0],t[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function eb(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function rb(t){return new Promise(function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}})}function nb(t){var e=new FileReader,r=rb(e);return e.readAsArrayBuffer(t),r}function ob(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function ib(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:Km&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:Gm&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:Hm&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():Vm&&Km&&(e=t)&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=ob(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):Vm&&(ArrayBuffer.prototype.isPrototypeOf(t)||Xm(t))?this._bodyArrayBuffer=ob(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):Hm&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},Km&&(this.blob=function(){var t=eb(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?eb(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(nb)}),this.text=function(){var t=eb(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,r=rb(e);return e.readAsText(t),r}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n-1?e:t}(e.method||this.method||"GET"),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function sb(t){var e=new FormData;return t.trim().split("&").forEach(function(t){if(t){var r=t.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(o))}}),e}function cb(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new tb(e.headers),this.url=e.url||"",this._initBody(t)}ub.prototype.clone=function(){return new ub(this,{body:this._bodyInit})},ib.call(ub.prototype),ib.call(cb.prototype),cb.prototype.clone=function(){return new cb(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new tb(this.headers),url:this.url})},cb.error=function(){var t=new cb(null,{status:0,statusText:""});return t.type="error",t};var fb=[301,302,303,307,308];cb.redirect=function(t,e){if(-1===fb.indexOf(e))throw new RangeError("Invalid status code");return new cb(null,{status:e,headers:{location:t}})};var lb=self.DOMException;try{new lb}catch(t){(lb=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack}).prototype=Object.create(Error.prototype),lb.prototype.constructor=lb}function hb(t,e){return new Promise(function(r,n){var o=new ub(t,e);if(o.signal&&o.signal.aborted)return n(new lb("Aborted","AbortError"));var i=new XMLHttpRequest;function a(){i.abort()}i.onload=function(){var t,e,n={status:i.status,statusText:i.statusText,headers:(t=i.getAllResponseHeaders()||"",e=new tb,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(t){var r=t.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();e.append(n,o)}}),e)};n.url="responseURL"in i?i.responseURL:n.headers.get("X-Request-URL"),r(new cb("response"in i?i.response:i.responseText,n))},i.onerror=function(){n(new TypeError("Network request failed"))},i.ontimeout=function(){n(new TypeError("Network request failed"))},i.onabort=function(){n(new lb("Aborted","AbortError"))},i.open(o.method,o.url,!0),"include"===o.credentials?i.withCredentials=!0:"omit"===o.credentials&&(i.withCredentials=!1),"responseType"in i&&Km&&(i.responseType="blob"),o.headers.forEach(function(t,e){i.setRequestHeader(e,t)}),o.signal&&(o.signal.addEventListener("abort",a),i.onreadystatechange=function(){4===i.readyState&&o.signal.removeEventListener("abort",a)}),i.send(void 0===o._bodyInit?null:o._bodyInit)})}hb.polyfill=!0,self.fetch||(self.fetch=hb,self.Headers=tb,self.Request=ub,self.Response=cb);var pb=Object.getOwnPropertySymbols,vb=Object.prototype.hasOwnProperty,db=Object.prototype.propertyIsEnumerable,gb=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(t){n[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var r,n,o=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),i=1;i{"use strict";var e={},r={};function t(o){var n=r[o];if(void 0!==n)return n.exports;var i=r[o]={exports:{}},l=!0;try{e[o](i,i.exports,t),l=!1}finally{l&&delete r[o]}return i.exports}t.m=e,(()=>{var e=[];t.O=(r,o,n,i)=>{if(o){i=i||0;for(var l=e.length;l>0&&e[l-1][2]>i;l--)e[l]=e[l-1];e[l]=[o,n,i];return}for(var a=1/0,l=0;l=i)&&Object.keys(t.O).every(e=>t.O[e](o[f]))?o.splice(f--,1):(u=!1,i{var r=e&&e.__esModule?()=>e.default:()=>e;return t.d(r,{a:r}),r},t.d=(e,r)=>{for(var o in r)t.o(r,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.p="/_next/",(()=>{var e={68:0};t.O.j=r=>0===e[r];var r=(r,o)=>{var n,i,[l,a,u]=o,f=0;if(l.some(r=>0!==e[r])){for(n in a)t.o(a,n)&&(t.m[n]=a[n]);if(u)var s=u(t)}for(r&&r(o);f:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-6>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(1.5rem * var(--tw-space-x-reverse));margin-left:calc(1.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(229 231 235/var(--tw-divide-opacity,1))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-l-4{border-left-width:4px}.border-r-4{border-right-width:4px}.border-t{border-top-width:1px}.border-t-4{border-top-width:4px}.border-none{border-style:none}.border-blue-200{--tw-border-opacity:1;border-color:rgb(191 219 254/var(--tw-border-opacity,1))}.border-blue-400{--tw-border-opacity:1;border-color:rgb(96 165 250/var(--tw-border-opacity,1))}.border-blue-600{--tw-border-opacity:1;border-color:rgb(37 99 235/var(--tw-border-opacity,1))}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity,1))}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity,1))}.border-green-200{--tw-border-opacity:1;border-color:rgb(187 247 208/var(--tw-border-opacity,1))}.border-green-400{--tw-border-opacity:1;border-color:rgb(74 222 128/var(--tw-border-opacity,1))}.border-orange-200{--tw-border-opacity:1;border-color:rgb(254 215 170/var(--tw-border-opacity,1))}.border-purple-200{--tw-border-opacity:1;border-color:rgb(233 213 255/var(--tw-border-opacity,1))}.border-red-200{--tw-border-opacity:1;border-color:rgb(254 202 202/var(--tw-border-opacity,1))}.border-red-400{--tw-border-opacity:1;border-color:rgb(248 113 113/var(--tw-border-opacity,1))}.border-transparent{border-color:transparent}.border-white\/10{border-color:rgb(255 255 255/.1)}.border-yellow-200{--tw-border-opacity:1;border-color:rgb(254 240 138/var(--tw-border-opacity,1))}.border-yellow-400{--tw-border-opacity:1;border-color:rgb(250 204 21/var(--tw-border-opacity,1))}.border-t-gray-900{--tw-border-opacity:1;border-top-color:rgb(17 24 39/var(--tw-border-opacity,1))}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity,1))}.bg-blue-100{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity,1))}.bg-blue-50{--tw-bg-opacity:1;background-color:rgb(239 246 255/var(--tw-bg-opacity,1))}.bg-blue-500{--tw-bg-opacity:1;background-color:rgb(59 130 246/var(--tw-bg-opacity,1))}.bg-blue-600{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity,1))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity,1))}.bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity,1))}.bg-gray-300{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity,1))}.bg-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity,1))}.bg-gray-500{--tw-bg-opacity:1;background-color:rgb(107 114 128/var(--tw-bg-opacity,1))}.bg-gray-600{--tw-bg-opacity:1;background-color:rgb(75 85 99/var(--tw-bg-opacity,1))}.bg-gray-900{--tw-bg-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity,1))}.bg-green-100{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity,1))}.bg-green-50{--tw-bg-opacity:1;background-color:rgb(240 253 244/var(--tw-bg-opacity,1))}.bg-green-500{--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity,1))}.bg-green-600{--tw-bg-opacity:1;background-color:rgb(22 163 74/var(--tw-bg-opacity,1))}.bg-green-700{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity,1))}.bg-orange-100{--tw-bg-opacity:1;background-color:rgb(255 237 213/var(--tw-bg-opacity,1))}.bg-orange-50{--tw-bg-opacity:1;background-color:rgb(255 247 237/var(--tw-bg-opacity,1))}.bg-orange-500{--tw-bg-opacity:1;background-color:rgb(249 115 22/var(--tw-bg-opacity,1))}.bg-orange-600{--tw-bg-opacity:1;background-color:rgb(234 88 12/var(--tw-bg-opacity,1))}.bg-purple-500{--tw-bg-opacity:1;background-color:rgb(168 85 247/var(--tw-bg-opacity,1))}.bg-red-100{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity,1))}.bg-red-50{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity,1))}.bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity,1))}.bg-red-600{--tw-bg-opacity:1;background-color:rgb(220 38 38/var(--tw-bg-opacity,1))}.bg-red-700{--tw-bg-opacity:1;background-color:rgb(185 28 28/var(--tw-bg-opacity,1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.bg-yellow-100{--tw-bg-opacity:1;background-color:rgb(254 249 195/var(--tw-bg-opacity,1))}.bg-yellow-50{--tw-bg-opacity:1;background-color:rgb(254 252 232/var(--tw-bg-opacity,1))}.bg-yellow-500{--tw-bg-opacity:1;background-color:rgb(234 179 8/var(--tw-bg-opacity,1))}.bg-yellow-600{--tw-bg-opacity:1;background-color:rgb(202 138 4/var(--tw-bg-opacity,1))}.bg-opacity-50{--tw-bg-opacity:0.5}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-blue-500{--tw-gradient-from:#3b82f6 var(--tw-gradient-from-position);--tw-gradient-to:rgb(59 130 246/0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-blue-600{--tw-gradient-from:#2563eb var(--tw-gradient-from-position);--tw-gradient-to:rgb(37 99 235/0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-gray-50{--tw-gradient-from:#f9fafb var(--tw-gradient-from-position);--tw-gradient-to:rgb(249 250 251/0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-gray-700{--tw-gradient-from:#374151 var(--tw-gradient-from-position);--tw-gradient-to:rgb(55 65 81/0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-green-500{--tw-gradient-from:#22c55e var(--tw-gradient-from-position);--tw-gradient-to:rgb(34 197 94/0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-red-500{--tw-gradient-from:#ef4444 var(--tw-gradient-from-position);--tw-gradient-to:rgb(239 68 68/0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-slate-800{--tw-gradient-from:#1e293b var(--tw-gradient-from-position);--tw-gradient-to:rgb(30 41 59/0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-yellow-500{--tw-gradient-from:#eab308 var(--tw-gradient-from-position);--tw-gradient-to:rgb(234 179 8/0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.to-blue-600{--tw-gradient-to:#2563eb var(--tw-gradient-to-position)}.to-blue-700{--tw-gradient-to:#1d4ed8 var(--tw-gradient-to-position)}.to-gray-100{--tw-gradient-to:#f3f4f6 var(--tw-gradient-to-position)}.to-gray-900{--tw-gradient-to:#111827 var(--tw-gradient-to-position)}.to-green-600{--tw-gradient-to:#16a34a var(--tw-gradient-to-position)}.to-red-600{--tw-gradient-to:#dc2626 var(--tw-gradient-to-position)}.to-slate-700{--tw-gradient-to:#334155 var(--tw-gradient-to-position)}.to-yellow-600{--tw-gradient-to:#ca8a04 var(--tw-gradient-to-position)}.bg-clip-text{-webkit-background-clip:text;background-clip:text}.p-12{padding:3rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-16{padding-top:4rem;padding-bottom:4rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pl-10{padding-left:2.5rem}.pr-2{padding-right:.5rem}.pr-4{padding-right:1rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-6xl{font-size:3.75rem;line-height:1}.text-7xl{font-size:4.5rem;line-height:1}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-relaxed{line-height:1.625}.tracking-wide{letter-spacing:.025em}.tracking-wider{letter-spacing:.05em}.text-blue-400{--tw-text-opacity:1;color:rgb(96 165 250/var(--tw-text-opacity,1))}.text-blue-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity,1))}.text-blue-700{--tw-text-opacity:1;color:rgb(29 78 216/var(--tw-text-opacity,1))}.text-blue-800{--tw-text-opacity:1;color:rgb(30 64 175/var(--tw-text-opacity,1))}.text-gray-300{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity,1))}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity,1))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity,1))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity,1))}.text-gray-800{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity,1))}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity,1))}.text-green-500{--tw-text-opacity:1;color:rgb(34 197 94/var(--tw-text-opacity,1))}.text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity,1))}.text-green-700{--tw-text-opacity:1;color:rgb(21 128 61/var(--tw-text-opacity,1))}.text-inherit{color:inherit}.text-orange-600{--tw-text-opacity:1;color:rgb(234 88 12/var(--tw-text-opacity,1))}.text-orange-700{--tw-text-opacity:1;color:rgb(194 65 12/var(--tw-text-opacity,1))}.text-purple-600{--tw-text-opacity:1;color:rgb(147 51 234/var(--tw-text-opacity,1))}.text-red-400{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity,1))}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity,1))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity,1))}.text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity,1))}.text-red-800{--tw-text-opacity:1;color:rgb(153 27 27/var(--tw-text-opacity,1))}.text-slate-300{--tw-text-opacity:1;color:rgb(203 213 225/var(--tw-text-opacity,1))}.text-transparent{color:transparent}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.text-yellow-500{--tw-text-opacity:1;color:rgb(234 179 8/var(--tw-text-opacity,1))}.text-yellow-600{--tw-text-opacity:1;color:rgb(202 138 4/var(--tw-text-opacity,1))}.text-yellow-700{--tw-text-opacity:1;color:rgb(161 98 7/var(--tw-text-opacity,1))}.no-underline{text-decoration-line:none}.opacity-75{opacity:.75}.shadow-lg{--tw-shadow:0 10px 15px -3px rgb(0 0 0/0.1),0 4px 6px -4px rgb(0 0 0/0.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-lg,.shadow-md{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px rgb(0 0 0/0.1),0 2px 4px -2px rgb(0 0 0/0.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgb(0 0 0/0.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.shadow-sm,.shadow-xl{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px rgb(0 0 0/0.1),0 8px 10px -6px rgb(0 0 0/0.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color)}.shadow-blue-600\/30{--tw-shadow-color:rgb(37 99 235/0.3);--tw-shadow:var(--tw-shadow-colored)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-shadow{transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}::-webkit-scrollbar{width:6px}::-webkit-scrollbar-thumb{background:rgba(59,130,246,.3);border-radius:10px;-webkit-transition:background .2s ease-in-out;transition:background .2s ease-in-out}::-webkit-scrollbar-thumb:hover{background:rgba(59,130,246,.6)}::-webkit-scrollbar-track{background:rgba(243,244,246,.5);border-radius:10px;-webkit-transition:background .15s ease;transition:background .15s ease}@media (prefers-color-scheme:dark){::-webkit-scrollbar-thumb{background:rgba(96,165,250,.4);-webkit-transition:background .2s ease-in-out;transition:background .2s ease-in-out}::-webkit-scrollbar-thumb:hover{background:rgba(96,165,250,.7)}::-webkit-scrollbar-track{background:rgba(31,41,55,.3);-webkit-transition:background .15s ease;transition:background .15s ease}}.hover\:border-blue-300:hover{--tw-border-opacity:1;border-color:rgb(147 197 253/var(--tw-border-opacity,1))}.hover\:border-green-300:hover{--tw-border-opacity:1;border-color:rgb(134 239 172/var(--tw-border-opacity,1))}.hover\:border-purple-300:hover{--tw-border-opacity:1;border-color:rgb(216 180 254/var(--tw-border-opacity,1))}.hover\:border-red-300:hover{--tw-border-opacity:1;border-color:rgb(252 165 165/var(--tw-border-opacity,1))}.hover\:bg-blue-50:hover{--tw-bg-opacity:1;background-color:rgb(239 246 255/var(--tw-bg-opacity,1))}.hover\:bg-blue-600:hover{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity,1))}.hover\:bg-blue-700:hover{--tw-bg-opacity:1;background-color:rgb(29 78 216/var(--tw-bg-opacity,1))}.hover\:bg-gray-100:hover{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity,1))}.hover\:bg-gray-200:hover{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity,1))}.hover\:bg-gray-50:hover{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity,1))}.hover\:bg-gray-700:hover{--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity,1))}.hover\:bg-green-200:hover{--tw-bg-opacity:1;background-color:rgb(187 247 208/var(--tw-bg-opacity,1))}.hover\:bg-green-50:hover{--tw-bg-opacity:1;background-color:rgb(240 253 244/var(--tw-bg-opacity,1))}.hover\:bg-green-600:hover{--tw-bg-opacity:1;background-color:rgb(22 163 74/var(--tw-bg-opacity,1))}.hover\:bg-green-700:hover{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity,1))}.hover\:bg-green-800:hover{--tw-bg-opacity:1;background-color:rgb(22 101 52/var(--tw-bg-opacity,1))}.hover\:bg-orange-200:hover{--tw-bg-opacity:1;background-color:rgb(254 215 170/var(--tw-bg-opacity,1))}.hover\:bg-orange-50:hover{--tw-bg-opacity:1;background-color:rgb(255 247 237/var(--tw-bg-opacity,1))}.hover\:bg-orange-700:hover{--tw-bg-opacity:1;background-color:rgb(194 65 12/var(--tw-bg-opacity,1))}.hover\:bg-purple-50:hover{--tw-bg-opacity:1;background-color:rgb(250 245 255/var(--tw-bg-opacity,1))}.hover\:bg-purple-600:hover{--tw-bg-opacity:1;background-color:rgb(147 51 234/var(--tw-bg-opacity,1))}.hover\:bg-red-50:hover{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity,1))}.hover\:bg-red-600:hover{--tw-bg-opacity:1;background-color:rgb(220 38 38/var(--tw-bg-opacity,1))}.hover\:bg-red-700:hover{--tw-bg-opacity:1;background-color:rgb(185 28 28/var(--tw-bg-opacity,1))}.hover\:bg-red-800:hover{--tw-bg-opacity:1;background-color:rgb(153 27 27/var(--tw-bg-opacity,1))}.hover\:bg-white\/10:hover{background-color:rgb(255 255 255/.1)}.hover\:bg-yellow-50:hover{--tw-bg-opacity:1;background-color:rgb(254 252 232/var(--tw-bg-opacity,1))}.hover\:bg-yellow-700:hover{--tw-bg-opacity:1;background-color:rgb(161 98 7/var(--tw-bg-opacity,1))}.hover\:from-blue-700:hover{--tw-gradient-from:#1d4ed8 var(--tw-gradient-from-position);--tw-gradient-to:rgb(29 78 216/0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.hover\:to-blue-800:hover{--tw-gradient-to:#1e40af var(--tw-gradient-to-position)}.hover\:text-gray-600:hover{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity,1))}.hover\:text-red-800:hover{--tw-text-opacity:1;color:rgb(153 27 27/var(--tw-text-opacity,1))}.hover\:text-white:hover{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.hover\:opacity-70:hover{opacity:.7}.hover\:shadow-lg:hover{--tw-shadow:0 10px 15px -3px rgb(0 0 0/0.1),0 4px 6px -4px rgb(0 0 0/0.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.hover\:shadow-lg:hover,.hover\:shadow-md:hover{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.hover\:shadow-md:hover{--tw-shadow:0 4px 6px -1px rgb(0 0 0/0.1),0 2px 4px -2px rgb(0 0 0/0.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.hover\:shadow-xl:hover{--tw-shadow:0 20px 25px -5px rgb(0 0 0/0.1),0 8px 10px -6px rgb(0 0 0/0.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.focus\:border-blue-500:focus{--tw-border-opacity:1;border-color:rgb(59 130 246/var(--tw-border-opacity,1))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-1:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-blue-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(59 130 246/var(--tw-ring-opacity,1))}.group:hover .group-hover\:scale-110{--tw-scale-x:1.1;--tw-scale-y:1.1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\:border-blue-500{--tw-border-opacity:1;border-color:rgb(59 130 246/var(--tw-border-opacity,1))}.group:hover .group-hover\:text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity,1))}.group:hover .group-hover\:text-blue-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity,1))}.group:hover .group-hover\:text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity,1))}@media (min-width:640px){.sm\:w-auto{width:auto}.sm\:flex-row{flex-direction:row}}@media (min-width:768px){.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (min-width:1024px){.lg\:col-span-12{grid-column:span 12/span 12}.lg\:col-span-5{grid-column:span 5/span 5}.lg\:col-span-7{grid-column:span 7/span 7}.lg\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (min-width:1280px){.xl\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}} \ No newline at end of file diff --git a/net-guardia/static/web/_next/static/wASj1qj7ED75Mpwihahbt/_buildManifest.js b/net-guardia/static/web/_next/static/wASj1qj7ED75Mpwihahbt/_buildManifest.js new file mode 100644 index 0000000..9931124 --- /dev/null +++ b/net-guardia/static/web/_next/static/wASj1qj7ED75Mpwihahbt/_buildManifest.js @@ -0,0 +1 @@ +self.__BUILD_MANIFEST=function(s,t,a,e,c,r){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},__routerFilterStatic:{numItems:0,errorRate:1e-4,numBits:0,numHashes:null,bitArray:[]},__routerFilterDynamic:{numItems:t,errorRate:1e-4,numBits:t,numHashes:null,bitArray:[]},"/":[s,"static/chunks/pages/index-20fac084227e433f.js"],"/404":[s,"static/chunks/pages/404-88ca1a114c255c82.js"],"/_error":["static/chunks/pages/_error-41608b100cc61246.js"],"/access-control":[s,c,"static/chunks/pages/access-control-02dfbb4c16554211.js"],"/dashboard":[s,r,"static/chunks/335-efb20d23e9c8fbdc.js","static/chunks/pages/dashboard-79264065de788f0d.js"],"/detection":[s,c,"static/chunks/pages/detection-58f841797f6fb8cf.js"],"/statistics":[s,r,"static/chunks/pages/statistics-2ac73b87bd720929.js"],sortedPages:["/","/404","/_app","/_error","/access-control","/dashboard","/detection","/statistics"]}}("static/chunks/182-f7d7e0bcbc4935b2.js",0,1e-4,null,"static/chunks/597-536a1ec6d7dc1ed9.js","static/chunks/620-cfbe65d7a4660b89.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/net-guardia/static/web/_next/static/wASj1qj7ED75Mpwihahbt/_ssgManifest.js b/net-guardia/static/web/_next/static/wASj1qj7ED75Mpwihahbt/_ssgManifest.js new file mode 100644 index 0000000..0511aa8 --- /dev/null +++ b/net-guardia/static/web/_next/static/wASj1qj7ED75Mpwihahbt/_ssgManifest.js @@ -0,0 +1 @@ +self.__SSG_MANIFEST=new Set,self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB(); \ No newline at end of file diff --git a/net-guardia/static/web/access-control.html b/net-guardia/static/web/access-control.html new file mode 100644 index 0000000..c6102c3 --- /dev/null +++ b/net-guardia/static/web/access-control.html @@ -0,0 +1,21 @@ +NetGuardia

存取控制管理

管理 IPv4 和 IPv6 網路存取白名單與黑名單

唯一 IP 數

0

總規則數

0

全端口規則

0

特定端口規則

0

IP 版本:
列表類型:

IPv4 黑名單

0 條規則

暫無資料

點擊上方按鈕添加第一條規則

\ No newline at end of file diff --git a/net-guardia/static/web/assets/fa-brands-400-BU4mH_I_.woff2 b/net-guardia/static/web/assets/fa-brands-400-BU4mH_I_.woff2 deleted file mode 100644 index cb88862..0000000 Binary files a/net-guardia/static/web/assets/fa-brands-400-BU4mH_I_.woff2 and /dev/null differ diff --git a/net-guardia/static/web/assets/fa-brands-400-CArp7j8S.ttf b/net-guardia/static/web/assets/fa-brands-400-CArp7j8S.ttf deleted file mode 100644 index c739a39..0000000 Binary files a/net-guardia/static/web/assets/fa-brands-400-CArp7j8S.ttf and /dev/null differ diff --git a/net-guardia/static/web/assets/fa-regular-400-Cy4iLbxs.woff2 b/net-guardia/static/web/assets/fa-regular-400-Cy4iLbxs.woff2 deleted file mode 100644 index fc0a216..0000000 Binary files a/net-guardia/static/web/assets/fa-regular-400-Cy4iLbxs.woff2 and /dev/null differ diff --git a/net-guardia/static/web/assets/fa-regular-400-D4OwLFL7.ttf b/net-guardia/static/web/assets/fa-regular-400-D4OwLFL7.ttf deleted file mode 100644 index 3140409..0000000 Binary files a/net-guardia/static/web/assets/fa-regular-400-D4OwLFL7.ttf and /dev/null differ diff --git a/net-guardia/static/web/assets/fa-solid-900-BAw_JAW6.ttf b/net-guardia/static/web/assets/fa-solid-900-BAw_JAW6.ttf deleted file mode 100644 index f3b468e..0000000 Binary files a/net-guardia/static/web/assets/fa-solid-900-BAw_JAW6.ttf and /dev/null differ diff --git a/net-guardia/static/web/assets/fa-solid-900-CcrrL0x0.woff2 b/net-guardia/static/web/assets/fa-solid-900-CcrrL0x0.woff2 deleted file mode 100644 index 42eaaa6..0000000 Binary files a/net-guardia/static/web/assets/fa-solid-900-CcrrL0x0.woff2 and /dev/null differ diff --git a/net-guardia/static/web/assets/fa-v4compatibility-B9t6EWrS.woff2 b/net-guardia/static/web/assets/fa-v4compatibility-B9t6EWrS.woff2 deleted file mode 100644 index bb61b58..0000000 Binary files a/net-guardia/static/web/assets/fa-v4compatibility-B9t6EWrS.woff2 and /dev/null differ diff --git a/net-guardia/static/web/assets/fa-v4compatibility-ch80hpM0.ttf b/net-guardia/static/web/assets/fa-v4compatibility-ch80hpM0.ttf deleted file mode 100644 index ba780aa..0000000 Binary files a/net-guardia/static/web/assets/fa-v4compatibility-ch80hpM0.ttf and /dev/null differ diff --git a/net-guardia/static/web/assets/index-BLvNN6v5.js b/net-guardia/static/web/assets/index-BLvNN6v5.js deleted file mode 100644 index aa219f9..0000000 --- a/net-guardia/static/web/assets/index-BLvNN6v5.js +++ /dev/null @@ -1,728 +0,0 @@ -var oE=Object.defineProperty;var aE=(e,t,n)=>t in e?oE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var be=(e,t,n)=>aE(e,typeof t!="symbol"?t+"":t,n);function lE(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function sf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Th={exports:{}},sa={},Eh={exports:{}},ke={};/** - * @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 f1;function cE(){if(f1)return ke;f1=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.iterator;function y(F){return F===null||typeof F!="object"?null:(F=m&&F[m]||F["@@iterator"],typeof F=="function"?F:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,S={};function w(F,K,me){this.props=F,this.context=K,this.refs=S,this.updater=me||x}w.prototype.isReactComponent={},w.prototype.setState=function(F,K){if(typeof F!="object"&&typeof F!="function"&&F!=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,F,K,"setState")},w.prototype.forceUpdate=function(F){this.updater.enqueueForceUpdate(this,F,"forceUpdate")};function k(){}k.prototype=w.prototype;function A(F,K,me){this.props=F,this.context=K,this.refs=S,this.updater=me||x}var M=A.prototype=new k;M.constructor=A,b(M,w.prototype),M.isPureReactComponent=!0;var R=Array.isArray,E=Object.prototype.hasOwnProperty,I={current:null},D={key:!0,ref:!0,__self:!0,__source:!0};function N(F,K,me){var he,oe={},le=null,we=null;if(K!=null)for(he in K.ref!==void 0&&(we=K.ref),K.key!==void 0&&(le=""+K.key),K)E.call(K,he)&&!D.hasOwnProperty(he)&&(oe[he]=K[he]);var _e=arguments.length-2;if(_e===1)oe.children=me;else if(1<_e){for(var De=Array(_e),gt=0;gt<_e;gt++)De[gt]=arguments[gt+2];oe.children=De}if(F&&F.defaultProps)for(he in _e=F.defaultProps,_e)oe[he]===void 0&&(oe[he]=_e[he]);return{$$typeof:e,type:F,key:le,ref:we,props:oe,_owner:I.current}}function V(F,K){return{$$typeof:e,type:F.type,key:K,ref:F.ref,props:F.props,_owner:F._owner}}function _(F){return typeof F=="object"&&F!==null&&F.$$typeof===e}function $(F){var K={"=":"=0",":":"=2"};return"$"+F.replace(/[=:]/g,function(me){return K[me]})}var U=/\/+/g;function J(F,K){return typeof F=="object"&&F!==null&&F.key!=null?$(""+F.key):K.toString(36)}function ne(F,K,me,he,oe){var le=typeof F;(le==="undefined"||le==="boolean")&&(F=null);var we=!1;if(F===null)we=!0;else switch(le){case"string":case"number":we=!0;break;case"object":switch(F.$$typeof){case e:case t:we=!0}}if(we)return we=F,oe=oe(we),F=he===""?"."+J(we,0):he,R(oe)?(me="",F!=null&&(me=F.replace(U,"$&/")+"/"),ne(oe,K,me,"",function(gt){return gt})):oe!=null&&(_(oe)&&(oe=V(oe,me+(!oe.key||we&&we.key===oe.key?"":(""+oe.key).replace(U,"$&/")+"/")+F)),K.push(oe)),1;if(we=0,he=he===""?".":he+":",R(F))for(var _e=0;_e>>1,K=Y[F];if(0>>1;Fi(oe,se))lei(we,oe)?(Y[F]=we,Y[le]=se,F=le):(Y[F]=oe,Y[he]=se,F=he);else if(lei(we,se))Y[F]=we,Y[le]=se,F=le;else break e}}return te}function i(Y,te){var se=Y.sortIndex-te.sortIndex;return se!==0?se:Y.id-te.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var l=Date,c=l.now();e.unstable_now=function(){return l.now()-c}}var u=[],d=[],p=1,m=null,y=3,x=!1,b=!1,S=!1,w=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function M(Y){for(var te=n(d);te!==null;){if(te.callback===null)r(d);else if(te.startTime<=Y)r(d),te.sortIndex=te.expirationTime,t(u,te);else break;te=n(d)}}function R(Y){if(S=!1,M(Y),!b)if(n(u)!==null)b=!0,re(E);else{var te=n(d);te!==null&&ie(R,te.startTime-Y)}}function E(Y,te){b=!1,S&&(S=!1,k(N),N=-1),x=!0;var se=y;try{for(M(te),m=n(u);m!==null&&(!(m.expirationTime>te)||Y&&!$());){var F=m.callback;if(typeof F=="function"){m.callback=null,y=m.priorityLevel;var K=F(m.expirationTime<=te);te=e.unstable_now(),typeof K=="function"?m.callback=K:m===n(u)&&r(u),M(te)}else r(u);m=n(u)}if(m!==null)var me=!0;else{var he=n(d);he!==null&&ie(R,he.startTime-te),me=!1}return me}finally{m=null,y=se,x=!1}}var I=!1,D=null,N=-1,V=5,_=-1;function $(){return!(e.unstable_now()-_Y||125F?(Y.sortIndex=se,t(d,Y),n(u)===null&&Y===n(d)&&(S?(k(N),N=-1):S=!0,ie(R,se-F))):(Y.sortIndex=K,t(u,Y),b||x||(b=!0,re(E))),Y},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(Y){var te=y;return function(){var se=y;y=te;try{return Y.apply(this,arguments)}finally{y=se}}}}(Rh)),Rh}var g1;function hE(){return g1||(g1=1,Mh.exports=dE()),Mh.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 y1;function pE(){if(y1)return Ut;y1=1;var e=zm(),t=hE();function n(s){for(var a="https://reactjs.org/docs/error-decoder.html?invariant="+s,f=1;f"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),u=Object.prototype.hasOwnProperty,d=/^[: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]*$/,p={},m={};function y(s){return u.call(m,s)?!0:u.call(p,s)?!1:d.test(s)?m[s]=!0:(p[s]=!0,!1)}function x(s,a,f,h){if(f!==null&&f.type===0)return!1;switch(typeof a){case"function":case"symbol":return!0;case"boolean":return h?!1:f!==null?!f.acceptsBooleans:(s=s.toLowerCase().slice(0,5),s!=="data-"&&s!=="aria-");default:return!1}}function b(s,a,f,h){if(a===null||typeof a>"u"||x(s,a,f,h))return!0;if(h)return!1;if(f!==null)switch(f.type){case 3:return!a;case 4:return a===!1;case 5:return isNaN(a);case 6:return isNaN(a)||1>a}return!1}function S(s,a,f,h,g,v,C){this.acceptsBooleans=a===2||a===3||a===4,this.attributeName=h,this.attributeNamespace=g,this.mustUseProperty=f,this.propertyName=s,this.type=a,this.sanitizeURL=v,this.removeEmptyString=C}var w={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(s){w[s]=new S(s,0,!1,s,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(s){var a=s[0];w[a]=new S(a,1,!1,s[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(s){w[s]=new S(s,2,!1,s.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(s){w[s]=new S(s,2,!1,s,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(s){w[s]=new S(s,3,!1,s.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(s){w[s]=new S(s,3,!0,s,null,!1,!1)}),["capture","download"].forEach(function(s){w[s]=new S(s,4,!1,s,null,!1,!1)}),["cols","rows","size","span"].forEach(function(s){w[s]=new S(s,6,!1,s,null,!1,!1)}),["rowSpan","start"].forEach(function(s){w[s]=new S(s,5,!1,s.toLowerCase(),null,!1,!1)});var k=/[\-:]([a-z])/g;function A(s){return s[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(s){var a=s.replace(k,A);w[a]=new S(a,1,!1,s,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(s){var a=s.replace(k,A);w[a]=new S(a,1,!1,s,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(s){var a=s.replace(k,A);w[a]=new S(a,1,!1,s,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(s){w[s]=new S(s,1,!1,s.toLowerCase(),null,!1,!1)}),w.xlinkHref=new S("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(s){w[s]=new S(s,1,!1,s.toLowerCase(),null,!0,!0)});function M(s,a,f,h){var g=w.hasOwnProperty(a)?w[a]:null;(g!==null?g.type!==0:h||!(2O||g[C]!==v[O]){var L=` -`+g[C].replace(" at new "," at ");return s.displayName&&L.includes("")&&(L=L.replace("",s.displayName)),L}while(1<=C&&0<=O);break}}}finally{me=!1,Error.prepareStackTrace=f}return(s=s?s.displayName||s.name:"")?K(s):""}function oe(s){switch(s.tag){case 5:return K(s.type);case 16:return K("Lazy");case 13:return K("Suspense");case 19:return K("SuspenseList");case 0:case 2:case 15:return s=he(s.type,!1),s;case 11:return s=he(s.type.render,!1),s;case 1:return s=he(s.type,!0),s;default:return""}}function le(s){if(s==null)return null;if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case D:return"Fragment";case I:return"Portal";case V:return"Profiler";case N:return"StrictMode";case J:return"Suspense";case ne:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case $:return(s.displayName||"Context")+".Consumer";case _:return(s._context.displayName||"Context")+".Provider";case U:var a=s.render;return s=s.displayName,s||(s=a.displayName||a.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case q:return a=s.displayName||null,a!==null?a:le(s.type)||"Memo";case re:a=s._payload,s=s._init;try{return le(s(a))}catch{}}return null}function we(s){var a=s.type;switch(s.tag){case 24:return"Cache";case 9:return(a.displayName||"Context")+".Consumer";case 10:return(a._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return s=a.render,s=s.displayName||s.name||"",a.displayName||(s!==""?"ForwardRef("+s+")":"ForwardRef");case 7:return"Fragment";case 5:return a;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return le(a);case 8:return a===N?"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 a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a}return null}function _e(s){switch(typeof s){case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function De(s){var a=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function gt(s){var a=De(s)?"checked":"value",f=Object.getOwnPropertyDescriptor(s.constructor.prototype,a),h=""+s[a];if(!s.hasOwnProperty(a)&&typeof f<"u"&&typeof f.get=="function"&&typeof f.set=="function"){var g=f.get,v=f.set;return Object.defineProperty(s,a,{configurable:!0,get:function(){return g.call(this)},set:function(C){h=""+C,v.call(this,C)}}),Object.defineProperty(s,a,{enumerable:f.enumerable}),{getValue:function(){return h},setValue:function(C){h=""+C},stopTracking:function(){s._valueTracker=null,delete s[a]}}}}function Rr(s){s._valueTracker||(s._valueTracker=gt(s))}function cn(s){if(!s)return!1;var a=s._valueTracker;if(!a)return!0;var f=a.getValue(),h="";return s&&(h=De(s)?s.checked?"true":"false":s.value),s=h,s!==f?(a.setValue(s),!0):!1}function Pn(s){if(s=s||(typeof document<"u"?document:void 0),typeof s>"u")return null;try{return s.activeElement||s.body}catch{return s.body}}function xi(s,a){var f=a.checked;return se({},a,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:f??s._wrapperState.initialChecked})}function Tl(s,a){var f=a.defaultValue==null?"":a.defaultValue,h=a.checked!=null?a.checked:a.defaultChecked;f=_e(a.value!=null?a.value:f),s._wrapperState={initialChecked:h,initialValue:f,controlled:a.type==="checkbox"||a.type==="radio"?a.checked!=null:a.value!=null}}function El(s,a){a=a.checked,a!=null&&M(s,"checked",a,!1)}function Or(s,a){El(s,a);var f=_e(a.value),h=a.type;if(f!=null)h==="number"?(f===0&&s.value===""||s.value!=f)&&(s.value=""+f):s.value!==""+f&&(s.value=""+f);else if(h==="submit"||h==="reset"){s.removeAttribute("value");return}a.hasOwnProperty("value")?bo(s,a.type,f):a.hasOwnProperty("defaultValue")&&bo(s,a.type,_e(a.defaultValue)),a.checked==null&&a.defaultChecked!=null&&(s.defaultChecked=!!a.defaultChecked)}function Dr(s,a,f){if(a.hasOwnProperty("value")||a.hasOwnProperty("defaultValue")){var h=a.type;if(!(h!=="submit"&&h!=="reset"||a.value!==void 0&&a.value!==null))return;a=""+s._wrapperState.initialValue,f||a===s.value||(s.value=a),s.defaultValue=a}f=s.name,f!==""&&(s.name=""),s.defaultChecked=!!s._wrapperState.initialChecked,f!==""&&(s.name=f)}function bo(s,a,f){(a!=="number"||Pn(s.ownerDocument)!==s)&&(f==null?s.defaultValue=""+s._wrapperState.initialValue:s.defaultValue!==""+f&&(s.defaultValue=""+f))}var Ir=Array.isArray;function Lr(s,a,f,h){if(s=s.options,a){a={};for(var g=0;g"+a.valueOf().toString()+"",a=Al.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;a.firstChild;)s.appendChild(a.firstChild)}});function So(s,a){if(a){var f=s.firstChild;if(f&&f===s.lastChild&&f.nodeType===3){f.nodeValue=a;return}}s.textContent=a}var wo={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},uP=["Webkit","ms","Moz","O"];Object.keys(wo).forEach(function(s){uP.forEach(function(a){a=a+s.charAt(0).toUpperCase()+s.substring(1),wo[a]=wo[s]})});function Py(s,a,f){return a==null||typeof a=="boolean"||a===""?"":f||typeof a!="number"||a===0||wo.hasOwnProperty(s)&&wo[s]?(""+a).trim():a+"px"}function Ty(s,a){s=s.style;for(var f in a)if(a.hasOwnProperty(f)){var h=f.indexOf("--")===0,g=Py(f,a[f],h);f==="float"&&(f="cssFloat"),h?s.setProperty(f,g):s[f]=g}}var fP=se({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 Bf(s,a){if(a){if(fP[s]&&(a.children!=null||a.dangerouslySetInnerHTML!=null))throw Error(n(137,s));if(a.dangerouslySetInnerHTML!=null){if(a.children!=null)throw Error(n(60));if(typeof a.dangerouslySetInnerHTML!="object"||!("__html"in a.dangerouslySetInnerHTML))throw Error(n(61))}if(a.style!=null&&typeof a.style!="object")throw Error(n(62))}}function zf(s,a){if(s.indexOf("-")===-1)return typeof a.is=="string";switch(s){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 $f=null;function Vf(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}var Wf=null,os=null,as=null;function Ey(s){if(s=Uo(s)){if(typeof Wf!="function")throw Error(n(280));var a=s.stateNode;a&&(a=Zl(a),Wf(s.stateNode,s.type,a))}}function Ay(s){os?as?as.push(s):as=[s]:os=s}function My(){if(os){var s=os,a=as;if(as=os=null,Ey(s),a)for(s=0;s>>=0,s===0?32:31-(wP(s)/kP|0)|0}var Il=64,Ll=4194304;function Po(s){switch(s&-s){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 s&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return s&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return s}}function Nl(s,a){var f=s.pendingLanes;if(f===0)return 0;var h=0,g=s.suspendedLanes,v=s.pingedLanes,C=f&268435455;if(C!==0){var O=C&~g;O!==0?h=Po(O):(v&=C,v!==0&&(h=Po(v)))}else C=f&~g,C!==0?h=Po(C):v!==0&&(h=Po(v));if(h===0)return 0;if(a!==0&&a!==h&&!(a&g)&&(g=h&-h,v=a&-a,g>=v||g===16&&(v&4194240)!==0))return a;if(h&4&&(h|=f&16),a=s.entangledLanes,a!==0)for(s=s.entanglements,a&=h;0f;f++)a.push(s);return a}function To(s,a,f){s.pendingLanes|=a,a!==536870912&&(s.suspendedLanes=0,s.pingedLanes=0),s=s.eventTimes,a=31-Tn(a),s[a]=f}function TP(s,a){var f=s.pendingLanes&~a;s.pendingLanes=a,s.suspendedLanes=0,s.pingedLanes=0,s.expiredLanes&=a,s.mutableReadLanes&=a,s.entangledLanes&=a,a=s.entanglements;var h=s.eventTimes;for(s=s.expirationTimes;0=Lo),i0=" ",s0=!1;function o0(s,a){switch(s){case"keyup":return tT.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function a0(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var us=!1;function rT(s,a){switch(s){case"compositionend":return a0(a);case"keypress":return a.which!==32?null:(s0=!0,i0);case"textInput":return s=a.data,s===i0&&s0?null:s;default:return null}}function iT(s,a){if(us)return s==="compositionend"||!ad&&o0(s,a)?(s=Zy(),$l=td=zr=null,us=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1=a)return{node:f,offset:a-s};s=h}e:{for(;f;){if(f.nextSibling){f=f.nextSibling;break e}f=f.parentNode}f=void 0}f=p0(f)}}function g0(s,a){return s&&a?s===a?!0:s&&s.nodeType===3?!1:a&&a.nodeType===3?g0(s,a.parentNode):"contains"in s?s.contains(a):s.compareDocumentPosition?!!(s.compareDocumentPosition(a)&16):!1:!1}function y0(){for(var s=window,a=Pn();a instanceof s.HTMLIFrameElement;){try{var f=typeof a.contentWindow.location.href=="string"}catch{f=!1}if(f)s=a.contentWindow;else break;a=Pn(s.document)}return a}function ud(s){var a=s&&s.nodeName&&s.nodeName.toLowerCase();return a&&(a==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||a==="textarea"||s.contentEditable==="true")}function hT(s){var a=y0(),f=s.focusedElem,h=s.selectionRange;if(a!==f&&f&&f.ownerDocument&&g0(f.ownerDocument.documentElement,f)){if(h!==null&&ud(f)){if(a=h.start,s=h.end,s===void 0&&(s=a),"selectionStart"in f)f.selectionStart=a,f.selectionEnd=Math.min(s,f.value.length);else if(s=(a=f.ownerDocument||document)&&a.defaultView||window,s.getSelection){s=s.getSelection();var g=f.textContent.length,v=Math.min(h.start,g);h=h.end===void 0?v:Math.min(h.end,g),!s.extend&&v>h&&(g=h,h=v,v=g),g=m0(f,v);var C=m0(f,h);g&&C&&(s.rangeCount!==1||s.anchorNode!==g.node||s.anchorOffset!==g.offset||s.focusNode!==C.node||s.focusOffset!==C.offset)&&(a=a.createRange(),a.setStart(g.node,g.offset),s.removeAllRanges(),v>h?(s.addRange(a),s.extend(C.node,C.offset)):(a.setEnd(C.node,C.offset),s.addRange(a)))}}for(a=[],s=f;s=s.parentNode;)s.nodeType===1&&a.push({element:s,left:s.scrollLeft,top:s.scrollTop});for(typeof f.focus=="function"&&f.focus(),f=0;f=document.documentMode,fs=null,fd=null,Bo=null,dd=!1;function v0(s,a,f){var h=f.window===f?f.document:f.nodeType===9?f:f.ownerDocument;dd||fs==null||fs!==Pn(h)||(h=fs,"selectionStart"in h&&ud(h)?h={start:h.selectionStart,end:h.selectionEnd}:(h=(h.ownerDocument&&h.ownerDocument.defaultView||window).getSelection(),h={anchorNode:h.anchorNode,anchorOffset:h.anchorOffset,focusNode:h.focusNode,focusOffset:h.focusOffset}),Bo&&Fo(Bo,h)||(Bo=h,h=Xl(fd,"onSelect"),0gs||(s.current=Cd[gs],Cd[gs]=null,gs--)}function ze(s,a){gs++,Cd[gs]=s.current,s.current=a}var Ur={},_t=Wr(Ur),Bt=Wr(!1),wi=Ur;function ys(s,a){var f=s.type.contextTypes;if(!f)return Ur;var h=s.stateNode;if(h&&h.__reactInternalMemoizedUnmaskedChildContext===a)return h.__reactInternalMemoizedMaskedChildContext;var g={},v;for(v in f)g[v]=a[v];return h&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=a,s.__reactInternalMemoizedMaskedChildContext=g),g}function zt(s){return s=s.childContextTypes,s!=null}function Jl(){We(Bt),We(_t)}function D0(s,a,f){if(_t.current!==Ur)throw Error(n(168));ze(_t,a),ze(Bt,f)}function I0(s,a,f){var h=s.stateNode;if(a=a.childContextTypes,typeof h.getChildContext!="function")return f;h=h.getChildContext();for(var g in h)if(!(g in a))throw Error(n(108,we(s)||"Unknown",g));return se({},f,h)}function ec(s){return s=(s=s.stateNode)&&s.__reactInternalMemoizedMergedChildContext||Ur,wi=_t.current,ze(_t,s),ze(Bt,Bt.current),!0}function L0(s,a,f){var h=s.stateNode;if(!h)throw Error(n(169));f?(s=I0(s,a,wi),h.__reactInternalMemoizedMergedChildContext=s,We(Bt),We(_t),ze(_t,s)):We(Bt),ze(Bt,f)}var ar=null,tc=!1,_d=!1;function N0(s){ar===null?ar=[s]:ar.push(s)}function _T(s){tc=!0,N0(s)}function Hr(){if(!_d&&ar!==null){_d=!0;var s=0,a=Le;try{var f=ar;for(Le=1;s>=C,g-=C,lr=1<<32-Tn(a)+g|f<xe?(xt=ye,ye=null):xt=ye.sibling;var Ae=G(B,ye,z[xe],ee);if(Ae===null){ye===null&&(ye=xt);break}s&&ye&&Ae.alternate===null&&a(B,ye),j=v(Ae,j,xe),ge===null?de=Ae:ge.sibling=Ae,ge=Ae,ye=xt}if(xe===z.length)return f(B,ye),Ke&&Ci(B,xe),de;if(ye===null){for(;xexe?(xt=ye,ye=null):xt=ye.sibling;var ei=G(B,ye,Ae.value,ee);if(ei===null){ye===null&&(ye=xt);break}s&&ye&&ei.alternate===null&&a(B,ye),j=v(ei,j,xe),ge===null?de=ei:ge.sibling=ei,ge=ei,ye=xt}if(Ae.done)return f(B,ye),Ke&&Ci(B,xe),de;if(ye===null){for(;!Ae.done;xe++,Ae=z.next())Ae=Q(B,Ae.value,ee),Ae!==null&&(j=v(Ae,j,xe),ge===null?de=Ae:ge.sibling=Ae,ge=Ae);return Ke&&Ci(B,xe),de}for(ye=h(B,ye);!Ae.done;xe++,Ae=z.next())Ae=ae(ye,B,xe,Ae.value,ee),Ae!==null&&(s&&Ae.alternate!==null&&ye.delete(Ae.key===null?xe:Ae.key),j=v(Ae,j,xe),ge===null?de=Ae:ge.sibling=Ae,ge=Ae);return s&&ye.forEach(function(sE){return a(B,sE)}),Ke&&Ci(B,xe),de}function it(B,j,z,ee){if(typeof z=="object"&&z!==null&&z.type===D&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case E:e:{for(var de=z.key,ge=j;ge!==null;){if(ge.key===de){if(de=z.type,de===D){if(ge.tag===7){f(B,ge.sibling),j=g(ge,z.props.children),j.return=B,B=j;break e}}else if(ge.elementType===de||typeof de=="object"&&de!==null&&de.$$typeof===re&&V0(de)===ge.type){f(B,ge.sibling),j=g(ge,z.props),j.ref=Ho(B,ge,z),j.return=B,B=j;break e}f(B,ge);break}else a(B,ge);ge=ge.sibling}z.type===D?(j=Oi(z.props.children,B.mode,ee,z.key),j.return=B,B=j):(ee=Ac(z.type,z.key,z.props,null,B.mode,ee),ee.ref=Ho(B,j,z),ee.return=B,B=ee)}return C(B);case I:e:{for(ge=z.key;j!==null;){if(j.key===ge)if(j.tag===4&&j.stateNode.containerInfo===z.containerInfo&&j.stateNode.implementation===z.implementation){f(B,j.sibling),j=g(j,z.children||[]),j.return=B,B=j;break e}else{f(B,j);break}else a(B,j);j=j.sibling}j=wh(z,B.mode,ee),j.return=B,B=j}return C(B);case re:return ge=z._init,it(B,j,ge(z._payload),ee)}if(Ir(z))return ue(B,j,z,ee);if(te(z))return fe(B,j,z,ee);sc(B,z)}return typeof z=="string"&&z!==""||typeof z=="number"?(z=""+z,j!==null&&j.tag===6?(f(B,j.sibling),j=g(j,z),j.return=B,B=j):(f(B,j),j=Sh(z,B.mode,ee),j.return=B,B=j),C(B)):f(B,j)}return it}var Ss=W0(!0),U0=W0(!1),oc=Wr(null),ac=null,ws=null,Rd=null;function Od(){Rd=ws=ac=null}function Dd(s){var a=oc.current;We(oc),s._currentValue=a}function Id(s,a,f){for(;s!==null;){var h=s.alternate;if((s.childLanes&a)!==a?(s.childLanes|=a,h!==null&&(h.childLanes|=a)):h!==null&&(h.childLanes&a)!==a&&(h.childLanes|=a),s===f)break;s=s.return}}function ks(s,a){ac=s,Rd=ws=null,s=s.dependencies,s!==null&&s.firstContext!==null&&(s.lanes&a&&($t=!0),s.firstContext=null)}function dn(s){var a=s._currentValue;if(Rd!==s)if(s={context:s,memoizedValue:a,next:null},ws===null){if(ac===null)throw Error(n(308));ws=s,ac.dependencies={lanes:0,firstContext:s}}else ws=ws.next=s;return a}var _i=null;function Ld(s){_i===null?_i=[s]:_i.push(s)}function H0(s,a,f,h){var g=a.interleaved;return g===null?(f.next=f,Ld(a)):(f.next=g.next,g.next=f),a.interleaved=f,ur(s,h)}function ur(s,a){s.lanes|=a;var f=s.alternate;for(f!==null&&(f.lanes|=a),f=s,s=s.return;s!==null;)s.childLanes|=a,f=s.alternate,f!==null&&(f.childLanes|=a),f=s,s=s.return;return f.tag===3?f.stateNode:null}var Kr=!1;function Nd(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function K0(s,a){s=s.updateQueue,a.updateQueue===s&&(a.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,effects:s.effects})}function fr(s,a){return{eventTime:s,lane:a,tag:0,payload:null,callback:null,next:null}}function Yr(s,a,f){var h=s.updateQueue;if(h===null)return null;if(h=h.shared,Ee&2){var g=h.pending;return g===null?a.next=a:(a.next=g.next,g.next=a),h.pending=a,ur(s,f)}return g=h.interleaved,g===null?(a.next=a,Ld(h)):(a.next=g.next,g.next=a),h.interleaved=a,ur(s,f)}function lc(s,a,f){if(a=a.updateQueue,a!==null&&(a=a.shared,(f&4194240)!==0)){var h=a.lanes;h&=s.pendingLanes,f|=h,a.lanes=f,qf(s,f)}}function Y0(s,a){var f=s.updateQueue,h=s.alternate;if(h!==null&&(h=h.updateQueue,f===h)){var g=null,v=null;if(f=f.firstBaseUpdate,f!==null){do{var C={eventTime:f.eventTime,lane:f.lane,tag:f.tag,payload:f.payload,callback:f.callback,next:null};v===null?g=v=C:v=v.next=C,f=f.next}while(f!==null);v===null?g=v=a:v=v.next=a}else g=v=a;f={baseState:h.baseState,firstBaseUpdate:g,lastBaseUpdate:v,shared:h.shared,effects:h.effects},s.updateQueue=f;return}s=f.lastBaseUpdate,s===null?f.firstBaseUpdate=a:s.next=a,f.lastBaseUpdate=a}function cc(s,a,f,h){var g=s.updateQueue;Kr=!1;var v=g.firstBaseUpdate,C=g.lastBaseUpdate,O=g.shared.pending;if(O!==null){g.shared.pending=null;var L=O,W=L.next;L.next=null,C===null?v=W:C.next=W,C=L;var X=s.alternate;X!==null&&(X=X.updateQueue,O=X.lastBaseUpdate,O!==C&&(O===null?X.firstBaseUpdate=W:O.next=W,X.lastBaseUpdate=L))}if(v!==null){var Q=g.baseState;C=0,X=W=L=null,O=v;do{var G=O.lane,ae=O.eventTime;if((h&G)===G){X!==null&&(X=X.next={eventTime:ae,lane:0,tag:O.tag,payload:O.payload,callback:O.callback,next:null});e:{var ue=s,fe=O;switch(G=a,ae=f,fe.tag){case 1:if(ue=fe.payload,typeof ue=="function"){Q=ue.call(ae,Q,G);break e}Q=ue;break e;case 3:ue.flags=ue.flags&-65537|128;case 0:if(ue=fe.payload,G=typeof ue=="function"?ue.call(ae,Q,G):ue,G==null)break e;Q=se({},Q,G);break e;case 2:Kr=!0}}O.callback!==null&&O.lane!==0&&(s.flags|=64,G=g.effects,G===null?g.effects=[O]:G.push(O))}else ae={eventTime:ae,lane:G,tag:O.tag,payload:O.payload,callback:O.callback,next:null},X===null?(W=X=ae,L=Q):X=X.next=ae,C|=G;if(O=O.next,O===null){if(O=g.shared.pending,O===null)break;G=O,O=G.next,G.next=null,g.lastBaseUpdate=G,g.shared.pending=null}}while(!0);if(X===null&&(L=Q),g.baseState=L,g.firstBaseUpdate=W,g.lastBaseUpdate=X,a=g.shared.interleaved,a!==null){g=a;do C|=g.lane,g=g.next;while(g!==a)}else v===null&&(g.shared.lanes=0);Ei|=C,s.lanes=C,s.memoizedState=Q}}function G0(s,a,f){if(s=a.effects,a.effects=null,s!==null)for(a=0;af?f:4,s(!0);var h=$d.transition;$d.transition={};try{s(!1),a()}finally{Le=f,$d.transition=h}}function hv(){return hn().memoizedState}function AT(s,a,f){var h=Qr(s);if(f={lane:h,action:f,hasEagerState:!1,eagerState:null,next:null},pv(s))mv(a,f);else if(f=H0(s,a,f,h),f!==null){var g=jt();Dn(f,s,h,g),gv(f,a,h)}}function MT(s,a,f){var h=Qr(s),g={lane:h,action:f,hasEagerState:!1,eagerState:null,next:null};if(pv(s))mv(a,g);else{var v=s.alternate;if(s.lanes===0&&(v===null||v.lanes===0)&&(v=a.lastRenderedReducer,v!==null))try{var C=a.lastRenderedState,O=v(C,f);if(g.hasEagerState=!0,g.eagerState=O,En(O,C)){var L=a.interleaved;L===null?(g.next=g,Ld(a)):(g.next=L.next,L.next=g),a.interleaved=g;return}}catch{}finally{}f=H0(s,a,g,h),f!==null&&(g=jt(),Dn(f,s,h,g),gv(f,a,h))}}function pv(s){var a=s.alternate;return s===Xe||a!==null&&a===Xe}function mv(s,a){Xo=dc=!0;var f=s.pending;f===null?a.next=a:(a.next=f.next,f.next=a),s.pending=a}function gv(s,a,f){if(f&4194240){var h=a.lanes;h&=s.pendingLanes,f|=h,a.lanes=f,qf(s,f)}}var mc={readContext:dn,useCallback:Pt,useContext:Pt,useEffect:Pt,useImperativeHandle:Pt,useInsertionEffect:Pt,useLayoutEffect:Pt,useMemo:Pt,useReducer:Pt,useRef:Pt,useState:Pt,useDebugValue:Pt,useDeferredValue:Pt,useTransition:Pt,useMutableSource:Pt,useSyncExternalStore:Pt,useId:Pt,unstable_isNewReconciler:!1},RT={readContext:dn,useCallback:function(s,a){return $n().memoizedState=[s,a===void 0?null:a],s},useContext:dn,useEffect:sv,useImperativeHandle:function(s,a,f){return f=f!=null?f.concat([s]):null,hc(4194308,4,lv.bind(null,a,s),f)},useLayoutEffect:function(s,a){return hc(4194308,4,s,a)},useInsertionEffect:function(s,a){return hc(4,2,s,a)},useMemo:function(s,a){var f=$n();return a=a===void 0?null:a,s=s(),f.memoizedState=[s,a],s},useReducer:function(s,a,f){var h=$n();return a=f!==void 0?f(a):a,h.memoizedState=h.baseState=a,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:a},h.queue=s,s=s.dispatch=AT.bind(null,Xe,s),[h.memoizedState,s]},useRef:function(s){var a=$n();return s={current:s},a.memoizedState=s},useState:rv,useDebugValue:Gd,useDeferredValue:function(s){return $n().memoizedState=s},useTransition:function(){var s=rv(!1),a=s[0];return s=ET.bind(null,s[1]),$n().memoizedState=s,[a,s]},useMutableSource:function(){},useSyncExternalStore:function(s,a,f){var h=Xe,g=$n();if(Ke){if(f===void 0)throw Error(n(407));f=f()}else{if(f=a(),vt===null)throw Error(n(349));Ti&30||Z0(h,a,f)}g.memoizedState=f;var v={value:f,getSnapshot:a};return g.queue=v,sv(ev.bind(null,h,v,s),[s]),h.flags|=2048,Zo(9,J0.bind(null,h,v,f,a),void 0,null),f},useId:function(){var s=$n(),a=vt.identifierPrefix;if(Ke){var f=cr,h=lr;f=(h&~(1<<32-Tn(h)-1)).toString(32)+f,a=":"+a+"R"+f,f=qo++,0<\/script>",s=s.removeChild(s.firstChild)):typeof h.is=="string"?s=C.createElement(f,{is:h.is}):(s=C.createElement(f),f==="select"&&(C=s,h.multiple?C.multiple=!0:h.size&&(C.size=h.size))):s=C.createElementNS(s,f),s[Bn]=a,s[Wo]=h,Nv(s,a,!1,!1),a.stateNode=s;e:{switch(C=zf(f,h),f){case"dialog":Ve("cancel",s),Ve("close",s),g=h;break;case"iframe":case"object":case"embed":Ve("load",s),g=h;break;case"video":case"audio":for(g=0;gEs&&(a.flags|=128,h=!0,Jo(v,!1),a.lanes=4194304)}else{if(!h)if(s=uc(C),s!==null){if(a.flags|=128,h=!0,f=s.updateQueue,f!==null&&(a.updateQueue=f,a.flags|=4),Jo(v,!0),v.tail===null&&v.tailMode==="hidden"&&!C.alternate&&!Ke)return Tt(a),null}else 2*rt()-v.renderingStartTime>Es&&f!==1073741824&&(a.flags|=128,h=!0,Jo(v,!1),a.lanes=4194304);v.isBackwards?(C.sibling=a.child,a.child=C):(f=v.last,f!==null?f.sibling=C:a.child=C,v.last=C)}return v.tail!==null?(a=v.tail,v.rendering=a,v.tail=a.sibling,v.renderingStartTime=rt(),a.sibling=null,f=Ge.current,ze(Ge,h?f&1|2:f&1),a):(Tt(a),null);case 22:case 23:return vh(),h=a.memoizedState!==null,s!==null&&s.memoizedState!==null!==h&&(a.flags|=8192),h&&a.mode&1?tn&1073741824&&(Tt(a),a.subtreeFlags&6&&(a.flags|=8192)):Tt(a),null;case 24:return null;case 25:return null}throw Error(n(156,a.tag))}function BT(s,a){switch(Td(a),a.tag){case 1:return zt(a.type)&&Jl(),s=a.flags,s&65536?(a.flags=s&-65537|128,a):null;case 3:return Cs(),We(Bt),We(_t),zd(),s=a.flags,s&65536&&!(s&128)?(a.flags=s&-65537|128,a):null;case 5:return Fd(a),null;case 13:if(We(Ge),s=a.memoizedState,s!==null&&s.dehydrated!==null){if(a.alternate===null)throw Error(n(340));bs()}return s=a.flags,s&65536?(a.flags=s&-65537|128,a):null;case 19:return We(Ge),null;case 4:return Cs(),null;case 10:return Dd(a.type._context),null;case 22:case 23:return vh(),null;case 24:return null;default:return null}}var xc=!1,Et=!1,zT=typeof WeakSet=="function"?WeakSet:Set,ce=null;function Ps(s,a){var f=s.ref;if(f!==null)if(typeof f=="function")try{f(null)}catch(h){Ze(s,a,h)}else f.current=null}function oh(s,a,f){try{f()}catch(h){Ze(s,a,h)}}var Bv=!1;function $T(s,a){if(vd=Bl,s=y0(),ud(s)){if("selectionStart"in s)var f={start:s.selectionStart,end:s.selectionEnd};else e:{f=(f=s.ownerDocument)&&f.defaultView||window;var h=f.getSelection&&f.getSelection();if(h&&h.rangeCount!==0){f=h.anchorNode;var g=h.anchorOffset,v=h.focusNode;h=h.focusOffset;try{f.nodeType,v.nodeType}catch{f=null;break e}var C=0,O=-1,L=-1,W=0,X=0,Q=s,G=null;t:for(;;){for(var ae;Q!==f||g!==0&&Q.nodeType!==3||(O=C+g),Q!==v||h!==0&&Q.nodeType!==3||(L=C+h),Q.nodeType===3&&(C+=Q.nodeValue.length),(ae=Q.firstChild)!==null;)G=Q,Q=ae;for(;;){if(Q===s)break t;if(G===f&&++W===g&&(O=C),G===v&&++X===h&&(L=C),(ae=Q.nextSibling)!==null)break;Q=G,G=Q.parentNode}Q=ae}f=O===-1||L===-1?null:{start:O,end:L}}else f=null}f=f||{start:0,end:0}}else f=null;for(xd={focusedElem:s,selectionRange:f},Bl=!1,ce=a;ce!==null;)if(a=ce,s=a.child,(a.subtreeFlags&1028)!==0&&s!==null)s.return=a,ce=s;else for(;ce!==null;){a=ce;try{var ue=a.alternate;if(a.flags&1024)switch(a.tag){case 0:case 11:case 15:break;case 1:if(ue!==null){var fe=ue.memoizedProps,it=ue.memoizedState,B=a.stateNode,j=B.getSnapshotBeforeUpdate(a.elementType===a.type?fe:Mn(a.type,fe),it);B.__reactInternalSnapshotBeforeUpdate=j}break;case 3:var z=a.stateNode.containerInfo;z.nodeType===1?z.textContent="":z.nodeType===9&&z.documentElement&&z.removeChild(z.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(ee){Ze(a,a.return,ee)}if(s=a.sibling,s!==null){s.return=a.return,ce=s;break}ce=a.return}return ue=Bv,Bv=!1,ue}function ea(s,a,f){var h=a.updateQueue;if(h=h!==null?h.lastEffect:null,h!==null){var g=h=h.next;do{if((g.tag&s)===s){var v=g.destroy;g.destroy=void 0,v!==void 0&&oh(a,f,v)}g=g.next}while(g!==h)}}function bc(s,a){if(a=a.updateQueue,a=a!==null?a.lastEffect:null,a!==null){var f=a=a.next;do{if((f.tag&s)===s){var h=f.create;f.destroy=h()}f=f.next}while(f!==a)}}function ah(s){var a=s.ref;if(a!==null){var f=s.stateNode;switch(s.tag){case 5:s=f;break;default:s=f}typeof a=="function"?a(s):a.current=s}}function zv(s){var a=s.alternate;a!==null&&(s.alternate=null,zv(a)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(a=s.stateNode,a!==null&&(delete a[Bn],delete a[Wo],delete a[kd],delete a[kT],delete a[CT])),s.stateNode=null,s.return=null,s.dependencies=null,s.memoizedProps=null,s.memoizedState=null,s.pendingProps=null,s.stateNode=null,s.updateQueue=null}function $v(s){return s.tag===5||s.tag===3||s.tag===4}function Vv(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||$v(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function lh(s,a,f){var h=s.tag;if(h===5||h===6)s=s.stateNode,a?f.nodeType===8?f.parentNode.insertBefore(s,a):f.insertBefore(s,a):(f.nodeType===8?(a=f.parentNode,a.insertBefore(s,f)):(a=f,a.appendChild(s)),f=f._reactRootContainer,f!=null||a.onclick!==null||(a.onclick=Ql));else if(h!==4&&(s=s.child,s!==null))for(lh(s,a,f),s=s.sibling;s!==null;)lh(s,a,f),s=s.sibling}function ch(s,a,f){var h=s.tag;if(h===5||h===6)s=s.stateNode,a?f.insertBefore(s,a):f.appendChild(s);else if(h!==4&&(s=s.child,s!==null))for(ch(s,a,f),s=s.sibling;s!==null;)ch(s,a,f),s=s.sibling}var St=null,Rn=!1;function Gr(s,a,f){for(f=f.child;f!==null;)Wv(s,a,f),f=f.sibling}function Wv(s,a,f){if(Fn&&typeof Fn.onCommitFiberUnmount=="function")try{Fn.onCommitFiberUnmount(Dl,f)}catch{}switch(f.tag){case 5:Et||Ps(f,a);case 6:var h=St,g=Rn;St=null,Gr(s,a,f),St=h,Rn=g,St!==null&&(Rn?(s=St,f=f.stateNode,s.nodeType===8?s.parentNode.removeChild(f):s.removeChild(f)):St.removeChild(f.stateNode));break;case 18:St!==null&&(Rn?(s=St,f=f.stateNode,s.nodeType===8?wd(s.parentNode,f):s.nodeType===1&&wd(s,f),Oo(s)):wd(St,f.stateNode));break;case 4:h=St,g=Rn,St=f.stateNode.containerInfo,Rn=!0,Gr(s,a,f),St=h,Rn=g;break;case 0:case 11:case 14:case 15:if(!Et&&(h=f.updateQueue,h!==null&&(h=h.lastEffect,h!==null))){g=h=h.next;do{var v=g,C=v.destroy;v=v.tag,C!==void 0&&(v&2||v&4)&&oh(f,a,C),g=g.next}while(g!==h)}Gr(s,a,f);break;case 1:if(!Et&&(Ps(f,a),h=f.stateNode,typeof h.componentWillUnmount=="function"))try{h.props=f.memoizedProps,h.state=f.memoizedState,h.componentWillUnmount()}catch(O){Ze(f,a,O)}Gr(s,a,f);break;case 21:Gr(s,a,f);break;case 22:f.mode&1?(Et=(h=Et)||f.memoizedState!==null,Gr(s,a,f),Et=h):Gr(s,a,f);break;default:Gr(s,a,f)}}function Uv(s){var a=s.updateQueue;if(a!==null){s.updateQueue=null;var f=s.stateNode;f===null&&(f=s.stateNode=new zT),a.forEach(function(h){var g=qT.bind(null,s,h);f.has(h)||(f.add(h),h.then(g,g))})}}function On(s,a){var f=a.deletions;if(f!==null)for(var h=0;hg&&(g=C),h&=~v}if(h=g,h=rt()-h,h=(120>h?120:480>h?480:1080>h?1080:1920>h?1920:3e3>h?3e3:4320>h?4320:1960*WT(h/1960))-h,10s?16:s,qr===null)var h=!1;else{if(s=qr,qr=null,_c=0,Ee&6)throw Error(n(331));var g=Ee;for(Ee|=4,ce=s.current;ce!==null;){var v=ce,C=v.child;if(ce.flags&16){var O=v.deletions;if(O!==null){for(var L=0;Lrt()-dh?Mi(s,0):fh|=f),Wt(s,a)}function r1(s,a){a===0&&(s.mode&1?(a=Ll,Ll<<=1,!(Ll&130023424)&&(Ll=4194304)):a=1);var f=jt();s=ur(s,a),s!==null&&(To(s,a,f),Wt(s,f))}function XT(s){var a=s.memoizedState,f=0;a!==null&&(f=a.retryLane),r1(s,f)}function qT(s,a){var f=0;switch(s.tag){case 13:var h=s.stateNode,g=s.memoizedState;g!==null&&(f=g.retryLane);break;case 19:h=s.stateNode;break;default:throw Error(n(314))}h!==null&&h.delete(a),r1(s,f)}var i1;i1=function(s,a,f){if(s!==null)if(s.memoizedProps!==a.pendingProps||Bt.current)$t=!0;else{if(!(s.lanes&f)&&!(a.flags&128))return $t=!1,jT(s,a,f);$t=!!(s.flags&131072)}else $t=!1,Ke&&a.flags&1048576&&j0(a,rc,a.index);switch(a.lanes=0,a.tag){case 2:var h=a.type;vc(s,a),s=a.pendingProps;var g=ys(a,_t.current);ks(a,f),g=Wd(null,a,h,s,g,f);var v=Ud();return a.flags|=1,typeof g=="object"&&g!==null&&typeof g.render=="function"&&g.$$typeof===void 0?(a.tag=1,a.memoizedState=null,a.updateQueue=null,zt(h)?(v=!0,ec(a)):v=!1,a.memoizedState=g.state!==null&&g.state!==void 0?g.state:null,Nd(a),g.updater=gc,a.stateNode=g,g._reactInternals=a,qd(a,h,s,f),a=eh(null,a,h,!0,v,f)):(a.tag=0,Ke&&v&&Pd(a),Nt(null,a,g,f),a=a.child),a;case 16:h=a.elementType;e:{switch(vc(s,a),s=a.pendingProps,g=h._init,h=g(h._payload),a.type=h,g=a.tag=ZT(h),s=Mn(h,s),g){case 0:a=Jd(null,a,h,s,f);break e;case 1:a=Mv(null,a,h,s,f);break e;case 11:a=_v(null,a,h,s,f);break e;case 14:a=Pv(null,a,h,Mn(h.type,s),f);break e}throw Error(n(306,h,""))}return a;case 0:return h=a.type,g=a.pendingProps,g=a.elementType===h?g:Mn(h,g),Jd(s,a,h,g,f);case 1:return h=a.type,g=a.pendingProps,g=a.elementType===h?g:Mn(h,g),Mv(s,a,h,g,f);case 3:e:{if(Rv(a),s===null)throw Error(n(387));h=a.pendingProps,v=a.memoizedState,g=v.element,K0(s,a),cc(a,h,null,f);var C=a.memoizedState;if(h=C.element,v.isDehydrated)if(v={element:h,isDehydrated:!1,cache:C.cache,pendingSuspenseBoundaries:C.pendingSuspenseBoundaries,transitions:C.transitions},a.updateQueue.baseState=v,a.memoizedState=v,a.flags&256){g=_s(Error(n(423)),a),a=Ov(s,a,h,f,g);break e}else if(h!==g){g=_s(Error(n(424)),a),a=Ov(s,a,h,f,g);break e}else for(en=Vr(a.stateNode.containerInfo.firstChild),Jt=a,Ke=!0,An=null,f=U0(a,null,h,f),a.child=f;f;)f.flags=f.flags&-3|4096,f=f.sibling;else{if(bs(),h===g){a=dr(s,a,f);break e}Nt(s,a,h,f)}a=a.child}return a;case 5:return X0(a),s===null&&Ad(a),h=a.type,g=a.pendingProps,v=s!==null?s.memoizedProps:null,C=g.children,bd(h,g)?C=null:v!==null&&bd(h,v)&&(a.flags|=32),Av(s,a),Nt(s,a,C,f),a.child;case 6:return s===null&&Ad(a),null;case 13:return Dv(s,a,f);case 4:return jd(a,a.stateNode.containerInfo),h=a.pendingProps,s===null?a.child=Ss(a,null,h,f):Nt(s,a,h,f),a.child;case 11:return h=a.type,g=a.pendingProps,g=a.elementType===h?g:Mn(h,g),_v(s,a,h,g,f);case 7:return Nt(s,a,a.pendingProps,f),a.child;case 8:return Nt(s,a,a.pendingProps.children,f),a.child;case 12:return Nt(s,a,a.pendingProps.children,f),a.child;case 10:e:{if(h=a.type._context,g=a.pendingProps,v=a.memoizedProps,C=g.value,ze(oc,h._currentValue),h._currentValue=C,v!==null)if(En(v.value,C)){if(v.children===g.children&&!Bt.current){a=dr(s,a,f);break e}}else for(v=a.child,v!==null&&(v.return=a);v!==null;){var O=v.dependencies;if(O!==null){C=v.child;for(var L=O.firstContext;L!==null;){if(L.context===h){if(v.tag===1){L=fr(-1,f&-f),L.tag=2;var W=v.updateQueue;if(W!==null){W=W.shared;var X=W.pending;X===null?L.next=L:(L.next=X.next,X.next=L),W.pending=L}}v.lanes|=f,L=v.alternate,L!==null&&(L.lanes|=f),Id(v.return,f,a),O.lanes|=f;break}L=L.next}}else if(v.tag===10)C=v.type===a.type?null:v.child;else if(v.tag===18){if(C=v.return,C===null)throw Error(n(341));C.lanes|=f,O=C.alternate,O!==null&&(O.lanes|=f),Id(C,f,a),C=v.sibling}else C=v.child;if(C!==null)C.return=v;else for(C=v;C!==null;){if(C===a){C=null;break}if(v=C.sibling,v!==null){v.return=C.return,C=v;break}C=C.return}v=C}Nt(s,a,g.children,f),a=a.child}return a;case 9:return g=a.type,h=a.pendingProps.children,ks(a,f),g=dn(g),h=h(g),a.flags|=1,Nt(s,a,h,f),a.child;case 14:return h=a.type,g=Mn(h,a.pendingProps),g=Mn(h.type,g),Pv(s,a,h,g,f);case 15:return Tv(s,a,a.type,a.pendingProps,f);case 17:return h=a.type,g=a.pendingProps,g=a.elementType===h?g:Mn(h,g),vc(s,a),a.tag=1,zt(h)?(s=!0,ec(a)):s=!1,ks(a,f),vv(a,h,g),qd(a,h,g,f),eh(null,a,h,!0,s,f);case 19:return Lv(s,a,f);case 22:return Ev(s,a,f)}throw Error(n(156,a.tag))};function s1(s,a){return Fy(s,a)}function QT(s,a,f,h){this.tag=s,this.key=f,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=h,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function mn(s,a,f,h){return new QT(s,a,f,h)}function bh(s){return s=s.prototype,!(!s||!s.isReactComponent)}function ZT(s){if(typeof s=="function")return bh(s)?1:0;if(s!=null){if(s=s.$$typeof,s===U)return 11;if(s===q)return 14}return 2}function Jr(s,a){var f=s.alternate;return f===null?(f=mn(s.tag,a,s.key,s.mode),f.elementType=s.elementType,f.type=s.type,f.stateNode=s.stateNode,f.alternate=s,s.alternate=f):(f.pendingProps=a,f.type=s.type,f.flags=0,f.subtreeFlags=0,f.deletions=null),f.flags=s.flags&14680064,f.childLanes=s.childLanes,f.lanes=s.lanes,f.child=s.child,f.memoizedProps=s.memoizedProps,f.memoizedState=s.memoizedState,f.updateQueue=s.updateQueue,a=s.dependencies,f.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},f.sibling=s.sibling,f.index=s.index,f.ref=s.ref,f}function Ac(s,a,f,h,g,v){var C=2;if(h=s,typeof s=="function")bh(s)&&(C=1);else if(typeof s=="string")C=5;else e:switch(s){case D:return Oi(f.children,g,v,a);case N:C=8,g|=8;break;case V:return s=mn(12,f,a,g|2),s.elementType=V,s.lanes=v,s;case J:return s=mn(13,f,a,g),s.elementType=J,s.lanes=v,s;case ne:return s=mn(19,f,a,g),s.elementType=ne,s.lanes=v,s;case ie:return Mc(f,g,v,a);default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case _:C=10;break e;case $:C=9;break e;case U:C=11;break e;case q:C=14;break e;case re:C=16,h=null;break e}throw Error(n(130,s==null?s:typeof s,""))}return a=mn(C,f,a,g),a.elementType=s,a.type=h,a.lanes=v,a}function Oi(s,a,f,h){return s=mn(7,s,h,a),s.lanes=f,s}function Mc(s,a,f,h){return s=mn(22,s,h,a),s.elementType=ie,s.lanes=f,s.stateNode={isHidden:!1},s}function Sh(s,a,f){return s=mn(6,s,null,a),s.lanes=f,s}function wh(s,a,f){return a=mn(4,s.children!==null?s.children:[],s.key,a),a.lanes=f,a.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},a}function JT(s,a,f,h,g){this.tag=a,this.containerInfo=s,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Xf(0),this.expirationTimes=Xf(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xf(0),this.identifierPrefix=h,this.onRecoverableError=g,this.mutableSourceEagerHydrationData=null}function kh(s,a,f,h,g,v,C,O,L){return s=new JT(s,a,f,O,L),a===1?(a=1,v===!0&&(a|=8)):a=0,v=mn(3,null,null,a),s.current=v,v.stateNode=s,v.memoizedState={element:h,isDehydrated:f,cache:null,transitions:null,pendingSuspenseBoundaries:null},Nd(v),s}function eE(s,a,f){var h=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Ah.exports=pE(),Ah.exports}var x1;function mE(){if(x1)return jc;x1=1;var e=Ow();return jc.createRoot=e.createRoot,jc.hydrateRoot=e.hydrateRoot,jc}var gE=mE();const yE=sf(gE);var oa={},b1;function vE(){if(b1)return oa;b1=1,Object.defineProperty(oa,"__esModule",{value:!0}),oa.parse=l,oa.serialize=d;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,i=Object.prototype.toString,o=(()=>{const y=function(){};return y.prototype=Object.create(null),y})();function l(y,x){const b=new o,S=y.length;if(S<2)return b;const w=(x==null?void 0:x.decode)||p;let k=0;do{const A=y.indexOf("=",k);if(A===-1)break;const M=y.indexOf(";",k),R=M===-1?S:M;if(A>R){k=y.lastIndexOf(";",A-1)+1;continue}const E=c(y,k,A),I=u(y,A,E),D=y.slice(E,I);if(b[D]===void 0){let N=c(y,A+1,R),V=u(y,R,N);const _=w(y.slice(N,V));b[D]=_}k=R+1}while(kb;){const S=y.charCodeAt(--x);if(S!==32&&S!==9)return x+1}return b}function d(y,x,b){const S=(b==null?void 0:b.encode)||encodeURIComponent;if(!e.test(y))throw new TypeError(`argument name is invalid: ${y}`);const w=S(x);if(!t.test(w))throw new TypeError(`argument val is invalid: ${x}`);let k=y+"="+w;if(!b)return k;if(b.maxAge!==void 0){if(!Number.isInteger(b.maxAge))throw new TypeError(`option maxAge is invalid: ${b.maxAge}`);k+="; Max-Age="+b.maxAge}if(b.domain){if(!n.test(b.domain))throw new TypeError(`option domain is invalid: ${b.domain}`);k+="; Domain="+b.domain}if(b.path){if(!r.test(b.path))throw new TypeError(`option path is invalid: ${b.path}`);k+="; Path="+b.path}if(b.expires){if(!m(b.expires)||!Number.isFinite(b.expires.valueOf()))throw new TypeError(`option expires is invalid: ${b.expires}`);k+="; Expires="+b.expires.toUTCString()}if(b.httpOnly&&(k+="; HttpOnly"),b.secure&&(k+="; Secure"),b.partitioned&&(k+="; Partitioned"),b.priority)switch(typeof b.priority=="string"?b.priority.toLowerCase():void 0){case"low":k+="; Priority=Low";break;case"medium":k+="; Priority=Medium";break;case"high":k+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${b.priority}`)}if(b.sameSite)switch(typeof b.sameSite=="string"?b.sameSite.toLowerCase():b.sameSite){case!0:case"strict":k+="; SameSite=Strict";break;case"lax":k+="; SameSite=Lax";break;case"none":k+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${b.sameSite}`)}return k}function p(y){if(y.indexOf("%")===-1)return y;try{return decodeURIComponent(y)}catch{return y}}function m(y){return i.call(y)==="[object Date]"}return oa}vE();/** - * react-router v7.0.2 - * - * 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 - */var S1="popstate";function xE(e={}){function t(r,i){let{pathname:o,search:l,hash:c}=r.location;return _p("",{pathname:o,search:l,hash:c},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:Ha(i)}return SE(t,n,null,e)}function Qe(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function ir(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function bE(){return Math.random().toString(36).substring(2,10)}function w1(e,t){return{usr:e.state,key:e.key,idx:t}}function _p(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?fo(t):t,state:n,key:t&&t.key||r||bE()}}function Ha({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function fo(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function SE(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:o=!1}=r,l=i.history,c="POP",u=null,d=p();d==null&&(d=0,l.replaceState({...l.state,idx:d},""));function p(){return(l.state||{idx:null}).idx}function m(){c="POP";let w=p(),k=w==null?null:w-d;d=w,u&&u({action:c,location:S.location,delta:k})}function y(w,k){c="PUSH";let A=_p(S.location,w,k);d=p()+1;let M=w1(A,d),R=S.createHref(A);try{l.pushState(M,"",R)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;i.location.assign(R)}o&&u&&u({action:c,location:S.location,delta:1})}function x(w,k){c="REPLACE";let A=_p(S.location,w,k);d=p();let M=w1(A,d),R=S.createHref(A);l.replaceState(M,"",R),o&&u&&u({action:c,location:S.location,delta:0})}function b(w){let k=i.location.origin!=="null"?i.location.origin:i.location.href,A=typeof w=="string"?w:Ha(w);return A=A.replace(/ $/,"%20"),Qe(k,`No window.location.(origin|href) available to create URL for href: ${A}`),new URL(A,k)}let S={get action(){return c},get location(){return e(i,l)},listen(w){if(u)throw new Error("A history only accepts one active listener");return i.addEventListener(S1,m),u=w,()=>{i.removeEventListener(S1,m),u=null}},createHref(w){return t(i,w)},createURL:b,encodeLocation(w){let k=b(w);return{pathname:k.pathname,search:k.search,hash:k.hash}},push:y,replace:x,go(w){return l.go(w)}};return S}function Dw(e,t,n="/"){return wE(e,t,n,!1)}function wE(e,t,n,r){let i=typeof t=="string"?fo(t):t,o=ci(i.pathname||"/",n);if(o==null)return null;let l=Iw(e);kE(l);let c=null;for(let u=0;c==null&&u{let u={relativePath:c===void 0?o.path||"":c,caseSensitive:o.caseSensitive===!0,childrenIndex:l,route:o};u.relativePath.startsWith("/")&&(Qe(u.relativePath.startsWith(r),`Absolute route path "${u.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),u.relativePath=u.relativePath.slice(r.length));let d=br([r,u.relativePath]),p=n.concat(u);o.children&&o.children.length>0&&(Qe(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),Iw(o.children,t,p,d)),!(o.path==null&&!o.index)&&t.push({path:d,score:ME(d,o.index),routesMeta:p})};return e.forEach((o,l)=>{var c;if(o.path===""||!((c=o.path)!=null&&c.includes("?")))i(o,l);else for(let u of Lw(o.path))i(o,l,u)}),t}function Lw(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let l=Lw(r.join("/")),c=[];return c.push(...l.map(u=>u===""?o:[o,u].join("/"))),i&&c.push(...l),c.map(u=>e.startsWith("/")&&u===""?"/":u)}function kE(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:RE(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var CE=/^:[\w-]+$/,_E=3,PE=2,TE=1,EE=10,AE=-2,k1=e=>e==="*";function ME(e,t){let n=e.split("/"),r=n.length;return n.some(k1)&&(r+=AE),t&&(r+=PE),n.filter(i=>!k1(i)).reduce((i,o)=>i+(CE.test(o)?_E:o===""?TE:EE),r)}function RE(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function OE(e,t,n=!1){let{routesMeta:r}=e,i={},o="/",l=[];for(let c=0;c{if(p==="*"){let b=c[y]||"";l=o.slice(0,o.length-b.length).replace(/(.)\/+$/,"$1")}const x=c[y];return m&&!x?d[p]=void 0:d[p]=(x||"").replace(/%2F/g,"/"),d},{}),pathname:o,pathnameBase:l,pattern:e}}function DE(e,t=!1,n=!0){ir(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,c,u)=>(r.push({paramName:c,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function IE(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return ir(!1,`The URL path "${e}" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function ci(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function LE(e,t="/"){let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?fo(e):e;return{pathname:n?n.startsWith("/")?n:NE(n,t):t,search:BE(r),hash:zE(i)}}function NE(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Oh(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function jE(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Nw(e){let t=jE(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function jw(e,t,n,r=!1){let i;typeof e=="string"?i=fo(e):(i={...e},Qe(!i.pathname||!i.pathname.includes("?"),Oh("?","pathname","search",i)),Qe(!i.pathname||!i.pathname.includes("#"),Oh("#","pathname","hash",i)),Qe(!i.search||!i.search.includes("#"),Oh("#","search","hash",i)));let o=e===""||i.pathname==="",l=o?"/":i.pathname,c;if(l==null)c=n;else{let m=t.length-1;if(!r&&l.startsWith("..")){let y=l.split("/");for(;y[0]==="..";)y.shift(),m-=1;i.pathname=y.join("/")}c=m>=0?t[m]:"/"}let u=LE(i,c),d=l&&l!=="/"&&l.endsWith("/"),p=(o||l===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(d||p)&&(u.pathname+="/"),u}var br=e=>e.join("/").replace(/\/\/+/g,"/"),FE=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),BE=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,zE=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function $E(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var Fw=["POST","PUT","PATCH","DELETE"];new Set(Fw);var VE=["GET",...Fw];new Set(VE);var ho=P.createContext(null);ho.displayName="DataRouter";var of=P.createContext(null);of.displayName="DataRouterState";var Bw=P.createContext({isTransitioning:!1});Bw.displayName="ViewTransition";var WE=P.createContext(new Map);WE.displayName="Fetchers";var UE=P.createContext(null);UE.displayName="Await";var sr=P.createContext(null);sr.displayName="Navigation";var fl=P.createContext(null);fl.displayName="Location";var Er=P.createContext({outlet:null,matches:[],isDataRoute:!1});Er.displayName="Route";var $m=P.createContext(null);$m.displayName="RouteError";function HE(e,{relative:t}={}){Qe(dl(),"useHref() may be used only in the context of a component.");let{basename:n,navigator:r}=P.useContext(sr),{hash:i,pathname:o,search:l}=hl(e,{relative:t}),c=o;return n!=="/"&&(c=o==="/"?n:br([n,o])),r.createHref({pathname:c,search:l,hash:i})}function dl(){return P.useContext(fl)!=null}function ns(){return Qe(dl(),"useLocation() may be used only in the context of a component."),P.useContext(fl).location}var zw="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function $w(e){P.useContext(sr).static||P.useLayoutEffect(e)}function KE(){let{isDataRoute:e}=P.useContext(Er);return e?sA():YE()}function YE(){Qe(dl(),"useNavigate() may be used only in the context of a component.");let e=P.useContext(ho),{basename:t,navigator:n}=P.useContext(sr),{matches:r}=P.useContext(Er),{pathname:i}=ns(),o=JSON.stringify(Nw(r)),l=P.useRef(!1);return $w(()=>{l.current=!0}),P.useCallback((u,d={})=>{if(ir(l.current,zw),!l.current)return;if(typeof u=="number"){n.go(u);return}let p=jw(u,JSON.parse(o),i,d.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:br([t,p.pathname])),(d.replace?n.replace:n.push)(p,d.state,d)},[t,n,o,i,e])}P.createContext(null);function hl(e,{relative:t}={}){let{matches:n}=P.useContext(Er),{pathname:r}=ns(),i=JSON.stringify(Nw(n));return P.useMemo(()=>jw(e,JSON.parse(i),r,t==="path"),[e,i,r,t])}function GE(e,t){return Vw(e,t)}function Vw(e,t,n,r){var k;Qe(dl(),"useRoutes() may be used only in the context of a component.");let{navigator:i}=P.useContext(sr),{matches:o}=P.useContext(Er),l=o[o.length-1],c=l?l.params:{},u=l?l.pathname:"/",d=l?l.pathnameBase:"/",p=l&&l.route;{let A=p&&p.path||"";Ww(u,!p||A.endsWith("*")||A.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${u}" (under ) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. - -Please change the parent to .`)}let m=ns(),y;if(t){let A=typeof t=="string"?fo(t):t;Qe(d==="/"||((k=A.pathname)==null?void 0:k.startsWith(d)),`When overriding the location using \`\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${d}" but pathname "${A.pathname}" was given in the \`location\` prop.`),y=A}else y=m;let x=y.pathname||"/",b=x;if(d!=="/"){let A=d.replace(/^\//,"").split("/");b="/"+x.replace(/^\//,"").split("/").slice(A.length).join("/")}let S=Dw(e,{pathname:b});ir(p||S!=null,`No routes matched location "${y.pathname}${y.search}${y.hash}" `),ir(S==null||S[S.length-1].route.element!==void 0||S[S.length-1].route.Component!==void 0||S[S.length-1].route.lazy!==void 0,`Matched leaf route at location "${y.pathname}${y.search}${y.hash}" does not have an element or Component. This means it will render an with a null value by default resulting in an "empty" page.`);let w=JE(S&&S.map(A=>Object.assign({},A,{params:Object.assign({},c,A.params),pathname:br([d,i.encodeLocation?i.encodeLocation(A.pathname).pathname:A.pathname]),pathnameBase:A.pathnameBase==="/"?d:br([d,i.encodeLocation?i.encodeLocation(A.pathnameBase).pathname:A.pathnameBase])})),o,n,r);return t&&w?P.createElement(fl.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...y},navigationType:"POP"}},w):w}function XE(){let e=iA(),t=$E(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},o={padding:"2px 4px",backgroundColor:r},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=P.createElement(P.Fragment,null,P.createElement("p",null,"💿 Hey developer 👋"),P.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",P.createElement("code",{style:o},"ErrorBoundary")," or"," ",P.createElement("code",{style:o},"errorElement")," prop on your route.")),P.createElement(P.Fragment,null,P.createElement("h2",null,"Unexpected Application Error!"),P.createElement("h3",{style:{fontStyle:"italic"}},t),n?P.createElement("pre",{style:i},n):null,l)}var qE=P.createElement(XE,null),QE=class extends P.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!==void 0?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!==void 0?P.createElement(Er.Provider,{value:this.props.routeContext},P.createElement($m.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function ZE({routeContext:e,match:t,children:n}){let r=P.useContext(ho);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),P.createElement(Er.Provider,{value:e},n)}function JE(e,t=[],n=null,r=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,o=n==null?void 0:n.errors;if(o!=null){let u=i.findIndex(d=>d.route.id&&(o==null?void 0:o[d.route.id])!==void 0);Qe(u>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),i=i.slice(0,Math.min(i.length,u+1))}let l=!1,c=-1;if(n)for(let u=0;u=0?i=i.slice(0,c+1):i=[i[0]];break}}}return i.reduceRight((u,d,p)=>{let m,y=!1,x=null,b=null;n&&(m=o&&d.route.id?o[d.route.id]:void 0,x=d.route.errorElement||qE,l&&(c<0&&p===0?(Ww("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),y=!0,b=null):c===p&&(y=!0,b=d.route.hydrateFallbackElement||null)));let S=t.concat(i.slice(0,p+1)),w=()=>{let k;return m?k=x:y?k=b:d.route.Component?k=P.createElement(d.route.Component,null):d.route.element?k=d.route.element:k=u,P.createElement(ZE,{match:d,routeContext:{outlet:u,matches:S,isDataRoute:n!=null},children:k})};return n&&(d.route.ErrorBoundary||d.route.errorElement||p===0)?P.createElement(QE,{location:n.location,revalidation:n.revalidation,component:x,error:m,children:w(),routeContext:{outlet:null,matches:S,isDataRoute:!0}}):w()},null)}function Vm(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function eA(e){let t=P.useContext(ho);return Qe(t,Vm(e)),t}function tA(e){let t=P.useContext(of);return Qe(t,Vm(e)),t}function nA(e){let t=P.useContext(Er);return Qe(t,Vm(e)),t}function Wm(e){let t=nA(e),n=t.matches[t.matches.length-1];return Qe(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function rA(){return Wm("useRouteId")}function iA(){var r;let e=P.useContext($m),t=tA("useRouteError"),n=Wm("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function sA(){let{router:e}=eA("useNavigate"),t=Wm("useNavigate"),n=P.useRef(!1);return $w(()=>{n.current=!0}),P.useCallback(async(i,o={})=>{ir(n.current,zw),n.current&&(typeof i=="number"?e.navigate(i):await e.navigate(i,{fromRouteId:t,...o}))},[e,t])}var C1={};function Ww(e,t,n){!t&&!C1[e]&&(C1[e]=!0,ir(!1,n))}P.memo(oA);function oA({routes:e,future:t,state:n}){return Vw(e,void 0,n,t)}function xa(e){Qe(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function aA({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:i,static:o=!1}){Qe(!dl(),"You cannot render a inside another . You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),c=P.useMemo(()=>({basename:l,navigator:i,static:o,future:{}}),[l,i,o]);typeof n=="string"&&(n=fo(n));let{pathname:u="/",search:d="",hash:p="",state:m=null,key:y="default"}=n,x=P.useMemo(()=>{let b=ci(u,l);return b==null?null:{location:{pathname:b,search:d,hash:p,state:m,key:y},navigationType:r}},[l,u,d,p,m,y,r]);return ir(x!=null,` is not able to match the URL "${u}${d}${p}" because it does not start with the basename, so the won't render anything.`),x==null?null:P.createElement(sr.Provider,{value:c},P.createElement(fl.Provider,{children:t,value:x}))}function lA({children:e,location:t}){return GE(Pp(e),t)}function Pp(e,t=[]){let n=[];return P.Children.forEach(e,(r,i)=>{if(!P.isValidElement(r))return;let o=[...t,i];if(r.type===P.Fragment){n.push.apply(n,Pp(r.props.children,o));return}Qe(r.type===xa,`[${typeof r.type=="string"?r.type:r.type.name}] is not a component. All component children of must be a or `),Qe(!r.props.index||!r.props.children,"An index route cannot have child routes.");let l={id:r.props.id||o.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,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(l.children=Pp(r.props.children,o)),n.push(l)}),n}var du="get",hu="application/x-www-form-urlencoded";function af(e){return e!=null&&typeof e.tagName=="string"}function cA(e){return af(e)&&e.tagName.toLowerCase()==="button"}function uA(e){return af(e)&&e.tagName.toLowerCase()==="form"}function fA(e){return af(e)&&e.tagName.toLowerCase()==="input"}function dA(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function hA(e,t){return e.button===0&&(!t||t==="_self")&&!dA(e)}var Fc=null;function pA(){if(Fc===null)try{new FormData(document.createElement("form"),0),Fc=!1}catch{Fc=!0}return Fc}var mA=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Dh(e){return e!=null&&!mA.has(e)?(ir(!1,`"${e}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${hu}"`),null):e}function gA(e,t){let n,r,i,o,l;if(uA(e)){let c=e.getAttribute("action");r=c?ci(c,t):null,n=e.getAttribute("method")||du,i=Dh(e.getAttribute("enctype"))||hu,o=new FormData(e)}else if(cA(e)||fA(e)&&(e.type==="submit"||e.type==="image")){let c=e.form;if(c==null)throw new Error('Cannot submit a
\ No newline at end of file diff --git a/net-guardia/static/web/detection.html b/net-guardia/static/web/detection.html new file mode 100644 index 0000000..64a8af1 --- /dev/null +++ b/net-guardia/static/web/detection.html @@ -0,0 +1,21 @@ +NetGuardia \ No newline at end of file diff --git a/net-guardia/static/web/favicon.ico b/net-guardia/static/web/favicon.ico new file mode 100644 index 0000000..ce32193 Binary files /dev/null and b/net-guardia/static/web/favicon.ico differ diff --git a/net-guardia/static/web/index.html b/net-guardia/static/web/index.html index 8bb1496..4054505 100644 --- a/net-guardia/static/web/index.html +++ b/net-guardia/static/web/index.html @@ -1,14 +1,21 @@ - - - - - - - NetGuardia - - - - -
- - +NetGuardia \ No newline at end of file diff --git a/net-guardia/static/web/statistics.html b/net-guardia/static/web/statistics.html new file mode 100644 index 0000000..375322b --- /dev/null +++ b/net-guardia/static/web/statistics.html @@ -0,0 +1,21 @@ +NetGuardia \ No newline at end of file