dsh-auto-flow 0.1.3 → 0.1.4
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.
- package/README.md +7 -7
- package/lib/client.js +6 -6
- package/package.json +6 -6
- package/units/admin/dist/_app-config-5.8.0-18922dcf.js +1 -0
- package/units/admin/dist/assets/md5.worker-B0-iFZWB.js +1 -0
- package/units/admin/dist/css/action-aHup9Hr5.css +1 -0
- package/units/admin/dist/css/auth-zsf-kax4.css +1 -0
- package/units/admin/dist/css/basic-yruhSUQb.css +1 -0
- package/units/admin/dist/css/bootstrap-CKD5aX2L.css +1 -0
- package/units/admin/dist/css/dept-B3FHhfsr.css +1 -0
- package/units/admin/dist/css/form-470zJ7UT.css +1 -0
- package/units/admin/dist/css/login-Bw5Nl-gj.css +1 -0
- package/units/admin/dist/css/permission-DqvAf1zb.css +1 -0
- package/units/admin/dist/css/popover-DBj9D_Jz.css +1 -0
- package/units/admin/dist/css/queries-1ejzLr5-.css +1 -0
- package/units/admin/dist/css/redirectTest-CF1opdi-.css +1 -0
- package/units/admin/dist/css/theme-toggle-CJLHZmGO.css +2 -0
- package/units/admin/dist/css/tippy-DkTQMyWH.css +1 -0
- package/units/admin/dist/css/use-vben-form-CYorFwo-.css +1 -0
- package/units/admin/dist/css/vue-router-CJxWTMt5.css +1 -0
- package/units/admin/dist/favicon.ico +0 -0
- package/units/admin/dist/index.html +1 -0
- package/units/admin/dist/js/AntdIcon-D_SVERYA.js +57 -0
- package/units/admin/dist/js/BaseInput-C2Spb38p.js +1 -0
- package/units/admin/dist/js/Card-6IzHzYN7.js +1 -0
- package/units/admin/dist/js/CheckCircleFilled-67tB_4cN.js +1 -0
- package/units/admin/dist/js/CheckOutlined-Bf7wTusf.js +1 -0
- package/units/admin/dist/js/Checkbox-BagwZuW3.js +1 -0
- package/units/admin/dist/js/CloseCircleFilled-BKyDjM8p.js +1 -0
- package/units/admin/dist/js/CloseOutlined-BLgJZ7w3.js +1 -0
- package/units/admin/dist/js/Compact-CUDNZk-M.js +1 -0
- package/units/admin/dist/js/DownOutlined-B64U2nEZ.js +1 -0
- package/units/admin/dist/js/EyeOutlined-Dj3fYrJT.js +1 -0
- package/units/admin/dist/js/FormItemContext-yVBZa_Lc.js +1 -0
- package/units/admin/dist/js/FormLabel-BPTL7SL8.js +1 -0
- package/units/admin/dist/js/KeyCode-DNtAKsAc.js +1 -0
- package/units/admin/dist/js/Keyframes-K60KFfv3.js +1 -0
- package/units/admin/dist/js/LeftOutlined-CLjTZZDE.js +1 -0
- package/units/admin/dist/js/LoadingOutlined-BECatyEr.js +1 -0
- package/units/admin/dist/js/Portal-CMwruv99.js +1 -0
- package/units/admin/dist/js/Presence-DZdxGLl_.js +3 -0
- package/units/admin/dist/js/Primitive-Bd4gGCKi.js +1 -0
- package/units/admin/dist/js/ResizeObserver.es-CWGnbEXw.js +1 -0
- package/units/admin/dist/js/RovingFocusItem-xhW3lh78.js +1 -0
- package/units/admin/dist/js/SearchOutlined-DF6FWkDn.js +1 -0
- package/units/admin/dist/js/Switch-D6HN0ZCk.js +1 -0
- package/units/admin/dist/js/TabsContent-Vh9Ls1_j.js +1 -0
- package/units/admin/dist/js/TabsList-Bt-9VzWh.js +1 -0
- package/units/admin/dist/js/TabsTrigger-Dn9tGmTi.js +1 -0
- package/units/admin/dist/js/TextArea-BDNOKNem.js +12 -0
- package/units/admin/dist/js/VisuallyHidden-DJX8bLCx.js +1 -0
- package/units/admin/dist/js/VisuallyHiddenInput-DfClD2Vm.js +1 -0
- package/units/admin/dist/js/_getTag-BV4iAKZM.js +1 -0
- package/units/admin/dist/js/_plugin-vue_export-helper-BDNMzG2s.js +1 -0
- package/units/admin/dist/js/about-H8VS_d8e.js +1 -0
- package/units/admin/dist/js/access-Dg0UHs4V.js +2 -0
- package/units/admin/dist/js/access-context-Ci9hY7x9.js +1 -0
- package/units/admin/dist/js/action-CThTd-6t.js +3 -0
- package/units/admin/dist/js/analysis-chart-card-CECoATCi.js +1 -0
- package/units/admin/dist/js/analytics-DpacnvNf.js +1 -0
- package/units/admin/dist/js/analytics-trends-CEDOrG0d.js +1 -0
- package/units/admin/dist/js/analytics-visits-data-CD_E7Tiq.js +1 -0
- package/units/admin/dist/js/analytics-visits-sales-BgwXDDCO.js +1 -0
- package/units/admin/dist/js/analytics-visits-source-C1rEPH6J.js +1 -0
- package/units/admin/dist/js/analytics-visits-yl3xV5iw.js +1 -0
- package/units/admin/dist/js/antd-Dhsq8XjI.js +1 -0
- package/units/admin/dist/js/asyncToGenerator-BVcl5FgL.js +1 -0
- package/units/admin/dist/js/auth-BQcKaaUS.js +2 -0
- package/units/admin/dist/js/auth-D6ZiexPX.js +193 -0
- package/units/admin/dist/js/auth-DCu17vp8.js +2 -0
- package/units/admin/dist/js/auth-title-o8Ho7TGm.js +1 -0
- package/units/admin/dist/js/authentication-CgivL9aI.js +1 -0
- package/units/admin/dist/js/authentication-DaSE31EI.js +1 -0
- package/units/admin/dist/js/authentication-nB_1w7ei.js +1 -0
- package/units/admin/dist/js/auto-complete-Ci99iPb1.js +1 -0
- package/units/admin/dist/js/avatar-DEx3V5Ls.js +1 -0
- package/units/admin/dist/js/base-Bp0-WZnP.js +1 -0
- package/units/admin/dist/js/base-BpmL2wxH.js +1 -0
- package/units/admin/dist/js/base-setting-DIIH1NOU.js +1 -0
- package/units/admin/dist/js/basic-B-0sLOKq.js +5 -0
- package/units/admin/dist/js/bootstrap-BrFlTBoi.js +9 -0
- package/units/admin/dist/js/button-C-ThaooP.js +1 -0
- package/units/admin/dist/js/card-BXslM1Qb.js +19 -0
- package/units/admin/dist/js/cascader-EGaxNr2j.js +4 -0
- package/units/admin/dist/js/checkbox-DXBtzHQf.js +1 -0
- package/units/admin/dist/js/checkbox-QlIayNp-.js +1 -0
- package/units/admin/dist/js/chevron-right-DKbBKD7m.js +1 -0
- package/units/admin/dist/js/chevrons-right-CfUAAFgX.js +1 -0
- package/units/admin/dist/js/classPrivateFieldGet2-Da3qNXef.js +1 -0
- package/units/admin/dist/js/cn-BpFrWzX2.js +1 -0
- package/units/admin/dist/js/code-login-CQmzl_U8.js +1 -0
- package/units/admin/dist/js/collapseMotion-BRiDiDTE.js +3 -0
- package/units/admin/dist/js/colors-AY6V03eF.js +1 -0
- package/units/admin/dist/js/com-D2SkrpH9.js +1 -0
- package/units/admin/dist/js/com-DZCr50p4.js +1 -0
- package/units/admin/dist/js/coming-soon-Byr2aA1f.js +1 -0
- package/units/admin/dist/js/common-AfxesE33.js +1 -0
- package/units/admin/dist/js/common-BdmafBf4.js +1 -0
- package/units/admin/dist/js/common-DIpLZ9c2.js +1 -0
- package/units/admin/dist/js/compact-item-Cb3c6_J8.js +1 -0
- package/units/admin/dist/js/config-provider-CI_q15r5.js +14 -0
- package/units/admin/dist/js/core-AXsCQsuO.js +1 -0
- package/units/admin/dist/js/createContext-BhSoyHru.js +1 -0
- package/units/admin/dist/js/createLucideIcon-B-s2hcwM.js +1 -0
- package/units/admin/dist/js/css-BNMMIIlX.js +1 -0
- package/units/admin/dist/js/date-picker-BxUbKR4R.js +1 -0
- package/units/admin/dist/js/dayjs.min-CbsKVrjN.js +1 -0
- package/units/admin/dist/js/dbObj-Cmi8TF1H.js +1 -0
- package/units/admin/dist/js/dbSource-BJAHmHj0.js +1 -0
- package/units/admin/dist/js/defu-1oANYd5X.js +1 -0
- package/units/admin/dist/js/demos-BSnMPpZY.js +1 -0
- package/units/admin/dist/js/demos-Bb7WGJxd.js +1 -0
- package/units/admin/dist/js/dept-CuNXyEt4.js +1 -0
- package/units/admin/dist/js/descriptions-Ch76XW5U.js +1 -0
- package/units/admin/dist/js/devWarning-DlchpATv.js +1 -0
- package/units/admin/dist/js/dict-DOtV3_4-.js +1 -0
- package/units/admin/dist/js/dist-36ceGs5k.js +1 -0
- package/units/admin/dist/js/dist-BHK3cm1y.js +1 -0
- package/units/admin/dist/js/dist-zStm9ma4.js +1 -0
- package/units/admin/dist/js/divider-k5Za02HP.js +1 -0
- package/units/admin/dist/js/en-CcDeh6_6.js +1 -0
- package/units/admin/dist/js/en_US-9JMyR6tX.js +1 -0
- package/units/admin/dist/js/extends-2sa-knmS.js +1 -0
- package/units/admin/dist/js/fallback-CzpQ6B02.js +2 -0
- package/units/admin/dist/js/forbidden-BKR0MQ6C.js +1 -0
- package/units/admin/dist/js/forget-password-Mts0pA5q.js +1 -0
- package/units/admin/dist/js/form-BQaLxrrK.js +1 -0
- package/units/admin/dist/js/form-BpBloId5.js +1 -0
- package/units/admin/dist/js/form-Bv6fORxI.js +1 -0
- package/units/admin/dist/js/form-C3y9FKxu.js +1 -0
- package/units/admin/dist/js/form-C7Pj9vXQ.js +1 -0
- package/units/admin/dist/js/form-CI44jks1.js +1 -0
- package/units/admin/dist/js/form-D4Q6qNNN.js +1 -0
- package/units/admin/dist/js/form-DiFaE-88.js +1 -0
- package/units/admin/dist/js/form-Do98l85l.js +1 -0
- package/units/admin/dist/js/form-Dyj4BPLA.js +1 -0
- package/units/admin/dist/js/form-QqzTHUST.js +1 -0
- package/units/admin/dist/js/form-dkyEINdu.js +1 -0
- package/units/admin/dist/js/generatePicker-BJF_peHd.js +47 -0
- package/units/admin/dist/js/getActiveElement-DWEoD8ZB.js +1 -0
- package/units/admin/dist/js/hasIn-ClQwYsMm.js +1 -0
- package/units/admin/dist/js/icon-403-CeA7fNA3.js +1 -0
- package/units/admin/dist/js/icon-404-LIMFR_F7.js +1 -0
- package/units/admin/dist/js/icon-500-C49VYDh7.js +1 -0
- package/units/admin/dist/js/icon-NQh4MGwu.js +1 -0
- package/units/admin/dist/js/icon-button-C9U7tfRH.js +1 -0
- package/units/admin/dist/js/icon-coming-soon-s2HnvrPZ.js +1 -0
- package/units/admin/dist/js/icon-offline-ChSsCkg-.js +1 -0
- package/units/admin/dist/js/image-lI1i3VUG.js +1 -0
- package/units/admin/dist/js/import-Bbc1ZSBT.js +1 -0
- package/units/admin/dist/js/index.esm-BaAEdHqE.js +20 -0
- package/units/admin/dist/js/initDefaultProps-BWk1HtYL.js +1 -0
- package/units/admin/dist/js/input-BnHVSCp_.js +1 -0
- package/units/admin/dist/js/input-number-DQcHQpmM.js +13 -0
- package/units/admin/dist/js/internal-error-BkiMdmKo.js +1 -0
- package/units/admin/dist/js/isMobile-DH4W6rzp.js +1 -0
- package/units/admin/dist/js/isObjectLike-DNah0Hql.js +1 -0
- package/units/admin/dist/js/isPlainObject-BapiF464.js +1 -0
- package/units/admin/dist/js/isValueEqualOrExist-DTdDTgiL.js +1 -0
- package/units/admin/dist/js/isVisible-B1N4qR6W.js +1 -0
- package/units/admin/dist/js/lib-Bmm6Zibp.js +1 -0
- package/units/admin/dist/js/locales-BzeBRC87.js +2 -0
- package/units/admin/dist/js/login-CGMzfdS6.js +1 -0
- package/units/admin/dist/js/mentions--j3yGzH6.js +1 -0
- package/units/admin/dist/js/menu-C6c0goQs.js +13 -0
- package/units/admin/dist/js/menu-badge-CJAYBROC.js +1 -0
- package/units/admin/dist/js/merge-C7H1qBst.js +1 -0
- package/units/admin/dist/js/modal-CPZyadpe.js +1 -0
- package/units/admin/dist/js/modern-B8HqBoe9.js +1 -0
- package/units/admin/dist/js/module-BO9eA775.js +1 -0
- package/units/admin/dist/js/motion-B5x07IV4.js +11 -0
- package/units/admin/dist/js/motion-BOHcFsJm.js +1 -0
- package/units/admin/dist/js/motionUtil-BeNb4tZl.js +1 -0
- package/units/admin/dist/js/move-DwH62FFn.js +4 -0
- package/units/admin/dist/js/not-found-CjODjmOv.js +1 -0
- package/units/admin/dist/js/notification-setting-DrVfFjYc.js +1 -0
- package/units/admin/dist/js/nprogress-Dk6obLn-.js +1 -0
- package/units/admin/dist/js/nullish-DHihWhf5.js +1 -0
- package/units/admin/dist/js/objectSpread2-BmonrgTA.js +1 -0
- package/units/admin/dist/js/objectWithoutProperties-CjlH8YfO.js +1 -0
- package/units/admin/dist/js/offline-3ArACcBw.js +1 -0
- package/units/admin/dist/js/omit-V7k4bB-7.js +1 -0
- package/units/admin/dist/js/page-CUj0_xi0.js +1 -0
- package/units/admin/dist/js/page-DT-KvuL-.js +1 -0
- package/units/admin/dist/js/page-DTf_u0sm.js +1 -0
- package/units/admin/dist/js/param-CgA-oVr0.js +1 -0
- package/units/admin/dist/js/password-setting-cksLZEGg.js +1 -0
- package/units/admin/dist/js/permission-DFk3fxJz.js +1 -0
- package/units/admin/dist/js/pickAttrs-D8Qf_P2g.js +18 -0
- package/units/admin/dist/js/pinia-CVzGVvvc.js +1 -0
- package/units/admin/dist/js/popover-CNucu7Ul.js +1 -0
- package/units/admin/dist/js/post-BnG6icFe.js +1 -0
- package/units/admin/dist/js/preferences-Bc7aUO3U.js +1 -0
- package/units/admin/dist/js/preferences-C8rVqNJ_.js +5 -0
- package/units/admin/dist/js/preferences-D4_rDnaP.js +5 -0
- package/units/admin/dist/js/preferences-Dy8TIlZp.js +4 -0
- package/units/admin/dist/js/preload-helper-CU6kWphI.js +1 -0
- package/units/admin/dist/js/profile-4DIHvR8y.js +1 -0
- package/units/admin/dist/js/profile-B411QZNQ.js +1 -0
- package/units/admin/dist/js/profile-ilF0wwxo.js +1 -0
- package/units/admin/dist/js/profile-tkuLhW9J.js +1 -0
- package/units/admin/dist/js/prop-ziaCwSFy.js +1 -0
- package/units/admin/dist/js/qrcode-login-BJXIEVRH.js +8 -0
- package/units/admin/dist/js/queries-DnKWVRdY.js +34 -0
- package/units/admin/dist/js/radio-BoTi7-X2.js +2 -0
- package/units/admin/dist/js/raf-CR9Bw2Uc.js +1 -0
- package/units/admin/dist/js/rate-BJfR3TUr.js +1 -0
- package/units/admin/dist/js/redirectTest-B5T1-Jne.js +18 -0
- package/units/admin/dist/js/register-xAanC1Cu.js +1 -0
- package/units/admin/dist/js/render-content-BAfypNam.js +2 -0
- package/units/admin/dist/js/responsiveObserve-Dm97rv-l.js +1 -0
- package/units/admin/dist/js/role-Dc-TZ-vg.js +1 -0
- package/units/admin/dist/js/rolldown-runtime-C0FnF6B9.js +1 -0
- package/units/admin/dist/js/rotate-cw-C3g2cToZ.js +1 -0
- package/units/admin/dist/js/routes-CYPWgNVZ.js +2 -0
- package/units/admin/dist/js/rule-CSvxN7Eb.js +1 -0
- package/units/admin/dist/js/rule-D3aEE8wF.js +1 -0
- package/units/admin/dist/js/security-setting-Dcd-MAoZ.js +1 -0
- package/units/admin/dist/js/select-D7fo4VkM.js +1 -0
- package/units/admin/dist/js/sensitivity-BBesma7M.js +1 -0
- package/units/admin/dist/js/shallowequal-B0Nddkvy.js +1 -0
- package/units/admin/dist/js/slide-DuXsWhgC.js +4 -0
- package/units/admin/dist/js/sortable.complete.esm-CNCefCy_.js +2 -0
- package/units/admin/dist/js/space-CDxxf7EU.js +1 -0
- package/units/admin/dist/js/spin-Dg2Mplcr.js +1 -0
- package/units/admin/dist/js/src-BmGUvAXX.js +81 -0
- package/units/admin/dist/js/src-Br7hUwEj.js +1 -0
- package/units/admin/dist/js/src-BrM_QOeo.js +1 -0
- package/units/admin/dist/js/src-D3S9SW1a.js +3 -0
- package/units/admin/dist/js/src-n9w0bgQx.js +1 -0
- package/units/admin/dist/js/statusUtils-9IC-qnYE.js +1 -0
- package/units/admin/dist/js/style-B9IMAsCi.js +21 -0
- package/units/admin/dist/js/style-BhidHeUi.js +12 -0
- package/units/admin/dist/js/style-CHcg2zHk.js +7 -0
- package/units/admin/dist/js/style-DmZoKVN3.js +7 -0
- package/units/admin/dist/js/styleChecker-MycAgL-X.js +1 -0
- package/units/admin/dist/js/switch-CrtnK6Oe.js +1 -0
- package/units/admin/dist/js/sys-CRVgLfE8.js +1 -0
- package/units/admin/dist/js/sys-Dnk8syMi.js +1 -0
- package/units/admin/dist/js/test01-K4kGRBwT.js +1 -0
- package/units/admin/dist/js/test02-CgKYzv1j.js +1 -0
- package/units/admin/dist/js/test03-ColS943X.js +1 -0
- package/units/admin/dist/js/test04-Ds5O-hdb.js +1 -0
- package/units/admin/dist/js/testAuth-Cev9zpUa.js +1 -0
- package/units/admin/dist/js/theme-toggle-CV8rqpc2.js +1 -0
- package/units/admin/dist/js/time-picker-D5alnLNu.js +1 -0
- package/units/admin/dist/js/tippy-BeW8XFvM.js +1 -0
- package/units/admin/dist/js/tooltip-byXD69cf.js +1 -0
- package/units/admin/dist/js/tooltip-kFATdYGQ.js +1 -0
- package/units/admin/dist/js/tree-CiQ7uWLB.js +1 -0
- package/units/admin/dist/js/tree-select-DOXu37r6.js +1 -0
- package/units/admin/dist/js/ui-9JFOdkA_.js +1 -0
- package/units/admin/dist/js/ui-CCmUukCu.js +1 -0
- package/units/admin/dist/js/ui-NNY_r1AM.js +1 -0
- package/units/admin/dist/js/upload-8POeQI1t.js +9 -0
- package/units/admin/dist/js/uploadFile-C6kJVikN.js +1 -0
- package/units/admin/dist/js/use-echarts-RPSrRCbE.js +36 -0
- package/units/admin/dist/js/use-preferences-Dkw6C3gD.js +1 -0
- package/units/admin/dist/js/use-vben-form-Bu9y7w9l.js +64 -0
- package/units/admin/dist/js/useApi-CROJJdhE-Bq7VnE3W.js +1 -0
- package/units/admin/dist/js/useConfigInject-CtYQ48ma.js +35 -0
- package/units/admin/dist/js/useId-BfUeThv0.js +1 -0
- package/units/admin/dist/js/useMaxLevel-C2ucbgZF.js +1 -0
- package/units/admin/dist/js/useMemo-BfnNh0Jc.js +1 -0
- package/units/admin/dist/js/useMergedState-Djkv3N7Y.js +1 -0
- package/units/admin/dist/js/usePrimitiveElement-Bp-wf6B8.js +1 -0
- package/units/admin/dist/js/useRefs-CkrOoIXO.js +1 -0
- package/units/admin/dist/js/useSelector-DCEcK8hP.js +1 -0
- package/units/admin/dist/js/useState-5K7Mxs5j.js +1 -0
- package/units/admin/dist/js/useTypeahead-DvXTHF6f.js +1 -0
- package/units/admin/dist/js/user-BwUPX5Tq.js +1 -0
- package/units/admin/dist/js/user-D7ZHE5Ux.js +1 -0
- package/units/admin/dist/js/userPoolAssign-YldfhmSG.js +1 -0
- package/units/admin/dist/js/userResetPwd-CKkBtLPG.js +1 -0
- package/units/admin/dist/js/utils-3-wDR-ha.js +8 -0
- package/units/admin/dist/js/vben-DFekmuwN.js +1 -0
- package/units/admin/dist/js/vc-overflow-COuYm8-R.js +1 -0
- package/units/admin/dist/js/vc-resize-observer-C413Aiqt.js +1 -0
- package/units/admin/dist/js/vc-trigger-DhXWM9vm.js +1 -0
- package/units/admin/dist/js/vc-virtual-list-DNzx1LKL.js +1 -0
- package/units/admin/dist/js/vnode-B8X2FDdJ.js +1 -0
- package/units/admin/dist/js/vue-router-B9fANaZA.js +2 -0
- package/units/admin/dist/js/vue-types-CEi2nPn2.js +8 -0
- package/units/admin/dist/js/vue.runtime.esm-bundler-CRWT0Mex.js +5 -0
- package/units/admin/dist/js/warning-BLl3S_cO.js +1 -0
- package/units/admin/dist/js/wave-DVCIUuK4.js +1 -0
- package/units/admin/dist/js/window-CaFIYn4R.js +1 -0
- package/units/admin/dist/js/workspace-DqgvLgx0.js +1 -0
- package/units/admin/dist/js/zh-cn-D7Npxerz.js +1 -0
- package/units/admin/dist/js/zoom-BjqERYgt.js +4 -0
- package/units/admin/dist/jse/index-index-CXlGzx-6.js +13 -0
- package/units/editor/dist/assets/index-DX_zec00.css +1 -0
- package/units/editor/dist/assets/index-Db8mJQT6.js +463 -0
- package/units/editor/dist/index.html +13 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-C0FnF6B9.js";import{B as t,Ct as n,G as r,H as i,J as a,Mt as o,N as s,O as c,R as l,S as u,W as d,gt as f,st as p,v as m,z as h}from"./vue.runtime.esm-bundler-CRWT0Mex.js";import{t as g}from"./objectSpread2-BmonrgTA.js";import{t as _}from"./asyncToGenerator-BVcl5FgL.js";import{t as v}from"./use-preferences-Dkw6C3gD.js";import{D as y,M as b,k as x}from"./dist-36ceGs5k.js";import{v as S,w as C}from"./dist-BHK3cm1y.js";var w=function(e,t){return w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},w(e,t)};function T(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);w(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var E=`12px sans-serif`,D=20,O=100,k=`007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N`;function A(e){var t={};if(typeof JSON>`u`)return t;for(var n=0;n<e.length;n++){var r=String.fromCharCode(n+32);t[r]=(e.charCodeAt(n)-D)/O}return t}var j=A(k),M={createCanvas:function(){return typeof document<`u`&&document.createElement(`canvas`)},measureText:(function(){var e,t;return function(n,r){if(!e){var i=M.createCanvas();e=i&&i.getContext(`2d`)}if(e)return t!==r&&(t=e.font=r||`12px sans-serif`),e.measureText(n);n=n||``,r=r||`12px sans-serif`;var a=/((?:\d+)?\.?\d*)px/.exec(r),o=a&&+a[1]||12,s=0;if(r.indexOf(`mono`)>=0)s=o*n.length;else for(var c=0;c<n.length;c++){var l=j[n[c]];s+=l==null?o:l*o}return{width:s}}})(),loadImage:function(e,t,n){var r=new Image;return r.onload=t,r.onerror=n,r.src=e,r},getTime:function(){return Date.now?Date.now():+new Date}};function ee(e){for(var t in M)M.hasOwnProperty(t)&&e[t]&&(M[t]=e[t])}var te=e({EPSILON:()=>nt,HashMap:()=>Xe,RADIAN_TO_DEGREE:()=>tt,assert:()=>He,assignProps:()=>_e,bind:()=>De,clone:()=>P,concatArray:()=>Ze,createCanvas:()=>ve,createHashMap:()=>K,createObject:()=>Qe,curry:()=>Oe,defaults:()=>L,disableUserSelect:()=>$e,each:()=>z,eqNaN:()=>Le,extend:()=>I,filter:()=>Ce,find:()=>we,guid:()=>me,hasOwn:()=>q,indexOf:()=>R,inherits:()=>ye,isArray:()=>V,isArrayLike:()=>xe,isBuiltInObject:()=>je,isDom:()=>Ne,isFunction:()=>H,isGradientObject:()=>Pe,isImagePatternObject:()=>Fe,isNumber:()=>Ae,isObject:()=>W,isPrimitive:()=>Ke,isRegExp:()=>Ie,isString:()=>U,isStringSafe:()=>ke,isTypedArray:()=>Me,keys:()=>Te,logError:()=>he,map:()=>B,merge:()=>F,mergeAll:()=>ge,mixin:()=>be,noop:()=>et,normalizeCssArray:()=>Ve,reduce:()=>Se,retrieve:()=>Re,retrieve2:()=>G,retrieve3:()=>ze,setAsPrimitive:()=>Ge,slice:()=>Be,trim:()=>Ue}),ne=Se([`Function`,`RegExp`,`Date`,`Error`,`CanvasGradient`,`CanvasPattern`,`Image`,`Canvas`],function(e,t){return e[`[object `+t+`]`]=!0,e},{}),re=Se([`Int8`,`Uint8`,`Uint8Clamped`,`Int16`,`Uint16`,`Int32`,`Uint32`,`Float32`,`Float64`],function(e,t){return e[`[object `+t+`Array]`]=!0,e},{}),ie=Object.prototype.toString,ae=Array.prototype,oe=ae.forEach,se=ae.filter,ce=ae.slice,le=ae.map,ue=function(){}.constructor,de=ue?ue.prototype:null,fe=`__proto__`,N=2311,pe=Math.pow(2,53)-1;function me(){return N>=pe&&(N=0),N++}function he(){var e=[...arguments];typeof console<`u`&&console.error.apply(console,e)}function P(e){if(typeof e!=`object`||!e)return e;var t=e,n=ie.call(e);if(n===`[object Array]`){if(!Ke(e)){t=[];for(var r=0,i=e.length;r<i;r++)t[r]=P(e[r])}}else if(re[n]){if(!Ke(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var r=0,i=e.length;r<i;r++)t[r]=e[r]}}}else if(!ne[n]&&!Ke(e)&&!Ne(e))for(var o in t={},e)e.hasOwnProperty(o)&&o!==fe&&(t[o]=P(e[o]));return t}function F(e,t,n){if(!W(t)||!W(e))return n?P(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==fe){var i=e[r],a=t[r];W(a)&&W(i)&&!V(a)&&!V(i)&&!Ne(a)&&!Ne(i)&&!je(a)&&!je(i)&&!Ke(a)&&!Ke(i)?F(i,a,n):(n||!(r in e))&&(e[r]=P(t[r]))}return e}function ge(e,t){for(var n=e[0],r=1,i=e.length;r<i;r++)n=F(n,e[r],t);return n}function I(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==fe&&(e[n]=t[n]);return e}function _e(e,t,n){e=e||{};for(var r=0;r<n.length;r++){var i=n[r];e[i]=t[i]}return e}function L(e,t,n){for(var r=Te(t),i=0,a=r.length;i<a;i++){var o=r[i];(n?t[o]!=null:e[o]==null)&&(e[o]=t[o])}return e}var ve=M.createCanvas;function R(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n}return-1}function ye(e,t){var n=e.prototype;function r(){}for(var i in r.prototype=t.prototype,e.prototype=new r,n)n.hasOwnProperty(i)&&(e.prototype[i]=n[i]);e.prototype.constructor=e,e.superClass=t}function be(e,t,n){if(e=`prototype`in e?e.prototype:e,t=`prototype`in t?t.prototype:t,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(t),i=0;i<r.length;i++){var a=r[i];a!==`constructor`&&(n?t[a]!=null:e[a]==null)&&(e[a]=t[a])}else L(e,t,n)}function xe(e){return!e||typeof e==`string`?!1:typeof e.length==`number`}function z(e,t,n){if(e&&t){if(e.forEach&&e.forEach===oe)e.forEach(t,n);else if(e.length===+e.length)for(var r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(n,e[a],a,e)}}function B(e,t,n){if(!e)return[];if(!t)return Be(e);if(e.map&&e.map===le)return e.map(t,n);for(var r=[],i=0,a=e.length;i<a;i++)r.push(t.call(n,e[i],i,e));return r}function Se(e,t,n,r){if(e&&t){for(var i=0,a=e.length;i<a;i++)n=t.call(r,n,e[i],i,e);return n}}function Ce(e,t,n){if(!e)return[];if(!t)return Be(e);if(e.filter&&e.filter===se)return e.filter(t,n);for(var r=[],i=0,a=e.length;i<a;i++)t.call(n,e[i],i,e)&&r.push(e[i]);return r}function we(e,t,n){if(e&&t){for(var r=0,i=e.length;r<i;r++)if(t.call(n,e[r],r,e))return e[r]}}function Te(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}function Ee(e,t){var n=[...arguments].slice(2);return function(){return e.apply(t,n.concat(ce.call(arguments)))}}var De=de&&H(de.bind)?de.call.bind(de.bind):Ee;function Oe(e){var t=[...arguments].slice(1);return function(){return e.apply(this,t.concat(ce.call(arguments)))}}function V(e){return Array.isArray?Array.isArray(e):ie.call(e)===`[object Array]`}function H(e){return typeof e==`function`}function U(e){return typeof e==`string`}function ke(e){return ie.call(e)===`[object String]`}function Ae(e){return typeof e==`number`}function W(e){var t=typeof e;return t===`function`||!!e&&t===`object`}function je(e){return!!ne[ie.call(e)]}function Me(e){return!!re[ie.call(e)]}function Ne(e){return typeof e==`object`&&typeof e.nodeType==`number`&&typeof e.ownerDocument==`object`}function Pe(e){return e.colorStops!=null}function Fe(e){return e.image!=null}function Ie(e){return ie.call(e)===`[object RegExp]`}function Le(e){return e!==e}function Re(){for(var e=[...arguments],t=0,n=e.length;t<n;t++)if(e[t]!=null)return e[t]}function G(e,t){return e==null?t:e}function ze(e,t,n){return e==null?t==null?n:t:e}function Be(e){var t=[...arguments].slice(1);return ce.apply(e,t)}function Ve(e){if(typeof e==`number`)return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function He(e,t){if(!e)throw Error(t)}function Ue(e){return e==null?null:typeof e.trim==`function`?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``)}var We=`__ec_primitive__`;function Ge(e){e[We]=!0}function Ke(e){return e[We]}var qe=function(){function e(){this.data={}}return e.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},e.prototype.has=function(e){return this.data.hasOwnProperty(e)},e.prototype.get=function(e){return this.data[e]},e.prototype.set=function(e,t){return this.data[e]=t,this},e.prototype.keys=function(){return Te(this.data)},e.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},e}(),Je=typeof Map==`function`;function Ye(){return Je?new Map:new qe}var Xe=function(){function e(t){var n=V(t);this.data=Ye();var r=this;t instanceof e?t.each(i):t&&z(t,i);function i(e,t){n?r.set(e,t):r.set(t,e)}}return e.prototype.hasKey=function(e){return this.data.has(e)},e.prototype.get=function(e){return this.data.get(e)},e.prototype.set=function(e,t){return this.data.set(e,t),t},e.prototype.each=function(e,t){this.data.forEach(function(n,r){e.call(t,n,r)})},e.prototype.keys=function(){var e=this.data.keys();return Je?Array.from(e):e},e.prototype.removeKey=function(e){this.data.delete(e)},e}();function K(e){return new Xe(e)}function Ze(e,t){for(var n=new e.constructor(e.length+t.length),r=0;r<e.length;r++)n[r]=e[r];for(var i=e.length,r=0;r<t.length;r++)n[r+i]=t[r];return n}function Qe(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&I(n,t),n}function $e(e){var t=e.style;t.webkitUserSelect=`none`,t.userSelect=`none`,t.webkitTapHighlightColor=`rgba(0,0,0,0)`,t[`-webkit-touch-callout`]=`none`}function q(e,t){return e.hasOwnProperty(t)}function et(){}var tt=180/Math.PI,nt=Number.EPSILON||Math.pow(2,-52),rt=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),J=new(function(){function e(){this.browser=new rt,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<`u`}return e}());typeof wx==`object`&&typeof wx.getSystemInfoSync==`function`?(J.wxa=!0,J.touchEventsSupported=!0):typeof document>`u`&&typeof self<`u`?J.worker=!0:!J.hasGlobalWindow||`Deno`in window||typeof navigator<`u`&&typeof navigator.userAgent==`string`&&navigator.userAgent.indexOf(`Node.js`)>-1?(J.node=!0,J.svgSupported=!0):it(navigator.userAgent,J);function it(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);if(r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),a&&(n.edge=!0,n.version=a[1],n.newEdge=+a[1].split(`.`)[0]>18),o&&(n.weChat=!0),t.svgSupported=typeof SVGRect<`u`,t.touchEventsSupported=`ontouchstart`in window&&!n.ie&&!n.edge,t.pointerEventsSupported=`onpointerdown`in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported=typeof document<`u`){var s=document.documentElement.style;t.transform3dSupported=(n.ie&&`transition`in s||n.edge||`WebKitCSSMatrix`in window&&`m11`in new WebKitCSSMatrix||`MozPerspective`in s)&&!(`OTransition`in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}}var at=`.`,ot=`___EC__COMPONENT__CONTAINER___`,st=`___EC__EXTENDED_CLASS___`;function ct(e){var t={main:``,sub:``};if(e){var n=e.split(at);t.main=n[0]||``,t.sub=n[1]||``}return t}function lt(e){He(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),`componentType "`+e+`" illegal`)}function ut(e){return!!(e&&e[st])}function dt(e,t){e.$constructor=e,e.extend=function(e){var t=this,n;return ft(t)?n=function(e){T(t,e);function t(){return e.apply(this,arguments)||this}return t}(t):(n=function(){(e.$constructor||t).apply(this,arguments)},ye(n,this)),I(n.prototype,e),n[st]=!0,n.extend=this.extend,n.superCall=gt,n.superApply=_t,n.superClass=t,n}}function ft(e){return H(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function pt(e,t){e.extend=t.extend}var mt=Math.round(Math.random()*10);function ht(e){var t=[`__\0is_clz`,mt++].join(`_`);e.prototype[t]=!0,e.isInstance=function(e){return!!(e&&e[t])}}function gt(e,t){var n=[...arguments].slice(2);return this.superClass.prototype[t].apply(e,n)}function _t(e,t,n){return this.superClass.prototype[t].apply(e,n)}function vt(e){var t={};e.registerClass=function(e){var r=e.type||e.prototype.type;if(r){lt(r),e.prototype.type=r;var i=ct(r);if(!i.sub)t[i.main]=e;else if(i.sub!==ot){var a=n(i);a[i.sub]=e}}return e},e.getClass=function(e,n,r){var i=t[e];if(i&&i[ot]&&(i=n?i[n]:null),r&&!i)throw Error(n?`Component `+e+`.`+(n||``)+` is used but not imported.`:e+`.type should be specified.`);return i},e.getClassesByMainType=function(e){var n=ct(e),r=[],i=t[n.main];return i&&i[ot]?z(i,function(e,t){t!==ot&&r.push(e)}):r.push(i),r},e.hasClass=function(e){return!!t[ct(e).main]},e.getAllClassMainTypes=function(){var e=[];return z(t,function(t,n){e.push(n)}),e},e.hasSubTypes=function(e){var n=t[ct(e).main];return n&&n[ot]};function n(e){var n=t[e.main];return(!n||!n[ot])&&(n=t[e.main]={},n[ot]=!0),n}}function yt(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t=t||!1,function(n,r,i){for(var a={},o=0;o<e.length;o++){var s=e[o][1];if(!(r&&R(r,s)>=0||i&&R(i,s)<0)){var c=n.getShallow(s,t);c!=null&&(a[e[o][0]]=c)}}return a}}var bt=yt([[`fill`,`color`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`opacity`],[`shadowColor`]]),xt=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return bt(this,e,t)},e}(),St=function(){function e(e){this.value=e}return e}(),Ct=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new St(e);return this.insertEntry(t),t},e.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},e.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),wt=function(){function e(e){this._list=new Ct,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var n=this._list,r=this._map,i=null;if(r[e]==null){var a=n.len(),o=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var s=n.head;n.remove(s),delete r[s.key],i=s.value,this._lastRemovedEntry=s}o?o.value=t:o=new St(t),o.key=e,n.insertEntry(o),r[e]=o}return i},e.prototype.get=function(e){var t=this._map[e],n=this._list;if(t!=null)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),Tt=new wt(50);function Et(e){if(typeof e==`string`){var t=Tt.get(e);return t&&t.image}return e}function Dt(e,t,n,r,i){if(!e)return t;if(typeof e==`string`){if(t&&t.__zrImageSrc===e||!n)return t;var a=Tt.get(e),o={hostEl:n,cb:r,cbPayload:i};return a?(t=a.image,!kt(t)&&a.pending.push(o)):(t=M.loadImage(e,Ot,Ot),t.__zrImageSrc=e,Tt.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}return e}function Ot(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function kt(e){return e&&e.width&&e.height}var At=e({clone:()=>zt,copy:()=>Nt,create:()=>jt,identity:()=>Mt,invert:()=>Rt,mul:()=>Pt,rotate:()=>It,scale:()=>Lt,translate:()=>Ft});function jt(){return[1,0,0,1,0,0]}function Mt(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function Nt(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function Pt(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],a=t[0]*n[2]+t[2]*n[3],o=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],c=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=c,e}function Ft(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function It(e,t,n,r){r===void 0&&(r=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],c=t[3],l=t[5],u=Math.sin(n),d=Math.cos(n);return e[0]=i*d+s*u,e[1]=-i*u+s*d,e[2]=a*d+c*u,e[3]=-a*u+d*c,e[4]=d*(o-r[0])+u*(l-r[1])+r[0],e[5]=d*(l-r[1])-u*(o-r[0])+r[1],e}function Lt(e,t,n){var r=n[0],i=n[1];return e[0]=t[0]*r,e[1]=t[1]*i,e[2]=t[2]*r,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*i,e}function Rt(e,t){var n=t[0],r=t[2],i=t[4],a=t[1],o=t[3],s=t[5],c=n*o-a*r;return c?(c=1/c,e[0]=o*c,e[1]=-a*c,e[2]=-r*c,e[3]=n*c,e[4]=(r*s-o*i)*c,e[5]=(a*i-n*s)*c,e):null}function zt(e){var t=jt();return Nt(t,e),t}var Bt=e({add:()=>Gt,applyTransform:()=>un,clone:()=>Ut,copy:()=>Ht,create:()=>Vt,dist:()=>an,distSquare:()=>sn,distance:()=>rn,distanceSquare:()=>on,div:()=>$t,dot:()=>en,len:()=>Jt,lenSquare:()=>Xt,length:()=>Yt,lengthSquare:()=>Zt,lerp:()=>ln,max:()=>fn,min:()=>dn,mul:()=>Qt,negate:()=>cn,normalize:()=>nn,scale:()=>tn,scaleAndAdd:()=>Kt,set:()=>Wt,sub:()=>qt});function Vt(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function Ht(e,t){return e[0]=t[0],e[1]=t[1],e}function Ut(e){return[e[0],e[1]]}function Wt(e,t,n){return e[0]=t,e[1]=n,e}function Gt(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function Kt(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e}function qt(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function Jt(e){return Math.sqrt(Xt(e))}var Yt=Jt;function Xt(e){return e[0]*e[0]+e[1]*e[1]}var Zt=Xt;function Qt(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e}function $t(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e}function en(e,t){return e[0]*t[0]+e[1]*t[1]}function tn(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function nn(e,t){var n=Jt(t);return n===0?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function rn(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var an=rn;function on(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var sn=on;function cn(e,t){return e[0]=-t[0],e[1]=-t[1],e}function ln(e,t,n,r){return e[0]=t[0]+r*(n[0]-t[0]),e[1]=t[1]+r*(n[1]-t[1]),e}function un(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e}function dn(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function fn(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var Y=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,n){e.x=t,e.y=n},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},e.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},e.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},e.scaleAndAdd=function(e,t,n,r){e.x=t.x+n.x*r,e.y=t.y+n.y*r},e.lerp=function(e,t,n,r){var i=1-r;e.x=i*t.x+r*n.x,e.y=i*t.y+r*n.y},e}(),pn=Math.min,mn=Math.max,hn=Math.abs,gn=[`x`,`y`],_n=[`width`,`height`],vn=new Y,yn=new Y,bn=new Y,xn=new Y,Sn=In(),Cn=Sn.minTv,wn=Sn.maxTv,Tn=[0,0],X=function(){function e(e,t,n,r){Dn(this,e,t,n,r)}return e.set=function(e,t,n,r,i){return r<0&&(t+=r,r=-r),i<0&&(n+=i,i=-i),e.x=t,e.y=n,e.width=r,e.height=i,e},e.prototype.union=function(e){var t=pn(e.x,this.x),n=pn(e.y,this.y);this.width=isFinite(this.x)&&isFinite(this.width)?mn(e.x+e.width,this.x+this.width)-t:e.width,this.height=isFinite(this.y)&&isFinite(this.height)?mn(e.y+e.height,this.y+this.height)-n:e.height,this.x=t,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){return kn(jt(),this,e)},e.prototype.intersect=function(t,n,r){return e.intersect(this,t,n,r)},e.intersect=function(t,n,r,i){r&&Y.set(r,0,0);var a=i&&i.outIntersectRect||null,o=i&&i.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!t||!n)return!1;t instanceof e||(t=Dn(Mn,t.x,t.y,t.width,t.height)),n instanceof e||(n=Dn(Nn,n.x,n.y,n.width,n.height));var s=!!r;Sn.reset(i,s);var c=Sn.touchThreshold,l=t.x+c,u=t.x+t.width-c,d=t.y+c,f=t.y+t.height-c,p=n.x+c,m=n.x+n.width-c,h=n.y+c,g=n.y+n.height-c;if(l>u||d>f||p>m||h>g)return!1;var _=!(u<p||m<l||f<h||g<d);return(s||a)&&(Tn[0]=1/0,Tn[1]=0,Fn(l,u,p,m,0,s,a,o),Fn(d,f,h,g,1,s,a,o),s&&Y.copy(r,_?Sn.useDir?Sn.dirMinTv:Cn:wn)),_},e.contain=function(e,t,n){return t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},e.prototype.contain=function(t,n){return e.contain(this,t,n)},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(e){On(this,e)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t?t.x:0,t?t.y:0,t?t.width:0,t?t.height:0)},e.copy=function(e,t){return e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height,e},e.applyTransform=function(e,t,n){if(!n){e!==t&&On(e,t);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var r=n[0],i=n[3],a=n[4],o=n[5];e.x=t.x*r+a,e.y=t.y*i+o,e.width=t.width*r,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}vn.x=bn.x=t.x,vn.y=xn.y=t.y,yn.x=xn.x=t.x+t.width,yn.y=bn.y=t.y+t.height,vn.transform(n),xn.transform(n),yn.transform(n),bn.transform(n),e.x=pn(vn.x,yn.x,bn.x,xn.x),e.y=pn(vn.y,yn.y,bn.y,xn.y);var s=mn(vn.x,yn.x,bn.x,xn.x),c=mn(vn.y,yn.y,bn.y,xn.y);e.width=s-e.x,e.height=c-e.y},e.calculateTransform=function(e,t,n){var r=n.width/t.width,i=n.height/t.height;return e=Mt(e||[]),Ft(e,e,Wt(Pn,-t.x,-t.y)),Lt(e,e,Wt(Pn,r,i)),Ft(e,e,Wt(Pn,n.x,n.y)),e},e}(),En=X.create,Dn=X.set,On=X.copy,kn=X.calculateTransform,An=X.applyTransform,jn=X.contain,Mn=new X(0,0,0,0),Nn=new X(0,0,0,0),Pn=[];function Fn(e,t,n,r,i,a,o,s){var c=hn(t-n),l=hn(r-e),u=pn(c,l),d=gn[i],f=gn[1-i],p=_n[i];t<n||r<e?c<l?(a&&(wn[d]=-c),s&&(o[d]=t,o[p]=0)):(a&&(wn[d]=l),s&&(o[d]=e,o[p]=0)):(o&&(o[d]=mn(e,n),o[p]=pn(t,r)-o[d]),a&&(u<Tn[0]||Sn.useDir)&&(Tn[0]=pn(u,Tn[0]),(c<l||!Sn.bidirectional)&&(Cn[d]=c,Cn[f]=0,Sn.useDir&&Sn.calcDirMTV()),(c>=l||!Sn.bidirectional)&&(Cn[d]=-l,Cn[f]=0,Sn.useDir&&Sn.calcDirMTV())))}function In(){var e=0,t=new Y,n=new Y,r={minTv:new Y,maxTv:new Y,useDir:!1,dirMinTv:new Y,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,a){r.touchThreshold=0,i&&i.touchThreshold!=null&&(r.touchThreshold=mn(0,i.touchThreshold)),r.negativeSize=!1,a&&(r.minTv.set(1/0,1/0),r.maxTv.set(0,0),r.useDir=!1,i&&i.direction!=null&&(r.useDir=!0,r.dirMinTv.copy(r.minTv),n.copy(r.minTv),e=i.direction,r.bidirectional=i.bidirectional==null||!!i.bidirectional,r.bidirectional||t.set(Math.cos(e),Math.sin(e))))},calcDirMTV:function(){var a=r.minTv,o=r.dirMinTv,s=a.y*a.y+a.x*a.x,c=Math.sin(e),l=Math.cos(e),u=c*a.y+l*a.x;if(i(u)){i(a.x)&&i(a.y)&&o.set(0,0);return}if(n.x=s*l/u,n.y=s*c/u,i(n.x)&&i(n.y)){o.set(0,0);return}(r.bidirectional||t.dot(n)>0)&&n.len()<o.len()&&o.copy(n)}};function i(e){return hn(e)<1e-10}return r}function Ln(e){Rn||(Rn=new wt(100)),e=e||`12px sans-serif`;var t=Rn.get(e);return t||(t={font:e,strWidthCache:new wt(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:M.measureText(`国`,e).width,asciiCharWidth:M.measureText(`a`,e).width},Rn.put(e,t)),t}var Rn;function zn(e){if(!(Bn>=Vn)){e=e||`12px sans-serif`;for(var t=[],n=+new Date,r=0;r<=127;r++)t[r]=M.measureText(String.fromCharCode(r),e).width;var i=+new Date-n;return i>16?Bn=Vn:i>2&&Bn++,t}}var Bn=0,Vn=5;function Hn(e,t){return e.asciiWidthMapTried||(e.asciiWidthMap=zn(e.font),e.asciiWidthMapTried=!0),0<=t&&t<=127?e.asciiWidthMap==null?e.asciiCharWidth:e.asciiWidthMap[t]:e.stWideCharWidth}function Un(e,t){var n=e.strWidthCache,r=n.get(t);return r==null&&(r=M.measureText(t,e.font).width,n.put(t,r)),r}function Wn(e,t,n,r){var i=Un(Ln(t),e),a=Jn(t);return new X(Kn(0,i,n),qn(0,a,r),i,a)}function Gn(e,t,n,r){var i=((e||``)+``).split(`
|
|
2
|
+
`);if(i.length===1)return Wn(i[0],t,n,r);for(var a=new X(0,0,0,0),o=0;o<i.length;o++){var s=Wn(i[o],t,n,r);o===0?a.copy(s):a.union(s)}return a}function Kn(e,t,n,r){return n===`right`?r?e+=t:e-=t:n===`center`&&(r?e+=t/2:e-=t/2),e}function qn(e,t,n,r){return n===`middle`?r?e+=t/2:e-=t/2:n===`bottom`&&(r?e+=t:e-=t),e}function Jn(e){return Ln(e).stWideCharWidth}function Yn(e,t){return typeof e==`string`?e.lastIndexOf(`%`)>=0?parseFloat(e)/100*t:parseFloat(e):e}function Xn(e,t,n){var r=t.position||`inside`,i=t.distance==null?5:t.distance,a=n.height,o=n.width,s=a/2,c=n.x,l=n.y,u=`left`,d=`top`;if(r instanceof Array)c+=Yn(r[0],n.width),l+=Yn(r[1],n.height),u=null,d=null;else switch(r){case`left`:c-=i,l+=s,u=`right`,d=`middle`;break;case`right`:c+=i+o,l+=s,d=`middle`;break;case`top`:c+=o/2,l-=i,u=`center`,d=`bottom`;break;case`bottom`:c+=o/2,l+=a+i,u=`center`;break;case`inside`:c+=o/2,l+=s,u=`center`,d=`middle`;break;case`insideLeft`:c+=i,l+=s,d=`middle`;break;case`insideRight`:c+=o-i,l+=s,u=`right`,d=`middle`;break;case`insideTop`:c+=o/2,l+=i,u=`center`;break;case`insideBottom`:c+=o/2,l+=a-i,u=`center`,d=`bottom`;break;case`insideTopLeft`:c+=i,l+=i;break;case`insideTopRight`:c+=o-i,l+=i,u=`right`;break;case`insideBottomLeft`:c+=i,l+=a-i,d=`bottom`;break;case`insideBottomRight`:c+=o-i,l+=a-i,u=`right`,d=`bottom`}return e=e||{},e.x=c,e.y=l,e.align=u,e.verticalAlign=d,e}var Zn=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Qn(e,t,n,r,i){var a={};return $n(a,e,t,n,r,i),a.text}function $n(e,t,n,r,i,a){if(!n){e.text=``,e.isTruncated=!1;return}var o=(t+``).split(`
|
|
3
|
+
`);a=er(n,r,i,a);for(var s=!1,c={},l=0,u=o.length;l<u;l++)tr(c,o[l],a),o[l]=c.textLine,s=s||c.isTruncated;e.text=o.join(`
|
|
4
|
+
`),e.isTruncated=s}function er(e,t,n,r){r=r||{};var i=I({},r);n=G(n,`...`),i.maxIterations=G(r.maxIterations,2);var a=i.minChar=G(r.minChar,0),o=i.fontMeasureInfo=Ln(t),s=o.asciiCharWidth;i.placeholder=G(r.placeholder,``);for(var c=e=Math.max(0,e-1),l=0;l<a&&c>=s;l++)c-=s;var u=Un(o,n);return u>c&&(n=``,u=0),c=e-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=c,i.containerWidth=e,i}function tr(e,t,n){var r=n.containerWidth,i=n.contentWidth,a=n.fontMeasureInfo;if(!r){e.textLine=``,e.isTruncated=!1;return}var o=Un(a,t);if(o<=r){e.textLine=t,e.isTruncated=!1;return}for(var s=0;;s++){if(o<=i||s>=n.maxIterations){t+=n.ellipsis;break}var c=s===0?nr(t,i,a):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,c),o=Un(a,t)}t===``&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}function nr(e,t,n){for(var r=0,i=0,a=e.length;i<a&&r<t;i++)r+=Hn(n,e.charCodeAt(i));return i}function rr(e,t,n,r){var i=gr(e),a=t.overflow,o=t.padding,s=o?o[1]+o[3]:0,c=o?o[0]+o[2]:0,l=t.font,u=a===`truncate`,d=Jn(l),f=G(t.lineHeight,d),p=t.lineOverflow===`truncate`,m=!1,h=t.width;h==null&&n!=null&&(h=n-s);var g=t.height;g==null&&r!=null&&(g=r-c);var _=h!=null&&(a===`break`||a===`breakAll`)?i?fr(i,t.font,h,a===`breakAll`,0).lines:[]:i?i.split(`
|
|
5
|
+
`):[],v=_.length*f;if(g==null&&(g=v),v>g&&p){var y=Math.floor(g/f);m=m||_.length>y,_=_.slice(0,y),v=_.length*f}if(i&&u&&h!=null)for(var b=er(h,l,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),x={},S=0;S<_.length;S++)tr(x,_[S],b),_[S]=x.textLine,m=m||x.isTruncated;for(var C=g,w=0,T=Ln(l),S=0;S<_.length;S++)w=Math.max(Un(T,_[S]),w);h==null&&(h=w);var E=h;return C+=c,E+=s,{lines:_,height:g,outerWidth:E,outerHeight:C,lineHeight:f,calculatedLineHeight:d,contentWidth:w,contentHeight:v,width:h,isTruncated:m}}var ir=function(){function e(){}return e}(),ar=function(){function e(e){this.tokens=[],e&&(this.tokens=e)}return e}(),or=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return e}();function sr(e,t,n,r,i){var a=new or,o=gr(e);if(!o)return a;var s=t.padding,c=s?s[1]+s[3]:0,l=s?s[0]+s[2]:0,u=t.width;u==null&&n!=null&&(u=n-c);var d=t.height;d==null&&r!=null&&(d=r-l);for(var f=t.overflow,p=(f===`break`||f===`breakAll`)&&u!=null?{width:u,accumWidth:0,breakAll:f===`breakAll`}:null,m=Zn.lastIndex=0,h;(h=Zn.exec(o))!=null;){var g=h.index;g>m&&cr(a,o.substring(m,g),t,p),cr(a,h[2],t,p,h[1]),m=Zn.lastIndex}m<o.length&&cr(a,o.substring(m,o.length),t,p);var _=[],v=0,y=0,b=f===`truncate`,x=t.lineOverflow===`truncate`,S={};function C(e,t,n){e.width=t,e.lineHeight=n,v+=n,y=Math.max(y,t)}outer:for(var w=0;w<a.lines.length;w++){for(var T=a.lines[w],E=0,D=0,O=0;O<T.tokens.length;O++){var k=T.tokens[O],A=k.styleName&&t.rich[k.styleName]||{},j=k.textPadding=A.padding,M=j?j[1]+j[3]:0,ee=k.font=A.font||t.font;k.contentHeight=Jn(ee);var te=G(A.height,k.contentHeight);if(k.innerHeight=te,j&&(te+=j[0]+j[2]),k.height=te,k.lineHeight=ze(A.lineHeight,t.lineHeight,te),k.align=A&&A.align||i,k.verticalAlign=A&&A.verticalAlign||`middle`,x&&d!=null&&v+k.lineHeight>d){var ne=a.lines.length;O>0?(T.tokens=T.tokens.slice(0,O),C(T,D,E),a.lines=a.lines.slice(0,w+1)):a.lines=a.lines.slice(0,w),a.isTruncated=a.isTruncated||a.lines.length<ne;break outer}var re=A.width,ie=re==null||re===`auto`;if(typeof re==`string`&&re.charAt(re.length-1)===`%`)k.percentWidth=re,_.push(k),k.contentWidth=Un(Ln(ee),k.text);else{if(ie){var ae=A.backgroundColor,oe=ae&&ae.image;oe&&(oe=Et(oe),kt(oe)&&(k.width=Math.max(k.width,oe.width*te/oe.height)))}var se=b&&u!=null?u-D:null;se!=null&&se<k.width?!ie||se<M?(k.text=``,k.width=k.contentWidth=0):($n(S,k.text,se-M,ee,t.ellipsis,{minChar:t.truncateMinChar}),k.text=S.text,a.isTruncated=a.isTruncated||S.isTruncated,k.width=k.contentWidth=Un(Ln(ee),k.text)):k.contentWidth=Un(Ln(ee),k.text)}k.width+=M,D+=k.width,A&&(E=Math.max(E,k.lineHeight))}C(T,D,E)}a.outerWidth=a.width=G(u,y),a.outerHeight=a.height=G(d,v),a.contentHeight=v,a.contentWidth=y,a.outerWidth+=c,a.outerHeight+=l;for(var w=0;w<_.length;w++){var k=_[w],ce=k.percentWidth;k.width=parseInt(ce,10)/100*a.width}return a}function cr(e,t,n,r,i){var a=t===``,o=i&&n.rich[i]||{},s=e.lines,c=o.font||n.font,l=!1,u,d;if(r){var f=o.padding,p=f?f[1]+f[3]:0;if(o.width!=null&&o.width!==`auto`){var m=Yn(o.width,r.width)+p;s.length>0&&m+r.accumWidth>r.width&&(u=t.split(`
|
|
6
|
+
`),l=!0),r.accumWidth=m}else{var h=fr(t,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=h.accumWidth+p,d=h.linesWidths,u=h.lines}}u||(u=t.split(`
|
|
7
|
+
`));for(var g=Ln(c),_=0;_<u.length;_++){var v=u[_],y=new ir;if(y.styleName=i,y.text=v,y.isLineHolder=!v&&!a,y.width=typeof o.width==`number`?o.width:d?d[_]:Un(g,v),!_&&!l){var b=(s[s.length-1]||(s[0]=new ar)).tokens,x=b.length;x===1&&b[0].isLineHolder?b[0]=y:(v||!x||a)&&b.push(y)}else s.push(new ar([y]))}}function lr(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var ur=Se(`,&?/;] `.split(``),function(e,t){return e[t]=!0,e},{});function dr(e){return!lr(e)||!!ur[e]}function fr(e,t,n,r,i){for(var a=[],o=[],s=``,c=``,l=0,u=0,d=Ln(t),f=0;f<e.length;f++){var p=e.charAt(f);if(p===`
|
|
8
|
+
`){c&&(s+=c,u+=l),a.push(s),o.push(u),s=``,c=``,l=0,u=0;continue}var m=Hn(d,p.charCodeAt(0)),h=!r&&!dr(p);if(a.length?u+m>n:i+u+m>n){u?(s||c)&&(h?(s||(s=c,c=``,l=0,u=l),a.push(s),o.push(u-l),c+=p,l+=m,s=``,u=l):(c&&(s+=c,c=``,l=0),a.push(s),o.push(u),s=p,u=m)):h?(a.push(c),o.push(l),c=p,l=m):(a.push(p),o.push(m));continue}u+=m,h?(c+=p,l+=m):(c&&(s+=c,c=``,l=0),s+=p)}return c&&(s+=c),s&&(a.push(s),o.push(u)),a.length===1&&(u+=i),{accumWidth:u,lines:a,linesWidths:o}}function pr(e,t,n,r,i,a){if(e.baseX=n,e.baseY=r,e.outerWidth=e.outerHeight=null,t){var o=t.width*2,s=t.height*2;X.set(mr,Kn(n,o,i),qn(r,s,a),o,s),X.intersect(t,mr,null,hr);var c=hr.outIntersectRect;e.outerWidth=c.width,e.outerHeight=c.height,e.baseX=Kn(c.x,c.width,i,!0),e.baseY=qn(c.y,c.height,a,!0)}}var mr=new X(0,0,0,0),hr={outIntersectRect:{},clamp:!0};function gr(e){return e==null?e=``:e+=``}function _r(e){var t=gr(e.text),n=e.font;return vr(e,Un(Ln(n),t),Jn(n),null)}function vr(e,t,n,r){var i=new X(Kn(e.x||0,t,e.textAlign),qn(e.y||0,n,e.textBaseline),t,n),a=r==null?yr(e)?e.lineWidth:0:r;return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function yr(e){var t=e.stroke;return t!=null&&t!==`none`&&e.lineWidth>0}var br=Mt,xr=5e-5;function Sr(e){return e>xr||e<-xr}var Cr=[],wr=[],Tr=jt(),Er=Math.abs,Dr=function(){function e(){}return e.prototype.getLocalTransform=function(e){return Or(this,e)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return Sr(this.rotation)||Sr(this.x)||Sr(this.y)||Sr(this.scaleX-1)||Sr(this.scaleY-1)||Sr(this.skewX)||Sr(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;if(!(t||e)){n&&(br(n),this.invTransform=null);return}n=n||jt(),t?this.getLocalTransform(n):br(n),e&&(t?Pt(n,e,n):Nt(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n),this.invTransform=this.invTransform||jt(),Rt(this.invTransform,n)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(Cr);var n=Cr[0]<0?-1:1,r=Cr[1]<0?-1:1,i=((Cr[0]-n)*t+n)/Cr[0]||0,a=((Cr[1]-r)*t+r)/Cr[1]||0;e[0]*=i,e[1]*=i,e[2]*=a,e[3]*=a}},e.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],r=Math.atan2(e[1],e[0]),i=Math.PI/2+r-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||jt(),Pt(wr,e.invTransform,t),t=wr);var n=this.originX,r=this.originY;(n||r)&&(Tr[4]=n,Tr[5]=r,Pt(wr,t,Tr),wr[4]-=n,wr[5]-=r,t=wr),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&un(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&un(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&Er(e[0]-1)>1e-10&&Er(e[3]-1)>1e-10?Math.sqrt(Er(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){jr(this,e)},e.getLocalTransform=function(e,t){t=t||[];var n=e.originX||0,r=e.originY||0,i=e.scaleX,a=e.scaleY,o=e.anchorX,s=e.anchorY,c=e.rotation||0,l=e.x,u=e.y,d=e.skewX?Math.tan(e.skewX):0,f=e.skewY?Math.tan(-e.skewY):0;if(n||r||o||s){var p=n+o,m=r+s;t[4]=-p*i-d*m*a,t[5]=-m*a-f*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=a,t[1]=f*i,t[2]=d*a,c&&It(t,t,c),t[4]+=n+l,t[5]+=r+u,t},e.initDefaultProps=(function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),e}(),Or=Dr.getLocalTransform;function kr(){return new Dr}var Ar=[`x`,`y`,`originX`,`originY`,`anchorX`,`anchorY`,`rotation`,`scaleX`,`scaleY`,`skewX`,`skewY`];function jr(e,t){return _e(e,t,Ar)}var Mr={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*--e)*Math.sin((e-t)*(2*Math.PI)/r)))},elasticOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?-.5*(n*Math.pow(2,10*--e)*Math.sin((e-t)*(2*Math.PI)/r)):n*Math.pow(2,-10*--e)*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-Mr.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?Mr.bounceIn(e*2)*.5:Mr.bounceOut(e*2-1)*.5+.5}},Nr=Math.pow,Pr=Math.sqrt,Fr=1e-8,Ir=1e-4,Lr=Pr(3),Rr=1/3,zr=Vt(),Br=Vt(),Vr=Vt();function Hr(e){return e>-Fr&&e<Fr}function Ur(e){return e>Fr||e<-Fr}function Wr(e,t,n,r,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*r+3*a*n)}function Gr(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function Kr(e,t,n,r,i,a){var o=r+3*(t-n)-e,s=3*(n-t*2+e),c=3*(t-e),l=e-i,u=s*s-3*o*c,d=s*c-9*o*l,f=c*c-3*s*l,p=0;if(Hr(u)&&Hr(d)){if(Hr(s))a[0]=0;else{var m=-c/s;m>=0&&m<=1&&(a[p++]=m)}}else{var h=d*d-4*u*f;if(Hr(h)){var g=d/u,m=-s/o+g,_=-g/2;m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_)}else if(h>0){var v=Pr(h),y=u*s+1.5*o*(-d+v),b=u*s+1.5*o*(-d-v);y=y<0?-Nr(-y,Rr):Nr(y,Rr),b=b<0?-Nr(-b,Rr):Nr(b,Rr);var m=(-s-(y+b))/(3*o);m>=0&&m<=1&&(a[p++]=m)}else{var x=(2*u*s-3*o*d)/(2*Pr(u*u*u)),S=Math.acos(x)/3,C=Pr(u),w=Math.cos(S),m=(-s-2*C*w)/(3*o),_=(-s+C*(w+Lr*Math.sin(S)))/(3*o),T=(-s+C*(w-Lr*Math.sin(S)))/(3*o);m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_),T>=0&&T<=1&&(a[p++]=T)}}return p}function qr(e,t,n,r,i){var a=6*n-12*t+6*e,o=9*t+3*r-3*e-9*n,s=3*t-3*e,c=0;if(Hr(o)){if(Ur(a)){var l=-s/a;l>=0&&l<=1&&(i[c++]=l)}}else{var u=a*a-4*o*s;if(Hr(u))i[0]=-a/(2*o);else if(u>0){var d=Pr(u),l=(-a+d)/(2*o),f=(-a-d)/(2*o);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function Jr(e,t,n,r,i,a){var o=(t-e)*i+e,s=(n-t)*i+t,c=(r-n)*i+n,l=(s-o)*i+o,u=(c-s)*i+s,d=(u-l)*i+l;a[0]=e,a[1]=o,a[2]=l,a[3]=d,a[4]=d,a[5]=u,a[6]=c,a[7]=r}function Yr(e,t,n,r,i,a,o,s,c,l,u){var d,f=.005,p=1/0,m,h,g,_;zr[0]=c,zr[1]=l;for(var v=0;v<1;v+=.05)Br[0]=Wr(e,n,i,o,v),Br[1]=Wr(t,r,a,s,v),g=sn(zr,Br),g<p&&(d=v,p=g);p=1/0;for(var y=0;y<32&&!(f<Ir);y++)m=d-f,h=d+f,Br[0]=Wr(e,n,i,o,m),Br[1]=Wr(t,r,a,s,m),g=sn(Br,zr),m>=0&&g<p?(d=m,p=g):(Vr[0]=Wr(e,n,i,o,h),Vr[1]=Wr(t,r,a,s,h),_=sn(Vr,zr),h<=1&&_<p?(d=h,p=_):f*=.5);return u&&(u[0]=Wr(e,n,i,o,d),u[1]=Wr(t,r,a,s,d)),Pr(p)}function Xr(e,t,n,r,i,a,o,s,c){for(var l=e,u=t,d=0,f=1/c,p=1;p<=c;p++){var m=p*f,h=Wr(e,n,i,o,m),g=Wr(t,r,a,s,m),_=h-l,v=g-u;d+=Math.sqrt(_*_+v*v),l=h,u=g}return d}function Zr(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function Qr(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function $r(e,t,n,r,i){var a=e-2*t+n,o=2*(t-e),s=e-r,c=0;if(Hr(a)){if(Ur(o)){var l=-s/o;l>=0&&l<=1&&(i[c++]=l)}}else{var u=o*o-4*a*s;if(Hr(u)){var l=-o/(2*a);l>=0&&l<=1&&(i[c++]=l)}else if(u>0){var d=Pr(u),l=(-o+d)/(2*a),f=(-o-d)/(2*a);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function ei(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function ti(e,t,n,r,i){var a=(t-e)*r+e,o=(n-t)*r+t,s=(o-a)*r+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=n}function ni(e,t,n,r,i,a,o,s,c){var l,u=.005,d=1/0;zr[0]=o,zr[1]=s;for(var f=0;f<1;f+=.05){Br[0]=Zr(e,n,i,f),Br[1]=Zr(t,r,a,f);var p=sn(zr,Br);p<d&&(l=f,d=p)}d=1/0;for(var m=0;m<32&&!(u<Ir);m++){var h=l-u,g=l+u;Br[0]=Zr(e,n,i,h),Br[1]=Zr(t,r,a,h);var p=sn(Br,zr);if(h>=0&&p<d)l=h,d=p;else{Vr[0]=Zr(e,n,i,g),Vr[1]=Zr(t,r,a,g);var _=sn(Vr,zr);g<=1&&_<d?(l=g,d=_):u*=.5}}return c&&(c[0]=Zr(e,n,i,l),c[1]=Zr(t,r,a,l)),Pr(d)}function ri(e,t,n,r,i,a,o){for(var s=e,c=t,l=0,u=1/o,d=1;d<=o;d++){var f=d*u,p=Zr(e,n,i,f),m=Zr(t,r,a,f),h=p-s,g=m-c;l+=Math.sqrt(h*h+g*g),s=p,c=m}return l}var ii=/cubic-bezier\(([0-9,\.e ]+)\)/;function ai(e){var t=e&&ii.exec(e);if(t){var n=t[1].split(`,`),r=+Ue(n[0]),i=+Ue(n[1]),a=+Ue(n[2]),o=+Ue(n[3]);if(isNaN(r+i+a+o))return;var s=[];return function(e){return e<=0?0:e>=1?1:Kr(0,r,a,1,e,s)&&Wr(0,i,o,1,s[0])}}}var oi=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||et,this.ondestroy=e.ondestroy||et,this.onrestart=e.onrestart||et,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var n=this._life,r=e-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var a=this.easingFunc,o=a?a(i):i;if(this.onframe(o),i===1){if(this.loop){var s=r%n;this._startTime=e-s,this._pausedTime=0,this.onrestart()}else return!0}return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=H(e)?e:Mr[e]||ai(e)},e}(),si=e({fastLerp:()=>Ei,fastMapToColor:()=>Di,lerp:()=>Oi,lift:()=>wi,liftColor:()=>Ii,lum:()=>Ni,mapToColor:()=>ki,modifyAlpha:()=>ji,modifyHSL:()=>Ai,parse:()=>xi,parseCssFloat:()=>pi,parseCssInt:()=>fi,random:()=>Pi,stringify:()=>Mi,toHex:()=>Ti}),ci={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function li(e){return e=Math.round(e),e<0?0:e>255?255:e}function ui(e){return e=Math.round(e),e<0?0:e>360?360:e}function di(e){return e<0?0:e>1?1:e}function fi(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?li(parseFloat(t)/100*255):li(parseInt(t,10))}function pi(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?di(parseFloat(t)/100):di(parseFloat(t))}function mi(e,t,n){return n<0?n+=1:n>1&&--n,n*6<1?e+(t-e)*n*6:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function hi(e,t,n){return e+(t-e)*n}function gi(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function _i(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var vi=new wt(20),yi=null;function bi(e,t){yi&&_i(yi,t),yi=vi.put(e,yi||t.slice())}function xi(e,t){if(e){t=t||[];var n=vi.get(e);if(n)return _i(t,n);e+=``;var r=e.replace(/ /g,``).toLowerCase();if(r in ci)return _i(t,ci[r]),bi(e,t),t;var i=r.length;if(r.charAt(0)===`#`){if(i===4||i===5){var a=parseInt(r.slice(1,4),16);if(!(a>=0&&a<=4095)){gi(t,0,0,0,1);return}return gi(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(r.slice(4),16)/15:1),bi(e,t),t}if(i===7||i===9){var a=parseInt(r.slice(1,7),16);if(!(a>=0&&a<=16777215)){gi(t,0,0,0,1);return}return gi(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(r.slice(7),16)/255:1),bi(e,t),t}return}var o=r.indexOf(`(`),s=r.indexOf(`)`);if(o!==-1&&s+1===i){var c=r.substr(0,o),l=r.substr(o+1,s-(o+1)).split(`,`),u=1;switch(c){case`rgba`:if(l.length!==4)return l.length===3?gi(t,+l[0],+l[1],+l[2],1):gi(t,0,0,0,1);u=pi(l.pop());case`rgb`:if(l.length>=3)return gi(t,fi(l[0]),fi(l[1]),fi(l[2]),l.length===3?u:pi(l[3])),bi(e,t),t;gi(t,0,0,0,1);return;case`hsla`:if(l.length!==4){gi(t,0,0,0,1);return}return l[3]=pi(l[3]),Si(l,t),bi(e,t),t;case`hsl`:if(l.length!==3){gi(t,0,0,0,1);return}return Si(l,t),bi(e,t),t;default:return}}gi(t,0,0,0,1)}}function Si(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=pi(e[1]),i=pi(e[2]),a=i<=.5?i*(r+1):i+r-i*r,o=i*2-a;return t=t||[],gi(t,li(mi(o,a,n+1/3)*255),li(mi(o,a,n)*255),li(mi(o,a,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Ci(e){if(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=a-i,s=(a+i)/2,c,l;if(o===0)c=0,l=0;else{l=s<.5?o/(a+i):o/(2-a-i);var u=((a-t)/6+o/2)/o,d=((a-n)/6+o/2)/o,f=((a-r)/6+o/2)/o;t===a?c=f-d:n===a?c=1/3+u-f:r===a&&(c=2/3+d-u),c<0&&(c+=1),c>1&&--c}var p=[c*360,l,s];return e[3]!=null&&p.push(e[3]),p}}function wi(e,t){var n=xi(e);if(n){for(var r=0;r<3;r++)t<0?n[r]=n[r]*(1-t)|0:n[r]=(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return Mi(n,n.length===4?`rgba`:`rgb`)}}function Ti(e){var t=xi(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function Ei(e,t,n){if(t&&t.length&&e>=0&&e<=1){n=n||[];var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=t[i],s=t[a],c=r-i;return n[0]=li(hi(o[0],s[0],c)),n[1]=li(hi(o[1],s[1],c)),n[2]=li(hi(o[2],s[2],c)),n[3]=di(hi(o[3],s[3],c)),n}}var Di=Ei;function Oi(e,t,n){if(t&&t.length&&e>=0&&e<=1){var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=xi(t[i]),s=xi(t[a]),c=r-i,l=Mi([li(hi(o[0],s[0],c)),li(hi(o[1],s[1],c)),li(hi(o[2],s[2],c)),di(hi(o[3],s[3],c))],`rgba`);return n?{color:l,leftIndex:i,rightIndex:a,value:r}:l}}var ki=Oi;function Ai(e,t,n,r){var i=xi(e);if(e)return i=Ci(i),t!=null&&(i[0]=ui(H(t)?t(i[0]):t)),n!=null&&(i[1]=pi(H(n)?n(i[1]):n)),r!=null&&(i[2]=pi(H(r)?r(i[2]):r)),Mi(Si(i),`rgba`)}function ji(e,t){var n=xi(e);if(n&&t!=null)return n[3]=di(t),Mi(n,`rgba`)}function Mi(e,t){if(e&&e.length){var n=e[0]+`,`+e[1]+`,`+e[2];return(t===`rgba`||t===`hsva`||t===`hsla`)&&(n+=`,`+e[3]),t+`(`+n+`)`}}function Ni(e,t){var n=xi(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}function Pi(){return Mi([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],`rgb`)}var Fi=new wt(100);function Ii(e){if(U(e)){var t=Fi.get(e);return t||(t=wi(e,-.1),Fi.put(e,t)),t}if(Pe(e)){var n=I({},e);return n.colorStops=B(e.colorStops,function(e){return{offset:e.offset,color:wi(e.color,-.1)}}),n}return e}function Li(e){return e.type===`linear`}function Ri(e){return e.type===`radial`}(function(){return typeof Buffer<`u`&&typeof Buffer.from==`function`?function(e){return Buffer.from(e).toString(`base64`)}:typeof btoa==`function`&&typeof unescape==`function`&&typeof encodeURIComponent==`function`?function(e){return btoa(unescape(encodeURIComponent(e)))}:function(e){return null}})();var zi=Array.prototype.slice;function Bi(e,t,n){return(t-e)*n+e}function Vi(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=Bi(t[a],n[a],r);return e}function Hi(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=Bi(t[o][s],n[o][s],r)}return e}function Ui(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+n[a]*r;return e}function Wi(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+n[o][s]*r}return e}function Gi(e,t){for(var n=e.length,r=t.length,i=n>r?t:e,a=Math.min(n,r),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(n,r);s++)i.push({offset:o.offset,color:o.color.slice()})}function Ki(e,t,n){var r=e,i=t;if(r.push&&i.push){var a=r.length,o=i.length;if(a!==o){if(a>o)r.length=o;else for(var s=a;s<o;s++)r.push(n===1?i[s]:zi.call(i[s]))}for(var c=r[0]&&r[0].length,s=0;s<r.length;s++)if(n===1)isNaN(r[s])&&(r[s]=i[s]);else for(var l=0;l<c;l++)isNaN(r[s][l])&&(r[s][l]=i[s][l])}}function qi(e){if(xe(e)){var t=e.length;if(xe(e[0])){for(var n=[],r=0;r<t;r++)n.push(zi.call(e[r]));return n}return zi.call(e)}return e}function Ji(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],`rgba(`+e.join(`,`)+`)`}function Yi(e){return xe(e&&e[0])?2:1}var Xi=0,Zi=1,Qi=2,$i=3,ea=4,ta=5,na=6;function ra(e){return e===ea||e===ta}function ia(e){return e===Zi||e===Qi}var aa=[0,0,0,0],oa=function(){function e(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var r=this.keyframes,i=r.length,a=!1,o=na,s=t;if(xe(t)){var c=Yi(t);o=c,(c===1&&!Ae(t[0])||c===2&&!Ae(t[0][0]))&&(a=!0)}else if(Ae(t)&&!Le(t))o=Xi;else if(U(t)){if(!isNaN(+t))o=Xi;else{var l=xi(t);l&&(s=l,o=$i)}}else if(Pe(t)){var u=I({},s);u.colorStops=B(t.colorStops,function(e){return{offset:e.offset,color:xi(e.color)}}),Li(t)?o=ea:Ri(t)&&(o=ta),s=u}i===0?this.valType=o:(o!==this.valType||o===na)&&(a=!0),this.discrete=this.discrete||a;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=H(n)?n:Mr[n]||ai(n)),r.push(d),d},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort(function(e,t){return e.time-t.time});for(var r=this.valType,i=n.length,a=n[i-1],o=this.discrete,s=ia(r),c=ra(r),l=0;l<i;l++){var u=n[l],d=u.value,f=a.value;u.percent=u.time/e,o||(s&&l!==i-1?Ki(d,f,r):c&&Gi(d.colorStops,f.colorStops))}if(!o&&r!==ta&&t&&this.needsAnimate()&&t.needsAnimate()&&r===t.valType&&!t._finished){this._additiveTrack=t;for(var p=n[0].value,l=0;l<i;l++)r===Xi?n[l].additiveValue=n[l].value-p:r===$i?n[l].additiveValue=Ui([],n[l].value,p,-1):ia(r)&&(n[l].additiveValue=r===Zi?Ui([],n[l].value,p,-1):Wi([],n[l].value,p,-1))}},e.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,r=n?`additiveValue`:`value`,i=this.valType,a=this.keyframes,o=a.length,s=this.propName,c=i===$i,l,u=this._lastFr,d=Math.min,f,p;if(o===1)f=p=a[0];else{if(t<0)l=0;else if(t<this._lastFrP){for(l=d(u+1,o-1);l>=0&&!(a[l].percent<=t);l--);l=d(l,o-2)}else{for(l=u;l<o&&!(a[l].percent>t);l++);l=d(l-1,o-2)}p=a[l+1],f=a[l]}if(f&&p){this._lastFr=l,this._lastFrP=t;var m=p.percent-f.percent,h=m===0?1:d((t-f.percent)/m,1);p.easingFunc&&(h=p.easingFunc(h));var g=n?this._additiveValue:c?aa:e[s];if((ia(i)||c)&&!g&&(g=this._additiveValue=[]),this.discrete)e[s]=h<1?f.rawValue:p.rawValue;else if(ia(i))i===Zi?Vi(g,f[r],p[r],h):Hi(g,f[r],p[r],h);else if(ra(i)){var _=f[r],v=p[r],y=i===ea;e[s]={type:y?`linear`:`radial`,x:Bi(_.x,v.x,h),y:Bi(_.y,v.y,h),colorStops:B(_.colorStops,function(e,t){var n=v.colorStops[t];return{offset:Bi(e.offset,n.offset,h),color:Ji(Vi([],e.color,n.color,h))}}),global:v.global},y?(e[s].x2=Bi(_.x2,v.x2,h),e[s].y2=Bi(_.y2,v.y2,h)):e[s].r=Bi(_.r,v.r,h)}else if(c)Vi(g,f[r],p[r],h),n||(e[s]=Ji(g));else{var b=Bi(f[r],p[r],h);n?this._additiveValue=b:e[s]=b}n&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,r=this._additiveValue;t===Xi?e[n]=e[n]+r:t===$i?(xi(e[n],aa),Ui(aa,aa,r,1),e[n]=Ji(aa)):t===Zi?Ui(e[n],e[n],r,1):t===Qi&&Wi(e[n],e[n],r,1)},e}(),sa=function(){function e(e,t,n,r){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&r){he(`Can' use additive animation on looped animation.`);return}this._additiveAnimators=r,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,Te(t),n)},e.prototype.whenWithKeys=function(e,t,n,r){for(var i=this._tracks,a=0;a<n.length;a++){var o=n[a],s=i[o];if(!s){s=i[o]=new oa(o);var c=void 0,l=this._getAdditiveTrack(o);if(l){var u=l.keyframes,d=u[u.length-1];c=d&&d.value,l.valType===$i&&c&&(c=Ji(c))}else c=this._target[o];if(c==null)continue;e>0&&s.addKeyframe(0,qi(c),r),this._trackKeys.push(o)}s.addKeyframe(e,qi(t[o]),r)}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n<t;n++)e[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var n=0;n<t.length;n++)t[n].call(this)},e.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},e.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var r=0;r<n.length;r++){var i=n[r].getTrack(e);i&&(t=i)}return t},e.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,n=[],r=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var a=this._trackKeys[i],o=this._tracks[a],s=this._getAdditiveTrack(a),c=o.keyframes,l=c.length;if(o.prepare(r,s),o.needsAnimate()){if(!this._allowDiscrete&&o.discrete){var u=c[l-1];u&&(t._target[o.propName]=u.rawValue),o.setFinished()}else n.push(o)}}if(n.length||this._force){var d=new oi({life:r,loop:this._loop,delay:this._delay||0,onframe:function(e){t._started=2;var r=t._additiveAnimators;if(r){for(var i=!1,a=0;a<r.length;a++)if(r[a]._clip){i=!0;break}i||(t._additiveAnimators=null)}for(var a=0;a<n.length;a++)n[a].step(t._target,e);var o=t._onframeCbs;if(o)for(var a=0;a<o.length;a++)o[a](t._target,e)},ondestroy:function(){t._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),e&&d.setEasing(e)}else this._doneCallback();return this}},e.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},e.prototype.delay=function(e){return this._delay=e,this},e.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},e.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},e.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(e){return this._tracks[e]},e.prototype.getTracks=function(){var e=this;return B(this._trackKeys,function(t){return e._tracks[t]})},e.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,r=this._trackKeys,i=0;i<e.length;i++){var a=n[e[i]];a&&!a.isFinished()&&(t?a.step(this._target,1):this._started===1&&a.step(this._target,0),a.setFinished())}for(var o=!0,i=0;i<r.length;i++)if(!n[r[i]].isFinished()){o=!1;break}return o&&this._abortedCallback(),o},e.prototype.saveTo=function(e,t,n){if(e){t=t||this._trackKeys;for(var r=0;r<t.length;r++){var i=t[r],a=this._tracks[i];if(a&&!a.isFinished()){var o=a.keyframes,s=o[n?0:o.length-1];s&&(e[i]=qi(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t=t||Te(e);for(var n=0;n<t.length;n++){var r=t[n],i=this._tracks[r];if(i){var a=i.keyframes;if(a.length>1){var o=a.pop();i.addKeyframe(o.time,e[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}(),ca=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,r){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof t==`function`&&(r=n,n=t,t=null),!n||!e)return this;var a=this._$eventProcessor;t!=null&&a&&a.normalizeQuery&&(t=a.normalizeQuery(t)),i[e]||(i[e]=[]);for(var o=0;o<i[e].length;o++)if(i[e][o].h===n)return this;var s={h:n,query:t,ctx:r||this,callAtLast:n.zrEventfulCallAtLast},c=i[e].length-1,l=i[e][c];return l&&l.callAtLast?i[e].splice(c,0,s):i[e].push(s),this},e.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},e.prototype.off=function(e,t){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var r=[],i=0,a=n[e].length;i<a;i++)n[e][i].h!==t&&r.push(n[e][i]);n[e]=r}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},e.prototype.trigger=function(e){var t=[...arguments].slice(1);if(!this._$handlers)return this;var n=this._$handlers[e],r=this._$eventProcessor;if(n)for(var i=t.length,a=n.length,o=0;o<a;o++){var s=n[o];if(!(r&&r.filter&&s.query!=null&&!r.filter(e,s.query)))switch(i){case 0:s.h.call(s.ctx);break;case 1:s.h.call(s.ctx,t[0]);break;case 2:s.h.call(s.ctx,t[0],t[1]);break;default:s.h.apply(s.ctx,t)}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e.prototype.triggerWithContext=function(e){var t=[...arguments].slice(1);if(!this._$handlers)return this;var n=this._$handlers[e],r=this._$eventProcessor;if(n)for(var i=t.length,a=t[i-1],o=n.length,s=0;s<o;s++){var c=n[s];if(!(r&&r.filter&&c.query!=null&&!r.filter(e,c.query)))switch(i){case 0:c.h.call(a);break;case 1:c.h.call(a,t[0]);break;case 2:c.h.call(a,t[0],t[1]);break;default:c.h.apply(a,t.slice(1,i-1))}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e}(),la=1;J.hasGlobalWindow&&(la=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var ua=la,da=.4,fa=`#333`,pa=`#ccc`,ma=`#eee`,ha=`__zr_normal__`,ga=Ar.concat([`ignore`]),_a=Se(Ar,function(e,t){return e[t]=!0,e},{ignore:!1}),va={},ya=new X(0,0,0,0),ba=[],xa=function(){function e(e){this.id=me(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,n){switch(this.draggable){case`horizontal`:t=0;break;case`vertical`:e=0}var r=this.transform;r||(r=this.transform=[1,0,0,1,0,0]),r[4]+=e,r[5]+=t,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,r=n.local,i=t.innerTransformable,a=void 0,o=void 0,s=!1;i.parent=r?this:null;var c=!1;i.copyTransform(t);var l=n.position!=null,u=n.autoOverflowArea,d=void 0;if((u||l)&&(d=ya,n.layoutRect?d.copy(n.layoutRect):d.copy(this.getBoundingRect()),r||d.applyTransform(this.transform)),l){this.calculateTextPosition?this.calculateTextPosition(va,n,d):Xn(va,n,d),i.x=va.x,i.y=va.y,a=va.align,o=va.verticalAlign;var f=n.origin;if(f&&n.rotation!=null){var p=void 0,m=void 0;f===`center`?(p=d.width*.5,m=d.height*.5):(p=Yn(f[0],d.width),m=Yn(f[1],d.height)),c=!0,i.originX=-i.x+p+(r?0:d.x),i.originY=-i.y+m+(r?0:d.y)}}n.rotation!=null&&(i.rotation=n.rotation);var h=n.offset;h&&(i.x+=h[0],i.y+=h[1],c||(i.originX=-h[0],i.originY=-h[1]));var g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(u){var _=g.overflowRect=g.overflowRect||new X(0,0,0,0);i.getLocalTransform(ba),Rt(ba,ba),X.copy(_,d),_.applyTransform(ba)}else g.overflowRect=null;var v=n.inside==null?typeof n.position==`string`&&n.position.indexOf(`inside`)>=0:n.inside,y=void 0,b=void 0,x=void 0;v&&this.canBeInsideText()?(y=n.insideFill,b=n.insideStroke,(y==null||y===`auto`)&&(y=this.getInsideTextFill()),(b==null||b===`auto`)&&(b=this.getInsideTextStroke(y),x=!0)):(y=n.outsideFill,b=n.outsideStroke,(y==null||y===`auto`)&&(y=this.getOutsideFill()),(b==null||b===`auto`)&&(b=this.getOutsideStroke(y),x=!0)),y=y||`#000`,(y!==g.fill||b!==g.stroke||x!==g.autoStroke||a!==g.align||o!==g.verticalAlign)&&(s=!0,g.fill=y,g.stroke=b,g.autoStroke=x,g.align=a,g.verticalAlign=o,t.setDefaultTextStyle(g)),t.__dirty|=1,s&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return`#fff`},e.prototype.getInsideTextStroke=function(e){return`#000`},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?pa:fa},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n=typeof t==`string`&&xi(t);n||(n=[255,255,255,1]);for(var r=n[3],i=this.__zr.isDarkMode(),a=0;a<3;a++)n[a]=n[a]*r+(i?0:255)*(1-r);return n[3]=1,Mi(n,`rgba`)},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){e===`textConfig`?this.setTextConfig(t):e===`textContent`?this.setTextContent(t):e===`clipPath`?this.setClipPath(t):e===`extra`?(this.extra=this.extra||{},I(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if(typeof e==`string`)this.attrKV(e,t);else if(W(e))for(var n=Te(e),r=0;r<n.length;r++){var i=n[r];this.attrKV(i,e[i])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var r=this.animators[n],i=r.__fromStateTransition;if(!(r.getLoop()||i&&i!==`__zr_normal__`)){var a=r.targetName,o=a?t[a]:t;r.saveTo(o)}}},e.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,ga)},e.prototype._savePrimaryToNormal=function(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];e[i]!=null&&!(i in t)&&(t[i]=this[i])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(ha,!1,e)},e.prototype.useState=function(e,t,n,r){var i=e===ha;if(this.hasState()||!i){var a=this.currentStates,o=this.stateTransition;if(!(R(a,e)>=0&&(t||a.length===1))){var s;if(this.stateProxy&&!i&&(s=this.stateProxy(e)),s||(s=this.states&&this.states[e]),!s&&!i){he(`State `+e+` not exists.`);return}i||this.saveCurrentToNormalState(s);var c=this._textContent,l=ka(this,c,s,r);l&&!this.__inHover&&(this.__inHover=l),this._applyStateObj(e,s,this._normalState,t,ja(this,n,o),o);var u=this._textGuide;return c&&c.useState(e,t,n,!!l),u&&u.useState(e,t,n,!!l),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this.__inHover=0,this.__dirty&=-2),s}}},e.prototype.useStates=function(e,t,n){if(!e.length)this.clearStates();else{var r=[],i=this.currentStates,a=e.length,o=a===i.length;if(o){for(var s=0;s<a;s++)if(e[s]!==i[s]){o=!1;break}}if(o)return;for(var s=0;s<a;s++){var c=e[s],l=void 0;this.stateProxy&&(l=this.stateProxy(c,e)),l||(l=this.states[c]),l&&r.push(l)}var u=r[a-1],d=this._textContent,f=ka(this,d,u,n);f&&!this.__inHover&&(this.__inHover=f);var p=this._mergeStates(r),m=this.stateTransition;this.saveCurrentToNormalState(p),this._applyStateObj(e.join(`,`),p,this._normalState,!1,ja(this,t,m),m);var h=this._textGuide;d&&d.useStates(e,t,!!f),h&&h.useStates(e,t,!!f),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!f&&this.__inHover&&(this.__inHover=0,this.__dirty&=-2)}},e.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var t=e.__hostTarget;e=t?e.ignoreHostSilent?null:t:e.parent}return!1},e.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},e.prototype.removeState=function(e){var t=R(this.currentStates,e);if(t>=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var r=this.currentStates.slice(),i=R(r,e),a=R(r,t)>=0;i>=0?a?r.splice(i,1):r[i]=t:n&&!a&&r.push(t),this.useStates(r)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t={},n,r=0;r<e.length;r++){var i=e[r];I(t,i),i.textConfig&&(n=n||{},I(n,i.textConfig))}return n&&(t.textConfig=n),t},e.prototype._applyStateObj=function(e,t,n,r,i,a){if(this.__inHover!==1){var o=!(t&&r);t&&t.textConfig?(this.textConfig=I({},r?this.textConfig:n.textConfig),I(this.textConfig,t.textConfig)):o&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},c=!1,l=0;l<ga.length;l++){var u=ga[l],d=i&&_a[u];t&&t[u]!=null?d?(c=!0,s[u]=t[u]):this[u]=t[u]:o&&n[u]!=null&&(d?(c=!0,s[u]=n[u]):this[u]=n[u])}if(!i)for(var l=0;l<this.animators.length;l++){var f=this.animators[l],p=f.targetName;f.getLoop()||f.__changeFinalValue(p?(t||n)[p]:t||n)}c&&this._transitionState(e,s,a)}},e.prototype._attachComponent=function(e){if((!e.__zr||e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},e.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},e.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new Dr,this._attachComponent(e),this._textContent=e,this.markRedraw())},e.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),I(this.textConfig,e),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=1;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},e.prototype.animate=function(e,t,n){var r=new sa(e?this[e]:this,t,n);return e&&(r.targetName=e),this.addAnimator(r,e),r},e.prototype.addAnimator=function(e,t){var n=this.__zr,r=this;e.during(function(){r.updateDuringAnimation(t)}).done(function(){var t=r.animators,n=R(t,e);n>=0&&t.splice(n,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,r=n.length,i=[],a=0;a<r;a++){var o=n[a];!e||e===o.scope?o.stop(t):i.push(o)}return this.animators=i,this},e.prototype.animateTo=function(e,t,n){Sa(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){Sa(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,r){for(var i=Sa(this,t,n,r),a=0;a<i.length;a++)i[a].__fromStateTransition=e},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=(function(){var t=e.prototype;t.type=`element`,t.name=``,t.ignore=t.silent=t.ignoreHostSilent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=!1,t.__inHover=0,t.__dirty=1;function n(e,n,r,i){Object.defineProperty(t,e,{get:function(){if(!this[n]){var e=this[n]=[];a(this,e)}return this[n]},set:function(e){this[r]=e[0],this[i]=e[1],this[n]=e,a(this,e)}});function a(e,t){Object.defineProperty(t,0,{get:function(){return e[r]},set:function(t){e[r]=t}}),Object.defineProperty(t,1,{get:function(){return e[i]},set:function(t){e[i]=t}})}}Object.defineProperty&&(n(`position`,`_legacyPos`,`x`,`y`),n(`scale`,`_legacyScale`,`scaleX`,`scaleY`),n(`origin`,`_legacyOrigin`,`originX`,`originY`))})(),e}();be(xa,ca),be(xa,Dr);function Sa(e,t,n,r,i){n=n||{};var a=[];Oa(e,``,e,t,n,r,a,i);var o=a.length,s=!1,c=n.done,l=n.aborted,u=function(){s=!0,o--,o<=0&&(s?c&&c():l&&l())},d=function(){o--,o<=0&&(s?c&&c():l&&l())};o||c&&c(),a.length>0&&n.during&&a[0].during(function(e,t){n.during(t)});for(var f=0;f<a.length;f++){var p=a[f];u&&p.done(u),d&&p.aborted(d),n.force&&p.duration(n.duration),p.start(n.easing)}return a}function Ca(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function wa(e){return xe(e[0])}function Ta(e,t,n){if(xe(t[n])){if(xe(e[n])||(e[n]=[]),Me(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),Ca(e[n],t[n],r))}else{var i=t[n],a=e[n],o=i.length;if(wa(i))for(var s=i[0].length,c=0;c<o;c++)a[c]?Ca(a[c],i[c],s):a[c]=Array.prototype.slice.call(i[c]);else Ca(a,i,o);a.length=i.length}}else e[n]=t[n]}function Ea(e,t){return e===t||xe(e)&&xe(t)&&Da(e,t)}function Da(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function Oa(e,t,n,r,i,a,o,s){for(var c=Te(r),l=i.duration,u=i.delay,d=i.additive,f=i.setToFinal,p=!W(a),m=e.animators,h=[],g=0;g<c.length;g++){var _=c[g],v=r[_];if(v!=null&&n[_]!=null&&(p||a[_])){if(W(v)&&!xe(v)&&!Pe(v)){if(t){s||(n[_]=v,e.updateDuringAnimation(t));continue}Oa(e,_,n[_],v,i,a&&a[_],o,s)}else h.push(_)}else s||(n[_]=v,e.updateDuringAnimation(t),h.push(_))}var y=h.length;if(!d&&y)for(var b=0;b<m.length;b++){var x=m[b];if(x.targetName===t&&x.stopTracks(h)){var S=R(m,x);m.splice(S,1)}}if(i.force||(h=Ce(h,function(e){return!Ea(r[e],n[e])}),y=h.length),y>0||i.force&&!o.length){var C=void 0,w=void 0,T=void 0;if(s){w={},f&&(C={});for(var b=0;b<y;b++){var _=h[b];w[_]=n[_],f?C[_]=r[_]:n[_]=r[_]}}else if(f){T={};for(var b=0;b<y;b++){var _=h[b];T[_]=qi(n[_]),Ta(n,r,_)}}var x=new sa(n,!1,!1,d?Ce(m,function(e){return e.targetName===t}):null);x.targetName=t,i.scope&&(x.scope=i.scope),f&&C&&x.whenWithKeys(0,C,h),T&&x.whenWithKeys(0,T,h),x.whenWithKeys(l==null?500:l,s?w:r,h).delay(u||0),e.addAnimator(x,t),o.push(x)}}function ka(e,t,n,r){return!(n&&n.hoverLayer||r)||Aa(e)||t&&Aa(t)?0:1}function Aa(e){return e.type===`text`||e.type===`tspan`}function ja(e,t,n){return!t&&!e.__inHover&&n&&n.duration>0}var Ma=`__zr_style_`+Math.round(Math.random()*10),Na={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:`#000`,opacity:1,blend:`source-over`},Pa={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Na[Ma]=!0;var Fa=[`z`,`z2`,`invisible`],Ia=[`invisible`],La=function(e){T(t,e);function t(t){return e.call(this,t)||this}return t.prototype._init=function(t){for(var n=Te(t),r=0;r<n.length;r++){var i=n[r];i===`style`?this.useStyle(t[i]):e.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(e){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,t,n,r){var i=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&Ba(this,e,t)||i&&!i[0]&&!i[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length){for(var a=0;a<this.__clipPaths.length;++a)if(this.__clipPaths[a].isZeroArea())return!1}if(r&&this.parent)for(var o=this.parent;o;){if(o.ignore)return!1;o=o.parent}return!0},t.prototype.contain=function(e,t){return this.rectContain(e,t)},t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.rectContain=function(e,t){var n=this.transformCoordToLocal(e,t);return this.getBoundingRect().contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var t=this.transform,n=this.getBoundingRect(),r=this.style,i=r.shadowBlur||0,a=r.shadowOffsetX||0,o=r.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new X(0,0,0,0)),t?X.applyTransform(e,n,t):e.copy(n),(i||a||o)&&(e.width+=i*2+Math.abs(a),e.height+=i*2+Math.abs(o),e.x=Math.min(e.x,e.x+a-i),e.y=Math.min(e.y,e.y+o-i));var s=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-s),e.y=Math.floor(e.y-s),e.width=Math.ceil(e.width+1+s*2),e.height=Math.ceil(e.height+1+s*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new X(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate(`style`,e)},t.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(t,n){t===`style`?this.style?this.setStyle(n):this.useStyle(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setStyle=function(e,t){return typeof e==`string`?this.style[e]=t:I(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&2)},t.prototype.styleUpdated=function(){this.__dirty&=-3},t.prototype.createStyle=function(e){return Qe(Na,e)},t.prototype.useStyle=function(e){e[Ma]||(e=this.createStyle(e)),this.style=e,this.dirtyStyle()},t.prototype._useHoverStyle=function(e){this.__hoverStyle=e},t.prototype.isStyleObject=function(e){return e[Ma]},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,n,Fa)},t.prototype._applyStateObj=function(t,n,r,i,a,o){e.prototype._applyStateObj.call(this,t,n,r,i,a,o);var s=!(n&&i),c=this.__inHover===1,l;if(n&&n.style?a?i?l=n.style:(l=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(l,n.style)):(l=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(l,n.style)):s&&(l=r.style),l){if(a){var u=this.style;if(this.style=this.createStyle(s?{}:u),s)for(var d=Te(u),f=0;f<d.length;f++){var p=d[f];p in l&&(l[p]=l[p],this.style[p]=u[p])}for(var m=Te(l),f=0;f<m.length;f++){var p=m[f];this.style[p]=this.style[p]}this._transitionState(t,{style:l},o,this.getAnimationStyleProps())}else c?this._useHoverStyle(l):this.useStyle(l)}if(!c)for(var h=this.__inHover?Ia:Fa,f=0;f<h.length;f++){var p=h[f];n&&n[p]!=null?this[p]=n[p]:s&&r[p]!=null&&(this[p]=r[p])}},t.prototype._mergeStates=function(t){for(var n=e.prototype._mergeStates.call(this,t),r,i=0;i<t.length;i++){var a=t[i];a.style&&(r=r||{},this._mergeStyle(r,a.style))}return r&&(n.style=r),n},t.prototype._mergeStyle=function(e,t){return I(e,t),e},t.prototype.getAnimationStyleProps=function(){return Pa},t.initDefaultProps=(function(){var e=t.prototype;e.type=`displayable`,e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor=`pointer`,e.rectHover=!1,e.incremental=0,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=3})(),t}(xa),Ra=new X(0,0,0,0),za=new X(0,0,0,0);function Ba(e,t,n){return Ra.copy(e.getBoundingRect()),e.transform&&Ra.applyTransform(e.transform),za.width=t,za.height=n,!Ra.intersect(za)}var Va=Math.min,Ha=Math.max,Ua=Math.sin,Wa=Math.cos,Ga=Math.PI*2,Ka=Vt(),qa=Vt(),Ja=Vt();function Ya(e,t,n){if(e.length!==0){for(var r=e[0],i=r[0],a=r[0],o=r[1],s=r[1],c=1;c<e.length;c++)r=e[c],i=Va(i,r[0]),a=Ha(a,r[0]),o=Va(o,r[1]),s=Ha(s,r[1]);t[0]=i,t[1]=o,n[0]=a,n[1]=s}}function Xa(e,t,n,r,i,a){i[0]=Va(e,n),i[1]=Va(t,r),a[0]=Ha(e,n),a[1]=Ha(t,r)}var Za=[],Qa=[];function $a(e,t,n,r,i,a,o,s,c,l){var u=qr,d=Wr,f=u(e,n,i,o,Za);c[0]=1/0,c[1]=1/0,l[0]=-1/0,l[1]=-1/0;for(var p=0;p<f;p++){var m=d(e,n,i,o,Za[p]);c[0]=Va(m,c[0]),l[0]=Ha(m,l[0])}f=u(t,r,a,s,Qa);for(var p=0;p<f;p++){var h=d(t,r,a,s,Qa[p]);c[1]=Va(h,c[1]),l[1]=Ha(h,l[1])}c[0]=Va(e,c[0]),l[0]=Ha(e,l[0]),c[0]=Va(o,c[0]),l[0]=Ha(o,l[0]),c[1]=Va(t,c[1]),l[1]=Ha(t,l[1]),c[1]=Va(s,c[1]),l[1]=Ha(s,l[1])}function eo(e,t,n,r,i,a,o,s){var c=ei,l=Zr,u=Ha(Va(c(e,n,i),1),0),d=Ha(Va(c(t,r,a),1),0),f=l(e,n,i,u),p=l(t,r,a,d);o[0]=Va(e,i,f),o[1]=Va(t,a,p),s[0]=Ha(e,i,f),s[1]=Ha(t,a,p)}function to(e,t,n,r,i,a,o,s,c){var l=dn,u=fn,d=Math.abs(i-a);if(d%Ga<1e-4&&d>1e-4){s[0]=e-n,s[1]=t-r,c[0]=e+n,c[1]=t+r;return}if(Ka[0]=Wa(i)*n+e,Ka[1]=Ua(i)*r+t,qa[0]=Wa(a)*n+e,qa[1]=Ua(a)*r+t,l(s,Ka,qa),u(c,Ka,qa),i%=Ga,i<0&&(i+=Ga),a%=Ga,a<0&&(a+=Ga),i>a&&!o?a+=Ga:i<a&&o&&(i+=Ga),o){var f=a;a=i,i=f}for(var p=0;p<a;p+=Math.PI/2)p>i&&(Ja[0]=Wa(p)*n+e,Ja[1]=Ua(p)*r+t,l(s,Ja,s),u(c,Ja,c))}var no={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},ro=[],io=[],ao=[],oo=[],so=[],co=[],lo=Math.min,uo=Math.max,fo=Math.cos,po=Math.sin,mo=Math.abs,ho=Math.PI,go=ho*2,_o=typeof Float32Array<`u`,vo=[];function yo(e){return Math.round(e/ho*1e8)/1e8%2*ho}function bo(e,t){var n=yo(e[0]);n<0&&(n+=go);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=go?i=n+go:t&&n-i>=go?i=n-go:!t&&n>i?i=n+(go-yo(n-i)):t&&n<i&&(i=n-(go-yo(i-n))),e[0]=n,e[1]=i}var xo=function(){function e(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(e,t,n){n=n||0,n>0&&(this._ux=mo(n/ua/e)||0,this._uy=mo(n/ua/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(no.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=mo(e-this._xi),r=mo(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(no.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var a=n*n+r*r;a>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=a)}return this},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){return this._drawPendingPt(),this.addData(no.C,e,t,n,r,i,a),this._ctx&&this._ctx.bezierCurveTo(e,t,n,r,i,a),this._xi=i,this._yi=a,this},e.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(no.Q,e,t,n,r),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,r),this._xi=n,this._yi=r,this},e.prototype.arc=function(e,t,n,r,i,a){this._drawPendingPt(),vo[0]=r,vo[1]=i,bo(vo,a),r=vo[0],i=vo[1];var o=i-r;return this.addData(no.A,e,t,n,n,r,o,0,+!a),this._ctx&&this._ctx.arc(e,t,n,r,i,a),this._xi=fo(i)*n+e,this._yi=po(i)*n+t,this},e.prototype.arcTo=function(e,t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},e.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(no.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(no.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){if(this._saveData){var t=e.length;!(this.data&&this.data.length===t)&&_o&&(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t}},e.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var t=e.length,n=0,r=this._len,i=0;i<t;i++)n+=e[i].len();var a=this.data;if(_o&&(a instanceof Float32Array||!a)&&(this.data=new Float32Array(r+n),r>0&&a))for(var o=0;o<r;o++)this.data[o]=a[o];for(var i=0;i<t;i++)for(var s=e[i].data,o=0;o<s.length;o++)this.data[r++]=s[o];this._len=r}},e.prototype.addData=function(e,t,n,r,i,a,o,s,c){if(this._saveData){var l=this.data;this._len+arguments.length>l.length&&(this._expandData(),l=this.data);for(var u=0;u<arguments.length;u++)l[this._len++]=arguments[u]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,_o&&this._len>11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){ao[0]=ao[1]=so[0]=so[1]=Number.MAX_VALUE,oo[0]=oo[1]=co[0]=co[1]=-Number.MAX_VALUE;for(var e=this.data,t=0,n=0,r=0,i=0,a=0;a<this._len;){var o=e[a++],s=a===1;switch(s&&(t=e[a],n=e[a+1],r=t,i=n),o){case no.M:t=r=e[a++],n=i=e[a++],so[0]=r,so[1]=i,co[0]=r,co[1]=i;break;case no.L:Xa(t,n,e[a],e[a+1],so,co),t=e[a++],n=e[a++];break;case no.C:$a(t,n,e[a++],e[a++],e[a++],e[a++],e[a],e[a+1],so,co),t=e[a++],n=e[a++];break;case no.Q:eo(t,n,e[a++],e[a++],e[a],e[a+1],so,co),t=e[a++],n=e[a++];break;case no.A:var c=e[a++],l=e[a++],u=e[a++],d=e[a++],f=e[a++],p=e[a++]+f;a+=1;var m=!e[a++];s&&(r=fo(f)*u+c,i=po(f)*d+l),to(c,l,u,d,f,p,m,so,co),t=fo(p)*u+c,n=po(p)*d+l;break;case no.R:r=t=e[a++],i=n=e[a++];var h=e[a++],g=e[a++];Xa(r,i,r+h,i+g,so,co);break;case no.Z:t=r,n=i}dn(ao,ao,so),fn(oo,oo,co)}return a===0&&(ao[0]=ao[1]=oo[0]=oo[1]=0),new X(ao[0],ao[1],oo[0]-ao[0],oo[1]-ao[1])},e.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,r=this._uy,i=0,a=0,o=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var c=this._pathSegLen,l=0,u=0,d=0;d<t;){var f=e[d++],p=d===1;p&&(i=e[d],a=e[d+1],o=i,s=a);var m=-1;switch(f){case no.M:i=o=e[d++],a=s=e[d++];break;case no.L:var h=e[d++],g=e[d++],_=h-i,v=g-a;(mo(_)>n||mo(v)>r||d===t-1)&&(m=Math.sqrt(_*_+v*v),i=h,a=g);break;case no.C:var y=e[d++],b=e[d++],h=e[d++],g=e[d++],x=e[d++],S=e[d++];m=Xr(i,a,y,b,h,g,x,S,10),i=x,a=S;break;case no.Q:var y=e[d++],b=e[d++],h=e[d++],g=e[d++];m=ri(i,a,y,b,h,g,10),i=h,a=g;break;case no.A:var C=e[d++],w=e[d++],T=e[d++],E=e[d++],D=e[d++],O=e[d++],k=O+D;d+=1,p&&(o=fo(D)*T+C,s=po(D)*E+w),m=uo(T,E)*lo(go,Math.abs(O)),i=fo(k)*T+C,a=po(k)*E+w;break;case no.R:o=i=e[d++],s=a=e[d++];var A=e[d++],j=e[d++];m=A*2+j*2;break;case no.Z:var _=o-i,v=s-a;m=Math.sqrt(_*_+v*v),i=o,a=s}m>=0&&(c[u++]=m,l+=m)}return this._pathLen=l,l},e.prototype.rebuildPath=function(e,t){var n=this.data,r=this._ux,i=this._uy,a=this._len,o,s,c,l,u,d,f=t<1,p,m,h=0,g=0,_,v=0,y,b;if(!(f&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,m=this._pathLen,_=t*m,!_)))lo:for(var x=0;x<a;){var S=n[x++],C=x===1;switch(C&&(c=n[x],l=n[x+1],o=c,s=l),S!==no.L&&v>0&&(e.lineTo(y,b),v=0),S){case no.M:o=c=n[x++],s=l=n[x++],e.moveTo(c,l);break;case no.L:u=n[x++],d=n[x++];var w=mo(u-c),T=mo(d-l);if(w>r||T>i){if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+u*D,l*(1-D)+d*D);break lo}h+=E}e.lineTo(u,d),c=u,l=d,v=0}else{var O=w*w+T*T;O>v&&(y=u,b=d,v=O)}break;case no.C:var k=n[x++],A=n[x++],j=n[x++],M=n[x++],ee=n[x++],te=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;Jr(c,k,j,ee,D,ro),Jr(l,A,M,te,D,io),e.bezierCurveTo(ro[1],io[1],ro[2],io[2],ro[3],io[3]);break lo}h+=E}e.bezierCurveTo(k,A,j,M,ee,te),c=ee,l=te;break;case no.Q:var k=n[x++],A=n[x++],j=n[x++],M=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;ti(c,k,j,D,ro),ti(l,A,M,D,io),e.quadraticCurveTo(ro[1],io[1],ro[2],io[2]);break lo}h+=E}e.quadraticCurveTo(k,A,j,M),c=j,l=M;break;case no.A:var ne=n[x++],re=n[x++],ie=n[x++],ae=n[x++],oe=n[x++],se=n[x++],ce=n[x++],le=!n[x++],ue=ie>ae?ie:ae,de=mo(ie-ae)>.001,fe=oe+se,N=!1;if(f){var E=p[g++];h+E>_&&(fe=oe+se*(_-h)/E,N=!0),h+=E}if(de&&e.ellipse?e.ellipse(ne,re,ie,ae,ce,oe,fe,le):e.arc(ne,re,ue,oe,fe,le),N)break lo;C&&(o=fo(oe)*ie+ne,s=po(oe)*ae+re),c=fo(fe)*ie+ne,l=po(fe)*ae+re;break;case no.R:o=c=n[x],s=l=n[x+1],u=n[x++],d=n[x++];var pe=n[x++],me=n[x++];if(f){var E=p[g++];if(h+E>_){var he=_-h;e.moveTo(u,d),e.lineTo(u+lo(he,pe),d),he-=pe,he>0&&e.lineTo(u+pe,d+lo(he,me)),he-=me,he>0&&e.lineTo(u+uo(pe-he,0),d+me),he-=pe,he>0&&e.lineTo(u,d+uo(me-he,0));break lo}h+=E}e.rect(u,d,pe,me);break;case no.Z:if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+o*D,l*(1-D)+s*D);break lo}h+=E}e.closePath(),c=o,l=s}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.prototype.canSave=function(){return!!this._saveData},e.CMD=no,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e}();function So(e,t,n,r,i,a,o){if(i===0)return!1;var s=i,c=0,l=e;if(o>t+s&&o>r+s||o<t-s&&o<r-s||a>e+s&&a>n+s||a<e-s&&a<n-s)return!1;if(e!==n)c=(t-r)/(e-n),l=(e*r-n*t)/(e-n);else return Math.abs(a-e)<=s/2;var u=c*a-o+l;return u*u/(c*c+1)<=s/2*s/2}function Co(e,t,n,r,i,a,o,s,c,l,u){if(c===0)return!1;var d=c;return u>t+d&&u>r+d&&u>a+d&&u>s+d||u<t-d&&u<r-d&&u<a-d&&u<s-d||l>e+d&&l>n+d&&l>i+d&&l>o+d||l<e-d&&l<n-d&&l<i-d&&l<o-d?!1:Yr(e,t,n,r,i,a,o,s,l,u,null)<=d/2}function wo(e,t,n,r,i,a,o,s,c){if(o===0)return!1;var l=o;return c>t+l&&c>r+l&&c>a+l||c<t-l&&c<r-l&&c<a-l||s>e+l&&s>n+l&&s>i+l||s<e-l&&s<n-l&&s<i-l?!1:ni(e,t,n,r,i,a,s,c,null)<=l/2}var To=Math.PI*2;function Eo(e){return e%=To,e<0&&(e+=To),e}var Do=Math.PI*2;function Oo(e,t,n,r,i,a,o,s,c){if(o===0)return!1;var l=o;s-=e,c-=t;var u=Math.sqrt(s*s+c*c);if(u-l>n||u+l<n)return!1;if(Math.abs(r-i)%Do<1e-4)return!0;if(a){var d=r;r=Eo(i),i=Eo(d)}else r=Eo(r),i=Eo(i);r>i&&(i+=Do);var f=Math.atan2(c,s);return f<0&&(f+=Do),f>=r&&f<=i||f+Do>=r&&f+Do<=i}function ko(e,t,n,r,i,a){if(a>t&&a>r||a<t&&a<r||r===t)return 0;var o=(a-t)/(r-t),s=r<t?1:-1;(o===1||o===0)&&(s=r<t?.5:-.5);var c=o*(n-e)+e;return c===i?1/0:c>i?s:0}var Ao=xo.CMD,jo=Math.PI*2,Mo=1e-4;function No(e,t){return Math.abs(e-t)<Mo}var Po=[-1,-1,-1],Fo=[-1,-1];function Io(){var e=Fo[0];Fo[0]=Fo[1],Fo[1]=e}function Lo(e,t,n,r,i,a,o,s,c,l){if(l>t&&l>r&&l>a&&l>s||l<t&&l<r&&l<a&&l<s)return 0;var u=Kr(t,r,a,s,l,Po);if(u===0)return 0;for(var d=0,f=-1,p=void 0,m=void 0,h=0;h<u;h++){var g=Po[h],_=g===0||g===1?.5:1;Wr(e,n,i,o,g)<c||(f<0&&(f=qr(t,r,a,s,Fo),Fo[1]<Fo[0]&&f>1&&Io(),p=Wr(t,r,a,s,Fo[0]),f>1&&(m=Wr(t,r,a,s,Fo[1]))),f===2?g<Fo[0]?d+=p<t?_:-_:g<Fo[1]?d+=m<p?_:-_:d+=s<m?_:-_:g<Fo[0]?d+=p<t?_:-_:d+=s<p?_:-_)}return d}function Ro(e,t,n,r,i,a,o,s){if(s>t&&s>r&&s>a||s<t&&s<r&&s<a)return 0;var c=$r(t,r,a,s,Po);if(c===0)return 0;var l=ei(t,r,a);if(l>=0&&l<=1){for(var u=0,d=Zr(t,r,a,l),f=0;f<c;f++){var p=Po[f]===0||Po[f]===1?.5:1,m=Zr(e,n,i,Po[f]);m<o||(Po[f]<l?u+=d<t?p:-p:u+=a<d?p:-p)}return u}var p=Po[0]===0||Po[0]===1?.5:1,m=Zr(e,n,i,Po[0]);return m<o?0:a<t?p:-p}function zo(e,t,n,r,i,a,o,s){if(s-=t,s>n||s<-n)return 0;var c=Math.sqrt(n*n-s*s);Po[0]=-c,Po[1]=c;var l=Math.abs(r-i);if(l<1e-4)return 0;if(l>=jo-1e-4){r=0,i=jo;var u=a?1:-1;return o>=Po[0]+e&&o<=Po[1]+e?u:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=jo,i+=jo);for(var f=0,p=0;p<2;p++){var m=Po[p];if(m+e>o){var h=Math.atan2(s,m),u=a?1:-1;h<0&&(h=jo+h),(h>=r&&h<=i||h+jo>=r&&h+jo<=i)&&(h>Math.PI/2&&h<Math.PI*1.5&&(u=-u),f+=u)}}return f}function Bo(e,t,n,r,i){for(var a=e.data,o=e.len(),s=0,c=0,l=0,u=0,d=0,f,p,m=0;m<o;){var h=a[m++],g=m===1;switch(h===Ao.M&&m>1&&(n||(s+=ko(c,l,u,d,r,i))),g&&(c=a[m],l=a[m+1],u=c,d=l),h){case Ao.M:u=a[m++],d=a[m++],c=u,l=d;break;case Ao.L:if(n){if(So(c,l,a[m],a[m+1],t,r,i))return!0}else s+=ko(c,l,a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case Ao.C:if(n){if(Co(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=Lo(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case Ao.Q:if(n){if(wo(c,l,a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=Ro(c,l,a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case Ao.A:var _=a[m++],v=a[m++],y=a[m++],b=a[m++],x=a[m++],S=a[m++];m+=1;var C=!!(1-a[m++]);f=Math.cos(x)*y+_,p=Math.sin(x)*b+v,g?(u=f,d=p):s+=ko(c,l,f,p,r,i);var w=(r-_)*b/y+_;if(n){if(Oo(_,v,b,x,x+S,C,t,w,i))return!0}else s+=zo(_,v,b,x,x+S,C,w,i);c=Math.cos(x+S)*y+_,l=Math.sin(x+S)*b+v;break;case Ao.R:u=c=a[m++],d=l=a[m++];var T=a[m++],E=a[m++];if(f=u+T,p=d+E,n){if(So(u,d,f,d,t,r,i)||So(f,d,f,p,t,r,i)||So(f,p,u,p,t,r,i)||So(u,p,u,d,t,r,i))return!0}else s+=ko(f,d,f,p,r,i),s+=ko(u,p,u,d,r,i);break;case Ao.Z:if(n){if(So(c,l,u,d,t,r,i))return!0}else s+=ko(c,l,u,d,r,i);c=u,l=d}}return!n&&!No(l,d)&&(s+=ko(c,l,u,d,r,i)||0),s!==0}function Vo(e,t,n){return Bo(e,0,!1,t,n)}function Ho(e,t,n,r){return Bo(e,t,!0,n,r)}var Uo=L({fill:`#000`,stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:`butt`,miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Na),Wo={style:L({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Pa.style)},Go=Ar.concat([`invisible`,`culling`,`z`,`z2`,`zlevel`,`parent`]),Ko=function(e){T(t,e);function t(t){return e.call(this,t)||this}return t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(e){n.buildPath(e,n.shape)}),i.silent=!0;var a=i.style;for(var o in r)a[o]!==r[o]&&(a[o]=r[o]);a.fill=r.fill?r.decal:null,a.decal=null,a.shadowColor=null,r.strokeFirst&&(a.stroke=null);for(var s=0;s<Go.length;++s)i[Go[s]]=this[Go[s]];i.__dirty|=1}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(t){var n=Te(t);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var i=0;i<n.length;i++){var a=n[i],o=t[a];a===`style`?this.style?I(this.style,o):this.useStyle(o):a===`shape`?I(this.shape,o):e.prototype.attrKV.call(this,a,o)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if(e!==`none`){if(U(e)){var t=Ni(e,0);return t>.5?fa:t>.2?ma:pa}if(e)return pa}return fa},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(U(t)){var n=this.__zr;if(!!(n&&n.isDarkMode())==Ni(e,0)<.4)return t}},t.prototype.buildPath=function(e,t,n){},t.prototype.pathUpdated=function(){this.__dirty&=-5},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new xo(!1)},t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&4)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),e=i.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var a=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){a.copy(e);var o=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;s=Math.max(s,c==null?4:c)}o>1e-10&&(a.width+=s/o,a.height+=s/o,a.x-=s/o/2,a.y-=s/o/2)}return a}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),i=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var a=this.path;if(this.hasStroke()){var o=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),Ho(a,o/s,e,t)))return!0}if(this.hasFill())return Vo(a,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate(`shape`,e)},t.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():e===`shape`?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){t===`shape`?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||(n=this.shape={}),typeof e==`string`?n[e]=t:I(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&4)},t.prototype.createStyle=function(e){return Qe(Uo,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=I({},this.shape))},t.prototype._applyStateObj=function(t,n,r,i,a,o){if(e.prototype._applyStateObj.call(this,t,n,r,i,a,o),this.__inHover!==1){var s=!(n&&i),c;if(n&&n.shape?a?i?c=n.shape:(c=I({},r.shape),I(c,n.shape)):(c=I({},i?this.shape:r.shape),I(c,n.shape)):s&&(c=r.shape),c){if(a){this.shape=I({},this.shape);for(var l={},u=Te(c),d=0;d<u.length;d++){var f=u[d];typeof c[f]==`object`?this.shape[f]=c[f]:l[f]=c[f]}this._transitionState(t,{shape:l},o)}else this.shape=c,this.dirtyShape()}}},t.prototype._mergeStates=function(t){for(var n=e.prototype._mergeStates.call(this,t),r,i=0;i<t.length;i++){var a=t[i];a.shape&&(r=r||{},this._mergeStyle(r,a.shape))}return r&&(n.shape=r),n},t.prototype.getAnimationStyleProps=function(){return Wo},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(t){T(n,t);function n(n){var r=t.call(this,n)||this;return e.init&&e.init.call(r,n),r}return n.prototype.getDefaultStyle=function(){return P(e.style)},n.prototype.getDefaultShape=function(){return P(e.shape)},n}(t);for(var r in e)typeof e[r]==`function`&&(n.prototype[r]=e[r]);return n},t.initDefaultProps=(function(){var e=t.prototype;e.type=`path`,e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=7})(),t}(La),qo=L({strokeFirst:!0,font:E,x:0,y:0,textAlign:`left`,textBaseline:`top`,miterLimit:2},Uo),Jo=function(e){T(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){return yr(this.style)},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.createStyle=function(e){return Qe(qo,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){return this._rect||(this._rect=_r(this.style)),this._rect},t.initDefaultProps=(function(){var e=t.prototype;e.dirtyRectTolerance=10})(),t}(La);Jo.prototype.type=`tspan`;var Yo=L({x:0,y:0},Na),Xo={style:L({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Pa.style)};function Zo(e){return!!(e&&typeof e!=`string`&&e.width&&e.height)}var Qo=function(e){T(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return Qe(Yo,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(n!=null)return n;var r=Zo(t.image)?t.image:this.__image;if(!r)return 0;var i=e===`width`?`height`:`width`,a=t[i];return a==null?r[e]:r[e]/r[i]*a},t.prototype.getWidth=function(){return this._getSize(`width`)},t.prototype.getHeight=function(){return this._getSize(`height`)},t.prototype.getAnimationStyleProps=function(){return Xo},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new X(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(La);Qo.prototype.type=`image`;function $o(e,t){var n=t.x,r=t.y,i=t.width,a=t.height,o=t.r,s,c,l,u;i<0&&(n+=i,i=-i),a<0&&(r+=a,a=-a),typeof o==`number`?s=c=l=u=o:o instanceof Array?o.length===1?s=c=l=u=o[0]:o.length===2?(s=l=o[0],c=u=o[1]):o.length===3?(s=o[0],c=u=o[1],l=o[2]):(s=o[0],c=o[1],l=o[2],u=o[3]):s=c=l=u=0;var d;s+c>i&&(d=s+c,s*=i/d,c*=i/d),l+u>i&&(d=l+u,l*=i/d,u*=i/d),c+l>a&&(d=c+l,c*=a/d,l*=a/d),s+u>a&&(d=s+u,s*=a/d,u*=a/d),e.moveTo(n+s,r),e.lineTo(n+i-c,r),c!==0&&e.arc(n+i-c,r+c,c,-Math.PI/2,0),e.lineTo(n+i,r+a-l),l!==0&&e.arc(n+i-l,r+a-l,l,0,Math.PI/2),e.lineTo(n+u,r+a),u!==0&&e.arc(n+u,r+a-u,u,Math.PI/2,Math.PI),e.lineTo(n,r+s),s!==0&&e.arc(n+s,r+s,s,Math.PI,Math.PI*1.5),e.closePath()}var es=Math.round;function ts(e,t,n){if(t){var r=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=r,e.x2=i,e.y1=a,e.y2=o;var s=n&&n.lineWidth;return s?(es(r*2)===es(i*2)&&(e.x1=e.x2=rs(r,s,!0)),es(a*2)===es(o*2)&&(e.y1=e.y2=rs(a,s,!0)),e):e}}function ns(e,t,n){if(t){var r=t.x,i=t.y,a=t.width,o=t.height;e.x=r,e.y=i,e.width=a,e.height=o;var s=n&&n.lineWidth;return s?(e.x=rs(r,s,!0),e.y=rs(i,s,!0),e.width=Math.max(rs(r+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(rs(i+o,s,!1)-e.y,o===0?0:1),e):e}}function rs(e,t,n){if(!t)return e;var r=es(e*2);return(r+es(t))%2==0?r/2:(r+(n?1:-1))/2}var is=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),as={},os=function(e){T(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new is},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=ns(as,t,this.style);n=o.x,r=o.y,i=o.width,a=o.height,o.r=t.r,t=o}else n=t.x,r=t.y,i=t.width,a=t.height;t.r?$o(e,t):e.rect(n,r,i,a)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Ko);os.prototype.type=`rect`;var ss={fill:`#000`},cs=2,ls={},us={style:L({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Pa.style)},ds=function(e){T(t,e);function t(t){var n=e.call(this)||this;return n.type=`text`,n._children=[],n._defaultStyle=ss,n.attr(t),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var n=this._children[t];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(t){var n=this.innerTransformable;return n?n.getLocalTransform(t):e.prototype.getLocalTransform.call(this,t)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,vs(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=t},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new X(0,0,0,0),t=this._children,n=[],r=null,i=0;i<t.length;i++){var a=t[i],o=a.getBoundingRect(),s=a.getLocalTransform(n);s?(e.copy(o),e.applyTransform(s),r=r||e.clone(),r.union(e)):(r=r||o.clone(),r.union(o))}this._rect=r||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||ss},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,t){if(!t)return e;var n=t.rich,r=e.rich||n&&{};return I(e,t),n&&r?(this._mergeRich(r,n),e.rich=r):r&&(e.rich=r),e},t.prototype._mergeRich=function(e,t){for(var n=Te(t),r=0;r<n.length;r++){var i=n[r];e[i]=e[i]||{},I(e[i],t[i])}},t.prototype.getAnimationStyleProps=function(){return us},t.prototype._getOrCreateChild=function(e){var t=this._children[this._childCursor];return(!t||!(t instanceof e))&&(t=new e),this._children[this._childCursor++]=t,t.__zr=this.__zr,t.parent=this,t},t.prototype._updatePlainTexts=function(){var e=this.style,t=e.font||`12px sans-serif`,n=e.padding,r=this._defaultStyle,i=e.x||0,a=e.y||0,o=e.align||r.align||`left`,s=e.verticalAlign||r.verticalAlign||`top`;pr(ls,r.overflowRect,i,a,o,s),i=ls.baseX,a=ls.baseY;var c=rr(Cs(e),e,ls.outerWidth,ls.outerHeight),l=ws(e),u=!!e.backgroundColor,d=c.outerHeight,f=c.outerWidth,p=c.lines,m=c.lineHeight;this.isTruncated=!!c.isTruncated;var h=i,g=qn(a,c.contentHeight,s);if(l||n){var _=Kn(i,f,o),v=qn(a,d,s);l&&this._renderBackground(e,e,_,v,f,d)}g+=m/2,n&&(h=Ss(i,o,n),s===`top`?g+=n[0]:s===`bottom`&&(g-=n[2]));for(var y=0,b=!1,x=!1,S=xs(`fill`in e?e.fill:(x=!0,r.fill)),C=bs(`stroke`in e?e.stroke:!u&&(!r.autoStroke||x)?(y=cs,b=!0,r.stroke):null),w=e.textShadowBlur>0,T=0;T<p.length;T++){var E=this._getOrCreateChild(Jo),D=E.createStyle();E.useStyle(D),D.text=p[T],D.x=h,D.y=g,o&&(D.textAlign=o),D.textBaseline=`middle`,D.opacity=e.opacity,D.strokeFirst=!0,w&&(D.shadowBlur=e.textShadowBlur||0,D.shadowColor=e.textShadowColor||`transparent`,D.shadowOffsetX=e.textShadowOffsetX||0,D.shadowOffsetY=e.textShadowOffsetY||0),D.stroke=C,D.fill=S,C&&(D.lineWidth=e.lineWidth||y,D.lineDash=e.lineDash,D.lineDashOffset=e.lineDashOffset||0),D.font=t,gs(D,e),g+=m,E.setBoundingRect(vr(D,c.contentWidth,c.calculatedLineHeight,b?0:null))}},t.prototype._updateRichTexts=function(){var e=this.style,t=this._defaultStyle,n=e.align||t.align,r=e.verticalAlign||t.verticalAlign,i=e.x||0,a=e.y||0;pr(ls,t.overflowRect,i,a,n,r),i=ls.baseX,a=ls.baseY;var o=sr(Cs(e),e,ls.outerWidth,ls.outerHeight,n),s=o.width,c=o.outerWidth,l=o.outerHeight,u=e.padding;this.isTruncated=!!o.isTruncated;var d=Kn(i,c,n),f=qn(a,l,r),p=d,m=f;u&&(p+=u[3],m+=u[0]);var h=p+s;ws(e)&&this._renderBackground(e,e,d,f,c,l);for(var g=!!e.backgroundColor,_=0;_<o.lines.length;_++){for(var v=o.lines[_],y=v.tokens,b=y.length,x=v.lineHeight,S=v.width,C=0,w=p,T=h,E=b-1,D=void 0;C<b&&(D=y[C],!D.align||D.align===`left`);)this._placeToken(D,e,x,m,w,`left`,g),S-=D.width,w+=D.width,C++;for(;E>=0&&(D=y[E],D.align===`right`);)this._placeToken(D,e,x,m,T,`right`,g),S-=D.width,T-=D.width,E--;for(w+=(s-(w-p)-(h-T)-S)/2;C<=E;)D=y[C],this._placeToken(D,e,x,m,w+D.width/2,`center`,g),w+=D.width,C++;m+=x}},t.prototype._placeToken=function(e,t,n,r,i,a,o){var s=t.rich[e.styleName]||{};s.text=e.text;var c=e.verticalAlign,l=r+n/2;c===`top`?l=r+e.height/2:c===`bottom`&&(l=r+n-e.height/2),!e.isLineHolder&&ws(s)&&this._renderBackground(s,t,a===`right`?i-e.width:a===`center`?i-e.width/2:i,l-e.height/2,e.width,e.height);var u=!!s.backgroundColor,d=e.textPadding;d&&(i=Ss(i,a,d),l-=e.height/2-d[0]-e.innerHeight/2);var f=this._getOrCreateChild(Jo),p=f.createStyle();f.useStyle(p);var m=this._defaultStyle,h=!1,g=0,_=!1,v=xs(`fill`in s?s.fill:`fill`in t?t.fill:(h=!0,m.fill)),y=bs(`stroke`in s?s.stroke:`stroke`in t?t.stroke:!u&&!o&&(!m.autoStroke||h)?(g=cs,_=!0,m.stroke):null),b=s.textShadowBlur>0||t.textShadowBlur>0;p.text=e.text,p.x=i,p.y=l,b&&(p.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,p.shadowColor=s.textShadowColor||t.textShadowColor||`transparent`,p.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,p.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),p.textAlign=a,p.textBaseline=`middle`,p.font=e.font||`12px sans-serif`,p.opacity=ze(s.opacity,t.opacity,1),gs(p,s),y&&(p.lineWidth=ze(s.lineWidth,t.lineWidth,g),p.lineDash=G(s.lineDash,t.lineDash),p.lineDashOffset=t.lineDashOffset||0,p.stroke=y),v&&(p.fill=v),f.setBoundingRect(vr(p,e.contentWidth,e.contentHeight,_?0:null))},t.prototype._renderBackground=function(e,t,n,r,i,a){var o=e.backgroundColor,s=e.borderWidth,c=e.borderColor,l=o&&o.image,u=o&&!l,d=e.borderRadius,f=this,p,m;if(u||e.lineHeight||s&&c){p=this._getOrCreateChild(os),p.useStyle(p.createStyle()),p.style.fill=null;var h=p.shape;h.x=n,h.y=r,h.width=i,h.height=a,h.r=d,p.dirtyShape()}if(u){var g=p.style;g.fill=o||null,g.fillOpacity=G(e.fillOpacity,1)}else if(l){m=this._getOrCreateChild(Qo),m.onload=function(){f.dirtyStyle()};var _=m.style;_.image=o.image,_.x=n,_.y=r,_.width=i,_.height=a}if(s&&c){var g=p.style;g.lineWidth=s,g.stroke=c,g.strokeOpacity=G(e.strokeOpacity,1),g.lineDash=e.borderDash,g.lineDashOffset=e.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(g.strokeFirst=!0,g.lineWidth*=2)}var v=(p||m).style;v.shadowBlur=e.shadowBlur||0,v.shadowColor=e.shadowColor||`transparent`,v.shadowOffsetX=e.shadowOffsetX||0,v.shadowOffsetY=e.shadowOffsetY||0,v.opacity=ze(e.opacity,t.opacity,1)},t.makeFont=function(e){var t=``;return _s(e)&&(t=[e.fontStyle,e.fontWeight,hs(e.fontSize),e.fontFamily||`sans-serif`].join(` `)),t&&Ue(t)||e.textFont||e.font},t}(La),fs={left:!0,right:1,center:1},ps={top:1,bottom:1,middle:1},ms=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`];function hs(e){return typeof e==`string`&&(e.indexOf(`px`)!==-1||e.indexOf(`rem`)!==-1||e.indexOf(`em`)!==-1)?e:isNaN(+e)?`12px`:e+`px`}function gs(e,t){for(var n=0;n<ms.length;n++){var r=ms[n],i=t[r];i!=null&&(e[r]=i)}}function _s(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function vs(e){return ys(e),z(e.rich,ys),e}function ys(e){if(e){e.font=ds.makeFont(e);var t=e.align;t===`middle`&&(t=`center`),e.align=t==null||fs[t]?t:`left`;var n=e.verticalAlign;n===`center`&&(n=`middle`),e.verticalAlign=n==null||ps[n]?n:`top`,e.padding&&(e.padding=Ve(e.padding))}}function bs(e,t){return e==null||t<=0||e===`transparent`||e===`none`?null:e.image||e.colorStops?`#000`:e}function xs(e){return e==null||e===`none`?null:e.image||e.colorStops?`#000`:e}function Ss(e,t,n){return t===`right`?e-n[1]:t===`center`?e+n[3]/2-n[1]/2:e+n[3]}function Cs(e){var t=e.text;return t!=null&&(t+=``),t}function ws(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var Ts=1e-4,Es=20;function Ds(e){return e.replace(/^\s+|\s+$/g,``)}var Os=Math.min,ks=Math.max,As=Math.abs,js=Math.round,Ms=Math.floor,Ns=Math.ceil,Ps=Math.pow,Fs=Math.log,Is=Math.LN10,Ls=Math.PI,Rs=Math.random;function zs(e,t,n,r){var i=t[0],a=t[1],o=n[0],s=n[1],c=a-i,l=s-o;if(c===0)return l===0?o:(o+s)/2;if(r){if(c>0){if(e<=i)return o;if(e>=a)return s}else if(e>=i)return o;else if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/c*l+o}var Bs=Vs;function Vs(e,t,n){switch(e){case`center`:case`middle`:e=`50%`;break;case`left`:case`top`:e=`0%`;break;case`right`:case`bottom`:e=`100%`}return Hs(e,t,n)}function Hs(e,t,n){return U(e)?Us(e)?parseFloat(e)/100*t+(n||0):parseFloat(e):e==null?NaN:+e}function Us(e){return!!Ds(e).match(/%$/)}function Ws(e,t,n){return isNaN(t)?n?``+e:+e:(t=Os(ks(0,t),Es),e=(+e).toFixed(t),n?e:+e)}function Gs(e,t,n){return t==null&&(t=10),Ws(e,t,n)}function Ks(e){return e.sort(function(e,t){return e-t}),e}function qs(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(js(e*t)/t===e)return n}return Js(e)}function Js(e){var t=e.toString().toLowerCase(),n=t.indexOf(`e`),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,a=t.indexOf(`.`);return ks(0,(a<0?0:i-1-a)-r)}function Ys(e,t){var n=Ms(Fs(e[1]-e[0])/Is),r=js(Fs(As(t[1]-t[0]))/Is),i=Os(ks(-n+r,0),Es);return isFinite(i)?i:Es}function Xs(e,t,n){var r=As(e[1]-e[0]);if(!isFinite(r)||r===0)return NaN;var i=Fs(2*As(n||1)*As(r))/Is,a=Fs(As(t))/Is,o=ks(0,Ns(-i+a));return isFinite(o)||(o=NaN),o}function Zs(e,t,n){return e[t]&&Qs(e,n)[t]||0}function Qs(e,t){var n=Se(e,function(e,t){return e+(isNaN(t)?0:t)},0);if(n===0)return[];for(var r=Ps(10,t),i=B(e,function(e){return(isNaN(e)?0:e)/n*r*100}),a=r*100,o=B(i,function(e){return Ms(e)}),s=Se(o,function(e,t){return e+t},0),c=B(i,function(e,t){return e-o[t]});s<a;){for(var l=-1/0,u=null,d=0,f=c.length;d<f;++d)c[d]>l&&(l=c[d],u=d);++o[u],c[u]=0,++s}return B(o,function(e){return e/r})}function $s(e,t){var n=ks(qs(e),qs(t)),r=e+t;return n>Es?r:Ws(r,n)}var ec=Ps(2,53)-1;function tc(e){var t=Ls*2;return(e%t+t)%t}function nc(e){return e>-Ts&&e<Ts}var rc=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function ic(e){if(e instanceof Date)return e;if(U(e)){var t=rc.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return t[8].toUpperCase()!==`Z`&&(n-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}return new Date(+t[1],(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}return e==null?new Date(NaN):new Date(js(e))}function ac(e){return Ps(10,oc(e))}function oc(e){if(e===0)return 0;var t=Ms(Fs(e)/Is);return e/Ps(10,t)>=10&&t++,t}function sc(e,t){var n=oc(e),r=Ps(10,n),i=e/r;return e=(t===2?1:t?i<1.5?1:i<2.5?2:i<4?3:i<7?5:10:i<1?1:i<2?2:i<3?3:i<5?5:10)*r,Ws(e,-n)}function cc(e,t){var n=(e.length-1)*t+1,r=Ms(n),i=+e[r-1],a=n-r;return a?i+a*(e[r]-i):i}function lc(e){e.sort(function(e,t){return s(e,t,0)?-1:1});for(var t=-1/0,n=1,r=0;r<e.length;){for(var i=e[r].interval,a=e[r].close,o=0;o<2;o++)i[o]<=t&&(i[o]=t,a[o]=o?1:1-n),t=i[o],n=a[o];i[0]===i[1]&&a[0]*a[1]!==1?e.splice(r,1):r++}return e;function s(e,t,n){return e.interval[n]<t.interval[n]||e.interval[n]===t.interval[n]&&(e.close[n]-t.close[n]===(n?-1:1)||!n&&s(e,t,1))}}function uc(e){var t=parseFloat(e);return t==e&&(t!==0||!U(e)||e.indexOf(`x`)<=0)?t:NaN}function dc(e){return!isNaN(uc(e))}function fc(){return js(Rs()*9)}function pc(e,t){return t===0?e:pc(t,e%t)}function mc(e,t){return e==null?t:t==null?e:e*t/pc(e,t)}function hc(e){return e!=null&&isFinite(e)}var gc=`[ECharts] `,_c={},vc=typeof console<`u`&&console.warn&&console.log;function yc(e,t,n){if(vc){if(n){if(_c[t])return;_c[t]=!0}console[e](gc+t)}}function bc(e,t){yc(`error`,e,t)}function xc(e){throw Error(e)}function Sc(e,t,n){return(t-e)*n+e}var Cc=`series\0`,wc=`\0_ec_\0`;function Tc(e){return e instanceof Array?e:e==null?[]:[e]}function Ec(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var r=0,i=n.length;r<i;r++){var a=n[r];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}var Dc=`fontStyle.fontWeight.fontSize.fontFamily.rich.tag.color.textBorderColor.textBorderWidth.width.height.lineHeight.align.verticalAlign.baseline.shadowColor.shadowBlur.shadowOffsetX.shadowOffsetY.textShadowColor.textShadowBlur.textShadowOffsetX.textShadowOffsetY.backgroundColor.borderColor.borderWidth.borderRadius.padding`.split(`.`);function Oc(e){return W(e)&&!V(e)&&!(e instanceof Date)?e.value:e}function kc(e){return W(e)&&!(e instanceof Array)}function Ac(e,t,n){var r=n===`normalMerge`,i=n===`replaceMerge`,a=n===`replaceAll`;e=e||[],t=(t||[]).slice();var o=K();z(t,function(e,n){if(!W(e)){t[n]=null;return}});var s=jc(e,o,n);return(r||i)&&Mc(s,e,o,t),r&&Nc(s,t),r||i?Pc(s,t,i):a&&Fc(s,t),Ic(s),s}function jc(e,t,n){var r=[];if(n===`replaceAll`)return r;for(var i=0;i<e.length;i++){var a=e[i];a&&a.id!=null&&t.set(a.id,i),r.push({existing:n===`replaceMerge`||Vc(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return r}function Mc(e,t,n,r){z(r,function(i,a){if(i&&i.id!=null){var o=Rc(i.id),s=n.get(o);if(s!=null){var c=e[s];He(!c.newOption,`Duplicated option on id "`+o+`".`),c.newOption=i,c.existing=t[s],r[a]=null}}})}function Nc(e,t){z(t,function(n,r){if(n&&n.name!=null)for(var i=0;i<e.length;i++){var a=e[i].existing;if(!e[i].newOption&&a&&(a.id==null||n.id==null)&&!Vc(n)&&!Vc(a)&&Lc(`name`,a,n)){e[i].newOption=n,t[r]=null;return}}})}function Pc(e,t,n){z(t,function(t){if(t){for(var r,i=0;(r=e[i])&&(r.newOption||Vc(r.existing)||r.existing&&t.id!=null&&!Lc(`id`,t,r.existing));)i++;r?(r.newOption=t,r.brandNew=n):e.push({newOption:t,brandNew:n,existing:null,keyInfo:null}),i++}})}function Fc(e,t){z(t,function(t){e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function Ic(e){var t=K();z(e,function(e){var n=e.existing;n&&t.set(n.id,e)}),z(e,function(e){var n=e.newOption;He(!n||n.id==null||!t.get(n.id)||t.get(n.id)===e,`id duplicates: `+(n&&n.id)),n&&n.id!=null&&t.set(n.id,e),!e.keyInfo&&(e.keyInfo={})}),z(e,function(e,n){var r=e.existing,i=e.newOption,a=e.keyInfo;if(W(i)){if(a.name=i.name==null?r?r.name:Cc+n:Rc(i.name),r)a.id=Rc(r.id);else if(i.id!=null)a.id=Rc(i.id);else{var o=0;do a.id=`\0`+a.name+`\0`+o++;while(t.get(a.id))}t.set(a.id,e)}})}function Lc(e,t,n){var r=zc(t[e],null),i=zc(n[e],null);return r!=null&&i!=null&&r===i}function Rc(e){return zc(e,``)}function zc(e,t){return e==null?t:U(e)?e:Ae(e)||ke(e)?e+``:t}function Bc(e){var t=e.name;return!!(t&&t.indexOf(Cc))}function Vc(e){return e&&e.id!=null&&Rc(e.id).indexOf(wc)===0}function Hc(e){return wc+e}function Uc(e,t,n){z(e,function(e){var r=e.newOption;W(r)&&(e.keyInfo.mainType=t,e.keyInfo.subType=Wc(t,r,e.existing,n))})}function Wc(e,t,n,r){return t.type?t.type:n?n.subType:r.determineSubType(e,t)}function Gc(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return V(t.dataIndex)?B(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return V(t.name)?B(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name)}function Kc(){var e=`__ec_inner_`+qc++;return function(t){return t[e]||(t[e]={})}}var qc=fc();function Jc(e,t,n){var r=Yc(t,n),i=r.mainTypeSpecified,a=r.queryOptionMap,o=r.others,s=n?n.defaultMainType:null;return!i&&s&&a.set(s,{}),a.each(function(t,r){var i=Qc(e,r,t,{useDefault:s===r,enableAll:n&&n.enableAll!=null?n.enableAll:!0,enableNone:n&&n.enableNone!=null?n.enableNone:!0});o[r+`Models`]=i.models,o[r+`Model`]=i.models[0]}),o}function Yc(e,t){var n;if(U(e)){var r={};r[e+`Index`]=0,n=r}else n=e;var i=K(),a={},o=!1;return z(n,function(e,n){if(n===`dataIndex`||n===`dataIndexInside`){a[n]=e;return}var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=r[1],c=(r[2]||``).toLowerCase();if(!(!s||!c||t&&t.includeMainTypes&&R(t.includeMainTypes,s)<0)){o=o||!!s;var l=i.get(s)||i.set(s,{});l[c]=e}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var Xc={useDefault:!0,enableAll:!1,enableNone:!1},Zc={useDefault:!1,enableAll:!0,enableNone:!0};function Qc(e,t,n,r){r=r||Xc;var i=n.index,a=n.id,o=n.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var c=void 0;return s.models=r.useDefault&&(c=e.getComponent(t))?[c]:[],s}if(i===`none`||i===!1){if(r.enableNone)return s.models=[],s;i=-1}return i===`all`&&(i=r.enableAll?a=o=null:-1),s.models=e.queryComponents({mainType:t,index:i,id:a,name:o}),s}function $c(e,t,n){var r={};r[t+`Id`]=e[t+`Id`],r[t+`Index`]=e[t+`Index`],r[t+`Name`]=e[t+`Name`];var i={mainType:t,query:r};return n&&(i.subType=n),i}function el(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function tl(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function nl(e){return e===`auto`?J.domSupported?`html`:`richText`:e||`html`}function rl(e,t,n,r,i){var a=t==null||t===`auto`;if(r==null)return r;if(Ae(r)){var o=Sc(n||0,r,i);return Ws(o,a?Math.max(qs(n||0),qs(r)):t)}if(U(r))return i<1?n:r;for(var s=[],c=n,l=r,u=Math.max(c?c.length:0,l.length),d=0;d<u;++d){var f=e.getDimensionInfo(d);if(f&&f.type===`ordinal`)s[d]=(i<1&&c?c:l)[d];else{var p=c&&c[d]?c[d]:0,m=l[d],o=Sc(p,m,i);s[d]=Ws(o,a?Math.max(qs(p),qs(m)):t)}}return s}(function(){function e(){}return e.prototype.reset=function(e,t,n,r){return this._list=e,this._step=r=r||1,this._idx=t,this._end=n==null?r>0?e.length:0:n,this.item=null,this.key=NaN,this},e.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)&&(this.item=this._list[this._idx],this.key=this._idx+=this._step,!0)},e})();function il(){return[1/0,-1/0]}function al(e,t){ll(t)&&(t<e[0]&&(e[0]=t),t>e[1]&&(e[1]=t))}function ol(e,t){ll(t)&&t<e[0]&&(e[0]=t)}function sl(e,t){ll(t)&&t>e[1]&&(e[1]=t)}function cl(e,t){ul(t[0],t[1])&&(t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]))}function ll(e){return e!=null&&isFinite(e)}function ul(e,t){return ll(e)&&ll(t)&&e<=t}function dl(e){var t=e[1]-e[0];return isFinite(t)&&t>=0}function fl(e){ul(e[0],e[1])&&e[0]>e[1]&&(e[0]=e[1])}function pl(){var e=`__ec_once_`+ml++;return function(t,n){q(t,e)||(t[e]=1,n())}}var ml=fc();function hl(e,t,n){var r=K(),i=0;z(e,function(a){var o=t(a),s=r.get(o)||0;n&&n(a,s),!s&&!n&&(e[i++]=a),r.set(o,s+1)}),n||(e.length=i)}function gl(e){return e.value+``}function _l(e){return e+``}function vl(e,t){return G(t,!0)?e.seriesIndex+2:0}function yl(e,t,n){var r=e.getData().count();return{progressiveRender:n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,large:e.get(`large`)&&r>=e.get(`largeThreshold`),modDataCount:e.get(`progressiveChunkMode`)===`mod`?e.getData().count():null}}function bl(e,t){return{seriesType:e,overallReset:t}}function xl(e){return{overallReset:e}}var Z=Kc(),Sl=function(e,t,n,r){if(r){var i=Z(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,i.ssrType=`chart`,r.type===`group`&&r.traverse(function(r){var i=Z(r);i.seriesIndex=e,i.dataIndex=n,i.dataType=t,i.ssrType=`chart`})}},Cl=K([`tooltip`,`label`,`itemName`,`itemId`,`itemGroupId`,`itemChildGroupId`,`seriesName`]),wl=`original`,Tl=`arrayRows`,El=`objectRows`,Dl=`keyedColumns`,Ol=`typedArray`,kl=`unknown`,Al=`column`,jl=[`getDom`,`getZr`,`getWidth`,`getHeight`,`getDevicePixelRatio`,`dispatchAction`,`isSSR`,`isDisposed`,`on`,`off`,`getDataURL`,`getConnectedDataURL`,`getOption`,`getId`,`updateLabelLayout`],Ml=function(){function e(e){z(jl,function(t){this[t]=De(e[t],e)},this)}return e}();function Nl(e,t){return t.mainType===`series`?e.getViewOfSeriesModel(t):e.getViewOfComponentModel(t)}var Pl=1,Fl={},Il=Kc(),Ll=Kc(),Rl=[`emphasis`,`blur`,`select`],zl=[`normal`,`emphasis`,`blur`,`select`],Bl=`highlight`,Vl=`downplay`,Hl=`select`,Ul=`unselect`,Wl=`toggleSelect`,Gl=`selectchanged`;function Kl(e){return e!=null&&e!==`none`}function ql(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function Jl(e){ql(e,`emphasis`,2)}function Yl(e){e.hoverState===2&&ql(e,`normal`,0)}function Xl(e){ql(e,`blur`,1)}function Zl(e){e.hoverState===1&&ql(e,`normal`,0)}function Ql(e){e.selected=!0}function $l(e){e.selected=!1}function eu(e,t,n){t(e,n)}function tu(e,t,n){eu(e,t,n),e.isGroup&&e.traverse(function(e){eu(e,t,n)})}function nu(e,t){switch(t){case`emphasis`:e.hoverState=2;break;case`normal`:e.hoverState=0;break;case`blur`:e.hoverState=1;break;case`select`:e.selected=!0}}function ru(e,t,n,r){for(var i=e.style,a={},o=0;o<t.length;o++){var s=t[o],c=i[s];a[s]=c==null?r&&r[s]:c}for(var o=0;o<e.animators.length;o++){var l=e.animators[o];l.__fromStateTransition&&l.__fromStateTransition.indexOf(n)<0&&l.targetName===`style`&&l.saveTo(a,t)}return a}function iu(e,t,n,r){var i=n&&R(n,`select`)>=0,a=!1;if(e instanceof Ko){var o=Il(e),s=i&&o.selectFill||o.normalFill,c=i&&o.selectStroke||o.normalStroke;if(Kl(s)||Kl(c)){r=r||{};var l=r.style||{};l.fill===`inherit`?(a=!0,r=I({},r),l=I({},l),l.fill=s):!Kl(l.fill)&&Kl(s)?(a=!0,r=I({},r),l=I({},l),l.fill=Ii(s)):!Kl(l.stroke)&&Kl(c)&&(a||(r=I({},r),l=I({},l)),l.stroke=Ii(c)),r.style=l}}if(r&&r.z2==null){a||(r=I({},r));var u=e.z2EmphasisLift;r.z2=e.z2+(u==null?10:u)}return r}function au(e,t,n){if(n&&n.z2==null){n=I({},n);var r=e.z2SelectLift;n.z2=e.z2+(r==null?9:r)}return n}function ou(e,t,n){var r=R(e.currentStates,t)>=0,i=e.style.opacity,a=r?null:ru(e,[`opacity`],t,{opacity:1});n=n||{};var o=n.style||{};return o.opacity==null&&(n=I({},n),o=I({opacity:r?i:a.opacity*.1},o),n.style=o),n}function su(e,t){var n=this.states[e];if(this.style){if(e===`emphasis`)return iu(this,e,t,n);if(e===`blur`)return ou(this,e,n);if(e===`select`)return au(this,e,n)}return n}function cu(e){e.stateProxy=su;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=su),n&&(n.stateProxy=su)}function lu(e,t){!_u(e,t)&&!e.__highByOuter&&tu(e,Jl)}function uu(e,t){!_u(e,t)&&!e.__highByOuter&&tu(e,Yl)}function du(e,t){e.__highByOuter|=1<<(t||0),tu(e,Jl)}function fu(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&tu(e,Yl)}function pu(e){tu(e,Xl)}function mu(e){tu(e,Zl)}function hu(e){tu(e,Ql)}function gu(e){tu(e,$l)}function _u(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function vu(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(t,i){var a=Ll(i),o=Nl(e,i),s=t===`series`;!s&&r.push(o),a.isBlured&&(o.group.traverse(function(e){Zl(e)}),s&&n.push(i)),a.isBlured=!1}),z(r,function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)})}function yu(e,t,n,r){var i=r.getModel();n=n||`coordinateSystem`;function a(e,t){for(var n=0;n<t.length;n++){var r=e.getItemGraphicEl(t[n]);r&&mu(r)}}if(e!=null&&t&&t!==`none`){var o=i.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var c=[];i.eachSeries(function(e){var i=o===e,l=e.coordinateSystem;if(l&&l.master&&(l=l.master),!(n===`series`&&!i||n===`coordinateSystem`&&!(l&&s?l===s:i)||t===`series`&&i)){if(r.getViewOfSeriesModel(e).group.traverse(function(e){e.__highByOuter&&i&&t===`self`||Xl(e)}),xe(t))a(e.getData(),t);else if(W(t))for(var u=Te(t),d=0;d<u.length;d++)a(e.getData(u[d]),t[u[d]]);c.push(e),Ll(e).isBlured=!0}}),i.eachComponent(function(e,t){if(e!==`series`){var n=r.getViewOfComponentModel(t);n&&n.toggleBlurSeries&&n.toggleBlurSeries(c,!0,i)}})}}function bu(e,t,n){if(e!=null&&t!=null){var r=n.getModel().getComponent(e,t);if(r){Ll(r).isBlured=!0;var i=n.getViewOfComponentModel(r);i&&i.focusBlurEnabled&&i.group.traverse(function(e){Xl(e)})}}}function xu(e,t,n){var r=e.seriesIndex,i=e.getData(t.dataType);if(i){var a=Gc(i,t);a=(V(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),c=0;!o&&c<s;)o=i.getItemGraphicEl(c++);if(o){var l=Z(o);yu(r,l.focus,l.blurScope,n)}else{var u=e.get([`emphasis`,`focus`]),d=e.get([`emphasis`,`blurScope`]);u!=null&&yu(r,u,d,n)}}}function Su(e,t,n,r){var i={focusSelf:!1,dispatchers:null};if(e==null||e===`series`||t==null||n==null)return i;var a=r.getModel().getComponent(e,t);if(!a)return i;var o=r.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(n),c,l=0;l<s.length;l++)if(Z(s[l]).focus===`self`){c=!0;break}return{focusSelf:c,dispatchers:s}}function Cu(e,t,n){var r=Z(e),i=Su(r.componentMainType,r.componentIndex,r.componentHighDownName,n),a=i.dispatchers,o=i.focusSelf;a?(o&&bu(r.componentMainType,r.componentIndex,n),z(a,function(e){return lu(e,t)})):(yu(r.seriesIndex,r.focus,r.blurScope,n),r.focus===`self`&&bu(r.componentMainType,r.componentIndex,n),lu(e,t))}function wu(e,t,n){vu(n);var r=Z(e),i=Su(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?z(i,function(e){return uu(e,t)}):uu(e,t)}function Tu(e,t,n){if(Ru(t)){var r=t.dataType,i=Gc(e.getData(r),t);V(i)||(i=[i]),e[t.type===`toggleSelect`?`toggleSelect`:t.type===`select`?`select`:`unselect`](i,r)}}function Eu(e){z(e.getAllData(),function(t){var n=t.data,r=t.type;n.eachItemGraphicEl(function(t,n){e.isSelected(n,r)?hu(t):gu(t)})})}function Du(e){var t=[];return e.eachSeries(function(e){z(e.getAllData(),function(n){n.data;var r=n.type,i=e.getSelectedDataIndices();if(i.length>0){var a={dataIndex:i,seriesIndex:e.seriesIndex};r!=null&&(a.dataType=r),t.push(a)}})}),t}function Ou(e,t,n){Fu(e,!0),tu(e,cu),ju(e,t,n)}function ku(e){Fu(e,!1)}function Au(e,t,n,r){r?ku(e):Ou(e,t,n)}function ju(e,t,n){var r=Z(e);t==null?r.focus&&(r.focus=null):(r.focus=t,r.blurScope=n)}var Mu=[`emphasis`,`blur`,`select`],Nu={itemStyle:`getItemStyle`,lineStyle:`getLineStyle`,areaStyle:`getAreaStyle`};function Pu(e,t,n,r){n=n||`itemStyle`;for(var i=0;i<Mu.length;i++){var a=Mu[i],o=t.getModel([a,n]),s=e.ensureState(a);s.style=r?r(o):o[Nu[n]]()}}function Fu(e,t){var n=t===!1,r=e;e.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!n||r.__highDownDispatcher)&&(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function Iu(e){return!!(e&&e.__highDownDispatcher)}function Lu(e){var t=Fl[e];return t==null&&Pl<=32&&(t=Fl[e]=Pl++),t}function Ru(e){var t=e.type;return t===`select`||t===`unselect`||t===`toggleSelect`}function zu(e){var t=e.type;return t===`highlight`||t===`downplay`}function Bu(e){var t=Il(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null}var Vu=xo.CMD,Hu=[[],[],[]],Uu=Math.sqrt,Wu=Math.atan2;function Gu(e,t){if(t){var n=e.data,r=e.len(),i,a,o,s,c,l,u=Vu.M,d=Vu.C,f=Vu.L,p=Vu.R,m=Vu.A,h=Vu.Q;for(o=0,s=0;o<r;){switch(i=n[o++],s=o,a=0,i){case u:a=1;break;case f:a=1;break;case d:a=3;break;case h:a=2;break;case m:var g=t[4],_=t[5],v=Uu(t[0]*t[0]+t[1]*t[1]),y=Uu(t[2]*t[2]+t[3]*t[3]),b=Wu(-t[1]/y,t[0]/v);n[o]*=v,n[o++]+=g,n[o]*=y,n[o++]+=_,n[o++]*=v,n[o++]*=y,n[o++]+=b,n[o++]+=b,o+=2,s=o;break;case p:l[0]=n[o++],l[1]=n[o++],un(l,l,t),n[s++]=l[0],n[s++]=l[1],l[0]+=n[o++],l[1]+=n[o++],un(l,l,t),n[s++]=l[0],n[s++]=l[1]}for(c=0;c<a;c++){var x=Hu[c];x[0]=n[o++],x[1]=n[o++],un(x,x,t),n[s++]=x[0],n[s++]=x[1]}}e.increaseVersion()}}var Ku=Math.sqrt,qu=Math.sin,Ju=Math.cos,Yu=Math.PI;function Xu(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Zu(e,t){return(e[0]*t[0]+e[1]*t[1])/(Xu(e)*Xu(t))}function Qu(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(Zu(e,t))}function $u(e,t,n,r,i,a,o,s,c,l,u){var d=Yu/180*c,f=Ju(d)*(e-n)/2+qu(d)*(t-r)/2,p=-1*qu(d)*(e-n)/2+Ju(d)*(t-r)/2,m=f*f/(o*o)+p*p/(s*s);m>1&&(o*=Ku(m),s*=Ku(m));var h=(i===a?-1:1)*Ku((o*o*(s*s)-o*o*(p*p)-s*s*(f*f))/(o*o*(p*p)+s*s*(f*f)))||0,g=h*o*p/s,_=h*-s*f/o,v=(e+n)/2+Ju(d)*g-qu(d)*_,y=(t+r)/2+qu(d)*g+Ju(d)*_,b=Qu([1,0],[(f-g)/o,(p-_)/s]),x=[(f-g)/o,(p-_)/s],S=[(-1*f-g)/o,(-1*p-_)/s],C=Qu(x,S);if(Zu(x,S)<=-1&&(C=Yu),Zu(x,S)>=1&&(C=0),C<0){var w=Math.round(C/Yu*1e6)/1e6;C=Yu*2+w%2*Yu}u.addData(l,v,y,o,s,b,C,d,a)}var ed=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,td=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function nd(e){var t=new xo;if(!e)return t;var n=0,r=0,i=n,a=r,o,s=xo.CMD,c=e.match(ed);if(!c)return t;for(var l=0;l<c.length;l++){for(var u=c[l],d=u.charAt(0),f=void 0,p=u.match(td)||[],m=p.length,h=0;h<m;h++)p[h]=parseFloat(p[h]);for(var g=0;g<m;){var _=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=n,T=r,E=void 0,D=void 0;switch(d){case`l`:n+=p[g++],r+=p[g++],f=s.L,t.addData(f,n,r);break;case`L`:n=p[g++],r=p[g++],f=s.L,t.addData(f,n,r);break;case`m`:n+=p[g++],r+=p[g++],f=s.M,t.addData(f,n,r),i=n,a=r,d=`l`;break;case`M`:n=p[g++],r=p[g++],f=s.M,t.addData(f,n,r),i=n,a=r,d=`L`;break;case`h`:n+=p[g++],f=s.L,t.addData(f,n,r);break;case`H`:n=p[g++],f=s.L,t.addData(f,n,r);break;case`v`:r+=p[g++],f=s.L,t.addData(f,n,r);break;case`V`:r=p[g++],f=s.L,t.addData(f,n,r);break;case`C`:f=s.C,t.addData(f,p[g++],p[g++],p[g++],p[g++],p[g++],p[g++]),n=p[g-2],r=p[g-1];break;case`c`:f=s.C,t.addData(f,p[g++]+n,p[g++]+r,p[g++]+n,p[g++]+r,p[g++]+n,p[g++]+r),n+=p[g-2],r+=p[g-1];break;case`S`:_=n,v=r,E=t.len(),D=t.data,o===s.C&&(_+=n-D[E-4],v+=r-D[E-3]),f=s.C,w=p[g++],T=p[g++],n=p[g++],r=p[g++],t.addData(f,_,v,w,T,n,r);break;case`s`:_=n,v=r,E=t.len(),D=t.data,o===s.C&&(_+=n-D[E-4],v+=r-D[E-3]),f=s.C,w=n+p[g++],T=r+p[g++],n+=p[g++],r+=p[g++],t.addData(f,_,v,w,T,n,r);break;case`Q`:w=p[g++],T=p[g++],n=p[g++],r=p[g++],f=s.Q,t.addData(f,w,T,n,r);break;case`q`:w=p[g++]+n,T=p[g++]+r,n+=p[g++],r+=p[g++],f=s.Q,t.addData(f,w,T,n,r);break;case`T`:_=n,v=r,E=t.len(),D=t.data,o===s.Q&&(_+=n-D[E-4],v+=r-D[E-3]),n=p[g++],r=p[g++],f=s.Q,t.addData(f,_,v,n,r);break;case`t`:_=n,v=r,E=t.len(),D=t.data,o===s.Q&&(_+=n-D[E-4],v+=r-D[E-3]),n+=p[g++],r+=p[g++],f=s.Q,t.addData(f,_,v,n,r);break;case`A`:y=p[g++],b=p[g++],x=p[g++],S=p[g++],C=p[g++],w=n,T=r,n=p[g++],r=p[g++],f=s.A,$u(w,T,n,r,S,C,y,b,x,f,t);break;case`a`:y=p[g++],b=p[g++],x=p[g++],S=p[g++],C=p[g++],w=n,T=r,n+=p[g++],r+=p[g++],f=s.A,$u(w,T,n,r,S,C,y,b,x,f,t)}}(d===`z`||d===`Z`)&&(f=s.Z,t.addData(f),n=i,r=a),o=f}return t.toStatic(),t}var rd=function(e){T(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t}(Ko);function id(e){return e.setData!=null}function ad(e,t){var n=nd(e),r=I({},t);return r.buildPath=function(e){var t=id(e);if(t&&e.canSave()){e.appendPath(n);var r=e.getContext();r&&e.rebuildPath(r,1)}else{var r=t?e.getContext():e;r&&n.rebuildPath(r,1)}},r.applyTransform=function(e){Gu(n,e),this.dirtyShape()},r}function od(e,t){return new rd(ad(e,t))}function sd(e,t){var n=ad(e,t);return function(e){T(t,e);function t(t){var r=e.call(this,t)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return t}(rd)}function cd(e,t){for(var n=[],r=e.length,i=0;i<r;i++){var a=e[i];n.push(a.getUpdatedPathProxy(!0))}var o=new Ko(t);return o.createPathProxy(),o.buildPath=function(e){if(id(e)){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t,1)}},o}function ld(e,t){t=t||{};var n=new Ko;return e.shape&&n.setShape(e.shape),n.setStyle(e.style),t.bakeTransform?Gu(n.path,e.getComputedTransform()):t.toLocal?n.setLocalTransform(e.getComputedTransform()):n.copyTransform(e),n.buildPath=e.buildPath,n.applyTransform=n.applyTransform,n.z=e.z,n.z2=e.z2,n.zlevel=e.zlevel,n}var ud=function(e){T(t,e);function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var t=this._children,n=0;n<t.length;n++)if(t[n].name===e)return t[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,t){if(e&&e!==this&&e.parent!==this&&t&&t.parent===this){var n=this._children,r=n.indexOf(t);r>=0&&(n.splice(r,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=R(this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,r=n[t];if(e&&e!==this&&e.parent!==this&&e!==r){n[t]=e,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,r=R(n,e);return r<0?this:(n.splice(r,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n<e.length;n++){var r=e[n];t&&r.removeSelfFromZr(t),r.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,t){for(var n=this._children,r=0;r<n.length;r++){var i=n[r];e.call(t,i,r)}return this},t.prototype.traverse=function(e,t){for(var n=0;n<this._children.length;n++){var r=this._children[n],i=e.call(t,r);r.isGroup&&!i&&r.traverse(e,t)}return this},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].addSelfToZr(t)},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].removeSelfFromZr(t)},t.prototype.getBoundingRect=function(e){for(var t=new X(0,0,0,0),n=e||this._children,r=[],i=null,a=0;a<n.length;a++){var o=n[a];if(!(o.ignore||o.invisible)){var s=o.getBoundingRect(),c=o.getLocalTransform(r);c?(X.applyTransform(t,s,c),i=i||t.clone(),i.union(t)):(i=i||s.clone(),i.union(s))}}return i||t},t}(xa);ud.prototype.type=`group`;var dd=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),fd=function(e){T(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new dd},t.prototype.buildPath=function(e,t){e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,Math.PI*2)},t}(Ko);fd.prototype.type=`circle`;var pd=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),md=function(e){T(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new pd},t.prototype.buildPath=function(e,t){var n=.5522848,r=t.cx,i=t.cy,a=t.rx,o=t.ry,s=a*n,c=o*n;e.moveTo(r-a,i),e.bezierCurveTo(r-a,i-c,r-s,i-o,r,i-o),e.bezierCurveTo(r+s,i-o,r+a,i-c,r+a,i),e.bezierCurveTo(r+a,i+c,r+s,i+o,r,i+o),e.bezierCurveTo(r-s,i+o,r-a,i+c,r-a,i),e.closePath()},t}(Ko);md.prototype.type=`ellipse`;var hd=Math.PI,gd=hd*2,_d=Math.sin,vd=Math.cos,yd=Math.acos,bd=Math.atan2,xd=Math.abs,Sd=Math.sqrt,Cd=Math.max,wd=Math.min,Td=1e-4;function Ed(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=d*c-u*l;if(!(f*f<Td))return f=(u*(t-a)-d*(e-i))/f,[e+f*c,t+f*l]}function Dd(e,t,n,r,i,a,o){var s=e-n,c=t-r,l=(o?a:-a)/Sd(s*s+c*c),u=l*c,d=-l*s,f=e+u,p=t+d,m=n+u,h=r+d,g=(f+m)/2,_=(p+h)/2,v=m-f,y=h-p,b=v*v+y*y,x=i-a,S=f*h-m*p,C=(y<0?-1:1)*Sd(Cd(0,x*x*b-S*S)),w=(S*y-v*C)/b,T=(-S*v-y*C)/b,E=(S*y+v*C)/b,D=(-S*v+y*C)/b,O=w-g,k=T-_,A=E-g,j=D-_;return O*O+k*k>A*A+j*j&&(w=E,T=D),{cx:w,cy:T,x0:-u,y0:-d,x1:w*(i/x-1),y1:T*(i/x-1)}}function Od(e){var t;if(V(e)){var n=e.length;if(!n)return e;t=n===1?[e[0],e[0],0,0]:n===2?[e[0],e[0],e[1],e[1]]:n===3?e.concat(e[2]):e}else t=[e,e,e,e];return t}function kd(e,t){var n,r=Cd(t.r,0),i=Cd(t.r0||0,0),a=r>0;if(a||i>0){if(a||(r=i,i=0),i>r){var o=r;r=i,i=o}var s=t.startAngle,c=t.endAngle;if(!(isNaN(s)||isNaN(c))){var l=t.cx,u=t.cy,d=!!t.clockwise,f=xd(c-s),p=f>gd&&f%gd;if(p>Td&&(f=p),!(r>Td))e.moveTo(l,u);else if(f>gd-Td)e.moveTo(l+r*vd(s),u+r*_d(s)),e.arc(l,u,r,s,c,!d),i>Td&&(e.moveTo(l+i*vd(c),u+i*_d(c)),e.arc(l,u,i,c,s,d));else{var m=void 0,h=void 0,g=void 0,_=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=void 0,T=void 0,E=void 0,D=void 0,O=void 0,k=void 0,A=r*vd(s),j=r*_d(s),M=i*vd(c),ee=i*_d(c),te=f>Td;if(te){var ne=t.cornerRadius;ne&&(n=Od(ne),m=n[0],h=n[1],g=n[2],_=n[3]);var re=xd(r-i)/2;if(v=wd(re,g),y=wd(re,_),b=wd(re,m),x=wd(re,h),w=S=Cd(v,y),T=C=Cd(b,x),(S>Td||C>Td)&&(E=r*vd(c),D=r*_d(c),O=i*vd(s),k=i*_d(s),f<hd)){var ie=Ed(A,j,O,k,E,D,M,ee);if(ie){var ae=A-ie[0],oe=j-ie[1],se=E-ie[0],ce=D-ie[1],le=1/_d(yd((ae*se+oe*ce)/(Sd(ae*ae+oe*oe)*Sd(se*se+ce*ce)))/2),ue=Sd(ie[0]*ie[0]+ie[1]*ie[1]);w=wd(S,(r-ue)/(le+1)),T=wd(C,(i-ue)/(le-1))}}}if(!te)e.moveTo(l+A,u+j);else if(w>Td){var de=wd(g,w),fe=wd(_,w),N=Dd(O,k,A,j,r,de,d),pe=Dd(E,D,M,ee,r,fe,d);e.moveTo(l+N.cx+N.x0,u+N.cy+N.y0),w<S&&de===fe?e.arc(l+N.cx,u+N.cy,w,bd(N.y0,N.x0),bd(pe.y0,pe.x0),!d):(de>0&&e.arc(l+N.cx,u+N.cy,de,bd(N.y0,N.x0),bd(N.y1,N.x1),!d),e.arc(l,u,r,bd(N.cy+N.y1,N.cx+N.x1),bd(pe.cy+pe.y1,pe.cx+pe.x1),!d),fe>0&&e.arc(l+pe.cx,u+pe.cy,fe,bd(pe.y1,pe.x1),bd(pe.y0,pe.x0),!d))}else e.moveTo(l+A,u+j),e.arc(l,u,r,s,c,!d);if(!(i>Td)||!te)e.lineTo(l+M,u+ee);else if(T>Td){var de=wd(m,T),fe=wd(h,T),N=Dd(M,ee,E,D,i,-fe,d),pe=Dd(A,j,O,k,i,-de,d);e.lineTo(l+N.cx+N.x0,u+N.cy+N.y0),T<C&&de===fe?e.arc(l+N.cx,u+N.cy,T,bd(N.y0,N.x0),bd(pe.y0,pe.x0),!d):(fe>0&&e.arc(l+N.cx,u+N.cy,fe,bd(N.y0,N.x0),bd(N.y1,N.x1),!d),e.arc(l,u,i,bd(N.cy+N.y1,N.cx+N.x1),bd(pe.cy+pe.y1,pe.cx+pe.x1),d),de>0&&e.arc(l+pe.cx,u+pe.cy,de,bd(pe.y1,pe.x1),bd(pe.y0,pe.x0),!d))}else e.lineTo(l+M,u+ee),e.arc(l,u,i,c,s,d)}e.closePath()}}}var Ad=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e}(),jd=function(e){T(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Ad},t.prototype.buildPath=function(e,t){kd(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Ko);jd.prototype.type=`sector`;var Md=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),Nd=function(e){T(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Md},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.PI*2;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,i,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,i,!0)},t}(Ko);Nd.prototype.type=`ring`;function Pd(e,t,n,r){var i=[],a=[],o=[],s=[],c,l,u,d;if(r){u=[1/0,1/0],d=[-1/0,-1/0];for(var f=0,p=e.length;f<p;f++)dn(u,u,e[f]),fn(d,d,e[f]);dn(u,u,r[0]),fn(d,d,r[1])}for(var f=0,p=e.length;f<p;f++){var m=e[f];if(n)c=e[f?f-1:p-1],l=e[(f+1)%p];else if(f===0||f===p-1){i.push(Ut(e[f]));continue}else c=e[f-1],l=e[f+1];qt(a,l,c),tn(a,a,t);var h=rn(m,c),g=rn(m,l),_=h+g;_!==0&&(h/=_,g/=_),tn(o,a,-h),tn(s,a,g);var v=Gt([],m,o),y=Gt([],m,s);r&&(fn(v,v,u),dn(v,v,d),fn(y,y,u),dn(y,y,d)),i.push(v),i.push(y)}return n&&i.push(i.shift()),i}function Fd(e,t,n){var r=t.smooth,i=t.points;if(i&&i.length>=2){if(r){var a=Pd(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(n?o:o-1);s++){var c=a[s*2],l=a[s*2+1],u=i[(s+1)%o];e.bezierCurveTo(c[0],c[1],l[0],l[1],u[0],u[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,d=i.length;s<d;s++)e.lineTo(i[s][0],i[s][1])}n&&e.closePath()}}var Id=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),Ld=function(e){T(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Id},t.prototype.buildPath=function(e,t){Fd(e,t,!0)},t}(Ko);Ld.prototype.type=`polygon`;var Rd=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),zd=function(e){T(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new Rd},t.prototype.buildPath=function(e,t){Fd(e,t,!1)},t}(Ko);zd.prototype.type=`polyline`;var Bd={},Vd=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),Hd=function(e){T(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new Vd},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=ts(Bd,t,this.style);n=o.x1,r=o.y1,i=o.x2,a=o.y2}else n=t.x1,r=t.y1,i=t.x2,a=t.y2;var s=t.percent;s!==0&&(e.moveTo(n,r),s<1&&(i=n*(1-s)+i*s,a=r*(1-s)+a*s),e.lineTo(i,a))},t.prototype.pointAt=function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]},t}(Ko);Hd.prototype.type=`line`;var Ud=[],Wd=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e}();function Gd(e,t,n){var r=e.cpx2,i=e.cpy2;return r!=null||i!=null?[(n?Gr:Wr)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?Gr:Wr)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?Qr:Zr)(e.x1,e.cpx1,e.x2,t),(n?Qr:Zr)(e.y1,e.cpy1,e.y2,t)]}var Kd=function(e){T(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new Wd},t.prototype.buildPath=function(e,t){var n=t.x1,r=t.y1,i=t.x2,a=t.y2,o=t.cpx1,s=t.cpy1,c=t.cpx2,l=t.cpy2,u=t.percent;u!==0&&(e.moveTo(n,r),c==null||l==null?(u<1&&(ti(n,o,i,u,Ud),o=Ud[1],i=Ud[2],ti(r,s,a,u,Ud),s=Ud[1],a=Ud[2]),e.quadraticCurveTo(o,s,i,a)):(u<1&&(Jr(n,o,c,i,u,Ud),o=Ud[1],c=Ud[2],i=Ud[3],Jr(r,s,l,a,u,Ud),s=Ud[1],l=Ud[2],a=Ud[3]),e.bezierCurveTo(o,s,c,l,i,a)))},t.prototype.pointAt=function(e){return Gd(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t=Gd(this.shape,e,!0);return nn(t,t)},t}(Ko);Kd.prototype.type=`bezier-curve`;var qd=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),Jd=function(e){T(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new qd},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r,0),a=t.startAngle,o=t.endAngle,s=t.clockwise,c=Math.cos(a),l=Math.sin(a);e.moveTo(c*i+n,l*i+r),e.arc(n,r,i,a,o,!s)},t}(Ko);Jd.prototype.type=`arc`;var Yd=function(e){T(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`compound`,t}return t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,t=this.shapeChanged(),n=0;n<e.length;n++)t=t||e[n].shapeChanged();t&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(t[0],t[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,t){for(var n=t.paths||[],r=0;r<n.length;r++)n[r].buildPath(e,n[r].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Ko.prototype.getBoundingRect.call(this)},t}(Ko),Xd=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}(),Zd=function(e){T(t,e);function t(t,n,r,i,a,o){var s=e.call(this,a)||this;return s.x=t==null?0:t,s.y=n==null?0:n,s.x2=r==null?1:r,s.y2=i==null?0:i,s.type=`linear`,s.global=o||!1,s}return t}(Xd),Qd=function(e){T(t,e);function t(t,n,r,i,a){var o=e.call(this,i)||this;return o.x=t==null?.5:t,o.y=n==null?.5:n,o.r=r==null?.5:r,o.type=`radial`,o.global=a||!1,o}return t}(Xd),$d=Math.min,ef=Math.max,tf=Math.abs,nf=[0,0],rf=[0,0],af=In(),of=af.minTv,sf=af.maxTv,cf=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Y;for(var n=0;n<2;n++)this._axes[n]=new Y;e&&this.fromBoundingRect(e,t)}return e.prototype.fromBoundingRect=function(e,t){var n=this._corners,r=this._axes,i=e.x,a=e.y,o=i+e.width,s=a+e.height;if(n[0].set(i,a),n[1].set(o,a),n[2].set(o,s),n[3].set(i,s),t)for(var c=0;c<4;c++)n[c].transform(t);Y.sub(r[0],n[1],n[0]),Y.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(var c=0;c<2;c++)this._origin[c]=r[c].dot(n[0])},e.prototype.intersect=function(e,t,n){var r=!0,i=!t;return t&&Y.set(t,0,0),af.reset(n,!i),!this._intersectCheckOneSide(this,e,i,1)&&(r=!1,i)||!this._intersectCheckOneSide(e,this,i,-1)&&(r=!1,i)||!i&&!af.negativeSize&&Y.copy(t,r?af.useDir?af.dirMinTv:of:sf),r},e.prototype._intersectCheckOneSide=function(e,t,n,r){for(var i=!0,a=0;a<2;a++){var o=e._axes[a];if(e._getProjMinMaxOnAxis(a,e._corners,nf),e._getProjMinMaxOnAxis(a,t._corners,rf),af.negativeSize||nf[1]<rf[0]||nf[0]>rf[1]){if(i=!1,af.negativeSize||n)return i;var s=tf(rf[0]-nf[1]),c=tf(nf[0]-rf[1]);$d(s,c)>sf.len()&&(s<c?Y.scale(sf,o,-s*r):Y.scale(sf,o,c*r))}else if(!n){var s=tf(rf[0]-nf[1]),c=tf(nf[0]-rf[1]);(af.useDir||$d(s,c)<of.len())&&((s<c||!af.bidirectional)&&(Y.scale(of,o,s*r),af.useDir&&af.calcDirMTV()),(s>=c||!af.bidirectional)&&(Y.scale(of,o,-c*r),af.useDir&&af.calcDirMTV()))}}return i},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var r=this._axes[e],i=this._origin,a=t[0].dot(r)+i[e],o=a,s=a,c=1;c<t.length;c++){var l=t[c].dot(r)+i[e];o=$d(l,o),s=ef(l,s)}n[0]=o+af.touchThreshold,n[1]=s-af.touchThreshold,af.negativeSize=n[1]<n[0]},e}(),lf=[],uf=function(e){T(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.notClear=!0,t.incremental=1,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.useStyle=function(){this.style={}},t.prototype._useHoverStyle=function(){this.__hoverStyle=null},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,t){t=t||!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],t)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var t=this._cursor;t<this._displayables.length;t++)e&&e(this._displayables[t]);for(var t=0;t<this._temporaryDisplayables.length;t++)e&&e(this._temporaryDisplayables[t])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var t=this._displayables[e];t.parent=this,t.update(),t.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var t=this._temporaryDisplayables[e];t.parent=this,t.update(),t.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new X(1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var n=this._displayables[t],r=n.getBoundingRect().clone();n.needLocalTransform()&&r.applyTransform(n.getLocalTransform(lf)),e.union(r)}this._rect=e}return this._rect},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t);if(this.getBoundingRect().contain(n[0],n[1])){for(var r=0;r<this._displayables.length;r++)if(this._displayables[r].contain(e,t))return!0}return!1},t}(La),df=Kc();function ff(e,t,n,r,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),c=e===`update`;if(s){var l=void 0,u=void 0,d=void 0;return r?(l=G(r.duration,200),u=G(r.easing,`cubicOut`),d=0):(l=t.getShallow(c?`animationDurationUpdate`:`animationDuration`),u=t.getShallow(c?`animationEasingUpdate`:`animationEasing`),d=t.getShallow(c?`animationDelayUpdate`:`animationDelay`)),a&&(a.duration!=null&&(l=a.duration),a.easing!=null&&(u=a.easing),a.delay!=null&&(d=a.delay)),H(d)&&(d=d(n,i)),H(l)&&(l=l(n)),{duration:l||0,delay:d,easing:u}}return null}function pf(e,t,n,r,i,a,o){var s=!1,c;H(i)?(o=a,a=i,i=null):W(i)&&(a=i.cb,o=i.during,s=i.isFrom,c=i.removeOpt,i=i.dataIndex);var l=e===`leave`;l||t.stopAnimation(`leave`);var u=ff(e,r,i,l?c||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,i):null);if(u&&u.duration>0){var d=u.duration,f=u.delay,p=u.easing,m={duration:d,delay:f||0,easing:p,done:a,force:!!a||!!o,setToFinal:!l,scope:e,during:o};s?t.animateFrom(n,m):t.animateTo(n,m)}else t.stopAnimation(),!s&&t.attr(n),o&&o(1),a&&a()}function mf(e,t,n,r,i,a){pf(`update`,e,t,n,r,i,a)}function hf(e,t,n,r,i,a){pf(`enter`,e,t,n,r,i,a)}function gf(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++)if(e.animators[t].scope===`leave`)return!0;return!1}function _f(e,t,n,r,i,a){gf(e)||pf(`leave`,e,t,n,r,i,a)}function vf(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),_f(e,{style:{opacity:0}},t,n,r)}function yf(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(e){e.isGroup||vf(e,t,n,r)}):vf(e,t,n,r)}function bf(e){df(e).oldStyle=e.style}function xf(e){return df(e).oldStyle}var Sf=e({Arc:()=>Jd,BezierCurve:()=>Kd,BoundingRect:()=>X,Circle:()=>fd,CompoundPath:()=>Yd,Ellipse:()=>md,Group:()=>ud,HOVER_LAYER_FOR_INCREMENTAL:()=>2,HOVER_LAYER_FROM_THRESHOLD:()=>1,HOVER_LAYER_NO:()=>0,Image:()=>Qo,IncrementalDisplayable:()=>uf,Line:()=>Hd,LinearGradient:()=>Zd,OrientedBoundingRect:()=>cf,Path:()=>Ko,Point:()=>Y,Polygon:()=>Ld,Polyline:()=>zd,RadialGradient:()=>Qd,Rect:()=>os,Ring:()=>Nd,Sector:()=>jd,Text:()=>ds,WH:()=>Tf,XY:()=>wf,applyTransform:()=>Bf,calcZ2Range:()=>lp,clipPointsByRect:()=>Gf,clipRectByRect:()=>Kf,createIcon:()=>qf,decomposeTransform:()=>pp,ensureCopyRect:()=>op,ensureCopyTransform:()=>sp,expandOrShrinkRect:()=>Qf,extendPath:()=>Of,extendShape:()=>Ef,getCurrentCanvasPainter:()=>hp,getShapeClass:()=>Af,getTransform:()=>zf,groupTransition:()=>Wf,initProps:()=>hf,isBoundingRectAxisAligned:()=>ip,isElementRemoved:()=>gf,lineLineIntersect:()=>Yf,linePolygonIntersect:()=>Jf,makeImage:()=>Mf,makePath:()=>jf,mergePath:()=>Pf,payloadDisableAnimation:()=>fp,registerShape:()=>kf,removeElement:()=>_f,removeElementWithFadeOut:()=>yf,resizePath:()=>Ff,retrieveZInfo:()=>cp,setTooltipConfig:()=>tp,subPixelOptimize:()=>Rf,subPixelOptimizeLine:()=>If,subPixelOptimizeRect:()=>Lf,transformDirection:()=>Vf,traverseElements:()=>rp,traverseUpdateZ:()=>up,updateProps:()=>mf}),Cf={},wf=[`x`,`y`],Tf=[`width`,`height`];function Ef(e){return Ko.extend(e)}var Df=sd;function Of(e,t){return Df(e,t)}function kf(e,t){Cf[e]=t}function Af(e){if(Cf.hasOwnProperty(e))return Cf[e]}function jf(e,t,n,r){var i=od(e,t);return n&&(r===`center`&&(n=Nf(n,i.getBoundingRect())),Ff(i,n)),i}function Mf(e,t,n){var r=new Qo({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if(n===`center`){var i={width:e.width,height:e.height};r.setStyle(Nf(t,i))}}});return r}function Nf(e,t){var n=t.width/t.height,r=e.height*n,i;r<=e.width?i=e.height:(r=e.width,i=r/n);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-r/2,y:o-i/2,width:r,height:i}}var Pf=cd;function Ff(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}function If(e,t){return ts(e,e,{lineWidth:t}),e}function Lf(e,t){return ns(e,e,t),e}var Rf=rs;function zf(e,t){for(var n=Mt([]);e&&e!==t;)Pt(n,e.getLocalTransform(),n),e=e.parent;return n}function Bf(e,t,n){return t&&!xe(t)&&(t=Dr.getLocalTransform(t)),n&&(t=Rt([],t)),un([],e,t)}function Vf(e,t,n){var r=t[4]===0||t[5]===0||t[0]===0?1:As(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:As(2*t[4]/t[2]),a=[e===`left`?-r:e===`right`?r:0,e===`top`?-i:e===`bottom`?i:0];return a=Bf(a,t,n),As(a[0])>As(a[1])?a[0]>0?`right`:`left`:a[1]>0?`bottom`:`top`}function Hf(e){return!e.isGroup}function Uf(e){return e.shape!=null}function Wf(e,t,n){if(!e||!t)return;function r(e){var t={};return e.traverse(function(e){Hf(e)&&e.anid&&(t[e.anid]=e)}),t}function i(e){var t={x:e.x,y:e.y,rotation:e.rotation};return Uf(e)&&(t.shape=P(e.shape)),t}var a=r(e);t.traverse(function(e){if(Hf(e)&&e.anid){var t=a[e.anid];if(t){var r=i(e);e.attr(i(t)),mf(e,r,n,Z(e).dataIndex)}}})}function Gf(e,t){return B(e,function(e){var n=e[0];n=ks(n,t.x),n=Os(n,t.x+t.width);var r=e[1];return r=ks(r,t.y),r=Os(r,t.y+t.height),[n,r]})}function Kf(e,t){var n=ks(e.x,t.x),r=Os(e.x+e.width,t.x+t.width),i=ks(e.y,t.y),a=Os(e.y+e.height,t.y+t.height);if(r>=n&&a>=i)return{x:n,y:i,width:r-n,height:a-i}}function qf(e,t,n){var r=I({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return e.indexOf(`image://`)===0?(i.image=e.slice(8),L(i,n),new Qo(r)):jf(e.replace(`path://`,``),r,n,`center`)}function Jf(e,t,n,r,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(Yf(e,t,n,r,s[0],s[1],o[0],o[1]))return!0;o=s}}function Yf(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=Xf(u,d,c,l);if(Zf(f))return!1;var p=e-i,m=t-a,h=Xf(p,m,c,l)/f;if(h<0||h>1)return!1;var g=Xf(p,m,u,d)/f;return!(g<0||g>1)}function Xf(e,t,n,r){return e*r-n*t}function Zf(e){return e<=1e-6&&e>=-1e-6}function Qf(e,t,n,r,i){return t==null?e:(Ae(t)?$f[0]=$f[1]=$f[2]=$f[3]=t:($f[0]=t[0],$f[1]=t[1],$f[2]=t[2],$f[3]=t[3]),r&&($f[0]=ks(0,$f[0]),$f[1]=ks(0,$f[1]),$f[2]=ks(0,$f[2]),$f[3]=ks(0,$f[3])),n&&($f[0]=-$f[0],$f[1]=-$f[1],$f[2]=-$f[2],$f[3]=-$f[3]),ep(e,$f,`x`,`width`,3,1,i&&i[0]||0),ep(e,$f,`y`,`height`,0,2,i&&i[1]||0),e)}var $f=[0,0,0,0];function ep(e,t,n,r,i,a,o){var s=t[a]+t[i],c=e[r];e[r]+=s,o=ks(0,Os(o,c)),e[r]<o?(e[r]=o,e[n]+=t[i]>=0?-t[i]:t[a]>=0?c+t[a]:As(s)>1e-8?(c-o)*t[i]/s:0):e[n]-=t[i]}function tp(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=U(t)?{formatter:t}:t,a=n.mainType,o=n.componentIndex,s={componentType:a,name:r,$vars:[`name`]};s[a+`Index`]=o;var c=e.formatterParamsExtra;c&&z(Te(c),function(e){q(s,e)||(s[e]=c[e],s.$vars.push(e))});var l=Z(e.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:r,option:L({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function np(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function rp(e,t){if(e){if(V(e))for(var n=0;n<e.length;n++)np(e[n],t);else np(e,t)}}function ip(e){return!e||As(e[1])<ap&&As(e[2])<ap||As(e[0])<ap&&As(e[3])<ap}var ap=1e-5;function op(e,t){return e?X.copy(e,t):t.clone()}function sp(e,t){return t?Nt(e||jt(),t):void 0}function cp(e){return{z:e.get(`z`)||0,zlevel:e.get(`zlevel`)||0}}function lp(e){var t=-1/0,n=1/0;np(e,function(e){r(e),r(e.getTextContent()),r(e.getTextGuideLine())});function r(e){if(e&&!e.isGroup){var t=e.currentStates;if(t.length)for(var n=0;n<t.length;n++)i(e.states[t[n]]);i(e)}}function i(e){if(e){var r=e.z2;r>t&&(t=r),r<n&&(n=r)}}return n>t&&(n=t=0),{min:n,max:t}}function up(e,t,n){dp(e,t,n,-1/0)}function dp(e,t,n,r){if(e.ignoreModelZ)return r;var i=e.getTextContent(),a=e.getTextGuideLine();if(e.isGroup)for(var o=e.childrenRef(),s=0;s<o.length;s++)r=ks(dp(o[s],t,n,r),r);else e.z=t,e.zlevel=n,r=ks(e.z2||0,r);if(i&&(i.z=t,i.zlevel=n,isFinite(r)&&(i.z2=r+2)),a){var c=e.textGuideLineConfig;a.z=t,a.zlevel=n,isFinite(r)&&(a.z2=r+(c&&c.showAbove?1:-1))}return r}function fp(e){return e.animation={duration:0},e}function pp(e,t){return t?Nt(mp.transform,t):Mt(mp.transform),mp.decomposeTransform(),jr(e,mp),e}var mp=new Dr;mp.transform=jt();function hp(e){var t=e.getZr().painter;return t.getType()===`canvas`?t:null}kf(`circle`,fd),kf(`ellipse`,md),kf(`sector`,jd),kf(`ring`,Nd),kf(`polygon`,Ld),kf(`polyline`,zd),kf(`rect`,os),kf(`line`,Hd),kf(`bezierCurve`,Kd),kf(`arc`,Jd);var gp={};function _p(e,t){for(var n=0;n<Rl.length;n++){var r=Rl[n],i=t[r],a=e.ensureState(r);a.style=a.style||{},a.style.text=i}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function vp(e,t,n){var r=e.labelFetcher,i=e.labelDataIndex,a=e.labelDimIndex,o=t.normal,s;r&&(s=r.getFormattedLabel(i,`normal`,null,a,o&&o.get(`formatter`),n==null?null:{interpolatedValue:n})),s==null&&(s=H(e.defaultText)?e.defaultText(i,e,n):e.defaultText);for(var c={normal:s},l=0;l<Rl.length;l++){var u=Rl[l],d=t[u];c[u]=G(r?r.getFormattedLabel(i,u,null,a,d&&d.get(`formatter`)):null,s)}return c}function yp(e,t,n,r){n=n||gp;for(var i=e instanceof ds,a=!1,o=0;o<zl.length;o++){var s=t[zl[o]];if(s&&s.getShallow(`show`)){a=!0;break}}var c=i?e:e.getTextContent();if(a){i||(c||(c=new ds,e.setTextContent(c)),e.stateProxy&&(c.stateProxy=e.stateProxy));var l=vp(n,t),u=t.normal,d=!!u.getShallow(`show`),f=xp(u,r&&r.normal,n,!1,!i);f.text=l.normal,i||e.setTextConfig(Sp(u,n,!1));for(var o=0;o<Rl.length;o++){var p=Rl[o],s=t[p];if(s){var m=c.ensureState(p),h=!!G(s.getShallow(`show`),d);if(h!==d&&(m.ignore=!h),m.style=xp(s,r&&r[p],n,!0,!i),m.style.text=l[p],!i){var g=e.ensureState(p);g.textConfig=Sp(s,n,!0)}}}c.silent=!!u.getShallow(`silent`),c.style.x!=null&&(f.x=c.style.x),c.style.y!=null&&(f.y=c.style.y),c.ignore=!d,c.useStyle(f),c.dirty(),n.enableTextSetter&&(Ap(c).setLabelText=function(e){var r=vp(n,t,e);_p(c,r)})}else c&&(c.ignore=!0);e.dirty()}function bp(e,t){t=t||`label`;for(var n={normal:e.getModel(t)},r=0;r<Rl.length;r++){var i=Rl[r];n[i]=e.getModel([i,t])}return n}function xp(e,t,n,r,i){var a={};return Cp(a,e,n,r,i),t&&I(a,t),a}function Sp(e,t,n){t=t||{};var r={},i,a=e.getShallow(`rotate`),o=G(e.getShallow(`distance`),n?null:5),s=e.getShallow(`offset`);return i=e.getShallow(`position`)||(n?null:`inside`),i===`outside`&&(i=t.defaultOutsidePosition||`top`),i!=null&&(r.position=i),s!=null&&(r.offset=s),a!=null&&(a*=Math.PI/180,r.rotation=a),o!=null&&(r.distance=o),r.outsideFill=e.get(`color`)===`inherit`?t.inheritColor||null:`auto`,t.autoOverflowArea!=null&&(r.autoOverflowArea=t.autoOverflowArea),t.layoutRect!=null&&(r.layoutRect=t.layoutRect),r}function Cp(e,t,n,r,i){n=n||gp;var a=t.ecModel,o=a&&a.option.textStyle,s=wp(t),c;if(s){c={};var l=`richInheritPlainLabel`,u=G(t.get(l),a?a.get(l):void 0);for(var d in s)if(s.hasOwnProperty(d)){var f=t.getModel([`rich`,d]);Op(c[d]={},f,o,t,u,n,r,i,!1,!0)}}c&&(e.rich=c);var p=t.get(`overflow`);p&&(e.overflow=p);var m=t.get(`lineOverflow`);m&&(e.lineOverflow=m);var h=e,g=t.get(`minMargin`);if(g!=null)g=Ae(g)?g/2:0,h.margin=[g,g,g,g],h.__marginType=Np.minMargin;else{var _=t.get(`textMargin`);_!=null&&(h.margin=Ve(_),h.__marginType=Np.textMargin)}Op(e,t,o,null,null,n,r,i,!0,!1)}function wp(e){for(var t;e&&e!==e.ecModel;){var n=(e.option||gp).rich;if(n){t=t||{};for(var r=Te(n),i=0;i<r.length;i++){var a=r[i];t[a]=1}}e=e.parentModel}return t}var Tp=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`textShadowColor`,`textShadowBlur`,`textShadowOffsetX`,`textShadowOffsetY`],Ep=[`align`,`lineHeight`,`width`,`height`,`tag`,`verticalAlign`,`ellipsis`],Dp=[`padding`,`borderWidth`,`borderRadius`,`borderDashOffset`,`backgroundColor`,`borderColor`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`];function Op(e,t,n,r,i,a,o,s,c,l){n=!o&&n||gp;var u=a&&a.inheritColor,d=t.getShallow(`color`),f=t.getShallow(`textBorderColor`),p=G(t.getShallow(`opacity`),n.opacity);(d===`inherit`||d===`auto`)&&(d=u||null),(f===`inherit`||f===`auto`)&&(f=u||null),s||(d=d||n.color,f=f||n.textBorderColor),d!=null&&(e.fill=d),f!=null&&(e.stroke=f);var m=G(t.getShallow(`textBorderWidth`),n.textBorderWidth);m!=null&&(e.lineWidth=m);var h=G(t.getShallow(`textBorderType`),n.textBorderType);h!=null&&(e.lineDash=h);var g=G(t.getShallow(`textBorderDashOffset`),n.textBorderDashOffset);g!=null&&(e.lineDashOffset=g),!o&&p==null&&!l&&(p=a&&a.defaultOpacity),p!=null&&(e.opacity=p),!o&&!s&&e.fill==null&&a.inheritColor&&(e.fill=a.inheritColor);for(var _=0;_<Tp.length;_++){var v=Tp[_],y=i!==!1&&r?ze(t.getShallow(v),r.getShallow(v),n[v]):G(t.getShallow(v),n[v]);y!=null&&(e[v]=y)}for(var _=0;_<Ep.length;_++){var v=Ep[_],y=t.getShallow(v);y!=null&&(e[v]=y)}if(e.verticalAlign==null){var b=t.getShallow(`baseline`);b!=null&&(e.verticalAlign=b)}if(!c||!a.disableBox){for(var _=0;_<Dp.length;_++){var v=Dp[_],y=t.getShallow(v);y!=null&&(e[v]=y)}var x=t.getShallow(`borderType`);x!=null&&(e.borderDash=x),(e.backgroundColor===`auto`||e.backgroundColor===`inherit`)&&u&&(e.backgroundColor=u),(e.borderColor===`auto`||e.borderColor===`inherit`)&&u&&(e.borderColor=u)}}function kp(e,t){var n=t&&t.getModel(`textStyle`);return Ue([e.fontStyle||n&&n.getShallow(`fontStyle`)||``,e.fontWeight||n&&n.getShallow(`fontWeight`)||``,(e.fontSize||n&&n.getShallow(`fontSize`)||12)+`px`,e.fontFamily||n&&n.getShallow(`fontFamily`)||`sans-serif`].join(` `))}var Ap=Kc();function jp(e,t,n,r){if(e){var i=Ap(e);i.prevValue=i.value,i.value=n;var a=t.normal;i.valueAnimation=a.get(`valueAnimation`),i.valueAnimation&&(i.precision=a.get(`precision`),i.defaultInterpolatedText=r,i.statesModels=t)}}function Mp(e,t,n,r,i){var a=Ap(e);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=G(a.interpolatedValue,a.prevValue),c=a.value;function l(r){var l=rl(n,a.precision,s,c,r);a.interpolatedValue=r===1?null:l,_p(e,vp({labelDataIndex:t,labelFetcher:i,defaultText:o?o(l):l+``},a.statesModels,l))}e.percent=0,(a.prevValue==null?hf:mf)(e,{percent:1},r,t,null,l)}var Np={minMargin:1,textMargin:2},Pp=[`textStyle`,`color`],Fp=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`padding`,`lineHeight`,`rich`,`width`,`height`,`overflow`],Ip=new ds,Lp=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow(`color`)||(!e&&t?t.get(Pp):null)},e.prototype.getFont=function(){return kp({fontStyle:this.getShallow(`fontStyle`),fontWeight:this.getShallow(`fontWeight`),fontSize:this.getShallow(`fontSize`),fontFamily:this.getShallow(`fontFamily`)},this.ecModel)},e.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow(`verticalAlign`)||this.getShallow(`baseline`)},n=0;n<Fp.length;n++)t[Fp[n]]=this.getShallow(Fp[n]);return Ip.useStyle(t),Ip.update(),Ip.getBoundingRect()},e}(),Rp=[[`lineWidth`,`width`],[`stroke`,`color`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`type`],[`lineDashOffset`,`dashOffset`],[`lineCap`,`cap`],[`lineJoin`,`join`],[`miterLimit`]],zp=yt(Rp),Bp=function(){function e(){}return e.prototype.getLineStyle=function(e){return zp(this,e)},e}(),Vp=[[`fill`,`color`],[`stroke`,`borderColor`],[`lineWidth`,`borderWidth`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`borderType`],[`lineDashOffset`,`borderDashOffset`],[`lineCap`,`borderCap`],[`lineJoin`,`borderJoin`],[`miterLimit`,`borderMiterLimit`]],Hp=yt(Vp),Up=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return Hp(this,e,t)},e}(),Wp=function(){function e(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return e.prototype.init=function(e,t,n){},e.prototype.mergeOption=function(e,t){F(this.option,e,!0)},e.prototype.get=function(e,t){return e==null?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},e.prototype.getShallow=function(e,t){var n=this.option,r=n==null?n:n[e];if(r==null&&!t){var i=this.parentModel;i&&(r=i.getShallow(e))}return r},e.prototype.getModel=function(t,n){var r=t!=null,i=r?this.parsePath(t):null,a=r?this._doGet(i):this.option;return n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new e(a,n,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var e=this.constructor;return new e(P(this.option))},e.prototype.parsePath=function(e){return typeof e==`string`?e.split(`.`):e},e.prototype.resolveParentPath=function(e){return e},e.prototype.isAnimationEnabled=function(){if(!J.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var r=0;r<e.length&&!(e[r]&&(n=n&&typeof n==`object`?n[e[r]]:null,n==null));r++);return n==null&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},e}();dt(Wp),ht(Wp),be(Wp,Bp),be(Wp,Up),be(Wp,xt),be(Wp,Lp);function Gp(e){return e==null?0:e.length||1}function Kp(e){return e}var qp=function(){function e(e,t,n,r,i,a){this._old=e,this._new=t,this._oldKeyGetter=n||Kp,this._newKeyGetter=r||Kp,this.context=i,this._diffModeMultiple=a===`multiple`}return e.prototype.add=function(e){return this._add=e,this},e.prototype.update=function(e){return this._update=e,this},e.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},e.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},e.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},e.prototype.remove=function(e){return this._remove=e,this},e.prototype.execute=function(){this[this._diffModeMultiple?`_executeMultiple`:`_executeOneToOne`]()},e.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},r=Array(e.length),i=Array(t.length);this._initIndexMap(e,null,r,`_oldKeyGetter`),this._initIndexMap(t,n,i,`_newKeyGetter`);for(var a=0;a<e.length;a++){var o=r[a],s=n[o],c=Gp(s);if(c>1){var l=s.shift();s.length===1&&(n[o]=s[0]),this._update&&this._update(l,a)}else c===1?(n[o]=null,this._update&&this._update(s,a)):this._remove&&this._remove(a)}this._performRestAdd(i,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},r={},i=[],a=[];this._initIndexMap(e,n,i,`_oldKeyGetter`),this._initIndexMap(t,r,a,`_newKeyGetter`);for(var o=0;o<i.length;o++){var s=i[o],c=n[s],l=r[s],u=Gp(c),d=Gp(l);if(u>1&&d===1)this._updateManyToOne&&this._updateManyToOne(l,c),r[s]=null;else if(u===1&&d>1)this._updateOneToMany&&this._updateOneToMany(l,c),r[s]=null;else if(u===1&&d===1)this._update&&this._update(l,c),r[s]=null;else if(u>1&&d>1)this._updateManyToMany&&this._updateManyToMany(l,c),r[s]=null;else if(u>1)for(var f=0;f<u;f++)this._remove&&this._remove(c[f]);else this._remove&&this._remove(c)}this._performRestAdd(a,r)},e.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=t[r],a=Gp(i);if(a>1)for(var o=0;o<a;o++)this._add&&this._add(i[o]);else a===1&&this._add&&this._add(i);t[r]=null}},e.prototype._initIndexMap=function(e,t,n,r){for(var i=this._diffModeMultiple,a=0;a<e.length;a++){var o=`_ec_`+this[r](e[a],a);if(i||(n[a]=o),t){var s=t[o],c=Gp(s);c===0?(t[o]=a,i&&n.push(o)):c===1?t[o]=[s,a]:s.push(a)}}},e}(),Jp={Must:1,Might:2,Not:3},Yp=Kc();function Xp(e){Yp(e).datasetMap=K()}function Zp(e,t,n){var r={},i=$p(t);if(!i||!e)return r;var a=[],o=[],s=t.ecModel,c=Yp(s).datasetMap,l=i.uid+`_`+n.seriesLayoutBy,u,d;e=e.slice(),z(e,function(t,n){var i=W(t)?t:e[n]={name:t};i.type===`ordinal`&&u==null&&(u=n,d=m(i)),r[i.name]=[]});var f=c.get(l)||c.set(l,{categoryWayDim:d,valueWayDim:0});z(e,function(e,t){var n=e.name,i=m(e);if(u==null){var s=f.valueWayDim;p(r[n],s,i),p(o,s,i),f.valueWayDim+=i}else if(u===t)p(r[n],0,i),p(a,0,i);else{var s=f.categoryWayDim;p(r[n],s,i),p(o,s,i),f.categoryWayDim+=i}});function p(e,t,n){for(var r=0;r<n;r++)e.push(t+r)}function m(e){var t=e.dimsDef;return t?t.length:1}return a.length&&(r.itemName=a),o.length&&(r.seriesName=o),r}function Qp(e,t,n){var r={};if(!$p(e))return r;var i=t.sourceFormat,a=t.dimensionsDefine,o;(i===`objectRows`||i===`keyedColumns`)&&z(a,function(e,t){(W(e)?e.name:e)===`name`&&(o=t)});var s=function(){for(var e={},r={},s=[],c=0,l=Math.min(5,n);c<l;c++){var u=nm(t.data,i,t.seriesLayoutBy,a,t.startIndex,c);s.push(u);var d=u===Jp.Not;if(d&&e.v==null&&c!==o&&(e.v=c),(e.n==null||e.n===e.v||!d&&s[e.n]===Jp.Not)&&(e.n=c),f(e)&&s[e.n]!==Jp.Not)return e;d||(u===Jp.Might&&r.v==null&&c!==o&&(r.v=c),(r.n==null||r.n===r.v)&&(r.n=c))}function f(e){return e.v!=null&&e.n!=null}return f(e)?e:f(r)?r:null}();if(s){r.value=[s.v];var c=o==null?s.n:o;r.itemName=[c],r.seriesName=[c]}return r}function $p(e){if(!e.get(`data`,!0))return Qc(e.ecModel,`dataset`,{index:e.get(`datasetIndex`,!0),id:e.get(`datasetId`,!0)},Xc).models[0]}function em(e){return!e.get(`transform`,!0)&&!e.get(`fromTransformResult`,!0)?[]:Qc(e.ecModel,`dataset`,{index:e.get(`fromDatasetIndex`,!0),id:e.get(`fromDatasetId`,!0)},Xc).models}function tm(e,t){return nm(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function nm(e,t,n,r,i,a){var o,s=5;if(Me(e))return Jp.Not;var c,l;if(r){var u=r[a];W(u)?(c=u.name,l=u.type):U(u)&&(c=u)}if(l!=null)return l===`ordinal`?Jp.Must:Jp.Not;if(t===`arrayRows`){var d=e;if(n===`row`){for(var f=d[a],p=0;p<(f||[]).length&&p<s;p++)if((o=b(f[i+p]))!=null)return o}else for(var p=0;p<d.length&&p<s;p++){var m=d[i+p];if(m&&(o=b(m[a]))!=null)return o}}else if(t===`objectRows`){var h=e;if(!c)return Jp.Not;for(var p=0;p<h.length&&p<s;p++){var g=h[p];if(g&&(o=b(g[c]))!=null)return o}}else if(t===`keyedColumns`){var _=e;if(!c)return Jp.Not;var f=_[c];if(!f||Me(f))return Jp.Not;for(var p=0;p<f.length&&p<s;p++)if((o=b(f[p]))!=null)return o}else if(t===`original`)for(var v=e,p=0;p<v.length&&p<s;p++){var g=v[p],y=Oc(g);if(!V(y))return Jp.Not;if((o=b(y[a]))!=null)return o}function b(e){var t=U(e);if(e!=null&&isFinite(Number(e))&&e!==``)return t?Jp.Might:Jp.Not;if(t&&e!==`-`)return Jp.Must}return Jp.Not}var rm=function(){function e(e){this.data=e.data||(e.sourceFormat===`keyedColumns`?{}:[]),this.sourceFormat=e.sourceFormat||`unknown`,this.seriesLayoutBy=e.seriesLayoutBy||`column`,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;n<t.length;n++){var r=t[n];r.type==null&&tm(this,n)===Jp.Must&&(r.type=`ordinal`)}}return e}();function im(e){return e instanceof rm}function am(e,t,n){n=n||cm(e);var r=t.seriesLayoutBy,i=lm(e,n,r,t.sourceHeader,t.dimensions);return new rm({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:P(t)})}function om(e){return new rm({data:e,sourceFormat:Me(e)?Ol:wl})}function sm(e){return new rm({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:P(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function cm(e){var t=kl;if(Me(e))t=Ol;else if(V(e)){e.length===0&&(t=Tl);for(var n=0,r=e.length;n<r;n++){var i=e[n];if(i!=null){if(V(i)||Me(i)){t=Tl;break}if(W(i)){t=El;break}}}}else if(W(e)){for(var a in e)if(q(e,a)&&xe(e[a])){t=Dl;break}}return t}function lm(e,t,n,r,i){var a,o;if(!e)return{dimensionsDefine:dm(i),startIndex:o,dimensionsDetectedCount:a};if(t===`arrayRows`){var s=e;r===`auto`||r==null?fm(function(e){e!=null&&e!==`-`&&(U(e)?o==null&&(o=1):o=0)},n,s,10):o=Ae(r)?r:+!!r,!i&&o===1&&(i=[],fm(function(e,t){i[t]=e==null?``:e+``},n,s,1/0)),a=i?i.length:n===`row`?s.length:s[0]?s[0].length:null}else if(t===`objectRows`)i||(i=um(e));else if(t===`keyedColumns`)i||(i=[],z(e,function(e,t){i.push(t)}));else if(t===`original`){var c=Oc(e[0]);a=V(c)&&c.length||1}return{startIndex:o,dimensionsDefine:dm(i),dimensionsDetectedCount:a}}function um(e){for(var t=0,n;t<e.length&&!(n=e[t++]););if(n)return Te(n)}function dm(e){if(e){var t=K();return B(e,function(e,n){e=W(e)?e:{name:e};var r={name:e.name,displayName:e.displayName,type:e.type};if(r.name==null)return r;r.name+=``,r.displayName==null&&(r.displayName=r.name);var i=t.get(r.name);return i?r.name+=`-`+i.count++:t.set(r.name,{count:1}),r})}}function fm(e,t,n,r){if(t===`row`)for(var i=0;i<n.length&&i<r;i++)e(n[i]?n[i][0]:null,i);else for(var a=n[0]||[],i=0;i<a.length&&i<r;i++)e(a[i],i)}function pm(e){var t=e.sourceFormat;return t===`objectRows`||t===`keyedColumns`}var mm,hm,gm,_m,vm,ym,bm=function(){function e(e,t){var n=im(e)?e:om(e);this._source=n;var r=this._data=n.data,i=n.sourceFormat;n.seriesLayoutBy,i===`typedArray`&&(this._offset=0,this._dimSize=t,this._data=r),ym(this,r,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(e,t){},e.prototype.appendData=function(e){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var e;ym=function(e,i,a){var o=a.sourceFormat,s=a.seriesLayoutBy,c=a.startIndex,l=a.dimensionsDefine,u=vm[jm(o,s)];I(e,u),o===`typedArray`?(e.getItem=t,e.count=r,e.fillStorage=n):(e.getItem=De(wm(o,s),null,i,c,l),e.count=De(Dm(o,s),null,i,c,l))};var t=function(e,t){e-=this._offset,t=t||[];for(var n=this._data,r=this._dimSize,i=r*e,a=0;a<r;a++)t[a]=n[i+a];return t},n=function(e,t,n,r){for(var i=this._data,a=this._dimSize,o=0;o<a;o++){for(var s=r[o],c=s[0]==null?1/0:s[0],l=s[1]==null?-1/0:s[1],u=t-e,d=n[o],f=0;f<u;f++){var p=i[f*a+o];d[e+f]=p,p<c&&(c=p),p>l&&(l=p)}s[0]=c,s[1]=l}},r=function(){return this._data?this._data.length/this._dimSize:0};vm=(e={},e[Tl+`_`+Al]={pure:!0,appendData:i},e[Tl+`_row`]={pure:!0,appendData:function(){throw Error(`Do not support appendData when set seriesLayoutBy: "row".`)}},e[El]={pure:!0,appendData:i},e[Dl]={pure:!0,appendData:function(e){var t=this._data;z(e,function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])})}},e[wl]={appendData:i},e[Ol]={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}}(),e}(),xm=function(e){V(e)||bc(`series.data or dataset.source must be an array.`)};mm={},mm[Tl+`_`+Al]=xm,mm[Tl+`_row`]=xm,mm[El]=xm,mm[Dl]=function(e,t){for(var n=0;n<t.length;n++)t[n].name==null&&bc(`dimension name must not be null/undefined.`)},mm[wl]=xm;var Sm=function(e,t,n,r){return e[r]},Cm=(hm={},hm[Tl+`_`+Al]=function(e,t,n,r){return e[r+t]},hm[Tl+`_row`]=function(e,t,n,r,i){r+=t;for(var a=i||[],o=e,s=0;s<o.length;s++){var c=o[s];a[s]=c?c[r]:null}return a},hm[El]=Sm,hm[Dl]=function(e,t,n,r,i){for(var a=i||[],o=0;o<n.length;o++){var s=n[o].name,c=s==null?null:e[s];a[o]=c?c[r]:null}return a},hm[wl]=Sm,hm);function wm(e,t){return Cm[jm(e,t)]}var Tm=function(e,t,n){return e.length},Em=(gm={},gm[Tl+`_`+Al]=function(e,t,n){return Math.max(0,e.length-t)},gm[Tl+`_row`]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},gm[El]=Tm,gm[Dl]=function(e,t,n){var r=n[0].name,i=r==null?null:e[r];return i?i.length:0},gm[wl]=Tm,gm);function Dm(e,t){return Em[jm(e,t)]}var Om=function(e,t,n){return e[t]},km=(_m={},_m[Tl]=Om,_m[El]=function(e,t,n){return e[n]},_m[Dl]=Om,_m[wl]=function(e,t,n){var r=Oc(e);return r instanceof Array?r[t]:r},_m[Ol]=Om,_m);function Am(e){return km[e]}function jm(e,t){return e===`arrayRows`?e+`_`+t:e}function Mm(e,t,n){if(e){var r=e.getRawDataItem(t);if(r!=null){var i=e.getStore(),a=i.getSource().sourceFormat;if(n!=null){var o=e.getDimensionIndex(n),s=i.getDimensionProperty(o);return Am(a)(r,o,s)}var c=r;return a===`original`&&(c=Oc(r)),c}}}var Nm=function(){function e(e,t){this._encode=e,this._schema=t}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e}();function Pm(e,t){var n={},r=n.encode={},i=K(),a=[],o=[],s={};z(e.dimensions,function(t){var n=e.getDimensionInfo(t),c=n.coordDim;if(c){var l=n.coordDimIndex;Fm(r,c)[l]=t,n.isExtraCoord||(i.set(c,1),Lm(n.type)&&(a[0]=t),Fm(s,c)[l]=e.getDimensionIndex(n.name)),n.defaultTooltip&&o.push(t)}Cl.each(function(e,t){var i=Fm(r,t),a=n.otherDims[t];a!=null&&a!==!1&&(i[a]=n.name)})});var c=[],l={};i.each(function(e,t){var n=r[t];l[t]=n[0],c=c.concat(n)}),n.dataDimsOnCoord=c,n.dataDimIndicesOnCoord=B(c,function(t){return e.getDimensionInfo(t).storeDimIndex}),n.encodeFirstDimNotExtra=l;var u=r.label;u&&u.length&&(a=u.slice());var d=r.tooltip;return d&&d.length?o=d.slice():o.length||(o=a.slice()),r.defaultedLabel=a,r.defaultedTooltip=o,n.userOutput=new Nm(s,t),n}function Fm(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function Im(e){return e===`category`?`ordinal`:e===`time`?`time`:`float`}function Lm(e){return e!==`ordinal`&&e!==`time`}var Rm=function(){function e(e){this.otherDims={},e!=null&&I(this,e)}return e}();function zm(e,t){var n=t&&t.type;return n===`ordinal`?e:(n===`time`&&!Ae(e)&&e!=null&&e!==`-`&&(e=+ic(e)),e==null||e===``?NaN:Number(e))}var Bm=K({number:function(e){return parseFloat(e)},time:function(e){return+ic(e)},trim:function(e){return U(e)?Ue(e):e}});function Vm(e){return Bm.get(e)}var Hm={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}},Um=function(){function e(e,t){Ae(t)||xc(``),this._opFn=Hm[e],this._rvalFloat=uc(t)}return e.prototype.evaluate=function(e){return Ae(e)?this._opFn(e,this._rvalFloat):this._opFn(uc(e),this._rvalFloat)},e}(),Wm=function(){function e(e,t){var n=e===`desc`;this._resultLT=n?1:-1,t==null&&(t=n?`min`:`max`),this._incomparable=t===`min`?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=Ae(e)?e:uc(e),r=Ae(t)?t:uc(t),i=isNaN(n),a=isNaN(r);if(i&&(n=this._incomparable),a&&(r=this._incomparable),i&&a){var o=U(e),s=U(t);o&&(n=s?e:0),s&&(r=o?t:0)}return n<r?this._resultLT:n>r?-this._resultLT:0},e}(),Gm=function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=uc(t)}return e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n!==this._rvalTypeof&&(n===`number`||this._rvalTypeof===`number`)&&(t=uc(e)===this._rvalFloat)}return this._isEQ?t:!t},e}();function Km(e,t){return e===`eq`||e===`ne`?new Gm(e===`eq`,t):q(Hm,e)?new Um(e,t):null}function qm(e){var t=``,n=-1/0,r=-1/0,i=1/0,a=1/0;return e&&(e.g!=null&&(t+=`G`+e.g,n=e.g),e.ge!=null&&(t+=`GE`+e.ge,r=e.ge),e.l!=null&&(t+=`L`+e.l,i=e.l),e.le!=null&&(t+=`LE`+e.le,a=e.le)),{key:t,g:n,ge:r,l:i,le:a}}function Jm(e,t){return t>e.g&&t>=e.ge&&t<e.l&&t<=e.le}var Ym=typeof Uint32Array>`u`?Array:Uint32Array,Xm=typeof Uint16Array>`u`?Array:Uint16Array,Zm=typeof Int32Array>`u`?Array:Int32Array,Qm=typeof Float64Array>`u`?Array:Float64Array,$m={float:Qm,int:Zm,ordinal:Array,number:Array,time:Qm},eh;function th(e){return e>65535?Ym:Xm}function nh(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function rh(e,t,n,r,i){var a=$m[n||`float`];if(i){var o=e[t],s=o&&o.length;if(s!==r){for(var c=new a(r),l=0;l<s;l++)c[l]=o[l];e[t]=c}}else e[t]=new a(r)}var ih=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=K()}return e.prototype.initData=function(e,t,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=e.getSource(),i=this.defaultDimValueGetter=eh[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],pm(r),this._dimensions=B(t,function(e){return{type:e.type,property:e.property}}),this._initDataFromProvider(0,e.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(e,t){var n=this._calcDimNameToIdx,r=this._dimensions,i=n.get(e);if(i!=null){if(r[i].type===t)return i}else i=r.length;return r[i]={type:t},n.set(e,i),this._chunks[i]=new $m[t||`float`](this._rawCount),this._rawExtent[i]=il(),i},e.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],r=this._dimensions[e],i=this._rawExtent,a=r.ordinalOffset||0,o=n.length;a===0&&(i[e]=il());for(var s=i[e],c=a;c<o;c++){var l=n[c]=t.parseAndCollect(n[c]);isNaN(l)||(s[0]=Math.min(l,s[0]),s[1]=Math.max(l,s[1]))}r.ordinalMeta=t,r.ordinalOffset=o,r.type=`ordinal`},e.prototype.getOrdinalMeta=function(e){return this._dimensions[e].ordinalMeta},e.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},e.prototype.appendData=function(e){var t=this._provider,n=this.count();t.appendData(e);var r=t.count();return t.persistent||(r+=n),n<r&&this._initDataFromProvider(n,r,!0),[n,r]},e.prototype.appendValues=function(e,t){for(var n=this._chunks,r=this._dimensions,i=r.length,a=this._rawExtent,o=this.count(),s=o+Math.max(e.length,t||0),c=0;c<i;c++){var l=r[c];rh(n,c,l.type,s,!0)}for(var u=[],d=o;d<s;d++)for(var f=d-o,p=0;p<i;p++){var l=r[p],m=eh.arrayRows.call(this,e[f]||u,l.property,f,p);n[p][d]=m;var h=a[p];m<h[0]&&(h[0]=m),m>h[1]&&(h[1]=m)}return this._rawCount=this._count=s,{start:o,end:s}},e.prototype._initDataFromProvider=function(e,t,n){for(var r=this._provider,i=this._chunks,a=this._dimensions,o=a.length,s=this._rawExtent,c=B(a,function(e){return e.property}),l=0;l<o;l++){var u=a[l];s[l]||(s[l]=il()),rh(i,l,u.type,t,n)}if(r.fillStorage)r.fillStorage(e,t,i,s);else for(var d=[],f=e;f<t;f++){d=r.getItem(f,d);for(var p=0;p<o;p++){var m=i[p],h=this._dimValueGetter(d,c[p],f,p);m[f]=h;var g=s[p];h<g[0]&&(g[0]=h),h>g[1]&&(g[1]=h)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},e.prototype.getValues=function(e,t){var n=[],r=[];if(t==null){t=e,e=[];for(var i=0;i<this._dimensions.length;i++)r.push(i)}else r=e;for(var i=0,a=r.length;i<a;i++)n.push(this.get(r[i],t));return n},e.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},e.prototype.getSum=function(e){var t=this._chunks[e],n=0;if(t)for(var r=0,i=this.count();r<i;r++){var a=this.get(e,r);isNaN(a)||(n+=a)}return n},e.prototype.getMedian=function(e){var t=[];this.each([e],function(e){isNaN(e)||t.push(e)}),Ks(t);var n=this.count();return n===0?0:n%2==1?t[(n-1)/2]:(t[n/2]+t[n/2-1])/2},e.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(n!=null&&n<this._count&&n===e)return e;for(var r=0,i=this._count-1;r<=i;){var a=(r+i)/2|0;if(t[a]<e)r=a+1;else if(t[a]>e)i=a-1;else return a}return-1},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,r=this._count;if(n===Array){e=new n(r);for(var i=0;i<r;i++)e[i]=t[i]}else e=new n(t.buffer,0,r)}else{var n=th(this._rawCount);e=new n(this.count());for(var i=0;i<e.length;i++)e[i]=i}return e},e.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),r=n.count(),i=new(th(n._rawCount))(r),a=[],o=e.length,s=0,c=e[0],l=n._chunks,u=0;u<r;u++){var d=void 0,f=n.getRawIndex(u);if(o===0)d=t(u);else if(o===1){var p=l[c][f];d=t(p,u)}else{for(var m=0;m<o;m++)a[m]=l[e[m]][f];a[m]=u,d=t.apply(null,a)}d&&(i[s++]=f)}return s<r&&(n._indices=i),n._count=s,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var r=Te(e),i=r.length;if(!i)return this;var a=t.count(),o=new(th(t._rawCount))(a),s=0,c=r[0],l=e[c][0],u=e[c][1],d=t._chunks,f=!1;if(!t._indices){var p=0;if(i===1){for(var m=d[r[0]],h=0;h<n;h++){var g=m[h];(g>=l&&g<=u||isNaN(g))&&(o[s++]=p),p++}f=!0}else if(i===2){for(var m=d[r[0]],_=d[r[1]],v=e[r[1]][0],y=e[r[1]][1],h=0;h<n;h++){var g=m[h],b=_[h];(g>=l&&g<=u||isNaN(g))&&(b>=v&&b<=y||isNaN(b))&&(o[s++]=p),p++}f=!0}}if(!f){if(i===1)for(var h=0;h<a;h++){var x=t.getRawIndex(h),g=d[r[0]][x];(g>=l&&g<=u||isNaN(g))&&(o[s++]=x)}else for(var h=0;h<a;h++){for(var S=!0,x=t.getRawIndex(h),C=0;C<i;C++){var w=r[C],g=d[w][x];(g<e[w][0]||g>e[w][1])&&(S=!1)}S&&(o[s++]=t.getRawIndex(h))}}return s<a&&(t._indices=o),t._count=s,t._extent=[],t._updateGetRawIdx(),t},e.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},e.prototype.modify=function(e,t){this._updateDims(this,e,t)},e.prototype._updateDims=function(e,t,n){for(var r=e._chunks,i=[],a=t.length,o=e.count(),s=[],c=e._rawExtent,l=0;l<t.length;l++)c[t[l]]=il();for(var u=0;u<o;u++){for(var d=e.getRawIndex(u),f=0;f<a;f++)s[f]=r[t[f]][d];s[a]=u;var p=n&&n.apply(null,s);if(p!=null){typeof p!=`object`&&(i[0]=p,p=i);for(var l=0;l<p.length;l++){var m=t[l],h=p[l],g=c[m],_=r[m];_&&(_[d]=h),h<g[0]&&(g[0]=h),h>g[1]&&(g[1]=h)}}}},e.prototype.lttbDownSample=function(e,t){var n=this.clone([e],!0),r=n._chunks[e],i=this.count(),a=0,o=Math.floor(1/t),s=this.getRawIndex(0),c,l,u,d=new(th(this._rawCount))(Math.min((Math.ceil(i/o)+2)*2,i));d[a++]=s;for(var f=1;f<i-1;f+=o){for(var p=Math.min(f+o,i-1),m=Math.min(f+o*2,i),h=(m+p)/2,g=0,_=p;_<m;_++){var v=this.getRawIndex(_),y=r[v];isNaN(y)||(g+=y)}g/=m-p;var b=f,x=Math.min(f+o,i),S=f-1,C=r[s];c=-1,u=b;for(var w=-1,T=0,_=b;_<x;_++){var v=this.getRawIndex(_),y=r[v];if(isNaN(y)){T++,w<0&&(w=v);continue}l=Math.abs((S-h)*(y-C)-(S-_)*(g-C)),l>c&&(c=l,u=v)}T>0&&T<x-b&&(d[a++]=Math.min(w,u),u=Math.max(w,u)),d[a++]=u,s=u}return d[a++]=this.getRawIndex(i-1),n._count=a,n._indices=d,n.getRawIndex=this._getRawIdx,n},e.prototype.minmaxDownSample=function(e,t){for(var n=this.clone([e],!0),r=n._chunks,i=Math.floor(1/t),a=r[e],o=this.count(),s=new(th(this._rawCount))(Math.ceil(o/i)*2),c=0,l=0;l<o;l+=i){var u=l,d=a[this.getRawIndex(u)],f=l,p=a[this.getRawIndex(f)],m=i;l+i>o&&(m=o-l);for(var h=0;h<m;h++){var g=a[this.getRawIndex(l+h)];g<d&&(d=g,u=l+h),g>p&&(p=g,f=l+h)}var _=this.getRawIndex(u),v=this.getRawIndex(f);u<f?(s[c++]=_,s[c++]=v):(s[c++]=v,s[c++]=_)}return n._count=c,n._indices=s,n._updateGetRawIdx(),n},e.prototype.downSample=function(e,t,n,r){for(var i=this.clone([e],!0),a=i._chunks,o=[],s=Math.floor(1/t),c=a[e],l=this.count(),u=i._rawExtent[e]=il(),d=new(th(this._rawCount))(Math.ceil(l/s)),f=0,p=0;p<l;p+=s){s>l-p&&(s=l-p,o.length=s);for(var m=0;m<s;m++){var h=this.getRawIndex(p+m);o[m]=c[h]}var g=n(o),_=this.getRawIndex(Math.min(p+r(o,g)||0,l-1));c[_]=g,g<u[0]&&(u[0]=g),g>u[1]&&(u[1]=g),d[f++]=_}return i._count=f,i._indices=d,i._updateGetRawIdx(),i},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,r=this._chunks,i=0,a=this.count();i<a;i++){var o=this.getRawIndex(i);switch(n){case 0:t(i);break;case 1:t(r[e[0]][o],i);break;case 2:t(r[e[0]][o],r[e[1]][o],i);break;default:for(var s=0,c=[];s<n;s++)c[s]=r[e[s]][o];c[s]=i,t.apply(null,c)}}},e.prototype.getDataExtent=function(e,t){var n=this._chunks[e],r=il();if(!n)return r;var i=this.count();if(!this._indices&&!t)return this._rawExtent[e].slice();var a=this._extent,o=a[e]||(a[e]={}),s=qm(t),c=s.key,l=o[c];if(l)return l.slice();for(var u=r[0],d=r[1],f=0;f<i;f++){var p=n[this.getRawIndex(f)];(!t||Jm(s,p))&&(p<u&&(u=p),p>d&&(d=p))}return o[c]=[u,d]},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],r=this._chunks,i=0;i<r.length;i++)n.push(r[i][t]);return n},e.prototype.clone=function(t,n){var r=new e,i=this._chunks,a=t&&Se(t,function(e,t){return e[t]=!0,e},{});if(a)for(var o=0;o<i.length;o++)r._chunks[o]=a[o]?nh(i[o]):i[o];else r._chunks=i;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},e.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=P(this._extent),e._rawExtent=P(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var n=this._indices.length;t=new e(n);for(var r=0;r<n;r++)t[r]=this._indices[r]}else t=new e(this._indices);return t}return null},e.prototype._getRawIdxIdentity=function(e){return e},e.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,r){return zm(e[r],this._dimensions[r])}eh={arrayRows:e,objectRows:function(e,t,n,r){return zm(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(e.value==null?e:e.value);return zm(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}(),ah=Kc(),oh={float:`f`,int:`i`,ordinal:`o`,number:`n`,time:`t`},sh=function(){function e(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=uh(this.source)))},e.prototype.getSourceDimensionIndex=function(e){return G(this._dimNameMap.get(e),-1)},e.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},e.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=pm(this.source),n=!dh(e),r=``,i=[],a=0,o=0;a<e;a++){var s=void 0,c=void 0,l=void 0,u=this.dimensions[o];if(u&&u.storeDimIndex===a)s=t?u.name:null,c=u.type,l=u.ordinalMeta,o++;else{var d=this.getSourceDimension(a);d&&(s=t?d.name:null,c=d.type)}i.push({property:s,type:c,ordinalMeta:l}),t&&s!=null&&(!u||!u.isCalculationCoord)&&(r+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),r+=`$`,r+=oh[c]||`f`,l&&(r+=l.uid),r+=`$`}var f=this.source;return{dimensions:i,hash:[f.seriesLayoutBy,f.startIndex,r].join(`$$`)}},e.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var r=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===t)i.isCalculationCoord||(r=i.name),n++;else{var a=this.getSourceDimension(t);a&&(r=a.name)}e.push(r)}return e},e.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function ch(e){return e instanceof sh}function lh(e){for(var t=K(),n=0;n<(e||[]).length;n++){var r=e[n],i=W(r)?r.name:r;i!=null&&t.get(i)==null&&t.set(i,n)}return t}function uh(e){var t=ah(e);return t.dimNameMap||(t.dimNameMap=lh(e.dimensionsDefine))}function dh(e){return e>30}var fh=W,ph=B,mh=typeof Int32Array>`u`?Array:Int32Array,hh=`e\0\0`,gh=-1,_h=[`hasItemOption`,`_nameList`,`_idList`,`_invertedIndicesMap`,`_dimSummary`,`userOutput`,`_rawData`,`_dimValueGetter`,`_nameDimIdx`,`_idDimIdx`,`_nameRepeatCount`],vh=[`_approximateExtent`],yh,bh,xh,Sh,Ch,wh,Th,Eh=function(){function e(e,t){this.type=`list`,this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=[`cloneShallow`,`downSample`,`minmaxDownSample`,`lttbDownSample`,`map`],this.CHANGABLE_METHODS=[`filterSelf`,`selectRange`],this.DOWNSAMPLE_METHODS=[`downSample`,`minmaxDownSample`,`lttbDownSample`];var n,r=!1;ch(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(r=!0,n=e),n=n||[`x`,`y`];for(var i={},a=[],o={},s=!1,c={},l=0;l<n.length;l++){var u=n[l],d=U(u)?new Rm({name:u}):u instanceof Rm?u:new Rm(u),f=d.name;d.type=d.type||`float`,d.coordDim||(d.coordDim=f,d.coordDimIndex=0);var p=d.otherDims=d.otherDims||{};a.push(f),i[f]=d,c[f]!=null&&(s=!0),d.createInvertedIndices&&(o[f]=[]),r&&(d.storeDimIndex=l),p.itemName===0&&(this._nameDimIdx=d.storeDimIndex),p.itemId===0&&(this._idDimIdx=d.storeDimIndex)}if(this.dimensions=a,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=t,this._invertedIndicesMap=o,this._dimOmitted){var m=this._dimIdxToName=K();z(a,function(e){m.set(i[e].storeDimIndex,e)})}}return e.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(t==null)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var n=this._dimIdxToName.get(t);if(n!=null)return n;var r=this._schema.getSourceDimension(t);if(r)return r.name},e.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(t!=null)return t;if(e==null)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},e.prototype._recognizeDimIndex=function(e){if(Ae(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},e.prototype._getStoreDimIndex=function(e){return this.getDimensionIndex(e)},e.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},e.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(e){return t.hasOwnProperty(e)?t[e]:void 0}:function(e){return t[e]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(t==null)return n.encodeFirstDimNotExtra[e];var r=n.encode[e];return r?r[t]:null},e.prototype.mapDimensionsAll=function(e){return(this._dimSummary.encode[e]||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(e,t,n){var r=this,i;if(e instanceof ih&&(i=e),!i){var a=this.dimensions,o=im(e)||xe(e)?new bm(e,a.length):e;i=new ih;var s=ph(a,function(e){return{type:r._dimInfos[e].type,property:e}});i.initData(o,s,n)}this._store=i,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=Pm(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},e.prototype.appendValues=function(e,t){var n=this._store.appendValues(e,t&&t.length),r=n.start,i=n.end,a=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var o=r;o<i;o++){var s=o-r;this._nameList[o]=t[s],a&&Th(this,o)}},e.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var r=this._dimInfos[t[n]];r.ordinalMeta&&e.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==`typedArray`&&!e.fillStorage},e.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,i=this._idList;if(n.getSource().sourceFormat===`original`&&!n.pure)for(var a=[],o=e;o<t;o++){var s=n.getItem(o,a);if(!this.hasItemOption&&kc(s)&&(this.hasItemOption=!0),s){var c=s.name;r[o]==null&&c!=null&&(r[o]=zc(c,null));var l=s.id;i[o]==null&&l!=null&&(i[o]=zc(l,null))}}if(this._shouldMakeIdFromName())for(var o=e;o<t;o++)Th(this,o);yh(this)}},e.prototype.getApproximateExtent=function(e,t){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e),t)},e.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},e.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},e.prototype.setCalculationInfo=function(e,t){fh(e)?I(this._calculationInfo,e):this._calculationInfo[e]=t},e.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return n==null&&this._nameDimIdx!=null&&(n=xh(this,this._nameDimIdx,t)),n==null&&(n=``),n},e.prototype._getCategory=function(e,t){var n=this._store.get(e,t),r=this._store.getOrdinalMeta(e);return r?r.categories[n]:n},e.prototype.getId=function(e){return bh(this,this.getRawIndex(e))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.get(r.storeDimIndex,t)},e.prototype.getByRawIndex=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.getByRawIndex(r.storeDimIndex,t)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e),null)},e.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},e.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},e.prototype.getValues=function(e,t){var n=this,r=this._store;return V(e)?r.getValues(ph(e,function(e){return n._getStoreDimIndex(e)}),t):r.getValues(e)},e.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,r=t.length;n<r;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},e.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;t++)if(this.getName(t)===e)return t;return-1},e.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},e.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},e.prototype.rawIndexOf=function(e,t){var n=e&&this._invertedIndicesMap[e],r=n&&n[t];return r==null||isNaN(r)?gh:r},e.prototype.each=function(e,t,n){H(e)&&(n=t,t=e,e=[]);var r=n||this,i=ph(Sh(e),this._getStoreDimIndex,this);this._store.each(i,r?De(t,r):t)},e.prototype.filterSelf=function(e,t,n){H(e)&&(n=t,t=e,e=[]);var r=n||this,i=ph(Sh(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?De(t,r):t),this},e.prototype.selectRange=function(e){var t=this,n={},r=Te(e),i=[];return z(r,function(r){var a=t._getStoreDimIndex(r);n[a]=e[r],i.push(a)}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(e,t,n){H(e)&&(n=t,t=e,e=[]),n=n||this;var r=[];return this.each(e,function(){r.push(t&&t.apply(this,arguments))},n),r},e.prototype.map=function(e,t,n,r){var i=n||r||this,a=ph(Sh(e),this._getStoreDimIndex,this),o=wh(this);return o._store=this._store.map(a,i?De(t,i):t),o},e.prototype.modify=function(e,t,n,r){var i=n||r||this,a=ph(Sh(e),this._getStoreDimIndex,this);this._store.modify(a,i?De(t,i):t)},e.prototype.downSample=function(e,t,n,r){var i=wh(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,n,r),i},e.prototype.minmaxDownSample=function(e,t){var n=wh(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),n},e.prototype.lttbDownSample=function(e,t){var n=wh(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},e.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},e.prototype.getItemModel=function(e){var t=this.hostModel;return new Wp(this.getRawDataItem(e),t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new qp(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(t){return bh(e,t)},function(e){return bh(t,e)})},e.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},e.prototype.setVisual=function(e,t){this._visual=this._visual||{},fh(e)?I(this._visual,e):this._visual[e]=t},e.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e],r=n&&n[t];return r==null?this.getVisual(t):r},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];r||(r=n[e]={});var i=r[t];return i==null&&(i=this.getVisual(t),V(i)?i=i.slice():fh(i)&&(i=I({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,fh(t)?I(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){fh(e)?I(this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?I(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){Sl(this.hostModel&&this.hostModel.seriesIndex,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){z(this._graphicEls,function(n,r){n&&e&&e.call(t,n,r)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:ph(this.dimensions,this._getDimInfo,this),this.hostModel)),Ch(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];H(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(Be(arguments)))})},e.internalField=function(){yh=function(e){var t=e._invertedIndicesMap;z(t,function(n,r){var i=e._dimInfos[r],a=i.ordinalMeta,o=e._store;if(a){n=t[r]=new mh(a.categories.length);for(var s=0;s<n.length;s++)n[s]=gh;for(var s=0;s<o.count();s++)n[o.get(i.storeDimIndex,s)]=s}})},xh=function(e,t,n){return zc(e._getCategory(t,n),null)},bh=function(e,t){var n=e._idList[t];return n==null&&e._idDimIdx!=null&&(n=xh(e,e._idDimIdx,t)),n==null&&(n=hh+t),n},Sh=function(e){return V(e)||(e=e==null?[]:[e]),e},wh=function(t){var n=new e(t._schema?t._schema:ph(t.dimensions,t._getDimInfo,t),t.hostModel);return Ch(n,t),n},Ch=function(e,t){z(_h.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,z(vh,function(n){e[n]=P(t[n])}),e._calculationInfo=I({},t._calculationInfo)},Th=function(e,t){var n=e._nameList,r=e._idList,i=e._nameDimIdx,a=e._idDimIdx,o=n[t],s=r[t];if(o==null&&i!=null&&(n[t]=o=xh(e,i,t)),s==null&&a!=null&&(r[t]=s=xh(e,a,t)),s==null&&o!=null){var c=e._nameRepeatCount,l=c[o]=(c[o]||0)+1;s=o,l>1&&(s+=`__ec__`+l),r[t]=s}}}(),e}();function Dh(e,t){return Oh(e,t).dimensions}function Oh(e,t){im(e)||(e=om(e)),t=t||{};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=K(),a=[],o=kh(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&dh(o),c=r===e.dimensionsDefine,l=c?uh(e):lh(r),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(e,o));for(var d=K(u),f=new Zm(o),p=0;p<f.length;p++)f[p]=-1;function m(e){var t=f[e];if(t<0){var n=r[e],i=W(n)?n:{name:n},o=new Rm,s=i.name;return s!=null&&l.get(s)!=null&&(o.name=o.displayName=s),i.type!=null&&(o.type=i.type),i.displayName!=null&&(o.displayName=i.displayName),f[e]=a.length,o.storeDimIndex=e,a.push(o),o}return a[t]}if(!s)for(var p=0;p<o;p++)m(p);d.each(function(e,t){var n=Tc(e).slice();if(n.length===1&&!U(n[0])&&n[0]<0){d.set(t,!1);return}var r=d.set(t,[]);z(n,function(e,n){var i=U(e)?l.get(e):e;i!=null&&i<o&&(r[n]=i,g(m(i),t,n))})});var h=0;z(n,function(e){var t,n,r,i;if(U(e))t=e,i={};else{i=e,t=i.name;var a=i.ordinalMeta;i.ordinalMeta=null,i=I({},i),i.ordinalMeta=a,n=i.dimsDef,r=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null}var s=d.get(t);if(s!==!1){if(s=Tc(s),!s.length)for(var l=0;l<(n&&n.length||1);l++){for(;h<o&&m(h).coordDim!=null;)h++;h<o&&s.push(h++)}z(s,function(e,a){var o=m(e);if(c&&i.type!=null&&(o.type=i.type),g(L(o,i),t,a),o.name==null&&n){var s=n[a];!W(s)&&(s={name:s}),o.name=o.displayName=s.name,o.defaultTooltip=s.defaultTooltip}r&&L(o.otherDims,r)})}});function g(e,t,n){Cl.get(t)==null?(e.coordDim=t,e.coordDimIndex=n,i.set(t,!0)):e.otherDims[t]=n}var _=t.generateCoord,v=t.generateCoordCount,y=v!=null;v=_?v||1:0;var b=_||`value`;function x(e){e.name==null&&(e.name=e.coordDim)}if(s)z(a,function(e){x(e)}),a.sort(function(e,t){return e.storeDimIndex-t.storeDimIndex});else for(var S=0;S<o;S++){var C=m(S);C.coordDim==null&&(C.coordDim=Ah(b,i,y),C.coordDimIndex=0,(!_||v<=0)&&(C.isExtraCoord=!0),v--),x(C),C.type==null&&(tm(e,S)===Jp.Must||C.isExtraCoord&&(C.otherDims.itemName!=null||C.otherDims.seriesName!=null))&&(C.type=`ordinal`)}return hl(a,function(e){return e.name},function(e,t){t>0&&(e.name+=t-1)}),new sh({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function kh(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return z(t,function(e){var t;W(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))}),i}function Ah(e,t,n){if(n||t.hasKey(e)){for(var r=0;t.hasKey(e+r);)r++;e+=r}return t.set(e,!0),e}var jh={},Mh={},Nh=function(){function e(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return e.prototype.create=function(e,t){this._nonSeriesBoxMasterList=n(jh,!0),this._normalMasterList=n(Mh,!1);function n(n,r){var i=[];return z(n,function(n,r){var a=n.create(e,t);i=i.concat(a||[])}),i}},e.prototype.update=function(e,t){z(this._normalMasterList,function(n){n.update&&n.update(e,t)})},e.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},e.register=function(e,t){if(e===`matrix`||e===`calendar`){jh[e]=t;return}Mh[e]=t},e.get=function(e){return Mh[e]||jh[e]},e}();function Ph(e){return!!jh[e]}function Fh(e){Ih.set(e.fullType,{getCoord2:void 0}).getCoord2=e.getCoord2}var Ih=K();function Lh(e){var t=e.getShallow(`coord`,!0),n=1;if(t==null){var r=Ih.get(e.type);r&&r.getCoord2&&(n=2,t=r.getCoord2(e))}return{coord:t,from:n}}function Rh(e,t){var n=e.getShallow(`coordinateSystem`),r=e.getShallow(`coordinateSystemUsage`,!0),i=0;if(n){var a=e.mainType===`series`;r==null&&(r=a?`data`:`box`),r===`data`?(i=1,a||(i=0)):r===`box`&&(i=2,!a&&!Ph(n)&&(i=0))}return{coordSysType:n,kind:i}}function zh(e){var t=e.targetModel,n=e.coordSysType,r=e.coordSysProvider,i=e.isDefaultDataCoordSys;e.allowNotFound;var a=Rh(t,!0),o=a.kind,s=a.coordSysType;if(i&&o!==1&&(o=1,s=n),o===0||s!==n)return 0;var c=r(n,t);return c?(o===1?t.coordinateSystem=c:t.boxCoordinateSystem=c,o):0}var Bh=function(){function e(e){this.coordSysDims=[],this.axisMap=K(),this.categoryAxisMap=K(),this.coordSysName=e}return e}();function Vh(e){var t=e.get(`coordinateSystem`),n=new Bh(t),r=Hh[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var Hh={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents(`xAxis`,Xc).models[0],a=e.getReferringComponents(`yAxis`,Xc).models[0];t.coordSysDims=[`x`,`y`],n.set(`x`,i),n.set(`y`,a),Uh(i)&&(r.set(`x`,i),t.firstCategoryDimIndex=0),Uh(a)&&(r.set(`y`,a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,r){var i=e.getReferringComponents(`singleAxis`,Xc).models[0];t.coordSysDims=[`single`],n.set(`single`,i),Uh(i)&&(r.set(`single`,i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents(`polar`,Xc).models[0],a=i.findAxisModel(`radiusAxis`),o=i.findAxisModel(`angleAxis`);t.coordSysDims=[`radius`,`angle`],n.set(`radius`,a),n.set(`angle`,o),Uh(a)&&(r.set(`radius`,a),t.firstCategoryDimIndex=0),Uh(o)&&(r.set(`angle`,o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,r){t.coordSysDims=[`lng`,`lat`]},parallel:function(e,t,n,r){var i=e.ecModel,a=i.getComponent(`parallel`,e.get(`parallelIndex`)),o=t.coordSysDims=a.dimensions.slice();z(a.parallelAxisIndex,function(e,a){var s=i.getComponent(`parallelAxis`,e),c=o[a];n.set(c,s),Uh(s)&&(r.set(c,s),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=a))})},matrix:function(e,t,n,r){var i=e.getReferringComponents(`matrix`,Xc).models[0];t.coordSysDims=[`x`,`y`];var a=i.getDimensionModel(`x`),o=i.getDimensionModel(`y`);n.set(`x`,a),n.set(`y`,o),r.set(`x`,a),r.set(`y`,o)}};function Uh(e){return e.get(`type`)===`category`}function Wh(e,t,n){n=n||{};var r=n.byIndex,i=n.stackedCoordDimension,a,o,s;Gh(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var c=!!(e&&e.get(`stack`)),l,u,d,f,p=!0;function m(e){return e.type!==`ordinal`&&e.type!==`time`}if(z(a,function(e,t){U(e)&&(a[t]=e={name:e}),m(e)||(p=!1)}),z(a,function(e,t){c&&!e.isExtraCoord&&(!r&&!l&&e.ordinalMeta&&(l=e),!u&&m(e)&&(!p||e.coordDim!==`x`&&e.coordDim!==`angle`)&&(!i||i===e.coordDim)&&(u=e))}),u&&!r&&!l&&(r=!0),u){d=`__\0ecstackresult_`+e.id,f=`__\0ecstackedover_`+e.id,l&&(l.createInvertedIndices=!0);var h=u.coordDim,g=u.type,_=0;z(a,function(e){e.coordDim===h&&_++});var v={name:d,coordDim:h,coordDimIndex:_,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:f,coordDim:f,coordDimIndex:_+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(v.storeDimIndex=s.ensureCalculationDimension(f,g),y.storeDimIndex=s.ensureCalculationDimension(d,g)),o.appendCalculationDimension(v),o.appendCalculationDimension(y)):(a.push(v),a.push(y))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:r,stackedOverDimension:f,stackResultDimension:d}}function Gh(e){return!ch(e.schema)}function Kh(e,t){return!!t&&t===e.getCalculationInfo(`stackedDimension`)}function qh(e,t){return Kh(e,t)?e.getCalculationInfo(`stackResultDimension`):t}function Jh(e,t){var n=e.get(`coordinateSystem`),r=Nh.get(n),i;return t&&t.coordSysDims&&(i=B(t.coordSysDims,function(e){var n={name:e},r=t.axisMap.get(e);return r&&(n.type=Im(r.get(`type`))),n})),i||(i=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||[`x`,`y`]),i}function Yh(e,t,n){var r,i;return n&&z(e,function(e,a){var o=e.coordDim,s=n.categoryAxisMap.get(o);s&&(r==null&&(r=a),e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),e.otherDims.itemName!=null&&(i=!0)}),!i&&r!=null&&(e[r].otherDims.itemName=0),r}function Xh(e,t,n){n=n||{};var r=t.getSourceManager(),i,a=!1;e?(a=!0,i=om(e)):(i=r.getSource(),a=i.sourceFormat===wl);var o=Vh(t),s=Jh(t,o),c=n.useEncodeDefaulter,l=H(c)?c:c?Oe(Zp,s,t):null,u={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},d=Oh(i,u),f=Yh(d.dimensions,n.createInvertedIndices,o),p=a?null:r.getSharedDataStore(d),m=Wh(t,{schema:d,store:p}),h=new Eh(d,t);h.setCalculationInfo(m);var g=f!=null&&Zh(i)?function(e,t,n,r){return r===f?n:this.defaultDimValueGetter(e,t,n,r)}:null;return h.hasItemOption=!1,h.initData(a?i:p,null,g),h}function Zh(e){if(e.sourceFormat===`original`)return!V(Oc(Qh(e.data||[])))}function Qh(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var $h=Math.round(Math.random()*10);function eg(e){return[e||``,$h++].join(`_`)}function tg(e){var t={};e.registerSubTypeDefaulter=function(e,n){var r=ct(e);t[r.main]=n},e.determineSubType=function(n,r){var i=r.type;if(!i){var a=ct(n).main;e.hasSubTypes(n)&&t[a]&&(i=t[a](r))}return i}}function ng(e,t){e.topologicalTravel=function(e,t,r,i){if(!e.length)return;var a=n(t),o=a.graph,s=a.noEntryList,c={};for(z(e,function(e){c[e]=!0});s.length;){var l=s.pop(),u=o[l],d=!!c[l];d&&(r.call(i,l,u.originalDeps.slice()),delete c[l]),z(u.successor,d?p:f)}z(c,function(){throw Error(``)});function f(e){o[e].entryCount--,o[e].entryCount===0&&s.push(e)}function p(e){c[e]=!0,f(e)}};function n(e){var n={},a=[];return z(e,function(o){var s=r(n,o),c=i(s.originalDeps=t(o),e);s.entryCount=c.length,s.entryCount===0&&a.push(o),z(c,function(e){R(s.predecessor,e)<0&&s.predecessor.push(e);var t=r(n,e);R(t.successor,e)<0&&t.successor.push(o)})}),{graph:n,noEntryList:a}}function r(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}function i(e,t){var n=[];return z(e,function(e){R(t,e)>=0&&n.push(e)}),n}}function rg(e,t){return F(F({},e,!0),t,!0)}var ig=Math.log(2);function ag(e,t,n,r,i,a){var o=r+`-`+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var c=Math.round(Math.log((1<<s)-1&~i)/ig);return e[n][c]}for(var l=r|1<<n,u=n+1;r&1<<u;)u++;for(var d=0,f=0,p=0;f<s;f++){var m=1<<f;m&i||(d+=(p%2?-1:1)*e[n][f]*ag(e,t-1,u,l,i|m,a),p++)}return a[o]=d,d}function og(e,t){var n=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],r={},i=ag(n,8,0,0,0,r);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*ag(n,7,+(o===0),1<<o,1<<s,r)/i*t[o];return function(e,t,n){var r=t*a[6]+n*a[7]+1;e[0]=(t*a[0]+n*a[1]+a[2])/r,e[1]=(t*a[3]+n*a[4]+a[5])/r}}}var sg=`___zrEVENTSAVED`,cg=[];function lg(e,t,n,r,i){return dg(cg,t,r,i,!0)&&dg(e,n,cg[0],cg[1])}function ug(e,t){e&&n(e),t&&n(t);function n(e){var t=e[sg];t&&(t.clearMarkers&&t.clearMarkers(),delete e[sg])}}function dg(e,t,n,r,i){if(t.getBoundingClientRect&&J.domSupported&&!mg(t)){var a=t[sg]||(t[sg]={}),o=pg(fg(t,a),a,i);if(o)return o(e,n,r),!0}return!1}function fg(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var r=[`left`,`right`],i=[`top`,`bottom`],a=0;a<4;a++){var o=document.createElement(`div`),s=o.style,c=a%2,l=(a>>1)%2;s.cssText=[`position: absolute`,`visibility: hidden`,`padding: 0`,`margin: 0`,`border-width: 0`,`user-select: none`,`width:0`,`height:0`,r[c]+`:0`,i[l]+`:0`,r[1-c]+`:auto`,i[1-l]+`:auto`,``].join(`!important;`),e.appendChild(o),n.push(o)}return t.clearMarkers=function(){z(n,function(e){e.parentNode&&e.parentNode.removeChild(e)})},n}function pg(e,t,n){for(var r=n?`invTrans`:`trans`,i=t[r],a=t.srcCoords,o=[],s=[],c=!0,l=0;l<4;l++){var u=e[l].getBoundingClientRect(),d=2*l,f=u.left,p=u.top;o.push(f,p),c=c&&a&&f===a[d]&&p===a[d+1],s.push(e[l].offsetLeft,e[l].offsetTop)}return c&&i?i:(t.srcCoords=o,t[r]=n?og(s,o):og(o,s))}function mg(e){return e.nodeName.toUpperCase()===`CANVAS`}var hg=/([&<>"'])/g,gg={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`};function _g(e){return e==null?``:(e+``).replace(hg,function(e,t){return gg[t]})}var vg={time:{month:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],monthAbbr:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],dayOfWeek:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],dayOfWeekAbbr:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`]},legend:{selector:{all:`All`,inverse:`Inv`}},toolbox:{brush:{title:{rect:`Box Select`,polygon:`Lasso Select`,lineX:`Horizontally Select`,lineY:`Vertically Select`,keep:`Keep Selections`,clear:`Clear Selections`}},dataView:{title:`Data View`,lang:[`Data View`,`Close`,`Refresh`]},dataZoom:{title:{zoom:`Zoom`,back:`Zoom Reset`}},magicType:{title:{line:`Switch to Line Chart`,bar:`Switch to Bar Chart`,stack:`Stack`,tiled:`Tile`}},restore:{title:`Restore`},saveAsImage:{title:`Save as Image`,lang:[`Right Click to Save Image`]}},series:{typeNames:{pie:`Pie chart`,bar:`Bar chart`,line:`Line chart`,scatter:`Scatter plot`,effectScatter:`Ripple scatter plot`,radar:`Radar chart`,tree:`Tree`,treemap:`Treemap`,boxplot:`Boxplot`,candlestick:`Candlestick`,k:`K line chart`,heatmap:`Heat map`,map:`Map`,parallel:`Parallel coordinate map`,lines:`Line graph`,graph:`Relationship graph`,sankey:`Sankey diagram`,funnel:`Funnel chart`,gauge:`Gauge`,pictorialBar:`Pictorial bar`,themeRiver:`Theme River Map`,sunburst:`Sunburst`,custom:`Custom chart`,chart:`Chart`}},aria:{general:{withTitle:`This is a chart about "{title}"`,withoutTitle:`This is a chart`},series:{single:{prefix:``,withName:` with type {seriesType} named {seriesName}.`,withoutName:` with type {seriesType}.`},multiple:{prefix:`. It consists of {seriesCount} series count.`,withName:` The {seriesId} series is a {seriesType} representing {seriesName}.`,withoutName:` The {seriesId} series is a {seriesType}.`,separator:{middle:``,end:``}}},data:{allData:`The data is as follows: `,partialData:`The first {displayCnt} items are: `,withName:`the data for {name} is {value}`,withoutName:`{value}`,separator:{middle:`, `,end:`. `}}}},yg={time:{month:[`一月`,`二月`,`三月`,`四月`,`五月`,`六月`,`七月`,`八月`,`九月`,`十月`,`十一月`,`十二月`],monthAbbr:[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`],dayOfWeek:[`星期日`,`星期一`,`星期二`,`星期三`,`星期四`,`星期五`,`星期六`],dayOfWeekAbbr:[`日`,`一`,`二`,`三`,`四`,`五`,`六`]},legend:{selector:{all:`全选`,inverse:`反选`}},toolbox:{brush:{title:{rect:`矩形选择`,polygon:`圈选`,lineX:`横向选择`,lineY:`纵向选择`,keep:`保持选择`,clear:`清除选择`}},dataView:{title:`数据视图`,lang:[`数据视图`,`关闭`,`刷新`]},dataZoom:{title:{zoom:`区域缩放`,back:`区域缩放还原`}},magicType:{title:{line:`切换为折线图`,bar:`切换为柱状图`,stack:`切换为堆叠`,tiled:`切换为平铺`}},restore:{title:`还原`},saveAsImage:{title:`保存为图片`,lang:[`右键另存为图片`]}},series:{typeNames:{pie:`饼图`,bar:`柱状图`,line:`折线图`,scatter:`散点图`,effectScatter:`涟漪散点图`,radar:`雷达图`,tree:`树图`,treemap:`矩形树图`,boxplot:`箱型图`,candlestick:`K线图`,k:`K线图`,heatmap:`热力图`,map:`地图`,parallel:`平行坐标图`,lines:`线图`,graph:`关系图`,sankey:`桑基图`,funnel:`漏斗图`,gauge:`仪表盘图`,pictorialBar:`象形柱图`,themeRiver:`主题河流图`,sunburst:`旭日图`,custom:`自定义图表`,chart:`图表`}},aria:{general:{withTitle:`这是一个关于“{title}”的图表。`,withoutTitle:`这是一个图表,`},series:{single:{prefix:``,withName:`图表类型是{seriesType},表示{seriesName}。`,withoutName:`图表类型是{seriesType}。`},multiple:{prefix:`它由{seriesCount}个图表系列组成。`,withName:`第{seriesId}个系列是一个表示{seriesName}的{seriesType},`,withoutName:`第{seriesId}个系列是一个{seriesType},`,separator:{middle:`;`,end:`。`}}},data:{allData:`其数据是——`,partialData:`其中,前{displayCnt}项是——`,withName:`{name}的数据是{value}`,withoutName:`{value}`,separator:{middle:`,`,end:``}}}},bg=`ZH`,xg=`EN`,Sg=xg,Cg={},wg={},Tg=J.domSupported?function(){return(document.documentElement.lang||navigator.language||navigator.browserLanguage||Sg).toUpperCase().indexOf(bg)>-1?bg:Sg}():Sg;function Eg(e,t){e=e.toUpperCase(),wg[e]=new Wp(t),Cg[e]=t}function Dg(e){if(U(e)){var t=Cg[e.toUpperCase()]||{};return e===bg||e===xg?P(t):F(P(t),P(Cg[Sg]),!1)}return F(P(e),P(Cg[Sg]),!1)}function Og(e){return wg[e]}function kg(){return wg[Sg]}Eg(xg,vg),Eg(bg,yg);var Ag=null;function jg(){return Ag}function Mg(e,t){var n=jg(),r=t.breakOption,i=t.breakParsed;return!i&&n&&(i=n.parseAxisBreakOption(r,e)),i}function Ng(e){var t=e.brk;return t?t.breaks:[]}function Pg(e){var t=e.brk;return t?t.hasBreaks():!1}var Fg=1e3,Ig=Fg*60,Lg=Ig*60,Rg=Lg*24,zg=Rg*365,Bg={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},Vg={year:`{yyyy}`,month:`{MMM}`,day:`{d}`,hour:`{HH}:{mm}`,minute:`{HH}:{mm}`,second:`{HH}:{mm}:{ss}`,millisecond:`{HH}:{mm}:{ss} {SSS}`},Hg=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}`,Ug=`{yyyy}-{MM}-{dd}`,Wg={year:`{yyyy}`,month:`{yyyy}-{MM}`,day:Ug,hour:Ug+` `+Vg.hour,minute:Ug+` `+Vg.minute,second:Ug+` `+Vg.second,millisecond:Hg},Gg=[`year`,`month`,`day`,`hour`,`minute`,`second`,`millisecond`],Kg=[`year`,`half-year`,`quarter`,`month`,`week`,`half-week`,`day`,`half-day`,`quarter-day`,`hour`,`minute`,`second`,`millisecond`];function qg(e){return!U(e)&&!H(e)?Jg(e):e}function Jg(e){e=e||{};var t={},n=!0;return z(Gg,function(t){n&&(n=e[t]==null)}),z(Gg,function(r,i){var a=e[r];t[r]={};for(var o=null,s=i;s>=0;s--){var c=Gg[s],l=W(a)&&!V(a)?a[c]:a,u=void 0;V(l)?(u=l.slice(),o=u[0]||``):U(l)?(o=l,u=[o]):(o==null?o=Vg[r]:Bg[c].test(o)||(o=t[c][c][0]+` `+o),u=[o],n&&(u[1]=`{primary|`+o+`}`)),t[r][c]=u}}),t}function Yg(e,t){return e+=``,`0000`.substr(0,t-e.length)+e}function Xg(e){switch(e){case`half-year`:case`quarter`:return`month`;case`week`:case`half-week`:return`day`;case`half-day`:case`quarter-day`:return`hour`;default:return e}}function Zg(e){return e===Xg(e)}function Qg(e){switch(e){case`year`:case`month`:return`day`;case`millisecond`:return`millisecond`;default:return`second`}}function $g(e,t,n,r){var i=ic(e),a=i[r_(n)](),o=i[i_(n)]()+1,s=Math.floor((o-1)/3)+1,c=i[a_(n)](),l=i[`get`+(n?`UTC`:``)+`Day`](),u=i[o_(n)](),d=(u-1)%12+1,f=i[s_(n)](),p=i[c_(n)](),m=i[l_(n)](),h=u>=12?`pm`:`am`,g=h.toUpperCase(),_=(r instanceof Wp?r:Og(r||Tg)||kg()).getModel(`time`),v=_.get(`month`),y=_.get(`monthAbbr`),b=_.get(`dayOfWeek`),x=_.get(`dayOfWeekAbbr`);return(t||``).replace(/{a}/g,h+``).replace(/{A}/g,g+``).replace(/{yyyy}/g,a+``).replace(/{yy}/g,Yg(a%100+``,2)).replace(/{Q}/g,s+``).replace(/{MMMM}/g,v[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,Yg(o,2)).replace(/{M}/g,o+``).replace(/{dd}/g,Yg(c,2)).replace(/{d}/g,c+``).replace(/{eeee}/g,b[l]).replace(/{ee}/g,x[l]).replace(/{e}/g,l+``).replace(/{HH}/g,Yg(u,2)).replace(/{H}/g,u+``).replace(/{hh}/g,Yg(d+``,2)).replace(/{h}/g,d+``).replace(/{mm}/g,Yg(f,2)).replace(/{m}/g,f+``).replace(/{ss}/g,Yg(p,2)).replace(/{s}/g,p+``).replace(/{SSS}/g,Yg(m,3)).replace(/{S}/g,m+``)}function e_(e,t,n,r,i){var a=null;if(U(n))a=n;else if(H(n)){var o={time:e.time,level:e.time?e.time.level:0},s=jg();s&&s.makeAxisLabelFormatterParamBreak(o,e.break),a=n(e.value,t,o)}else{var c=e.time;if(c){var l=n[c.lowerTimeUnit][c.upperTimeUnit];a=l[Math.min(c.level,l.length-1)]||``}else{var u=t_(e.value,i);a=n[u][u][0]}}return $g(new Date(e.value),a,i,r)}function t_(e,t){var n=ic(e),r=n[i_(t)]()+1,i=n[a_(t)](),a=n[o_(t)](),o=n[s_(t)](),s=n[c_(t)](),c=n[l_(t)]()===0,l=c&&s===0,u=l&&o===0,d=u&&a===0,f=d&&i===1;return f&&r===1?`year`:f?`month`:d?`day`:u?`hour`:l?`minute`:c?`second`:`millisecond`}function n_(e,t,n){switch(t){case`year`:e[d_(n)](0);case`month`:e[f_(n)](1);case`day`:e[p_(n)](0);case`hour`:e[m_(n)](0);case`minute`:e[h_(n)](0);case`second`:e[g_(n)](0)}return e}function r_(e){return e?`getUTCFullYear`:`getFullYear`}function i_(e){return e?`getUTCMonth`:`getMonth`}function a_(e){return e?`getUTCDate`:`getDate`}function o_(e){return e?`getUTCHours`:`getHours`}function s_(e){return e?`getUTCMinutes`:`getMinutes`}function c_(e){return e?`getUTCSeconds`:`getSeconds`}function l_(e){return e?`getUTCMilliseconds`:`getMilliseconds`}function u_(e){return e?`setUTCFullYear`:`setFullYear`}function d_(e){return e?`setUTCMonth`:`setMonth`}function f_(e){return e?`setUTCDate`:`setDate`}function p_(e){return e?`setUTCHours`:`setHours`}function m_(e){return e?`setUTCMinutes`:`setMinutes`}function h_(e){return e?`setUTCSeconds`:`setSeconds`}function g_(e){return e?`setUTCMilliseconds`:`setMilliseconds`}function __(e,t,n,r,i,a,o,s){return new ds({style:{text:e,font:t,align:n,verticalAlign:r,padding:i,rich:a,overflow:o?`truncate`:null,lineHeight:s}}).getBoundingRect()}function v_(e){if(!dc(e))return U(e)?e:`-`;var t=(e+``).split(`.`);return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,`$1,`)+(t.length>1?`.`+t[1]:``)}function y_(e,t){return e=(e||``).toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var b_=Ve;function x_(e,t,n){var r=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}`;function i(e){return e&&Ue(e)?e:`-`}function a(e){return hc(e)}var o=t===`time`,s=e instanceof Date;if(o||s){var c=o?ic(e):e;if(!isNaN(+c))return $g(c,r,n);if(s)return`-`}if(t===`ordinal`)return ke(e)?i(e):Ae(e)&&a(e)?e+``:`-`;var l=uc(e);return a(l)?v_(l):ke(e)?i(e):typeof e==`boolean`?e+``:`-`}var S_=[`a`,`b`,`c`,`d`,`e`,`f`,`g`],C_=function(e,t){return`{`+e+(t==null?``:t)+`}`};function w_(e,t,n){V(t)||(t=[t]);var r=t.length;if(!r)return``;for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=S_[a];e=e.replace(C_(o),C_(o,0))}for(var s=0;s<r;s++)for(var c=0;c<i.length;c++){var l=t[s][i[c]];e=e.replace(C_(S_[c],s),n?_g(l):l)}return e}function T_(e,t){var n=U(e)?{color:e,extraCssText:t}:e||{},r=n.color,i=n.type;t=n.extraCssText;var a=n.renderMode||`html`;return r?a===`html`?i===`subItem`?`<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:`+_g(r)+`;`+(t||``)+`"></span>`:`<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:`+_g(r)+`;`+(t||``)+`"></span>`:{renderMode:a,content:`{`+(n.markerId||`markerX`)+`|} `,style:i===`subItem`?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}:``}function E_(e,t,n){(e===`week`||e===`month`||e===`quarter`||e===`half-year`||e===`year`)&&(e=`MM-dd
|
|
9
|
+
yyyy`);var r=ic(t),i=n?`getUTC`:`get`,a=r[i+`FullYear`](),o=r[i+`Month`]()+1,s=r[i+`Date`](),c=r[i+`Hours`](),l=r[i+`Minutes`](),u=r[i+`Seconds`](),d=r[i+`Milliseconds`]();return e=e.replace(`MM`,Yg(o,2)).replace(`M`,o).replace(`yyyy`,a).replace(`yy`,Yg(a%100+``,2)).replace(`dd`,Yg(s,2)).replace(`d`,s).replace(`hh`,Yg(c,2)).replace(`h`,c).replace(`mm`,Yg(l,2)).replace(`m`,l).replace(`ss`,Yg(u,2)).replace(`s`,u).replace(`SSS`,Yg(d,3)),e}function D_(e){return e&&e.charAt(0).toUpperCase()+e.substr(1)}function O_(e,t){return t=t||`transparent`,U(e)?e:W(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function k_(e,t){if(t===`_blank`||t===`blank`){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var A_=z,j_=[`left`,`right`,`top`,`bottom`,`width`,`height`],M_=[[`width`,`left`,`right`],[`height`,`top`,`bottom`]];function N_(e,t,n,r,i){var a=0,o=0;r==null&&(r=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(c,l){var u=c.getBoundingRect(),d=t.childAt(l+1),f=d&&d.getBoundingRect(),p,m;if(e===`horizontal`){var h=u.width+(f?-f.x+u.x:0);p=a+h,p>r||c.newline?(a=0,p=h,o+=s+n,s=u.height):s=Math.max(s,u.height)}else{var g=u.height+(f?-f.y+u.y:0);m=o+g,m>i||c.newline?(a+=s+n,o=0,m=g,s=u.width):s=Math.max(s,u.width)}c.newline||(c.x=a,c.y=o,c.markRedraw(),e===`horizontal`?a=p+n:o=m+n)})}var P_=N_;Oe(N_,`vertical`),Oe(N_,`horizontal`);function F_(e,t){return{left:e.getShallow(`left`,t),top:e.getShallow(`top`,t),right:e.getShallow(`right`,t),bottom:e.getShallow(`bottom`,t),width:e.getShallow(`width`,t),height:e.getShallow(`height`,t)}}function I_(e,t){var n=B_(e,t,{enableLayoutOnlyByCenter:!0}),r=e.getBoxLayoutParams(),i,a;if(n.type===z_.point)a=n.refPoint,i=R_(r,{width:t.getWidth(),height:t.getHeight()});else{var o=e.get(`center`),s=V(o)?o:[o,o];i=R_(r,n.refContainer),a=n.boxCoordFrom===2?n.refPoint:[Bs(s[0],i.width)+i.x,Bs(s[1],i.height)+i.y]}return{viewRect:i,center:a}}function L_(e,t){var n=I_(e,t),r=n.viewRect,i=n.center,a=e.get(`radius`);V(a)||(a=[0,a]);var o=Bs(r.width,t.getWidth()),s=Bs(r.height,t.getHeight()),c=Math.min(o,s),l=Bs(a[0],c/2),u=Bs(a[1],c/2);return{cx:i[0],cy:i[1],r0:l,r:u,viewRect:r}}function R_(e,t,n){n=b_(n||0);var r=t.width,i=t.height,a=Bs(e.left,r),o=Bs(e.top,i),s=Bs(e.right,r),c=Bs(e.bottom,i),l=Bs(e.width,r),u=Bs(e.height,i),d=n[2]+n[0],f=n[1]+n[3],p=e.aspect;switch(isNaN(l)&&(l=r-s-f-a),isNaN(u)&&(u=i-c-d-o),p!=null&&(isNaN(l)&&isNaN(u)&&(p>r/i?l=r*.8:u=i*.8),isNaN(l)&&(l=p*u),isNaN(u)&&(u=l/p)),isNaN(a)&&(a=r-s-l-f),isNaN(o)&&(o=i-c-u-d),e.left||e.right){case`center`:a=r/2-l/2-n[3];break;case`right`:a=r-l-f}switch(e.top||e.bottom){case`middle`:case`center`:o=i/2-u/2-n[0];break;case`bottom`:o=i-u-d}a=a||0,o=o||0,isNaN(l)&&(l=r-f-a-(s||0)),isNaN(u)&&(u=i-d-o-(c||0));var m=new X((t.x||0)+a+n[3],(t.y||0)+o+n[0],l,u);return m.margin=n,m}var z_={rect:1,point:2};function B_(e,t,n){var r,i,a,o=e.boxCoordinateSystem,s;if(o){var c=Lh(e),l=c.coord,u=c.from;if(o.dataToLayout){a=z_.rect,s=u;var d=o.dataToLayout(l);r=d.contentRect||d.rect}else n&&n.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=z_.point,s=u,i=o.dataToPoint(l))}return a==null&&(a=z_.rect),a===z_.rect&&(r||(r={x:0,y:0,width:t.getWidth(),height:t.getHeight()}),i=[r.x+r.width/2,r.y+r.height/2]),{type:a,refContainer:r,refPoint:i,boxCoordFrom:s}}function V_(e,t,n,r,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],c=i&&i.boundingMode||`all`;if(a=a||e,a.x=e.x,a.y=e.y,!o&&!s)return!1;var l;if(c===`raw`)l=e.type===`group`?new X(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(l=e.getBoundingRect(),e.needLocalTransform()){var u=e.getLocalTransform();l=l.clone(),l.applyTransform(u)}var d=R_(L({width:l.width,height:l.height},t),n,r),f=o?d.x-l.x:0,p=s?d.y-l.y:0;return c===`raw`?(a.x=f,a.y=p):(a.x+=f,a.y+=p),a===e&&e.markRedraw(),!0}function H_(e){var t=e.layoutMode||e.constructor.layoutMode;return W(t)?t:t?{type:t}:null}function U_(e,t,n){var r=n&&n.ignoreSize;!V(r)&&(r=[r,r]);var i=o(M_[0],0),a=o(M_[1],1);c(M_[0],e,i),c(M_[1],e,a);function o(n,i){var a={},o=0,c={},l=0,u=2;if(A_(n,function(t){c[t]=e[t]}),A_(n,function(e){q(t,e)&&(a[e]=c[e]=t[e]),s(a,e)&&o++,s(c,e)&&l++}),r[i])return s(t,n[1])?c[n[2]]=null:s(t,n[2])&&(c[n[1]]=null),c;if(l===u||!o)return c;if(o>=u)return a;for(var d=0;d<n.length;d++){var f=n[d];if(!q(a,f)&&q(e,f)){a[f]=e[f];break}}return a}function s(e,t){return e[t]!=null&&e[t]!==`auto`}function c(e,t,n){A_(e,function(e){t[e]=n[e]})}}function W_(e){return G_({},e)}function G_(e,t){return t&&e&&A_(j_,function(n){q(t,n)&&(e[n]=t[n])}),e}var K_=Kc(),q_=function(e){T(t,e);function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.uid=eg(`ec_cpt_model`),i}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=H_(this),r=n?W_(e):{};F(e,t.getTheme().get(this.mainType)),F(e,this.getDefaultOption()),n&&U_(e,r,n)},t.prototype.mergeOption=function(e,t){F(this.option,e,!0);var n=H_(this);n&&U_(this.option,e,n)},t.prototype.optionUpdated=function(e,t){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!ut(e))return e.defaultOption;var t=K_(this);if(!t.defaultOption){for(var n=[],r=e;r;){var i=r.prototype.defaultOption;i&&n.push(i),r=r.superClass}for(var a={},o=n.length-1;o>=0;o--)a=F(a,n[o],!0);t.defaultOption=a}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+`Index`,r=e+`Id`;return Qc(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){return F_(this,!1)},t.prototype.getZLevelKey=function(){return``},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type=`component`,e.id=``,e.name=``,e.mainType=``,e.subType=``,e.componentIndex=0}(),t}(Wp);pt(q_,Wp),vt(q_),tg(q_),ng(q_,J_);function J_(e){var t=[];return z(q_.getClassesByMainType(e),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=B(t,function(e){return ct(e).main}),e!==`dataset`&&R(t,`dataset`)<=0&&t.unshift(`dataset`),t}var Y_=Kc();Kc();var X_=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var r=Tc(this.get(`color`,!0)),i=this.get(`colorLayer`,!0);return Q_(this,Y_,r,i,e,t,n)},e.prototype.clearColorPalette=function(){$_(this,Y_)},e}();function Z_(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r].length>t)return e[r];return e[n-1]}function Q_(e,t,n,r,i,a,o){a=a||e;var s=t(a),c=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(i))return l[i];var u=o==null||!r?n:Z_(r,o);if(u=u||n,u&&u.length){var d=u[c];return i&&(l[i]=d),s.paletteIdx=(c+1)%u.length,d}}function $_(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var ev=/\{@(.+?)\}/g,tv=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),r=this.getRawValue(e,t),i=n.getRawIndex(e),a=n.getName(e),o=n.getRawDataItem(e),s=n.getItemVisual(e,`style`),c=s&&s[n.getItemVisual(e,`drawType`)||`fill`],l=s&&s.stroke,u=this.mainType,d=u===`series`,f=n.userOutput&&n.userOutput.get();return{componentType:u,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:a,dataIndex:i,data:o,dataType:t,value:r,color:c,borderColor:l,dimensionNames:f?f.fullDimensions:null,encode:f?f.encode:null,$vars:[`seriesName`,`name`,`value`]}},e.prototype.getFormattedLabel=function(e,t,n,r,i,a){t=t||`normal`;var o=this.getData(n),s=this.getDataParams(e,n);if(a&&(s.value=a.interpolatedValue),r!=null&&V(s.value)&&(s.value=s.value[r]),i||(i=o.getItemModel(e).get(t===`normal`?[`label`,`formatter`]:[t,`label`,`formatter`])),H(i))return s.status=t,s.dimensionIndex=r,i(s);if(U(i))return w_(i,s).replace(ev,function(t,n){var r=n.length,i=n;i.charAt(0)===`[`&&i.charAt(r-1)===`]`&&(i=+i.slice(1,r-1));var s=Mm(o,e,i);if(a&&V(a.interpolatedValue)){var c=o.getDimensionIndex(i);c>=0&&(s=a.interpolatedValue[c])}return s==null?``:s+``})},e.prototype.getRawValue=function(e,t){return Mm(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function nv(e){var t,n;return W(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function rv(e){return new iv(e)}var iv=function(){function e(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t=this._upstream,n=e&&e.skip;if(this._dirty&&t){var r=this.context;r.data=r.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var a=l(this._modBy),o=this._modDataCount||0,s=l(e&&e.modBy),c=e&&e.modDataCount||0;(a!==s||o!==c)&&(i=`reset`);function l(e){return!(e>=1)&&(e=1),e}var u;(this._dirty||i===`reset`)&&(this._dirty=!1,u=this._doReset(n)),this._modBy=s,this._modDataCount=c;var d=e&&e.step;if(this._dueEnd=t?t._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,p=Math.min(d==null?1/0:this._dueIndex+d,this._dueEnd);if(!n&&(u||f<p)){var m=this._progress;if(V(m))for(var h=0;h<m.length;h++)this._doProgress(m[h],f,p,s,c);else this._doProgress(m,f,p,s,c)}this._dueIndex=p;var g=this._settedOutputEnd==null?p:this._settedOutputEnd;this._outputDueEnd=g}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd==null?this._dueEnd:this._settedOutputEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(e,t,n,r,i){av.reset(t,n,r,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:av.next},this.context)},e.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var t,n;!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(n=t.forceFirstProgress,t=t.progress),V(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},e}(),av=function(){var e,t,n,r,i,a={reset:function(c,l,u,d){t=c,e=l,n=u,r=d,i=Math.ceil(r/n),a.next=n>1&&r>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var a=t%i*n+Math.ceil(t/i),o=t>=e?null:a<r?a:t;return t++,o}}(),ov=function(){function e(){}return e.prototype.getRawData=function(){throw Error(`not supported`)},e.prototype.getRawDataItem=function(e){throw Error(`not supported`)},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(e){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(e,t){},e.prototype.retrieveValueFromItem=function(e,t){},e.prototype.convertValue=function(e,t){return zm(e,t)},e}();function sv(e,t){var n=new ov,r=e.data,i=n.sourceFormat=e.sourceFormat,a=e.startIndex;e.seriesLayoutBy!==`column`&&xc(``);var o=[],s={},c=e.dimensionsDefine;if(c)z(c,function(e,t){var n=e.name,r={index:t,name:n,displayName:e.displayName};o.push(r),n!=null&&(q(s,n)&&xc(``),s[n]=r)});else for(var l=0;l<e.dimensionsDetectedCount;l++)o.push({index:l});var u=wm(i,Al);t.__isBuiltIn&&(n.getRawDataItem=function(e){return u(r,a,o,e)},n.getRawData=De(cv,null,e)),n.cloneRawData=De(lv,null,e),n.count=De(Dm(i,Al),null,r,a,o);var d=Am(i);n.retrieveValue=function(e,t){return f(u(r,a,o,e),t)};var f=n.retrieveValueFromItem=function(e,t){if(e!=null){var n=o[t];if(n)return d(e,t,n.name)}};return n.getDimensionInfo=De(uv,null,o,s),n.cloneAllDimensionInfo=De(dv,null,o),n}function cv(e){var t=e.sourceFormat;return gv(t)||xc(``),e.data}function lv(e){var t=e.sourceFormat,n=e.data;if(gv(t)||xc(``),t===`arrayRows`){for(var r=[],i=0,a=n.length;i<a;i++)r.push(n[i].slice());return r}if(t===`objectRows`){for(var r=[],i=0,a=n.length;i<a;i++)r.push(I({},n[i]));return r}}function uv(e,t,n){if(n!=null){if(Ae(n)||!isNaN(n)&&!q(t,n))return e[n];if(q(t,n))return t[n]}}function dv(e){return P(e)}var fv=K();function pv(e){e=P(e);var t=e.type,n=``;t||xc(n);var r=t.split(`:`);r.length!==2&&xc(n);var i=!1;r[0]===`echarts`&&(t=r[1],i=!0),e.__isBuiltIn=i,fv.set(t,e)}function mv(e,t,n){var r=Tc(e),i=r.length;i||xc(``);for(var a=0,o=i;a<o;a++){var s=r[a];t=hv(s,t,n,i===1?null:a),a!==o-1&&(t.length=Math.max(t.length,1))}return t}function hv(e,t,n,r){var i=``;t.length||xc(i),W(e)||xc(i);var a=e.type,o=fv.get(a);o||xc(i);var s=B(t,function(e){return sv(e,o)});return B(Tc(o.transform({upstream:s[0],upstreamList:s,config:P(e.config)})),function(e,n){var r=``;W(e)||xc(r),e.data||xc(r),gv(cm(e.data))||xc(r);var i,a=t[0];if(a&&n===0&&!e.dimensions){var o=a.startIndex;o&&(e.data=a.data.slice(0,o).concat(e.data)),i={seriesLayoutBy:Al,sourceHeader:o,dimensions:a.metaRawOption.dimensions}}else i={seriesLayoutBy:Al,sourceHeader:0,dimensions:e.dimensions};return am(e.data,i,null)})}function gv(e){return e===`arrayRows`||e===`objectRows`}var _v=function(){function e(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+`_`+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),n=!!t.length,r,i;if(yv(e)){var a=e,o=void 0,s=void 0,c=void 0;if(n){var l=t[0];l.prepareSource(),c=l.getSource(),o=c.data,s=c.sourceFormat,i=[l._getVersionSign()]}else o=a.get(`data`,!0),s=Me(o)?Ol:wl,i=[];var u=this._getSourceMetaRawOption()||{},d=c&&c.metaRawOption||{},f=G(u.seriesLayoutBy,d.seriesLayoutBy)||null,p=G(u.sourceHeader,d.sourceHeader),m=G(u.dimensions,d.dimensions);r=f!==d.seriesLayoutBy||!!p!=!!d.sourceHeader||m?[am(o,{seriesLayoutBy:f,sourceHeader:p,dimensions:m},s)]:[]}else{var h=e;if(n){var g=this._applyTransform(t);r=g.sourceList,i=g.upstreamSignList}else r=[am(h.get(`source`,!0),this._getSourceMetaRawOption(),null)],i=[]}this._setLocalSource(r,i)},e.prototype._applyTransform=function(e){var t=this._sourceHost,n=t.get(`transform`,!0),r=t.get(`fromTransformResult`,!0);r!=null&&e.length!==1&&bv(``);var i,a=[],o=[];return z(e,function(e){e.prepareSource();var t=e.getSource(r||0);r!=null&&!t&&bv(``),a.push(t),o.push(e._getVersionSign())}),n?i=mv(n,a,{datasetIndex:t.componentIndex}):r!=null&&(i=[sm(a[0])]),{sourceList:i,upstreamSignList:o}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},e.prototype.getSource=function(e){e=e||0;var t=this._sourceList[e];if(!t){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return t},e.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},e.prototype._innerGetDataStore=function(e,t,n){var r=0,i=this._storeList,a=i[r];a||(a=i[r]={});var o=a[n];if(!o){var s=this._getUpstreamSourceManagers()[0];yv(this._sourceHost)&&s?o=s._innerGetDataStore(e,t,n):(o=new ih,o.initData(new bm(t,e.length),e)),a[n]=o}return o},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(yv(e)){var t=$p(e);return t?[t.getSourceManager()]:[]}return B(em(e),function(e){return e.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,n,r;if(yv(e))t=e.get(`seriesLayoutBy`,!0),n=e.get(`sourceHeader`,!0),r=e.get(`dimensions`,!0);else if(!this._getUpstreamSourceManagers().length){var i=e;t=i.get(`seriesLayoutBy`,!0),n=i.get(`sourceHeader`,!0),r=i.get(`dimensions`,!0)}return{seriesLayoutBy:t,sourceHeader:n,dimensions:r}},e}();function vv(e){e.option.transform&&Ge(e.option.transform)}function yv(e){return e.mainType===`series`}function bv(e){throw Error(e)}var Q={color:{},darkColor:{},size:{}},xv=Q.color={theme:[`#5070dd`,`#b6d634`,`#505372`,`#ff994d`,`#0ca8df`,`#ffd10a`,`#fb628b`,`#785db0`,`#3fbe95`],neutral00:`#fff`,neutral05:`#f4f7fd`,neutral10:`#e8ebf0`,neutral15:`#dbdee4`,neutral20:`#cfd2d7`,neutral25:`#c3c5cb`,neutral30:`#b7b9be`,neutral35:`#aaacb2`,neutral40:`#9ea0a5`,neutral45:`#929399`,neutral50:`#86878c`,neutral55:`#797b7f`,neutral60:`#6d6e73`,neutral65:`#616266`,neutral70:`#54555a`,neutral75:`#48494d`,neutral80:`#3c3c41`,neutral85:`#303034`,neutral90:`#232328`,neutral95:`#17171b`,neutral99:`#000`,accent05:`#eff1f9`,accent10:`#e0e4f2`,accent15:`#d0d6ec`,accent20:`#c0c9e6`,accent25:`#b1bbdf`,accent30:`#a1aed9`,accent35:`#91a0d3`,accent40:`#8292cc`,accent45:`#7285c6`,accent50:`#6578ba`,accent55:`#5c6da9`,accent60:`#536298`,accent65:`#4a5787`,accent70:`#404c76`,accent75:`#374165`,accent80:`#2e3654`,accent85:`#252b43`,accent90:`#1b2032`,accent95:`#121521`,transparent:`rgba(0,0,0,0)`,highlight:`rgba(255,231,130,0.8)`};for(var Sv in I(xv,{primary:xv.neutral80,secondary:xv.neutral70,tertiary:xv.neutral60,quaternary:xv.neutral50,disabled:xv.neutral20,border:xv.neutral30,borderTint:xv.neutral20,borderShade:xv.neutral40,background:xv.neutral05,backgroundTint:`rgba(234,237,245,0.5)`,backgroundTransparent:`rgba(255,255,255,0)`,backgroundShade:xv.neutral10,shadow:`rgba(0,0,0,0.2)`,shadowTint:`rgba(129,130,136,0.2)`,axisLine:xv.neutral70,axisLineTint:xv.neutral40,axisTick:xv.neutral70,axisTickMinor:xv.neutral60,axisLabel:xv.neutral70,axisSplitLine:xv.neutral15,axisMinorSplitLine:xv.neutral05}),xv)if(xv.hasOwnProperty(Sv)){var Cv=xv[Sv];Sv===`theme`?Q.darkColor.theme=xv.theme.slice():Sv===`highlight`?Q.darkColor.highlight=`rgba(255,231,130,0.4)`:Sv.indexOf(`accent`)===0?Q.darkColor[Sv]=Ai(Cv,null,function(e){return e*.5},function(e){return Math.min(1,1.3-e)}):Q.darkColor[Sv]=Ai(Cv,null,function(e){return e*.9},function(e){return 1-Math.pow(e,1.5)})}Q.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var wv=`line-height:1`;function Tv(e){var t=e.lineHeight;return t==null?wv:`line-height:`+_g(t+``)+`px`}function Ev(e,t){var n=e.color||Q.color.tertiary,r=e.fontSize||12,i=e.fontWeight||`400`,a=e.color||Q.color.secondary,o=e.fontSize||14,s=e.fontWeight||`900`;return t===`html`?{nameStyle:`font-size:`+_g(r+``)+`px;color:`+_g(n)+`;font-weight:`+_g(i+``),valueStyle:`font-size:`+_g(o+``)+`px;color:`+_g(a)+`;font-weight:`+_g(s+``)}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var Dv=[0,10,20,30],Ov=[``,`
|
|
10
|
+
`,`
|
|
11
|
+
|
|
12
|
+
`,`
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
`];function kv(e,t){return t.type=e,t}function Av(e){return e.type===`section`}function jv(e){return Av(e)?Nv:Pv}function Mv(e){if(Av(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return z(e.blocks,function(e){var n=Mv(e);n>=t&&(t=n+ +(r&&(!n||Av(e)&&!e.noHeader)))}),t}return 0}function Nv(e,t,n,r){var i=t.noHeader,a=Iv(Mv(t)),o=[],s=t.blocks||[];He(!s||V(s)),s=s||[];var c=e.orderMode;if(t.sortBlocks&&c){s=s.slice();var l={valueAsc:`asc`,valueDesc:`desc`};if(q(l,c)){var u=new Wm(l[c],null);s.sort(function(e,t){return u.evaluate(e.sortParam,t.sortParam)})}else c===`seriesDesc`&&s.reverse()}z(s,function(n,i){var s=t.valueFormatter,c=jv(n)(s?I(I({},e),{valueFormatter:s}):e,n,i>0?a.html:0,r);c!=null&&o.push(c)});var d=e.renderMode===`richText`?o.join(a.richText):Lv(r,o.join(``),i?n:a.html);if(i)return d;var f=x_(t.header,`ordinal`,e.useUTC),p=Ev(r,e.renderMode).nameStyle,m=Tv(r);return e.renderMode===`richText`?Bv(e,f,p)+a.richText+d:Lv(r,`<div style="`+p+`;`+m+`;">`+_g(f)+`</div>`+d,n)}function Pv(e,t,n,r){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,c=t.name,l=e.useUTC,u=t.valueFormatter||e.valueFormatter||function(e){return e=V(e)?e:[e],B(e,function(e,t){return x_(e,V(p)?p[t]:p,l)})};if(!(a&&o)){var d=s?``:e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||Q.color.secondary,i),f=a?``:x_(c,`ordinal`,l),p=t.valueType,m=o?[]:u(t.value,t.rawDataIndex),h=!s||!a,g=!s&&a,_=Ev(r,i),v=_.nameStyle,y=_.valueStyle;return i===`richText`?(s?``:d)+(a?``:Bv(e,f,v))+(o?``:Vv(e,m,h,g,y)):Lv(r,(s?``:d)+(a?``:Rv(f,!s,v))+(o?``:zv(m,h,g,y)),n)}}function Fv(e,t,n,r,i,a){if(e)return jv(e)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter},e,0,a)}function Iv(e){return{html:Dv[e],richText:Ov[e]}}function Lv(e,t,n){var r=`<div style="clear:both"></div>`,i=`margin: `+n+`px 0 0`,a=Tv(e);return`<div style="`+i+`;`+a+`;">`+t+r+`</div>`}function Rv(e,t,n){var r=t?`margin-left:2px`:``;return`<span style="`+n+`;`+r+`">`+_g(e)+`</span>`}function zv(e,t,n,r){var i=t?`float:right;margin-left:`+(n?`10px`:`20px`):``;return e=V(e)?e:[e],`<span style="`+i+`;`+r+`">`+B(e,function(e){return _g(e)}).join(` `)+`</span>`}function Bv(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function Vv(e,t,n,r,i){var a=[i],o=r?10:20;return n&&a.push({padding:[0,0,0,o],align:`right`}),e.markupStyleCreator.wrapRichTextStyle(V(t)?t.join(` `):t,a)}function Hv(e,t){var n=e.getData().getItemVisual(t,`style`)[e.visualDrawType];return O_(n)}function Uv(e,t){var n=e.get(`padding`);return n==null?t===`richText`?[8,10]:10:n}var Wv=function(){function e(){this.richTextStyles={},this._nextStyleNameId=fc()}return e.prototype._generateStyleName=function(){return`__EC_aUTo_`+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var r=n===`richText`?this._generateStyleName():null,i=T_({color:t,type:e,renderMode:n,markerId:r});return U(i)?i:(this.richTextStyles[r]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};V(t)?z(t,function(e){return I(n,e)}):I(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,`{`+r+`|`+e+`}`},e}();function Gv(e){var t=e.series,n=e.dataIndex,r=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll(`defaultedTooltip`),o=a.length,s=t.getRawValue(n),c=V(s),l=Hv(t,n),u,d,f,p;if(o>1||c&&!o){var m=Kv(s,t,n,a,l);u=m.inlineValues,d=m.inlineValueTypes,f=m.blocks,p=m.inlineValues[0]}else if(o){var h=i.getDimensionInfo(a[0]);p=u=Mm(i,n,a[0]),d=h.type}else p=u=c?s[0]:s;var g=Bc(t),_=g&&t.name||``,v=i.getName(n),y=r?_:v;return kv(`section`,{header:_,noHeader:r||!g,sortParam:p,blocks:[kv(`nameValue`,{markerType:`item`,markerColor:l,name:y,noName:!Ue(y),value:u,valueType:d,rawDataIndex:i.getRawIndex(n)})].concat(f||[])})}function Kv(e,t,n,r,i){var a=t.getData(),o=Se(e,function(e,t,n){var r=a.getDimensionInfo(n);return e=e||r&&r.tooltip!==!1&&r.displayName!=null},!1),s=[],c=[],l=[];r.length?z(r,function(e){u(Mm(a,n,e),e)}):z(e,u);function u(e,t){var n=a.getDimensionInfo(t);n&&n.otherDims.tooltip!==!1&&(o?l.push(kv(`nameValue`,{markerType:`subItem`,markerColor:i,name:n.displayName,value:e,valueType:n.type})):(s.push(e),c.push(n.type)))}return{inlineValues:s,inlineValueTypes:c,blocks:l}}var qv=Kc();function Jv(e,t){return e.getName(t)||e.getId(t)}var Yv=`__universalTransitionEnabled`,Xv=function(e){T(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=rv({count:$v,reset:ey}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(qv(this).sourceManager=new _v(this)).prepareSource();var r=this.getInitialData(e,n);ny(r,this),this.dataTask.context.data=r,qv(this).dataBeforeProcessed=r,Zv(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=H_(this),r=n?W_(e):{},i=this.subType;q_.hasClass(i)&&(i+=`Series`),F(e,t.getTheme().get(this.subType)),F(e,this.getDefaultOption()),Ec(e,`label`,[`show`]),this.fillDataTextStyle(e.data),n&&U_(e,r,n)},t.prototype.mergeOption=function(e,t){e=F(this.option,e,!0),this.fillDataTextStyle(e.data);var n=H_(this);n&&U_(this.option,e,n);var r=qv(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);ny(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,qv(this).dataBeforeProcessed=i,Zv(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(e){if(e&&!Me(e))for(var t=[`show`],n=0;n<e.length;n++)e[n]&&e[n].label&&Ec(e[n],`label`,t)},t.prototype.getInitialData=function(e,t){},t.prototype.appendData=function(e){this.getRawData().appendData(e.data)},t.prototype.getData=function(e){var t=iy(this);if(t){var n=t.context.data;return e==null||!n.getLinkedData?n:n.getLinkedData(e)}return qv(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var t=iy(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}qv(this).data=e},t.prototype.getEncode=function(){var e=this.get(`encode`,!0);if(e)return K(e)},t.prototype.getSourceManager=function(){return qv(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return qv(this).dataBeforeProcessed},t.prototype.getColorBy=function(){return this.get(`colorBy`)||`series`},t.prototype.isColorBySeries=function(){return this.getColorBy()===`series`},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.indicesOfNearest=function(e,t,n,r){var i=this.getData(),a=this.coordinateSystem,o=a&&a.getAxis(e);if(!a||!o)return[];var s=o.dataToCoord(n);r==null&&(r=1/0);for(var c=[],l=1/0,u=-1,d=0,f=i.getDimensionIndex(t),p=i.getStore(),m=0,h=p.count();m<h;m++){var g=p.get(f,m),_=s-o.dataToCoord(g),v=Math.abs(_);v<=r&&((v<l||v===l&&_>=0&&u<0)&&(l=v,u=_,d=0),_===u&&(c[d++]=m))}return c.length=d,c},t.prototype.formatTooltip=function(e,t,n){return Gv({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(J.node&&!(e&&e.ssr))return!1;var t=this.getShallow(`animation`);return t&&this.getData().count()>this.getShallow(`animationThreshold`)&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var r=this.ecModel,i=X_.prototype.getColorFromPalette.call(this,e,t,n);return i||(i=r.getColorFromPalette(e,t,n)),i},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get(`progressive`)},t.prototype.getProgressiveThreshold=function(){return this.get(`progressiveThreshold`)},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(t);if(r===`series`||n===`all`){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var a=0;a<e.length;a++){var o=e[a],s=Jv(i,o);n[s]=!1,this._selectedDataIndicesMap[s]=-1}}},t.prototype.toggleSelect=function(e,t){for(var n=[],r=0;r<e.length;r++)n[0]=e[r],this.isSelected(e[r],t)?this.unselect(n,t):this.select(n,t)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap===`all`)return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,t=Te(e),n=[],r=0;r<t.length;r++){var i=e[t[r]];i>=0&&n.push(i)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(t);return(n===`all`||n[Jv(r,e)])&&!r.getItemModel(e).get([`select`,`disabled`])},t.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var e=this.option.universalTransition;return e?e===!0||e&&e.enabled:!1},t.prototype._innerSelect=function(e,t){var n,r,i=this.option,a=i.selectedMode,o=t.length;if(a&&o){if(a===`series`)i.selectedMap=`all`;else if(a===`multiple`){W(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,c=0;c<o;c++){var l=t[c],u=Jv(e,l);s[u]=!0,this._selectedDataIndicesMap[u]=e.getRawIndex(l)}}else if(a===`single`||a===!0){var d=t[o-1],u=Jv(e,d);i.selectedMap=(n={},n[u]=!0,n),this._selectedDataIndicesMap=(r={},r[u]=e.getRawIndex(d),r)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var t=[];e.hasItemOption&&e.each(function(n){var r=e.getRawDataItem(n);r&&r.selected&&t.push(n)}),t.length>0&&this._innerSelect(e,t)}},t.registerClass=function(e){return q_.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type=`series.__base__`,e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol=`circle`,e.visualStyleAccessPath=`itemStyle`,e.visualDrawType=`fill`}(),t}(q_);be(Xv,tv),be(Xv,X_),pt(Xv,q_);function Zv(e){var t=e.name;Bc(e)||(e.name=Qv(e)||t)}function Qv(e){var t=e.getRawData(),n=t.mapDimensionsAll(`seriesName`),r=[];return z(n,function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)}),r.join(` `)}function $v(e){return e.model.getRawData().count()}function ey(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),ty}function ty(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function ny(e,t){z(Ze(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,Oe(ry,t))})}function ry(e,t){var n=iy(e);return n&&n.setOutputEnd((t||this).count()),t}function iy(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}var ay=Ko.extend({type:`triangle`,shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r+a),e.lineTo(n-i,r+a),e.closePath()}}),oy={line:Hd,rect:os,roundRect:os,square:os,circle:fd,diamond:Ko.extend({type:`diamond`,shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r),e.lineTo(n,r+a),e.lineTo(n-i,r),e.closePath()}}),pin:Ko.extend({type:`pin`,shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,r=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),c=r-a+o+s,l=Math.asin(s/o),u=Math.cos(l)*o,d=Math.sin(l),f=Math.cos(l),p=o*.6,m=o*.7;e.moveTo(n-u,c+s),e.arc(n,c,o,Math.PI-l,Math.PI*2+l),e.bezierCurveTo(n+u-d*p,c+s+f*p,n,r-m,n,r),e.bezierCurveTo(n,r-m,n-u+d*p,c+s+f*p,n-u,c+s),e.closePath()}}),arrow:Ko.extend({type:`arrow`,shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,r=t.width,i=t.x,a=t.y,o=r/3*2;e.moveTo(i,a),e.lineTo(i+o,a+n),e.lineTo(i,a+n/4*3),e.lineTo(i-o,a+n),e.lineTo(i,a),e.closePath()}}),triangle:ay},sy={line:function(e,t,n,r,i){i.x1=e,i.y1=t+r/2,i.x2=e+n,i.y2=t+r/2},rect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r},roundRect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(e,t,n,r,i){var a=Math.min(n,r);i.x=e,i.y=t,i.width=a,i.height=a},circle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.r=Math.min(n,r)/2},diamond:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r},pin:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},arrow:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},triangle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r}},cy={};z(oy,function(e,t){cy[t]=new e});var ly=Ko.extend({type:`symbol`,shape:{symbolType:``,x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=Xn(e,t,n),i=this.shape;return i&&i.symbolType===`pin`&&t.position===`inside`&&(r.y=n.y+n.height*.4),r},buildPath:function(e,t,n){var r=t.symbolType;if(r!==`none`){var i=cy[r];i||(r=`rect`,i=cy[r]),sy[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function uy(e,t){if(this.type!==`image`){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||Q.color.neutral00,n.lineWidth=2):this.shape.symbolType===`line`?n.stroke=e:n.fill=e,this.markRedraw()}}function dy(e,t,n,r,i,a,o){var s=e.indexOf(`empty`)===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var c=e.indexOf(`image://`)===0?Mf(e.slice(8),new X(t,n,r,i),o?`center`:`cover`):e.indexOf(`path://`)===0?jf(e.slice(7),{},new X(t,n,r,i),o?`center`:`cover`):new ly({shape:{symbolType:e,x:t,y:n,width:r,height:i}});return c.__isEmptyBrush=s,c.setColor=uy,a&&c.setColor(a),c}function fy(e){return V(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function py(e,t){if(e!=null)return V(e)||(e=[e,e]),[Bs(e[0],t[0])||0,Bs(G(e[1],e[0]),t[1])||0]}var my=function(e){T(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.getInitialData=function(e){return Xh(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var t=new ud,n=dy(`line`,0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);t.add(n),n.setStyle(e.lineStyle);var r=this.getData().getVisual(`symbol`),i=this.getData().getVisual(`symbolRotate`),a=r===`none`?`circle`:r,o=e.itemHeight*.8,s=dy(a,(e.itemWidth-o)/2,(e.itemHeight-o)/2,o,o,e.itemStyle.fill);return t.add(s),s.setStyle(e.itemStyle),s.rotation=(e.iconRotate===`inherit`?i:e.iconRotate||0)*Math.PI/180,s.setOrigin([e.itemWidth/2,e.itemHeight/2]),a.indexOf(`empty`)>-1&&(s.style.stroke=s.style.fill,s.style.fill=Q.color.neutral00,s.style.lineWidth=2),t},t.type=`series.line`,t.dependencies=[`grid`,`polar`],t.defaultOption={z:3,coordinateSystem:`cartesian2d`,legendHoverLink:!0,clip:!0,label:{position:`top`},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:`solid`},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:`emptyCircle`,symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:`auto`,connectNulls:!1,sampling:`none`,animationEasing:`linear`,progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:`clone`},triggerLineEvent:!1,triggerEvent:!1},t}(Xv);function hy(e,t){var n=e.mapDimensionsAll(`defaultedLabel`),r=n.length;if(r===1){var i=Mm(e,t,n[0]);return i==null?null:i+``}if(r){for(var a=[],o=0;o<n.length;o++)a.push(Mm(e,t,n[o]));return a.join(` `)}}function gy(e,t){var n=e.mapDimensionsAll(`defaultedLabel`);if(!V(t))return t+``;for(var r=[],i=0;i<n.length;i++){var a=e.getDimensionIndex(n[i]);a>=0&&r.push(t[a])}return r.join(` `)}var _y=function(e){T(t,e);function t(t,n,r,i){var a=e.call(this)||this;return a.updateData(t,n,r,i),a}return t.prototype._createSymbol=function(e,t,n,r,i,a){this.removeAll();var o=dy(e,-1,-1,2,2,null,a);o.attr({z2:G(i,100),culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),o.drift=vy,this._symbolType=e,this.add(o)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){du(this.childAt(0))},t.prototype.downplay=function(){fu(this.childAt(0))},t.prototype.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},t.prototype.setDraggable=function(e,t){var n=this.childAt(0);n.draggable=e,n.cursor=!t&&e?`move`:n.cursor},t.prototype.updateData=function(e,n,r,i){this.silent=!1;var a=e.getItemVisual(n,`symbol`)||`circle`,o=e.hostModel,s=t.getSymbolSize(e,n),c=t.getSymbolZ2(e,n),l=a!==this._symbolType,u=i&&i.disableAnimation;if(l){var d=e.getItemVisual(n,`symbolKeepAspect`);this._createSymbol(a,e,n,s,c,d)}else{var f=this.childAt(0);f.silent=!1;var p={scaleX:s[0]/2,scaleY:s[1]/2};u?f.attr(p):mf(f,p,o,n),bf(f)}if(this._updateCommon(e,n,s,r,i),l){var f=this.childAt(0);if(!u){var p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:f.style.opacity}};f.scaleX=f.scaleY=0,f.style.opacity=0,hf(f,p,o,n)}}u&&this.childAt(0).stopAnimation(`leave`)},t.prototype._updateCommon=function(e,t,n,r,i){var a=this.childAt(0),o=e.hostModel,s,c,l,u,d,f,p,m,h;if(r&&(s=r.emphasisItemStyle,c=r.blurItemStyle,l=r.selectItemStyle,u=r.focus,d=r.blurScope,p=r.labelStatesModels,m=r.hoverScale,h=r.cursorStyle,f=r.emphasisDisabled),!r||e.hasItemOption){var g=r&&r.itemModel?r.itemModel:e.getItemModel(t),_=g.getModel(`emphasis`);s=_.getModel(`itemStyle`).getItemStyle(),l=g.getModel([`select`,`itemStyle`]).getItemStyle(),c=g.getModel([`blur`,`itemStyle`]).getItemStyle(),u=_.get(`focus`),d=_.get(`blurScope`),f=_.get(`disabled`),p=bp(g),m=_.getShallow(`scale`),h=g.getShallow(`cursor`)}var v=e.getItemVisual(t,`symbolRotate`);a.attr(`rotation`,(v||0)*Math.PI/180||0);var y=py(e.getItemVisual(t,`symbolOffset`),n);y&&(a.x=y[0],a.y=y[1]),h&&a.attr(`cursor`,h);var b=e.getItemVisual(t,`style`),x=b.fill;if(a instanceof Qo){var S=a.style;a.useStyle(I({image:S.image,x:S.x,y:S.y,width:S.width,height:S.height},b))}else a.__isEmptyBrush?a.useStyle(I({},b)):a.useStyle(b),a.style.decal=null,a.setColor(x,i&&i.symbolInnerColor),a.style.strokeNoScale=!0;var C=e.getItemVisual(t,`liftZ`),w=this._z2;C==null?w!=null&&(a.z2=w,this._z2=null):w==null&&(this._z2=a.z2,a.z2+=C);var T=i&&i.useNameLabel;yp(a,p,{labelFetcher:o,labelDataIndex:t,defaultText:E,inheritColor:x,defaultOpacity:b.opacity});function E(t){return T?e.getName(t):hy(e,t)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var D=a.ensureState(`emphasis`);D.style=s,a.ensureState(`select`).style=l,a.ensureState(`blur`).style=c;var O=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;D.scaleX=this._sizeX*O,D.scaleY=this._sizeY*O,this.setSymbolScale(1),Au(this,u,d,f)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,n){var r=this.childAt(0),i=Z(this).dataIndex,a=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var o=r.getTextContent();o&&_f(o,{style:{opacity:0}},t,{dataIndex:i,removeOpt:a,cb:function(){r.removeTextContent()}})}else r.removeTextContent();_f(r,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:i,cb:e,removeOpt:a})},t.getSymbolSize=function(e,t){return fy(e.getItemVisual(t,`symbolSize`))},t.getSymbolZ2=function(e,t){return e.getItemVisual(t,`z2`)},t}(ud);function vy(e,t){this.parent.drift(e,t)}function yy(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r&&r.isIgnore&&r.isIgnore(n))&&!(r&&r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&e.getItemVisual(n,`symbol`)!==`none`}function by(e){return e!=null&&!W(e)&&(e={isIgnore:e}),e||{}}function xy(e){var t=e.hostModel,n=t.getModel(`emphasis`);return{emphasisItemStyle:n.getModel(`itemStyle`).getItemStyle(),blurItemStyle:t.getModel([`blur`,`itemStyle`]).getItemStyle(),selectItemStyle:t.getModel([`select`,`itemStyle`]).getItemStyle(),focus:n.get(`focus`),blurScope:n.get(`blurScope`),emphasisDisabled:n.get(`disabled`),hoverScale:n.get(`scale`),labelStatesModels:bp(t),cursorStyle:t.get(`cursor`)}}function Sy(e,t,n,r,i,a,o){var s=new e(t,n,r,i);return s.setPosition(a),t.setItemGraphicEl(n,s),o.add(s),s}var Cy=function(){function e(e){this.group=new ud,this._SymbolCtor=e||_y}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=by(t);var n=this.group,r=e.hostModel,i=this._data,a=this._SymbolCtor,o=t.disableAnimation,s=this._seriesScope=xy(e),c={disableAnimation:o},l=t.getSymbolPoint||function(t){return e.getItemLayout(t)};i||n.removeAll(),e.diff(i).add(function(r){var i=l(r);yy(e,i,r,t)&&Sy(a,e,r,s,c,i,n)}).update(function(u,d){var f=i.getItemGraphicEl(d),p=l(u);if(!yy(e,p,u,t)){n.remove(f);return}var m=e.getItemVisual(u,`symbol`)||`circle`,h=f&&f.getSymbolType&&f.getSymbolType();if(!f||h&&h!==m)n.remove(f),f=new a(e,u,s,c),f.setPosition(p);else{f.updateData(e,u,s,c);var g={x:p[0],y:p[1]};o?f.attr(g):mf(f,g,r)}n.add(f),e.setItemGraphicEl(u,f)}).remove(function(e){var t=i.getItemGraphicEl(e);t&&t.fadeOut(function(){n.remove(t)},r)}).execute(),this._getSymbolPoint=l,this._data=e},e.prototype.updateLayout=function(e){var t=this._data;if(t)for(var n=this,r=t.getStore(),i=0,a=r.count();i<a;i++){var o=t.getItemGraphicEl(i),s=n._getSymbolPoint(i);yy(t,s,i,e)?(o=o||Sy(n._SymbolCtor,t,i,n._seriesScope,{disableAnimation:!0},s,n.group),o.stopAnimation(),o.setPosition(s),o.markRedraw()):o&&(n.group.remove(o),t.setItemGraphicEl(i,null))}},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=xy(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n,r){this._progressiveEls=[],r=by(r);function i(e){e.isGroup||(e.incremental=n,e.ensureState(`emphasis`).hoverLayer=2)}for(var a=e.start;a<e.end;a++){var o=t.getItemLayout(a);if(yy(t,o,a,r)){var s=new this._SymbolCtor(t,a,this._seriesScope);s.traverse(i),s.setPosition(o),this.group.add(s),t.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},e.prototype.eachRendered=function(e){rp(this._progressiveEls||this.group,e)},e.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(e){e.fadeOut(function(){t.remove(e)},n.hostModel)}):t.removeAll()},e}();function wy(e,t,n){var r=e.getBaseAxis(),i=e.getOtherAxis(r),a=Ty(i,n),o=r.dim,s=i.dim,c=t.mapDimension(s),l=t.mapDimension(o),u=+(s===`x`||s===`radius`),d=B(e.dimensions,function(e){return t.mapDimension(e)}),f=!1,p=t.getCalculationInfo(`stackResultDimension`);return Kh(t,d[0])&&(f=!0,d[0]=p),Kh(t,d[1])&&(f=!0,d[1]=p),{dataDimsForPoint:d,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!f,valueDim:c,baseDim:l,baseDataOffset:u,stackedOverDimension:t.getCalculationInfo(`stackedOverDimension`)}}function Ty(e,t){var n=0,r=e.scale.getExtent();return t===`start`?n=r[0]:t===`end`?n=r[1]:Ae(t)&&!isNaN(t)?n=t:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]),n}function Ey(e,t,n,r){var i=NaN;e.stacked&&(i=n.get(n.getCalculationInfo(`stackedOverDimension`),r)),isNaN(i)&&(i=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=n.get(e.baseDim,r),o[1-a]=i,t.dataToPoint(o)}function Dy(e,t){return!isFinite(e)||!isFinite(t)}var Oy=typeof Float32Array<`u`?Float32Array:void 0,ky=typeof Float64Array<`u`?Float64Array:void 0;function Ay(e){return jy({ctor:Oy},e).arr}function jy(e,t){var n=e.arr,r=e.ctor;if(t>ec&&(t=ec),!n||e.typed&&n.length<t){var i=void 0;if(r)try{i=new r(t),e.typed=!0,n&&i.set(n)}catch(e){}if(!i&&(i=[],e.typed=!1,n))for(var a=0,o=n.length;a<o;a++)i[a]=n[a];e.arr=i}return e}function My(e,t){var n=[];return t.diff(e).add(function(e){n.push({cmd:`+`,idx:e})}).update(function(e,t){n.push({cmd:`=`,idx:t,idx1:e})}).remove(function(e){n.push({cmd:`-`,idx:e})}).execute(),n}function Ny(e,t,n,r,i,a,o,s){for(var c=My(e,t),l=[],u=[],d=[],f=[],p=[],m=[],h=[],g=wy(i,t,o),_=e.getLayout(`points`)||[],v=t.getLayout(`points`)||[],y=0;y<c.length;y++){var b=c[y],x=!0,S=void 0,C=void 0;switch(b.cmd){case`=`:S=b.idx*2,C=b.idx1*2;var w=_[S],T=_[S+1],E=v[C],D=v[C+1];(isNaN(w)||isNaN(T))&&(w=E,T=D),l.push(w,T),u.push(E,D),d.push(n[S],n[S+1]),f.push(r[C],r[C+1]),h.push(t.getRawIndex(b.idx1));break;case`+`:var O=b.idx,k=g.dataDimsForPoint,A=i.dataToPoint([t.get(k[0],O),t.get(k[1],O)]);C=O*2,l.push(A[0],A[1]),u.push(v[C],v[C+1]);var j=Ey(g,i,t,O);d.push(j[0],j[1]),f.push(r[C],r[C+1]),h.push(t.getRawIndex(O));break;case`-`:x=!1}x&&(p.push(b),m.push(m.length))}m.sort(function(e,t){return h[e]-h[t]});for(var M=l.length,ee=Ay(M),te=Ay(M),ne=Ay(M),re=Ay(M),ie=[],y=0;y<m.length;y++){var ae=m[y],oe=y*2,se=ae*2;ee[oe]=l[se],ee[oe+1]=l[se+1],te[oe]=u[se],te[oe+1]=u[se+1],ne[oe]=d[se],ne[oe+1]=d[se+1],re[oe]=f[se],re[oe+1]=f[se+1],ie[y]=p[ae]}return{current:ee,next:te,stackedOnCurrent:ne,stackedOnNext:re,status:ie}}var Py=Math.min,Fy=Math.max;function Iy(e,t,n,r,i,a,o,s,c){for(var l,u,d,f,p,m,h=n,g=0;g<r;g++){var _=t[h*2],v=t[h*2+1];if(h>=i||h<0)break;if(Dy(_,v)){if(c){h+=a;continue}break}if(h===n)e[a>0?`moveTo`:`lineTo`](_,v),d=_,f=v;else{var y=_-l,b=v-u;if(y*y+b*b<.5){h+=a;continue}if(o>0){for(var x=h+a,S=t[x*2],C=t[x*2+1];S===_&&C===v&&g<r;)g++,x+=a,h+=a,S=t[x*2],C=t[x*2+1],_=t[h*2],v=t[h*2+1],y=_-l,b=v-u;var w=g+1;if(c)for(;Dy(S,C)&&w<r;)w++,x+=a,S=t[x*2],C=t[x*2+1];var T=.5,E=0,D=0,O=void 0,k=void 0;if(w>=r||Dy(S,C))p=_,m=v;else{E=S-l,D=C-u;var A=_-l,j=S-_,M=v-u,ee=C-v,te=void 0,ne=void 0;if(s===`x`){te=Math.abs(A),ne=Math.abs(j);var re=E>0?1:-1;p=_-re*te*o,m=v,O=_+re*ne*o,k=v}else if(s===`y`){te=Math.abs(M),ne=Math.abs(ee);var ie=D>0?1:-1;p=_,m=v-ie*te*o,O=_,k=v+ie*ne*o}else te=Math.sqrt(A*A+M*M),ne=Math.sqrt(j*j+ee*ee),T=ne/(ne+te),p=_-E*o*(1-T),m=v-D*o*(1-T),O=_+E*o*T,k=v+D*o*T,O=Py(O,Fy(S,_)),k=Py(k,Fy(C,v)),O=Fy(O,Py(S,_)),k=Fy(k,Py(C,v)),E=O-_,D=k-v,p=_-E*te/ne,m=v-D*te/ne,p=Py(p,Fy(l,_)),m=Py(m,Fy(u,v)),p=Fy(p,Py(l,_)),m=Fy(m,Py(u,v)),E=_-p,D=v-m,O=_+E*ne/te,k=v+D*ne/te}e.bezierCurveTo(d,f,p,m,_,v),d=O,f=k}else e.lineTo(_,v)}l=_,u=v,h+=a}return g}var Ly=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),Ry=function(e){T(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`ec-polyline`,n}return t.prototype.getDefaultStyle=function(){return{stroke:Q.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new Ly},t.prototype.buildPath=function(e,t){var n=t.points,r=0,i=n.length/2;if(t.connectNulls){for(;i>0&&Dy(n[i*2-2],n[i*2-1]);i--);for(;r<i&&Dy(n[r*2],n[r*2+1]);r++);}for(;r<i;)r+=Iy(e,n,r,i,i,1,t.smooth,t.smoothMonotone,t.connectNulls)+1},t.prototype.getPointOn=function(e,t){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n=this.path.data,r=xo.CMD,i,a,o=t===`x`,s=[],c=0;c<n.length;){var l=n[c++],u=void 0,d=void 0,f=void 0,p=void 0,m=void 0,h=void 0,g=void 0;switch(l){case r.M:i=n[c++],a=n[c++];break;case r.L:if(u=n[c++],d=n[c++],g=o?(e-i)/(u-i):(e-a)/(d-a),g<=1&&g>=0){var _=o?(d-a)*g+a:(u-i)*g+i;return o?[e,_]:[_,e]}i=u,a=d;break;case r.C:u=n[c++],d=n[c++],f=n[c++],p=n[c++],m=n[c++],h=n[c++];var v=o?Kr(i,u,f,m,e,s):Kr(a,d,p,h,e,s);if(v>0)for(var y=0;y<v;y++){var b=s[y];if(b<=1&&b>=0){var _=o?Wr(a,d,p,h,b):Wr(i,u,f,m,b);return o?[e,_]:[_,e]}}i=m,a=h}}},t}(Ko),zy=function(e){T(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Ly),By=function(e){T(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`ec-polygon`,n}return t.prototype.getDefaultShape=function(){return new zy},t.prototype.buildPath=function(e,t){var n=t.points,r=t.stackedOnPoints,i=0,a=n.length/2,o=t.smoothMonotone;if(t.connectNulls){for(;a>0&&Dy(n[a*2-2],n[a*2-1]);a--);for(;i<a&&Dy(n[i*2],n[i*2+1]);i++);}for(;i<a;){var s=Iy(e,n,i,a,a,1,t.smooth,o,t.connectNulls);Iy(e,r,i+s-1,s,a,-1,t.stackedOnSmooth,o,t.connectNulls),i+=s+1,e.closePath()}},t}(Ko);function Vy(){var e=Kc();return function(t){var n=e(t),r=t.pipelineContext,i=!!n.large,a=!!n.progressiveRender,o=n.large=!!(r&&r.large),s=n.progressiveRender=!!(r&&r.progressiveRender);return(i!==o||a!==s)&&`reset`}}var Hy=Kc(),Uy=Vy(),Wy=function(){function e(){this.group=new ud,this.uid=eg(`viewChart`),this.renderTask=rv({plan:qy,reset:Jy}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.highlight=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&Ky(i,r,`emphasis`)},e.prototype.downplay=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&Ky(i,r,`normal`)},e.prototype.remove=function(e,t){this.group.removeAll()},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateVisual=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.eachRendered=function(e){rp(this.group,e)},e.markUpdateMethod=function(e,t){Hy(e).updateMethod=t},e.protoInitialize=function(){var t=e.prototype;t.type=`chart`}(),e}();function Gy(e,t,n){e&&Iu(e)&&(t===`emphasis`?du:fu)(e,n)}function Ky(e,t,n){var r=Gc(e,t),i=t&&t.highlightKey!=null?Lu(t.highlightKey):null;r==null?e.eachItemGraphicEl(function(e){Gy(e,n,i)}):z(Tc(r),function(t){Gy(e.getItemGraphicEl(t),n,i)})}dt(Wy,[`dispose`]),vt(Wy);function qy(e){return Uy(e.model)}function Jy(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&Hy(i).updateMethod,c=a?`incrementalPrepareRender`:s&&o[s]?s:`render`;return c!==`render`&&o[c](t,n,r,i),Yy[c]}var Yy={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};function Xy(e,t,n,r,i){var a=e.getArea(),o=a.x,s=a.y,c=a.width,l=a.height,u=n.get([`lineStyle`,`width`])||0;o-=u/2,s-=u/2,c+=u,l+=u,c=Math.ceil(c),o!==Math.floor(o)&&(o=Math.floor(o),c++);var d=new os({shape:{x:o,y:s,width:c,height:l}});if(t){var f=e.getBaseAxis(),p=f.isHorizontal(),m=f.inverse;p?(m&&(d.shape.x+=c),d.shape.width=0):(m||(d.shape.y+=l),d.shape.height=0);var h=H(i)?function(e){i(e,d)}:null;hf(d,{shape:{width:c,height:l,x:o,y:s}},n,null,r,h)}return d}function Zy(e,t,n){var r=e.getArea(),i=Ws(r.r0,1),a=Ws(r.r,1),o=new jd({shape:{cx:Ws(e.cx,1),cy:Ws(e.cy,1),r0:i,r:a,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});return t&&(e.getBaseAxis().dim===`angle`?o.shape.endAngle=r.startAngle:o.shape.r=i,hf(o,{shape:{endAngle:r.endAngle,r:a}},n)),o}function Qy(e,t,n,r,i){return e?e.type===`polar`?Zy(e,t,n):e.type===`cartesian2d`?Xy(e,t,n,r,i):null:null}function $y(e,t){return e.type===t}function eb(e,t,n,r){return e&&(e.legacy||e.legacy!==!1&&!n&&!r&&t!==`tspan`&&(t===`text`||q(e,`text`)))}function tb(e,t,n){var r=e,i,a,o;if(t===`text`)o=r;else{o={},q(r,`text`)&&(o.text=r.text),q(r,`rich`)&&(o.rich=r.rich),q(r,`textFill`)&&(o.fill=r.textFill),q(r,`textStroke`)&&(o.stroke=r.textStroke),q(r,`fontFamily`)&&(o.fontFamily=r.fontFamily),q(r,`fontSize`)&&(o.fontSize=r.fontSize),q(r,`fontStyle`)&&(o.fontStyle=r.fontStyle),q(r,`fontWeight`)&&(o.fontWeight=r.fontWeight),a={type:`text`,style:o,silent:!0},i={};var s=q(r,`textPosition`);n?i.position=s?r.textPosition:`inside`:s&&(i.position=r.textPosition),q(r,`textPosition`)&&(i.position=r.textPosition),q(r,`textOffset`)&&(i.offset=r.textOffset),q(r,`textRotation`)&&(i.rotation=r.textRotation),q(r,`textDistance`)&&(i.distance=r.textDistance)}return nb(o,e),z(o.rich,function(e){nb(e,e)}),{textConfig:i,textContent:a}}function nb(e,t){t&&(t.font=t.textFont||t.font,q(t,`textStrokeWidth`)&&(e.lineWidth=t.textStrokeWidth),q(t,`textAlign`)&&(e.align=t.textAlign),q(t,`textVerticalAlign`)&&(e.verticalAlign=t.textVerticalAlign),q(t,`textLineHeight`)&&(e.lineHeight=t.textLineHeight),q(t,`textWidth`)&&(e.width=t.textWidth),q(t,`textHeight`)&&(e.height=t.textHeight),q(t,`textBackgroundColor`)&&(e.backgroundColor=t.textBackgroundColor),q(t,`textPadding`)&&(e.padding=t.textPadding),q(t,`textBorderColor`)&&(e.borderColor=t.textBorderColor),q(t,`textBorderWidth`)&&(e.borderWidth=t.textBorderWidth),q(t,`textBorderRadius`)&&(e.borderRadius=t.textBorderRadius),q(t,`textBoxShadowColor`)&&(e.shadowColor=t.textBoxShadowColor),q(t,`textBoxShadowBlur`)&&(e.shadowBlur=t.textBoxShadowBlur),q(t,`textBoxShadowOffsetX`)&&(e.shadowOffsetX=t.textBoxShadowOffsetX),q(t,`textBoxShadowOffsetY`)&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}var rb=function(){function e(){}return e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();vt(rb);var ib=0,ab=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++ib,this._onCollect=e.onCollect}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&B(r,ob);return new e({categories:i,needCollect:!i,deduplication:n.dedplication!==!1})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!U(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,this._onCollect&&this._onCollect(e,t),t;var r=this._getOrCreateMap();return t=r.get(e),t==null&&(n?(t=this.categories.length,this.categories[t]=e,r.set(e,t),this._onCollect&&this._onCollect(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||(this._map=K(this.categories))},e}();function ob(e){return W(e)&&e.value!=null?e.value:e+``}var sb=Te({needTransform:1,normalize:1,scale:1,transformIn:1,transformOut:1,contain:1,getExtent:1,getExtentUnsafe:1,setExtent:1,setExtent2:1,getFilter:1,sanitize:1,getDefaultStartValue:1,freeze:1});function cb(e,t,n){var r;e=e||{};var i=jg();if(i){var a=i.createBreakScaleMapper(t,n);a.hasBreaks()&&(z(sb,function(t){a[t]&&(e[t]=De(a[t],a))}),r=a)}return r==null&&hb(e,n),{brk:r,mapper:e}}function lb(e,t){z(sb,function(n){e[n]=t[n]})}function ub(e,t){e.freeze=et}function db(e){return e.getExtentUnsafe(0,2)}function fb(e,t){return e.getExtentUnsafe(1,t)||e.getExtentUnsafe(0,t)}function pb(e){var t=fb(e,3);return t[1]-t[0]}function mb(e){var t=e.getExtentUnsafe(0,3);return t[1]-t[0]}function hb(e,t){var n=e||{},r=[];return n._extents=r,r[0]=t?t.slice():il(),I(n,gb),n}var gb={needTransform:function(){return!1},normalize:function(e){var t=this._extents[1]||this._extents[0];return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])},scale:function(e){var t=this._extents[1]||this._extents[0];return e*(t[1]-t[0])+t[0]},transformIn:function(e){return e},transformOut:function(e){return e},contain:function(e){var t=fb(this,null);return e>=t[0]&&e<=t[1]},getExtent:function(){return this._extents[0].slice()},getExtentUnsafe:function(e){return this._extents[e]},setExtent:function(e,t){_b(this._extents,0,e,t)},setExtent2:function(e,t,n){var r=this._extents;r[e]||(r[e]=r[0].slice()),_b(r,e,t,n)},freeze:function(){}};function _b(e,t,n,r){ul(n,r)&&(e[t][0]=n,e[t][1]=r)}function vb(e){return yb(e)||xb(e)}function yb(e){return e.type===`interval`}function bb(e){return e.type===`time`}function xb(e){return e.type===`log`}function Sb(e){return e.type===`ordinal`}function Cb(e){var t=oc(e),n=Ps(10,t),r=js(e/n);return r?r===2?r=3:r===3?r=5:r*=2:r=1,Ws(r*n,-t)}function wb(e){return qs(e)+2}function Tb(e,t){return Fs(e)/Fs(t)}function Eb(e,t,n){var r=n&&n.lookup;if(r){for(var i=0;i<r.from.length;i++)if(e===r.from[i])return r.to[i]}return Ps(t,e)}function Db(e,t,n){var r=e.slice();if(r[0]===r[1]){var i=n&&n.ctnShp;if(r[0]!==0){var a=As(r[0]);t[1]||(r[1]+=a/2),r[0]-=a/2}else i&&(r[0]=-1),r[1]=1}return(!ll(r[0])||!ll(r[1]))&&(r[0]=0,r[1]=1),r[1]<r[0]&&r.reverse(),r}function Ob(e,t){return[e[0]!==t[0],e[1]!==t[1]]}function kb(e,t){return e=e||t,js(ks(e,1))}function Ab(e,t,n){var r=db(e),i=r[0],a=e.count(),o=Math.max((t||0)+1,1);i!==0&&o>1&&a/o>2&&(i=Math.round(Math.ceil(i/o)*o)),i!==r[0]&&c(r[0],!0,!0);for(var s=i;s<=r[1];s+=o)c(s,!1,s===r[0]||s===r[1]);s-o!==r[1]&&c(r[1],!0,!0);function c(e,t,r){n({value:e,offInterval:t},r)}}var jb=function(e){T(t,e);function t(n){var r=e.call(this)||this;r.type=`ordinal`,r.parse=t.parse,lb(r,t.decoratedMethods);var i=n.ordinalMeta;i||(i=new ab({})),V(i)&&(i=new ab({categories:B(i,function(e){return W(e)?e.value:e})})),r._ordinalMeta=i;var a=cb(null,null,n.extent||[0,i.categories.length-1]);return r._mapper=a.mapper,ub(r,a.mapper),r}return t.parse=function(e){return e==null?e=NaN:U(e)?(e=this._ordinalMeta.getOrdinal(e),e==null&&(e=NaN)):e=js(e),e},t.prototype.getTicks=function(){var e=[];return Ab(this,0,function(t){e.push(t)}),e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,a=this._ordinalMeta.categories.length,o=Os(a,t.length);i<o;++i){var s=n[i]=t[i];r[s]=i}for(var c=0;i<a;++i){for(;r[c]!=null;)c++;n[i]=c,r[c]=i}},t.prototype._getTickNumber=function(e){var t=this._ticksByOrdinalNumber;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getRawOrdinalNumber=function(e){var t=this._ordinalNumbersByTick;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var t=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[t];return n==null?``:n+``}},t.prototype.count=function(){var e=db(this._mapper);return e[1]-e[0]+1},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.type=`ordinal`,t.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(e){return this._mapper.contain(this._getTickNumber(e))&&e>=0&&e<this._ordinalMeta.categories.length},normalize:function(e){return this._mapper.normalize(this._getTickNumber(e))},scale:function(e){return this.getRawOrdinalNumber(js(this._mapper.scale(e)))},transformIn:function(e,t){return this._mapper.transformIn(this._getTickNumber(e),t)},transformOut:function(e,t){return this.getRawOrdinalNumber(this._mapper.transformOut(e,t))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(e,t){return this._mapper.getExtentUnsafe(e,t)},setExtent:function(e,t){return this._mapper.setExtent(e,t)},setExtent2:function(e,t,n){return this._mapper.setExtent2(e,t,n)}},t}(rb);rb.registerClass(jb);function Mb(e,t,n,r){for(var i=e.getTicks({expandToNicedExtent:!0}),a=[],o=e.getExtent(),s=1;s<i.length;s++){var c=i[s],l=i[s-1];if(!(l.break||c.break)){for(var u=0,d=[],f=(c.value-l.value)/t,p=wb(f);u<t-1;){var m=Ws(l.value+(u+1)*f,p);m>o[0]&&m<o[1]&&d.push(m),u++}var h=jg();h&&h.pruneTicksByBreak(`auto`,d,n,function(e){return e},r,o),a.push(d)}}return a}var Nb=function(e){T(t,e);function t(n){var r=e.call(this)||this;return r.type=`interval`,r.parse=t.parse,n=n||{},r.brk=cb(r,Mg(r,n),null).brk,r._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},r}return t.parse=function(e){return e==null||e===``?NaN:Number(e)},t.prototype.getConfig=function(){return P(this._cfg)},t.prototype.setConfig=function(e){var t=db(this);this._cfg=e=P(e),e.niceExtent==null&&(e.niceExtent=t.slice()),e.intervalPrecision==null&&(e.intervalPrecision=wb(e.interval))},t.prototype.getTicks=function(e){e=e||{};var t=this._cfg,n=t.interval,r=db(this),i=t.niceExtent,a=t.intervalPrecision,o=jg(),s=this.brk,c=o&&s,l=[];if(!n)return l;if(e.breakTicks===`only_break`&&c)return o.addBreaksToTicks(l,s.breaks,r),l;var u=3e3;r[0]<i[0]&&l.push({value:e.expandToNicedExtent?Ws(i[0]-n,a):r[0]});for(var d=function(e,t){return js((t-e)/n)},f=t.intervalCount,p=i[0],m=0;;m++){if(f==null){if(p>i[1]||!isFinite(p)||!isFinite(i[1]))break}else{if(m>f)break;p=Os(p,i[1]),m===f&&(p=i[1])}if(l.push({value:p}),p=Ws(p+n,a),s){var h=s.calcNiceTickMultiple(p,d);h>=0&&(p=Ws(p+h*n,a))}if(l.length>0&&p===l[l.length-1].value)break;if(l.length>u)return[]}var g=l.length?l[l.length-1].value:i[1];return r[1]>g&&l.push({value:e.expandToNicedExtent?Ws(g+n,a):r[1]}),c&&o.pruneTicksByBreak(e.pruneByBreak,l,s.breaks,function(e){return e.value},t.interval,r),c&&e.breakTicks!==`none`&&o.addBreaksToTicks(l,s.breaks,r),l},t.prototype.getMinorTicks=function(e){return Mb(this,e,Ng(this),this._cfg.interval)},t.prototype.getLabel=function(e,t){if(e==null)return``;var n=t&&t.precision;return n==null?n=qs(e.value)||0:n===`auto`&&(n=this._cfg.intervalPrecision),v_(Ws(e.value,n,!0))},t.type=`interval`,t}(rb);rb.registerClass(Nb);var Pb=function(e,t,n,r){for(;n<r;){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n},Fb=function(e){T(t,e);function t(n){var r=e.call(this)||this;return r.type=`time`,r.parse=t.parse,r._locale=n.locale,r._useUTC=n.useUTC,r._interval=0,r.brk=cb(r,Mg(r,n),null).brk,r}return t.prototype.getLabel=function(e){return $g(e.value,Wg[Qg(Xg(this._minLevelUnit))]||Wg.second,this._useUTC,this._locale)},t.prototype.getFormattedLabel=function(e,t,n){return e_(e,t,n,this._locale,this._useUTC)},t.prototype.getTicks=function(e){e=e||{};var t=this._interval,n=db(this),r=jg(),i=this.brk,a=r&&i,o=[];if(!t)return o;var s=this._useUTC;if(a&&e.breakTicks===`only_break`)return jg().addBreaksToTicks(o,i.breaks,n),o;o=Gb(this._minLevelUnit,this._approxInterval,s,n,mb(this),i);var c=Gg.length-1,l=0;return z(o,function(e){e.time&&(c=Math.min(c,R(Gg,e.time.upperTimeUnit)),l=Math.max(l,e.time.level))}),a&&jg().pruneTicksByBreak(e.pruneByBreak,o,i.breaks,function(e){return e.value},this._approxInterval,n),a&&e.breakTicks!==`none`&&jg().addBreaksToTicks(o,i.breaks,n,function(e){for(var t=Math.max(R(Gg,t_(e.vmin,s)),R(Gg,t_(e.vmax,s))),n=0,r=0;r<Gg.length;r++)if(!Lb(Gg[r],e.vmin,e.vmax,s)){n=r;break}var i=Math.min(n,c);return{level:l,lowerTimeUnit:Gg[Math.max(i,t)],upperTimeUnit:Gg[i]}}),o},t.prototype.getMinorTicks=function(e){return Mb(this,e,Ng(this),this._interval)},t.prototype.setTimeInterval=function(e){this._interval=e.interval,this._approxInterval=e.approxInterval,this._minLevelUnit=e.minLevelUnit},t.parse=function(e){return Ae(e)?Math.round(e):+ic(e)},t.type=`time`,t}(rb),Ib=[[`second`,Fg],[`minute`,Ig],[`hour`,Lg],[`quarter-day`,Lg*6],[`half-day`,Lg*12],[`day`,Rg*1.2],[`half-week`,Rg*3.5],[`week`,Rg*7],[`month`,Rg*31],[`quarter`,Rg*95],[`half-year`,zg/2],[`year`,zg]];function Lb(e,t,n,r){return n_(new Date(t),e,r).getTime()===n_(new Date(n),e,r).getTime()}function Rb(e,t){return e/=Rg,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function zb(e){var t=30*Rg;return e/=t,e>6?6:e>3?3:e>2?2:1}function Bb(e){return e/=Lg,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function Vb(e,t){return e/=t?Ig:Fg,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function Hb(e){return ks(sc(e,!0),1)}function Ub(e,t,n){var r=Math.max(0,R(Gg,t)-1);return n_(new Date(e),Gg[r],n).getTime()}function Wb(e,t){var n=new Date(0);n[e](1);var r=n.getTime();n[e](1+t);var i=n.getTime()-r;return function(e,t){return Math.max(0,Math.round((t-e)/i))}}function Gb(e,t,n,r,i,a){var o=Kg,s=0;function c(e,t,n,i,o,c,l){for(var u=Wb(o,e),d=t,f=new Date(d);d<n&&d<=r[1]&&(l.push({value:d}),!(s++>3e3));)if(f[o](f[i]()+e),d=f.getTime(),a){var p=a.calcNiceTickMultiple(d,u);p>0&&(f[o](f[i]()+p*e),d=f.getTime())}l.push({value:d,notAdd:d>r[1]})}function l(e,i,a){var o=[],s=!i.length;if(!Lb(Xg(e),r[0],r[1],n)){s&&(i=[{value:Ub(r[0],e,n)},{value:r[1]}]);for(var l=0;l<i.length-1;l++){var u=i[l].value,d=i[l+1].value;if(u!==d){var f=void 0,p=void 0,m=void 0,h=!1;switch(e){case`year`:f=Math.max(1,Math.round(t/Rg/365)),p=r_(n),m=u_(n);break;case`half-year`:case`quarter`:case`month`:f=zb(t),p=i_(n),m=d_(n);break;case`week`:case`half-week`:case`day`:f=Rb(t,31),p=a_(n),m=f_(n),h=!0;break;case`half-day`:case`quarter-day`:case`hour`:f=Bb(t),p=o_(n),m=p_(n);break;case`minute`:f=Vb(t,!0),p=s_(n),m=m_(n);break;case`second`:f=Vb(t,!1),p=c_(n),m=h_(n);break;case`millisecond`:f=Hb(t),p=l_(n),m=g_(n)}d>=r[0]&&u<=r[1]&&c(f,u,d,p,m,h,o),e===`year`&&a.length>1&&l===0&&a.unshift({value:a[0].value-f})}}for(var l=0;l<o.length;l++)a.push(o[l])}}for(var u=[],d=[],f=0,p=0,m=0;m<o.length;++m){var h=Xg(o[m]);if(Zg(o[m])&&(l(o[m],u[u.length-1]||[],d),h!==(o[m+1]?Xg(o[m+1]):null))){if(d.length){p=f,d.sort(function(e,t){return e.value-t.value});for(var g=[],_=0;_<d.length;++_){var v=d[_].value;(_===0||d[_-1].value!==v)&&(g.push(d[_]),v>=r[0]&&v<=r[1]&&f++)}var y=i/t;if(f>y*1.5&&p>y/1.5||(u.push(g),f>y||e===o[m]))break}d=[]}}for(var b=Ce(B(u,function(e){return Ce(e,function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd})}),function(e){return e.length>0}),x=b.length-1,S=[],m=0;m<b.length;++m)for(var C=b[m],w=0;w<C.length;++w){var T=t_(C[w].value,n);S.push({value:C[w].value,time:{level:x-m,upperTimeUnit:T,lowerTimeUnit:T}})}hl(S,gl,null),S.sort(function(e,t){return e.value-t.value});var E=S[0],D=S[S.length-1],O=t_(r[0],n),k=t_(r[1],n);return(!E||E.value>r[0])&&S.unshift({value:r[0],time:{level:0,upperTimeUnit:O,lowerTimeUnit:O},notNice:!0}),(!D||D.value<r[1])&&S.push({value:r[1],time:{level:0,upperTimeUnit:k,lowerTimeUnit:k},notNice:!0}),S}var Kb=function(e,t){var n=e.getExtent();if(n[0]===n[1]&&(n[0]-=Rg,n[1]+=Rg),n[1]===-1/0&&n[0]===1/0){var r=new Date;n[1]=+new Date(r.getFullYear(),r.getMonth(),r.getDate()),n[0]=n[1]-Rg}e.setExtent(n[0],n[1]);var i=kb(t.splitNumber,10),a=mb(e)/i,o=t.minInterval,s=t.maxInterval;o!=null&&a<o&&(a=o),s!=null&&a>s&&(a=s);var c=Ib.length,l=Math.min(Pb(Ib,a,0,c),c-1),u=Ib[l][1],d=Ib[Math.max(l-1,0)][0];e.setTimeInterval({approxInterval:a,interval:u,minLevelUnit:d})};rb.registerClass(Fb);var qb=0,Jb=1,Yb=2,Xb=function(e){T(t,e);function t(n){var r=e.call(this)||this;r.type=`log`,r.parse=Nb.parse,r.base=n.logBase||10;var i=[],a=[],o=r._lookup={from:i,to:a};i[qb]=i[Jb]=a[qb]=a[Jb]=NaN,lb(r,t.mapperMethods);var s=jg(),c=n.breakOption,l={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(c,r,{noNegative:!0},Yb,l),r.powStub=new Nb({breakParsed:l.original}),r.intervalStub=new Nb({breakParsed:l.transformed}),ub(r,r.intervalStub),r}return t.prototype.getTicks=function(e){var t=this.base,n=this.powStub,r=jg(),i=this.intervalStub,a={lookup:{from:i.getExtent(),to:n.getExtent()}};return B(i.getTicks(e||{}),function(e){var i=e.value,o=Eb(i,t,a),s;if(r){var c=r.getTicksBreakOutwardTransform(this,e,Ng(n),this._lookup);c&&(s=c.vBreak,o=c.tickVal)}return{value:o,break:s}},this)},t.prototype.getMinorTicks=function(e){return Mb(this,e,Ng(this.powStub),this.intervalStub.getConfig().interval)},t.prototype.getLabel=function(e,t){return this.intervalStub.getLabel(e,t)},t.type=`log`,t.mapperMethods={needTransform:function(){return!0},normalize:function(e){return this.intervalStub.normalize(Tb(e,this.base))},scale:function(e){return Eb(this.intervalStub.scale(e),this.base,null)},transformIn:function(e,t){return e=Tb(e,this.base),t&&t.depth===2?e:this.intervalStub.transformIn(e,t)},transformOut:function(e,t){var n=t?t.depth:null;return Zb.depth=n,Qb.lookup=this._lookup,Eb(n===2?e:this.intervalStub.transformOut(e,Zb),this.base,Qb)},contain:function(e){return this.powStub.contain(e)},setExtent:function(e,t){this.setExtent2(0,e,t)},setExtent2:function(e,t,n){if(!(!ul(t,n)||t<=0||n<=0)){var r=$b,i=$b;if(e===0){var a=this._lookup;r=a.to,i=a.from}this.powStub.setExtent2(e,r[qb]=t,r[Jb]=n);var o=this.base;this.intervalStub.setExtent2(e,i[qb]=Tb(t,o),i[Jb]=Tb(n,o))}},getFilter:function(){return{g:0}},sanitize:function(e,t){return ul(t[0],t[1])&&hc(e)&&e<=0&&(e=t[0]),e},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(e,t){return t===null?this.powStub.getExtentUnsafe(e,null):this.intervalStub.getExtentUnsafe(e,t)}},t}(rb);rb.registerClass(Xb);var Zb={},Qb={},$b=[],ex={value:1,category:1,time:1,log:1},tx=Kc();function nx(e){var t=e.get(`type`);return(t==null||!q(ex,t)&&!rb.getClass(t))&&(t=`value`),t}function rx(e,t,n){var r=jg(),i;switch(r&&(i=mx(e,t,n)),t){case`category`:return new jb({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:il()});case`time`:return new Fb({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get(`useUTC`),breakOption:i});case`log`:return new Xb({logBase:e.get(`logBase`),breakOption:i});case`value`:return new Nb({breakOption:i});default:return new((rb.getClass(t))||Nb)({})}}function ix(e,t,n){var r=n?fb(e,null):e.getExtentUnsafe(0,null),i=r[0],a=r[1];return ul(i,a)?i===t||a===t?2:i<t&&a>t?1:3:3}function ax(e){tx(e).noOnMyZero=!0}function ox(e){return tx(e).noOnMyZero}function sx(e){var t=e.getLabelModel().get(`formatter`);if(e.type===`time`){var n=qg(t);return function(t,r){return e.scale.getFormattedLabel(t,r,n)}}if(U(t))return function(n){var r=e.scale.getLabel(n);return t.replace(`{value}`,r==null?``:r)};if(H(t)){if(e.type===`category`)return function(n,r){return t(cx(e,n),n.value-e.scale.getExtent()[0],null)};var r=jg();return function(n,i){var a=null;return r&&(a=r.makeAxisLabelFormatterParamBreak(a,n.break)),t(cx(e,n),i,a)}}return function(t){return e.scale.getLabel(t)}}function cx(e,t){var n=e.scale;return Sb(n)?n.getLabel(t):t.value}function lx(e){var t=e.get(`interval`);return t==null?`auto`:t}function ux(e){return e.type===`category`&&lx(e.getLabelModel())===0}function dx(e,t){var n={};return z(e.mapDimensionsAll(t),function(t){n[qh(e,t)]=!0}),Te(n)}function fx(e){return e===`middle`||e===`center`}function px(e){return e.getShallow(`show`)}function mx(e,t,n){var r=e.get(`breaks`,!0);if(r!=null)return!jg()||!n||!hx(t)?void 0:r}function hx(e){return e!==`category`}function gx(e,t,n,r,i,a){var o=xb(e),s=o?e.intervalStub:e;if(s.setExtent(r[0],r[1]),o){var c=e.powStub,l={depth:2},u=e.transformOut(r[0],l),d=e.transformOut(r[1],l),f=Ob(n,r);t[0]&&!f[0]&&(u=i[0]),t[1]&&!f[1]&&(d=i[1]),c.setExtent(u,d)}s.setConfig(a)}function _x(e,t){return Sb(e)?e.getRawOrdinalNumber(t.value):t.value}function vx(e,t){return Sb(e)&&!!t.get(`boundaryGap`)}function yx(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function bx(e){for(var t=il(),n=il(),r=0;r<e.length;){var i=e[r++],a=e[r++];Dy(i,a)||(al(t,i),al(n,a))}return[t,n]}function xx(e,t){var n=bx(e),r=n[0],i=n[1],a=bx(t),o=a[0],s=a[1];return Math.max(Math.abs(r[0]-o[0]),Math.abs(i[0]-s[0]),Math.abs(r[1]-o[1]),Math.abs(i[1]-s[1]))}function Sx(e){return Ae(e)?e:e?.5:0}function Cx(e,t,n){if(n.valueDim==null)return[];for(var r=t.count(),i=Ay(r*2),a=0;a<r;a++){var o=Ey(n,e,t,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function Tx(e,t,n,r,i){var a=n.getBaseAxis(),o=a.dim===`x`||a.dim===`radius`?0:1,s=[],c=0,l=[],u=[],d=[],f=[];if(i){for(c=0;c<e.length;c+=2){var p=t||e;Dy(p[c],p[c+1])||f.push(e[c],e[c+1])}e=f}for(c=0;c<e.length-2;c+=2)switch(d[0]=e[c+2],d[1]=e[c+3],u[0]=e[c],u[1]=e[c+1],s.push(u[0],u[1]),r){case`end`:l[o]=d[o],l[1-o]=u[1-o],s.push(l[0],l[1]);break;case`middle`:var m=(u[o]+d[o])/2,h=[];l[o]=h[o]=m,l[1-o]=u[1-o],h[1-o]=d[1-o],s.push(l[0],l[1]),s.push(h[0],h[1]);break;default:l[o]=u[o],l[1-o]=d[1-o],s.push(l[0],l[1])}return s.push(e[c++],e[c++]),s}function Ex(e,t){var n=[],r=e.length,i,a;function o(e,t,n){var r=e.coord;return{coord:n,color:Oi((n-r)/(t.coord-r),[e.color,t.color])}}for(var s=0;s<r;s++){var c=e[s],l=c.coord;if(l<0)i=c;else if(l>t){a?n.push(o(a,c,t)):i&&n.push(o(i,c,0),o(i,c,t));break}else i&&(n.push(o(i,c,0)),i=null),n.push(c),a=c}return n}function Dx(e,t,n){var r=e.getVisual(`visualMeta`);if(r&&r.length&&e.count()&&t.type===`cartesian2d`){for(var i,a,o=r.length-1;o>=0;o--){var s=e.getDimensionInfo(r[o].dimension);if(i=s&&s.coordDim,i===`x`||i===`y`){a=r[o];break}}if(a){var c=t.getAxis(i),l=B(a.stops,function(e){return{coord:c.toGlobalCoord(c.dataToCoord(e.value)),color:e.color}}),u=l.length,d=a.outerColors.slice();u&&l[0].coord>l[u-1].coord&&(l.reverse(),d.reverse());var f=Ex(l,i===`x`?n.getWidth():n.getHeight()),p=f.length;if(!p&&u)return l[0].coord<0?d[1]?d[1]:l[u-1].color:d[0]?d[0]:l[0].color;var m=10,h=f[0].coord-m,g=f[p-1].coord+m,_=g-h;if(_<.001)return`transparent`;z(f,function(e){e.offset=(e.coord-h)/_}),f.push({offset:p?f[p-1].offset:.5,color:d[1]||`transparent`}),f.unshift({offset:p?f[0].offset:.5,color:d[0]||`transparent`});var v=new Zd(0,0,0,0,f,!0);return v[i]=h,v[i+`2`]=g,v}}}function Ox(e,t,n){var r=e.get(`showAllSymbol`),i=r===`auto`;if(!r||i){var a=n.getAxesByScale(`ordinal`)[0];if(a&&!(i&&kx(a,t))){var o=t.mapDimension(a.dim),s={};return z(a.getViewLabels(),function(e){e.tick.offInterval||(s[_x(a.scale,e.tick)]=1)}),function(e){return!s.hasOwnProperty(t.get(o,e))}}}}function kx(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(_y.getSymbolSize(t,o)[+!!e.isHorizontal()]*1.5>r)return!1;return!0}function Ax(e){for(var t=e.length/2;t>0&&Dy(e[t*2-2],e[t*2-1]);t--);return t-1}function jx(e,t){return[e[t*2],e[t*2+1]]}function Mx(e,t,n){for(var r=e.length/2,i=n===`x`?0:1,a,o,s=0,c=-1,l=0;l<r;l++)if(o=e[l*2+i],!Dy(o,e[l*2+1-i])){if(l===0){a=o;continue}if(a<=t&&o>=t||a>=t&&o<=t){c=l;break}s=l,a=o}return{range:[s,c],t:(t-a)/(o-a)}}function Nx(e){if(e.get([`endLabel`,`show`]))return!0;for(var t=0;t<Rl.length;t++)if(e.get([Rl[t],`endLabel`,`show`]))return!0;return!1}function Px(e,t,n,r){if($y(t,`cartesian2d`)){var i=r.getModel(`endLabel`),a=i.get(`valueAnimation`),o=r.getData(),s={lastFrameIndex:0},c=Nx(r)?function(n,r){e._endLabelOnDuring(n,r,o,s,a,i,t)}:null,l=t.getBaseAxis().isHorizontal(),u=Xy(t,n,r,function(){var t=e._endLabel;t&&n&&s.originalX!=null&&t.attr({x:s.originalX,y:s.originalY})},c);if(!r.get(`clip`,!0)){var d=u.shape,f=Math.max(d.width,d.height);l?(d.y-=f,d.height+=f*2):(d.x-=f,d.width+=f*2)}return c&&c(1,u),u}return Zy(t,n,r)}function Fx(e,t){var n=t.getBaseAxis(),r=n.isHorizontal(),i=n.inverse,a=r?i?`right`:`left`:`center`,o=r?`middle`:i?`top`:`bottom`;return{normal:{align:e.get(`align`)||a,verticalAlign:e.get(`verticalAlign`)||o}}}var Ix=function(e){T(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var e=new ud,t=new Cy;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e,this._changePolyState=De(this._changePolyState,this)},t.prototype.render=function(e,t,n){var r=e.coordinateSystem,i=this.group,a=e.getData(),o=e.getModel(`lineStyle`),s=e.getModel(`areaStyle`),c=a.getLayout(`points`)||[],l=r.type===`polar`,u=this._coordSys,d=this._symbolDraw,f=this._polyline,p=this._polygon,m=this._lineGroup,h=!t.ssr&&e.get(`animation`),g=!s.isEmpty(),_=s.get(`origin`),v=wy(r,a,_),y=g&&Cx(r,a,v),b=e.get(`showSymbol`),x=e.get(`connectNulls`),S=b&&!l&&Ox(e,a,r),C=this._data;C&&C.eachItemGraphicEl(function(e,t){e.__temp&&(i.remove(e),C.setItemGraphicEl(t,null))}),b||d.remove(),i.add(m);var w=!l&&e.get(`step`),T;r&&r.getArea&&e.get(`clip`,!0)&&(T=r.getArea(),T.width==null?T.r0&&(T.r0-=.5,T.r+=.5):(T.x-=.1,T.y-=.1,T.width+=.2,T.height+=.2)),this._clipShapeForSymbol=T;var E=Dx(a,r,n)||a.getVisual(`style`)[a.getVisual(`drawType`)];if(!(f&&u.type===r.type&&w===this._step))b&&d.updateData(a,{isIgnore:S,clipShape:T,disableAnimation:!0,getSymbolPoint:function(e){return[c[e*2],c[e*2+1]]}}),h&&this._initSymbolLabelAnimation(a,r,T),w&&(y&&(y=Tx(y,c,r,w,x)),c=Tx(c,null,r,w,x)),f=this._newPolyline(c),g?p=this._newPolygon(c,y):p&&(m.remove(p),p=this._polygon=null),l||this._initOrUpdateEndLabel(e,r,O_(E)),m.setClipPath(Px(this,r,!0,e));else{g&&!p?p=this._newPolygon(c,y):p&&!g&&(m.remove(p),p=this._polygon=null),l||this._initOrUpdateEndLabel(e,r,O_(E));var D=m.getClipPath();D?hf(D,{shape:Px(this,r,!1,e).shape},e):m.setClipPath(Px(this,r,!0,e)),b&&d.updateData(a,{isIgnore:S,clipShape:T,disableAnimation:!0,getSymbolPoint:function(e){return[c[e*2],c[e*2+1]]}}),(!yx(this._stackedOnPoints,y)||!yx(this._points,c))&&(h?this._doUpdateAnimation(a,y,r,n,w,_,x):(w&&(y&&(y=Tx(y,c,r,w,x)),c=Tx(c,null,r,w,x)),f.setShape({points:c}),p&&p.setShape({points:c,stackedOnPoints:y})))}var O=e.getModel(`emphasis`),k=O.get(`focus`),A=O.get(`blurScope`),j=O.get(`disabled`);if(f.useStyle(L(o.getLineStyle(),{fill:`none`,stroke:E,lineJoin:`bevel`})),Pu(f,e,`lineStyle`),f.style.lineWidth>0&&e.get([`emphasis`,`lineStyle`,`width`])===`bolder`){var M=f.getState(`emphasis`).style;M.lineWidth=+f.style.lineWidth+1}Z(f).seriesIndex=e.seriesIndex,Au(f,k,A,j);var ee=Sx(e.get(`smooth`)),te=e.get(`smoothMonotone`);if(f.setShape({smooth:ee,smoothMonotone:te,connectNulls:x}),p){var ne=a.getCalculationInfo(`stackedOnSeries`),re=0;p.useStyle(L(s.getAreaStyle(),{fill:E,opacity:.7,lineJoin:`bevel`,decal:a.getVisual(`style`).decal})),ne&&(re=Sx(ne.get(`smooth`))),p.setShape({smooth:ee,stackedOnSmooth:re,smoothMonotone:te,connectNulls:x}),Pu(p,e,`areaStyle`),Z(p).seriesIndex=e.seriesIndex,Au(p,k,A,j)}var ie=this._changePolyState;a.eachItemGraphicEl(function(e){e&&(e.onHoverStateChange=ie)}),this._polyline.onHoverStateChange=ie,this._data=a,this._coordSys=r,this._stackedOnPoints=y,this._points=c,this._step=w,this._valueOrigin=_;var ae=e.get(`triggerEvent`),oe=e.get(`triggerLineEvent`),se=oe===!0||ae===!0||ae===`line`,ce=oe===!0||ae===!0||ae===`area`;this.packEventData(e,f,se),p&&this.packEventData(e,p,ce)},t.prototype.packEventData=function(e,t,n){Z(t).eventData=n?{componentType:`series`,componentSubType:`line`,componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:`line`,selfType:t===this._polygon?`area`:`line`}:null},t.prototype.highlight=function(e,t,n,r){var i=e.getData(),a=Gc(i,r);if(this._changePolyState(`emphasis`),!(a instanceof Array)&&a!=null&&a>=0){var o=i.getLayout(`points`),s=i.getItemGraphicEl(a);if(!s){var c=o[a*2],l=o[a*2+1];if(Dy(c,l)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,l))return;var u=e.get(`zlevel`)||0,d=e.get(`z`)||0;s=new _y(i,a),s.x=c,s.y=l,s.setZ(u,d);var f=s.getSymbolPath().getTextContent();f&&(f.zlevel=u,f.z=d,f.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(a,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else Wy.prototype.highlight.call(this,e,t,n,r)},t.prototype.downplay=function(e,t,n,r){var i=e.getData(),a=Gc(i,r);if(this._changePolyState(`normal`),a!=null&&a>=0){var o=i.getItemGraphicEl(a);o&&(o.__temp?(i.setItemGraphicEl(a,null),this.group.remove(o)):o.downplay())}else Wy.prototype.downplay.call(this,e,t,n,r)},t.prototype._changePolyState=function(e){var t=this._polygon;nu(this._polyline,e),t&&nu(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new Ry({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new By({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,t,n){var r,i,a=t.getBaseAxis(),o=a.inverse;t.type===`cartesian2d`?(r=a.isHorizontal(),i=!1):t.type===`polar`&&(r=a.dim===`angle`,i=!0);var s=e.hostModel,c=s.get(`animationDuration`);H(c)&&(c=c(null));var l=s.get(`animationDelay`)||0,u=H(l)?l(null):l;e.eachItemGraphicEl(function(e,a){var s=e;if(s){var d=[e.x,e.y],f=void 0,p=void 0,m=void 0;if(n){if(i){var h=n,g=t.pointToCoord(d);r?(f=h.startAngle,p=h.endAngle,m=-g[1]/180*Math.PI):(f=h.r0,p=h.r,m=g[0])}else{var _=n;r?(f=_.x,p=_.x+_.width,m=e.x):(f=_.y+_.height,p=_.y,m=e.y)}}var v=p===f?0:(m-f)/(p-f);o&&(v=1-v);var y=H(l)?l(a):c*v+u,b=s.getSymbolPath(),x=b.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:y}),x&&x.animateFrom({style:{opacity:0}},{duration:300,delay:y}),b.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,t,n){var r=e.getModel(`endLabel`);if(Nx(e)){var i=e.getData(),a=this._polyline,o=i.getLayout(`points`);if(!o){a.removeTextContent(),this._endLabel=null;return}var s=this._endLabel;s||(s=this._endLabel=new ds({z2:200}),s.ignoreClip=!0,a.setTextContent(this._endLabel),a.disableLabelAnimation=!0);var c=Ax(o);c>=0&&(yp(a,bp(e,`endLabel`),{inheritColor:n,labelFetcher:e,labelDataIndex:c,defaultText:function(e,t,n){return n==null?hy(i,e):gy(i,n)},enableTextSetter:!0},Fx(r,t)),a.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,t,n,r,i,a,o){var s=this._endLabel,c=this._polyline;if(s){e<1&&r.originalX==null&&(r.originalX=s.x,r.originalY=s.y);var l=n.getLayout(`points`),u=n.hostModel,d=u.get(`connectNulls`),f=a.get(`precision`),p=a.get(`distance`)||0,m=o.getBaseAxis(),h=m.isHorizontal(),g=m.inverse,_=t.shape,v=g?h?_.x:_.y+_.height:h?_.x+_.width:_.y,y=(h?p:0)*(g?-1:1),b=(h?0:-p)*(g?-1:1),x=h?`x`:`y`,S=Mx(l,v,x),C=S.range,w=C[1]-C[0],T=void 0;if(w>=1){if(w>1&&!d){var E=jx(l,C[0]);s.attr({x:E[0]+y,y:E[1]+b}),i&&(T=u.getRawValue(C[0]))}else{var E=c.getPointOn(v,x);E&&s.attr({x:E[0]+y,y:E[1]+b});var D=u.getRawValue(C[0]),O=u.getRawValue(C[1]);i&&(T=rl(n,f,D,O,S.t))}r.lastFrameIndex=C[0]}else{var k=e===1||r.lastFrameIndex>0?C[0]:0,E=jx(l,k);i&&(T=u.getRawValue(k)),s.attr({x:E[0]+y,y:E[1]+b})}if(i){var A=Ap(s);typeof A.setLabelText==`function`&&A.setLabelText(T)}}},t.prototype._doUpdateAnimation=function(e,t,n,r,i,a,o){var s=this._polyline,c=this._polygon,l=e.hostModel,u=Ny(this._data,e,this._stackedOnPoints,t,this._coordSys,n,this._valueOrigin,a),d=u.current,f=u.stackedOnCurrent,p=u.next,m=u.stackedOnNext;if(i&&(f=Tx(u.stackedOnCurrent,u.current,n,i,o),d=Tx(u.current,null,n,i,o),m=Tx(u.stackedOnNext,u.next,n,i,o),p=Tx(u.next,null,n,i,o)),xx(d,p)>3e3||c&&xx(f,m)>3e3){s.stopAnimation(),s.setShape({points:p}),c&&(c.stopAnimation(),c.setShape({points:p,stackedOnPoints:m}));return}s.shape.__points=u.current,s.shape.points=d;var h={shape:{points:p}};u.current!==d&&(h.shape.__points=u.next),s.stopAnimation(),mf(s,h,l),c&&(c.setShape({points:d,stackedOnPoints:f}),c.stopAnimation(),mf(c,{shape:{stackedOnPoints:m}},l),s.shape.points!==c.shape.points&&(c.shape.points=s.shape.points));for(var g=[],_=u.status,v=0;v<_.length;v++)if(_[v].cmd===`=`){var y=e.getItemGraphicEl(_[v].idx1);y&&g.push({el:y,ptIdx:v})}s.animators&&s.animators.length&&s.animators[0].during(function(){c&&c.dirtyShape();for(var e=s.shape.__points,t=0;t<g.length;t++){var n=g[t].el,r=g[t].ptIdx*2;n.x=e[r],n.y=e[r+1],n.markRedraw()}})},t.prototype.remove=function(e){var t=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(e,r){e.__temp&&(t.remove(e),n.setItemGraphicEl(r,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type=`line`,t}(Wy);function Lx(e,t){return{seriesType:e,plan:Vy(),reset:function(e){var n=e.getData(),r=e.coordinateSystem,i=e.pipelineContext,a=t||i.large;if(r){var o=B(r.dimensions,function(e){return n.mapDimension(e)}).slice(0,2),s=o.length,c=n.getCalculationInfo(`stackResultDimension`);Kh(n,o[0])&&(o[0]=c),Kh(n,o[1])&&(o[1]=c);var l=n.getStore(),u=n.getDimensionIndex(o[0]),d=n.getDimensionIndex(o[1]);return s&&{progress:function(e,t){for(var n=e.end-e.start,i=a&&Ay(n*s),o=[],c=[],f=e.start,p=0;f<e.end;f++){var m=void 0;if(s===1){var h=l.get(u,f);m=r.dataToPoint(h,null,c)}else o[0]=l.get(u,f),o[1]=l.get(d,f),m=r.dataToPoint(o,null,c);a?(i[p++]=m[0],i[p++]=m[1]):t.setItemLayout(f,m.slice())}a&&(t.setLayout(`points`,i),t.setLayout(`pointsRange`,{start:e.start,end:e.end}))}}}}}}var Rx={average:function(e){for(var t=0,n=0,r=0;r<e.length;r++)isNaN(e[r])||(t+=e[r],n++);return n===0?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},zx=function(e){return Math.round(e.length/2)};function Bx(e){return{seriesType:e,reset:function(e,t,n){var r=e.getData(),i=e.get(`sampling`),a=e.coordinateSystem,o=r.count();if(o>10&&a.type===`cartesian2d`&&i){var s=a.getBaseAxis(),c=a.getOtherAxis(s),l=s.getExtent(),u=n.getDevicePixelRatio(),d=Math.abs(l[1]-l[0])*(u||1),f=Math.round(o/d);if(isFinite(f)&&f>1){i===`lttb`?e.setData(r.lttbDownSample(r.mapDimension(c.dim),1/f)):i===`minmax`&&e.setData(r.minmaxDownSample(r.mapDimension(c.dim),1/f));var p=void 0;U(i)?p=Rx[i]:H(i)&&(p=i),p&&e.setData(r.downSample(r.mapDimension(c.dim),1/f,p,zx))}}}}}function Vx(e){e.registerChartView(Ix),e.registerSeriesModel(my),e.registerLayout(Lx(`line`,!0)),e.registerVisual({seriesType:`line`,reset:function(e){var t=e.getData(),n=e.getModel(`lineStyle`).getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual(`style`).fill),t.setVisual(`legendLineStyle`,n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Bx(`line`))}var Hx=Kc(),Ux=Kc(),Wx={estimate:1,determine:2};function Gx(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function Kx(e,t){var n=e.getLabelModel().get(`customValues`);if(n){var r=e.scale;return{labels:B(Jx(n,r),function(t,n){return{formattedLabel:sx(e)(t,n),rawLabel:r.getLabel(t),tick:t}})}}return e.type===`category`?Yx(e,t):Qx(e)}function qx(e,t,n){var r=e.scale,i=e.getTickModel().get(`customValues`);return i?{ticks:Jx(i,r)}:e.type===`category`?Zx(e,t):{ticks:r.getTicks(n)}}function Jx(e,t){var n=t.getExtent(),r=[];return z(e,function(e){e=t.parse(e),e>=n[0]&&e<=n[1]&&r.push(e)}),hl(r,_l,null),Ks(r),B(r,function(e){return{value:e}})}function Yx(e,t){var n=e.getLabelModel(),r=Xx(e,n,t);return!n.get(`show`)||e.scale.isBlank()?{labels:[]}:r}function Xx(e,t,n){var r=eS(e),i=lx(t),a=n.kind===Wx.estimate;if(!a){var o=nS(r,i);if(o)return o}var s,c;H(i)?s=lS(e,i,!1):(c=i===`auto`?iS(e,n):i,s=lS(e,c,!1));var l={labels:s,labelCategoryInterval:c};return a?n.out.noPxChangeTryDetermine.push(function(){return rS(r,i,l),!0}):rS(r,i,l),l}function Zx(e,t){var n=$x(e),r=lx(t),i=nS(n,r);if(i)return i;var a,o;if((!t.get(`show`)||e.scale.isBlank())&&(a=[]),H(r))a=lS(e,r,!0);else if(r===`auto`){var s=Xx(e,e.getLabelModel(),Gx(Wx.determine));o=s.labelCategoryInterval,a=B(s.labels,function(e){return e.tick})}else o=r,a=lS(e,o,!0);return rS(n,r,{ticks:a,tickCategoryInterval:o})}function Qx(e){var t=e.scale.getTicks(),n=sx(e);return{labels:B(t,function(t,r){return{formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tick:t}})}}var $x=tS(`axisTick`),eS=tS(`axisLabel`);function tS(e){return function(t){return Ux(t)[e]||(Ux(t)[e]={list:[]})}}function nS(e,t){for(var n=0;n<e.list.length;n++)if(e.list[n].key===t)return e.list[n].value}function rS(e,t,n){return e.list.push({key:t,value:n}),n}function iS(e,t){if(t.kind===Wx.estimate){var n=e.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return Ux(e).autoInterval=n,!0}),n}var r=Ux(e).autoInterval;return r==null?Ux(e).autoInterval=e.calculateCategoryInterval(t):r}function aS(e,t){var n=t.kind,r=cS(e),i=sx(e),a=(r.axisRotate-r.labelRotate)/180*Math.PI,o=e.scale,s=o.getExtent(),c=o.count();if(s[1]-s[0]<1)return 0;var l=1,u=40;c>u&&(l=Math.max(1,Math.floor(c/u)));for(var d=s[0],f=e.dataToCoord(d+1)-e.dataToCoord(d),p=Math.abs(f*Math.cos(a)),m=Math.abs(f*Math.sin(a)),h=0,g=0;d<=s[1];d+=l){var _=0,v=0,y=Gn(i({value:d}),r.font,`center`,`top`);_=y.width*1.3,v=y.height*1.3,h=Math.max(h,_,7),g=Math.max(g,v,7)}var b=h/p,x=g/m;isNaN(b)&&(b=1/0),isNaN(x)&&(x=1/0);var S=Math.max(0,Math.floor(Math.min(b,x)));if(n===Wx.estimate)return t.out.noPxChangeTryDetermine.push(De(oS,null,e,S,c)),S;var C=sS(e,S,c);return C==null?S:C}function oS(e,t,n){return sS(e,t,n)==null}function sS(e,t,n){var r=Hx(e.model),i=e.getExtent(),a=r.lastAutoInterval,o=r.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-t)<=1&&Math.abs(o-n)<=1&&a>t&&r.axisExtent0===i[0]&&r.axisExtent1===i[1])return a;r.lastTickCount=n,r.lastAutoInterval=t,r.axisExtent0=i[0],r.axisExtent1=i[1]}function cS(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get(`rotate`)||0,font:t.getFont()}}function lS(e,t,n){var r=sx(e),i=e.scale,a=[],o=H(t);return Ab(i,o?0:t,function(e,s){var c=i.getLabel(e);if(o){var l=!!t(e.value,c);if(e.offInterval=!l,!l&&!s)return}a.push(n?e:{formattedLabel:r(e),rawLabel:c,tick:e})}),a}var uS=Kc();function dS(e){uS(e).prepare={}}function fS(e){uS(e).fullUpdate={}}function pS(e){return uS(e).prepare}function mS(e){return uS(e).fullUpdate}var hS=pl(),gS=Kc(),_S=Kc();function vS(e,t){var n=e.model,r=gS(mS(n.ecModel)).keyed,i=r&&r.get(t);return i&&i.get(n.uid)}function yS(e,t){return SS(vS(e,t))}function bS(e,t){var n=[];return xS(e.model.ecModel,function(e){for(var r=0;r<t.length;r++)t[r]&&e.serByIdx[t[r].seriesIndex]&&n.push(SS(e))}),n}function xS(e,t){var n=gS(mS(e)).keyed;n&&n.each(function(e,n){e.each(function(e,r){t(e,n,r)})})}function SS(e){return{liPosMinGap:e?e.liPosMinGap:void 0}}function CS(e,t){var n=e.model.ecModel,r=gS(mS(n)).axSer;r&&TS(n,r.get(e.model.uid),t)}function wS(e,t,n){var r=vS(e,t);r&&TS(e.model.ecModel,r.sers,n)}function TS(e,t,n){if(t)for(var r=0;r<t.length;r++){var i=t[r];e.isSeriesFiltered(i)||n(i)}}function ES(e,t,n){var r=gS(mS(e)).keyed,i=r&&r.get(t);i&&i.each(function(e){n(e.axis)})}function DS(e,t){var n=e.model,r=gS(mS(n.ecModel)).keys;r&&z(r.get(n.uid),function(e){t(e)})}function OS(e){var t=_S(pS(e)),n=t.keyed||(t.keyed=K());xS(e,function(t,r,i){var a=n.get(r)||n.set(r,K()),o=a.get(i)||a.set(i,{});t.metrics.liPosMinGap&&AS.liPosMinGap(e,t,o)})}function kS(e,t){AS[e]=t}var AS={};function jS(e,t,n){if(e){var r=t.ecModel,i=gS(mS(r)),a=e.model.uid,o=i.axSer||(i.axSer=K());(o.get(a)||o.set(a,[])).push(t);var s=t.subType,c=t.getBaseAxis()===e,l=PS.get(MS(s,c,n))||PS.get(MS(s,c,null));if(l){var u=i.keyed||(i.keyed=K()),d=i.keys||(i.keys=K()),f=l.key,p=u.get(f)||u.set(f,K()),m=p.get(a);m||(m=p.set(a,{axis:e,sers:[],serByIdx:[]}),m.metrics=l.getMetrics(e),(d.get(a)||d.set(a,[])).push(f)),m.sers.push(t),m.serByIdx[t.seriesIndex]=t}}}function MS(e,t,n){return e+`|&`+G(t,!0)+`|&`+(n||``)}function NS(e,t){var n=MS(t.seriesType,t.baseAxis,t.coordSysType);PS.set(n,t),hS(e,function(){e.registerProcessor(e.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:OS})})}var PS=K(),FS=.8;function IS(e,t){t=t||{};var n={w:NaN,w2:NaN},r=e.scale,i=t.fromStat,a=t.min,o=pb(r);hc(o)||(o=NaN);var s=e.getExtent(),c=As(s[1]-s[0]);return Sb(r)?LS(n,e,o,c):i&&RS(n,e,o,c,i),a!=null&&(n.w=hc(n.w)?ks(a,n.w):a),n}function LS(e,t,n,r){var i=t.onBand,a=n+ +!!i;a===0&&(a=1),e.w=r/a,!i&&n&&r&&(e.w2=e.w*n/r)}function RS(e,t,n,r,i){var a=!1,o=-1/0;z(i.key?[yS(t,i.key)]:bS(t,i.sers||[]),function(e){var t=e.liPosMinGap;t!=null&&(t>0?(t>o&&(o=t),a=!1):t===-2&&(a=!0))}),hc(n)&&n>0&&hc(o)?(e.w=r/n*o,e.w2=o):a&&(e.w=r*FS,e.w2=e.w*n/r)}var zS=[0,1],BS=function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]);return e>=n&&e<=r},e.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this.scale;return e=n.normalize(n.parse(e)),zs(e,zS,VS(this),t)},e.prototype.coordToData=function(e,t){var n=zs(e,VS(this),zS,t);return this.scale.scale(n)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),n=B(qx(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}).ticks,function(e){return{coord:this.dataToCoord(_x(this.scale,e)),tick:e}},this),r=t.get(`alignWithLabel`),i=HS(this,n,r);return B(n,function(e){return{coord:e.coord,tickValue:e.tick.value,onBand:i}})},e.prototype.getMinorTicksCoords=function(){if(Sb(this.scale))return[];var e=this.model.getModel(`minorTick`).get(`splitNumber`);return e>0&&e<100||(e=5),B(this.scale.getMinorTicks(e),function(e){return B(e,function(e){return{coord:this.dataToCoord(e),tickValue:e}},this)},this)},e.prototype.getViewLabels=function(e){return e=e||Gx(Wx.determine),Kx(this,e).labels},e.prototype.getLabelModel=function(){return this.model.getModel(`axisLabel`)},e.prototype.getTickModel=function(){return this.model.getModel(`axisTick`)},e.prototype.getBandWidth=function(){return IS(this,{min:1}).w},e.prototype.calculateCategoryInterval=function(e){return e=e||Gx(Wx.determine),aS(this,e)},e}();function VS(e){var t=e.getExtent();if(e.onBand){var n=(t[1]-t[0])/e.scale.count()/2;t[0]+=n,t[1]-=n}return t}function HS(e,t,n){var r=t.length;if(!e.onBand||n||!r)return!1;var i=IS(e).w;if(!i)return!1;z(t,function(e){e.coord-=i/2});var a=e.scale.getExtent(),o=t[r-1];return o.tick.offInterval&&t.pop(),t.push({coord:o.coord+i,tick:{value:a[1]+1}}),!0}var US=function(e){T(t,e);function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.index=0,o.type=i||`value`,o.position=a||`bottom`,o}return t.prototype.isHorizontal=function(){var e=this.position;return e===`top`||e===`bottom`},t.prototype.getGlobalExtent=function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e[this.dim===`x`?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if(this.type!==`category`)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(BS),WS=[`label`,`labelLine`,`layoutOption`,`priority`,`defaultAttr`,`marginForce`,`minMarginForce`,`marginDefault`,`suggestIgnore`],GS=1,KS=2,qS=GS|KS;function JS(e,t,n){n=n||qS,t?e.dirty|=n:e.dirty&=~n}function YS(e,t){return t=t||qS,e.dirty==null||!!(e.dirty&t)}function XS(e){if(e)return YS(e)&&ZS(e,e.label,e),e}function ZS(e,t,n){var r=t.getComputedTransform();e.transform=sp(e.transform,r);var i=e.localRect=op(e.localRect,t.getBoundingRect()),a=t.style,o=a.margin,s=n&&n.marginForce,c=n&&n.minMarginForce,l=n&&n.marginDefault,u=a.__marginType;u==null&&l&&(o=l,u=Np.textMargin);for(var d=0;d<4;d++)QS[d]=u===Np.minMargin&&c&&c[d]!=null?c[d]:s&&s[d]!=null?s[d]:o?o[d]:0;u===Np.textMargin&&Qf(i,QS,!1,!1);var f=e.rect=op(e.rect,i);return r&&f.applyTransform(r),u===Np.minMargin&&Qf(f,QS,!1,!1),e.axisAligned=ip(r),(e.label=e.label||{}).ignore=t.ignore,JS(e,!1),JS(e,!0,KS),e}var QS=[0,0,0,0];function $S(e,t,n){return e.transform=sp(e.transform,n),e.localRect=op(e.localRect,t),e.rect=op(e.rect,t),n&&e.rect.applyTransform(n),e.axisAligned=ip(n),e.obb=void 0,(e.label=e.label||{}).ignore=!1,e}function eC(e,t){if(e){e.label.x+=t.x,e.label.y+=t.y,e.label.markRedraw();var n=e.transform;n&&(n[4]+=t.x,n[5]+=t.y);var r=e.rect;r&&(r.x+=t.x,r.y+=t.y);var i=e.obb;i&&i.fromBoundingRect(e.localRect,n)}}function tC(e,t){for(var n=0;n<WS.length;n++){var r=WS[n];e[r]==null&&(e[r]=t[r])}return XS(e)}function nC(e){var t=e.obb;return(!t||YS(e,KS))&&(e.obb=t=t||new cf,t.fromBoundingRect(e.localRect,e.transform),JS(e,!1,KS)),t}function rC(e,t,n,r,i){var a=e.length,o=wf[t],s=Tf[t];if(a<2)return!1;e.sort(function(e,t){return e.rect[o]-t.rect[o]});for(var c=0,l,u=!1,d=0,f=0;f<a;f++){var p=e[f],m=p.rect;l=m[o]-c,l<0&&(m[o]-=l,p.label[o]-=l,u=!0);var h=Math.max(-l,0);d+=h,c=m[o]+m[s]}d>0&&i&&S(-d/a,0,a);var g=e[0],_=e[a-1],v,y;b(),v<0&&C(-v,.8),y<0&&C(y,.8),b(),x(v,y,1),x(y,v,-1),b(),v<0&&w(-v),y<0&&w(y);function b(){v=g.rect[o]-n,y=r-_.rect[o]-_.rect[s]}function x(e,t,n){if(e<0){var r=Math.min(t,-e);if(r>0){S(r*n,0,a);var i=r+e;i<0&&C(-i*n,1)}else C(-e*n,1)}}function S(t,n,r){t!==0&&(u=!0);for(var i=n;i<r;i++){var a=e[i],s=a.rect;s[o]+=t,a.label[o]+=t}}function C(t,n){for(var r=[],i=0,c=1;c<a;c++){var l=e[c-1].rect,u=Math.max(e[c].rect[o]-l[o]-l[s],0);r.push(u),i+=u}if(i){var d=Math.min(Math.abs(t)/i,n);if(t>0)for(var c=0;c<a-1;c++){var f=r[c]*d;S(f,0,c+1)}else for(var c=a-1;c>0;c--){var f=r[c-1]*d;S(-f,c,a)}}}function w(e){var t=e<0?-1:1;e=Math.abs(e);for(var n=Math.ceil(e/(a-1)),r=0;r<a-1;r++)if(t>0?S(n,0,r+1):S(-n,a-r-1,a),e-=n,e<=0)return}return u}function iC(e){for(var t=0;t<e.length;t++){var n=e[t],r=n.defaultAttr,i=n.labelLine;n.label.attr(`ignore`,r.ignore),i&&i.attr(`ignore`,r.labelGuideIgnore)}}function aC(e){var t=[];e.sort(function(e,t){return+!!t.suggestIgnore-!!e.suggestIgnore||t.priority-e.priority});function n(e){if(!e.ignore){var t=e.ensureState(`emphasis`);t.ignore==null&&(t.ignore=!1)}e.ignore=!0}for(var r=0;r<e.length;r++){var i=XS(e[r]);if(!i.label.ignore){for(var a=i.label,o=i.labelLine,s=!1,c=0;c<t.length;c++)if(oC(i,t[c],null,{touchThreshold:.05})){s=!0;break}s?(n(a),o&&n(o)):t.push(i)}}}function oC(e,t,n,r){return!e||!t||e.label&&e.label.ignore||t.label&&t.label.ignore||!e.rect.intersect(t.rect,n,r)?!1:e.axisAligned&&t.axisAligned?!0:nC(e).intersect(nC(t),n,r)}var sC=null;function cC(){return sC}var lC=`expandAxisBreak`,uC=Math.PI,dC=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],fC=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],pC=Kc(),mC=Kc(),hC=function(){function e(e){this.recordMap={},this.resolveAxisNameOverlap=e}return e.prototype.ensureRecord=function(e){var t=e.axis.dim,n=e.componentIndex,r=this.recordMap,i=r[t]||(r[t]=[]);return i[n]||(i[n]={ready:{}})},e}();function gC(e,t,n,r){var i=n.axis,a=t.ensureRecord(n),o=[],s,c=BC(e.axisName)&&fx(e.nameLocation);z(r,function(e){var t=XS(e);if(t&&!t.label.ignore){o.push(t);var n=a.transGroup;c&&(n.transform?Rt(_C,n.transform):Mt(_C),t.transform&&Pt(_C,_C,t.transform),X.copy(vC,t.localRect),vC.applyTransform(_C),s?s.union(vC):X.copy(s=new X(0,0,0,0),vC))}});var l=Math.abs(a.dirVec.x)>.1?`x`:`y`,u=a.transGroup[l];if(o.sort(function(e,t){return Math.abs(e.label[l]-u)-Math.abs(t.label[l]-u)}),c&&s){var d=i.getExtent(),f=Math.min(d[0],d[1]),p=Math.max(d[0],d[1])-f;s.union(new X(f,0,p,1))}a.stOccupiedRect=s,a.labelInfoList=o}var _C=jt(),vC=new X(0,0,0,0),yC=function(e,t,n,r,i,a){if(fx(e.nameLocation)){var o=a.stOccupiedRect;o&&bC($S({},o,a.transGroup.transform),r,i)}else xC(a.labelInfoList,a.dirVec,r,i)};function bC(e,t,n){var r=new Y;oC(e,t,r,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&eC(t,r)}function xC(e,t,n,r){for(var i=Y.dot(r,t)>=0,a=0,o=e.length;a<o;a++){var s=e[i?a:o-1-a];s.label.ignore||bC(s,n,r)}}var SC=function(){function e(e,t,n,r){this.group=new ud,this._axisModel=e,this._api=t,this._local={},this._shared=r||new hC(yC),this._resetCfgDetermined(n)}return e.prototype.updateCfg=function(e){var t=this._cfg.raw;t.position=e.position,t.labelOffset=e.labelOffset,this._resetCfgDetermined(t)},e.prototype.__getRawCfg=function(){return this._cfg.raw},e.prototype._resetCfgDetermined=function(e){var t=this._axisModel,n=t.getDefaultOption?t.getDefaultOption():{},r=G(e.axisName,t.get(`name`)),i=t.get(`nameMoveOverlap`);(i==null||i===`auto`)&&(i=G(e.defaultNameMoveOverlap,!0));var a={raw:e,position:e.position,rotation:e.rotation,nameDirection:G(e.nameDirection,1),tickDirection:G(e.tickDirection,1),labelDirection:G(e.labelDirection,1),labelOffset:G(e.labelOffset,0),silent:G(e.silent,!0),axisName:r,nameLocation:ze(t.get(`nameLocation`),n.nameLocation,`end`),shouldNameMoveOverlap:BC(r)&&i,optionHideOverlap:t.get([`axisLabel`,`hideOverlap`]),showMinorTicks:t.get([`minorTick`,`show`])};this._cfg=a;var o=new ud({x:a.position[0],y:a.position[1],rotation:a.rotation});o.updateTransform(),this._transformGroup=o;var s=this._shared.ensureRecord(t);s.transGroup=this._transformGroup,s.dirVec=new Y(Math.cos(-a.rotation),Math.sin(-a.rotation))},e.prototype.build=function(e,t){var n=this;return e||(e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),z(CC,function(r){e[r]&&wC[r](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,t||{})}),this},e.innerTextLayout=function(e,t,n){var r=tc(t-e),i,a;return nc(r)?(a=n>0?`top`:`bottom`,i=`center`):nc(r-uC)?(a=n>0?`bottom`:`top`,i=`center`):(a=`middle`,i=r>0&&r<uC?n>0?`right`:`left`:n>0?`left`:`right`),{rotation:r,textAlign:i,textVerticalAlign:a}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+`Index`]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get(`tooltip`);return e.get(`silent`)||!(e.get(`triggerEvent`)||t&&t.show)},e}(),CC=[`axisLine`,`axisTickLabelEstimate`,`axisTickLabelDetermine`,`axisName`],wC={axisLine:function(e,t,n,r,i,a,o){var s=r.get([`axisLine`,`show`]);if(s===`auto`&&(s=!0,e.raw.axisLineAutoShow!=null&&(s=!!e.raw.axisLineAutoShow)),s){var c=r.axis.getExtent(),l=a.transform,u=[c[0],0],d=[c[1],0],f=u[0]>d[0];l&&(un(u,u,l),un(d,d,l));var p=I({lineCap:`round`},r.getModel([`axisLine`,`lineStyle`]).getLineStyle()),m={strokeContainThreshold:e.raw.strokeContainThreshold||5,silent:!0,z2:1,style:p};if(r.get([`axisLine`,`breakLine`])&&Pg(r.axis.scale))cC().buildAxisBreakLine(r,i,a,m);else{var h=new Hd(I({shape:{x1:u[0],y1:u[1],x2:d[0],y2:d[1]}},m));If(h.shape,h.style.lineWidth),h.anid=`line`,i.add(h)}var g=r.get([`axisLine`,`symbol`]);if(g!=null){var _=r.get([`axisLine`,`symbolSize`]);U(g)&&(g=[g,g]),(U(_)||Ae(_))&&(_=[_,_]);var v=py(r.get([`axisLine`,`symbolOffset`])||0,_),y=_[0],b=_[1];z([{rotate:e.rotation+Math.PI/2,offset:v[0],r:0},{rotate:e.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((u[0]-d[0])*(u[0]-d[0])+(u[1]-d[1])*(u[1]-d[1]))}],function(t,n){if(g[n]!==`none`&&g[n]!=null){var r=dy(g[n],-y/2,-b/2,y,b,p.stroke,!0),a=t.r+t.offset,o=f?d:u;r.attr({rotation:t.rotate,x:o[0]+a*Math.cos(e.rotation),y:o[1]-a*Math.sin(e.rotation),silent:!0,z2:11}),i.add(r)}})}}},axisTickLabelEstimate:function(e,t,n,r,i,a,o,s){NC(t,i,s)&&TC(e,t,n,r,i,a,o,Wx.estimate)},axisTickLabelDetermine:function(e,t,n,r,i,a,o,s){NC(t,i,s)&&TC(e,t,n,r,i,a,o,Wx.determine);var c=jC(e,i,a,r);OC(e,t.labelLayoutList,c),MC(e,i,a,r,e.tickDirection)},axisName:function(e,t,n,r,i,a,o,s){var c=n.ensureRecord(r);t.nameEl&&(i.remove(t.nameEl),t.nameEl=c.nameLayout=c.nameLocation=null);var l=e.axisName;if(BC(l)){var u=e.nameLocation,d=e.nameDirection,f=r.getModel(`nameTextStyle`),p=r.get(`nameGap`)||0,m=r.axis.getExtent(),h=r.axis.inverse?-1:1,g=new Y(0,0),_=new Y(0,0);u===`start`?(g.x=m[0]-h*p,_.x=-h):u===`end`?(g.x=m[1]+h*p,_.x=h):(g.x=(m[0]+m[1])/2,g.y=e.labelOffset+d*p,_.y=d);var v=jt();_.transform(It(v,v,e.rotation));var y=r.get(`nameRotate`);y!=null&&(y=y*uC/180);var b,x;fx(u)?b=SC.innerTextLayout(e.rotation,y==null?e.rotation:y,d):(b=EC(e.rotation,u,y||0,m),x=e.raw.axisNameAvailableWidth,x!=null&&(x=Math.abs(x/Math.sin(b.rotation)),!isFinite(x)&&(x=null)));var S=f.getFont(),C=r.get(`nameTruncate`,!0)||{},w=C.ellipsis,T=Re(e.raw.nameTruncateMaxWidth,C.maxWidth,x),E=s.nameMarginLevel||0,D=new ds({x:g.x,y:g.y,rotation:b.rotation,silent:SC.isLabelSilent(r),style:xp(f,{text:l,font:S,overflow:`truncate`,width:T,ellipsis:w,fill:f.getTextColor()||r.get([`axisLine`,`lineStyle`,`color`]),align:f.get(`align`)||b.textAlign,verticalAlign:f.get(`verticalAlign`)||b.textVerticalAlign}),z2:1});if(tp({el:D,componentModel:r,itemName:l}),D.__fullText=l,D.anid=`name`,r.get(`triggerEvent`)){var O=SC.makeAxisEventDataBase(r);O.targetType=`axisName`,O.name=l,Z(D).eventData=O}a.add(D),D.updateTransform(),t.nameEl=D;var k=c.nameLayout=XS({label:D,priority:D.z2,defaultAttr:{ignore:D.ignore},marginDefault:fx(u)?dC[E]:fC[E]});if(c.nameLocation=u,i.add(D),D.decomposeTransform(),e.shouldNameMoveOverlap&&k){var A=n.ensureRecord(r);n.resolveAxisNameOverlap(e,n,r,k,_,A)}}}};function TC(e,t,n,r,i,a,o,s){FC(t)||PC(e,t,i,s,r,o);var c=t.labelLayoutList;LC(e,r,c,a),HC(r,e.rotation,c);var l=e.optionHideOverlap;DC(r,c,l),l&&aC(Ce(c,function(e){return e&&!e.label.ignore})),gC(e,n,r,c)}function EC(e,t,n,r){var i=tc(n-e),a,o,s=r[0]>r[1],c=t===`start`&&!s||t!==`start`&&s;return nc(i-uC/2)?(o=c?`bottom`:`top`,a=`center`):nc(i-uC*1.5)?(o=c?`top`:`bottom`,a=`center`):(o=`middle`,a=i<uC*1.5&&i>uC/2?c?`left`:`right`:c?`right`:`left`),{rotation:i,textAlign:a,textVerticalAlign:o}}function DC(e,t,n){var r=e.axis,i=e.get([`axisLabel`,`customValues`]);if(ux(r))return;function a(e,a,o){var s=XS(t[a]),c=XS(t[o]),l=r.scale;if(s&&c){if(e==null){if(!n&&i)return;var u=pC(s.label).labelInfo.tick;if(bb(l)&&u.notNice||Sb(l)&&u.offInterval){kC(s.label);return}}if(e===!1||s.suggestIgnore){kC(s.label);return}if(c.suggestIgnore){kC(c.label);return}var d=.1;if(!n){var f=[0,0,0,0];s=tC({marginForce:f},s),c=tC({marginForce:f},c)}oC(s,c,null,{touchThreshold:d})&&kC(e?c.label:s.label)}}var o=e.get([`axisLabel`,`showMinLabel`]),s=e.get([`axisLabel`,`showMaxLabel`]),c=t.length;a(o,0,1),a(s,c-1,c-2)}function OC(e,t,n){e.showMinorTicks||z(t,function(e){if(e&&e.label.ignore)for(var t=0;t<n.length;t++){var r=n[t],i=mC(r),a=pC(e.label);if(i.tickValue!=null&&!i.onBand&&i.tickValue===a.labelInfo.tick.value){kC(r);return}}})}function kC(e){e&&(e.ignore=!0)}function AC(e,t,n,r,i){for(var a=[],o=[],s=[],c=0;c<e.length;c++){var l=e[c].coord;o[0]=l,o[1]=0,s[0]=l,s[1]=n,t&&(un(o,o,t),un(s,s,t));var u=new Hd({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});If(u.shape,u.style.lineWidth),u.anid=i+`_`+e[c].tickValue,a.push(u);var d=mC(u);d.onBand=!!e[c].onBand,d.tickValue=e[c].tickValue}return a}function jC(e,t,n,r){var i=r.axis,a=r.getModel(`axisTick`),o=a.get(`show`);if(o===`auto`&&(o=!0,e.raw.axisTickAutoShow!=null&&(o=!!e.raw.axisTickAutoShow)),!o||i.scale.isBlank())return[];for(var s=a.getModel(`lineStyle`),c=e.tickDirection*a.get(`length`),l=AC(i.getTicksCoords(),n.transform,c,L(s.getLineStyle(),{stroke:r.get([`axisLine`,`lineStyle`,`color`])}),`ticks`),u=0;u<l.length;u++)t.add(l[u]);return l}function MC(e,t,n,r,i){var a=r.axis,o=r.getModel(`minorTick`);if(e.showMinorTicks&&!a.scale.isBlank()){var s=a.getMinorTicksCoords();if(s.length)for(var c=o.getModel(`lineStyle`),l=i*o.get(`length`),u=L(c.getLineStyle(),L(r.getModel(`axisTick`).getLineStyle(),{stroke:r.get([`axisLine`,`lineStyle`,`color`])})),d=0;d<s.length;d++)for(var f=AC(s[d],n.transform,l,u,`minorticks_`+d),p=0;p<f.length;p++)t.add(f[p])}}function NC(e,t,n){if(FC(e)){var r=e.axisLabelsCreationContext.out.noPxChangeTryDetermine;if(n.noPxChange){for(var i=!0,a=0;a<r.length;a++)i=i&&r[a]();if(i)return!1}r.length&&(t.remove(e.labelGroup),IC(e,null,null,null))}return!0}function PC(e,t,n,r,i,a){var o=i.axis,s=Re(e.raw.axisLabelShow,i.get([`axisLabel`,`show`])),c=new ud;n.add(c);var l=Gx(r);if(!s||o.scale.isBlank()){IC(t,[],c,l);return}var u=i.getModel(`axisLabel`),d=o.getViewLabels(l),f=(Re(e.raw.labelRotate,u.get(`rotate`))||0)*uC/180,p=SC.innerTextLayout(e.rotation,f,e.labelDirection),m=i.getCategories&&i.getCategories(!0),h=[],g=i.get(`triggerEvent`),_=1/0,v=-1/0;z(d,function(e,t){var n,r=e.tick,s=e.formattedLabel,l=e.rawLabel,f=u,y=_x(o.scale,r);if(m&&m[y]){var b=m[y];W(b)&&b.textStyle&&(f=new Wp(b.textStyle,u,i.ecModel))}var x=f.getTextColor()||i.get([`axisLine`,`lineStyle`,`color`]),S=f.getShallow(`align`,!0)||p.textAlign,C=G(f.getShallow(`alignMinLabel`,!0),S),w=G(f.getShallow(`alignMaxLabel`,!0),S),T=f.getShallow(`verticalAlign`,!0)||f.getShallow(`baseline`,!0)||p.textVerticalAlign,E=G(f.getShallow(`verticalAlignMinLabel`,!0),T),D=G(f.getShallow(`verticalAlignMaxLabel`,!0),T),O=10+(((n=r.time)==null?void 0:n.level)||0);_=Math.min(_,O),v=Math.max(v,O);var k=new ds({x:0,y:0,rotation:0,silent:SC.isLabelSilent(i),z2:O,style:xp(f,{text:s,align:t===0?C:t===d.length-1?w:S,verticalAlign:t===0?E:t===d.length-1?D:T,fill:H(x)?x(o.type===`category`?l:o.type===`value`?y+``:y,t):x})});k.anid=`label_`+y;var A=pC(k);if(A.labelInfo=e,A.layoutRotation=p.rotation,tp({el:k,componentModel:i,itemName:s,formatterParamsExtra:{isTruncated:function(){return k.isTruncated},value:l,tickIndex:t}}),g){var j=SC.makeAxisEventDataBase(i);j.targetType=`axisLabel`,j.value=l,j.tickIndex=t;var M=e.tick.break;if(M){var ee=M.parsedBreak;j.break={start:ee.vmin,end:ee.vmax}}o.type===`category`&&(j.dataIndex=y),Z(k).eventData=j,M&&VC(i,a,k,M)}h.push(k),c.add(k)}),IC(t,B(h,function(e){return{label:e,priority:pC(e).labelInfo.tick.break?e.z2+(v-_+1):e.z2,defaultAttr:{ignore:e.ignore}}}),c,l)}function FC(e){return!!e.labelLayoutList}function IC(e,t,n,r){e.labelLayoutList=t,e.labelGroup=n,e.axisLabelsCreationContext=r}function LC(e,t,n,r){var i=t.get([`axisLabel`,`margin`]);z(n,function(n,a){var o=XS(n);if(o){var s=o.label,c=pC(s);o.suggestIgnore=s.ignore,s.ignore=!1,jr(RC,zC);var l=t.axis;RC.x=l.dataToCoord(_x(l.scale,c.labelInfo.tick)),RC.y=e.labelOffset+e.labelDirection*i,RC.rotation=c.layoutRotation,r.add(RC),RC.updateTransform(),r.remove(RC),RC.decomposeTransform(),jr(s,RC),s.markRedraw(),JS(o,!0),XS(o)}})}var RC=new os,zC=new os;function BC(e){return!!e}function VC(e,t,n,r){n.on(`click`,function(n){var i={type:lC,breaks:[{start:r.parsedBreak.breakOption.start,end:r.parsedBreak.breakOption.end}]};i[e.axis.dim+`AxisIndex`]=e.componentIndex,t.dispatchAction(i)})}function HC(e,t,n){var r=jg();if(r){var i=r.retrieveAxisBreakPairs(n,function(e){return e&&pC(e.label).labelInfo.tick.break},!0),a=e.get([`breakLabelLayout`,`moveOverlap`],!0);(a===!0||a===`auto`)&&z(i,function(r){cC().adjustBreakLabelPair(e.axis.inverse,t,[XS(n[r[0]]),XS(n[r[1]])])})}}function UC(e,t,n){n=n||{};var r=t.axis,i={},a=r.getAxesOnZeroOf()[0],o=r.position,s=a?`onZero`:o,c=r.dim,l=[e.x,e.x+e.width,e.y,e.y+e.height],u={left:0,right:1,top:0,bottom:1,onZero:2},d=t.get(`offset`)||0,f=c===`x`?[l[2]-d,l[3]+d]:[l[0]-d,l[1]+d];if(a){var p=a.toGlobalCoord(a.dataToCoord(0));f[u.onZero]=Math.max(Math.min(p,f[1]),f[0])}i.position=[c===`y`?f[u[s]]:l[0],c===`x`?f[u[s]]:l[3]],i.rotation=Math.PI/2*(c===`x`?0:1),i.labelDirection=i.tickDirection=i.nameDirection={top:-1,bottom:1,left:-1,right:1}[o],i.labelOffset=a?f[u[o]]-f[u.onZero]:0,t.get([`axisTick`,`inside`])&&(i.tickDirection=-i.tickDirection),Re(n.labelInside,t.get([`axisLabel`,`inside`]))&&(i.labelDirection=-i.labelDirection);var m=t.get([`axisLabel`,`rotate`]);return i.labelRotate=s===`top`?-m:m,i.z2=1,i}function WC(e){return e.coordinateSystem&&e.coordinateSystem.type===`cartesian2d`}function GC(e){var t={xAxisModel:null,yAxisModel:null};return z(t,function(n,r){var i=r.replace(/Model$/,``);t[r]=e.getReferringComponents(i,Xc).models[0]}),t}function KC(e,t,n,r,i,a){for(var o=UC(e,n),s=!1,c=!1,l=0;l<t.length;l++)vb(t[l].getOtherAxis(n.axis).scale)&&(s=c=!0,n.axis.type===`category`&&n.axis.onBand&&(c=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=c,o.defaultNameMoveOverlap=a,new SC(n,r,o,i)}function qC(e,t,n){var r=UC(t,n);e.updateCfg(r)}function JC(e){return e.dim+`_`+e.index}var YC=Kc(),XC=3,ZC=function(){function e(e,t,n,r,i){var a=Sb(e),o=a?t.getCategories().length:null,s;if(a){var c=t.getCategories(!0);s=c&&!c.length}var l=n.slice();(yb(e)||xb(e)||bb(e))&&(ol(l,$C(e,t.get(`dataMin`,!0))),sl(l,$C(e,t.get(`dataMax`,!0)))),dl(l)||(l[0]=l[1]=NaN);var u=[],d=[!1,!1],f=t.get(`min`,!0);f===`dataMin`?(u[0]=l[0],d[0]=!0):(u[0]=$C(e,H(f)?f({min:l[0],max:l[1]}):f),d[0]=u[0]!=null);var p=t.get(`max`,!0);p===`dataMax`?(u[1]=l[1],d[1]=!0):(u[1]=$C(e,H(p)?p({min:l[0],max:l[1]}):p),d[1]=u[1]!=null);var m=ew(e,t),h=a?null:l[1]-l[0]||Math.abs(l[0]);u[0]==null&&(u[0]=a?s?l[0]:o?0:NaN:l[0]-m[0]*h),u[1]==null&&(u[1]=a?s?l[1]:o?o-1:NaN:l[1]+m[1]*h),!ll(u[0])&&(u[0]=NaN),!ll(u[1])&&(u[1]=NaN);var g=s||Le(u[0])||Le(u[1])||a&&!o,_=yb(e),v=_&&t.needIncludeZero&&t.needIncludeZero();v&&(u[0]>0&&u[1]>0&&!d[0]&&(u[0]=0),u[0]<0&&u[1]<0&&!d[1]&&(u[1]=0));var y=!1;u[0]>u[1]&&(u.reverse(),y=!0);var b=$C(e,t.get(`startValue`,!0)),x=b!=null;!hc(b)&&r&&(b=e.getDefaultStartValue?e.getDefaultStartValue():0),hc(b)&&(x||!_||v)&&(b<u[0]&&!d[0]?(u[0]=b,d[0]=!0):b>u[1]&&!d[1]&&(u[1]=b,d[1]=!0)),QC(this._i={scale:e,dataMM:l,noZoomEffMM:u,zoomMM:[],fixMM:d,zoomFixMM:[!1,!1],startValue:b,isBlank:g,incl0:v,tggAxInv:y,ctnShp:i},u)}return e.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},e.prototype.makeFinal=function(){var e=this._i,t=e.zoomMM,n=e.noZoomEffMM,r=e.zoomFixMM,i=e.fixMM,a={fixMM:i,zoomFixMM:r,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:n.slice()},o=a.effMM;return t[0]!=null&&(o[0]=t[0],i[0]=r[0]=!0),t[1]!=null&&(o[1]=t[1],i[1]=r[1]=!0),QC(e,o),a},e.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},e.prototype.setZoomMM=function(e,t){this._i.zoomMM[e]=t},e}();function QC(e,t){var n=e.scale,r=e.dataMM;n.sanitize&&(t[0]=n.sanitize(t[0],r),t[1]=n.sanitize(t[1],r),fl(t))}function $C(e,t){return t==null?null:Le(t)?NaN:e.parse(t)}function ew(e,t){var n;if(Sb(e))n=[0,0];else{var r=t.get(`boundaryGap`);typeof r==`boolean`&&(r=null),n=V(r)?r:[r,r]}return[tw(n[0]),tw(n[1])]}function tw(e){return Yn(typeof e==`boolean`?0:e,1)||0}function nw(e){var t=YC(e.scale);return t.extent||(t.extent=il()),t}function rw(e,t){nw(e).dimIdxInCoord=t.get(e.dim)}function iw(e,t){var n=e.scale,r=e.model,i=e.dim;n.rawExtentInfo||aw(n,e,i,r,t)}function aw(e,t,n,r,i){var a=nw(t),o=a.extent,s=!1;CS(t,function(r){if(r.boxCoordinateSystem){var i=Lh(r).coord,c=a.dimIdxInCoord;if(c>=0&&V(i)){var l=i[c];l!=null&&!V(l)&&al(o,e.parse(l))}}else if(r.coordinateSystem){var u=r.getData();if(u){var d=e.getFilter?e.getFilter():null;z(dx(u,n),function(e){cl(o,u.getApproximateExtent(e,d))})}r.__requireStartValue&&r.__requireStartValue(t)&&(s=!0)}});var c=dw(e,t,r);sw(e,new ZC(e,r,o,s,c),i),a.extent=null}function ow(e,t){var n=e.scale;sw(n,new ZC(n,e.model,t,!1,!1),XC)}function sw(e,t,n){e.rawExtentInfo=t,t.from=n}function cw(e,t){lw.set(e,t)}var lw=K();function uw(e,t,n,r,i){e.rawExtentInfo||ow({scale:e,model:t},i||il());var a=e.rawExtentInfo.makeFinal(),o=a.effMM;return e.setExtent(o[0],o[1]),e.setBlank(a.isBlank),r&&a.tggAxInv&&n&&!n.get(`legacyMinMaxDontInverseAxis`)&&(r.inverse=!r.inverse),a}function dw(e,t,n){var r=vx(e,n),i=n.get(`containShape`,!0);if(i==null&&!r&&(i=!0),!i)return!1;var a=!1;return DS(t,function(e){a=!!lw.get(e)||a}),a}function fw(e,t,n,r){if(n.ctnShp){var i;if(DS(e,function(t){var n=lw.get(t);if(n){var a=n(e,r);a&&(i=i||[0,0],ol(i,a[0]),sl(i,a[1]),ax(e))}}),i){var a=t.getExtent();if(Sb(t))e.onBand||t.setExtent2(1,Os(a[0],a[0]+i[0]),ks(a[1],a[1]+i[1]));else{var o=a.slice();n.zoomFixMM[0]||(o[0]=Os(o[0],t.transformOut(t.transformIn(o[0],null)+i[0],null))),n.zoomFixMM[1]||(o[1]=ks(o[1],t.transformOut(t.transformIn(o[1],null)+i[1],null))),(o[0]<a[0]||o[1]>a[1])&&t.setExtent2(1,o[0],o[1])}}}}function pw(){kS(`liPosMinGap`,mw)}function mw(e,t,n){var r=K(),i=n.serUids,a=n.liPosMinGap,o,s=t.axis,c=s.scale,l=c.needTransform(),u=c.getFilter?c.getFilter():null,d=qm(u);function f(n){TS(e,t.sers,function(e){var t=e.getRawData(),r=t.getDimensionIndex(t.mapDimension(s.dim));r>=0&&n(r,e,t.getStore())})}var p=0;if(f(function(e,t,n){r.set(t.uid,1),(!i||!i.hasKey(t.uid))&&(o=!0),p+=n.count()}),(!i||i.keys().length!==r.keys().length)&&(o=!0),!o&&a!=null){t.liPosMinGap=a;return}jy(hw,p);var m=0;f(function(e,t,n){for(var r=0,i=n.count();r<i;++r){var a=n.get(e,r);isFinite(a)&&(!u||Jm(d,a))&&(l&&(a=c.transformIn(a,null)),hw.arr[m++]=a)}});var h=hw.typed?hw.arr.subarray(0,m):(hw.arr.length=m,hw.arr);hw.typed?h.sort():Ks(h);for(var g=1/0,_=1;_<m;++_){var v=h[_]-h[_-1];v>0&&v<g&&(g=v)}n.liPosMinGap=t.liPosMinGap=hc(g)?g:m>0?-2:-1,n.serUids=r}var hw=jy({ctor:ky},50);function gw(e){return function(t,n){var r=IS(t,{fromStat:{key:e}});if(hc(r.w2))return[-r.w2/2,r.w2/2]}}function _w(e,t){return e+`|&`+t}function vw(e){return pw(),{liPosMinGap:!Sb(e.scale)}}function yw(e,t,n,r){NS(e,{key:t,seriesType:n,coordSysType:r,getMetrics:vw})}function bw(e){return e.scale.rawExtentInfo.makeRenderInfo().startValue}var xw={left:0,right:0,top:0,bottom:0},Sw=[`25%`,`25%`],Cw=`cartesian2d`,ww=function(e){T(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(t,n){var r=W_(t.outerBounds);e.prototype.mergeDefaultAndTheme.apply(this,arguments),r&&t.outerBounds&&U_(t.outerBounds,r)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&U_(this.option.outerBounds,t.outerBounds)},t.type=`grid`,t.dependencies=[`xAxis`,`yAxis`],t.layoutMode=`box`,t.defaultOption={show:!1,z:0,left:`15%`,top:65,right:`10%`,bottom:80,containLabel:!1,outerBoundsMode:`auto`,outerBounds:xw,outerBoundsContain:`all`,outerBoundsClampWidth:Sw[0],outerBoundsClampHeight:Sw[1],backgroundColor:Q.color.transparent,borderWidth:1,borderColor:Q.color.neutral30},t}(q_),Tw=pl(),Ew=`__ec_stack_`;function Dw(e){return e.get(`stack`)||Ew+e.seriesIndex}function Ow(e,t){var n=kw(e,t);return n.columnMap=Aw(n),n}function kw(e,t){var n=_w(t,Cw),r=[],i=IS(e,{fromStat:{key:n},min:1});return wS(e,n,function(e){r.push({barWidth:Bs(e.get(`barWidth`),i.w),barMaxWidth:Bs(e.get(`barMaxWidth`),i.w),barMinWidth:Bs(e.get(`barMinWidth`)||(Nw(e)?.5:1),i.w),barGap:e.get(`barGap`),barCategoryGap:e.get(`barCategoryGap`),defaultBarGap:e.get(`defaultBarGap`),stackId:Dw(e)})}),{bandWidthResult:i,seriesInfo:r}}function Aw(e){var t=e.bandWidthResult.w,n=t,r=0,i,a,o=[],s={};z(e.seriesInfo,function(e,t){t||(a=e.defaultBarGap||0);var c=e.stackId;q(s,c)||r++;var l=s[c];l||(l=s[c]={width:0,maxWidth:0},o.push(c));var u=e.barWidth;u&&!l.width&&(l.width=u,u=Os(n,u),n-=u);var d=e.barMaxWidth;d&&(l.maxWidth=d);var f=e.barMinWidth;f&&(l.minWidth=f);var p=e.barGap;p!=null&&(a=p);var m=e.barCategoryGap;m!=null&&(i=m)}),i==null&&(i=ks(35-o.length*4,15)+`%`);var c=Bs(i,t),l=Bs(a,1),u=(n-c)/(r+(r-1)*l);u=ks(u,0),z(o,function(e){var t=s[e],i=t.maxWidth,a=t.minWidth;if(t.width){var o=t.width;i&&(o=Os(o,i)),a&&(o=ks(o,a)),t.width=o,n-=o+l*o,r--}else{var o=u;i&&i<o&&(o=Os(i,n)),a&&a>o&&(o=a),o!==u&&(t.width=o,n-=o+l*o,r--)}}),u=(n-c)/(r+(r-1)*l),u=ks(u,0);var d=0,f;z(o,function(e){var t=s[e];t.width||(t.width=u),f=t,d+=t.width*(1+l)}),f&&(d-=f.width*l);var p={},m=-d/2;return z(o,function(e){var n=s[e];p[e]=p[e]||{bandWidth:t,offset:m,width:n.width},m+=n.width*(1+l)}),p}function jw(e){return{seriesType:e,overallReset:function(t){var n=_w(e,Cw);ES(t,n,function(t){var r=Ow(t,e);wS(t,n,function(e){var t=r.columnMap[Dw(e)];e.getData().setLayout({bandWidth:t.bandWidth,offset:t.offset,size:t.width})})})}}}function Mw(e){return{seriesType:e,plan:Vy(),reset:function(e){if(WC(e)){var t=e.getData(),n=e.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),a=t.getDimensionIndex(t.mapDimension(i.dim)),o=t.getDimensionIndex(t.mapDimension(r.dim)),s=e.get(`showBackground`,!0),c=t.mapDimension(i.dim),l=t.getCalculationInfo(`stackResultDimension`),u=Kh(t,c)&&!!t.getCalculationInfo(`stackedOnSeries`),d=i.isHorizontal(),f=i.toGlobalCoord(i.dataToCoord(bw(i))),p=Nw(e),m=e.get(`barMinHeight`)||0,h=l&&t.getDimensionIndex(l),g=t.getLayout(`size`),_=t.getLayout(`offset`);return{progress:function(e,t){for(var r=e.count,i=p&&Ay(r*3),c=p&&s&&Ay(r*3),l=p&&Ay(r),v=n.master.getRect(),y=d?v.width:v.height,b,x=t.getStore(),S=0;(b=e.next())!=null;){var C=x.get(u?h:a,b),w=x.get(o,b),T=f,E=void 0;u&&(E=+C-x.get(a,b));var D=void 0,O=void 0,k=void 0,A=void 0;if(d){var j=n.dataToPoint([C,w]);u&&(T=n.dataToPoint([E,w])[0]),D=T,O=j[1]+_,k=j[0]-T,A=g,As(k)<m&&(k=(k<0?-1:1)*m)}else{var j=n.dataToPoint([w,C]);u&&(T=n.dataToPoint([w,E])[1]),D=j[0]+_,O=T,k=g,A=j[1]-T,As(A)<m&&(A=(A<=0?-1:1)*m)}p?(i[S]=D,i[S+1]=O,i[S+2]=d?k:A,c&&(c[S]=d?v.x:D,c[S+1]=d?O:v.y,c[S+2]=y),l[b]=b):t.setItemLayout(b,{x:D,y:O,width:k,height:A}),S+=3}p&&t.setLayout({largePoints:i,largeDataIndices:l,largeBackgroundPoints:c,valueAxisHorizontal:d})}}}}}}function Nw(e){return e.pipelineContext&&e.pipelineContext.large}function Pw(e){return gw(_w(e,Cw))}function Fw(e){Tw(e,function(){function t(t){var n=_w(t,Cw);yw(e,n,t,Cw),cw(n,Pw(t))}t(`bar`),t(`pictorialBar`)})}var Iw=function(e){T(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(e,t){return Xh(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,t,n){var r=this.coordinateSystem;if(r&&r.clampData){var i=r.clampData(e),a=r.dataToPoint(i);if(n)z(r.getAxes(),function(e,n){if(e.type===`category`&&t!=null){var r=e.getTicksCoords(),o=e.getTickModel().get(`alignWithLabel`),s=i[n],c=t[n]===`x1`||t[n]===`y1`;if(c&&!o&&(s+=1),r.length<2)return;if(r.length===2){a[n]=e.toGlobalCoord(e.getExtent()[+!!c]);return}for(var l=void 0,u=void 0,d=1,f=0;f<r.length;f++){var p=r[f].coord,m=f===r.length-1?r[f-1].tickValue+d:r[f].tickValue;if(m===s){u=p;break}if(m<s)l=p;else if(l!=null&&m>s){u=(p+l)/2;break}f===1&&(d=m-r[0].tickValue)}u==null&&(l?l&&(u=r[r.length-1].coord):u=r[0].coord),a[n]=e.toGlobalCoord(u)}});else{var o=this.getData(),s=o.getLayout(`offset`),c=o.getLayout(`size`),l=+!r.getBaseAxis().isHorizontal();a[l]+=s+c/2}return a}return[NaN,NaN]},t.prototype.__requireStartValue=function(e){return this.getBaseAxis()!==e},t.type=`series.__base_bar__`,t.defaultOption={z:2,coordinateSystem:`cartesian2d`,legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:`mod`,defaultBarGap:`10%`},t}(Xv);Xv.registerClass(Iw);var Lw=function(e){T(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(){return Xh(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get(`realtimeSort`,!0)||null})},t.prototype.getProgressive=function(){return this.get(`large`)?this.get(`progressive`):!1},t.prototype.__preparePipelineContext=function(e,t){var n=yl(this,e,t);return n.progressiveRender&&(n.large=!0),n},t.prototype.brushSelector=function(e,t,n){return n.rect(t.getItemLayout(e))},t.type=`series.bar`,t.dependencies=[`grid`,`polar`],t.defaultOption=rg(Iw.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:`rgba(180, 180, 180, 0.2)`,borderColor:null,borderWidth:0,borderType:`solid`,borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:Q.color.primary,borderWidth:2}},realtimeSort:!1}),t}(Iw),Rw=`\0__throttleOriginMethod`,zw=`\0__throttleRate`,Bw=`\0__throttleType`;function Vw(e,t,n){var r,i=0,a=0,o=null,s,c,l,u;t=t||0;function d(){a=new Date().getTime(),o=null,e.apply(c,l||[])}var f=function(){var e=[...arguments];r=new Date().getTime(),c=this,l=e;var f=u||t,p=u||n;u=null,s=r-(p?i:a)-f,clearTimeout(o),p?o=setTimeout(d,f):s>=0?d():o=setTimeout(d,-s),i=r};return f.clear=function(){o&&(clearTimeout(o),o=null)},f.debounceNextCall=function(e){u=e},f}function Hw(e,t,n,r){var i=e[t];if(i){var a=i[Rw]||i,o=i[Bw];if(i[zw]!==n||o!==r){if(n==null||!r)return e[t]=a;i=e[t]=Vw(a,n,r===`debounce`),i[Rw]=a,i[Bw]=r,i[zw]=n}return i}}function Uw(e,t){var n=e[t];n&&n[Rw]&&(n.clear&&n.clear(),e[t]=n[Rw])}var Ww=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),Gw=function(e){T(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`sausage`,n}return t.prototype.getDefaultShape=function(){return new Ww},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r0||0,0),a=Math.max(t.r,0),o=(a-i)*.5,s=i+o,c=t.startAngle,l=t.endAngle,u=t.clockwise,d=Math.PI*2,f=u?l-c<d:c-l<d;f||(c=l-(u?d:-d));var p=Math.cos(c),m=Math.sin(c),h=Math.cos(l),g=Math.sin(l);f?(e.moveTo(p*i+n,m*i+r),e.arc(p*s+n,m*s+r,o,-Math.PI+c,c,!u)):e.moveTo(p*a+n,m*a+r),e.arc(n,r,a,c,l,!u),e.arc(h*s+n,g*s+r,o,l-Math.PI*2,l-Math.PI,!u),i!==0&&e.arc(n,r,i,l,c,u)},t}(Ko);function Kw(e,t){t=t||{};var n=t.isRoundCap;return function(t,r,i){var a=r.position;if(!a||a instanceof Array)return Xn(t,r,i);var o=e(a),s=r.distance==null?5:r.distance,c=this.shape,l=c.cx,u=c.cy,d=c.r,f=c.r0,p=(d+f)/2,m=c.startAngle,h=c.endAngle,g=(m+h)/2,_=n?Math.abs(d-f)/2:0,v=Math.cos,y=Math.sin,b=l+d*v(m),x=u+d*y(m),S=`left`,C=`top`;switch(o){case`startArc`:b=l+(f-s)*v(g),x=u+(f-s)*y(g),S=`center`,C=`top`;break;case`insideStartArc`:b=l+(f+s)*v(g),x=u+(f+s)*y(g),S=`center`,C=`bottom`;break;case`startAngle`:b=l+p*v(m)+Jw(m,s+_,!1),x=u+p*y(m)+Yw(m,s+_,!1),S=`right`,C=`middle`;break;case`insideStartAngle`:b=l+p*v(m)+Jw(m,-s+_,!1),x=u+p*y(m)+Yw(m,-s+_,!1),S=`left`,C=`middle`;break;case`middle`:b=l+p*v(g),x=u+p*y(g),S=`center`,C=`middle`;break;case`endArc`:b=l+(d+s)*v(g),x=u+(d+s)*y(g),S=`center`,C=`bottom`;break;case`insideEndArc`:b=l+(d-s)*v(g),x=u+(d-s)*y(g),S=`center`,C=`top`;break;case`endAngle`:b=l+p*v(h)+Jw(h,s+_,!0),x=u+p*y(h)+Yw(h,s+_,!0),S=`left`,C=`middle`;break;case`insideEndAngle`:b=l+p*v(h)+Jw(h,-s+_,!0),x=u+p*y(h)+Yw(h,-s+_,!0),S=`right`,C=`middle`;break;default:return Xn(t,r,i)}return t=t||{},t.x=b,t.y=x,t.align=S,t.verticalAlign=C,t}}function qw(e,t,n,r){if(Ae(r)){e.setTextConfig({rotation:r});return}if(V(t)){e.setTextConfig({rotation:0});return}var i=e.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/2,c,l=n(t);switch(l){case`startArc`:case`insideStartArc`:case`middle`:case`insideEndArc`:case`endArc`:c=s;break;case`startAngle`:case`insideStartAngle`:c=a;break;case`endAngle`:case`insideEndAngle`:c=o;break;default:e.setTextConfig({rotation:0});return}var u=Math.PI*1.5-c;l===`middle`&&u>Math.PI/2&&u<Math.PI*1.5&&(u-=Math.PI),e.setTextConfig({rotation:u})}function Jw(e,t,n){return t*Math.sin(e)*(n?-1:1)}function Yw(e,t,n){return t*Math.cos(e)*(n?1:-1)}function Xw(e,t,n){var r=e.get(`borderRadius`);if(r==null)return n?{cornerRadius:0}:null;V(r)||(r=[r,r,r,r]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:B(r,function(e){return Yn(e,i)})}}var Zw=Math.max,Qw=Math.min,$w=function(e){T(t,e);function t(){var t=e.call(this)||this;return t.type=`bar`,t._isFirstFrame=!0,t}return t.prototype.render=function(e,t,n,r){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var i=e.get(`coordinateSystem`);(i===`cartesian2d`||i===`polar`)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n,r))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,t){this._progressiveEls=[],this._incrementalRenderLarge(e,t)},t.prototype.eachRendered=function(e){rp(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;(this._isLargeDraw==null||t!==this._isLargeDraw)&&(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e,t,n,r){var i=this.group,a=e.getData(),o=this._data,s=e.coordinateSystem,c=s.getBaseAxis(),l;s.type===`cartesian2d`?l=c.isHorizontal():s.type===`polar`&&(l=c.dim===`angle`);var u=e.isAnimationEnabled()?e:null,d=nT(e,s);d&&this._enableRealtimeSort(d,a,n);var f=e.get(`clip`,!0)||d,p=s.getArea();i.removeClipPath();var m=e.get(`roundCap`,!0),h=e.get(`showBackground`,!0),g=e.getModel(`backgroundStyle`),_=g.get(`borderRadius`)||0,v=[],y=this._backgroundEls,b=r&&r.isInitSort,x=r&&r.type===`changeAxisOrder`;function S(e){var t=cT[s.type](a,e);if(!t)return null;var n=yT(s,l,t);return n.useStyle(g.getItemStyle()),s.type===`cartesian2d`?n.setShape(`r`,_):n.setShape(`cornerRadius`,_),v[e]=n,n}a.diff(o).add(function(t){var n=a.getItemModel(t),r=cT[s.type](a,t,n);if(r&&(h&&S(t),a.hasValue(t)&&sT[s.type](r))){var o=!1;f&&(o=eT[s.type](p,r));var g=tT[s.type](e,a,t,r,l,u,c.model,!1,m);d&&(g.forceLabelAnimation=!0),dT(g,a,t,n,r,e,l,s.type===`polar`),b?g.attr({shape:r}):d?rT(d,u,g,r,t,l,!1,!1):hf(g,{shape:r},e,t),a.setItemGraphicEl(t,g),i.add(g),g.ignore=o}}).update(function(t,n){var r=a.getItemModel(t),C=cT[s.type](a,t,r);if(C){if(h){var w=void 0;y.length===0?w=S(n):(w=y[n],w.useStyle(g.getItemStyle()),s.type===`cartesian2d`?w.setShape(`r`,_):w.setShape(`cornerRadius`,_),v[t]=w);var T=cT[s.type](a,t),E=vT(l,T,s);mf(w,{shape:E},u,t)}var D=o.getItemGraphicEl(n);if(!a.hasValue(t)||!sT[s.type](C)){i.remove(D);return}var O=!1;if(f&&(O=eT[s.type](p,C),O&&i.remove(D)),D&&(D.type===`sector`&&m||D.type===`sausage`&&!m)&&(D&&yf(D,e,n),D=null),D?bf(D):D=tT[s.type](e,a,t,C,l,u,c.model,!0,m),d&&(D.forceLabelAnimation=!0),x){var k=D.getTextContent();if(k){var A=Ap(k);A.prevValue!=null&&(A.prevValue=A.value)}}else dT(D,a,t,r,C,e,l,s.type===`polar`);b?D.attr({shape:C}):d?rT(d,u,D,C,t,l,!0,x):mf(D,{shape:C},e,t,null),a.setItemGraphicEl(t,D),D.ignore=O,i.add(D)}}).remove(function(t){var n=o.getItemGraphicEl(t);n&&yf(n,e,t)}).execute();var C=this._backgroundGroup||(this._backgroundGroup=new ud);C.removeAll();for(var w=0;w<v.length;++w)C.add(v[w]);i.add(C),this._backgroundEls=v,this._data=a},t.prototype._renderLarge=function(e,t,n){this._clear(),hT(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,t){this._removeBackground(),hT(t,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var t=e.get(`clip`,!0)&&Qy(e.coordinateSystem,!1,e),n=this.group;t?n.setClipPath(t):n.removeClipPath()},t.prototype._enableRealtimeSort=function(e,t,n){var r=this;if(t.count()){var i=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(t,e,n),this._isFirstFrame=!1;else{var a=function(e){var n=t.getItemGraphicEl(e),r=n&&n.shape;return r&&Math.abs(i.isHorizontal()?r.height:r.width)||0};this._onRendered=function(){r._updateSortWithinSameData(t,a,i,n)},n.getZr().on(`rendered`,this._onRendered)}}},t.prototype._dataSort=function(e,t,n){var r=[];return e.each(e.mapDimension(t.dim),function(e,t){var i=n(t);i=i==null?NaN:i,r.push({dataIndex:t,mappedValue:i,ordinalNumber:e})}),r.sort(function(e,t){return t.mappedValue-e.mappedValue}),{ordinalNumbers:B(r,function(e){return e.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,t,n){for(var r=n.scale,i=e.mapDimension(n.dim),a=Number.MAX_VALUE,o=0,s=r.getOrdinalMeta().categories.length;o<s;++o){var c=e.rawIndexOf(i,r.getRawOrdinalNumber(o)),l=c<0?Number.MIN_VALUE:t(e.indexOfRawIndex(c));if(l>a)return!0;a=l}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,r=n.getExtent(),i=Math.max(0,r[0]),a=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=a;++i)if(e.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,r){if(this._isOrderChangedWithinSameData(e,t,n)){var i=this._dataSort(e,n,t);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:`changeAxisOrder`,componentType:n.dim+`Axis`,axisId:n.index,sortInfo:i}))}},t.prototype._dispatchInitSort=function(e,t,n){var r=t.baseAxis,i=this._dataSort(e,r,function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)});n.dispatchAction({type:`changeAxisOrder`,componentType:r.dim+`Axis`,isInitSort:!0,axisId:r.index,sortInfo:i})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off(`rendered`,this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(t){yf(t,e,Z(t).dataIndex)})):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type=`bar`,t}(Wy),eT={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=Zw(t.x,e.x),s=Qw(t.x+t.width,i),c=Zw(t.y,e.y),l=Qw(t.y+t.height,a),u=s<o,d=l<c;return t.x=u&&o>i?s:o,t.y=d&&c>a?l:c,t.width=u?0:s-o,t.height=d?0:l-c,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),u||d},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}var i=Qw(t.r,e.r),a=Zw(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}return o}},tT={cartesian2d:function(e,t,n,r,i,a,o,s,c){var l=new os({shape:I({},r),z2:1});if(l.__dataIndex=n,l.name=`item`,a){var u=l.shape,d=i?`height`:`width`;u[d]=0}return l},polar:function(e,t,n,r,i,a,o,s,c){var l=!i&&c?Gw:jd,u=new l({shape:r,z2:1});if(u.name=`item`,u.calculateTextPosition=Kw(uT(i),{isRoundCap:l===Gw}),a){var d=u.shape,f=i?`r`:`endAngle`,p={};d[f]=i?r.r0:r.startAngle,p[f]=r[f],(s?mf:hf)(u,{shape:p},a)}return u}};function nT(e,t){var n=e.get(`realtimeSort`,!0),r=t.getBaseAxis();if(n&&r.type===`category`&&t.type===`cartesian2d`)return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}function rT(e,t,n,r,i,a,o,s){var c,l;a?(l={x:r.x,width:r.width},c={y:r.y,height:r.height}):(l={y:r.y,height:r.height},c={x:r.x,width:r.width}),s||(o?mf:hf)(n,{shape:c},t,i,null);var u=t?e.baseAxis.model:null;(o?mf:hf)(n,{shape:l},u,i)}function iT(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return!0;return!1}var aT=[`x`,`y`,`width`,`height`],oT=[`cx`,`cy`,`r`,`startAngle`,`endAngle`],sT={cartesian2d:function(e){return!iT(e,aT)},polar:function(e){return!iT(e,oT)}},cT={cartesian2d:function(e,t,n){var r=e.getItemLayout(t);if(!r)return null;var i=n?fT(n,r):0,a=r.width>0?1:-1,o=r.height>0?1:-1;return{x:r.x+a*i/2,y:r.y+o*i/2,width:r.width-a*i,height:r.height-o*i}},polar:function(e,t,n){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function lT(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function uT(e){return function(e){var t=e?`Arc`:`Angle`;return function(e){switch(e){case`start`:case`insideStart`:case`end`:case`insideEnd`:return e+t;default:return e}}}(e)}function dT(e,t,n,r,i,a,o,s){var c=t.getItemVisual(n,`style`);if(!s){var l=r.get([`itemStyle`,`borderRadius`])||0;e.setShape(`r`,l)}else if(!a.get(`roundCap`)){var u=e.shape;I(u,Xw(r.getModel(`itemStyle`),u,!0)),e.setShape(u)}e.useStyle(c);var d=r.getShallow(`cursor`);d&&e.attr(`cursor`,d);var f=s?o?i.r>=i.r0?`endArc`:`startArc`:i.endAngle>=i.startAngle?`endAngle`:`startAngle`:o?bT(i,a.coordinateSystem):xT(i,a.coordinateSystem),p=bp(r);yp(e,p,{labelFetcher:a,labelDataIndex:n,defaultText:hy(a.getData(),n),inheritColor:c.fill,defaultOpacity:c.opacity,defaultOutsidePosition:f});var m=e.getTextContent();if(s&&m){var h=r.get([`label`,`position`]);e.textConfig.inside=h===`middle`||null,qw(e,h===`outside`?f:h,uT(o),r.get([`label`,`rotate`]))}jp(m,p,a.getRawValue(n),function(e){return gy(t,e)});var g=r.getModel([`emphasis`]);Au(e,g.get(`focus`),g.get(`blurScope`),g.get(`disabled`)),Pu(e,r),lT(i)&&(e.style.fill=`none`,e.style.stroke=`none`,z(e.states,function(e){e.style&&(e.style.fill=e.style.stroke=`none`)}))}function fT(e,t){var n=e.get([`itemStyle`,`borderColor`]);if(!n||n===`none`)return 0;var r=e.get([`itemStyle`,`borderWidth`])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,i,a)}var pT=function(){function e(){}return e}(),mT=function(e){T(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`largeBar`,n}return t.prototype.getDefaultShape=function(){return new pT},t.prototype.buildPath=function(e,t){for(var n=t.points,r=this.baseDimIdx,i=1-this.baseDimIdx,a=[],o=[],s=this.barWidth,c=0;c<n.length;c+=3)o[r]=s,o[i]=n[c+2],a[r]=n[c+r],a[i]=n[c+i],e.rect(a[0],a[1],o[0],o[1])},t}(Ko);function hT(e,t,n,r){var i=e.getData(),a=+!!i.getLayout(`valueAxisHorizontal`),o=i.getLayout(`largeDataIndices`),s=i.getLayout(`size`),c=e.getModel(`backgroundStyle`),l=i.getLayout(`largeBackgroundPoints`),u=r?vl(e):0;if(l){var d=new mT({shape:{points:l},incremental:u,silent:!0,z2:0});d.baseDimIdx=a,d.largeDataIndices=o,d.barWidth=s,d.useStyle(c.getItemStyle()),t.add(d),n&&n.push(d)}var f=new mT({shape:{points:i.getLayout(`largePoints`)},incremental:u,ignoreCoarsePointer:!0,z2:1});f.baseDimIdx=a,f.largeDataIndices=o,f.barWidth=s,t.add(f),f.useStyle(i.getVisual(`style`)),f.style.stroke=null,Z(f).seriesIndex=e.seriesIndex,e.get(`silent`)||(f.on(`mousedown`,gT),f.on(`mousemove`,gT)),n&&n.push(f)}var gT=Vw(function(e){var t=this,n=_T(t,e.offsetX,e.offsetY);Z(t).dataIndex=n>=0?n:null},30,!1);function _T(e,t,n){for(var r=e.baseDimIdx,i=1-r,a=e.shape.points,o=e.largeDataIndices,s=[],c=[],l=e.barWidth,u=0,d=a.length/3;u<d;u++){var f=u*3;if(c[r]=l,c[i]=a[f+2],s[r]=a[f+r],s[i]=a[f+i],c[i]<0&&(s[i]+=c[i],c[i]=-c[i]),t>=s[0]&&t<=s[0]+c[0]&&n>=s[1]&&n<=s[1]+c[1])return o[u]}return-1}function vT(e,t,n){if($y(n,`cartesian2d`)){var r=t,i=n.getArea();return{x:e?r.x:i.x,y:e?i.y:r.y,width:e?r.width:i.width,height:e?i.height:r.height}}var i=n.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}function yT(e,t,n){return new(e.type===`polar`?jd:os)({shape:vT(t,n,e),silent:!0,z2:0})}function bT(e,t){return e.height===0?t.getOtherAxis(t.getBaseAxis()).inverse?`bottom`:`top`:e.height>0?`bottom`:`top`}function xT(e,t){return e.width===0?t.getOtherAxis(t.getBaseAxis()).inverse?`left`:`right`:e.width>=0?`right`:`left`}function ST(e){e.registerChartView($w),e.registerSeriesModel(Lw),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,jw(`bar`)),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Mw(`bar`)),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Bx(`bar`)),e.registerAction({type:`changeAxisOrder`,event:`changeAxisOrder`,update:`update`},function(e,t){var n=e.componentType||`series`;t.eachComponent({mainType:n,query:e},function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)})}),Fw(e)}function CT(e,t){function n(t,n){var r=[];return t.eachComponent({mainType:`series`,subType:e,query:n},function(e){r.push(e.seriesIndex)}),r}z([[e+`ToggleSelect`,`toggleSelect`],[e+`Select`,`select`],[e+`UnSelect`,`unselect`]],function(e){t(e[0],function(t,r,i){t=I({},t),i.dispatchAction(I(t,{type:e[1],seriesIndex:n(r,t)}))})})}function wT(e,t,n,r,i){var a=e+t;n.isSilent(a)||r.eachComponent({mainType:`series`,subType:`pie`},function(e){for(var t=e.seriesIndex,r=e.option.selectedMap,o=i.selected,s=0;s<o.length;s++)if(o[s].seriesIndex===t){var c=e.getData(),l=Gc(c,i.fromActionPayload);n.trigger(a,{type:a,seriesId:e.id,name:V(l)?c.getName(l[0]):c.getName(l),selected:U(r)?r:I({},r)})}})}function TT(e,t,n){e.on(`selectchanged`,function(e){var r=n.getModel();e.isFromClick?(wT(`map`,`selectchanged`,t,r,e),wT(`pie`,`selectchanged`,t,r,e)):e.fromAction===`select`?(wT(`map`,`selected`,t,r,e),wT(`pie`,`selected`,t,r,e)):e.fromAction===`unselect`&&(wT(`map`,`unselected`,t,r,e),wT(`pie`,`unselected`,t,r,e))})}function ET(e){return{seriesType:e,reset:function(e,t){var n=t.findComponents({mainType:`legend`});if(n&&n.length){var r=e.getData();r.filterSelf(function(e){for(var t=r.getName(e),i=0;i<n.length;i++)if(!n[i].isSelected(t))return!1;return!0})}}}}function DT(e,t,n){t=V(t)&&{coordDimensions:t}||I({encodeDefine:e.getEncode()},t);var r=e.getSource(),i=Oh(r,t).dimensions,a=new Eh(i,e);return a.initData(r,n),a}var OT=function(){function e(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return e.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},e.prototype.containName=function(e){return this._getRawData().indexOfName(e)>=0},e.prototype.indexOfName=function(e){return this._getDataWithEncodedVisual().indexOfName(e)},e.prototype.getItemVisual=function(e,t){return this._getDataWithEncodedVisual().getItemVisual(e,t)},e}(),kT=Kc(),AT=function(e){T(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new OT(De(this.getData,this),De(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return DT(this,{coordDimensions:[`value`],encodeDefaulter:Oe(Qp,this)})},t.prototype.getDataParams=function(t){var n=this.getData(),r=kT(n),i=r.seats;if(!i){var a=[];n.each(n.mapDimension(`value`),function(e){a.push(e)}),i=r.seats=Qs(a,n.hostModel.get(`percentPrecision`))}var o=e.prototype.getDataParams.call(this,t);return o.percent=i[t]||0,o.$vars.push(`percent`),o},t.prototype._defaultLabelLine=function(e){Ec(e,`labelLine`,[`show`]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type=`series.pie`,t.defaultOption={z:2,legendHoverLink:!0,colorBy:`data`,center:[`50%`,`50%`],radius:[0,`50%`],clockwise:!0,startAngle:90,endAngle:`auto`,padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:`box`,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:`truncate`,position:`outer`,alignTo:`none`,edgeDistance:`25%`,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:`solid`}},itemStyle:{borderWidth:1,borderJoin:`round`},showEmptyCircle:!0,emptyCircleStyle:{color:`lightgray`,opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:`expansion`,animationDuration:1e3,animationTypeUpdate:`transition`,animationEasingUpdate:`cubicInOut`,animationDurationUpdate:500,animationEasing:`cubicInOut`},t}(Xv);Fh({fullType:AT.type,getCoord2:function(e){return e.getShallow(`center`)}});var jT=Math.PI*2,MT=xo.CMD,NT=[`top`,`right`,`bottom`,`left`];function PT(e,t,n,r,i){var a=n.width,o=n.height;switch(e){case`top`:r.set(n.x+a/2,n.y-t),i.set(0,-1);break;case`bottom`:r.set(n.x+a/2,n.y+o+t),i.set(0,1);break;case`left`:r.set(n.x-t,n.y+o/2),i.set(-1,0);break;case`right`:r.set(n.x+a+t,n.y+o/2),i.set(1,0)}}function FT(e,t,n,r,i,a,o,s,c){o-=e,s-=t;var l=Math.sqrt(o*o+s*s);o/=l,s/=l;var u=o*n+e,d=s*n+t;if(Math.abs(r-i)%jT<1e-4)return c[0]=u,c[1]=d,l-n;if(a){var f=r;r=Eo(i),i=Eo(f)}else r=Eo(r),i=Eo(i);r>i&&(i+=jT);var p=Math.atan2(s,o);if(p<0&&(p+=jT),p>=r&&p<=i||p+jT>=r&&p+jT<=i)return c[0]=u,c[1]=d,l-n;var m=n*Math.cos(r)+e,h=n*Math.sin(r)+t,g=n*Math.cos(i)+e,_=n*Math.sin(i)+t,v=(m-o)*(m-o)+(h-s)*(h-s),y=(g-o)*(g-o)+(_-s)*(_-s);return v<y?(c[0]=m,c[1]=h,Math.sqrt(v)):(c[0]=g,c[1]=_,Math.sqrt(y))}function IT(e,t,n,r,i,a,o,s){var c=i-e,l=a-t,u=n-e,d=r-t,f=Math.sqrt(u*u+d*d);u/=f,d/=f;var p=(c*u+l*d)/f;s&&(p=Math.min(Math.max(p,0),1)),p*=f;var m=o[0]=e+p*u,h=o[1]=t+p*d;return Math.sqrt((m-i)*(m-i)+(h-a)*(h-a))}function LT(e,t,n,r,i,a,o){n<0&&(e+=n,n=-n),r<0&&(t+=r,r=-r);var s=e+n,c=t+r,l=o[0]=Math.min(Math.max(i,e),s),u=o[1]=Math.min(Math.max(a,t),c);return Math.sqrt((l-i)*(l-i)+(u-a)*(u-a))}var RT=[];function zT(e,t,n){var r=LT(t.x,t.y,t.width,t.height,e.x,e.y,RT);return n.set(RT[0],RT[1]),r}function BT(e,t,n){for(var r=0,i=0,a=0,o=0,s,c,l=1/0,u=t.data,d=e.x,f=e.y,p=0;p<u.length;){var m=u[p++];p===1&&(r=u[p],i=u[p+1],a=r,o=i);var h=l;switch(m){case MT.M:a=u[p++],o=u[p++],r=a,i=o;break;case MT.L:h=IT(r,i,u[p],u[p+1],d,f,RT,!0),r=u[p++],i=u[p++];break;case MT.C:h=Yr(r,i,u[p++],u[p++],u[p++],u[p++],u[p],u[p+1],d,f,RT),r=u[p++],i=u[p++];break;case MT.Q:h=ni(r,i,u[p++],u[p++],u[p],u[p+1],d,f,RT),r=u[p++],i=u[p++];break;case MT.A:var g=u[p++],_=u[p++],v=u[p++],y=u[p++],b=u[p++],x=u[p++];p+=1;var S=!!(1-u[p++]);s=Math.cos(b)*v+g,c=Math.sin(b)*y+_,p<=1&&(a=s,o=c);var C=(d-g)*y/v+g;h=FT(g,_,y,b,b+x,S,C,f,RT),r=Math.cos(b+x)*v+g,i=Math.sin(b+x)*y+_;break;case MT.R:a=r=u[p++],o=i=u[p++];var w=u[p++],T=u[p++];h=LT(a,o,w,T,d,f,RT);break;case MT.Z:h=IT(r,i,a,o,d,f,RT,!0),r=a,i=o}h<l&&(l=h,n.set(RT[0],RT[1]))}return l}var VT=new Y,HT=new Y,UT=new Y,WT=new Y,GT=new Y;function KT(e,t){if(e){var n=e.getTextGuideLine(),r=e.getTextContent();if(r&&n){var i=e.textGuideLineConfig||{},a=[[0,0],[0,0],[0,0]],o=i.candidates||NT,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var c=1/0,l=i.anchor,u=e.getComputedTransform(),d=u&&Rt([],u),f=t.get(`length2`)||0;l&&UT.copy(l);for(var p=0;p<o.length;p++){var m=o[p];PT(m,0,s,VT,WT),Y.scaleAndAdd(HT,VT,WT,f),HT.transform(d);var h=e.getBoundingRect(),g=l?l.distance(HT):e instanceof Ko?BT(HT,e.path,UT):zT(HT,h,UT);g<c&&(c=g,HT.transform(u),UT.transform(u),UT.toArray(a[0]),HT.toArray(a[1]),VT.toArray(a[2]))}YT(a,t.get(`minTurnAngle`)),n.setShape({points:a})}}}var qT=[],JT=new Y;function YT(e,t){if(t<=180&&t>0){t=t/180*Math.PI,VT.fromArray(e[0]),HT.fromArray(e[1]),UT.fromArray(e[2]),Y.sub(WT,VT,HT),Y.sub(GT,UT,HT);var n=WT.len(),r=GT.len();if(!(n<.001||r<.001)){WT.scale(1/n),GT.scale(1/r);var i=WT.dot(GT);if(Math.cos(t)<i){var a=IT(HT.x,HT.y,UT.x,UT.y,VT.x,VT.y,qT,!1);JT.fromArray(qT),JT.scaleAndAdd(GT,a/Math.tan(Math.PI-t));var o=UT.x===HT.x?(JT.y-HT.y)/(UT.y-HT.y):(JT.x-HT.x)/(UT.x-HT.x);if(isNaN(o))return;o<0?Y.copy(JT,HT):o>1&&Y.copy(JT,UT),JT.toArray(e[1])}}}}function XT(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,VT.fromArray(e[0]),HT.fromArray(e[1]),UT.fromArray(e[2]),Y.sub(WT,HT,VT),Y.sub(GT,UT,HT);var r=WT.len(),i=GT.len();if(!(r<.001||i<.001)&&(WT.scale(1/r),GT.scale(1/i),WT.dot(t)<Math.cos(n))){var a=IT(HT.x,HT.y,UT.x,UT.y,VT.x,VT.y,qT,!1);JT.fromArray(qT);var o=Math.PI/2,s=o+Math.acos(GT.dot(t))-n;if(s>=o)Y.copy(JT,UT);else{JT.scaleAndAdd(GT,a/Math.tan(Math.PI/2-s));var c=UT.x===HT.x?(JT.y-HT.y)/(UT.y-HT.y):(JT.x-HT.x)/(UT.x-HT.x);if(isNaN(c))return;c<0?Y.copy(JT,HT):c>1&&Y.copy(JT,UT)}JT.toArray(e[1])}}}function ZT(e,t,n,r){var i=n===`normal`,a=i?e:e.ensureState(n);a.ignore=t;var o=r.get(`smooth`);o=o===!0?.3:Math.max(+o,0)||0,a.shape=a.shape||{},a.shape.smooth=o;var s=r.getModel(`lineStyle`).getLineStyle();i?e.useStyle(s):a.style=s}function QT(e,t){var n=t.smooth,r=t.points;if(r){if(e.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=an(r[0],r[1]),a=an(r[1],r[2]);if(!i||!a){e.lineTo(r[1][0],r[1][1]),e.lineTo(r[2][0],r[2][1]);return}var o=Math.min(i,a)*n,s=ln([],r[1],r[0],o/i),c=ln([],r[1],r[2],o/a),l=ln([],s,c,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],l[0],l[1]),e.bezierCurveTo(c[0],c[1],c[0],c[1],r[2][0],r[2][1])}else for(var u=1;u<r.length;u++)e.lineTo(r[u][0],r[u][1])}}function $T(e,t,n){var r=e.getTextGuideLine(),i=e.getTextContent();if(!i){r&&e.removeTextGuideLine();return}for(var a=t.normal,o=a.get(`show`),s=i.ignore,c=0;c<zl.length;c++){var l=zl[c],u=t[l],d=l===`normal`;if(u){var f=u.get(`show`);if((d?s:G(i.states[l]&&i.states[l].ignore,s))||!G(f,o)){var p=d?r:r&&r.states[l];p&&(p.ignore=!0),r&&ZT(r,!0,l,u);continue}r||(r=new zd,e.setTextGuideLine(r),!d&&(s||!o)&&ZT(r,!0,`normal`,t.normal),e.stateProxy&&(r.stateProxy=e.stateProxy)),ZT(r,!1,l,u)}}if(r){L(r.style,n),r.style.fill=null;var m=a.get(`showAbove`),h=e.textGuideLineConfig=e.textGuideLineConfig||{};h.showAbove=m||!1,r.buildPath=QT}}function eE(e,t){t=t||`labelLine`;for(var n={normal:e.getModel(t)},r=0;r<Rl.length;r++){var i=Rl[r];n[i]=e.getModel([i,t])}return n}var tE=Math.PI/180;function nE(e,t,n,r,i,a,o,s,c,l){if(e.length<2)return;function u(e){for(var a=e.rB,o=a*a,s=0;s<e.list.length;s++){var c=e.list[s],l=Math.abs(c.label.y-n),u=r+c.len,d=u*u,f=t+(Math.sqrt(Math.abs((1-l*l/o)*d))+c.len2)*i,p=f-c.label.x;iE(c,c.targetTextWidth-p*i,!0),c.label.x=f}}function d(e){for(var a={list:[],maxY:0},o={list:[],maxY:0},s=0;s<e.length;s++)if(e[s].labelAlignTo===`none`){var c=e[s],l=c.label.y>n?o:a,d=Math.abs(c.label.y-n);if(d>=l.maxY){var f=c.label.x-t-c.len2*i,p=r+c.len;l.rB=Math.abs(f)<p?Math.sqrt(d*d/(1-f*f/p/p)):p,l.maxY=d}l.list.push(c)}u(a),u(o)}for(var f=e.length,p=0;p<f;p++)if(e[p].position===`outer`&&e[p].labelAlignTo===`labelLine`){var m=e[p].label.x-l;e[p].linePoints[1][0]+=m,e[p].label.x=l}rC(e,1,c,c+o)&&d(e)}function rE(e,t,n,r,i,a,o,s){for(var c=[],l=[],u=Number.MAX_VALUE,d=-Number.MAX_VALUE,f=0;f<e.length;f++){var p=e[f].label;cE(e[f])||(p.x<t?(u=Math.min(u,p.x),c.push(e[f])):(d=Math.max(d,p.x),l.push(e[f])))}for(var f=0;f<e.length;f++){var m=e[f];if(!cE(m)&&m.linePoints){if(m.labelStyleWidth!=null)continue;var p=m.label,h=m.linePoints,g=void 0;g=m.labelAlignTo===`edge`?p.x<t?h[2][0]-m.labelDistance-o-m.edgeDistance:o+i-m.edgeDistance-h[2][0]-m.labelDistance:m.labelAlignTo===`labelLine`?p.x<t?u-o-m.bleedMargin:o+i-d-m.bleedMargin:p.x<t?p.x-o-m.bleedMargin:o+i-p.x-m.bleedMargin,m.targetTextWidth=g,iE(m,g,!1)}}nE(l,t,n,r,1,i,a,o,s,d),nE(c,t,n,r,-1,i,a,o,s,u);for(var f=0;f<e.length;f++){var m=e[f];if(!cE(m)&&m.linePoints){var p=m.label,h=m.linePoints,_=m.labelAlignTo===`edge`,v=p.style.padding,y=v?v[1]+v[3]:0,b=p.style.backgroundColor?0:y,x=m.rect.width+b,S=h[1][0]-h[2][0];_?p.x<t?h[2][0]=o+m.edgeDistance+x+m.labelDistance:h[2][0]=o+i-m.edgeDistance-x-m.labelDistance:(p.x<t?h[2][0]=p.x+m.labelDistance:h[2][0]=p.x-m.labelDistance,h[1][0]=h[2][0]+S),h[1][1]=h[2][1]=p.y}}}function iE(e,t,n){if(e.labelStyleWidth==null){var r=e.label,i=r.style,a=e.rect,o=i.backgroundColor,s=i.padding,c=s?s[1]+s[3]:0,l=i.overflow,u=a.width+(o?0:c);if(t<u||n){if(l&&l.match(`break`)){r.setStyle(`backgroundColor`,null),r.setStyle(`width`,t-c);var d=r.getBoundingRect();r.setStyle(`width`,Math.ceil(d.width)),r.setStyle(`backgroundColor`,o)}else{var f=t-c,p=t<u?f:n?f>e.unconstrainedWidth?null:f:null;r.setStyle(`width`,p)}aE(a,r)}}}function aE(e,t){sE.rect=e,ZS(sE,t,oE)}var oE={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},sE={};function cE(e){return e.position===`center`}function lE(e){var t=e.getData(),n=[],r,i,a=!1,o=(e.get(`minShowLabelAngle`)||0)*tE,s=t.getLayout(`viewRect`),c=t.getLayout(`r`),l=s.width,u=s.x,d=s.y,f=s.height;function p(e){e.ignore=!0}function m(e){if(!e.ignore)return!0;for(var t in e.states)if(e.states[t].ignore===!1)return!0;return!1}t.each(function(e){var s=t.getItemGraphicEl(e),d=s.shape,h=s.getTextContent(),g=s.getTextGuideLine(),_=t.getItemModel(e),v=_.getModel(`label`),y=v.get(`position`)||_.get([`emphasis`,`label`,`position`]),b=v.get(`distanceToLabelLine`),x=v.get(`alignTo`),S=Bs(v.get(`edgeDistance`),l),C=v.get(`bleedMargin`);C==null&&(C=Math.min(l,f)>200?10:2);var w=_.getModel(`labelLine`),T=w.get(`length`);T=Bs(T,l);var E=w.get(`length2`);if(E=Bs(E,l),Math.abs(d.endAngle-d.startAngle)<o){z(h.states,p),h.ignore=!0,g&&(z(g.states,p),g.ignore=!0);return}if(m(h)){var D=(d.startAngle+d.endAngle)/2,O=Math.cos(D),k=Math.sin(D),A,j,M,ee;r=d.cx,i=d.cy;var te=y===`inside`||y===`inner`;if(y===`center`)A=d.cx,j=d.cy,ee=`center`;else{var ne=(te?(d.r+d.r0)/2*O:d.r*O)+r,re=(te?(d.r+d.r0)/2*k:d.r*k)+i;if(A=ne+O*3,j=re+k*3,!te){var ie=ne+O*(T+c-d.r),ae=re+k*(T+c-d.r),oe=ie+(O<0?-1:1)*E,se=ae;A=x===`edge`?O<0?u+S:u+l-S:oe+(O<0?-b:b),j=se,M=[[ne,re],[ie,ae],[oe,se]]}ee=te?`center`:x===`edge`?O>0?`right`:`left`:O>0?`left`:`right`}var ce=Math.PI,le=0,ue=v.get(`rotate`);if(Ae(ue))le=ce/180*ue;else if(y===`center`)le=0;else if(ue===`radial`||ue===!0)le=O<0?-D+ce:-D;else if(ue===`tangential`||ue===`tangential-noflip`&&y!==`outside`&&y!==`outer`){var de=Math.atan2(O,k);de<0&&(de=ce*2+de),k>0&&ue!==`tangential-noflip`&&(de=ce+de),le=de-ce}if(a=!!le,h.x=A,h.y=j,h.rotation=le,h.setStyle({verticalAlign:`middle`}),te){h.setStyle({align:ee});var fe=h.states.select;fe&&(fe.x+=h.x,fe.y+=h.y)}else{var N=new X(0,0,0,0);aE(N,h),n.push({label:h,labelLine:g,position:y,len:T,len2:E,minTurnAngle:w.get(`minTurnAngle`),maxSurfaceAngle:w.get(`maxSurfaceAngle`),surfaceNormal:new Y(O,k),linePoints:M,textAlign:ee,labelDistance:b,labelAlignTo:x,edgeDistance:S,bleedMargin:C,rect:N,unconstrainedWidth:N.width,labelStyleWidth:h.style.width})}s.setTextConfig({inside:te})}}),!a&&e.get(`avoidLabelOverlap`)&&rE(n,r,i,c,l,f,u,d);for(var h=0;h<n.length;h++){var g=n[h],_=g.label,v=g.labelLine,y=isNaN(_.x)||isNaN(_.y);if(_){_.setStyle({align:g.textAlign}),y&&(z(_.states,p),_.ignore=!0);var b=_.states.select;b&&(b.x+=_.x,b.y+=_.y)}if(v){var x=g.linePoints;y||!x?(z(v.states,p),v.ignore=!0):(YT(x,g.minTurnAngle),XT(x,g.surfaceNormal,g.maxSurfaceAngle),v.setShape({points:x}),_.__hostTarget.textGuideLineConfig={anchor:new Y(x[0][0],x[0][1])})}}}var uE=Math.PI*2,dE=Math.PI/180,fE=bl(`pie`,pE);function pE(e,t){e.eachSeriesByType(`pie`,function(e){var n=e.getData(),r=n.mapDimension(`value`),i=L_(e,t),a=i.cx,o=i.cy,s=i.r,c=i.r0,l=i.viewRect,u=-e.get(`startAngle`)*dE,d=e.get(`endAngle`),f=e.get(`padAngle`)*dE;d=d===`auto`?u-uE:-d*dE;var p=e.get(`minAngle`)*dE+f,m=0;n.each(r,function(e){!isNaN(e)&&m++});var h=n.getSum(r),g=Math.PI/(h||m)*2,_=e.get(`clockwise`),v=e.get(`roseType`),y=e.get(`stillShowZeroSum`),b=n.getDataExtent(r);b[0]=0;var x=_?1:-1,S=[u,d],C=x*f/2;bo(S,!_),u=S[0],d=S[1];var w=mE(e);w.startAngle=u,w.endAngle=d,w.clockwise=_,w.cx=a,w.cy=o,w.r=s,w.r0=c;var T=Math.abs(d-u),E=T,D=0,O=u;if(n.setLayout({viewRect:l,r:s}),n.each(r,function(e,t){var r;if(isNaN(e)){n.setItemLayout(t,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:a,cy:o,r0:c,r:v?NaN:s});return}r=v===`area`?T/m:h===0&&y?g:e*g,r<p?(r=p,E-=p):D+=e;var i=O+x*r,l=0,u=0;f>r?(l=O+x*r/2,u=l):(l=O+C,u=i-C),n.setItemLayout(t,{angle:r,startAngle:l,endAngle:u,clockwise:_,cx:a,cy:o,r0:c,r:v?zs(e,b,[c,s]):s}),O=i}),E<uE&&m){if(E<=.001){var k=T/m;n.each(r,function(e,t){if(!isNaN(e)){var r=n.getItemLayout(t);r.angle=k;var i=0,a=0;k<f?(i=u+x*(t+1/2)*k,a=i):(i=u+x*t*k+C,a=u+x*(t+1)*k-C),r.startAngle=i,r.endAngle=a}})}else g=E/D,O=u,n.each(r,function(e,t){if(!isNaN(e)){var r=n.getItemLayout(t),i=r.angle===p?p:e*g,a=0,o=0;i<f?(a=O+x*i/2,o=a):(a=O+C,o=O+x*i-C),r.startAngle=a,r.endAngle=o,O+=x*i}})}})}var mE=Kc(),hE=function(e){T(t,e);function t(t,n,r){var i=e.call(this)||this;i.z2=2;var a=new ds;return i.setTextContent(a),i.updateData(t,n,r,!0),i}return t.prototype.updateData=function(e,t,n,r){var i=this,a=e.hostModel,o=e.getItemModel(t),s=o.getModel(`emphasis`),c=e.getItemLayout(t),l=I(Xw(o.getModel(`itemStyle`),c,!0),c);if(isNaN(l.startAngle)){i.setShape(l);return}if(r){i.setShape(l);var u=a.getShallow(`animationType`);a.ecModel.ssr?(hf(i,{scaleX:0,scaleY:0},a,{dataIndex:t,isFrom:!0}),i.originX=l.cx,i.originY=l.cy):u===`scale`?(i.shape.r=c.r0,hf(i,{shape:{r:c.r}},a,t)):n==null?(i.shape.endAngle=c.startAngle,mf(i,{shape:{endAngle:c.endAngle}},a,t)):(i.setShape({startAngle:n,endAngle:n}),hf(i,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},a,t))}else bf(i),mf(i,{shape:l},a,t);i.useStyle(e.getItemVisual(t,`style`)),Pu(i,o);var d=(c.startAngle+c.endAngle)/2,f=a.get(`selectedOffset`),p=Math.cos(d)*f,m=Math.sin(d)*f,h=o.getShallow(`cursor`);h&&i.attr(`cursor`,h),this._updateLabel(a,e,t),i.ensureState(`emphasis`).shape=I({r:c.r+(s.get(`scale`)&&s.get(`scaleSize`)||0)},Xw(s.getModel(`itemStyle`),c)),I(i.ensureState(`select`),{x:p,y:m,shape:Xw(o.getModel([`select`,`itemStyle`]),c)}),I(i.ensureState(`blur`),{shape:Xw(o.getModel([`blur`,`itemStyle`]),c)});var g=i.getTextGuideLine(),_=i.getTextContent();g&&I(g.ensureState(`select`),{x:p,y:m}),I(_.ensureState(`select`),{x:p,y:m}),Au(this,s.get(`focus`),s.get(`blurScope`),s.get(`disabled`))},t.prototype._updateLabel=function(e,t,n){var r=this,i=t.getItemModel(n),a=i.getModel(`labelLine`),o=t.getItemVisual(n,`style`),s=o&&o.fill,c=o&&o.opacity;yp(r,bp(i),{labelFetcher:t.hostModel,labelDataIndex:n,inheritColor:s,defaultOpacity:c,defaultText:e.getFormattedLabel(n,`normal`)||t.getName(n)});var l=r.getTextContent();r.setTextConfig({position:null,rotation:null}),l.attr({z2:10});var u=i.get([`label`,`position`]);if(u!==`outside`&&u!==`outer`)r.removeTextGuideLine();else{var d=this.getTextGuideLine();d||(d=new zd,this.setTextGuideLine(d)),$T(this,eE(i),{stroke:s,opacity:ze(a.get([`lineStyle`,`opacity`]),c,1)})}},t}(jd),gE=function(e){T(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`pie`,t.ignoreLabelLineUpdate=!0,t}return t.prototype.render=function(e,t,n,r){var i=e.getData(),a=this._data,o=this.group,s;if(!a&&i.count()>0){for(var c=i.getItemLayout(0),l=1;isNaN(c&&c.startAngle)&&l<i.count();++l)c=i.getItemLayout(l);c&&(s=c.startAngle)}if(this._emptyCircleSector&&o.remove(this._emptyCircleSector),i.count()===0&&e.get(`showEmptyCircle`)){var u=new jd({shape:P(mE(e))});u.useStyle(e.getModel(`emptyCircleStyle`).getItemStyle()),this._emptyCircleSector=u,o.add(u)}i.diff(a).add(function(e){var t=new hE(i,e,s);i.setItemGraphicEl(e,t),o.add(t)}).update(function(e,t){var n=a.getItemGraphicEl(t);n.updateData(i,e,s),n.off(`click`),o.add(n),i.setItemGraphicEl(e,n)}).remove(function(t){yf(a.getItemGraphicEl(t),e,t)}).execute(),lE(e),e.get(`animationTypeUpdate`)!==`expansion`&&(this._data=i)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,t){var n=t.getData().getItemLayout(0);if(n){var r=e[0]-n.cx,i=e[1]-n.cy,a=Math.sqrt(r*r+i*i);return a<=n.r&&a>=n.r0}},t.type=`pie`,t}(Wy);function _E(e){return{seriesType:e,reset:function(e,t){var n=e.getData();n.filterSelf(function(e){var t=n.mapDimension(`value`),r=n.get(t,e);return!(Ae(r)&&!isNaN(r)&&r<0)})}}}function vE(e){e.registerChartView(gE),e.registerSeriesModel(AT),CT(`pie`,e.registerAction),e.registerLayout(fE),e.registerProcessor(ET(`pie`)),e.registerProcessor(_E(`pie`))}var yE=function(){function e(e,t){this.target=e,this.topTarget=t&&t.topTarget}return e}(),bE=function(){function e(e){this.handler=e,e.on(`mousedown`,this._dragStart,this),e.on(`mousemove`,this._drag,this),e.on(`mouseup`,this._dragEnd,this)}return e.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new yE(t,e),`dragstart`,e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,r=e.offsetY,i=n-this._x,a=r-this._y;this._x=n,this._y=r,t.drift(i,a,e),this.handler.dispatchToElement(new yE(t,e),`drag`,e.event);var o=this.handler.findHover(n,r,t).target,s=this._dropTarget;this._dropTarget=o,t!==o&&(s&&o!==s&&this.handler.dispatchToElement(new yE(s,e),`dragleave`,e.event),o&&o!==s&&this.handler.dispatchToElement(new yE(o,e),`dragenter`,e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new yE(t,e),`dragend`,e.event),this._dropTarget&&this.handler.dispatchToElement(new yE(this._dropTarget,e),`drop`,e.event),this._draggingTarget=null,this._dropTarget=null},e}(),xE=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,SE=[],CE=J.browser.firefox&&+J.browser.version.split(`.`)[0]<39;function wE(e,t,n,r){return n=n||{},r?TE(e,t,n):CE&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX==null?TE(e,t,n):(n.zrX=t.offsetX,n.zrY=t.offsetY),n}function TE(e,t,n){if(J.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(mg(e)){var a=e.getBoundingClientRect();n.zrX=r-a.left,n.zrY=i-a.top;return}if(dg(SE,e,r,i)){n.zrX=SE[0],n.zrY=SE[1];return}}n.zrX=n.zrY=0}function EE(e){return e||window.event}function DE(e,t,n){if(t=EE(t),t.zrX!=null)return t;var r=t.type;if(r&&r.indexOf(`touch`)>=0){var i=r===`touchend`?t.changedTouches[0]:t.targetTouches[0];i&&wE(e,i,t,n)}else{wE(e,t,t,n);var a=OE(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var o=t.button;return t.which==null&&o!==void 0&&xE.test(t.type)&&(t.which=o&1?1:o&2?3:o&4?2:0),t}function OE(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(n==null||r==null)return t;var i=Math.abs(r===0?n:r),a=r>0?-1:r<0?1:n>0?-1:1;return 3*i*a}function kE(e,t,n,r){e.addEventListener(t,n,r)}function AE(e,t,n,r){e.removeEventListener(t,n,r)}var jE=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},ME=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var r=e.touches;if(r){for(var i={points:[],touches:[],target:t,event:e},a=0,o=r.length;a<o;a++){var s=r[a],c=wE(n,s,{});i.points.push([c.zrX,c.zrY]),i.touches.push(s)}this._track.push(i)}},e.prototype._recognize=function(e){for(var t in FE)if(FE.hasOwnProperty(t)){var n=FE[t](this._track,e);if(n)return n}},e}();function NE(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function PE(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var FE={pinch:function(e,t){var n=e.length;if(n){var r=(e[n-1]||{}).points,i=(e[n-2]||{}).points||r;if(i&&i.length>1&&r&&r.length>1){var a=NE(r)/NE(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=PE(r);return t.pinchX=o[0],t.pinchY=o[1],{type:`pinch`,target:e[0].target,event:t}}}}},IE=`silent`;function LE(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:RE}}function RE(){jE(this.event)}var zE=function(e){T(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.handler=null,t}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(ca),BE=function(){function e(e,t){this.x=e,this.y=t}return e}(),VE=[`click`,`dblclick`,`mousewheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],HE=new X(0,0,0,0),UE=function(e){T(t,e);function t(t,n,r,i,a){var o=e.call(this)||this;return o._hovered=new BE(0,0),o.storage=t,o.painter=n,o.painterRoot=i,o._pointerSize=a,r=r||new zE,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new bE(o),o}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(z(VE,function(t){e.on&&e.on(t,this[t],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,r=KE(this,t,n),i=this._hovered,a=i.target;a&&!a.__zr&&(i=this.findHover(i.x,i.y),a=i.target);var o=this._hovered=r?new BE(t,n):this.findHover(t,n),s=o.target,c=this.proxy;c.setCursor&&c.setCursor(s?s.cursor:`default`),a&&s!==a&&this.dispatchToElement(i,`mouseout`,e),this.dispatchToElement(o,`mousemove`,e),s&&s!==a&&this.dispatchToElement(o,`mouseover`,e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;t!==`only_globalout`&&this.dispatchToElement(this._hovered,`mouseout`,e),t!==`no_globalout`&&this.trigger(`globalout`,{type:`globalout`,event:e})},t.prototype.resize=function(){this._hovered=new BE(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){e=e||{};var r=e.target;if(!(r&&r.silent)){for(var i=`on`+t,a=LE(t,e,n);r&&(r[i]&&(a.cancelBubble=!!r[i].call(r,a)),r.trigger(t,a),r=r.__hostTarget?r.__hostTarget:r.parent,!a.cancelBubble););a.cancelBubble||(this.trigger(t,a),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(e){typeof e[i]==`function`&&e[i].call(e,a),e.trigger&&e.trigger(t,a)}))}},t.prototype.findHover=function(e,t,n){var r=this.storage.getDisplayList(),i=new BE(e,t);if(GE(r,i,e,t,n),this._pointerSize&&!i.target){for(var a=[],o=this._pointerSize,s=o/2,c=new X(e-s,t-s,o,o),l=r.length-1;l>=0;l--){var u=r[l];u!==n&&!u.ignore&&!u.ignoreCoarsePointer&&(!u.parent||!u.parent.ignoreCoarsePointer)&&(HE.copy(u.getBoundingRect()),u.transform&&HE.applyTransform(u.transform),HE.intersect(c)&&a.push(u))}if(a.length){for(var d=4,f=Math.PI/12,p=Math.PI*2,m=0;m<s;m+=d)for(var h=0;h<p;h+=f)if(GE(a,i,e+m*Math.cos(h),t+m*Math.sin(h),n),i.target)return i}}return i},t.prototype.processGesture=function(e,t){this._gestureMgr||(this._gestureMgr=new ME);var n=this._gestureMgr;t===`start`&&n.clear();var r=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(t===`end`&&n.clear(),r){var i=r.type;e.gestureEvent=i;var a=new BE;a.target=r.target,this.dispatchToElement(a,i,r.event)}},t}(ca);z([`click`,`mousedown`,`mouseup`,`mousewheel`,`dblclick`,`contextmenu`],function(e){UE.prototype[e]=function(t){var n=t.zrX,r=t.zrY,i=KE(this,n,r),a,o;if((e!==`mouseup`||!i)&&(a=this.findHover(n,r),o=a.target),e===`mousedown`)this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e===`mouseup`)this._upEl=o;else if(e===`click`){if(this._downEl!==this._upEl||!this._downPoint||an(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function WE(e,t,n){if(e[e.rectHover?`rectContain`:`contain`](t,n)){for(var r=e,i=void 0,a=!1;r;){if(r.ignoreClip&&(a=!0),!a){var o=r.getClipPath();if(o&&!o.contain(t,n))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s?r.ignoreHostSilent?null:s:r.parent}return!i||IE}return!1}function GE(e,t,n,r,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=WE(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==IE)){t.target=o;break}}}function KE(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var qE=32,JE=7;function YE(e){for(var t=0;e>=qE;)t|=e&1,e>>=1;return e+t}function XE(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i<n&&r(e[i],e[i-1])<0;)i++;ZE(e,t,i)}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function ZE(e,t,n){for(n--;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}function QE(e,t,n,r,i){for(r===t&&r++;r<n;r++){for(var a=e[r],o=t,s=r,c;o<s;)c=o+s>>>1,i(a,e[c])<0?s=c:o=c+1;var l=r-o;switch(l){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;l>0;)e[o+l]=e[o+l-1],l--}e[o]=a}}function $E(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])>0){for(s=r-i;c<s&&a(e,t[n+i+c])>0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}else{for(s=i+1;c<s&&a(e,t[n+i-c])<=0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s);var l=o;o=i-c,c=i-l}for(o++;o<c;){var u=o+(c-o>>>1);a(e,t[n+u])>0?o=u+1:c=u}return c}function eD(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])<0){for(s=i+1;c<s&&a(e,t[n+i-c])<0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s);var l=o;o=i-c,c=i-l}else{for(s=r-i;c<s&&a(e,t[n+i+c])>=0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}for(o++;o<c;){var u=o+(c-o>>>1);a(e,t[n+u])<0?c=u:o=u+1}return c}function tD(e,t){var n=JE,r,i,a=0,o=[];r=[],i=[];function s(e,t){r[a]=e,i[a]=t,a+=1}function c(){for(;a>1;){var e=a-2;if(e>=1&&i[e-1]<=i[e]+i[e+1]||e>=2&&i[e-2]<=i[e]+i[e-1])i[e-1]<i[e+1]&&e--;else if(i[e]>i[e+1])break;u(e)}}function l(){for(;a>1;){var e=a-2;e>0&&i[e-1]<i[e+1]&&e--,u(e)}}function u(n){var o=r[n],s=i[n],c=r[n+1],l=i[n+1];i[n]=s+l,n===a-3&&(r[n+1]=r[n+2],i[n+1]=i[n+2]),a--;var u=eD(e[c],e,o,s,0,t);o+=u,s-=u,s!==0&&(l=$E(e[o+s-1],e,c,l,l-1,t),l!==0&&(s<=l?d(o,s,c,l):f(o,s,c,l)))}function d(r,i,a,s){var c=0;for(c=0;c<i;c++)o[c]=e[r+c];var l=0,u=a,d=r;if(e[d++]=e[u++],--s===0){for(c=0;c<i;c++)e[d+c]=o[l+c];return}if(i===1){for(c=0;c<s;c++)e[d+c]=e[u+c];e[d+s]=o[l];return}for(var f=n,p,m,h;;){p=0,m=0,h=!1;do if(t(e[u],o[l])<0){if(e[d++]=e[u++],m++,p=0,--s===0){h=!0;break}}else if(e[d++]=o[l++],p++,m=0,--i===1){h=!0;break}while((p|m)<f);if(h)break;do{if(p=eD(e[u],o,l,i,0,t),p!==0){for(c=0;c<p;c++)e[d+c]=o[l+c];if(d+=p,l+=p,i-=p,i<=1){h=!0;break}}if(e[d++]=e[u++],--s===0){h=!0;break}if(m=$E(o[l],e,u,s,0,t),m!==0){for(c=0;c<m;c++)e[d+c]=e[u+c];if(d+=m,u+=m,s-=m,s===0){h=!0;break}}if(e[d++]=o[l++],--i===1){h=!0;break}f--}while(p>=JE||m>=JE);if(h)break;f<0&&(f=0),f+=2}if(n=f,n<1&&(n=1),i===1){for(c=0;c<s;c++)e[d+c]=e[u+c];e[d+s]=o[l]}else if(i===0)throw Error();else for(c=0;c<i;c++)e[d+c]=o[l+c]}function f(r,i,a,s){var c=0;for(c=0;c<s;c++)o[c]=e[a+c];var l=r+i-1,u=s-1,d=a+s-1,f=0,p=0;if(e[d--]=e[l--],--i===0){for(f=d-(s-1),c=0;c<s;c++)e[f+c]=o[c];return}if(s===1){for(d-=i,l-=i,p=d+1,f=l+1,c=i-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u];return}for(var m=n;;){var h=0,g=0,_=!1;do if(t(o[u],e[l])<0){if(e[d--]=e[l--],h++,g=0,--i===0){_=!0;break}}else if(e[d--]=o[u--],g++,h=0,--s===1){_=!0;break}while((h|g)<m);if(_)break;do{if(h=i-eD(o[u],e,r,i,i-1,t),h!==0){for(d-=h,l-=h,i-=h,p=d+1,f=l+1,c=h-1;c>=0;c--)e[p+c]=e[f+c];if(i===0){_=!0;break}}if(e[d--]=o[u--],--s===1){_=!0;break}if(g=s-$E(e[l],o,0,s,s-1,t),g!==0){for(d-=g,u-=g,s-=g,p=d+1,f=u+1,c=0;c<g;c++)e[p+c]=o[f+c];if(s<=1){_=!0;break}}if(e[d--]=e[l--],--i===0){_=!0;break}m--}while(h>=JE||g>=JE);if(_)break;m<0&&(m=0),m+=2}if(n=m,n<1&&(n=1),s===1){for(d-=i,l-=i,p=d+1,f=l+1,c=i-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u]}else if(s===0)throw Error();else for(f=d-(s-1),c=0;c<s;c++)e[f+c]=o[c]}return{mergeRuns:c,forceMergeRuns:l,pushRun:s}}function nD(e,t,n,r){n||(n=0),r||(r=e.length);var i=r-n;if(!(i<2)){var a=0;if(i<qE){a=XE(e,n,r,t),QE(e,n,r,n+a,t);return}var o=tD(e,t),s=YE(i);do{if(a=XE(e,n,r,t),a<s){var c=i;c>s&&(c=s),QE(e,n,n+c,n+a,t),a=c}o.pushRun(n,a),o.mergeRuns(),i-=a,n+=a}while(i!==0);o.forceMergeRuns()}}var rD=!1;function iD(){rD||(rD=!0,console.warn(`z / z2 / zlevel of displayable is invalid, which may cause unexpected errors`))}function aD(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var oD=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=aD}return e.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},e.prototype.getDisplayList=function(e,t){t=t||!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(t),n},e.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,r=0,i=t.length;r<i;r++)this._updateAndAddDisplayable(t[r],null,e);n.length=this._displayListLen,nD(n,aD)},e.prototype._updateAndAddDisplayable=function(e,t,n){if(!e.ignore||n){e.beforeUpdate(),e.update(),e.afterUpdate();var r=e.getClipPath(),i=t&&t.length,a=0,o=e.__clipPaths;if(!e.ignoreClip&&(i||r)){if(o||(o=e.__clipPaths=[]),i)for(var s=0;s<t.length;s++)o[a++]=t[s];for(var c=r,l=e;c;)c.parent=l,c.updateTransform(),o[a++]=c,l=c,c=c.getClipPath()}if(o&&(o.length=a),e.childrenRef){for(var u=e.childrenRef(),d=0;d<u.length;d++){var f=u[d];e.__dirty&&(f.__dirty|=1),this._updateAndAddDisplayable(f,o,n)}e.__dirty=0}else{var p=e;isNaN(p.z)&&(iD(),p.z=0),isNaN(p.z2)&&(iD(),p.z2=0),isNaN(p.zlevel)&&(iD(),p.zlevel=0),this._displayList[this._displayListLen++]=p}var m=e.getDecalElement&&e.getDecalElement();m&&this._updateAndAddDisplayable(m,o,n);var h=e.getTextGuideLine();h&&this._updateAndAddDisplayable(h,o,n);var g=e.getTextContent();g&&this._updateAndAddDisplayable(g,o,n)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,n=e.length;t<n;t++)this.delRoot(e[t]);return}var r=R(this._roots,e);r>=0&&this._roots.splice(r,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),sD=J.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};function cD(){return new Date().getTime()}var lD=function(e){T(t,e);function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t=t||{},n.stage=t.stage||{},n}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){for(var t=cD()-this._pausedTime,n=t-this._time,r=this._head;r;){var i=r.next;r.step(t,n)?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=t,e||(this.trigger(`frame`,n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function t(){e._running&&(sD(t),!e._paused&&e.update())}sD(t)},t.prototype.start=function(){this._running||(this._time=cD(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=cD(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=cD()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,t){t=t||{},this.start();var n=new sa(e,t.loop);return this.addAnimator(n),n},t}(ca),uD=300,dD=J.domSupported,fD=(function(){var e=[`click`,`dblclick`,`mousewheel`,`wheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],t=[`touchstart`,`touchend`,`touchmove`],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1};return{mouse:e,touch:t,pointer:B(e,function(e){var t=e.replace(`mouse`,`pointer`);return n.hasOwnProperty(t)?t:e})}})(),pD={mouse:[`mousemove`,`mouseup`],pointer:[`pointermove`,`pointerup`]},mD=!1;function hD(e){var t=e.pointerType;return t===`pen`||t===`touch`}function gD(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function _D(e){e&&(e.zrByTouch=!0)}function vD(e,t){return DE(e.dom,new bD(e,t),!0)}function yD(e,t){for(var n=t,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var bD=function(){function e(e,t){this.stopPropagation=et,this.stopImmediatePropagation=et,this.preventDefault=et,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),xD={mousedown:function(e){e=DE(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger(`mousedown`,e)},mousemove:function(e){e=DE(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger(`mousemove`,e)},mouseup:function(e){e=DE(this.dom,e),this.__togglePointerCapture(!1),this.trigger(`mouseup`,e)},mouseout:function(e){e=DE(this.dom,e);var t=e.toElement||e.relatedTarget;yD(this,t)||(this.__pointerCapturing&&(e.zrEventControl=`no_globalout`),this.trigger(`mouseout`,e))},wheel:function(e){mD=!0,e=DE(this.dom,e),this.trigger(`mousewheel`,e)},mousewheel:function(e){mD||(e=DE(this.dom,e),this.trigger(`mousewheel`,e))},touchstart:function(e){e=DE(this.dom,e),_D(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,`start`),xD.mousemove.call(this,e),xD.mousedown.call(this,e)},touchmove:function(e){e=DE(this.dom,e),_D(e),this.handler.processGesture(e,`change`),xD.mousemove.call(this,e)},touchend:function(e){e=DE(this.dom,e),_D(e),this.handler.processGesture(e,`end`),xD.mouseup.call(this,e),+new Date-this.__lastTouchMoment<uD&&xD.click.call(this,e)},pointerdown:function(e){xD.mousedown.call(this,e)},pointermove:function(e){hD(e)||xD.mousemove.call(this,e)},pointerup:function(e){xD.mouseup.call(this,e)},pointerout:function(e){hD(e)||xD.mouseout.call(this,e)}};z([`click`,`dblclick`,`contextmenu`],function(e){xD[e]=function(t){t=DE(this.dom,t),this.trigger(e,t)}});var SD={pointermove:function(e){hD(e)||SD.mousemove.call(this,e)},pointerup:function(e){SD.mouseup.call(this,e)},mousemove:function(e){this.trigger(`mousemove`,e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger(`mouseup`,e),t&&(e.zrEventControl=`only_globalout`,this.trigger(`mouseout`,e))}};function CD(e,t){var n=t.domHandlers;J.pointerEventsSupported?z(fD.pointer,function(r){TD(t,r,function(t){n[r].call(e,t)})}):(J.touchEventsSupported&&z(fD.touch,function(r){TD(t,r,function(i){n[r].call(e,i),gD(t)})}),z(fD.mouse,function(r){TD(t,r,function(i){i=EE(i),t.touching||n[r].call(e,i)})}))}function wD(e,t){J.pointerEventsSupported?z(pD.pointer,n):J.touchEventsSupported||z(pD.mouse,n);function n(n){function r(r){r=EE(r),yD(e,r.target)||(r=vD(e,r),t.domHandlers[n].call(e,r))}TD(t,n,r,{capture:!0})}}function TD(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,kE(e.domTarget,t,n,r)}function ED(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&AE(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var DD=function(){function e(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return e}(),OD=function(e){T(t,e);function t(t,n){var r=e.call(this)||this;return r.__pointerCapturing=!1,r.dom=t,r.painterRoot=n,r._localHandlerScope=new DD(t,xD),dD&&(r._globalHandlerScope=new DD(document,SD)),CD(r,r._localHandlerScope),r}return t.prototype.dispose=function(){ED(this._localHandlerScope),dD&&ED(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||`default`)},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,dD&&+this.__pointerCapturing^e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?wD(this,t):ED(t)}},t}(ca),kD=e({dispose:()=>ID,disposeAll:()=>LD,getElementSSRData:()=>VD,getInstance:()=>RD,init:()=>FD,registerPainter:()=>zD,registerSSRDataGetter:()=>HD,version:()=>UD}),AD={},jD={};function MD(e){delete jD[e]}function ND(e){if(!e)return!1;if(typeof e==`string`)return Ni(e,1)<da;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=Ni(t[i].color,1);return n/=r,n<da}return!1}var PD=function(){function e(e,t,n){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,n=n||{},this.dom=t,this.id=e;var i=new oD,a=n.renderer||`canvas`;AD[a]||(a=Te(AD)[0]),n.useDirtyRect=n.useDirtyRect!=null&&n.useDirtyRect;var o=new AD[a](t,i,n,e),s=n.ssr||o.ssrOnly;this.storage=i,this.painter=o;var c=!J.node&&!J.worker&&!s?new OD(o.getViewportRoot(),o.root):null,l=n.useCoarsePointer,u=l==null||l===`auto`?J.touchEventsSupported:!!l,d=44,f;u&&(f=G(n.pointerSize,d)),this.handler=new UE(i,o,c,o.root,f),this.animation=new lD({stage:{update:s?null:function(){return r._flush(!1)}}}),s||this.animation.start()}return e.prototype.add=function(e){!this._disposed&&e&&(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},e.prototype.remove=function(e){!this._disposed&&e&&(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},e.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=ND(e))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(e){this._darkMode=e},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(e){this._disposed||this._refresh({animUpdate:!e,refresh:!0,refreshHover:!1})},e.prototype._refresh=function(e){e.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:e.refresh,refreshHover:e.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!0)},e.prototype._flush=function(e){var t,n=cD(),r=this._needsRefresh,i=this._needsRefreshHover;(r||i)&&(t=!0,this._refresh({animUpdate:e,refresh:r,refreshHover:i}));var a=cD();t?(this._stillFrameAccum=0,this.trigger(`rendered`,{elapsedTime:a-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},e.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},e.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},e.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof ud&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,MD(this.id))},e}();function FD(e,t){var n=new PD(me(),e,t);return jD[n.id]=n,n}function ID(e){e.dispose()}function LD(){for(var e in jD)jD.hasOwnProperty(e)&&jD[e].dispose();jD={}}function RD(e){return jD[e]}function zD(e,t){AD[e]=t}var BD;function VD(e){if(typeof BD==`function`)return BD(e)}function HD(e){BD=e}var UD=`6.1.0`,WD=``;typeof navigator<`u`&&(WD=navigator.platform||``);var GD=`rgba(0, 0, 0, 0.2)`,KD=Q.color.theme[0],qD=Ai(KD,null,null,.9),JD={darkMode:`auto`,colorBy:`series`,color:Q.color.theme,gradientColor:[qD,KD],aria:{decal:{decals:[{color:GD,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:GD,symbol:`circle`,dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:GD,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:GD,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:GD,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:GD,symbol:`triangle`,dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:WD.match(/^Win/)?`Microsoft YaHei`:`sans-serif`,fontSize:12,fontStyle:`normal`,fontWeight:`normal`},blendMode:null,stateAnimation:{duration:300,easing:`cubicOut`},animation:`auto`,animationDuration:1e3,animationDurationUpdate:500,animationEasing:`cubicInOut`,animationEasingUpdate:`cubicInOut`,animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},YD=K();function XD(e,t){He(YD.get(e)==null&&t),YD.set(e,t)}function ZD(e,t,n){var r=YD.get(t);if(!r)return n;var i=r(e);return i?n.concat(i):n}var QD,$D,eO,tO=`\0_ec_inner`,nO=1,rO=function(e){T(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(e,t,n,r,i,a){r=r||{},this.option=null,this._theme=new Wp(r),this._locale=new Wp(i),this._optionManager=a},t.prototype.setOption=function(e,t,n){var r=cO(t);this._optionManager.setOption(e,n,r),this._resetOption(null,r)},t.prototype.resetOption=function(e,t){return this._resetOption(e,cO(t))},t.prototype._resetOption=function(e,t){var n=!1,r=this._optionManager;if(!e||e===`recreate`){var i=r.mountOption(e===`recreate`);!this.option||e===`recreate`?eO(this,i):(this.restoreData(),this._mergeOption(i,t)),n=!0}if((e===`timeline`||e===`media`)&&this.restoreData(),!e||e===`recreate`||e===`timeline`){var a=r.getTimelineOption(this);a&&(n=!0,this._mergeOption(a,t))}if(!e||e===`recreate`||e===`media`){var o=r.getMediaOption(this);o.length&&z(o,function(e){n=!0,this._mergeOption(e,t)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,t){var n=this.option,r=this._componentsMap,i=this._componentsCount,a=[],o=K(),s=t&&t.replaceMergeMainTypeMap;Xp(this),z(e,function(e,t){e!=null&&(q_.hasClass(t)?t&&(a.push(t),o.set(t,!0)):n[t]=n[t]==null?P(e):F(n[t],e,!0))}),s&&s.each(function(e,t){q_.hasClass(t)&&!o.get(t)&&(a.push(t),o.set(t,!0))}),q_.topologicalTravel(a,q_.getAllClassMainTypes(),c,this);function c(t){var a=ZD(this,t,Tc(e[t])),o=r.get(t),c=Ac(o,a,o?s&&s.get(t)?`replaceMerge`:`normalMerge`:`replaceAll`);Uc(c,t,q_),n[t]=null,r.set(t,null),i.set(t,0);var l=[],u=[],d=0,f;z(c,function(e,n){var r=e.existing,i=e.newOption;if(!i)r&&(r.mergeOption({},this),r.optionUpdated({},!1));else{var a=t===`series`,o=q_.getClass(t,e.keyInfo.subType,!a);if(!o)return;if(t===`tooltip`){if(f)return;f=!0}if(r&&r.constructor===o)r.name=e.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=I({componentIndex:n},e.keyInfo);r=new o(i,this,this,s),I(r,s),e.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}r?(l.push(r.option),u.push(r),d++):(l.push(void 0),u.push(void 0))},this),n[t]=l,r.set(t,u),i.set(t,d),t===`series`&&QD(this)}this._seriesIndices||QD(this)},t.prototype.getOption=function(){var e=P(this.option);return z(e,function(t,n){if(q_.hasClass(n)){for(var r=Tc(t),i=r.length,a=!1,o=i-1;o>=0;o--)r[o]&&!Vc(r[o])?a=!0:(r[o]=null,!a&&i--);r.length=i,e[n]=r}}),delete e[tO],e},t.prototype.setTheme=function(e){this._theme=new Wp(e),this._resetOption(`recreate`,null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var r=n[t||0];if(r)return r;if(t==null){for(var i=0;i<n.length;i++)if(n[i])return n[i]}}},t.prototype.queryComponents=function(e){var t=e.mainType;if(!t)return[];var n=e.index,r=e.id,i=e.name,a=this._componentsMap.get(t);if(!a||!a.length)return[];var o;return n==null?o=r==null?i==null?Ce(a,function(e){return!!e}):oO(`name`,i,a):oO(`id`,r,a):(o=[],z(Tc(n),function(e){a[e]&&o.push(a[e])})),sO(o,e)},t.prototype.findComponents=function(e){var t=e.query,n=e.mainType,r=i(t);return a(sO(r?this.queryComponents(r):Ce(this._componentsMap.get(n),function(e){return!!e}),e));function i(e){var t=n+`Index`,r=n+`Id`,i=n+`Name`;return e&&(e[t]!=null||e[r]!=null||e[i]!=null)?{mainType:n,index:e[t],id:e[r],name:e[i]}:null}function a(t){return e.filter?Ce(t,e.filter):t}},t.prototype.eachComponent=function(e,t,n){var r=this._componentsMap;if(H(e)){var i=t,a=e;r.each(function(e,t){for(var n=0;e&&n<e.length;n++){var r=e[n];r&&a.call(i,t,r,r.componentIndex)}})}else for(var o=U(e)?r.get(e):W(e)?this.findComponents(e):null,s=0;o&&s<o.length;s++){var c=o[s];c&&t.call(n,c,c.componentIndex)}},t.prototype.getSeriesByName=function(e){var t=zc(e,null);return Ce(this._componentsMap.get(`series`),function(e){return!!e&&t!=null&&e.name===t})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get(`series`)[e]},t.prototype.getSeriesByType=function(e){return Ce(this._componentsMap.get(`series`),function(t){return!!t&&t.subType===e})},t.prototype.getSeries=function(){return Ce(this._componentsMap.get(`series`),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get(`series`)},t.prototype.eachSeries=function(e,t){$D(this),z(this._seriesIndices,function(n){var r=this._componentsMap.get(`series`)[n];e.call(t,r,n)},this)},t.prototype.eachRawSeries=function(e,t){z(this._componentsMap.get(`series`),function(n){n&&e.call(t,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,t,n){$D(this),z(this._seriesIndices,function(r){var i=this._componentsMap.get(`series`)[r];i.subType===e&&t.call(n,i,r)},this)},t.prototype.eachRawSeriesByType=function(e,t,n){return z(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return $D(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){$D(this);var n=[];z(this._seriesIndices,function(r){var i=this._componentsMap.get(`series`)[r];e.call(t,i,r)&&n.push(r)},this),this._seriesIndices=n,this._seriesIndicesMap=K(n)},t.prototype.restoreData=function(e){QD(this);var t=this._componentsMap,n=[];t.each(function(e,t){q_.hasClass(t)&&n.push(t)}),q_.topologicalTravel(n,q_.getAllClassMainTypes(),function(n){z(t.get(n),function(t){t&&(n!==`series`||!iO(t,e))&&t.restoreData()})})},t.internalField=function(){QD=function(e){var t=e._seriesIndices=[];z(e._componentsMap.get(`series`),function(e){e&&t.push(e.componentIndex)}),e._seriesIndicesMap=K(t)},$D=function(e){},eO=function(e,t){e.option={},e.option[tO]=nO,e._componentsMap=K({series:[]}),e._componentsCount=K();var n=t.aria;W(n)&&n.enabled==null&&(n.enabled=!0),aO(t,e._theme.option),F(t,JD,!1),e._mergeOption(t,null)}}(),t}(Wp);function iO(e,t){if(t){var n=t.seriesIndex,r=t.seriesId,i=t.seriesName;return n!=null&&e.componentIndex!==n||r!=null&&e.id!==r||i!=null&&e.name!==i}}function aO(e,t){var n=e.color&&!e.colorLayer;z(t,function(t,r){r===`colorLayer`&&n||r===`color`&&e.color||q_.hasClass(r)||(typeof t==`object`?e[r]=e[r]?F(e[r],t,!1):P(t):e[r]==null&&(e[r]=t))})}function oO(e,t,n){if(V(t)){var r=K();return z(t,function(e){e!=null&&zc(e,null)!=null&&r.set(e,!0)}),Ce(n,function(t){return t&&r.get(t[e])})}var i=zc(t,null);return Ce(n,function(t){return t&&i!=null&&t[e]===i})}function sO(e,t){return t.hasOwnProperty(`subType`)?Ce(e,function(e){return e&&e.subType===t.subType}):e}function cO(e){var t=K();return e&&z(Tc(e.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}be(rO,X_);var lO=/^(min|max)?(.+)$/,uO=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(z(Tc(e.series),function(e){e&&e.data&&Me(e.data)&&Ge(e.data)}),z(Tc(e.dataset),function(e){e&&e.source&&Me(e.source)&&Ge(e.source)})),e=P(e);var r=this._optionBackup,i=dO(e,t,!r);this._newBaseOption=i.baseOption,r?(i.timelineOptions.length&&(r.timelineOptions=i.timelineOptions),i.mediaList.length&&(r.mediaList=i.mediaList),i.mediaDefault&&(r.mediaDefault=i.mediaDefault)):this._optionBackup=i},e.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],P(e?t.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var r=e.getComponent(`timeline`);r&&(t=P(n[r.getCurrentIndex()]))}return t},e.prototype.getMediaOption=function(e){var t=this._api.getWidth(),n=this._api.getHeight(),r=this._mediaList,i=this._mediaDefault,a=[],o=[];if(!r.length&&!i)return o;for(var s=0,c=r.length;s<c;s++)fO(r[s].query,t,n)&&a.push(s);return!a.length&&i&&(a=[-1]),a.length&&!mO(a,this._currentMediaIndices)&&(o=B(a,function(e){return P(e===-1?i.option:r[e].option)})),this._currentMediaIndices=a,o},e}();function dO(e,t,n){var r=[],i,a,o=e.baseOption,s=e.timeline,c=e.options,l=e.media,u=!!e.media,d=!!(c||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((d||u)&&(e.options=e.media=null),a=e),u&&V(l)&&z(l,function(e){e&&e.option&&(e.query?r.push(e):i||(i=e))}),f(a),z(c,function(e){return f(e)}),z(r,function(e){return f(e.option)});function f(e){z(t,function(t){t(e,n)})}return{baseOption:a,timelineOptions:c||[],mediaDefault:i,mediaList:r}}function fO(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return z(e,function(e,t){var n=t.match(lO);if(n&&n[1]&&n[2]){var a=n[1];pO(r[n[2].toLowerCase()],e,a)||(i=!1)}}),i}function pO(e,t,n){return n===`min`?e>=t:n===`max`?e<=t:e===t}function mO(e,t){return e.join(`,`)===t.join(`,`)}var hO=z,gO=W,_O=[`areaStyle`,`lineStyle`,`nodeStyle`,`linkStyle`,`chordStyle`,`label`,`labelLine`];function vO(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=_O.length;n<r;n++){var i=_O[n],a=t.normal,o=t.emphasis;a&&a[i]&&(e[i]=e[i]||{},e[i].normal?F(e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&(e[i]=e[i]||{},e[i].emphasis?F(e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function yO(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var r=e[t].normal,i=e[t].emphasis;r&&(n?(e[t].normal=e[t].emphasis=null,L(e[t],r)):e[t]=r),i&&(e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function bO(e){yO(e,`itemStyle`),yO(e,`lineStyle`),yO(e,`areaStyle`),yO(e,`label`),yO(e,`labelLine`),yO(e,`upperLabel`),yO(e,`edgeLabel`)}function xO(e,t){var n=gO(e)&&e[t],r=gO(n)&&n.textStyle;if(r)for(var i=0,a=Dc.length;i<a;i++){var o=Dc[i];r.hasOwnProperty(o)&&(n[o]=r[o])}}function SO(e){e&&(bO(e),xO(e,`label`),e.emphasis&&xO(e.emphasis,`label`))}function CO(e){if(gO(e)){vO(e),bO(e),xO(e,`label`),xO(e,`upperLabel`),xO(e,`edgeLabel`),e.emphasis&&(xO(e.emphasis,`label`),xO(e.emphasis,`upperLabel`),xO(e.emphasis,`edgeLabel`));var t=e.markPoint;t&&(vO(t),SO(t));var n=e.markLine;n&&(vO(n),SO(n));var r=e.markArea;r&&SO(r);var i=e.data;if(e.type===`graph`){i=i||e.nodes;var a=e.links||e.edges;if(a&&!Me(a))for(var o=0;o<a.length;o++)SO(a[o]);z(e.categories,function(e){bO(e)})}if(i&&!Me(i))for(var o=0;o<i.length;o++)SO(i[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)SO(s[o]);if(n=e.markLine,n&&n.data)for(var c=n.data,o=0;o<c.length;o++)V(c[o])?(SO(c[o][0]),SO(c[o][1])):SO(c[o]);e.type===`gauge`?(xO(e,`axisLabel`),xO(e,`title`),xO(e,`detail`)):e.type===`treemap`?(yO(e.breadcrumb,`itemStyle`),z(e.levels,function(e){bO(e)})):e.type===`tree`&&bO(e.leaves)}}function wO(e){return V(e)?e:e?[e]:[]}function TO(e){return(V(e)?e[0]:e)||{}}function EO(e,t){hO(wO(e.series),function(e){gO(e)&&CO(e)});var n=[`xAxis`,`yAxis`,`radiusAxis`,`angleAxis`,`singleAxis`,`parallelAxis`,`radar`];t&&n.push(`valueAxis`,`categoryAxis`,`logAxis`,`timeAxis`),hO(n,function(t){hO(wO(e[t]),function(e){e&&(xO(e,`axisLabel`),xO(e.axisPointer,`label`))})}),hO(wO(e.parallel),function(e){var t=e&&e.parallelAxisDefault;xO(t,`axisLabel`),xO(t&&t.axisPointer,`label`)}),hO(wO(e.calendar),function(e){yO(e,`itemStyle`),xO(e,`dayLabel`),xO(e,`monthLabel`),xO(e,`yearLabel`)}),hO(wO(e.radar),function(e){xO(e,`name`),e.name&&e.axisName==null&&(e.axisName=e.name,delete e.name),e.nameGap!=null&&e.axisNameGap==null&&(e.axisNameGap=e.nameGap,delete e.nameGap)}),hO(wO(e.geo),function(e){gO(e)&&(SO(e),hO(wO(e.regions),function(e){SO(e)}))}),hO(wO(e.timeline),function(e){SO(e),yO(e,`label`),yO(e,`itemStyle`),yO(e,`controlStyle`,!0);var t=e.data;V(t)&&z(t,function(e){W(e)&&(yO(e,`label`),yO(e,`itemStyle`))})}),hO(wO(e.toolbox),function(e){yO(e,`iconStyle`),hO(e.feature,function(e){yO(e,`iconStyle`)})}),xO(TO(e.axisPointer),`label`),xO(TO(e.tooltip).axisPointer,`label`)}function DO(e,t){for(var n=t.split(`,`),r=e,i=0;i<n.length&&(r=r&&r[n[i]],r!=null);i++);return r}function OO(e,t,n,r){for(var i=t.split(`,`),a=e,o,s=0;s<i.length-1;s++)o=i[s],a[o]==null&&(a[o]={}),a=a[o];(r||a[i[s]]==null)&&(a[i[s]]=n)}function kO(e){e&&z(AO,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var AO=[[`x`,`left`],[`y`,`top`],[`x2`,`right`],[`y2`,`bottom`]],jO=[`grid`,`geo`,`parallel`,`legend`,`toolbox`,`title`,`visualMap`,`dataZoom`,`timeline`],MO=[[`borderRadius`,`barBorderRadius`],[`borderColor`,`barBorderColor`],[`borderWidth`,`barBorderWidth`]];function NO(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<MO.length;n++){var r=MO[n][1],i=MO[n][0];t[r]!=null&&(t[i]=t[r])}}function PO(e){e&&e.alignTo===`edge`&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function FO(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function IO(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(e.emphasis.focus=`adjacency`))}function LO(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&LO(e[n].children,t)}function RO(e,t){EO(e,t),e.series=Tc(e.series),z(e.series,function(e){if(W(e)){var t=e.type;if(t===`line`)e.clipOverflow!=null&&(e.clip=e.clipOverflow);else if(t===`pie`||t===`gauge`){e.clockWise!=null&&(e.clockwise=e.clockWise),PO(e.label);var n=e.data;if(n&&!Me(n))for(var r=0;r<n.length;r++)PO(n[r]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(t===`gauge`){var i=DO(e,`pointer.color`);i!=null&&OO(e,`itemStyle.color`,i)}else if(t===`bar`){NO(e),NO(e.backgroundStyle),NO(e.emphasis);var n=e.data;if(n&&!Me(n))for(var r=0;r<n.length;r++)typeof n[r]==`object`&&(NO(n[r]),NO(n[r]&&n[r].emphasis))}else if(t===`sunburst`){var a=e.highlightPolicy;a&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=a)),FO(e),LO(e.data,FO)}else t===`graph`||t===`sankey`?IO(e):t===`map`&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&L(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),kO(e)}}),e.dataRange&&(e.visualMap=e.dataRange),z(jO,function(t){var n=e[t];n&&(V(n)||(n=[n]),z(n,function(e){kO(e)}))})}var zO=xl(BO);function BO(e){var t=K();e.eachSeries(function(e){var n=e.get(`stack`);if(n){var r=t.get(n)||t.set(n,[]),i=e.getData(),a={stackResultDimension:i.getCalculationInfo(`stackResultDimension`),stackedOverDimension:i.getCalculationInfo(`stackedOverDimension`),stackedDimension:i.getCalculationInfo(`stackedDimension`),stackedByDimension:i.getCalculationInfo(`stackedByDimension`),isStackedByIndex:i.getCalculationInfo(`isStackedByIndex`),data:i,seriesModel:e};if(!a.stackedDimension||!(a.isStackedByIndex||a.stackedByDimension))return;r.push(a)}}),t.each(function(e){e.length!==0&&((e[0].seriesModel.get(`stackOrder`)||`seriesAsc`)===`seriesDesc`&&e.reverse(),z(e,function(t,n){t.data.setCalculationInfo(`stackedOnSeries`,n>0?e[n-1].seriesModel:null)}),VO(e))})}function VO(e){z(e,function(t,n){var r=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,c=t.seriesModel.get(`stackStrategy`)||`samesign`;o.modify(a,function(a,l,u){var d=o.get(t.stackedDimension,u);if(isNaN(d))return i;var f,p;s?p=o.getRawIndex(u):f=o.get(t.stackedByDimension,u);for(var m=NaN,h=n-1;h>=0;h--){var g=e[h];if(s||(p=g.data.rawIndexOf(g.stackedByDimension,f)),p>=0){var _=g.data.getByRawIndex(g.stackResultDimension,p);if(c===`all`||c===`positive`&&_>0||c===`negative`&&_<0||c===`samesign`&&d>=0&&_>0||c===`samesign`&&d<=0&&_<0){d=$s(d,_),m=_;break}}}return r[0]=d,r[1]=m,r})})}var HO=function(){function e(){this.group=new ud,this.uid=eg(`viewComponent`)}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){},e.prototype.updateLayout=function(e,t,n,r){},e.prototype.updateVisual=function(e,t,n,r){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();dt(HO),vt(HO);var UO=Kc(),WO={itemStyle:yt(Vp,!0),lineStyle:yt(Rp,!0)},GO={lineStyle:`stroke`,itemStyle:`fill`};function KO(e,t){return e.visualStyleMapper||WO[t]||(console.warn(`Unknown style type '`+t+`'.`),WO.itemStyle)}function qO(e,t){return e.visualDrawType||GO[t]||(console.warn(`Unknown style type '`+t+`'.`),`fill`)}var JO={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=e.getModel(r),a=KO(e,r)(i),o=i.getShallow(`decal`);o&&(n.setVisual(`decal`,o),o.dirty=!0);var s=qO(e,r),c=a[s],l=H(c)?c:null,u=a.fill===`auto`||a.stroke===`auto`;if(!a[s]||l||u){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[s]||(a[s]=d,n.setVisual(`colorFromPalette`,!0)),a.fill=a.fill===`auto`||H(a.fill)?d:a.fill,a.stroke=a.stroke===`auto`||H(a.stroke)?d:a.stroke}if(n.setVisual(`style`,a),n.setVisual(`drawType`,s),!t.isSeriesFiltered(e)&&l)return n.setVisual(`colorFromPalette`,!1),{dataEach:function(t,n){var r=e.getDataParams(n),i=I({},a);i[s]=l(r),t.setItemVisual(n,`style`,i)}}}},YO=new Wp,XO={createOnAllSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=KO(e,r),a=n.getVisual(`drawType`);return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){YO.option=n[r];var o=i(YO);I(e.ensureUniqueItemVisual(t,`style`),o),YO.option.decal&&(e.setItemVisual(t,`decal`,YO.option.decal),YO.option.decal.dirty=!0),a in o&&e.setItemVisual(t,`colorFromPalette`,!1)}}:null}}}},ZO={performRawSeries:!0,overallReset:function(e){var t=K();e.eachSeries(function(e){if(!e.isColorBySeries()){var n=e.type+`-`+e.getColorBy();UO(e).scope=t.get(n)||t.set(n,{})}}),e.eachSeries(function(e){if(!e.isColorBySeries()){var t=e.getRawData(),n={},r=e.getData(),i=UO(e).scope,a=qO(e,e.visualStyleAccessPath||`itemStyle`);r.each(function(e){var t=r.getRawIndex(e);n[t]=e}),t.each(function(o){var s=n[o];if(r.getItemVisual(s,`colorFromPalette`)){var c=r.ensureUniqueItemVisual(s,`style`),l=t.getName(o)||o+``,u=t.count();c[a]=e.getColorFromPalette(l,i,u)}})}})}},QO=Math.PI;function $O(e,t){t=t||{},L(t,{text:`loading`,textColor:Q.color.primary,fontSize:12,fontWeight:`normal`,fontStyle:`normal`,fontFamily:`sans-serif`,maskColor:`rgba(255,255,255,0.8)`,showSpinner:!0,color:Q.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var n=new ud,r=new os({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i=new ds({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new os({style:{fill:`none`},textContent:i,textConfig:{position:`right`,distance:10},zlevel:t.zlevel,z:10001});n.add(a);var o;return t.showSpinner&&(o=new Jd({shape:{startAngle:-QO/2,endAngle:-QO/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:`round`,lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:QO*3/2}).start(`circularInOut`),o.animateShape(!0).when(1e3,{startAngle:QO*3/2}).delay(300).start(`circularInOut`),n.add(o)),n.resize=function(){var n=i.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,c=(e.getWidth()-s*2-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:s),l=e.getHeight()/2;t.showSpinner&&o.setShape({cx:c,cy:l}),a.setShape({x:c-s,y:l-s,width:s*2,height:s*2}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var ek=function(){function e(e,t,n,r){this._stageTaskMap=K(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(e){var t=e.overallTask;t&&t.dirty()})},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),r=n.context,i=!t&&n.progressiveEnabled&&(!r||r.progressiveRender)&&e.__idxInPipeline>n.blockIndex?n.step:null,a=r&&r.modDataCount;return{step:i,modBy:a==null?null:Math.ceil(a/i),modDataCount:a}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid);e.pipelineContext=n.context=e.__preparePipelineContext?e.__preparePipelineContext(t,n):yl(e,t,n)},e.prototype.restorePipelines=function(e,t){var n=this,r=n._pipelineMap=K();t.eachSeries(function(t){var i=e.painter.type===`canvas`&&t.getProgressive(),a=t.uid;r.set(a,{id:a,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),n._pipe(t,t.dataTask)})},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;z(this._allHandlers,function(r){var i=e.get(r.uid)||e.set(r.uid,{});He(!(r.reset&&r.overallReset),``),r.reset&&this._createSeriesStageTask(r,i,t,n),r.overallReset&&this._createOverallStageTask(r,i,t,n)},this)},e.prototype.prepareView=function(e,t,n,r){var i=e.renderTask,a=i.context;a.model=t,a.ecModel=n,a.api=r,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,r){r=r||{};var i=!1,a=this;z(e,function(e,s){if(!(r.visualType&&r.visualType!==e.visualType)){var c=a._stageTaskMap.get(e.uid),l=c.seriesTaskMap,u=c.overallTask;if(u){var d,f=u.agentStubMap;f.each(function(e){o(r,e)&&(e.dirty(),d=!0)}),d&&u.dirty(),a.updatePayload(u,n);var p=a.getPerformArgs(u,r.block);f.each(function(e){e.perform(p)}),u.perform(p)&&(i=!0)}else l&&l.each(function(s,c){o(r,s)&&s.dirty();var l=a.getPerformArgs(s,r.block);l.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),a.updatePayload(s,n),s.perform(l)&&(i=!0)})}});function o(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(e){t=e.dataTask.perform()||t}),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},e.prototype.updatePayload=function(e,t){t!==`remain`&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,r){var i=this,a=t.seriesTaskMap,o=t.seriesTaskMap=K(),s=e.seriesType,c=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(l):s?n.eachRawSeriesByType(s,l):c&&c(n,r).each(l);function l(t){var s=t.uid,c=o.set(s,a&&a.get(s)||rv({plan:ak,reset:ok,count:lk}));c.context={model:t,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(t,c)}},e.prototype._createOverallStageTask=function(e,t,n,r){var i=this,a=t.overallTask=t.overallTask||rv({reset:tk});a.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var o=a.agentStubMap,s=a.agentStubMap=K(),c=e.seriesType,l=e.getTargetSeries,u=e.dirtyOnOverallProgress,d=!1;He(!e.createOnAllSeries,``),c?n.eachRawSeriesByType(c,f):l?l(n,r).each(f):z(n.getSeries(),f);function f(e){var t=e.uid,n=s.set(t,o&&o.get(t)||(d=!0,rv({reset:nk,onDirty:ik})));n.context={model:e,dirtyOnOverallProgress:u},n.agent=a,n.__block=u,i._pipe(e,n)}d&&a.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=t),r.tail&&r.tail.pipe(t),r.tail=t,t.__idxInPipeline=r.count++,t.__pipeline=r},e.wrapStageHandler=function(e,t){return H(e)&&(e={overallReset:e,seriesType:uk(e)}),e.uid=eg(`stageHandler`),t&&(e.visualType=t),e},e}();function tk(e){e.overallReset(e.ecModel,e.api,e.payload)}function nk(e){return e.dirtyOnOverallProgress&&rk}function rk(){this.agent.dirty(),this.getDownstream().dirty()}function ik(){this.agent&&this.agent.dirty()}function ak(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function ok(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Tc(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?B(t,function(e,t){return ck(t)}):sk}var sk=ck(0);function ck(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a<t.end;a++)i.dataEach(r,a);else i&&i.progress&&i.progress(t,r)}}function lk(e){return e.data.count()}function uk(e){pk=null;try{e(dk,fk)}catch(e){}return pk}var dk={},fk={},pk;mk(dk,rO),mk(fk,Ml),dk.eachSeriesByType=dk.eachRawSeriesByType=function(e){pk=e},dk.eachComponent=function(e){e.mainType===`series`&&e.subType&&(pk=e.subType)};function mk(e,t){for(var n in t.prototype)e[n]=et}var $=Q.darkColor,hk=$.background,gk=function(){return{axisLine:{lineStyle:{color:$.axisLine}},splitLine:{lineStyle:{color:$.axisSplitLine}},splitArea:{areaStyle:{color:[$.backgroundTint,$.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:$.axisMinorSplitLine}},axisLabel:{color:$.axisLabel},axisName:{}}},_k={label:{color:$.secondary},itemStyle:{borderColor:$.borderTint},dividerLineStyle:{color:$.border}},vk={darkMode:!0,color:$.theme,backgroundColor:hk,axisPointer:{lineStyle:{color:$.border},crossStyle:{color:$.borderShade},label:{color:$.tertiary}},legend:{textStyle:{color:$.secondary},pageTextStyle:{color:$.tertiary}},textStyle:{color:$.secondary},title:{textStyle:{color:$.primary},subtextStyle:{color:$.quaternary}},toolbox:{iconStyle:{borderColor:$.accent50},feature:{dataView:{backgroundColor:hk,textColor:$.primary,textareaColor:$.background,textareaBorderColor:$.border,buttonColor:$.accent50,buttonTextColor:$.neutral00}}},tooltip:{backgroundColor:$.neutral20,defaultBorderColor:$.border,textStyle:{color:$.tertiary}},dataZoom:{borderColor:$.accent10,textStyle:{color:$.tertiary},brushStyle:{color:$.backgroundTint},handleStyle:{color:$.neutral00,borderColor:$.accent20},moveHandleStyle:{color:$.accent40},emphasis:{handleStyle:{borderColor:$.accent50}},dataBackground:{lineStyle:{color:$.accent30},areaStyle:{color:$.accent20}},selectedDataBackground:{lineStyle:{color:$.accent50},areaStyle:{color:$.accent30}}},visualMap:{textStyle:{color:$.secondary},handleStyle:{borderColor:$.neutral30}},timeline:{lineStyle:{color:$.accent10},label:{color:$.tertiary},controlStyle:{color:$.accent30,borderColor:$.accent30}},calendar:{itemStyle:{color:$.neutral00,borderColor:$.neutral20},dayLabel:{color:$.tertiary},monthLabel:{color:$.secondary},yearLabel:{color:$.secondary}},matrix:{x:_k,y:_k,backgroundColor:{borderColor:$.axisLine},body:{itemStyle:{borderColor:$.borderTint}}},timeAxis:gk(),logAxis:gk(),valueAxis:gk(),categoryAxis:gk(),line:{symbol:`circle`},graph:{color:$.theme},gauge:{title:{color:$.secondary},axisLine:{lineStyle:{color:[[1,$.neutral05]]}},axisLabel:{color:$.axisLabel},detail:{color:$.primary}},candlestick:{itemStyle:{color:`#f64e56`,color0:`#54ea92`,borderColor:`#f64e56`,borderColor0:`#54ea92`}},funnel:{itemStyle:{borderColor:$.background}},radar:function(){var e=gk();return e.axisName={color:$.axisLabel},e.axisLine.lineStyle.color=$.neutral20,e}(),treemap:{breadcrumb:{itemStyle:{color:$.neutral20,textStyle:{color:$.secondary}},emphasis:{itemStyle:{color:$.neutral30}}}},sunburst:{itemStyle:{borderColor:$.background}},map:{itemStyle:{borderColor:$.border,areaColor:$.neutral10},label:{color:$.tertiary},emphasis:{label:{color:$.primary},itemStyle:{areaColor:$.highlight}},select:{label:{color:$.primary},itemStyle:{areaColor:$.highlight}}},geo:{itemStyle:{borderColor:$.border,areaColor:$.neutral10},emphasis:{label:{color:$.primary},itemStyle:{areaColor:$.highlight}},select:{label:{color:$.primary},itemStyle:{color:$.highlight}}}};vk.categoryAxis.splitLine.show=!1;var yk=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},r={};if(U(e)){var i=ct(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var a=[`Index`,`Name`,`Id`],o={name:1,dataIndex:1,dataType:1};z(e,function(e,i){for(var s=!1,c=0;c<a.length;c++){var l=a[c],u=i.lastIndexOf(l);if(u>0&&u===i.length-l.length){var d=i.slice(0,u);d!==`data`&&(t.mainType=d,t[l.toLowerCase()]=e,s=!0)}}o.hasOwnProperty(i)&&(n[i]=e,s=!0),s||(r[i]=e)})}return{cptQuery:t,dataQuery:n,otherQuery:r}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,a=n.model,o=n.view;if(!a||!o)return!0;var s=t.cptQuery,c=t.dataQuery;return l(s,a,`mainType`)&&l(s,a,`subType`)&&l(s,a,`index`,`componentIndex`)&&l(s,a,`name`)&&l(s,a,`id`)&&l(c,i,`name`)&&l(c,i,`dataIndex`)&&l(c,i,`dataType`)&&(!o.filterForExposedEvent||o.filterForExposedEvent(e,t.otherQuery,r,i));function l(e,t,n,r){return e[n]==null||t[r||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),bk=[`symbol`,`symbolSize`,`symbolRotate`,`symbolOffset`],xk=bk.concat([`symbolKeepAspect`]),Sk={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual(`legendIcon`,e.legendIcon),!e.hasSymbolVisual)return;for(var r={},i={},a=!1,o=0;o<bk.length;o++){var s=bk[o],c=e.get(s);H(c)?(a=!0,i[s]=c):r[s]=c}if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(I({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get(`symbolKeepAspect`)},r)),t.isSeriesFiltered(e))return;var l=Te(i);function u(t,n){for(var r=e.getRawValue(n),a=e.getDataParams(n),o=0;o<l.length;o++){var s=l[o];t.setItemVisual(n,s,i[s](r,a))}}return{dataEach:a?u:null}}},Ck={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var n=e.getData();function r(e,t){for(var n=e.getItemModel(t),r=0;r<xk.length;r++){var i=xk[r],a=n.getShallow(i,!0);a!=null&&e.setItemVisual(t,i,a)}}return{dataEach:n.hasItemOption?r:null}}};function wk(e,t,n){switch(n){case`color`:return e.getItemVisual(t,`style`)[e.getVisual(`drawType`)];case`opacity`:return e.getItemVisual(t,`style`).opacity;case`symbol`:case`symbolSize`:case`liftZ`:return e.getItemVisual(t,n)}}function Tk(e,t){switch(t){case`color`:return e.getVisual(`style`)[e.getVisual(`drawType`)];case`opacity`:return e.getVisual(`style`).opacity;case`symbol`:case`symbolSize`:case`liftZ`:return e.getVisual(t)}}function Ek(e,t,n){for(var r;e&&!(t(e)&&(r=e,n));)e=e.__hostTarget||e.parent;return r}var Dk=new ca,Ok={};function kk(e,t){Ok[e]=t}function Ak(e){return Ok[e]}var jk={};function Mk(e,t){jk[e]=t}var Nk=Math.round(Math.random()*9),Pk=typeof Object.defineProperty==`function`,Fk=function(){function e(){this._id=`__ec_inner_`+Nk++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return Pk?Object.defineProperty(n,this._id,{value:t,enumerable:!1,configurable:!0}):n[this._id]=t,this},e.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},e.prototype.has=function(e){return!!this._guard(e)[this._id]},e.prototype._guard=function(e){if(e!==Object(e))throw TypeError(`Value of WeakMap is not a non-null object.`);return e},e}();function Ik(e){return isFinite(e)}function Lk(e,t,n){var r=t.x==null?0:t.x,i=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;return t.global||(r=r*n.width+n.x,i=i*n.width+n.x,a=a*n.height+n.y,o=o*n.height+n.y),r=Ik(r)?r:0,i=Ik(i)?i:1,a=Ik(a)?a:0,o=Ik(o)?o:0,e.createLinearGradient(r,a,i,o)}function Rk(e,t,n){var r=n.width,i=n.height,a=Math.min(r,i),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,c=t.r==null?.5:t.r;return t.global||(o=o*r+n.x,s=s*i+n.y,c*=a),o=Ik(o)?o:.5,s=Ik(s)?s:.5,c=c>=0&&Ik(c)?c:.5,e.createRadialGradient(o,s,0,o,s,c)}function zk(e,t,n){for(var r=t.type===`radial`?Rk(e,t,n):Lk(e,t,n),i=t.colorStops,a=0;a<i.length;a++)r.addColorStop(i[a].offset,i[a].color);return r}function Bk(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}function Vk(e){return parseInt(e,10)}function Hk(e,t,n){var r=[`width`,`height`][t],i=[`clientWidth`,`clientHeight`][t],a=[`paddingLeft`,`paddingTop`][t],o=[`paddingRight`,`paddingBottom`][t];if(n[r]!=null&&n[r]!==`auto`)return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(e);return(e[i]||Vk(s[r])||Vk(e.style[r]))-(Vk(s[a])||0)-(Vk(s[o])||0)||0}function Uk(e,t){return!e||e===`solid`||!(t>0)?null:e===`dashed`?[4*t,2*t]:e===`dotted`?[t]:Ae(e)?[e]:V(e)?e:null}function Wk(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&Uk(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(n=B(n,function(e){return e/i}),r/=i)}return[n,r]}var Gk=new xo(!0);function Kk(e){var t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))}function qk(e){return typeof e==`string`&&e!==`none`}function Jk(e){var t=e.fill;return t!=null&&t!==`none`}function Yk(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function Xk(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function Zk(e,t,n){var r=Dt(t.image,t.__image,n);if(kt(r)){var i=e.createPattern(r,t.repeat||`repeat`);if(typeof DOMMatrix==`function`&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*tt),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function Qk(e,t,n,r,i){var a,o=Kk(n),s=Jk(n),c=n.strokePercent,l=c<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var d=t.path||Gk,f=t.__dirty;if(!r){var p=n.fill,m=n.stroke,h=s&&!!p.colorStops,g=o&&!!m.colorStops,_=s&&!!p.image,v=o&&!!m.image,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0;(h||g)&&(C=t.getBoundingRect()),h&&(y=f?zk(e,p,C):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(b=f?zk(e,m,C):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),_&&(x=f||!t.__canvasFillPattern?Zk(e,p,t):t.__canvasFillPattern,t.__canvasFillPattern=x),v&&(S=f||!t.__canvasStrokePattern?Zk(e,m,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),h?e.fillStyle=y:_&&(x?e.fillStyle=x:s=!1),g?e.strokeStyle=b:v&&(S?e.strokeStyle=S:o=!1)}var w=t.getGlobalScale();d.setScale(w[0],w[1],t.segmentIgnoreThreshold);var T,E;e.setLineDash&&n.lineDash&&(a=Wk(t),T=a[0],E=a[1]);var D=!0;(u||f&4)&&(d.setDPR(e.dpr),l?d.setContext(null):(d.setContext(e),D=!1),d.reset(),t.buildPath(d,t.shape,r),d.toStatic(),t.pathUpdated()),D&&d.rebuildPath(e,l?c:1),T&&(e.setLineDash(T),e.lineDashOffset=E),r?(i.batchFill=s,i.batchStroke=o):n.strokeFirst?(o&&Xk(e,n),s&&Yk(e,n)):(s&&Yk(e,n),o&&Xk(e,n)),T&&e.setLineDash([])}function $k(e,t,n){var r=t.__image=Dt(n.image,t.__image,t,t.onload);if(r&&kt(r)){var i=n.x||0,a=n.y||0,o=t.getWidth(),s=t.getHeight(),c=r.width/r.height;if(o==null&&s!=null?o=s*c:s==null&&o!=null?s=o/c:o==null&&s==null&&(o=r.width,s=r.height),n.sWidth&&n.sHeight){var l=n.sx||0,u=n.sy||0;e.drawImage(r,l,u,n.sWidth,n.sHeight,i,a,o,s)}else if(n.sx&&n.sy){var l=n.sx,u=n.sy,d=o-l,f=s-u;e.drawImage(r,l,u,d,f,i,a,o,s)}else e.drawImage(r,i,a,o,s)}}function eA(e,t,n){var r,i=n.text;if(i!=null&&(i+=``),i){e.font=n.font||`12px sans-serif`,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var a=void 0,o=void 0;e.setLineDash&&n.lineDash&&(r=Wk(t),a=r[0],o=r[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),n.strokeFirst?(Kk(n)&&e.strokeText(i,n.x,n.y),Jk(n)&&e.fillText(i,n.x,n.y)):(Jk(n)&&e.fillText(i,n.x,n.y),Kk(n)&&e.strokeText(i,n.x,n.y)),a&&e.setLineDash([])}}var tA=[`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],nA=[[`lineCap`,`butt`],[`lineJoin`,`miter`],[`miterLimit`,10]];function rA(e,t,n,r,i){var a=!1;if(!r&&(n=n||{},t===n))return!1;if(r||t.opacity!==n.opacity){mA(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?Na.opacity:o}(r||t.blend!==n.blend)&&(a||(mA(e,i),a=!0),e.globalCompositeOperation=t.blend||Na.blend);for(var s=0;s<tA.length;s++){var c=tA[s];(r||t[c]!==n[c])&&(a||(mA(e,i),a=!0),e[c]=e.dpr*(t[c]||0))}return(r||t.shadowColor!==n.shadowColor)&&(a||(mA(e,i),a=!0),e.shadowColor=t.shadowColor||Na.shadowColor),a}function iA(e,t,n,r,i){var a=t.style,o=r?null:n&&n.style||{};if(a===o)return!1;var s=rA(e,a,o,r,i);if((r||a.fill!==o.fill)&&(s||(mA(e,i),s=!0),qk(a.fill)&&(e.fillStyle=a.fill)),(r||a.stroke!==o.stroke)&&(s||(mA(e,i),s=!0),qk(a.stroke)&&(e.strokeStyle=a.stroke)),(r||a.opacity!==o.opacity)&&(s||(mA(e,i),s=!0),e.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var c=a.lineWidth/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==c&&(s||(mA(e,i),s=!0),e.lineWidth=c)}for(var l=0;l<nA.length;l++){var u=nA[l],d=u[0];(r||a[d]!==o[d])&&(s||(mA(e,i),s=!0),e[d]=a[d]||u[1])}return s}function aA(e,t,n,r,i){return rA(e,t.style,n&&n.style,r,i)}function oA(e,t){var n=t.transform,r=e.dpr||1;n?e.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):e.setTransform(r,0,0,r,0,0)}function sA(e,t,n){for(var r=!1,i=0;i<e.length;i++){var a=e[i];r=r||a.isZeroArea(),oA(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}n.allClipped=r}function cA(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}var lA=1,uA=2,dA=3,fA=4;function pA(e){var t=Jk(e),n=Kk(e);return!(e.lineDash||!(+t^n)||t&&typeof e.fill!=`string`||n&&typeof e.stroke!=`string`||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function mA(e,t){t.batchFill&&(t.batchFill=!1,e.fill()),t.batchStroke&&(t.batchStroke=!1,e.stroke())}function hA(e,t){var n={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};gA(e,t,n),_A(e,n)}function gA(e,t,n){var r=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){t.__dirty&=-2,t.__isRendered=!1;return}var i=t.__clipPaths,a=n.prevElClipPaths,o=t.style,s=!1,c=!1;if((!a||Bk(i,a))&&(a&&(mA(e,n),e.restore(),c=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),i&&i.length&&(mA(e,n),e.save(),sA(i,e,n),s=!0,n.prevElClipPaths=i)),n.allClipped){t.__dirty&=-2,t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(n.beforeBrushParam),t.innerBeforeBrush();var l=n.prevEl;l||(c=s=!0);var u=t instanceof Ko&&t.autoBatch&&pA(o);s||cA(r,l.transform)?(mA(e,n),oA(e,t)):u||mA(e,n),t instanceof Ko?(n.lastDrawType!==lA&&(c=!0,n.lastDrawType=lA),iA(e,t,l,c,n),(!u||!n.batchFill&&!n.batchStroke)&&e.beginPath(),Qk(e,t,o,u,n)):t instanceof Jo?(n.lastDrawType!==dA&&(c=!0,n.lastDrawType=dA),iA(e,t,l,c,n),eA(e,t,o)):t instanceof Qo?(n.lastDrawType!==uA&&(c=!0,n.lastDrawType=uA),aA(e,t,l,c,n),$k(e,t,o)):t.getTemporalDisplayables&&(n.lastDrawType!==fA&&(c=!0,n.lastDrawType=fA),vA(e,t,n)),t.innerAfterBrush(),t.afterBrush&&(u&&mA(e,n),t.afterBrush()),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}function _A(e,t){mA(e,t),t.prevElClipPaths&&e.restore()}function vA(e,t,n){var r=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();for(var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover,beforeBrushParam:{}},o=t.getCursor(),s=r.length;o<s;o++){var c=r[o];c.beforeBrush&&c.beforeBrush(n.beforeBrushParam),c.innerBeforeBrush(),gA(e,c,a),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}_A(e,a);for(var l=0,u=i.length;l<u;l++){var c=i[l];c.beforeBrush&&c.beforeBrush(n.beforeBrushParam),c.innerBeforeBrush(),gA(e,c,a),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}_A(e,a),t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var yA=new Fk,bA=new wt(100),xA=[`symbol`,`symbolSize`,`symbolKeepAspect`,`color`,`backgroundColor`,`dashArrayX`,`dashArrayY`,`maxTileWidth`,`maxTileHeight`];function SA(e,t){if(e===`none`)return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i=r.painter.type===`svg`;e.dirty&&yA.delete(e);var a=yA.get(e);if(a)return a;var o=L(e,{symbol:`rect`,symbolSize:1,symbolKeepAspect:!0,color:`rgba(0, 0, 0, 0.2)`,backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor===`none`&&(o.backgroundColor=null);var s={repeat:`repeat`};return c(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/n,yA.set(e,s),e.dirty=!1,s;function c(e){for(var t=[n],a=!0,s=0;s<xA.length;++s){var c=o[xA[s]];if(c!=null&&!V(c)&&!U(c)&&!Ae(c)&&typeof c!=`boolean`){a=!1;break}t.push(c)}var l;if(a){l=t.join(`,`)+(i?`-svg`:``);var u=bA.get(l);u&&(i?e.svgElement=u:e.image=u)}var d=wA(o.dashArrayX),f=TA(o.dashArrayY),p=CA(o.symbol),m=EA(d),h=DA(f),g=!i&&M.createCanvas(),_=i&&{tag:`g`,attrs:{},key:`dcl`,children:[]},v=b(),y;g&&(g.width=v.width*n,g.height=v.height*n,y=g.getContext(`2d`)),x(),a&&bA.put(l,g||_),e.image=g,e.svgElement=_,e.svgWidth=v.width,e.svgHeight=v.height;function b(){for(var e=1,t=0,n=m.length;t<n;++t)e=mc(e,m[t]);for(var r=1,t=0,n=p.length;t<n;++t)r=mc(r,p[t].length);e*=r;var i=h*m.length*p.length;return{width:Math.max(1,Math.min(e,o.maxTileWidth)),height:Math.max(1,Math.min(i,o.maxTileHeight))}}function x(){y&&(y.clearRect(0,0,g.width,g.height),o.backgroundColor&&(y.fillStyle=o.backgroundColor,y.fillRect(0,0,g.width,g.height)));for(var e=0,t=0;t<f.length;++t)e+=f[t];if(e<=0)return;for(var a=-h,s=0,c=0,l=0;a<v.height;){if(s%2==0){for(var u=c/2%p.length,m=0,b=0,x=0;m<v.width*2;){for(var S=0,t=0;t<d[l].length;++t)S+=d[l][t];if(S<=0)break;if(b%2==0){var C=(1-o.symbolSize)*.5,w=m+d[l][b]*C,T=a+f[s]*C,E=d[l][b]*o.symbolSize,D=f[s]*o.symbolSize,O=x/2%p[u].length;k(w,T,E,D,p[u][O])}m+=d[l][b],++x,++b,b===d[l].length&&(b=0)}++l,l===d.length&&(l=0)}a+=f[s],++c,++s,s===f.length&&(s=0)}function k(e,t,a,s,c){var l=i?1:n,u=dy(c,e*l,t*l,a*l,s*l,o.color,o.symbolKeepAspect);if(i){var d=r.painter.renderOneToVNode(u);d&&_.children.push(d)}else hA(y,u)}}}}function CA(e){if(!e||e.length===0)return[[`rect`]];if(U(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!U(e[n])){t=!1;break}if(t)return CA([e]);for(var r=[],n=0;n<e.length;++n)U(e[n])?r.push([e[n]]):r.push(e[n]);return r}function wA(e){if(!e||e.length===0)return[[0,0]];if(Ae(e)){var t=Math.ceil(e);return[[t,t]]}for(var n=!0,r=0;r<e.length;++r)if(!Ae(e[r])){n=!1;break}if(n)return wA([e]);for(var i=[],r=0;r<e.length;++r)if(Ae(e[r])){var t=Math.ceil(e[r]);i.push([t,t])}else{var t=B(e[r],function(e){return Math.ceil(e)});t.length%2==1?i.push(t.concat(t)):i.push(t)}return i}function TA(e){if(!e||typeof e==`object`&&e.length===0)return[0,0];if(Ae(e)){var t=Math.ceil(e);return[t,t]}var n=B(e,function(e){return Math.ceil(e)});return e.length%2?n.concat(n):n}function EA(e){return B(e,function(e){return DA(e)})}function DA(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2==1?t*2:t}var OA=xl(kA);function kA(e,t){e.eachRawSeries(function(n){if(!e.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each(function(e){var n=r.getItemVisual(e,`decal`);if(n){var i=r.ensureUniqueItemVisual(e,`style`);i.decal=SA(n,t)}});var i=r.getVisual(`decal`);if(i){var a=r.getVisual(`style`);a.decal=SA(i,t)}}})}var AA=`6.1.0`,jA={zrender:`6.1.0`},MA=1,NA=800,PA=900,FA=920,IA=1e3,LA=2e3,RA=5e3,zA=1e3,BA=1100,VA=2e3,HA=3e3,UA=4e3,WA=4500,GA=4600,KA=5e3,qA=6e3,JA=7e3,YA={PROCESSOR:{SERIES_FILTER:NA,AXIS_STATISTICS:FA,FILTER:IA,STATISTIC:RA,STATISTICS:RA},VISUAL:{LAYOUT:zA,PROGRESSIVE_LAYOUT:BA,GLOBAL:VA,CHART:HA,POST_CHART_LAYOUT:GA,COMPONENT:UA,BRUSH:KA,CHART_ITEM:WA,ARIA:qA,DECAL:JA}},XA=`__flagInMainProcess`,ZA=`__mainProcessVersion`,QA=`__pendingUpdate`,$A=`__needsUpdateStatus`,ej=/^[a-zA-Z0-9_]+$/,tj=`__connectUpdateStatus`,nj=0,rj=1,ij=2;function aj(e){return function(){var t=[...arguments];if(this.isDisposed()){this.id;return}return sj(this,e,t)}}function oj(e){return function(){var t=[...arguments];return sj(this,e,t)}}function sj(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),ca.prototype[t].apply(e,n)}var cj=function(e){T(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(ca),lj=cj.prototype;lj.on=oj(`on`),lj.off=oj(`off`);var uj,dj,fj,pj,mj,hj,gj,_j,vj,yj,bj,xj,Sj,Cj,wj,Tj,Ej,Dj,Oj,kj=function(e){T(t,e);function t(t,n,r){var i=e.call(this,new yk)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],r=r||{},i.__v_skip=!0,i._dom=t;var a=`canvas`,o=`auto`,s=!1;i[ZA]=1,r.ssr&&HD(function(e){var t=Z(e),n=t.dataIndex;if(n!=null){var r=K();return r.set(`series_index`,t.seriesIndex),r.set(`data_index`,n),t.ssrType&&r.set(`ssr_type`,t.ssrType),r}});var c=i._zr=FD(t,{renderer:r.renderer||a,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:G(r.useDirtyRect,s),useCoarsePointer:G(r.useCoarsePointer,o),pointerSize:r.pointerSize});i._ssr=r.ssr,i._throttledZrFlush=Vw(De(c.flush,c),17),i._updateTheme(n),i._locale=Dg(r.locale||Tg),i._coordSysMgr=new Nh;var l=i._api=wj(i);function u(e,t){return e.__prio-t.__prio}return nD(Lj,u),nD(Fj,u),i._scheduler=new ek(i,l,Fj,Lj),i._messageCenter=new cj,i._initEvents(),i.resize=De(i.resize,i),c.animation.on(`frame`,i._onframe,i),yj(c,i),bj(c,i),Ge(i),i}return t.prototype._onframe=function(){if(!this._disposed){var e=this._scheduler,t=this._model,n=this._api;if(Dj(this),this[QA]){var r=this[QA].silent;this[XA]=!0,Oj(this);try{uj(this),pj.update.call(this,null,this[QA].updateParams)}catch(e){throw this[XA]=!1,this[QA]=null,e}this._zr.flush(),this[XA]=!1,this[QA]=null,_j.call(this,r),vj.call(this,r)}else if(e.unfinished){var i=MA;do{e.unfinished=!1;var a=M.getTime();e.performSeriesTasks(t),e.performDataProcessorTasks(t),hj(this,t),e.performVisualTasks(t),Cj(this,this._model,n,`remain`,{}),i-=M.getTime()-a}while(i>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,t,n){if(!this[XA]){if(this._disposed){this.id;return}var r,i,a;if(W(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,a=t.transition,t=t.notMerge),this[XA]=!0,Oj(this),!this._model||t){var o=new uO(this._api),s=this._theme,c=this._model=new rO;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,s,this._locale,o)}this._model.setOption(e,{replaceMerge:i},Ij);var l={seriesTransition:a,optionChanged:!0};if(n)this[QA]={silent:r,updateParams:l},this[XA]=!1,this.getZr().wakeUp();else{try{uj(this),pj.update.call(this,null,l)}catch(e){throw this[QA]=null,this[XA]=!1,e}this._ssr||this._zr.flush(),this[QA]=null,this[XA]=!1,_j.call(this,r),vj.call(this,r)}}},t.prototype.setTheme=function(e,t){if(!this[XA]){if(this._disposed){this.id;return}var n=this._model;if(n){var r=t&&t.silent,i=null;this[QA]&&(r==null&&(r=this[QA].silent),i=this[QA].updateParams,this[QA]=null),this[XA]=!0,Oj(this);try{this._updateTheme(e),n.setTheme(this._theme),uj(this),pj.update.call(this,{type:`setTheme`},i)}catch(e){throw this[XA]=!1,e}this[XA]=!1,_j.call(this,r),vj.call(this,r)}}},t.prototype._updateTheme=function(e){U(e)&&(e=Rj[e]),e&&(e=P(e),e&&RO(e,!0),this._theme=e)},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||J.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){return e=e||{},this._zr.painter.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get(`backgroundColor`),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){return e=e||{},this._zr.painter.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){var e=this._zr;return z(e.storage.getDisplayList(),function(e){e.stopAnimation(null,!0)}),e.painter.toDataURL()},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var t=e.excludeComponents,n=this._model,r=[],i=this;z(t,function(e){n.eachComponent({mainType:e},function(e){var t=i._componentsMap[e.__viewId];t.group.ignore||(r.push(t),t.group.ignore=!0)})});var a=this._zr.painter.getType()===`svg`?this.getSvgDataURL():this.renderToCanvas(e).toDataURL(`image/`+(e&&e.type||`png`));return z(r,function(e){e.group.ignore=!1}),a},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var t=e.type===`svg`,n=this.group,r=Math.min,i=Math.max,a=1/0;if(Vj[n]){var o=a,s=a,c=-a,l=-a,u=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();z(Bj,function(a,d){if(a.group===n){var f=t?a.getZr().painter.getSvgDom().innerHTML:a.renderToCanvas(P(e)),p=a.getDom().getBoundingClientRect();o=r(p.left,o),s=r(p.top,s),c=i(p.right,c),l=i(p.bottom,l),u.push({dom:f,left:p.left,top:p.top})}}),o*=d,s*=d,c*=d,l*=d;var f=c-o,p=l-s,m=M.createCanvas(),h=FD(m,{renderer:t?`svg`:`canvas`});if(h.resize({width:f,height:p}),t){var g=``;return z(u,function(e){var t=e.left-o,n=e.top-s;g+=`<g transform="translate(`+t+`,`+n+`)">`+e.dom+`</g>`}),h.painter.getSvgRoot().innerHTML=g,e.connectedBackgroundColor&&h.painter.setBackgroundColor(e.connectedBackgroundColor),h.refreshImmediately(),h.painter.toDataURL()}return e.connectedBackgroundColor&&h.add(new os({shape:{x:0,y:0,width:f,height:p},style:{fill:e.connectedBackgroundColor}})),z(u,function(e){var t=new Qo({style:{x:e.left*d-o,y:e.top*d-s,image:e.dom}});h.add(t)}),h.refreshImmediately(),m.toDataURL(`image/`+(e&&e.type||`png`))}return this.getDataURL(e)},t.prototype.convertToPixel=function(e,t,n){return mj(this,`convertToPixel`,e,t,n)},t.prototype.convertToLayout=function(e,t,n){return mj(this,`convertToLayout`,e,t,n)},t.prototype.convertFromPixel=function(e,t,n){return mj(this,`convertFromPixel`,e,t,n)},t.prototype.containPixel=function(e,t){if(this._disposed){this.id;return}var n=this._model,r;return z(Jc(n,e),function(e,n){n.indexOf(`Models`)>=0&&z(e,function(e){var i=e.coordinateSystem;if(i&&i.containPoint)r=r||!!i.containPoint(t);else if(n===`seriesModels`){var a=this._chartsMap[e.__viewId];a&&a.containPoint&&(r=r||a.containPoint(t,e))}},this)},this),!!r},t.prototype.getVisual=function(e,t){var n=this._model,r=Jc(n,e,{defaultMainType:`series`}),i=r.seriesModel.getData(),a=r.hasOwnProperty(`dataIndexInside`)?r.dataIndexInside:r.hasOwnProperty(`dataIndex`)?i.indexOfRawIndex(r.dataIndex):null;return a==null?Tk(i,t):wk(i,a,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;z(jj,function(t){var n=function(n){var r=e.getModel(),i=n.target,a;if(t===`globalout`?a={}:i&&Ek(i,function(e){var t=Z(e);if(t&&t.dataIndex!=null){var n=t.dataModel||r.getSeriesByIndex(t.seriesIndex);return a=n&&n.getDataParams(t.dataIndex,t.dataType,i)||{},!0}if(t.eventData)return a=I({},t.eventData),!0},!0),a){var o=a.componentType,s=a.componentIndex;(o===`markLine`||o===`markPoint`||o===`markArea`)&&(o=`series`,s=a.seriesIndex);var c=o&&s!=null&&r.getComponent(o,s),l=c&&e[c.mainType===`series`?`_chartsMap`:`_componentsMap`][c.__viewId];a.event=n,a.type=t,e._$eventProcessor.eventInfo={targetEl:i,packedEvent:a,model:c,view:l},e.trigger(t,a)}};n.zrEventfulCallAtLast=!0,e._zr.on(t,n,e)});var t=this._messageCenter;z(Pj,function(n,r){t.on(r,function(t){e.trigger(r,t)})}),TT(t,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0,this.getDom()&&el(this.getDom(),Wj,``);var e=this,t=e._api,n=e._model;z(e._componentsViews,function(e){e.dispose(n,t)}),z(e._chartsViews,function(e){e.dispose(n,t)}),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete Bj[e.id]},t.prototype.resize=function(e){if(!this[XA]){if(this._disposed){this.id;return}this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption(`media`),r=e&&e.silent;this[QA]&&(r==null&&(r=this[QA].silent),n=!0,this[QA]=null),this[XA]=!0,Oj(this);try{n&&uj(this),pj.update.call(this,{type:`resize`,animation:I({duration:0},e&&e.animation)})}catch(e){throw this[XA]=!1,e}this[XA]=!1,_j.call(this,r),vj.call(this,r)}}},t.prototype.showLoading=function(e,t){if(this._disposed){this.id;return}if(W(e)&&(t=e,e=``),e=e||`default`,this.hideLoading(),zj[e]){var n=zj[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var t=I({},e);return t.type=Nj[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed){this.id;return}if(W(t)||(t={silent:!!t}),Mj[e.type]&&this._model){if(this[XA]){this._pendingActions.push(e);return}var n=t.silent;gj.call(this,e,n);var r=t.flush;r?this._zr.flush():r!==!1&&J.browser.weChat&&this._throttledZrFlush(),_j.call(this,n),vj.call(this,n)}},t.prototype.updateLabelLayout=function(){Dk.trigger(`series:layoutlabels`,this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var t=e.seriesIndex;this.getModel().getSeriesByIndex(t).appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){uj=function(e){dS(e._model);var t=e._scheduler;t.restorePipelines(e._zr,e._model),t.prepareStageTasks(),dj(e,!0),dj(e,!1),t.plan()},dj=function(e,t){for(var n=e._model,r=e._scheduler,i=t?e._componentsViews:e._chartsViews,a=t?e._componentsMap:e._chartsMap,o=e._zr,s=e._api,c=0;c<i.length;c++)i[c].__alive=!1;t?n.eachComponent(function(e,t){e!==`series`&&l(t)}):n.eachSeries(l);function l(e){var c=e.__requireNewView;e.__requireNewView=!1;var l=`_ec_`+e.id+`_`+e.type,u=!c&&a[l];if(!u){var d=ct(e.type);u=new(t?HO.getClass(d.main,d.sub):Wy.getClass(d.sub)),u.init(n,s),a[l]=u,i.push(u),o.add(u.group)}e.__viewId=u.__id=l,u.__alive=!0,u.__model=e,u.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},!t&&r.prepareView(u,e,n,s)}for(var c=0;c<i.length;){var u=i[c];u.__alive?c++:(!t&&u.renderTask.dispose(),o.remove(u.group),u.dispose(n,s),i.splice(c,1),a[u.__id]===u&&delete a[u.__id],u.__id=u.group.__ecComponentInfo=null)}},fj=function(e,t,n,r,i){var a=e._model;if(a.setUpdatePayload(n),!r){z([].concat(e._componentsViews,e._chartsViews),l);return}var o=$c(n,r,i),s=n.excludeSeriesId,c;s!=null&&(c=K(),z(Tc(s),function(e){var t=zc(e,null);t!=null&&c.set(t,!0)})),a&&a.eachComponent(o,function(t){if(!(c&&c.get(t.id)!=null)){if(zu(n)){if(t instanceof Xv)n.type===`highlight`&&!n.notBlur&&!t.get([`emphasis`,`disabled`])&&xu(t,n,e._api);else{var r=Su(t.mainType,t.componentIndex,n.name,e._api),i=r.focusSelf,a=r.dispatchers;n.type===`highlight`&&i&&!n.notBlur&&bu(t.mainType,t.componentIndex,e._api),a&&z(a,function(e){n.type===`highlight`?du(e):fu(e)})}}else Ru(n)&&t instanceof Xv&&(Tu(t,n,e._api),Eu(t),Ej(e))}},e),a&&a.eachComponent(o,function(t){c&&c.get(t.id)!=null||l(e[r===`series`?`_chartsMap`:`_componentsMap`][t.__viewId])},e);function l(r){r&&r.__alive&&r[t]&&r[t](r.__model,a,e._api,n)}},pj={prepareAndUpdate:function(e){uj(this),pj.update.call(this,e,e&&{optionChanged:e.newOption!=null})},update:function(e,n){var r=this._model,i=this._api,a=this._zr,o=this._coordSysMgr,s=this._scheduler;if(r){fS(r),r.setUpdatePayload(e),s.restoreData(r,e),s.performSeriesTasks(r),o.create(r,i),Dk.trigger(`coordsys:aftercreate`,r,i),s.performDataProcessorTasks(r,e),hj(this,r),o.update(r,i),t(r),s.performVisualTasks(r,e);var c=r.get(`backgroundColor`)||`transparent`;a.setBackgroundColor(c);var l=r.get(`darkMode`);l!=null&&l!==`auto`&&a.setDarkMode(l),xj(this,r,i,e,n),Dk.trigger(`afterupdate`,r,i)}},updateTransform:function(e){var t=this,n=t._model,r=t._api;if(n){n.setUpdatePayload(e);var i=[];n.eachComponent(function(a,o){if(a!==`series`){var s=t.getViewOfComponentModel(o);if(s&&s.__alive){if(s.updateTransform){var c=s.updateTransform(o,n,r,e);c&&c.update&&i.push(s)}else i.push(s)}}});var a=K();n.eachSeries(function(i){var o=t._chartsMap[i.__viewId],s=i.pipelineContext;if(o.updateTransform&&!s.progressiveRender){var c=o.updateTransform(i,n,r,e);c&&c.update&&a.set(i.uid,1)}else a.set(i.uid,1)}),t._scheduler.performVisualTasks(n,e,{setDirty:!0,dirtyMap:a}),Cj(t,n,r,e,{},a),Dk.trigger(`afterupdate`,n,r)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),Wy.markUpdateMethod(e,`updateView`),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),xj(this,n,this._api,e,{}),Dk.trigger(`afterupdate`,n,this._api))},updateVisual:function(e){var n=this,r=this._model;r&&(r.setUpdatePayload(e),r.eachSeries(function(e){e.getData().clearAllVisual()}),Wy.markUpdateMethod(e,`updateVisual`),t(r),this._scheduler.performVisualTasks(r,e,{visualType:`visual`,setDirty:!0}),r.eachComponent(function(t,i){if(t!==`series`){var a=n.getViewOfComponentModel(i);a&&a.__alive&&a.updateVisual(i,r,n._api,e)}}),r.eachSeries(function(t){n._chartsMap[t.__viewId].updateVisual(t,r,n._api,e)}),Dk.trigger(`afterupdate`,r,this._api))},updateLayout:function(e){pj.update.call(this,e)}};function e(e,t,n,r,i){if(e._disposed){e.id;return}for(var a=e._model,o=e._coordSysMgr.getCoordinateSystems(),s,c=Jc(a,n),l=0;l<o.length;l++){var u=o[l];if(u[t]&&(s=u[t](a,c,r,i))!=null)return s}}mj=e,hj=function(e,t){var n=e._chartsMap,r=e._scheduler;t.eachSeries(function(e){r.updateStreamModes(e,n[e.__viewId])})},gj=function(e,t){var n=this,r=this.getModel(),i=e.type,a=e.escapeConnect,o=Mj[i],s=(o.update||`update`).split(`:`),c=s.pop(),l=s[0]!=null&&ct(s[0]);this[XA]=!0,Oj(this);var u=[e],d=!1;e.batch&&(d=!0,u=B(e.batch,function(t){return t=L(I({},t),e),t.batch=null,t}));var f=[],p,m=[],h=o.nonRefinedEventType,g=Ru(e),_=zu(e);if(_&&vu(this._api),z(u,function(t){var i=o.action(t,r,n._api);if(o.refineEvent?m.push(i):p=i,p=p||I({},t),p.type=h,f.push(p),_){var a=Yc(e),s=a.queryOptionMap,u=a.mainTypeSpecified?s.keys()[0]:`series`;fj(n,c,t,u),Ej(n)}else g?(fj(n,c,t,`series`),Ej(n)):l&&fj(n,c,t,l.main,l.sub)}),c!==`none`&&!_&&!g&&!l)try{this[QA]?(uj(this),pj.update.call(this,e),this[QA]=null):pj[c].call(this,e)}catch(e){throw this[XA]=!1,e}if(p=d?{type:h,escapeConnect:a,batch:f}:f[0],this[XA]=!1,!t){var v=void 0;if(o.refineEvent){var y=o.refineEvent(m,e,r,this._api).eventContent;He(W(y)),v=L({type:o.refinedEventType},y),v.fromAction=e.type,v.fromActionPayload=e,v.escapeConnect=!0}var b=this._messageCenter;b.trigger(p.type,p),v&&b.trigger(v.type,v)}},_j=function(e){for(var t=this._pendingActions;t.length;){var n=t.shift();gj.call(this,n,e)}},vj=function(e){!e&&this.trigger(`updated`)},yj=function(e,t){e.on(`rendered`,function(n){t.trigger(`rendered`,n),e.animation.isFinished()&&!t[QA]&&!t._scheduler.unfinished&&!t._pendingActions.length?t.trigger(`finished`):e.refresh()})},bj=function(e,t){e.on(`mouseover`,function(e){var n=e.target,r=Ek(n,Iu);r&&(Cu(r,e,t._api),Ej(t))}).on(`mouseout`,function(e){var n=e.target,r=Ek(n,Iu);r&&(wu(r,e,t._api),Ej(t))}).on(`click`,function(e){var n=e.target,r=Ek(n,function(e){return Z(e).dataIndex!=null},!0);if(r){var i=r.selected?`unselect`:`select`,a=Z(r);t._api.dispatchAction({type:i,dataType:a.dataType,dataIndexInside:a.dataIndex,seriesIndex:a.seriesIndex,isFromClick:!0})}})};function t(e){e.clearColorPalette(),e.eachSeries(function(e){e.clearColorPalette()})}function n(e){var t=[],n=[],r=!1;if(e.eachComponent(function(e,i){var a=i.get(`zlevel`)||0,o=i.get(`z`)||0,s=i.getZLevelKey();r=r||!!s,(e===`series`?n:t).push({zlevel:a,z:o,idx:i.componentIndex,type:e,key:s})}),r){var i=t.concat(n),a,o;nD(i,function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel}),z(i,function(t){var n=e.getComponent(t.type,t.idx),r=t.zlevel,i=t.key;a!=null&&(r=Math.max(a,r)),i?(r===a&&i!==o&&r++,o=i):o&&(r===a&&r++,o=``),a=r,n.setZLevel(r)})}}xj=function(e,t,r,i,a){n(t),Sj(e,t,r,i,a),z(e._chartsViews,function(e){e.__alive=!1}),Cj(e,t,r,i,a),z(e._chartsViews,function(e){e.__alive||e.remove(t,r)})},Sj=function(e,t,n,r,i,a){z(a||e._componentsViews,function(e){var i=e.__model;s(i,e),e.render(i,t,n,r),o(i,e),c(i,e)})},Cj=function(e,t,n,r,l,u){var d=e._scheduler;l=I(l||{},{updatedSeries:t.getSeries()}),Dk.trigger(`series:beforeupdate`,t,n,l);var f=!1;t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];n.__alive=!0;var i=n.renderTask;d.updatePayload(i,r),s(t,n),u&&u.get(t.uid)&&i.dirty(),i.perform(d.getPerformArgs(i))&&(f=!0),n.group.silent=!!t.get(`silent`),a(t,n),Eu(t)}),d.unfinished=f||d.unfinished,Dk.trigger(`series:layoutlabels`,t,n,l),Dk.trigger(`series:transition`,t,n,l),t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];o(t,n),c(t,n)}),i(e,t),Dk.trigger(`series:afterupdate`,t,n,l)},Ej=function(e){e[$A]=!0,e.getZr().wakeUp()},Oj=function(e){e[ZA]=(e[ZA]+1)%1e6},Dj=function(e){e[$A]&&(e.getZr().storage.traverse(function(e){gf(e)||r(e)}),e[$A]=!1)};function r(e){for(var t=[],n=e.currentStates,r=0;r<n.length;r++){var i=n[r];i!==`emphasis`&&i!==`blur`&&i!==`select`&&t.push(i)}e.selected&&e.states.select&&t.push(`select`),e.hoverState===2&&e.states.emphasis?t.push(`emphasis`):e.hoverState===1&&e.states.blur&&t.push(`blur`),e.useStates(t)}function i(e,t){var n=e._zr;if(n.painter.type===`canvas`){var r=n.storage,i=0;r.traverse(function(e){e.isGroup||i++});var a=i>G(t.get(`hoverLayerThreshold`),JD.hoverLayerThreshold)&&!J.node&&!J.worker;(e._usingTHL||a)&&(t.eachSeries(function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered(function(e){var t=e.states.emphasis;t&&t.hoverLayer!==2&&(t.hoverLayer=+!!a)})}}),e._usingTHL=a)}}function a(e,t){var n=e.get(`blendMode`)||null;t.eachRendered(function(e){e.isGroup||(e.style.blend=n)})}function o(e,t){if(!e.preventAutoZ){var n=cp(e);t.eachRendered(function(e){return up(e,n.z,n.zlevel),!0})}}function s(e,t){t.eachRendered(function(e){if(!gf(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&(e.stateTransition=null),t&&t.stateTransition&&(t.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&(e.prevStates=null)}})}function c(e,t){var n=e.getModel(`stateAnimation`),i=e.isAnimationEnabled(),a=n.get(`duration`),o=a>0?{duration:a,delay:n.get(`delay`),easing:n.get(`easing`)}:null;t.eachRendered(function(e){if(e.states&&e.states.emphasis){if(gf(e))return;if(e instanceof Ko&&Bu(e),e.__dirty){var t=e.prevStates;t&&e.useStates(t)}if(i){e.stateTransition=o;var n=e.getTextContent(),a=e.getTextGuideLine();n&&(n.stateTransition=o),a&&(a.stateTransition=o)}e.__dirty&&r(e)}})}wj=function(e){return new(function(t){T(n,t);function n(){return t!==null&&t.apply(this,arguments)||this}return n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(n!=null)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){du(t,n),Ej(e)},n.prototype.leaveEmphasis=function(t,n){fu(t,n),Ej(e)},n.prototype.enterBlur=function(t){pu(t),Ej(e)},n.prototype.leaveBlur=function(t){mu(t),Ej(e)},n.prototype.enterSelect=function(t){hu(t),Ej(e)},n.prototype.leaveSelect=function(t){gu(t),Ej(e)},n.prototype.getModel=function(){return e.getModel()},n.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},n.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},n.prototype.getECUpdateCycleVersion=function(){return e[ZA]},n.prototype.usingTHL=function(){return e._usingTHL},n}(Ml))(e)},Tj=function(e){function t(e,t){for(var n=0;n<e.length;n++){var r=e[n];r[tj]=t}}z(Nj,function(n,r){e._messageCenter.on(r,function(n){if(Vj[e.group]&&e[tj]!==nj){if(n&&n.escapeConnect)return;var r=e.makeActionFromEvent(n),i=[];z(Bj,function(t){t!==e&&t.group===e.group&&i.push(t)}),t(i,nj),z(i,function(e){e[tj]!==rj&&e.dispatchAction(r)}),t(i,ij)}})})}}(),t}(ca),Aj=kj.prototype;Aj.on=aj(`on`),Aj.off=aj(`off`),Aj.one=function(e,t,n){var r=this;function i(){var n=[...arguments];t&&t.apply&&t.apply(this,n),r.off(e,i)}this.on.call(this,e,i,n)};var jj=[`click`,`dblclick`,`mouseover`,`mouseout`,`mousemove`,`mousedown`,`mouseup`,`globalout`,`contextmenu`],Mj={},Nj={},Pj={},Fj=[],Ij=[],Lj=[],Rj={},zj={},Bj={},Vj={},Hj=new Date-0,Uj=new Date-0,Wj=`_echarts_instance_`;function Gj(e,t,n){var r=!(n&&n.ssr);if(r){var i=Xj(e);if(i)return i}var a=new kj(e,t,n);return a.id=`ec_`+Hj++,Bj[a.id]=a,r&&el(e,Wj,a.id),Tj(a),Dk.trigger(`afterinit`,a),a}function Kj(e){if(V(e)){var t=e;e=null,z(t,function(t){t.group!=null&&(e=t.group)}),e=e||`g_`+Uj++,z(t,function(t){t.group=e})}return Vj[e]=!0,e}function qj(e){Vj[e]=!1}var Jj=qj;function Yj(e){U(e)?e=Bj[e]:e instanceof kj||(e=Xj(e)),e instanceof kj&&!e.isDisposed()&&e.dispose()}function Xj(e){return Bj[tl(e,Wj)]}function Zj(e){return Bj[e]}function Qj(e,t){Rj[e]=t}function $j(e){R(Ij,e)<0&&Ij.push(e)}function eM(e,t){dM(Fj,e,t,LA)}function tM(e){rM(`afterinit`,e)}function nM(e){rM(`afterupdate`,e)}function rM(e,t){Dk.on(e,t)}function iM(e,t,n){var r,i,a,o,s;H(t)&&(n=t,t=``),W(e)?(r=e.type,i=e.event,o=e.update,s=e.publishNonRefinedEvent,n||(n=e.action),a=e.refineEvent):(r=e,i=t);function c(e){return e.toLowerCase()}i=c(i||r);var l=a?c(r):i;Mj[r]||(He(ej.test(r)&&ej.test(i)),a&&He(i!==r),Mj[r]={actionType:r,refinedEventType:i,nonRefinedEventType:l,update:o,action:n,refineEvent:a},Pj[i]=1,a&&s&&(Pj[l]=1),Nj[l]=r)}function aM(e,t){Nh.register(e,t)}function oM(e){var t=Nh.get(e);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function sM(e,t){Mk(e,t)}function cM(e,t){dM(Lj,e,t,zA,`layout`,!0)}function lM(e,t){dM(Lj,e,t,HA,`visual`,!0)}var uM=[];function dM(e,t,n,r,i,a){if((H(t)||W(t))&&(n=t,t=r),!(R(uM,n)>=0)){uM.push(n);var o=ek.wrapStageHandler(n,i);o.__prio=t,o.__raw=n,e.push(o)}}function fM(e,t){zj[e]=t}function pM(e){ee({createCanvas:e})}function mM(e,t,n){var r=Ak(`registerMap`);r&&r(e,t,n)}function hM(e){var t=Ak(`getMap`);return t&&t(e)}var gM=pv;lM(VA,JO),lM(WA,XO),lM(WA,ZO),lM(VA,Sk),lM(WA,Ck),lM(JA,OA),$j(RO),eM(PA,zO),fM(`default`,$O),iM({type:Bl,event:Bl,update:Bl},et),iM({type:Vl,event:Vl,update:Vl},et),iM({type:Hl,event:Gl,update:Hl,action:et,refineEvent:_M,publishNonRefinedEvent:!0}),iM({type:Ul,event:Gl,update:Ul,action:et,refineEvent:_M,publishNonRefinedEvent:!0}),iM({type:Wl,event:Gl,update:Wl,action:et,refineEvent:_M,publishNonRefinedEvent:!0});function _M(e,t,n,r){return{eventContent:{selected:Du(n),isFromClick:t.isFromClick||!1}}}Qj(`default`,{}),Qj(`dark`,vk);var vM={},yM=[],bM={registerPreprocessor:$j,registerProcessor:eM,registerPostInit:tM,registerPostUpdate:nM,registerUpdateLifecycle:rM,registerAction:iM,registerCoordinateSystem:aM,registerLayout:cM,registerVisual:lM,registerTransform:gM,registerLoading:fM,registerMap:mM,registerImpl:kk,PRIORITY:YA,ComponentModel:q_,ComponentView:HO,SeriesModel:Xv,ChartView:Wy,registerComponentModel:function(e){q_.registerClass(e)},registerComponentView:function(e){HO.registerClass(e)},registerSeriesModel:function(e){Xv.registerClass(e)},registerChartView:function(e){Wy.registerClass(e)},registerCustomSeries:function(e,t){Mk(e,t)},registerSubTypeDefaulter:function(e,t){q_.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){zD(e,t)}};function xM(e){if(V(e)){z(e,function(e){xM(e)});return}R(yM,e)>=0||(yM.push(e),H(e)&&(e={install:e}),e.install(bM))}var SM=function(){function e(){}return e.prototype.needIncludeZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}(),CM=function(e){T(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents(`grid`,Xc).models[0]},t.type=`cartesian2dAxis`,t}(q_);be(CM,SM);var wM={show:!0,z:0,inverse:!1,name:``,nameLocation:`end`,nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:`...`,placeholder:`.`},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:`auto`,onZeroAxisIndex:null,lineStyle:{color:Q.color.axisLine,width:1,type:`solid`},symbol:[`none`,`none`],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:Q.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:Q.color.axisSplitLine,width:1,type:`solid`}},splitArea:{show:!1,areaStyle:{color:[Q.color.backgroundTint,Q.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:Q.color.neutral00,borderColor:Q.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:`auto`}},TM=F({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:`auto`,show:`auto`},axisLabel:{interval:`auto`}},wM),EM=F({boundaryGap:[0,0],axisLine:{show:`auto`},axisTick:{show:`auto`},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:Q.color.axisMinorSplitLine,width:1}}},wM),DM={category:TM,value:EM,time:F({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:`bold`}}},splitLine:{show:!1}},EM),log:L({logBase:10},EM)};function OM(e,t,n,r){z(ex,function(i,a){var o=F(F({},DM[a],!0),r,!0),s=function(e){T(n,e);function n(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t+`Axis.`+a,n}return n.prototype.mergeDefaultAndTheme=function(e,t){var n=H_(this),r=n?W_(e):{};F(e,t.getTheme().get(a+`Axis`)),F(e,this.getDefaultOption()),e.type=kM(e),n&&U_(e,r,n)},n.prototype.optionUpdated=function(){this.option.type===`category`&&(this.__ordinalMeta=ab.createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if(t.type===`category`)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.prototype.updateAxisBreaks=function(e){var t=cC();return t?t.updateModelAxisBreak(this,e):{breaks:[]}},n.type=t+`Axis.`+a,n.defaultOption=o,n}(n);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+`Axis`,kM)}function kM(e){return e.type||(e.data?`category`:`value`)}var AM=function(){function e(e){this.type=`cartesian`,this._dimList=[],this._axes={},this.name=e||``}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return B(this._dimList,function(e){return this._axes[e]},this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Ce(this.getAxes(),function(t){return t.scale.type===e})},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}(),jM=[`x`,`y`];function MM(e){return(e.type===`interval`||e.type===`time`)&&!Pg(e)}var NM=function(e){T(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=Cw,t.dimensions=jM,t}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis(`x`).scale,t=this.getAxis(`y`).scale;if(MM(e)&&MM(t)){var n=fb(e,null),r=fb(t,null),i=this.dataToPoint([n[0],r[0]]),a=this.dataToPoint([n[1],r[1]]),o=n[1]-n[0],s=r[1]-r[0];if(o&&s){var c=(a[0]-i[0])/o,l=(a[1]-i[1])/s,u=i[0]-n[0]*c,d=i[1]-r[0]*l,f=this._transform=[c,0,0,l,u,d];this._invTransform=Rt([],f)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale(`ordinal`)[0]||this.getAxesByScale(`time`)[0]||this.getAxis(`x`)},t.prototype.containPoint=function(e){var t=this.getAxis(`x`),n=this.getAxis(`y`);return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis(`x`).containData(e[0])&&this.getAxis(`y`).containData(e[1])},t.prototype.containZone=function(e,t){var n=this.dataToPoint(e),r=this.dataToPoint(t),i=this.getArea(),a=new X(n[0],n[1],r[0]-n[0],r[1]-n[1]);return i.intersect(a)},t.prototype.dataToPoint=function(e,t,n){n=n||[];var r=e[0],i=e[1];if(this._transform&&r!=null&&isFinite(r)&&i!=null&&isFinite(i))return un(n,e,this._transform);var a=this.getAxis(`x`),o=this.getAxis(`y`);return n[0]=a.toGlobalCoord(a.dataToCoord(r,t)),n[1]=o.toGlobalCoord(o.dataToCoord(i,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis(`x`).scale,r=this.getAxis(`y`).scale,i=n.getExtent(),a=r.getExtent(),o=n.parse(e[0]),s=r.parse(e[1]);return t=t||[],t[0]=Math.min(Math.max(Math.min(i[0],i[1]),o),Math.max(i[0],i[1])),t[1]=Math.min(Math.max(Math.min(a[0],a[1]),s),Math.max(a[0],a[1])),t},t.prototype.pointToData=function(e,t,n){if(n=n||[],this._invTransform)return un(n,e,this._invTransform);var r=this.getAxis(`x`),i=this.getAxis(`y`);return n[0]=r.coordToData(r.toLocalCoord(e[0]),t),n[1]=i.coordToData(i.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim===`x`?`y`:`x`)},t.prototype.getArea=function(e){e=e||0;var t=this.getAxis(`x`).getGlobalExtent(),n=this.getAxis(`y`).getGlobalExtent(),r=Math.min(t[0],t[1])-e,i=Math.min(n[0],n[1])-e;return new X(r,i,Math.max(t[0],t[1])-r+e,Math.max(n[0],n[1])-i+e)},t}(AM);function PM(e,t){var n=e.scale,r=e.model,i=uw(n,r,r.ecModel,e,null),a=xb(n),o=xb(t)?t.intervalStub:t,s=a?n.intervalStub:n,c=n.base,l=o.getTicks(),u=o.getTicks({expandToNicedExtent:!0}),d=l.length-1,f,p,m;if(d===1)f=p=0,m=1;else if(d===2){var h=As(l[0].value-l[1].value),g=As(l[1].value-l[2].value);f=p=0,h===g?m=2:(m=1,h<g?f=h/g:p=g/h)}else{var _=o.getConfig().interval;f=(1-(l[0].value-u[0].value)/_)%1,p=(1-(u[d].value-l[d].value)/_)%1,m=d-+!!f-!!p}var v=i.zoomFixMM,y=v[0]||v[1],b=[i.fixMM[0]||y,i.fixMM[1]||y],x=n.getExtent(),S=s.getExtent(),C=Db(S,b),w,T,E,D,O,k;function A(e){for(var t=50,n=0;n<t&&!e();n++)E=a?E*ks(c,2):Cb(E),D=wb(E)}function j(){w=Ws(k-E*f,D)}function M(){T=Ws(O+E*p,D)}function ee(){k=f?Ws(w+E*f,D):w}function te(){O=p?Ws(T-E*p,D):T}if(b[0]&&b[1]){w=C[0],T=C[1],E=(T-w)/(m+f+p);var ne=e.getExtent(),re=As(ne[1]-ne[0]);D=Xs([T,w],re,.5/m),ee(),te(),hc(D)&&(E=Ws(E,D))}else{var ie=C[1]-C[0];E=a?ks(ac(ie),1):sc(ie/m,2),D=wb(E),b[0]?(w=C[0],A(function(){if(ee(),O=Ws(k+E*m,D),M(),T>=C[1])return!0})):b[1]?(T=C[1],A(function(){if(te(),k=Ws(O-E*m,D),j(),w<=C[0])return!0})):A(function(){k=Ws(Ns(C[0]/E)*E,D),O=Ws(Ms(C[1]/E)*E,D);var e=js((O-k)/E);if(e<=m){var t=m-e,n=void 0,r=i.incl0||a;if(r&&C[0]===0)n=[0,t];else if(r&&C[1]===0)n=[t,0];else{var o=Ms(t/2);n=t%2==0?[o,o]:w+T<C[0]+C[1]?[o,o+1]:[o+1,o]}if(k=Ws(k-E*n[0],D),O=Ws(O+E*n[1],D),j(),M(),w<=C[0]&&T>=C[1])return!0}})}gx(n,b,S,[w,T],x,{interval:E,intervalCount:m,intervalPrecision:D,niceExtent:[k,O]})}function FM(e,t){var n=xb(e),r=n?e.intervalStub:e,i=t.fixMinMax||[],a=n?e.getExtent():null,o=r.getExtent(),s=Db(o,i,t.rawExtentResult);r.setExtent(s[0],s[1]),s=r.getExtent();var c=n?LM(r,t):IM(r,t),l=c.intervalPrecision,u=c.interval,d=t.userInterval;d!=null&&(c.interval=d,c.intervalPrecision=wb(d)),i[0]||(s[0]=Ws(Ms(s[0]/u)*u,l)),i[1]||(s[1]=Ws(Ns(s[1]/u)*u,l)),d!=null&&(c.niceExtent=s.slice()),gx(e,i,o,s,a,c)}function IM(e,t){var n=kb(t.splitNumber,5),r=mb(e),i=t.minInterval,a=t.maxInterval,o=sc(r/n,!0);i!=null&&o<i&&(o=i),a!=null&&o>a&&(o=a);var s=wb(o),c=e.getExtent(),l=[Ws(Ns(c[0]/o)*o,s),Ws(Ms(c[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:l}}function LM(e,t){var n=kb(t.splitNumber,10),r=e.getExtent(),i=mb(e),a=ks(ac(i),1);n/i*a<=.5&&(a*=10);var o=wb(a),s=[Ws(Ns(r[0]/a)*a,o),Ws(Ms(r[1]/a)*a,o)];return{intervalPrecision:o,interval:a,niceExtent:s}}function RM(e){var t=e.scale,n=e.model,r=n.axis,i=n.ecModel;zM(t,n,r,i,null)}function zM(e,t,n,r,i){var a=uw(e,t,r,n,i),o=yb(e)||bb(e);BM(e,{splitNumber:t.get(`splitNumber`),fixMinMax:a.fixMM,userInterval:t.get(`interval`),minInterval:o?t.get(`minInterval`):null,maxInterval:o?t.get(`maxInterval`):null,rawExtentResult:a}),n&&r&&fw(n,e,a,r)}function BM(e,t){VM[e.type](e,t)}var VM={interval:FM,log:FM,time:Kb,ordinal:et},HM=[[3,1],[0,2]],UM=function(){function e(e,t,n){this.type=`grid`,this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=jM,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;z(this._axesList,function(e){iw(e,1);var t=e.scale;Sb(t)&&t.setSortInfo(e.model.get(`categorySortInfo`))});function r(e){for(var t=Te(e),n=[],r=t.length-1;r>=0;r--){var i=e[+t[r]];i.__alignTo?n.push(i):RM(i)}z(n,function(e){JM(e,e.__alignTo)?RM(e):PM(e,e.__alignTo.scale)})}r(n.x),r(n.y);var i={};z(n.x,function(e){GM(n,`y`,e,i)}),z(n.y,function(e){GM(n,`x`,e,i)}),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var r=B_(e,t),i=this._rect=R_(e.getBoxLayoutParams(),r.refContainer),a=this._axesMap,o=this._coordsList,s=e.get(`containLabel`);if(XM(a,i),!n){var c=tN(i,o,a,s,t),l=void 0;if(s)QM?(QM(this._axesList,i),XM(a,i)):l=eN(i.clone(),`axisLabel`,null,i,a,c,r);else{var u=rN(e,i,r),d=u.outerBoundsRect,f=u.parsedOuterBoundsContain,p=u.outerBoundsClamp;d&&(l=eN(d,f,p,i,a,c,r))}nN(i,a,Wx.determine,null,l,r),z(this._coordsList,function(e){e.calcAffineTransform()})}},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(n!=null)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var n=`x`+e+`y`+t;return this._coordsMap[n]}W(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var r=0,i=this._coordsList;r<i.length;r++)if(i[r].getAxis(`x`).index===e||i[r].getAxis(`y`).index===t)return i[r]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.dataToPoint(n):r.axis?r.axis.toGlobalCoord(r.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.pointToData(n):r.axis?r.axis.coordToData(r.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(e){var t=e.seriesModel,n=e.xAxisModel||t&&t.getReferringComponents(`xAxis`,Xc).models[0],r=e.yAxisModel||t&&t.getReferringComponents(`yAxis`,Xc).models[0],i=e.gridModel,a=this._coordsList,o,s;return t?(o=t.coordinateSystem,R(a,o)<0&&(o=null)):n&&r?o=this.getCartesian(n.componentIndex,r.componentIndex):n?s=this.getAxis(`x`,n.componentIndex):r?s=this.getAxis(`y`,r.componentIndex):i&&i.coordinateSystem===this&&(o=this._coordsList[0]),{cartesian:o,axis:s}},e.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},e.prototype._initCartesian=function(e,t,n){var r=this,i=this,a={left:!1,right:!1,top:!1,bottom:!1},o={x:{},y:{}},s={x:0,y:0};if(t.eachComponent(`xAxis`,c(`x`),this),t.eachComponent(`yAxis`,c(`y`),this),!s.x||!s.y){this._axesMap={},this._axesList=[];return}this._axesMap=o,z(o.x,function(t,n){z(o.y,function(i,a){var o=`x`+n+`y`+a,s=new NM(o);s.master=r,s.model=e,r._coordsMap[o]=s,r._coordsList.push(s),s.addAxis(t),s.addAxis(i)})}),qM(o.x),qM(o.y);function c(t){return function(n,r){if(WM(n,e)){var c=n.get(`position`);t===`x`?c!==`top`&&c!==`bottom`&&(c=a.bottom?`top`:`bottom`):c!==`left`&&c!==`right`&&(c=a.left?`right`:`left`),a[c]=!0;var l=nx(n),u=new US(t,rx(n,l,!0),[0,0],l,c);u.onBand=vx(u.scale,n),u.inverse=n.get(`inverse`),n.axis=u,u.model=n,u.grid=i,u.index=r,i._axesList.push(u),o[t][r]=u,s[t]++}}}},e.prototype.getTooltipAxes=function(e){var t=[],n=[];return z(this.getCartesians(),function(r){var i=e!=null&&e!==`auto`?r.getAxis(e):r.getBaseAxis(),a=r.getOtherAxis(i);R(t,i)<0&&t.push(i),R(n,a)<0&&n.push(a)}),{baseAxes:t,otherAxes:n}},e.create=function(t,n){var r=[];return t.eachComponent(`grid`,function(i,a){var o=new e(i,t,n);o.name=`grid_`+a,o.resize(i,n,!0),i.coordinateSystem=o,r.push(o),z(o._axesList,function(t){rw(t,e.dimIdxMap)})}),t.eachSeries(function(e){var t,n;zh({targetModel:e,coordSysType:Cw,coordSysProvider:r});function r(){var r=GC(e),i=r.xAxisModel,a=r.yAxisModel;return t=i.axis,n=a.axis,i.getCoordSysModel().coordinateSystem.getCartesian(i.componentIndex,a.componentIndex)}t&&n&&(jS(t,e,Cw),jS(n,e,Cw))},this),r},e.dimensions=jM,e.dimIdxMap=lh(jM),e}();function WM(e,t){return e.getCoordSysModel()===t}function GM(e,t,n,r){n.getAxesOnZeroOf=function(){return a?[a]:[]};var i=e[t],a,o=n.model,s=o.get([`axisLine`,`onZero`]),c=o.get([`axisLine`,`onZeroAxisIndex`]);if(!s)return;if(c!=null)KM(s,i[c])&&(a=i[c]);else for(var l in i)if(q(i,l)&&KM(s,i[l])&&!r[u(i[l])]){a=i[l];break}a&&(r[u(a)]=!0);function u(e){return e.dim+`_`+e.index}}function KM(e,t){if(!t)return!1;var n=t.scale,r=ix(n,0,!1),i=t&&t.type!==`category`&&t.type!==`time`&&r!==3;return i&&e===`auto`&&ox(t)&&(i=!1),i}function qM(e){for(var t=Te(e),n,r=[],i=t.length-1;i>=0;i--){var a=e[+t[i]];vb(a.scale)&&mx(a.model,a.type,!0)==null&&(a.model.get(`alignTicks`)&&a.model.get(`interval`)==null?r.push(a):n=a)}n||(n=r.pop()),n&&z(r,function(e){e.__alignTo=n})}function JM(e,t){return Pg(e.scale)||Pg(t.scale)||t.scale.getTicks().length<2}function YM(e,t){var n=e.getExtent(),r=n[0]+n[1];e.toGlobalCoord=e.dim===`x`?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord=e.dim===`x`?function(e){return e-t}:function(e){return r-e+t}}function XM(e,t){z(e.x,function(e){return ZM(e,t.x,t.width)}),z(e.y,function(e){return ZM(e,t.y,t.height)})}function ZM(e,t,n){var r=[0,n],i=+!!e.inverse;e.setExtent(r[i],r[1-i]),YM(e,t)}var QM;function $M(e){QM=e}function eN(e,t,n,r,i,a,o){nN(r,i,Wx.estimate,t,!1,o);var s=[0,0,0,0];l(0),l(1),u(r,0,NaN),u(r,1,NaN);var c=we(s,function(e){return e>0})==null;return Qf(r,s,!0,!0,n),XM(i,r),c;function l(e){z(i[wf[e]],function(t){if(px(t.model)){var n=a.ensureRecord(t.model),r=n.labelInfoList;if(r)for(var i=0;i<r.length;i++){var o=r[i],s=t.scale.normalize(_x(t.scale,pC(o.label).labelInfo.tick));s=e===1?1-s:s,u(o.rect,e,s),u(o.rect,1-e,NaN)}var c=n.nameLayout;if(c){var s=fx(n.nameLocation)?.5:NaN;u(c.rect,e,s),u(c.rect,1-e,NaN)}}})}function u(t,n,r){var i=e[wf[n]]-t[wf[n]],a=t[Tf[n]]+t[wf[n]]-(e[Tf[n]]+e[wf[n]]);i=d(i,1-r),a=d(a,r);var o=HM[n][0],c=HM[n][1];s[o]=ks(s[o],i),s[c]=ks(s[c],a)}function d(e,t){return e>0&&!Le(t)&&t>1e-4&&(e/=t),e}}function tN(e,t,n,r,i){var a=new hC(iN);return z(n,function(n){return z(n,function(n){if(px(n.model)){var o=!r;n.axisBuilder=KC(e,t,n.model,i,a,o)}})}),a}function nN(e,t,n,r,i,a){var o=n===Wx.determine;z(t,function(t){return z(t,function(t){px(t.model)&&(qC(t.axisBuilder,e,t.model),t.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};c(0),c(1);function c(t){s[wf[1-t]]=e[Tf[t]]<=a.refContainer[Tf[t]]*.5?0:1-t==1?2:1}z(t,function(e,t){return z(e,function(e){px(e.model)&&((r===`all`||o)&&e.axisBuilder.build({axisName:!0},{nameMarginLevel:s[t]}),o&&e.axisBuilder.build({axisLine:!0}))})})}function rN(e,t,n){var r,i=e.get(`outerBoundsMode`,!0);i===`same`?r=t.clone():(i==null||i===`auto`)&&(r=R_(e.get(`outerBounds`,!0)||xw,n.refContainer));var a=e.get(`outerBoundsContain`,!0),o=a==null||a===`auto`||R([`all`,`axisLabel`],a)<0?`all`:a,s=[Hs(G(e.get(`outerBoundsClampWidth`,!0),Sw[0]),t.width),Hs(G(e.get(`outerBoundsClampHeight`,!0),Sw[1]),t.height)];return{outerBoundsRect:r,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var iN=function(e,t,n,r,i,a){var o=n.axis.dim===`x`?`y`:`x`;yC(e,t,n,r,i,a),fx(e.nameLocation)||z(t.recordMap[o],function(e){e&&e.labelInfoList&&e.dirVec&&xC(e.labelInfoList,e.dirVec,r,i)})};function aN(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return oN(n,e,t),n.seriesInvolved&&cN(n,e),n}function oN(e,t,n){var r=t.getComponent(`tooltip`),i=t.getComponent(`axisPointer`),a=i.get(`link`,!0)||[],o=[];z(n.getCoordinateSystems(),function(n){if(!n.axisPointerEnabled)return;var s=hN(n.model),c=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var l=n.model.getModel(`tooltip`,r);if(z(n.getAxes(),Oe(p,!1,null)),n.getTooltipAxes&&r&&l.get(`show`)){var u=l.get(`trigger`)===`axis`,d=l.get([`axisPointer`,`type`])===`cross`,f=n.getTooltipAxes(l.get([`axisPointer`,`axis`]));(u||d)&&z(f.baseAxes,Oe(p,!d||`cross`,u)),d&&z(f.otherAxes,Oe(p,`cross`,!1))}function p(r,s,u){var d=u.model.getModel(`axisPointer`,i),f=d.get(`show`);if(f&&(f!==`auto`||r||mN(d))){s==null&&(s=d.get(`triggerTooltip`)),d=r?sN(u,l,i,t,r,s):d;var p=d.get(`snap`),m=d.get(`triggerEmphasis`),h=hN(u.model),g=s||p||u.type===`category`,_=e.axesInfo[h]={key:h,axis:u,coordSys:n,axisPointerModel:d,triggerTooltip:s,triggerEmphasis:m,involveSeries:g,snap:p,useHandle:mN(d),seriesModels:[],linkGroup:null};c[h]=_,e.seriesInvolved=e.seriesInvolved||g;var v=lN(a,u);if(v!=null){var y=o[v]||(o[v]={axesInfo:{}});y.axesInfo[h]=_,y.mapper=a[v].mapper,_.linkGroup=y}}}})}function sN(e,t,n,r,i,a){var o=t.getModel(`axisPointer`),s=[`type`,`snap`,`lineStyle`,`shadowStyle`,`label`,`animation`,`animationDurationUpdate`,`animationEasingUpdate`,`z`],c={};z(s,function(e){c[e]=P(o.get(e))}),c.snap=e.type!==`category`&&!!a,o.get(`type`)===`cross`&&(c.type=`line`);var l=c.label||(c.label={});if(l.show==null&&(l.show=!1),i===`cross`){var u=o.get([`label`,`show`]);if(l.show=u==null||u,!a){var d=c.lineStyle=o.get(`crossStyle`);d&&L(l,d.textStyle)}}return e.model.getModel(`axisPointer`,new Wp(c,n,r))}function cN(e,t){t.eachSeries(function(t){var n=t.coordinateSystem,r=t.get([`tooltip`,`trigger`],!0),i=t.get([`tooltip`,`show`],!0);n&&n.model&&r!==`none`&&r!==!1&&r!==`item`&&i!==!1&&t.get([`axisPointer`,`show`],!0)!==!1&&z(e.coordSysAxesInfo[hN(n.model)],function(e){var r=e.axis;n.getAxis(r.dim)===r&&(e.seriesModels.push(t),e.seriesDataCount==null&&(e.seriesDataCount=0),e.seriesDataCount+=t.getData().count())})})}function lN(e,t){for(var n=t.model,r=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(uN(a[r+`AxisId`],n.id)||uN(a[r+`AxisIndex`],n.componentIndex)||uN(a[r+`AxisName`],n.name))return i}}function uN(e,t){return e===`all`||V(e)&&R(e,t)>=0||e===t}function dN(e){var t=fN(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,a=n.get(`status`),o=n.get(`value`);o!=null&&(o=r.parse(o));var s=mN(n);a==null&&(i.status=s?`show`:`hide`);var c=r.getExtent();(o==null||o>c[1])&&(o=c[1]),o<c[0]&&(o=c[0]),i.value=o,s&&(i.status=t.axis.scale.isBlank()?`hide`:`show`)}}function fN(e){var t=(e.ecModel.getComponent(`axisPointer`)||{}).coordSysAxesInfo;return t&&t.axesInfo[hN(e)]}function pN(e){var t=fN(e);return t&&t.axisPointerModel}function mN(e){return!!e.get([`handle`,`show`])}function hN(e){return e.type+`||`+e.id}var gN={},_N=function(e){T(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(t,n,r,i){this.axisPointerClass&&dN(t),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,r,!0)},t.prototype.updateAxisPointer=function(e,t,n,r){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,t){var n=this._axisPointer;n&&n.remove(t)},t.prototype.dispose=function(t,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,r){var i=t.getAxisPointerClass(this.axisPointerClass);if(i){var a=pN(e);a?(this._axisPointer||(this._axisPointer=new i)).render(e,a,n,r):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,t){gN[e]=t},t.getAxisPointerClass=function(e){return e&&gN[e]},t.type=`axis`,t}(HO),vN=Kc();function yN(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var a=n.getModel(`splitArea`),o=a.getModel(`areaStyle`),s=o.get(`color`),c=r.coordinateSystem.getRect(),l=i.getTicksCoords({tickModel:a,breakTicks:`none`,pruneByBreak:`preserve_extent_bound`});if(l.length){var u=s.length,d=vN(e).splitAreaColors,f=K(),p=0;if(d)for(var m=0;m<l.length;m++){var h=d.get(l[m].tickValue);if(h!=null){p=(h+(u-1)*m)%u;break}}var g=i.toGlobalCoord(l[0].coord),_=o.getAreaStyle();s=V(s)?s:[s];for(var m=1;m<l.length;m++){var v=i.toGlobalCoord(l[m].coord),y=void 0,b=void 0,x=void 0,S=void 0;i.isHorizontal()?(y=g,b=c.y,x=v-y,S=c.height,g=y+x):(y=c.x,b=g,x=c.width,S=v-b,g=b+S);var C=l[m-1].tickValue;C!=null&&f.set(C,p),t.add(new os({anid:C==null?null:`area_`+C,shape:{x:y,y:b,width:x,height:S},style:L({fill:s[p]},_),autoBatch:!0,silent:!0})),p=(p+1)%u}vN(e).splitAreaColors=f}}}function bN(e){vN(e).splitAreaColors=null}var xN=[`splitArea`,`splitLine`,`minorSplitLine`,`breakArea`],SN=function(e){T(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass=`CartesianAxisPointer`,n}return t.prototype.render=function(t,n,r,i){this.group.removeAll();var a=this._axisGroup;this._axisGroup=new ud,this.group.add(this._axisGroup),px(t)&&(this._axisGroup.add(t.axis.axisBuilder.group),z(xN,function(e){t.get([e,`show`])&&CN[e](this,this._axisGroup,t,t.getCoordSysModel(),r)},this),i&&i.type===`changeAxisOrder`&&i.isInitSort||Wf(a,this._axisGroup,t),e.prototype.render.call(this,t,n,r,i))},t.prototype.remove=function(){bN(this)},t.type=`cartesianAxis`,t}(_N),CN={splitLine:function(e,t,n,r,i){var a=n.axis;if(!a.scale.isBlank()){var o=n.getModel(`splitLine`),s=o.getModel(`lineStyle`),c=s.get(`color`),l=o.get(`showMinLine`)!==!1,u=o.get(`showMaxLine`)!==!1;c=V(c)?c:[c];for(var d=r.coordinateSystem.getRect(),f=a.isHorizontal(),p=0,m=a.getTicksCoords({tickModel:o,breakTicks:`none`,pruneByBreak:`preserve_extent_bound`}),h=[],g=[],_=s.getLineStyle(),v=0;v<m.length;v++){var y=a.toGlobalCoord(m[v].coord);if(!(v===0&&!l||v===m.length-1&&!u)){var b=m[v].tickValue;f?(h[0]=y,h[1]=d.y,g[0]=y,g[1]=d.y+d.height):(h[0]=d.x,h[1]=y,g[0]=d.x+d.width,g[1]=y);var x=p++%c.length,S=new Hd({anid:b==null?null:`line_`+b,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:g[0],y2:g[1]},style:L({stroke:c[x]},_),silent:!0});If(S.shape,_.lineWidth),t.add(S)}}}},minorSplitLine:function(e,t,n,r,i){var a=n.axis,o=n.getModel(`minorSplitLine`).getModel(`lineStyle`),s=r.coordinateSystem.getRect(),c=a.isHorizontal(),l=a.getMinorTicksCoords();if(l.length)for(var u=[],d=[],f=o.getLineStyle(),p=0;p<l.length;p++)for(var m=0;m<l[p].length;m++){var h=a.toGlobalCoord(l[p][m].coord);c?(u[0]=h,u[1]=s.y,d[0]=h,d[1]=s.y+s.height):(u[0]=s.x,u[1]=h,d[0]=s.x+s.width,d[1]=h);var g=new Hd({anid:`minor_line_`+l[p][m].tickValue,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:d[0],y2:d[1]},style:f,silent:!0});If(g.shape,f.lineWidth),t.add(g)}},splitArea:function(e,t,n,r,i){yN(e,t,n,r)},breakArea:function(e,t,n,r,i){var a=cC(),o=n.axis.scale;a&&o.type!==`ordinal`&&a.rectCoordBuildBreakAxis(t,e,n,r.coordinateSystem.getRect(),i)}},wN=function(e){T(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`xAxis`,t}(SN),TN=function(e){T(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=wN.type,t}return t.type=`yAxis`,t}(SN),EN=function(e){T(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`grid`,t}return t.prototype.render=function(e,t){this.group.removeAll(),e.get(`show`)&&this.group.add(new os({shape:e.coordinateSystem.getRect(),style:L({fill:e.get(`backgroundColor`)},e.getItemStyle()),silent:!0,z2:-1}))},t.type=`grid`,t}(HO),DN={offset:0};function ON(e){e.registerComponentView(EN),e.registerComponentModel(ww),e.registerCoordinateSystem(`cartesian2d`,UM),OM(e,`x`,CM,DN),OM(e,`y`,CM,DN),e.registerComponentView(wN),e.registerComponentView(TN),e.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function kN(e){var t=e.polar;if(t){V(t)||(t=[t]);var n=[];z(t,function(t,r){t.indicator?(t.type&&!t.shape&&(t.shape=t.type),e.radar=e.radar||[],V(e.radar)||(e.radar=[e.radar]),e.radar.push(t)):n.push(t)}),e.polar=n}z(e.series,function(e){e&&e.type===`radar`&&e.polarIndex&&(e.radarIndex=e.polarIndex)})}var AN=`radar`,jN=function(e){T(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new OT(De(this.getData,this),De(this.getRawData,this))},t.prototype.getInitialData=function(e,t){return DT(this,{generateCoord:`indicator_`,generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.coordinateSystem.getIndicatorAxes(),a=this.getData().getName(e),o=a===``?this.name:a,s=Hv(this,e);return kv(`section`,{header:o,sortBlocks:!0,blocks:B(i,function(t){var n=r.get(r.mapDimension(t.dim),e);return kv(`nameValue`,{markerType:`subItem`,markerColor:s,name:t.name,value:n,sortParam:n})})})},t.prototype.getTooltipPosition=function(e){if(e!=null){for(var t=this.getData(),n=this.coordinateSystem,r=t.getValues(B(n.dimensions,function(e){return t.mapDimension(e)}),e),i=0,a=r.length;i<a;i++)if(!isNaN(r[i])){var o=n.getIndicatorAxes();return n.coordToPoint(o[i].dataToCoord(r[i]),i)}}},t.type=`series.`+AN,t.dependencies=[`radar`],t.defaultOption={z:2,colorBy:`data`,coordinateSystem:`radar`,legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:`solid`,join:`round`},label:{position:`top`},symbolSize:8},t}(Xv),MN=function(e){T(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=AN,t}return t.prototype.render=function(e,t,n){var r=e.coordinateSystem,i=this.group,a=e.getData(),o=this._data;function s(e,t){var n=e.getItemVisual(t,`symbol`)||`circle`;if(n!==`none`){var r=fy(e.getItemVisual(t,`symbolSize`)),i=dy(n,-1,-1,2,2),a=e.getItemVisual(t,`symbolRotate`)||0;return i.attr({style:{strokeNoScale:!0},z2:100,scaleX:r[0]/2,scaleY:r[1]/2,rotation:a*Math.PI/180||0}),i}}function c(t,n,r,i,a,o){r.removeAll();for(var c=0;c<n.length-1;c++){var l=s(i,a);l&&(l.__dimIdx=c,t[c]?(l.setPosition(t[c]),Sf[o?`initProps`:`updateProps`](l,{x:n[c][0],y:n[c][1]},e,a)):l.setPosition(n[c]),r.add(l))}}function l(e){return B(e,function(e){return[r.cx,r.cy]})}a.diff(o).add(function(t){var n=a.getItemLayout(t);if(n){var r=new Ld,i=new zd,o={shape:{points:n}};r.shape.points=l(n),i.shape.points=l(n),hf(r,o,e,t),hf(i,o,e,t);var s=new ud,u=new ud;s.add(i),s.add(r),s.add(u),c(i.shape.points,n,u,a,t,!0),a.setItemGraphicEl(t,s)}}).update(function(t,n){var r=o.getItemGraphicEl(n),i=r.childAt(0),s=r.childAt(1),l=r.childAt(2),u={shape:{points:a.getItemLayout(t)}};u.shape.points&&(c(i.shape.points,u.shape.points,l,a,t,!1),bf(s),bf(i),mf(i,u,e),mf(s,u,e),a.setItemGraphicEl(t,r))}).remove(function(e){i.remove(o.getItemGraphicEl(e))}).execute(),a.eachItemGraphicEl(function(e,t){var n=a.getItemModel(t),r=e.childAt(0),o=e.childAt(1),s=e.childAt(2),c=a.getItemVisual(t,`style`),l=c.fill;i.add(e),r.useStyle(L(n.getModel(`lineStyle`).getLineStyle(),{fill:`none`,stroke:l})),Pu(r,n,`lineStyle`),Pu(o,n,`areaStyle`);var u=n.getModel(`areaStyle`),d=u.isEmpty()&&u.parentModel.isEmpty();o.ignore=d,z([`emphasis`,`select`,`blur`],function(e){var t=n.getModel([e,`areaStyle`]),i=t.isEmpty()&&t.parentModel.isEmpty();o.ensureState(e).ignore=i&&d;var a=n.getModel([e,`lineStyle`]).getLineStyle();r.ensureState(e).style=a;var c=t.getAreaStyle();o.ensureState(e).style=c;var l=n.getModel([e,`itemStyle`]).getItemStyle();s.eachChild(function(t){t.ensureState(e).style=P(l)})}),o.useStyle(L(n.getModel(`areaStyle`).getAreaStyle(),{fill:l,opacity:.7,decal:c.decal}));var f=n.getModel(`emphasis`);s.eachChild(function(e){if(e instanceof Qo){var r=e.style;e.useStyle(I({image:r.image,x:r.x,y:r.y,width:r.width,height:r.height},c))}else e.useStyle(c),e.setColor(l),e.style.strokeNoScale=!0;var i=a.getStore().get(a.getDimensionIndex(e.__dimIdx),t);(i==null||isNaN(i))&&(i=``),yp(e,bp(n),{labelFetcher:a.hostModel,labelDataIndex:t,labelDimIndex:e.__dimIdx,defaultText:i,inheritColor:l,defaultOpacity:c.opacity})}),Au(e,f.get(`focus`),f.get(`blurScope`),f.get(`disabled`))}),this._data=a},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type=AN,t}(Wy),NN=DM.value,PN=`radar`,FN=PN,IN=PN;function LN(e,t){return L({show:t},e)}var RN=function(e){T(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(){var e=this.get(`boundaryGap`),t=this.get(`splitNumber`),n=this.get(`clockwise`),r=this.get(`scale`),i=this.get(`axisLine`),a=this.get(`axisTick`),o=this.get(`axisLabel`),s=this.get(`axisName`),c=this.get([`axisName`,`show`]),l=this.get([`axisName`,`formatter`]),u=this.get(`axisNameGap`),d=this.get(`triggerEvent`),f=B(this.get(`indicator`)||[],function(f){f.max!=null&&f.max>0&&!f.min?f.min=0:f.min!=null&&f.min<0&&!f.max&&(f.max=0);var p=s;f.color!=null&&(p=L({color:f.color},s));var m=F(P(f),{boundaryGap:e,splitNumber:t,clockwise:n,scale:r,axisLine:i,axisTick:a,axisLabel:o,name:f.text,showName:c,nameLocation:`end`,nameGap:u,nameTextStyle:p,triggerEvent:d},!1);if(U(l)){var h=m.name;m.name=l.replace(`{value}`,h==null?``:h)}else H(l)&&(m.name=l(m.name,m));var g=new Wp(m,null,this.ecModel);return be(g,SM.prototype),g.mainType=`radar`,g.componentIndex=this.componentIndex,g.uid=eg(`ec_radar`),g},this);this._indicatorModels=f},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type=FN,t.defaultOption={z:0,center:[`50%`,`50%`],radius:`50%`,startAngle:90,clockwise:!1,axisName:{show:!0,color:Q.color.axisLabel},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:`polygon`,axisLine:F({lineStyle:{color:Q.color.neutral20}},NN.axisLine),axisLabel:LN(NN.axisLabel,!1),axisTick:LN(NN.axisTick,!1),splitLine:LN(NN.splitLine,!0),splitArea:LN(NN.splitArea,!0),indicator:[]},t}(q_),zN=function(e){T(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){this.group.removeAll(),this._buildAxes(e,n),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e,t){var n=e.coordinateSystem;z(B(n.getIndicatorAxes(),function(e){var r=e.model.get(`showName`)?e.name:``;return new SC(e.model,t,{axisName:r,position:[n.cx,n.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}),function(e){e.build(),this.group.add(e.group)},this)},t.prototype._buildSplitLineAndArea=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes();if(!n.length)return;var r=e.get(`shape`),i=e.getModel(`splitLine`),a=e.getModel(`splitArea`),o=i.getModel(`lineStyle`),s=a.getModel(`areaStyle`),c=i.get(`show`),l=a.get(`show`),u=o.get(`color`),d=s.get(`color`),f=V(u)?u:[u],p=V(d)?d:[d],m=[],h=[];function g(e,t,n){var r=n%t.length;return e[r]=e[r]||[],r}if(r===`circle`)for(var _=n[0].getTicksCoords(),v=t.cx,y=t.cy,b=0;b<_.length;b++){if(c){var x=g(m,f,b);m[x].push(new fd({shape:{cx:v,cy:y,r:_[b].coord}}))}if(l&&b<_.length-1){var x=g(h,p,b);h[x].push(new Nd({shape:{cx:v,cy:y,r0:_[b].coord,r:_[b+1].coord}}))}}else for(var S,C=B(n,function(e,n){var r=e.getTicksCoords();return S=S==null?r.length-1:Math.min(r.length-1,S),B(r,function(e){return t.coordToPoint(e.coord,n)})}),w=[],b=0;b<=S;b++){for(var T=[],E=0;E<n.length;E++)T.push(C[E][b]);if(T[0]&&T.push(T[0].slice()),c){var x=g(m,f,b);m[x].push(new zd({shape:{points:T}}))}if(l&&w){var x=g(h,p,b-1);h[x].push(new Ld({shape:{points:T.concat(w)}}))}w=T.slice().reverse()}var D=o.getLineStyle(),O=s.getAreaStyle();z(h,function(e,t){this.group.add(Pf(e,{style:L({stroke:`none`,fill:p[t%p.length]},O),silent:!0}))},this),z(m,function(e,t){this.group.add(Pf(e,{style:L({fill:`none`,stroke:f[t%f.length]},D),silent:!0}))},this)},t.type=`radar`,t}(HO),BN=function(e){T(t,e);function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.type=`value`,i.angle=0,i.name=``,i}return t}(BS),VN=function(){function e(e,t,n){this.type=PN,this.dimensions=[],this._model=e,this._indicatorAxes=B(e.getIndicatorModels(),function(e,t){var n=`indicator_`+t,r=new BN(n,new Nb);return r.name=e.get(`name`),r.model=e,e.axis=r,this.dimensions.push(n),r},this),this.resize(e,n)}return e.prototype.getIndicatorAxes=function(){return this._indicatorAxes},e.prototype.dataToPoint=function(e,t){var n=this._indicatorAxes[t];return this.coordToPoint(n.dataToCoord(e),t)},e.prototype.coordToPoint=function(e,t){var n=this._indicatorAxes[t].angle;return[this.cx+e*Math.cos(n),this.cy-e*Math.sin(n)]},e.prototype.pointToData=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,r=Math.sqrt(t*t+n*n);t/=r,n/=r;for(var i=Math.atan2(-n,t),a=1/0,o,s=-1,c=0;c<this._indicatorAxes.length;c++){var l=this._indicatorAxes[c],u=Math.abs(i-l.angle);u<a&&(o=l,s=c,a=u)}return[s,+(o&&o.coordToData(r))]},e.prototype.resize=function(e,t){var n=B_(e,t).refContainer,r=e.get(`center`),i=e.get(`clockwise`)||!1,a=Math.min(n.width,n.height)/2;this.cx=Bs(r[0],n.width)+n.x,this.cy=Bs(r[1],n.height)+n.y,this.startAngle=e.get(`startAngle`)*Math.PI/180;var o=e.get(`radius`);(U(o)||Ae(o))&&(o=[0,o]),this.r0=Bs(o[0],a),this.r=Bs(o[1],a);var s=i?-1:1;z(this._indicatorAxes,function(e,t){e.setExtent(this.r0,this.r);var n=this.startAngle+s*t*Math.PI*2/this._indicatorAxes.length;n=Math.atan2(Math.sin(n),Math.cos(n)),e.angle=n},this)},e.prototype.update=function(e,t){var n=this._indicatorAxes,r=this._model,i=kb(r.get(`splitNumber`),5),a=new Nb;a.setExtent(0,i),a.setConfig({interval:1}),z(n,function(e){iw(e,1),PM(e,a)})},e.prototype.convertToPixel=function(e,t,n){return console.warn(`Not implemented.`),null},e.prototype.convertFromPixel=function(e,t,n){return console.warn(`Not implemented.`),null},e.prototype.containPoint=function(e){return console.warn(`Not implemented.`),!1},e.create=function(t,n){var r=[];return t.eachComponent(FN,function(i){var a=new e(i,t,n);r.push(a),i.coordinateSystem=a}),t.eachSeriesByType(IN,function(e){if(e.get(`coordinateSystem`)===`radar`){var t=e.coordinateSystem=r[e.get(`radarIndex`)||0];t&&z(t.getIndicatorAxes(),function(t){jS(t,e,PN)})}}),r},e.dimensions=[],e}();function HN(e){e.registerCoordinateSystem(`radar`,VN),e.registerComponentModel(RN),e.registerComponentView(zN),e.registerVisual({seriesType:`radar`,reset:function(e){var t=e.getData();t.each(function(e){t.setItemVisual(e,`legendIcon`,`roundRect`)}),t.setVisual(`legendIcon`,`roundRect`)}})}var UN=bl(AN,WN);function WN(e){e.eachSeriesByType(AN,function(e){var t=e.getData(),n=[],r=e.coordinateSystem;if(r){var i=r.getIndicatorAxes();z(i,function(e,a){t.each(t.mapDimension(i[a].dim),function(e,t){n[t]=n[t]||[];var i=r.dataToPoint(e,a);n[t][a]=GN(i)?i:KN(r)})}),t.each(function(e){var i=we(n[e],function(e){return GN(e)})||KN(r);n[e].push(i.slice()),t.setItemLayout(e,n[e])})}})}function GN(e){return!isNaN(e[0])&&!isNaN(e[1])}function KN(e){return[e.cx,e.cy]}function qN(e){xM(HN),e.registerChartView(MN),e.registerSeriesModel(jN),e.registerLayout(UN),e.registerProcessor(ET(`radar`)),e.registerPreprocessor(kN)}var JN=Kc();function YN(e,t,n){JN(e)[t]=n}function XN(e,t,n){var r=JN(e);r[t]===n&&(r[t]=null)}iM({type:`takeGlobalCursor`,event:`globalCursorTaken`,update:`update`},et);var ZN={axisPointer:1,tooltip:1,brush:1};function QN(e,t,n){var r=t.getComponentByElement(e.topTarget);if(!r||r===n||ZN.hasOwnProperty(r.mainType))return!1;var i=r.coordinateSystem;if(!i||i.model===n)return!1;var a=cp(r),o=cp(n);return!((a.zlevel-o.zlevel||a.z-o.z)<=0)}var $N=1e-8;function eP(e,t){return Math.abs(e-t)<$N}function tP(e,t,n){var r=0,i=e[0];if(!i)return!1;for(var a=1;a<e.length;a++){var o=e[a];r+=ko(i[0],i[1],o[0],o[1],t,n),i=o}var s=e[0];return(!eP(i[0],s[0])||!eP(i[1],s[1]))&&(r+=ko(i[0],i[1],s[0],s[1],t,n)),r!==0}var nP=[];function rP(e,t){for(var n=0;n<e.length;n++)un(e[n],e[n],t)}function iP(e,t,n,r){for(var i=0;i<e.length;i++){var a=e[i];r&&(a=r.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(dn(t,t,a),fn(n,n,a))}}function aP(e){for(var t=0,n=0,r=0,i=e.length,a=e[i-1][0],o=e[i-1][1],s=0;s<i;s++){var c=e[s][0],l=e[s][1],u=a*l-c*o;t+=u,n+=(a+c)*u,r+=(o+l)*u,a=c,o=l}return t?[n/t/3,r/t/3,t]:[e[0][0]||0,e[0][1]||0]}var oP=function(){function e(e){this.name=e}return e.prototype.setCenter=function(e){this._center=e},e.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},e}(),sP=function(){function e(e,t){this.type=`polygon`,this.exterior=e,this.interiors=t}return e}(),cP=function(){function e(e){this.type=`linestring`,this.points=e}return e}(),lP=function(e){T(t,e);function t(t,n,r){var i=e.call(this,t)||this;return i.type=`geoJSON`,i.geometries=n,i._center=r&&[r[0],r[1]],i}return t.prototype.calcCenter=function(){for(var e=this.geometries,t,n=0,r=0;r<e.length;r++){var i=e[r],a=i.exterior,o=a&&a.length;o>n&&(t=i,n=o)}if(t)return aP(t.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},t.prototype.getBoundingRect=function(e){var t=this._rect;if(t&&!e)return t;var n=[1/0,1/0],r=[-1/0,-1/0],i=this.geometries;return z(i,function(t){t.type===`polygon`?iP(t.exterior,n,r,e):z(t.points,function(t){iP(t,n,r,e)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(r[0])&&isFinite(r[1])||(n[0]=n[1]=r[0]=r[1]=0),t=new X(n[0],n[1],r[0]-n[0],r[1]-n[1]),e||(this._rect=t),t},t.prototype.contain=function(e){var t=this.getBoundingRect(),n=this.geometries;if(!t.contain(e[0],e[1]))return!1;loopGeo:for(var r=0,i=n.length;r<i;r++){var a=n[r];if(a.type===`polygon`){var o=a.exterior,s=a.interiors;if(tP(o,e[0],e[1])){for(var c=0;c<(s?s.length:0);c++)if(tP(s[c],e[0],e[1]))continue loopGeo;return!0}}}return!1},t.prototype.transformTo=function(e,t,n,r){var i=this.getBoundingRect(),a=i.width/i.height;n?r||(r=n/a):n=a*r;for(var o=new X(e,t,n,r),s=i.calculateTransform(o),c=this.geometries,l=0;l<c.length;l++){var u=c[l];u.type===`polygon`?(rP(u.exterior,s),z(u.interiors,function(e){rP(e,s)})):z(u.points,function(e){rP(e,s)})}i=this._rect,i.copy(o),this._center=[i.x+i.width/2,i.y+i.height/2]},t.prototype.cloneShallow=function(e){e==null&&(e=this.name);var n=new t(e,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},t}(oP);(function(e){T(t,e);function t(t,n){var r=e.call(this,t)||this;return r.type=`geoSVG`,r._elOnlyForCalculate=n,r}return t.prototype.calcCenter=function(){for(var e=this._elOnlyForCalculate,t=e.getBoundingRect(),n=[t.x+t.width/2,t.y+t.height/2],r=Mt(nP),i=e;i&&!i.isGeoSVGGraphicRoot;)Pt(r,i.getLocalTransform(),r),i=i.parent;return Rt(r,r),un(n,n,r),n},t})(oP);function uP(e){if(!e.UTF8Encoding)return e;var t=e,n=t.UTF8Scale;n==null&&(n=1024);var r=t.features;return z(r,function(e){var t=e.geometry,r=t.encodeOffsets,i=t.coordinates;if(r)switch(t.type){case`LineString`:t.coordinates=fP(i,r,n);break;case`Polygon`:dP(i,r,n);break;case`MultiLineString`:dP(i,r,n);break;case`MultiPolygon`:z(i,function(e,t){return dP(e,r[t],n)})}}),t.UTF8Encoding=!1,t}function dP(e,t,n){for(var r=0;r<e.length;r++)e[r]=fP(e[r],t[r],n)}function fP(e,t,n){for(var r=[],i=t[0],a=t[1],o=0;o<e.length;o+=2){var s=e.charCodeAt(o)-64,c=e.charCodeAt(o+1)-64;s=s>>1^-(s&1),c=c>>1^-(c&1),s+=i,c+=a,i=s,a=c,r.push([s/n,c/n])}return r}function pP(e,t){return e=uP(e),B(Ce(e.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var n=e.properties,r=e.geometry,i=[];switch(r.type){case`Polygon`:var a=r.coordinates;i.push(new sP(a[0],a.slice(1)));break;case`MultiPolygon`:z(r.coordinates,function(e){e[0]&&i.push(new sP(e[0],e.slice(1)))});break;case`LineString`:i.push(new cP([r.coordinates]));break;case`MultiLineString`:i.push(new cP(r.coordinates))}var o=new lP(n[t||`name`],i,n.cp);return o.properties=n,o})}function mP(e){return e}var hP=`view`;(function(e){T(t,e);function t(t,n,r){var i=e.call(this)||this;i.type=hP,i.dimensions=[`x`,`y`];var a=mP(i);a.invertY=t,a.lgCt=n,a.lgGeo=r;var o=a.trans=[];return o[0]=kr(),o[1]=kr(),o[2]=kr(),a.mtRaw=jt(),a.mtRawInv=jt(),a.mtOverall=jt(),a.mtOverallInv=jt(),a.zoom=1,i}return t.prototype.getBoundingRect=function(){return vP(null,this)},t.prototype.getViewRect=function(){return yP(null,this)},t.prototype.getRoamTransform=function(){return Or(mP(this).trans[1])},t.prototype.dataToPoint=function(e,t,n){var r=t?mP(this).mtRaw:mP(this).mtOverall;return n=n||[],r?un(n,e,r):Ht(n,e)},t.prototype.pointToData=function(e,t,n){n=n||[];var r=mP(this).mtOverallInv;return r?un(n,e,r):Ht(n,e)},t.prototype.convertToPixel=function(e,t,n){var r=bP(t);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var r=bP(t);return r===this?r.pointToData(n):null},t.prototype.containPoint=function(e){var t=mP(this);return On(gP,t.dataRect),An(gP,gP,t.mtOverall),jn(gP,e[0],e[1])},t.dimensions=[`x`,`y`],t})(Dr);var gP=En();function _P(e,t){return Nt(e||[],mP(t).mtOverall)}function vP(e,t){return On(e||En(),mP(t).dataRect)}function yP(e,t){return On(e||En(),mP(t).viewRect)}En();function bP(e){var t=e.seriesModel;return t?t.coordinateSystem:null}kr(),kr();function xP(e,t,n,r,i,a){e=e||0;var o=$s(n[1],-n[0]);if(i!=null&&(i=CP(i,[0,o])),a!=null&&(a=Math.max(a,i==null?0:i)),r===`all`){var s=Math.abs($s(t[1],-t[0]));s=CP(s,[0,o]),i=a=CP(s,[i,a]),r=0}t[0]=CP(t[0],n),t[1]=CP(t[1],n);var c=SP(t,r);t[r]+=e;var l=i||0,u=n.slice();c.sign<0?u[0]=$s(u[0],l):u[1]=$s(u[1],-l),t[r]=CP(t[r],u);var d=SP(t,r);return i!=null&&(d.sign!==c.sign||d.span<i)&&(t[1-r]=$s(t[r],c.sign*i)),d=SP(t,r),a!=null&&d.span>a&&(t[1-r]=$s(t[r],d.sign*a)),t}function SP(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function CP(e,t){return Math.min(t[1]==null?1/0:t[1],Math.max(t[0]==null?-1/0:t[0],e))}var wP=!0,TP=Math.min,EP=Math.max,DP=Math.pow,OP=1e4,kP=6,AP=6,jP=`globalPan`,MP={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},NP={w:`ew`,e:`ew`,n:`ns`,s:`ns`,ne:`nesw`,sw:`nesw`,nw:`nwse`,se:`nwse`},PP={brushStyle:{lineWidth:2,stroke:Q.color.backgroundTint,fill:Q.color.borderTint},transformable:!0,brushMode:`single`,removeOnClick:!1},FP=0,IP=function(e){T(t,e);function t(t){var n=e.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=t,n.group=new ud,n._uid=`brushController_`+FP++,z(mF,function(e,t){this._handlers[t]=De(e,this)},n),n}return t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var t=this._zr;this._enableGlobalPan||YN(t,jP,this._uid),z(this._handlers,function(e,n){t.on(n,e)}),this._brushType=e.brushType,this._brushOption=F(P(PP),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;XN(e,jP,this._uid),z(this._handlers,function(t,n){e.off(n,t)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var t=this._panels={};z(e,function(e){t[e.panelId]=P(e)})}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var t=this.group;return this._zr.add(t),t.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=t.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=B(e,function(e){return F(P(PP),e,!0)});var t=`\0-brush-index-`,n=this._covers,r=this._covers=[],i=this,a=this._creatingCover;return new qp(n,e,s,o).add(c).update(c).remove(l).execute(),this;function o(e,n){return(e.id==null?t+n:e.id)+`-`+e.brushType}function s(e,t){return o(e.__brushOption,t)}function c(t,o){var s=e[t];o!=null&&n[o]===a?r[t]=n[o]:VP(i,r[t]=o==null?RP(i,LP(i,s)):(n[o].__brushOption=s,n[o]))}function l(e){n[e]!==a&&i.group.remove(n[e])}},t.prototype.unmount=function(){return this.enableBrush(!1),GP(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(ca);function LP(e,t){var n=_F[t.brushType].createCover(e,t);return n.__brushOption=t,BP(n,t),e.group.add(n),n}function RP(e,t){var n=HP(t);return n.endCreating&&(n.endCreating(e,t),BP(t,t.__brushOption)),t}function zP(e,t){var n=t.__brushOption;HP(t).updateCoverShape(e,t,n.range,n)}function BP(e,t){var n=t.z;n==null&&(n=OP),e.traverse(function(e){e.z=n,e.z2=n})}function VP(e,t){HP(t).updateCommon(e,t),zP(e,t)}function HP(e){return _F[e.__brushOption.brushType]}function UP(e,t,n){var r=e._panels;if(!r)return wP;var i,a=e._transform;return z(r,function(e){e.isTargetByCursor(t,n,a)&&(i=e)}),i}function WP(e,t){var n=e._panels;if(!n)return wP;var r=t.__brushOption.panelId;return r==null?wP:n[r]}function GP(e){var t=e._covers,n=t.length;return z(t,function(t){e.group.remove(t)},e),t.length=0,!!n}function KP(e,t){var n=B(e._covers,function(e){var t=e.__brushOption,n=P(t.range);return{brushType:t.brushType,panelId:t.panelId,range:n}});e.trigger(`brush`,{areas:n,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function qP(e){var t=e._track;if(!t.length)return!1;var n=t[t.length-1],r=t[0],i=n[0]-r[0],a=n[1]-r[1];return DP(i*i+a*a,.5)>kP}function JP(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function YP(e,t,n,r){var i=new ud;return i.add(new os({name:`main`,style:$P(n),silent:!0,draggable:!0,cursor:`move`,drift:Oe(iF,e,t,i,[`n`,`s`,`w`,`e`]),ondragend:Oe(KP,t,{isEnd:!0})})),z(r,function(n){i.add(new os({name:n.join(``),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Oe(iF,e,t,i,n),ondragend:Oe(KP,t,{isEnd:!0})}))}),i}function XP(e,t,n,r){var i=r.brushStyle.lineWidth||0,a=EP(i,AP),o=n[0][0],s=n[1][0],c=o-i/2,l=s-i/2,u=n[0][1],d=n[1][1],f=u-a+i/2,p=d-a+i/2,m=u-o,h=d-s,g=m+i,_=h+i;QP(e,t,`main`,o,s,m,h),r.transformable&&(QP(e,t,`w`,c,l,a,_),QP(e,t,`e`,f,l,a,_),QP(e,t,`n`,c,l,g,a),QP(e,t,`s`,c,p,g,a),QP(e,t,`nw`,c,l,a,a),QP(e,t,`ne`,f,l,a,a),QP(e,t,`sw`,c,p,a,a),QP(e,t,`se`,f,p,a,a))}function ZP(e,t){var n=t.__brushOption,r=n.transformable,i=t.childAt(0);i.useStyle($P(n)),i.attr({silent:!r,cursor:r?`move`:`default`}),z([[`w`],[`e`],[`n`],[`s`],[`s`,`e`],[`s`,`w`],[`n`,`e`],[`n`,`w`]],function(n){var i=t.childOfName(n.join(``)),a=n.length===1?nF(e,n[0]):rF(e,n);i&&i.attr({silent:!r,invisible:!r,cursor:r?NP[a]+`-resize`:null})})}function QP(e,t,n,r,i,a,o){var s=t.childOfName(n);s&&s.setShape(cF(sF(e,t,[[r,i],[r+a,i+o]])))}function $P(e){return L({strokeNoScale:!0},e.brushStyle)}function eF(e,t,n,r){var i=[TP(e,n),TP(t,r)],a=[EP(e,n),EP(t,r)];return[[i[0],a[0]],[i[1],a[1]]]}function tF(e){return zf(e.group)}function nF(e,t){return{left:`w`,right:`e`,top:`n`,bottom:`s`}[Vf({w:`left`,e:`right`,n:`top`,s:`bottom`}[t],tF(e))]}function rF(e,t){var n=[nF(e,t[0]),nF(e,t[1])];return(n[0]===`e`||n[0]===`w`)&&n.reverse(),n.join(``)}function iF(e,t,n,r,i,a){var o=n.__brushOption,s=e.toRectRange(o.range),c=oF(t,i,a);z(r,function(e){var t=MP[e];s[t[0]][t[1]]+=c[t[0]]}),o.range=e.fromRectRange(eF(s[0][0],s[1][0],s[0][1],s[1][1])),VP(t,n),KP(t,{isEnd:!1})}function aF(e,t,n,r){var i=t.__brushOption.range,a=oF(e,n,r);z(i,function(e){e[0]+=a[0],e[1]+=a[1]}),VP(e,t),KP(e,{isEnd:!1})}function oF(e,t,n){var r=e.group,i=r.transformCoordToLocal(t,n),a=r.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function sF(e,t,n){var r=WP(e,t);return r&&r!==wP?r.clipPath(n,e._transform):P(n)}function cF(e){var t=TP(e[0][0],e[1][0]),n=TP(e[0][1],e[1][1]),r=EP(e[0][0],e[1][0]),i=EP(e[0][1],e[1][1]);return{x:t,y:n,width:r-t,height:i-n}}function lF(e,t,n){if(e._brushType&&!gF(e,t.offsetX,t.offsetY)){var r=e._zr,i=e._covers,a=UP(e,t,n);if(!e._dragging)for(var o=0;o<i.length;o++){var s=i[o].__brushOption;if(a&&(a===wP||s.panelId===a.panelId)&&_F[s.brushType].contain(i[o],n[0],n[1]))return}a&&r.setCursorStyle(`crosshair`)}}function uF(e){var t=e.event;t.preventDefault&&t.preventDefault()}function dF(e,t,n){return e.childOfName(`main`).contain(t,n)}function fF(e,t,n,r){var i=e._creatingCover,a=e._creatingPanel,o=e._brushOption,s;if(e._track.push(n.slice()),qP(e)||i){if(a&&!i){o.brushMode===`single`&&GP(e);var c=P(o);c.brushType=pF(c.brushType,a),c.panelId=a===wP?null:a.panelId,i=e._creatingCover=LP(e,c),e._covers.push(i)}if(i){var l=_F[pF(e._brushType,a)],u=i.__brushOption;u.range=l.getCreatingRange(sF(e,i,e._track)),r&&(RP(e,i),l.updateCommon(e,i)),zP(e,i),s={isEnd:r}}}else r&&o.brushMode===`single`&&o.removeOnClick&&UP(e,t,n)&&GP(e)&&(s={isEnd:r,removeOnClick:!0});return s}function pF(e,t){return e===`auto`?t.defaultBrushType:e}var mF={mousedown:function(e){if(this._dragging)hF(this,e);else if(!e.target||!e.target.draggable){uF(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null,(this._creatingPanel=UP(this,e,t))&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,n=e.offsetY,r=this.group.transformCoordToLocal(t,n);if(lF(this,e,r),this._dragging){uF(e);var i=fF(this,e,r,!1);i&&KP(this,i)}},mouseup:function(e){hF(this,e)}};function hF(e,t){if(e._dragging){uF(t);var n=t.offsetX,r=t.offsetY,i=fF(e,t,e.group.transformCoordToLocal(n,r),!0);e._dragging=!1,e._track=[],e._creatingCover=null,i&&KP(e,i)}}function gF(e,t,n){var r=e._zr;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var _F={lineX:vF(0),lineY:vF(1),rect:{createCover:function(e,t){function n(e){return e}return YP({toRectRange:n,fromRectRange:n},e,t,[[`w`],[`e`],[`n`],[`s`],[`s`,`e`],[`s`,`w`],[`n`,`e`],[`n`,`w`]])},getCreatingRange:function(e){var t=JP(e);return eF(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,r){XP(e,t,n,r)},updateCommon:ZP,contain:dF},polygon:{createCover:function(e,t){var n=new ud;return n.add(new zd({name:`main`,style:$P(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new Ld({name:`main`,draggable:!0,drift:Oe(aF,e,t),ondragend:Oe(KP,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,r){t.childAt(0).setShape({points:sF(e,t,n)})},updateCommon:ZP,contain:dF}};function vF(e){return{createCover:function(t,n){return YP({toRectRange:function(t){var n=[t,[0,100]];return e&&n.reverse(),n},fromRectRange:function(t){return t[e]}},t,n,[[[`w`],[`e`]],[[`n`],[`s`]]][e])},getCreatingRange:function(t){var n=JP(t);return[TP(n[0][e],n[1][e]),EP(n[0][e],n[1][e])]},updateCoverShape:function(t,n,r,i){var a,o=WP(t,n);if(o!==wP&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(e);else{var s=t._zr;a=[0,[s.getWidth(),s.getHeight()][1-e]]}var c=[r,a];e&&c.reverse(),XP(t,n,c,i)},updateCommon:ZP,contain:dF}}function yF(e){return e=SF(e),function(t){return Gf(t,e)}}function bF(e,t){return e=SF(e),function(n){var r=t==null?n:t,i=r?e.width:e.height,a=r?e.x:e.y;return[a,a+(i||0)]}}function xF(e,t,n){var r=SF(e);return function(e,i){return r.contain(i[0],i[1])&&!QN(e,t,n)}}function SF(e){return X.create(e)}var CF={position:[`x`,`y`],scale:[`scaleX`,`scaleY`],origin:[`originX`,`originY`]},wF=Te(CF);Se(Ar,function(e,t){return e[t]=1,e},{}),Ar.join(`, `);var TF=[``,`style`,`shape`,`extra`],EF=Kc();function DF(e,t,n,r,i){var a=e+`Animation`,o=ff(e,r,i)||{},s=EF(t).userDuring;return o.duration>0&&(o.during=s?De(LF,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),I(o,n[a]),o}function OF(e,t,n,r){r=r||{};var i=r.dataIndex,a=r.isInit,o=r.clearStyle,s=n.isAnimationEnabled(),c=EF(e),l=t.style;c.userDuring=t.during;var u={},d={};if(VF(e,t,d),e.type===`compound`)for(var f=e.shape.paths,p=t.shape.paths,m=0;m<p.length;m++){var h=p[m];zF(`shape`,h,f[m])}else zF(`shape`,t,d),zF(`extra`,t,d);if(!a&&s&&(BF(e,t,u),RF(`shape`,e,t,u),RF(`extra`,e,t,u),HF(e,t,l,u)),d.style=l,MF(e,d,o),PF(e,t),s){if(a){var g={};z(TF,function(e){var n=e?t[e]:t;n&&n.enterFrom&&(e&&(g[e]=g[e]||{}),I(e?g[e]:g,n.enterFrom))});var _=DF(`enter`,e,t,n,i);_.duration>0&&e.animateFrom(g,_)}else NF(e,t,i||0,n,u)}kF(e,t),l?e.dirty():e.markRedraw()}function kF(e,t){for(var n=EF(e).leaveToProps,r=0;r<TF.length;r++){var i=TF[r],a=i?t[i]:t;a&&a.leaveTo&&(n||(n=EF(e).leaveToProps={}),i&&(n[i]=n[i]||{}),I(i?n[i]:n,a.leaveTo))}}function AF(e,t,n,r){if(e){var i=e.parent,a=EF(e).leaveToProps;if(a){var o=DF(`update`,e,t,n,0);o.done=function(){i&&i.remove(e),r&&r()},e.animateTo(a,o)}else i&&i.remove(e),r&&r()}}function jF(e){return e===`all`}function MF(e,t,n){var r=t.style;if(!e.isGroup&&r){if(n){e.useStyle({});for(var i=e.animators,a=0;a<i.length;a++){var o=i[a];o.targetName===`style`&&o.changeTarget(e.style)}}e.setStyle(r)}t&&(t.style=null,t&&e.attr(t),t.style=r)}function NF(e,t,n,r,i){if(i){var a=DF(`update`,e,t,r,n);a.duration>0&&e.animateFrom(i,a)}}function PF(e,t){q(t,`silent`)&&(e.silent=t.silent),q(t,`ignore`)&&(e.ignore=t.ignore),e instanceof La&&q(t,`invisible`)&&(e.invisible=t.invisible),e instanceof Ko&&q(t,`autoBatch`)&&(e.autoBatch=t.autoBatch)}var FF={},IF={setTransform:function(e,t){return FF.el[e]=t,this},getTransform:function(e){return FF.el[e]},setShape:function(e,t){var n=FF.el,r=n.shape||(n.shape={});return r[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){var t=FF.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=FF.el,r=n.style;return r&&(r[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){var t=FF.el.style;if(t)return t[e]},setExtra:function(e,t){var n=FF.el.extra||(FF.el.extra={});return n[e]=t,this},getExtra:function(e){var t=FF.el.extra;if(t)return t[e]}};function LF(){var e=this,t=e.el;if(t){var n=EF(t).userDuring,r=e.userDuring;if(n!==r){e.el=e.userDuring=null;return}FF.el=t,r(IF)}}function RF(e,t,n,r){var i=n[e];if(i){var a=t[e],o;if(a){var s=n.transition,c=i.transition;if(c){if(!o&&(o=r[e]={}),jF(c))I(o,a);else for(var l=Tc(c),u=0;u<l.length;u++){var d=l[u],f=a[d];o[d]=f}}else if(jF(s)||R(s,e)>=0){!o&&(o=r[e]={});for(var p=Te(a),u=0;u<p.length;u++){var d=p[u],f=a[d];UF(i[d],f)&&(o[d]=f)}}}}}function zF(e,t,n){var r=t[e];if(r)for(var i=n[e]={},a=Te(r),o=0;o<a.length;o++){var s=a[o];i[s]=qi(r[s])}}function BF(e,t,n){for(var r=t.transition,i=jF(r)?Ar:Tc(r||[]),a=0;a<i.length;a++){var o=i[a];o!==`style`&&o!==`shape`&&o!==`extra`&&(n[o]=e[o])}}function VF(e,t,n){for(var r=0;r<wF.length;r++){var i=wF[r],a=CF[i],o=t[i];o&&(n[a[0]]=o[0],n[a[1]]=o[1])}for(var r=0;r<Ar.length;r++){var s=Ar[r];t[s]!=null&&(n[s]=t[s])}}function HF(e,t,n,r){if(n){var i=e.style,a;if(i){var o=n.transition,s=t.transition;if(o&&!jF(o)){var c=Tc(o);!a&&(a=r.style={});for(var l=0;l<c.length;l++){var u=c[l],d=i[u];a[u]=d}}else if(e.getAnimationStyleProps&&(jF(s)||jF(o)||R(s,`style`)>=0)){var f=e.getAnimationStyleProps(),p=f?f.style:null;if(p){!a&&(a=r.style={});for(var m=Te(n),l=0;l<m.length;l++){var u=m[l];if(p[u]){var d=i[u];a[u]=d}}}}}}}function UF(e,t){return xe(e)?e!==t:e!=null&&isFinite(e)}var WF=Kc(),GF=[`percent`,`easing`,`shape`,`style`,`extra`];function KF(e){e.stopAnimation(`keyframe`),e.attr(WF(e))}function qF(e,t,n){if(n.isAnimationEnabled()&&t){if(V(t)){z(t,function(t){qF(e,t,n)});return}var r=t.keyframes,i=t.duration;if(n&&i==null){var a=ff(`enter`,n,0);i=a&&a.duration}if(r&&i){var o=WF(e);z(TF,function(n){if(!n||e[n]){var a;r.sort(function(e,t){return e.percent-t.percent}),z(r,function(r){var s=e.animators,c=n?r[n]:r;if(c){var l=Te(c);if(n||(l=Ce(l,function(e){return R(GF,e)<0})),l.length){a||(a=e.animate(n,t.loop,!0),a.scope=`keyframe`);for(var u=0;u<s.length;u++)s[u]!==a&&s[u].targetName===a.targetName&&s[u].stopTracks(l);n&&(o[n]=o[n]||{});var d=n?o[n]:o;z(l,function(t){d[t]=((n?e[n]:e)||{})[t]}),a.whenWithKeys(i*r.percent,c,l,r.easing)}}}),a&&a.delay(t.delay||0).duration(i).start(t.easing)}})}}}var JF=Kc(),YF=P,XF=De,ZF=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,r){var i=t.get(`value`),a=t.get(`status`);if(this._axisModel=e,this._axisPointerModel=t,this._api=n,r||this._lastValue!==i||this._lastStatus!==a){this._lastValue=i,this._lastStatus=a;var o=this._group,s=this._handle;if(!a||a===`hide`){o&&o.hide(),s&&s.hide();return}o&&o.show(),s&&s.show();var c={};this.makeElOption(c,i,e,t,n);var l=c.graphicKey;l!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=l;var u=this._moveAnimation=this.determineAnimation(e,t);if(!o)o=this._group=new ud,this.createPointerEl(o,c,e,t),this.createLabelEl(o,c,e,t),n.getZr().add(o);else{var d=Oe(QF,t,u);this.updatePointerEl(o,c,d),this.updateLabelEl(o,c,d,t)}nI(o,t,!0),this._renderHandle(i)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get(`animation`),r=e.axis,i=r.type===`category`,a=t.get(`snap`);if(!a&&!i)return!1;if(n===`auto`||n==null){var o=this.animationThreshold;if(i&&IS(r).w>o)return!0;if(a){var s=fN(e).seriesDataCount,c=r.getExtent();return Math.abs(c[0]-c[1])/s>o}return!1}return n===!0},e.prototype.makeElOption=function(e,t,n,r,i){},e.prototype.createPointerEl=function(e,t,n,r){var i=t.pointer;if(i){var a=JF(e).pointerEl=new Sf[i.type](YF(t.pointer));e.add(a)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=JF(e).labelEl=new ds(YF(t.label));e.add(i),eI(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=JF(e).pointerEl;r&&t.pointer&&(r.setStyle(t.pointer.style),n(r,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,r){var i=JF(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),eI(i,r))},e.prototype._renderHandle=function(e){if(!this._dragging&&this.updateHandleTransform){var t=this._axisPointerModel,n=this._api.getZr(),r=this._handle,i=t.getModel(`handle`),a=t.get(`status`);if(!i.get(`show`)||!a||a===`hide`){r&&n.remove(r),this._handle=null;return}var o;this._handle||(o=!0,r=this._handle=qf(i.get(`icon`),{cursor:`move`,draggable:!0,onmousemove:function(e){jE(e.event)},onmousedown:XF(this._onHandleDragMove,this,0,0),drift:XF(this._onHandleDragMove,this),ondragend:XF(this._onHandleDragEnd,this)}),n.add(r)),nI(r,t,!1),r.setStyle(i.getItemStyle(null,[`color`,`borderColor`,`borderWidth`,`opacity`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`]));var s=i.get(`size`);V(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,Hw(this,`_doDispatchAxisPointer`,i.get(`throttle`)||0,`fixRate`),this._moveHandleToValue(e,o)}},e.prototype._moveHandleToValue=function(e,t){QF(this._axisPointerModel,!t&&this._moveAnimation,this._handle,tI(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(tI(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(tI(r)),JF(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){if(this._handle){var e=this._payloadInfo,t=this._axisModel;this._api.dispatchAction({type:`updateAxisPointer`,x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:t.axis.dim,axisIndex:t.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get(`value`);this._moveHandleToValue(e),this._api.dispatchAction({type:`hideTip`})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,r=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),r&&t.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),Uw(this,`_doDispatchAxisPointer`)},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},e}();function QF(e,t,n,r){$F(JF(n).lastProp,r)||(JF(n).lastProp=r,t?mf(n,r,e):(n.stopAnimation(),n.attr(r)))}function $F(e,t){if(W(e)&&W(t)){var n=!0;return z(t,function(t,r){n=n&&$F(e[r],t)}),!!n}return e===t}function eI(e,t){e[t.get([`label`,`show`])?`show`:`hide`]()}function tI(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function nI(e,t,n){var r=t.get(`z`),i=t.get(`zlevel`);e&&e.traverse(function(e){e.type!==`group`&&(r!=null&&(e.z=r),i!=null&&(e.zlevel=i),e.silent=n)})}function rI(e){var t=e.get(`type`),n=e.getModel(t+`Style`),r;return t===`line`?(r=n.getLineStyle(),r.fill=null):t===`shadow`&&(r=n.getAreaStyle(),r.stroke=null),r}function iI(e,t,n,r,i){var a=oI(n.get(`value`),t.axis,t.ecModel,n.get(`seriesDataIndices`),{precision:n.get([`label`,`precision`]),formatter:n.get([`label`,`formatter`])}),o=n.getModel(`label`),s=b_(o.get(`padding`)||0),c=o.getFont(),l=Gn(a,c),u=i.position,d=l.width+s[1]+s[3],f=l.height+s[0]+s[2],p=i.align;p===`right`&&(u[0]-=d),p===`center`&&(u[0]-=d/2);var m=i.verticalAlign;m===`bottom`&&(u[1]-=f),m===`middle`&&(u[1]-=f/2),aI(u,d,f,r);var h=o.get(`backgroundColor`);(!h||h===`auto`)&&(h=t.get([`axisLine`,`lineStyle`,`color`])),e.label={x:u[0],y:u[1],style:xp(o,{text:a,font:c,fill:o.getTextColor(),padding:s,backgroundColor:h}),z2:10}}function aI(e,t,n,r){var i=r.getWidth(),a=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,a)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function oI(e,t,n,r,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:cx(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};z(r,function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,i=t&&t.getDataParams(r);i&&s.seriesData.push(i)}),U(o)?a=o.replace(`{value}`,a):H(o)&&(a=o(s))}return a}function sI(e,t,n){var r=jt();return It(r,r,n.rotation),Ft(r,r,n.position),Bf([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function cI(e,t,n,r,i,a){var o=SC.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get([`label`,`margin`]),iI(t,r,i,a,{position:sI(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function lI(e,t,n){return n=n||0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function uI(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function dI(e,t,n){return IS(e,{fromStat:{sers:B(t,function(e){return n.getSeriesByIndex(e.seriesIndex)})},min:1}).w}function fI(e,t,n){return[ks(Os(t[0],t[1]),e-n/2),Os(e+n/2,ks(t[0],t[1]))]}var pI=function(e){T(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis,o=a.grid,s=r.get(`type`),c=a.getGlobalExtent(),l=mI(o,a).getOtherAxis(a).getGlobalExtent(),u=a.toGlobalCoord(a.dataToCoord(t,!0));if(s&&s!==`none`){var d=rI(r),f=hI[s](a,u,c,l,r.get(`seriesDataIndices`),r.ecModel);f.style=d,e.graphicKey=f.type,e.pointer=f}cI(t,e,UC(o.getRect(),n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=UC(t.axis.grid.getRect(),t,{labelInside:!1});r.labelMargin=n.get([`handle`,`margin`]);var i=sI(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,a=i.grid,o=i.getGlobalExtent(!0),s=mI(a,i).getOtherAxis(i).getGlobalExtent(),c=i.dim===`x`?0:1,l=[e.x,e.y];l[c]+=t[c],l[c]=Os(o[1],l[c]),l[c]=ks(o[0],l[c]);var u=(s[1]+s[0])/2,d=[u,u];return d[c]=l[c],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:d,tooltipOption:[{verticalAlign:`middle`},{align:`center`}][c]}},t}(ZF);function mI(e,t){var n={};return n[t.dim+`AxisIndex`]=t.index,e.getCartesian(n)}var hI={line:function(e,t,n,r){return{type:`Line`,subPixelOptimize:!0,shape:lI([t,r[0]],[t,r[1]],gI(e))}},shadow:function(e,t,n,r,i,a){var o=dI(e,i,a),s=r[1]-r[0],c=fI(t,n,o),l=c[0],u=c[1];return{type:`Rect`,shape:uI([l,r[0]],[u-l,s],gI(e))}}};function gI(e){return e.dim===`x`?0:1}var _I=function(e){T(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`axisPointer`,t.defaultOption={show:`auto`,z:50,type:`line`,snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:Q.color.border,width:1,type:`dashed`},shadowStyle:{color:Q.color.shadowTint},label:{show:!0,formatter:null,precision:`auto`,margin:3,color:Q.color.neutral00,padding:[5,7,5,7],backgroundColor:Q.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:`M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z`,size:45,margin:50,color:Q.color.accent40,throttle:40}},t}(q_),vI=Kc(),yI=z;function bI(e,t,n){if(!J.node){var r=t.getZr();vI(r).records||(vI(r).records={}),xI(r,t);var i=vI(r).records[e]||(vI(r).records[e]={});i.handler=n}}function xI(e,t){if(vI(e).initialized)return;vI(e).initialized=!0,n(`click`,Oe(wI,`click`)),n(`mousemove`,Oe(wI,`mousemove`)),n(`mousewheel`,Oe(wI,`mousewheel`)),n(`globalout`,CI);function n(n,r){e.on(n,function(n){var i=TI(t);yI(vI(e).records,function(e){e&&r(e,n,i.dispatchAction)}),SI(i.pendings,t)})}}function SI(e,t){var n=e.showTip.length,r=e.hideTip.length,i;n?i=e.showTip[n-1]:r&&(i=e.hideTip[r-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function CI(e,t,n){e.handler(`leave`,null,n)}function wI(e,t,n,r){t.handler(e,n,r)}function TI(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}function EI(e,t){if(!J.node){var n=t.getZr();(vI(n).records||{})[e]&&(vI(n).records[e]=null)}}var DI=function(e){T(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=t.getComponent(`tooltip`),i=e.get(`triggerOn`)||r&&r.get(`triggerOn`)||`mousemove|click|mousewheel`;bI(`axisPointer`,n,function(e,t,n){i!==`none`&&(e===`leave`||i.indexOf(e)>=0)&&n({type:`updateAxisPointer`,currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})})},t.prototype.remove=function(e,t){EI(`axisPointer`,t)},t.prototype.dispose=function(e,t){EI(`axisPointer`,t)},t.type=`axisPointer`,t}(HO);function OI(e,t){var n=[],r=e.seriesIndex,i;if(r==null||!(i=t.getSeriesByIndex(r)))return{point:[]};var a=i.getData(),o=Gc(a,e);if(o==null||o<0||V(o))return{point:[]};var s=a.getItemGraphicEl(o),c=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(o)||[];else if(c&&c.dataToPoint){if(e.isStacked){var l=c.getBaseAxis(),u=c.getOtherAxis(l).dim,d=l.dim,f=+(u===`x`||u===`radius`),p=a.mapDimension(d),m=[];m[f]=a.get(p,o),m[1-f]=a.get(a.getCalculationInfo(`stackResultDimension`),o),n=c.dataToPoint(m)||[]}else n=c.dataToPoint(a.getValues(B(c.dimensions,function(e){return a.mapDimension(e)}),o))||[]}else if(s){var h=s.getBoundingRect().clone();h.applyTransform(s.transform),n=[h.x+h.width/2,h.y+h.height/2]}return{point:n,el:s}}var kI=Kc();function AI(e,t,n){var r=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||De(n.dispatchAction,n),s=t.getComponent(`axisPointer`).coordSysAxesInfo;if(s){BI(i)&&(i=OI({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var c=BI(i),l=a.axesInfo,u=s.axesInfo,d=r===`leave`||BI(i),f={},p={},m={list:[],map:{}},h={showPointer:Oe(NI,p),showTooltip:Oe(PI,m)};z(s.coordSysMap,function(e,t){var n=c||e.containPoint(i);z(s.coordSysAxesInfo[t],function(e,t){var r=e.axis,a=RI(l,e);if(!d&&n&&(!l||a)){var o=a&&a.value;o==null&&!c&&(o=r.pointToData(i)),o!=null&&jI(e,o,h,!1,f)}})});var g={};return z(u,function(e,t){var n=e.linkGroup;n&&!p[t]&&z(n.axesInfo,function(t,r){var i=p[r];if(t!==e&&i){var a=i.value;n.mapper&&(a=e.axis.scale.parse(n.mapper(a,zI(t),zI(e)))),g[e.key]=a}})}),z(g,function(e,t){jI(u[t],e,h,!0,f)}),FI(p,u,f),II(m,i,e,o),LI(u,o,n),f}}function jI(e,t,n,r,i){var a=e.axis;if(!a.scale.isBlank()&&a.containData(t)){if(!e.involveSeries){n.showPointer(e,t);return}var o=MI(t,e),s=o.payloadBatch,c=o.snapToValue;s[0]&&i.seriesIndex==null&&I(i,s[0]),!r&&e.snap&&a.containData(c)&&c!=null&&(t=c),n.showPointer(e,t,s),n.showTooltip(e,o,c)}}function MI(e,t){var n=t.axis,r=n.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return z(t.seriesModels,function(t,c){var l=t.getData().mapDimensionsAll(r),u,d;if(t.getAxisTooltipData){var f=t.getAxisTooltipData(l,e,n);d=f.dataIndices,u=f.nestestValue}else{if(d=t.indicesOfNearest(r,l[0],e,n.type===`category`?.5:null),!d.length)return;u=t.getData().get(l[0],d[0])}if(hc(u)){var p=e-u,m=Math.abs(p);m<=o&&((m<o||p>=0&&s<0)&&(o=m,s=p,i=u,a.length=0),z(d,function(e){a.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:a,snapToValue:i}}function NI(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function PI(e,t,n,r){var i=n.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(t.triggerTooltip&&i.length){var c=t.coordSys.model,l=hN(c),u=e.map[l];u||(u=e.map[l]={coordSysId:c.id,coordSysIndex:c.componentIndex,coordSysType:c.type,coordSysMainType:c.mainType,dataByAxis:[]},e.list.push(u)),u.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get([`label`,`precision`]),formatter:s.get([`label`,`formatter`])},seriesDataIndices:i.slice()})}}function FI(e,t,n){var r=n.axesInfo=[];z(t,function(t,n){var i=t.axisPointerModel.option,a=e[n];a?(!t.useHandle&&(i.status=`show`),i.value=a.value,i.seriesDataIndices=(a.payloadBatch||[]).slice()):!t.useHandle&&(i.status=`hide`),i.status===`show`&&r.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})})}function II(e,t,n,r){if(BI(t)||!e.list.length){r({type:`hideTip`});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:`showTip`,escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function LI(e,t,n){var r=n.getZr(),i=`axisPointerLastHighlights`,a=kI(r)[i]||{},o=kI(r)[i]={};z(e,function(e,t){var n=e.axisPointerModel.option;n.status===`show`&&e.triggerEmphasis&&z(n.seriesDataIndices,function(e){o[e.seriesIndex+`|`+e.dataIndex]=e})});var s=[],c=[];function l(e){return{seriesIndex:e.seriesIndex,dataIndex:e.dataIndex}}z(a,function(e,t){!o[t]&&c.push(l(e))}),z(o,function(e,t){!a[t]&&s.push(l(e))}),c.length&&n.dispatchAction({type:`downplay`,escapeConnect:!0,notBlur:!0,batch:c}),s.length&&n.dispatchAction({type:`highlight`,escapeConnect:!0,notBlur:!0,batch:s})}function RI(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}function zI(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+`AxisIndex`]=t.componentIndex,n.axisName=n[r+`AxisName`]=t.name,n.axisId=n[r+`AxisId`]=t.id,n}function BI(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function VI(e){_N.registerAxisPointerClass(`CartesianAxisPointer`,pI),e.registerComponentModel(_I),e.registerComponentView(DI),e.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!V(t)&&(e.axisPointer.link=[t])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,t){e.getComponent(`axisPointer`).coordSysAxesInfo=aN(e,t)}}),e.registerAction({type:`updateAxisPointer`,event:`updateAxisPointer`,update:`:updateAxisPointer`},AI)}function HI(e){xM(ON),xM(VI)}function UI(e,t){var n=e.existing;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),t.parentId==null){var r=t.parentOption;r?t.parentId=r.id:n&&(t.parentId=n.parentId)}t.parentOption=null}function WI(e,t){var n;return z(t,function(t){e[t]!=null&&e[t]!==`auto`&&(n=!0)}),n}function GI(e,t,n){var r=I({},n),i=e[t],a=n.$action||`merge`;a===`merge`?i?(F(i,r,!0),U_(i,r,{ignoreSize:!0}),G_(n,i),JI(n,i),JI(n,i,`shape`),JI(n,i,`style`),JI(n,i,`extra`),n.clipPath=i.clipPath):e[t]=r:a===`replace`?e[t]=r:a===`remove`&&i&&(e[t]=null)}var KI=[`transition`,`enterFrom`,`leaveTo`],qI=KI.concat([`enterAnimation`,`updateAnimation`,`leaveAnimation`]);function JI(e,t,n){if(n&&(!e[n]&&t[n]&&(e[n]={}),e=e[n],t=t[n]),e&&t)for(var r=n?KI:qI,i=0;i<r.length;i++){var a=r[i];e[a]==null&&t[a]!=null&&(e[a]=t[a])}}function YI(e,t){if(e&&(e.hv=t.hv=[WI(t,[`left`,`right`]),WI(t,[`top`,`bottom`])],e.type===`group`)){var n=e,r=t;n.width==null&&(n.width=r.width=0),n.height==null&&(n.height=r.height=0)}}var XI=function(e){T(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.preventAutoZ=!0,n}return t.prototype.mergeOption=function(t,n){var r=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,t,n),this.option.elements=r},t.prototype.optionUpdated=function(e,t){var n=this.option,r=(t?n:e).elements,i=n.elements=t?[]:n.elements,a=[];this._flatten(r,a,null);var o=Ac(i,a,`normalMerge`),s=this._elOptionsToUpdate=[];z(o,function(e,t){var n=e.newOption;n&&(s.push(n),UI(e,n),GI(i,t,n),YI(i[t],n))},this),n.elements=Ce(i,function(e){return e&&delete e.$action,e!=null})},t.prototype._flatten=function(e,t,n){z(e,function(e){if(e){n&&(e.parentOption=n),t.push(e);var r=e.children;r&&r.length&&this._flatten(r,t,e),delete e.children}},this)},t.prototype.useElOptionsToUpdate=function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e},t.type=`graphic`,t.defaultOption={elements:[]},t}(q_),ZI={path:null,compoundPath:null,group:ud,image:Qo,text:ds},QI=Kc(),$I=function(e){T(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){this._elMap=K()},t.prototype.render=function(e,t,n){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,n)},t.prototype._updateElements=function(e){var t=e.useElOptionsToUpdate();if(t){var n=this._elMap,r=this.group,i=e.get(`z`),a=e.get(`zlevel`);z(t,function(t){var o=zc(t.id,null),s=o==null?null:n.get(o),c=zc(t.parentId,null),l=c==null?r:n.get(c),u=t.type,d=t.style;u===`text`&&d&&t.hv&&t.hv[1]&&(d.textVerticalAlign=d.textBaseline=d.verticalAlign=d.align=null);var f=t.textContent,p=t.textConfig;if(d&&eb(d,u,!!p,!!f)){var m=tb(d,u,!0);!p&&m.textConfig&&(p=t.textConfig=m.textConfig),!f&&m.textContent&&(f=m.textContent)}var h=iL(t),g=t.$action||`merge`,_=g===`merge`,v=g===`replace`;if(_){var y=!s,b=s;y?b=tL(o,l,t.type,n):(b&&(QI(b).isNew=!1),KF(b)),b&&(OF(b,h,e,{isInit:y}),rL(b,t,i,a))}else if(v){nL(s,t,n,e);var x=tL(o,l,t.type,n);x&&(OF(x,h,e,{isInit:!0}),rL(x,t,i,a))}else g===`remove`&&(kF(s,t),nL(s,t,n,e));var S=n.get(o);if(S&&f){if(_){var C=S.getTextContent();C?C.attr(f):S.setTextContent(new ds(f))}else v&&S.setTextContent(new ds(f))}if(S){var w=t.clipPath;if(w){var T=w.type,E=void 0,y=!1;if(_){var D=S.getClipPath();y=!D||QI(D).type!==T,E=y?eL(T):D}else v&&(y=!0,E=eL(T));S.setClipPath(E),OF(E,w,e,{isInit:y}),qF(E,w.keyframeAnimation,e)}var O=QI(S);S.setTextConfig(p),O.option=t,aL(S,e,t),tp({el:S,componentModel:e,itemName:S.name,itemTooltipOption:t.tooltip}),qF(S,t.keyframeAnimation,e)}})}},t.prototype._relocate=function(e,t){for(var n=e.option.elements,r=this.group,i=this._elMap,a=t.getWidth(),o=t.getHeight(),s=[`x`,`y`],c=0;c<n.length;c++){var l=n[c],u=zc(l.id,null),d=u==null?null:i.get(u);if(d&&d.isGroup){var f=d.parent,p=f===r,m=QI(d),h=QI(f);m.width=Bs(m.option.width,p?a:h.width)||0,m.height=Bs(m.option.height,p?o:h.height)||0}}for(var c=n.length-1;c>=0;c--){var l=n[c],u=zc(l.id,null),d=u==null?null:i.get(u);if(d){var f=d.parent,h=QI(f),g=f===r?{width:a,height:o}:{width:h.width,height:h.height},_={},v=V_(d,l,g,null,{hv:l.hv,boundingMode:l.bounding},_);if(!QI(d).isNew&&v){for(var y=l.transition,b={},x=0;x<s.length;x++){var S=s[x],C=_[S];y&&(jF(y)||R(y,S)>=0)?b[S]=C:d[S]=C}mf(d,b,e,0)}else d.attr(_)}}},t.prototype._clear=function(){var e=this,t=this._elMap;t.each(function(n){nL(n,QI(n).option,t,e._lastGraphicModel)}),this._elMap=K()},t.prototype.dispose=function(){this._clear()},t.type=`graphic`,t}(HO);function eL(e){var t=new(q(ZI,e)?ZI[e]:Af(e))({});return QI(t).type=e,t}function tL(e,t,n,r){var i=eL(n);return t.add(i),r.set(e,i),QI(i).id=e,QI(i).isNew=!0,i}function nL(e,t,n,r){e&&e.parent&&(e.type===`group`&&e.traverse(function(e){nL(e,t,n,r)}),AF(e,t,r),n.removeKey(QI(e).id))}function rL(e,t,n,r){e.isGroup||z([[`cursor`,La.prototype.cursor],[`zlevel`,r||0],[`z`,n||0],[`z2`,0]],function(n){var r=n[0];q(t,r)?e[r]=G(t[r],n[1]):e[r]==null&&(e[r]=n[1])}),z(Te(t),function(n){if(n.indexOf(`on`)===0){var r=t[n];e[n]=H(r)?r:null}}),q(t,`draggable`)&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function iL(e){return e=I({},e),z([`id`,`parentId`,`$action`,`hv`,`bounding`,`textContent`,`clipPath`].concat(j_),function(t){delete e[t]}),e}function aL(e,t,n){var r=Z(e).eventData;!e.silent&&!e.ignore&&!r&&(r=Z(e).eventData={componentType:`graphic`,componentIndex:t.componentIndex,name:e.name}),r&&(r.info=n.info)}function oL(e){e.registerComponentModel(XI),e.registerComponentView($I),e.registerPreprocessor(function(e){var t=e.graphic;V(t)?e.graphic=!t[0]||!t[0].elements?[{elements:t}]:[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var sL=[`x`,`y`,`radius`,`angle`,`single`],cL=Kc(),lL=[`cartesian2d`,`polar`,`singleAxis`];function uL(e){return R(lL,e.get(`coordinateSystem`))>=0}function dL(e){return e+`Axis`}function fL(e,t){var n=K(),r=[],i=K();e.eachComponent({mainType:`dataZoom`,query:t},function(e){i.get(e.uid)||s(e)});var a;do a=!1,e.eachComponent(`dataZoom`,o);while(a);function o(e){!i.get(e.uid)&&c(e)&&(s(e),a=!0)}function s(e){i.set(e.uid,!0),r.push(e),l(e)}function c(e){var t=!1;return e.eachTargetAxis(function(e,r){var i=n.get(e);i&&i[r]&&(t=!0)}),t}function l(e){e.eachTargetAxis(function(e,t){(n.get(e)||n.set(e,[]))[t]=!0})}return r}function pL(e){var t=cL(pS(e));return t.axisProxyMap||(t.axisProxyMap=K())}function mL(e){if(e)return pL(e.ecModel).get(e.uid)}function hL(e,t){pL(e.ecModel).set(e.uid,t)}function gL(e,t){var n=t.getAxisModel().axis.__alignTo;return n&&e.getAxisProxy(n.dim,n.model.componentIndex)?mL(n.model):null}var _L=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},e}(),vL=function(e){T(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=[`percent`,`percent`],n}return t.prototype.init=function(e,t,n){var r=yL(e);this.settledOption=r,this.mergeDefaultAndTheme(e,n),this._doInit(r)},t.prototype.mergeOption=function(e){var t=yL(e);F(this.option,e,!0),F(this.settledOption,t,!0),this._doInit(t)},t.prototype._doInit=function(e){var t=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;z([[`start`,`startValue`],[`end`,`endValue`]],function(e,r){this._rangePropMode[r]===`value`&&(t[e[0]]=n[e[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get(`orient`,!0),t=this._targetAxisInfoMap=K();this._fillSpecifiedTargetAxis(t)?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||`horizontal`,this._fillAutoTargetAxisByOrient(t,this._orient)),this._noTarget=!0,t.each(function(e){e.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var t=!1;return z(sL,function(n){var r=this.getReferringComponents(dL(n),Zc);if(r.specified){t=!0;var i=new _L;z(r.models,function(e){i.add(e.componentIndex)}),e.set(n,i)}},this),t},t.prototype._fillAutoTargetAxisByOrient=function(e,t){var n=this.ecModel,r=!0;if(r){var i=t===`vertical`?`y`:`x`,a=n.findComponents({mainType:i+`Axis`});o(a,i)}if(r){var a=n.findComponents({mainType:`singleAxis`,filter:function(e){return e.get(`orient`,!0)===t}});o(a,`single`)}function o(t,n){var i=t[0];if(i){var a=new _L;if(a.add(i.componentIndex),e.set(n,a),r=!1,n===`x`||n===`y`){var o=i.getReferringComponents(`grid`,Xc).models[0];o&&z(t,function(e){i.componentIndex!==e.componentIndex&&o===e.getReferringComponents(`grid`,Xc).models[0]&&a.add(e.componentIndex)})}}}r&&z(sL,function(t){if(r){var i=n.findComponents({mainType:dL(t),filter:function(e){return e.get(`type`,!0)===`category`}});if(i[0]){var a=new _L;a.add(i[0].componentIndex),e.set(t,a),r=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(t){!e&&(e=t)},this),e===`y`?`vertical`:`horizontal`},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty(`throttle`)&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var t=this._rangePropMode,n=this.get(`rangeMode`);z([[`start`,`startValue`],[`end`,`endValue`]],function(r,i){var a=e[r[0]]!=null,o=e[r[1]]!=null;a&&!o?t[i]=`percent`:!a&&o?t[i]=`value`:n?t[i]=n[i]:a&&(t[i]=`percent`)})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(t,n){e==null&&(e=this.ecModel.getComponent(dL(t),n))},this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each(function(n,r){z(n.indexList,function(n){e.call(t,r,n)})})},t.prototype.getAxisProxy=function(e,t){return mL(this.getAxisModel(e,t))},t.prototype.getAxisModel=function(e,t){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[t])return this.ecModel.getComponent(dL(e),t)},t.prototype.setRawRange=function(e){var t=this.option,n=this.settledOption;z([[`start`,`startValue`],[`end`,`endValue`]],function(r){(e[r[0]]!=null||e[r[1]]!=null)&&(t[r[0]]=n[r[0]]=e[r[0]],t[r[1]]=n[r[1]]=e[r[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var t=this.option;z([`start`,`startValue`,`end`,`endValue`],function(n){t[n]=e[n]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getWindow().percent},t.prototype.getValueRange=function(e,t){if(e==null&&t==null){var n=this.findRepresentativeAxisProxy();if(n)return n.getWindow().value}else return this.getAxisProxy(e,t).getWindow().value},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return mL(e);for(var t,n=this._targetAxisInfoMap.keys(),r=0;r<n.length;r++)for(var i=n[r],a=this._targetAxisInfoMap.get(i),o=0;o<a.indexList.length;o++){var s=this.getAxisProxy(i,a.indexList[o]);if(s.hostedBy(this))return s;t||(t=s)}return t},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type=`dataZoom`,t.dependencies=[`xAxis`,`yAxis`,`radiusAxis`,`angleAxis`,`singleAxis`,`series`,`toolbox`],t.defaultOption={z:4,filterMode:`filter`,start:0,end:100},t}(q_);function yL(e){var t={};return z([`start`,`end`,`startValue`,`endValue`,`throttle`],function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}var bL=function(e){T(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`dataZoom.select`,t}(vL),xL=function(e){T(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`dataZoom.select`,t}(function(e){T(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n,r){this.dataZoomModel=e,this.ecModel=t,this.api=n},t.type=`dataZoom`,t}(HO)),SL=function(){function e(e,t,n,r){this._dimName=e,this._axisIndex=t,this.ecModel=r,this._dataZoomModel=n}return e.prototype.hostedBy=function(e){return this._dataZoomModel===e},e.prototype.getWindow=function(){return P(this._window)},e.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if(uL(t)){var n=dL(this._dimName),r=t.getReferringComponents(n,Xc).models[0];r&&this._axisIndex===r.componentIndex&&e.push(t)}},this),e},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+`Axis`,this._axisIndex)},e.prototype.getMinMaxSpan=function(){return P(this._minMaxSpan)},e.prototype.calculateDataWindow=function(e){var t=this._extent,n=this.getAxisModel().axis,r=n.scale,i=this._dataZoomModel.getRangePropMode(),a=[0,100],o=[],s=[],c,l=[!1,!1];z([`start`,`end`],function(n,u){var d=e[n],f=e[n+`Value`];i[u]===`percent`?(d==null&&(d=a[u]),f=zs(d,a,t),l[u]=!0):(c=!0,f==null?f=t[u]:(f=r.parse(f),r.sanitize&&(f=r.sanitize(f,t))),d=zs(f,t,a)),s[u]=f==null||isNaN(f)?t[u]:f,o[u]=d==null||isNaN(d)?a[u]:d}),Ks(s),Ks(o);var u=this._minMaxSpan;c?d(s,o,t,a,!1):d(o,s,a,t,!0);function d(e,t,n,r,i){var a=i?`Span`:`ValueSpan`;xP(0,e,n,`all`,u[`min`+a],u[`max`+a]);for(var o=0;o<2;o++)t[o]=zs(e[o],n,r,!0),i&&(t[o]=t[o],l[o]=!0);fl(t)}var f=Sb(r)||bb(r),p=n.getExtent(),m=As(p[1]-p[0]),h=f?0:Xs(s,m,.5);z([[0,Ns],[1,Ms]],function(e){var n=e[0],r=e[1];l[n]&&isFinite(h)&&(s[n]=Ws(s[n],h),s[n]=Os(t[1],ks(t[0],s[n])),o[n]===a[n]&&(s[n]=t[n],f&&(s[n]=r(s[n]))))}),fl(s);var g=[zs(s[0],t,a,!0),zs(s[1],t,a,!0)];return fl(g),{value:s,percent:o,percentInverted:g,valuePrecision:h}},e.prototype.reset=function(e,t){if(this.hostedBy(e)){var n=this.getAxisModel().axis;iw(n,2);var r=n.scale.rawExtentInfo;this._extent=r.makeNoZoom(),this._updateMinMaxSpan();var i=e.settledOption;t&&(i=L({start:t[0],end:t[1]},i));var a=this._window=this.calculateDataWindow(i),o=a.percent,s=a.value;o[0]!==0&&r.setZoomMM(0,s[0]),o[1]!==100&&r.setZoomMM(1,s[1])}},e.prototype.filterData=function(e,t){if(!this.hostedBy(e))return;var n=this._dimName,r=this.getTargetSeriesModels(),i=e.get(`filterMode`),a=this._window.value;if(i===`none`)return;z(r,function(e){var t=e.getData(),r=t.mapDimensionsAll(n);if(r.length){if(i===`weakFilter`){var s=t.getStore(),c=B(r,function(e){return t.getDimensionIndex(e)},t);t.filterSelf(function(e){for(var t,n,i,o=0;o<r.length;o++){var l=s.get(c[o],e),u=!isNaN(l),d=l<a[0],f=l>a[1];if(u&&!d&&!f)return!0;u&&(i=!0),d&&(t=!0),f&&(n=!0)}return i&&t&&n})}else z(r,function(n){if(i===`empty`)e.setData(t=t.map(n,function(e){return o(e)?e:NaN}));else{var r={};r[n]=a,t.selectRange(r)}});z(r,function(e){t.setApproximateExtent(a,e)})}});function o(e){return e>=a[0]&&e<=a[1]}},e.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._extent;z([`min`,`max`],function(r){var i=t.get(r+`Span`),a=t.get(r+`ValueSpan`);a!=null&&(a=this.getAxisModel().axis.scale.parse(a)),a==null?i!=null&&(a=zs(i,[0,100],n,!0)-n[0]):i=zs(n[0]+a,n,[0,100],!0),e[r+`Span`]=i,e[r+`ValueSpan`]=a},this)},e}(),CL={dirtyOnOverallProgress:!0,getTargetSeries:function(e){function t(t){e.eachComponent(`dataZoom`,function(n){n.eachTargetAxis(function(r,i){t(r,i,e.getComponent(dL(r),i),n)})})}var n=[];t(function(t,r,i,a){if(!mL(i)){var o=new SL(t,r,a,e);n.push(o),hL(i,o)}});var r=K();return z(n,function(e){z(e.getTargetSeriesModels(),function(e){r.set(e.uid,e)})}),r},overallReset:function(e,t){e.eachComponent(`dataZoom`,function(e){var n=[];e.eachTargetAxis(function(t,r){var i=e.getAxisProxy(t,r),a=gL(e,i);a?n.push([i,a]):i.reset(e,null)}),z(n,function(t){t[0].reset(e,t[1].getWindow().percentInverted)}),e.eachTargetAxis(function(n,r){e.getAxisProxy(n,r).filterData(e,t)})}),e.eachComponent(`dataZoom`,function(e){var t=e.findRepresentativeAxisProxy();if(t){var n=t.getWindow(),r=n.percent,i=n.value;e.setCalculatedRange({start:r[0],end:r[1],startValue:i[0],endValue:i[1]})}})}};function wL(e){e.registerAction(`dataZoom`,function(e,t){z(fL(t,e),function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var TL=pl();function EL(e){TL(e,function(){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,CL),wL(e),e.registerSubTypeDefaulter(`dataZoom`,function(){return`slider`})})}function DL(e){e.registerComponentModel(bL),e.registerComponentView(xL),EL(e)}var OL=function(){function e(){}return e}(),kL={};function AL(e,t){kL[e]=t}function jL(e){return kL[e]}var ML=function(e){T(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t,n,r){var i=r.getTheme().get(`toolbox`),a=i?i.feature:null;a&&(this._themeFeatureOption=I({},a),i.feature={}),e.prototype.init.call(this,t,n,r),a&&(i.feature=a)},t.prototype.optionUpdated=function(){z(this.option.feature,function(e,t){var n=this._themeFeatureOption,r=jL(t);r&&(r.getDefaultOption&&(r.defaultOption=r.getDefaultOption(this.ecModel)),n&&n[t]&&(F(e,n[t]),n[t]=null),F(e,r.defaultOption))},this)},t.type=`toolbox`,t.layoutMode={type:`box`,ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:`horizontal`,left:`right`,top:`top`,backgroundColor:`transparent`,borderColor:Q.color.border,borderRadius:0,borderWidth:0,padding:Q.size.m,itemSize:15,itemGap:Q.size.s,showTitle:!0,iconStyle:{borderColor:Q.color.accent50,color:`none`},emphasis:{iconStyle:{borderColor:Q.color.accent70}},tooltip:{show:!1,position:`bottom`}},t}(q_);function NL(e,t){var n=b_(t.get(`padding`)),r=t.getItemStyle([`color`,`opacity`]);return r.fill=t.get(`backgroundColor`),new os({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get(`borderRadius`)},style:r,silent:!0,z2:-1})}var PL=function(e){T(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(e,t,n,r){var i=this.group;if(i.removeAll(),!e.get(`show`))return;var a=+e.get(`itemSize`),o=e.get(`orient`)===`vertical`,s=e.get(`feature`)||{},c=this._features||(this._features=K()),l=[];z(s,function(e,t){l.push(t)}),new qp(this._featureNames||[],l).add(u).update(u).remove(Oe(u,null)).execute(),this._featureNames=Ce(l,function(e){return c.hasKey(e)});function u(i,a){var o=i!=null&&a==null,u=i!=null&&a!=null,f=i==null,p=o||u?l[i]:l[a],m=s[p],h=o||u?new Wp(m,e,t):null,g=h&&h.get(`show`),_;if(o){if(!g)return;if(FL(p))_={onclick:h.option.onclick,featureName:p};else{var v=jL(p);if(!v)return;_=new v}c.set(p,_)}else _=c.get(p);if(f||!g){IL(_)&&_.dispose&&_.dispose(t,n),c.removeKey(p);return}r&&r.newTitle!=null&&r.featureName===p&&(m.title=r.newTitle),o&&(_.uid=eg(`toolbox-feature`)),_.model=h,_.ecModel=t,_.api=n,d(h,_,p),h.setIconStatus=function(e,t){var n=this.option,r=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,r[e]&&(t===`emphasis`?du:fu)(r[e])},IL(_)&&_.render&&_.render(h,t,n,r)}function d(r,s,c){var l=r.getModel(`iconStyle`),u=r.getModel([`emphasis`,`iconStyle`]),d=s instanceof OL&&s.getIcons?s.getIcons():r.get(`icon`),f=r.get(`title`)||{},p,m;U(d)?(p={},p[c]=d):p=d,U(f)?(m={},m[c]=f):m=f;var h=r.iconPaths={};z(p,function(c,d){var f=qf(c,{},{x:-a/2,y:-a/2,width:a,height:a});f.setStyle(l.getItemStyle());var p=f.ensureState(`emphasis`);p.style=u.getItemStyle();var g=new ds({style:{text:m[d],align:u.get(`textAlign`),borderRadius:u.get(`textBorderRadius`),padding:u.get(`textPadding`),fill:null,font:kp({fontStyle:u.get(`textFontStyle`),fontFamily:u.get(`textFontFamily`),fontSize:u.get(`textFontSize`),fontWeight:u.get(`textFontWeight`)},t)},ignore:!0});f.setTextContent(g),tp({el:f,componentModel:e,itemName:d,formatterParamsExtra:{title:m[d]}}),f.__title=m[d],f.on(`mouseover`,function(){var t=u.getItemStyle(),r=o?e.get(`right`)==null&&e.get(`left`)!==`right`?`right`:`left`:e.get(`bottom`)==null&&e.get(`top`)!==`bottom`?`bottom`:`top`;g.setStyle({fill:u.get(`textFill`)||t.fill||t.stroke||Q.color.neutral99,backgroundColor:u.get(`textBackgroundColor`)}),f.setTextConfig({position:u.get(`textPosition`)||r}),g.ignore=!e.get(`showTitle`),n.enterEmphasis(this)}).on(`mouseout`,function(){r.get([`iconStatus`,d])!==`emphasis`&&n.leaveEmphasis(this),g.hide()}),(r.get([`iconStatus`,d])===`emphasis`?du:fu)(f),i.add(f),f.on(`click`,De(s.onclick,s,t,n,d)),h[d]=f})}var f=B_(e,n).refContainer,p=e.getBoxLayoutParams(),m=e.get(`padding`),h=R_(p,f,m);P_(e.get(`orient`),i,e.get(`itemGap`),h.width,h.height),V_(i,p,f,m),i.add(NL(i.getBoundingRect(),e)),o||i.eachChild(function(e){var t=e.__title,r=e.ensureState(`emphasis`),o=r.textConfig||(r.textConfig={}),s=e.getTextContent(),c=s&&s.ensureState(`emphasis`);if(c&&!H(c)&&t){var l=c.style||(c.style={}),u=Gn(t,ds.makeFont(l)),d=e.x+i.x,f=e.y+i.y+a,p=!1;f+u.height>n.getHeight()&&(o.position=`top`,p=!0);var m=p?-5-u.height:a+10;d+u.width/2>n.getWidth()?(o.position=[`100%`,m],l.align=`right`):d-u.width/2<0&&(o.position=[0,m],l.align=`left`)}})},t.prototype.updateView=function(e,t,n,r){z(this._features,function(e){e&&e instanceof OL&&e.updateView&&e.updateView(e.model,t,n,r)})},t.prototype.dispose=function(e,t){z(this._features,function(n){n&&n instanceof OL&&n.dispose&&n.dispose(e,t)})},t.type=`toolbox`,t}(HO);function FL(e){return e.indexOf(`my`)===0}function IL(e){return e instanceof OL}var LL=function(e){T(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(e,t){var n=this.model,r=n.get(`name`)||e.get(`title.0.text`)||`echarts`,i=t.getZr().painter.getType()===`svg`,a=i?`svg`:n.get(`type`,!0)||`png`,o=t.getConnectedDataURL({type:a,backgroundColor:n.get(`backgroundColor`,!0)||e.get(`backgroundColor`)||Q.color.neutral00,connectedBackgroundColor:n.get(`connectedBackgroundColor`),excludeComponents:n.get(`excludeComponents`),pixelRatio:n.get(`pixelRatio`)}),s=J.browser;if(typeof MouseEvent==`function`&&(s.newEdge||!s.ie&&!s.edge)){var c=document.createElement(`a`);c.download=r+`.`+a,c.target=`_blank`,c.href=o;var l=new MouseEvent(`click`,{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(l)}else if(window.navigator.msSaveOrOpenBlob||i){var u=o.split(`,`),d=u[0].indexOf(`base64`)>-1,f=i?decodeURIComponent(u[1]):u[1];d&&(f=window.atob(f));var p=r+`.`+a;if(window.navigator.msSaveOrOpenBlob){for(var m=f.length,h=new Uint8Array(m);m--;)h[m]=f.charCodeAt(m);var g=new Blob([h]);window.navigator.msSaveOrOpenBlob(g,p)}else{var _=document.createElement(`iframe`);document.body.appendChild(_);var v=_.contentWindow,y=v.document;y.open(`image/svg+xml`,`replace`),y.write(f),y.close(),v.focus(),y.execCommand(`SaveAs`,!0,p),document.body.removeChild(_)}}else{var b=n.get(`lang`),x=`<body style="margin:0;"><img src="`+o+`" style="max-width:100%;" title="`+(b&&b[0]||``)+`" /></body>`,S=window.open();S.document.write(x),S.document.title=r}},t.getDefaultOption=function(e){return{show:!0,icon:`M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0`,title:e.getLocaleModel().get([`toolbox`,`saveAsImage`,`title`]),type:`png`,connectedBackgroundColor:Q.color.neutral00,name:``,excludeComponents:[`toolbox`],lang:e.getLocaleModel().get([`toolbox`,`saveAsImage`,`lang`])}},t}(OL),RL=`__ec_magicType_stack__`,zL=[[`line`,`bar`],[`stack`]],BL=function(e){T(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,t=e.get(`icon`),n={};return z(e.get(`type`),function(e){t[e]&&(n[e]=t[e])}),n},t.getDefaultOption=function(e){return{show:!0,type:[],icon:{line:`M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4`,bar:`M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7`,stack:`M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z`},title:e.getLocaleModel().get([`toolbox`,`magicType`,`title`]),option:{},seriesIndex:{}}},t.prototype.onclick=function(e,t,n){var r=this.model,i=r.get([`seriesIndex`,n]);if(VL[n]){var a={series:[]};z(zL,function(e){R(e,n)>=0&&z(e,function(e){r.setIconStatus(e,`normal`)})}),r.setIconStatus(n,`emphasis`),e.eachComponent({mainType:`series`,query:i==null?null:{seriesIndex:i}},function(e){var t=e.subType,i=e.id,o=VL[n](t,i,e,r);o&&(L(o,e.option),a.series.push(o));var s=e.coordinateSystem;if(s&&s.type===`cartesian2d`&&(n===`line`||n===`bar`)){var c=s.getAxesByScale(`ordinal`)[0];if(c){var l=c.dim+`Axis`,u=e.getReferringComponents(l,Xc).models[0].componentIndex;a[l]=a[l]||[];for(var d=0;d<=u;d++)a[l][u]=a[l][u]||{};a[l][u].boundaryGap=n===`bar`}}});var o,s=n;n===`stack`&&(o=F({stack:r.option.title.tiled,tiled:r.option.title.stack},r.option.title),r.get([`iconStatus`,n])!==`emphasis`&&(s=`tiled`)),t.dispatchAction({type:`changeMagicType`,currentType:s,newOption:a,newTitle:o,featureName:`magicType`})}},t}(OL),VL={line:function(e,t,n,r){if(e===`bar`)return F({id:t,type:`line`,data:n.get(`data`),stack:n.get(`stack`),markPoint:n.get(`markPoint`),markLine:n.get(`markLine`)},r.get([`option`,`line`])||{},!0)},bar:function(e,t,n,r){if(e===`line`)return F({id:t,type:`bar`,data:n.get(`data`),stack:n.get(`stack`),markPoint:n.get(`markPoint`),markLine:n.get(`markLine`)},r.get([`option`,`bar`])||{},!0)},stack:function(e,t,n,r){var i=n.get(`stack`)===RL;if(e===`line`||e===`bar`)return r.setIconStatus(`stack`,i?`normal`:`emphasis`),F({id:t,stack:i?``:RL},r.get([`option`,`stack`])||{},!0)}};iM({type:`changeMagicType`,event:`magicTypeChanged`,update:`prepareAndUpdate`},function(e,t){t.mergeOption(e.newOption)});var HL=Array(60).join(`-`),UL=` `;function WL(e){var t={},n=[],r=[];return e.eachRawSeries(function(e){var i=e.coordinateSystem;if(i&&(i.type===`cartesian2d`||i.type===`polar`)){var a=i.getBaseAxis();if(a.type===`category`){var o=JC(a);t[o]||(t[o]={categoryAxis:a,valueAxis:i.getOtherAxis(a),series:[]},r.push({axisDim:a.dim,axisIndex:a.index})),t[o].series.push(e)}else n.push(e)}else n.push(e)}),{seriesGroupByCategoryAxis:t,other:n,meta:r}}function GL(e){var t=[];return z(e,function(e,n){var r=e.categoryAxis,i=e.valueAxis.dim,a=[` `].concat(B(e.series,function(e){return e.name})),o=[r.model.getCategories()];z(e.series,function(e){var t=e.getRawData();o.push(e.getRawData().mapArray(t.mapDimension(i),function(e){return e}))});for(var s=[a.join(UL)],c=0;c<o[0].length;c++){for(var l=[],u=0;u<o.length;u++)l.push(o[u][c]);s.push(l.join(UL))}t.push(s.join(`
|
|
16
|
+
`))}),t.join(`
|
|
17
|
+
|
|
18
|
+
`+HL+`
|
|
19
|
+
|
|
20
|
+
`)}function KL(e){return B(e,function(e){var t=e.getRawData(),n=[e.name],r=[];return t.each(t.dimensions,function(){for(var e=arguments.length,i=arguments[e-1],a=t.getName(i),o=0;o<e-1;o++)r[o]=arguments[o];n.push((a?a+UL:``)+r.join(UL))}),n.join(`
|
|
21
|
+
`)}).join(`
|
|
22
|
+
|
|
23
|
+
`+HL+`
|
|
24
|
+
|
|
25
|
+
`)}function qL(e){var t=WL(e);return{value:Ce([GL(t.seriesGroupByCategoryAxis),KL(t.other)],function(e){return!!e.replace(/[\n\t\s]/g,``)}).join(`
|
|
26
|
+
|
|
27
|
+
`+HL+`
|
|
28
|
+
|
|
29
|
+
`),meta:t.meta}}function JL(e){return e.replace(/^\s\s*/,``).replace(/\s\s*$/,``)}function YL(e){if(e.slice(0,e.indexOf(`
|
|
30
|
+
`)).indexOf(UL)>=0)return!0}var XL=RegExp(`[`+UL+`]+`,`g`);function ZL(e){for(var t=e.split(/\n+/g),n=JL(t.shift()).split(XL),r=[],i=B(n,function(e){return{name:e,data:[]}}),a=0;a<t.length;a++){var o=JL(t[a]).split(XL);r.push(o.shift());for(var s=0;s<o.length;s++)i[s]&&(i[s].data[a]=o[s])}return{series:i,categories:r}}function QL(e){for(var t=e.split(/\n+/g),n=JL(t.shift()),r=[],i=0;i<t.length;i++){var a=JL(t[i]);if(a){var o=a.split(XL),s=``,c=void 0,l=!1;isNaN(o[0])?(l=!0,s=o[0],o=o.slice(1),r[i]={name:s,value:[]},c=r[i].value):c=r[i]=[];for(var u=0;u<o.length;u++)c.push(+o[u]);c.length===1&&(l?r[i].value=c[0]:r[i]=c[0])}}return{name:n,data:r}}function $L(e,t){var n=e.split(RegExp(`
|
|
31
|
+
*`+HL+`
|
|
32
|
+
*`,`g`)),r={series:[]};return z(n,function(e,n){if(YL(e)){var i=ZL(e),a=t[n],o=a.axisDim+`Axis`;a&&(r[o]=r[o]||[],r[o][a.axisIndex]={data:i.categories},r.series=r.series.concat(i.series))}else{var i=QL(e);r.series.push(i)}}),r}var eR=function(e){T(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(e,t){setTimeout(function(){t.dispatchAction({type:`hideTip`})});var n=t.getDom(),r=this.model;this._dom&&n.removeChild(this._dom);var i=document.createElement(`div`);i.style.cssText=`position:absolute;top:0;bottom:0;left:0;right:0;padding:5px`,i.style.backgroundColor=r.get(`backgroundColor`)||Q.color.neutral00;var a=document.createElement(`h4`),o=r.get(`lang`)||[];a.innerHTML=o[0]||r.get(`title`),a.style.cssText=`margin:10px 20px`,a.style.color=r.get(`textColor`);var s=document.createElement(`div`),c=document.createElement(`textarea`);s.style.cssText=`overflow:auto`;var l=r.get(`optionToContent`),u=r.get(`contentToOption`),d=qL(e);if(H(l)){var f=l(t.getOption());U(f)?s.innerHTML=f:Ne(f)&&s.appendChild(f)}else{c.readOnly=r.get(`readOnly`);var p=c.style;p.cssText=`display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none`,p.color=r.get(`textColor`),p.borderColor=r.get(`textareaBorderColor`),p.backgroundColor=r.get(`textareaColor`),c.value=d.value,s.appendChild(c)}var m=d.meta,h=document.createElement(`div`);h.style.cssText=`position:absolute;bottom:5px;left:0;right:0`;var g=`float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px`,_=document.createElement(`div`),v=document.createElement(`div`);g+=`;background-color:`+r.get(`buttonColor`),g+=`;color:`+r.get(`buttonTextColor`);var y=this;function b(){n.removeChild(i),y._dom=null}kE(_,`click`,b),kE(v,`click`,function(){if(u==null&&l!=null||u!=null&&l==null){b();return}var e;try{e=H(u)?u(s,t.getOption()):$L(c.value,m)}catch(e){throw b(),Error(`Data view format error `+e)}e&&t.dispatchAction({type:`changeDataView`,newOption:e}),b()}),_.innerHTML=o[1],v.innerHTML=o[2],v.style.cssText=_.style.cssText=g,!r.get(`readOnly`)&&h.appendChild(v),h.appendChild(_),i.appendChild(a),i.appendChild(s),i.appendChild(h),s.style.height=n.clientHeight-80+`px`,n.appendChild(i),this._dom=i},t.prototype.dispose=function(e,t){this._dom&&t.getDom().removeChild(this._dom)},t.getDefaultOption=function(e){return{show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:`M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28`,title:e.getLocaleModel().get([`toolbox`,`dataView`,`title`]),lang:e.getLocaleModel().get([`toolbox`,`dataView`,`lang`]),backgroundColor:Q.color.background,textColor:Q.color.primary,textareaColor:Q.color.background,textareaBorderColor:Q.color.border,buttonColor:Q.color.accent50,buttonTextColor:Q.color.neutral00}},t}(OL);function tR(e,t){return B(e,function(e,n){var r=t&&t[n];if(W(r)&&!V(r)){(!W(e)||V(e))&&(e={value:e});var i=r.name!=null&&e.name==null;return e=L(e,r),i&&delete e.name,e}return e})}iM({type:`changeDataView`,event:`dataViewChanged`,update:`prepareAndUpdate`},function(e,t){var n=[];z(e.newOption.series,function(e){var r=t.getSeriesByName(e.name)[0];if(!r)n.push(I({type:`scatter`},e));else{var i=r.get(`data`);n.push({name:e.name,data:tR(e.data,i)})}}),t.mergeOption(L({series:n},e.newOption))});var nR=z,rR=Kc();function iR(e,t){var n=cR(e);nR(t,function(t,r){for(var i=n.length-1;i>=0&&!n[i][r];i--);if(i<0){var a=e.queryComponents({mainType:`dataZoom`,subType:`select`,id:r})[0];if(a){var o=a.getPercentRange();n[0][r]={dataZoomId:r,start:o[0],end:o[1]}}}}),n.push(t)}function aR(e){var t=cR(e),n=t[t.length-1];t.length>1&&t.pop();var r={};return nR(n,function(e,n){for(var i=t.length-1;i>=0;i--)if(e=t[i][n],e){r[n]=e;break}}),r}function oR(e){rR(e).snapshots=null}function sR(e){return cR(e).length}function cR(e){var t=rR(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var lR=function(e){T(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(e,t){oR(e),t.dispatchAction({type:`restore`,from:this.uid})},t.getDefaultOption=function(e){return{show:!0,icon:`M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5`,title:e.getLocaleModel().get([`toolbox`,`restore`,`title`])}},t}(OL);iM({type:`restore`,event:`restore`,update:`prepareAndUpdate`},function(e,t){t.resetOption(`recreate`)});var uR=[`grid`,`xAxis`,`yAxis`,`geo`,`graph`,`polar`,`radiusAxis`,`angleAxis`,`bmap`],dR=function(){function e(e,t,n){var r=this;this._targetInfoList=[];var i=pR(t,e);z(mR,function(e,t){(!n||!n.include||R(n.include,t)>=0)&&e(i,r._targetInfoList)})}return e.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(e,t,n){if((e.coordRanges||(e.coordRanges=[])).push(t),!e.coordRange){e.coordRange=t;var r=_R[e.brushType](0,n,t);e.__rangeOffset={offset:yR[e.brushType](r.values,e.range,[1,1]),xyMinMax:r.xyMinMax}}}),e},e.prototype.matchOutputRanges=function(e,t,n){z(e,function(e){var r=this.findTargetInfo(e,t);r&&r!==!0&&z(r.coordSyses,function(r){n(e,_R[e.brushType](1,r,e.range,!0).values,r,t)})},this)},e.prototype.setInputRanges=function(e,t){z(e,function(e){var n=this.findTargetInfo(e,t);if(e.range=e.range||[],n&&n!==!0){e.panelId=n.panelId;var r=_R[e.brushType](0,n.coordSys,e.coordRange),i=e.__rangeOffset;e.range=i?yR[e.brushType](r.values,i.offset,xR(r.xyMinMax,i.xyMinMax)):r.values}},this)},e.prototype.makePanelOpts=function(e,t){return B(this._targetInfoList,function(n){var r=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:yF(r),isTargetByCursor:xF(r,e,n.coordSysModel),getLinearBrushOtherExtent:bF(r)}})},e.prototype.controlSeries=function(e,t,n){var r=this.findTargetInfo(e,n);return r===!0||r&&R(r.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,r=pR(t,e),i=0;i<n.length;i++){var a=n[i],o=e.panelId;if(o){if(a.panelId===o)return a}else for(var s=0;s<hR.length;s++)if(hR[s](r,a))return a}return!0},e}();function fR(e){return e[0]>e[1]&&e.reverse(),e}function pR(e,t){return Jc(e,t,{includeMainTypes:uR})}var mR={grid:function(e,t){var n=e.xAxisModels,r=e.yAxisModels,i=e.gridModels,a=K(),o={},s={};(n||r||i)&&(z(n,function(e){var t=e.axis.grid.model;a.set(t.id,t),o[t.id]=!0}),z(r,function(e){var t=e.axis.grid.model;a.set(t.id,t),s[t.id]=!0}),z(i,function(e){a.set(e.id,e),o[e.id]=!0,s[e.id]=!0}),a.each(function(e){var i=e.coordinateSystem,a=[];z(i.getCartesians(),function(e,t){(R(n,e.getAxis(`x`).model)>=0||R(r,e.getAxis(`y`).model)>=0)&&a.push(e)}),t.push({panelId:`grid--`+e.id,gridModel:e,coordSysModel:e,coordSys:a[0],coordSyses:a,getPanelRect:gR.grid,xAxisDeclared:o[e.id],yAxisDeclared:s[e.id]})}))},geo:function(e,t){z(e.geoModels,function(e){var n=e.coordinateSystem;t.push({panelId:`geo--`+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:gR.geo})})}},hR=[function(e,t){var n=e.xAxisModel,r=e.yAxisModel,i=e.gridModel;return!i&&n&&(i=n.axis.grid.model),!i&&r&&(i=r.axis.grid.model),i&&i===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],gR={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys.view,t=vP(null,e);return An(t,t,_P(null,e)),t}},_R={lineX:Oe(vR,0),lineY:Oe(vR,1),rect:function(e,t,n,r){var i=e?t.pointToData([n[0][0],n[1][0]],r):t.dataToPoint([n[0][0],n[1][0]],r),a=e?t.pointToData([n[0][1],n[1][1]],r):t.dataToPoint([n[0][1],n[1][1]],r),o=[fR([i[0],a[0]]),fR([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(e,t,n,r){var i=[il(),il()];return{values:B(n,function(n){var a=e?t.pointToData(n,r):t.dataToPoint(n,r);return i[0][0]=Math.min(i[0][0],a[0]),i[1][0]=Math.min(i[1][0],a[1]),i[0][1]=Math.max(i[0][1],a[0]),i[1][1]=Math.max(i[1][1],a[1]),a}),xyMinMax:i}}};function vR(e,t,n,r){var i=n.getAxis([`x`,`y`][e]),a=fR(B([0,1],function(e){return t?i.coordToData(i.toLocalCoord(r[e]),!0):i.toGlobalCoord(i.dataToCoord(r[e]))})),o=[];return o[e]=a,o[1-e]=[NaN,NaN],{values:a,xyMinMax:o}}var yR={lineX:Oe(bR,0),lineY:Oe(bR,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return B(e,function(e,r){return[e[0]-n[0]*t[r][0],e[1]-n[1]*t[r][1]]})}};function bR(e,t,n,r){return[t[0]-r[e]*n[0],t[1]-r[e]*n[1]]}function xR(e,t){var n=SR(e),r=SR(t),i=[n[0]/r[0],n[1]/r[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function SR(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var CR=z,wR=Hc(`toolbox-dataZoom_`),TR={x:`width`,y:`height`},ER=function(e){T(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(e,t,n,r){this._brushController||(this._brushController=new IP(n.getZr()),this._brushController.on(`brush`,De(this._onBrush,this)).mount()),AR(e,t,this,r,n),kR(e,t)},t.prototype.onclick=function(e,t,n){DR[n].call(this)},t.prototype.dispose=function(e,t){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var t=e.areas;if(!e.isEnd||!t.length)return;var n={},r=this.ecModel;this._brushController.updateCovers([]),new dR(OR(this.model),r,{include:[`grid`]}).matchOutputRanges(t,r,function(e,t,n){if(n.type===`cartesian2d`){var r=n.master.getRect().clone(),a=e.brushType;a===`rect`?(i(`x`,n,r,t[0]),i(`y`,n,r,t[1])):i({lineX:`x`,lineY:`y`}[a],n,r,t)}}),iR(r,n),this._dispatchZoomAction(n);function i(e,t,i,o){var s=t.getAxis(e),c=s.model,l=a(e,c,r),u=l.findRepresentativeAxisProxy(c).getMinMaxSpan(),d=s.scale.getExtent();(u.minValueSpan!=null||u.maxValueSpan!=null)&&(o=xP(0,o.slice(),d,0,u.minValueSpan,u.maxValueSpan));var f=Xs(d,i[TR[e]],.5);l&&(n[l.id]={dataZoomId:l.id,startValue:isFinite(f)?Ws(o[0],f):o[0],endValue:isFinite(f)?Ws(o[1],f):o[1]})}function a(e,t,n){var r;return n.eachComponent({mainType:`dataZoom`,subType:`select`},function(n){n.getAxisModel(e,t.componentIndex)&&(r=n)}),r}},t.prototype._dispatchZoomAction=function(e){var t=[];CR(e,function(e,n){t.push(P(e))}),t.length&&this.api.dispatchAction({type:`dataZoom`,from:this.uid,batch:t})},t.getDefaultOption=function(e){return{show:!0,filterMode:`filter`,icon:{zoom:`M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1`,back:`M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26`},title:e.getLocaleModel().get([`toolbox`,`dataZoom`,`title`]),brushStyle:{borderWidth:0,color:Q.color.backgroundTint}}},t}(OL),DR={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:`takeGlobalCursor`,key:`dataZoomSelect`,dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(aR(this.ecModel))}};function OR(e){var t={xAxisIndex:e.get(`xAxisIndex`,!0),yAxisIndex:e.get(`yAxisIndex`,!0),xAxisId:e.get(`xAxisId`,!0),yAxisId:e.get(`yAxisId`,!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex=`all`),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex=`all`),t}function kR(e,t){e.setIconStatus(`back`,sR(t)>1?`emphasis`:`normal`)}function AR(e,t,n,r,i){var a=n._isZoomActive;r&&r.type===`takeGlobalCursor`&&(a=r.key===`dataZoomSelect`&&r.dataZoomSelectActive),n._isZoomActive=a,e.setIconStatus(`zoom`,a?`emphasis`:`normal`);var o=new dR(OR(e),t,{include:[`grid`]}).makePanelOpts(i,function(e){return e.xAxisDeclared&&!e.yAxisDeclared?`lineX`:!e.xAxisDeclared&&e.yAxisDeclared?`lineY`:`rect`});n._brushController.setPanels(o).enableBrush(a&&o.length?{brushType:`auto`,brushStyle:e.getModel(`brushStyle`).getItemStyle()}:!1)}XD(`dataZoom`,function(e){var t=e.getComponent(`toolbox`,0),n=[`feature`,`dataZoom`];if(!t||t.get(n)==null)return;var r=t.getModel(n),i=[],a=Jc(e,OR(r));CR(a.xAxisModels,function(e){return o(e,`xAxis`,`xAxisIndex`)}),CR(a.yAxisModels,function(e){return o(e,`yAxis`,`yAxisIndex`)});function o(e,t,n){var a=e.componentIndex,o={type:`select`,$fromToolbox:!0,filterMode:r.get(`filterMode`,!0)||`filter`,id:wR+t+a};o[n]=a,i.push(o)}return i});function jR(e){e.registerComponentModel(ML),e.registerComponentView(PL),AL(`saveAsImage`,LL),AL(`magicType`,BL),AL(`dataView`,eR),AL(`dataZoom`,ER),AL(`restore`,lR),xM(DL)}var MR=function(e){T(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`tooltip`,t.dependencies=[`axisPointer`],t.defaultOption={z:60,show:!0,showContent:!0,trigger:`item`,triggerOn:`mousemove|click|mousewheel`,alwaysShowContent:!1,renderMode:`auto`,confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:Q.color.neutral00,shadowBlur:10,shadowColor:`rgba(0, 0, 0, .2)`,shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:Q.color.border,padding:null,extraCssText:``,axisPointer:{type:`line`,axis:`auto`,animation:`auto`,animationDurationUpdate:200,animationEasingUpdate:`exponentialOut`,crossStyle:{color:Q.color.borderShade,width:1,type:`dashed`,textStyle:{}}},textStyle:{color:Q.color.tertiary,fontSize:14}},t}(q_);function NR(e){var t=e.get(`confine`);return t==null?e.get(`renderMode`)===`richText`:!!t}function PR(e){if(J.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n<r;n++)if(e[n]in t)return e[n]}}var FR=PR([`transform`,`webkitTransform`,`OTransform`,`MozTransform`,`msTransform`]),IR=PR([`webkitTransition`,`transition`,`OTransition`,`MozTransition`,`msTransition`]);function LR(e,t){if(!e)return t;t=y_(t,!0);var n=e.indexOf(t);return e=n===-1?t:`-`+e.slice(0,n)+`-`+t,e.toLowerCase()}function RR(e,t){var n=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return n?t?n[t]:n:null}var zR=LR(IR,`transition`),BR=LR(FR,`transform`),VR=`position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;`+(J.transform3dSupported?`will-change:transform;`:``);function HR(e){return e=e===`left`?`right`:e===`right`?`left`:e===`top`?`bottom`:`top`,e}function UR(e,t,n){if(!U(n)||n===`inside`)return``;var r=e.get(`backgroundColor`),i=e.get(`borderWidth`);t=O_(t);var a=HR(n),o=Math.max(Math.round(i)*1.5,6),s=``,c=BR+`:`,l;R([`left`,`right`],a)>-1?(s+=`top:50%`,c+=`translateY(-50%) rotate(`+(l=a===`left`?-225:-45)+`deg)`):(s+=`left:50%`,c+=`translateX(-50%) rotate(`+(l=a===`top`?225:45)+`deg)`);var u=l*Math.PI/180,d=o+i,f=d*Math.abs(Math.cos(u))+d*Math.abs(Math.sin(u)),p=Math.round(((f-Math.SQRT2*i)/2+Math.SQRT2*i-(f-d)/2)*100)/100;s+=`;`+a+`:-`+p+`px`;var m=t+` solid `+i+`px;`;return`<div style="`+[`position:absolute;width:`+o+`px;height:`+o+`px;z-index:-1;`,s+`;`+c+`;`,`border-bottom:`+m,`border-right:`+m,`background-color:`+r+`;`].join(``)+`"></div>`}function WR(e,t,n){var r=`cubic-bezier(0.23,1,0.32,1)`,i=``,a=``;return n&&(i=` `+e/2+`s `+r,a=`opacity`+i+`,visibility`+i),t||(i=` `+e+`s `+r,a+=(a.length?`,`:``)+(J.transformSupported?``+BR+i:`,left`+i+`,top`+i)),zR+`:`+a}function GR(e,t,n){var r=e.toFixed(0)+`px`,i=t.toFixed(0)+`px`;if(!J.transformSupported)return n?`top:`+i+`;left:`+r+`;`:[[`top`,i],[`left`,r]];var a=J.transform3dSupported,o=`translate`+(a?`3d`:``)+`(`+r+`,`+i+(a?`,0`:``)+`)`;return n?`top:0;left:0;`+BR+`:`+o+`;`:[[`top`,0],[`left`,0],[FR,o]]}function KR(e){var t=[],n=e.get(`fontSize`),r=e.getTextColor();r&&t.push(`color:`+r),t.push(`font:`+e.getFont());var i=G(e.get(`lineHeight`),Math.round(n*3/2));n&&t.push(`line-height:`+i+`px`);var a=e.get(`textShadowColor`),o=e.get(`textShadowBlur`)||0,s=e.get(`textShadowOffsetX`)||0,c=e.get(`textShadowOffsetY`)||0;return a&&o&&t.push(`text-shadow:`+s+`px `+c+`px `+o+`px `+a),z([`decoration`,`align`],function(n){var r=e.get(n);r&&t.push(`text-`+n+`:`+r)}),t.join(`;`)}function qR(e,t,n,r){var i=[],a=e.get(`transitionDuration`),o=e.get(`backgroundColor`),s=e.get(`shadowBlur`),c=e.get(`shadowColor`),l=e.get(`shadowOffsetX`),u=e.get(`shadowOffsetY`),d=e.getModel(`textStyle`),f=Uv(e,`html`),p=l+`px `+u+`px `+s+`px `+c;return i.push(`box-shadow:`+p),t&&a>0&&i.push(WR(a,n,r)),o&&i.push(`background-color:`+o),z([`width`,`color`,`radius`],function(t){var n=`border-`+t,r=y_(n),a=e.get(r);a!=null&&i.push(n+`:`+a+(t===`color`?``:`px`))}),i.push(KR(d)),f!=null&&i.push(`padding:`+b_(f).join(`px `)+`px`),i.join(`;`)+`;`}function JR(e,t,n,r,i){var a=t&&t.painter;if(n){var o=a&&a.getViewportRoot();o&&lg(e,o,n,r,i)}else{e[0]=r,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var YR=function(){function e(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,J.wxa)return null;var n=document.createElement(`div`);n.domBelongToZr=!0,this.el=n;var r=this._zr=e.getZr(),i=t.appendTo,a=i&&(U(i)?document.querySelector(i):Ne(i)?i:H(i)&&i(e.getDom()));JR(this._styleCoord,r,a,e.getWidth()/2,e.getHeight()/2),(a||e.getDom()).appendChild(n),this._api=e,this._container=a;var o=this;n.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},n.onmousemove=function(e){if(e=e||window.event,!o._enterable){var t=r.handler;DE(r.painter.getViewportRoot(),e,!0),t.dispatch(`mousemove`,e)}},n.onmouseleave=function(){o._inContent=!1,o._enterable&&o._show&&o.hideLater(o._hideDelay)}}return e.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=RR(t,`position`),r=t.style;r.position!==`absolute`&&n!==`absolute`&&(r.position=`relative`)}var i=e.get(`alwaysShowContent`);i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=e.get(`displayTransition`)&&e.get(`transitionDuration`)>0,this.el.className=e.get(`className`)||``},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=VR+qR(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+GR(i[0],i[1],!0)+(`border-color:`+O_(t)+`;`)+(e.get(`extraCssText`)||``)+(`;pointer-events:`+(this._enterable?`auto`:`none`)):r.display=`none`,this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,r,i){var a=this.el;if(e==null){a.innerHTML=``;return}var o=``;if(U(i)&&n.get(`trigger`)===`item`&&!NR(n)&&(o=UR(n,r,i)),U(e))a.innerHTML=e+o;else if(e){a.innerHTML=``,V(e)||(e=[e]);for(var s=0;s<e.length;s++)Ne(e[s])&&e[s].parentNode!==a&&a.appendChild(e[s]);if(o&&a.childNodes.length){var c=document.createElement(`div`);c.innerHTML=o,a.appendChild(c)}}},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},e.prototype.moveTo=function(e,t){if(this.el){var n=this._styleCoord;if(JR(n,this._zr,this._container,e,t),n[0]!=null&&n[1]!=null){var r=this.el.style;z(GR(n[0],n[1]),function(e){r[e[0]]=e[1]})}}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){var e=this,t=this.el.style;this._enableDisplayTransition?(t.visibility=`hidden`,t.opacity=`0`):t.display=`none`,J.transform3dSupported&&(t.willChange=``),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},e.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(De(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;ug(e&&e.painter&&e.painter.getViewportRoot(),this._container);var t=this.el;if(t){t.onmouseenter=t.onmousemove=t.onmouseleave=null;var n=t.parentNode;n&&n.removeChild(t)}this.el=this._container=null},e}(),XR=function(){function e(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),$R(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return e.prototype.update=function(e){var t=e.get(`alwaysShowContent`);t&&this._moveIfResized(),this._alwaysShowContent=t},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(e,t,n,r,i){var a=this;W(e)&&xc(``),this.el&&this._zr.remove(this.el);var o=n.getModel(`textStyle`);this.el=new ds({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:o.get(`textShadowColor`),fill:n.get([`textStyle`,`color`]),padding:Uv(n,`richText`),verticalAlign:`top`,align:`left`},z:n.get(`z`)}),z([`backgroundColor`,`borderRadius`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],function(e){a.el.style[e]=n.get(e)}),z([`textShadowBlur`,`textShadowOffsetX`,`textShadowOffsetY`],function(e){a.el.style[e]=o.get(e)||0}),this._zr.add(this.el);var s=this;this.el.on(`mouseover`,function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0}),this.el.on(`mouseout`,function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1})},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),n=QR(e.style);return[t.width+n.left+n.right,t.height+n.top+n.bottom]},e.prototype.moveTo=function(e,t){var n=this.el;if(n){var r=this._styleCoord;$R(r,this._zr,e,t),e=r[0],t=r[1];var i=n.style,a=ZR(i.borderWidth||0),o=QR(i);n.x=e+a+o.left,n.y=t+a+o.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(De(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function ZR(e){return Math.max(0,e)}function QR(e){var t=ZR(e.shadowBlur||0),n=ZR(e.shadowOffsetX||0),r=ZR(e.shadowOffsetY||0);return{left:ZR(t-n),right:ZR(t+n),top:ZR(t-r),bottom:ZR(t+r)}}function $R(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var ez=new os({shape:{x:-1,y:-1,width:2,height:2}}),tz=function(e){T(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(e,t){if(!J.node&&t.getDom()){var n=e.getComponent(`tooltip`),r=this._renderMode=nl(n.get(`renderMode`));this._tooltipContent=r===`richText`?new XR(t):new YR(t,{appendTo:n.get(`appendToBody`,!0)?`body`:n.get(`appendTo`,!0)})}},t.prototype.render=function(e,t,n){if(!J.node&&n.getDom()){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=n;var r=this._tooltipContent;r.update(e),r.setEnterable(e.get(`enterable`)),this._initGlobalListener(),this._keepShow(),this._renderMode!==`richText`&&e.get(`transitionDuration`)?Hw(this,`_updatePosition`,50,`fixRate`):Uw(this,`_updatePosition`)}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel.get(`triggerOn`);bI(`itemTooltip`,this._api,De(function(t,n,r){e!==`none`&&(e.indexOf(t)>=0?this._tryShow(n,r):t===`leave`&&this._hide(r))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,r=e.get(`triggerOn`);if(e.get(`trigger`)!==`axis`&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&r!==`none`&&r!==`click`){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&i.manuallyShowTip(e,t,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,t,n,r){if(r.from!==this.uid&&!J.node&&n.getDom()){var i=rz(r,n);this._ticket=``;var a=r.dataByCoordSys,o=cz(r,t,n);if(o){var s=o.el.getBoundingRect().clone();s.applyTransform(o.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:o.el,position:r.position,positionDefault:`bottom`},i)}else if(r.tooltip&&r.x!=null&&r.y!=null){var c=ez;c.x=r.x,c.y=r.y,c.update(),Z(c).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:c},i)}else if(a)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:a,tooltipOption:r.tooltipOption},i);else if(r.seriesIndex!=null){if(this._manuallyAxisShowTip(e,t,n,r))return;var l=OI(r,t),u=l.point[0],d=l.point[1];u!=null&&d!=null&&this._tryShow({offsetX:u,offsetY:d,target:l.el,position:r.position,positionDefault:`bottom`},i)}else r.x!=null&&r.y!=null&&(n.dispatchAction({type:`updateAxisPointer`,x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},t.prototype.manuallyHideTip=function(e,t,n,r){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get(`hideDelay`)),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,r.from!==this.uid&&this._hide(rz(r,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,r){var i=r.seriesIndex,a=r.dataIndex,o=t.getComponent(`axisPointer`).coordSysAxesInfo;if(i!=null&&a!=null&&o!=null){var s=t.getSeriesByIndex(i);if(s&&nz([s.getData().getItemModel(a),s,(s.coordinateSystem||{}).model],this._tooltipModel).get(`trigger`)===`axis`)return n.dispatchAction({type:`updateAxisPointer`,seriesIndex:i,dataIndex:a,position:r.position}),!0}},t.prototype._tryShow=function(e,t){var n=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,e);else if(n){if(Z(n).ssrType===`legend`)return;this._lastDataByCoordSys=null,this._cbParamsList=null;var i,a;Ek(n,function(e){if(e.tooltipDisabled)return i=a=null,!0;i||a||(Z(e).dataIndex==null?Z(e).tooltipConfig!=null&&(a=e):i=e)},!0),i?this._showSeriesItemTooltip(e,i,t):a?this._showComponentItemTooltip(e,a,t):this._hide(t)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get(`showDelay`);t=De(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,r=this._tooltipModel,i=[t.offsetX,t.offsetY],a=nz([t.tooltipOption],r),o=this._renderMode,s=[],c=kv(`section`,{blocks:[],noHeader:!0}),l=[],u=new Wv;z(e,function(e){z(e.dataByAxis,function(e){var t=n.getComponent(e.axisDim+`Axis`,e.axisIndex),i=e.value,a=t.axis,d=a.scale.parse(i);if(t&&i!=null){var f=oI(i,a,n,e.seriesDataIndices,e.valueLabelOpt),p=kv(`section`,{header:f,noHeader:!Ue(f),sortBlocks:!0,blocks:[]});c.blocks.push(p),z(e.seriesDataIndices,function(i){var a=n.getSeriesByIndex(i.seriesIndex),c=i.dataIndexInside,m=a.getDataParams(c);if(!(m.dataIndex<0)){m.axisDim=e.axisDim,m.axisIndex=e.axisIndex,m.axisType=e.axisType,m.axisId=e.axisId,m.axisValue=cx(t.axis,{value:d}),m.axisValueLabel=f,m.marker=u.makeTooltipMarker(`item`,O_(m.color),o);var h=nv(a.formatTooltip(c,!0,null)),g=h.frag;if(g){var _=nz([a],r).get(`valueFormatter`);p.blocks.push(_?I({valueFormatter:_},g):g)}h.text&&l.push(h.text),s.push(m)}})}})}),c.blocks.reverse(),l.reverse();var d=t.position,f=Fv(c,u,o,a.get(`order`),n.get(`useUTC`),a.get(`textStyle`));f&&l.unshift(f);var p=o===`richText`?`
|
|
33
|
+
|
|
34
|
+
`:`<br/>`,m=l.join(p);this._showOrMove(a,function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(a,d,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(a,m,s,Math.random()+``,i[0],i[1],d,null,u)})},t.prototype._showSeriesItemTooltip=function(e,t,n){var r=this._ecModel,i=Z(t),a=i.seriesIndex,o=r.getSeriesByIndex(a),s=i.dataModel||o,c=i.dataIndex,l=i.dataType,u=s.getData(l),d=this._renderMode,f=e.positionDefault,p=nz([u.getItemModel(c),s,o&&(o.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),m=p.get(`trigger`);if(m==null||m===`item`){var h=s.getDataParams(c,l),g=new Wv;h.marker=g.makeTooltipMarker(`item`,O_(h.color),d);var _=nv(s.formatTooltip(c,!1,l)),v=p.get(`order`),y=p.get(`valueFormatter`),b=_.frag,x=b?Fv(y?I({valueFormatter:y},b):b,g,d,v,r.get(`useUTC`),p.get(`textStyle`)):_.text,S=`item_`+s.name+`_`+c;this._showOrMove(p,function(){this._showTooltipContent(p,x,h,S,e.offsetX,e.offsetY,e.position,e.target,g)}),n({type:`showTip`,dataIndexInside:c,dataIndex:u.getRawIndex(c),seriesIndex:a,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var r=this._renderMode===`html`,i=Z(t),a=i.tooltipConfig.option||{},o=a.encodeHTMLContent;if(U(a)){var s=a;a={content:s,formatter:s},o=!0}o&&r&&a.content&&(a=P(a),a.content=_g(a.content));var c=[a],l=this._ecModel.getComponent(i.componentMainType,i.componentIndex);l&&c.push(l),c.push({formatter:a.content});var u=e.positionDefault,d=nz(c,this._tooltipModel,u?{position:u}:null),f=d.get(`content`),p=Math.random()+``,m=new Wv;this._showOrMove(d,function(){var n=P(d.get(`formatterParams`)||{});this._showTooltipContent(d,f,n,p,e.offsetX,e.offsetY,e.position,t,m)}),n({type:`showTip`,from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,r,i,a,o,s,c){if(this._ticket=``,e.get(`showContent`)&&e.get(`show`)){var l=this._tooltipContent;l.setEnterable(e.get(`enterable`));var u=e.get(`formatter`);o=o||e.get(`position`);var d=t,f=this._getNearestPoint([i,a],n,e.get(`trigger`),e.get(`borderColor`),e.get(`defaultBorderColor`,!0)).color;if(u){if(U(u)){var p=e.ecModel.get(`useUTC`),m=V(n)?n[0]:n,h=m&&m.axisType&&m.axisType.indexOf(`time`)>=0;d=u,h&&(d=$g(m.axisValue,d,p)),d=w_(d,n,!0)}else if(H(u)){var g=De(function(t,r){t===this._ticket&&(l.setContent(r,c,e,f,o),this._updatePosition(e,o,i,a,l,n,s))},this);this._ticket=r,d=u(n,r,g)}else d=u}l.setContent(d,c,e,f,o),l.show(e,f),this._updatePosition(e,o,i,a,l,n,s)}},t.prototype._getNearestPoint=function(e,t,n,r,i){if(n===`axis`||V(t))return{color:r||i};if(!V(t))return{color:r||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,r,i,a,o){var s=this._api.getWidth(),c=this._api.getHeight();t=t||e.get(`position`);var l=i.getSize(),u=e.get(`align`),d=e.get(`verticalAlign`),f=o&&o.getBoundingRect().clone();if(o&&f.applyTransform(o.transform),H(t)&&(t=t([n,r],a,i.el,f,{viewSize:[s,c],contentSize:l.slice()})),V(t))n=Bs(t[0],s),r=Bs(t[1],c);else if(W(t)){var p=t;p.width=l[0],p.height=l[1];var m=R_(p,{width:s,height:c});n=m.x,r=m.y,u=null,d=null}else if(U(t)&&o){var h=oz(t,f,l,e.get(`borderWidth`));n=h[0],r=h[1]}else{var h=iz(n,r,i,s,c,u?null:20,d?null:20);n=h[0],r=h[1]}if(u&&(n-=sz(u)?l[0]/2:u===`right`?l[0]:0),d&&(r-=sz(d)?l[1]/2:d===`bottom`?l[1]:0),NR(e)){var h=az(n,r,i,s,c);n=h[0],r=h[1]}i.moveTo(n,r)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===e.length;return i&&z(n,function(n,a){var o=n.dataByAxis||[],s=(e[a]||{}).dataByAxis||[];i=i&&o.length===s.length,i&&z(o,function(e,n){var a=s[n]||{},o=e.seriesDataIndices||[],c=a.seriesDataIndices||[];i=i&&e.value===a.value&&e.axisType===a.axisType&&e.axisId===a.axisId&&o.length===c.length,i&&z(o,function(e,t){var n=c[t];i=i&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex}),r&&z(e.seriesDataIndices,function(e){var n=e.seriesIndex,a=t[n],o=r[n];a&&o&&o.data!==a.data&&(i=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=t,!!i},t.prototype._hide=function(e){this._lastDataByCoordSys=null,this._cbParamsList=null,e({type:`hideTip`,from:this.uid})},t.prototype.dispose=function(e,t){!J.node&&t.getDom()&&(Uw(this,`_updatePosition`),this._tooltipContent.dispose(),EI(`itemTooltip`,t),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},t.type=`tooltip`,t}(HO);function nz(e,t,n){var r=t.ecModel,i;n?(i=new Wp(n,r,r),i=new Wp(t.option,i,r)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof Wp&&(o=o.get(`tooltip`,!0)),U(o)&&(o={formatter:o}),o&&(i=new Wp(o,i,r)))}return i}function rz(e,t){return e.dispatchAction||De(t.dispatchAction,t)}function iz(e,t,n,r,i,a,o){var s=n.getSize(),c=s[0],l=s[1];return a!=null&&(e+c+a+2>r?e-=c+a:e+=a),o!=null&&(t+l+o>i?t-=l+o:t+=o),[e,t]}function az(e,t,n,r,i){var a=n.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,r)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function oz(e,t,n,r){var i=n[0],a=n[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,c=0,l=t.width,u=t.height;switch(e){case`inside`:s=t.x+l/2-i/2,c=t.y+u/2-a/2;break;case`top`:s=t.x+l/2-i/2,c=t.y-a-o;break;case`bottom`:s=t.x+l/2-i/2,c=t.y+u+o;break;case`left`:s=t.x-i-o,c=t.y+u/2-a/2;break;case`right`:s=t.x+l+o,c=t.y+u/2-a/2}return[s,c]}function sz(e){return e===`center`||e===`middle`}function cz(e,t,n){var r=Yc(e).queryOptionMap,i=r.keys()[0];if(i&&i!==`series`){var a=Qc(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a){var o=n.getViewOfComponentModel(a),s;if(o.group.traverse(function(t){var n=Z(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0}),s)return{componentMainType:i,componentIndex:a.componentIndex,el:s}}}}function lz(e){xM(VI),e.registerComponentModel(MR),e.registerComponentView(tz),e.registerAction({type:`showTip`,event:`showTip`,update:`tooltip:manuallyShowTip`},et),e.registerAction({type:`hideTip`,event:`hideTip`,update:`tooltip:manuallyHideTip`},et)}var uz=function(e){T(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:`box`,ignoreSize:!0},n}return t.type=`title`,t.defaultOption={z:6,show:!0,text:``,target:`blank`,subtext:``,subtarget:`blank`,left:`center`,top:Q.size.m,backgroundColor:Q.color.transparent,borderColor:Q.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:`bold`,color:Q.color.primary},subtextStyle:{fontSize:12,color:Q.color.quaternary}},t}(q_),dz=function(e){T(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get(`show`)){var r=this.group,i=e.getModel(`textStyle`),a=e.getModel(`subtextStyle`),o=e.get(`textAlign`),s=G(e.get(`textBaseline`),e.get(`textVerticalAlign`)),c=new ds({style:xp(i,{text:e.get(`text`),fill:i.getTextColor()},{disableBox:!0}),z2:10}),l=c.getBoundingRect(),u=e.get(`subtext`),d=new ds({style:xp(a,{text:u,fill:a.getTextColor(),y:l.height+e.get(`itemGap`),verticalAlign:`top`},{disableBox:!0}),z2:10}),f=e.get(`link`),p=e.get(`sublink`),m=e.get(`triggerEvent`,!0);c.silent=!f&&!m,d.silent=!p&&!m,f&&c.on(`click`,function(){k_(f,`_`+e.get(`target`))}),p&&d.on(`click`,function(){k_(p,`_`+e.get(`subtarget`))}),Z(c).eventData=Z(d).eventData=m?{componentType:`title`,componentIndex:e.componentIndex}:null,r.add(c),u&&r.add(d);var h=r.getBoundingRect(),g=e.getBoxLayoutParams();g.width=h.width,g.height=h.height;var _=R_(g,B_(e,n).refContainer,e.get(`padding`));o||(o=e.get(`left`)||e.get(`right`),o===`middle`&&(o=`center`),o===`right`?_.x+=_.width:o===`center`&&(_.x+=_.width/2)),s||(s=e.get(`top`)||e.get(`bottom`),s===`center`&&(s=`middle`),s===`bottom`?_.y+=_.height:s===`middle`&&(_.y+=_.height/2),s=s||`top`),r.x=_.x,r.y=_.y,r.markRedraw();var v={align:o,verticalAlign:s};c.setStyle(v),d.setStyle(v),h=r.getBoundingRect();var y=_.margin,b=e.getItemStyle([`color`,`opacity`]);b.fill=e.get(`backgroundColor`);var x=new os({shape:{x:h.x-y[3],y:h.y-y[0],width:h.width+y[1]+y[3],height:h.height+y[0]+y[2],r:e.get(`borderRadius`)},style:b,subPixelOptimize:!0,silent:!0});r.add(x)}},t.type=`title`,t}(HO);function fz(e){e.registerComponentModel(uz),e.registerComponentView(dz)}var pz=function(e,t){if(t===`all`)return{type:`all`,title:e.getLocaleModel().get([`legend`,`selector`,`all`])};if(t===`inverse`)return{type:`inverse`,title:e.getLocaleModel().get([`legend`,`selector`,`inverse`])}},mz=function(e){T(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:`box`,ignoreSize:!0},n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},t.prototype._updateSelector=function(e){var t=e.selector,n=this.ecModel;t===!0&&(t=e.selector=[`all`,`inverse`]),V(t)&&z(t,function(e,r){U(e)&&(e={type:e}),t[r]=F(e,pz(n,e.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get(`selectedMode`)===`single`){for(var t=!1,n=0;n<e.length;n++){var r=e[n].get(`name`);if(this.isSelected(r)){this.select(r),t=!0;break}}!t&&this.select(e[0].get(`name`))}},t.prototype._updateData=function(e){var t=[],n=[];e.eachRawSeries(function(r){var i=r.name;n.push(i);var a;if(r.legendVisualProvider){var o=r.legendVisualProvider.getAllNames();e.isSeriesFiltered(r)||(n=n.concat(o)),o.length?t=t.concat(o):a=!0}else a=!0;a&&Bc(r)&&t.push(r.name)}),this._availableNames=n;var r=this.get(`data`)||t,i=K(),a=B(r,function(e){return(U(e)||Ae(e))&&(e={name:e}),i.get(e.name)?null:(i.set(e.name,!0),new Wp(e,this,this.ecModel))},this);this._data=Ce(a,function(e){return!!e})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var t=this.option.selected;if(this.get(`selectedMode`)===`single`){var n=this._data;z(n,function(e){t[e.get(`name`)]=!1})}t[e]=!0},t.prototype.unSelect=function(e){this.get(`selectedMode`)!==`single`&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var t=this.option.selected;t.hasOwnProperty(e)||(t[e]=!0),this[t[e]?`unSelect`:`select`](e)},t.prototype.allSelect=function(){var e=this._data,t=this.option.selected;z(e,function(e){t[e.get(`name`,!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,t=this.option.selected;z(e,function(e){var n=e.get(`name`,!0);t.hasOwnProperty(n)||(t[n]=!0),t[n]=!t[n]})},t.prototype.isSelected=function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&R(this._availableNames,e)>=0},t.prototype.getOrient=function(){return this.get(`orient`)===`vertical`?{index:1,name:`vertical`}:{index:0,name:`horizontal`}},t.type=`legend.plain`,t.dependencies=[`series`],t.defaultOption={z:4,show:!0,orient:`horizontal`,left:`center`,bottom:Q.size.m,align:`auto`,backgroundColor:Q.color.transparent,borderColor:Q.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:`inherit`,symbolKeepAspect:!0,inactiveColor:Q.color.disabled,inactiveBorderColor:Q.color.disabled,inactiveBorderWidth:`auto`,itemStyle:{color:`inherit`,opacity:`inherit`,borderColor:`inherit`,borderWidth:`auto`,borderCap:`inherit`,borderJoin:`inherit`,borderDashOffset:`inherit`,borderMiterLimit:`inherit`},lineStyle:{width:`auto`,color:`inherit`,inactiveColor:Q.color.disabled,inactiveWidth:2,opacity:`inherit`,type:`inherit`,cap:`inherit`,join:`inherit`,dashOffset:`inherit`,miterLimit:`inherit`},textStyle:{color:Q.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:`sans-serif`,color:Q.color.tertiary,borderWidth:1,borderColor:Q.color.border},emphasis:{selectorLabel:{show:!0,color:Q.color.quaternary}},selectorPosition:`auto`,selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t}(q_),hz=Oe,gz=z,_z=ud,vz=function(e){T(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return t.prototype.init=function(){this.group.add(this._contentGroup=new _z),this.group.add(this._selectorGroup=new _z),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get(`show`,!0)){var i=e.get(`align`),a=e.get(`orient`);(!i||i===`auto`)&&(i=e.get(`left`)===`right`&&a===`vertical`?`right`:`left`);var o=e.get(`selector`,!0),s=e.get(`selectorPosition`,!0);o&&(!s||s===`auto`)&&(s=a===`horizontal`?`end`:`start`),this.renderInner(i,e,t,n,o,a,s);var c=B_(e,n).refContainer,l=e.getBoxLayoutParams(),u=e.get(`padding`),d=R_(l,c,u),f=this.layoutInner(e,i,d,r,o,s),p=R_(L({width:f.width,height:f.height},l),c,u);this.group.x=p.x-f.x,this.group.y=p.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=NL(f,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,r,i,a,o){var s=this.getContentGroup(),c=K(),l=t.get(`selectedMode`),u=t.get(`triggerEvent`),d=[];n.eachRawSeries(function(e){!e.get(`legendHoverLink`)&&d.push(e.id)}),gz(t.getData(),function(i,a){var o=this,f=i.get(`name`);if(!this.newlineDisabled&&(f===``||f===`
|
|
35
|
+
`)){var p=new _z;p.newline=!0,s.add(p);return}var m=n.getSeriesByName(f)[0];if(!c.get(f)){if(m){var h=m.getData(),g=h.getVisual(`legendLineStyle`)||{},_=h.getVisual(`legendIcon`),v=h.getVisual(`style`),y=this._createItem(m,f,a,i,t,e,g,v,_,l,r);y.on(`click`,hz(xz,f,null,r,d)).on(`mouseover`,hz(Sz,m.name,null,r,d)).on(`mouseout`,hz(Cz,m.name,null,r,d)),n.ssr&&y.eachChild(function(e){var t=Z(e);t.seriesIndex=m.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&y.eachChild(function(e){o.packEventData(e,t,m,a,f)}),c.set(f,!0)}else n.eachRawSeries(function(o){var s=this;if(!c.get(f)&&o.legendVisualProvider){var p=o.legendVisualProvider;if(!p.containName(f))return;var m=p.indexOfName(f),h=p.getItemVisual(m,`style`),g=p.getItemVisual(m,`legendIcon`),_=xi(h.fill);_&&_[3]===0&&(_[3]=.2,h=I(I({},h),{fill:Mi(_,`rgba`)}));var v=this._createItem(o,f,a,i,t,e,{},h,g,l,r);v.on(`click`,hz(xz,null,f,r,d)).on(`mouseover`,hz(Sz,null,f,r,d)).on(`mouseout`,hz(Cz,null,f,r,d)),n.ssr&&v.eachChild(function(e){var t=Z(e);t.seriesIndex=o.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&v.eachChild(function(e){s.packEventData(e,t,o,a,f)}),c.set(f,!0)}},this)}},this),i&&this._createSelector(i,t,r,a,o)},t.prototype.packEventData=function(e,t,n,r,i){var a={componentType:`legend`,componentIndex:t.componentIndex,dataIndex:r,value:i,seriesIndex:n.seriesIndex};Z(e).eventData=a},t.prototype._createSelector=function(e,t,n,r,i){var a=this.getSelectorGroup();gz(e,function(e){var r=e.type,i=new ds({style:{x:0,y:0,align:`center`,verticalAlign:`middle`},onclick:function(){n.dispatchAction({type:r===`all`?`legendAllSelect`:`legendInverseSelect`,legendId:t.id})}});a.add(i),yp(i,{normal:t.getModel(`selectorLabel`),emphasis:t.getModel([`emphasis`,`selectorLabel`])},{defaultText:e.title}),Ou(i)})},t.prototype._createItem=function(e,t,n,r,i,a,o,s,c,l,u){var d=e.visualDrawType,f=i.get(`itemWidth`),p=i.get(`itemHeight`),m=i.isSelected(t),h=r.get(`symbolRotate`),g=r.get(`symbolKeepAspect`),_=r.get(`icon`);c=_||c||`roundRect`;var v=yz(c,r,o,s,d,m,u),y=new _z,b=r.getModel(`textStyle`);if(H(e.getLegendIcon)&&(!_||_===`inherit`))y.add(e.getLegendIcon({itemWidth:f,itemHeight:p,icon:c,iconRotate:h,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}));else{var x=_===`inherit`&&e.getData().getVisual(`symbol`)?h===`inherit`?e.getData().getVisual(`symbolRotate`):h:0;y.add(bz({itemWidth:f,itemHeight:p,icon:c,iconRotate:x,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}))}var S=a===`left`?f+5:-5,C=a,w=i.get(`formatter`),T=t;U(w)&&w?T=w.replace(`{name}`,t==null?``:t):H(w)&&(T=w(t));var E=m?b.getTextColor():r.get(`inactiveColor`);y.add(new ds({style:xp(b,{text:T,x:S,y:p/2,fill:E,align:C,verticalAlign:`middle`},{inheritColor:E})}));var D=new os({shape:y.getBoundingRect(),style:{fill:`transparent`}}),O=r.getModel(`tooltip`);return O.get(`show`)&&tp({el:D,componentModel:i,itemName:t,itemTooltipOption:O.option}),y.add(D),y.eachChild(function(e){e.silent=!0}),D.silent=!l,this.getContentGroup().add(y),Ou(y),y.__legendDataIndex=n,y},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getContentGroup(),s=this.getSelectorGroup();P_(e.get(`orient`),o,e.get(`itemGap`),n.width,n.height);var c=o.getBoundingRect(),l=[-c.x,-c.y];if(s.markRedraw(),o.markRedraw(),i){P_(`horizontal`,s,e.get(`selectorItemGap`,!0));var u=s.getBoundingRect(),d=[-u.x,-u.y],f=e.get(`selectorButtonGap`,!0),p=e.getOrient().index,m=p===0?`width`:`height`,h=p===0?`height`:`width`,g=p===0?`y`:`x`;a===`end`?d[p]+=c[m]+f:l[p]+=u[m]+f,d[1-p]+=c[h]/2-u[h]/2,s.x=d[0],s.y=d[1],o.x=l[0],o.y=l[1];var _={x:0,y:0};return _[m]=c[m]+f+u[m],_[h]=Math.max(c[h],u[h]),_[g]=Math.min(0,u[g]+d[1-p]),_}return o.x=l[0],o.y=l[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type=`legend.plain`,t}(HO);function yz(e,t,n,r,i,a,o){function s(e,t){e.lineWidth===`auto`&&(e.lineWidth=t.lineWidth>0?2:0),gz(e,function(n,r){e[r]===`inherit`&&(e[r]=t[r])})}var c=t.getModel(`itemStyle`),l=c.getItemStyle(),u=e.lastIndexOf(`empty`,0)===0?`fill`:`stroke`,d=c.getShallow(`decal`);l.decal=!d||d===`inherit`?r.decal:SA(d,o),l.fill===`inherit`&&(l.fill=r[i]),l.stroke===`inherit`&&(l.stroke=r[u]),l.opacity===`inherit`&&(l.opacity=(i===`fill`?r:n).opacity),s(l,r);var f=t.getModel(`lineStyle`),p=f.getLineStyle();if(s(p,n),l.fill===`auto`&&(l.fill=r.fill),l.stroke===`auto`&&(l.stroke=r.fill),p.stroke===`auto`&&(p.stroke=r.fill),!a){var m=t.get(`inactiveBorderWidth`),h=l[u];l.lineWidth=m===`auto`?r.lineWidth>0&&h?2:0:l.lineWidth,l.fill=t.get(`inactiveColor`),l.stroke=t.get(`inactiveBorderColor`),p.stroke=f.get(`inactiveColor`),p.lineWidth=f.get(`inactiveWidth`)}return{itemStyle:l,lineStyle:p}}function bz(e){var t=e.icon||`roundRect`,n=dy(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf(`empty`)>-1&&(n.style.stroke=n.style.fill,n.style.fill=Q.color.neutral00,n.style.lineWidth=2),n}function xz(e,t,n,r){Cz(e,t,n,r),n.dispatchAction({type:`legendToggleSelect`,name:e==null?t:e}),Sz(e,t,n,r)}function Sz(e,t,n,r){n.usingTHL()||n.dispatchAction({type:`highlight`,seriesName:e,name:t,excludeSeriesId:r})}function Cz(e,t,n,r){n.usingTHL()||n.dispatchAction({type:`downplay`,seriesName:e,name:t,excludeSeriesId:r})}function wz(e,t,n){var r=e===`allSelect`||e===`inverseSelect`,i={},a=[];n.eachComponent({mainType:`legend`,query:t},function(n){r?n[e]():n[e](t.name),Tz(n,i),a.push(n.componentIndex)});var o={};return n.eachComponent(`legend`,function(e){z(i,function(t,n){e[t?`select`:`unSelect`](n)}),Tz(e,o)}),r?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function Tz(e,t){var n=t||{};return z(e.getData(),function(t){var r=t.get(`name`);if(r!==`
|
|
36
|
+
`&&r!==``){var i=e.isSelected(r);n[r]=q(n,r)?n[r]&&i:i}}),n}function Ez(e){e.registerAction(`legendToggleSelect`,`legendselectchanged`,Oe(wz,`toggleSelected`)),e.registerAction(`legendAllSelect`,`legendselectall`,Oe(wz,`allSelect`)),e.registerAction(`legendInverseSelect`,`legendinverseselect`,Oe(wz,`inverseSelect`)),e.registerAction(`legendSelect`,`legendselected`,Oe(wz,`select`)),e.registerAction(`legendUnSelect`,`legendunselected`,Oe(wz,`unSelect`))}var Dz=xl(Oz);function Oz(e){var t=e.findComponents({mainType:`legend`});t&&t.length&&e.filterSeries(function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0})}function kz(e){e.registerComponentModel(mz),e.registerComponentView(vz),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,Dz),e.registerSubTypeDefaulter(`legend`,function(){return`plain`}),Ez(e)}var Az=function(e){T(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(t,n,r){var i=W_(t);e.prototype.init.call(this,t,n,r),jz(this,t,i)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),jz(this,this.option,t)},t.type=`legend.scroll`,t.defaultOption=rg(mz.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:`end`,pageFormatter:`{current}/{total}`,pageIcons:{horizontal:[`M0,0L12,-10L12,10z`,`M0,0L-12,-10L-12,10z`],vertical:[`M0,0L20,0L10,-20z`,`M0,0L20,0L10,20z`]},pageIconColor:Q.color.accent50,pageIconInactiveColor:Q.color.accent10,pageIconSize:15,pageTextStyle:{color:Q.color.tertiary},animationDurationUpdate:800}),t}(mz);function jz(e,t,n){var r=e.getOrient(),i=[1,1];i[r.index]=0,U_(t,n,{type:`box`,ignoreSize:!!i})}var Mz=ud,Nz=[`width`,`height`],Pz=[`x`,`y`],Fz=function(e){T(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new Mz),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Mz)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(t,n,r,i,a,o,s){var c=this;e.prototype.renderInner.call(this,t,n,r,i,a,o,s);var l=this._controllerGroup,u=n.get(`pageIconSize`,!0),d=V(u)?u:[u,u];p(`pagePrev`,0);var f=n.getModel(`pageTextStyle`);l.add(new ds({name:`pageText`,style:{text:`xx/xx`,fill:f.getTextColor(),font:f.getFont(),verticalAlign:`middle`,align:`center`},silent:!0})),p(`pageNext`,1);function p(e,t){var r=e+`DataIndex`,a=qf(n.get(`pageIcons`,!0)[n.getOrient().name][t],{onclick:De(c._pageGo,c,r,n,i)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});a.name=e,l.add(a)}},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getSelectorGroup(),s=e.getOrient().index,c=Nz[s],l=Pz[s],u=Nz[1-s],d=Pz[1-s];i&&P_(`horizontal`,o,e.get(`selectorItemGap`,!0));var f=e.get(`selectorButtonGap`,!0),p=o.getBoundingRect(),m=[-p.x,-p.y],h=P(n);i&&(h[c]=n[c]-p[c]-f);var g=this._layoutContentAndController(e,r,h,s,c,u,d,l);if(i){if(a===`end`)m[s]+=g[c]+f;else{var _=p[c]+f;m[s]-=_,g[l]-=_}g[c]+=p[c]+f,m[1-s]+=g[d]+g[u]/2-p[u]/2,g[u]=Math.max(g[u],p[u]),g[d]=Math.min(g[d],p[d]+m[1-s]),o.x=m[0],o.y=m[1],o.markRedraw()}return g},t.prototype._layoutContentAndController=function(e,t,n,r,i,a,o,s){var c=this.getContentGroup(),l=this._containerGroup,u=this._controllerGroup;P_(e.get(`orient`),c,e.get(`itemGap`),r?n.width:null,r?null:n.height),P_(`horizontal`,u,e.get(`pageButtonItemGap`,!0));var d=c.getBoundingRect(),f=u.getBoundingRect(),p=this._showController=d[i]>n[i],m=[-d.x,-d.y];t||(m[r]=c[s]);var h=[0,0],g=[-f.x,-f.y],_=G(e.get(`pageButtonGap`,!0),e.get(`itemGap`,!0));p&&(e.get(`pageButtonPosition`,!0)===`end`?g[r]+=n[i]-f[i]:h[r]+=f[i]+_),g[1-r]+=d[a]/2-f[a]/2,c.setPosition(m),l.setPosition(h),u.setPosition(g);var v={x:0,y:0};if(v[i]=p?n[i]:d[i],v[a]=Math.max(d[a],f[a]),v[o]=Math.min(0,f[o]+g[1-r]),l.__rectSize=n[i],p){var y={x:0,y:0};y[i]=Math.max(n[i]-f[i]-_,0),y[a]=v[a],l.setClipPath(new os({shape:y})),l.__rectSize=y[i]}else u.eachChild(function(e){e.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(e);return b.pageIndex!=null&&mf(c,{x:b.contentPosition[0],y:b.contentPosition[1]},p?e:null),this._updatePageInfoView(e,b),v},t.prototype._pageGo=function(e,t,n){var r=this._getPageInfo(t)[e];r!=null&&n.dispatchAction({type:`legendScroll`,scrollDataIndex:r,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;z([`pagePrev`,`pageNext`],function(r){var i=t[r+`DataIndex`]!=null,a=n.childOfName(r);a&&(a.setStyle(`fill`,i?e.get(`pageIconColor`,!0):e.get(`pageIconInactiveColor`,!0)),a.cursor=i?`pointer`:`default`)});var r=n.childOfName(`pageText`),i=e.get(`pageFormatter`),a=t.pageIndex,o=a==null?0:a+1,s=t.pageCount;r&&i&&r.setStyle(`text`,U(i)?i.replace(`{current}`,o==null?``:o+``).replace(`{total}`,s==null?``:s+``):i({current:o,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get(`scrollDataIndex`,!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=e.getOrient().index,a=Nz[i],o=Pz[i],s=this._findTargetItemIndex(t),c=n.children(),l=c[s],u=c.length,d=+!!u,f={contentPosition:[n.x,n.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!l)return f;var p=v(l);f.contentPosition[i]=-p.s;for(var m=s+1,h=p,g=p,_=null;m<=u;++m)_=v(c[m]),(!_&&g.e>h.s+r||_&&!y(_,h.s))&&(h=g.i>h.i?g:_,h&&(f.pageNextDataIndex==null&&(f.pageNextDataIndex=h.i),++f.pageCount)),g=_;for(var m=s-1,h=p,g=p,_=null;m>=-1;--m)_=v(c[m]),(!_||!y(g,_.s))&&h.i<g.i&&(g=h,f.pagePrevDataIndex==null&&(f.pagePrevDataIndex=h.i),++f.pageCount,++f.pageIndex),h=_;return f;function v(e){if(e){var t=e.getBoundingRect(),n=t[o]+e[o];return{s:n,e:n+t[a],i:e.__legendDataIndex}}}function y(e,t){return e.e>=t&&e.s<=t+r}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var t,n=this.getContentGroup(),r;return n.eachChild(function(n,i){var a=n.__legendDataIndex;r==null&&a!=null&&(r=i),a===e&&(t=i)}),t==null?r:t},t.type=`legend.scroll`,t}(vz);function Iz(e){e.registerAction(`legendScroll`,`legendscroll`,function(e,t){var n=e.scrollDataIndex;n!=null&&t.eachComponent({mainType:`legend`,subType:`scroll`,query:e},function(e){e.setScrollDataIndex(n)})})}function Lz(e){xM(kz),e.registerComponentModel(Az),e.registerComponentView(Fz),Iz(e)}function Rz(e){xM(kz),xM(Lz)}var zz={value:`eq`,"<":`lt`,"<=":`lte`,">":`gt`,">=":`gte`,"=":`eq`,"!=":`ne`,"<>":`ne`},Bz=function(){function e(e){(this._condVal=U(e)?new RegExp(e):Ie(e)?e:null)==null&&xc(``)}return e.prototype.evaluate=function(e){var t=typeof e;return U(t)?this._condVal.test(e):Ae(t)?this._condVal.test(e+``):!1},e}(),Vz=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),Hz=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},e}(),Uz=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},e}(),Wz=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),Gz=function(){function e(){}return e.prototype.evaluate=function(){for(var e=!!this.valueParser,t=this.getValue,n=t(this.valueGetterParam),r=e?this.valueParser(n):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(e?r:n))return!1;return!0},e}();function Kz(e,t){if(e===!0||e===!1){var n=new Vz;return n.value=e,n}return Xz(e)||xc(``),e.and?qz(`and`,e,t):e.or?qz(`or`,e,t):e.not?Jz(e,t):Yz(e,t)}function qz(e,t,n){var r=t[e],i=``;V(r)||xc(i),r.length||xc(i);var a=e===`and`?new Hz:new Uz;return a.children=B(r,function(e){return Kz(e,n)}),a.children.length||xc(i),a}function Jz(e,t){var n=e.not,r=``;Xz(n)||xc(r);var i=new Wz;return i.child=Kz(n,t),i.child||xc(r),i}function Yz(e,t){for(var n=``,r=t.prepareGetValue(e),i=[],a=Te(e),o=e.parser,s=o?Vm(o):null,c=0;c<a.length;c++){var l=a[c];if(!(l===`parser`||t.valueGetterAttrMap.get(l))){var u=q(zz,l)?zz[l]:l,d=e[l],f=s?s(d):d,p=Km(u,f)||u===`reg`&&new Bz(f);p||xc(n),i.push(p)}}i.length||xc(n);var m=new Gz;return m.valueGetterParam=r,m.valueParser=s,m.getValue=t.getValue,m.subCondList=i,m}function Xz(e){return W(e)&&!xe(e)}var Zz=function(){function e(e,t){this._cond=Kz(e,t)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();function Qz(e,t){return new Zz(e,t)}var $z={type:`echarts:filter`,transform:function(e){for(var t=e.upstream,n,r=Qz(e.config,{valueGetterAttrMap:K({dimension:!0}),prepareGetValue:function(e){var n=``,r=e.dimension;q(e,`dimension`)||xc(n);var i=t.getDimensionInfo(r);return i||xc(n),{dimIdx:i.index}},getValue:function(e){return t.retrieveValueFromItem(n,e.dimIdx)}}),i=[],a=0,o=t.count();a<o;a++)n=t.getRawDataItem(a),r.evaluate()&&i.push(n);return{data:i}}},eB={type:`echarts:sort`,transform:function(e){var t=e.upstream,n=e.config,r=``,i=Tc(n);i.length||xc(r);var a=[];z(i,function(e){var n=e.dimension,i=e.order,o=e.parser,s=e.incomparable;n==null&&xc(r),i!==`asc`&&i!==`desc`&&xc(r),s&&s!==`min`&&s!==`max`&&xc(``),i!==`asc`&&i!==`desc`&&xc(``);var c=t.getDimensionInfo(n);c||xc(r);var l=o?Vm(o):null;o&&!l&&xc(r),a.push({dimIdx:c.index,parser:l,comparator:new Wm(i,s)})});var o=t.sourceFormat;o!==`arrayRows`&&o!==`objectRows`&&xc(r);for(var s=[],c=0,l=t.count();c<l;c++)s.push(t.getRawDataItem(c));return s.sort(function(e,n){for(var r=0;r<a.length;r++){var i=a[r],o=t.retrieveValueFromItem(e,i.dimIdx),s=t.retrieveValueFromItem(n,i.dimIdx);i.parser&&(o=i.parser(o),s=i.parser(s));var c=i.comparator.evaluate(o,s);if(c!==0)return c}return 0}),{data:s}}};function tB(e){e.registerTransform($z),e.registerTransform(eB)}var nB=function(e){T(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`dataset`,t}return t.prototype.init=function(t,n,r){e.prototype.init.call(this,t,n,r),this._sourceManager=new _v(this),vv(this)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),vv(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type=`dataset`,t.defaultOption={seriesLayoutBy:Al},t}(q_),rB=function(e){T(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`dataset`,t}return t.type=`dataset`,t}(HO);function iB(e){e.registerComponentModel(nB),e.registerComponentView(rB)}var aB=e({createDimensions:()=>Dh,createList:()=>oB,createScale:()=>cB,createSymbol:()=>dy,createTextStyle:()=>uB,dataStack:()=>sB,enableHoverEmphasis:()=>Ou,getECData:()=>Z,getLayoutRect:()=>R_,mixinAxisModelCommonMethods:()=>lB});function oB(e){return Xh(null,e)}var sB={isDimensionStacked:Kh,enableDataStack:Wh,getStackedDimension:qh};function cB(e,t){var n=t;t instanceof Wp||(n=new Wp(t));var r=nx(n),i=rx(n,r,!1);return e[1]<e[0]&&(e=e.slice().reverse()),zM(i,n,null,null,e),i}function lB(e){be(e,SM)}function uB(e,t){return t=t||{},xp(e,null,null,t.state!==`normal`)}var dB=e({MAX_SAFE_INTEGER:()=>ec,asc:()=>Ks,getPercentWithPrecision:()=>Zs,getPixelPrecision:()=>Ys,getPrecision:()=>qs,getPrecisionSafe:()=>Js,isNumeric:()=>dc,isRadianAroundZero:()=>nc,linearMap:()=>zs,nice:()=>sc,numericToNumber:()=>uc,parseDate:()=>ic,parsePercent:()=>Bs,quantile:()=>cc,quantity:()=>ac,quantityExponent:()=>oc,reformIntervals:()=>lc,remRadian:()=>tc,round:()=>Gs}),fB=e({format:()=>$g,parse:()=>ic,roundTime:()=>n_}),pB=e({Arc:()=>Jd,BezierCurve:()=>Kd,BoundingRect:()=>X,Circle:()=>fd,CompoundPath:()=>Yd,Ellipse:()=>md,Group:()=>ud,Image:()=>Qo,IncrementalDisplayable:()=>uf,Line:()=>Hd,LinearGradient:()=>Zd,Polygon:()=>Ld,Polyline:()=>zd,RadialGradient:()=>Qd,Rect:()=>os,Ring:()=>Nd,Sector:()=>jd,Text:()=>ds,clipPointsByRect:()=>Gf,clipRectByRect:()=>Kf,createIcon:()=>qf,extendPath:()=>Of,extendShape:()=>Ef,getShapeClass:()=>Af,getTransform:()=>zf,initProps:()=>hf,makeImage:()=>Mf,makePath:()=>jf,mergePath:()=>Pf,registerShape:()=>kf,resizePath:()=>Ff,updateProps:()=>mf}),mB=e({addCommas:()=>v_,capitalFirst:()=>D_,encodeHTML:()=>_g,formatTime:()=>E_,formatTpl:()=>w_,getTextRect:()=>__,getTooltipMarker:()=>T_,normalizeCssArray:()=>b_,toCamelCase:()=>y_,truncateText:()=>Qn}),hB=e({bind:()=>De,clone:()=>P,curry:()=>Oe,defaults:()=>L,each:()=>z,extend:()=>I,filter:()=>Ce,indexOf:()=>R,inherits:()=>ye,isArray:()=>V,isFunction:()=>H,isObject:()=>W,isString:()=>U,map:()=>B,merge:()=>F,reduce:()=>Se});function gB(e){var t=q_.extend(e);return q_.registerClass(t),t}function _B(e){var t=HO.extend(e);return HO.registerClass(t),t}function vB(e){var t=Xv.extend(e);return Xv.registerClass(t),t}function yB(e){var t=Wy.extend(e);return Wy.registerClass(t),t}function bB(e){if(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].slice());return t}}function xB(e,t){var n=e.label,r=t&&t.getTextGuideLine();return{dataIndex:e.dataIndex,dataType:e.dataType,seriesIndex:e.seriesModel.seriesIndex,text:e.label.style.text,rect:e.hostRect,labelRect:e.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:bB(r&&r.shape.points)}}var SB=[`align`,`verticalAlign`,`width`,`height`,`fontSize`],CB=new Dr,wB=Kc(),TB=Kc();function EB(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];t[i]!=null&&(e[i]=t[i])}}var DB=[`x`,`y`,`rotation`],OB=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(e,t,n,r,i){var a=r.style,o=r.__hostTarget.textConfig||{},s=r.getComputedTransform(),c=r.getBoundingRect().plain();X.applyTransform(c,c,s),s?CB.setLocalTransform(s):(CB.x=CB.y=CB.rotation=CB.originX=CB.originY=0,CB.scaleX=CB.scaleY=1),CB.rotation=Eo(CB.rotation);var l=r.__hostTarget,u;if(l){u=l.getBoundingRect().plain();var d=l.getComputedTransform();X.applyTransform(u,u,d)}var f=u&&l.getTextGuideLine();this._labelList.push({label:r,labelLine:f,seriesModel:n,dataIndex:e,dataType:t,layoutOptionOrCb:i,layoutOption:null,rect:c,hostRect:u,priority:u?u.width*u.height:0,defaultAttr:{ignore:r.ignore,labelGuideIgnore:f&&f.ignore,x:CB.x,y:CB.y,scaleX:CB.scaleX,scaleY:CB.scaleY,rotation:CB.rotation,style:{x:a.x,y:a.y,align:a.align,verticalAlign:a.verticalAlign,width:a.width,height:a.height,fontSize:a.fontSize},cursor:r.cursor,attachedPos:o.position,attachedRot:o.rotation}})},e.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var n=e.__model,r=n.get(`labelLayout`);(H(r)||Te(r).length)&&e.group.traverse(function(e){if(e.ignore)return!0;var i=e.getTextContent(),a=Z(e);i&&!i.disableLabelLayout&&t._addLabel(a.dataIndex,a.dataType,n,i,r)})},e.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),n=e.getHeight();function r(e,t){return function(){KT(e,t)}}for(var i=0;i<this._labelList.length;i++){var a=this._labelList[i],o=a.label,s=o.__hostTarget,c=a.defaultAttr,l=void 0;l=H(a.layoutOptionOrCb)?a.layoutOptionOrCb(xB(a,s)):a.layoutOptionOrCb,l=l||{},a.layoutOption=l;var u=Math.PI/180;s&&s.setTextConfig({local:!1,position:l.x!=null||l.y!=null?null:c.attachedPos,rotation:l.rotate==null?c.attachedRot:l.rotate*u,offset:[l.dx||0,l.dy||0]});var d=!1;if(l.x==null?(o.x=c.x,o.setStyle(`x`,c.style.x)):(o.x=Bs(l.x,t),o.setStyle(`x`,0),d=!0),l.y==null?(o.y=c.y,o.setStyle(`y`,c.style.y)):(o.y=Bs(l.y,n),o.setStyle(`y`,0),d=!0),l.labelLinePoints){var f=s.getTextGuideLine();f&&(f.setShape({points:l.labelLinePoints}),d=!1)}var p=wB(o);p.needsUpdateLabelLine=d,o.rotation=l.rotate==null?c.rotation:l.rotate*u,o.scaleX=c.scaleX,o.scaleY=c.scaleY;for(var m=0;m<SB.length;m++){var h=SB[m];o.setStyle(h,l[h]==null?c.style[h]:l[h])}if(l.draggable){if(o.draggable=!0,o.cursor=`move`,s){var g=a.seriesModel;a.dataIndex!=null&&(g=a.seriesModel.getData(a.dataType).getItemModel(a.dataIndex)),o.on(`drag`,r(s,g.getModel(`labelLine`)))}}else o.off(`drag`),o.cursor=c.cursor}},e.prototype.layout=function(e){var t=e.getWidth(),n=e.getHeight(),r=[];z(this._labelList,function(e){e.defaultAttr.ignore||r.push(tC({},e))});var i=Ce(r,function(e){return e.layoutOption.moveOverlap===`shiftX`}),a=Ce(r,function(e){return e.layoutOption.moveOverlap===`shiftY`});rC(i,0,0,t),rC(a,1,0,n);var o=Ce(r,function(e){return e.layoutOption.hideOverlap});iC(o),aC(o)},e.prototype.processLabelsOverall=function(){var e=this;z(this._chartViewList,function(t){var n=t.__model,r=t.ignoreLabelLineUpdate,i=n.isAnimationEnabled();t.group.traverse(function(t){if(t.ignore&&!t.forceLabelAnimation)return!0;var a=!r,o=t.getTextContent();!a&&o&&(a=wB(o).needsUpdateLabelLine),a&&e._updateLabelLine(t,n),i&&e._animateLabels(t,n)})})},e.prototype._updateLabelLine=function(e,t){var n=e.getTextContent(),r=Z(e),i=r.dataIndex;if(n&&i!=null){var a=t.getData(r.dataType),o=a.getItemModel(i),s={},c=a.getItemVisual(i,`style`);c&&(s.stroke=c[a.getVisual(`drawType`)]);var l=o.getModel(`labelLine`);$T(e,eE(o),s),KT(e,l)}},e.prototype._animateLabels=function(e,t){var n=e.getTextContent(),r=e.getTextGuideLine();if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!gf(e))){var i=wB(n),a=i.oldLayout,o=Z(e),s=o.dataIndex,c={x:n.x,y:n.y,rotation:n.rotation},l=t.getData(o.dataType);if(a){n.attr(a);var u=e.prevStates;u&&(R(u,`select`)>=0&&n.attr(i.oldLayoutSelect),R(u,`emphasis`)>=0&&n.attr(i.oldLayoutEmphasis)),mf(n,c,t,s)}else if(n.attr(c),!Ap(n).valueAnimation){var d=G(n.style.opacity,1);n.style.opacity=0,hf(n,{style:{opacity:d}},t,s)}if(i.oldLayout=c,n.states.select){var f=i.oldLayoutSelect={};EB(f,c,DB),EB(f,n.states.select,DB)}if(n.states.emphasis){var p=i.oldLayoutEmphasis={};EB(p,c,DB),EB(p,n.states.emphasis,DB)}Mp(n,s,l,t,t)}if(r&&!r.ignore&&!r.invisible){var i=TB(r),a=i.oldLayout,m={points:r.shape.points};a?(r.attr({shape:a}),mf(r,{shape:m},t)):(r.setShape(m),r.style.strokePercent=0,hf(r,{style:{strokePercent:1}},t)),i.oldLayout=m}},e}(),kB=Kc();function AB(e){e.registerUpdateLifecycle(`series:beforeupdate`,function(e,t,n){var r=kB(t).labelManager;r||(r=kB(t).labelManager=new OB),r.clearLabels()}),e.registerUpdateLifecycle(`series:layoutlabels`,function(e,t,n){var r=kB(t).labelManager;z(n.updatedSeries,function(e){r.addLabelsOfSeries(t.getViewOfSeriesModel(e))}),r.updateLayoutConfig(t),r.layout(t),r.processLabelsOverall()})}var jB=e({Axis:()=>BS,ChartView:()=>Wy,ComponentModel:()=>q_,ComponentView:()=>HO,List:()=>Eh,Model:()=>Wp,PRIORITY:()=>YA,SeriesModel:()=>Xv,color:()=>si,connect:()=>Kj,dataTool:()=>vM,dependencies:()=>jA,disConnect:()=>Jj,disconnect:()=>qj,dispose:()=>Yj,env:()=>J,extendChartView:()=>yB,extendComponentModel:()=>gB,extendComponentView:()=>_B,extendSeriesModel:()=>vB,format:()=>mB,getCoordinateSystemDimensions:()=>oM,getInstanceByDom:()=>Xj,getInstanceById:()=>Zj,getMap:()=>hM,graphic:()=>pB,helper:()=>aB,init:()=>Gj,innerDrawElementOnCanvas:()=>hA,matrix:()=>At,number:()=>dB,parseGeoJSON:()=>pP,parseGeoJson:()=>pP,registerAction:()=>iM,registerCoordinateSystem:()=>aM,registerCustomSeries:()=>sM,registerLayout:()=>cM,registerLoading:()=>fM,registerLocale:()=>Eg,registerMap:()=>mM,registerPostInit:()=>tM,registerPostUpdate:()=>nM,registerPreprocessor:()=>$j,registerProcessor:()=>eM,registerTheme:()=>Qj,registerTransform:()=>gM,registerUpdateLifecycle:()=>rM,registerVisual:()=>lM,setCanvasCreator:()=>pM,setPlatformAPI:()=>ee,throttle:()=>Vw,time:()=>fB,use:()=>xM,util:()=>hB,vector:()=>Bt,version:()=>AA,zrUtil:()=>te,zrender:()=>kD}),MB=xo.CMD;function NB(e,t){return Math.abs(e-t)<1e-5}function PB(e){var t=e.data,n=e.len(),r=[],i,a=0,o=0,s=0,c=0;function l(e,t){i&&i.length>2&&r.push(i),i=[e,t]}function u(e,t,n,r){NB(e,n)&&NB(t,r)||i.push(e,t,n,r,n,r)}function d(e,t,n,r,a,o){var s=Math.abs(t-e),c=Math.tan(s/4)*4/3,l=t<e?-1:1,u=Math.cos(e),d=Math.sin(e),f=Math.cos(t),p=Math.sin(t),m=u*a+n,h=d*o+r,g=f*a+n,_=p*o+r,v=a*c*l,y=o*c*l;i.push(m-v*d,h+y*u,g+v*p,_-y*f,g,_)}for(var f,p,m,h,g=0;g<n;){var _=t[g++],v=g===1;switch(v&&(a=t[g],o=t[g+1],s=a,c=o,(_===MB.L||_===MB.C||_===MB.Q)&&(i=[s,c])),_){case MB.M:a=s=t[g++],o=c=t[g++],l(s,c);break;case MB.L:f=t[g++],p=t[g++],u(a,o,f,p),a=f,o=p;break;case MB.C:i.push(t[g++],t[g++],t[g++],t[g++],a=t[g++],o=t[g++]);break;case MB.Q:f=t[g++],p=t[g++],m=t[g++],h=t[g++],i.push(a+2/3*(f-a),o+2/3*(p-o),m+2/3*(f-m),h+2/3*(p-h),m,h),a=m,o=h;break;case MB.A:var y=t[g++],b=t[g++],x=t[g++],S=t[g++],C=t[g++],w=t[g++]+C;g+=1;var T=!t[g++];f=Math.cos(C)*x+y,p=Math.sin(C)*S+b,v?(s=f,c=p,l(s,c)):u(a,o,f,p),a=Math.cos(w)*x+y,o=Math.sin(w)*S+b;for(var E=(T?-1:1)*Math.PI/2,D=C;T?D>w:D<w;D+=E){var O=T?Math.max(D+E,w):Math.min(D+E,w);d(D,O,y,b,x,S)}break;case MB.R:s=a=t[g++],c=o=t[g++],f=s+t[g++],p=c+t[g++],l(f,c),u(f,c,f,p),u(f,p,s,p),u(s,p,s,c),u(s,c,f,c);break;case MB.Z:i&&u(a,o,s,c),a=s,o=c}}return i&&i.length>2&&r.push(i),r}function FB(e,t,n,r,i,a,o,s,c,l){if(NB(e,n)&&NB(t,r)&&NB(i,o)&&NB(a,s)){c.push(o,s);return}var u=2/l,d=u*u,f=o-e,p=s-t,m=Math.sqrt(f*f+p*p);f/=m,p/=m;var h=n-e,g=r-t,_=i-o,v=a-s,y=h*h+g*g,b=_*_+v*v;if(y<d&&b<d){c.push(o,s);return}var x=f*h+p*g,S=-f*_-p*v,C=y-x*x,w=b-S*S;if(C<d&&x>=0&&w<d&&S>=0){c.push(o,s);return}var T=[],E=[];Jr(e,n,i,o,.5,T),Jr(t,r,a,s,.5,E),FB(T[0],E[0],T[1],E[1],T[2],E[2],T[3],E[3],c,l),FB(T[4],E[4],T[5],E[5],T[6],E[6],T[7],E[7],c,l)}function IB(e,t){var n=PB(e),r=[];t=t||1;for(var i=0;i<n.length;i++){var a=n[i],o=[],s=a[0],c=a[1];o.push(s,c);for(var l=2;l<a.length;){var u=a[l++],d=a[l++],f=a[l++],p=a[l++],m=a[l++],h=a[l++];FB(s,c,u,d,f,p,m,h,o,t),s=m,c=h}r.push(o)}return r}function LB(e,t,n){var r=e[t],i=e[1-t],a=Math.abs(r/i),o=Math.ceil(Math.sqrt(a*n)),s=Math.floor(n/o);s===0&&(s=1,o=n);for(var c=[],l=0;l<o;l++)c.push(s);var u=n-o*s;if(u>0)for(var l=0;l<u;l++)c[l%o]+=1;return c}function RB(e,t,n){for(var r=e.r0,i=e.r,a=e.startAngle,o=e.endAngle,s=Math.abs(o-a),c=s*i,l=i-r,u=c>Math.abs(l),d=LB([c,l],+!u,t),f=(u?s:l)/d.length,p=0;p<d.length;p++)for(var m=(u?l:s)/d[p],h=0;h<d[p];h++){var g={};u?(g.startAngle=a+f*p,g.endAngle=a+f*(p+1),g.r0=r+m*h,g.r=r+m*(h+1)):(g.startAngle=a+m*h,g.endAngle=a+m*(h+1),g.r0=r+f*p,g.r=r+f*(p+1)),g.clockwise=e.clockwise,g.cx=e.cx,g.cy=e.cy,n.push(g)}}function zB(e,t,n){for(var r=e.width,i=e.height,a=r>i,o=LB([r,i],+!a,t),s=a?`width`:`height`,c=a?`height`:`width`,l=a?`x`:`y`,u=a?`y`:`x`,d=e[s]/o.length,f=0;f<o.length;f++)for(var p=e[c]/o[f],m=0;m<o[f];m++){var h={};h[l]=f*d,h[u]=m*p,h[s]=d,h[c]=p,h.x+=e.x,h.y+=e.y,n.push(h)}}function BB(e,t,n,r){return e*r-n*t}function VB(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=BB(u,d,c,l);if(Math.abs(f)<1e-6)return null;var p=BB(e-i,t-a,u,d)/f;return p<0||p>1?null:new Y(p*c+e,p*l+t)}function HB(e,t,n){var r=new Y;Y.sub(r,n,t),r.normalize();var i=new Y;return Y.sub(i,e,t),i.dot(r)}function UB(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function WB(e,t,n){for(var r=e.length,i=[],a=0;a<r;a++){var o=e[a],s=e[(a+1)%r],c=VB(o[0],o[1],s[0],s[1],t.x,t.y,n.x,n.y);c&&i.push({projPt:HB(c,t,n),pt:c,idx:a})}if(i.length<2)return[{points:e},{points:e}];i.sort(function(e,t){return e.projPt-t.projPt});var l=i[0],u=i[i.length-1];if(u.idx<l.idx){var d=l;l=u,u=d}for(var f=[l.pt.x,l.pt.y],p=[u.pt.x,u.pt.y],m=[f],h=[p],a=l.idx+1;a<=u.idx;a++)UB(m,e[a].slice());UB(m,p),UB(m,f);for(var a=u.idx+1;a<=l.idx+r;a++)UB(h,e[a%r].slice());return UB(h,f),UB(h,p),[{points:m},{points:h}]}function GB(e){var t=e.points,n=[],r=[];Ya(t,n,r);var i=new X(n[0],n[1],r[0]-n[0],r[1]-n[1]),a=i.width,o=i.height,s=i.x,c=i.y,l=new Y,u=new Y;return a>o?(l.x=u.x=s+a/2,l.y=c,u.y=c+o):(l.y=u.y=c+o/2,l.x=s,u.x=s+a),WB(t,l,u)}function KB(e,t,n,r){if(n===1)r.push(t);else{var i=Math.floor(n/2),a=e(t);KB(e,a[0],i,r),KB(e,a[1],n-i,r)}return r}function qB(e,t){for(var n=[],r=0;r<t;r++)n.push(ld(e));return n}function JB(e,t){t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel}function YB(e){for(var t=[],n=0;n<e.length;)t.push([e[n++],e[n++]]);return t}function XB(e,t){var n=[],r=e.shape,i;switch(e.type){case`rect`:zB(r,t,n),i=os;break;case`sector`:RB(r,t,n),i=jd;break;case`circle`:RB({r0:0,r:r.r,startAngle:0,endAngle:Math.PI*2,cx:r.cx,cy:r.cy},t,n),i=jd;break;default:var a=e.getComputedTransform(),o=a?Math.sqrt(Math.max(a[0]*a[0]+a[1]*a[1],a[2]*a[2]+a[3]*a[3])):1,s=B(IB(e.getUpdatedPathProxy(),o),function(e){return YB(e)}),c=s.length;if(c===0)KB(GB,{points:s[0]},t,n);else if(c===t)for(var l=0;l<c;l++)n.push({points:s[l]});else{var u=0,d=B(s,function(e){var t=[],n=[];Ya(e,t,n);var r=(n[1]-t[1])*(n[0]-t[0]);return u+=r,{poly:e,area:r}});d.sort(function(e,t){return t.area-e.area});for(var f=t,l=0;l<c;l++){var p=d[l];if(f<=0)break;var m=l===c-1?f:Math.ceil(p.area/u*t);m<0||(KB(GB,{points:p.poly},m,n),f-=m)}}i=Ld}if(!i)return qB(e,t);for(var h=[],l=0;l<n.length;l++){var g=new i;g.setShape(n[l]),JB(e,g),h.push(g)}return h}function ZB(e,t){var n=e.length,r=t.length;if(n===r)return[e,t];for(var i=[],a=[],o=n<r?e:t,s=Math.min(n,r),c=Math.abs(r-n)/6,l=(s-2)/6,u=Math.ceil(c/l)+1,d=[o[0],o[1]],f=c,p=2;p<s;){var m=o[p-2],h=o[p-1],g=o[p++],_=o[p++],v=o[p++],y=o[p++],b=o[p++],x=o[p++];if(f<=0){d.push(g,_,v,y,b,x);continue}for(var S=Math.min(f,u-1)+1,C=1;C<=S;C++){var w=C/S;Jr(m,g,v,b,w,i),Jr(h,_,y,x,w,a),m=i[3],h=a[3],d.push(i[1],a[1],i[2],a[2],m,h),g=i[5],_=a[5],v=i[6],y=a[6]}f-=S-1}return o===e?[d,t]:[e,d]}function QB(e,t){for(var n=e.length,r=e[n-2],i=e[n-1],a=[],o=0;o<t.length;)a[o++]=r,a[o++]=i;return a}function $B(e,t){for(var n,r,i,a=[],o=[],s=0;s<Math.max(e.length,t.length);s++){var c=e[s],l=t[s],u=void 0,d=void 0;c?l?(n=ZB(c,l),u=n[0],d=n[1],r=u,i=d):(d=QB(i||c,c),u=c):(u=QB(r||l,l),d=l),a.push(u),o.push(d)}return[a,o]}function eV(e){for(var t=0,n=0,r=0,i=e.length,a=0,o=i-2;a<i;o=a,a+=2){var s=e[o],c=e[o+1],l=e[a],u=e[a+1],d=s*u-l*c;t+=d,n+=(s+l)*d,r+=(c+u)*d}return t===0?[e[0]||0,e[1]||0]:[n/t/3,r/t/3,t]}function tV(e,t,n,r){for(var i=(e.length-2)/6,a=1/0,o=0,s=e.length,c=s-2,l=0;l<i;l++){for(var u=l*6,d=0,f=0;f<s;f+=2){var p=f===0?u:(u+f-2)%c+2,m=e[p]-n[0],h=e[p+1]-n[1],g=t[f]-r[0],_=t[f+1]-r[1],v=g-m,y=_-h;d+=v*v+y*y}d<a&&(a=d,o=l)}return o}function nV(e){for(var t=[],n=e.length,r=0;r<n;r+=2)t[r]=e[n-r-2],t[r+1]=e[n-r-1];return t}function rV(e,t,n,r){for(var i=[],a,o=0;o<e.length;o++){var s=e[o],c=t[o],l=eV(s),u=eV(c);a==null&&(a=l[2]<0!=u[2]<0);var d=[],f=[],p=0,m=1/0,h=[],g=s.length;a&&(s=nV(s));for(var _=tV(s,c,l,u)*6,v=g-2,y=0;y<v;y+=2){var b=(_+y)%v+2;d[y+2]=s[b]-l[0],d[y+3]=s[b+1]-l[1]}if(d[0]=s[_]-l[0],d[1]=s[_+1]-l[1],n>0)for(var x=r/n,S=-r/2;S<=r/2;S+=x){for(var C=Math.sin(S),w=Math.cos(S),T=0,y=0;y<s.length;y+=2){var E=d[y],D=d[y+1],O=c[y]-u[0],k=c[y+1]-u[1],A=O*w-k*C,j=O*C+k*w;h[y]=A,h[y+1]=j;var M=A-E,ee=j-D;T+=M*M+ee*ee}if(T<m){m=T,p=S;for(var te=0;te<h.length;te++)f[te]=h[te]}}else for(var ne=0;ne<g;ne+=2)f[ne]=c[ne]-u[0],f[ne+1]=c[ne+1]-u[1];i.push({from:d,to:f,fromCp:l,toCp:u,rotation:-p})}return i}function iV(e){return e.__isCombineMorphing}var aV=`__mOriginal_`;function oV(e,t,n){var r=aV+t,i=e[r]||e[t];e[r]||(e[r]=e[t]);var a=n.replace,o=n.after,s=n.before;e[t]=function(){var e=arguments,t;return s&&s.apply(this,e),t=a?a.apply(this,e):i.apply(this,e),o&&o.apply(this,e),t}}function sV(e,t){var n=aV+t;e[n]&&(e[t]=e[n],e[n]=null)}function cV(e,t){for(var n=0;n<e.length;n++)for(var r=e[n],i=0;i<r.length;){var a=r[i],o=r[i+1];r[i++]=t[0]*a+t[2]*o+t[4],r[i++]=t[1]*a+t[3]*o+t[5]}}function lV(e,t){var n=e.getUpdatedPathProxy(),r=t.getUpdatedPathProxy(),i=$B(PB(n),PB(r)),a=i[0],o=i[1],s=e.getComputedTransform(),c=t.getComputedTransform();function l(){this.transform=null}s&&cV(a,s),c&&cV(o,c),oV(t,`updateTransform`,{replace:l}),t.transform=null;var u=rV(a,o,10,Math.PI),d=[];oV(t,`buildPath`,{replace:function(e){for(var n=t.__morphT,r=1-n,i=[],a=0;a<u.length;a++){var o=u[a],s=o.from,c=o.to,l=o.rotation*n,f=o.fromCp,p=o.toCp,m=Math.sin(l),h=Math.cos(l);ln(i,f,p,n);for(var g=0;g<s.length;g+=2){var _=s[g],v=s[g+1],y=c[g],b=c[g+1],x=_*r+y*n,S=v*r+b*n;d[g]=x*h-S*m+i[0],d[g+1]=x*m+S*h+i[1]}var C=d[0],w=d[1];e.moveTo(C,w);for(var g=2;g<s.length;){var y=d[g++],b=d[g++],T=d[g++],E=d[g++],D=d[g++],O=d[g++];C===y&&w===b&&T===D&&E===O?e.lineTo(D,O):e.bezierCurveTo(y,b,T,E,D,O),C=D,w=O}}}})}function uV(e,t,n){if(!e||!t)return t;var r=n.done,i=n.during;lV(e,t),t.__morphT=0;function a(){sV(t,`buildPath`),sV(t,`updateTransform`),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},L({during:function(e){t.dirtyShape(),i&&i(e)},done:function(){a(),r&&r()}},n)),t}function dV(e,t,n,r,i,a){var o=16;e=i===n?0:Math.round(32767*(e-n)/(i-n)),t=a===r?0:Math.round(32767*(t-r)/(a-r));for(var s=0,c,l=(1<<o)/2;l>0;l/=2){var u=0,d=0;(e&l)>0&&(u=1),(t&l)>0&&(d=1),s+=l*l*(3*u^d),d===0&&(u===1&&(e=l-1-e,t=l-1-t),c=e,e=t,t=c)}return s}function fV(e){var t=1/0,n=1/0,r=-1/0,i=-1/0;return B(B(e,function(e){var a=e.getBoundingRect(),o=e.getComputedTransform(),s=a.x+a.width/2+(o?o[4]:0),c=a.y+a.height/2+(o?o[5]:0);return t=Math.min(s,t),n=Math.min(c,n),r=Math.max(s,r),i=Math.max(c,i),[s,c]}),function(a,o){return{cp:a,z:dV(a[0],a[1],t,n,r,i),path:e[o]}}).sort(function(e,t){return e.z-t.z}).map(function(e){return e.path})}function pV(e){return XB(e.path,e.count)}function mV(){return{fromIndividuals:[],toIndividuals:[],count:0}}function hV(e,t,n){var r=[];function i(e){for(var t=0;t<e.length;t++){var n=e[t];iV(n)?i(n.childrenRef()):n instanceof Ko&&r.push(n)}}i(e);var a=r.length;if(!a)return mV();var o=(n.dividePath||pV)({path:t,count:a});if(o.length!==a)return console.error(`Invalid morphing: unmatched splitted path`),mV();r=fV(r),o=fV(o);for(var s=n.done,c=n.during,l=n.individualDelay,u=new Dr,d=0;d<a;d++){var f=r[d],p=o[d];p.parent=t,p.copyTransform(u),l||lV(f,p)}t.__isCombineMorphing=!0,t.childrenRef=function(){return o};function m(e){for(var t=0;t<o.length;t++)o[t].addSelfToZr(e)}oV(t,`addSelfToZr`,{after:function(e){m(e)}}),oV(t,`removeSelfFromZr`,{after:function(e){for(var t=0;t<o.length;t++)o[t].removeSelfFromZr(e)}});function h(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,sV(t,`addSelfToZr`),sV(t,`removeSelfFromZr`)}var g=o.length;if(l)for(var _=g,v=function(){_--,_===0&&(h(),s&&s())},d=0;d<g;d++){var y=l?L({delay:(n.delay||0)+l(d,g,r[d],o[d]),done:v},n):n;uV(r[d],o[d],y)}else t.__morphT=0,t.animateTo({__morphT:1},L({during:function(e){for(var n=0;n<g;n++){var r=o[n];r.__morphT=t.__morphT,r.dirtyShape()}c&&c(e)},done:function(){h();for(var t=0;t<e.length;t++)sV(e[t],`updateTransform`);s&&s()}},n));return t.__zr&&m(t.__zr),{fromIndividuals:r,toIndividuals:o,count:g}}function gV(e,t,n){var r=t.length,i=[],a=n.dividePath||pV;function o(e){for(var t=0;t<e.length;t++){var n=e[t];iV(n)?o(n.childrenRef()):n instanceof Ko&&i.push(n)}}if(iV(e)){o(e.childrenRef());var s=i.length;if(s<r)for(var c=0,l=s;l<r;l++)i.push(ld(i[c++%s]));i.length=r}else{i=a({path:e,count:r});for(var u=e.getComputedTransform(),l=0;l<i.length;l++)i[l].setLocalTransform(u);if(i.length!==r)return console.error(`Invalid morphing: unmatched splitted path`),mV()}i=fV(i),t=fV(t);for(var d=n.individualDelay,l=0;l<r;l++){var f=d?L({delay:(n.delay||0)+d(l,r,i[l],t[l])},n):n;uV(i[l],t[l],f)}return{fromIndividuals:i,toIndividuals:t,count:t.length}}function _V(e){return V(e[0])}function vV(e,t){for(var n=[],r=e.length,i=0;i<r;i++)n.push({one:e[i],many:[]});for(var i=0;i<t.length;i++){var a=t[i].length,o=void 0;for(o=0;o<a;o++)n[o%r].many.push(t[i][o])}for(var s=0,i=r-1;i>=0;i--)if(!n[i].many.length){var c=n[s].many;if(c.length<=1){if(s)s=0;else return n}var a=c.length,l=Math.ceil(a/2);n[i].many=c.slice(l,a),n[s].many=c.slice(0,l),s++}return n}var yV={clone:function(e){for(var t=[],n=1-Math.pow(1-e.path.style.opacity,1/e.count),r=0;r<e.count;r++){var i=ld(e.path);i.setStyle(`opacity`,n),t.push(i)}return t},split:null};function bV(e,t,n,r,i,a){if(!e.length||!t.length)return;var o=ff(`update`,r,i);if(!(o&&o.duration>0))return;var s=r.getModel(`universalTransition`).get(`delay`),c=I({setToFinal:!0},o),l,u;_V(e)&&(l=e,u=t),_V(t)&&(l=t,u=e);function d(e,t,r,i,o){var l=e.many,u=e.one;if(l.length===1&&!o){var f=t?l[0]:u,p=t?u:l[0];if(iV(f))d({many:[f],one:p},!0,r,i,!0);else{var m=s?L({delay:s(r,i)},c):c;uV(f,p,m),a(f,p,f,p,m)}}else for(var h=L({dividePath:yV[n],individualDelay:s&&function(e,t,n,a){return s(e+r,i)}},c),g=t?hV(l,u,h):gV(u,l,h),_=g.fromIndividuals,v=g.toIndividuals,y=_.length,b=0;b<y;b++){var m=s?L({delay:s(b,y)},c):c;a(_[b],v[b],t?l[b]:e.one,t?e.one:l[b],m)}}for(var f=l?l===e:e.length>t.length,p=l?vV(u,l):vV(f?t:e,[f?e:t]),m=0,h=0;h<p.length;h++)m+=p[h].many.length;for(var g=0,h=0;h<p.length;h++)d(p[h],f,g,m),g+=p[h].many.length}function xV(e){if(!e)return[];if(V(e)){for(var t=[],n=0;n<e.length;n++)t.push(xV(e[n]));return t}var r=[];return e.traverse(function(e){e instanceof Ko&&!e.disableMorphing&&!e.invisible&&!e.ignore&&r.push(e)}),r}var SV=1e4,CV=0,wV=1,TV=2,EV=Kc();function DV(e,t){for(var n=e.dimensions,r=0;r<n.length;r++){var i=e.getDimensionInfo(n[r]);if(i&&i.otherDims[t]===0)return n[r]}}function OV(e,t,n){var r=e.getDimensionInfo(n),i=r&&r.ordinalMeta;if(r){var a=e.get(r.name,t);return i&&i.categories[a]||a+``}}function kV(e,t,n,r){var i=DV(e,r?`itemChildGroupId`:`itemGroupId`);if(i)return OV(e,t,i);var a=e.getRawDataItem(t),o=r?`childGroupId`:`groupId`;if(a&&a[o])return a[o]+``;if(!r)return n||e.getId(t)}function AV(e){var t=[];return z(e,function(e){var n=e.data,r=e.dataGroupId;if(!(n.count()>SV))for(var i=n.getIndices(),a=0;a<i.length;a++)t.push({data:n,groupId:kV(n,a,r,!1),childGroupId:kV(n,a,r,!0),divide:e.divide,dataIndex:a})}),t}function jV(e,t,n){e.traverse(function(e){e instanceof Ko&&hf(e,{style:{opacity:0}},t,{dataIndex:n,isFrom:!0})})}function MV(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function NV(e){e.stopAnimation(),e.isGroup&&e.traverse(function(e){e.stopAnimation()})}function PV(e,t,n){var r=ff(`update`,n,t);r&&e.traverse(function(e){if(e instanceof La){var t=xf(e);t&&e.animateFrom({style:t},r)}})}function FV(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++){var i=e[r],a=t[r];if(i.data.getId(i.dataIndex)!==a.data.getId(a.dataIndex))return!1}return!0}function IV(e,t,n){var r=AV(e),i=AV(t);function a(e,t,n,r,i){(n||e)&&t.animateFrom({style:n&&n!==e?I(I({},n.style),e.style):e.style},i)}var o=!1,s=CV,c=K(),l=K();z(r,function(e){e.groupId&&c.set(e.groupId,!0),e.childGroupId&&l.set(e.childGroupId,!0)});for(var u=0;u<i.length;u++){var d=i[u].groupId;if(l.get(d)){s=wV;break}var f=i[u].childGroupId;if(f&&c.get(f)){s=TV;break}}function p(e,t){return function(n){var r=n.data,i=n.dataIndex;return t?r.getId(i):e?s===wV?n.childGroupId:n.groupId:s===TV?n.childGroupId:n.groupId}}var m=FV(r,i),h={};if(!m)for(var u=0;u<i.length;u++){var g=i[u],_=g.data.getItemGraphicEl(g.dataIndex);_&&(h[_.id]=!0)}function v(e,t){var n=r[t],s=i[e],c=s.data.hostModel,l=n.data.getItemGraphicEl(n.dataIndex),u=s.data.getItemGraphicEl(s.dataIndex);if(l===u){u&&PV(u,s.dataIndex,c);return}l&&h[l.id]||u&&(NV(u),l?(NV(l),MV(l),o=!0,bV(xV(l),xV(u),s.divide,c,e,a)):jV(u,c,e))}new qp(r,i,p(!0,m),p(!1,m),null,`multiple`).update(v).updateManyToOne(function(e,t){var n=i[e],s=n.data,c=s.hostModel,l=s.getItemGraphicEl(n.dataIndex),u=Ce(B(t,function(e){return r[e].data.getItemGraphicEl(r[e].dataIndex)}),function(e){return e&&e!==l&&!h[e.id]});l&&(NV(l),u.length?(z(u,function(e){NV(e),MV(e)}),o=!0,bV(xV(u),xV(l),n.divide,c,e,a)):jV(l,c,n.dataIndex))}).updateOneToMany(function(e,t){var n=r[t],s=n.data.getItemGraphicEl(n.dataIndex);if(!(s&&h[s.id])){var c=Ce(B(e,function(e){return i[e].data.getItemGraphicEl(i[e].dataIndex)}),function(e){return e&&e!==s}),l=i[e[0]].data.hostModel;c.length&&(z(c,function(e){return NV(e)}),s?(NV(s),MV(s),o=!0,bV(xV(s),xV(c),n.divide,l,e[0],a)):z(c,function(t){return jV(t,l,e[0])}))}}).updateManyToMany(function(e,t){new qp(t,e,function(e){return r[e].data.getId(r[e].dataIndex)},function(e){return i[e].data.getId(i[e].dataIndex)}).update(function(n,r){v(e[n],t[r])}).execute()}).execute(),o&&z(t,function(e){var t=e.data.hostModel,r=t&&n.getViewOfSeriesModel(t),i=ff(`update`,t,0);r&&t.isAnimationEnabled()&&i&&i.duration>0&&r.group.traverse(function(e){e instanceof Ko&&!e.animators.length&&e.animateFrom({style:{opacity:0}},i)})})}function LV(e){return e.getModel(`universalTransition`).get(`seriesKey`)||e.id}function RV(e){return V(e)?e.sort().join(`,`):e}function zV(e){if(e.hostModel)return e.hostModel.getModel(`universalTransition`).get(`divideShape`)}function BV(e,t){var n=K(),r=K(),i=K();return z(e.oldSeries,function(t,n){var a=e.oldDataGroupIds[n],o=e.oldData[n],s=LV(t),c=RV(s);r.set(c,{dataGroupId:a,data:o}),V(s)&&z(s,function(e){i.set(e,{key:c,dataGroupId:a,data:o})})}),z(t.updatedSeries,function(e){if(e.isUniversalTransitionEnabled()&&e.isAnimationEnabled()){var t=e.get(`dataGroupId`),a=e.getData(),o=LV(e),s=RV(o),c=r.get(s);if(c)n.set(s,{oldSeries:[{dataGroupId:c.dataGroupId,divide:zV(c.data),data:c.data}],newSeries:[{dataGroupId:t,divide:zV(a),data:a}]});else if(V(o)){var l=[];z(o,function(e){var t=r.get(e);t.data&&l.push({dataGroupId:t.dataGroupId,divide:zV(t.data),data:t.data})}),l.length&&n.set(s,{oldSeries:l,newSeries:[{dataGroupId:t,data:a,divide:zV(a)}]})}else{var u=i.get(o);if(u){var d=n.get(u.key);d||(d={oldSeries:[{dataGroupId:u.dataGroupId,data:u.data,divide:zV(u.data)}],newSeries:[]},n.set(u.key,d)),d.newSeries.push({dataGroupId:t,data:a,divide:zV(a)})}}}}),n}function VV(e,t){for(var n=0;n<e.length;n++)if(t.seriesIndex!=null&&t.seriesIndex===e[n].seriesIndex||t.seriesId!=null&&t.seriesId===e[n].id)return n}function HV(e,t,n,r){var i=[],a=[];z(Tc(e.from),function(e){var n=VV(t.oldSeries,e);n>=0&&i.push({dataGroupId:t.oldDataGroupIds[n],data:t.oldData[n],divide:zV(t.oldData[n]),groupIdDim:e.dimension})}),z(Tc(e.to),function(e){var r=VV(n.updatedSeries,e);if(r>=0){var i=n.updatedSeries[r].getData();a.push({dataGroupId:t.oldDataGroupIds[r],data:i,divide:zV(i),groupIdDim:e.dimension})}}),i.length>0&&a.length>0&&IV(i,a,r)}function UV(e){e.registerUpdateLifecycle(`series:beforeupdate`,function(e,t,n){z(Tc(n.seriesTransition),function(e){z(Tc(e.to),function(e){for(var t=n.updatedSeries,r=0;r<t.length;r++)(e.seriesIndex!=null&&e.seriesIndex===t[r].seriesIndex||e.seriesId!=null&&e.seriesId===t[r].id)&&(t[r][Yv]=!0)})})}),e.registerUpdateLifecycle(`series:transition`,function(e,t,n){var r=EV(t);if(r.oldSeries&&n.updatedSeries&&n.optionChanged){var i=n.seriesTransition;if(i)z(Tc(i),function(e){HV(e,r,n,t)});else{var a=BV(r,n);z(a.keys(),function(e){var n=a.get(e);IV(n.oldSeries,n.newSeries,t)})}z(n.updatedSeries,function(e){e.__universalTransitionEnabled&&(e[Yv]=!1)})}for(var o=e.getSeries(),s=r.oldSeries=[],c=r.oldDataGroupIds=[],l=r.oldData=[],u=0;u<o.length;u++){var d=o[u].getData();d.count()<SV&&(s.push(o[u]),c.push(o[u].get(`dataGroupId`)),l.push(d))}})}function WV(){$M(GV)}function GV(e,t){z(e,function(e){if(!e.model.get([`axisLabel`,`inside`])){var n=KV(e);if(n){var r=e.isHorizontal()?`height`:`width`,i=e.model.get([`axisLabel`,`margin`]);t[r]-=n[r]+i,e.position===`top`?t.y+=n.height+i:e.position===`left`&&(t.x+=n.width+i)}}})}function KV(e){var t=e.model,n=e.scale;if(!t.get([`axisLabel`,`show`])||n.isBlank())return;var r,i,a=n.getExtent();n instanceof jb?i=n.count():(r=n.getTicks(),i=r.length);var o=e.getLabelModel(),s=sx(e),c,l=1;i>40&&(l=Math.ceil(i/40));for(var u=0;u<i;u+=l){var d=s(r?r[u]:{value:a[0]+u},u),f=p(o.getTextRect(d),o.get(`rotate`)||0);c?c.union(f):c=f}return c;function p(e,t){var n=t*Math.PI/180,r=e.width,i=e.height,a=r*Math.abs(Math.cos(n))+Math.abs(i*Math.sin(n)),o=r*Math.abs(Math.sin(n))+Math.abs(i*Math.cos(n));return new X(e.x,e.y,a,o)}}function qV(e,t,n){var r=M.createCanvas(),i=t.getWidth(),a=t.getHeight(),o=r.style;return o&&(o.position=`absolute`,o.left=`0`,o.top=`0`,o.width=i+`px`,o.height=a+`px`,r.setAttribute(`data-zr-dom-id`,e)),r.width=i*n,r.height=a*n,r}function JV(e){return!e.__cursors.get(0)}function YV(e){var t=e.__cursors.get(0);return{startIdx:t?t.startIdx:0,endIdx:t?t.endIdx:0}}var XV=function(e){T(t,e);function t(t,n,r){var i=e.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.zlevel=0,i.zlevel2=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__prevIdx={startIdx:0,endIdx:0};var a;r=r||ua,typeof t==`string`?a=qV(t,n,r):W(t)&&(a=t,t=a.id),i.id=t,i.dom=a;var o=a.style;return o&&($e(a),a.onselectstart=function(){return!1},o.padding=`0`,o.margin=`0`,o.borderWidth=`0`),i.painter=n,i.dpr=r,i}return t.prototype.afterBrush=function(){this.__prevIdx=YV(this)},t.prototype.initContext=function(){this.ctx=this.dom.getContext(`2d`),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=qV(`back-`+this.id,this.painter,e),this.ctxBack=this.domBack.getContext(`2d`),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,t,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i=[],a=this.maxRepaintRectCount,o=!1,s=new X(0,0,0,0);function c(e){if(e.isFinite()&&!e.isZero()){if(i.length===0){var t=new X(0,0,0,0);t.copy(e),i.push(t)}else{for(var n=!1,r=1/0,c=0,l=0;l<i.length;++l){var u=i[l];if(u.intersect(e)){var d=new X(0,0,0,0);d.copy(u),d.union(e),i[l]=d,n=!0;break}if(o){s.copy(e),s.union(u);var f=e.width*e.height,p=u.width*u.height,m=s.width*s.height-f-p;m<r&&(r=m,c=l)}}if(o&&(i[c].union(e),n=!0),!n){var t=new X(0,0,0,0);t.copy(e),i.push(t)}o||(o=i.length>=a)}}}for(var l=YV(this),u=l.startIdx;u<l.endIdx;++u){var d=e[u];if(d){var f=d.shouldBePainted(n,r,!0,!0),p=d.__isRendered&&(d.__dirty&1||!f)?d.getPrevPaintRect():null;p&&c(p);var m=f&&(d.__dirty&1||!d.__isRendered)?d.getPaintRect():null;m&&c(m)}}for(var h=this.__prevIdx,u=h.startIdx;u<h.endIdx;++u){var d=t[u],f=d&&d.shouldBePainted(n,r,!0,!0);if(d&&(!f||!d.__zr)&&d.__isRendered){var p=d.getPrevPaintRect();p&&c(p)}}var g;do{g=!1;for(var u=0;u<i.length;){if(i[u].isZero()){i.splice(u,1);continue}for(var _=u+1;_<i.length;)i[u].intersect(i[_])?(g=!0,i[u].union(i[_]),i.splice(_,1)):_++;u++}}while(g);return this._paintRects=i,i},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,t){var n=this.dpr,r=this.dom,i=r.style,a=this.domBack;i&&(i.width=e+`px`,i.height=t+`px`),r.width=e*n,r.height=t*n,a&&(a.width=e*n,a.height=t*n,n!==1&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,t,n){var r=this.dom,i=this.ctx,a=r.width,o=r.height;t=t||this.clearColor;var s=this.motionBlur&&!e,c=this.lastFrameAlpha,l=this.dpr,u=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation=`copy`,this.ctxBack.drawImage(r,0,0,a/l,o/l));var d=this.domBack;function f(e,n,r,a){if(i.clearRect(e,n,r,a),t&&t!==`transparent`){var o=void 0;Pe(t)?(o=(t.global||t.__width===r&&t.__height===a)&&t.__canvasGradient||zk(i,t,{x:0,y:0,width:r,height:a}),t.__canvasGradient=o,t.__width=r,t.__height=a):Fe(t)&&(t.scaleX=t.scaleX||l,t.scaleY=t.scaleY||l,o=Zk(i,t,{dirty:function(){u.setUnpainted(),u.painter.refresh()}})),i.save(),i.fillStyle=o||t,i.fillRect(e,n,r,a),i.restore()}s&&(i.save(),i.globalAlpha=c,i.drawImage(d,e,n,r,a),i.restore())}!n||s?f(0,0,a,o):n.length&&z(n,function(e){f(e.x*l,e.y*l,e.width*l,e.height*l)})},t}(ca),ZV=1e5,QV=314159,$V=void 0,eH=1,tH=2;function nH(e){return e?e.__builtin__?!0:typeof e.resize==`function`&&typeof e.refresh==`function`:!1}function rH(e,t){var n=document.createElement(`div`);return n.style.cssText=[`position:relative`,`width:`+e+`px`,`height:`+t+`px`,`padding:0`,`margin:0`,`border-width:0`].join(`;`)+`;`,n}function iH(e,t,n,r){var i=new XV(e,t,t.dpr);return i.zlevel=n,i.zlevel2=r,i.__builtin__=!0,aH(i),i}function aH(e){e.__cursorStack=[],e.__cursors=K()}function oH(e){return e.startIdx=e.drawIdx=e.endIdx=e.endIdxNew=0,e.used=!1,e.first=e.last=NaN,e.notClearIdx=-1,e}function sH(e,t){var n=e.__cursors,r=+t;return n.get(r)||(e.__cursorStack.push(r),n.set(r,oH({key:r})))}function cH(e,t){for(var n=e.__cursorStack,r=0;r<n.length;r++)t(e.__cursors.get(n[r]))}function lH(e,t){var n=e.layers;return n[t]||(n[t]=[,,,])}function uH(e,t,n){for(var r=e.layerStack,i=0;i<r.length;i++){var a=r[i].zl,o=r[i].zl2,s=e.layers[a][o];(!n||(!(n&dH)||s.__builtin__)&&(!(n&fH)||!s.__builtin__)&&(!(n&pH)||s!==e.hoverlayer))&&t(s,a,o,i)}}var dH=1,fH=2,pH=4,mH=dH|pH,hH=function(){function e(e,t,n,r){this.type=`canvas`,this._prevDisplayList=[],this._layerConfig={},this._needsManuallyCompositing=!1,this.type=`canvas`,this._i={layerStack:[],layers:[]};var i=!e.nodeName||e.nodeName.toUpperCase()===`CANVAS`;if(this._opts=n=I({},n||{}),this.dpr=n.devicePixelRatio||ua,this._singleCanvas=i,this.root=e,e.style&&($e(e),e.innerHTML=``),this.storage=t,this._prevDisplayList=[],i){var a=e,o=a.width,s=a.height;n.width!=null&&(o=n.width),n.height!=null&&(s=n.height),this.dpr=n.devicePixelRatio||1,a.width=o*this.dpr,a.height=s*this.dpr,this._width=o,this._height=s;var c=iH(a,this,QV,0);c.initContext(),this._insertLayer(c,QV,0,!0),this._domRoot=e}else{this._width=Hk(e,0,n),this._height=Hk(e,1,n);var l=this._domRoot=rH(this._width,this._height);e.appendChild(l)}}return e.prototype.getType=function(){return`canvas`},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.refresh=function(e){var t=e&&!W(e)?{paintAll:!!e}:e||{},n=G(t.refresh,!0),r=G(t.refreshHover,!1);if(r&&(this._hoverLayerDirty=tH),!n)return r&&this._paintHoverList(this.storage.getDisplayList(!1)),this;var i=this.storage.getDisplayList(!0);this._updateLayerStatus(i,t.paintAll),this._redrawId=Math.random();var a=this._prevDisplayList;this._paintList(i,a,this._redrawId);var o=this._backgroundColor;return uH(this._i,function(e,t,n,r){e.refresh&&e.refresh(r===0?o:null)},fH),this._opts.useDirtyRect&&(this._prevDisplayList=i.slice()),this},e.prototype._paintHoverList=function(e){var t=this._i.hoverlayer,n=this._hoverLayerDirty;if(this._hoverLayerDirty=$V,n!==$V&&(!t&&n===tH&&(t=this._i.hoverlayer=this._ensureLayer(ZV)),t)){t.clear();for(var r={inHover:!0,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},i,a=0,o=e.length;a<o;a++){var s=e[a];if(s.__inHover){i||(i=t.ctx,i.save());var c=s.__hoverStyle,l=void 0;c&&(l=s.style,s.style=c),gA(i,s,r),c&&(s.style=l)}}i&&(_A(i,r),i.restore())}},e.prototype.getHoverLayer=function(){return this._ensureLayer(ZV)},e.prototype.paintOne=function(e,t){hA(e,t)},e.prototype._paintList=function(e,t,n){if(this._redrawId===n){var r=this._doPaintList(e,t);if(this._needsManuallyCompositing&&this._compositeManually(),r)uH(this._i,function(e){e.afterBrush&&e.afterBrush()},mH),this._paintHoverList(e);else{var i=this;sD(function(){i._paintList(e,t,n)})}}},e.prototype._compositeManually=function(){var e=this._ensureLayer(QV).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),uH(this._i,function(r){r.virtual&&e.drawImage(r.dom,0,0,t,n)},dH)},e.prototype._doPaintList=function(e,t){var n=this,r=!0;return uH(this._i,function(i){var a=!1;if(cH(i,function(e){(e.drawIdx<e.endIdx||e.notClearIdx>=0)&&(a=!0)}),a||i.__dirty){var o=n._opts.useDirtyRect&&!JV(i)?i.createRepaintRects(e,t,n._width,n._height):null,s=n._i.layerStack[0],c=!0;if(i.__dirty){c=!1,i.__dirty=!1;var l=i.zlevel===s.zl&&i.zlevel2===s.zl2?n._backgroundColor:null;i.clear(!1,l,o)}cH(i,function(t){var a=n._paintPerCursor(i,t,e,o,c);r=r&&a})}},mH),J.wxa&&uH(this._i,function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()}),r},e.prototype._paintPerCursor=function(e,t,n,r,i){var a=e.ctx;if(r){if(!r.length)t.drawIdx=t.endIdx;else for(var o=this.dpr,s=0;s<r.length;++s){var c=r[s];a.save(),a.beginPath(),a.rect(c.x*o,c.y*o,c.width*o,c.height*o),a.clip(),this._paintPerCursorInRect(e,t,n,c,i),a.restore()}}else a.save(),this._paintPerCursorInRect(e,t,n,null,i),a.restore();return t.drawIdx>=t.endIdx},e.prototype._paintPerCursorInRect=function(e,t,n,r,i){for(var a={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:i}},o=e.ctx,s=JV(e),c=s&&M.getTime(),l=t.drawIdx,u=t.notClearIdx,d=u>=0?Math.min(u,l):l;d<t.endIdx;d++){var f=n[d];if(!(d<l&&!f.notClear)){if(f.__inHover&&(this._hoverLayerDirty=tH),r!=null){var p=f.getPaintRect();p&&p.intersect(r)&&(gA(o,f,a),f.setPrevPaintRect(p))}else gA(o,f,a);if(s&&M.getTime()-c>15){d++;break}}}_A(o,a),t.drawIdx=Math.max(d,l)},e.prototype.getLayer=function(e,t){return this._ensureLayer(e,0,t)},e.prototype._ensureLayer=function(e,t,n){t=t||0;var r=this._singleCanvas;r&&!this._needsManuallyCompositing&&(e=QV,t=0);var i=lH(this._i,e)[t];return i||(i=iH(`zr_`+e+`.`+t,this,e,t),this._layerConfig[e]&&F(i,this._layerConfig[e],!0),(n||r&&e!==QV)&&(i.virtual=!0),this._insertLayer(i,e,t,!1),i.initContext()),i},e.prototype.insertLayer=function(e,t){this._insertLayer(t,e,0,!1)},e.prototype._insertLayer=function(e,t,n,r){var i=this._i,a=i.layers,o=i.layerStack,s=this._domRoot,c=null;if(!(a[t]&&a[t][n])&&nH(e)){for(var l=o.length,u=0;u<l&&(o[u].zl<t||o[u].zl===t&&o[u].zl2<n);)u++;if(u>0&&(c=lH(i,o[u-1].zl)[o[u-1].zl2]),o.splice(u,0,{zl:t,zl2:n}),lH(i,t)[n]=e,!r&&!e.virtual){if(c){var d=c.dom;d.nextSibling?s.insertBefore(e.dom,d.nextSibling):s.appendChild(e.dom)}else s.firstChild?s.insertBefore(e.dom,s.firstChild):s.appendChild(e.dom)}e.painter||(e.painter=this)}},e.prototype.eachLayer=function(e,t){return uH(this._i,function(n,r){e.call(t,n,r)})},e.prototype.eachBuiltinLayer=function(e,t){return uH(this._i,function(n,r){e.call(t,n,r)},dH)},e.prototype.eachOtherLayer=function(e,t){return uH(this._i,function(n,r){e.call(t,n,r)},fH)},e.prototype.getLayers=function(){var e={};return uH(this._i,function(t,n,r){e[t.id]=t}),e},e.prototype._updateLayerStatus=function(e,t){var n=this;if(n._singleCanvas)for(var r=1;r<e.length;r++){var i=e[r];if(i.zlevel!==e[r-1].zlevel||i.incremental){n._needsManuallyCompositing=!0;break}}uH(n._i,function(e){e.__dirty=!1,cH(e,function(e){e.used=!1,e.endIdxNew=0,e.notClearIdx=-1})},mH);for(var a,o=null,s=null,c=!1,l=0,u=e.length;l<u;l++){var i=e[l],d=i.zlevel,f=i.incremental,p=void 0;if(a!==d&&(a=d,c=!1),f?(c=!0,p=1):p=c?2:0,(!o||d!==o.zlevel||p!==o.zlevel2)&&(o=n._ensureLayer(d,p),s=null,!o.__builtin__)){he(`ZLevel `+d+` has been used by unknown layer `+o.id);continue}if((!s||f!==s.key)&&(s=sH(o,f),!s.used)){if(s.used=!0,!t&&s.first===i.id){var m=l-s.startIdx;s.startIdx=l,s.drawIdx+=m,s.endIdx+=m}else o.__dirty=!0,s.first=i.id,s.startIdx=s.drawIdx=l,s.endIdx=l+1}s.endIdxNew=l+1,i.__dirty&1&&!i.__inHover&&((!f||!i.notClear&&l<s.drawIdx)&&(o.__dirty=!0),f&&i.notClear&&s.notClearIdx<0&&(s.notClearIdx=l))}uH(n._i,function(t){for(var r=t.__cursorStack,i=t.__cursors,a=r.length-1;a>=0;a--){var o=i.get(r[a]);if(!o.used)t.__dirty=!0,i.removeKey(r[a]),r.splice(a,1);else{var s=o.endIdxNew;(JV(t)?s<o.drawIdx:s!==o.endIdx||!s||e[s-1].id!==o.last)&&(t.__dirty=!0),o.endIdx=o.endIdxNew,o.last=s?e[s-1].id:NaN}}t.__dirty&&(cH(t,function(e){e.drawIdx=e.startIdx}),n._hoverLayerDirty===$V&&(n._hoverLayerDirty=eH))},mH)},e.prototype.clear=function(){return uH(this._i,function(e){e.clear(),aH(e)},dH),this},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,uH(this._i,function(e){e.setUnpainted()})},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?F(n[e],t,!0):n[e]=t,uH(this._i,function(e,t){F(e,n[t],!0)})}},e.prototype.delLayer=function(e){for(var t=this._i.layerStack,n=this._i.layers,r=t.length-1;r>=0;r--){var i=t[r];if(i.zl===e){var a=n[e][i.zl2];if(a.__builtin__)continue;if(t.splice(r,1),n[e][i.zl2]=void 0,!a.virtual){var o=a.dom.parentNode;o&&o.removeChild(a.dom)}}}},e.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display=`none`;var r=this._opts,i=this.root;e!=null&&(r.width=e),t!=null&&(r.height=t),e=Hk(i,0,r),t=Hk(i,1,r),n.style.display=``,(this._width!==e||t!==this._height)&&(n.style.width=e+`px`,n.style.height=t+`px`,uH(this._i,function(n){n.resize(e,t)}),this.refresh({paintAll:!0})),this._width=e,this._height=t}else{if(e==null||t==null)return;this._width=e,this._height=t,this._ensureLayer(QV).resize(e,t)}return this},e.prototype.clearLayer=function(e){z(this._i.layers[e],function(e){e&&!e.__builtin__&&e.clear()})},e.prototype.dispose=function(){this.root.innerHTML=``,this.root=this.storage=this._domRoot=this._i=null},e.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._i.layers[QV][0].dom;var t=new XV(`image`,this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var n=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var r=t.dom.width,i=t.dom.height;uH(this._i,function(e){e.__builtin__?n.drawImage(e.dom,0,0,r,i):e.renderToCanvas&&(n.save(),e.renderToCanvas(n),n.restore())})}else{for(var a={inHover:!1,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},o=this.storage.getDisplayList(!0),s=0,c=o.length;s<c;s++){var l=o[s];gA(n,l,a)}_A(n,a)}return t.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();function gH(e){e.registerPainter(`canvas`,hH)}xM([fz,vE,qN,lz,HI,iB,tB,ST,Vx,AB,WV,UV,gH,Rz,jR,oL]);var _H=jB;s();var vH=c({__name:`echarts-ui`,props:{height:{default:`300px`},width:{default:`100%`}},setup(e){return(t,n)=>(a(),u(`div`,l(t.$attrs,{style:{height:e.height,width:e.width}}),null,16))}});s(),f();function yH(e){let a=null,s={},c=n(!1),{isDark:l}=v(),{height:u,width:f}=C(),w=x(j,200),T=()=>{var t;let n=e==null?void 0:e.value;return n?n instanceof HTMLElement?n:(t=n.$el)==null?null:t:null};r(()=>c.value=!0),t(()=>c.value=!0),d(()=>c.value=!1),i(()=>c.value=!1);let E=e=>!e||e.offsetHeight===0||e.offsetWidth===0,D=m(()=>l.value?{backgroundColor:`transparent`}:{}),O=t=>{var n;let r=e==null||(n=e.value)==null?void 0:n.$el;if(r)return a=_H.init(r,t||l.value?`dark`:null),a},k=(t,n=!0)=>{if(!o(c))return Promise.resolve(null);s=t;let r=g(g({},t),D.value);return new Promise(t=>{var i;if(((i=e.value)==null?void 0:i.offsetHeight)===0){b(_(function*(){t(yield k(r))}),30);return}h(()=>{let e=T();if(E(e)){b(_(function*(){t(yield k(r))}),30);return}b(()=>{if(!a||(a==null?void 0:a.getDom())!==e){a==null||a.dispose();let e=O();if(!e)return;a=e}n&&(a==null||a.clear()),a==null||a.setOption(r),t(a)},30)})})},A=(e,t=!1,n=!1)=>new Promise(r=>{h(()=>{if(!a){k(e).then(r);return}let i=g(g({},e),D.value);a.setOption(i,{notMerge:t,lazyUpdate:n}),r(a)})});function j(){let e=T();E(e)||a==null||a.resize({animation:{duration:300,easing:`quadraticIn`}})}return p([f,u],()=>{w==null||w()}),S(e,w),p([l,c],()=>{a&&o(c)&&(a.dispose(),O(),k(s),j())}),y(()=>{a==null||a.dispose()}),{isActive:c,renderEcharts:k,resize:j,updateData:A,getChartInstance:()=>a}}export{vH as n,yH as t};
|