chainlesschain 0.162.29 → 0.162.31

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 (420) hide show
  1. package/package.json +2 -2
  2. package/src/assets/web-panel/assets/AIOps-BqWP6FKu.js +1 -0
  3. package/src/assets/web-panel/assets/AIOps-CSpp7iGY.css +1 -0
  4. package/src/assets/web-panel/assets/{ActionButton-wRdLFzBQ.js → ActionButton-CXwMgOvX.js} +1 -1
  5. package/src/assets/web-panel/assets/Analytics-DAebZ4IY.js +3 -0
  6. package/src/assets/web-panel/assets/Analytics-DJcHjy5J.css +1 -0
  7. package/src/assets/web-panel/assets/AppLayout-CYsqYoME.js +9 -0
  8. package/src/assets/web-panel/assets/AppLayout-VlanTjPw.css +1 -0
  9. package/src/assets/web-panel/assets/Audit-BbTtX1Nf.js +1 -0
  10. package/src/assets/web-panel/assets/Audit-D8oxP0wr.css +1 -0
  11. package/src/assets/web-panel/assets/Backup-DgqY2Eb-.js +1 -0
  12. package/src/assets/web-panel/assets/Backup-Wi9CaP3d.css +1 -0
  13. package/src/assets/web-panel/assets/BaseInput-Cq2ZuSoO.js +1 -0
  14. package/src/assets/web-panel/assets/Chat-D2kqpUyO.js +8 -0
  15. package/src/assets/web-panel/assets/Chat-DDh58PCf.css +1 -0
  16. package/src/assets/web-panel/assets/ChatBubbleRenderer-C-svYkrC.js +1 -0
  17. package/src/assets/web-panel/assets/ChatBubbleRenderer-gy5SDGw2.css +1 -0
  18. package/src/assets/web-panel/assets/{Checkbox-DoGqmF9g.js → Checkbox-_9swHpyc.js} +1 -1
  19. package/src/assets/web-panel/assets/Codegen-BB08p1fn.css +1 -0
  20. package/src/assets/web-panel/assets/Codegen-Cr9YbCPl.js +1 -0
  21. package/src/assets/web-panel/assets/{Col-C-9-jORK.js → Col--wdpCMxx.js} +1 -1
  22. package/src/assets/web-panel/assets/Community-Cbq1nrpo.css +1 -0
  23. package/src/assets/web-panel/assets/Community-DuFcVnLu.js +1 -0
  24. package/src/assets/web-panel/assets/{Compact-CemvxU3z.js → Compact-1yzYeT04.js} +1 -1
  25. package/src/assets/web-panel/assets/Compliance-Dq3aU9Df.js +1 -0
  26. package/src/assets/web-panel/assets/Compliance-NoXr2Vof.css +1 -0
  27. package/src/assets/web-panel/assets/Cowork-BlXJRu6L.css +1 -0
  28. package/src/assets/web-panel/assets/Cowork-CrWcnIg8.js +6 -0
  29. package/src/assets/web-panel/assets/Cron-Bh6fKZ0h.js +2 -0
  30. package/src/assets/web-panel/assets/Crosschain-8ofPaWVW.js +1 -0
  31. package/src/assets/web-panel/assets/Crosschain-CgRAecoR.css +1 -0
  32. package/src/assets/web-panel/assets/DID-D3EiYm3w.js +2 -0
  33. package/src/assets/web-panel/assets/DID-DVsYcgvs.css +1 -0
  34. package/src/assets/web-panel/assets/Dashboard-BFjEdFne.js +3 -0
  35. package/src/assets/web-panel/assets/Dashboard-CAPSdFR4.css +1 -0
  36. package/src/assets/web-panel/assets/Dropdown-pYVPcP6O.js +1 -0
  37. package/src/assets/web-panel/assets/EmailListRenderer-DTPZPx_S.css +1 -0
  38. package/src/assets/web-panel/assets/EmailListRenderer-zBPodwJ1.js +1 -0
  39. package/src/assets/web-panel/assets/FamilyGuardDashboard-CyQTW6PW.js +1 -0
  40. package/src/assets/web-panel/assets/FamilyGuardDashboard-nd3idUVb.css +1 -0
  41. package/src/assets/web-panel/assets/Federation-Ctaq3zYq.js +1 -0
  42. package/src/assets/web-panel/assets/Federation-fGN6iMX_.css +1 -0
  43. package/src/assets/web-panel/assets/FormItemContext-CWYJCLq1.js +2 -0
  44. package/src/assets/web-panel/assets/GenericCardRenderer-B1g6t9R9.js +1 -0
  45. package/src/assets/web-panel/assets/GenericCardRenderer-o85VDYQS.css +1 -0
  46. package/src/assets/web-panel/assets/{Git-DPuaGtg7.css → Git-BdHhxBWR.css} +1 -1
  47. package/src/assets/web-panel/assets/Git-DH-v8iwd.js +2 -0
  48. package/src/assets/web-panel/assets/Governance-DtCS4NDm.css +1 -0
  49. package/src/assets/web-panel/assets/Governance-jZxXvOs5.js +1 -0
  50. package/src/assets/web-panel/assets/Inference-D07LRghn.js +1 -0
  51. package/src/assets/web-panel/assets/Inference-t-w0NgIS.css +1 -0
  52. package/src/assets/web-panel/assets/KnowledgeGraph-4NU1S2Xm.css +1 -0
  53. package/src/assets/web-panel/assets/KnowledgeGraph-DnGtRZhx.js +1 -0
  54. package/src/assets/web-panel/assets/Logs-D2pM9C4W.js +2 -0
  55. package/src/assets/web-panel/assets/Logs-DQbCaYhL.css +1 -0
  56. package/src/assets/web-panel/assets/Marketplace-Bvo5cuGa.css +1 -0
  57. package/src/assets/web-panel/assets/Marketplace-UyIO7C7r.js +1 -0
  58. package/src/assets/web-panel/assets/McpTools-534Q95Mx.css +1 -0
  59. package/src/assets/web-panel/assets/McpTools-Bf1gvZPf.js +7 -0
  60. package/src/assets/web-panel/assets/Memory-C1bWj4RN.js +2 -0
  61. package/src/assets/web-panel/assets/Memory-CleW_R6V.css +1 -0
  62. package/src/assets/web-panel/assets/MobileBridge-C_Ot1H_a.js +3 -0
  63. package/src/assets/web-panel/assets/MobileBridge-zJpPuf4E.css +1 -0
  64. package/src/assets/web-panel/assets/MobileProjects-BD4alw6-.css +1 -0
  65. package/src/assets/web-panel/assets/MobileProjects-zr-PpsT_.js +1 -0
  66. package/src/assets/web-panel/assets/Mtc-CXZGO9Sh.css +1 -0
  67. package/src/assets/web-panel/assets/Mtc-CnzFUz5J.js +6 -0
  68. package/src/assets/web-panel/assets/MtcAudit-C1JM8esp.css +1 -0
  69. package/src/assets/web-panel/assets/MtcAudit-CAAh99wz.js +19 -0
  70. package/src/assets/web-panel/assets/Multisig-BryR2Jpr.css +1 -0
  71. package/src/assets/web-panel/assets/Multisig-D6IAg6HE.js +13 -0
  72. package/src/assets/web-panel/assets/NLProgramming-BFMarxb0.js +1 -0
  73. package/src/assets/web-panel/assets/NLProgramming-DGDHq6Z9.css +1 -0
  74. package/src/assets/web-panel/assets/Notes-BKKmMtqV.css +1 -0
  75. package/src/assets/web-panel/assets/Notes-BRp9ro3t.js +7 -0
  76. package/src/assets/web-panel/assets/NotificationSettings-C0Au3Cxb.js +1 -0
  77. package/src/assets/web-panel/assets/NotificationSettings-CG3Kfuef.css +1 -0
  78. package/src/assets/web-panel/assets/OrderTableRenderer-CfrDjSHT.css +1 -0
  79. package/src/assets/web-panel/assets/OrderTableRenderer-ISp6btRY.js +1 -0
  80. package/src/assets/web-panel/assets/Organization-DYoxLBRX.js +4 -0
  81. package/src/assets/web-panel/assets/Organization-LVvqwG0D.css +1 -0
  82. package/src/assets/web-panel/assets/{Overflow-BFxt7NlK.js → Overflow-rO8JJWGJ.js} +1 -1
  83. package/src/assets/web-panel/assets/{OverrideContext-C_4H9tGA.js → OverrideContext-C2r4vyBb.js} +1 -1
  84. package/src/assets/web-panel/assets/P2P-DJleeXIK.js +2 -0
  85. package/src/assets/web-panel/assets/P2P-DcFvP7F-.css +1 -0
  86. package/src/assets/web-panel/assets/PdhVaultBrowser-DM5qghFp.js +7 -0
  87. package/src/assets/web-panel/assets/PdhVaultBrowser-DZZrUOr1.css +1 -0
  88. package/src/assets/web-panel/assets/Permissions-D5v4Beya.js +4 -0
  89. package/src/assets/web-panel/assets/Permissions-DsPE_IQy.css +1 -0
  90. package/src/assets/web-panel/assets/PersonalDataHub-BhpRlh9D.css +1 -0
  91. package/src/assets/web-panel/assets/PersonalDataHub-c2ZTX0Pv.js +9 -0
  92. package/src/assets/web-panel/assets/Pipeline-BItr5CyP.css +1 -0
  93. package/src/assets/web-panel/assets/Pipeline-Crrkyhpz.js +1 -0
  94. package/src/assets/web-panel/assets/Privacy-DZVyrJKa.js +1 -0
  95. package/src/assets/web-panel/assets/Privacy-F_ENsxZk.css +1 -0
  96. package/src/assets/web-panel/assets/ProjectInit-B86LEzDL.css +1 -0
  97. package/src/assets/web-panel/assets/ProjectInit-DKg7J0gz.js +2 -0
  98. package/src/assets/web-panel/assets/ProjectSettings-3ndmTvVH.js +2 -0
  99. package/src/assets/web-panel/assets/ProjectSettings-DK7KA_iX.css +1 -0
  100. package/src/assets/web-panel/assets/Projects-CmJeUDBW.css +1 -0
  101. package/src/assets/web-panel/assets/Projects-ll5wnj2L.js +1 -0
  102. package/src/assets/web-panel/assets/Providers-BeqBVMhB.js +1 -0
  103. package/src/assets/web-panel/assets/Providers-C6q_fvea.css +1 -0
  104. package/src/assets/web-panel/assets/QuickAsk-DKAAxzuA.js +1 -0
  105. package/src/assets/web-panel/assets/Recommend-Byu7IGei.js +1 -0
  106. package/src/assets/web-panel/assets/Recommend-D_bf91K6.css +1 -0
  107. package/src/assets/web-panel/assets/Reputation-BKhWAmCu.js +1 -0
  108. package/src/assets/web-panel/assets/Reputation-DiOsOleI.css +1 -0
  109. package/src/assets/web-panel/assets/Row-BFtn11O6.js +1 -0
  110. package/src/assets/web-panel/assets/RssFeed-CjcbkyUb.css +1 -0
  111. package/src/assets/web-panel/assets/RssFeed-D5a0PT0k.js +3 -0
  112. package/src/assets/web-panel/assets/Search-DAkuaZNe.js +1 -0
  113. package/src/assets/web-panel/assets/Search-Klk29S7C.css +1 -0
  114. package/src/assets/web-panel/assets/Security-BmrukMHn.css +1 -0
  115. package/src/assets/web-panel/assets/Security-C79Ml2Ms.js +4 -0
  116. package/src/assets/web-panel/assets/Services-BBk_jH6-.js +2 -0
  117. package/src/assets/web-panel/assets/Services-DAnVNhUG.css +1 -0
  118. package/src/assets/web-panel/assets/{Skeleton-DL5ebkDK.js → Skeleton-Cy0VvL0M.js} +1 -1
  119. package/src/assets/web-panel/assets/Skills-BUu9owbR.css +1 -0
  120. package/src/assets/web-panel/assets/Skills-OQNky3uI.js +1 -0
  121. package/src/assets/web-panel/assets/Sla-CbX1f8xN.js +1 -0
  122. package/src/assets/web-panel/assets/Sla-sodqCU4a.css +1 -0
  123. package/src/assets/web-panel/assets/SpeechSettings-BIkoUjws.js +1 -0
  124. package/src/assets/web-panel/assets/SpeechSettings-CgB9nFyq.css +1 -0
  125. package/src/assets/web-panel/assets/SyncSettings-B3hJqmBP.css +1 -0
  126. package/src/assets/web-panel/assets/SyncSettings-DG6Swk7G.js +2 -0
  127. package/src/assets/web-panel/assets/Tasks-C9R8sgyi.js +1 -0
  128. package/src/assets/web-panel/assets/Tasks-nbTUVXvt.css +1 -0
  129. package/src/assets/web-panel/assets/Templates-AaJPeCIz.js +1 -0
  130. package/src/assets/web-panel/assets/Templates-CpFsKk_l.css +1 -0
  131. package/src/assets/web-panel/assets/Tenant-MuPJnOjk.css +1 -0
  132. package/src/assets/web-panel/assets/Tenant-jVFRofww.js +1 -0
  133. package/src/assets/web-panel/assets/Terminal-DHBMzfK6.js +3 -0
  134. package/src/assets/web-panel/assets/Terminal-DHoveJwj.css +1 -0
  135. package/src/assets/web-panel/assets/TimelineRenderer-9RFfOHSI.js +1 -0
  136. package/src/assets/web-panel/assets/TimelineRenderer-BlTAtkOc.css +1 -0
  137. package/src/assets/web-panel/assets/Tokens-CynVae-o.css +1 -0
  138. package/src/assets/web-panel/assets/Tokens-ZTfwuABF.js +1 -0
  139. package/src/assets/web-panel/assets/{Trigger-Rzs-a8Xf.js → Trigger-Xo7uZNQs.js} +1 -1
  140. package/src/assets/web-panel/assets/Trust-C-WrW0Fj.css +1 -0
  141. package/src/assets/web-panel/assets/Trust-C0cTPYvn.js +1 -0
  142. package/src/assets/web-panel/assets/UkeySign-DmMKio71.js +1 -0
  143. package/src/assets/web-panel/assets/VideoEditing-BDFghpzP.css +1 -0
  144. package/src/assets/web-panel/assets/VideoEditing-DP7B-oGT.js +1 -0
  145. package/src/assets/web-panel/assets/Wallet-B1kZDARo.js +4 -0
  146. package/src/assets/web-panel/assets/Wallet-DUbpTRcg.css +1 -0
  147. package/src/assets/web-panel/assets/WebAuthn-Bo5kBx27.js +5 -0
  148. package/src/assets/web-panel/assets/WebAuthn-CVAFRfCQ.css +1 -0
  149. package/src/assets/web-panel/assets/WorkflowEditor-429lPWYk.css +1 -0
  150. package/src/assets/web-panel/assets/WorkflowEditor-DGI9SNHH.js +1 -0
  151. package/src/assets/web-panel/assets/{_getTag-BVc6NQ_K.js → _getTag-DnrRH4E6.js} +1 -1
  152. package/src/assets/web-panel/assets/{chat-C7tndXfg.js → chat-y97W1CIG.js} +1 -1
  153. package/src/assets/web-panel/assets/{collapseMotion-DfnRZex1.js → collapseMotion-mxzzcDsg.js} +1 -1
  154. package/src/assets/web-panel/assets/{colors-dUAGx-eS.js → colors-DtTNo0sH.js} +1 -1
  155. package/src/assets/web-panel/assets/{compact-item-X13u92RU.js → compact-item-D0q0exuS.js} +1 -1
  156. package/src/assets/web-panel/assets/createContext-D7pLFs2I.js +1 -0
  157. package/src/assets/web-panel/assets/{debounce-D9xTw4Sx.js → debounce-CFGTTtN3.js} +1 -1
  158. package/src/assets/web-panel/assets/devWarning-BDK34w0I.js +1 -0
  159. package/src/assets/web-panel/assets/echarts-jxgIOFUZ.js +25 -0
  160. package/src/assets/web-panel/assets/{hasIn-DGFXWm7Y.js → hasIn-CXjG5B2j.js} +1 -1
  161. package/src/assets/web-panel/assets/{icons--SBOhPAi.js → icons-DP3uiYxy.js} +4 -4
  162. package/src/assets/web-panel/assets/{index-Deh_HoQ3.js → index-1dwtkcJv.js} +2 -2
  163. package/src/assets/web-panel/assets/index-4mWZhCzz.js +1 -0
  164. package/src/assets/web-panel/assets/index-6np5ESBM.js +1 -0
  165. package/src/assets/web-panel/assets/{index-Bewc5jaO.js → index-8jxbZupG.js} +1 -1
  166. package/src/assets/web-panel/assets/{index-DW1GR68q.js → index-B3y_4OdG.js} +1 -1
  167. package/src/assets/web-panel/assets/index-B4dPdrvC.js +1 -0
  168. package/src/assets/web-panel/assets/index-B6SaRuCI.js +1 -0
  169. package/src/assets/web-panel/assets/index-B9ekWb3I.js +1 -0
  170. package/src/assets/web-panel/assets/index-BJUf19Wd.js +73 -0
  171. package/src/assets/web-panel/assets/index-BO644Q4S.js +21 -0
  172. package/src/assets/web-panel/assets/index-BPXhU-jp.js +7 -0
  173. package/src/assets/web-panel/assets/index-BU944DeT.js +31 -0
  174. package/src/assets/web-panel/assets/index-B_hjkMtX.js +3 -0
  175. package/src/assets/web-panel/assets/index-BdhEYW2a.js +1 -0
  176. package/src/assets/web-panel/assets/{index-DBfn83eM.js → index-BgmvrPJH.js} +1 -1
  177. package/src/assets/web-panel/assets/index-BgyrM0UN.js +19 -0
  178. package/src/assets/web-panel/assets/{index-Cq-fdWWC.js → index-BnLrbXDA.js} +1 -1
  179. package/src/assets/web-panel/assets/{index-C54Ydkuz.js → index-BqVjUN8b.js} +4 -4
  180. package/src/assets/web-panel/assets/index-BzCPx1cq.js +21 -0
  181. package/src/assets/web-panel/assets/index-CFsPe2N7.js +3 -0
  182. package/src/assets/web-panel/assets/{index-C14mc-46.js → index-CKrbutAQ.js} +1 -1
  183. package/src/assets/web-panel/assets/index-CSdhC7Qo.js +1 -0
  184. package/src/assets/web-panel/assets/{index-BqX3jeij.js → index-Cbqu804A.js} +1 -1
  185. package/src/assets/web-panel/assets/{index-CvlrcZKy.js → index-CkGFqlYX.js} +4 -4
  186. package/src/assets/web-panel/assets/{index-CfX1DEtk.css → index-Cq93VfoF.css} +1 -1
  187. package/src/assets/web-panel/assets/index-Ct6xtKkc.js +1 -0
  188. package/src/assets/web-panel/assets/index-DY6KLlgG.js +1 -0
  189. package/src/assets/web-panel/assets/index-D_4WcI1V.js +13 -0
  190. package/src/assets/web-panel/assets/{index-Ced-t9AY.js → index-DjCawXk1.js} +3 -3
  191. package/src/assets/web-panel/assets/index-Dr45Nm9V.js +55 -0
  192. package/src/assets/web-panel/assets/index-EaIfumgW.js +1 -0
  193. package/src/assets/web-panel/assets/index-POaFzYGS.js +1 -0
  194. package/src/assets/web-panel/assets/index-TrBGgrwG.js +1 -0
  195. package/src/assets/web-panel/assets/{index-DrH9uW99.js → index-YWOEx3rP.js} +2 -2
  196. package/src/assets/web-panel/assets/{index-DZMiVgXE.js → index-_3wPBMKt.js} +1 -1
  197. package/src/assets/web-panel/assets/{index-CBnkvGxd.js → index-aarO4HT9.js} +1 -1
  198. package/src/assets/web-panel/assets/index-bVJvqDAz.js +1 -0
  199. package/src/assets/web-panel/assets/{index-BipKV1Yr.js → index-gFLQe31v.js} +2 -2
  200. package/src/assets/web-panel/assets/index-kvV0f4tV.js +12 -0
  201. package/src/assets/web-panel/assets/index-qoB3whR9.js +12 -0
  202. package/src/assets/web-panel/assets/{initDefaultProps-B8zdOlFC.js → initDefaultProps-BnXISaAa.js} +1 -1
  203. package/src/assets/web-panel/assets/{isPlainObject-_gz-soRW.js → isPlainObject-BWRMT62c.js} +1 -1
  204. package/src/assets/web-panel/assets/isSymbol-S5WZT7lS.js +1 -0
  205. package/src/assets/web-panel/assets/motion-ChY7C0zJ.js +11 -0
  206. package/src/assets/web-panel/assets/{move-BioqdqDn.js → move-ByFZMFM5.js} +1 -1
  207. package/src/assets/web-panel/assets/{mtc-parser-Cc3pB9Xm.js → mtc-parser-BbAbUB-9.js} +1 -1
  208. package/src/assets/web-panel/assets/{omit-C1hn14Vc.js → omit-BYeliY1H.js} +1 -1
  209. package/src/assets/web-panel/assets/{pickAttrs-DgVG8oMj.js → pickAttrs-B9dcAKnu.js} +1 -1
  210. package/src/assets/web-panel/assets/{placementArrow-cJY6hoXZ.js → placementArrow-D3F_txz7.js} +1 -1
  211. package/src/assets/web-panel/assets/{responsiveObserve-DbUdURRx.js → responsiveObserve-ClkwY7wS.js} +1 -1
  212. package/src/assets/web-panel/assets/{slide-C2OEWnC4.js → slide-BNgy2Eea.js} +1 -1
  213. package/src/assets/web-panel/assets/{statusUtils-DghgcGqm.js → statusUtils-Bv3heMCD.js} +1 -1
  214. package/src/assets/web-panel/assets/{styleChecker-GoQ7uwU1.js → styleChecker-DVdlHbQm.js} +1 -1
  215. package/src/assets/web-panel/assets/useFlexGapSupport-alrRY5BK.js +1 -0
  216. package/src/assets/web-panel/assets/{useFs-CZCJDMup.js → useFs-CcVh0-Vu.js} +1 -1
  217. package/src/assets/web-panel/assets/{useMergedState-WwedrFR0.js → useMergedState-Cl2q1fes.js} +1 -1
  218. package/src/assets/web-panel/assets/{usePersonalDataHub-BjAS9b7w.js → usePersonalDataHub-CkkHPhyq.js} +1 -1
  219. package/src/assets/web-panel/assets/{useRefs-Cdq8EWeF.js → useRefs-DD9q4mOT.js} +1 -1
  220. package/src/assets/web-panel/assets/{useState-DGS1NOyn.js → useState-BK4hy8Ma.js} +1 -1
  221. package/src/assets/web-panel/assets/vendor-BvqAck49.js +42 -0
  222. package/src/assets/web-panel/assets/vnode-DWi0X9WN.js +1 -0
  223. package/src/assets/web-panel/assets/{zoom-CzyiNxpd.js → zoom-DCbqxxLH.js} +1 -1
  224. package/src/assets/web-panel/index.html +4 -4
  225. package/src/commands/agent.js +306 -1
  226. package/src/commands/ask.js +35 -1
  227. package/src/commands/checkpoint.js +239 -0
  228. package/src/commands/cost.js +114 -0
  229. package/src/commands/session.js +22 -2
  230. package/src/index.js +4 -0
  231. package/src/lib/file-checkpoint.js +300 -0
  232. package/src/lib/llm-pricing.js +227 -0
  233. package/src/lib/personal-data-hub-wiring.js +30 -0
  234. package/src/lib/recent-session.js +72 -0
  235. package/src/lib/session-picker.js +68 -0
  236. package/src/repl/agent-repl.js +58 -2
  237. package/src/repl/chat-repl.js +16 -1
  238. package/src/runtime/agent-core.js +68 -31
  239. package/src/runtime/fallback-model.js +109 -0
  240. package/src/runtime/file-ref-expander.js +258 -0
  241. package/src/runtime/headless-runner.js +576 -0
  242. package/src/runtime/headless-stream.js +302 -0
  243. package/src/runtime/policies/agent-policy.js +6 -0
  244. package/src/runtime/quiet-stdout.js +35 -0
  245. package/src/runtime/system-prompt.js +60 -0
  246. package/src/assets/web-panel/assets/AIOps-BWWsdf3s.js +0 -1
  247. package/src/assets/web-panel/assets/AIOps-Cchx1iXI.css +0 -1
  248. package/src/assets/web-panel/assets/Analytics-C1-TXmTC.css +0 -1
  249. package/src/assets/web-panel/assets/Analytics-CU1ellhG.js +0 -3
  250. package/src/assets/web-panel/assets/AppLayout-9pWRQa_t.css +0 -1
  251. package/src/assets/web-panel/assets/AppLayout-cXY-mRTd.js +0 -3
  252. package/src/assets/web-panel/assets/Audit-6ZMsXmrO.css +0 -1
  253. package/src/assets/web-panel/assets/Audit-CtQuC6zy.js +0 -1
  254. package/src/assets/web-panel/assets/Backup-CY9QozR7.css +0 -1
  255. package/src/assets/web-panel/assets/Backup-WeATa8CV.js +0 -1
  256. package/src/assets/web-panel/assets/BaseInput-BCu2Cejw.js +0 -1
  257. package/src/assets/web-panel/assets/Chat-Bj0XPlH8.js +0 -7
  258. package/src/assets/web-panel/assets/Chat-IlrLB9ZV.css +0 -1
  259. package/src/assets/web-panel/assets/ChatBubbleRenderer-Bpp2sN9W.js +0 -1
  260. package/src/assets/web-panel/assets/ChatBubbleRenderer-CO908iBt.css +0 -1
  261. package/src/assets/web-panel/assets/Codegen-BLP7id2a.css +0 -1
  262. package/src/assets/web-panel/assets/Codegen-PeBhNei5.js +0 -1
  263. package/src/assets/web-panel/assets/Community-BvaB_Wcs.js +0 -1
  264. package/src/assets/web-panel/assets/Community-C2RejeOY.css +0 -1
  265. package/src/assets/web-panel/assets/Compliance-DOys4Ov1.css +0 -1
  266. package/src/assets/web-panel/assets/Compliance-DjquEqsU.js +0 -1
  267. package/src/assets/web-panel/assets/Cowork-Bv6Tm40_.js +0 -6
  268. package/src/assets/web-panel/assets/Cowork-DsOst4XK.css +0 -1
  269. package/src/assets/web-panel/assets/Cron-D9fPIXV8.js +0 -2
  270. package/src/assets/web-panel/assets/Crosschain-C0WilDBF.js +0 -1
  271. package/src/assets/web-panel/assets/Crosschain-C7Le4Pte.css +0 -1
  272. package/src/assets/web-panel/assets/DID-BX6k3jZi.css +0 -1
  273. package/src/assets/web-panel/assets/DID-CiGeAI1K.js +0 -2
  274. package/src/assets/web-panel/assets/Dashboard-MFDcsVcM.css +0 -1
  275. package/src/assets/web-panel/assets/Dashboard-zqQuizB8.js +0 -3
  276. package/src/assets/web-panel/assets/Dropdown-_Mjb8yOR.js +0 -1
  277. package/src/assets/web-panel/assets/EmailListRenderer-C369EVhV.js +0 -1
  278. package/src/assets/web-panel/assets/EmailListRenderer-CVJ1j3Ll.css +0 -1
  279. package/src/assets/web-panel/assets/FamilyGuardDashboard-D8WsrCmn.js +0 -1
  280. package/src/assets/web-panel/assets/FamilyGuardDashboard-Df-D09Q4.css +0 -1
  281. package/src/assets/web-panel/assets/Federation-CgmfLbx1.css +0 -1
  282. package/src/assets/web-panel/assets/Federation-Dq7CrAzj.js +0 -1
  283. package/src/assets/web-panel/assets/FormItemContext-C7TvuLVK.js +0 -1
  284. package/src/assets/web-panel/assets/GenericCardRenderer-BJUR1Emh.js +0 -1
  285. package/src/assets/web-panel/assets/GenericCardRenderer-DtJFcJYl.css +0 -1
  286. package/src/assets/web-panel/assets/Git-B5MdAp15.js +0 -2
  287. package/src/assets/web-panel/assets/Governance-BIbPWlSM.js +0 -1
  288. package/src/assets/web-panel/assets/Governance-BoipmXaM.css +0 -1
  289. package/src/assets/web-panel/assets/Inference-BWxYJF9-.css +0 -1
  290. package/src/assets/web-panel/assets/Inference-vOz9J05E.js +0 -1
  291. package/src/assets/web-panel/assets/KnowledgeGraph-B_vUO-Td.js +0 -1
  292. package/src/assets/web-panel/assets/KnowledgeGraph-CztPDA96.css +0 -1
  293. package/src/assets/web-panel/assets/Logs-BwPfxX3p.js +0 -2
  294. package/src/assets/web-panel/assets/Logs-Gf_Mv9Nx.css +0 -1
  295. package/src/assets/web-panel/assets/Marketplace-Djp5q9dS.css +0 -1
  296. package/src/assets/web-panel/assets/Marketplace-T5HNwUjX.js +0 -1
  297. package/src/assets/web-panel/assets/McpTools-CDjHmzxH.css +0 -1
  298. package/src/assets/web-panel/assets/McpTools-CuKeBPxy.js +0 -5
  299. package/src/assets/web-panel/assets/Memory-Bcc2hxOA.css +0 -1
  300. package/src/assets/web-panel/assets/Memory-DmRW_sTE.js +0 -2
  301. package/src/assets/web-panel/assets/MobileBridge-DK2N_MJA.js +0 -3
  302. package/src/assets/web-panel/assets/MobileBridge-DwxX55b_.css +0 -1
  303. package/src/assets/web-panel/assets/MobileProjects-Ceaxrqzc.css +0 -1
  304. package/src/assets/web-panel/assets/MobileProjects-wl3bXCnJ.js +0 -1
  305. package/src/assets/web-panel/assets/Mtc-C8e0941i.js +0 -6
  306. package/src/assets/web-panel/assets/Mtc-DHwbdUqA.css +0 -1
  307. package/src/assets/web-panel/assets/MtcAudit-B0x8gahq.css +0 -1
  308. package/src/assets/web-panel/assets/MtcAudit-Cwigy2IR.js +0 -19
  309. package/src/assets/web-panel/assets/Multisig-BSfh_ncy.js +0 -7
  310. package/src/assets/web-panel/assets/Multisig-kwPDnXnl.css +0 -1
  311. package/src/assets/web-panel/assets/NLProgramming-BwzJAfJg.js +0 -1
  312. package/src/assets/web-panel/assets/NLProgramming-CLOvy-35.css +0 -1
  313. package/src/assets/web-panel/assets/Notes-COE2q2gD.css +0 -1
  314. package/src/assets/web-panel/assets/Notes-uilHH6hE.js +0 -7
  315. package/src/assets/web-panel/assets/NotificationSettings-Co0e0uEO.css +0 -1
  316. package/src/assets/web-panel/assets/NotificationSettings-DvM3DTPW.js +0 -1
  317. package/src/assets/web-panel/assets/OrderTableRenderer-BIEm3hZl.js +0 -1
  318. package/src/assets/web-panel/assets/OrderTableRenderer-BnOISpKI.css +0 -1
  319. package/src/assets/web-panel/assets/Organization-BX-cIO8M.css +0 -1
  320. package/src/assets/web-panel/assets/Organization-zxWoIwYM.js +0 -4
  321. package/src/assets/web-panel/assets/P2P-BsbToYKZ.js +0 -2
  322. package/src/assets/web-panel/assets/P2P-Cx88UaiD.css +0 -1
  323. package/src/assets/web-panel/assets/PdhVaultBrowser-B9ZGFpn4.css +0 -1
  324. package/src/assets/web-panel/assets/PdhVaultBrowser-VU8vfhsS.js +0 -7
  325. package/src/assets/web-panel/assets/Permissions-C10Sd26B.js +0 -4
  326. package/src/assets/web-panel/assets/Permissions-C9WlkGl-.css +0 -1
  327. package/src/assets/web-panel/assets/PersonalDataHub-Bz5u9Gth.css +0 -1
  328. package/src/assets/web-panel/assets/PersonalDataHub-edJB7VeU.js +0 -2
  329. package/src/assets/web-panel/assets/Pipeline-DxkXqrH2.css +0 -1
  330. package/src/assets/web-panel/assets/Pipeline-qNmVxn5A.js +0 -1
  331. package/src/assets/web-panel/assets/Privacy-CrsfSFKd.css +0 -1
  332. package/src/assets/web-panel/assets/Privacy-h78XF7eO.js +0 -1
  333. package/src/assets/web-panel/assets/ProjectInit-C9-vm1no.js +0 -2
  334. package/src/assets/web-panel/assets/ProjectInit-CteEo-wF.css +0 -1
  335. package/src/assets/web-panel/assets/ProjectSettings-DpDNsQTb.js +0 -2
  336. package/src/assets/web-panel/assets/ProjectSettings-pLSae-wy.css +0 -1
  337. package/src/assets/web-panel/assets/Projects-BX-SG9R4.css +0 -1
  338. package/src/assets/web-panel/assets/Projects-CwU3W4RD.js +0 -1
  339. package/src/assets/web-panel/assets/Providers-BNI-WkmA.css +0 -1
  340. package/src/assets/web-panel/assets/Providers-C3KZlUEI.js +0 -1
  341. package/src/assets/web-panel/assets/QuickAsk-CILvLGze.js +0 -1
  342. package/src/assets/web-panel/assets/Recommend-CH6wKzGo.css +0 -1
  343. package/src/assets/web-panel/assets/Recommend-XfFlk3BY.js +0 -1
  344. package/src/assets/web-panel/assets/Reputation-BqmWvaMD.js +0 -1
  345. package/src/assets/web-panel/assets/Reputation-D6VPNEd0.css +0 -1
  346. package/src/assets/web-panel/assets/Row-BEbjCI_X.js +0 -1
  347. package/src/assets/web-panel/assets/RssFeed-BlFC20eg.css +0 -1
  348. package/src/assets/web-panel/assets/RssFeed-CFukIl-a.js +0 -3
  349. package/src/assets/web-panel/assets/Search-B6RalzTB.css +0 -1
  350. package/src/assets/web-panel/assets/Search-dVPkf1o2.js +0 -1
  351. package/src/assets/web-panel/assets/Security-13K57V_v.css +0 -1
  352. package/src/assets/web-panel/assets/Security-DlRFaUrn.js +0 -4
  353. package/src/assets/web-panel/assets/Services-C8Qs6KXv.css +0 -1
  354. package/src/assets/web-panel/assets/Services-DKy7AjpA.js +0 -2
  355. package/src/assets/web-panel/assets/Skills-BEqnpg2j.js +0 -1
  356. package/src/assets/web-panel/assets/Skills-BdjRyorN.css +0 -1
  357. package/src/assets/web-panel/assets/Sla-CZ9_lzPI.js +0 -1
  358. package/src/assets/web-panel/assets/Sla-K19oOyQc.css +0 -1
  359. package/src/assets/web-panel/assets/SpeechSettings-DVSY_ehZ.js +0 -1
  360. package/src/assets/web-panel/assets/SpeechSettings-DYPJTDKz.css +0 -1
  361. package/src/assets/web-panel/assets/SyncSettings-C6cDrwDR.css +0 -1
  362. package/src/assets/web-panel/assets/SyncSettings-DgvsRpGt.js +0 -1
  363. package/src/assets/web-panel/assets/Tasks-BJjN_YEm.css +0 -1
  364. package/src/assets/web-panel/assets/Tasks-L5qXKsxK.js +0 -1
  365. package/src/assets/web-panel/assets/Templates-BWTV8-2E.css +0 -1
  366. package/src/assets/web-panel/assets/Templates-DR4VBx7q.js +0 -1
  367. package/src/assets/web-panel/assets/Tenant-D3zkSAV0.css +0 -1
  368. package/src/assets/web-panel/assets/Tenant-jMyaK184.js +0 -1
  369. package/src/assets/web-panel/assets/Terminal-DA5gjCiE.js +0 -3
  370. package/src/assets/web-panel/assets/Terminal-G1DrFtKr.css +0 -1
  371. package/src/assets/web-panel/assets/TimelineRenderer-BM17JHyr.js +0 -1
  372. package/src/assets/web-panel/assets/TimelineRenderer-DmztdsbF.css +0 -1
  373. package/src/assets/web-panel/assets/Tokens-BBOdNRHQ.css +0 -1
  374. package/src/assets/web-panel/assets/Tokens-CCJIrnhi.js +0 -1
  375. package/src/assets/web-panel/assets/Trust-BHeJEfNG.js +0 -1
  376. package/src/assets/web-panel/assets/Trust-DeOo0xAh.css +0 -1
  377. package/src/assets/web-panel/assets/UkeySign-DjcIVRk4.js +0 -1
  378. package/src/assets/web-panel/assets/VideoEditing-BPhptg3q.js +0 -1
  379. package/src/assets/web-panel/assets/VideoEditing-DksiizfS.css +0 -1
  380. package/src/assets/web-panel/assets/Wallet-D_xDgfaz.js +0 -4
  381. package/src/assets/web-panel/assets/Wallet-gR0ZvZbK.css +0 -1
  382. package/src/assets/web-panel/assets/WebAuthn-SSh5VhVO.css +0 -1
  383. package/src/assets/web-panel/assets/WebAuthn-pd961lgM.js +0 -5
  384. package/src/assets/web-panel/assets/WorkflowEditor-BmXDUZ8M.js +0 -1
  385. package/src/assets/web-panel/assets/WorkflowEditor-IiwsD8Kh.css +0 -1
  386. package/src/assets/web-panel/assets/createContext-BBLoTzN8.js +0 -1
  387. package/src/assets/web-panel/assets/devWarning-CNIS3FrJ.js +0 -1
  388. package/src/assets/web-panel/assets/echarts-Dj_pBaVI.js +0 -19
  389. package/src/assets/web-panel/assets/favicon-FSU2gSy6.ico +0 -0
  390. package/src/assets/web-panel/assets/index-1xUFGcnI.js +0 -21
  391. package/src/assets/web-panel/assets/index-4BeUpRaU.js +0 -1
  392. package/src/assets/web-panel/assets/index-AVHrO1io.js +0 -21
  393. package/src/assets/web-panel/assets/index-B2fc2n_u.js +0 -3
  394. package/src/assets/web-panel/assets/index-B5aXiiOG.js +0 -1
  395. package/src/assets/web-panel/assets/index-B78VsLFL.js +0 -1
  396. package/src/assets/web-panel/assets/index-BECv44dY.js +0 -12
  397. package/src/assets/web-panel/assets/index-BGn5-2TK.js +0 -1
  398. package/src/assets/web-panel/assets/index-BM9IHnrf.js +0 -13
  399. package/src/assets/web-panel/assets/index-BlMshk9V.js +0 -1
  400. package/src/assets/web-panel/assets/index-BoWoWh9f.js +0 -19
  401. package/src/assets/web-panel/assets/index-Bt79ud6Y.js +0 -1
  402. package/src/assets/web-panel/assets/index-CO9Tt0Bo.js +0 -1
  403. package/src/assets/web-panel/assets/index-CSZvB2uy.js +0 -12
  404. package/src/assets/web-panel/assets/index-CjeazYU2.js +0 -1
  405. package/src/assets/web-panel/assets/index-Cw-TEBru.js +0 -1
  406. package/src/assets/web-panel/assets/index-CyObfnlZ.js +0 -3
  407. package/src/assets/web-panel/assets/index-D0d2TS5o.js +0 -69
  408. package/src/assets/web-panel/assets/index-DV3zNhRX.js +0 -1
  409. package/src/assets/web-panel/assets/index-DnHElN_A.js +0 -7
  410. package/src/assets/web-panel/assets/index-DspW4reY.js +0 -55
  411. package/src/assets/web-panel/assets/index-DxUFdvJ5.js +0 -1
  412. package/src/assets/web-panel/assets/index-La4F-U-s.js +0 -1
  413. package/src/assets/web-panel/assets/index-azbNWBMo.js +0 -1
  414. package/src/assets/web-panel/assets/index-squRDiXd.js +0 -31
  415. package/src/assets/web-panel/assets/isSymbol-DAy2hlR5.js +0 -1
  416. package/src/assets/web-panel/assets/motion-ChVLXdRp.js +0 -11
  417. package/src/assets/web-panel/assets/useFlexGapSupport-CzD0s7wN.js +0 -1
  418. package/src/assets/web-panel/assets/vendor-DhFY8mDK.js +0 -1
  419. package/src/assets/web-panel/assets/vnode-CnXQ7gJ2.js +0 -1
  420. package/src/assets/web-panel/assets/warning-Pq00owYb.js +0 -1
@@ -0,0 +1,25 @@
1
+ import{d as ry,h as iy,i as Qa,t as ny,b as Oi,g as ay,w as ja,e as Ud,o as oy,f as sy,s as Ss,n as uy,j as ly,u as fy}from"./vendor-BvqAck49.js";var Xu=function(r,t){return Xu=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])},Xu(r,t)};function N(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Xu(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var hy=(function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r})(),cy=(function(){function r(){this.browser=new hy,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})(),U=new cy;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(U.wxa=!0,U.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?U.worker=!0:!U.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(U.node=!0,U.svgSupported=!0):vy(navigator.userAgent,U);function vy(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 u=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in u||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in u)&&!("OTransition"in u),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}}var rf=12,dy="sans-serif",pr=rf+"px "+dy,py=20,gy=100,my="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function yy(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)-py)/gy;t[i]=n}return t}var _y=yy(my),Je={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var r,t;return function(e,i){if(!r){var n=Je.createCanvas();r=n&&n.getContext("2d")}if(r)return t!==i&&(t=r.font=i||pr),r.measureText(e);e=e||"",i=i||pr;var a=/((?:\d+)?\.?\d*)px/.exec(i),o=a&&+a[1]||rf,s=0;if(i.indexOf("mono")>=0)s=o*e.length;else for(var u=0;u<e.length;u++){var l=_y[e[u]];s+=l==null?o:l*o}return{width:s}}})(),loadImage:function(r,t,e){var i=new Image;return i.onload=t,i.onerror=e,i.src=r,i}},Wd=tn(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,t){return r["[object "+t+"]"]=!0,r},{}),Yd=tn(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,t){return r["[object "+t+"Array]"]=!0,r},{}),Ji=Object.prototype.toString,$o=Array.prototype,Sy=$o.forEach,wy=$o.filter,nf=$o.slice,by=$o.map,vh=(function(){}).constructor,pa=vh?vh.prototype:null,af="__proto__",Ty=2311;function Xd(){return Ty++}function ei(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];typeof console<"u"&&console.error.apply(console,r)}function $(r){if(r==null||typeof r!="object")return r;var t=r,e=Ji.call(r);if(e==="[object Array]"){if(!kn(r)){t=[];for(var i=0,n=r.length;i<n;i++)t[i]=$(r[i])}}else if(Yd[e]){if(!kn(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(!Wd[e]&&!kn(r)&&!Wi(r)){t={};for(var o in r)r.hasOwnProperty(o)&&o!==af&&(t[o]=$(r[o]))}return t}function dt(r,t,e){if(!H(t)||!H(r))return e?$(t):r;for(var i in t)if(t.hasOwnProperty(i)&&i!==af){var n=r[i],a=t[i];H(a)&&H(n)&&!B(a)&&!B(n)&&!Wi(a)&&!Wi(n)&&!dh(a)&&!dh(n)&&!kn(a)&&!kn(n)?dt(n,a,e):(e||!(i in r))&&(r[i]=$(t[i]))}return r}function R(r,t){if(Object.assign)Object.assign(r,t);else for(var e in t)t.hasOwnProperty(e)&&e!==af&&(r[e]=t[e]);return r}function pt(r,t,e){for(var i=mt(t),n=0,a=i.length;n<a;n++){var o=i[n];r[o]==null&&(r[o]=t[o])}return r}function ut(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 xy(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 _e(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 pt(r,t)}function Kt(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function I(r,t,e){if(r&&t)if(r.forEach&&r.forEach===Sy)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 j(r,t,e){if(!r)return[];if(!t)return of(r);if(r.map&&r.map===by)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 tn(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 te(r,t,e){if(!r)return[];if(!t)return of(r);if(r.filter&&r.filter===wy)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 mt(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 Cy(r,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return function(){return r.apply(t,e.concat(nf.call(arguments)))}}var at=pa&&q(pa.bind)?pa.call.bind(pa.bind):Cy;function St(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return function(){return r.apply(this,t.concat(nf.call(arguments)))}}function B(r){return Array.isArray?Array.isArray(r):Ji.call(r)==="[object Array]"}function q(r){return typeof r=="function"}function z(r){return typeof r=="string"}function po(r){return Ji.call(r)==="[object String]"}function lt(r){return typeof r=="number"}function H(r){var t=typeof r;return t==="function"||!!r&&t==="object"}function dh(r){return!!Wd[Ji.call(r)]}function Ht(r){return!!Yd[Ji.call(r)]}function Wi(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function Zo(r){return r.colorStops!=null}function Dy(r){return r.image!=null}function Iy(r){return Ji.call(r)==="[object RegExp]"}function $d(r){return r!==r}function gr(){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 F(r,t){return r??t}function Ke(r,t,e){return r??t??e}function of(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return nf.apply(r,t)}function sf(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 V(r,t){if(!r)throw new Error(t)}function Re(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Zd="__ec_primitive__";function $u(r){r[Zd]=!0}function kn(r){return r[Zd]}var Ly=(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 mt(this.data)},r.prototype.forEach=function(t){var e=this.data;for(var i in e)e.hasOwnProperty(i)&&t(e[i],i)},r})(),qd=typeof Map=="function";function My(){return qd?new Map:new Ly}var Ay=(function(){function r(t){var e=B(t);this.data=My();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 qd?Array.from(t):t},r.prototype.removeKey=function(t){this.data.delete(t)},r})();function Y(r){return new Ay(r)}function Py(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 qo(r,t){var e;if(Object.create)e=Object.create(r);else{var i=function(){};i.prototype=r,e=new i}return t&&R(e,t),e}function Kd(r){var t=r.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function me(r,t){return r.hasOwnProperty(t)}function Mt(){}var Ry=180/Math.PI;function ui(r,t){return r==null&&(r=0),t==null&&(t=0),[r,t]}function kt(r,t){return r[0]=t[0],r[1]=t[1],r}function Qe(r){return[r[0],r[1]]}function Ey(r,t,e){return r[0]=t,r[1]=e,r}function ph(r,t,e){return r[0]=t[0]+e[0],r[1]=t[1]+e[1],r}function Zu(r,t,e,i){return r[0]=t[0]+e[0]*i,r[1]=t[1]+e[1]*i,r}function qr(r,t,e){return r[0]=t[0]-e[0],r[1]=t[1]-e[1],r}function qu(r){return Math.sqrt(Oy(r))}function Oy(r){return r[0]*r[0]+r[1]*r[1]}function Ja(r,t,e){return r[0]=t[0]*e,r[1]=t[1]*e,r}function en(r,t){var e=qu(t);return e===0?(r[0]=0,r[1]=0):(r[0]=t[0]/e,r[1]=t[1]/e),r}function Ku(r,t){return Math.sqrt((r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1]))}var ky=Ku;function By(r,t){return(r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1])}var ri=By;function re(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 Bi(r,t,e){return r[0]=Math.min(t[0],e[0]),r[1]=Math.min(t[1],e[1]),r}function Ni(r,t,e){return r[0]=Math.max(t[0],e[0]),r[1]=Math.max(t[1],e[1]),r}var vi=(function(){function r(t,e){this.target=t,this.topTarget=e&&e.topTarget}return r})(),Ny=(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 vi(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 vi(e,t),"drag",t.event);var s=this.handler.findHover(i,n,e).target,u=this._dropTarget;this._dropTarget=s,e!==s&&(u&&s!==u&&this.handler.dispatchToElement(new vi(u,t),"dragleave",t.event),s&&s!==u&&this.handler.dispatchToElement(new vi(s,t),"dragenter",t.event))}},r.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new vi(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new vi(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},r})(),Se=(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 u={h:i,query:e,ctx:n||this,callAtLast:i.zrEventfulCallAtLast},l=a[t].length-1,f=a[t][l];return f&&f.callAtLast?a[t].splice(l,0,u):a[t].push(u),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,u=0;u<s;u++){var l=n[u];if(!(a&&a.filter&&l.query!=null&&!a.filter(t,l.query)))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.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],u=n.length,l=0;l<u;l++){var f=n[l];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})(),zy=Math.log(2);function Qu(r,t,e,i,n,a){var o=i+"-"+n,s=r.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var u=Math.round(Math.log((1<<s)-1&~n)/zy);return r[e][u]}for(var l=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]*Qu(r,t-1,f,l,n|d,a),v++)}return a[o]=h,h}function gh(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=Qu(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)*Qu(e,7,o===0?1:0,1<<o,1<<s,i)/n*t[o];return function(u,l,f){var h=l*a[6]+f*a[7]+1;u[0]=(l*a[0]+f*a[1]+a[2])/h,u[1]=(l*a[3]+f*a[4]+a[5])/h}}}var go="___zrEVENTSAVED",ws=[];function Fy(r,t,e,i,n){return ju(ws,t,i,n,!0)&&ju(r,e,ws[0],ws[1])}function Hy(r,t){r&&e(r),t&&e(t);function e(i){var n=i[go];n&&(n.clearMarkers&&n.clearMarkers(),delete i[go])}}function ju(r,t,e,i,n){if(t.getBoundingClientRect&&U.domSupported&&!Qd(t)){var a=t[go]||(t[go]={}),o=Vy(t,a),s=Gy(o,a,n);if(s)return s(r,e,i),!0}return!1}function Vy(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,u=a%2,l=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[u]+":0",n[l]+":0",i[1-u]+":auto",n[1-l]+":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 Gy(r,t,e){for(var i=e?"invTrans":"trans",n=t[i],a=t.srcCoords,o=[],s=[],u=!0,l=0;l<4;l++){var f=r[l].getBoundingClientRect(),h=2*l,c=f.left,v=f.top;o.push(c,v),u=u&&a&&c===a[h]&&v===a[h+1],s.push(r[l].offsetLeft,r[l].offsetTop)}return u&&n?n:(t.srcCoords=o,t[i]=e?gh(s,o):gh(o,s))}function Qd(r){return r.nodeName.toUpperCase()==="CANVAS"}var Uy=/([&<>"'])/g,Wy={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Wt(r){return r==null?"":(r+"").replace(Uy,function(t,e){return Wy[e]})}var Yy=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,bs=[],Xy=U.browser.firefox&&+U.browser.version.split(".")[0]<39;function Ju(r,t,e,i){return e=e||{},i?mh(r,t,e):Xy&&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):mh(r,t,e),e}function mh(r,t,e){if(U.domSupported&&r.getBoundingClientRect){var i=t.clientX,n=t.clientY;if(Qd(r)){var a=r.getBoundingClientRect();e.zrX=i-a.left,e.zrY=n-a.top;return}else if(ju(bs,r,i,n)){e.zrX=bs[0],e.zrY=bs[1];return}}e.zrX=e.zrY=0}function uf(r){return r||window.event}function se(r,t,e){if(t=uf(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&&Ju(r,o,t,e)}else{Ju(r,t,t,e);var a=$y(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&Yy.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function $y(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 Zy(r,t,e,i){r.addEventListener(t,e,i)}function qy(r,t,e,i){r.removeEventListener(t,e,i)}var mo=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function yh(r){return r.which===2||r.which===3}var Ky=(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 u=n[o],l=Ju(i,u,{});a.points.push([l.zrX,l.zrY]),a.touches.push(u)}this._track.push(a)}},r.prototype._recognize=function(t){for(var e in Ts)if(Ts.hasOwnProperty(e)){var i=Ts[e](this._track,t);if(i)return i}},r})();function _h(r){var t=r[1][0]-r[0][0],e=r[1][1]-r[0][1];return Math.sqrt(t*t+e*e)}function Qy(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var Ts={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=_h(i)/_h(n);!isFinite(a)&&(a=1),t.pinchScale=a;var o=Qy(i);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};function Oe(){return[1,0,0,1,0,0]}function lf(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function ff(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 Bn(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],u=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]=u,r}function tl(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 hf(r,t,e,i){i===void 0&&(i=[0,0]);var n=t[0],a=t[2],o=t[4],s=t[1],u=t[3],l=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+u*f,r[3]=-a*f+h*u,r[4]=h*(o-i[0])+f*(l-i[1])+i[0],r[5]=h*(l-i[1])-f*(o-i[0])+i[1],r}function jy(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 la(r,t){var e=t[0],i=t[2],n=t[4],a=t[1],o=t[3],s=t[5],u=e*o-a*i;return u?(u=1/u,r[0]=o*u,r[1]=-a*u,r[2]=-i*u,r[3]=e*u,r[4]=(i*s-o*n)*u,r[5]=(a*n-e*s)*u,r):null}var ot=(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})(),Kr=Math.min,zi=Math.max,el=Math.abs,Sh=["x","y"],Jy=["width","height"],Tr=new ot,xr=new ot,Cr=new ot,Dr=new ot,Jt=jd(),Cn=Jt.minTv,rl=Jt.maxTv,Nn=[0,0],X=(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=Kr(t.x,this.x),i=Kr(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=zi(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=zi(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=Oe();return tl(a,a,[-e.x,-e.y]),jy(a,a,[i,n]),tl(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&&ot.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(t_,t.x,t.y,t.width,t.height)),e instanceof r||(e=r.set(e_,e.x,e.y,e.width,e.height));var s=!!i;Jt.reset(n,s);var u=Jt.touchThreshold,l=t.x+u,f=t.x+t.width-u,h=t.y+u,c=t.y+t.height-u,v=e.x+u,d=e.x+e.width-u,m=e.y+u,g=e.y+e.height-u;if(l>f||h>c||v>d||m>g)return!1;var p=!(f<v||d<l||c<m||g<h);return(s||a)&&(Nn[0]=1/0,Nn[1]=0,wh(l,f,v,d,0,s,a,o),wh(h,c,m,g,1,s,a,o),s&&ot.copy(i,p?Jt.useDir?Jt.dirMinTv:Cn:rl)),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}Tr.x=Cr.x=e.x,Tr.y=Dr.y=e.y,xr.x=Dr.x=e.x+e.width,xr.y=Cr.y=e.y+e.height,Tr.transform(i),Dr.transform(i),xr.transform(i),Cr.transform(i),t.x=Kr(Tr.x,xr.x,Cr.x,Dr.x),t.y=Kr(Tr.y,xr.y,Cr.y,Dr.y);var u=zi(Tr.x,xr.x,Cr.x,Dr.x),l=zi(Tr.y,xr.y,Cr.y,Dr.y);t.width=u-t.x,t.height=l-t.y},r})(),t_=new X(0,0,0,0),e_=new X(0,0,0,0);function wh(r,t,e,i,n,a,o,s){var u=el(t-e),l=el(i-r),f=Kr(u,l),h=Sh[n],c=Sh[1-n],v=Jy[n];t<e||i<r?u<l?(a&&(rl[h]=-u),s&&(o[h]=t,o[v]=0)):(a&&(rl[h]=l),s&&(o[h]=r,o[v]=0)):(o&&(o[h]=zi(r,e),o[v]=Kr(t,i)-o[h]),a&&(f<Nn[0]||Jt.useDir)&&(Nn[0]=Kr(f,Nn[0]),(u<l||!Jt.bidirectional)&&(Cn[h]=u,Cn[c]=0,Jt.useDir&&Jt.calcDirMTV()),(u>=l||!Jt.bidirectional)&&(Cn[h]=-l,Cn[c]=0,Jt.useDir&&Jt.calcDirMTV())))}function jd(){var r=0,t=new ot,e=new ot,i={minTv:new ot,maxTv:new ot,useDir:!1,dirMinTv:new ot,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){i.touchThreshold=0,a&&a.touchThreshold!=null&&(i.touchThreshold=zi(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,u=Math.sin(r),l=Math.cos(r),f=u*a.y+l*a.x;if(n(f)){n(a.x)&&n(a.y)&&o.set(0,0);return}if(e.x=s*l/f,e.y=s*u/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 el(a)<1e-10}return i}var Jd="silent";function r_(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:i_}}function i_(){mo(this.event)}var n_=(function(r){N(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})(Se),rn=(function(){function r(t,e){this.x=t,this.y=e}return r})(),a_=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],xs=new X(0,0,0,0),tp=(function(r){N(t,r);function t(e,i,n,a,o){var s=r.call(this)||this;return s._hovered=new rn(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 Ny(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(I(a_,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=ep(this,i,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var u=this._hovered=a?new rn(i,n):this.findHover(i,n),l=u.target,f=this.proxy;f.setCursor&&f.setCursor(l?l.cursor:"default"),s&&l!==s&&this.dispatchToElement(o,"mouseout",e),this.dispatchToElement(u,"mousemove",e),l&&l!==s&&this.dispatchToElement(u,"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 rn(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=r_(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(u){typeof u[o]=="function"&&u[o].call(u,s),u.trigger&&u.trigger(i,s)}))}},t.prototype.findHover=function(e,i,n){var a=this.storage.getDisplayList(),o=new rn(e,i);if(bh(a,o,e,i,n),this._pointerSize&&!o.target){for(var s=[],u=this._pointerSize,l=u/2,f=new X(e-l,i-l,u,u),h=a.length-1;h>=0;h--){var c=a[h];c!==n&&!c.ignore&&!c.ignoreCoarsePointer&&(!c.parent||!c.parent.ignoreCoarsePointer)&&(xs.copy(c.getBoundingRect()),c.transform&&xs.applyTransform(c.transform),xs.intersect(f)&&s.push(c))}if(s.length)for(var v=4,d=Math.PI/12,m=Math.PI*2,g=0;g<l;g+=v)for(var p=0;p<m;p+=d){var y=e+g*Math.cos(p),_=i+g*Math.sin(p);if(bh(s,o,y,_,n),o.target)return o}}return o},t.prototype.processGesture=function(e,i){this._gestureMgr||(this._gestureMgr=new Ky);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 rn;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t})(Se);I(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){tp.prototype[r]=function(t){var e=t.zrX,i=t.zrY,n=ep(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||ky(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,r,t)}});function o_(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?Jd:!0}return!1}function bh(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=o_(o,e,i))&&(!t.topTarget&&(t.topTarget=o),s!==Jd)){t.target=o;break}}}function ep(r,t,e){var i=r.painter;return t<0||t>i.getWidth()||e<0||e>i.getHeight()}var rp=32,nn=7;function s_(r){for(var t=0;r>=rp;)t|=r&1,r>>=1;return r+t}function Th(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++;u_(r,t,n)}else for(;n<e&&i(r[n],r[n-1])>=0;)n++;return n-t}function u_(r,t,e){for(e--;t<e;){var i=r[t];r[t++]=r[e],r[e--]=i}}function xh(r,t,e,i,n){for(i===t&&i++;i<e;i++){for(var a=r[i],o=t,s=i,u;o<s;)u=o+s>>>1,n(a,r[u])<0?s=u:o=u+1;var l=i-o;switch(l){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(;l>0;)r[o+l]=r[o+l-1],l--}r[o]=a}}function Cs(r,t,e,i,n,a){var o=0,s=0,u=1;if(a(r,t[e+n])>0){for(s=i-n;u<s&&a(r,t[e+n+u])>0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=n,u+=n}else{for(s=n+1;u<s&&a(r,t[e+n-u])<=0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s);var l=o;o=n-u,u=n-l}for(o++;o<u;){var f=o+(u-o>>>1);a(r,t[e+f])>0?o=f+1:u=f}return u}function Ds(r,t,e,i,n,a){var o=0,s=0,u=1;if(a(r,t[e+n])<0){for(s=n+1;u<s&&a(r,t[e+n-u])<0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s);var l=o;o=n-u,u=n-l}else{for(s=i-n;u<s&&a(r,t[e+n+u])>=0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=n,u+=n}for(o++;o<u;){var f=o+(u-o>>>1);a(r,t[e+f])<0?u=f:o=f+1}return u}function l_(r,t){var e=nn,i,n,a=0,o=[];i=[],n=[];function s(v,d){i[a]=v,n[a]=d,a+=1}function u(){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 l(){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],m=n[v],g=i[v+1],p=n[v+1];n[v]=m+p,v===a-3&&(i[v+1]=i[v+2],n[v+1]=n[v+2]),a--;var y=Ds(r[g],r,d,m,0,t);d+=y,m-=y,m!==0&&(p=Cs(r[d+m-1],r,g,p,p-1,t),p!==0&&(m<=p?h(d,m,g,p):c(d,m,g,p)))}function h(v,d,m,g){var p=0;for(p=0;p<d;p++)o[p]=r[v+p];var y=0,_=m,S=v;if(r[S++]=r[_++],--g===0){for(p=0;p<d;p++)r[S+p]=o[y+p];return}if(d===1){for(p=0;p<g;p++)r[S+p]=r[_+p];r[S+g]=o[y];return}for(var b=e,w,T,C;;){w=0,T=0,C=!1;do if(t(r[_],o[y])<0){if(r[S++]=r[_++],T++,w=0,--g===0){C=!0;break}}else if(r[S++]=o[y++],w++,T=0,--d===1){C=!0;break}while((w|T)<b);if(C)break;do{if(w=Ds(r[_],o,y,d,0,t),w!==0){for(p=0;p<w;p++)r[S+p]=o[y+p];if(S+=w,y+=w,d-=w,d<=1){C=!0;break}}if(r[S++]=r[_++],--g===0){C=!0;break}if(T=Cs(o[y],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[y++],--d===1){C=!0;break}b--}while(w>=nn||T>=nn);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[y]}else{if(d===0)throw new Error;for(p=0;p<d;p++)r[S+p]=o[y+p]}}function c(v,d,m,g){var p=0;for(p=0;p<g;p++)o[p]=r[m+p];var y=v+d-1,_=g-1,S=m+g-1,b=0,w=0;if(r[S--]=r[y--],--d===0){for(b=S-(g-1),p=0;p<g;p++)r[b+p]=o[p];return}if(g===1){for(S-=d,y-=d,w=S+1,b=y+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[y])<0){if(r[S--]=r[y--],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-Ds(o[_],r,v,d,d-1,t),C!==0){for(S-=C,y-=C,d-=C,w=S+1,b=y+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-Cs(r[y],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[y--],--d===0){D=!0;break}T--}while(C>=nn||x>=nn);if(D)break;T<0&&(T=0),T+=2}if(e=T,e<1&&(e=1),g===1){for(S-=d,y-=d,w=S+1,b=y+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:u,forceMergeRuns:l,pushRun:s}}function to(r,t,e,i){e||(e=0),i||(i=r.length);var n=i-e;if(!(n<2)){var a=0;if(n<rp){a=Th(r,e,i,t),xh(r,e,i,e+a,t);return}var o=l_(r,t),s=s_(n);do{if(a=Th(r,e,i,t),a<s){var u=n;u>s&&(u=s),xh(r,e,e+u,e+a,t),a=u}o.pushRun(e,a),o.mergeRuns(),n-=a,e+=a}while(n!==0);o.forceMergeRuns()}}var ee=1,Dn=2,ki=4,Ch=!1;function Is(){Ch||(Ch=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Dh(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var f_=(function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Dh}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,to(i,Dh)},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 u=0;u<e.length;u++)s[o++]=e[u];for(var l=n,f=t;l;)l.parent=f,l.updateTransform(),s[o++]=l,f=l,l=l.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|=ee),this._updateAndAddDisplayable(v,s,i)}t.__dirty=0}else{var d=t;isNaN(d.z)&&(Is(),d.z=0),isNaN(d.z2)&&(Is(),d.z2=0),isNaN(d.zlevel)&&(Is(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var m=t.getDecalElement&&t.getDecalElement();m&&this._updateAndAddDisplayable(m,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=ut(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})(),yo;yo=U.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var zn={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-zn.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?zn.bounceIn(r*2)*.5:zn.bounceOut(r*2-1)*.5+.5}},ga=Math.pow,cr=Math.sqrt,_o=1e-8,ip=1e-4,Ih=cr(3),ma=1/3,Pe=ui(),fe=ui(),Gi=ui();function fr(r){return r>-_o&&r<_o}function np(r){return r>_o||r<-_o}function Nt(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 Lh(r,t,e,i,n){var a=1-n;return 3*(((t-r)*a+2*(e-t)*n)*a+(i-e)*n*n)}function ap(r,t,e,i,n,a){var o=i+3*(t-e)-r,s=3*(e-t*2+r),u=3*(t-r),l=r-n,f=s*s-3*o*u,h=s*u-9*o*l,c=u*u-3*s*l,v=0;if(fr(f)&&fr(h))if(fr(s))a[0]=0;else{var d=-u/s;d>=0&&d<=1&&(a[v++]=d)}else{var m=h*h-4*f*c;if(fr(m)){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(m>0){var y=cr(m),_=f*s+1.5*o*(-h+y),S=f*s+1.5*o*(-h-y);_<0?_=-ga(-_,ma):_=ga(_,ma),S<0?S=-ga(-S,ma):S=ga(S,ma);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(a[v++]=d)}else{var b=(2*f*s-3*o*h)/(2*cr(f*f*f)),w=Math.acos(b)/3,T=cr(f),C=Math.cos(w),d=(-s-2*T*C)/(3*o),p=(-s+T*(C+Ih*Math.sin(w)))/(3*o),x=(-s+T*(C-Ih*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 op(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,u=0;if(fr(o)){if(np(a)){var l=-s/a;l>=0&&l<=1&&(n[u++]=l)}}else{var f=a*a-4*o*s;if(fr(f))n[0]=-a/(2*o);else if(f>0){var h=cr(f),l=(-a+h)/(2*o),c=(-a-h)/(2*o);l>=0&&l<=1&&(n[u++]=l),c>=0&&c<=1&&(n[u++]=c)}}return u}function So(r,t,e,i,n,a){var o=(t-r)*n+r,s=(e-t)*n+t,u=(i-e)*n+e,l=(s-o)*n+o,f=(u-s)*n+s,h=(f-l)*n+l;a[0]=r,a[1]=o,a[2]=l,a[3]=h,a[4]=h,a[5]=f,a[6]=u,a[7]=i}function h_(r,t,e,i,n,a,o,s,u,l,f){var h,c=.005,v=1/0,d,m,g,p;Pe[0]=u,Pe[1]=l;for(var y=0;y<1;y+=.05)fe[0]=Nt(r,e,n,o,y),fe[1]=Nt(t,i,a,s,y),g=ri(Pe,fe),g<v&&(h=y,v=g);v=1/0;for(var _=0;_<32&&!(c<ip);_++)d=h-c,m=h+c,fe[0]=Nt(r,e,n,o,d),fe[1]=Nt(t,i,a,s,d),g=ri(fe,Pe),d>=0&&g<v?(h=d,v=g):(Gi[0]=Nt(r,e,n,o,m),Gi[1]=Nt(t,i,a,s,m),p=ri(Gi,Pe),m<=1&&p<v?(h=m,v=p):c*=.5);return cr(v)}function c_(r,t,e,i,n,a,o,s,u){for(var l=r,f=t,h=0,c=1/u,v=1;v<=u;v++){var d=v*c,m=Nt(r,e,n,o,d),g=Nt(t,i,a,s,d),p=m-l,y=g-f;h+=Math.sqrt(p*p+y*y),l=m,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 Mh(r,t,e,i){return 2*((1-i)*(t-r)+i*(e-t))}function v_(r,t,e,i,n){var a=r-2*t+e,o=2*(t-r),s=r-i,u=0;if(fr(a)){if(np(o)){var l=-s/o;l>=0&&l<=1&&(n[u++]=l)}}else{var f=o*o-4*a*s;if(fr(f)){var l=-o/(2*a);l>=0&&l<=1&&(n[u++]=l)}else if(f>0){var h=cr(f),l=(-o+h)/(2*a),c=(-o-h)/(2*a);l>=0&&l<=1&&(n[u++]=l),c>=0&&c<=1&&(n[u++]=c)}}return u}function sp(r,t,e){var i=r+e-2*t;return i===0?.5:(r-t)/i}function Xn(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 d_(r,t,e,i,n,a,o,s,u){var l,f=.005,h=1/0;Pe[0]=o,Pe[1]=s;for(var c=0;c<1;c+=.05){fe[0]=zt(r,e,n,c),fe[1]=zt(t,i,a,c);var v=ri(Pe,fe);v<h&&(l=c,h=v)}h=1/0;for(var d=0;d<32&&!(f<ip);d++){var m=l-f,g=l+f;fe[0]=zt(r,e,n,m),fe[1]=zt(t,i,a,m);var v=ri(fe,Pe);if(m>=0&&v<h)l=m,h=v;else{Gi[0]=zt(r,e,n,g),Gi[1]=zt(t,i,a,g);var p=ri(Gi,Pe);g<=1&&p<h?(l=g,h=p):f*=.5}}return cr(h)}function p_(r,t,e,i,n,a,o){for(var s=r,u=t,l=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),m=v-s,g=d-u;l+=Math.sqrt(m*m+g*g),s=v,u=d}return l}var g_=/cubic-bezier\(([0-9,\.e ]+)\)/;function up(r){var t=r&&g_.exec(r);if(t){var e=t[1].split(","),i=+Re(e[0]),n=+Re(e[1]),a=+Re(e[2]),o=+Re(e[3]);if(isNaN(i+n+a+o))return;var s=[];return function(u){return u<=0?0:u>=1?1:ap(0,i,a,1,u,s)&&Nt(0,n,o,1,s[0])}}}var m_=(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||Mt,this.ondestroy=t.ondestroy||Mt,this.onrestart=t.onrestart||Mt,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 u=n%i;this._startTime=t-u,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=q(t)?t:zn[t]||up(t)},r})(),lp=(function(){function r(t){this.value=t}return r})(),y_=(function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new lp(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})(),Yi=(function(){function r(t){this._list=new y_,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 u=i.head;i.remove(u),delete n[u.key],a=u.value,this._lastRemovedEntry=u}s?s.value=e:s=new lp(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})(),Ah={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 Fn(r){return r=Math.round(r),r<0?0:r>255?255:r}function Ph(r){return r<0?0:r>1?1:r}function Ls(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Fn(parseFloat(t)/100*255):Fn(parseInt(t,10))}function ii(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Ph(parseFloat(t)/100):Ph(parseFloat(t))}function Ms(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 oe(r,t,e,i,n){return r[0]=t,r[1]=e,r[2]=i,r[3]=n,r}function il(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var fp=new Yi(20),ya=null;function di(r,t){ya&&il(ya,t),ya=fp.put(r,ya||t.slice())}function vr(r,t){if(r){t=t||[];var e=fp.get(r);if(e)return il(t,e);r=r+"";var i=r.replace(/ /g,"").toLowerCase();if(i in Ah)return il(t,Ah[i]),di(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)){oe(t,0,0,0,1);return}return oe(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),di(r,t),t}else if(n===7||n===9){var a=parseInt(i.slice(1,7),16);if(!(a>=0&&a<=16777215)){oe(t,0,0,0,1);return}return oe(t,(a&16711680)>>16,(a&65280)>>8,a&255,n===9?parseInt(i.slice(7),16)/255:1),di(r,t),t}return}var o=i.indexOf("("),s=i.indexOf(")");if(o!==-1&&s+1===n){var u=i.substr(0,o),l=i.substr(o+1,s-(o+1)).split(","),f=1;switch(u){case"rgba":if(l.length!==4)return l.length===3?oe(t,+l[0],+l[1],+l[2],1):oe(t,0,0,0,1);f=ii(l.pop());case"rgb":if(l.length>=3)return oe(t,Ls(l[0]),Ls(l[1]),Ls(l[2]),l.length===3?f:ii(l[3])),di(r,t),t;oe(t,0,0,0,1);return;case"hsla":if(l.length!==4){oe(t,0,0,0,1);return}return l[3]=ii(l[3]),nl(l,t),di(r,t),t;case"hsl":if(l.length!==3){oe(t,0,0,0,1);return}return nl(l,t),di(r,t),t;default:return}}oe(t,0,0,0,1)}}function nl(r,t){var e=(parseFloat(r[0])%360+360)%360/360,i=ii(r[1]),n=ii(r[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return t=t||[],oe(t,Fn(Ms(o,a,e+1/3)*255),Fn(Ms(o,a,e)*255),Fn(Ms(o,a,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function __(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,u,l;if(o===0)u=0,l=0;else{s<.5?l=o/(a+n):l=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?u=c-h:e===a?u=1/3+f-c:i===a&&(u=2/3+h-f),u<0&&(u+=1),u>1&&(u-=1)}var v=[u*360,l,s];return r[3]!=null&&v.push(r[3]),v}}function Rh(r,t){var e=vr(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 Ko(e,e.length===4?"rgba":"rgb")}}function al(r,t,e,i){var n=vr(r);if(r)return n=__(n),e!=null&&(n[1]=ii(q(e)?e(n[1]):e)),i!=null&&(n[2]=ii(q(i)?i(n[2]):i)),Ko(nl(n),"rgba")}function Ko(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 wo(r,t){var e=vr(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}var Eh=new Yi(100);function Oh(r){if(z(r)){var t=Eh.get(r);return t||(t=Rh(r,-.1),Eh.put(r,t)),t}else if(Zo(r)){var e=R({},r);return e.colorStops=j(r.colorStops,function(i){return{offset:i.offset,color:Rh(i.color,-.1)}}),e}return r}function S_(r){return r.type==="linear"}function w_(r){return r.type==="radial"}(function(){return U.hasGlobalWindow&&q(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return ei("Base64 isn't natively supported in the current environment."),null}})();var ol=Array.prototype.slice;function Xe(r,t,e){return(t-r)*e+r}function As(r,t,e,i){for(var n=t.length,a=0;a<n;a++)r[a]=Xe(t[a],e[a],i);return r}function b_(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]=Xe(t[o][s],e[o][s],i)}return r}function _a(r,t,e,i){for(var n=t.length,a=0;a<n;a++)r[a]=t[a]+e[a]*i;return r}function kh(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 T_(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 x_(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 u=a;u<o;u++)i.push(e===1?n[u]:ol.call(n[u]))}for(var l=i[0]&&i[0].length,u=0;u<i.length;u++)if(e===1)isNaN(i[u])&&(i[u]=n[u]);else for(var f=0;f<l;f++)isNaN(i[u][f])&&(i[u][f]=n[u][f])}}function eo(r){if(Kt(r)){var t=r.length;if(Kt(r[0])){for(var e=[],i=0;i<t;i++)e.push(ol.call(r[i]));return e}return ol.call(r)}return r}function ro(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 C_(r){return Kt(r&&r[0])?2:1}var Sa=0,io=1,hp=2,In=3,sl=4,ul=5,Bh=6;function Nh(r){return r===sl||r===ul}function wa(r){return r===io||r===hp}var an=[0,0,0,0],D_=(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=Bh,u=e;if(Kt(e)){var l=C_(e);s=l,(l===1&&!lt(e[0])||l===2&&!lt(e[0][0]))&&(o=!0)}else if(lt(e)&&!$d(e))s=Sa;else if(z(e))if(!isNaN(+e))s=Sa;else{var f=vr(e);f&&(u=f,s=In)}else if(Zo(e)){var h=R({},u);h.colorStops=j(e.colorStops,function(v){return{offset:v.offset,color:vr(v.color)}}),S_(e)?s=sl:w_(e)&&(s=ul),u=h}a===0?this.valType=s:(s!==this.valType||s===Bh)&&(o=!0),this.discrete=this.discrete||o;var c={time:t,value:u,rawValue:e,percent:0};return i&&(c.easing=i,c.easingFunc=q(i)?i:zn[i]||up(i)),n.push(c),c},r.prototype.prepare=function(t,e){var i=this.keyframes;this._needsSort&&i.sort(function(m,g){return m.time-g.time});for(var n=this.valType,a=i.length,o=i[a-1],s=this.discrete,u=wa(n),l=Nh(n),f=0;f<a;f++){var h=i[f],c=h.value,v=o.value;h.percent=h.time/t,s||(u&&f!==a-1?x_(c,v,n):l&&T_(c.colorStops,v.colorStops))}if(!s&&n!==ul&&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===Sa?i[f].additiveValue=i[f].value-d:n===In?i[f].additiveValue=_a([],i[f].value,d,-1):wa(n)&&(i[f].additiveValue=n===io?_a([],i[f].value,d,-1):kh([],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,u=this.propName,l=a===In,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 m=c(h+1,s-1);for(f=m;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 y=i?this._additiveValue:l?an:t[u];if((wa(a)||l)&&!y&&(y=this._additiveValue=[]),this.discrete)t[u]=p<1?v.rawValue:d.rawValue;else if(wa(a))a===io?As(y,v[n],d[n],p):b_(y,v[n],d[n],p);else if(Nh(a)){var _=v[n],S=d[n],b=a===sl;t[u]={type:b?"linear":"radial",x:Xe(_.x,S.x,p),y:Xe(_.y,S.y,p),colorStops:j(_.colorStops,function(T,C){var x=S.colorStops[C];return{offset:Xe(T.offset,x.offset,p),color:ro(As([],T.color,x.color,p))}}),global:S.global},b?(t[u].x2=Xe(_.x2,S.x2,p),t[u].y2=Xe(_.y2,S.y2,p)):t[u].r=Xe(_.r,S.r,p)}else if(l)As(y,v[n],d[n],p),i||(t[u]=ro(y));else{var w=Xe(v[n],d[n],p);i?this._additiveValue=w:t[u]=w}i&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,i=this.propName,n=this._additiveValue;e===Sa?t[i]=t[i]+n:e===In?(vr(t[i],an),_a(an,an,n,1),t[i]=ro(an)):e===io?_a(t[i],t[i],n,1):e===hp&&kh(t[i],t[i],n,1)},r})(),cf=(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){ei("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,mt(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],u=a[s];if(!u){u=a[s]=new D_(s);var l=void 0,f=this._getAdditiveTrack(s);if(f){var h=f.keyframes,c=h[h.length-1];l=c&&c.value,f.valType===In&&l&&(l=ro(l))}else l=this._target[s];if(l==null)continue;t>0&&u.addKeyframe(0,eo(l),n),this._trackKeys.push(s)}u.addKeyframe(t,eo(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],u=this._getAdditiveTrack(o),l=s.keyframes,f=l.length;if(s.prepare(n,u),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=l[f-1];h&&(e._target[s.propName]=h.rawValue),s.setFinished()}else i.push(s)}if(i.length||this._force){var c=new m_({life:n,loop:this._loop,delay:this._delay||0,onframe:function(v){e._started=2;var d=e._additiveAnimators;if(d){for(var m=!1,g=0;g<d.length;g++)if(d[g]._clip){m=!0;break}m||(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 j(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,u=s[i?0:s.length-1];u&&(t[a]=eo(u.rawValue))}}}},r.prototype.__changeFinalValue=function(t,e){e=e||mt(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 Fi(){return new Date().getTime()}var I_=(function(r){N(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=Fi()-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&&(yo(i),!e._paused&&e.update())}yo(i)},t.prototype.start=function(){this._running||(this._time=Fi(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Fi(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Fi()-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 cf(e,i.loop);return this.addAnimator(n),n},t})(Se),L_=300,Ps=U.domSupported,Rs=(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=j(r,function(n){var a=n.replace("mouse","pointer");return e.hasOwnProperty(a)?a:n});return{mouse:r,touch:t,pointer:i}})(),zh={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Fh=!1;function ll(r){var t=r.pointerType;return t==="pen"||t==="touch"}function M_(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 Es(r){r&&(r.zrByTouch=!0)}function A_(r,t){return se(r.dom,new P_(r,t),!0)}function cp(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 P_=(function(){function r(t,e){this.stopPropagation=Mt,this.stopImmediatePropagation=Mt,this.preventDefault=Mt,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r})(),ve={mousedown:function(r){r=se(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=se(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=se(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=se(this.dom,r);var t=r.toElement||r.relatedTarget;cp(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){Fh=!0,r=se(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){Fh||(r=se(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=se(this.dom,r),Es(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),ve.mousemove.call(this,r),ve.mousedown.call(this,r)},touchmove:function(r){r=se(this.dom,r),Es(r),this.handler.processGesture(r,"change"),ve.mousemove.call(this,r)},touchend:function(r){r=se(this.dom,r),Es(r),this.handler.processGesture(r,"end"),ve.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<L_&&ve.click.call(this,r)},pointerdown:function(r){ve.mousedown.call(this,r)},pointermove:function(r){ll(r)||ve.mousemove.call(this,r)},pointerup:function(r){ve.mouseup.call(this,r)},pointerout:function(r){ll(r)||ve.mouseout.call(this,r)}};I(["click","dblclick","contextmenu"],function(r){ve[r]=function(t){t=se(this.dom,t),this.trigger(r,t)}});var fl={pointermove:function(r){ll(r)||fl.mousemove.call(this,r)},pointerup:function(r){fl.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 R_(r,t){var e=t.domHandlers;U.pointerEventsSupported?I(Rs.pointer,function(i){no(t,i,function(n){e[i].call(r,n)})}):(U.touchEventsSupported&&I(Rs.touch,function(i){no(t,i,function(n){e[i].call(r,n),M_(t)})}),I(Rs.mouse,function(i){no(t,i,function(n){n=uf(n),t.touching||e[i].call(r,n)})}))}function E_(r,t){U.pointerEventsSupported?I(zh.pointer,e):U.touchEventsSupported||I(zh.mouse,e);function e(i){function n(a){a=uf(a),cp(r,a.target)||(a=A_(r,a),t.domHandlers[i].call(r,a))}no(t,i,n,{capture:!0})}}function no(r,t,e,i){r.mounted[t]=e,r.listenerOpts[t]=i,Zy(r.domTarget,t,e,i)}function Os(r){var t=r.mounted;for(var e in t)t.hasOwnProperty(e)&&qy(r.domTarget,e,t[e],r.listenerOpts[e]);r.mounted={}}var Hh=(function(){function r(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return r})(),O_=(function(r){N(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 Hh(e,ve),Ps&&(n._globalHandlerScope=new Hh(document,fl)),R_(n,n._localHandlerScope),n}return t.prototype.dispose=function(){Os(this._localHandlerScope),Ps&&Os(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,Ps&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var i=this._globalHandlerScope;e?E_(this,i):Os(i)}},t})(Se),vp=1;U.hasGlobalWindow&&(vp=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var bo=vp,hl=.4,cl="#333",vl="#ccc",k_="#eee",Vh=lf,Gh=5e-5;function Ir(r){return r>Gh||r<-Gh}var Lr=[],pi=[],ks=Oe(),Bs=Math.abs,Qr=(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 Ir(this.rotation)||Ir(this.x)||Ir(this.y)||Ir(this.scaleX-1)||Ir(this.scaleY-1)||Ir(this.skewX)||Ir(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),i=this.transform;if(!(e||t)){i&&(Vh(i),this.invTransform=null);return}i=i||Oe(),e?this.getLocalTransform(i):Vh(i),t&&(e?Bn(i,t,i):ff(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(Lr);var i=Lr[0]<0?-1:1,n=Lr[1]<0?-1:1,a=((Lr[0]-i)*e+i)/Lr[0]||0,o=((Lr[1]-n)*e+n)/Lr[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Oe(),la(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||Oe(),Bn(pi,t.invTransform,e),e=pi);var i=this.originX,n=this.originY;(i||n)&&(ks[4]=i,ks[5]=n,Bn(pi,e,ks),pi[4]-=i,pi[5]-=n,e=pi),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&&re(i,i,n),i},r.prototype.transformCoordToGlobal=function(t,e){var i=[t,e],n=this.transform;return n&&re(i,i,n),i},r.prototype.getLineScale=function(){var t=this.transform;return t&&Bs(t[0]-1)>1e-10&&Bs(t[3]-1)>1e-10?Math.sqrt(Bs(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){dl(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,u=t.anchorY,l=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||u){var d=i+s,m=n+u;e[4]=-d*a-c*m*o,e[5]=-m*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,l&&hf(e,e,l),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})(),$n=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function dl(r,t){for(var e=0;e<$n.length;e++){var i=$n[e];r[i]=t[i]}}function ke(r){ba||(ba=new Yi(100)),r=r||pr;var t=ba.get(r);return t||(t={font:r,strWidthCache:new Yi(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:Je.measureText("国",r).width,asciiCharWidth:Je.measureText("a",r).width},ba.put(r,t)),t}var ba;function B_(r){if(!(Ns>=Uh)){r=r||pr;for(var t=[],e=+new Date,i=0;i<=127;i++)t[i]=Je.measureText(String.fromCharCode(i),r).width;var n=+new Date-e;return n>16?Ns=Uh:n>2&&Ns++,t}}var Ns=0,Uh=5;function dp(r,t){return r.asciiWidthMapTried||(r.asciiWidthMap=B_(r.font),r.asciiWidthMapTried=!0),0<=t&&t<=127?r.asciiWidthMap!=null?r.asciiWidthMap[t]:r.asciiCharWidth:r.stWideCharWidth}function Be(r,t){var e=r.strWidthCache,i=e.get(t);return i==null&&(i=Je.measureText(t,r.font).width,e.put(t,i)),i}function Wh(r,t,e,i){var n=Be(ke(t),r),a=Qo(t),o=Xi(0,n,e),s=ni(0,a,i),u=new X(o,s,n,a);return u}function N_(r,t,e,i){var n=((r||"")+"").split(`
2
+ `),a=n.length;if(a===1)return Wh(n[0],t,e,i);for(var o=new X(0,0,0,0),s=0;s<n.length;s++){var u=Wh(n[s],t,e,i);s===0?o.copy(u):o.union(u)}return o}function Xi(r,t,e,i){return e==="right"?i?r+=t:r-=t:e==="center"&&(i?r+=t/2:r-=t/2),r}function ni(r,t,e,i){return e==="middle"?i?r+=t/2:r-=t/2:e==="bottom"&&(i?r+=t:r-=t),r}function Qo(r){return ke(r).stWideCharWidth}function Zn(r,t){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*t:parseFloat(r):r}function pp(r,t,e){var i=t.position||"inside",n=t.distance!=null?t.distance:5,a=e.height,o=e.width,s=a/2,u=e.x,l=e.y,f="left",h="top";if(i instanceof Array)u+=Zn(i[0],e.width),l+=Zn(i[1],e.height),f=null,h=null;else switch(i){case"left":u-=n,l+=s,f="right",h="middle";break;case"right":u+=n+o,l+=s,h="middle";break;case"top":u+=o/2,l-=n,f="center",h="bottom";break;case"bottom":u+=o/2,l+=a+n,f="center";break;case"inside":u+=o/2,l+=s,f="center",h="middle";break;case"insideLeft":u+=n,l+=s,h="middle";break;case"insideRight":u+=o-n,l+=s,f="right",h="middle";break;case"insideTop":u+=o/2,l+=n,f="center";break;case"insideBottom":u+=o/2,l+=a-n,f="center",h="bottom";break;case"insideTopLeft":u+=n,l+=n;break;case"insideTopRight":u+=o-n,l+=n,f="right";break;case"insideBottomLeft":u+=n,l+=a-n,h="bottom";break;case"insideBottomRight":u+=o-n,l+=a-n,f="right",h="bottom";break}return r=r||{},r.x=u,r.y=l,r.align=f,r.verticalAlign=h,r}var zs="__zr_normal__",Fs=$n.concat(["ignore"]),z_=tn($n,function(r,t){return r[t]=!0,r},{ignore:!1}),gi={},F_=new X(0,0,0,0),Ta=[],jo=(function(){function r(t){this.id=Xd(),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,u=!1;a.parent=n?this:null;var l=!1;a.copyTransform(e);var f=i.position!=null,h=i.autoOverflowArea,c=void 0;if((h||f)&&(c=F_,i.layoutRect?c.copy(i.layoutRect):c.copy(this.getBoundingRect()),n||c.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(gi,i,c):pp(gi,i,c),a.x=gi.x,a.y=gi.y,o=gi.align,s=gi.verticalAlign;var v=i.origin;if(v&&i.rotation!=null){var d=void 0,m=void 0;v==="center"?(d=c.width*.5,m=c.height*.5):(d=Zn(v[0],c.width),m=Zn(v[1],c.height)),l=!0,a.originX=-a.x+d+(n?0:c.x),a.originY=-a.y+m+(n?0:c.y)}}i.rotation!=null&&(a.rotation=i.rotation);var g=i.offset;g&&(a.x+=g[0],a.y+=g[1],l||(a.originX=-g[0],a.originY=-g[1]));var p=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(h){var y=p.overflowRect=p.overflowRect||new X(0,0,0,0);a.getLocalTransform(Ta),la(Ta,Ta),X.copy(y,c),y.applyTransform(Ta)}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)&&(u=!0,p.fill=S,p.stroke=b,p.autoStroke=w,p.align=o,p.verticalAlign=s,e.setDefaultTextStyle(p)),e.__dirty|=ee,u&&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()?vl:cl},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),i=typeof e=="string"&&vr(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,Ko(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||{},R(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(H(t))for(var i=t,n=mt(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!==zs)){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,Fs)},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(zs,!1,t)},r.prototype.useState=function(t,e,i,n){var a=t===zs,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,u=this.stateTransition;if(!(ut(s,t)>=0&&(e||s.length===1))){var l;if(this.stateProxy&&!a&&(l=this.stateProxy(t)),l||(l=this.states&&this.states[t]),!l&&!a){ei("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(l);var f=!!(l&&l.hoverLayer||n);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,l,this._normalState,e,!i&&!this.__inHover&&u&&u.duration>0,u);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&=~ee),l}}},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 u=0;u<o;u++)if(t[u]!==a[u]){s=!1;break}}if(s)return;for(var u=0;u<o;u++){var l=t[u],f=void 0;this.stateProxy&&(f=this.stateProxy(l,t)),f||(f=this.states[l]),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 m=this._textContent,g=this._textGuide;m&&m.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&=~ee)}},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=ut(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=ut(n,t),o=ut(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];R(e,a),a.textConfig&&(i=i||{},R(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=R({},n?this.textConfig:i.textConfig),R(this.textConfig,e.textConfig)):s&&i.textConfig&&(this.textConfig=i.textConfig);for(var u={},l=!1,f=0;f<Fs.length;f++){var h=Fs[f],c=a&&z_[h];e&&e[h]!=null?c?(l=!0,u[h]=e[h]):this[h]=e[h]:s&&i[h]!=null&&(c?(l=!0,u[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)}l&&this._transitionState(t,u,o)},r.prototype._attachComponent=function(t){if(t.__zr&&!t.__hostTarget)throw new Error("Text element has been added to zrender.");if(t===this)throw new Error("Recursive component attachment.");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;if(e!==t){if(e&&e!==t&&this.removeTextContent(),t.__zr&&!t.__hostTarget)throw new Error("Text element has been added to zrender.");t.innerTransformable=new Qr,this._attachComponent(t),this._textContent=t,this.markRedraw()}},r.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),R(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|=ee;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;if(!n){ei('Property "'+t+'" is not existed in element '+this.id);return}var a=new cf(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=ut(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){Hs(this,t,e,i)},r.prototype.animateFrom=function(t,e,i){Hs(this,t,e,i,!0)},r.prototype._transitionState=function(t,e,i,n){for(var a=Hs(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=ee;var e={};function i(a,o,s){e[a+o+s]||(console.warn("DEPRECATED: '"+a+"' has been deprecated. use '"+o+"', '"+s+"' instead"),e[a+o+s]=!0)}function n(a,o,s,u){Object.defineProperty(t,a,{get:function(){if(i(a,s,u),!this[o]){var f=this[o]=[];l(this,f)}return this[o]},set:function(f){i(a,s,u),this[s]=f[0],this[u]=f[1],this[o]=f,l(this,f)}});function l(f,h){Object.defineProperty(h,0,{get:function(){return f[s]},set:function(c){f[s]=c}}),Object.defineProperty(h,1,{get:function(){return f[u]},set:function(c){f[u]=c}})}}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))})(),r})();_e(jo,Se);_e(jo,Qr);function Hs(r,t,e,i,n){e=e||{};var a=[];gp(r,"",r,t,e,i,a,n);var o=a.length,s=!1,u=e.done,l=e.aborted,f=function(){s=!0,o--,o<=0&&(s?u&&u():l&&l())},h=function(){o--,o<=0&&(s?u&&u():l&&l())};o||u&&u(),a.length>0&&e.during&&a[0].during(function(d,m){e.during(m)});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 Vs(r,t,e){for(var i=0;i<e;i++)r[i]=t[i]}function H_(r){return Kt(r[0])}function V_(r,t,e){if(Kt(t[e]))if(Kt(r[e])||(r[e]=[]),Ht(t[e])){var i=t[e].length;r[e].length!==i&&(r[e]=new t[e].constructor(i),Vs(r[e],t[e],i))}else{var n=t[e],a=r[e],o=n.length;if(H_(n))for(var s=n[0].length,u=0;u<o;u++)a[u]?Vs(a[u],n[u],s):a[u]=Array.prototype.slice.call(n[u]);else Vs(a,n,o);a.length=n.length}else r[e]=t[e]}function G_(r,t){return r===t||Kt(r)&&Kt(t)&&U_(r,t)}function U_(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 gp(r,t,e,i,n,a,o,s){for(var u=mt(i),l=n.duration,f=n.delay,h=n.additive,c=n.setToFinal,v=!H(a),d=r.animators,m=[],g=0;g<u.length;g++){var p=u[g],y=i[p];if(y!=null&&e[p]!=null&&(v||a[p]))if(H(y)&&!Kt(y)&&!Zo(y)){if(t){s||(e[p]=y,r.updateDuringAnimation(t));continue}gp(r,p,e[p],y,n,a&&a[p],o,s)}else m.push(p);else s||(e[p]=y,r.updateDuringAnimation(t),m.push(p))}var _=m.length;if(!h&&_)for(var S=0;S<d.length;S++){var b=d[S];if(b.targetName===t){var w=b.stopTracks(m);if(w){var T=ut(d,b);d.splice(T,1)}}}if(n.force||(m=te(m,function(L){return!G_(i[L],e[L])}),_=m.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=m[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=m[S];D[p]=eo(e[p]),V_(e,i,p)}}var b=new cf(e,!1,!1,h?te(d,function(A){return A.targetName===t}):null);b.targetName=t,n.scope&&(b.scope=n.scope),c&&C&&b.whenWithKeys(0,C,m),D&&b.whenWithKeys(0,D,m),b.whenWithKeys(l??500,s?x:i,m).delay(f||0),r.addAnimator(b,t),o.push(b)}}var bt=(function(r){N(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){if(e&&(e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),e.__hostTarget))throw"This elemenet has been used as an attachment";return 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=ut(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=ut(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 X(0,0,0,0),n=e||this._children,a=[],o=null,s=0;s<n.length;s++){var u=n[s];if(!(u.ignore||u.invisible)){var l=u.getBoundingRect(),f=u.getLocalTransform(a);f?(X.applyTransform(i,l,f),o=o||i.clone(),o.union(i)):(o=o||l.clone(),o.union(l))}}return o||i},t})(jo);bt.prototype.type="group";var Ln={},mp={};function W_(r){delete mp[r]}function Y_(r){if(!r)return!1;if(typeof r=="string")return wo(r,1)<hl;if(r.colorStops){for(var t=r.colorStops,e=0,i=t.length,n=0;n<i;n++)e+=wo(t[n].color,1);return e/=i,e<hl}return!1}var X_=(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 f_,o=i.renderer||"canvas";if(Ln[o]||(o=mt(Ln)[0]),!Ln[o])throw new Error("Renderer '"+o+"' is not imported. Please import it first.");i.useDirtyRect=i.useDirtyRect==null?!1:i.useDirtyRect;var s=new Ln[o](e,a,i,t),u=i.ssr||s.ssrOnly;this.storage=a,this.painter=s;var l=!U.node&&!U.worker&&!u?new O_(s.getViewportRoot(),s.root):null,f=i.useCoarsePointer,h=f==null||f==="auto"?U.touchEventsSupported:!!f,c=44,v;h&&(v=F(i.pointerSize,c)),this.handler=new tp(a,s,l,s.root,v),this.animation=new I_({stage:{update:u?null:function(){return n._flush(!0)}}}),u||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=Y_(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=Fi();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var n=Fi();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 bt&&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,W_(this.id))},r})();function Yh(r,t){var e=new X_(Xd(),r,t);return mp[e.id]=e,e}function $_(r,t){Ln[r]=t}var Xh=1e-4,yp=20;function Z_(r){return r.replace(/^\s+|\s+$/g,"")}var qn=Math.min,ge=Math.max,Ze=Math.abs;function $h(r,t,e,i){var n=t[0],a=t[1],o=e[0],s=e[1],u=a-n,l=s-o;if(u===0)return l===0?o:(o+s)/2;{if(r===n)return o;if(r===a)return s}return(r-n)/u*l+o}var Yt=q_;function q_(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 K_(r,t,e)}function K_(r,t,e){return z(r)?Z_(r).match(/%$/)?parseFloat(r)/100*t+(e||0):parseFloat(r):r==null?NaN:+r}function _p(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),yp),r=(+r).toFixed(t),+r}function Zh(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 Q_(r)}function Q_(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 j_(r,t){var e=Math.max(Zh(r),Zh(t)),i=r+t;return e>yp?i:_p(i,e)}function Sp(r){var t=Math.PI*2;return(r%t+t)%t}function To(r){return r>-Xh&&r<Xh}var J_=/^(?:(\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 Jo(r){if(r instanceof Date)return r;if(z(r)){var t=J_.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 xo(r){var t=parseFloat(r);return t==r&&(t!==0||!z(r)||r.indexOf("x")<=0)?t:NaN}function wp(r){return!isNaN(xo(r))}function bp(){return Math.round(Math.random()*9)}function Tp(r,t){return t===0?r:Tp(t,r%t)}function qh(r,t){return r==null?t:t==null?r:r*t/Tp(r,t)}var t0="[ECharts] ",Kh={},e0=typeof console<"u"&&console.warn&&console.log;function ts(r,t,e){if(e0){if(e){if(Kh[t])return;Kh[t]=!0}console[r](t0+t)}}function r0(r,t){ts("log",r,t)}function pe(r,t){ts("warn",r,t)}function ft(r,t){ts("error",r,t)}function tr(r){ts("warn","DEPRECATED: "+r,!0)}function Dt(r,t,e){tr((e?"["+e+"]":"")+(r+" is deprecated; use "+t+" instead."))}function Co(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];var e="";{var i=function(n){return n===void 0?"undefined":n===1/0?"Infinity":n===-1/0?"-Infinity":$d(n)?"NaN":n instanceof Date?"Date("+n.toISOString()+")":q(n)?"function () { ... }":Iy(n)?n+"":null};e=j(r,function(n){if(z(n))return n;var a=i(n);if(a!=null)return a;if(typeof JSON<"u"&&JSON.stringify)try{return JSON.stringify(n,function(o,s){var u=i(s);return u??s})}catch{return"?"}else return"?"}).join(" ")}return e}function Xt(r){throw new Error(r)}var xp="series\0",i0="\0_ec_\0";function Ft(r){return r instanceof Array?r:r==null?[]:[r]}function pl(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 Qh=["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 fa(r){return H(r)&&!B(r)&&!(r instanceof Date)?r.value:r}function n0(r){return H(r)&&!(r instanceof Array)}function a0(r,t,e){var i=e==="normalMerge",n=e==="replaceMerge",a=e==="replaceAll";r=r||[],t=(t||[]).slice();var o=Y();I(t,function(u,l){if(!H(u)){t[l]=null;return}u.id!=null&&!Jh(u.id)&&jh(u.id),u.name!=null&&!Jh(u.name)&&jh(u.name)});var s=o0(r,o,e);return(i||n)&&s0(s,r,o,t),i&&u0(s,t),i||n?l0(s,t,n):a&&f0(s,t),h0(s),s}function o0(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"||$i(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return i}function s0(r,t,e,i){I(i,function(n,a){if(!(!n||n.id==null)){var o=Hn(n.id),s=e.get(o);if(s!=null){var u=r[s];V(!u.newOption,'Duplicated option on id "'+o+'".'),u.newOption=n,u.existing=t[s],i[a]=null}}})}function u0(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)&&!$i(e)&&!$i(a)&&Cp("name",a,e)){r[n].newOption=e,t[i]=null;return}}})}function l0(r,t,e){I(t,function(i){if(i){for(var n,a=0;(n=r[a])&&(n.newOption||$i(n.existing)||n.existing&&i.id!=null&&!Cp("id",i,n.existing));)a++;n?(n.newOption=i,n.brandNew=e):r.push({newOption:i,brandNew:e,existing:null,keyInfo:null}),a++}})}function f0(r,t){I(t,function(e){r.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}function h0(r){var t=Y();I(r,function(e){var i=e.existing;i&&t.set(i.id,e)}),I(r,function(e){var i=e.newOption;V(!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(H(a)){if(o.name=a.name!=null?Hn(a.name):n?n.name:xp+i,n)o.id=Hn(n.id);else if(a.id!=null)o.id=Hn(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 Cp(r,t,e){var i=ye(t[r],null),n=ye(e[r],null);return i!=null&&n!=null&&i===n}function Hn(r){if(r==null)throw new Error;return ye(r,"")}function ye(r,t){return r==null?t:z(r)?r:lt(r)||po(r)?r+"":t}function jh(r){pe("`"+r+"` is invalid id or name. Must be a string or number.")}function Jh(r){return po(r)||wp(r)}function vf(r){var t=r.name;return!!(t&&t.indexOf(xp))}function $i(r){return r&&r.id!=null&&Hn(r.id).indexOf(i0)===0}function c0(r,t,e){I(r,function(i){var n=i.newOption;H(n)&&(i.keyInfo.mainType=t,i.keyInfo.subType=v0(t,n,i.existing,e))})}function v0(r,t,e,i){var n=t.type?t.type:e?e.subType:i.determineSubType(r,t);return n}function ha(r,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return B(t.dataIndex)?j(t.dataIndex,function(e){return r.indexOfRawIndex(e)}):r.indexOfRawIndex(t.dataIndex);if(t.name!=null)return B(t.name)?j(t.name,function(e){return r.indexOfName(e)}):r.indexOfName(t.name)}function ct(){var r="__ec_inner_"+d0++;return function(t){return t[r]||(t[r]={})}}var d0=bp();function Gs(r,t,e){var i=df(t,e),n=i.mainTypeSpecified,a=i.queryOptionMap,o=i.others,s=o,u=e?e.defaultMainType:null;return!n&&u&&a.set(u,{}),a.each(function(l,f){var h=ca(r,f,l,{useDefault:u===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 df(r,t){var e;if(z(r)){var i={};i[r+"Index"]=0,e=i}else e=r;var n=Y(),a={},o=!1;return I(e,function(s,u){if(u==="dataIndex"||u==="dataIndexInside"){a[u]=s;return}var l=u.match(/^(\w+)(Index|Id|Name)$/)||[],f=l[1],h=(l[2]||"").toLowerCase();if(!(!f||!h||t&&t.includeMainTypes&&ut(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 lr={useDefault:!0,enableAll:!1,enableNone:!1};function ca(r,t,e,i){i=i||lr;var n=e.index,a=e.id,o=e.name,s={models:null,specified:n!=null||a!=null||o!=null};if(!s.specified){var u=void 0;return s.models=i.useDefault&&(u=r.getComponent(t))?[u]:[],s}if(n==="none"||n===!1){if(i.enableNone)return s.models=[],s;ft('`"none"` or `false` is not a valid value on index option.'),n=-1}return n==="all"&&(i.enableAll?n=a=o=null:(ft('`"all"` is not a valid value on index option.'),n=-1)),s.models=r.queryComponents({mainType:t,index:n,id:a,name:o}),s}function Dp(r,t,e){r.setAttribute?r.setAttribute(t,e):r[t]=e}function p0(r,t){return r.getAttribute?r.getAttribute(t):r[t]}function g0(r){return r==="auto"?U.domSupported?"html":"richText":r||"html"}var m0=".",Mr="___EC__COMPONENT__CONTAINER___",Ip="___EC__EXTENDED_CLASS___";function Ee(r){var t={main:"",sub:""};if(r){var e=r.split(m0);t.main=e[0]||"",t.sub=e[1]||""}return t}function y0(r){V(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function _0(r){return!!(r&&r[Ip])}function pf(r,t){r.$constructor=r,r.extend=function(e){I(t,function(a){e[a]||console.warn("Method `"+a+"` should be implemented"+(e.type?" in "+e.type:"")+".")});var i=this,n;return S0(i)?n=(function(a){N(o,a);function o(){return a.apply(this,arguments)||this}return o})(i):(n=function(){(e.$constructor||i).apply(this,arguments)},xy(n,this)),R(n.prototype,e),n[Ip]=!0,n.extend=this.extend,n.superCall=T0,n.superApply=x0,n.superClass=i,n}}function S0(r){return q(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function Lp(r,t){r.extend=t.extend}var w0=Math.round(Math.random()*10);function b0(r){var t=["__\0is_clz",w0++].join("_");r.prototype[t]=!0,V(!r.isInstance,'The method "is" can not be defined.'),r.isInstance=function(e){return!!(e&&e[t])}}function T0(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 x0(r,t,e){return this.superClass.prototype[t].apply(r,e)}function gf(r){var t={};r.registerClass=function(i){var n=i.type||i.prototype.type;if(n){y0(n),i.prototype.type=n;var a=Ee(n);if(!a.sub)t[a.main]&&console.warn(a.main+" exists."),t[a.main]=i;else if(a.sub!==Mr){var o=e(a);o[a.sub]=i}}return i},r.getClass=function(i,n,a){var o=t[i];if(o&&o[Mr]&&(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=Ee(i),a=[],o=t[n.main];return o&&o[Mr]?I(o,function(s,u){u!==Mr&&a.push(s)}):a.push(o),a},r.hasClass=function(i){var n=Ee(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=Ee(i),a=t[n.main];return a&&a[Mr]};function e(i){var n=t[i.main];return(!n||!n[Mr])&&(n=t[i.main]={},n[Mr]=!0),n}}function Kn(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 u=r[s][1];if(!(n&&ut(n,u)>=0||a&&ut(a,u)<0)){var l=i.getShallow(u,t);l!=null&&(o[r[s][0]]=l)}}return o}}var C0=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],D0=Kn(C0),I0=(function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return D0(this,t,e)},r})(),gl=new Yi(50);function L0(r){if(typeof r=="string"){var t=gl.get(r);return t&&t.image}else return r}function Mp(r,t,e,i,n){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var a=gl.get(r),o={hostEl:e,cb:i,cbPayload:n};return a?(t=a.image,!es(t)&&a.pending.push(o)):(t=Je.loadImage(r,tc,tc),t.__zrImageSrc=r,gl.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function tc(){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 es(r){return r&&r.width&&r.height}var Us=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function M0(r,t,e,i,n,a){if(!e){r.text="",r.isTruncated=!1;return}var o=(t+"").split(`
3
+ `);a=Ap(e,i,n,a);for(var s=!1,u={},l=0,f=o.length;l<f;l++)Pp(u,o[l],a),o[l]=u.textLine,s=s||u.isTruncated;r.text=o.join(`
4
+ `),r.isTruncated=s}function Ap(r,t,e,i){i=i||{};var n=R({},i);e=F(e,"..."),n.maxIterations=F(i.maxIterations,2);var a=n.minChar=F(i.minChar,0),o=n.fontMeasureInfo=ke(t),s=o.asciiCharWidth;n.placeholder=F(i.placeholder,"");for(var u=r=Math.max(0,r-1),l=0;l<a&&u>=s;l++)u-=s;var f=Be(o,e);return f>u&&(e="",f=0),u=r-f,n.ellipsis=e,n.ellipsisWidth=f,n.contentWidth=u,n.containerWidth=r,n}function Pp(r,t,e){var i=e.containerWidth,n=e.contentWidth,a=e.fontMeasureInfo;if(!i){r.textLine="",r.isTruncated=!1;return}var o=Be(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 u=s===0?A0(t,n,a):o>0?Math.floor(t.length*n/o):0;t=t.substr(0,u),o=Be(a,t)}t===""&&(t=e.placeholder),r.textLine=t,r.isTruncated=!0}function A0(r,t,e){for(var i=0,n=0,a=r.length;n<a&&i<t;n++)i+=dp(e,r.charCodeAt(n));return n}function P0(r,t,e,i){var n=mf(r),a=t.overflow,o=t.padding,s=o?o[1]+o[3]:0,u=o?o[0]+o[2]:0,l=t.font,f=a==="truncate",h=Qo(l),c=F(t.lineHeight,h),v=t.lineOverflow==="truncate",d=!1,m=t.width;m==null&&e!=null&&(m=e-s);var g=t.height;g==null&&i!=null&&(g=i-u);var p;m!=null&&(a==="break"||a==="breakAll")?p=n?Rp(n,t.font,m,a==="breakAll",0).lines:[]:p=n?n.split(`
5
+ `):[];var y=p.length*c;if(g==null&&(g=y),y>g&&v){var _=Math.floor(g/c);d=d||p.length>_,p=p.slice(0,_),y=p.length*c}if(n&&f&&m!=null)for(var S=Ap(m,l,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),b={},w=0;w<p.length;w++)Pp(b,p[w],S),p[w]=b.textLine,d=d||b.isTruncated;for(var T=g,C=0,x=ke(l),w=0;w<p.length;w++)C=Math.max(Be(x,p[w]),C);m==null&&(m=C);var D=m;return T+=u,D+=s,{lines:p,height:g,outerWidth:D,outerHeight:T,lineHeight:c,calculatedLineHeight:h,contentWidth:C,contentHeight:y,width:m,isTruncated:d}}var R0=(function(){function r(){}return r})(),ec=(function(){function r(t){this.tokens=[],t&&(this.tokens=t)}return r})(),E0=(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 O0(r,t,e,i,n){var a=new E0,o=mf(r);if(!o)return a;var s=t.padding,u=s?s[1]+s[3]:0,l=s?s[0]+s[2]:0,f=t.width;f==null&&e!=null&&(f=e-u);var h=t.height;h==null&&i!=null&&(h=i-l);for(var c=t.overflow,v=(c==="break"||c==="breakAll")&&f!=null?{width:f,accumWidth:0,breakAll:c==="breakAll"}:null,d=Us.lastIndex=0,m;(m=Us.exec(o))!=null;){var g=m.index;g>d&&Ws(a,o.substring(d,g),t,v),Ws(a,m[2],t,v,m[1]),d=Us.lastIndex}d<o.length&&Ws(a,o.substring(d,o.length),t,v);var p=[],y=0,_=0,S=c==="truncate",b=t.lineOverflow==="truncate",w={};function T(xe,Ce,Ve){xe.width=Ce,xe.lineHeight=Ve,y+=Ve,_=Math.max(_,Ce)}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]||{},E=M.textPadding=P.padding,k=E?E[1]+E[3]:0,Z=M.font=P.font||t.font;M.contentHeight=Qo(Z);var J=F(P.height,M.contentHeight);if(M.innerHeight=J,E&&(J+=E[0]+E[2]),M.height=J,M.lineHeight=Ke(P.lineHeight,t.lineHeight,J),M.align=P&&P.align||n,M.verticalAlign=P&&P.verticalAlign||"middle",b&&h!=null&&y+M.lineHeight>h){var tt=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<tt;break t}var K=P.width,yt=K==null||K==="auto";if(typeof K=="string"&&K.charAt(K.length-1)==="%")M.percentWidth=K,p.push(M),M.contentWidth=Be(ke(Z),M.text);else{if(yt){var rt=P.backgroundColor,Tt=rt&&rt.image;Tt&&(Tt=L0(Tt),es(Tt)&&(M.width=Math.max(M.width,Tt.width*J/Tt.height)))}var It=S&&f!=null?f-L:null;It!=null&&It<M.width?!yt||It<k?(M.text="",M.width=M.contentWidth=0):(M0(w,M.text,It-k,Z,t.ellipsis,{minChar:t.truncateMinChar}),M.text=w.text,a.isTruncated=a.isTruncated||w.isTruncated,M.width=M.contentWidth=Be(ke(Z),M.text)):M.contentWidth=Be(ke(Z),M.text)}M.width+=k,L+=M.width,P&&(D=Math.max(D,M.lineHeight))}T(x,L,D)}a.outerWidth=a.width=F(f,_),a.outerHeight=a.height=F(h,y),a.contentHeight=y,a.contentWidth=_,a.outerWidth+=u,a.outerHeight+=l;for(var C=0;C<p.length;C++){var M=p[C],Te=M.percentWidth;M.width=parseInt(Te,10)/100*a.width}return a}function Ws(r,t,e,i,n){var a=t==="",o=n&&e.rich[n]||{},s=r.lines,u=o.font||e.font,l=!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=Zn(o.width,i.width)+v;s.length>0&&d+i.accumWidth>i.width&&(f=t.split(`
6
+ `),l=!0),i.accumWidth=d}else{var m=Rp(t,u,i.width,i.breakAll,i.accumWidth);i.accumWidth=m.accumWidth+v,h=m.linesWidths,f=m.lines}}f||(f=t.split(`
7
+ `));for(var g=ke(u),p=0;p<f.length;p++){var y=f[p],_=new R0;if(_.styleName=n,_.text=y,_.isLineHolder=!y&&!a,typeof o.width=="number"?_.width=o.width:_.width=h?h[p]:Be(g,y),!p&&!l){var S=(s[s.length-1]||(s[0]=new ec)).tokens,b=S.length;b===1&&S[0].isLineHolder?S[0]=_:(y||!b||a)&&S.push(_)}else s.push(new ec([_]))}}function k0(r){var t=r.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var B0=tn(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function N0(r){return k0(r)?!!B0[r]:!0}function Rp(r,t,e,i,n){for(var a=[],o=[],s="",u="",l=0,f=0,h=ke(t),c=0;c<r.length;c++){var v=r.charAt(c);if(v===`
8
+ `){u&&(s+=u,f+=l),a.push(s),o.push(f),s="",u="",l=0,f=0;continue}var d=dp(h,v.charCodeAt(0)),m=i?!1:!N0(v);if(a.length?f+d>e:n+f+d>e){f?(s||u)&&(m?(s||(s=u,u="",l=0,f=l),a.push(s),o.push(f-l),u+=v,l+=d,s="",f=l):(u&&(s+=u,u="",l=0),a.push(s),o.push(f),s=v,f=d)):m?(a.push(u),o.push(l),u=v,l=d):(a.push(v),o.push(d));continue}f+=d,m?(u+=v,l+=d):(u&&(s+=u,u="",l=0),s+=v)}return u&&(s+=u),s&&(a.push(s),o.push(f)),a.length===1&&(f+=n),{accumWidth:f,lines:a,linesWidths:o}}function rc(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;X.set(ic,Xi(e,o,n),ni(i,s,a),o,s),X.intersect(t,ic,null,nc);var u=nc.outIntersectRect;r.outerWidth=u.width,r.outerHeight=u.height,r.baseX=Xi(u.x,u.width,n,!0),r.baseY=ni(u.y,u.height,a,!0)}}var ic=new X(0,0,0,0),nc={outIntersectRect:{},clamp:!0};function mf(r){return r!=null?r+="":r=""}function z0(r){var t=mf(r.text),e=r.font,i=Be(ke(e),t),n=Qo(e);return ml(r,i,n,null)}function ml(r,t,e,i){var n=new X(Xi(r.x||0,t,r.textAlign),ni(r.y||0,e,r.textBaseline),t,e),a=i??(Ep(r)?r.lineWidth:0);return a>0&&(n.x-=a/2,n.y-=a/2,n.width+=a,n.height+=a),n}function Ep(r){var t=r.stroke;return t!=null&&t!=="none"&&r.lineWidth>0}var yl="__zr_style_"+Math.round(Math.random()*10),ai={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},rs={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};ai[yl]=!0;var ac=["z","z2","invisible"],F0=["invisible"],va=(function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var i=mt(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&&H0(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 u=this.parent;u;){if(u.ignore)return!1;u=u.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,u=a.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new X(0,0,0,0)),i?X.applyTransform(e,n,i):e.copy(n),(o||s||u)&&(e.width+=o*2+Math.abs(s),e.height+=o*2+Math.abs(u),e.x=Math.min(e.x,e.x+s-o),e.y=Math.min(e.y,e.y+u-o));var l=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-l),e.y=Math.floor(e.y-l),e.width=Math.ceil(e.width+1+l*2),e.height=Math.ceil(e.height+1+l*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new X(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate("style",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(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:R(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=Dn,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&Dn)},t.prototype.styleUpdated=function(){this.__dirty&=~Dn},t.prototype.createStyle=function(e){return qo(ai,e)},t.prototype.useStyle=function(e){e[yl]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[yl]},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,ac)},t.prototype._applyStateObj=function(e,i,n,a,o,s){r.prototype._applyStateObj.call(this,e,i,n,a,o,s);var u=!(i&&a),l;if(i&&i.style?o?a?l=i.style:(l=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(l,i.style)):(l=this._mergeStyle(this.createStyle(),a?this.style:n.style),this._mergeStyle(l,i.style)):u&&(l=n.style),l)if(o){var f=this.style;if(this.style=this.createStyle(u?{}:f),u)for(var h=mt(f),c=0;c<h.length;c++){var v=h[c];v in l&&(l[v]=l[v],this.style[v]=f[v])}for(var d=mt(l),c=0;c<d.length;c++){var v=d[c];this.style[v]=this.style[v]}this._transitionState(e,{style:l},s,this.getAnimationStyleProps())}else this.useStyle(l);for(var m=this.__inHover?F0:ac,c=0;c<m.length;c++){var v=m[c];i&&i[v]!=null?this[v]=i[v]:u&&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 R(e,i),e},t.prototype.getAnimationStyleProps=function(){return rs},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=ee|Dn})(),t})(jo),Ys=new X(0,0,0,0),Xs=new X(0,0,0,0);function H0(r,t,e){return Ys.copy(r.getBoundingRect()),r.transform&&Ys.applyTransform(r.transform),Xs.width=t,Xs.height=e,!Ys.intersect(Xs)}var $t=Math.min,Zt=Math.max,$s=Math.sin,Zs=Math.cos,Ar=Math.PI*2,xa=ui(),Ca=ui(),Da=ui();function V0(r,t,e){if(r.length!==0){for(var i=r[0],n=i[0],a=i[0],o=i[1],s=i[1],u=1;u<r.length;u++)i=r[u],n=$t(n,i[0]),a=Zt(a,i[0]),o=$t(o,i[1]),s=Zt(s,i[1]);t[0]=n,t[1]=o,e[0]=a,e[1]=s}}function oc(r,t,e,i,n,a){n[0]=$t(r,e),n[1]=$t(t,i),a[0]=Zt(r,e),a[1]=Zt(t,i)}var sc=[],uc=[];function G0(r,t,e,i,n,a,o,s,u,l){var f=op,h=Nt,c=f(r,e,n,o,sc);u[0]=1/0,u[1]=1/0,l[0]=-1/0,l[1]=-1/0;for(var v=0;v<c;v++){var d=h(r,e,n,o,sc[v]);u[0]=$t(d,u[0]),l[0]=Zt(d,l[0])}c=f(t,i,a,s,uc);for(var v=0;v<c;v++){var m=h(t,i,a,s,uc[v]);u[1]=$t(m,u[1]),l[1]=Zt(m,l[1])}u[0]=$t(r,u[0]),l[0]=Zt(r,l[0]),u[0]=$t(o,u[0]),l[0]=Zt(o,l[0]),u[1]=$t(t,u[1]),l[1]=Zt(t,l[1]),u[1]=$t(s,u[1]),l[1]=Zt(s,l[1])}function U0(r,t,e,i,n,a,o,s){var u=sp,l=zt,f=Zt($t(u(r,e,n),1),0),h=Zt($t(u(t,i,a),1),0),c=l(r,e,n,f),v=l(t,i,a,h);o[0]=$t(r,n,c),o[1]=$t(t,a,v),s[0]=Zt(r,n,c),s[1]=Zt(t,a,v)}function W0(r,t,e,i,n,a,o,s,u){var l=Bi,f=Ni,h=Math.abs(n-a);if(h%Ar<1e-4&&h>1e-4){s[0]=r-e,s[1]=t-i,u[0]=r+e,u[1]=t+i;return}if(xa[0]=Zs(n)*e+r,xa[1]=$s(n)*i+t,Ca[0]=Zs(a)*e+r,Ca[1]=$s(a)*i+t,l(s,xa,Ca),f(u,xa,Ca),n=n%Ar,n<0&&(n=n+Ar),a=a%Ar,a<0&&(a=a+Ar),n>a&&!o?a+=Ar:n<a&&o&&(n+=Ar),o){var c=a;a=n,n=c}for(var v=0;v<a;v+=Math.PI/2)v>n&&(Da[0]=Zs(v)*e+r,Da[1]=$s(v)*i+t,l(s,Da,s),f(u,Da,u))}var et={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Pr=[],Rr=[],De=[],rr=[],Ie=[],Le=[],qs=Math.min,Ks=Math.max,Er=Math.cos,Or=Math.sin,Ge=Math.abs,_l=Math.PI,sr=_l*2,Qs=typeof Float32Array<"u",on=[];function js(r){var t=Math.round(r/_l*1e8)/1e8;return t%2*_l}function Y0(r,t){var e=js(r[0]);e<0&&(e+=sr);var i=e-r[0],n=r[1];n+=i,!t&&n-e>=sr?n=e+sr:t&&e-n>=sr?n=e-sr:!t&&e>n?n=e+(sr-js(e-n)):t&&e<n&&(n=e-(sr-js(n-e))),r[0]=e,r[1]=n}var Zi=(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=Ge(i/bo/t)||0,this._uy=Ge(i/bo/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(et.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=Ge(t-this._xi),n=Ge(e-this._yi),a=i>this._ux||n>this._uy;if(this.addData(et.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(et.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(et.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(),on[0]=n,on[1]=a,Y0(on,o),n=on[0],a=on[1];var s=a-n;return this.addData(et.A,t,e,i,i,n,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,i,n,a,o),this._xi=Er(a)*i+t,this._yi=Or(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(et.R,t,e,i,n),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(et.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)&&Qs&&(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(Qs&&(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 u=t[a].data,s=0;s<u.length;s++)this.data[n++]=u[s];this._len=n}},r.prototype.addData=function(t,e,i,n,a,o,s,u,l){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,Qs&&this._len>11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){De[0]=De[1]=Ie[0]=Ie[1]=Number.MAX_VALUE,rr[0]=rr[1]=Le[0]=Le[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++],u=o===1;switch(u&&(e=t[o],i=t[o+1],n=e,a=i),s){case et.M:e=n=t[o++],i=a=t[o++],Ie[0]=n,Ie[1]=a,Le[0]=n,Le[1]=a;break;case et.L:oc(e,i,t[o],t[o+1],Ie,Le),e=t[o++],i=t[o++];break;case et.C:G0(e,i,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],Ie,Le),e=t[o++],i=t[o++];break;case et.Q:U0(e,i,t[o++],t[o++],t[o],t[o+1],Ie,Le),e=t[o++],i=t[o++];break;case et.A:var l=t[o++],f=t[o++],h=t[o++],c=t[o++],v=t[o++],d=t[o++]+v;o+=1;var m=!t[o++];u&&(n=Er(v)*h+l,a=Or(v)*c+f),W0(l,f,h,c,v,d,m,Ie,Le),e=Er(d)*h+l,i=Or(d)*c+f;break;case et.R:n=e=t[o++],a=i=t[o++];var g=t[o++],p=t[o++];oc(n,a,n+g,a+p,Ie,Le);break;case et.Z:e=n,i=a;break}Bi(De,De,Ie),Ni(rr,rr,Le)}return o===0&&(De[0]=De[1]=rr[0]=rr[1]=0),new X(De[0],De[1],rr[0]-De[0],rr[1]-De[1])},r.prototype._calculateLength=function(){var t=this.data,e=this._len,i=this._ux,n=this._uy,a=0,o=0,s=0,u=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=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,u=o);var m=-1;switch(v){case et.M:a=s=t[c++],o=u=t[c++];break;case et.L:{var g=t[c++],p=t[c++],y=g-a,_=p-o;(Ge(y)>i||Ge(_)>n||c===e-1)&&(m=Math.sqrt(y*y+_*_),a=g,o=p);break}case et.C:{var S=t[c++],b=t[c++],g=t[c++],p=t[c++],w=t[c++],T=t[c++];m=c_(a,o,S,b,g,p,w,T,10),a=w,o=T;break}case et.Q:{var S=t[c++],b=t[c++],g=t[c++],p=t[c++];m=p_(a,o,S,b,g,p,10),a=g,o=p;break}case et.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=Er(A)*D+C,u=Or(A)*L+x),m=Ks(D,L)*qs(sr,Math.abs(M)),a=Er(P)*D+C,o=Or(P)*L+x;break;case et.R:{s=a=t[c++],u=o=t[c++];var E=t[c++],k=t[c++];m=E*2+k*2;break}case et.Z:{var y=s-a,_=u-o;m=Math.sqrt(y*y+_*_),a=s,o=u;break}}m>=0&&(l[h++]=m,f+=m)}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,u,l,f,h,c,v=e<1,d,m,g=0,p=0,y,_=0,S,b;if(!(v&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,m=this._pathLen,y=e*m,!y)))t:for(var w=0;w<o;){var T=i[w++],C=w===1;switch(C&&(l=i[w],f=i[w+1],s=l,u=f),T!==et.L&&_>0&&(t.lineTo(S,b),_=0),T){case et.M:s=l=i[w++],u=f=i[w++],t.moveTo(l,f);break;case et.L:{h=i[w++],c=i[w++];var x=Ge(h-l),D=Ge(c-f);if(x>n||D>a){if(v){var L=d[p++];if(g+L>y){var A=(y-g)/L;t.lineTo(l*(1-A)+h*A,f*(1-A)+c*A);break t}g+=L}t.lineTo(h,c),l=h,f=c,_=0}else{var M=x*x+D*D;M>_&&(S=h,b=c,_=M)}break}case et.C:{var P=i[w++],E=i[w++],k=i[w++],Z=i[w++],J=i[w++],tt=i[w++];if(v){var L=d[p++];if(g+L>y){var A=(y-g)/L;So(l,P,k,J,A,Pr),So(f,E,Z,tt,A,Rr),t.bezierCurveTo(Pr[1],Rr[1],Pr[2],Rr[2],Pr[3],Rr[3]);break t}g+=L}t.bezierCurveTo(P,E,k,Z,J,tt),l=J,f=tt;break}case et.Q:{var P=i[w++],E=i[w++],k=i[w++],Z=i[w++];if(v){var L=d[p++];if(g+L>y){var A=(y-g)/L;Xn(l,P,k,A,Pr),Xn(f,E,Z,A,Rr),t.quadraticCurveTo(Pr[1],Rr[1],Pr[2],Rr[2]);break t}g+=L}t.quadraticCurveTo(P,E,k,Z),l=k,f=Z;break}case et.A:var K=i[w++],yt=i[w++],rt=i[w++],Tt=i[w++],It=i[w++],Te=i[w++],xe=i[w++],Ce=!i[w++],Ve=rt>Tt?rt:Tt,Qt=Ge(rt-Tt)>.001,Lt=It+Te,W=!1;if(v){var L=d[p++];g+L>y&&(Lt=It+Te*(y-g)/L,W=!0),g+=L}if(Qt&&t.ellipse?t.ellipse(K,yt,rt,Tt,xe,It,Lt,Ce):t.arc(K,yt,Ve,It,Lt,Ce),W)break t;C&&(s=Er(It)*rt+K,u=Or(It)*Tt+yt),l=Er(Lt)*rt+K,f=Or(Lt)*Tt+yt;break;case et.R:s=l=i[w],u=f=i[w+1],h=i[w++],c=i[w++];var Q=i[w++],br=i[w++];if(v){var L=d[p++];if(g+L>y){var Ot=y-g;t.moveTo(h,c),t.lineTo(h+qs(Ot,Q),c),Ot-=Q,Ot>0&&t.lineTo(h+Q,c+qs(Ot,br)),Ot-=br,Ot>0&&t.lineTo(h+Ks(Q-Ot,0),c+br),Ot-=Q,Ot>0&&t.lineTo(h,c+Ks(br-Ot,0));break t}g+=L}t.rect(h,c,Q,br);break;case et.Z:if(v){var L=d[p++];if(g+L>y){var A=(y-g)/L;t.lineTo(l*(1-A)+s*A,f*(1-A)+u*A);break t}g+=L}t.closePath(),l=s,f=u}}},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=et,r.initDefaultProps=(function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),r})();function mi(r,t,e,i,n,a,o){if(n===0)return!1;var s=n,u=0,l=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)u=(t-i)/(r-e),l=(r*i-e*t)/(r-e);else return Math.abs(a-r)<=s/2;var f=u*a-o+l,h=f*f/(u*u+1);return h<=s/2*s/2}function X0(r,t,e,i,n,a,o,s,u,l,f){if(u===0)return!1;var h=u;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||l>r+h&&l>e+h&&l>n+h&&l>o+h||l<r-h&&l<e-h&&l<n-h&&l<o-h)return!1;var c=h_(r,t,e,i,n,a,o,s,l,f);return c<=h/2}function $0(r,t,e,i,n,a,o,s,u){if(o===0)return!1;var l=o;if(u>t+l&&u>i+l&&u>a+l||u<t-l&&u<i-l&&u<a-l||s>r+l&&s>e+l&&s>n+l||s<r-l&&s<e-l&&s<n-l)return!1;var f=d_(r,t,e,i,n,a,s,u);return f<=l/2}var lc=Math.PI*2;function Ia(r){return r%=lc,r<0&&(r+=lc),r}var sn=Math.PI*2;function Z0(r,t,e,i,n,a,o,s,u){if(o===0)return!1;var l=o;s-=r,u-=t;var f=Math.sqrt(s*s+u*u);if(f-l>e||f+l<e)return!1;if(Math.abs(i-n)%sn<1e-4)return!0;if(a){var h=i;i=Ia(n),n=Ia(h)}else i=Ia(i),n=Ia(n);i>n&&(n+=sn);var c=Math.atan2(u,s);return c<0&&(c+=sn),c>=i&&c<=n||c+sn>=i&&c+sn<=n}function kr(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 u=o*(e-r)+r;return u===n?1/0:u>n?s:0}var ir=Zi.CMD,Br=Math.PI*2,q0=1e-4;function K0(r,t){return Math.abs(r-t)<q0}var Bt=[-1,-1,-1],le=[-1,-1];function Q0(){var r=le[0];le[0]=le[1],le[1]=r}function j0(r,t,e,i,n,a,o,s,u,l){if(l>t&&l>i&&l>a&&l>s||l<t&&l<i&&l<a&&l<s)return 0;var f=ap(t,i,a,s,l,Bt);if(f===0)return 0;for(var h=0,c=-1,v=void 0,d=void 0,m=0;m<f;m++){var g=Bt[m],p=g===0||g===1?.5:1,y=Nt(r,e,n,o,g);y<u||(c<0&&(c=op(t,i,a,s,le),le[1]<le[0]&&c>1&&Q0(),v=Nt(t,i,a,s,le[0]),c>1&&(d=Nt(t,i,a,s,le[1]))),c===2?g<le[0]?h+=v<t?p:-p:g<le[1]?h+=d<v?p:-p:h+=s<d?p:-p:g<le[0]?h+=v<t?p:-p:h+=s<v?p:-p)}return h}function J0(r,t,e,i,n,a,o,s){if(s>t&&s>i&&s>a||s<t&&s<i&&s<a)return 0;var u=v_(t,i,a,s,Bt);if(u===0)return 0;var l=sp(t,i,a);if(l>=0&&l<=1){for(var f=0,h=zt(t,i,a,l),c=0;c<u;c++){var v=Bt[c]===0||Bt[c]===1?.5:1,d=zt(r,e,n,Bt[c]);d<o||(Bt[c]<l?f+=h<t?v:-v:f+=a<h?v:-v)}return f}else{var v=Bt[0]===0||Bt[0]===1?.5:1,d=zt(r,e,n,Bt[0]);return d<o?0:a<t?v:-v}}function tS(r,t,e,i,n,a,o,s){if(s-=t,s>e||s<-e)return 0;var u=Math.sqrt(e*e-s*s);Bt[0]=-u,Bt[1]=u;var l=Math.abs(i-n);if(l<1e-4)return 0;if(l>=Br-1e-4){i=0,n=Br;var f=a?1:-1;return o>=Bt[0]+r&&o<=Bt[1]+r?f:0}if(i>n){var h=i;i=n,n=h}i<0&&(i+=Br,n+=Br);for(var c=0,v=0;v<2;v++){var d=Bt[v];if(d+r>o){var m=Math.atan2(s,d),f=a?1:-1;m<0&&(m=Br+m),(m>=i&&m<=n||m+Br>=i&&m+Br<=n)&&(m>Math.PI/2&&m<Math.PI*1.5&&(f=-f),c+=f)}}return c}function Op(r,t,e,i,n){for(var a=r.data,o=r.len(),s=0,u=0,l=0,f=0,h=0,c,v,d=0;d<o;){var m=a[d++],g=d===1;switch(m===ir.M&&d>1&&(e||(s+=kr(u,l,f,h,i,n))),g&&(u=a[d],l=a[d+1],f=u,h=l),m){case ir.M:f=a[d++],h=a[d++],u=f,l=h;break;case ir.L:if(e){if(mi(u,l,a[d],a[d+1],t,i,n))return!0}else s+=kr(u,l,a[d],a[d+1],i,n)||0;u=a[d++],l=a[d++];break;case ir.C:if(e){if(X0(u,l,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],t,i,n))return!0}else s+=j0(u,l,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],i,n)||0;u=a[d++],l=a[d++];break;case ir.Q:if(e){if($0(u,l,a[d++],a[d++],a[d],a[d+1],t,i,n))return!0}else s+=J0(u,l,a[d++],a[d++],a[d],a[d+1],i,n)||0;u=a[d++],l=a[d++];break;case ir.A:var p=a[d++],y=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+y,g?(f=c,h=v):s+=kr(u,l,c,v,i,n);var C=(i-p)*S/_+p;if(e){if(Z0(p,y,S,b,b+w,T,t,C,n))return!0}else s+=tS(p,y,S,b,b+w,T,C,n);u=Math.cos(b+w)*_+p,l=Math.sin(b+w)*S+y;break;case ir.R:f=u=a[d++],h=l=a[d++];var x=a[d++],D=a[d++];if(c=f+x,v=h+D,e){if(mi(f,h,c,h,t,i,n)||mi(c,h,c,v,t,i,n)||mi(c,v,f,v,t,i,n)||mi(f,v,f,h,t,i,n))return!0}else s+=kr(c,h,c,v,i,n),s+=kr(f,v,f,h,i,n);break;case ir.Z:if(e){if(mi(u,l,f,h,t,i,n))return!0}else s+=kr(u,l,f,h,i,n);u=f,l=h;break}}return!e&&!K0(l,h)&&(s+=kr(u,l,f,h,i,n)||0),s!==0}function eS(r,t,e){return Op(r,0,!1,t,e)}function rS(r,t,e,i){return Op(r,t,!0,e,i)}var kp=pt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},ai),iS={style:pt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},rs.style)},Js=$n.concat(["invisible","culling","z","z2","zlevel","parent"]),ht=(function(r){N(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(u){e.buildPath(u,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<Js.length;++s)n[Js[s]]=this[Js[s]];n.__dirty|=ee}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(e){var i=mt(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?R(this.style,s):this.useStyle(s):o==="shape"?R(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(z(e)){var i=wo(e,0);return i>.5?cl:i>.2?k_:vl}else if(e)return vl}return cl},t.prototype.getInsideTextStroke=function(e){var i=this.style.fill;if(z(i)){var n=this.__zr,a=!!(n&&n.isDarkMode()),o=wo(e,0)<hl;if(a===o)return i}},t.prototype.buildPath=function(e,i,n){},t.prototype.pathUpdated=function(){this.__dirty&=~ki},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 Zi(!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&ki)&&(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 u=i.strokeNoScale?this.getLineScale():1,l=i.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;l=Math.max(l,f??4)}u>1e-10&&(s.width+=l/u,s.height+=l/u,s.x-=l/u/2,s.y-=l/u/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 u=o.lineWidth,l=o.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(this.hasFill()||(u=Math.max(u,this.strokeContainThreshold)),rS(s,u/l,e,i)))return!0}if(this.hasFill())return eS(s,e,i)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=ki,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:R(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&ki)},t.prototype.createStyle=function(e){return qo(kp,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var i=this._normalState;e.shape&&!i.shape&&(i.shape=R({},this.shape))},t.prototype._applyStateObj=function(e,i,n,a,o,s){r.prototype._applyStateObj.call(this,e,i,n,a,o,s);var u=!(i&&a),l;if(i&&i.shape?o?a?l=i.shape:(l=R({},n.shape),R(l,i.shape)):(l=R({},a?this.shape:n.shape),R(l,i.shape)):u&&(l=n.shape),l)if(o){this.shape=R({},this.shape);for(var f={},h=mt(l),c=0;c<h.length;c++){var v=h[c];typeof l[v]=="object"?this.shape[v]=l[v]:f[v]=l[v]}this._transitionState(e,{shape:f},s)}else this.shape=l,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 iS},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var i=(function(a){N(o,a);function o(s){var u=a.call(this,s)||this;return e.init&&e.init.call(u,s),u}return o.prototype.getDefaultStyle=function(){return $(e.style)},o.prototype.getDefaultShape=function(){return $(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=ee|Dn|ki})(),t})(va),nS=pt({strokeFirst:!0,font:pr,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},kp),Do=(function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.hasStroke=function(){return Ep(this.style)},t.prototype.hasFill=function(){var e=this.style,i=e.fill;return i!=null&&i!=="none"},t.prototype.createStyle=function(e){return qo(nS,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){return this._rect||(this._rect=z0(this.style)),this._rect},t.initDefaultProps=(function(){var e=t.prototype;e.dirtyRectTolerance=10})(),t})(va);Do.prototype.type="tspan";var aS=pt({x:0,y:0},ai),oS={style:pt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},rs.style)};function sS(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var Sr=(function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return qo(aS,e)},t.prototype._getSize=function(e){var i=this.style,n=i[e];if(n!=null)return n;var a=sS(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 oS},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new X(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t})(va);Sr.prototype.type="image";function uS(r,t){var e=t.x,i=t.y,n=t.width,a=t.height,o=t.r,s,u,l,f;n<0&&(e=e+n,n=-n),a<0&&(i=i+a,a=-a),typeof o=="number"?s=u=l=f=o:o instanceof Array?o.length===1?s=u=l=f=o[0]:o.length===2?(s=l=o[0],u=f=o[1]):o.length===3?(s=o[0],u=f=o[1],l=o[2]):(s=o[0],u=o[1],l=o[2],f=o[3]):s=u=l=f=0;var h;s+u>n&&(h=s+u,s*=n/h,u*=n/h),l+f>n&&(h=l+f,l*=n/h,f*=n/h),u+l>a&&(h=u+l,u*=a/h,l*=a/h),s+f>a&&(h=s+f,s*=a/h,f*=a/h),r.moveTo(e+s,i),r.lineTo(e+n-u,i),u!==0&&r.arc(e+n-u,i+u,u,-Math.PI/2,0),r.lineTo(e+n,i+a-l),l!==0&&r.arc(e+n-l,i+a-l,l,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 Hi=Math.round;function Bp(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&&(Hi(i*2)===Hi(n*2)&&(r.x1=r.x2=jr(i,s,!0)),Hi(a*2)===Hi(o*2)&&(r.y1=r.y2=jr(a,s,!0))),r}}function Np(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=jr(i,s,!0),r.y=jr(n,s,!0),r.width=Math.max(jr(i+a,s,!1)-r.x,a===0?0:1),r.height=Math.max(jr(n+o,s,!1)-r.y,o===0?0:1)),r}}function jr(r,t,e){if(!t)return r;var i=Hi(r*2);return(i+Hi(t))%2===0?i/2:(i+(e?1:-1))/2}var lS=(function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r})(),fS={},At=(function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new lS},t.prototype.buildPath=function(e,i){var n,a,o,s;if(this.subPixelOptimize){var u=Np(fS,i,this.style);n=u.x,a=u.y,o=u.width,s=u.height,u.r=i.r,i=u}else n=i.x,a=i.y,o=i.width,s=i.height;i.r?uS(e,i):e.rect(n,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t})(ht);At.prototype.type="rect";var fc={fill:"#000"},hc=2,Me={},hS={style:pt({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},rs.style)},Vt=(function(r){N(t,r);function t(e){var i=r.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=fc,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,gS(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 X(0,0,0,0),i=this._children,n=[],a=null,o=0;o<i.length;o++){var s=i[o],u=s.getBoundingRect(),l=s.getLocalTransform(n);l?(e.copy(u),e.applyTransform(l),a=a||e.clone(),a.union(e)):(a=a||u.clone(),a.union(u))}this._rect=a||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||fc},t.prototype.setTextContent=function(e){throw new Error("Can't attach text on another text")},t.prototype._mergeStyle=function(e,i){if(!i)return e;var n=i.rich,a=e.rich||n&&{};return R(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=mt(i),a=0;a<n.length;a++){var o=n[a];e[o]=e[o]||{},R(e[o],i[o])}},t.prototype.getAnimationStyleProps=function(){return hS},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||pr,n=e.padding,a=this._defaultStyle,o=e.x||0,s=e.y||0,u=e.align||a.align||"left",l=e.verticalAlign||a.verticalAlign||"top";rc(Me,a.overflowRect,o,s,u,l),o=Me.baseX,s=Me.baseY;var f=yc(e),h=P0(f,e,Me.outerWidth,Me.outerHeight),c=tu(e),v=!!e.backgroundColor,d=h.outerHeight,m=h.outerWidth,g=h.lines,p=h.lineHeight;this.isTruncated=!!h.isTruncated;var y=o,_=ni(s,h.contentHeight,l);if(c||n){var S=Xi(o,m,u),b=ni(s,d,l);c&&this._renderBackground(e,e,S,b,m,d)}_+=p/2,n&&(y=mc(o,u,n),l==="top"?_+=n[0]:l==="bottom"&&(_-=n[2]));for(var w=0,T=!1,C=!1,x=gc("fill"in e?e.fill:(C=!0,a.fill)),D=pc("stroke"in e?e.stroke:!v&&(!a.autoStroke||C)?(w=hc,T=!0,a.stroke):null),L=e.textShadowBlur>0,A=0;A<g.length;A++){var M=this._getOrCreateChild(Do),P=M.createStyle();M.useStyle(P),P.text=g[A],P.x=y,P.y=_,P.textAlign=u,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,vc(P,e),_+=p,M.setBoundingRect(ml(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;rc(Me,i.overflowRect,o,s,n,a),o=Me.baseX,s=Me.baseY;var u=yc(e),l=O0(u,e,Me.outerWidth,Me.outerHeight,n),f=l.width,h=l.outerWidth,c=l.outerHeight,v=e.padding;this.isTruncated=!!l.isTruncated;var d=Xi(o,h,n),m=ni(s,c,a),g=d,p=m;v&&(g+=v[3],p+=v[0]);var y=g+f;tu(e)&&this._renderBackground(e,e,d,m,h,c);for(var _=!!e.backgroundColor,S=0;S<l.lines.length;S++){for(var b=l.lines[S],w=b.tokens,T=w.length,C=b.lineHeight,x=b.width,D=0,L=g,A=y,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)-(y-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,u){var l=i.rich[e.styleName]||{};l.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&&tu(l);c&&this._renderBackground(l,i,s==="right"?o-e.width:s==="center"?o-e.width/2:o,h-e.height/2,e.width,e.height);var v=!!l.backgroundColor,d=e.textPadding;d&&(o=mc(o,s,d),h-=e.height/2-d[0]-e.innerHeight/2);var m=this._getOrCreateChild(Do),g=m.createStyle();m.useStyle(g);var p=this._defaultStyle,y=!1,_=0,S=!1,b=gc("fill"in l?l.fill:"fill"in i?i.fill:(y=!0,p.fill)),w=pc("stroke"in l?l.stroke:"stroke"in i?i.stroke:!v&&!u&&(!p.autoStroke||y)?(_=hc,S=!0,p.stroke):null),T=l.textShadowBlur>0||i.textShadowBlur>0;g.text=e.text,g.x=o,g.y=h,T&&(g.shadowBlur=l.textShadowBlur||i.textShadowBlur||0,g.shadowColor=l.textShadowColor||i.textShadowColor||"transparent",g.shadowOffsetX=l.textShadowOffsetX||i.textShadowOffsetX||0,g.shadowOffsetY=l.textShadowOffsetY||i.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=e.font||pr,g.opacity=Ke(l.opacity,i.opacity,1),vc(g,l),w&&(g.lineWidth=Ke(l.lineWidth,i.lineWidth,_),g.lineDash=F(l.lineDash,i.lineDash),g.lineDashOffset=i.lineDashOffset||0,g.stroke=w),b&&(g.fill=b),m.setBoundingRect(ml(g,e.contentWidth,e.contentHeight,S?0:null))},t.prototype._renderBackground=function(e,i,n,a,o,s){var u=e.backgroundColor,l=e.borderWidth,f=e.borderColor,h=u&&u.image,c=u&&!h,v=e.borderRadius,d=this,m,g;if(c||e.lineHeight||l&&f){m=this._getOrCreateChild(At),m.useStyle(m.createStyle()),m.style.fill=null;var p=m.shape;p.x=n,p.y=a,p.width=o,p.height=s,p.r=v,m.dirtyShape()}if(c){var y=m.style;y.fill=u||null,y.fillOpacity=F(e.fillOpacity,1)}else if(h){g=this._getOrCreateChild(Sr),g.onload=function(){d.dirtyStyle()};var _=g.style;_.image=u.image,_.x=n,_.y=a,_.width=o,_.height=s}if(l&&f){var y=m.style;y.lineWidth=l,y.stroke=f,y.strokeOpacity=F(e.strokeOpacity,1),y.lineDash=e.borderDash,y.lineDashOffset=e.borderDashOffset||0,m.strokeContainThreshold=0,m.hasFill()&&m.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var S=(m||g).style;S.shadowBlur=e.shadowBlur||0,S.shadowColor=e.shadowColor||"transparent",S.shadowOffsetX=e.shadowOffsetX||0,S.shadowOffsetY=e.shadowOffsetY||0,S.opacity=Ke(e.opacity,i.opacity,1)},t.makeFont=function(e){var i="";return pS(e)&&(i=[e.fontStyle,e.fontWeight,dS(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),i&&Re(i)||e.textFont||e.font},t})(va),cS={left:!0,right:1,center:1},vS={top:1,bottom:1,middle:1},cc=["fontStyle","fontWeight","fontSize","fontFamily"];function dS(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?rf+"px":r+"px"}function vc(r,t){for(var e=0;e<cc.length;e++){var i=cc[e],n=t[i];n!=null&&(r[i]=n)}}function pS(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function gS(r){return dc(r),I(r.rich,dc),r}function dc(r){if(r){r.font=Vt.makeFont(r);var t=r.align;t==="middle"&&(t="center"),r.align=t==null||cS[t]?t:"left";var e=r.verticalAlign;e==="center"&&(e="middle"),r.verticalAlign=e==null||vS[e]?e:"top";var i=r.padding;i&&(r.padding=sf(r.padding))}}function pc(r,t){return r==null||t<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function gc(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function mc(r,t,e){return t==="right"?r-e[1]:t==="center"?r+e[3]/2-e[1]/2:r+e[3]}function yc(r){var t=r.text;return t!=null&&(t+=""),t}function tu(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}var nt=ct(),mS=function(r,t,e,i){if(i){var n=nt(i);n.dataIndex=e,n.dataType=t,n.seriesIndex=r,n.ssrType="chart",i.type==="group"&&i.traverse(function(a){var o=nt(a);o.seriesIndex=r,o.dataIndex=e,o.dataType=t,o.ssrType="chart"})}},_c=1,Sc={},zp=ct(),yf=ct(),Fp=0,_f=1,Sf=2,ze=["emphasis","blur","select"],wc=["normal","emphasis","blur","select"],yS=10,_S=9,oi="highlight",ao="downplay",Io="select",Sl="unselect",Lo="toggleSelect",wf="selectchanged";function yi(r){return r!=null&&r!=="none"}function is(r,t,e){r.onHoverStateChange&&(r.hoverState||0)!==e&&r.onHoverStateChange(t),r.hoverState=e}function Hp(r){is(r,"emphasis",Sf)}function Vp(r){r.hoverState===Sf&&is(r,"normal",Fp)}function bf(r){is(r,"blur",_f)}function Gp(r){r.hoverState===_f&&is(r,"normal",Fp)}function SS(r){r.selected=!0}function wS(r){r.selected=!1}function bc(r,t,e){t(r,e)}function er(r,t,e){bc(r,t,e),r.isGroup&&r.traverse(function(i){bc(i,t,e)})}function bS(r,t,e,i){for(var n=r.style,a={},o=0;o<t.length;o++){var s=t[o],u=n[s];a[s]=u??(i&&i[s])}for(var o=0;o<r.animators.length;o++){var l=r.animators[o];l.__fromStateTransition&&l.__fromStateTransition.indexOf(e)<0&&l.targetName==="style"&&l.saveTo(a,t)}return a}function TS(r,t,e,i){var n=e&&ut(e,"select")>=0,a=!1;if(r instanceof ht){var o=zp(r),s=n&&o.selectFill||o.normalFill,u=n&&o.selectStroke||o.normalStroke;if(yi(s)||yi(u)){i=i||{};var l=i.style||{};l.fill==="inherit"?(a=!0,i=R({},i),l=R({},l),l.fill=s):!yi(l.fill)&&yi(s)?(a=!0,i=R({},i),l=R({},l),l.fill=Oh(s)):!yi(l.stroke)&&yi(u)&&(a||(i=R({},i),l=R({},l)),l.stroke=Oh(u)),i.style=l}}if(i&&i.z2==null){a||(i=R({},i));var f=r.z2EmphasisLift;i.z2=r.z2+(f??yS)}return i}function xS(r,t,e){if(e&&e.z2==null){e=R({},e);var i=r.z2SelectLift;e.z2=r.z2+(i??_S)}return e}function CS(r,t,e){var i=ut(r.currentStates,t)>=0,n=r.style.opacity,a=i?null:bS(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=R({},e),o=R({opacity:i?n:a.opacity*.1},o),e.style=o),e}function eu(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return TS(this,r,t,e);if(r==="blur")return CS(this,r,e);if(r==="select")return xS(this,r,e)}return e}function DS(r){r.stateProxy=eu;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=eu),e&&(e.stateProxy=eu)}function Tc(r,t){!Xp(r,t)&&!r.__highByOuter&&er(r,Hp)}function xc(r,t){!Xp(r,t)&&!r.__highByOuter&&er(r,Vp)}function Qn(r,t){r.__highByOuter|=1<<(t||0),er(r,Hp)}function jn(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&er(r,Vp)}function IS(r){er(r,bf)}function Up(r){er(r,Gp)}function Wp(r){er(r,SS)}function Yp(r){er(r,wS)}function Xp(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function $p(r){var t=r.getModel(),e=[],i=[];t.eachComponent(function(n,a){var o=yf(a),s=n==="series",u=s?r.getViewOfSeriesModel(a):r.getViewOfComponentModel(a);!s&&i.push(u),o.isBlured&&(u.group.traverse(function(l){Gp(l)}),s&&e.push(a)),o.isBlured=!1}),I(i,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(e,!1,t)})}function wl(r,t,e,i){var n=i.getModel();e=e||"coordinateSystem";function a(l,f){for(var h=0;h<f.length;h++){var c=l.getItemGraphicEl(f[h]);c&&Up(c)}}if(r!=null&&!(!t||t==="none")){var o=n.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var u=[];n.eachSeries(function(l){var f=o===l,h=l.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(l);if(v.group.traverse(function(g){g.__highByOuter&&f&&t==="self"||bf(g)}),Kt(t))a(l.getData(),t);else if(H(t))for(var d=mt(t),m=0;m<d.length;m++)a(l.getData(d[m]),t[d[m]]);u.push(l),yf(l).isBlured=!0}}),n.eachComponent(function(l,f){if(l!=="series"){var h=i.getViewOfComponentModel(f);h&&h.toggleBlurSeries&&h.toggleBlurSeries(u,!0,n)}})}}function bl(r,t,e){if(!(r==null||t==null)){var i=e.getModel().getComponent(r,t);if(i){yf(i).isBlured=!0;var n=e.getViewOfComponentModel(i);!n||!n.focusBlurEnabled||n.group.traverse(function(a){bf(a)})}}}function LS(r,t,e){var i=r.seriesIndex,n=r.getData(t.dataType);if(!n){ft("Unknown dataType "+t.dataType);return}var a=ha(n,t);a=(B(a)?a[0]:a)||0;var o=n.getItemGraphicEl(a);if(!o)for(var s=n.count(),u=0;!o&&u<s;)o=n.getItemGraphicEl(u++);if(o){var l=nt(o);wl(i,l.focus,l.blurScope,e)}else{var f=r.get(["emphasis","focus"]),h=r.get(["emphasis","blurScope"]);f!=null&&wl(i,f,h,e)}}function Tf(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),u,l=0;l<s.length;l++)if(qi(s[l])||ft("param should be highDownDispatcher"),nt(s[l]).focus==="self"){u=!0;break}return{focusSelf:u,dispatchers:s}}function MS(r,t,e){qi(r)||ft("param should be highDownDispatcher");var i=nt(r),n=Tf(i.componentMainType,i.componentIndex,i.componentHighDownName,e),a=n.dispatchers,o=n.focusSelf;a?(o&&bl(i.componentMainType,i.componentIndex,e),I(a,function(s){return Tc(s,t)})):(wl(i.seriesIndex,i.focus,i.blurScope,e),i.focus==="self"&&bl(i.componentMainType,i.componentIndex,e),Tc(r,t))}function AS(r,t,e){qi(r)||ft("param should be highDownDispatcher"),$p(e);var i=nt(r),n=Tf(i.componentMainType,i.componentIndex,i.componentHighDownName,e).dispatchers;n?I(n,function(a){return xc(a,t)}):xc(r,t)}function PS(r,t,e){if(xl(t)){var i=t.dataType,n=r.getData(i),a=ha(n,t);B(a)||(a=[a]),r[t.type===Lo?"toggleSelect":t.type===Io?"select":"unselect"](a,i)}}function Cc(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)?Wp(a):Yp(a)})})}function RS(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 Tl(r,t,e){qp(r,!0),er(r,DS),OS(r,t,e)}function ES(r){qp(r,!1)}function Zp(r,t,e,i){i?ES(r):Tl(r,t,e)}function OS(r,t,e){var i=nt(r);t!=null?(i.focus=t,i.blurScope=e):i.focus&&(i.focus=null)}function qp(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 qi(r){return!!(r&&r.__highDownDispatcher)}function kS(r){var t=Sc[r];return t==null&&_c<=32&&(t=Sc[r]=_c++),t}function xl(r){var t=r.type;return t===Io||t===Sl||t===Lo}function Dc(r){var t=r.type;return t===oi||t===ao}function BS(r){var t=zp(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 _i=Zi.CMD,NS=[[],[],[]],Ic=Math.sqrt,zS=Math.atan2;function FS(r,t){if(t){var e=r.data,i=r.len(),n,a,o,s,u,l,f=_i.M,h=_i.C,c=_i.L,v=_i.R,d=_i.A,m=_i.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 m:a=2;break;case d:var g=t[4],p=t[5],y=Ic(t[0]*t[0]+t[1]*t[1]),_=Ic(t[2]*t[2]+t[3]*t[3]),S=zS(-t[1]/_,t[0]/y);e[o]*=y,e[o++]+=g,e[o]*=_,e[o++]+=p,e[o++]*=y,e[o++]*=_,e[o++]+=S,e[o++]+=S,o+=2,s=o;break;case v:l[0]=e[o++],l[1]=e[o++],re(l,l,t),e[s++]=l[0],e[s++]=l[1],l[0]+=e[o++],l[1]+=e[o++],re(l,l,t),e[s++]=l[0],e[s++]=l[1]}for(u=0;u<a;u++){var b=NS[u];b[0]=e[o++],b[1]=e[o++],re(b,b,t),e[s++]=b[0],e[s++]=b[1]}}r.increaseVersion()}}var ru=Math.sqrt,La=Math.sin,Ma=Math.cos,un=Math.PI;function Lc(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function Cl(r,t){return(r[0]*t[0]+r[1]*t[1])/(Lc(r)*Lc(t))}function Mc(r,t){return(r[0]*t[1]<r[1]*t[0]?-1:1)*Math.acos(Cl(r,t))}function Ac(r,t,e,i,n,a,o,s,u,l,f){var h=u*(un/180),c=Ma(h)*(r-e)/2+La(h)*(t-i)/2,v=-1*La(h)*(r-e)/2+Ma(h)*(t-i)/2,d=c*c/(o*o)+v*v/(s*s);d>1&&(o*=ru(d),s*=ru(d));var m=(n===a?-1:1)*ru((o*o*(s*s)-o*o*(v*v)-s*s*(c*c))/(o*o*(v*v)+s*s*(c*c)))||0,g=m*o*v/s,p=m*-s*c/o,y=(r+e)/2+Ma(h)*g-La(h)*p,_=(t+i)/2+La(h)*g+Ma(h)*p,S=Mc([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=Mc(b,w);if(Cl(b,w)<=-1&&(T=un),Cl(b,w)>=1&&(T=0),T<0){var C=Math.round(T/un*1e6)/1e6;T=un*2+C%2*un}f.addData(l,y,_,o,s,S,T,h,a)}var HS=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,VS=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function GS(r){var t=new Zi;if(!r)return t;var e=0,i=0,n=e,a=i,o,s=Zi.CMD,u=r.match(HS);if(!u)return t;for(var l=0;l<u.length;l++){for(var f=u[l],h=f.charAt(0),c=void 0,v=f.match(VS)||[],d=v.length,m=0;m<d;m++)v[m]=parseFloat(v[m]);for(var g=0;g<d;){var p=void 0,y=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,y=i,D=t.len(),L=t.data,o===s.C&&(p+=e-L[D-4],y+=i-L[D-3]),c=s.C,C=v[g++],x=v[g++],e=v[g++],i=v[g++],t.addData(c,p,y,C,x,e,i);break;case"s":p=e,y=i,D=t.len(),L=t.data,o===s.C&&(p+=e-L[D-4],y+=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,y,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,y=i,D=t.len(),L=t.data,o===s.Q&&(p+=e-L[D-4],y+=i-L[D-3]),e=v[g++],i=v[g++],c=s.Q,t.addData(c,p,y,e,i);break;case"t":p=e,y=i,D=t.len(),L=t.data,o===s.Q&&(p+=e-L[D-4],y+=i-L[D-3]),e+=v[g++],i+=v[g++],c=s.Q,t.addData(c,p,y,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,Ac(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,Ac(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 Kp=(function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t})(ht);function Qp(r){return r.setData!=null}function jp(r,t){var e=GS(r),i=R({},t);return i.buildPath=function(n){var a=Qp(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){FS(e,n),this.dirtyShape()},i}function US(r,t){return new Kp(jp(r,t))}function WS(r,t){var e=jp(r,t),i=(function(n){N(a,n);function a(o){var s=n.call(this,o)||this;return s.applyTransform=e.applyTransform,s.buildPath=e.buildPath,s}return a})(Kp);return i}function YS(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 ht(t);return o.createPathProxy(),o.buildPath=function(s){if(Qp(s)){s.appendPath(e);var u=s.getContext();u&&s.rebuildPath(u,1)}},o}var XS=(function(){function r(){this.cx=0,this.cy=0,this.r=0}return r})(),ns=(function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new XS},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})(ht);ns.prototype.type="circle";var $S=(function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r})(),xf=(function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new $S},t.prototype.buildPath=function(e,i){var n=.5522848,a=i.cx,o=i.cy,s=i.rx,u=i.ry,l=s*n,f=u*n;e.moveTo(a-s,o),e.bezierCurveTo(a-s,o-f,a-l,o-u,a,o-u),e.bezierCurveTo(a+l,o-u,a+s,o-f,a+s,o),e.bezierCurveTo(a+s,o+f,a+l,o+u,a,o+u),e.bezierCurveTo(a-l,o+u,a-s,o+f,a-s,o),e.closePath()},t})(ht);xf.prototype.type="ellipse";var Jp=Math.PI,iu=Jp*2,Nr=Math.sin,Si=Math.cos,ZS=Math.acos,Pt=Math.atan2,Pc=Math.abs,Vn=Math.sqrt,Mn=Math.max,Ae=Math.min,ce=1e-4;function qS(r,t,e,i,n,a,o,s){var u=e-r,l=i-t,f=o-n,h=s-a,c=h*u-f*l;if(!(c*c<ce))return c=(f*(t-a)-h*(r-n))/c,[r+c*u,t+c*l]}function Aa(r,t,e,i,n,a,o){var s=r-e,u=t-i,l=(o?a:-a)/Vn(s*s+u*u),f=l*u,h=-l*s,c=r+f,v=t+h,d=e+f,m=i+h,g=(c+d)/2,p=(v+m)/2,y=d-c,_=m-v,S=y*y+_*_,b=n-a,w=c*m-d*v,T=(_<0?-1:1)*Vn(Mn(0,b*b*S-w*w)),C=(w*_-y*T)/S,x=(-w*y-_*T)/S,D=(w*_+y*T)/S,L=(-w*y+_*T)/S,A=C-g,M=x-p,P=D-g,E=L-p;return A*A+M*M>P*P+E*E&&(C=D,x=L),{cx:C,cy:x,x0:-f,y0:-h,x1:C*(n/b-1),y1:x*(n/b-1)}}function KS(r){var t;if(B(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 QS(r,t){var e,i=Mn(t.r,0),n=Mn(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 u=t.startAngle,l=t.endAngle;if(!(isNaN(u)||isNaN(l))){var f=t.cx,h=t.cy,c=!!t.clockwise,v=Pc(l-u),d=v>iu&&v%iu;if(d>ce&&(v=d),!(i>ce))r.moveTo(f,h);else if(v>iu-ce)r.moveTo(f+i*Si(u),h+i*Nr(u)),r.arc(f,h,i,u,l,!c),n>ce&&(r.moveTo(f+n*Si(l),h+n*Nr(l)),r.arc(f,h,n,l,u,c));else{var m=void 0,g=void 0,p=void 0,y=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,E=i*Si(u),k=i*Nr(u),Z=n*Si(l),J=n*Nr(l),tt=v>ce;if(tt){var K=t.cornerRadius;K&&(e=KS(K),m=e[0],g=e[1],p=e[2],y=e[3]);var yt=Pc(i-n)/2;if(_=Ae(yt,p),S=Ae(yt,y),b=Ae(yt,m),w=Ae(yt,g),x=T=Mn(_,S),D=C=Mn(b,w),(T>ce||C>ce)&&(L=i*Si(l),A=i*Nr(l),M=n*Si(u),P=n*Nr(u),v<Jp)){var rt=qS(E,k,M,P,L,A,Z,J);if(rt){var Tt=E-rt[0],It=k-rt[1],Te=L-rt[0],xe=A-rt[1],Ce=1/Nr(ZS((Tt*Te+It*xe)/(Vn(Tt*Tt+It*It)*Vn(Te*Te+xe*xe)))/2),Ve=Vn(rt[0]*rt[0]+rt[1]*rt[1]);x=Ae(T,(i-Ve)/(Ce+1)),D=Ae(C,(n-Ve)/(Ce-1))}}}if(!tt)r.moveTo(f+E,h+k);else if(x>ce){var Qt=Ae(p,x),Lt=Ae(y,x),W=Aa(M,P,E,k,i,Qt,c),Q=Aa(L,A,Z,J,i,Lt,c);r.moveTo(f+W.cx+W.x0,h+W.cy+W.y0),x<T&&Qt===Lt?r.arc(f+W.cx,h+W.cy,x,Pt(W.y0,W.x0),Pt(Q.y0,Q.x0),!c):(Qt>0&&r.arc(f+W.cx,h+W.cy,Qt,Pt(W.y0,W.x0),Pt(W.y1,W.x1),!c),r.arc(f,h,i,Pt(W.cy+W.y1,W.cx+W.x1),Pt(Q.cy+Q.y1,Q.cx+Q.x1),!c),Lt>0&&r.arc(f+Q.cx,h+Q.cy,Lt,Pt(Q.y1,Q.x1),Pt(Q.y0,Q.x0),!c))}else r.moveTo(f+E,h+k),r.arc(f,h,i,u,l,!c);if(!(n>ce)||!tt)r.lineTo(f+Z,h+J);else if(D>ce){var Qt=Ae(m,D),Lt=Ae(g,D),W=Aa(Z,J,L,A,n,-Lt,c),Q=Aa(E,k,M,P,n,-Qt,c);r.lineTo(f+W.cx+W.x0,h+W.cy+W.y0),D<C&&Qt===Lt?r.arc(f+W.cx,h+W.cy,D,Pt(W.y0,W.x0),Pt(Q.y0,Q.x0),!c):(Lt>0&&r.arc(f+W.cx,h+W.cy,Lt,Pt(W.y0,W.x0),Pt(W.y1,W.x1),!c),r.arc(f,h,n,Pt(W.cy+W.y1,W.cx+W.x1),Pt(Q.cy+Q.y1,Q.cx+Q.x1),c),Qt>0&&r.arc(f+Q.cx,h+Q.cy,Qt,Pt(Q.y1,Q.x1),Pt(Q.y0,Q.x0),!c))}else r.lineTo(f+Z,h+J),r.arc(f,h,n,l,u,c)}r.closePath()}}}var jS=(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})(),Cf=(function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new jS},t.prototype.buildPath=function(e,i){QS(e,i)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t})(ht);Cf.prototype.type="sector";var JS=(function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r})(),Df=(function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new JS},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})(ht);Df.prototype.type="ring";function tw(r,t,e,i){var n=[],a=[],o=[],s=[],u,l,f,h;if(i){f=[1/0,1/0],h=[-1/0,-1/0];for(var c=0,v=r.length;c<v;c++)Bi(f,f,r[c]),Ni(h,h,r[c]);Bi(f,f,i[0]),Ni(h,h,i[1])}for(var c=0,v=r.length;c<v;c++){var d=r[c];if(e)u=r[c?c-1:v-1],l=r[(c+1)%v];else if(c===0||c===v-1){n.push(Qe(r[c]));continue}else u=r[c-1],l=r[c+1];qr(a,l,u),Ja(a,a,t);var m=Ku(d,u),g=Ku(d,l),p=m+g;p!==0&&(m/=p,g/=p),Ja(o,a,-m),Ja(s,a,g);var y=ph([],d,o),_=ph([],d,s);i&&(Ni(y,y,f),Bi(y,y,h),Ni(_,_,f),Bi(_,_,h)),n.push(y),n.push(_)}return e&&n.push(n.shift()),n}function tg(r,t,e){var i=t.smooth,n=t.points;if(n&&n.length>=2){if(i){var a=tw(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 u=a[s*2],l=a[s*2+1],f=n[(s+1)%o];r.bezierCurveTo(u[0],u[1],l[0],l[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 ew=(function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r})(),If=(function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new ew},t.prototype.buildPath=function(e,i){tg(e,i,!0)},t})(ht);If.prototype.type="polygon";var rw=(function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r})(),Lf=(function(r){N(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 rw},t.prototype.buildPath=function(e,i){tg(e,i,!1)},t})(ht);Lf.prototype.type="polyline";var iw={},nw=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r})(),li=(function(r){N(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 nw},t.prototype.buildPath=function(e,i){var n,a,o,s;if(this.subPixelOptimize){var u=Bp(iw,i,this.style);n=u.x1,a=u.y1,o=u.x2,s=u.y2}else n=i.x1,a=i.y1,o=i.x2,s=i.y2;var l=i.percent;l!==0&&(e.moveTo(n,a),l<1&&(o=n*(1-l)+o*l,s=a*(1-l)+s*l),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})(ht);li.prototype.type="line";var Gt=[],aw=(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 Rc(r,t,e){var i=r.cpx2,n=r.cpy2;return i!=null||n!=null?[(e?Lh:Nt)(r.x1,r.cpx1,r.cpx2,r.x2,t),(e?Lh:Nt)(r.y1,r.cpy1,r.cpy2,r.y2,t)]:[(e?Mh:zt)(r.x1,r.cpx1,r.x2,t),(e?Mh:zt)(r.y1,r.cpy1,r.y2,t)]}var as=(function(r){N(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 aw},t.prototype.buildPath=function(e,i){var n=i.x1,a=i.y1,o=i.x2,s=i.y2,u=i.cpx1,l=i.cpy1,f=i.cpx2,h=i.cpy2,c=i.percent;c!==0&&(e.moveTo(n,a),f==null||h==null?(c<1&&(Xn(n,u,o,c,Gt),u=Gt[1],o=Gt[2],Xn(a,l,s,c,Gt),l=Gt[1],s=Gt[2]),e.quadraticCurveTo(u,l,o,s)):(c<1&&(So(n,u,f,o,c,Gt),u=Gt[1],f=Gt[2],o=Gt[3],So(a,l,h,s,c,Gt),l=Gt[1],h=Gt[2],s=Gt[3]),e.bezierCurveTo(u,l,f,h,o,s)))},t.prototype.pointAt=function(e){return Rc(this.shape,e,!1)},t.prototype.tangentAt=function(e){var i=Rc(this.shape,e,!0);return en(i,i)},t})(ht);as.prototype.type="bezier-curve";var ow=(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})(),os=(function(r){N(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 ow},t.prototype.buildPath=function(e,i){var n=i.cx,a=i.cy,o=Math.max(i.r,0),s=i.startAngle,u=i.endAngle,l=i.clockwise,f=Math.cos(s),h=Math.sin(s);e.moveTo(f*o+n,h*o+a),e.arc(n,a,o,s,u,!l)},t})(ht);os.prototype.type="arc";var sw=(function(r){N(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),ht.prototype.getBoundingRect.call(this)},t})(ht),eg=(function(){function r(t){this.colorStops=t||[]}return r.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},r})(),uw=(function(r){N(t,r);function t(e,i,n,a,o,s){var u=r.call(this,o)||this;return u.x=e??0,u.y=i??0,u.x2=n??1,u.y2=a??0,u.type="linear",u.global=s||!1,u}return t})(eg),lw=(function(r){N(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})(eg),nu=Math.min,fw=Math.max,Pa=Math.abs,zr=[0,0],Fr=[0,0],Ct=jd(),Ra=Ct.minTv,Ea=Ct.maxTv,rg=(function(){function r(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new ot;for(var i=0;i<2;i++)this._axes[i]=new ot;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,u=o+t.height;if(i[0].set(a,o),i[1].set(s,o),i[2].set(s,u),i[3].set(a,u),e)for(var l=0;l<4;l++)i[l].transform(e);ot.sub(n[0],i[1],i[0]),ot.sub(n[1],i[3],i[0]),n[0].normalize(),n[1].normalize();for(var l=0;l<2;l++)this._origin[l]=n[l].dot(i[0])},r.prototype.intersect=function(t,e,i){var n=!0,a=!e;return e&&ot.set(e,0,0),Ct.reset(i,!a),!this._intersectCheckOneSide(this,t,a,1)&&(n=!1,a)||!this._intersectCheckOneSide(t,this,a,-1)&&(n=!1,a)||!a&&!Ct.negativeSize&&ot.copy(e,n?Ct.useDir?Ct.dirMinTv:Ra:Ea),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,zr),t._getProjMinMaxOnAxis(o,e._corners,Fr),Ct.negativeSize||zr[1]<Fr[0]||zr[0]>Fr[1]){if(a=!1,Ct.negativeSize||i)return a;var u=Pa(Fr[0]-zr[1]),l=Pa(zr[0]-Fr[1]);nu(u,l)>Ea.len()&&(u<l?ot.scale(Ea,s,-u*n):ot.scale(Ea,s,l*n))}else if(!i){var u=Pa(Fr[0]-zr[1]),l=Pa(zr[0]-Fr[1]);(Ct.useDir||nu(u,l)<Ra.len())&&((u<l||!Ct.bidirectional)&&(ot.scale(Ra,s,u*n),Ct.useDir&&Ct.calcDirMTV()),(u>=l||!Ct.bidirectional)&&(ot.scale(Ra,s,-l*n),Ct.useDir&&Ct.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,u=o,l=1;l<e.length;l++){var f=e[l].dot(n)+a[t];s=nu(f,s),u=fw(f,u)}i[0]=s+Ct.touchThreshold,i[1]=u-Ct.touchThreshold,Ct.negativeSize=i[1]<i[0]},r})(),hw=[],cw=(function(r){N(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 X(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(hw)),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})(va),vw=ct();function dw(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(),u=r==="update";if(s){var l=void 0,f=void 0,h=void 0;i?(l=F(i.duration,200),f=F(i.easing,"cubicOut"),h=0):(l=t.getShallow(u?"animationDurationUpdate":"animationDuration"),f=t.getShallow(u?"animationEasingUpdate":"animationEasing"),h=t.getShallow(u?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(l=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(h=a.delay)),q(h)&&(h=h(e,n)),q(l)&&(l=l(e));var c={duration:l||0,delay:h,easing:f};return c}else return null}function Mf(r,t,e,i,n,a,o){var s=!1,u;q(n)?(o=a,a=n,n=null):H(n)&&(a=n.cb,o=n.during,s=n.isFrom,u=n.removeOpt,n=n.dataIndex);var l=r==="leave";l||t.stopAnimation("leave");var f=dw(r,i,n,l?u||{}: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:!l,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 wr(r,t,e,i,n,a){Mf("update",r,t,e,i,n,a)}function Af(r,t,e,i,n,a){Mf("enter",r,t,e,i,n,a)}function Gn(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 Mo(r,t,e,i,n,a){Gn(r)||Mf("leave",r,t,e,i,n,a)}function Ec(r,t,e,i){r.removeTextContent(),r.removeTextGuideLine(),Mo(r,{style:{opacity:0}},t,e,i)}function pw(r,t,e){function i(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(n){n.isGroup||Ec(n,t,e,i)}):Ec(r,t,e,i)}function gw(r){vw(r).oldStyle=r.style}var Dl={},mw=["x","y"],yw=["width","height"];function _w(r){return ht.extend(r)}var Sw=WS;function ww(r,t){return Sw(r,t)}function we(r,t){Dl[r]=t}function bw(r){if(Dl.hasOwnProperty(r))return Dl[r]}function Pf(r,t,e,i){var n=US(r,t);return e&&(i==="center"&&(e=ng(e,n.getBoundingRect())),ag(n,e)),n}function ig(r,t,e){var i=new Sr({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(ng(t,a))}}});return i}function ng(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 Tw=YS;function ag(r,t){if(r.applyTransform){var e=r.getBoundingRect(),i=e.calculateTransform(t);r.applyTransform(i)}}function Rf(r,t){return Bp(r,r,{lineWidth:t}),r}function xw(r,t){return Np(r,r,t),r}var Cw=jr;function Dw(r,t){for(var e=lf([]);r&&r!==t;)Bn(e,r.getLocalTransform(),e),r=r.parent;return e}function Ef(r,t,e){return t&&!Kt(t)&&(t=Qr.getLocalTransform(t)),e&&(t=la([],t)),re([],r,t)}function Iw(r,t,e){var i=t[4]===0||t[5]===0||t[0]===0?1:Ze(2*t[4]/t[0]),n=t[4]===0||t[5]===0||t[2]===0?1:Ze(2*t[4]/t[2]),a=[r==="left"?-i:r==="right"?i:0,r==="top"?-n:r==="bottom"?n:0];return a=Ef(a,t,e),Ze(a[0])>Ze(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function Oc(r){return!r.isGroup}function Lw(r){return r.shape!=null}function Mw(r,t,e){if(!r||!t)return;function i(o){var s={};return o.traverse(function(u){Oc(u)&&u.anid&&(s[u.anid]=u)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return Lw(o)&&(s.shape=$(o.shape)),s}var a=i(r);t.traverse(function(o){if(Oc(o)&&o.anid){var s=a[o.anid];if(s){var u=n(o);o.attr(n(s)),wr(o,u,e,nt(o).dataIndex)}}})}function Aw(r,t){return j(r,function(e){var i=e[0];i=ge(i,t.x),i=qn(i,t.x+t.width);var n=e[1];return n=ge(n,t.y),n=qn(n,t.y+t.height),[i,n]})}function Pw(r,t){var e=ge(r.x,t.x),i=qn(r.x+r.width,t.x+t.width),n=ge(r.y,t.y),a=qn(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 Of(r,t,e){var i=R({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),pt(n,e),new Sr(i)):Pf(r.replace("path://",""),i,e,"center")}function Rw(r,t,e,i,n){for(var a=0,o=n[n.length-1];a<n.length;a++){var s=n[a];if(og(r,t,e,i,s[0],s[1],o[0],o[1]))return!0;o=s}}function og(r,t,e,i,n,a,o,s){var u=e-r,l=i-t,f=o-n,h=s-a,c=au(f,h,u,l);if(Ew(c))return!1;var v=r-n,d=t-a,m=au(v,d,u,l)/c;if(m<0||m>1)return!1;var g=au(v,d,f,h)/c;return!(g<0||g>1)}function au(r,t,e,i){return r*i-e*t}function Ew(r){return r<=1e-6&&r>=-1e-6}function Il(r,t,e,i,n){return t==null||(lt(t)?st[0]=st[1]=st[2]=st[3]=t:(V(t.length===4),st[0]=t[0],st[1]=t[1],st[2]=t[2],st[3]=t[3]),i&&(st[0]=ge(0,st[0]),st[1]=ge(0,st[1]),st[2]=ge(0,st[2]),st[3]=ge(0,st[3])),e&&(st[0]=-st[0],st[1]=-st[1],st[2]=-st[2],st[3]=-st[3]),kc(r,st,"x","width",3,1,n&&n[0]||0),kc(r,st,"y","height",0,2,n&&n[1]||0)),r}var st=[0,0,0,0];function kc(r,t,e,i,n,a,o){var s=t[a]+t[n],u=r[i];r[i]+=s,o=ge(0,qn(o,u)),r[i]<o?(r[i]=o,r[e]+=t[n]>=0?-t[n]:t[a]>=0?u+t[a]:Ze(s)>1e-8?(u-o)*t[n]/s:0):r[e]-=t[n]}function ss(r){var t=r.itemTooltipOption,e=r.componentModel,i=r.itemName,n=z(t)?{formatter:t}:t,a=e.mainType,o=e.componentIndex,s={componentType:a,name:i,$vars:["name"]};s[a+"Index"]=o;var u=r.formatterParamsExtra;u&&I(mt(u),function(f){me(s,f)||(s[f]=u[f],s.$vars.push(f))});var l=nt(r.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:i,option:pt({content:i,encodeHTMLContent:!0,formatterParams:s},n)}}function Ll(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function us(r,t){if(r)if(B(r))for(var e=0;e<r.length;e++)Ll(r[e],t);else Ll(r,t)}function kf(r){return!r||Ze(r[1])<Oa&&Ze(r[2])<Oa||Ze(r[0])<Oa&&Ze(r[3])<Oa}var Oa=1e-5;function Jn(r,t){return r?X.copy(r,t):t.clone()}function Bf(r,t){return t?ff(r||Oe(),t):void 0}function ta(r){return{z:r.get("z")||0,zlevel:r.get("zlevel")||0}}function Ow(r){var t=-1/0,e=1/0;Ll(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 sg(r,t,e){ug(r,t,e,-1/0)}function ug(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(),u=0;u<s.length;u++)i=ge(ug(s[u],t,e,i),i);else r.z=t,r.zlevel=e,i=ge(r.z2||0,i);if(n&&(n.z=t,n.zlevel=e,isFinite(i)&&(n.z2=i+2)),a){var l=r.textGuideLineConfig;a.z=t,a.zlevel=e,isFinite(i)&&(a.z2=i+(l&&l.showAbove?1:-1))}return i}we("circle",ns);we("ellipse",xf);we("sector",Cf);we("ring",Df);we("polygon",If);we("polyline",Lf);we("rect",At);we("line",li);we("bezierCurve",as);we("arc",os);const kw=Object.freeze(Object.defineProperty({__proto__:null,Arc:os,BezierCurve:as,BoundingRect:X,Circle:ns,CompoundPath:sw,Ellipse:xf,Group:bt,Image:Sr,IncrementalDisplayable:cw,Line:li,LinearGradient:uw,OrientedBoundingRect:rg,Path:ht,Point:ot,Polygon:If,Polyline:Lf,RadialGradient:lw,Rect:At,Ring:Df,Sector:Cf,Text:Vt,WH:yw,XY:mw,applyTransform:Ef,calcZ2Range:Ow,clipPointsByRect:Aw,clipRectByRect:Pw,createIcon:Of,ensureCopyRect:Jn,ensureCopyTransform:Bf,expandOrShrinkRect:Il,extendPath:ww,extendShape:_w,getShapeClass:bw,getTransform:Dw,groupTransition:Mw,initProps:Af,isBoundingRectAxisAligned:kf,isElementRemoved:Gn,lineLineIntersect:og,linePolygonIntersect:Rw,makeImage:ig,makePath:Pf,mergePath:Tw,registerShape:we,removeElement:Mo,removeElementWithFadeOut:pw,resizePath:ag,retrieveZInfo:ta,setTooltipConfig:ss,subPixelOptimize:Cw,subPixelOptimizeLine:Rf,subPixelOptimizeRect:xw,transformDirection:Iw,traverseElements:us,traverseUpdateZ:sg,updateProps:wr},Symbol.toStringTag,{value:"Module"}));var ls={};function Bw(r,t){for(var e=0;e<ze.length;e++){var i=ze[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 Bc(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=q(r.defaultText)?r.defaultText(n,r,e):r.defaultText);for(var u={normal:s},l=0;l<ze.length;l++){var f=ze[l],h=t[f];u[f]=F(i?i.getFormattedLabel(n,f,null,a,h&&h.get("formatter")):null,s)}return u}function Nf(r,t,e,i){e=e||ls;for(var n=r instanceof Vt,a=!1,o=0;o<wc.length;o++){var s=t[wc[o]];if(s&&s.getShallow("show")){a=!0;break}}var u=n?r:r.getTextContent();if(a){n||(u||(u=new Vt,r.setTextContent(u)),r.stateProxy&&(u.stateProxy=r.stateProxy));var l=Bc(e,t),f=t.normal,h=!!f.getShallow("show"),c=mr(f,i,e,!1,!n);c.text=l.normal,n||r.setTextConfig(Nc(f,e,!1));for(var o=0;o<ze.length;o++){var v=ze[o],s=t[v];if(s){var d=u.ensureState(v),m=!!F(s.getShallow("show"),h);if(m!==h&&(d.ignore=!m),d.style=mr(s,i,e,!0,!n),d.style.text=l[v],!n){var g=r.ensureState(v);g.textConfig=Nc(s,e,!0)}}}u.silent=!!f.getShallow("silent"),u.style.x!=null&&(c.x=u.style.x),u.style.y!=null&&(c.y=u.style.y),u.ignore=!h,u.useStyle(c),u.dirty(),e.enableTextSetter&&(Hw(u).setLabelText=function(p){var y=Bc(e,t,p);Bw(u,y)})}else u&&(u.ignore=!0);r.dirty()}function fs(r,t){t=t||"label";for(var e={normal:r.getModel(t)},i=0;i<ze.length;i++){var n=ze[i];e[n]=r.getModel([n,t])}return e}function mr(r,t,e,i,n){var a={};return Nw(a,r,e,i,n),t&&R(a,t),a}function Nc(r,t,e){t=t||{};var i={},n,a=r.getShallow("rotate"),o=F(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 Nw(r,t,e,i,n){e=e||ls;var a=t.ecModel,o=a&&a.option.textStyle,s=zw(t),u;if(s){u={};var l="richInheritPlainLabel",f=F(t.get(l),a?a.get(l):void 0);for(var h in s)if(s.hasOwnProperty(h)){var c=t.getModel(["rich",h]);Vc(u[h]={},c,o,t,f,e,i,n,!1,!0)}}u&&(r.rich=u);var v=t.get("overflow");v&&(r.overflow=v);var d=t.get("lineOverflow");d&&(r.lineOverflow=d);var m=r,g=t.get("minMargin");if(g!=null)g=lt(g)?g/2:0,m.margin=[g,g,g,g],m.__marginType=Vi.minMargin;else{var p=t.get("textMargin");p!=null&&(m.margin=sf(p),m.__marginType=Vi.textMargin)}Vc(r,t,o,null,null,e,i,n,!0,!1)}function zw(r){for(var t;r&&r!==r.ecModel;){var e=(r.option||ls).rich;if(e){t=t||{};for(var i=mt(e),n=0;n<i.length;n++){var a=i[n];t[a]=1}}r=r.parentModel}return t}var zc=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Fc=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],Hc=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Vc(r,t,e,i,n,a,o,s,u,l){e=!o&&e||ls;var f=a&&a.inheritColor,h=t.getShallow("color"),c=t.getShallow("textBorderColor"),v=F(t.getShallow("opacity"),e.opacity);(h==="inherit"||h==="auto")&&(h==="auto"&&Dt("color: 'auto'","color: 'inherit'"),f?h=f:h=null),(c==="inherit"||c==="auto")&&(c==="auto"&&Dt("color: 'auto'","color: 'inherit'"),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=F(t.getShallow("textBorderWidth"),e.textBorderWidth);d!=null&&(r.lineWidth=d);var m=F(t.getShallow("textBorderType"),e.textBorderType);m!=null&&(r.lineDash=m);var g=F(t.getShallow("textBorderDashOffset"),e.textBorderDashOffset);g!=null&&(r.lineDashOffset=g),!o&&v==null&&!l&&(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<zc.length;p++){var y=zc[p],_=n!==!1&&i?Ke(t.getShallow(y),i.getShallow(y),e[y]):F(t.getShallow(y),e[y]);_!=null&&(r[y]=_)}for(var p=0;p<Fc.length;p++){var y=Fc[p],_=t.getShallow(y);_!=null&&(r[y]=_)}if(r.verticalAlign==null){var S=t.getShallow("baseline");S!=null&&(r.verticalAlign=S)}if(!u||!a.disableBox){for(var p=0;p<Hc.length;p++){var y=Hc[p],_=t.getShallow(y);_!=null&&(r[y]=_)}var b=t.getShallow("borderType");b!=null&&(r.borderDash=b),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&f&&(r.backgroundColor==="auto"&&Dt("backgroundColor: 'auto'","backgroundColor: 'inherit'"),r.backgroundColor=f),(r.borderColor==="auto"||r.borderColor==="inherit")&&f&&(r.borderColor==="auto"&&Dt("borderColor: 'auto'","borderColor: 'inherit'"),r.borderColor=f)}}function Fw(r,t){var e=t&&t.getModel("textStyle");return Re([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 Hw=ct(),Vi={minMargin:1,textMargin:2},Vw=["textStyle","color"],ou=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],su=new Vt,Gw=(function(){function r(){}return r.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(Vw):null)},r.prototype.getFont=function(){return Fw({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<ou.length;i++)e[ou[i]]=this.getShallow(ou[i]);return su.useStyle(e),su.update(),su.getBoundingRect()},r})(),lg=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Uw=Kn(lg),Ww=(function(){function r(){}return r.prototype.getLineStyle=function(t){return Uw(this,t)},r})(),fg=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Yw=Kn(fg),Xw=(function(){function r(){}return r.prototype.getItemStyle=function(t,e){return Yw(this,t,e)},r})(),vt=(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){dt(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($(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(!U.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})();pf(vt);b0(vt);_e(vt,Ww);_e(vt,Xw);_e(vt,I0);_e(vt,Gw);var $w=Math.round(Math.random()*10);function hs(r){return[r||"",$w++].join("_")}function Zw(r){var t={};r.registerSubTypeDefaulter=function(e,i){var n=Ee(e);t[n.main]=i},r.determineSubType=function(e,i){var n=i.type;if(!n){var a=Ee(e).main;r.hasSubTypes(e)&&t[a]&&(n=t[a](i))}return n}}function qw(r,t){r.topologicalTravel=function(a,o,s,u){if(!a.length)return;var l=e(o),f=l.graph,h=l.noEntryList,c={};for(I(a,function(y){c[y]=!0});h.length;){var v=h.pop(),d=f[v],m=!!c[v];m&&(s.call(u,v,d.originalDeps.slice()),delete c[v]),I(d.successor,m?p:g)}I(c,function(){var y="";throw y=Co("Circular dependency may exists: ",c,a,o),new Error(y)});function g(y){f[y].entryCount--,f[y].entryCount===0&&h.push(y)}function p(y){c[y]=!0,g(y)}};function e(a){var o={},s=[];return I(a,function(u){var l=i(o,u),f=l.originalDeps=t(u),h=n(f,a);l.entryCount=h.length,l.entryCount===0&&s.push(u),I(h,function(c){ut(l.predecessor,c)<0&&l.predecessor.push(c);var v=i(o,c);ut(v.successor,c)<0&&v.successor.push(u)})}),{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(u){ut(o,u)>=0&&s.push(u)}),s}}function Kw(r,t){return dt(dt({},r,!0),t,!0)}const Qw={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:". "}}}},jw={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 Ao="ZH",zf="EN",Ui=zf,oo={},Ff={},hg=U.domSupported?(function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Ui).toUpperCase();return r.indexOf(Ao)>-1?Ao:Ui})():Ui;function cg(r,t){r=r.toUpperCase(),Ff[r]=new vt(t),oo[r]=t}function Jw(r){if(z(r)){var t=oo[r.toUpperCase()]||{};return r===Ao||r===zf?$(t):dt($(t),$(oo[Ui]),!1)}else return dt($(r),$(oo[Ui]),!1)}function t1(r){return Ff[r]}function e1(){return Ff[Ui]}cg(zf,Qw);cg(Ao,jw);function nr(r,t){return r+="","0000".substr(0,t-r.length)+r}function vg(r,t,e,i){var n=Jo(r),a=n[r1(e)](),o=n[i1(e)]()+1,s=Math.floor((o-1)/3)+1,u=n[n1(e)](),l=n["get"+(e?"UTC":"")+"Day"](),f=n[a1(e)](),h=(f-1)%12+1,c=n[o1(e)](),v=n[s1(e)](),d=n[u1(e)](),m=f>=12?"pm":"am",g=m.toUpperCase(),p=i instanceof vt?i:t1(hg)||e1(),y=p.getModel("time"),_=y.get("month"),S=y.get("monthAbbr"),b=y.get("dayOfWeek"),w=y.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,m+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,nr(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,nr(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,nr(u,2)).replace(/{d}/g,u+"").replace(/{eeee}/g,b[l]).replace(/{ee}/g,w[l]).replace(/{e}/g,l+"").replace(/{HH}/g,nr(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,nr(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,nr(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,nr(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,nr(d,3)).replace(/{S}/g,d+"")}function r1(r){return r?"getUTCFullYear":"getFullYear"}function i1(r){return r?"getUTCMonth":"getMonth"}function n1(r){return r?"getUTCDate":"getDate"}function a1(r){return r?"getUTCHours":"getHours"}function o1(r){return r?"getUTCMinutes":"getMinutes"}function s1(r){return r?"getUTCSeconds":"getSeconds"}function u1(r){return r?"getUTCMilliseconds":"getMilliseconds"}function l1(r){if(!wp(r))return z(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function dg(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 cs=sf;function Ml(r,t,e){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(f){return f&&Re(f)?f:"-"}function a(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=r instanceof Date;if(o||s){var u=o?Jo(r):r;if(isNaN(+u)){if(s)return"-"}else return vg(u,i,e)}if(t==="ordinal")return po(r)?n(r):lt(r)&&a(r)?r+"":"-";var l=xo(r);return a(l)?l1(l):po(r)?n(r):typeof r=="boolean"?r+"":"-"}var Gc=["a","b","c","d","e","f","g"],uu=function(r,t){return"{"+r+(t??"")+"}"};function pg(r,t,e){B(t)||(t=[t]);var i=t.length;if(!i)return"";for(var n=t[0].$vars||[],a=0;a<n.length;a++){var o=Gc[a];r=r.replace(uu(o),uu(o,0))}for(var s=0;s<i;s++)for(var u=0;u<n.length;u++){var l=t[s][n[u]];r=r.replace(uu(Gc[u],s),e?Wt(l):l)}return r}function f1(r,t){var e=z(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:'+Wt(i)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Wt(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 ea(r,t){return t=t||"transparent",z(r)?r:H(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function Uc(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var so={},lu={},vs=(function(){function r(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return r.prototype.create=function(t,e){this._nonSeriesBoxMasterList=i(so,!0),this._normalMasterList=i(lu,!1);function i(n,a){var o=[];return I(n,function(s,u){var l=s.create(t,e);o=o.concat(l||[]),a&&I(l,function(f){return V(!f.update)})}),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"){so[t]=e;return}lu[t]=e},r.get=function(t){return lu[t]||so[t]},r})();function h1(r){return!!so[r]}var Wc={coord:1,coord2:2},c1=Y();function v1(r){var t=r.getShallow("coord",!0),e=Wc.coord;if(t==null){var i=c1.get(r.type);i&&i.getCoord2&&(e=Wc.coord2,t=i.getCoord2(r))}return{coord:t,from:e}}var $e={none:0,dataCoordSys:1,boxCoordSys:2};function d1(r,t){var e=r.getShallow("coordinateSystem"),i=r.getShallow("coordinateSystemUsage",!0),n=i!=null,a=$e.none;if(e){var o=r.mainType==="series";i==null&&(i=o?"data":"box"),i==="data"?(a=$e.dataCoordSys,o||(n&&t&&ft('coordinateSystemUsage "data" is not supported in non-series components.'),a=$e.none)):i==="box"&&(a=$e.boxCoordSys,!o&&!h1(e)&&(n&&t&&ft('coordinateSystem "'+e+'" cannot be used'+(' as coordinateSystemUsage "box" for "'+r.type+'" yet.')),a=$e.none))}return{coordSysType:e,kind:a}}function p1(r){var t=r.targetModel,e=r.coordSysType,i=r.coordSysProvider,n=r.allowNotFound;V(!!e);var a=d1(t,!0),o=a.kind,s=a.coordSysType;if(o!==$e.dataCoordSys&&(o=$e.dataCoordSys,s=e),o===$e.none||s!==e)return!1;var u=i(e,t);return u?(o===$e.dataCoordSys?(V(t.mainType==="series"),t.coordinateSystem=u):t.boxCoordinateSystem=u,!0):(n||ft(e+" cannot be found for"+(" "+t.type+" (index: "+t.componentIndex+").")),!1)}var uo=I,g1=["left","right","top","bottom","width","height"],ka=[["width","left","right"],["height","top","bottom"]];function Hf(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(u,l){var f=u.getBoundingRect(),h=t.childAt(l+1),c=h&&h.getBoundingRect(),v,d;if(r==="horizontal"){var m=f.width+(c?-c.x+f.x:0);v=a+m,v>i||u.newline?(a=0,v=m,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||u.newline?(a+=s+e,o=0,d=g,s=f.width):s=Math.max(s,f.width)}u.newline||(u.x=a,u.y=o,u.markRedraw(),r==="horizontal"?a=v+e:o=d+e)})}var Un=Hf;St(Hf,"vertical");St(Hf,"horizontal");function m1(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 Ki(r,t,e){e=cs(e||0);var i=t.width,n=t.height,a=Yt(r.left,i),o=Yt(r.top,n),s=Yt(r.right,i),u=Yt(r.bottom,n),l=Yt(r.width,i),f=Yt(r.height,n),h=e[2]+e[0],c=e[1]+e[3],v=r.aspect;switch(isNaN(l)&&(l=i-s-c-a),isNaN(f)&&(f=n-u-h-o),v!=null&&(isNaN(l)&&isNaN(f)&&(v>i/n?l=i*.8:f=n*.8),isNaN(l)&&(l=v*f),isNaN(f)&&(f=l/v)),isNaN(a)&&(a=i-s-l-c),isNaN(o)&&(o=n-u-f-h),r.left||r.right){case"center":a=i/2-l/2-e[3];break;case"right":a=i-l-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(l)&&(l=i-c-a-(s||0)),isNaN(f)&&(f=n-h-o-(u||0));var d=new X((t.x||0)+a+e[3],(t.y||0)+o+e[0],l,f);return d.margin=e,d}function y1(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},u=i==="cover";return n>e&&!u||n<e&&u?(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"),Ki(s,t)}var fu={rect:1};function Vf(r,t,e){var i,n,a,o=r.boxCoordinateSystem,s;if(o){var u=v1(r),l=u.coord,f=u.from;if(o.dataToLayout){a=fu.rect,s=f;var h=o.dataToLayout(l);i=h.contentRect||h.rect}else ft(r.type+"["+r.componentIndex+"]"+(" layout based on "+o.type+" is not supported."))}return a==null&&(a=fu.rect),a===fu.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 Po(r){var t=r.layoutMode||r.constructor.layoutMode;return H(t)?t:t?{type:t}:null}function ra(r,t,e){var i=e&&e.ignoreSize;!B(i)&&(i=[i,i]);var n=o(ka[0],0),a=o(ka[1],1);u(ka[0],r,n),u(ka[1],r,a);function o(l,f){var h={},c=0,v={},d=0,m=2;if(uo(l,function(y){v[y]=r[y]}),uo(l,function(y){me(t,y)&&(h[y]=v[y]=t[y]),s(h,y)&&c++,s(v,y)&&d++}),i[f])return s(t,l[1])?v[l[2]]=null:s(t,l[2])&&(v[l[1]]=null),v;if(d===m||!c)return v;if(c>=m)return h;for(var g=0;g<l.length;g++){var p=l[g];if(!me(h,p)&&me(r,p)){h[p]=r[p];break}}return h}function s(l,f){return l[f]!=null&&l[f]!=="auto"}function u(l,f,h){uo(l,function(c){f[c]=h[c]})}}function Gf(r){return _1({},r)}function _1(r,t){return t&&r&&uo(g1,function(e){me(t,e)&&(r[e]=t[e])}),r}var S1=ct(),it=(function(r){N(t,r);function t(e,i,n){var a=r.call(this,e,i,n)||this;return a.uid=hs("ec_cpt_model"),a}return t.prototype.init=function(e,i,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,i){var n=Po(this),a=n?Gf(e):{},o=i.getTheme();dt(e,o.get(this.mainType)),dt(e,this.getDefaultOption()),n&&ra(e,a,n)},t.prototype.mergeOption=function(e,i){dt(this.option,e,!0);var n=Po(this);n&&ra(this.option,e,n)},t.prototype.optionUpdated=function(e,i){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!_0(e))return e.defaultOption;var i=S1(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={},u=n.length-1;u>=0;u--)s=dt(s,n[u],!0);i.defaultOption=s}return i.defaultOption},t.prototype.getReferringComponents=function(e,i){var n=e+"Index",a=e+"Id";return ca(this.ecModel,e,{index:this.get(n,!0),id:this.get(a,!0)},i)},t.prototype.getBoxLayoutParams=function(){return m1(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})(vt);Lp(it,vt);gf(it);Zw(it);qw(it,w1);function w1(r){var t=[];return I(it.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=j(t,function(e){return Ee(e).main}),r!=="dataset"&&ut(t,"dataset")<=0&&t.unshift("dataset"),t}var G={color:{},darkColor:{},size:{}},gt=G.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)"};R(gt,{primary:gt.neutral80,secondary:gt.neutral70,tertiary:gt.neutral60,quaternary:gt.neutral50,disabled:gt.neutral20,border:gt.neutral30,borderTint:gt.neutral20,borderShade:gt.neutral40,background:gt.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:gt.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:gt.neutral70,axisLineTint:gt.neutral40,axisTick:gt.neutral70,axisTickMinor:gt.neutral60,axisLabel:gt.neutral70,axisSplitLine:gt.neutral15,axisMinorSplitLine:gt.neutral05});for(var Hr in gt)if(gt.hasOwnProperty(Hr)){var Yc=gt[Hr];Hr==="theme"?G.darkColor.theme=gt.theme.slice():Hr==="highlight"?G.darkColor.highlight="rgba(255,231,130,0.4)":Hr.indexOf("accent")===0?G.darkColor[Hr]=al(Yc,null,function(r){return r*.5},function(r){return Math.min(1,1.3-r)}):G.darkColor[Hr]=al(Yc,null,function(r){return r*.9},function(r){return 1-Math.pow(r,1.5)})}G.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var gg="";typeof navigator<"u"&&(gg=navigator.platform||"");var wi="rgba(0, 0, 0, 0.2)",mg=G.color.theme[0],b1=al(mg,null,null,.9);const T1={darkMode:"auto",colorBy:"series",color:G.color.theme,gradientColor:[b1,mg],aria:{decal:{decals:[{color:wi,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:wi,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:wi,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:wi,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:wi,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:wi,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:gg.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 Al=Y(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),ie="original",Et="arrayRows",be="objectRows",He="keyedColumns",je="typedArray",yg="unknown",Ne="column",fi="row",jt={Must:1,Might:2,Not:3},_g=ct();function x1(r){_g(r).datasetMap=Y()}function C1(r,t,e){var i={},n=Sg(t);if(!n||!r)return i;var a=[],o=[],s=t.ecModel,u=_g(s).datasetMap,l=n.uid+"_"+e.seriesLayoutBy,f,h;r=r.slice(),I(r,function(m,g){var p=H(m)?m:r[g]={name:m};p.type==="ordinal"&&f==null&&(f=g,h=d(p)),i[p.name]=[]});var c=u.get(l)||u.set(l,{categoryWayDim:h,valueWayDim:0});I(r,function(m,g){var p=m.name,y=d(m);if(f==null){var _=c.valueWayDim;v(i[p],_,y),v(o,_,y),c.valueWayDim+=y}else if(f===g)v(i[p],0,y),v(a,0,y);else{var _=c.categoryWayDim;v(i[p],_,y),v(o,_,y),c.categoryWayDim+=y}});function v(m,g,p){for(var y=0;y<p;y++)m.push(g+y)}function d(m){var g=m.dimsDef;return g?g.length:1}return a.length&&(i.itemName=a),o.length&&(i.seriesName=o),i}function Sg(r){var t=r.get("data",!0);if(!t)return ca(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},lr).models[0]}function D1(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:ca(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},lr).models}function wg(r,t){return I1(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,t)}function I1(r,t,e,i,n,a){var o,s=5;if(Ht(r))return jt.Not;var u,l;if(i){var f=i[a];H(f)?(u=f.name,l=f.type):z(f)&&(u=f)}if(l!=null)return l==="ordinal"?jt.Must:jt.Not;if(t===Et){var h=r;if(e===fi){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 m=r;if(!u)return jt.Not;for(var v=0;v<m.length&&v<s;v++){var g=m[v];if(g&&(o=S(g[u]))!=null)return o}}else if(t===He){var p=r;if(!u)return jt.Not;var c=p[u];if(!c||Ht(c))return jt.Not;for(var v=0;v<c.length&&v<s;v++)if((o=S(c[v]))!=null)return o}else if(t===ie)for(var y=r,v=0;v<y.length&&v<s;v++){var g=y[v],_=fa(g);if(!B(_))return jt.Not;if((o=S(_[a]))!=null)return o}function S(b){var w=z(b);if(b!=null&&Number.isFinite(Number(b))&&b!=="")return w?jt.Might:jt.Not;if(w&&b!=="-")return jt.Must}return jt.Not}var L1=Y();function M1(r,t,e){var i=L1.get(t);if(!i)return e;var n=i(r);if(!n)return e;for(var a=0;a<n.length;a++)V($i(n[a]));return e.concat(n)}var Xc=ct();ct();var Uf=(function(){function r(){}return r.prototype.getColorFromPalette=function(t,e,i){var n=Ft(this.get("color",!0)),a=this.get("colorLayer",!0);return P1(this,Xc,n,a,t,e,i)},r.prototype.clearColorPalette=function(){R1(this,Xc)},r})();function A1(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 P1(r,t,e,i,n,a,o){a=a||r;var s=t(a),u=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(n))return l[n];var f=o==null||!i?e:A1(i,o);if(f=f||e,!(!f||!f.length)){var h=f[u];return n&&(l[n]=h),s.paletteIdx=(u+1)%f.length,h}}function R1(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var Ba,ln,$c,hu="\0_ec_inner",Zc=1,E1={grid:"GridComponent",polar:"PolarComponent",geo:"GeoComponent",singleAxis:"SingleAxisComponent",parallel:"ParallelComponent",calendar:"CalendarComponent",matrix:"MatrixComponent",graphic:"GraphicComponent",toolbox:"ToolboxComponent",tooltip:"TooltipComponent",axisPointer:"AxisPointerComponent",brush:"BrushComponent",title:"TitleComponent",timeline:"TimelineComponent",markPoint:"MarkPointComponent",markLine:"MarkLineComponent",markArea:"MarkAreaComponent",legend:"LegendComponent",dataZoom:"DataZoomComponent",visualMap:"VisualMapComponent",xAxis:"GridComponent",yAxis:"GridComponent",angleAxis:"PolarComponent",radiusAxis:"PolarComponent"},O1={line:"LineChart",bar:"BarChart",pie:"PieChart",scatter:"ScatterChart",radar:"RadarChart",map:"MapChart",tree:"TreeChart",treemap:"TreemapChart",graph:"GraphChart",chord:"ChordChart",gauge:"GaugeChart",funnel:"FunnelChart",parallel:"ParallelChart",sankey:"SankeyChart",boxplot:"BoxplotChart",candlestick:"CandlestickChart",effectScatter:"EffectScatterChart",lines:"LinesChart",heatmap:"HeatmapChart",pictorialBar:"PictorialBarChart",themeRiver:"ThemeRiverChart",sunburst:"SunburstChart",custom:"CustomChart"},Ro={};function k1(r){I(r,function(t,e){if(!it.hasClass(e)){var i=E1[e];i&&!Ro[i]&&(ft("Component "+e+` is used but not imported.
9
+ import { `+i+` } from 'echarts/components';
10
+ echarts.use([`+i+"]);"),Ro[i]=!0)}})}var Wf=(function(r){N(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 vt(a),this._locale=new vt(o),this._optionManager=s},t.prototype.setOption=function(e,i,n){V(e!=null,"option is null/undefined"),V(e[hu]!==Zc,"please use chart.getOption()");var a=Qc(i);this._optionManager.setOption(e,n,a),this._resetOption(null,a)},t.prototype.resetOption=function(e,i){return this._resetOption(e,Qc(i))},t.prototype._resetOption=function(e,i){var n=!1,a=this._optionManager;if(!e||e==="recreate"){var o=a.mountOption(e==="recreate");k1(o),!this.option||e==="recreate"?$c(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 u=a.getMediaOption(this);u.length&&I(u,function(l){n=!0,this._mergeOption(l,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=[],u=Y(),l=i&&i.replaceMergeMainTypeMap;x1(this),I(e,function(h,c){h!=null&&(it.hasClass(c)?c&&(s.push(c),u.set(c,!0)):n[c]=n[c]==null?$(h):dt(n[c],h,!0))}),l&&l.each(function(h,c){it.hasClass(c)&&!u.get(c)&&(s.push(c),u.set(c,!0))}),it.topologicalTravel(s,it.getAllClassMainTypes(),f,this);function f(h){var c=M1(this,h,Ft(e[h])),v=a.get(h),d=v?l&&l.get(h)?"replaceMerge":"normalMerge":"replaceAll",m=a0(v,c,d);c0(m,h,it),n[h]=null,a.set(h,null),o.set(h,0);var g=[],p=[],y=0,_,S;I(m,function(b,w){var T=b.existing,C=b.newOption;if(!C)T&&(T.mergeOption({},this),T.optionUpdated({},!1));else{var x=h==="series",D=it.getClass(h,b.keyInfo.subType,!x);if(!D){{var L=b.keyInfo.subType,A=O1[L];Ro[L]||(Ro[L]=!0,ft(A?"Series "+L+` is used but not imported.
11
+ import { `+A+` } from 'echarts/charts';
12
+ echarts.use([`+A+"]);":"Unknown series "+L))}return}if(h==="tooltip"){if(_){S||(pe("Currently only one tooltip component is allowed."),S=!0);return}_=!0}if(T&&T.constructor===D)T.name=b.keyInfo.name,T.mergeOption(C,this),T.optionUpdated(C,!1);else{var M=R({componentIndex:w},b.keyInfo);T=new D(C,this,this,M),R(T,M),b.brandNew&&(T.__requireNewView=!0),T.init(C,this,this),T.optionUpdated(null,!0)}}T?(g.push(T.option),p.push(T),y++):(g.push(void 0),p.push(void 0))},this),n[h]=g,a.set(h,p),o.set(h,y),h==="series"&&Ba(this)}this._seriesIndices||Ba(this)},t.prototype.getOption=function(){var e=$(this.option);return I(e,function(i,n){if(it.hasClass(n)){for(var a=Ft(i),o=a.length,s=!1,u=o-1;u>=0;u--)a[u]&&!$i(a[u])?s=!0:(a[u]=null,!s&&o--);a.length=o,e[n]=a}}),delete e[hu],e},t.prototype.setTheme=function(e){this._theme=new vt(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 u;return n!=null?(u=[],I(Ft(n),function(l){s[l]&&u.push(s[l])})):a!=null?u=qc("id",a,s):o!=null?u=qc("name",o,s):u=te(s,function(l){return!!l}),Kc(u,e)},t.prototype.findComponents=function(e){var i=e.query,n=e.mainType,a=s(i),o=a?this.queryComponents(a):te(this._componentsMap.get(n),function(l){return!!l});return u(Kc(o,e));function s(l){var f=n+"Index",h=n+"Id",c=n+"Name";return l&&(l[f]!=null||l[h]!=null||l[c]!=null)?{mainType:n,index:l[f],id:l[h],name:l[c]}:null}function u(l){return e.filter?te(l,e.filter):l}},t.prototype.eachComponent=function(e,i,n){var a=this._componentsMap;if(q(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 u=z(e)?a.get(e):H(e)?this.findComponents(e):null,l=0;u&&l<u.length;l++){var f=u[l];f&&i.call(n,f,f.componentIndex)}},t.prototype.getSeriesByName=function(e){var i=ye(e,null);return te(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 te(this._componentsMap.get("series"),function(i){return!!i&&i.subType===e})},t.prototype.getSeries=function(){return te(this._componentsMap.get("series"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,i){ln(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){ln(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 ln(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,i){ln(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=Y(n)},t.prototype.restoreData=function(e){Ba(this);var i=this._componentsMap,n=[];i.each(function(a,o){it.hasClass(o)&&n.push(o)}),it.topologicalTravel(n,it.getAllClassMainTypes(),function(a){I(i.get(a),function(o){o&&(a!=="series"||!B1(o,e))&&o.restoreData()})})},t.internalField=(function(){Ba=function(e){var i=e._seriesIndices=[];I(e._componentsMap.get("series"),function(n){n&&i.push(n.componentIndex)}),e._seriesIndicesMap=Y(i)},ln=function(e){if(!e._seriesIndices)throw new Error("Option should contains series.")},$c=function(e,i){e.option={},e.option[hu]=Zc,e._componentsMap=Y({series:[]}),e._componentsCount=Y();var n=i.aria;H(n)&&n.enabled==null&&(n.enabled=!0),N1(i,e._theme.option),dt(i,T1,!1),e._mergeOption(i,null)}})(),t})(vt);function B1(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 N1(r,t){var e=r.color&&!r.colorLayer;I(t,function(i,n){n==="colorLayer"&&e||n==="color"&&r.color||it.hasClass(n)||(typeof i=="object"?r[n]=r[n]?dt(r[n],i,!1):$(i):r[n]==null&&(r[n]=i))})}function qc(r,t,e){if(B(t)){var i=Y();return I(t,function(a){if(a!=null){var o=ye(a,null);o!=null&&i.set(a,!0)}}),te(e,function(a){return a&&i.get(a[r])})}else{var n=ye(t,null);return te(e,function(a){return a&&n!=null&&a[r]===n})}}function Kc(r,t){return t.hasOwnProperty("subType")?te(r,function(e){return e&&e.subType===t.subType}):r}function Qc(r){var t=Y();return r&&I(Ft(r.replaceMerge),function(e){V(it.hasClass(e),'"'+e+'" is not valid component main type in "replaceMerge"'),t.set(e,!0)}),{replaceMergeMainTypeMap:t}}_e(Wf,Uf);var z1=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],bg=(function(){function r(t){I(z1,function(e){this[e]=at(t[e],t)},this)}return r})(),F1=/^(min|max)?(.+)$/,H1=(function(){function r(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return r.prototype.setOption=function(t,e,i){t&&(I(Ft(t.series),function(o){o&&o.data&&Ht(o.data)&&$u(o.data)}),I(Ft(t.dataset),function(o){o&&o.source&&Ht(o.source)&&$u(o.source)})),t=$(t);var n=this._optionBackup,a=V1(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=[],$(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=$(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 u=0,l=n.length;u<l;u++)G1(n[u].query,e,i)&&o.push(u);return!o.length&&a&&(o=[-1]),o.length&&!W1(o,this._currentMediaIndices)&&(s=j(o,function(f){return $(f===-1?a.option:n[f].option)})),this._currentMediaIndices=o,s},r})();function V1(r,t,e){var i=[],n,a,o=r.baseOption,s=r.timeline,u=r.options,l=r.media,f=!!r.media,h=!!(u||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((h||f)&&(r.options=r.media=null),a=r),f&&(B(l)?I(l,function(v){v&&!v.option&&H(v.query)&&H(v.query.option)&&ft("Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }"),v&&v.option&&(v.query?i.push(v):n||(n=v))}):ft("Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }")),c(a),I(u,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:u||[],mediaDefault:n,mediaList:i}}function G1(r,t,e){var i={width:t,height:e,aspectratio:t/e},n=!0;return I(r,function(a,o){var s=o.match(F1);if(!(!s||!s[1]||!s[2])){var u=s[1],l=s[2].toLowerCase();U1(i[l],a,u)||(n=!1)}}),n}function U1(r,t,e){return e==="min"?r>=t:e==="max"?r<=t:r===t}function W1(r,t){return r.join(",")===t.join(",")}var ne=I,ia=H,jc=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function cu(r){var t=r&&r.itemStyle;if(t)for(var e=0,i=jc.length;e<i;e++){var n=jc[e],a=t.normal,o=t.emphasis;a&&a[n]&&(Dt("itemStyle.normal."+n,n),r[n]=r[n]||{},r[n].normal?dt(r[n].normal,a[n]):r[n].normal=a[n],a[n]=null),o&&o[n]&&(Dt("itemStyle.emphasis."+n,"emphasis."+n),r[n]=r[n]||{},r[n].emphasis?dt(r[n].emphasis,o[n]):r[n].emphasis=o[n],o[n]=null)}}function Rt(r,t,e){if(r&&r[t]&&(r[t].normal||r[t].emphasis)){var i=r[t].normal,n=r[t].emphasis;i&&(tr("'normal' hierarchy in "+t+" has been removed since 4.0. All style properties are configured in "+t+" directly now."),e?(r[t].normal=r[t].emphasis=null,pt(r[t],i)):r[t]=i),n&&(tr(t+".emphasis has been changed to emphasis."+t+" since 4.0"),r.emphasis=r.emphasis||{},r.emphasis[t]=n,n.focus&&(r.emphasis.focus=n.focus),n.blurScope&&(r.emphasis.blurScope=n.blurScope))}}function An(r){Rt(r,"itemStyle"),Rt(r,"lineStyle"),Rt(r,"areaStyle"),Rt(r,"label"),Rt(r,"labelLine"),Rt(r,"upperLabel"),Rt(r,"edgeLabel")}function _t(r,t){var e=ia(r)&&r[t],i=ia(e)&&e.textStyle;if(i){tr("textStyle hierarchy in "+t+" has been removed since 4.0. All textStyle properties are configured in "+t+" directly now.");for(var n=0,a=Qh.length;n<a;n++){var o=Qh[n];i.hasOwnProperty(o)&&(e[o]=i[o])}}}function ue(r){r&&(An(r),_t(r,"label"),r.emphasis&&_t(r.emphasis,"label"))}function Y1(r){if(ia(r)){cu(r),An(r),_t(r,"label"),_t(r,"upperLabel"),_t(r,"edgeLabel"),r.emphasis&&(_t(r.emphasis,"label"),_t(r.emphasis,"upperLabel"),_t(r.emphasis,"edgeLabel"));var t=r.markPoint;t&&(cu(t),ue(t));var e=r.markLine;e&&(cu(e),ue(e));var i=r.markArea;i&&ue(i);var n=r.data;if(r.type==="graph"){n=n||r.nodes;var a=r.links||r.edges;if(a&&!Ht(a))for(var o=0;o<a.length;o++)ue(a[o]);I(r.categories,function(l){An(l)})}if(n&&!Ht(n))for(var o=0;o<n.length;o++)ue(n[o]);if(t=r.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)ue(s[o]);if(e=r.markLine,e&&e.data)for(var u=e.data,o=0;o<u.length;o++)B(u[o])?(ue(u[o][0]),ue(u[o][1])):ue(u[o]);r.type==="gauge"?(_t(r,"axisLabel"),_t(r,"title"),_t(r,"detail")):r.type==="treemap"?(Rt(r.breadcrumb,"itemStyle"),I(r.levels,function(l){An(l)})):r.type==="tree"&&An(r.leaves)}}function Ue(r){return B(r)?r:r?[r]:[]}function Jc(r){return(B(r)?r[0]:r)||{}}function X1(r,t){ne(Ue(r.series),function(i){ia(i)&&Y1(i)});var e=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&e.push("valueAxis","categoryAxis","logAxis","timeAxis"),ne(e,function(i){ne(Ue(r[i]),function(n){n&&(_t(n,"axisLabel"),_t(n.axisPointer,"label"))})}),ne(Ue(r.parallel),function(i){var n=i&&i.parallelAxisDefault;_t(n,"axisLabel"),_t(n&&n.axisPointer,"label")}),ne(Ue(r.calendar),function(i){Rt(i,"itemStyle"),_t(i,"dayLabel"),_t(i,"monthLabel"),_t(i,"yearLabel")}),ne(Ue(r.radar),function(i){_t(i,"name"),i.name&&i.axisName==null&&(i.axisName=i.name,delete i.name,tr("name property in radar component has been changed to axisName")),i.nameGap!=null&&i.axisNameGap==null&&(i.axisNameGap=i.nameGap,delete i.nameGap,tr("nameGap property in radar component has been changed to axisNameGap")),ne(i.indicator,function(n){n.text&&Dt("text","name","radar.indicator")})}),ne(Ue(r.geo),function(i){ia(i)&&(ue(i),ne(Ue(i.regions),function(n){ue(n)}))}),ne(Ue(r.timeline),function(i){ue(i),Rt(i,"label"),Rt(i,"itemStyle"),Rt(i,"controlStyle",!0);var n=i.data;B(n)&&I(n,function(a){H(a)&&(Rt(a,"label"),Rt(a,"itemStyle"))})}),ne(Ue(r.toolbox),function(i){Rt(i,"iconStyle"),ne(i.feature,function(n){Rt(n,"iconStyle")})}),_t(Jc(r.axisPointer),"label"),_t(Jc(r.tooltip).axisPointer,"label")}function $1(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 Z1(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 tv(r){r&&I(q1,function(t){t[0]in r&&!(t[1]in r)&&(r[t[1]]=r[t[0]])})}var q1=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],K1=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],vu=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function fn(r){var t=r&&r.itemStyle;if(t)for(var e=0;e<vu.length;e++){var i=vu[e][1],n=vu[e][0];t[i]!=null&&(t[n]=t[i],Dt(i,n))}}function ev(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(Dt("label.margin","label.edgeDistance","pie"),r.edgeDistance=r.margin)}function rv(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay,Dt("downplay","blur","sunburst"))}function Q1(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(Dt("focusNodeAdjacency","emphasis: { focus: 'adjacency'}","graph/sankey"),r.emphasis.focus="adjacency"))}function Tg(r,t){if(r)for(var e=0;e<r.length;e++)t(r[e]),r[e]&&Tg(r[e].children,t)}function xg(r,t){X1(r,t),r.series=Ft(r.series),I(r.series,function(e){if(H(e)){var i=e.type;if(i==="line")e.clipOverflow!=null&&(e.clip=e.clipOverflow,Dt("clipOverflow","clip","line"));else if(i==="pie"||i==="gauge"){e.clockWise!=null&&(e.clockwise=e.clockWise,Dt("clockWise","clockwise")),ev(e.label);var n=e.data;if(n&&!Ht(n))for(var a=0;a<n.length;a++)ev(n[a]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(Dt("hoverOffset","emphasis.scaleSize"),e.emphasis.scaleSize=e.hoverOffset))}else if(i==="gauge"){var o=$1(e,"pointer.color");o!=null&&Z1(e,"itemStyle.color",o)}else if(i==="bar"){fn(e),fn(e.backgroundStyle),fn(e.emphasis);var n=e.data;if(n&&!Ht(n))for(var a=0;a<n.length;a++)typeof n[a]=="object"&&(fn(n[a]),fn(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,Dt("highlightPolicy","emphasis.focus","sunburst"))),rv(e),Tg(e.data,rv)}else i==="graph"||i==="sankey"?Q1(e):i==="map"&&(e.mapType&&!e.map&&(Dt("mapType","map","map"),e.map=e.mapType),e.mapLocation&&(tr("`mapLocation` is not used anymore."),pt(e,e.mapLocation)));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(Dt("hoverAnimation","emphasis.scale"),e.emphasis.scale=e.hoverAnimation)),tv(e)}}),r.dataRange&&(r.visualMap=r.dataRange),I(K1,function(e){var i=r[e];i&&(B(i)||(i=[i]),I(i,function(n){tv(n)}))})}function j1(r){var t=Y();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)}),J1(e)}})}function J1(r){I(r,function(t,e){var i=[],n=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,u=t.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(l,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 m=NaN,g=e-1;g>=0;g--){var p=r[g];if(s||(d=p.data.rawIndexOf(p.stackedByDimension,v)),d>=0){var y=p.data.getByRawIndex(p.stackResultDimension,d);if(u==="all"||u==="positive"&&y>0||u==="negative"&&y<0||u==="samesign"&&c>=0&&y>0||u==="samesign"&&c<=0&&y<0){c=j_(c,y),m=y;break}}}return i[0]=c,i[1]=m,i})})}var ds=(function(){function r(t){this.data=t.data||(t.sourceFormat===He?{}:[]),this.sourceFormat=t.sourceFormat||yg,this.seriesLayoutBy=t.seriesLayoutBy||Ne,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&&wg(this,i)===jt.Must&&(n.type="ordinal")}}return r})();function Yf(r){return r instanceof ds}function Pl(r,t,e){e=e||Cg(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:$(t)});return a}function Xf(r){return new ds({data:r,sourceFormat:Ht(r)?je:ie})}function tb(r){return new ds({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:$(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function Cg(r){var t=yg;if(Ht(r))t=je;else if(B(r)){r.length===0&&(t=Et);for(var e=0,i=r.length;e<i;e++){var n=r[e];if(n!=null){if(B(n)||Ht(n)){t=Et;break}else if(H(n)){t=be;break}}}}else if(H(r)){for(var a in r)if(me(r,a)&&Kt(r[a])){t=He;break}}return t}function eb(r,t,e,i,n){var a,o;if(!r)return{dimensionsDefine:iv(n),startIndex:o,dimensionsDetectedCount:a};if(t===Et){var s=r;i==="auto"||i==null?nv(function(l){l!=null&&l!=="-"&&(z(l)?o==null&&(o=1):o=0)},e,s,10):o=lt(i)?i:i?1:0,!n&&o===1&&(n=[],nv(function(l,f){n[f]=l!=null?l+"":""},e,s,1/0)),a=n?n.length:e===fi?s.length:s[0]?s[0].length:null}else if(t===be)n||(n=rb(r));else if(t===He)n||(n=[],I(r,function(l,f){n.push(f)}));else if(t===ie){var u=fa(r[0]);a=B(u)&&u.length||1}else t===je&&V(!!n,"dimensions must be given if data is TypedArray.");return{startIndex:o,dimensionsDefine:iv(n),dimensionsDetectedCount:a}}function rb(r){for(var t=0,e;t<r.length&&!(e=r[t++]););if(e)return mt(e)}function iv(r){if(r){var t=Y();return j(r,function(e,i){e=H(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 nv(r,t,e,i){if(t===fi)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 Dg(r){var t=r.sourceFormat;return t===be||t===He}var Vr,Gr,Ur,Wr,av,ov,Ig=(function(){function r(t,e){var i=Yf(t)?t:Xf(t);this._source=i;var n=this._data=i.data,a=i.sourceFormat,o=i.seriesLayoutBy;if(a===je){if(e==null)throw new Error("Typed array data must specify dimension size");this._offset=0,this._dimSize=e,this._data=n}{var s=ib[Eo(a,o)];s&&s(n,i.dimensionsDefine)}ov(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;ov=function(o,s,u){var l=u.sourceFormat,f=u.seriesLayoutBy,h=u.startIndex,c=u.dimensionsDefine,v=av[Eo(l,f)];if(V(v,"Invalide sourceFormat: "+l),R(o,v),l===je)o.getItem=e,o.count=n,o.fillStorage=i;else{var d=Lg(l,f);o.getItem=at(d,null,s,h,c);var m=Mg(l,f);o.count=at(m,null,s,h,c)}};var e=function(o,s){o=o-this._offset,s=s||[];for(var u=this._data,l=this._dimSize,f=l*o,h=0;h<l;h++)s[h]=u[f+h];return s},i=function(o,s,u,l){for(var f=this._data,h=this._dimSize,c=0;c<h;c++){for(var v=l[c],d=v[0]==null?1/0:v[0],m=v[1]==null?-1/0:v[1],g=s-o,p=u[c],y=0;y<g;y++){var _=f[y*h+c];p[o+y]=_,_<d&&(d=_),_>m&&(m=_)}v[0]=d,v[1]=m}},n=function(){return this._data?this._data.length/this._dimSize:0};av=(t={},t[Et+"_"+Ne]={pure:!0,appendData:a},t[Et+"_"+fi]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[be]={pure:!0,appendData:a},t[He]={pure:!0,appendData:function(o){var s=this._data;I(o,function(u,l){for(var f=s[l]||(s[l]=[]),h=0;h<(u||[]).length;h++)f.push(u[h])})}},t[ie]={appendData:a},t[je]={persistent:!1,pure:!0,appendData:function(o){V(Ht(o),"Added data must be TypedArray if data in initialization is TypedArray"),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})(),Na=function(r){B(r)||ft("series.data or dataset.source must be an array.")},ib=(Vr={},Vr[Et+"_"+Ne]=Na,Vr[Et+"_"+fi]=Na,Vr[be]=Na,Vr[He]=function(r,t){for(var e=0;e<t.length;e++){var i=t[e].name;i==null&&ft("dimension name must not be null/undefined.")}},Vr[ie]=Na,Vr),sv=function(r,t,e,i){return r[i]},nb=(Gr={},Gr[Et+"_"+Ne]=function(r,t,e,i){return r[i+t]},Gr[Et+"_"+fi]=function(r,t,e,i,n){i+=t;for(var a=n||[],o=r,s=0;s<o.length;s++){var u=o[s];a[s]=u?u[i]:null}return a},Gr[be]=sv,Gr[He]=function(r,t,e,i,n){for(var a=n||[],o=0;o<e.length;o++){var s=e[o].name,u=s!=null?r[s]:null;a[o]=u?u[i]:null}return a},Gr[ie]=sv,Gr);function Lg(r,t){var e=nb[Eo(r,t)];return V(e,'Do not support get item on "'+r+'", "'+t+'".'),e}var uv=function(r,t,e){return r.length},ab=(Ur={},Ur[Et+"_"+Ne]=function(r,t,e){return Math.max(0,r.length-t)},Ur[Et+"_"+fi]=function(r,t,e){var i=r[0];return i?Math.max(0,i.length-t):0},Ur[be]=uv,Ur[He]=function(r,t,e){var i=e[0].name,n=i!=null?r[i]:null;return n?n.length:0},Ur[ie]=uv,Ur);function Mg(r,t){var e=ab[Eo(r,t)];return V(e,'Do not support count on "'+r+'", "'+t+'".'),e}var du=function(r,t,e){return r[t]},ob=(Wr={},Wr[Et]=du,Wr[be]=function(r,t,e){return r[e]},Wr[He]=du,Wr[ie]=function(r,t,e){var i=fa(r);return i instanceof Array?i[t]:i},Wr[je]=du,Wr);function Ag(r){var t=ob[r];return V(t,'Do not support get value on "'+r+'".'),t}function Eo(r,t){return r===Et?r+"_"+t:r}function Qi(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 Ag(a)(i,o,s)}else{var u=i;return a===ie&&(u=fa(i)),u}}}}var sb=/\{@(.+?)\}/g,ub=(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),u=i.getItemVisual(t,"style"),l=u&&u[i.getItemVisual(t,"drawType")||"fill"],f=u&&u.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:l,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),u=this.getDataParams(t,i);if(o&&(u.value=o.interpolatedValue),n!=null&&B(u.value)&&(u.value=u.value[n]),!a){var l=s.getItemModel(t);a=l.get(e==="normal"?["label","formatter"]:[e,"label","formatter"])}if(q(a))return u.status=e,u.dimensionIndex=n,a(u);if(z(a)){var f=pg(a,u);return f.replace(sb,function(h,c){var v=c.length,d=c;d.charAt(0)==="["&&d.charAt(v-1)==="]"&&(d=+d.slice(1,v-1),isNaN(d)&&ft("Invalide label formatter: @"+c+", only support @[0], @[1], @[2], ..."));var m=Qi(s,t,d);if(o&&B(o.interpolatedValue)){var g=s.getDimensionIndex(d);g>=0&&(m=o.interpolatedValue[g])}return m!=null?m+"":""})}},r.prototype.getRawValue=function(t,e){return Qi(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,i){},r})();function lv(r){var t,e;return H(r)?r.type?e=r:console.warn("The return type of `formatTooltip` is not supported: "+Co(r)):t=r,{text:t,frag:e}}function Wn(r){return new lb(r)}var lb=(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,u=f(t&&t.modBy),l=t&&t.modDataCount||0;(o!==u||s!==l)&&(a="reset");function f(y){return!(y>=1)&&(y=1),y}var h;(this._dirty||a==="reset")&&(this._dirty=!1,h=this._doReset(i)),this._modBy=u,this._modDataCount=l;var c=t&&t.step;if(e?(V(e._outputDueEnd!=null),this._dueEnd=e._outputDueEnd):(V(!this._progress||this._count),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 m=this._progress;if(B(m))for(var g=0;g<m.length;g++)this._doProgress(m[g],v,d,u,l);else this._doProgress(m,v,d,u,l)}this._dueIndex=d;var p=this._settedOutputEnd!=null?this._settedOutputEnd:d;V(p>=this._outputDueEnd),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){fv.reset(e,i,n,a),this._callingProgress=t,this._callingProgress({start:e,end:i,count:i-e,next:fv.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),B(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){V(t&&!t._disposed&&t!==this),(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})(),fv=(function(){var r,t,e,i,n,a={reset:function(u,l,f,h){t=u,r=l,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 u=t%n*e+Math.ceil(t/n),l=t>=r?null:u<i?u:t;return t++,l}})();function lo(r,t){var e=t&&t.type;return e==="ordinal"?r:(e==="time"&&!lt(r)&&r!=null&&r!=="-"&&(r=+Jo(r)),r==null||r===""?NaN:Number(r))}Y({number:function(r){return parseFloat(r)},time:function(r){return+Jo(r)},trim:function(r){return z(r)?Re(r):r}});var fb=(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=lt(t)?t:xo(t),n=lt(e)?e:xo(e),a=isNaN(i),o=isNaN(n);if(a&&(i=this._incomparable),o&&(n=this._incomparable),a&&o){var s=z(t),u=z(e);s&&(i=u?t:0),u&&(n=s?e:0)}return i<n?this._resultLT:i>n?-this._resultLT:0},r})(),hb=(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 lo(t,e)},r})();function cb(r,t){var e=new hb,i=r.data,n=e.sourceFormat=r.sourceFormat,a=r.startIndex,o="";r.seriesLayoutBy!==Ne&&(o='`seriesLayoutBy` of upstream dataset can only be "column" in data transform.',Xt(o));var s=[],u={},l=r.dimensionsDefine;if(l)I(l,function(m,g){var p=m.name,y={index:g,name:p,displayName:m.displayName};if(s.push(y),p!=null){var _="";me(u,p)&&(_='dimension name "'+p+'" duplicated.',Xt(_)),u[p]=y}});else for(var f=0;f<r.dimensionsDetectedCount;f++)s.push({index:f});var h=Lg(n,Ne);t.__isBuiltIn&&(e.getRawDataItem=function(m){return h(i,a,s,m)},e.getRawData=at(vb,null,r)),e.cloneRawData=at(db,null,r);var c=Mg(n,Ne);e.count=at(c,null,i,a,s);var v=Ag(n);e.retrieveValue=function(m,g){var p=h(i,a,s,m);return d(p,g)};var d=e.retrieveValueFromItem=function(m,g){if(m!=null){var p=s[g];if(p)return v(m,g,p.name)}};return e.getDimensionInfo=at(pb,null,s,u),e.cloneAllDimensionInfo=at(gb,null,s),e}function vb(r){var t=r.sourceFormat;if(!$f(t)){var e="";e="`getRawData` is not supported in source format "+t,Xt(e)}return r.data}function db(r){var t=r.sourceFormat,e=r.data;if(!$f(t)){var i="";i="`cloneRawData` is not supported in source format "+t,Xt(i)}if(t===Et){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(R({},e[a]));return n}}function pb(r,t,e){if(e!=null){if(lt(e)||!isNaN(e)&&!me(t,e))return r[e];if(me(t,e))return t[e]}}function gb(r){return $(r)}var Pg=Y();function mb(r){r=$(r);var t=r.type,e="";t||(e="Must have a `type` when `registerTransform`.",Xt(e));var i=t.split(":");i.length!==2&&(e='Name must include namespace like "ns:regression".',Xt(e));var n=!1;i[0]==="echarts"&&(t=i[1],n=!0),r.__isBuiltIn=n,Pg.set(t,r)}function yb(r,t,e){var i=Ft(r),n=i.length,a="";n||(a="If `transform` declared, it should at least contain one transform.",Xt(a));for(var o=0,s=n;o<s;o++){var u=i[o];t=_b(u,t,e,n===1?null:o),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function _b(r,t,e,i){var n="";t.length||(n="Must have at least one upstream dataset.",Xt(n)),H(r)||(n="transform declaration must be an object rather than "+typeof r+".",Xt(n));var a=r.type,o=Pg.get(a);o||(n='Can not find transform on type "'+a+'".',Xt(n));var s=j(t,function(f){return cb(f,o)}),u=Ft(o.transform({upstream:s[0],upstreamList:s,config:$(r.config)}));if(r.print){var l=j(u,function(f){var h=i!=null?" === pipe index: "+i:"";return["=== dataset index: "+e.datasetIndex+h+" ===","- transform result data:",Co(f.data),"- transform result dimensions:",Co(f.dimensions)].join(`
13
+ `)}).join(`
14
+ `);r0(l)}return j(u,function(f,h){var c="";H(f)||(c="A transform should not return some empty results.",Xt(c)),f.data||(c="Transform result data should be not be null or undefined",Xt(c));var v=Cg(f.data);$f(v)||(c="Transform result data should be array rows or object rows.",Xt(c));var d,m=t[0];if(m&&h===0&&!f.dimensions){var g=m.startIndex;g&&(f.data=m.data.slice(0,g).concat(f.data)),d={seriesLayoutBy:Ne,sourceHeader:g,dimensions:m.metaRawOption.dimensions}}else d={seriesLayoutBy:Ne,sourceHeader:0,dimensions:f.dimensions};return Pl(f.data,d,null)})}function $f(r){return r===Et||r===be}var ps="undefined",Sb=typeof Uint32Array===ps?Array:Uint32Array,wb=typeof Uint16Array===ps?Array:Uint16Array,Rg=typeof Int32Array===ps?Array:Int32Array,hv=typeof Float64Array===ps?Array:Float64Array,Eg={float:hv,int:Rg,ordinal:Array,number:Array,time:hv},pu;function bi(r){return r>65535?Sb:wb}function Ti(){return[1/0,-1/0]}function bb(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function cv(r,t,e,i,n){var a=Eg[e||"float"];if(n){var o=r[t],s=o&&o.length;if(s!==i){for(var u=new a(i),l=0;l<s;l++)u[l]=o[l];r[t]=u}}else r[t]=new a(i)}var Rl=(function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Y()}return r.prototype.initData=function(t,e,i){V(q(t.getItem)&&q(t.count),"Invalid data provider."),this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=t.getSource(),a=this.defaultDimValueGetter=pu[n.sourceFormat];this._dimValueGetter=i||a,this._rawExtent=[];var o=Dg(n);this._dimensions=j(e,function(s){return o&&V(s.property!=null),{type:s.type,property:s.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 Eg[e||"float"](this._rawCount),this._rawExtent[a]=Ti(),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]=Ti());for(var u=a[t],l=o;l<s;l++){var f=i[l]=e.parseAndCollect(i[l]);isNaN(f)||(u[0]=Math.min(f,u[0]),u[1]=Math.max(f,u[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){V(!this._indices,"appendData can only be called on raw data.");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(),u=s+Math.max(t.length,e||0),l=0;l<a;l++){var f=n[l];cv(i,l,f.type,u,!0)}for(var h=[],c=s;c<u;c++)for(var v=c-s,d=0;d<a;d++){var f=n[d],m=pu.arrayRows.call(this,t[v]||h,f.property,v,d);i[d][c]=m;var g=o[d];m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}return this._rawCount=this._count=u,{start:s,end:u}},r.prototype._initDataFromProvider=function(t,e,i){for(var n=this._provider,a=this._chunks,o=this._dimensions,s=o.length,u=this._rawExtent,l=j(o,function(y){return y.property}),f=0;f<s;f++){var h=o[f];u[f]||(u[f]=Ti()),cv(a,f,h.type,e,i)}if(n.fillStorage)n.fillStorage(t,e,a,u);else for(var c=[],v=t;v<e;v++){c=n.getItem(v,c);for(var d=0;d<s;d++){var m=a[d],g=this._dimValueGetter(c,l[d],v,d);m[v]=g;var p=u[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=[],u=t.length,l=0,f=t[0],h=i._chunks,c=0;c<n;c++){var v=void 0,d=i.getRawIndex(c);if(u===0)v=e(c);else if(u===1){var m=h[f][d];v=e(m,c)}else{for(var g=0;g<u;g++)s[g]=h[t[g]][d];s[g]=c,v=e.apply(null,s)}v&&(o[l++]=d)}return l<n&&(i._indices=o),i._count=l,i._extent=[],i._updateGetRawIdx(),i},r.prototype.selectRange=function(t){var e=this.clone(),i=e._count;if(!i)return this;var n=mt(t),a=n.length;if(!a)return this;var o=e.count(),s=bi(e._rawCount),u=new s(o),l=0,f=n[0],h=t[f][0],c=t[f][1],v=e._chunks,d=!1;if(!e._indices){var m=0;if(a===1){for(var g=v[n[0]],p=0;p<i;p++){var y=g[p];(y>=h&&y<=c||isNaN(y))&&(u[l++]=m),m++}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 y=g[p],w=_[p];(y>=h&&y<=c||isNaN(y))&&(w>=S&&w<=b||isNaN(w))&&(u[l++]=m),m++}d=!0}}if(!d)if(a===1)for(var p=0;p<o;p++){var T=e.getRawIndex(p),y=v[n[0]][T];(y>=h&&y<=c||isNaN(y))&&(u[l++]=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],y=v[D][T];(y<t[D][0]||y>t[D][1])&&(C=!1)}C&&(u[l++]=e.getRawIndex(p))}return l<o&&(e._indices=u),e._count=l,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(),u=[],l=t._rawExtent,f=0;f<e.length;f++)l[e[f]]=Ti();for(var h=0;h<s;h++){for(var c=t.getRawIndex(h),v=0;v<o;v++)u[v]=n[e[v]][c];u[o]=h;var d=i&&i.apply(null,u);if(d!=null){typeof d!="object"&&(a[0]=d,d=a);for(var f=0;f<d.length;f++){var m=e[f],g=d[f],p=l[m],y=n[m];y&&(y[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,u=Math.floor(1/e),l=this.getRawIndex(0),f,h,c,v=new(bi(this._rawCount))(Math.min((Math.ceil(o/u)+2)*2,o));v[s++]=l;for(var d=1;d<o-1;d+=u){for(var m=Math.min(d+u,o-1),g=Math.min(d+u*2,o),p=(g+m)/2,y=0,_=m;_<g;_++){var S=this.getRawIndex(_),b=a[S];isNaN(b)||(y+=b)}y/=g-m;var w=d,T=Math.min(d+u,o),C=d-1,x=a[l];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-_)*(y-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,l=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(),u=new(bi(this._rawCount))(Math.ceil(s/a)*2),l=0,f=0;f<s;f+=a){var h=f,c=o[this.getRawIndex(h)],v=f,d=o[this.getRawIndex(v)],m=a;f+a>s&&(m=s-f);for(var g=0;g<m;g++){var p=this.getRawIndex(f+g),y=o[p];y<c&&(c=y,h=f+g),y>d&&(d=y,v=f+g)}var _=this.getRawIndex(h),S=this.getRawIndex(v);h<v?(u[l++]=_,u[l++]=S):(u[l++]=S,u[l++]=_)}return i._count=l,i._indices=u,i._updateGetRawIdx(),i},r.prototype.downSample=function(t,e,i,n){for(var a=this.clone([t],!0),o=a._chunks,s=[],u=Math.floor(1/e),l=o[t],f=this.count(),h=a._rawExtent[t]=Ti(),c=new(bi(this._rawCount))(Math.ceil(f/u)),v=0,d=0;d<f;d+=u){u>f-d&&(u=f-d,s.length=u);for(var m=0;m<u;m++){var g=this.getRawIndex(d+m);s[m]=l[g]}var p=i(s),y=this.getRawIndex(Math.min(d+n(s,p)||0,f-1));l[y]=p,p<h[0]&&(h[0]=p),p>h[1]&&(h[1]=p),c[v++]=y}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 u=0,l=[];u<i;u++)l[u]=n[t[u]][s];l[u]=a,e.apply(null,l)}}},r.prototype.getDataExtent=function(t){var e=this._chunks[t],i=Ti();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],u=o[1],l=0;l<n;l++){var f=this.getRawIndex(l),h=e[f];h<s&&(s=h),h>u&&(u=h)}return o=[s,u],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&&tn(t,function(s,u){return s[u]=!0,s},{});if(a)for(var o=0;o<n.length;o++)i._chunks[o]=a[o]?bb(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=$(this._extent),t._rawExtent=$(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 lo(e[a],this._dimensions[a])}pu={arrayRows:t,objectRows:function(e,i,n,a){return lo(e[i],this._dimensions[a])},keyedColumns:t,original:function(e,i,n,a){var o=e&&(e.value==null?e:e.value);return lo(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(e,i,n,a){return e[a]}}})(),r})(),Tb=(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(hn(t)){var o=t,s=void 0,u=void 0,l=void 0;if(i){var f=e[0];f.prepareSource(),l=f.getSource(),s=l.data,u=l.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),u=Ht(s)?je:ie,a=[];var h=this._getSourceMetaRawOption()||{},c=l&&l.metaRawOption||{},v=F(h.seriesLayoutBy,c.seriesLayoutBy)||null,d=F(h.sourceHeader,c.sourceHeader),m=F(h.dimensions,c.dimensions),g=v!==c.seriesLayoutBy||!!d!=!!c.sourceHeader||m;n=g?[Pl(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:m},u)]:[]}else{var p=t;if(i){var y=this._applyTransform(e);n=y.sourceList,a=y.upstreamSignList}else{var _=p.get("source",!0);n=[Pl(_,this._getSourceMetaRawOption(),null)],a=[]}}V(n&&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(V(n!=null||i!=null),n!=null){var a="";t.length!==1&&(a="When using `fromTransformResult`, there should be only one upstream dataset",vv(a))}var o,s=[],u=[];return I(t,function(l){l.prepareSource();var f=l.getSource(n||0),h="";n!=null&&!f&&(h="Can not retrieve result by `fromTransformResult`: "+n,vv(h)),s.push(f),u.push(l._getVersionSign())}),i?o=yb(i,s,{datasetIndex:e.componentIndex}):n!=null&&(o=[tb(s[0])]),{sourceList:o,upstreamSignList:u}},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){V(hn(this._sourceHost),"Can only call getDataStore on series source manager.");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 u=this._getUpstreamSourceManagers()[0];hn(this._sourceHost)&&u?s=u._innerGetDataStore(t,e,i):(s=new Rl,s.initData(new Ig(e,t.length),t)),o[i]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(hn(t)){var e=Sg(t);return e?[e.getSourceManager()]:[]}else return j(D1(t),function(i){return i.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,e,i,n;if(hn(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 hn(r){return r.mainType==="series"}function vv(r){throw new Error(r)}var xb="line-height:1";function Og(r){var t=r.lineHeight;return t==null?xb:"line-height:"+Wt(t+"")+"px"}function kg(r,t){var e=r.color||G.color.tertiary,i=r.fontSize||12,n=r.fontWeight||"400",a=r.color||G.color.secondary,o=r.fontSize||14,s=r.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+Wt(i+"")+"px;color:"+Wt(e)+";font-weight:"+Wt(n+""),valueStyle:"font-size:"+Wt(o+"")+"px;color:"+Wt(a)+";font-weight:"+Wt(s+"")}:{nameStyle:{fontSize:i,fill:e,fontWeight:n},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var Cb=[0,10,20,30],Db=["",`
15
+ `,`
16
+
17
+ `,`
18
+
19
+
20
+ `];function ji(r,t){return t.type=r,t}function El(r){return r.type==="section"}function Bg(r){return El(r)?Ib:Lb}function Ng(r){if(El(r)){var t=0,e=r.blocks.length,i=e>1||e>0&&!r.noHeader;return I(r.blocks,function(n){var a=Ng(n);a>=t&&(t=a+ +(i&&(!a||El(n)&&!n.noHeader)))}),t}return 0}function Ib(r,t,e,i){var n=t.noHeader,a=Mb(Ng(t)),o=[],s=t.blocks||[];V(!s||B(s)),s=s||[];var u=r.orderMode;if(t.sortBlocks&&u){s=s.slice();var l={valueAsc:"asc",valueDesc:"desc"};if(me(l,u)){var f=new fb(l[u],null);s.sort(function(m,g){return f.evaluate(m.sortParam,g.sortParam)})}else u==="seriesDesc"&&s.reverse()}I(s,function(m,g){var p=t.valueFormatter,y=Bg(m)(p?R(R({},r),{valueFormatter:p}):r,m,g>0?a.html:0,i);y!=null&&o.push(y)});var h=r.renderMode==="richText"?o.join(a.richText):Ol(i,o.join(""),n?e:a.html);if(n)return h;var c=Ml(t.header,"ordinal",r.useUTC),v=kg(i,r.renderMode).nameStyle,d=Og(i);return r.renderMode==="richText"?zg(r,c,v)+a.richText+h:Ol(i,'<div style="'+v+";"+d+';">'+Wt(c)+"</div>"+h,e)}function Lb(r,t,e,i){var n=r.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,u=t.name,l=r.useUTC,f=t.valueFormatter||r.valueFormatter||function(S){return S=B(S)?S:[S],j(S,function(b,w){return Ml(b,B(v)?v[w]:v,l)})};if(!(a&&o)){var h=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||G.color.secondary,n),c=a?"":Ml(u,"ordinal",l),v=t.valueType,d=o?[]:f(t.value,t.dataIndex),m=!s||!a,g=!s&&a,p=kg(i,n),y=p.nameStyle,_=p.valueStyle;return n==="richText"?(s?"":h)+(a?"":zg(r,c,y))+(o?"":Rb(r,d,m,g,_)):Ol(i,(s?"":h)+(a?"":Ab(c,!s,y))+(o?"":Pb(d,m,g,_)),e)}}function dv(r,t,e,i,n,a){if(r){var o=Bg(r),s={useUTC:n,renderMode:e,orderMode:i,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,a)}}function Mb(r){return{html:Cb[r],richText:Db[r]}}function Ol(r,t,e){var i='<div style="clear:both"></div>',n="margin: "+e+"px 0 0",a=Og(r);return'<div style="'+n+";"+a+';">'+t+i+"</div>"}function Ab(r,t,e){var i=t?"margin-left:2px":"";return'<span style="'+e+";"+i+'">'+Wt(r)+"</span>"}function Pb(r,t,e,i){var n=e?"10px":"20px",a=t?"float:right;margin-left:"+n:"";return r=B(r)?r:[r],'<span style="'+a+";"+i+'">'+j(r,function(o){return Wt(o)}).join("&nbsp;&nbsp;")+"</span>"}function zg(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function Rb(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(B(t)?t.join(" "):t,a)}function Eb(r,t){var e=r.getData().getItemVisual(t,"style"),i=e[r.visualDrawType];return ea(i)}function Fg(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var gu=(function(){function r(){this.richTextStyles={},this._nextStyleNameId=bp()}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=f1({color:e,type:t,renderMode:i,markerId:n});return z(a)?a:(V(n),this.richTextStyles[n]=a.style,a.content)},r.prototype.wrapRichTextStyle=function(t,e){var i={};B(e)?I(e,function(a){return R(i,a)}):R(i,e);var n=this._generateStyleName();return this.richTextStyles[n]=i,"{"+n+"|"+t+"}"},r})();function Hg(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),u=B(s),l=Eb(t,e),f,h,c,v;if(o>1||u&&!o){var d=Ob(s,t,e,a,l);f=d.inlineValues,h=d.inlineValueTypes,c=d.blocks,v=d.inlineValues[0]}else if(o){var m=n.getDimensionInfo(a[0]);v=f=Qi(n,e,a[0]),h=m.type}else v=f=u?s[0]:s;var g=vf(t),p=g&&t.name||"",y=n.getName(e),_=i?p:y;return ji("section",{header:p,noHeader:i||!g,sortParam:v,blocks:[ji("nameValue",{markerType:"item",markerColor:l,name:_,noName:!Re(_),value:f,valueType:h,dataIndex:e})].concat(c||[])})}function Ob(r,t,e,i,n){var a=t.getData(),o=tn(r,function(h,c,v){var d=a.getDimensionInfo(v);return h=h||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],u=[],l=[];i.length?I(i,function(h){f(Qi(a,e,h),h)}):I(r,f);function f(h,c){var v=a.getDimensionInfo(c);!v||v.otherDims.tooltip===!1||(o?l.push(ji("nameValue",{markerType:"subItem",markerColor:n,name:v.displayName,value:h,valueType:v.type})):(s.push(h),u.push(v.type)))}return{inlineValues:s,inlineValueTypes:u,blocks:l}}var ar=ct();function za(r,t){return r.getName(t)||r.getId(t)}var kb="__universalTransitionEnabled",yr=(function(r){N(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=Wn({count:Nb,reset:zb}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n);var a=ar(this).sourceManager=new Tb(this);a.prepareSource();var o=this.getInitialData(e,n);gv(o,this),this.dataTask.context.data=o,V(o,"getInitialData returned invalid data."),ar(this).dataBeforeProcessed=o,pv(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,i){var n=Po(this),a=n?Gf(e):{},o=this.subType;it.hasClass(o)&&(o+="Series"),dt(e,i.getTheme().get(this.subType)),dt(e,this.getDefaultOption()),pl(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&ra(e,a,n)},t.prototype.mergeOption=function(e,i){e=dt(this.option,e,!0),this.fillDataTextStyle(e.data);var n=Po(this);n&&ra(this.option,e,n);var a=ar(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(e,i);gv(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,ar(this).dataBeforeProcessed=o,pv(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!Ht(e))for(var i=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&pl(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=kl(this);if(i){var n=i.context.data;return e==null||!n.getLinkedData?n:n.getLinkedData(e)}else return ar(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=kl(this);if(i){var n=i.context;n.outputData=e,i!==this.dataTask&&(n.data=e)}ar(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return Y(e)},t.prototype.getSourceManager=function(){return ar(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return ar(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,u=s&&s.getAxis(e);if(!s||!u)return[];var l=u.dataToCoord(n);a==null&&(a=1/0);var f=[],h=1/0,c=-1,v=0;return o.each(i,function(d,m){var g=u.dataToCoord(d),p=l-g,y=Math.abs(p);y<=a&&((y<h||y===h&&p>=0&&c<0)&&(h=y,c=p,v=0),p===c&&(f[v++]=m))}),f.length=v,f},t.prototype.formatTooltip=function(e,i,n){return Hg({series:this,dataIndex:e,multipleSeries:i})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(U.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=Uf.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 u=e[s],l=za(o,u);n[l]=!1,this._selectedDataIndicesMap[l]=-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=mt(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[za(a,e)])&&!a.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[kb])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,u=i.length;if(!(!s||!u)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){H(o.selectedMap)||(o.selectedMap={});for(var l=o.selectedMap,f=0;f<u;f++){var h=i[f],c=za(e,h);l[c]=!0,this._selectedDataIndicesMap[c]=e.getRawIndex(h)}}else if(s==="single"||s===!0){var v=i[u-1],c=za(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 it.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})(it);_e(yr,ub);_e(yr,Uf);Lp(yr,it);function pv(r){var t=r.name;vf(r)||(r.name=Bb(r)||t)}function Bb(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 Nb(r){return r.model.getRawData().count()}function zb(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),Fb}function Fb(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function gv(r,t){I(Py(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,St(Hb,t))})}function Hb(r,t){var e=kl(r);return e&&e.setOutputEnd((t||this).count()),t}function kl(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 Fe=(function(){function r(){this.group=new bt,this.uid=hs("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})();pf(Fe);gf(Fe);function Vb(){var r=ct();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 Vg=ct(),Gb=Vb(),dr=(function(){function r(){this.group=new bt,this.uid=hs("viewChart"),this.renderTask=Wn({plan:Ub,reset:Wb}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,i,n){throw new Error("render method must been implemented")},r.prototype.highlight=function(t,e,i,n){var a=t.getData(n&&n.dataType);if(!a){ft("Unknown dataType "+n.dataType);return}yv(a,n,"emphasis")},r.prototype.downplay=function(t,e,i,n){var a=t.getData(n&&n.dataType);if(!a){ft("Unknown dataType "+n.dataType);return}yv(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){us(this.group,t)},r.markUpdateMethod=function(t,e){Vg(t).updateMethod=e},r.protoInitialize=(function(){var t=r.prototype;t.type="chart"})(),r})();function mv(r,t,e){r&&qi(r)&&(t==="emphasis"?Qn:jn)(r,e)}function yv(r,t,e){var i=ha(r,t),n=t&&t.highlightKey!=null?kS(t.highlightKey):null;i!=null?I(Ft(i),function(a){mv(r.getItemGraphicEl(a),e,n)}):r.eachItemGraphicEl(function(a){mv(a,e,n)})}pf(dr,["dispose"]);gf(dr);function Ub(r){return Gb(r.model)}function Wb(r){var t=r.model,e=r.ecModel,i=r.api,n=r.payload,a=t.pipelineContext.progressiveRender,o=r.view,s=n&&Vg(n).updateMethod,u=a?"incrementalPrepareRender":s&&o[s]?s:"render";return u!=="render"&&o[u](t,e,i,n),Yb[u]}var Yb={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)}}},Oo="\0__throttleOriginMethod",_v="\0__throttleRate",Sv="\0__throttleType";function Zf(r,t,e){var i,n=0,a=0,o=null,s,u,l,f;t=t||0;function h(){a=new Date().getTime(),o=null,r.apply(u,l||[])}var c=function(){for(var v=[],d=0;d<arguments.length;d++)v[d]=arguments[d];i=new Date().getTime(),u=this,l=v;var m=f||t,g=f||e;f=null,s=i-(g?n:a)-m,clearTimeout(o),g?o=setTimeout(h,m):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 Gg(r,t,e,i){var n=r[t];if(n){var a=n[Oo]||n,o=n[Sv],s=n[_v];if(s!==e||o!==i){if(e==null||!i)return r[t]=a;n=r[t]=Zf(a,e,i==="debounce"),n[Oo]=a,n[Sv]=i,n[_v]=e}return n}}function Bl(r,t){var e=r[t];e&&e[Oo]&&(e.clear&&e.clear(),r[t]=e[Oo])}var wv=ct(),bv={itemStyle:Kn(fg,!0),lineStyle:Kn(lg,!0)},Xb={lineStyle:"stroke",itemStyle:"fill"};function Ug(r,t){var e=r.visualStyleMapper||bv[t];return e||(console.warn("Unknown style type '"+t+"'."),bv.itemStyle)}function Wg(r,t){var e=r.visualDrawType||Xb[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var $b={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),i=r.visualStyleAccessPath||"itemStyle",n=r.getModel(i),a=Ug(r,i),o=a(n),s=n.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var u=Wg(r,i),l=o[u],f=q(l)?l:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[u]||f||h){var c=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[u]||(o[u]=c,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||q(o.fill)?c:o.fill,o.stroke=o.stroke==="auto"||q(o.stroke)?c:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",u),!t.isSeriesFiltered(r)&&f)return e.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var m=r.getDataParams(d),g=R({},o);g[u]=f(m),v.setItemVisual(d,"style",g)}}}},cn=new vt,Zb={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),i=r.visualStyleAccessPath||"itemStyle",n=Ug(r,i),a=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var u=o.getRawDataItem(s);if(u&&u[i]){cn.option=u[i];var l=n(cn),f=o.ensureUniqueItemVisual(s,"style");R(f,l),cn.option.decal&&(o.setItemVisual(s,"decal",cn.option.decal),cn.option.decal.dirty=!0),a in l&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},qb={performRawSeries:!0,overallReset:function(r){var t=Y();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)),wv(e).scope=a}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var i=e.getRawData(),n={},a=e.getData(),o=wv(e).scope,s=e.visualStyleAccessPath||"itemStyle",u=Wg(e,s);a.each(function(l){var f=a.getRawIndex(l);n[f]=l}),i.each(function(l){var f=n[l],h=a.getItemVisual(f,"colorFromPalette");if(h){var c=a.ensureUniqueItemVisual(f,"style"),v=i.getName(l)||l+"",d=i.count();c[u]=e.getColorFromPalette(v,o,d)}})}})}},Fa=Math.PI;function Kb(r,t){t=t||{},pt(t,{text:"loading",textColor:G.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:G.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var e=new bt,i=new At({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(i);var n=new Vt({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 At({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 os({shape:{startAngle:-Fa/2,endAngle:-Fa/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:Fa*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Fa*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=n.getBoundingRect().width,u=t.showSpinner?t.spinnerRadius:0,l=(r.getWidth()-u*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:u),f=r.getHeight()/2;t.showSpinner&&o.setShape({cx:l,cy:f}),a.setShape({x:l-u,y:f-u,width:u*2,height:u*2}),i.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var Yg=(function(){function r(t,e,i,n){this._stageTaskMap=Y(),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,u=s!=null?Math.ceil(s/o):null;return{step:o,modBy:u,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"),u=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=i.context={progressiveRender:o,modDataCount:u,large:s}},r.prototype.restorePipelines=function(t){var e=this,i=e._pipelineMap=Y();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="";o='"reset" and "overallReset" must not be both specified.',V(!(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(u,l){if(!(n.visualType&&n.visualType!==u.visualType)){var f=o._stageTaskMap.get(u.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 m=o.getPerformArgs(c,n.block);d.each(function(g){g.perform(m)}),c.perform(m)&&(a=!0)}else h&&h.each(function(g,p){s(n,g)&&g.dirty();var y=o.getPerformArgs(g,n.block);y.skip=!u.performRawSeries&&e.isSeriesFiltered(g.context.model),o.updatePayload(g,i),g.perform(y)&&(a=!0)})}});function s(u,l){return u.setDirty&&(!u.dirtyMap||u.dirtyMap.get(l.__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=Y(),u=t.seriesType,l=t.getTargetSeries;t.createOnAllSeries?i.eachRawSeries(f):u?i.eachRawSeriesByType(u,f):l&&l(i,n).each(f);function f(h){var c=h.uid,v=s.set(c,o&&o.get(c)||Wn({plan:eT,reset:rT,count:nT}));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||Wn({reset:Qb});o.context={ecModel:i,api:n,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,u=o.agentStubMap=Y(),l=t.seriesType,f=t.getTargetSeries,h=!0,c=!1,v="";v='"createOnAllSeries" is not supported for "overallReset", because it will block all streams.',V(!t.createOnAllSeries,v),l?i.eachRawSeriesByType(l,d):f?f(i,n).each(d):(h=!1,I(i.getSeries(),d));function d(m){var g=m.uid,p=u.set(g,s&&s.get(g)||(c=!0,Wn({reset:jb,onDirty:tT})));p.context={model:m,overallProgress:h},p.agent=o,p.__block=h,a._pipe(m,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 q(t)&&(t={overallReset:t,seriesType:aT(t)}),t.uid=hs("stageHandler"),e&&(t.visualType=e),t},r})();function Qb(r){r.overallReset(r.ecModel,r.api,r.payload)}function jb(r){return r.overallProgress&&Jb}function Jb(){this.agent.dirty(),this.getDownstream().dirty()}function tT(){this.agent&&this.agent.dirty()}function eT(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function rT(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=Ft(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?j(t,function(e,i){return Xg(i)}):iT}var iT=Xg(0);function Xg(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 nT(r){return r.data.count()}function aT(r){ko=null;try{r(na,$g)}catch{}return ko}var na={},$g={},ko;Zg(na,Wf);Zg($g,bg);na.eachSeriesByType=na.eachRawSeriesByType=function(r){ko=r};na.eachComponent=function(r){r.mainType==="series"&&r.subType&&(ko=r.subType)};function Zg(r,t){for(var e in t.prototype)r[e]=Mt}var O=G.darkColor,oT=O.background,vn=function(){return{axisLine:{lineStyle:{color:O.axisLine}},splitLine:{lineStyle:{color:O.axisSplitLine}},splitArea:{areaStyle:{color:[O.backgroundTint,O.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:O.axisMinorSplitLine}},axisLabel:{color:O.axisLabel},axisName:{}}},Tv={label:{color:O.secondary},itemStyle:{borderColor:O.borderTint},dividerLineStyle:{color:O.border}},qg={darkMode:!0,color:O.theme,backgroundColor:oT,axisPointer:{lineStyle:{color:O.border},crossStyle:{color:O.borderShade},label:{color:O.tertiary}},legend:{textStyle:{color:O.secondary},pageTextStyle:{color:O.tertiary}},textStyle:{color:O.secondary},title:{textStyle:{color:O.primary},subtextStyle:{color:O.quaternary}},toolbox:{iconStyle:{borderColor:O.accent50}},tooltip:{backgroundColor:O.neutral20,defaultBorderColor:O.border,textStyle:{color:O.tertiary}},dataZoom:{borderColor:O.accent10,textStyle:{color:O.tertiary},brushStyle:{color:O.backgroundTint},handleStyle:{color:O.neutral00,borderColor:O.accent20},moveHandleStyle:{color:O.accent40},emphasis:{handleStyle:{borderColor:O.accent50}},dataBackground:{lineStyle:{color:O.accent30},areaStyle:{color:O.accent20}},selectedDataBackground:{lineStyle:{color:O.accent50},areaStyle:{color:O.accent30}}},visualMap:{textStyle:{color:O.secondary},handleStyle:{borderColor:O.neutral30}},timeline:{lineStyle:{color:O.accent10},label:{color:O.tertiary},controlStyle:{color:O.accent30,borderColor:O.accent30}},calendar:{itemStyle:{color:O.neutral00,borderColor:O.neutral20},dayLabel:{color:O.tertiary},monthLabel:{color:O.secondary},yearLabel:{color:O.secondary}},matrix:{x:Tv,y:Tv,backgroundColor:{borderColor:O.axisLine},body:{itemStyle:{borderColor:O.borderTint}}},timeAxis:vn(),logAxis:vn(),valueAxis:vn(),categoryAxis:vn(),line:{symbol:"circle"},graph:{color:O.theme},gauge:{title:{color:O.secondary},axisLine:{lineStyle:{color:[[1,O.neutral05]]}},axisLabel:{color:O.axisLabel},detail:{color:O.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:O.background}},radar:(function(){var r=vn();return r.axisName={color:O.axisLabel},r.axisLine.lineStyle.color=O.neutral20,r})(),treemap:{breadcrumb:{itemStyle:{color:O.neutral20,textStyle:{color:O.secondary}},emphasis:{itemStyle:{color:O.neutral30}}}},sunburst:{itemStyle:{borderColor:O.background}},map:{itemStyle:{borderColor:O.border,areaColor:O.neutral10},label:{color:O.tertiary},emphasis:{label:{color:O.primary},itemStyle:{areaColor:O.highlight}},select:{label:{color:O.primary},itemStyle:{areaColor:O.highlight}}},geo:{itemStyle:{borderColor:O.border,areaColor:O.neutral10},emphasis:{label:{color:O.primary},itemStyle:{areaColor:O.highlight}},select:{label:{color:O.primary},itemStyle:{color:O.highlight}}}};qg.categoryAxis.splitLine.show=!1;var sT=(function(){function r(){}return r.prototype.normalizeQuery=function(t){var e={},i={},n={};if(z(t)){var a=Ee(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(u,l){for(var f=!1,h=0;h<o.length;h++){var c=o[h],v=l.lastIndexOf(c);if(v>0&&v===l.length-c.length){var d=l.slice(0,v);d!=="data"&&(e.mainType=d,e[c.toLowerCase()]=u,f=!0)}}s.hasOwnProperty(l)&&(i[l]=u,f=!0),f||(n[l]=u)})}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 u=e.cptQuery,l=e.dataQuery;return f(u,o,"mainType")&&f(u,o,"subType")&&f(u,o,"index","componentIndex")&&f(u,o,"name")&&f(u,o,"id")&&f(l,a,"name")&&f(l,a,"dataIndex")&&f(l,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})(),Nl=["symbol","symbolSize","symbolRotate","symbolOffset"],xv=Nl.concat(["symbolKeepAspect"]),uT={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<Nl.length;o++){var s=Nl[o],u=r.get(s);q(u)?(a=!0,n[s]=u):i[s]=u}if(i.symbol=i.symbol||r.defaultSymbol,e.setVisual(R({legendIcon:r.legendIcon||i.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},i)),t.isSeriesFiltered(r))return;var l=mt(n);function f(h,c){for(var v=r.getRawValue(c),d=r.getDataParams(c),m=0;m<l.length;m++){var g=l[m];h.setItemVisual(c,g,n[g](v,d))}}return{dataEach:a?f:null}}},lT={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<xv.length;s++){var u=xv[s],l=o.getShallow(u,!0);l!=null&&n.setItemVisual(a,u,l)}}return{dataEach:e.hasItemOption?i:null}}};function fT(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);default:console.warn("Unknown visual type "+e)}}function hT(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);default:console.warn("Unknown visual type "+t)}}function xi(r,t,e,i,n){var a=r+t;e.isSilent(a)||(tr("event "+a+" is deprecated."),i.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,u=o.option.selectedMap,l=n.selected,f=0;f<l.length;f++)if(l[f].seriesIndex===s){var h=o.getData(),c=ha(h,n.fromActionPayload);e.trigger(a,{type:a,seriesId:o.id,name:B(c)?h.getName(c[0]):h.getName(c),selected:z(u)?u:R({},u)})}}))}function cT(r,t,e){r.on("selectchanged",function(i){var n=e.getModel();i.isFromClick?(xi("map","selectchanged",t,n,i),xi("pie","selectchanged",t,n,i)):i.fromAction==="select"?(xi("map","selected",t,n,i),xi("pie","selected",t,n,i)):i.fromAction==="unselect"&&(xi("map","unselected",t,n,i),xi("pie","unselected",t,n,i))})}function Pn(r,t,e){for(var i;r&&!(t(r)&&(i=r,e));)r=r.__hostTarget||r.parent;return i}var vT=Math.round(Math.random()*9),dT=typeof Object.defineProperty=="function",pT=(function(){function r(){this._id="__ec_inner_"+vT++}return r.prototype.get=function(t){return this._guard(t)[this._id]},r.prototype.set=function(t,e){var i=this._guard(t);return dT?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})(),gT=ht.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()}}),mT=ht.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()}}),yT=ht.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),u=i-a+o+s,l=Math.asin(s/o),f=Math.cos(l)*o,h=Math.sin(l),c=Math.cos(l),v=o*.6,d=o*.7;r.moveTo(e-f,u+s),r.arc(e,u,o,Math.PI-l,Math.PI*2+l),r.bezierCurveTo(e+f-h*v,u+s+c*v,e,i-d,e,i),r.bezierCurveTo(e,i-d,e-f+h*v,u+s+c*v,e-f,u+s),r.closePath()}}),_T=ht.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()}}),ST={line:li,rect:At,roundRect:At,square:At,circle:ns,diamond:mT,pin:yT,arrow:_T,triangle:gT},wT={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}},zl={};I(ST,function(r,t){zl[t]=new r});var bT=ht.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,t,e){var i=pp(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=zl[i];n||(i="rect",n=zl[i]),wT[i](t.x,t.y,t.width,t.height,n.shape),n.buildPath(r,n.shape,e)}}});function TT(r,t){if(this.type!=="image"){var e=this.style;this.__isEmptyBrush?(e.stroke=r,e.fill=t||G.color.neutral00,e.lineWidth=2):this.shape.symbolType==="line"?e.stroke=r:e.fill=r,this.markRedraw()}}function da(r,t,e,i,n,a,o){var s=r.indexOf("empty")===0;s&&(r=r.substr(5,1).toLowerCase()+r.substr(6));var u;return r.indexOf("image://")===0?u=ig(r.slice(8),new X(t,e,i,n),o?"center":"cover"):r.indexOf("path://")===0?u=Pf(r.slice(7),{},new X(t,e,i,n),o?"center":"cover"):u=new bT({shape:{symbolType:r,x:t,y:e,width:i,height:n}}),u.__isEmptyBrush=s,u.setColor=TT,a&&u.setColor(a),u}function qf(r){return B(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function gs(r,t){if(r!=null)return B(r)||(r=[r,r]),[Yt(r[0],t[0])||0,Yt(F(r[1],r[0]),t[1])||0]}function Jr(r){return isFinite(r)}function xT(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=Jr(i)?i:0,n=Jr(n)?n:1,a=Jr(a)?a:0,o=Jr(o)?o:0;var s=r.createLinearGradient(i,a,n,o);return s}function CT(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,u=t.r==null?.5:t.r;t.global||(o=o*i+e.x,s=s*n+e.y,u=u*a),o=Jr(o)?o:.5,s=Jr(s)?s:.5,u=u>=0&&Jr(u)?u:.5;var l=r.createRadialGradient(o,s,0,o,s,u);return l}function Fl(r,t,e){for(var i=t.type==="radial"?CT(r,t,e):xT(r,t,e),n=t.colorStops,a=0;a<n.length;a++)i.addColorStop(n[a].offset,n[a].color);return i}function DT(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 Ha(r){return parseInt(r,10)}function Va(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]||Ha(s[i])||Ha(r.style[i]))-(Ha(s[a])||0)-(Ha(s[o])||0)|0}function IT(r,t){return!r||r==="solid"||!(t>0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:lt(r)?[r]:B(r)?r:null}function Kg(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&IT(t.lineDash,t.lineWidth),i=t.lineDashOffset;if(e){var n=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;n&&n!==1&&(e=j(e,function(a){return a/n}),i/=n)}return[e,i]}var LT=new Zi(!0);function Bo(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function Cv(r){return typeof r=="string"&&r!=="none"}function No(r){var t=r.fill;return t!=null&&t!=="none"}function Dv(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 Iv(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 Hl(r,t,e){var i=Mp(t.image,t.__image,e);if(es(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)*Ry),a.scaleSelf(t.scaleX||1,t.scaleY||1),n.setTransform(a)}return n}}function MT(r,t,e,i){var n,a=Bo(e),o=No(e),s=e.strokePercent,u=s<1,l=!t.path;(!t.silent||u)&&l&&t.createPathProxy();var f=t.path||LT,h=t.__dirty;if(!i){var c=e.fill,v=e.stroke,d=o&&!!c.colorStops,m=a&&!!v.colorStops,g=o&&!!c.image,p=a&&!!v.image,y=void 0,_=void 0,S=void 0,b=void 0,w=void 0;(d||m)&&(w=t.getBoundingRect()),d&&(y=h?Fl(r,c,w):t.__canvasFillGradient,t.__canvasFillGradient=y),m&&(_=h?Fl(r,v,w):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(S=h||!t.__canvasFillPattern?Hl(r,c,t):t.__canvasFillPattern,t.__canvasFillPattern=S),p&&(b=h||!t.__canvasStrokePattern?Hl(r,v,t):t.__canvasStrokePattern,t.__canvasStrokePattern=b),d?r.fillStyle=y:g&&(S?r.fillStyle=S:o=!1),m?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=Kg(t),C=n[0],x=n[1]);var D=!0;(l||h&ki)&&(f.setDPR(r.dpr),u?f.setContext(null):(f.setContext(r),D=!1),f.reset(),t.buildPath(f,t.shape,i),f.toStatic(),t.pathUpdated()),D&&f.rebuildPath(r,u?s:1),C&&(r.setLineDash(C),r.lineDashOffset=x),i||(e.strokeFirst?(a&&Iv(r,e),o&&Dv(r,e)):(o&&Dv(r,e),a&&Iv(r,e))),C&&r.setLineDash([])}function AT(r,t,e){var i=t.__image=Mp(e.image,t.__image,t,t.onload);if(!(!i||!es(i))){var n=e.x||0,a=e.y||0,o=t.getWidth(),s=t.getHeight(),u=i.width/i.height;if(o==null&&s!=null?o=s*u:s==null&&o!=null?s=o/u:o==null&&s==null&&(o=i.width,s=i.height),e.sWidth&&e.sHeight){var l=e.sx||0,f=e.sy||0;r.drawImage(i,l,f,e.sWidth,e.sHeight,n,a,o,s)}else if(e.sx&&e.sy){var l=e.sx,f=e.sy,h=o-l,c=s-f;r.drawImage(i,l,f,h,c,n,a,o,s)}else r.drawImage(i,n,a,o,s)}}function PT(r,t,e){var i,n=e.text;if(n!=null&&(n+=""),n){r.font=e.font||pr,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var a=void 0,o=void 0;r.setLineDash&&e.lineDash&&(i=Kg(t),a=i[0],o=i[1]),a&&(r.setLineDash(a),r.lineDashOffset=o),e.strokeFirst?(Bo(e)&&r.strokeText(n,e.x,e.y),No(e)&&r.fillText(n,e.x,e.y)):(No(e)&&r.fillText(n,e.x,e.y),Bo(e)&&r.strokeText(n,e.x,e.y)),a&&r.setLineDash([])}}var Lv=["shadowBlur","shadowOffsetX","shadowOffsetY"],Mv=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Qg(r,t,e,i,n){var a=!1;if(!i&&(e=e||{},t===e))return!1;if(i||t.opacity!==e.opacity){qt(r,n),a=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?ai.opacity:o}(i||t.blend!==e.blend)&&(a||(qt(r,n),a=!0),r.globalCompositeOperation=t.blend||ai.blend);for(var s=0;s<Lv.length;s++){var u=Lv[s];(i||t[u]!==e[u])&&(a||(qt(r,n),a=!0),r[u]=r.dpr*(t[u]||0))}return(i||t.shadowColor!==e.shadowColor)&&(a||(qt(r,n),a=!0),r.shadowColor=t.shadowColor||ai.shadowColor),a}function Av(r,t,e,i,n){var a=aa(t,n.inHover),o=i?null:e&&aa(e,n.inHover)||{};if(a===o)return!1;var s=Qg(r,a,o,i,n);if((i||a.fill!==o.fill)&&(s||(qt(r,n),s=!0),Cv(a.fill)&&(r.fillStyle=a.fill)),(i||a.stroke!==o.stroke)&&(s||(qt(r,n),s=!0),Cv(a.stroke)&&(r.strokeStyle=a.stroke)),(i||a.opacity!==o.opacity)&&(s||(qt(r,n),s=!0),r.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var u=a.lineWidth,l=u/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);r.lineWidth!==l&&(s||(qt(r,n),s=!0),r.lineWidth=l)}for(var f=0;f<Mv.length;f++){var h=Mv[f],c=h[0];(i||a[c]!==o[c])&&(s||(qt(r,n),s=!0),r[c]=a[c]||h[1])}return s}function RT(r,t,e,i,n){return Qg(r,aa(t,n.inHover),e&&aa(e,n.inHover),i,n)}function jg(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 ET(r,t,e){for(var i=!1,n=0;n<r.length;n++){var a=r[n];i=i||a.isZeroArea(),jg(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}e.allClipped=i}function OT(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 Pv=1,Rv=2,Ev=3,Ov=4;function kT(r){var t=No(r),e=Bo(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 qt(r,t){t.batchFill&&r.fill(),t.batchStroke&&r.stroke(),t.batchFill="",t.batchStroke=""}function aa(r,t){return t&&r.__hoverStyle||r.style}function Jg(r,t){ti(r,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function ti(r,t,e,i){var n=t.transform;if(!t.shouldBePainted(e.viewWidth,e.viewHeight,!1,!1)){t.__dirty&=~ee,t.__isRendered=!1;return}var a=t.__clipPaths,o=e.prevElClipPaths,s=!1,u=!1;if((!o||DT(a,o))&&(o&&o.length&&(qt(r,e),r.restore(),u=s=!0,e.prevElClipPaths=null,e.allClipped=!1,e.prevEl=null),a&&a.length&&(qt(r,e),r.save(),ET(a,r,e),s=!0),e.prevElClipPaths=a),e.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var l=e.prevEl;l||(u=s=!0);var f=t instanceof ht&&t.autoBatch&&kT(t.style);s||OT(n,l.transform)?(qt(r,e),jg(r,t)):f||qt(r,e);var h=aa(t,e.inHover);t instanceof ht?(e.lastDrawType!==Pv&&(u=!0,e.lastDrawType=Pv),Av(r,t,l,u,e),(!f||!e.batchFill&&!e.batchStroke)&&r.beginPath(),MT(r,t,h,f),f&&(e.batchFill=h.fill||"",e.batchStroke=h.stroke||"")):t instanceof Do?(e.lastDrawType!==Ev&&(u=!0,e.lastDrawType=Ev),Av(r,t,l,u,e),PT(r,t,h)):t instanceof Sr?(e.lastDrawType!==Rv&&(u=!0,e.lastDrawType=Rv),RT(r,t,l,u,e),AT(r,t,h)):t.getTemporalDisplayables&&(e.lastDrawType!==Ov&&(u=!0,e.lastDrawType=Ov),BT(r,t,e)),f&&i&&qt(r,e),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),e.prevEl=t,t.__dirty=0,t.__isRendered=!0}function BT(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 u=i[o];u.beforeBrush&&u.beforeBrush(),u.innerBeforeBrush(),ti(r,u,a,o===s-1),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),a.prevEl=u}for(var l=0,f=n.length;l<f;l++){var u=n[l];u.beforeBrush&&u.beforeBrush(),u.innerBeforeBrush(),ti(r,u,a,l===f-1),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),a.prevEl=u}t.clearTemporalDisplayables(),t.notClear=!0,r.restore()}var mu=new pT,kv=new Yi(100),Bv=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Vl(r,t){if(r==="none")return null;var e=t.getDevicePixelRatio(),i=t.getZr(),n=i.painter.type==="svg";r.dirty&&mu.delete(r);var a=mu.get(r);if(a)return a;var o=pt(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 u(s),s.rotation=o.rotation,s.scaleX=s.scaleY=n?1:1/e,mu.set(r,s),r.dirty=!1,s;function u(l){for(var f=[e],h=!0,c=0;c<Bv.length;++c){var v=o[Bv[c]];if(v!=null&&!B(v)&&!z(v)&&!lt(v)&&typeof v!="boolean"){h=!1;break}f.push(v)}var d;if(h){d=f.join(",")+(n?"-svg":"");var m=kv.get(d);m&&(n?l.svgElement=m:l.image=m)}var g=em(o.dashArrayX),p=NT(o.dashArrayY),y=tm(o.symbol),_=zT(g),S=rm(p),b=!n&&Je.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&&kv.put(d,b||w),l.image=b,l.svgElement=w,l.svgWidth=T.width,l.svgHeight=T.height;function x(){for(var L=1,A=0,M=_.length;A<M;++A)L=qh(L,_[A]);for(var P=1,A=0,M=y.length;A<M;++A)P=qh(P,y[A].length);L*=P;var E=S*_.length*y.length;{var k=function(Z){console.warn("Calculated decal size is greater than "+Z+" due to decal option settings so "+Z+" is used for the decal size. Please consider changing the decal option to make a smaller decal or set "+Z+" to be larger to avoid incontinuity.")};L>o.maxTileWidth&&k("maxTileWidth"),E>o.maxTileHeight&&k("maxTileHeight")}return{width:Math.max(1,Math.min(L,o.maxTileWidth)),height:Math.max(1,Math.min(E,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,E=0,k=0;M<T.height;){if(P%2===0){for(var Z=E/2%y.length,J=0,tt=0,K=0;J<T.width*2;){for(var yt=0,A=0;A<g[k].length;++A)yt+=g[k][A];if(yt<=0)break;if(tt%2===0){var rt=(1-o.symbolSize)*.5,Tt=J+g[k][tt]*rt,It=M+p[P]*rt,Te=g[k][tt]*o.symbolSize,xe=p[P]*o.symbolSize,Ce=K/2%y[Z].length;Ve(Tt,It,Te,xe,y[Z][Ce])}J+=g[k][tt],++K,++tt,tt===g[k].length&&(tt=0)}++k,k===g.length&&(k=0)}M+=p[P],++E,++P,P===p.length&&(P=0)}function Ve(Qt,Lt,W,Q,br){var Ot=n?1:e,hh=da(br,Qt*Ot,Lt*Ot,W*Ot,Q*Ot,o.color,o.symbolKeepAspect);if(n){var ch=i.painter.renderOneToVNode(hh);ch&&w.children.push(ch)}else Jg(C,hh)}}}}function tm(r){if(!r||r.length===0)return[["rect"]];if(z(r))return[[r]];for(var t=!0,e=0;e<r.length;++e)if(!z(r[e])){t=!1;break}if(t)return tm([r]);for(var i=[],e=0;e<r.length;++e)z(r[e])?i.push([r[e]]):i.push(r[e]);return i}function em(r){if(!r||r.length===0)return[[0,0]];if(lt(r)){var t=Math.ceil(r);return[[t,t]]}for(var e=!0,i=0;i<r.length;++i)if(!lt(r[i])){e=!1;break}if(e)return em([r]);for(var n=[],i=0;i<r.length;++i)if(lt(r[i])){var t=Math.ceil(r[i]);n.push([t,t])}else{var t=j(r[i],function(s){return Math.ceil(s)});t.length%2===1?n.push(t.concat(t)):n.push(t)}return n}function NT(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(lt(r)){var t=Math.ceil(r);return[t,t]}var e=j(r,function(i){return Math.ceil(i)});return r.length%2?e.concat(e):e}function zT(r){return j(r,function(t){return rm(t)})}function rm(r){for(var t=0,e=0;e<r.length;++e)t+=r[e];return r.length%2===1?t*2:t}function FT(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 u=i.ensureUniqueItemVisual(o,"style");u.decal=Vl(s,t)}});var n=i.getVisual("decal");if(n){var a=i.getVisual("style");a.decal=Vl(n,t)}}})}var de=new Se,zo={};function HT(r,t){zo[r]&&ft("Already has an implementation of "+r+"."),zo[r]=t}function VT(r){return zo[r]||ft("Implementation of "+r+" doesn't exists."),zo[r]}var GT=1,UT=800,WT=900,YT=1e3,XT=2e3,$T=5e3,im=1e3,ZT=1100,Kf=2e3,nm=3e3,qT=4e3,ms=4500,KT=4600,QT=5e3,jT=6e3,am=7e3,JT={PROCESSOR:{FILTER:YT,SERIES_FILTER:UT,STATISTIC:$T},VISUAL:{LAYOUT:im,PROGRESSIVE_LAYOUT:ZT,GLOBAL:Kf,CHART:nm,POST_CHART_LAYOUT:KT,COMPONENT:qT,BRUSH:QT,CHART_ITEM:ms,ARIA:jT,DECAL:am}},wt="__flagInMainProcess",Ga="__mainProcessVersion",xt="__pendingUpdate",yu="__needsUpdateStatus",Nv=/^[a-zA-Z0-9_]+$/,_u="__connectUpdateStatus",zv=0,tx=1,ex=2;function om(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.isDisposed()){Ut(this.id);return}return um(this,r,t)}}function sm(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return um(this,r,t)}}function um(r,t,e){return e[0]=e[0]&&e[0].toLowerCase(),Se.prototype[t].apply(r,e)}var lm=(function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t})(Se),fm=lm.prototype;fm.on=sm("on");fm.off=sm("off");var Yr,Su,Ua,We,Wa,wu,bu,Ci,Di,Fv,Hv,Tu,Vv,Ya,Gv,hm,ae,Uv,Ii,cm=(function(r){N(t,r);function t(e,i,n){var a=r.call(this,new sT)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],n=n||{},a._dom=e;var o="canvas",s="auto",u=!1;a[Ga]=1;{var l=U.hasGlobalWindow?window:global;l&&(o=F(l.__ECHARTS__DEFAULT__RENDERER__,o),s=F(l.__ECHARTS__DEFAULT__COARSE_POINTER,s),u=F(l.__ECHARTS__DEFAULT__USE_DIRTY_RECT__,u))}n.ssr;var f=a._zr=Yh(e,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:F(n.useDirtyRect,u),useCoarsePointer:F(n.useCoarsePointer,s),pointerSize:n.pointerSize});a._ssr=n.ssr,a._throttledZrFlush=Zf(at(f.flush,f),17),a._updateTheme(i),a._locale=Jw(n.locale||hg),a._coordSysMgr=new vs;var h=a._api=Gv(a);function c(v,d){return v.__prio-d.__prio}return to(Vo,c),to(Ul,c),a._scheduler=new Yg(a,h,Ul,Vo),a._messageCenter=new lm,a._initEvents(),a.resize=at(a.resize,a),f.animation.on("frame",a._onframe,a),Fv(f,a),Hv(f,a),$u(a),a}return t.prototype._onframe=function(){if(!this._disposed){Uv(this);var e=this._scheduler;if(this[xt]){var i=this[xt].silent;this[wt]=!0,Ii(this);try{Yr(this),We.update.call(this,null,this[xt].updateParams)}catch(u){throw this[wt]=!1,this[xt]=null,u}this._zr.flush(),this[wt]=!1,this[xt]=null,Ci.call(this,i),Di.call(this,i)}else if(e.unfinished){var n=GT,a=this._model,o=this._api;e.unfinished=!1;do{var s=+new Date;e.performSeriesTasks(a),e.performDataProcessorTasks(a),wu(this,a),e.performVisualTasks(a),Ya(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[wt]){ft("`setOption` should not be called during main process.");return}if(this._disposed){Ut(this.id);return}var a,o,s;if(H(i)&&(n=i.lazyUpdate,a=i.silent,o=i.replaceMerge,s=i.transition,i=i.notMerge),this[wt]=!0,Ii(this),!this._model||i){var u=new H1(this._api),l=this._theme,f=this._model=new Wf;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,l,this._locale,u)}this._model.setOption(e,{replaceMerge:o},Wl);var h={seriesTransition:s,optionChanged:!0};if(n)this[xt]={silent:a,updateParams:h},this[wt]=!1,this.getZr().wakeUp();else{try{Yr(this),We.update.call(this,null,h)}catch(c){throw this[xt]=null,this[wt]=!1,c}this._ssr||this._zr.flush(),this[xt]=null,this[wt]=!1,Ci.call(this,a),Di.call(this,a)}},t.prototype.setTheme=function(e,i){if(this[wt]){ft("`setTheme` should not be called during main process.");return}if(this._disposed){Ut(this.id);return}var n=this._model;if(n){var a=i&&i.silent,o=null;this[xt]&&(a==null&&(a=this[xt].silent),o=this[xt].updateParams,this[xt]=null),this[wt]=!0,Ii(this);try{this._updateTheme(e),n.setTheme(this._theme),Yr(this),We.update.call(this,{type:"setTheme"},o)}catch(s){throw this[wt]=!1,s}this[wt]=!1,Ci.call(this,a),Di.call(this,a)}},t.prototype._updateTheme=function(e){z(e)&&(e=vm[e]),e&&(e=$(e),e&&xg(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||U.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return Dt("getRenderedCanvas","renderToCanvas"),this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var i=this._zr.painter;if(i.type!=="canvas")throw new Error("renderToCanvas can only be used in the canvas renderer.");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;if(i.type!=="svg")throw new Error("renderToSVGString can only be used in the svg renderer.");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){Ut(this.id);return}e=e||{};var i=e.excludeComponents,n=this._model,a=[],o=this;I(i,function(u){n.eachComponent({mainType:u},function(l){var f=o._componentsMap[l.__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(u){u.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){Ut(this.id);return}var i=e.type==="svg",n=this.group,a=Math.min,o=Math.max,s=1/0;if(Wv[n]){var u=s,l=s,f=-s,h=-s,c=[],v=e&&e.pixelRatio||this.getDevicePixelRatio();I(Yn,function(_,S){if(_.group===n){var b=i?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas($(e)),w=_.getDom().getBoundingClientRect();u=a(w.left,u),l=a(w.top,l),f=o(w.right,f),h=o(w.bottom,h),c.push({dom:b,left:w.left,top:w.top})}}),u*=v,l*=v,f*=v,h*=v;var d=f-u,m=h-l,g=Je.createCanvas(),p=Yh(g,{renderer:i?"svg":"canvas"});if(p.resize({width:d,height:m}),i){var y="";return I(c,function(_){var S=_.left-u,b=_.top-l;y+='<g transform="translate('+S+","+b+')">'+_.dom+"</g>"}),p.painter.getSvgRoot().innerHTML=y,e.connectedBackgroundColor&&p.painter.setBackgroundColor(e.connectedBackgroundColor),p.refreshImmediately(),p.painter.toDataURL()}else return e.connectedBackgroundColor&&p.add(new At({shape:{x:0,y:0,width:d,height:m},style:{fill:e.connectedBackgroundColor}})),I(c,function(_){var S=new Sr({style:{x:_.left*v-u,y:_.top*v-l,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 Wa(this,"convertToPixel",e,i,n)},t.prototype.convertToLayout=function(e,i,n){return Wa(this,"convertToLayout",e,i,n)},t.prototype.convertFromPixel=function(e,i,n){return Wa(this,"convertFromPixel",e,i,n)},t.prototype.containPixel=function(e,i){if(this._disposed){Ut(this.id);return}var n=this._model,a,o=Gs(n,e);return I(o,function(s,u){u.indexOf("Models")>=0&&I(s,function(l){var f=l.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(i);else if(u==="seriesModels"){var h=this._chartsMap[l.__viewId];h&&h.containPoint?a=a||h.containPoint(i,l):pe(u+": "+(h?"The found component do not support containPoint.":"No view mapping to the found component."))}else pe(u+": containPoint is not supported")},this)},this),!!a},t.prototype.getVisual=function(e,i){var n=this._model,a=Gs(n,e,{defaultMainType:"series"}),o=a.seriesModel;o||pe("There is no specified series model");var s=o.getData(),u=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return u!=null?fT(s,u,i):hT(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(rx,function(n){var a=function(o){var s=e.getModel(),u=o.target,l,f=n==="globalout";if(f?l={}:u&&Pn(u,function(m){var g=nt(m);if(g&&g.dataIndex!=null){var p=g.dataModel||s.getSeriesByIndex(g.seriesIndex);return l=p&&p.getDataParams(g.dataIndex,g.dataType,u)||{},!0}else if(g.eventData)return l=R({},g.eventData),!0},!0),l){var h=l.componentType,c=l.componentIndex;(h==="markLine"||h==="markPoint"||h==="markArea")&&(h="series",c=l.seriesIndex);var v=h&&c!=null&&s.getComponent(h,c),d=v&&e[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];!f&&!(v&&d)&&pe("model or view can not be found by params"),l.event=o,l.type=n,e._$eventProcessor.eventInfo={targetEl:u,packedEvent:l,model:v,view:d},e.trigger(n,l)}};a.zrEventfulCallAtLast=!0,e._zr.on(n,a,e)});var i=this._messageCenter;I(Gl,function(n,a){i.on(a,function(o){e.trigger(a,o)})}),cT(i,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){Ut(this.id);return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){Ut(this.id);return}this._disposed=!0;var e=this.getDom();e&&Dp(this.getDom(),jf,"");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 Yn[i.id]},t.prototype.resize=function(e){if(this[wt]){ft("`resize` should not be called during main process.");return}if(this._disposed){Ut(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[xt]&&(a==null&&(a=this[xt].silent),n=!0,this[xt]=null),this[wt]=!0,Ii(this);try{n&&Yr(this),We.update.call(this,{type:"resize",animation:R({duration:0},e&&e.animation)})}catch(o){throw this[wt]=!1,o}this[wt]=!1,Ci.call(this,a),Di.call(this,a)}},t.prototype.showLoading=function(e,i){if(this._disposed){Ut(this.id);return}if(H(e)&&(i=e,e=""),e=e||"default",this.hideLoading(),!Yl[e]){pe("Loading effects "+e+" not exists.");return}var n=Yl[e](this._api,i),a=this._zr;this._loadingFX=n,a.add(n)},t.prototype.hideLoading=function(){if(this._disposed){Ut(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var i=R({},e);return i.type=Ho[e.type],i},t.prototype.dispatchAction=function(e,i){if(this._disposed){Ut(this.id);return}if(H(i)||(i={silent:!!i}),!!Fo[e.type]&&this._model){if(this[wt]){this._pendingActions.push(e);return}var n=i.silent;bu.call(this,e,n);var a=i.flush;a?this._zr.flush():a!==!1&&U.browser.weChat&&this._throttledZrFlush(),Ci.call(this,n),Di.call(this,n)}},t.prototype.updateLabelLayout=function(){de.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){Ut(this.id);return}var i=e.seriesIndex,n=this.getModel(),a=n.getSeriesByIndex(i);V(e.data&&a),a.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=(function(){Yr=function(h){var c=h._scheduler;c.restorePipelines(h._model),c.prepareStageTasks(),Su(h,!0),Su(h,!1),c.plan()},Su=function(h,c){for(var v=h._model,d=h._scheduler,m=c?h._componentsViews:h._chartsViews,g=c?h._componentsMap:h._chartsMap,p=h._zr,y=h._api,_=0;_<m.length;_++)m[_].__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=Ee(w.type),L=c?Fe.getClass(D.main,D.sub):dr.getClass(D.sub);V(L,D.sub+" does not exist."),x=new L,x.init(v,y),g[C]=x,m.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,y)}for(var _=0;_<m.length;){var b=m[_];b.__alive?_++:(!c&&b.renderTask.dispose(),p.remove(b.group),b.dispose(v,y),m.splice(_,1),g[b.__id]===b&&delete g[b.__id],b.__id=b.group.__ecComponentInfo=null)}},Ua=function(h,c,v,d,m){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 y={mainType:d,query:p};m&&(y.subType=m);var _=v.excludeSeriesId,S;_!=null&&(S=Y(),I(Ft(_),function(w){var T=ye(w,null);T!=null&&S.set(T,!0)})),g&&g.eachComponent(y,function(w){var T=S&&S.get(w.id)!=null;if(!T)if(Dc(v))if(w instanceof yr)v.type===oi&&!v.notBlur&&!w.get(["emphasis","disabled"])&&LS(w,v,h._api);else{var C=Tf(w.mainType,w.componentIndex,v.name,h._api),x=C.focusSelf,D=C.dispatchers;v.type===oi&&x&&!v.notBlur&&bl(w.mainType,w.componentIndex,h._api),D&&I(D,function(L){v.type===oi?Qn(L):jn(L)})}else xl(v)&&w instanceof yr&&(PS(w,v,h._api),Cc(w),ae(h))},h),g&&g.eachComponent(y,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)}},We={prepareAndUpdate:function(h){Yr(this),We.update.call(this,h,h&&{optionChanged:h.newOption!=null})},update:function(h,c){var v=this._model,d=this._api,m=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),wu(this,v),g.update(v,d),i(v),p.performVisualTasks(v,h);var y=v.get("backgroundColor")||"transparent";m.setBackgroundColor(y);var _=v.get("darkMode");_!=null&&_!=="auto"&&m.setDarkMode(_),Tu(this,v,d,h,c),de.trigger("afterupdate",v,d)}},updateTransform:function(h){var c=this,v=this._model,d=this._api;if(v){v.setUpdatePayload(h);var m=[];v.eachComponent(function(p,y){if(p!=="series"){var _=c.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(y,v,d,h);S&&S.update&&m.push(_)}else m.push(_)}});var g=Y();v.eachSeries(function(p){var y=c._chartsMap[p.__viewId];if(y.updateTransform){var _=y.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}),Ya(this,v,d,h,{},g),de.trigger("afterupdate",v,d)}},updateView:function(h){var c=this._model;c&&(c.setUpdatePayload(h),dr.markUpdateMethod(h,"updateView"),i(c),this._scheduler.performVisualTasks(c,h,{setDirty:!0}),Tu(this,c,this._api,h,{}),de.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()}),dr.markUpdateMethod(h,"updateVisual"),i(v),this._scheduler.performVisualTasks(v,h,{visualType:"visual",setDirty:!0}),v.eachComponent(function(d,m){if(d!=="series"){var g=c.getViewOfComponentModel(m);g&&g.__alive&&g.updateVisual(m,v,c._api,h)}}),v.eachSeries(function(d){var m=c._chartsMap[d.__viewId];m.updateVisual(d,v,c._api,h)}),de.trigger("afterupdate",v,this._api))},updateLayout:function(h){We.update.call(this,h)}};function e(h,c,v,d,m){if(h._disposed){Ut(h.id);return}for(var g=h._model,p=h._coordSysMgr.getCoordinateSystems(),y,_=Gs(g,v),S=0;S<p.length;S++){var b=p[S];if(b[c]&&(y=b[c](g,_,d,m))!=null)return y}pe("No coordinate system that supports "+c+" found by the given finder.")}Wa=e,wu=function(h,c){var v=h._chartsMap,d=h._scheduler;c.eachSeries(function(m){d.updateStreamModes(m,v[m.__viewId])})},bu=function(h,c){var v=this,d=this.getModel(),m=h.type,g=h.escapeConnect,p=Fo[m],y=(p.update||"update").split(":"),_=y.pop(),S=y[0]!=null&&Ee(y[0]);this[wt]=!0,Ii(this);var b=[h],w=!1;h.batch&&(w=!0,b=j(h.batch,function(k){return k=pt(R({},k),h),k.batch=null,k}));var T=[],C,x=[],D=p.nonRefinedEventType,L=xl(h),A=Dc(h);if(A&&$p(this._api),I(b,function(k){var Z=p.action(k,d,v._api);if(p.refineEvent?x.push(Z):C=Z,C=C||R({},k),C.type=D,T.push(C),A){var J=df(h),tt=J.queryOptionMap,K=J.mainTypeSpecified,yt=K?tt.keys()[0]:"series";Ua(v,_,k,yt),ae(v)}else L?(Ua(v,_,k,"series"),ae(v)):S&&Ua(v,_,k,S.main,S.sub)}),_!=="none"&&!A&&!L&&!S)try{this[xt]?(Yr(this),We.update.call(this,h),this[xt]=null):We[_].call(this,h)}catch(k){throw this[wt]=!1,k}if(w?C={type:D,escapeConnect:g,batch:T}:C=T[0],this[wt]=!1,!c){var M=void 0;if(p.refineEvent){var P=p.refineEvent(x,h,d,this._api).eventContent;V(H(P)),M=pt({type:p.refinedEventType},P),M.fromAction=h.type,M.fromActionPayload=h,M.escapeConnect=!0}var E=this._messageCenter;E.trigger(C.type,C),M&&E.trigger(M.type,M)}},Ci=function(h){for(var c=this._pendingActions;c.length;){var v=c.shift();bu.call(this,v,h)}},Di=function(h){!h&&this.trigger("updated")},Fv=function(h,c){h.on("rendered",function(v){c.trigger("rendered",v),h.animation.isFinished()&&!c[xt]&&!c._scheduler.unfinished&&!c._pendingActions.length&&c.trigger("finished")})},Hv=function(h,c){h.on("mouseover",function(v){var d=v.target,m=Pn(d,qi);m&&(MS(m,v,c._api),ae(c))}).on("mouseout",function(v){var d=v.target,m=Pn(d,qi);m&&(AS(m,v,c._api),ae(c))}).on("click",function(v){var d=v.target,m=Pn(d,function(y){return nt(y).dataIndex!=null},!0);if(m){var g=m.selected?"unselect":"select",p=nt(m);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(y,_){var S=_.get("zlevel")||0,b=_.get("z")||0,w=_.getZLevelKey();d=d||!!w,(y==="series"?v:c).push({zlevel:S,z:b,idx:_.componentIndex,type:y,key:w})}),d){var m=c.concat(v),g,p;to(m,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),I(m,function(y){var _=h.getComponent(y.type,y.idx),S=y.zlevel,b=y.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)})}}Tu=function(h,c,v,d,m){n(c),Vv(h,c,v,d,m),I(h._chartsViews,function(g){g.__alive=!1}),Ya(h,c,v,d,m),I(h._chartsViews,function(g){g.__alive||g.remove(c,v)})},Vv=function(h,c,v,d,m,g){I(g||h._componentsViews,function(p){var y=p.__model;l(y,p),p.render(y,c,v,d),u(y,p),f(y,p)})},Ya=function(h,c,v,d,m,g){var p=h._scheduler;m=R(m||{},{updatedSeries:c.getSeries()}),de.trigger("series:beforeupdate",c,v,m);var y=!1;c.eachSeries(function(_){var S=h._chartsMap[_.__viewId];S.__alive=!0;var b=S.renderTask;p.updatePayload(b,d),l(_,S),g&&g.get(_.uid)&&b.dirty(),b.perform(p.getPerformArgs(b))&&(y=!0),S.group.silent=!!_.get("silent"),s(_,S),Cc(_)}),p.unfinished=y||p.unfinished,de.trigger("series:layoutlabels",c,v,m),de.trigger("series:transition",c,v,m),c.eachSeries(function(_){var S=h._chartsMap[_.__viewId];u(_,S),f(_,S)}),o(h,c),de.trigger("series:afterupdate",c,v,m)},ae=function(h){h[yu]=!0,h.getZr().wakeUp()},Ii=function(h){h[Ga]=(h[Ga]+1)%1e3},Uv=function(h){h[yu]&&(h.getZr().storage.traverse(function(c){Gn(c)||a(c)}),h[yu]=!1)};function a(h){for(var c=[],v=h.currentStates,d=0;d<v.length;d++){var m=v[d];m==="emphasis"||m==="blur"||m==="select"||c.push(m)}h.selected&&h.states.select&&c.push("select"),h.hoverState===Sf&&h.states.emphasis?c.push("emphasis"):h.hoverState===_f&&h.states.blur&&c.push("blur"),h.useStates(c)}function o(h,c){var v=h._zr,d=v.storage,m=0;d.traverse(function(g){g.isGroup||m++}),m>c.get("hoverLayerThreshold")&&!U.node&&!U.worker&&c.eachSeries(function(g){if(!g.preventUsingHoverLayer){var p=h._chartsMap[g.__viewId];p.__alive&&p.eachRendered(function(y){y.states.emphasis&&(y.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 u(h,c){if(!h.preventAutoZ){var v=ta(h);c.eachRendered(function(d){return sg(d,v.z,v.zlevel),!0})}}function l(h,c){c.eachRendered(function(v){if(!Gn(v)){var d=v.getTextContent(),m=v.getTextGuideLine();v.stateTransition&&(v.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),m&&m.stateTransition&&(m.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(),m=v.get("duration"),g=m>0?{duration:m,delay:v.get("delay"),easing:v.get("easing")}:null;c.eachRendered(function(p){if(p.states&&p.states.emphasis){if(Gn(p))return;if(p instanceof ht&&BS(p),p.__dirty){var y=p.prevStates;y&&p.useStates(y)}if(d){p.stateTransition=g;var _=p.getTextContent(),S=p.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}p.__dirty&&a(p)}})}Gv=function(h){return new((function(c){N(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 m=d.__ecComponentInfo;if(m!=null)return h._model.getComponent(m.mainType,m.index);d=d.parent}},v.prototype.enterEmphasis=function(d,m){Qn(d,m),ae(h)},v.prototype.leaveEmphasis=function(d,m){jn(d,m),ae(h)},v.prototype.enterBlur=function(d){IS(d),ae(h)},v.prototype.leaveBlur=function(d){Up(d),ae(h)},v.prototype.enterSelect=function(d){Wp(d),ae(h)},v.prototype.leaveSelect=function(d){Yp(d),ae(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[Ga]},v})(bg))(h)},hm=function(h){function c(v,d){for(var m=0;m<v.length;m++){var g=v[m];g[_u]=d}}I(Ho,function(v,d){h._messageCenter.on(d,function(m){if(Wv[h.group]&&h[_u]!==zv){if(m&&m.escapeConnect)return;var g=h.makeActionFromEvent(m),p=[];I(Yn,function(y){y!==h&&y.group===h.group&&p.push(y)}),c(p,zv),I(p,function(y){y[_u]!==tx&&y.dispatchAction(g)}),c(p,ex)}})})}})(),t})(Se),Qf=cm.prototype;Qf.on=om("on");Qf.off=om("off");Qf.one=function(r,t,e){var i=this;tr("ECharts#one is deprecated.");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 rx=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function Ut(r){pe("Instance "+r+" has been disposed")}var Fo={},Ho={},Gl={},Ul=[],Wl=[],Vo=[],vm={},Yl={},Yn={},Wv={},ix=+new Date-0,jf="_echarts_instance_";function nx(r,t,e){var i=!(e&&e.ssr);if(i){if(!r)throw new Error("Initialize failed: invalid dom.");var n=ax(r);if(n)return pe("There is a chart instance already initialized on the dom."),n;Wi(r)&&r.nodeName.toUpperCase()!=="CANVAS"&&(!r.clientWidth&&(!e||e.width==null)||!r.clientHeight&&(!e||e.height==null))&&pe("Can't get DOM width or height. Please check dom.clientWidth and dom.clientHeight. They should not be 0.For example, you may need to call this in the callback of window.onload.")}var a=new cm(r,t,e);return a.id="ec_"+ix++,Yn[a.id]=a,i&&Dp(r,jf,a.id),hm(a),de.trigger("afterinit",a),a}function ax(r){return Yn[p0(r,jf)]}function dm(r,t){vm[r]=t}function pm(r){ut(Wl,r)<0&&Wl.push(r)}function gm(r,t){th(Ul,r,t,XT)}function ox(r){Jf("afterinit",r)}function sx(r){Jf("afterupdate",r)}function Jf(r,t){de.on(r,t)}function hi(r,t,e){var i,n,a,o,s;q(t)&&(e=t,t=""),H(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 u(f){return f.toLowerCase()}n=u(n||i);var l=a?u(i):n;Fo[i]||(V(Nv.test(i)&&Nv.test(n)),a&&V(n!==i),Fo[i]={actionType:i,refinedEventType:n,nonRefinedEventType:l,update:o,action:e,refineEvent:a},Gl[n]=1,a&&s&&(Gl[l]=1),Ho[l]&&ft(l+' must not be shared; use "refineEvent" if you intend to share an event name.'),Ho[l]=i)}function ux(r,t){vs.register(r,t)}function lx(r,t){th(Vo,r,t,im,"layout")}function ci(r,t){th(Vo,r,t,nm,"visual")}var Yv=[];function th(r,t,e,i,n){(q(t)||H(t))&&(e=t,t=i);{if(isNaN(t)||t==null)throw new Error("Illegal priority");I(r,function(o){V(o.__raw!==e)})}if(!(ut(Yv,e)>=0)){Yv.push(e);var a=Yg.wrapStageHandler(e,n);a.__prio=t,a.__raw=e,r.push(a)}}function mm(r,t){Yl[r]=t}function fx(r,t,e){var i=VT("registerMap");i&&i(r,t,e)}var hx=mb;ci(Kf,$b);ci(ms,Zb);ci(ms,qb);ci(Kf,uT);ci(ms,lT);ci(am,FT);pm(xg);gm(WT,j1);mm("default",Kb);hi({type:oi,event:oi,update:oi},Mt);hi({type:ao,event:ao,update:ao},Mt);hi({type:Io,event:wf,update:Io,action:Mt,refineEvent:eh,publishNonRefinedEvent:!0});hi({type:Sl,event:wf,update:Sl,action:Mt,refineEvent:eh,publishNonRefinedEvent:!0});hi({type:Lo,event:wf,update:Lo,action:Mt,refineEvent:eh,publishNonRefinedEvent:!0});function eh(r,t,e,i){return{eventContent:{selected:RS(e),isFromClick:t.isFromClick||!1}}}dm("default",{});dm("dark",qg);function dn(r){return r==null?0:r.length||1}function Xv(r){return r}var cx=(function(){function r(t,e,i,n,a,o){this._old=t,this._new=e,this._oldKeyGetter=i||Xv,this._newKeyGetter=n||Xv,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],u=i[s],l=dn(u);if(l>1){var f=u.shift();u.length===1&&(i[s]=u[0]),this._update&&this._update(f,o)}else l===1?(i[s]=null,this._update&&this._update(u,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 u=a[s],l=i[u],f=n[u],h=dn(l),c=dn(f);if(h>1&&c===1)this._updateManyToOne&&this._updateManyToOne(f,l),n[u]=null;else if(h===1&&c>1)this._updateOneToMany&&this._updateOneToMany(f,l),n[u]=null;else if(h===1&&c===1)this._update&&this._update(f,l),n[u]=null;else if(h>1&&c>1)this._updateManyToMany&&this._updateManyToMany(f,l),n[u]=null;else if(h>1)for(var v=0;v<h;v++)this._remove&&this._remove(l[v]);else this._remove&&this._remove(l)}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=dn(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 u=e[s],l=dn(u);l===0?(e[s]=o,a&&i.push(s)):l===1?e[s]=[u,o]:u.push(o)}}},r})(),vx=(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 dx(r,t){var e={},i=e.encode={},n=Y(),a=[],o=[],s={};I(r.dimensions,function(c){var v=r.getDimensionInfo(c),d=v.coordDim;if(d){V(Al.get(d)==null);var m=v.coordDimIndex;xu(i,d)[m]=c,v.isExtraCoord||(n.set(d,1),gx(v.type)&&(a[0]=c),xu(s,d)[m]=r.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(c)}Al.each(function(g,p){var y=xu(i,p),_=v.otherDims[p];_!=null&&_!==!1&&(y[_]=v.name)})});var u=[],l={};n.each(function(c,v){var d=i[v];l[v]=d[0],u=u.concat(d)}),e.dataDimsOnCoord=u,e.dataDimIndicesOnCoord=j(u,function(c){return r.getDimensionInfo(c).storeDimIndex}),e.encodeFirstDimNotExtra=l;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 vx(s,t),e}function xu(r,t){return r.hasOwnProperty(t)||(r[t]=[]),r[t]}function px(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function gx(r){return!(r==="ordinal"||r==="time")}var fo=(function(){function r(t){this.otherDims={},t!=null&&R(this,t)}return r})(),mx=ct(),yx={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},ym=(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=wm(this.source)))},r.prototype.getSourceDimensionIndex=function(t){return F(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=Dg(this.source),i=!bm(t),n="",a=[],o=0,s=0;o<t;o++){var u=void 0,l=void 0,f=void 0,h=this.dimensions[s];if(h&&h.storeDimIndex===o)u=e?h.name:null,l=h.type,f=h.ordinalMeta,s++;else{var c=this.getSourceDimension(o);c&&(u=e?c.name:null,l=c.type)}a.push({property:u,type:l,ordinalMeta:f}),e&&u!=null&&(!h||!h.isCalculationCoord)&&(n+=i?u.replace(/\`/g,"`1").replace(/\$/g,"`2"):u),n+="$",n+=yx[l]||"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 _m(r){return r instanceof ym}function Sm(r){for(var t=Y(),e=0;e<(r||[]).length;e++){var i=r[e],n=H(i)?i.name:i;n!=null&&t.get(n)==null&&t.set(n,e)}return t}function wm(r){var t=mx(r);return t.dimNameMap||(t.dimNameMap=Sm(r.dimensionsDefine))}function bm(r){return r>30}var pn=H,or=j,_x=typeof Int32Array>"u"?Array:Int32Array,Sx="e\0\0",$v=-1,bx=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Tx=["_approximateExtent"],Zv,Xa,gn,Li,Cu,mn,Du,Go=(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;_m(t)?(i=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(n=!0,i=t),i=i||["x","y"];for(var a={},o=[],s={},u=!1,l={},f=0;f<i.length;f++){var h=i[f],c=z(h)?new fo({name:h}):h instanceof fo?h:new fo(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,l[v]!=null&&(u=!0),c.createInvertedIndices&&(s[v]=[]);var m=f;lt(c.storeDimIndex)&&(m=c.storeDimIndex),d.itemName===0&&(this._nameDimIdx=m),d.itemId===0&&(this._idDimIdx=m),V(n||c.storeDimIndex>=0),n&&(c.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(u),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted){var g=this._dimIdxToName=Y();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(lt(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);if(e==null)throw new Error("Unknown dimension "+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 Rl&&(a=t),!a){var o=this.dimensions,s=Yf(t)||Kt(t)?new Ig(t,o.length):t;a=new Rl;var u=or(o,function(l){return{type:n._dimInfos[l].type,property:l}});a.initData(s,u,i)}this._store=a,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=dx(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 u=s-n;this._nameList[s]=e[u],o&&Du(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!==je&&!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,u=s===ie;if(u&&!n.pure)for(var l=[],f=t;f<e;f++){var h=n.getItem(f,l);if(!this.hasItemOption&&n0(h)&&(this.hasItemOption=!0),h){var c=h.name;a[f]==null&&c!=null&&(a[f]=ye(c,null));var v=h.id;o[f]==null&&v!=null&&(o[f]=ye(v,null))}}if(this._shouldMakeIdFromName())for(var f=t;f<e;f++)Du(this,f);Zv(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){pn(t)?R(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=gn(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 Xa(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 B(t)?n.getValues(or(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];if(!i)throw new Error("Do not supported yet");var n=i&&i[e];return n==null||isNaN(n)?$v:n},r.prototype.each=function(t,e,i){q(t)&&(i=e,e=t,t=[]);var n=i||this,a=or(Li(t),this._getStoreDimIndex,this);this._store.each(a,n?at(e,n):e)},r.prototype.filterSelf=function(t,e,i){q(t)&&(i=e,e=t,t=[]);var n=i||this,a=or(Li(t),this._getStoreDimIndex,this);return this._store=this._store.filter(a,n?at(e,n):e),this},r.prototype.selectRange=function(t){var e=this,i={},n=mt(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){q(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=or(Li(t),this._getStoreDimIndex,this),s=mn(this);return s._store=this._store.map(o,a?at(e,a):e),s},r.prototype.modify=function(t,e,i,n){var a=this,o=i||n||this;I(Li(t),function(u){var l=a.getDimensionInfo(u);l.isCalculationCoord||console.error("Danger: only stack dimension can be modified")});var s=or(Li(t),this._getStoreDimIndex,this);this._store.modify(s,o?at(e,o):e)},r.prototype.downSample=function(t,e,i,n){var a=mn(this);return a._store=this._store.downSample(this._getStoreDimIndex(t),e,i,n),a},r.prototype.minmaxDownSample=function(t,e){var i=mn(this);return i._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),e),i},r.prototype.lttbDownSample=function(t,e){var i=mn(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 vt(i,e,e&&e.ecModel)},r.prototype.diff=function(t){var e=this;return new cx(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(i){return Xa(t,i)},function(i){return Xa(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||{},pn(t)?R(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),B(a)?a=a.slice():pn(a)&&(a=R({},a)),n[e]=a),a},r.prototype.setItemVisual=function(t,e,i){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,pn(e)?R(n,e):n[e]=i},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){pn(t)?R(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?R(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;mS(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:or(this.dimensions,this._getDimInfo,this),this.hostModel)),Cu(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var i=this[t];q(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var n=i.apply(this,arguments);return e.apply(this,[n].concat(of(arguments)))})},r.internalField=(function(){Zv=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 _x(o.categories.length);for(var u=0;u<i.length;u++)i[u]=$v;for(var u=0;u<s.count();u++)i[s.get(a.storeDimIndex,u)]=u}})},gn=function(t,e,i){return ye(t._getCategory(e,i),null)},Xa=function(t,e){var i=t._idList[e];return i==null&&t._idDimIdx!=null&&(i=gn(t,t._idDimIdx,e)),i==null&&(i=Sx+e),i},Li=function(t){return B(t)||(t=t!=null?[t]:[]),t},mn=function(t){var e=new r(t._schema?t._schema:or(t.dimensions,t._getDimInfo,t),t.hostModel);return Cu(e,t),e},Cu=function(t,e){I(bx.concat(e.__wrappedMethods||[]),function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t.__wrappedMethods=e.__wrappedMethods,I(Tx,function(i){t[i]=$(e[i])}),t._calculationInfo=R({},e._calculationInfo)},Du=function(t,e){var i=t._nameList,n=t._idList,a=t._nameDimIdx,o=t._idDimIdx,s=i[e],u=n[e];if(s==null&&a!=null&&(i[e]=s=gn(t,a,e)),u==null&&o!=null&&(n[e]=u=gn(t,o,e)),u==null&&s!=null){var l=t._nameRepeatCount,f=l[s]=(l[s]||0)+1;u=s,f>1&&(u+="__ec__"+f),n[e]=u}}})(),r})();function Tm(r,t){Yf(r)||(r=Xf(r)),t=t||{};var e=t.coordDimensions||[],i=t.dimensionsDefine||r.dimensionsDefine||[],n=Y(),a=[],o=Cx(r,e,i,t.dimensionsCount),s=t.canOmitUnusedDimensions&&bm(o),u=i===r.dimensionsDefine,l=u?wm(r):Sm(i),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var h=Y(f),c=new Rg(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=H(L)?L:{name:L},M=new fo,P=A.name;P!=null&&l.get(P)!=null&&(M.name=M.displayName=P),A.type!=null&&(M.type=A.type),A.displayName!=null&&(M.displayName=A.displayName);var E=a.length;return c[x]=E,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=Ft(x).slice();if(L.length===1&&!z(L[0])&&L[0]<0){h.set(D,!1);return}var A=h.set(D,[]);I(L,function(M,P){var E=z(M)?l.get(M):M;E!=null&&E<o&&(A[P]=E,g(d(E),D,P))})});var m=0;I(e,function(x){var D,L,A,M;if(z(x))D=x,M={};else{M=x,D=M.name;var P=M.ordinalMeta;M.ordinalMeta=null,M=R({},M),M.ordinalMeta=P,L=M.dimsDef,A=M.otherDims,M.name=M.coordDim=M.coordDimIndex=M.dimsDef=M.otherDims=null}var E=h.get(D);if(E!==!1){if(E=Ft(E),!E.length)for(var k=0;k<(L&&L.length||1);k++){for(;m<o&&d(m).coordDim!=null;)m++;m<o&&E.push(m++)}I(E,function(Z,J){var tt=d(Z);if(u&&M.type!=null&&(tt.type=M.type),g(pt(tt,M),D,J),tt.name==null&&L){var K=L[J];!H(K)&&(K={name:K}),tt.name=tt.displayName=K.name,tt.defaultTooltip=K.defaultTooltip}A&&pt(tt.otherDims,A)})}});function g(x,D,L){Al.get(D)!=null?x.otherDims[D]=L:(x.coordDim=D,x.coordDimIndex=L,n.set(D,!0))}var p=t.generateCoord,y=t.generateCoordCount,_=y!=null;y=p?y||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=Dx(S,n,_),T.coordDimIndex=0,(!p||y<=0)&&(T.isExtraCoord=!0),y--),b(T),T.type==null&&(wg(r,w)===jt.Must||T.isExtraCoord&&(T.otherDims.itemName!=null||T.otherDims.seriesName!=null))&&(T.type="ordinal")}return xx(a),new ym({source:r,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function xx(r){for(var t=Y(),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 Cx(r,t,e,i){var n=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,i||0);return I(t,function(a){var o;H(a)&&(o=a.dimsDef)&&(n=Math.max(n,o.length))}),n}function Dx(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 Ix=(function(){function r(t){this.coordSysDims=[],this.axisMap=Y(),this.categoryAxisMap=Y(),this.coordSysName=t}return r})();function Lx(r){var t=r.get("coordinateSystem"),e=new Ix(t),i=Mx[t];if(i)return i(r,e,e.axisMap,e.categoryAxisMap),e}var Mx={cartesian2d:function(r,t,e,i){var n=r.getReferringComponents("xAxis",lr).models[0],a=r.getReferringComponents("yAxis",lr).models[0];{if(!n)throw new Error('xAxis "'+gr(r.get("xAxisIndex"),r.get("xAxisId"),0)+'" not found');if(!a)throw new Error('yAxis "'+gr(r.get("xAxisIndex"),r.get("yAxisId"),0)+'" not found')}t.coordSysDims=["x","y"],e.set("x",n),e.set("y",a),Mi(n)&&(i.set("x",n),t.firstCategoryDimIndex=0),Mi(a)&&(i.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,i){var n=r.getReferringComponents("singleAxis",lr).models[0];if(!n)throw new Error("singleAxis should be specified.");t.coordSysDims=["single"],e.set("single",n),Mi(n)&&(i.set("single",n),t.firstCategoryDimIndex=0)},polar:function(r,t,e,i){var n=r.getReferringComponents("polar",lr).models[0],a=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");{if(!o)throw new Error("angleAxis option not found");if(!a)throw new Error("radiusAxis option not found")}t.coordSysDims=["radius","angle"],e.set("radius",a),e.set("angle",o),Mi(a)&&(i.set("radius",a),t.firstCategoryDimIndex=0),Mi(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,u){var l=n.getComponent("parallelAxis",s),f=o[u];e.set(f,l),Mi(l)&&(i.set(f,l),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=u))})},matrix:function(r,t,e,i){var n=r.getReferringComponents("matrix",lr).models[0];if(!n)throw new Error("matrix coordinate system should be specified.");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 Mi(r){return r.get("type")==="category"}function Ax(r,t,e){e=e||{};var i=e.byIndex,n=e.stackedCoordDimension,a,o,s;Px(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var u=!!(r&&r.get("stack")),l,f,h,c;if(I(a,function(y,_){z(y)&&(a[_]=y={name:y}),u&&!y.isExtraCoord&&(!i&&!l&&y.ordinalMeta&&(l=y),!f&&y.type!=="ordinal"&&y.type!=="time"&&(!n||n===y.coordDim)&&(f=y))}),f&&!i&&!l&&(i=!0),f){h="__\0ecstackresult_"+r.id,c="__\0ecstackedover_"+r.id,l&&(l.createInvertedIndices=!0);var v=f.coordDim,d=f.type,m=0;I(a,function(y){y.coordDim===v&&m++});var g={name:h,coordDim:v,coordDimIndex:m,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},p={name:c,coordDim:c,coordDimIndex:m+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:l&&l.name,isStackedByIndex:i,stackedOverDimension:c,stackResultDimension:h}}function Px(r){return!_m(r.schema)}function Rx(r,t){var e=r.get("coordinateSystem"),i=vs.get(e),n;return t&&t.coordSysDims&&(n=j(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var u=s.get("type");o.type=px(u)}return o})),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}function Ex(r,t,e){var i,n;return e&&I(r,function(a,o){var s=a.coordDim,u=e.categoryAxisMap.get(s);u&&(i==null&&(i=o),a.ordinalMeta=u.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(n=!0)}),!n&&i!=null&&(r[i].otherDims.itemName=0),i}function Ox(r,t,e){e=e||{};var i=t.getSourceManager(),n,a=!1;r?(a=!0,n=Xf(r)):(n=i.getSource(),a=n.sourceFormat===ie);var o=Lx(t),s=Rx(t,o),u=e.useEncodeDefaulter,l=q(u)?u:u?St(C1,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},h=Tm(n,f),c=Ex(h.dimensions,e.createInvertedIndices,o),v=a?null:i.getSharedDataStore(h),d=Ax(t,{schema:h,store:v}),m=new Go(h,t);m.setCalculationInfo(d);var g=c!=null&&kx(n)?function(p,y,_,S){return S===c?_:this.defaultDimValueGetter(p,y,_,S)}:null;return m.hasItemOption=!1,m.initData(a?n:v,null,g),m}function kx(r){if(r.sourceFormat===ie){var t=Bx(r.data||[]);return!B(fa(t))}}function Bx(r){for(var t=0;t<r.length&&r[t]==null;)t++;return r[t]}function xm(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function Nx(r){var t=r.get("interval");return t??"auto"}function zx(r){return r.type==="category"&&Nx(r.getLabelModel())===0}function Uo(r){return r==="middle"||r==="center"}var qv=[],Fx={registerPreprocessor:pm,registerProcessor:gm,registerPostInit:ox,registerPostUpdate:sx,registerUpdateLifecycle:Jf,registerAction:hi,registerCoordinateSystem:ux,registerLayout:lx,registerVisual:ci,registerTransform:hx,registerLoading:mm,registerMap:fx,registerImpl:HT,PRIORITY:JT,ComponentModel:it,ComponentView:Fe,SeriesModel:yr,ChartView:dr,registerComponentModel:function(r){it.registerClass(r)},registerComponentView:function(r){Fe.registerClass(r)},registerSeriesModel:function(r){yr.registerClass(r)},registerChartView:function(r){dr.registerClass(r)},registerCustomSeries:function(r,t){},registerSubTypeDefaulter:function(r,t){it.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){$_(r,t)}};function oa(r){if(B(r)){I(r,function(t){oa(t)});return}ut(qv,r)>=0||(qv.push(r),q(r)&&(r={install:r}),r.install(Fx))}ct();ct();var Kv={estimate:1,determine:2};function Hx(r){return{out:{noPxChangeTryDetermine:[]},kind:r}}var Qv=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],Vx=1,Wo=2,Cm=Vx|Wo;function Yo(r,t,e){e=e||Cm,t?r.dirty|=e:r.dirty&=~e}function Dm(r,t){return t=t||Cm,r.dirty==null||!!(r.dirty&t)}function _r(r){if(r)return Dm(r)&&Gx(r,r.label,r),r}function Gx(r,t,e){var i=t.getComputedTransform();r.transform=Bf(r.transform,i);var n=r.localRect=Jn(r.localRect,t.getBoundingRect()),a=t.style,o=a.margin,s=e&&e.marginForce,u=e&&e.minMarginForce,l=e&&e.marginDefault,f=a.__marginType;f==null&&l&&(o=l,f=Vi.textMargin);for(var h=0;h<4;h++)Iu[h]=f===Vi.minMargin&&u&&u[h]!=null?u[h]:s&&s[h]!=null?s[h]:o?o[h]:0;f===Vi.textMargin&&Il(n,Iu,!1,!1);var c=r.rect=Jn(r.rect,n);return i&&c.applyTransform(i),f===Vi.minMargin&&Il(c,Iu,!1,!1),r.axisAligned=kf(i),(r.label=r.label||{}).ignore=t.ignore,Yo(r,!1),Yo(r,!0,Wo),r}var Iu=[0,0,0,0];function Ux(r,t,e){return r.transform=Bf(r.transform,e),r.localRect=Jn(r.localRect,t),r.rect=Jn(r.rect,t),e&&r.rect.applyTransform(e),r.axisAligned=kf(e),r.obb=void 0,(r.label=r.label||{}).ignore=!1,r}function Wx(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 jv(r,t){for(var e=0;e<Qv.length;e++){var i=Qv[e];r[i]==null&&(r[i]=t[i])}return _r(r)}function Jv(r){var t=r.obb;return(!t||Dm(r,Wo))&&(r.obb=t=t||new rg,t.fromBoundingRect(r.localRect,r.transform),Yo(r,!1,Wo)),t}function Yx(r){var t=[];r.sort(function(l,f){return(f.suggestIgnore?1:0)-(l.suggestIgnore?1:0)||f.priority-l.priority});function e(l){if(!l.ignore){var f=l.ensureState("emphasis");f.ignore==null&&(f.ignore=!1)}l.ignore=!0}for(var i=0;i<r.length;i++){var n=_r(r[i]);if(!n.label.ignore){for(var a=n.label,o=n.labelLine,s=!1,u=0;u<t.length;u++)if(rh(n,t[u],null,{touchThreshold:.05})){s=!0;break}s?(e(a),o&&e(o)):t.push(n)}}}function rh(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:Jv(r).intersect(Jv(t),e,i)}const Xx=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function $x(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 Xx.forEach(n=>{i[n]=t(n)}),i}return e()}function Zx(r,t,e){ja([e,r,t],([i,n,a],o,s)=>{let u=null;if(i&&n&&a){const{offsetWidth:l,offsetHeight:f}=i,h=a===!0?{}:a,{throttle:c=100,onResize:v}=h;let d=!1;const m=()=>{n.resize(),v?.()},g=c?Zf(m,c):m;u=new ResizeObserver(()=>{!d&&(d=!0,i.offsetWidth===l&&i.offsetHeight===f)||g()}),u.observe(i)}s(()=>{u&&(u.disconnect(),u=null)})})}const qx={autoresize:[Boolean,Object]},Kx=/^on[^a-z]/,Im=r=>Kx.test(r);function Qx(r){const t={};for(const e in r)Im(e)||(t[e]=r[e]);return t}function ho(r,t){const e=ly(r)?fy(r):r;return e&&typeof e=="object"&&"value"in e?e.value||t:e||t}const jx="ecLoadingOptions";function Jx(r,t,e){const i=Qa(jx,{}),n=Oi(()=>({...ho(i,{}),...e?.value}));Ud(()=>{const a=r.value;a&&(t.value?a.showLoading(n.value):a.hideLoading())})}const tC={loading:Boolean,loadingOptions:Object};let yn=null;const Lm="x-vue-echarts";function eC(){if(yn!=null)return yn;if(typeof HTMLElement>"u"||typeof customElements>"u")return yn=!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);")(Lm)}catch{return yn=!1}return yn=!0}document.head.appendChild(document.createElement("style")).textContent=`x-vue-echarts{display:block;width:100%;height:100%;min-width:0}
21
+ `;const rC=eC(),iC="ecTheme",nC="ecInitOptions",aC="ecUpdateOptions",td=/(^&?~?!?)native:/;var RI=ry({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...qx,...tC},emits:{},inheritAttrs:!1,setup(r,{attrs:t}){const e=Ss(),i=Ss(),n=Ss(),a=Qa(iC,null),o=Qa(nC,null),s=Qa(aC,null),{autoresize:u,manualUpdate:l,loading:f,loadingOptions:h}=ny(r),c=Oi(()=>n.value||r.option||null),v=Oi(()=>r.theme||ho(a,{})),d=Oi(()=>r.initOptions||ho(o,{})),m=Oi(()=>r.updateOptions||ho(s,{})),g=Oi(()=>Qx(t)),p={},y=ay().proxy.$listeners,_={};y?Object.keys(y).forEach(x=>{td.test(x)?p[x.replace(td,"$1")]=y[x]:_[x]=y[x]}):Object.keys(t).filter(x=>Im(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=nx(e.value,v.value,d.value);r.group&&(D.group=r.group),Object.keys(_).forEach(M=>{let P=_[M];if(!P)return;let E=M.toLowerCase();E.charAt(0)==="~"&&(E=E.substring(1),P.__once__=!0);let k=D;if(E.indexOf("zr:")===0&&(k=D.getZr(),E=E.substring(3)),P.__once__){delete P.__once__;const Z=P;P=(...J)=>{Z(...J),k.off(E,P)}}k.on(E,P)});function L(){D&&!D.isDisposed()&&D.resize()}function A(){const M=x||c.value;M&&D.setOption(M,m.value)}u.value?uy(()=>{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;ja(l,x=>{typeof T=="function"&&(T(),T=null),x||(T=ja(()=>r.option,(D,L)=>{D&&(i.value?i.value.setOption(D,{notMerge:D!==L,...m.value}):S())},{deep:!0}))},{immediate:!0}),ja([v,d],()=>{w(),S()},{deep:!0}),Ud(()=>{r.group&&i.value&&(i.value.group=r.group)});const C=$x(i);return Jx(i,f,h),Zx(i,u,e),oy(()=>{S()}),sy(()=>{rC&&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",iy(Lm,r)}});function ed(r,t,e){var i=Je.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 Lu=(function(r){N(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||bo,typeof e=="string"?o=ed(e,i,n):H(e)&&(o=e,e=o.id),a.id=e,a.dom=o;var s=o.style;return s&&(Kd(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=ed("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,u=!1,l=new X(0,0,0,0);function f(y){if(!(!y.isFinite()||y.isZero()))if(o.length===0){var _=new X(0,0,0,0);_.copy(y),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(y)){var x=new X(0,0,0,0);x.copy(C),x.union(y),o[T]=x,S=!0;break}else if(u){l.copy(y),l.union(C);var D=y.width*y.height,L=C.width*C.height,A=l.width*l.height,M=A-D-L;M<b&&(b=M,w=T)}}if(u&&(o[w].union(y),S=!0),!S){var _=new X(0,0,0,0);_.copy(y),o.push(_)}u||(u=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&ee||!v)?c.getPrevPaintRect():null;d&&f(d);var m=v&&(c.__dirty&ee||!c.__isRendered)?c.getPaintRect():null;m&&f(m)}}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,u=a.height;i=i||this.clearColor;var l=this.motionBlur&&!e,f=this.lastFrameAlpha,h=this.dpr,c=this;l&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/h,u/h));var v=this.domBack;function d(m,g,p,y){if(o.clearRect(m,g,p,y),i&&i!=="transparent"){var _=void 0;if(Zo(i)){var S=i.global||i.__width===p&&i.__height===y;_=S&&i.__canvasGradient||Fl(o,i,{x:0,y:0,width:p,height:y}),i.__canvasGradient=_,i.__width=p,i.__height=y}else Dy(i)&&(i.scaleX=i.scaleX||h,i.scaleY=i.scaleY||h,_=Hl(o,i,{dirty:function(){c.setUnpainted(),c.painter.refresh()}}));o.save(),o.fillStyle=_||i,o.fillRect(m,g,p,y),o.restore()}l&&(o.save(),o.globalAlpha=f,o.drawImage(v,m,g,p,y),o.restore())}!n||l?d(0,0,s,u):n.length&&I(n,function(m){d(m.x*h,m.y*h,m.width*h,m.height*h)})},t})(Se),rd=1e5,Xr=314159,$a=.01,oC=.001;function sC(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function uC(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 lC=(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=R({},i||{}),this.dpr=i.devicePixelRatio||bo,this._singleCanvas=a,this.root=t;var o=t.style;o&&(Kd(t),t.innerHTML=""),this.storage=e;var s=this._zlevelList;this._prevDisplayList=[];var u=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 Lu(f,this,this.dpr);v.__builtin__=!0,v.initContext(),u[Xr]=v,v.zlevel=Xr,s.push(Xr),this._domRoot=t}else{this._width=Va(t,0,i),this._height=Va(t,1,i);var l=this._domRoot=uC(this._width,this._height);t.appendChild(l)}}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 u=a===0?this._backgroundColor:null;s.refresh(u)}}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(rd)),a||(a=i.ctx,a.save()),ti(a,s,n,o===e-1))}a&&a.restore()}},r.prototype.getHoverLayer=function(){return this.getLayer(rd)},r.prototype.paintOne=function(t,e){Jg(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(l){l.afterBrush&&l.afterBrush()});else{var u=this;yo(function(){u._paintList(t,e,i,n)})}}},r.prototype._compositeManually=function(){var t=this.getLayer(Xr).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 u=this._zlevelList[s],l=this._layers[u];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||i)&&a.push(l)}for(var f=!0,h=!1,c=function(m){var g=a[m],p=g.ctx,y=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,y);else if(_===g.__startIndex){var T=t[_];(!T.incremental||!T.notClear||i)&&g.clear(!1,w,y)}_===-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 E=t[C];if(E.__inHover&&(h=!0),n._doPaintEl(E,g,o,M,P,C===g.__endIndex-1),S){var k=Date.now()-b;if(k>15)break}}P.prevElClipPaths&&p.restore()};if(y)if(y.length===0)C=g.__endIndex;else for(var D=v.dpr,L=0;L<y.length;++L){var A=y[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 U.wxa&&I(this._layers,function(m){m&&m.ctx&&m.ctx.draw&&m.ctx.draw()}),{finished:f,needsRefreshHover:h}},r.prototype._doPaintEl=function(t,e,i,n,a,o){var s=e.ctx;if(i){var u=t.getPaintRect();(!n||u&&u.intersect(n))&&(ti(s,t,a,o),t.setPrevPaintRect(u))}else ti(s,t,a,o)},r.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=Xr);var i=this._layers[t];return i||(i=new Lu("zr_"+t,this,this.dpr),i.zlevel=t,i.__builtin__=!0,this._layerConfig[t]?dt(i,this._layerConfig[t],!0):this._layerConfig[t-$a]&&dt(i,this._layerConfig[t-$a],!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,u=-1;if(i[t]){ei("ZLevel "+t+" has been used already");return}if(!sC(e)){ei("Layer of zlevel "+t+" is not valid");return}if(a>0&&t>n[0]){for(u=0;u<a-1&&!(n[u]<t&&n[u+1]>t);u++);s=i[n[u]]}if(n.splice(u+1,0,t),i[t]=e,!e.virtual)if(s){var l=s.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(e.painter=this)},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,u;for(u=0;u<t.length;u++){var n=t[u],l=n.zlevel,f=void 0;s!==l&&(s=l,o=0),n.incremental?(f=this.getLayer(l+oC,this._needsManuallyCompositing),f.incremental=!0,o=1):f=this.getLayer(l+(o>0?$a:0),this._needsManuallyCompositing),f.__builtin__||ei("ZLevel "+l+" has been used by unkown layer "+f.id),f!==a&&(f.__used=!0,f.__startIndex!==u&&(f.__dirty=!0),f.__startIndex=u,f.incremental?f.__drawIndex=-1:f.__drawIndex=u,e(u),a=f),n.__dirty&ee&&!n.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=u))}e(u),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]?dt(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+$a){var o=this._layers[a];dt(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(ut(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=Va(a,0,n),e=Va(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(Xr).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[Xr].dom;var e=new Lu("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),u=0,l=s.length;u<l;u++){var f=s[u];ti(i,f,o,u===l-1)}return e.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r})();function EI(r){r.registerPainter("canvas",lC)}function fC(r,t){var e=r.mapDimensionsAll("defaultedLabel"),i=e.length;if(i===1){var n=Qi(r,t,e[0]);return n!=null?n+"":null}else if(i){for(var a=[],o=0;o<e.length;o++)a.push(Qi(r,t,e[o]));return a.join(" ")}}var hC=(function(r){N(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 u=da(e,-1,-1,2,2,null,s);u.attr({z2:F(o,100),culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),u.drift=cC,this._symbolType=e,this.add(u)},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(){Qn(this.childAt(0))},t.prototype.downplay=function(){jn(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,u=t.getSymbolSize(e,i),l=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,u,l,c)}else{var v=this.childAt(0);v.silent=!1;var d={scaleX:u[0]/2,scaleY:u[1]/2};h?v.attr(d):wr(v,d,s,i),gw(v)}if(this._updateCommon(e,i,u,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,Af(v,d,s,i)}}h&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,i,n,a,o){var s=this.childAt(0),u=e.hostModel,l,f,h,c,v,d,m,g,p;if(a&&(l=a.emphasisItemStyle,f=a.blurItemStyle,h=a.selectItemStyle,c=a.focus,v=a.blurScope,m=a.labelStatesModels,g=a.hoverScale,p=a.cursorStyle,d=a.emphasisDisabled),!a||e.hasItemOption){var y=a&&a.itemModel?a.itemModel:e.getItemModel(i),_=y.getModel("emphasis");l=_.getModel("itemStyle").getItemStyle(),h=y.getModel(["select","itemStyle"]).getItemStyle(),f=y.getModel(["blur","itemStyle"]).getItemStyle(),c=_.get("focus"),v=_.get("blurScope"),d=_.get("disabled"),m=fs(y),g=_.getShallow("scale"),p=y.getShallow("cursor")}var S=e.getItemVisual(i,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var b=gs(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 Sr){var C=s.style;s.useStyle(R({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},w))}else s.__isEmptyBrush?s.useStyle(R({},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;Nf(s,m,{labelFetcher:u,labelDataIndex:i,defaultText:A,inheritColor:T,defaultOpacity:w.opacity});function A(E){return L?e.getName(E):fC(e,E)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var M=s.ensureState("emphasis");M.style=l,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),Zp(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=nt(this).dataIndex,s=n&&n.animation;if(this.silent=a.silent=!0,n&&n.fadeLabel){var u=a.getTextContent();u&&Mo(u,{style:{opacity:0}},i,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();Mo(a,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,i){return qf(e.getItemVisual(i,"symbolSize"))},t.getSymbolZ2=function(e,i){return e.getItemVisual(i,"z2")},t})(bt);function cC(r,t){this.parent.drift(r,t)}function Mu(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 id(r){return r!=null&&!H(r)&&(r={isIgnore:r}),r||{}}function nd(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:fs(t),cursorStyle:t.get("cursor")}}var vC=(function(){function r(t){this.group=new bt,this._SymbolCtor=t||hC}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=id(e);var i=this.group,n=t.hostModel,a=this._data,o=this._SymbolCtor,s=e.disableAnimation,u=nd(t),l={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(Mu(t,c,h,e)){var v=new o(t,h,u,l);v.setPosition(c),t.setItemGraphicEl(h,v),i.add(v)}}).update(function(h,c){var v=a.getItemGraphicEl(c),d=f(h);if(!Mu(t,d,h,e)){i.remove(v);return}var m=t.getItemVisual(h,"symbol")||"circle",g=v&&v.getSymbolType&&v.getSymbolType();if(!v||g&&g!==m)i.remove(v),v=new o(t,h,u,l),v.setPosition(d);else{v.updateData(t,h,u,l);var p={x:d[0],y:d[1]};s?v.attr(p):wr(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=nd(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,i){this._progressiveEls=[],i=id(i);function n(u){u.isGroup||(u.incremental=!0,u.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a<t.end;a++){var o=e.getItemLayout(a);if(Mu(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){us(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})(),dC=(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})(),pC=null;function gC(){return pC}var mC="expandAxisBreak",hr=Math.PI,yC=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],_C=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],Xo=ct(),Mm=ct(),SC=(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 wC(r,t,e,i){var n=e.axis,a=t.ensureRecord(e),o=[],s,u=ih(r.axisName)&&Uo(r.nameLocation);I(i,function(d){var m=_r(d);if(!(!m||m.label.ignore)){o.push(m);var g=a.transGroup;u&&(g.transform?la(_n,g.transform):lf(_n),m.transform&&Bn(_n,_n,m.transform),X.copy(Za,m.localRect),Za.applyTransform(_n),s?s.union(Za):X.copy(s=new X(0,0,0,0),Za))}});var l=Math.abs(a.dirVec.x)>.1?"x":"y",f=a.transGroup[l];if(o.sort(function(d,m){return Math.abs(d.label[l]-f)-Math.abs(m.label[l]-f)}),u&&s){var h=n.getExtent(),c=Math.min(h[0],h[1]),v=Math.max(h[0],h[1])-c;s.union(new X(c,0,v,1))}a.stOccupiedRect=s,a.labelInfoList=o}var _n=Oe(),Za=new X(0,0,0,0),bC=function(r,t,e,i,n,a){if(Uo(r.nameLocation)){var o=a.stOccupiedRect;o&&Am(Ux({},o,a.transGroup.transform),i,n)}else TC(a.labelInfoList,a.dirVec,i,n)};function Am(r,t,e){var i=new ot;rh(r,t,i,{direction:Math.atan2(e.y,e.x),bidirectional:!1,touchThreshold:.05})&&Wx(t,i)}function TC(r,t,e,i){for(var n=ot.dot(i,t)>=0,a=0,o=r.length;a<o;a++){var s=r[n?a:o-1-a];s.label.ignore||Am(s,e,i)}}var si=(function(){function r(t,e,i,n){this.group=new bt,this._axisModel=t,this._api=e,this._local={},this._shared=n||new SC(bC),this._resetCfgDetermined(i)}return r.prototype.updateCfg=function(t){{var e=this._shared.ensureRecord(this._axisModel).ready;V(!e.axisLine&&!e.axisTickLabelDetermine),e.axisName=e.axisTickLabelEstimate=!1}var i=this._cfg.raw;i.position=t.position,i.labelOffset=t.labelOffset,this._resetCfgDetermined(i)},r.prototype.__getRawCfg=function(){return this._cfg.raw},r.prototype._resetCfgDetermined=function(t){var e=this._axisModel,i=e.getDefaultOption?e.getDefaultOption():{},n=F(t.axisName,e.get("name")),a=e.get("nameMoveOverlap");(a==null||a==="auto")&&(a=F(t.defaultNameMoveOverlap,!0));var o={raw:t,position:t.position,rotation:t.rotation,nameDirection:F(t.nameDirection,1),tickDirection:F(t.tickDirection,1),labelDirection:F(t.labelDirection,1),labelOffset:F(t.labelOffset,0),silent:F(t.silent,!0),axisName:n,nameLocation:Ke(e.get("nameLocation"),i.nameLocation,"end"),shouldNameMoveOverlap:ih(n)&&a,optionHideOverlap:e.get(["axisLabel","hideOverlap"]),showMinorTicks:e.get(["minorTick","show"])};V(o.position!=null),V(o.rotation!=null),this._cfg=o;var s=new bt({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var u=this._shared.ensureRecord(e);u.transGroup=this._transformGroup,u.dirVec=new ot(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(xC,function(n){t[n]&&CC[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=Sp(e-t),a,o;return To(n)?(o=i>0?"top":"bottom",a="center"):To(n-hr)?(o=i>0?"bottom":"top",a="center"):(o="middle",n>0&&n<hr?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})(),xC=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],CC={axisLine:function(r,t,e,i,n,a,o){{var s=e.ensureRecord(i).ready;V(!s.axisLine),s.axisLine=!0}var u=i.get(["axisLine","show"]);if(u==="auto"&&(u=!0,r.raw.axisLineAutoShow!=null&&(u=!!r.raw.axisLineAutoShow)),!!u){var l=i.axis.getExtent(),f=a.transform,h=[l[0],0],c=[l[1],0],v=h[0]>c[0];f&&(re(h,h,f),re(c,c,f));var d=R({lineCap:"round"},i.getModel(["axisLine","lineStyle"]).getLineStyle()),m={strokeContainThreshold:r.raw.strokeContainThreshold||5,silent:!0,z2:1,style:d};if(i.get(["axisLine","breakLine"])&&i.axis.scale.hasBreaks())gC().buildAxisBreakLine(i,n,a,m);else{var g=new li(R({shape:{x1:h[0],y1:h[1],x2:c[0],y2:c[1]}},m));Rf(g.shape,g.style.lineWidth),g.anid="line",n.add(g)}var p=i.get(["axisLine","symbol"]);if(p!=null){var y=i.get(["axisLine","symbolSize"]);z(p)&&(p=[p,p]),(z(y)||lt(y))&&(y=[y,y]);var _=gs(i.get(["axisLine","symbolOffset"])||0,y),S=y[0],b=y[1];I([{rotate:r.rotation+Math.PI/2,offset:_[0],r:0},{rotate:r.rotation-Math.PI/2,offset:_[1],r:Math.sqrt((h[0]-c[0])*(h[0]-c[0])+(h[1]-c[1])*(h[1]-c[1]))}],function(w,T){if(p[T]!=="none"&&p[T]!=null){var C=da(p[T],-S/2,-b/2,S,b,d.stroke,!0),x=w.r+w.offset,D=v?c:h;C.attr({rotation:w.rotate,x:D[0]+x*Math.cos(r.rotation),y:D[1]-x*Math.sin(r.rotation),silent:!0,z2:11}),n.add(C)}})}}},axisTickLabelEstimate:function(r,t,e,i,n,a,o,s){{var u=e.ensureRecord(i).ready;V(!u.axisTickLabelDetermine),u.axisTickLabelEstimate=!0}var l=od(t,n,s);l&&ad(r,t,e,i,n,a,o,Kv.estimate)},axisTickLabelDetermine:function(r,t,e,i,n,a,o,s){{var u=e.ensureRecord(i).ready;u.axisTickLabelDetermine=!0}var l=od(t,n,s);l&&ad(r,t,e,i,n,a,o,Kv.determine);var f=MC(r,n,a,i);LC(r,t.labelLayoutList,f),AC(r,n,a,i,r.tickDirection)},axisName:function(r,t,e,i,n,a,o,s){var u=e.ensureRecord(i);{var l=u.ready;V(l.axisTickLabelEstimate||l.axisTickLabelDetermine),l.axisName=!0}t.nameEl&&(n.remove(t.nameEl),t.nameEl=u.nameLayout=u.nameLocation=null);var f=r.axisName;if(ih(f)){var h=r.nameLocation,c=r.nameDirection,v=i.getModel("nameTextStyle"),d=i.get("nameGap")||0,m=i.axis.getExtent(),g=i.axis.inverse?-1:1,p=new ot(0,0),y=new ot(0,0);h==="start"?(p.x=m[0]-g*d,y.x=-g):h==="end"?(p.x=m[1]+g*d,y.x=g):(p.x=(m[0]+m[1])/2,p.y=r.labelOffset+c*d,y.y=c);var _=Oe();y.transform(hf(_,_,r.rotation));var S=i.get("nameRotate");S!=null&&(S=S*hr/180);var b,w;Uo(h)?b=si.innerTextLayout(r.rotation,S??r.rotation,c):(b=DC(r.rotation,h,S||0,m),w=r.raw.axisNameAvailableWidth,w!=null&&(w=Math.abs(w/Math.sin(b.rotation)),!isFinite(w)&&(w=null)));var T=v.getFont(),C=i.get("nameTruncate",!0)||{},x=C.ellipsis,D=gr(r.raw.nameTruncateMaxWidth,C.maxWidth,w),L=s.nameMarginLevel||0,A=new Vt({x:p.x,y:p.y,rotation:b.rotation,silent:si.isLabelSilent(i),style:mr(v,{text:f,font:T,overflow:"truncate",width:D,ellipsis:x,fill:v.getTextColor()||i.get(["axisLine","lineStyle","color"]),align:v.get("align")||b.textAlign,verticalAlign:v.get("verticalAlign")||b.textVerticalAlign}),z2:1});if(ss({el:A,componentModel:i,itemName:f}),A.__fullText=f,A.anid="name",i.get("triggerEvent")){var M=si.makeAxisEventDataBase(i);M.targetType="axisName",M.name=f,nt(A).eventData=M}a.add(A),A.updateTransform(),t.nameEl=A;var P=u.nameLayout=_r({label:A,priority:A.z2,defaultAttr:{ignore:A.ignore},marginDefault:Uo(h)?yC[L]:_C[L]});if(u.nameLocation=h,n.add(A),A.decomposeTransform(),r.shouldNameMoveOverlap&&P){var E=e.ensureRecord(i);V(E.labelInfoList),e.resolveAxisNameOverlap(r,e,i,P,y,E)}}}};function ad(r,t,e,i,n,a,o,s){Rm(t)||PC(r,t,n,s,i,o);var u=t.labelLayoutList;RC(r,i,u,a),r.rotation;var l=r.optionHideOverlap;IC(i,u,l),l&&Yx(te(u,function(f){return f&&!f.label.ignore})),wC(r,e,i,u)}function DC(r,t,e,i){var n=Sp(e-r),a,o,s=i[0]>i[1],u=t==="start"&&!s||t!=="start"&&s;return To(n-hr/2)?(o=u?"bottom":"top",a="center"):To(n-hr*1.5)?(o=u?"top":"bottom",a="center"):(o="middle",n<hr*1.5&&n>hr/2?a=u?"left":"right":a=u?"right":"left"),{rotation:n,textAlign:a,textVerticalAlign:o}}function IC(r,t,e){if(zx(r.axis))return;function i(s,u,l){var f=_r(t[u]),h=_r(t[l]);if(!(!f||!h)){if(s===!1||f.suggestIgnore){Rn(f.label);return}if(h.suggestIgnore){Rn(h.label);return}var c=.1;if(!e){var v=[0,0,0,0];f=jv({marginForce:v},f),h=jv({marginForce:v},h)}rh(f,h,null,{touchThreshold:c})&&Rn(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 LC(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=Mm(a),s=Xo(i.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.tickValue){Rn(a);return}}})}function Rn(r){r&&(r.ignore=!0)}function Pm(r,t,e,i,n){for(var a=[],o=[],s=[],u=0;u<r.length;u++){var l=r[u].coord;o[0]=l,o[1]=0,s[0]=l,s[1]=e,t&&(re(o,o,t),re(s,s,t));var f=new li({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});Rf(f.shape,f.style.lineWidth),f.anid=n+"_"+r[u].tickValue,a.push(f);var h=Mm(f);h.onBand=!!r[u].onBand,h.tickValue=r[u].tickValue}return a}function MC(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"),u=r.tickDirection*a.get("length"),l=n.getTicksCoords(),f=Pm(l,e.transform,u,pt(s.getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<f.length;h++)t.add(f[h]);return f}function AC(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 u=o.getModel("lineStyle"),l=n*o.get("length"),f=pt(u.getLineStyle(),pt(i.getModel("axisTick").getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])})),h=0;h<s.length;h++)for(var c=Pm(s[h],e.transform,l,f,"minorticks_"+h),v=0;v<c.length;v++)t.add(c[v])}}function od(r,t,e){if(Rm(r)){var i=r.axisLabelsCreationContext;V(r.labelGroup&&i);var 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),Xl(r,null,null,null))}return!0}function PC(r,t,e,i,n,a){var o=n.axis,s=gr(r.raw.axisLabelShow,n.get(["axisLabel","show"])),u=new bt;e.add(u);var l=Hx(i);if(!s||o.scale.isBlank()){Xl(t,[],u,l);return}var f=n.getModel("axisLabel"),h=o.getViewLabels(l),c=(gr(r.raw.labelRotate,f.get("rotate"))||0)*hr/180,v=si.innerTextLayout(r.rotation,c,r.labelDirection),d=n.getCategories&&n.getCategories(!0),m=[],g=n.get("triggerEvent"),p=1/0,y=-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];H(L)&&L.textStyle&&(D=new vt(L.textStyle,f,n.ecModel))}var A=D.getTextColor()||n.get(["axisLine","lineStyle","color"]),M=D.getShallow("align",!0)||v.textAlign,P=F(D.getShallow("alignMinLabel",!0),M),E=F(D.getShallow("alignMaxLabel",!0),M),k=D.getShallow("verticalAlign",!0)||D.getShallow("baseline",!0)||v.textVerticalAlign,Z=F(D.getShallow("verticalAlignMinLabel",!0),k),J=F(D.getShallow("verticalAlignMaxLabel",!0),k),tt=10+(((w=S.time)===null||w===void 0?void 0:w.level)||0);p=Math.min(p,tt),y=Math.max(y,tt);var K=new Vt({x:0,y:0,rotation:0,silent:si.isLabelSilent(n),z2:tt,style:mr(D,{text:C,align:b===0?P:b===h.length-1?E:M,verticalAlign:b===0?Z:b===h.length-1?J:k,fill:q(A)?A(o.type==="category"?x:o.type==="value"?T+"":T,b):A})});K.anid="label_"+T;var yt=Xo(K);if(yt.break=S.break,yt.tickValue=T,yt.layoutRotation=v.rotation,ss({el:K,componentModel:n,itemName:C,formatterParamsExtra:{isTruncated:function(){return K.isTruncated},value:x,tickIndex:b}}),g){var rt=si.makeAxisEventDataBase(n);rt.targetType="axisLabel",rt.value=x,rt.tickIndex=b,S.break&&(rt.break={start:S.break.parsedBreak.vmin,end:S.break.parsedBreak.vmax}),o.type==="category"&&(rt.dataIndex=T),nt(K).eventData=rt,S.break&&OC(n,a,K,S.break)}m.push(K),u.add(K)});var _=j(m,function(S){return{label:S,priority:Xo(S).break?S.z2+(y-p+1):S.z2,defaultAttr:{ignore:S.ignore}}});Xl(t,_,u,l)}function Rm(r){return!!r.labelLayoutList}function Xl(r,t,e,i){r.labelLayoutList=t,r.labelGroup=e,r.axisLabelsCreationContext=i}function RC(r,t,e,i){var n=t.get(["axisLabel","margin"]);I(e,function(a,o){var s=_r(a);if(s){var u=s.label,l=Xo(u);s.suggestIgnore=u.ignore,u.ignore=!1,dl(Ye,EC),Ye.x=t.axis.dataToCoord(l.tickValue),Ye.y=r.labelOffset+r.labelDirection*n,Ye.rotation=l.layoutRotation,i.add(Ye),Ye.updateTransform(),i.remove(Ye),Ye.decomposeTransform(),dl(u,Ye),u.markRedraw(),Yo(s,!0),_r(s)}})}var Ye=new At,EC=new At;function ih(r){return!!r}function OC(r,t,e,i){e.on("click",function(n){var a={type:mC,breaks:[{start:i.parsedBreak.breakOption.start,end:i.parsedBreak.breakOption.end}]};a[r.axis.dim+"AxisIndex"]=r.componentIndex,t.dispatchAction(a)})}function sd(r,t,e){e=e||{};var i=t.axis,n={},a=i.getAxesOnZeroOf()[0],o=i.position,s=a?"onZero":o,u=i.dim,l=[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=u==="x"?[l[2]-h,l[3]+h]:[l[0]-h,l[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=[u==="y"?c[f[s]]:l[0],u==="x"?c[f[s]]:l[3]],n.rotation=Math.PI/2*(u==="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),gr(e.labelInside,t.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var m=t.get(["axisLabel","rotate"]);return n.labelRotate=s==="top"?-m:m,n.z2=1,n}function kC(r,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return BC(e,r,t),e.seriesInvolved&&zC(e,r),e}function BC(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 u=sa(s.model),l=r.coordSysAxesInfo[u]={};r.coordSysMap[u]=s;var f=s.model,h=f.getModel("tooltip",i);if(I(s.getAxes(),St(m,!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,St(m,v?"cross":!0,c)),v&&I(d.otherAxes,St(m,"cross",!1))}function m(g,p,y){var _=y.model.getModel("axisPointer",n),S=_.get("show");if(!(!S||S==="auto"&&!g&&!$l(_))){p==null&&(p=_.get("triggerTooltip")),_=g?NC(y,h,n,t,g,p):_;var b=_.get("snap"),w=_.get("triggerEmphasis"),T=sa(y.model),C=p||b||y.type==="category",x=r.axesInfo[T]={key:T,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:p,triggerEmphasis:w,involveSeries:C,snap:b,useHandle:$l(_),seriesModels:[],linkGroup:null};l[T]=x,r.seriesInvolved=r.seriesInvolved||C;var D=FC(a,y);if(D!=null){var L=o[D]||(o[D]={axesInfo:{}});L.axesInfo[T]=x,L.mapper=a[D].mapper,x.linkGroup=L}}}})}function NC(r,t,e,i,n,a){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],u={};I(s,function(c){u[c]=$(o.get(c))}),u.snap=r.type!=="category"&&!!a,o.get("type")==="cross"&&(u.type="line");var l=u.label||(u.label={});if(l.show==null&&(l.show=!1),n==="cross"){var f=o.get(["label","show"]);if(l.show=f??!0,!a){var h=u.lineStyle=o.get("crossStyle");h&&pt(l,h.textStyle)}}return r.model.getModel("axisPointer",new vt(u,e,i))}function zC(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[sa(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 FC(r,t){for(var e=t.model,i=t.dim,n=0;n<r.length;n++){var a=r[n]||{};if(Au(a[i+"AxisId"],e.id)||Au(a[i+"AxisIndex"],e.componentIndex)||Au(a[i+"AxisName"],e.name))return n}}function Au(r,t){return r==="all"||B(r)&&ut(r,t)>=0||r===t}function HC(r){var t=nh(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=$l(e);a==null&&(n.status=s?"show":"hide");var u=i.getExtent().slice();u[0]>u[1]&&u.reverse(),(o==null||o>u[1])&&(o=u[1]),o<u[0]&&(o=u[0]),n.value=o,s&&(n.status=t.axis.scale.isBlank()?"hide":"show")}}function nh(r){var t=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[sa(r)]}function VC(r){var t=nh(r);return t&&t.axisPointerModel}function $l(r){return!!r.get(["handle","show"])}function sa(r){return r.type+"||"+r.id}var Pu={},GC=(function(r){N(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&&HC(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=VC(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){if(Pu[e])throw new Error("axisPointer "+e+" exists");Pu[e]=i},t.getAxisPointerClass=function(e){return e&&Pu[e]},t.type="axis",t})(Fe),UC=ct();function ud(r,t){return!!UC(r)[t]}hi({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Mt);var WC={axisPointer:1,tooltip:1,brush:1};function YC(r,t,e){var i=t.getComponentByElement(r.topTarget);if(!i||i===e||WC.hasOwnProperty(i.mainType))return!1;var n=i.coordinateSystem;if(!n||n.model===e)return!1;var a=ta(i),o=ta(e);return!((a.zlevel-o.zlevel||a.z-o.z)<=0)}var XC=(function(r){N(t,r);function t(e){var i=r.call(this)||this;i._zr=e;var n=at(i._mousedownHandler,i),a=at(i._mousemoveHandler,i),o=at(i._mouseupHandler,i),s=at(i._mousewheelHandler,i),u=at(i._pinchHandler,i);return i.enable=function(l,f){var h=f.zInfo,c=ta(h.component),v=c.z,d=c.zlevel,m={component:h.component,z:v,zlevel:d,z2:F(h.z2,-1/0)},g=R({},f.triggerInfo);this._opt=pt(R({},f),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:m,triggerInfo:g}),l==null&&(l=!0),(!this._enabled||this._controlType!==l)&&(this._enabled=!0,this.disable(),(l===!0||l==="move"||l==="pan")&&(wn(e,"mousedown",n,m),wn(e,"mousemove",a,m),wn(e,"mouseup",o,m)),(l===!0||l==="scale"||l==="zoom")&&(wn(e,"mousewheel",s,m),wn(e,"pinch",u,m)))},i.disable=function(){this._enabled=!1,bn(e,"mousedown",n),bn(e,"mousemove",a),bn(e,"mouseup",o),bn(e,"mousewheel",s),bn(e,"pinch",u)},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(YC(e,a.api,o.component))return!1;var s=a.triggerInfo,u=s.roamTrigger,l=!1;return u==="global"&&(l=!0),l||(l=s.isInSelf(e,i,n)),l&&s.isInClip&&!s.isInClip(e,i,n)&&(l=!1),l},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(!(yh(e)||Sn(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"||ud(i,"globalPan")||Sn(e))){var n=e.offsetX,a=e.offsetY;if(!this._dragging||!co("moveOnMouseMove",e,this._opt)){var o=this._decideCursorStyle(e,n,a,!1);o&&i.setCursorStyle(o);return}i.setCursorStyle("grabbing");var s=this._x,u=this._y,l=n-s,f=a-u;this._x=n,this._y=a,this._opt.preventDefaultMouseMove&&mo(e.event),e.__ecRoamConsumed=!0,ld(this,"pan","moveOnMouseMove",e,{dx:l,dy:f,oldX:s,oldY:u,newX:n,newY:a,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){if(!Sn(e)){var i=this._zr;if(!yh(e)){this._dragging=!1;var n=this._decideCursorStyle(e,e.offsetX,e.offsetY,!0);n&&i.setCursorStyle(n)}}},t.prototype._mousewheelHandler=function(e){if(!Sn(e)){var i=co("zoomOnMouseWheel",e,this._opt),n=co("moveOnMouseWheel",e,this._opt),a=e.wheelDelta,o=Math.abs(a),s=e.offsetX,u=e.offsetY;if(!(a===0||!i&&!n)){if(i){var l=o>3?1.4:o>1?1.2:1.1,f=a>0?l:1/l;this._checkTriggerMoveZoom(this,"zoom","zoomOnMouseWheel",e,{scale:f,originX:s,originY:u,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:u,isAvailableBehavior:null})}}}},t.prototype._pinchHandler=function(e){if(!(ud(this._zr,"globalPan")||Sn(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)&&(mo(a.event),a.__ecRoamConsumed=!0,ld(e,i,n,a,o))},t})(Se);function Sn(r){return r.__ecRoamConsumed}var $C=ct();function ys(r){var t=$C(r);return t.roam=t.roam||{},t.uniform=t.uniform||{},t}function wn(r,t,e,i){for(var n=ys(r),a=n.roam,o=a[t]=a[t]||[],s=0;s<o.length;s++){var u=o[s].zInfoParsed;if((u.zlevel-i.zlevel||u.z-i.z||u.z2-i.z2)<=0)break}o.splice(s,0,{listener:e,zInfoParsed:i}),ZC(r,t)}function bn(r,t,e){for(var i=ys(r),n=i.roam[t]||[],a=0;a<n.length;a++)if(n[a].listener===e){n.splice(a,1),n.length||qC(r,t);return}}function ZC(r,t){var e=ys(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 qC(r,t){var e=ys(r),i=e.uniform;i[t]&&(r.off(t,i[t]),i[t]=null)}function ld(r,t,e,i,n){n.isAvailableBehavior=at(co,null,e,i),r.trigger(t,n)}function co(r,t,e){var i=e[r];return!r||i&&(!z(i)||t.event[i+"Key"])}function KC(r,t,e){var i=r.target;i.x+=t,i.y+=e,i.dirty()}function QC(r,t,e,i){var n=r.target,a=r.zoomLimit,o=r.zoom=r.zoom||1;o*=t,o=ah(o,a);var s=o/r.zoom;r.zoom=o,Em(n,e,i,s),n.dirty()}function fd(r,t){return r.pointToProjected?r.pointToProjected(t):r.pointToData(t)}function jC(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(fd(r,o))),a!=null&&(a=ah(i*a,e)/i,Em(r,t.originX,t.originY,a),r.updateTransform(),r.setCenter(fd(r,o)),r.setZoom(a*i)),{center:r.getCenter(),zoom:r.getZoom()}}function Em(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 ah(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 hd=re,Om=(function(r){N(t,r);function t(e,i){var n=r.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new Qr,n._rawTransformable=new Qr,n.name=e,n._opt=i,n}return t.prototype.setBoundingRect=function(e,i,n,a){return this._rect=new X(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 X(e,i,n,a)},t.prototype._transformTo=function(e,i,n,a){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new X(e,i,n,a));var u=s.parent;s.parent=null,s.decomposeTransform(),s.parent=u,this._updateTransform()},t.prototype.setCenter=function(e){var i=this._opt;i&&i.api&&i.ecModel&&i.ecModel.getShallow("legacyViewCoordSysCenterBase")&&e&&(e=[Yt(e[0],i.api.getWidth()),Yt(e[1],i.api.getWidth())]),this._centerOption=$(e),this._updateCenterAndZoom()},t.prototype.setZoom=function(e){this._zoom=ah(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=[Yt(e[0],i.width,i.x),Yt(e[1],i.height,i.y)]);var n=this._rawTransformable.getLocalTransform(),a=this._roamTransformable,o=this.getDefaultCenter(),s=this.getCenter(),u=this.getZoom();s=re([],s,n),o=re([],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=u,this._updateTransform()},t.prototype._updateTransform=function(){var e=this._roamTransformable,i=this._rawTransformable;i.parent=e,e.updateTransform(),i.updateTransform(),ff(this.transform||(this.transform=[]),i.transform||Oe()),this._rawTransform=i.getLocalTransform(),this.invTransform=this.invTransform||[],la(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var e=this._rawTransformable,i=this._roamTransformable,n=new Qr;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?hd(n,e,a):kt(n,e)},t.prototype.pointToData=function(e,i,n){n=n||[];var a=this.invTransform;return a?hd(n,e,a):(n[0]=e[0],n[1]=e[1],n)},t.prototype.convertToPixel=function(e,i,n){var a=cd(i);return a===this?a.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,i,n){var a=cd(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})(Qr);function cd(r){var t=r.seriesModel;return t?t.coordinateSystem:null}var he=ct();function JC(r){var t=r.mainData,e=r.datas;e||(e={main:t},r.datasAttr={main:"data"}),r.datas=r.mainData=null,km(t,e,r),I(e,function(i){I(t.TRANSFERABLE_METHODS,function(n){i.wrapMethod(n,St(tD,r))})}),t.wrapMethod("cloneShallow",St(rD,r)),I(t.CHANGABLE_METHODS,function(i){t.wrapMethod(i,St(eD,r))}),V(e[t.dataType]===t)}function tD(r,t){if(aD(this)){var e=R({},he(this).datas);e[this.dataType]=t,km(t,e,r)}else oh(t,this.dataType,he(this).mainData,r);return t}function eD(r,t){return r.struct&&r.struct.update(),t}function rD(r,t){return I(he(t).datas,function(e,i){e!==t&&oh(e.cloneShallow(),i,t,r)}),t}function iD(r){var t=he(this).mainData;return r==null||t==null?t:he(t).datas[r]}function nD(){var r=he(this).mainData;return r==null?[{data:r}]:j(mt(he(r).datas),function(t){return{type:t,data:he(r).datas[t]}})}function aD(r){return he(r).mainData===r}function km(r,t,e){he(r).datas={},I(t,function(i,n){oh(i,n,r,e)})}function oh(r,t,e,i){he(e).datas[t]=r,he(r).mainData=e,r.dataType=t,i.struct&&(r[i.structAttr]=i.struct,i.struct[i.datasAttr[t]]=r),r.getLinkedData=iD,r.getLinkedDataAll=nD}function oD(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 u=a.getItemModel(s),l=u.getShallow("category");if(l!=null){lt(l)&&(l=o[l]);for(var f=0;f<t.length;f++)if(!t[f].isSelected(l))return!1}return!0})})}function sD(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 u=i.getItemModel(o),l=u.getModel("itemStyle").getItemStyle();l.fill||(l.fill=e.getColorFromPalette(s,t)),i.setItemVisual(o,"style",l);for(var f=["symbol","symbolSize","symbolKeepAspect"],h=0;h<f.length;h++){var c=u.getShallow(f[h],!0);c!=null&&i.setItemVisual(o,f[h],c)}}),i.count()&&n.each(function(o){var s=n.getItemModel(o),u=s.getShallow("category");if(u!=null){z(u)&&(u=a["ec-"+u]);var l=i.getItemVisual(u,"style"),f=n.ensureUniqueItemVisual(o,"style");R(f,l);for(var h=["symbol","symbolSize","symbolKeepAspect"],c=0;c<h.length;c++)n.setItemVisual(o,h[c],i.getItemVisual(u,h[c]))}})})}function qa(r){return r instanceof Array||(r=[r,r]),r}function uD(r){r.eachSeriesByType("graph",function(t){var e=t.getGraph(),i=t.getEdgeData(),n=qa(t.get("edgeSymbol")),a=qa(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),u=e.getEdgeByIndex(o),l=qa(s.getShallow("symbol",!0)),f=qa(s.getShallow("symbolSize",!0)),h=s.getModel("lineStyle").getLineStyle(),c=i.ensureUniqueItemVisual(o,"style");switch(R(c,h),c.stroke){case"source":{var v=u.node1.getVisual("style");c.stroke=v&&v.fill;break}case"target":{var v=u.node2.getVisual("style");c.stroke=v&&v.fill;break}}l[0]&&u.setVisual("fromSymbol",l[0]),l[1]&&u.setVisual("toSymbol",l[1]),f[0]&&u.setVisual("fromSymbolSize",f[0]),f[1]&&u.setVisual("toSymbolSize",f[1])})})}var Zl="-->",_s=function(r){return r.get("autoCurveness")||null},Bm=function(r,t){var e=_s(r),i=20,n=[];if(lt(e))i=e;else if(B(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},ua=function(r,t,e){var i=[r.id,r.dataIndex].join("."),n=[t.id,t.dataIndex].join(".");return[e.uid,i,n].join(Zl)},Nm=function(r){var t=r.split(Zl);return[t[0],t[2],t[1]].join(Zl)},lD=function(r,t){var e=ua(r.node1,r.node2,t);return t.__edgeMap[e]},fD=function(r,t){var e=ql(ua(r.node1,r.node2,t),t),i=ql(ua(r.node2,r.node1,t),t);return e+i},ql=function(r,t){var e=t.__edgeMap;return e[r]?e[r].length:0};function hD(r){_s(r)&&(r.__curvenessList=[],r.__edgeMap={},Bm(r))}function cD(r,t,e,i){if(_s(e)){var n=ua(r,t,e),a=e.__edgeMap,o=a[Nm(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 sh(r,t,e,i){var n=_s(t),a=B(n);if(!n)return null;var o=lD(r,t);if(!o)return null;for(var s=-1,u=0;u<o.length;u++)if(o[u]===e){s=u;break}var l=fD(r,t);Bm(t,l),r.lineStyle=r.lineStyle||{};var f=ua(r.node1,r.node2,t),h=t.__curvenessList,c=a||l%2?0:1;if(o.isForward)return h[c+s];var v=Nm(f),d=ql(v,t),m=h[s+d+c];return i?a?n&&n[0]===0?(d+c)%2?m:-m:((d%2?0:1)+c)%2?m:-m:(d+c)%2?m:-m:h[s+d+c]}function zm(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")])}),uh(e,r)}}function uh(r,t){r.eachEdge(function(e,i){var n=Ke(e.getModel().get(["lineStyle","curveness"]),-sh(e,t,i,!0),0),a=Qe(e.node1.getLayout()),o=Qe(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 vD(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 u=[],l=!1,f=0;f<o.length;f++){var h=a.get(o[f],s);isNaN(h)||(l=!0),u.push(h)}l?a.setItemLayout(s,n.dataToPoint(u)):a.setItemLayout(s,[NaN,NaN])}uh(a.graph,e)}else(!i||i==="none")&&zm(e)})}function En(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 On(r){var t=r.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var vd=Math.PI,Ru=[];function lh(r,t,e,i){var n=r.coordinateSystem;if(!(n&&n.type!=="view")){var a=n.getBoundingRect(),o=r.getData(),s=o.graph,u=a.width/2+a.x,l=a.height/2+a.y,f=Math.min(a.width,a.height)/2,h=o.count();if(o.setLayout({cx:u,cy:l}),!!h){if(e){var c=n.pointToData(i),v=c[0],d=c[1],m=[v-u,d-l];en(m,m),Ja(m,m,f),e.setLayout([u+m[0],l+m[1]],!0);var g=r.get(["circular","rotateLabel"]);Fm(e,g,u,l)}dD[t](r,s,o,f,u,l,h),s.eachEdge(function(p,y){var _=Ke(p.getModel().get(["lineStyle","curveness"]),sh(p,r,y),0),S=Qe(p.node1.getLayout()),b=Qe(p.node2.getLayout()),w,T=(S[0]+b[0])/2,C=(S[1]+b[1])/2;+_&&(_*=3,w=[u*_+T*(1-_),l*_+C*(1-_)]),p.setLayout([S,b,w])})}}}var dD={value:function(r,t,e,i,n,a,o){var s=0,u=e.getSum("value"),l=Math.PI*2/(u||o);t.eachNode(function(f){var h=f.getValue("value"),c=l*(u?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;Ru.length=o;var u=En(r);t.eachNode(function(h){var c=On(h);isNaN(c)&&(c=2),c<0&&(c=0),c*=u;var v=Math.asin(c/2/i);isNaN(v)&&(v=vd/2),Ru[h.dataIndex]=v,s+=v*2});var l=(2*vd-s)/o/2,f=0;t.eachNode(function(h){var c=l+Ru[h.dataIndex];f+=c,(!h.getLayout()||!h.getLayout().fixed)&&h.setLayout([i*Math.cos(f)+n,i*Math.sin(f)+a]),f+=c})}};function Fm(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 u=r.getLayout(),l=Math.atan2(u[1]-i,u[0]-e);l<0&&(l=Math.PI*2+l);var f=u[0]<e;f&&(l=l-Math.PI);var h=f?"left":"right";s.setTextConfig({rotation:-l,position:h,origin:"center"});var c=s.ensureState("emphasis");R(c.textConfig||(c.textConfig={}),{position:h})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function pD(r){r.eachSeriesByType("graph",function(t){t.get("layout")==="circular"&&lh(t,"symbolSize")})}var Ai=Zu;function gD(r,t,e){for(var i=r,n=t,a=e.rect,o=a.width,s=a.height,u=[a.x+o/2,a.y+s/2],l=e.gravity==null?.1:e.gravity,f=0;f<i.length;f++){var h=i[f];h.p||(h.p=ui(o*(Math.random()-.5)+u[0],s*(Math.random()-.5)+u[1])),h.pp=Qe(h.p),h.edges=null}var c=e.friction==null?.6:e.friction,v=c,d,m;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){m=g},step:function(g){d&&d(i,n);for(var p=[],y=i.length,_=0;_<n.length;_++){var S=n[_];if(!S.ignoreForceLayout){var b=S.n1,w=S.n2;qr(p,w.p,b.p);var T=qu(p)-S.d,C=w.w/(b.w+w.w);isNaN(C)&&(C=0),en(p,p),!b.fixed&&Ai(b.p,b.p,p,C*T*v),!w.fixed&&Ai(w.p,w.p,p,-(1-C)*T*v)}}for(var _=0;_<y;_++){var x=i[_];x.fixed||(qr(p,u,x.p),Ai(x.p,x.p,p,l*v))}for(var _=0;_<y;_++)for(var b=i[_],D=_+1;D<y;D++){var w=i[D];qr(p,w.p,b.p);var T=qu(p);T===0&&(Ey(p,Math.random()-.5,Math.random()-.5),T=1);var L=(b.rep+w.rep)/T/T;!b.fixed&&Ai(b.pp,b.pp,p,L),!w.fixed&&Ai(w.pp,w.pp,p,-L)}for(var A=[],_=0;_<y;_++){var x=i[_];x.fixed||(qr(A,x.p,x.pp),Ai(x.p,x.p,A,v),kt(x.pp,x.p))}v=v*.992;var M=v<.01;m&&m(i,n,M),g&&g(M)}}}function mD(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"),u=s.get("initLayout");t.preservedPoints?a.each(function(_){var S=a.getId(_);a.setItemLayout(_,i[S]||[NaN,NaN])}):!u||u==="none"?zm(t):u==="circular"&&lh(t,"value");var l=a.getDataExtent("value"),f=o.getDataExtent("value"),h=s.get("repulsion"),c=s.get("edgeLength"),v=B(h)?h:[h,h],d=B(c)?c:[c,c];d=[d[1],d[0]];var m=a.mapArray("value",function(_,S){var b=a.getItemLayout(S),w=$h(_,l,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=$h(_,f,d);isNaN(w)&&(w=(d[0]+d[1])/2);var T=b.getModel(),C=Ke(b.getModel().get(["lineStyle","curveness"]),-sh(b,t,S,!0),0);return{n1:m[b.node1.dataIndex],n2:m[b.node2.dataIndex],d:w,curveness:C,ignoreForceLayout:T.get("ignoreForceLayout")}}),p=e.getBoundingRect(),y=gD(m,g,{rect:p,gravity:s.get("gravity"),friction:s.get("friction")});y.beforeStep(function(_,S){for(var b=0,w=_.length;b<w;b++)_[b].fixed&&kt(_[b].p,n.getNodeByIndex(b).getLayout())}),y.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]||[],kt(A[0],D),kt(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=y,t.preservedPoints=i,y.step()}else t.forceLayout=null})}function yD(r,t,e){var i=Vf(r,t),n=R(r.getBoxLayoutParams(),{aspect:e}),a=Ki(n,i.refContainer);return y1(r,a,e)}function _D(r,t){var e=[];return r.eachSeriesByType("graph",function(i){p1({targetModel:i,coordSysType:"view",coordSysProvider:n});function n(){var a=i.getData(),o=a.mapArray(function(d){var m=a.getItemModel(d);return[+m.get("x"),+m.get("y")]}),s=[],u=[];V0(o,s,u),u[0]-s[0]===0&&(u[0]+=1,s[0]-=1),u[1]-s[1]===0&&(u[1]+=1,s[1]-=1);var l=(u[0]-s[0])/(u[1]-s[1]),f=yD(i,t,l);isNaN(l)&&(s=[f.x,f.y],u=[f.x+f.width,f.y+f.height]);var h=u[0]-s[0],c=u[1]-s[1],v=new Om(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 dd=li.prototype,Eu=as.prototype,Hm=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r})();(function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t})(Hm);function Ou(r){return isNaN(+r.cpx1)||isNaN(+r.cpy1)}var Vm=(function(r){N(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:G.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new Hm},t.prototype.buildPath=function(e,i){Ou(i)?dd.buildPath.call(this,e,i):Eu.buildPath.call(this,e,i)},t.prototype.pointAt=function(e){return Ou(this.shape)?dd.pointAt.call(this,e):Eu.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var i=this.shape,n=Ou(i)?[i.x2-i.x1,i.y2-i.y1]:Eu.tangentAt.call(this,e);return en(n,n)},t})(ht),ku=["fromSymbol","toSymbol"];function pd(r){return"_"+r+"Type"}function gd(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"),u=qf(n),l=gs(o||0,u);return i+u+l+(a||"")+(s||"")}function md(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"),u=qf(n),l=gs(o||0,u),f=da(i,-u[0]/2+l[0],-u[1]/2+l[1],u[0],u[1],null,s);return f.__specifiedRotation=a==null||isNaN(a)?void 0:+a*Math.PI/180||0,f.name=r,f}}function SD(r){var t=new Vm({name:"line",subPixelOptimize:!0});return Kl(t.shape,r),t}function Kl(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 wD=(function(r){N(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"),u=SD(o);u.shape.percent=0,Af(u,{z2:F(s,0),shape:{percent:1}},a,i),this.add(u),I(ku,function(l){var f=md(l,e,i);this.add(f),this[pd(l)]=gd(l,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),u={shape:{}};Kl(u.shape,s),wr(o,u,a,i),I(ku,function(l){var f=gd(l,e,i),h=pd(l);if(this[h]!==f){this.remove(this.childOfName(l));var c=md(l,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,u=n&&n.blurLineStyle,l=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),m=d.getModel("emphasis");s=m.getModel("lineStyle").getLineStyle(),u=d.getModel(["blur","lineStyle"]).getLineStyle(),l=d.getModel(["select","lineStyle"]).getLineStyle(),h=m.get("disabled"),c=m.get("focus"),v=m.get("blurScope"),f=fs(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=u,o.ensureState("select").style=l,I(ku,function(w){var T=this.childOfName(w);if(T){T.setColor(p),T.style.opacity=g.opacity;for(var C=0;C<ze.length;C++){var x=ze[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 y=a.getRawValue(i);Nf(this,f,{labelDataIndex:i,labelFetcher:{getFormattedLabel:function(w,T){return a.getFormattedLabel(w,T,e.dataType)}},inheritColor:p||G.color.neutral99,defaultOpacity:g.opacity,defaultText:(y==null?e.getName(i):isFinite(y)?_p(y):y)+""});var _=this.getTextContent();if(_){var S=f.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=S.get("position")||"middle";var b=S.get("distance");B(b)||(b=[b,b]),_.__labelDistance=b}this.setTextConfig({position:null,local:!0,inside:!1}),Zp(this,c,v,h)},t.prototype.highlight=function(){Qn(this)},t.prototype.downplay=function(){jn(this)},t.prototype.updateLayout=function(e,i){this.setLinePoints(e.getItemLayout(i))},t.prototype.setLinePoints=function(e){var i=this.childOfName("line");Kl(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 u=e.childOfName("line");if(!this.__dirty&&!u.__dirty)return;var l=u.shape.percent,f=u.pointAt(0),h=u.pointAt(l),c=qr([],h,f);en(c,c);function v(D,L){var A=D.__specifiedRotation;if(A==null){var M=u.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*l,i.markRedraw()),n&&(n.setPosition(h),v(n,1),n.scaleX=n.scaleY=o*l,n.markRedraw()),a&&!a.ignore){a.x=a.y=0,a.originX=a.originY=0;var d=void 0,m=void 0,g=a.__labelDistance,p=g[0]*o,y=g[1]*o,_=l/2,S=u.tangentAt(_),b=[S[1],-S[0]],w=u.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=-y,m="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":x=y,m="top";break;default:x=0,m="middle"}switch(a.__position){case"end":a.x=c[0]*p+h[0],a.y=c[1]*y+h[1],d=c[0]>.8?"left":c[0]<-.8?"right":"center",m=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":a.x=-c[0]*p+f[0],a.y=-c[1]*y+f[1],d=c[0]>.8?"right":c[0]<-.8?"left":"center",m=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||m,align:a.__align||d})}},t})(bt),bD=(function(){function r(t){this.group=new bt,this._LineCtor=t||wD}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=yd(t);t.diff(a).add(function(s){e._doAdd(t,s,o)}).update(function(s,u){e._doUpdate(a,t,u,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=yd(t),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e){this._progressiveEls=[];function i(s){!s.isGroup&&!TD(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var n=t.start;n<t.end;n++){var a=e.getItemLayout(n);if(Bu(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){us(this._progressiveEls||this.group,t)},r.prototype._doAdd=function(t,e,i){var n=t.getItemLayout(e);if(Bu(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(!Bu(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 TD(r){return r.animators&&r.animators.length>0}function yd(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:fs(t)}}function _d(r){return isNaN(r[0])||isNaN(r[1])}function Bu(r){return r&&!_d(r[0])&&!_d(r[1])}var Nu=[],zu=[],Fu=[],Pi=zt,Hu=ri,Sd=Math.abs;function wd(r,t,e){for(var i=r[0],n=r[1],a=r[2],o=1/0,s,u=e*e,l=.1,f=.1;f<=.9;f+=.1){Nu[0]=Pi(i[0],n[0],a[0],f),Nu[1]=Pi(i[1],n[1],a[1],f);var h=Sd(Hu(Nu,t)-u);h<o&&(o=h,s=f)}for(var c=0;c<32;c++){var v=s+l;zu[0]=Pi(i[0],n[0],a[0],s),zu[1]=Pi(i[1],n[1],a[1],s),Fu[0]=Pi(i[0],n[0],a[0],v),Fu[1]=Pi(i[1],n[1],a[1],v);var h=Hu(zu,t)-u;if(Sd(h)<.01)break;var d=Hu(Fu,t)-u;l/=2,h<0?d>=0?s=s+l:s=s-l:d>=0?s=s-l:s=s+l}return s}function Vu(r,t){var e=[],i=Xn,n=[[],[],[]],a=[[],[]],o=[];t/=2,r.eachEdge(function(s,u){var l=s.getLayout(),f=s.getVisual("fromSymbol"),h=s.getVisual("toSymbol");l.__original||(l.__original=[Qe(l[0]),Qe(l[1])],l[2]&&l.__original.push(Qe(l[2])));var c=l.__original;if(l[2]!=null){if(kt(n[0],c[0]),kt(n[1],c[2]),kt(n[2],c[1]),f&&f!=="none"){var v=On(s.node1),d=wd(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=On(s.node2),d=wd(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]}kt(l[0],n[0]),kt(l[1],n[2]),kt(l[2],n[1])}else{if(kt(a[0],c[0]),kt(a[1],c[1]),qr(o,a[1],a[0]),en(o,o),f&&f!=="none"){var v=On(s.node1);Zu(a[0],a[0],o,v*t)}if(h&&h!=="none"){var v=On(s.node2);Zu(a[1],a[1],o,-v*t)}kt(l[0],a[0]),kt(l[1],a[1])}})}var xD=ct();function CD(r){if(r)return xD(r).bridge}function bd(r){return r.type==="view"}var DD=(function(r){N(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 vC,a=new bD,o=this.group,s=new bt;this._controller=new XC(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 u=this._getThumbnailInfo();u&&u.bridge.reset(n);var l=this._symbolDraw,f=this._lineDraw;if(bd(o)){var h={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?this._mainGroup.attr(h):wr(this._mainGroup,h,e)}Vu(e.getGraph(),En(e));var c=e.getData();l.updateData(c);var v=e.getEdgeData();f.updateData(v),this._updateNodeAndLinkScale(),this._updateController(null,e,n),clearTimeout(this._layoutTimeout);var d=e.forceLayout,m=e.get(["force","layoutAnimation"]);d&&(s=!0,this._startForceLayoutIteration(d,n,m));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,m),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),lh(e,"symbolSize",S,[D.offsetX,D.offsetY]),a.updateLayout(e);break;default:c.setItemLayout(b,[w.x,w.y]),uh(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"&&(nt(w).focus=S.getAdjacentDataIndices())}}),c.graph.eachEdge(function(S){var b=S.getGraphicEl(),w=S.getModel().get(["emphasis","focus"]);b&&w==="adjacency"&&(nt(b).focus={edge:[S.dataIndex],node:[S.node1.dataIndex,S.node2.dataIndex]})});var p=e.get("layout")==="circular"&&e.get(["circular","rotateLabel"]),y=c.getLayout("cx"),_=c.getLayout("cy");c.graph.eachNode(function(S){Fm(S,p,y,_)}),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(u){a.updateLayout(a._model),(u||!o)&&(o=!0,a._renderThumbnail(a._model,i,a._symbolDraw,a._lineDraw)),(a._layouting=!u)&&(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(!bd(s)){a.disable();return}a.enable(i.get("roam"),{api:n,zInfo:{component:i},triggerInfo:{roamTrigger:i.get("roamTrigger"),isInSelf:function(u,l,f){return s.containPoint([l,f])},isInClip:function(u,l,f){return!e||e.contain(l,f)}}}),o.zoomLimit=i.get("scaleLimit"),o.zoom=s.getZoom(),a.off("pan").off("zoom").on("pan",function(u){n.dispatchAction({seriesId:i.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){n.dispatchAction({seriesId:i.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY})})},t.prototype.updateViewOnPan=function(e,i,n){this._active&&(KC(this._controllerHost,n.dx,n.dy),this._updateThumbnailWindow())},t.prototype.updateViewOnZoom=function(e,i,n){this._active&&(QC(this._controllerHost,n.zoom,n.originX,n.originY),this._updateNodeAndLinkScale(),Vu(e.getGraph(),En(e)),this._lineDraw.updateLayout(),i.updateLabelLayout(),this._updateThumbnailWindow())},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,i=e.getData(),n=En(e);i.eachItemGraphicEl(function(a,o){a&&a.setSymbolScale(n)})},t.prototype.updateLayout=function(e){this._active&&(Vu(e.getGraph(),En(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=CD(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 bt,u=n.group.children(),l=a.group.children(),f=new bt,h=new bt;s.add(h),s.add(f);for(var c=0;c<u.length;c++){var v=u[c],d=v.children()[0],m=v.x,g=v.y,p=$(d.shape),y=R(p,{width:d.scaleX,height:d.scaleY,x:m-d.scaleX/2,y:g-d.scaleY/2}),_=$(d.style),S=new d.constructor({shape:y,style:_,z2:151});h.add(S)}for(var c=0;c<l.length;c++){var v=l[c],b=v.children()[0],_=$(b.style),y=$(b.shape),w=new Vm({style:_,shape:y,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})(dr);function Ri(r){return"_EC_"+r}var ID=(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[Ri(t)]){console.error("Graph nodes have duplicate name or id");return}var n=new $r(t,e);return n.hostGraph=this,this.nodes.push(n),i[Ri(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[Ri(t)]},r.prototype.addEdge=function(t,e,i){var n=this._nodesMap,a=this._edgesMap;if(lt(t)&&(t=this.nodes[t]),lt(e)&&(e=this.nodes[e]),t instanceof $r||(t=n[Ri(t)]),e instanceof $r||(e=n[Ri(e)]),!(!t||!e)){var o=t.id+"-"+e.id,s=new Gm(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 $r&&(t=t.id),e instanceof $r&&(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 $r||(e=this._nodesMap[Ri(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 u=s.shift(),l=u[a],o=0;o<l.length;o++){var f=l[o],h=f.node1===u?f.node2:f.node1;if(!h.__visited){if(t.call(n,h,u))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 u=n[e.getRawIndex(s)];return u.node1.dataIndex>=0&&u.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})(),$r=(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=Y(),e=Y(),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],u=0;u<o.length;){var l=o[u];u++,e.set(l.dataIndex,!0);for(var f=l.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(u=0;u<s.length;){var m=s[u];u++,e.set(m.dataIndex,!0);for(var g=m.outEdges,h=0,p=g.length,y=void 0,_=void 0;h<p;h++)y=g[h],_=y.dataIndex,_>=0&&!t.hasKey(_)&&(t.set(_,!0),s.push(y.node2))}}}return{edge:t.keys(),node:e.keys()}},r})(),Gm=(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=Y(),e=Y();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,u=0,l=s.length,f=void 0,h=void 0;u<l;u++)f=o.inEdges[u],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,u=0,l=v.length,d=void 0,m=void 0;u<l;u++)d=c.outEdges[u],m=d.dataIndex,m>=0&&!t.hasKey(m)&&(t.set(m,!0),n.push(d.node2))}return{edge:t.keys(),node:e.keys()}},r})();function Um(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)}}}_e($r,Um("hostGraph","data"));_e(Gm,Um("hostGraph","edgeData"));function LD(r,t,e,i,n){for(var a=new ID(i),o=0;o<r.length;o++)a.addNode(gr(r[o].id,r[o].name,o),o);for(var s=[],u=[],l=0,o=0;o<t.length;o++){var f=t[o],h=f.source,c=f.target;a.addEdge(h,c,l)&&(u.push(f),s.push(gr(ye(f.id,null),h+" > "+c)),l++)}var v=e.get("coordinateSystem"),d;if(v==="cartesian2d"||v==="polar"||v==="matrix")d=Ox(r,e);else{var m=vs.get(v),g=m?m.dimensions||[]:[];ut(g,"value")<0&&g.concat(["value"]);var p=Tm(r,{coordDimensions:g,encodeDefine:e.getEncode()}).dimensions;d=new Go(p,e),d.initData(r)}var y=new Go(["value"],e);return y.initData(u,s),n&&n(d,y),JC({mainData:d,struct:a,structAttr:"graph",datas:{node:d,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}var MD=(function(r){N(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 dC(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),pl(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){hD(this);var s=LD(a,n,this,!0,u);return I(s.edges,function(l){cD(l.node1,l.node2,this,l.dataIndex)},this),s.data}function u(l,f){l.wrapMethod("getItemModel",function(d){var m=o._categoriesModels,g=d.getShallow("category"),p=m[g];return p&&(p.parentModel=d.parentModel,d.parentModel=p),d});var h=vt.prototype.getModel;function c(d,m){var g=h.call(this,d,m);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 m=d.slice();return d[0]==="label"?m[0]="edgeLabel":d[1]==="label"&&(m[1]="edgeLabel"),m}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),u=a.getName(s.node1.dataIndex),l=a.getName(s.node2.dataIndex),f=[];return u!=null&&f.push(u),l!=null&&f.push(l),ji("nameValue",{name:f.join(" > "),value:o.value,noValue:o.value==null})}var h=Hg({series:this,dataIndex:e,multipleSeries:i});return h},t.prototype._updateCategoriesData=function(){var e=j(this.option.categories||[],function(n){return n.value!=null?n:R({value:0},n)}),i=new Go(["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:G.color.neutral50,width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:G.color.primary}}},t})(yr);function OI(r){r.registerChartView(DD),r.registerSeriesModel(MD),r.registerProcessor(oD),r.registerVisual(sD),r.registerVisual(uD),r.registerLayout(vD),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,pD),r.registerLayout(mD),r.registerCoordinateSystem("graphView",{dimensions:Om.dimensions,create:_D}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Mt),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Mt),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=jC(o,t,n.get("scaleLimit"));n.setCenter&&n.setCenter(s.center),n.setZoom&&n.setZoom(s.zoom)})})}var Zr=ct(),Td=$,Gu=at,AD=(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,u=this._handle;if(!o||o==="hide"){s&&s.hide(),u&&u.hide();return}s&&s.show(),u&&u.show();var l={};this.makeElOption(l,a,t,e,i);var f=l.graphicKey;f!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=f;var h=this._moveAnimation=this.determineAnimation(t,e);if(!s)s=this._group=new bt,this.createPointerEl(s,l,t,e),this.createLabelEl(s,l,t,e),i.getZr().add(s);else{var c=St(xd,e,h);this.updatePointerEl(s,l,c),this.updateLabelEl(s,l,c,e)}Dd(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 u=nh(t).seriesDataCount,l=n.getExtent();return Math.abs(l[0]-l[1])/u>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=Zr(t).pointerEl=new kw[a.type](Td(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,i,n){if(e.label){var a=Zr(t).labelEl=new Vt(Td(e.label));t.add(a),Cd(a,n)}},r.prototype.updatePointerEl=function(t,e,i){var n=Zr(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=Zr(t).labelEl;a&&(a.setStyle(e.label.style),i(a,{x:e.label.x,y:e.label.y}),Cd(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=Of(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(l){mo(l.event)},onmousedown:Gu(this._onHandleDragMove,this,0,0),drift:Gu(this._onHandleDragMove,this),ondragend:Gu(this._onHandleDragEnd,this)}),i.add(n)),Dd(n,e,!1),n.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var u=a.get("size");B(u)||(u=[u,u]),n.scaleX=u[0]/2,n.scaleY=u[1]/2,Gg(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){xd(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Uu(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(Uu(i),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(Uu(n)),Zr(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),Bl(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 xd(r,t,e,i){Wm(Zr(e).lastProp,i)||(Zr(e).lastProp=i,t?wr(e,i,r):(e.stopAnimation(),e.attr(i)))}function Wm(r,t){if(H(r)&&H(t)){var e=!0;return I(t,function(i,n){e=e&&Wm(r[n],i)}),!!e}else return r===t}function Cd(r,t){r[t.get(["label","show"])?"show":"hide"]()}function Uu(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function Dd(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 PD(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 RD(r,t,e,i,n){var a=e.get("value"),o=Ym(a,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),u=cs(s.get("padding")||0),l=s.getFont(),f=N_(o,l),h=n.position,c=f.width+u[1]+u[3],v=f.height+u[0]+u[2],d=n.align;d==="right"&&(h[0]-=c),d==="center"&&(h[0]-=c/2);var m=n.verticalAlign;m==="bottom"&&(h[1]-=v),m==="middle"&&(h[1]-=v/2),ED(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:l,fill:s.getTextColor(),padding:u,backgroundColor:g}),z2:10}}function ED(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 Ym(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:xm(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};I(i,function(u){var l=e.getSeriesByIndex(u.seriesIndex),f=u.dataIndexInside,h=l&&l.getDataParams(f);h&&s.seriesData.push(h)}),z(o)?a=o.replace("{value}",a):q(o)&&(a=o(s))}return a}function Xm(r,t,e){var i=Oe();return hf(i,i,e.rotation),tl(i,i,e.position),Ef([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],i)}function OD(r,t,e,i,n,a){var o=si.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=n.get(["label","margin"]),RD(t,i,n,a,{position:Xm(i.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function kD(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function BD(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}var ND=(function(r){N(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,u=s.grid,l=a.get("type"),f=Id(u,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(i,!0));if(l&&l!=="none"){var c=PD(a),v=zD[l](s,h,f);v.style=c,e.graphicKey=v.type,e.pointer=v}var d=sd(u.getRect(),n);OD(i,e,d,n,a,o)},t.prototype.getHandleTransform=function(e,i,n){var a=sd(i.axis.grid.getRect(),i,{labelInside:!1});a.labelMargin=n.get(["handle","margin"]);var o=Xm(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,u=o.getGlobalExtent(!0),l=Id(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,h=[e.x,e.y];h[f]+=i[f],h[f]=Math.min(u[1],h[f]),h[f]=Math.max(u[0],h[f]);var c=(l[1]+l[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})(AD);function Id(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var zD={line:function(r,t,e){var i=kD([t,e[0]],[t,e[1]],Ld(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:BD([t-i/2,e[0]],[i,n],Ld(r))}}};function Ld(r){return r.dim==="x"?0:1}var FD=(function(r){N(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:G.color.border,width:1,type:"dashed"},shadowStyle:{color:G.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:G.color.neutral00,padding:[5,7,5,7],backgroundColor:G.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:G.color.accent40,throttle:40}},t})(it),qe=ct(),HD=I;function $m(r,t,e){if(!U.node){var i=t.getZr();qe(i).records||(qe(i).records={}),VD(i,t);var n=qe(i).records[r]||(qe(i).records[r]={});n.handler=e}}function VD(r,t){if(qe(r).initialized)return;qe(r).initialized=!0,e("click",St(Md,"click")),e("mousemove",St(Md,"mousemove")),e("globalout",UD);function e(i,n){r.on(i,function(a){var o=WD(t);HD(qe(r).records,function(s){s&&n(s,a,o.dispatchAction)}),GD(o.pendings,t)})}}function GD(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 UD(r,t,e){r.handler("leave",null,e)}function Md(r,t,e,i){t.handler(r,e,i)}function WD(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 Ql(r,t){if(!U.node){var e=t.getZr(),i=(qe(e).records||{})[r];i&&(qe(e).records[r]=null)}}var YD=(function(r){N(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";$m("axisPointer",n,function(s,u,l){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&l({type:"updateAxisPointer",currTrigger:s,x:u&&u.offsetX,y:u&&u.offsetY})})},t.prototype.remove=function(e,i){Ql("axisPointer",i)},t.prototype.dispose=function(e,i){Ql("axisPointer",i)},t.type="axisPointer",t})(Fe);function Zm(r,t){var e=[],i=r.seriesIndex,n;if(i==null||!(n=t.getSeriesByIndex(i)))return{point:[]};var a=n.getData(),o=ha(a,r);if(o==null||o<0||B(o))return{point:[]};var s=a.getItemGraphicEl(o),u=n.coordinateSystem;if(n.getTooltipPosition)e=n.getTooltipPosition(o)||[];else if(u&&u.dataToPoint)if(r.isStacked){var l=u.getBaseAxis(),f=u.getOtherAxis(l),h=f.dim,c=l.dim,v=h==="x"||h==="radius"?1:0,d=a.mapDimension(c),m=[];m[v]=a.get(d,o),m[1-v]=a.get(a.getCalculationInfo("stackResultDimension"),o),e=u.dataToPoint(m)||[]}else e=u.dataToPoint(a.getValues(j(u.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 Ad=ct();function XD(r,t,e){var i=r.currTrigger,n=[r.x,r.y],a=r,o=r.dispatchAction||at(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){vo(n)&&(n=Zm({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var u=vo(n),l=a.axesInfo,f=s.axesInfo,h=i==="leave"||vo(n),c={},v={},d={list:[],map:{}},m={showPointer:St(ZD,v),showTooltip:St(qD,d)};I(s.coordSysMap,function(p,y){var _=u||p.containPoint(n);I(s.coordSysAxesInfo[y],function(S,b){var w=S.axis,T=JD(l,S);if(!h&&_&&(!l||T)){var C=T&&T.value;C==null&&!u&&(C=w.pointToData(n)),C!=null&&Pd(S,C,m,!1,c)}})});var g={};return I(f,function(p,y){var _=p.linkGroup;_&&!v[y]&&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,Rd(S),Rd(p)))),g[p.key]=T}})}),I(g,function(p,y){Pd(f[y],p,m,!0,c)}),KD(v,f,c),QD(d,n,r,o),jD(f,o,e),c}}function Pd(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=$D(t,r),s=o.payloadBatch,u=o.snapToValue;s[0]&&n.seriesIndex==null&&R(n,s[0]),!i&&r.snap&&a.containData(u)&&u!=null&&(t=u),e.showPointer(r,t,s),e.showTooltip(r,o,u)}}function $D(r,t){var e=t.axis,i=e.dim,n=r,a=[],o=Number.MAX_VALUE,s=-1;return I(t.seriesModels,function(u,l){var f=u.getData().mapDimensionsAll(i),h,c;if(u.getAxisTooltipData){var v=u.getAxisTooltipData(f,r,e);c=v.dataIndices,h=v.nestestValue}else{if(c=u.indicesOfNearest(i,f[0],r,e.type==="category"?.5:null),!c.length)return;h=u.getData().get(f[0],c[0])}if(!(h==null||!isFinite(h))){var d=r-h,m=Math.abs(d);m<=o&&((m<o||d>=0&&s<0)&&(o=m,s=d,n=h,a.length=0),I(c,function(g){a.push({seriesIndex:u.seriesIndex,dataIndexInside:g,dataIndex:u.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:n}}function ZD(r,t,e,i){r[t.key]={value:e,payloadBatch:i}}function qD(r,t,e,i){var n=e.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!n.length)){var u=t.coordSys.model,l=sa(u),f=r.map[l];f||(f=r.map[l]={coordSysId:u.id,coordSysIndex:u.componentIndex,coordSysType:u.type,coordSysMainType:u.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 KD(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 QD(r,t,e,i){if(vo(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 jD(r,t,e){var i=e.getZr(),n="axisPointerLastHighlights",a=Ad(i)[n]||{},o=Ad(i)[n]={};I(r,function(l,f){var h=l.axisPointerModel.option;h.status==="show"&&l.triggerEmphasis&&I(h.seriesDataIndices,function(c){var v=c.seriesIndex+" | "+c.dataIndex;o[v]=c})});var s=[],u=[];I(a,function(l,f){!o[f]&&u.push(l)}),I(o,function(l,f){!a[f]&&s.push(l)}),u.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:u}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function JD(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 Rd(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 vo(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function tI(r){GC.registerAxisPointerClass("CartesianAxisPointer",ND),r.registerComponentModel(FD),r.registerComponentView(YD),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!B(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=kC(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},XD)}function eI(r,t){var e=cs(t.get("padding")),i=t.getItemStyle(["color","opacity"]);i.fill=t.get("backgroundColor");var n=new At({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 rI=(function(r){N(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:G.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:G.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:G.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:G.color.tertiary,fontSize:14}},t})(it);function qm(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function Km(r){if(U.domSupported){for(var t=document.documentElement.style,e=0,i=r.length;e<i;e++)if(r[e]in t)return r[e]}}var Qm=Km(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),iI=Km(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function jm(r,t){if(!r)return t;t=dg(t,!0);var e=r.indexOf(t);return r=e===-1?t:"-"+r.slice(0,e)+"-"+t,r.toLowerCase()}function nI(r,t){var e=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return e?e[t]:null}var aI=jm(iI,"transition"),fh=jm(Qm,"transform"),oI="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(U.transform3dSupported?"will-change:transform;":"");function sI(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function uI(r,t,e){if(!z(e)||e==="inside")return"";var i=r.get("backgroundColor"),n=r.get("borderWidth");t=ea(t);var a=sI(e),o=Math.max(Math.round(n)*1.5,6),s="",u=fh+":",l;ut(["left","right"],a)>-1?(s+="top:50%",u+="translateY(-50%) rotate("+(l=a==="left"?-225:-45)+"deg)"):(s+="left:50%",u+="translateX(-50%) rotate("+(l=a==="top"?225:45)+"deg)");var f=l*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;",m=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+u+";","border-bottom:"+d,"border-right:"+d,"background-color:"+i+";"];return'<div style="'+m.join("")+'"></div>'}function lI(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?",":"")+(U.transformSupported?""+fh+n:",left"+n+",top"+n)),aI+":"+a}function Ed(r,t,e){var i=r.toFixed(0)+"px",n=t.toFixed(0)+"px";if(!U.transformSupported)return e?"top:"+n+";left:"+i+";":[["top",n],["left",i]];var a=U.transform3dSupported,o="translate"+(a?"3d":"")+"("+i+","+n+(a?",0":"")+")";return e?"top:0;left:0;"+fh+":"+o+";":[["top",0],["left",0],[Qm,o]]}function fI(r){var t=[],e=r.get("fontSize"),i=r.getTextColor();i&&t.push("color:"+i),t.push("font:"+r.getFont());var n=F(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,u=r.get("textShadowOffsetY")||0;return a&&o&&t.push("text-shadow:"+s+"px "+u+"px "+o+"px "+a),I(["decoration","align"],function(l){var f=r.get(l);f&&t.push("text-"+l+":"+f)}),t.join(";")}function hI(r,t,e,i){var n=[],a=r.get("transitionDuration"),o=r.get("backgroundColor"),s=r.get("shadowBlur"),u=r.get("shadowColor"),l=r.get("shadowOffsetX"),f=r.get("shadowOffsetY"),h=r.getModel("textStyle"),c=Fg(r,"html"),v=l+"px "+f+"px "+s+"px "+u;return n.push("box-shadow:"+v),t&&a>0&&n.push(lI(a,e,i)),o&&n.push("background-color:"+o),I(["width","color","radius"],function(d){var m="border-"+d,g=dg(m),p=r.get(g);p!=null&&n.push(m+":"+p+(d==="color"?"":"px"))}),n.push(fI(h)),c!=null&&n.push("padding:"+cs(c).join("px ")+"px"),n.join(";")+";"}function Od(r,t,e,i,n){var a=t&&t.painter;if(e){var o=a&&a.getViewportRoot();o&&Fy(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 cI=(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,U.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&&(z(a)?document.querySelector(a):Wi(a)?a:q(a)&&a(t.getDom()));Od(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(u){if(u=u||window.event,!s._enterable){var l=n.handler,f=n.painter.getViewportRoot();se(f,u,!0),l.dispatch("mousemove",u)}},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=nI(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=oI+hI(t,!this._firstShow,this._longHide,this._enableDisplayTransition)+Ed(a[0],a[1],!0)+("border-color:"+ea(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(z(a)&&i.get("trigger")==="item"&&!qm(i)&&(s=uI(i,n,a)),z(t))o.innerHTML=t+s;else if(t){o.innerHTML="",B(t)||(t=[t]);for(var u=0;u<t.length;u++)Wi(t[u])&&t[u].parentNode!==o&&o.appendChild(t[u]);if(s&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=s,o.appendChild(l)}}},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(Od(i,this._zr,this._container,t,e),i[0]!=null&&i[1]!=null){var n=this.el.style,a=Ed(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",U.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(at(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;Hy(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})(),vI=(function(){function r(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),Bd(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;H(t)&&Xt("Passing DOM nodes as content is not supported in richText tooltip!"),this.el&&this._zr.remove(this.el);var s=i.getModel("textStyle");this.el=new Vt({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:s.get("textShadowColor"),fill:i.get(["textStyle","color"]),padding:Fg(i,"richText"),verticalAlign:"top",align:"left"},z:i.get("z")}),I(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(l){o.el.style[l]=i.get(l)}),I(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(l){o.el.style[l]=s.get(l)||0}),this._zr.add(this.el);var u=this;this.el.on("mouseover",function(){u._enterable&&(clearTimeout(u._hideTimeout),u._show=!0),u._inContent=!0}),this.el.on("mouseout",function(){u._enterable&&u._show&&u.hideLater(u._hideDelay),u._inContent=!1})},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),i=kd(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;Bd(n,this._zr,t,e),t=n[0],e=n[1];var a=i.style,o=ur(a.borderWidth||0),s=kd(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(at(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r})();function ur(r){return Math.max(0,r)}function kd(r){var t=ur(r.shadowBlur||0),e=ur(r.shadowOffsetX||0),i=ur(r.shadowOffsetY||0);return{left:ur(t-e),right:ur(t+e),top:ur(t-i),bottom:ur(t+i)}}function Bd(r,t,e,i){r[0]=e,r[1]=i,r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var dI=new At({shape:{x:-1,y:-1,width:2,height:2}}),pI=(function(r){N(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(!(U.node||!i.getDom())){var n=e.getComponent("tooltip"),a=this._renderMode=g0(n.get("renderMode"));this._tooltipContent=a==="richText"?new vI(i):new cI(i,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},t.prototype.render=function(e,i,n){if(!(U.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")?Gg(this,"_updatePosition",50,"fixRate"):Bl(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel,i=e.get("triggerOn");$m("itemTooltip",this._api,at(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||U.node||!n.getDom())){var o=Nd(a,n);this._ticket="";var s=a.dataByCoordSys,u=_I(a,i,n);if(u){var l=u.el.getBoundingRect().clone();l.applyTransform(u.el.transform),this._tryShow({offsetX:l.x+l.width/2,offsetY:l.y+l.height/2,target:u.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=dI;f.x=a.x,f.y=a.y,f.update(),nt(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=Zm(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(Nd(a,n))},t.prototype._manuallyAxisShowTip=function(e,i,n,a){var o=a.seriesIndex,s=a.dataIndex,u=i.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||u==null)){var l=i.getSeriesByIndex(o);if(l){var f=l.getData(),h=Tn([f.getItemModel(s),l,(l.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=nt(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var u,l;Pn(n,function(f){if(f.tooltipDisabled)return u=l=null,!0;u||l||(nt(f).dataIndex!=null?u=f:nt(f).tooltipConfig!=null&&(l=f))},!0),u?this._showSeriesItemTooltip(e,u,i):l?this._showComponentItemTooltip(e,l,i):this._hide(i)}else this._lastDataByCoordSys=null,this._hide(i)}},t.prototype._showOrMove=function(e,i){var n=e.get("showDelay");i=at(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=Tn([i.tooltipOption],a),u=this._renderMode,l=[],f=ji("section",{blocks:[],noHeader:!0}),h=[],c=new gu;I(e,function(y){I(y.dataByAxis,function(_){var S=n.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(!(!S||b==null)){var w=Ym(b,S.axis,n,_.seriesDataIndices,_.valueLabelOpt),T=ji("section",{header:w,noHeader:!Re(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=xm(S.axis,{value:b}),L.axisValueLabel=w,L.marker=c.makeTooltipMarker("item",ea(L.color),u);var A=lv(x.formatTooltip(D,!0,null)),M=A.frag;if(M){var P=Tn([x],a).get("valueFormatter");T.blocks.push(P?R({valueFormatter:P},M):M)}A.text&&h.push(A.text),l.push(L)}})}})}),f.blocks.reverse(),h.reverse();var v=i.position,d=s.get("order"),m=dv(f,c,u,d,n.get("useUTC"),s.get("textStyle"));m&&h.unshift(m);var g=u==="richText"?`
22
+
23
+ `:"<br/>",p=h.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,l)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,l):this._showTooltipContent(s,p,l,Math.random()+"",o[0],o[1],v,null,c)})},t.prototype._showSeriesItemTooltip=function(e,i,n){var a=this._ecModel,o=nt(i),s=o.seriesIndex,u=a.getSeriesByIndex(s),l=o.dataModel||u,f=o.dataIndex,h=o.dataType,c=l.getData(h),v=this._renderMode,d=e.positionDefault,m=Tn([c.getItemModel(f),l,u&&(u.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=m.get("trigger");if(!(g!=null&&g!=="item")){var p=l.getDataParams(f,h),y=new gu;p.marker=y.makeTooltipMarker("item",ea(p.color),v);var _=lv(l.formatTooltip(f,!1,h)),S=m.get("order"),b=m.get("valueFormatter"),w=_.frag,T=w?dv(b?R({valueFormatter:b},w):w,y,v,S,a.get("useUTC"),m.get("textStyle")):_.text,C="item_"+l.name+"_"+f;this._showOrMove(m,function(){this._showTooltipContent(m,T,p,C,e.offsetX,e.offsetY,e.position,e.target,y)}),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=nt(i),s=o.tooltipConfig,u=s.option||{},l=u.encodeHTMLContent;if(z(u)){var f=u;u={content:f,formatter:f},l=!0}l&&a&&u.content&&(u=$(u),u.content=Wt(u.content));var h=[u],c=this._ecModel.getComponent(o.componentMainType,o.componentIndex);c&&h.push(c),h.push({formatter:u.content});var v=e.positionDefault,d=Tn(h,this._tooltipModel,v?{position:v}:null),m=d.get("content"),g=Math.random()+"",p=new gu;this._showOrMove(d,function(){var y=$(d.get("formatterParams")||{});this._showTooltipContent(d,m,y,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,u,l,f){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var h=this._tooltipContent;h.setEnterable(e.get("enterable"));var c=e.get("formatter");u=u||e.get("position");var v=i,d=this._getNearestPoint([o,s],n,e.get("trigger"),e.get("borderColor"),e.get("defaultBorderColor",!0)),m=d.color;if(c)if(z(c)){var g=e.ecModel.get("useUTC"),p=B(n)?n[0]:n,y=p&&p.axisType&&p.axisType.indexOf("time")>=0;v=c,y&&(v=vg(p.axisValue,v,g)),v=pg(v,n,!0)}else if(q(c)){var _=at(function(S,b){S===this._ticket&&(h.setContent(b,f,e,m,u),this._updatePosition(e,u,o,s,h,n,l))},this);this._ticket=a,v=c(n,a,_)}else v=c;h.setContent(v,f,e,m,u),h.show(e,m),this._updatePosition(e,u,o,s,h,n,l)}},t.prototype._getNearestPoint=function(e,i,n,a,o){if(n==="axis"||B(i))return{color:a||o};if(!B(i))return{color:a||i.color||i.borderColor}},t.prototype._updatePosition=function(e,i,n,a,o,s,u){var l=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=u&&u.getBoundingRect().clone();if(u&&d.applyTransform(u.transform),q(i)&&(i=i([n,a],s,o.el,d,{viewSize:[l,f],contentSize:h.slice()})),B(i))n=Yt(i[0],l),a=Yt(i[1],f);else if(H(i)){var m=i;m.width=h[0],m.height=h[1];var g=Ki(m,{width:l,height:f});n=g.x,a=g.y,c=null,v=null}else if(z(i)&&u){var p=yI(i,d,h,e.get("borderWidth"));n=p[0],a=p[1]}else{var p=gI(n,a,o,l,f,c?null:20,v?null:20);n=p[0],a=p[1]}if(c&&(n-=zd(c)?h[0]/2:c==="right"?h[0]:0),v&&(a-=zd(v)?h[1]/2:v==="bottom"?h[1]:0),qm(e)){var p=mI(n,a,o,l,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,u){var l=s.dataByAxis||[],f=e[u]||{},h=f.dataByAxis||[];o=o&&l.length===h.length,o&&I(l,function(c,v){var d=h[v]||{},m=c.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&c.value===d.value&&c.axisType===d.axisType&&c.axisId===d.axisId&&m.length===g.length,o&&I(m,function(p,y){var _=g[y];o=o&&p.seriesIndex===_.seriesIndex&&p.dataIndex===_.dataIndex}),a&&I(c.seriesDataIndices,function(p){var y=p.seriesIndex,_=i[y],S=a[y];_&&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){U.node||!i.getDom()||(Bl(this,"_updatePosition"),this._tooltipContent.dispose(),Ql("itemTooltip",i))},t.type="tooltip",t})(Fe);function Tn(r,t,e){var i=t.ecModel,n;e?(n=new vt(e,i,i),n=new vt(t.option,n,i)):n=t;for(var a=r.length-1;a>=0;a--){var o=r[a];o&&(o instanceof vt&&(o=o.get("tooltip",!0)),z(o)&&(o={formatter:o}),o&&(n=new vt(o,n,i)))}return n}function Nd(r,t){return r.dispatchAction||at(t.dispatchAction,t)}function gI(r,t,e,i,n,a,o){var s=e.getSize(),u=s[0],l=s[1];return a!=null&&(r+u+a+2>i?r-=u+a:r+=a),o!=null&&(t+l+o>n?t-=l+o:t+=o),[r,t]}function mI(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 yI(r,t,e,i){var n=e[0],a=e[1],o=Math.ceil(Math.SQRT2*i)+8,s=0,u=0,l=t.width,f=t.height;switch(r){case"inside":s=t.x+l/2-n/2,u=t.y+f/2-a/2;break;case"top":s=t.x+l/2-n/2,u=t.y-a-o;break;case"bottom":s=t.x+l/2-n/2,u=t.y+f+o;break;case"left":s=t.x-n-o,u=t.y+f/2-a/2;break;case"right":s=t.x+l+o,u=t.y+f/2-a/2}return[s,u]}function zd(r){return r==="center"||r==="middle"}function _I(r,t,e){var i=df(r).queryOptionMap,n=i.keys()[0];if(!(!n||n==="series")){var a=ca(t,n,i.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=e.getViewOfComponentModel(o),u;if(s.group.traverse(function(l){var f=nt(l).tooltipConfig;if(f&&f.name===r.name)return u=l,!0}),u)return{componentMainType:n,componentIndex:o.componentIndex,el:u}}}}function kI(r){oa(tI),r.registerComponentModel(rI),r.registerComponentView(pI),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Mt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Mt)}var SI=(function(r){N(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:G.size.m,backgroundColor:G.color.transparent,borderColor:G.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:G.color.primary},subtextStyle:{fontSize:12,color:G.color.quaternary}},t})(it),wI=(function(r){N(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"),u=e.get("textAlign"),l=F(e.get("textBaseline"),e.get("textVerticalAlign")),f=new Vt({style:mr(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),h=f.getBoundingRect(),c=e.get("subtext"),v=new Vt({style:mr(s,{text:c,fill:s.getTextColor(),y:h.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),m=e.get("sublink"),g=e.get("triggerEvent",!0);f.silent=!d&&!g,v.silent=!m&&!g,d&&f.on("click",function(){Uc(d,"_"+e.get("target"))}),m&&v.on("click",function(){Uc(m,"_"+e.get("subtarget"))}),nt(f).eventData=nt(v).eventData=g?{componentType:"title",componentIndex:e.componentIndex}:null,a.add(f),c&&a.add(v);var p=a.getBoundingRect(),y=e.getBoxLayoutParams();y.width=p.width,y.height=p.height;var _=Vf(e,n),S=Ki(y,_.refContainer,e.get("padding"));u||(u=e.get("left")||e.get("right"),u==="middle"&&(u="center"),u==="right"?S.x+=S.width:u==="center"&&(S.x+=S.width/2)),l||(l=e.get("top")||e.get("bottom"),l==="center"&&(l="middle"),l==="bottom"?S.y+=S.height:l==="middle"&&(S.y+=S.height/2),l=l||"top"),a.x=S.x,a.y=S.y,a.markRedraw();var b={align:u,verticalAlign:l};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 At({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})(Fe);function BI(r){r.registerComponentModel(SI),r.registerComponentView(wI)}var bI=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"])}},jl=(function(r){N(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"]),B(i)&&I(i,function(a,o){z(a)&&(a={type:a}),i[o]=dt(a,bI(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(u){var l=u.name;n.push(l);var f;if(u.legendVisualProvider){var h=u.legendVisualProvider,c=h.getAllNames();e.isSeriesFiltered(u)||(n=n.concat(c)),c.length?i=i.concat(c):f=!0}else f=!0;f&&vf(u)&&i.push(u.name)}),this._availableNames=n;var a=this.get("data")||i,o=Y(),s=j(a,function(u){return(z(u)||lt(u))&&(u={name:u}),o.get(u.name)?null:(o.set(u.name,!0),new vt(u,this,this.ecModel))},this);this._data=te(s,function(u){return!!u})},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])&&ut(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:G.size.m,align:"auto",backgroundColor:G.color.transparent,borderColor:G.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:G.color.disabled,inactiveBorderColor:G.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:G.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:G.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:G.color.tertiary,borderWidth:1,borderColor:G.color.border},emphasis:{selectorLabel:{show:!0,color:G.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t})(it),Ei=St,Jl=I,Ka=bt,Jm=(function(r){N(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 Ka),this.group.add(this._selectorGroup=new Ka),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 u=e.get("selector",!0),l=e.get("selectorPosition",!0);u&&(!l||l==="auto")&&(l=s==="horizontal"?"end":"start"),this.renderInner(o,e,i,n,u,s,l);var f=Vf(e,n).refContainer,h=e.getBoxLayoutParams(),c=e.get("padding"),v=Ki(h,f,c),d=this.layoutInner(e,o,v,a,u,l),m=Ki(pt({width:d.width,height:d.height},h),f,c);this.group.x=m.x-d.x,this.group.y=m.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=eI(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,u){var l=this.getContentGroup(),f=Y(),h=i.get("selectedMode"),c=i.get("triggerEvent"),v=[];n.eachRawSeries(function(d){!d.get("legendHoverLink")&&v.push(d.id)}),Jl(i.getData(),function(d,m){var g=this,p=d.get("name");if(!this.newlineDisabled&&(p===""||p===`
24
+ `)){var y=new Ka;y.newline=!0,l.add(y);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,m,d,i,e,b,T,w,h,a);C.on("click",Ei(Fd,p,null,a,v)).on("mouseover",Ei(tf,_.name,null,a,v)).on("mouseout",Ei(ef,_.name,null,a,v)),n.ssr&&C.eachChild(function(x){var D=nt(x);D.seriesIndex=_.seriesIndex,D.dataIndex=m,D.ssrType="legend"}),c&&C.eachChild(function(x){g.packEventData(x,i,_,m,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"),E=vr(M.fill);E&&E[3]===0&&(E[3]=.2,M=R(R({},M),{fill:Ko(E,"rgba")}));var k=this._createItem(x,p,m,d,i,e,{},M,P,h,a);k.on("click",Ei(Fd,null,p,a,v)).on("mouseover",Ei(tf,null,p,a,v)).on("mouseout",Ei(ef,null,p,a,v)),n.ssr&&k.eachChild(function(Z){var J=nt(Z);J.seriesIndex=x.seriesIndex,J.dataIndex=m,J.ssrType="legend"}),c&&k.eachChild(function(Z){D.packEventData(Z,i,x,m,p)}),f.set(p,!0)}},this);f.get(p)||console.warn(p+" series not exists. Legend data should be same with series name or data name.")}},this),o&&this._createSelector(o,i,a,s,u)},t.prototype.packEventData=function(e,i,n,a,o){var s={componentType:"legend",componentIndex:i.componentIndex,dataIndex:a,value:o,seriesIndex:n.seriesIndex};nt(e).eventData=s},t.prototype._createSelector=function(e,i,n,a,o){var s=this.getSelectorGroup();Jl(e,function(l){var f=l.type,h=new Vt({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"]);Nf(h,{normal:c,emphasis:v},{defaultText:l.title}),Tl(h)})},t.prototype._createItem=function(e,i,n,a,o,s,u,l,f,h,c){var v=e.visualDrawType,d=o.get("itemWidth"),m=o.get("itemHeight"),g=o.isSelected(i),p=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var S=TI(f,a,u,l,v,g,c),b=new Ka,w=a.getModel("textStyle");if(q(e.getLegendIcon)&&(!_||_==="inherit"))b.add(e.getLegendIcon({itemWidth:d,itemHeight:m,icon:f,iconRotate:p,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:y}));else{var T=_==="inherit"&&e.getData().getVisual("symbol")?p==="inherit"?e.getData().getVisual("symbolRotate"):p:0;b.add(xI({itemWidth:d,itemHeight:m,icon:f,iconRotate:T,itemStyle:S.itemStyle,symbolKeepAspect:y}))}var C=s==="left"?d+5:-5,x=s,D=o.get("formatter"),L=i;z(D)&&D?L=D.replace("{name}",i??""):q(D)&&(L=D(i));var A=g?w.getTextColor():a.get("inactiveColor");b.add(new Vt({style:mr(w,{text:L,x:C,y:m/2,fill:A,align:x,verticalAlign:"middle"},{inheritColor:A})}));var M=new At({shape:b.getBoundingRect(),style:{fill:"transparent"}}),P=a.getModel("tooltip");return P.get("show")&&ss({el:M,componentModel:o,itemName:i,itemTooltipOption:P.option}),b.add(M),b.eachChild(function(E){E.silent=!0}),M.silent=!h,this.getContentGroup().add(b),Tl(b),b.__legendDataIndex=n,b},t.prototype.layoutInner=function(e,i,n,a,o,s){var u=this.getContentGroup(),l=this.getSelectorGroup();Un(e.get("orient"),u,e.get("itemGap"),n.width,n.height);var f=u.getBoundingRect(),h=[-f.x,-f.y];if(l.markRedraw(),u.markRedraw(),o){Un("horizontal",l,e.get("selectorItemGap",!0));var c=l.getBoundingRect(),v=[-c.x,-c.y],d=e.get("selectorButtonGap",!0),m=e.getOrient().index,g=m===0?"width":"height",p=m===0?"height":"width",y=m===0?"y":"x";s==="end"?v[m]+=f[g]+d:h[m]+=c[g]+d,v[1-m]+=f[p]/2-c[p]/2,l.x=v[0],l.y=v[1],u.x=h[0],u.y=h[1];var _={x:0,y:0};return _[g]=f[g]+d+c[g],_[p]=Math.max(f[p],c[p]),_[y]=Math.min(0,c[y]+v[1-m]),_}else return u.x=h[0],u.y=h[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t})(Fe);function TI(r,t,e,i,n,a,o){function s(g,p){g.lineWidth==="auto"&&(g.lineWidth=p.lineWidth>0?2:0),Jl(g,function(y,_){g[_]==="inherit"&&(g[_]=p[_])})}var u=t.getModel("itemStyle"),l=u.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",h=u.getShallow("decal");l.decal=!h||h==="inherit"?i.decal:Vl(h,o),l.fill==="inherit"&&(l.fill=i[n]),l.stroke==="inherit"&&(l.stroke=i[f]),l.opacity==="inherit"&&(l.opacity=(n==="fill"?i:e).opacity),s(l,i);var c=t.getModel("lineStyle"),v=c.getLineStyle();if(s(v,e),l.fill==="auto"&&(l.fill=i.fill),l.stroke==="auto"&&(l.stroke=i.fill),v.stroke==="auto"&&(v.stroke=i.fill),!a){var d=t.get("inactiveBorderWidth"),m=l[f];l.lineWidth=d==="auto"?i.lineWidth>0&&m?2:0:l.lineWidth,l.fill=t.get("inactiveColor"),l.stroke=t.get("inactiveBorderColor"),v.stroke=c.get("inactiveColor"),v.lineWidth=c.get("inactiveWidth")}return{itemStyle:l,lineStyle:v}}function xI(r){var t=r.icon||"roundRect",e=da(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=G.color.neutral00,e.style.lineWidth=2),e}function Fd(r,t,e,i){ef(r,t,e,i),e.dispatchAction({type:"legendToggleSelect",name:r??t}),tf(r,t,e,i)}function ty(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 tf(r,t,e,i){ty(e)||e.dispatchAction({type:"highlight",seriesName:r,name:t,excludeSeriesId:i})}function ef(r,t,e,i){ty(e)||e.dispatchAction({type:"downplay",seriesName:r,name:t,excludeSeriesId:i})}function CI(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 xn(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),Hd(s,n),a.push(s.componentIndex)});var o={};return e.eachComponent("legend",function(s){I(n,function(u,l){s[u?"select":"unSelect"](l)}),Hd(s,o)}),i?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function Hd(r,t){var e=t||{};return I(r.getData(),function(i){var n=i.get("name");if(!(n===`
25
+ `||n==="")){var a=r.isSelected(n);me(e,n)?e[n]=e[n]&&a:e[n]=a}}),e}function DI(r){r.registerAction("legendToggleSelect","legendselectchanged",St(xn,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",St(xn,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",St(xn,"inverseSelect")),r.registerAction("legendSelect","legendselected",St(xn,"select")),r.registerAction("legendUnSelect","legendunselected",St(xn,"unSelect"))}function ey(r){r.registerComponentModel(jl),r.registerComponentView(Jm),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,CI),r.registerSubTypeDefaulter("legend",function(){return"plain"}),DI(r)}var II=(function(r){N(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=Gf(e);r.prototype.init.call(this,e,i,n),Vd(this,e,a)},t.prototype.mergeOption=function(e,i){r.prototype.mergeOption.call(this,e,i),Vd(this,this.option,e)},t.type="legend.scroll",t.defaultOption=Kw(jl.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:G.color.accent50,pageIconInactiveColor:G.color.accent10,pageIconSize:15,pageTextStyle:{color:G.color.tertiary},animationDurationUpdate:800}),t})(jl);function Vd(r,t,e){var i=r.getOrient(),n=[1,1];n[i.index]=0,ra(t,e,{type:"box",ignoreSize:!!n})}var Gd=bt,Wu=["width","height"],Yu=["x","y"],LI=(function(r){N(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 Gd),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Gd)},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,u){var l=this;r.prototype.renderInner.call(this,e,i,n,a,o,s,u);var f=this._controllerGroup,h=i.get("pageIconSize",!0),c=B(h)?h:[h,h];d("pagePrev",0);var v=i.getModel("pageTextStyle");f.add(new Vt({name:"pageText",style:{text:"xx/xx",fill:v.getTextColor(),font:v.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(m,g){var p=m+"DataIndex",y=Of(i.get("pageIcons",!0)[i.getOrient().name][g],{onclick:at(l._pageGo,l,p,i,a)},{x:-c[0]/2,y:-c[1]/2,width:c[0],height:c[1]});y.name=m,f.add(y)}},t.prototype.layoutInner=function(e,i,n,a,o,s){var u=this.getSelectorGroup(),l=e.getOrient().index,f=Wu[l],h=Yu[l],c=Wu[1-l],v=Yu[1-l];o&&Un("horizontal",u,e.get("selectorItemGap",!0));var d=e.get("selectorButtonGap",!0),m=u.getBoundingRect(),g=[-m.x,-m.y],p=$(n);o&&(p[f]=n[f]-m[f]-d);var y=this._layoutContentAndController(e,a,p,l,f,c,v,h);if(o){if(s==="end")g[l]+=y[f]+d;else{var _=m[f]+d;g[l]-=_,y[h]-=_}y[f]+=m[f]+d,g[1-l]+=y[v]+y[c]/2-m[c]/2,y[c]=Math.max(y[c],m[c]),y[v]=Math.min(y[v],m[v]+g[1-l]),u.x=g[0],u.y=g[1],u.markRedraw()}return y},t.prototype._layoutContentAndController=function(e,i,n,a,o,s,u,l){var f=this.getContentGroup(),h=this._containerGroup,c=this._controllerGroup;Un(e.get("orient"),f,e.get("itemGap"),a?n.width:null,a?null:n.height),Un("horizontal",c,e.get("pageButtonItemGap",!0));var v=f.getBoundingRect(),d=c.getBoundingRect(),m=this._showController=v[o]>n[o],g=[-v.x,-v.y];i||(g[a]=f[l]);var p=[0,0],y=[-d.x,-d.y],_=F(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(m){var S=e.get("pageButtonPosition",!0);S==="end"?y[a]+=n[o]-d[o]:p[a]+=d[o]+_}y[1-a]+=v[s]/2-d[s]/2,f.setPosition(g),h.setPosition(p),c.setPosition(y);var b={x:0,y:0};if(b[o]=m?n[o]:v[o],b[s]=Math.max(v[s],d[s]),b[u]=Math.min(0,d[u]+y[1-a]),h.__rectSize=n[o],m){var w={x:0,y:0};w[o]=Math.max(n[o]-d[o]-_,0),w[s]=b[s],h.setClipPath(new At({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&&wr(f,{x:T.contentPosition[0],y:T.contentPosition[1]},m?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,u=s!=null?s+1:0,l=i.pageCount;a&&o&&a.setStyle("text",z(o)?o.replace("{current}",u==null?"":u+"").replace("{total}",l==null?"":l+""):o({current:u,total:l}))},t.prototype._getPageInfo=function(e){var i=e.get("scrollDataIndex",!0),n=this.getContentGroup(),a=this._containerGroup.__rectSize,o=e.getOrient().index,s=Wu[o],u=Yu[o],l=this._findTargetItemIndex(i),f=n.children(),h=f[l],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 m=S(h);d.contentPosition[o]=-m.s;for(var g=l+1,p=m,y=m,_=null;g<=c;++g)_=S(f[g]),(!_&&y.e>p.s+a||_&&!b(_,p.s))&&(y.i>p.i?p=y:p=_,p&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=p.i),++d.pageCount)),y=_;for(var g=l-1,p=m,y=m,_=null;g>=-1;--g)_=S(f[g]),(!_||!b(y,_.s))&&p.i<y.i&&(y=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[u]+w[u];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 u=o.__legendDataIndex;a==null&&u!=null&&(a=s),u===e&&(i=s)}),i??a},t.type="legend.scroll",t})(Jm);function MI(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 AI(r){oa(ey),r.registerComponentModel(II),r.registerComponentView(LI),MI(r)}function NI(r){oa(ey),oa(AI)}export{RI as E,NI as a,kI as b,OI as c,EI as d,BI as i,oa as u};