chainlesschain 0.159.0 → 0.161.2

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.
Files changed (331) hide show
  1. package/package.json +1 -1
  2. package/src/assets/web-panel/.build-hash +1 -1
  3. package/src/assets/web-panel/assets/AIOps-Cchx1iXI.css +1 -0
  4. package/src/assets/web-panel/assets/AIOps-CoZ9bIqF.js +1 -0
  5. package/src/assets/web-panel/assets/ActionButton-BvMi4awy.js +1 -0
  6. package/src/assets/web-panel/assets/Analytics-C1-TXmTC.css +1 -0
  7. package/src/assets/web-panel/assets/Analytics-hRk2ziup.js +3 -0
  8. package/src/assets/web-panel/assets/AppLayout-CtGprHSx.css +1 -0
  9. package/src/assets/web-panel/assets/AppLayout-_JR3Gko8.js +1 -0
  10. package/src/assets/web-panel/assets/Audit-6ZMsXmrO.css +1 -0
  11. package/src/assets/web-panel/assets/Audit-D8WmaHdX.js +1 -0
  12. package/src/assets/web-panel/assets/Backup-CY9QozR7.css +1 -0
  13. package/src/assets/web-panel/assets/Backup-CogYVeiE.js +1 -0
  14. package/src/assets/web-panel/assets/BaseInput-NAp5_OPY.js +1 -0
  15. package/src/assets/web-panel/assets/{Chat-DmX5bWvL.css → Chat-ByiYUboW.css} +1 -1
  16. package/src/assets/web-panel/assets/Chat-DkQnhjfk.js +2 -0
  17. package/src/assets/web-panel/assets/Checkbox-C9dkWb-7.js +1 -0
  18. package/src/assets/web-panel/assets/Codegen-BHyJ3j-p.js +1 -0
  19. package/src/assets/web-panel/assets/Codegen-BLP7id2a.css +1 -0
  20. package/src/assets/web-panel/assets/Col-JyQOivHb.js +1 -0
  21. package/src/assets/web-panel/assets/Community-C2RejeOY.css +1 -0
  22. package/src/assets/web-panel/assets/Community-UMq5QuBA.js +1 -0
  23. package/src/assets/web-panel/assets/Compact-DGlwooBJ.js +1 -0
  24. package/src/assets/web-panel/assets/Compliance-2rWGO55k.js +1 -0
  25. package/src/assets/web-panel/assets/Compliance-DOys4Ov1.css +1 -0
  26. package/src/assets/web-panel/assets/{Cowork-CFkkMMDK.js → Cowork-V-tDxtrt.js} +4 -4
  27. package/src/assets/web-panel/assets/Cron-YgEeQvdV.js +2 -0
  28. package/src/assets/web-panel/assets/Crosschain-C7Le4Pte.css +1 -0
  29. package/src/assets/web-panel/assets/Crosschain-Cgd5cRKn.js +1 -0
  30. package/src/assets/web-panel/assets/DID-BX6k3jZi.css +1 -0
  31. package/src/assets/web-panel/assets/DID-swdBCdMZ.js +2 -0
  32. package/src/assets/web-panel/assets/Dashboard-ClnWtxsT.js +3 -0
  33. package/src/assets/web-panel/assets/Dashboard-MFDcsVcM.css +1 -0
  34. package/src/assets/web-panel/assets/Dropdown-mlITwb7d.js +1 -0
  35. package/src/assets/web-panel/assets/Federation-CgmfLbx1.css +1 -0
  36. package/src/assets/web-panel/assets/Federation-DtUN3wQa.js +1 -0
  37. package/src/assets/web-panel/assets/{FormItemContext-Be6TSNxz.js → FormItemContext-BYmWDwAT.js} +1 -1
  38. package/src/assets/web-panel/assets/{Git-DGcuBXST.css → Git-DPuaGtg7.css} +1 -1
  39. package/src/assets/web-panel/assets/Git-Du1k1iHz.js +2 -0
  40. package/src/assets/web-panel/assets/Governance-B2TFaWsf.js +1 -0
  41. package/src/assets/web-panel/assets/Governance-BoipmXaM.css +1 -0
  42. package/src/assets/web-panel/assets/Inference-BWxYJF9-.css +1 -0
  43. package/src/assets/web-panel/assets/Inference-Cm_hmXla.js +1 -0
  44. package/src/assets/web-panel/assets/KnowledgeGraph-CztPDA96.css +1 -0
  45. package/src/assets/web-panel/assets/KnowledgeGraph-DLaLMo4r.js +1 -0
  46. package/src/assets/web-panel/assets/Logs-CElvIBBJ.js +2 -0
  47. package/src/assets/web-panel/assets/Marketplace-BlR3RCDV.js +1 -0
  48. package/src/assets/web-panel/assets/Marketplace-Djp5q9dS.css +1 -0
  49. package/src/assets/web-panel/assets/McpTools-BpHkrlka.js +5 -0
  50. package/src/assets/web-panel/assets/McpTools-CDjHmzxH.css +1 -0
  51. package/src/assets/web-panel/assets/Memory-Bcc2hxOA.css +1 -0
  52. package/src/assets/web-panel/assets/Memory-DeU9ys_m.js +2 -0
  53. package/src/assets/web-panel/assets/Mtc-CCJZpnJo.js +6 -0
  54. package/src/assets/web-panel/assets/Mtc-Cc8OJxe_.css +1 -0
  55. package/src/assets/web-panel/assets/NLProgramming-B_Tie6j1.js +1 -0
  56. package/src/assets/web-panel/assets/NLProgramming-CLOvy-35.css +1 -0
  57. package/src/assets/web-panel/assets/Notes-BcpuirPj.js +7 -0
  58. package/src/assets/web-panel/assets/Organization-BX-cIO8M.css +1 -0
  59. package/src/assets/web-panel/assets/Organization-B_SHESSc.js +4 -0
  60. package/src/assets/web-panel/assets/Overflow-R2SOGT0l.js +1 -0
  61. package/src/assets/web-panel/assets/{OverrideContext-GHsJf9ok.js → OverrideContext-Nubhv68k.js} +1 -1
  62. package/src/assets/web-panel/assets/P2P-Cx88UaiD.css +1 -0
  63. package/src/assets/web-panel/assets/P2P-IYYy3cEd.js +2 -0
  64. package/src/assets/web-panel/assets/Permissions-CR1N42yW.js +4 -0
  65. package/src/assets/web-panel/assets/Pipeline-DxkXqrH2.css +1 -0
  66. package/src/assets/web-panel/assets/Pipeline-nwFpKsU_.js +1 -0
  67. package/src/assets/web-panel/assets/Privacy-BGpz72PX.js +1 -0
  68. package/src/assets/web-panel/assets/Privacy-CrsfSFKd.css +1 -0
  69. package/src/assets/web-panel/assets/ProjectSettings-CEDhpgbs.js +2 -0
  70. package/src/assets/web-panel/assets/Projects-B5IgXt-x.css +1 -0
  71. package/src/assets/web-panel/assets/Projects-DABi6ylb.js +2 -0
  72. package/src/assets/web-panel/assets/Providers-HzrcE8ma.js +2 -0
  73. package/src/assets/web-panel/assets/QuickAsk-6FgX9DC6.js +1 -0
  74. package/src/assets/web-panel/assets/Recommend-BPhQwye7.js +1 -0
  75. package/src/assets/web-panel/assets/Recommend-CH6wKzGo.css +1 -0
  76. package/src/assets/web-panel/assets/Reputation-BL6hTN1s.js +1 -0
  77. package/src/assets/web-panel/assets/Reputation-D6VPNEd0.css +1 -0
  78. package/src/assets/web-panel/assets/Row-2akLU3YS.js +1 -0
  79. package/src/assets/web-panel/assets/RssFeed-D6qNq6Ht.js +3 -0
  80. package/src/assets/web-panel/assets/Search-B6RalzTB.css +1 -0
  81. package/src/assets/web-panel/assets/Search-R_b-u9oL.js +1 -0
  82. package/src/assets/web-panel/assets/Security-13K57V_v.css +1 -0
  83. package/src/assets/web-panel/assets/Security-DdW4hu_4.js +4 -0
  84. package/src/assets/web-panel/assets/Services-CnzEzGFN.js +2 -0
  85. package/src/assets/web-panel/assets/Skeleton-D6RevdW2.js +8 -0
  86. package/src/assets/web-panel/assets/Skills-DD5ReHH7.js +1 -0
  87. package/src/assets/web-panel/assets/Sla-CaQOOsjD.js +1 -0
  88. package/src/assets/web-panel/assets/Sla-K19oOyQc.css +1 -0
  89. package/src/assets/web-panel/assets/SpeechSettings-D-pGIn9Z.js +1 -0
  90. package/src/assets/web-panel/assets/SpeechSettings-DYPJTDKz.css +1 -0
  91. package/src/assets/web-panel/assets/Tasks-BbdO_i4Q.js +1 -0
  92. package/src/assets/web-panel/assets/Templates-BWTV8-2E.css +1 -0
  93. package/src/assets/web-panel/assets/Templates-CupAugDn.js +1 -0
  94. package/src/assets/web-panel/assets/Tenant-D3zkSAV0.css +1 -0
  95. package/src/assets/web-panel/assets/Tenant-rseAzHcY.js +1 -0
  96. package/src/assets/web-panel/assets/Tokens-BBOdNRHQ.css +1 -0
  97. package/src/assets/web-panel/assets/Tokens-DXMokNbR.js +1 -0
  98. package/src/assets/web-panel/assets/Trigger-DkSZjOlY.js +1 -0
  99. package/src/assets/web-panel/assets/Trust-CKb7QDH1.js +1 -0
  100. package/src/assets/web-panel/assets/Trust-DeOo0xAh.css +1 -0
  101. package/src/assets/web-panel/assets/UkeySign-Cux8_Ib_.js +1 -0
  102. package/src/assets/web-panel/assets/VideoEditing-CSOjdBZg.js +1 -0
  103. package/src/assets/web-panel/assets/VideoEditing-DksiizfS.css +1 -0
  104. package/src/assets/web-panel/assets/Wallet-DHbi5dHt.js +4 -0
  105. package/src/assets/web-panel/assets/Wallet-gR0ZvZbK.css +1 -0
  106. package/src/assets/web-panel/assets/WebAuthn-BkGDI33-.js +5 -0
  107. package/src/assets/web-panel/assets/WebAuthn-SSh5VhVO.css +1 -0
  108. package/src/assets/web-panel/assets/WorkflowEditor-BFZ3RYva.js +1 -0
  109. package/src/assets/web-panel/assets/WorkflowEditor-IiwsD8Kh.css +1 -0
  110. package/src/assets/web-panel/assets/{chat-DY27mJje.js → chat-BQ-Nk2XY.js} +1 -1
  111. package/src/assets/web-panel/assets/{collapseMotion-CyadT_6x.js → collapseMotion-BIjDVXtT.js} +1 -1
  112. package/src/assets/web-panel/assets/{colors-B7fDvuJc.js → colors-D2tTvuDI.js} +1 -1
  113. package/src/assets/web-panel/assets/{compact-item-DgthOVXi.js → compact-item-CqCEUZiy.js} +1 -1
  114. package/src/assets/web-panel/assets/{createContext-Blw2vgkG.js → createContext-C6HFlAQP.js} +1 -1
  115. package/src/assets/web-panel/assets/echarts-DmBLM6YO.js +19 -0
  116. package/src/assets/web-panel/assets/{hasIn-BfL1HJZl.js → hasIn-yp2CbhYc.js} +1 -1
  117. package/src/assets/web-panel/assets/icons-DvZE-RKs.js +57 -0
  118. package/src/assets/web-panel/assets/index-4cn1LmJ9.js +1 -0
  119. package/src/assets/web-panel/assets/index-B0jkl2Zb.js +1 -0
  120. package/src/assets/web-panel/assets/{index-BHnaIQEm.js → index-B2qFUwGb.js} +2 -2
  121. package/src/assets/web-panel/assets/index-B74gWYqD.js +1 -0
  122. package/src/assets/web-panel/assets/index-B8Qxu0q2.js +1 -0
  123. package/src/assets/web-panel/assets/index-B9b_mz4I.js +55 -0
  124. package/src/assets/web-panel/assets/index-BAA1SFp1.js +1 -0
  125. package/src/assets/web-panel/assets/index-BJeE7n_I.js +12 -0
  126. package/src/assets/web-panel/assets/index-BJoK7MkB.js +13 -0
  127. package/src/assets/web-panel/assets/{index-DyRzaN4b.js → index-BTL2yIvT.js} +3 -3
  128. package/src/assets/web-panel/assets/index-BlVnFOFL.js +1 -0
  129. package/src/assets/web-panel/assets/{index-x8iHfZRd.js → index-Blq49aTW.js} +3 -3
  130. package/src/assets/web-panel/assets/{index-BsleJWGy.js → index-BxSsO6Sm.js} +2 -2
  131. package/src/assets/web-panel/assets/index-CA3g3EpL.js +1 -0
  132. package/src/assets/web-panel/assets/{index-BuEOhTAw.js → index-CFoFkVUt.js} +5 -5
  133. package/src/assets/web-panel/assets/index-CWhXxdyo.js +1 -0
  134. package/src/assets/web-panel/assets/index-CXf0zL5i.js +13 -0
  135. package/src/assets/web-panel/assets/index-CcwZodUl.js +1 -0
  136. package/src/assets/web-panel/assets/index-Cd6m6ynF.js +1 -0
  137. package/src/assets/web-panel/assets/index-CfX1DEtk.css +1 -0
  138. package/src/assets/web-panel/assets/index-Cfy9l115.js +1 -0
  139. package/src/assets/web-panel/assets/index-CijiVpfO.js +1 -0
  140. package/src/assets/web-panel/assets/index-Cpfx7-LN.js +12 -0
  141. package/src/assets/web-panel/assets/index-CrEEL63u.js +1 -0
  142. package/src/assets/web-panel/assets/index-CucxAdwN.js +6 -0
  143. package/src/assets/web-panel/assets/index-CvuBD5TK.js +3 -0
  144. package/src/assets/web-panel/assets/index-Cw4v7ezB.js +65 -0
  145. package/src/assets/web-panel/assets/{index-00RNC3ZQ.js → index-D34iabcS.js} +8 -8
  146. package/src/assets/web-panel/assets/index-DEKuiAPQ.js +3 -0
  147. package/src/assets/web-panel/assets/index-Dj4P0iWm.js +1 -0
  148. package/src/assets/web-panel/assets/index-DjeNNVwu.js +1 -0
  149. package/src/assets/web-panel/assets/index-DlgMVieO.js +1 -0
  150. package/src/assets/web-panel/assets/{index-CiN4NEAa.js → index-DnehXcB-.js} +2 -2
  151. package/src/assets/web-panel/assets/index-JszcDpsT.js +7 -0
  152. package/src/assets/web-panel/assets/index-KdFFI-p3.js +1 -0
  153. package/src/assets/web-panel/assets/index-NNymVAza.js +3 -0
  154. package/src/assets/web-panel/assets/index-aw2DwKj-.js +21 -0
  155. package/src/assets/web-panel/assets/index-nzDx0JAR.js +1 -0
  156. package/src/assets/web-panel/assets/index-w1xShUDf.js +1 -0
  157. package/src/assets/web-panel/assets/{initDefaultProps-BeWIEzBr.js → initDefaultProps-DfdVxwz6.js} +1 -1
  158. package/src/assets/web-panel/assets/motion-CL0bdvJg.js +11 -0
  159. package/src/assets/web-panel/assets/move-Bo9Fgzv7.js +4 -0
  160. package/src/assets/web-panel/assets/mtc-parser-pGMSt10g.js +1 -0
  161. package/src/assets/web-panel/assets/{omit-BS0H_YEP.js → omit-C-cc6wHr.js} +1 -1
  162. package/src/assets/web-panel/assets/{pickAttrs-BOGgGau8.js → pickAttrs-CjLp5RN-.js} +1 -1
  163. package/src/assets/web-panel/assets/{placementArrow--c5TQkDQ.js → placementArrow-CJa8gsqa.js} +1 -1
  164. package/src/assets/web-panel/assets/{responsiveObserve-CrHOX7jp.js → responsiveObserve-CcDj3P-p.js} +1 -1
  165. package/src/assets/web-panel/assets/slide-CpvbHO26.js +4 -0
  166. package/src/assets/web-panel/assets/statusUtils-BK69kP1U.js +1 -0
  167. package/src/assets/web-panel/assets/{styleChecker-CiDrXnbi.js → styleChecker-CDvBRzsG.js} +1 -1
  168. package/src/assets/web-panel/assets/useFlexGapSupport-CRN_hzJt.js +1 -0
  169. package/src/assets/web-panel/assets/useFs-BD-YRwbU.js +1 -0
  170. package/src/assets/web-panel/assets/{useMergedState-CLY-UHry.js → useMergedState-TP9VIF2K.js} +1 -1
  171. package/src/assets/web-panel/assets/{useRefs-HzOoMkZk.js → useRefs-BhIz_lC3.js} +1 -1
  172. package/src/assets/web-panel/assets/{useState-yWVBuz1S.js → useState-CpKsyozn.js} +1 -1
  173. package/src/assets/web-panel/assets/vendor-B6ToihkA.js +1 -0
  174. package/src/assets/web-panel/assets/vnode-Bzp-FsbB.js +1 -0
  175. package/src/assets/web-panel/assets/{ws-4ur1fGsk.js → ws-D_5-FRIb.js} +1 -1
  176. package/src/assets/web-panel/assets/zoom-BHqpWXJV.js +4 -0
  177. package/src/assets/web-panel/index.html +4 -4
  178. package/src/commands/audit.js +296 -0
  179. package/src/commands/crosschain.js +564 -8
  180. package/src/commands/init.js +16 -1
  181. package/src/commands/mtc.js +2735 -86
  182. package/src/lib/audit-mtc.js +504 -0
  183. package/src/lib/cross-chain-mtc.js +904 -0
  184. package/src/assets/web-panel/assets/AIOps-Bfzpnnlg.css +0 -1
  185. package/src/assets/web-panel/assets/AIOps-ztGJppiG.js +0 -1
  186. package/src/assets/web-panel/assets/ActionButton-DCuat-R-.js +0 -1
  187. package/src/assets/web-panel/assets/Analytics-BFI7jbwM.css +0 -1
  188. package/src/assets/web-panel/assets/Analytics-m_EtU-RR.js +0 -3
  189. package/src/assets/web-panel/assets/AppLayout-8HizVjee.css +0 -1
  190. package/src/assets/web-panel/assets/AppLayout-Crz8jbEC.js +0 -1
  191. package/src/assets/web-panel/assets/Audit-CNLWjMXN.js +0 -1
  192. package/src/assets/web-panel/assets/Audit-kU7vbN-D.css +0 -1
  193. package/src/assets/web-panel/assets/Backup-CggaSq9O.js +0 -1
  194. package/src/assets/web-panel/assets/Backup-DxLiJzmk.css +0 -1
  195. package/src/assets/web-panel/assets/BaseInput-BssiYvl6.js +0 -1
  196. package/src/assets/web-panel/assets/Chat-tuVfpQUO.js +0 -2
  197. package/src/assets/web-panel/assets/Checkbox-BUUkXdQg.js +0 -1
  198. package/src/assets/web-panel/assets/Codegen-AVAcL7NA.css +0 -1
  199. package/src/assets/web-panel/assets/Codegen-CHu-7YGr.js +0 -1
  200. package/src/assets/web-panel/assets/Col-2IaMFwmX.js +0 -1
  201. package/src/assets/web-panel/assets/Community-CYL7Fvjq.js +0 -1
  202. package/src/assets/web-panel/assets/Community-DqDfLQui.css +0 -1
  203. package/src/assets/web-panel/assets/Compact-5yRVELhA.js +0 -1
  204. package/src/assets/web-panel/assets/Compliance-CKuIDJHK.js +0 -1
  205. package/src/assets/web-panel/assets/Compliance-CKxw6vIq.css +0 -1
  206. package/src/assets/web-panel/assets/Cron-DIfkI7vf.js +0 -2
  207. package/src/assets/web-panel/assets/Crosschain-BkjY-lst.js +0 -1
  208. package/src/assets/web-panel/assets/Crosschain-DThGgQk8.css +0 -1
  209. package/src/assets/web-panel/assets/DID-BDvsVa08.css +0 -1
  210. package/src/assets/web-panel/assets/DID-ChzRkgNy.js +0 -2
  211. package/src/assets/web-panel/assets/Dashboard-Cviwdc26.css +0 -1
  212. package/src/assets/web-panel/assets/Dashboard-DKrbXVNn.js +0 -3
  213. package/src/assets/web-panel/assets/Dropdown-BYGoxH1z.js +0 -1
  214. package/src/assets/web-panel/assets/Federation-B8QX-IaA.js +0 -1
  215. package/src/assets/web-panel/assets/Federation-BftELHDw.css +0 -1
  216. package/src/assets/web-panel/assets/Git-BBnGgbBR.js +0 -2
  217. package/src/assets/web-panel/assets/Governance-BfmfQBGB.css +0 -1
  218. package/src/assets/web-panel/assets/Governance-CxUHZMsp.js +0 -1
  219. package/src/assets/web-panel/assets/Inference-BlnOG71q.js +0 -1
  220. package/src/assets/web-panel/assets/Inference-EFFc7eNZ.css +0 -1
  221. package/src/assets/web-panel/assets/Keyframes-C7fCrnlS.js +0 -1
  222. package/src/assets/web-panel/assets/KnowledgeGraph-U8ps3aGJ.css +0 -1
  223. package/src/assets/web-panel/assets/KnowledgeGraph-vkVq38kC.js +0 -19
  224. package/src/assets/web-panel/assets/Logs-Bxx7WARH.js +0 -2
  225. package/src/assets/web-panel/assets/Marketplace-B-4uYu_j.css +0 -1
  226. package/src/assets/web-panel/assets/Marketplace-Bh8ExT9_.js +0 -1
  227. package/src/assets/web-panel/assets/McpTools-CTQrNVAQ.css +0 -1
  228. package/src/assets/web-panel/assets/McpTools-Djj_a3ko.js +0 -5
  229. package/src/assets/web-panel/assets/Memory-DRghrGJr.css +0 -1
  230. package/src/assets/web-panel/assets/Memory-DlgNgAov.js +0 -2
  231. package/src/assets/web-panel/assets/NLProgramming-BN3jaoen.js +0 -1
  232. package/src/assets/web-panel/assets/NLProgramming-jURs-f-a.css +0 -1
  233. package/src/assets/web-panel/assets/Notes-De7mIkkV.js +0 -7
  234. package/src/assets/web-panel/assets/Organization-B-98mdK2.js +0 -4
  235. package/src/assets/web-panel/assets/Organization-DdOOM4ic.css +0 -1
  236. package/src/assets/web-panel/assets/Overflow-G0I8IlY3.js +0 -1
  237. package/src/assets/web-panel/assets/P2P-DIUgHZ1z.js +0 -2
  238. package/src/assets/web-panel/assets/P2P-OEzOeMZX.css +0 -1
  239. package/src/assets/web-panel/assets/Permissions-B8XycCVk.js +0 -4
  240. package/src/assets/web-panel/assets/Pipeline-DyqCLFVr.css +0 -1
  241. package/src/assets/web-panel/assets/Pipeline-cUpETlXS.js +0 -1
  242. package/src/assets/web-panel/assets/Portal-SsPhn64D.js +0 -1
  243. package/src/assets/web-panel/assets/Privacy-B6J89UBw.js +0 -1
  244. package/src/assets/web-panel/assets/Privacy-B_cAicd1.css +0 -1
  245. package/src/assets/web-panel/assets/ProjectSettings-2Ftw0zt_.js +0 -2
  246. package/src/assets/web-panel/assets/Projects-CcOdFpgr.js +0 -2
  247. package/src/assets/web-panel/assets/Projects-DxKelI5h.css +0 -1
  248. package/src/assets/web-panel/assets/Providers-D0r2qSf-.js +0 -2
  249. package/src/assets/web-panel/assets/QuickAsk-CwsPpfkq.js +0 -1
  250. package/src/assets/web-panel/assets/Recommend-BYEDetJm.js +0 -1
  251. package/src/assets/web-panel/assets/Recommend-DgNSCgRX.css +0 -1
  252. package/src/assets/web-panel/assets/Reputation-Bli4hBGH.js +0 -1
  253. package/src/assets/web-panel/assets/Reputation-y-46ThW8.css +0 -1
  254. package/src/assets/web-panel/assets/Row-DTW9_BYi.js +0 -1
  255. package/src/assets/web-panel/assets/RssFeed-kwj_himl.js +0 -3
  256. package/src/assets/web-panel/assets/Search-BTk9rglb.css +0 -1
  257. package/src/assets/web-panel/assets/Search-DymcqASO.js +0 -1
  258. package/src/assets/web-panel/assets/Security-Bh3yvyNN.js +0 -4
  259. package/src/assets/web-panel/assets/Security-Dwxw7rfP.css +0 -1
  260. package/src/assets/web-panel/assets/Services-O4UZaYur.js +0 -2
  261. package/src/assets/web-panel/assets/Skeleton-B82oQZTz.js +0 -8
  262. package/src/assets/web-panel/assets/Skills-BfkrC05g.js +0 -1
  263. package/src/assets/web-panel/assets/Sla-C1WYuQKf.css +0 -1
  264. package/src/assets/web-panel/assets/Sla-DEs5XCIf.js +0 -1
  265. package/src/assets/web-panel/assets/SpeechSettings-BWMhb10j.js +0 -1
  266. package/src/assets/web-panel/assets/SpeechSettings-CiKvsIyV.css +0 -1
  267. package/src/assets/web-panel/assets/Tasks-CIBUb9M1.js +0 -1
  268. package/src/assets/web-panel/assets/Templates-DAkzr0xS.css +0 -1
  269. package/src/assets/web-panel/assets/Templates-iqSuJY-O.js +0 -1
  270. package/src/assets/web-panel/assets/Tenant-BJr-h-_0.css +0 -1
  271. package/src/assets/web-panel/assets/Tenant-CLqZjkVq.js +0 -1
  272. package/src/assets/web-panel/assets/Tokens-Bwz8aQtK.js +0 -1
  273. package/src/assets/web-panel/assets/Tokens-KvJRHQcl.css +0 -1
  274. package/src/assets/web-panel/assets/Trigger-CxnChVoS.js +0 -1
  275. package/src/assets/web-panel/assets/Trust-BLI308Ik.css +0 -1
  276. package/src/assets/web-panel/assets/Trust-Bp23lyZl.js +0 -1
  277. package/src/assets/web-panel/assets/UkeySign-_VAMquoh.js +0 -1
  278. package/src/assets/web-panel/assets/VideoEditing-BA1N-5kq.css +0 -1
  279. package/src/assets/web-panel/assets/VideoEditing-Bxqwg4zW.js +0 -1
  280. package/src/assets/web-panel/assets/Wallet-Cvht6Yrh.js +0 -4
  281. package/src/assets/web-panel/assets/Wallet-DnIumafl.css +0 -1
  282. package/src/assets/web-panel/assets/WebAuthn-CNPl2VQR.css +0 -1
  283. package/src/assets/web-panel/assets/WebAuthn-DD4EomJu.js +0 -5
  284. package/src/assets/web-panel/assets/WorkflowEditor-CEKNTS5G.css +0 -1
  285. package/src/assets/web-panel/assets/WorkflowEditor-CJy5e0fl.js +0 -1
  286. package/src/assets/web-panel/assets/_plugin-vue_export-helper-DlAUqK2U.js +0 -1
  287. package/src/assets/web-panel/assets/icons-CJACPYXu.js +0 -57
  288. package/src/assets/web-panel/assets/index-B9B9Zbf3.js +0 -1
  289. package/src/assets/web-panel/assets/index-BAsMNMbh.js +0 -1
  290. package/src/assets/web-panel/assets/index-BB5y5Y0z.js +0 -14
  291. package/src/assets/web-panel/assets/index-BVjDIZQ4.js +0 -1
  292. package/src/assets/web-panel/assets/index-BZeRnzuY.js +0 -55
  293. package/src/assets/web-panel/assets/index-BZfoAtZC.js +0 -1
  294. package/src/assets/web-panel/assets/index-Bl2nXm2J.js +0 -13
  295. package/src/assets/web-panel/assets/index-Bw1dwHWm.js +0 -1
  296. package/src/assets/web-panel/assets/index-Bw_UV2ez.js +0 -13
  297. package/src/assets/web-panel/assets/index-C8GYpC65.js +0 -1
  298. package/src/assets/web-panel/assets/index-CBHlKa-J.js +0 -3
  299. package/src/assets/web-panel/assets/index-CL-7KCFI.js +0 -3
  300. package/src/assets/web-panel/assets/index-CqjUUbil.js +0 -12
  301. package/src/assets/web-panel/assets/index-Cqtt1N0F.js +0 -1
  302. package/src/assets/web-panel/assets/index-CyGyEIVX.css +0 -1
  303. package/src/assets/web-panel/assets/index-D1QP9Ue1.js +0 -1
  304. package/src/assets/web-panel/assets/index-D6BUjL6I.js +0 -1
  305. package/src/assets/web-panel/assets/index-DN7ywgBJ.js +0 -1
  306. package/src/assets/web-panel/assets/index-DasW8LIs.js +0 -1
  307. package/src/assets/web-panel/assets/index-Dd9McFt_.js +0 -1
  308. package/src/assets/web-panel/assets/index-DdzLEdL6.js +0 -7
  309. package/src/assets/web-panel/assets/index-DhML6F3z.js +0 -1
  310. package/src/assets/web-panel/assets/index-DjN0nHiV.js +0 -1
  311. package/src/assets/web-panel/assets/index-DjhWpiZW.js +0 -1
  312. package/src/assets/web-panel/assets/index-DouFuKIR.js +0 -1
  313. package/src/assets/web-panel/assets/index-DzWwjWYN.js +0 -21
  314. package/src/assets/web-panel/assets/index-Dza_w3kG.js +0 -1
  315. package/src/assets/web-panel/assets/index-Q4qgOtOe.js +0 -12
  316. package/src/assets/web-panel/assets/index-U4Zd5IK6.js +0 -8
  317. package/src/assets/web-panel/assets/index-Vit9TJBu.js +0 -36
  318. package/src/assets/web-panel/assets/index-lkJllVbJ.js +0 -6
  319. package/src/assets/web-panel/assets/index-uMWaXVtR.js +0 -3
  320. package/src/assets/web-panel/assets/index-uwh_ikIt.js +0 -1
  321. package/src/assets/web-panel/assets/motion-CIQOKmi6.js +0 -11
  322. package/src/assets/web-panel/assets/move-ZgRPlBji.js +0 -4
  323. package/src/assets/web-panel/assets/slide-Dd2mJUD0.js +0 -4
  324. package/src/assets/web-panel/assets/statusUtils-5QFvAofV.js +0 -1
  325. package/src/assets/web-panel/assets/transition-CVd2ueaJ.js +0 -1
  326. package/src/assets/web-panel/assets/useConfigInject-DIkkDpt1.js +0 -2
  327. package/src/assets/web-panel/assets/useFlexGapSupport-rrtj6f1h.js +0 -1
  328. package/src/assets/web-panel/assets/useFs-CK8VYPus.js +0 -1
  329. package/src/assets/web-panel/assets/vendor-D0Qjn73K.js +0 -1
  330. package/src/assets/web-panel/assets/vnode-xRp-KMjS.js +0 -1
  331. package/src/assets/web-panel/assets/zoom-CrI_kdTW.js +0 -4
@@ -1,19 +0,0 @@
1
- import{d as Am,h as Pm,i as go,Q as Rm,g as Em,w as yo,f as hp,l as cp,o as km,s as Bs,j as Ue,n as Om,R as Bm,u as _e,F as Dt,D as ye,c as E,x as O,m as er,G as Jt,q as _t,r as Bt,v as lt,J as St,I as wt,H as Or,L as Di,a as Ns}from"./vendor-D0Qjn73K.js";import{u as Nm}from"./ws-4ur1fGsk.js";import{_ as zm}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{a as Nt}from"./index-BB5y5Y0z.js";import{_ as Fm,ah as Hm,al as zs,u as Oh,a as Vm,k as Gm,z as Um}from"./icons-CJACPYXu.js";import"./index-Vit9TJBu.js";import"./useConfigInject-DIkkDpt1.js";import"./transition-CVd2ueaJ.js";import"./Keyframes-C7fCrnlS.js";import"./Portal-SsPhn64D.js";import"./index-U4Zd5IK6.js";var lu=function(r,t){return lu=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])},lu(r,t)};function G(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");lu(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var Ym=(function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r})(),Wm=(function(){function r(){this.browser=new Ym,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 r})(),q=new Wm;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(q.wxa=!0,q.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?q.worker=!0:!q.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(q.node=!0,q.svgSupported=!0):Xm(navigator.userAgent,q);function Xm(r,t){var e=t.browser,i=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),a=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);i&&(e.firefox=!0,e.version=i[1]),n&&(e.ie=!0,e.version=n[1]),a&&(e.edge=!0,e.version=a[1],e.newEdge=+a[1].split(".")[0]>18),o&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11);var s=t.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in l||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}}var bf=12,$m="sans-serif",Lr=bf+"px "+$m,Zm=20,qm=100,Km="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function jm(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e<r.length;e++){var i=String.fromCharCode(e+32),n=(r.charCodeAt(e)-Zm)/qm;t[i]=n}return t}var Qm=jm(Km),cr={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var r,t;return function(e,i){if(!r){var n=cr.createCanvas();r=n&&n.getContext("2d")}if(r)return t!==i&&(t=r.font=i||Lr),r.measureText(e);e=e||"",i=i||Lr;var a=/((?:\d+)?\.?\d*)px/.exec(i),o=a&&+a[1]||bf,s=0;if(i.indexOf("mono")>=0)s=o*e.length;else for(var l=0;l<e.length;l++){var u=Qm[e[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(r,t,e){var i=new Image;return i.onload=t,i.onerror=e,i.src=r,i}},vp=hn(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,t){return r["[object "+t+"]"]=!0,r},{}),dp=hn(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,t){return r["[object "+t+"Array]"]=!0,r},{}),_a=Object.prototype.toString,os=Array.prototype,Jm=os.forEach,t_=os.filter,Tf=os.slice,e_=os.map,Bh=(function(){}).constructor,Ra=Bh?Bh.prototype:null,xf="__proto__",r_=2311;function pp(){return r_++}function Cf(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];typeof console<"u"&&console.error.apply(console,r)}function et(r){if(r==null||typeof r!="object")return r;var t=r,e=_a.call(r);if(e==="[object Array]"){if(!Yn(r)){t=[];for(var i=0,n=r.length;i<n;i++)t[i]=et(r[i])}}else if(dp[e]){if(!Yn(r)){var a=r.constructor;if(a.from)t=a.from(r);else{t=new a(r.length);for(var i=0,n=r.length;i<n;i++)t[i]=r[i]}}}else if(!vp[e]&&!Yn(r)&&!ea(r)){t={};for(var o in r)r.hasOwnProperty(o)&&o!==xf&&(t[o]=et(r[o]))}return t}function xt(r,t,e){if(!Y(t)||!Y(r))return e?et(t):r;for(var i in t)if(t.hasOwnProperty(i)&&i!==xf){var n=r[i],a=t[i];Y(a)&&Y(n)&&!V(a)&&!V(n)&&!ea(a)&&!ea(n)&&!Nh(a)&&!Nh(n)&&!Yn(a)&&!Yn(n)?xt(n,a,e):(e||!(i in r))&&(r[i]=et(t[i]))}return r}function k(r,t){if(Object.assign)Object.assign(r,t);else for(var e in t)t.hasOwnProperty(e)&&e!==xf&&(r[e]=t[e]);return r}function Ct(r,t,e){for(var i=Lt(t),n=0,a=i.length;n<a;n++){var o=i[n];r[o]==null&&(r[o]=t[o])}return r}function pt(r,t){if(r){if(r.indexOf)return r.indexOf(t);for(var e=0,i=r.length;e<i;e++)if(r[e]===t)return e}return-1}function i_(r,t){var e=r.prototype;function i(){}i.prototype=t.prototype,r.prototype=new i;for(var n in e)e.hasOwnProperty(n)&&(r.prototype[n]=e[n]);r.prototype.constructor=r,r.superClass=t}function Ee(r,t,e){if(r="prototype"in r?r.prototype:r,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(t),n=0;n<i.length;n++){var a=i[n];a!=="constructor"&&r[a]==null&&(r[a]=t[a])}else Ct(r,t)}function se(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function I(r,t,e){if(r&&t)if(r.forEach&&r.forEach===Jm)r.forEach(t,e);else if(r.length===+r.length)for(var i=0,n=r.length;i<n;i++)t.call(e,r[i],i,r);else for(var a in r)r.hasOwnProperty(a)&&t.call(e,r[a],a,r)}function ot(r,t,e){if(!r)return[];if(!t)return Df(r);if(r.map&&r.map===e_)return r.map(t,e);for(var i=[],n=0,a=r.length;n<a;n++)i.push(t.call(e,r[n],n,r));return i}function hn(r,t,e,i){if(r&&t){for(var n=0,a=r.length;n<a;n++)e=t.call(i,e,r[n],n,r);return e}}function he(r,t,e){if(!r)return[];if(!t)return Df(r);if(r.filter&&r.filter===t_)return r.filter(t,e);for(var i=[],n=0,a=r.length;n<a;n++)t.call(e,r[n],n,r)&&i.push(r[n]);return i}function Lt(r){if(!r)return[];if(Object.keys)return Object.keys(r);var t=[];for(var e in r)r.hasOwnProperty(e)&&t.push(e);return t}function n_(r,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return function(){return r.apply(t,e.concat(Tf.call(arguments)))}}var ht=Ra&&at(Ra.bind)?Ra.call.bind(Ra.bind):n_;function Pt(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return function(){return r.apply(this,t.concat(Tf.call(arguments)))}}function V(r){return Array.isArray?Array.isArray(r):_a.call(r)==="[object Array]"}function at(r){return typeof r=="function"}function U(r){return typeof r=="string"}function uu(r){return _a.call(r)==="[object String]"}function gt(r){return typeof r=="number"}function Y(r){var t=typeof r;return t==="function"||!!r&&t==="object"}function Nh(r){return!!vp[_a.call(r)]}function le(r){return!!dp[_a.call(r)]}function ea(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function ss(r){return r.colorStops!=null}function a_(r){return r.image!=null}function o_(r){return r!==r}function rn(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];for(var e=0,i=r.length;e<i;e++)if(r[e]!=null)return r[e]}function $(r,t){return r??t}function fr(r,t,e){return r??t??e}function Df(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return Tf.apply(r,t)}function If(r){if(typeof r=="number")return[r,r,r,r];var t=r.length;return t===2?[r[0],r[1],r[0],r[1]]:t===3?[r[0],r[1],r[2],r[1]]:r}function je(r,t){if(!r)throw new Error(t)}function We(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var gp="__ec_primitive__";function fu(r){r[gp]=!0}function Yn(r){return r[gp]}var s_=(function(){function r(){this.data={}}return r.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},r.prototype.has=function(t){return this.data.hasOwnProperty(t)},r.prototype.get=function(t){return this.data[t]},r.prototype.set=function(t,e){return this.data[t]=e,this},r.prototype.keys=function(){return Lt(this.data)},r.prototype.forEach=function(t){var e=this.data;for(var i in e)e.hasOwnProperty(i)&&t(e[i],i)},r})(),yp=typeof Map=="function";function l_(){return yp?new Map:new s_}var u_=(function(){function r(t){var e=V(t);this.data=l_();var i=this;t instanceof r?t.each(n):t&&I(t,n);function n(a,o){e?i.set(a,o):i.set(o,a)}}return r.prototype.hasKey=function(t){return this.data.has(t)},r.prototype.get=function(t){return this.data.get(t)},r.prototype.set=function(t,e){return this.data.set(t,e),e},r.prototype.each=function(t,e){this.data.forEach(function(i,n){t.call(e,i,n)})},r.prototype.keys=function(){var t=this.data.keys();return yp?Array.from(t):t},r.prototype.removeKey=function(t){this.data.delete(t)},r})();function Q(r){return new u_(r)}function f_(r,t){for(var e=new r.constructor(r.length+t.length),i=0;i<r.length;i++)e[i]=r[i];for(var n=r.length,i=0;i<t.length;i++)e[i+n]=t[i];return e}function ls(r,t){var e;if(Object.create)e=Object.create(r);else{var i=function(){};i.prototype=r,e=new i}return t&&k(e,t),e}function mp(r){var t=r.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function Pe(r,t){return r.hasOwnProperty(t)}function Ht(){}var h_=180/Math.PI;function Si(r,t){return r==null&&(r=0),t==null&&(t=0),[r,t]}function Wt(r,t){return r[0]=t[0],r[1]=t[1],r}function hr(r){return[r[0],r[1]]}function c_(r,t,e){return r[0]=t,r[1]=e,r}function zh(r,t,e){return r[0]=t[0]+e[0],r[1]=t[1]+e[1],r}function hu(r,t,e,i){return r[0]=t[0]+e[0]*i,r[1]=t[1]+e[1]*i,r}function li(r,t,e){return r[0]=t[0]-e[0],r[1]=t[1]-e[1],r}function cu(r){return Math.sqrt(v_(r))}function v_(r){return r[0]*r[0]+r[1]*r[1]}function mo(r,t,e){return r[0]=t[0]*e,r[1]=t[1]*e,r}function cn(r,t){var e=cu(t);return e===0?(r[0]=0,r[1]=0):(r[0]=t[0]/e,r[1]=t[1]/e),r}function vu(r,t){return Math.sqrt((r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1]))}var d_=vu;function p_(r,t){return(r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1])}var di=p_;function ve(r,t,e){var i=t[0],n=t[1];return r[0]=e[0]*i+e[2]*n+e[4],r[1]=e[1]*i+e[3]*n+e[5],r}function Zi(r,t,e){return r[0]=Math.min(t[0],e[0]),r[1]=Math.min(t[1],e[1]),r}function qi(r,t,e){return r[0]=Math.max(t[0],e[0]),r[1]=Math.max(t[1],e[1]),r}var Ii=(function(){function r(t,e){this.target=t,this.topTarget=e&&e.topTarget}return r})(),g_=(function(){function r(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Ii(e,t),"dragstart",t.event))},r.prototype._drag=function(t){var e=this._draggingTarget;if(e){var i=t.offsetX,n=t.offsetY,a=i-this._x,o=n-this._y;this._x=i,this._y=n,e.drift(a,o,t),this.handler.dispatchToElement(new Ii(e,t),"drag",t.event);var s=this.handler.findHover(i,n,e).target,l=this._dropTarget;this._dropTarget=s,e!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Ii(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new Ii(s,t),"dragenter",t.event))}},r.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new Ii(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Ii(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},r})(),ke=(function(){function r(t){t&&(this._$eventProcessor=t)}return r.prototype.on=function(t,e,i,n){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof e=="function"&&(n=i,i=e,e=null),!i||!t)return this;var o=this._$eventProcessor;e!=null&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),a[t]||(a[t]=[]);for(var s=0;s<a[t].length;s++)if(a[t][s].h===i)return this;var l={h:i,query:e,ctx:n||this,callAtLast:i.zrEventfulCallAtLast},u=a[t].length-1,f=a[t][u];return f&&f.callAtLast?a[t].splice(u,0,l):a[t].push(l),this},r.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},r.prototype.off=function(t,e){var i=this._$handlers;if(!i)return this;if(!t)return this._$handlers={},this;if(e){if(i[t]){for(var n=[],a=0,o=i[t].length;a<o;a++)i[t][a].h!==e&&n.push(i[t][a]);i[t]=n}i[t]&&i[t].length===0&&delete i[t]}else delete i[t];return this},r.prototype.trigger=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],a=this._$eventProcessor;if(n)for(var o=e.length,s=n.length,l=0;l<s;l++){var u=n[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(t,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,e[0]);break;case 2:u.h.call(u.ctx,e[0],e[1]);break;default:u.h.apply(u.ctx,e);break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},r.prototype.triggerWithContext=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],a=this._$eventProcessor;if(n)for(var o=e.length,s=e[o-1],l=n.length,u=0;u<l;u++){var f=n[u];if(!(a&&a.filter&&f.query!=null&&!a.filter(t,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,e[0]);break;case 2:f.h.call(s,e[0],e[1]);break;default:f.h.apply(s,e.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},r})(),y_=Math.log(2);function du(r,t,e,i,n,a){var o=i+"-"+n,s=r.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~n)/y_);return r[e][l]}for(var u=i|1<<e,f=e+1;i&1<<f;)f++;for(var h=0,c=0,v=0;c<s;c++){var d=1<<c;d&n||(h+=(v%2?-1:1)*r[e][c]*du(r,t-1,f,u,n|d,a),v++)}return a[o]=h,h}function Fh(r,t){var e=[[r[0],r[1],1,0,0,0,-t[0]*r[0],-t[0]*r[1]],[0,0,0,r[0],r[1],1,-t[1]*r[0],-t[1]*r[1]],[r[2],r[3],1,0,0,0,-t[2]*r[2],-t[2]*r[3]],[0,0,0,r[2],r[3],1,-t[3]*r[2],-t[3]*r[3]],[r[4],r[5],1,0,0,0,-t[4]*r[4],-t[4]*r[5]],[0,0,0,r[4],r[5],1,-t[5]*r[4],-t[5]*r[5]],[r[6],r[7],1,0,0,0,-t[6]*r[6],-t[6]*r[7]],[0,0,0,r[6],r[7],1,-t[7]*r[6],-t[7]*r[7]]],i={},n=du(e,8,0,0,0,i);if(n!==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)*du(e,7,o===0?1:0,1<<o,1<<s,i)/n*t[o];return function(l,u,f){var h=u*a[6]+f*a[7]+1;l[0]=(u*a[0]+f*a[1]+a[2])/h,l[1]=(u*a[3]+f*a[4]+a[5])/h}}}var ko="___zrEVENTSAVED",Fs=[];function m_(r,t,e,i,n){return pu(Fs,t,i,n,!0)&&pu(r,e,Fs[0],Fs[1])}function __(r,t){r&&e(r),t&&e(t);function e(i){var n=i[ko];n&&(n.clearMarkers&&n.clearMarkers(),delete i[ko])}}function pu(r,t,e,i,n){if(t.getBoundingClientRect&&q.domSupported&&!_p(t)){var a=t[ko]||(t[ko]={}),o=S_(t,a),s=w_(o,a,n);if(s)return s(r,e,i),!0}return!1}function S_(r,t){var e=t.markers;if(e)return e;e=t.markers=[];for(var i=["left","right"],n=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",n[u]+":0",i[1-l]+":auto",n[1-u]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return t.clearMarkers=function(){I(e,function(f){f.parentNode&&f.parentNode.removeChild(f)})},e}function w_(r,t,e){for(var i=e?"invTrans":"trans",n=t[i],a=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),h=2*u,c=f.left,v=f.top;o.push(c,v),l=l&&a&&c===a[h]&&v===a[h+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&n?n:(t.srcCoords=o,t[i]=e?Fh(s,o):Fh(o,s))}function _p(r){return r.nodeName.toUpperCase()==="CANVAS"}var b_=/([&<>"'])/g,T_={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function ee(r){return r==null?"":(r+"").replace(b_,function(t,e){return T_[e]})}var x_=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Hs=[],C_=q.browser.firefox&&+q.browser.version.split(".")[0]<39;function gu(r,t,e,i){return e=e||{},i?Hh(r,t,e):C_&&t.layerX!=null&&t.layerX!==t.offsetX?(e.zrX=t.layerX,e.zrY=t.layerY):t.offsetX!=null?(e.zrX=t.offsetX,e.zrY=t.offsetY):Hh(r,t,e),e}function Hh(r,t,e){if(q.domSupported&&r.getBoundingClientRect){var i=t.clientX,n=t.clientY;if(_p(r)){var a=r.getBoundingClientRect();e.zrX=i-a.left,e.zrY=n-a.top;return}else if(pu(Hs,r,i,n)){e.zrX=Hs[0],e.zrY=Hs[1];return}}e.zrX=e.zrY=0}function Lf(r){return r||window.event}function we(r,t,e){if(t=Lf(t),t.zrX!=null)return t;var i=t.type,n=i&&i.indexOf("touch")>=0;if(n){var o=i!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&gu(r,o,t,e)}else{gu(r,t,t,e);var a=D_(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&x_.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function D_(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,i=r.deltaY;if(e==null||i==null)return t;var n=Math.abs(i!==0?i:e),a=i>0?-1:i<0?1:e>0?-1:1;return 3*n*a}function I_(r,t,e,i){r.addEventListener(t,e,i)}function L_(r,t,e,i){r.removeEventListener(t,e,i)}var Oo=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function Vh(r){return r.which===2||r.which===3}var M_=(function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,i){return this._doTrack(t,e,i),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,i){var n=t.touches;if(n){for(var a={points:[],touches:[],target:e,event:t},o=0,s=n.length;o<s;o++){var l=n[o],u=gu(i,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},r.prototype._recognize=function(t){for(var e in Vs)if(Vs.hasOwnProperty(e)){var i=Vs[e](this._track,t);if(i)return i}},r})();function Gh(r){var t=r[1][0]-r[0][0],e=r[1][1]-r[0][1];return Math.sqrt(t*t+e*e)}function A_(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var Vs={pinch:function(r,t){var e=r.length;if(e){var i=(r[e-1]||{}).points,n=(r[e-2]||{}).points||i;if(n&&n.length>1&&i&&i.length>1){var a=Gh(i)/Gh(n);!isFinite(a)&&(a=1),t.pinchScale=a;var o=A_(i);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};function $e(){return[1,0,0,1,0,0]}function Mf(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function Af(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4],r[5]=t[5],r}function Wn(r,t,e){var i=t[0]*e[0]+t[2]*e[1],n=t[1]*e[0]+t[3]*e[1],a=t[0]*e[2]+t[2]*e[3],o=t[1]*e[2]+t[3]*e[3],s=t[0]*e[4]+t[2]*e[5]+t[4],l=t[1]*e[4]+t[3]*e[5]+t[5];return r[0]=i,r[1]=n,r[2]=a,r[3]=o,r[4]=s,r[5]=l,r}function yu(r,t,e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4]+e[0],r[5]=t[5]+e[1],r}function Pf(r,t,e,i){i===void 0&&(i=[0,0]);var n=t[0],a=t[2],o=t[4],s=t[1],l=t[3],u=t[5],f=Math.sin(e),h=Math.cos(e);return r[0]=n*h+s*f,r[1]=-n*f+s*h,r[2]=a*h+l*f,r[3]=-a*f+h*l,r[4]=h*(o-i[0])+f*(u-i[1])+i[0],r[5]=h*(u-i[1])-f*(o-i[0])+i[1],r}function P_(r,t,e){var i=e[0],n=e[1];return r[0]=t[0]*i,r[1]=t[1]*n,r[2]=t[2]*i,r[3]=t[3]*n,r[4]=t[4]*i,r[5]=t[5]*n,r}function Sa(r,t){var e=t[0],i=t[2],n=t[4],a=t[1],o=t[3],s=t[5],l=e*o-a*i;return l?(l=1/l,r[0]=o*l,r[1]=-a*l,r[2]=-i*l,r[3]=e*l,r[4]=(i*s-o*n)*l,r[5]=(a*n-e*s)*l,r):null}var ct=(function(){function r(t,e){this.x=t||0,this.y=e||0}return r.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(t,e){return this.x=t,this.y=e,this},r.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},r.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},r.prototype.scale=function(t){this.x*=t,this.y*=t},r.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},r.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},r.prototype.dot=function(t){return this.x*t.x+this.y*t.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},r.prototype.distance=function(t){var e=this.x-t.x,i=this.y-t.y;return Math.sqrt(e*e+i*i)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,i=this.y-t.y;return e*e+i*i},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(t){if(t){var e=this.x,i=this.y;return this.x=t[0]*e+t[2]*i+t[4],this.y=t[1]*e+t[3]*i+t[5],this}},r.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},r.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},r.set=function(t,e,i){t.x=e,t.y=i},r.copy=function(t,e){t.x=e.x,t.y=e.y},r.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},r.lenSquare=function(t){return t.x*t.x+t.y*t.y},r.dot=function(t,e){return t.x*e.x+t.y*e.y},r.add=function(t,e,i){t.x=e.x+i.x,t.y=e.y+i.y},r.sub=function(t,e,i){t.x=e.x-i.x,t.y=e.y-i.y},r.scale=function(t,e,i){t.x=e.x*i,t.y=e.y*i},r.scaleAndAdd=function(t,e,i,n){t.x=e.x+i.x*n,t.y=e.y+i.y*n},r.lerp=function(t,e,i,n){var a=1-n;t.x=a*e.x+n*i.x,t.y=a*e.y+n*i.y},r})(),ui=Math.min,Ki=Math.max,mu=Math.abs,Uh=["x","y"],R_=["width","height"],Br=new ct,Nr=new ct,zr=new ct,Fr=new ct,fe=Sp(),On=fe.minTv,_u=fe.maxTv,Xn=[0,0],J=(function(){function r(t,e,i,n){r.set(this,t,e,i,n)}return r.set=function(t,e,i,n,a){return n<0&&(e=e+n,n=-n),a<0&&(i=i+a,a=-a),t.x=e,t.y=i,t.width=n,t.height=a,t},r.prototype.union=function(t){var e=ui(t.x,this.x),i=ui(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ki(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ki(t.y+t.height,this.y+this.height)-i:this.height=t.height,this.x=e,this.y=i},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){var e=this,i=t.width/e.width,n=t.height/e.height,a=$e();return yu(a,a,[-e.x,-e.y]),P_(a,a,[i,n]),yu(a,a,[t.x,t.y]),a},r.prototype.intersect=function(t,e,i){return r.intersect(this,t,e,i)},r.intersect=function(t,e,i,n){i&&ct.set(i,0,0);var a=n&&n.outIntersectRect||null,o=n&&n.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!t||!e)return!1;t instanceof r||(t=r.set(E_,t.x,t.y,t.width,t.height)),e instanceof r||(e=r.set(k_,e.x,e.y,e.width,e.height));var s=!!i;fe.reset(n,s);var l=fe.touchThreshold,u=t.x+l,f=t.x+t.width-l,h=t.y+l,c=t.y+t.height-l,v=e.x+l,d=e.x+e.width-l,y=e.y+l,g=e.y+e.height-l;if(u>f||h>c||v>d||y>g)return!1;var p=!(f<v||d<u||c<y||g<h);return(s||a)&&(Xn[0]=1/0,Xn[1]=0,Yh(u,f,v,d,0,s,a,o),Yh(h,c,y,g,1,s,a,o),s&&ct.copy(i,p?fe.useDir?fe.dirMinTv:On:_u)),p},r.contain=function(t,e,i){return e>=t.x&&e<=t.x+t.width&&i>=t.y&&i<=t.y+t.height},r.prototype.contain=function(t,e){return r.contain(this,t,e)},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){r.copy(this,t)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(t){return new r(t.x,t.y,t.width,t.height)},r.copy=function(t,e){return t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height,t},r.applyTransform=function(t,e,i){if(!i){t!==e&&r.copy(t,e);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var n=i[0],a=i[3],o=i[4],s=i[5];t.x=e.x*n+o,t.y=e.y*a+s,t.width=e.width*n,t.height=e.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Br.x=zr.x=e.x,Br.y=Fr.y=e.y,Nr.x=Fr.x=e.x+e.width,Nr.y=zr.y=e.y+e.height,Br.transform(i),Fr.transform(i),Nr.transform(i),zr.transform(i),t.x=ui(Br.x,Nr.x,zr.x,Fr.x),t.y=ui(Br.y,Nr.y,zr.y,Fr.y);var l=Ki(Br.x,Nr.x,zr.x,Fr.x),u=Ki(Br.y,Nr.y,zr.y,Fr.y);t.width=l-t.x,t.height=u-t.y},r})(),E_=new J(0,0,0,0),k_=new J(0,0,0,0);function Yh(r,t,e,i,n,a,o,s){var l=mu(t-e),u=mu(i-r),f=ui(l,u),h=Uh[n],c=Uh[1-n],v=R_[n];t<e||i<r?l<u?(a&&(_u[h]=-l),s&&(o[h]=t,o[v]=0)):(a&&(_u[h]=u),s&&(o[h]=r,o[v]=0)):(o&&(o[h]=Ki(r,e),o[v]=ui(t,i)-o[h]),a&&(f<Xn[0]||fe.useDir)&&(Xn[0]=ui(f,Xn[0]),(l<u||!fe.bidirectional)&&(On[h]=l,On[c]=0,fe.useDir&&fe.calcDirMTV()),(l>=u||!fe.bidirectional)&&(On[h]=-u,On[c]=0,fe.useDir&&fe.calcDirMTV())))}function Sp(){var r=0,t=new ct,e=new ct,i={minTv:new ct,maxTv:new ct,useDir:!1,dirMinTv:new ct,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){i.touchThreshold=0,a&&a.touchThreshold!=null&&(i.touchThreshold=Ki(0,a.touchThreshold)),i.negativeSize=!1,o&&(i.minTv.set(1/0,1/0),i.maxTv.set(0,0),i.useDir=!1,a&&a.direction!=null&&(i.useDir=!0,i.dirMinTv.copy(i.minTv),e.copy(i.minTv),r=a.direction,i.bidirectional=a.bidirectional==null||!!a.bidirectional,i.bidirectional||t.set(Math.cos(r),Math.sin(r))))},calcDirMTV:function(){var a=i.minTv,o=i.dirMinTv,s=a.y*a.y+a.x*a.x,l=Math.sin(r),u=Math.cos(r),f=l*a.y+u*a.x;if(n(f)){n(a.x)&&n(a.y)&&o.set(0,0);return}if(e.x=s*u/f,e.y=s*l/f,n(e.x)&&n(e.y)){o.set(0,0);return}(i.bidirectional||t.dot(e)>0)&&e.len()<o.len()&&o.copy(e)}};function n(a){return mu(a)<1e-10}return i}var wp="silent";function O_(r,t,e){return{type:r,event:e,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:e.zrX,offsetY:e.zrY,gestureEvent:e.gestureEvent,pinchX:e.pinchX,pinchY:e.pinchY,pinchScale:e.pinchScale,wheelDelta:e.zrDelta,zrByTouch:e.zrByTouch,which:e.which,stop:B_}}function B_(){Oo(this.event)}var N_=(function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handler=null,e}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t})(ke),vn=(function(){function r(t,e){this.x=t,this.y=e}return r})(),z_=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Gs=new J(0,0,0,0),bp=(function(r){G(t,r);function t(e,i,n,a,o){var s=r.call(this)||this;return s._hovered=new vn(0,0),s.storage=e,s.painter=i,s.painterRoot=a,s._pointerSize=o,n=n||new N_,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new g_(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(I(z_,function(i){e.on&&e.on(i,this[i],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var i=e.zrX,n=e.zrY,a=Tp(this,i,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new vn(i,n):this.findHover(i,n),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",e),this.dispatchToElement(l,"mousemove",e),u&&u!==s&&this.dispatchToElement(l,"mouseover",e)},t.prototype.mouseout=function(e){var i=e.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new vn(0,0)},t.prototype.dispatch=function(e,i){var n=this[e];n&&n.call(this,i)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var i=this.proxy;i.setCursor&&i.setCursor(e)},t.prototype.dispatchToElement=function(e,i,n){e=e||{};var a=e.target;if(!(a&&a.silent)){for(var o="on"+i,s=O_(i,e,n);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(i,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(i,s)}))}},t.prototype.findHover=function(e,i,n){var a=this.storage.getDisplayList(),o=new vn(e,i);if(Wh(a,o,e,i,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new J(e-u,i-u,l,l),h=a.length-1;h>=0;h--){var c=a[h];c!==n&&!c.ignore&&!c.ignoreCoarsePointer&&(!c.parent||!c.parent.ignoreCoarsePointer)&&(Gs.copy(c.getBoundingRect()),c.transform&&Gs.applyTransform(c.transform),Gs.intersect(f)&&s.push(c))}if(s.length)for(var v=4,d=Math.PI/12,y=Math.PI*2,g=0;g<u;g+=v)for(var p=0;p<y;p+=d){var m=e+g*Math.cos(p),_=i+g*Math.sin(p);if(Wh(s,o,m,_,n),o.target)return o}}return o},t.prototype.processGesture=function(e,i){this._gestureMgr||(this._gestureMgr=new M_);var n=this._gestureMgr;i==="start"&&n.clear();var a=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(i==="end"&&n.clear(),a){var o=a.type;e.gestureEvent=o;var s=new vn;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t})(ke);I(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){bp.prototype[r]=function(t){var e=t.zrX,i=t.zrY,n=Tp(this,e,i),a,o;if((r!=="mouseup"||!n)&&(a=this.findHover(e,i),o=a.target),r==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||d_(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,r,t)}});function F_(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var i=r,n=void 0,a=!1;i;){if(i.ignoreClip&&(a=!0),!a){var o=i.getClipPath();if(o&&!o.contain(t,e))return!1}i.silent&&(n=!0);var s=i.__hostTarget;i=s?i.ignoreHostSilent?null:s:i.parent}return n?wp:!0}return!1}function Wh(r,t,e,i,n){for(var a=r.length-1;a>=0;a--){var o=r[a],s=void 0;if(o!==n&&!o.ignore&&(s=F_(o,e,i))&&(!t.topTarget&&(t.topTarget=o),s!==wp)){t.target=o;break}}}function Tp(r,t,e){var i=r.painter;return t<0||t>i.getWidth()||e<0||e>i.getHeight()}var xp=32,dn=7;function H_(r){for(var t=0;r>=xp;)t|=r&1,r>>=1;return r+t}function Xh(r,t,e,i){var n=t+1;if(n===e)return 1;if(i(r[n++],r[t])<0){for(;n<e&&i(r[n],r[n-1])<0;)n++;V_(r,t,n)}else for(;n<e&&i(r[n],r[n-1])>=0;)n++;return n-t}function V_(r,t,e){for(e--;t<e;){var i=r[t];r[t++]=r[e],r[e--]=i}}function $h(r,t,e,i,n){for(i===t&&i++;i<e;i++){for(var a=r[i],o=t,s=i,l;o<s;)l=o+s>>>1,n(a,r[l])<0?s=l:o=l+1;var u=i-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=a}}function Us(r,t,e,i,n,a){var o=0,s=0,l=1;if(a(r,t[e+n])>0){for(s=i-n;l<s&&a(r,t[e+n+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;l<s&&a(r,t[e+n-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}for(o++;o<l;){var f=o+(l-o>>>1);a(r,t[e+f])>0?o=f+1:l=f}return l}function Ys(r,t,e,i,n,a){var o=0,s=0,l=1;if(a(r,t[e+n])<0){for(s=n+1;l<s&&a(r,t[e+n-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}else{for(s=i-n;l<s&&a(r,t[e+n+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o<l;){var f=o+(l-o>>>1);a(r,t[e+f])<0?l=f:o=f+1}return l}function G_(r,t){var e=dn,i,n,a=0,o=[];i=[],n=[];function s(v,d){i[a]=v,n[a]=d,a+=1}function l(){for(;a>1;){var v=a-2;if(v>=1&&n[v-1]<=n[v]+n[v+1]||v>=2&&n[v-2]<=n[v]+n[v-1])n[v-1]<n[v+1]&&v--;else if(n[v]>n[v+1])break;f(v)}}function u(){for(;a>1;){var v=a-2;v>0&&n[v-1]<n[v+1]&&v--,f(v)}}function f(v){var d=i[v],y=n[v],g=i[v+1],p=n[v+1];n[v]=y+p,v===a-3&&(i[v+1]=i[v+2],n[v+1]=n[v+2]),a--;var m=Ys(r[g],r,d,y,0,t);d+=m,y-=m,y!==0&&(p=Us(r[d+y-1],r,g,p,p-1,t),p!==0&&(y<=p?h(d,y,g,p):c(d,y,g,p)))}function h(v,d,y,g){var p=0;for(p=0;p<d;p++)o[p]=r[v+p];var m=0,_=y,S=v;if(r[S++]=r[_++],--g===0){for(p=0;p<d;p++)r[S+p]=o[m+p];return}if(d===1){for(p=0;p<g;p++)r[S+p]=r[_+p];r[S+g]=o[m];return}for(var b=e,w,T,C;;){w=0,T=0,C=!1;do if(t(r[_],o[m])<0){if(r[S++]=r[_++],T++,w=0,--g===0){C=!0;break}}else if(r[S++]=o[m++],w++,T=0,--d===1){C=!0;break}while((w|T)<b);if(C)break;do{if(w=Ys(r[_],o,m,d,0,t),w!==0){for(p=0;p<w;p++)r[S+p]=o[m+p];if(S+=w,m+=w,d-=w,d<=1){C=!0;break}}if(r[S++]=r[_++],--g===0){C=!0;break}if(T=Us(o[m],r,_,g,0,t),T!==0){for(p=0;p<T;p++)r[S+p]=r[_+p];if(S+=T,_+=T,g-=T,g===0){C=!0;break}}if(r[S++]=o[m++],--d===1){C=!0;break}b--}while(w>=dn||T>=dn);if(C)break;b<0&&(b=0),b+=2}if(e=b,e<1&&(e=1),d===1){for(p=0;p<g;p++)r[S+p]=r[_+p];r[S+g]=o[m]}else{if(d===0)throw new Error;for(p=0;p<d;p++)r[S+p]=o[m+p]}}function c(v,d,y,g){var p=0;for(p=0;p<g;p++)o[p]=r[y+p];var m=v+d-1,_=g-1,S=y+g-1,b=0,w=0;if(r[S--]=r[m--],--d===0){for(b=S-(g-1),p=0;p<g;p++)r[b+p]=o[p];return}if(g===1){for(S-=d,m-=d,w=S+1,b=m+1,p=d-1;p>=0;p--)r[w+p]=r[b+p];r[S]=o[_];return}for(var T=e;;){var C=0,x=0,D=!1;do if(t(o[_],r[m])<0){if(r[S--]=r[m--],C++,x=0,--d===0){D=!0;break}}else if(r[S--]=o[_--],x++,C=0,--g===1){D=!0;break}while((C|x)<T);if(D)break;do{if(C=d-Ys(o[_],r,v,d,d-1,t),C!==0){for(S-=C,m-=C,d-=C,w=S+1,b=m+1,p=C-1;p>=0;p--)r[w+p]=r[b+p];if(d===0){D=!0;break}}if(r[S--]=o[_--],--g===1){D=!0;break}if(x=g-Us(r[m],o,0,g,g-1,t),x!==0){for(S-=x,_-=x,g-=x,w=S+1,b=_+1,p=0;p<x;p++)r[w+p]=o[b+p];if(g<=1){D=!0;break}}if(r[S--]=r[m--],--d===0){D=!0;break}T--}while(C>=dn||x>=dn);if(D)break;T<0&&(T=0),T+=2}if(e=T,e<1&&(e=1),g===1){for(S-=d,m-=d,w=S+1,b=m+1,p=d-1;p>=0;p--)r[w+p]=r[b+p];r[S]=o[_]}else{if(g===0)throw new Error;for(b=S-(g-1),p=0;p<g;p++)r[b+p]=o[p]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function _o(r,t,e,i){e||(e=0),i||(i=r.length);var n=i-e;if(!(n<2)){var a=0;if(n<xp){a=Xh(r,e,i,t),$h(r,e,i,e+a,t);return}var o=G_(r,t),s=H_(n);do{if(a=Xh(r,e,i,t),a<s){var l=n;l>s&&(l=s),$h(r,e,e+l,e+a,t),a=l}o.pushRun(e,a),o.mergeRuns(),n-=a,e+=a}while(n!==0);o.forceMergeRuns()}}var ce=1,Bn=2,$i=4,Zh=!1;function Ws(){Zh||(Zh=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function qh(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var U_=(function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=qh}return r.prototype.traverse=function(t,e){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(t,e)},r.prototype.getDisplayList=function(t,e){e=e||!1;var i=this._displayList;return(t||!i.length)&&this.updateDisplayList(e),i},r.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,i=this._displayList,n=0,a=e.length;n<a;n++)this._updateAndAddDisplayable(e[n],null,t);i.length=this._displayListLen,_o(i,qh)},r.prototype._updateAndAddDisplayable=function(t,e,i){if(!(t.ignore&&!i)){t.beforeUpdate(),t.update(),t.afterUpdate();var n=t.getClipPath(),a=e&&e.length,o=0,s=t.__clipPaths;if(!t.ignoreClip&&(a||n)){if(s||(s=t.__clipPaths=[]),a)for(var l=0;l<e.length;l++)s[o++]=e[l];for(var u=n,f=t;u;)u.parent=f,u.updateTransform(),s[o++]=u,f=u,u=u.getClipPath()}if(s&&(s.length=o),t.childrenRef){for(var h=t.childrenRef(),c=0;c<h.length;c++){var v=h[c];t.__dirty&&(v.__dirty|=ce),this._updateAndAddDisplayable(v,s,i)}t.__dirty=0}else{var d=t;isNaN(d.z)&&(Ws(),d.z=0),isNaN(d.z2)&&(Ws(),d.z2=0),isNaN(d.zlevel)&&(Ws(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var y=t.getDecalElement&&t.getDecalElement();y&&this._updateAndAddDisplayable(y,s,i);var g=t.getTextGuideLine();g&&this._updateAndAddDisplayable(g,s,i);var p=t.getTextContent();p&&this._updateAndAddDisplayable(p,s,i)}},r.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},r.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,i=t.length;e<i;e++)this.delRoot(t[e]);return}var n=pt(this._roots,t);n>=0&&this._roots.splice(n,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r})(),Bo;Bo=q.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var $n={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var t,e=.1,i=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=i/4):t=i*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/i)))},elasticOut:function(r){var t,e=.1,i=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=i/4):t=i*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/i)+1)},elasticInOut:function(r){var t,e=.1,i=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=i/4):t=i*Math.asin(1/e)/(2*Math.PI),(r*=2)<1?-.5*(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/i)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/i)*.5+1)},backIn:function(r){var t=1.70158;return r*r*((t+1)*r-t)},backOut:function(r){var t=1.70158;return--r*r*((t+1)*r+t)+1},backInOut:function(r){var t=2.5949095;return(r*=2)<1?.5*(r*r*((t+1)*r-t)):.5*((r-=2)*r*((t+1)*r+t)+2)},bounceIn:function(r){return 1-$n.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?$n.bounceIn(r*2)*.5:$n.bounceOut(r*2-1)*.5+.5}},Ea=Math.pow,xr=Math.sqrt,No=1e-8,Cp=1e-4,Kh=xr(3),ka=1/3,Ye=Si(),xe=Si(),tn=Si();function br(r){return r>-No&&r<No}function Dp(r){return r>No||r<-No}function $t(r,t,e,i,n){var a=1-n;return a*a*(a*r+3*n*t)+n*n*(n*i+3*a*e)}function jh(r,t,e,i,n){var a=1-n;return 3*(((t-r)*a+2*(e-t)*n)*a+(i-e)*n*n)}function Ip(r,t,e,i,n,a){var o=i+3*(t-e)-r,s=3*(e-t*2+r),l=3*(t-r),u=r-n,f=s*s-3*o*l,h=s*l-9*o*u,c=l*l-3*s*u,v=0;if(br(f)&&br(h))if(br(s))a[0]=0;else{var d=-l/s;d>=0&&d<=1&&(a[v++]=d)}else{var y=h*h-4*f*c;if(br(y)){var g=h/f,d=-s/o+g,p=-g/2;d>=0&&d<=1&&(a[v++]=d),p>=0&&p<=1&&(a[v++]=p)}else if(y>0){var m=xr(y),_=f*s+1.5*o*(-h+m),S=f*s+1.5*o*(-h-m);_<0?_=-Ea(-_,ka):_=Ea(_,ka),S<0?S=-Ea(-S,ka):S=Ea(S,ka);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(a[v++]=d)}else{var b=(2*f*s-3*o*h)/(2*xr(f*f*f)),w=Math.acos(b)/3,T=xr(f),C=Math.cos(w),d=(-s-2*T*C)/(3*o),p=(-s+T*(C+Kh*Math.sin(w)))/(3*o),x=(-s+T*(C-Kh*Math.sin(w)))/(3*o);d>=0&&d<=1&&(a[v++]=d),p>=0&&p<=1&&(a[v++]=p),x>=0&&x<=1&&(a[v++]=x)}}return v}function Lp(r,t,e,i,n){var a=6*e-12*t+6*r,o=9*t+3*i-3*r-9*e,s=3*t-3*r,l=0;if(br(o)){if(Dp(a)){var u=-s/a;u>=0&&u<=1&&(n[l++]=u)}}else{var f=a*a-4*o*s;if(br(f))n[0]=-a/(2*o);else if(f>0){var h=xr(f),u=(-a+h)/(2*o),c=(-a-h)/(2*o);u>=0&&u<=1&&(n[l++]=u),c>=0&&c<=1&&(n[l++]=c)}}return l}function zo(r,t,e,i,n,a){var o=(t-r)*n+r,s=(e-t)*n+t,l=(i-e)*n+e,u=(s-o)*n+o,f=(l-s)*n+s,h=(f-u)*n+u;a[0]=r,a[1]=o,a[2]=u,a[3]=h,a[4]=h,a[5]=f,a[6]=l,a[7]=i}function Y_(r,t,e,i,n,a,o,s,l,u,f){var h,c=.005,v=1/0,d,y,g,p;Ye[0]=l,Ye[1]=u;for(var m=0;m<1;m+=.05)xe[0]=$t(r,e,n,o,m),xe[1]=$t(t,i,a,s,m),g=di(Ye,xe),g<v&&(h=m,v=g);v=1/0;for(var _=0;_<32&&!(c<Cp);_++)d=h-c,y=h+c,xe[0]=$t(r,e,n,o,d),xe[1]=$t(t,i,a,s,d),g=di(xe,Ye),d>=0&&g<v?(h=d,v=g):(tn[0]=$t(r,e,n,o,y),tn[1]=$t(t,i,a,s,y),p=di(tn,Ye),y<=1&&p<v?(h=y,v=p):c*=.5);return xr(v)}function W_(r,t,e,i,n,a,o,s,l){for(var u=r,f=t,h=0,c=1/l,v=1;v<=l;v++){var d=v*c,y=$t(r,e,n,o,d),g=$t(t,i,a,s,d),p=y-u,m=g-f;h+=Math.sqrt(p*p+m*m),u=y,f=g}return h}function Zt(r,t,e,i){var n=1-i;return n*(n*r+2*i*t)+i*i*e}function Qh(r,t,e,i){return 2*((1-i)*(t-r)+i*(e-t))}function X_(r,t,e,i,n){var a=r-2*t+e,o=2*(t-r),s=r-i,l=0;if(br(a)){if(Dp(o)){var u=-s/o;u>=0&&u<=1&&(n[l++]=u)}}else{var f=o*o-4*a*s;if(br(f)){var u=-o/(2*a);u>=0&&u<=1&&(n[l++]=u)}else if(f>0){var h=xr(f),u=(-o+h)/(2*a),c=(-o-h)/(2*a);u>=0&&u<=1&&(n[l++]=u),c>=0&&c<=1&&(n[l++]=c)}}return l}function Mp(r,t,e){var i=r+e-2*t;return i===0?.5:(r-t)/i}function ra(r,t,e,i,n){var a=(t-r)*i+r,o=(e-t)*i+t,s=(o-a)*i+a;n[0]=r,n[1]=a,n[2]=s,n[3]=s,n[4]=o,n[5]=e}function $_(r,t,e,i,n,a,o,s,l){var u,f=.005,h=1/0;Ye[0]=o,Ye[1]=s;for(var c=0;c<1;c+=.05){xe[0]=Zt(r,e,n,c),xe[1]=Zt(t,i,a,c);var v=di(Ye,xe);v<h&&(u=c,h=v)}h=1/0;for(var d=0;d<32&&!(f<Cp);d++){var y=u-f,g=u+f;xe[0]=Zt(r,e,n,y),xe[1]=Zt(t,i,a,y);var v=di(xe,Ye);if(y>=0&&v<h)u=y,h=v;else{tn[0]=Zt(r,e,n,g),tn[1]=Zt(t,i,a,g);var p=di(tn,Ye);g<=1&&p<h?(u=g,h=p):f*=.5}}return xr(h)}function Z_(r,t,e,i,n,a,o){for(var s=r,l=t,u=0,f=1/o,h=1;h<=o;h++){var c=h*f,v=Zt(r,e,n,c),d=Zt(t,i,a,c),y=v-s,g=d-l;u+=Math.sqrt(y*y+g*g),s=v,l=d}return u}var q_=/cubic-bezier\(([0-9,\.e ]+)\)/;function Ap(r){var t=r&&q_.exec(r);if(t){var e=t[1].split(","),i=+We(e[0]),n=+We(e[1]),a=+We(e[2]),o=+We(e[3]);if(isNaN(i+n+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:Ip(0,i,a,1,l,s)&&$t(0,n,o,1,s[0])}}}var K_=(function(){function r(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Ht,this.ondestroy=t.ondestroy||Ht,this.onrestart=t.onrestart||Ht,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var i=this._life,n=t-this._startTime-this._pausedTime,a=n/i;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=n%i;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(t){this.easing=t,this.easingFunc=at(t)?t:$n[t]||Ap(t)},r})(),Pp=(function(){function r(t){this.value=t}return r})(),j_=(function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new Pp(t);return this.insertEntry(e),e},r.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},r.prototype.remove=function(t){var e=t.prev,i=t.next;e?e.next=i:this.head=i,i?i.prev=e:this.tail=e,t.next=t.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r})(),nn=(function(){function r(t){this._list=new j_,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var i=this._list,n=this._map,a=null;if(n[t]==null){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=i.head;i.remove(l),delete n[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new Pp(e),s.key=t,i.insertEntry(s),n[t]=s}return a},r.prototype.get=function(t){var e=this._map[t],i=this._list;if(e!=null)return e!==i.tail&&(i.remove(e),i.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r})(),Jh={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 Zn(r){return r=Math.round(r),r<0?0:r>255?255:r}function tc(r){return r<0?0:r>1?1:r}function Xs(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Zn(parseFloat(t)/100*255):Zn(parseInt(t,10))}function pi(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?tc(parseFloat(t)/100):tc(parseFloat(t))}function $s(r,t,e){return e<0?e+=1:e>1&&(e-=1),e*6<1?r+(t-r)*e*6:e*2<1?t:e*3<2?r+(t-r)*(2/3-e)*6:r}function Se(r,t,e,i,n){return r[0]=t,r[1]=e,r[2]=i,r[3]=n,r}function Su(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var Rp=new nn(20),Oa=null;function Li(r,t){Oa&&Su(Oa,t),Oa=Rp.put(r,Oa||t.slice())}function Cr(r,t){if(r){t=t||[];var e=Rp.get(r);if(e)return Su(t,e);r=r+"";var i=r.replace(/ /g,"").toLowerCase();if(i in Jh)return Su(t,Jh[i]),Li(r,t),t;var n=i.length;if(i.charAt(0)==="#"){if(n===4||n===5){var a=parseInt(i.slice(1,4),16);if(!(a>=0&&a<=4095)){Se(t,0,0,0,1);return}return Se(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,n===5?parseInt(i.slice(4),16)/15:1),Li(r,t),t}else if(n===7||n===9){var a=parseInt(i.slice(1,7),16);if(!(a>=0&&a<=16777215)){Se(t,0,0,0,1);return}return Se(t,(a&16711680)>>16,(a&65280)>>8,a&255,n===9?parseInt(i.slice(7),16)/255:1),Li(r,t),t}return}var o=i.indexOf("("),s=i.indexOf(")");if(o!==-1&&s+1===n){var l=i.substr(0,o),u=i.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Se(t,+u[0],+u[1],+u[2],1):Se(t,0,0,0,1);f=pi(u.pop());case"rgb":if(u.length>=3)return Se(t,Xs(u[0]),Xs(u[1]),Xs(u[2]),u.length===3?f:pi(u[3])),Li(r,t),t;Se(t,0,0,0,1);return;case"hsla":if(u.length!==4){Se(t,0,0,0,1);return}return u[3]=pi(u[3]),wu(u,t),Li(r,t),t;case"hsl":if(u.length!==3){Se(t,0,0,0,1);return}return wu(u,t),Li(r,t),t;default:return}}Se(t,0,0,0,1)}}function wu(r,t){var e=(parseFloat(r[0])%360+360)%360/360,i=pi(r[1]),n=pi(r[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return t=t||[],Se(t,Zn($s(o,a,e+1/3)*255),Zn($s(o,a,e)*255),Zn($s(o,a,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function Q_(r){if(r){var t=r[0]/255,e=r[1]/255,i=r[2]/255,n=Math.min(t,e,i),a=Math.max(t,e,i),o=a-n,s=(a+n)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+n):u=o/(2-a-n);var f=((a-t)/6+o/2)/o,h=((a-e)/6+o/2)/o,c=((a-i)/6+o/2)/o;t===a?l=c-h:e===a?l=1/3+f-c:i===a&&(l=2/3+h-f),l<0&&(l+=1),l>1&&(l-=1)}var v=[l*360,u,s];return r[3]!=null&&v.push(r[3]),v}}function ec(r,t){var e=Cr(r);if(e){for(var i=0;i<3;i++)e[i]=e[i]*(1-t)|0,e[i]>255?e[i]=255:e[i]<0&&(e[i]=0);return us(e,e.length===4?"rgba":"rgb")}}function bu(r,t,e,i){var n=Cr(r);if(r)return n=Q_(n),e!=null&&(n[1]=pi(at(e)?e(n[1]):e)),i!=null&&(n[2]=pi(at(i)?i(n[2]):i)),us(wu(n),"rgba")}function us(r,t){if(!(!r||!r.length)){var e=r[0]+","+r[1]+","+r[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(e+=","+r[3]),t+"("+e+")"}}function Fo(r,t){var e=Cr(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}var rc=new nn(100);function ic(r){if(U(r)){var t=rc.get(r);return t||(t=ec(r,-.1),rc.put(r,t)),t}else if(ss(r)){var e=k({},r);return e.colorStops=ot(r.colorStops,function(i){return{offset:i.offset,color:ec(i.color,-.1)}}),e}return r}function J_(r){return r.type==="linear"}function t0(r){return r.type==="radial"}(function(){return q.hasGlobalWindow&&at(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}})();var Tu=Array.prototype.slice;function or(r,t,e){return(t-r)*e+r}function Zs(r,t,e,i){for(var n=t.length,a=0;a<n;a++)r[a]=or(t[a],e[a],i);return r}function e0(r,t,e,i){for(var n=t.length,a=n&&t[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=or(t[o][s],e[o][s],i)}return r}function Ba(r,t,e,i){for(var n=t.length,a=0;a<n;a++)r[a]=t[a]+e[a]*i;return r}function nc(r,t,e,i){for(var n=t.length,a=n&&t[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=t[o][s]+e[o][s]*i}return r}function r0(r,t){for(var e=r.length,i=t.length,n=e>i?t:r,a=Math.min(e,i),o=n[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(e,i);s++)n.push({offset:o.offset,color:o.color.slice()})}function i0(r,t,e){var i=r,n=t;if(!(!i.push||!n.push)){var a=i.length,o=n.length;if(a!==o){var s=a>o;if(s)i.length=o;else for(var l=a;l<o;l++)i.push(e===1?n[l]:Tu.call(n[l]))}for(var u=i[0]&&i[0].length,l=0;l<i.length;l++)if(e===1)isNaN(i[l])&&(i[l]=n[l]);else for(var f=0;f<u;f++)isNaN(i[l][f])&&(i[l][f]=n[l][f])}}function So(r){if(se(r)){var t=r.length;if(se(r[0])){for(var e=[],i=0;i<t;i++)e.push(Tu.call(r[i]));return e}return Tu.call(r)}return r}function wo(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=r[3]==null?1:r[3],"rgba("+r.join(",")+")"}function n0(r){return se(r&&r[0])?2:1}var Na=0,bo=1,Ep=2,Nn=3,xu=4,Cu=5,ac=6;function oc(r){return r===xu||r===Cu}function za(r){return r===bo||r===Ep}var pn=[0,0,0,0],a0=(function(){function r(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,e,i){this._needsSort=!0;var n=this.keyframes,a=n.length,o=!1,s=ac,l=e;if(se(e)){var u=n0(e);s=u,(u===1&&!gt(e[0])||u===2&&!gt(e[0][0]))&&(o=!0)}else if(gt(e)&&!o_(e))s=Na;else if(U(e))if(!isNaN(+e))s=Na;else{var f=Cr(e);f&&(l=f,s=Nn)}else if(ss(e)){var h=k({},l);h.colorStops=ot(e.colorStops,function(v){return{offset:v.offset,color:Cr(v.color)}}),J_(e)?s=xu:t0(e)&&(s=Cu),l=h}a===0?this.valType=s:(s!==this.valType||s===ac)&&(o=!0),this.discrete=this.discrete||o;var c={time:t,value:l,rawValue:e,percent:0};return i&&(c.easing=i,c.easingFunc=at(i)?i:$n[i]||Ap(i)),n.push(c),c},r.prototype.prepare=function(t,e){var i=this.keyframes;this._needsSort&&i.sort(function(y,g){return y.time-g.time});for(var n=this.valType,a=i.length,o=i[a-1],s=this.discrete,l=za(n),u=oc(n),f=0;f<a;f++){var h=i[f],c=h.value,v=o.value;h.percent=h.time/t,s||(l&&f!==a-1?i0(c,v,n):u&&r0(c.colorStops,v.colorStops))}if(!s&&n!==Cu&&e&&this.needsAnimate()&&e.needsAnimate()&&n===e.valType&&!e._finished){this._additiveTrack=e;for(var d=i[0].value,f=0;f<a;f++)n===Na?i[f].additiveValue=i[f].value-d:n===Nn?i[f].additiveValue=Ba([],i[f].value,d,-1):za(n)&&(i[f].additiveValue=n===bo?Ba([],i[f].value,d,-1):nc([],i[f].value,d,-1))}},r.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i=this._additiveTrack!=null,n=i?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===Nn,f,h=this._lastFr,c=Math.min,v,d;if(s===1)v=d=o[0];else{if(e<0)f=0;else if(e<this._lastFrP){var y=c(h+1,s-1);for(f=y;f>=0&&!(o[f].percent<=e);f--);f=c(f,s-2)}else{for(f=h;f<s&&!(o[f].percent>e);f++);f=c(f-1,s-2)}d=o[f+1],v=o[f]}if(v&&d){this._lastFr=f,this._lastFrP=e;var g=d.percent-v.percent,p=g===0?1:c((e-v.percent)/g,1);d.easingFunc&&(p=d.easingFunc(p));var m=i?this._additiveValue:u?pn:t[l];if((za(a)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)t[l]=p<1?v.rawValue:d.rawValue;else if(za(a))a===bo?Zs(m,v[n],d[n],p):e0(m,v[n],d[n],p);else if(oc(a)){var _=v[n],S=d[n],b=a===xu;t[l]={type:b?"linear":"radial",x:or(_.x,S.x,p),y:or(_.y,S.y,p),colorStops:ot(_.colorStops,function(T,C){var x=S.colorStops[C];return{offset:or(T.offset,x.offset,p),color:wo(Zs([],T.color,x.color,p))}}),global:S.global},b?(t[l].x2=or(_.x2,S.x2,p),t[l].y2=or(_.y2,S.y2,p)):t[l].r=or(_.r,S.r,p)}else if(u)Zs(m,v[n],d[n],p),i||(t[l]=wo(m));else{var w=or(v[n],d[n],p);i?this._additiveValue=w:t[l]=w}i&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,i=this.propName,n=this._additiveValue;e===Na?t[i]=t[i]+n:e===Nn?(Cr(t[i],pn),Ba(pn,pn,n,1),t[i]=wo(pn)):e===bo?Ba(t[i],t[i],n,1):e===Ep&&nc(t[i],t[i],n,1)},r})(),Rf=(function(){function r(t,e,i,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&n){Cf("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=i}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(t){this._target=t},r.prototype.when=function(t,e,i){return this.whenWithKeys(t,e,Lt(e),i)},r.prototype.whenWithKeys=function(t,e,i,n){for(var a=this._tracks,o=0;o<i.length;o++){var s=i[o],l=a[s];if(!l){l=a[s]=new a0(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var h=f.keyframes,c=h[h.length-1];u=c&&c.value,f.valType===Nn&&u&&(u=wo(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,So(u),n),this._trackKeys.push(s)}l.addKeyframe(t,So(e[s]),n)}return this._maxTime=Math.max(this._maxTime,t),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,i=0;i<e;i++)t[i].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var i=0;i<e.length;i++)e[i].call(this)},r.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,i=0;i<e.length;i++)t[e[i]].setFinished()},r.prototype._getAdditiveTrack=function(t){var e,i=this._additiveAnimators;if(i)for(var n=0;n<i.length;n++){var a=i[n].getTrack(t);a&&(e=a)}return e},r.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,i=[],n=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(n,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=u[f-1];h&&(e._target[s.propName]=h.rawValue),s.setFinished()}else i.push(s)}if(i.length||this._force){var c=new K_({life:n,loop:this._loop,delay:this._delay||0,onframe:function(v){e._started=2;var d=e._additiveAnimators;if(d){for(var y=!1,g=0;g<d.length;g++)if(d[g]._clip){y=!0;break}y||(e._additiveAnimators=null)}for(var g=0;g<i.length;g++)i[g].step(e._target,v);var p=e._onframeCbs;if(p)for(var g=0;g<p.length;g++)p[g](e._target,v)},ondestroy:function(){e._doneCallback()}});this._clip=c,this.animation&&this.animation.addClip(c),t&&c.setEasing(t)}else this._doneCallback();return this}},r.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},r.prototype.delay=function(t){return this._delay=t,this},r.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},r.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},r.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(t){return this._tracks[t]},r.prototype.getTracks=function(){var t=this;return ot(this._trackKeys,function(e){return t._tracks[e]})},r.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var i=this._tracks,n=this._trackKeys,a=0;a<t.length;a++){var o=i[t[a]];o&&!o.isFinished()&&(e?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<n.length;a++)if(!i[n[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(t,e,i){if(t){e=e||this._trackKeys;for(var n=0;n<e.length;n++){var a=e[n],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[i?0:s.length-1];l&&(t[a]=So(l.rawValue))}}}},r.prototype.__changeFinalValue=function(t,e){e=e||Lt(t);for(var i=0;i<e.length;i++){var n=e[i],a=this._tracks[n];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,t[n]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},r})();function ji(){return new Date().getTime()}var o0=(function(r){G(t,r);function t(e){var i=r.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,e=e||{},i.stage=e.stage||{},i}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 i=e.getClip();i&&this.addClip(i)},t.prototype.removeClip=function(e){if(e.animation){var i=e.prev,n=e.next;i?i.next=n:this._head=n,n?n.prev=i:this._tail=i,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var i=e.getClip();i&&this.removeClip(i),e.animation=null},t.prototype.update=function(e){for(var i=ji()-this._pausedTime,n=i-this._time,a=this._head;a;){var o=a.next,s=a.step(i,n);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=i,e||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function i(){e._running&&(Bo(i),!e._paused&&e.update())}Bo(i)},t.prototype.start=function(){this._running||(this._time=ji(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=ji(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=ji()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var i=e.next;e.prev=e.next=e.animation=null,e=i}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,i){i=i||{},this.start();var n=new Rf(e,i.loop);return this.addAnimator(n),n},t})(ke),s0=300,qs=q.domSupported,Ks=(function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=ot(r,function(n){var a=n.replace("mouse","pointer");return e.hasOwnProperty(a)?a:n});return{mouse:r,touch:t,pointer:i}})(),sc={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},lc=!1;function Du(r){var t=r.pointerType;return t==="pen"||t==="touch"}function l0(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function js(r){r&&(r.zrByTouch=!0)}function u0(r,t){return we(r.dom,new f0(r,t),!0)}function kp(r,t){for(var e=t,i=!1;e&&e.nodeType!==9&&!(i=e.domBelongToZr||e!==t&&e===r.painterRoot);)e=e.parentNode;return i}var f0=(function(){function r(t,e){this.stopPropagation=Ht,this.stopImmediatePropagation=Ht,this.preventDefault=Ht,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r})(),Le={mousedown:function(r){r=we(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=we(this.dom,r);var t=this.__mayPointerCapture;t&&(r.zrX!==t[0]||r.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=we(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=we(this.dom,r);var t=r.toElement||r.relatedTarget;kp(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){lc=!0,r=we(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){lc||(r=we(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=we(this.dom,r),js(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Le.mousemove.call(this,r),Le.mousedown.call(this,r)},touchmove:function(r){r=we(this.dom,r),js(r),this.handler.processGesture(r,"change"),Le.mousemove.call(this,r)},touchend:function(r){r=we(this.dom,r),js(r),this.handler.processGesture(r,"end"),Le.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<s0&&Le.click.call(this,r)},pointerdown:function(r){Le.mousedown.call(this,r)},pointermove:function(r){Du(r)||Le.mousemove.call(this,r)},pointerup:function(r){Le.mouseup.call(this,r)},pointerout:function(r){Du(r)||Le.mouseout.call(this,r)}};I(["click","dblclick","contextmenu"],function(r){Le[r]=function(t){t=we(this.dom,t),this.trigger(r,t)}});var Iu={pointermove:function(r){Du(r)||Iu.mousemove.call(this,r)},pointerup:function(r){Iu.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),t&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function h0(r,t){var e=t.domHandlers;q.pointerEventsSupported?I(Ks.pointer,function(i){To(t,i,function(n){e[i].call(r,n)})}):(q.touchEventsSupported&&I(Ks.touch,function(i){To(t,i,function(n){e[i].call(r,n),l0(t)})}),I(Ks.mouse,function(i){To(t,i,function(n){n=Lf(n),t.touching||e[i].call(r,n)})}))}function c0(r,t){q.pointerEventsSupported?I(sc.pointer,e):q.touchEventsSupported||I(sc.mouse,e);function e(i){function n(a){a=Lf(a),kp(r,a.target)||(a=u0(r,a),t.domHandlers[i].call(r,a))}To(t,i,n,{capture:!0})}}function To(r,t,e,i){r.mounted[t]=e,r.listenerOpts[t]=i,I_(r.domTarget,t,e,i)}function Qs(r){var t=r.mounted;for(var e in t)t.hasOwnProperty(e)&&L_(r.domTarget,e,t[e],r.listenerOpts[e]);r.mounted={}}var uc=(function(){function r(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return r})(),v0=(function(r){G(t,r);function t(e,i){var n=r.call(this)||this;return n.__pointerCapturing=!1,n.dom=e,n.painterRoot=i,n._localHandlerScope=new uc(e,Le),qs&&(n._globalHandlerScope=new uc(document,Iu)),h0(n,n._localHandlerScope),n}return t.prototype.dispose=function(){Qs(this._localHandlerScope),qs&&Qs(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,qs&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var i=this._globalHandlerScope;e?c0(this,i):Qs(i)}},t})(ke),Op=1;q.hasGlobalWindow&&(Op=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Ho=Op,Lu=.4,Mu="#333",Au="#ccc",d0="#eee",fc=Mf,hc=5e-5;function Hr(r){return r>hc||r<-hc}var Vr=[],Mi=[],Js=$e(),tl=Math.abs,fi=(function(){function r(){}return r.prototype.getLocalTransform=function(t){return r.getLocalTransform(this,t)},r.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},r.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},r.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},r.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},r.prototype.needLocalTransform=function(){return Hr(this.rotation)||Hr(this.x)||Hr(this.y)||Hr(this.scaleX-1)||Hr(this.scaleY-1)||Hr(this.skewX)||Hr(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),i=this.transform;if(!(e||t)){i&&(fc(i),this.invTransform=null);return}i=i||$e(),e?this.getLocalTransform(i):fc(i),t&&(e?Wn(i,t,i):Af(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(Vr);var i=Vr[0]<0?-1:1,n=Vr[1]<0?-1:1,a=((Vr[0]-i)*e+i)/Vr[0]||0,o=((Vr[1]-n)*e+n)/Vr[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||$e(),Sa(this.invTransform,t)},r.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},r.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],n=Math.atan2(t[1],t[0]),a=Math.PI/2+n-Math.atan2(t[3],t[2]);i=Math.sqrt(i)*Math.cos(a),e=Math.sqrt(e),this.skewX=a,this.skewY=0,this.rotation=-n,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=i,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||$e(),Wn(Mi,t.invTransform,e),e=Mi);var i=this.originX,n=this.originY;(i||n)&&(Js[4]=i,Js[5]=n,Wn(Mi,e,Js),Mi[4]-=i,Mi[5]-=n,e=Mi),this.setLocalTransform(e)}},r.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},r.prototype.transformCoordToLocal=function(t,e){var i=[t,e],n=this.invTransform;return n&&ve(i,i,n),i},r.prototype.transformCoordToGlobal=function(t,e){var i=[t,e],n=this.transform;return n&&ve(i,i,n),i},r.prototype.getLineScale=function(){var t=this.transform;return t&&tl(t[0]-1)>1e-10&&tl(t[3]-1)>1e-10?Math.sqrt(tl(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){Pu(this,t)},r.getLocalTransform=function(t,e){e=e||[];var i=t.originX||0,n=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,f=t.x,h=t.y,c=t.skewX?Math.tan(t.skewX):0,v=t.skewY?Math.tan(-t.skewY):0;if(i||n||s||l){var d=i+s,y=n+l;e[4]=-d*a-c*y*o,e[5]=-y*o-v*d*a}else e[4]=e[5]=0;return e[0]=a,e[3]=o,e[1]=v*a,e[2]=c*o,u&&Pf(e,e,u),e[4]+=i+f,e[5]+=n+h,e},r.initDefaultProps=(function(){var t=r.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})(),r})(),ia=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Pu(r,t){for(var e=0;e<ia.length;e++){var i=ia[e];r[i]=t[i]}}function Ze(r){Fa||(Fa=new nn(100)),r=r||Lr;var t=Fa.get(r);return t||(t={font:r,strWidthCache:new nn(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:cr.measureText("国",r).width,asciiCharWidth:cr.measureText("a",r).width},Fa.put(r,t)),t}var Fa;function p0(r){if(!(el>=cc)){r=r||Lr;for(var t=[],e=+new Date,i=0;i<=127;i++)t[i]=cr.measureText(String.fromCharCode(i),r).width;var n=+new Date-e;return n>16?el=cc:n>2&&el++,t}}var el=0,cc=5;function Bp(r,t){return r.asciiWidthMapTried||(r.asciiWidthMap=p0(r.font),r.asciiWidthMapTried=!0),0<=t&&t<=127?r.asciiWidthMap!=null?r.asciiWidthMap[t]:r.asciiCharWidth:r.stWideCharWidth}function qe(r,t){var e=r.strWidthCache,i=e.get(t);return i==null&&(i=cr.measureText(t,r.font).width,e.put(t,i)),i}function vc(r,t,e,i){var n=qe(Ze(t),r),a=fs(t),o=an(0,n,e),s=gi(0,a,i),l=new J(o,s,n,a);return l}function g0(r,t,e,i){var n=((r||"")+"").split(`
2
- `),a=n.length;if(a===1)return vc(n[0],t,e,i);for(var o=new J(0,0,0,0),s=0;s<n.length;s++){var l=vc(n[s],t,e,i);s===0?o.copy(l):o.union(l)}return o}function an(r,t,e,i){return e==="right"?i?r+=t:r-=t:e==="center"&&(i?r+=t/2:r-=t/2),r}function gi(r,t,e,i){return e==="middle"?i?r+=t/2:r-=t/2:e==="bottom"&&(i?r+=t:r-=t),r}function fs(r){return Ze(r).stWideCharWidth}function na(r,t){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*t:parseFloat(r):r}function Np(r,t,e){var i=t.position||"inside",n=t.distance!=null?t.distance:5,a=e.height,o=e.width,s=a/2,l=e.x,u=e.y,f="left",h="top";if(i instanceof Array)l+=na(i[0],e.width),u+=na(i[1],e.height),f=null,h=null;else switch(i){case"left":l-=n,u+=s,f="right",h="middle";break;case"right":l+=n+o,u+=s,h="middle";break;case"top":l+=o/2,u-=n,f="center",h="bottom";break;case"bottom":l+=o/2,u+=a+n,f="center";break;case"inside":l+=o/2,u+=s,f="center",h="middle";break;case"insideLeft":l+=n,u+=s,h="middle";break;case"insideRight":l+=o-n,u+=s,f="right",h="middle";break;case"insideTop":l+=o/2,u+=n,f="center";break;case"insideBottom":l+=o/2,u+=a-n,f="center",h="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,f="right";break;case"insideBottomLeft":l+=n,u+=a-n,h="bottom";break;case"insideBottomRight":l+=o-n,u+=a-n,f="right",h="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=h,r}var rl="__zr_normal__",il=ia.concat(["ignore"]),y0=hn(ia,function(r,t){return r[t]=!0,r},{ignore:!1}),Ai={},m0=new J(0,0,0,0),Ha=[],hs=(function(){function r(t){this.id=pp(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,e,i){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=e,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var i=this.textConfig,n=i.local,a=e.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=n?this:null;var u=!1;a.copyTransform(e);var f=i.position!=null,h=i.autoOverflowArea,c=void 0;if((h||f)&&(c=m0,i.layoutRect?c.copy(i.layoutRect):c.copy(this.getBoundingRect()),n||c.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(Ai,i,c):Np(Ai,i,c),a.x=Ai.x,a.y=Ai.y,o=Ai.align,s=Ai.verticalAlign;var v=i.origin;if(v&&i.rotation!=null){var d=void 0,y=void 0;v==="center"?(d=c.width*.5,y=c.height*.5):(d=na(v[0],c.width),y=na(v[1],c.height)),u=!0,a.originX=-a.x+d+(n?0:c.x),a.originY=-a.y+y+(n?0:c.y)}}i.rotation!=null&&(a.rotation=i.rotation);var g=i.offset;g&&(a.x+=g[0],a.y+=g[1],u||(a.originX=-g[0],a.originY=-g[1]));var p=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(h){var m=p.overflowRect=p.overflowRect||new J(0,0,0,0);a.getLocalTransform(Ha),Sa(Ha,Ha),J.copy(m,c),m.applyTransform(Ha)}else p.overflowRect=null;var _=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,S=void 0,b=void 0,w=void 0;_&&this.canBeInsideText()?(S=i.insideFill,b=i.insideStroke,(S==null||S==="auto")&&(S=this.getInsideTextFill()),(b==null||b==="auto")&&(b=this.getInsideTextStroke(S),w=!0)):(S=i.outsideFill,b=i.outsideStroke,(S==null||S==="auto")&&(S=this.getOutsideFill()),(b==null||b==="auto")&&(b=this.getOutsideStroke(S),w=!0)),S=S||"#000",(S!==p.fill||b!==p.stroke||w!==p.autoStroke||o!==p.align||s!==p.verticalAlign)&&(l=!0,p.fill=S,p.stroke=b,p.autoStroke=w,p.align=o,p.verticalAlign=s,e.setDefaultTextStyle(p)),e.__dirty|=ce,l&&e.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(t){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Au:Mu},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),i=typeof e=="string"&&Cr(e);i||(i=[255,255,255,1]);for(var n=i[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)i[o]=i[o]*n+(a?0:255)*(1-n);return i[3]=1,us(i,"rgba")},r.prototype.traverse=function(t,e){},r.prototype.attrKV=function(t,e){t==="textConfig"?this.setTextConfig(e):t==="textContent"?this.setTextContent(e):t==="clipPath"?this.setClipPath(e):t==="extra"?(this.extra=this.extra||{},k(this.extra,e)):this[t]=e},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(t,e){if(typeof t=="string")this.attrKV(t,e);else if(Y(t))for(var i=t,n=Lt(i),a=0;a<n.length;a++){var o=n[a];this.attrKV(o,t[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,i=0;i<this.animators.length;i++){var n=this.animators[i],a=n.__fromStateTransition;if(!(n.getLoop()||a&&a!==rl)){var o=n.targetName,s=o?e[o]:e;n.saveTo(s)}}},r.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,il)},r.prototype._savePrimaryToNormal=function(t,e,i){for(var n=0;n<i.length;n++){var a=i[n];t[a]!=null&&!(a in e)&&(e[a]=this[a])}},r.prototype.hasState=function(){return this.currentStates.length>0},r.prototype.getState=function(t){return this.states[t]},r.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},r.prototype.clearStates=function(t){this.useState(rl,!1,t)},r.prototype.useState=function(t,e,i,n){var a=t===rl,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(pt(s,t)>=0&&(e||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!a){Cf("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||n);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,e,!i&&!this.__inHover&&l&&l.duration>0,l);var h=this._textContent,c=this._textGuide;return h&&h.useState(t,e,i,f),c&&c.useState(t,e,i,f),a?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ce),u}}},r.prototype.useStates=function(t,e,i){if(!t.length)this.clearStates();else{var n=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(t[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=t[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,t)),f||(f=this.states[u]),f&&n.push(f)}var h=n[o-1],c=!!(h&&h.hoverLayer||i);c&&this._toggleHoverLayerFlag(!0);var v=this._mergeStates(n),d=this.stateTransition;this.saveCurrentToNormalState(v),this._applyStateObj(t.join(","),v,this._normalState,!1,!e&&!this.__inHover&&d&&d.duration>0,d);var y=this._textContent,g=this._textGuide;y&&y.useStates(t,e,c),g&&g.useStates(t,e,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ce)}},r.prototype.isSilent=function(){for(var t=this;t;){if(t.silent)return!0;var e=t.__hostTarget;t=e?t.ignoreHostSilent?null:e:t.parent}return!1},r.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},r.prototype.removeState=function(t){var e=pt(this.currentStates,t);if(e>=0){var i=this.currentStates.slice();i.splice(e,1),this.useStates(i)}},r.prototype.replaceState=function(t,e,i){var n=this.currentStates.slice(),a=pt(n,t),o=pt(n,e)>=0;a>=0?o?n.splice(a,1):n[a]=e:i&&!o&&n.push(e),this.useStates(n)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},i,n=0;n<t.length;n++){var a=t[n];k(e,a),a.textConfig&&(i=i||{},k(i,a.textConfig))}return i&&(e.textConfig=i),e},r.prototype._applyStateObj=function(t,e,i,n,a,o){var s=!(e&&n);e&&e.textConfig?(this.textConfig=k({},n?this.textConfig:i.textConfig),k(this.textConfig,e.textConfig)):s&&i.textConfig&&(this.textConfig=i.textConfig);for(var l={},u=!1,f=0;f<il.length;f++){var h=il[f],c=a&&y0[h];e&&e[h]!=null?c?(u=!0,l[h]=e[h]):this[h]=e[h]:s&&i[h]!=null&&(c?(u=!0,l[h]=i[h]):this[h]=i[h])}if(!a)for(var f=0;f<this.animators.length;f++){var v=this.animators[f],d=v.targetName;v.getLoop()||v.__changeFinalValue(d?(e||i)[d]:e||i)}u&&this._transitionState(t,l,o)},r.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},r.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},r.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new fi,this._attachComponent(t),this._textContent=t,this.markRedraw())},r.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),k(this.textConfig,t),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=ce;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,i=this._textGuide;e&&(e.__inHover=t),i&&(i.__inHover=t)},r.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.addAnimator(e[i]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},r.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.removeAnimator(e[i]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},r.prototype.animate=function(t,e,i){var n=t?this[t]:this,a=new Rf(n,e,i);return t&&(a.targetName=t),this.addAnimator(a,t),a},r.prototype.addAnimator=function(t,e){var i=this.__zr,n=this;t.during(function(){n.updateDuringAnimation(e)}).done(function(){var a=n.animators,o=pt(a,t);o>=0&&a.splice(o,1)}),this.animators.push(t),i&&i.animation.addAnimator(t),i&&i.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,e){for(var i=this.animators,n=i.length,a=[],o=0;o<n;o++){var s=i[o];!t||t===s.scope?s.stop(e):a.push(s)}return this.animators=a,this},r.prototype.animateTo=function(t,e,i){nl(this,t,e,i)},r.prototype.animateFrom=function(t,e,i){nl(this,t,e,i,!0)},r.prototype._transitionState=function(t,e,i,n){for(var a=nl(this,e,i,n),o=0;o<a.length;o++)a[o].__fromStateTransition=t},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=(function(){var t=r.prototype;t.type="element",t.name="",t.ignore=t.silent=t.ignoreHostSilent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=ce;function e(i,n,a,o){Object.defineProperty(t,i,{get:function(){if(!this[n]){var l=this[n]=[];s(this,l)}return this[n]},set:function(l){this[a]=l[0],this[o]=l[1],this[n]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[a]},set:function(f){l[a]=f}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(f){l[o]=f}})}}Object.defineProperty&&(e("position","_legacyPos","x","y"),e("scale","_legacyScale","scaleX","scaleY"),e("origin","_legacyOrigin","originX","originY"))})(),r})();Ee(hs,ke);Ee(hs,fi);function nl(r,t,e,i,n){e=e||{};var a=[];zp(r,"",r,t,e,i,a,n);var o=a.length,s=!1,l=e.done,u=e.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},h=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&e.during&&a[0].during(function(d,y){e.during(y)});for(var c=0;c<a.length;c++){var v=a[c];f&&v.done(f),h&&v.aborted(h),e.force&&v.duration(e.duration),v.start(e.easing)}return a}function al(r,t,e){for(var i=0;i<e;i++)r[i]=t[i]}function _0(r){return se(r[0])}function S0(r,t,e){if(se(t[e]))if(se(r[e])||(r[e]=[]),le(t[e])){var i=t[e].length;r[e].length!==i&&(r[e]=new t[e].constructor(i),al(r[e],t[e],i))}else{var n=t[e],a=r[e],o=n.length;if(_0(n))for(var s=n[0].length,l=0;l<o;l++)a[l]?al(a[l],n[l],s):a[l]=Array.prototype.slice.call(n[l]);else al(a,n,o);a.length=n.length}else r[e]=t[e]}function w0(r,t){return r===t||se(r)&&se(t)&&b0(r,t)}function b0(r,t){var e=r.length;if(e!==t.length)return!1;for(var i=0;i<e;i++)if(r[i]!==t[i])return!1;return!0}function zp(r,t,e,i,n,a,o,s){for(var l=Lt(i),u=n.duration,f=n.delay,h=n.additive,c=n.setToFinal,v=!Y(a),d=r.animators,y=[],g=0;g<l.length;g++){var p=l[g],m=i[p];if(m!=null&&e[p]!=null&&(v||a[p]))if(Y(m)&&!se(m)&&!ss(m)){if(t){s||(e[p]=m,r.updateDuringAnimation(t));continue}zp(r,p,e[p],m,n,a&&a[p],o,s)}else y.push(p);else s||(e[p]=m,r.updateDuringAnimation(t),y.push(p))}var _=y.length;if(!h&&_)for(var S=0;S<d.length;S++){var b=d[S];if(b.targetName===t){var w=b.stopTracks(y);if(w){var T=pt(d,b);d.splice(T,1)}}}if(n.force||(y=he(y,function(L){return!w0(i[L],e[L])}),_=y.length),_>0||n.force&&!o.length){var C=void 0,x=void 0,D=void 0;if(s){x={},c&&(C={});for(var S=0;S<_;S++){var p=y[S];x[p]=e[p],c?C[p]=i[p]:e[p]=i[p]}}else if(c){D={};for(var S=0;S<_;S++){var p=y[S];D[p]=So(e[p]),S0(e,i,p)}}var b=new Rf(e,!1,!1,h?he(d,function(A){return A.targetName===t}):null);b.targetName=t,n.scope&&(b.scope=n.scope),c&&C&&b.whenWithKeys(0,C,y),D&&b.whenWithKeys(0,D,y),b.whenWithKeys(u??500,s?x:i,y).delay(f||0),r.addAnimator(b,t),o.push(b)}}var Et=(function(r){G(t,r);function t(e){var i=r.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(e),i}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 i=this._children,n=0;n<i.length;n++)if(i[n].name===e)return i[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,i){if(e&&e!==this&&e.parent!==this&&i&&i.parent===this){var n=this._children,a=n.indexOf(i);a>=0&&(n.splice(a,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,i){var n=pt(this._children,e);return n>=0&&this.replaceAt(i,n),this},t.prototype.replaceAt=function(e,i){var n=this._children,a=n[i];if(e&&e!==this&&e.parent!==this&&e!==a){n[i]=e,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var i=this.__zr;i&&i!==e.__zr&&e.addSelfToZr(i),i&&i.refresh()},t.prototype.remove=function(e){var i=this.__zr,n=this._children,a=pt(n,e);return a<0?this:(n.splice(a,1),e.parent=null,i&&e.removeSelfFromZr(i),i&&i.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,i=this.__zr,n=0;n<e.length;n++){var a=e[n];i&&a.removeSelfFromZr(i),a.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,i){for(var n=this._children,a=0;a<n.length;a++){var o=n[a];e.call(i,o,a)}return this},t.prototype.traverse=function(e,i){for(var n=0;n<this._children.length;n++){var a=this._children[n],o=e.call(i,a);a.isGroup&&!o&&a.traverse(e,i)}return this},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.removeSelfFromZr(e)}},t.prototype.getBoundingRect=function(e){for(var i=new J(0,0,0,0),n=e||this._children,a=[],o=null,s=0;s<n.length;s++){var l=n[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(a);f?(J.applyTransform(i,u,f),o=o||i.clone(),o.union(i)):(o=o||u.clone(),o.union(u))}}return o||i},t})(hs);Et.prototype.type="group";var xo={},Fp={};function T0(r){delete Fp[r]}function x0(r){if(!r)return!1;if(typeof r=="string")return Fo(r,1)<Lu;if(r.colorStops){for(var t=r.colorStops,e=0,i=t.length,n=0;n<i;n++)e+=Fo(t[n].color,1);return e/=i,e<Lu}return!1}var C0=(function(){function r(t,e,i){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,i=i||{},this.dom=e,this.id=t;var a=new U_,o=i.renderer||"canvas";xo[o]||(o=Lt(xo)[0]),i.useDirtyRect=i.useDirtyRect==null?!1:i.useDirtyRect;var s=new xo[o](e,a,i,t),l=i.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!q.node&&!q.worker&&!l?new v0(s.getViewportRoot(),s.root):null,f=i.useCoarsePointer,h=f==null||f==="auto"?q.touchEventsSupported:!!f,c=44,v;h&&(v=$(i.pointerSize,c)),this.handler=new bp(a,s,u,s.root,v),this.animation=new o0({stage:{update:l?null:function(){return n._flush(!0)}}}),l||this.animation.start()}return r.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},r.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},r.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=x0(t))},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(t){this._darkMode=t},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},r.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},r.prototype.flush=function(){this._disposed||this._flush(!1)},r.prototype._flush=function(t){var e,i=ji();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var n=ji();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:n-i})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},r.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},r.prototype.on=function(t,e,i){return this._disposed||this.handler.on(t,e,i),this},r.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},r.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},r.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof Et&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},r.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,T0(this.id))},r})();function dc(r,t){var e=new C0(pp(),r,t);return Fp[e.id]=e,e}function D0(r,t){xo[r]=t}var pc=1e-4,Hp=20;function I0(r){return r.replace(/^\s+|\s+$/g,"")}var aa=Math.min,Ae=Math.max,lr=Math.abs;function gc(r,t,e,i){var n=t[0],a=t[1],o=e[0],s=e[1],l=a-n,u=s-o;if(l===0)return u===0?o:(o+s)/2;{if(r===n)return o;if(r===a)return s}return(r-n)/l*u+o}var re=L0;function L0(r,t,e){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return M0(r,t,e)}function M0(r,t,e){return U(r)?I0(r).match(/%$/)?parseFloat(r)/100*t+(e||0):parseFloat(r):r==null?NaN:+r}function Vp(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),Hp),r=(+r).toFixed(t),e?r:+r}function yc(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return A0(r)}function A0(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),i=e>0?+t.slice(e+1):0,n=e>0?e:t.length,a=t.indexOf("."),o=a<0?0:n-1-a;return Math.max(0,o-i)}function P0(r,t){var e=Math.max(yc(r),yc(t)),i=r+t;return e>Hp?i:Vp(i,e)}function Gp(r){var t=Math.PI*2;return(r%t+t)%t}function Vo(r){return r>-pc&&r<pc}var R0=/^(?:(\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 cs(r){if(r instanceof Date)return r;if(U(r)){var t=R0.exec(r);if(!t)return new Date(NaN);if(t[8]){var e=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(e-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,e,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else 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)}else if(r==null)return new Date(NaN);return new Date(Math.round(r))}function Go(r){var t=parseFloat(r);return t==r&&(t!==0||!U(r)||r.indexOf("x")<=0)?t:NaN}function E0(r){return!isNaN(Go(r))}function Up(){return Math.round(Math.random()*9)}function Yp(r,t){return t===0?r:Yp(t,r%t)}function mc(r,t){return r==null?t:t==null?r:r*t/Yp(r,t)}var k0="[ECharts] ",O0=typeof console<"u"&&console.warn&&console.log;function B0(r,t,e){O0&&console[r](k0+t)}function Wp(r,t){B0("error",r)}function ie(r){throw new Error(r)}var Xp="series\0",N0="\0_ec_\0";function qt(r){return r instanceof Array?r:r==null?[]:[r]}function Ru(r,t,e){if(r){r[t]=r[t]||{},r.emphasis=r.emphasis||{},r.emphasis[t]=r.emphasis[t]||{};for(var i=0,n=e.length;i<n;i++){var a=e[i];!r.emphasis[t].hasOwnProperty(a)&&r[t].hasOwnProperty(a)&&(r.emphasis[t][a]=r[t][a])}}}var _c=["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"];function wa(r){return Y(r)&&!V(r)&&!(r instanceof Date)?r.value:r}function z0(r){return Y(r)&&!(r instanceof Array)}function F0(r,t,e){var i=e==="normalMerge",n=e==="replaceMerge",a=e==="replaceAll";r=r||[],t=(t||[]).slice();var o=Q();I(t,function(l,u){if(!Y(l)){t[u]=null;return}});var s=H0(r,o,e);return(i||n)&&V0(s,r,o,t),i&&G0(s,t),i||n?U0(s,t,n):a&&Y0(s,t),W0(s),s}function H0(r,t,e){var i=[];if(e==="replaceAll")return i;for(var n=0;n<r.length;n++){var a=r[n];a&&a.id!=null&&t.set(a.id,n),i.push({existing:e==="replaceMerge"||oa(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return i}function V0(r,t,e,i){I(i,function(n,a){if(!(!n||n.id==null)){var o=qn(n.id),s=e.get(o);if(s!=null){var l=r[s];je(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=n,l.existing=t[s],i[a]=null}}})}function G0(r,t){I(t,function(e,i){if(!(!e||e.name==null))for(var n=0;n<r.length;n++){var a=r[n].existing;if(!r[n].newOption&&a&&(a.id==null||e.id==null)&&!oa(e)&&!oa(a)&&$p("name",a,e)){r[n].newOption=e,t[i]=null;return}}})}function U0(r,t,e){I(t,function(i){if(i){for(var n,a=0;(n=r[a])&&(n.newOption||oa(n.existing)||n.existing&&i.id!=null&&!$p("id",i,n.existing));)a++;n?(n.newOption=i,n.brandNew=e):r.push({newOption:i,brandNew:e,existing:null,keyInfo:null}),a++}})}function Y0(r,t){I(t,function(e){r.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}function W0(r){var t=Q();I(r,function(e){var i=e.existing;i&&t.set(i.id,e)}),I(r,function(e){var i=e.newOption;je(!i||i.id==null||!t.get(i.id)||t.get(i.id)===e,"id duplicates: "+(i&&i.id)),i&&i.id!=null&&t.set(i.id,e),!e.keyInfo&&(e.keyInfo={})}),I(r,function(e,i){var n=e.existing,a=e.newOption,o=e.keyInfo;if(Y(a)){if(o.name=a.name!=null?qn(a.name):n?n.name:Xp+i,n)o.id=qn(n.id);else if(a.id!=null)o.id=qn(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,e)}})}function $p(r,t,e){var i=Re(t[r],null),n=Re(e[r],null);return i!=null&&n!=null&&i===n}function qn(r){return Re(r,"")}function Re(r,t){return r==null?t:U(r)?r:gt(r)||uu(r)?r+"":t}function Ef(r){var t=r.name;return!!(t&&t.indexOf(Xp))}function oa(r){return r&&r.id!=null&&qn(r.id).indexOf(N0)===0}function X0(r,t,e){I(r,function(i){var n=i.newOption;Y(n)&&(i.keyInfo.mainType=t,i.keyInfo.subType=$0(t,n,i.existing,e))})}function $0(r,t,e,i){var n=t.type?t.type:e?e.subType:i.determineSubType(r,t);return n}function ba(r,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return V(t.dataIndex)?ot(t.dataIndex,function(e){return r.indexOfRawIndex(e)}):r.indexOfRawIndex(t.dataIndex);if(t.name!=null)return V(t.name)?ot(t.name,function(e){return r.indexOfName(e)}):r.indexOfName(t.name)}function mt(){var r="__ec_inner_"+Z0++;return function(t){return t[r]||(t[r]={})}}var Z0=Up();function ol(r,t,e){var i=kf(t,e),n=i.mainTypeSpecified,a=i.queryOptionMap,o=i.others,s=o,l=e?e.defaultMainType:null;return!n&&l&&a.set(l,{}),a.each(function(u,f){var h=Ta(r,f,u,{useDefault:l===f,enableAll:e&&e.enableAll!=null?e.enableAll:!0,enableNone:e&&e.enableNone!=null?e.enableNone:!0});s[f+"Models"]=h.models,s[f+"Model"]=h.models[0]}),s}function kf(r,t){var e;if(U(r)){var i={};i[r+"Index"]=0,e=i}else e=r;var n=Q(),a={},o=!1;return I(e,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],h=(u[2]||"").toLowerCase();if(!(!f||!h||t&&t.includeMainTypes&&pt(t.includeMainTypes,f)<0)){o=o||!!f;var c=n.get(f)||n.set(f,{});c[h]=s}}),{mainTypeSpecified:o,queryOptionMap:n,others:a}}var wr={useDefault:!0,enableAll:!1,enableNone:!1};function Ta(r,t,e,i){i=i||wr;var n=e.index,a=e.id,o=e.name,s={models:null,specified:n!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=r.getComponent(t))?[l]:[],s}if(n==="none"||n===!1){if(i.enableNone)return s.models=[],s;n=-1}return n==="all"&&(i.enableAll?n=a=o=null:n=-1),s.models=r.queryComponents({mainType:t,index:n,id:a,name:o}),s}function Zp(r,t,e){r.setAttribute?r.setAttribute(t,e):r[t]=e}function q0(r,t){return r.getAttribute?r.getAttribute(t):r[t]}function K0(r){return r==="auto"?q.domSupported?"html":"richText":r||"html"}var j0=".",Gr="___EC__COMPONENT__CONTAINER___",qp="___EC__EXTENDED_CLASS___";function Xe(r){var t={main:"",sub:""};if(r){var e=r.split(j0);t.main=e[0]||"",t.sub=e[1]||""}return t}function Q0(r){je(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function J0(r){return!!(r&&r[qp])}function Of(r,t){r.$constructor=r,r.extend=function(e){var i=this,n;return t1(i)?n=(function(a){G(o,a);function o(){return a.apply(this,arguments)||this}return o})(i):(n=function(){(e.$constructor||i).apply(this,arguments)},i_(n,this)),k(n.prototype,e),n[qp]=!0,n.extend=this.extend,n.superCall=i1,n.superApply=n1,n.superClass=i,n}}function t1(r){return at(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function Kp(r,t){r.extend=t.extend}var e1=Math.round(Math.random()*10);function r1(r){var t=["__\0is_clz",e1++].join("_");r.prototype[t]=!0,r.isInstance=function(e){return!!(e&&e[t])}}function i1(r,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return this.superClass.prototype[t].apply(r,e)}function n1(r,t,e){return this.superClass.prototype[t].apply(r,e)}function Bf(r){var t={};r.registerClass=function(i){var n=i.type||i.prototype.type;if(n){Q0(n),i.prototype.type=n;var a=Xe(n);if(!a.sub)t[a.main]=i;else if(a.sub!==Gr){var o=e(a);o[a.sub]=i}}return i},r.getClass=function(i,n,a){var o=t[i];if(o&&o[Gr]&&(o=n?o[n]:null),a&&!o)throw new Error(n?"Component "+i+"."+(n||"")+" is used but not imported.":i+".type should be specified.");return o},r.getClassesByMainType=function(i){var n=Xe(i),a=[],o=t[n.main];return o&&o[Gr]?I(o,function(s,l){l!==Gr&&a.push(s)}):a.push(o),a},r.hasClass=function(i){var n=Xe(i);return!!t[n.main]},r.getAllClassMainTypes=function(){var i=[];return I(t,function(n,a){i.push(a)}),i},r.hasSubTypes=function(i){var n=Xe(i),a=t[n.main];return a&&a[Gr]};function e(i){var n=t[i.main];return(!n||!n[Gr])&&(n=t[i.main]={},n[Gr]=!0),n}}function sa(r,t){for(var e=0;e<r.length;e++)r[e][1]||(r[e][1]=r[e][0]);return t=t||!1,function(i,n,a){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(n&&pt(n,l)>=0||a&&pt(a,l)<0)){var u=i.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var a1=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],o1=sa(a1),s1=(function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return o1(this,t,e)},r})(),Eu=new nn(50);function l1(r){if(typeof r=="string"){var t=Eu.get(r);return t&&t.image}else return r}function jp(r,t,e,i,n){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var a=Eu.get(r),o={hostEl:e,cb:i,cbPayload:n};return a?(t=a.image,!vs(t)&&a.pending.push(o)):(t=cr.loadImage(r,Sc,Sc),t.__zrImageSrc=r,Eu.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function Sc(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<r.pending.length;t++){var e=r.pending[t],i=e.cb;i&&i(this,e.cbPayload),e.hostEl.dirty()}r.pending.length=0}function vs(r){return r&&r.width&&r.height}var sl=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function u1(r,t,e,i,n,a){if(!e){r.text="",r.isTruncated=!1;return}var o=(t+"").split(`
3
- `);a=Qp(e,i,n,a);for(var s=!1,l={},u=0,f=o.length;u<f;u++)Jp(l,o[u],a),o[u]=l.textLine,s=s||l.isTruncated;r.text=o.join(`
4
- `),r.isTruncated=s}function Qp(r,t,e,i){i=i||{};var n=k({},i);e=$(e,"..."),n.maxIterations=$(i.maxIterations,2);var a=n.minChar=$(i.minChar,0),o=n.fontMeasureInfo=Ze(t),s=o.asciiCharWidth;n.placeholder=$(i.placeholder,"");for(var l=r=Math.max(0,r-1),u=0;u<a&&l>=s;u++)l-=s;var f=qe(o,e);return f>l&&(e="",f=0),l=r-f,n.ellipsis=e,n.ellipsisWidth=f,n.contentWidth=l,n.containerWidth=r,n}function Jp(r,t,e){var i=e.containerWidth,n=e.contentWidth,a=e.fontMeasureInfo;if(!i){r.textLine="",r.isTruncated=!1;return}var o=qe(a,t);if(o<=i){r.textLine=t,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=n||s>=e.maxIterations){t+=e.ellipsis;break}var l=s===0?f1(t,n,a):o>0?Math.floor(t.length*n/o):0;t=t.substr(0,l),o=qe(a,t)}t===""&&(t=e.placeholder),r.textLine=t,r.isTruncated=!0}function f1(r,t,e){for(var i=0,n=0,a=r.length;n<a&&i<t;n++)i+=Bp(e,r.charCodeAt(n));return n}function h1(r,t,e,i){var n=Nf(r),a=t.overflow,o=t.padding,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,u=t.font,f=a==="truncate",h=fs(u),c=$(t.lineHeight,h),v=t.lineOverflow==="truncate",d=!1,y=t.width;y==null&&e!=null&&(y=e-s);var g=t.height;g==null&&i!=null&&(g=i-l);var p;y!=null&&(a==="break"||a==="breakAll")?p=n?tg(n,t.font,y,a==="breakAll",0).lines:[]:p=n?n.split(`
5
- `):[];var m=p.length*c;if(g==null&&(g=m),m>g&&v){var _=Math.floor(g/c);d=d||p.length>_,p=p.slice(0,_),m=p.length*c}if(n&&f&&y!=null)for(var S=Qp(y,u,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),b={},w=0;w<p.length;w++)Jp(b,p[w],S),p[w]=b.textLine,d=d||b.isTruncated;for(var T=g,C=0,x=Ze(u),w=0;w<p.length;w++)C=Math.max(qe(x,p[w]),C);y==null&&(y=C);var D=y;return T+=l,D+=s,{lines:p,height:g,outerWidth:D,outerHeight:T,lineHeight:c,calculatedLineHeight:h,contentWidth:C,contentHeight:m,width:y,isTruncated:d}}var c1=(function(){function r(){}return r})(),wc=(function(){function r(t){this.tokens=[],t&&(this.tokens=t)}return r})(),v1=(function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return r})();function d1(r,t,e,i,n){var a=new v1,o=Nf(r);if(!o)return a;var s=t.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,f=t.width;f==null&&e!=null&&(f=e-l);var h=t.height;h==null&&i!=null&&(h=i-u);for(var c=t.overflow,v=(c==="break"||c==="breakAll")&&f!=null?{width:f,accumWidth:0,breakAll:c==="breakAll"}:null,d=sl.lastIndex=0,y;(y=sl.exec(o))!=null;){var g=y.index;g>d&&ll(a,o.substring(d,g),t,v),ll(a,y[2],t,v,y[1]),d=sl.lastIndex}d<o.length&&ll(a,o.substring(d,o.length),t,v);var p=[],m=0,_=0,S=c==="truncate",b=t.lineOverflow==="truncate",w={};function T(ge,F,R){ge.width=F,ge.lineHeight=R,m+=R,_=Math.max(_,F)}t:for(var C=0;C<a.lines.length;C++){for(var x=a.lines[C],D=0,L=0,A=0;A<x.tokens.length;A++){var M=x.tokens[A],P=M.styleName&&t.rich[M.styleName]||{},N=M.textPadding=P.padding,H=N?N[1]+N[3]:0,tt=M.font=P.font||t.font;M.contentHeight=fs(tt);var it=$(P.height,M.contentHeight);if(M.innerHeight=it,N&&(it+=N[0]+N[2]),M.height=it,M.lineHeight=fr(P.lineHeight,t.lineHeight,it),M.align=P&&P.align||n,M.verticalAlign=P&&P.verticalAlign||"middle",b&&h!=null&&m+M.lineHeight>h){var nt=a.lines.length;A>0?(x.tokens=x.tokens.slice(0,A),T(x,L,D),a.lines=a.lines.slice(0,C+1)):a.lines=a.lines.slice(0,C),a.isTruncated=a.isTruncated||a.lines.length<nt;break t}var rt=P.width,Tt=rt==null||rt==="auto";if(typeof rt=="string"&&rt.charAt(rt.length-1)==="%")M.percentWidth=rt,p.push(M),M.contentWidth=qe(Ze(tt),M.text);else{if(Tt){var st=P.backgroundColor,Mt=st&&st.image;Mt&&(Mt=l1(Mt),vs(Mt)&&(M.width=Math.max(M.width,Mt.width*it/Mt.height)))}var kt=S&&f!=null?f-L:null;kt!=null&&kt<M.width?!Tt||kt<H?(M.text="",M.width=M.contentWidth=0):(u1(w,M.text,kt-H,tt,t.ellipsis,{minChar:t.truncateMinChar}),M.text=w.text,a.isTruncated=a.isTruncated||w.isTruncated,M.width=M.contentWidth=qe(Ze(tt),M.text)):M.contentWidth=qe(Ze(tt),M.text)}M.width+=H,L+=M.width,P&&(D=Math.max(D,M.lineHeight))}T(x,L,D)}a.outerWidth=a.width=$(f,_),a.outerHeight=a.height=$(h,m),a.contentHeight=m,a.contentWidth=_,a.outerWidth+=l,a.outerHeight+=u;for(var C=0;C<p.length;C++){var M=p[C],pe=M.percentWidth;M.width=parseInt(pe,10)/100*a.width}return a}function ll(r,t,e,i,n){var a=t==="",o=n&&e.rich[n]||{},s=r.lines,l=o.font||e.font,u=!1,f,h;if(i){var c=o.padding,v=c?c[1]+c[3]:0;if(o.width!=null&&o.width!=="auto"){var d=na(o.width,i.width)+v;s.length>0&&d+i.accumWidth>i.width&&(f=t.split(`
6
- `),u=!0),i.accumWidth=d}else{var y=tg(t,l,i.width,i.breakAll,i.accumWidth);i.accumWidth=y.accumWidth+v,h=y.linesWidths,f=y.lines}}f||(f=t.split(`
7
- `));for(var g=Ze(l),p=0;p<f.length;p++){var m=f[p],_=new c1;if(_.styleName=n,_.text=m,_.isLineHolder=!m&&!a,typeof o.width=="number"?_.width=o.width:_.width=h?h[p]:qe(g,m),!p&&!u){var S=(s[s.length-1]||(s[0]=new wc)).tokens,b=S.length;b===1&&S[0].isLineHolder?S[0]=_:(m||!b||a)&&S.push(_)}else s.push(new wc([_]))}}function p1(r){var t=r.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var g1=hn(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function y1(r){return p1(r)?!!g1[r]:!0}function tg(r,t,e,i,n){for(var a=[],o=[],s="",l="",u=0,f=0,h=Ze(t),c=0;c<r.length;c++){var v=r.charAt(c);if(v===`
8
- `){l&&(s+=l,f+=u),a.push(s),o.push(f),s="",l="",u=0,f=0;continue}var d=Bp(h,v.charCodeAt(0)),y=i?!1:!y1(v);if(a.length?f+d>e:n+f+d>e){f?(s||l)&&(y?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=v,u+=d,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=v,f=d)):y?(a.push(l),o.push(u),l=v,u=d):(a.push(v),o.push(d));continue}f+=d,y?(l+=v,u+=d):(l&&(s+=l,l="",u=0),s+=v)}return l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=n),{accumWidth:f,lines:a,linesWidths:o}}function bc(r,t,e,i,n,a){if(r.baseX=e,r.baseY=i,r.outerWidth=r.outerHeight=null,!!t){var o=t.width*2,s=t.height*2;J.set(Tc,an(e,o,n),gi(i,s,a),o,s),J.intersect(t,Tc,null,xc);var l=xc.outIntersectRect;r.outerWidth=l.width,r.outerHeight=l.height,r.baseX=an(l.x,l.width,n,!0),r.baseY=gi(l.y,l.height,a,!0)}}var Tc=new J(0,0,0,0),xc={outIntersectRect:{},clamp:!0};function Nf(r){return r!=null?r+="":r=""}function m1(r){var t=Nf(r.text),e=r.font,i=qe(Ze(e),t),n=fs(e);return ku(r,i,n,null)}function ku(r,t,e,i){var n=new J(an(r.x||0,t,r.textAlign),gi(r.y||0,e,r.textBaseline),t,e),a=i??(eg(r)?r.lineWidth:0);return a>0&&(n.x-=a/2,n.y-=a/2,n.width+=a,n.height+=a),n}function eg(r){var t=r.stroke;return t!=null&&t!=="none"&&r.lineWidth>0}var Ou="__zr_style_"+Math.round(Math.random()*10),yi={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},ds={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};yi[Ou]=!0;var Cc=["z","z2","invisible"],_1=["invisible"],xa=(function(r){G(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var i=Lt(e),n=0;n<i.length;n++){var a=i[n];a==="style"?this.useStyle(e[a]):r.prototype.attrKV.call(this,a,e[a])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,i,n,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&S1(this,e,i)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(e,i){return this.rectContain(e,i)},t.prototype.traverse=function(e,i){e.call(i,this)},t.prototype.rectContain=function(e,i){var n=this.transformCoordToLocal(e,i),a=this.getBoundingRect();return a.contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var i=this.transform,n=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new J(0,0,0,0)),i?J.applyTransform(e,n,i):e.copy(n),(o||s||l)&&(e.width+=o*2+Math.abs(s),e.height+=o*2+Math.abs(l),e.x=Math.min(e.x,e.x+s-o),e.y=Math.min(e.y,e.y+l-o));var u=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-u),e.y=Math.floor(e.y-u),e.width=Math.ceil(e.width+1+u*2),e.height=Math.ceil(e.height+1+u*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new J(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(e,i){e!=="style"?r.prototype.attrKV.call(this,e,i):this.style?this.setStyle(i):this.useStyle(i)},t.prototype.setStyle=function(e,i){return typeof e=="string"?this.style[e]=i:k(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=Bn,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&Bn)},t.prototype.styleUpdated=function(){this.__dirty&=~Bn},t.prototype.createStyle=function(e){return ls(yi,e)},t.prototype.useStyle=function(e){e[Ou]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[Ou]},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var i=this._normalState;e.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,i,Cc)},t.prototype._applyStateObj=function(e,i,n,a,o,s){r.prototype._applyStateObj.call(this,e,i,n,a,o,s);var l=!(i&&a),u;if(i&&i.style?o?a?u=i.style:(u=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(u,i.style)):(u=this._mergeStyle(this.createStyle(),a?this.style:n.style),this._mergeStyle(u,i.style)):l&&(u=n.style),u)if(o){var f=this.style;if(this.style=this.createStyle(l?{}:f),l)for(var h=Lt(f),c=0;c<h.length;c++){var v=h[c];v in u&&(u[v]=u[v],this.style[v]=f[v])}for(var d=Lt(u),c=0;c<d.length;c++){var v=d[c];this.style[v]=this.style[v]}this._transitionState(e,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var y=this.__inHover?_1:Cc,c=0;c<y.length;c++){var v=y[c];i&&i[v]!=null?this[v]=i[v]:l&&n[v]!=null&&(this[v]=n[v])}},t.prototype._mergeStates=function(e){for(var i=r.prototype._mergeStates.call(this,e),n,a=0;a<e.length;a++){var o=e[a];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(i.style=n),i},t.prototype._mergeStyle=function(e,i){return k(e,i),e},t.prototype.getAnimationStyleProps=function(){return ds},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=!1,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=ce|Bn})(),t})(hs),ul=new J(0,0,0,0),fl=new J(0,0,0,0);function S1(r,t,e){return ul.copy(r.getBoundingRect()),r.transform&&ul.applyTransform(r.transform),fl.width=t,fl.height=e,!ul.intersect(fl)}var ne=Math.min,ae=Math.max,hl=Math.sin,cl=Math.cos,Ur=Math.PI*2,Va=Si(),Ga=Si(),Ua=Si();function w1(r,t,e){if(r.length!==0){for(var i=r[0],n=i[0],a=i[0],o=i[1],s=i[1],l=1;l<r.length;l++)i=r[l],n=ne(n,i[0]),a=ae(a,i[0]),o=ne(o,i[1]),s=ae(s,i[1]);t[0]=n,t[1]=o,e[0]=a,e[1]=s}}function Dc(r,t,e,i,n,a){n[0]=ne(r,e),n[1]=ne(t,i),a[0]=ae(r,e),a[1]=ae(t,i)}var Ic=[],Lc=[];function b1(r,t,e,i,n,a,o,s,l,u){var f=Lp,h=$t,c=f(r,e,n,o,Ic);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var v=0;v<c;v++){var d=h(r,e,n,o,Ic[v]);l[0]=ne(d,l[0]),u[0]=ae(d,u[0])}c=f(t,i,a,s,Lc);for(var v=0;v<c;v++){var y=h(t,i,a,s,Lc[v]);l[1]=ne(y,l[1]),u[1]=ae(y,u[1])}l[0]=ne(r,l[0]),u[0]=ae(r,u[0]),l[0]=ne(o,l[0]),u[0]=ae(o,u[0]),l[1]=ne(t,l[1]),u[1]=ae(t,u[1]),l[1]=ne(s,l[1]),u[1]=ae(s,u[1])}function T1(r,t,e,i,n,a,o,s){var l=Mp,u=Zt,f=ae(ne(l(r,e,n),1),0),h=ae(ne(l(t,i,a),1),0),c=u(r,e,n,f),v=u(t,i,a,h);o[0]=ne(r,n,c),o[1]=ne(t,a,v),s[0]=ae(r,n,c),s[1]=ae(t,a,v)}function x1(r,t,e,i,n,a,o,s,l){var u=Zi,f=qi,h=Math.abs(n-a);if(h%Ur<1e-4&&h>1e-4){s[0]=r-e,s[1]=t-i,l[0]=r+e,l[1]=t+i;return}if(Va[0]=cl(n)*e+r,Va[1]=hl(n)*i+t,Ga[0]=cl(a)*e+r,Ga[1]=hl(a)*i+t,u(s,Va,Ga),f(l,Va,Ga),n=n%Ur,n<0&&(n=n+Ur),a=a%Ur,a<0&&(a=a+Ur),n>a&&!o?a+=Ur:n<a&&o&&(n+=Ur),o){var c=a;a=n,n=c}for(var v=0;v<a;v+=Math.PI/2)v>n&&(Ua[0]=cl(v)*e+r,Ua[1]=hl(v)*i+t,u(s,Ua,s),f(l,Ua,l))}var ut={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Yr=[],Wr=[],ze=[],dr=[],Fe=[],He=[],vl=Math.min,dl=Math.max,Xr=Math.cos,$r=Math.sin,rr=Math.abs,Bu=Math.PI,_r=Bu*2,pl=typeof Float32Array<"u",gn=[];function gl(r){var t=Math.round(r/Bu*1e8)/1e8;return t%2*Bu}function C1(r,t){var e=gl(r[0]);e<0&&(e+=_r);var i=e-r[0],n=r[1];n+=i,!t&&n-e>=_r?n=e+_r:t&&e-n>=_r?n=e-_r:!t&&e>n?n=e+(_r-gl(e-n)):t&&e<n&&(n=e-(_r-gl(n-e))),r[0]=e,r[1]=n}var on=(function(){function r(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return r.prototype.increaseVersion=function(){this._version++},r.prototype.getVersion=function(){return this._version},r.prototype.setScale=function(t,e,i){i=i||0,i>0&&(this._ux=rr(i/Ho/t)||0,this._uy=rr(i/Ho/e)||0)},r.prototype.setDPR=function(t){this.dpr=t},r.prototype.setContext=function(t){this._ctx=t},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(ut.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},r.prototype.lineTo=function(t,e){var i=rr(t-this._xi),n=rr(e-this._yi),a=i>this._ux||n>this._uy;if(this.addData(ut.L,t,e),this._ctx&&a&&this._ctx.lineTo(t,e),a)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=i*i+n*n;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(t,e,i,n,a,o){return this._drawPendingPt(),this.addData(ut.C,t,e,i,n,a,o),this._ctx&&this._ctx.bezierCurveTo(t,e,i,n,a,o),this._xi=a,this._yi=o,this},r.prototype.quadraticCurveTo=function(t,e,i,n){return this._drawPendingPt(),this.addData(ut.Q,t,e,i,n),this._ctx&&this._ctx.quadraticCurveTo(t,e,i,n),this._xi=i,this._yi=n,this},r.prototype.arc=function(t,e,i,n,a,o){this._drawPendingPt(),gn[0]=n,gn[1]=a,C1(gn,o),n=gn[0],a=gn[1];var s=a-n;return this.addData(ut.A,t,e,i,i,n,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,i,n,a,o),this._xi=Xr(a)*i+t,this._yi=$r(a)*i+e,this},r.prototype.arcTo=function(t,e,i,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,i,n,a),this},r.prototype.rect=function(t,e,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,i,n),this.addData(ut.R,t,e,i,n),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(ut.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&t.closePath(),this._xi=e,this._yi=i,this},r.prototype.fill=function(t){t&&t.fill(),this.toStatic()},r.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(t){if(this._saveData){var e=t.length;!(this.data&&this.data.length===e)&&pl&&(this.data=new Float32Array(e));for(var i=0;i<e;i++)this.data[i]=t[i];this._len=e}},r.prototype.appendPath=function(t){if(this._saveData){t instanceof Array||(t=[t]);for(var e=t.length,i=0,n=this._len,a=0;a<e;a++)i+=t[a].len();var o=this.data;if(pl&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(n+i),n>0&&o))for(var s=0;s<n;s++)this.data[s]=o[s];for(var a=0;a<e;a++)for(var l=t[a].data,s=0;s<l.length;s++)this.data[n++]=l[s];this._len=n}},r.prototype.addData=function(t,e,i,n,a,o,s,l,u){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var h=0;h<arguments.length;h++)f[this._len++]=arguments[h]}},r.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},r.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,pl&&this._len>11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){ze[0]=ze[1]=Fe[0]=Fe[1]=Number.MAX_VALUE,dr[0]=dr[1]=He[0]=He[1]=-Number.MAX_VALUE;var t=this.data,e=0,i=0,n=0,a=0,o;for(o=0;o<this._len;){var s=t[o++],l=o===1;switch(l&&(e=t[o],i=t[o+1],n=e,a=i),s){case ut.M:e=n=t[o++],i=a=t[o++],Fe[0]=n,Fe[1]=a,He[0]=n,He[1]=a;break;case ut.L:Dc(e,i,t[o],t[o+1],Fe,He),e=t[o++],i=t[o++];break;case ut.C:b1(e,i,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],Fe,He),e=t[o++],i=t[o++];break;case ut.Q:T1(e,i,t[o++],t[o++],t[o],t[o+1],Fe,He),e=t[o++],i=t[o++];break;case ut.A:var u=t[o++],f=t[o++],h=t[o++],c=t[o++],v=t[o++],d=t[o++]+v;o+=1;var y=!t[o++];l&&(n=Xr(v)*h+u,a=$r(v)*c+f),x1(u,f,h,c,v,d,y,Fe,He),e=Xr(d)*h+u,i=$r(d)*c+f;break;case ut.R:n=e=t[o++],a=i=t[o++];var g=t[o++],p=t[o++];Dc(n,a,n+g,a+p,Fe,He);break;case ut.Z:e=n,i=a;break}Zi(ze,ze,Fe),qi(dr,dr,He)}return o===0&&(ze[0]=ze[1]=dr[0]=dr[1]=0),new J(ze[0],ze[1],dr[0]-ze[0],dr[1]-ze[1])},r.prototype._calculateLength=function(){var t=this.data,e=this._len,i=this._ux,n=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,h=0,c=0;c<e;){var v=t[c++],d=c===1;d&&(a=t[c],o=t[c+1],s=a,l=o);var y=-1;switch(v){case ut.M:a=s=t[c++],o=l=t[c++];break;case ut.L:{var g=t[c++],p=t[c++],m=g-a,_=p-o;(rr(m)>i||rr(_)>n||c===e-1)&&(y=Math.sqrt(m*m+_*_),a=g,o=p);break}case ut.C:{var S=t[c++],b=t[c++],g=t[c++],p=t[c++],w=t[c++],T=t[c++];y=W_(a,o,S,b,g,p,w,T,10),a=w,o=T;break}case ut.Q:{var S=t[c++],b=t[c++],g=t[c++],p=t[c++];y=Z_(a,o,S,b,g,p,10),a=g,o=p;break}case ut.A:var C=t[c++],x=t[c++],D=t[c++],L=t[c++],A=t[c++],M=t[c++],P=M+A;c+=1,d&&(s=Xr(A)*D+C,l=$r(A)*L+x),y=dl(D,L)*vl(_r,Math.abs(M)),a=Xr(P)*D+C,o=$r(P)*L+x;break;case ut.R:{s=a=t[c++],l=o=t[c++];var N=t[c++],H=t[c++];y=N*2+H*2;break}case ut.Z:{var m=s-a,_=l-o;y=Math.sqrt(m*m+_*_),a=s,o=l;break}}y>=0&&(u[h++]=y,f+=y)}return this._pathLen=f,f},r.prototype.rebuildPath=function(t,e){var i=this.data,n=this._ux,a=this._uy,o=this._len,s,l,u,f,h,c,v=e<1,d,y,g=0,p=0,m,_=0,S,b;if(!(v&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,y=this._pathLen,m=e*y,!m)))t:for(var w=0;w<o;){var T=i[w++],C=w===1;switch(C&&(u=i[w],f=i[w+1],s=u,l=f),T!==ut.L&&_>0&&(t.lineTo(S,b),_=0),T){case ut.M:s=u=i[w++],l=f=i[w++],t.moveTo(u,f);break;case ut.L:{h=i[w++],c=i[w++];var x=rr(h-u),D=rr(c-f);if(x>n||D>a){if(v){var L=d[p++];if(g+L>m){var A=(m-g)/L;t.lineTo(u*(1-A)+h*A,f*(1-A)+c*A);break t}g+=L}t.lineTo(h,c),u=h,f=c,_=0}else{var M=x*x+D*D;M>_&&(S=h,b=c,_=M)}break}case ut.C:{var P=i[w++],N=i[w++],H=i[w++],tt=i[w++],it=i[w++],nt=i[w++];if(v){var L=d[p++];if(g+L>m){var A=(m-g)/L;zo(u,P,H,it,A,Yr),zo(f,N,tt,nt,A,Wr),t.bezierCurveTo(Yr[1],Wr[1],Yr[2],Wr[2],Yr[3],Wr[3]);break t}g+=L}t.bezierCurveTo(P,N,H,tt,it,nt),u=it,f=nt;break}case ut.Q:{var P=i[w++],N=i[w++],H=i[w++],tt=i[w++];if(v){var L=d[p++];if(g+L>m){var A=(m-g)/L;ra(u,P,H,A,Yr),ra(f,N,tt,A,Wr),t.quadraticCurveTo(Yr[1],Wr[1],Yr[2],Wr[2]);break t}g+=L}t.quadraticCurveTo(P,N,H,tt),u=H,f=tt;break}case ut.A:var rt=i[w++],Tt=i[w++],st=i[w++],Mt=i[w++],kt=i[w++],pe=i[w++],ge=i[w++],F=!i[w++],R=st>Mt?st:Mt,Z=rr(st-Mt)>.001,j=kt+pe,W=!1;if(v){var L=d[p++];g+L>m&&(j=kt+pe*(m-g)/L,W=!0),g+=L}if(Z&&t.ellipse?t.ellipse(rt,Tt,st,Mt,ge,kt,j,F):t.arc(rt,Tt,R,kt,j,F),W)break t;C&&(s=Xr(kt)*st+rt,l=$r(kt)*Mt+Tt),u=Xr(j)*st+rt,f=$r(j)*Mt+Tt;break;case ut.R:s=u=i[w],l=f=i[w+1],h=i[w++],c=i[w++];var K=i[w++],jt=i[w++];if(v){var L=d[p++];if(g+L>m){var Ot=m-g;t.moveTo(h,c),t.lineTo(h+vl(Ot,K),c),Ot-=K,Ot>0&&t.lineTo(h+K,c+vl(Ot,jt)),Ot-=jt,Ot>0&&t.lineTo(h+dl(K-Ot,0),c+jt),Ot-=K,Ot>0&&t.lineTo(h,c+dl(jt-Ot,0));break t}g+=L}t.rect(h,c,K,jt);break;case ut.Z:if(v){var L=d[p++];if(g+L>m){var A=(m-g)/L;t.lineTo(u*(1-A)+s*A,f*(1-A)+l*A);break t}g+=L}t.closePath(),u=s,f=l}}},r.prototype.clone=function(){var t=new r,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},r.prototype.canSave=function(){return!!this._saveData},r.CMD=ut,r.initDefaultProps=(function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),r})();function Pi(r,t,e,i,n,a,o){if(n===0)return!1;var s=n,l=0,u=r;if(o>t+s&&o>i+s||o<t-s&&o<i-s||a>r+s&&a>e+s||a<r-s&&a<e-s)return!1;if(r!==e)l=(t-i)/(r-e),u=(r*i-e*t)/(r-e);else return Math.abs(a-r)<=s/2;var f=l*a-o+u,h=f*f/(l*l+1);return h<=s/2*s/2}function D1(r,t,e,i,n,a,o,s,l,u,f){if(l===0)return!1;var h=l;if(f>t+h&&f>i+h&&f>a+h&&f>s+h||f<t-h&&f<i-h&&f<a-h&&f<s-h||u>r+h&&u>e+h&&u>n+h&&u>o+h||u<r-h&&u<e-h&&u<n-h&&u<o-h)return!1;var c=Y_(r,t,e,i,n,a,o,s,u,f);return c<=h/2}function I1(r,t,e,i,n,a,o,s,l){if(o===0)return!1;var u=o;if(l>t+u&&l>i+u&&l>a+u||l<t-u&&l<i-u&&l<a-u||s>r+u&&s>e+u&&s>n+u||s<r-u&&s<e-u&&s<n-u)return!1;var f=$_(r,t,e,i,n,a,s,l);return f<=u/2}var Mc=Math.PI*2;function Ya(r){return r%=Mc,r<0&&(r+=Mc),r}var yn=Math.PI*2;function L1(r,t,e,i,n,a,o,s,l){if(o===0)return!1;var u=o;s-=r,l-=t;var f=Math.sqrt(s*s+l*l);if(f-u>e||f+u<e)return!1;if(Math.abs(i-n)%yn<1e-4)return!0;if(a){var h=i;i=Ya(n),n=Ya(h)}else i=Ya(i),n=Ya(n);i>n&&(n+=yn);var c=Math.atan2(l,s);return c<0&&(c+=yn),c>=i&&c<=n||c+yn>=i&&c+yn<=n}function Zr(r,t,e,i,n,a){if(a>t&&a>i||a<t&&a<i||i===t)return 0;var o=(a-t)/(i-t),s=i<t?1:-1;(o===1||o===0)&&(s=i<t?.5:-.5);var l=o*(e-r)+r;return l===n?1/0:l>n?s:0}var pr=on.CMD,qr=Math.PI*2,M1=1e-4;function A1(r,t){return Math.abs(r-t)<M1}var Xt=[-1,-1,-1],Te=[-1,-1];function P1(){var r=Te[0];Te[0]=Te[1],Te[1]=r}function R1(r,t,e,i,n,a,o,s,l,u){if(u>t&&u>i&&u>a&&u>s||u<t&&u<i&&u<a&&u<s)return 0;var f=Ip(t,i,a,s,u,Xt);if(f===0)return 0;for(var h=0,c=-1,v=void 0,d=void 0,y=0;y<f;y++){var g=Xt[y],p=g===0||g===1?.5:1,m=$t(r,e,n,o,g);m<l||(c<0&&(c=Lp(t,i,a,s,Te),Te[1]<Te[0]&&c>1&&P1(),v=$t(t,i,a,s,Te[0]),c>1&&(d=$t(t,i,a,s,Te[1]))),c===2?g<Te[0]?h+=v<t?p:-p:g<Te[1]?h+=d<v?p:-p:h+=s<d?p:-p:g<Te[0]?h+=v<t?p:-p:h+=s<v?p:-p)}return h}function E1(r,t,e,i,n,a,o,s){if(s>t&&s>i&&s>a||s<t&&s<i&&s<a)return 0;var l=X_(t,i,a,s,Xt);if(l===0)return 0;var u=Mp(t,i,a);if(u>=0&&u<=1){for(var f=0,h=Zt(t,i,a,u),c=0;c<l;c++){var v=Xt[c]===0||Xt[c]===1?.5:1,d=Zt(r,e,n,Xt[c]);d<o||(Xt[c]<u?f+=h<t?v:-v:f+=a<h?v:-v)}return f}else{var v=Xt[0]===0||Xt[0]===1?.5:1,d=Zt(r,e,n,Xt[0]);return d<o?0:a<t?v:-v}}function k1(r,t,e,i,n,a,o,s){if(s-=t,s>e||s<-e)return 0;var l=Math.sqrt(e*e-s*s);Xt[0]=-l,Xt[1]=l;var u=Math.abs(i-n);if(u<1e-4)return 0;if(u>=qr-1e-4){i=0,n=qr;var f=a?1:-1;return o>=Xt[0]+r&&o<=Xt[1]+r?f:0}if(i>n){var h=i;i=n,n=h}i<0&&(i+=qr,n+=qr);for(var c=0,v=0;v<2;v++){var d=Xt[v];if(d+r>o){var y=Math.atan2(s,d),f=a?1:-1;y<0&&(y=qr+y),(y>=i&&y<=n||y+qr>=i&&y+qr<=n)&&(y>Math.PI/2&&y<Math.PI*1.5&&(f=-f),c+=f)}}return c}function rg(r,t,e,i,n){for(var a=r.data,o=r.len(),s=0,l=0,u=0,f=0,h=0,c,v,d=0;d<o;){var y=a[d++],g=d===1;switch(y===pr.M&&d>1&&(e||(s+=Zr(l,u,f,h,i,n))),g&&(l=a[d],u=a[d+1],f=l,h=u),y){case pr.M:f=a[d++],h=a[d++],l=f,u=h;break;case pr.L:if(e){if(Pi(l,u,a[d],a[d+1],t,i,n))return!0}else s+=Zr(l,u,a[d],a[d+1],i,n)||0;l=a[d++],u=a[d++];break;case pr.C:if(e){if(D1(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],t,i,n))return!0}else s+=R1(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],i,n)||0;l=a[d++],u=a[d++];break;case pr.Q:if(e){if(I1(l,u,a[d++],a[d++],a[d],a[d+1],t,i,n))return!0}else s+=E1(l,u,a[d++],a[d++],a[d],a[d+1],i,n)||0;l=a[d++],u=a[d++];break;case pr.A:var p=a[d++],m=a[d++],_=a[d++],S=a[d++],b=a[d++],w=a[d++];d+=1;var T=!!(1-a[d++]);c=Math.cos(b)*_+p,v=Math.sin(b)*S+m,g?(f=c,h=v):s+=Zr(l,u,c,v,i,n);var C=(i-p)*S/_+p;if(e){if(L1(p,m,S,b,b+w,T,t,C,n))return!0}else s+=k1(p,m,S,b,b+w,T,C,n);l=Math.cos(b+w)*_+p,u=Math.sin(b+w)*S+m;break;case pr.R:f=l=a[d++],h=u=a[d++];var x=a[d++],D=a[d++];if(c=f+x,v=h+D,e){if(Pi(f,h,c,h,t,i,n)||Pi(c,h,c,v,t,i,n)||Pi(c,v,f,v,t,i,n)||Pi(f,v,f,h,t,i,n))return!0}else s+=Zr(c,h,c,v,i,n),s+=Zr(f,v,f,h,i,n);break;case pr.Z:if(e){if(Pi(l,u,f,h,t,i,n))return!0}else s+=Zr(l,u,f,h,i,n);l=f,u=h;break}}return!e&&!A1(u,h)&&(s+=Zr(l,u,f,h,i,n)||0),s!==0}function O1(r,t,e){return rg(r,0,!1,t,e)}function B1(r,t,e,i){return rg(r,t,!0,e,i)}var ig=Ct({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},yi),N1={style:Ct({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},ds.style)},yl=ia.concat(["invisible","culling","z","z2","zlevel","parent"]),yt=(function(r){G(t,r);function t(e){return r.call(this,e)||this}return t.prototype.update=function(){var e=this;r.prototype.update.call(this);var i=this.style;if(i.decal){var n=this._decalEl=this._decalEl||new t;n.buildPath===t.prototype.buildPath&&(n.buildPath=function(l){e.buildPath(l,e.shape)}),n.silent=!0;var a=n.style;for(var o in i)a[o]!==i[o]&&(a[o]=i[o]);a.fill=i.fill?i.decal:null,a.decal=null,a.shadowColor=null,i.strokeFirst&&(a.stroke=null);for(var s=0;s<yl.length;++s)n[yl[s]]=this[yl[s]];n.__dirty|=ce}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(e){var i=Lt(e);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();n&&this.useStyle(n);for(var a=0;a<i.length;a++){var o=i[a],s=e[o];o==="style"?this.style?k(this.style,s):this.useStyle(s):o==="shape"?k(this.shape,s):r.prototype.attrKV.call(this,o,s)}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 i=Fo(e,0);return i>.5?Mu:i>.2?d0:Au}else if(e)return Au}return Mu},t.prototype.getInsideTextStroke=function(e){var i=this.style.fill;if(U(i)){var n=this.__zr,a=!!(n&&n.isDarkMode()),o=Fo(e,0)<Lu;if(a===o)return i}},t.prototype.buildPath=function(e,i,n){},t.prototype.pathUpdated=function(){this.__dirty&=~$i},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 on(!1)},t.prototype.hasStroke=function(){var e=this.style,i=e.stroke;return!(i==null||i==="none"||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style,i=e.fill;return i!=null&&i!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,i=this.style,n=!e;if(n){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&$i)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),e=o.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){s.copy(e);var l=i.strokeNoScale?this.getLineScale():1,u=i.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return e},t.prototype.contain=function(e,i){var n=this.transformCoordToLocal(e,i),a=this.getBoundingRect(),o=this.style;if(e=n[0],i=n[1],a.contain(e,i)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),B1(s,l/u,e,i)))return!0}if(this.hasFill())return O1(s,e,i)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=$i,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(e,i){e==="shape"?this.setShape(i):r.prototype.attrKV.call(this,e,i)},t.prototype.setShape=function(e,i){var n=this.shape;return n||(n=this.shape={}),typeof e=="string"?n[e]=i:k(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&$i)},t.prototype.createStyle=function(e){return ls(ig,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var i=this._normalState;e.shape&&!i.shape&&(i.shape=k({},this.shape))},t.prototype._applyStateObj=function(e,i,n,a,o,s){r.prototype._applyStateObj.call(this,e,i,n,a,o,s);var l=!(i&&a),u;if(i&&i.shape?o?a?u=i.shape:(u=k({},n.shape),k(u,i.shape)):(u=k({},a?this.shape:n.shape),k(u,i.shape)):l&&(u=n.shape),u)if(o){this.shape=k({},this.shape);for(var f={},h=Lt(u),c=0;c<h.length;c++){var v=h[c];typeof u[v]=="object"?this.shape[v]=u[v]:f[v]=u[v]}this._transitionState(e,{shape:f},s)}else this.shape=u,this.dirtyShape()},t.prototype._mergeStates=function(e){for(var i=r.prototype._mergeStates.call(this,e),n,a=0;a<e.length;a++){var o=e[a];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},t.prototype.getAnimationStyleProps=function(){return N1},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var i=(function(a){G(o,a);function o(s){var l=a.call(this,s)||this;return e.init&&e.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return et(e.style)},o.prototype.getDefaultShape=function(){return et(e.shape)},o})(t);for(var n in e)typeof e[n]=="function"&&(i.prototype[n]=e[n]);return i},t.initDefaultProps=(function(){var e=t.prototype;e.type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=ce|Bn|$i})(),t})(xa),z1=Ct({strokeFirst:!0,font:Lr,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},ig),Uo=(function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.hasStroke=function(){return eg(this.style)},t.prototype.hasFill=function(){var e=this.style,i=e.fill;return i!=null&&i!=="none"},t.prototype.createStyle=function(e){return ls(z1,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){return this._rect||(this._rect=m1(this.style)),this._rect},t.initDefaultProps=(function(){var e=t.prototype;e.dirtyRectTolerance=10})(),t})(xa);Uo.prototype.type="tspan";var F1=Ct({x:0,y:0},yi),H1={style:Ct({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},ds.style)};function V1(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var Rr=(function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return ls(F1,e)},t.prototype._getSize=function(e){var i=this.style,n=i[e];if(n!=null)return n;var a=V1(i.image)?i.image:this.__image;if(!a)return 0;var o=e==="width"?"height":"width",s=i[o];return s==null?a[e]:a[e]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return H1},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new J(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t})(xa);Rr.prototype.type="image";function G1(r,t){var e=t.x,i=t.y,n=t.width,a=t.height,o=t.r,s,l,u,f;n<0&&(e=e+n,n=-n),a<0&&(i=i+a,a=-a),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var h;s+l>n&&(h=s+l,s*=n/h,l*=n/h),u+f>n&&(h=u+f,u*=n/h,f*=n/h),l+u>a&&(h=l+u,l*=a/h,u*=a/h),s+f>a&&(h=s+f,s*=a/h,f*=a/h),r.moveTo(e+s,i),r.lineTo(e+n-l,i),l!==0&&r.arc(e+n-l,i+l,l,-Math.PI/2,0),r.lineTo(e+n,i+a-u),u!==0&&r.arc(e+n-u,i+a-u,u,0,Math.PI/2),r.lineTo(e+f,i+a),f!==0&&r.arc(e+f,i+a-f,f,Math.PI/2,Math.PI),r.lineTo(e,i+s),s!==0&&r.arc(e+s,i+s,s,Math.PI,Math.PI*1.5)}var Qi=Math.round;function ng(r,t,e){if(t){var i=t.x1,n=t.x2,a=t.y1,o=t.y2;r.x1=i,r.x2=n,r.y1=a,r.y2=o;var s=e&&e.lineWidth;return s&&(Qi(i*2)===Qi(n*2)&&(r.x1=r.x2=hi(i,s,!0)),Qi(a*2)===Qi(o*2)&&(r.y1=r.y2=hi(a,s,!0))),r}}function ag(r,t,e){if(t){var i=t.x,n=t.y,a=t.width,o=t.height;r.x=i,r.y=n,r.width=a,r.height=o;var s=e&&e.lineWidth;return s&&(r.x=hi(i,s,!0),r.y=hi(n,s,!0),r.width=Math.max(hi(i+a,s,!1)-r.x,a===0?0:1),r.height=Math.max(hi(n+o,s,!1)-r.y,o===0?0:1)),r}}function hi(r,t,e){if(!t)return r;var i=Qi(r*2);return(i+Qi(t))%2===0?i/2:(i+(e?1:-1))/2}var U1=(function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r})(),Y1={},Vt=(function(r){G(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new U1},t.prototype.buildPath=function(e,i){var n,a,o,s;if(this.subPixelOptimize){var l=ag(Y1,i,this.style);n=l.x,a=l.y,o=l.width,s=l.height,l.r=i.r,i=l}else n=i.x,a=i.y,o=i.width,s=i.height;i.r?G1(e,i):e.rect(n,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t})(yt);Vt.prototype.type="rect";var Ac={fill:"#000"},Pc=2,Ve={},W1={style:Ct({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},ds.style)},Kt=(function(r){G(t,r);function t(e){var i=r.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=Ac,i.attr(e),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var i=this._children[e];i.zlevel=this.zlevel,i.z=this.z,i.z2=this.z2,i.culling=this.culling,i.cursor=this.cursor,i.invisible=this.invisible}},t.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):r.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(e){var i=this.innerTransformable;return i?i.getLocalTransform(e):r.prototype.getLocalTransform.call(this,e)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),r.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,K1(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].__zr=e},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new J(0,0,0,0),i=this._children,n=[],a=null,o=0;o<i.length;o++){var s=i[o],l=s.getBoundingRect(),u=s.getLocalTransform(n);u?(e.copy(l),e.applyTransform(u),a=a||e.clone(),a.union(e)):(a=a||l.clone(),a.union(l))}this._rect=a||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||Ac},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,i){if(!i)return e;var n=i.rich,a=e.rich||n&&{};return k(e,i),n&&a?(this._mergeRich(a,n),e.rich=a):a&&(e.rich=a),e},t.prototype._mergeRich=function(e,i){for(var n=Lt(i),a=0;a<n.length;a++){var o=n[a];e[o]=e[o]||{},k(e[o],i[o])}},t.prototype.getAnimationStyleProps=function(){return W1},t.prototype._getOrCreateChild=function(e){var i=this._children[this._childCursor];return(!i||!(i instanceof e))&&(i=new e),this._children[this._childCursor++]=i,i.__zr=this.__zr,i.parent=this,i},t.prototype._updatePlainTexts=function(){var e=this.style,i=e.font||Lr,n=e.padding,a=this._defaultStyle,o=e.x||0,s=e.y||0,l=e.align||a.align||"left",u=e.verticalAlign||a.verticalAlign||"top";bc(Ve,a.overflowRect,o,s,l,u),o=Ve.baseX,s=Ve.baseY;var f=zc(e),h=h1(f,e,Ve.outerWidth,Ve.outerHeight),c=ml(e),v=!!e.backgroundColor,d=h.outerHeight,y=h.outerWidth,g=h.lines,p=h.lineHeight;this.isTruncated=!!h.isTruncated;var m=o,_=gi(s,h.contentHeight,u);if(c||n){var S=an(o,y,l),b=gi(s,d,u);c&&this._renderBackground(e,e,S,b,y,d)}_+=p/2,n&&(m=Nc(o,l,n),u==="top"?_+=n[0]:u==="bottom"&&(_-=n[2]));for(var w=0,T=!1,C=!1,x=Bc("fill"in e?e.fill:(C=!0,a.fill)),D=Oc("stroke"in e?e.stroke:!v&&(!a.autoStroke||C)?(w=Pc,T=!0,a.stroke):null),L=e.textShadowBlur>0,A=0;A<g.length;A++){var M=this._getOrCreateChild(Uo),P=M.createStyle();M.useStyle(P),P.text=g[A],P.x=m,P.y=_,P.textAlign=l,P.textBaseline="middle",P.opacity=e.opacity,P.strokeFirst=!0,L&&(P.shadowBlur=e.textShadowBlur||0,P.shadowColor=e.textShadowColor||"transparent",P.shadowOffsetX=e.textShadowOffsetX||0,P.shadowOffsetY=e.textShadowOffsetY||0),P.stroke=D,P.fill=x,D&&(P.lineWidth=e.lineWidth||w,P.lineDash=e.lineDash,P.lineDashOffset=e.lineDashOffset||0),P.font=i,Ec(P,e),_+=p,M.setBoundingRect(ku(P,h.contentWidth,h.calculatedLineHeight,T?0:null))}},t.prototype._updateRichTexts=function(){var e=this.style,i=this._defaultStyle,n=e.align||i.align,a=e.verticalAlign||i.verticalAlign,o=e.x||0,s=e.y||0;bc(Ve,i.overflowRect,o,s,n,a),o=Ve.baseX,s=Ve.baseY;var l=zc(e),u=d1(l,e,Ve.outerWidth,Ve.outerHeight,n),f=u.width,h=u.outerWidth,c=u.outerHeight,v=e.padding;this.isTruncated=!!u.isTruncated;var d=an(o,h,n),y=gi(s,c,a),g=d,p=y;v&&(g+=v[3],p+=v[0]);var m=g+f;ml(e)&&this._renderBackground(e,e,d,y,h,c);for(var _=!!e.backgroundColor,S=0;S<u.lines.length;S++){for(var b=u.lines[S],w=b.tokens,T=w.length,C=b.lineHeight,x=b.width,D=0,L=g,A=m,M=T-1,P=void 0;D<T&&(P=w[D],!P.align||P.align==="left");)this._placeToken(P,e,C,p,L,"left",_),x-=P.width,L+=P.width,D++;for(;M>=0&&(P=w[M],P.align==="right");)this._placeToken(P,e,C,p,A,"right",_),x-=P.width,A-=P.width,M--;for(L+=(f-(L-g)-(m-A)-x)/2;D<=M;)P=w[D],this._placeToken(P,e,C,p,L+P.width/2,"center",_),L+=P.width,D++;p+=C}},t.prototype._placeToken=function(e,i,n,a,o,s,l){var u=i.rich[e.styleName]||{};u.text=e.text;var f=e.verticalAlign,h=a+n/2;f==="top"?h=a+e.height/2:f==="bottom"&&(h=a+n-e.height/2);var c=!e.isLineHolder&&ml(u);c&&this._renderBackground(u,i,s==="right"?o-e.width:s==="center"?o-e.width/2:o,h-e.height/2,e.width,e.height);var v=!!u.backgroundColor,d=e.textPadding;d&&(o=Nc(o,s,d),h-=e.height/2-d[0]-e.innerHeight/2);var y=this._getOrCreateChild(Uo),g=y.createStyle();y.useStyle(g);var p=this._defaultStyle,m=!1,_=0,S=!1,b=Bc("fill"in u?u.fill:"fill"in i?i.fill:(m=!0,p.fill)),w=Oc("stroke"in u?u.stroke:"stroke"in i?i.stroke:!v&&!l&&(!p.autoStroke||m)?(_=Pc,S=!0,p.stroke):null),T=u.textShadowBlur>0||i.textShadowBlur>0;g.text=e.text,g.x=o,g.y=h,T&&(g.shadowBlur=u.textShadowBlur||i.textShadowBlur||0,g.shadowColor=u.textShadowColor||i.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||i.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||i.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=e.font||Lr,g.opacity=fr(u.opacity,i.opacity,1),Ec(g,u),w&&(g.lineWidth=fr(u.lineWidth,i.lineWidth,_),g.lineDash=$(u.lineDash,i.lineDash),g.lineDashOffset=i.lineDashOffset||0,g.stroke=w),b&&(g.fill=b),y.setBoundingRect(ku(g,e.contentWidth,e.contentHeight,S?0:null))},t.prototype._renderBackground=function(e,i,n,a,o,s){var l=e.backgroundColor,u=e.borderWidth,f=e.borderColor,h=l&&l.image,c=l&&!h,v=e.borderRadius,d=this,y,g;if(c||e.lineHeight||u&&f){y=this._getOrCreateChild(Vt),y.useStyle(y.createStyle()),y.style.fill=null;var p=y.shape;p.x=n,p.y=a,p.width=o,p.height=s,p.r=v,y.dirtyShape()}if(c){var m=y.style;m.fill=l||null,m.fillOpacity=$(e.fillOpacity,1)}else if(h){g=this._getOrCreateChild(Rr),g.onload=function(){d.dirtyStyle()};var _=g.style;_.image=l.image,_.x=n,_.y=a,_.width=o,_.height=s}if(u&&f){var m=y.style;m.lineWidth=u,m.stroke=f,m.strokeOpacity=$(e.strokeOpacity,1),m.lineDash=e.borderDash,m.lineDashOffset=e.borderDashOffset||0,y.strokeContainThreshold=0,y.hasFill()&&y.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var S=(y||g).style;S.shadowBlur=e.shadowBlur||0,S.shadowColor=e.shadowColor||"transparent",S.shadowOffsetX=e.shadowOffsetX||0,S.shadowOffsetY=e.shadowOffsetY||0,S.opacity=fr(e.opacity,i.opacity,1)},t.makeFont=function(e){var i="";return q1(e)&&(i=[e.fontStyle,e.fontWeight,Z1(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),i&&We(i)||e.textFont||e.font},t})(xa),X1={left:!0,right:1,center:1},$1={top:1,bottom:1,middle:1},Rc=["fontStyle","fontWeight","fontSize","fontFamily"];function Z1(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?bf+"px":r+"px"}function Ec(r,t){for(var e=0;e<Rc.length;e++){var i=Rc[e],n=t[i];n!=null&&(r[i]=n)}}function q1(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function K1(r){return kc(r),I(r.rich,kc),r}function kc(r){if(r){r.font=Kt.makeFont(r);var t=r.align;t==="middle"&&(t="center"),r.align=t==null||X1[t]?t:"left";var e=r.verticalAlign;e==="center"&&(e="middle"),r.verticalAlign=e==null||$1[e]?e:"top";var i=r.padding;i&&(r.padding=If(r.padding))}}function Oc(r,t){return r==null||t<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function Bc(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function Nc(r,t,e){return t==="right"?r-e[1]:t==="center"?r+e[3]/2-e[1]/2:r+e[3]}function zc(r){var t=r.text;return t!=null&&(t+=""),t}function ml(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}var ft=mt(),j1=function(r,t,e,i){if(i){var n=ft(i);n.dataIndex=e,n.dataType=t,n.seriesIndex=r,n.ssrType="chart",i.type==="group"&&i.traverse(function(a){var o=ft(a);o.seriesIndex=r,o.dataIndex=e,o.dataType=t,o.ssrType="chart"})}},Fc=1,Hc={},og=mt(),zf=mt(),sg=0,Ff=1,Hf=2,Qe=["emphasis","blur","select"],Vc=["normal","emphasis","blur","select"],Q1=10,J1=9,mi="highlight",Co="downplay",Yo="select",Nu="unselect",Wo="toggleSelect",Vf="selectchanged";function Ri(r){return r!=null&&r!=="none"}function ps(r,t,e){r.onHoverStateChange&&(r.hoverState||0)!==e&&r.onHoverStateChange(t),r.hoverState=e}function lg(r){ps(r,"emphasis",Hf)}function ug(r){r.hoverState===Hf&&ps(r,"normal",sg)}function Gf(r){ps(r,"blur",Ff)}function fg(r){r.hoverState===Ff&&ps(r,"normal",sg)}function tS(r){r.selected=!0}function eS(r){r.selected=!1}function Gc(r,t,e){t(r,e)}function vr(r,t,e){Gc(r,t,e),r.isGroup&&r.traverse(function(i){Gc(i,t,e)})}function rS(r,t,e,i){for(var n=r.style,a={},o=0;o<t.length;o++){var s=t[o],l=n[s];a[s]=l??(i&&i[s])}for(var o=0;o<r.animators.length;o++){var u=r.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(e)<0&&u.targetName==="style"&&u.saveTo(a,t)}return a}function iS(r,t,e,i){var n=e&&pt(e,"select")>=0,a=!1;if(r instanceof yt){var o=og(r),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(Ri(s)||Ri(l)){i=i||{};var u=i.style||{};u.fill==="inherit"?(a=!0,i=k({},i),u=k({},u),u.fill=s):!Ri(u.fill)&&Ri(s)?(a=!0,i=k({},i),u=k({},u),u.fill=ic(s)):!Ri(u.stroke)&&Ri(l)&&(a||(i=k({},i),u=k({},u)),u.stroke=ic(l)),i.style=u}}if(i&&i.z2==null){a||(i=k({},i));var f=r.z2EmphasisLift;i.z2=r.z2+(f??Q1)}return i}function nS(r,t,e){if(e&&e.z2==null){e=k({},e);var i=r.z2SelectLift;e.z2=r.z2+(i??J1)}return e}function aS(r,t,e){var i=pt(r.currentStates,t)>=0,n=r.style.opacity,a=i?null:rS(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=k({},e),o=k({opacity:i?n:a.opacity*.1},o),e.style=o),e}function _l(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return iS(this,r,t,e);if(r==="blur")return aS(this,r,e);if(r==="select")return nS(this,r,e)}return e}function oS(r){r.stateProxy=_l;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=_l),e&&(e.stateProxy=_l)}function Uc(r,t){!dg(r,t)&&!r.__highByOuter&&vr(r,lg)}function Yc(r,t){!dg(r,t)&&!r.__highByOuter&&vr(r,ug)}function la(r,t){r.__highByOuter|=1<<(t||0),vr(r,lg)}function ua(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&vr(r,ug)}function sS(r){vr(r,Gf)}function hg(r){vr(r,fg)}function cg(r){vr(r,tS)}function vg(r){vr(r,eS)}function dg(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function pg(r){var t=r.getModel(),e=[],i=[];t.eachComponent(function(n,a){var o=zf(a),s=n==="series",l=s?r.getViewOfSeriesModel(a):r.getViewOfComponentModel(a);!s&&i.push(l),o.isBlured&&(l.group.traverse(function(u){fg(u)}),s&&e.push(a)),o.isBlured=!1}),I(i,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(e,!1,t)})}function zu(r,t,e,i){var n=i.getModel();e=e||"coordinateSystem";function a(u,f){for(var h=0;h<f.length;h++){var c=u.getItemGraphicEl(f[h]);c&&hg(c)}}if(r!=null&&!(!t||t==="none")){var o=n.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];n.eachSeries(function(u){var f=o===u,h=u.coordinateSystem;h&&h.master&&(h=h.master);var c=h&&s?h===s:f;if(!(e==="series"&&!f||e==="coordinateSystem"&&!c||t==="series"&&f)){var v=i.getViewOfSeriesModel(u);if(v.group.traverse(function(g){g.__highByOuter&&f&&t==="self"||Gf(g)}),se(t))a(u.getData(),t);else if(Y(t))for(var d=Lt(t),y=0;y<d.length;y++)a(u.getData(d[y]),t[d[y]]);l.push(u),zf(u).isBlured=!0}}),n.eachComponent(function(u,f){if(u!=="series"){var h=i.getViewOfComponentModel(f);h&&h.toggleBlurSeries&&h.toggleBlurSeries(l,!0,n)}})}}function Fu(r,t,e){if(!(r==null||t==null)){var i=e.getModel().getComponent(r,t);if(i){zf(i).isBlured=!0;var n=e.getViewOfComponentModel(i);!n||!n.focusBlurEnabled||n.group.traverse(function(a){Gf(a)})}}}function lS(r,t,e){var i=r.seriesIndex,n=r.getData(t.dataType);if(n){var a=ba(n,t);a=(V(a)?a[0]:a)||0;var o=n.getItemGraphicEl(a);if(!o)for(var s=n.count(),l=0;!o&&l<s;)o=n.getItemGraphicEl(l++);if(o){var u=ft(o);zu(i,u.focus,u.blurScope,e)}else{var f=r.get(["emphasis","focus"]),h=r.get(["emphasis","blurScope"]);f!=null&&zu(i,f,h,e)}}}function Uf(r,t,e,i){var n={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||t==null||e==null)return n;var a=i.getModel().getComponent(r,t);if(!a)return n;var o=i.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return n;for(var s=o.findHighDownDispatchers(e),l,u=0;u<s.length;u++)if(ft(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function uS(r,t,e){var i=ft(r),n=Uf(i.componentMainType,i.componentIndex,i.componentHighDownName,e),a=n.dispatchers,o=n.focusSelf;a?(o&&Fu(i.componentMainType,i.componentIndex,e),I(a,function(s){return Uc(s,t)})):(zu(i.seriesIndex,i.focus,i.blurScope,e),i.focus==="self"&&Fu(i.componentMainType,i.componentIndex,e),Uc(r,t))}function fS(r,t,e){pg(e);var i=ft(r),n=Uf(i.componentMainType,i.componentIndex,i.componentHighDownName,e).dispatchers;n?I(n,function(a){return Yc(a,t)}):Yc(r,t)}function hS(r,t,e){if(Gu(t)){var i=t.dataType,n=r.getData(i),a=ba(n,t);V(a)||(a=[a]),r[t.type===Wo?"toggleSelect":t.type===Yo?"select":"unselect"](a,i)}}function Wc(r){var t=r.getAllData();I(t,function(e){var i=e.data,n=e.type;i.eachItemGraphicEl(function(a,o){r.isSelected(o,n)?cg(a):vg(a)})})}function cS(r){var t=[];return r.eachSeries(function(e){var i=e.getAllData();I(i,function(n){n.data;var a=n.type,o=e.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:e.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function Hu(r,t,e){yg(r,!0),vr(r,oS),dS(r,t,e)}function vS(r){yg(r,!1)}function gg(r,t,e,i){i?vS(r):Hu(r,t,e)}function dS(r,t,e){var i=ft(r);t!=null?(i.focus=t,i.blurScope=e):i.focus&&(i.focus=null)}function yg(r,t){var e=t===!1,i=r;r.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!e||i.__highDownDispatcher)&&(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!e)}function Vu(r){return!!(r&&r.__highDownDispatcher)}function pS(r){var t=Hc[r];return t==null&&Fc<=32&&(t=Hc[r]=Fc++),t}function Gu(r){var t=r.type;return t===Yo||t===Nu||t===Wo}function Xc(r){var t=r.type;return t===mi||t===Co}function gS(r){var t=og(r);t.normalFill=r.style.fill,t.normalStroke=r.style.stroke;var e=r.states.select||{};t.selectFill=e.style&&e.style.fill||null,t.selectStroke=e.style&&e.style.stroke||null}var Ei=on.CMD,yS=[[],[],[]],$c=Math.sqrt,mS=Math.atan2;function _S(r,t){if(t){var e=r.data,i=r.len(),n,a,o,s,l,u,f=Ei.M,h=Ei.C,c=Ei.L,v=Ei.R,d=Ei.A,y=Ei.Q;for(o=0,s=0;o<i;){switch(n=e[o++],s=o,a=0,n){case f:a=1;break;case c:a=1;break;case h:a=3;break;case y:a=2;break;case d:var g=t[4],p=t[5],m=$c(t[0]*t[0]+t[1]*t[1]),_=$c(t[2]*t[2]+t[3]*t[3]),S=mS(-t[1]/_,t[0]/m);e[o]*=m,e[o++]+=g,e[o]*=_,e[o++]+=p,e[o++]*=m,e[o++]*=_,e[o++]+=S,e[o++]+=S,o+=2,s=o;break;case v:u[0]=e[o++],u[1]=e[o++],ve(u,u,t),e[s++]=u[0],e[s++]=u[1],u[0]+=e[o++],u[1]+=e[o++],ve(u,u,t),e[s++]=u[0],e[s++]=u[1]}for(l=0;l<a;l++){var b=yS[l];b[0]=e[o++],b[1]=e[o++],ve(b,b,t),e[s++]=b[0],e[s++]=b[1]}}r.increaseVersion()}}var Sl=Math.sqrt,Wa=Math.sin,Xa=Math.cos,mn=Math.PI;function Zc(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function Uu(r,t){return(r[0]*t[0]+r[1]*t[1])/(Zc(r)*Zc(t))}function qc(r,t){return(r[0]*t[1]<r[1]*t[0]?-1:1)*Math.acos(Uu(r,t))}function Kc(r,t,e,i,n,a,o,s,l,u,f){var h=l*(mn/180),c=Xa(h)*(r-e)/2+Wa(h)*(t-i)/2,v=-1*Wa(h)*(r-e)/2+Xa(h)*(t-i)/2,d=c*c/(o*o)+v*v/(s*s);d>1&&(o*=Sl(d),s*=Sl(d));var y=(n===a?-1:1)*Sl((o*o*(s*s)-o*o*(v*v)-s*s*(c*c))/(o*o*(v*v)+s*s*(c*c)))||0,g=y*o*v/s,p=y*-s*c/o,m=(r+e)/2+Xa(h)*g-Wa(h)*p,_=(t+i)/2+Wa(h)*g+Xa(h)*p,S=qc([1,0],[(c-g)/o,(v-p)/s]),b=[(c-g)/o,(v-p)/s],w=[(-1*c-g)/o,(-1*v-p)/s],T=qc(b,w);if(Uu(b,w)<=-1&&(T=mn),Uu(b,w)>=1&&(T=0),T<0){var C=Math.round(T/mn*1e6)/1e6;T=mn*2+C%2*mn}f.addData(u,m,_,o,s,S,T,h,a)}var SS=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,wS=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function bS(r){var t=new on;if(!r)return t;var e=0,i=0,n=e,a=i,o,s=on.CMD,l=r.match(SS);if(!l)return t;for(var u=0;u<l.length;u++){for(var f=l[u],h=f.charAt(0),c=void 0,v=f.match(wS)||[],d=v.length,y=0;y<d;y++)v[y]=parseFloat(v[y]);for(var g=0;g<d;){var p=void 0,m=void 0,_=void 0,S=void 0,b=void 0,w=void 0,T=void 0,C=e,x=i,D=void 0,L=void 0;switch(h){case"l":e+=v[g++],i+=v[g++],c=s.L,t.addData(c,e,i);break;case"L":e=v[g++],i=v[g++],c=s.L,t.addData(c,e,i);break;case"m":e+=v[g++],i+=v[g++],c=s.M,t.addData(c,e,i),n=e,a=i,h="l";break;case"M":e=v[g++],i=v[g++],c=s.M,t.addData(c,e,i),n=e,a=i,h="L";break;case"h":e+=v[g++],c=s.L,t.addData(c,e,i);break;case"H":e=v[g++],c=s.L,t.addData(c,e,i);break;case"v":i+=v[g++],c=s.L,t.addData(c,e,i);break;case"V":i=v[g++],c=s.L,t.addData(c,e,i);break;case"C":c=s.C,t.addData(c,v[g++],v[g++],v[g++],v[g++],v[g++],v[g++]),e=v[g-2],i=v[g-1];break;case"c":c=s.C,t.addData(c,v[g++]+e,v[g++]+i,v[g++]+e,v[g++]+i,v[g++]+e,v[g++]+i),e+=v[g-2],i+=v[g-1];break;case"S":p=e,m=i,D=t.len(),L=t.data,o===s.C&&(p+=e-L[D-4],m+=i-L[D-3]),c=s.C,C=v[g++],x=v[g++],e=v[g++],i=v[g++],t.addData(c,p,m,C,x,e,i);break;case"s":p=e,m=i,D=t.len(),L=t.data,o===s.C&&(p+=e-L[D-4],m+=i-L[D-3]),c=s.C,C=e+v[g++],x=i+v[g++],e+=v[g++],i+=v[g++],t.addData(c,p,m,C,x,e,i);break;case"Q":C=v[g++],x=v[g++],e=v[g++],i=v[g++],c=s.Q,t.addData(c,C,x,e,i);break;case"q":C=v[g++]+e,x=v[g++]+i,e+=v[g++],i+=v[g++],c=s.Q,t.addData(c,C,x,e,i);break;case"T":p=e,m=i,D=t.len(),L=t.data,o===s.Q&&(p+=e-L[D-4],m+=i-L[D-3]),e=v[g++],i=v[g++],c=s.Q,t.addData(c,p,m,e,i);break;case"t":p=e,m=i,D=t.len(),L=t.data,o===s.Q&&(p+=e-L[D-4],m+=i-L[D-3]),e+=v[g++],i+=v[g++],c=s.Q,t.addData(c,p,m,e,i);break;case"A":_=v[g++],S=v[g++],b=v[g++],w=v[g++],T=v[g++],C=e,x=i,e=v[g++],i=v[g++],c=s.A,Kc(C,x,e,i,w,T,_,S,b,c,t);break;case"a":_=v[g++],S=v[g++],b=v[g++],w=v[g++],T=v[g++],C=e,x=i,e+=v[g++],i+=v[g++],c=s.A,Kc(C,x,e,i,w,T,_,S,b,c,t);break}}(h==="z"||h==="Z")&&(c=s.Z,t.addData(c),e=n,i=a),o=c}return t.toStatic(),t}var mg=(function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t})(yt);function _g(r){return r.setData!=null}function Sg(r,t){var e=bS(r),i=k({},t);return i.buildPath=function(n){var a=_g(n);if(a&&n.canSave()){n.appendPath(e);var o=n.getContext();o&&n.rebuildPath(o,1)}else{var o=a?n.getContext():n;o&&e.rebuildPath(o,1)}},i.applyTransform=function(n){_S(e,n),this.dirtyShape()},i}function TS(r,t){return new mg(Sg(r,t))}function xS(r,t){var e=Sg(r,t),i=(function(n){G(a,n);function a(o){var s=n.call(this,o)||this;return s.applyTransform=e.applyTransform,s.buildPath=e.buildPath,s}return a})(mg);return i}function CS(r,t){for(var e=[],i=r.length,n=0;n<i;n++){var a=r[n];e.push(a.getUpdatedPathProxy(!0))}var o=new yt(t);return o.createPathProxy(),o.buildPath=function(s){if(_g(s)){s.appendPath(e);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var DS=(function(){function r(){this.cx=0,this.cy=0,this.r=0}return r})(),gs=(function(r){G(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new DS},t.prototype.buildPath=function(e,i){e.moveTo(i.cx+i.r,i.cy),e.arc(i.cx,i.cy,i.r,0,Math.PI*2)},t})(yt);gs.prototype.type="circle";var IS=(function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r})(),Yf=(function(r){G(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new IS},t.prototype.buildPath=function(e,i){var n=.5522848,a=i.cx,o=i.cy,s=i.rx,l=i.ry,u=s*n,f=l*n;e.moveTo(a-s,o),e.bezierCurveTo(a-s,o-f,a-u,o-l,a,o-l),e.bezierCurveTo(a+u,o-l,a+s,o-f,a+s,o),e.bezierCurveTo(a+s,o+f,a+u,o+l,a,o+l),e.bezierCurveTo(a-u,o+l,a-s,o+f,a-s,o),e.closePath()},t})(yt);Yf.prototype.type="ellipse";var wg=Math.PI,wl=wg*2,Kr=Math.sin,ki=Math.cos,LS=Math.acos,Gt=Math.atan2,jc=Math.abs,Kn=Math.sqrt,zn=Math.max,Ge=Math.min,Ie=1e-4;function MS(r,t,e,i,n,a,o,s){var l=e-r,u=i-t,f=o-n,h=s-a,c=h*l-f*u;if(!(c*c<Ie))return c=(f*(t-a)-h*(r-n))/c,[r+c*l,t+c*u]}function $a(r,t,e,i,n,a,o){var s=r-e,l=t-i,u=(o?a:-a)/Kn(s*s+l*l),f=u*l,h=-u*s,c=r+f,v=t+h,d=e+f,y=i+h,g=(c+d)/2,p=(v+y)/2,m=d-c,_=y-v,S=m*m+_*_,b=n-a,w=c*y-d*v,T=(_<0?-1:1)*Kn(zn(0,b*b*S-w*w)),C=(w*_-m*T)/S,x=(-w*m-_*T)/S,D=(w*_+m*T)/S,L=(-w*m+_*T)/S,A=C-g,M=x-p,P=D-g,N=L-p;return A*A+M*M>P*P+N*N&&(C=D,x=L),{cx:C,cy:x,x0:-f,y0:-h,x1:C*(n/b-1),y1:x*(n/b-1)}}function AS(r){var t;if(V(r)){var e=r.length;if(!e)return r;e===1?t=[r[0],r[0],0,0]:e===2?t=[r[0],r[0],r[1],r[1]]:e===3?t=r.concat(r[2]):t=r}else t=[r,r,r,r];return t}function PS(r,t){var e,i=zn(t.r,0),n=zn(t.r0||0,0),a=i>0,o=n>0;if(!(!a&&!o)){if(a||(i=n,n=0),n>i){var s=i;i=n,n=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var f=t.cx,h=t.cy,c=!!t.clockwise,v=jc(u-l),d=v>wl&&v%wl;if(d>Ie&&(v=d),!(i>Ie))r.moveTo(f,h);else if(v>wl-Ie)r.moveTo(f+i*ki(l),h+i*Kr(l)),r.arc(f,h,i,l,u,!c),n>Ie&&(r.moveTo(f+n*ki(u),h+n*Kr(u)),r.arc(f,h,n,u,l,c));else{var y=void 0,g=void 0,p=void 0,m=void 0,_=void 0,S=void 0,b=void 0,w=void 0,T=void 0,C=void 0,x=void 0,D=void 0,L=void 0,A=void 0,M=void 0,P=void 0,N=i*ki(l),H=i*Kr(l),tt=n*ki(u),it=n*Kr(u),nt=v>Ie;if(nt){var rt=t.cornerRadius;rt&&(e=AS(rt),y=e[0],g=e[1],p=e[2],m=e[3]);var Tt=jc(i-n)/2;if(_=Ge(Tt,p),S=Ge(Tt,m),b=Ge(Tt,y),w=Ge(Tt,g),x=T=zn(_,S),D=C=zn(b,w),(T>Ie||C>Ie)&&(L=i*ki(u),A=i*Kr(u),M=n*ki(l),P=n*Kr(l),v<wg)){var st=MS(N,H,M,P,L,A,tt,it);if(st){var Mt=N-st[0],kt=H-st[1],pe=L-st[0],ge=A-st[1],F=1/Kr(LS((Mt*pe+kt*ge)/(Kn(Mt*Mt+kt*kt)*Kn(pe*pe+ge*ge)))/2),R=Kn(st[0]*st[0]+st[1]*st[1]);x=Ge(T,(i-R)/(F+1)),D=Ge(C,(n-R)/(F-1))}}}if(!nt)r.moveTo(f+N,h+H);else if(x>Ie){var Z=Ge(p,x),j=Ge(m,x),W=$a(M,P,N,H,i,Z,c),K=$a(L,A,tt,it,i,j,c);r.moveTo(f+W.cx+W.x0,h+W.cy+W.y0),x<T&&Z===j?r.arc(f+W.cx,h+W.cy,x,Gt(W.y0,W.x0),Gt(K.y0,K.x0),!c):(Z>0&&r.arc(f+W.cx,h+W.cy,Z,Gt(W.y0,W.x0),Gt(W.y1,W.x1),!c),r.arc(f,h,i,Gt(W.cy+W.y1,W.cx+W.x1),Gt(K.cy+K.y1,K.cx+K.x1),!c),j>0&&r.arc(f+K.cx,h+K.cy,j,Gt(K.y1,K.x1),Gt(K.y0,K.x0),!c))}else r.moveTo(f+N,h+H),r.arc(f,h,i,l,u,!c);if(!(n>Ie)||!nt)r.lineTo(f+tt,h+it);else if(D>Ie){var Z=Ge(y,D),j=Ge(g,D),W=$a(tt,it,L,A,n,-j,c),K=$a(N,H,M,P,n,-Z,c);r.lineTo(f+W.cx+W.x0,h+W.cy+W.y0),D<C&&Z===j?r.arc(f+W.cx,h+W.cy,D,Gt(W.y0,W.x0),Gt(K.y0,K.x0),!c):(j>0&&r.arc(f+W.cx,h+W.cy,j,Gt(W.y0,W.x0),Gt(W.y1,W.x1),!c),r.arc(f,h,n,Gt(W.cy+W.y1,W.cx+W.x1),Gt(K.cy+K.y1,K.cx+K.x1),c),Z>0&&r.arc(f+K.cx,h+K.cy,Z,Gt(K.y1,K.x1),Gt(K.y0,K.x0),!c))}else r.lineTo(f+tt,h+it),r.arc(f,h,n,u,l,c)}r.closePath()}}}var RS=(function(){function r(){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 r})(),Wf=(function(r){G(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new RS},t.prototype.buildPath=function(e,i){PS(e,i)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t})(yt);Wf.prototype.type="sector";var ES=(function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r})(),Xf=(function(r){G(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new ES},t.prototype.buildPath=function(e,i){var n=i.cx,a=i.cy,o=Math.PI*2;e.moveTo(n+i.r,a),e.arc(n,a,i.r,0,o,!1),e.moveTo(n+i.r0,a),e.arc(n,a,i.r0,0,o,!0)},t})(yt);Xf.prototype.type="ring";function kS(r,t,e,i){var n=[],a=[],o=[],s=[],l,u,f,h;if(i){f=[1/0,1/0],h=[-1/0,-1/0];for(var c=0,v=r.length;c<v;c++)Zi(f,f,r[c]),qi(h,h,r[c]);Zi(f,f,i[0]),qi(h,h,i[1])}for(var c=0,v=r.length;c<v;c++){var d=r[c];if(e)l=r[c?c-1:v-1],u=r[(c+1)%v];else if(c===0||c===v-1){n.push(hr(r[c]));continue}else l=r[c-1],u=r[c+1];li(a,u,l),mo(a,a,t);var y=vu(d,l),g=vu(d,u),p=y+g;p!==0&&(y/=p,g/=p),mo(o,a,-y),mo(s,a,g);var m=zh([],d,o),_=zh([],d,s);i&&(qi(m,m,f),Zi(m,m,h),qi(_,_,f),Zi(_,_,h)),n.push(m),n.push(_)}return e&&n.push(n.shift()),n}function bg(r,t,e){var i=t.smooth,n=t.points;if(n&&n.length>=2){if(i){var a=kS(n,i,e,t.smoothConstraint);r.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(e?o:o-1);s++){var l=a[s*2],u=a[s*2+1],f=n[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{r.moveTo(n[0][0],n[0][1]);for(var s=1,h=n.length;s<h;s++)r.lineTo(n[s][0],n[s][1])}e&&r.closePath()}}var OS=(function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r})(),$f=(function(r){G(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new OS},t.prototype.buildPath=function(e,i){bg(e,i,!0)},t})(yt);$f.prototype.type="polygon";var BS=(function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r})(),Zf=(function(r){G(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new BS},t.prototype.buildPath=function(e,i){bg(e,i,!1)},t})(yt);Zf.prototype.type="polyline";var NS={},zS=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r})(),wi=(function(r){G(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new zS},t.prototype.buildPath=function(e,i){var n,a,o,s;if(this.subPixelOptimize){var l=ng(NS,i,this.style);n=l.x1,a=l.y1,o=l.x2,s=l.y2}else n=i.x1,a=i.y1,o=i.x2,s=i.y2;var u=i.percent;u!==0&&(e.moveTo(n,a),u<1&&(o=n*(1-u)+o*u,s=a*(1-u)+s*u),e.lineTo(o,s))},t.prototype.pointAt=function(e){var i=this.shape;return[i.x1*(1-e)+i.x2*e,i.y1*(1-e)+i.y2*e]},t})(yt);wi.prototype.type="line";var te=[],FS=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return r})();function Qc(r,t,e){var i=r.cpx2,n=r.cpy2;return i!=null||n!=null?[(e?jh:$t)(r.x1,r.cpx1,r.cpx2,r.x2,t),(e?jh:$t)(r.y1,r.cpy1,r.cpy2,r.y2,t)]:[(e?Qh:Zt)(r.x1,r.cpx1,r.x2,t),(e?Qh:Zt)(r.y1,r.cpy1,r.y2,t)]}var ys=(function(r){G(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new FS},t.prototype.buildPath=function(e,i){var n=i.x1,a=i.y1,o=i.x2,s=i.y2,l=i.cpx1,u=i.cpy1,f=i.cpx2,h=i.cpy2,c=i.percent;c!==0&&(e.moveTo(n,a),f==null||h==null?(c<1&&(ra(n,l,o,c,te),l=te[1],o=te[2],ra(a,u,s,c,te),u=te[1],s=te[2]),e.quadraticCurveTo(l,u,o,s)):(c<1&&(zo(n,l,f,o,c,te),l=te[1],f=te[2],o=te[3],zo(a,u,h,s,c,te),u=te[1],h=te[2],s=te[3]),e.bezierCurveTo(l,u,f,h,o,s)))},t.prototype.pointAt=function(e){return Qc(this.shape,e,!1)},t.prototype.tangentAt=function(e){var i=Qc(this.shape,e,!0);return cn(i,i)},t})(yt);ys.prototype.type="bezier-curve";var HS=(function(){function r(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r})(),ms=(function(r){G(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new HS},t.prototype.buildPath=function(e,i){var n=i.cx,a=i.cy,o=Math.max(i.r,0),s=i.startAngle,l=i.endAngle,u=i.clockwise,f=Math.cos(s),h=Math.sin(s);e.moveTo(f*o+n,h*o+a),e.arc(n,a,o,s,l,!u)},t})(yt);ms.prototype.type="arc";var VS=(function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="compound",e}return t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,i=this.shapeChanged(),n=0;n<e.length;n++)i=i||e[n].shapeChanged();i&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],i=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(i[0],i[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,i){for(var n=i.paths||[],a=0;a<n.length;a++)n[a].buildPath(e,n[a].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],i=0;i<e.length;i++)e[i].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),yt.prototype.getBoundingRect.call(this)},t})(yt),Tg=(function(){function r(t){this.colorStops=t||[]}return r.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},r})(),GS=(function(r){G(t,r);function t(e,i,n,a,o,s){var l=r.call(this,o)||this;return l.x=e??0,l.y=i??0,l.x2=n??1,l.y2=a??0,l.type="linear",l.global=s||!1,l}return t})(Tg),US=(function(r){G(t,r);function t(e,i,n,a,o){var s=r.call(this,a)||this;return s.x=e??.5,s.y=i??.5,s.r=n??.5,s.type="radial",s.global=o||!1,s}return t})(Tg),bl=Math.min,YS=Math.max,Za=Math.abs,jr=[0,0],Qr=[0,0],Ft=Sp(),qa=Ft.minTv,Ka=Ft.maxTv,xg=(function(){function r(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new ct;for(var i=0;i<2;i++)this._axes[i]=new ct;t&&this.fromBoundingRect(t,e)}return r.prototype.fromBoundingRect=function(t,e){var i=this._corners,n=this._axes,a=t.x,o=t.y,s=a+t.width,l=o+t.height;if(i[0].set(a,o),i[1].set(s,o),i[2].set(s,l),i[3].set(a,l),e)for(var u=0;u<4;u++)i[u].transform(e);ct.sub(n[0],i[1],i[0]),ct.sub(n[1],i[3],i[0]),n[0].normalize(),n[1].normalize();for(var u=0;u<2;u++)this._origin[u]=n[u].dot(i[0])},r.prototype.intersect=function(t,e,i){var n=!0,a=!e;return e&&ct.set(e,0,0),Ft.reset(i,!a),!this._intersectCheckOneSide(this,t,a,1)&&(n=!1,a)||!this._intersectCheckOneSide(t,this,a,-1)&&(n=!1,a)||!a&&!Ft.negativeSize&&ct.copy(e,n?Ft.useDir?Ft.dirMinTv:qa:Ka),n},r.prototype._intersectCheckOneSide=function(t,e,i,n){for(var a=!0,o=0;o<2;o++){var s=t._axes[o];if(t._getProjMinMaxOnAxis(o,t._corners,jr),t._getProjMinMaxOnAxis(o,e._corners,Qr),Ft.negativeSize||jr[1]<Qr[0]||jr[0]>Qr[1]){if(a=!1,Ft.negativeSize||i)return a;var l=Za(Qr[0]-jr[1]),u=Za(jr[0]-Qr[1]);bl(l,u)>Ka.len()&&(l<u?ct.scale(Ka,s,-l*n):ct.scale(Ka,s,u*n))}else if(!i){var l=Za(Qr[0]-jr[1]),u=Za(jr[0]-Qr[1]);(Ft.useDir||bl(l,u)<qa.len())&&((l<u||!Ft.bidirectional)&&(ct.scale(qa,s,l*n),Ft.useDir&&Ft.calcDirMTV()),(l>=u||!Ft.bidirectional)&&(ct.scale(qa,s,-u*n),Ft.useDir&&Ft.calcDirMTV()))}}return a},r.prototype._getProjMinMaxOnAxis=function(t,e,i){for(var n=this._axes[t],a=this._origin,o=e[0].dot(n)+a[t],s=o,l=o,u=1;u<e.length;u++){var f=e[u].dot(n)+a[t];s=bl(f,s),l=YS(f,l)}i[0]=s+Ft.touchThreshold,i[1]=l-Ft.touchThreshold,Ft.negativeSize=i[1]<i[0]},r})(),WS=[],XS=(function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return t.prototype.traverse=function(e,i){e.call(i,this)},t.prototype.useStyle=function(){this.style={}},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,i){i?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,i){i=i||!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],i)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var i=this._cursor;i<this._displayables.length;i++)e&&e(this._displayables[i]);for(var i=0;i<this._temporaryDisplayables.length;i++)e&&e(this._temporaryDisplayables[i])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var i=this._displayables[e];i.parent=this,i.update(),i.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var i=this._temporaryDisplayables[e];i.parent=this,i.update(),i.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new J(1/0,1/0,-1/0,-1/0),i=0;i<this._displayables.length;i++){var n=this._displayables[i],a=n.getBoundingRect().clone();n.needLocalTransform()&&a.applyTransform(n.getLocalTransform(WS)),e.union(a)}this._rect=e}return this._rect},t.prototype.contain=function(e,i){var n=this.transformCoordToLocal(e,i),a=this.getBoundingRect();if(a.contain(n[0],n[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(e,i))return!0}return!1},t})(xa),$S=mt();function ZS(r,t,e,i,n){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),l=r==="update";if(s){var u=void 0,f=void 0,h=void 0;i?(u=$(i.duration,200),f=$(i.easing,"cubicOut"),h=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),f=t.getShallow(l?"animationEasingUpdate":"animationEasing"),h=t.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(h=a.delay)),at(h)&&(h=h(e,n)),at(u)&&(u=u(e));var c={duration:u||0,delay:h,easing:f};return c}else return null}function qf(r,t,e,i,n,a,o){var s=!1,l;at(n)?(o=a,a=n,n=null):Y(n)&&(a=n.cb,o=n.during,s=n.isFrom,l=n.removeOpt,n=n.dataIndex);var u=r==="leave";u||t.stopAnimation("leave");var f=ZS(r,i,n,u?l||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(t,n):null);if(f&&f.duration>0){var h=f.duration,c=f.delay,v=f.easing,d={duration:h,delay:c||0,easing:v,done:a,force:!!a||!!o,setToFinal:!u,scope:r,during:o};s?t.animateFrom(e,d):t.animateTo(e,d)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),a&&a()}function Er(r,t,e,i,n,a){qf("update",r,t,e,i,n,a)}function Kf(r,t,e,i,n,a){qf("enter",r,t,e,i,n,a)}function jn(r){if(!r.__zr)return!0;for(var t=0;t<r.animators.length;t++){var e=r.animators[t];if(e.scope==="leave")return!0}return!1}function Xo(r,t,e,i,n,a){jn(r)||qf("leave",r,t,e,i,n,a)}function Jc(r,t,e,i){r.removeTextContent(),r.removeTextGuideLine(),Xo(r,{style:{opacity:0}},t,e,i)}function qS(r,t,e){function i(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(n){n.isGroup||Jc(n,t,e,i)}):Jc(r,t,e,i)}function KS(r){$S(r).oldStyle=r.style}var Yu={},jS=["x","y"],QS=["width","height"];function JS(r){return yt.extend(r)}var tw=xS;function ew(r,t){return tw(r,t)}function Oe(r,t){Yu[r]=t}function rw(r){if(Yu.hasOwnProperty(r))return Yu[r]}function jf(r,t,e,i){var n=TS(r,t);return e&&(i==="center"&&(e=Dg(e,n.getBoundingRect())),Ig(n,e)),n}function Cg(r,t,e){var i=new Rr({style:{image:r,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(n){if(e==="center"){var a={width:n.width,height:n.height};i.setStyle(Dg(t,a))}}});return i}function Dg(r,t){var e=t.width/t.height,i=r.height*e,n;i<=r.width?n=r.height:(i=r.width,n=i/e);var a=r.x+r.width/2,o=r.y+r.height/2;return{x:a-i/2,y:o-n/2,width:i,height:n}}var iw=CS;function Ig(r,t){if(r.applyTransform){var e=r.getBoundingRect(),i=e.calculateTransform(t);r.applyTransform(i)}}function Qf(r,t){return ng(r,r,{lineWidth:t}),r}function nw(r,t){return ag(r,r,t),r}var aw=hi;function ow(r,t){for(var e=Mf([]);r&&r!==t;)Wn(e,r.getLocalTransform(),e),r=r.parent;return e}function Jf(r,t,e){return t&&!se(t)&&(t=fi.getLocalTransform(t)),e&&(t=Sa([],t)),ve([],r,t)}function sw(r,t,e){var i=t[4]===0||t[5]===0||t[0]===0?1:lr(2*t[4]/t[0]),n=t[4]===0||t[5]===0||t[2]===0?1:lr(2*t[4]/t[2]),a=[r==="left"?-i:r==="right"?i:0,r==="top"?-n:r==="bottom"?n:0];return a=Jf(a,t,e),lr(a[0])>lr(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function tv(r){return!r.isGroup}function lw(r){return r.shape!=null}function uw(r,t,e){if(!r||!t)return;function i(o){var s={};return o.traverse(function(l){tv(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return lw(o)&&(s.shape=et(o.shape)),s}var a=i(r);t.traverse(function(o){if(tv(o)&&o.anid){var s=a[o.anid];if(s){var l=n(o);o.attr(n(s)),Er(o,l,e,ft(o).dataIndex)}}})}function fw(r,t){return ot(r,function(e){var i=e[0];i=Ae(i,t.x),i=aa(i,t.x+t.width);var n=e[1];return n=Ae(n,t.y),n=aa(n,t.y+t.height),[i,n]})}function hw(r,t){var e=Ae(r.x,t.x),i=aa(r.x+r.width,t.x+t.width),n=Ae(r.y,t.y),a=aa(r.y+r.height,t.y+t.height);if(i>=e&&a>=n)return{x:e,y:n,width:i-e,height:a-n}}function th(r,t,e){var i=k({rectHover:!0},t),n=i.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(n.image=r.slice(8),Ct(n,e),new Rr(i)):jf(r.replace("path://",""),i,e,"center")}function cw(r,t,e,i,n){for(var a=0,o=n[n.length-1];a<n.length;a++){var s=n[a];if(Lg(r,t,e,i,s[0],s[1],o[0],o[1]))return!0;o=s}}function Lg(r,t,e,i,n,a,o,s){var l=e-r,u=i-t,f=o-n,h=s-a,c=Tl(f,h,l,u);if(vw(c))return!1;var v=r-n,d=t-a,y=Tl(v,d,l,u)/c;if(y<0||y>1)return!1;var g=Tl(v,d,f,h)/c;return!(g<0||g>1)}function Tl(r,t,e,i){return r*i-e*t}function vw(r){return r<=1e-6&&r>=-1e-6}function Wu(r,t,e,i,n){return t==null||(gt(t)?dt[0]=dt[1]=dt[2]=dt[3]=t:(dt[0]=t[0],dt[1]=t[1],dt[2]=t[2],dt[3]=t[3]),i&&(dt[0]=Ae(0,dt[0]),dt[1]=Ae(0,dt[1]),dt[2]=Ae(0,dt[2]),dt[3]=Ae(0,dt[3])),e&&(dt[0]=-dt[0],dt[1]=-dt[1],dt[2]=-dt[2],dt[3]=-dt[3]),ev(r,dt,"x","width",3,1,n&&n[0]||0),ev(r,dt,"y","height",0,2,n&&n[1]||0)),r}var dt=[0,0,0,0];function ev(r,t,e,i,n,a,o){var s=t[a]+t[n],l=r[i];r[i]+=s,o=Ae(0,aa(o,l)),r[i]<o?(r[i]=o,r[e]+=t[n]>=0?-t[n]:t[a]>=0?l+t[a]:lr(s)>1e-8?(l-o)*t[n]/s:0):r[e]-=t[n]}function _s(r){var t=r.itemTooltipOption,e=r.componentModel,i=r.itemName,n=U(t)?{formatter:t}:t,a=e.mainType,o=e.componentIndex,s={componentType:a,name:i,$vars:["name"]};s[a+"Index"]=o;var l=r.formatterParamsExtra;l&&I(Lt(l),function(f){Pe(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=ft(r.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:i,option:Ct({content:i,encodeHTMLContent:!0,formatterParams:s},n)}}function Xu(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function Ss(r,t){if(r)if(V(r))for(var e=0;e<r.length;e++)Xu(r[e],t);else Xu(r,t)}function eh(r){return!r||lr(r[1])<ja&&lr(r[2])<ja||lr(r[0])<ja&&lr(r[3])<ja}var ja=1e-5;function fa(r,t){return r?J.copy(r,t):t.clone()}function rh(r,t){return t?Af(r||$e(),t):void 0}function ha(r){return{z:r.get("z")||0,zlevel:r.get("zlevel")||0}}function dw(r){var t=-1/0,e=1/0;Xu(r,function(a){i(a),i(a.getTextContent()),i(a.getTextGuideLine())});function i(a){if(!(!a||a.isGroup)){var o=a.currentStates;if(o.length)for(var s=0;s<o.length;s++)n(a.states[o[s]]);n(a)}}function n(a){if(a){var o=a.z2;o>t&&(t=o),o<e&&(e=o)}}return e>t&&(e=t=0),{min:e,max:t}}function Mg(r,t,e){Ag(r,t,e,-1/0)}function Ag(r,t,e,i){if(r.ignoreModelZ)return i;var n=r.getTextContent(),a=r.getTextGuideLine(),o=r.isGroup;if(o)for(var s=r.childrenRef(),l=0;l<s.length;l++)i=Ae(Ag(s[l],t,e,i),i);else r.z=t,r.zlevel=e,i=Ae(r.z2||0,i);if(n&&(n.z=t,n.zlevel=e,isFinite(i)&&(n.z2=i+2)),a){var u=r.textGuideLineConfig;a.z=t,a.zlevel=e,isFinite(i)&&(a.z2=i+(u&&u.showAbove?1:-1))}return i}Oe("circle",gs);Oe("ellipse",Yf);Oe("sector",Wf);Oe("ring",Xf);Oe("polygon",$f);Oe("polyline",Zf);Oe("rect",Vt);Oe("line",wi);Oe("bezierCurve",ys);Oe("arc",ms);const pw=Object.freeze(Object.defineProperty({__proto__:null,Arc:ms,BezierCurve:ys,BoundingRect:J,Circle:gs,CompoundPath:VS,Ellipse:Yf,Group:Et,Image:Rr,IncrementalDisplayable:XS,Line:wi,LinearGradient:GS,OrientedBoundingRect:xg,Path:yt,Point:ct,Polygon:$f,Polyline:Zf,RadialGradient:US,Rect:Vt,Ring:Xf,Sector:Wf,Text:Kt,WH:QS,XY:jS,applyTransform:Jf,calcZ2Range:dw,clipPointsByRect:fw,clipRectByRect:hw,createIcon:th,ensureCopyRect:fa,ensureCopyTransform:rh,expandOrShrinkRect:Wu,extendPath:ew,extendShape:JS,getShapeClass:rw,getTransform:ow,groupTransition:uw,initProps:Kf,isBoundingRectAxisAligned:eh,isElementRemoved:jn,lineLineIntersect:Lg,linePolygonIntersect:cw,makeImage:Cg,makePath:jf,mergePath:iw,registerShape:Oe,removeElement:Xo,removeElementWithFadeOut:qS,resizePath:Ig,retrieveZInfo:ha,setTooltipConfig:_s,subPixelOptimize:aw,subPixelOptimizeLine:Qf,subPixelOptimizeRect:nw,transformDirection:sw,traverseElements:Ss,traverseUpdateZ:Mg,updateProps:Er},Symbol.toStringTag,{value:"Module"}));var ws={};function gw(r,t){for(var e=0;e<Qe.length;e++){var i=Qe[e],n=t[i],a=r.ensureState(i);a.style=a.style||{},a.style.text=n}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:t.normal}),r.useStates(o,!0)}function rv(r,t,e){var i=r.labelFetcher,n=r.labelDataIndex,a=r.labelDimIndex,o=t.normal,s;i&&(s=i.getFormattedLabel(n,"normal",null,a,o&&o.get("formatter"),e!=null?{interpolatedValue:e}:null)),s==null&&(s=at(r.defaultText)?r.defaultText(n,r,e):r.defaultText);for(var l={normal:s},u=0;u<Qe.length;u++){var f=Qe[u],h=t[f];l[f]=$(i?i.getFormattedLabel(n,f,null,a,h&&h.get("formatter")):null,s)}return l}function ih(r,t,e,i){e=e||ws;for(var n=r instanceof Kt,a=!1,o=0;o<Vc.length;o++){var s=t[Vc[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=n?r:r.getTextContent();if(a){n||(l||(l=new Kt,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=rv(e,t),f=t.normal,h=!!f.getShallow("show"),c=Mr(f,i,e,!1,!n);c.text=u.normal,n||r.setTextConfig(iv(f,e,!1));for(var o=0;o<Qe.length;o++){var v=Qe[o],s=t[v];if(s){var d=l.ensureState(v),y=!!$(s.getShallow("show"),h);if(y!==h&&(d.ignore=!y),d.style=Mr(s,i,e,!0,!n),d.style.text=u[v],!n){var g=r.ensureState(v);g.textConfig=iv(s,e,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(c.x=l.style.x),l.style.y!=null&&(c.y=l.style.y),l.ignore=!h,l.useStyle(c),l.dirty(),e.enableTextSetter&&(Sw(l).setLabelText=function(p){var m=rv(e,t,p);gw(l,m)})}else l&&(l.ignore=!0);r.dirty()}function bs(r,t){t=t||"label";for(var e={normal:r.getModel(t)},i=0;i<Qe.length;i++){var n=Qe[i];e[n]=r.getModel([n,t])}return e}function Mr(r,t,e,i,n){var a={};return yw(a,r,e,i,n),t&&k(a,t),a}function iv(r,t,e){t=t||{};var i={},n,a=r.getShallow("rotate"),o=$(r.getShallow("distance"),e?null:5),s=r.getShallow("offset");return n=r.getShallow("position")||(e?null:"inside"),n==="outside"&&(n=t.defaultOutsidePosition||"top"),n!=null&&(i.position=n),s!=null&&(i.offset=s),a!=null&&(a*=Math.PI/180,i.rotation=a),o!=null&&(i.distance=o),i.outsideFill=r.get("color")==="inherit"?t.inheritColor||null:"auto",t.autoOverflowArea!=null&&(i.autoOverflowArea=t.autoOverflowArea),t.layoutRect!=null&&(i.layoutRect=t.layoutRect),i}function yw(r,t,e,i,n){e=e||ws;var a=t.ecModel,o=a&&a.option.textStyle,s=mw(t),l;if(s){l={};var u="richInheritPlainLabel",f=$(t.get(u),a?a.get(u):void 0);for(var h in s)if(s.hasOwnProperty(h)){var c=t.getModel(["rich",h]);sv(l[h]={},c,o,t,f,e,i,n,!1,!0)}}l&&(r.rich=l);var v=t.get("overflow");v&&(r.overflow=v);var d=t.get("lineOverflow");d&&(r.lineOverflow=d);var y=r,g=t.get("minMargin");if(g!=null)g=gt(g)?g/2:0,y.margin=[g,g,g,g],y.__marginType=Ji.minMargin;else{var p=t.get("textMargin");p!=null&&(y.margin=If(p),y.__marginType=Ji.textMargin)}sv(r,t,o,null,null,e,i,n,!0,!1)}function mw(r){for(var t;r&&r!==r.ecModel;){var e=(r.option||ws).rich;if(e){t=t||{};for(var i=Lt(e),n=0;n<i.length;n++){var a=i[n];t[a]=1}}r=r.parentModel}return t}var nv=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],av=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],ov=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function sv(r,t,e,i,n,a,o,s,l,u){e=!o&&e||ws;var f=a&&a.inheritColor,h=t.getShallow("color"),c=t.getShallow("textBorderColor"),v=$(t.getShallow("opacity"),e.opacity);(h==="inherit"||h==="auto")&&(f?h=f:h=null),(c==="inherit"||c==="auto")&&(f?c=f:c=null),s||(h=h||e.color,c=c||e.textBorderColor),h!=null&&(r.fill=h),c!=null&&(r.stroke=c);var d=$(t.getShallow("textBorderWidth"),e.textBorderWidth);d!=null&&(r.lineWidth=d);var y=$(t.getShallow("textBorderType"),e.textBorderType);y!=null&&(r.lineDash=y);var g=$(t.getShallow("textBorderDashOffset"),e.textBorderDashOffset);g!=null&&(r.lineDashOffset=g),!o&&v==null&&!u&&(v=a&&a.defaultOpacity),v!=null&&(r.opacity=v),!o&&!s&&r.fill==null&&a.inheritColor&&(r.fill=a.inheritColor);for(var p=0;p<nv.length;p++){var m=nv[p],_=n!==!1&&i?fr(t.getShallow(m),i.getShallow(m),e[m]):$(t.getShallow(m),e[m]);_!=null&&(r[m]=_)}for(var p=0;p<av.length;p++){var m=av[p],_=t.getShallow(m);_!=null&&(r[m]=_)}if(r.verticalAlign==null){var S=t.getShallow("baseline");S!=null&&(r.verticalAlign=S)}if(!l||!a.disableBox){for(var p=0;p<ov.length;p++){var m=ov[p],_=t.getShallow(m);_!=null&&(r[m]=_)}var b=t.getShallow("borderType");b!=null&&(r.borderDash=b),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&f&&(r.backgroundColor=f),(r.borderColor==="auto"||r.borderColor==="inherit")&&f&&(r.borderColor=f)}}function _w(r,t){var e=t&&t.getModel("textStyle");return We([r.fontStyle||e&&e.getShallow("fontStyle")||"",r.fontWeight||e&&e.getShallow("fontWeight")||"",(r.fontSize||e&&e.getShallow("fontSize")||12)+"px",r.fontFamily||e&&e.getShallow("fontFamily")||"sans-serif"].join(" "))}var Sw=mt(),Ji={minMargin:1,textMargin:2},ww=["textStyle","color"],xl=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Cl=new Kt,bw=(function(){function r(){}return r.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(ww):null)},r.prototype.getFont=function(){return _w({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},i=0;i<xl.length;i++)e[xl[i]]=this.getShallow(xl[i]);return Cl.useStyle(e),Cl.update(),Cl.getBoundingRect()},r})(),Pg=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Tw=sa(Pg),xw=(function(){function r(){}return r.prototype.getLineStyle=function(t){return Tw(this,t)},r})(),Rg=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Cw=sa(Rg),Dw=(function(){function r(){}return r.prototype.getItemStyle=function(t,e){return Cw(this,t,e)},r})(),bt=(function(){function r(t,e,i){this.parentModel=e,this.ecModel=i,this.option=t}return r.prototype.init=function(t,e,i){},r.prototype.mergeOption=function(t,e){xt(this.option,t,!0)},r.prototype.get=function(t,e){return t==null?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},r.prototype.getShallow=function(t,e){var i=this.option,n=i==null?i:i[t];if(n==null&&!e){var a=this.parentModel;a&&(n=a.getShallow(t))}return n},r.prototype.getModel=function(t,e){var i=t!=null,n=i?this.parsePath(t):null,a=i?this._doGet(n):this.option;return e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(n)),new r(a,e,this.ecModel)},r.prototype.isEmpty=function(){return this.option==null},r.prototype.restoreData=function(){},r.prototype.clone=function(){var t=this.constructor;return new t(et(this.option))},r.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},r.prototype.resolveParentPath=function(t){return t},r.prototype.isAnimationEnabled=function(){if(!q.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(t,e){var i=this.option;if(!t)return i;for(var n=0;n<t.length&&!(t[n]&&(i=i&&typeof i=="object"?i[t[n]]:null,i==null));n++);return i==null&&e&&(i=e._doGet(this.resolveParentPath(t),e.parentModel)),i},r})();Of(bt);r1(bt);Ee(bt,xw);Ee(bt,Dw);Ee(bt,s1);Ee(bt,bw);var Iw=Math.round(Math.random()*10);function Ts(r){return[r||"",Iw++].join("_")}function Lw(r){var t={};r.registerSubTypeDefaulter=function(e,i){var n=Xe(e);t[n.main]=i},r.determineSubType=function(e,i){var n=i.type;if(!n){var a=Xe(e).main;r.hasSubTypes(e)&&t[a]&&(n=t[a](i))}return n}}function Mw(r,t){r.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=e(o),f=u.graph,h=u.noEntryList,c={};for(I(a,function(m){c[m]=!0});h.length;){var v=h.pop(),d=f[v],y=!!c[v];y&&(s.call(l,v,d.originalDeps.slice()),delete c[v]),I(d.successor,y?p:g)}I(c,function(){var m="";throw new Error(m)});function g(m){f[m].entryCount--,f[m].entryCount===0&&h.push(m)}function p(m){c[m]=!0,g(m)}};function e(a){var o={},s=[];return I(a,function(l){var u=i(o,l),f=u.originalDeps=t(l),h=n(f,a);u.entryCount=h.length,u.entryCount===0&&s.push(l),I(h,function(c){pt(u.predecessor,c)<0&&u.predecessor.push(c);var v=i(o,c);pt(v.successor,c)<0&&v.successor.push(l)})}),{graph:o,noEntryList:s}}function i(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function n(a,o){var s=[];return I(a,function(l){pt(o,l)>=0&&s.push(l)}),s}}function Aw(r,t){return xt(xt({},r,!0),t,!0)}const Pw={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:". "}}}},Rw={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var $o="ZH",nh="EN",en=nh,Do={},ah={},Eg=q.domSupported?(function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||en).toUpperCase();return r.indexOf($o)>-1?$o:en})():en;function kg(r,t){r=r.toUpperCase(),ah[r]=new bt(t),Do[r]=t}function Ew(r){if(U(r)){var t=Do[r.toUpperCase()]||{};return r===$o||r===nh?et(t):xt(et(t),et(Do[en]),!1)}else return xt(et(r),et(Do[en]),!1)}function kw(r){return ah[r]}function Ow(){return ah[en]}kg(nh,Pw);kg($o,Rw);function gr(r,t){return r+="","0000".substr(0,t-r.length)+r}function Og(r,t,e,i){var n=cs(r),a=n[Bw(e)](),o=n[Nw(e)]()+1,s=Math.floor((o-1)/3)+1,l=n[zw(e)](),u=n["get"+(e?"UTC":"")+"Day"](),f=n[Fw(e)](),h=(f-1)%12+1,c=n[Hw(e)](),v=n[Vw(e)](),d=n[Gw(e)](),y=f>=12?"pm":"am",g=y.toUpperCase(),p=i instanceof bt?i:kw(Eg)||Ow(),m=p.getModel("time"),_=m.get("month"),S=m.get("monthAbbr"),b=m.get("dayOfWeek"),w=m.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,y+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,gr(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,gr(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,gr(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,w[u]).replace(/{e}/g,u+"").replace(/{HH}/g,gr(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,gr(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,gr(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,gr(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,gr(d,3)).replace(/{S}/g,d+"")}function Bw(r){return r?"getUTCFullYear":"getFullYear"}function Nw(r){return r?"getUTCMonth":"getMonth"}function zw(r){return r?"getUTCDate":"getDate"}function Fw(r){return r?"getUTCHours":"getHours"}function Hw(r){return r?"getUTCMinutes":"getMinutes"}function Vw(r){return r?"getUTCSeconds":"getSeconds"}function Gw(r){return r?"getUTCMilliseconds":"getMilliseconds"}function Uw(r){if(!E0(r))return U(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Bg(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,i){return i.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var xs=If;function $u(r,t,e){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(f){return f&&We(f)?f:"-"}function a(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?cs(r):r;if(isNaN(+l)){if(s)return"-"}else return Og(l,i,e)}if(t==="ordinal")return uu(r)?n(r):gt(r)&&a(r)?r+"":"-";var u=Go(r);return a(u)?Uw(u):uu(r)?n(r):typeof r=="boolean"?r+"":"-"}var lv=["a","b","c","d","e","f","g"],Dl=function(r,t){return"{"+r+(t??"")+"}"};function Ng(r,t,e){V(t)||(t=[t]);var i=t.length;if(!i)return"";for(var n=t[0].$vars||[],a=0;a<n.length;a++){var o=lv[a];r=r.replace(Dl(o),Dl(o,0))}for(var s=0;s<i;s++)for(var l=0;l<n.length;l++){var u=t[s][n[l]];r=r.replace(Dl(lv[l],s),e?ee(u):u)}return r}function Yw(r,t){var e=U(r)?{color:r,extraCssText:t}:r||{},i=e.color,n=e.type;t=e.extraCssText;var a=e.renderMode||"html";if(!i)return"";if(a==="html")return n==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+ee(i)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+ee(i)+";"+(t||"")+'"></span>';var o=e.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function ca(r,t){return t=t||"transparent",U(r)?r:Y(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function uv(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var Io={},Il={},Cs=(function(){function r(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return r.prototype.create=function(t,e){this._nonSeriesBoxMasterList=i(Io),this._normalMasterList=i(Il);function i(n,a){var o=[];return I(n,function(s,l){var u=s.create(t,e);o=o.concat(u||[])}),o}},r.prototype.update=function(t,e){I(this._normalMasterList,function(i){i.update&&i.update(t,e)})},r.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},r.register=function(t,e){if(t==="matrix"||t==="calendar"){Io[t]=e;return}Il[t]=e},r.get=function(t){return Il[t]||Io[t]},r})();function Ww(r){return!!Io[r]}var fv={coord:1,coord2:2},Xw=Q();function $w(r){var t=r.getShallow("coord",!0),e=fv.coord;if(t==null){var i=Xw.get(r.type);i&&i.getCoord2&&(e=fv.coord2,t=i.getCoord2(r))}return{coord:t,from:e}}var sr={none:0,dataCoordSys:1,boxCoordSys:2};function Zw(r,t){var e=r.getShallow("coordinateSystem"),i=r.getShallow("coordinateSystemUsage",!0),n=sr.none;if(e){var a=r.mainType==="series";i==null&&(i=a?"data":"box"),i==="data"?(n=sr.dataCoordSys,a||(n=sr.none)):i==="box"&&(n=sr.boxCoordSys,!a&&!Ww(e)&&(n=sr.none))}return{coordSysType:e,kind:n}}function qw(r){var t=r.targetModel,e=r.coordSysType,i=r.coordSysProvider,n=Zw(t),a=n.kind,o=n.coordSysType;if(a!==sr.dataCoordSys&&(a=sr.dataCoordSys,o=e),a===sr.none||o!==e)return!1;var s=i(e,t);return s?(a===sr.dataCoordSys?t.coordinateSystem=s:t.boxCoordinateSystem=s,!0):!1}var Lo=I,Kw=["left","right","top","bottom","width","height"],Qa=[["width","left","right"],["height","top","bottom"]];function oh(r,t,e,i,n){var a=0,o=0;i==null&&(i=1/0),n==null&&(n=1/0);var s=0;t.eachChild(function(l,u){var f=l.getBoundingRect(),h=t.childAt(u+1),c=h&&h.getBoundingRect(),v,d;if(r==="horizontal"){var y=f.width+(c?-c.x+f.x:0);v=a+y,v>i||l.newline?(a=0,v=y,o+=s+e,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(c?-c.y+f.y:0);d=o+g,d>n||l.newline?(a+=s+e,o=0,d=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),r==="horizontal"?a=v+e:o=d+e)})}var Qn=oh;Pt(oh,"vertical");Pt(oh,"horizontal");function jw(r,t){return{left:r.getShallow("left",t),top:r.getShallow("top",t),right:r.getShallow("right",t),bottom:r.getShallow("bottom",t),width:r.getShallow("width",t),height:r.getShallow("height",t)}}function sn(r,t,e){e=xs(e||0);var i=t.width,n=t.height,a=re(r.left,i),o=re(r.top,n),s=re(r.right,i),l=re(r.bottom,n),u=re(r.width,i),f=re(r.height,n),h=e[2]+e[0],c=e[1]+e[3],v=r.aspect;switch(isNaN(u)&&(u=i-s-c-a),isNaN(f)&&(f=n-l-h-o),v!=null&&(isNaN(u)&&isNaN(f)&&(v>i/n?u=i*.8:f=n*.8),isNaN(u)&&(u=v*f),isNaN(f)&&(f=u/v)),isNaN(a)&&(a=i-s-u-c),isNaN(o)&&(o=n-l-f-h),r.left||r.right){case"center":a=i/2-u/2-e[3];break;case"right":a=i-u-c;break}switch(r.top||r.bottom){case"middle":case"center":o=n/2-f/2-e[0];break;case"bottom":o=n-f-h;break}a=a||0,o=o||0,isNaN(u)&&(u=i-c-a-(s||0)),isNaN(f)&&(f=n-h-o-(l||0));var d=new J((t.x||0)+a+e[3],(t.y||0)+o+e[0],u,f);return d.margin=e,d}function Qw(r,t,e){var i=r.getShallow("preserveAspect",!0);if(!i)return t;var n=t.width/t.height;if(Math.abs(Math.atan(e)-Math.atan(n))<1e-9)return t;var a=r.getShallow("preserveAspectAlign",!0),o=r.getShallow("preserveAspectVerticalAlign",!0),s={width:t.width,height:t.height},l=i==="cover";return n>e&&!l||n<e&&l?(s.width=t.height*e,a==="left"?s.left=0:a==="right"?s.right=0:s.left="center"):(s.height=t.width/e,o==="top"?s.top=0:o==="bottom"?s.bottom=0:s.top="middle"),sn(s,t)}var Ll={rect:1};function sh(r,t,e){var i,n,a,o=r.boxCoordinateSystem,s;if(o){var l=$w(r),u=l.coord,f=l.from;if(o.dataToLayout){a=Ll.rect,s=f;var h=o.dataToLayout(u);i=h.contentRect||h.rect}}return a==null&&(a=Ll.rect),a===Ll.rect&&(i||(i={x:0,y:0,width:t.getWidth(),height:t.getHeight()}),n=[i.x+i.width/2,i.y+i.height/2]),{type:a,refContainer:i,refPoint:n,boxCoordFrom:s}}function Zo(r){var t=r.layoutMode||r.constructor.layoutMode;return Y(t)?t:t?{type:t}:null}function va(r,t,e){var i=e&&e.ignoreSize;!V(i)&&(i=[i,i]);var n=o(Qa[0],0),a=o(Qa[1],1);l(Qa[0],r,n),l(Qa[1],r,a);function o(u,f){var h={},c=0,v={},d=0,y=2;if(Lo(u,function(m){v[m]=r[m]}),Lo(u,function(m){Pe(t,m)&&(h[m]=v[m]=t[m]),s(h,m)&&c++,s(v,m)&&d++}),i[f])return s(t,u[1])?v[u[2]]=null:s(t,u[2])&&(v[u[1]]=null),v;if(d===y||!c)return v;if(c>=y)return h;for(var g=0;g<u.length;g++){var p=u[g];if(!Pe(h,p)&&Pe(r,p)){h[p]=r[p];break}}return h}function s(u,f){return u[f]!=null&&u[f]!=="auto"}function l(u,f,h){Lo(u,function(c){f[c]=h[c]})}}function lh(r){return Jw({},r)}function Jw(r,t){return t&&r&&Lo(Kw,function(e){Pe(t,e)&&(r[e]=t[e])}),r}var tb=mt(),vt=(function(r){G(t,r);function t(e,i,n){var a=r.call(this,e,i,n)||this;return a.uid=Ts("ec_cpt_model"),a}return t.prototype.init=function(e,i,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,i){var n=Zo(this),a=n?lh(e):{},o=i.getTheme();xt(e,o.get(this.mainType)),xt(e,this.getDefaultOption()),n&&va(e,a,n)},t.prototype.mergeOption=function(e,i){xt(this.option,e,!0);var n=Zo(this);n&&va(this.option,e,n)},t.prototype.optionUpdated=function(e,i){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!J0(e))return e.defaultOption;var i=tb(this);if(!i.defaultOption){for(var n=[],a=e;a;){var o=a.prototype.defaultOption;o&&n.push(o),a=a.superClass}for(var s={},l=n.length-1;l>=0;l--)s=xt(s,n[l],!0);i.defaultOption=s}return i.defaultOption},t.prototype.getReferringComponents=function(e,i){var n=e+"Index",a=e+"Id";return Ta(this.ecModel,e,{index:this.get(n,!0),id:this.get(a,!0)},i)},t.prototype.getBoxLayoutParams=function(){return jw(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})(bt);Kp(vt,bt);Bf(vt);Lw(vt);Mw(vt,eb);function eb(r){var t=[];return I(vt.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=ot(t,function(e){return Xe(e).main}),r!=="dataset"&&pt(t,"dataset")<=0&&t.unshift("dataset"),t}var X={color:{},darkColor:{},size:{}},It=X.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)"};k(It,{primary:It.neutral80,secondary:It.neutral70,tertiary:It.neutral60,quaternary:It.neutral50,disabled:It.neutral20,border:It.neutral30,borderTint:It.neutral20,borderShade:It.neutral40,background:It.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:It.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:It.neutral70,axisLineTint:It.neutral40,axisTick:It.neutral70,axisTickMinor:It.neutral60,axisLabel:It.neutral70,axisSplitLine:It.neutral15,axisMinorSplitLine:It.neutral05});for(var Jr in It)if(It.hasOwnProperty(Jr)){var hv=It[Jr];Jr==="theme"?X.darkColor.theme=It.theme.slice():Jr==="highlight"?X.darkColor.highlight="rgba(255,231,130,0.4)":Jr.indexOf("accent")===0?X.darkColor[Jr]=bu(hv,null,function(r){return r*.5},function(r){return Math.min(1,1.3-r)}):X.darkColor[Jr]=bu(hv,null,function(r){return r*.9},function(r){return 1-Math.pow(r,1.5)})}X.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var zg="";typeof navigator<"u"&&(zg=navigator.platform||"");var Oi="rgba(0, 0, 0, 0.2)",Fg=X.color.theme[0],rb=bu(Fg,null,null,.9);const ib={darkMode:"auto",colorBy:"series",color:X.color.theme,gradientColor:[rb,Fg],aria:{decal:{decals:[{color:Oi,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Oi,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Oi,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Oi,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Oi,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Oi,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:zg.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var Hg=Q(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),de="original",Yt="arrayRows",Be="objectRows",tr="keyedColumns",Dr="typedArray",Vg="unknown",Ke="column",bi="row",ue={Must:1,Might:2,Not:3},Gg=mt();function nb(r){Gg(r).datasetMap=Q()}function ab(r,t,e){var i={},n=Ug(t);if(!n||!r)return i;var a=[],o=[],s=t.ecModel,l=Gg(s).datasetMap,u=n.uid+"_"+e.seriesLayoutBy,f,h;r=r.slice(),I(r,function(y,g){var p=Y(y)?y:r[g]={name:y};p.type==="ordinal"&&f==null&&(f=g,h=d(p)),i[p.name]=[]});var c=l.get(u)||l.set(u,{categoryWayDim:h,valueWayDim:0});I(r,function(y,g){var p=y.name,m=d(y);if(f==null){var _=c.valueWayDim;v(i[p],_,m),v(o,_,m),c.valueWayDim+=m}else if(f===g)v(i[p],0,m),v(a,0,m);else{var _=c.categoryWayDim;v(i[p],_,m),v(o,_,m),c.categoryWayDim+=m}});function v(y,g,p){for(var m=0;m<p;m++)y.push(g+m)}function d(y){var g=y.dimsDef;return g?g.length:1}return a.length&&(i.itemName=a),o.length&&(i.seriesName=o),i}function Ug(r){var t=r.get("data",!0);if(!t)return Ta(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},wr).models[0]}function ob(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:Ta(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},wr).models}function Yg(r,t){return sb(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,t)}function sb(r,t,e,i,n,a){var o,s=5;if(le(r))return ue.Not;var l,u;if(i){var f=i[a];Y(f)?(l=f.name,u=f.type):U(f)&&(l=f)}if(u!=null)return u==="ordinal"?ue.Must:ue.Not;if(t===Yt){var h=r;if(e===bi){for(var c=h[a],v=0;v<(c||[]).length&&v<s;v++)if((o=S(c[n+v]))!=null)return o}else for(var v=0;v<h.length&&v<s;v++){var d=h[n+v];if(d&&(o=S(d[a]))!=null)return o}}else if(t===Be){var y=r;if(!l)return ue.Not;for(var v=0;v<y.length&&v<s;v++){var g=y[v];if(g&&(o=S(g[l]))!=null)return o}}else if(t===tr){var p=r;if(!l)return ue.Not;var c=p[l];if(!c||le(c))return ue.Not;for(var v=0;v<c.length&&v<s;v++)if((o=S(c[v]))!=null)return o}else if(t===de)for(var m=r,v=0;v<m.length&&v<s;v++){var g=m[v],_=wa(g);if(!V(_))return ue.Not;if((o=S(_[a]))!=null)return o}function S(b){var w=U(b);if(b!=null&&Number.isFinite(Number(b))&&b!=="")return w?ue.Might:ue.Not;if(w&&b!=="-")return ue.Must}return ue.Not}var lb=Q();function ub(r,t,e){var i=lb.get(t);if(!i)return e;var n=i(r);return n?e.concat(n):e}var cv=mt();mt();var uh=(function(){function r(){}return r.prototype.getColorFromPalette=function(t,e,i){var n=qt(this.get("color",!0)),a=this.get("colorLayer",!0);return hb(this,cv,n,a,t,e,i)},r.prototype.clearColorPalette=function(){cb(this,cv)},r})();function fb(r,t){for(var e=r.length,i=0;i<e;i++)if(r[i].length>t)return r[i];return r[e-1]}function hb(r,t,e,i,n,a,o){a=a||r;var s=t(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(n))return u[n];var f=o==null||!i?e:fb(i,o);if(f=f||e,!(!f||!f.length)){var h=f[l];return n&&(u[n]=h),s.paletteIdx=(l+1)%f.length,h}}function cb(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var Ja,_n,vv,dv="\0_ec_inner",vb=1,fh=(function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,i,n,a,o,s){a=a||{},this.option=null,this._theme=new bt(a),this._locale=new bt(o),this._optionManager=s},t.prototype.setOption=function(e,i,n){var a=yv(i);this._optionManager.setOption(e,n,a),this._resetOption(null,a)},t.prototype.resetOption=function(e,i){return this._resetOption(e,yv(i))},t.prototype._resetOption=function(e,i){var n=!1,a=this._optionManager;if(!e||e==="recreate"){var o=a.mountOption(e==="recreate");!this.option||e==="recreate"?vv(this,o):(this.restoreData(),this._mergeOption(o,i)),n=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=a.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,i))}if(!e||e==="recreate"||e==="media"){var l=a.getMediaOption(this);l.length&&I(l,function(u){n=!0,this._mergeOption(u,i)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,i){var n=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=Q(),u=i&&i.replaceMergeMainTypeMap;nb(this),I(e,function(h,c){h!=null&&(vt.hasClass(c)?c&&(s.push(c),l.set(c,!0)):n[c]=n[c]==null?et(h):xt(n[c],h,!0))}),u&&u.each(function(h,c){vt.hasClass(c)&&!l.get(c)&&(s.push(c),l.set(c,!0))}),vt.topologicalTravel(s,vt.getAllClassMainTypes(),f,this);function f(h){var c=ub(this,h,qt(e[h])),v=a.get(h),d=v?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll",y=F0(v,c,d);X0(y,h,vt),n[h]=null,a.set(h,null),o.set(h,0);var g=[],p=[],m=0,_;I(y,function(S,b){var w=S.existing,T=S.newOption;if(!T)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var C=h==="series",x=vt.getClass(h,S.keyInfo.subType,!C);if(!x)return;if(h==="tooltip"){if(_)return;_=!0}if(w&&w.constructor===x)w.name=S.keyInfo.name,w.mergeOption(T,this),w.optionUpdated(T,!1);else{var D=k({componentIndex:b},S.keyInfo);w=new x(T,this,this,D),k(w,D),S.brandNew&&(w.__requireNewView=!0),w.init(T,this,this),w.optionUpdated(null,!0)}}w?(g.push(w.option),p.push(w),m++):(g.push(void 0),p.push(void 0))},this),n[h]=g,a.set(h,p),o.set(h,m),h==="series"&&Ja(this)}this._seriesIndices||Ja(this)},t.prototype.getOption=function(){var e=et(this.option);return I(e,function(i,n){if(vt.hasClass(n)){for(var a=qt(i),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!oa(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,e[n]=a}}),delete e[dv],e},t.prototype.setTheme=function(e){this._theme=new bt(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,i){var n=this._componentsMap.get(e);if(n){var a=n[i||0];if(a)return a;if(i==null){for(var o=0;o<n.length;o++)if(n[o])return n[o]}}},t.prototype.queryComponents=function(e){var i=e.mainType;if(!i)return[];var n=e.index,a=e.id,o=e.name,s=this._componentsMap.get(i);if(!s||!s.length)return[];var l;return n!=null?(l=[],I(qt(n),function(u){s[u]&&l.push(s[u])})):a!=null?l=pv("id",a,s):o!=null?l=pv("name",o,s):l=he(s,function(u){return!!u}),gv(l,e)},t.prototype.findComponents=function(e){var i=e.query,n=e.mainType,a=s(i),o=a?this.queryComponents(a):he(this._componentsMap.get(n),function(u){return!!u});return l(gv(o,e));function s(u){var f=n+"Index",h=n+"Id",c=n+"Name";return u&&(u[f]!=null||u[h]!=null||u[c]!=null)?{mainType:n,index:u[f],id:u[h],name:u[c]}:null}function l(u){return e.filter?he(u,e.filter):u}},t.prototype.eachComponent=function(e,i,n){var a=this._componentsMap;if(at(e)){var o=i,s=e;a.each(function(h,c){for(var v=0;h&&v<h.length;v++){var d=h[v];d&&s.call(o,c,d,d.componentIndex)}})}else for(var l=U(e)?a.get(e):Y(e)?this.findComponents(e):null,u=0;l&&u<l.length;u++){var f=l[u];f&&i.call(n,f,f.componentIndex)}},t.prototype.getSeriesByName=function(e){var i=Re(e,null);return he(this._componentsMap.get("series"),function(n){return!!n&&i!=null&&n.name===i})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return he(this._componentsMap.get("series"),function(i){return!!i&&i.subType===e})},t.prototype.getSeries=function(){return he(this._componentsMap.get("series"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,i){_n(this),I(this._seriesIndices,function(n){var a=this._componentsMap.get("series")[n];e.call(i,a,n)},this)},t.prototype.eachRawSeries=function(e,i){I(this._componentsMap.get("series"),function(n){n&&e.call(i,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,i,n){_n(this),I(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===e&&i.call(n,o,a)},this)},t.prototype.eachRawSeriesByType=function(e,i,n){return I(this.getSeriesByType(e),i,n)},t.prototype.isSeriesFiltered=function(e){return _n(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,i){_n(this);var n=[];I(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];e.call(i,o,a)&&n.push(a)},this),this._seriesIndices=n,this._seriesIndicesMap=Q(n)},t.prototype.restoreData=function(e){Ja(this);var i=this._componentsMap,n=[];i.each(function(a,o){vt.hasClass(o)&&n.push(o)}),vt.topologicalTravel(n,vt.getAllClassMainTypes(),function(a){I(i.get(a),function(o){o&&(a!=="series"||!db(o,e))&&o.restoreData()})})},t.internalField=(function(){Ja=function(e){var i=e._seriesIndices=[];I(e._componentsMap.get("series"),function(n){n&&i.push(n.componentIndex)}),e._seriesIndicesMap=Q(i)},_n=function(e){},vv=function(e,i){e.option={},e.option[dv]=vb,e._componentsMap=Q({series:[]}),e._componentsCount=Q();var n=i.aria;Y(n)&&n.enabled==null&&(n.enabled=!0),pb(i,e._theme.option),xt(i,ib,!1),e._mergeOption(i,null)}})(),t})(bt);function db(r,t){if(t){var e=t.seriesIndex,i=t.seriesId,n=t.seriesName;return e!=null&&r.componentIndex!==e||i!=null&&r.id!==i||n!=null&&r.name!==n}}function pb(r,t){var e=r.color&&!r.colorLayer;I(t,function(i,n){n==="colorLayer"&&e||n==="color"&&r.color||vt.hasClass(n)||(typeof i=="object"?r[n]=r[n]?xt(r[n],i,!1):et(i):r[n]==null&&(r[n]=i))})}function pv(r,t,e){if(V(t)){var i=Q();return I(t,function(a){if(a!=null){var o=Re(a,null);o!=null&&i.set(a,!0)}}),he(e,function(a){return a&&i.get(a[r])})}else{var n=Re(t,null);return he(e,function(a){return a&&n!=null&&a[r]===n})}}function gv(r,t){return t.hasOwnProperty("subType")?he(r,function(e){return e&&e.subType===t.subType}):r}function yv(r){var t=Q();return r&&I(qt(r.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}Ee(fh,uh);var gb=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Wg=(function(){function r(t){I(gb,function(e){this[e]=ht(t[e],t)},this)}return r})(),yb=/^(min|max)?(.+)$/,mb=(function(){function r(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return r.prototype.setOption=function(t,e,i){t&&(I(qt(t.series),function(o){o&&o.data&&le(o.data)&&fu(o.data)}),I(qt(t.dataset),function(o){o&&o.source&&le(o.source)&&fu(o.source)})),t=et(t);var n=this._optionBackup,a=_b(t,e,!n);this._newBaseOption=a.baseOption,n?(a.timelineOptions.length&&(n.timelineOptions=a.timelineOptions),a.mediaList.length&&(n.mediaList=a.mediaList),a.mediaDefault&&(n.mediaDefault=a.mediaDefault)):this._optionBackup=a},r.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],et(t?e.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(t){var e,i=this._timelineOptions;if(i.length){var n=t.getComponent("timeline");n&&(e=et(i[n.getCurrentIndex()]))}return e},r.prototype.getMediaOption=function(t){var e=this._api.getWidth(),i=this._api.getHeight(),n=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!n.length&&!a)return s;for(var l=0,u=n.length;l<u;l++)Sb(n[l].query,e,i)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!bb(o,this._currentMediaIndices)&&(s=ot(o,function(f){return et(f===-1?a.option:n[f].option)})),this._currentMediaIndices=o,s},r})();function _b(r,t,e){var i=[],n,a,o=r.baseOption,s=r.timeline,l=r.options,u=r.media,f=!!r.media,h=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((h||f)&&(r.options=r.media=null),a=r),f&&V(u)&&I(u,function(v){v&&v.option&&(v.query?i.push(v):n||(n=v))}),c(a),I(l,function(v){return c(v)}),I(i,function(v){return c(v.option)});function c(v){I(t,function(d){d(v,e)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:n,mediaList:i}}function Sb(r,t,e){var i={width:t,height:e,aspectratio:t/e},n=!0;return I(r,function(a,o){var s=o.match(yb);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();wb(i[u],a,l)||(n=!1)}}),n}function wb(r,t,e){return e==="min"?r>=t:e==="max"?r<=t:r===t}function bb(r,t){return r.join(",")===t.join(",")}var De=I,da=Y,mv=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Ml(r){var t=r&&r.itemStyle;if(t)for(var e=0,i=mv.length;e<i;e++){var n=mv[e],a=t.normal,o=t.emphasis;a&&a[n]&&(r[n]=r[n]||{},r[n].normal?xt(r[n].normal,a[n]):r[n].normal=a[n],a[n]=null),o&&o[n]&&(r[n]=r[n]||{},r[n].emphasis?xt(r[n].emphasis,o[n]):r[n].emphasis=o[n],o[n]=null)}}function Ut(r,t,e){if(r&&r[t]&&(r[t].normal||r[t].emphasis)){var i=r[t].normal,n=r[t].emphasis;i&&(e?(r[t].normal=r[t].emphasis=null,Ct(r[t],i)):r[t]=i),n&&(r.emphasis=r.emphasis||{},r.emphasis[t]=n,n.focus&&(r.emphasis.focus=n.focus),n.blurScope&&(r.emphasis.blurScope=n.blurScope))}}function Fn(r){Ut(r,"itemStyle"),Ut(r,"lineStyle"),Ut(r,"areaStyle"),Ut(r,"label"),Ut(r,"labelLine"),Ut(r,"upperLabel"),Ut(r,"edgeLabel")}function At(r,t){var e=da(r)&&r[t],i=da(e)&&e.textStyle;if(i)for(var n=0,a=_c.length;n<a;n++){var o=_c[n];i.hasOwnProperty(o)&&(e[o]=i[o])}}function be(r){r&&(Fn(r),At(r,"label"),r.emphasis&&At(r.emphasis,"label"))}function Tb(r){if(da(r)){Ml(r),Fn(r),At(r,"label"),At(r,"upperLabel"),At(r,"edgeLabel"),r.emphasis&&(At(r.emphasis,"label"),At(r.emphasis,"upperLabel"),At(r.emphasis,"edgeLabel"));var t=r.markPoint;t&&(Ml(t),be(t));var e=r.markLine;e&&(Ml(e),be(e));var i=r.markArea;i&&be(i);var n=r.data;if(r.type==="graph"){n=n||r.nodes;var a=r.links||r.edges;if(a&&!le(a))for(var o=0;o<a.length;o++)be(a[o]);I(r.categories,function(u){Fn(u)})}if(n&&!le(n))for(var o=0;o<n.length;o++)be(n[o]);if(t=r.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)be(s[o]);if(e=r.markLine,e&&e.data)for(var l=e.data,o=0;o<l.length;o++)V(l[o])?(be(l[o][0]),be(l[o][1])):be(l[o]);r.type==="gauge"?(At(r,"axisLabel"),At(r,"title"),At(r,"detail")):r.type==="treemap"?(Ut(r.breadcrumb,"itemStyle"),I(r.levels,function(u){Fn(u)})):r.type==="tree"&&Fn(r.leaves)}}function ir(r){return V(r)?r:r?[r]:[]}function _v(r){return(V(r)?r[0]:r)||{}}function xb(r,t){De(ir(r.series),function(i){da(i)&&Tb(i)});var e=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&e.push("valueAxis","categoryAxis","logAxis","timeAxis"),De(e,function(i){De(ir(r[i]),function(n){n&&(At(n,"axisLabel"),At(n.axisPointer,"label"))})}),De(ir(r.parallel),function(i){var n=i&&i.parallelAxisDefault;At(n,"axisLabel"),At(n&&n.axisPointer,"label")}),De(ir(r.calendar),function(i){Ut(i,"itemStyle"),At(i,"dayLabel"),At(i,"monthLabel"),At(i,"yearLabel")}),De(ir(r.radar),function(i){At(i,"name"),i.name&&i.axisName==null&&(i.axisName=i.name,delete i.name),i.nameGap!=null&&i.axisNameGap==null&&(i.axisNameGap=i.nameGap,delete i.nameGap)}),De(ir(r.geo),function(i){da(i)&&(be(i),De(ir(i.regions),function(n){be(n)}))}),De(ir(r.timeline),function(i){be(i),Ut(i,"label"),Ut(i,"itemStyle"),Ut(i,"controlStyle",!0);var n=i.data;V(n)&&I(n,function(a){Y(a)&&(Ut(a,"label"),Ut(a,"itemStyle"))})}),De(ir(r.toolbox),function(i){Ut(i,"iconStyle"),De(i.feature,function(n){Ut(n,"iconStyle")})}),At(_v(r.axisPointer),"label"),At(_v(r.tooltip).axisPointer,"label")}function Cb(r,t){for(var e=t.split(","),i=r,n=0;n<e.length&&(i=i&&i[e[n]],i!=null);n++);return i}function Db(r,t,e,i){for(var n=t.split(","),a=r,o,s=0;s<n.length-1;s++)o=n[s],a[o]==null&&(a[o]={}),a=a[o];a[n[s]]==null&&(a[n[s]]=e)}function Sv(r){r&&I(Ib,function(t){t[0]in r&&!(t[1]in r)&&(r[t[1]]=r[t[0]])})}var Ib=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Lb=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Al=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Sn(r){var t=r&&r.itemStyle;if(t)for(var e=0;e<Al.length;e++){var i=Al[e][1],n=Al[e][0];t[i]!=null&&(t[n]=t[i])}}function wv(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function bv(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay)}function Mb(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function Xg(r,t){if(r)for(var e=0;e<r.length;e++)t(r[e]),r[e]&&Xg(r[e].children,t)}function $g(r,t){xb(r,t),r.series=qt(r.series),I(r.series,function(e){if(Y(e)){var i=e.type;if(i==="line")e.clipOverflow!=null&&(e.clip=e.clipOverflow);else if(i==="pie"||i==="gauge"){e.clockWise!=null&&(e.clockwise=e.clockWise),wv(e.label);var n=e.data;if(n&&!le(n))for(var a=0;a<n.length;a++)wv(n[a]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(i==="gauge"){var o=Cb(e,"pointer.color");o!=null&&Db(e,"itemStyle.color",o)}else if(i==="bar"){Sn(e),Sn(e.backgroundStyle),Sn(e.emphasis);var n=e.data;if(n&&!le(n))for(var a=0;a<n.length;a++)typeof n[a]=="object"&&(Sn(n[a]),Sn(n[a]&&n[a].emphasis))}else if(i==="sunburst"){var s=e.highlightPolicy;s&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=s)),bv(e),Xg(e.data,bv)}else i==="graph"||i==="sankey"?Mb(e):i==="map"&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&Ct(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),Sv(e)}}),r.dataRange&&(r.visualMap=r.dataRange),I(Lb,function(e){var i=r[e];i&&(V(i)||(i=[i]),I(i,function(n){Sv(n)}))})}function Ab(r){var t=Q();r.eachSeries(function(e){var i=e.get("stack");if(i){var n=t.get(i)||t.set(i,[]),a=e.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:e};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;n.push(o)}}),t.each(function(e){if(e.length!==0){var i=e[0].seriesModel,n=i.get("stackOrder")||"seriesAsc";n==="seriesDesc"&&e.reverse(),I(e,function(a,o){a.data.setCalculationInfo("stackedOnSeries",o>0?e[o-1].seriesModel:null)}),Pb(e)}})}function Pb(r){I(r,function(t,e){var i=[],n=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,f,h){var c=o.get(t.stackedDimension,h);if(isNaN(c))return n;var v,d;s?d=o.getRawIndex(h):v=o.get(t.stackedByDimension,h);for(var y=NaN,g=e-1;g>=0;g--){var p=r[g];if(s||(d=p.data.rawIndexOf(p.stackedByDimension,v)),d>=0){var m=p.data.getByRawIndex(p.stackResultDimension,d);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&c>=0&&m>0||l==="samesign"&&c<=0&&m<0){c=P0(c,m),y=m;break}}}return i[0]=c,i[1]=y,i})})}var Ds=(function(){function r(t){this.data=t.data||(t.sourceFormat===tr?{}:[]),this.sourceFormat=t.sourceFormat||Vg,this.seriesLayoutBy=t.seriesLayoutBy||Ke,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var i=0;i<e.length;i++){var n=e[i];n.type==null&&Yg(this,i)===ue.Must&&(n.type="ordinal")}}return r})();function hh(r){return r instanceof Ds}function Zu(r,t,e){e=e||Zg(r);var i=t.seriesLayoutBy,n=Eb(r,e,i,t.sourceHeader,t.dimensions),a=new Ds({data:r,sourceFormat:e,seriesLayoutBy:i,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,metaRawOption:et(t)});return a}function ch(r){return new Ds({data:r,sourceFormat:le(r)?Dr:de})}function Rb(r){return new Ds({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:et(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function Zg(r){var t=Vg;if(le(r))t=Dr;else if(V(r)){r.length===0&&(t=Yt);for(var e=0,i=r.length;e<i;e++){var n=r[e];if(n!=null){if(V(n)||le(n)){t=Yt;break}else if(Y(n)){t=Be;break}}}}else if(Y(r)){for(var a in r)if(Pe(r,a)&&se(r[a])){t=tr;break}}return t}function Eb(r,t,e,i,n){var a,o;if(!r)return{dimensionsDefine:Tv(n),startIndex:o,dimensionsDetectedCount:a};if(t===Yt){var s=r;i==="auto"||i==null?xv(function(u){u!=null&&u!=="-"&&(U(u)?o==null&&(o=1):o=0)},e,s,10):o=gt(i)?i:i?1:0,!n&&o===1&&(n=[],xv(function(u,f){n[f]=u!=null?u+"":""},e,s,1/0)),a=n?n.length:e===bi?s.length:s[0]?s[0].length:null}else if(t===Be)n||(n=kb(r));else if(t===tr)n||(n=[],I(r,function(u,f){n.push(f)}));else if(t===de){var l=wa(r[0]);a=V(l)&&l.length||1}return{startIndex:o,dimensionsDefine:Tv(n),dimensionsDetectedCount:a}}function kb(r){for(var t=0,e;t<r.length&&!(e=r[t++]););if(e)return Lt(e)}function Tv(r){if(r){var t=Q();return ot(r,function(e,i){e=Y(e)?e:{name:e};var n={name:e.name,displayName:e.displayName,type:e.type};if(n.name==null)return n;n.name+="",n.displayName==null&&(n.displayName=n.name);var a=t.get(n.name);return a?n.name+="-"+a.count++:t.set(n.name,{count:1}),n})}}function xv(r,t,e,i){if(t===bi)for(var n=0;n<e.length&&n<i;n++)r(e[n]?e[n][0]:null,n);else for(var a=e[0]||[],n=0;n<a.length&&n<i;n++)r(a[n],n)}function qg(r){var t=r.sourceFormat;return t===Be||t===tr}var ti,ei,ri,ii,Cv,Dv,Kg=(function(){function r(t,e){var i=hh(t)?t:ch(t);this._source=i;var n=this._data=i.data,a=i.sourceFormat;i.seriesLayoutBy,a===Dr&&(this._offset=0,this._dimSize=e,this._data=n),Dv(this,n,i)}return r.prototype.getSource=function(){return this._source},r.prototype.count=function(){return 0},r.prototype.getItem=function(t,e){},r.prototype.appendData=function(t){},r.prototype.clean=function(){},r.protoInitialize=(function(){var t=r.prototype;t.pure=!1,t.persistent=!0})(),r.internalField=(function(){var t;Dv=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,h=l.startIndex,c=l.dimensionsDefine,v=Cv[vh(u,f)];if(k(o,v),u===Dr)o.getItem=e,o.count=n,o.fillStorage=i;else{var d=jg(u,f);o.getItem=ht(d,null,s,h,c);var y=Qg(u,f);o.count=ht(y,null,s,h,c)}};var e=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,h=0;h<u;h++)s[h]=l[f+h];return s},i=function(o,s,l,u){for(var f=this._data,h=this._dimSize,c=0;c<h;c++){for(var v=u[c],d=v[0]==null?1/0:v[0],y=v[1]==null?-1/0:v[1],g=s-o,p=l[c],m=0;m<g;m++){var _=f[m*h+c];p[o+m]=_,_<d&&(d=_),_>y&&(y=_)}v[0]=d,v[1]=y}},n=function(){return this._data?this._data.length/this._dimSize:0};Cv=(t={},t[Yt+"_"+Ke]={pure:!0,appendData:a},t[Yt+"_"+bi]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Be]={pure:!0,appendData:a},t[tr]={pure:!0,appendData:function(o){var s=this._data;I(o,function(l,u){for(var f=s[u]||(s[u]=[]),h=0;h<(l||[]).length;h++)f.push(l[h])})}},t[de]={appendData:a},t[Dr]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}})(),r})(),to=function(r){V(r)||Wp("series.data or dataset.source must be an array.")};ti={},ti[Yt+"_"+Ke]=to,ti[Yt+"_"+bi]=to,ti[Be]=to,ti[tr]=function(r,t){for(var e=0;e<t.length;e++){var i=t[e].name;i==null&&Wp("dimension name must not be null/undefined.")}},ti[de]=to;var Iv=function(r,t,e,i){return r[i]},Ob=(ei={},ei[Yt+"_"+Ke]=function(r,t,e,i){return r[i+t]},ei[Yt+"_"+bi]=function(r,t,e,i,n){i+=t;for(var a=n||[],o=r,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[i]:null}return a},ei[Be]=Iv,ei[tr]=function(r,t,e,i,n){for(var a=n||[],o=0;o<e.length;o++){var s=e[o].name,l=s!=null?r[s]:null;a[o]=l?l[i]:null}return a},ei[de]=Iv,ei);function jg(r,t){var e=Ob[vh(r,t)];return e}var Lv=function(r,t,e){return r.length},Bb=(ri={},ri[Yt+"_"+Ke]=function(r,t,e){return Math.max(0,r.length-t)},ri[Yt+"_"+bi]=function(r,t,e){var i=r[0];return i?Math.max(0,i.length-t):0},ri[Be]=Lv,ri[tr]=function(r,t,e){var i=e[0].name,n=i!=null?r[i]:null;return n?n.length:0},ri[de]=Lv,ri);function Qg(r,t){var e=Bb[vh(r,t)];return e}var Pl=function(r,t,e){return r[t]},Nb=(ii={},ii[Yt]=Pl,ii[Be]=function(r,t,e){return r[e]},ii[tr]=Pl,ii[de]=function(r,t,e){var i=wa(r);return i instanceof Array?i[t]:i},ii[Dr]=Pl,ii);function Jg(r){var t=Nb[r];return t}function vh(r,t){return r===Yt?r+"_"+t:r}function ln(r,t,e){if(r){var i=r.getRawDataItem(t);if(i!=null){var n=r.getStore(),a=n.getSource().sourceFormat;if(e!=null){var o=r.getDimensionIndex(e),s=n.getDimensionProperty(o);return Jg(a)(i,o,s)}else{var l=i;return a===de&&(l=wa(i)),l}}}}var zb=/\{@(.+?)\}/g,Fb=(function(){function r(){}return r.prototype.getDataParams=function(t,e){var i=this.getData(e),n=this.getRawValue(t,e),a=i.getRawIndex(t),o=i.getName(t),s=i.getRawDataItem(t),l=i.getItemVisual(t,"style"),u=l&&l[i.getItemVisual(t,"drawType")||"fill"],f=l&&l.stroke,h=this.mainType,c=h==="series",v=i.userOutput&&i.userOutput.get();return{componentType:h,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:c?this.subType:null,seriesIndex:this.seriesIndex,seriesId:c?this.id:null,seriesName:c?this.name:null,name:o,dataIndex:a,data:s,dataType:e,value:n,color:u,borderColor:f,dimensionNames:v?v.fullDimensions:null,encode:v?v.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(t,e,i,n,a,o){e=e||"normal";var s=this.getData(i),l=this.getDataParams(t,i);if(o&&(l.value=o.interpolatedValue),n!=null&&V(l.value)&&(l.value=l.value[n]),!a){var u=s.getItemModel(t);a=u.get(e==="normal"?["label","formatter"]:[e,"label","formatter"])}if(at(a))return l.status=e,l.dimensionIndex=n,a(l);if(U(a)){var f=Ng(a,l);return f.replace(zb,function(h,c){var v=c.length,d=c;d.charAt(0)==="["&&d.charAt(v-1)==="]"&&(d=+d.slice(1,v-1));var y=ln(s,t,d);if(o&&V(o.interpolatedValue)){var g=s.getDimensionIndex(d);g>=0&&(y=o.interpolatedValue[g])}return y!=null?y+"":""})}},r.prototype.getRawValue=function(t,e){return ln(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,i){},r})();function Mv(r){var t,e;return Y(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function Jn(r){return new Hb(r)}var Hb=(function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,i=t&&t.skip;if(this._dirty&&e){var n=this.context;n.data=n.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!i&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(a="reset");function f(m){return!(m>=1)&&(m=1),m}var h;(this._dirty||a==="reset")&&(this._dirty=!1,h=this._doReset(i)),this._modBy=l,this._modDataCount=u;var c=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,d=Math.min(c!=null?this._dueIndex+c:1/0,this._dueEnd);if(!i&&(h||v<d)){var y=this._progress;if(V(y))for(var g=0;g<y.length;g++)this._doProgress(y[g],v,d,l,u);else this._doProgress(y,v,d,l,u)}this._dueIndex=d;var p=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=p}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},r.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},r.prototype._doProgress=function(t,e,i,n,a){Av.reset(e,i,n,a),this._callingProgress=t,this._callingProgress({start:e,end:i,count:i-e,next:Av.next},this.context)},r.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var e,i;!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(i=e.forceFirstProgress,e=e.progress),V(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),i},r.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},r.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},r.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},r.prototype.getUpstream=function(){return this._upstream},r.prototype.getDownstream=function(){return this._downstream},r.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},r})(),Av=(function(){var r,t,e,i,n,a={reset:function(l,u,f,h){t=l,r=u,e=f,i=h,n=Math.ceil(i/e),a.next=e>1&&i>0?s:o}};return a;function o(){return t<r?t++:null}function s(){var l=t%n*e+Math.ceil(t/n),u=t>=r?null:l<i?l:t;return t++,u}})();function Mo(r,t){var e=t&&t.type;return e==="ordinal"?r:(e==="time"&&!gt(r)&&r!=null&&r!=="-"&&(r=+cs(r)),r==null||r===""?NaN:Number(r))}Q({number:function(r){return parseFloat(r)},time:function(r){return+cs(r)},trim:function(r){return U(r)?We(r):r}});var Vb=(function(){function r(t,e){var i=t==="desc";this._resultLT=i?1:-1,e==null&&(e=i?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var i=gt(t)?t:Go(t),n=gt(e)?e:Go(e),a=isNaN(i),o=isNaN(n);if(a&&(i=this._incomparable),o&&(n=this._incomparable),a&&o){var s=U(t),l=U(e);s&&(i=l?t:0),l&&(n=s?e:0)}return i<n?this._resultLT:i>n?-this._resultLT:0},r})(),Gb=(function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,e){},r.prototype.retrieveValueFromItem=function(t,e){},r.prototype.convertValue=function(t,e){return Mo(t,e)},r})();function Ub(r,t){var e=new Gb,i=r.data,n=e.sourceFormat=r.sourceFormat,a=r.startIndex,o="";r.seriesLayoutBy!==Ke&&ie(o);var s=[],l={},u=r.dimensionsDefine;if(u)I(u,function(y,g){var p=y.name,m={index:g,name:p,displayName:y.displayName};if(s.push(m),p!=null){var _="";Pe(l,p)&&ie(_),l[p]=m}});else for(var f=0;f<r.dimensionsDetectedCount;f++)s.push({index:f});var h=jg(n,Ke);t.__isBuiltIn&&(e.getRawDataItem=function(y){return h(i,a,s,y)},e.getRawData=ht(Yb,null,r)),e.cloneRawData=ht(Wb,null,r);var c=Qg(n,Ke);e.count=ht(c,null,i,a,s);var v=Jg(n);e.retrieveValue=function(y,g){var p=h(i,a,s,y);return d(p,g)};var d=e.retrieveValueFromItem=function(y,g){if(y!=null){var p=s[g];if(p)return v(y,g,p.name)}};return e.getDimensionInfo=ht(Xb,null,s,l),e.cloneAllDimensionInfo=ht($b,null,s),e}function Yb(r){var t=r.sourceFormat;if(!dh(t)){var e="";ie(e)}return r.data}function Wb(r){var t=r.sourceFormat,e=r.data;if(!dh(t)){var i="";ie(i)}if(t===Yt){for(var n=[],a=0,o=e.length;a<o;a++)n.push(e[a].slice());return n}else if(t===Be){for(var n=[],a=0,o=e.length;a<o;a++)n.push(k({},e[a]));return n}}function Xb(r,t,e){if(e!=null){if(gt(e)||!isNaN(e)&&!Pe(t,e))return r[e];if(Pe(t,e))return t[e]}}function $b(r){return et(r)}var ty=Q();function Zb(r){r=et(r);var t=r.type,e="";t||ie(e);var i=t.split(":");i.length!==2&&ie(e);var n=!1;i[0]==="echarts"&&(t=i[1],n=!0),r.__isBuiltIn=n,ty.set(t,r)}function qb(r,t,e){var i=qt(r),n=i.length,a="";n||ie(a);for(var o=0,s=n;o<s;o++){var l=i[o];t=Kb(l,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function Kb(r,t,e,i){var n="";t.length||ie(n),Y(r)||ie(n);var a=r.type,o=ty.get(a);o||ie(n);var s=ot(t,function(u){return Ub(u,o)}),l=qt(o.transform({upstream:s[0],upstreamList:s,config:et(r.config)}));return ot(l,function(u,f){var h="";Y(u)||ie(h),u.data||ie(h);var c=Zg(u.data);dh(c)||ie(h);var v,d=t[0];if(d&&f===0&&!u.dimensions){var y=d.startIndex;y&&(u.data=d.data.slice(0,y).concat(u.data)),v={seriesLayoutBy:Ke,sourceHeader:y,dimensions:d.metaRawOption.dimensions}}else v={seriesLayoutBy:Ke,sourceHeader:0,dimensions:u.dimensions};return Zu(u.data,v,null)})}function dh(r){return r===Yt||r===Be}var Is="undefined",jb=typeof Uint32Array===Is?Array:Uint32Array,Qb=typeof Uint16Array===Is?Array:Uint16Array,ey=typeof Int32Array===Is?Array:Int32Array,Pv=typeof Float64Array===Is?Array:Float64Array,ry={float:Pv,int:ey,ordinal:Array,number:Array,time:Pv},Rl;function Bi(r){return r>65535?jb:Qb}function Ni(){return[1/0,-1/0]}function Jb(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function Rv(r,t,e,i,n){var a=ry[e||"float"];if(n){var o=r[t],s=o&&o.length;if(s!==i){for(var l=new a(i),u=0;u<s;u++)l[u]=o[u];r[t]=l}}else r[t]=new a(i)}var qu=(function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Q()}return r.prototype.initData=function(t,e,i){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=t.getSource(),a=this.defaultDimValueGetter=Rl[n.sourceFormat];this._dimValueGetter=i||a,this._rawExtent=[],qg(n),this._dimensions=ot(e,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,t.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(t,e){var i=this._calcDimNameToIdx,n=this._dimensions,a=i.get(t);if(a!=null){if(n[a].type===e)return a}else a=n.length;return n[a]={type:e},i.set(t,a),this._chunks[a]=new ry[e||"float"](this._rawCount),this._rawExtent[a]=Ni(),a},r.prototype.collectOrdinalMeta=function(t,e){var i=this._chunks[t],n=this._dimensions[t],a=this._rawExtent,o=n.ordinalOffset||0,s=i.length;o===0&&(a[t]=Ni());for(var l=a[t],u=o;u<s;u++){var f=i[u]=e.parseAndCollect(i[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}n.ordinalMeta=e,n.ordinalOffset=s,n.type="ordinal"},r.prototype.getOrdinalMeta=function(t){var e=this._dimensions[t],i=e.ordinalMeta;return i},r.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},r.prototype.appendData=function(t){var e=this._provider,i=this.count();e.appendData(t);var n=e.count();return e.persistent||(n+=i),i<n&&this._initDataFromProvider(i,n,!0),[i,n]},r.prototype.appendValues=function(t,e){for(var i=this._chunks,n=this._dimensions,a=n.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,e||0),u=0;u<a;u++){var f=n[u];Rv(i,u,f.type,l,!0)}for(var h=[],c=s;c<l;c++)for(var v=c-s,d=0;d<a;d++){var f=n[d],y=Rl.arrayRows.call(this,t[v]||h,f.property,v,d);i[d][c]=y;var g=o[d];y<g[0]&&(g[0]=y),y>g[1]&&(g[1]=y)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(t,e,i){for(var n=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=ot(o,function(m){return m.property}),f=0;f<s;f++){var h=o[f];l[f]||(l[f]=Ni()),Rv(a,f,h.type,e,i)}if(n.fillStorage)n.fillStorage(t,e,a,l);else for(var c=[],v=t;v<e;v++){c=n.getItem(v,c);for(var d=0;d<s;d++){var y=a[d],g=this._dimValueGetter(c,u[d],v,d);y[v]=g;var p=l[d];g<p[0]&&(p[0]=g),g>p[1]&&(p[1]=g)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var i=this._chunks[t];return i?i[this.getRawIndex(e)]:NaN},r.prototype.getValues=function(t,e){var i=[],n=[];if(e==null){e=t,t=[];for(var a=0;a<this._dimensions.length;a++)n.push(a)}else n=t;for(var a=0,o=n.length;a<o;a++)i.push(this.get(n[a],e));return i},r.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var i=this._chunks[t];return i?i[e]:NaN},r.prototype.getSum=function(t){var e=this._chunks[t],i=0;if(e)for(var n=0,a=this.count();n<a;n++){var o=this.get(t,n);isNaN(o)||(i+=o)}return i},r.prototype.getMedian=function(t){var e=[];this.each([t],function(a){isNaN(a)||e.push(a)});var i=e.sort(function(a,o){return a-o}),n=this.count();return n===0?0:n%2===1?i[(n-1)/2]:(i[n/2]+i[n/2-1])/2},r.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,i=e[t];if(i!=null&&i<this._count&&i===t)return t;for(var n=0,a=this._count-1;n<=a;){var o=(n+a)/2|0;if(e[o]<t)n=o+1;else if(e[o]>t)a=o-1;else return o}return-1},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var i=e.constructor,n=this._count;if(i===Array){t=new i(n);for(var a=0;a<n;a++)t[a]=e[a]}else t=new i(e.buffer,0,n)}else{var i=Bi(this._rawCount);t=new i(this.count());for(var a=0;a<t.length;a++)t[a]=a}return t},r.prototype.filter=function(t,e){if(!this._count)return this;for(var i=this.clone(),n=i.count(),a=Bi(i._rawCount),o=new a(n),s=[],l=t.length,u=0,f=t[0],h=i._chunks,c=0;c<n;c++){var v=void 0,d=i.getRawIndex(c);if(l===0)v=e(c);else if(l===1){var y=h[f][d];v=e(y,c)}else{for(var g=0;g<l;g++)s[g]=h[t[g]][d];s[g]=c,v=e.apply(null,s)}v&&(o[u++]=d)}return u<n&&(i._indices=o),i._count=u,i._extent=[],i._updateGetRawIdx(),i},r.prototype.selectRange=function(t){var e=this.clone(),i=e._count;if(!i)return this;var n=Lt(t),a=n.length;if(!a)return this;var o=e.count(),s=Bi(e._rawCount),l=new s(o),u=0,f=n[0],h=t[f][0],c=t[f][1],v=e._chunks,d=!1;if(!e._indices){var y=0;if(a===1){for(var g=v[n[0]],p=0;p<i;p++){var m=g[p];(m>=h&&m<=c||isNaN(m))&&(l[u++]=y),y++}d=!0}else if(a===2){for(var g=v[n[0]],_=v[n[1]],S=t[n[1]][0],b=t[n[1]][1],p=0;p<i;p++){var m=g[p],w=_[p];(m>=h&&m<=c||isNaN(m))&&(w>=S&&w<=b||isNaN(w))&&(l[u++]=y),y++}d=!0}}if(!d)if(a===1)for(var p=0;p<o;p++){var T=e.getRawIndex(p),m=v[n[0]][T];(m>=h&&m<=c||isNaN(m))&&(l[u++]=T)}else for(var p=0;p<o;p++){for(var C=!0,T=e.getRawIndex(p),x=0;x<a;x++){var D=n[x],m=v[D][T];(m<t[D][0]||m>t[D][1])&&(C=!1)}C&&(l[u++]=e.getRawIndex(p))}return u<o&&(e._indices=l),e._count=u,e._extent=[],e._updateGetRawIdx(),e},r.prototype.map=function(t,e){var i=this.clone(t);return this._updateDims(i,t,e),i},r.prototype.modify=function(t,e){this._updateDims(this,t,e)},r.prototype._updateDims=function(t,e,i){for(var n=t._chunks,a=[],o=e.length,s=t.count(),l=[],u=t._rawExtent,f=0;f<e.length;f++)u[e[f]]=Ni();for(var h=0;h<s;h++){for(var c=t.getRawIndex(h),v=0;v<o;v++)l[v]=n[e[v]][c];l[o]=h;var d=i&&i.apply(null,l);if(d!=null){typeof d!="object"&&(a[0]=d,d=a);for(var f=0;f<d.length;f++){var y=e[f],g=d[f],p=u[y],m=n[y];m&&(m[c]=g),g<p[0]&&(p[0]=g),g>p[1]&&(p[1]=g)}}}},r.prototype.lttbDownSample=function(t,e){var i=this.clone([t],!0),n=i._chunks,a=n[t],o=this.count(),s=0,l=Math.floor(1/e),u=this.getRawIndex(0),f,h,c,v=new(Bi(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var d=1;d<o-1;d+=l){for(var y=Math.min(d+l,o-1),g=Math.min(d+l*2,o),p=(g+y)/2,m=0,_=y;_<g;_++){var S=this.getRawIndex(_),b=a[S];isNaN(b)||(m+=b)}m/=g-y;var w=d,T=Math.min(d+l,o),C=d-1,x=a[u];f=-1,c=w;for(var D=-1,L=0,_=w;_<T;_++){var S=this.getRawIndex(_),b=a[S];if(isNaN(b)){L++,D<0&&(D=S);continue}h=Math.abs((C-p)*(b-x)-(C-_)*(m-x)),h>f&&(f=h,c=S)}L>0&&L<T-w&&(v[s++]=Math.min(D,c),c=Math.max(D,c)),v[s++]=c,u=c}return v[s++]=this.getRawIndex(o-1),i._count=s,i._indices=v,i.getRawIndex=this._getRawIdx,i},r.prototype.minmaxDownSample=function(t,e){for(var i=this.clone([t],!0),n=i._chunks,a=Math.floor(1/e),o=n[t],s=this.count(),l=new(Bi(this._rawCount))(Math.ceil(s/a)*2),u=0,f=0;f<s;f+=a){var h=f,c=o[this.getRawIndex(h)],v=f,d=o[this.getRawIndex(v)],y=a;f+a>s&&(y=s-f);for(var g=0;g<y;g++){var p=this.getRawIndex(f+g),m=o[p];m<c&&(c=m,h=f+g),m>d&&(d=m,v=f+g)}var _=this.getRawIndex(h),S=this.getRawIndex(v);h<v?(l[u++]=_,l[u++]=S):(l[u++]=S,l[u++]=_)}return i._count=u,i._indices=l,i._updateGetRawIdx(),i},r.prototype.downSample=function(t,e,i,n){for(var a=this.clone([t],!0),o=a._chunks,s=[],l=Math.floor(1/e),u=o[t],f=this.count(),h=a._rawExtent[t]=Ni(),c=new(Bi(this._rawCount))(Math.ceil(f/l)),v=0,d=0;d<f;d+=l){l>f-d&&(l=f-d,s.length=l);for(var y=0;y<l;y++){var g=this.getRawIndex(d+y);s[y]=u[g]}var p=i(s),m=this.getRawIndex(Math.min(d+n(s,p)||0,f-1));u[m]=p,p<h[0]&&(h[0]=p),p>h[1]&&(h[1]=p),c[v++]=m}return a._count=v,a._indices=c,a._updateGetRawIdx(),a},r.prototype.each=function(t,e){if(this._count)for(var i=t.length,n=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(i){case 0:e(a);break;case 1:e(n[t[0]][s],a);break;case 2:e(n[t[0]][s],n[t[1]][s],a);break;default:for(var l=0,u=[];l<i;l++)u[l]=n[t[l]][s];u[l]=a,e.apply(null,u)}}},r.prototype.getDataExtent=function(t){var e=this._chunks[t],i=Ni();if(!e)return i;var n=this.count(),a=!this._indices,o;if(a)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=i;for(var s=o[0],l=o[1],u=0;u<n;u++){var f=this.getRawIndex(u),h=e[f];h<s&&(s=h),h>l&&(l=h)}return o=[s,l],this._extent[t]=o,o},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var i=[],n=this._chunks,a=0;a<n.length;a++)i.push(n[a][e]);return i},r.prototype.clone=function(t,e){var i=new r,n=this._chunks,a=t&&hn(t,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<n.length;o++)i._chunks[o]=a[o]?Jb(n[o]):n[o];else i._chunks=n;return this._copyCommonProps(i),e||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},r.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=et(this._extent),t._rawExtent=et(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var i=this._indices.length;e=new t(i);for(var n=0;n<i;n++)e[n]=this._indices[n]}else e=new t(this._indices);return e}return null},r.prototype._getRawIdxIdentity=function(t){return t},r.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=(function(){function t(e,i,n,a){return Mo(e[a],this._dimensions[a])}Rl={arrayRows:t,objectRows:function(e,i,n,a){return Mo(e[i],this._dimensions[a])},keyedColumns:t,original:function(e,i,n,a){var o=e&&(e.value==null?e:e.value);return Mo(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(e,i,n,a){return e[a]}}})(),r})(),tT=(function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),i=!!e.length,n,a;if(eo(t)){var o=t,s=void 0,l=void 0,u=void 0;if(i){var f=e[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),l=le(s)?Dr:de,a=[];var h=this._getSourceMetaRawOption()||{},c=u&&u.metaRawOption||{},v=$(h.seriesLayoutBy,c.seriesLayoutBy)||null,d=$(h.sourceHeader,c.sourceHeader),y=$(h.dimensions,c.dimensions),g=v!==c.seriesLayoutBy||!!d!=!!c.sourceHeader||y;n=g?[Zu(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:y},l)]:[]}else{var p=t;if(i){var m=this._applyTransform(e);n=m.sourceList,a=m.upstreamSignList}else{var _=p.get("source",!0);n=[Zu(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(n,a)},r.prototype._applyTransform=function(t){var e=this._sourceHost,i=e.get("transform",!0),n=e.get("fromTransformResult",!0);if(n!=null){var a="";t.length!==1&&Ev(a)}var o,s=[],l=[];return I(t,function(u){u.prepareSource();var f=u.getSource(n||0),h="";n!=null&&!f&&Ev(h),s.push(f),l.push(u._getVersionSign())}),i?o=qb(i,s,{datasetIndex:e.componentIndex}):n!=null&&(o=[Rb(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var i=t[e];if(i._isDirty()||this._upstreamSignList[e]!==i._getVersionSign())return!0}},r.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var i=this._getUpstreamSourceManagers();return i[0]&&i[0].getSource(t)}return e},r.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},r.prototype._innerGetDataStore=function(t,e,i){var n=0,a=this._storeList,o=a[n];o||(o=a[n]={});var s=o[i];if(!s){var l=this._getUpstreamSourceManagers()[0];eo(this._sourceHost)&&l?s=l._innerGetDataStore(t,e,i):(s=new qu,s.initData(new Kg(e,t.length),t)),o[i]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(eo(t)){var e=Ug(t);return e?[e.getSourceManager()]:[]}else return ot(ob(t),function(i){return i.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,e,i,n;if(eo(t))e=t.get("seriesLayoutBy",!0),i=t.get("sourceHeader",!0),n=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=t;e=a.get("seriesLayoutBy",!0),i=a.get("sourceHeader",!0),n=a.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:i,dimensions:n}},r})();function eo(r){return r.mainType==="series"}function Ev(r){throw new Error(r)}var eT="line-height:1";function iy(r){var t=r.lineHeight;return t==null?eT:"line-height:"+ee(t+"")+"px"}function ny(r,t){var e=r.color||X.color.tertiary,i=r.fontSize||12,n=r.fontWeight||"400",a=r.color||X.color.secondary,o=r.fontSize||14,s=r.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+ee(i+"")+"px;color:"+ee(e)+";font-weight:"+ee(n+""),valueStyle:"font-size:"+ee(o+"")+"px;color:"+ee(a)+";font-weight:"+ee(s+"")}:{nameStyle:{fontSize:i,fill:e,fontWeight:n},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var rT=[0,10,20,30],iT=["",`
9
- `,`
10
-
11
- `,`
12
-
13
-
14
- `];function un(r,t){return t.type=r,t}function Ku(r){return r.type==="section"}function ay(r){return Ku(r)?nT:aT}function oy(r){if(Ku(r)){var t=0,e=r.blocks.length,i=e>1||e>0&&!r.noHeader;return I(r.blocks,function(n){var a=oy(n);a>=t&&(t=a+ +(i&&(!a||Ku(n)&&!n.noHeader)))}),t}return 0}function nT(r,t,e,i){var n=t.noHeader,a=oT(oy(t)),o=[],s=t.blocks||[];je(!s||V(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Pe(u,l)){var f=new Vb(u[l],null);s.sort(function(y,g){return f.evaluate(y.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}I(s,function(y,g){var p=t.valueFormatter,m=ay(y)(p?k(k({},r),{valueFormatter:p}):r,y,g>0?a.html:0,i);m!=null&&o.push(m)});var h=r.renderMode==="richText"?o.join(a.richText):ju(i,o.join(""),n?e:a.html);if(n)return h;var c=$u(t.header,"ordinal",r.useUTC),v=ny(i,r.renderMode).nameStyle,d=iy(i);return r.renderMode==="richText"?sy(r,c,v)+a.richText+h:ju(i,'<div style="'+v+";"+d+';">'+ee(c)+"</div>"+h,e)}function aT(r,t,e,i){var n=r.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,f=t.valueFormatter||r.valueFormatter||function(S){return S=V(S)?S:[S],ot(S,function(b,w){return $u(b,V(v)?v[w]:v,u)})};if(!(a&&o)){var h=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||X.color.secondary,n),c=a?"":$u(l,"ordinal",u),v=t.valueType,d=o?[]:f(t.value,t.dataIndex),y=!s||!a,g=!s&&a,p=ny(i,n),m=p.nameStyle,_=p.valueStyle;return n==="richText"?(s?"":h)+(a?"":sy(r,c,m))+(o?"":uT(r,d,y,g,_)):ju(i,(s?"":h)+(a?"":sT(c,!s,m))+(o?"":lT(d,y,g,_)),e)}}function kv(r,t,e,i,n,a){if(r){var o=ay(r),s={useUTC:n,renderMode:e,orderMode:i,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,a)}}function oT(r){return{html:rT[r],richText:iT[r]}}function ju(r,t,e){var i='<div style="clear:both"></div>',n="margin: "+e+"px 0 0",a=iy(r);return'<div style="'+n+";"+a+';">'+t+i+"</div>"}function sT(r,t,e){var i=t?"margin-left:2px":"";return'<span style="'+e+";"+i+'">'+ee(r)+"</span>"}function lT(r,t,e,i){var n=e?"10px":"20px",a=t?"float:right;margin-left:"+n:"";return r=V(r)?r:[r],'<span style="'+a+";"+i+'">'+ot(r,function(o){return ee(o)}).join("&nbsp;&nbsp;")+"</span>"}function sy(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function uT(r,t,e,i,n){var a=[n],o=i?10:20;return e&&a.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(V(t)?t.join(" "):t,a)}function fT(r,t){var e=r.getData().getItemVisual(t,"style"),i=e[r.visualDrawType];return ca(i)}function ly(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var El=(function(){function r(){this.richTextStyles={},this._nextStyleNameId=Up()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,i){var n=i==="richText"?this._generateStyleName():null,a=Yw({color:e,type:t,renderMode:i,markerId:n});return U(a)?a:(this.richTextStyles[n]=a.style,a.content)},r.prototype.wrapRichTextStyle=function(t,e){var i={};V(e)?I(e,function(a){return k(i,a)}):k(i,e);var n=this._generateStyleName();return this.richTextStyles[n]=i,"{"+n+"|"+t+"}"},r})();function uy(r){var t=r.series,e=r.dataIndex,i=r.multipleSeries,n=t.getData(),a=n.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(e),l=V(s),u=fT(t,e),f,h,c,v;if(o>1||l&&!o){var d=hT(s,t,e,a,u);f=d.inlineValues,h=d.inlineValueTypes,c=d.blocks,v=d.inlineValues[0]}else if(o){var y=n.getDimensionInfo(a[0]);v=f=ln(n,e,a[0]),h=y.type}else v=f=l?s[0]:s;var g=Ef(t),p=g&&t.name||"",m=n.getName(e),_=i?p:m;return un("section",{header:p,noHeader:i||!g,sortParam:v,blocks:[un("nameValue",{markerType:"item",markerColor:u,name:_,noName:!We(_),value:f,valueType:h,dataIndex:e})].concat(c||[])})}function hT(r,t,e,i,n){var a=t.getData(),o=hn(r,function(h,c,v){var d=a.getDimensionInfo(v);return h=h||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];i.length?I(i,function(h){f(ln(a,e,h),h)}):I(r,f);function f(h,c){var v=a.getDimensionInfo(c);!v||v.otherDims.tooltip===!1||(o?u.push(un("nameValue",{markerType:"subItem",markerColor:n,name:v.displayName,value:h,valueType:v.type})):(s.push(h),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var yr=mt();function ro(r,t){return r.getName(t)||r.getId(t)}var cT="__universalTransitionEnabled",Ar=(function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,i,n){this.seriesIndex=this.componentIndex,this.dataTask=Jn({count:dT,reset:pT}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n);var a=yr(this).sourceManager=new tT(this);a.prepareSource();var o=this.getInitialData(e,n);Bv(o,this),this.dataTask.context.data=o,yr(this).dataBeforeProcessed=o,Ov(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,i){var n=Zo(this),a=n?lh(e):{},o=this.subType;vt.hasClass(o)&&(o+="Series"),xt(e,i.getTheme().get(this.subType)),xt(e,this.getDefaultOption()),Ru(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&va(e,a,n)},t.prototype.mergeOption=function(e,i){e=xt(this.option,e,!0),this.fillDataTextStyle(e.data);var n=Zo(this);n&&va(this.option,e,n);var a=yr(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(e,i);Bv(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,yr(this).dataBeforeProcessed=o,Ov(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!le(e))for(var i=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&Ru(e[n],"label",i)},t.prototype.getInitialData=function(e,i){},t.prototype.appendData=function(e){var i=this.getRawData();i.appendData(e.data)},t.prototype.getData=function(e){var i=Qu(this);if(i){var n=i.context.data;return e==null||!n.getLinkedData?n:n.getLinkedData(e)}else return yr(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var i=Qu(this);if(i){var n=i.context;n.outputData=e,i!==this.dataTask&&(n.data=e)}yr(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return Q(e)},t.prototype.getSourceManager=function(){return yr(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return yr(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var e=this.get("colorBy");return e||"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,i,n,a){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(e);if(!s||!l)return[];var u=l.dataToCoord(n);a==null&&(a=1/0);var f=[],h=1/0,c=-1,v=0;return o.each(i,function(d,y){var g=l.dataToCoord(d),p=u-g,m=Math.abs(p);m<=a&&((m<h||m===h&&p>=0&&c<0)&&(h=m,c=p,v=0),p===c&&(f[v++]=y))}),f.length=v,f},t.prototype.formatTooltip=function(e,i,n){return uy({series:this,dataIndex:e,multipleSeries:i})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(q.node&&!(e&&e.ssr))return!1;var i=this.getShallow("animation");return i&&this.getData().count()>this.getShallow("animationThreshold")&&(i=!1),!!i},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,i,n){var a=this.ecModel,o=uh.prototype.getColorFromPalette.call(this,e,i,n);return o||(o=a.getColorFromPalette(e,i,n)),o},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,i){this._innerSelect(this.getData(i),e)},t.prototype.unselect=function(e,i){var n=this.option.selectedMap;if(n){var a=this.option.selectedMode,o=this.getData(i);if(a==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<e.length;s++){var l=e[s],u=ro(o,l);n[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(e,i){for(var n=[],a=0;a<e.length;a++)n[0]=e[a],this.isSelected(e[a],i)?this.unselect(n,i):this.select(n,i)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,i=Lt(e),n=[],a=0;a<i.length;a++){var o=e[i[a]];o>=0&&n.push(o)}return n},t.prototype.isSelected=function(e,i){var n=this.option.selectedMap;if(!n)return!1;var a=this.getData(i);return(n==="all"||n[ro(a,e)])&&!a.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[cT])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,i){var n,a,o=this.option,s=o.selectedMode,l=i.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){Y(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var h=i[f],c=ro(e,h);u[c]=!0,this._selectedDataIndicesMap[c]=e.getRawIndex(h)}}else if(s==="single"||s===!0){var v=i[l-1],c=ro(e,v);o.selectedMap=(n={},n[c]=!0,n),this._selectedDataIndicesMap=(a={},a[c]=e.getRawIndex(v),a)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var i=[];e.hasItemOption&&e.each(function(n){var a=e.getRawDataItem(n);a&&a.selected&&i.push(n)}),i.length>0&&this._innerSelect(e,i)}},t.registerClass=function(e){return vt.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})(vt);Ee(Ar,Fb);Ee(Ar,uh);Kp(Ar,vt);function Ov(r){var t=r.name;Ef(r)||(r.name=vT(r)||t)}function vT(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),i=[];return I(e,function(n){var a=t.getDimensionInfo(n);a.displayName&&i.push(a.displayName)}),i.join(" ")}function dT(r){return r.model.getRawData().count()}function pT(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),gT}function gT(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Bv(r,t){I(f_(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,Pt(yT,t))})}function yT(r,t){var e=Qu(r);return e&&e.setOutputEnd((t||this).count()),t}function Qu(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var i=e.currentTask;if(i){var n=i.agentStubMap;n&&(i=n.get(r.uid))}return i}}var Je=(function(){function r(){this.group=new Et,this.uid=Ts("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,i,n){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,i,n){},r.prototype.updateLayout=function(t,e,i,n){},r.prototype.updateVisual=function(t,e,i,n){},r.prototype.toggleBlurSeries=function(t,e,i){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r})();Of(Je);Bf(Je);function mT(){var r=mt();return function(t){var e=r(t),i=t.pipelineContext,n=!!e.large,a=!!e.progressiveRender,o=e.large=!!(i&&i.large),s=e.progressiveRender=!!(i&&i.progressiveRender);return(n!==o||a!==s)&&"reset"}}var fy=mt(),_T=mT(),Ir=(function(){function r(){this.group=new Et,this.uid=Ts("viewChart"),this.renderTask=Jn({plan:ST,reset:wT}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,i,n){},r.prototype.highlight=function(t,e,i,n){var a=t.getData(n&&n.dataType);a&&zv(a,n,"emphasis")},r.prototype.downplay=function(t,e,i,n){var a=t.getData(n&&n.dataType);a&&zv(a,n,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,i,n){this.render(t,e,i,n)},r.prototype.updateLayout=function(t,e,i,n){this.render(t,e,i,n)},r.prototype.updateVisual=function(t,e,i,n){this.render(t,e,i,n)},r.prototype.eachRendered=function(t){Ss(this.group,t)},r.markUpdateMethod=function(t,e){fy(t).updateMethod=e},r.protoInitialize=(function(){var t=r.prototype;t.type="chart"})(),r})();function Nv(r,t,e){r&&Vu(r)&&(t==="emphasis"?la:ua)(r,e)}function zv(r,t,e){var i=ba(r,t),n=t&&t.highlightKey!=null?pS(t.highlightKey):null;i!=null?I(qt(i),function(a){Nv(r.getItemGraphicEl(a),e,n)}):r.eachItemGraphicEl(function(a){Nv(a,e,n)})}Of(Ir);Bf(Ir);function ST(r){return _T(r.model)}function wT(r){var t=r.model,e=r.ecModel,i=r.api,n=r.payload,a=t.pipelineContext.progressiveRender,o=r.view,s=n&&fy(n).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,i,n),bT[l]}var bT={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},qo="\0__throttleOriginMethod",Fv="\0__throttleRate",Hv="\0__throttleType";function ph(r,t,e){var i,n=0,a=0,o=null,s,l,u,f;t=t||0;function h(){a=new Date().getTime(),o=null,r.apply(l,u||[])}var c=function(){for(var v=[],d=0;d<arguments.length;d++)v[d]=arguments[d];i=new Date().getTime(),l=this,u=v;var y=f||t,g=f||e;f=null,s=i-(g?n:a)-y,clearTimeout(o),g?o=setTimeout(h,y):s>=0?h():o=setTimeout(h,-s),n=i};return c.clear=function(){o&&(clearTimeout(o),o=null)},c.debounceNextCall=function(v){f=v},c}function hy(r,t,e,i){var n=r[t];if(n){var a=n[qo]||n,o=n[Hv],s=n[Fv];if(s!==e||o!==i){if(e==null||!i)return r[t]=a;n=r[t]=ph(a,e,i==="debounce"),n[qo]=a,n[Hv]=i,n[Fv]=e}return n}}function Ju(r,t){var e=r[t];e&&e[qo]&&(e.clear&&e.clear(),r[t]=e[qo])}var Vv=mt(),Gv={itemStyle:sa(Rg,!0),lineStyle:sa(Pg,!0)},TT={lineStyle:"stroke",itemStyle:"fill"};function cy(r,t){var e=r.visualStyleMapper||Gv[t];return e||(console.warn("Unknown style type '"+t+"'."),Gv.itemStyle)}function vy(r,t){var e=r.visualDrawType||TT[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var xT={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),i=r.visualStyleAccessPath||"itemStyle",n=r.getModel(i),a=cy(r,i),o=a(n),s=n.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=vy(r,i),u=o[l],f=at(u)?u:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||h){var c=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[l]||(o[l]=c,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||at(o.fill)?c:o.fill,o.stroke=o.stroke==="auto"||at(o.stroke)?c:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",l),!t.isSeriesFiltered(r)&&f)return e.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var y=r.getDataParams(d),g=k({},o);g[l]=f(y),v.setItemVisual(d,"style",g)}}}},wn=new bt,CT={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),i=r.visualStyleAccessPath||"itemStyle",n=cy(r,i),a=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[i]){wn.option=l[i];var u=n(wn),f=o.ensureUniqueItemVisual(s,"style");k(f,u),wn.option.decal&&(o.setItemVisual(s,"decal",wn.option.decal),wn.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},DT={performRawSeries:!0,overallReset:function(r){var t=Q();r.eachSeries(function(e){var i=e.getColorBy();if(!e.isColorBySeries()){var n=e.type+"-"+i,a=t.get(n);a||(a={},t.set(n,a)),Vv(e).scope=a}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var i=e.getRawData(),n={},a=e.getData(),o=Vv(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=vy(e,s);a.each(function(u){var f=a.getRawIndex(u);n[f]=u}),i.each(function(u){var f=n[u],h=a.getItemVisual(f,"colorFromPalette");if(h){var c=a.ensureUniqueItemVisual(f,"style"),v=i.getName(u)||u+"",d=i.count();c[l]=e.getColorFromPalette(v,o,d)}})}})}},io=Math.PI;function IT(r,t){t=t||{},Ct(t,{text:"loading",textColor:X.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:X.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var e=new Et,i=new Vt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(i);var n=new Kt({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 Vt({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(a);var o;return t.showSpinner&&(o=new ms({shape:{startAngle:-io/2,endAngle:-io/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:io*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:io*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=n.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(r.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),f=r.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:f}),a.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),i.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var dy=(function(){function r(t,e,i,n){this._stageTaskMap=Q(),this.ecInstance=t,this.api=e,i=this._dataProcessorHandlers=i.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=i.concat(n)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(i){var n=i.overallTask;n&&n.dirty()})},r.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var i=this._pipelineMap.get(t.__pipeline.id),n=i.context,a=!e&&i.progressiveEnabled&&(!n||n.progressiveRender)&&t.__idxInPipeline>i.blockIndex,o=a?i.step:null,s=n&&n.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var i=this._pipelineMap.get(t.uid),n=t.getData(),a=n.count(),o=i.progressiveEnabled&&e.incrementalPrepareRender&&a>=i.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=i.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(t){var e=this,i=e._pipelineMap=Q();t.eachSeries(function(n){var a=n.getProgressive(),o=n.uid;i.set(o,{id:o,head:null,tail:null,threshold:n.getProgressiveThreshold(),progressiveEnabled:a&&!(n.preventIncremental&&n.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),e._pipe(n,n.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),i=this.api;I(this._allHandlers,function(n){var a=t.get(n.uid)||t.set(n.uid,{}),o="";je(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,a,e,i),n.overallReset&&this._createOverallStageTask(n,a,e,i)},this)},r.prototype.prepareView=function(t,e,i,n){var a=t.renderTask,o=a.context;o.model=e,o.ecModel=i,o.api=n,a.__block=!t.incrementalPrepareRender,this._pipe(e,a)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,i){this._performStageTasks(this._visualHandlers,t,e,i)},r.prototype._performStageTasks=function(t,e,i,n){n=n||{};var a=!1,o=this;I(t,function(l,u){if(!(n.visualType&&n.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),h=f.seriesTaskMap,c=f.overallTask;if(c){var v,d=c.agentStubMap;d.each(function(g){s(n,g)&&(g.dirty(),v=!0)}),v&&c.dirty(),o.updatePayload(c,i);var y=o.getPerformArgs(c,n.block);d.each(function(g){g.perform(y)}),c.perform(y)&&(a=!0)}else h&&h.each(function(g,p){s(n,g)&&g.dirty();var m=o.getPerformArgs(g,n.block);m.skip=!l.performRawSeries&&e.isSeriesFiltered(g.context.model),o.updatePayload(g,i),g.perform(m)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(i){e=i.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,i,n){var a=this,o=e.seriesTaskMap,s=e.seriesTaskMap=Q(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?i.eachRawSeries(f):l?i.eachRawSeriesByType(l,f):u&&u(i,n).each(f);function f(h){var c=h.uid,v=s.set(c,o&&o.get(c)||Jn({plan:RT,reset:ET,count:OT}));v.context={model:h,ecModel:i,api:n,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(h,v)}},r.prototype._createOverallStageTask=function(t,e,i,n){var a=this,o=e.overallTask=e.overallTask||Jn({reset:LT});o.context={ecModel:i,api:n,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=Q(),u=t.seriesType,f=t.getTargetSeries,h=!0,c=!1,v="";je(!t.createOnAllSeries,v),u?i.eachRawSeriesByType(u,d):f?f(i,n).each(d):(h=!1,I(i.getSeries(),d));function d(y){var g=y.uid,p=l.set(g,s&&s.get(g)||(c=!0,Jn({reset:MT,onDirty:PT})));p.context={model:y,overallProgress:h},p.agent=o,p.__block=h,a._pipe(y,p)}c&&o.dirty()},r.prototype._pipe=function(t,e){var i=t.uid,n=this._pipelineMap.get(i);!n.head&&(n.head=e),n.tail&&n.tail.pipe(e),n.tail=e,e.__idxInPipeline=n.count++,e.__pipeline=n},r.wrapStageHandler=function(t,e){return at(t)&&(t={overallReset:t,seriesType:BT(t)}),t.uid=Ts("stageHandler"),e&&(t.visualType=e),t},r})();function LT(r){r.overallReset(r.ecModel,r.api,r.payload)}function MT(r){return r.overallProgress&&AT}function AT(){this.agent.dirty(),this.getDownstream().dirty()}function PT(){this.agent&&this.agent.dirty()}function RT(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function ET(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=qt(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?ot(t,function(e,i){return py(i)}):kT}var kT=py(0);function py(r){return function(t,e){var i=e.data,n=e.resetDefines[r];if(n&&n.dataEach)for(var a=t.start;a<t.end;a++)n.dataEach(i,a);else n&&n.progress&&n.progress(t,i)}}function OT(r){return r.data.count()}function BT(r){Ko=null;try{r(pa,gy)}catch{}return Ko}var pa={},gy={},Ko;yy(pa,fh);yy(gy,Wg);pa.eachSeriesByType=pa.eachRawSeriesByType=function(r){Ko=r};pa.eachComponent=function(r){r.mainType==="series"&&r.subType&&(Ko=r.subType)};function yy(r,t){for(var e in t.prototype)r[e]=Ht}var z=X.darkColor,NT=z.background,bn=function(){return{axisLine:{lineStyle:{color:z.axisLine}},splitLine:{lineStyle:{color:z.axisSplitLine}},splitArea:{areaStyle:{color:[z.backgroundTint,z.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:z.axisMinorSplitLine}},axisLabel:{color:z.axisLabel},axisName:{}}},Uv={label:{color:z.secondary},itemStyle:{borderColor:z.borderTint},dividerLineStyle:{color:z.border}},my={darkMode:!0,color:z.theme,backgroundColor:NT,axisPointer:{lineStyle:{color:z.border},crossStyle:{color:z.borderShade},label:{color:z.tertiary}},legend:{textStyle:{color:z.secondary},pageTextStyle:{color:z.tertiary}},textStyle:{color:z.secondary},title:{textStyle:{color:z.primary},subtextStyle:{color:z.quaternary}},toolbox:{iconStyle:{borderColor:z.accent50}},tooltip:{backgroundColor:z.neutral20,defaultBorderColor:z.border,textStyle:{color:z.tertiary}},dataZoom:{borderColor:z.accent10,textStyle:{color:z.tertiary},brushStyle:{color:z.backgroundTint},handleStyle:{color:z.neutral00,borderColor:z.accent20},moveHandleStyle:{color:z.accent40},emphasis:{handleStyle:{borderColor:z.accent50}},dataBackground:{lineStyle:{color:z.accent30},areaStyle:{color:z.accent20}},selectedDataBackground:{lineStyle:{color:z.accent50},areaStyle:{color:z.accent30}}},visualMap:{textStyle:{color:z.secondary},handleStyle:{borderColor:z.neutral30}},timeline:{lineStyle:{color:z.accent10},label:{color:z.tertiary},controlStyle:{color:z.accent30,borderColor:z.accent30}},calendar:{itemStyle:{color:z.neutral00,borderColor:z.neutral20},dayLabel:{color:z.tertiary},monthLabel:{color:z.secondary},yearLabel:{color:z.secondary}},matrix:{x:Uv,y:Uv,backgroundColor:{borderColor:z.axisLine},body:{itemStyle:{borderColor:z.borderTint}}},timeAxis:bn(),logAxis:bn(),valueAxis:bn(),categoryAxis:bn(),line:{symbol:"circle"},graph:{color:z.theme},gauge:{title:{color:z.secondary},axisLine:{lineStyle:{color:[[1,z.neutral05]]}},axisLabel:{color:z.axisLabel},detail:{color:z.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:z.background}},radar:(function(){var r=bn();return r.axisName={color:z.axisLabel},r.axisLine.lineStyle.color=z.neutral20,r})(),treemap:{breadcrumb:{itemStyle:{color:z.neutral20,textStyle:{color:z.secondary}},emphasis:{itemStyle:{color:z.neutral30}}}},sunburst:{itemStyle:{borderColor:z.background}},map:{itemStyle:{borderColor:z.border,areaColor:z.neutral10},label:{color:z.tertiary},emphasis:{label:{color:z.primary},itemStyle:{areaColor:z.highlight}},select:{label:{color:z.primary},itemStyle:{areaColor:z.highlight}}},geo:{itemStyle:{borderColor:z.border,areaColor:z.neutral10},emphasis:{label:{color:z.primary},itemStyle:{areaColor:z.highlight}},select:{label:{color:z.primary},itemStyle:{color:z.highlight}}}};my.categoryAxis.splitLine.show=!1;var zT=(function(){function r(){}return r.prototype.normalizeQuery=function(t){var e={},i={},n={};if(U(t)){var a=Xe(t);e.mainType=a.main||null,e.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};I(t,function(l,u){for(var f=!1,h=0;h<o.length;h++){var c=o[h],v=u.lastIndexOf(c);if(v>0&&v===u.length-c.length){var d=u.slice(0,v);d!=="data"&&(e.mainType=d,e[c.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(i[u]=l,f=!0),f||(n[u]=l)})}return{cptQuery:e,dataQuery:i,otherQuery:n}},r.prototype.filter=function(t,e){var i=this.eventInfo;if(!i)return!0;var n=i.targetEl,a=i.packedEvent,o=i.model,s=i.view;if(!o||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,a,"name")&&f(u,a,"dataIndex")&&f(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,n,a));function f(h,c,v,d){return h[v]==null||c[d||v]===h[v]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r})(),tf=["symbol","symbolSize","symbolRotate","symbolOffset"],Yv=tf.concat(["symbolKeepAspect"]),FT={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var i={},n={},a=!1,o=0;o<tf.length;o++){var s=tf[o],l=r.get(s);at(l)?(a=!0,n[s]=l):i[s]=l}if(i.symbol=i.symbol||r.defaultSymbol,e.setVisual(k({legendIcon:r.legendIcon||i.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},i)),t.isSeriesFiltered(r))return;var u=Lt(n);function f(h,c){for(var v=r.getRawValue(c),d=r.getDataParams(c),y=0;y<u.length;y++){var g=u[y];h.setItemVisual(c,g,n[g](v,d))}}return{dataEach:a?f:null}}},HT={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!r.hasSymbolVisual||t.isSeriesFiltered(r))return;var e=r.getData();function i(n,a){for(var o=n.getItemModel(a),s=0;s<Yv.length;s++){var l=Yv[s],u=o.getShallow(l,!0);u!=null&&n.setItemVisual(a,l,u)}}return{dataEach:e.hasItemOption?i:null}}};function VT(r,t,e){switch(e){case"color":var i=r.getItemVisual(t,"style");return i[r.getVisual("drawType")];case"opacity":return r.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(t,e)}}function GT(r,t){switch(t){case"color":var e=r.getVisual("style");return e[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(t)}}function zi(r,t,e,i,n){var a=r+t;e.isSilent(a)||i.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=n.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var h=o.getData(),c=ba(h,n.fromActionPayload);e.trigger(a,{type:a,seriesId:o.id,name:V(c)?h.getName(c[0]):h.getName(c),selected:U(l)?l:k({},l)})}})}function UT(r,t,e){r.on("selectchanged",function(i){var n=e.getModel();i.isFromClick?(zi("map","selectchanged",t,n,i),zi("pie","selectchanged",t,n,i)):i.fromAction==="select"?(zi("map","selected",t,n,i),zi("pie","selected",t,n,i)):i.fromAction==="unselect"&&(zi("map","unselected",t,n,i),zi("pie","unselected",t,n,i))})}function Hn(r,t,e){for(var i;r&&!(t(r)&&(i=r,e));)r=r.__hostTarget||r.parent;return i}var YT=Math.round(Math.random()*9),WT=typeof Object.defineProperty=="function",XT=(function(){function r(){this._id="__ec_inner_"+YT++}return r.prototype.get=function(t){return this._guard(t)[this._id]},r.prototype.set=function(t,e){var i=this._guard(t);return WT?Object.defineProperty(i,this._id,{value:e,enumerable:!1,configurable:!0}):i[this._id]=e,this},r.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},r.prototype.has=function(t){return!!this._guard(t)[this._id]},r.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},r})(),$T=yt.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,i=t.cy,n=t.width/2,a=t.height/2;r.moveTo(e,i-a),r.lineTo(e+n,i+a),r.lineTo(e-n,i+a),r.closePath()}}),ZT=yt.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,i=t.cy,n=t.width/2,a=t.height/2;r.moveTo(e,i-a),r.lineTo(e+n,i),r.lineTo(e,i+a),r.lineTo(e-n,i),r.closePath()}}),qT=yt.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.x,i=t.y,n=t.width/5*3,a=Math.max(n,t.height),o=n/2,s=o*o/(a-o),l=i-a+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,h=Math.sin(u),c=Math.cos(u),v=o*.6,d=o*.7;r.moveTo(e-f,l+s),r.arc(e,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(e+f-h*v,l+s+c*v,e,i-d,e,i),r.bezierCurveTo(e,i-d,e-f+h*v,l+s+c*v,e-f,l+s),r.closePath()}}),KT=yt.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.height,i=t.width,n=t.x,a=t.y,o=i/3*2;r.moveTo(n,a),r.lineTo(n+o,a+e),r.lineTo(n,a+e/4*3),r.lineTo(n-o,a+e),r.lineTo(n,a),r.closePath()}}),jT={line:wi,rect:Vt,roundRect:Vt,square:Vt,circle:gs,diamond:ZT,pin:qT,arrow:KT,triangle:$T},QT={line:function(r,t,e,i,n){n.x1=r,n.y1=t+i/2,n.x2=r+e,n.y2=t+i/2},rect:function(r,t,e,i,n){n.x=r,n.y=t,n.width=e,n.height=i},roundRect:function(r,t,e,i,n){n.x=r,n.y=t,n.width=e,n.height=i,n.r=Math.min(e,i)/4},square:function(r,t,e,i,n){var a=Math.min(e,i);n.x=r,n.y=t,n.width=a,n.height=a},circle:function(r,t,e,i,n){n.cx=r+e/2,n.cy=t+i/2,n.r=Math.min(e,i)/2},diamond:function(r,t,e,i,n){n.cx=r+e/2,n.cy=t+i/2,n.width=e,n.height=i},pin:function(r,t,e,i,n){n.x=r+e/2,n.y=t+i/2,n.width=e,n.height=i},arrow:function(r,t,e,i,n){n.x=r+e/2,n.y=t+i/2,n.width=e,n.height=i},triangle:function(r,t,e,i,n){n.cx=r+e/2,n.cy=t+i/2,n.width=e,n.height=i}},ef={};I(jT,function(r,t){ef[t]=new r});var JT=yt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,t,e){var i=Np(r,t,e),n=this.shape;return n&&n.symbolType==="pin"&&t.position==="inside"&&(i.y=e.y+e.height*.4),i},buildPath:function(r,t,e){var i=t.symbolType;if(i!=="none"){var n=ef[i];n||(i="rect",n=ef[i]),QT[i](t.x,t.y,t.width,t.height,n.shape),n.buildPath(r,n.shape,e)}}});function tx(r,t){if(this.type!=="image"){var e=this.style;this.__isEmptyBrush?(e.stroke=r,e.fill=t||X.color.neutral00,e.lineWidth=2):this.shape.symbolType==="line"?e.stroke=r:e.fill=r,this.markRedraw()}}function Ca(r,t,e,i,n,a,o){var s=r.indexOf("empty")===0;s&&(r=r.substr(5,1).toLowerCase()+r.substr(6));var l;return r.indexOf("image://")===0?l=Cg(r.slice(8),new J(t,e,i,n),o?"center":"cover"):r.indexOf("path://")===0?l=jf(r.slice(7),{},new J(t,e,i,n),o?"center":"cover"):l=new JT({shape:{symbolType:r,x:t,y:e,width:i,height:n}}),l.__isEmptyBrush=s,l.setColor=tx,a&&l.setColor(a),l}function gh(r){return V(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function Ls(r,t){if(r!=null)return V(r)||(r=[r,r]),[re(r[0],t[0])||0,re($(r[1],r[0]),t[1])||0]}function ci(r){return isFinite(r)}function ex(r,t,e){var i=t.x==null?0:t.x,n=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(i=i*e.width+e.x,n=n*e.width+e.x,a=a*e.height+e.y,o=o*e.height+e.y),i=ci(i)?i:0,n=ci(n)?n:1,a=ci(a)?a:0,o=ci(o)?o:0;var s=r.createLinearGradient(i,a,n,o);return s}function rx(r,t,e){var i=e.width,n=e.height,a=Math.min(i,n),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(o=o*i+e.x,s=s*n+e.y,l=l*a),o=ci(o)?o:.5,s=ci(s)?s:.5,l=l>=0&&ci(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function rf(r,t,e){for(var i=t.type==="radial"?rx(r,t,e):ex(r,t,e),n=t.colorStops,a=0;a<n.length;a++)i.addColorStop(n[a].offset,n[a].color);return i}function ix(r,t){if(r===t||!r&&!t)return!1;if(!r||!t||r.length!==t.length)return!0;for(var e=0;e<r.length;e++)if(r[e]!==t[e])return!0;return!1}function no(r){return parseInt(r,10)}function ao(r,t,e){var i=["width","height"][t],n=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(e[i]!=null&&e[i]!=="auto")return parseFloat(e[i]);var s=document.defaultView.getComputedStyle(r);return(r[n]||no(s[i])||no(r.style[i]))-(no(s[a])||0)-(no(s[o])||0)|0}function nx(r,t){return!r||r==="solid"||!(t>0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:gt(r)?[r]:V(r)?r:null}function _y(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&nx(t.lineDash,t.lineWidth),i=t.lineDashOffset;if(e){var n=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;n&&n!==1&&(e=ot(e,function(a){return a/n}),i/=n)}return[e,i]}var ax=new on(!0);function jo(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function Wv(r){return typeof r=="string"&&r!=="none"}function Qo(r){var t=r.fill;return t!=null&&t!=="none"}function Xv(r,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.fillOpacity*t.opacity,r.fill(),r.globalAlpha=e}else r.fill()}function $v(r,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.strokeOpacity*t.opacity,r.stroke(),r.globalAlpha=e}else r.stroke()}function nf(r,t,e){var i=jp(t.image,t.__image,e);if(vs(i)){var n=r.createPattern(i,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*h_),a.scaleSelf(t.scaleX||1,t.scaleY||1),n.setTransform(a)}return n}}function ox(r,t,e,i){var n,a=jo(e),o=Qo(e),s=e.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var f=t.path||ax,h=t.__dirty;if(!i){var c=e.fill,v=e.stroke,d=o&&!!c.colorStops,y=a&&!!v.colorStops,g=o&&!!c.image,p=a&&!!v.image,m=void 0,_=void 0,S=void 0,b=void 0,w=void 0;(d||y)&&(w=t.getBoundingRect()),d&&(m=h?rf(r,c,w):t.__canvasFillGradient,t.__canvasFillGradient=m),y&&(_=h?rf(r,v,w):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(S=h||!t.__canvasFillPattern?nf(r,c,t):t.__canvasFillPattern,t.__canvasFillPattern=S),p&&(b=h||!t.__canvasStrokePattern?nf(r,v,t):t.__canvasStrokePattern,t.__canvasStrokePattern=b),d?r.fillStyle=m:g&&(S?r.fillStyle=S:o=!1),y?r.strokeStyle=_:p&&(b?r.strokeStyle=b:a=!1)}var T=t.getGlobalScale();f.setScale(T[0],T[1],t.segmentIgnoreThreshold);var C,x;r.setLineDash&&e.lineDash&&(n=_y(t),C=n[0],x=n[1]);var D=!0;(u||h&$i)&&(f.setDPR(r.dpr),l?f.setContext(null):(f.setContext(r),D=!1),f.reset(),t.buildPath(f,t.shape,i),f.toStatic(),t.pathUpdated()),D&&f.rebuildPath(r,l?s:1),C&&(r.setLineDash(C),r.lineDashOffset=x),i||(e.strokeFirst?(a&&$v(r,e),o&&Xv(r,e)):(o&&Xv(r,e),a&&$v(r,e))),C&&r.setLineDash([])}function sx(r,t,e){var i=t.__image=jp(e.image,t.__image,t,t.onload);if(!(!i||!vs(i))){var n=e.x||0,a=e.y||0,o=t.getWidth(),s=t.getHeight(),l=i.width/i.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=i.width,s=i.height),e.sWidth&&e.sHeight){var u=e.sx||0,f=e.sy||0;r.drawImage(i,u,f,e.sWidth,e.sHeight,n,a,o,s)}else if(e.sx&&e.sy){var u=e.sx,f=e.sy,h=o-u,c=s-f;r.drawImage(i,u,f,h,c,n,a,o,s)}else r.drawImage(i,n,a,o,s)}}function lx(r,t,e){var i,n=e.text;if(n!=null&&(n+=""),n){r.font=e.font||Lr,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var a=void 0,o=void 0;r.setLineDash&&e.lineDash&&(i=_y(t),a=i[0],o=i[1]),a&&(r.setLineDash(a),r.lineDashOffset=o),e.strokeFirst?(jo(e)&&r.strokeText(n,e.x,e.y),Qo(e)&&r.fillText(n,e.x,e.y)):(Qo(e)&&r.fillText(n,e.x,e.y),jo(e)&&r.strokeText(n,e.x,e.y)),a&&r.setLineDash([])}}var Zv=["shadowBlur","shadowOffsetX","shadowOffsetY"],qv=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Sy(r,t,e,i,n){var a=!1;if(!i&&(e=e||{},t===e))return!1;if(i||t.opacity!==e.opacity){oe(r,n),a=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?yi.opacity:o}(i||t.blend!==e.blend)&&(a||(oe(r,n),a=!0),r.globalCompositeOperation=t.blend||yi.blend);for(var s=0;s<Zv.length;s++){var l=Zv[s];(i||t[l]!==e[l])&&(a||(oe(r,n),a=!0),r[l]=r.dpr*(t[l]||0))}return(i||t.shadowColor!==e.shadowColor)&&(a||(oe(r,n),a=!0),r.shadowColor=t.shadowColor||yi.shadowColor),a}function Kv(r,t,e,i,n){var a=ga(t,n.inHover),o=i?null:e&&ga(e,n.inHover)||{};if(a===o)return!1;var s=Sy(r,a,o,i,n);if((i||a.fill!==o.fill)&&(s||(oe(r,n),s=!0),Wv(a.fill)&&(r.fillStyle=a.fill)),(i||a.stroke!==o.stroke)&&(s||(oe(r,n),s=!0),Wv(a.stroke)&&(r.strokeStyle=a.stroke)),(i||a.opacity!==o.opacity)&&(s||(oe(r,n),s=!0),r.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);r.lineWidth!==u&&(s||(oe(r,n),s=!0),r.lineWidth=u)}for(var f=0;f<qv.length;f++){var h=qv[f],c=h[0];(i||a[c]!==o[c])&&(s||(oe(r,n),s=!0),r[c]=a[c]||h[1])}return s}function ux(r,t,e,i,n){return Sy(r,ga(t,n.inHover),e&&ga(e,n.inHover),i,n)}function wy(r,t){var e=t.transform,i=r.dpr||1;e?r.setTransform(i*e[0],i*e[1],i*e[2],i*e[3],i*e[4],i*e[5]):r.setTransform(i,0,0,i,0,0)}function fx(r,t,e){for(var i=!1,n=0;n<r.length;n++){var a=r[n];i=i||a.isZeroArea(),wy(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}e.allClipped=i}function hx(r,t){return r&&t?r[0]!==t[0]||r[1]!==t[1]||r[2]!==t[2]||r[3]!==t[3]||r[4]!==t[4]||r[5]!==t[5]:!(!r&&!t)}var jv=1,Qv=2,Jv=3,td=4;function cx(r){var t=Qo(r),e=jo(r);return!(r.lineDash||!(+t^+e)||t&&typeof r.fill!="string"||e&&typeof r.stroke!="string"||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1)}function oe(r,t){t.batchFill&&r.fill(),t.batchStroke&&r.stroke(),t.batchFill="",t.batchStroke=""}function ga(r,t){return t&&r.__hoverStyle||r.style}function by(r,t){vi(r,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function vi(r,t,e,i){var n=t.transform;if(!t.shouldBePainted(e.viewWidth,e.viewHeight,!1,!1)){t.__dirty&=~ce,t.__isRendered=!1;return}var a=t.__clipPaths,o=e.prevElClipPaths,s=!1,l=!1;if((!o||ix(a,o))&&(o&&o.length&&(oe(r,e),r.restore(),l=s=!0,e.prevElClipPaths=null,e.allClipped=!1,e.prevEl=null),a&&a.length&&(oe(r,e),r.save(),fx(a,r,e),s=!0),e.prevElClipPaths=a),e.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=e.prevEl;u||(l=s=!0);var f=t instanceof yt&&t.autoBatch&&cx(t.style);s||hx(n,u.transform)?(oe(r,e),wy(r,t)):f||oe(r,e);var h=ga(t,e.inHover);t instanceof yt?(e.lastDrawType!==jv&&(l=!0,e.lastDrawType=jv),Kv(r,t,u,l,e),(!f||!e.batchFill&&!e.batchStroke)&&r.beginPath(),ox(r,t,h,f),f&&(e.batchFill=h.fill||"",e.batchStroke=h.stroke||"")):t instanceof Uo?(e.lastDrawType!==Jv&&(l=!0,e.lastDrawType=Jv),Kv(r,t,u,l,e),lx(r,t,h)):t instanceof Rr?(e.lastDrawType!==Qv&&(l=!0,e.lastDrawType=Qv),ux(r,t,u,l,e),sx(r,t,h)):t.getTemporalDisplayables&&(e.lastDrawType!==td&&(l=!0,e.lastDrawType=td),vx(r,t,e)),f&&i&&oe(r,e),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),e.prevEl=t,t.__dirty=0,t.__isRendered=!0}function vx(r,t,e){var i=t.getDisplayables(),n=t.getTemporalDisplayables();r.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:e.viewWidth,viewHeight:e.viewHeight,inHover:e.inHover},o,s;for(o=t.getCursor(),s=i.length;o<s;o++){var l=i[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),vi(r,l,a,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}for(var u=0,f=n.length;u<f;u++){var l=n[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),vi(r,l,a,u===f-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,r.restore()}var kl=new XT,ed=new nn(100),rd=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function af(r,t){if(r==="none")return null;var e=t.getDevicePixelRatio(),i=t.getZr(),n=i.painter.type==="svg";r.dirty&&kl.delete(r);var a=kl.get(r);if(a)return a;var o=Ct(r,{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 l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=n?1:1/e,kl.set(r,s),r.dirty=!1,s;function l(u){for(var f=[e],h=!0,c=0;c<rd.length;++c){var v=o[rd[c]];if(v!=null&&!V(v)&&!U(v)&&!gt(v)&&typeof v!="boolean"){h=!1;break}f.push(v)}var d;if(h){d=f.join(",")+(n?"-svg":"");var y=ed.get(d);y&&(n?u.svgElement=y:u.image=y)}var g=xy(o.dashArrayX),p=dx(o.dashArrayY),m=Ty(o.symbol),_=px(g),S=Cy(p),b=!n&&cr.createCanvas(),w=n&&{tag:"g",attrs:{},key:"dcl",children:[]},T=x(),C;b&&(b.width=T.width*e,b.height=T.height*e,C=b.getContext("2d")),D(),h&&ed.put(d,b||w),u.image=b,u.svgElement=w,u.svgWidth=T.width,u.svgHeight=T.height;function x(){for(var L=1,A=0,M=_.length;A<M;++A)L=mc(L,_[A]);for(var P=1,A=0,M=m.length;A<M;++A)P=mc(P,m[A].length);L*=P;var N=S*_.length*m.length;return{width:Math.max(1,Math.min(L,o.maxTileWidth)),height:Math.max(1,Math.min(N,o.maxTileHeight))}}function D(){C&&(C.clearRect(0,0,b.width,b.height),o.backgroundColor&&(C.fillStyle=o.backgroundColor,C.fillRect(0,0,b.width,b.height)));for(var L=0,A=0;A<p.length;++A)L+=p[A];if(L<=0)return;for(var M=-S,P=0,N=0,H=0;M<T.height;){if(P%2===0){for(var tt=N/2%m.length,it=0,nt=0,rt=0;it<T.width*2;){for(var Tt=0,A=0;A<g[H].length;++A)Tt+=g[H][A];if(Tt<=0)break;if(nt%2===0){var st=(1-o.symbolSize)*.5,Mt=it+g[H][nt]*st,kt=M+p[P]*st,pe=g[H][nt]*o.symbolSize,ge=p[P]*o.symbolSize,F=rt/2%m[tt].length;R(Mt,kt,pe,ge,m[tt][F])}it+=g[H][nt],++rt,++nt,nt===g[H].length&&(nt=0)}++H,H===g.length&&(H=0)}M+=p[P],++N,++P,P===p.length&&(P=0)}function R(Z,j,W,K,jt){var Ot=n?1:e,Ia=Ca(jt,Z*Ot,j*Ot,W*Ot,K*Ot,o.color,o.symbolKeepAspect);if(n){var La=i.painter.renderOneToVNode(Ia);La&&w.children.push(La)}else by(C,Ia)}}}}function Ty(r){if(!r||r.length===0)return[["rect"]];if(U(r))return[[r]];for(var t=!0,e=0;e<r.length;++e)if(!U(r[e])){t=!1;break}if(t)return Ty([r]);for(var i=[],e=0;e<r.length;++e)U(r[e])?i.push([r[e]]):i.push(r[e]);return i}function xy(r){if(!r||r.length===0)return[[0,0]];if(gt(r)){var t=Math.ceil(r);return[[t,t]]}for(var e=!0,i=0;i<r.length;++i)if(!gt(r[i])){e=!1;break}if(e)return xy([r]);for(var n=[],i=0;i<r.length;++i)if(gt(r[i])){var t=Math.ceil(r[i]);n.push([t,t])}else{var t=ot(r[i],function(s){return Math.ceil(s)});t.length%2===1?n.push(t.concat(t)):n.push(t)}return n}function dx(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(gt(r)){var t=Math.ceil(r);return[t,t]}var e=ot(r,function(i){return Math.ceil(i)});return r.length%2?e.concat(e):e}function px(r){return ot(r,function(t){return Cy(t)})}function Cy(r){for(var t=0,e=0;e<r.length;++e)t+=r[e];return r.length%2===1?t*2:t}function gx(r,t){r.eachRawSeries(function(e){if(!r.isSeriesFiltered(e)){var i=e.getData();i.hasItemVisual()&&i.each(function(o){var s=i.getItemVisual(o,"decal");if(s){var l=i.ensureUniqueItemVisual(o,"style");l.decal=af(s,t)}});var n=i.getVisual("decal");if(n){var a=i.getVisual("style");a.decal=af(n,t)}}})}var Me=new ke,Dy={};function yx(r,t){Dy[r]=t}function mx(r){return Dy[r]}var _x=1,Sx=800,bx=900,Tx=1e3,xx=2e3,Cx=5e3,Iy=1e3,Dx=1100,yh=2e3,Ly=3e3,Ix=4e3,Ms=4500,Lx=4600,Mx=5e3,Ax=6e3,My=7e3,Px={PROCESSOR:{FILTER:Tx,SERIES_FILTER:Sx,STATISTIC:Cx},VISUAL:{LAYOUT:Iy,PROGRESSIVE_LAYOUT:Dx,GLOBAL:yh,CHART:Ly,POST_CHART_LAYOUT:Lx,COMPONENT:Ix,BRUSH:Mx,CHART_ITEM:Ms,ARIA:Ax,DECAL:My}},Rt="__flagInMainProcess",oo="__mainProcessVersion",zt="__pendingUpdate",Ol="__needsUpdateStatus",id=/^[a-zA-Z0-9_]+$/,Bl="__connectUpdateStatus",nd=0,Rx=1,Ex=2;function Ay(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.isDisposed()){this.id;return}return Ry(this,r,t)}}function Py(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Ry(this,r,t)}}function Ry(r,t,e){return e[0]=e[0]&&e[0].toLowerCase(),ke.prototype[t].apply(r,e)}var Ey=(function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t})(ke),ky=Ey.prototype;ky.on=Py("on");ky.off=Py("off");var ni,Nl,so,nr,lo,zl,Fl,Fi,Hi,ad,od,Hl,sd,uo,ld,Oy,me,ud,Vi,By=(function(r){G(t,r);function t(e,i,n){var a=r.call(this,new zT)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],n=n||{},a._dom=e;var o="canvas",s="auto",l=!1;a[oo]=1,n.ssr;var u=a._zr=dc(e,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:$(n.useDirtyRect,l),useCoarsePointer:$(n.useCoarsePointer,s),pointerSize:n.pointerSize});a._ssr=n.ssr,a._throttledZrFlush=ph(ht(u.flush,u),17),a._updateTheme(i),a._locale=Ew(n.locale||Eg),a._coordSysMgr=new Cs;var f=a._api=ld(a);function h(c,v){return c.__prio-v.__prio}return _o(ts,h),_o(lf,h),a._scheduler=new dy(a,f,lf,ts),a._messageCenter=new Ey,a._initEvents(),a.resize=ht(a.resize,a),u.animation.on("frame",a._onframe,a),ad(u,a),od(u,a),fu(a),a}return t.prototype._onframe=function(){if(!this._disposed){ud(this);var e=this._scheduler;if(this[zt]){var i=this[zt].silent;this[Rt]=!0,Vi(this);try{ni(this),nr.update.call(this,null,this[zt].updateParams)}catch(l){throw this[Rt]=!1,this[zt]=null,l}this._zr.flush(),this[Rt]=!1,this[zt]=null,Fi.call(this,i),Hi.call(this,i)}else if(e.unfinished){var n=_x,a=this._model,o=this._api;e.unfinished=!1;do{var s=+new Date;e.performSeriesTasks(a),e.performDataProcessorTasks(a),zl(this,a),e.performVisualTasks(a),uo(this,this._model,o,"remain",{}),n-=+new Date-s}while(n>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,i,n){if(!this[Rt]){if(this._disposed){this.id;return}var a,o,s;if(Y(i)&&(n=i.lazyUpdate,a=i.silent,o=i.replaceMerge,s=i.transition,i=i.notMerge),this[Rt]=!0,Vi(this),!this._model||i){var l=new mb(this._api),u=this._theme,f=this._model=new fh;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},uf);var h={seriesTransition:s,optionChanged:!0};if(n)this[zt]={silent:a,updateParams:h},this[Rt]=!1,this.getZr().wakeUp();else{try{ni(this),nr.update.call(this,null,h)}catch(c){throw this[zt]=null,this[Rt]=!1,c}this._ssr||this._zr.flush(),this[zt]=null,this[Rt]=!1,Fi.call(this,a),Hi.call(this,a)}}},t.prototype.setTheme=function(e,i){if(!this[Rt]){if(this._disposed){this.id;return}var n=this._model;if(n){var a=i&&i.silent,o=null;this[zt]&&(a==null&&(a=this[zt].silent),o=this[zt].updateParams,this[zt]=null),this[Rt]=!0,Vi(this);try{this._updateTheme(e),n.setTheme(this._theme),ni(this),nr.update.call(this,{type:"setTheme"},o)}catch(s){throw this[Rt]=!1,s}this[Rt]=!1,Fi.call(this,a),Hi.call(this,a)}}},t.prototype._updateTheme=function(e){U(e)&&(e=Ny[e]),e&&(e=et(e),e&&$g(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||q.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var i=this._zr.painter;return i.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var i=this._zr.painter;return i.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){var e=this._zr,i=e.storage.getDisplayList();return I(i,function(n){n.stopAnimation(null,!0)}),e.painter.toDataURL()},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var i=e.excludeComponents,n=this._model,a=[],o=this;I(i,function(l){n.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return I(a,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var i=e.type==="svg",n=this.group,a=Math.min,o=Math.max,s=1/0;if(fd[n]){var l=s,u=s,f=-s,h=-s,c=[],v=e&&e.pixelRatio||this.getDevicePixelRatio();I(ta,function(_,S){if(_.group===n){var b=i?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(et(e)),w=_.getDom().getBoundingClientRect();l=a(w.left,l),u=a(w.top,u),f=o(w.right,f),h=o(w.bottom,h),c.push({dom:b,left:w.left,top:w.top})}}),l*=v,u*=v,f*=v,h*=v;var d=f-l,y=h-u,g=cr.createCanvas(),p=dc(g,{renderer:i?"svg":"canvas"});if(p.resize({width:d,height:y}),i){var m="";return I(c,function(_){var S=_.left-l,b=_.top-u;m+='<g transform="translate('+S+","+b+')">'+_.dom+"</g>"}),p.painter.getSvgRoot().innerHTML=m,e.connectedBackgroundColor&&p.painter.setBackgroundColor(e.connectedBackgroundColor),p.refreshImmediately(),p.painter.toDataURL()}else return e.connectedBackgroundColor&&p.add(new Vt({shape:{x:0,y:0,width:d,height:y},style:{fill:e.connectedBackgroundColor}})),I(c,function(_){var S=new Rr({style:{x:_.left*v-l,y:_.top*v-u,image:_.dom}});p.add(S)}),p.refreshImmediately(),g.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,i,n){return lo(this,"convertToPixel",e,i,n)},t.prototype.convertToLayout=function(e,i,n){return lo(this,"convertToLayout",e,i,n)},t.prototype.convertFromPixel=function(e,i,n){return lo(this,"convertFromPixel",e,i,n)},t.prototype.containPixel=function(e,i){if(this._disposed){this.id;return}var n=this._model,a,o=ol(n,e);return I(o,function(s,l){l.indexOf("Models")>=0&&I(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(i);else if(l==="seriesModels"){var h=this._chartsMap[u.__viewId];h&&h.containPoint&&(a=a||h.containPoint(i,u))}},this)},this),!!a},t.prototype.getVisual=function(e,i){var n=this._model,a=ol(n,e,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?VT(s,l,i):GT(s,i)},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;I(kx,function(n){var a=function(o){var s=e.getModel(),l=o.target,u,f=n==="globalout";if(f?u={}:l&&Hn(l,function(y){var g=ft(y);if(g&&g.dataIndex!=null){var p=g.dataModel||s.getSeriesByIndex(g.seriesIndex);return u=p&&p.getDataParams(g.dataIndex,g.dataType,l)||{},!0}else if(g.eventData)return u=k({},g.eventData),!0},!0),u){var h=u.componentType,c=u.componentIndex;(h==="markLine"||h==="markPoint"||h==="markArea")&&(h="series",c=u.seriesIndex);var v=h&&c!=null&&s.getComponent(h,c),d=v&&e[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];u.event=o,u.type=n,e._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:v,view:d},e.trigger(n,u)}};a.zrEventfulCallAtLast=!0,e._zr.on(n,a,e)});var i=this._messageCenter;I(sf,function(n,a){i.on(a,function(o){e.trigger(a,o)})}),UT(i,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;var e=this.getDom();e&&Zp(this.getDom(),_h,"");var i=this,n=i._api,a=i._model;I(i._componentsViews,function(o){o.dispose(a,n)}),I(i._chartsViews,function(o){o.dispose(a,n)}),i._zr.dispose(),i._dom=i._model=i._chartsMap=i._componentsMap=i._chartsViews=i._componentsViews=i._scheduler=i._api=i._zr=i._throttledZrFlush=i._theme=i._coordSysMgr=i._messageCenter=null,delete ta[i.id]},t.prototype.resize=function(e){if(!this[Rt]){if(this._disposed){this.id;return}this._zr.resize(e);var i=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!i){var n=i.resetOption("media"),a=e&&e.silent;this[zt]&&(a==null&&(a=this[zt].silent),n=!0,this[zt]=null),this[Rt]=!0,Vi(this);try{n&&ni(this),nr.update.call(this,{type:"resize",animation:k({duration:0},e&&e.animation)})}catch(o){throw this[Rt]=!1,o}this[Rt]=!1,Fi.call(this,a),Hi.call(this,a)}}},t.prototype.showLoading=function(e,i){if(this._disposed){this.id;return}if(Y(e)&&(i=e,e=""),e=e||"default",this.hideLoading(),!!ff[e]){var n=ff[e](this._api,i),a=this._zr;this._loadingFX=n,a.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 i=k({},e);return i.type=of[e.type],i},t.prototype.dispatchAction=function(e,i){if(this._disposed){this.id;return}if(Y(i)||(i={silent:!!i}),!!Jo[e.type]&&this._model){if(this[Rt]){this._pendingActions.push(e);return}var n=i.silent;Fl.call(this,e,n);var a=i.flush;a?this._zr.flush():a!==!1&&q.browser.weChat&&this._throttledZrFlush(),Fi.call(this,n),Hi.call(this,n)}},t.prototype.updateLabelLayout=function(){Me.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var i=e.seriesIndex,n=this.getModel(),a=n.getSeriesByIndex(i);a.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=(function(){ni=function(h){var c=h._scheduler;c.restorePipelines(h._model),c.prepareStageTasks(),Nl(h,!0),Nl(h,!1),c.plan()},Nl=function(h,c){for(var v=h._model,d=h._scheduler,y=c?h._componentsViews:h._chartsViews,g=c?h._componentsMap:h._chartsMap,p=h._zr,m=h._api,_=0;_<y.length;_++)y[_].__alive=!1;c?v.eachComponent(function(w,T){w!=="series"&&S(T)}):v.eachSeries(S);function S(w){var T=w.__requireNewView;w.__requireNewView=!1;var C="_ec_"+w.id+"_"+w.type,x=!T&&g[C];if(!x){var D=Xe(w.type),L=c?Je.getClass(D.main,D.sub):Ir.getClass(D.sub);x=new L,x.init(v,m),g[C]=x,y.push(x),p.add(x.group)}w.__viewId=x.__id=C,x.__alive=!0,x.__model=w,x.group.__ecComponentInfo={mainType:w.mainType,index:w.componentIndex},!c&&d.prepareView(x,w,v,m)}for(var _=0;_<y.length;){var b=y[_];b.__alive?_++:(!c&&b.renderTask.dispose(),p.remove(b.group),b.dispose(v,m),y.splice(_,1),g[b.__id]===b&&delete g[b.__id],b.__id=b.group.__ecComponentInfo=null)}},so=function(h,c,v,d,y){var g=h._model;if(g.setUpdatePayload(v),!d){I([].concat(h._componentsViews).concat(h._chartsViews),b);return}var p={};p[d+"Id"]=v[d+"Id"],p[d+"Index"]=v[d+"Index"],p[d+"Name"]=v[d+"Name"];var m={mainType:d,query:p};y&&(m.subType=y);var _=v.excludeSeriesId,S;_!=null&&(S=Q(),I(qt(_),function(w){var T=Re(w,null);T!=null&&S.set(T,!0)})),g&&g.eachComponent(m,function(w){var T=S&&S.get(w.id)!=null;if(!T)if(Xc(v))if(w instanceof Ar)v.type===mi&&!v.notBlur&&!w.get(["emphasis","disabled"])&&lS(w,v,h._api);else{var C=Uf(w.mainType,w.componentIndex,v.name,h._api),x=C.focusSelf,D=C.dispatchers;v.type===mi&&x&&!v.notBlur&&Fu(w.mainType,w.componentIndex,h._api),D&&I(D,function(L){v.type===mi?la(L):ua(L)})}else Gu(v)&&w instanceof Ar&&(hS(w,v,h._api),Wc(w),me(h))},h),g&&g.eachComponent(m,function(w){var T=S&&S.get(w.id)!=null;T||b(h[d==="series"?"_chartsMap":"_componentsMap"][w.__viewId])},h);function b(w){w&&w.__alive&&w[c]&&w[c](w.__model,g,h._api,v)}},nr={prepareAndUpdate:function(h){ni(this),nr.update.call(this,h,h&&{optionChanged:h.newOption!=null})},update:function(h,c){var v=this._model,d=this._api,y=this._zr,g=this._coordSysMgr,p=this._scheduler;if(v){v.setUpdatePayload(h),p.restoreData(v,h),p.performSeriesTasks(v),g.create(v,d),p.performDataProcessorTasks(v,h),zl(this,v),g.update(v,d),i(v),p.performVisualTasks(v,h);var m=v.get("backgroundColor")||"transparent";y.setBackgroundColor(m);var _=v.get("darkMode");_!=null&&_!=="auto"&&y.setDarkMode(_),Hl(this,v,d,h,c),Me.trigger("afterupdate",v,d)}},updateTransform:function(h){var c=this,v=this._model,d=this._api;if(v){v.setUpdatePayload(h);var y=[];v.eachComponent(function(p,m){if(p!=="series"){var _=c.getViewOfComponentModel(m);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(m,v,d,h);S&&S.update&&y.push(_)}else y.push(_)}});var g=Q();v.eachSeries(function(p){var m=c._chartsMap[p.__viewId];if(m.updateTransform){var _=m.updateTransform(p,v,d,h);_&&_.update&&g.set(p.uid,1)}else g.set(p.uid,1)}),i(v),this._scheduler.performVisualTasks(v,h,{setDirty:!0,dirtyMap:g}),uo(this,v,d,h,{},g),Me.trigger("afterupdate",v,d)}},updateView:function(h){var c=this._model;c&&(c.setUpdatePayload(h),Ir.markUpdateMethod(h,"updateView"),i(c),this._scheduler.performVisualTasks(c,h,{setDirty:!0}),Hl(this,c,this._api,h,{}),Me.trigger("afterupdate",c,this._api))},updateVisual:function(h){var c=this,v=this._model;v&&(v.setUpdatePayload(h),v.eachSeries(function(d){d.getData().clearAllVisual()}),Ir.markUpdateMethod(h,"updateVisual"),i(v),this._scheduler.performVisualTasks(v,h,{visualType:"visual",setDirty:!0}),v.eachComponent(function(d,y){if(d!=="series"){var g=c.getViewOfComponentModel(y);g&&g.__alive&&g.updateVisual(y,v,c._api,h)}}),v.eachSeries(function(d){var y=c._chartsMap[d.__viewId];y.updateVisual(d,v,c._api,h)}),Me.trigger("afterupdate",v,this._api))},updateLayout:function(h){nr.update.call(this,h)}};function e(h,c,v,d,y){if(h._disposed){h.id;return}for(var g=h._model,p=h._coordSysMgr.getCoordinateSystems(),m,_=ol(g,v),S=0;S<p.length;S++){var b=p[S];if(b[c]&&(m=b[c](g,_,d,y))!=null)return m}}lo=e,zl=function(h,c){var v=h._chartsMap,d=h._scheduler;c.eachSeries(function(y){d.updateStreamModes(y,v[y.__viewId])})},Fl=function(h,c){var v=this,d=this.getModel(),y=h.type,g=h.escapeConnect,p=Jo[y],m=(p.update||"update").split(":"),_=m.pop(),S=m[0]!=null&&Xe(m[0]);this[Rt]=!0,Vi(this);var b=[h],w=!1;h.batch&&(w=!0,b=ot(h.batch,function(H){return H=Ct(k({},H),h),H.batch=null,H}));var T=[],C,x=[],D=p.nonRefinedEventType,L=Gu(h),A=Xc(h);if(A&&pg(this._api),I(b,function(H){var tt=p.action(H,d,v._api);if(p.refineEvent?x.push(tt):C=tt,C=C||k({},H),C.type=D,T.push(C),A){var it=kf(h),nt=it.queryOptionMap,rt=it.mainTypeSpecified,Tt=rt?nt.keys()[0]:"series";so(v,_,H,Tt),me(v)}else L?(so(v,_,H,"series"),me(v)):S&&so(v,_,H,S.main,S.sub)}),_!=="none"&&!A&&!L&&!S)try{this[zt]?(ni(this),nr.update.call(this,h),this[zt]=null):nr[_].call(this,h)}catch(H){throw this[Rt]=!1,H}if(w?C={type:D,escapeConnect:g,batch:T}:C=T[0],this[Rt]=!1,!c){var M=void 0;if(p.refineEvent){var P=p.refineEvent(x,h,d,this._api).eventContent;je(Y(P)),M=Ct({type:p.refinedEventType},P),M.fromAction=h.type,M.fromActionPayload=h,M.escapeConnect=!0}var N=this._messageCenter;N.trigger(C.type,C),M&&N.trigger(M.type,M)}},Fi=function(h){for(var c=this._pendingActions;c.length;){var v=c.shift();Fl.call(this,v,h)}},Hi=function(h){!h&&this.trigger("updated")},ad=function(h,c){h.on("rendered",function(v){c.trigger("rendered",v),h.animation.isFinished()&&!c[zt]&&!c._scheduler.unfinished&&!c._pendingActions.length&&c.trigger("finished")})},od=function(h,c){h.on("mouseover",function(v){var d=v.target,y=Hn(d,Vu);y&&(uS(y,v,c._api),me(c))}).on("mouseout",function(v){var d=v.target,y=Hn(d,Vu);y&&(fS(y,v,c._api),me(c))}).on("click",function(v){var d=v.target,y=Hn(d,function(m){return ft(m).dataIndex!=null},!0);if(y){var g=y.selected?"unselect":"select",p=ft(y);c._api.dispatchAction({type:g,dataType:p.dataType,dataIndexInside:p.dataIndex,seriesIndex:p.seriesIndex,isFromClick:!0})}})};function i(h){h.clearColorPalette(),h.eachSeries(function(c){c.clearColorPalette()})}function n(h){var c=[],v=[],d=!1;if(h.eachComponent(function(m,_){var S=_.get("zlevel")||0,b=_.get("z")||0,w=_.getZLevelKey();d=d||!!w,(m==="series"?v:c).push({zlevel:S,z:b,idx:_.componentIndex,type:m,key:w})}),d){var y=c.concat(v),g,p;_o(y,function(m,_){return m.zlevel===_.zlevel?m.z-_.z:m.zlevel-_.zlevel}),I(y,function(m){var _=h.getComponent(m.type,m.idx),S=m.zlevel,b=m.key;g!=null&&(S=Math.max(g,S)),b?(S===g&&b!==p&&S++,p=b):p&&(S===g&&S++,p=""),g=S,_.setZLevel(S)})}}Hl=function(h,c,v,d,y){n(c),sd(h,c,v,d,y),I(h._chartsViews,function(g){g.__alive=!1}),uo(h,c,v,d,y),I(h._chartsViews,function(g){g.__alive||g.remove(c,v)})},sd=function(h,c,v,d,y,g){I(g||h._componentsViews,function(p){var m=p.__model;u(m,p),p.render(m,c,v,d),l(m,p),f(m,p)})},uo=function(h,c,v,d,y,g){var p=h._scheduler;y=k(y||{},{updatedSeries:c.getSeries()}),Me.trigger("series:beforeupdate",c,v,y);var m=!1;c.eachSeries(function(_){var S=h._chartsMap[_.__viewId];S.__alive=!0;var b=S.renderTask;p.updatePayload(b,d),u(_,S),g&&g.get(_.uid)&&b.dirty(),b.perform(p.getPerformArgs(b))&&(m=!0),S.group.silent=!!_.get("silent"),s(_,S),Wc(_)}),p.unfinished=m||p.unfinished,Me.trigger("series:layoutlabels",c,v,y),Me.trigger("series:transition",c,v,y),c.eachSeries(function(_){var S=h._chartsMap[_.__viewId];l(_,S),f(_,S)}),o(h,c),Me.trigger("series:afterupdate",c,v,y)},me=function(h){h[Ol]=!0,h.getZr().wakeUp()},Vi=function(h){h[oo]=(h[oo]+1)%1e3},ud=function(h){h[Ol]&&(h.getZr().storage.traverse(function(c){jn(c)||a(c)}),h[Ol]=!1)};function a(h){for(var c=[],v=h.currentStates,d=0;d<v.length;d++){var y=v[d];y==="emphasis"||y==="blur"||y==="select"||c.push(y)}h.selected&&h.states.select&&c.push("select"),h.hoverState===Hf&&h.states.emphasis?c.push("emphasis"):h.hoverState===Ff&&h.states.blur&&c.push("blur"),h.useStates(c)}function o(h,c){var v=h._zr,d=v.storage,y=0;d.traverse(function(g){g.isGroup||y++}),y>c.get("hoverLayerThreshold")&&!q.node&&!q.worker&&c.eachSeries(function(g){if(!g.preventUsingHoverLayer){var p=h._chartsMap[g.__viewId];p.__alive&&p.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function s(h,c){var v=h.get("blendMode")||null;c.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function l(h,c){if(!h.preventAutoZ){var v=ha(h);c.eachRendered(function(d){return Mg(d,v.z,v.zlevel),!0})}}function u(h,c){c.eachRendered(function(v){if(!jn(v)){var d=v.getTextContent(),y=v.getTextGuideLine();v.stateTransition&&(v.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),y&&y.stateTransition&&(y.stateTransition=null),v.hasState()?(v.prevStates=v.currentStates,v.clearStates()):v.prevStates&&(v.prevStates=null)}})}function f(h,c){var v=h.getModel("stateAnimation"),d=h.isAnimationEnabled(),y=v.get("duration"),g=y>0?{duration:y,delay:v.get("delay"),easing:v.get("easing")}:null;c.eachRendered(function(p){if(p.states&&p.states.emphasis){if(jn(p))return;if(p instanceof yt&&gS(p),p.__dirty){var m=p.prevStates;m&&p.useStates(m)}if(d){p.stateTransition=g;var _=p.getTextContent(),S=p.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}p.__dirty&&a(p)}})}ld=function(h){return new((function(c){G(v,c);function v(){return c!==null&&c.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var y=d.__ecComponentInfo;if(y!=null)return h._model.getComponent(y.mainType,y.index);d=d.parent}},v.prototype.enterEmphasis=function(d,y){la(d,y),me(h)},v.prototype.leaveEmphasis=function(d,y){ua(d,y),me(h)},v.prototype.enterBlur=function(d){sS(d),me(h)},v.prototype.leaveBlur=function(d){hg(d),me(h)},v.prototype.enterSelect=function(d){cg(d),me(h)},v.prototype.leaveSelect=function(d){vg(d),me(h)},v.prototype.getModel=function(){return h.getModel()},v.prototype.getViewOfComponentModel=function(d){return h.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return h.getViewOfSeriesModel(d)},v.prototype.getMainProcessVersion=function(){return h[oo]},v})(Wg))(h)},Oy=function(h){function c(v,d){for(var y=0;y<v.length;y++){var g=v[y];g[Bl]=d}}I(of,function(v,d){h._messageCenter.on(d,function(y){if(fd[h.group]&&h[Bl]!==nd){if(y&&y.escapeConnect)return;var g=h.makeActionFromEvent(y),p=[];I(ta,function(m){m!==h&&m.group===h.group&&p.push(m)}),c(p,nd),I(p,function(m){m[Bl]!==Rx&&m.dispatchAction(g)}),c(p,Ex)}})})}})(),t})(ke),mh=By.prototype;mh.on=Ay("on");mh.off=Ay("off");mh.one=function(r,t,e){var i=this;function n(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];t&&t.apply&&t.apply(this,a),i.off(r,n)}this.on.call(this,r,n,e)};var kx=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Jo={},of={},sf={},lf=[],uf=[],ts=[],Ny={},ff={},ta={},fd={},Ox=+new Date-0,_h="_echarts_instance_";function Bx(r,t,e){var i=!(e&&e.ssr);if(i){var n=Nx(r);if(n)return n}var a=new By(r,t,e);return a.id="ec_"+Ox++,ta[a.id]=a,i&&Zp(r,_h,a.id),Oy(a),Me.trigger("afterinit",a),a}function Nx(r){return ta[q0(r,_h)]}function zy(r,t){Ny[r]=t}function Fy(r){pt(uf,r)<0&&uf.push(r)}function Hy(r,t){wh(lf,r,t,xx)}function zx(r){Sh("afterinit",r)}function Fx(r){Sh("afterupdate",r)}function Sh(r,t){Me.on(r,t)}function Ti(r,t,e){var i,n,a,o,s;at(t)&&(e=t,t=""),Y(r)?(i=r.type,n=r.event,o=r.update,s=r.publishNonRefinedEvent,e||(e=r.action),a=r.refineEvent):(i=r,n=t);function l(f){return f.toLowerCase()}n=l(n||i);var u=a?l(i):n;Jo[i]||(je(id.test(i)&&id.test(n)),a&&je(n!==i),Jo[i]={actionType:i,refinedEventType:n,nonRefinedEventType:u,update:o,action:e,refineEvent:a},sf[n]=1,a&&s&&(sf[u]=1),of[u]=i)}function Hx(r,t){Cs.register(r,t)}function Vx(r,t){wh(ts,r,t,Iy,"layout")}function xi(r,t){wh(ts,r,t,Ly,"visual")}var hd=[];function wh(r,t,e,i,n){if((at(t)||Y(t))&&(e=t,t=i),!(pt(hd,e)>=0)){hd.push(e);var a=dy.wrapStageHandler(e,n);a.__prio=t,a.__raw=e,r.push(a)}}function Vy(r,t){ff[r]=t}function Gx(r,t,e){var i=mx("registerMap");i&&i(r,t,e)}var Ux=Zb;xi(yh,xT);xi(Ms,CT);xi(Ms,DT);xi(yh,FT);xi(Ms,HT);xi(My,gx);Fy($g);Hy(bx,Ab);Vy("default",IT);Ti({type:mi,event:mi,update:mi},Ht);Ti({type:Co,event:Co,update:Co},Ht);Ti({type:Yo,event:Vf,update:Yo,action:Ht,refineEvent:bh,publishNonRefinedEvent:!0});Ti({type:Nu,event:Vf,update:Nu,action:Ht,refineEvent:bh,publishNonRefinedEvent:!0});Ti({type:Wo,event:Vf,update:Wo,action:Ht,refineEvent:bh,publishNonRefinedEvent:!0});function bh(r,t,e,i){return{eventContent:{selected:cS(e),isFromClick:t.isFromClick||!1}}}zy("default",{});zy("dark",my);function Tn(r){return r==null?0:r.length||1}function cd(r){return r}var Yx=(function(){function r(t,e,i,n,a,o){this._old=t,this._new=e,this._oldKeyGetter=i||cd,this._newKeyGetter=n||cd,this.context=a,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,i={},n=new Array(t.length),a=new Array(e.length);this._initIndexMap(t,null,n,"_oldKeyGetter"),this._initIndexMap(e,i,a,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=n[o],l=i[s],u=Tn(l);if(u>1){var f=l.shift();l.length===1&&(i[s]=l[0]),this._update&&this._update(f,o)}else u===1?(i[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,i)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,i={},n={},a=[],o=[];this._initIndexMap(t,i,a,"_oldKeyGetter"),this._initIndexMap(e,n,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=i[l],f=n[l],h=Tn(u),c=Tn(f);if(h>1&&c===1)this._updateManyToOne&&this._updateManyToOne(f,u),n[l]=null;else if(h===1&&c>1)this._updateOneToMany&&this._updateOneToMany(f,u),n[l]=null;else if(h===1&&c===1)this._update&&this._update(f,u),n[l]=null;else if(h>1&&c>1)this._updateManyToMany&&this._updateManyToMany(f,u),n[l]=null;else if(h>1)for(var v=0;v<h;v++)this._remove&&this._remove(u[v]);else this._remove&&this._remove(u)}this._performRestAdd(o,n)},r.prototype._performRestAdd=function(t,e){for(var i=0;i<t.length;i++){var n=t[i],a=e[n],o=Tn(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);e[n]=null}},r.prototype._initIndexMap=function(t,e,i,n){for(var a=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[n](t[o],o);if(a||(i[o]=s),!!e){var l=e[s],u=Tn(l);u===0?(e[s]=o,a&&i.push(s)):u===1?e[s]=[l,o]:l.push(o)}}},r})(),Wx=(function(){function r(t,e){this._encode=t,this._schema=e}return r.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},r.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},r})();function Xx(r,t){var e={},i=e.encode={},n=Q(),a=[],o=[],s={};I(r.dimensions,function(c){var v=r.getDimensionInfo(c),d=v.coordDim;if(d){var y=v.coordDimIndex;Vl(i,d)[y]=c,v.isExtraCoord||(n.set(d,1),Zx(v.type)&&(a[0]=c),Vl(s,d)[y]=r.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(c)}Hg.each(function(g,p){var m=Vl(i,p),_=v.otherDims[p];_!=null&&_!==!1&&(m[_]=v.name)})});var l=[],u={};n.each(function(c,v){var d=i[v];u[v]=d[0],l=l.concat(d)}),e.dataDimsOnCoord=l,e.dataDimIndicesOnCoord=ot(l,function(c){return r.getDimensionInfo(c).storeDimIndex}),e.encodeFirstDimNotExtra=u;var f=i.label;f&&f.length&&(a=f.slice());var h=i.tooltip;return h&&h.length?o=h.slice():o.length||(o=a.slice()),i.defaultedLabel=a,i.defaultedTooltip=o,e.userOutput=new Wx(s,t),e}function Vl(r,t){return r.hasOwnProperty(t)||(r[t]=[]),r[t]}function $x(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function Zx(r){return!(r==="ordinal"||r==="time")}var Ao=(function(){function r(t){this.otherDims={},t!=null&&k(this,t)}return r})(),qx=mt(),Kx={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Gy=(function(){function r(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=Wy(this.source)))},r.prototype.getSourceDimensionIndex=function(t){return $(this._dimNameMap.get(t),-1)},r.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},r.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=qg(this.source),i=!Xy(t),n="",a=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,f=void 0,h=this.dimensions[s];if(h&&h.storeDimIndex===o)l=e?h.name:null,u=h.type,f=h.ordinalMeta,s++;else{var c=this.getSourceDimension(o);c&&(l=e?c.name:null,u=c.type)}a.push({property:l,type:u,ordinalMeta:f}),e&&l!=null&&(!h||!h.isCalculationCoord)&&(n+=i?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),n+="$",n+=Kx[u]||"f",f&&(n+=f.uid),n+="$"}var v=this.source,d=[v.seriesLayoutBy,v.startIndex,n].join("$$");return{dimensions:a,hash:d}},r.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,i=0;e<this._fullDimCount;e++){var n=void 0,a=this.dimensions[i];if(a&&a.storeDimIndex===e)a.isCalculationCoord||(n=a.name),i++;else{var o=this.getSourceDimension(e);o&&(n=o.name)}t.push(n)}return t},r.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r})();function Uy(r){return r instanceof Gy}function Yy(r){for(var t=Q(),e=0;e<(r||[]).length;e++){var i=r[e],n=Y(i)?i.name:i;n!=null&&t.get(n)==null&&t.set(n,e)}return t}function Wy(r){var t=qx(r);return t.dimNameMap||(t.dimNameMap=Yy(r.dimensionsDefine))}function Xy(r){return r>30}var xn=Y,mr=ot,jx=typeof Int32Array>"u"?Array:Int32Array,Qx="e\0\0",vd=-1,Jx=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],tC=["_approximateExtent"],dd,fo,Cn,Dn,Gl,In,Ul,es=(function(){function r(t,e){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 i,n=!1;Uy(t)?(i=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(n=!0,i=t),i=i||["x","y"];for(var a={},o=[],s={},l=!1,u={},f=0;f<i.length;f++){var h=i[f],c=U(h)?new Ao({name:h}):h instanceof Ao?h:new Ao(h),v=c.name;c.type=c.type||"float",c.coordDim||(c.coordDim=v,c.coordDimIndex=0);var d=c.otherDims=c.otherDims||{};o.push(v),a[v]=c,u[v]!=null&&(l=!0),c.createInvertedIndices&&(s[v]=[]);var y=f;gt(c.storeDimIndex)&&(y=c.storeDimIndex),d.itemName===0&&(this._nameDimIdx=y),d.itemId===0&&(this._idDimIdx=y),n&&(c.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted){var g=this._dimIdxToName=Q();I(o,function(p){g.set(a[p].storeDimIndex,p)})}}return r.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(e==null)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var i=this._dimIdxToName.get(e);if(i!=null)return i;var n=this._schema.getSourceDimension(e);if(n)return n.name},r.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(e!=null)return e;if(t==null)return-1;var i=this._getDimInfo(t);return i?i.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},r.prototype._recognizeDimIndex=function(t){if(gt(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},r.prototype._getStoreDimIndex=function(t){var e=this.getDimensionIndex(t);return e},r.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},r.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(i){return e.hasOwnProperty(i)?e[i]:void 0}:function(i){return e[i]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(t,e){var i=this._dimSummary;if(e==null)return i.encodeFirstDimNotExtra[t];var n=i.encode[t];return n?n[e]:null},r.prototype.mapDimensionsAll=function(t){var e=this._dimSummary,i=e.encode[t];return(i||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(t,e,i){var n=this,a;if(t instanceof qu&&(a=t),!a){var o=this.dimensions,s=hh(t)||se(t)?new Kg(t,o.length):t;a=new qu;var l=mr(o,function(u){return{type:n._dimInfos[u].type,property:u}});a.initData(s,l,i)}this._store=a,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=Xx(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},r.prototype.appendValues=function(t,e){var i=this._store.appendValues(t,e&&e.length),n=i.start,a=i.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var s=n;s<a;s++){var l=s-n;this._nameList[s]=e[l],o&&Ul(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,i=0;i<e.length;i++){var n=this._dimInfos[e[i]];n.ordinalMeta&&t.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==Dr&&!t.fillStorage},r.prototype._doInit=function(t,e){if(!(t>=e)){var i=this._store,n=i.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=n.getSource().sourceFormat,l=s===de;if(l&&!n.pure)for(var u=[],f=t;f<e;f++){var h=n.getItem(f,u);if(!this.hasItemOption&&z0(h)&&(this.hasItemOption=!0),h){var c=h.name;a[f]==null&&c!=null&&(a[f]=Re(c,null));var v=h.id;o[f]==null&&v!=null&&(o[f]=Re(v,null))}}if(this._shouldMakeIdFromName())for(var f=t;f<e;f++)Ul(this,f);dd(this)}},r.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},r.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},r.prototype.setCalculationInfo=function(t,e){xn(t)?k(this._calculationInfo,t):this._calculationInfo[t]=e},r.prototype.getName=function(t){var e=this.getRawIndex(t),i=this._nameList[e];return i==null&&this._nameDimIdx!=null&&(i=Cn(this,this._nameDimIdx,e)),i==null&&(i=""),i},r.prototype._getCategory=function(t,e){var i=this._store.get(t,e),n=this._store.getOrdinalMeta(t);return n?n.categories[i]:i},r.prototype.getId=function(t){return fo(this,this.getRawIndex(t))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(t,e){var i=this._store,n=this._dimInfos[t];if(n)return i.get(n.storeDimIndex,e)},r.prototype.getByRawIndex=function(t,e){var i=this._store,n=this._dimInfos[t];if(n)return i.getByRawIndex(n.storeDimIndex,e)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},r.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},r.prototype.getValues=function(t,e){var i=this,n=this._store;return V(t)?n.getValues(mr(t,function(a){return i._getStoreDimIndex(a)}),e):n.getValues(t)},r.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,i=0,n=e.length;i<n;i++)if(isNaN(this._store.get(e[i],t)))return!1;return!0},r.prototype.indexOfName=function(t){for(var e=0,i=this._store.count();e<i;e++)if(this.getName(e)===t)return e;return-1},r.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},r.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},r.prototype.rawIndexOf=function(t,e){var i=t&&this._invertedIndicesMap[t],n=i&&i[e];return n==null||isNaN(n)?vd:n},r.prototype.each=function(t,e,i){at(t)&&(i=e,e=t,t=[]);var n=i||this,a=mr(Dn(t),this._getStoreDimIndex,this);this._store.each(a,n?ht(e,n):e)},r.prototype.filterSelf=function(t,e,i){at(t)&&(i=e,e=t,t=[]);var n=i||this,a=mr(Dn(t),this._getStoreDimIndex,this);return this._store=this._store.filter(a,n?ht(e,n):e),this},r.prototype.selectRange=function(t){var e=this,i={},n=Lt(t);return I(n,function(a){var o=e._getStoreDimIndex(a);i[o]=t[a]}),this._store=this._store.selectRange(i),this},r.prototype.mapArray=function(t,e,i){at(t)&&(i=e,e=t,t=[]),i=i||this;var n=[];return this.each(t,function(){n.push(e&&e.apply(this,arguments))},i),n},r.prototype.map=function(t,e,i,n){var a=i||n||this,o=mr(Dn(t),this._getStoreDimIndex,this),s=In(this);return s._store=this._store.map(o,a?ht(e,a):e),s},r.prototype.modify=function(t,e,i,n){var a=i||n||this,o=mr(Dn(t),this._getStoreDimIndex,this);this._store.modify(o,a?ht(e,a):e)},r.prototype.downSample=function(t,e,i,n){var a=In(this);return a._store=this._store.downSample(this._getStoreDimIndex(t),e,i,n),a},r.prototype.minmaxDownSample=function(t,e){var i=In(this);return i._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),e),i},r.prototype.lttbDownSample=function(t,e){var i=In(this);return i._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),i},r.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},r.prototype.getItemModel=function(t){var e=this.hostModel,i=this.getRawDataItem(t);return new bt(i,e,e&&e.ecModel)},r.prototype.diff=function(t){var e=this;return new Yx(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(i){return fo(t,i)},function(i){return fo(e,i)})},r.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},r.prototype.setVisual=function(t,e){this._visual=this._visual||{},xn(t)?k(this._visual,t):this._visual[t]=e},r.prototype.getItemVisual=function(t,e){var i=this._itemVisuals[t],n=i&&i[e];return n??this.getVisual(e)},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(t,e){var i=this._itemVisuals,n=i[t];n||(n=i[t]={});var a=n[e];return a==null&&(a=this.getVisual(e),V(a)?a=a.slice():xn(a)&&(a=k({},a)),n[e]=a),a},r.prototype.setItemVisual=function(t,e,i){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,xn(e)?k(n,e):n[e]=i},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){xn(t)?k(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,i){this._itemLayouts[t]=i?k(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var i=this.hostModel&&this.hostModel.seriesIndex;j1(i,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){I(this._graphicEls,function(i,n){i&&t&&t.call(e,i,n)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:mr(this.dimensions,this._getDimInfo,this),this.hostModel)),Gl(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var i=this[t];at(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var n=i.apply(this,arguments);return e.apply(this,[n].concat(Df(arguments)))})},r.internalField=(function(){dd=function(t){var e=t._invertedIndicesMap;I(e,function(i,n){var a=t._dimInfos[n],o=a.ordinalMeta,s=t._store;if(o){i=e[n]=new jx(o.categories.length);for(var l=0;l<i.length;l++)i[l]=vd;for(var l=0;l<s.count();l++)i[s.get(a.storeDimIndex,l)]=l}})},Cn=function(t,e,i){return Re(t._getCategory(e,i),null)},fo=function(t,e){var i=t._idList[e];return i==null&&t._idDimIdx!=null&&(i=Cn(t,t._idDimIdx,e)),i==null&&(i=Qx+e),i},Dn=function(t){return V(t)||(t=t!=null?[t]:[]),t},In=function(t){var e=new r(t._schema?t._schema:mr(t.dimensions,t._getDimInfo,t),t.hostModel);return Gl(e,t),e},Gl=function(t,e){I(Jx.concat(e.__wrappedMethods||[]),function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t.__wrappedMethods=e.__wrappedMethods,I(tC,function(i){t[i]=et(e[i])}),t._calculationInfo=k({},e._calculationInfo)},Ul=function(t,e){var i=t._nameList,n=t._idList,a=t._nameDimIdx,o=t._idDimIdx,s=i[e],l=n[e];if(s==null&&a!=null&&(i[e]=s=Cn(t,a,e)),l==null&&o!=null&&(n[e]=l=Cn(t,o,e)),l==null&&s!=null){var u=t._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),n[e]=l}}})(),r})();function $y(r,t){hh(r)||(r=ch(r)),t=t||{};var e=t.coordDimensions||[],i=t.dimensionsDefine||r.dimensionsDefine||[],n=Q(),a=[],o=rC(r,e,i,t.dimensionsCount),s=t.canOmitUnusedDimensions&&Xy(o),l=i===r.dimensionsDefine,u=l?Wy(r):Yy(i),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var h=Q(f),c=new ey(o),v=0;v<c.length;v++)c[v]=-1;function d(x){var D=c[x];if(D<0){var L=i[x],A=Y(L)?L:{name:L},M=new Ao,P=A.name;P!=null&&u.get(P)!=null&&(M.name=M.displayName=P),A.type!=null&&(M.type=A.type),A.displayName!=null&&(M.displayName=A.displayName);var N=a.length;return c[x]=N,M.storeDimIndex=x,a.push(M),M}return a[D]}if(!s)for(var v=0;v<o;v++)d(v);h.each(function(x,D){var L=qt(x).slice();if(L.length===1&&!U(L[0])&&L[0]<0){h.set(D,!1);return}var A=h.set(D,[]);I(L,function(M,P){var N=U(M)?u.get(M):M;N!=null&&N<o&&(A[P]=N,g(d(N),D,P))})});var y=0;I(e,function(x){var D,L,A,M;if(U(x))D=x,M={};else{M=x,D=M.name;var P=M.ordinalMeta;M.ordinalMeta=null,M=k({},M),M.ordinalMeta=P,L=M.dimsDef,A=M.otherDims,M.name=M.coordDim=M.coordDimIndex=M.dimsDef=M.otherDims=null}var N=h.get(D);if(N!==!1){if(N=qt(N),!N.length)for(var H=0;H<(L&&L.length||1);H++){for(;y<o&&d(y).coordDim!=null;)y++;y<o&&N.push(y++)}I(N,function(tt,it){var nt=d(tt);if(l&&M.type!=null&&(nt.type=M.type),g(Ct(nt,M),D,it),nt.name==null&&L){var rt=L[it];!Y(rt)&&(rt={name:rt}),nt.name=nt.displayName=rt.name,nt.defaultTooltip=rt.defaultTooltip}A&&Ct(nt.otherDims,A)})}});function g(x,D,L){Hg.get(D)!=null?x.otherDims[D]=L:(x.coordDim=D,x.coordDimIndex=L,n.set(D,!0))}var p=t.generateCoord,m=t.generateCoordCount,_=m!=null;m=p?m||1:0;var S=p||"value";function b(x){x.name==null&&(x.name=x.coordDim)}if(s)I(a,function(x){b(x)}),a.sort(function(x,D){return x.storeDimIndex-D.storeDimIndex});else for(var w=0;w<o;w++){var T=d(w),C=T.coordDim;C==null&&(T.coordDim=iC(S,n,_),T.coordDimIndex=0,(!p||m<=0)&&(T.isExtraCoord=!0),m--),b(T),T.type==null&&(Yg(r,w)===ue.Must||T.isExtraCoord&&(T.otherDims.itemName!=null||T.otherDims.seriesName!=null))&&(T.type="ordinal")}return eC(a),new Gy({source:r,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function eC(r){for(var t=Q(),e=0;e<r.length;e++){var i=r[e],n=i.name,a=t.get(n)||0;a>0&&(i.name=n+(a-1)),a++,t.set(n,a)}}function rC(r,t,e,i){var n=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,i||0);return I(t,function(a){var o;Y(a)&&(o=a.dimsDef)&&(n=Math.max(n,o.length))}),n}function iC(r,t,e){if(e||t.hasKey(r)){for(var i=0;t.hasKey(r+i);)i++;r+=i}return t.set(r,!0),r}var nC=(function(){function r(t){this.coordSysDims=[],this.axisMap=Q(),this.categoryAxisMap=Q(),this.coordSysName=t}return r})();function aC(r){var t=r.get("coordinateSystem"),e=new nC(t),i=oC[t];if(i)return i(r,e,e.axisMap,e.categoryAxisMap),e}var oC={cartesian2d:function(r,t,e,i){var n=r.getReferringComponents("xAxis",wr).models[0],a=r.getReferringComponents("yAxis",wr).models[0];t.coordSysDims=["x","y"],e.set("x",n),e.set("y",a),Gi(n)&&(i.set("x",n),t.firstCategoryDimIndex=0),Gi(a)&&(i.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,i){var n=r.getReferringComponents("singleAxis",wr).models[0];t.coordSysDims=["single"],e.set("single",n),Gi(n)&&(i.set("single",n),t.firstCategoryDimIndex=0)},polar:function(r,t,e,i){var n=r.getReferringComponents("polar",wr).models[0],a=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",a),e.set("angle",o),Gi(a)&&(i.set("radius",a),t.firstCategoryDimIndex=0),Gi(o)&&(i.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,i){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,i){var n=r.ecModel,a=n.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();I(a.parallelAxisIndex,function(s,l){var u=n.getComponent("parallelAxis",s),f=o[l];e.set(f,u),Gi(u)&&(i.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})},matrix:function(r,t,e,i){var n=r.getReferringComponents("matrix",wr).models[0];t.coordSysDims=["x","y"];var a=n.getDimensionModel("x"),o=n.getDimensionModel("y");e.set("x",a),e.set("y",o),i.set("x",a),i.set("y",o)}};function Gi(r){return r.get("type")==="category"}function sC(r,t,e){e=e||{};var i=e.byIndex,n=e.stackedCoordDimension,a,o,s;lC(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,f,h,c;if(I(a,function(m,_){U(m)&&(a[_]=m={name:m}),l&&!m.isExtraCoord&&(!i&&!u&&m.ordinalMeta&&(u=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!n||n===m.coordDim)&&(f=m))}),f&&!i&&!u&&(i=!0),f){h="__\0ecstackresult_"+r.id,c="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var v=f.coordDim,d=f.type,y=0;I(a,function(m){m.coordDim===v&&y++});var g={name:h,coordDim:v,coordDimIndex:y,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},p={name:c,coordDim:c,coordDimIndex:y+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(c,d),p.storeDimIndex=s.ensureCalculationDimension(h,d)),o.appendCalculationDimension(g),o.appendCalculationDimension(p)):(a.push(g),a.push(p))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:i,stackedOverDimension:c,stackResultDimension:h}}function lC(r){return!Uy(r.schema)}function uC(r,t){var e=r.get("coordinateSystem"),i=Cs.get(e),n;return t&&t.coordSysDims&&(n=ot(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");o.type=$x(l)}return o})),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}function fC(r,t,e){var i,n;return e&&I(r,function(a,o){var s=a.coordDim,l=e.categoryAxisMap.get(s);l&&(i==null&&(i=o),a.ordinalMeta=l.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(n=!0)}),!n&&i!=null&&(r[i].otherDims.itemName=0),i}function hC(r,t,e){e=e||{};var i=t.getSourceManager(),n,a=!1;r?(a=!0,n=ch(r)):(n=i.getSource(),a=n.sourceFormat===de);var o=aC(t),s=uC(t,o),l=e.useEncodeDefaulter,u=at(l)?l:l?Pt(ab,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},h=$y(n,f),c=fC(h.dimensions,e.createInvertedIndices,o),v=a?null:i.getSharedDataStore(h),d=sC(t,{schema:h,store:v}),y=new es(h,t);y.setCalculationInfo(d);var g=c!=null&&cC(n)?function(p,m,_,S){return S===c?_:this.defaultDimValueGetter(p,m,_,S)}:null;return y.hasItemOption=!1,y.initData(a?n:v,null,g),y}function cC(r){if(r.sourceFormat===de){var t=vC(r.data||[]);return!V(wa(t))}}function vC(r){for(var t=0;t<r.length&&r[t]==null;)t++;return r[t]}function Zy(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function dC(r){var t=r.get("interval");return t??"auto"}function pC(r){return r.type==="category"&&dC(r.getLabelModel())===0}function rs(r){return r==="middle"||r==="center"}var pd=[],gC={registerPreprocessor:Fy,registerProcessor:Hy,registerPostInit:zx,registerPostUpdate:Fx,registerUpdateLifecycle:Sh,registerAction:Ti,registerCoordinateSystem:Hx,registerLayout:Vx,registerVisual:xi,registerTransform:Ux,registerLoading:Vy,registerMap:Gx,registerImpl:yx,PRIORITY:Px,ComponentModel:vt,ComponentView:Je,SeriesModel:Ar,ChartView:Ir,registerComponentModel:function(r){vt.registerClass(r)},registerComponentView:function(r){Je.registerClass(r)},registerSeriesModel:function(r){Ar.registerClass(r)},registerChartView:function(r){Ir.registerClass(r)},registerCustomSeries:function(r,t){},registerSubTypeDefaulter:function(r,t){vt.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){D0(r,t)}};function fn(r){if(V(r)){I(r,function(t){fn(t)});return}pt(pd,r)>=0||(pd.push(r),at(r)&&(r={install:r}),r.install(gC))}mt();mt();var gd={estimate:1,determine:2};function yC(r){return{out:{noPxChangeTryDetermine:[]},kind:r}}var yd=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],mC=1,is=2,qy=mC|is;function ns(r,t,e){e=e||qy,t?r.dirty|=e:r.dirty&=~e}function Ky(r,t){return t=t||qy,r.dirty==null||!!(r.dirty&t)}function Pr(r){if(r)return Ky(r)&&_C(r,r.label,r),r}function _C(r,t,e){var i=t.getComputedTransform();r.transform=rh(r.transform,i);var n=r.localRect=fa(r.localRect,t.getBoundingRect()),a=t.style,o=a.margin,s=e&&e.marginForce,l=e&&e.minMarginForce,u=e&&e.marginDefault,f=a.__marginType;f==null&&u&&(o=u,f=Ji.textMargin);for(var h=0;h<4;h++)Yl[h]=f===Ji.minMargin&&l&&l[h]!=null?l[h]:s&&s[h]!=null?s[h]:o?o[h]:0;f===Ji.textMargin&&Wu(n,Yl,!1,!1);var c=r.rect=fa(r.rect,n);return i&&c.applyTransform(i),f===Ji.minMargin&&Wu(c,Yl,!1,!1),r.axisAligned=eh(i),(r.label=r.label||{}).ignore=t.ignore,ns(r,!1),ns(r,!0,is),r}var Yl=[0,0,0,0];function SC(r,t,e){return r.transform=rh(r.transform,e),r.localRect=fa(r.localRect,t),r.rect=fa(r.rect,t),e&&r.rect.applyTransform(e),r.axisAligned=eh(e),r.obb=void 0,(r.label=r.label||{}).ignore=!1,r}function wC(r,t){if(r){r.label.x+=t.x,r.label.y+=t.y,r.label.markRedraw();var e=r.transform;e&&(e[4]+=t.x,e[5]+=t.y);var i=r.rect;i&&(i.x+=t.x,i.y+=t.y);var n=r.obb;n&&n.fromBoundingRect(r.localRect,e)}}function md(r,t){for(var e=0;e<yd.length;e++){var i=yd[e];r[i]==null&&(r[i]=t[i])}return Pr(r)}function _d(r){var t=r.obb;return(!t||Ky(r,is))&&(r.obb=t=t||new xg,t.fromBoundingRect(r.localRect,r.transform),ns(r,!1,is)),t}function bC(r){var t=[];r.sort(function(u,f){return(f.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||f.priority-u.priority});function e(u){if(!u.ignore){var f=u.ensureState("emphasis");f.ignore==null&&(f.ignore=!1)}u.ignore=!0}for(var i=0;i<r.length;i++){var n=Pr(r[i]);if(!n.label.ignore){for(var a=n.label,o=n.labelLine,s=!1,l=0;l<t.length;l++)if(Th(n,t[l],null,{touchThreshold:.05})){s=!0;break}s?(e(a),o&&e(o)):t.push(n)}}}function Th(r,t,e,i){return!r||!t||r.label&&r.label.ignore||t.label&&t.label.ignore||!r.rect.intersect(t.rect,e,i)?!1:r.axisAligned&&t.axisAligned?!0:_d(r).intersect(_d(t),e,i)}const TC=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function xC(r){function t(i){return(...n)=>{if(!r.value)throw new Error("ECharts is not initialized yet.");return r.value[i].apply(r.value,n)}}function e(){const i=Object.create(null);return TC.forEach(n=>{i[n]=t(n)}),i}return e()}function CC(r,t,e){yo([e,r,t],([i,n,a],o,s)=>{let l=null;if(i&&n&&a){const{offsetWidth:u,offsetHeight:f}=i,h=a===!0?{}:a,{throttle:c=100,onResize:v}=h;let d=!1;const y=()=>{n.resize(),v?.()},g=c?ph(y,c):y;l=new ResizeObserver(()=>{!d&&(d=!0,i.offsetWidth===u&&i.offsetHeight===f)||g()}),l.observe(i)}s(()=>{l&&(l.disconnect(),l=null)})})}const DC={autoresize:[Boolean,Object]},IC=/^on[^a-z]/,jy=r=>IC.test(r);function LC(r){const t={};for(const e in r)jy(e)||(t[e]=r[e]);return t}function Po(r,t){const e=Bm(r)?_e(r):r;return e&&typeof e=="object"&&"value"in e?e.value||t:e||t}const MC="ecLoadingOptions";function AC(r,t,e){const i=go(MC,{}),n=Ue(()=>({...Po(i,{}),...e?.value}));hp(()=>{const a=r.value;a&&(t.value?a.showLoading(n.value):a.hideLoading())})}const PC={loading:Boolean,loadingOptions:Object};let Ln=null;const Qy="x-vue-echarts";function RC(){if(Ln!=null)return Ln;if(typeof HTMLElement>"u"||typeof customElements>"u")return Ln=!1;try{new Function("tag","class EChartsElement extends HTMLElement{__dispose=null;disconnectedCallback(){this.__dispose&&(this.__dispose(),this.__dispose=null)}}customElements.get(tag)==null&&customElements.define(tag,EChartsElement);")(Qy)}catch{return Ln=!1}return Ln=!0}document.head.appendChild(document.createElement("style")).textContent=`x-vue-echarts{display:block;width:100%;height:100%;min-width:0}
15
- `;const EC=RC(),kC="ecTheme",OC="ecInitOptions",BC="ecUpdateOptions",Sd=/(^&?~?!?)native:/;var NC=Am({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...DC,...PC},emits:{},inheritAttrs:!1,setup(r,{attrs:t}){const e=Bs(),i=Bs(),n=Bs(),a=go(kC,null),o=go(OC,null),s=go(BC,null),{autoresize:l,manualUpdate:u,loading:f,loadingOptions:h}=Rm(r),c=Ue(()=>n.value||r.option||null),v=Ue(()=>r.theme||Po(a,{})),d=Ue(()=>r.initOptions||Po(o,{})),y=Ue(()=>r.updateOptions||Po(s,{})),g=Ue(()=>LC(t)),p={},m=Em().proxy.$listeners,_={};m?Object.keys(m).forEach(x=>{Sd.test(x)?p[x.replace(Sd,"$1")]=m[x]:_[x]=m[x]}):Object.keys(t).filter(x=>jy(x)).forEach(x=>{let D=x.charAt(2).toLowerCase()+x.slice(3);if(D.indexOf("native:")===0){const L=`on${D.charAt(7).toUpperCase()}${D.slice(8)}`;p[L]=t[x];return}D.substring(D.length-4)==="Once"&&(D=`~${D.substring(0,D.length-4)}`),_[D]=t[x]});function S(x){if(!e.value)return;const D=i.value=Bx(e.value,v.value,d.value);r.group&&(D.group=r.group),Object.keys(_).forEach(M=>{let P=_[M];if(!P)return;let N=M.toLowerCase();N.charAt(0)==="~"&&(N=N.substring(1),P.__once__=!0);let H=D;if(N.indexOf("zr:")===0&&(H=D.getZr(),N=N.substring(3)),P.__once__){delete P.__once__;const tt=P;P=(...it)=>{tt(...it),H.off(N,P)}}H.on(N,P)});function L(){D&&!D.isDisposed()&&D.resize()}function A(){const M=x||c.value;M&&D.setOption(M,y.value)}l.value?Om(()=>{L(),A()}):A()}function b(x,D){r.manualUpdate&&(n.value=x),i.value?i.value.setOption(x,D||{}):S(x)}function w(){i.value&&(i.value.dispose(),i.value=void 0)}let T=null;yo(u,x=>{typeof T=="function"&&(T(),T=null),x||(T=yo(()=>r.option,(D,L)=>{D&&(i.value?i.value.setOption(D,{notMerge:D!==L,...y.value}):S())},{deep:!0}))},{immediate:!0}),yo([v,d],()=>{w(),S()},{deep:!0}),hp(()=>{r.group&&i.value&&(i.value.group=r.group)});const C=xC(i);return AC(i,f,h),CC(i,l,e),cp(()=>{S()}),km(()=>{EC&&e.value?e.value.__dispose=w:w()}),{chart:i,root:e,setOption:b,nonEventAttrs:g,nativeListeners:p,...C}},render(){const r={...this.nonEventAttrs,...this.nativeListeners};return r.ref="root",r.class=r.class?["echarts"].concat(r.class):"echarts",Pm(Qy,r)}});function wd(r,t,e){var i=cr.createCanvas(),n=t.getWidth(),a=t.getHeight(),o=i.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=n+"px",o.height=a+"px",i.setAttribute("data-zr-dom-id",r)),i.width=n*e,i.height=a*e,i}var Wl=(function(r){G(t,r);function t(e,i,n){var a=r.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null;var o;n=n||Ho,typeof e=="string"?o=wd(e,i,n):Y(e)&&(o=e,e=o.id),a.id=e,a.dom=o;var s=o.style;return s&&(mp(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=i,a.dpr=n,a}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},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=wd("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,i,n,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new J(0,0,0,0);function f(m){if(!(!m.isFinite()||m.isZero()))if(o.length===0){var _=new J(0,0,0,0);_.copy(m),o.push(_)}else{for(var S=!1,b=1/0,w=0,T=0;T<o.length;++T){var C=o[T];if(C.intersect(m)){var x=new J(0,0,0,0);x.copy(C),x.union(m),o[T]=x,S=!0;break}else if(l){u.copy(m),u.union(C);var D=m.width*m.height,L=C.width*C.height,A=u.width*u.height,M=A-D-L;M<b&&(b=M,w=T)}}if(l&&(o[w].union(m),S=!0),!S){var _=new J(0,0,0,0);_.copy(m),o.push(_)}l||(l=o.length>=s)}}for(var h=this.__startIndex;h<this.__endIndex;++h){var c=e[h];if(c){var v=c.shouldBePainted(n,a,!0,!0),d=c.__isRendered&&(c.__dirty&ce||!v)?c.getPrevPaintRect():null;d&&f(d);var y=v&&(c.__dirty&ce||!c.__isRendered)?c.getPaintRect():null;y&&f(y)}}for(var h=this.__prevStartIndex;h<this.__prevEndIndex;++h){var c=i[h],v=c&&c.shouldBePainted(n,a,!0,!0);if(c&&(!v||!c.__zr)&&c.__isRendered){var d=c.getPrevPaintRect();d&&f(d)}}var g;do{g=!1;for(var h=0;h<o.length;){if(o[h].isZero()){o.splice(h,1);continue}for(var p=h+1;p<o.length;)o[h].intersect(o[p])?(g=!0,o[h].union(o[p]),o.splice(p,1)):p++;h++}}while(g);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,i){var n=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=e+"px",o.height=i+"px"),a.width=e*n,a.height=i*n,s&&(s.width=e*n,s.height=i*n,n!==1&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,i,n){var a=this.dom,o=this.ctx,s=a.width,l=a.height;i=i||this.clearColor;var u=this.motionBlur&&!e,f=this.lastFrameAlpha,h=this.dpr,c=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/h,l/h));var v=this.domBack;function d(y,g,p,m){if(o.clearRect(y,g,p,m),i&&i!=="transparent"){var _=void 0;if(ss(i)){var S=i.global||i.__width===p&&i.__height===m;_=S&&i.__canvasGradient||rf(o,i,{x:0,y:0,width:p,height:m}),i.__canvasGradient=_,i.__width=p,i.__height=m}else a_(i)&&(i.scaleX=i.scaleX||h,i.scaleY=i.scaleY||h,_=nf(o,i,{dirty:function(){c.setUnpainted(),c.painter.refresh()}}));o.save(),o.fillStyle=_||i,o.fillRect(y,g,p,m),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(v,y,g,p,m),o.restore())}!n||u?d(0,0,s,l):n.length&&I(n,function(y){d(y.x*h,y.y*h,y.width*h,y.height*h)})},t})(ke),bd=1e5,ai=314159,ho=.01,zC=.001;function FC(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function HC(r,t){var e=document.createElement("div");return e.style.cssText=["position:relative","width:"+r+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",e}var VC=(function(){function r(t,e,i,n){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var a=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=i=k({},i||{}),this.dpr=i.devicePixelRatio||Ho,this._singleCanvas=a,this.root=t;var o=t.style;o&&(mp(t),t.innerHTML=""),this.storage=e;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(a){var f=t,h=f.width,c=f.height;i.width!=null&&(h=i.width),i.height!=null&&(c=i.height),this.dpr=i.devicePixelRatio||1,f.width=h*this.dpr,f.height=c*this.dpr,this._width=h,this._height=c;var v=new Wl(f,this,this.dpr);v.__builtin__=!0,v.initContext(),l[ai]=v,v.zlevel=ai,s.push(ai),this._domRoot=t}else{this._width=ao(t,0,i),this._height=ao(t,1,i);var u=this._domRoot=HC(this._width,this._height);t.appendChild(u)}}return r.prototype.getType=function(){return"canvas"},r.prototype.isSingleCanvas=function(){return this._singleCanvas},r.prototype.getViewportRoot=function(){return this._domRoot},r.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},r.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),i=this._prevDisplayList,n=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,i,t,this._redrawId);for(var a=0;a<n.length;a++){var o=n[a],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=a===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},r.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},r.prototype._paintHoverList=function(t){var e=t.length,i=this._hoverlayer;if(i&&i.clear(),!!e){for(var n={inHover:!0,viewWidth:this._width,viewHeight:this._height},a,o=0;o<e;o++){var s=t[o];s.__inHover&&(i||(i=this._hoverlayer=this.getLayer(bd)),a||(a=i.ctx,a.save()),vi(a,s,n,o===e-1))}a&&a.restore()}},r.prototype.getHoverLayer=function(){return this.getLayer(bd)},r.prototype.paintOne=function(t,e){by(t,e)},r.prototype._paintList=function(t,e,i,n){if(this._redrawId===n){i=i||!1,this._updateLayerStatus(t);var a=this._doPaintList(t,e,i),o=a.finished,s=a.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;Bo(function(){l._paintList(t,e,i,n)})}}},r.prototype._compositeManually=function(){var t=this.getLayer(ai).ctx,e=this._domRoot.width,i=this._domRoot.height;t.clearRect(0,0,e,i),this.eachBuiltinLayer(function(n){n.virtual&&t.drawImage(n.dom,0,0,e,i)})},r.prototype._doPaintList=function(t,e,i){for(var n=this,a=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||i)&&a.push(u)}for(var f=!0,h=!1,c=function(y){var g=a[y],p=g.ctx,m=o&&g.createRepaintRects(t,e,v._width,v._height),_=i?g.__startIndex:g.__drawIndex,S=!i&&g.incremental&&Date.now,b=S&&Date.now(),w=g.zlevel===v._zlevelList[0]?v._backgroundColor:null;if(g.__startIndex===g.__endIndex)g.clear(!1,w,m);else if(_===g.__startIndex){var T=t[_];(!T.incremental||!T.notClear||i)&&g.clear(!1,w,m)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=g.__startIndex);var C,x=function(M){var P={inHover:!1,allClipped:!1,prevEl:null,viewWidth:n._width,viewHeight:n._height};for(C=_;C<g.__endIndex;C++){var N=t[C];if(N.__inHover&&(h=!0),n._doPaintEl(N,g,o,M,P,C===g.__endIndex-1),S){var H=Date.now()-b;if(H>15)break}}P.prevElClipPaths&&p.restore()};if(m)if(m.length===0)C=g.__endIndex;else for(var D=v.dpr,L=0;L<m.length;++L){var A=m[L];p.save(),p.beginPath(),p.rect(A.x*D,A.y*D,A.width*D,A.height*D),p.clip(),x(A),p.restore()}else p.save(),x(),p.restore();g.__drawIndex=C,g.__drawIndex<g.__endIndex&&(f=!1)},v=this,d=0;d<a.length;d++)c(d);return q.wxa&&I(this._layers,function(y){y&&y.ctx&&y.ctx.draw&&y.ctx.draw()}),{finished:f,needsRefreshHover:h}},r.prototype._doPaintEl=function(t,e,i,n,a,o){var s=e.ctx;if(i){var l=t.getPaintRect();(!n||l&&l.intersect(n))&&(vi(s,t,a,o),t.setPrevPaintRect(l))}else vi(s,t,a,o)},r.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=ai);var i=this._layers[t];return i||(i=new Wl("zr_"+t,this,this.dpr),i.zlevel=t,i.__builtin__=!0,this._layerConfig[t]?xt(i,this._layerConfig[t],!0):this._layerConfig[t-ho]&&xt(i,this._layerConfig[t-ho],!0),e&&(i.virtual=e),this.insertLayer(t,i),i.initContext()),i},r.prototype.insertLayer=function(t,e){var i=this._layers,n=this._zlevelList,a=n.length,o=this._domRoot,s=null,l=-1;if(!i[t]&&FC(e)){if(a>0&&t>n[0]){for(l=0;l<a-1&&!(n[l]<t&&n[l+1]>t);l++);s=i[n[l]]}if(n.splice(l+1,0,t),i[t]=e,!e.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(e.dom,u.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(e.painter=this)}},r.prototype.eachLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var a=i[n];t.call(e,this._layers[a],a)}},r.prototype.eachBuiltinLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var a=i[n],o=this._layers[a];o.__builtin__&&t.call(e,o,a)}},r.prototype.eachOtherLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var a=i[n],o=this._layers[a];o.__builtin__||t.call(e,o,a)}},r.prototype.getLayers=function(){return this._layers},r.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(h,c){h.__dirty=h.__used=!1});function e(h){a&&(a.__endIndex!==h&&(a.__dirty=!0),a.__endIndex=h)}if(this._singleCanvas)for(var i=1;i<t.length;i++){var n=t[i];if(n.zlevel!==t[i-1].zlevel||n.incremental){this._needsManuallyCompositing=!0;break}}var a=null,o=0,s,l;for(l=0;l<t.length;l++){var n=t[l],u=n.zlevel,f=void 0;s!==u&&(s=u,o=0),n.incremental?(f=this.getLayer(u+zC,this._needsManuallyCompositing),f.incremental=!0,o=1):f=this.getLayer(u+(o>0?ho:0),this._needsManuallyCompositing),f.__builtin__||Cf("ZLevel "+u+" has been used by unkown layer "+f.id),f!==a&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,e(l),a=f),n.__dirty&ce&&!n.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}e(l),this.eachBuiltinLayer(function(h,c){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(t){t.clear()},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t,I(this._layers,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var i=this._layerConfig;i[t]?xt(i[t],e,!0):i[t]=e;for(var n=0;n<this._zlevelList.length;n++){var a=this._zlevelList[n];if(a===t||a===t+ho){var o=this._layers[a];xt(o,i[t],!0)}}}},r.prototype.delLayer=function(t){var e=this._layers,i=this._zlevelList,n=e[t];n&&(n.dom.parentNode.removeChild(n.dom),delete e[t],i.splice(pt(i,t),1))},r.prototype.resize=function(t,e){if(this._domRoot.style){var i=this._domRoot;i.style.display="none";var n=this._opts,a=this.root;if(t!=null&&(n.width=t),e!=null&&(n.height=e),t=ao(a,0,n),e=ao(a,1,n),i.style.display="",this._width!==t||e!==this._height){i.style.width=t+"px",i.style.height=e+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(t==null||e==null)return;this._width=t,this._height=e,this.getLayer(ai).resize(t,e)}return this},r.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},r.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},r.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[ai].dom;var e=new Wl("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var i=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var n=e.dom.width,a=e.dom.height;this.eachLayer(function(h){h.__builtin__?i.drawImage(h.dom,0,0,n,a):h.renderToCanvas&&(i.save(),h.renderToCanvas(i),i.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var f=s[l];vi(i,f,o,l===u-1)}return e.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r})();function GC(r){r.registerPainter("canvas",VC)}function UC(r,t){var e=r.mapDimensionsAll("defaultedLabel"),i=e.length;if(i===1){var n=ln(r,t,e[0]);return n!=null?n+"":null}else if(i){for(var a=[],o=0;o<e.length;o++)a.push(ln(r,t,e[o]));return a.join(" ")}}var YC=(function(r){G(t,r);function t(e,i,n,a){var o=r.call(this)||this;return o.updateData(e,i,n,a),o}return t.prototype._createSymbol=function(e,i,n,a,o,s){this.removeAll();var l=Ca(e,-1,-1,2,2,null,s);l.attr({z2:$(o,100),culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),l.drift=WC,this._symbolType=e,this.add(l)},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(){la(this.childAt(0))},t.prototype.downplay=function(){ua(this.childAt(0))},t.prototype.setZ=function(e,i){var n=this.childAt(0);n.zlevel=e,n.z=i},t.prototype.setDraggable=function(e,i){var n=this.childAt(0);n.draggable=e,n.cursor=!i&&e?"move":n.cursor},t.prototype.updateData=function(e,i,n,a){this.silent=!1;var o=e.getItemVisual(i,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,i),u=t.getSymbolZ2(e,i),f=o!==this._symbolType,h=a&&a.disableAnimation;if(f){var c=e.getItemVisual(i,"symbolKeepAspect");this._createSymbol(o,e,i,l,u,c)}else{var v=this.childAt(0);v.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};h?v.attr(d):Er(v,d,s,i),KS(v)}if(this._updateCommon(e,i,l,n,a),f){var v=this.childAt(0);if(!h){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}};v.scaleX=v.scaleY=0,v.style.opacity=0,Kf(v,d,s,i)}}h&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,i,n,a,o){var s=this.childAt(0),l=e.hostModel,u,f,h,c,v,d,y,g,p;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,h=a.selectItemStyle,c=a.focus,v=a.blurScope,y=a.labelStatesModels,g=a.hoverScale,p=a.cursorStyle,d=a.emphasisDisabled),!a||e.hasItemOption){var m=a&&a.itemModel?a.itemModel:e.getItemModel(i),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),h=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),c=_.get("focus"),v=_.get("blurScope"),d=_.get("disabled"),y=bs(m),g=_.getShallow("scale"),p=m.getShallow("cursor")}var S=e.getItemVisual(i,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var b=Ls(e.getItemVisual(i,"symbolOffset"),n);b&&(s.x=b[0],s.y=b[1]),p&&s.attr("cursor",p);var w=e.getItemVisual(i,"style"),T=w.fill;if(s instanceof Rr){var C=s.style;s.useStyle(k({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},w))}else s.__isEmptyBrush?s.useStyle(k({},w)):s.useStyle(w),s.style.decal=null,s.setColor(T,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var x=e.getItemVisual(i,"liftZ"),D=this._z2;x!=null?D==null&&(this._z2=s.z2,s.z2+=x):D!=null&&(s.z2=D,this._z2=null);var L=o&&o.useNameLabel;ih(s,y,{labelFetcher:l,labelDataIndex:i,defaultText:A,inheritColor:T,defaultOpacity:w.opacity});function A(N){return L?e.getName(N):UC(e,N)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var M=s.ensureState("emphasis");M.style=u,s.ensureState("select").style=h,s.ensureState("blur").style=f;var P=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;M.scaleX=this._sizeX*P,M.scaleY=this._sizeY*P,this.setSymbolScale(1),gg(this,c,v,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,i,n){var a=this.childAt(0),o=ft(this).dataIndex,s=n&&n.animation;if(this.silent=a.silent=!0,n&&n.fadeLabel){var l=a.getTextContent();l&&Xo(l,{style:{opacity:0}},i,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();Xo(a,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,i){return gh(e.getItemVisual(i,"symbolSize"))},t.getSymbolZ2=function(e,i){return e.getItemVisual(i,"z2")},t})(Et);function WC(r,t){this.parent.drift(r,t)}function Xl(r,t,e,i){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(i.isIgnore&&i.isIgnore(e))&&!(i.clipShape&&!i.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function Td(r){return r!=null&&!Y(r)&&(r={isIgnore:r}),r||{}}function xd(r){var t=r.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:bs(t),cursorStyle:t.get("cursor")}}var XC=(function(){function r(t){this.group=new Et,this._SymbolCtor=t||YC}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=Td(e);var i=this.group,n=t.hostModel,a=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=xd(t),u={disableAnimation:s},f=e.getSymbolPoint||function(h){return t.getItemLayout(h)};a||i.removeAll(),t.diff(a).add(function(h){var c=f(h);if(Xl(t,c,h,e)){var v=new o(t,h,l,u);v.setPosition(c),t.setItemGraphicEl(h,v),i.add(v)}}).update(function(h,c){var v=a.getItemGraphicEl(c),d=f(h);if(!Xl(t,d,h,e)){i.remove(v);return}var y=t.getItemVisual(h,"symbol")||"circle",g=v&&v.getSymbolType&&v.getSymbolType();if(!v||g&&g!==y)i.remove(v),v=new o(t,h,l,u),v.setPosition(d);else{v.updateData(t,h,l,u);var p={x:d[0],y:d[1]};s?v.attr(p):Er(v,p,n)}i.add(v),t.setItemGraphicEl(h,v)}).remove(function(h){var c=a.getItemGraphicEl(h);c&&c.fadeOut(function(){i.remove(c)},n)}).execute(),this._getSymbolPoint=f,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(i,n){var a=t._getSymbolPoint(n);i.setPosition(a),i.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=xd(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,i){this._progressiveEls=[],i=Td(i);function n(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a<t.end;a++){var o=e.getItemLayout(a);if(Xl(e,o,a,i)){var s=new this._SymbolCtor(e,a,this._seriesScope);s.traverse(n),s.setPosition(o),this.group.add(s),e.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},r.prototype.eachRendered=function(t){Ss(this._progressiveEls||this.group,t)},r.prototype.remove=function(t){var e=this.group,i=this._data;i&&t?i.eachItemGraphicEl(function(n){n.fadeOut(function(){e.remove(n)},i.hostModel)}):e.removeAll()},r})(),$C=(function(){function r(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return r.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},r.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},r.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},r.prototype.getItemVisual=function(t,e){var i=this._getDataWithEncodedVisual();return i.getItemVisual(t,e)},r})(),ZC=null;function qC(){return ZC}var KC="expandAxisBreak",Tr=Math.PI,jC=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],QC=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],as=mt(),Jy=mt(),JC=(function(){function r(t){this.recordMap={},this.resolveAxisNameOverlap=t}return r.prototype.ensureRecord=function(t){var e=t.axis.dim,i=t.componentIndex,n=this.recordMap,a=n[e]||(n[e]=[]);return a[i]||(a[i]={ready:{}})},r})();function tD(r,t,e,i){var n=e.axis,a=t.ensureRecord(e),o=[],s,l=xh(r.axisName)&&rs(r.nameLocation);I(i,function(d){var y=Pr(d);if(!(!y||y.label.ignore)){o.push(y);var g=a.transGroup;l&&(g.transform?Sa(Mn,g.transform):Mf(Mn),y.transform&&Wn(Mn,Mn,y.transform),J.copy(co,y.localRect),co.applyTransform(Mn),s?s.union(co):J.copy(s=new J(0,0,0,0),co))}});var u=Math.abs(a.dirVec.x)>.1?"x":"y",f=a.transGroup[u];if(o.sort(function(d,y){return Math.abs(d.label[u]-f)-Math.abs(y.label[u]-f)}),l&&s){var h=n.getExtent(),c=Math.min(h[0],h[1]),v=Math.max(h[0],h[1])-c;s.union(new J(c,0,v,1))}a.stOccupiedRect=s,a.labelInfoList=o}var Mn=$e(),co=new J(0,0,0,0),eD=function(r,t,e,i,n,a){if(rs(r.nameLocation)){var o=a.stOccupiedRect;o&&tm(SC({},o,a.transGroup.transform),i,n)}else rD(a.labelInfoList,a.dirVec,i,n)};function tm(r,t,e){var i=new ct;Th(r,t,i,{direction:Math.atan2(e.y,e.x),bidirectional:!1,touchThreshold:.05})&&wC(t,i)}function rD(r,t,e,i){for(var n=ct.dot(i,t)>=0,a=0,o=r.length;a<o;a++){var s=r[n?a:o-1-a];s.label.ignore||tm(s,e,i)}}var _i=(function(){function r(t,e,i,n){this.group=new Et,this._axisModel=t,this._api=e,this._local={},this._shared=n||new JC(eD),this._resetCfgDetermined(i)}return r.prototype.updateCfg=function(t){var e=this._cfg.raw;e.position=t.position,e.labelOffset=t.labelOffset,this._resetCfgDetermined(e)},r.prototype.__getRawCfg=function(){return this._cfg.raw},r.prototype._resetCfgDetermined=function(t){var e=this._axisModel,i=e.getDefaultOption?e.getDefaultOption():{},n=$(t.axisName,e.get("name")),a=e.get("nameMoveOverlap");(a==null||a==="auto")&&(a=$(t.defaultNameMoveOverlap,!0));var o={raw:t,position:t.position,rotation:t.rotation,nameDirection:$(t.nameDirection,1),tickDirection:$(t.tickDirection,1),labelDirection:$(t.labelDirection,1),labelOffset:$(t.labelOffset,0),silent:$(t.silent,!0),axisName:n,nameLocation:fr(e.get("nameLocation"),i.nameLocation,"end"),shouldNameMoveOverlap:xh(n)&&a,optionHideOverlap:e.get(["axisLabel","hideOverlap"]),showMinorTicks:e.get(["minorTick","show"])};this._cfg=o;var s=new Et({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(e);l.transGroup=this._transformGroup,l.dirVec=new ct(Math.cos(-o.rotation),Math.sin(-o.rotation))},r.prototype.build=function(t,e){var i=this;return t||(t={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),I(iD,function(n){t[n]&&nD[n](i._cfg,i._local,i._shared,i._axisModel,i.group,i._transformGroup,i._api,e||{})}),this},r.innerTextLayout=function(t,e,i){var n=Gp(e-t),a,o;return Vo(n)?(o=i>0?"top":"bottom",a="center"):Vo(n-Tr)?(o=i>0?"bottom":"top",a="center"):(o="middle",n>0&&n<Tr?a=i>0?"right":"left":a=i>0?"left":"right"),{rotation:n,textAlign:a,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r})(),iD=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],nD={axisLine:function(r,t,e,i,n,a,o){var s=i.get(["axisLine","show"]);if(s==="auto"&&(s=!0,r.raw.axisLineAutoShow!=null&&(s=!!r.raw.axisLineAutoShow)),!!s){var l=i.axis.getExtent(),u=a.transform,f=[l[0],0],h=[l[1],0],c=f[0]>h[0];u&&(ve(f,f,u),ve(h,h,u));var v=k({lineCap:"round"},i.getModel(["axisLine","lineStyle"]).getLineStyle()),d={strokeContainThreshold:r.raw.strokeContainThreshold||5,silent:!0,z2:1,style:v};if(i.get(["axisLine","breakLine"])&&i.axis.scale.hasBreaks())qC().buildAxisBreakLine(i,n,a,d);else{var y=new wi(k({shape:{x1:f[0],y1:f[1],x2:h[0],y2:h[1]}},d));Qf(y.shape,y.style.lineWidth),y.anid="line",n.add(y)}var g=i.get(["axisLine","symbol"]);if(g!=null){var p=i.get(["axisLine","symbolSize"]);U(g)&&(g=[g,g]),(U(p)||gt(p))&&(p=[p,p]);var m=Ls(i.get(["axisLine","symbolOffset"])||0,p),_=p[0],S=p[1];I([{rotate:r.rotation+Math.PI/2,offset:m[0],r:0},{rotate:r.rotation-Math.PI/2,offset:m[1],r:Math.sqrt((f[0]-h[0])*(f[0]-h[0])+(f[1]-h[1])*(f[1]-h[1]))}],function(b,w){if(g[w]!=="none"&&g[w]!=null){var T=Ca(g[w],-_/2,-S/2,_,S,v.stroke,!0),C=b.r+b.offset,x=c?h:f;T.attr({rotation:b.rotate,x:x[0]+C*Math.cos(r.rotation),y:x[1]-C*Math.sin(r.rotation),silent:!0,z2:11}),n.add(T)}})}}},axisTickLabelEstimate:function(r,t,e,i,n,a,o,s){var l=Dd(t,n,s);l&&Cd(r,t,e,i,n,a,o,gd.estimate)},axisTickLabelDetermine:function(r,t,e,i,n,a,o,s){var l=Dd(t,n,s);l&&Cd(r,t,e,i,n,a,o,gd.determine);var u=lD(r,n,a,i);sD(r,t.labelLayoutList,u),uD(r,n,a,i,r.tickDirection)},axisName:function(r,t,e,i,n,a,o,s){var l=e.ensureRecord(i);t.nameEl&&(n.remove(t.nameEl),t.nameEl=l.nameLayout=l.nameLocation=null);var u=r.axisName;if(xh(u)){var f=r.nameLocation,h=r.nameDirection,c=i.getModel("nameTextStyle"),v=i.get("nameGap")||0,d=i.axis.getExtent(),y=i.axis.inverse?-1:1,g=new ct(0,0),p=new ct(0,0);f==="start"?(g.x=d[0]-y*v,p.x=-y):f==="end"?(g.x=d[1]+y*v,p.x=y):(g.x=(d[0]+d[1])/2,g.y=r.labelOffset+h*v,p.y=h);var m=$e();p.transform(Pf(m,m,r.rotation));var _=i.get("nameRotate");_!=null&&(_=_*Tr/180);var S,b;rs(f)?S=_i.innerTextLayout(r.rotation,_??r.rotation,h):(S=aD(r.rotation,f,_||0,d),b=r.raw.axisNameAvailableWidth,b!=null&&(b=Math.abs(b/Math.sin(S.rotation)),!isFinite(b)&&(b=null)));var w=c.getFont(),T=i.get("nameTruncate",!0)||{},C=T.ellipsis,x=rn(r.raw.nameTruncateMaxWidth,T.maxWidth,b),D=s.nameMarginLevel||0,L=new Kt({x:g.x,y:g.y,rotation:S.rotation,silent:_i.isLabelSilent(i),style:Mr(c,{text:u,font:w,overflow:"truncate",width:x,ellipsis:C,fill:c.getTextColor()||i.get(["axisLine","lineStyle","color"]),align:c.get("align")||S.textAlign,verticalAlign:c.get("verticalAlign")||S.textVerticalAlign}),z2:1});if(_s({el:L,componentModel:i,itemName:u}),L.__fullText=u,L.anid="name",i.get("triggerEvent")){var A=_i.makeAxisEventDataBase(i);A.targetType="axisName",A.name=u,ft(L).eventData=A}a.add(L),L.updateTransform(),t.nameEl=L;var M=l.nameLayout=Pr({label:L,priority:L.z2,defaultAttr:{ignore:L.ignore},marginDefault:rs(f)?jC[D]:QC[D]});if(l.nameLocation=f,n.add(L),L.decomposeTransform(),r.shouldNameMoveOverlap&&M){var P=e.ensureRecord(i);e.resolveAxisNameOverlap(r,e,i,M,p,P)}}}};function Cd(r,t,e,i,n,a,o,s){rm(t)||fD(r,t,n,s,i,o);var l=t.labelLayoutList;hD(r,i,l,a),r.rotation;var u=r.optionHideOverlap;oD(i,l,u),u&&bC(he(l,function(f){return f&&!f.label.ignore})),tD(r,e,i,l)}function aD(r,t,e,i){var n=Gp(e-r),a,o,s=i[0]>i[1],l=t==="start"&&!s||t!=="start"&&s;return Vo(n-Tr/2)?(o=l?"bottom":"top",a="center"):Vo(n-Tr*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",n<Tr*1.5&&n>Tr/2?a=l?"left":"right":a=l?"right":"left"),{rotation:n,textAlign:a,textVerticalAlign:o}}function oD(r,t,e){if(pC(r.axis))return;function i(s,l,u){var f=Pr(t[l]),h=Pr(t[u]);if(!(!f||!h)){if(s===!1||f.suggestIgnore){Vn(f.label);return}if(h.suggestIgnore){Vn(h.label);return}var c=.1;if(!e){var v=[0,0,0,0];f=md({marginForce:v},f),h=md({marginForce:v},h)}Th(f,h,null,{touchThreshold:c})&&Vn(s?h.label:f.label)}}var n=r.get(["axisLabel","showMinLabel"]),a=r.get(["axisLabel","showMaxLabel"]),o=t.length;i(n,0,1),i(a,o-1,o-2)}function sD(r,t,e){r.showMinorTicks||I(t,function(i){if(i&&i.label.ignore)for(var n=0;n<e.length;n++){var a=e[n],o=Jy(a),s=as(i.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.tickValue){Vn(a);return}}})}function Vn(r){r&&(r.ignore=!0)}function em(r,t,e,i,n){for(var a=[],o=[],s=[],l=0;l<r.length;l++){var u=r[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=e,t&&(ve(o,o,t),ve(s,s,t));var f=new wi({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});Qf(f.shape,f.style.lineWidth),f.anid=n+"_"+r[l].tickValue,a.push(f);var h=Jy(f);h.onBand=!!r[l].onBand,h.tickValue=r[l].tickValue}return a}function lD(r,t,e,i){var n=i.axis,a=i.getModel("axisTick"),o=a.get("show");if(o==="auto"&&(o=!0,r.raw.axisTickAutoShow!=null&&(o=!!r.raw.axisTickAutoShow)),!o||n.scale.isBlank())return[];for(var s=a.getModel("lineStyle"),l=r.tickDirection*a.get("length"),u=n.getTicksCoords(),f=em(u,e.transform,l,Ct(s.getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<f.length;h++)t.add(f[h]);return f}function uD(r,t,e,i,n){var a=i.axis,o=i.getModel("minorTick");if(!(!r.showMinorTicks||a.scale.isBlank())){var s=a.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=n*o.get("length"),f=Ct(l.getLineStyle(),Ct(i.getModel("axisTick").getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])})),h=0;h<s.length;h++)for(var c=em(s[h],e.transform,u,f,"minorticks_"+h),v=0;v<c.length;v++)t.add(c[v])}}function Dd(r,t,e){if(rm(r)){var i=r.axisLabelsCreationContext,n=i.out.noPxChangeTryDetermine;if(e.noPxChange){for(var a=!0,o=0;o<n.length;o++)a=a&&n[o]();if(a)return!1}n.length&&(t.remove(r.labelGroup),hf(r,null,null,null))}return!0}function fD(r,t,e,i,n,a){var o=n.axis,s=rn(r.raw.axisLabelShow,n.get(["axisLabel","show"])),l=new Et;e.add(l);var u=yC(i);if(!s||o.scale.isBlank()){hf(t,[],l,u);return}var f=n.getModel("axisLabel"),h=o.getViewLabels(u),c=(rn(r.raw.labelRotate,f.get("rotate"))||0)*Tr/180,v=_i.innerTextLayout(r.rotation,c,r.labelDirection),d=n.getCategories&&n.getCategories(!0),y=[],g=n.get("triggerEvent"),p=1/0,m=-1/0;I(h,function(S,b){var w,T=o.scale.type==="ordinal"?o.scale.getRawOrdinalNumber(S.tickValue):S.tickValue,C=S.formattedLabel,x=S.rawLabel,D=f;if(d&&d[T]){var L=d[T];Y(L)&&L.textStyle&&(D=new bt(L.textStyle,f,n.ecModel))}var A=D.getTextColor()||n.get(["axisLine","lineStyle","color"]),M=D.getShallow("align",!0)||v.textAlign,P=$(D.getShallow("alignMinLabel",!0),M),N=$(D.getShallow("alignMaxLabel",!0),M),H=D.getShallow("verticalAlign",!0)||D.getShallow("baseline",!0)||v.textVerticalAlign,tt=$(D.getShallow("verticalAlignMinLabel",!0),H),it=$(D.getShallow("verticalAlignMaxLabel",!0),H),nt=10+(((w=S.time)===null||w===void 0?void 0:w.level)||0);p=Math.min(p,nt),m=Math.max(m,nt);var rt=new Kt({x:0,y:0,rotation:0,silent:_i.isLabelSilent(n),z2:nt,style:Mr(D,{text:C,align:b===0?P:b===h.length-1?N:M,verticalAlign:b===0?tt:b===h.length-1?it:H,fill:at(A)?A(o.type==="category"?x:o.type==="value"?T+"":T,b):A})});rt.anid="label_"+T;var Tt=as(rt);if(Tt.break=S.break,Tt.tickValue=T,Tt.layoutRotation=v.rotation,_s({el:rt,componentModel:n,itemName:C,formatterParamsExtra:{isTruncated:function(){return rt.isTruncated},value:x,tickIndex:b}}),g){var st=_i.makeAxisEventDataBase(n);st.targetType="axisLabel",st.value=x,st.tickIndex=b,S.break&&(st.break={start:S.break.parsedBreak.vmin,end:S.break.parsedBreak.vmax}),o.type==="category"&&(st.dataIndex=T),ft(rt).eventData=st,S.break&&vD(n,a,rt,S.break)}y.push(rt),l.add(rt)});var _=ot(y,function(S){return{label:S,priority:as(S).break?S.z2+(m-p+1):S.z2,defaultAttr:{ignore:S.ignore}}});hf(t,_,l,u)}function rm(r){return!!r.labelLayoutList}function hf(r,t,e,i){r.labelLayoutList=t,r.labelGroup=e,r.axisLabelsCreationContext=i}function hD(r,t,e,i){var n=t.get(["axisLabel","margin"]);I(e,function(a,o){var s=Pr(a);if(s){var l=s.label,u=as(l);s.suggestIgnore=l.ignore,l.ignore=!1,Pu(ar,cD),ar.x=t.axis.dataToCoord(u.tickValue),ar.y=r.labelOffset+r.labelDirection*n,ar.rotation=u.layoutRotation,i.add(ar),ar.updateTransform(),i.remove(ar),ar.decomposeTransform(),Pu(l,ar),l.markRedraw(),ns(s,!0),Pr(s)}})}var ar=new Vt,cD=new Vt;function xh(r){return!!r}function vD(r,t,e,i){e.on("click",function(n){var a={type:KC,breaks:[{start:i.parsedBreak.breakOption.start,end:i.parsedBreak.breakOption.end}]};a[r.axis.dim+"AxisIndex"]=r.componentIndex,t.dispatchAction(a)})}function Id(r,t,e){e=e||{};var i=t.axis,n={},a=i.getAxesOnZeroOf()[0],o=i.position,s=a?"onZero":o,l=i.dim,u=[r.x,r.x+r.width,r.y,r.y+r.height],f={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,c=l==="x"?[u[2]-h,u[3]+h]:[u[0]-h,u[1]+h];if(a){var v=a.toGlobalCoord(a.dataToCoord(0));c[f.onZero]=Math.max(Math.min(v,c[1]),c[0])}n.position=[l==="y"?c[f[s]]:u[0],l==="x"?c[f[s]]:u[3]],n.rotation=Math.PI/2*(l==="x"?0:1);var d={top:-1,bottom:1,left:-1,right:1};n.labelDirection=n.tickDirection=n.nameDirection=d[o],n.labelOffset=a?c[f[o]]-c[f.onZero]:0,t.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),rn(e.labelInside,t.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var y=t.get(["axisLabel","rotate"]);return n.labelRotate=s==="top"?-y:y,n.z2=1,n}function dD(r,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return pD(e,r,t),e.seriesInvolved&&yD(e,r),e}function pD(r,t,e){var i=t.getComponent("tooltip"),n=t.getComponent("axisPointer"),a=n.get("link",!0)||[],o=[];I(e.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=ya(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var f=s.model,h=f.getModel("tooltip",i);if(I(s.getAxes(),Pt(y,!1,null)),s.getTooltipAxes&&i&&h.get("show")){var c=h.get("trigger")==="axis",v=h.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(h.get(["axisPointer","axis"]));(c||v)&&I(d.baseAxes,Pt(y,v?"cross":!0,c)),v&&I(d.otherAxes,Pt(y,"cross",!1))}function y(g,p,m){var _=m.model.getModel("axisPointer",n),S=_.get("show");if(!(!S||S==="auto"&&!g&&!cf(_))){p==null&&(p=_.get("triggerTooltip")),_=g?gD(m,h,n,t,g,p):_;var b=_.get("snap"),w=_.get("triggerEmphasis"),T=ya(m.model),C=p||b||m.type==="category",x=r.axesInfo[T]={key:T,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:p,triggerEmphasis:w,involveSeries:C,snap:b,useHandle:cf(_),seriesModels:[],linkGroup:null};u[T]=x,r.seriesInvolved=r.seriesInvolved||C;var D=mD(a,m);if(D!=null){var L=o[D]||(o[D]={axesInfo:{}});L.axesInfo[T]=x,L.mapper=a[D].mapper,x.linkGroup=L}}}})}function gD(r,t,e,i,n,a){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};I(s,function(c){l[c]=et(o.get(c))}),l.snap=r.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),n==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!a){var h=l.lineStyle=o.get("crossStyle");h&&Ct(u,h.textStyle)}}return r.model.getModel("axisPointer",new bt(l,e,i))}function yD(r,t){t.eachSeries(function(e){var i=e.coordinateSystem,n=e.get(["tooltip","trigger"],!0),a=e.get(["tooltip","show"],!0);!i||!i.model||n==="none"||n===!1||n==="item"||a===!1||e.get(["axisPointer","show"],!0)===!1||I(r.coordSysAxesInfo[ya(i.model)],function(o){var s=o.axis;i.getAxis(s.dim)===s&&(o.seriesModels.push(e),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=e.getData().count())})})}function mD(r,t){for(var e=t.model,i=t.dim,n=0;n<r.length;n++){var a=r[n]||{};if($l(a[i+"AxisId"],e.id)||$l(a[i+"AxisIndex"],e.componentIndex)||$l(a[i+"AxisName"],e.name))return n}}function $l(r,t){return r==="all"||V(r)&&pt(r,t)>=0||r===t}function _D(r){var t=Ch(r);if(t){var e=t.axisPointerModel,i=t.axis.scale,n=e.option,a=e.get("status"),o=e.get("value");o!=null&&(o=i.parse(o));var s=cf(e);a==null&&(n.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),n.value=o,s&&(n.status=t.axis.scale.isBlank()?"hide":"show")}}function Ch(r){var t=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[ya(r)]}function SD(r){var t=Ch(r);return t&&t.axisPointerModel}function cf(r){return!!r.get(["handle","show"])}function ya(r){return r.type+"||"+r.id}var Ld={},wD=(function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,i,n,a){this.axisPointerClass&&_D(e),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,n,!0)},t.prototype.updateAxisPointer=function(e,i,n,a){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,i){var n=this._axisPointer;n&&n.remove(i)},t.prototype.dispose=function(e,i){this._disposeAxisPointer(i),r.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,i,n){var a=t.getAxisPointerClass(this.axisPointerClass);if(a){var o=SD(e);o?(this._axisPointer||(this._axisPointer=new a)).render(e,o,i,n):this._disposeAxisPointer(i)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,i){Ld[e]=i},t.getAxisPointerClass=function(e){return e&&Ld[e]},t.type="axis",t})(Je),bD=mt();function Md(r,t){return!!bD(r)[t]}Ti({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Ht);var TD={axisPointer:1,tooltip:1,brush:1};function xD(r,t,e){var i=t.getComponentByElement(r.topTarget);if(!i||i===e||TD.hasOwnProperty(i.mainType))return!1;var n=i.coordinateSystem;if(!n||n.model===e)return!1;var a=ha(i),o=ha(e);return!((a.zlevel-o.zlevel||a.z-o.z)<=0)}var CD=(function(r){G(t,r);function t(e){var i=r.call(this)||this;i._zr=e;var n=ht(i._mousedownHandler,i),a=ht(i._mousemoveHandler,i),o=ht(i._mouseupHandler,i),s=ht(i._mousewheelHandler,i),l=ht(i._pinchHandler,i);return i.enable=function(u,f){var h=f.zInfo,c=ha(h.component),v=c.z,d=c.zlevel,y={component:h.component,z:v,zlevel:d,z2:$(h.z2,-1/0)},g=k({},f.triggerInfo);this._opt=Ct(k({},f),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:y,triggerInfo:g}),u==null&&(u=!0),(!this._enabled||this._controlType!==u)&&(this._enabled=!0,this.disable(),(u===!0||u==="move"||u==="pan")&&(Pn(e,"mousedown",n,y),Pn(e,"mousemove",a,y),Pn(e,"mouseup",o,y)),(u===!0||u==="scale"||u==="zoom")&&(Pn(e,"mousewheel",s,y),Pn(e,"pinch",l,y)))},i.disable=function(){this._enabled=!1,Rn(e,"mousedown",n),Rn(e,"mousemove",a),Rn(e,"mouseup",o),Rn(e,"mousewheel",s),Rn(e,"pinch",l)},i}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype._checkPointer=function(e,i,n){var a=this._opt,o=a.zInfoParsed;if(xD(e,a.api,o.component))return!1;var s=a.triggerInfo,l=s.roamTrigger,u=!1;return l==="global"&&(u=!0),u||(u=s.isInSelf(e,i,n)),u&&s.isInClip&&!s.isInClip(e,i,n)&&(u=!1),u},t.prototype._decideCursorStyle=function(e,i,n,a){var o=e.target;if(!o&&this._checkPointer(e,i,n))return"grab";if(a)return o&&o.cursor||"default"},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!(Vh(e)||An(e))){for(var i=e.target;i;){if(i.draggable)return;i=i.__hostTarget||i.parent}var n=e.offsetX,a=e.offsetY;this._checkPointer(e,n,a)&&(this._x=n,this._y=a,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){var i=this._zr;if(!(e.gestureEvent==="pinch"||Md(i,"globalPan")||An(e))){var n=e.offsetX,a=e.offsetY;if(!this._dragging||!Ro("moveOnMouseMove",e,this._opt)){var o=this._decideCursorStyle(e,n,a,!1);o&&i.setCursorStyle(o);return}i.setCursorStyle("grabbing");var s=this._x,l=this._y,u=n-s,f=a-l;this._x=n,this._y=a,this._opt.preventDefaultMouseMove&&Oo(e.event),e.__ecRoamConsumed=!0,Ad(this,"pan","moveOnMouseMove",e,{dx:u,dy:f,oldX:s,oldY:l,newX:n,newY:a,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){if(!An(e)){var i=this._zr;if(!Vh(e)){this._dragging=!1;var n=this._decideCursorStyle(e,e.offsetX,e.offsetY,!0);n&&i.setCursorStyle(n)}}},t.prototype._mousewheelHandler=function(e){if(!An(e)){var i=Ro("zoomOnMouseWheel",e,this._opt),n=Ro("moveOnMouseWheel",e,this._opt),a=e.wheelDelta,o=Math.abs(a),s=e.offsetX,l=e.offsetY;if(!(a===0||!i&&!n)){if(i){var u=o>3?1.4:o>1?1.2:1.1,f=a>0?u:1/u;this._checkTriggerMoveZoom(this,"zoom","zoomOnMouseWheel",e,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(n){var h=Math.abs(a),c=(a>0?1:-1)*(h>3?.4:h>1?.15:.05);this._checkTriggerMoveZoom(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:c,originX:s,originY:l,isAvailableBehavior:null})}}}},t.prototype._pinchHandler=function(e){if(!(Md(this._zr,"globalPan")||An(e))){var i=e.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,"zoom",null,e,{scale:i,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t.prototype._checkTriggerMoveZoom=function(e,i,n,a,o){e._checkPointer(a,o.originX,o.originY)&&(Oo(a.event),a.__ecRoamConsumed=!0,Ad(e,i,n,a,o))},t})(ke);function An(r){return r.__ecRoamConsumed}var DD=mt();function As(r){var t=DD(r);return t.roam=t.roam||{},t.uniform=t.uniform||{},t}function Pn(r,t,e,i){for(var n=As(r),a=n.roam,o=a[t]=a[t]||[],s=0;s<o.length;s++){var l=o[s].zInfoParsed;if((l.zlevel-i.zlevel||l.z-i.z||l.z2-i.z2)<=0)break}o.splice(s,0,{listener:e,zInfoParsed:i}),ID(r,t)}function Rn(r,t,e){for(var i=As(r),n=i.roam[t]||[],a=0;a<n.length;a++)if(n[a].listener===e){n.splice(a,1),n.length||LD(r,t);return}}function ID(r,t){var e=As(r);e.uniform[t]||r.on(t,e.uniform[t]=function(i){var n=e.roam[t];if(n)for(var a=0;a<n.length;a++)n[a].listener(i)})}function LD(r,t){var e=As(r),i=e.uniform;i[t]&&(r.off(t,i[t]),i[t]=null)}function Ad(r,t,e,i,n){n.isAvailableBehavior=ht(Ro,null,e,i),r.trigger(t,n)}function Ro(r,t,e){var i=e[r];return!r||i&&(!U(i)||t.event[i+"Key"])}function MD(r,t,e){var i=r.target;i.x+=t,i.y+=e,i.dirty()}function AD(r,t,e,i){var n=r.target,a=r.zoomLimit,o=r.zoom=r.zoom||1;o*=t,o=Dh(o,a);var s=o/r.zoom;r.zoom=o,im(n,e,i,s),n.dirty()}function Pd(r,t){return r.pointToProjected?r.pointToProjected(t):r.pointToData(t)}function PD(r,t,e){var i=r.getZoom(),n=r.getCenter(),a=t.zoom,o=r.projectedToPoint?r.projectedToPoint(n):r.dataToPoint(n);return t.dx!=null&&t.dy!=null&&(o[0]-=t.dx,o[1]-=t.dy,r.setCenter(Pd(r,o))),a!=null&&(a=Dh(i*a,e)/i,im(r,t.originX,t.originY,a),r.updateTransform(),r.setCenter(Pd(r,o)),r.setZoom(a*i)),{center:r.getCenter(),zoom:r.getZoom()}}function im(r,t,e,i){r.x-=(t-r.x)*(i-1),r.y-=(e-r.y)*(i-1),r.scaleX*=i,r.scaleY*=i}function Dh(r,t){if(t){var e=t.min||0,i=t.max||1/0;r=Math.max(Math.min(i,r),e)}return r}var Rd=ve,nm=(function(r){G(t,r);function t(e,i){var n=r.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new fi,n._rawTransformable=new fi,n.name=e,n._opt=i,n}return t.prototype.setBoundingRect=function(e,i,n,a){return this._rect=new J(e,i,n,a),this._updateCenterAndZoom(),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(e,i,n,a){this._transformTo(e,i,n,a),this._viewRect=new J(e,i,n,a)},t.prototype._transformTo=function(e,i,n,a){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new J(e,i,n,a));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},t.prototype.setCenter=function(e){var i=this._opt;i&&i.api&&i.ecModel&&i.ecModel.getShallow("legacyViewCoordSysCenterBase")&&e&&(e=[re(e[0],i.api.getWidth()),re(e[1],i.api.getWidth())]),this._centerOption=et(e),this._updateCenterAndZoom()},t.prototype.setZoom=function(e){this._zoom=Dh(e||1,this.zoomLimit),this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var e=this.getBoundingRect(),i=e.x+e.width/2,n=e.y+e.height/2;return[i,n]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var e=this._centerOption,i=this._rect;e&&i&&(this._center=[re(e[0],i.width,i.x),re(e[1],i.height,i.y)]);var n=this._rawTransformable.getLocalTransform(),a=this._roamTransformable,o=this.getDefaultCenter(),s=this.getCenter(),l=this.getZoom();s=ve([],s,n),o=ve([],o,n),a.originX=s[0],a.originY=s[1],a.x=o[0]-s[0],a.y=o[1]-s[1],a.scaleX=a.scaleY=l,this._updateTransform()},t.prototype._updateTransform=function(){var e=this._roamTransformable,i=this._rawTransformable;i.parent=e,e.updateTransform(),i.updateTransform(),Af(this.transform||(this.transform=[]),i.transform||$e()),this._rawTransform=i.getLocalTransform(),this.invTransform=this.invTransform||[],Sa(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var e=this._rawTransformable,i=this._roamTransformable,n=new fi;return n.transform=i.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:e.x,y:e.y,scaleX:e.scaleX,scaleY:e.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},t.prototype.dataToPoint=function(e,i,n){var a=i?this._rawTransform:this.transform;return n=n||[],a?Rd(n,e,a):Wt(n,e)},t.prototype.pointToData=function(e,i,n){n=n||[];var a=this.invTransform;return a?Rd(n,e,a):(n[0]=e[0],n[1]=e[1],n)},t.prototype.convertToPixel=function(e,i,n){var a=Ed(i);return a===this?a.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,i,n){var a=Ed(i);return a===this?a.pointToData(n):null},t.prototype.containPoint=function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])},t.dimensions=["x","y"],t})(fi);function Ed(r){var t=r.seriesModel;return t?t.coordinateSystem:null}var Ce=mt();function RD(r){var t=r.mainData,e=r.datas;e||(e={main:t},r.datasAttr={main:"data"}),r.datas=r.mainData=null,am(t,e,r),I(e,function(i){I(t.TRANSFERABLE_METHODS,function(n){i.wrapMethod(n,Pt(ED,r))})}),t.wrapMethod("cloneShallow",Pt(OD,r)),I(t.CHANGABLE_METHODS,function(i){t.wrapMethod(i,Pt(kD,r))}),je(e[t.dataType]===t)}function ED(r,t){if(zD(this)){var e=k({},Ce(this).datas);e[this.dataType]=t,am(t,e,r)}else Ih(t,this.dataType,Ce(this).mainData,r);return t}function kD(r,t){return r.struct&&r.struct.update(),t}function OD(r,t){return I(Ce(t).datas,function(e,i){e!==t&&Ih(e.cloneShallow(),i,t,r)}),t}function BD(r){var t=Ce(this).mainData;return r==null||t==null?t:Ce(t).datas[r]}function ND(){var r=Ce(this).mainData;return r==null?[{data:r}]:ot(Lt(Ce(r).datas),function(t){return{type:t,data:Ce(r).datas[t]}})}function zD(r){return Ce(r).mainData===r}function am(r,t,e){Ce(r).datas={},I(t,function(i,n){Ih(i,n,r,e)})}function Ih(r,t,e,i){Ce(e).datas[t]=r,Ce(r).mainData=e,r.dataType=t,i.struct&&(r[i.structAttr]=i.struct,i.struct[i.datasAttr[t]]=r),r.getLinkedData=BD,r.getLinkedDataAll=ND}function FD(r){var t=r.findComponents({mainType:"legend"});!t||!t.length||r.eachSeriesByType("graph",function(e){var i=e.getCategoriesData(),n=e.getGraph(),a=n.data,o=i.mapArray(i.getName);a.filterSelf(function(s){var l=a.getItemModel(s),u=l.getShallow("category");if(u!=null){gt(u)&&(u=o[u]);for(var f=0;f<t.length;f++)if(!t[f].isSelected(u))return!1}return!0})})}function HD(r){var t={};r.eachSeriesByType("graph",function(e){var i=e.getCategoriesData(),n=e.getData(),a={};i.each(function(o){var s=i.getName(o);a["ec-"+s]=o;var l=i.getItemModel(o),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=e.getColorFromPalette(s,t)),i.setItemVisual(o,"style",u);for(var f=["symbol","symbolSize","symbolKeepAspect"],h=0;h<f.length;h++){var c=l.getShallow(f[h],!0);c!=null&&i.setItemVisual(o,f[h],c)}}),i.count()&&n.each(function(o){var s=n.getItemModel(o),l=s.getShallow("category");if(l!=null){U(l)&&(l=a["ec-"+l]);var u=i.getItemVisual(l,"style"),f=n.ensureUniqueItemVisual(o,"style");k(f,u);for(var h=["symbol","symbolSize","symbolKeepAspect"],c=0;c<h.length;c++)n.setItemVisual(o,h[c],i.getItemVisual(l,h[c]))}})})}function vo(r){return r instanceof Array||(r=[r,r]),r}function VD(r){r.eachSeriesByType("graph",function(t){var e=t.getGraph(),i=t.getEdgeData(),n=vo(t.get("edgeSymbol")),a=vo(t.get("edgeSymbolSize"));i.setVisual("fromSymbol",n&&n[0]),i.setVisual("toSymbol",n&&n[1]),i.setVisual("fromSymbolSize",a&&a[0]),i.setVisual("toSymbolSize",a&&a[1]),i.setVisual("style",t.getModel("lineStyle").getLineStyle()),i.each(function(o){var s=i.getItemModel(o),l=e.getEdgeByIndex(o),u=vo(s.getShallow("symbol",!0)),f=vo(s.getShallow("symbolSize",!0)),h=s.getModel("lineStyle").getLineStyle(),c=i.ensureUniqueItemVisual(o,"style");switch(k(c,h),c.stroke){case"source":{var v=l.node1.getVisual("style");c.stroke=v&&v.fill;break}case"target":{var v=l.node2.getVisual("style");c.stroke=v&&v.fill;break}}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),f[0]&&l.setVisual("fromSymbolSize",f[0]),f[1]&&l.setVisual("toSymbolSize",f[1])})})}var vf="-->",Ps=function(r){return r.get("autoCurveness")||null},om=function(r,t){var e=Ps(r),i=20,n=[];if(gt(e))i=e;else if(V(e)){r.__curvenessList=e;return}t>i&&(i=t);var a=i%2?i+2:i+3;n=[];for(var o=0;o<a;o++)n.push((o%2?o+1:o)/10*(o%2?-1:1));r.__curvenessList=n},ma=function(r,t,e){var i=[r.id,r.dataIndex].join("."),n=[t.id,t.dataIndex].join(".");return[e.uid,i,n].join(vf)},sm=function(r){var t=r.split(vf);return[t[0],t[2],t[1]].join(vf)},GD=function(r,t){var e=ma(r.node1,r.node2,t);return t.__edgeMap[e]},UD=function(r,t){var e=df(ma(r.node1,r.node2,t),t),i=df(ma(r.node2,r.node1,t),t);return e+i},df=function(r,t){var e=t.__edgeMap;return e[r]?e[r].length:0};function YD(r){Ps(r)&&(r.__curvenessList=[],r.__edgeMap={},om(r))}function WD(r,t,e,i){if(Ps(e)){var n=ma(r,t,e),a=e.__edgeMap,o=a[sm(n)];a[n]&&!o?a[n].isForward=!0:o&&a[n]&&(o.isForward=!0,a[n].isForward=!1),a[n]=a[n]||[],a[n].push(i)}}function Lh(r,t,e,i){var n=Ps(t),a=V(n);if(!n)return null;var o=GD(r,t);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===e){s=l;break}var u=UD(r,t);om(t,u),r.lineStyle=r.lineStyle||{};var f=ma(r.node1,r.node2,t),h=t.__curvenessList,c=a||u%2?0:1;if(o.isForward)return h[c+s];var v=sm(f),d=df(v,t),y=h[s+d+c];return i?a?n&&n[0]===0?(d+c)%2?y:-y:((d%2?0:1)+c)%2?y:-y:(d+c)%2?y:-y:h[s+d+c]}function lm(r){var t=r.coordinateSystem;if(!(t&&t.type!=="view")){var e=r.getGraph();e.eachNode(function(i){var n=i.getModel();i.setLayout([+n.get("x"),+n.get("y")])}),Mh(e,r)}}function Mh(r,t){r.eachEdge(function(e,i){var n=fr(e.getModel().get(["lineStyle","curveness"]),-Lh(e,t,i,!0),0),a=hr(e.node1.getLayout()),o=hr(e.node2.getLayout()),s=[a,o];+n&&s.push([(a[0]+o[0])/2-(a[1]-o[1])*n,(a[1]+o[1])/2-(o[0]-a[0])*n]),e.setLayout(s)})}function XD(r,t){r.eachSeriesByType("graph",function(e){var i=e.get("layout"),n=e.coordinateSystem;if(n&&n.type!=="view"){var a=e.getData(),o=[];I(n.dimensions,function(c){o=o.concat(a.mapDimensionsAll(c))});for(var s=0;s<a.count();s++){for(var l=[],u=!1,f=0;f<o.length;f++){var h=a.get(o[f],s);isNaN(h)||(u=!0),l.push(h)}u?a.setItemLayout(s,n.dataToPoint(l)):a.setItemLayout(s,[NaN,NaN])}Mh(a.graph,e)}else(!i||i==="none")&&lm(e)})}function Gn(r){var t=r.coordinateSystem;if(t.type!=="view")return 1;var e=r.option.nodeScaleRatio,i=t.scaleX,n=t.getZoom(),a=(n-1)*e+1;return a/i}function Un(r){var t=r.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var kd=Math.PI,Zl=[];function Ah(r,t,e,i){var n=r.coordinateSystem;if(!(n&&n.type!=="view")){var a=n.getBoundingRect(),o=r.getData(),s=o.graph,l=a.width/2+a.x,u=a.height/2+a.y,f=Math.min(a.width,a.height)/2,h=o.count();if(o.setLayout({cx:l,cy:u}),!!h){if(e){var c=n.pointToData(i),v=c[0],d=c[1],y=[v-l,d-u];cn(y,y),mo(y,y,f),e.setLayout([l+y[0],u+y[1]],!0);var g=r.get(["circular","rotateLabel"]);um(e,g,l,u)}$D[t](r,s,o,f,l,u,h),s.eachEdge(function(p,m){var _=fr(p.getModel().get(["lineStyle","curveness"]),Lh(p,r,m),0),S=hr(p.node1.getLayout()),b=hr(p.node2.getLayout()),w,T=(S[0]+b[0])/2,C=(S[1]+b[1])/2;+_&&(_*=3,w=[l*_+T*(1-_),u*_+C*(1-_)]),p.setLayout([S,b,w])})}}}var $D={value:function(r,t,e,i,n,a,o){var s=0,l=e.getSum("value"),u=Math.PI*2/(l||o);t.eachNode(function(f){var h=f.getValue("value"),c=u*(l?h:1)/2;s+=c,f.setLayout([i*Math.cos(s)+n,i*Math.sin(s)+a]),s+=c})},symbolSize:function(r,t,e,i,n,a,o){var s=0;Zl.length=o;var l=Gn(r);t.eachNode(function(h){var c=Un(h);isNaN(c)&&(c=2),c<0&&(c=0),c*=l;var v=Math.asin(c/2/i);isNaN(v)&&(v=kd/2),Zl[h.dataIndex]=v,s+=v*2});var u=(2*kd-s)/o/2,f=0;t.eachNode(function(h){var c=u+Zl[h.dataIndex];f+=c,(!h.getLayout()||!h.getLayout().fixed)&&h.setLayout([i*Math.cos(f)+n,i*Math.sin(f)+a]),f+=c})}};function um(r,t,e,i){var n=r.getGraphicEl();if(n){var a=r.getModel(),o=a.get(["label","rotate"])||0,s=n.getSymbolPath();if(t){var l=r.getLayout(),u=Math.atan2(l[1]-i,l[0]-e);u<0&&(u=Math.PI*2+u);var f=l[0]<e;f&&(u=u-Math.PI);var h=f?"left":"right";s.setTextConfig({rotation:-u,position:h,origin:"center"});var c=s.ensureState("emphasis");k(c.textConfig||(c.textConfig={}),{position:h})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function ZD(r){r.eachSeriesByType("graph",function(t){t.get("layout")==="circular"&&Ah(t,"symbolSize")})}var Ui=hu;function qD(r,t,e){for(var i=r,n=t,a=e.rect,o=a.width,s=a.height,l=[a.x+o/2,a.y+s/2],u=e.gravity==null?.1:e.gravity,f=0;f<i.length;f++){var h=i[f];h.p||(h.p=Si(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),h.pp=hr(h.p),h.edges=null}var c=e.friction==null?.6:e.friction,v=c,d,y;return{warmUp:function(){v=c*.8},setFixed:function(g){i[g].fixed=!0},setUnfixed:function(g){i[g].fixed=!1},beforeStep:function(g){d=g},afterStep:function(g){y=g},step:function(g){d&&d(i,n);for(var p=[],m=i.length,_=0;_<n.length;_++){var S=n[_];if(!S.ignoreForceLayout){var b=S.n1,w=S.n2;li(p,w.p,b.p);var T=cu(p)-S.d,C=w.w/(b.w+w.w);isNaN(C)&&(C=0),cn(p,p),!b.fixed&&Ui(b.p,b.p,p,C*T*v),!w.fixed&&Ui(w.p,w.p,p,-(1-C)*T*v)}}for(var _=0;_<m;_++){var x=i[_];x.fixed||(li(p,l,x.p),Ui(x.p,x.p,p,u*v))}for(var _=0;_<m;_++)for(var b=i[_],D=_+1;D<m;D++){var w=i[D];li(p,w.p,b.p);var T=cu(p);T===0&&(c_(p,Math.random()-.5,Math.random()-.5),T=1);var L=(b.rep+w.rep)/T/T;!b.fixed&&Ui(b.pp,b.pp,p,L),!w.fixed&&Ui(w.pp,w.pp,p,-L)}for(var A=[],_=0;_<m;_++){var x=i[_];x.fixed||(li(A,x.p,x.pp),Ui(x.p,x.p,A,v),Wt(x.pp,x.p))}v=v*.992;var M=v<.01;y&&y(i,n,M),g&&g(M)}}}function KD(r){r.eachSeriesByType("graph",function(t){var e=t.coordinateSystem;if(!(e&&e.type!=="view"))if(t.get("layout")==="force"){var i=t.preservedPoints||{},n=t.getGraph(),a=n.data,o=n.edgeData,s=t.getModel("force"),l=s.get("initLayout");t.preservedPoints?a.each(function(_){var S=a.getId(_);a.setItemLayout(_,i[S]||[NaN,NaN])}):!l||l==="none"?lm(t):l==="circular"&&Ah(t,"value");var u=a.getDataExtent("value"),f=o.getDataExtent("value"),h=s.get("repulsion"),c=s.get("edgeLength"),v=V(h)?h:[h,h],d=V(c)?c:[c,c];d=[d[1],d[0]];var y=a.mapArray("value",function(_,S){var b=a.getItemLayout(S),w=gc(_,u,v);return isNaN(w)&&(w=(v[0]+v[1])/2),{w,rep:w,fixed:a.getItemModel(S).get("fixed"),p:!b||isNaN(b[0])||isNaN(b[1])?null:b}}),g=o.mapArray("value",function(_,S){var b=n.getEdgeByIndex(S),w=gc(_,f,d);isNaN(w)&&(w=(d[0]+d[1])/2);var T=b.getModel(),C=fr(b.getModel().get(["lineStyle","curveness"]),-Lh(b,t,S,!0),0);return{n1:y[b.node1.dataIndex],n2:y[b.node2.dataIndex],d:w,curveness:C,ignoreForceLayout:T.get("ignoreForceLayout")}}),p=e.getBoundingRect(),m=qD(y,g,{rect:p,gravity:s.get("gravity"),friction:s.get("friction")});m.beforeStep(function(_,S){for(var b=0,w=_.length;b<w;b++)_[b].fixed&&Wt(_[b].p,n.getNodeByIndex(b).getLayout())}),m.afterStep(function(_,S,b){for(var w=0,T=_.length;w<T;w++)_[w].fixed||n.getNodeByIndex(w).setLayout(_[w].p),i[a.getId(w)]=_[w].p;for(var w=0,T=S.length;w<T;w++){var C=S[w],x=n.getEdgeByIndex(w),D=C.n1.p,L=C.n2.p,A=x.getLayout();A=A?A.slice():[],A[0]=A[0]||[],A[1]=A[1]||[],Wt(A[0],D),Wt(A[1],L),+C.curveness&&(A[2]=[(D[0]+L[0])/2-(D[1]-L[1])*C.curveness,(D[1]+L[1])/2-(L[0]-D[0])*C.curveness]),x.setLayout(A)}}),t.forceLayout=m,t.preservedPoints=i,m.step()}else t.forceLayout=null})}function jD(r,t,e){var i=sh(r,t),n=k(r.getBoxLayoutParams(),{aspect:e}),a=sn(n,i.refContainer);return Qw(r,a,e)}function QD(r,t){var e=[];return r.eachSeriesByType("graph",function(i){qw({targetModel:i,coordSysType:"view",coordSysProvider:n});function n(){var a=i.getData(),o=a.mapArray(function(d){var y=a.getItemModel(d);return[+y.get("x"),+y.get("y")]}),s=[],l=[];w1(o,s,l),l[0]-s[0]===0&&(l[0]+=1,s[0]-=1),l[1]-s[1]===0&&(l[1]+=1,s[1]-=1);var u=(l[0]-s[0])/(l[1]-s[1]),f=jD(i,t,u);isNaN(u)&&(s=[f.x,f.y],l=[f.x+f.width,f.y+f.height]);var h=l[0]-s[0],c=l[1]-s[1],v=new nm(null,{api:t,ecModel:r});return v.zoomLimit=i.get("scaleLimit"),v.setBoundingRect(s[0],s[1],h,c),v.setViewRect(f.x,f.y,f.width,f.height),v.setCenter(i.get("center")),v.setZoom(i.get("zoom")),e.push(v),v}}),e}var Od=wi.prototype,ql=ys.prototype,fm=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r})();(function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t})(fm);function Kl(r){return isNaN(+r.cpx1)||isNaN(+r.cpy1)}var hm=(function(r){G(t,r);function t(e){var i=r.call(this,e)||this;return i.type="ec-line",i}return t.prototype.getDefaultStyle=function(){return{stroke:X.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new fm},t.prototype.buildPath=function(e,i){Kl(i)?Od.buildPath.call(this,e,i):ql.buildPath.call(this,e,i)},t.prototype.pointAt=function(e){return Kl(this.shape)?Od.pointAt.call(this,e):ql.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var i=this.shape,n=Kl(i)?[i.x2-i.x1,i.y2-i.y1]:ql.tangentAt.call(this,e);return cn(n,n)},t})(yt),jl=["fromSymbol","toSymbol"];function Bd(r){return"_"+r+"Type"}function Nd(r,t,e){var i=t.getItemVisual(e,r);if(!i||i==="none")return i;var n=t.getItemVisual(e,r+"Size"),a=t.getItemVisual(e,r+"Rotate"),o=t.getItemVisual(e,r+"Offset"),s=t.getItemVisual(e,r+"KeepAspect"),l=gh(n),u=Ls(o||0,l);return i+l+u+(a||"")+(s||"")}function zd(r,t,e){var i=t.getItemVisual(e,r);if(!(!i||i==="none")){var n=t.getItemVisual(e,r+"Size"),a=t.getItemVisual(e,r+"Rotate"),o=t.getItemVisual(e,r+"Offset"),s=t.getItemVisual(e,r+"KeepAspect"),l=gh(n),u=Ls(o||0,l),f=Ca(i,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return f.__specifiedRotation=a==null||isNaN(a)?void 0:+a*Math.PI/180||0,f.name=r,f}}function JD(r){var t=new hm({name:"line",subPixelOptimize:!0});return pf(t.shape,r),t}function pf(r,t){r.x1=t[0][0],r.y1=t[0][1],r.x2=t[1][0],r.y2=t[1][1],r.percent=1;var e=t[2];e?(r.cpx1=e[0],r.cpy1=e[1]):(r.cpx1=NaN,r.cpy1=NaN)}var t2=(function(r){G(t,r);function t(e,i,n){var a=r.call(this)||this;return a._createLine(e,i,n),a}return t.prototype._createLine=function(e,i,n){var a=e.hostModel,o=e.getItemLayout(i),s=e.getItemVisual(i,"z2"),l=JD(o);l.shape.percent=0,Kf(l,{z2:$(s,0),shape:{percent:1}},a,i),this.add(l),I(jl,function(u){var f=zd(u,e,i);this.add(f),this[Bd(u)]=Nd(u,e,i)},this),this._updateCommonStl(e,i,n)},t.prototype.updateData=function(e,i,n){var a=e.hostModel,o=this.childOfName("line"),s=e.getItemLayout(i),l={shape:{}};pf(l.shape,s),Er(o,l,a,i),I(jl,function(u){var f=Nd(u,e,i),h=Bd(u);if(this[h]!==f){this.remove(this.childOfName(u));var c=zd(u,e,i);this.add(c)}this[h]=f},this),this._updateCommonStl(e,i,n)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(e,i,n){var a=e.hostModel,o=this.childOfName("line"),s=n&&n.emphasisLineStyle,l=n&&n.blurLineStyle,u=n&&n.selectLineStyle,f=n&&n.labelStatesModels,h=n&&n.emphasisDisabled,c=n&&n.focus,v=n&&n.blurScope;if(!n||e.hasItemOption){var d=e.getItemModel(i),y=d.getModel("emphasis");s=y.getModel("lineStyle").getLineStyle(),l=d.getModel(["blur","lineStyle"]).getLineStyle(),u=d.getModel(["select","lineStyle"]).getLineStyle(),h=y.get("disabled"),c=y.get("focus"),v=y.get("blurScope"),f=bs(d)}var g=e.getItemVisual(i,"style"),p=g.stroke;o.useStyle(g),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,I(jl,function(w){var T=this.childOfName(w);if(T){T.setColor(p),T.style.opacity=g.opacity;for(var C=0;C<Qe.length;C++){var x=Qe[C],D=o.getState(x);if(D){var L=D.style||{},A=T.ensureState(x),M=A.style||(A.style={});L.stroke!=null&&(M[T.__isEmptyBrush?"stroke":"fill"]=L.stroke),L.opacity!=null&&(M.opacity=L.opacity)}}T.markRedraw()}},this);var m=a.getRawValue(i);ih(this,f,{labelDataIndex:i,labelFetcher:{getFormattedLabel:function(w,T){return a.getFormattedLabel(w,T,e.dataType)}},inheritColor:p||X.color.neutral99,defaultOpacity:g.opacity,defaultText:(m==null?e.getName(i):isFinite(m)?Vp(m):m)+""});var _=this.getTextContent();if(_){var S=f.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=S.get("position")||"middle";var b=S.get("distance");V(b)||(b=[b,b]),_.__labelDistance=b}this.setTextConfig({position:null,local:!0,inside:!1}),gg(this,c,v,h)},t.prototype.highlight=function(){la(this)},t.prototype.downplay=function(){ua(this)},t.prototype.updateLayout=function(e,i){this.setLinePoints(e.getItemLayout(i))},t.prototype.setLinePoints=function(e){var i=this.childOfName("line");pf(i.shape,e),i.dirty()},t.prototype.beforeUpdate=function(){var e=this,i=e.childOfName("fromSymbol"),n=e.childOfName("toSymbol"),a=e.getTextContent();if(!i&&!n&&(!a||a.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=e.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,f=l.pointAt(0),h=l.pointAt(u),c=li([],h,f);cn(c,c);function v(D,L){var A=D.__specifiedRotation;if(A==null){var M=l.tangentAt(L);D.attr("rotation",(L===1?-1:1)*Math.PI/2-Math.atan2(M[1],M[0]))}else D.attr("rotation",A)}if(i&&(i.setPosition(f),v(i,0),i.scaleX=i.scaleY=o*u,i.markRedraw()),n&&(n.setPosition(h),v(n,1),n.scaleX=n.scaleY=o*u,n.markRedraw()),a&&!a.ignore){a.x=a.y=0,a.originX=a.originY=0;var d=void 0,y=void 0,g=a.__labelDistance,p=g[0]*o,m=g[1]*o,_=u/2,S=l.tangentAt(_),b=[S[1],-S[0]],w=l.pointAt(_);b[1]>0&&(b[0]=-b[0],b[1]=-b[1]);var T=S[0]<0?-1:1;if(a.__position!=="start"&&a.__position!=="end"){var C=-Math.atan2(S[1],S[0]);h[0]<f[0]&&(C=Math.PI+C),a.rotation=C}var x=void 0;switch(a.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":x=-m,y="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":x=m,y="top";break;default:x=0,y="middle"}switch(a.__position){case"end":a.x=c[0]*p+h[0],a.y=c[1]*m+h[1],d=c[0]>.8?"left":c[0]<-.8?"right":"center",y=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":a.x=-c[0]*p+f[0],a.y=-c[1]*m+f[1],d=c[0]>.8?"right":c[0]<-.8?"left":"center",y=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":a.x=p*T+f[0],a.y=f[1]+x,d=S[0]<0?"right":"left",a.originX=-p*T,a.originY=-x;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":a.x=w[0],a.y=w[1]+x,d="center",a.originY=-x;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":a.x=-p*T+h[0],a.y=h[1]+x,d=S[0]>=0?"right":"left",a.originX=p*T,a.originY=-x;break}a.scaleX=a.scaleY=o,a.setStyle({verticalAlign:a.__verticalAlign||y,align:a.__align||d})}},t})(Et),e2=(function(){function r(t){this.group=new Et,this._LineCtor=t||t2}return r.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var i=this,n=i.group,a=i._lineData;i._lineData=t,a||n.removeAll();var o=Fd(t);t.diff(a).add(function(s){e._doAdd(t,s,o)}).update(function(s,l){e._doUpdate(a,t,l,s,o)}).remove(function(s){n.remove(a.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(e,i){e.updateLayout(t,i)},this)},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Fd(t),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e){this._progressiveEls=[];function i(s){!s.isGroup&&!r2(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var n=t.start;n<t.end;n++){var a=e.getItemLayout(n);if(Ql(a)){var o=new this._LineCtor(e,n,this._seriesScope);o.traverse(i),this.group.add(o),e.setItemGraphicEl(n,o),this._progressiveEls.push(o)}}},r.prototype.remove=function(){this.group.removeAll()},r.prototype.eachRendered=function(t){Ss(this._progressiveEls||this.group,t)},r.prototype._doAdd=function(t,e,i){var n=t.getItemLayout(e);if(Ql(n)){var a=new this._LineCtor(t,e,i);t.setItemGraphicEl(e,a),this.group.add(a)}},r.prototype._doUpdate=function(t,e,i,n,a){var o=t.getItemGraphicEl(i);if(!Ql(e.getItemLayout(n))){this.group.remove(o);return}o?o.updateData(e,n,a):o=new this._LineCtor(e,n,a),e.setItemGraphicEl(n,o),this.group.add(o)},r})();function r2(r){return r.animators&&r.animators.length>0}function Fd(r){var t=r.hostModel,e=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:e.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:e.get("disabled"),blurScope:e.get("blurScope"),focus:e.get("focus"),labelStatesModels:bs(t)}}function Hd(r){return isNaN(r[0])||isNaN(r[1])}function Ql(r){return r&&!Hd(r[0])&&!Hd(r[1])}var Jl=[],tu=[],eu=[],Yi=Zt,ru=di,Vd=Math.abs;function Gd(r,t,e){for(var i=r[0],n=r[1],a=r[2],o=1/0,s,l=e*e,u=.1,f=.1;f<=.9;f+=.1){Jl[0]=Yi(i[0],n[0],a[0],f),Jl[1]=Yi(i[1],n[1],a[1],f);var h=Vd(ru(Jl,t)-l);h<o&&(o=h,s=f)}for(var c=0;c<32;c++){var v=s+u;tu[0]=Yi(i[0],n[0],a[0],s),tu[1]=Yi(i[1],n[1],a[1],s),eu[0]=Yi(i[0],n[0],a[0],v),eu[1]=Yi(i[1],n[1],a[1],v);var h=ru(tu,t)-l;if(Vd(h)<.01)break;var d=ru(eu,t)-l;u/=2,h<0?d>=0?s=s+u:s=s-u:d>=0?s=s-u:s=s+u}return s}function iu(r,t){var e=[],i=ra,n=[[],[],[]],a=[[],[]],o=[];t/=2,r.eachEdge(function(s,l){var u=s.getLayout(),f=s.getVisual("fromSymbol"),h=s.getVisual("toSymbol");u.__original||(u.__original=[hr(u[0]),hr(u[1])],u[2]&&u.__original.push(hr(u[2])));var c=u.__original;if(u[2]!=null){if(Wt(n[0],c[0]),Wt(n[1],c[2]),Wt(n[2],c[1]),f&&f!=="none"){var v=Un(s.node1),d=Gd(n,c[0],v*t);i(n[0][0],n[1][0],n[2][0],d,e),n[0][0]=e[3],n[1][0]=e[4],i(n[0][1],n[1][1],n[2][1],d,e),n[0][1]=e[3],n[1][1]=e[4]}if(h&&h!=="none"){var v=Un(s.node2),d=Gd(n,c[1],v*t);i(n[0][0],n[1][0],n[2][0],d,e),n[1][0]=e[1],n[2][0]=e[2],i(n[0][1],n[1][1],n[2][1],d,e),n[1][1]=e[1],n[2][1]=e[2]}Wt(u[0],n[0]),Wt(u[1],n[2]),Wt(u[2],n[1])}else{if(Wt(a[0],c[0]),Wt(a[1],c[1]),li(o,a[1],a[0]),cn(o,o),f&&f!=="none"){var v=Un(s.node1);hu(a[0],a[0],o,v*t)}if(h&&h!=="none"){var v=Un(s.node2);hu(a[1],a[1],o,-v*t)}Wt(u[0],a[0]),Wt(u[1],a[1])}})}var i2=mt();function n2(r){if(r)return i2(r).bridge}function Ud(r){return r.type==="view"}var a2=(function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,i){var n=new XC,a=new e2,o=this.group,s=new Et;this._controller=new CD(i.getZr()),this._controllerHost={target:s},s.add(n.group),s.add(a.group),o.add(s),this._symbolDraw=n,this._lineDraw=a,this._mainGroup=s,this._firstRender=!0},t.prototype.render=function(e,i,n){var a=this,o=e.coordinateSystem,s=!1;this._model=e,this._api=n,this._active=!0;var l=this._getThumbnailInfo();l&&l.bridge.reset(n);var u=this._symbolDraw,f=this._lineDraw;if(Ud(o)){var h={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?this._mainGroup.attr(h):Er(this._mainGroup,h,e)}iu(e.getGraph(),Gn(e));var c=e.getData();u.updateData(c);var v=e.getEdgeData();f.updateData(v),this._updateNodeAndLinkScale(),this._updateController(null,e,n),clearTimeout(this._layoutTimeout);var d=e.forceLayout,y=e.get(["force","layoutAnimation"]);d&&(s=!0,this._startForceLayoutIteration(d,n,y));var g=e.get("layout");c.graph.eachNode(function(S){var b=S.dataIndex,w=S.getGraphicEl(),T=S.getModel();if(w){w.off("drag").off("dragend");var C=T.get("draggable");C&&w.on("drag",function(D){switch(g){case"force":d.warmUp(),!a._layouting&&a._startForceLayoutIteration(d,n,y),d.setFixed(b),c.setItemLayout(b,[w.x,w.y]);break;case"circular":c.setItemLayout(b,[w.x,w.y]),S.setLayout({fixed:!0},!0),Ah(e,"symbolSize",S,[D.offsetX,D.offsetY]),a.updateLayout(e);break;default:c.setItemLayout(b,[w.x,w.y]),Mh(e.getGraph(),e),a.updateLayout(e);break}}).on("dragend",function(){d&&d.setUnfixed(b)}),w.setDraggable(C,!!T.get("cursor"));var x=T.get(["emphasis","focus"]);x==="adjacency"&&(ft(w).focus=S.getAdjacentDataIndices())}}),c.graph.eachEdge(function(S){var b=S.getGraphicEl(),w=S.getModel().get(["emphasis","focus"]);b&&w==="adjacency"&&(ft(b).focus={edge:[S.dataIndex],node:[S.node1.dataIndex,S.node2.dataIndex]})});var p=e.get("layout")==="circular"&&e.get(["circular","rotateLabel"]),m=c.getLayout("cx"),_=c.getLayout("cy");c.graph.eachNode(function(S){um(S,p,m,_)}),this._firstRender=!1,s||this._renderThumbnail(e,n,this._symbolDraw,this._lineDraw)},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,i,n){var a=this,o=!1;(function s(){e.step(function(l){a.updateLayout(a._model),(l||!o)&&(o=!0,a._renderThumbnail(a._model,i,a._symbolDraw,a._lineDraw)),(a._layouting=!l)&&(n?a._layoutTimeout=setTimeout(s,16):s())})})()},t.prototype._updateController=function(e,i,n){var a=this._controller,o=this._controllerHost,s=i.coordinateSystem;if(!Ud(s)){a.disable();return}a.enable(i.get("roam"),{api:n,zInfo:{component:i},triggerInfo:{roamTrigger:i.get("roamTrigger"),isInSelf:function(l,u,f){return s.containPoint([u,f])},isInClip:function(l,u,f){return!e||e.contain(u,f)}}}),o.zoomLimit=i.get("scaleLimit"),o.zoom=s.getZoom(),a.off("pan").off("zoom").on("pan",function(l){n.dispatchAction({seriesId:i.id,type:"graphRoam",dx:l.dx,dy:l.dy})}).on("zoom",function(l){n.dispatchAction({seriesId:i.id,type:"graphRoam",zoom:l.scale,originX:l.originX,originY:l.originY})})},t.prototype.updateViewOnPan=function(e,i,n){this._active&&(MD(this._controllerHost,n.dx,n.dy),this._updateThumbnailWindow())},t.prototype.updateViewOnZoom=function(e,i,n){this._active&&(AD(this._controllerHost,n.zoom,n.originX,n.originY),this._updateNodeAndLinkScale(),iu(e.getGraph(),Gn(e)),this._lineDraw.updateLayout(),i.updateLabelLayout(),this._updateThumbnailWindow())},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,i=e.getData(),n=Gn(e);i.eachItemGraphicEl(function(a,o){a&&a.setSymbolScale(n)})},t.prototype.updateLayout=function(e){this._active&&(iu(e.getGraph(),Gn(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout())},t.prototype.remove=function(){this._active=!1,clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove(),this._controller&&this._controller.disable()},t.prototype._getThumbnailInfo=function(){var e=this._model,i=e.coordinateSystem;if(i.type==="view"){var n=n2(e);if(n)return{bridge:n,coordSys:i}}},t.prototype._updateThumbnailWindow=function(){var e=this._getThumbnailInfo();e&&e.bridge.updateWindow(e.coordSys.transform,this._api)},t.prototype._renderThumbnail=function(e,i,n,a){var o=this._getThumbnailInfo();if(o){var s=new Et,l=n.group.children(),u=a.group.children(),f=new Et,h=new Et;s.add(h),s.add(f);for(var c=0;c<l.length;c++){var v=l[c],d=v.children()[0],y=v.x,g=v.y,p=et(d.shape),m=k(p,{width:d.scaleX,height:d.scaleY,x:y-d.scaleX/2,y:g-d.scaleY/2}),_=et(d.style),S=new d.constructor({shape:m,style:_,z2:151});h.add(S)}for(var c=0;c<u.length;c++){var v=u[c],b=v.children()[0],_=et(b.style),m=et(b.shape),w=new hm({style:_,shape:m,z2:151});f.add(w)}o.bridge.renderContent({api:i,roamType:e.get("roam"),viewportRect:null,group:s,targetTrans:o.coordSys.transform})}},t.type="graph",t})(Ir);function Wi(r){return"_EC_"+r}var o2=(function(){function r(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return r.prototype.isDirected=function(){return this._directed},r.prototype.addNode=function(t,e){t=t==null?""+e:""+t;var i=this._nodesMap;if(!i[Wi(t)]){var n=new oi(t,e);return n.hostGraph=this,this.nodes.push(n),i[Wi(t)]=n,n}},r.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},r.prototype.getNodeById=function(t){return this._nodesMap[Wi(t)]},r.prototype.addEdge=function(t,e,i){var n=this._nodesMap,a=this._edgesMap;if(gt(t)&&(t=this.nodes[t]),gt(e)&&(e=this.nodes[e]),t instanceof oi||(t=n[Wi(t)]),e instanceof oi||(e=n[Wi(e)]),!(!t||!e)){var o=t.id+"-"+e.id,s=new cm(t,e,i);return s.hostGraph=this,this._directed&&(t.outEdges.push(s),e.inEdges.push(s)),t.edges.push(s),t!==e&&e.edges.push(s),this.edges.push(s),a[o]=s,s}},r.prototype.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},r.prototype.getEdge=function(t,e){t instanceof oi&&(t=t.id),e instanceof oi&&(e=e.id);var i=this._edgesMap;return this._directed?i[t+"-"+e]:i[t+"-"+e]||i[e+"-"+t]},r.prototype.eachNode=function(t,e){for(var i=this.nodes,n=i.length,a=0;a<n;a++)i[a].dataIndex>=0&&t.call(e,i[a],a)},r.prototype.eachEdge=function(t,e){for(var i=this.edges,n=i.length,a=0;a<n;a++)i[a].dataIndex>=0&&i[a].node1.dataIndex>=0&&i[a].node2.dataIndex>=0&&t.call(e,i[a],a)},r.prototype.breadthFirstTraverse=function(t,e,i,n){if(e instanceof oi||(e=this._nodesMap[Wi(e)]),!!e){for(var a=i==="out"?"outEdges":i==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!t.call(n,e,null))for(var s=[e];s.length;)for(var l=s.shift(),u=l[a],o=0;o<u.length;o++){var f=u[o],h=f.node1===l?f.node2:f.node1;if(!h.__visited){if(t.call(n,h,l))return;s.push(h),h.__visited=!0}}}},r.prototype.update=function(){for(var t=this.data,e=this.edgeData,i=this.nodes,n=this.edges,a=0,o=i.length;a<o;a++)i[a].dataIndex=-1;for(var a=0,o=t.count();a<o;a++)i[t.getRawIndex(a)].dataIndex=a;e.filterSelf(function(s){var l=n[e.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var a=0,o=n.length;a<o;a++)n[a].dataIndex=-1;for(var a=0,o=e.count();a<o;a++)n[e.getRawIndex(a)].dataIndex=a},r.prototype.clone=function(){for(var t=new r(this._directed),e=this.nodes,i=this.edges,n=0;n<e.length;n++)t.addNode(e[n].id,e[n].dataIndex);for(var n=0;n<i.length;n++){var a=i[n];t.addEdge(a.node1.id,a.node2.id,a.dataIndex)}return t},r})(),oi=(function(){function r(t,e){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=t??"",this.dataIndex=e??-1}return r.prototype.degree=function(){return this.edges.length},r.prototype.inDegree=function(){return this.inEdges.length},r.prototype.outDegree=function(){return this.outEdges.length},r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,i=e.data.getItemModel(this.dataIndex);return i.getModel(t)}},r.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},e=0;e<this.edges.length;e++){var i=this.edges[e];i.dataIndex<0||(t.edge.push(i.dataIndex),t.node.push(i.node1.dataIndex,i.node2.dataIndex))}return t},r.prototype.getTrajectoryDataIndices=function(){for(var t=Q(),e=Q(),i=0,n=this.edges.length;i<n;i++){var a=this.edges[i];if(!(a.dataIndex<0)){t.set(a.dataIndex,!0);for(var o=[a.node1],s=[a.node2],l=0;l<o.length;){var u=o[l];l++,e.set(u.dataIndex,!0);for(var f=u.inEdges,h=0,c=f.length,v=void 0,d=void 0;h<c;h++)v=f[h],d=v.dataIndex,d>=0&&!t.hasKey(d)&&(t.set(d,!0),o.push(v.node1))}for(l=0;l<s.length;){var y=s[l];l++,e.set(y.dataIndex,!0);for(var g=y.outEdges,h=0,p=g.length,m=void 0,_=void 0;h<p;h++)m=g[h],_=m.dataIndex,_>=0&&!t.hasKey(_)&&(t.set(_,!0),s.push(m.node2))}}}return{edge:t.keys(),node:e.keys()}},r})(),cm=(function(){function r(t,e,i){this.dataIndex=-1,this.node1=t,this.node2=e,this.dataIndex=i??-1}return r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,i=e.edgeData.getItemModel(this.dataIndex);return i.getModel(t)}},r.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},r.prototype.getTrajectoryDataIndices=function(){var t=Q(),e=Q();t.set(this.dataIndex,!0);for(var i=[this.node1],n=[this.node2],a=0;a<i.length;){var o=i[a];a++,e.set(o.dataIndex,!0);for(var s=o.inEdges,l=0,u=s.length,f=void 0,h=void 0;l<u;l++)f=o.inEdges[l],h=f.dataIndex,h>=0&&!t.hasKey(h)&&(t.set(h,!0),i.push(f.node1))}for(a=0;a<n.length;){var c=n[a];a++,e.set(c.dataIndex,!0);for(var v=c.outEdges,l=0,u=v.length,d=void 0,y=void 0;l<u;l++)d=c.outEdges[l],y=d.dataIndex,y>=0&&!t.hasKey(y)&&(t.set(y,!0),n.push(d.node2))}return{edge:t.keys(),node:e.keys()}},r})();function vm(r,t){return{getValue:function(e){var i=this[r][t];return i.getStore().get(i.getDimensionIndex(e||"value"),this.dataIndex)},setVisual:function(e,i){this.dataIndex>=0&&this[r][t].setItemVisual(this.dataIndex,e,i)},getVisual:function(e){return this[r][t].getItemVisual(this.dataIndex,e)},setLayout:function(e,i){this.dataIndex>=0&&this[r][t].setItemLayout(this.dataIndex,e,i)},getLayout:function(){return this[r][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][t].getRawIndex(this.dataIndex)}}}Ee(oi,vm("hostGraph","data"));Ee(cm,vm("hostGraph","edgeData"));function s2(r,t,e,i,n){for(var a=new o2(i),o=0;o<r.length;o++)a.addNode(rn(r[o].id,r[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<t.length;o++){var f=t[o],h=f.source,c=f.target;a.addEdge(h,c,u)&&(l.push(f),s.push(rn(Re(f.id,null),h+" > "+c)),u++)}var v=e.get("coordinateSystem"),d;if(v==="cartesian2d"||v==="polar"||v==="matrix")d=hC(r,e);else{var y=Cs.get(v),g=y?y.dimensions||[]:[];pt(g,"value")<0&&g.concat(["value"]);var p=$y(r,{coordDimensions:g,encodeDefine:e.getEncode()}).dimensions;d=new es(p,e),d.initData(r)}var m=new es(["value"],e);return m.initData(l,s),n&&n(d,m),RD({mainData:d,struct:a,structAttr:"graph",datas:{node:d,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}var l2=(function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments);var i=this;function n(){return i._categoriesData}this.legendVisualProvider=new $C(n,n),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(e){r.prototype.mergeDefaultAndTheme.apply(this,arguments),Ru(e,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,i){var n=e.edges||e.links||[],a=e.data||e.nodes||[],o=this;if(a&&n){YD(this);var s=s2(a,n,this,!0,l);return I(s.edges,function(u){WD(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,f){u.wrapMethod("getItemModel",function(d){var y=o._categoriesModels,g=d.getShallow("category"),p=y[g];return p&&(p.parentModel=d.parentModel,d.parentModel=p),d});var h=bt.prototype.getModel;function c(d,y){var g=h.call(this,d,y);return g.resolveParentPath=v,g}f.wrapMethod("getItemModel",function(d){return d.resolveParentPath=v,d.getModel=c,d});function v(d){if(d&&(d[0]==="label"||d[1]==="label")){var y=d.slice();return d[0]==="label"?y[0]="edgeLabel":d[1]==="label"&&(y[1]="edgeLabel"),y}return d}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,i,n){if(n==="edge"){var a=this.getData(),o=this.getDataParams(e,n),s=a.graph.getEdgeByIndex(e),l=a.getName(s.node1.dataIndex),u=a.getName(s.node2.dataIndex),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),un("nameValue",{name:f.join(" > "),value:o.value,noValue:o.value==null})}var h=uy({series:this,dataIndex:e,multipleSeries:i});return h},t.prototype._updateCategoriesData=function(){var e=ot(this.option.categories||[],function(n){return n.value!=null?n:k({value:0},n)}),i=new es(["value"],this);i.initData(e),this._categoriesData=i,this._categoriesModels=i.mapArray(function(n){return i.getItemModel(n)})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:X.color.neutral50,width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:X.color.primary}}},t})(Ar);function u2(r){r.registerChartView(a2),r.registerSeriesModel(l2),r.registerProcessor(FD),r.registerVisual(HD),r.registerVisual(VD),r.registerLayout(XD),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,ZD),r.registerLayout(KD),r.registerCoordinateSystem("graphView",{dimensions:nm.dimensions,create:QD}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Ht),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Ht),r.registerAction({type:"graphRoam",event:"graphRoam",update:"none"},function(t,e,i){e.eachComponent({mainType:"series",query:t},function(n){var a=i.getViewOfSeriesModel(n);a&&(t.dx!=null&&t.dy!=null&&a.updateViewOnPan(n,i,t),t.zoom!=null&&t.originX!=null&&t.originY!=null&&a.updateViewOnZoom(n,i,t));var o=n.coordinateSystem,s=PD(o,t,n.get("scaleLimit"));n.setCenter&&n.setCenter(s.center),n.setZoom&&n.setZoom(s.zoom)})})}var si=mt(),Yd=et,nu=ht,f2=(function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,e,i,n){var a=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=i,!(!n&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,t,e,i);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=f;var h=this._moveAnimation=this.determineAnimation(t,e);if(!s)s=this._group=new Et,this.createPointerEl(s,u,t,e),this.createLabelEl(s,u,t,e),i.getZr().add(s);else{var c=Pt(Wd,e,h);this.updatePointerEl(s,u,c),this.updateLabelEl(s,u,c,e)}$d(s,e,!0),this._renderHandle(a)}},r.prototype.remove=function(t){this.clear(t)},r.prototype.dispose=function(t){this.clear(t)},r.prototype.determineAnimation=function(t,e){var i=e.get("animation"),n=t.axis,a=n.type==="category",o=e.get("snap");if(!o&&!a)return!1;if(i==="auto"||i==null){var s=this.animationThreshold;if(a&&n.getBandWidth()>s)return!0;if(o){var l=Ch(t).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return i===!0},r.prototype.makeElOption=function(t,e,i,n,a){},r.prototype.createPointerEl=function(t,e,i,n){var a=e.pointer;if(a){var o=si(t).pointerEl=new pw[a.type](Yd(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,i,n){if(e.label){var a=si(t).labelEl=new Kt(Yd(e.label));t.add(a),Xd(a,n)}},r.prototype.updatePointerEl=function(t,e,i){var n=si(t).pointerEl;n&&e.pointer&&(n.setStyle(e.pointer.style),i(n,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,i,n){var a=si(t).labelEl;a&&(a.setStyle(e.label.style),i(a,{x:e.label.x,y:e.label.y}),Xd(a,n))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,i=this._api.getZr(),n=this._handle,a=e.getModel("handle"),o=e.get("status");if(!a.get("show")||!o||o==="hide"){n&&i.remove(n),this._handle=null;return}var s;this._handle||(s=!0,n=this._handle=th(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Oo(u.event)},onmousedown:nu(this._onHandleDragMove,this,0,0),drift:nu(this._onHandleDragMove,this),ondragend:nu(this._onHandleDragEnd,this)}),i.add(n)),$d(n,e,!1),n.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");V(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,hy(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){Wd(this._axisPointerModel,!e&&this._moveAnimation,this._handle,au(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var i=this._handle;if(i){this._dragging=!0;var n=this.updateHandleTransform(au(i),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(au(n)),si(i).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),i=this._group,n=this._handle;e&&i&&(this._lastGraphicKey=null,i&&e.remove(i),n&&e.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),Ju(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,i){return i=i||0,{x:t[i],y:t[1-i],width:e[i],height:e[1-i]}},r})();function Wd(r,t,e,i){dm(si(e).lastProp,i)||(si(e).lastProp=i,t?Er(e,i,r):(e.stopAnimation(),e.attr(i)))}function dm(r,t){if(Y(r)&&Y(t)){var e=!0;return I(t,function(i,n){e=e&&dm(r[n],i)}),!!e}else return r===t}function Xd(r,t){r[t.get(["label","show"])?"show":"hide"]()}function au(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function $d(r,t,e){var i=t.get("z"),n=t.get("zlevel");r&&r.traverse(function(a){a.type!=="group"&&(i!=null&&(a.z=i),n!=null&&(a.zlevel=n),a.silent=e)})}function h2(r){var t=r.get("type"),e=r.getModel(t+"Style"),i;return t==="line"?(i=e.getLineStyle(),i.fill=null):t==="shadow"&&(i=e.getAreaStyle(),i.stroke=null),i}function c2(r,t,e,i,n){var a=e.get("value"),o=pm(a,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=xs(s.get("padding")||0),u=s.getFont(),f=g0(o,u),h=n.position,c=f.width+l[1]+l[3],v=f.height+l[0]+l[2],d=n.align;d==="right"&&(h[0]-=c),d==="center"&&(h[0]-=c/2);var y=n.verticalAlign;y==="bottom"&&(h[1]-=v),y==="middle"&&(h[1]-=v/2),v2(h,c,v,i);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),r.label={x:h[0],y:h[1],style:Mr(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function v2(r,t,e,i){var n=i.getWidth(),a=i.getHeight();r[0]=Math.min(r[0]+t,n)-t,r[1]=Math.min(r[1]+e,a)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function pm(r,t,e,i,n){r=t.scale.parse(r);var a=t.scale.getLabel({value:r},{precision:n.precision}),o=n.formatter;if(o){var s={value:Zy(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};I(i,function(l){var u=e.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,h=u&&u.getDataParams(f);h&&s.seriesData.push(h)}),U(o)?a=o.replace("{value}",a):at(o)&&(a=o(s))}return a}function gm(r,t,e){var i=$e();return Pf(i,i,e.rotation),yu(i,i,e.position),Jf([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],i)}function d2(r,t,e,i,n,a){var o=_i.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=n.get(["label","margin"]),c2(t,i,n,a,{position:gm(i.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function p2(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function g2(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}var y2=(function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,i,n,a,o){var s=n.axis,l=s.grid,u=a.get("type"),f=Zd(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(i,!0));if(u&&u!=="none"){var c=h2(a),v=m2[u](s,h,f);v.style=c,e.graphicKey=v.type,e.pointer=v}var d=Id(l.getRect(),n);d2(i,e,d,n,a,o)},t.prototype.getHandleTransform=function(e,i,n){var a=Id(i.axis.grid.getRect(),i,{labelInside:!1});a.labelMargin=n.get(["handle","margin"]);var o=gm(i.axis,e,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,i,n,a){var o=n.axis,s=o.grid,l=o.getGlobalExtent(!0),u=Zd(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,h=[e.x,e.y];h[f]+=i[f],h[f]=Math.min(l[1],h[f]),h[f]=Math.max(l[0],h[f]);var c=(u[1]+u[0])/2,v=[c,c];v[f]=h[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:e.rotation,cursorPoint:v,tooltipOption:d[f]}},t})(f2);function Zd(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var m2={line:function(r,t,e){var i=p2([t,e[0]],[t,e[1]],qd(r));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(r,t,e){var i=Math.max(1,r.getBandWidth()),n=e[1]-e[0];return{type:"Rect",shape:g2([t-i/2,e[0]],[i,n],qd(r))}}};function qd(r){return r.dim==="x"?0:1}var _2=(function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}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:X.color.border,width:1,type:"dashed"},shadowStyle:{color:X.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:X.color.neutral00,padding:[5,7,5,7],backgroundColor:X.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:X.color.accent40,throttle:40}},t})(vt),ur=mt(),S2=I;function ym(r,t,e){if(!q.node){var i=t.getZr();ur(i).records||(ur(i).records={}),w2(i,t);var n=ur(i).records[r]||(ur(i).records[r]={});n.handler=e}}function w2(r,t){if(ur(r).initialized)return;ur(r).initialized=!0,e("click",Pt(Kd,"click")),e("mousemove",Pt(Kd,"mousemove")),e("globalout",T2);function e(i,n){r.on(i,function(a){var o=x2(t);S2(ur(r).records,function(s){s&&n(s,a,o.dispatchAction)}),b2(o.pendings,t)})}}function b2(r,t){var e=r.showTip.length,i=r.hideTip.length,n;e?n=r.showTip[e-1]:i&&(n=r.hideTip[i-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function T2(r,t,e){r.handler("leave",null,e)}function Kd(r,t,e,i){t.handler(r,e,i)}function x2(r){var t={showTip:[],hideTip:[]},e=function(i){var n=t[i.type];n?n.push(i):(i.dispatchAction=e,r.dispatchAction(i))};return{dispatchAction:e,pendings:t}}function gf(r,t){if(!q.node){var e=t.getZr(),i=(ur(e).records||{})[r];i&&(ur(e).records[r]=null)}}var C2=(function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,i,n){var a=i.getComponent("tooltip"),o=e.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";ym("axisPointer",n,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(e,i){gf("axisPointer",i)},t.prototype.dispose=function(e,i){gf("axisPointer",i)},t.type="axisPointer",t})(Je);function mm(r,t){var e=[],i=r.seriesIndex,n;if(i==null||!(n=t.getSeriesByIndex(i)))return{point:[]};var a=n.getData(),o=ba(a,r);if(o==null||o<0||V(o))return{point:[]};var s=a.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)e=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),h=f.dim,c=u.dim,v=h==="x"||h==="radius"?1:0,d=a.mapDimension(c),y=[];y[v]=a.get(d,o),y[1-v]=a.get(a.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(y)||[]}else e=l.dataToPoint(a.getValues(ot(l.dimensions,function(p){return a.mapDimension(p)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),e=[g.x+g.width/2,g.y+g.height/2]}return{point:e,el:s}}var jd=mt();function D2(r,t,e){var i=r.currTrigger,n=[r.x,r.y],a=r,o=r.dispatchAction||ht(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){Eo(n)&&(n=mm({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=Eo(n),u=a.axesInfo,f=s.axesInfo,h=i==="leave"||Eo(n),c={},v={},d={list:[],map:{}},y={showPointer:Pt(L2,v),showTooltip:Pt(M2,d)};I(s.coordSysMap,function(p,m){var _=l||p.containPoint(n);I(s.coordSysAxesInfo[m],function(S,b){var w=S.axis,T=E2(u,S);if(!h&&_&&(!u||T)){var C=T&&T.value;C==null&&!l&&(C=w.pointToData(n)),C!=null&&Qd(S,C,y,!1,c)}})});var g={};return I(f,function(p,m){var _=p.linkGroup;_&&!v[m]&&I(_.axesInfo,function(S,b){var w=v[b];if(S!==p&&w){var T=w.value;_.mapper&&(T=p.axis.scale.parse(_.mapper(T,Jd(S),Jd(p)))),g[p.key]=T}})}),I(g,function(p,m){Qd(f[m],p,y,!0,c)}),A2(v,f,c),P2(d,n,r,o),R2(f,o,e),c}}function Qd(r,t,e,i,n){var a=r.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=I2(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&n.seriesIndex==null&&k(n,s[0]),!i&&r.snap&&a.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function I2(r,t){var e=t.axis,i=e.dim,n=r,a=[],o=Number.MAX_VALUE,s=-1;return I(t.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(i),h,c;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(f,r,e);c=v.dataIndices,h=v.nestestValue}else{if(c=l.indicesOfNearest(i,f[0],r,e.type==="category"?.5:null),!c.length)return;h=l.getData().get(f[0],c[0])}if(!(h==null||!isFinite(h))){var d=r-h,y=Math.abs(d);y<=o&&((y<o||d>=0&&s<0)&&(o=y,s=d,n=h,a.length=0),I(c,function(g){a.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:n}}function L2(r,t,e,i){r[t.key]={value:e,payloadBatch:i}}function M2(r,t,e,i){var n=e.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!n.length)){var l=t.coordSys.model,u=ya(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function A2(r,t,e){var i=e.axesInfo=[];I(t,function(n,a){var o=n.axisPointerModel.option,s=r[a];s?(!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),o.status==="show"&&i.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function P2(r,t,e,i){if(Eo(t)||!r.list.length){i({type:"hideTip"});return}var n=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:r.list})}function R2(r,t,e){var i=e.getZr(),n="axisPointerLastHighlights",a=jd(i)[n]||{},o=jd(i)[n]={};I(r,function(u,f){var h=u.axisPointerModel.option;h.status==="show"&&u.triggerEmphasis&&I(h.seriesDataIndices,function(c){var v=c.seriesIndex+" | "+c.dataIndex;o[v]=c})});var s=[],l=[];I(a,function(u,f){!o[f]&&l.push(u)}),I(o,function(u,f){!a[f]&&s.push(u)}),l.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function E2(r,t){for(var e=0;e<(r||[]).length;e++){var i=r[e];if(t.axis.dim===i.axisDim&&t.axis.model.componentIndex===i.axisIndex)return i}}function Jd(r){var t=r.axis.model,e={},i=e.axisDim=r.axis.dim;return e.axisIndex=e[i+"AxisIndex"]=t.componentIndex,e.axisName=e[i+"AxisName"]=t.name,e.axisId=e[i+"AxisId"]=t.id,e}function Eo(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function k2(r){wD.registerAxisPointerClass("CartesianAxisPointer",y2),r.registerComponentModel(_2),r.registerComponentView(C2),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!V(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=dD(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},D2)}function O2(r,t){var e=xs(t.get("padding")),i=t.getItemStyle(["color","opacity"]);i.fill=t.get("backgroundColor");var n=new Vt({shape:{x:r.x-e[3],y:r.y-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2],r:t.get("borderRadius")},style:i,silent:!0,z2:-1});return n}var B2=(function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:X.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:X.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:X.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:X.color.tertiary,fontSize:14}},t})(vt);function _m(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function Sm(r){if(q.domSupported){for(var t=document.documentElement.style,e=0,i=r.length;e<i;e++)if(r[e]in t)return r[e]}}var wm=Sm(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),N2=Sm(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function bm(r,t){if(!r)return t;t=Bg(t,!0);var e=r.indexOf(t);return r=e===-1?t:"-"+r.slice(0,e)+"-"+t,r.toLowerCase()}function z2(r,t){var e=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return e?e[t]:null}var F2=bm(N2,"transition"),Ph=bm(wm,"transform"),H2="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(q.transform3dSupported?"will-change:transform;":"");function V2(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function G2(r,t,e){if(!U(e)||e==="inside")return"";var i=r.get("backgroundColor"),n=r.get("borderWidth");t=ca(t);var a=V2(e),o=Math.max(Math.round(n)*1.5,6),s="",l=Ph+":",u;pt(["left","right"],a)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var f=u*Math.PI/180,h=o+n,c=h*Math.abs(Math.cos(f))+h*Math.abs(Math.sin(f)),v=Math.round(((c-Math.SQRT2*n)/2+Math.SQRT2*n-(c-h)/2)*100)/100;s+=";"+a+":-"+v+"px";var d=t+" solid "+n+"px;",y=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+i+";"];return'<div style="'+y.join("")+'"></div>'}function U2(r,t,e){var i="cubic-bezier(0.23,1,0.32,1)",n="",a="";return e&&(n=" "+r/2+"s "+i,a="opacity"+n+",visibility"+n),t||(n=" "+r+"s "+i,a+=(a.length?",":"")+(q.transformSupported?""+Ph+n:",left"+n+",top"+n)),F2+":"+a}function tp(r,t,e){var i=r.toFixed(0)+"px",n=t.toFixed(0)+"px";if(!q.transformSupported)return e?"top:"+n+";left:"+i+";":[["top",n],["left",i]];var a=q.transform3dSupported,o="translate"+(a?"3d":"")+"("+i+","+n+(a?",0":"")+")";return e?"top:0;left:0;"+Ph+":"+o+";":[["top",0],["left",0],[wm,o]]}function Y2(r){var t=[],e=r.get("fontSize"),i=r.getTextColor();i&&t.push("color:"+i),t.push("font:"+r.getFont());var n=$(r.get("lineHeight"),Math.round(e*3/2));e&&t.push("line-height:"+n+"px");var a=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,s=r.get("textShadowOffsetX")||0,l=r.get("textShadowOffsetY")||0;return a&&o&&t.push("text-shadow:"+s+"px "+l+"px "+o+"px "+a),I(["decoration","align"],function(u){var f=r.get(u);f&&t.push("text-"+u+":"+f)}),t.join(";")}function W2(r,t,e,i){var n=[],a=r.get("transitionDuration"),o=r.get("backgroundColor"),s=r.get("shadowBlur"),l=r.get("shadowColor"),u=r.get("shadowOffsetX"),f=r.get("shadowOffsetY"),h=r.getModel("textStyle"),c=ly(r,"html"),v=u+"px "+f+"px "+s+"px "+l;return n.push("box-shadow:"+v),t&&a>0&&n.push(U2(a,e,i)),o&&n.push("background-color:"+o),I(["width","color","radius"],function(d){var y="border-"+d,g=Bg(y),p=r.get(g);p!=null&&n.push(y+":"+p+(d==="color"?"":"px"))}),n.push(Y2(h)),c!=null&&n.push("padding:"+xs(c).join("px ")+"px"),n.join(";")+";"}function ep(r,t,e,i,n){var a=t&&t.painter;if(e){var o=a&&a.getViewportRoot();o&&m_(r,o,e,i,n)}else{r[0]=i,r[1]=n;var s=a&&a.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var X2=(function(){function r(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,q.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var n=this._zr=t.getZr(),a=e.appendTo,o=a&&(U(a)?document.querySelector(a):ea(a)?a:at(a)&&a(t.getDom()));ep(this._styleCoord,n,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(i),this._api=t,this._container=o;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=n.handler,f=n.painter.getViewportRoot();we(f,l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),i=z2(e,"position"),n=e.style;n.position!=="absolute"&&i!=="absolute"&&(n.position="relative")}var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this._enableDisplayTransition=t.get("displayTransition")&&t.get("transitionDuration")>0,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,n=i.style,a=this._styleCoord;i.innerHTML?n.cssText=H2+W2(t,!this._firstShow,this._longHide,this._enableDisplayTransition)+tp(a[0],a[1],!0)+("border-color:"+ca(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,i,n,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(U(a)&&i.get("trigger")==="item"&&!_m(i)&&(s=G2(i,n,a)),U(t))o.innerHTML=t+s;else if(t){o.innerHTML="",V(t)||(t=[t]);for(var l=0;l<t.length;l++)ea(t[l])&&t[l].parentNode!==o&&o.appendChild(t[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},r.prototype.moveTo=function(t,e){if(this.el){var i=this._styleCoord;if(ep(i,this._zr,this._container,t,e),i[0]!=null&&i[1]!=null){var n=this.el.style,a=tp(i[0],i[1]);I(a,function(o){n[o[0]]=o[1]})}}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){var t=this,e=this.el.style;this._enableDisplayTransition?(e.visibility="hidden",e.opacity="0"):e.display="none",q.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(ht(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this._zr;__(t&&t.painter&&t.painter.getViewportRoot(),this._container);var e=this.el;if(e){e.onmouseenter=e.onmousemove=e.onmouseleave=null;var i=e.parentNode;i&&i.removeChild(e)}this.el=this._container=null},r})(),$2=(function(){function r(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),ip(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return r.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(t,e,i,n,a){var o=this;Y(t)&&ie(""),this.el&&this._zr.remove(this.el);var s=i.getModel("textStyle");this.el=new Kt({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:s.get("textShadowColor"),fill:i.get(["textStyle","color"]),padding:ly(i,"richText"),verticalAlign:"top",align:"left"},z:i.get("z")}),I(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=i.get(u)}),I(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),i=rp(t.style);return[e.width+i.left+i.right,e.height+i.top+i.bottom]},r.prototype.moveTo=function(t,e){var i=this.el;if(i){var n=this._styleCoord;ip(n,this._zr,t,e),t=n[0],e=n[1];var a=i.style,o=Sr(a.borderWidth||0),s=rp(a);i.x=t+o+s.left,i.y=e+o+s.top,i.markRedraw()}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(ht(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r})();function Sr(r){return Math.max(0,r)}function rp(r){var t=Sr(r.shadowBlur||0),e=Sr(r.shadowOffsetX||0),i=Sr(r.shadowOffsetY||0);return{left:Sr(t-e),right:Sr(t+e),top:Sr(t-i),bottom:Sr(t+i)}}function ip(r,t,e,i){r[0]=e,r[1]=i,r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var Z2=new Vt({shape:{x:-1,y:-1,width:2,height:2}}),q2=(function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,i){if(!(q.node||!i.getDom())){var n=e.getComponent("tooltip"),a=this._renderMode=K0(n.get("renderMode"));this._tooltipContent=a==="richText"?new $2(i):new X2(i,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},t.prototype.render=function(e,i,n){if(!(q.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=e,this._ecModel=i,this._api=n;var a=this._tooltipContent;a.update(e),a.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&e.get("transitionDuration")?hy(this,"_updatePosition",50,"fixRate"):Ju(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel,i=e.get("triggerOn");ym("itemTooltip",this._api,ht(function(n,a,o){i!=="none"&&(i.indexOf(n)>=0?this._tryShow(a,o):n==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,i=this._ecModel,n=this._api,a=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(e,i,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,i,n,a){if(!(a.from===this.uid||q.node||!n.getDom())){var o=np(a,n);this._ticket="";var s=a.dataByCoordSys,l=J2(a,i,n);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=Z2;f.x=a.x,f.y=a.y,f.update(),ft(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(e,i,n,a))return;var h=mm(a,i),c=h.point[0],v=h.point[1];c!=null&&v!=null&&this._tryShow({offsetX:c,offsetY:v,target:h.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(n.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:n.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(e,i,n,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(np(a,n))},t.prototype._manuallyAxisShowTip=function(e,i,n,a){var o=a.seriesIndex,s=a.dataIndex,l=i.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=i.getSeriesByIndex(o);if(u){var f=u.getData(),h=En([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(e,i){var n=e.target,a=this._tooltipModel;if(a){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(n){var s=ft(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;Hn(n,function(f){if(f.tooltipDisabled)return l=u=null,!0;l||u||(ft(f).dataIndex!=null?l=f:ft(f).tooltipConfig!=null&&(u=f))},!0),l?this._showSeriesItemTooltip(e,l,i):u?this._showComponentItemTooltip(e,u,i):this._hide(i)}else this._lastDataByCoordSys=null,this._hide(i)}},t.prototype._showOrMove=function(e,i){var n=e.get("showDelay");i=ht(i,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(i,n):i()},t.prototype._showAxisTooltip=function(e,i){var n=this._ecModel,a=this._tooltipModel,o=[i.offsetX,i.offsetY],s=En([i.tooltipOption],a),l=this._renderMode,u=[],f=un("section",{blocks:[],noHeader:!0}),h=[],c=new El;I(e,function(m){I(m.dataByAxis,function(_){var S=n.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(!(!S||b==null)){var w=pm(b,S.axis,n,_.seriesDataIndices,_.valueLabelOpt),T=un("section",{header:w,noHeader:!We(w),sortBlocks:!0,blocks:[]});f.blocks.push(T),I(_.seriesDataIndices,function(C){var x=n.getSeriesByIndex(C.seriesIndex),D=C.dataIndexInside,L=x.getDataParams(D);if(!(L.dataIndex<0)){L.axisDim=_.axisDim,L.axisIndex=_.axisIndex,L.axisType=_.axisType,L.axisId=_.axisId,L.axisValue=Zy(S.axis,{value:b}),L.axisValueLabel=w,L.marker=c.makeTooltipMarker("item",ca(L.color),l);var A=Mv(x.formatTooltip(D,!0,null)),M=A.frag;if(M){var P=En([x],a).get("valueFormatter");T.blocks.push(P?k({valueFormatter:P},M):M)}A.text&&h.push(A.text),u.push(L)}})}})}),f.blocks.reverse(),h.reverse();var v=i.position,d=s.get("order"),y=kv(f,c,l,d,n.get("useUTC"),s.get("textStyle"));y&&h.unshift(y);var g=l==="richText"?`
16
-
17
- `:"<br/>",p=h.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,p,u,Math.random()+"",o[0],o[1],v,null,c)})},t.prototype._showSeriesItemTooltip=function(e,i,n){var a=this._ecModel,o=ft(i),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,h=o.dataType,c=u.getData(h),v=this._renderMode,d=e.positionDefault,y=En([c.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=y.get("trigger");if(!(g!=null&&g!=="item")){var p=u.getDataParams(f,h),m=new El;p.marker=m.makeTooltipMarker("item",ca(p.color),v);var _=Mv(u.formatTooltip(f,!1,h)),S=y.get("order"),b=y.get("valueFormatter"),w=_.frag,T=w?kv(b?k({valueFormatter:b},w):w,m,v,S,a.get("useUTC"),y.get("textStyle")):_.text,C="item_"+u.name+"_"+f;this._showOrMove(y,function(){this._showTooltipContent(y,T,p,C,e.offsetX,e.offsetY,e.position,e.target,m)}),n({type:"showTip",dataIndexInside:f,dataIndex:c.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,i,n){var a=this._renderMode==="html",o=ft(i),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(U(l)){var f=l;l={content:f,formatter:f},u=!0}u&&a&&l.content&&(l=et(l),l.content=ee(l.content));var h=[l],c=this._ecModel.getComponent(o.componentMainType,o.componentIndex);c&&h.push(c),h.push({formatter:l.content});var v=e.positionDefault,d=En(h,this._tooltipModel,v?{position:v}:null),y=d.get("content"),g=Math.random()+"",p=new El;this._showOrMove(d,function(){var m=et(d.get("formatterParams")||{});this._showTooltipContent(d,y,m,g,e.offsetX,e.offsetY,e.position,i,p)}),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,i,n,a,o,s,l,u,f){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var h=this._tooltipContent;h.setEnterable(e.get("enterable"));var c=e.get("formatter");l=l||e.get("position");var v=i,d=this._getNearestPoint([o,s],n,e.get("trigger"),e.get("borderColor"),e.get("defaultBorderColor",!0)),y=d.color;if(c)if(U(c)){var g=e.ecModel.get("useUTC"),p=V(n)?n[0]:n,m=p&&p.axisType&&p.axisType.indexOf("time")>=0;v=c,m&&(v=Og(p.axisValue,v,g)),v=Ng(v,n,!0)}else if(at(c)){var _=ht(function(S,b){S===this._ticket&&(h.setContent(b,f,e,y,l),this._updatePosition(e,l,o,s,h,n,u))},this);this._ticket=a,v=c(n,a,_)}else v=c;h.setContent(v,f,e,y,l),h.show(e,y),this._updatePosition(e,l,o,s,h,n,u)}},t.prototype._getNearestPoint=function(e,i,n,a,o){if(n==="axis"||V(i))return{color:a||o};if(!V(i))return{color:a||i.color||i.borderColor}},t.prototype._updatePosition=function(e,i,n,a,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();i=i||e.get("position");var h=o.getSize(),c=e.get("align"),v=e.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),at(i)&&(i=i([n,a],s,o.el,d,{viewSize:[u,f],contentSize:h.slice()})),V(i))n=re(i[0],u),a=re(i[1],f);else if(Y(i)){var y=i;y.width=h[0],y.height=h[1];var g=sn(y,{width:u,height:f});n=g.x,a=g.y,c=null,v=null}else if(U(i)&&l){var p=Q2(i,d,h,e.get("borderWidth"));n=p[0],a=p[1]}else{var p=K2(n,a,o,u,f,c?null:20,v?null:20);n=p[0],a=p[1]}if(c&&(n-=ap(c)?h[0]/2:c==="right"?h[0]:0),v&&(a-=ap(v)?h[1]/2:v==="bottom"?h[1]:0),_m(e)){var p=j2(n,a,o,u,f);n=p[0],a=p[1]}o.moveTo(n,a)},t.prototype._updateContentNotChangedOnAxis=function(e,i){var n=this._lastDataByCoordSys,a=this._cbParamsList,o=!!n&&n.length===e.length;return o&&I(n,function(s,l){var u=s.dataByAxis||[],f=e[l]||{},h=f.dataByAxis||[];o=o&&u.length===h.length,o&&I(u,function(c,v){var d=h[v]||{},y=c.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&c.value===d.value&&c.axisType===d.axisType&&c.axisId===d.axisId&&y.length===g.length,o&&I(y,function(p,m){var _=g[m];o=o&&p.seriesIndex===_.seriesIndex&&p.dataIndex===_.dataIndex}),a&&I(c.seriesDataIndices,function(p){var m=p.seriesIndex,_=i[m],S=a[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=i,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,i){q.node||!i.getDom()||(Ju(this,"_updatePosition"),this._tooltipContent.dispose(),gf("itemTooltip",i))},t.type="tooltip",t})(Je);function En(r,t,e){var i=t.ecModel,n;e?(n=new bt(e,i,i),n=new bt(t.option,n,i)):n=t;for(var a=r.length-1;a>=0;a--){var o=r[a];o&&(o instanceof bt&&(o=o.get("tooltip",!0)),U(o)&&(o={formatter:o}),o&&(n=new bt(o,n,i)))}return n}function np(r,t){return r.dispatchAction||ht(t.dispatchAction,t)}function K2(r,t,e,i,n,a,o){var s=e.getSize(),l=s[0],u=s[1];return a!=null&&(r+l+a+2>i?r-=l+a:r+=a),o!=null&&(t+u+o>n?t-=u+o:t+=o),[r,t]}function j2(r,t,e,i,n){var a=e.getSize(),o=a[0],s=a[1];return r=Math.min(r+o,i)-o,t=Math.min(t+s,n)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function Q2(r,t,e,i){var n=e[0],a=e[1],o=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=t.width,f=t.height;switch(r){case"inside":s=t.x+u/2-n/2,l=t.y+f/2-a/2;break;case"top":s=t.x+u/2-n/2,l=t.y-a-o;break;case"bottom":s=t.x+u/2-n/2,l=t.y+f+o;break;case"left":s=t.x-n-o,l=t.y+f/2-a/2;break;case"right":s=t.x+u+o,l=t.y+f/2-a/2}return[s,l]}function ap(r){return r==="center"||r==="middle"}function J2(r,t,e){var i=kf(r).queryOptionMap,n=i.keys()[0];if(!(!n||n==="series")){var a=Ta(t,n,i.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=e.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=ft(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}function tI(r){fn(k2),r.registerComponentModel(B2),r.registerComponentView(q2),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Ht),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Ht)}var eI=(function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:X.size.m,backgroundColor:X.color.transparent,borderColor:X.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:X.color.primary},subtextStyle:{fontSize:12,color:X.color.quaternary}},t})(vt),rI=(function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,i,n){if(this.group.removeAll(),!!e.get("show")){var a=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),l=e.get("textAlign"),u=$(e.get("textBaseline"),e.get("textVerticalAlign")),f=new Kt({style:Mr(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),h=f.getBoundingRect(),c=e.get("subtext"),v=new Kt({style:Mr(s,{text:c,fill:s.getTextColor(),y:h.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),y=e.get("sublink"),g=e.get("triggerEvent",!0);f.silent=!d&&!g,v.silent=!y&&!g,d&&f.on("click",function(){uv(d,"_"+e.get("target"))}),y&&v.on("click",function(){uv(y,"_"+e.get("subtarget"))}),ft(f).eventData=ft(v).eventData=g?{componentType:"title",componentIndex:e.componentIndex}:null,a.add(f),c&&a.add(v);var p=a.getBoundingRect(),m=e.getBoxLayoutParams();m.width=p.width,m.height=p.height;var _=sh(e,n),S=sn(m,_.refContainer,e.get("padding"));l||(l=e.get("left")||e.get("right"),l==="middle"&&(l="center"),l==="right"?S.x+=S.width:l==="center"&&(S.x+=S.width/2)),u||(u=e.get("top")||e.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?S.y+=S.height:u==="middle"&&(S.y+=S.height/2),u=u||"top"),a.x=S.x,a.y=S.y,a.markRedraw();var b={align:l,verticalAlign:u};f.setStyle(b),v.setStyle(b),p=a.getBoundingRect();var w=S.margin,T=e.getItemStyle(["color","opacity"]);T.fill=e.get("backgroundColor");var C=new Vt({shape:{x:p.x-w[3],y:p.y-w[0],width:p.width+w[1]+w[3],height:p.height+w[0]+w[2],r:e.get("borderRadius")},style:T,subPixelOptimize:!0,silent:!0});a.add(C)}},t.type="title",t})(Je);function iI(r){r.registerComponentModel(eI),r.registerComponentView(rI)}var nI=function(r,t){if(t==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},yf=(function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.prototype.init=function(e,i,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(e,i){r.prototype.mergeOption.call(this,e,i),this._updateSelector(e)},t.prototype._updateSelector=function(e){var i=e.selector,n=this.ecModel;i===!0&&(i=e.selector=["all","inverse"]),V(i)&&I(i,function(a,o){U(a)&&(a={type:a}),i[o]=xt(a,nI(n,a.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var i=!1,n=0;n<e.length;n++){var a=e[n].get("name");if(this.isSelected(a)){this.select(a),i=!0;break}}!i&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var i=[],n=[];e.eachRawSeries(function(l){var u=l.name;n.push(u);var f;if(l.legendVisualProvider){var h=l.legendVisualProvider,c=h.getAllNames();e.isSeriesFiltered(l)||(n=n.concat(c)),c.length?i=i.concat(c):f=!0}else f=!0;f&&Ef(l)&&i.push(l.name)}),this._availableNames=n;var a=this.get("data")||i,o=Q(),s=ot(a,function(l){return(U(l)||gt(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new bt(l,this,this.ecModel))},this);this._data=he(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var i=this.option.selected,n=this.get("selectedMode");if(n==="single"){var a=this._data;I(a,function(o){i[o.get("name")]=!1})}i[e]=!0},t.prototype.unSelect=function(e){this.get("selectedMode")!=="single"&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var i=this.option.selected;i.hasOwnProperty(e)||(i[e]=!0),this[i[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,i=this.option.selected;I(e,function(n){i[n.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,i=this.option.selected;I(e,function(n){var a=n.get("name",!0);i.hasOwnProperty(a)||(i[a]=!0),i[a]=!i[a]})},t.prototype.isSelected=function(e){var i=this.option.selected;return!(i.hasOwnProperty(e)&&!i[e])&&pt(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:X.size.m,align:"auto",backgroundColor:X.color.transparent,borderColor:X.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:X.color.disabled,inactiveBorderColor:X.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:X.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:X.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:X.color.tertiary,borderWidth:1,borderColor:X.color.border},emphasis:{selectorLabel:{show:!0,color:X.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t})(vt),Xi=Pt,mf=I,po=Et,Tm=(function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new po),this.group.add(this._selectorGroup=new po),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,i,n){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),s=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&s==="vertical"?"right":"left");var l=e.get("selector",!0),u=e.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,e,i,n,l,s,u);var f=sh(e,n).refContainer,h=e.getBoxLayoutParams(),c=e.get("padding"),v=sn(h,f,c),d=this.layoutInner(e,o,v,a,l,u),y=sn(Ct({width:d.width,height:d.height},h),f,c);this.group.x=y.x-d.x,this.group.y=y.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=O2(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,i,n,a,o,s,l){var u=this.getContentGroup(),f=Q(),h=i.get("selectedMode"),c=i.get("triggerEvent"),v=[];n.eachRawSeries(function(d){!d.get("legendHoverLink")&&v.push(d.id)}),mf(i.getData(),function(d,y){var g=this,p=d.get("name");if(!this.newlineDisabled&&(p===""||p===`
18
- `)){var m=new po;m.newline=!0,u.add(m);return}var _=n.getSeriesByName(p)[0];if(!f.get(p))if(_){var S=_.getData(),b=S.getVisual("legendLineStyle")||{},w=S.getVisual("legendIcon"),T=S.getVisual("style"),C=this._createItem(_,p,y,d,i,e,b,T,w,h,a);C.on("click",Xi(op,p,null,a,v)).on("mouseover",Xi(_f,_.name,null,a,v)).on("mouseout",Xi(Sf,_.name,null,a,v)),n.ssr&&C.eachChild(function(x){var D=ft(x);D.seriesIndex=_.seriesIndex,D.dataIndex=y,D.ssrType="legend"}),c&&C.eachChild(function(x){g.packEventData(x,i,_,y,p)}),f.set(p,!0)}else n.eachRawSeries(function(x){var D=this;if(!f.get(p)&&x.legendVisualProvider){var L=x.legendVisualProvider;if(!L.containName(p))return;var A=L.indexOfName(p),M=L.getItemVisual(A,"style"),P=L.getItemVisual(A,"legendIcon"),N=Cr(M.fill);N&&N[3]===0&&(N[3]=.2,M=k(k({},M),{fill:us(N,"rgba")}));var H=this._createItem(x,p,y,d,i,e,{},M,P,h,a);H.on("click",Xi(op,null,p,a,v)).on("mouseover",Xi(_f,null,p,a,v)).on("mouseout",Xi(Sf,null,p,a,v)),n.ssr&&H.eachChild(function(tt){var it=ft(tt);it.seriesIndex=x.seriesIndex,it.dataIndex=y,it.ssrType="legend"}),c&&H.eachChild(function(tt){D.packEventData(tt,i,x,y,p)}),f.set(p,!0)}},this)},this),o&&this._createSelector(o,i,a,s,l)},t.prototype.packEventData=function(e,i,n,a,o){var s={componentType:"legend",componentIndex:i.componentIndex,dataIndex:a,value:o,seriesIndex:n.seriesIndex};ft(e).eventData=s},t.prototype._createSelector=function(e,i,n,a,o){var s=this.getSelectorGroup();mf(e,function(u){var f=u.type,h=new Kt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:i.id})}});s.add(h);var c=i.getModel("selectorLabel"),v=i.getModel(["emphasis","selectorLabel"]);ih(h,{normal:c,emphasis:v},{defaultText:u.title}),Hu(h)})},t.prototype._createItem=function(e,i,n,a,o,s,l,u,f,h,c){var v=e.visualDrawType,d=o.get("itemWidth"),y=o.get("itemHeight"),g=o.isSelected(i),p=a.get("symbolRotate"),m=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var S=aI(f,a,l,u,v,g,c),b=new po,w=a.getModel("textStyle");if(at(e.getLegendIcon)&&(!_||_==="inherit"))b.add(e.getLegendIcon({itemWidth:d,itemHeight:y,icon:f,iconRotate:p,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var T=_==="inherit"&&e.getData().getVisual("symbol")?p==="inherit"?e.getData().getVisual("symbolRotate"):p:0;b.add(oI({itemWidth:d,itemHeight:y,icon:f,iconRotate:T,itemStyle:S.itemStyle,symbolKeepAspect:m}))}var C=s==="left"?d+5:-5,x=s,D=o.get("formatter"),L=i;U(D)&&D?L=D.replace("{name}",i??""):at(D)&&(L=D(i));var A=g?w.getTextColor():a.get("inactiveColor");b.add(new Kt({style:Mr(w,{text:L,x:C,y:y/2,fill:A,align:x,verticalAlign:"middle"},{inheritColor:A})}));var M=new Vt({shape:b.getBoundingRect(),style:{fill:"transparent"}}),P=a.getModel("tooltip");return P.get("show")&&_s({el:M,componentModel:o,itemName:i,itemTooltipOption:P.option}),b.add(M),b.eachChild(function(N){N.silent=!0}),M.silent=!h,this.getContentGroup().add(b),Hu(b),b.__legendDataIndex=n,b},t.prototype.layoutInner=function(e,i,n,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Qn(e.get("orient"),l,e.get("itemGap"),n.width,n.height);var f=l.getBoundingRect(),h=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){Qn("horizontal",u,e.get("selectorItemGap",!0));var c=u.getBoundingRect(),v=[-c.x,-c.y],d=e.get("selectorButtonGap",!0),y=e.getOrient().index,g=y===0?"width":"height",p=y===0?"height":"width",m=y===0?"y":"x";s==="end"?v[y]+=f[g]+d:h[y]+=c[g]+d,v[1-y]+=f[p]/2-c[p]/2,u.x=v[0],u.y=v[1],l.x=h[0],l.y=h[1];var _={x:0,y:0};return _[g]=f[g]+d+c[g],_[p]=Math.max(f[p],c[p]),_[m]=Math.min(0,c[m]+v[1-y]),_}else return l.x=h[0],l.y=h[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t})(Je);function aI(r,t,e,i,n,a,o){function s(g,p){g.lineWidth==="auto"&&(g.lineWidth=p.lineWidth>0?2:0),mf(g,function(m,_){g[_]==="inherit"&&(g[_]=p[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",h=l.getShallow("decal");u.decal=!h||h==="inherit"?i.decal:af(h,o),u.fill==="inherit"&&(u.fill=i[n]),u.stroke==="inherit"&&(u.stroke=i[f]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?i:e).opacity),s(u,i);var c=t.getModel("lineStyle"),v=c.getLineStyle();if(s(v,e),u.fill==="auto"&&(u.fill=i.fill),u.stroke==="auto"&&(u.stroke=i.fill),v.stroke==="auto"&&(v.stroke=i.fill),!a){var d=t.get("inactiveBorderWidth"),y=u[f];u.lineWidth=d==="auto"?i.lineWidth>0&&y?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),v.stroke=c.get("inactiveColor"),v.lineWidth=c.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function oI(r){var t=r.icon||"roundRect",e=Ca(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill=X.color.neutral00,e.style.lineWidth=2),e}function op(r,t,e,i){Sf(r,t,e,i),e.dispatchAction({type:"legendToggleSelect",name:r??t}),_f(r,t,e,i)}function xm(r){for(var t=r.getZr().storage.getDisplayList(),e,i=0,n=t.length;i<n&&!(e=t[i].states.emphasis);)i++;return e&&e.hoverLayer}function _f(r,t,e,i){xm(e)||e.dispatchAction({type:"highlight",seriesName:r,name:t,excludeSeriesId:i})}function Sf(r,t,e,i){xm(e)||e.dispatchAction({type:"downplay",seriesName:r,name:t,excludeSeriesId:i})}function sI(r){var t=r.findComponents({mainType:"legend"});t&&t.length&&r.filterSeries(function(e){for(var i=0;i<t.length;i++)if(!t[i].isSelected(e.name))return!1;return!0})}function kn(r,t,e){var i=r==="allSelect"||r==="inverseSelect",n={},a=[];e.eachComponent({mainType:"legend",query:t},function(s){i?s[r]():s[r](t.name),sp(s,n),a.push(s.componentIndex)});var o={};return e.eachComponent("legend",function(s){I(n,function(l,u){s[l?"select":"unSelect"](u)}),sp(s,o)}),i?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function sp(r,t){var e=t||{};return I(r.getData(),function(i){var n=i.get("name");if(!(n===`
19
- `||n==="")){var a=r.isSelected(n);Pe(e,n)?e[n]=e[n]&&a:e[n]=a}}),e}function lI(r){r.registerAction("legendToggleSelect","legendselectchanged",Pt(kn,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",Pt(kn,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",Pt(kn,"inverseSelect")),r.registerAction("legendSelect","legendselected",Pt(kn,"select")),r.registerAction("legendUnSelect","legendunselected",Pt(kn,"unSelect"))}function Cm(r){r.registerComponentModel(yf),r.registerComponentView(Tm),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,sI),r.registerSubTypeDefaulter("legend",function(){return"plain"}),lI(r)}var uI=(function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(e,i,n){var a=lh(e);r.prototype.init.call(this,e,i,n),lp(this,e,a)},t.prototype.mergeOption=function(e,i){r.prototype.mergeOption.call(this,e,i),lp(this,this.option,e)},t.type="legend.scroll",t.defaultOption=Aw(yf.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:X.color.accent50,pageIconInactiveColor:X.color.accent10,pageIconSize:15,pageTextStyle:{color:X.color.tertiary},animationDurationUpdate:800}),t})(yf);function lp(r,t,e){var i=r.getOrient(),n=[1,1];n[i.index]=0,va(t,e,{type:"box",ignoreSize:!!n})}var up=Et,ou=["width","height"],su=["x","y"],fI=(function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!0,e._currentIndex=0,e}return t.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new up),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new up)},t.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(e,i,n,a,o,s,l){var u=this;r.prototype.renderInner.call(this,e,i,n,a,o,s,l);var f=this._controllerGroup,h=i.get("pageIconSize",!0),c=V(h)?h:[h,h];d("pagePrev",0);var v=i.getModel("pageTextStyle");f.add(new Kt({name:"pageText",style:{text:"xx/xx",fill:v.getTextColor(),font:v.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(y,g){var p=y+"DataIndex",m=th(i.get("pageIcons",!0)[i.getOrient().name][g],{onclick:ht(u._pageGo,u,p,i,a)},{x:-c[0]/2,y:-c[1]/2,width:c[0],height:c[1]});m.name=y,f.add(m)}},t.prototype.layoutInner=function(e,i,n,a,o,s){var l=this.getSelectorGroup(),u=e.getOrient().index,f=ou[u],h=su[u],c=ou[1-u],v=su[1-u];o&&Qn("horizontal",l,e.get("selectorItemGap",!0));var d=e.get("selectorButtonGap",!0),y=l.getBoundingRect(),g=[-y.x,-y.y],p=et(n);o&&(p[f]=n[f]-y[f]-d);var m=this._layoutContentAndController(e,a,p,u,f,c,v,h);if(o){if(s==="end")g[u]+=m[f]+d;else{var _=y[f]+d;g[u]-=_,m[h]-=_}m[f]+=y[f]+d,g[1-u]+=m[v]+m[c]/2-y[c]/2,m[c]=Math.max(m[c],y[c]),m[v]=Math.min(m[v],y[v]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return m},t.prototype._layoutContentAndController=function(e,i,n,a,o,s,l,u){var f=this.getContentGroup(),h=this._containerGroup,c=this._controllerGroup;Qn(e.get("orient"),f,e.get("itemGap"),a?n.width:null,a?null:n.height),Qn("horizontal",c,e.get("pageButtonItemGap",!0));var v=f.getBoundingRect(),d=c.getBoundingRect(),y=this._showController=v[o]>n[o],g=[-v.x,-v.y];i||(g[a]=f[u]);var p=[0,0],m=[-d.x,-d.y],_=$(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(y){var S=e.get("pageButtonPosition",!0);S==="end"?m[a]+=n[o]-d[o]:p[a]+=d[o]+_}m[1-a]+=v[s]/2-d[s]/2,f.setPosition(g),h.setPosition(p),c.setPosition(m);var b={x:0,y:0};if(b[o]=y?n[o]:v[o],b[s]=Math.max(v[s],d[s]),b[l]=Math.min(0,d[l]+m[1-a]),h.__rectSize=n[o],y){var w={x:0,y:0};w[o]=Math.max(n[o]-d[o]-_,0),w[s]=b[s],h.setClipPath(new Vt({shape:w})),h.__rectSize=w[o]}else c.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var T=this._getPageInfo(e);return T.pageIndex!=null&&Er(f,{x:T.contentPosition[0],y:T.contentPosition[1]},y?e:null),this._updatePageInfoView(e,T),b},t.prototype._pageGo=function(e,i,n){var a=this._getPageInfo(i)[e];a!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:i.id})},t.prototype._updatePageInfoView=function(e,i){var n=this._controllerGroup;I(["pagePrev","pageNext"],function(f){var h=f+"DataIndex",c=i[h]!=null,v=n.childOfName(f);v&&(v.setStyle("fill",c?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),v.cursor=c?"pointer":"default")});var a=n.childOfName("pageText"),o=e.get("pageFormatter"),s=i.pageIndex,l=s!=null?s+1:0,u=i.pageCount;a&&o&&a.setStyle("text",U(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(e){var i=e.get("scrollDataIndex",!0),n=this.getContentGroup(),a=this._containerGroup.__rectSize,o=e.getOrient().index,s=ou[o],l=su[o],u=this._findTargetItemIndex(i),f=n.children(),h=f[u],c=f.length,v=c?1:0,d={contentPosition:[n.x,n.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return d;var y=S(h);d.contentPosition[o]=-y.s;for(var g=u+1,p=y,m=y,_=null;g<=c;++g)_=S(f[g]),(!_&&m.e>p.s+a||_&&!b(_,p.s))&&(m.i>p.i?p=m:p=_,p&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=p.i),++d.pageCount)),m=_;for(var g=u-1,p=y,m=y,_=null;g>=-1;--g)_=S(f[g]),(!_||!b(m,_.s))&&p.i<m.i&&(m=p,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=p.i),++d.pageCount,++d.pageIndex),p=_;return d;function S(w){if(w){var T=w.getBoundingRect(),C=T[l]+w[l];return{s:C,e:C+T[s],i:w.__legendDataIndex}}}function b(w,T){return w.e>=T&&w.s<=T+a}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var i,n=this.getContentGroup(),a;return n.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===e&&(i=s)}),i??a},t.type="legend.scroll",t})(Tm);function hI(r){r.registerAction("legendScroll","legendscroll",function(t,e){var i=t.scrollDataIndex;i!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(n){n.setScrollDataIndex(i)})})}function cI(r){fn(Cm),r.registerComponentModel(uI),r.registerComponentView(fI),hI(r)}function vI(r){fn(Cm),fn(cI)}function Da(r){if(!r)return null;const t=r.trim();try{return JSON.parse(t)}catch{const e=t.match(/(\[[\s\S]*\]|\{[\s\S]*\})/);if(!e)return null;try{return JSON.parse(e[1])}catch{return null}}}function wf(r,t=0){if(!r||typeof r!="object")return null;const e=r.id||r.entity_id||"";if(!e)return null;const i=Array.isArray(r.tags)?r.tags:typeof r.tags=="string"&&r.tags.length>0?r.tags.split(",").map(n=>n.trim()).filter(Boolean):[];return{key:e,id:e,name:r.name||"",type:r.type||"",tags:i,properties:r.properties&&typeof r.properties=="object"?r.properties:null,createdAt:r.created_at||r.createdAt||"",updatedAt:r.updated_at||r.updatedAt||"",_idx:t}}function fp(r,t=0){if(!r||typeof r!="object")return null;const e=r.id||r.relation_id||"";if(!e)return null;const i=r.sourceId||r.source_id||"",n=r.targetId||r.target_id||"";if(!i||!n)return null;const a=typeof r.weight=="number"?r.weight:typeof r.weight=="string"?parseFloat(r.weight):1;return{key:e,id:e,sourceId:i,targetId:n,relationType:r.relationType||r.relation_type||"",weight:Number.isFinite(a)?a:1,properties:r.properties&&typeof r.properties=="object"?r.properties:null,createdAt:r.created_at||r.createdAt||"",_idx:t}}function dI(r){const t=Da(r);return Array.isArray(t)?t.map(wf).filter(Boolean):t&&Array.isArray(t.entities)?t.entities.map(wf).filter(Boolean):[]}function pI(r){const t=Da(r);return Array.isArray(t)?t.map(fp).filter(Boolean):t&&Array.isArray(t.relations)?t.relations.map(fp).filter(Boolean):[]}function gI(r){const t=Da(r);if(!t||typeof t!="object"||Array.isArray(t))return{entityCount:0,relationCount:0,avgDegree:0,density:0,typeDistribution:{},relationTypeDistribution:{}};const e=i=>{const n=typeof i=="number"?i:parseFloat(i);return Number.isFinite(n)?n:0};return{entityCount:e(t.entityCount??t.entity_count),relationCount:e(t.relationCount??t.relation_count),avgDegree:e(t.avgDegree??t.avg_degree),density:e(t.density),typeDistribution:t.typeDistribution||t.type_distribution||{},relationTypeDistribution:t.relationTypeDistribution||t.relation_type_distribution||{}}}function yI(r){const t=Da(r);return Array.isArray(t)?t.map((e,i)=>{if(!e||typeof e!="object"||!e.entity)return null;const n=wf(e.entity,i);return n?{key:`${n.id}-${i}`,depth:typeof e.depth=="number"?e.depth:0,entity:n}:null}).filter(Boolean):[]}function mI(r){const t=Da(r);return Array.isArray(t)?t.map(e=>!e||typeof e!="object"||!e.name?null:{name:String(e.name),description:String(e.description||"")}).filter(Boolean):[]}function _I(r,t){const e=new Map,i=[];for(const s of r)e.has(s.type)||(e.set(s.type,i.length),i.push({name:s.type||"unknown"}));const n=r.map(s=>({id:s.id,name:s.name||s.id.slice(0,8),category:e.get(s.type)??0,value:1,symbolSize:24})),a=new Set(r.map(s=>s.id)),o=[];for(const s of t)!a.has(s.sourceId)||!a.has(s.targetId)||o.push({source:s.sourceId,target:s.targetId,value:s.relationType,lineStyle:{width:Math.max(1,Math.min(6,s.weight*2))}});return{nodes:n,links:o,categories:i}}const SI={style:{display:"flex","align-items":"center","justify-content":"space-between","margin-bottom":"24px"}},wI={key:0,style:{padding:"60px","text-align":"center"}},bI={key:1,style:{height:"540px"}},TI={key:0,style:{color:"#888","font-family":"monospace","font-size":"11px"}},xI={key:1,style:{color:"var(--text-primary)"}},CI={key:0,style:{color:"var(--text-muted)"}},DI={key:0,style:{color:"#888","font-family":"monospace","font-size":"11px"}},II={key:1,style:{color:"var(--text-muted)"}},LI={key:2,style:{color:"#888","font-family":"monospace","font-size":"11px"}},MI={key:4,style:{color:"var(--text-secondary)","font-family":"monospace"}},AI={key:0,style:{padding:"40px","text-align":"center",color:"var(--text-muted)"}},PI={style:{display:"flex","justify-content":"space-between","margin-bottom":"4px"}},RI={style:{color:"var(--text-secondary)","font-family":"monospace"}},EI={key:0,style:{padding:"40px","text-align":"center",color:"var(--text-muted)"}},kI={style:{display:"flex","justify-content":"space-between","margin-bottom":"4px"}},OI={style:{color:"var(--text-secondary)","font-family":"monospace"}},BI={style:{color:"var(--text-muted)","font-size":"11px"}},NI={key:0,style:{padding:"30px","text-align":"center",color:"var(--text-muted)"}},zI={style:{"margin-left":"12px",color:"var(--text-primary)"}},FI={style:{"margin-left":"8px",color:"#888","font-family":"monospace","font-size":"11px"}},HI={__name:"KnowledgeGraph",setup(r){fn([GC,u2,tI,vI,iI]);const t=Nm(),e=Bt(!1),i=Bt(!1),n=Bt(!1),a=Bt(!1),o=Bt(!1),s=Bt(""),l=Bt(!1),u=Bt("graph"),f=Bt([]),h=Bt([]),c=Bt([]),v=Bt({entityCount:0,relationCount:0,avgDegree:0,density:0,typeDistribution:{},relationTypeDistribution:{}}),d=Bt(!1),y=Bt(!1),g=Bt(!1),p=Ns({name:"",type:"",tags:""}),m=Ns({sourceId:"",targetId:"",relationType:"",weight:1}),_=Ns({maxDepth:3,direction:"out"}),S=Bt(""),b=Bt(""),w=Bt([]),T=[{title:"ID",key:"id",width:"120px"},{title:"名称",key:"name",dataIndex:"name",ellipsis:!0},{title:"类型",key:"type",dataIndex:"type",width:"140px"},{title:"标签",key:"tags",width:"200px"},{title:"操作",key:"action",width:"160px"}],C=[{title:"源",key:"source",width:"120px"},{title:"",key:"arrow",width:"40px"},{title:"目标",key:"target",width:"120px"},{title:"关系",key:"relationType",width:"160px"},{title:"权重",key:"weight",width:"100px"}],x={Person:"magenta",Organization:"blue",Project:"cyan",Technology:"geekblue",Document:"gold",Concept:"purple",Event:"volcano"};function D(F){return x[F]||"default"}const L=Ue(()=>{const F=new Map;for(const R of f.value)F.set(R.id,R.name||R.id.slice(0,8));return F});function A(F){return L.value.get(F)||F.slice(0,12)}function M(F,R){return String(R?.children?.[0]?.children||"").toLowerCase().includes(String(F).toLowerCase())}const P=Ue(()=>{const F=v.value.typeDistribution||{},R=Object.values(F).reduce((Z,j)=>Z+j,0)||1;return Object.entries(F).map(([Z,j])=>({type:Z,count:j,percent:Math.round(j/R*100)})).sort((Z,j)=>j.count-Z.count)}),N=Ue(()=>{const F=v.value.relationTypeDistribution||{},R=Object.values(F).reduce((Z,j)=>Z+j,0)||1;return Object.entries(F).map(([Z,j])=>({type:Z,count:j,percent:Math.round(j/R*100)})).sort((Z,j)=>j.count-Z.count)}),H=Ue(()=>{const{nodes:F,links:R,categories:Z}=_I(f.value,h.value);return{tooltip:{show:!0},legend:[{data:Z.map(j=>j.name),textStyle:{color:"#aaa"},bottom:0}],series:[{type:"graph",layout:"force",data:F,links:R,categories:Z,roam:!0,label:{show:!0,position:"right",color:"#ddd",fontSize:11},lineStyle:{color:"source",curveness:.1,opacity:.6},emphasis:{focus:"adjacency",lineStyle:{width:4}},force:{repulsion:180,edgeLength:[60,140],gravity:.05}}]}});async function tt(){i.value=!0;try{await Promise.all([it(),nt(),rt()])}finally{i.value=!1}}async function it(){try{const{output:F}=await t.execute("kg list --limit 500 --json",15e3);f.value=dI(F)}catch(F){Nt.error("加载实体失败: "+F.message),f.value=[]}}async function nt(){try{const{output:F}=await t.execute("kg relations --limit 1000 --json",15e3);h.value=pI(F)}catch(F){Nt.error("加载关系失败: "+F.message),h.value=[]}}async function rt(){try{const{output:F}=await t.execute("kg stats --json",1e4);v.value=gI(F)}catch(F){Nt.error("加载统计失败: "+F.message)}}async function Tt(){if(!(c.value.length>0)){n.value=!0;try{const{output:F}=await t.execute("kg entity-types --json",1e4);c.value=mI(F)}catch(F){Nt.error("加载实体类型失败: "+F.message)}finally{n.value=!1}}}async function st(){if(!p.name.trim()||!p.type){Nt.warning("请输入名称并选择类型");return}a.value=!0;try{let R=`kg add "${p.name.trim().replace(/"/g,'\\"')}" ${p.type} --json`;p.tags.trim()&&(R+=` --tags "${p.tags.trim().replace(/"/g,'\\"')}"`);const{output:Z,exitCode:j}=await t.execute(R,15e3);j!==0||/error|失败/i.test(Z)?Nt.error("添加失败: "+Z.slice(0,120)):(Nt.success("实体已添加"),d.value=!1,p.name="",p.type="",p.tags="",await tt())}catch(F){Nt.error("添加失败: "+F.message)}finally{a.value=!1}}async function Mt(){if(!m.sourceId||!m.targetId||!m.relationType.trim()){Nt.warning("请填写源、目标和关系类型");return}if(m.sourceId===m.targetId){Nt.warning("源和目标不能是同一实体");return}o.value=!0;try{const F=m.relationType.trim().replace(/"/g,'\\"'),R=`kg add-relation ${m.sourceId} ${m.targetId} "${F}" --weight ${m.weight} --json`,{output:Z,exitCode:j}=await t.execute(R,15e3);j!==0||/error|失败/i.test(Z)?Nt.error("添加失败: "+Z.slice(0,120)):(Nt.success("关系已添加"),y.value=!1,m.sourceId="",m.targetId="",m.relationType="",m.weight=1,await tt())}catch(F){Nt.error("添加失败: "+F.message)}finally{o.value=!1}}async function kt(F){s.value=F.id;try{const{output:R,exitCode:Z}=await t.execute(`kg remove ${F.id}`,15e3);Z!==0||/error|失败/i.test(R)?Nt.error("删除失败: "+R.slice(0,120)):(Nt.success("实体已删除"),await tt())}catch(R){Nt.error("删除失败: "+R.message)}finally{s.value=""}}function pe(F){S.value=F.id,b.value=F.name,w.value=[],g.value=!0}async function ge(){l.value=!0;try{const F=`kg reason ${S.value} --max-depth ${_.maxDepth} --direction ${_.direction} --json`,{output:R}=await t.execute(F,15e3);w.value=yI(R),w.value.length===0&&Nt.info("从该实体无可达节点")}catch(F){Nt.error("推理失败: "+F.message)}finally{l.value=!1}}return cp(()=>{tt(),Tt()}),(F,R)=>{const Z=_t("a-button"),j=_t("a-space"),W=_t("a-statistic"),K=_t("a-card"),jt=_t("a-col"),Ot=_t("a-row"),Ia=_t("a-alert"),La=_t("a-tooltip"),Rs=_t("a-empty"),Ma=_t("a-tab-pane"),kr=_t("a-tag"),Dm=_t("a-popconfirm"),Rh=_t("a-table"),Eh=_t("a-progress"),Im=_t("a-tabs"),Es=_t("a-input"),Ne=_t("a-form-item"),Ci=_t("a-select-option"),Aa=_t("a-select"),ks=_t("a-form"),Os=_t("a-modal"),kh=_t("a-input-number"),Lm=_t("a-list-item"),Mm=_t("a-list");return lt(),Dt("div",null,[ye("div",SI,[R[18]||(R[18]=ye("div",null,[ye("h2",{class:"page-title"},"知识图谱"),ye("p",{class:"page-sub"},"实体 / 关系 / 多跳推理 / 力导向图谱")],-1)),E(j,null,{default:O(()=>[E(Z,{loading:i.value,onClick:tt},{icon:O(()=>[E(_e(Fm))]),default:O(()=>[R[15]||(R[15]=St(" 刷新 ",-1))]),_:1},8,["loading"]),E(Z,{type:"primary",onClick:R[0]||(R[0]=B=>d.value=!0)},{icon:O(()=>[E(_e(Hm))]),default:O(()=>[R[16]||(R[16]=St(" 添加实体 ",-1))]),_:1}),E(Z,{onClick:R[1]||(R[1]=B=>y.value=!0),disabled:f.value.length<2},{icon:O(()=>[E(_e(zs))]),default:O(()=>[R[17]||(R[17]=St(" 添加关系 ",-1))]),_:1},8,["disabled"])]),_:1})]),E(Ot,{gutter:[16,16],style:{"margin-bottom":"20px"}},{default:O(()=>[E(jt,{xs:24,sm:12,lg:6},{default:O(()=>[E(K,{style:{background:"var(--bg-card)","border-color":"var(--border-color)"}},{default:O(()=>[E(W,{title:"实体数量",value:v.value.entityCount,"value-style":{color:"#1677ff",fontSize:"20px"}},{prefix:O(()=>[E(_e(Oh))]),_:1},8,["value"])]),_:1})]),_:1}),E(jt,{xs:24,sm:12,lg:6},{default:O(()=>[E(K,{style:{background:"var(--bg-card)","border-color":"var(--border-color)"}},{default:O(()=>[E(W,{title:"关系数量",value:v.value.relationCount,"value-style":{color:"#52c41a",fontSize:"20px"}},{prefix:O(()=>[E(_e(zs))]),_:1},8,["value"])]),_:1})]),_:1}),E(jt,{xs:24,sm:12,lg:6},{default:O(()=>[E(K,{style:{background:"var(--bg-card)","border-color":"var(--border-color)"}},{default:O(()=>[E(W,{title:"平均度",value:v.value.avgDegree,precision:2,"value-style":{color:"#faad14",fontSize:"20px"}},null,8,["value"])]),_:1})]),_:1}),E(jt,{xs:24,sm:12,lg:6},{default:O(()=>[E(K,{style:{background:"var(--bg-card)","border-color":"var(--border-color)"}},{default:O(()=>[E(W,{title:"密度",value:v.value.density,precision:4,"value-style":{color:"#722ed1",fontSize:"20px"}},null,8,["value"])]),_:1})]),_:1})]),_:1}),e.value?Jt("",!0):(lt(),er(Ia,{key:0,message:"仅 Web 模式",description:"AI 自动抽取(从笔记/对话生成实体与关系)仅在桌面端可用,本页面禁用相关按钮。所有 CRUD/推理/统计操作通过 CLI 转发执行。",type:"info","show-icon":"",closable:"",style:{"margin-bottom":"16px"}})),E(Im,{activeKey:u.value,"onUpdate:activeKey":R[2]||(R[2]=B=>u.value=B),type:"card"},{default:O(()=>[E(Ma,{key:"graph"},{tab:O(()=>[E(_e(Gm)),R[19]||(R[19]=St(" 图谱 ",-1))]),default:O(()=>[E(K,{style:{background:"var(--bg-card)","border-color":"var(--border-color)"}},{extra:O(()=>[E(j,null,{default:O(()=>[E(La,{title:"桌面应用专属:从笔记/对话/文档 AI 抽取实体与关系"},{default:O(()=>[E(Z,{disabled:"",size:"small"},{icon:O(()=>[E(_e(Vm))]),default:O(()=>[R[20]||(R[20]=St(" AI 重建 ",-1))]),_:1})]),_:1}),R[21]||(R[21]=ye("span",{style:{color:"var(--text-muted)","font-size":"11px"}},"需桌面端",-1))]),_:1})]),default:O(()=>[f.value.length===0?(lt(),Dt("div",wI,[E(Rs,{description:"暂无实体数据。点击「添加实体」开始构建知识图谱"})])):(lt(),Dt("div",bI,[E(_e(NC),{option:H.value,autoresize:""},null,8,["option"])]))]),_:1})]),_:1}),E(Ma,{key:"entities"},{tab:O(()=>[E(_e(Oh)),St(" 实体("+wt(f.value.length)+") ",1)]),default:O(()=>[E(Rh,{columns:T,"data-source":f.value,pagination:{pageSize:20,showTotal:B=>`共 ${B} 条`},size:"small",style:{background:"var(--bg-card)"},"row-class-name":()=>"kg-row"},{bodyCell:O(({column:B,record:Qt})=>[B.key==="id"?(lt(),Dt("span",TI,wt(Qt.id.slice(0,12)),1)):Jt("",!0),B.key==="name"?(lt(),Dt("span",xI,wt(Qt.name),1)):Jt("",!0),B.key==="type"?(lt(),er(kr,{key:2,color:D(Qt.type)},{default:O(()=>[St(wt(Qt.type),1)]),_:2},1032,["color"])):Jt("",!0),B.key==="tags"?(lt(),Dt(Or,{key:3},[(lt(!0),Dt(Or,null,Di(Qt.tags,Pa=>(lt(),er(kr,{key:Pa,color:"default"},{default:O(()=>[St(wt(Pa),1)]),_:2},1024))),128)),Qt.tags.length===0?(lt(),Dt("span",CI,"-")):Jt("",!0)],64)):Jt("",!0),B.key==="action"?(lt(),er(j,{key:4,size:"small"},{default:O(()=>[E(Z,{size:"small",type:"link",onClick:Pa=>pe(Qt)},{default:O(()=>[...R[22]||(R[22]=[St(" 推理 ",-1)])]),_:1},8,["onClick"]),E(Dm,{title:"删除实体?关联的关系将级联删除。","ok-text":"删除","ok-type":"danger","cancel-text":"取消",onConfirm:Pa=>kt(Qt)},{default:O(()=>[E(Z,{size:"small",type:"link",danger:"",loading:s.value===Qt.id},{default:O(()=>[...R[23]||(R[23]=[St(" 删除 ",-1)])]),_:1},8,["loading"])]),_:2},1032,["onConfirm"])]),_:2},1024)):Jt("",!0)]),emptyText:O(()=>[E(Rs,{description:"暂无实体"})]),_:1},8,["data-source","pagination"])]),_:1}),E(Ma,{key:"relations"},{tab:O(()=>[E(_e(zs)),St(" 关系("+wt(h.value.length)+") ",1)]),default:O(()=>[E(Rh,{columns:C,"data-source":h.value,pagination:{pageSize:20,showTotal:B=>`共 ${B} 条`},size:"small",style:{background:"var(--bg-card)"},"row-class-name":()=>"kg-row"},{bodyCell:O(({column:B,record:Qt})=>[B.key==="source"?(lt(),Dt("span",DI,wt(A(Qt.sourceId)),1)):Jt("",!0),B.key==="arrow"?(lt(),Dt("span",II,"→")):Jt("",!0),B.key==="target"?(lt(),Dt("span",LI,wt(A(Qt.targetId)),1)):Jt("",!0),B.key==="relationType"?(lt(),er(kr,{key:3,color:"cyan"},{default:O(()=>[St(wt(Qt.relationType),1)]),_:2},1024)):Jt("",!0),B.key==="weight"?(lt(),Dt("span",MI,wt(Qt.weight.toFixed(2)),1)):Jt("",!0)]),emptyText:O(()=>[E(Rs,{description:"暂无关系"})]),_:1},8,["data-source","pagination"])]),_:1}),E(Ma,{key:"distribution"},{tab:O(()=>[E(_e(Um)),R[24]||(R[24]=St(" 分布 ",-1))]),default:O(()=>[E(Ot,{gutter:[24,24]},{default:O(()=>[E(jt,{xs:24,md:12},{default:O(()=>[E(K,{title:"实体类型分布",style:{background:"var(--bg-card)","border-color":"var(--border-color)"}},{default:O(()=>[P.value.length===0?(lt(),Dt("div",AI," 暂无数据 ")):Jt("",!0),(lt(!0),Dt(Or,null,Di(P.value,B=>(lt(),Dt("div",{key:B.type,style:{"margin-bottom":"8px"}},[ye("div",PI,[E(kr,{color:D(B.type)},{default:O(()=>[St(wt(B.type),1)]),_:2},1032,["color"]),ye("span",RI,wt(B.count),1)]),E(Eh,{percent:B.percent,"show-info":!1,"stroke-color":"#1677ff"},null,8,["percent"])]))),128))]),_:1})]),_:1}),E(jt,{xs:24,md:12},{default:O(()=>[E(K,{title:"关系类型分布",style:{background:"var(--bg-card)","border-color":"var(--border-color)"}},{default:O(()=>[N.value.length===0?(lt(),Dt("div",EI," 暂无数据 ")):Jt("",!0),(lt(!0),Dt(Or,null,Di(N.value,B=>(lt(),Dt("div",{key:B.type,style:{"margin-bottom":"8px"}},[ye("div",kI,[E(kr,{color:"cyan"},{default:O(()=>[St(wt(B.type),1)]),_:2},1024),ye("span",OI,wt(B.count),1)]),E(Eh,{percent:B.percent,"show-info":!1,"stroke-color":"#52c41a"},null,8,["percent"])]))),128))]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["activeKey"]),E(Os,{open:d.value,"onUpdate:open":R[6]||(R[6]=B=>d.value=B),title:"添加实体","confirm-loading":a.value,onOk:st,"ok-text":"添加","cancel-text":"取消"},{default:O(()=>[E(ks,{"label-col":{span:6},"wrapper-col":{span:18},style:{"margin-top":"16px"}},{default:O(()=>[E(Ne,{label:"名称",required:""},{default:O(()=>[E(Es,{value:p.name,"onUpdate:value":R[3]||(R[3]=B=>p.name=B),placeholder:"实体名称(如 Alice / ChainlessChain / RAG)"},null,8,["value"])]),_:1}),E(Ne,{label:"类型",required:""},{default:O(()=>[E(Aa,{value:p.type,"onUpdate:value":R[4]||(R[4]=B=>p.type=B),placeholder:"请选择实体类型",loading:n.value},{default:O(()=>[(lt(!0),Dt(Or,null,Di(c.value,B=>(lt(),er(Ci,{key:B.name,value:B.name},{default:O(()=>[St(wt(B.name)+" ",1),ye("span",BI,"— "+wt(B.description),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","loading"])]),_:1}),E(Ne,{label:"标签"},{default:O(()=>[E(Es,{value:p.tags,"onUpdate:value":R[5]||(R[5]=B=>p.tags=B),placeholder:"逗号分隔,如 ai, project"},null,8,["value"])]),_:1})]),_:1})]),_:1},8,["open","confirm-loading"]),E(Os,{open:y.value,"onUpdate:open":R[11]||(R[11]=B=>y.value=B),title:"添加关系","confirm-loading":o.value,onOk:Mt,"ok-text":"添加","cancel-text":"取消"},{default:O(()=>[E(ks,{"label-col":{span:6},"wrapper-col":{span:18},style:{"margin-top":"16px"}},{default:O(()=>[E(Ne,{label:"源实体",required:""},{default:O(()=>[E(Aa,{value:m.sourceId,"onUpdate:value":R[7]||(R[7]=B=>m.sourceId=B),placeholder:"选择源实体","show-search":"","filter-option":M},{default:O(()=>[(lt(!0),Dt(Or,null,Di(f.value,B=>(lt(),er(Ci,{key:B.id,value:B.id},{default:O(()=>[St(wt(B.name)+" ("+wt(B.type)+") ",1)]),_:2},1032,["value"]))),128))]),_:1},8,["value"])]),_:1}),E(Ne,{label:"目标实体",required:""},{default:O(()=>[E(Aa,{value:m.targetId,"onUpdate:value":R[8]||(R[8]=B=>m.targetId=B),placeholder:"选择目标实体","show-search":"","filter-option":M},{default:O(()=>[(lt(!0),Dt(Or,null,Di(f.value,B=>(lt(),er(Ci,{key:B.id,value:B.id,disabled:B.id===m.sourceId},{default:O(()=>[St(wt(B.name)+" ("+wt(B.type)+") ",1)]),_:2},1032,["value","disabled"]))),128))]),_:1},8,["value"])]),_:1}),E(Ne,{label:"关系类型",required:""},{default:O(()=>[E(Es,{value:m.relationType,"onUpdate:value":R[9]||(R[9]=B=>m.relationType=B),placeholder:"如 知道 / 属于 / 创建"},null,8,["value"])]),_:1}),E(Ne,{label:"权重"},{default:O(()=>[E(kh,{value:m.weight,"onUpdate:value":R[10]||(R[10]=B=>m.weight=B),min:.1,max:10,step:.1,style:{width:"100%"}},null,8,["value"])]),_:1})]),_:1})]),_:1},8,["open","confirm-loading"]),E(Os,{open:g.value,"onUpdate:open":R[14]||(R[14]=B=>g.value=B),title:`多跳推理:${b.value}`,width:640,footer:null},{default:O(()=>[E(ks,{layout:"inline",style:{"margin-bottom":"16px"}},{default:O(()=>[E(Ne,{label:"最大深度"},{default:O(()=>[E(kh,{value:_.maxDepth,"onUpdate:value":R[12]||(R[12]=B=>_.maxDepth=B),min:1,max:10},null,8,["value"])]),_:1}),E(Ne,{label:"方向"},{default:O(()=>[E(Aa,{value:_.direction,"onUpdate:value":R[13]||(R[13]=B=>_.direction=B),style:{width:"100px"}},{default:O(()=>[E(Ci,{value:"out"},{default:O(()=>[...R[25]||(R[25]=[St("出",-1)])]),_:1}),E(Ci,{value:"in"},{default:O(()=>[...R[26]||(R[26]=[St("入",-1)])]),_:1}),E(Ci,{value:"both"},{default:O(()=>[...R[27]||(R[27]=[St("双向",-1)])]),_:1})]),_:1},8,["value"])]),_:1}),E(Ne,null,{default:O(()=>[E(Z,{type:"primary",loading:l.value,onClick:ge},{default:O(()=>[...R[28]||(R[28]=[St(" 执行 ",-1)])]),_:1},8,["loading"])]),_:1})]),_:1}),w.value.length===0&&!l.value?(lt(),Dt("div",NI," 点击「执行」查看从此实体出发可达的实体 ")):(lt(),er(Mm,{key:1,"data-source":w.value,size:"small"},{renderItem:O(({item:B})=>[E(Lm,null,{default:O(()=>[E(kr,{color:"purple"},{default:O(()=>[St("depth="+wt(B.depth),1)]),_:2},1024),E(kr,{color:D(B.entity.type),style:{"margin-left":"8px"}},{default:O(()=>[St(wt(B.entity.type),1)]),_:2},1032,["color"]),ye("span",zI,wt(B.entity.name),1),ye("span",FI,wt(B.entity.id.slice(0,12)),1)]),_:2},1024)]),_:1},8,["data-source"]))]),_:1},8,["open","title"])])}}},QI=zm(HI,[["__scopeId","data-v-1f8caef3"]]);export{QI as default};