h2o-wave 1.5.5__py3-none-macosx_11_0_arm64.whl → 1.6.0__py3-none-macosx_11_0_arm64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of h2o-wave might be problematic. Click here for more details.
- h2o_wave/version.py +1 -1
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/waved +0 -0
- h2o_wave-1.6.0.data/data/www/index.html +34 -0
- h2o_wave-1.6.0.data/data/www/wave-static/LocalizationProvider-b740fb5d.js +1 -0
- h2o_wave-1.6.0.data/data/www/wave-static/Paper-86bee4d0.js +5 -0
- h2o_wave-1.6.0.data/data/www/wave-static/ada-29abd822.js +1 -0
- h2o_wave-1.5.5.data/data/www/wave-static/ada.js-2a423f67.js → h2o_wave-1.6.0.data/data/www/wave-static/ada.js-596147e5.js +1 -1
- h2o_wave-1.6.0.data/data/www/wave-static/bash-cc88d916.js +1 -0
- h2o_wave-1.5.5.data/data/www/wave-static/bash.js-d41fa82b.js → h2o_wave-1.6.0.data/data/www/wave-static/bash.js-aeac230f.js +1 -1
- h2o_wave-1.5.5.data/data/www/wave-static/d-ae018a40.js → h2o_wave-1.6.0.data/data/www/wave-static/d-5d21e788.js +1 -1
- h2o_wave-1.5.5.data/data/www/wave-static/d.js-c92f99bf.js → h2o_wave-1.6.0.data/data/www/wave-static/d.js-04aa8683.js +1 -1
- h2o_wave-1.6.0.data/data/www/wave-static/dart-12586384.js +1 -0
- h2o_wave-1.5.5.data/data/www/wave-static/dart.js-0d9dff0b.js → h2o_wave-1.6.0.data/data/www/wave-static/dart.js-c61fbb04.js +1 -1
- h2o_wave-1.6.0.data/data/www/wave-static/elixir-a3c89d2d.js +1 -0
- h2o_wave-1.5.5.data/data/www/wave-static/elixir.js-e25c44a9.js → h2o_wave-1.6.0.data/data/www/wave-static/elixir.js-679b8865.js +1 -1
- h2o_wave-1.5.5.data/data/www/wave-static/erlang-96bbbbf9.js → h2o_wave-1.6.0.data/data/www/wave-static/erlang-92e0ed4f.js +1 -1
- h2o_wave-1.5.5.data/data/www/wave-static/erlang.js-c5dafe1f.js → h2o_wave-1.6.0.data/data/www/wave-static/erlang.js-22ea5237.js +1 -1
- h2o_wave-1.6.0.data/data/www/wave-static/haskell-63691c0e.js +1 -0
- h2o_wave-1.5.5.data/data/www/wave-static/haskell.js-0d288bf5.js → h2o_wave-1.6.0.data/data/www/wave-static/haskell.js-f0611637.js +1 -1
- h2o_wave-1.6.0.data/data/www/wave-static/index-0585b855.js +29 -0
- h2o_wave-1.6.0.data/data/www/wave-static/index-6d5ddf8f.js +121 -0
- h2o_wave-1.6.0.data/data/www/wave-static/index-8eb8cd52.js +53 -0
- h2o_wave-1.5.5.data/data/www/wave-static/index-607adbf4.js → h2o_wave-1.6.0.data/data/www/wave-static/index-c67a7a73.js +1 -1
- h2o_wave-1.6.0.data/data/www/wave-static/index-dba5d017.js +74 -0
- h2o_wave-1.6.0.data/data/www/wave-static/index-fc5121a3.js +1 -0
- h2o_wave-1.6.0.data/data/www/wave-static/java-95ec2edb.js +1 -0
- h2o_wave-1.5.5.data/data/www/wave-static/java.js-74de220a.js → h2o_wave-1.6.0.data/data/www/wave-static/java.js-83f5f276.js +1 -1
- h2o_wave-1.6.0.data/data/www/wave-static/javascript-e0819b20.js +1 -0
- h2o_wave-1.5.5.data/data/www/wave-static/javascript.js-c8c34c95.js → h2o_wave-1.6.0.data/data/www/wave-static/javascript.js-71712620.js +1 -1
- h2o_wave-1.6.0.data/data/www/wave-static/kotlin-2060981f.js +2 -0
- h2o_wave-1.5.5.data/data/www/wave-static/kotlin.js-7ef8b390.js → h2o_wave-1.6.0.data/data/www/wave-static/kotlin.js-a422cee0.js +1 -1
- h2o_wave-1.5.5.data/data/www/wave-static/less-e8ba4a3d.js → h2o_wave-1.6.0.data/data/www/wave-static/less-15af99b5.js +1 -1
- h2o_wave-1.5.5.data/data/www/wave-static/less.js-1767326e.js → h2o_wave-1.6.0.data/data/www/wave-static/less.js-c864d14d.js +1 -1
- h2o_wave-1.6.0.data/data/www/wave-static/php-baf23133.js +2 -0
- h2o_wave-1.5.5.data/data/www/wave-static/php.js-63f7b62c.js → h2o_wave-1.6.0.data/data/www/wave-static/php.js-f9c986ec.js +1 -1
- h2o_wave-1.6.0.data/data/www/wave-static/python-d59bf68c.js +1 -0
- h2o_wave-1.5.5.data/data/www/wave-static/python.js-057f6b41.js → h2o_wave-1.6.0.data/data/www/wave-static/python.js-17816629.js +1 -1
- h2o_wave-1.6.0.data/data/www/wave-static/ruby-e373545c.js +1 -0
- h2o_wave-1.5.5.data/data/www/wave-static/ruby.js-4746d674.js → h2o_wave-1.6.0.data/data/www/wave-static/ruby.js-117b6d69.js +1 -1
- h2o_wave-1.6.0.data/data/www/wave-static/scilab-6742e34e.js +1 -0
- h2o_wave-1.5.5.data/data/www/wave-static/scilab.js-7f71a2b8.js → h2o_wave-1.6.0.data/data/www/wave-static/scilab.js-8c19ac41.js +1 -1
- h2o_wave-1.5.5.data/data/www/wave-static/smali-21dcdb1a.js → h2o_wave-1.6.0.data/data/www/wave-static/smali-b3932e39.js +2 -1
- h2o_wave-1.5.5.data/data/www/wave-static/smali.js-20618455.js → h2o_wave-1.6.0.data/data/www/wave-static/smali.js-6e70e629.js +1 -1
- h2o_wave-1.5.5.data/data/www/wave-static/sql-c9fb4b28.js → h2o_wave-1.6.0.data/data/www/wave-static/sql-6b946051.js +1 -1
- h2o_wave-1.5.5.data/data/www/wave-static/sql.js-e6273c7e.js → h2o_wave-1.6.0.data/data/www/wave-static/sql.js-a38b17e7.js +1 -1
- h2o_wave-1.5.5.data/data/www/wave-static/stata-eb259ab5.js → h2o_wave-1.6.0.data/data/www/wave-static/stata-6862641d.js +3 -1
- h2o_wave-1.5.5.data/data/www/wave-static/stata.js-d55c8c45.js → h2o_wave-1.6.0.data/data/www/wave-static/stata.js-a8c64684.js +1 -1
- h2o_wave-1.6.0.data/data/www/wave-static/subunit-f5d1c72e.js +3 -0
- h2o_wave-1.5.5.data/data/www/wave-static/subunit.js-34d918d2.js → h2o_wave-1.6.0.data/data/www/wave-static/subunit.js-6b90d5d9.js +1 -1
- h2o_wave-1.5.5.data/data/www/wave-static/swift-368cc8e5.js → h2o_wave-1.6.0.data/data/www/wave-static/swift-37aa337f.js +1 -1
- h2o_wave-1.5.5.data/data/www/wave-static/swift.js-7f6aa6c5.js → h2o_wave-1.6.0.data/data/www/wave-static/swift.js-35cc9631.js +1 -1
- h2o_wave-1.5.5.data/data/www/wave-static/twig-f99d1c77.js → h2o_wave-1.6.0.data/data/www/wave-static/twig-f96e75c9.js +1 -1
- h2o_wave-1.5.5.data/data/www/wave-static/twig.js-0dd7fbc5.js → h2o_wave-1.6.0.data/data/www/wave-static/twig.js-cf8e8520.js +1 -1
- h2o_wave-1.6.0.data/data/www/wave-static/typescript-def66f35.js +1 -0
- h2o_wave-1.5.5.data/data/www/wave-static/typescript.js-e5ef291f.js → h2o_wave-1.6.0.data/data/www/wave-static/typescript.js-32ae264b.js +1 -1
- h2o_wave-1.6.0.data/data/www/wave-static/useThemeProps-d5970ea4.js +1 -0
- h2o_wave-1.6.0.data/data/www/wave-static/vega-embed.module-fd422424.js +189 -0
- h2o_wave-1.6.0.data/data/www/wave-static/vega.module-93f4078e.js +13 -0
- h2o_wave-1.5.5.data/data/www/wave-static/xml-f27a8dc3.js → h2o_wave-1.6.0.data/data/www/wave-static/xml-7b0fd495.js +1 -1
- h2o_wave-1.5.5.data/data/www/wave-static/xml.js-4c99a2a1.js → h2o_wave-1.6.0.data/data/www/wave-static/xml.js-200b702e.js +1 -1
- {h2o_wave-1.5.5.dist-info → h2o_wave-1.6.0.dist-info}/METADATA +1 -1
- h2o_wave-1.6.0.dist-info/RECORD +453 -0
- h2o_wave-1.5.5.data/data/www/index.html +0 -39
- h2o_wave-1.5.5.data/data/www/wave-static/1c-legacy-1f340165.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/1c.js-legacy-98368d09.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/LocalizationProvider-4dceadb2.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/LocalizationProvider-legacy-6fe31a5b.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/Paper-1ca89ee7.js +0 -5
- h2o_wave-1.5.5.data/data/www/wave-static/Paper-legacy-56d980b2.js +0 -6
- h2o_wave-1.5.5.data/data/www/wave-static/abnf-legacy-3ba57d97.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/abnf.js-legacy-772000e0.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/accesslog-legacy-9037b412.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/accesslog.js-legacy-4d603280.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/actionscript-legacy-65c2d547.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/actionscript.js-legacy-e26afc60.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/ada-c0236269.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/ada-legacy-760027de.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/ada.js-legacy-1b70d373.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/angelscript-legacy-030a1f63.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/angelscript.js-legacy-3c29e80f.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/apache-legacy-5c598c77.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/apache.js-legacy-26e714da.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/applescript-legacy-d3b114ae.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/applescript.js-legacy-ee917070.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/arcade-legacy-298c0d91.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/arcade.js-legacy-fb5fb17f.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/arduino-legacy-ce33056c.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/arduino.js-legacy-89bc14e9.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/armasm-legacy-6aaaf123.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/armasm.js-legacy-71dd9e63.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/asciidoc-legacy-9ba3cb85.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/asciidoc.js-legacy-4e49ba3d.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/aspectj-legacy-ad6f5aac.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/aspectj.js-legacy-b19328d9.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/autohotkey-legacy-b10158b5.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/autohotkey.js-legacy-bdec76c7.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/autoit-legacy-040507d0.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/autoit.js-legacy-69d1218a.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/avrasm-legacy-6b9df0d6.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/avrasm.js-legacy-b9d99374.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/awk-legacy-8e369975.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/awk.js-legacy-3bc1cf54.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/axapta-legacy-f376f3b3.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/axapta.js-legacy-8e4fd23d.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/bash-91557547.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/bash-legacy-0257aa19.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/bash.js-legacy-c31ebba3.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/basic-legacy-98313fa6.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/basic.js-legacy-95b6bc23.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/bnf-legacy-69774d99.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/bnf.js-legacy-2e4145ce.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/brainfuck-legacy-9be6d42a.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/brainfuck.js-legacy-986452f8.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/c-legacy-f117548e.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/c.js-legacy-3fc211c8.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/cal-legacy-8007c68c.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/cal.js-legacy-adf3caa7.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/capnproto-legacy-fd95903f.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/capnproto.js-legacy-16249eb6.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/ceylon-legacy-33a2b933.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/ceylon.js-legacy-88609133.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/clean-legacy-7d08533d.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/clean.js-legacy-ee527382.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/clojure-legacy-cf74b7ad.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/clojure-repl-legacy-a7dfd6ba.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/clojure-repl.js-legacy-d8c09b04.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/clojure.js-legacy-2b1b0d1a.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/cmake-legacy-058e10cc.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/cmake.js-legacy-a151aaf9.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/coffeescript-legacy-931e3a0e.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/coffeescript.js-legacy-cc0283c3.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/coq-legacy-7070cb24.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/coq.js-legacy-3710e9a4.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/cos-legacy-5d28f9c2.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/cos.js-legacy-629ddc42.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/cpp-legacy-461889cf.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/cpp.js-legacy-c6376d15.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/crmsh-legacy-5afa09d6.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/crmsh.js-legacy-d978e965.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/crystal-legacy-83f70abe.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/crystal.js-legacy-fbe617f5.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/csharp-legacy-538e1ba5.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/csharp.js-legacy-eca63ddd.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/csp-legacy-10c43cd6.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/csp.js-legacy-865165f8.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/css-legacy-06be5a7b.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/css.js-legacy-e18f3b2c.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/d-legacy-57358680.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/d.js-legacy-0265534f.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/dart-06281ff3.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/dart-legacy-f1fe067f.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/dart.js-legacy-99ef1ed5.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/delphi-legacy-40fb6e27.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/delphi.js-legacy-8533c56f.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/diff-legacy-4be4e2b2.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/diff.js-legacy-c55adccd.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/django-legacy-078ddbc0.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/django.js-legacy-61d970ec.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/dns-legacy-826e0616.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/dns.js-legacy-f07fff2d.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/dockerfile-legacy-3b4c85d5.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/dockerfile.js-legacy-8bb4b414.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/dos-legacy-46ebadf0.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/dos.js-legacy-a8aa3c9d.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/dsconfig-legacy-b8536f28.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/dsconfig.js-legacy-1889466e.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/dts-legacy-e9b77179.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/dts.js-legacy-eb002d43.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/dust-legacy-f38ddfe3.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/dust.js-legacy-912e5888.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/ebnf-legacy-12ae95ee.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/ebnf.js-legacy-25af7831.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/elixir-06f5031d.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/elixir-legacy-2b778392.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/elixir.js-legacy-4db9f6b3.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/elm-legacy-8710109e.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/elm.js-legacy-b1d3ab7d.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/erb-legacy-eaa3d968.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/erb.js-legacy-56a4fddf.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/erlang-legacy-b567ab4d.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/erlang-repl-legacy-bf64e9f3.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/erlang-repl.js-legacy-e8ee86eb.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/erlang.js-legacy-4fa5f7fe.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/excel-legacy-9c71e053.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/excel.js-legacy-fd71b895.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/fix-legacy-d2d58587.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/fix.js-legacy-011be80e.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/flix-legacy-69070261.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/flix.js-legacy-f8159a52.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/fortran-legacy-5e118021.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/fortran.js-legacy-1a358a42.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/fsharp-legacy-bd7f6e32.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/fsharp.js-legacy-52311080.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/gams-legacy-5462b492.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/gams.js-legacy-19ef2d30.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/gauss-legacy-c7e1c9b5.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/gauss.js-legacy-ee455f07.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/gcode-legacy-b7acb28b.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/gcode.js-legacy-2e9e86ac.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/gherkin-legacy-b0604c88.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/gherkin.js-legacy-92abc3f1.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/glsl-legacy-424a034d.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/glsl.js-legacy-862aa373.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/gml-legacy-a7effad4.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/gml.js-legacy-3522ddf5.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/go-legacy-596bb66d.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/go.js-legacy-b89ab4e3.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/golo-legacy-f1af3756.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/golo.js-legacy-cbea5e6c.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/gradle-legacy-fd50de9d.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/gradle.js-legacy-12f8da46.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/graphql-legacy-bd4f3e68.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/graphql.js-legacy-dd8ef285.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/groovy-legacy-fa32d1bf.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/groovy.js-legacy-b40cf44b.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/haml-legacy-31e1d1f0.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/haml.js-legacy-407349b5.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/handlebars-legacy-b82c2117.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/handlebars.js-legacy-32154186.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/haskell-684abd54.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/haskell-legacy-1f9ea37e.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/haskell.js-legacy-c083992a.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/haxe-legacy-385cdb6e.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/haxe.js-legacy-22b0ce92.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/hsp-legacy-761cba7c.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/hsp.js-legacy-f560601f.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/http-legacy-c5692273.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/http.js-legacy-46e83a90.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/hy-legacy-fe783a59.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/hy.js-legacy-a5f2ea46.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/index-310adf54.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/index-5d40e5e8.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/index-8d58024e.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/index-d142d151.js +0 -40
- h2o_wave-1.5.5.data/data/www/wave-static/index-d907c76b.js +0 -27
- h2o_wave-1.5.5.data/data/www/wave-static/index-legacy-074c945a.js +0 -27
- h2o_wave-1.5.5.data/data/www/wave-static/index-legacy-39d17cd0.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/index-legacy-7034fa46.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/index-legacy-b525a717.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/index-legacy-b5d3e984.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/index-legacy-d32e8de0.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/index-legacy-e245dc5b.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/inform7-legacy-f30b46a9.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/inform7.js-legacy-5bcf9ac4.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/ini-legacy-bfd2e00a.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/ini.js-legacy-bed1832c.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/irpf90-legacy-cba8050e.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/irpf90.js-legacy-6a2f3647.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/isbl-legacy-80fad5e6.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/isbl.js-legacy-620b16da.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/java-09cf3d63.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/java-legacy-9efe1586.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/java.js-legacy-e3daca00.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/javascript-64c45876.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/javascript-legacy-61645320.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/javascript.js-legacy-fb7dcd00.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/jboss-cli-legacy-c54acb77.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/jboss-cli.js-legacy-8acb35a3.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/json-legacy-949e0abc.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/json.js-legacy-34030651.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/julia-legacy-cb66b1d6.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/julia-repl-legacy-e8f571f8.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/julia-repl.js-legacy-2b038172.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/julia.js-legacy-528e9758.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/kotlin-ecc2b053.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/kotlin-legacy-b7d88556.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/kotlin.js-legacy-585f113e.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/lasso-legacy-23b2cac7.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/lasso.js-legacy-35e2ce52.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/latex-legacy-ea0bca01.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/latex.js-legacy-4c4eb187.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/ldif-legacy-740583f6.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/ldif.js-legacy-9d607a65.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/leaf-legacy-6ebff67e.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/leaf.js-legacy-af34a95d.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/less-legacy-3b0f9247.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/less.js-legacy-4181774f.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/lisp-legacy-9d646e30.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/lisp.js-legacy-4aea7ef1.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/livecodeserver-legacy-baca528c.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/livecodeserver.js-legacy-28dc36a8.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/livescript-legacy-3b86813d.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/livescript.js-legacy-b6170434.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/llvm-legacy-c03466b7.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/llvm.js-legacy-4e7ca67f.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/lsl-legacy-c50ab34e.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/lsl.js-legacy-09ecfc97.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/lua-legacy-f378dadf.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/lua.js-legacy-1d4fb04f.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/makefile-legacy-e89bc6a8.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/makefile.js-legacy-13039a48.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/markdown-legacy-37726c23.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/markdown.js-legacy-c7bd0271.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/markdownCodeSyntaxHighlighting-legacy-5eb502c8.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/mathematica-legacy-82f07096.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/mathematica.js-legacy-b06a64a8.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/matlab-legacy-00a713c5.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/matlab.js-legacy-a72af2d2.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/maxima-legacy-13f3e9a4.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/maxima.js-legacy-9fef8b73.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/mel-legacy-195785c7.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/mel.js-legacy-1933afd0.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/mercury-legacy-3675b888.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/mercury.js-legacy-dac0af55.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/mipsasm-legacy-0545684f.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/mipsasm.js-legacy-a4a0f717.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/mizar-legacy-6ec03e5a.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/mizar.js-legacy-2c621b1b.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/mojolicious-legacy-c44a8d5c.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/mojolicious.js-legacy-bb29890b.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/monkey-legacy-85108211.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/monkey.js-legacy-d652be10.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/moonscript-legacy-163fba1c.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/moonscript.js-legacy-8974fdaa.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/n1ql-legacy-4d976c83.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/n1ql.js-legacy-a9200fbe.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/nestedtext-legacy-a50f533d.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/nestedtext.js-legacy-ea2d840f.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/nginx-legacy-7b147fb4.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/nginx.js-legacy-7affba9c.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/nim-legacy-810f7f20.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/nim.js-legacy-c483e07d.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/nix-legacy-0ac67831.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/nix.js-legacy-20a97128.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/node-repl-legacy-3cc0a4ed.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/node-repl.js-legacy-71217a03.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/nsis-legacy-0996463b.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/nsis.js-legacy-b3d407d9.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/objectivec-legacy-b8c0f3f6.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/objectivec.js-legacy-cf10ec30.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/ocaml-legacy-de8a6e50.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/ocaml.js-legacy-3557e455.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/openscad-legacy-2f475eb4.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/openscad.js-legacy-f21eadc1.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/oxygene-legacy-ed2449bf.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/oxygene.js-legacy-9e0c41e8.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/parser3-legacy-35dc0290.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/parser3.js-legacy-28f35bcd.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/perl-legacy-df61e3fe.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/perl.js-legacy-b46e6579.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/pf-legacy-fb960280.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/pf.js-legacy-5ad82425.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/pgsql-legacy-f8081b81.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/pgsql.js-legacy-2857274b.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/php-99ab1efa.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/php-legacy-a0de235a.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/php-template-legacy-b106744b.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/php-template.js-legacy-6b69c542.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/php.js-legacy-bab4b322.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/plaintext-legacy-26afd1de.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/plaintext.js-legacy-ca5ac114.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/polyfills-legacy-41d83f3d.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/pony-legacy-e791b68d.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/pony.js-legacy-86642fef.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/powershell-legacy-2845386f.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/powershell.js-legacy-2f1b4c33.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/processing-legacy-634d78a6.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/processing.js-legacy-ad96f7d3.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/profile-legacy-f197c854.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/profile.js-legacy-963cee70.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/prolog-legacy-57bb9d2e.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/prolog.js-legacy-2d42efd9.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/properties-legacy-bd152a41.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/properties.js-legacy-82597745.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/protobuf-legacy-7cea966d.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/protobuf.js-legacy-9ba71dfc.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/puppet-legacy-8d3fd18d.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/puppet.js-legacy-207e72ad.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/purebasic-legacy-7df934eb.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/purebasic.js-legacy-b9c1a0b7.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/python-ed0affe4.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/python-legacy-a5e15ff7.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/python-repl-legacy-ebfe8102.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/python-repl.js-legacy-3d643d30.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/python.js-legacy-ca8aa2f6.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/q-legacy-a70f3c5e.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/q.js-legacy-acd6d9ff.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/qml-legacy-3d8d2a20.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/qml.js-legacy-294ccad7.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/r-legacy-038ccc64.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/r.js-legacy-592f4f3e.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/reasonml-legacy-49e0c6d7.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/reasonml.js-legacy-774323d4.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/rib-legacy-4d9f4e24.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/rib.js-legacy-cc2a55d3.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/roboconf-legacy-4d335fe3.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/roboconf.js-legacy-cbc539b3.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/routeros-legacy-1b7f3b07.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/routeros.js-legacy-f3ebc0ee.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/rsl-legacy-d2a3816f.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/rsl.js-legacy-4ac3a752.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/ruby-f28e1672.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/ruby-legacy-87033cc6.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/ruby.js-legacy-c377b0a2.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/ruleslanguage-legacy-563acc79.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/ruleslanguage.js-legacy-7788c137.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/rust-legacy-cfa79907.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/rust.js-legacy-8551e6c6.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/sas-legacy-b7f61485.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/sas.js-legacy-3ecb030f.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/scala-legacy-bc4d7d83.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/scala.js-legacy-f0766754.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/scheme-legacy-ae9eb833.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/scheme.js-legacy-bb5f91cf.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/scilab-515e5499.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/scilab-legacy-bf4e0e20.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/scilab.js-legacy-c8e86aa4.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/scss-legacy-06a0caa8.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/scss.js-legacy-0d92485a.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/shell-legacy-27061ecc.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/shell.js-legacy-ba1e4f51.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/smali-legacy-82101398.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/smali.js-legacy-48ee6fea.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/smalltalk-legacy-0b09a010.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/smalltalk.js-legacy-191fce3b.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/sml-legacy-a93386df.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/sml.js-legacy-81ada55d.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/sqf-legacy-65fc5dbe.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/sqf.js-legacy-832cbd50.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/sql-legacy-40280984.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/sql.js-legacy-ddeb0313.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/stan-legacy-d393acc4.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/stan.js-legacy-22c64211.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/stata-legacy-3a11277c.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/stata.js-legacy-3609a6e2.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/step21-legacy-c015564c.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/step21.js-legacy-a366849b.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/stylus-legacy-484c6475.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/stylus.js-legacy-a9a443c8.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/subunit-d0913233.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/subunit-legacy-04174477.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/subunit.js-legacy-b0febb39.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/swift-legacy-9a2f6ea6.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/swift.js-legacy-be8b1add.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/taggerscript-legacy-7a8c4f55.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/taggerscript.js-legacy-1564e5fc.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/tap-legacy-740e2754.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/tap.js-legacy-e2533b5e.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/tcl-legacy-d44bff04.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/tcl.js-legacy-3a775553.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/thrift-legacy-a894b9c5.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/thrift.js-legacy-04379052.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/timer-legacy-42b42209.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/tp-legacy-7b1c6428.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/tp.js-legacy-ce6ac4d7.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/twig-legacy-b26311d2.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/twig.js-legacy-c4c7f67e.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/typescript-2bf0a83d.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/typescript-legacy-f2bd4ca8.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/typescript.js-legacy-50a3116c.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/useThemeProps-d88399c8.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/useThemeProps-legacy-49c49885.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/vala-legacy-67c71a44.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/vala.js-legacy-9027c5a2.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/vbnet-legacy-5c739611.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/vbnet.js-legacy-2757b7a5.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/vbscript-html-legacy-ac338707.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/vbscript-html.js-legacy-e00f0680.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/vbscript-legacy-87e05029.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/vbscript.js-legacy-99f3021b.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/vega-embed.module-a95e8444.js +0 -9
- h2o_wave-1.5.5.data/data/www/wave-static/vega-embed.module-legacy-3f604751.js +0 -12
- h2o_wave-1.5.5.data/data/www/wave-static/vega.module-08ee6a8e.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/vega.module-legacy-49dfb982.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/verilog-legacy-2ffb1cf4.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/verilog.js-legacy-f7f3d414.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/vhdl-legacy-56ad3d59.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/vhdl.js-legacy-ebe12a2b.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/vim-legacy-a5d4f7e8.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/vim.js-legacy-68b8fde0.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/wasm-legacy-a322e0a9.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/wasm.js-legacy-4ee0fe5c.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/wren-legacy-c8da3971.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/wren.js-legacy-111d56cd.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/x86asm-legacy-83e00fa4.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/x86asm.js-legacy-ac9e945d.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/xl-legacy-42877465.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/xl.js-legacy-2f688509.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/xml-legacy-eea72490.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/xml.js-legacy-15f629e4.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/xquery-legacy-554d6921.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/xquery.js-legacy-1136eb37.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/yaml-legacy-5fac3622.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/yaml.js-legacy-fd5075f2.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/zephir-legacy-56a6ea33.js +0 -1
- h2o_wave-1.5.5.data/data/www/wave-static/zephir.js-legacy-cf8f00c6.js +0 -1
- h2o_wave-1.5.5.dist-info/RECORD +0 -852
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/project_templates/README.md +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/project_templates/chat.py +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/project_templates/header.py +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/project_templates/header_nav.py +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/project_templates/header_sidebar_nav.py +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/project_templates/hello_world.py +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/project_templates/sidebar_nav.py +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/favicon.ico +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/logo192.png +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/logo512.png +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/manifest.json +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/robots.txt +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/1c-3f7bb63f.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/1c.js-880a5fb5.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/Inter-Black-8b21d5be.woff +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/Inter-Black-fc10113c.woff2 +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/Inter-Bold-3e242080.woff +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/Inter-Bold-c63158ba.woff2 +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/Inter-ExtraBold-307d9809.woff2 +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/Inter-ExtraBold-f053602c.woff +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/Inter-ExtraLight-015dad27.woff +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/Inter-ExtraLight-b6cd094a.woff2 +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/Inter-Light-36b86832.woff2 +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/Inter-Light-4871aed0.woff +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/Inter-Medium-1b498b95.woff2 +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/Inter-Medium-53deda46.woff +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/Inter-Regular-d612f121.woff2 +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/Inter-Regular-ef1f23c0.woff +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/Inter-SemiBold-15226129.woff2 +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/Inter-SemiBold-653fed7a.woff +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/Inter-Thin-77d96c1c.woff2 +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/Inter-Thin-e6bced8e.woff +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/abnf-13e3d3e9.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/abnf.js-4710a9b6.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/accesslog-0333fe45.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/accesslog.js-c69c4014.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/actionscript-970abe00.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/actionscript.js-a23662e0.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/angelscript-c4bcdcf1.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/angelscript.js-b9004b30.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/apache-69229b81.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/apache.js-53f92aaa.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/applescript-18053a85.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/applescript.js-167660b4.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/arcade-6075ac5c.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/arcade.js-d02d2998.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/arduino-d57cf405.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/arduino.js-37a85c8f.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/armasm-1f1daec6.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/armasm.js-7de2e829.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/asciidoc-c2ce0198.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/asciidoc.js-955e0d47.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/aspectj-65addc65.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/aspectj.js-de303d21.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/autohotkey-083cf3c0.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/autohotkey.js-902453c5.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/autoit-01458b60.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/autoit.js-e3487153.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/avrasm-9c20c591.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/avrasm.js-9296929c.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/awk-3a9cdcff.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/awk.js-d895eb86.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/axapta-1e6dd9a4.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/axapta.js-7a94aded.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/basic-ae19ba84.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/basic.js-5285fc1c.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/bnf-6d48c389.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/bnf.js-49945ebf.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/brainfuck-450234e6.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/brainfuck.js-3ce3a6cd.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/c-f46565f0.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/c.js-e57dbb84.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/cal-68febb00.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/cal.js-0c9d24c1.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/capnproto-42c0b6ff.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/capnproto.js-f123775c.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/ceylon-7044c346.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/ceylon.js-feb867e3.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/clean-21378384.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/clean.js-56633a25.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/clojure-202ef751.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/clojure-repl-d5a2be34.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/clojure-repl.js-0679d9f5.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/clojure.js-242a2f04.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/cmake-b4ce297d.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/cmake.js-7cccedf6.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/coffeescript-9a445365.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/coffeescript.js-db28b498.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/coq-67e06e00.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/coq.js-bc1dedb0.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/cos-52897118.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/cos.js-9f2c4957.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/cpp-aa04b0db.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/cpp.js-e637b2f4.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/crmsh-f2834950.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/crmsh.js-f8602207.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/crystal-164453c2.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/crystal.js-74828bd0.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/csharp-dda82316.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/csharp.js-56c58434.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/csp-b9668226.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/csp.js-eb7d3a88.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/css-5d2c9b40.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/css.js-62b267ee.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/delphi-20c87528.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/delphi.js-e5cd150c.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/diff-e6456a67.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/diff.js-5568e9f4.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/django-49d52be8.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/django.js-e38658c2.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/dns-5a205646.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/dns.js-63bf7d1f.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/dockerfile-33bf66d7.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/dockerfile.js-cccb49a0.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/dos-6d5191f9.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/dos.js-15b97873.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/dsconfig-e810963a.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/dsconfig.js-7c0a57b6.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/dts-8c60a07f.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/dts.js-80c29b59.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/dust-82a2434b.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/dust.js-c265de6d.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/ebnf-c82500bd.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/ebnf.js-7696d4d1.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/elm-b0baa83b.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/elm.js-065d04eb.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/erb-5b2c18cb.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/erb.js-5bf017f1.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/erlang-repl-4327c962.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/erlang-repl.js-1e32a7a4.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/excel-b748334a.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/excel.js-eacd8da9.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/fix-2076861f.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/fix.js-ea8e2c05.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/flix-d6821016.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/flix.js-039dc4da.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/fortran-93288908.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/fortran.js-e77c10a9.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/fsharp-004140a7.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/fsharp.js-5eebd197.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/gams-2364286e.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/gams.js-74a57ad8.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/gauss-526e2980.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/gauss.js-8fef6743.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/gcode-fcf823ff.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/gcode.js-cbfb4164.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/gherkin-7933969a.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/gherkin.js-794fab5c.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/glsl-1880d3bf.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/glsl.js-a2ed8800.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/gml-375bdc8f.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/gml.js-cda64410.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/go-6477af85.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/go.js-bc860eea.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/golo-a8b30a3b.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/golo.js-2e22bcec.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/gradle-d007f0f8.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/gradle.js-c114b7cd.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/graphql-0429227f.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/graphql.js-efb48106.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/groovy-83606e93.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/groovy.js-f30f8566.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/haml-81c61df4.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/haml.js-3c12d6c6.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/handlebars-dffd1fe9.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/handlebars.js-b804f107.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/haxe-f014280d.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/haxe.js-efbaab17.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/hsp-052b1a9a.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/hsp.js-1904ee6c.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/http-7fc81321.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/http.js-3552549b.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/hy-3c07056d.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/hy.js-2a8401d6.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/index-17424b44.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/index-be05b8a6.css +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/inform7-45a494ad.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/inform7.js-1bb293dc.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/ini-565c1ab6.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/ini.js-4c40a00d.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/irpf90-eea6e6cc.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/irpf90.js-dcf62e5f.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/isbl-7e0cec9a.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/isbl.js-b30a56d1.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/jboss-cli-a89c5614.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/jboss-cli.js-fc4be0ce.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/json-c6c94b43.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/json.js-32d1540a.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/julia-8a3768e7.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/julia-repl-1542a535.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/julia-repl.js-07ea0c88.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/julia.js-7321b26f.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/lasso-f278ccbb.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/lasso.js-a81c4a10.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/latex-480bc614.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/latex.js-7781fa8e.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/ldif-39e7018a.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/ldif.js-ff0be511.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/leaf-1983c9fd.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/leaf.js-6051fa44.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/lisp-47e106f3.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/lisp.js-5729457c.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/livecodeserver-a9710535.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/livecodeserver.js-621c3b9a.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/livescript-5888934c.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/livescript.js-911f9c89.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/llvm-a51ea25c.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/llvm.js-aec4e151.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/lsl-babb313c.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/lsl.js-372a9d2e.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/lua-33e3bed2.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/lua.js-a549c4fb.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/makefile-036c85bd.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/makefile.js-d981f866.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/markdown-83c491be.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/markdown.js-7e400889.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/markdownCodeSyntaxHighlighting-3b867111.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/mathematica-212cedeb.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/mathematica.js-a9cc13e1.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/matlab-91514d42.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/matlab.js-272d0a4b.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/maxima-ec780f01.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/maxima.js-8f83fc9b.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/mel-443f3074.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/mel.js-35aaad36.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/mercury-6fa710c7.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/mercury.js-e4a4d463.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/mipsasm-1d35360e.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/mipsasm.js-2b25ec79.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/mizar-bf5d69f1.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/mizar.js-a056f354.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/mojolicious-c56b1162.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/mojolicious.js-265d3ad9.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/monkey-bf0d5fb4.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/monkey.js-0189f1d4.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/moonscript-b6fa3ab7.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/moonscript.js-6d6e7d92.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/n1ql-c980c0d8.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/n1ql.js-a6e1cdbd.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/nestedtext-a75f487f.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/nestedtext.js-58eeb2fd.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/nginx-500d7783.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/nginx.js-6e1ff365.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/nim-8c52ae95.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/nim.js-8c2ba4ce.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/nix-8e17d7df.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/nix.js-1c9e5f0f.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/node-repl-c351033a.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/node-repl.js-0c21023a.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/nsis-9566a130.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/nsis.js-5bef79d6.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/objectivec-70d1e37c.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/objectivec.js-ea458201.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/ocaml-05a8032e.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/ocaml.js-34933407.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/openscad-724bb5e2.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/openscad.js-bc588586.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/oxygene-d0768591.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/oxygene.js-bddfaf72.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/parser3-3b7df84a.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/parser3.js-03917f62.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/perl-274a0c8e.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/perl.js-798899d1.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/pf-647ee253.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/pf.js-c7f35663.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/pgsql-67be9c80.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/pgsql.js-1e15a30d.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/php-template-059af3df.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/php-template.js-25c82e05.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/plaintext-7945c0c0.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/plaintext.js-89fd8faa.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/pony-37a85088.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/pony.js-af4b8cc4.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/powershell-99ec96b1.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/powershell.js-3aa375d4.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/processing-6b513c0b.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/processing.js-8f9c7b7e.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/profile-a11e18ed.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/profile.js-c43affa1.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/prolog-35f6eaf0.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/prolog.js-ea1f9010.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/properties-c15cbd34.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/properties.js-aab8f4b2.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/protobuf-96c705d8.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/protobuf.js-256fb21d.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/puppet-eaa21a84.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/puppet.js-526f0f6c.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/purebasic-b2255610.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/purebasic.js-88a0aeb0.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/python-repl-a098ea60.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/python-repl.js-da97070f.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/q-edbaf565.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/q.js-64716461.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/qml-e4a66052.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/qml.js-256c40c8.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/r-a77be0e5.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/r.js-df8e6a0d.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/reasonml-98659b0a.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/reasonml.js-d61d5332.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/rib-e50e8c11.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/rib.js-771507ef.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/roboconf-b646a8cd.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/roboconf.js-e47e2f37.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/routeros-daea5f39.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/routeros.js-7028f69c.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/rsl-02a6a6f6.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/rsl.js-3b3c4666.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/ruleslanguage-932a539f.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/ruleslanguage.js-52f1d5da.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/rust-e4f5d8be.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/rust.js-6937e5f3.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/sas-d4be0f22.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/sas.js-e9f7f74a.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/scala-ed6253c7.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/scala.js-0622a5e6.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/scheme-090728b4.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/scheme.js-df719b01.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/scss-17621482.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/scss.js-effc59ae.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/shell-c79fdff2.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/shell.js-31f5a65f.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/smalltalk-a5aaf1af.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/smalltalk.js-16b69abf.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/sml-3d2ff45b.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/sml.js-dca0f19d.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/sqf-895a1a12.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/sqf.js-7d395293.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/stan-44ba0bd8.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/stan.js-5923d3a1.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/step21-d469eb04.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/step21.js-91507b84.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/stylus-7fe3d2aa.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/stylus.js-5c46b7d2.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/taggerscript-9644bd70.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/taggerscript.js-3b33b52a.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/tap-9aff5b1c.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/tap.js-6c086fe2.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/tcl-e06ad942.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/tcl.js-8b627a42.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/thrift-172e9c7e.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/thrift.js-d6341b21.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/timer-4c6100d9.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/tp-57841279.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/tp.js-cedf36a8.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/vala-1a982c40.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/vala.js-db590567.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/vbnet-58370a58.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/vbnet.js-cdd968f7.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/vbscript-cf59c0ae.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/vbscript-html-6fb1969c.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/vbscript-html.js-ee15979a.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/vbscript.js-14980cef.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/verilog-708e7faf.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/verilog.js-c895778f.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/vhdl-6fc4a449.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/vhdl.js-04291f57.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/vim-3059209f.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/vim.js-a486e2f4.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/wasm-d475c0e5.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/wasm.js-e4c1cfdb.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/wren-f93687dd.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/wren.js-2485cae5.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/x86asm-774652e0.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/x86asm.js-b939195a.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/xl-c097ac75.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/xl.js-7efd80af.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/xquery-322b0611.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/xquery.js-83bd2c62.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/yaml-6a874c12.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/yaml.js-3a05ad15.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/zephir-cf2a8bcb.js +0 -0
- {h2o_wave-1.5.5.data → h2o_wave-1.6.0.data}/data/www/wave-static/zephir.js-fa8df6f1.js +0 -0
- {h2o_wave-1.5.5.dist-info → h2o_wave-1.6.0.dist-info}/WHEEL +0 -0
- {h2o_wave-1.5.5.dist-info → h2o_wave-1.6.0.dist-info}/entry_points.txt +0 -0
- {h2o_wave-1.5.5.dist-info → h2o_wave-1.6.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
!function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}System.register(["./index-legacy-074c945a.js","./timer-legacy-42b42209.js"],(function(e,i){"use strict";var n,r,o,a,s,l,h,u;return{setters:[function(t){n=t.aC,r=t.aD,o=t.w,a=t.x,s=t.aE,l=t.aF,h=t.aG},function(t){u=t.t}],execute:function(){e({getActionClass:function(t){var e=_h[t];return Ht(e,"ActionClass")},getAnimation:yc,getEngine:ve,getGeometryLabel:kc,getGeometryLabelLayout:Pc,getInteraction:Au,getShapeFactory:_c,getTheme:zu,registerAction:Yh,registerAnimation:vc,registerComponentController:tc,registerEngine:me,registerGeometry:uc,registerGeometryLabel:Lc,registerGeometryLabelLayout:Ic,registerInteraction:Tu,registerShape:Rc,registerShapeFactory:Dc,registerTheme:Vu});var i=Object.freeze(Object.defineProperty({__proto__:null,get Base(){return ff},get Circle(){return gf},get Ellipse(){return yf},get Image(){return mf},get Line(){return wf},get Marker(){return bf},get Path(){return If},get Polygon(){return Ff},get Polyline(){return Of},get Rect(){return Df},get Text(){return Rf}},Symbol.toStringTag,{value:"Module"})),c=Object.freeze(Object.defineProperty({__proto__:null,get Base(){return $f},get Circle(){return Jf},get Dom(){return tg},get Ellipse(){return eg},get Image(){return ig},get Line(){return ng},get Marker(){return ag},get Path(){return sg},get Polygon(){return lg},get Polyline(){return hg},get Rect(){return ug},get Text(){return gg}},Symbol.toStringTag,{value:"Module"}));function p(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function f(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var g=function t(e){function i(t){return Math.pow(t,e)}return e=+e,i.exponent=t,i}(3),d=function t(e){function i(t){return 1-Math.pow(1-t,e)}return e=+e,i.exponent=t,i}(3),y=function t(e){function i(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,i.exponent=t,i}(3),v=Math.PI,m=v/2;function x(t){return(1-Math.cos(v*t))/2}function w(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function C(t){return((t*=2)<=1?w(1-t):2-w(t-1))/2}function b(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var M=4/11,S=7.5625;function A(t){return(t=+t)<M?S*t*t:t<.7272727272727273?S*(t-=.5454545454545454)*t+.75:t<.9090909090909091?S*(t-=.8181818181818182)*t+.9375:S*(t-=.9545454545454546)*t+.984375}var T=1.70158,B=function t(e){function i(t){return(t=+t)*t*(e*(t-1)+t)}return e=+e,i.overshoot=t,i}(T),k=function t(e){function i(t){return--t*t*((t+1)*e+t)+1}return e=+e,i.overshoot=t,i}(T),L=function t(e){function i(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,i.overshoot=t,i}(T),P=2*Math.PI,I=function t(e,i){var n=Math.asin(1/(e=Math.max(1,e)))*(i/=P);function r(t){return e*w(- --t)*Math.sin((n-t)/i)}return r.amplitude=function(e){return t(e,i*P)},r.period=function(i){return t(e,i)},r}(1,.3),E=function t(e,i){var n=Math.asin(1/(e=Math.max(1,e)))*(i/=P);function r(t){return 1-e*w(t=+t)*Math.sin((t+n)/i)}return r.amplitude=function(e){return t(e,i*P)},r.period=function(i){return t(e,i)},r}(1,.3),F=function t(e,i){var n=Math.asin(1/(e=Math.max(1,e)))*(i/=P);function r(t){return((t=2*t-1)<0?e*w(-t)*Math.sin((n-t)/i):2-e*w(t)*Math.sin((n+t)/i))/2}return r.amplitude=function(e){return t(e,i*P)},r.period=function(i){return t(e,i)},r}(1,.3),O=Object.freeze(Object.defineProperty({__proto__:null,easeBack:L,easeBackIn:B,easeBackInOut:L,easeBackOut:k,easeBounce:A,easeBounceIn:function(t){return 1-A(1-t)},easeBounceInOut:function(t){return((t*=2)<=1?1-A(1-t):A(t-1)+1)/2},easeBounceOut:A,easeCircle:b,easeCircleIn:function(t){return 1-Math.sqrt(1-t*t)},easeCircleInOut:b,easeCircleOut:function(t){return Math.sqrt(1- --t*t)},easeCubic:f,easeCubicIn:function(t){return t*t*t},easeCubicInOut:f,easeCubicOut:function(t){return--t*t*t+1},easeElastic:E,easeElasticIn:I,easeElasticInOut:F,easeElasticOut:E,easeExp:C,easeExpIn:function(t){return w(1-+t)},easeExpInOut:C,easeExpOut:function(t){return 1-w(t)},easeLinear:function(t){return+t},easePoly:y,easePolyIn:g,easePolyInOut:y,easePolyOut:d,easeQuad:p,easeQuadIn:function(t){return t*t},easeQuadInOut:p,easeQuadOut:function(t){return t*(2-t)},easeSin:x,easeSinIn:function(t){return 1==+t?1:1-Math.cos(t*m)},easeSinInOut:x,easeSinOut:function(t){return Math.sin(t*m)}},Symbol.toStringTag,{value:"Module"})),D=function(t){return null!==t&&"function"!=typeof t&&isFinite(t.length)},R=function(t,e){return!!D(t)&&t.indexOf(e)>-1},_=function(t,e){if(!D(t))return t;for(var i=[],n=0;n<t.length;n++){var r=t[n];e(r,n)&&i.push(r)}return i},Y={}.toString,G=function(t,e){return Y.call(t)==="[object "+e+"]"},X=function(t){return G(t,"Function")},z=function(t){return null==t},V=function(t){return Array.isArray?Array.isArray(t):G(t,"Array")},H=function(e){var i=t(e);return null!==e&&"object"===i||"function"===i};function N(t,e){if(t)if(V(t))for(var i=0,n=t.length;i<n&&!1!==e(t[i],i);i++);else if(H(t))for(var r in t)if(t.hasOwnProperty(r)&&!1===e(t[r],r))break}var W=Object.keys?function(t){return Object.keys(t)}:function(t){var e=[];return N(t,(function(i,n){X(t)&&"prototype"===n||e.push(n)})),e};var j=function(e){return"object"===t(e)&&null!==e},q=function(t){if(!j(t)||!G(t,"Object"))return!1;if(null===Object.getPrototypeOf(t))return!0;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e};function U(t,e){if(!V(t))return null;var i;if(X(e)&&(i=e),q(e)&&(i=function(t){return function(t,e){var i=W(e),n=i.length;if(z(t))return!n;for(var r=0;r<n;r+=1){var o=i[r];if(e[o]!==t[o]||!(o in t))return!1}return!0}(t,e)}),i)for(var n=0;n<t.length;n+=1)if(i(t[n]))return t[n];return null}var Z=function(t){if(!V(t))return[];for(var e=[],i=0;i<t.length;i++)e=e.concat(t[i]);return e},Q=function(t){if(V(t))return t.reduce((function(t,e){return Math.max(t,e)}),t[0])},K=function(t){if(V(t))return t.reduce((function(t,e){return Math.min(t,e)}),t[0])},$=Array.prototype.splice,J=function(t,e,i){if(!V(t)&&!q(t))return t;var n=i;return N(t,(function(t,i){n=e(n,t,i)})),n},tt=function(t,e){var i=[];if(!D(t))return i;for(var n=-1,r=[],o=t.length;++n<o;){var a=t[n];e(a,n,t)&&(i.push(a),r.push(n))}return function(t,e){if(!D(t))return[];for(var i=t?e.length:0,n=i-1;i--;){var r=void 0,o=e[i];i!==n&&o===r||(r=o,$.call(t,o,1))}}(t,r),i},et=function(t){return G(t,"String")};function it(t,e){void 0===e&&(e=new Map);var i=[];if(Array.isArray(t))for(var n=0,r=t.length;n<r;n++){var o=t[n];e.has(o)||(i.push(o),e.set(o,!0))}return i}var nt=function(t,e){for(var i=[],n={},r=0;r<t.length;r++){var o=t[r][e];if(!z(o)){V(o)||(o=[o]);for(var a=0;a<o.length;a++){var s=o[a];n[s]||(i.push(s),n[s]=!0)}}}return i};function rt(t){if(D(t))return t[0]}function ot(t){if(D(t)){return t[t.length-1]}}var at=function(t,e){for(var i=0;i<t.length;i++)if(e(t[i],i))return!0;return!1},st=Object.prototype.hasOwnProperty;function lt(t,e){if(!e||!V(t))return{};for(var i,n={},r=X(e)?e:function(t){return t[e]},o=0;o<t.length;o++){var a=t[o];i=r(a),st.call(n,i)?n[i].push(a):n[i]=[a]}return n}function ht(t,e){if(!e)return{0:t};if(!X(e)){var i=V(e)?e:e.replace(/\s+/g,"").split("*");e=function(t){for(var e="_",n=0,r=i.length;n<r;n++)e+=t[i[n]]&&t[i[n]].toString();return e}}return lt(t,e)}var ut=function(t,e,i){return t<e?e:t>i?i:t},ct=function(t,e){var i=e.toString(),n=i.indexOf(".");if(-1===n)return Math.round(t);var r=i.substr(n+1).length;return r>20&&(r=20),parseFloat(t.toFixed(r))},pt=function(t){return G(t,"Number")};function ft(t,e,i){return void 0===i&&(i=1e-5),Math.abs(t-e)<i}var gt=function(t,e){return(t%e+e)%e},dt=Math.PI/180,yt=function(t){return dt*t},vt=function(t,e){return t.hasOwnProperty(e)},mt=Object.values?function(t){return Object.values(t)}:function(t){var e=[];return N(t,(function(i,n){X(t)&&"prototype"===n||e.push(i)})),e},xt=function(t){return z(t)?"":t.toString()},wt=function(t){return xt(t).toLowerCase()};function Ct(t,e){return t&&e?t.replace(/\\?\{([^{}]+)\}/g,(function(t,i){return"\\"===t.charAt(0)?t.slice(1):void 0===e[i]?"":e[i]})):t}var bt=function(t){var e=xt(t);return e.charAt(0).toUpperCase()+e.substring(1)},Mt={}.toString,St=function(t){return G(t,"Boolean")},At=function(t){return G(t,"Date")},Tt=Object.prototype,Bt=function(t){return void 0===t},kt=function(t){return t instanceof Element||t instanceof HTMLDocument};function Lt(t,e){for(var i in e)e.hasOwnProperty(i)&&"constructor"!==i&&void 0!==e[i]&&(t[i]=e[i])}function Pt(t,e,i,n){return e&&Lt(t,e),i&&Lt(t,i),n&&Lt(t,n),t}var It=function e(i){if("object"!==t(i)||null===i)return i;var n;if(V(i)){n=[];for(var r=0,o=i.length;r<o;r++)"object"===t(i[r])&&null!=i[r]?n[r]=e(i[r]):n[r]=i[r]}else for(var a in n={},i)"object"===t(i[a])&&null!=i[a]?n[a]=e(i[a]):n[a]=i[a];return n};function Et(t,e,i){var n;return function(){var r=this,o=arguments,a=function(){n=null,i||t.apply(r,o)},s=i&&!n;clearTimeout(n),n=setTimeout(a,e),s&&t.apply(r,o)}}var Ft=function(t,e){if(!X(t))throw new TypeError("Expected a function");var i=function i(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=e?e.apply(this,n):n[0],a=i.cache;if(a.has(o))return a.get(o);var s=t.apply(this,n);return a.set(o,s),s};return i.cache=new Map,i};function Ot(t,e,i,n){for(var r in i=i||0,n=n||5,e)if(e.hasOwnProperty(r)){var o=e[r];null!==o&&q(o)?(q(t[r])||(t[r]={}),i<n?Ot(t[r],o,i+1,n):t[r]=e[r]):V(o)?(t[r]=[],t[r]=t[r].concat(o)):void 0!==o&&(t[r]=o)}}var Dt=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];for(var n=0;n<e.length;n+=1)Ot(t,e[n]);return t},Rt=function(t,e){if(!D(t))return-1;var i=Array.prototype.indexOf;if(i)return i.call(t,e);for(var n=-1,r=0;r<t.length;r++)if(t[r]===e){n=r;break}return n},_t=Object.prototype.hasOwnProperty;function Yt(t){if(z(t))return!0;if(D(t))return!t.length;var e=function(t){return Mt.call(t).replace(/^\[object /,"").replace(/]$/,"")}(t);if("Map"===e||"Set"===e)return!t.size;if(function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Tt)}(t))return!Object.keys(t).length;for(var i in t)if(_t.call(t,i))return!1;return!0}var Gt,Xt=function t(e,i){if(e===i)return!0;if(!e||!i)return!1;if(et(e)||et(i))return!1;if(D(e)||D(i)){if(e.length!==i.length)return!1;for(var n=!0,r=0;r<e.length&&(n=t(e[r],i[r]));r++);return n}if(j(e)||j(i)){var o=Object.keys(e),a=Object.keys(i);if(o.length!==a.length)return!1;for(n=!0,r=0;r<o.length&&(n=t(e[o[r]],i[o[r]]));r++);return n}return!1},zt=function(t,e){if(!D(t))return t;for(var i=[],n=0;n<t.length;n++){var r=t[n];i.push(e(r,n))}return i},Vt=function(t){return t},Ht=function(t,e,i){for(var n=0,r=et(e)?e.split("."):e;t&&n<r.length;)t=t[r[n++]];return void 0===t||n<r.length?i:t},Nt=function(t,e,i){var n=t,r=et(e)?e.split("."):e;return r.forEach((function(t,e){e<r.length-1?(H(n[t])||(n[t]=pt(r[e+1])?[]:{}),n=n[t]):n[t]=i})),t},Wt=Object.prototype.hasOwnProperty,jt=function(t,e){if(null===t||!q(t))return{};var i={};return N(e,(function(e){Wt.call(t,e)&&(i[e]=t[e])})),i},qt=function(t,e,i){var n,r,o,a,s=0;i||(i={});var l=function(){s=!1===i.leading?0:Date.now(),n=null,a=t.apply(r,o),n||(r=o=null)},h=function(){var h=Date.now();s||!1!==i.leading||(s=h);var u=e-(h-s);return r=this,o=arguments,u<=0||u>e?(n&&(clearTimeout(n),n=null),s=h,a=t.apply(r,o),n||(r=o=null)):n||!1===i.trailing||(n=setTimeout(l,u)),a};return h.cancel=function(){clearTimeout(n),s=0,n=r=o=null},h},Ut={},Zt=function(t){return Ut[t=t||"g"]?Ut[t]+=1:Ut[t]=1,t+Ut[t]},Qt=function(){};function Kt(t){return z(t)?0:D(t)?t.length:Object.keys(t).length}var $t,Jt,te,ee=Ft((function(t,e){void 0===e&&(e={});var i=e.fontSize,n=e.fontFamily,r=e.fontWeight,o=e.fontStyle,a=e.fontVariant;return Gt||(Gt=document.createElement("canvas").getContext("2d")),Gt.font=[o,a,r,i+"px",n].join(" "),Gt.measureText(et(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),n([t],mt(e)).join("")})),ie=function(){function t(){this.map={}}return t.prototype.has=function(t){return void 0!==this.map[t]},t.prototype.get=function(t,e){var i=this.map[t];return void 0===i?e:i},t.prototype.set=function(t,e){this.map[t]=e},t.prototype.clear=function(){this.map={}},t.prototype.delete=function(t){delete this.map[t]},t.prototype.size=function(){return Object.keys(this.map).length},t}();e("LAYER",$t),function(t){t.FORE="fore",t.MID="mid",t.BG="bg"}($t||e("LAYER",$t={})),e("DIRECTION",Jt),function(t){t.TOP="top",t.TOP_LEFT="top-left",t.TOP_RIGHT="top-right",t.RIGHT="right",t.RIGHT_TOP="right-top",t.RIGHT_BOTTOM="right-bottom",t.LEFT="left",t.LEFT_TOP="left-top",t.LEFT_BOTTOM="left-bottom",t.BOTTOM="bottom",t.BOTTOM_LEFT="bottom-left",t.BOTTOM_RIGHT="bottom-right",t.RADIUS="radius",t.CIRCLE="circle",t.NONE="none"}(Jt||e("DIRECTION",Jt={})),function(t){t.AXIS="axis",t.GRID="grid",t.LEGEND="legend",t.TOOLTIP="tooltip",t.ANNOTATION="annotation",t.SLIDER="slider",t.SCROLLBAR="scrollbar",t.OTHER="other"}(te||(te={}));var ne,re,oe,ae,se=3,le=2,he=1;e("VIEW_LIFE_CIRCLE",ne),function(t){t.BEFORE_RENDER="beforerender",t.AFTER_RENDER="afterrender",t.BEFORE_PAINT="beforepaint",t.AFTER_PAINT="afterpaint",t.BEFORE_CHANGE_DATA="beforechangedata",t.AFTER_CHANGE_DATA="afterchangedata",t.BEFORE_CLEAR="beforeclear",t.AFTER_CLEAR="afterclear",t.BEFORE_DESTROY="beforedestroy",t.BEFORE_CHANGE_SIZE="beforechangesize",t.AFTER_CHANGE_SIZE="afterchangesize"}(ne||e("VIEW_LIFE_CIRCLE",ne={})),function(t){t.BEFORE_DRAW_ANIMATE="beforeanimate",t.AFTER_DRAW_ANIMATE="afteranimate"}(re||(re={})),function(t){t.MOUSE_ENTER="plot:mouseenter",t.MOUSE_DOWN="plot:mousedown",t.MOUSE_MOVE="plot:mousemove",t.MOUSE_UP="plot:mouseup",t.MOUSE_LEAVE="plot:mouseleave",t.TOUCH_START="plot:touchstart",t.TOUCH_MOVE="plot:touchmove",t.TOUCH_END="plot:touchend",t.TOUCH_CANCEL="plot:touchcancel",t.CLICK="plot:click",t.DBLCLICK="plot:dblclick",t.CONTEXTMENU="plot:contextmenu",t.LEAVE="plot:leave",t.ENTER="plot:enter"}(oe||(oe={})),function(t){t.ACTIVE="active",t.INACTIVE="inactive",t.SELECTED="selected",t.DEFAULT="default"}(ae||(ae={}));var ue,ce,pe,fe,ge=["color","shape","size"],de="_origin",ye={};function ve(t){var e=ye[t];if(!e)throw new Error("G engine '".concat(t,"' is not exist, please register it at first."));return e}function me(t,e){ye[t]=e}function xe(t,e,i){if(t){if("function"==typeof t.addEventListener)return t.addEventListener(e,i,!1),{remove:function(){t.removeEventListener(e,i,!1)}};if("function"==typeof t.attachEvent)return t.attachEvent("on"+e,i),{remove:function(){t.detachEvent("on"+e,i)}}}}function we(t){ue||(ue=document.createElement("table"),ce=document.createElement("tr"),pe=/^\s*<(\w+|!)[^>]*>/,fe={tr:document.createElement("tbody"),tbody:ue,thead:ue,tfoot:ue,td:ce,th:ce,"*":document.createElement("div")});var e=pe.test(t)&&RegExp.$1;e&&e in fe||(e="*");var i=fe[e];t="string"==typeof t?t.replace(/(^\s*)|(\s*$)/g,""):t,i.innerHTML=""+t;var n=i.childNodes[0];return n&&i.contains(n)&&i.removeChild(n),n}function Ce(t,e,i){var n;try{n=window.getComputedStyle?window.getComputedStyle(t,null)[e]:t.style[e]}catch(r){}finally{n=void 0===n?i:n}return n}function be(t,e){var i=function(t,e){var i=Ce(t,"height",e);return"auto"===i&&(i=t.offsetHeight),parseFloat(i)}(t,e),n=parseFloat(Ce(t,"borderTopWidth"))||0,r=parseFloat(Ce(t,"paddingTop"))||0,o=parseFloat(Ce(t,"paddingBottom"))||0;return i+n+(parseFloat(Ce(t,"borderBottomWidth"))||0)+r+o+(parseFloat(Ce(t,"marginTop"))||0)+(parseFloat(Ce(t,"marginBottom"))||0)}function Me(t,e){var i=function(t,e){var i=Ce(t,"width",e);return"auto"===i&&(i=t.offsetWidth),parseFloat(i)}(t,e),n=parseFloat(Ce(t,"borderLeftWidth"))||0,r=parseFloat(Ce(t,"paddingLeft"))||0,o=parseFloat(Ce(t,"paddingRight"))||0,a=parseFloat(Ce(t,"borderRightWidth"))||0,s=parseFloat(Ce(t,"marginRight"))||0;return i+n+a+r+o+(parseFloat(Ce(t,"marginLeft"))||0)+s}function Se(t,e){if(t)for(var i in e)e.hasOwnProperty(i)&&(t.style[i]=e[i]);return t}function Ae(t){return"number"==typeof t&&!isNaN(t)}function Te(t,e,i,n){var r=i,o=n;if(e){var a=function(t){var e=getComputedStyle(t);return{width:(t.clientWidth||parseInt(e.width,10))-parseInt(e.paddingLeft,10)-parseInt(e.paddingRight,10),height:(t.clientHeight||parseInt(e.height,10))-parseInt(e.paddingTop,10)-parseInt(e.paddingBottom,10)}}(t);r=a.width?a.width:r,o=a.height?a.height:o}return{width:Math.max(Ae(r)?r:1,1),height:Math.max(Ae(o)?o:1,1)}}var Be=function(){function t(){this._events={}}return t.prototype.on=function(t,e,i){return this._events[t]||(this._events[t]=[]),this._events[t].push({callback:e,once:!!i}),this},t.prototype.once=function(t,e){return this.on(t,e,!0),this},t.prototype.emit=function(t){for(var e=this,i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];var r=this._events[t]||[],o=this._events["*"]||[],a=function(n){for(var r=n.length,o=0;o<r;o++)if(n[o]){var a=n[o],s=a.callback;a.once&&(n.splice(o,1),0===n.length&&delete e._events[t],r--,o--),s.apply(e,i)}};a(r),a(o)},t.prototype.off=function(t,e){if(t)if(e){for(var i=this._events[t]||[],n=i.length,r=0;r<n;r++)i[r].callback===e&&(i.splice(r,1),n--,r--);0===i.length&&delete this._events[t]}else delete this._events[t];else this._events={};return this},t.prototype.getEvents=function(){return this._events},t}(),ke=function(t){function e(e){var i=t.call(this)||this;i.destroyed=!1;var n=e.visible,r=void 0===n||n;return i.visible=r,i}return r(e,t),e.prototype.show=function(){this.visible||this.changeVisible(!0)},e.prototype.hide=function(){this.visible&&this.changeVisible(!1)},e.prototype.destroy=function(){this.off(),this.destroyed=!0},e.prototype.changeVisible=function(t){this.visible!==t&&(this.visible=t)},e}(Be),Le="\t\n\v\f\r \u2028\u2029",Pe=new RegExp("([a-z])["+Le+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+Le+"]*,?["+Le+"]*)+)","ig"),Ie=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+Le+"]*,?["+Le+"]*","ig"),Ee=function(t){if(!t)return null;if(V(t))return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},i=[];return String(t).replace(Pe,(function(n,r,o){var a=[],s=r.toLowerCase();if(o.replace(Ie,(function(t,e){e&&a.push(+e)})),"m"===s&&a.length>2&&(i.push([r].concat(a.splice(0,2))),s="l",r="m"===r?"l":"L"),"o"===s&&1===a.length&&i.push([r,a[0]]),"r"===s)i.push([r].concat(a));else for(;a.length>=e[s]&&(i.push([r].concat(a.splice(0,e[s]))),e[s]););return t})),i},Fe=function(t,e){for(var i=[],n=0,r=t.length;r-2*!e>n;n+=2){var o=[{x:+t[n-2],y:+t[n-1]},{x:+t[n],y:+t[n+1]},{x:+t[n+2],y:+t[n+3]},{x:+t[n+4],y:+t[n+5]}];e?n?r-4===n?o[3]={x:+t[0],y:+t[1]}:r-2===n&&(o[2]={x:+t[0],y:+t[1]},o[3]={x:+t[2],y:+t[3]}):o[0]={x:+t[r-2],y:+t[r-1]}:r-4===n?o[3]=o[2]:n||(o[0]={x:+t[n],y:+t[n+1]}),i.push(["C",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return i},Oe=function(t,e,i,n,r){var o=[];if(null===r&&null===n&&(n=i),t=+t,e=+e,i=+i,n=+n,null!==r){var a=Math.PI/180,s=t+i*Math.cos(-n*a),l=t+i*Math.cos(-r*a);o=[["M",s,e+i*Math.sin(-n*a)],["A",i,i,0,+(r-n>180),0,l,e+i*Math.sin(-r*a)]]}else o=[["M",t,e],["m",0,-n],["a",i,n,0,1,1,0,2*n],["a",i,n,0,1,1,0,-2*n],["z"]];return o},De=function(t){if(!(t=Ee(t))||!t.length)return[["M",0,0]];var e,i,n=[],r=0,o=0,a=0,s=0,l=0;"M"===t[0][0]&&(a=r=+t[0][1],s=o=+t[0][2],l++,n[0]=["M",r,o]);for(var h=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),u=void 0,c=void 0,p=l,f=t.length;p<f;p++){if(n.push(u=[]),(e=(c=t[p])[0])!==e.toUpperCase())switch(u[0]=e.toUpperCase(),u[0]){case"A":u[1]=c[1],u[2]=c[2],u[3]=c[3],u[4]=c[4],u[5]=c[5],u[6]=+c[6]+r,u[7]=+c[7]+o;break;case"V":u[1]=+c[1]+o;break;case"H":u[1]=+c[1]+r;break;case"R":for(var g=2,d=(i=[r,o].concat(c.slice(1))).length;g<d;g++)i[g]=+i[g]+r,i[++g]=+i[g]+o;n.pop(),n=n.concat(Fe(i,h));break;case"O":n.pop(),(i=Oe(r,o,c[1],c[2])).push(i[0]),n=n.concat(i);break;case"U":n.pop(),n=n.concat(Oe(r,o,c[1],c[2],c[3])),u=["U"].concat(n[n.length-1].slice(-2));break;case"M":a=+c[1]+r,s=+c[2]+o;break;default:for(g=1,d=c.length;g<d;g++)u[g]=+c[g]+(g%2?r:o)}else if("R"===e)i=[r,o].concat(c.slice(1)),n.pop(),n=n.concat(Fe(i,h)),u=["R"].concat(c.slice(-2));else if("O"===e)n.pop(),(i=Oe(r,o,c[1],c[2])).push(i[0]),n=n.concat(i);else if("U"===e)n.pop(),n=n.concat(Oe(r,o,c[1],c[2],c[3])),u=["U"].concat(n[n.length-1].slice(-2));else for(var y=0,v=c.length;y<v;y++)u[y]=c[y];if("O"!==(e=e.toUpperCase()))switch(u[0]){case"Z":r=+a,o=+s;break;case"H":r=u[1];break;case"V":o=u[1];break;case"M":a=u[u.length-2],s=u[u.length-1];break;default:r=u[u.length-2],o=u[u.length-1]}}return n},Re=function(t,e,i,n){return[t,e,i,n,i,n]},_e=function(t,e,i,n,r,o){var a=1/3,s=2/3;return[a*t+s*i,a*e+s*n,a*r+s*i,a*o+s*n,r,o]},Ye=function t(e,i,n,r,o,a,s,l,h,u){n===r&&(n+=1);var c,p,f,g,d,y=120*Math.PI/180,v=Math.PI/180*(+o||0),m=[],x=function(t,e,i){return{x:t*Math.cos(i)-e*Math.sin(i),y:t*Math.sin(i)+e*Math.cos(i)}};if(u)p=u[0],f=u[1],g=u[2],d=u[3];else{e=(c=x(e,i,-v)).x,i=c.y,l=(c=x(l,h,-v)).x,h=c.y,e===l&&i===h&&(l+=1,h+=1);var w=(e-l)/2,C=(i-h)/2,b=w*w/(n*n)+C*C/(r*r);b>1&&(n*=b=Math.sqrt(b),r*=b);var M=n*n,S=r*r,A=(a===s?-1:1)*Math.sqrt(Math.abs((M*S-M*C*C-S*w*w)/(M*C*C+S*w*w)));g=A*n*C/r+(e+l)/2,d=A*-r*w/n+(i+h)/2,p=Math.asin(((i-d)/r).toFixed(9)),f=Math.asin(((h-d)/r).toFixed(9)),p=e<g?Math.PI-p:p,f=l<g?Math.PI-f:f,p<0&&(p=2*Math.PI+p),f<0&&(f=2*Math.PI+f),s&&p>f&&(p-=2*Math.PI),!s&&f>p&&(f-=2*Math.PI)}var T=f-p;if(Math.abs(T)>y){var B=f,k=l,L=h;f=p+y*(s&&f>p?1:-1),m=t(l=g+n*Math.cos(f),h=d+r*Math.sin(f),n,r,o,0,s,k,L,[f,B,g,d])}T=f-p;var P=Math.cos(p),I=Math.sin(p),E=Math.cos(f),F=Math.sin(f),O=Math.tan(T/4),D=4/3*n*O,R=4/3*r*O,_=[e,i],Y=[e+D*I,i-R*P],G=[l+D*F,h-R*E],X=[l,h];if(Y[0]=2*_[0]-Y[0],Y[1]=2*_[1]-Y[1],u)return[Y,G,X].concat(m);for(var z=[],V=0,H=(m=[Y,G,X].concat(m).join().split(",")).length;V<H;V++)z[V]=V%2?x(m[V-1],m[V],v).y:x(m[V],m[V+1],v).x;return z},Ge=function(t,e){var i,n=De(t),r=e&&De(e),o={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},s=[],l=[],h="",u="",c=function(t,e,i){var n,r;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"].concat(Ye.apply(0,[e.x,e.y].concat(t.slice(1))));break;case"S":"C"===i||"S"===i?(n=2*e.x-e.bx,r=2*e.y-e.by):(n=e.x,r=e.y),t=["C",n,r].concat(t.slice(1));break;case"T":"Q"===i||"T"===i?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"].concat(_e(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"].concat(_e(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat(Re(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(Re(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(Re(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(Re(e.x,e.y,e.X,e.Y))}return t},p=function(t,e){if(t[e].length>7){t[e].shift();for(var o=t[e];o.length;)s[e]="A",r&&(l[e]="A"),t.splice(e++,0,["C"].concat(o.splice(0,6)));t.splice(e,1),i=Math.max(n.length,r&&r.length||0)}},f=function(t,e,o,a,s){t&&e&&"M"===t[s][0]&&"M"!==e[s][0]&&(e.splice(s,0,["M",a.x,a.y]),o.bx=0,o.by=0,o.x=t[s][1],o.y=t[s][2],i=Math.max(n.length,r&&r.length||0))};i=Math.max(n.length,r&&r.length||0);for(var g=0;g<i;g++){n[g]&&(h=n[g][0]),"C"!==h&&(s[g]=h,g&&(u=s[g-1])),n[g]=c(n[g],o,u),"A"!==s[g]&&"C"===h&&(s[g]="C"),p(n,g),r&&(r[g]&&(h=r[g][0]),"C"!==h&&(l[g]=h,g&&(u=l[g-1])),r[g]=c(r[g],a,u),"A"!==l[g]&&"C"===h&&(l[g]="C"),p(r,g)),f(n,r,o,a,g),f(r,n,a,o,g);var d=n[g],y=r&&r[g],v=d.length,m=r&&y.length;o.x=d[v-2],o.y=d[v-1],o.bx=parseFloat(d[v-4])||o.x,o.by=parseFloat(d[v-3])||o.y,a.bx=r&&(parseFloat(y[m-4])||a.x),a.by=r&&(parseFloat(y[m-3])||a.y),a.x=r&&y[m-2],a.y=r&&y[m-1]}return r?[n,r]:n},Xe=/,?([a-z]),?/gi,ze=function(t){return t.join(",").replace(Xe,"$1")},Ve=function(t,e,i,n,r){return t*(t*(-3*e+9*i-9*n+3*r)+6*e-12*i+6*n)-3*e+3*i},He=function(t,e,i,n,r,o,a,s,l){null===l&&(l=1);for(var h=(l=l>1?1:l<0?0:l)/2,u=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],c=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],p=0,f=0;f<12;f++){var g=h*u[f]+h,d=Ve(g,t,i,r,a),y=Ve(g,e,n,o,s),v=d*d+y*y;p+=c[f]*Math.sqrt(v)}return h*p},Ne=function(t,e,i,n,r,o,a,s){for(var l,h,u,c,p=[],f=[[],[]],g=0;g<2;++g)if(0===g?(h=6*t-12*i+6*r,l=-3*t+9*i-9*r+3*a,u=3*i-3*t):(h=6*e-12*n+6*o,l=-3*e+9*n-9*o+3*s,u=3*n-3*e),Math.abs(l)<1e-12){if(Math.abs(h)<1e-12)continue;(c=-u/h)>0&&c<1&&p.push(c)}else{var d=h*h-4*u*l,y=Math.sqrt(d);if(!(d<0)){var v=(-h+y)/(2*l);v>0&&v<1&&p.push(v);var m=(-h-y)/(2*l);m>0&&m<1&&p.push(m)}}for(var x,w=p.length,C=w;w--;)x=1-(c=p[w]),f[0][w]=x*x*x*t+3*x*x*c*i+3*x*c*c*r+c*c*c*a,f[1][w]=x*x*x*e+3*x*x*c*n+3*x*c*c*o+c*c*c*s;return f[0][C]=t,f[1][C]=e,f[0][C+1]=a,f[1][C+1]=s,f[0].length=f[1].length=C+2,{min:{x:Math.min.apply(0,f[0]),y:Math.min.apply(0,f[1])},max:{x:Math.max.apply(0,f[0]),y:Math.max.apply(0,f[1])}}},We=function(t,e,i,n,r,o,a,s){if(!(Math.max(t,i)<Math.min(r,a)||Math.min(t,i)>Math.max(r,a)||Math.max(e,n)<Math.min(o,s)||Math.min(e,n)>Math.max(o,s))){var l=(t-i)*(o-s)-(e-n)*(r-a);if(l){var h=((t*n-e*i)*(r-a)-(t-i)*(r*s-o*a))/l,u=((t*n-e*i)*(o-s)-(e-n)*(r*s-o*a))/l,c=+h.toFixed(2),p=+u.toFixed(2);if(!(c<+Math.min(t,i).toFixed(2)||c>+Math.max(t,i).toFixed(2)||c<+Math.min(r,a).toFixed(2)||c>+Math.max(r,a).toFixed(2)||p<+Math.min(e,n).toFixed(2)||p>+Math.max(e,n).toFixed(2)||p<+Math.min(o,s).toFixed(2)||p>+Math.max(o,s).toFixed(2)))return{x:h,y:u}}}},je=function(t,e,i){return e>=t.x&&e<=t.x+t.width&&i>=t.y&&i<=t.y+t.height},qe=function(t,e,i,n,r){if(r)return[["M",+t+ +r,e],["l",i-2*r,0],["a",r,r,0,0,1,r,r],["l",0,n-2*r],["a",r,r,0,0,1,-r,r],["l",2*r-i,0],["a",r,r,0,0,1,-r,-r],["l",0,2*r-n],["a",r,r,0,0,1,r,-r],["z"]];var o=[["M",t,e],["l",i,0],["l",0,n],["l",-i,0],["z"]];return o.parsePathArray=ze,o},Ue=function(t,e,i,n){return null===t&&(t=e=i=n=0),null===e&&(e=t.y,i=t.width,n=t.height,t=t.x),{x:t,y:e,width:i,w:i,height:n,h:n,x2:t+i,y2:e+n,cx:t+i/2,cy:e+n/2,r1:Math.min(i,n)/2,r2:Math.max(i,n)/2,r0:Math.sqrt(i*i+n*n)/2,path:qe(t,e,i,n),vb:[t,e,i,n].join(" ")}},Ze=function(t,e,i,n,r,o,a,s){V(t)||(t=[t,e,i,n,r,o,a,s]);var l=Ne.apply(null,t);return Ue(l.min.x,l.min.y,l.max.x-l.min.x,l.max.y-l.min.y)},Qe=function(t,e,i,n,r,o,a,s,l){var h=1-l,u=Math.pow(h,3),c=Math.pow(h,2),p=l*l,f=p*l,g=t+2*l*(i-t)+p*(r-2*i+t),d=e+2*l*(n-e)+p*(o-2*n+e),y=i+2*l*(r-i)+p*(a-2*r+i),v=n+2*l*(o-n)+p*(s-2*o+n);return{x:u*t+3*c*l*i+3*h*l*l*r+f*a,y:u*e+3*c*l*n+3*h*l*l*o+f*s,m:{x:g,y:d},n:{x:y,y:v},start:{x:h*t+l*i,y:h*e+l*n},end:{x:h*r+l*a,y:h*o+l*s},alpha:90-180*Math.atan2(g-y,d-v)/Math.PI}},Ke=function(t,e,i){if(!function(t,e){return t=Ue(t),e=Ue(e),je(e,t.x,t.y)||je(e,t.x2,t.y)||je(e,t.x,t.y2)||je(e,t.x2,t.y2)||je(t,e.x,e.y)||je(t,e.x2,e.y)||je(t,e.x,e.y2)||je(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)}(Ze(t),Ze(e)))return i?0:[];for(var n=~~(He.apply(0,t)/8),r=~~(He.apply(0,e)/8),o=[],a=[],s={},l=i?0:[],h=0;h<n+1;h++){var u=Qe.apply(0,t.concat(h/n));o.push({x:u.x,y:u.y,t:h/n})}for(h=0;h<r+1;h++){u=Qe.apply(0,e.concat(h/r));a.push({x:u.x,y:u.y,t:h/r})}for(h=0;h<n;h++)for(var c=0;c<r;c++){var p=o[h],f=o[h+1],g=a[c],d=a[c+1],y=Math.abs(f.x-p.x)<.001?"y":"x",v=Math.abs(d.x-g.x)<.001?"y":"x",m=We(p.x,p.y,f.x,f.y,g.x,g.y,d.x,d.y);if(m){if(s[m.x.toFixed(4)]===m.y.toFixed(4))continue;s[m.x.toFixed(4)]=m.y.toFixed(4);var x=p.t+Math.abs((m[y]-p[y])/(f[y]-p[y]))*(f.t-p.t),w=g.t+Math.abs((m[v]-g[v])/(d[v]-g[v]))*(d.t-g.t);x>=0&&x<=1&&w>=0&&w<=1&&(i?l+=1:l.push({x:m.x,y:m.y,t1:x,t2:w}))}}return l};function $e(t,e){var i=[],n=[];return t.length&&function t(e,r){if(1===e.length)i.push(e[0]),n.push(e[0]);else{for(var o=[],a=0;a<e.length-1;a++)0===a&&i.push(e[0]),a===e.length-2&&n.push(e[a+1]),o[a]=[(1-r)*e[a][0]+r*e[a+1][0],(1-r)*e[a][1]+r*e[a+1][1]];t(o,r)}}(t,e),{left:i,right:n.reverse()}}var Je=function(t,e,i){if(1===i)return[[].concat(t)];var n=[];if("L"===e[0]||"C"===e[0]||"Q"===e[0])n=n.concat(function(t,e,i){var n=[[t[1],t[2]]];i=i||2;var r=[];"A"===e[0]?(n.push(e[6]),n.push(e[7])):"C"===e[0]?(n.push([e[1],e[2]]),n.push([e[3],e[4]]),n.push([e[5],e[6]])):"S"===e[0]||"Q"===e[0]?(n.push([e[1],e[2]]),n.push([e[3],e[4]])):n.push([e[1],e[2]]);for(var o=n,a=1/i,s=0;s<i-1;s++){var l=$e(o,a/(1-a*s));r.push(l.left),o=l.right}return r.push(o),r.map((function(t){var e=[];return 4===t.length&&(e.push("C"),e=e.concat(t[2])),t.length>=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e.concat(t[t.length-1])}))}(t,e,i));else{var r=[].concat(t);"M"===r[0]&&(r[0]="L");for(var o=0;o<=i-1;o++)n.push(r)}return n},ti=function(t,e){if(t.length!==e.length)return!1;var i=!0;return N(t,(function(t,n){if(t!==e[n])return i=!1,!1})),i};function ei(t,e,i){var n=null,r=i;return e<r&&(r=e,n="add"),t<r&&(r=t,n="del"),{type:n,min:r}}var ii=function(t,e){var i=function(t,e){var i,n,r=t.length,o=e.length,a=0;if(0===r||0===o)return null;for(var s=[],l=0;l<=r;l++)s[l]=[],s[l][0]={min:l};for(var h=0;h<=o;h++)s[0][h]={min:h};for(l=1;l<=r;l++)for(i=t[l-1],h=1;h<=o;h++){n=e[h-1],a=ti(i,n)?0:1;var u=s[l-1][h].min+1,c=s[l][h-1].min+1,p=s[l-1][h-1].min+a;s[l][h]=ei(u,c,p)}return s}(t,e),n=t.length,r=e.length,o=[],a=1,s=1;if(i[n][r].min!==n){for(var l=1;l<=n;l++){var h=i[l][l].min;s=l;for(var u=a;u<=r;u++)i[l][u].min<h&&(h=i[l][u].min,s=u);a=s,i[l][a].type&&o.push({index:l-1,type:i[l][a].type})}for(l=o.length-1;l>=0;l--)a=o[l].index,"add"===o[l].type?t.splice(a,0,[].concat(t[a])):t.splice(a,1)}var c=r-(n=t.length);if(n<r)for(l=0;l<c;l++)"z"===t[n-1][0]||"Z"===t[n-1][0]?t.splice(n-2,0,t[n-2]):t.push(t[n-1]),n+=1;return t};function ni(t,e,i){for(var n,r=[].concat(t),o=1/(i+1),a=ri(e)[0],s=1;s<=i;s++)o*=s,0===(n=Math.floor(t.length*o))?r.unshift([a[0]*o+t[n][0]*(1-o),a[1]*o+t[n][1]*(1-o)]):r.splice(n,0,[a[0]*o+t[n][0]*(1-o),a[1]*o+t[n][1]*(1-o)]);return r}function ri(t){var e=[];switch(t[0]){case"M":case"L":case"T":e.push([t[1],t[2]]);break;case"A":e.push([t[6],t[7]]);break;case"Q":case"S":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"C":e.push([t[5],t[6]]),e.push([t[1],t[2]]),e.push([t[3],t[4]]);break;case"H":case"V":e.push([t[1],t[1]])}return e}var oi=function(t,e){if(t.length<=1)return t;for(var i,n=0;n<e.length;n++)if(t[n][0]!==e[n][0])switch(i=ri(t[n]),e[n][0]){case"M":t[n]=["M"].concat(i[0]);break;case"L":t[n]=["L"].concat(i[0]);break;case"A":t[n]=[].concat(e[n]),t[n][6]=i[0][0],t[n][7]=i[0][1];break;case"Q":if(i.length<2){if(!(n>0)){t[n]=e[n];break}i=ni(i,t[n-1],1)}t[n]=["Q"].concat(i.reduce((function(t,e){return t.concat(e)}),[]));break;case"T":t[n]=["T"].concat(i[0]);break;case"C":if(i.length<3){if(!(n>0)){t[n]=e[n];break}i=ni(i,t[n-1],2)}t[n]=["C"].concat(i.reduce((function(t,e){return t.concat(e)}),[]));break;case"S":if(i.length<2){if(!(n>0)){t[n]=e[n];break}i=ni(i,t[n-1],1)}t[n]=["S"].concat(i.reduce((function(t,e){return t.concat(e)}),[]));break;default:t[n]=e[n]}return t},ai=Object.freeze(Object.defineProperty({__proto__:null,catmullRomToBezier:Fe,fillPath:function(t,e){if(1===t.length)return t;var i=t.length-1,n=e.length-1,r=i/n,o=[];if(1===t.length&&"M"===t[0][0]){for(var a=0;a<n-i;a++)t.push(t[0]);return t}for(a=0;a<n;a++){var s=Math.floor(r*a);o[s]=(o[s]||0)+1}var l=o.reduce((function(e,n,r){return r===i?e.concat(t[i]):e.concat(Je(t[r],t[r+1],n))}),[]);return l.unshift(t[0]),"Z"!==e[n]&&"z"!==e[n]||l.push("Z"),l},fillPathByDiff:ii,formatPath:oi,intersection:function(t,e){return function(t,e,i){var n,r,o,a,s,l,h,u,c,p;t=Ge(t),e=Ge(e);for(var f=i?0:[],g=0,d=t.length;g<d;g++){var y=t[g];if("M"===y[0])n=s=y[1],r=l=y[2];else{"C"===y[0]?(c=[n,r].concat(y.slice(1)),n=c[6],r=c[7]):(c=[n,r,n,r,s,l,s,l],n=s,r=l);for(var v=0,m=e.length;v<m;v++){var x=e[v];if("M"===x[0])o=h=x[1],a=u=x[2];else{"C"===x[0]?(p=[o,a].concat(x.slice(1)),o=p[6],a=p[7]):(p=[o,a,o,a,h,u,h,u],o=h,a=u);var w=Ke(c,p,i);if(i)f+=w;else{for(var C=0,b=w.length;C<b;C++)w[C].segment1=g,w[C].segment2=v,w[C].bez1=c,w[C].bez2=p;f=f.concat(w)}}}}}return f}(t,e)},parsePathArray:ze,parsePathString:Ee,pathToAbsolute:De,pathToCurve:Ge,rectPath:qe},Symbol.toStringTag,{value:"Module"})),si=function(){function t(t,e){this.bubbles=!0,this.target=null,this.currentTarget=null,this.delegateTarget=null,this.delegateObject=null,this.defaultPrevented=!1,this.propagationStopped=!1,this.shape=null,this.fromShape=null,this.toShape=null,this.propagationPath=[],this.type=t,this.name=t,this.originalEvent=e,this.timeStamp=e.timeStamp}return t.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t.prototype.toString=function(){return"[Event (type="+this.type+")]"},t.prototype.save=function(){},t.prototype.restore=function(){},t}();function li(t,e){var i=t.indexOf(e);-1!==i&&t.splice(i,1)}var hi="undefined"!=typeof window&&void 0!==window.document;function ui(t,e){if(t.isCanvas())return!0;for(var i=e.getParent(),n=!1;i;){if(i===t){n=!0;break}i=i.getParent()}return n}function ci(t){return t.cfg.visible&&t.cfg.capture}var pi=function(t){function e(e){var i=t.call(this)||this;i.destroyed=!1;var n=i.getDefaultCfg();return i.cfg=Pt(n,e),i}return r(e,t),e.prototype.getDefaultCfg=function(){return{}},e.prototype.get=function(t){return this.cfg[t]},e.prototype.set=function(t,e){this.cfg[t]=e},e.prototype.destroy=function(){this.cfg={destroyed:!0},this.off(),this.destroyed=!0},e}(Be),fi=globalThis&&globalThis.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,r=0,o=e.length;r<o;r++)!n&&r in e||(n||(n=Array.prototype.slice.call(e,0,r)),n[r]=e[r]);return t.concat(n||Array.prototype.slice.call(e))},gi=function(t,e,i){this.name=t,this.version=e,this.os=i,this.type="browser"},di=function(t){this.version=t,this.type="node",this.name="node",this.os=process.platform},yi=function(t,e,i,n){this.name=t,this.version=e,this.os=i,this.bot=n,this.type="bot-device"},vi=function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null},mi=function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null},xi=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,wi=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],Ci=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function bi(t){return t?Mi(t):"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new mi:"undefined"!=typeof navigator?Mi(navigator.userAgent):"undefined"!=typeof process&&process.version?new di(process.version.slice(1)):null}function Mi(t){var e=function(t){return""!==t&&wi.reduce((function(e,i){var n=i[0],r=i[1];if(e)return e;var o=r.exec(t);return!!o&&[n,o]}),!1)}(t);if(!e)return null;var i=e[0],n=e[1];if("searchbot"===i)return new vi;var r=n[1]&&n[1].split(".").join("_").split("_").slice(0,3);r?r.length<3&&(r=fi(fi([],r,!0),function(t){for(var e=[],i=0;i<t;i++)e.push("0");return e}(3-r.length),!0)):r=[];var o=r.join("."),a=function(t){for(var e=0,i=Ci.length;e<i;e++){var n=Ci[e],r=n[0];if(n[1].exec(t))return r}return null}(t),s=xi.exec(t);return s&&s[1]?new yi(i,o,a,s[1]):new gi(i,o,a)}var Si,Ai="undefined"!=typeof Float32Array?Float32Array:Array;function Ti(t,e,i){var n=e[0],r=e[1],o=e[2],a=e[3],s=e[4],l=e[5],h=e[6],u=e[7],c=e[8],p=i[0],f=i[1],g=i[2],d=i[3],y=i[4],v=i[5],m=i[6],x=i[7],w=i[8];return t[0]=p*n+f*a+g*h,t[1]=p*r+f*s+g*u,t[2]=p*o+f*l+g*c,t[3]=d*n+y*a+v*h,t[4]=d*r+y*s+v*u,t[5]=d*o+y*l+v*c,t[6]=m*n+x*a+w*h,t[7]=m*r+x*s+w*u,t[8]=m*o+x*l+w*c,t}function Bi(t,e,i){var n=e[0],r=e[1],o=e[2];return t[0]=n*i[0]+r*i[3]+o*i[6],t[1]=n*i[1]+r*i[4]+o*i[7],t[2]=n*i[2]+r*i[5]+o*i[8],t}function ki(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t}function Li(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t}function Pi(t,e,i){return t[0]=Math.min(e[0],i[0]),t[1]=Math.min(e[1],i[1]),t}function Ii(t,e,i){return t[0]=Math.max(e[0],i[0]),t[1]=Math.max(e[1],i[1]),t}function Ei(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t}function Fi(t,e){var i=e[0]-t[0],n=e[1]-t[1];return Math.hypot(i,n)}function Oi(t){var e=t[0],i=t[1];return Math.hypot(e,i)}function Di(t,e){var i=e[0],n=e[1],r=i*i+n*n;return r>0&&(r=1/Math.sqrt(r)),t[0]=e[0]*r,t[1]=e[1]*r,t}function Ri(t,e){return t[0]*e[0]+t[1]*e[1]}function _i(t,e){var i=t[0],n=t[1],r=e[0],o=e[1],a=Math.sqrt(i*i+n*n)*Math.sqrt(r*r+o*o),s=a&&(i*r+n*o)/a;return Math.acos(Math.min(Math.max(s,-1),1))}Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)}),Si=new Ai(3),Ai!=Float32Array&&(Si[0]=0,Si[1]=0,Si[2]=0);var Yi=Li;function Gi(t,e,i){var n=[0,0,0,0,0,0,0,0,0];return function(t,e){t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1}(n,i),Ti(t,n,e)}function Xi(t,e,i){var n=[0,0,0,0,0,0,0,0,0];return function(t,e){var i=Math.sin(e),n=Math.cos(e);t[0]=n,t[1]=i,t[2]=0,t[3]=-i,t[4]=n,t[5]=0,t[6]=0,t[7]=0,t[8]=1}(n,i),Ti(t,n,e)}function zi(t,e,i){var n=[0,0,0,0,0,0,0,0,0];return function(t,e){t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1}(n,i),Ti(t,n,e)}function Vi(t,e,i){return Ti(t,i,e)}function Hi(t,e){for(var i=t?[].concat(t):[1,0,0,0,1,0,0,0,1],n=0,r=e.length;n<r;n++){var o=e[n];switch(o[0]){case"t":Gi(i,i,[o[1],o[2]]);break;case"s":zi(i,i,[o[1],o[2]]);break;case"r":Xi(i,i,o[1]);break;case"m":Vi(i,i,o[1])}}return i}function Ni(t,e,i){var n=_i(t,e),r=function(t,e){return t[0]*e[1]-e[0]*t[1]}(t,e)>=0;return i?r?2*Math.PI-n:n:r?n:2*Math.PI-n}function Wi(t,e){var i=[],n=t[0],r=t[1],o=t[2],a=t[3],s=t[4],l=t[5],h=t[6],u=t[7],c=t[8],p=e[0],f=e[1],g=e[2],d=e[3],y=e[4],v=e[5],m=e[6],x=e[7],w=e[8];return i[0]=p*n+f*a+g*h,i[1]=p*r+f*s+g*u,i[2]=p*o+f*l+g*c,i[3]=d*n+y*a+v*h,i[4]=d*r+y*s+v*u,i[5]=d*o+y*l+v*c,i[6]=m*n+x*a+w*h,i[7]=m*r+x*s+w*u,i[8]=m*o+x*l+w*c,i}function ji(t,e){var i=[],n=e[0],r=e[1];return i[0]=t[0]*n+t[3]*r+t[6],i[1]=t[1]*n+t[4]*r+t[7],i}function qi(t){var e=[],i=t[0],n=t[1],r=t[2],o=t[3],a=t[4],s=t[5],l=t[6],h=t[7],u=t[8],c=u*a-s*h,p=-u*o+s*l,f=h*o-a*l,g=i*c+n*p+r*f;return g?(g=1/g,e[0]=c*g,e[1]=(-u*n+r*h)*g,e[2]=(s*n-r*a)*g,e[3]=p*g,e[4]=(u*i-r*l)*g,e[5]=(-s*i+r*o)*g,e[6]=f*g,e[7]=(-h*i+n*l)*g,e[8]=(a*i-n*o)*g,e):null}!function(){var t=function(){var t=new Ai(2);return Ai!=Float32Array&&(t[0]=0,t[1]=0),t}()}();var Ui=Hi,Zi="matrix",Qi=["zIndex","capture","visible","type"],Ki=["repeat"];function $i(t,e){var i={},n=e.attrs;for(var r in t)i[r]=n[r];return i}function Ji(t,e){var i={},n=e.attr();return N(t,(function(t,e){-1!==Ki.indexOf(e)||Xt(n[e],t)||(i[e]=t)})),i}function tn(t,e){if(e.onFrame)return t;var i=e.startTime,n=e.delay,r=e.duration,o=Object.prototype.hasOwnProperty;return N(t,(function(t){i+n<t.startTime+t.delay+t.duration&&r>t.delay&&N(e.toAttrs,(function(e,i){o.call(t.toAttrs,i)&&(delete t.toAttrs[i],delete t.fromAttrs[i])}))})),t}var en=function(t){function e(e){var i=t.call(this,e)||this;i.attrs={};var n=i.getDefaultAttrs();return Pt(n,e.attrs),i.attrs=n,i.initAttrs(n),i.initAnimate(),i}return r(e,t),e.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},e.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},e.prototype.onCanvasChange=function(t){},e.prototype.initAttrs=function(t){},e.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},e.prototype.isGroup=function(){return!1},e.prototype.getParent=function(){return this.get("parent")},e.prototype.getCanvas=function(){return this.get("canvas")},e.prototype.attr=function(){for(var t,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var n=e[0],r=e[1];if(!n)return this.attrs;if(H(n)){for(var o in n)this.setAttr(o,n[o]);return this.afterAttrsChange(n),this}return 2===e.length?(this.setAttr(n,r),this.afterAttrsChange(((t={})[n]=r,t)),this):this.attrs[n]},e.prototype.isClipped=function(t,e){var i=this.getClip();return i&&!i.isHit(t,e)},e.prototype.setAttr=function(t,e){var i=this.attrs[t];i!==e&&(this.attrs[t]=e,this.onAttrChange(t,e,i))},e.prototype.onAttrChange=function(t,e,i){"matrix"===t&&this.set("totalMatrix",null)},e.prototype.afterAttrsChange=function(t){if(this.cfg.isClipShape){var e=this.cfg.applyTo;e&&e.onCanvasChange("clip")}else this.onCanvasChange("attr")},e.prototype.show=function(){return this.set("visible",!0),this.onCanvasChange("show"),this},e.prototype.hide=function(){return this.set("visible",!1),this.onCanvasChange("hide"),this},e.prototype.setZIndex=function(t){this.set("zIndex",t);var e=this.getParent();return e&&e.sort(),this},e.prototype.toFront=function(){var t=this.getParent();if(t){var e=t.getChildren();this.get("el");var i=e.indexOf(this);e.splice(i,1),e.push(this),this.onCanvasChange("zIndex")}},e.prototype.toBack=function(){var t=this.getParent();if(t){var e=t.getChildren();this.get("el");var i=e.indexOf(this);e.splice(i,1),e.unshift(this),this.onCanvasChange("zIndex")}},e.prototype.remove=function(t){void 0===t&&(t=!0);var e=this.getParent();e?(li(e.getChildren(),this),e.get("clearing")||this.onCanvasChange("remove")):this.onCanvasChange("remove"),t&&this.destroy()},e.prototype.resetMatrix=function(){this.attr(Zi,this.getDefaultMatrix()),this.onCanvasChange("matrix")},e.prototype.getMatrix=function(){return this.attr(Zi)},e.prototype.setMatrix=function(t){this.attr(Zi,t),this.onCanvasChange("matrix")},e.prototype.getTotalMatrix=function(){var t=this.cfg.totalMatrix;if(!t){var e=this.attr("matrix"),i=this.cfg.parentMatrix;t=i&&e?Wi(i,e):e||i,this.set("totalMatrix",t)}return t},e.prototype.applyMatrix=function(t){var e=this.attr("matrix"),i=null;i=t&&e?Wi(t,e):e||t,this.set("totalMatrix",i),this.set("parentMatrix",t)},e.prototype.getDefaultMatrix=function(){return null},e.prototype.applyToMatrix=function(t){var e=this.attr("matrix");return e?ji(e,t):t},e.prototype.invertFromMatrix=function(t){var e=this.attr("matrix");if(e){var i=qi(e);if(i)return ji(i,t)}return t},e.prototype.setClip=function(t){var e=this.getCanvas(),i=null;if(t){var n=this.getShapeBase()[bt(t.type)];n&&(i=new n({type:t.type,isClipShape:!0,applyTo:this,attrs:t.attrs,canvas:e}))}return this.set("clipShape",i),this.onCanvasChange("clip"),i},e.prototype.getClip=function(){var t=this.cfg.clipShape;return t||null},e.prototype.clone=function(){var t=this,e=this.attrs,i={};N(e,(function(t,n){V(e[n])?i[n]=function(t){for(var e=[],i=0;i<t.length;i++)V(t[i])?e.push([].concat(t[i])):e.push(t[i]);return e}(e[n]):i[n]=e[n]}));var n=new(0,this.constructor)({attrs:i});return N(Qi,(function(e){n.set(e,t.get(e))})),n},e.prototype.destroy=function(){this.destroyed||(this.attrs={},t.prototype.destroy.call(this))},e.prototype.isAnimatePaused=function(){return this.get("_pause").isPaused},e.prototype.animate=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.get("timeline")||this.get("canvas")){this.set("animating",!0);var i=this.get("timeline");i||(i=this.get("canvas").get("timeline"),this.set("timeline",i));var n=this.get("animations")||[];i.timer||i.initTimer();var r,o,a,s,l,h=t[0],u=t[1],c=t[2],p=void 0===c?"easeLinear":c,f=t[3],g=void 0===f?Qt:f,d=t[4],y=void 0===d?0:d;X(h)?(r=h,h={}):H(h)&&h.onFrame&&(r=h.onFrame,o=h.repeat),H(u)?(u=(l=u).duration,p=l.easing||"easeLinear",y=l.delay||0,o=l.repeat||o||!1,g=l.callback||Qt,a=l.pauseCallback||Qt,s=l.resumeCallback||Qt):(pt(g)&&(y=g,g=null),X(p)?(g=p,p="easeLinear"):p=p||"easeLinear");var v=Ji(h,this),m={fromAttrs:$i(v,this),toAttrs:v,duration:u,easing:p,repeat:o,callback:g,pauseCallback:a,resumeCallback:s,delay:y,startTime:i.getTime(),id:Zt(),onFrame:r,pathFormatted:!1};n.length>0?n=tn(n,m):i.addAnimator(this),n.push(m),this.set("animations",n),this.set("_pause",{isPaused:!1})}},e.prototype.stopAnimate=function(t){var e=this;void 0===t&&(t=!0),N(this.get("animations"),(function(i){t&&(i.onFrame?e.attr(i.onFrame(1)):e.attr(i.toAttrs)),i.callback&&i.callback()})),this.set("animating",!1),this.set("animations",[])},e.prototype.pauseAnimate=function(){var t=this.get("timeline"),e=this.get("animations"),i=t.getTime();return N(e,(function(t){t._paused=!0,t._pauseTime=i,t.pauseCallback&&t.pauseCallback()})),this.set("_pause",{isPaused:!0,pauseTime:i}),this},e.prototype.resumeAnimate=function(){var t=this.get("timeline").getTime(),e=this.get("animations"),i=this.get("_pause").pauseTime;return N(e,(function(e){e.startTime=e.startTime+(t-i),e._paused=!1,e._pauseTime=null,e.resumeCallback&&e.resumeCallback()})),this.set("_pause",{isPaused:!1}),this.set("animations",e),this},e.prototype.emitDelegation=function(t,e){var i,n=this,r=e.propagationPath;this.getEvents(),"mouseenter"===t?i=e.fromShape:"mouseleave"===t&&(i=e.toShape);for(var o=function(t){var o=r[t],s=o.get("name");if(s){if((o.isGroup()||o.isCanvas&&o.isCanvas())&&i&&ui(o,i))return"break";V(s)?N(s,(function(t){n.emitDelegateEvent(o,t,e)})):a.emitDelegateEvent(o,s,e)}},a=this,s=0;s<r.length;s++){if("break"===o(s))break}},e.prototype.emitDelegateEvent=function(t,e,i){var n=this.getEvents(),r=e+":"+i.type;(n[r]||n["*"])&&(i.name=r,i.currentTarget=t,i.delegateTarget=this,i.delegateObject=t.get("delegateObject"),this.emit(r,i))},e.prototype.translate=function(t,e){void 0===t&&(t=0),void 0===e&&(e=0);var i=this.getMatrix(),n=Ui(i,[["t",t,e]]);return this.setMatrix(n),this},e.prototype.move=function(t,e){var i=this.attr("x")||0,n=this.attr("y")||0;return this.translate(t-i,e-n),this},e.prototype.moveTo=function(t,e){return this.move(t,e)},e.prototype.scale=function(t,e){var i=this.getMatrix(),n=Ui(i,[["s",t,e||t]]);return this.setMatrix(n),this},e.prototype.rotate=function(t){var e=this.getMatrix(),i=Ui(e,[["r",t]]);return this.setMatrix(i),this},e.prototype.rotateAtStart=function(t){var e=this.attr(),i=e.x,n=e.y,r=this.getMatrix(),o=Ui(r,[["t",-i,-n],["r",t],["t",i,n]]);return this.setMatrix(o),this},e.prototype.rotateAtPoint=function(t,e,i){var n=this.getMatrix(),r=Ui(n,[["t",-t,-e],["r",i],["t",t,e]]);return this.setMatrix(r),this},e}(pi),nn={},rn="_INDEX";function on(t,e){if(t.set("canvas",e),t.isGroup()){var i=t.get("children");i.length&&i.forEach((function(t){on(t,e)}))}}function an(t,e){if(t.set("timeline",e),t.isGroup()){var i=t.get("children");i.length&&i.forEach((function(t){an(t,e)}))}}var sn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.isCanvas=function(){return!1},e.prototype.getBBox=function(){var t=1/0,e=-1/0,i=1/0,n=-1/0,r=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));return r.length>0?N(r,(function(r){var o=r.getBBox(),a=o.minX,s=o.maxX,l=o.minY,h=o.maxY;a<t&&(t=a),s>e&&(e=s),l<i&&(i=l),h>n&&(n=h)})):(t=0,e=0,i=0,n=0),{x:t,y:i,minX:t,minY:i,maxX:e,maxY:n,width:e-t,height:n-i}},e.prototype.getCanvasBBox=function(){var t=1/0,e=-1/0,i=1/0,n=-1/0,r=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));return r.length>0?N(r,(function(r){var o=r.getCanvasBBox(),a=o.minX,s=o.maxX,l=o.minY,h=o.maxY;a<t&&(t=a),s>e&&(e=s),l<i&&(i=l),h>n&&(n=h)})):(t=0,e=0,i=0,n=0),{x:t,y:i,minX:t,minY:i,maxX:e,maxY:n,width:e-t,height:n-i}},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.children=[],e},e.prototype.onAttrChange=function(e,i,n){if(t.prototype.onAttrChange.call(this,e,i,n),"matrix"===e){var r=this.getTotalMatrix();this._applyChildrenMarix(r)}},e.prototype.applyMatrix=function(e){var i=this.getTotalMatrix();t.prototype.applyMatrix.call(this,e);var n=this.getTotalMatrix();n!==i&&this._applyChildrenMarix(n)},e.prototype._applyChildrenMarix=function(t){N(this.getChildren(),(function(e){e.applyMatrix(t)}))},e.prototype.addShape=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var i=t[0],n=t[1];H(i)?n=i:n.type=i;var r=nn[n.type];r||(r=bt(n.type),nn[n.type]=r);var o=this.getShapeBase(),a=new o[r](n);return this.add(a),a},e.prototype.addGroup=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var i,n=t[0],r=t[1];if(X(n))i=new n(r||{parent:this});else{var o=n||{},a=this.getGroupBase();i=new a(o)}return this.add(i),i},e.prototype.getCanvas=function(){return this.isCanvas()?this:this.get("canvas")},e.prototype.getShape=function(t,e,i){if(!ci(this))return null;var n,r=this.getChildren();if(this.isCanvas())n=this._findShape(r,t,e,i);else{var o=[t,e,1];o=this.invertFromMatrix(o),this.isClipped(o[0],o[1])||(n=this._findShape(r,o[0],o[1],i))}return n},e.prototype._findShape=function(t,e,i,n){for(var r=null,o=t.length-1;o>=0;o--){var a=t[o];if(ci(a)&&(a.isGroup()?r=a.getShape(e,i,n):a.isHit(e,i)&&(r=a)),r)break}return r},e.prototype.add=function(t){var e=this.getCanvas(),i=this.getChildren(),n=this.get("timeline"),r=t.getParent();r&&function(t,e,i){void 0===i&&(i=!0),i?e.destroy():(e.set("parent",null),e.set("canvas",null)),li(t.getChildren(),e)}(r,t,!1),t.set("parent",this),e&&on(t,e),n&&an(t,n),i.push(t),t.onCanvasChange("add"),this._applyElementMatrix(t)},e.prototype._applyElementMatrix=function(t){var e=this.getTotalMatrix();e&&t.applyMatrix(e)},e.prototype.getChildren=function(){return this.get("children")},e.prototype.sort=function(){var t,e=this.getChildren();N(e,(function(t,e){return t[rn]=e,t})),e.sort((t=function(t,e){return t.get("zIndex")-e.get("zIndex")},function(e,i){var n=t(e,i);return 0===n?e[rn]-i[rn]:n})),this.onCanvasChange("sort")},e.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var t=this.getChildren(),e=t.length-1;e>=0;e--)t[e].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},e.prototype.destroy=function(){this.get("destroyed")||(this.clear(),t.prototype.destroy.call(this))},e.prototype.getFirst=function(){return this.getChildByIndex(0)},e.prototype.getLast=function(){var t=this.getChildren();return this.getChildByIndex(t.length-1)},e.prototype.getChildByIndex=function(t){return this.getChildren()[t]},e.prototype.getCount=function(){return this.getChildren().length},e.prototype.contain=function(t){return this.getChildren().indexOf(t)>-1},e.prototype.removeChild=function(t,e){void 0===e&&(e=!0),this.contain(t)&&t.remove(e)},e.prototype.findAll=function(t){var e=[];return N(this.getChildren(),(function(i){t(i)&&e.push(i),i.isGroup()&&(e=e.concat(i.findAll(t)))})),e},e.prototype.find=function(t){var e=null;return N(this.getChildren(),(function(i){if(t(i)?e=i:i.isGroup()&&(e=i.find(t)),e)return!1})),e},e.prototype.findById=function(t){return this.find((function(e){return e.get("id")===t}))},e.prototype.findByClassName=function(t){return this.find((function(e){return e.get("className")===t}))},e.prototype.findAllByName=function(t){return this.findAll((function(e){return e.get("name")===t}))},e}(en),ln={};function hn(t,e){ln[t.toLowerCase()]=e}var un=[1,0,0,0,1,0,0,0,1];function cn(t,e,i){var n,r=e.startTime;if(i<r+e.delay||e._paused)return!1;var s,l=e.duration,h=e.easing,u=ln[(s=h).toLowerCase()]||O[s];if(i=i-r-e.delay,e.repeat)n=u(n=i%l/l);else{if(!((n=i/l)<1))return e.onFrame?t.attr(e.onFrame(1)):t.attr(e.toAttrs),!0;n=u(n)}if(e.onFrame){var c=e.onFrame(n);t.attr(c)}else!function(t,e,i){var n={},r=e.fromAttrs,s=e.toAttrs;if(!t.destroyed){var l,h;for(var u in s)if(!Xt(r[u],s[u]))if("path"===u){var c=s[u],p=r[u];c.length>p.length?(c=Ee(s[u]),p=Ee(r[u]),p=ii(p,c),p=oi(p,c),e.fromAttrs.path=p,e.toAttrs.path=c):e.pathFormatted||(c=Ee(s[u]),p=Ee(r[u]),p=oi(p,c),e.fromAttrs.path=p,e.toAttrs.path=c,e.pathFormatted=!0),n[u]=[];for(var f=0;f<c.length;f++){for(var g=c[f],d=p[f],y=[],v=0;v<g.length;v++)pt(g[v])&&d&&pt(d[v])?(l=o(d[v],g[v]),y.push(l(i))):y.push(g[v]);n[u].push(y)}}else if("matrix"===u){var m=a(r[u]||un,s[u]||un)(i);n[u]=m}else["fill","stroke","fillStyle","strokeStyle"].includes(u)&&(h=s[u],/^[r,R,L,l]{1}[\s]*\(/.test(h))?n[u]=s[u]:X(s[u])||(l=o(r[u],s[u]),n[u]=l(i));t.attr(n)}}(t,e,n);return!1}var pn=function(){function t(t){this.animators=[],this.current=0,this.timer=null,this.canvas=t}return t.prototype.initTimer=function(){var t,e,i,n=this;this.timer=u((function(r){if(n.current=r,n.animators.length>0){for(var o=n.animators.length-1;o>=0;o--)if((t=n.animators[o]).destroyed)n.removeAnimator(o);else{if(!t.isAnimatePaused())for(var a=(e=t.get("animations")).length-1;a>=0;a--)i=e[a],cn(t,i,r)&&(e.splice(a,1),!1,i.callback&&i.callback());0===e.length&&n.removeAnimator(o)}n.canvas.get("autoDraw")||n.canvas.draw()}}))},t.prototype.addAnimator=function(t){this.animators.push(t)},t.prototype.removeAnimator=function(t){this.animators.splice(t,1)},t.prototype.isAnimating=function(){return!!this.animators.length},t.prototype.stop=function(){this.timer&&this.timer.stop()},t.prototype.stopAllAnimations=function(t){void 0===t&&(t=!0),this.animators.forEach((function(e){e.stopAnimate(t)})),this.animators=[],this.canvas.draw()},t.prototype.getTime=function(){return this.current},t}(),fn=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function gn(t,e,i){i.name=e,i.target=t,i.currentTarget=t,i.delegateTarget=t,t.emit(e,i)}function dn(t,e,i){if(i.bubbles){var n=void 0,r=!1;if("mouseenter"===e?(n=i.fromShape,r=!0):"mouseleave"===e&&(r=!0,n=i.toShape),t.isCanvas()&&r)return;if(n&&ui(t,n))return void(i.bubbles=!1);i.name=e,i.currentTarget=t,i.delegateTarget=t,t.emit(e,i)}}var yn=function(){function t(t){var e=this;this.draggingShape=null,this.dragging=!1,this.currentShape=null,this.mousedownShape=null,this.mousedownPoint=null,this._eventCallback=function(t){var i=t.type;e._triggerEvent(i,t)},this._onDocumentMove=function(t){if(e.canvas.get("el")!==t.target&&(e.dragging||e.currentShape)){var i=e._getPointInfo(t);e.dragging&&e._emitEvent("drag",t,i,e.draggingShape)}},this._onDocumentMouseUp=function(t){if(e.canvas.get("el")!==t.target&&e.dragging){var i=e._getPointInfo(t);e.draggingShape&&e._emitEvent("drop",t,i,null),e._emitEvent("dragend",t,i,e.draggingShape),e._afterDrag(e.draggingShape,i,t)}},this.canvas=t.canvas}return t.prototype.init=function(){this._bindEvents()},t.prototype._bindEvents=function(){var t=this,e=this.canvas.get("el");N(fn,(function(i){e.addEventListener(i,t._eventCallback)})),document&&(document.addEventListener("mousemove",this._onDocumentMove),document.addEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._clearEvents=function(){var t=this,e=this.canvas.get("el");N(fn,(function(i){e.removeEventListener(i,t._eventCallback)})),document&&(document.removeEventListener("mousemove",this._onDocumentMove),document.removeEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._getEventObj=function(t,e,i,n,r,o){var a=new si(t,e);return a.fromShape=r,a.toShape=o,a.x=i.x,a.y=i.y,a.clientX=i.clientX,a.clientY=i.clientY,a.propagationPath.push(n),a},t.prototype._getShape=function(t,e){return this.canvas.getShape(t.x,t.y,e)},t.prototype._getPointInfo=function(t){var e=this.canvas,i=e.getClientByEvent(t),n=e.getPointByEvent(t);return{x:n.x,y:n.y,clientX:i.x,clientY:i.y}},t.prototype._triggerEvent=function(t,e){var i=this._getPointInfo(e),n=this._getShape(i,e),r=this["_on"+t],o=!1;if(r)r.call(this,i,n,e);else{var a=this.currentShape;"mouseenter"===t||"dragenter"===t||"mouseover"===t?(this._emitEvent(t,e,i,null,null,n),n&&this._emitEvent(t,e,i,n,null,n),"mouseenter"===t&&this.draggingShape&&this._emitEvent("dragenter",e,i,null)):"mouseleave"===t||"dragleave"===t||"mouseout"===t?(o=!0,a&&this._emitEvent(t,e,i,a,a,null),this._emitEvent(t,e,i,null,a,null),"mouseleave"===t&&this.draggingShape&&this._emitEvent("dragleave",e,i,null)):this._emitEvent(t,e,i,n,null,null)}if(o||(this.currentShape=n),n&&!n.get("destroyed")){var s=this.canvas;s.get("el").style.cursor=n.attr("cursor")||s.get("cursor")}},t.prototype._onmousedown=function(t,e,i){0===i.button&&(this.mousedownShape=e,this.mousedownPoint=t,this.mousedownTimeStamp=i.timeStamp),this._emitEvent("mousedown",i,t,e,null,null)},t.prototype._emitMouseoverEvents=function(t,e,i,n){var r=this.canvas.get("el");i!==n&&(i&&(this._emitEvent("mouseout",t,e,i,i,n),this._emitEvent("mouseleave",t,e,i,i,n),n&&!n.get("destroyed")||(r.style.cursor=this.canvas.get("cursor"))),n&&(this._emitEvent("mouseover",t,e,n,i,n),this._emitEvent("mouseenter",t,e,n,i,n)))},t.prototype._emitDragoverEvents=function(t,e,i,n,r){n?(n!==i&&(i&&this._emitEvent("dragleave",t,e,i,i,n),this._emitEvent("dragenter",t,e,n,i,n)),r||this._emitEvent("dragover",t,e,n)):i&&this._emitEvent("dragleave",t,e,i,i,n),r&&this._emitEvent("dragover",t,e,n)},t.prototype._afterDrag=function(t,e,i){t&&(t.set("capture",!0),this.draggingShape=null),this.dragging=!1;var n=this._getShape(e,i);n!==t&&this._emitMouseoverEvents(i,e,t,n),this.currentShape=n},t.prototype._onmouseup=function(t,e,i){if(0===i.button){var n=this.draggingShape;this.dragging?(n&&this._emitEvent("drop",i,t,e),this._emitEvent("dragend",i,t,n),this._afterDrag(n,t,i)):(this._emitEvent("mouseup",i,t,e),e===this.mousedownShape&&this._emitEvent("click",i,t,e),this.mousedownShape=null,this.mousedownPoint=null)}},t.prototype._ondragover=function(t,e,i){i.preventDefault();var n=this.currentShape;this._emitDragoverEvents(i,t,n,e,!0)},t.prototype._onmousemove=function(t,e,i){var n=this.canvas,r=this.currentShape,o=this.draggingShape;if(this.dragging)o&&this._emitDragoverEvents(i,t,r,e,!1),this._emitEvent("drag",i,t,o);else{var a=this.mousedownPoint;if(a){var s=this.mousedownShape,l=i.timeStamp-this.mousedownTimeStamp,h=a.clientX-t.clientX,u=a.clientY-t.clientY;l>120||h*h+u*u>40?s&&s.get("draggable")?((o=this.mousedownShape).set("capture",!1),this.draggingShape=o,this.dragging=!0,this._emitEvent("dragstart",i,t,o),this.mousedownShape=null,this.mousedownPoint=null):!s&&n.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",i,t,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(i,t,r,e),this._emitEvent("mousemove",i,t,e)):(this._emitMouseoverEvents(i,t,r,e),this._emitEvent("mousemove",i,t,e))}else this._emitMouseoverEvents(i,t,r,e),this._emitEvent("mousemove",i,t,e)}},t.prototype._emitEvent=function(t,e,i,n,r,o){var a=this._getEventObj(t,e,i,n,r,o);if(n){a.shape=n,gn(n,t,a);for(var s=n.getParent();s;)s.emitDelegation(t,a),a.propagationStopped||dn(s,t,a),a.propagationPath.push(s),s=s.getParent()}else{gn(this.canvas,t,a)}},t.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},t}(),vn=bi(),mn=vn&&"firefox"===vn.name,xn=function(t){function e(e){var i=t.call(this,e)||this;return i.initContainer(),i.initDom(),i.initEvents(),i.initTimeline(),i}return r(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.cursor="default",e.supportCSSTransform=!1,e},e.prototype.initContainer=function(){var t=this.get("container");et(t)&&(t=document.getElementById(t),this.set("container",t))},e.prototype.initDom=function(){var t=this.createDom();this.set("el",t),this.get("container").appendChild(t),this.setDOMSize(this.get("width"),this.get("height"))},e.prototype.initEvents=function(){var t=new yn({canvas:this});t.init(),this.set("eventController",t)},e.prototype.initTimeline=function(){var t=new pn(this);this.set("timeline",t)},e.prototype.setDOMSize=function(t,e){var i=this.get("el");hi&&(i.style.width=t+"px",i.style.height=e+"px")},e.prototype.changeSize=function(t,e){this.setDOMSize(t,e),this.set("width",t),this.set("height",e),this.onCanvasChange("changeSize")},e.prototype.getRenderer=function(){return this.get("renderer")},e.prototype.getCursor=function(){return this.get("cursor")},e.prototype.setCursor=function(t){this.set("cursor",t);var e=this.get("el");hi&&e&&(e.style.cursor=t)},e.prototype.getPointByEvent=function(t){if(this.get("supportCSSTransform")){if(mn&&!z(t.layerX)&&t.layerX!==t.offsetX)return{x:t.layerX,y:t.layerY};if(!z(t.offsetX))return{x:t.offsetX,y:t.offsetY}}var e=this.getClientByEvent(t),i=e.x,n=e.y;return this.getPointByClient(i,n)},e.prototype.getClientByEvent=function(t){var e=t;return t.touches&&(e="touchend"===t.type?t.changedTouches[0]:t.touches[0]),{x:e.clientX,y:e.clientY}},e.prototype.getPointByClient=function(t,e){var i=this.get("el").getBoundingClientRect();return{x:t-i.left,y:e-i.top}},e.prototype.getClientByPoint=function(t,e){var i=this.get("el").getBoundingClientRect();return{x:t+i.left,y:e+i.top}},e.prototype.draw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.parentNode.removeChild(t)},e.prototype.clearEvents=function(){this.get("eventController").destroy()},e.prototype.isCanvas=function(){return!0},e.prototype.getParent=function(){return null},e.prototype.destroy=function(){var e=this.get("timeline");this.get("destroyed")||(this.clear(),e&&e.stop(),this.clearEvents(),this.removeDom(),t.prototype.destroy.call(this))},e}(sn),wn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.isGroup=function(){return!0},e.prototype.isEntityGroup=function(){return!1},e.prototype.clone=function(){for(var e=t.prototype.clone.call(this),i=this.getChildren(),n=0;n<i.length;n++){var r=i[n];e.add(r.clone())}return e},e}(sn),Cn=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype._isInBBox=function(t,e){var i=this.getBBox();return i.minX<=t&&i.maxX>=t&&i.minY<=e&&i.maxY>=e},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e),this.clearCacheBBox()},e.prototype.getBBox=function(){var t=this.cfg.bbox;return t||(t=this.calculateBBox(),this.set("bbox",t)),t},e.prototype.getCanvasBBox=function(){var t=this.cfg.canvasBBox;return t||(t=this.calculateCanvasBBox(),this.set("canvasBBox",t)),t},e.prototype.applyMatrix=function(e){t.prototype.applyMatrix.call(this,e),this.set("canvasBBox",null)},e.prototype.calculateCanvasBBox=function(){var t=this.getBBox(),e=this.getTotalMatrix(),i=t.minX,n=t.minY,r=t.maxX,o=t.maxY;if(e){var a=ji(e,[t.minX,t.minY]),s=ji(e,[t.maxX,t.minY]),l=ji(e,[t.minX,t.maxY]),h=ji(e,[t.maxX,t.maxY]);i=Math.min(a[0],s[0],l[0],h[0]),r=Math.max(a[0],s[0],l[0],h[0]),n=Math.min(a[1],s[1],l[1],h[1]),o=Math.max(a[1],s[1],l[1],h[1])}var u=this.attrs;if(u.shadowColor){var c=u.shadowBlur,p=void 0===c?0:c,f=u.shadowOffsetX,g=void 0===f?0:f,d=u.shadowOffsetY,y=void 0===d?0:d,v=i-p+g,m=r+p+g,x=n-p+y,w=o+p+y;i=Math.min(i,v),r=Math.max(r,m),n=Math.min(n,x),o=Math.max(o,w)}return{x:i,y:n,minX:i,minY:n,maxX:r,maxY:o,width:r-i,height:o-n}},e.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBBox",null)},e.prototype.isClipShape=function(){return this.get("isClipShape")},e.prototype.isInShape=function(t,e){return!1},e.prototype.isOnlyHitBox=function(){return!1},e.prototype.isHit=function(t,e){var i=this.get("startArrowShape"),n=this.get("endArrowShape"),r=[t,e,1],o=(r=this.invertFromMatrix(r))[0],a=r[1],s=this._isInBBox(o,a);if(this.isOnlyHitBox())return s;if(s&&!this.isClipped(o,a)){if(this.isInShape(o,a))return!0;if(i&&i.isHit(o,a))return!0;if(n&&n.isHit(o,a))return!0}return!1},e}(en),bn=new Map;function Mn(t,e){bn.set(t,e)}function Sn(t){return bn.get(t)}function An(t){var e=t.attr();return{x:e.x,y:e.y,width:e.width,height:e.height}}function Tn(t){var e=t.attr(),i=e.x,n=e.y,r=e.r;return{x:i-r,y:n-r,width:2*r,height:2*r}}function Bn(t,e,i,n){var r=t-i,o=e-n;return Math.sqrt(r*r+o*o)}function kn(t,e){return Math.abs(t-e)<.001}function Ln(t,e){var i=K(t),n=K(e);return{x:i,y:n,width:Q(t)-i,height:Q(e)-n}}function Pn(t){return(t+2*Math.PI)%(2*Math.PI)}var In={box:function(t,e,i,n){return Ln([t,i],[e,n])},length:function(t,e,i,n){return Bn(t,e,i,n)},pointAt:function(t,e,i,n,r){return{x:(1-r)*t+r*i,y:(1-r)*e+r*n}},pointDistance:function(t,e,i,n,r,o){var a=(i-t)*(r-t)+(n-e)*(o-e);return a<0?Bn(t,e,r,o):a>(i-t)*(i-t)+(n-e)*(n-e)?Bn(i,n,r,o):this.pointToLine(t,e,i,n,r,o)},pointToLine:function(t,e,i,n,r,o){var a=[i-t,n-e];if(function(t,e){return t[0]===e[0]&&t[1]===e[1]}(a,[0,0]))return Math.sqrt((r-t)*(r-t)+(o-e)*(o-e));var s=[-a[1],a[0]];Di(s,s);var l=[r-t,o-e];return Math.abs(Ri(l,s))},tangentAngle:function(t,e,i,n){return Math.atan2(n-e,i-t)}};function En(t,e,i,n,r,o){var a,s=1/0,l=[i,n],h=20;o&&o>200&&(h=o/10);for(var u=1/h,c=u/10,p=0;p<=h;p++){var f=p*u,g=[r.apply(null,t.concat([f])),r.apply(null,e.concat([f]))];(m=Bn(l[0],l[1],g[0],g[1]))<s&&(a=f,s=m)}if(0===a)return{x:t[0],y:e[0]};if(1===a){var d=t.length;return{x:t[d-1],y:e[d-1]}}s=1/0;for(p=0;p<32&&!(c<1e-4);p++){var y=a-c,v=a+c,m=(g=[r.apply(null,t.concat([y])),r.apply(null,e.concat([y]))],Bn(l[0],l[1],g[0],g[1]));if(y>=0&&m<s)a=y,s=m;else{var x=[r.apply(null,t.concat([v])),r.apply(null,e.concat([v]))],w=Bn(l[0],l[1],x[0],x[1]);v<=1&&w<s?(a=v,s=w):c*=.5}}return{x:r.apply(null,t.concat([a])),y:r.apply(null,e.concat([a]))}}function Fn(t,e,i,n){var r=1-n;return r*r*t+2*n*r*e+n*n*i}function On(t,e,i){var n=t+i-2*e;if(kn(n,0))return[.5];var r=(t-e)/n;return r<=1&&r>=0?[r]:[]}function Dn(t,e,i,n){return 2*(1-n)*(e-t)+2*n*(i-e)}function Rn(t,e,i,n,r,o,a){var s=Fn(t,i,r,a),l=Fn(e,n,o,a),h=In.pointAt(t,e,i,n,a),u=In.pointAt(i,n,r,o,a);return[[t,e,h.x,h.y,s,l],[s,l,u.x,u.y,r,o]]}function _n(t,e,i,n,r,o,a){if(0===a)return(Bn(t,e,i,n)+Bn(i,n,r,o)+Bn(t,e,r,o))/2;var s=Rn(t,e,i,n,r,o,.5),l=s[0],h=s[1];return l.push(a-1),h.push(a-1),_n.apply(null,l)+_n.apply(null,h)}var Yn={box:function(t,e,i,n,r,o){var a=On(t,i,r)[0],s=On(e,n,o)[0],l=[t,r],h=[e,o];return void 0!==a&&l.push(Fn(t,i,r,a)),void 0!==s&&h.push(Fn(e,n,o,s)),Ln(l,h)},length:function(t,e,i,n,r,o){return _n(t,e,i,n,r,o,3)},nearestPoint:function(t,e,i,n,r,o,a,s){return En([t,i,r],[e,n,o],a,s,Fn)},pointDistance:function(t,e,i,n,r,o,a,s){var l=this.nearestPoint(t,e,i,n,r,o,a,s);return Bn(l.x,l.y,a,s)},interpolationAt:Fn,pointAt:function(t,e,i,n,r,o,a){return{x:Fn(t,i,r,a),y:Fn(e,n,o,a)}},divide:function(t,e,i,n,r,o,a){return Rn(t,e,i,n,r,o,a)},tangentAngle:function(t,e,i,n,r,o,a){var s=Dn(t,i,r,a),l=Dn(e,n,o,a);return Pn(Math.atan2(l,s))}};function Gn(t,e,i,n,r){var o=1-r;return o*o*o*t+3*e*r*o*o+3*i*r*r*o+n*r*r*r}function Xn(t,e,i,n,r){var o=1-r;return 3*(o*o*(e-t)+2*o*r*(i-e)+r*r*(n-i))}function zn(t,e,i,n){var r,o,a,s=-3*t+9*e-9*i+3*n,l=6*t-12*e+6*i,h=3*e-3*t,u=[];if(kn(s,0))kn(l,0)||(r=-h/l)>=0&&r<=1&&u.push(r);else{var c=l*l-4*s*h;kn(c,0)?u.push(-l/(2*s)):c>0&&(o=(-l-(a=Math.sqrt(c)))/(2*s),(r=(-l+a)/(2*s))>=0&&r<=1&&u.push(r),o>=0&&o<=1&&u.push(o))}return u}function Vn(t,e,i,n,r,o,a,s,l){var h=Gn(t,i,r,a,l),u=Gn(e,n,o,s,l),c=In.pointAt(t,e,i,n,l),p=In.pointAt(i,n,r,o,l),f=In.pointAt(r,o,a,s,l),g=In.pointAt(c.x,c.y,p.x,p.y,l),d=In.pointAt(p.x,p.y,f.x,f.y,l);return[[t,e,c.x,c.y,g.x,g.y,h,u],[h,u,d.x,d.y,f.x,f.y,a,s]]}function Hn(t,e,i,n,r,o,a,s,l){if(0===l)return function(t,e){for(var i=0,n=t.length,r=0;r<n;r++)i+=Bn(t[r],e[r],t[(r+1)%n],e[(r+1)%n]);return i/2}([t,i,r,a],[e,n,o,s]);var h=Vn(t,e,i,n,r,o,a,s,.5),u=h[0],c=h[1];return u.push(l-1),c.push(l-1),Hn.apply(null,u)+Hn.apply(null,c)}var Nn={extrema:zn,box:function(t,e,i,n,r,o,a,s){for(var l=[t,a],h=[e,s],u=zn(t,i,r,a),c=zn(e,n,o,s),p=0;p<u.length;p++)l.push(Gn(t,i,r,a,u[p]));for(p=0;p<c.length;p++)h.push(Gn(e,n,o,s,c[p]));return Ln(l,h)},length:function(t,e,i,n,r,o,a,s){return Hn(t,e,i,n,r,o,a,s,3)},nearestPoint:function(t,e,i,n,r,o,a,s,l,h,u){return En([t,i,r,a],[e,n,o,s],l,h,Gn,u)},pointDistance:function(t,e,i,n,r,o,a,s,l,h,u){var c=this.nearestPoint(t,e,i,n,r,o,a,s,l,h,u);return Bn(c.x,c.y,l,h)},interpolationAt:Gn,pointAt:function(t,e,i,n,r,o,a,s,l){return{x:Gn(t,i,r,a,l),y:Gn(e,n,o,s,l)}},divide:function(t,e,i,n,r,o,a,s,l){return Vn(t,e,i,n,r,o,a,s,l)},tangentAngle:function(t,e,i,n,r,o,a,s,l){var h=Xn(t,i,r,a,l),u=Xn(e,n,o,s,l);return Pn(Math.atan2(u,h))}};function Wn(t,e,i,n,r,o){return i*Math.cos(r)*Math.cos(o)-n*Math.sin(r)*Math.sin(o)+t}function jn(t,e,i,n,r,o){return i*Math.sin(r)*Math.cos(o)+n*Math.cos(r)*Math.sin(o)+e}var qn=function(t,e,i,n,r,o,a){for(var s=function(t,e,i){return Math.atan(-e/t*Math.tan(i))}(i,n,r),l=1/0,h=-1/0,u=[o,a],c=2*-Math.PI;c<=2*Math.PI;c+=Math.PI){var p=s+c;o<a?o<p&&p<a&&u.push(p):a<p&&p<o&&u.push(p)}for(c=0;c<u.length;c++){var f=Wn(t,0,i,n,r,u[c]);f<l&&(l=f),f>h&&(h=f)}var g=function(t,e,i){return Math.atan(e/(t*Math.tan(i)))}(i,n,r),d=1/0,y=-1/0,v=[o,a];for(c=2*-Math.PI;c<=2*Math.PI;c+=Math.PI){var m=g+c;o<a?o<m&&m<a&&v.push(m):a<m&&m<o&&v.push(m)}for(c=0;c<v.length;c++){var x=jn(0,e,i,n,r,v[c]);x<d&&(d=x),x>y&&(y=x)}return{x:l,y:d,width:h-l,height:y-d}};var Un=function(t){return function(t){if(t.length<2)return 0;for(var e=0,i=0;i<t.length-1;i++){var n=t[i],r=t[i+1];e+=Bn(n[0],n[1],r[0],r[1])}return e}(t)};function Zn(t,e){return t&&e?{minX:Math.min(t.minX,e.minX),minY:Math.min(t.minY,e.minY),maxX:Math.max(t.maxX,e.maxX),maxY:Math.max(t.maxY,e.maxY)}:t||e}function Qn(t,e){var i=t.get("startArrowShape"),n=t.get("endArrowShape");return i&&(e=Zn(e,i.getCanvasBBox())),n&&(e=Zn(e,n.getCanvasBBox())),e}var Kn=null;function $n(){if(!Kn){var t=document.createElement("canvas");t.width=1,t.height=1,Kn=t.getContext("2d")}return Kn}function Jn(t,e,i){var n=1;if(et(t)&&(n=t.split("\n").length),n>1){var r=function(t,e){return e?e-t:.14*t}(e,i);return e*n+r*(n-1)}return e}function tr(t){var e=t.fontSize,i=t.fontFamily,n=t.fontWeight;return[t.fontStyle,t.fontVariant,n,e+"px",i].join(" ").trim()}var er=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,ir=/[^\s\,]+/gi;function nr(t,e,i){void 0===e&&(e=!1),void 0===i&&(i=[[0,0],[1,1]]);for(var n=!!e,r=[],o=0,a=t.length;o<a;o+=2)r.push([t[o],t[o+1]]);var s,l,h,u=function(t,e,i,n){var r,o,a,s,l,h,u,c=[],p=!!n;if(p){a=n[0],s=n[1];for(var f=0,g=t.length;f<g;f+=1)a=Pi([0,0],a,y=t[f]),s=Ii([0,0],s,y)}f=0;for(var d=t.length;f<d;f+=1){var y=t[f];if(0!==f||i)if(f!==d-1||i){r=t[[f?f-1:d-1,f-1][i?0:1]],o=t[i?(f+1)%d:f+1];var v=[0,0];v=Ei(v=Yi(v,o,r),v,e);var m=Fi(y,r),x=Fi(y,o),w=m+x;0!==w&&(m/=w,x/=w);var C=Ei([0,0],v,-m),b=Ei([0,0],v,x);h=ki([0,0],y,C),l=Pi([0,0],l=ki([0,0],y,b),Ii([0,0],o,y)),l=Ii([0,0],l,Pi([0,0],o,y)),h=Pi([0,0],h=ki([0,0],y,C=Ei([0,0],C=Yi([0,0],l,y),-m/x)),Ii([0,0],r,y)),h=Ii([0,0],h,Pi([0,0],r,y)),l=ki([0,0],y,b=Ei([0,0],b=Yi([0,0],y,h),x/m)),p&&(h=Pi([0,0],h=Ii([0,0],h,a),s),l=Pi([0,0],l=Ii([0,0],l,a),s)),c.push(u),c.push(h),u=l}else h=y,c.push(u),c.push(h);else u=y}return i&&c.push(c.shift()),c}(r,.4,n,i),c=r.length,p=[];for(o=0;o<c-1;o+=1)s=u[2*o],l=u[2*o+1],h=r[o+1],p.push(["C",s[0],s[1],l[0],l[1],h[0],h[1]]);return n&&(s=u[c],l=u[c+1],h=r[0],p.push(["C",s[0],s[1],l[0],l[1],h[0],h[1]])),p}var rr="\t\n\v\f\r \u2028\u2029",or=new RegExp("([a-z])["+rr+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+rr+"]*,?["+rr+"]*)+)","ig"),ar=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+rr+"]*,?["+rr+"]*","ig");function sr(t){if(!t)return null;if(V(t))return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},i=[];return String(t).replace(or,(function(t,n,r){var o=[],a=n.toLowerCase();if(r.replace(ar,(function(t,e){e&&o.push(+e)})),"m"===a&&o.length>2&&(i.push([n].concat(o.splice(0,2))),a="l",n="m"===n?"l":"L"),"o"===a&&1===o.length&&i.push([n,o[0]]),"r"===a)i.push([n].concat(o));else for(;o.length>=e[a]&&(i.push([n].concat(o.splice(0,e[a]))),e[a]););return""})),i}var lr=/[a-z]/;function hr(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function ur(t){var e=sr(t);if(!e||!e.length)return[["M",0,0]];for(var i=!1,n=0;n<e.length;n++){var r=e[n][0];if(lr.test(r)||["V","H","T","S"].indexOf(r)>=0){i=!0;break}}if(!i)return e;var o=[],a=0,s=0,l=0,h=0,u=0,c=e[0];"M"!==c[0]&&"m"!==c[0]||(l=a=+c[1],h=s=+c[2],u++,o[0]=["M",a,s]);n=u;for(var p=e.length;n<p;n++){var f=e[n],g=o[n-1],d=[],y=(r=f[0]).toUpperCase();if(r!==y)switch(d[0]=y,y){case"A":d[1]=f[1],d[2]=f[2],d[3]=f[3],d[4]=f[4],d[5]=f[5],d[6]=+f[6]+a,d[7]=+f[7]+s;break;case"V":d[1]=+f[1]+s;break;case"H":d[1]=+f[1]+a;break;case"M":l=+f[1]+a,h=+f[2]+s,d[1]=l,d[2]=h;break;default:for(var v=1,m=f.length;v<m;v++)d[v]=+f[v]+(v%2?a:s)}else d=e[n];switch(y){case"Z":a=+l,s=+h;break;case"H":d=["L",a=d[1],s];break;case"V":d=["L",a,s=d[1]];break;case"T":a=d[1],s=d[2];var x=hr([g[1],g[2]],[g[3],g[4]]);d=["Q",x[0],x[1],a,s];break;case"S":a=d[d.length-2],s=d[d.length-1];var w=g.length,C=hr([g[w-4],g[w-3]],[g[w-2],g[w-1]]);d=["C",C[0],C[1],d[1],d[2],a,s];break;case"M":l=d[d.length-2],h=d[d.length-1];break;default:a=d[d.length-2],s=d[d.length-1]}o.push(d)}return o}function cr(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function pr(t,e){return cr(t)*cr(e)?(t[0]*e[0]+t[1]*e[1])/(cr(t)*cr(e)):1}function fr(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(pr(t,e))}function gr(t,e){return t[0]===e[0]&&t[1]===e[1]}function dr(t,e){var i=e[1],n=e[2],r=gt(yt(e[3]),2*Math.PI),o=e[4],a=e[5],s=t[0],l=t[1],h=e[6],u=e[7],c=Math.cos(r)*(s-h)/2+Math.sin(r)*(l-u)/2,p=-1*Math.sin(r)*(s-h)/2+Math.cos(r)*(l-u)/2,f=c*c/(i*i)+p*p/(n*n);f>1&&(i*=Math.sqrt(f),n*=Math.sqrt(f));var g=i*i*(p*p)+n*n*(c*c),d=g?Math.sqrt((i*i*(n*n)-g)/g):1;o===a&&(d*=-1),isNaN(d)&&(d=0);var y=n?d*i*p/n:0,v=i?d*-n*c/i:0,m=(s+h)/2+Math.cos(r)*y-Math.sin(r)*v,x=(l+u)/2+Math.sin(r)*y+Math.cos(r)*v,w=[(c-y)/i,(p-v)/n],C=[(-1*c-y)/i,(-1*p-v)/n],b=fr([1,0],w),M=fr(w,C);return pr(w,C)<=-1&&(M=Math.PI),pr(w,C)>=1&&(M=0),0===a&&M>0&&(M-=2*Math.PI),1===a&&M<0&&(M+=2*Math.PI),{cx:m,cy:x,rx:gr(t,[h,u])?0:i,ry:gr(t,[h,u])?0:n,startAngle:b,endAngle:b+M,xRotation:r,arcFlag:o,sweepFlag:a}}function yr(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function vr(t){t=function(t){var e=t||[];return V(e)?e:et(e)?(N(e=e.match(er),(function(t,i){if((t=t.match(ir))[0].length>1){var n=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=n}N(t,(function(e,i){isNaN(e)||(t[i]=+e)})),e[i]=t})),e):void 0}(t);for(var e=[],i=null,n=null,r=null,o=0,a=t.length,s=0;s<a;s++){var l=t[s];n=t[s+1];var h=l[0],u={command:h,prePoint:i,params:l,startTangent:null,endTangent:null};switch(h){case"M":r=[l[1],l[2]],o=s;break;case"A":var c=dr(i,l);u.arcParams=c}if("Z"===h)i=r,n=t[o+1];else{var p=l.length;i=[l[p-2],l[p-1]]}n&&"Z"===n[0]&&(n=t[o],e[o]&&(e[o].prePoint=i)),u.currentPoint=i,e[o]&&gr(i,e[o].currentPoint)&&(e[o].prePoint=u.prePoint);var f=n?[n[n.length-2],n[n.length-1]]:null;u.nextPoint=f;var g=u.prePoint;if(["L","H","V"].includes(h))u.startTangent=[g[0]-i[0],g[1]-i[1]],u.endTangent=[i[0]-g[0],i[1]-g[1]];else if("Q"===h){var d=[l[1],l[2]];u.startTangent=[g[0]-d[0],g[1]-d[1]],u.endTangent=[i[0]-d[0],i[1]-d[1]]}else if("T"===h){d=yr((m=e[s-1]).currentPoint,g);"Q"===m.command?(u.command="Q",u.startTangent=[g[0]-d[0],g[1]-d[1]],u.endTangent=[i[0]-d[0],i[1]-d[1]]):(u.command="TL",u.startTangent=[g[0]-i[0],g[1]-i[1]],u.endTangent=[i[0]-g[0],i[1]-g[1]])}else if("C"===h){var y=[l[1],l[2]],v=[l[3],l[4]];u.startTangent=[g[0]-y[0],g[1]-y[1]],u.endTangent=[i[0]-v[0],i[1]-v[1]],0===u.startTangent[0]&&0===u.startTangent[1]&&(u.startTangent=[y[0]-v[0],y[1]-v[1]]),0===u.endTangent[0]&&0===u.endTangent[1]&&(u.endTangent=[v[0]-y[0],v[1]-y[1]])}else if("S"===h){var m;y=yr((m=e[s-1]).currentPoint,g),v=[l[1],l[2]];"C"===m.command?(u.command="C",u.startTangent=[g[0]-y[0],g[1]-y[1]],u.endTangent=[i[0]-v[0],i[1]-v[1]]):(u.command="SQ",u.startTangent=[g[0]-v[0],g[1]-v[1]],u.endTangent=[i[0]-v[0],i[1]-v[1]])}else if("A"===h){var x=.001,w=u.arcParams||{},C=w.cx,b=void 0===C?0:C,M=w.cy,S=void 0===M?0:M,A=w.rx,T=void 0===A?0:A,B=w.ry,k=void 0===B?0:B,L=w.sweepFlag,P=void 0===L?0:L,I=w.startAngle,E=void 0===I?0:I,F=w.endAngle,O=void 0===F?0:F;0===P&&(x*=-1);var D=T*Math.cos(E-x)+b,R=k*Math.sin(E-x)+S;u.startTangent=[D-r[0],R-r[1]];var _=T*Math.cos(E+O+x)+b,Y=k*Math.sin(E+O-x)+S;u.endTangent=[g[0]-_,g[1]-Y]}e.push(u)}return e}var mr=function(t,e,i){return t>=e&&t<=i};function xr(t){return Math.abs(t)<1e-6?0:t<0?-1:1}function wr(t,e,i){return(i[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(i[1]-t[1])&&Math.min(t[0],e[0])<=i[0]&&i[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=i[1]&&i[1]<=Math.max(t[1],e[1])}function Cr(t,e,i){var n=!1,r=t.length;if(r<=2)return!1;for(var o=0;o<r;o++){var a=t[o],s=t[(o+1)%r];if(wr(a,s,[e,i]))return!0;xr(a[1]-i)>0!=xr(s[1]-i)>0&&xr(e-(i-a[1])*(a[0]-s[0])/(a[1]-s[1])-a[0])<0&&(n=!n)}return n}function br(t){for(var e=[],i=t.length,n=0;n<i-1;n++){var r=t[n],o=t[n+1];e.push({from:{x:r[0],y:r[1]},to:{x:o[0],y:o[1]}})}if(e.length>1){var a=t[0],s=t[i-1];e.push({from:{x:s[0],y:s[1]},to:{x:a[0],y:a[1]}})}return e}function Mr(t,e){var i=!1;return N(t,(function(t){if(function(t,e,i,n){var r=i.x-t.x,o=i.y-t.y,a=e.x-t.x,s=e.y-t.y,l=n.x-i.x,h=n.y-i.y,u=a*h-s*l,c=null;if(u*u>.001*(a*a+s*s)*(l*l+h*h)){var p=(r*h-o*l)/u,f=(r*s-o*a)/u;mr(p,0,1)&&mr(f,0,1)&&(c={x:t.x+p*a,y:t.y+p*s})}return c}(t.from,t.to,e.from,e.to))return i=!0,!1})),i}function Sr(t){var e=t.map((function(t){return t[0]})),i=t.map((function(t){return t[1]}));return{minX:Math.min.apply(null,e),maxX:Math.max.apply(null,e),minY:Math.min.apply(null,i),maxY:Math.max.apply(null,i)}}function Ar(t,e){var i=t.prePoint,n=t.currentPoint,r=t.nextPoint,o=Math.pow(n[0]-i[0],2)+Math.pow(n[1]-i[1],2),a=Math.pow(n[0]-r[0],2)+Math.pow(n[1]-r[1],2),s=Math.pow(i[0]-r[0],2)+Math.pow(i[1]-r[1],2),l=Math.acos((o+a-s)/(2*Math.sqrt(o)*Math.sqrt(a)));if(!l||0===Math.sin(l)||ft(l,0))return{xExtra:0,yExtra:0};var h=Math.abs(Math.atan2(r[1]-n[1],r[0]-n[0])),u=Math.abs(Math.atan2(r[0]-n[0],r[1]-n[1]));return h=h>Math.PI/2?Math.PI-h:h,u=u>Math.PI/2?Math.PI-u:u,{xExtra:Math.cos(l/2-h)*(e/2*(1/Math.sin(l/2)))-e/2||0,yExtra:Math.cos(u-l/2)*(e/2*(1/Math.sin(l/2)))-e/2||0}}Mn("rect",An),Mn("image",An),Mn("circle",Tn),Mn("marker",Tn),Mn("polyline",(function(t){for(var e=t.attr().points,i=[],n=[],r=0;r<e.length;r++){var o=e[r];i.push(o[0]),n.push(o[1])}var a=Ln(i,n),s=a.x,l=a.y,h={minX:s,minY:l,maxX:s+a.width,maxY:l+a.height};return{x:(h=Qn(t,h)).minX,y:h.minY,width:h.maxX-h.minX,height:h.maxY-h.minY}})),Mn("polygon",(function(t){for(var e=t.attr().points,i=[],n=[],r=0;r<e.length;r++){var o=e[r];i.push(o[0]),n.push(o[1])}return Ln(i,n)})),Mn("text",(function(t){var e=t.attr(),i=e.x,n=e.y,r=e.text,o=e.fontSize,a=e.lineHeight,s=e.font;s||(s=tr(e));var l,h=function(t,e){var i=$n(),n=0;return z(t)||""===t||(i.save(),i.font=e,et(t)&&t.includes("\n")?N(t.split("\n"),(function(t){var e=i.measureText(t).width;n<e&&(n=e)})):n=i.measureText(t).width,i.restore()),n}(r,s);if(h){var u=e.textAlign,c=e.textBaseline,p=Jn(r,o,a),f={x:i,y:n-p};u&&("end"===u||"right"===u?f.x-=h:"center"===u&&(f.x-=h/2)),c&&("top"===c?f.y+=p:"middle"===c&&(f.y+=p/2)),l={x:f.x,y:f.y,width:h,height:p}}else l={x:i,y:n,width:0,height:0};return l})),Mn("path",(function(t){var e=t.attr(),i=e.path,n=e.stroke?e.lineWidth:0,r=function(t,e){for(var i=[],n=[],r=[],o=0;o<t.length;o++){var a=(d=t[o]).currentPoint,s=d.params,l=d.prePoint,h=void 0;switch(d.command){case"Q":h=Yn.box(l[0],l[1],s[1],s[2],s[3],s[4]);break;case"C":h=Nn.box(l[0],l[1],s[1],s[2],s[3],s[4],s[5],s[6]);break;case"A":var u=d.arcParams;h=qn(u.cx,u.cy,u.rx,u.ry,u.xRotation,u.startAngle,u.endAngle);break;default:i.push(a[0]),n.push(a[1])}h&&(d.box=h,i.push(h.x,h.x+h.width),n.push(h.y,h.y+h.height)),e&&("L"===d.command||"M"===d.command)&&d.prePoint&&d.nextPoint&&r.push(d)}i=i.filter((function(t){return!Number.isNaN(t)&&t!==1/0&&t!==-1/0})),n=n.filter((function(t){return!Number.isNaN(t)&&t!==1/0&&t!==-1/0}));var c=K(i),p=K(n),f=Q(i),g=Q(n);if(0===r.length)return{x:c,y:p,width:f-c,height:g-p};for(o=0;o<r.length;o++){var d;(a=(d=r[o]).currentPoint)[0]===c?c-=Ar(d,e).xExtra:a[0]===f&&(f+=Ar(d,e).xExtra),a[1]===p?p-=Ar(d,e).yExtra:a[1]===g&&(g+=Ar(d,e).yExtra)}return{x:c,y:p,width:f-c,height:g-p}}(t.get("segments")||vr(i),n),o=r.x,a=r.y,s={minX:o,minY:a,maxX:o+r.width,maxY:a+r.height};return{x:(s=Qn(t,s)).minX,y:s.minY,width:s.maxX-s.minX,height:s.maxY-s.minY}})),Mn("line",(function(t){var e=t.attr(),i=e.x1,n=e.y1,r=e.x2,o=e.y2,a={minX:Math.min(i,r),maxX:Math.max(i,r),minY:Math.min(n,o),maxY:Math.max(n,o)};return{x:(a=Qn(t,a)).minX,y:a.minY,width:a.maxX-a.minX,height:a.maxY-a.minY}})),Mn("ellipse",(function(t){var e=t.attr(),i=e.x,n=e.y,r=e.rx,o=e.ry;return{x:i-r,y:n-o,width:2*r,height:2*o}}));var Tr=function(){function t(t){var e=t.xField,i=t.yField,n=t.adjustNames,r=void 0===n?["x","y"]:n;this.adjustNames=r,this.xField=e,this.yField=i}return t.prototype.isAdjust=function(t){return this.adjustNames.indexOf(t)>=0},t.prototype.getAdjustRange=function(t,e,i){var n,r,o=this.yField,a=i.indexOf(e),s=i.length;return!o&&this.isAdjust("y")?(n=0,r=1):s>1?(n=i[0===a?0:a-1],r=i[a===s-1?s-1:a+1],0!==a?n+=(e-n)/2:n-=(r-e)/2,a!==s-1?r-=(r-e)/2:r+=(e-i[s-2])/2):(n=0===e?0:e-.5,r=0===e?1:e+.5),{pre:n,next:r}},t.prototype.adjustData=function(t,e){var i=this,n=this.getDimValues(e);N(t,(function(t,e){N(n,(function(n,r){i.adjustDim(r,n,t,e)}))}))},t.prototype.groupData=function(t,e){return N(t,(function(t){void 0===t[e]&&(t[e]=0)})),lt(t,e)},t.prototype.adjustDim=function(t,e,i,n){},t.prototype.getDimValues=function(t){var e=this.xField,i=this.yField,n={},r=[];if(e&&this.isAdjust("x")&&r.push(e),i&&this.isAdjust("y")&&r.push(i),r.forEach((function(e){n[e]=nt(t,e).sort((function(t,e){return t-e}))})),!i&&this.isAdjust("y")){n.y=[0,1]}return n},t}(),Br={},kr=function(t){return Br[t.toLowerCase()]},Lr=function(t,e){if(kr(t))throw new Error("Adjust type '"+t+"' existed.");Br[t.toLowerCase()]=e},Pr=function(t,e){return Pr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},Pr(t,e)};function Ir(t,e){function i(){this.constructor=t}Pr(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var Er=function(){return Er=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},Er.apply(this,arguments)},Fr=function(t){function e(e){var i=t.call(this,e)||this;i.cacheMap={},i.adjustDataArray=[],i.mergeData=[];var n=e.marginRatio,r=void 0===n?.5:n,o=e.dodgeRatio,a=void 0===o?.5:o,s=e.dodgeBy,l=e.intervalPadding,h=e.dodgePadding,u=e.xDimensionLength,c=e.groupNum,p=e.defaultSize,f=e.maxColumnWidth,g=e.minColumnWidth,d=e.columnWidthRatio;return i.marginRatio=r,i.dodgeRatio=a,i.dodgeBy=s,i.intervalPadding=l,i.dodgePadding=h,i.xDimensionLegenth=u,i.groupNum=c,i.defaultSize=p,i.maxColumnWidth=f,i.minColumnWidth=g,i.columnWidthRatio=d,i}return Ir(e,t),e.prototype.process=function(t){var e=It(t),i=Z(e),n=this.dodgeBy,r=n?function(t,e){if(!e)return[t];var i=ht(t,e),n=[];for(var r in i)n.push(i[r]);return n}(i,n):e;return this.cacheMap={},this.adjustDataArray=r,this.mergeData=i,this.adjustData(r,i),this.adjustDataArray=[],this.mergeData=[],e},e.prototype.adjustDim=function(t,e,i,n){var r=this,o=this.getDistribution(t);return N(this.groupData(i,t),(function(i,a){var s;s=1===e.length?{pre:e[0]-1,next:e[0]+1}:r.getAdjustRange(t,parseFloat(a),e),N(i,(function(e){var i=e[t],a=o[i],l=a.indexOf(n);e[t]=r.getDodgeOffset(s,l,a.length)}))})),[]},e.prototype.getDodgeOffset=function(t,e,i){var n,r=this,o=r.dodgeRatio,a=r.marginRatio,s=r.intervalPadding,l=r.dodgePadding,h=t.pre,u=t.next,c=u-h;if(!z(s)&&z(l)&&s>=0)n=h+this.getIntervalOnlyOffset(i,e);else if(!z(l)&&z(s)&&l>=0){n=h+this.getDodgeOnlyOffset(i,e)}else if(!z(s)&&!z(l)&&s>=0&&l>=0){n=h+this.getIntervalAndDodgeOffset(i,e)}else{var p=c*o/i,f=a*p;n=(h+u)/2+(.5*(c-i*p-(i-1)*f)+((e+1)*p+e*f)-.5*p-.5*c)}return n},e.prototype.getIntervalOnlyOffset=function(t,e){var i=this,n=i.defaultSize,r=i.intervalPadding,o=i.xDimensionLegenth,a=i.groupNum,s=i.dodgeRatio,l=i.maxColumnWidth,h=i.minColumnWidth,u=i.columnWidthRatio,c=r/o,p=(1-(a-1)*c)/a*s/(t-1),f=((1-c*(a-1))/a-p*(t-1))/t;if(f=z(u)?f:1/a/t*u,!z(l)){var g=l/o;f=Math.min(f,g)}if(!z(h)){var d=h/o;f=Math.max(f,d)}return((.5+e)*(f=n?n/o:f)+e*(p=((1-(a-1)*c)/a-t*f)/(t-1))+.5*c)*a-c/2},e.prototype.getDodgeOnlyOffset=function(t,e){var i=this,n=i.defaultSize,r=i.dodgePadding,o=i.xDimensionLegenth,a=i.groupNum,s=i.marginRatio,l=i.maxColumnWidth,h=i.minColumnWidth,u=i.columnWidthRatio,c=r/o,p=1*s/(a-1),f=((1-p*(a-1))/a-c*(t-1))/t;if(f=u?1/a/t*u:f,!z(l)){var g=l/o;f=Math.min(f,g)}if(!z(h)){var d=h/o;f=Math.max(f,d)}return((.5+e)*(f=n?n/o:f)+e*c+.5*(p=(1-(f*t+c*(t-1))*a)/(a-1)))*a-p/2},e.prototype.getIntervalAndDodgeOffset=function(t,e){var i=this,n=i.intervalPadding,r=i.dodgePadding,o=i.xDimensionLegenth,a=i.groupNum,s=n/o,l=r/o;return((.5+e)*(((1-s*(a-1))/a-l*(t-1))/t)+e*l+.5*s)*a-s/2},e.prototype.getDistribution=function(t){var e=this.adjustDataArray,i=this.cacheMap,n=i[t];return n||(n={},N(e,(function(e,i){var r=nt(e,t);r.length||r.push(0),N(r,(function(t){n[t]||(n[t]=[]),n[t].push(i)}))})),i[t]=n),n},e}(Tr);var Or=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ir(e,t),e.prototype.process=function(t){var e=It(t),i=Z(e);return this.adjustData(e,i),e},e.prototype.adjustDim=function(t,e,i){var n=this;return N(this.groupData(i,t),(function(i,r){return n.adjustGroup(i,t,parseFloat(r),e)}))},e.prototype.getAdjustOffset=function(t){var e=t.pre,i=t.next,n=.05*(i-e);return function(t,e){return(e-t)*Math.random()+t}(e+n,i-n)},e.prototype.adjustGroup=function(t,e,i,n){var r=this,o=this.getAdjustRange(e,i,n);return N(t,(function(t){t[e]=r.getAdjustOffset(o)})),t},e}(Tr),Dr=ie,Rr=function(t){function e(e){var i=t.call(this,e)||this,n=e.adjustNames,r=void 0===n?["y"]:n,o=e.height,a=void 0===o?NaN:o,s=e.size,l=void 0===s?10:s,h=e.reverseOrder,u=void 0!==h&&h;return i.adjustNames=r,i.height=a,i.size=l,i.reverseOrder=u,i}return Ir(e,t),e.prototype.process=function(t){var e=this.yField,i=this.reverseOrder,n=e?this.processStack(t):this.processOneDimStack(t);return i?this.reverse(n):n},e.prototype.reverse=function(t){return t.slice(0).reverse()},e.prototype.processStack=function(t){var e=this,i=e.xField,n=e.yField,r=e.reverseOrder?this.reverse(t):t,o=new Dr,a=new Dr;return r.map((function(t){return t.map((function(t){var e,r=Ht(t,i,0),s=Ht(t,[n]),l=r.toString();if(s=V(s)?s[1]:s,!z(s)){var h=s>=0?o:a;h.has(l)||h.set(l,0);var u=h.get(l),c=s+u;return h.set(l,c),Er(Er({},t),((e={})[n]=[u,c],e))}return t}))}))},e.prototype.processOneDimStack=function(t){var e=this,i=this,n=i.xField,r=i.height,o=i.reverseOrder,a=o?this.reverse(t):t,s=new Dr;return a.map((function(t){return t.map((function(t){var i,o=e.size,a=t[n],l=2*o/r;s.has(a)||s.set(a,l/2);var h=s.get(a);return s.set(a,h+l),Er(Er({},t),((i={}).y=h,i))}))}))},e}(Tr),_r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ir(e,t),e.prototype.process=function(t){var e=Z(t),i=this.xField,n=this.yField,r=this.getXValuesMaxMap(e),o=Math.max.apply(Math,Object.keys(r).map((function(t){return r[t]})));return zt(t,(function(t){return zt(t,(function(t){var e,a,s=t[n],l=t[i];if(V(s)){var h=(o-r[l])/2;return Er(Er({},t),((e={})[n]=zt(s,(function(t){return h+t})),e))}var u=(o-s)/2;return Er(Er({},t),((a={})[n]=[u,s+u],a))}))}))},e.prototype.getXValuesMaxMap=function(t){var e=this,i=this.xField,n=this.yField;return function(t,e){void 0===e&&(e=Vt);var i={};return H(t)&&!z(t)&&Object.keys(t).forEach((function(n){i[n]=e(t[n],n)})),i}(lt(t,(function(t){return t[i]})),(function(t){return e.getDimMaxValue(t,n)}))},e.prototype.getDimMaxValue=function(t,e){var i=zt(t,(function(t){return Ht(t,e,[])})),n=Z(i);return Math.max.apply(Math,n)},e}(Tr);Lr("Dodge",Fr),Lr("Jitter",Or),Lr("Stack",Rr),Lr("Symmetric",_r);var Yr=function(t,e){return et(e)?e:t.invert(t.scale(e))},Gr=function(){function t(t){this.names=[],this.scales=[],this.linear=!1,this.values=[],this.callback=function(){return[]},this._parseCfg(t)}return t.prototype.mapping=function(){for(var t=this,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var n=e.map((function(e,i){return t._toOriginParam(e,t.scales[i])}));return this.callback.apply(this,n)},t.prototype.getLinearValue=function(t){var e=this.values.length-1,i=Math.floor(e*t),n=e*t-i,r=this.values[i];return r+((i===e?r:this.values[i+1])-r)*n},t.prototype.getNames=function(){for(var t=this.scales,e=this.names,i=Math.min(t.length,e.length),n=[],r=0;r<i;r+=1)n.push(e[r]);return n},t.prototype.getFields=function(){return this.scales.map((function(t){return t.field}))},t.prototype.getScale=function(t){return this.scales[this.names.indexOf(t)]},t.prototype.defaultCallback=function(){for(var t=this,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return 0===e.length?this.values:e.map((function(e,i){var n=t.scales[i];return"identity"===n.type?n.values[0]:t._getAttributeValue(n,e)}))},t.prototype._parseCfg=function(t){var e=this,i=t.type,n=void 0===i?"base":i,r=t.names,o=void 0===r?[]:r,a=t.scales,s=void 0===a?[]:a,l=t.values,h=void 0===l?[]:l,u=t.callback;this.type=n,this.scales=s,this.values=h,this.names=o,this.callback=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];if(u){var n=u.apply(void 0,t);if(!z(n))return[n]}return e.defaultCallback.apply(e,t)}},t.prototype._getAttributeValue=function(t,e){if(t.isCategory&&!this.linear){var i=t.translate(e);return this.values[i%this.values.length]}var n=t.scale(e);return this.getLinearValue(n)},t.prototype._toOriginParam=function(t,e){return e.isLinear?t:V(t)?t.map((function(t){return Yr(e,t)})):Yr(e,t)},t}(),Xr=function(t,e){return Xr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},Xr(t,e)};function zr(t,e){function i(){this.constructor=t}Xr(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var Vr=/rgba?\(([\s.,0-9]+)\)/,Hr=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,Nr=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,Wr=/[\d.]+:(#[^\s]+|[^\)]+\))/gi,jr=function(t,e,i,n){return t[n]+(e[n]-t[n])*i};function qr(t){return"#"+Qr(t[0])+Qr(t[1])+Qr(t[2])}var Ur,Zr=function(t){return[parseInt(t.substr(1,2),16),parseInt(t.substr(3,2),16),parseInt(t.substr(5,2),16)]},Qr=function(t){var e=Math.round(t).toString(16);return 1===e.length?"0"+e:e},Kr=function(t){if("#"===t[0]&&7===t.length)return t;var e;Ur||((e=document.createElement("i")).title="Web Colour Picker",e.style.display="none",document.body.appendChild(e),Ur=e),Ur.style.color=t;var i=document.defaultView.getComputedStyle(Ur,"").getPropertyValue("color");return i=qr(Vr.exec(i)[1].split(/\s*,\s*/).map((function(t){return Number(t)})))},$r={rgb2arr:Zr,gradient:function(t){var e=et(t)?t.split("-"):t,i=zt(e,(function(t){return Zr(-1===t.indexOf("#")?Kr(t):t)}));return function(t){return function(t,e){var i=isNaN(Number(e))||e<0?0:e>1?1:Number(e),n=t.length-1,r=Math.floor(n*i),o=n*i-r,a=t[r],s=r===n?a:t[r+1];return qr([jr(a,s,o,0),jr(a,s,o,1),jr(a,s,o,2)])}(i,t)}},toRGB:Ft(Kr),toCSSGradient:function(t){if(/^[r,R,L,l]{1}[\s]*\(/.test(t)){var e,i=void 0;if("l"===t[0]){var n=+(r=Hr.exec(t))[1]+90;i=r[2],e="linear-gradient("+n+"deg, "}else if("r"===t[0]){var r;e="radial-gradient(",i=(r=Nr.exec(t))[4]}var o=i.match(Wr);return N(o,(function(t,i){var n=t.split(":");e+=n[1]+" "+100*n[0]+"%",i!==o.length-1&&(e+=", ")})),e+=")"}return t}},Jr=function(t){function e(e){var i=t.call(this,e)||this;return i.type="color",i.names=["color"],et(i.values)&&(i.linear=!0),i.gradient=$r.gradient(i.values),i}return zr(e,t),e.prototype.getLinearValue=function(t){return this.gradient(t)},e}(Gr),to=function(t){function e(e){var i=t.call(this,e)||this;return i.type="opacity",i.names=["opacity"],i}return zr(e,t),e}(Gr),eo=function(t){function e(e){var i=t.call(this,e)||this;return i.names=["x","y"],i.type="position",i}return zr(e,t),e.prototype.mapping=function(t,e){var i=this.scales,n=i[0],r=i[1];return z(t)||z(e)?[]:[V(t)?t.map((function(t){return n.scale(t)})):n.scale(t),V(e)?e.map((function(t){return r.scale(t)})):r.scale(e)]},e}(Gr),io=function(t){function e(e){var i=t.call(this,e)||this;return i.type="shape",i.names=["shape"],i}return zr(e,t),e.prototype.getLinearValue=function(t){var e=Math.round((this.values.length-1)*t);return this.values[e]},e}(Gr),no=function(t){function e(e){var i=t.call(this,e)||this;return i.type="size",i.names=["size"],i}return zr(e,t),e}(Gr),ro={};function oo(t,e){ro[t]=e}var ao=function(){function t(t){this.type="base",this.isCategory=!1,this.isLinear=!1,this.isContinuous=!1,this.isIdentity=!1,this.values=[],this.range=[0,1],this.ticks=[],this.__cfg__=t,this.initCfg(),this.init()}return t.prototype.translate=function(t){return t},t.prototype.change=function(t){Pt(this.__cfg__,t),this.init()},t.prototype.clone=function(){return this.constructor(this.__cfg__)},t.prototype.getTicks=function(){var t=this;return zt(this.ticks,(function(e,i){return H(e)?e:{text:t.getText(e,i),tickValue:e,value:t.scale(e)}}))},t.prototype.getText=function(t,e){var i=this.formatter,n=i?i(t,e):t;return z(n)||!X(n.toString)?"":n.toString()},t.prototype.getConfig=function(t){return this.__cfg__[t]},t.prototype.init=function(){Pt(this,this.__cfg__),this.setDomain(),Yt(this.getConfig("ticks"))&&(this.ticks=this.calculateTicks())},t.prototype.initCfg=function(){},t.prototype.setDomain=function(){},t.prototype.calculateTicks=function(){var t=this.tickMethod,e=[];if(et(t)){var i=ro[t];if(!i)throw new Error("There is no method to to calculate ticks!");e=i(this)}else X(t)&&(e=t(this));return e},t.prototype.rangeMin=function(){return this.range[0]},t.prototype.rangeMax=function(){return this.range[1]},t.prototype.calcPercent=function(t,e,i){return pt(t)?(t-e)/(i-e):NaN},t.prototype.calcValue=function(t,e,i){return e+t*(i-e)},t}(),so=e("Scale",ao),lo=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cat",e.isCategory=!0,e}return r(e,t),e.prototype.buildIndexMap=function(){if(!this.translateIndexMap){this.translateIndexMap=new Map;for(var t=0;t<this.values.length;t++)this.translateIndexMap.set(this.values[t],t)}},e.prototype.translate=function(t){this.buildIndexMap();var e=this.translateIndexMap.get(t);return void 0===e&&(e=pt(t)?t:NaN),e},e.prototype.scale=function(t){var e=this.translate(t),i=this.calcPercent(e,this.min,this.max);return this.calcValue(i,this.rangeMin(),this.rangeMax())},e.prototype.invert=function(t){var e=this.max-this.min,i=this.calcPercent(t,this.rangeMin(),this.rangeMax()),n=Math.round(e*i)+this.min;return n<this.min||n>this.max?NaN:this.values[n]},e.prototype.getText=function(e){for(var i=[],r=1;r<arguments.length;r++)i[r-1]=arguments[r];var o=e;return pt(e)&&!this.values.includes(e)&&(o=this.values[o]),t.prototype.getText.apply(this,n([o],i))},e.prototype.initCfg=function(){this.tickMethod="cat"},e.prototype.setDomain=function(){if(z(this.getConfig("min"))&&(this.min=0),z(this.getConfig("max"))){var t=this.values.length;this.max=t>1?t-1:t}this.translateIndexMap&&(this.translateIndexMap=void 0)},e}(so),ho=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,uo="[1-9]\\d?",co="\\d\\d",po="[^\\s]+",fo=/\[([^]*?)\]/gm;function go(t,e){for(var i=[],n=0,r=t.length;n<r;n++)i.push(t[n].substr(0,e));return i}var yo=function(t){return function(e,i){var n=i[t].map((function(t){return t.toLowerCase()})),r=n.indexOf(e.toLowerCase());return r>-1?r:null}};function vo(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];for(var n=0,r=e;n<r.length;n++){var o=r[n];for(var a in o)t[a]=o[a]}return t}var mo=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],xo=["January","February","March","April","May","June","July","August","September","October","November","December"],wo=go(xo,3),Co={dayNamesShort:go(mo,3),dayNames:mo,monthNamesShort:wo,monthNames:xo,amPm:["am","pm"],DoFn:function(t){return t+["th","st","nd","rd"][t%10>3?0:(t-t%10!=10?1:0)*t%10]}},bo=vo({},Co),Mo=function(t){return bo=vo(bo,t)},So=function(t){return t.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},Ao=function(t,e){for(void 0===e&&(e=2),t=String(t);t.length<e;)t="0"+t;return t},To={D:function(t){return String(t.getDate())},DD:function(t){return Ao(t.getDate())},Do:function(t,e){return e.DoFn(t.getDate())},d:function(t){return String(t.getDay())},dd:function(t){return Ao(t.getDay())},ddd:function(t,e){return e.dayNamesShort[t.getDay()]},dddd:function(t,e){return e.dayNames[t.getDay()]},M:function(t){return String(t.getMonth()+1)},MM:function(t){return Ao(t.getMonth()+1)},MMM:function(t,e){return e.monthNamesShort[t.getMonth()]},MMMM:function(t,e){return e.monthNames[t.getMonth()]},YY:function(t){return Ao(String(t.getFullYear()),4).substr(2)},YYYY:function(t){return Ao(t.getFullYear(),4)},h:function(t){return String(t.getHours()%12||12)},hh:function(t){return Ao(t.getHours()%12||12)},H:function(t){return String(t.getHours())},HH:function(t){return Ao(t.getHours())},m:function(t){return String(t.getMinutes())},mm:function(t){return Ao(t.getMinutes())},s:function(t){return String(t.getSeconds())},ss:function(t){return Ao(t.getSeconds())},S:function(t){return String(Math.round(t.getMilliseconds()/100))},SS:function(t){return Ao(Math.round(t.getMilliseconds()/10),2)},SSS:function(t){return Ao(t.getMilliseconds(),3)},a:function(t,e){return t.getHours()<12?e.amPm[0]:e.amPm[1]},A:function(t,e){return t.getHours()<12?e.amPm[0].toUpperCase():e.amPm[1].toUpperCase()},ZZ:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+Ao(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)},Z:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+Ao(Math.floor(Math.abs(e)/60),2)+":"+Ao(Math.abs(e)%60,2)}},Bo=function(t){return+t-1},ko=[null,uo],Lo=[null,po],Po=["isPm",po,function(t,e){var i=t.toLowerCase();return i===e.amPm[0]?0:i===e.amPm[1]?1:null}],Io=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(t){var e=(t+"").match(/([+-]|\d\d)/gi);if(e){var i=60*+e[1]+parseInt(e[2],10);return"+"===e[0]?i:-i}return 0}],Eo={D:["day",uo],DD:["day",co],Do:["day",uo+po,function(t){return parseInt(t,10)}],M:["month",uo,Bo],MM:["month",co,Bo],YY:["year",co,function(t){var e=+(""+(new Date).getFullYear()).substr(0,2);return+(""+(+t>68?e-1:e)+t)}],h:["hour",uo,void 0,"isPm"],hh:["hour",co,void 0,"isPm"],H:["hour",uo],HH:["hour",co],m:["minute",uo],mm:["minute",co],s:["second",uo],ss:["second",co],YYYY:["year","\\d{4}"],S:["millisecond","\\d",function(t){return 100*+t}],SS:["millisecond",co,function(t){return 10*+t}],SSS:["millisecond","\\d{3}"],d:ko,dd:ko,ddd:Lo,dddd:Lo,MMM:["month",po,yo("monthNamesShort")],MMMM:["month",po,yo("monthNames")],a:Po,A:Po,ZZ:Io,Z:Io},Fo={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},Oo=function(t){return vo(Fo,t)},Do=function(t,e,i){if(void 0===e&&(e=Fo.default),void 0===i&&(i={}),"number"==typeof t&&(t=new Date(t)),"[object Date]"!==Object.prototype.toString.call(t)||isNaN(t.getTime()))throw new Error("Invalid Date pass to format");var n=[];e=(e=Fo[e]||e).replace(fo,(function(t,e){return n.push(e),"@@@"}));var r=vo(vo({},bo),i);return(e=e.replace(ho,(function(e){return To[e](t,r)}))).replace(/@@@/g,(function(){return n.shift()}))};function Ro(t,e,i){if(void 0===i&&(i={}),"string"!=typeof e)throw new Error("Invalid format in fecha parse");if(e=Fo[e]||e,t.length>1e3)return null;var n={year:(new Date).getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},r=[],o=[],a=e.replace(fo,(function(t,e){return o.push(So(e)),"@@@"})),s={},l={};a=So(a).replace(ho,(function(t){var e=Eo[t],i=e[0],n=e[1],o=e[3];if(s[i])throw new Error("Invalid format. "+i+" specified twice in format");return s[i]=!0,o&&(l[o]=!0),r.push(e),"("+n+")"})),Object.keys(l).forEach((function(t){if(!s[t])throw new Error("Invalid format. "+t+" is required in specified format")})),a=a.replace(/@@@/g,(function(){return o.shift()}));var h=t.match(new RegExp(a,"i"));if(!h)return null;for(var u=vo(vo({},bo),i),c=1;c<h.length;c++){var p=r[c-1],f=p[0],g=p[2],d=g?g(h[c],u):+h[c];if(null==d)return null;n[f]=d}1===n.isPm&&null!=n.hour&&12!=+n.hour?n.hour=+n.hour+12:0===n.isPm&&12==+n.hour&&(n.hour=0);for(var y=new Date(n.year,n.month,n.day,n.hour,n.minute,n.second,n.millisecond),v=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],m=(c=0,v.length);c<m;c++)if(s[v[c][0]]&&n[v[c][0]]!==y[v[c][1]]())return null;return null==n.timezoneOffset?y:new Date(Date.UTC(n.year,n.month,n.day,n.hour,n.minute-n.timezoneOffset,n.second,n.millisecond))}var _o={format:Do,parse:Ro,defaultI18n:Co,setGlobalDateI18n:Mo,setGlobalDateMasks:Oo},Yo=Object.freeze(Object.defineProperty({__proto__:null,assign:vo,default:_o,defaultI18n:Co,format:Do,parse:Ro,setGlobalDateI18n:Mo,setGlobalDateMasks:Oo},Symbol.toStringTag,{value:"Module"}));var Go="format";function Xo(t,e){return(Yo[Go]||_o[Go])(t,e)}function zo(t){return et(t)&&(t=t.indexOf("T")>0?new Date(t).getTime():new Date(t.replace(/-/gi,"/")).getTime()),At(t)&&(t=t.getTime()),t}var Vo=1e3,Ho=6e4,No=36e5,Wo=24*No,jo=31*Wo,qo=365*Wo,Uo=[["HH:mm:ss",Vo],["HH:mm:ss",1e4],["HH:mm:ss",3e4],["HH:mm",Ho],["HH:mm",6e5],["HH:mm",18e5],["HH",No],["HH",6*No],["HH",12*No],["YYYY-MM-DD",Wo],["YYYY-MM-DD",4*Wo],["YYYY-WW",7*Wo],["YYYY-MM",jo],["YYYY-MM",4*jo],["YYYY-MM",6*jo],["YYYY",380*Wo]];function Zo(t,e,i){var n,r=(n=function(t){return t[1]},function(t,e,i,r){for(var o=z(i)?0:i,a=z(r)?t.length:r;o<a;){var s=o+a>>>1;n(t[s])>e?a=s:o=s+1}return o})(Uo,(e-t)/i)-1,o=Uo[r];return r<0?o=Uo[0]:r>=Uo.length&&(o=ot(Uo)),o}var Qo=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="timeCat",e}return r(e,t),e.prototype.translate=function(t){t=zo(t);var e=this.values.indexOf(t);return-1===e&&(e=pt(t)&&t<this.values.length?t:NaN),e},e.prototype.getText=function(t,e){var i=this.translate(t);if(i>-1){var n=this.values[i],r=this.formatter;return n=r?r(n,e):Xo(n,this.mask)}return t},e.prototype.initCfg=function(){this.tickMethod="time-cat",this.mask="YYYY-MM-DD",this.tickCount=7},e.prototype.setDomain=function(){var e=this.values;N(e,(function(t,i){e[i]=zo(t)})),e.sort((function(t,e){return t-e})),t.prototype.setDomain.call(this)},e}(lo),Ko=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isContinuous=!0,e}return r(e,t),e.prototype.scale=function(t){if(z(t))return NaN;var e=this.rangeMin(),i=this.rangeMax();return this.max===this.min?e:e+this.getScalePercent(t)*(i-e)},e.prototype.init=function(){t.prototype.init.call(this);var e=this.ticks,i=rt(e),n=ot(e);i<this.min&&(this.min=i),n>this.max&&(this.max=n),z(this.minLimit)||(this.min=i),z(this.maxLimit)||(this.max=n)},e.prototype.setDomain=function(){var t=function(t){var e=t.filter((function(t){return!isNaN(t)}));if(!e.length)return{min:0,max:0};if(V(t[0])){for(var i=[],n=0;n<t.length;n++)i=i.concat(t[n]);e=i}var r=Q(e);return{min:K(e),max:r}}(this.values),e=t.min,i=t.max;z(this.min)&&(this.min=e),z(this.max)&&(this.max=i),this.min>this.max&&(this.min=e,this.max=i)},e.prototype.calculateTicks=function(){var e=this,i=t.prototype.calculateTicks.call(this);return this.nice||(i=_(i,(function(t){return t>=e.min&&t<=e.max}))),i},e.prototype.getScalePercent=function(t){var e=this.max,i=this.min;return(t-i)/(e-i)},e.prototype.getInvertPercent=function(t){return(t-this.rangeMin())/(this.rangeMax()-this.rangeMin())},e}(so),$o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="linear",e.isLinear=!0,e}return r(e,t),e.prototype.invert=function(t){var e=this.getInvertPercent(t);return this.min+e*(this.max-this.min)},e.prototype.initCfg=function(){this.tickMethod="wilkinson-extended",this.nice=!1},e}(Ko);function Jo(t,e){var i=Math.E;return e>=0?Math.pow(i,Math.log(e)/t):-1*Math.pow(i,Math.log(-e)/t)}function ta(t,e){return 1===t?1:Math.log(e)/Math.log(t)}function ea(t,e,i){z(i)&&(i=Math.max.apply(null,t));var n=i;return N(t,(function(t){t>0&&t<n&&(n=t)})),n===i&&(n=i/e),n>1&&(n=1),n}var ia=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e}return r(e,t),e.prototype.invert=function(t){var e,i=this.base,n=ta(i,this.max),r=this.rangeMin(),o=this.rangeMax()-r,a=this.positiveMin;if(a){if(0===t)return 0;var s=1/(n-(e=ta(i,a/i)))*o;if(t<s)return t/s*a}else e=ta(i,this.min);var l=(t-r)/o*(n-e)+e;return Math.pow(i,l)},e.prototype.initCfg=function(){this.tickMethod="log",this.base=10,this.tickCount=6,this.nice=!0},e.prototype.setDomain=function(){t.prototype.setDomain.call(this);var e=this.min;if(e<0)throw new Error("When you use log scale, the minimum value must be greater than zero!");0===e&&(this.positiveMin=ea(this.values,this.base,this.max))},e.prototype.getScalePercent=function(t){var e=this.max,i=this.min;if(e===i)return 0;if(t<=0)return 0;var n=this.base,r=this.positiveMin;return r&&(i=1*r/n),t<r?t/r/(ta(n,e)-ta(n,i)):(ta(n,t)-ta(n,i))/(ta(n,e)-ta(n,i))},e}(Ko),na=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="pow",e}return r(e,t),e.prototype.invert=function(t){var e=this.getInvertPercent(t),i=this.exponent,n=Jo(i,this.max),r=Jo(i,this.min),o=e*(n-r)+r,a=o>=0?1:-1;return Math.pow(o,i)*a},e.prototype.initCfg=function(){this.tickMethod="pow",this.exponent=2,this.tickCount=5,this.nice=!0},e.prototype.getScalePercent=function(t){var e=this.max,i=this.min;if(e===i)return 0;var n=this.exponent;return(Jo(n,t)-Jo(n,i))/(Jo(n,e)-Jo(n,i))},e}(Ko),ra=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="time",e}return r(e,t),e.prototype.getText=function(t,e){var i=this.translate(t),n=this.formatter;return n?n(i,e):Xo(i,this.mask)},e.prototype.scale=function(e){var i=e;return(et(i)||At(i))&&(i=this.translate(i)),t.prototype.scale.call(this,i)},e.prototype.translate=function(t){return zo(t)},e.prototype.initCfg=function(){this.tickMethod="time-pretty",this.mask="YYYY-MM-DD",this.tickCount=7,this.nice=!1},e.prototype.setDomain=function(){var t=this.values,e=this.getConfig("min"),i=this.getConfig("max");if(z(e)&&pt(e)||(this.min=this.translate(this.min)),z(i)&&pt(i)||(this.max=this.translate(this.max)),t&&t.length){var n=[],r=1/0,o=r,a=0;N(t,(function(t){var e=zo(t);if(isNaN(e))throw new TypeError("Invalid Time: "+t+" in time scale!");r>e?(o=r,r=e):o>e&&(o=e),a<e&&(a=e),n.push(e)})),t.length>1&&(this.minTickInterval=o-r),z(e)&&(this.min=r),z(i)&&(this.max=a)}},e}($o),oa=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantize",e}return r(e,t),e.prototype.invert=function(t){var e=this.ticks,i=e.length,n=this.getInvertPercent(t),r=Math.floor(n*(i-1));if(r>=i-1)return ot(e);if(r<0)return rt(e);var o=e[r],a=r/(i-1);return o+(n-a)/((r+1)/(i-1)-a)*(e[r+1]-o)},e.prototype.initCfg=function(){this.tickMethod="r-pretty",this.tickCount=5,this.nice=!0},e.prototype.calculateTicks=function(){var e=t.prototype.calculateTicks.call(this);return this.nice||(ot(e)!==this.max&&e.push(this.max),rt(e)!==this.min&&e.unshift(this.min)),e},e.prototype.getScalePercent=function(t){var e=this.ticks;if(t<rt(e))return 0;if(t>ot(e))return 1;var i=0;return N(e,(function(e,n){if(!(t>=e))return!1;i=n})),i/(e.length-1)},e}(Ko),aa=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantile",e}return r(e,t),e.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0},e}(oa),sa={};function la(t){return sa[t]}function ha(t,e){if(la(t))throw new Error("type '"+t+"' existed.");sa[t]=e}var ua=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="identity",e.isIdentity=!0,e}return r(e,t),e.prototype.calculateTicks=function(){return this.values},e.prototype.scale=function(t){return this.values[0]!==t&&pt(t)?t:this.range[0]},e.prototype.invert=function(t){var e=this.range;return t<e[0]||t>e[1]?NaN:this.values[0]},e}(so);function ca(t){return Math.abs(t)<1e-15?t:parseFloat(t.toFixed(15))}var pa=[1,5,2,2.5,4,3],fa=100*Number.EPSILON;function ga(t,e,i,n,r,o){var a=Kt(e),s=Rt(e,t),l=0,h=function(t,e){return(t%e+e)%e}(n,o);return(h<fa||o-h<fa)&&n<=0&&r>=0&&(l=1),1-s/(a-1)-i+l}function da(t,e,i){var n=Kt(e);return 1-Rt(e,t)/(n-1)-i+1}function ya(t,e,i,n,r,o){var a=(t-1)/(o-r),s=(e-1)/(Math.max(o,n)-Math.min(i,r));return 2-Math.max(a/s,s/a)}function va(t,e){return t>=e?2-(t-1)/(e-1):1}function ma(t,e,i,n){var r=e-t;return 1-.5*(Math.pow(e-n,2)+Math.pow(t-i,2))/Math.pow(.1*r,2)}function xa(t,e,i){var n=e-t;if(i>n){var r=(i-n)/2;return 1-Math.pow(r,2)/Math.pow(.1*n,2)}return 1}function wa(t,e,i,n,r,o){void 0===i&&(i=5),void 0===n&&(n=!0),void 0===r&&(r=pa),void 0===o&&(o=[.25,.2,.5,.05]);var a=i<0?0:Math.round(i);if(Number.isNaN(t)||Number.isNaN(e)||"number"!=typeof t||"number"!=typeof e||!a)return{min:0,max:0,ticks:[]};if(e-t<1e-15||1===a)return{min:t,max:e,ticks:[t]};for(var s={score:-2,lmin:0,lmax:0,lstep:0},l=1;l<1/0;){for(var h=0;h<r.length;h+=1){var u=r[h],c=da(u,r,l);if(o[0]*c+o[1]+o[2]+o[3]<s.score){l=1/0;break}for(var p=2;p<1/0;){var f=va(p,a);if(o[0]*c+o[1]+o[2]*f+o[3]<s.score)break;for(var g=(e-t)/(p+1)/l/u,d=Math.ceil(Math.log10(g));d<1/0;){var y=l*u*Math.pow(10,d),v=xa(t,e,y*(p-1));if(o[0]*c+o[1]*v+o[2]*f+o[3]<s.score)break;var m=Math.floor(e/y)*l-(p-1)*l,x=Math.ceil(t/y)*l;if(m<=x)for(var w=x-m,C=0;C<=w;C+=1){var b=(m+C)*(y/l),M=b+y*(p-1),S=y,A=ga(u,r,l,b,M,S),T=ma(t,e,b,M),B=ya(p,a,t,e,b,M),k=o[0]*A+o[1]*T+o[2]*B+1*o[3];k>s.score&&(!n||b<=t&&M>=e)&&(s.lmin=b,s.lmax=M,s.lstep=S,s.score=k)}d+=1}p+=1}}l+=1}var L=ca(s.lmax),P=ca(s.lmin),I=ca(s.lstep),E=Math.floor(function(t){return Math.round(1e12*t)/1e12}((L-P)/I))+1,F=new Array(E);F[0]=ca(P);for(h=1;h<E;h++)F[h]=ca(F[h-1]+I);return{min:Math.min(t,rt(F)),max:Math.max(e,ot(F)),ticks:F}}function Ca(t){var e=t.values,i=t.tickInterval,n=t.tickCount,r=e;if(pt(i))return _(r,(function(t,e){return e%i==0}));var o=t.min,a=t.max;if(z(o)&&(o=0),z(a)&&(a=e.length-1),pt(n)&&n<a-o){var s=wa(o,a,n,!1,[1,2,5,3,4,7,6,8,9]).ticks;return _(s,(function(t){return t>=o&&t<=a})).map((function(t){return e[t]}))}return e.slice(o,a+1)}var ba=Math.sqrt(50),Ma=Math.sqrt(10),Sa=Math.sqrt(2),Aa=function(){function t(){this._domain=[0,1]}return t.prototype.domain=function(t){return t?(this._domain=Array.from(t,Number),this):this._domain.slice()},t.prototype.nice=function(t){var e,i;void 0===t&&(t=5);var n,r=this._domain.slice(),o=0,a=this._domain.length-1,s=this._domain[o],l=this._domain[a];return l<s&&(s=(e=[l,s])[0],l=e[1],o=(i=[a,o])[0],a=i[1]),(n=Ta(s,l,t))>0?n=Ta(s=Math.floor(s/n)*n,l=Math.ceil(l/n)*n,t):n<0&&(n=Ta(s=Math.ceil(s*n)/n,l=Math.floor(l*n)/n,t)),n>0?(r[o]=Math.floor(s/n)*n,r[a]=Math.ceil(l/n)*n,this.domain(r)):n<0&&(r[o]=Math.ceil(s*n)/n,r[a]=Math.floor(l*n)/n,this.domain(r)),this},t.prototype.ticks=function(t){return void 0===t&&(t=5),function(t,e,i){var n,r,o,a,s=-1;if(i=+i,(t=+t)===(e=+e)&&i>0)return[t];(n=e<t)&&(r=t,t=e,e=r);if(0===(a=Ta(t,e,i))||!isFinite(a))return[];if(a>0)for(t=Math.ceil(t/a),e=Math.floor(e/a),o=new Array(r=Math.ceil(e-t+1));++s<r;)o[s]=(t+s)*a;else for(t=Math.floor(t*a),e=Math.ceil(e*a),o=new Array(r=Math.ceil(t-e+1));++s<r;)o[s]=(t-s)/a;n&&o.reverse();return o}(this._domain[0],this._domain[this._domain.length-1],t||5)},t}();function Ta(t,e,i){var n=(e-t)/Math.max(0,i),r=Math.floor(Math.log(n)/Math.LN10),o=n/Math.pow(10,r);return r>=0?(o>=ba?10:o>=Ma?5:o>=Sa?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(o>=ba?10:o>=Ma?5:o>=Sa?2:1)}function Ba(t,e,i){return("ceil"===i?Math.ceil(t/e):"floor"===i?Math.floor(t/e):Math.round(t/e))*e}function ka(t,e,i){var n=Ba(t,i,"floor"),r=Ba(e,i,"ceil");n=ct(n,i),r=ct(r,i);for(var o=[],a=Math.max((r-n)/(Math.pow(2,12)-1),i),s=n;s<=r;s+=a){var l=ct(s,a);o.push(l)}return{min:n,max:r,ticks:o}}function La(t,e,i){var n,r=t.minLimit,o=t.maxLimit,a=t.min,s=t.max,l=t.tickCount,h=void 0===l?5:l,u=z(r)?z(e)?a:e:r,c=z(o)?z(i)?s:i:o;if(u>c&&(c=(n=[u,c])[0],u=n[1]),h<=2)return[u,c];for(var p=(c-u)/(h-1),f=[],g=0;g<h;g++)f.push(u+p*g);return f}function Pa(t,e,i){if(void 0===i&&(i=5),t===e)return{max:e,min:t,ticks:[t]};var n=i<0?0:Math.round(i);if(0===n)return{max:e,min:t,ticks:[]};var r=(e-t)/n,o=Math.pow(10,Math.floor(Math.log10(r))),a=o;2*o-r<1.5*(r-a)&&5*o-r<2.75*(r-(a=2*o))&&10*o-r<1.5*(r-(a=5*o))&&(a=10*o);for(var s=Math.ceil(e/a),l=Math.floor(t/a),h=Math.max(s*a,e),u=Math.min(l*a,t),c=Math.floor((h-u)/a)+1,p=new Array(c),f=0;f<c;f++)p[f]=ca(u+f*a);return{min:u,max:h,ticks:p}}function Ia(t,e){var i=t.length*e;return 1===e?t[t.length-1]:0===e?t[0]:i%1!=0?t[Math.ceil(i)-1]:t.length%2==0?(t[i-1]+t[i])/2:t[i]}function Ea(t){return new Date(t).getFullYear()}function Fa(t){return new Date(t,0,1).getTime()}function Oa(t){return new Date(t).getMonth()}function Da(t,e){return new Date(t,e,1).getTime()}oo("cat",Ca),oo("time-cat",(function(t){var e=Ca(t),i=ot(t.values);return i!==ot(e)&&e.push(i),e})),oo("wilkinson-extended",(function(t){var e=t.min,i=t.max,n=t.tickCount,r=t.nice,o=t.tickInterval,a=t.minLimit,s=t.maxLimit,l=wa(e,i,n,r).ticks;return z(a)&&z(s)?o?ka(e,i,o).ticks:l:La(t,rt(l),ot(l))})),oo("r-pretty",(function(t){var e=t.min,i=t.max,n=t.tickCount,r=t.tickInterval,o=t.minLimit,a=t.maxLimit,s=Pa(e,i,n).ticks;return z(o)&&z(a)?r?ka(e,i,r).ticks:s:La(t,rt(s),ot(s))})),oo("time",(function(t){var e=t.min,i=t.max,n=t.minTickInterval,r=t.tickInterval,o=t.tickCount;if(r)o=Math.ceil((i-e)/r);else{var a=(i-e)/(r=Zo(e,i,o)[1])/o;a>1&&(r*=Math.ceil(a)),n&&r<n&&(r=n)}r=Math.max(Math.floor((i-e)/(Math.pow(2,12)-1)),r);for(var s=[],l=e;l<i+r;l+=r)s.push(l);return s})),oo("time-pretty",(function(t){var e=t.min,i=t.max,n=t.minTickInterval,r=t.tickCount,o=t.tickInterval,a=[];o||(o=(i-e)/r,n&&o<n&&(o=n)),o=Math.max(Math.floor((i-e)/(Math.pow(2,12)-1)),o);var s=Ea(e);if(o>qo)for(var l=Ea(i),h=Math.ceil(o/qo),u=s;u<=l+h;u+=h)a.push(Fa(u));else if(o>jo){var c=Math.ceil(o/jo),p=Oa(e),f=function(t,e){var i=Ea(t),n=Ea(e),r=Oa(t);return 12*(n-i)+(Oa(e)-r)%12}(e,i);for(u=0;u<=f+c;u+=c)a.push(Da(s,u+p))}else if(o>Wo){var g=(x=new Date(e)).getFullYear(),d=x.getMonth(),y=x.getDate(),v=Math.ceil(o/Wo),m=function(t,e){return Math.ceil((e-t)/Wo)}(e,i);for(u=0;u<m+v;u+=v)a.push(new Date(g,d,y+u).getTime())}else if(o>No){g=(x=new Date(e)).getFullYear(),d=x.getMonth(),v=x.getDate();var x,w=x.getHours(),C=Math.ceil(o/No),b=function(t,e){return Math.ceil((e-t)/No)}(e,i);for(u=0;u<=b+C;u+=C)a.push(new Date(g,d,v,w+u).getTime())}else if(o>Ho){var M=function(t,e){return Math.ceil((e-t)/6e4)}(e,i),S=Math.ceil(o/Ho);for(u=0;u<=M+S;u+=S)a.push(e+u*Ho)}else{var A=o;A<Vo&&(A=Vo);var T=Math.floor(e/Vo)*Vo,B=Math.ceil((i-e)/Vo),k=Math.ceil(A/Vo);for(u=0;u<B+k;u+=k)a.push(T+u*Vo)}return a.length>=512&&console.warn("Notice: current ticks length("+a.length+') >= 512, may cause performance issues, even out of memory. Because of the configure "tickInterval"(in milliseconds, current is '+o+") is too small, increase the value to solve the problem!"),a})),oo("log",(function(t){var e,i=t.base,n=t.tickCount,r=t.min,o=t.max,a=t.values,s=ta(i,o);if(r>0)e=Math.floor(ta(i,r));else{var l=ea(a,i,o);e=Math.floor(ta(i,l))}for(var h=s-e,u=Math.ceil(h/n),c=[],p=e;p<s+u;p+=u)c.push(Math.pow(i,p));return r<=0&&c.unshift(0),c})),oo("pow",(function(t){var e=t.exponent,i=t.tickCount,n=Math.ceil(Jo(e,t.max));return Pa(Math.floor(Jo(e,t.min)),n,i).ticks.map((function(t){var i=t>=0?1:-1;return Math.pow(t,e)*i}))})),oo("quantile",(function(t){var e=t.tickCount,i=t.values;if(!i||!i.length)return[];for(var n=i.slice().sort((function(t,e){return t-e})),r=[],o=0;o<e;o++){var a=o/(e-1);r.push(Ia(n,a))}return r})),oo("d3-linear",(function(t){var e=t.min,i=t.max,n=t.tickInterval,r=t.minLimit,o=t.maxLimit,a=function(t){var e=t.min,i=t.max,n=t.nice,r=t.tickCount,o=new Aa;return o.domain([e,i]),n&&o.nice(r),o.ticks(r)}(t);return z(r)&&z(o)?n?ka(e,i,n).ticks:a:La(t,rt(a),ot(a))})),ha("cat",lo),ha("category",lo),ha("identity",ua),ha("linear",$o),ha("log",ia),ha("pow",na),ha("time",ra),ha("timeCat",Qo),ha("quantize",oa),ha("quantile",aa);var Ra={},_a=function(t){return Ra[t.toLowerCase()]},Ya=function(t,e){if(_a(t))throw new Error("Attribute type '"+t+"' existed.");Ra[t.toLowerCase()]=e};Ya("Color",Jr),Ya("Opacity",to),Ya("Position",eo),Ya("Shape",io),Ya("Size",no);var Ga=function(){function t(t){this.type="coordinate",this.isRect=!1,this.isHelix=!1,this.isPolar=!1,this.isReflectX=!1,this.isReflectY=!1;var e=t.start,i=t.end,n=t.matrix,r=void 0===n?[1,0,0,0,1,0,0,0,1]:n,o=t.isTransposed,a=void 0!==o&&o;this.start=e,this.end=i,this.matrix=r,this.originalMatrix=s([],r),this.isTransposed=a}return t.prototype.initial=function(){this.center={x:(this.start.x+this.end.x)/2,y:(this.start.y+this.end.y)/2},this.width=Math.abs(this.end.x-this.start.x),this.height=Math.abs(this.end.y-this.start.y)},t.prototype.update=function(t){Pt(this,t),this.initial()},t.prototype.convertDim=function(t,e){var i,n=this[e],r=n.start,o=n.end;return this.isReflect(e)&&(r=(i=[o,r])[0],o=i[1]),r+t*(o-r)},t.prototype.invertDim=function(t,e){var i,n=this[e],r=n.start,o=n.end;return this.isReflect(e)&&(r=(i=[o,r])[0],o=i[1]),(t-r)/(o-r)},t.prototype.applyMatrix=function(t,e,i){void 0===i&&(i=0);var n=[t,e,i];return Bi(n,n,this.matrix),n},t.prototype.invertMatrix=function(t,e,i){void 0===i&&(i=0);var n=function(t,e){var i=e[0],n=e[1],r=e[2],o=e[3],a=e[4],s=e[5],l=e[6],h=e[7],u=e[8],c=u*a-s*h,p=-u*o+s*l,f=h*o-a*l,g=i*c+n*p+r*f;return g?(g=1/g,t[0]=c*g,t[1]=(-u*n+r*h)*g,t[2]=(s*n-r*a)*g,t[3]=p*g,t[4]=(u*i-r*l)*g,t[5]=(-s*i+r*o)*g,t[6]=f*g,t[7]=(-h*i+n*l)*g,t[8]=(a*i-n*o)*g,t):null}([0,0,0,0,0,0,0,0,0],this.matrix),r=[t,e,i];return n&&Bi(r,r,n),r},t.prototype.convert=function(t){var e=this.convertPoint(t),i=e.x,n=e.y,r=this.applyMatrix(i,n,1);return{x:r[0],y:r[1]}},t.prototype.invert=function(t){var e=this.invertMatrix(t.x,t.y,1);return this.invertPoint({x:e[0],y:e[1]})},t.prototype.rotate=function(t){var e=this.matrix,i=this.center;return Gi(e,e,[-i.x,-i.y]),Xi(e,e,t),Gi(e,e,[i.x,i.y]),this},t.prototype.reflect=function(t){return"x"===t?this.isReflectX=!this.isReflectX:this.isReflectY=!this.isReflectY,this},t.prototype.scale=function(t,e){var i=this.matrix,n=this.center;return Gi(i,i,[-n.x,-n.y]),zi(i,i,[t,e]),Gi(i,i,[n.x,n.y]),this},t.prototype.translate=function(t,e){var i=this.matrix;return Gi(i,i,[t,e]),this},t.prototype.transpose=function(){return this.isTransposed=!this.isTransposed,this},t.prototype.getCenter=function(){return this.center},t.prototype.getWidth=function(){return this.width},t.prototype.getHeight=function(){return this.height},t.prototype.getRadius=function(){return this.radius},t.prototype.isReflect=function(t){return"x"===t?this.isReflectX:this.isReflectY},t.prototype.resetMatrix=function(t){this.matrix=t||s([],this.originalMatrix)},t}(),Xa=e("Coordinate",Ga),za=function(t){function e(e){var i=t.call(this,e)||this;return i.isRect=!0,i.type="cartesian",i.initial(),i}return r(e,t),e.prototype.initial=function(){t.prototype.initial.call(this);var e=this.start,i=this.end;this.x={start:e.x,end:i.x},this.y={start:e.y,end:i.y}},e.prototype.convertPoint=function(t){var e,i=t.x,n=t.y;return this.isTransposed&&(i=(e=[n,i])[0],n=e[1]),{x:this.convertDim(i,"x"),y:this.convertDim(n,"y")}},e.prototype.invertPoint=function(t){var e,i=this.invertDim(t.x,"x"),n=this.invertDim(t.y,"y");return this.isTransposed&&(i=(e=[n,i])[0],n=e[1]),{x:i,y:n}},e}(Xa),Va=function(t){function e(e){var i=t.call(this,e)||this;i.isHelix=!0,i.type="helix";var n=e.startAngle,r=void 0===n?1.25*Math.PI:n,o=e.endAngle,a=void 0===o?7.25*Math.PI:o,s=e.innerRadius,l=void 0===s?0:s,h=e.radius;return i.startAngle=r,i.endAngle=a,i.innerRadius=l,i.radius=h,i.initial(),i}return r(e,t),e.prototype.initial=function(){t.prototype.initial.call(this);var e=(this.endAngle-this.startAngle)/(2*Math.PI)+1,i=Math.min(this.width,this.height)/2;this.radius&&this.radius>=0&&this.radius<=1&&(i*=this.radius),this.d=Math.floor(i*(1-this.innerRadius)/e),this.a=this.d/(2*Math.PI),this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*i,end:this.innerRadius*i+.99*this.d}},e.prototype.convertPoint=function(t){var e,i=t.x,n=t.y;this.isTransposed&&(i=(e=[n,i])[0],n=e[1]);var r=this.convertDim(i,"x"),o=this.a*r,a=this.convertDim(n,"y");return{x:this.center.x+Math.cos(r)*(o+a),y:this.center.y+Math.sin(r)*(o+a)}},e.prototype.invertPoint=function(t){var e,i=this.d+this.y.start,n=Li([0,0],[t.x,t.y],[this.center.x,this.center.y]),r=Ni(n,[1,0],!0),o=r*this.a;Oi(n)<o&&(o=Oi(n)),r=2*Math.floor((Oi(n)-o)/i)*Math.PI+r;var a=this.a*r,s=Oi(n)-a;s=ft(s,0)?0:s;var l=this.invertDim(r,"x"),h=this.invertDim(s,"y");return l=ft(l,0)?0:l,h=ft(h,0)?0:h,this.isTransposed&&(l=(e=[h,l])[0],h=e[1]),{x:l,y:h}},e}(Xa),Ha=function(t){function e(e){var i=t.call(this,e)||this;i.isPolar=!0,i.type="polar";var n=e.startAngle,r=void 0===n?-Math.PI/2:n,o=e.endAngle,a=void 0===o?3*Math.PI/2:o,s=e.innerRadius,l=void 0===s?0:s,h=e.radius;return i.startAngle=r,i.endAngle=a,i.innerRadius=l,i.radius=h,i.initial(),i}return r(e,t),e.prototype.initial=function(){for(t.prototype.initial.call(this);this.endAngle<this.startAngle;)this.endAngle+=2*Math.PI;var e,i=this.getOneBox(),n=i.maxX-i.minX,r=i.maxY-i.minY,o=Math.abs(i.minX)/n,a=Math.abs(i.minY)/r;this.height/r>this.width/n?(e=this.width/n,this.circleCenter={x:this.center.x-(.5-o)*this.width,y:this.center.y-(.5-a)*e*r}):(e=this.height/r,this.circleCenter={x:this.center.x-(.5-o)*e*n,y:this.center.y-(.5-a)*this.height}),this.polarRadius=this.radius,this.radius?this.radius>0&&this.radius<=1?this.polarRadius=e*this.radius:(this.radius<=0||this.radius>e)&&(this.polarRadius=e):this.polarRadius=e,this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*this.polarRadius,end:this.polarRadius}},e.prototype.getRadius=function(){return this.polarRadius},e.prototype.convertPoint=function(t){var e,i=this.getCenter(),n=t.x,r=t.y;return this.isTransposed&&(n=(e=[r,n])[0],r=e[1]),n=this.convertDim(n,"x"),r=this.convertDim(r,"y"),{x:i.x+Math.cos(n)*r,y:i.y+Math.sin(n)*r}},e.prototype.invertPoint=function(t){var e,i=this.getCenter(),n=[t.x-i.x,t.y-i.y],r=this.startAngle,o=this.endAngle;this.isReflect("x")&&(r=(e=[o,r])[0],o=e[1]);var a=[1,0,0,0,1,0,0,0,1];Xi(a,a,r);var s=[1,0,0];Bi(s,s,a);var l=Ni([s[0],s[1]],n,o<r);ft(l,2*Math.PI)&&(l=0);var h=Oi(n),u=l/(o-r);u=o-r>0?u:-u;var c=this.invertDim(h,"y"),p={x:0,y:0};return p.x=this.isTransposed?c:u,p.y=this.isTransposed?u:c,p},e.prototype.getCenter=function(){return this.circleCenter},e.prototype.getOneBox=function(){var t=this.startAngle,e=this.endAngle;if(Math.abs(e-t)>=2*Math.PI)return{minX:-1,maxX:1,minY:-1,maxY:1};for(var i=[0,Math.cos(t),Math.cos(e)],n=[0,Math.sin(t),Math.sin(e)],r=Math.min(t,e);r<Math.max(t,e);r+=Math.PI/18)i.push(Math.cos(r)),n.push(Math.sin(r));return{minX:Math.min.apply(Math,i),maxX:Math.max.apply(Math,i),minY:Math.min.apply(Math,n),maxY:Math.max.apply(Math,n)}},e}(Xa),Na={},Wa=function(t,e){Na[t.toLowerCase()]=e};function ja(t,e,i){var n=new si(e,i);n.target=t,n.propagationPath.push(t),t.emitDelegation(e,n);for(var r=t.getParent();r;)r.emitDelegation(e,n),n.propagationPath.push(r),r=r.getParent()}Wa("rect",za),Wa("cartesian",za),Wa("polar",Ha),Wa("helix",Va);var qa=[1,0,0,0,1,0,0,0,1];function Ua(t,e,i){return void 0===i&&(i=qa),e?Hi(i,[["t",-t.x,-t.y],["r",e],["t",t.x,t.y]]):null}function Za(t,e){return t.x||t.y?Hi(e||qa,[["t",t.x,t.y]]):null}function Qa(t,e){var i=[0,0];return function(t,e,i){var n=e[0],r=e[1];t[0]=i[0]*n+i[3]*r+i[6],t[1]=i[1]*n+i[4]*r+i[7]}(i,e,t),i}function Ka(t,e,i,n){if(e){var r=Ua({x:i,y:n},e,t.getMatrix());t.setMatrix(r)}}function $a(t,e,i){var n=Za({x:e,y:i});t.attr("matrix",n)}function Ja(t){var e=0,i=0,n=0,r=0;return pt(t)?e=i=n=r=t:V(t)&&(e=t[0],n=z(t[1])?t[0]:t[1],r=z(t[2])?t[0]:t[2],i=z(t[3])?n:t[3]),[e,n,r,i]}function ts(t){for(var e=t.childNodes,i=e.length-1;i>=0;i--)t.removeChild(e[i])}function es(t){var e=t.start,i=t.end,n=Math.min(e.x,i.x),r=Math.min(e.y,i.y),o=Math.max(e.x,i.x),a=Math.max(e.y,i.y);return{x:n,y:r,minX:n,minY:r,maxX:o,maxY:a,width:o-n,height:a-r}}function is(t,e,i,n){var r=t+i,o=e+n;return{x:t,y:e,width:i,height:n,minX:t,minY:e,maxX:isNaN(r)?0:r,maxY:isNaN(o)?0:o}}function ns(t,e,i){return(1-i)*t+e*i}function rs(t,e,i){return{x:t.x+Math.cos(i)*e,y:t.y+Math.sin(i)*e}}var os=function(t,e,i){return void 0===i&&(i=Math.pow(Number.EPSILON,.5)),[t,e].includes(1/0)?Math.abs(t)===Math.abs(e):Math.abs(t-e)<i};function as(t){var e,i,n,r,o,a=t.getClip(),s=a&&a.getBBox();if(t.isGroup()){var l=1/0,h=-1/0,u=1/0,c=-1/0,p=t.getChildren();p.length>0?N(p,(function(t){if(t.get("visible")){if(t.isGroup()&&0===t.get("children").length)return!0;var e=as(t),i=t.applyToMatrix([e.minX,e.minY,1]),n=t.applyToMatrix([e.minX,e.maxY,1]),r=t.applyToMatrix([e.maxX,e.minY,1]),o=t.applyToMatrix([e.maxX,e.maxY,1]),a=Math.min(i[0],n[0],r[0],o[0]),s=Math.max(i[0],n[0],r[0],o[0]),p=Math.min(i[1],n[1],r[1],o[1]),f=Math.max(i[1],n[1],r[1],o[1]);a<l&&(l=a),s>h&&(h=s),p<u&&(u=p),f>c&&(c=f)}})):(l=0,h=0,u=0,c=0),e=is(l,u,h-l,c-u)}else e=t.getBBox();return s?(i=e,n=s,r=Math.max(i.minX,n.minX),o=Math.max(i.minY,n.minY),is(r,o,Math.min(i.maxX,n.maxX)-r,Math.min(i.maxY,n.maxY)-o)):e}function ss(t){return t+"px"}function ls(t,e,i,n){var r,o,a,s,l=n/(r=t,a=(o=e).x-r.x,s=o.y-r.y,Math.sqrt(a*a+s*s)),h=0;return"start"===i?h=0-l:"end"===i&&(h=1+l),{x:ns(t.x,e.x,h),y:ns(t.y,e.y,h)}}var hs={none:[],point:["x","y"],region:["start","end"],points:["points"],circle:["center","radius","startAngle","endAngle"]},us=function(t){function e(e){var i=t.call(this,e)||this;return i.initCfg(),i}return r(e,t),e.prototype.getDefaultCfg=function(){return{id:"",name:"",type:"",locationType:"none",offsetX:0,offsetY:0,animate:!1,capture:!0,updateAutoRender:!1,animateOption:{appear:null,update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},events:null,defaultCfg:{},visible:!0}},e.prototype.clear=function(){},e.prototype.update=function(t){var e=this,i=this.get("defaultCfg")||{};N(t,(function(t,n){var r=t;e.get(n)!==t&&(H(t)&&i[n]&&(r=Dt({},i[n],t)),e.set(n,r))})),this.updateInner(t),this.afterUpdate(t)},e.prototype.updateInner=function(t){},e.prototype.afterUpdate=function(t){vt(t,"visible")&&(t.visible?this.show():this.hide()),vt(t,"capture")&&this.setCapture(t.capture)},e.prototype.getLayoutBBox=function(){return this.getBBox()},e.prototype.getLocationType=function(){return this.get("locationType")},e.prototype.getOffset=function(){return{offsetX:this.get("offsetX"),offsetY:this.get("offsetY")}},e.prototype.setOffset=function(t,e){this.update({offsetX:t,offsetY:e})},e.prototype.setLocation=function(t){var e=l({},t);this.update(e)},e.prototype.getLocation=function(){var t=this,e={},i=this.get("locationType");return N(hs[i],(function(i){e[i]=t.get(i)})),e},e.prototype.isList=function(){return!1},e.prototype.isSlider=function(){return!1},e.prototype.init=function(){},e.prototype.initCfg=function(){var t=this;N(this.get("defaultCfg"),(function(e,i){var n=t.get(i);if(H(n)){var r=Dt({},e,n);t.set(i,r)}}))},e}(pi),cs="update_status",ps=["visible","tip","delegateObject"],fs=["container","group","shapesMap","isRegister","isUpdating","destroyed"],gs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return l(l({},e),{container:null,shapesMap:{},group:null,capture:!0,isRegister:!1,isUpdating:!1,isInit:!0})},e.prototype.remove=function(){this.clear(),this.get("group").remove()},e.prototype.clear=function(){this.get("group").clear(),this.set("shapesMap",{}),this.clearOffScreenCache(),this.set("isInit",!0)},e.prototype.getChildComponentById=function(t){var e=this.getElementById(t);return e&&e.get("component")},e.prototype.getElementById=function(t){return this.get("shapesMap")[t]},e.prototype.getElementByLocalId=function(t){var e=this.getElementId(t);return this.getElementById(e)},e.prototype.getElementsByName=function(t){var e=[];return N(this.get("shapesMap"),(function(i){i.get("name")===t&&e.push(i)})),e},e.prototype.getContainer=function(){return this.get("container")},e.prototype.updateInner=function(t){this.offScreenRender(),this.get("updateAutoRender")&&this.render()},e.prototype.render=function(){var t=this.get("offScreenGroup");t||(t=this.offScreenRender());var e=this.get("group");this.updateElements(t,e),this.deleteElements(),this.applyOffset(),this.get("eventInitted")||(this.initEvent(),this.set("eventInitted",!0)),this.set("isInit",!1)},e.prototype.show=function(){this.get("group").show(),this.set("visible",!0)},e.prototype.hide=function(){this.get("group").hide(),this.set("visible",!1)},e.prototype.setCapture=function(t){this.get("group").set("capture",t),this.set("capture",t)},e.prototype.destroy=function(){this.removeEvent(),this.remove(),t.prototype.destroy.call(this)},e.prototype.getBBox=function(){return this.get("group").getCanvasBBox()},e.prototype.getLayoutBBox=function(){var t=this.get("group"),e=this.getInnerLayoutBBox(),i=t.getTotalMatrix();return i&&(e=function(t,e){var i=Qa(t,[e.minX,e.minY]),n=Qa(t,[e.maxX,e.minY]),r=Qa(t,[e.minX,e.maxY]),o=Qa(t,[e.maxX,e.maxY]),a=Math.min(i[0],n[0],r[0],o[0]),s=Math.max(i[0],n[0],r[0],o[0]),l=Math.min(i[1],n[1],r[1],o[1]),h=Math.max(i[1],n[1],r[1],o[1]);return{x:a,y:l,minX:a,minY:l,maxX:s,maxY:h,width:s-a,height:h-l}}(i,e)),e},e.prototype.on=function(t,e,i){return this.get("group").on(t,e,i),this},e.prototype.off=function(t,e){var i=this.get("group");return i&&i.off(t,e),this},e.prototype.emit=function(t,e){this.get("group").emit(t,e)},e.prototype.init=function(){t.prototype.init.call(this),this.get("group")||this.initGroup(),this.offScreenRender()},e.prototype.getInnerLayoutBBox=function(){return this.get("offScreenBBox")||this.get("group").getBBox()},e.prototype.delegateEmit=function(t,e){var i=this.get("group");e.target=i,i.emit(t,e),ja(i,t,e)},e.prototype.createOffScreenGroup=function(){return new(this.get("group").getGroupBase())({delegateObject:this.getDelegateObject()})},e.prototype.applyOffset=function(){var t=this.get("offsetX"),e=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t,y:e})},e.prototype.initGroup=function(){var t=this.get("container");this.set("group",t.addGroup({id:this.get("id"),name:this.get("name"),capture:this.get("capture"),visible:this.get("visible"),isComponent:!0,component:this,delegateObject:this.getDelegateObject()}))},e.prototype.offScreenRender=function(){this.clearOffScreenCache();var t=this.createOffScreenGroup();return this.renderInner(t),this.set("offScreenGroup",t),this.set("offScreenBBox",as(t)),t},e.prototype.addGroup=function(t,e){this.appendDelegateObject(t,e);var i=t.addGroup(e);return this.get("isRegister")&&this.registerElement(i),i},e.prototype.addShape=function(t,e){this.appendDelegateObject(t,e);var i=t.addShape(e);return this.get("isRegister")&&this.registerElement(i),i},e.prototype.addComponent=function(t,e){var i=e.id,n=e.component,r=h(e,["id","component"]),o=new n(l(l({},r),{id:i,container:t,updateAutoRender:this.get("updateAutoRender")}));return o.init(),o.render(),this.get("isRegister")&&this.registerElement(o.get("group")),o},e.prototype.initEvent=function(){},e.prototype.removeEvent=function(){this.get("group").off()},e.prototype.getElementId=function(t){return this.get("id")+"-"+this.get("name")+"-"+t},e.prototype.registerElement=function(t){var e=t.get("id");this.get("shapesMap")[e]=t},e.prototype.unregisterElement=function(t){var e=t.get("id");delete this.get("shapesMap")[e]},e.prototype.moveElementTo=function(t,e){var i=Za(e);t.attr("matrix",i)},e.prototype.addAnimation=function(t,e,i){var n=e.attr("opacity");z(n)&&(n=1),e.attr("opacity",0),e.animate({opacity:n},i)},e.prototype.removeAnimation=function(t,e,i){e.animate({opacity:0},i)},e.prototype.updateAnimation=function(t,e,i,n){e.animate(i,n)},e.prototype.updateElements=function(t,e){var i,n=this,r=this.get("animate"),o=this.get("animateOption");N(t.getChildren().slice(0),(function(t){var a=t.get("id"),s=n.getElementById(a),l=t.get("name");if(s)if(t.get("isComponent")){var h=t.get("component"),u=s.get("component"),c=jt(h.cfg,function(t,e){return void 0===e&&(e=[]),_(t,(function(t){return!R(e,t)}))}(W(h.cfg),fs));u.update(c),s.set(cs,"update")}else{var p=n.getReplaceAttrs(s,t);r&&o.update?n.updateAnimation(l,s,p,o.update):s.attr(p),t.isGroup()&&n.updateElements(t,s),N(ps,(function(e){s.set(e,t.get(e))})),function(t,e){if(t.getClip()||e.getClip()){var i=e.getClip();if(i){var n={type:i.get("type"),attrs:i.attr()};t.setClip(n)}else t.setClip(null)}}(s,t),i=s,s.set(cs,"update")}else{e.add(t);var f=e.getChildren();if(f.splice(f.length-1,1),i){var g=f.indexOf(i);f.splice(g+1,0,t)}else f.unshift(t);if(n.registerElement(t),t.set(cs,"add"),t.get("isComponent"))(h=t.get("component")).set("container",e);else t.isGroup()&&n.registerNewGroup(t);if(i=t,r){var d=n.get("isInit")?o.appear:o.enter;d&&n.addAnimation(l,t,d)}}}))},e.prototype.clearUpdateStatus=function(t){N(t.getChildren(),(function(t){t.set(cs,null)}))},e.prototype.clearOffScreenCache=function(){var t=this.get("offScreenGroup");t&&t.destroy(),this.set("offScreenGroup",null),this.set("offScreenBBox",null)},e.prototype.getDelegateObject=function(){var t;return(t={})[this.get("name")]=this,t.component=this,t},e.prototype.appendDelegateObject=function(t,e){var i=t.get("delegateObject");e.delegateObject||(e.delegateObject={}),Pt(e.delegateObject,i)},e.prototype.getReplaceAttrs=function(t,e){var i=t.attr(),n=e.attr();return N(i,(function(t,e){void 0===n[e]&&(n[e]=void 0)})),n},e.prototype.registerNewGroup=function(t){var e=this;N(t.getChildren(),(function(t){e.registerElement(t),t.set(cs,"add"),t.isGroup()&&e.registerNewGroup(t)}))},e.prototype.deleteElements=function(){var t=this,e=this.get("shapesMap"),i=[];N(e,(function(t,e){!t.get(cs)||t.destroyed?i.push([e,t]):t.set(cs,null)}));var n=this.get("animate"),r=this.get("animateOption");N(i,(function(i){var o=i[0],a=i[1];if(!a.destroyed){var s=a.get("name");if(n&&r.leave){var l=Pt({callback:function(){t.removeElement(a)}},r.leave);t.removeAnimation(s,a,l)}else t.removeElement(a)}delete e[o]}))},e.prototype.removeElement=function(t){if(t.get("isGroup")){var e=t.get("component");e&&e.destroy()}t.remove()},e}(us);function ds(t,e){return t.charCodeAt(e)>0&&t.charCodeAt(e)<128?1:2}function ys(t){if(t.length>400)return function(t){for(var e=t.map((function(t){var e=t.attr("text");return z(e)?"":""+e})),i=0,n=0,r=0;r<e.length;r+=1){for(var o=0,a=0;a<=e[r].length;a+=1){var s=e[r].charCodeAt(a);o+=s>=19968&&s<=40869?2:1}o>i&&(i=o,n=r)}return t[n].getBBox().width}(t);var e=0;return N(t,(function(t){var i=t.getBBox().width;e<i&&(e=i)})),e}function vs(t,e,i,n){var r;void 0===n&&(n="tail");var o=null!==(r=e.attr("text"))&&void 0!==r?r:"";if("tail"===n){var a=function(t,e,i,n){void 0===n&&(n="...");var r,o,a=ee(n,i),s=et(t)?t:xt(t),l=e,h=[];if(ee(t,i)<=e)return t;for(;r=s.substr(0,16),!((o=ee(r,i))+a>l&&o>l);)if(h.push(r),l-=o,!(s=s.substr(16)))return h.join("");for(;r=s.substr(0,1),!((o=ee(r,i))+a>l);)if(h.push(r),l-=o,!(s=s.substr(1)))return h.join("");return""+h.join("")+n}(o,i,jt(e.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),"…");return o!==a?(e.attr("text",a),e.set("tip",o),!0):(e.set("tip",null),!1)}var s=function(t,e){var i=e.getCanvasBBox();return t?i.width:i.height}(t,e),l=function(t){for(var e=0,i=0;i<t.length;i++)e+=ds(t,i);return e}(o),h=!1;if(i<s){var u=Math.floor(i/s*l)-2,c=void 0;c=u>=0?function(t,e,i){void 0===i&&(i="tail");var n=t.length,r="";if("tail"===i){for(var o=0,a=0;o<e&&o+ds(t,a)<=e;)r+=t[a],o+=ds(t,a),a++;r+="…"}else if("head"===i){for(o=0,a=n-1;o<e&&o+ds(t,a)<=e;)r+=t[a],o+=ds(t,a),a--;r="…"+r}else{for(var s="",l="",h=(o=0,0),u=n-1;o<e;){var c=ds(t,h),p=!1;c+o<=e&&(s+=t[h],h++,o+=c,p=!0);var f=ds(t,u);if(f+o<=e&&(l=t[u]+l,o+=f,u--,p=!0),!p)break}r=s+"…"+l}return r}(o,u,n):"…",c&&(e.attr("text",c),h=!0)}return h?e.set("tip",o):e.set("tip",null),h}function ms(t,e){var i=e.x,n=e.y,r=e.content,o=e.style,a=e.id,s=e.name,h=e.rotate,u=e.maxLength,c=e.autoEllipsis,p=e.isVertical,f=e.ellipsisPosition,g=e.background,d=t.addGroup({id:a+"-group",name:s+"-group",attrs:{x:i,y:n}}),y=d.addShape({type:"text",id:a,name:s,attrs:l({x:0,y:0,text:r},o)}),v=Ja(Ht(g,"padding",0));u&&c&&vs(!p,y,u-(v[1]+v[3]),f);if(g){var m=Ht(g,"style",{}),x=y.getCanvasBBox(),w=x.minX,C=x.minY,b=x.width,M=x.height;d.addShape("rect",{id:a+"-bg",name:a+"-bg",attrs:l({x:w-v[3],y:C-v[0],width:b+v[1]+v[3],height:M+v[0]+v[2]},m)}).toBack()}$a(d,i,n),Ka(d,h,i,n)}var xs={fontFamily:'\n BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue",\n Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",\n SimSun, "sans-serif"',textColor:"#2C3542",activeTextColor:"#333333",uncheckedColor:"#D8D8D8",lineColor:"#416180",regionColor:"#CCD7EB",verticalAxisRotate:-Math.PI/4,horizontalAxisRotate:Math.PI/4},ws=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return l(l({},e),{name:"annotation",type:"line",locationType:"region",start:null,end:null,style:{},text:null,defaultCfg:{style:{fill:xs.textColor,fontSize:12,textAlign:"center",textBaseline:"bottom",fontFamily:xs.fontFamily},text:{position:"center",autoRotate:!0,content:null,offsetX:0,offsetY:0,style:{stroke:xs.lineColor,lineWidth:1}}}})},e.prototype.renderInner=function(t){this.renderLine(t),this.get("text")&&this.renderLabel(t)},e.prototype.renderLine=function(t){var e=this.get("start"),i=this.get("end"),n=this.get("style");this.addShape(t,{type:"line",id:this.getElementId("line"),name:"annotation-line",attrs:l({x1:e.x,y1:e.y,x2:i.x,y2:i.y},n)})},e.prototype.getLabelPoint=function(t,e,i){var n;return((n="start"===i?0:"center"===i?.5:et(i)&&-1!==i.indexOf("%")?parseInt(i,10)/100:pt(i)?i:1)>1||n<0)&&(n=1),{x:ns(t.x,e.x,n),y:ns(t.y,e.y,n)}},e.prototype.renderLabel=function(t){var e=this.get("text"),i=this.get("start"),n=this.get("end"),r=e.position,o=e.content,a=e.style,s=e.offsetX,l=e.offsetY,h=e.autoRotate,u=e.maxLength,c=e.autoEllipsis,p=e.ellipsisPosition,f=e.background,g=e.isVertical,d=void 0!==g&&g,y=this.getLabelPoint(i,n,r),v=y.x+s,m=y.y+l,x={id:this.getElementId("line-text"),name:"annotation-line-text",x:v,y:m,content:o,style:a,maxLength:u,autoEllipsis:c,ellipsisPosition:p,background:f,isVertical:d};if(h){var w=[n.x-i.x,n.y-i.y];x.rotate=Math.atan2(w[1],w[0])}ms(t,x)},e}(gs),Cs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return l(l({},e),{name:"annotation",type:"text",locationType:"point",x:0,y:0,content:"",rotate:null,style:{},background:null,maxLength:null,autoEllipsis:!0,isVertical:!1,ellipsisPosition:"tail",defaultCfg:{style:{fill:xs.textColor,fontSize:12,textAlign:"center",textBaseline:"middle",fontFamily:xs.fontFamily}}})},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetLocation()},e.prototype.renderInner=function(t){var e=this.getLocation(),i=e.x,n=e.y,r=this.get("content"),o=this.get("style");ms(t,{id:this.getElementId("text"),name:this.get("name")+"-text",x:i,y:n,content:r,style:o,maxLength:this.get("maxLength"),autoEllipsis:this.get("autoEllipsis"),isVertical:this.get("isVertical"),ellipsisPosition:this.get("ellipsisPosition"),background:this.get("background"),rotate:this.get("rotate")})},e.prototype.resetLocation=function(){var t=this.getElementByLocalId("text-group");if(t){var e=this.getLocation(),i=e.x,n=e.y,r=this.get("rotate");$a(t,i,n),Ka(t,r,i,n)}},e}(gs),bs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return l(l({},e),{name:"annotation",type:"arc",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:3*Math.PI/2,style:{stroke:"#999",lineWidth:1}})},e.prototype.renderInner=function(t){this.renderArc(t)},e.prototype.getArcPath=function(){var t=this.getLocation(),e=t.center,i=t.radius,n=t.startAngle,r=t.endAngle,o=rs(e,i,n),a=rs(e,i,r),s=r-n>Math.PI?1:0,l=[["M",o.x,o.y]];if(r-n==2*Math.PI){var h=rs(e,i,n+Math.PI);l.push(["A",i,i,0,s,1,h.x,h.y]),l.push(["A",i,i,0,s,1,a.x,a.y])}else l.push(["A",i,i,0,s,1,a.x,a.y]);return l},e.prototype.renderArc=function(t){var e=this.getArcPath(),i=this.get("style");this.addShape(t,{type:"path",id:this.getElementId("arc"),name:"annotation-arc",attrs:l({path:e},i)})},e}(gs),Ms=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return l(l({},e),{name:"annotation",type:"region",locationType:"region",start:null,end:null,style:{},defaultCfg:{style:{lineWidth:0,fill:xs.regionColor,opacity:.4}}})},e.prototype.renderInner=function(t){this.renderRegion(t)},e.prototype.renderRegion=function(t){var e=this.get("start"),i=this.get("end"),n=this.get("style"),r=es({start:e,end:i});this.addShape(t,{type:"rect",id:this.getElementId("region"),name:"annotation-region",attrs:l({x:r.x,y:r.y,width:r.width,height:r.height},n)})},e}(gs),Ss=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return l(l({},e),{name:"annotation",type:"image",locationType:"region",start:null,end:null,src:null,style:{}})},e.prototype.renderInner=function(t){this.renderImage(t)},e.prototype.getImageAttrs=function(){var t=this.get("start"),e=this.get("end"),i=this.get("style"),n=es({start:t,end:e}),r=this.get("src");return l({x:n.x,y:n.y,img:r,width:n.width,height:n.height},i)},e.prototype.renderImage=function(t){this.addShape(t,{type:"image",id:this.getElementId("image"),name:"annotation-image",attrs:this.getImageAttrs()})},e}(gs),As=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return l(l({},e),{name:"annotation",type:"dataMarker",locationType:"point",x:0,y:0,point:{},line:{},text:{},direction:"upward",autoAdjust:!0,coordinateBBox:null,defaultCfg:{point:{display:!0,style:{r:3,fill:"#FFFFFF",stroke:"#1890FF",lineWidth:2}},line:{display:!0,length:20,style:{stroke:xs.lineColor,lineWidth:1}},text:{content:"",display:!0,style:{fill:xs.textColor,opacity:.65,fontSize:12,textAlign:"start",fontFamily:xs.fontFamily}}}})},e.prototype.renderInner=function(t){Ht(this.get("line"),"display")&&this.renderLine(t),Ht(this.get("text"),"display")&&this.renderText(t),Ht(this.get("point"),"display")&&this.renderPoint(t),this.get("autoAdjust")&&this.autoAdjust(t)},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x")+this.get("offsetX"),y:this.get("y")+this.get("offsetY")})},e.prototype.renderPoint=function(t){var e=this.getShapeAttrs().point;this.addShape(t,{type:"circle",id:this.getElementId("point"),name:"annotation-point",attrs:e})},e.prototype.renderLine=function(t){var e=this.getShapeAttrs().line;this.addShape(t,{type:"path",id:this.getElementId("line"),name:"annotation-line",attrs:e})},e.prototype.renderText=function(t){var e=this.getShapeAttrs().text,i=e.x,n=e.y,r=e.text,o=h(e,["x","y","text"]),a=this.get("text"),s=a.background,l=a.maxLength,u=a.autoEllipsis,c=a.isVertival,p=a.ellipsisPosition;ms(t,{x:i,y:n,id:this.getElementId("text"),name:"annotation-text",content:r,style:o,background:s,maxLength:l,autoEllipsis:u,isVertival:c,ellipsisPosition:p})},e.prototype.autoAdjust=function(t){var e=this.get("direction"),i=this.get("x"),n=this.get("y"),r=Ht(this.get("line"),"length",0),o=this.get("coordinateBBox"),a=t.getBBox(),s=a.minX,l=a.maxX,h=a.minY,u=a.maxY,c=t.findById(this.getElementId("text-group")),p=t.findById(this.getElementId("text")),f=t.findById(this.getElementId("line"));if(o){if(c){if(i+s<=o.minX){var g=o.minX-(i+s);$a(c,c.attr("x")+g,c.attr("y"))}if(i+l>=o.maxX){g=i+l-o.maxX;$a(c,c.attr("x")-g,c.attr("y"))}}if("upward"===e&&n+h<=o.minY||"upward"!==e&&n+u>=o.maxY){var d=void 0,y=void 0;"upward"===e&&n+h<=o.minY?(d="top",y=1):(d="bottom",y=-1),p.attr("textBaseline",d),f&&f.attr("path",[["M",0,0],["L",0,r*y]]),$a(c,c.attr("x"),(r+2)*y)}}},e.prototype.getShapeAttrs=function(){var t=Ht(this.get("line"),"display"),e=Ht(this.get("point"),"style",{}),i=Ht(this.get("line"),"style",{}),n=Ht(this.get("text"),"style",{}),r=this.get("direction"),o=t?Ht(this.get("line"),"length",0):0,a="upward"===r?-1:1;return{point:l({x:0,y:0},e),line:l({path:[["M",0,0],["L",0,o*a]]},i),text:l({x:0,y:(o+2)*a,text:Ht(this.get("text"),"content",""),textBaseline:"upward"===r?"bottom":"top"},n)}},e}(gs),Ts=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return l(l({},e),{name:"annotation",type:"dataRegion",locationType:"points",points:[],lineLength:0,region:{},text:{},defaultCfg:{region:{style:{lineWidth:0,fill:xs.regionColor,opacity:.4}},text:{content:"",style:{textAlign:"center",textBaseline:"bottom",fontSize:12,fill:xs.textColor,fontFamily:xs.fontFamily}}}})},e.prototype.renderInner=function(t){var e=Ht(this.get("region"),"style",{});Ht(this.get("text"),"style",{});var i=this.get("lineLength")||0,n=this.get("points");if(n.length){var r=function(t){var e=t.map((function(t){return t.x})),i=t.map((function(t){return t.y})),n=Math.min.apply(Math,e),r=Math.min.apply(Math,i),o=Math.max.apply(Math,e),a=Math.max.apply(Math,i);return{x:n,y:r,minX:n,minY:r,maxX:o,maxY:a,width:o-n,height:a-r}}(n),o=[];o.push(["M",n[0].x,r.minY-i]),n.forEach((function(t){o.push(["L",t.x,t.y])})),o.push(["L",n[n.length-1].x,n[n.length-1].y-i]),this.addShape(t,{type:"path",id:this.getElementId("region"),name:"annotation-region",attrs:l({path:o},e)}),ms(t,l({id:this.getElementId("text"),name:"annotation-text",x:(r.minX+r.maxX)/2,y:r.minY-i},this.get("text")))}},e}(gs),Bs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return l(l({},e),{name:"annotation",type:"regionFilter",locationType:"region",start:null,end:null,color:null,shape:[]})},e.prototype.renderInner=function(t){var e=this,i=this.get("start"),n=this.get("end"),r=this.addGroup(t,{id:this.getElementId("region-filter"),capture:!1});N(this.get("shapes"),(function(t,i){var n=t.get("type"),o=It(t.attr());e.adjustShapeAttrs(o),e.addShape(r,{id:e.getElementId("shape-"+n+"-"+i),capture:!1,type:n,attrs:o})}));var o=es({start:i,end:n});r.setClip({type:"rect",attrs:{x:o.minX,y:o.minY,width:o.width,height:o.height}})},e.prototype.adjustShapeAttrs=function(t){var e=this.get("color");t.fill&&(t.fill=t.fillStyle=e),t.stroke=t.strokeStyle=e},e}(gs),ks=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return l(l({},e),{name:"annotation",type:"shape",draw:Qt})},e.prototype.renderInner=function(t){var e=this.get("render");X(e)&&e(t)},e}(gs),Ls=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return l(l({},e),{container:null,containerTpl:"<div></div>",updateAutoRender:!0,containerClassName:"",parent:null})},e.prototype.getContainer=function(){return this.get("container")},e.prototype.show=function(){this.get("container").style.display="",this.set("visible",!0)},e.prototype.hide=function(){this.get("container").style.display="none",this.set("visible",!1)},e.prototype.setCapture=function(t){var e=t?"auto":"none";this.getContainer().style.pointerEvents=e,this.set("capture",t)},e.prototype.getBBox=function(){var t=this.getContainer();return is(parseFloat(t.style.left)||0,parseFloat(t.style.top)||0,t.clientWidth,t.clientHeight)},e.prototype.clear=function(){ts(this.get("container"))},e.prototype.destroy=function(){this.removeEvent(),this.removeDom(),t.prototype.destroy.call(this)},e.prototype.init=function(){t.prototype.init.call(this),this.initContainer(),this.initDom(),this.resetStyles(),this.applyStyles(),this.initEvent(),this.initCapture(),this.initVisible()},e.prototype.initCapture=function(){this.setCapture(this.get("capture"))},e.prototype.initVisible=function(){this.get("visible")?this.show():this.hide()},e.prototype.initDom=function(){},e.prototype.initContainer=function(){var t=this.get("container");if(z(t)){t=this.createDom();var e=this.get("parent");et(e)&&(e=document.getElementById(e),this.set("parent",e)),e.appendChild(t),this.get("containerId")&&t.setAttribute("id",this.get("containerId")),this.set("container",t)}else et(t)&&(t=document.getElementById(t),this.set("container",t));this.get("parent")||this.set("parent",t.parentNode)},e.prototype.resetStyles=function(){var t=this.get("domStyles"),e=this.get("defaultStyles");t=t?Dt({},e,t):e,this.set("domStyles",t)},e.prototype.applyStyles=function(){var t=this.get("domStyles");if(t){var e=this.getContainer();this.applyChildrenStyles(e,t);var i,n=this.get("containerClassName");if(n&&(i=n,e.className.match(new RegExp("(\\s|^)"+i+"(\\s|$)"))))Se(e,t[n])}},e.prototype.applyChildrenStyles=function(t,e){N(e,(function(e,i){N(t.getElementsByClassName(i),(function(t){Se(t,e)}))}))},e.prototype.applyStyle=function(t,e){Se(e,this.get("domStyles")[t])},e.prototype.createDom=function(){return we(this.get("containerTpl"))},e.prototype.initEvent=function(){},e.prototype.removeDom=function(){var t=this.get("container");t&&t.parentNode&&t.parentNode.removeChild(t)},e.prototype.removeEvent=function(){},e.prototype.updateInner=function(t){vt(t,"domStyles")&&(this.resetStyles(),this.applyStyles()),this.resetPosition()},e.prototype.resetPosition=function(){},e}(us),Ps=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return l(l({},e),{name:"annotation",type:"html",locationType:"point",x:0,y:0,containerTpl:'<div class="g2-html-annotation"></div>',alignX:"left",alignY:"top",html:"",zIndex:7})},e.prototype.render=function(){var t=this.getContainer(),e=this.get("html");ts(t);var i=X(e)?e(t):e;if(kt(i))t.appendChild(i);else if(et(i)||pt(i)){var n=we(""+i);n&&t.appendChild(n)}this.resetPosition()},e.prototype.resetPosition=function(){var t=this.getContainer(),e=this.getLocation(),i=e.x,n=e.y,r=this.get("alignX"),o=this.get("alignY"),a=this.get("offsetX"),s=this.get("offsetY"),l=Me(t),h=be(t),u={x:i,y:n};"middle"===r?u.x-=Math.round(l/2):"right"===r&&(u.x-=Math.round(l)),"middle"===o?u.y-=Math.round(h/2):"bottom"===o&&(u.y-=Math.round(h)),a&&(u.x+=a),s&&(u.y+=s),Se(t,{position:"absolute",left:u.x+"px",top:u.y+"px",zIndex:this.get("zIndex")})},e}(Ls),Is=Object.freeze(Object.defineProperty({__proto__:null,Arc:bs,DataMarker:As,DataRegion:Ts,Html:Ps,Image:Ss,Line:ws,Region:Ms,RegionFilter:Bs,Shape:ks,Text:Cs},Symbol.toStringTag,{value:"Module"}));function Es(t,e,i){var n=e+"Style",r=null;return N(i,(function(e,i){t[i]&&e[n]&&(r||(r={}),Pt(r,e[n]))})),r}var Fs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return l(l({},e),{name:"axis",ticks:[],line:{},tickLine:{},subTickLine:null,title:null,label:{},verticalFactor:1,verticalLimitLength:null,overlapOrder:["autoRotate","autoEllipsis","autoHide"],tickStates:{},optimize:{},defaultCfg:{line:{style:{lineWidth:1,stroke:xs.lineColor}},tickLine:{style:{lineWidth:1,stroke:xs.lineColor},alignTick:!0,length:5,displayWithLabel:!0},subTickLine:{style:{lineWidth:1,stroke:xs.lineColor},count:4,length:2},label:{autoRotate:!0,autoHide:!1,autoEllipsis:!1,style:{fontSize:12,fill:xs.textColor,fontFamily:xs.fontFamily,fontWeight:"normal"},offset:10,offsetX:0,offsetY:0},title:{autoRotate:!0,spacing:5,position:"center",style:{fontSize:12,fill:xs.textColor,textBaseline:"middle",fontFamily:xs.fontFamily,textAlign:"center"}},tickStates:{active:{labelStyle:{fontWeight:500},tickLineStyle:{lineWidth:2}},inactive:{labelStyle:{fill:xs.uncheckedColor}}},optimize:{enable:!0,threshold:400}},theme:{}})},e.prototype.renderInner=function(t){this.get("line")&&this.drawLine(t),this.drawTicks(t),this.get("title")&&this.drawTitle(t)},e.prototype.isList=function(){return!0},e.prototype.getItems=function(){return this.get("ticks")},e.prototype.setItems=function(t){this.update({ticks:t})},e.prototype.updateItem=function(t,e){Pt(t,e),this.clear(),this.render()},e.prototype.clearItems=function(){var t=this.getElementByLocalId("label-group");t&&t.clear()},e.prototype.setItemState=function(t,e,i){t[e]=i,this.updateTickStates(t)},e.prototype.hasState=function(t,e){return!!t[e]},e.prototype.getItemStates=function(t){var e=this.get("tickStates"),i=[];return N(e,(function(e,n){t[n]&&i.push(n)})),i},e.prototype.clearItemsState=function(t){var e=this;N(this.getItemsByState(t),(function(i){e.setItemState(i,t,!1)}))},e.prototype.getItemsByState=function(t){var e=this,i=this.getItems();return _(i,(function(i){return e.hasState(i,t)}))},e.prototype.getSidePoint=function(t,e){var i=this.getSideVector(e,t);return{x:t.x+i[0],y:t.y+i[1]}},e.prototype.getTextAnchor=function(t){var e;return ft(t[0],0)?e="center":t[0]>0?e="start":t[0]<0&&(e="end"),e},e.prototype.getTextBaseline=function(t){var e;return ft(t[1],0)?e="middle":t[1]>0?e="top":t[1]<0&&(e="bottom"),e},e.prototype.processOverlap=function(t){},e.prototype.drawLine=function(t){var e=this.getLinePath(),i=this.get("line");this.addShape(t,{type:"path",id:this.getElementId("line"),name:"axis-line",attrs:Pt({path:e},i.style)})},e.prototype.getTickLineItems=function(t){var e=this,i=[],n=this.get("tickLine"),r=n.alignTick,o=n.length,a=1;return t.length>=2&&(a=t[1].value-t[0].value),N(t,(function(t){var n=t.point;r||(n=e.getTickPoint(t.value-a/2));var s=e.getSidePoint(n,o);i.push({startPoint:n,tickValue:t.value,endPoint:s,tickId:t.id,id:"tickline-"+t.id})})),i},e.prototype.getSubTickLineItems=function(t){var e=[],i=this.get("subTickLine"),n=i.count,r=t.length;if(r>=2)for(var o=0;o<r-1;o++)for(var a=t[o],s=t[o+1],l=0;l<n;l++){var h=(l+1)/(n+1),u=(1-h)*a.tickValue+h*s.tickValue,c=this.getTickPoint(u),p=this.getSidePoint(c,i.length);e.push({startPoint:c,endPoint:p,tickValue:u,id:"sub-"+a.id+"-"+l})}return e},e.prototype.getTickLineAttrs=function(t,e,i,n){var r=this.get(e).style,o={points:[t.startPoint,t.endPoint]},a=Ht(this.get("theme"),["tickLine","style"],{});r=X(r)?Pt({},a,r(o,i,n)):r;var s=t.startPoint,h=t.endPoint;return l({x1:s.x,y1:s.y,x2:h.x,y2:h.y},r)},e.prototype.drawTick=function(t,e,i,n,r){this.addShape(e,{type:"line",id:this.getElementId(t.id),name:"axis-"+i,attrs:this.getTickLineAttrs(t,i,n,r)})},e.prototype.drawTickLines=function(t){var e=this,i=this.get("ticks"),n=this.get("subTickLine"),r=this.getTickLineItems(i),o=this.addGroup(t,{name:"axis-tickline-group",id:this.getElementId("tickline-group")}),a=this.get("tickLine");if(N(r,(function(i,n){if(a.displayWithLabel){var s=e.getElementId("label-"+i.tickId);t.findById(s)&&e.drawTick(i,o,"tickLine",n,r)}else e.drawTick(i,o,"tickLine",n,r)})),n){var s=this.getSubTickLineItems(r);N(s,(function(t,i){e.drawTick(t,o,"subTickLine",i,s)}))}},e.prototype.processTicks=function(){var t=this;N(this.get("ticks"),(function(e){e.point=t.getTickPoint(e.value),z(e.id)&&(e.id=e.name)}))},e.prototype.drawTicks=function(t){var e=this;this.optimizeTicks(),this.processTicks(),this.get("label")&&this.drawLabels(t),this.get("tickLine")&&this.drawTickLines(t),N(this.get("ticks"),(function(i){e.applyTickStates(i,t)}))},e.prototype.optimizeTicks=function(){var t=this.get("optimize"),e=this.get("ticks");if(t&&t.enable&&t.threshold>0){var i=Kt(e);if(i>t.threshold){var n=Math.ceil(i/t.threshold),r=e.filter((function(t,e){return e%n==0}));this.set("ticks",r),this.set("originalTicks",e)}}},e.prototype.getLabelAttrs=function(t,e,i){var n=this.get("label"),r=n.offset,o=n.offsetX,a=n.offsetY,s=n.rotate,l=n.formatter,h=this.getSidePoint(t.point,r),u=this.getSideVector(r,h),c=l?l(t.name,t,e):t.name,p=n.style;p=X(p)?Ht(this.get("theme"),["label","style"],{}):p;var f=Pt({x:h.x+o,y:h.y+a,text:c,textAlign:this.getTextAnchor(u),textBaseline:this.getTextBaseline(u)},p);return s&&(f.matrix=Ua(h,s)),f},e.prototype.drawLabels=function(t){var e=this,i=this.get("ticks"),n=this.addGroup(t,{name:"axis-label-group",id:this.getElementId("label-group")});N(i,(function(t,r){e.addShape(n,{type:"text",name:"axis-label",id:e.getElementId("label-"+t.id),attrs:e.getLabelAttrs(t,r,i),delegateObject:{tick:t,item:t,index:r}})})),this.processOverlap(n);var r=n.getChildren(),o=Ht(this.get("theme"),["label","style"],{}),a=this.get("label"),s=a.style,l=a.formatter;if(X(s)){var h=r.map((function(t){return Ht(t.get("delegateObject"),"tick")}));N(r,(function(t,e){var i=t.get("delegateObject").tick,n=l?l(i.name,i,e):i.name,r=Pt({},o,s(n,e,h));t.attr(r)}))}},e.prototype.getTitleAttrs=function(){var t=this.get("title"),e=t.style,i=t.position,n=t.offset,r=t.spacing,o=void 0===r?0:r,a=t.autoRotate,s=e.fontSize,l=.5;"start"===i?l=0:"end"===i&&(l=1);var h=this.getTickPoint(l),u=this.getSidePoint(h,n||o+s/2),c=Pt({x:u.x,y:u.y,text:t.text},e),p=t.rotate,f=p;if(z(p)&&a){f=Ni(this.getAxisVector(h),[1,0],!0)}if(f){var g=Ua(u,f);c.matrix=g}return c},e.prototype.drawTitle=function(t){this.addShape(t,{type:"text",id:this.getElementId("title"),name:"axis-title",attrs:this.getTitleAttrs()})},e.prototype.applyTickStates=function(t,e){if(this.getItemStates(t).length){var i=this.get("tickStates"),n=this.getElementId("label-"+t.id),r=e.findById(n);if(r){var o=Es(t,"label",i);o&&r.attr(o)}var a=this.getElementId("tickline-"+t.id),s=e.findById(a);if(s){var l=Es(t,"tickLine",i);l&&s.attr(l)}}},e.prototype.updateTickStates=function(t){var e=this.getItemStates(t),i=this.get("tickStates"),n=this.get("label"),r=this.getElementByLocalId("label-"+t.id),o=this.get("tickLine"),a=this.getElementByLocalId("tickline-"+t.id);if(e.length){if(r){var s=Es(t,"label",i);s&&r.attr(s)}if(a){var l=Es(t,"tickLine",i);l&&a.attr(l)}}else r&&r.attr(n.style),a&&a.attr(o.style)},e}(gs);function Os(t,e,i,n){var r=e.getChildren(),o=!1;return N(r,(function(e){var r=vs(t,e,i,n);o=o||r})),o}function Ds(t,e,i){return Os(t,e,i,"tail")}var Rs=Object.freeze(Object.defineProperty({__proto__:null,ellipsisHead:function(t,e,i){return Os(t,e,i,"head")},ellipsisMiddle:function(t,e,i){return Os(t,e,i,"middle")},ellipsisTail:Ds,getDefault:function(){return Ds}},Symbol.toStringTag,{value:"Module"}));function _s(t){var e=function(t){var e=t.attr("matrix");return e&&1!==e[0]}(t)?function(t){var e=[0,0,0];return Bi(e,[1,0,0],t),Math.atan2(e[1],e[0])}(t.attr("matrix")):0;return e%360}function Ys(t,e,i,n){var r=!1,o=_s(e),a=t?Math.abs(i.attr("y")-e.attr("y")):Math.abs(i.attr("x")-e.attr("x")),s=(t?i.attr("y")>e.attr("y"):i.attr("x")>e.attr("x"))?e.getBBox():i.getBBox();if(t){var l=Math.abs(Math.cos(o));r=os(l,0,Math.PI/180)?s.width+n>a:s.height/l+n>a}else{l=Math.abs(Math.sin(o));r=os(l,0,Math.PI/180)?s.width+n>a:s.height/l+n>a}return r}function Gs(t,e,i,n){var r=(null==n?void 0:n.minGap)||0,o=e.getChildren().slice().filter((function(t){return t.get("visible")}));if(!o.length)return!1;var a=!1;i&&o.reverse();for(var s=o.length,l=o[0],h=1;h<s;h++){var u=o[h];u.getBBox(),Ys(t,l,u,r)?(u.hide(),a=!0):l=u}return a}function Xs(t,e,i){var n=(null==i?void 0:i.minGap)||0,r=e.getChildren().slice();if(r.length<2)return!1;var o=!1,a=r[0],s=a.getBBox(),l=r[1],h=r.length,u=_s(a),c=t?Math.abs(l.attr("y")-a.attr("y")):Math.abs(l.attr("x")-a.attr("x")),p=0;if(t){var f=Math.abs(Math.cos(u));if(os(f,0,Math.PI/180))p=(ys(r)+n)/c;else p=(s.height/f+n)/c}else{f=Math.abs(Math.sin(u));if(os(f,0,Math.PI/180))p=(ys(r)+n)/c;else p=(s.height/f+n)/c}if(p>1){p=Math.ceil(p);for(var g=0;g<h;g++)g%p!=0&&(r[g].hide(),o=!0)}return o}function zs(t,e,i,n){var r=Xs(t,e,n);return Gs(t,e,!1)&&(r=!0),r}var Vs=Object.freeze(Object.defineProperty({__proto__:null,equidistance:zs,equidistanceWithReverseBoth:function(t,e,i,n){var r=e.getChildren().slice(),o=Xs(t,e,n);if(r.length>2){var a=r[0],s=r[r.length-1];a.get("visible")||(a.show(),Gs(t,e,!1,n)&&(o=!0)),s.get("visible")||(s.show(),Gs(t,e,!0,n)&&(o=!0))}return o},getDefault:function(){return zs},reserveBoth:function(t,e,i,n){var r=(null==n?void 0:n.minGap)||0,o=e.getChildren().slice();if(o.length<=2)return!1;for(var a=!1,s=o.length,l=o[0],h=o[s-1],u=l,c=1;c<s-1;c++){var p=o[c];p.getBBox(),Ys(t,u,p,r)?(p.hide(),a=!0):u=p}return Ys(t,u,h,r)&&(u.hide(),a=!0),a},reserveFirst:function(t,e,i,n){return Gs(t,e,!1,n)},reserveLast:function(t,e,i,n){return Gs(t,e,!0,n)}},Symbol.toStringTag,{value:"Module"}));function Hs(t,e,i,n){var r=e.getChildren();if(!r.length)return!1;if(!t&&r.length<2)return!1;var o=ys(r),a=!1;t?a=!!i&&o>i:a=o>Math.abs(r[1].attr("x")-r[0].attr("x"));a&&function(t,e){N(t,(function(t){var i=Ua({x:t.attr("x"),y:t.attr("y")},e);t.attr("matrix",i)}))}(r,n(i,o));return a}function Ns(t,e,i,n){return Hs(t,e,i,(function(){return pt(n)?n:t?xs.verticalAxisRotate:xs.horizontalAxisRotate}))}var Ws,js=Object.freeze(Object.defineProperty({__proto__:null,fixedAngle:Ns,getDefault:function(){return Ns},unfixedAngle:function(t,e,i){return Hs(t,e,i,(function(e,i){if(!e)return t?xs.verticalAxisRotate:xs.horizontalAxisRotate;if(t)return-Math.acos(e/i);var n=0;return(e>i||(n=Math.asin(e/i))>Math.PI/4)&&(n=Math.PI/4),n}))}},Symbol.toStringTag,{value:"Module"})),qs=Object.freeze(Object.defineProperty({__proto__:null,autoEllipsis:Rs,autoHide:Vs,autoRotate:js},Symbol.toStringTag,{value:"Module"})),Us=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return l(l({},e),{type:"line",locationType:"region",start:null,end:null})},e.prototype.getLinePath=function(){var t=this.get("start"),e=this.get("end"),i=[];return i.push(["M",t.x,t.y]),i.push(["L",e.x,e.y]),i},e.prototype.getInnerLayoutBBox=function(){var e=this.get("start"),i=this.get("end"),n=t.prototype.getInnerLayoutBBox.call(this),r=Math.min(e.x,i.x,n.x),o=Math.min(e.y,i.y,n.y),a=Math.max(e.x,i.x,n.maxX),s=Math.max(e.y,i.y,n.maxY);return{x:r,y:o,minX:r,minY:o,maxX:a,maxY:s,width:a-r,height:s-o}},e.prototype.isVertical=function(){var t=this.get("start"),e=this.get("end");return ft(t.x,e.x)},e.prototype.isHorizontal=function(){var t=this.get("start"),e=this.get("end");return ft(t.y,e.y)},e.prototype.getTickPoint=function(t){var e=this.get("start"),i=this.get("end"),n=i.x-e.x,r=i.y-e.y;return{x:e.x+n*t,y:e.y+r*t}},e.prototype.getSideVector=function(t){var e=Di([0,0],this.getAxisVector()),i=this.get("verticalFactor");return Ei([0,0],[e[1],-1*e[0]],t*i)},e.prototype.getAxisVector=function(){var t=this.get("start"),e=this.get("end");return[e.x-t.x,e.y-t.y]},e.prototype.processOverlap=function(t){var e=this,i=this.isVertical(),n=this.isHorizontal();if(i||n){var r=this.get("label"),o=this.get("title"),a=this.get("verticalLimitLength"),s=r.offset,l=a,h=0,u=0;if(o&&(h=o.style.fontSize,u=o.spacing),l&&(l=l-s-u-h),N(this.get("overlapOrder"),(function(i){r[i]&&e.canProcessOverlap(i)&&e.autoProcessOverlap(i,r[i],t,l)})),o&&z(o.offset)){var c=t.getCanvasBBox(),p=i?c.width:c.height;o.offset=s+p+u+h/2}}},e.prototype.canProcessOverlap=function(t){var e=this.get("label");return"autoRotate"!==t||z(e.rotate)},e.prototype.autoProcessOverlap=function(t,e,i,n){var r=this,o=this.isVertical(),a=!1,s=qs[t];if(!0===e)this.get("label"),a=s.getDefault()(o,i,n);else if(X(e))a=e(o,i,n);else if(H(e)){var l=e;s[l.type]&&(a=s[l.type](o,i,n,l.cfg))}else s[e]&&(a=s[e](o,i,n));if("autoRotate"===t){if(a){var h=i.getChildren(),u=this.get("verticalFactor");N(h,(function(t){if("center"===t.attr("textAlign")){var e=u>0?"end":"start";t.attr("textAlign",e)}}))}}else if("autoHide"===t){N(i.getChildren().slice(0),(function(t){t.get("visible")||(r.get("isRegister")&&r.unregisterElement(t),t.remove())}))}},e}(Fs),Zs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return l(l({},e),{type:"circle",locationType:"circle",center:null,radius:null,startAngle:-Math.PI/2,endAngle:3*Math.PI/2})},e.prototype.getLinePath=function(){var t=this.get("center"),e=t.x,i=t.y,n=this.get("radius"),r=n,o=this.get("startAngle"),a=this.get("endAngle"),s=[];if(Math.abs(a-o)===2*Math.PI)s=[["M",e,i-r],["A",n,r,0,1,1,e,i+r],["A",n,r,0,1,1,e,i-r],["Z"]];else{var l=this.getCirclePoint(o),h=this.getCirclePoint(a),u=Math.abs(a-o)>Math.PI?1:0,c=o>a?0:1;s=[["M",e,i],["L",l.x,l.y],["A",n,r,0,u,c,h.x,h.y],["L",e,i]]}return s},e.prototype.getTickPoint=function(t){var e=this.get("startAngle"),i=e+(this.get("endAngle")-e)*t;return this.getCirclePoint(i)},e.prototype.getSideVector=function(t,e){var i=this.get("center"),n=[e.x-i.x,e.y-i.y];return Ei(n,n,this.get("verticalFactor")*t/Oi(n)),n},e.prototype.getAxisVector=function(t){var e=this.get("center"),i=[t.x-e.x,t.y-e.y];return[i[1],-1*i[0]]},e.prototype.getCirclePoint=function(t,e){var i=this.get("center");return e=e||this.get("radius"),{x:i.x+Math.cos(t)*e,y:i.y+Math.sin(t)*e}},e.prototype.canProcessOverlap=function(t){var e=this.get("label");return"autoRotate"!==t||z(e.rotate)},e.prototype.processOverlap=function(t){var e=this,i=this.get("label"),n=this.get("title"),r=this.get("verticalLimitLength"),o=i.offset,a=r,s=0,l=0;if(n&&(s=n.style.fontSize,l=n.spacing),a&&(a=a-o-l-s),N(this.get("overlapOrder"),(function(n){i[n]&&e.canProcessOverlap(n)&&e.autoProcessOverlap(n,i[n],t,a)})),n&&z(n.offset)){var h=t.getCanvasBBox().height;n.offset=o+h+l+s/2}},e.prototype.autoProcessOverlap=function(t,e,i,n){var r=this,o=!1,a=qs[t];if(n>0)if(!0===e)o=a.getDefault()(!1,i,n);else if(X(e))o=e(!1,i,n);else if(H(e)){var s=e;a[s.type]&&(o=a[s.type](!1,i,n,s.cfg))}else a[e]&&(o=a[e](!1,i,n));if("autoRotate"===t){if(o){var l=i.getChildren(),h=this.get("verticalFactor");N(l,(function(t){if("center"===t.attr("textAlign")){var e=h>0?"end":"start";t.attr("textAlign",e)}}))}}else if("autoHide"===t){N(i.getChildren().slice(0),(function(t){t.get("visible")||(r.get("isRegister")&&r.unregisterElement(t),t.remove())}))}},e}(Fs),Qs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return l(l({},e),{name:"crosshair",type:"base",line:{},text:null,textBackground:{},capture:!1,defaultCfg:{line:{style:{lineWidth:1,stroke:xs.lineColor}},text:{position:"start",offset:10,autoRotate:!1,content:null,style:{fill:xs.textColor,textAlign:"center",textBaseline:"middle",fontFamily:xs.fontFamily}},textBackground:{padding:5,style:{stroke:xs.lineColor}}}})},e.prototype.renderInner=function(t){this.get("line")&&this.renderLine(t),this.get("text")&&(this.renderText(t),this.renderBackground(t))},e.prototype.renderText=function(t){var e=this.get("text"),i=e.style,n=e.autoRotate,r=e.content;if(!z(r)){var o=this.getTextPoint(),a=null;if(n)a=Ua(o,this.getRotateAngle());this.addShape(t,{type:"text",name:"crosshair-text",id:this.getElementId("text"),attrs:l(l(l({},o),{text:r,matrix:a}),i)})}},e.prototype.renderLine=function(t){var e=this.getLinePath(),i=this.get("line").style;this.addShape(t,{type:"path",name:"crosshair-line",id:this.getElementId("line"),attrs:l({path:e},i)})},e.prototype.renderBackground=function(t){var e=this.getElementId("text"),i=t.findById(e),n=this.get("textBackground");if(n&&i){var r=i.getBBox(),o=Ja(n.padding),a=n.style;this.addShape(t,{type:"rect",name:"crosshair-text-background",id:this.getElementId("text-background"),attrs:l({x:r.x-o[3],y:r.y-o[0],width:r.width+o[1]+o[3],height:r.height+o[0]+o[2],matrix:i.attr("matrix")},a)}).toBack()}},e}(gs),Ks=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return l(l({},e),{type:"line",locationType:"region",start:null,end:null})},e.prototype.getRotateAngle=function(){var t=this.getLocation(),e=t.start,i=t.end,n=this.get("text").position,r=Math.atan2(i.y-e.y,i.x-e.x);return"start"===n?r-Math.PI/2:r+Math.PI/2},e.prototype.getTextPoint=function(){var t=this.getLocation(),e=t.start,i=t.end,n=this.get("text");return ls(e,i,n.position,n.offset)},e.prototype.getLinePath=function(){var t=this.getLocation(),e=t.start,i=t.end;return[["M",e.x,e.y],["L",i.x,i.y]]},e}(Qs),$s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return l(l({},e),{type:"circle",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:3*Math.PI/2})},e.prototype.getRotateAngle=function(){var t=this.getLocation(),e=t.startAngle,i=t.endAngle;return"start"===this.get("text").position?e+Math.PI/2:i-Math.PI/2},e.prototype.getTextPoint=function(){var t=this.get("text"),e=t.position,i=t.offset,n=this.getLocation(),r=n.center,o=n.radius,a=n.startAngle,s=n.endAngle,l="start"===e?a:s,h=this.getRotateAngle()-Math.PI,u=rs(r,o,l),c=Math.cos(h)*i,p=Math.sin(h)*i;return{x:u.x+c,y:u.y+p}},e.prototype.getLinePath=function(){var t=this.getLocation(),e=t.center,i=t.radius,n=t.startAngle,r=t.endAngle,o=null;if(r-n==2*Math.PI){var a=e.x,s=e.y;o=[["M",a,s-i],["A",i,i,0,1,1,a,s+i],["A",i,i,0,1,1,a,s-i],["Z"]]}else{var l=rs(e,i,n),h=rs(e,i,r),u=Math.abs(r-n)>Math.PI?1:0,c=n>r?0:1;o=[["M",l.x,l.y],["A",i,i,0,u,c,h.x,h.y]]}return o},e}(Qs),Js="g2-crosshair",tl=Js+"-line",el=Js+"-text",il=((Ws={})[""+Js]={position:"relative"},Ws[""+tl]={position:"absolute",backgroundColor:"rgba(0, 0, 0, 0.25)"},Ws[""+el]={position:"absolute",color:xs.textColor,fontFamily:xs.fontFamily},Ws),nl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return l(l({},e),{name:"crosshair",type:"html",locationType:"region",start:{x:0,y:0},end:{x:0,y:0},capture:!1,text:null,containerTpl:'<div class="'+Js+'"></div>',crosshairTpl:'<div class="'+tl+'"></div>',textTpl:'<span class="'+el+'">{content}</span>',domStyles:null,containerClassName:Js,defaultStyles:il,defaultCfg:{text:{position:"start",content:null,align:"center",offset:10}}})},e.prototype.render=function(){this.resetText(),this.resetPosition()},e.prototype.initCrossHair=function(){var t=this.getContainer(),e=we(this.get("crosshairTpl"));t.appendChild(e),this.applyStyle(tl,e),this.set("crosshairEl",e)},e.prototype.getTextPoint=function(){var t=this.getLocation(),e=t.start,i=t.end,n=this.get("text");return ls(e,i,n.position,n.offset)},e.prototype.resetText=function(){var t=this.get("text"),e=this.get("textEl");if(t){var i=t.content;if(!e){var n=this.getContainer();e=we(Ct(this.get("textTpl"),t)),n.appendChild(e),this.applyStyle(el,e),this.set("textEl",e)}e.innerHTML=i}else e&&e.remove()},e.prototype.isVertical=function(t,e){return t.x===e.x},e.prototype.resetPosition=function(){var t=this.get("crosshairEl");t||(this.initCrossHair(),t=this.get("crosshairEl"));var e=this.get("start"),i=this.get("end"),n=Math.min(e.x,i.x),r=Math.min(e.y,i.y);this.isVertical(e,i)?Se(t,{width:"1px",height:ss(Math.abs(i.y-e.y))}):Se(t,{height:"1px",width:ss(Math.abs(i.x-e.x))}),Se(t,{top:ss(r),left:ss(n)}),this.alignText()},e.prototype.alignText=function(){var t=this.get("textEl");if(t){var e=this.get("text").align,i=t.clientWidth,n=this.getTextPoint();switch(e){case"center":n.x=n.x-i/2;break;case"right":n.x=n.x-i}Se(t,{top:ss(n.y),left:ss(n.x)})}},e.prototype.updateInner=function(e){vt(e,"text")&&this.resetText(),t.prototype.updateInner.call(this,e)},e}(Ls),rl=Object.freeze(Object.defineProperty({__proto__:null,Base:Qs,Circle:$s,Html:nl,Line:Ks},Symbol.toStringTag,{value:"Module"})),ol=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return l(l({},e),{name:"grid",line:{},alternateColor:null,capture:!1,items:[],closed:!1,defaultCfg:{line:{type:"line",style:{lineWidth:1,stroke:xs.lineColor}}}})},e.prototype.getLineType=function(){return(this.get("line")||this.get("defaultCfg").line).type},e.prototype.renderInner=function(t){this.drawGrid(t)},e.prototype.getAlternatePath=function(t,e){var i=this.getGridPath(t),n=e.slice(0).reverse(),r=this.getGridPath(n,!0);return this.get("closed")?i=i.concat(r):(r[0][0]="L",(i=i.concat(r)).push(["Z"])),i},e.prototype.getPathStyle=function(){return this.get("line").style},e.prototype.drawGrid=function(t){var e=this,i=this.get("line"),n=this.get("items"),r=this.get("alternateColor"),o=null;N(n,(function(a,s){var l=a.id||s;if(i){var h=e.getPathStyle();h=X(h)?h(a,s,n):h;var u=e.getElementId("line-"+l),c=e.getGridPath(a.points);e.addShape(t,{type:"path",name:"grid-line",id:u,attrs:Pt({path:c},h)})}if(r&&s>0){var p=e.getElementId("region-"+l),f=s%2==0;if(et(r))f&&e.drawAlternateRegion(p,t,o.points,a.points,r);else{var g=f?r[1]:r[0];e.drawAlternateRegion(p,t,o.points,a.points,g)}}o=a}))},e.prototype.drawAlternateRegion=function(t,e,i,n,r){var o=this.getAlternatePath(i,n);this.addShape(e,{type:"path",id:t,name:"grid-region",attrs:{path:o,fill:r}})},e}(gs);var al,sl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return l(l({},e),{type:"circle",center:null,closed:!0})},e.prototype.getGridPath=function(t,e){var i,n,r,o,a,s,l=this.getLineType(),h=this.get("closed"),u=[];if(t.length)if("circle"===l){var c=this.get("center"),p=t[0],f=(i=c.x,n=c.y,r=p.x,o=p.y,a=r-i,s=o-n,Math.sqrt(a*a+s*s)),g=e?0:1;h?(u.push(["M",c.x,c.y-f]),u.push(["A",f,f,0,0,g,c.x,c.y+f]),u.push(["A",f,f,0,0,g,c.x,c.y-f]),u.push(["Z"])):N(t,(function(t,e){0===e?u.push(["M",t.x,t.y]):u.push(["A",f,f,0,0,g,t.x,t.y])}))}else N(t,(function(t,e){0===e?u.push(["M",t.x,t.y]):u.push(["L",t.x,t.y])})),h&&u.push(["Z"]);return u},e}(ol),ll=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return l(l({},e),{type:"line"})},e.prototype.getGridPath=function(t){var e=[];return N(t,(function(t,i){0===i?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e},e}(ol),hl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return l(l({},e),{name:"legend",layout:"horizontal",locationType:"point",x:0,y:0,offsetX:0,offsetY:0,title:null,background:null})},e.prototype.getLayoutBBox=function(){var e=t.prototype.getLayoutBBox.call(this),i=this.get("maxWidth"),n=this.get("maxHeight"),r=e.width,o=e.height;return i&&(r=Math.min(r,i)),n&&(o=Math.min(o,n)),is(e.minX,e.minY,r,o)},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetLocation()},e.prototype.resetLocation=function(){var t=this.get("x"),e=this.get("y"),i=this.get("offsetX"),n=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t+i,y:e+n})},e.prototype.applyOffset=function(){this.resetLocation()},e.prototype.getDrawPoint=function(){return this.get("currentPoint")},e.prototype.setDrawPoint=function(t){return this.set("currentPoint",t)},e.prototype.renderInner=function(t){this.resetDraw(),this.get("title")&&this.drawTitle(t),this.drawLegendContent(t),this.get("background")&&this.drawBackground(t)},e.prototype.drawBackground=function(t){var e=this.get("background"),i=t.getBBox(),n=Ja(e.padding),r=l({x:0,y:0,width:i.width+n[1]+n[3],height:i.height+n[0]+n[2]},e.style);this.addShape(t,{type:"rect",id:this.getElementId("background"),name:"legend-background",attrs:r}).toBack()},e.prototype.drawTitle=function(t){var e=this.get("currentPoint"),i=this.get("title"),n=i.spacing,r=i.style,o=i.text,a=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"legend-title",attrs:l({text:o,x:e.x,y:e.y},r)}).getBBox();this.set("currentPoint",{x:e.x,y:a.maxY+n})},e.prototype.resetDraw=function(){var t=this.get("background"),e={x:0,y:0};if(t){var i=Ja(t.padding);e.x=i[3],e.y=i[0]}this.set("currentPoint",e)},e}(gs),ul={marker:{style:{inactiveFill:"#000",inactiveOpacity:.45,fill:"#000",opacity:1,size:12}},text:{style:{fill:"#ccc",fontSize:12}}},cl={fill:xs.textColor,fontSize:12,textAlign:"start",textBaseline:"middle",fontFamily:xs.fontFamily,fontWeight:"normal",lineHeight:12},pl="navigation-arrow-right",fl="navigation-arrow-left",gl={right:90*Math.PI/180,left:270*Math.PI/180,up:0,down:180*Math.PI/180},dl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.currentPageIndex=1,e.totalPagesCnt=1,e.pageWidth=0,e.pageHeight=0,e.startX=0,e.startY=0,e.onNavigationBack=function(){var t=e.getElementByLocalId("item-group");if(e.currentPageIndex>1){e.currentPageIndex-=1,e.updateNavigation();var i=e.getCurrentNavigationMatrix();e.get("animate")?t.animate({matrix:i},100):t.attr({matrix:i})}},e.onNavigationAfter=function(){var t=e.getElementByLocalId("item-group");if(e.currentPageIndex<e.totalPagesCnt){e.currentPageIndex+=1,e.updateNavigation();var i=e.getCurrentNavigationMatrix();e.get("animate")?t.animate({matrix:i},100):t.attr({matrix:i})}},e}return r(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return l(l({},e),{name:"legend",type:"category",itemSpacing:24,itemMarginBottom:8,maxItemWidth:null,itemWidth:null,itemHeight:null,itemName:{},itemValue:null,maxWidth:null,maxHeight:null,marker:{},radio:null,items:[],itemStates:{},itemBackground:{},pageNavigator:{},defaultCfg:{title:{spacing:5,style:{fill:xs.textColor,fontSize:12,textAlign:"start",textBaseline:"top"}},background:{padding:5,style:{stroke:xs.lineColor}},itemBackground:{style:{opacity:0,fill:"#fff"}},pageNavigator:ul,itemName:{spacing:16,style:cl},marker:{spacing:8,style:{r:6,symbol:"circle"}},itemValue:{alignRight:!1,formatter:null,style:cl,spacing:6},itemStates:{active:{nameStyle:{opacity:.8}},unchecked:{nameStyle:{fill:xs.uncheckedColor},markerStyle:{fill:xs.uncheckedColor,stroke:xs.uncheckedColor}},inactive:{nameStyle:{fill:xs.uncheckedColor},markerStyle:{opacity:.2}}}}})},e.prototype.isList=function(){return!0},e.prototype.getItems=function(){return this.get("items")},e.prototype.setItems=function(t){this.update({items:t})},e.prototype.updateItem=function(t,e){Pt(t,e),this.clear(),this.render()},e.prototype.clearItems=function(){var t=this.getElementByLocalId("item-group");t&&t.clear()},e.prototype.setItemState=function(t,e,i){t[e]=i;var n=this.getElementByLocalId("item-"+t.id);if(n){var r=this.getItems().indexOf(t),o=this.createOffScreenGroup(),a=this.drawItem(t,r,this.getItemHeight(),o);this.updateElements(a,n),this.clearUpdateStatus(n)}},e.prototype.hasState=function(t,e){return!!t[e]},e.prototype.getItemStates=function(t){var e=this.get("itemStates"),i=[];return N(e,(function(e,n){t[n]&&i.push(n)})),i},e.prototype.clearItemsState=function(t){var e=this;N(this.getItemsByState(t),(function(i){e.setItemState(i,t,!1)}))},e.prototype.getItemsByState=function(t){var e=this,i=this.getItems();return _(i,(function(i){return e.hasState(i,t)}))},e.prototype.drawLegendContent=function(t){this.processItems(),this.drawItems(t)},e.prototype.processItems=function(){N(this.get("items"),(function(t){t.id||(t.id=t.name)}))},e.prototype.drawItems=function(t){var e=this,i=this.addGroup(t,{id:this.getElementId("item-container-group"),name:"legend-item-container-group"}),n=this.addGroup(i,{id:this.getElementId("item-group"),name:"legend-item-group"}),r=this.getItemHeight(),o=this.get("itemWidth"),a=this.get("itemSpacing"),s=this.get("itemMarginBottom"),l=this.get("currentPoint"),h=l.x,u=l.y,c=this.get("layout"),p=this.get("items"),f=!1,g=0,d=this.get("maxWidth"),y=this.get("maxHeight");N(p,(function(t,i){var p=e.drawItem(t,i,r,n),v=p.getBBox(),m=o||v.width;m>g&&(g=m),"horizontal"===c?(d&&d<l.x+m-h&&(f=!0,l.x=h,l.y+=r+s),e.moveElementTo(p,l),l.x+=m+a):(y&&y<l.y+r+s-u&&(f=!0,l.x+=g+a,l.y=u,g=0),e.moveElementTo(p,l),l.y+=r+s)})),f&&this.get("flipPage")&&(this.pageHeight=0,this.pageWidth=0,this.totalPagesCnt=1,this.startX=h,this.startY=u,this.adjustNavigation(t,n))},e.prototype.getItemHeight=function(){var t=this.get("itemHeight");if(!t){var e=(this.get("itemName")||{}).style;if(X(e)){var i=this.getItems();i.forEach((function(n,r){var o=l(l({},cl),e(n,r,i)).fontSize;t<o&&(t=o)}))}else e&&(t=e.fontSize)}return t},e.prototype.drawMarker=function(t,e,i,n){var r=l(l(l({x:0,y:n/2},e.style),{symbol:Ht(i.marker,"symbol","circle")}),Ht(i.marker,"style",{})),o=this.addShape(t,{type:"marker",id:this.getElementId("item-"+i.id+"-marker"),name:"legend-item-marker",attrs:r}),a=o.getBBox();o.attr("x",a.width/2);var s=o.attr(),h=s.stroke,u=s.fill;return h&&o.set("isStroke",!0),u&&o.set("isFill",!0),o},e.prototype.drawItemText=function(t,e,i,n,r,o,a){var s=i.formatter,h=i.style,u=l(l({x:o,y:r/2,text:s?s(n[e],n,a):n[e]},cl),X(h)?h(n,a,this.getItems()):h);return this.addShape(t,{type:"text",id:this.getElementId("item-"+n.id+"-"+e),name:"legend-item-"+e,attrs:u})},e.prototype.drawRadio=function(t,e,i,n,r){var o,a,s=e.style||{},h=null!==(o=s.r)&&void 0!==o?o:n/2,u=3.6*h/8,c=[r+h,n/2-h],p=c[0],f=c[1],g=[p+h,f+h],d=g[0],y=g[1],v=[p,y+h],m=v[0],x=v[1],w=[r,f+h],C=w[0],b=w[1],M=i.showRadio,S=l(l({path:[["M",p,f],["A",h,h,0,0,1,d,y],["L",d-u,y],["L",d,y],["A",h,h,0,0,1,m,x],["L",m,x-u],["L",m,x],["A",h,h,0,0,1,C,b],["L",C+u,b],["L",C,b],["A",h,h,0,0,1,p,f],["L",p,f+u]],stroke:"#000000",fill:"#ffffff"},s),{opacity:M?null!==(a=null==s?void 0:s.opacity)&&void 0!==a?a:.45:0}),A=this.addShape(t,{type:"path",id:this.getElementId("item-"+i.id+"-radio"),name:"legend-item-radio",attrs:S});return A.set("tip",e.tip),A},e.prototype.drawItem=function(t,e,i,n){var r="item-"+t.id,o=this.addGroup(n,{name:"legend-item-container",id:this.getElementId("item-container-"+r),delegateObject:{item:t,index:e}}),a=this.addGroup(o,{name:"legend-item",id:this.getElementId(r),delegateObject:{item:t,index:e}}),s=this.get("marker"),h=this.get("itemName"),u=this.get("itemValue"),c=this.get("itemBackground"),p=this.get("radio"),f=this.getLimitItemWidth(),g=0;if(s){var d=this.drawMarker(a,s,t,i),y=s.spacing,v=Ht(t,["marker","spacing"]);pt(v)&&(y=v),g=d.getBBox().maxX+y}if(h){var m=this.drawItemText(a,"name",h,t,i,g,e);f&&vs(!0,m,ut(f-g,0,f)),g=m.getBBox().maxX+h.spacing}if(u){var x=this.drawItemText(a,"value",u,t,i,g,e);f&&(u.alignRight?(x.attr({textAlign:"right",x:f}),vs(!0,x,ut(f-g,0,f),"head")):vs(!0,x,ut(f-g,0,f))),g=x.getBBox().maxX+u.spacing}if(p&&this.drawRadio(a,p,t,i,g),c){var w=a.getBBox();this.addShape(a,{type:"rect",name:"legend-item-background",id:this.getElementId(r+"-background"),attrs:l({x:0,y:0,width:w.width,height:i},c.style)}).toBack()}return this.applyItemStates(t,a),a},e.prototype.adjustNavigation=function(t,e){var i=this,n=this.startX,r=this.startY,o=this.get("layout"),a=e.findAll((function(t){return"legend-item"===t.get("name")})),s=this.get("maxWidth"),l=this.get("maxHeight"),h=this.get("itemWidth"),u=this.get("itemSpacing"),c=this.getItemHeight(),p=Dt({},ul,this.get("pageNavigator")),f=this.drawNavigation(t,o,"00/00",p),g=f.getBBox(),d={x:n,y:r},y=1,v=0,m=0,x=0,w=this.get("itemMarginBottom");if("horizontal"===o){var C=this.get("maxRow")||1,b=c+(1===C?0:w);this.pageHeight=b*C,N(a,(function(t){var e=t.getBBox(),r=h||e.width;(v&&v<d.x+r+u||s<d.x+r+u+g.width)&&(1===y&&(v=d.x+u,i.pageWidth=v,i.moveElementTo(f,{x:s-u-g.width-g.minX,y:d.y+c/2-g.height/2-g.minY})),y+=1,d.x=n,d.y+=b),i.moveElementTo(t,d),t.getParent().setClip({type:"rect",attrs:{x:d.x,y:d.y,width:r+u,height:c}}),d.x+=r+u}))}else{N(a,(function(t){var e=t.getBBox();e.width>m&&(m=e.width)})),x=m,m+=u,s&&(m=Math.min(s,m),x=Math.min(s,x)),this.pageWidth=m,this.pageHeight=l-Math.max(g.height,c+w);var M=Math.floor(this.pageHeight/(c+w));N(a,(function(t,e){0!==e&&e%M==0&&(y+=1,d.x+=m,d.y=r),i.moveElementTo(t,d),t.getParent().setClip({type:"rect",attrs:{x:d.x,y:d.y,width:m,height:c}}),d.y+=c+w})),this.totalPagesCnt=y,this.moveElementTo(f,{x:n+x/2-g.width/2-g.minX,y:l-g.height-g.minY})}this.pageHeight&&this.pageWidth&&e.getParent().setClip({type:"rect",attrs:{x:this.startX,y:this.startY,width:this.pageWidth,height:this.pageHeight}}),"horizontal"===o&&this.get("maxRow")?this.totalPagesCnt=Math.ceil(y/this.get("maxRow")):this.totalPagesCnt=y,this.currentPageIndex>this.totalPagesCnt&&(this.currentPageIndex=1),this.updateNavigation(f),e.attr("matrix",this.getCurrentNavigationMatrix())},e.prototype.drawNavigation=function(t,e,i,n){var r={x:0,y:0},o=this.addGroup(t,{id:this.getElementId("navigation-group"),name:"legend-navigation"}),a=Ht(n.marker,"style",{}),s=a.size,u=void 0===s?12:s,c=h(a,["size"]),p=this.drawArrow(o,r,fl,"horizontal"===e?"up":"left",u,c);p.on("click",this.onNavigationBack);var f=p.getBBox();r.x+=f.width+2;var g=this.addShape(o,{type:"text",id:this.getElementId("navigation-text"),name:"navigation-text",attrs:l({x:r.x,y:r.y+u/2,text:i,textBaseline:"middle"},Ht(n.text,"style"))}).getBBox();return r.x+=g.width+2,this.drawArrow(o,r,pl,"horizontal"===e?"down":"right",u,c).on("click",this.onNavigationAfter),o},e.prototype.updateNavigation=function(t){var e=Dt({},ul,this.get("pageNavigator")).marker.style,i=e.fill,n=e.opacity,r=e.inactiveFill,o=e.inactiveOpacity,a=this.currentPageIndex+"/"+this.totalPagesCnt,s=t?t.getChildren()[1]:this.getElementByLocalId("navigation-text"),l=t?t.findById(this.getElementId(fl)):this.getElementByLocalId(fl),h=t?t.findById(this.getElementId(pl)):this.getElementByLocalId(pl);s.attr("text",a),l.attr("opacity",1===this.currentPageIndex?o:n),l.attr("fill",1===this.currentPageIndex?r:i),l.attr("cursor",1===this.currentPageIndex?"not-allowed":"pointer"),h.attr("opacity",this.currentPageIndex===this.totalPagesCnt?o:n),h.attr("fill",this.currentPageIndex===this.totalPagesCnt?r:i),h.attr("cursor",this.currentPageIndex===this.totalPagesCnt?"not-allowed":"pointer");var u=l.getBBox().maxX+2;s.attr("x",u),u+=s.getBBox().width+2,this.updateArrowPath(h,{x:u,y:0})},e.prototype.drawArrow=function(t,e,i,n,r,o){var a=e.x,s=e.y,h=this.addShape(t,{type:"path",id:this.getElementId(i),name:i,attrs:l({size:r,direction:n,path:[["M",a+r/2,s],["L",a,s+r],["L",a+r,s+r],["Z"]],cursor:"pointer"},o)});return h.attr("matrix",Ua({x:a+r/2,y:s+r/2},gl[n])),h},e.prototype.updateArrowPath=function(t,e){var i=e.x,n=e.y,r=t.attr(),o=r.size,a=r.direction,s=Ua({x:i+o/2,y:n+o/2},gl[a]);t.attr("path",[["M",i+o/2,n],["L",i,n+o],["L",i+o,n+o],["Z"]]),t.attr("matrix",s)},e.prototype.getCurrentNavigationMatrix=function(){var t=this,e=t.currentPageIndex,i=t.pageWidth,n=t.pageHeight;return Za("horizontal"===this.get("layout")?{x:0,y:n*(1-e)}:{x:i*(1-e),y:0})},e.prototype.applyItemStates=function(t,e){if(this.getItemStates(t).length>0){var i=e.getChildren(),n=this.get("itemStates");N(i,(function(e){var i=e.get("name").split("-")[2],r=Es(t,i,n);r&&(e.attr(r),"marker"!==i||e.get("isStroke")&&e.get("isFill")||(e.get("isStroke")&&e.attr("fill",null),e.get("isFill")&&e.attr("stroke",null)))}))}},e.prototype.getLimitItemWidth=function(){var t=this.get("itemWidth"),e=this.get("maxItemWidth");return e?t&&(e=t<=e?t:e):t&&(e=t),e},e}(hl),yl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return l(l({},e),{type:"continue",min:0,max:100,value:null,colors:[],track:{},rail:{},label:{},handler:{},slidable:!0,tip:null,step:null,maxWidth:null,maxHeight:null,defaultCfg:{label:{align:"rail",spacing:5,formatter:null,style:{fontSize:12,fill:xs.textColor,textBaseline:"middle",fontFamily:xs.fontFamily}},handler:{size:10,style:{fill:"#fff",stroke:"#333"}},track:{},rail:{type:"color",size:20,defaultLength:100,style:{fill:"#DCDEE2"}},title:{spacing:5,style:{fill:xs.textColor,fontSize:12,textAlign:"start",textBaseline:"top"}}}})},e.prototype.isSlider=function(){return!0},e.prototype.getValue=function(){return this.getCurrentValue()},e.prototype.getRange=function(){return{min:this.get("min"),max:this.get("max")}},e.prototype.setRange=function(t,e){this.update({min:t,max:e})},e.prototype.setValue=function(t){var e=this.getValue();this.set("value",t);var i=this.get("group");this.resetTrackClip(),this.get("slidable")&&this.resetHandlers(i),this.delegateEmit("valuechanged",{originValue:e,value:t})},e.prototype.initEvent=function(){var t=this.get("group");this.bindSliderEvent(t),this.bindRailEvent(t),this.bindTrackEvent(t)},e.prototype.drawLegendContent=function(t){this.drawRail(t),this.drawLabels(t),this.fixedElements(t),this.resetTrack(t),this.resetTrackClip(t),this.get("slidable")&&this.resetHandlers(t)},e.prototype.bindSliderEvent=function(t){this.bindHandlersEvent(t)},e.prototype.bindHandlersEvent=function(t){var e=this;t.on("legend-handler-min:drag",(function(t){var i=e.getValueByCanvasPoint(t.x,t.y),n=e.getCurrentValue()[1];n<i&&(n=i),e.setValue([i,n])})),t.on("legend-handler-max:drag",(function(t){var i=e.getValueByCanvasPoint(t.x,t.y),n=e.getCurrentValue()[0];n>i&&(n=i),e.setValue([n,i])}))},e.prototype.bindRailEvent=function(t){},e.prototype.bindTrackEvent=function(t){var e=this,i=null;t.on("legend-track:dragstart",(function(t){i={x:t.x,y:t.y}})),t.on("legend-track:drag",(function(t){if(i){var n=e.getValueByCanvasPoint(i.x,i.y),r=e.getValueByCanvasPoint(t.x,t.y),o=e.getCurrentValue(),a=o[1]-o[0],s=e.getRange(),l=r-n;l<0?o[0]+l>s.min?e.setValue([o[0]+l,o[1]+l]):e.setValue([s.min,s.min+a]):l>0&&(l>0&&o[1]+l<s.max?e.setValue([o[0]+l,o[1]+l]):e.setValue([s.max-a,s.max])),i={x:t.x,y:t.y}}})),t.on("legend-track:dragend",(function(t){i=null}))},e.prototype.drawLabels=function(t){this.drawLabel("min",t),this.drawLabel("max",t)},e.prototype.drawLabel=function(t,e){var i=this.get("label"),n=i.style,r=i.align,o=i.formatter,a=this.get(t),s=this.getLabelAlignAttrs(t,r),h="label-"+t;this.addShape(e,{type:"text",id:this.getElementId(h),name:"legend-label-"+t,attrs:l(l({x:0,y:0,text:X(o)?o(a):a},n),s)})},e.prototype.getLabelAlignAttrs=function(t,e){var i="center",n="middle";return this.isVertical()?(i="start",n="rail"!==e?"min"===t?"top":"bottom":"top"):"rail"!==e?(n="top",i="min"===t?"start":"end"):(i="start",n="middle"),{textAlign:i,textBaseline:n}},e.prototype.getRailPath=function(t,e,i,n){var r=this.get("rail"),o=r.size,a=r.defaultLength,s=r.type,l=this.isVertical(),h=i,u=n;h||(h=l?o:a),u||(u=l?a:o);var c=[];return"color"===s?(c.push(["M",t,e]),c.push(["L",t+h,e]),c.push(["L",t+h,e+u]),c.push(["L",t,e+u]),c.push(["Z"])):(c.push(["M",t+h,e]),c.push(["L",t+h,e+u]),c.push(["L",t,e+u]),c.push(["Z"])),c},e.prototype.drawRail=function(t){var e=this.get("rail").style;this.addShape(t,{type:"path",id:this.getElementId("rail"),name:"legend-rail",attrs:l({path:this.getRailPath(0,0)},e)})},e.prototype.getTrackColor=function(t){var e,i=t.length;if(!i)return null;if(1===i)return t[0];e=this.isVertical()?"l(90)":"l(0)";for(var n=0;n<i;n++){e+=" "+n/(i-1)+":"+t[n]}return e},e.prototype.getTrackPath=function(t){var e=this.getRailShape(t).attr("path");return It(e)},e.prototype.getClipTrackAttrs=function(t){var e,i,n,r,o=this.getCurrentValue(),a=o[0],s=o[1],l=this.getRailBBox(t),h=this.getPointByValue(a,t),u=this.getPointByValue(s,t);return this.isVertical()?(e=l.minX,i=h.y,n=l.width,r=u.y-h.y):(e=h.x,i=l.minY,n=u.x-h.x,r=l.height),{x:e,y:i,width:n,height:r}},e.prototype.getTrackAttrs=function(t){var e=this.get("track"),i=this.get("colors");return Pt({path:this.getTrackPath(t),fill:this.getTrackColor(i)},e.style)},e.prototype.resetTrackClip=function(t){var e=t||this.get("group"),i=this.getElementId("track"),n=e.findById(i),r=n.getClip(),o=this.getClipTrackAttrs(t);r?r.attr(o):n.setClip({type:"rect",attrs:o})},e.prototype.resetTrack=function(t){var e=this.getElementId("track"),i=t.findById(e),n=this.getTrackAttrs(t);i?i.attr(n):this.addShape(t,{type:"path",id:e,draggable:this.get("slidable"),name:"legend-track",attrs:n})},e.prototype.getPointByValue=function(t,e){var i=this.getRange(),n=i.min,r=(t-n)/(i.max-n),o=this.getRailBBox(e),a={x:0,y:0};return this.isVertical()?(a.x=o.minX+o.width/2,a.y=ns(o.minY,o.maxY,r)):(a.x=ns(o.minX,o.maxX,r),a.y=o.minY+o.height/2),a},e.prototype.getRailShape=function(t){return(t||this.get("group")).findById(this.getElementId("rail"))},e.prototype.getRailBBox=function(t){return this.getRailShape(t).getBBox()},e.prototype.getRailCanvasBBox=function(){return this.get("group").findById(this.getElementId("rail")).getCanvasBBox()},e.prototype.isVertical=function(){return"vertical"===this.get("layout")},e.prototype.getValueByCanvasPoint=function(t,e){var i=this.getRange(),n=i.min,r=i.max,o=this.getRailCanvasBBox(),a=this.isVertical(),s=this.get("step"),l=ns(n,r,a?(e-o.minY)/o.height:(t-o.minX)/o.width);s&&(l=n+Math.round((l-n)/s)*s);return l>r&&(l=r),l<n&&(l=n),l},e.prototype.getCurrentValue=function(){var t=this.get("value");if(!t){var e=this.get("values");return e?[Math.max(Math.min.apply(Math,n(e,[this.get("max")])),this.get("min")),Math.min(Math.max.apply(Math,n(e,[this.get("min")])),this.get("max"))]:[this.get("min"),this.get("max")]}return t},e.prototype.resetHandlers=function(t){var e=this.getCurrentValue(),i=e[0],n=e[1];this.resetHandler(t,"min",i),this.resetHandler(t,"max",n)},e.prototype.getHandlerPath=function(t,e){var i=this.isVertical(),n=[],r=t.size,o=e.x,a=e.y,s=1.4*r,l=r/2,h=r/6;if(i){var u=o+.4*s;n.push(["M",o,a]),n.push(["L",u,a+l]),n.push(["L",o+s,a+l]),n.push(["L",o+s,a-l]),n.push(["L",u,a-l]),n.push(["Z"]),n.push(["M",u,a+h]),n.push(["L",o+s-2,a+h]),n.push(["M",u,a-h]),n.push(["L",o+s-2,a-h])}else{var c=a+.4*s;n.push(["M",o,a]),n.push(["L",o-l,c]),n.push(["L",o-l,a+s]),n.push(["L",o+l,a+s]),n.push(["L",o+l,c]),n.push(["Z"]),n.push(["M",o-h,c]),n.push(["L",o-h,a+s-2]),n.push(["M",o+h,c]),n.push(["L",o+h,a+s-2])}return n},e.prototype.resetHandler=function(t,e,i){var n=this.getPointByValue(i,t),r=this.get("handler"),o=this.getHandlerPath(r,n),a=this.getElementId("handler-"+e),s=t.findById(a),h=this.isVertical();s?s.attr("path",o):this.addShape(t,{type:"path",name:"legend-handler-"+e,draggable:!0,id:a,attrs:l(l({path:o},r.style),{cursor:h?"ns-resize":"ew-resize"})})},e.prototype.fixedElements=function(t){var e=t.findById(this.getElementId("rail")),i=t.findById(this.getElementId("label-min")),n=t.findById(this.getElementId("label-max")),r=this.getDrawPoint();this.isVertical()?this.fixedVertail(i,n,e,r):this.fixedHorizontal(i,n,e,r)},e.prototype.fitRailLength=function(t,e,i,n){var r=this.isVertical()?"height":"width",o=this.get("label"),a=o.align,s=o.spacing,l=this.get("max"+bt(r));if(l){var h=("rail"===a?i[r]+t[r]+e[r]+2*s:i[r])-l;h>0&&this.changeRailLength(n,r,i[r]-h)}},e.prototype.changeRailLength=function(t,e,i){var n,r=t.getBBox();n="height"===e?this.getRailPath(r.x,r.y,r.width,i):this.getRailPath(r.x,r.y,i,r.height),t.attr("path",n)},e.prototype.changeRailPosition=function(t,e,i){var n=t.getBBox(),r=this.getRailPath(e,i,n.width,n.height);t.attr("path",r)},e.prototype.fixedHorizontal=function(t,e,i,n){var r=this.get("label"),o=r.align,a=r.spacing,s=i.getBBox(),l=t.getBBox(),h=e.getBBox(),u=s.height;this.fitRailLength(l,h,s,i),s=i.getBBox(),"rail"===o?(t.attr({x:n.x,y:n.y+u/2}),this.changeRailPosition(i,n.x+l.width+a,n.y),e.attr({x:n.x+l.width+s.width+2*a,y:n.y+u/2})):"top"===o?(t.attr({x:n.x,y:n.y}),e.attr({x:n.x+s.width,y:n.y}),this.changeRailPosition(i,n.x,n.y+l.height+a)):(this.changeRailPosition(i,n.x,n.y),t.attr({x:n.x,y:n.y+s.height+a}),e.attr({x:n.x+s.width,y:n.y+s.height+a}))},e.prototype.fixedVertail=function(t,e,i,n){var r=this.get("label"),o=r.align,a=r.spacing,s=i.getBBox(),l=t.getBBox(),h=e.getBBox();if(this.fitRailLength(l,h,s,i),s=i.getBBox(),"rail"===o)t.attr({x:n.x,y:n.y}),this.changeRailPosition(i,n.x,n.y+l.height+a),e.attr({x:n.x,y:n.y+l.height+s.height+2*a});else if("right"===o)t.attr({x:n.x+s.width+a,y:n.y}),this.changeRailPosition(i,n.x,n.y),e.attr({x:n.x+s.width+a,y:n.y+s.height});else{var u=Math.max(l.width,h.width);t.attr({x:n.x,y:n.y}),this.changeRailPosition(i,n.x+u+a,n.y),e.attr({x:n.x,y:n.y+s.height})}},e}(hl),vl="g2-tooltip",ml="g2-tooltip-title",xl="g2-tooltip-list",wl="g2-tooltip-list-item",Cl="g2-tooltip-marker",bl="g2-tooltip-value",Ml="g2-tooltip-name",Sl="g2-tooltip-crosshair-x",Al="g2-tooltip-crosshair-y",Tl=Object.freeze(Object.defineProperty({__proto__:null,CONTAINER_CLASS:vl,CROSSHAIR_X:Sl,CROSSHAIR_Y:Al,LIST_CLASS:xl,LIST_ITEM_CLASS:wl,MARKER_CLASS:Cl,NAME_CLASS:Ml,TITLE_CLASS:ml,VALUE_CLASS:bl},Symbol.toStringTag,{value:"Module"})),Bl=((al={})[""+vl]={position:"absolute",visibility:"visible",zIndex:8,transition:"visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)",backgroundColor:"rgba(255, 255, 255, 0.9)",boxShadow:"0px 0px 10px #aeaeae",borderRadius:"3px",color:"rgb(87, 87, 87)",fontSize:"12px",fontFamily:xs.fontFamily,lineHeight:"20px",padding:"10px 10px 6px 10px"},al[""+ml]={marginBottom:"4px"},al[""+xl]={margin:"0px",listStyleType:"none",padding:"0px"},al[""+wl]={listStyleType:"none",marginBottom:"4px"},al[""+Cl]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},al[""+bl]={display:"inline-block",float:"right",marginLeft:"30px"},al[""+Sl]={position:"absolute",width:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},al[""+Al]={position:"absolute",height:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},al);var kl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return l(l({},e),{name:"tooltip",type:"html",x:0,y:0,items:[],customContent:null,containerTpl:'<div class="'+vl+'"><div class="'+ml+'"></div><ul class="'+xl+'"></ul></div>',itemTpl:'<li class="'+wl+'" data-index={index}>\n <span class="'+Cl+'" style="background:{color}"></span>\n <span class="'+Ml+'">{name}</span>:\n <span class="'+bl+'">{value}</span>\n </li>',xCrosshairTpl:'<div class="'+Sl+'"></div>',yCrosshairTpl:'<div class="'+Al+'"></div>',title:null,showTitle:!0,region:null,crosshairsRegion:null,containerClassName:vl,crosshairs:null,offset:10,position:"right",domStyles:null,defaultStyles:Bl})},e.prototype.render=function(){this.get("customContent")?this.renderCustomContent():(this.resetTitle(),this.renderItems()),this.resetPosition()},e.prototype.clear=function(){this.clearCrosshairs(),this.setTitle(""),this.clearItemDoms()},e.prototype.show=function(){var t=this.getContainer();t&&!this.destroyed&&(this.set("visible",!0),Se(t,{visibility:"visible"}),this.setCrossHairsVisible(!0))},e.prototype.hide=function(){var t=this.getContainer();t&&!this.destroyed&&(this.set("visible",!1),Se(t,{visibility:"hidden"}),this.setCrossHairsVisible(!1))},e.prototype.getLocation=function(){return{x:this.get("x"),y:this.get("y")}},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetPosition()},e.prototype.setCrossHairsVisible=function(t){var e=t?"":"none",i=this.get("xCrosshairDom"),n=this.get("yCrosshairDom");i&&Se(i,{display:e}),n&&Se(n,{display:e})},e.prototype.initContainer=function(){if(t.prototype.initContainer.call(this),this.get("customContent")){this.get("container")&&this.get("container").remove();var e=this.getHtmlContentNode();this.get("parent").appendChild(e),this.set("container",e),this.resetStyles(),this.applyStyles()}},e.prototype.updateInner=function(e){this.get("customContent")?this.renderCustomContent():(function(t,e){var i=!1;return N(e,(function(e){if(vt(t,e))return i=!0,!1})),i}(e,["title","showTitle"])&&this.resetTitle(),vt(e,"items")&&this.renderItems()),t.prototype.updateInner.call(this,e)},e.prototype.initDom=function(){this.cacheDoms()},e.prototype.removeDom=function(){t.prototype.removeDom.call(this),this.clearCrosshairs()},e.prototype.resetPosition=function(){var t,e=this.get("x"),i=this.get("y"),n=this.get("offset"),r=this.getOffset(),o=r.offsetX,a=r.offsetY,s=this.get("position"),l=this.get("region"),h=this.getContainer(),u=this.getBBox(),c=u.width,p=u.height;l&&(t=es(l));var f=function(t,e,i,n,r,o,a){var s=function(t,e,i,n,r,o){var a=t,s=e;switch(o){case"left":a=t-n-i,s=e-r/2;break;case"right":a=t+i,s=e-r/2;break;case"top":a=t-n/2,s=e-r-i;break;case"bottom":a=t-n/2,s=e+i;break;default:a=t+i,s=e-r-i}return{x:a,y:s}}(t,e,i,n,r,o);if(a){var l=function(t,e,i,n,r){return{left:t<r.x,right:t+i>r.x+r.width,top:e<r.y,bottom:e+n>r.y+r.height}}(s.x,s.y,n,r,a);"auto"===o?(l.right&&(s.x=Math.max(0,t-n-i)),l.top&&(s.y=Math.max(0,e-r-i))):"top"===o||"bottom"===o?(l.left&&(s.x=a.x),l.right&&(s.x=a.x+a.width-n),"top"===o&&l.top&&(s.y=e+i),"bottom"===o&&l.bottom&&(s.y=e-r-i)):(l.top&&(s.y=a.y),l.bottom&&(s.y=a.y+a.height-r),"left"===o&&l.left&&(s.x=t+i),"right"===o&&l.right&&(s.x=t-n-i))}return s}(e,i,n,c,p,s,t);Se(h,{left:ss(f.x+o),top:ss(f.y+a)}),this.resetCrosshairs()},e.prototype.renderCustomContent=function(){var t=this.getHtmlContentNode(),e=this.get("parent"),i=this.get("container");i&&i.parentNode===e?e.replaceChild(t,i):e.appendChild(t),this.set("container",t),this.resetStyles(),this.applyStyles()},e.prototype.getHtmlContentNode=function(){var t,e=this.get("customContent");if(e){var i=e(this.get("title"),this.get("items"));t=kt(i)?i:we(i)}return t},e.prototype.cacheDoms=function(){var t=this.getContainer(),e=t.getElementsByClassName(ml)[0],i=t.getElementsByClassName(xl)[0];this.set("titleDom",e),this.set("listDom",i)},e.prototype.resetTitle=function(){var t=this.get("title");this.get("showTitle")&&t?this.setTitle(t):this.setTitle("")},e.prototype.setTitle=function(t){var e=this.get("titleDom");e&&(e.innerText=t)},e.prototype.resetCrosshairs=function(){var t=this.get("crosshairsRegion"),e=this.get("crosshairs");if(t&&e){var i=es(t),n=this.get("xCrosshairDom"),r=this.get("yCrosshairDom");"x"===e?(this.resetCrosshair("x",i),r&&(r.remove(),this.set("yCrosshairDom",null))):"y"===e?(this.resetCrosshair("y",i),n&&(n.remove(),this.set("xCrosshairDom",null))):(this.resetCrosshair("x",i),this.resetCrosshair("y",i)),this.setCrossHairsVisible(this.get("visible"))}else this.clearCrosshairs()},e.prototype.resetCrosshair=function(t,e){var i=this.checkCrosshair(t),n=this.get(t);Se(i,"x"===t?{left:ss(n),top:ss(e.y),height:ss(e.height)}:{top:ss(n),left:ss(e.x),width:ss(e.width)})},e.prototype.checkCrosshair=function(t){var e=t+"CrosshairDom",i=t+"CrosshairTpl",n="CROSSHAIR_"+t.toUpperCase(),r=Tl[n],o=this.get(e),a=this.get("parent");return o||(o=we(this.get(i)),this.applyStyle(r,o),a.appendChild(o),this.set(e,o)),o},e.prototype.renderItems=function(){this.clearItemDoms();var t=this.get("items"),e=this.get("itemTpl"),i=this.get("listDom");i&&(N(t,(function(t){var n=$r.toCSSGradient(t.color),r=l(l({},t),{color:n}),o=we(Ct(e,r));i.appendChild(o)})),this.applyChildrenStyles(i,this.get("domStyles")))},e.prototype.clearItemDoms=function(){this.get("listDom")&&ts(this.get("listDom"))},e.prototype.clearCrosshairs=function(){var t=this.get("xCrosshairDom"),e=this.get("yCrosshairDom");t&&t.remove(),e&&e.remove(),this.set("xCrosshairDom",null),this.set("yCrosshairDom",null)},e}(Ls),Ll={opacity:0},Pl={stroke:"#C5C5C5",strokeOpacity:.85},Il={fill:"#CACED4",opacity:.85};function El(t){return function(t){return zt(t,(function(t,e){return[0===e?"M":"L",t[0],t[1]]}))}(t)}function Fl(t,e,i,n){void 0===n&&(n=!0);var r=new $o({values:t}),o=new lo({values:zt(t,(function(t,e){return e}))}),a=zt(t,(function(t,n){return[o.scale(n)*e,i-r.scale(t)*i]}));return n?function(t){if(t.length<=2)return El(t);var e=[];N(t,(function(t){Xt(t,e.slice(e.length-2))||e.push(t[0],t[1])}));var i=nr(e,!1),n=rt(t),r=n[0],o=n[1];return i.unshift(["M",r,o]),i}(a):El(a)}function Ol(t,e,i,r){var o=n(t),a=function(t,e){var i=new $o({values:t}),n=i.max<0?i.max:Math.max(0,i.min);return e-i.scale(n)*e}(r,i);return o.push(["L",e,a]),o.push(["L",0,a]),o.push(["Z"]),o}var Dl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return l(l({},e),{name:"trend",x:0,y:0,width:200,height:16,smooth:!0,isArea:!1,data:[],backgroundStyle:Ll,lineStyle:Pl,areaStyle:Il})},e.prototype.renderInner=function(t){var e=this.cfg,i=e.width,n=e.height,r=e.data,o=e.smooth,a=e.isArea,s=e.backgroundStyle,h=e.lineStyle,u=e.areaStyle;this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:l({x:0,y:0,width:i,height:n},s)});var c=Fl(r,i,n,o);if(this.addShape(t,{id:this.getElementId("line"),type:"path",attrs:l({path:c},h)}),a){var p=Ol(c,i,n,r);this.addShape(t,{id:this.getElementId("area"),type:"path",attrs:l({path:p},u)})}},e.prototype.applyOffset=function(){var t=this.cfg,e=t.x,i=t.y;this.moveElementTo(this.get("group"),{x:e,y:i})},e}(gs),Rl={fill:"#F7F7F7",stroke:"#BFBFBF",radius:2,opacity:1,cursor:"ew-resize",highLightFill:"#FFF"},_l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return l(l({},e),{name:"handler",x:0,y:0,width:10,height:24,style:Rl})},e.prototype.renderInner=function(t){var e=this.cfg,i=e.width,n=e.height,r=e.style,o=r.fill,a=r.stroke,s=r.radius,l=r.opacity,h=r.cursor;this.addShape(t,{type:"rect",id:this.getElementId("background"),attrs:{x:0,y:0,width:i,height:n,fill:o,stroke:a,radius:s,opacity:l,cursor:h}});var u=1/3*i,c=2/3*i,p=1/4*n,f=3/4*n;this.addShape(t,{id:this.getElementId("line-left"),type:"line",attrs:{x1:u,y1:p,x2:u,y2:f,stroke:a,cursor:h}}),this.addShape(t,{id:this.getElementId("line-right"),type:"line",attrs:{x1:c,y1:p,x2:c,y2:f,stroke:a,cursor:h}})},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},e.prototype.initEvent=function(){this.bindEvents()},e.prototype.bindEvents=function(){var t=this;this.get("group").on("mouseenter",(function(){var e=t.get("style").highLightFill;t.getElementByLocalId("background").attr("fill",e),t.draw()})),this.get("group").on("mouseleave",(function(){var e=t.get("style").fill;t.getElementByLocalId("background").attr("fill",e),t.draw()}))},e.prototype.draw=function(){var t=this.get("container").get("canvas");t&&t.draw()},e}(gs),Yl={fill:"#416180",opacity:.05},Gl={fill:"#5B8FF9",opacity:.15,cursor:"move"},Xl={width:10,height:24},zl={textBaseline:"middle",fill:"#000",opacity:.45},Vl="sliderchange",Hl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.onMouseDown=function(t){return function(i){e.currentTarget=t;var n=i.originalEvent;n.stopPropagation(),n.preventDefault(),e.prevX=Ht(n,"touches.0.pageX",n.pageX),e.prevY=Ht(n,"touches.0.pageY",n.pageY);var r=e.getContainerDOM();r.addEventListener("mousemove",e.onMouseMove),r.addEventListener("mouseup",e.onMouseUp),r.addEventListener("mouseleave",e.onMouseUp),r.addEventListener("touchmove",e.onMouseMove),r.addEventListener("touchend",e.onMouseUp),r.addEventListener("touchcancel",e.onMouseUp)}},e.onMouseMove=function(t){var i=e.cfg.width,n=[e.get("start"),e.get("end")];t.stopPropagation(),t.preventDefault();var r=Ht(t,"touches.0.pageX",t.pageX),o=Ht(t,"touches.0.pageY",t.pageY),a=r-e.prevX,s=e.adjustOffsetRange(a/i);e.updateStartEnd(s),e.updateUI(e.getElementByLocalId("foreground"),e.getElementByLocalId("minText"),e.getElementByLocalId("maxText")),e.prevX=r,e.prevY=o,e.draw(),e.emit(Vl,[e.get("start"),e.get("end")].sort()),e.delegateEmit("valuechanged",{originValue:n,value:[e.get("start"),e.get("end")]})},e.onMouseUp=function(){e.currentTarget&&(e.currentTarget=void 0);var t=e.getContainerDOM();t&&(t.removeEventListener("mousemove",e.onMouseMove),t.removeEventListener("mouseup",e.onMouseUp),t.removeEventListener("mouseleave",e.onMouseUp),t.removeEventListener("touchmove",e.onMouseMove),t.removeEventListener("touchend",e.onMouseUp),t.removeEventListener("touchcancel",e.onMouseUp))},e}return r(e,t),e.prototype.setRange=function(t,e){this.set("minLimit",t),this.set("maxLimit",e);var i=this.get("start"),n=this.get("end"),r=ut(i,t,e),o=ut(n,t,e);this.get("isInit")||i===r&&n===o||this.setValue([r,o])},e.prototype.getRange=function(){return{min:this.get("minLimit")||0,max:this.get("maxLimit")||1}},e.prototype.setValue=function(t){var e=this.getRange();if(V(t)&&2===t.length){var i=[this.get("start"),this.get("end")];this.update({start:ut(t[0],e.min,e.max),end:ut(t[1],e.min,e.max)}),this.get("updateAutoRender")||this.render(),this.delegateEmit("valuechanged",{originValue:i,value:t})}},e.prototype.getValue=function(){return[this.get("start"),this.get("end")]},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return l(l({},e),{name:"slider",x:0,y:0,width:100,height:16,backgroundStyle:{},foregroundStyle:{},handlerStyle:{},textStyle:{},defaultCfg:{backgroundStyle:Yl,foregroundStyle:Gl,handlerStyle:Xl,textStyle:zl}})},e.prototype.update=function(e){var i=e.start,n=e.end,r=l({},e);z(i)||(r.start=ut(i,0,1)),z(n)||(r.end=ut(n,0,1)),t.prototype.update.call(this,r),this.minHandler=this.getChildComponentById(this.getElementId("minHandler")),this.maxHandler=this.getChildComponentById(this.getElementId("maxHandler")),this.trend=this.getChildComponentById(this.getElementId("trend"))},e.prototype.init=function(){this.set("start",ut(this.get("start"),0,1)),this.set("end",ut(this.get("end"),0,1)),t.prototype.init.call(this)},e.prototype.render=function(){t.prototype.render.call(this),this.updateUI(this.getElementByLocalId("foreground"),this.getElementByLocalId("minText"),this.getElementByLocalId("maxText"))},e.prototype.renderInner=function(t){var e=this.cfg;e.start,e.end;var i=e.width,n=e.height,r=e.trendCfg,o=void 0===r?{}:r,a=e.minText,s=e.maxText,h=e.backgroundStyle,u=void 0===h?{}:h,c=e.foregroundStyle,p=void 0===c?{}:c,f=e.textStyle,g=void 0===f?{}:f,d=Dt({},Rl,this.cfg.handlerStyle);Kt(Ht(o,"data"))&&(this.trend=this.addComponent(t,l({component:Dl,id:this.getElementId("trend"),x:0,y:0,width:i,height:n},o))),this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:l({x:0,y:0,width:i,height:n},u)}),this.addShape(t,{id:this.getElementId("minText"),type:"text",attrs:l({y:n/2,textAlign:"right",text:a,silent:!1},g)}),this.addShape(t,{id:this.getElementId("maxText"),type:"text",attrs:l({y:n/2,textAlign:"left",text:s,silent:!1},g)}),this.addShape(t,{id:this.getElementId("foreground"),name:"foreground",type:"rect",attrs:l({y:0,height:n},p)});var y=Ht(d,"width",10),v=Ht(d,"height",24);this.minHandler=this.addComponent(t,{component:_l,id:this.getElementId("minHandler"),name:"handler-min",x:0,y:(n-v)/2,width:y,height:v,cursor:"ew-resize",style:d}),this.maxHandler=this.addComponent(t,{component:_l,id:this.getElementId("maxHandler"),name:"handler-max",x:0,y:(n-v)/2,width:y,height:v,cursor:"ew-resize",style:d})},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},e.prototype.initEvent=function(){this.bindEvents()},e.prototype.updateUI=function(t,e,i){var n=this.cfg,r=n.start,o=n.end,a=n.width,s=n.minText,l=n.maxText,h=n.handlerStyle,u=n.height,c=r*a,p=o*a;this.trend&&(this.trend.update({width:a,height:u}),this.get("updateAutoRender")||this.trend.render()),t.attr("x",c),t.attr("width",p-c);var f=Ht(h,"width",10);e.attr("text",s),i.attr("text",l);var g=this._dodgeText([c,p],e,i),d=g[0],y=g[1];this.minHandler&&(this.minHandler.update({x:c-f/2}),this.get("updateAutoRender")||this.minHandler.render()),N(d,(function(t,i){return e.attr(i,t)})),this.maxHandler&&(this.maxHandler.update({x:p-f/2}),this.get("updateAutoRender")||this.maxHandler.render()),N(y,(function(t,e){return i.attr(e,t)}))},e.prototype.bindEvents=function(){var t=this.get("group");t.on("handler-min:mousedown",this.onMouseDown("minHandler")),t.on("handler-min:touchstart",this.onMouseDown("minHandler")),t.on("handler-max:mousedown",this.onMouseDown("maxHandler")),t.on("handler-max:touchstart",this.onMouseDown("maxHandler"));var e=t.findById(this.getElementId("foreground"));e.on("mousedown",this.onMouseDown("foreground")),e.on("touchstart",this.onMouseDown("foreground"))},e.prototype.adjustOffsetRange=function(t){var e=this.cfg,i=e.start,n=e.end;switch(this.currentTarget){case"minHandler":var r=0-i,o=1-i;return Math.min(o,Math.max(r,t));case"maxHandler":r=0-n,o=1-n;return Math.min(o,Math.max(r,t));case"foreground":r=0-i,o=1-n;return Math.min(o,Math.max(r,t))}},e.prototype.updateStartEnd=function(t){var e=this.cfg,i=e.start,n=e.end;switch(this.currentTarget){case"minHandler":i+=t;break;case"maxHandler":n+=t;break;case"foreground":i+=t,n+=t}this.set("start",i),this.set("end",n)},e.prototype._dodgeText=function(t,e,i){var n,r,o=this.cfg,a=o.handlerStyle,s=o.width,l=Ht(a,"width",10),h=t[0],u=t[1],c=!1;h>u&&(h=(n=[u,h])[0],u=n[1],e=(r=[i,e])[0],i=r[1],c=!0);var p=e.getBBox(),f=i.getBBox(),g=p.width>h-2?{x:h+l/2+2,textAlign:"left"}:{x:h-l/2-2,textAlign:"right"},d=f.width>s-u-2?{x:u-l/2-2,textAlign:"right"}:{x:u+l/2+2,textAlign:"left"};return c?[d,g]:[g,d]},e.prototype.draw=function(){var t=this.get("container"),e=t&&t.get("canvas");e&&e.draw()},e.prototype.getContainerDOM=function(){var t=this.get("container"),e=t&&t.get("canvas");return e&&e.get("container")},e}(gs),Nl={default:{trackColor:"rgba(0,0,0,0)",thumbColor:"rgba(0,0,0,0.15)",size:8,lineCap:"round"},hover:{thumbColor:"rgba(0,0,0,0.2)"}},Wl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.clearEvents=Qt,e.onStartEvent=function(t){return function(i){e.isMobile=t,i.originalEvent.preventDefault();var n=t?Ht(i.originalEvent,"touches.0.clientX"):i.clientX,r=t?Ht(i.originalEvent,"touches.0.clientY"):i.clientY;e.startPos=e.cfg.isHorizontal?n:r,e.bindLaterEvent()}},e.bindLaterEvent=function(){var t=e.getContainerDOM(),i=[];i=e.isMobile?[xe(t,"touchmove",e.onMouseMove),xe(t,"touchend",e.onMouseUp),xe(t,"touchcancel",e.onMouseUp)]:[xe(t,"mousemove",e.onMouseMove),xe(t,"mouseup",e.onMouseUp),xe(t,"mouseleave",e.onMouseUp)],e.clearEvents=function(){i.forEach((function(t){t.remove()}))}},e.onMouseMove=function(t){var i=e.cfg,n=i.isHorizontal,r=i.thumbOffset;t.preventDefault();var o=e.isMobile?Ht(t,"touches.0.clientX"):t.clientX,a=e.isMobile?Ht(t,"touches.0.clientY"):t.clientY,s=n?o:a,l=s-e.startPos;e.startPos=s,e.updateThumbOffset(r+l)},e.onMouseUp=function(t){t.preventDefault(),e.clearEvents()},e.onTrackClick=function(t){var i=e.cfg,n=i.isHorizontal,r=i.x,o=i.y,a=i.thumbLen,s=e.getContainerDOM().getBoundingClientRect(),l=t.clientX,h=t.clientY,u=n?l-s.left-r-a/2:h-s.top-o-a/2,c=e.validateRange(u);e.updateThumbOffset(c)},e.onThumbMouseOver=function(){var t=e.cfg.theme.hover.thumbColor;e.getElementByLocalId("thumb").attr("stroke",t),e.draw()},e.onThumbMouseOut=function(){var t=e.cfg.theme.default.thumbColor;e.getElementByLocalId("thumb").attr("stroke",t),e.draw()},e}return r(e,t),e.prototype.setRange=function(t,e){this.set("minLimit",t),this.set("maxLimit",e);var i=this.getValue(),n=ut(i,t,e);i===n||this.get("isInit")||this.setValue(n)},e.prototype.getRange=function(){return{min:this.get("minLimit")||0,max:this.get("maxLimit")||1}},e.prototype.setValue=function(t){var e=this.getRange(),i=this.getValue();this.update({thumbOffset:(this.get("trackLen")-this.get("thumbLen"))*ut(t,e.min,e.max)}),this.delegateEmit("valuechange",{originalValue:i,value:this.getValue()})},e.prototype.getValue=function(){return ut(this.get("thumbOffset")/(this.get("trackLen")-this.get("thumbLen")),0,1)},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return l(l({},e),{name:"scrollbar",isHorizontal:!0,minThumbLen:20,thumbOffset:0,theme:Nl})},e.prototype.renderInner=function(t){this.renderTrackShape(t),this.renderThumbShape(t)},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},e.prototype.initEvent=function(){this.bindEvents()},e.prototype.renderTrackShape=function(t){var e=this.cfg,i=e.trackLen,n=e.theme,r=Dt({},Nl,void 0===n?{default:{}}:n).default,o=r.lineCap,a=r.trackColor,s=r.size,l=Ht(this.cfg,"size",s),h=this.get("isHorizontal")?{x1:0+l/2,y1:l/2,x2:i-l/2,y2:l/2,lineWidth:l,stroke:a,lineCap:o}:{x1:l/2,y1:0+l/2,x2:l/2,y2:i-l/2,lineWidth:l,stroke:a,lineCap:o};return this.addShape(t,{id:this.getElementId("track"),name:"track",type:"line",attrs:h})},e.prototype.renderThumbShape=function(t){var e=this.cfg,i=e.thumbOffset,n=e.thumbLen,r=e.theme,o=Dt({},Nl,r).default,a=o.size,s=o.lineCap,l=o.thumbColor,h=Ht(this.cfg,"size",a),u=this.get("isHorizontal")?{x1:i+h/2,y1:h/2,x2:i+n-h/2,y2:h/2,lineWidth:h,stroke:l,lineCap:s,cursor:"default"}:{x1:h/2,y1:i+h/2,x2:h/2,y2:i+n-h/2,lineWidth:h,stroke:l,lineCap:s,cursor:"default"};return this.addShape(t,{id:this.getElementId("thumb"),name:"thumb",type:"line",attrs:u})},e.prototype.bindEvents=function(){var t=this.get("group");t.on("mousedown",this.onStartEvent(!1)),t.on("mouseup",this.onMouseUp),t.on("touchstart",this.onStartEvent(!0)),t.on("touchend",this.onMouseUp),t.findById(this.getElementId("track")).on("click",this.onTrackClick);var e=t.findById(this.getElementId("thumb"));e.on("mouseover",this.onThumbMouseOver),e.on("mouseout",this.onThumbMouseOut)},e.prototype.getContainerDOM=function(){var t=this.get("container"),e=t&&t.get("canvas");return e&&e.get("container")},e.prototype.validateRange=function(t){var e=this.cfg,i=e.thumbLen,n=e.trackLen,r=t;return t+i>n?r=n-i:t+i<i&&(r=0),r},e.prototype.draw=function(){var t=this.get("container"),e=t&&t.get("canvas");e&&e.draw()},e.prototype.updateThumbOffset=function(t){var e=this.cfg,i=e.thumbOffset,n=e.isHorizontal,r=e.thumbLen,o=e.size,a=this.validateRange(t);if(a!==i){var s=this.getElementByLocalId("thumb");n?s.attr({x1:a+o/2,x2:a+r-o/2}):s.attr({y1:a+o/2,y2:a+r-o/2}),this.emitOffsetChange(a)}},e.prototype.emitOffsetChange=function(t){var e=this.cfg,i=e.thumbOffset,n=e.trackLen,r=e.thumbLen;this.cfg.thumbOffset=t,this.emit("scrollchange",{thumbOffset:t,ratio:ut(t/(n-r),0,1)}),this.delegateEmit("valuechange",{originalValue:i,value:t})},e}(gs),jl=Us,ql=Zs,Ul=ll,Zl=sl,Ql=dl,Kl=yl,$l=kl;function Jl(t){return 1===Array.from(new Set(t)).length}function th(t){return(K(t)+Q(t))/2}function eh(t,e,i,n){return{x:t+i*Math.cos(n),y:e+i*Math.sin(n)}}function ih(t,e,i,n,r,o){void 0===o&&(o=0);var a=eh(t,e,i,n),s=eh(t,e,i,r),l=eh(t,e,o,n),h=eh(t,e,o,r);if(r-n==2*Math.PI){var u=eh(t,e,i,n+Math.PI),c=eh(t,e,o,n+Math.PI),p=[["M",a.x,a.y],["A",i,i,0,1,1,u.x,u.y],["A",i,i,0,1,1,s.x,s.y],["M",l.x,l.y]];return o&&(p.push(["A",o,o,0,1,0,c.x,c.y]),p.push(["A",o,o,0,1,0,h.x,h.y])),p.push(["M",a.x,a.y]),p.push(["Z"]),p}var f=r-n<=Math.PI?0:1,g=[["M",a.x,a.y],["A",i,i,0,f,1,s.x,s.y],["L",h.x,h.y]];return o&&g.push(["A",o,o,0,f,0,l.x,l.y]),g.push(["L",a.x,a.y]),g.push(["Z"]),g}function nh(t,e,i,n,r){var o=eh(t,e,i,n),a=eh(t,e,i,r);if(ft(r-n,2*Math.PI)){var s=eh(t,e,i,n+Math.PI);return[["M",o.x,o.y],["A",i,i,0,1,1,s.x,s.y],["A",i,i,0,1,1,o.x,o.y],["A",i,i,0,1,0,s.x,s.y],["A",i,i,0,1,0,o.x,o.y],["Z"]]}var l=r-n<=Math.PI?0:1;return[["M",o.x,o.y],["A",i,i,0,l,1,a.x,a.y]]}function rh(t,e){var i,n,r=function(t){if(Yt(t))return null;var e=t[0].x,i=t[0].x,n=t[0].y,r=t[0].y;return N(t,(function(t){e=e>t.x?t.x:e,i=i<t.x?t.x:i,n=n>t.y?t.y:n,r=r<t.y?t.y:r})),{minX:e,maxX:i,minY:n,maxY:r,centerX:(e+i)/2,centerY:(n+r)/2}}(t.points),o=e.startAngle,a=e.endAngle-o;return e.isTransposed?(i=r.maxY*a,n=r.minY*a):(i=r.maxX*a,n=r.minX*a),{startAngle:n+=o,endAngle:i+=o}}function oh(t,e){var i=t.attr(),n=e.attr();return N(i,(function(t,e){void 0===n[e]&&(n[e]=void 0)})),n}function ah(t,e,i){var n=Math.min(e,i),r=Math.max(e,i);return t>=n&&t<=r}function sh(e,i){return"object"===t(e)&&i.forEach((function(t){delete e[t]})),e}function lh(t,e,i){void 0===e&&(e=[]),void 0===i&&(i=new Map);for(var n=0,r=t;n<r.length;n++){var o=r[n];i.has(o)||(e.push(o),i.set(o,!0))}return e}var hh=function(){function t(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),this.x=t,this.y=e,this.height=n,this.width=i}return t.fromRange=function(e,i,n,r){return new t(e,i,n-e,r-i)},t.fromObject=function(e){return new t(e.minX,e.minY,e.width,e.height)},Object.defineProperty(t.prototype,"minX",{get:function(){return this.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxX",{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minY",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxY",{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tl",{get:function(){return{x:this.x,y:this.y}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tr",{get:function(){return{x:this.maxX,y:this.y}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bl",{get:function(){return{x:this.x,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"br",{get:function(){return{x:this.maxX,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return{x:this.x+this.width/2,y:this.minY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return{x:this.maxX,y:this.y+this.height/2}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return{x:this.x+this.width/2,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"left",{get:function(){return{x:this.minX,y:this.y+this.height/2}},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(t){return this.x===t.x&&this.y===t.y&&this.width===t.width&&this.height===t.height},t.prototype.contains=function(t){return t.minX>=this.minX&&t.maxX<=this.maxX&&t.minY>=this.minY&&t.maxY<=this.maxY},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.add=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var i=this.clone();return N(t,(function(t){i.x=Math.min(t.x,i.x),i.y=Math.min(t.y,i.y),i.width=Math.max(t.maxX,i.maxX)-i.x,i.height=Math.max(t.maxY,i.maxY)-i.y})),i},t.prototype.merge=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var i=this.clone();return N(t,(function(t){i.x=Math.max(t.x,i.x),i.y=Math.max(t.y,i.y),i.width=Math.min(t.maxX,i.maxX)-i.x,i.height=Math.min(t.maxY,i.maxY)-i.y})),i},t.prototype.cut=function(e,i){var n=e.width,r=e.height;switch(i){case Jt.TOP:case Jt.TOP_LEFT:case Jt.TOP_RIGHT:return t.fromRange(this.minX,this.minY+r,this.maxX,this.maxY);case Jt.RIGHT:case Jt.RIGHT_TOP:case Jt.RIGHT_BOTTOM:return t.fromRange(this.minX,this.minY,this.maxX-n,this.maxY);case Jt.BOTTOM:case Jt.BOTTOM_LEFT:case Jt.BOTTOM_RIGHT:return t.fromRange(this.minX,this.minY,this.maxX,this.maxY-r);case Jt.LEFT:case Jt.LEFT_TOP:case Jt.LEFT_BOTTOM:return t.fromRange(this.minX+n,this.minY,this.maxX,this.maxY);default:return this}},t.prototype.shrink=function(e){var i=e[0],n=e[1],r=e[2],o=e[3];return new t(this.x+o,this.y+i,this.width-o-n,this.height-i-r)},t.prototype.expand=function(e){var i=e[0],n=e[1],r=e[2],o=e[3];return new t(this.x-o,this.y-i,this.width+o+n,this.height+i+r)},t.prototype.exceed=function(t){return[Math.max(-this.minY+t.minY,0),Math.max(this.maxX-t.maxX,0),Math.max(this.maxY-t.maxY,0),Math.max(-this.minX+t.minX,0)]},t.prototype.collide=function(t){return this.minX<t.maxX&&this.maxX>t.minX&&this.minY<t.maxY&&this.maxY>t.minY},t.prototype.size=function(){return this.width*this.height},t.prototype.isPointIn=function(t){return t.x>=this.minX&&t.x<=this.maxX&&t.y>=this.minY&&t.y<=this.maxY},t}();function uh(t){if(t.isPolar&&!t.isTransposed)return(t.endAngle-t.startAngle)*t.getRadius();var e=t.convert({x:0,y:0}),i=t.convert({x:1,y:0});return Math.sqrt(Math.pow(i.x-e.x,2)+Math.pow(i.y-e.y,2))}function ch(t,e){var i=t.getCenter();return Math.sqrt(Math.pow(e.x-i.x,2)+Math.pow(e.y-i.y,2))}function ph(t,e){var i=!1;if(t)if("theta"===t.type){var n=t.start,r=t.end;i=ah(e.x,n.x,r.x)&&ah(e.y,n.y,r.y)}else{var o=t.invert(e);i=ah(o.x,0,1)&&ah(o.y,0,1)}return i}function fh(t,e){var i=t.getCenter();return Math.atan2(e.y-i.y,e.x-i.x)}function gh(t,e){void 0===e&&(e=0);var i,n=t.start,r=t.end,o=t.getWidth(),a=t.getHeight();if(t.isPolar){var s=t.startAngle,l=t.endAngle,h=t.getCenter(),u=t.getRadius();return{type:"path",startState:{path:ih(h.x,h.y,u+e,s,s)},endState:function(t){var i=(l-s)*t+s;return{path:ih(h.x,h.y,u+e,s,i)}},attrs:{path:ih(h.x,h.y,u+e,s,l)}}}return i=t.isTransposed?{height:a+2*e}:{width:o+2*e},{type:"rect",startState:{x:n.x-e,y:r.y-e,width:t.isTransposed?o+2*e:0,height:t.isTransposed?0:a+2*e},endState:i,attrs:{x:n.x-e,y:r.y-e,width:o+2*e,height:a+2*e}}}var dh=/^(?:(?!0000)[0-9]{4}([-/.]+)(?:(?:0?[1-9]|1[0-2])\1(?:0?[1-9]|1[0-9]|2[0-8])|(?:0?[13-9]|1[0-2])\1(?:29|30)|(?:0?[13578]|1[02])\1(?:31))|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)([-/.]+)0?2\2(?:29))(\s+([01]|([01][0-9]|2[0-3])):([0-9]|[0-5][0-9]):([0-9]|[0-5][0-9]))?$/;function yh(t,e,i,n){return void 0===e&&(e={}),e.type?e.type:"identity"!==t.type&&ge.includes(i)&&["interval"].includes(n)||t.isCategory?"cat":t.type}function vh(t,e,i){var n=e||[];if(pt(t)||z(function(t,e){for(var i=null,n=0;n<t.length;n++){var r=t[n][e];if(!z(r)){i=V(r)?r[0]:r;break}}return i}(n,t))&&Yt(i))return new(la("identity"))({field:t.toString(),values:[t]});var r=nt(n,t);return new(la(Ht(i,"type",function(t){var e="linear";return dh.test(t)?e="timeCat":et(t)&&(e="cat"),e}(r[0]))))(l({field:t,values:r},i))}function mh(t){return t.alias||t.field}function xh(t,e,i){var n,r=t.values.length;if(1===r)n=[.5,1];else{var o=0;n=function(t){if(t.isPolar){var e=t.startAngle;return t.endAngle-e==2*Math.PI}return!1}(e)?e.isTransposed?[(o=1/r*Ht(i,"widthRatio.multiplePie",1/1.3))/2,1-o/2]:[0,1-1/r]:[o=1/r/2,1-o]}return n}function wh(t){var e=t.values.filter((function(t){return!z(t)&&!isNaN(t)}));return Math.max.apply(Math,s(s([],e,!1),[z(t.max)?-1/0:t.max],!1))}function Ch(t,e){var i={start:{x:0,y:0},end:{x:0,y:0}};t.isRect?i=function(t){var e,i;switch(t){case Jt.TOP:e={x:0,y:1},i={x:1,y:1};break;case Jt.RIGHT:e={x:1,y:0},i={x:1,y:1};break;case Jt.BOTTOM:e={x:0,y:0},i={x:1,y:0};break;case Jt.LEFT:e={x:0,y:0},i={x:0,y:1};break;default:e=i={x:0,y:0}}return{start:e,end:i}}(e):t.isPolar&&(i=function(t){var e,i;return t.isTransposed?(e={x:0,y:0},i={x:1,y:0}):(e={x:0,y:0},i={x:0,y:1}),{start:e,end:i}}(t));var n=i.start,r=i.end;return{start:t.convert(n),end:t.convert(r)}}function bh(t){var e=t.start,i=t.end;return e.x===i.x}function Mh(t,e){var i=t.start,n=t.end;return bh(t)?(i.y-n.y)*(e.x-i.x)>0?1:-1:(n.x-i.x)*(i.y-e.y)>0?-1:1}function Sh(t,e){var i=Ht(t,["components","axis"],{});return Dt({},Ht(i,["common"],{}),Dt({},Ht(i,[e],{})))}function Ah(t,e,i){var n=Ht(t,["components","axis"],{});return Dt({},Ht(n,["common","title"],{}),Dt({},Ht(n,[e,"title"],{})),i)}function Th(t){var e=t.x,i=t.y,n=t.circleCenter,r=i.start>i.end,o=t.isTransposed?t.convert({x:r?0:1,y:0}):t.convert({x:0,y:r?0:1}),a=[o.x-n.x,o.y-n.y],s=[1,0],l=o.y>n.y?_i(a,s):-1*_i(a,s),h=l+(e.end-e.start);return{center:n,radius:Math.sqrt(Math.pow(o.x-n.x,2)+Math.pow(o.y-n.y,2)),startAngle:l,endAngle:h}}function Bh(t,e){return St(t)?!1!==t&&{}:Ht(t,[e])}function kh(t,e){return Ht(t,"position",e)}function Lh(t,e){return Ht(e,["title","text"],mh(t))}var Ph=e("Facet",function(){function t(t,e){this.destroyed=!1,this.facets=[],this.view=t,this.cfg=Dt({},this.getDefaultCfg(),e)}return t.prototype.init=function(){this.container||(this.container=this.createContainer());var t=this.view.getData();this.facets=this.generateFacets(t)},t.prototype.render=function(){this.renderViews()},t.prototype.update=function(){},t.prototype.clear=function(){this.clearFacetViews()},t.prototype.destroy=function(){this.clear(),this.container&&(this.container.remove(!0),this.container=void 0),this.destroyed=!0,this.view=void 0,this.facets=[]},t.prototype.facetToView=function(t){var e=t.region,i=t.data,n=t.padding,r=void 0===n?this.cfg.padding:n,o=this.view.createView({region:e,padding:r});o.data(i||[]),t.view=o,this.beforeEachView(o,t);var a=this.cfg.eachView;return a&&a(o,t),this.afterEachView(o,t),o},t.prototype.createContainer=function(){return this.view.getLayer($t.FORE).addGroup()},t.prototype.renderViews=function(){this.createFacetViews()},t.prototype.createFacetViews=function(){var t=this;return this.facets.map((function(e){return t.facetToView(e)}))},t.prototype.clearFacetViews=function(){var t=this;N(this.facets,(function(e){e.view&&(t.view.removeView(e.view),e.view=void 0)}))},t.prototype.parseSpacing=function(){var t=this.view.viewBBox,e=t.width,i=t.height;return this.cfg.spacing.map((function(t,n){return pt(t)?t/(0===n?e:i):parseFloat(t)/100}))},t.prototype.getFieldValues=function(t,e){var i=[],n={};return N(t,(function(t){var r=t[e];z(r)||n[r]||(i.push(r),n[r]=!0)})),i},t.prototype.getRegion=function(t,e,i,n){var r=this.parseSpacing(),o=r[0],a=r[1],s=(1+o)/(0===e?1:e)-o,l=(1+a)/(0===t?1:t)-a,h={x:(s+o)*i,y:(l+a)*n};return{start:h,end:{x:h.x+s,y:h.y+l}}},t.prototype.getDefaultCfg=function(){return{eachView:void 0,showTitle:!0,spacing:[0,0],padding:10,fields:[]}},t.prototype.getDefaultTitleCfg=function(){return{style:{fontSize:14,fill:"#666",fontFamily:this.view.getTheme().fontFamily}}},t.prototype.processAxis=function(t,e){var i=t.getOptions(),n=i.coordinate,r=t.geometries;if("rect"===Ht(n,"type","rect")&&r.length){z(i.axes)&&(i.axes={});var o=i.axes,a=r[0].getXYFields(),s=a[0],l=a[1],h=Bh(o,s),u=Bh(o,l);!1!==h&&(i.axes[s]=this.getXAxisOption(s,o,h,e)),!1!==u&&(i.axes[l]=this.getYAxisOption(l,o,u,e))}},t.prototype.getFacetDataFilter=function(t){return function(e){return function(t,e){for(var i=0;i<t.length;i++)if(!e(t[i],i))return!1;return!0}(t,(function(t){var i=t.field,n=t.value;return!(!z(n)&&i)||e[i]===n}))}},t}()),Ih={},Eh=e("getFacet",(function(t){return Ih[wt(t)]})),Fh=e("registerFacet",(function(t,e){Ih[wt(t)]=e})),Oh=function(){function t(t,e){this.context=t,this.cfg=e,t.addAction(this)}return t.prototype.applyCfg=function(t){Pt(this,t)},t.prototype.init=function(){this.applyCfg(this.cfg)},t.prototype.destroy=function(){this.context.removeAction(this),this.context=null},t}(),Dh=e("Action",Oh),Rh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.execute=function(){this.callback&&this.callback(this.context)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.callback=null},e}(Dh),_h={};function Yh(t,e,i){_h[t]={ActionClass:e,cfg:i}}function Gh(t,e){var i=new Rh(e);return i.callback=t,i.name="callback",i}function Xh(t,e){for(var i=[t[0]],n=1,r=t.length;n<r;n+=2){var o=e.convert({x:t[n],y:t[n+1]});i.push(o.x,o.y)}return i}function zh(t,e){var i=e.isTransposed,n=t[1],r=t[6],o=t[7],a=e.convert({x:r,y:o});return["A",n,n,0,0,i?0:1,a.x,a.y]}function Vh(t,e,i){for(var n=!!e,r=[],o=0,a=t.length;o<a;o+=2)r.push([t[o],t[o+1]]);var s,l,h,u=function(t,e,i,n){var r,o,a,s,l,h,u,c=[],p=!!n;if(p){a=n[0],s=n[1];for(var f=0,g=t.length;f<g;f++)a=Pi([0,0],a,y=t[f]),s=Ii([0,0],s,y)}f=0;for(var d=t.length;f<d;f++){var y=t[f];if(0!==f||i)if(f!==d-1||i){r=t[i?f?f-1:d-1:f-1],o=t[i?(f+1)%d:f+1];var v=[0,0];v=Ei(v=Yi(v,o,r),v,e);var m=Fi(y,r),x=Fi(y,o),w=m+x;0!==w&&(m/=w,x/=w);var C=Ei([0,0],v,-m),b=Ei([0,0],v,x);h=ki([0,0],y,C),l=Pi([0,0],l=ki([0,0],y,b),Ii([0,0],o,y)),l=Ii([0,0],l,Pi([0,0],o,y)),h=Pi([0,0],h=ki([0,0],y,C=Ei([0,0],C=Yi([0,0],l,y),-m/x)),Ii([0,0],r,y)),h=Ii([0,0],h,Pi([0,0],r,y)),l=ki([0,0],y,b=Ei([0,0],b=Yi([0,0],y,h),x/m)),p&&(h=Pi([0,0],h=Ii([0,0],h,a),s),l=Pi([0,0],l=Ii([0,0],l,a),s)),c.push(u),c.push(h),u=l}else h=y,c.push(u),c.push(h);else u=y}return i&&c.push(c.shift()),c}(r,.4,n,i),c=r.length,p=[];for(o=0;o<c-1;o++)s=u[2*o],l=u[2*o+1],h=r[o+1],p.push(["C",s[0],s[1],l[0],l[1],h[0],h[1]]);return n&&(s=u[c],l=u[c+1],h=r[0],p.push(["C",s[0],s[1],l[0],l[1],h[0],h[1]])),p}function Hh(t,e){return function(t,e){var i=[];if(t.length){i.push(["M",t[0].x,t[0].y]);for(var n=1,r=t.length;n<r;n+=1){var o=t[n];i.push(["L",o.x,o.y])}e&&i.push(["Z"])}return i}(t,e)}function Nh(t,e,i){var n=[],r=t[0],o=null;if(t.length<=2)return Hh(t,e);for(var a=0,s=t.length;a<s;a++){var l=t[a];o&&o.x===l.x&&o.y===l.y||(n.push(l.x),n.push(l.y),o=l)}var h=Vh(n,e,i||[[0,0],[1,1]]);return h.unshift(["M",r.x,r.y]),h}function Wh(t,e){var i,n,r,o=[];return N(e,(function(a,s){switch(a[0].toLowerCase()){case"m":case"c":case"q":o.push(Xh(a,t));break;case"l":i=e[s-1],n=a,r=t.isTransposed,(r?i[i.length-2]===n[1]:i[i.length-1]===n[2])?o=o.concat(function(t,e,i){var n=i.isTransposed,r=i.startAngle,o=i.endAngle,a="a"===t[0].toLowerCase()?{x:t[6],y:t[7]}:{x:t[1],y:t[2]},s={x:e[1],y:e[2]},l=[],h=n?"y":"x",u=Math.abs(s[h]-a[h])*(o-r),c=s[h]>=a[h]?1:0,p=u>Math.PI?1:0,f=i.convert(s),g=ch(i,f);if(g>=.5)if(u===2*Math.PI){var d={x:(s.x+a.x)/2,y:(s.y+a.y)/2},y=i.convert(d);l.push(["A",g,g,0,p,c,y.x,y.y]),l.push(["A",g,g,0,p,c,f.x,f.y])}else l.push(["A",g,g,0,p,c,f.x,f.y]);return l}(i,n,t)):o.push(Xh(a,t));break;case"a":o.push(zh(a,t));break;default:o.push(a)}})),function(t){N(t,(function(e,i){if("a"===e[0].toLowerCase()){var n=t[i-1],r=t[i+1];r&&"a"===r[0].toLowerCase()?n&&"l"===n[0].toLowerCase()&&(n[0]="M"):n&&"a"===n[0].toLowerCase()&&r&&"l"===r[0].toLowerCase()&&(r[0]="M")}}))}(o),o}function jh(t,e){var i=t.event.target.getCanvasBBox();return i.width>=e||i.height>=e?i:null}function qh(t){var e,i=t.event.target;return i&&(e=i.get("element")),e}function Uh(t){var e,i=t.event.target;return i&&(e=i.get("delegateObject")),e}function Zh(t){var e=t.event.gEvent;return!(e&&e.fromShape&&e.toShape&&e.fromShape.get("element")===e.toShape.get("element"))}function Qh(t){return t&&t.component&&t.component.isList()}function Kh(t){return t&&t.component&&t.component.isSlider()}function $h(t){var e=t.event.target;return e&&"mask"===e.get("name")}function Jh(t,e){if("path"===t.event.target.get("type")){var i=function(t,e){var i=t.event.target,n=i.getCanvasBBox();return n.width>=e||n.height>=e?i.attr("path"):null}(t,e);if(!i)return;return function(t,e){var i=eu(t),n=ou(e);return i.filter((function(t){var e,i,r=t.shape;if("path"===r.get("type"))e=ou(r.attr("path"));else{var o=r.getCanvasBBox();e=[[(i=o).minX,i.minY],[i.maxX,i.minY],[i.maxX,i.maxY],[i.minX,i.maxY]]}return function(t,e){if(t.length<2||e.length<2)return!1;var i,n,r=Sr(t),o=Sr(e);if(i=r,(n=o).minX>i.maxX||n.maxX<i.minX||n.minY>i.maxY||n.maxY<i.minY)return!1;var a=!1;if(N(e,(function(e){if(Cr(t,e[0],e[1]))return a=!0,!1})),a)return!0;if(N(t,(function(t){if(Cr(e,t[0],t[1]))return a=!0,!1})),a)return!0;var s=br(t),l=br(e),h=!1;return N(l,(function(t){if(Mr(s,t))return h=!0,!1})),h}(n,e)}))}(t.view,i)}var n=jh(t,e);return n?ru(t.view,n):null}function tu(t,e,i){var n=jh(t,i);if(!n)return null;var r=t.view,o=uu(r,e,{x:n.x,y:n.y}),a=uu(r,e,{x:n.maxX,y:n.maxY});return ru(e,{minX:o.x,minY:o.y,maxX:a.x,maxY:a.y})}function eu(t){var e=t.geometries,i=[];return N(e,(function(t){var e=t.elements;i=i.concat(e)})),t.views&&t.views.length&&N(t.views,(function(t){i=i.concat(eu(t))})),i}function iu(t,e){var i=t.geometries,n=[];return N(i,(function(t){var i=t.getElementsBy((function(t){return t.hasState(e)}));n=n.concat(i)})),n}function nu(t,e){var i=t.getModel().data;return V(i)?i[0][e]:i[e]}function ru(t,e){var i=eu(t),n=[];return N(i,(function(t){var i,r,o=t.shape.getCanvasBBox();i=e,(r=o).minX>i.maxX||r.maxX<i.minX||r.minY>i.maxY||r.maxY<i.minY||n.push(t)})),n}function ou(t){var e=[];return N(t,(function(t){if("A"!==t[0])for(var i=1;i<t.length;i+=2)e.push([t[i],t[i+1]]);else{var n=t.length;e.push([t[n-2],t[n-1]])}})),e}function au(t){return t.getComponents().map((function(t){return t.component}))}function su(t,e){var i=e.x-t.x,n=e.y-t.y;return Math.sqrt(i*i+n*n)}function lu(t,e){return t.x<=e.x&&t.maxX>=e.x&&t.y<=e.y&&t.maxY>e.y}function hu(t){var e=t.parent,i=null;return e&&(i=e.views.filter((function(e){return e!==t}))),i}function uu(t,e,i){var n=function(t,e){return t.getCoordinate().invert(e)}(t,i);return e.getCoordinate().convert(n)}function cu(t,e,i,n){var r=!1;return N(t,(function(t){if(t[i]===e[i]&&t[n]===e[n])return r=!0,!1})),r}function pu(t,e){var i=t.getScaleByField(e);return!i&&t.views&&N(t.views,(function(t){if(i=pu(t,e))return!1})),i}var fu=function(){function t(t){this.actions=[],this.event=null,this.cacheMap={},this.view=t}return t.prototype.cache=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length)return this.cacheMap[t[0]];2===t.length&&(this.cacheMap[t[0]]=t[1])},t.prototype.getAction=function(t){return this.actions.find((function(e){return e.name===t}))},t.prototype.addAction=function(t){this.actions.push(t)},t.prototype.removeAction=function(t){var e=this.actions,i=this.actions.indexOf(t);i>=0&&e.splice(i,1)},t.prototype.getCurrentPoint=function(){var t=this.event;return t?t.target instanceof HTMLElement?this.view.getCanvas().getPointByClient(t.clientX,t.clientY):{x:t.x,y:t.y}:null},t.prototype.getCurrentShape=function(){return Ht(this.event,["gEvent","shape"])},t.prototype.isInPlot=function(){var t=this.getCurrentPoint();return!!t&&this.view.isPointInPlot(t)},t.prototype.isInShape=function(t){var e=this.getCurrentShape();return!!e&&e.get("name")===t},t.prototype.isInComponent=function(t){var e=au(this.view),i=this.getCurrentPoint();return!!i&&!!e.find((function(e){var n=e.getBBox();return t?e.get("name")===t&&lu(n,i):lu(n,i)}))},t.prototype.destroy=function(){N(this.actions.slice(),(function(t){t.destroy()})),this.view=null,this.event=null,this.actions=null,this.cacheMap=null},t}(),gu=function(){function t(t,e){this.view=t,this.cfg=e}return t.prototype.init=function(){this.initEvents()},t.prototype.initEvents=function(){},t.prototype.clearEvents=function(){},t.prototype.destroy=function(){this.clearEvents()},t}(),du=e("Interaction",gu);function yu(t,e,i){var n=t.split(":"),r=n[0],o=e.getAction(r)||function(t,e){var i=_h[t],n=null;return i&&((n=new(0,i.ActionClass)(e,i.cfg)).name=t,n.init()),n}(r,e);if(!o)throw new Error("There is no action named ".concat(r));return{action:o,methodName:n[1],arg:i}}function vu(t){var e=t.action,i=t.methodName,n=t.arg;if(!e[i])throw new Error("Action(".concat(e.name,") doesn't have a method called ").concat(i));e[i](n)}var mu="start",xu="showEnable",wu="end",Cu="rollback",bu="processing",Mu=function(t){function e(e,i){var n=t.call(this,e,i)||this;return n.callbackCaches={},n.emitCaches={},n.steps=i,n}return r(e,t),e.prototype.init=function(){this.initContext(),t.prototype.init.call(this)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.steps=null,this.context&&(this.context.destroy(),this.context=null),this.callbackCaches=null,this.view=null},e.prototype.initEvents=function(){var t=this;N(this.steps,(function(e,i){N(e,(function(e){var n=t.getActionCallback(i,e);n&&t.bindEvent(e.trigger,n)}))}))},e.prototype.clearEvents=function(){var t=this;N(this.steps,(function(e,i){N(e,(function(e){var n=t.getActionCallback(i,e);n&&t.offEvent(e.trigger,n)}))}))},e.prototype.initContext=function(){var t=this.view,e=new fu(t);this.context=e,N(this.steps,(function(t){N(t,(function(t){if(X(t.action))t.actionObject={action:Gh(t.action,e),methodName:"execute"};else if(et(t.action))t.actionObject=yu(t.action,e,t.arg);else if(V(t.action)){var i=t.action,n=V(t.arg)?t.arg:[t.arg];t.actionObject=[],N(i,(function(i,r){t.actionObject.push(yu(i,e,n[r]))}))}}))}))},e.prototype.isAllowStep=function(t){var e=this.currentStepName,i=this.steps;if(e===t)return!0;if(t===xu)return!0;if(t===bu)return e===mu;if(t===mu)return e!==bu;if(t===wu)return e===bu||e===mu;if(t===Cu){if(i[wu])return e===wu;if(e===mu)return!0}return!1},e.prototype.isAllowExecute=function(t,e){if(this.isAllowStep(t)){var i=this.getKey(t,e);return(!e.once||!this.emitCaches[i])&&(!e.isEnable||e.isEnable(this.context))}return!1},e.prototype.enterStep=function(t){this.currentStepName=t,this.emitCaches={}},e.prototype.afterExecute=function(t,e){t!==xu&&this.currentStepName!==t&&this.enterStep(t);var i=this.getKey(t,e);this.emitCaches[i]=!0},e.prototype.getKey=function(t,e){return t+e.trigger+e.action},e.prototype.getActionCallback=function(t,e){var i=this,n=this.context,r=this.callbackCaches,o=e.actionObject;if(e.action&&o){var a=this.getKey(t,e);if(!r[a]){var s=function(r){n.event=r,i.isAllowExecute(t,e)?(V(o)?N(o,(function(t){n.event=r,vu(t)})):(n.event=r,vu(o)),i.afterExecute(t,e),e.callback&&(n.event=r,e.callback(n))):n.event=null};e.debounce?r[a]=Et(s,e.debounce.wait,e.debounce.immediate):e.throttle?r[a]=qt(s,e.throttle.wait,{leading:e.throttle.leading,trailing:e.throttle.trailing}):r[a]=s}return r[a]}return null},e.prototype.bindEvent=function(t,e){var i=t.split(":");"window"===i[0]?window.addEventListener(i[1],e):"document"===i[0]?document.addEventListener(i[1],e):this.view.on(t,e)},e.prototype.offEvent=function(t,e){var i=t.split(":");"window"===i[0]?window.removeEventListener(i[1],e):"document"===i[0]?document.removeEventListener(i[1],e):this.view.off(t,e)},e}(du),Su={};function Au(t){return Su[wt(t)]}function Tu(t,e){Su[wt(t)]=e}function Bu(t){var e,i={point:{default:{fill:t.pointFillColor,r:t.pointSize,stroke:t.pointBorderColor,lineWidth:t.pointBorder,fillOpacity:t.pointFillOpacity},active:{stroke:t.pointActiveBorderColor,lineWidth:t.pointActiveBorder},selected:{stroke:t.pointSelectedBorderColor,lineWidth:t.pointSelectedBorder},inactive:{fillOpacity:t.pointInactiveFillOpacity,strokeOpacity:t.pointInactiveBorderOpacity}},hollowPoint:{default:{fill:t.hollowPointFillColor,lineWidth:t.hollowPointBorder,stroke:t.hollowPointBorderColor,strokeOpacity:t.hollowPointBorderOpacity,r:t.hollowPointSize},active:{stroke:t.hollowPointActiveBorderColor,strokeOpacity:t.hollowPointActiveBorderOpacity},selected:{lineWidth:t.hollowPointSelectedBorder,stroke:t.hollowPointSelectedBorderColor,strokeOpacity:t.hollowPointSelectedBorderOpacity},inactive:{strokeOpacity:t.hollowPointInactiveBorderOpacity}},area:{default:{fill:t.areaFillColor,fillOpacity:t.areaFillOpacity,stroke:null},active:{fillOpacity:t.areaActiveFillOpacity},selected:{fillOpacity:t.areaSelectedFillOpacity},inactive:{fillOpacity:t.areaInactiveFillOpacity}},hollowArea:{default:{fill:null,stroke:t.hollowAreaBorderColor,lineWidth:t.hollowAreaBorder,strokeOpacity:t.hollowAreaBorderOpacity},active:{fill:null,lineWidth:t.hollowAreaActiveBorder},selected:{fill:null,lineWidth:t.hollowAreaSelectedBorder},inactive:{strokeOpacity:t.hollowAreaInactiveBorderOpacity}},interval:{default:{fill:t.intervalFillColor,fillOpacity:t.intervalFillOpacity},active:{stroke:t.intervalActiveBorderColor,lineWidth:t.intervalActiveBorder},selected:{stroke:t.intervalSelectedBorderColor,lineWidth:t.intervalSelectedBorder},inactive:{fillOpacity:t.intervalInactiveFillOpacity,strokeOpacity:t.intervalInactiveBorderOpacity}},hollowInterval:{default:{fill:t.hollowIntervalFillColor,stroke:t.hollowIntervalBorderColor,lineWidth:t.hollowIntervalBorder,strokeOpacity:t.hollowIntervalBorderOpacity},active:{stroke:t.hollowIntervalActiveBorderColor,lineWidth:t.hollowIntervalActiveBorder,strokeOpacity:t.hollowIntervalActiveBorderOpacity},selected:{stroke:t.hollowIntervalSelectedBorderColor,lineWidth:t.hollowIntervalSelectedBorder,strokeOpacity:t.hollowIntervalSelectedBorderOpacity},inactive:{stroke:t.hollowIntervalInactiveBorderColor,lineWidth:t.hollowIntervalInactiveBorder,strokeOpacity:t.hollowIntervalInactiveBorderOpacity}},line:{default:{stroke:t.lineBorderColor,lineWidth:t.lineBorder,strokeOpacity:t.lineBorderOpacity,fill:null,lineAppendWidth:10,lineCap:"round",lineJoin:"round"},active:{lineWidth:t.lineActiveBorder},selected:{lineWidth:t.lineSelectedBorder},inactive:{strokeOpacity:t.lineInactiveBorderOpacity}}},n=function(t){return{title:{autoRotate:!0,position:"center",spacing:t.axisTitleSpacing,style:{fill:t.axisTitleTextFillColor,fontSize:t.axisTitleTextFontSize,lineHeight:t.axisTitleTextLineHeight,textBaseline:"middle",fontFamily:t.fontFamily}},label:{autoRotate:!1,autoEllipsis:!1,autoHide:{type:"equidistance",cfg:{minGap:6}},offset:t.axisLabelOffset,style:{fill:t.axisLabelFillColor,fontSize:t.axisLabelFontSize,lineHeight:t.axisLabelLineHeight,fontFamily:t.fontFamily}},line:{style:{lineWidth:t.axisLineBorder,stroke:t.axisLineBorderColor}},grid:{line:{type:"line",style:{stroke:t.axisGridBorderColor,lineWidth:t.axisGridBorder,lineDash:t.axisGridLineDash}},alignTick:!0,animate:!0},tickLine:{style:{lineWidth:t.axisTickLineBorder,stroke:t.axisTickLineBorderColor},alignTick:!0,length:t.axisTickLineLength},subTickLine:null,animate:!0}}(t),r=function(t){return{title:null,marker:{symbol:"circle",spacing:t.legendMarkerSpacing,style:{r:t.legendCircleMarkerSize,fill:t.legendMarkerColor}},itemName:{spacing:5,style:{fill:t.legendItemNameFillColor,fontFamily:t.fontFamily,fontSize:t.legendItemNameFontSize,lineHeight:t.legendItemNameLineHeight,fontWeight:t.legendItemNameFontWeight,textAlign:"start",textBaseline:"middle"}},itemStates:{active:{nameStyle:{opacity:.8}},unchecked:{nameStyle:{fill:"#D8D8D8"},markerStyle:{fill:"#D8D8D8",stroke:"#D8D8D8"}},inactive:{nameStyle:{fill:"#D8D8D8"},markerStyle:{opacity:.2}}},flipPage:!0,pageNavigator:{marker:{style:{size:t.legendPageNavigatorMarkerSize,inactiveFill:t.legendPageNavigatorMarkerInactiveFillColor,inactiveOpacity:t.legendPageNavigatorMarkerInactiveFillOpacity,fill:t.legendPageNavigatorMarkerFillColor,opacity:t.legendPageNavigatorMarkerFillOpacity}},text:{style:{fill:t.legendPageNavigatorTextFillColor,fontSize:t.legendPageNavigatorTextFontSize}}},animate:!1,maxItemWidth:200,itemSpacing:t.legendItemSpacing,itemMarginBottom:t.legendItemMarginBottom,padding:t.legendPadding}}(t);return{background:t.backgroundColor,defaultColor:t.brandColor,subColor:t.subColor,semanticRed:t.paletteSemanticRed,semanticGreen:t.paletteSemanticGreen,padding:"auto",fontFamily:t.fontFamily,columnWidthRatio:.5,maxColumnWidth:null,minColumnWidth:null,roseWidthRatio:.9999999,multiplePieWidthRatio:1/1.3,colors10:t.paletteQualitative10,colors20:t.paletteQualitative20,sequenceColors:t.paletteSequence,shapes:{point:["hollow-circle","hollow-square","hollow-bowtie","hollow-diamond","hollow-hexagon","hollow-triangle","hollow-triangle-down","circle","square","bowtie","diamond","hexagon","triangle","triangle-down","cross","tick","plus","hyphen","line"],line:["line","dash","dot","smooth"],area:["area","smooth","line","smooth-line"],interval:["rect","hollow-rect","line","tick"]},sizes:[1,10],geometries:{interval:{rect:{default:{style:i.interval.default},active:{style:i.interval.active},inactive:{style:i.interval.inactive},selected:{style:function(t){var e=t.geometry.coordinate;if(e.isPolar&&e.isTransposed){var n=rh(t.getModel(),e),r=(n.startAngle+n.endAngle)/2;return{matrix:Hi(null,[["t",7.5*Math.cos(r),7.5*Math.sin(r)]])}}return i.interval.selected}}},"hollow-rect":{default:{style:i.hollowInterval.default},active:{style:i.hollowInterval.active},inactive:{style:i.hollowInterval.inactive},selected:{style:i.hollowInterval.selected}},line:{default:{style:i.hollowInterval.default},active:{style:i.hollowInterval.active},inactive:{style:i.hollowInterval.inactive},selected:{style:i.hollowInterval.selected}},tick:{default:{style:i.hollowInterval.default},active:{style:i.hollowInterval.active},inactive:{style:i.hollowInterval.inactive},selected:{style:i.hollowInterval.selected}},funnel:{default:{style:i.interval.default},active:{style:i.interval.active},inactive:{style:i.interval.inactive},selected:{style:i.interval.selected}},pyramid:{default:{style:i.interval.default},active:{style:i.interval.active},inactive:{style:i.interval.inactive},selected:{style:i.interval.selected}}},line:{line:{default:{style:i.line.default},active:{style:i.line.active},inactive:{style:i.line.inactive},selected:{style:i.line.selected}},dot:{default:{style:l(l({},i.line.default),{lineCap:null,lineDash:[1,1]})},active:{style:l(l({},i.line.active),{lineCap:null,lineDash:[1,1]})},inactive:{style:l(l({},i.line.inactive),{lineCap:null,lineDash:[1,1]})},selected:{style:l(l({},i.line.selected),{lineCap:null,lineDash:[1,1]})}},dash:{default:{style:l(l({},i.line.default),{lineCap:null,lineDash:[5.5,1]})},active:{style:l(l({},i.line.active),{lineCap:null,lineDash:[5.5,1]})},inactive:{style:l(l({},i.line.inactive),{lineCap:null,lineDash:[5.5,1]})},selected:{style:l(l({},i.line.selected),{lineCap:null,lineDash:[5.5,1]})}},smooth:{default:{style:i.line.default},active:{style:i.line.active},inactive:{style:i.line.inactive},selected:{style:i.line.selected}},hv:{default:{style:i.line.default},active:{style:i.line.active},inactive:{style:i.line.inactive},selected:{style:i.line.selected}},vh:{default:{style:i.line.default},active:{style:i.line.active},inactive:{style:i.line.inactive},selected:{style:i.line.selected}},hvh:{default:{style:i.line.default},active:{style:i.line.active},inactive:{style:i.line.inactive},selected:{style:i.line.selected}},vhv:{default:{style:i.line.default},active:{style:i.line.active},inactive:{style:i.line.inactive},selected:{style:i.line.selected}}},polygon:{polygon:{default:{style:i.interval.default},active:{style:i.interval.active},inactive:{style:i.interval.inactive},selected:{style:i.interval.selected}}},point:{circle:{default:{style:i.point.default},active:{style:i.point.active},inactive:{style:i.point.inactive},selected:{style:i.point.selected}},square:{default:{style:i.point.default},active:{style:i.point.active},inactive:{style:i.point.inactive},selected:{style:i.point.selected}},bowtie:{default:{style:i.point.default},active:{style:i.point.active},inactive:{style:i.point.inactive},selected:{style:i.point.selected}},diamond:{default:{style:i.point.default},active:{style:i.point.active},inactive:{style:i.point.inactive},selected:{style:i.point.selected}},hexagon:{default:{style:i.point.default},active:{style:i.point.active},inactive:{style:i.point.inactive},selected:{style:i.point.selected}},triangle:{default:{style:i.point.default},active:{style:i.point.active},inactive:{style:i.point.inactive},selected:{style:i.point.selected}},"triangle-down":{default:{style:i.point.default},active:{style:i.point.active},inactive:{style:i.point.inactive},selected:{style:i.point.selected}},"hollow-circle":{default:{style:i.hollowPoint.default},active:{style:i.hollowPoint.active},inactive:{style:i.hollowPoint.inactive},selected:{style:i.hollowPoint.selected}},"hollow-square":{default:{style:i.hollowPoint.default},active:{style:i.hollowPoint.active},inactive:{style:i.hollowPoint.inactive},selected:{style:i.hollowPoint.selected}},"hollow-bowtie":{default:{style:i.hollowPoint.default},active:{style:i.hollowPoint.active},inactive:{style:i.hollowPoint.inactive},selected:{style:i.hollowPoint.selected}},"hollow-diamond":{default:{style:i.hollowPoint.default},active:{style:i.hollowPoint.active},inactive:{style:i.hollowPoint.inactive},selected:{style:i.hollowPoint.selected}},"hollow-hexagon":{default:{style:i.hollowPoint.default},active:{style:i.hollowPoint.active},inactive:{style:i.hollowPoint.inactive},selected:{style:i.hollowPoint.selected}},"hollow-triangle":{default:{style:i.hollowPoint.default},active:{style:i.hollowPoint.active},inactive:{style:i.hollowPoint.inactive},selected:{style:i.hollowPoint.selected}},"hollow-triangle-down":{default:{style:i.hollowPoint.default},active:{style:i.hollowPoint.active},inactive:{style:i.hollowPoint.inactive},selected:{style:i.hollowPoint.selected}},cross:{default:{style:i.hollowPoint.default},active:{style:i.hollowPoint.active},inactive:{style:i.hollowPoint.inactive},selected:{style:i.hollowPoint.selected}},tick:{default:{style:i.hollowPoint.default},active:{style:i.hollowPoint.active},inactive:{style:i.hollowPoint.inactive},selected:{style:i.hollowPoint.selected}},plus:{default:{style:i.hollowPoint.default},active:{style:i.hollowPoint.active},inactive:{style:i.hollowPoint.inactive},selected:{style:i.hollowPoint.selected}},hyphen:{default:{style:i.hollowPoint.default},active:{style:i.hollowPoint.active},inactive:{style:i.hollowPoint.inactive},selected:{style:i.hollowPoint.selected}},line:{default:{style:i.hollowPoint.default},active:{style:i.hollowPoint.active},inactive:{style:i.hollowPoint.inactive},selected:{style:i.hollowPoint.selected}}},area:{area:{default:{style:i.area.default},active:{style:i.area.active},inactive:{style:i.area.inactive},selected:{style:i.area.selected}},smooth:{default:{style:i.area.default},active:{style:i.area.active},inactive:{style:i.area.inactive},selected:{style:i.area.selected}},line:{default:{style:i.hollowArea.default},active:{style:i.hollowArea.active},inactive:{style:i.hollowArea.inactive},selected:{style:i.hollowArea.selected}},"smooth-line":{default:{style:i.hollowArea.default},active:{style:i.hollowArea.active},inactive:{style:i.hollowArea.inactive},selected:{style:i.hollowArea.selected}}},schema:{candle:{default:{style:i.hollowInterval.default},active:{style:i.hollowInterval.active},inactive:{style:i.hollowInterval.inactive},selected:{style:i.hollowInterval.selected}},box:{default:{style:i.hollowInterval.default},active:{style:i.hollowInterval.active},inactive:{style:i.hollowInterval.inactive},selected:{style:i.hollowInterval.selected}}},edge:{line:{default:{style:i.line.default},active:{style:i.line.active},inactive:{style:i.line.inactive},selected:{style:i.line.selected}},vhv:{default:{style:i.line.default},active:{style:i.line.active},inactive:{style:i.line.inactive},selected:{style:i.line.selected}},smooth:{default:{style:i.line.default},active:{style:i.line.active},inactive:{style:i.line.inactive},selected:{style:i.line.selected}},arc:{default:{style:i.line.default},active:{style:i.line.active},inactive:{style:i.line.inactive},selected:{style:i.line.selected}}},violin:{violin:{default:{style:i.line.default},active:{style:i.line.active},inactive:{style:i.line.inactive},selected:{style:i.line.selected}},smooth:{default:{style:i.line.default},active:{style:i.line.active},inactive:{style:i.line.inactive},selected:{style:i.line.selected}},hollow:{default:{style:i.hollowArea.default},active:{style:i.hollowArea.active},inactive:{style:i.hollowArea.inactive},selected:{style:i.hollowArea.selected}},"hollow-smooth":{default:{style:i.hollowArea.default},active:{style:i.hollowArea.active},inactive:{style:i.hollowArea.inactive},selected:{style:i.hollowArea.selected}}}},components:{axis:{common:n,top:{position:"top",grid:null,title:null,verticalLimitLength:.5},bottom:{position:"bottom",grid:null,title:null,verticalLimitLength:.5},left:{position:"left",title:null,line:null,tickLine:null,verticalLimitLength:1/3},right:{position:"right",title:null,line:null,tickLine:null,verticalLimitLength:1/3},circle:{title:null,grid:Dt({},n.grid,{line:{type:"line"}})},radius:{title:null,grid:Dt({},n.grid,{line:{type:"circle"}})}},legend:{common:r,right:{layout:"vertical",padding:t.legendVerticalPadding},left:{layout:"vertical",padding:t.legendVerticalPadding},top:{layout:"horizontal",padding:t.legendHorizontalPadding},bottom:{layout:"horizontal",padding:t.legendHorizontalPadding},continuous:{title:null,background:null,track:{},rail:{type:"color",size:t.sliderRailHeight,defaultLength:t.sliderRailWidth,style:{fill:t.sliderRailFillColor,stroke:t.sliderRailBorderColor,lineWidth:t.sliderRailBorder}},label:{align:"rail",spacing:4,formatter:null,style:{fill:t.sliderLabelTextFillColor,fontSize:t.sliderLabelTextFontSize,lineHeight:t.sliderLabelTextLineHeight,textBaseline:"middle",fontFamily:t.fontFamily}},handler:{size:t.sliderHandlerWidth,style:{fill:t.sliderHandlerFillColor,stroke:t.sliderHandlerBorderColor}},slidable:!0,padding:r.padding}},tooltip:{showContent:!0,follow:!0,showCrosshairs:!1,showMarkers:!0,shared:!1,enterable:!1,position:"auto",marker:{symbol:"circle",stroke:"#fff",shadowBlur:10,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0,0,0,0.09)",lineWidth:2,r:4},crosshairs:{line:{style:{stroke:t.tooltipCrosshairsBorderColor,lineWidth:t.tooltipCrosshairsBorder}},text:null,textBackground:{padding:2,style:{fill:"rgba(0, 0, 0, 0.25)",lineWidth:0,stroke:null}},follow:!1},domStyles:(e={},e["".concat(vl)]={position:"absolute",visibility:"hidden",zIndex:8,transition:"left 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s, top 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s",backgroundColor:t.tooltipContainerFillColor,opacity:t.tooltipContainerFillOpacity,boxShadow:t.tooltipContainerShadow,borderRadius:"".concat(t.tooltipContainerBorderRadius,"px"),color:t.tooltipTextFillColor,fontSize:"".concat(t.tooltipTextFontSize,"px"),fontFamily:t.fontFamily,lineHeight:"".concat(t.tooltipTextLineHeight,"px"),padding:"0 12px 0 12px"},e["".concat(ml)]={marginBottom:"12px",marginTop:"12px"},e["".concat(xl)]={margin:0,listStyleType:"none",padding:0},e["".concat(wl)]={listStyleType:"none",padding:0,marginBottom:"12px",marginTop:"12px",marginLeft:0,marginRight:0},e["".concat(Cl)]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},e["".concat(bl)]={display:"inline-block",float:"right",marginLeft:"30px"},e)},annotation:{arc:{style:{stroke:t.annotationArcBorderColor,lineWidth:t.annotationArcBorder},animate:!0},line:{style:{stroke:t.annotationLineBorderColor,lineDash:t.annotationLineDash,lineWidth:t.annotationLineBorder},text:{position:"start",autoRotate:!0,style:{fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,textAlign:"start",fontFamily:t.fontFamily,textBaseline:"bottom"}},animate:!0},text:{style:{fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,textBaseline:"middle",textAlign:"start",fontFamily:t.fontFamily},animate:!0},region:{top:!1,style:{lineWidth:t.annotationRegionBorder,stroke:t.annotationRegionBorderColor,fill:t.annotationRegionFillColor,fillOpacity:t.annotationRegionFillOpacity},animate:!0},image:{top:!1,animate:!0},dataMarker:{top:!0,point:{style:{r:3,stroke:t.brandColor,lineWidth:2}},line:{style:{stroke:t.annotationLineBorderColor,lineWidth:t.annotationLineBorder},length:t.annotationDataMarkerLineLength},text:{style:{textAlign:"start",fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,fontFamily:t.fontFamily}},direction:"upward",autoAdjust:!0,animate:!0},dataRegion:{style:{region:{fill:t.annotationRegionFillColor,fillOpacity:t.annotationRegionFillOpacity},text:{textAlign:"center",textBaseline:"bottom",fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,fontFamily:t.fontFamily}},animate:!0}},slider:{common:{padding:[8,8,8,8],backgroundStyle:{fill:t.cSliderBackgroundFillColor,opacity:t.cSliderBackgroundFillOpacity},foregroundStyle:{fill:t.cSliderForegroundFillColor,opacity:t.cSliderForegroundFillOpacity},handlerStyle:{width:t.cSliderHandlerWidth,height:t.cSliderHandlerHeight,fill:t.cSliderHandlerFillColor,opacity:t.cSliderHandlerFillOpacity,stroke:t.cSliderHandlerBorderColor,lineWidth:t.cSliderHandlerBorder,radius:t.cSliderHandlerBorderRadius,highLightFill:t.cSliderHandlerHighlightFillColor},textStyle:{fill:t.cSliderTextFillColor,opacity:t.cSliderTextFillOpacity,fontSize:t.cSliderTextFontSize,lineHeight:t.cSliderTextLineHeight,fontWeight:t.cSliderTextFontWeight,stroke:t.cSliderTextBorderColor,lineWidth:t.cSliderTextBorder}}},scrollbar:{common:{padding:[8,8,8,8]},default:{style:{trackColor:t.scrollbarTrackFillColor,thumbColor:t.scrollbarThumbFillColor}},hover:{style:{thumbColor:t.scrollbarThumbHighlightFillColor}}}},labels:{offset:12,style:{fill:t.labelFillColor,fontSize:t.labelFontSize,fontFamily:t.fontFamily,stroke:t.labelBorderColor,lineWidth:t.labelBorder},fillColorDark:t.labelFillColorDark,fillColorLight:t.labelFillColorLight,autoRotate:!0},innerLabels:{style:{fill:t.innerLabelFillColor,fontSize:t.innerLabelFontSize,fontFamily:t.fontFamily,stroke:t.innerLabelBorderColor,lineWidth:t.innerLabelBorder},autoRotate:!0},overflowLabels:{style:{fill:t.overflowLabelFillColor,fontSize:t.overflowLabelFontSize,fontFamily:t.fontFamily,stroke:t.overflowLabelBorderColor,lineWidth:t.overflowLabelBorder}},pieLabels:{labelHeight:14,offset:10,labelLine:{style:{lineWidth:t.labelLineBorder}},autoRotate:!0}}}var ku="#000",Lu="#595959",Pu="#8C8C8C",Iu="#BFBFBF",Eu="#D9D9D9",Fu="#F0F0F0",Ou="#FFFFFF",Du=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#6F5EF9","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],Ru=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#6F5EF9","#D3CEFD","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],_u=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"],Yu=function(t){void 0===t&&(t={});var e=t.paletteQualitative10,i=void 0===e?Du:e,n=t.paletteQualitative20,r=void 0===n?Ru:n,o=t.brandColor,a=void 0===o?i[0]:o;return l(l({},{backgroundColor:"transparent",brandColor:a,subColor:"rgba(0,0,0,0.05)",paletteQualitative10:i,paletteQualitative20:r,paletteSemanticRed:"#F4664A",paletteSemanticGreen:"#30BF78",paletteSemanticYellow:"#FAAD14",paletteSequence:_u,fontFamily:'"Segoe UI", Roboto, "Helvetica Neue", Arial,\n "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n "Noto Color Emoji"',axisLineBorderColor:Iu,axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:Lu,axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisTickLineBorderColor:Iu,axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:Eu,axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:Pu,axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:Eu,axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:Pu,legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:a,legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:Lu,legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",legendItemSpacing:24,legendItemMarginBottom:12,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],legendPageNavigatorMarkerSize:12,legendPageNavigatorMarkerInactiveFillColor:ku,legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:ku,legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:Pu,legendPageNavigatorTextFontSize:12,sliderRailFillColor:Eu,sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:Pu,sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:Fu,sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:Iu,annotationArcBorderColor:Eu,annotationArcBorder:1,annotationLineBorderColor:Iu,annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:Lu,annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:ku,annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:Iu,tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"rgb(255, 255, 255)",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 0px 10px #aeaeae",tooltipContainerBorderRadius:3,tooltipTextFillColor:Lu,tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:Lu,labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:Ou,innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:Lu,overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:Ou,overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:Iu,cSliderRailHieght:16,cSliderBackgroundFillColor:"#416180",cSliderBackgroundFillOpacity:.05,cSliderForegroundFillColor:"#5B8FF9",cSliderForegroundFillOpacity:.15,cSliderHandlerHeight:24,cSliderHandlerWidth:10,cSliderHandlerFillColor:"#F7F7F7",cSliderHandlerFillOpacity:1,cSliderHandlerHighlightFillColor:"#FFF",cSliderHandlerBorderColor:"#BFBFBF",cSliderHandlerBorder:1,cSliderHandlerBorderRadius:2,cSliderTextFillColor:"#000",cSliderTextFillOpacity:.45,cSliderTextFontSize:12,cSliderTextLineHeight:12,cSliderTextFontWeight:"normal",cSliderTextBorderColor:null,cSliderTextBorder:0,scrollbarTrackFillColor:"rgba(0,0,0,0)",scrollbarThumbFillColor:"rgba(0,0,0,0.15)",scrollbarThumbHighlightFillColor:"rgba(0,0,0,0.2)",pointFillColor:a,pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:Ou,pointBorderOpacity:1,pointActiveBorderColor:ku,pointSelectedBorder:2,pointSelectedBorderColor:ku,pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:a,hollowPointBorderOpacity:.95,hollowPointFillColor:Ou,hollowPointActiveBorder:1,hollowPointActiveBorderColor:ku,hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:ku,hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:a,lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:a,areaFillOpacity:.25,areaActiveFillColor:a,areaActiveFillOpacity:.5,areaSelectedFillColor:a,areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:a,hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:ku,hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:ku,hollowAreaInactiveBorderOpacity:.3,intervalFillColor:a,intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:ku,intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:ku,intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:a,hollowIntervalBorderOpacity:1,hollowIntervalFillColor:Ou,hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:ku,hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:ku,hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3}),t)};function Gu(t){var e=t.styleSheet,i=void 0===e?{}:e,n=h(t,["styleSheet"]),r=Yu(i);return Dt({},Bu(r),n)}Yu();var Xu={default:Gu({})};function zu(t){return Ht(Xu,wt(t),Xu.default)}function Vu(t,e){Xu[wt(t)]=Gu(e)}function Hu(t,e,i){return ft(i.translate(t),i.translate(e))}function Nu(t,e,i){var n=i.coordinate,r=i.getYScale(),o=r.field,a=n.invert(e),s=r.invert(a.y);return U(t,(function(t){var e=t[de];return e[o][0]<=s&&e[o][1]>=s}))||t[t.length-1]}var Wu=Ft((function(t){if(t.isCategory)return 1;for(var e=t.values,i=e.length,n=t.translate(e[0]),r=n,o=0;o<i;o++){var a=e[o],s=t.translate(a);s<n&&(n=s),s>r&&(r=s)}return(r-n)/(i-1)}));function ju(t){for(var e,i=function(t){var e=mt(t.attributes);return _(e,(function(t){return R(ge,t.type)}))}(t),n=0,r=i;n<r.length;n++){var o=r[n],a=o.getScale(o.type);if(a&&a.isLinear)if("cat"!==yh(a,Ht(t.scaleDefs,a.field),o.type,t.type)){e=a;break}}var s=t.getXScale(),l=t.getYScale();return e||l||s}function qu(t,e,i){if(0===e.length)return null;var n=i.type,r=i.getXScale(),o=i.getYScale(),a=r.field,s=o.field,l=null;if("heatmap"===n||"point"===n){for(var h=i.coordinate.invert(t),u=r.invert(h.x),c=o.invert(h.y),p=1/0,f=0;f<e.length;f++){var g=e[f],d=g[de],y=Math.pow(d[a]-u,2)+Math.pow(d[s]-c,2);y<p&&(p=y,l=g)}return l}var v=e[0],m=e[e.length-1],x=function(t,e){var i=e.coordinate,n=e.getXScale(),r=n.range,o=r[r.length-1],a=r[0],s=i.invert(t).x;return i.isPolar&&s>(1+o)/2&&(s=a),n.translate(n.invert(s))}(t,i),w=v[de][a],C=v[de][s],b=m[de][a],M=o.isLinear&&V(C);if(V(w)){for(f=0;f<e.length;f++){d=(L=e[f])[de];if(r.translate(d[a][0])<=x&&r.translate(d[a][1])>=x){if(!M){l=L;break}V(l)||(l=[]),l.push(L)}}V(l)&&(l=Nu(l,t,i))}else{var S=void 0;if(r.isLinear||"timeCat"===r.type){if((x>r.translate(b)||x<r.translate(w))&&(x>r.max||x<r.min))return null;for(var A=0,T=e.length-1,B=void 0;A<=T;){var k=e[B=Math.floor((A+T)/2)][de][a];if(Hu(k,x,r))return e[B];r.translate(k)<=r.translate(x)?(A=B+1,m=e[B],S=e[B+1]):(0===T&&(m=e[0]),T=B-1)}}else{for(f=0;f<e.length;f++){var L;if(Hu((d=(L=e[f])[de])[a],x,r)){if(!M){l=L;break}V(l)||(l=[]),l.push(L)}else r.translate(d[a])<=x&&(m=L,S=e[f+1])}V(l)&&(l=Nu(l,t,i))}m&&S&&Math.abs(r.translate(m[de][a])-x)>Math.abs(r.translate(S[de][a])-x)&&(m=S)}var P=Wu(i.getXScale());return!l&&Math.abs(r.translate(m[de][a])-x)<=P/2&&(l=m),l}function Uu(t,e,i,n){void 0===i&&(i=""),void 0===n&&(n=!1);var r,o,a=t[de],s=function(t,e,i){var n=e.getAttribute("position").getFields(),r=e.scales,o=X(i)||!i?n[0]:i,a=r[o],s=a?a.getText(t[o]):t[o]||o;return X(i)?i(s,t):s}(a,e,i),h=e.tooltipOption,u=e.theme.defaultColor,c=[];function p(e,i){if(n||!z(i)&&""!==i){var r={title:s,data:a,mappingData:t,name:e,value:i,color:t.color||u,marker:!0};c.push(r)}}if(H(h)){var f=h.fields,g=h.callback;if(g){var d=f.map((function(e){return t[de][e]})),y=g.apply(void 0,d),v=l({data:t[de],mappingData:t,title:s,color:t.color||u,marker:!0},y);c.push(v)}else for(var m=e.scales,x=0,w=f;x<w.length;x++){var C=w[x];if(!z(a[C])){var b=m[C];p(r=mh(b),o=b.getText(a[C]))}}}else{var M=ju(e);o=function(t,e){var i=t[e.field];return V(i)?i.map((function(t){return e.getText(t)})).join("-"):e.getText(i)}(a,M),r=function(t,e){var i,n=e.getGroupScales();if(n.length&&(i=n[0]),i){var r=i.field;return i.getText(t[r])}return mh(ju(e))}(a,e),p(r,o)}return c}function Zu(t,e,i,n){var r=n.showNil,o=[],a=t.dataArray;if(!Yt(a)){t.sort(a);for(var s=0,l=a;s<l.length;s++){var h=qu(e,l[s],t);if(h){var u=t.getElementId(h),c=t.elementsMap[u];if("heatmap"===t.type||c.visible){var p=Uu(h,t,i,r);p.length&&o.push(p)}}}}return o}function Qu(t,e,i,n){var r=n.showNil,o=[],a=t.container.getShape(e.x,e.y);if(a&&a.get("visible")&&a.get("origin")){var s=Uu(a.get("origin").mappingData,t,i,r);s.length&&o.push(s)}return o}function Ku(t,e,i){for(var n=[],r=t.geometries,o=i.shared,a=i.title,s=i.reversed,l=0,h=r;l<h.length;l++){var u=h[l];if(u.visible&&!1!==u.tooltipOption){var c=u.type,p=void 0;(p=["point","edge","polygon"].includes(c)?Qu(u,e,a,i):["area","line","path","heatmap"].includes(c)||!1!==o?Zu(u,e,a,i):Qu(u,e,a,i)).length&&(s&&p.reverse(),n.push(p))}}return n}function $u(t){void 0===t&&(t=0);var e=V(t)?t:[t];switch(e.length){case 0:e=[0,0,0,0];break;case 1:e=new Array(4).fill(e[0]);break;case 2:e=s(s([],e,!0),e,!0);break;case 3:e=s(s([],e,!0),[e[1]],!1);break;default:e=e.slice(0,4)}return e}var Ju={};function tc(t,e){Ju[t]=e}var ec=function(){function t(t){this.option=this.wrapperOption(t)}return t.prototype.update=function(t){return this.option=this.wrapperOption(t),this},t.prototype.hasAction=function(t){var e=this.option.actions;return at(e,(function(e){return e[0]===t}))},t.prototype.create=function(t,e){var i=this.option,n=i.type,r=i.cfg,o="theta"===n,a=l({start:t,end:e},r),s=function(t){return Na[t.toLowerCase()]}(o?"polar":n);return this.coordinate=new s(a),this.coordinate.type=n,o&&(this.hasAction("transpose")||this.transpose()),this.execActions(),this.coordinate},t.prototype.adjust=function(t,e){return this.coordinate.update({start:t,end:e}),this.coordinate.resetMatrix(),this.execActions(["scale","rotate","translate"]),this.coordinate},t.prototype.rotate=function(t){return this.option.actions.push(["rotate",t]),this},t.prototype.reflect=function(t){return this.option.actions.push(["reflect",t]),this},t.prototype.scale=function(t,e){return this.option.actions.push(["scale",t,e]),this},t.prototype.transpose=function(){return this.option.actions.push(["transpose"]),this},t.prototype.getOption=function(){return this.option},t.prototype.getCoordinate=function(){return this.coordinate},t.prototype.wrapperOption=function(t){return l({type:"rect",actions:[],cfg:{}},t)},t.prototype.execActions=function(t){var e=this;N(this.option.actions,(function(i){var n,r=i[0],o=i.slice(1);(!!z(t)||t.includes(r))&&(n=e.coordinate)[r].apply(n,o)}))},t}(),ic=function(){function t(t,e,i){this.view=t,this.gEvent=e,this.data=i,this.type=e.type}return t.fromData=function(e,i,n){return new t(e,new si(i,{}),n)},Object.defineProperty(t.prototype,"target",{get:function(){return this.gEvent.target},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"event",{get:function(){return this.gEvent.originalEvent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"x",{get:function(){return this.gEvent.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this.gEvent.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clientX",{get:function(){return this.gEvent.clientX},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clientY",{get:function(){return this.gEvent.clientY},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"[Event (type=".concat(this.type,")]")},t.prototype.clone=function(){return new t(this.view,this.gEvent,this.data)},t}(),nc=e("Event",ic);function rc(t){var e=t.getController("axis"),i=t.getController("legend"),n=t.getController("annotation");[e,t.getController("slider"),t.getController("scrollbar"),i,n].forEach((function(t){t&&t.layout()}))}var oc=function(){function t(){this.scales=new Map,this.syncScales=new Map}return t.prototype.createScale=function(t,e,i,n){var r=i,o=this.getScaleMeta(n);if(0===e.length&&o){var a=o.scale,s={type:a.type};a.isCategory&&(s.values=a.values),r=Dt(s,o.scaleDef,i)}var l=vh(t,e,r);return this.cacheScale(l,i,n),l},t.prototype.sync=function(t,e){var i=this;this.syncScales.forEach((function(n,r){var o=Number.MAX_SAFE_INTEGER,a=Number.MIN_SAFE_INTEGER,s=[];N(n,(function(t){var e=i.getScale(t);a=pt(e.max)?Math.max(a,e.max):a,o=pt(e.min)?Math.min(o,e.min):o,N(e.values,(function(t){s.includes(t)||s.push(t)}))})),N(n,(function(n){var r=i.getScale(n);if(r.isContinuous)r.change({min:o,max:a,values:s});else if(r.isCategory){var l=r.range,h=i.getScaleMeta(n);s&&!Ht(h,["scaleDef","range"])&&(l=xh(Dt({},r,{values:s}),t,e)),r.change({values:s,range:l})}}))}))},t.prototype.cacheScale=function(t,e,i){var n=this.getScaleMeta(i);n&&n.scale.type===t.type?(!function(t,e){if("identity"!==t.type&&"identity"!==e.type){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(i[n]=e[n]);t.change(i)}}(n.scale,t),n.scaleDef=e):(n={key:i,scale:t,scaleDef:e},this.scales.set(i,n));var r=this.getSyncKey(n);if(n.syncKey=r,this.removeFromSyncScales(i),r){var o=this.syncScales.get(r);o||(o=[],this.syncScales.set(r,o)),o.push(i)}},t.prototype.getScale=function(t){var e=this.getScaleMeta(t);if(!e){var i=ot(t.split("-")),n=this.syncScales.get(i);n&&n.length&&(e=this.getScaleMeta(n[0]))}return e&&e.scale},t.prototype.deleteScale=function(t){var e=this.getScaleMeta(t);if(e){var i=e.syncKey,n=this.syncScales.get(i);if(n&&n.length){var r=n.indexOf(t);-1!==r&&n.splice(r,1)}}this.scales.delete(t)},t.prototype.clear=function(){this.scales.clear(),this.syncScales.clear()},t.prototype.removeFromSyncScales=function(t){var e=this;this.syncScales.forEach((function(i,n){var r=i.indexOf(t);if(-1!==r)return i.splice(r,1),0===i.length&&e.syncScales.delete(n),!1}))},t.prototype.getSyncKey=function(t){var e=t.scale,i=t.scaleDef,n=e.field,r=Ht(i,["sync"]);return!0===r?n:!1===r?void 0:r},t.prototype.getScaleMeta=function(t){return this.scales.get(t)},t}(),ac=function(){function t(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),this.top=t,this.right=e,this.bottom=i,this.left=n}return t.instance=function(e,i,n,r){return void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),void 0===r&&(r=0),new t(e,i,n,r)},t.prototype.max=function(t){var e=t[0],i=t[1],n=t[2],r=t[3];return this.top=Math.max(this.top,e),this.right=Math.max(this.right,i),this.bottom=Math.max(this.bottom,n),this.left=Math.max(this.left,r),this},t.prototype.shrink=function(t){var e=t[0],i=t[1],n=t[2],r=t[3];return this.top+=e,this.right+=i,this.bottom+=n,this.left+=r,this},t.prototype.inc=function(t,e){var i=t.width,n=t.height;switch(e){case Jt.TOP:case Jt.TOP_LEFT:case Jt.TOP_RIGHT:this.top+=n;break;case Jt.RIGHT:case Jt.RIGHT_TOP:case Jt.RIGHT_BOTTOM:this.right+=i;break;case Jt.BOTTOM:case Jt.BOTTOM_LEFT:case Jt.BOTTOM_RIGHT:this.bottom+=n;break;case Jt.LEFT:case Jt.LEFT_TOP:case Jt.LEFT_BOTTOM:this.left+=i}return this},t.prototype.getPadding=function(){return[this.top,this.right,this.bottom,this.left]},t.prototype.clone=function(){return new(t.bind.apply(t,s([void 0],this.getPadding(),!1)))},t}();function sc(t){var e=t.padding;if(!function(t){return!pt(t)&&!V(t)}(e))return new(ac.bind.apply(ac,s([void 0],$u(e),!1)));var i=t.viewBBox,n=new ac,r=[],o=[],a=[];return N(t.getComponents(),(function(t){var e=t.type;e===te.AXIS?r.push(t):[te.LEGEND,te.SLIDER,te.SCROLLBAR].includes(e)?o.push(t):e!==te.GRID&&e!==te.TOOLTIP&&a.push(t)})),N(r,(function(t){var e=t.component.getLayoutBBox(),r=new hh(e.x,e.y,e.width,e.height).exceed(i);n.max(r)})),N(o,(function(t){var e=t.component,i=t.direction,r=e.getLayoutBBox(),o=e.get("padding"),a=new hh(r.x,r.y,r.width,r.height).expand(o);n.inc(a,i)})),N(a,(function(t){var e=t.component,i=t.direction,r=e.getLayoutBBox(),o=new hh(r.x,r.y,r.width,r.height);n.inc(o,i)})),n}function lc(t,e,i){var n=i.instance();e.forEach((function(t){t.autoPadding=n.max(t.autoPadding.getPadding())}))}var hc=function(t){function e(e){var i=t.call(this,{visible:e.visible})||this;i.views=[],i.geometries=[],i.controllers=[],i.interactions={},i.limitInPlot=!1,i.options={data:[],animate:!0},i.usedControllers=Object.keys(Ju),i.scalePool=new oc,i.layoutFunc=rc,i.isPreMouseInPlot=!1,i.isDataChanged=!1,i.isCoordinateChanged=!1,i.createdScaleKeys=new Map,i.onCanvasEvent=function(t){var e=t.name;if(!e.includes(":")){var n=i.createViewEvent(t);i.doPlotEvent(n),i.emit(e,n)}},i.onDelegateEvents=function(t){var e=t.name;if(e.includes(":")){var n=i.createViewEvent(t);i.emit(e,n)}};var n=e.id,r=void 0===n?Zt("view"):n,o=e.parent,a=e.canvas,s=e.backgroundGroup,h=e.middleGroup,u=e.foregroundGroup,c=e.region,p=void 0===c?{start:{x:0,y:0},end:{x:1,y:1}}:c,f=e.padding,g=e.appendPadding,d=e.theme,y=e.options,v=e.limitInPlot,m=e.syncViewPadding;return i.parent=o,i.canvas=a,i.backgroundGroup=s,i.middleGroup=h,i.foregroundGroup=u,i.region=p,i.padding=f,i.appendPadding=g,i.options=l(l({},i.options),y),i.limitInPlot=v,i.id=r,i.syncViewPadding=m,i.themeObject=H(d)?Dt({},zu("default"),Gu(d)):zu(d),i.init(),i}return r(e,t),e.prototype.setLayout=function(t){this.layoutFunc=t},e.prototype.init=function(){this.calculateViewBBox(),this.initEvents(),this.initComponentController(),this.initOptions()},e.prototype.render=function(t,e){void 0===t&&(t=!1),this.emit(ne.BEFORE_RENDER,nc.fromData(this,ne.BEFORE_RENDER,e)),this.paint(t),this.emit(ne.AFTER_RENDER,nc.fromData(this,ne.AFTER_RENDER,e)),!1===this.visible&&this.changeVisible(!1)},e.prototype.clear=function(){var t=this;this.emit(ne.BEFORE_CLEAR),this.filteredData=[],this.coordinateInstance=void 0,this.isDataChanged=!1,this.isCoordinateChanged=!1;for(var e=this.geometries,i=0;i<e.length;i++)e[i].clear(),e[i].container.remove(!0),e[i].labelsContainer.remove(!0);this.geometries=[];var n=this.controllers;for(i=0;i<n.length;i++)"annotation"===n[i].name?n[i].clear(!0):n[i].clear();this.createdScaleKeys.forEach((function(e,i){t.getRootView().scalePool.deleteScale(i)})),this.createdScaleKeys.clear();var r=this.views;for(i=0;i<r.length;i++)r[i].clear();this.emit(ne.AFTER_CLEAR)},e.prototype.destroy=function(){this.emit(ne.BEFORE_DESTROY),N(this.interactions,(function(t){t&&t.destroy()})),this.clear();for(var e=this.controllers,i=0,n=e.length;i<n;i++){e[i].destroy()}this.backgroundGroup.remove(!0),this.middleGroup.remove(!0),this.foregroundGroup.remove(!0),t.prototype.destroy.call(this)},e.prototype.changeVisible=function(e){t.prototype.changeVisible.call(this,e);for(var i=this.geometries,n=0,r=i.length;n<r;n++){i[n].changeVisible(e)}var o=this.controllers;for(n=0,r=o.length;n<r;n++){o[n].changeVisible(e)}return this.foregroundGroup.set("visible",e),this.middleGroup.set("visible",e),this.backgroundGroup.set("visible",e),this.getCanvas().draw(),this},e.prototype.data=function(t){return Nt(this.options,"data",t),this.isDataChanged=!0,this},e.prototype.source=function(t){return console.warn("This method will be removed at G2 V4.1. Please use chart.data() instead."),this.data(t)},e.prototype.filter=function(t,e){return X(e)?(Nt(this.options,["filters",t],e),this):(!e&&Ht(this.options,["filters",t])&&delete this.options.filters[t],this)},e.prototype.axis=function(t,e){return St(t)?Nt(this.options,["axes"],t):Nt(this.options,["axes",t],e),this},e.prototype.legend=function(t,e){return St(t)?Nt(this.options,["legends"],t):et(t)?(Nt(this.options,["legends",t],e),q(e)&&(null==e?void 0:e.selected)&&Nt(this.options,["filters",t],(function(t){var i;return null===(i=null==e?void 0:e.selected[t])||void 0===i||i}))):Nt(this.options,["legends"],t),this},e.prototype.scale=function(t,e){var i=this;return et(t)?Nt(this.options,["scales",t],e):H(t)&&N(t,(function(t,e){Nt(i.options,["scales",e],t)})),this},e.prototype.tooltip=function(t){return Nt(this.options,"tooltip",t),this},e.prototype.annotation=function(){return this.getController("annotation")},e.prototype.guide=function(){return console.warn("This method will be removed at G2 V4.1. Please use chart.annotation() instead."),this.annotation()},e.prototype.coordinate=function(t,e){return et(t)?Nt(this.options,"coordinate",{type:t,cfg:e}):Nt(this.options,"coordinate",t),this.coordinateController.update(this.options.coordinate),this.coordinateController},e.prototype.coord=function(t,e){return console.warn("This method will be removed at G2 V4.1. Please use chart.coordinate() instead."),this.coordinate(t,e)},e.prototype.facet=function(t,e){this.facetInstance&&this.facetInstance.destroy();var i=Eh(t);if(!i)throw new Error("facet '".concat(t,"' is not exist!"));return this.facetInstance=new i(this,l(l({},e),{type:t})),this},e.prototype.animate=function(t){return Nt(this.options,"animate",t),this},e.prototype.updateOptions=function(t){return this.clear(),Pt(this.options,t),this.views.forEach((function(t){return t.destroy()})),this.views=[],this.initOptions(),this.coordinateBBox=this.viewBBox,this},e.prototype.option=function(t,i){if(e.prototype[t])throw new Error("Can't use built in variable name \"".concat(t,'", please change another one.'));return Nt(this.options,t,i),this},e.prototype.theme=function(t){return this.themeObject=H(t)?Dt({},this.themeObject,Gu(t)):zu(t),this},e.prototype.interaction=function(t,e){var i=this.interactions[t];i&&i.destroy();var n=function(t,e,i){var n=Au(t);if(!n)return null;if(q(n)){var r=Pt(It(n),i);return new Mu(e,r)}return new n(e,i)}(t,this,e);return n&&(n.init(),this.interactions[t]=n),this},e.prototype.removeInteraction=function(t){var e=this.interactions[t];e&&(e.destroy(),this.interactions[t]=void 0)},e.prototype.changeData=function(t){this.isDataChanged=!0,this.emit(ne.BEFORE_CHANGE_DATA,nc.fromData(this,ne.BEFORE_CHANGE_DATA,null)),this.data(t),this.paint(!0);for(var e=this.views,i=0,n=e.length;i<n;i++){e[i].changeData(t)}this.emit(ne.AFTER_CHANGE_DATA,nc.fromData(this,ne.AFTER_CHANGE_DATA,null))},e.prototype.createView=function(t){this.parent&&this.parent.parent&&console.warn("The view nesting recursive feature will be removed at G2 V4.1. Please avoid to use it.");var i={data:this.options.data,scales:It(this.options.scales),axes:It(this.options.axes),coordinate:It(this.coordinateController.getOption()),tooltip:It(this.options.tooltip),legends:It(this.options.legends),animate:this.options.animate,visible:this.visible},n=new e(l(l({parent:this,canvas:this.canvas,backgroundGroup:this.backgroundGroup.addGroup({zIndex:he}),middleGroup:this.middleGroup.addGroup({zIndex:le}),foregroundGroup:this.foregroundGroup.addGroup({zIndex:se}),theme:this.themeObject,padding:this.padding},t),{options:l(l({},i),Ht(t,"options",{}))}));return this.views.push(n),n},e.prototype.view=function(t){return console.warn("This method will be removed at G2 V4.1. Please use chart.createView() instead."),this.createView(t)},e.prototype.removeView=function(t){var e=tt(this.views,(function(e){return e===t}))[0];return e&&e.destroy(),e},e.prototype.getCoordinate=function(){return this.coordinateInstance},e.prototype.getTheme=function(){return this.themeObject},e.prototype.getXScale=function(){var t=this.geometries[0];return t?t.getXScale():null},e.prototype.getYScales=function(){var t={},e=[];return this.geometries.forEach((function(i){var n=i.getYScale(),r=n.field;t[r]||(t[r]=!0,e.push(n))})),e},e.prototype.getScalesByDim=function(t){for(var e=this.geometries,i={},n=0,r=e.length;n<r;n++){var o=e[n],a="x"===t?o.getXScale():o.getYScale();a&&!i[a.field]&&(i[a.field]=a)}return i},e.prototype.getScale=function(t,e){var i=e||this.getScaleKey(t);return this.getRootView().scalePool.getScale(i)},e.prototype.getScaleByField=function(t,e){return this.getScale(t,e)},e.prototype.getOptions=function(){return this.options},e.prototype.getData=function(){return this.filteredData},e.prototype.getOriginalData=function(){return this.options.data},e.prototype.getPadding=function(){return this.autoPadding.getPadding()},e.prototype.getGeometries=function(){return this.geometries},e.prototype.getElements=function(){return J(this.geometries,(function(t,e){return t.concat(e.getElements())}),[])},e.prototype.getElementsBy=function(t){return this.getElements().filter((function(e){return t(e)}))},e.prototype.getLayer=function(t){return t===$t.BG?this.backgroundGroup:t===$t.MID?this.middleGroup:($t.FORE,this.foregroundGroup)},e.prototype.isPointInPlot=function(t){return ph(this.getCoordinate(),t)},e.prototype.getLegendAttributes=function(){return Z(this.geometries.map((function(t){return t.getGroupAttributes()})))},e.prototype.getGroupScales=function(){var t=this.geometries.map((function(t){return t.getGroupScales()}));return lh(Z(t))},e.prototype.getCanvas=function(){return this.getRootView().canvas},e.prototype.getRootView=function(){for(var t=this;t.parent;)t=t.parent;return t},e.prototype.getXY=function(t){var e,i,n=this.getCoordinate(),r=this.getScalesByDim("x"),o=this.getScalesByDim("y");if(N(t,(function(t,n){r[n]&&(e=r[n].scale(t)),o[n]&&(i=o[n].scale(t))})),!z(e)&&!z(i))return n.convert({x:e,y:i})},e.prototype.getController=function(t){return U(this.controllers,(function(e){return e.name===t}))},e.prototype.showTooltip=function(t){var e=this.getController("tooltip");return e&&e.showTooltip(t),this},e.prototype.hideTooltip=function(){var t=this.getController("tooltip");return t&&t.hideTooltip(),this},e.prototype.lockTooltip=function(){var t=this.getController("tooltip");return t&&t.lockTooltip(),this},e.prototype.unlockTooltip=function(){var t=this.getController("tooltip");return t&&t.unlockTooltip(),this},e.prototype.isTooltipLocked=function(){var t=this.getController("tooltip");return t&&t.isTooltipLocked()},e.prototype.getTooltipItems=function(t){var e=this.getController("tooltip");return e?e.getTooltipItems(t):[]},e.prototype.getSnapRecords=function(t){for(var e=this.geometries,i=[],n=0,r=e.length;n<r;n++){var o=e[n],a=o.dataArray;o.sort(a);for(var s=void 0,l=0,h=a.length;l<h;l++){(s=qu(t,a[l],o))&&i.push(s)}}var u=this.views;for(n=0,r=u.length;n<r;n++){var c=u[n].getSnapRecords(t);i=i.concat(c)}return i},e.prototype.getComponents=function(){for(var t=[],e=this.controllers,i=0,n=e.length;i<n;i++){var r=e[i];t=t.concat(r.getComponents())}return t},e.prototype.filterData=function(t){var e=this.options.filters;return 0===Kt(e)?t:_(t,(function(t,i){return Object.keys(e).every((function(n){return(0,e[n])(t[n],t,i)}))}))},e.prototype.filterFieldData=function(t,e){var i=this.options.filters,n=Ht(i,t);return Bt(n)?e:e.filter((function(e,i){return n(e[t],e,i)}))},e.prototype.adjustCoordinate=function(){var t=this.getCoordinate(),e=t.start,i=t.end,n=this.coordinateBBox.bl,r=this.coordinateBBox.tr;Xt(e,n)&&Xt(i,r)?this.isCoordinateChanged=!1:(this.isCoordinateChanged=!0,this.coordinateInstance=this.coordinateController.adjust(n,r))},e.prototype.paint=function(t){this.renderDataRecursive(t),this.syncScale(),this.emit(ne.BEFORE_PAINT),this.renderPaddingRecursive(t),this.renderLayoutRecursive(t),this.renderBackgroundStyleShape(),this.renderPaintRecursive(t),this.emit(ne.AFTER_PAINT),this.isDataChanged=!1},e.prototype.renderBackgroundStyleShape=function(){if(!this.parent){var t=Ht(this.themeObject,"background");if(t){this.backgroundStyleRectShape||(this.backgroundStyleRectShape=this.backgroundGroup.addShape("rect",{attrs:{},zIndex:-1,capture:!1}),this.backgroundStyleRectShape.toBack());var e=this.viewBBox,i=e.x,n=e.y,r=e.width,o=e.height;this.backgroundStyleRectShape.attr({fill:t,x:i,y:n,width:r,height:o})}else this.backgroundStyleRectShape&&(this.backgroundStyleRectShape.remove(!0),this.backgroundStyleRectShape=void 0)}},e.prototype.renderPaddingRecursive=function(t){this.calculateViewBBox(),this.adjustCoordinate(),this.initComponents(t),this.autoPadding=sc(this).shrink($u(this.appendPadding)),this.coordinateBBox=this.viewBBox.shrink(this.autoPadding.getPadding()),this.adjustCoordinate();for(var e=this.views,i=0,n=e.length;i<n;i++){e[i].renderPaddingRecursive(t)}},e.prototype.renderLayoutRecursive=function(t){var e=!0===this.syncViewPadding?lc:X(this.syncViewPadding)?this.syncViewPadding:void 0;e&&(e(this,this.views,ac),this.views.forEach((function(t){t.coordinateBBox=t.viewBBox.shrink(t.autoPadding.getPadding()),t.adjustCoordinate()}))),this.doLayout();for(var i=this.views,n=0,r=i.length;n<r;n++){i[n].renderLayoutRecursive(t)}},e.prototype.renderPaintRecursive=function(t){var e=this.middleGroup;if(this.limitInPlot){var i=gh(this.coordinateInstance),n=i.type,r=i.attrs;e.setClip({type:n,attrs:r})}else e.setClip(void 0);this.paintGeometries(t),this.renderComponents(t);for(var o=this.views,a=0,s=o.length;a<s;a++){o[a].renderPaintRecursive(t)}},e.prototype.createScale=function(t,e,i,n){var r=Ht(this.options.scales,[t]),o=l(l({},r),i);return this.parent?this.parent.createScale(t,e,o,n):this.scalePool.createScale(t,e,o,n)},e.prototype.renderDataRecursive=function(t){this.doFilterData(),this.createCoordinate(),this.initGeometries(t),this.renderFacet(t);for(var e=this.views,i=0,n=e.length;i<n;i++){e[i].renderDataRecursive(t)}},e.prototype.calculateViewBBox=function(){var t,e,i,n;if(this.parent){var r=this.parent.coordinateBBox;t=r.x,e=r.y,i=r.width,n=r.height}else t=0,e=0,i=this.canvas.get("width"),n=this.canvas.get("height");var o=this.region,a=o.start,s=o.end,l=new hh(t+i*a.x,e+n*a.y,i*(s.x-a.x),n*(s.y-a.y));this.viewBBox&&this.viewBBox.isEqual(l)||(this.viewBBox=new hh(t+i*a.x,e+n*a.y,i*(s.x-a.x),n*(s.y-a.y))),this.coordinateBBox=this.viewBBox},e.prototype.initEvents=function(){this.foregroundGroup.on("*",this.onDelegateEvents),this.middleGroup.on("*",this.onDelegateEvents),this.backgroundGroup.on("*",this.onDelegateEvents),this.canvas.on("*",this.onCanvasEvent)},e.prototype.initComponentController=function(){for(var t=this.usedControllers,e=0,i=t.length;e<i;e++){var n=t[e],r=Ju[n];r&&this.controllers.push(new r(this))}},e.prototype.createViewEvent=function(t){var e=t.shape,i=t.name,n=e?e.get("origin"):null,r=new nc(this,t,n);return r.type=i,r},e.prototype.doPlotEvent=function(t){var e=t.type,i={x:t.x,y:t.y};if(["mousedown","mouseup","mousemove","mouseleave","mousewheel","touchstart","touchmove","touchend","touchcancel","click","dblclick","contextmenu"].includes(e)){var n=this.isPointInPlot(i),r=t.clone();if(n){var o="plot:".concat(e);r.type=o,this.emit(o,r),"mouseleave"!==e&&"touchend"!==e||(this.isPreMouseInPlot=!1)}"mousemove"===e||"touchmove"===e?(this.isPreMouseInPlot&&!n?("mousemove"===e&&(r.type=oe.MOUSE_LEAVE,this.emit(oe.MOUSE_LEAVE,r)),r.type=oe.LEAVE,this.emit(oe.LEAVE,r)):!this.isPreMouseInPlot&&n&&("mousemove"===e&&(r.type=oe.MOUSE_ENTER,this.emit(oe.MOUSE_ENTER,r)),r.type=oe.ENTER,this.emit(oe.ENTER,r)),this.isPreMouseInPlot=n):"mouseleave"!==e&&"touchend"!==e||this.isPreMouseInPlot&&("mouseleave"===e&&(r.type=oe.MOUSE_LEAVE,this.emit(oe.MOUSE_LEAVE,r)),r.type=oe.LEAVE,this.emit(oe.LEAVE,r),this.isPreMouseInPlot=!1)}},e.prototype.doFilterData=function(){var t=this.options.data;this.filteredData=this.filterData(t)},e.prototype.initGeometries=function(t){this.createOrUpdateScales();for(var e=this.getCoordinate(),i=Ht(this.options,"scales",{}),n=this.geometries,r=0,o=n.length;r<o;r++){var a=n[r];a.scales=this.getGeometryScales();var s={coordinate:e,scaleDefs:i,data:this.filteredData,theme:this.themeObject,isDataChanged:this.isDataChanged,isCoordinateChanged:this.isCoordinateChanged};t?a.update(s):a.init(s)}this.adjustScales()},e.prototype.createOrUpdateScales=function(){for(var t=this.getScaleFields(),e=this.getGroupedFields(),i=this.getOptions(),n=i.data,r=i.scales,o=void 0===r?{}:r,a=this.filteredData,s=0,l=t.length;s<l;s++){var h=t[s],u=o[h],c=this.getScaleKey(h);this.createScale(h,e.includes(h)?n:a,u,c),this.createdScaleKeys.set(c,!0)}},e.prototype.syncScale=function(){this.getRootView().scalePool.sync(this.getCoordinate(),this.theme)},e.prototype.getGeometryScales=function(){for(var t=this.getScaleFields(),e={},i=0;i<t.length;i++){var n=t[i];e[n]=this.getScaleByField(n)}return e},e.prototype.getScaleFields=function(){for(var t=[],e=new Map,i=this.geometries,n=0;n<i.length;n++){lh(i[n].getScaleFields(),t,e)}return t},e.prototype.getGroupedFields=function(){for(var t=[],e=new Map,i=this.geometries,n=0;n<i.length;n++){lh(i[n].getGroupFields(),t,e)}return t},e.prototype.adjustScales=function(){this.adjustCategoryScaleRange()},e.prototype.adjustCategoryScaleRange=function(){var t=this,e=s([this.getXScale()],this.getYScales(),!0).filter((function(t){return!!t})),i=this.getCoordinate(),n=this.options.scales;N(e,(function(e){var r=e.field,o=e.values,a=e.isCategory,s=e.isIdentity;(a||s)&&o&&!Ht(n,[r,"range"])&&(e.range=xh(e,i,t.theme))}))},e.prototype.initComponents=function(t){for(var e=this.controllers,i=0;i<e.length;i++){var n=e[i];t?n.update():(n.clear(),n.render())}},e.prototype.doLayout=function(){this.layoutFunc(this)},e.prototype.createCoordinate=function(){var t=this.coordinateBBox.bl,e=this.coordinateBBox.tr;this.coordinateInstance=this.coordinateController.create(t,e)},e.prototype.paintGeometries=function(t){for(var e=this.options.animate,i=this.getCoordinate(),n={x:this.viewBBox.x,y:this.viewBBox.y,minX:this.viewBBox.minX,minY:this.viewBBox.minY,maxX:this.viewBBox.maxX,maxY:this.viewBBox.maxY,width:this.viewBBox.width,height:this.viewBBox.height},r=this.geometries,o=0;o<r.length;o++){var a=r[o];a.coordinate=i,a.canvasRegion=n,e||a.animate(!1),a.paint(t)}},e.prototype.renderComponents=function(t){for(var e=0;e<this.getComponents().length;e++){this.getComponents()[e].component.render()}},e.prototype.renderFacet=function(t){this.facetInstance&&(t?this.facetInstance.update():(this.facetInstance.clear(),this.facetInstance.init(),this.facetInstance.render()))},e.prototype.initOptions=function(){var t=this,e=this.options,i=e.geometries,n=void 0===i?[]:i,r=e.interactions,o=void 0===r?[]:r,a=e.views,s=void 0===a?[]:a,l=e.annotations,u=void 0===l?[]:l,c=e.coordinate,p=e.events,f=e.facets;this.coordinateController?c&&this.coordinateController.update(c):this.coordinateController=new ec(c);for(var g=0;g<n.length;g++){var d=n[g];this.createGeometry(d)}for(var y=0;y<o.length;y++){var v=o[y],m=v.type,x=v.cfg;this.interaction(m,x)}for(var w=0;w<s.length;w++){var C=s[w];this.createView(C)}for(var b=this.getController("annotation"),M=0;M<u.length;M++){var S=u[M];b.annotation(S)}p&&N(p,(function(e,i){t.on(i,e)})),f&&N(f,(function(e){var i=e.type,n=h(e,["type"]);t.facet(i,n)}))},e.prototype.createGeometry=function(t){var e=t.type,i=t.cfg,n=void 0===i?{}:i;if(this[e]){var r=this[e](n);N(t,(function(t,e){X(r[e])&&r[e](t)}))}},e.prototype.getScaleKey=function(t){return"".concat(this.id,"-").concat(t)},e}(ke);function uc(t,e){hc.prototype[t.toLowerCase()]=function(t){void 0===t&&(t={});var i=l({container:this.middleGroup.addGroup(),labelsContainer:this.foregroundGroup.addGroup()},t),n=new e(i);return this.geometries.push(n),n}}var cc=function(t){function e(e){var i=this,n=e.container,r=e.width,o=e.height,a=e.autoFit,s=void 0!==a&&a,h=e.padding,u=e.appendPadding,c=e.renderer,p=void 0===c?"canvas":c,f=e.pixelRatio,g=e.localRefresh,d=void 0===g||g,y=e.visible,v=void 0===y||y,m=e.supportCSSTransform,x=void 0!==m&&m,w=e.defaultInteractions,C=void 0===w?["tooltip","legend-filter","legend-active","continuous-filter","ellipsis-text"]:w,b=e.options,M=e.limitInPlot,S=e.theme,A=e.syncViewPadding,T=et(n)?document.getElementById(n):n,B=we('<div style="position:relative;"></div>');T.appendChild(B);var k=Te(T,s,r,o),L=new(ve(p).Canvas)(l({container:B,pixelRatio:f,localRefresh:d,supportCSSTransform:x},k));return(i=t.call(this,{parent:null,canvas:L,backgroundGroup:L.addGroup({zIndex:he}),middleGroup:L.addGroup({zIndex:le}),foregroundGroup:L.addGroup({zIndex:se}),padding:h,appendPadding:u,visible:v,options:b,limitInPlot:M,theme:S,syncViewPadding:A})||this).onResize=Et((function(){i.forceFit()}),300),i.ele=T,i.canvas=L,i.width=k.width,i.height=k.height,i.autoFit=s,i.localRefresh=d,i.renderer=p,i.wrapperElement=B,i.updateCanvasStyle(),i.bindAutoFit(),i.initDefaultInteractions(C),i}return r(e,t),e.prototype.initDefaultInteractions=function(t){var e=this;N(t,(function(t){e.interaction(t)}))},e.prototype.aria=function(t){var e="aria-label";!1===t?this.ele.removeAttribute(e):this.ele.setAttribute(e,t.label)},e.prototype.changeSize=function(t,e){return this.width===t&&this.height===e||(this.emit(ne.BEFORE_CHANGE_SIZE),this.width=t,this.height=e,this.canvas.changeSize(t,e),this.render(!0),this.emit(ne.AFTER_CHANGE_SIZE)),this},e.prototype.clear=function(){t.prototype.clear.call(this),this.aria(!1)},e.prototype.destroy=function(){var e,i;t.prototype.destroy.call(this),this.unbindAutoFit(),this.canvas.destroy(),e=this.wrapperElement,(i=e.parentNode)&&i.removeChild(e),this.wrapperElement=null},e.prototype.changeVisible=function(e){return t.prototype.changeVisible.call(this,e),this.wrapperElement.style.display=e?"":"none",this},e.prototype.forceFit=function(){if(!this.destroyed){var t=Te(this.ele,!0,this.width,this.height),e=t.width,i=t.height;this.changeSize(e,i)}},e.prototype.updateCanvasStyle=function(){Se(this.canvas.get("el"),{display:"inline-block",verticalAlign:"middle"})},e.prototype.bindAutoFit=function(){this.autoFit&&window.addEventListener("resize",this.onResize)},e.prototype.unbindAutoFit=function(){this.autoFit&&window.removeEventListener("resize",this.onResize)},e}(e("View",hc)),pc=(e("Chart",cc),e("ComponentController",function(){function t(t){this.visible=!0,this.components=[],this.view=t}return t.prototype.clear=function(t){N(this.components,(function(t){t.component.destroy()})),this.components=[]},t.prototype.destroy=function(){this.clear()},t.prototype.getComponents=function(){return this.components},t.prototype.changeVisible=function(t){this.visible!==t&&(this.components.forEach((function(e){t?e.component.show():e.component.hide()})),this.visible=t)},t}()));var fc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isLocked=!1,e}return r(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"tooltip"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.isVisible=function(){return!1!==this.view.getOptions().tooltip},e.prototype.render=function(){},e.prototype.showTooltip=function(t){if(this.point=t,this.isVisible()){var e=this.view,i=this.getTooltipItems(t);if(i.length){var n=this.getTitle(i),r={x:i[0].x,y:i[0].y};e.emit("tooltip:show",nc.fromData(e,"tooltip:show",l({items:i,title:n},t)));var o=this.getTooltipCfg(),a=o.follow,s=o.showMarkers,h=o.showCrosshairs,u=o.showContent,c=o.marker,p=this.items,f=this.title;if(Xt(f,n)&&Xt(p,i)?(this.tooltip&&a&&(this.tooltip.update(t),this.tooltip.show()),this.tooltipMarkersGroup&&this.tooltipMarkersGroup.show()):(e.emit("tooltip:change",nc.fromData(e,"tooltip:change",l({items:i,title:n},t))),(X(u)?u(i):u)&&(this.tooltip||this.renderTooltip(),this.tooltip.update(Pt({},o,{items:this.getItemsAfterProcess(i),title:n},a?t:{})),this.tooltip.show()),s&&this.renderTooltipMarkers(i,c)),this.items=i,this.title=n,h){var g=Ht(o,["crosshairs","follow"],!1);this.renderCrosshairs(g?t:r,o)}}else this.hideTooltip()}},e.prototype.hideTooltip=function(){if(this.getTooltipCfg().follow){var t=this.tooltipMarkersGroup;t&&t.hide();var e=this.xCrosshair,i=this.yCrosshair;e&&e.hide(),i&&i.hide();var n=this.tooltip;n&&n.hide(),this.view.emit("tooltip:hide",nc.fromData(this.view,"tooltip:hide",{})),this.point=null}else this.point=null},e.prototype.lockTooltip=function(){this.isLocked=!0,this.tooltip&&this.tooltip.setCapture(!0)},e.prototype.unlockTooltip=function(){this.isLocked=!1;var t=this.getTooltipCfg();this.tooltip&&this.tooltip.setCapture(t.capture)},e.prototype.isTooltipLocked=function(){return this.isLocked},e.prototype.clear=function(){var t=this,e=t.tooltip,i=t.xCrosshair,n=t.yCrosshair,r=t.tooltipMarkersGroup;e&&(e.hide(),e.clear()),i&&i.clear(),n&&n.clear(),r&&r.clear(),(null==e?void 0:e.get("customContent"))&&(this.tooltip.destroy(),this.tooltip=null),this.title=null,this.items=null},e.prototype.destroy=function(){this.tooltip&&this.tooltip.destroy(),this.xCrosshair&&this.xCrosshair.destroy(),this.yCrosshair&&this.yCrosshair.destroy(),this.guideGroup&&this.guideGroup.remove(!0),this.reset()},e.prototype.reset=function(){this.items=null,this.title=null,this.tooltipMarkersGroup=null,this.tooltipCrosshairsGroup=null,this.xCrosshair=null,this.yCrosshair=null,this.tooltip=null,this.guideGroup=null,this.isLocked=!1,this.point=null},e.prototype.changeVisible=function(t){if(this.visible!==t){var e=this,i=e.tooltip,n=e.tooltipMarkersGroup,r=e.xCrosshair,o=e.yCrosshair;t?(i&&i.show(),n&&n.show(),r&&r.show(),o&&o.show()):(i&&i.hide(),n&&n.hide(),r&&r.hide(),o&&o.hide()),this.visible=t}},e.prototype.getTooltipItems=function(t){var e=this.findItemsFromView(this.view,t);if(e.length){for(var i=0,n=e=Z(e);i<n.length;i++)for(var r=0,o=n[i];r<o.length;r++){var a=o[r],s=a.mappingData,l=s.x,h=s.y;a.x=V(l)?l[l.length-1]:l,a.y=V(h)?h[h.length-1]:h}if(!1===this.getTooltipCfg().shared&&e.length>1){for(var u=e[0],c=Math.abs(t.y-u[0].y),p=0,f=e;p<f.length;p++){var g=f[p],d=Math.abs(t.y-g[0].y);d<=c&&(u=g,c=d)}e=[u]}return function(t){for(var e=[],i=function(i){var n=t[i];U(e,(function(t){return t.color===n.color&&t.name===n.name&&t.value===n.value&&t.title===n.title}))||e.push(n)},n=0;n<t.length;n++)i(n);return e}(Z(e))}return[]},e.prototype.layout=function(){},e.prototype.update=function(){if(this.point&&this.showTooltip(this.point),this.tooltip){var t=this.view.getCanvas();this.tooltip.set("region",{start:{x:0,y:0},end:{x:t.get("width"),y:t.get("height")}})}},e.prototype.isCursorEntered=function(t){if(this.tooltip){var e=this.tooltip.getContainer(),i=this.tooltip.get("capture");if(e&&i){var n=e.getBoundingClientRect(),r=n.x,o=n.y,a=n.width,s=n.height;return new hh(r,o,a,s).isPointIn(t)}}return!1},e.prototype.getTooltipCfg=function(){var t=this.view,e=t.getOptions().tooltip,i=this.processCustomContent(e),n=t.getTheme(),r=Ht(n,["components","tooltip"],{}),o=Ht(i,"enterable",r.enterable);return Dt({},r,i,{capture:!(!o&&!this.isLocked)})},e.prototype.processCustomContent=function(t){if(St(t)||!Ht(t,"customContent"))return t;var e=t.customContent;return l(l({},t),{customContent:function(t,i){var n=e(t,i)||"";return et(n)?'<div class="g2-tooltip">'+n+"</div>":n}})},e.prototype.getTitle=function(t){var e=t[0].title||t[0].name;return this.title=e,e},e.prototype.renderTooltip=function(){var t=this.view.getCanvas(),e={start:{x:0,y:0},end:{x:t.get("width"),y:t.get("height")}},i=this.getTooltipCfg(),n=new $l(l(l({parent:t.get("el").parentNode,region:e},i),{visible:!1,crosshairs:null}));n.init(),this.tooltip=n},e.prototype.renderTooltipMarkers=function(t,e){for(var i=this.getTooltipMarkersGroup(),n=this.view.getRootView(),r=n.limitInPlot,o=0,a=t;o<a.length;o++){var s=a[o],h=s.x,u=s.y;if(r||(null==i?void 0:i.getClip())){var c=gh(n.getCoordinate()),p=c.type,f=c.attrs;null==i||i.setClip({type:p,attrs:f})}else null==i||i.setClip(void 0);var g=l(l({fill:s.color,symbol:"circle",shadowColor:s.color},e),{x:h,y:u});i.addShape("marker",{attrs:g})}},e.prototype.renderCrosshairs=function(t,e){var i=Ht(e,["crosshairs","type"],"x");"x"===i?(this.yCrosshair&&this.yCrosshair.hide(),this.renderXCrosshairs(t,e)):"y"===i?(this.xCrosshair&&this.xCrosshair.hide(),this.renderYCrosshairs(t,e)):"xy"===i&&(this.renderXCrosshairs(t,e),this.renderYCrosshairs(t,e))},e.prototype.renderXCrosshairs=function(t,e){var i=this.getViewWithGeometry(this.view).getCoordinate();if(ph(i,t)){var n,r;if(i.isRect)i.isTransposed?(n={x:i.start.x,y:t.y},r={x:i.end.x,y:t.y}):(n={x:t.x,y:i.end.y},r={x:t.x,y:i.start.y});else{var o=fh(i,t),a=i.getCenter(),s=i.getRadius();r=eh(a.x,a.y,s,o),n=a}var l=Dt({start:n,end:r,container:this.getTooltipCrosshairsGroup()},Ht(e,"crosshairs",{}),this.getCrosshairsText("x",t,e));delete l.type;var h=this.xCrosshair;h?h.update(l):(h=new Ks(l)).init(),h.render(),h.show(),this.xCrosshair=h}},e.prototype.renderYCrosshairs=function(t,e){var i=this.getViewWithGeometry(this.view).getCoordinate();if(ph(i,t)){var n,r;if(i.isRect){var o=void 0,a=void 0;i.isTransposed?(o={x:t.x,y:i.end.y},a={x:t.x,y:i.start.y}):(o={x:i.start.x,y:t.y},a={x:i.end.x,y:t.y}),n={start:o,end:a},r="Line"}else n={center:i.getCenter(),radius:ch(i,t),startAngle:i.startAngle,endAngle:i.endAngle},r="Circle";delete(n=Dt({container:this.getTooltipCrosshairsGroup()},n,Ht(e,"crosshairs",{}),this.getCrosshairsText("y",t,e))).type;var s=this.yCrosshair;s?i.isRect&&"circle"===s.get("type")||!i.isRect&&"line"===s.get("type")?(s=new rl[r](n)).init():s.update(n):(s=new rl[r](n)).init(),s.render(),s.show(),this.yCrosshair=s}},e.prototype.getCrosshairsText=function(t,e,i){var n=Ht(i,["crosshairs","text"]),r=Ht(i,["crosshairs","follow"]),o=this.items;if(n){var a=this.getViewWithGeometry(this.view),s=o[0],l=a.getXScale(),h=a.getYScales()[0],u=void 0,c=void 0;if(r){var p=this.view.getCoordinate().invert(e);u=l.invert(p.x),c=h.invert(p.y)}else u=s.data[l.field],c=s.data[h.field];var f="x"===t?u:c;return X(n)?n=n(t,f,o,e):n.content=f,{text:n}}},e.prototype.getGuideGroup=function(){if(!this.guideGroup){var t=this.view.foregroundGroup;this.guideGroup=t.addGroup({name:"tooltipGuide",capture:!1})}return this.guideGroup},e.prototype.getTooltipMarkersGroup=function(){var t=this.tooltipMarkersGroup;return t&&!t.destroyed?(t.clear(),t.show()):((t=this.getGuideGroup().addGroup({name:"tooltipMarkersGroup"})).toFront(),this.tooltipMarkersGroup=t),t},e.prototype.getTooltipCrosshairsGroup=function(){var t=this.tooltipCrosshairsGroup;return t||((t=this.getGuideGroup().addGroup({name:"tooltipCrosshairsGroup",capture:!1})).toBack(),this.tooltipCrosshairsGroup=t),t},e.prototype.findItemsFromView=function(t,e){if(!1===t.getOptions().tooltip)return[];for(var i=Ku(t,e,this.getTooltipCfg()),n=0,r=t.views;n<r.length;n++){var o=r[n];i=i.concat(this.findItemsFromView(o,e))}return i},e.prototype.getViewWithGeometry=function(t){var e=this;return t.geometries.length?t:U(t.views,(function(t){return e.getViewWithGeometry(t)}))},e.prototype.getItemsAfterProcess=function(t){var e=this.getTooltipCfg().customItems;return(e||function(t){return t})(t)},e}(pc),gc=e("TooltipController",fc),dc={};function yc(t){return dc[t.toLowerCase()]}function vc(t,e){dc[t.toLowerCase()]=e}var mc={appear:{duration:450,easing:"easeQuadOut"},update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},xc={interval:function(t){return{enter:{animation:t.isRect?t.isTransposed?"scale-in-x":"scale-in-y":"fade-in"},update:{animation:t.isPolar&&t.isTransposed?"sector-path-update":null},leave:{animation:"fade-out"}}},line:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},path:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},point:{appear:{animation:"zoom-in"},enter:{animation:"zoom-in"},leave:{animation:"zoom-out"}},area:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},polygon:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},schema:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},edge:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},label:{appear:{animation:"fade-in",delay:450},enter:{animation:"fade-in"},update:{animation:"position-update"},leave:{animation:"fade-out"}}},wc={line:function(){return{animation:"wave-in"}},area:function(){return{animation:"wave-in"}},path:function(){return{animation:"fade-in"}},interval:function(t){var e;return t.isRect?e=t.isTransposed?"grow-in-x":"grow-in-y":(e="grow-in-xy",t.isPolar&&t.isTransposed&&(e="wave-in")),{animation:e}},schema:function(t){return{animation:t.isRect?t.isTransposed?"grow-in-x":"grow-in-y":"grow-in-xy"}},polygon:function(){return{animation:"fade-in",duration:500}},edge:function(){return{animation:"fade-in"}}};function Cc(t,e,i){var n=xc[t];return n&&(X(n)&&(n=n(e)),n=Dt({},mc,n),i)?n[i]:n}function bc(t,e,i){var n=Ht(t.get("origin"),"data",de),r=e.animation,o=function(t,e){return{delay:X(t.delay)?t.delay(e):t.delay,easing:X(t.easing)?t.easing(e):t.easing,duration:X(t.duration)?t.duration(e):t.duration,callback:t.callback,repeat:t.repeat}}(e,n);if(r){var a=yc(r);a&&a(t,o,i)}else t.animate(i.toAttrs,o)}var Mc="element-background",Sc=function(t){function e(e){var i=t.call(this,e)||this;i.states=[];var n=e.shapeFactory,r=e.container,o=e.offscreenGroup,a=e.elementIndex,s=e.visible,l=void 0===s||s;return i.shapeFactory=n,i.container=r,i.offscreenGroup=o,i.visible=l,i.elementIndex=a,i}return r(e,t),e.prototype.draw=function(t,e){void 0===e&&(e=!1),this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.drawShape(t,e),!1===this.visible&&this.changeVisible(!1)},e.prototype.update=function(t){var e=this.shapeFactory,i=this.shape;if(i){this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.setShapeInfo(i,t);var n=this.getOffscreenGroup(),r=e.drawShape(this.shapeType,t,n);r.cfg.data=this.data,r.cfg.origin=t,r.cfg.element=this,this.syncShapeStyle(i,r,this.getStates(),this.getAnimateCfg("update"))}},e.prototype.destroy=function(){var e=this.shapeFactory,i=this.shape;if(i){var n=this.getAnimateCfg("leave");n?bc(i,n,{coordinate:e.coordinate,toAttrs:l({},i.attr())}):i.remove(!0)}this.states=[],this.shapeFactory=void 0,this.container=void 0,this.shape=void 0,this.animate=void 0,this.geometry=void 0,this.labelShape=void 0,this.model=void 0,this.data=void 0,this.offscreenGroup=void 0,this.statesStyle=void 0,t.prototype.destroy.call(this)},e.prototype.changeVisible=function(e){t.prototype.changeVisible.call(this,e),e?(this.shape&&this.shape.show(),this.labelShape&&this.labelShape.forEach((function(t){t.show()}))):(this.shape&&this.shape.hide(),this.labelShape&&this.labelShape.forEach((function(t){t.hide()})))},e.prototype.setState=function(t,e){var i=this,n=i.states,r=i.shapeFactory,o=i.model,a=i.shape,s=i.shapeType,l=n.indexOf(t);if(e){if(l>-1)return;n.push(t),"active"!==t&&"selected"!==t||null==a||a.toFront()}else{if(-1===l)return;if(n.splice(l,1),"active"===t||"selected"===t){var h=this.geometry,u=h.sortZIndex,c=h.zIndexReversed?this.geometry.elements.length-this.elementIndex:this.elementIndex;u?a.setZIndex(c):a.set("zIndex",c)}}var p=r.drawShape(s,o,this.getOffscreenGroup());n.length?this.syncShapeStyle(a,p,n,null):this.syncShapeStyle(a,p,["reset"],null),p.remove(!0);var f={state:t,stateStatus:e,element:this,target:this.container};this.container.emit("statechange",f),ja(this.shape,"statechange",f)},e.prototype.clearStates=function(){var t=this;N(this.states,(function(e){t.setState(e,!1)})),this.states=[]},e.prototype.hasState=function(t){return this.states.includes(t)},e.prototype.getStates=function(){return this.states},e.prototype.getData=function(){return this.data},e.prototype.getModel=function(){return this.model},e.prototype.getBBox=function(){var t=this.shape,e=this.labelShape,i={x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0};return t&&(i=t.getCanvasBBox()),e&&e.forEach((function(t){var e=t.getCanvasBBox();i.x=Math.min(e.x,i.x),i.y=Math.min(e.y,i.y),i.minX=Math.min(e.minX,i.minX),i.minY=Math.min(e.minY,i.minY),i.maxX=Math.max(e.maxX,i.maxX),i.maxY=Math.max(e.maxY,i.maxY)})),i.width=i.maxX-i.minX,i.height=i.maxY-i.minY,i},e.prototype.getStatesStyle=function(){if(!this.statesStyle){var t=this,e=t.shapeType,i=t.geometry,n=t.shapeFactory,r=i.stateOption,o=n.defaultShapeType,a=n.theme[e]||n.theme[o];this.statesStyle=Dt({},a,r)}return this.statesStyle},e.prototype.getStateStyle=function(t,e){var i=this.getStatesStyle(),n=Ht(i,[t,"style"],{}),r=n[e]||n;return X(r)?r(this):r},e.prototype.getAnimateCfg=function(t){var e=this,i=this.animate;if(i){var n=i[t];return n?l(l({},n),{callback:function(){var t;X(n.callback)&&n.callback(),null===(t=e.geometry)||void 0===t||t.emit(re.AFTER_DRAW_ANIMATE)}}):n}return null},e.prototype.drawShape=function(t,e){var i;void 0===e&&(e=!1);var n=this,r=n.shapeFactory,o=n.container,a=n.shapeType;if(this.shape=r.drawShape(a,t,o),this.shape){this.setShapeInfo(this.shape,t);var s=this.shape.cfg.name;s?et(s)&&(this.shape.cfg.name=["element",s]):this.shape.cfg.name=["element",this.shapeFactory.geometryType];var h=e?"enter":"appear",u=this.getAnimateCfg(h);u&&(null===(i=this.geometry)||void 0===i||i.emit(re.BEFORE_DRAW_ANIMATE),bc(this.shape,u,{coordinate:r.coordinate,toAttrs:l({},this.shape.attr())}))}},e.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var t=this.container.getGroupBase();this.offscreenGroup=new t({})}return this.offscreenGroup},e.prototype.setShapeInfo=function(t,e){var i=this;(t.cfg.origin=e,t.cfg.element=this,t.isGroup())&&t.get("children").forEach((function(t){i.setShapeInfo(t,e)}))},e.prototype.syncShapeStyle=function(t,e,i,n,r){var o,a=this;if(void 0===i&&(i=[]),void 0===r&&(r=0),t&&e){var s=t.get("clipShape"),l=e.get("clipShape");if(this.syncShapeStyle(s,l,i,n),t.isGroup())for(var h=t.get("children"),u=e.get("children"),c=0;c<h.length;c++)this.syncShapeStyle(h[c],u[c],i,n,r+c);else{if(!Yt(i)&&!Xt(i,["reset"])){var p=t.get("name");V(p)&&(p=p[1]),N(i,(function(t){if(e.get("name")!==Mc){var i=a.getStateStyle(t,p||r);e.attr(i)}}))}var f=oh(t,e);this.animate?n?(null===(o=this.geometry)||void 0===o||o.emit(re.BEFORE_DRAW_ANIMATE),bc(t,n,{coordinate:this.shapeFactory.coordinate,toAttrs:f,shapeModel:this.model})):Yt(i)?t.attr(f):(t.stopAnimate(),t.animate(f,{duration:300})):t.attr(f)}}},e.prototype.getShapeType=function(t){var e=Ht(t,"shape");return V(e)?e[0]:e},e}(ke),Ac=e("Element",Sc),Tc={},Bc={};function kc(t){return Tc[t.toLowerCase()]}function Lc(t,e){Tc[t.toLowerCase()]=e}function Pc(t){return Bc[t.toLowerCase()]}function Ic(t,e){Bc[t.toLowerCase()]=e}var Ec={coordinate:null,defaultShapeType:null,theme:null,getShapePoints:function(t,e){var i=this.getShape(t);return i.getPoints?i.getPoints(e):this.getDefaultPoints(e)},getShape:function(t){var e=this[t]||this[this.defaultShapeType];return e.coordinate=this.coordinate,e},getDefaultPoints:function(){return[]},getDefaultStyle:function(t){return Ht(t,[this.defaultShapeType,"default","style"],{})},getMarker:function(t,e){var i=this.getShape(t);if(!i.getMarker){var n=this.defaultShapeType;i=this.getShape(n)}var r=this.theme,o=Ht(r,[t,"default"],{}),a=i.getMarker(e);return Dt({},o,a)},drawShape:function(t,e,i){return this.getShape(t).draw(e,i)}},Fc={coordinate:null,parsePath:function(t){var e=this.coordinate,i=sr(t);return i=e.isPolar?Wh(e,i):function(t,e){var i=[];return N(e,(function(e){switch(e[0].toLowerCase()){case"m":case"l":case"c":i.push(Xh(e,t));break;case"a":i.push(zh(e,t));break;default:i.push(e)}})),i}(e,i),i},parsePoint:function(t){return this.coordinate.convert(t)},parsePoints:function(t){var e=this.coordinate;return t.map((function(t){return e.convert(t)}))},draw:function(t,e){}},Oc={};function Dc(t,e){var i=bt(t),n=l(l(l({},Ec),e),{geometryType:t});return Oc[i]=n,n}function Rc(t,e,i){var n=bt(t),r=Oc[n],o=l(l({},Fc),i);return r[e]=o,o}function _c(t){var e=bt(t);return Oc[e]}function Yc(t,e){return at(["color","shape","size","x","y","isInCircle","data","style","defaultStyle","points","mappingData"],(function(i){return!Xt(t[i],e[i])}))}function Gc(t){return V(t)?t:t.split("*")}function Xc(t,e){for(var i=[],n=[],r=[],o=new Map,a=0;a<e.length;a++){var s=e[a];t[s]?n.push(s):i.push(s),o.set(s,!0)}return Object.keys(t).forEach((function(t){o.has(t)||r.push(t)})),{added:i,updated:n,removed:r}}var zc=function(e){function i(t){var i=e.call(this,t)||this;i.type="base",i.attributes={},i.elements=[],i.elementsMap={},i.animateOption=!0,i.attributeOption={},i.lastElementsMap={},i.generatePoints=!1,i.beforeMappingData=null,i.adjusts={},i.idFields=[],i.hasSorted=!1,i.isCoordinateChanged=!1;var n=t.container,r=t.labelsContainer,o=t.coordinate,a=t.data,s=t.sortable,l=void 0!==s&&s,h=t.visible,u=void 0===h||h,c=t.theme,p=t.scales,f=void 0===p?{}:p,g=t.scaleDefs,d=void 0===g?{}:g,y=t.intervalPadding,v=t.dodgePadding,m=t.maxColumnWidth,x=t.minColumnWidth,w=t.columnWidthRatio,C=t.roseWidthRatio,b=t.multiplePieWidthRatio,M=t.zIndexReversed,S=t.sortZIndex;return i.container=n,i.labelsContainer=r,i.coordinate=o,i.data=a,i.sortable=l,i.visible=u,i.userTheme=c,i.scales=f,i.scaleDefs=d,i.intervalPadding=y,i.dodgePadding=v,i.maxColumnWidth=m,i.minColumnWidth=x,i.columnWidthRatio=w,i.roseWidthRatio=C,i.multiplePieWidthRatio=b,i.zIndexReversed=M,i.sortZIndex=S,i}return r(i,e),i.prototype.position=function(t){var e=t;q(t)||(e={fields:Gc(t)});var i=Ht(e,"fields");return 1===i.length&&(i.unshift("1"),Nt(e,"fields",i)),Nt(this.attributeOption,"position",e),this},i.prototype.color=function(t,e){return this.createAttrOption("color",t,e),this},i.prototype.shape=function(t,e){return this.createAttrOption("shape",t,e),this},i.prototype.size=function(t,e){return this.createAttrOption("size",t,e),this},i.prototype.adjust=function(t){var e=t;return(et(t)||q(t))&&(e=[t]),N(e,(function(t,i){H(t)||(e[i]={type:t})})),this.adjustOption=e,this},i.prototype.style=function(t,e){if(et(t)){var i=Gc(t);this.styleOption={fields:i,callback:e}}else{var n=t,r=(i=n.fields,n.callback),o=n.cfg;this.styleOption=i||r||o?t:{cfg:t}}return this},i.prototype.tooltip=function(t,e){if(et(t)){var i=Gc(t);this.tooltipOption={fields:i,callback:e}}else this.tooltipOption=t;return this},i.prototype.animate=function(t){return this.animateOption=t,this},i.prototype.label=function(t,e,i){if(et(t)){var n={},r=Gc(t);n.fields=r,X(e)?n.callback=e:q(e)&&(n.cfg=e),i&&(n.cfg=i),this.labelOption=n}else this.labelOption=t;return this},i.prototype.state=function(t){return this.stateOption=t,this},i.prototype.customInfo=function(t){return this.customOption=t,this},i.prototype.init=function(t){void 0===t&&(t={}),this.setCfg(t),this.initAttributes(),this.processData(this.data),this.adjustScale()},i.prototype.update=function(t){void 0===t&&(t={});var e=t.data,i=t.isDataChanged,n=t.isCoordinateChanged,r=this.attributeOption,o=this.lastAttributeOption;Xt(r,o)?!e||!i&&Xt(e,this.data)?this.setCfg(t):(this.setCfg(t),this.initAttributes(),this.processData(e)):this.init(t),this.adjustScale(),this.isCoordinateChanged=n},i.prototype.paint=function(t){void 0===t&&(t=!1),this.animateOption&&(this.animateOption=Dt({},Cc(this.type,this.coordinate),this.animateOption)),this.defaultSize=void 0,this.elementsMap={},this.elements=[],this.getOffscreenGroup().clear();var e=this.beforeMappingData,i=this.beforeMapping(e);this.dataArray=new Array(i.length);for(var n=0;n<i.length;n++){var r=i[n];this.dataArray[n]=this.mapping(r)}if(this.updateElements(this.dataArray,t),this.lastElementsMap=this.elementsMap,this.canDoGroupAnimation(t)){var o=this.container,a=this.type,s=this.coordinate,h=Ht(this.animateOption,"appear"),u=this.getYScale(),c=s.convert({x:0,y:u.scale(this.getYMinValue())});!function(t,e,i,n,r){if(wc[i]){var o=wc[i](n),a=yc(Ht(o,"animation",""));if(a){var s=l(l(l({},mc.appear),o),e);t.stopAnimate(),a(t,s,{coordinate:n,minYPoint:r,toAttrs:null})}}}(o,h,a,s,c)}this.labelOption&&this.renderLabels(Z(this.dataArray),t),this.lastAttributeOption=l({},this.attributeOption),!1===this.visible&&this.changeVisible(!1)},i.prototype.clear=function(){var t=this,e=t.container,i=t.geometryLabel,n=t.offscreenGroup;e&&e.clear(),i&&i.clear(),n&&n.clear(),this.scaleDefs=void 0,this.attributes={},this.scales={},this.elementsMap={},this.lastElementsMap={},this.elements=[],this.adjusts={},this.dataArray=null,this.beforeMappingData=null,this.lastAttributeOption=void 0,this.defaultSize=void 0,this.idFields=[],this.groupScales=void 0,this.hasSorted=!1,this.isCoordinateChanged=!1},i.prototype.destroy=function(){this.clear(),this.container.remove(!0),this.offscreenGroup&&(this.offscreenGroup.remove(!0),this.offscreenGroup=null),this.geometryLabel&&(this.geometryLabel.destroy(),this.geometryLabel=null),this.theme=void 0,this.shapeFactory=void 0,e.prototype.destroy.call(this)},i.prototype.getGroupScales=function(){return this.groupScales},i.prototype.getAttribute=function(t){return this.attributes[t]},i.prototype.getXScale=function(){return this.getAttribute("position").scales[0]},i.prototype.getYScale=function(){return this.getAttribute("position").scales[1]},i.prototype.getGroupAttributes=function(){var t=[];return N(this.attributes,(function(e){ge.includes(e.type)&&t.push(e)})),t},i.prototype.getDefaultValue=function(t){var e,i=this.getAttribute(t);return i&&Yt(i.scales)&&(e=i.values[0]),e},i.prototype.getAttributeValues=function(t,e){for(var i=[],n=t.scales,r=0,o=n.length;r<o;r++){var a=n[r],s=a.field;a.isIdentity?i.push(a.values):i.push(e[s])}return t.mapping.apply(t,i)},i.prototype.getAdjust=function(t){return this.adjusts[t]},i.prototype.getCoordinate=function(){return this.coordinate},i.prototype.getData=function(){return this.data},i.prototype.getShapeMarker=function(t,e){return this.getShapeFactory().getMarker(t,e)},i.prototype.getElementsBy=function(t){return this.elements.filter((function(e){return t(e)}))},i.prototype.getElements=function(){return this.elements},i.prototype.getElementId=function(t){var e=(t=V(t)?t[0]:t)[de];if(this.idFields.length){for(var i=e[this.idFields[0]],n=1;n<this.idFields.length;n++)i+="-"+e[this.idFields[n]];return i}var r,o,a=this.type,s=this.getXScale(),l=this.getYScale(),h=s.field||"x",u=e[l.field||"y"];r="identity"===s.type?s.values[0]:e[h],o="interval"===a||"schema"===a?"".concat(r):"line"===a||"area"===a||"path"===a?a:"".concat(r,"-").concat(u);for(var c=this.groupScales,p=(n=0,c.length);n<p;n++){var f=c[n].field;o="".concat(o,"-").concat(e[f])}var g=this.getAdjust("dodge");if(g){var d=g.dodgeBy;d&&(o="".concat(o,"-").concat(e[d]))}return this.getAdjust("jitter")&&(o="".concat(o,"-").concat(t.x,"-").concat(t.y)),o},i.prototype.getScaleFields=function(){var t=[],e=new Map,i=this,n=i.attributeOption,r=i.labelOption,o=i.tooltipOption;for(var a in n)if(n.hasOwnProperty(a)){var s=n[a];s.fields?lh(s.fields,t,e):s.values&&lh(s.values,t,e)}return r&&r.fields&&lh(r.fields,t,e),H(o)&&o.fields&&lh(o.fields,t,e),t},i.prototype.changeVisible=function(t){e.prototype.changeVisible.call(this,t);for(var i=this.elements,n=0,r=i.length;n<r;n++){i[n].changeVisible(t)}t?(this.container&&this.container.show(),this.labelsContainer&&this.labelsContainer.show()):(this.container&&this.container.hide(),this.labelsContainer&&this.labelsContainer.hide())},i.prototype.getFields=function(){var t=new Map,e=[];return Object.values(this.attributeOption).forEach((function(i){((null==i?void 0:i.fields)||[]).forEach((function(i){t.has(i)||e.push(i),t.set(i,!0)}))}),[]),e},i.prototype.getGroupFields=function(){for(var t=[],e=new Map,i=0,n=ge.length;i<n;i++){var r=ge[i],o=this.attributeOption[r];o&&o.fields&&lh(o.fields,t,e)}return t},i.prototype.getXYFields=function(){var t=this.attributeOption.position.fields;return[t[0],t[1]]},i.prototype.getXField=function(){return Ht(this.getXYFields(),[0])},i.prototype.getYField=function(){return Ht(this.getXYFields(),[1])},i.prototype.getShapes=function(){return this.elements.map((function(t){return t.shape}))},i.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var t=this.container.getGroupBase();this.offscreenGroup=new t({})}return this.offscreenGroup},i.prototype.sort=function(t){if(!this.hasSorted)for(var e=this.getXScale(),i=e.field,n=0;n<t.length;n++){t[n].sort((function(t,n){return e.translate(t[de][i])-e.translate(n[de][i])}))}this.hasSorted=!0},i.prototype.adjustScale=function(){var t=this.getYScale();t&&this.getAdjust("stack")&&this.updateStackRange(t,this.beforeMappingData)},i.prototype.getShapeFactory=function(){var t=this.shapeType;if(_c(t))return this.shapeFactory||(this.shapeFactory=It(_c(t))),this.shapeFactory.coordinate=this.coordinate,this.shapeFactory.theme=this.theme.geometries[t]||{},this.shapeFactory},i.prototype.createShapePointsCfg=function(t){var e=this.getXScale(),i=this.getYScale();return{x:this.normalizeValues(t[e.field],e),y:i?this.normalizeValues(t[i.field],i):t.y?t.y:.1,y0:i?i.scale(this.getYMinValue()):void 0}},i.prototype.createElement=function(t,e,i){void 0===i&&(i=!1);var n=this.container,r=this.getDrawCfg(t),o=this.getShapeFactory(),a=new Ac({shapeFactory:o,container:n,offscreenGroup:this.getOffscreenGroup(),elementIndex:e});return a.animate=this.animateOption,a.geometry=this,a.draw(r,i),a},i.prototype.getDrawCfg=function(t){var e=t[de],i={mappingData:t,data:e,x:t.x,y:t.y,color:t.color,size:t.size,isInCircle:this.coordinate.isPolar,customInfo:this.customOption},n=t.shape;!n&&this.getShapeFactory()&&(n=this.getShapeFactory().defaultShapeType),i.shape=n;var r=this.theme.geometries[this.shapeType];i.defaultStyle=Ht(r,[n,"default"],{}).style,!i.defaultStyle&&this.getShapeFactory()&&(i.defaultStyle=this.getShapeFactory().getDefaultStyle(r));var o=this.styleOption;return o&&(i.style=this.getStyleCfg(o,e)),this.generatePoints&&(i.points=t.points,i.nextPoints=t.nextPoints),i},i.prototype.updateElements=function(t,e){void 0===e&&(e=!1);for(var i=new Map,n=[],r=new Map,o=0,a=0;a<t.length;a++)for(var s=t[a],l=0;l<s.length;l++){var h=s[l],u=this.getElementId(h),c=i.has(u)?"".concat(u,"-").concat(a,"-").concat(l):u;n.push(c),i.set(c,h),r.set(c,o),o++}this.elements=new Array(o);for(var p=Xc(this.lastElementsMap,n),f=p.added,g=p.updated,d=p.removed,y=0,v=f;y<v.length;y++){u=v[y],h=i.get(u),a=r.get(u);var m=this.createElement(h,a,e);this.elements[a]=m,this.elementsMap[u]=m,m.shape&&m.shape.set("zIndex",this.zIndexReversed?this.elements.length-a:a)}for(var x=0,w=g;x<w.length;x++){u=w[x],m=this.lastElementsMap[u],h=i.get(u);var C=this.getDrawCfg(h),b=m.getModel();a=r.get(u);(this.isCoordinateChanged||Yc(C,b))&&(m.animate=this.animateOption,m.update(C)),this.elements[a]=m,this.elementsMap[u]=m,m.shape&&m.shape.set("zIndex",this.zIndexReversed?this.elements.length-a:a)}this.container&&this.container.sort();for(var M=0,S=d;M<S.length;M++){u=S[M];(m=this.lastElementsMap[u]).animate=this.animateOption,m.destroy()}},i.prototype.getLabelType=function(){var t=this,e=t.labelOption,i=t.coordinate,n=t.type,r=i.type,o=i.isTransposed,a=Ht(e,["cfg","type"]);return a||(a="polar"===r?o?"pie":"polar":"theta"===r?"pie":"interval"===n||"polygon"===n?"interval":"base"),a},i.prototype.getYMinValue=function(){var t=this.getYScale(),e=t.min,i=t.max;return e>=0?e:i<=0?i:0},i.prototype.createAttrOption=function(t,e,i){if(z(e)||H(e))H(e)&&Xt(Object.keys(e),["values"])?Nt(this.attributeOption,t,{fields:e.values}):Nt(this.attributeOption,t,e);else{var n={};pt(e)?n.values=[e]:n.fields=Gc(e),i&&(X(i)?n.callback=i:n.values=i),Nt(this.attributeOption,t,n)}},i.prototype.initAttributes=function(){var e=this,i=this,n=i.attributes,r=i.attributeOption,o=i.theme,a=i.shapeType;this.groupScales=[];var s={},h=function(t){if(r.hasOwnProperty(t)){var i=r[t];if(!i)return{value:void 0};var h=l({},i),u=h.callback,c=h.values,p=h.fields,f=(void 0===p?[]:p).map((function(i){var n=e.scales[i];!s[i]&&ge.includes(t)&&("cat"===yh(n,Ht(e.scaleDefs,i),t,e.type)&&(e.groupScales.push(n),s[i]=!0));return n}));h.scales=f,"position"!==t&&1===f.length&&"identity"===f[0].type?h.values=f[0].values:u||c||("size"===t?h.values=o.sizes:"shape"===t?h.values=o.shapes[a]||[]:"color"===t&&(f.length?h.values=f[0].values.length<=10?o.colors10:o.colors20:h.values=o.colors10));var g=_a(t);n[t]=new g(h)}};for(var u in r){var c=h(u);if("object"===t(c))return c.value}},i.prototype.processData=function(t){this.hasSorted=!1;for(var e=this.getAttribute("position").scales.filter((function(t){return t.isCategory})),i=this.groupData(t),n=[],r=0,o=i.length;r<o;r++){for(var a=i[r],s=[],l=0,h=a.length;l<h;l++){var u=a[l],c={};for(var p in u)c[p]=u[p];c[de]=u;for(var f=0,g=e;f<g.length;f++){var d=g[f],y=d.field;c[y]=d.translate(c[y])}s.push(c)}n.push(s)}var v=this.adjustData(n);return this.beforeMappingData=v,v},i.prototype.adjustData=function(t){var e=this.adjustOption,i=this,n=i.intervalPadding,r=i.dodgePadding,o=i.theme,a=this.maxColumnWidth||o.maxColumnWidth,s=this.minColumnWidth||o.minColumnWidth,h=this.columnWidthRatio||o.columnWidthRatio,u=t;if(e){var c=this.getXScale(),p=this.getYScale(),f=c.field,g=p?p.field:null,d=uh(this.coordinate),y=c.values.length,v=this.getAttribute("size"),m=void 0;v&&(m=v.values[0]);for(var x=0,w=e.length;x<w;x++){var C=e[x],b=l({xField:f,yField:g,intervalPadding:n,dodgePadding:r,xDimensionLength:d,groupNum:y,defaultSize:m,maxColumnWidth:a,minColumnWidth:s,columnWidthRatio:h},C),M=C.type;if("dodge"===M){var S=[];if(c.isCategory||"identity"===c.type)S.push("x");else{if(p)throw new Error("dodge is not support linear attribute, please use category attribute!");S.push("y")}b.adjustNames=S,b.dodgeRatio=h}else if("stack"===M){var A=this.coordinate;if(!p){b.height=A.getHeight();var T=this.getDefaultValue("size")||3;b.size=T}!A.isTransposed&&z(b.reverseOrder)&&(b.reverseOrder=!0)}var B=kr(M);b.dimValuesMap={},c&&c.values&&(b.dimValuesMap[c.field]=c.values.map((function(t){return c.translate(t)})));var k=new B(b);u=k.process(u),this.adjusts[M]=k}}return u},i.prototype.groupData=function(t){for(var e=this.getGroupScales(),i=this.scaleDefs,n={},r=[],o=0;o<e.length;o++){var a=e[o].field;r.push(a),Ht(i,[a,"values"])&&(n[a]=i[a].values)}return function(t,e,i){if(void 0===i&&(i={}),!e)return[t];var n=ht(t,e),r=[];if(1===e.length&&i[e[0]])for(var o=0,a=i[e[0]];o<a.length;o++){var s=a[o],l=n["_".concat(s)];l&&r.push(l)}else for(var h in n)if(n.hasOwnProperty(h)){var u=n[h];r.push(u)}return r}(t,r,n)},i.prototype.updateStackRange=function(t,e){for(var i=Z(e),n=t.field,r=t.min,o=t.max,a=0;a<i.length;a++){var s=i[a],l=Math.min.apply(null,s[n]),h=Math.max.apply(null,s[n]);l<r&&(r=l),h>o&&(o=h)}var u=this.scaleDefs,c={};r<t.min&&!Ht(u,[n,"min"])&&(c.min=r),o>t.max&&!Ht(u,[n,"max"])&&(c.max=o),t.change(c)},i.prototype.beforeMapping=function(t){var e=t;if(this.sortable&&this.sort(e),this.generatePoints)for(var i=0,n=e.length;i<n;i++){var r=e[i];this.generateShapePoints(r);var o=e[i+1];o&&(this.generateShapePoints(o),r[0].nextPoints=o[0].points)}return e},i.prototype.generateShapePoints=function(t){for(var e=this.getShapeFactory(),i=this.getAttribute("shape"),n=0;n<t.length;n++){var r=t[n],o=this.createShapePointsCfg(r),a=i?this.getAttributeValues(i,r):null,s=e.getShapePoints(a,o);r.points=s}},i.prototype.normalizeValues=function(t,e){var i=[];if(V(t))for(var n=0;n<t.length;n++){var r=t[n];i.push(e.scale(r))}else i=e.scale(t);return i},i.prototype.mapping=function(t){for(var e=this.attributes,i=[],n=0;n<t.length;n++){var r=t[n],o={_origin:r[de],points:r.points,nextPoints:r.nextPoints};for(var a in e)if(e.hasOwnProperty(a)){var s=e[a],l=s.names,h=this.getAttributeValues(s,r);if(l.length>1)for(var u=0;u<h.length;u+=1){var c=h[u];o[l[u]]=V(c)&&1===c.length?c[0]:c}else o[l[0]]=1===h.length?h[0]:h}this.convertPoint(o),i.push(o)}return i},i.prototype.convertPoint=function(t){var e,i,n,r=t.x,o=t.y,a=this.coordinate;if(V(r)&&V(o)){e=[],i=[];for(var s=0,l=0,h=r.length,u=o.length;s<h&&l<u;s+=1,l+=1)n=a.convert({x:r[s],y:o[l]}),e.push(n.x),i.push(n.y)}else if(V(o)){i=[];for(var c=0;c<o.length;c++){var p=o[c];n=a.convert({x:r,y:p}),e&&e!==n.x?(V(e)||(e=[e]),e.push(n.x)):e=n.x,i.push(n.y)}}else if(V(r)){e=[];for(c=0;c<r.length;c++){var f=r[c];n=a.convert({x:f,y:o}),i&&i!==n.y?(V(i)||(i=[i]),i.push(n.y)):i=n.y,e.push(n.x)}}else{var g=a.convert({x:r,y:o});e=g.x,i=g.y}t.x=e,t.y=i},i.prototype.getStyleCfg=function(t,e){var i=t.fields,n=void 0===i?[]:i,r=t.callback,o=t.cfg;if(o)return o;var a=n.map((function(t){return e[t]}));return r.apply(void 0,a)},i.prototype.setCfg=function(t){var e=this,i=t.coordinate,n=t.data,r=t.theme,o=t.scaleDefs;i&&(this.coordinate=i),n&&(this.data=n),o&&(this.scaleDefs=o,this.idFields=[],N(o,(function(t,i){t&&t.key&&e.idFields.push(i)}))),r&&(this.theme=this.userTheme?Dt({},r,this.userTheme):r)},i.prototype.renderLabels=function(t,e){void 0===e&&(e=!1);var i=this.geometryLabel;i||(i=new(kc(this.getLabelType()))(this),this.geometryLabel=i);i.render(t,e);var n=i.labelsRenderer.shapesMap;N(this.elementsMap,(function(t,e){var i=function(t,e){var i=[];return N(e,(function(e,n){n.split(" ")[0]===t&&i.push(e)})),i}(e,n);if(i.length){t.labelShape=i;for(var r=0;r<i.length;r++)for(var o=i[r].getChildren(),a=0;a<o.length;a++){var s=o[a];s.cfg.name=["element","label"],s.cfg.element=t}}}))},i.prototype.canDoGroupAnimation=function(t){return!t&&this.animateOption&&(void 0===Ht(this.animateOption,"appear")||Ht(this.animateOption,"appear")&&void 0===Ht(this.animateOption,["appear","animation"]))},i}(ke),Vc=e("Geometry",zc),Hc=Hi;function Nc(t,e,i){var n=Hc(t.getMatrix(),[["t",e,i]]);t.setMatrix(n)}function Wc(t,e){var i=function(t,e){var i=t.attr(),n=i.x,r=i.y;return Hc(t.getMatrix(),[["t",-n,-r],["r",e],["t",n,r]])}(t,e);t.setMatrix(i)}function jc(t){return t.find((function(t){return"text"===t.get("type")}))}function qc(t,e,i){void 0===i&&(i=[0,0,0,0]);var n=t.getChildren()[0];if(n){var r=n.clone();(null==e?void 0:e.rotate)&&Wc(r,-e.rotate);var o=r.getCanvasBBox(),a=o.x,s=o.y,l=o.width,h=o.height;r.destroy();var u=i;return z(u)?u=[2,2,2,2]:pt(u)&&(u=new Array(4).fill(u)),{x:a-u[3],y:s-u[0],width:l+u[1]+u[3],height:h+u[0]+u[2],rotation:(null==e?void 0:e.rotate)||0}}}function Uc(t,e){var i=t.getBBox();return at(e,(function(t){var e,n,r,o=t.getBBox();return e=i,n=o,void 0===(r=2)&&(r=0),Math.max(0,Math.min(e.x+e.width+r,n.x+n.width+r)-Math.max(e.x-r,n.x-r))*Math.max(0,Math.min(e.y+e.height+r,n.y+n.height+r)-Math.max(e.y-r,n.y-r))>0}))}function Zc(t,e,i){var n=i.data,r=i.origin,o=i.animateCfg,a=i.coordinate,s=Ht(o,"update");t.set("data",n),t.set("origin",r),t.set("animateCfg",o),t.set("coordinate",a),t.set("visible",e.get("visible")),t.getChildren().forEach((function(l,h){var u=e.getChildByIndex(h);if(u){l.set("data",n),l.set("origin",r),l.set("animateCfg",o),l.set("coordinate",a);var c=oh(l,u);s?bc(l,s,{toAttrs:c,coordinate:a}):l.attr(c),u.isGroup()&&Zc(l,u,i)}else t.removeChild(l),l.remove(!0)})),N(e.getChildren(),(function(e,i){i>=t.getCount()&&(e.destroyed||t.add(e))}))}var Qc=function(){function t(t){this.shapesMap={},this.lastShapesMap={};var e=t.layout,i=t.container;this.layout=e,this.container=i}return t.prototype.render=function(t,e,i){var n=this;void 0===i&&(i=!1),this.shapesMap={};var r=this.container,o=this.createOffscreenGroup();if(t.length){for(var a=0,s=t;a<s.length;a++){var h=s[a];h&&this.renderLabel(h,o)}this.doLayout(t,e),this.renderLabelLine(t),this.renderLabelBackground(t),this.adjustLabel(t)}var u=this.lastShapesMap,c=this.shapesMap;N(c,(function(t,e){if(t.destroyed)delete c[e];else{if(u[e]){var o=t.get("data"),a=t.get("origin"),s=t.get("coordinate"),h=t.get("animateCfg"),p=u[e];Zc(p,c[e],{data:o,origin:a,animateCfg:h,coordinate:s}),n.shapesMap[e]=p}else{r.add(t);var f=Ht(t.get("animateCfg"),i?"enter":"appear");f&&bc(t,f,{toAttrs:l({},t.attr()),coordinate:t.get("coordinate")})}delete u[e]}})),N(u,(function(t){var e=Ht(t.get("animateCfg"),"leave");e?bc(t,e,{toAttrs:null,coordinate:t.get("coordinate")}):t.remove(!0)})),this.lastShapesMap=c,o.destroy()},t.prototype.clear=function(){this.container.clear(),this.shapesMap={},this.lastShapesMap={}},t.prototype.destroy=function(){this.container.destroy(),this.shapesMap=null,this.lastShapesMap=null},t.prototype.renderLabel=function(t,e){var i,n,r=t.id,o=t.elementId,a=t.data,s=t.mappingData,h=t.coordinate,u=t.animate,c=t.content,p={id:r,elementId:o,data:a,origin:l(l({},s),{data:s[de]}),coordinate:h},f=e.addGroup(l({name:"label",animateCfg:!1!==this.animate&&null!==u&&!1!==u&&Dt({},this.animate,u)},p));if(c.isGroup&&c.isGroup()||c.isShape&&c.isShape()){var g=c.getCanvasBBox(),d=g.width,y=g.height,v=Ht(t,"textAlign","left"),m=t.x;"center"===v?m-=d/2:"right"!==v&&"end"!==v||(m-=d),Nc(c,m,t.y-y/2),i=c,f.add(c)}else{var x=Ht(t,["style","fill"]);i=f.addShape("text",l({attrs:l(l({x:t.x,y:t.y,textAlign:t.textAlign,textBaseline:Ht(t,"textBaseline","middle"),text:t.content},t.style),{fill:(n=x,null===n?t.color:x)})},p))}t.rotate&&Wc(i,t.rotate),this.shapesMap[r]=f},t.prototype.doLayout=function(t,e){var i=this;this.layout&&N(V(this.layout)?this.layout:[this.layout],(function(n){var r=Pc(Ht(n,"type",""));if(r){var o=[],a=[];N(i.shapesMap,(function(t,i){o.push(t),a.push(e[t.get("elementId")])})),r(t,o,a,i.region,n.cfg)}}))},t.prototype.renderLabelLine=function(t){var e=this;N(t,(function(t){var i=Ht(t,"coordinate");if(t&&i){var n=i.getCenter(),r=i.getRadius();if(t.labelLine){var o=Ht(t,"labelLine",{}),a=t.id,s=o.path;if(!s){var h=eh(n.x,n.y,r,t.angle);s=[["M",h.x,h.y],["L",t.x,t.y]]}var u=e.shapesMap[a];u.destroyed||u.addShape("path",{capture:!1,attrs:l({path:s,stroke:t.color?t.color:Ht(t,["style","fill"],"#000"),fill:null},o.style),id:a,origin:t.mappingData,data:t.data,coordinate:t.coordinate})}}}))},t.prototype.renderLabelBackground=function(t){var e=this;N(t,(function(t){var i=Ht(t,"coordinate"),n=Ht(t,"background");if(n&&i){var r=t.id,o=e.shapesMap[r];if(!o.destroyed){var a=o.getChildren()[0];if(a){var s=qc(o,t,n.padding),u=s.rotation,c=h(s,["rotation"]),p=o.addShape("rect",{attrs:l(l({},c),n.style||{}),id:r,origin:t.mappingData,data:t.data,coordinate:t.coordinate});if(p.setZIndex(-1),u){var f=a.getMatrix();p.setMatrix(f)}}}}}))},t.prototype.createOffscreenGroup=function(){return new(this.container.getGroupBase())({})},t.prototype.adjustLabel=function(t){var e=this;N(t,(function(t){if(t){var i=t.id,n=e.shapesMap[i];if(!n.destroyed)N(n.findAll((function(t){return"path"!==t.get("type")})),(function(e){e&&(t.offsetX&&e.attr("x",e.attr("x")+t.offsetX),t.offsetY&&e.attr("y",e.attr("y")+t.offsetY))}))}}))},t}();function Kc(t){var e=0;return N(t,(function(t){e+=t})),e/t.length}var $c=function(){function t(t){this.geometry=t}return t.prototype.getLabelItems=function(t){var e=this,i=[],n=this.getLabelCfgs(t);return N(t,(function(t,r){var o=n[r];if(!o||z(t.x)||z(t.y))i.push(null);else{var a=V(o.content)?o.content:[o.content];o.content=a;var s=a.length;N(a,(function(n,r){if(z(n)||""===n)i.push(null);else{var a=l(l({},o),e.getLabelPoint(o,t,r));a.textAlign||(a.textAlign=e.getLabelAlign(a,r,s)),a.offset<=0&&(a.labelLine=null),i.push(a)}}))}})),i},t.prototype.render=function(t,e){void 0===e&&(e=!1);var i=this.getLabelItems(t),n=this.getLabelsRenderer(),r=this.getGeometryShapes();n.render(i,r,e)},t.prototype.clear=function(){var t=this.labelsRenderer;t&&t.clear()},t.prototype.destroy=function(){var t=this.labelsRenderer;t&&t.destroy(),this.labelsRenderer=null},t.prototype.getCoordinate=function(){return this.geometry.coordinate},t.prototype.getDefaultLabelCfg=function(t,e){var i=this.geometry,n=i.type,r=i.theme;return"polygon"===n||"interval"===n&&"middle"===e||t<0&&!["line","point","path"].includes(n)?Ht(r,"innerLabels",{}):Ht(r,"labels",{})},t.prototype.getThemedLabelCfg=function(t){var e=this.geometry,i=this.getDefaultLabelCfg(),n=e.type,r=e.theme;return"polygon"===n||t.offset<0&&!["line","point","path"].includes(n)?Dt({},i,r.innerLabels,t):Dt({},i,r.labels,t)},t.prototype.setLabelPosition=function(t,e,i,n){},t.prototype.getLabelOffset=function(t){var e=this.getCoordinate(),i=this.getOffsetVector(t);return e.isTransposed?i[0]:i[1]},t.prototype.getLabelOffsetPoint=function(t,e,i){var n=t.offset,r=this.getCoordinate().isTransposed,o=r?"x":"y",a=r?1:-1,s={x:0,y:0};return s[o]=e>0||1===i?n*a:n*a*-1,s},t.prototype.getLabelPoint=function(t,e,i){var n=this.getCoordinate(),r=t.content.length;function o(e,i,n){void 0===n&&(n=!1);var r=e;return V(r)&&(r=1===t.content.length?n?Kc(r):r.length<=2?r[e.length-1]:Kc(r):r[i]),r}var a={content:t.content[i],x:0,y:0,start:{x:0,y:0},color:"#fff"},s=V(e.shape)?e.shape[0]:e.shape,l="funnel"===s||"pyramid"===s;if("polygon"===this.geometry.type){var h=function(t,e){if(pt(t)&&pt(e))return[t,e];if(Jl(t)||Jl(e))return[th(t),th(e)];for(var i,n,r=-1,o=0,a=0,s=t.length-1,l=0;++r<t.length;)i=s,s=r,l+=n=t[i]*e[s]-t[s]*e[i],o+=(t[i]+t[s])*n,a+=(e[i]+e[s])*n;return[o/(l*=3),a/l]}(e.x,e.y);a.x=h[0],a.y=h[1]}else"interval"!==this.geometry.type||l?(a.x=o(e.x,i),a.y=o(e.y,i)):(a.x=o(e.x,i,!0),a.y=o(e.y,i));if(l){var u=Ht(e,"nextPoints"),c=Ht(e,"points");if(u){var p=n.convert(c[1]),f=n.convert(u[1]);a.x=(p.x+f.x)/2,a.y=(p.y+f.y)/2}else if("pyramid"===s){p=n.convert(c[1]),f=n.convert(c[2]);a.x=(p.x+f.x)/2,a.y=(p.y+f.y)/2}}t.position&&this.setLabelPosition(a,e,i,t.position);var g=this.getLabelOffsetPoint(t,i,r);return a.start={x:a.x,y:a.y},a.x+=g.x,a.y+=g.y,a.color=e.color,a},t.prototype.getLabelAlign=function(t,e,i){var n="center";if(this.getCoordinate().isTransposed){var r=t.offset;n=r<0?"right":0===r?"center":"left",i>1&&0===e&&("right"===n?n="left":"left"===n&&(n="right"))}return n},t.prototype.getLabelId=function(t){var e=this.geometry,i=e.type,n=e.getXScale(),r=e.getYScale(),o=t[de],a=e.getElementId(t);return"line"===i||"area"===i?a+=" ".concat(o[n.field]):"path"===i&&(a+=" ".concat(o[n.field],"-").concat(o[r.field])),a},t.prototype.getLabelsRenderer=function(){var t=this.geometry,e=t.labelsContainer,i=t.labelOption,n=t.canvasRegion,r=t.animateOption,o=this.geometry.coordinate,a=this.labelsRenderer;return a||(a=new Qc({container:e,layout:Ht(i,["cfg","layout"],{type:this.defaultLayout})}),this.labelsRenderer=a),a.region=n,a.animate=!!r&&Cc("label",o),a},t.prototype.getLabelCfgs=function(t){var e=this,i=this.geometry,n=i.labelOption,r=i.scales,o=i.coordinate,a=n,s=a.fields,h=a.callback,u=a.cfg,c=s.map((function(t){return r[t]})),p=[];return N(t,(function(t,i){var n,r=t[de],a=e.getLabelText(r,c);if(h){var f=s.map((function(t){return r[t]}));if(n=h.apply(void 0,f),z(n))return void p.push(null)}var g=l(l({id:e.getLabelId(t),elementId:e.geometry.getElementId(t),data:r,mappingData:t,coordinate:o},u),n);X(g.position)&&(g.position=g.position(r,t,i));var d=e.getLabelOffset(g.offset||0),y=e.getDefaultLabelCfg(d,g.position);(g=Dt({},y,g)).offset=e.getLabelOffset(g.offset||0);var v=g.content;X(v)?g.content=v(r,t,i):Bt(v)&&(g.content=a[0]),p.push(g)})),p},t.prototype.getLabelText=function(t,e){var i=[];return N(e,(function(e){var n=t[e.field];n=V(n)?n.map((function(t){return e.getText(t)})):e.getText(n),z(n)||""===n?i.push(null):i.push(n)})),i},t.prototype.getOffsetVector=function(t){void 0===t&&(t=0);var e=this.getCoordinate(),i=0;return pt(t)&&(i=t),e.isTransposed?e.applyMatrix(i,0):e.applyMatrix(0,i)},t.prototype.getGeometryShapes=function(){var t=this.geometry,e={};return N(t.elementsMap,(function(t,i){e[i]=t.shape})),N(t.getOffscreenGroup().getChildren(),(function(i){var n=t.getElementId(i.get("origin").mappingData);e[n]=i})),e},t}(),Jc=e("GeometryLabel",$c);function tp(t,e,i){if(!t)return i;var n;if(t.callback&&t.callback.length>1){var r=Array(t.callback.length-1).fill("");n=t.mapping.apply(t,s([e],r,!1)).join("")}else n=t.mapping(e).join("");return n||i}var ep={hexagon:function(t,e,i){var n=i/2*Math.sqrt(3);return[["M",t,e-i],["L",t+n,e-i/2],["L",t+n,e+i/2],["L",t,e+i],["L",t-n,e+i/2],["L",t-n,e-i/2],["Z"]]},bowtie:function(t,e,i){var n=i-1.5;return[["M",t-i,e-n],["L",t+i,e+n],["L",t+i,e-n],["L",t-i,e+n],["Z"]]},cross:function(t,e,i){return[["M",t-i,e-i],["L",t+i,e+i],["M",t+i,e-i],["L",t-i,e+i]]},tick:function(t,e,i){return[["M",t-i/2,e-i],["L",t+i/2,e-i],["M",t,e-i],["L",t,e+i],["M",t-i/2,e+i],["L",t+i/2,e+i]]},plus:function(t,e,i){return[["M",t-i,e],["L",t+i,e],["M",t,e-i],["L",t,e+i]]},hyphen:function(t,e,i){return[["M",t-i,e],["L",t+i,e]]},line:function(t,e,i){return[["M",t,e-i],["L",t,e+i]]}},ip=["line","cross","tick","plus","hyphen"];function np(t){var e=t.symbol;et(e)&&ep[e]&&(t.symbol=ep[e])}function rp(t){return t.startsWith(Jt.LEFT)||t.startsWith(Jt.RIGHT)?"vertical":"horizontal"}function op(t,e,i,n,r){var o=i.getScale(i.type);if(o.isCategory){var a=o.field,s=e.getAttribute("color"),h=e.getAttribute("shape"),u=t.getTheme().defaultColor,c=e.coordinate.isPolar;return o.getTicks().map((function(i,p){var f,g=i.text,d=i.value,y=g,v=o.invert(d),m=0===t.filterFieldData(a,[(f={},f[a]=v,f)]).length;N(t.views,(function(t){var e;t.filterFieldData(a,[(e={},e[a]=v,e)]).length||(m=!0)}));var x,w,C=tp(s,v,u),b=tp(h,v,"point"),M=e.getShapeMarker(b,{color:C,isInPolar:c}),S=r;return X(S)&&(S=S(y,p,l({name:y,value:v},Dt({},n,M)))),function(t,e){var i=t.symbol;if(et(i)&&-1!==ip.indexOf(i)){var n=Ht(t,"style",{}),r=Ht(n,"lineWidth",1),o=n.stroke||n.fill||e;t.style=Dt({},t.style,{lineWidth:r,stroke:o,fill:null})}}(M=Dt({},n,M,sh(l({},S),["style"])),C),S&&S.style&&(M.style=(x=M.style,w=S.style,X(w)?w(x):Dt({},x,w))),np(M),{id:v,name:y,value:v,marker:M,unchecked:m}}))}return[]}function ap(t,e){var i=Ht(t,["components","legend"],{});return Dt({},Ht(i,["common"],{}),Dt({},Ht(i,[e],{})))}function sp(t){return!t&&(null==t||isNaN(t))}function lp(t){if(V(t))return sp(t[1].y);var e=t.y;return V(e)?sp(e[0]):sp(e)}function hp(t,e,i){if(void 0===e&&(e=!1),void 0===i&&(i=!0),!t.length||1===t.length&&!i)return[];if(e){for(var n=[],r=0,o=t.length;r<o;r++){lp(l=t[r])||n.push(l)}return[n]}var a=[],s=[];for(r=0,o=t.length;r<o;r++){var l;lp(l=t[r])?s.length&&((1!==s.length||i)&&a.push(s),s=[]):s.push(l)}return s.length&&a.push(s),a}function up(t){for(var e=[],i=0;i<t.length;i++){var n=t[i];if(n){var r=0===i?"M":"L";e.push([r,n.x,n.y])}}var o=t[0];return o&&(e.push(["L",o.x,o.y]),e.push(["z"])),e}function cp(t){for(var e=t.length/2,i=[],n=[],r=0;r<t.length;r++)r<e?i.push(t[r]):n.push(t[r]);var o=Nh(i,!1),a=Nh(n,!1);n.length&&o.push(["L",n[0].x,n[0].y]),a.shift();var s=o.concat(a);return i.length&&s.push(["L",i[0].x,i[0].y]),s.push(["z"]),s}function pp(t,e,i,n){void 0===n&&(n="");var r=t.style,o=void 0===r?{}:r,a=t.defaultStyle,s=t.color,h=t.size,u=l(l({},a),o);return s&&(e&&(o.stroke||(u.stroke=s)),i&&(o.fill||(u.fill=s))),n&&z(o[n])&&!z(h)&&(u[n]=h),u}function fp(t){return Dt({},{fill:"#CCD6EC",fillOpacity:.3},Ht(t,["background","style"]))}function gp(t){var e=t.x;return(V(t.y)?t.y:[t.y]).map((function(t,i){return{x:V(e)?e[i]:e,y:t}}))}var dp={line:function(t,e,i){return[["M",t-i,e],["L",t+i,e]]},dot:function(t,e,i){return[["M",t-i,e],["L",t+i,e]]},dash:function(t,e,i){return[["M",t-i,e],["L",t+i,e]]},smooth:function(t,e,i){return[["M",t-i,e],["A",i/2,i/2,0,1,1,t,e],["A",i/2,i/2,0,1,0,t+i,e]]},hv:function(t,e,i){return[["M",t-i-1,e-2.5],["L",t,e-2.5],["L",t,e+2.5],["L",t+i+1,e+2.5]]},vh:function(t,e,i){return[["M",t-i-1,e+2.5],["L",t,e+2.5],["L",t,e-2.5],["L",t+i+1,e-2.5]]},hvh:function(t,e,i){return[["M",t-(i+1),e+2.5],["L",t-i/2,e+2.5],["L",t-i/2,e-2.5],["L",t+i/2,e-2.5],["L",t+i/2,e+2.5],["L",t+i+1,e+2.5]]},vhv:function(t,e){return[["M",t-5,e+2.5],["L",t-5,e],["L",t,e],["L",t,e-3],["L",t,e+3],["L",t+6.5,e+3]]}};function yp(t,e){var i=t.color;return{symbol:dp[e],style:{lineWidth:2,r:6,stroke:i}}}function vp(t,e,i,n,r){return 1===t.length?[["M",t[0].x,t[0].y-r.lineWidth/2],["L",t[0].x,t[0].y],["L",t[0].x,t[0].y+r.lineWidth/2]]:(i?(e&&t.length&&t.push({x:t[0].x,y:t[0].y}),o=Nh(t,!1,n)):(o=Hh(t,!1),e&&o.push(["Z"])),o);var o}function mp(t,e,i,n,r,o){if(t.length){var a=t[0];return V(a.y)?function(t,e,i,n,r,o){var a=[],s=[];N(t,(function(t){var e=gp(t);a.push(e[1]),s.push(e[0])}));var l=vp(a,e,n,r,o),h=vp(s,e,n,r,o);return i?l:l.concat(h)}(t,e,i,n,r,o):vp(t,e,n,r,o)}return[]}Dc("line",{defaultShapeType:"line"}),N(["line","dot","dash","smooth"],(function(t){Rc("line",t,{draw:function(e,i){var n,r="smooth"===t;if(r){var o=this.coordinate,a=o.start,s=o.end;n=[[a.x,s.y],[s.x,a.y]]}var l=function(t,e,i){for(var n=t.isStack,r=t.connectNulls,o=t.isInCircle,a=t.showSinglePoint,s=pp(t,!0,!1,"lineWidth"),l=hp(t.points,r,a),h=[],u=0,c=l.length;u<c;u++){var p=l[u];h=h.concat(mp(p,o,n,e,i,s))}return s.path=h,s}(e,r,n);return i.addShape({type:"path",attrs:l,name:"line",capture:!r})},getMarker:function(e){return yp(e,t)}})}));e("VERSION","4.1.49"),e("Util",{getLegendItems:op,translate:Nc,rotate:Wc,zoom:function(t,e){var i=t.getBBox(),n=(i.minX+i.maxX)/2,r=(i.minY+i.maxY)/2;t.applyToMatrix([n,r,1]);var o=Hc(t.getMatrix(),[["t",-n,-r],["s",e,e],["t",n,r]]);t.setMatrix(o)},transform:Hc,getAngle:rh,getSectorPath:ih,polarToCartesian:eh,getDelegationObject:Uh,getTooltipItems:Uu,getMappingValue:tp,getPath:mp,getPathPoints:hp});var xp="#000",wp="#BFBFBF",Cp="#F0F0F0",bp="#FFFFFF",Mp="#A6A6A6",Sp="#737373",Ap="#404040",Tp="#262626",Bp=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#E86452","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],kp=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#E86452","#F8D0CB","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],Lp=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"],Pp=function(t){void 0===t&&(t={});var e=t.paletteQualitative10,i=void 0===e?Bp:e,n=t.paletteQualitative20,r=void 0===n?kp:n,o=t.brandColor,a=void 0===o?i[0]:o;return l(l({},{backgroundColor:"#141414",brandColor:a,subColor:"rgba(255,255,255,0.05)",paletteQualitative10:i,paletteQualitative20:r,paletteSemanticRed:"#F4664A",paletteSemanticGreen:"#30BF78",paletteSemanticYellow:"#FAAD14",paletteSequence:Lp,fontFamily:'"Segoe UI", Roboto, "Helvetica Neue", Arial,\n "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n "Noto Color Emoji"',axisLineBorderColor:Ap,axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:Mp,axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisTickLineBorderColor:Ap,axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:Tp,axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:Sp,axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:Tp,axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:Sp,legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:Bp[0],legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:Mp,legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",legendItemSpacing:24,legendItemMarginBottom:12,legendSpacing:16,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],legendPageNavigatorMarkerSize:12,legendPageNavigatorMarkerInactiveFillColor:Sp,legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:Sp,legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:Mp,legendPageNavigatorTextFontSize:12,sliderRailFillColor:Tp,sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:Sp,sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:Cp,sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:wp,annotationArcBorderColor:Tp,annotationArcBorder:1,annotationLineBorderColor:Ap,annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:Mp,annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:bp,annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:Ap,tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"#1f1f1f",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 2px 4px rgba(0,0,0,.5)",tooltipContainerBorderRadius:3,tooltipTextFillColor:Mp,tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:Mp,labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:xp,innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:Mp,overflowLabelFillColorDark:"#2c3542",overflowLabelFillColorLight:"#ffffff",overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:xp,overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:Ap,cSliderRailHieght:16,cSliderBackgroundFillColor:"#416180",cSliderBackgroundFillOpacity:.05,cSliderForegroundFillColor:"#5B8FF9",cSliderForegroundFillOpacity:.15,cSliderHandlerHeight:24,cSliderHandlerWidth:10,cSliderHandlerFillColor:"#F7F7F7",cSliderHandlerFillOpacity:1,cSliderHandlerHighlightFillColor:"#FFF",cSliderHandlerBorderColor:"#BFBFBF",cSliderHandlerBorder:1,cSliderHandlerBorderRadius:2,cSliderTextFillColor:"#fff",cSliderTextFillOpacity:.45,cSliderTextFontSize:12,cSliderTextLineHeight:12,cSliderTextFontWeight:"normal",cSliderTextBorderColor:null,cSliderTextBorder:0,scrollbarTrackFillColor:"rgba(255,255,255,0.65)",scrollbarThumbFillColor:"rgba(0,0,0,0.35)",scrollbarThumbHighlightFillColor:"rgba(0,0,0,0.45)",pointFillColor:Bp[0],pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:xp,pointBorderOpacity:1,pointActiveBorderColor:bp,pointSelectedBorder:2,pointSelectedBorderColor:bp,pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:Bp[0],hollowPointBorderOpacity:.95,hollowPointFillColor:xp,hollowPointActiveBorder:1,hollowPointActiveBorderColor:bp,hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:bp,hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:Bp[0],lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:Bp[0],areaFillOpacity:.25,areaActiveFillColor:Bp[0],areaActiveFillOpacity:.5,areaSelectedFillColor:Bp[0],areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:Bp[0],hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:bp,hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:bp,hollowAreaInactiveBorderOpacity:.3,intervalFillColor:Bp[0],intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:bp,intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:bp,intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:Bp[0],hollowIntervalBorderOpacity:1,hollowIntervalFillColor:xp,hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:bp,hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:bp,hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3}),t)}();function Ip(t,e,i,n){var r=t-i,o=e-n;return Math.sqrt(r*r+o*o)}function Ep(t,e,i,n,r,o){return r>=t&&r<=t+i&&o>=e&&o<=e+n}function Fp(t,e){return!(e.minX>t.maxX||e.maxX<t.minX||e.minY>t.maxY||e.maxY<t.minY)}function Op(t,e){return t[0]===e[0]&&t[1]===e[1]}var Dp=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,Rp=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,_p=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,Yp=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function Gp(t,e){N(t.match(Yp),(function(t){var i=t.split(":");e.addColorStop(i[0],i[1])}))}function Xp(t,e,i){var n=e.getBBox();if(isNaN(n.x)||isNaN(n.y)||isNaN(n.width)||isNaN(n.height))return i;if(et(i)){if("("===i[1]||"("===i[2]){if("l"===i[0])return function(t,e,i){var n,r,o=Dp.exec(i),a=parseFloat(o[1])%360*(Math.PI/180),s=o[2],l=e.getBBox();a>=0&&a<.5*Math.PI?(n={x:l.minX,y:l.minY},r={x:l.maxX,y:l.maxY}):.5*Math.PI<=a&&a<Math.PI?(n={x:l.maxX,y:l.minY},r={x:l.minX,y:l.maxY}):Math.PI<=a&&a<1.5*Math.PI?(n={x:l.maxX,y:l.maxY},r={x:l.minX,y:l.minY}):(n={x:l.minX,y:l.maxY},r={x:l.maxX,y:l.minY});var h=Math.tan(a),u=h*h,c=(r.x-n.x+h*(r.y-n.y))/(u+1)+n.x,p=h*(r.x-n.x+h*(r.y-n.y))/(u+1)+n.y,f=t.createLinearGradient(n.x,n.y,c,p);return Gp(s,f),f}(t,e,i);if("r"===i[0])return function(t,e,i){var n=Rp.exec(i),r=parseFloat(n[1]),o=parseFloat(n[2]),a=parseFloat(n[3]),s=n[4];if(0===a){var l=s.match(Yp);return l[l.length-1].split(":")[1]}var h=e.getBBox(),u=h.maxX-h.minX,c=h.maxY-h.minY,p=Math.sqrt(u*u+c*c)/2,f=t.createRadialGradient(h.minX+u*r,h.minY+c*o,0,h.minX+u/2,h.minY+c/2,a*p);return Gp(s,f),f}(t,e,i);if("p"===i[0])return function(t,e,i){if(e.get("patternSource")&&e.get("patternSource")===i)return e.get("pattern");var n,r,o=_p.exec(i),a=o[1],s=o[2];function l(){n=t.createPattern(r,a),e.set("pattern",n),e.set("patternSource",i)}switch(a){case"a":a="repeat";break;case"x":a="repeat-x";break;case"y":a="repeat-y";break;default:a="no-repeat"}return r=new Image,s.match(/^data:/i)||(r.crossOrigin="Anonymous"),r.src=s,r.complete?l():(r.onload=l,r.src=r.src),n}(t,e,i)}return i}return i instanceof CanvasPattern?i:void 0}function zp(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Vp(t,e){return zp(t)*zp(e)?(t[0]*e[0]+t[1]*e[1])/(zp(t)*zp(e)):1}function Hp(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Vp(t,e))}function Np(t,e){var i=e[1],n=e[2],r=gt(yt(e[3]),2*Math.PI),o=e[4],a=e[5],s=t[0],l=t[1],h=e[6],u=e[7],c=Math.cos(r)*(s-h)/2+Math.sin(r)*(l-u)/2,p=-1*Math.sin(r)*(s-h)/2+Math.cos(r)*(l-u)/2,f=c*c/(i*i)+p*p/(n*n);f>1&&(i*=Math.sqrt(f),n*=Math.sqrt(f));var g=i*i*(p*p)+n*n*(c*c),d=g?Math.sqrt((i*i*(n*n)-g)/g):1;o===a&&(d*=-1),isNaN(d)&&(d=0);var y=n?d*i*p/n:0,v=i?d*-n*c/i:0,m=(s+h)/2+Math.cos(r)*y-Math.sin(r)*v,x=(l+u)/2+Math.sin(r)*y+Math.cos(r)*v,w=[(c-y)/i,(p-v)/n],C=[(-1*c-y)/i,(-1*p-v)/n],b=Hp([1,0],w),M=Hp(w,C);return Vp(w,C)<=-1&&(M=Math.PI),Vp(w,C)>=1&&(M=0),0===a&&M>0&&(M-=2*Math.PI),1===a&&M<0&&(M+=2*Math.PI),{cx:m,cy:x,rx:Op(t,[h,u])?0:i,ry:Op(t,[h,u])?0:n,startAngle:b,endAngle:b+M,xRotation:r,arcFlag:o,sweepFlag:a}}var Wp=Math.sin,jp=Math.cos,qp=Math.atan2,Up=Math.PI;function Zp(t,e,i,n,r,o,a){var s=e.stroke,l=e.lineWidth,h=qp(n-o,i-r),u=new If({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*jp(Up/6)+","+10*Wp(Up/6)+" L0,0 L"+10*jp(Up/6)+",-"+10*Wp(Up/6),stroke:s,lineWidth:l}});u.translate(r,o),u.rotateAtPoint(r,o,h),t.set(a?"startArrowShape":"endArrowShape",u)}function Qp(t,e,i,n,r,o,a){var s=e.startArrow,u=e.endArrow,c=e.stroke,p=e.lineWidth,f=a?s:u,g=f.d,d=f.fill,y=f.stroke,v=f.lineWidth,m=h(f,["d","fill","stroke","lineWidth"]),x=qp(n-o,i-r);g&&(r-=jp(x)*g,o-=Wp(x)*g);var w=new If({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:l(l({},m),{stroke:y||c,lineWidth:v||p,fill:d})});w.translate(r,o),w.rotateAtPoint(r,o,x),t.set(a?"startArrowShape":"endArrowShape",w)}function Kp(t,e,i,n,r){var o=qp(n-e,i-t);return{dx:jp(o)*r,dy:Wp(o)*r}}function $p(e,i,n,r,o,a){"object"===t(i.startArrow)?Qp(e,i,n,r,o,a,!0):i.startArrow?Zp(e,i,n,r,o,a,!0):e.set("startArrowShape",null)}function Jp(e,i,n,r,o,a){"object"===t(i.endArrow)?Qp(e,i,n,r,o,a,!1):i.endArrow?Zp(e,i,n,r,o,a,!1):e.set("startArrowShape",null)}var tf={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function ef(t,e){var i=e.attr();for(var n in i){var r=i[n],o=tf[n]?tf[n]:n;"matrix"===o&&r?t.transform(r[0],r[1],r[3],r[4],r[6],r[7]):"lineDash"===o&&t.setLineDash?V(r)&&t.setLineDash(r):("strokeStyle"===o||"fillStyle"===o?r=Xp(t,e,r):"globalAlpha"===o&&(r*=t.globalAlpha),t[o]=r)}}function nf(t,e,i){for(var n=0;n<e.length;n++){var r=e[n];r.cfg.visible?r.draw(t,i):r.skipDraw()}}function rf(t,e,i){var n=t.get("refreshElements");N(n,(function(e){if(e!==t)for(var i=e.cfg.parent;i&&i!==t&&!i.cfg.refresh;)i.cfg.refresh=!0,i=i.cfg.parent})),n[0]===t?sf(e):of(e,i)}function of(t,e){for(var i=0;i<t.length;i++){var n=t[i];if(n.cfg.visible)if(n.cfg.hasChanged)n.cfg.refresh=!0,n.isGroup()&&sf(n.cfg.children);else if(n.cfg.refresh)n.isGroup()&&of(n.cfg.children,e);else{var r=lf(n,e);n.cfg.refresh=r,r&&n.isGroup()&&of(n.cfg.children,e)}}}function af(t){for(var e=0;e<t.length;e++){var i=t[e];i.cfg.hasChanged=!1,i.isGroup()&&!i.destroyed&&af(i.cfg.children)}}function sf(t,e){for(var i=0;i<t.length;i++){var n=t[i];n.cfg.refresh=!0,n.isGroup()&&sf(n.get("children"))}}function lf(t,e){var i=t.cfg.cacheCanvasBBox;return t.cfg.isInView&&i&&Fp(i,e)}function hf(t,e,i,n){var r=i.path,o=i.startArrow,a=i.endArrow;if(r){var s=[0,0],l=[0,0],h={dx:0,dy:0};e.beginPath();for(var u=0;u<r.length;u++){var c=r[u],p=c[0];if(0===u&&o&&o.d)h=Kp((f=t.getStartTangent())[0][0],f[0][1],f[1][0],f[1][1],o.d);else if(u===r.length-2&&"Z"===r[u+1][0]&&a&&a.d){if("Z"===r[u+1][0])h=Kp((f=t.getEndTangent())[0][0],f[0][1],f[1][0],f[1][1],a.d)}else if(u===r.length-1&&a&&a.d){var f;if("Z"!==r[0])h=Kp((f=t.getEndTangent())[0][0],f[0][1],f[1][0],f[1][1],a.d)}var g=h.dx,d=h.dy;switch(p){case"M":e.moveTo(c[1]-g,c[2]-d),l=[c[1],c[2]];break;case"L":e.lineTo(c[1]-g,c[2]-d);break;case"Q":e.quadraticCurveTo(c[1],c[2],c[3]-g,c[4]-d);break;case"C":e.bezierCurveTo(c[1],c[2],c[3],c[4],c[5]-g,c[6]-d);break;case"A":var y=void 0;n?(y=n[u])||(y=Np(s,c),n[u]=y):y=Np(s,c);var v=y.cx,m=y.cy,x=y.rx,w=y.ry,C=y.startAngle,b=y.endAngle,M=y.xRotation,S=y.sweepFlag;if(e.ellipse)e.ellipse(v,m,x,w,M,C,b,1-S);else{var A=x>w?x:w,T=x>w?1:x/w,B=x>w?w/x:1;e.translate(v,m),e.rotate(M),e.scale(T,B),e.arc(0,0,A,C,b,1-S),e.scale(1/T,1/B),e.rotate(-M),e.translate(-v,-m)}break;case"Z":e.closePath()}if("Z"===p)s=l;else{var k=c.length;s=[c[k-2],c[k-1]]}}}}function uf(t,e){var i=t.get("canvas");i&&("remove"===e&&(t._cacheCanvasBBox=t.get("cacheCanvasBBox")),t.get("hasChanged")||(t.set("hasChanged",!0),t.cfg.parent&&t.cfg.parent.get("hasChanged")||(i.refreshElement(t,e,i),i.get("autoDraw")&&i.draw())))}function cf(t){var e,i,n;if(t.destroyed)e=t._cacheCanvasBBox;else{var r=t.get("cacheCanvasBBox"),o=r&&!(!r.width||!r.height),a=t.getCanvasBBox(),s=a&&!(!a.width||!a.height);o&&s?(n=a,e=(i=r)&&n?{minX:Math.min(i.minX,n.minX),minY:Math.min(i.minY,n.minY),maxX:Math.max(i.maxX,n.maxX),maxY:Math.max(i.maxY,n.maxY)}:i||n):o?e=r:s&&(e=a)}return e}var pf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.onCanvasChange=function(t){uf(this,t)},e.prototype.getShapeBase=function(){return i},e.prototype.getGroupBase=function(){return e},e.prototype._applyClip=function(t,e){e&&(t.save(),ef(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw())},e.prototype.cacheCanvasBBox=function(){var t=this.cfg.children,e=[],i=[];N(t,(function(t){var n=t.cfg.cacheCanvasBBox;n&&t.cfg.isInView&&(e.push(n.minX,n.maxX),i.push(n.minY,n.maxY))}));var n=null;if(e.length){var r=K(e),o=Q(e),a=K(i),s=Q(i);n={minX:r,minY:a,x:r,y:a,maxX:o,maxY:s,width:o-r,height:s-a};var l=this.cfg.canvas;if(l){var h=l.getViewRange();this.set("isInView",Fp(n,h))}}else this.set("isInView",!1);this.set("cacheCanvasBBox",n)},e.prototype.draw=function(t,e){var i=this.cfg.children,n=!e||this.cfg.refresh;i.length&&n&&(t.save(),ef(t,this),this._applyClip(t,this.getClip()),nf(t,i,e),t.restore(),this.cacheCanvasBBox()),this.cfg.refresh=null,this.set("hasChanged",!1)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("hasChanged",!1)},e}(wn),ff=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return l(l({},e),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.getShapeBase=function(){return i},e.prototype.getGroupBase=function(){return pf},e.prototype.onCanvasChange=function(t){uf(this,t)},e.prototype.calculateBBox=function(){var t=this.get("type"),e=this.getHitLineWidth(),i=Sn(t)(this),n=e/2,r=i.x-n,o=i.y-n,a=i.x+i.width+n,s=i.y+i.height+n;return{x:r,minX:r,y:o,minY:o,width:i.width+e,height:i.height+e,maxX:a,maxY:s}},e.prototype.isFill=function(){return!!this.attrs.fill||this.isClipShape()},e.prototype.isStroke=function(){return!!this.attrs.stroke},e.prototype._applyClip=function(t,e){e&&(t.save(),ef(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw())},e.prototype.draw=function(t,e){var i=this.cfg.clipShape;if(e){if(!1===this.cfg.refresh)return void this.set("hasChanged",!1);if(!Fp(e,this.getCanvasBBox()))return this.set("hasChanged",!1),void(this.cfg.isInView&&this._afterDraw())}t.save(),ef(t,this),this._applyClip(t,i),this.drawPath(t),t.restore(),this._afterDraw()},e.prototype.getCanvasViewBox=function(){var t=this.cfg.canvas;return t?t.getViewRange():null},e.prototype.cacheCanvasBBox=function(){var t=this.getCanvasViewBox();if(t){var e=this.getCanvasBBox(),i=Fp(e,t);this.set("isInView",i),i?this.set("cacheCanvasBBox",e):this.set("cacheCanvasBBox",null)}},e.prototype._afterDraw=function(){this.cacheCanvasBBox(),this.set("hasChanged",!1),this.set("refresh",null)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("isInView",null),this.set("hasChanged",!1)},e.prototype.drawPath=function(t){this.createPath(t),this.strokeAndFill(t),this.afterDrawPath(t)},e.prototype.fill=function(t){t.fill()},e.prototype.stroke=function(t){t.stroke()},e.prototype.strokeAndFill=function(t){var e=this.attrs,i=e.lineWidth,n=e.opacity,r=e.strokeOpacity,o=e.fillOpacity;this.isFill()&&(z(o)||1===o?this.fill(t):(t.globalAlpha=o,this.fill(t),t.globalAlpha=n)),this.isStroke()&&i>0&&(z(r)||1===r||(t.globalAlpha=r),this.stroke(t)),this.afterDrawPath(t)},e.prototype.createPath=function(t){},e.prototype.afterDrawPath=function(t){},e.prototype.isInShape=function(t,e){var i=this.isStroke(),n=this.isFill(),r=this.getHitLineWidth();return this.isInStrokeOrPath(t,e,i,n,r)},e.prototype.isInStrokeOrPath=function(t,e,i,n,r){return!1},e.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var t=this.attrs;return t.lineWidth+t.lineAppendWidth},e}(Cn),gf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return l(l({},e),{x:0,y:0,r:0})},e.prototype.isInStrokeOrPath=function(t,e,i,n,r){var o=this.attr(),a=o.x,s=o.y,l=o.r,h=r/2,u=Ip(a,s,t,e);return n&&i?u<=l+h:n?u<=l:!!i&&(u>=l-h&&u<=l+h)},e.prototype.createPath=function(t){var e=this.attr(),i=e.x,n=e.y,r=e.r;t.beginPath(),t.arc(i,n,r,0,2*Math.PI,!1),t.closePath()},e}(ff);function df(t,e,i,n){return t/(i*i)+e/(n*n)}var yf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return l(l({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.isInStrokeOrPath=function(t,e,i,n,r){var o=this.attr(),a=r/2,s=o.x,l=o.y,h=o.rx,u=o.ry,c=(t-s)*(t-s),p=(e-l)*(e-l);return n&&i?df(c,p,h+a,u+a)<=1:n?df(c,p,h,u)<=1:!!i&&(df(c,p,h-a,u-a)>=1&&df(c,p,h+a,u+a)<=1)},e.prototype.createPath=function(t){var e=this.attr(),i=e.x,n=e.y,r=e.rx,o=e.ry;if(t.beginPath(),t.ellipse)t.ellipse(i,n,r,o,0,0,2*Math.PI,!1);else{var a=r>o?r:o,s=r>o?1:r/o,l=r>o?o/r:1;t.save(),t.translate(i,n),t.scale(s,l),t.arc(0,0,a,0,2*Math.PI),t.restore(),t.closePath()}},e}(ff);function vf(t){return t instanceof HTMLElement&&et(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase()}var mf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return l(l({},e),{x:0,y:0,width:0,height:0})},e.prototype.initAttrs=function(t){this._setImage(t.img)},e.prototype.isStroke=function(){return!1},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._afterLoading=function(){if(!0===this.get("toDraw")){var t=this.get("canvas");t?t.draw():this.createPath(this.get("context"))}},e.prototype._setImage=function(t){var e=this,i=this.attrs;if(et(t)){var n=new Image;n.onload=function(){if(e.destroyed)return!1;e.attr("img",n),e.set("loading",!1),e._afterLoading();var t=e.get("callback");t&&t.call(e)},n.crossOrigin="Anonymous",n.src=t,this.set("loading",!0)}else t instanceof Image?(i.width||(i.width=t.width),i.height||(i.height=t.height)):vf(t)&&(i.width||(i.width=Number(t.getAttribute("width"))),i.height||(i.height,Number(t.getAttribute("height"))))},e.prototype.onAttrChange=function(e,i,n){t.prototype.onAttrChange.call(this,e,i,n),"img"===e&&this._setImage(i)},e.prototype.createPath=function(t){if(this.get("loading"))return this.set("toDraw",!0),void this.set("context",t);var e=this.attr(),i=e.x,n=e.y,r=e.width,o=e.height,a=e.sx,s=e.sy,l=e.swidth,h=e.sheight,u=e.img;(u instanceof Image||vf(u))&&(z(a)||z(s)||z(l)||z(h)?t.drawImage(u,i,n,r,o):t.drawImage(u,a,s,l,h,i,n,r,o))},e}(ff);function xf(t,e,i,n,r,o,a){var s=Math.min(t,i),l=Math.max(t,i),h=Math.min(e,n),u=Math.max(e,n),c=r/2;return o>=s-c&&o<=l+c&&a>=h-c&&a<=u+c&&In.pointToLine(t,e,i,n,o,a)<=r/2}var wf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return l(l({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this.setArrow()},e.prototype.onAttrChange=function(e,i,n){t.prototype.onAttrChange.call(this,e,i,n),this.setArrow()},e.prototype.setArrow=function(){var t=this.attr(),e=t.x1,i=t.y1,n=t.x2,r=t.y2,o=t.startArrow,a=t.endArrow;o&&$p(this,t,n,r,e,i),a&&Jp(this,t,e,i,n,r)},e.prototype.isInStrokeOrPath=function(t,e,i,n,r){if(!i||!r)return!1;var o=this.attr();return xf(o.x1,o.y1,o.x2,o.y2,r,t,e)},e.prototype.createPath=function(t){var e=this.attr(),i=e.x1,n=e.y1,r=e.x2,o=e.y2,a=e.startArrow,s=e.endArrow,l={dx:0,dy:0},h={dx:0,dy:0};a&&a.d&&(l=Kp(i,n,r,o,e.startArrow.d)),s&&s.d&&(h=Kp(i,n,r,o,e.endArrow.d)),t.beginPath(),t.moveTo(i+l.dx,n+l.dy),t.lineTo(r-h.dx,o-h.dy)},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),i=this.get("endArrowShape");e&&e.draw(t),i&&i.draw(t)},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,i=t.y1,n=t.x2,r=t.y2;return In.length(e,i,n,r)},e.prototype.getPoint=function(t){var e=this.attr(),i=e.x1,n=e.y1,r=e.x2,o=e.y2;return In.pointAt(i,n,r,o,t)},e}(ff),Cf={circle:function(t,e,i){return[["M",t-i,e],["A",i,i,0,1,0,t+i,e],["A",i,i,0,1,0,t-i,e]]},square:function(t,e,i){return[["M",t-i,e-i],["L",t+i,e-i],["L",t+i,e+i],["L",t-i,e+i],["Z"]]},diamond:function(t,e,i){return[["M",t-i,e],["L",t,e-i],["L",t+i,e],["L",t,e+i],["Z"]]},triangle:function(t,e,i){var n=i*Math.sin(1/3*Math.PI);return[["M",t-i,e+n],["L",t,e-n],["L",t+i,e+n],["Z"]]},"triangle-down":function(t,e,i){var n=i*Math.sin(1/3*Math.PI);return[["M",t-i,e-n],["L",t+i,e-n],["L",t,e+n],["Z"]]}},bf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.initAttrs=function(t){this._resetParamsCache()},e.prototype._resetParamsCache=function(){this.set("paramsCache",{})},e.prototype.onAttrChange=function(e,i,n){t.prototype.onAttrChange.call(this,e,i,n),-1!==["symbol","x","y","r","radius"].indexOf(e)&&this._resetParamsCache()},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._getR=function(t){return z(t.r)?t.radius:t.r},e.prototype._getPath=function(){var t,i,n=this.attr(),r=n.x,o=n.y,a=n.symbol||"circle",s=this._getR(n);if(X(a))i=ur(i=(t=a)(r,o,s));else{if(!(t=e.Symbols[a]))return console.warn(a+" marker is not supported."),null;i=t(r,o,s)}return i},e.prototype.createPath=function(t){hf(this,t,{path:this._getPath()},this.get("paramsCache"))},e.Symbols=Cf,e}(ff);function Mf(t,e,i){var n=$n();return t.createPath(n),n.isPointInPath(e,i)}function Sf(t){return Math.abs(t)<1e-6?0:t<0?-1:1}function Af(t,e,i){return(i[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(i[1]-t[1])&&Math.min(t[0],e[0])<=i[0]&&i[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=i[1]&&i[1]<=Math.max(t[1],e[1])}function Tf(t,e,i){var n=!1,r=t.length;if(r<=2)return!1;for(var o=0;o<r;o++){var a=t[o],s=t[(o+1)%r];if(Af(a,s,[e,i]))return!0;Sf(a[1]-i)>0!=Sf(s[1]-i)>0&&Sf(e-(i-a[1])*(a[0]-s[0])/(a[1]-s[1])-a[0])<0&&(n=!n)}return n}function Bf(t,e,i,n,r,o,a,s){var l=(Math.atan2(s-e,a-t)+2*Math.PI)%(2*Math.PI);if(l<n||l>r)return!1;var h={x:t+i*Math.cos(l),y:e+i*Math.sin(l)};return Ip(h.x,h.y,a,s)<=o/2}var kf=Hi;var Lf=l({hasArc:function(t){for(var e=!1,i=t.length,n=0;n<i;n++){var r=t[n][0];if("C"===r||"A"===r||"Q"===r){e=!0;break}}return e},extractPolygons:function(t){for(var e=t.length,i=[],n=[],r=[],o=0;o<e;o++){var a=t[o],s=a[0];"M"===s?(r.length&&(n.push(r),r=[]),r.push([a[1],a[2]])):"Z"===s?r.length&&(i.push(r),r=[]):r.push([a[1],a[2]])}return r.length>0&&n.push(r),{polygons:i,polylines:n}},isPointInStroke:function(t,e,i,n,r){for(var o=!1,a=e/2,s=0;s<t.length;s++){var l=t[s],h=l.currentPoint,u=l.params,c=l.prePoint,p=l.box;if(!p||Ep(p.x-a,p.y-a,p.width+e,p.height+e,i,n)){switch(l.command){case"L":case"Z":o=xf(c[0],c[1],h[0],h[1],e,i,n);break;case"Q":o=Yn.pointDistance(c[0],c[1],u[1],u[2],u[3],u[4],i,n)<=e/2;break;case"C":o=Nn.pointDistance(c[0],c[1],u[1],u[2],u[3],u[4],u[5],u[6],i,n,r)<=e/2;break;case"A":var f=l.arcParams,g=f.cx,d=f.cy,y=f.rx,v=f.ry,m=f.startAngle,x=f.endAngle,w=f.xRotation,C=[i,n,1],b=y>v?y:v;Bi(C,C,kf(null,[["t",-g,-d],["r",-w],["s",1/(y>v?1:y/v),1/(y>v?v/y:1)]])),o=Bf(0,0,b,m,x,e,C[0],C[1])}if(o)break}}return o}},ai);function Pf(t,e,i){for(var n=!1,r=0;r<t.length;r++){if(n=Tf(t[r],e,i))break}return n}var If=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return l(l({},e),{startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this._setPathArr(t.path),this.setArrow()},e.prototype.onAttrChange=function(e,i,n){t.prototype.onAttrChange.call(this,e,i,n),"path"===e&&this._setPathArr(i),this.setArrow()},e.prototype._setPathArr=function(t){this.attrs.path=ur(t);var e=Lf.hasArc(t);this.set("hasArc",e),this.set("paramsCache",{}),this.set("segments",null),this.set("curve",null),this.set("tCache",null),this.set("totalLength",null)},e.prototype.getSegments=function(){var t=this.get("segements");return t||(t=vr(this.attr("path")),this.set("segments",t)),t},e.prototype.setArrow=function(){var t,e=this.attr(),i=e.startArrow,n=e.endArrow;i&&$p(this,e,(t=this.getStartTangent())[0][0],t[0][1],t[1][0],t[1][1]);n&&Jp(this,e,(t=this.getEndTangent())[0][0],t[0][1],t[1][0],t[1][1])},e.prototype.isInStrokeOrPath=function(t,e,i,n,r){var o=this.getSegments(),a=this.get("hasArc"),s=!1;if(i){var l=this.getTotalLength();s=Lf.isPointInStroke(o,r,t,e,l)}if(!s&&n)if(a)s=Mf(this,t,e);else{var h=this.attr("path"),u=Lf.extractPolygons(h);s=Pf(u.polygons,t,e)||Pf(u.polylines,t,e)}return s},e.prototype.createPath=function(t){hf(this,t,this.attr(),this.get("paramsCache"))},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),i=this.get("endArrowShape");e&&e.draw(t),i&&i.draw(t)},e.prototype.getTotalLength=function(){var t=this.get("totalLength");return z(t)?(this._calculateCurve(),this._setTcache(),this.get("totalLength")):t},e.prototype.getPoint=function(t){var e,i,n=this.get("tCache");n||(this._calculateCurve(),this._setTcache(),n=this.get("tCache"));var r=this.get("curve");if(!n||0===n.length)return r?{x:r[0][1],y:r[0][2]}:null;N(n,(function(n,r){t>=n[0]&&t<=n[1]&&(e=(t-n[0])/(n[1]-n[0]),i=r)}));var o=r[i];if(z(o)||z(i))return null;var a=o.length,s=r[i+1];return Nn.pointAt(o[a-2],o[a-1],s[1],s[2],s[3],s[4],s[5],s[6],e)},e.prototype._calculateCurve=function(){var t=this.attr().path;this.set("curve",Lf.pathToCurve(t))},e.prototype._setTcache=function(){var t,e,i,n,r=0,o=0,a=[],s=this.get("curve");s&&(N(s,(function(t,e){i=s[e+1],n=t.length,i&&(r+=Nn.length(t[n-2],t[n-1],i[1],i[2],i[3],i[4],i[5],i[6])||0)})),this.set("totalLength",r),0!==r?(N(s,(function(l,h){i=s[h+1],n=l.length,i&&((t=[])[0]=o/r,e=Nn.length(l[n-2],l[n-1],i[1],i[2],i[3],i[4],i[5],i[6]),o+=e||0,t[1]=o/r,a.push(t))})),this.set("tCache",a)):this.set("tCache",[]))},e.prototype.getStartTangent=function(){var t,e=this.getSegments();if(e.length>1){var i=e[0].currentPoint,n=e[1].currentPoint,r=e[1].startTangent;t=[],r?(t.push([i[0]-r[0],i[1]-r[1]]),t.push([i[0],i[1]])):(t.push([n[0],n[1]]),t.push([i[0],i[1]]))}return t},e.prototype.getEndTangent=function(){var t,e=this.getSegments(),i=e.length;if(i>1){var n=e[i-2].currentPoint,r=e[i-1].currentPoint,o=e[i-1].endTangent;t=[],o?(t.push([r[0]-o[0],r[1]-o[1]]),t.push([r[0],r[1]])):(t.push([n[0],n[1]]),t.push([r[0],r[1]]))}return t},e}(ff);function Ef(t,e,i,n,r){var o=t.length;if(o<2)return!1;for(var a=0;a<o-1;a++){if(xf(t[a][0],t[a][1],t[a+1][0],t[a+1][1],e,i,n))return!0}if(r){var s=t[0],l=t[o-1];if(xf(s[0],s[1],l[0],l[1],e,i,n))return!0}return!1}var Ff=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.isInStrokeOrPath=function(t,e,i,n,r){var o=this.attr().points,a=!1;return i&&(a=Ef(o,r,t,e,!0)),!a&&n&&(a=Tf(o,t,e)),a},e.prototype.createPath=function(t){var e=this.attr().points;if(!(e.length<2)){t.beginPath();for(var i=0;i<e.length;i++){var n=e[i];0===i?t.moveTo(n[0],n[1]):t.lineTo(n[0],n[1])}t.closePath()}},e}(ff),Of=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return l(l({},e),{startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this.setArrow()},e.prototype.onAttrChange=function(e,i,n){t.prototype.onAttrChange.call(this,e,i,n),this.setArrow(),-1!==["points"].indexOf(e)&&this._resetCache()},e.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},e.prototype.setArrow=function(){var t=this.attr(),e=this.attrs,i=e.points,n=e.startArrow,r=e.endArrow,o=i.length,a=i[0][0],s=i[0][1],l=i[o-1][0],h=i[o-1][1];n&&$p(this,t,i[1][0],i[1][1],a,s),r&&Jp(this,t,i[o-2][0],i[o-2][1],l,h)},e.prototype.isFill=function(){return!1},e.prototype.isInStrokeOrPath=function(t,e,i,n,r){return!(!i||!r)&&Ef(this.attr().points,r,t,e,!1)},e.prototype.isStroke=function(){return!0},e.prototype.createPath=function(t){var e=this.attr(),i=e.points,n=e.startArrow,r=e.endArrow,o=i.length;if(!(i.length<2)){var a,s=i[0][0],l=i[0][1],h=i[o-1][0],u=i[o-1][1];if(n&&n.d)s+=(a=Kp(s,l,i[1][0],i[1][1],n.d)).dx,l+=a.dy;if(r&&r.d)h-=(a=Kp(i[o-2][0],i[o-2][1],h,u,r.d)).dx,u-=a.dy;t.beginPath(),t.moveTo(s,l);for(var c=0;c<o-1;c++){var p=i[c];t.lineTo(p[0],p[1])}t.lineTo(h,u)}},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),i=this.get("endArrowShape");e&&e.draw(t),i&&i.draw(t)},e.prototype.getTotalLength=function(){var t=this.attr().points,e=this.get("totalLength");return z(e)?(this.set("totalLength",Un(t)),this.get("totalLength")):e},e.prototype.getPoint=function(t){var e,i,n=this.attr().points,r=this.get("tCache");return r||(this._setTcache(),r=this.get("tCache")),N(r,(function(n,r){t>=n[0]&&t<=n[1]&&(e=(t-n[0])/(n[1]-n[0]),i=r)})),In.pointAt(n[i][0],n[i][1],n[i+1][0],n[i+1][1],e)},e.prototype._setTcache=function(){var t=this.attr().points;if(t&&0!==t.length){var e=this.getTotalLength();if(!(e<=0)){var i,n,r=0,o=[];N(t,(function(a,s){t[s+1]&&((i=[])[0]=r/e,n=In.length(a[0],a[1],t[s+1][0],t[s+1][1]),r+=n,i[1]=r/e,o.push(i))})),this.set("tCache",o)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.attr().points,e=t.length-1,i=[];return i.push([t[e-1][0],t[e-1][1]]),i.push([t[e][0],t[e][1]]),i},e}(ff);var Df=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return l(l({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.isInStrokeOrPath=function(t,e,i,n,r){var o=this.attr(),a=o.x,s=o.y,l=o.width,h=o.height,u=o.radius;if(u){var c=!1;return i&&(c=function(t,e,i,n,r,o,a,s){return xf(t+r,e,t+i-r,e,o,a,s)||xf(t+i,e+r,t+i,e+n-r,o,a,s)||xf(t+i-r,e+n,t+r,e+n,o,a,s)||xf(t,e+n-r,t,e+r,o,a,s)||Bf(t+i-r,e+r,r,1.5*Math.PI,2*Math.PI,o,a,s)||Bf(t+i-r,e+n-r,r,0,.5*Math.PI,o,a,s)||Bf(t+r,e+n-r,r,.5*Math.PI,Math.PI,o,a,s)||Bf(t+r,e+r,r,Math.PI,1.5*Math.PI,o,a,s)}(a,s,l,h,u,r,t,e)),!c&&n&&(c=Mf(this,t,e)),c}var p=r/2;return n&&i?Ep(a-p,s-p,l+p,h+p,t,e):n?Ep(a,s,l,h,t,e):i?function(t,e,i,n,r,o,a){var s=r/2;return Ep(t-s,e-s,i,r,o,a)||Ep(t+i-s,e-s,r,n,o,a)||Ep(t+s,e+n-s,i,r,o,a)||Ep(t-s,e+s,r,n,o,a)}(a,s,l,h,r,t,e):void 0},e.prototype.createPath=function(t){var e=this.attr(),i=e.x,n=e.y,r=e.width,o=e.height,a=e.radius;if(t.beginPath(),0===a)t.rect(i,n,r,o);else{var s=function(t){var e=0,i=0,n=0,r=0;return V(t)?1===t.length?e=i=n=r=t[0]:2===t.length?(e=n=t[0],i=r=t[1]):3===t.length?(e=t[0],i=r=t[1],n=t[2]):(e=t[0],i=t[1],n=t[2],r=t[3]):e=i=n=r=t,[e,i,n,r]}(a),l=s[0],h=s[1],u=s[2],c=s[3];t.moveTo(i+l,n),t.lineTo(i+r-h,n),0!==h&&t.arc(i+r-h,n+h,h,-Math.PI/2,0),t.lineTo(i+r,n+o-u),0!==u&&t.arc(i+r-u,n+o-u,u,0,Math.PI/2),t.lineTo(i+c,n+o),0!==c&&t.arc(i+c,n+o-c,c,Math.PI/2,Math.PI),t.lineTo(i,n+l),0!==l&&t.arc(i+l,n+l,l,Math.PI,1.5*Math.PI),t.closePath()}},e}(ff),Rf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return l(l({},e),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.isOnlyHitBox=function(){return!0},e.prototype.initAttrs=function(t){this._assembleFont(),t.text&&this._setText(t.text)},e.prototype._assembleFont=function(){var t=this.attrs;t.font=tr(t)},e.prototype._setText=function(t){var e=null;et(t)&&-1!==t.indexOf("\n")&&(e=t.split("\n")),this.set("textArr",e)},e.prototype.onAttrChange=function(e,i,n){t.prototype.onAttrChange.call(this,e,i,n),e.startsWith("font")&&this._assembleFont(),"text"===e&&this._setText(i)},e.prototype._getSpaceingY=function(){var t=this.attrs,e=t.lineHeight,i=1*t.fontSize;return e?e-i:.14*i},e.prototype._drawTextArr=function(t,e,i){var n,r=this.attrs,o=r.textBaseline,a=r.x,s=r.y,l=1*r.fontSize,h=this._getSpaceingY(),u=Jn(r.text,r.fontSize,r.lineHeight);N(e,(function(e,r){n=s+r*(h+l)-u+l,"middle"===o&&(n+=u-l-(u-l)/2),"top"===o&&(n+=u-l),z(e)||(i?t.fillText(e,a,n):t.strokeText(e,a,n))}))},e.prototype._drawText=function(t,e){var i=this.attr(),n=i.x,r=i.y,o=this.get("textArr");if(o)this._drawTextArr(t,o,e);else{var a=i.text;z(a)||(e?t.fillText(a,n,r):t.strokeText(a,n,r))}},e.prototype.strokeAndFill=function(t){var e=this.attrs,i=e.lineWidth,n=e.opacity,r=e.strokeOpacity,o=e.fillOpacity;this.isStroke()&&i>0&&(z(r)||1===r||(t.globalAlpha=n),this.stroke(t)),this.isFill()&&(z(o)||1===o?this.fill(t):(t.globalAlpha=o,this.fill(t),t.globalAlpha=n)),this.afterDrawPath(t)},e.prototype.fill=function(t){this._drawText(t,!0)},e.prototype.stroke=function(t){this._drawText(t,!1)},e}(ff);function _f(t,e,i){var n,r,o=t.getTotalMatrix();if(o){var a=(n=[e,i,1],(r=o)?ji(qi(r),n):n);return[a[0],a[1]]}return[e,i]}function Yf(t,e,i){if(t.isCanvas&&t.isCanvas())return!0;if(!ci(t)||!1===t.cfg.isInView)return!1;if(t.cfg.clipShape){var n=_f(t,e,i),r=n[0],o=n[1];if(t.isClipped(r,o))return!1}var a=t.cfg.cacheCanvasBBox||t.getCanvasBBox();return e>=a.minX&&e<=a.maxX&&i>=a.minY&&i<=a.maxY}function Gf(t,e,i){if(!Yf(t,e,i))return null;for(var n=null,r=t.getChildren(),o=r.length-1;o>=0;o--){var a=r[o];if(a.isGroup())n=Gf(a,e,i);else if(Yf(a,e,i)){var s=a,l=_f(a,e,i),h=l[0],u=l[1];s.isInShape(h,u)&&(n=a)}if(n)break}return n}var Xf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.renderer="canvas",e.autoDraw=!0,e.localRefresh=!0,e.refreshElements=[],e.clipView=!0,e.quickHit=!1,e},e.prototype.onCanvasChange=function(t){"attr"!==t&&"sort"!==t&&"changeSize"!==t||(this.set("refreshElements",[this]),this.draw())},e.prototype.getShapeBase=function(){return i},e.prototype.getGroupBase=function(){return pf},e.prototype.getPixelRatio=function(){var t=this.get("pixelRatio")||(window?window.devicePixelRatio:1);return t>=1?Math.ceil(t):1},e.prototype.getViewRange=function(){return{minX:0,minY:0,maxX:this.cfg.width,maxY:this.cfg.height}},e.prototype.createDom=function(){var t=document.createElement("canvas"),e=t.getContext("2d");return this.set("context",e),t},e.prototype.setDOMSize=function(e,i){t.prototype.setDOMSize.call(this,e,i);var n=this.get("context"),r=this.get("el"),o=this.getPixelRatio();r.width=o*e,r.height=o*i,o>1&&n.scale(o,o)},e.prototype.clear=function(){t.prototype.clear.call(this),this._clearFrame();var e=this.get("context"),i=this.get("el");e.clearRect(0,0,i.width,i.height)},e.prototype.getShape=function(e,i){return this.get("quickHit")?Gf(this,e,i):t.prototype.getShape.call(this,e,i,null)},e.prototype._getRefreshRegion=function(){var t,e=this.get("refreshElements"),i=this.getViewRange();e.length&&e[0]===this?t=i:(t=function(t){if(!t.length)return null;var e=[],i=[],n=[],r=[];return N(t,(function(t){var o=cf(t);o&&(e.push(o.minX),i.push(o.minY),n.push(o.maxX),r.push(o.maxY))})),{minX:K(e),minY:K(i),maxX:Q(n),maxY:Q(r)}}(e),t&&(t.minX=Math.floor(t.minX),t.minY=Math.floor(t.minY),t.maxX=Math.ceil(t.maxX),t.maxY=Math.ceil(t.maxY),t.maxY+=1,this.get("clipView")&&(t=function(t,e){return t&&e&&Fp(t,e)?{minX:Math.max(t.minX,e.minX),minY:Math.max(t.minY,e.minY),maxX:Math.min(t.maxX,e.maxX),maxY:Math.min(t.maxY,e.maxY)}:null}(t,i))));return t},e.prototype.refreshElement=function(t){this.get("refreshElements").push(t)},e.prototype._clearFrame=function(){var t,e=this.get("drawFrame");e&&(t=e,(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout)(t),this.set("drawFrame",null),this.set("refreshElements",[]))},e.prototype.draw=function(){var t=this.get("drawFrame");this.get("autoDraw")&&t||this._startDraw()},e.prototype._drawAll=function(){var t=this.get("context"),e=this.get("el"),i=this.getChildren();t.clearRect(0,0,e.width,e.height),ef(t,this),nf(t,i),this.set("refreshElements",[])},e.prototype._drawRegion=function(){var t=this.get("context"),e=this.get("refreshElements"),i=this.getChildren(),n=this._getRefreshRegion();n?(t.clearRect(n.minX,n.minY,n.maxX-n.minX,n.maxY-n.minY),t.save(),t.beginPath(),t.rect(n.minX,n.minY,n.maxX-n.minX,n.maxY-n.minY),t.clip(),ef(t,this),rf(this,i,n),nf(t,i,n),t.restore()):e.length&&af(e),N(e,(function(t){t.get("hasChanged")&&t.set("hasChanged",!1)})),this.set("refreshElements",[])},e.prototype._startDraw=function(){var t,e=this,i=this.get("drawFrame");i||(t=function(){e.get("localRefresh")?e._drawRegion():e._drawAll(),e.set("drawFrame",null)},i=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return setTimeout(t,16)})(t),this.set("drawFrame",i))},e.prototype.skipDraw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.width=0,t.height=0,t.parentNode.removeChild(t)},e}(xn),zf=Object.freeze(Object.defineProperty({__proto__:null,AbstractCanvas:xn,AbstractGroup:wn,AbstractShape:Cn,Base:pi,Canvas:Xf,Event:si,Group:pf,PathUtil:ai,Shape:i,assembleFont:tr,getArcParams:Np,getBBoxMethod:Sn,getOffScreenContext:$n,getTextHeight:Jn,invert:qi,isAllowCapture:ci,multiplyVec2:ji,registerBBox:Mn,registerEasing:hn,version:"0.5.12"},Symbol.toStringTag,{value:"Module"})),Vf={rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polyline:"polyline",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject"},Hf={opacity:"opacity",fillStyle:"fill",fill:"fill",fillOpacity:"fill-opacity",strokeStyle:"stroke",strokeOpacity:"stroke-opacity",stroke:"stroke",x:"x",y:"y",r:"r",rx:"rx",ry:"ry",width:"width",height:"height",x1:"x1",x2:"x2",y1:"y1",y2:"y2",lineCap:"stroke-linecap",lineJoin:"stroke-linejoin",lineWidth:"stroke-width",lineDash:"stroke-dasharray",lineDashOffset:"stroke-dashoffset",miterLimit:"stroke-miterlimit",font:"font",fontSize:"font-size",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",fontFamily:"font-family",startArrow:"marker-start",endArrow:"marker-end",path:"d",class:"class",id:"id",style:"style",preserveAspectRatio:"preserveAspectRatio"};function Nf(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Wf(t){var e=Vf[t.type],i=t.getParent();if(!e)throw new Error("the type "+t.type+" is not supported by svg");var n=Nf(e);if(t.get("id")&&(n.id=t.get("id")),t.set("el",n),t.set("attrs",{}),i){var r=i.get("el");r||(r=i.createDom(),i.set("el",r)),r.appendChild(n)}return n}function jf(t,e){var i,n=t.get("el"),r=(i=n.children,D(i)?Array.prototype.slice.call(i):[]).sort(e),o=document.createDocumentFragment();r.forEach((function(t){o.appendChild(t)})),n.appendChild(o)}function qf(t){var e=t.attr().matrix;if(e){for(var i=t.cfg.el,n=[],r=0;r<9;r+=3)n.push(e[r]+","+e[r+1]);-1===(n=n.join(",")).indexOf("NaN")?i.setAttribute("transform","matrix("+n+")"):console.warn("invalid matrix:",e)}}function Uf(t,e){var i=t.getClip(),n=t.get("el");if(i){if(i&&!n.hasAttribute("clip-path")){Wf(i),i.createPath(e);var r=e.addClip(i);n.setAttribute("clip-path","url(#"+r+")")}}else n.removeAttribute("clip-path")}function Zf(t,e){e.forEach((function(e){e.draw(t)}))}function Qf(t,e){var i=t.get("canvas");if(i&&i.get("autoDraw")){var n=i.get("context"),r=t.getParent(),o=r?r.getChildren():[i],a=t.get("el");if("remove"===e)if(t.get("isClipShape")){var s=a&&a.parentNode,l=s&&s.parentNode;s&&l&&l.removeChild(s)}else a&&a.parentNode&&a.parentNode.removeChild(a);else if("show"===e)a.setAttribute("visibility","visible");else if("hide"===e)a.setAttribute("visibility","hidden");else if("zIndex"===e)!function(t,e){var i=t.parentNode,n=Array.from(i.childNodes).filter((function(t){return 1===t.nodeType&&"defs"!==t.nodeName.toLowerCase()})),r=n[e],o=n.indexOf(t);if(r){if(o>e)i.insertBefore(t,r);else if(o<e){var a=n[e+1];a?i.insertBefore(t,a):i.appendChild(t)}}else i.appendChild(t)}(a,o.indexOf(t));else if("sort"===e){var h=t.get("children");h&&h.length&&jf(t,(function(t,e){return h.indexOf(t)-h.indexOf(e)?1:0}))}else"clear"===e?a&&(a.innerHTML=""):"matrix"===e?qf(t):"clip"===e?Uf(t,n):"attr"===e||"add"===e&&t.draw(n)}}var Kf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.isEntityGroup=function(){return!0},e.prototype.createDom=function(){var t=Nf("g");this.set("el",t);var e=this.getParent();if(e){var i=e.get("el");i||(i=e.createDom(),e.set("el",i)),i.appendChild(t)}return t},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e);var i=this.get("canvas");if(i&&i.get("autoDraw")){var n=i.get("context");this.createPath(n,e)}},e.prototype.onCanvasChange=function(t){Qf(this,t)},e.prototype.getShapeBase=function(){return c},e.prototype.getGroupBase=function(){return e},e.prototype.draw=function(t){var e=this.getChildren(),i=this.get("el");this.get("destroyed")?i&&i.parentNode.removeChild(i):(i||this.createDom(),Uf(this,t),this.createPath(t),e.length&&Zf(t,e))},e.prototype.createPath=function(t,e){var i=this.attr(),n=this.get("el");N(e||i,(function(t,e){Hf[e]&&n.setAttribute(Hf[e],t)})),qf(this)},e}(wn),$f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="svg",e.canFill=!1,e.canStroke=!1,e}return r(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return l(l({},e),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e);var i=this.get("canvas");if(i&&i.get("autoDraw")){var n=i.get("context");this.draw(n,e)}},e.prototype.getShapeBase=function(){return c},e.prototype.getGroupBase=function(){return Kf},e.prototype.onCanvasChange=function(t){Qf(this,t)},e.prototype.calculateBBox=function(){var t=this.get("el"),e=null;if(t)e=t.getBBox();else{var i=Sn(this.get("type"));i&&(e=i(this))}if(e){var n=e.x,r=e.y,o=e.width,a=e.height,s=this.getHitLineWidth(),l=s/2,h=n-l,u=r-l;return{x:h,y:u,minX:h,minY:u,maxX:n+o+l,maxY:r+a+l,width:o+s,height:a+s}}return{x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0}},e.prototype.isFill=function(){var t=this.attr(),e=t.fill,i=t.fillStyle;return(e||i||this.isClipShape())&&this.canFill},e.prototype.isStroke=function(){var t=this.attr(),e=t.stroke,i=t.strokeStyle;return(e||i)&&this.canStroke},e.prototype.draw=function(t,e){var i=this.get("el");this.get("destroyed")?i&&i.parentNode.removeChild(i):(i||Wf(this),Uf(this,t),this.createPath(t,e),this.shadow(t,e),this.strokeAndFill(t,e),this.transform(e))},e.prototype.createPath=function(t,e){},e.prototype.strokeAndFill=function(t,e){var i=e||this.attr(),n=i.fill,r=i.fillStyle,o=i.stroke,a=i.strokeStyle,s=i.fillOpacity,l=i.strokeOpacity,h=i.lineWidth,u=this.get("el");this.canFill&&(e?"fill"in i?this._setColor(t,"fill",n):"fillStyle"in i&&this._setColor(t,"fill",r):this._setColor(t,"fill",n||r),s&&u.setAttribute(Hf.fillOpacity,s)),this.canStroke&&h>0&&(e?"stroke"in i?this._setColor(t,"stroke",o):"strokeStyle"in i&&this._setColor(t,"stroke",a):this._setColor(t,"stroke",o||a),l&&u.setAttribute(Hf.strokeOpacity,l),h&&u.setAttribute(Hf.lineWidth,h))},e.prototype._setColor=function(t,e,i){var n=this.get("el");if(i)if(i=i.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(i))(r=t.find("gradient",i))||(r=t.addGradient(i)),n.setAttribute(Hf[e],"url(#"+r+")");else if(/^[p,P]{1}[\s]*\(/.test(i)){var r;(r=t.find("pattern",i))||(r=t.addPattern(i)),n.setAttribute(Hf[e],"url(#"+r+")")}else n.setAttribute(Hf[e],i);else n.setAttribute(Hf[e],"none")},e.prototype.shadow=function(t,e){var i=this.attr(),n=e||i,r=n.shadowOffsetX,o=n.shadowOffsetY,a=n.shadowBlur,s=n.shadowColor;(r||o||a||s)&&function(t,e){var i=t.cfg.el,n=t.attr(),r={dx:n.shadowOffsetX,dy:n.shadowOffsetY,blur:n.shadowBlur,color:n.shadowColor};if(r.dx||r.dy||r.blur||r.color){var o=e.find("filter",r);o||(o=e.addShadow(r)),i.setAttribute("filter","url(#"+o+")")}else i.removeAttribute("filter")}(this,t)},e.prototype.transform=function(t){var e=this.attr();(t||e).matrix&&qf(this)},e.prototype.isInShape=function(t,e){return this.isPointInPath(t,e)},e.prototype.isPointInPath=function(t,e){var i=this.get("el"),n=this.get("canvas").get("el").getBoundingClientRect(),r=t+n.left,o=e+n.top,a=document.elementFromPoint(r,o);return!(!a||!a.isEqualNode(i))},e.prototype.getHitLineWidth=function(){var t=this.attrs,e=t.lineWidth,i=t.lineAppendWidth;return this.isStroke()?e+i:0},e}(Cn),Jf=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="circle",e.canFill=!0,e.canStroke=!0,e}return r(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return l(l({},e),{x:0,y:0,r:0})},e.prototype.createPath=function(t,e){var i=this.attr(),n=this.get("el");N(e||i,(function(t,e){"x"===e||"y"===e?n.setAttribute("c"+e,t):Hf[e]&&n.setAttribute(Hf[e],t)}))},e}($f),tg=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dom",e.canFill=!1,e.canStroke=!1,e}return r(e,t),e.prototype.createPath=function(t,e){var i=this.attr(),n=this.get("el");if(N(e||i,(function(t,e){Hf[e]&&n.setAttribute(Hf[e],t)})),"function"==typeof i.html){var r=i.html.call(this,i);if(r instanceof Element||r instanceof HTMLDocument){for(var o=n.childNodes,a=o.length-1;a>=0;a--)n.removeChild(o[a]);n.appendChild(r)}else n.innerHTML=r}else n.innerHTML=i.html},e}($f),eg=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="ellipse",e.canFill=!0,e.canStroke=!0,e}return r(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return l(l({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.createPath=function(t,e){var i=this.attr(),n=this.get("el");N(e||i,(function(t,e){"x"===e||"y"===e?n.setAttribute("c"+e,t):Hf[e]&&n.setAttribute(Hf[e],t)}))},e}($f),ig=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="image",e.canFill=!1,e.canStroke=!1,e}return r(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return l(l({},e),{x:0,y:0,width:0,height:0})},e.prototype.createPath=function(t,e){var i=this,n=this.attr(),r=this.get("el");N(e||n,(function(t,e){"img"===e?i._setImage(n.img):Hf[e]&&r.setAttribute(Hf[e],t)}))},e.prototype.setAttr=function(t,e){this.attrs[t]=e,"img"===t&&this._setImage(e)},e.prototype._setImage=function(t){var e=this.attr(),i=this.get("el");if(et(t))i.setAttribute("href",t);else if(t instanceof window.Image)e.width||(i.setAttribute("width",t.width),this.attr("width",t.width)),e.height||(i.setAttribute("height",t.height),this.attr("height",t.height)),i.setAttribute("href",t.src);else if(t instanceof HTMLElement&&et(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase())i.setAttribute("href",t.toDataURL());else if(t instanceof ImageData){var n=document.createElement("canvas");n.setAttribute("width",""+t.width),n.setAttribute("height",""+t.height),n.getContext("2d").putImageData(t,0,0),e.width||(i.setAttribute("width",""+t.width),this.attr("width",t.width)),e.height||(i.setAttribute("height",""+t.height),this.attr("height",t.height)),i.setAttribute("href",n.toDataURL())}},e}($f),ng=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="line",e.canFill=!1,e.canStroke=!0,e}return r(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return l(l({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var i=this.attr(),n=this.get("el");N(e||i,(function(e,r){if("startArrow"===r||"endArrow"===r)if(e){var o=H(e)?t.addArrow(i,Hf[r]):t.getDefaultArrow(i,Hf[r]);n.setAttribute(Hf[r],"url(#"+o+")")}else n.removeAttribute(Hf[r]);else Hf[r]&&n.setAttribute(Hf[r],e)}))},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,i=t.y1,n=t.x2,r=t.y2;return In.length(e,i,n,r)},e.prototype.getPoint=function(t){var e=this.attr(),i=e.x1,n=e.y1,r=e.x2,o=e.y2;return In.pointAt(i,n,r,o,t)},e}($f),rg={circle:function(t,e,i){return[["M",t,e],["m",-i,0],["a",i,i,0,1,0,2*i,0],["a",i,i,0,1,0,2*-i,0]]},square:function(t,e,i){return[["M",t-i,e-i],["L",t+i,e-i],["L",t+i,e+i],["L",t-i,e+i],["Z"]]},diamond:function(t,e,i){return[["M",t-i,e],["L",t,e-i],["L",t+i,e],["L",t,e+i],["Z"]]},triangle:function(t,e,i){var n=i*Math.sin(1/3*Math.PI);return[["M",t-i,e+n],["L",t,e-n],["L",t+i,e+n],["z"]]},triangleDown:function(t,e,i){var n=i*Math.sin(1/3*Math.PI);return[["M",t-i,e-n],["L",t+i,e-n],["L",t,e+n],["Z"]]}},og={get:function(t){return rg[t]},register:function(t,e){rg[t]=e},remove:function(t){delete rg[t]},getAll:function(){return rg}},ag=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="marker",e.canFill=!0,e.canStroke=!0,e}return r(e,t),e.prototype.createPath=function(t){this.get("el").setAttribute("d",this._assembleMarker())},e.prototype._assembleMarker=function(){var t=this._getPath();return V(t)?t.map((function(t){return t.join(" ")})).join(""):t},e.prototype._getPath=function(){var t,e=this.attr(),i=e.x,n=e.y,r=e.r||e.radius,o=e.symbol||"circle";return(t=X(o)?o:og.get(o))?t(i,n,r):(console.warn(t+" symbol is not exist."),null)},e.symbolsFactory=og,e}($f),sg=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="path",e.canFill=!0,e.canStroke=!0,e}return r(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return l(l({},e),{startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var i=this,n=this.attr(),r=this.get("el");N(e||n,(function(e,o){if("path"===o&&V(e))r.setAttribute("d",i._formatPath(e));else if("startArrow"===o||"endArrow"===o)if(e){var a=H(e)?t.addArrow(n,Hf[o]):t.getDefaultArrow(n,Hf[o]);r.setAttribute(Hf[o],"url(#"+a+")")}else r.removeAttribute(Hf[o]);else Hf[o]&&r.setAttribute(Hf[o],e)}))},e.prototype._formatPath=function(t){var e=t.map((function(t){return t.join(" ")})).join("");return~e.indexOf("NaN")?"":e},e.prototype.getTotalLength=function(){var t=this.get("el");return t?t.getTotalLength():null},e.prototype.getPoint=function(t){var e=this.get("el"),i=this.getTotalLength();if(0===i)return null;var n=e?e.getPointAtLength(t*i):null;return n?{x:n.x,y:n.y}:null},e}($f),lg=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polygon",e.canFill=!0,e.canStroke=!0,e}return r(e,t),e.prototype.createPath=function(t,e){var i=this.attr(),n=this.get("el");N(e||i,(function(t,e){"points"===e&&V(t)&&t.length>=2?n.setAttribute("points",t.map((function(t){return t[0]+","+t[1]})).join(" ")):Hf[e]&&n.setAttribute(Hf[e],t)}))},e}($f),hg=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polyline",e.canFill=!0,e.canStroke=!0,e}return r(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return l(l({},e),{startArrow:!1,endArrow:!1})},e.prototype.onAttrChange=function(e,i,n){t.prototype.onAttrChange.call(this,e,i,n),-1!==["points"].indexOf(e)&&this._resetCache()},e.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},e.prototype.createPath=function(t,e){var i=this.attr(),n=this.get("el");N(e||i,(function(t,e){"points"===e&&V(t)&&t.length>=2?n.setAttribute("points",t.map((function(t){return t[0]+","+t[1]})).join(" ")):Hf[e]&&n.setAttribute(Hf[e],t)}))},e.prototype.getTotalLength=function(){var t=this.attr().points,e=this.get("totalLength");return z(e)?(this.set("totalLength",Un(t)),this.get("totalLength")):e},e.prototype.getPoint=function(t){var e,i,n=this.attr().points,r=this.get("tCache");return r||(this._setTcache(),r=this.get("tCache")),N(r,(function(n,r){t>=n[0]&&t<=n[1]&&(e=(t-n[0])/(n[1]-n[0]),i=r)})),In.pointAt(n[i][0],n[i][1],n[i+1][0],n[i+1][1],e)},e.prototype._setTcache=function(){var t=this.attr().points;if(t&&0!==t.length){var e=this.getTotalLength();if(!(e<=0)){var i,n,r=0,o=[];N(t,(function(a,s){t[s+1]&&((i=[])[0]=r/e,n=In.length(a[0],a[1],t[s+1][0],t[s+1][1]),r+=n,i[1]=r/e,o.push(i))})),this.set("tCache",o)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.attr().points,e=t.length-1,i=[];return i.push([t[e-1][0],t[e-1][1]]),i.push([t[e][0],t[e][1]]),i},e}($f);var ug=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="rect",e.canFill=!0,e.canStroke=!0,e}return r(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return l(l({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.createPath=function(t,e){var i=this,n=this.attr(),r=this.get("el"),o=!1,a=["x","y","width","height","radius"];N(e||n,(function(t,e){-1===a.indexOf(e)||o?-1===a.indexOf(e)&&Hf[e]&&r.setAttribute(Hf[e],t):(r.setAttribute("d",i._assembleRect(n)),o=!0)}))},e.prototype._assembleRect=function(t){var e=t.x,i=t.y,n=t.width,r=t.height,o=t.radius;if(!o)return"M "+e+","+i+" l "+n+",0 l 0,"+r+" l"+-n+" 0 z";var a=function(t){var e=0,i=0,n=0,r=0;return V(t)?1===t.length?e=i=n=r=t[0]:2===t.length?(e=n=t[0],i=r=t[1]):3===t.length?(e=t[0],i=r=t[1],n=t[2]):(e=t[0],i=t[1],n=t[2],r=t[3]):e=i=n=r=t,{r1:e,r2:i,r3:n,r4:r}}(o);return V(o)?1===o.length?a.r1=a.r2=a.r3=a.r4=o[0]:2===o.length?(a.r1=a.r3=o[0],a.r2=a.r4=o[1]):3===o.length?(a.r1=o[0],a.r2=a.r4=o[1],a.r3=o[2]):(a.r1=o[0],a.r2=o[1],a.r3=o[2],a.r4=o[3]):a.r1=a.r2=a.r3=a.r4=o,[["M "+(e+a.r1)+","+i],["l "+(n-a.r1-a.r2)+",0"],["a "+a.r2+","+a.r2+",0,0,1,"+a.r2+","+a.r2],["l 0,"+(r-a.r2-a.r3)],["a "+a.r3+","+a.r3+",0,0,1,"+-a.r3+","+a.r3],["l "+(a.r3+a.r4-n)+",0"],["a "+a.r4+","+a.r4+",0,0,1,"+-a.r4+","+-a.r4],["l 0,"+(a.r4+a.r1-r)],["a "+a.r1+","+a.r1+",0,0,1,"+a.r1+","+-a.r1],["z"]].join(" ")},e}($f),cg={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},pg={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},fg={left:"left",start:"left",center:"middle",right:"end",end:"end"},gg=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="text",e.canFill=!0,e.canStroke=!0,e}return r(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return l(l({},e),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.createPath=function(t,e){var i=this,n=this.attr(),r=this.get("el");this._setFont(),N(e||n,(function(t,e){"text"===e?i._setText(""+t):"matrix"===e&&t?qf(i):Hf[e]&&r.setAttribute(Hf[e],t)})),r.setAttribute("paint-order","stroke"),r.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")},e.prototype._setFont=function(){var t=this.get("el"),e=this.attr(),i=e.textBaseline,n=e.textAlign,r=bi();r&&"firefox"===r.name?t.setAttribute("dominant-baseline",pg[i]||"alphabetic"):t.setAttribute("alignment-baseline",cg[i]||"baseline"),t.setAttribute("text-anchor",fg[n]||"left")},e.prototype._setText=function(t){var e=this.get("el"),i=this.attr(),n=i.x,r=i.textBaseline,o=void 0===r?"bottom":r;if(t)if(~t.indexOf("\n")){var a=t.split("\n"),s=a.length-1,l="";N(a,(function(t,e){0===e?"alphabetic"===o?l+='<tspan x="'+n+'" dy="'+-s+'em">'+t+"</tspan>":"top"===o?l+='<tspan x="'+n+'" dy="0.9em">'+t+"</tspan>":"middle"===o?l+='<tspan x="'+n+'" dy="'+-(s-1)/2+'em">'+t+"</tspan>":"bottom"===o?l+='<tspan x="'+n+'" dy="-'+(s+.3)+'em">'+t+"</tspan>":"hanging"===o&&(l+='<tspan x="'+n+'" dy="'+(-(s-1)-.3)+'em">'+t+"</tspan>"):l+='<tspan x="'+n+'" dy="1em">'+t+"</tspan>"})),e.innerHTML=l}else e.innerHTML=t;else e.innerHTML=""},e}($f),dg=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,yg=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,vg=/[\d.]+:(#[^\s]+|[^)]+\))/gi;function mg(t){var e=t.match(vg);if(!e)return"";var i="";return e.sort((function(t,e){return t=t.split(":"),e=e.split(":"),Number(t[0])-Number(e[0])})),N(e,(function(t){t=t.split(":"),i+='<stop offset="'+t[0]+'" stop-color="'+t[1]+'"></stop>'})),i}var xg=function(){function t(t){this.cfg={};var e,i,n,r,o,a,s,l=null,h=Zt("gradient_");return"l"===t.toLowerCase()[0]?function(t,e){var i,n,r=dg.exec(t),o=gt(yt(parseFloat(r[1])),2*Math.PI),a=r[2];o>=0&&o<.5*Math.PI?(i={x:0,y:0},n={x:1,y:1}):.5*Math.PI<=o&&o<Math.PI?(i={x:1,y:0},n={x:0,y:1}):Math.PI<=o&&o<1.5*Math.PI?(i={x:1,y:1},n={x:0,y:0}):(i={x:0,y:1},n={x:1,y:0});var s=Math.tan(o),l=s*s,h=(n.x-i.x+s*(n.y-i.y))/(l+1)+i.x,u=s*(n.x-i.x+s*(n.y-i.y))/(l+1)+i.y;e.setAttribute("x1",i.x),e.setAttribute("y1",i.y),e.setAttribute("x2",h),e.setAttribute("y2",u),e.innerHTML=mg(a)}(t,l=Nf("linearGradient")):(l=Nf("radialGradient"),e=t,i=l,n=yg.exec(e),r=parseFloat(n[1]),o=parseFloat(n[2]),a=parseFloat(n[3]),s=n[4],i.setAttribute("cx",r),i.setAttribute("cy",o),i.setAttribute("r",a),i.innerHTML=mg(s)),l.setAttribute("id",h),this.el=l,this.id=h,this.cfg=t,this}return t.prototype.match=function(t,e){return this.cfg===e},t}(),wg={shadowColor:"color",shadowOpacity:"opacity",shadowBlur:"blur",shadowOffsetX:"dx",shadowOffsetY:"dy"},Cg={x:"-40%",y:"-40%",width:"200%",height:"200%"},bg=function(){function t(t){this.type="filter",this.cfg={},this.type="filter";var e=Nf("filter");return N(Cg,(function(t,i){e.setAttribute(i,t)})),this.el=e,this.id=Zt("filter_"),this.el.id=this.id,this.cfg=t,this._parseShadow(t,e),this}return t.prototype.match=function(t,e){if(this.type!==t)return!1;var i=!0,n=this.cfg;return N(Object.keys(n),(function(t){if(n[t]!==e[t])return i=!1,!1})),i},t.prototype.update=function(t,e){var i=this.cfg;return i[wg[t]]=e,this._parseShadow(i,this.el),this},t.prototype._parseShadow=function(t,e){var i='<feDropShadow\n dx="'+(t.dx||0)+'"\n dy="'+(t.dy||0)+'"\n stdDeviation="'+(t.blur?t.blur/10:0)+'"\n flood-color="'+(t.color?t.color:"#000")+'"\n flood-opacity="'+(t.opacity?t.opacity:1)+'"\n />';e.innerHTML=i},t}(),Mg=function(){function t(t,e){this.cfg={};var i=Nf("marker"),n=Zt("marker_");i.setAttribute("id",n);var r=Nf("path");r.setAttribute("stroke",t.stroke||"none"),r.setAttribute("fill",t.fill||"none"),i.appendChild(r),i.setAttribute("overflow","visible"),i.setAttribute("orient","auto-start-reverse"),this.el=i,this.child=r,this.id=n;var o=t["marker-start"===e?"startArrow":"endArrow"];return this.stroke=t.stroke||"#000",!0===o?this._setDefaultPath(e,r):(this.cfg=o,this._setMarker(t.lineWidth,r)),this}return t.prototype.match=function(){return!1},t.prototype._setDefaultPath=function(t,e){var i=this.el;e.setAttribute("d","M0,0 L"+10*Math.cos(Math.PI/6)+",5 L0,10"),i.setAttribute("refX",""+10*Math.cos(Math.PI/6)),i.setAttribute("refY","5")},t.prototype._setMarker=function(t,e){var i=this.el,n=this.cfg.path,r=this.cfg.d;V(n)&&(n=n.map((function(t){return t.join(" ")})).join("")),e.setAttribute("d",n),i.appendChild(e),r&&i.setAttribute("refX",""+r/t)},t.prototype.update=function(t){var e=this.child;e.attr?e.attr("fill",t):e.setAttribute("fill",t)},t}(),Sg=function(){function t(t){this.type="clip",this.cfg={};var e=Nf("clipPath");this.el=e,this.id=Zt("clip_"),e.id=this.id;var i=t.cfg.el;return e.appendChild(i),this.cfg=t,this}return t.prototype.match=function(){return!1},t.prototype.remove=function(){var t=this.el;t.parentNode.removeChild(t)},t}(),Ag=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,Tg=function(){function t(t){this.cfg={};var e=Nf("pattern");e.setAttribute("patternUnits","userSpaceOnUse");var i=Nf("image");e.appendChild(i);var n=Zt("pattern_");e.id=n,this.el=e,this.id=n,this.cfg=t;var r=Ag.exec(t)[2];i.setAttribute("href",r);var o=new Image;function a(){e.setAttribute("width",""+o.width),e.setAttribute("height",""+o.height)}return r.match(/^data:/i)||(o.crossOrigin="Anonymous"),o.src=r,o.complete?a():(o.onload=a,o.src=o.src),this}return t.prototype.match=function(t,e){return this.cfg===e},t}(),Bg=function(){function t(t){var e=Nf("defs"),i=Zt("defs_");e.id=i,t.appendChild(e),this.children=[],this.defaultArrow={},this.el=e,this.canvas=t}return t.prototype.find=function(t,e){for(var i=this.children,n=null,r=0;r<i.length;r++)if(i[r].match(t,e)){n=i[r].id;break}return n},t.prototype.findById=function(t){for(var e=this.children,i=null,n=0;n<e.length;n++)if(e[n].id===t){i=e[n];break}return i},t.prototype.add=function(t){this.children.push(t),t.canvas=this.canvas,t.parent=this},t.prototype.getDefaultArrow=function(t,e){var i=t.stroke||t.strokeStyle;if(this.defaultArrow[i])return this.defaultArrow[i].id;var n=new Mg(t,e);return this.defaultArrow[i]=n,this.el.appendChild(n.el),this.add(n),n.id},t.prototype.addGradient=function(t){var e=new xg(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addArrow=function(t,e){var i=new Mg(t,e);return this.el.appendChild(i.el),this.add(i),i.id},t.prototype.addShadow=function(t){var e=new bg(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addPattern=function(t){var e=new Tg(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addClip=function(t){var e=new Sg(t);return this.el.appendChild(e.el),this.add(e),e.id},t}(),kg=function(t){function e(e){return t.call(this,l(l({},e),{autoDraw:!0,renderer:"svg"}))||this}return r(e,t),e.prototype.getShapeBase=function(){return c},e.prototype.getGroupBase=function(){return Kf},e.prototype.getShape=function(t,e,i){var n=i.target||i.srcElement;if(!Vf[n.tagName]){for(var r=n.parentNode;r&&!Vf[r.tagName];)r=r.parentNode;n=r}return this.find((function(t){return t.get("el")===n}))},e.prototype.createDom=function(){var t=Nf("svg"),e=new Bg(t);return t.setAttribute("width",""+this.get("width")),t.setAttribute("height",""+this.get("height")),this.set("context",e),t},e.prototype.onCanvasChange=function(t){var e=this.get("context"),i=this.get("el");if("sort"===t){var n=this.get("children");n&&n.length&&jf(this,(function(t,e){return n.indexOf(t)-n.indexOf(e)?1:0}))}else if("clear"===t){if(i){i.innerHTML="";var r=e.el;r.innerHTML="",i.appendChild(r)}}else"matrix"===t?qf(this):"clip"===t?Uf(this,e):"changeSize"===t&&(i.setAttribute("width",""+this.get("width")),i.setAttribute("height",""+this.get("height")))},e.prototype.draw=function(){var t=this.get("context"),e=this.getChildren();Uf(this,t),e.length&&Zf(t,e)},e}(xn),Lg=Object.freeze(Object.defineProperty({__proto__:null,AbstractCanvas:xn,AbstractGroup:wn,AbstractShape:Cn,Base:pi,Canvas:kg,Event:si,Group:Kf,PathUtil:ai,Shape:c,assembleFont:tr,getBBoxMethod:Sn,getOffScreenContext:$n,getTextHeight:Jn,invert:qi,isAllowCapture:ci,multiplyVec2:ji,registerBBox:Mn,registerEasing:hn,version:"0.5.6"},Symbol.toStringTag,{value:"Module"})),Pg=function(t){function e(e){var i=t.call(this,e)||this;i.type="path",i.shapeType="line";var n=e.connectNulls,r=void 0!==n&&n,o=e.showSinglePoint,a=void 0===o||o;return i.connectNulls=r,i.showSinglePoint=a,i}return r(e,t),e.prototype.updateElements=function(t,e){void 0===e&&(e=!1);for(var i=new Map,n=new Map,r=[],o=0,a=0;a<t.length;a++){var s=t[a],l=this.getElementId(s);r.push(l),i.set(l,s),n.set(l,o),o++}this.elements=new Array(o);for(var h=Xc(this.lastElementsMap,r),u=h.added,c=h.updated,p=h.removed,f=0,g=u;f<g.length;f++){l=g[f],s=i.get(l);var d=this.getShapeFactory(),y=this.getShapeInfo(s);a=n.get(l);(x=new Ac({shapeFactory:d,container:this.container,offscreenGroup:this.getOffscreenGroup(),elementIndex:a})).geometry=this,x.animate=this.animateOption,x.draw(y,e),this.elementsMap[l]=x,this.elements[a]=x}for(var v=0,m=c;v<m.length;v++){l=m[v],s=i.get(l);var x=this.lastElementsMap[l],w=(a=n.get(l),y=this.getShapeInfo(s),x.getModel());(this.isCoordinateChanged||Yc(w,y))&&(x.animate=this.animateOption,x.update(y)),this.elementsMap[l]=x,this.elements[a]=x}for(var C=0,b=p;C<b.length;C++){l=b[C];(x=this.lastElementsMap[l]).animate=this.animateOption,x.destroy()}},e.prototype.getPointsAndData=function(t){for(var e=[],i=[],n=0,r=t.length;n<r;n++){var o=t[n];e.push({x:o.x,y:o.y}),i.push(o[de])}return{points:e,data:i}},e.prototype.getShapeInfo=function(t){var e=this.getDrawCfg(t[0]),i=this.getPointsAndData(t),n=i.points,r=i.data;return e.mappingData=t,e.data=r,e.isStack=!!this.getAdjust("stack"),e.points=n,e.connectNulls=this.connectNulls,e.showSinglePoint=this.showSinglePoint,e},e}(Vc);function Ig(t,e,i,n,r){var o=[];if(t.length){for(var a=[],s=[],l=0,h=t.length;l<h;l++){var u=t[l];a.push(u[1]),s.push(u[0])}s=s.reverse(),N([a,s],(function(t,l){var h=[],u=n.parsePoints(t),c=u[0];1===a.length&&1===s.length?h=0===l?[["M",c.x-.5,c.y],["L",c.x+.5,c.y]]:[["L",c.x+.5,c.y],["L",c.x-.5,c.y]]:(e&&u.push({x:c.x,y:c.y}),h=i?Nh(u,!1,r):Hh(u,!1),l>0&&(h[0][0]="L")),o=o.concat(h)})),o.push(["Z"])}return o}function Eg(t,e,i,n,r){for(var o=pp(t,e,!e,"lineWidth"),a=t.connectNulls,s=t.isInCircle,l=hp(t.points,a,t.showSinglePoint),h=[],u=0,c=l.length;u<c;u++){var p=l[u];h=h.concat(Ig(p,s,i,n,r))}return o.path=h,o}function Fg(t){var e=t.start,i=t.end;return[[e.x,i.y],[i.x,e.y]]}Dc("area",{defaultShapeType:"area",getDefaultPoints:function(t){var e=t.x,i=t.y0;return(V(t.y)?t.y:[i,t.y]).map((function(t){return{x:e,y:t}}))}}),Rc("area","area",{draw:function(t,e){var i=Eg(t,!1,!1,this);return e.addShape({type:"path",attrs:i,name:"area"})},getMarker:function(t){return{symbol:function(t,e,i){return void 0===i&&(i=5.5),[["M",t-i,e-4],["L",t+i,e-4],["L",t+i,e+4],["L",t-i,e+4],["Z"]]},style:{r:5,fill:t.color}}}});var Og=function(t){function e(e){var i=t.call(this,e)||this;i.type="area",i.shapeType="area",i.generatePoints=!0,i.startOnZero=!0;var n=e.startOnZero,r=void 0===n||n,o=e.sortable,a=void 0!==o&&o,s=e.showSinglePoint,l=void 0!==s&&s;return i.startOnZero=r,i.sortable=a,i.showSinglePoint=l,i}return r(e,t),e.prototype.getPointsAndData=function(t){for(var e=[],i=[],n=0,r=t.length;n<r;n++){var o=t[n];e.push(o.points),i.push(o[de])}return{points:e,data:i}},e.prototype.getYMinValue=function(){return this.startOnZero?t.prototype.getYMinValue.call(this):this.getYScale().min},e}(Pg);Dc("edge",{defaultShapeType:"line",getDefaultPoints:function(t){return gp(t)}}),Rc("edge","line",{draw:function(t,e){var i=pp(t,!0,!1,"lineWidth"),n=Hh(this.parsePoints(t.points),this.coordinate.isPolar);return e.addShape("path",{attrs:l(l({},i),{path:n})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}});var Dg=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="edge",e.shapeType="edge",e.generatePoints=!0,e}return r(e,t),e}(Vc),Rg=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="heatmap",e.paletteCache={},e}return r(e,t),e.prototype.updateElements=function(t,e){for(var i=0;i<t.length;i++){var n=t[i],r=this.prepareRange(n),o=this.prepareSize(),a=Ht(this.styleOption,["cfg","shadowBlur"]);pt(a)||(a=o/2),this.prepareGreyScaleBlurredCircle(o,a),this.drawWithRange(n,r,o,a)}},e.prototype.color=function(t,e){return this.createAttrOption("color",t,"function"!=typeof e?e:""),this},e.prototype.clear=function(){t.prototype.clear.call(this),this.clearShadowCanvasCtx(),this.paletteCache={}},e.prototype.prepareRange=function(t){var e=this.getAttribute("color").getFields()[0],i=1/0,n=-1/0;return t.forEach((function(t){var r=t[de][e];r>n&&(n=r),r<i&&(i=r)})),i===n&&(i=n-1),[i,n]},e.prototype.prepareSize=function(){var t=this.getDefaultValue("size");return pt(t)||(t=this.getDefaultSize()),t},e.prototype.prepareGreyScaleBlurredCircle=function(t,e){var i=this.getGrayScaleBlurredCanvas(),n=t+e,r=i.getContext("2d");i.width=i.height=2*n,r.clearRect(0,0,i.width,i.height),r.shadowOffsetX=r.shadowOffsetY=2*n,r.shadowBlur=e,r.shadowColor="black",r.beginPath(),r.arc(-n,-n,t,0,2*Math.PI,!0),r.closePath(),r.fill()},e.prototype.drawWithRange=function(t,e,i,n){var r=this.coordinate,o=r.start,a=r.end,s=this.coordinate.getWidth(),l=this.coordinate.getHeight(),h=this.getAttribute("color").getFields()[0];this.clearShadowCanvasCtx();var u=this.getShadowCanvasCtx();e&&(t=t.filter((function(t){return t[de][h]<=e[1]&&t[de][h]>=e[0]})));for(var c=this.scales[h],p=0,f=t;p<f.length;p++){var g=f[p],d=this.getDrawCfg(g),y=d.x,v=d.y,m=c.scale(g[de][h]);this.drawGrayScaleBlurredCircle(y-o.x,v-a.y,i+n,m,u)}var x=u.getImageData(0,0,s,l);this.clearShadowCanvasCtx(),this.colorize(x),u.putImageData(x,0,0);var w=this.getImageShape();w.attr("x",o.x),w.attr("y",a.y),w.attr("width",s),w.attr("height",l),w.attr("img",u.canvas),w.set("origin",this.getShapeInfo(t))},e.prototype.getDefaultSize=function(){var t=this.getAttribute("position"),e=this.coordinate;return Math.min(e.getWidth()/(4*t.scales[0].ticks.length),e.getHeight()/(4*t.scales[1].ticks.length))},e.prototype.clearShadowCanvasCtx=function(){var t=this.getShadowCanvasCtx();t.clearRect(0,0,t.canvas.width,t.canvas.height)},e.prototype.getShadowCanvasCtx=function(){var t=this.shadowCanvas;return t||(t=document.createElement("canvas"),this.shadowCanvas=t),t.width=this.coordinate.getWidth(),t.height=this.coordinate.getHeight(),t.getContext("2d")},e.prototype.getGrayScaleBlurredCanvas=function(){return this.grayScaleBlurredCanvas||(this.grayScaleBlurredCanvas=document.createElement("canvas")),this.grayScaleBlurredCanvas},e.prototype.drawGrayScaleBlurredCircle=function(t,e,i,n,r){var o=this.getGrayScaleBlurredCanvas();r.globalAlpha=n,r.drawImage(o,t-i,e-i)},e.prototype.colorize=function(t){for(var e=this.getAttribute("color"),i=t.data,n=this.paletteCache,r=3;r<i.length;r+=4){var o=i[r];if(pt(o)){var a=n[o]?n[o]:$r.rgb2arr(e.gradient(o/256));i[r-3]=a[0],i[r-2]=a[1],i[r-1]=a[2],i[r]=o}}},e.prototype.getImageShape=function(){var t=this.imageShape;return t||(t=this.container.addShape({type:"image",attrs:{}}),this.imageShape=t,t)},e.prototype.getShapeInfo=function(t){var e=this.getDrawCfg(t[0]),i=t.map((function(t){return t[de]}));return l(l({},e),{mappingData:t,data:i})},e}(Vc);function _g(t){var e,i,n,r,o=t.x,a=t.y,s=t.y0,l=t.size;V(a)?(e=a[0],i=a[1]):(e=s,i=a),V(o)?(n=o[0],r=o[1]):(n=o-l/2,r=o+l/2);var h=[{x:n,y:e},{x:n,y:i}];return h.push({x:r,y:i},{x:r,y:e}),h}function Yg(t,e){void 0===e&&(e=!0);var i=[],n=t[0];i.push(["M",n.x,n.y]);for(var r=1,o=t.length;r<o;r++)i.push(["L",t[r].x,t[r].y]);return e&&(i.push(["L",n.x,n.y]),i.push(["z"])),i}function Gg(t,e){var i=0,n=0,r=0,o=0;return V(t)?1===t.length?i=n=r=o=t[0]:2===t.length?(i=r=t[0],n=o=t[1]):3===t.length?(i=t[0],n=o=t[1],r=t[2]):(i=t[0],n=t[1],r=t[2],o=t[3]):i=n=r=o=t,i+n>e&&(n=e-(i=i?e/(1+n/i):0)),r+o>e&&(o=e-(r=r?e/(1+o/r):0)),[i||0,n||0,r||0,o||0]}function Xg(t,e,i){var n=[];if(i.isRect){var r=i.isTransposed?{x:i.start.x,y:e[0].y}:{x:e[0].x,y:i.start.y},o=i.isTransposed?{x:i.end.x,y:e[2].y}:{x:e[3].x,y:i.end.y},a=Ht(t,["background","style","radius"]);if(a){var s=i.isTransposed?Math.abs(e[0].y-e[2].y):e[2].x-e[1].x,l=i.isTransposed?i.getWidth():i.getHeight(),h=Gg(a,Math.min(s,l)),u=h[0],c=h[1],p=h[2],f=h[3];n.push(["M",r.x,o.y+u]),0!==u&&n.push(["A",u,u,0,0,1,r.x+u,o.y]),n.push(["L",o.x-c,o.y]),0!==c&&n.push(["A",c,c,0,0,1,o.x,o.y+c]),n.push(["L",o.x,r.y-p]),0!==p&&n.push(["A",p,p,0,0,1,o.x-p,r.y]),n.push(["L",r.x+f,r.y]),0!==f&&n.push(["A",f,f,0,0,1,r.x,r.y-f])}else n.push(["M",r.x,r.y]),n.push(["L",o.x,r.y]),n.push(["L",o.x,o.y]),n.push(["L",r.x,o.y]),n.push(["L",r.x,r.y]);n.push(["z"])}if(i.isPolar){var g=i.getCenter(),d=rh(t,i),y=d.startAngle,v=d.endAngle;if("theta"===i.type||i.isTransposed){var m=function(t){return Math.pow(t,2)};u=Math.sqrt(m(g.x-e[0].x)+m(g.y-e[0].y)),c=Math.sqrt(m(g.x-e[2].x)+m(g.y-e[2].y));n=ih(g.x,g.y,u,i.startAngle,i.endAngle,c)}else n=ih(g.x,g.y,i.getRadius(),y,v)}return n}function zg(t,e,i){var n=[];return z(e)?i?n.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",(t[2].x+t[3].x)/2,(t[2].y+t[3].y)/2],["Z"]):n.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",t[2].x,t[2].y],["L",t[3].x,t[3].y],["Z"]):n.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",e[1].x,e[1].y],["L",e[0].x,e[0].y],["Z"]),n}function Vg(t,e){return[e,t]}function Hg(t){var e=t.theme,i=t.coordinate,n=t.getXScale(),r=n.values,o=t.beforeMappingData,a=r.length,s=uh(t.coordinate),l=t.intervalPadding,h=t.dodgePadding,u=t.maxColumnWidth||e.maxColumnWidth,c=t.minColumnWidth||e.minColumnWidth,p=t.columnWidthRatio||e.columnWidthRatio,f=t.multiplePieWidthRatio||e.multiplePieWidthRatio,g=t.roseWidthRatio||e.roseWidthRatio;if(n.isLinear&&r.length>1){r.sort();var d=function(t,e){var i=t.length,n=t;et(n[0])&&(n=t.map((function(t){return e.translate(t)})));for(var r=n[1]-n[0],o=2;o<i;o++){var a=n[o]-n[o-1];r>a&&(r=a)}return r}(r,n);a=(n.max-n.min)/d,r.length>a&&(a=r.length)}var y=n.range,v=1/a,m=1;(i.isPolar?m=i.isTransposed&&a>1?f:g:(n.isLinear&&(v*=y[1]-y[0]),m=p),!z(l)&&l>=0)?v=(1-(a-1)*(l/s))/a:v*=m;if(t.getAdjust("dodge")){var x=function(t,e){if(e){var i=Z(t);return nt(i,e).length}return t.length}(o,t.getAdjust("dodge").dodgeBy);if(!z(h)&&h>=0)v=(v-h/s*(x-1))/x;else!z(l)&&l>=0?(v*=m,v/=x):v/=x;v=v>=0?v:0}if(!z(u)&&u>=0){var w=u/s;v>w&&(v=w)}if(!z(c)&&c>=0){var C=c/s;v<C&&(v=C)}return v}Dc("interval",{defaultShapeType:"rect",getDefaultPoints:function(t){return _g(t)}}),Rc("interval","rect",{draw:function(t,e){var i,n=pp(t,!1,!0),r=e,o=null==t?void 0:t.background;if(o){r=e.addGroup();var a=fp(t),h=Xg(t,this.parsePoints(t.points),this.coordinate);r.addShape("path",{attrs:l(l({},a),{path:h}),zIndex:-1,name:Mc})}i=n.radius&&this.coordinate.isRect?function(t,e,i){var n,r,o,a,l,h,u,c=s([],t,!0),p=c[0],f=c[1],g=c[2],d=c[3],y="number"==typeof i?Array(4).fill(i):i,v=y[0],m=y[1],x=y[2],w=y[3];e.isTransposed&&(f=(n=Vg(f,d))[0],d=n[1]),e.isReflect("y")&&(p=(r=Vg(p,f))[0],f=r[1],g=(o=Vg(g,d))[0],d=o[1]),e.isReflect("x")&&(p=(a=Vg(p,d))[0],d=a[1],f=(l=Vg(f,g))[0],g=l[1]);var C=[],b=function(t){return Math.abs(t)};return v=(h=Gg([v,m,x,w],Math.min(b(d.x-p.x),b(f.y-p.y))).map((function(t){return b(t)})))[0],m=h[1],x=h[2],w=h[3],e.isTransposed&&(v=(u=[w,v,m,x])[0],m=u[1],x=u[2],w=u[3]),p.y<f.y?(C.push(["M",d.x,d.y+x]),0!==x&&C.push(["A",x,x,0,0,0,d.x-x,d.y]),C.push(["L",p.x+w,p.y]),0!==w&&C.push(["A",w,w,0,0,0,p.x,p.y+w]),C.push(["L",f.x,f.y-v]),0!==v&&C.push(["A",v,v,0,0,0,f.x+v,f.y]),C.push(["L",g.x-m,g.y]),0!==m&&C.push(["A",m,m,0,0,0,g.x,g.y-m]),C.push(["L",d.x,d.y+x]),C.push(["z"])):d.x<p.x?(C.push(["M",g.x+m,g.y]),0!==m&&C.push(["A",m,m,0,0,0,g.x,g.y+m]),C.push(["L",d.x,d.y-x]),0!==x&&C.push(["A",x,x,0,0,0,d.x+x,d.y]),C.push(["L",p.x-w,p.y]),0!==w&&C.push(["A",w,w,0,0,0,p.x,p.y-w]),C.push(["L",f.x,f.y+v]),0!==v&&C.push(["A",v,v,0,0,0,f.x-v,f.y]),C.push(["L",g.x+m,g.y]),C.push(["z"])):(C.push(["M",f.x,f.y+v]),0!==v&&C.push(["A",v,v,0,0,1,f.x+v,f.y]),C.push(["L",g.x-m,g.y]),0!==m&&C.push(["A",m,m,0,0,1,g.x,g.y+m]),C.push(["L",d.x,d.y-x]),0!==x&&C.push(["A",x,x,0,0,1,d.x-x,d.y]),C.push(["L",p.x+w,p.y]),0!==w&&C.push(["A",w,w,0,0,1,p.x,p.y-w]),C.push(["L",f.x,f.y+v]),C.push(["z"])),C}(this.parsePoints(t.points),this.coordinate,n.radius):this.parsePath(function(t,e,i){var n=i.getWidth(),r=i.getHeight(),o="rect"===i.type,a=[],s=(t[2].x-t[1].x)/2,l=i.isTransposed?s*r/n:s*n/r;return"round"===e?(o?(a.push(["M",t[0].x,t[0].y+l]),a.push(["L",t[1].x,t[1].y-l]),a.push(["A",s,s,0,0,1,t[2].x,t[2].y-l]),a.push(["L",t[3].x,t[3].y+l]),a.push(["A",s,s,0,0,1,t[0].x,t[0].y+l])):(a.push(["M",t[0].x,t[0].y]),a.push(["L",t[1].x,t[1].y]),a.push(["A",s,s,0,0,1,t[2].x,t[2].y]),a.push(["L",t[3].x,t[3].y]),a.push(["A",s,s,0,0,1,t[0].x,t[0].y])),a.push(["z"])):a=Yg(t),a}(t.points,n.lineCap,this.coordinate));var u=r.addShape("path",{attrs:l(l({},n),{path:i}),name:"interval"});return o?r:u},getMarker:function(t){var e=t.color;return t.isInPolar?{symbol:"circle",style:{r:4.5,fill:e}}:{symbol:"square",style:{r:4,fill:e}}}});var Ng=function(t){function e(e){var i=t.call(this,e)||this;i.type="interval",i.shapeType="interval",i.generatePoints=!0;var n=e.background;return i.background=n,i}return r(e,t),e.prototype.createShapePointsCfg=function(e){var i,n=t.prototype.createShapePointsCfg.call(this,e),r=this.getAttribute("size");r?(i=this.getAttributeValues(r,e)[0],i/=uh(this.coordinate)):(this.defaultSize||(this.defaultSize=Hg(this)),i=this.defaultSize);return n.size=i,n},e.prototype.adjustScale=function(){t.prototype.adjustScale.call(this);var e=this.getYScale();if("theta"===this.coordinate.type)e.change({nice:!1,min:0,max:wh(e)});else{var i=this.scaleDefs,n=e.field,r=e.min,o=e.max;"time"!==e.type&&(r>0&&!Ht(i,[n,"min"])&&e.change({min:0}),o<=0&&!Ht(i,[n,"max"])&&e.change({max:0}))}},e.prototype.getDrawCfg=function(e){var i=t.prototype.getDrawCfg.call(this,e);return i.background=this.background,i},e}(Vc),Wg=function(t){function e(e){var i=t.call(this,e)||this;i.type="line";var n=e.sortable,r=void 0!==n&&n;return i.sortable=r,i}return r(e,t),e}(Pg),jg=["circle","square","bowtie","diamond","hexagon","triangle","triangle-down"];function qg(t,e,i,n,r){var o=pp(e,r,!r,"r"),a=t.parsePoints(e.points),s=a[0];if(e.isStack)s=a[1];else if(a.length>1){for(var h=i.addGroup(),u=0,c=a;u<c.length;u++){var p=c[u];h.addShape({type:"marker",attrs:l(l(l({},o),{symbol:ep[n]||n}),p)})}return h}return i.addShape({type:"marker",attrs:l(l(l({},o),{symbol:ep[n]||n}),s)})}Dc("point",{defaultShapeType:"hollow-circle",getDefaultPoints:function(t){return gp(t)}}),N(jg,(function(t){Rc("point","hollow-".concat(t),{draw:function(e,i){return qg(this,e,i,t,!0)},getMarker:function(e){var i=e.color;return{symbol:ep[t]||t,style:{r:4.5,stroke:i,fill:null}}}})}));var Ug=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="point",e.shapeType="point",e.generatePoints=!0,e}return r(e,t),e.prototype.getDrawCfg=function(e){var i=t.prototype.getDrawCfg.call(this,e);return l(l({},i),{isStack:!!this.getAdjust("stack")})},e}(Vc);Dc("polygon",{defaultShapeType:"polygon",getDefaultPoints:function(t){var e=[];return N(t.x,(function(i,n){var r=t.y[n];e.push({x:i,y:r})})),e}}),Rc("polygon","polygon",{draw:function(t,e){if(!Yt(t.points)){var i=pp(t,!0,!0),n=this.parsePath(function(t){for(var e=t[0],i=1,n=[["M",e.x,e.y]];i<t.length;){var r=t[i];r.x===t[i-1].x&&r.y===t[i-1].y||(n.push(["L",r.x,r.y]),r.x===e.x&&r.y===e.y&&i<t.length-1&&(e=t[i+1],n.push(["Z"]),n.push(["M",e.x,e.y]),i++)),i++}return Xt(ot(n),e)||n.push(["L",e.x,e.y]),n.push(["Z"]),n}(t.points));return e.addShape("path",{attrs:l(l({},i),{path:n}),name:"polygon"})}},getMarker:function(t){return{symbol:"square",style:{r:4,fill:t.color}}}});var Zg=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polygon",e.shapeType="polygon",e.generatePoints=!0,e}return r(e,t),e.prototype.createShapePointsCfg=function(e){var i,n=t.prototype.createShapePointsCfg.call(this,e),r=n.x,o=n.y;if(!V(r)||!V(o)){var a=this.getXScale(),s=this.getYScale(),l=.5/a.values.length,h=.5/s.values.length;a.isCategory&&s.isCategory?(r=[r-l,r-l,r+l,r+l],o=[o-h,o+h,o+h,o-h]):V(r)?(r=[(i=r)[0],i[0],i[1],i[1]],o=[o-h/2,o+h/2,o+h/2,o-h/2]):V(o)&&(o=[(i=o)[0],i[1],i[1],i[0]],r=[r-l/2,r-l/2,r+l/2,r+l/2]),n.x=r,n.y=o}return n},e}(Vc);Dc("schema",{defaultShapeType:""});var Qg=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="schema",e.shapeType="schema",e.generatePoints=!0,e}return r(e,t),e.prototype.createShapePointsCfg=function(e){var i,n=t.prototype.createShapePointsCfg.call(this,e),r=this.getAttribute("size");r?(i=this.getAttributeValues(r,e)[0],i/=uh(this.coordinate)):(this.defaultSize||(this.defaultSize=Hg(this)),i=this.defaultSize);return n.size=i,n},e}(Vc);Dc("violin",{defaultShapeType:"violin",getDefaultPoints:function(t){var e=t.size/2,i=[],n=function(t){if(!V(t))return[];var e=Q(t);return zt(t,(function(t){return t/e}))}(t._size);return N(t.y,(function(r,o){var a=n[o]*e,s=0===o,l=o===t.y.length-1;i.push({isMin:s,isMax:l,x:t.x-a,y:r}),i.unshift({isMin:s,isMax:l,x:t.x+a,y:r})})),i}}),Rc("violin","violin",{draw:function(t,e){var i=pp(t,!0,!0),n=this.parsePath(up(t.points));return e.addShape("path",{attrs:l(l({},i),{path:n}),name:"violin"})},getMarker:function(t){return{symbol:"circle",style:{r:4,fill:t.color}}}});var Kg=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="violin",e.shapeType="violin",e.generatePoints=!0,e}return r(e,t),e.prototype.createShapePointsCfg=function(e){var i,n=t.prototype.createShapePointsCfg.call(this,e),r=this.getAttribute("size");r?(i=this.getAttributeValues(r,e)[0],i/=uh(this.coordinate)):(this.defaultSize||(this.defaultSize=Hg(this)),i=this.defaultSize);return n.size=i,n._size=Ht(e[de],[this._sizeField]),n},e.prototype.initAttributes=function(){var e=this.attributeOption,i=e.size?e.size.fields[0]:this._sizeField?this._sizeField:"size";this._sizeField=i,delete e.size,t.prototype.initAttributes.call(this)},e}(Vc);function $g(t,e){return["C",1*t.x/2+1*e.x/2,t.y,1*t.x/2+1*e.x/2,e.y,e.x,e.y]}function Jg(t,e){var i=[];i.push({x:e.x,y:e.y}),i.push(t);var n=["Q"];return N(i,(function(t){n.push(t.x,t.y)})),n}Rc("area","line",{draw:function(t,e){var i=Eg(t,!0,!1,this);return e.addShape({type:"path",attrs:i,name:"area"})},getMarker:function(t){return{symbol:function(t,e,i){return void 0===i&&(i=5.5),[["M",t-i,e-4],["L",t+i,e-4],["L",t+i,e+4],["L",t-i,e+4],["Z"]]},style:{r:5,stroke:t.color,fill:null}}}}),Rc("area","smooth",{draw:function(t,e){var i=Eg(t,!1,!0,this,Fg(this.coordinate));return e.addShape({type:"path",attrs:i,name:"area"})},getMarker:function(t){return{symbol:function(t,e,i){return void 0===i&&(i=5.5),[["M",t-i,e-4],["L",t+i,e-4],["L",t+i,e+4],["L",t-i,e+4],["Z"]]},style:{r:5,fill:t.color}}}}),Rc("area","smooth-line",{draw:function(t,e){var i=Eg(t,!0,!0,this,Fg(this.coordinate));return e.addShape({type:"path",attrs:i,name:"area"})},getMarker:function(t){return{symbol:function(t,e,i){return void 0===i&&(i=5.5),[["M",t-i,e-4],["L",t+i,e-4],["L",t+i,e+4],["L",t-i,e+4],["Z"]]},style:{r:5,stroke:t.color,fill:null}}}}),Rc("edge","arc",{draw:function(t,e){var i,n=pp(t,!0,!1,"lineWidth"),r=t.points,o=r.length>2?"weight":"normal";if(t.isInCircle){var a={x:0,y:1};return"normal"===o?i=function(t,e,i){var n=Jg(e,i),r=[["M",t.x,t.y]];return r.push(n),r}(r[0],r[1],a):(n.fill=n.stroke,i=function(t,e){var i=Jg(t[1],e),n=Jg(t[3],e),r=[["M",t[0].x,t[0].y]];return r.push(n),r.push(["L",t[3].x,t[3].y]),r.push(["L",t[2].x,t[2].y]),r.push(i),r.push(["L",t[1].x,t[1].y]),r.push(["L",t[0].x,t[0].y]),r.push(["Z"]),r}(r,a)),i=this.parsePath(i),e.addShape("path",{attrs:l(l({},n),{path:i})})}if("normal"===o)return i=nh(((r=this.parsePoints(r))[1].x+r[0].x)/2,r[0].y,Math.abs(r[1].x-r[0].x)/2,Math.PI,2*Math.PI),e.addShape("path",{attrs:l(l({},n),{path:i})});var s=$g(r[1],r[3]),h=$g(r[2],r[0]);return i=[["M",r[0].x,r[0].y],["L",r[1].x,r[1].y],s,["L",r[3].x,r[3].y],["L",r[2].x,r[2].y],h,["Z"]],i=this.parsePath(i),n.fill=n.stroke,e.addShape("path",{attrs:l(l({},n),{path:i})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}}),Rc("edge","smooth",{draw:function(t,e){var i=pp(t,!0,!1,"lineWidth"),n=t.points,r=this.parsePath(function(t,e){var i=$g(t,e),n=[["M",t.x,t.y]];return n.push(i),n}(n[0],n[1]));return e.addShape("path",{attrs:l(l({},i),{path:r})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}});var td=1/3;Rc("edge","vhv",{draw:function(t,e){var i=pp(t,!0,!1,"lineWidth"),n=t.points,r=this.parsePath(function(t,e){var i=[];i.push({x:t.x,y:t.y*(1-td)+e.y*td}),i.push({x:e.x,y:t.y*(1-td)+e.y*td}),i.push(e);var n=[["M",t.x,t.y]];return N(i,(function(t){n.push(["L",t.x,t.y])})),n}(n[0],n[1]));return e.addShape("path",{attrs:l(l({},i),{path:r})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}}),Rc("interval","funnel",{getPoints:function(t){return t.size=2*t.size,_g(t)},draw:function(t,e){var i=pp(t,!1,!0),n=this.parsePath(zg(t.points,t.nextPoints,!1));return e.addShape("path",{attrs:l(l({},i),{path:n}),name:"interval"})},getMarker:function(t){return{symbol:"square",style:{r:4,fill:t.color}}}}),Rc("interval","hollow-rect",{draw:function(t,e){var i=pp(t,!0,!1),n=e,r=null==t?void 0:t.background;if(r){n=e.addGroup();var o=fp(t),a=Xg(t,this.parsePoints(t.points),this.coordinate);n.addShape("path",{attrs:l(l({},o),{path:a}),zIndex:-1,name:Mc})}var s=this.parsePath(Yg(t.points)),h=n.addShape("path",{attrs:l(l({},i),{path:s}),name:"interval"});return r?n:h},getMarker:function(t){var e=t.color;return t.isInPolar?{symbol:"circle",style:{r:4.5,stroke:e,fill:null}}:{symbol:"square",style:{r:4,stroke:e,fill:null}}}}),Rc("interval","line",{getPoints:function(t){return i=(e=t).x,n=e.y,r=e.y0,V(n)?n.map((function(t,e){return{x:V(i)?i[e]:i,y:t}})):[{x:i,y:r},{x:i,y:n}];var e,i,n,r},draw:function(t,e){var i=pp(t,!0,!1,"lineWidth"),n=sh(l({},i),["fill"]),r=this.parsePath(Yg(t.points,!1));return e.addShape("path",{attrs:l(l({},n),{path:r}),name:"interval"})},getMarker:function(t){return{symbol:function(t,e,i){return[["M",t,e-i],["L",t,e+i]]},style:{r:5,stroke:t.color}}}}),Rc("interval","pyramid",{getPoints:function(t){return t.size=2*t.size,_g(t)},draw:function(t,e){var i=pp(t,!1,!0),n=this.parsePath(zg(t.points,t.nextPoints,!0));return e.addShape("path",{attrs:l(l({},i),{path:n}),name:"interval"})},getMarker:function(t){return{symbol:"square",style:{r:4,fill:t.color}}}}),Rc("interval","tick",{getPoints:function(t){return function(t){var e,i,n=t.x,r=t.y,o=t.y0,a=t.size;V(r)?(e=r[0],i=r[1]):(e=o,i=r);var s=n+a/2,l=n-a/2;return[{x:n,y:e},{x:n,y:i},{x:l,y:e},{x:s,y:e},{x:l,y:i},{x:s,y:i}]}(t)},draw:function(t,e){var i,n=pp(t,!0,!1),r=this.parsePath([["M",(i=t.points)[0].x,i[0].y],["L",i[1].x,i[1].y],["M",i[2].x,i[2].y],["L",i[3].x,i[3].y],["M",i[4].x,i[4].y],["L",i[5].x,i[5].y]]);return e.addShape("path",{attrs:l(l({},n),{path:r}),name:"interval"})},getMarker:function(t){return{symbol:function(t,e,i){return[["M",t-i/2,e-i],["L",t+i/2,e-i],["M",t,e-i],["L",t,e+i],["M",t-i/2,e+i],["L",t+i/2,e+i]]},style:{r:5,stroke:t.color}}}});function ed(t,e){var i=hp(t.points,t.connectNulls,t.showSinglePoint),n=[];return N(i,(function(t){var i=function(t,e){var i=[];return N(t,(function(n,r){var o=t[r+1];if(i.push(n),o){var a=function(t,e,i){var n,r=t.x,o=t.y,a=e.x,s=e.y;switch(i){case"hv":n=[{x:a,y:o}];break;case"vh":n=[{x:r,y:s}];break;case"hvh":var l=(a+r)/2;n=[{x:l,y:o},{x:l,y:s}];break;case"vhv":var h=(o+s)/2;n=[{x:r,y:h},{x:a,y:h}]}return n}(n,o,e);i=i.concat(a)}})),i}(t,e);n=n.concat(function(t){return t.map((function(t,e){return 0===e?["M",t.x,t.y]:["L",t.x,t.y]}))}(i))})),l(l({},pp(t,!0,!1,"lineWidth")),{path:n})}function id(t){var e=V(t)?t:[t],i=e[0],n=e[e.length-1],r=e.length>1?e[1]:i;return{min:i,max:n,min1:r,max1:e.length>3?e[3]:n,median:e.length>2?e[2]:r}}function nd(t,e,i){var n,r=i/2;if(V(e)){var o=id(e),a=o.min,s=o.max,l=o.median,h=o.min1,u=t-r,c=t+r;n=[[u,s],[c,s],[t,s],[t,p=o.max1],[u,h],[u,p],[c,p],[c,h],[t,h],[t,a],[u,a],[c,a],[u,l],[c,l]]}else{e=z(e)?.5:e;var p,f=id(t),g=(a=f.min,s=f.max,l=f.median,e-r),d=e+r;n=[[a,g],[a,d],[a,e],[h=f.min1,e],[h,g],[h,d],[p=f.max1,d],[p,g],[p,e],[s,e],[s,g],[s,d],[l,g],[l,d]]}return n.map((function(t){return{x:t[0],y:t[1]}}))}function rd(t){var e=(V(t)?t:[t]).sort((function(t,e){return e-t}));return function(t,e,i){if(et(t))return t.padEnd(e,i);if(V(t)){var n=t.length;if(n<e)for(var r=e-n,o=0;o<r;o++)t.push(i)}return t}(e,4,e[e.length-1])}function od(t,e,i){var n=rd(e);return[{x:t,y:n[0]},{x:t,y:n[1]},{x:t-i/2,y:n[2]},{x:t-i/2,y:n[1]},{x:t+i/2,y:n[1]},{x:t+i/2,y:n[2]},{x:t,y:n[2]},{x:t,y:n[3]}]}function ad(t,e){var i=Math.abs(t[0].x-t[2].x),n=Math.abs(t[0].y-t[2].y),r=Math.min(i,n);return e&&(r=ut(e,0,Math.min(i,n))),r/=2,{x:(t[0].x+t[2].x)/2-r,y:(t[0].y+t[2].y)/2-r,width:2*r,height:2*r}}N(["hv","vh","hvh","vhv"],(function(t){Rc("line",t,{draw:function(e,i){var n=ed(e,t);return i.addShape({type:"path",attrs:n,name:"line"})},getMarker:function(e){return yp(e,t)}})})),N(["cross","tick","plus","hyphen","line"],(function(t){Rc("point",t,{draw:function(e,i){return qg(this,e,i,t,!0)},getMarker:function(e){var i=e.color;return{symbol:ep[t],style:{r:4.5,stroke:i,fill:null}}}})})),Rc("point","image",{draw:function(t,e){var i=pp(t,!1,!1,"r").r,n=this.parsePoints(t.points),r=n[0];if(t.isStack)r=n[1];else if(n.length>1){for(var o=e.addGroup(),a=0,s=n;a<s.length;a++){var l=s[a];o.addShape("image",{attrs:{x:l.x-i/2,y:l.y-i,width:i,height:i,img:t.shape[1]}})}return o}return e.addShape("image",{attrs:{x:r.x-i/2,y:r.y-i,width:i,height:i,img:t.shape[1]}})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}}),N(jg,(function(t){Rc("point",t,{draw:function(e,i){return qg(this,e,i,t,!1)},getMarker:function(e){var i=e.color;return{symbol:ep[t]||t,style:{r:4.5,fill:i}}}})})),Rc("schema","box",{getPoints:function(t){return nd(t.x,t.y,t.size)},draw:function(t,e){var i,n=pp(t,!0,!1),r=this.parsePath([["M",(i=t.points)[0].x,i[0].y],["L",i[1].x,i[1].y],["M",i[2].x,i[2].y],["L",i[3].x,i[3].y],["M",i[4].x,i[4].y],["L",i[5].x,i[5].y],["L",i[6].x,i[6].y],["L",i[7].x,i[7].y],["L",i[4].x,i[4].y],["Z"],["M",i[8].x,i[8].y],["L",i[9].x,i[9].y],["M",i[10].x,i[10].y],["L",i[11].x,i[11].y],["M",i[12].x,i[12].y],["L",i[13].x,i[13].y]]);return e.addShape("path",{attrs:l(l({},n),{path:r,name:"schema"})})},getMarker:function(t){return{symbol:function(t,e,i){var n=nd(t,[e-6,e-3,e,e+3,e+6],i);return[["M",n[0].x+1,n[0].y],["L",n[1].x-1,n[1].y],["M",n[2].x,n[2].y],["L",n[3].x,n[3].y],["M",n[4].x,n[4].y],["L",n[5].x,n[5].y],["L",n[6].x,n[6].y],["L",n[7].x,n[7].y],["L",n[4].x,n[4].y],["Z"],["M",n[8].x,n[8].y],["L",n[9].x,n[9].y],["M",n[10].x+1,n[10].y],["L",n[11].x-1,n[11].y],["M",n[12].x,n[12].y],["L",n[13].x,n[13].y]]},style:{r:6,lineWidth:1,stroke:t.color}}}}),Rc("schema","candle",{getPoints:function(t){return od(t.x,t.y,t.size)},draw:function(t,e){var i,n=pp(t,!0,!0),r=this.parsePath([["M",(i=t.points)[0].x,i[0].y],["L",i[1].x,i[1].y],["M",i[2].x,i[2].y],["L",i[3].x,i[3].y],["L",i[4].x,i[4].y],["L",i[5].x,i[5].y],["Z"],["M",i[6].x,i[6].y],["L",i[7].x,i[7].y]]);return e.addShape("path",{attrs:l(l({},n),{path:r,name:"schema"})})},getMarker:function(t){var e=t.color;return{symbol:function(t,e,i){var n=od(t,[e+7.5,e+3,e-3,e-7.5],i);return[["M",n[0].x,n[0].y],["L",n[1].x,n[1].y],["M",n[2].x,n[2].y],["L",n[3].x,n[3].y],["L",n[4].x,n[4].y],["L",n[5].x,n[5].y],["Z"],["M",n[6].x,n[6].y],["L",n[7].x,n[7].y]]},style:{lineWidth:1,stroke:e,fill:e,r:6}}}}),Rc("polygon","square",{draw:function(t,e){if(!Yt(t.points)){var i=pp(t,!0,!0),n=this.parsePoints(t.points);return e.addShape("rect",{attrs:l(l({},i),ad(n,t.size)),name:"polygon"})}},getMarker:function(t){return{symbol:"square",style:{r:4,fill:t.color}}}}),Rc("violin","smooth",{draw:function(t,e){var i=pp(t,!0,!0),n=this.parsePath(cp(t.points));return e.addShape("path",{attrs:l(l({},i),{path:n})})},getMarker:function(t){return{symbol:"circle",style:{stroke:null,r:4,fill:t.color}}}}),Rc("violin","hollow",{draw:function(t,e){var i=pp(t,!0,!1),n=this.parsePath(up(t.points));return e.addShape("path",{attrs:l(l({},i),{path:n})})},getMarker:function(t){return{symbol:"circle",style:{r:4,fill:null,stroke:t.color}}}}),Rc("violin","hollow-smooth",{draw:function(t,e){var i=pp(t,!0,!1),n=this.parsePath(cp(t.points));return e.addShape("path",{attrs:l(l({},i),{path:n})})},getMarker:function(t){return{symbol:"circle",style:{r:4,fill:null,stroke:t.color}}}});var sd=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getLabelValueDir=function(t){var e=t.points;return e[0].y<=e[2].y?1:-1},e.prototype.getLabelOffsetPoint=function(e,i,n,r){var o,a=t.prototype.getLabelOffsetPoint.call(this,e,i,n),s=this.getCoordinate(),h=s.isTransposed?"x":"y",u=this.getLabelValueDir(e.mappingData);return a=l(l({},a),((o={})[h]=a[h]*u,o)),s.isReflect("x")&&(a=l(l({},a),{x:-1*a.x})),s.isReflect("y")&&(a=l(l({},a),{y:-1*a.y})),a},e.prototype.getThemedLabelCfg=function(t){var e=this.geometry,i=this.getDefaultLabelCfg(),n=e.theme;return Dt({},i,n.labels,"middle"===t.position?{offset:0}:{},t)},e.prototype.setLabelPosition=function(t,e,i,n){var r,o,a,s,l=this.getCoordinate(),h=l.isTransposed,u=e.points,c=l.convert(u[0]),p=l.convert(u[2]),f=this.getLabelValueDir(e),g=V(e.shape)?e.shape[0]:e.shape;if("funnel"===g||"pyramid"===g){var d=Ht(e,"nextPoints"),y=Ht(e,"points");if(d){var v=l.convert(y[0]),m=l.convert(y[1]),x=l.convert(d[0]),w=l.convert(d[1]);h?(r=Math.min(x.y,v.y),a=Math.max(x.y,v.y),o=(m.x+w.x)/2,s=(v.x+x.x)/2):(r=Math.min((m.y+w.y)/2,(v.y+x.y)/2),a=Math.max((m.y+w.y)/2,(v.y+x.y)/2),o=w.x,s=v.x)}else r=Math.min(p.y,c.y),a=Math.max(p.y,c.y),o=p.x,s=c.x}else r=Math.min(p.y,c.y),a=Math.max(p.y,c.y),o=p.x,s=c.x;switch(n){case"right":t.x=o,t.y=(r+a)/2,t.textAlign=Ht(t,"textAlign",f>0?"left":"right");break;case"left":t.x=s,t.y=(r+a)/2,t.textAlign=Ht(t,"textAlign",f>0?"left":"right");break;case"bottom":h&&(t.x=(o+s)/2),t.y=a,t.textAlign=Ht(t,"textAlign","center"),t.textBaseline=Ht(t,"textBaseline",f>0?"bottom":"top");break;case"middle":h&&(t.x=(o+s)/2),t.y=(r+a)/2,t.textAlign=Ht(t,"textAlign","center"),t.textBaseline=Ht(t,"textBaseline","middle");break;case"top":h&&(t.x=(o+s)/2),t.y=r,t.textAlign=Ht(t,"textAlign","center"),t.textBaseline=Ht(t,"textBaseline",f>0?"bottom":"top")}},e}(Jc),ld=Math.PI/2,hd=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getLabelOffset=function(t){var e=this.getCoordinate(),i=0;if(pt(t))i=t;else if(et(t)&&-1!==t.indexOf("%")){var n=e.getRadius();e.innerRadius>0&&(n*=1-e.innerRadius),i=.01*parseFloat(t)*n}return i},e.prototype.getLabelItems=function(e){var i=t.prototype.getLabelItems.call(this,e),n=this.geometry.getYScale();return zt(i,(function(t){if(t&&n){var e=n.scale(Ht(t.data,n.field));return l(l({},t),{percent:e})}return t}))},e.prototype.getLabelAlign=function(t){var e,i=this.getCoordinate();if(t.labelEmit)e=t.angle<=Math.PI/2&&t.angle>=-Math.PI/2?"left":"right";else if(i.isTransposed){var n=i.getCenter(),r=t.offset;e=Math.abs(t.x-n.x)<1?"center":t.angle>Math.PI||t.angle<=0?r>0?"left":"right":r>0?"right":"left"}else e="center";return e},e.prototype.getLabelPoint=function(t,e,i){var n,r=1,o=t.content[i];this.isToMiddle(e)?n=this.getMiddlePoint(e.points):(1===t.content.length&&0===i?i=1:0===i&&(r=-1),n=this.getArcPoint(e,i));var a=t.offset*r,s=this.getPointAngle(n),l=t.labelEmit,h=this.getCirclePoint(s,a,n,l);return 0===h.r?h.content="":(h.content=o,h.angle=s,h.color=e.color),h.rotate=t.autoRotate?this.getLabelRotate(s,a,l):t.rotate,h.start={x:n.x,y:n.y},h},e.prototype.getArcPoint=function(t,e){return void 0===e&&(e=0),V(t.x)||V(t.y)?{x:V(t.x)?t.x[e]:t.x,y:V(t.y)?t.y[e]:t.y}:{x:t.x,y:t.y}},e.prototype.getPointAngle=function(t){return fh(this.getCoordinate(),t)},e.prototype.getCirclePoint=function(t,e,i,n){var r=this.getCoordinate(),o=r.getCenter(),a=ch(r,i);if(0===a)return l(l({},o),{r:a});var s=t;r.isTransposed&&a>e&&!n?s=t+2*Math.asin(e/(2*a)):a+=e;return{x:o.x+a*Math.cos(s),y:o.y+a*Math.sin(s),r:a}},e.prototype.getLabelRotate=function(t,e,i){var n=t+ld;return i&&(n-=ld),n&&(n>ld?n-=Math.PI:n<-ld&&(n+=Math.PI)),n},e.prototype.getMiddlePoint=function(t){var e=this.getCoordinate(),i=t.length,n={x:0,y:0};return N(t,(function(t){n.x+=t.x,n.y+=t.y})),n.x/=i,n.y/=i,n=e.convert(n)},e.prototype.isToMiddle=function(t){return t.x.length>2},e}(Jc),ud=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.defaultLayout="distribute",e}return r(e,t),e.prototype.getDefaultLabelCfg=function(e,i){var n=t.prototype.getDefaultLabelCfg.call(this,e,i);return Dt({},n,Ht(this.geometry.theme,"pieLabels",{}))},e.prototype.getLabelOffset=function(e){return t.prototype.getLabelOffset.call(this,e)||0},e.prototype.getLabelRotate=function(t,e,i){var n;return e<0&&((n=t)>Math.PI/2&&(n-=Math.PI),n<-Math.PI/2&&(n+=Math.PI)),n},e.prototype.getLabelAlign=function(t){var e,i=this.getCoordinate().getCenter();return e=t.angle<=Math.PI/2&&t.x>=i.x?"left":"right",t.offset<=0&&(e="right"===e?"left":"right"),e},e.prototype.getArcPoint=function(t){return t},e.prototype.getPointAngle=function(t){var e,i=this.getCoordinate(),n={x:V(t.x)?t.x[0]:t.x,y:t.y[0]},r={x:V(t.x)?t.x[1]:t.x,y:t.y[1]},o=fh(i,n);if(t.points&&t.points[0].y===t.points[1].y)e=o;else{var a=fh(i,r);o>=a&&(a+=2*Math.PI),e=o+(a-o)/2}return e},e.prototype.getCirclePoint=function(t,e){var i=this.getCoordinate(),n=i.getCenter(),r=i.getRadius()+e;return l(l({},eh(n.x,n.y,r,t)),{angle:t,r:r})},e}(hd);function cd(t,e,i){var n=t.filter((function(t){return!t.invisible}));n.sort((function(t,e){return t.y-e.y}));var r,o=!0,a=i.minY,s=i.maxY,l=Math.abs(a-s),h=0,u=Number.MIN_VALUE,c=n.map((function(t){return t.y>h&&(h=t.y),t.y<u&&(u=t.y),{content:t.content,size:e,targets:[t.y-a],pos:null}}));for(u-=a,h-a>l&&(l=h-a);o;)for(c.forEach((function(t){var e=(Math.min.apply(u,t.targets)+Math.max.apply(u,t.targets))/2;t.pos=Math.min(Math.max(u,e-t.size/2),l-t.size),t.pos=Math.max(0,t.pos)})),o=!1,r=c.length;r--;)if(r>0){var p=c[r-1],f=c[r];p.pos+p.size>f.pos&&(p.size+=f.size,p.targets=p.targets.concat(f.targets),p.pos+p.size>l&&(p.pos=l-p.size),c.splice(r,1),o=!0)}r=0,c.forEach((function(t){var i=a+e/2;t.targets.forEach((function(){n[r].y=t.pos+i,i+=e,r++}))}))}var pd=function(){function t(t){void 0===t&&(t={}),this.bitmap={};var e=t.xGap,i=void 0===e?1:e,n=t.yGap,r=void 0===n?8:n;this.xGap=i,this.yGap=r}return t.prototype.hasGap=function(t){for(var e=!0,i=this.bitmap,n=Math.round(t.minX),r=Math.round(t.maxX),o=Math.round(t.minY),a=Math.round(t.maxY),s=n;s<=r;s+=1)if(i[s]){if(s===n||s===r){for(var l=o;l<=a;l++)if(i[s][l]){e=!1;break}}else if(i[s][o]||i[s][a]){e=!1;break}}else i[s]={};return e},t.prototype.fillGap=function(t){for(var e=this.bitmap,i=Math.round(t.minX),n=Math.round(t.maxX),r=Math.round(t.minY),o=Math.round(t.maxY),a=i;a<=n;a+=1)e[a]||(e[a]={});for(a=i;a<=n;a+=this.xGap){for(var s=r;s<=o;s+=this.yGap)e[a][s]=!0;e[a][o]=!0}if(1!==this.yGap)for(a=r;a<=o;a+=1)e[i][a]=!0,e[n][a]=!0;if(1!==this.xGap)for(a=i;a<=n;a+=1)e[a][r]=!0,e[a][o]=!0},t.prototype.destroy=function(){this.bitmap={}},t}();function fd(t,e,i,n){var r=t.getCanvasBBox(),o=r.width,a=r.height,s={x:e,y:i,textAlign:"center"};switch(n){case 0:s.y-=a+1,s.x+=1,s.textAlign="left";break;case 1:s.y-=a+1,s.x-=1,s.textAlign="right";break;case 2:s.y+=a+1,s.x-=1,s.textAlign="right";break;case 3:s.y+=a+1,s.x+=1,s.textAlign="left";break;case 5:s.y-=2*a+2;break;case 6:s.y+=2*a+2;break;case 7:s.x+=o+1,s.textAlign="left";break;case 8:s.x-=o+1,s.textAlign="right"}return t.attr(s),t.getCanvasBBox()}var gd=Ri;function dd(t){if(t.length>4)return[];var e=function(t,e){return[e.x-t.x,e.y-t.y]};return[e(t[0],t[1]),e(t[1],t[2])]}function yd(t,e,i){void 0===e&&(e=0),void 0===i&&(i={x:0,y:0});var n=t.x,r=t.y;return{x:(n-i.x)*Math.cos(-e)+(r-i.y)*Math.sin(-e)+i.x,y:(i.x-n)*Math.sin(-e)+(r-i.y)*Math.cos(-e)+i.y}}function vd(t){var e=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],i=t.rotation;return i?[yd(e[0],i,e[0]),yd(e[1],i,e[0]),yd(e[2],i,e[0]),yd(e[3],i,e[0])]:e}function md(t,e){if(t.length>4)return{min:0,max:0};var i=[];return t.forEach((function(t){i.push(gd([t.x,t.y],e))})),{min:Math.min.apply(Math,i),max:Math.max.apply(Math,i)}}function xd(t,e){return t.max>e.min&&t.min<e.max}function wd(t){return pt(t)&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0}function Cd(t){return Object.values(t).every(wd)}function bd(t,e){if(!Cd(t)||!Cd(e))return!1;if(!t.rotation&&!e.rotation)return function(t,e,i){return void 0===i&&(i=0),!(e.x>t.x+t.width+i||e.x+e.width<t.x-i||e.y>t.y+t.height+i||e.y+e.height<t.y-i)}(t,e);for(var i=vd(t),n=vd(e),r=s(s([],dd(i),!0),dd(n),!0),o=0;o<r.length;o++){var a=r[o];if(!xd(md(i,a),md(n,a)))return!1}return!0}var Md,Sd={"#5B8FF9":!0};function Ad(t,e,i){return!!t.getAdjust("stack")||e.every((function(e,n){var r=i[n];return function(t,e,i){var n=t.coordinate,r=jc(e),o=hh.fromObject(r.getCanvasBBox()),a=hh.fromObject(i.getBBox());return n.isTransposed?a.height>=o.height:a.width>=o.width}(t,e,r)}))}function Td(t,e,i){return t.some((function(t){return i(t,e)}))}function Bd(t,e){return Td(t,e,(function(t,e){var i,n,r,o=jc(t),a=jc(e);return i=o.getCanvasBBox(),n=a.getCanvasBBox(),void 0===(r=2)&&(r=0),Math.max(0,Math.min(i.x+i.width+r,n.x+n.width+r)-Math.max(i.x-r,n.x-r))*Math.max(0,Math.min(i.y+i.height+r,n.y+n.height+r)-Math.max(i.y-r,n.y-r))>0}))}function kd(t,e,i){return t.some((function(t){return i(t,e)}))}function Ld(t,e){return kd(t,e,(function(t,e){var i,n,r,o=jc(t),a=jc(e);return i=o.getCanvasBBox(),n=a.getCanvasBBox(),void 0===(r=2)&&(r=0),Math.max(0,Math.min(i.x+i.width+r,n.x+n.width+r)-Math.max(i.x-r,n.x-r))*Math.max(0,Math.min(i.y+i.height+r,n.y+n.height+r)-Math.max(i.y-r,n.y-r))>0}))}function Pd(){return Md||(Md=document.createElement("canvas").getContext("2d")),Md}var Id=Ft((function(t,e){void 0===e&&(e={});var i=e.fontSize,n=e.fontFamily,r=e.fontWeight,o=e.fontStyle,a=e.fontVariant,s=Pd();return s.font=[o,a,r,"".concat(i,"px"),n].join(" "),s.measureText(et(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),s([t],mt(e),!0).join("")}));function Ed(t,e,i,n,r){var o,a,s=i.start,l=i.end,h=i.getWidth(),u=i.getHeight();"y"===r?(o=s.x+h/2,a=n.y<s.y?n.y:s.y):"x"===r?(o=n.x>s.x?n.x:s.x,a=s.y+u/2):"xy"===r&&(i.isPolar?(o=i.getCenter().x,a=i.getCenter().y):(o=(s.x+l.x)/2,a=(s.y+l.y)/2));var c=function(t,e,i){var n,r=e[0],o=e[1];return t.applyToMatrix([r,o,1]),"x"===i?(t.setMatrix(Hi(t.getMatrix(),[["t",-r,-o],["s",.01,1],["t",r,o]])),n=Hi(t.getMatrix(),[["t",-r,-o],["s",100,1],["t",r,o]])):"y"===i?(t.setMatrix(Hi(t.getMatrix(),[["t",-r,-o],["s",1,.01],["t",r,o]])),n=Hi(t.getMatrix(),[["t",-r,-o],["s",1,100],["t",r,o]])):"xy"===i&&(t.setMatrix(Hi(t.getMatrix(),[["t",-r,-o],["s",.01,.01],["t",r,o]])),n=Hi(t.getMatrix(),[["t",-r,-o],["s",100,100],["t",r,o]])),n}(t,[o,a],r);t.animate({matrix:c},e)}function Fd(t,e){var i,n=Np(t,e),r=n.startAngle,o=n.endAngle;return!ft(r,.5*-Math.PI)&&r<.5*-Math.PI&&(r+=2*Math.PI),!ft(o,.5*-Math.PI)&&o<.5*-Math.PI&&(o+=2*Math.PI),0===e[5]&&(r=(i=[o,r])[0],o=i[1]),ft(r,1.5*Math.PI)&&(r=-.5*Math.PI),ft(o,-.5*Math.PI)&&(o=1.5*Math.PI),{startAngle:r,endAngle:o}}function Od(t){var e;return"M"===t[0]||"L"===t[0]?e=[t[1],t[2]]:"a"!==t[0]&&"A"!==t[0]&&"C"!==t[0]||(e=[t[t.length-2],t[t.length-1]]),e}function Dd(t){var e,i,n,r=t.filter((function(t){return"A"===t[0]||"a"===t[0]}));if(0===r.length)return{startAngle:0,endAngle:0,radius:0,innerRadius:0};var o=r[0],a=r.length>1?r[1]:r[0],s=t.indexOf(o),l=t.indexOf(a),h=Od(t[s-1]),u=Od(t[l-1]),c=Fd(h,o),p=c.startAngle,f=c.endAngle,g=Fd(u,a),d=g.startAngle,y=g.endAngle;ft(p,d)&&ft(f,y)?(i=p,n=f):(i=Math.min(p,d),n=Math.max(f,y));var v=o[1],m=r[r.length-1][1];return v<m?(v=(e=[m,v])[0],m=e[1]):v===m&&(m=0),{startAngle:i,endAngle:n,radius:v,innerRadius:m}}function Rd(t,e,i){if(t.isGroup())N(t.getChildren(),(function(t){Rd(t,e,i)}));else{var n=t.getBBox(),r=(n.minX+n.maxX)/2,o=(n.minY+n.maxY)/2;if(t.applyToMatrix([r,o,1]),"zoomIn"===i){var a=Hi(t.getMatrix(),[["t",-r,-o],["s",.01,.01],["t",r,o]]);t.setMatrix(a),t.animate({matrix:Hi(t.getMatrix(),[["t",-r,-o],["s",100,100],["t",r,o]])},e)}else t.animate({matrix:Hi(t.getMatrix(),[["t",-r,-o],["s",.01,.01],["t",r,o]])},l(l({},e),{callback:function(){t.remove(!0)}}))}}function _d(t){return[Jt.TOP,Jt.BOTTOM].includes(t)?{offsetX:0,offsetY:t===Jt.TOP?-8:8,style:{textAlign:"center",textBaseline:t===Jt.TOP?"bottom":"top"}}:[Jt.LEFT,Jt.RIGHT].includes(t)?{offsetX:t===Jt.LEFT?-8:8,offsetY:0,style:{textAlign:t===Jt.LEFT?"right":"left",textBaseline:"middle",rotate:Math.PI/2}}:{}}function Yd(t,e,i){return{x:t.x+e*Math.cos(i),y:t.y+e*Math.sin(i)}}var Gd=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultCfg=function(){return Dt({},t.prototype.getDefaultCfg.call(this),{type:"circle",showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this)})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.getRegion=function(t,e){var i=2*Math.PI/t,n=-1*Math.PI/2+i*e,r=.5/(1+1/Math.sin(i/2)),o=Yd({x:.5,y:.5},.5-r,n),a=5*Math.PI/4,s=1*Math.PI/4;return{start:Yd(o,r,a),end:Yd(o,r,s)}},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.generateFacets=function(t){var e=this,i=this.cfg,n=i.fields,r=i.type,o=n[0];if(!o)throw new Error("No `fields` specified!");var a=this.getFieldValues(t,o),s=a.length,l=[];return a.forEach((function(i,n){var h=[{field:o,value:i,values:a}],u=_(t,e.getFacetDataFilter(h)),c={type:r,data:u,region:e.getRegion(s,n),columnValue:i,columnField:o,columnIndex:n,columnValuesLength:s,rowValue:null,rowField:null,rowIndex:0,rowValuesLength:1};l.push(c)})),l},e.prototype.getXAxisOption=function(t,e,i,n){return i},e.prototype.getYAxisOption=function(t,e,i,n){return i},e.prototype.renderTitle=function(){var t=this;N(this.facets,(function(e){var i=e.columnValue,n=e.view,r=Ht(t.cfg.title,"formatter"),o=Dt({position:["50%","0%"],content:r?r(i):i},_d(Jt.TOP),t.cfg.title);n.annotation().text(o)}))},e}(Ph),Xd=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultCfg=function(){return Dt({},t.prototype.getDefaultCfg.call(this),{type:"list",cols:null,showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this)})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.generateFacets=function(t){var e=this,i=this.cfg.fields,n=this.cfg.cols,r=i[0];if(!r)throw new Error("No `fields` specified!");var o=this.getFieldValues(t,r),a=o.length;n=n||a;var s=this.getPageCount(a,n),l=[];return o.forEach((function(i,h){var u=e.getRowCol(h,n),c=u.row,p=u.col,f=[{field:r,value:i,values:o}],g=_(t,e.getFacetDataFilter(f)),d={type:e.cfg.type,data:g,region:e.getRegion(s,n,p,c),columnValue:i,rowValue:i,columnField:r,rowField:null,columnIndex:p,rowIndex:c,columnValuesLength:n,rowValuesLength:s,total:a};l.push(d)})),l},e.prototype.getXAxisOption=function(t,e,i,n){return n.rowIndex!==n.rowValuesLength-1&&n.columnValuesLength*n.rowIndex+n.columnIndex+1+n.columnValuesLength<=n.total?l(l({},i),{label:null,title:null}):i},e.prototype.getYAxisOption=function(t,e,i,n){return 0!==n.columnIndex?l(l({},i),{title:null,label:null}):i},e.prototype.renderTitle=function(){var t=this;N(this.facets,(function(e){var i=e.columnValue,n=e.view,r=Ht(t.cfg.title,"formatter"),o=Dt({position:["50%","0%"],content:r?r(i):i},_d(Jt.TOP),t.cfg.title);n.annotation().text(o)}))},e.prototype.getPageCount=function(t,e){return Math.floor((t+e-1)/e)},e.prototype.getRowCol=function(t,e){return{row:Math.floor(t/e),col:t%e}},e}(Ph),zd=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultCfg=function(){return Dt({},t.prototype.getDefaultCfg.call(this),{type:"matrix",showTitle:!1,columnTitle:l({},t.prototype.getDefaultTitleCfg.call(this)),rowTitle:l({},t.prototype.getDefaultTitleCfg.call(this))})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.generateFacets=function(t){for(var e=this.cfg,i=e.fields,n=e.type,r=i.length,o=r,a=[],s=0;s<o;s++)for(var l=i[s],h=0;h<r;h++){var u=i[h],c={type:n,data:t,region:this.getRegion(r,o,s,h),columnValue:l,rowValue:u,columnField:l,rowField:u,columnIndex:s,rowIndex:h,columnValuesLength:o,rowValuesLength:r};a.push(c)}return a},e.prototype.getXAxisOption=function(t,e,i,n){return n.rowIndex!==n.rowValuesLength-1?l(l({},i),{label:null,title:null}):i},e.prototype.getYAxisOption=function(t,e,i,n){return 0!==n.columnIndex?l(l({},i),{title:null,label:null}):i},e.prototype.renderTitle=function(){var t=this;N(this.facets,(function(e,i){var n=e.columnIndex,r=e.rowIndex,o=e.columnValuesLength;e.rowValuesLength;var a=e.columnValue,s=e.rowValue,l=e.view;if(0===r){var h=Ht(t.cfg.columnTitle,"formatter"),u=Dt({position:["50%","0%"],content:h?h(a):a},_d(Jt.TOP),t.cfg.columnTitle);l.annotation().text(u)}if(n===o-1){h=Ht(t.cfg.rowTitle,"formatter"),u=Dt({position:["100%","50%"],content:h?h(s):s},_d(Jt.RIGHT),t.cfg.rowTitle);l.annotation().text(u)}}))},e}(Ph),Vd=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultCfg=function(){return Dt({},t.prototype.getDefaultCfg.call(this),{type:"mirror",showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this),transpose:!1})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.beforeEachView=function(t,e){this.cfg.transpose?e.columnIndex%2==0?t.coordinate().transpose().reflect("x"):t.coordinate().transpose():e.rowIndex%2!=0&&t.coordinate().reflect("y")},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.generateFacets=function(t){var e,i,n=this,r=this.cfg.fields[0],o=[],a=1,s=1,l=[""],h=[""];return this.cfg.transpose?(e=r,l=this.getFieldValues(t,e).slice(0,2),a=l.length):(i=r,h=this.getFieldValues(t,i).slice(0,2),s=h.length),l.forEach((function(r,u){h.forEach((function(c,p){var f=[{field:e,value:r,values:l},{field:i,value:c,values:h}],g=_(t,n.getFacetDataFilter(f)),d={type:n.cfg.type,data:g,region:n.getRegion(s,a,u,p),columnValue:r,rowValue:c,columnField:e,rowField:i,columnIndex:u,rowIndex:p,columnValuesLength:a,rowValuesLength:s};o.push(d)}))})),o},e.prototype.getXAxisOption=function(t,e,i,n){return 1===n.columnIndex||1===n.rowIndex?l(l({},i),{label:null,title:null}):i},e.prototype.getYAxisOption=function(t,e,i,n){return i},e.prototype.renderTitle=function(){var t=this;N(this.facets,(function(e,i){var n=e.columnValue,r=e.rowValue,o=e.view,a=Ht(t.cfg.title,"formatter");if(t.cfg.transpose){var s=Dt({position:["50%","0%"],content:a?a(n):n},_d(Jt.TOP),t.cfg.title);o.annotation().text(s)}else{s=Dt({position:["100%","50%"],content:a?a(r):r},_d(Jt.RIGHT),t.cfg.title);o.annotation().text(s)}}))},e}(Ph),Hd=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.getDefaultCfg=function(){return Dt({},t.prototype.getDefaultCfg.call(this),{type:"rect",columnTitle:l({},t.prototype.getDefaultTitleCfg.call(this)),rowTitle:l({},t.prototype.getDefaultTitleCfg.call(this))})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.generateFacets=function(t){var e=this,i=this.cfg.fields,n=i[0],r=i[1],o=[],a=1,s=1,l=[""],h=[""];return n&&(l=this.getFieldValues(t,n),a=l.length),r&&(h=this.getFieldValues(t,r),s=h.length),l.forEach((function(i,u){h.forEach((function(c,p){var f=[{field:n,value:i,values:l},{field:r,value:c,values:h}],g=_(t,e.getFacetDataFilter(f)),d={type:e.cfg.type,data:g,region:e.getRegion(s,a,u,p),columnValue:i,rowValue:c,columnField:n,rowField:r,columnIndex:u,rowIndex:p,columnValuesLength:a,rowValuesLength:s};o.push(d)}))})),o},e.prototype.renderTitle=function(){var t=this;N(this.facets,(function(e,i){var n=e.columnIndex,r=e.rowIndex,o=e.columnValuesLength,a=e.columnValue,s=e.rowValue,l=e.view;if(0===r){var h=Ht(t.cfg.columnTitle,"formatter"),u=Dt({position:["50%","0%"],content:h?h(a):a},_d(Jt.TOP),t.cfg.columnTitle);l.annotation().text(u)}if(n===o-1){h=Ht(t.cfg.rowTitle,"formatter"),u=Dt({position:["100%","50%"],content:h?h(s):s},_d(Jt.RIGHT),t.cfg.rowTitle);l.annotation().text(u)}}))},e.prototype.getXAxisOption=function(t,e,i,n){return n.rowIndex!==n.rowValuesLength-1?l(l({},i),{title:null,label:null}):n.columnIndex!==Math.floor((n.columnValuesLength-1)/2)?l(l({},i),{title:null}):i},e.prototype.getYAxisOption=function(t,e,i,n){return 0!==n.columnIndex?l(l({},i),{title:null,label:null}):n.rowIndex!==Math.floor((n.rowValuesLength-1)/2)?l(l({},i),{title:null}):i},e}(Ph),Nd=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.afterChartRender=function(){e.facets&&e.cfg.line&&(e.container.clear(),e.drawLines(e.facets))},e}return r(e,t),e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.init=function(){t.prototype.init.call(this),this.view.on(ne.AFTER_RENDER,this.afterChartRender)},e.prototype.getDefaultCfg=function(){return Dt({},t.prototype.getDefaultCfg.call(this),{type:"tree",line:{style:{lineWidth:1,stroke:"#ddd"},smooth:!1},showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this)})},e.prototype.generateFacets=function(t){if(!this.cfg.fields.length)throw new Error("Please specify for the fields for rootFacet!");var e=[],i={type:this.cfg.type,data:t,region:null,rowValuesLength:this.getRows(),columnValuesLength:1,rowIndex:0,columnIndex:0,rowField:"",columnField:"",rowValue:"",columnValue:""};return e.push(i),i.children=this.getChildFacets(t,1,e),this.setRegion(e),e},e.prototype.setRegion=function(t){var e=this;this.forceColIndex(t),t.forEach((function(t){t.region=e.getRegion(t.rowValuesLength,t.columnValuesLength,t.columnIndex,t.rowIndex)}))},e.prototype.getRegion=function(t,e,i,n){var r=1/e,o=1/t,a={x:r*i,y:o*n};return{start:a,end:{x:a.x+r,y:a.y+2*o/3}}},e.prototype.forceColIndex=function(t){var e=this,i=[],n=0;t.forEach((function(t){e.isLeaf(t)&&(i.push(t),t.columnIndex=n,n++)})),i.forEach((function(t){t.columnValuesLength=i.length}));for(var r=this.cfg.fields.length-1;r>=0;r--)for(var o=0,a=this.getFacetsByLevel(t,r);o<a.length;o++){var s=a[o];this.isLeaf(s)||(s.originColIndex=s.columnIndex,s.columnIndex=this.getRegionIndex(s.children),s.columnValuesLength=i.length)}},e.prototype.getFacetsByLevel=function(t,e){var i=[];return t.forEach((function(t){t.rowIndex===e&&i.push(t)})),i},e.prototype.getRegionIndex=function(t){var e=t[0];return(t[t.length-1].columnIndex-e.columnIndex)/2+e.columnIndex},e.prototype.isLeaf=function(t){return!t.children||!t.children.length},e.prototype.getRows=function(){return this.cfg.fields.length+1},e.prototype.getChildFacets=function(t,e,i){var n=this,r=this.cfg.fields;if(!(r.length<e)){var o=[],a=r[e-1],s=this.getFieldValues(t,a);return s.forEach((function(r,l){var h=[{field:a,value:r,values:s}],u=t.filter(n.getFacetDataFilter(h));if(u.length){var c={type:n.cfg.type,data:u,region:null,columnValue:r,rowValue:"",columnField:a,rowField:"",columnIndex:l,rowValuesLength:n.getRows(),columnValuesLength:1,rowIndex:e,children:n.getChildFacets(u,e+1,i)};o.push(c),i.push(c)}})),o}},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.renderTitle=function(){var t=this;N(this.facets,(function(e){var i=e.columnValue,n=e.view,r=Ht(t.cfg.title,"formatter"),o=Dt({position:["50%","0%"],content:r?r(i):i},_d(Jt.TOP),t.cfg.title);n.annotation().text(o)}))},e.prototype.drawLines=function(t){var e=this;t.forEach((function(t){if(!e.isLeaf(t)){var i=t.children;e.addFacetLines(t,i)}}))},e.prototype.addFacetLines=function(t,e){var i=this,n=t.view.coordinateBBox,r={x:n.x+n.width/2,y:n.y+n.height};e.forEach((function(t){var e=t.view.coordinateBBox,n={x:e.bl.x+(e.tr.x-e.bl.x)/2,y:e.tr.y},o={x:r.x,y:r.y+(n.y-r.y)/2},a={x:n.x,y:o.y};i.drawLine([r,o,a,n])}))},e.prototype.getPath=function(t){var e=[];return this.cfg.line.smooth?(e.push(["M",t[0].x,t[0].y]),e.push(["C",t[1].x,t[1].y,t[2].x,t[2].y,t[3].x,t[3].y])):t.forEach((function(t,i){0===i?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e},e.prototype.drawLine=function(t){var e=this.getPath(t),i=this.cfg.line.style;this.container.addShape("path",{attrs:Pt({path:e},i)})},e.prototype.getXAxisOption=function(t,e,i,n){return n.rowIndex!==n.rowValuesLength-1?l(l({},i),{title:null,label:null}):i},e.prototype.getYAxisOption=function(t,e,i,n){return 0!==n.originColIndex&&0!==n.columnIndex?l(l({},i),{title:null,label:null}):i},e}(Ph);function Wd(t){var e=s([],t,!0);e.sort((function(t,e){return t-e}));var i=e.length;return 0===i?0:i%2==1?e[(i-1)/2]:(e[i/2]+e[i/2-1])/2}function jd(t,e){if(!e)return null;var i,n,r;switch(t){case"start":return 0;case"center":return.5;case"end":return 1;case"median":i=e.isCategory?Wd(e.values.map((function(t,e){return e}))):Wd(e.values);break;case"mean":i=e.isCategory?(e.values.length-1)/2:(n=e.values,r=J(n,(function(t,e){return t+(isNaN(e)||!pt(e)?0:e)}),0),0===n.length?0:r/n.length);break;case"min":i=e.isCategory?0:e[t];break;case"max":i=e.isCategory?e.values.length-1:e[t];break;default:i=t}return e.scale(i)}var qd=["regionFilter","shape"],Ud=function(t){function e(e){var i=t.call(this,e)||this;return i.cache=new Map,i.foregroundContainer=i.view.getLayer($t.FORE).addGroup(),i.backgroundContainer=i.view.getLayer($t.BG).addGroup(),i.option=[],i}return r(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"annotation"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.layout=function(){this.update()},e.prototype.render=function(){},e.prototype.update=function(){var t=this;this.onAfterRender((function(){var e=new Map;N(t.option,(function(i){if(R(qd,i.type)){var n=t.updateOrCreate(i);n&&e.set(t.getCacheKey(i),n)}})),t.cache=t.syncCache(e)}));var e=new Map;N(this.option,(function(i){if(!R(qd,i.type)){var n=t.updateOrCreate(i);n&&e.set(t.getCacheKey(i),n)}})),this.cache=this.syncCache(e)},e.prototype.clear=function(e){void 0===e&&(e=!1),t.prototype.clear.call(this),this.clearComponents(),this.foregroundContainer.clear(),this.backgroundContainer.clear(),e&&(this.option=[])},e.prototype.destroy=function(){this.clear(!0),this.foregroundContainer.remove(!0),this.backgroundContainer.remove(!0)},e.prototype.getComponents=function(){var t=[];return this.cache.forEach((function(e){t.push(e)})),t},e.prototype.clearComponents=function(){this.getComponents().forEach((function(t){t.component.destroy()})),this.cache.clear()},e.prototype.onAfterRender=function(t){this.view.getOptions().animate?this.view.geometries.forEach((function(e){e.animateOption&&e.once(re.AFTER_DRAW_ANIMATE,(function(){t()}))})):this.view.getRootView().once(ne.AFTER_RENDER,(function(){t()}))},e.prototype.createAnnotation=function(t){var e=t.type,i=Is[bt(e)];if(i){var n=this.getAnnotationTheme(e),r=this.getAnnotationCfg(e,t,n);return r?{component:new i(r),layer:this.isTop(r)?$t.FORE:$t.BG,direction:Jt.NONE,type:te.ANNOTATION,extra:t}:null}},e.prototype.annotation=function(t){this.option.push(t)},e.prototype.arc=function(t){return this.annotation(l({type:"arc"},t)),this},e.prototype.image=function(t){return this.annotation(l({type:"image"},t)),this},e.prototype.line=function(t){return this.annotation(l({type:"line"},t)),this},e.prototype.region=function(t){return this.annotation(l({type:"region"},t)),this},e.prototype.text=function(t){return this.annotation(l({type:"text"},t)),this},e.prototype.dataMarker=function(t){return this.annotation(l({type:"dataMarker"},t)),this},e.prototype.dataRegion=function(t){this.annotation(l({type:"dataRegion"},t))},e.prototype.regionFilter=function(t){this.annotation(l({type:"regionFilter"},t))},e.prototype.shape=function(t){this.annotation(l({type:"shape"},t))},e.prototype.html=function(t){this.annotation(l({type:"html"},t))},e.prototype.parsePosition=function(t){var e=this.view.getXScale(),i=this.view.getScalesByDim("y"),n=X(t)?t.call(null,e,i):t,r=0,o=0;if(V(n)){var a=n[0],s=n[1];if(et(a)&&-1!==a.indexOf("%")&&!isNaN(a.slice(0,-1)))return this.parsePercentPosition(n);r=jd(a,e),o=jd(s,Object.values(i)[0])}else if(!z(n))for(var l=0,h=W(n);l<h.length;l++){var u=h[l],c=n[u];u===e.field&&(r=jd(c,e)),i[u]&&(o=jd(c,i[u]))}return isNaN(r)||isNaN(o)?null:this.view.getCoordinate().convert({x:r,y:o})},e.prototype.getRegionPoints=function(t,e){var i,n=this,r=this.view.getXScale(),o=this.view.getScalesByDim("y"),a=Object.values(o)[0],s=r.field,l=this.view.getData(),h=V(t)?t[0]:t[s],u=V(e)?e[0]:e[s],c=[];return N(l,(function(t,e){if(t[s]===h&&(i=e),e>=i){var r=n.parsePosition([t[s],t[a.field]]);r&&c.push(r)}if(t[s]===u)return!1})),c},e.prototype.parsePercentPosition=function(t){var e=parseFloat(t[0])/100,i=parseFloat(t[1])/100,n=this.view.getCoordinate(),r=n.start,o=n.end,a=Math.min(r.x,o.x),s=Math.min(r.y,o.y);return{x:n.getWidth()*e+a,y:n.getHeight()*i+s}},e.prototype.getCoordinateBBox=function(){var t=this.view.getCoordinate(),e=t.start,i=t.end,n=t.getWidth(),r=t.getHeight(),o={x:Math.min(e.x,i.x),y:Math.min(e.y,i.y)};return{x:o.x,y:o.y,minX:o.x,minY:o.y,maxX:o.x+n,maxY:o.y+r,width:n,height:r}},e.prototype.getAnnotationCfg=function(t,e,i){var n=this,r=this.view.getCoordinate(),o=this.view.getCanvas(),a={};if(z(e))return null;var s=e.start,u=e.end,c=e.position,p=this.parsePosition(s),f=this.parsePosition(u),g=this.parsePosition(c);if(!(!["arc","image","line","region","regionFilter"].includes(t)||p&&f))return null;if(["text","dataMarker","html"].includes(t)&&!g)return null;if("arc"===t){var d=e;d.start,d.end;var y=h(d,["start","end"]),v=fh(r,p),m=fh(r,f);v>m&&(m=2*Math.PI+m),a=l(l({},y),{center:r.getCenter(),radius:ch(r,p),startAngle:v,endAngle:m})}else if("image"===t){var x=e;x.start,x.end;y=h(x,["start","end"]);a=l(l({},y),{start:p,end:f,src:e.src})}else if("line"===t){var w=e;w.start,w.end;y=h(w,["start","end"]);a=l(l({},y),{start:p,end:f,text:Ht(e,"text",null)})}else if("region"===t){var C=e;C.start,C.end;y=h(C,["start","end"]);a=l(l({},y),{start:p,end:f})}else if("text"===t){var b=this.view.getData(),M=e;M.position;var S=M.content,A=(y=h(M,["position","content"]),S);X(S)&&(A=S(b)),a=l(l(l({},g),y),{content:A})}else if("dataMarker"===t){var T=e;T.position;var B=T.point,k=T.line,L=T.text,P=T.autoAdjust,I=T.direction;y=h(T,["position","point","line","text","autoAdjust","direction"]);a=l(l(l({},y),g),{coordinateBBox:this.getCoordinateBBox(),point:B,line:k,text:L,autoAdjust:P,direction:I})}else if("dataRegion"===t){var E=e,F=E.start,O=E.end,D=E.region,_=(L=E.text,E.lineLength);y=h(E,["start","end","region","text","lineLength"]);a=l(l({},y),{points:this.getRegionPoints(F,O),region:D,text:L,lineLength:_})}else if("regionFilter"===t){var Y=e;Y.start,Y.end;var G=Y.apply,V=Y.color,H=(y=h(Y,["start","end","apply","color"]),this.view.geometries),W=[],j=function t(e){e&&(e.isGroup()?e.getChildren().forEach((function(e){return t(e)})):W.push(e))};N(H,(function(t){G?R(G,t.type)&&N(t.elements,(function(t){j(t.shape)})):N(t.elements,(function(t){j(t.shape)}))})),a=l(l({},y),{color:V,shapes:W,start:p,end:f})}else if("shape"===t){var q=e,U=q.render,Z=h(q,["render"]);a=l(l({},Z),{render:function(t){if(X(e.render))return U(t,n.view,{parsePosition:n.parsePosition.bind(n)})}})}else if("html"===t){var Q=e,K=Q.html;Q.position;Z=h(Q,["html","position"]);a=l(l(l({},Z),g),{parent:o.get("el").parentNode,html:function(t){return X(K)?K(t,n.view):K}})}var $=Dt({},i,l(l({},a),{top:e.top,style:e.style,offsetX:e.offsetX,offsetY:e.offsetY}));return"html"!==t&&($.container=this.getComponentContainer($)),$.animate=this.view.getOptions().animate&&$.animate&&Ht(e,"animate",$.animate),$.animateOption=Dt({},mc,$.animateOption,e.animateOption),$},e.prototype.isTop=function(t){return Ht(t,"top",!0)},e.prototype.getComponentContainer=function(t){return this.isTop(t)?this.foregroundContainer:this.backgroundContainer},e.prototype.getAnnotationTheme=function(t){return Ht(this.view.getTheme(),["components","annotation",t],{})},e.prototype.updateOrCreate=function(t){var e=this.cache.get(this.getCacheKey(t));if(e){var i=t.type,n=this.getAnnotationTheme(i),r=this.getAnnotationCfg(i,t,n);r&&sh(r,["container"]),e.component.update(l(l({},r||{}),{visible:!!r})),R(qd,t.type)&&e.component.render()}else(e=this.createAnnotation(t))&&(e.component.init(),R(qd,t.type)&&e.component.render());return e},e.prototype.syncCache=function(t){var e=this,i=new Map(this.cache);return t.forEach((function(t,e){i.set(e,t)})),i.forEach((function(t,n){U(e.option,(function(t){return n===e.getCacheKey(t)}))||(t.component.destroy(),i.delete(n))})),i},e.prototype.getCacheKey=function(t){return t},e}(pc);function Zd(t,e){var i=Dt({},Ht(t,["components","axis","common"]),Ht(t,["components","axis",e]));return Ht(i,["grid"],{})}function Qd(t,e,i,n){var r=[],o=e.getTicks();return t.isPolar&&o.push({value:1,text:"",tickValue:""}),o.reduce((function(e,o,a){var s=o.value;if(n)r.push({points:[t.convert("y"===i?{x:0,y:s}:{x:s,y:0}),t.convert("y"===i?{x:1,y:s}:{x:s,y:1})]});else if(a){var l=(e.value+s)/2;r.push({points:[t.convert("y"===i?{x:0,y:l}:{x:l,y:0}),t.convert("y"===i?{x:1,y:l}:{x:l,y:1})]})}return o}),o[0]),r}function Kd(t,e,i,n,r){var o=e.values.length,a=[],s=i.getTicks();return s.reduce((function(e,i){var s=e?e.value:i.value,l=i.value,h=(s+l)/2;return"x"===r?a.push({points:[t.convert({x:n?l:h,y:0}),t.convert({x:n?l:h,y:1})]}):a.push({points:zt(Array(o+1),(function(e,i){return t.convert({x:i/o,y:n?l:h})}))}),i}),s[0]),a}function $d(t,e){var i=Ht(e,"grid");if(null===i)return!1;var n=Ht(t,"grid");return!(void 0===i&&null===n)}var Jd=["container"],ty=l(l({},mc),{appear:null}),ey=function(t){function e(e){var i=t.call(this,e)||this;return i.cache=new Map,i.gridContainer=i.view.getLayer($t.BG).addGroup(),i.gridForeContainer=i.view.getLayer($t.FORE).addGroup(),i.axisContainer=i.view.getLayer($t.BG).addGroup(),i.axisForeContainer=i.view.getLayer($t.FORE).addGroup(),i}return r(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"axis"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.render=function(){this.update()},e.prototype.layout=function(){var t=this,e=this.view.getCoordinate();N(this.getComponents(),(function(i){var n,r=i.component,o=i.direction,a=i.type,s=i.extra,l=s.dim,h=s.scale,u=s.alignTick;if(a===te.AXIS)e.isPolar?"x"===l?n=e.isTransposed?Ch(e,o):Th(e):"y"===l&&(n=e.isTransposed?Th(e):Ch(e,o)):n=Ch(e,o);else if(a===te.GRID)if(e.isPolar){n={items:e.isTransposed?"x"===l?Kd(e,t.view.getYScales()[0],h,u,l):Qd(e,h,l,u):"x"===l?Qd(e,h,l,u):Kd(e,t.view.getXScale(),h,u,l),center:t.view.getCoordinate().getCenter()}}else n={items:Qd(e,h,l,u)};r.update(n)}))},e.prototype.update=function(){this.option=this.view.getOptions().axes;var t=new Map;this.updateXAxes(t),this.updateYAxes(t);var e=new Map;this.cache.forEach((function(i,n){t.has(n)?e.set(n,i):i.component.destroy()})),this.cache=e},e.prototype.clear=function(){t.prototype.clear.call(this),this.cache.clear(),this.gridContainer.clear(),this.gridForeContainer.clear(),this.axisContainer.clear(),this.axisForeContainer.clear()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.gridContainer.remove(!0),this.gridForeContainer.remove(!0),this.axisContainer.remove(!0),this.axisForeContainer.remove(!0)},e.prototype.getComponents=function(){var t=[];return this.cache.forEach((function(e){t.push(e)})),t},e.prototype.updateXAxes=function(t){var e=this.view.getXScale();if(e&&!e.isIdentity){var i=Bh(this.option,e.field);if(!1!==i){var n=kh(i,Jt.BOTTOM),r=$t.BG,o="x",a=this.view.getCoordinate(),s=this.getId("axis",e.field),l=this.getId("grid",e.field);if(a.isRect){if(h=this.cache.get(s))sh(c=this.getLineAxisCfg(e,i,n),Jd),h.component.update(c),t.set(s,h);else h=this.createLineAxis(e,i,r,n,o),this.cache.set(s,h),t.set(s,h);if(u=this.cache.get(l))sh(c=this.getLineGridCfg(e,i,n,o),Jd),u.component.update(c),t.set(l,u);else(u=this.createLineGrid(e,i,r,n,o))&&(this.cache.set(l,u),t.set(l,u))}else if(a.isPolar){var h,u;if(h=this.cache.get(s)){sh(c=a.isTransposed?this.getLineAxisCfg(e,i,Jt.RADIUS):this.getCircleAxisCfg(e,i,n),Jd),h.component.update(c),t.set(s,h)}else{if(a.isTransposed){if(Bt(i))return;h=this.createLineAxis(e,i,r,Jt.RADIUS,o)}else h=this.createCircleAxis(e,i,r,n,o);this.cache.set(s,h),t.set(s,h)}if(u=this.cache.get(l)){var c;sh(c=a.isTransposed?this.getCircleGridCfg(e,i,Jt.RADIUS,o):this.getLineGridCfg(e,i,Jt.CIRCLE,o),Jd),u.component.update(c),t.set(l,u)}else{if(a.isTransposed){if(Bt(i))return;u=this.createCircleGrid(e,i,r,Jt.RADIUS,o)}else u=this.createLineGrid(e,i,r,Jt.CIRCLE,o);u&&(this.cache.set(l,u),t.set(l,u))}}}}},e.prototype.updateYAxes=function(t){var e=this;N(this.view.getYScales(),(function(i,n){if(i&&!i.isIdentity){var r=i.field,o=Bh(e.option,r);if(!1!==o){var a=$t.BG,s="y",l=e.getId("axis",r),h=e.getId("grid",r),u=e.view.getCoordinate();if(u.isRect){var c=kh(o,0===n?Jt.LEFT:Jt.RIGHT);if(p=e.cache.get(l))sh(g=e.getLineAxisCfg(i,o,c),Jd),p.component.update(g),t.set(l,p);else p=e.createLineAxis(i,o,a,c,s),e.cache.set(l,p),t.set(l,p);if(f=e.cache.get(h))sh(g=e.getLineGridCfg(i,o,c,s),Jd),f.component.update(g),t.set(h,f);else(f=e.createLineGrid(i,o,a,c,s))&&(e.cache.set(h,f),t.set(h,f))}else if(u.isPolar){var p,f;if(p=e.cache.get(l)){sh(g=u.isTransposed?e.getCircleAxisCfg(i,o,Jt.CIRCLE):e.getLineAxisCfg(i,o,Jt.RADIUS),Jd),p.component.update(g),t.set(l,p)}else{if(u.isTransposed){if(Bt(o))return;p=e.createCircleAxis(i,o,a,Jt.CIRCLE,s)}else p=e.createLineAxis(i,o,a,Jt.RADIUS,s);e.cache.set(l,p),t.set(l,p)}if(f=e.cache.get(h)){var g;sh(g=u.isTransposed?e.getLineGridCfg(i,o,Jt.CIRCLE,s):e.getCircleGridCfg(i,o,Jt.RADIUS,s),Jd),f.component.update(g),t.set(h,f)}else{if(u.isTransposed){if(Bt(o))return;f=e.createLineGrid(i,o,a,Jt.CIRCLE,s)}else f=e.createCircleGrid(i,o,a,Jt.RADIUS,s);f&&(e.cache.set(h,f),t.set(h,f))}}}}}))},e.prototype.createLineAxis=function(t,e,i,n,r){var o={component:new jl(this.getLineAxisCfg(t,e,n)),layer:i,direction:n===Jt.RADIUS?Jt.NONE:n,type:te.AXIS,extra:{dim:r,scale:t}};return o.component.set("field",t.field),o.component.init(),o},e.prototype.createLineGrid=function(t,e,i,n,r){var o=this.getLineGridCfg(t,e,n,r);if(o){var a={component:new Ul(o),layer:i,direction:Jt.NONE,type:te.GRID,extra:{dim:r,scale:t,alignTick:Ht(o,"alignTick",!0)}};return a.component.init(),a}},e.prototype.createCircleAxis=function(t,e,i,n,r){var o={component:new ql(this.getCircleAxisCfg(t,e,n)),layer:i,direction:n,type:te.AXIS,extra:{dim:r,scale:t}};return o.component.set("field",t.field),o.component.init(),o},e.prototype.createCircleGrid=function(t,e,i,n,r){var o=this.getCircleGridCfg(t,e,n,r);if(o){var a={component:new Zl(o),layer:i,direction:Jt.NONE,type:te.GRID,extra:{dim:r,scale:t,alignTick:Ht(o,"alignTick",!0)}};return a.component.init(),a}},e.prototype.getLineAxisCfg=function(t,e,i){var n=Ht(e,["top"])?this.axisForeContainer:this.axisContainer,r=this.view.getCoordinate(),o=Ch(r,i),a=Lh(t,e),s=Sh(this.view.getTheme(),i),h=Ht(e,["title"])?Dt({title:{style:{text:a}}},{title:Ah(this.view.getTheme(),i,e.title)},e):e,u=Dt(l(l({container:n},o),{ticks:t.getTicks().map((function(t){return{id:"".concat(t.tickValue),name:t.text,value:t.value}})),verticalFactor:r.isPolar?-1*Mh(o,r.getCenter()):Mh(o,r.getCenter()),theme:s}),s,h),c=this.getAnimateCfg(u),p=c.animate,f=c.animateOption;u.animateOption=f,u.animate=p;var g=bh(o),d=Ht(u,"verticalLimitLength",g?1/3:.5);if(d<=1){var y=this.view.getCanvas().get("width"),v=this.view.getCanvas().get("height");u.verticalLimitLength=d*(g?y:v)}return u},e.prototype.getLineGridCfg=function(t,e,i,n){if($d(Sh(this.view.getTheme(),i),e)){var r=Zd(this.view.getTheme(),i),o=Dt({container:Ht(e,["top"])?this.gridForeContainer:this.gridContainer},r,Ht(e,"grid"),this.getAnimateCfg(e));return o.items=Qd(this.view.getCoordinate(),t,n,Ht(o,"alignTick",!0)),o}},e.prototype.getCircleAxisCfg=function(t,e,i){var n=Ht(e,["top"])?this.axisForeContainer:this.axisContainer,r=this.view.getCoordinate(),o=t.getTicks().map((function(t){return{id:"".concat(t.tickValue),name:t.text,value:t.value}}));t.isCategory||Math.abs(r.endAngle-r.startAngle)!==2*Math.PI||o.pop();var a=Lh(t,e),s=Sh(this.view.getTheme(),Jt.CIRCLE),h=Ht(e,["title"])?Dt({title:{style:{text:a}}},{title:Ah(this.view.getTheme(),i,e.title)},e):e,u=Dt(l(l({container:n},Th(this.view.getCoordinate())),{ticks:o,verticalFactor:1,theme:s}),s,h),c=this.getAnimateCfg(u),p=c.animate,f=c.animateOption;return u.animate=p,u.animateOption=f,u},e.prototype.getCircleGridCfg=function(t,e,i,n){if($d(Sh(this.view.getTheme(),i),e)){var r=Zd(this.view.getTheme(),Jt.RADIUS),o=Dt({container:Ht(e,["top"])?this.gridForeContainer:this.gridContainer,center:this.view.getCoordinate().getCenter()},r,Ht(e,"grid"),this.getAnimateCfg(e)),a=Ht(o,"alignTick",!0),s="x"===n?this.view.getYScales()[0]:this.view.getXScale();return o.items=Kd(this.view.getCoordinate(),s,t,a,n),o}},e.prototype.getId=function(t,e){var i=this.view.getCoordinate();return"".concat(t,"-").concat(e,"-").concat(i.type)},e.prototype.getAnimateCfg=function(t){return{animate:this.view.getOptions().animate&&Ht(t,"animate"),animateOption:t&&t.animateOption?Dt({},ty,t.animateOption):ty}},e}(pc);function iy(t,e,i){return i===Jt.TOP?[t.minX+t.width/2-e.width/2,t.minY]:i===Jt.BOTTOM?[t.minX+t.width/2-e.width/2,t.maxY-e.height]:i===Jt.LEFT?[t.minX,t.minY+t.height/2-e.height/2]:i===Jt.RIGHT?[t.maxX-e.width,t.minY+t.height/2-e.height/2]:i===Jt.TOP_LEFT||i===Jt.LEFT_TOP?[t.tl.x,t.tl.y]:i===Jt.TOP_RIGHT||i===Jt.RIGHT_TOP?[t.tr.x-e.width,t.tr.y]:i===Jt.BOTTOM_LEFT||i===Jt.LEFT_BOTTOM?[t.bl.x,t.bl.y-e.height]:i===Jt.BOTTOM_RIGHT||i===Jt.RIGHT_BOTTOM?[t.br.x-e.width,t.br.y-e.height]:[0,0]}function ny(t,e){return St(t)?!1!==t&&{}:Ht(t,[e],t)}function ry(t){return Ht(t,"position",Jt.BOTTOM)}var oy=function(t){function e(e){var i=t.call(this,e)||this;return i.container=i.view.getLayer($t.FORE).addGroup(),i}return r(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"legend"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.render=function(){this.update()},e.prototype.layout=function(){var t=this;this.layoutBBox=this.view.viewBBox,N(this.components,(function(e){var i=e.component,n=e.direction,r=rp(n),o=i.get("maxWidthRatio"),a=i.get("maxHeightRatio"),s=t.getCategoryLegendSizeCfg(r,o,a),l=i.get("maxWidth"),h=i.get("maxHeight");i.update({maxWidth:Math.min(s.maxWidth,l||0),maxHeight:Math.min(s.maxHeight,h||0)});var u=i.get("padding"),c=i.getLayoutBBox(),p=new hh(c.x,c.y,c.width,c.height).expand(u),f=iy(t.view.viewBBox,p,n),g=f[0],d=f[1],y=iy(t.layoutBBox,p,n),v=y[0],m=y[1],x=0,w=0;n.startsWith("top")||n.startsWith("bottom")?(x=g,w=m):(x=v,w=d),i.setLocation({x:x+u[3],y:w+u[0]}),t.layoutBBox=t.layoutBBox.cut(p,n)}))},e.prototype.update=function(){var t=this;this.option=this.view.getOptions().legends;var e={};if(Ht(this.option,"custom")){var i="global-custom",n=this.getComponentById(i);if(n){var r=this.getCategoryCfg(void 0,void 0,void 0,this.option,!0);sh(r,["container"]),n.component.update(r),e[i]=!0}else{var o=this.createCustomLegend(void 0,void 0,void 0,this.option);if(o){o.init();var a=$t.FORE,s=ry(this.option);this.components.push({id:i,component:o,layer:a,direction:s,type:te.LEGEND,extra:void 0}),e[i]=!0}}}else this.loopLegends((function(i,n,r){var o=t.getId(r.field),a=t.getComponentById(o);if(a){var s=void 0,l=ny(t.option,r.field);!1!==l&&(Ht(l,"custom")?s=t.getCategoryCfg(i,n,r,l,!0):r.isLinear?s=t.getContinuousCfg(i,n,r,l):r.isCategory&&(s=t.getCategoryCfg(i,n,r,l))),s&&(sh(s,["container"]),a.direction=ry(l),a.component.update(s),e[o]=!0)}else{var h=t.createFieldLegend(i,n,r);h&&(h.component.init(),t.components.push(h),e[o]=!0)}}));var l=[];N(this.getComponents(),(function(t){e[t.id]?l.push(t):t.component.destroy()})),this.components=l},e.prototype.clear=function(){t.prototype.clear.call(this),this.container.clear()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.container.remove(!0)},e.prototype.getGeometries=function(t){var e=this,i=t.geometries;return N(t.views,(function(t){i=i.concat(e.getGeometries(t))})),i},e.prototype.loopLegends=function(t){if(this.view.getRootView()===this.view){var e=this.getGeometries(this.view),i={};N(e,(function(e){N(e.getGroupAttributes(),(function(n){var r=n.getScale(n.type);r&&"identity"!==r.type&&!i[r.field]&&(t(e,n,r),i[r.field]=!0)}))}))}},e.prototype.createFieldLegend=function(t,e,i){var n,r=ny(this.option,i.field),o=$t.FORE,a=ry(r);if(!1!==r&&(Ht(r,"custom")?n=this.createCustomLegend(t,e,i,r):i.isLinear?n=this.createContinuousLegend(t,e,i,r):i.isCategory&&(n=this.createCategoryLegend(t,e,i,r))),n)return n.set("field",i.field),{id:this.getId(i.field),component:n,layer:o,direction:a,type:te.LEGEND,extra:{scale:i}}},e.prototype.createCustomLegend=function(t,e,i,n){var r=this.getCategoryCfg(t,e,i,n,!0);return new Ql(r)},e.prototype.createContinuousLegend=function(t,e,i,n){var r=this.getContinuousCfg(t,e,i,sh(n,["value"]));return new Kl(r)},e.prototype.createCategoryLegend=function(t,e,i,n){var r=this.getCategoryCfg(t,e,i,n);return new Ql(r)},e.prototype.getContinuousCfg=function(t,e,i,n){var r=i.getTicks(),o=U(r,(function(t){return 0===t.value})),a=U(r,(function(t){return 1===t.value})),s=r.map((function(t){var n=t.value,r=t.tickValue,o=e.mapping(i.invert(n)).join("");return{value:r,attrValue:o,color:o,scaleValue:n}}));o||s.push({value:i.min,attrValue:e.mapping(i.invert(0)).join(""),color:e.mapping(i.invert(0)).join(""),scaleValue:0}),a||s.push({value:i.max,attrValue:e.mapping(i.invert(1)).join(""),color:e.mapping(i.invert(1)).join(""),scaleValue:1}),s.sort((function(t,e){return t.value-e.value}));var l={min:rt(s).value,max:ot(s).value,colors:[],rail:{type:e.type},track:{}};"size"===e.type&&(l.track={style:{fill:"size"===e.type?this.view.getTheme().defaultColor:void 0}}),"color"===e.type&&(l.colors=s.map((function(t){return t.attrValue})));var h=this.container,u=rp(ry(n)),c=Ht(n,"title");return c&&(c=Dt({text:mh(i)},c)),l.container=h,l.layout=u,l.title=c,l.animateOption=mc,this.mergeLegendCfg(l,n,"continuous")},e.prototype.getCategoryCfg=function(t,e,i,n,r){var o=this.container,a=Ht(n,"position",Jt.BOTTOM),s=ap(this.view.getTheme(),a),l=Ht(s,["marker"]),h=Ht(n,"marker"),u=rp(a),c=Ht(s,["pageNavigator"]),p=Ht(n,"pageNavigator"),f=r?function(t,e,i){return i.map((function(i,n){var r=e;X(r)&&(r=r(i.name,n,Dt({},t,i)));var o=X(i.marker)?i.marker(i.name,n,Dt({},t,i)):i.marker,a=Dt({},t,r,o);return np(a),i.marker=a,i}))}(l,h,n.items):op(this.view,t,e,l,h),g=Ht(n,"title");g&&(g=Dt({text:i?mh(i):""},g));var d=Ht(n,"maxWidthRatio"),y=Ht(n,"maxHeightRatio"),v=this.getCategoryLegendSizeCfg(u,d,y);v.container=o,v.layout=u,v.items=f,v.title=g,v.animateOption=mc,v.pageNavigator=Dt({},c,p);var m=this.mergeLegendCfg(v,n,a);m.reversed&&m.items.reverse();var x=Ht(m,"maxItemWidth");return x&&x<=1&&(m.maxItemWidth=this.view.viewBBox.width*x),m},e.prototype.mergeLegendCfg=function(t,e,i){var n=i.split("-")[0],r=ap(this.view.getTheme(),n);return Dt({},r,t,e)},e.prototype.getId=function(t){return"".concat(this.name,"-").concat(t)},e.prototype.getComponentById=function(t){return U(this.components,(function(e){return e.id===t}))},e.prototype.getCategoryLegendSizeCfg=function(t,e,i){void 0===e&&(e=.25),void 0===i&&(i=.25);var n=this.view.viewBBox,r=n.width,o=n.height;return"vertical"===t?{maxWidth:r*e,maxHeight:o}:{maxWidth:r,maxHeight:o*i}},e}(pc),ay=function(t){function e(e){var i=t.call(this,e)||this;return i.onChangeFn=Qt,i.resetMeasure=function(){i.clear()},i.onValueChange=function(t){var e=t[0],n=t[1];i.start=e,i.end=n,i.changeViewData(e,n)},i.container=i.view.getLayer($t.FORE).addGroup(),i.onChangeFn=qt(i.onValueChange,20,{leading:!0}),i.width=0,i.view.on(ne.BEFORE_CHANGE_DATA,i.resetMeasure),i.view.on(ne.BEFORE_CHANGE_SIZE,i.resetMeasure),i}return r(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"slider"},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.view.off(ne.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(ne.BEFORE_CHANGE_SIZE,this.resetMeasure)},e.prototype.init=function(){},e.prototype.render=function(){this.option=this.view.getOptions().slider;var t=this.getSliderCfg(),e=t.start,i=t.end;z(this.start)&&(this.start=e,this.end=i);var n=this.view.getOptions().data;this.option&&!Yt(n)?this.slider?this.slider=this.updateSlider():(this.slider=this.createSlider(),this.slider.component.on("sliderchange",this.onChangeFn)):this.slider&&(this.slider.component.destroy(),this.slider=void 0)},e.prototype.layout=function(){var t=this;if(this.option&&!this.width&&(this.measureSlider(),setTimeout((function(){t.view.destroyed||t.changeViewData(t.start,t.end)}),0)),this.slider){var e=this.view.coordinateBBox.width,i=this.slider.component.get("padding"),n=i[0];i[1],i[2];var r=i[3],o=this.slider.component.getLayoutBBox(),a=new hh(o.x,o.y,Math.min(o.width,e),o.height).expand(i),s=this.getMinMaxText(this.start,this.end),h=s.minText,u=s.maxText,c=iy(this.view.viewBBox,a,Jt.BOTTOM);c[0];var p=c[1],f=iy(this.view.coordinateBBox,a,Jt.BOTTOM),g=f[0];f[1],this.slider.component.update(l(l({},this.getSliderCfg()),{x:g+r,y:p+n,width:this.width,start:this.start,end:this.end,minText:h,maxText:u})),this.view.viewBBox=this.view.viewBBox.cut(a,Jt.BOTTOM)}},e.prototype.update=function(){this.render()},e.prototype.createSlider=function(){var t=this.getSliderCfg(),e=new Hl(l({container:this.container},t));return e.init(),{component:e,layer:$t.FORE,direction:Jt.BOTTOM,type:te.SLIDER}},e.prototype.updateSlider=function(){var t=this.getSliderCfg();if(this.width){var e=this.getMinMaxText(this.start,this.end),i=e.minText,n=e.maxText;t=l(l({},t),{width:this.width,start:this.start,end:this.end,minText:i,maxText:n})}return this.slider.component.update(t),this.slider},e.prototype.measureSlider=function(){var t=this.getSliderCfg().width;this.width=t},e.prototype.getSliderCfg=function(){var t={height:16,start:0,end:1,minText:"",maxText:"",x:0,y:0,width:this.view.coordinateBBox.width};if(H(this.option)){var e=l({data:this.getData()},Ht(this.option,"trendCfg",{}));t=Dt({},t,this.getThemeOptions(),this.option),t=l(l({},t),{trendCfg:e})}return t.start=ut(Math.min(z(t.start)?0:t.start,z(t.end)?1:t.end),0,1),t.end=ut(Math.max(z(t.start)?0:t.start,z(t.end)?1:t.end),0,1),t},e.prototype.getData=function(){var t=this.view.getOptions().data,e=this.view.getYScales()[0],i=this.view.getGroupScales();if(i.length){var n=i[0],r=n.field,o=n.ticks;return t.reduce((function(t,i){return i[r]===o[0]&&t.push(i[e.field]),t}),[])}return t.map((function(t){return t[e.field]||0}))},e.prototype.getThemeOptions=function(){var t=this.view.getTheme();return Ht(t,["components","slider","common"],{})},e.prototype.getMinMaxText=function(t,e){var i=this.view.getOptions().data,n=this.view.getXScale(),r=nt(i,n.field);n.isLinear&&(r=r.sort());var o=r,a=Kt(i);if(!n||!a)return{};var s=Kt(o),l=Math.floor(t*(s-1)),h=Math.floor(e*(s-1)),u=Ht(o,[l]),c=Ht(o,[h]),p=this.getSliderCfg().formatter;return p&&(u=p(u,i[l],l),c=p(c,i[h],h)),{minText:u,maxText:c}},e.prototype.changeViewData=function(t,e){var i=this.view.getOptions().data,n=this.view.getXScale(),r=Kt(i);if(n&&r){var o=nt(i,n.field),a=this.view.getXScale().isLinear?o.sort((function(t,e){return Number(t)-Number(e)})):o,s=Kt(a),l=Math.floor(t*(s-1)),h=Math.floor(e*(s-1));this.view.filter(n.field,(function(t,e){var i=a.indexOf(t);return!(i>-1)||ah(i,l,h)})),this.view.render(!0)}},e.prototype.getComponents=function(){return this.slider?[this.slider]:[]},e.prototype.clear=function(){this.slider&&(this.slider.component.destroy(),this.slider=void 0),this.width=0,this.start=void 0,this.end=void 0},e}(pc),sy=function(t){function e(e){var i=t.call(this,e)||this;return i.onChangeFn=Qt,i.resetMeasure=function(){i.clear()},i.onValueChange=function(t){var e=t.ratio,n=i.getValidScrollbarCfg().animate;i.ratio=ut(e,0,1);var r=i.view.getOptions().animate;n||i.view.animate(!1),i.changeViewData(i.getScrollRange(),!0),i.view.animate(r)},i.container=i.view.getLayer($t.FORE).addGroup(),i.onChangeFn=qt(i.onValueChange,20,{leading:!0}),i.trackLen=0,i.thumbLen=0,i.ratio=0,i.view.on(ne.BEFORE_CHANGE_DATA,i.resetMeasure),i.view.on(ne.BEFORE_CHANGE_SIZE,i.resetMeasure),i}return r(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"scrollbar"},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.view.off(ne.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(ne.BEFORE_CHANGE_SIZE,this.resetMeasure)},e.prototype.init=function(){},e.prototype.render=function(){this.option=this.view.getOptions().scrollbar,this.option?this.scrollbar?this.scrollbar=this.updateScrollbar():(this.scrollbar=this.createScrollbar(),this.scrollbar.component.on("scrollchange",this.onChangeFn)):this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0)},e.prototype.layout=function(){var t=this;if(this.option&&!this.trackLen&&(this.measureScrollbar(),setTimeout((function(){t.view.destroyed||t.changeViewData(t.getScrollRange(),!0)}))),this.scrollbar){var e=this.view.coordinateBBox.width,i=this.scrollbar.component.get("padding"),n=this.scrollbar.component.getLayoutBBox(),r=new hh(n.x,n.y,Math.min(n.width,e),n.height).expand(i),o=this.getScrollbarComponentCfg(),a=void 0,s=void 0;if(o.isHorizontal){var h=iy(this.view.viewBBox,r,Jt.BOTTOM);h[0];var u=h[1],c=iy(this.view.coordinateBBox,r,Jt.BOTTOM),p=c[0];c[1],a=p,s=u}else{var f=iy(this.view.viewBBox,r,Jt.RIGHT);f[0];u=f[1];var g=iy(this.view.viewBBox,r,Jt.RIGHT);p=g[0];g[1],a=p,s=u}a+=i[3],s+=i[0],this.trackLen?this.scrollbar.component.update(l(l({},o),{x:a,y:s,trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio})):this.scrollbar.component.update(l(l({},o),{x:a,y:s})),this.view.viewBBox=this.view.viewBBox.cut(r,o.isHorizontal?Jt.BOTTOM:Jt.RIGHT)}},e.prototype.update=function(){this.render()},e.prototype.getComponents=function(){return this.scrollbar?[this.scrollbar]:[]},e.prototype.clear=function(){this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0),this.trackLen=0,this.thumbLen=0,this.ratio=0,this.cnt=0,this.step=0,this.data=void 0,this.xScaleCfg=void 0,this.yScalesCfg=[]},e.prototype.setValue=function(t){this.onValueChange({ratio:t})},e.prototype.getValue=function(){return this.ratio},e.prototype.getThemeOptions=function(){var t=this.view.getTheme();return Ht(t,["components","scrollbar","common"],{})},e.prototype.getScrollbarTheme=function(t){var e=Ht(this.view.getTheme(),["components","scrollbar"]),i=t||{},n=i.thumbHighlightColor,r=h(i,["thumbHighlightColor"]);return{default:Dt({},Ht(e,["default","style"],{}),r),hover:Dt({},Ht(e,["hover","style"],{}),{thumbColor:n})}},e.prototype.measureScrollbar=function(){var t=this.view.getXScale(),e=this.view.getYScales().slice();this.data=this.getScrollbarData(),this.step=this.getStep(),this.cnt=this.getCnt();var i=this.getScrollbarComponentCfg(),n=i.trackLen,r=i.thumbLen;this.trackLen=n,this.thumbLen=r,this.xScaleCfg={field:t.field,values:t.values||[]},this.yScalesCfg=e},e.prototype.getScrollRange=function(){var t=Math.floor((this.cnt-this.step)*ut(this.ratio,0,1));return[t,Math.min(t+this.step-1,this.cnt-1)]},e.prototype.changeViewData=function(t,e){var i=this,n=t[0],r=t[1],o="vertical"!==this.getValidScrollbarCfg().type,a=nt(this.data,this.xScaleCfg.field),s=this.view.getXScale().isLinear?a.sort((function(t,e){return Number(t)-Number(e)})):a,l=o?s:s.reverse();this.yScalesCfg.forEach((function(t){i.view.scale(t.field,{formatter:t.formatter,type:t.type,min:t.min,max:t.max,tickMethod:t.tickMethod})})),this.view.filter(this.xScaleCfg.field,(function(t){var e=l.indexOf(t);return!(e>-1)||ah(e,n,r)})),this.view.render(!0)},e.prototype.createScrollbar=function(){var t="vertical"!==this.getValidScrollbarCfg().type,e=new Wl(l(l({container:this.container},this.getScrollbarComponentCfg()),{x:0,y:0}));return e.init(),{component:e,layer:$t.FORE,direction:t?Jt.BOTTOM:Jt.RIGHT,type:te.SCROLLBAR}},e.prototype.updateScrollbar=function(){var t=this.getScrollbarComponentCfg(),e=this.trackLen?l(l({},t),{trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio}):l({},t);return this.scrollbar.component.update(e),this.scrollbar},e.prototype.getStep=function(){if(this.step)return this.step;var t=this.view.coordinateBBox,e=this.getValidScrollbarCfg(),i=e.type,n=e.categorySize,r="vertical"!==i;return Math.floor((r?t.width:t.height)/n)},e.prototype.getCnt=function(){if(this.cnt)return this.cnt;var t=this.view.getXScale(),e=this.getScrollbarData();return Kt(nt(e,t.field))},e.prototype.getScrollbarComponentCfg=function(){var t=this.view,e=t.coordinateBBox,i=t.viewBBox,n=this.getValidScrollbarCfg(),r=n.type,o=n.padding,a=n.width,s=n.height,h=n.style,u="vertical"!==r,c=o[0],p=o[1],f=o[2],g=o[3],d=u?{x:e.minX+g,y:i.maxY-s-f}:{x:i.maxX-a-p,y:e.minY+c},y=this.getStep(),v=this.getCnt(),m=u?e.width-g-p:e.height-c-f,x=Math.max(m*ut(y/v,0,1),20);return l(l({},this.getThemeOptions()),{x:d.x,y:d.y,size:u?s:a,isHorizontal:u,trackLen:m,thumbLen:x,thumbOffset:0,theme:this.getScrollbarTheme(h)})},e.prototype.getValidScrollbarCfg=function(){var t={type:"horizontal",categorySize:32,width:8,height:8,padding:[0,0,0,0],animate:!0,style:{}};return H(this.option)&&(t=l(l({},t),this.option)),H(this.option)&&this.option.padding||(t.padding=(t.type,[0,0,0,0])),t},e.prototype.getScrollbarData=function(){var t=this.view.getCoordinate(),e=this.getValidScrollbarCfg(),i=this.view.getOptions().data||[];return t.isReflect("y")&&"vertical"===e.type&&(i=s([],i,!0).reverse()),i},e}(pc),ly={fill:"#CCD6EC",opacity:.3};function hy(t,e,i){var n=function(t,e,i){for(var n=Ku(t,e,i),r=0,o=t.views;r<o.length;r++){var a=o[r];n=n.concat(Ku(a,e,i))}return n}(t,e,i);if(n.length){for(var r=0,o=n=Z(n);r<o.length;r++)for(var a=0,s=o[r];a<s.length;a++){var l=s[a],h=l.mappingData,u=h.x,c=h.y;l.x=V(u)?u[u.length-1]:u,l.y=V(c)?c[c.length-1]:c}if(!1===i.shared&&n.length>1){for(var p=n[0],f=Math.abs(e.y-p[0].y),g=0,d=n;g<d.length;g++){var y=d[g],v=Math.abs(e.y-y[0].y);v<=f&&(p=y,f=v)}n=[p]}return it(Z(n))}return[]}var uy=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.show=function(t){var e=this.context.view,i=this.context.event,n=e.getController("tooltip").getTooltipCfg(),r=hy(e,{x:i.x,y:i.y},n);if(!Xt(r,this.items)&&(this.items=r,r.length)){var o=e.getXScale().field,a=r[0].data[o],s=[];if(N(e.geometries,(function(t){if("interval"===t.type||"schema"===t.type){var e=t.getElementsBy((function(t){return t.getData()[o]===a}));s=s.concat(e)}})),s.length){var h=e.getCoordinate(),u=s[0].shape.getCanvasBBox(),c=s[0].shape.getCanvasBBox(),p=u;N(s,(function(t){var e=t.shape.getCanvasBBox();h.isTransposed?(e.minY<u.minY&&(u=e),e.maxY>c.maxY&&(c=e)):(e.minX<u.minX&&(u=e),e.maxX>c.maxX&&(c=e)),p.x=Math.min(e.minX,p.minX),p.y=Math.min(e.minY,p.minY),p.width=Math.max(e.maxX,p.maxX)-p.x,p.height=Math.max(e.maxY,p.maxY)-p.y}));var f=e.backgroundGroup,g=e.coordinateBBox,d=void 0;if(h.isRect){var y=e.getXScale(),v=t||{},m=v.appendRatio,x=v.appendWidth;z(x)&&(m=z(m)?y.isLinear?0:.25:m,x=h.isTransposed?m*c.height:m*u.width);var w=void 0,C=void 0,b=void 0,M=void 0;h.isTransposed?(w=g.minX,C=Math.min(c.minY,u.minY)-x,b=g.width,M=p.height+2*x):(w=Math.min(u.minX,c.minX)-x,C=g.minY,b=p.width+2*x,M=g.height),d=[["M",w,C],["L",w+b,C],["L",w+b,C+M],["L",w,C+M],["Z"]]}else{var S=rt(s),A=ot(s),T=rh(S.getModel(),h).startAngle,B=rh(A.getModel(),h).endAngle,k=h.getCenter(),L=h.getRadius(),P=h.innerRadius*L;d=ih(k.x,k.y,L,T,B,P)}if(this.regionPath)this.regionPath.attr("path",d),this.regionPath.show();else{var I=Ht(t,"style",ly);this.regionPath=f.addShape({type:"path",name:"active-region",capture:!1,attrs:l(l({},I),{path:d})})}}}},e.prototype.hide=function(){this.regionPath&&this.regionPath.hide(),this.items=null},e.prototype.destroy=function(){this.hide(),this.regionPath&&this.regionPath.remove(!0),t.prototype.destroy.call(this)},e}(Dh),cy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return r(e,t),e.prototype.show=function(){var t=this.context,e=t.event,i=t.view;if(!i.isTooltipLocked()){var n=this.timeStamp,r=+new Date;if(r-n>Ht(t.view.getOptions(),"tooltip.showDelay",16)){var o=this.location,a={x:e.x,y:e.y};o&&Xt(o,a)||this.showTooltip(i,a),this.timeStamp=r,this.location=a}}},e.prototype.hide=function(){var t=this.context.view,e=t.getController("tooltip"),i=this.context.event,n=i.clientX,r=i.clientY;e.isCursorEntered({x:n,y:r})||t.isTooltipLocked()||(this.hideTooltip(t),this.location=null)},e.prototype.showTooltip=function(t,e){t.showTooltip(e)},e.prototype.hideTooltip=function(t){t.hideTooltip()},e}(Dh),py=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.showTooltip=function(t,e){N(hu(t),(function(i){var n=uu(t,i,e);i.showTooltip(n)}))},e.prototype.hideTooltip=function(t){N(hu(t),(function(t){t.hideTooltip()}))},e}(cy),fy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return r(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},e.prototype.show=function(){var t=this.context.event,e=this.timeStamp,i=+new Date;if(i-e>16){var n=this.location,r={x:t.x,y:t.y};n&&Xt(n,r)||this.showTooltip(r),this.timeStamp=i,this.location=r}},e.prototype.hide=function(){this.hideTooltip(),this.location=null},e.prototype.showTooltip=function(t){var e=this.context.event.target;if(e&&e.get("tip")){this.tooltip||this.renderTooltip();var i=e.get("tip");this.tooltip.update(l({title:i},t)),this.tooltip.show()}},e.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},e.prototype.renderTooltip=function(){var t,e=this.context.view,i=e.canvas,n={start:{x:0,y:0},end:{x:i.get("width"),y:i.get("height")}},r=e.getTheme(),o=Ht(r,["components","tooltip","domStyles"],{}),a=new $l({parent:i.get("el").parentNode,region:n,visible:!1,crosshairs:null,domStyles:l({},Dt({},o,(t={},t[vl]={"max-width":"50%"},t[ml]={"word-break":"break-all"},t)))});a.init(),a.setCapture(!1),this.tooltip=a},e}(Dh),gy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="",e}return r(e,t),e.prototype.hasState=function(t){return t.hasState(this.stateName)},e.prototype.setElementState=function(t,e){t.setState(this.stateName,e)},e.prototype.setState=function(){this.setStateEnable(!0)},e.prototype.clear=function(){var t=this.context.view;this.clearViewState(t)},e.prototype.clearViewState=function(t){var e=this;N(iu(t,this.stateName),(function(t){e.setElementState(t,!1)}))},e}(Dh);function dy(t){return Ht(t.get("delegateObject"),"item")}var yy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreListItemStates=["unchecked"],e}return r(e,t),e.prototype.isItemIgnore=function(t,e){return!!this.ignoreListItemStates.filter((function(i){return e.hasState(t,i)})).length},e.prototype.setStateByComponent=function(t,e,i){var n=this.context.view,r=t.get("field"),o=eu(n);this.setElementsStateByItem(o,r,e,i)},e.prototype.setStateByElement=function(t,e){this.setElementState(t,e)},e.prototype.isMathItem=function(t,e,i){var n=pu(this.context.view,e),r=nu(t,e);return!z(r)&&i.name===n.getText(r)},e.prototype.setElementsStateByItem=function(t,e,i,n){var r=this;N(t,(function(t){r.isMathItem(t,e,i)&&t.setState(r.stateName,n)}))},e.prototype.setStateEnable=function(t){var e=qh(this.context);if(e)Zh(this.context)&&this.setStateByElement(e,t);else{var i=Uh(this.context);if(Qh(i)){var n=i.item,r=i.component;if(n&&r&&!this.isItemIgnore(n,r)){var o=this.context.event.gEvent;if(o&&o.fromShape&&o.toShape&&dy(o.fromShape)===dy(o.toShape))return;this.setStateByComponent(r,n,t)}}}},e.prototype.toggle=function(){var t=qh(this.context);if(t){var e=t.hasState(this.stateName);this.setElementState(t,!e)}},e.prototype.reset=function(){this.setStateEnable(!1)},e}(gy),vy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return r(e,t),e.prototype.active=function(){this.setState()},e}(yy),my=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.cache={},e}return r(e,t),e.prototype.getColorScale=function(t,e){var i=e.geometry.getAttribute("color");return i?t.getScaleByField(i.getFields()[0]):null},e.prototype.getLinkPath=function(t,e){var i=this.context.view.getCoordinate().isTransposed,n=t.shape.getCanvasBBox(),r=e.shape.getCanvasBBox();return i?[["M",n.minX,n.minY],["L",r.minX,r.maxY],["L",r.maxX,r.maxY],["L",n.maxX,n.minY],["Z"]]:[["M",n.maxX,n.minY],["L",r.minX,r.minY],["L",r.minX,r.maxY],["L",n.maxX,n.maxY],["Z"]]},e.prototype.addLinkShape=function(t,e,i,n){var r={opacity:.4,fill:e.shape.attr("fill")};t.addShape({type:"path",attrs:l(l({},Dt({},r,X(n)?n(r,e):n)),{path:this.getLinkPath(e,i)})})},e.prototype.linkByElement=function(t,e){var i=this,n=this.context.view,r=this.getColorScale(n,t);if(r){var o=nu(t,r.field);if(!this.cache[o]){var a=function(t,e,i){return eu(t).filter((function(t){return nu(t,e)===i}))}(n,r.field,o),s=this.linkGroup.addGroup();this.cache[o]=s;var l=a.length;N(a,(function(t,n){if(n<l-1){var r=a[n+1];i.addLinkShape(s,t,r,e)}}))}}},e.prototype.removeLink=function(t){var e=this.getColorScale(this.context.view,t);if(e){var i=nu(t,e.field);this.cache[i]&&(this.cache[i].remove(),this.cache[i]=null)}},e.prototype.link=function(t){var e=this.context;this.linkGroup||(this.linkGroup=e.view.foregroundGroup.addGroup({id:"link-by-color-group",capture:!1}));var i=qh(e);i&&this.linkByElement(i,null==t?void 0:t.style)},e.prototype.unlink=function(){var t=qh(this.context);t&&this.removeLink(t)},e.prototype.clear=function(){this.linkGroup&&this.linkGroup.clear(),this.cache={}},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.linkGroup&&this.linkGroup.remove()},e}(Dh),xy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.startPoint=null,e.endPoint=null,e.isStarted=!1,e.effectSiblings=!1,e.effectByRecord=!1,e}return r(e,t),e.prototype.getCurrentPoint=function(){var t=this.context.event;return{x:t.x,y:t.y}},e.prototype.start=function(){this.clear(),this.startPoint=this.getCurrentPoint(),this.isStarted=!0},e.prototype.getIntersectElements=function(){var t=null;if($h(this.context))t=Jh(this.context,10);else{var e=this.startPoint,i=this.isStarted?this.getCurrentPoint():this.endPoint;if(!e||!i)return;var n={minX:Math.min(e.x,i.x),minY:Math.min(e.y,i.y),maxX:Math.max(e.x,i.x),maxY:Math.max(e.y,i.y)};t=ru(this.context.view,n)}return t},e.prototype.setStateEnable=function(t){if(this.effectSiblings&&!this.effectByRecord)this.setSiblingsState(t);else{var e=eu(this.context.view),i=this.getIntersectElements();i&&i.length?this.effectByRecord?this.setSiblingsStateByRecord(i,t):this.setElementsState(i,t,e):this.clear()}},e.prototype.setSiblingsStateByRecord=function(t,e){var i=this,n=this.context.view,r=hu(n),o=t.map((function(t){return t.getModel().data})),a=n.getXScale().field,s=n.getYScales()[0].field;N(r,(function(t){var n=eu(t),r=n.filter((function(t){var e=t.getModel().data;return cu(o,e,a,s)}));i.setElementsState(r,e,n)}))},e.prototype.setSiblingsState=function(t){var e=this,i=hu(this.context.view);$h(this.context)&&N(i,(function(i){var n=eu(i),r=tu(e.context,i,10);r&&r.length?e.setElementsState(r,t,n):e.clearViewState(i)}))},e.prototype.setElementsState=function(t,e,i){var n=this;N(i,(function(i){t.includes(i)?n.setElementState(i,e):n.setElementState(i,!1)}))},e.prototype.end=function(){this.isStarted=!1,this.endPoint=this.getCurrentPoint()},e.prototype.clear=function(){var t=this,e=this.context.view;this.effectSiblings?N(hu(e),(function(e){t.clearViewState(e)})):this.clearViewState(e)},e}(gy),wy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return r(e,t),e.prototype.active=function(){this.setState()},e}(xy),Cy=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.setStateEnable=function(t){var e=qh(this.context);if(e){if(!Zh(this.context))return;t?(this.clear(),this.setElementState(e,!0)):this.hasState(e)&&this.setElementState(e,!1)}},e.prototype.toggle=function(){var t=qh(this.context);if(t){var e=this.hasState(t);e||this.clear(),this.setElementState(t,!e)}},e.prototype.reset=function(){this.setStateEnable(!1)},e}(gy),by=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return r(e,t),e.prototype.active=function(){this.setState()},e}(Cy),My="inactive",Sy="active";function Ay(t){N(eu(t),(function(t){t.hasState(Sy)&&t.setState(Sy,!1),t.hasState(My)&&t.setState(My,!1)}))}function Ty(t,e,i){N(t,(function(t){e(t)?(t.hasState(My)&&t.setState(My,!1),t.setState(Sy,i)):(t.hasState(Sy)&&t.setState(Sy,!1),t.setState(My,i))}))}var By,ky=ae.INACTIVE,Ly=ae.ACTIVE,Py=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName=Ly,e}return r(e,t),e.prototype.setElementsStateByItem=function(t,e,i,n){var r=this;this.setHighlightBy(t,(function(t){return r.isMathItem(t,e,i)}),n)},e.prototype.setElementHighlight=function(t,e){e(t)?(t.hasState(ky)&&t.setState(ky,!1),t.setState(Ly,!0)):t.hasState(Ly)||t.setState(ky,!0)},e.prototype.setHighlightBy=function(t,e,i){var n=this;if(i)N(t,(function(t){n.setElementHighlight(t,e)}));else{var r=iu(this.context.view,Ly),o=!0;N(r,(function(t){if(!e(t))return o=!1,!1})),o?this.clear():N(t,(function(t){e(t)&&(t.hasState(Ly)&&t.setState(Ly,!1),t.setState(ky,!0))}))}},e.prototype.setElementState=function(t,e){var i=eu(this.context.view);this.setHighlightBy(i,(function(e){return t===e}),e)},e.prototype.highlight=function(){this.setState()},e.prototype.clear=function(){Ay(this.context.view)},e}(yy),Iy=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.setStateByElement=function(t,e){var i=this.context.view,n=t.geometry.getAttribute("color");if(n){var r=i.getScaleByField(n.getFields()[0]),o=nu(t,r.field),a=eu(i),s=a.filter((function(t){return nu(t,r.field)===o}));this.setHighlightBy(a,(function(t){return s.includes(t)}),e)}},e}(Py),Ey=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.setElementHighlight=function(t,e){e(t)?(t.hasState(ky)&&t.setState(ky,!1),t.setState(Ly,!0)):(t.setState(ky,!0),t.hasState(Ly)&&t.setState(Ly,!1))},e.prototype.setStateByElement=function(t,e){var i=this.context.view,n=i.getXScale(),r=nu(t,n.field),o=eu(i),a=o.filter((function(t){return nu(t,n.field)===r}));this.setHighlightBy(o,(function(t){return a.includes(t)}),e)},e.prototype.toggle=function(){var t=qh(this.context);if(t){var e=t.hasState(this.stateName);this.setStateByElement(t,!e)}},e}(Py);e("ELEMENT_RANGE_HIGHLIGHT_EVENTS",By),function(t){t.BEFORE_HIGHLIGHT="element-range-highlight:beforehighlight",t.AFTER_HIGHLIGHT="element-range-highlight:afterhighlight",t.BEFORE_CLEAR="element-range-highlight:beforeclear",t.AFTER_CLEAR="element-range-highlight:afterclear"}(By||e("ELEMENT_RANGE_HIGHLIGHT_EVENTS",By={}));var Fy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return r(e,t),e.prototype.clearViewState=function(t){Ay(t)},e.prototype.highlight=function(){var t=this.context,e=t.view,i={view:e,event:t.event,highlightElements:this.getIntersectElements()};e.emit(By.BEFORE_HIGHLIGHT,nc.fromData(e,By.BEFORE_HIGHLIGHT,i)),this.setState(),e.emit(By.AFTER_HIGHLIGHT,nc.fromData(e,By.AFTER_HIGHLIGHT,i))},e.prototype.clear=function(){var e=this.context.view;e.emit(By.BEFORE_CLEAR,nc.fromData(e,By.BEFORE_CLEAR,{})),t.prototype.clear.call(this),e.emit(By.AFTER_CLEAR,nc.fromData(e,By.AFTER_CLEAR,{}))},e.prototype.setElementsState=function(t,e,i){Ty(i,(function(e){return t.indexOf(e)>=0}),e)},e}(xy),Oy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return r(e,t),e.prototype.highlight=function(){this.setState()},e.prototype.setElementState=function(t,e){Ty(eu(this.context.view),(function(e){return t===e}),e)},e.prototype.clear=function(){Ay(this.context.view)},e}(Cy),Dy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return r(e,t),e.prototype.selected=function(){this.setState()},e}(xy),Ry=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return r(e,t),e.prototype.selected=function(){this.setState()},e}(yy),_y=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return r(e,t),e.prototype.selected=function(){this.setState()},e}(Cy),Yy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="",e.ignoreItemStates=[],e}return r(e,t),e.prototype.getTriggerListInfo=function(){var t=Uh(this.context),e=null;return Qh(t)&&(e={item:t.item,list:t.component}),e},e.prototype.getAllowComponents=function(){var t=this,e=au(this.context.view),i=[];return N(e,(function(e){e.isList()&&t.allowSetStateByElement(e)&&i.push(e)})),i},e.prototype.hasState=function(t,e){return t.hasState(e,this.stateName)},e.prototype.clearAllComponentsState=function(){var t=this;N(this.getAllowComponents(),(function(e){e.clearItemsState(t.stateName)}))},e.prototype.allowSetStateByElement=function(t){var e=t.get("field");if(!e)return!1;if(this.cfg&&this.cfg.componentNames){var i=t.get("name");if(-1===this.cfg.componentNames.indexOf(i))return!1}var n=pu(this.context.view,e);return n&&n.isCategory},e.prototype.allowSetStateByItem=function(t,e){var i=this.ignoreItemStates;return!i.length||0===i.filter((function(i){return e.hasState(t,i)})).length},e.prototype.setStateByElement=function(t,e,i){var n=t.get("field"),r=pu(this.context.view,n),o=nu(e,n),a=r.getText(o);this.setItemsState(t,a,i)},e.prototype.setStateEnable=function(t){var e=this,i=qh(this.context);if(i){N(this.getAllowComponents(),(function(n){e.setStateByElement(n,i,t)}))}else{var n=Uh(this.context);if(Qh(n)){var r=n.item,o=n.component;this.allowSetStateByElement(o)&&this.allowSetStateByItem(r,o)&&this.setItemState(o,r,t)}}},e.prototype.setItemsState=function(t,e,i){var n=this;N(t.getItems(),(function(r){r.name===e&&n.setItemState(t,r,i)}))},e.prototype.setItemState=function(t,e,i){t.setItemState(e,this.stateName,i)},e.prototype.setState=function(){this.setStateEnable(!0)},e.prototype.reset=function(){this.setStateEnable(!1)},e.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var e=t.list,i=t.item,n=this.hasState(e,i);this.setItemState(e,i,!n)}},e.prototype.clear=function(){var t=this.getTriggerListInfo();t?t.list.clearItemsState(this.stateName):this.clearAllComponentsState()},e}(Dh),Gy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return r(e,t),e.prototype.active=function(){this.setState()},e}(Yy),Xy="inactive",zy="active";var Vy="inactive",Hy="active",Ny=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName=Hy,e.ignoreItemStates=["unchecked"],e}return r(e,t),e.prototype.setItemsState=function(t,e,i){this.setHighlightBy(t,(function(t){return t.name===e}),i)},e.prototype.setItemState=function(t,e,i){t.getItems(),this.setHighlightBy(t,(function(t){return t===e}),i)},e.prototype.setHighlightBy=function(t,e,i){var n=t.getItems();if(i)N(n,(function(i){e(i)?(t.hasState(i,Vy)&&t.setItemState(i,Vy,!1),t.setItemState(i,Hy,!0)):t.hasState(i,Hy)||t.setItemState(i,Vy,!0)}));else{var r=t.getItemsByState(Hy),o=!0;N(r,(function(t){if(!e(t))return o=!1,!1})),o?this.clear():N(n,(function(i){e(i)&&(t.hasState(i,Hy)&&t.setItemState(i,Hy,!1),t.setItemState(i,Vy,!0))}))}},e.prototype.highlight=function(){this.setState()},e.prototype.clear=function(){var t,e=this.getTriggerListInfo();e?N((t=e.list).getItems(),(function(e){t.hasState(e,zy)&&t.setItemState(e,zy,!1),t.hasState(e,Xy)&&t.setItemState(e,Xy,!1)})):N(this.getAllowComponents(),(function(t){t.clearItemsState(Hy),t.clearItemsState(Vy)}))},e}(Yy),Wy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return r(e,t),e.prototype.selected=function(){this.setState()},e}(Yy),jy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="unchecked",e}return r(e,t),e.prototype.unchecked=function(){this.setState()},e}(Yy),qy="unchecked",Uy="checked",Zy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName=Uy,e}return r(e,t),e.prototype.setItemState=function(t,e,i){this.setCheckedBy(t,(function(t){return t===e}),i)},e.prototype.setCheckedBy=function(t,e,i){var n=t.getItems();i&&N(n,(function(i){e(i)?(t.hasState(i,qy)&&t.setItemState(i,qy,!1),t.setItemState(i,Uy,!0)):t.hasState(i,Uy)||t.setItemState(i,qy,!0)}))},e.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var e=t.list,i=t.item;!at(e.getItems(),(function(t){return e.hasState(t,qy)}))||e.hasState(i,qy)?this.setItemState(e,i,!0):this.reset()}},e.prototype.checked=function(){this.setState()},e.prototype.reset=function(){N(this.getAllowComponents(),(function(t){t.clearItemsState(Uy),t.clearItemsState(qy)}))},e}(Yy),Qy="unchecked",Ky=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.toggle=function(){var t=this.getTriggerListInfo();if(null==t?void 0:t.item){var e=t.list,i=t.item,n=e.getItems(),r=n.filter((function(t){return!e.hasState(t,Qy)})),o=n.filter((function(t){return e.hasState(t,Qy)})),a=r[0];if(n.length===r.length)for(var s=0,l=n;s<l.length;s++){var h=l[s];e.setItemState(h,Qy,h.id!==i.id)}else if(n.length-o.length==1)if(a.id===i.id)for(var u=0,c=n;u<c.length;u++){h=c[u];e.setItemState(h,Qy,!1)}else for(var p=0,f=n;p<f.length;p++){h=f[p];e.setItemState(h,Qy,h.id!==i.id)}else for(var g=0,d=n;g<d.length;g++){h=d[g];e.setItemState(h,Qy,h.id!==i.id)}}},e}(Yy),$y="showRadio",Jy="legend-radio-tip",tv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return r(e,t),e.prototype.show=function(){var t=this.getTriggerListInfo();if(null==t?void 0:t.item){var e=t.list,i=t.item;e.setItemState(i,$y,!0)}},e.prototype.hide=function(){var t=this.getTriggerListInfo();if(null==t?void 0:t.item){var e=t.list,i=t.item;e.setItemState(i,$y,!1)}},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},e.prototype.showTip=function(){var t=this.context.event,e=this.timeStamp,i=+new Date,n=this.context.event.target;if(i-e>16&&"legend-item-radio"===n.get("name")){var r=this.location,o={x:t.x,y:t.y};this.timeStamp=i,this.location=o,r&&Xt(r,o)||this.showTooltip(o)}},e.prototype.hideTip=function(){this.hideTooltip(),this.location=null},e.prototype.showTooltip=function(t){var e=this.context,i=e.event.target;if(i&&i.get("tip")){this.tooltip||this.renderTooltip();var n=e.view.getCanvas().get("el").getBoundingClientRect(),r=n.x,o=n.y;this.tooltip.update(l(l({title:i.get("tip")},t),{x:t.x+r,y:t.y+o})),this.tooltip.show()}},e.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},e.prototype.renderTooltip=function(){var t,e=((t={})[vl]={padding:"6px 8px",transform:"translate(-50%, -80%)",background:"rgba(0,0,0,0.75)",color:"#fff","border-radius":"2px","z-index":100},t[ml]={"font-size":"12px","line-height":"14px","margin-bottom":0,"word-break":"break-all"},t);document.getElementById(Jy)&&document.body.removeChild(document.getElementById(Jy));var i=new $l({parent:document.body,region:null,visible:!1,crosshairs:null,domStyles:e,containerId:Jy});i.init(),i.setCapture(!1),this.tooltip=i},e}(Yy),ev=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.maskShape=null,e.points=[],e.starting=!1,e.moving=!1,e.preMovePoint=null,e.shapeType="path",e}return r(e,t),e.prototype.getCurrentPoint=function(){var t=this.context.event;return{x:t.x,y:t.y}},e.prototype.emitEvent=function(t){var e="mask:".concat(t),i=this.context.view,n=this.context.event;i.emit(e,{target:this.maskShape,shape:this.maskShape,points:this.points,x:n.x,y:n.y})},e.prototype.createMask=function(){var t=this.context.view,e=this.getMaskAttrs();return t.foregroundGroup.addShape({type:this.shapeType,name:"mask",draggable:!0,attrs:l({fill:"#C5D4EB",opacity:.3},e)})},e.prototype.getMaskPath=function(){return[]},e.prototype.show=function(){this.maskShape&&(this.maskShape.show(),this.emitEvent("show"))},e.prototype.start=function(t){this.starting=!0,this.moving=!1,this.points=[this.getCurrentPoint()],this.maskShape||(this.maskShape=this.createMask(),this.maskShape.set("capture",!1)),this.updateMask(null==t?void 0:t.maskStyle),this.emitEvent("start")},e.prototype.moveStart=function(){this.moving=!0,this.preMovePoint=this.getCurrentPoint()},e.prototype.move=function(){if(this.moving&&this.maskShape){var t=this.getCurrentPoint(),e=this.preMovePoint,i=t.x-e.x,n=t.y-e.y;N(this.points,(function(t){t.x+=i,t.y+=n})),this.updateMask(),this.emitEvent("change"),this.preMovePoint=t}},e.prototype.updateMask=function(t){var e=Dt({},this.getMaskAttrs(),t);this.maskShape.attr(e)},e.prototype.moveEnd=function(){this.moving=!1,this.preMovePoint=null},e.prototype.end=function(){this.starting=!1,this.emitEvent("end"),this.maskShape&&this.maskShape.set("capture",!0)},e.prototype.hide=function(){this.maskShape&&(this.maskShape.hide(),this.emitEvent("hide"))},e.prototype.resize=function(){this.starting&&this.maskShape&&(this.points.push(this.getCurrentPoint()),this.updateMask(),this.emitEvent("change"))},e.prototype.destroy=function(){this.points=[],this.maskShape&&this.maskShape.remove(),this.maskShape=null,this.preMovePoint=null,t.prototype.destroy.call(this)},e}(Dh),iv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="circle",e}return r(e,t),e.prototype.getMaskAttrs=function(){var t=this.points,e=ot(this.points),i=0,n=0,r=0;if(t.length){var o=t[0];i=su(o,e)/2,n=(e.x+o.x)/2,r=(e.y+o.y)/2}return{x:n,y:r,r:i}},e}(ev),nv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="rect",e}return r(e,t),e.prototype.getRegion=function(){var t=this.points;return{start:rt(t),end:ot(t)}},e.prototype.getMaskAttrs=function(){var t=this.getRegion(),e=t.start,i=t.end;return{x:Math.min(e.x,i.x),y:Math.min(e.y,i.y),width:Math.abs(i.x-e.x),height:Math.abs(i.y-e.y)}},e}(ev);function rv(t){t.x=ut(t.x,0,1),t.y=ut(t.y,0,1)}var ov,av=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dim="x",e.inPlot=!0,e}return r(e,t),e.prototype.getRegion=function(){var t=null,e=null,i=this.points,n=this.dim,r=this.context.view.getCoordinate(),o=r.invert(rt(i)),a=r.invert(ot(i));return this.inPlot&&(rv(o),rv(a)),"x"===n?(t=r.convert({x:o.x,y:0}),e=r.convert({x:a.x,y:1})):(t=r.convert({x:0,y:o.y}),e=r.convert({x:1,y:a.y})),{start:t,end:e}},e}(nv),sv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getMaskPath=function(){var t=this.points,e=[];return t.length&&(N(t,(function(t,i){0===i?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e.push(["L",t[0].x,t[0].y])),e},e.prototype.getMaskAttrs=function(){return{path:this.getMaskPath()}},e.prototype.addPoint=function(){this.resize()},e}(ev),lv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getMaskPath=function(){return function(t,e){if(t.length<=2)return Hh(t,!1);var i=t[0],n=[];N(t,(function(t){n.push(t.x),n.push(t.y)}));var r=Vh(n,e,null);return r.unshift(["M",i.x,i.y]),r}(this.points,!0)},e}(sv),hv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.setCursor=function(t){this.context.view.getCanvas().setCursor(t)},e.prototype.default=function(){this.setCursor("default")},e.prototype.pointer=function(){this.setCursor("pointer")},e.prototype.move=function(){this.setCursor("move")},e.prototype.crosshair=function(){this.setCursor("crosshair")},e.prototype.wait=function(){this.setCursor("wait")},e.prototype.help=function(){this.setCursor("help")},e.prototype.text=function(){this.setCursor("text")},e.prototype.eResize=function(){this.setCursor("e-resize")},e.prototype.wResize=function(){this.setCursor("w-resize")},e.prototype.nResize=function(){this.setCursor("n-resize")},e.prototype.sResize=function(){this.setCursor("s-resize")},e.prototype.neResize=function(){this.setCursor("ne-resize")},e.prototype.nwResize=function(){this.setCursor("nw-resize")},e.prototype.seResize=function(){this.setCursor("se-resize")},e.prototype.swResize=function(){this.setCursor("sw-resize")},e.prototype.nsResize=function(){this.setCursor("ns-resize")},e.prototype.ewResize=function(){this.setCursor("ew-resize")},e}(Dh),uv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.filterView=function(t,e,i){var n=this;t.getScaleByField(e)&&t.filter(e,i),t.views&&t.views.length&&N(t.views,(function(t){n.filterView(t,e,i)}))},e.prototype.filter=function(){var t=Uh(this.context);if(t){var e=this.context.view,i=t.component,n=i.get("field");if(Qh(t)){if(n){var r=i.getItemsByState("unchecked"),o=pu(e,n),a=r.map((function(t){return t.name}));a.length?this.filterView(e,n,(function(t){var e=o.getText(t);return!a.includes(e)})):this.filterView(e,n,null),e.render(!0)}}else if(Kh(t)){var s=i.getValue(),l=s[0],h=s[1];this.filterView(e,n,(function(t){return t>=l&&t<=h})),e.render(!0)}}},e}(Dh);function cv(t,e,i,n){var r=Math.min(i[e],n[e]),o=Math.max(i[e],n[e]),a=t.range,s=a[0],l=a[1];if(r<s&&(r=s),o>l&&(o=l),r===l&&o===l)return null;var h=t.invert(r),u=t.invert(o);if(t.isCategory){var c=t.values.indexOf(h),p=t.values.indexOf(u),f=t.values.slice(c,p+1);return function(t){return f.includes(t)}}return function(t){return t>=h&&t<=u}}e("BRUSH_FILTER_EVENTS",ov),function(t){t.FILTER="brush-filter-processing",t.RESET="brush-filter-reset",t.BEFORE_FILTER="brush-filter:beforefilter",t.AFTER_FILTER="brush-filter:afterfilter",t.BEFORE_RESET="brush-filter:beforereset",t.AFTER_RESET="brush-filter:afterreset"}(ov||e("BRUSH_FILTER_EVENTS",ov={}));var pv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dims=["x","y"],e.startPoint=null,e.isStarted=!1,e}return r(e,t),e.prototype.hasDim=function(t){return this.dims.includes(t)},e.prototype.start=function(){var t=this.context;this.isStarted=!0,this.startPoint=t.getCurrentPoint()},e.prototype.filter=function(){var t,e;if($h(this.context)){var i=this.context.event.target.getCanvasBBox();t={x:i.x,y:i.y},e={x:i.maxX,y:i.maxY}}else{if(!this.isStarted)return;t=this.startPoint,e=this.context.getCurrentPoint()}if(!(Math.abs(t.x-e.x)<5||Math.abs(t.x-e.y)<5)){var n=this.context,r=n.view,o={view:r,event:n.event,dims:this.dims};r.emit(ov.BEFORE_FILTER,nc.fromData(r,ov.BEFORE_FILTER,o));var a=r.getCoordinate(),s=a.invert(e),l=a.invert(t);if(this.hasDim("x")){var h=r.getXScale(),u=cv(h,"x",s,l);this.filterView(r,h.field,u)}if(this.hasDim("y")){var c=r.getYScales()[0];u=cv(c,"y",s,l);this.filterView(r,c.field,u)}this.reRender(r,{source:ov.FILTER}),r.emit(ov.AFTER_FILTER,nc.fromData(r,ov.AFTER_FILTER,o))}},e.prototype.end=function(){this.isStarted=!1},e.prototype.reset=function(){var t=this.context.view;if(t.emit(ov.BEFORE_RESET,nc.fromData(t,ov.BEFORE_RESET,{})),this.isStarted=!1,this.hasDim("x")){var e=t.getXScale();this.filterView(t,e.field,null)}if(this.hasDim("y")){var i=t.getYScales()[0];this.filterView(t,i.field,null)}this.reRender(t,{source:ov.RESET}),t.emit(ov.AFTER_RESET,nc.fromData(t,ov.AFTER_RESET,{}))},e.prototype.filterView=function(t,e,i){t.filter(e,i)},e.prototype.reRender=function(t,e){t.render(!0,e)},e}(Dh),fv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.filterView=function(t,e,i){N(hu(t),(function(t){t.filter(e,i)}))},e.prototype.reRender=function(t){N(hu(t),(function(t){t.render(!0)}))},e}(pv),gv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.filter=function(){var t=Uh(this.context),e=this.context.view,i=eu(e);if($h(this.context)){var n=Jh(this.context,10);n&&N(i,(function(t){n.includes(t)?t.show():t.hide()}))}else if(t){var r=t.component,o=r.get("field");if(Qh(t)){if(o){var a=r.getItemsByState("unchecked"),s=pu(e,o),l=a.map((function(t){return t.name}));N(i,(function(t){var e=nu(t,o),i=s.getText(e);l.indexOf(i)>=0?t.hide():t.show()}))}}else if(Kh(t)){var h=r.getValue(),u=h[0],c=h[1];N(i,(function(t){var e=nu(t,o);e>=u&&e<=c?t.show():t.hide()}))}}},e.prototype.clear=function(){N(eu(this.context.view),(function(t){t.show()}))},e.prototype.reset=function(){this.clear()},e}(Dh),dv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.byRecord=!1,e}return r(e,t),e.prototype.filter=function(){$h(this.context)&&(this.byRecord?this.filterByRecord():this.filterByBBox())},e.prototype.filterByRecord=function(){var t=this.context.view,e=Jh(this.context,10);if(e){var i=t.getXScale().field,n=t.getYScales()[0].field,r=e.map((function(t){return t.getModel().data}));N(hu(t),(function(t){N(eu(t),(function(t){var e=t.getModel().data;cu(r,e,i,n)?t.show():t.hide()}))}))}},e.prototype.filterByBBox=function(){var t=this;N(hu(this.context.view),(function(e){var i=tu(t.context,e,10),n=eu(e);i&&N(n,(function(t){i.includes(t)?t.show():t.hide()}))}))},e.prototype.reset=function(){N(hu(this.context.view),(function(t){N(eu(t),(function(t){t.show()}))}))},e}(Dh),yv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.buttonGroup=null,e.buttonCfg={name:"button",text:"button",textStyle:{x:0,y:0,fontSize:12,fill:"#333333",cursor:"pointer"},padding:[8,10],style:{fill:"#f7f7f7",stroke:"#cccccc",cursor:"pointer"},activeStyle:{fill:"#e6e6e6"}},e}return r(e,t),e.prototype.getButtonCfg=function(){return Dt(this.buttonCfg,this.cfg)},e.prototype.drawButton=function(){var t=this.getButtonCfg(),e=this.context.view.foregroundGroup.addGroup({name:t.name}),i=e.addShape({type:"text",name:"button-text",attrs:l({text:t.text},t.textStyle)}).getBBox(),n=$u(t.padding),r=e.addShape({type:"rect",name:"button-rect",attrs:l({x:i.x-n[3],y:i.y-n[0],width:i.width+n[1]+n[3],height:i.height+n[0]+n[2]},t.style)});r.toBack(),e.on("mouseenter",(function(){r.attr(t.activeStyle)})),e.on("mouseleave",(function(){r.attr(t.style)})),this.buttonGroup=e},e.prototype.resetPosition=function(){var t=this.context.view.getCoordinate().convert({x:1,y:1}),e=this.buttonGroup,i=e.getBBox(),n=Hi(null,[["t",t.x-i.width-10,t.y+i.height+5]]);e.setMatrix(n)},e.prototype.show=function(){this.buttonGroup||this.drawButton(),this.resetPosition(),this.buttonGroup.show()},e.prototype.hide=function(){this.buttonGroup&&this.buttonGroup.hide()},e.prototype.destroy=function(){var e=this.buttonGroup;e&&e.remove(),t.prototype.destroy.call(this)},e}(Dh),vv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.starting=!1,e.dragStart=!1,e}return r(e,t),e.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint()},e.prototype.drag=function(){if(this.startPoint){var t=this.context.getCurrentPoint(),e=this.context.view,i=this.context.event;this.dragStart?e.emit("drag",{target:i.target,x:i.x,y:i.y}):su(t,this.startPoint)>4&&(e.emit("dragstart",{target:i.target,x:i.x,y:i.y}),this.dragStart=!0)}},e.prototype.end=function(){if(this.dragStart){var t=this.context.view,e=this.context.event;t.emit("dragend",{target:e.target,x:e.x,y:e.y})}this.starting=!1,this.dragStart=!1},e}(Dh),mv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.starting=!1,e.isMoving=!1,e.startPoint=null,e.startMatrix=null,e}return r(e,t),e.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint(),this.startMatrix=this.context.view.middleGroup.getMatrix()},e.prototype.move=function(){if(this.starting){var t=this.startPoint,e=this.context.getCurrentPoint();if(su(t,e)>5&&!this.isMoving&&(this.isMoving=!0),this.isMoving){var i=this.context.view,n=Hi(this.startMatrix,[["t",e.x-t.x,e.y-t.y]]);i.backgroundGroup.setMatrix(n),i.foregroundGroup.setMatrix(n),i.middleGroup.setMatrix(n)}}},e.prototype.end=function(){this.isMoving&&(this.isMoving=!1),this.startMatrix=null,this.starting=!1,this.startPoint=null},e.prototype.reset=function(){this.starting=!1,this.startPoint=null,this.isMoving=!1;var t=this.context.view;t.backgroundGroup.resetMatrix(),t.foregroundGroup.resetMatrix(),t.middleGroup.resetMatrix(),this.isMoving=!1},e}(Dh),xv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dims=["x","y"],e.cfgFields=["dims"],e.cacheScaleDefs={},e}return r(e,t),e.prototype.hasDim=function(t){return this.dims.includes(t)},e.prototype.getScale=function(t){var e=this.context.view;return"x"===t?e.getXScale():e.getYScales()[0]},e.prototype.resetDim=function(t){var e=this.context.view;if(this.hasDim(t)&&this.cacheScaleDefs[t]){var i=this.getScale(t);e.scale(i.field,this.cacheScaleDefs[t]),this.cacheScaleDefs[t]=null}},e.prototype.reset=function(){this.resetDim("x"),this.resetDim("y"),this.context.view.render(!0)},e}(Dh),wv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.startPoint=null,e.starting=!1,e.startCache={},e}return r(e,t),e.prototype.start=function(){var t=this;this.startPoint=this.context.getCurrentPoint(),this.starting=!0,N(this.dims,(function(e){var i=t.getScale(e),n=i.min,r=i.max,o=i.values;t.startCache[e]={min:n,max:r,values:o}}))},e.prototype.end=function(){this.startPoint=null,this.starting=!1,this.startCache={}},e.prototype.translate=function(){var t=this;if(this.starting){var e=this.startPoint,i=this.context.view.getCoordinate(),n=this.context.getCurrentPoint(),r=i.invert(e),o=i.invert(n),a=o.x-r.x,s=o.y-r.y,l=this.context.view;N(this.dims,(function(e){t.translateDim(e,{x:-1*a,y:-1*s})})),l.render(!0)}},e.prototype.translateDim=function(t,e){if(this.hasDim(t)){var i=this.getScale(t);i.isLinear&&this.translateLinear(t,i,e)}},e.prototype.translateLinear=function(t,e,i){var n=this.context.view,r=this.startCache[t],o=r.min,a=r.max,s=a-o,l=i[t]*s;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:e.nice,min:o,max:a}),n.scale(e.field,{nice:!1,min:o+l,max:a+l})},e.prototype.reset=function(){t.prototype.reset.call(this),this.startPoint=null,this.starting=!1},e}(xv),Cv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.zoomRatio=.05,e}return r(e,t),e.prototype.zoomIn=function(){this.zoom(this.zoomRatio)},e.prototype.zoom=function(t){var e=this;N(this.dims,(function(i){e.zoomDim(i,t)})),this.context.view.render(!0)},e.prototype.zoomOut=function(){this.zoom(-1*this.zoomRatio)},e.prototype.zoomDim=function(t,e){if(this.hasDim(t)){var i=this.getScale(t);i.isLinear&&this.zoomLinear(t,i,e)}},e.prototype.zoomLinear=function(t,e,i){var n=this.context.view;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:e.nice,min:e.min,max:e.max});var r=this.cacheScaleDefs[t],o=r.max-r.min,a=e.min,s=e.max,l=i*o,h=a-l,u=s+l,c=(u-h)/o;u>h&&c<100&&c>.01&&n.scale(e.field,{nice:!1,min:a-l,max:s+l})},e}(xv);var bv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.scroll=function(t){var e=this.context,i=e.view,n=e.event;if(i.getOptions().scrollbar){var r=(null==t?void 0:t.wheelDelta)||1,o=i.getController("scrollbar"),a=i.getXScale(),s=i.getOptions().data,l=Kt(nt(s,a.field)),h=Kt(a.values),u=o.getValue(),c=Math.floor((l-h)*u)+(function(t){return t.gEvent.originalEvent.deltaY>0}(n)?r:-r),p=ut(c/(l-h)+r/(l-h)/1e4,0,1);o.setValue(p)}},e}(Dh);function Mv(t){return t.isInPlot()}function Sv(t){return t.gEvent.preventDefault(),t.gEvent.originalEvent.deltaY>0}Vu("dark",Bu(Pp)),me("canvas",zf),me("svg",Lg),uc("Polygon",Zg),uc("Interval",Ng),uc("Schema",Qg),uc("Path",Pg),uc("Point",Ug),uc("Line",Wg),uc("Area",Og),uc("Edge",Dg),uc("Heatmap",Rg),uc("Violin",Kg),Lc("base",Jc),Lc("interval",sd),Lc("pie",ud),Lc("polar",hd),Ic("overlap",(function(t,e,i,n){var r=new pd;N(e,(function(t){for(var e=t.find((function(t){return"text"===t.get("type")})),i=e.attr(),n=i.x,o=i.y,a=!1,s=0;s<=8;s++){var l=fd(e,n,o,s);if(r.hasGap(l)){r.fillGap(l),a=!0;break}}a||t.remove(!0)})),r.destroy()})),Ic("distribute",(function(t,e,i,n){if(t.length&&e.length){var r=t[0]?t[0].offset:0,o=e[0].get("coordinate"),a=o.getRadius(),s=o.getCenter();if(r>0){var l=2*(a+r)+28,h={start:o.start,end:o.end},u=[[],[]];t.forEach((function(t){t&&("right"===t.textAlign?u[0].push(t):u[1].push(t))})),u.forEach((function(t,i){var n=l/14;t.length>n&&(t.sort((function(t,e){return e["..percent"]-t["..percent"]})),t.splice(n,t.length-n)),t.sort((function(t,e){return t.y-e.y})),function(t,e,i,n,r,o){var a,s=!0,l=n.start,h=n.end,u=Math.min(l.y,h.y),c=Math.abs(l.y-h.y),p=0,f=Number.MIN_VALUE,g=e.map((function(t){return t.y>p&&(p=t.y),t.y<f&&(f=t.y),{size:i,targets:[t.y-u]}}));for(f-=u,p-u>c&&(c=p-u);s;)for(g.forEach((function(t){var e=(Math.min.apply(f,t.targets)+Math.max.apply(f,t.targets))/2;t.pos=Math.min(Math.max(f,e-t.size/2),c-t.size)})),s=!1,a=g.length;a--;)if(a>0){var d=g[a-1],y=g[a];d.pos+d.size>y.pos&&(d.size+=y.size,d.targets=d.targets.concat(y.targets),d.pos+d.size>c&&(d.pos=c-d.size),g.splice(a,1),s=!0)}a=0,g.forEach((function(t){var n=u+i/2;t.targets.forEach((function(){e[a].y=t.pos+n,n+=i,a++}))}));for(var v={},m=0,x=t;m<x.length;m++){var w=x[m];v[w.get("id")]=w}e.forEach((function(t){var e=t.r*t.r,i=Math.pow(Math.abs(t.y-r.y),2);if(e<i)t.x=r.x;else{var n=Math.sqrt(e-i);t.x=o?r.x+n:r.x-n}var a=v[t.id];a.attr("x",t.x),a.attr("y",t.y);var s=U(a.getChildren(),(function(t){return"text"===t.get("type")}));s&&(s.attr("y",t.y),s.attr("x",t.x))}))}(e,t,14,h,s,i)}))}N(t,(function(t){if(t&&t.labelLine){var e=t.offset,i=t.angle,n=eh(s.x,s.y,a,i),r=eh(s.x,s.y,a+e/2,i),o=t.x+Ht(t,"offsetX",0),l=t.y+Ht(t,"offsetY",0),h={x:o-4*Math.cos(i),y:l-4*Math.sin(i)};H(t.labelLine)||(t.labelLine={}),t.labelLine.path=["M ".concat(n.x),"".concat(n.y," Q").concat(r.x),"".concat(r.y," ").concat(h.x),h.y].join(",")}}))}})),Ic("fixed-overlap",(function(t,e,i,n){var r=new pd;N(e,(function(t){(function(t,e,i){void 0===i&&(i=100);var n,r=t.attr(),o=r.x,a=r.y,s=t.getCanvasBBox(),l=Math.sqrt(s.width*s.width+s.height*s.height),h=1,u=0,c=0;if(e.hasGap(s))return e.fillGap(s),!0;for(var p,f,g=!1,d=0,y={};Math.min(Math.abs(u),Math.abs(c))<l&&d<i;)if(p=h+=-1,f=void 0,c=~~(n=[(f=.1*p)*Math.cos(f),f*Math.sin(f)])[1],((u=~~n[0])||c)&&!y["".concat(u,"-").concat(c)]&&(t.attr({x:o+u,y:a+c}),u+c<0&&t.attr("textAlign","right"),d++,e.hasGap(t.getCanvasBBox()))){e.fillGap(t.getCanvasBBox()),g=!0,y["".concat(u,"-").concat(c)]=!0;break}return g})(t.find((function(t){return"text"===t.get("type")})),r)||t.remove(!0)})),r.destroy()})),Ic("hide-overlap",(function(t,e,i,n){for(var r=0;r<e.length;r++){var o=e[r];if(e[r].get("visible"))for(var a=r+1;a<e.length;a++){var s=e[a];if(o&&s&&o!==s&&s.get("visible"))bd(qc(o,t[r],Ht(t[r],"background.padding")),qc(s,t[a],Ht(t[a],"background.padding")))&&e[a].set("visible",!1)}}})),Ic("limit-in-shape",(function(t,e,i,n){N(e,(function(t,e){var n=t.getCanvasBBox(),r=i[e].getBBox();(n.minX<r.minX||n.minY<r.minY||n.maxX>r.maxX||n.maxY>r.maxY)&&t.remove(!0)}))})),Ic("limit-in-canvas",(function(t,e,i,n){N(e,(function(t){var e=n.minX,i=n.minY,r=n.maxX,o=n.maxY,a=t.getCanvasBBox(),s=a.minX,l=a.minY,h=a.maxX,u=a.maxY,c=a.x,p=a.y,f=a.width,g=a.height,d=c,y=p;(s<e||h<e)&&(d=e),(l<i||u<i)&&(y=i),s>r?d=r-f:h>r&&(d-=h-r),l>o?y=o-g:u>o&&(y-=u-o),d===c&&y===p||Nc(t,d-c,y-p)}))})),Ic("limit-in-plot",(function(t,e,i,n,r){if(!(e.length<=0)){var o=(null==r?void 0:r.direction)||["top","right","bottom","left"],a=(null==r?void 0:r.action)||"translate",s=(null==r?void 0:r.margin)||0,l=e[0].get("coordinate");if(l){var h=function(t,e){void 0===e&&(e=0);var i=t.start,n=t.end,r=t.getWidth(),o=t.getHeight(),a=Math.min(i.x,n.x),s=Math.min(i.y,n.y);return hh.fromRange(a-e,s-e,a+r+e,s+o+e)}(l,s),u=h.minX,c=h.minY,p=h.maxX,f=h.maxY;N(e,(function(t){var e=t.getCanvasBBox(),i=e.minX,n=e.minY,r=e.maxX,s=e.maxY,l=e.x,h=e.y,g=e.width,d=e.height,y=l,v=h;if(o.indexOf("left")>=0&&(i<u||r<u)&&(y=u),o.indexOf("top")>=0&&(n<c||s<c)&&(v=c),o.indexOf("right")>=0&&(i>p?y=p-g:r>p&&(y-=r-p)),o.indexOf("bottom")>=0&&(n>f?v=f-d:s>f&&(v-=s-f)),y!==l||v!==h){var m=y-l;if("translate"===a)Nc(t,m,v-h);else if("ellipsis"===a){t.findAll((function(t){return"text"===t.get("type")})).forEach((function(t){var e=jt(t.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),i=t.getCanvasBBox(),n=function(t,e,i){var n,r=Id("...",i);n=et(t)?t:xt(t);var o,a,s=e,l=[];if(Id(t,i)<=e)return t;for(;o=n.substr(0,16),!((a=Id(o,i))+r>s&&a>s);)if(l.push(o),s-=a,!(n=n.substr(16)))return l.join("");for(;o=n.substr(0,1),!((a=Id(o,i))+r>s);)if(l.push(o),s-=a,!(n=n.substr(1)))return l.join("");return"".concat(l.join(""),"...")}(t.attr("text"),i.width-Math.abs(m),e);t.attr("text",n)}))}else t.hide()}}))}}})),Ic("pie-outer",(function(t,e,i,n){var r=_(t,(function(t){return!z(t)})),o=e[0]&&e[0].get("coordinate");if(o){for(var a=o.getCenter(),s=o.getRadius(),l={},h=0,u=e;h<u.length;h++){var c=u[h];l[c.get("id")]=c}var p=Ht(r[0],"labelHeight",14),f=Ht(r[0],"offset",0);if(!(f<=0)){var g="right",d=lt(r,(function(t){return t.x<a.x?"left":g})),y=o.start,v=o.end,m=Math.min(2*(s+f+p),o.getHeight()),x=m/2,w={minX:y.x,maxX:v.x,minY:a.y-x,maxY:a.y+x};N(d,(function(t,e){var i=Math.floor(m/p);t.length>i&&(t.sort((function(t,e){return e.percent-t.percent})),N(t,(function(t,e){e+1>i&&(l[t.id].set("visible",!1),t.invisible=!0)}))),cd(t,p,w)})),N(d,(function(t,e){N(t,(function(t){var i=e===g,n=l[t.id].getChildByIndex(0);if(n){var r=s+f,h=t.y-a.y,u=Math.pow(r,2),c=Math.pow(h,2),p=u-c>0?u-c:0,d=Math.sqrt(p),y=Math.abs(Math.cos(t.angle)*r);t.x=i?a.x+Math.max(d,y):a.x-Math.max(d,y)}n&&(n.attr("y",t.y),n.attr("x",t.x)),function(t,e){var i=e.getCenter(),n=e.getRadius();if(t&&t.labelLine){var r=t.angle,o=t.offset,a=eh(i.x,i.y,n,r),s=t.x+Ht(t,"offsetX",0)*(Math.cos(r)>0?1:-1),l=t.y+Ht(t,"offsetY",0)*(Math.sin(r)>0?1:-1),h={x:s-4*Math.cos(r),y:l-4*Math.sin(r)},u=t.labelLine.smooth,c=[],p=h.x-i.x,f=h.y-i.y,g=Math.atan(f/p);if(p<0&&(g+=Math.PI),!1===u){H(t.labelLine)||(t.labelLine={});var d=0;(r<0&&r>-Math.PI/2||r>1.5*Math.PI)&&h.y>a.y&&(d=1),r>=0&&r<Math.PI/2&&h.y>a.y&&(d=1),r>=Math.PI/2&&r<Math.PI&&a.y>h.y&&(d=1),(r<-Math.PI/2||r>=Math.PI&&r<1.5*Math.PI)&&a.y>h.y&&(d=1);var y=o/2>4?4:Math.max(o/2-1,0),v=eh(i.x,i.y,n+y,r),m=eh(i.x,i.y,n+o/2,g);c.push("M ".concat(a.x," ").concat(a.y)),c.push("L ".concat(v.x," ").concat(v.y)),c.push("A ".concat(i.x," ").concat(i.y," 0 ").concat(0," ").concat(d," ").concat(m.x," ").concat(m.y)),c.push("L ".concat(h.x," ").concat(h.y))}else{v=eh(i.x,i.y,n+(o/2>4?4:Math.max(o/2-1,0)),r);var x=a.x<i.x?1:-1;c.push("M ".concat(h.x," ").concat(h.y));var w=(a.y-i.y)/(a.x-i.x),C=(h.y-i.y)/(h.x-i.x);Math.abs(w-C)>Math.pow(Math.E,-16)&&c.push.apply(c,["C",h.x+4*x,h.y,2*v.x-a.x,2*v.y-a.y,a.x,a.y]),c.push("L ".concat(a.x," ").concat(a.y))}t.labelLine.path=c.join(" ")}}(t,o)}))}))}}})),Ic("adjust-color",(function(t,e,i){if(0!==i.length){var n=i[0].get("element").geometry.theme,r=n.labels||{},o=r.fillColorLight,a=r.fillColorDark;i.forEach((function(t,i){var r=e[i].find((function(t){return"text"===t.get("type")})),s=hh.fromObject(t.getBBox()),l=hh.fromObject(r.getCanvasBBox()),h=!s.contains(l),u=function(t){var e=$r.toRGB(t).toUpperCase();if(Sd[e])return Sd[e];var i=$r.rgb2arr(e);return(299*i[0]+587*i[1]+114*i[2])/1e3<128}(t.attr("fill"));h?r.attr(n.overflowLabels.style):u?o&&r.attr("fill",o):a&&r.attr("fill",a)}))}})),Ic("interval-adjust-position",(function(t,e,i){var n;if(0!==i.length){var r=null===(n=i[0])||void 0===n?void 0:n.get("element"),o=null==r?void 0:r.geometry;if(o&&"interval"===o.type)Ad(o,e,i)&&i.forEach((function(t,i){var n=e[i];!function(t,e,i){var n=t.coordinate,r=hh.fromObject(i.getBBox()),o=jc(e);n.isTransposed?o.attr({x:r.minX+r.width/2,textAlign:"center"}):o.attr({y:r.minY+r.height/2,textBaseline:"middle"})}(o,n,t)}))}})),Ic("interval-hide-overlap",(function(t,e,i){var n;if(0!==i.length){var r=null===(n=i[0])||void 0===n?void 0:n.get("element"),o=null==r?void 0:r.geometry;if(o&&"interval"===o.type){var a,s=function(t){var e=[],i=Math.max(Math.floor(t.length/500),1);return N(t,(function(t,n){n%i==0?e.push(t):t.set("visible",!1)})),e}(e),l=o.getXYFields()[0],h=[],u=[],c=lt(s,(function(t){return t.get("data")[l]})),p=it(zt(s,(function(t){return t.get("data")[l]})));s.forEach((function(t){t.set("visible",!0)}));var f=function(t){t&&(t.length&&u.push(t.pop()),u.push.apply(u,t))};for(Kt(p)>0&&(a=p.shift(),f(c[a])),Kt(p)>0&&(a=p.pop(),f(c[a])),N(p.reverse(),(function(t){f(c[t])}));u.length>0;){var g=u.shift();g.get("visible")&&(Uc(g,h)?g.set("visible",!1):h.push(g))}}}})),Ic("point-adjust-position",(function(t,e,i,n,r){var o,a;if(0!==i.length){var s=null===(o=i[0])||void 0===o?void 0:o.get("element"),l=null==s?void 0:s.geometry;if(l&&"point"===l.type){var h=l.getXYFields(),u=h[0],c=h[1],p=lt(e,(function(t){return t.get("data")[u]})),f=[],g=r&&r.offset||(null===(a=t[0])||void 0===a?void 0:a.offset)||12;zt(W(p).reverse(),(function(t){for(var e=function(t,e){var i=t.getXYFields()[1],n=[],r=e.sort((function(t,e){return t.get("data")[i]-t.get("data")[i]}));return r.length>0&&n.push(r.shift()),r.length>0&&n.push(r.pop()),n.push.apply(n,r),n}(l,p[t]);e.length;){var i=e.shift(),n=jc(i);if(Td(f,i,(function(t,e){return t.get("data")[u]===e.get("data")[u]&&t.get("data")[c]===e.get("data")[c]})))n.set("visible",!1);else{var r=!1;Bd(f,i)&&(n.attr("y",n.attr("y")+2*g),r=Bd(f,i)),r?n.set("visible",!1):f.push(i)}}}))}}})),Ic("pie-spider",(function(t,e,i,n){var r=e[0]&&e[0].get("coordinate");if(r){for(var o=r.getCenter(),a=r.getRadius(),s={},l=0,h=e;l<h.length;l++){var u=h[l];s[u.get("id")]=u}var c=Ht(t[0],"labelHeight",14),p=Math.max(Ht(t[0],"offset",0),4);N(t,(function(t){if(t&&Ht(s,[t.id])){var e=t.x>o.x||t.x===o.x&&t.y>o.y,i=z(t.offsetX)?4:t.offsetX,n=eh(o.x,o.y,a+4,t.angle),r=p+i;t.x=o.x+(e?1:-1)*(a+r),t.y=n.y}}));var f=r.start,g=r.end,d="right",y=lt(t,(function(t){return t.x<o.x?"left":d})),v=2*(a+p)+c;N(y,(function(t){var e=t.length*c;e>v&&(v=Math.min(e,Math.abs(f.y-g.y)))}));var m={minX:f.x,maxX:g.x,minY:o.y-v/2,maxY:o.y+v/2};N(y,(function(t,e){var i=v/c;t.length>i&&(t.sort((function(t,e){return e.percent-t.percent})),N(t,(function(t,e){e>i&&(s[t.id].set("visible",!1),t.invisible=!0)}))),cd(t,c,m)}));var x=m.minY,w=m.maxY;N(y,(function(t,e){var i=e===d;N(t,(function(t){var e=Ht(s,t&&[t.id]);if(e)if(t.y<x||t.y>w)e.set("visible",!1);else{var n=e.getChildByIndex(0),o=n.getCanvasBBox(),a=i?o.x:o.maxX,l=o.y+o.height/2;Nc(n,t.x-a,t.y-l),t.labelLine&&function(t,e,i){var n,r=e.getCenter(),o=e.getRadius(),a={x:t.x-(i?4:-4),y:t.y},s=eh(r.x,r.y,o+4,t.angle),l={x:a.x,y:a.y},h={x:s.x,y:s.y},u=eh(r.x,r.y,o,t.angle);if(a.y!==s.y){var c=i?4:-4;l.y=a.y,t.angle<0&&t.angle>=-Math.PI/2&&(l.x=Math.max(s.x,a.x-c),a.y<s.y?h.y=l.y:(h.y=s.y,h.x=Math.max(h.x,l.x-c))),t.angle>0&&t.angle<Math.PI/2&&(l.x=Math.max(s.x,a.x-c),a.y>s.y?h.y=l.y:(h.y=s.y,h.x=Math.max(h.x,l.x-c))),t.angle>Math.PI/2&&(l.x=Math.min(s.x,a.x-c),a.y>s.y?h.y=l.y:(h.y=s.y,h.x=Math.min(h.x,l.x-c))),t.angle<-Math.PI/2&&(l.x=Math.min(s.x,a.x-c),a.y<s.y?h.y=l.y:(h.y=s.y,h.x=Math.min(h.x,l.x-c)))}n=["M ".concat(a.x,",").concat(a.y),"L ".concat(l.x,",").concat(l.y),"L ".concat(h.x,",").concat(h.y),"L ".concat(s.x,",").concat(s.y),"L ".concat(u.x,",").concat(u.y)].join(" "),t.labelLine=Dt({},t.labelLine,{path:n})}(t,r,i)}}))}))}})),Ic("path-adjust-position",(function(t,e,i,n,r){var o,a;if(0!==i.length){var s=null===(o=i[0])||void 0===o?void 0:o.get("element"),l=null==s?void 0:s.geometry;if(l&&!(["path","line","area"].indexOf(l.type)<0)){var h=l.getXYFields(),u=h[0],c=h[1],p=lt(e,(function(t){return t.get("data")[u]})),f=[],g=r&&r.offset||(null===(a=t[0])||void 0===a?void 0:a.offset)||12;zt(W(p).reverse(),(function(t){for(var e=function(t,e){var i=t.getXYFields()[1],n=[],r=e.sort((function(t,e){return t.get("data")[i]-t.get("data")[i]}));return r.length>0&&n.push(r.shift()),r.length>0&&n.push(r.pop()),n.push.apply(n,r),n}(l,p[t]);e.length;){var i=e.shift(),n=jc(i);if(kd(f,i,(function(t,e){return t.get("data")[u]===e.get("data")[u]&&t.get("data")[c]===e.get("data")[c]})))n.set("visible",!1);else{var r=!1;Ld(f,i)&&(n.attr("y",n.attr("y")+2*g),r=Ld(f,i)),r?n.set("visible",!1):f.push(i)}}}))}}})),vc("fade-in",(function(t,e,i){var n={fillOpacity:z(t.attr("fillOpacity"))?1:t.attr("fillOpacity"),strokeOpacity:z(t.attr("strokeOpacity"))?1:t.attr("strokeOpacity"),opacity:z(t.attr("opacity"))?1:t.attr("opacity")};t.attr({fillOpacity:0,strokeOpacity:0,opacity:0}),t.animate(n,e)})),vc("fade-out",(function(t,e,i){var n=e.easing,r=e.duration,o=e.delay;t.animate({fillOpacity:0,strokeOpacity:0,opacity:0},r,n,(function(){t.remove(!0)}),o)})),vc("grow-in-x",(function(t,e,i){Ed(t,e,i.coordinate,i.minYPoint,"x")})),vc("grow-in-xy",(function(t,e,i){Ed(t,e,i.coordinate,i.minYPoint,"xy")})),vc("grow-in-y",(function(t,e,i){Ed(t,e,i.coordinate,i.minYPoint,"y")})),vc("scale-in-x",(function(t,e,i){var n=t.getBBox(),r=t.get("origin").mappingData.points,o=r[0].y-r[1].y>0?n.maxX:n.minX,a=(n.minY+n.maxY)/2;t.applyToMatrix([o,a,1]);var s=Hi(t.getMatrix(),[["t",-o,-a],["s",.01,1],["t",o,a]]);t.setMatrix(s),t.animate({matrix:Hi(t.getMatrix(),[["t",-o,-a],["s",100,1],["t",o,a]])},e)})),vc("scale-in-y",(function(t,e,i){var n=t.getBBox(),r=t.get("origin").mappingData,o=(n.minX+n.maxX)/2,a=r.points,s=a[0].y-a[1].y<=0?n.maxY:n.minY;t.applyToMatrix([o,s,1]);var l=Hi(t.getMatrix(),[["t",-o,-s],["s",1,.01],["t",o,s]]);t.setMatrix(l),t.animate({matrix:Hi(t.getMatrix(),[["t",-o,-s],["s",1,100],["t",o,s]])},e)})),vc("wave-in",(function(t,e,i){var n=gh(i.coordinate,20),r=n.type,o=n.startState,a=n.endState,s=t.setClip({type:r,attrs:o});s.animate(a,l(l({},e),{callback:function(){t&&!t.get("destroyed")&&t.set("clipShape",null),s.remove(!0)}}))})),vc("zoom-in",(function(t,e,i){Rd(t,e,"zoomIn")})),vc("zoom-out",(function(t,e,i){Rd(t,e,"zoomOut")})),vc("position-update",(function(t,e,i){var n=i.toAttrs,r=n.x,o=n.y;delete n.x,delete n.y,t.attr(n),t.animate({x:r,y:o},e)})),vc("sector-path-update",(function(t,e,i){var n=i.toAttrs,r=i.coordinate,o=n.path||[],a=o.map((function(t){return t[0]}));if(!(o.length<1)){var s=Dd(o),h=s.startAngle,u=s.endAngle,c=s.radius,p=s.innerRadius,f=Dd(t.attr("path")),g=f.startAngle,d=f.endAngle,y=r.getCenter(),v=h-g,m=u-d;0!==v||0!==m?t.animate((function(t){var e=g+t*v,i=d+t*m;return l(l({},n),{path:Xt(a,["M","A","A","Z"])?nh(y.x,y.y,c,e,i):ih(y.x,y.y,c,e,i,p)})}),l(l({},e),{callback:function(){t.attr("path",o)}})):t.attr("path",o)}})),vc("path-in",(function(t,e,i){var n=t.getTotalLength();t.attr("lineDash",[n]),t.animate((function(t){return{lineDashOffset:(1-t)*n}}),e)})),Fh("rect",Hd),Fh("mirror",Vd),Fh("list",Xd),Fh("matrix",zd),Fh("circle",Gd),Fh("tree",Nd),tc("axis",ey),tc("legend",oy),tc("tooltip",gc),tc("annotation",Ud),tc("slider",ay),tc("scrollbar",sy),Yh("tooltip",cy),Yh("sibling-tooltip",py),Yh("ellipsis-text",fy),Yh("element-active",vy),Yh("element-single-active",by),Yh("element-range-active",wy),Yh("element-highlight",Py),Yh("element-highlight-by-x",Ey),Yh("element-highlight-by-color",Iy),Yh("element-single-highlight",Oy),Yh("element-range-highlight",Fy),Yh("element-sibling-highlight",Fy,{effectSiblings:!0,effectByRecord:!0}),Yh("element-selected",Ry),Yh("element-single-selected",_y),Yh("element-range-selected",Dy),Yh("element-link-by-color",my),Yh("active-region",uy),Yh("list-active",Gy),Yh("list-selected",Wy),Yh("list-highlight",Ny),Yh("list-unchecked",jy),Yh("list-checked",Zy),Yh("list-focus",Ky),Yh("list-radio",tv),Yh("legend-item-highlight",Ny,{componentNames:["legend"]}),Yh("axis-label-highlight",Ny,{componentNames:["axis"]}),Yh("rect-mask",nv),Yh("x-rect-mask",av,{dim:"x"}),Yh("y-rect-mask",av,{dim:"y"}),Yh("circle-mask",iv),Yh("path-mask",sv),Yh("smooth-path-mask",lv),Yh("cursor",hv),Yh("data-filter",uv),Yh("brush",pv),Yh("brush-x",pv,{dims:["x"]}),Yh("brush-y",pv,{dims:["y"]}),Yh("sibling-filter",fv),Yh("sibling-x-filter",fv),Yh("sibling-y-filter",fv),Yh("element-filter",gv),Yh("element-sibling-filter",dv),Yh("element-sibling-filter-record",dv,{byRecord:!0}),Yh("view-drag",vv),Yh("view-move",mv),Yh("scale-translate",wv),Yh("scale-zoom",Cv),Yh("reset-button",yv,{name:"reset-button",text:"reset"}),Yh("mousewheel-scroll",bv),Tu("tooltip",{start:[{trigger:"plot:mousemove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"plot:touchmove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"plot:mouseleave",action:"tooltip:hide"},{trigger:"plot:leave",action:"tooltip:hide"},{trigger:"plot:touchend",action:"tooltip:hide"}]}),Tu("ellipsis-text",{start:[{trigger:"legend-item-name:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"legend-item-name:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"legend-item-name:mouseleave",action:"ellipsis-text:hide"},{trigger:"legend-item-name:touchend",action:"ellipsis-text:hide"},{trigger:"axis-label:mouseleave",action:"ellipsis-text:hide"},{trigger:"axis-label:touchend",action:"ellipsis-text:hide"}]}),Tu("element-active",{start:[{trigger:"element:mouseenter",action:"element-active:active"}],end:[{trigger:"element:mouseleave",action:"element-active:reset"}]}),Tu("element-selected",{start:[{trigger:"element:click",action:"element-selected:toggle"}]}),Tu("element-highlight",{start:[{trigger:"element:mouseenter",action:"element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight:reset"}]}),Tu("element-highlight-by-x",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-x:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-x:reset"}]}),Tu("element-highlight-by-color",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-color:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-color:reset"}]}),Tu("legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","element-active:reset"]}]}),Tu("legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","element-highlight:reset"]}]}),Tu("axis-label-highlight",{start:[{trigger:"axis-label:mouseenter",action:["axis-label-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"axis-label:mouseleave",action:["axis-label-highlight:reset","element-highlight:reset"]}]}),Tu("element-list-highlight",{start:[{trigger:"element:mouseenter",action:["list-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"element:mouseleave",action:["list-highlight:reset","element-highlight:reset"]}]}),Tu("element-range-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:function(t){return!t.isInShape("mask")},action:["rect-mask:start","rect-mask:show"]},{trigger:"mask:dragstart",action:["rect-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:drag",action:["rect-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end"]},{trigger:"mask:dragend",action:["rect-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear","rect-mask:end","rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear","rect-mask:hide"]}]}),Tu("brush",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:Mv,action:["brush:start","rect-mask:start","rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:Mv,action:["rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:Mv,action:["brush:filter","brush:end","rect-mask:end","rect-mask:hide","reset-button:show"]}],rollback:[{trigger:"reset-button:click",action:["brush:reset","reset-button:hide","cursor:crosshair"]}]}),Tu("brush-visible",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"plot:mousedown",action:["rect-mask:start","rect-mask:show"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end","rect-mask:hide","element-filter:filter","element-range-highlight:clear"]}],rollback:[{trigger:"dblclick",action:["element-filter:clear"]}]}),Tu("brush-x",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:Mv,action:["brush-x:start","x-rect-mask:start","x-rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:Mv,action:["x-rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:Mv,action:["brush-x:filter","brush-x:end","x-rect-mask:end","x-rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]}),Tu("element-path-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:Mv,action:"path-mask:start"},{trigger:"mousedown",isEnable:Mv,action:"path-mask:show"}],processing:[{trigger:"mousemove",action:"path-mask:addPoint"}],end:[{trigger:"mouseup",action:"path-mask:end"}],rollback:[{trigger:"dblclick",action:"path-mask:hide"}]}),Tu("element-single-selected",{start:[{trigger:"element:click",action:"element-single-selected:toggle"}]}),Tu("legend-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:["cursor:pointer","list-radio:show"]},{trigger:"legend-item:mouseleave",action:["cursor:default","list-radio:hide"]}],start:[{trigger:"legend-item:click",isEnable:function(t){return!t.isInShape("legend-item-radio")},action:["list-unchecked:toggle","data-filter:filter","list-radio:show"]},{trigger:"legend-item-radio:mouseenter",action:["list-radio:showTip"]},{trigger:"legend-item-radio:mouseleave",action:["list-radio:hideTip"]},{trigger:"legend-item-radio:click",action:["list-focus:toggle","data-filter:filter","list-radio:show"]}]}),Tu("continuous-filter",{start:[{trigger:"legend:valuechanged",action:"data-filter:filter"}]}),Tu("continuous-visible-filter",{start:[{trigger:"legend:valuechanged",action:"element-filter:filter"}]}),Tu("legend-visible-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:"cursor:pointer"},{trigger:"legend-item:mouseleave",action:"cursor:default"}],start:[{trigger:"legend-item:click",action:["list-unchecked:toggle","element-filter:filter"]}]}),Tu("active-region",{start:[{trigger:"plot:mousemove",action:"active-region:show"}],end:[{trigger:"plot:mouseleave",action:"active-region:hide"}]}),Tu("view-zoom",{start:[{trigger:"plot:mousewheel",isEnable:function(t){return Sv(t.event)},action:"scale-zoom:zoomOut",throttle:{wait:100,leading:!0,trailing:!1}},{trigger:"plot:mousewheel",isEnable:function(t){return!Sv(t.event)},action:"scale-zoom:zoomIn",throttle:{wait:100,leading:!0,trailing:!1}}]}),Tu("sibling-tooltip",{start:[{trigger:"plot:mousemove",action:"sibling-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"sibling-tooltip:hide"}]}),Tu("plot-mousewheel-scroll",{start:[{trigger:"plot:mousewheel",action:"mousewheel-scroll:scroll"}]})}}}))}();
|