decocms 4.72.3 → 4.74.0

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 (260) hide show
  1. package/dist/client/assets/{AlertCircle-CX23NCuO.js → AlertCircle-BaauQIwC.js} +1 -1
  2. package/dist/client/assets/{AreaChart-CRvFGO5O.js → AreaChart-5GoV9SRg.js} +1 -1
  3. package/dist/client/assets/{ArrowUp-ChoUWc1b.js → ArrowUp-C814v0pE.js} +1 -1
  4. package/dist/client/assets/{ArrowUpRight-Bq-zX9ha.js → ArrowUpRight-BLP3DLju.js} +1 -1
  5. package/dist/client/assets/{Check-BbAbdPfp.js → Check-DYPRi7NO.js} +1 -1
  6. package/dist/client/assets/{CheckCircle-Day5nLHt.js → CheckCircle-D_t3rWUI.js} +1 -1
  7. package/dist/client/assets/{ChevronDown-BsEi-r9q.js → ChevronDown-wHLuFr3i.js} +1 -1
  8. package/dist/client/assets/{ChevronRight-B9mybD1s.js → ChevronRight-BARfL9-W.js} +1 -1
  9. package/dist/client/assets/{ChevronUp-BWoVqFrM.js → ChevronUp-CRmxYAjE.js} +1 -1
  10. package/dist/client/assets/{Circle-Bj_xS3WU.js → Circle-DuelqjM2.js} +1 -1
  11. package/dist/client/assets/Copy01-BwtpNAKR.js +1 -0
  12. package/dist/client/assets/{DotsVertical-BQRa2EB9.js → DotsVertical-B_jKX962.js} +1 -1
  13. package/dist/client/assets/Eye-CM4SfxEo.js +1 -0
  14. package/dist/client/assets/{FilterLines-C5i4i3WB.js → FilterLines-CwEBxGZP.js} +1 -1
  15. package/dist/client/assets/{Flag01-C7YxvVFh.js → Flag01-RtD7xNTJ.js} +1 -1
  16. package/dist/client/assets/{Globe01-CC0A4U7g.js → Globe01-B-4z45oj.js} +1 -1
  17. package/dist/client/assets/{Globe04-BV89vsfi.js → Globe04-D7ZgONc6.js} +1 -1
  18. package/dist/client/assets/{HardDrive-CA9cG4ej.js → HardDrive-DNueik1y.js} +1 -1
  19. package/dist/client/assets/{Key01-Y2tTMtA8.js → Key01-DrwX5nx2.js} +1 -1
  20. package/dist/client/assets/{LayoutLeft-C6uN3ryJ.js → LayoutLeft-CHLKhLgL.js} +1 -1
  21. package/dist/client/assets/{LinkExternal01-CbW1jJhi.js → LinkExternal01-022iaJNF.js} +1 -1
  22. package/dist/client/assets/{List-MOccGrJp.js → List-jObuFUL_.js} +1 -1
  23. package/dist/client/assets/{Monitor01-DBUBWT-e.js → Monitor01-BkHN4rM2.js} +1 -1
  24. package/dist/client/assets/{Package-BL3B6ONo.js → Package-DYdmCLl6.js} +1 -1
  25. package/dist/client/assets/{Palette-B0oAitOJ.js → Palette-BWa7ee-4.js} +1 -1
  26. package/dist/client/assets/{Play-zjQOd6w0.js → Play-DYP9-OJo.js} +1 -1
  27. package/dist/client/assets/{Plus-DATZ4-ND.js → Plus-DKATXnIq.js} +1 -1
  28. package/dist/client/assets/{SearchLg-B4W4xrFH.js → SearchLg-crE3yQZJ.js} +1 -1
  29. package/dist/client/assets/{SearchMd-CKL74aOj.js → SearchMd-CbytZ1-S.js} +1 -1
  30. package/dist/client/assets/{Settings02-DAAnVZLO.js → Settings02-1LTNhTXj.js} +1 -1
  31. package/dist/client/assets/{Shield01-IlYcL8Fi.js → Shield01-CULBCC4Z.js} +1 -1
  32. package/dist/client/assets/{Star01-Bb61R21H.js → Star01-CtWX4nA3.js} +1 -1
  33. package/dist/client/assets/{Stars01-Bnuoinbt.js → Stars01-COE1U6xi.js} +1 -1
  34. package/dist/client/assets/{Stars02-B9xmjTkg.js → Stars02-BzQc7fZz.js} +1 -1
  35. package/dist/client/assets/{Sun-wOtTFTOd.js → Sun-CyoL1WFK.js} +1 -1
  36. package/dist/client/assets/{SwitchHorizontal01-C90B2Auk.js → SwitchHorizontal01-QNGjYcml.js} +1 -1
  37. package/dist/client/assets/{Tool01-BT4kICfE.js → Tool01-BWGVYfev.js} +1 -1
  38. package/dist/client/assets/{Tool02-vM8N2pYB.js → Tool02-DkTMVP4f.js} +1 -1
  39. package/dist/client/assets/{Trash01-CrwbV8c_.js → Trash01-iPP4w9gK.js} +1 -1
  40. package/dist/client/assets/TrendUp01-C3q3M7MG.js +1 -0
  41. package/dist/client/assets/{Upload01-Lp0wJMYr.js → Upload01-CoVAXfWg.js} +1 -1
  42. package/dist/client/assets/{User01-CQV6kRtR.js → User01-2QspS0s6.js} +1 -1
  43. package/dist/client/assets/{UserPlus01-13KHecKW.js → UserPlus01-DoBolndD.js} +1 -1
  44. package/dist/client/assets/{Users01-CDDfUziK.js → Users01-C3FOprDj.js} +1 -1
  45. package/dist/client/assets/{Users03-ZlQye2vY.js → Users03-BYqJADve.js} +1 -1
  46. package/dist/client/assets/{X-CNdIeej8.js → X-Bqs01fCh.js} +1 -1
  47. package/dist/client/assets/{XCircle-C9sRiEE0.js → XCircle-DHCvZwgH.js} +1 -1
  48. package/dist/client/assets/{XClose-4pjmwtT4.js → XClose-P0NM9uUE.js} +1 -1
  49. package/dist/client/assets/{Zap-DHGChPV2.js → Zap-CI5WhuKJ.js} +1 -1
  50. package/dist/client/assets/{ZapSquare-BV8kr37_.js → ZapSquare-BhWmmFEB.js} +1 -1
  51. package/dist/client/assets/{ZoomOut-7nLppLEs.js → ZoomOut-C7W-ZWAB.js} +1 -1
  52. package/dist/client/assets/{access-gate-BAwcBNbs.js → access-gate-BK7GcTMo.js} +1 -1
  53. package/dist/client/assets/{add-section-modal-lhtrhXMg.js → add-section-modal-CfvYLCg2.js} +1 -1
  54. package/dist/client/assets/agent-icon-5pSyq_FH.js +1 -0
  55. package/dist/client/assets/agents-list-pNinhUjp.js +1 -0
  56. package/dist/client/assets/ai-providers-CRHCw5VF.js +1 -0
  57. package/dist/client/assets/{alert-BhYIEI2X.js → alert-D4ttbBAt.js} +1 -1
  58. package/dist/client/assets/{alert-dialog-IVNf28U9.js → alert-dialog-GCrUNzbs.js} +1 -1
  59. package/dist/client/assets/app-editor-DqcvDhID.js +1 -0
  60. package/dist/client/assets/{auth-DIzgjm9h.js → auth-Cf4In3Ce.js} +1 -1
  61. package/dist/client/assets/{auth-catchall-CwgiOIdP.js → auth-catchall-CL7qcaW-.js} +1 -1
  62. package/dist/client/assets/{auth-entry-DhEOJXIL.js → auth-entry-BBn3Oy3I.js} +1 -1
  63. package/dist/client/assets/{auth-split-layout-B-Ji1dsx.js → auth-split-layout-ClDCjxcR.js} +1 -1
  64. package/dist/client/assets/{authenticate-and-persist-oauth-Bb5P11Gd.js → authenticate-and-persist-oauth-DeTua2ma.js} +1 -1
  65. package/dist/client/assets/{automation-list-row-BrrHJBg_.js → automation-list-row-bCHP9GaB.js} +1 -1
  66. package/dist/client/assets/{automation-runs-_xFJy_Wv.js → automation-runs-K5fQtR3Q.js} +10 -10
  67. package/dist/client/assets/automations-BchD7Vmn.js +1 -0
  68. package/dist/client/assets/{autosend-BX8nQnW3.js → autosend-CnfmH4zE.js} +1 -1
  69. package/dist/client/assets/{avatar-CfHetrJ0.js → avatar-BB1BJsL_.js} +1 -1
  70. package/dist/client/assets/{badge-BR8ZoQPH.js → badge-miK_gWS7.js} +1 -1
  71. package/dist/client/assets/{block-document-BeMgCoP0.js → block-document-BnBi9DlX.js} +1 -1
  72. package/dist/client/assets/{brand-context-Dfa00_kA.js → brand-context-Bwk8h-AT.js} +1 -1
  73. package/dist/client/assets/{buckets-BJ3UCF_c.js → buckets-BVny45s4.js} +1 -1
  74. package/dist/client/assets/bulk-category-panel-CI-tBRB_.js +1 -0
  75. package/dist/client/assets/{calendar-D9BWcxij.js → calendar-i7Bgz_TN.js} +1 -1
  76. package/dist/client/assets/{capability-load-error-CWaH-_Bd.js → capability-load-error-ykEHLKnb.js} +1 -1
  77. package/dist/client/assets/{card-1ZIM8JYb.js → card-BjD2_XuX.js} +1 -1
  78. package/dist/client/assets/category-editor-CSZtSGt6.js +1 -0
  79. package/dist/client/assets/{chat-context-BhPkOl45.js → chat-context-De0V13yX.js} +1 -1
  80. package/dist/client/assets/{checkbox-YuHG4ViR.js → checkbox-DnsQEgvs.js} +1 -1
  81. package/dist/client/assets/{cli-auth-success-CP82qKpR.js → cli-auth-success-DlpvQRp0.js} +1 -1
  82. package/dist/client/assets/collection-detail-HRLTqsYR.js +1 -0
  83. package/dist/client/assets/{collection-display-button-CbTgXJt9.js → collection-display-button-CNmqBrih.js} +1 -1
  84. package/dist/client/assets/{collection-search-D4kzf4BZ.js → collection-search-MTrnV0Y_.js} +1 -1
  85. package/dist/client/assets/{collection-table-wrapper-Cyqk04aC.js → collection-table-wrapper-CZMGnyXO.js} +1 -1
  86. package/dist/client/assets/{collection-tabs-CwblhJGY.js → collection-tabs-Dvz33uvw.js} +1 -1
  87. package/dist/client/assets/{command-DRUw9pTQ.js → command-DpdcRmV-.js} +1 -1
  88. package/dist/client/assets/commerce-onboarding-QSGTn2pK.js +1 -0
  89. package/dist/client/assets/{companions-core-CrqiPrVn.js → companions-core-CgTHLTTN.js} +1 -1
  90. package/dist/client/assets/connect-desktop-dialog-BASAvtSw.js +1 -0
  91. package/dist/client/assets/{connection-card-BddaDWk3.js → connection-card-DQ8XLP8C.js} +1 -1
  92. package/dist/client/assets/connection-detail-CwpaZMQ9.js +1 -0
  93. package/dist/client/assets/{connection-form-helpers-B3t0vd0x.js → connection-form-helpers-B4Lj6wNN.js} +1 -1
  94. package/dist/client/assets/connections-C4IOF63g.js +1 -0
  95. package/dist/client/assets/{decopilot-sse-pool-B1izZBf2.js → decopilot-sse-pool-_LHJFrBF.js} +1 -1
  96. package/dist/client/assets/{dialog-DfnhzCwv.js → dialog-CUb_uQeJ.js} +1 -1
  97. package/dist/client/assets/{domain-settings-Dw-3NGKK.js → domain-settings-Cj1WoInJ.js} +1 -1
  98. package/dist/client/assets/{drawer-Cu1H6Zpl.js → drawer-BSFvVMvA.js} +1 -1
  99. package/dist/client/assets/{dropdown-menu-BlorfjU6.js → dropdown-menu-D-nlMdm5.js} +1 -1
  100. package/dist/client/assets/{empty-state-D0Yjh42T.js → empty-state-C_IbZdBr.js} +1 -1
  101. package/dist/client/assets/{extract-connection-data-DkYKg47U.js → extract-connection-data-BIadZZgr.js} +1 -1
  102. package/dist/client/assets/file-explorer-BWAl04Ll.js +2 -0
  103. package/dist/client/assets/{file-type-icon-CyQSc8WD.js → file-type-icon-mrfxFHRk.js} +1 -1
  104. package/dist/client/assets/{files-C98dPcEM.js → files-B6sMQ0N9.js} +1 -1
  105. package/dist/client/assets/{form-ZPjO3One.js → form-CEO5VtKG.js} +1 -1
  106. package/dist/client/assets/{general-mC0-nMIz.js → general-CpcExAES.js} +1 -1
  107. package/dist/client/assets/{github-repo-picker-DneVvY3I.js → github-repo-picker-CH-zkM68.js} +1 -1
  108. package/dist/client/assets/{hooks-DsQUp7L9.js → hooks-G1nBJ-F3.js} +1 -1
  109. package/dist/client/assets/{index-BOaCGG-5.js → index-B3_jWN9S.js} +1 -1
  110. package/dist/client/assets/index-B7Kp0gmf.css +1 -0
  111. package/dist/client/assets/index-B8fJFfFf.js +1 -0
  112. package/dist/client/assets/{index-BeTttHS9.js → index-BW23Hqv6.js} +4 -4
  113. package/dist/client/assets/{index-PCoZIk-M.js → index-BZjBKD1m.js} +23 -23
  114. package/dist/client/assets/{index-B8Idfh3P.js → index-B_nVJPYO.js} +1 -1
  115. package/dist/client/assets/{index-CtT9oMhI.js → index-BlItCfDb.js} +1 -1
  116. package/dist/client/assets/index-C7cs-gci.js +2 -0
  117. package/dist/client/assets/{index-1xWIMGUU.js → index-C9P6Y57L.js} +1 -1
  118. package/dist/client/assets/{index-DZp5yHGX.js → index-CTpTvSxb.js} +1 -1
  119. package/dist/client/assets/{index-emjsrsD0.js → index-DAFjHwsT.js} +1 -1
  120. package/dist/client/assets/{index-BHjtHKuw.js → index-DFuynMdy.js} +1 -1
  121. package/dist/client/assets/{index-CrWfdotU.js → index-DQVI41jj.js} +2 -2
  122. package/dist/client/assets/{index-76rFpqug.js → index-DxwLi9-g.js} +1 -1
  123. package/dist/client/assets/{index-C5JCmVQ0.js → index-lRedQ_8t.js} +3 -3
  124. package/dist/client/assets/{index-redirect-Dog_XssD.js → index-redirect-Mh7_3AcS.js} +1 -1
  125. package/dist/client/assets/{input-DWv95vY4.js → input-DOZlS9i9.js} +1 -1
  126. package/dist/client/assets/{integration-icon-D74EpYgv.js → integration-icon-CN9OtiIm.js} +1 -1
  127. package/dist/client/assets/{invite-member-dialog-DGmwAQAA.js → invite-member-dialog-LDdBeQZc.js} +1 -1
  128. package/dist/client/assets/{label-CjR-YPrA.js → label-u5PrAFB7.js} +1 -1
  129. package/dist/client/assets/{layout-BvMp9WH9.js → layout-46QoqgX4.js} +1 -1
  130. package/dist/client/assets/{login-C4VBhHZf.js → login-BdT0h30g.js} +1 -1
  131. package/dist/client/assets/{mcp-oauth-CDqgI2Xn.js → mcp-oauth-DHDPNOkD.js} +1 -1
  132. package/dist/client/assets/{members-NXDCco5L.js → members-RcOcNeXi.js} +1 -1
  133. package/dist/client/assets/{monaco-editor-DYdw6m6P.js → monaco-editor-D2naC6ph.js} +1 -1
  134. package/dist/client/assets/{monitoring-stats-row-D0csDfCQ.js → monitoring-stats-row-CztePoJD.js} +1 -1
  135. package/dist/client/assets/{oauth-callback-D-qdOpL-.js → oauth-callback-BSA-GLPM.js} +1 -1
  136. package/dist/client/assets/{oauth-callback-ai-provider-CKZ-Ikk0.js → oauth-callback-ai-provider-DgPoj4r4.js} +1 -1
  137. package/dist/client/assets/{onboarding-0XZpcTRa.js → onboarding-Br3afGr-.js} +1 -1
  138. package/dist/client/assets/{org-install-BHAQ5v4F.js → org-install-C190-hBM.js} +1 -1
  139. package/dist/client/assets/{org-layout-x9tM7YJ0.js → org-layout-cPdojne_.js} +1 -1
  140. package/dist/client/assets/{organization-choice-CRDRv9IH.js → organization-choice-Csr-kPrj.js} +1 -1
  141. package/dist/client/assets/{orgs-B4dQ6uWB.js → orgs-WjQsKIGK.js} +1 -1
  142. package/dist/client/assets/{page-seo-form-BoV5cy5K.js → page-seo-form-BocKaLGp.js} +1 -1
  143. package/dist/client/assets/page-seo-sheet-BTjq4xGR.js +1 -0
  144. package/dist/client/assets/{popover-DL95paTt.js → popover-BlN-L-7w.js} +1 -1
  145. package/dist/client/assets/post-editor-DD6k2jq_.js +1 -0
  146. package/dist/client/assets/{primitives-CnjPXZBb.js → primitives-C1zKVkUs.js} +1 -1
  147. package/dist/client/assets/{profile-CCbdBUdo.js → profile-B1TQAd_m.js} +1 -1
  148. package/dist/client/assets/project-app-view-DlsPCtAC.js +1 -0
  149. package/dist/client/assets/record-editor-CE1EwunZ.js +1 -0
  150. package/dist/client/assets/redirect-editor-OokObJNP.js +1 -0
  151. package/dist/client/assets/registry-OH_DROyn.js +2 -0
  152. package/dist/client/assets/{registry-layout-C2G4koz9.js → registry-layout-BjGbzV73.js} +2 -2
  153. package/dist/client/assets/reports-BWI6IDQq.css +1 -0
  154. package/dist/client/assets/reports-DEwGwzSI.js +43 -0
  155. package/dist/client/assets/{require-capability-Coot4cTo.js → require-capability-B_dSH45y.js} +1 -1
  156. package/dist/client/assets/{required-auth-layout-BLRuxjNn.js → required-auth-layout-czUUgGrX.js} +1 -1
  157. package/dist/client/assets/{reset-password-BHfCVVq_.js → reset-password-Md6XPqI1.js} +1 -1
  158. package/dist/client/assets/roles-jjnXT7oA.js +1 -0
  159. package/dist/client/assets/{search-input-B9lRxCGI.js → search-input-BQOeLOTi.js} +1 -1
  160. package/dist/client/assets/{secrets-C7tLxfHf.js → secrets-CWkoKQMY.js} +1 -1
  161. package/dist/client/assets/{sections-editor-CEVFpdKw.js → sections-editor-DJYtpXox.js} +2 -2
  162. package/dist/client/assets/{select-D59HzWyb.js → select-CxRcXiYy.js} +1 -1
  163. package/dist/client/assets/{select-model-D8LB7zlx.js → select-model-CJ1n8oWC.js} +1 -1
  164. package/dist/client/assets/self-tool-result-BCQjUWN7.js +1 -0
  165. package/dist/client/assets/seo-editor-DYp9hHSY.js +1 -0
  166. package/dist/client/assets/{settings-layout-LbxIWaT0.js → settings-layout-BXO3VMKS.js} +1 -1
  167. package/dist/client/assets/{settings-section-CHSsdIIo.js → settings-section-Bs1JjdR4.js} +1 -1
  168. package/dist/client/assets/{shell-controls-C3TSKK-x.js → shell-controls-BoSvKLlP.js} +1 -1
  169. package/dist/client/assets/{shell-layout-TAILJ-da.js → shell-layout-DamsdnEZ.js} +1 -1
  170. package/dist/client/assets/{sidebar-i7yNFNs9.js → sidebar-joQ3ZQPE.js} +1 -1
  171. package/dist/client/assets/{skeleton-D824Y8b-.js → skeleton-BxJ_vH4t.js} +1 -1
  172. package/dist/client/assets/{sso-BzsdnWCZ.js → sso-CoEL8qOV.js} +1 -1
  173. package/dist/client/assets/{store-BNZtOJXh.js → store-mvrTZUgb.js} +1 -1
  174. package/dist/client/assets/store-registry-C-81qMOw.js +2 -0
  175. package/dist/client/assets/{studio-tools--pllMpfK.js → studio-tools-BMyTPyPy.js} +1 -1
  176. package/dist/client/assets/{switch-DLw5svpB.js → switch-C6-Jkvpv.js} +1 -1
  177. package/dist/client/assets/{table-B8kPpHAC.js → table-BBmNComr.js} +1 -1
  178. package/dist/client/assets/{tabs-C19FaLXY.js → tabs-kApe5O6i.js} +1 -1
  179. package/dist/client/assets/{textarea-DGICe7Jx.js → textarea-C5puqxj1.js} +1 -1
  180. package/dist/client/assets/{toggle-group-SYBG9bZR.js → toggle-group-DScHdpkW.js} +1 -1
  181. package/dist/client/assets/{toolbar-icon-button-DapYdi-A.js → toolbar-icon-button-D3Y1-YHW.js} +1 -1
  182. package/dist/client/assets/{toolbar-V6M48IQV.js → toolbar-zpMjKMlc.js} +1 -1
  183. package/dist/client/assets/{tools-list-CvZ2H4zV.js → tools-list-BOMB05RR.js} +1 -1
  184. package/dist/client/assets/{tooltip-DjWNMg5T.js → tooltip-REPIyd2Z.js} +1 -1
  185. package/dist/client/assets/{use-ai-providers-CQmOOELp.js → use-ai-providers-Bo4wIQxq.js} +1 -1
  186. package/dist/client/assets/{use-automations-kY9mTa0N.js → use-automations-DA7j42Hg.js} +1 -1
  187. package/dist/client/assets/{use-autosave-DhXH8ptD.js → use-autosave-DBERSs2x.js} +1 -1
  188. package/dist/client/assets/{use-capability-BtQYj-6N.js → use-capability-CCJ-X1mC.js} +1 -1
  189. package/dist/client/assets/{use-clock-tick-BNpEZMto.js → use-clock-tick-MLdLuh40.js} +1 -1
  190. package/dist/client/assets/{use-collections-Kwxr6RPv.js → use-collections-D-OJag2e.js} +1 -1
  191. package/dist/client/assets/{use-connection-DhRKlWkl.js → use-connection-DmUK9JRy.js} +1 -1
  192. package/dist/client/assets/{use-copy-C62zVzDi.js → use-copy-DzWDd5On.js} +1 -1
  193. package/dist/client/assets/{use-create-virtual-mcp-B-2yNc1r.js → use-create-virtual-mcp-BqyRJeCT.js} +1 -1
  194. package/dist/client/assets/{use-debounced-autosave-Cumlh74L.js → use-debounced-autosave-JbhBBkyc.js} +1 -1
  195. package/dist/client/assets/{use-debounced-value-DEfVi-aN.js → use-debounced-value-DxBZ974h.js} +1 -1
  196. package/dist/client/assets/{use-deco-credits-rxapxW2c.js → use-deco-credits-DR4kDN3B.js} +1 -1
  197. package/dist/client/assets/{use-decopilot-events-Cww7ZCTK.js → use-decopilot-events-BhVWtKJy.js} +1 -1
  198. package/dist/client/assets/{use-delete-connection-DehUW7zF.js → use-delete-connection-Ds3puvR-.js} +1 -1
  199. package/dist/client/assets/{use-deployment-admin-DI6Yo_2O.js → use-deployment-admin-C5hKFITD.js} +1 -1
  200. package/dist/client/assets/{use-file-configs-BaRnwcsF.js → use-file-configs-t6weWLBN.js} +1 -1
  201. package/dist/client/assets/{use-infinite-scroll-WwPPe2Wp.js → use-infinite-scroll-B4v-_NDY.js} +1 -1
  202. package/dist/client/assets/{use-join-requests-B29gIAVf.js → use-join-requests-nORXzBkG.js} +1 -1
  203. package/dist/client/assets/{use-mcp-client-DlCO79GA.js → use-mcp-client-D6H50Mmm.js} +1 -1
  204. package/dist/client/assets/{use-mcp-tools-PUeX7iQD.js → use-mcp-tools-Cs2tX1fK.js} +1 -1
  205. package/dist/client/assets/{use-members-CP1GrgsV.js → use-members-Bz6iBsM4.js} +1 -1
  206. package/dist/client/assets/{use-mobile-vXwkCjTm.js → use-mobile-RU-Nn_Un.js} +1 -1
  207. package/dist/client/assets/{use-navigate-to-agent-DZwula5s.js → use-navigate-to-agent-DYPKcx_j.js} +1 -1
  208. package/dist/client/assets/{use-org-auth-client-BeUafwOm.js → use-org-auth-client-DrmuxI_m.js} +1 -1
  209. package/dist/client/assets/{use-org-sso-CpksLDM-.js → use-org-sso-BLc80T83.js} +1 -1
  210. package/dist/client/assets/{use-organization-roles-BGu4f7lA.js → use-organization-roles-DU1BIeXK.js} +1 -1
  211. package/dist/client/assets/use-organization-settings-CHx_I7VH.js +1 -0
  212. package/dist/client/assets/{use-registry-connections-ml5ez91l.js → use-registry-connections-C9dbuMZN.js} +1 -1
  213. package/dist/client/assets/{use-secrets-DXp4vVpG.js → use-secrets-Cs1UIn3n.js} +1 -1
  214. package/dist/client/assets/{use-status-sounds-DUjqcw9j.js → use-status-sounds-C3Efc5TW.js} +1 -1
  215. package/dist/client/assets/{use-view-mode-CJMBEHOJ.js → use-view-mode-y0S1o9OD.js} +1 -1
  216. package/dist/client/assets/{use-virtual-mcp-KZlYJNMn.js → use-virtual-mcp-D9inM-9h.js} +1 -1
  217. package/dist/client/assets/useInfiniteQuery-XeUdT1mI.js +1 -0
  218. package/dist/client/assets/{useRouterState-ClIV-prS.js → useRouterState-DB6AEQYy.js} +1 -1
  219. package/dist/client/assets/useSuspenseInfiniteQuery-DnwWEYgY.js +1 -0
  220. package/dist/client/assets/{users-CliPNaM4.js → users-DV3bsEcg.js} +1 -1
  221. package/dist/client/assets/variant-calendar-B7qy61Jb.js +1 -0
  222. package/dist/client/assets/{view-mode-toggle-BVGFEj0-.js → view-mode-toggle-BIom5MzH.js} +1 -1
  223. package/dist/client/index.html +2 -2
  224. package/dist/server/cli.js +1 -1
  225. package/dist/server/server.js +1 -1
  226. package/package.json +1 -1
  227. package/dist/client/assets/Eye-CyP9kYwn.js +0 -1
  228. package/dist/client/assets/TrendUp01-CBDxjtVg.js +0 -1
  229. package/dist/client/assets/agent-icon-DMtjBPX3.js +0 -1
  230. package/dist/client/assets/agents-list-BUXICXib.js +0 -1
  231. package/dist/client/assets/ai-providers-DCgzVaX6.js +0 -1
  232. package/dist/client/assets/app-editor-D59Q_5eI.js +0 -1
  233. package/dist/client/assets/automations-BaGIRfvu.js +0 -1
  234. package/dist/client/assets/bulk-category-panel-DYbnXnND.js +0 -1
  235. package/dist/client/assets/category-editor-DzbcKPof.js +0 -1
  236. package/dist/client/assets/collection-detail-DIz6zskG.js +0 -1
  237. package/dist/client/assets/commerce-onboarding-e-v-lCWx.js +0 -1
  238. package/dist/client/assets/connect-desktop-dialog-BSEnA0YE.js +0 -1
  239. package/dist/client/assets/connection-detail-B8oW9DNb.js +0 -1
  240. package/dist/client/assets/connections-DXcLr2b7.js +0 -1
  241. package/dist/client/assets/file-explorer-C3OUWmFe.js +0 -2
  242. package/dist/client/assets/index-BO2t38sV.css +0 -1
  243. package/dist/client/assets/index-ByObdePs.js +0 -1
  244. package/dist/client/assets/index-D-JmKBPU.js +0 -2
  245. package/dist/client/assets/page-seo-sheet-BgE0-fxQ.js +0 -1
  246. package/dist/client/assets/post-editor-Byy_Ap7S.js +0 -1
  247. package/dist/client/assets/project-app-view-3TNqVL2p.js +0 -1
  248. package/dist/client/assets/record-editor-TOFRK4bb.js +0 -1
  249. package/dist/client/assets/redirect-editor-luJZRzL9.js +0 -1
  250. package/dist/client/assets/registry-B_upSRSY.js +0 -2
  251. package/dist/client/assets/reports-CPxel0Tp.js +0 -43
  252. package/dist/client/assets/reports-UJeN0SPp.css +0 -1
  253. package/dist/client/assets/roles-Cbr82vAy.js +0 -1
  254. package/dist/client/assets/self-tool-result-BPaV8G2-.js +0 -1
  255. package/dist/client/assets/seo-editor-Dtca_H4G.js +0 -1
  256. package/dist/client/assets/store-registry-DzS8hV6Q.js +0 -2
  257. package/dist/client/assets/use-organization-settings-BFGZ9YuD.js +0 -1
  258. package/dist/client/assets/useInfiniteQuery-D-yVKxn2.js +0 -1
  259. package/dist/client/assets/useSuspenseInfiniteQuery-QFUkmQtZ.js +0 -1
  260. package/dist/client/assets/variant-calendar-DsUFadYs.js +0 -1
@@ -1,43 +0,0 @@
1
- import{c as be,l as We,j as T,r as Re,o as sn,T as go,w as hI,x as vI,a as dI,m as pI,K as gI,y as mI}from"./index-C5JCmVQ0.js";import{A as yI}from"./auth-entry-DhEOJXIL.js";import{d as Yy}from"./delay-CnY5UFtP.js";import{i as xI}from"./AlertCircle-CX23NCuO.js";import{n as _I,i as bI}from"./ArrowUp-ChoUWc1b.js";import{a as SI,b as wI,i as TI}from"./XCircle-C9sRiEE0.js";import{t as CI,n as AI,a as DI,b as MI,i as LI,c as II,d as PI}from"./TrendUp01-CBDxjtVg.js";import{i as kI}from"./CheckCircle-Day5nLHt.js";import{s as RI}from"./Flag01-C7YxvVFh.js";import{a as EI}from"./Package-BL3B6ONo.js";import"./input-DWv95vY4.js";import"./backoff-CrEUbyZT.js";function Eg(r){let e=(r??"").trim().toLowerCase();return e=e.replace(/^https?:\/\//,""),e=e.replace(/^www\./,""),e=e.split(/[/?#]/)[0]??"",e.replace(/\/+$/,"")}function p2(r){return(Eg(r).split(".")[0]||r).replace(/[-_]/g," ").split(" ").filter(Boolean).map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" ")}function bf(r,e=64){return`https://www.google.com/s2/favicons?domain=${encodeURIComponent(Eg(r))}&sz=${e}`}function Xy(r,e){const t=r.trim();if(t.length<=e)return t;const a=t.slice(0,e-1),n=a.lastIndexOf(" ");return`${(n>e*.6?a.slice(0,n):a).trimEnd()}…`}function NI(r){const{brand:e,domain:t,score:a,verdict:n}=r,i=typeof a=="number"?`${e} commerce report — ${Math.round(a)}/100 · decocms`:`${e} commerce report · decocms`,o=`See the full ${e} scorecard — SEO, performance, conversion & AEO signals scored by decocms.`,s=n?.trim()?Xy(`${n.trim().replace(/\s+/g," ")} — ${o}`,200):Xy(`How does ${t} really perform? ${o}`,200);return{title:i,description:s}}class g2 extends Error{constructor(e){super(`reports API HTTP ${e}`),this.status=e,this.name="ReportsApiError"}status}function Ng(r){return r instanceof g2&&r.status===401}async function Sf(r){if(!r.ok)throw new g2(r.status);return await r.json()}function Gd(r,e){const t=e?`?key=${encodeURIComponent(e)}`:"";return fetch(`/api/_reports/site/${encodeURIComponent(r)}${t}`).then(a=>Sf(a))}function OI(r){return fetch("/api/_reports/run",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}).then(e=>Sf(e))}function BI(r){return fetch(`/api/_reports/status?id=${encodeURIComponent(r)}`).then(e=>Sf(e))}function zI(r){return fetch(`/api/_reports/link-token/${encodeURIComponent(r)}`).then(e=>Sf(e))}const N={bg:"#ffffff",ink:"#282524",muted:"#78726e",faint:"#a6a09d",border:"rgba(40,37,36,0.09)",cardBorder:"rgba(40,37,36,0.06)",inputBorder:"rgba(40,37,36,0.18)",surface:"#ffffff",primary:"#282524",primaryFg:"#ffffff",soft:"#8caa25",lime:"#d0ec1a",limeTint:"#eff6cc",forest:"#07401a",warn:"#f0b613",notice:"#6e9fdb"},at={good:N.soft,bad:"#d43d3d",neutral:N.ink},VI=[{src:"/logos/summit/fila.svg",alt:"Fila",w:100,h:34},{src:"/logos/summit/osklen.svg",alt:"Osklen",w:152,h:21},{src:"/logos/summit/farm-rio.svg",alt:"Farm Rio",w:159,h:23},{src:"/logos/summit/electrolux.svg",alt:"Electrolux",w:154,h:35},{src:"/logos/summit/monte-carlo.svg",alt:"Monte Carlo",w:116,h:61},{src:"/logos/summit/leroy-merlin.svg",alt:"Leroy Merlin",w:109,h:62},{src:"/logos/summit/technos.svg",alt:"Technos",w:141,h:29},{src:"/logos/summit/bagaggio.svg",alt:"Bagaggio",w:149,h:22},{src:"/logos/summit/le-biscuit.svg",alt:"Le Biscuit",w:141,h:24},{src:"/logos/summit/miess.svg",alt:"Miess",w:113,h:43},{src:"/logos/summit/casa-e-video.svg",alt:"Casa & Video",w:145,h:18},{src:"/logos/summit/hering-fill.svg",alt:"Hering",w:140,h:30}],FI=4,GI=2400;function HI(r){const e=Array.from({length:r},()=>[]);return VI.forEach((t,a)=>e[a%r]?.push(t)),e}function m2(r){const e=be.c(22),{logos:t,delayMs:a,last:n,bottomRow:i}=r,[o,s]=Re.useState(0);let l;e[0]!==a||e[1]!==t.length?(l=b=>{if(!b)return;let S;const w=setTimeout(()=>{S=setInterval(()=>s(C=>(C+1)%t.length),GI)},a);return()=>{clearTimeout(w),S&&clearInterval(S)}},e[0]=a,e[1]=t.length,e[2]=l):l=e[2];const u=l,c=t[o%t.length]??t[0];if(!c)return null;const f=Math.min(78/c.w,22/c.h);let h;e[3]!==c.w||e[4]!==f?(h=Math.round(c.w*f),e[3]=c.w,e[4]=f,e[5]=h):h=e[5];const v=h;let d;e[6]!==c.h||e[7]!==f?(d=Math.round(c.h*f),e[6]=c.h,e[7]=f,e[8]=d):d=e[8];const p=d,g=n?void 0:`1px solid ${N.border}`,m=i?`1px solid ${N.border}`:void 0;let y;e[9]!==g||e[10]!==m?(y={borderRight:g,borderTop:m},e[9]=g,e[10]=m,e[11]=y):y=e[11];let x;e[12]!==o||e[13]!==c.alt||e[14]!==c.src||e[15]!==p||e[16]!==v?(x=T.jsx("img",{src:c.src,alt:c.alt,width:v,height:p,className:"logo-carousel-enter block"},o),e[12]=o,e[13]=c.alt,e[14]=c.src,e[15]=p,e[16]=v,e[17]=x):x=e[17];let _;return e[18]!==u||e[19]!==y||e[20]!==x?(_=T.jsx("div",{ref:u,className:"flex flex-1 items-center justify-center overflow-hidden py-3",style:y,children:x}),e[18]=u,e[19]=y,e[20]=x,e[21]=_):_=e[21],_}function jI(){const r=be.c(1);let e;if(r[0]===Symbol.for("react.memo_cache_sentinel")){const t=HI(FI);e=T.jsxs(T.Fragment,{children:[T.jsx("div",{className:"grid grid-cols-2 overflow-hidden rounded-xl sm:hidden",style:{border:`1px solid ${N.border}`},children:t.map(WI)}),T.jsx("div",{className:"hidden overflow-hidden rounded-xl sm:flex",style:{border:`1px solid ${N.border}`},children:t.map((a,n)=>T.jsx(m2,{logos:a,delayMs:n*380,last:n===t.length-1},a[0]?.src))})]}),r[0]=e}else e=r[0];return e}function WI(r,e){return T.jsx(m2,{logos:r,delayMs:e*380,last:e%2===1,bottomRow:e>=2},r[0]?.src)}function y2(r){const e=be.c(7),{compact:t}=r,n=(t===void 0?!1:t)?"mt-5 pt-5":"mt-8 pt-6";let i;e[0]!==n?(i=We(n),e[0]=n,e[1]=i):i=e[1];let o;e[2]===Symbol.for("react.memo_cache_sentinel")?(o={borderTop:`1px solid ${N.border}`},e[2]=o):o=e[2];let s,l;e[3]===Symbol.for("react.memo_cache_sentinel")?(s=T.jsx("p",{className:"mb-4 text-center text-[11px] uppercase tracking-[0.04em]",style:{color:N.faint},children:"Já receberam"}),l=T.jsx(jI,{}),e[3]=s,e[4]=l):(s=e[3],l=e[4]);let u;return e[5]!==i?(u=T.jsxs("div",{className:i,style:o,children:[s,l]}),e[5]=i,e[6]=u):u=e[6],u}let x2=!1;const $I="report:auth-attempt:",UI=3600*1e3;function YI(r){const e=new URLSearchParams(r),t=e.get("share_id")||void 0,a=e.get("email_run_id")||void 0,n=e.get("utm_source")||void 0,i=e.get("utm_medium")||void 0,o=e.get("utm_campaign")||void 0;return{entrypoint:t||n==="share"?"share":a||e.has("d")||n==="email"?"email":n?"campaign":"direct",...t?{share_id:t}:{},...a?{email_run_id:a}:{},...n?{utm_source:n}:{},...i?{utm_medium:i}:{},...o?{utm_campaign:o}:{}}}function _2(){return YI(typeof window>"u"?"":window.location.search)}function wc(r){return`${$I}${r}`}function XI(){try{return globalThis.crypto.randomUUID()}catch{return`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}}function b2(r){try{const e=window.sessionStorage.getItem(wc(r));if(!e)return null;const t=JSON.parse(e);return t.domain!==r||typeof t.attempt_id!="string"||typeof t.gate_shown_at!="number"||Date.now()-t.gate_shown_at>UI?(window.sessionStorage.removeItem(wc(r)),null):t}catch{return null}}function S2(r){try{window.sessionStorage.setItem(wc(r.domain),JSON.stringify(r))}catch{}}function w2(r){const e=b2(r);if(e)return e;const t={attempt_id:XI(),domain:r,gate_shown_at:Date.now(),..._2()};return S2(t),t}function ZI(r,e){const t={...w2(r),...e};return S2(t),t}function Hd(r){return{auth_attempt_id:r.attempt_id,entrypoint:r.entrypoint,...r.share_id?{share_id:r.share_id}:{},...r.email_run_id?{email_run_id:r.email_run_id}:{},...r.utm_source?{utm_source:r.utm_source}:{},...r.utm_medium?{utm_medium:r.utm_medium}:{},...r.utm_campaign?{utm_campaign:r.utm_campaign}:{}}}function qI(r){const e=b2(r);if(!e)return null;try{window.sessionStorage.removeItem(wc(r))}catch{}return e}function KI(r){const e=r.toLowerCase();return e==="invalid_email"?"invalid_email":e.includes("429")||e.includes("rate limit")?"rate_limited":e.includes("otp")||e.includes("verification code")||e.includes("invalid code")||e.includes("expired code")||e.includes("código")||e.includes("codigo")?"invalid_or_expired_code":e.includes("401")||e.includes("unauthorized")?"invalid_credentials":e.includes("409")||e.includes("already exists")?"account_exists":e.includes("network")||e.includes("fetch")?"network":e.includes("cancel")||e.includes("closed")?"cancelled":"unknown"}function jd(r){x2=r}function Ke(r,e,t){if(sn())try{go.capture(r,{..._2(),...e,...x2?{report_preview:"reviewer"}:{}},t)}catch{}}const JI={otpSendFailed:"Não foi possível enviar o código",invalidCode:"Código inválido",invalidEmail:"Digite um email válido",networkError:"Erro de conexão. Tente novamente.",tooManyAttempts:"Muitas tentativas. Aguarde um momento e tente novamente.",invalidOrExpiredCode:"Código inválido ou expirado. Tente novamente.",genericError:"Algo deu errado. Tente novamente.",verificationCodeTitle:"Digite o código",codeSentTo:r=>`Enviamos um código para ${r}`,continueWith:r=>`Continuar com ${r}`,divider:"ou",emailLabel:"Email",emailPlaceholder:"seu@email.com",sending:"Enviando...",sendCode:"Continuar",verificationCodeLabel:"Código de verificação",enterCodePlaceholder:"Digite o código",verifying:"Verificando...",verify:"Entrar",useDifferentEmail:"Usar outro email"};function QI(r){const e=`/report/${encodeURIComponent(r)}`;return typeof window>"u"?e:`${e}${window.location.search}${window.location.hash}`}function wf(r){const e=be.c(44),{domain:t}=r;let a;e[0]!==t?(a=p2(t),e[0]=t,e[1]=a):a=e[1];const n=a;let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i={background:N.bg,color:N.ink,filter:"blur(9px)",fontFamily:"Switzer, 'Inter var', Helvetica, Arial, sans-serif",transform:"scale(1.025)"},e[2]=i):i=e[2];let o;e[3]===Symbol.for("react.memo_cache_sentinel")?(o={borderColor:N.border},e[3]=o):o=e[3];let s;e[4]!==t?(s=bf(t),e[4]=t,e[5]=s):s=e[5];let l;e[6]!==s?(l=T.jsx("img",{src:s,alt:"",className:"h-8 w-8 rounded-lg object-contain"}),e[6]=s,e[7]=l):l=e[7];let u;e[8]!==n?(u=T.jsx("p",{className:"text-sm font-medium",children:n}),e[8]=n,e[9]=u):u=e[9];let c;e[10]===Symbol.for("react.memo_cache_sentinel")?(c={color:N.faint},e[10]=c):c=e[10];let f;e[11]!==t?(f=T.jsx("p",{className:"text-xs",style:c,children:t}),e[11]=t,e[12]=f):f=e[12];let h;e[13]!==u||e[14]!==f?(h=T.jsxs("div",{children:[u,f]}),e[13]=u,e[14]=f,e[15]=h):h=e[15];let v;e[16]!==l||e[17]!==h?(v=T.jsxs("div",{className:"flex items-center gap-3",children:[l,h]}),e[16]=l,e[17]=h,e[18]=v):v=e[18];let d;e[19]===Symbol.for("react.memo_cache_sentinel")?(d=T.jsx("span",{className:"h-2 w-16 rounded-full",style:{background:N.border}}),e[19]=d):d=e[19];let p;e[20]===Symbol.for("react.memo_cache_sentinel")?(p=T.jsxs("div",{className:"flex items-center gap-2",children:[d,T.jsx("span",{className:"h-9 w-24 rounded-full",style:{background:N.ink}})]}),e[20]=p):p=e[20];let g;e[21]!==v?(g=T.jsxs("header",{className:"flex items-center justify-between border-b pb-5",style:o,children:[v,p]}),e[21]=v,e[22]=g):g=e[22];let m,y;e[23]===Symbol.for("react.memo_cache_sentinel")?(m=T.jsx("p",{className:"text-xs font-medium uppercase tracking-[0.08em]",style:{color:N.soft},children:"Relatório de comércio digital"}),y=T.jsx("h1",{className:"max-w-[13ch] text-4xl font-normal leading-[1.04] tracking-[-0.035em] sm:text-6xl",children:"Uma visão completa da sua loja."}),e[23]=m,e[24]=y):(m=e[23],y=e[24]);let x;e[25]===Symbol.for("react.memo_cache_sentinel")?(x=T.jsxs("div",{className:"space-y-4",children:[m,y,T.jsx("p",{className:"max-w-[38rem] text-base leading-7",style:{color:N.muted},children:"Oportunidades, comparativos e próximos passos reunidos em um único relatório."})]}),e[25]=x):x=e[25];let _;e[26]===Symbol.for("react.memo_cache_sentinel")?(_=T.jsxs("div",{className:"space-y-7",children:[x,T.jsx("div",{className:"grid gap-3 sm:grid-cols-2",children:["Experiência","Descoberta","Conversão","Operação"].map(rP)})]}),e[26]=_):_=e[26];let b;e[27]===Symbol.for("react.memo_cache_sentinel")?(b={borderColor:N.border,background:"radial-gradient(circle at 18% 18%, rgba(208,236,26,.45), transparent 35%), radial-gradient(circle at 82% 30%, rgba(152,221,255,.7), transparent 34%), radial-gradient(circle at 60% 86%, rgba(255,183,214,.65), transparent 42%), #f7f5ef"},e[27]=b):b=e[27];let S;e[28]===Symbol.for("react.memo_cache_sentinel")?(S={borderColor:N.border},e[28]=S):S=e[28];let w,C,A,D;e[29]===Symbol.for("react.memo_cache_sentinel")?(w={borderColor:N.border},C=T.jsx("span",{className:"h-2.5 w-2.5 rounded-full bg-[#ff6b67]"}),A=T.jsx("span",{className:"h-2.5 w-2.5 rounded-full bg-[#f5c451]"}),D=T.jsx("span",{className:"h-2.5 w-2.5 rounded-full bg-[#65c466]"}),e[29]=w,e[30]=C,e[31]=A,e[32]=D):(w=e[29],C=e[30],A=e[31],D=e[32]);let M;e[33]===Symbol.for("react.memo_cache_sentinel")?(M=T.jsxs("div",{className:"mb-3 flex items-center gap-2 border-b pb-3",style:w,children:[C,A,D,T.jsx("span",{className:"ml-3 h-6 flex-1 rounded-full",style:{background:N.bg}})]}),e[33]=M):M=e[33];let I;e[34]===Symbol.for("react.memo_cache_sentinel")?(I=T.jsxs("div",{className:"space-y-3 rounded-xl p-4",style:{background:N.forest},children:[T.jsx("div",{className:"h-3 w-16 rounded-full bg-white/30"}),T.jsx("div",{className:"h-8 w-full rounded-lg bg-white/80"}),T.jsx("div",{className:"h-3 w-4/5 rounded-full bg-white/30"}),T.jsx("div",{className:"mt-8 h-24 rounded-xl bg-white/10"})]}),e[34]=I):I=e[34];let P;e[35]===Symbol.for("react.memo_cache_sentinel")?(P=T.jsxs("div",{className:"absolute inset-x-8 top-8 rounded-2xl border bg-white p-3 shadow-xl",style:S,children:[M,T.jsxs("div",{className:"grid h-[330px] grid-cols-[0.72fr_1.28fr] gap-3",children:[I,T.jsx("div",{className:"grid grid-cols-2 gap-3",children:[0,1,2,3].map(tP)})]})]}),e[35]=P):P=e[35];let k;e[36]===Symbol.for("react.memo_cache_sentinel")?(k=T.jsx("div",{className:"h-3 w-28 rounded-full",style:{background:N.border}}),e[36]=k):k=e[36];let R;e[37]===Symbol.for("react.memo_cache_sentinel")?(R=T.jsxs("div",{className:"space-y-2",children:[k,T.jsx("div",{className:"h-5 w-44 rounded-full",style:{background:N.ink}})]}),e[37]=R):R=e[37];let E;e[38]===Symbol.for("react.memo_cache_sentinel")?(E=T.jsxs("main",{className:"grid min-h-0 flex-1 items-center gap-8 py-8 lg:grid-cols-[minmax(0,0.9fr)_minmax(420px,1.1fr)] lg:gap-14",children:[_,T.jsxs("div",{className:"relative hidden h-[min(68vh,660px)] min-h-[430px] overflow-hidden rounded-[2rem] border p-8 lg:block",style:b,children:[P,T.jsxs("div",{className:"absolute bottom-8 left-8 right-8 flex items-center justify-between rounded-2xl bg-white/85 px-5 py-4 shadow-lg",children:[R,T.jsx("div",{className:"h-12 w-12 rounded-full",style:{background:N.soft}})]})]})]}),e[38]=E):E=e[38];let B;e[39]===Symbol.for("react.memo_cache_sentinel")?(B={borderColor:N.border},e[39]=B):B=e[39];let O;e[40]===Symbol.for("react.memo_cache_sentinel")?(O=T.jsx("span",{className:"h-2 w-24 rounded-full",style:{background:N.border}}),e[40]=O):O=e[40];let V;e[41]===Symbol.for("react.memo_cache_sentinel")?(V=T.jsxs("footer",{className:"flex items-center justify-between border-t pt-5",style:B,children:[O,T.jsx("div",{className:"flex gap-2",children:[0,1,2,3].map(eP)})]}),e[41]=V):V=e[41];let F;return e[42]!==g?(F=T.jsx("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-[-18px] select-none overflow-hidden",style:i,children:T.jsxs("div",{className:"flex h-full min-h-[640px] flex-col px-6 py-5 sm:px-10 sm:py-8 lg:px-16",children:[g,E,V]})}),e[42]=g,e[43]=F):F=e[43],F}function eP(r){return T.jsx("span",{className:"h-2 rounded-full",style:{background:r===0?N.ink:N.border,width:r===0?28:8}},r)}function tP(r){return T.jsxs("div",{className:"rounded-xl border bg-white p-3",style:{borderColor:N.border},children:[T.jsx("div",{className:"h-24 rounded-lg",style:{background:N.bg}}),T.jsx("div",{className:"mt-3 h-3 w-4/5 rounded-full",style:{background:N.border}}),T.jsx("div",{className:"mt-2 h-3 w-1/2 rounded-full",style:{background:N.border}})]},r)}function rP(r,e){return T.jsxs("div",{className:"rounded-2xl border p-4",style:{borderColor:N.border,background:"#fff"},children:[T.jsxs("div",{className:"flex items-center justify-between",children:[T.jsx("span",{className:"text-sm",style:{color:N.muted},children:r}),T.jsx("span",{className:"text-2xl font-light",children:72+e*5})]}),T.jsx("div",{className:"mt-4 h-1.5 overflow-hidden rounded-full",style:{background:N.border},children:T.jsx("div",{className:"h-full rounded-full",style:{background:N.soft,width:`${54+e*9}%`}})})]},r)}function Tc(r){const e=be.c(17),{domain:t,loading:a}=r,n=a===void 0?!1:a;let i;e[0]!==t?(i=d=>{const p="provider"in d?d.provider:void 0,g="mode"in d?d.mode:void 0,y={method:d.method==="social"?p??"social":d.method,provider:p,auth_mode:g},x=ZI(t,y),_={domain:t,surface:"deck_v2",...Hd(x),...y};d.type==="started"?Ke("report_auth_started",_):d.type==="otp_sent"?Ke("report_auth_otp_sent",_):d.type==="otp_submitted"?Ke("report_auth_otp_submitted",_):d.type==="failed"&&Ke("report_auth_failed",{..._,failure_stage:d.stage,error_type:KI(d.error)})},e[0]=t,e[1]=i):i=e[1];const o=i;let s;e[2]!==t||e[3]!==n?(s=d=>{if(!d||n)return;const p=w2(t);d.dataset.tracked==="true"||!sn()||(d.dataset.tracked="true",Ke("report_auth_gate_shown",{domain:t,surface:"deck_v2",...Hd(p)}))},e[2]=t,e[3]=n,e[4]=s):s=e[4];const l=s;let u;e[5]===Symbol.for("react.memo_cache_sentinel")?(u={color:N.ink,fontFamily:"Switzer, 'Inter var', Helvetica, Arial, sans-serif",WebkitFontSmoothing:"antialiased"},e[5]=u):u=e[5];let c;e[6]!==t?(c=T.jsx(wf,{domain:t}),e[6]=t,e[7]=c):c=e[7];let f;e[8]===Symbol.for("react.memo_cache_sentinel")?(f=T.jsx("div",{className:"pointer-events-none absolute inset-0 bg-white/35"}),e[8]=f):f=e[8];let h;e[9]!==t||e[10]!==o||e[11]!==n?(h=T.jsx("div",{className:"relative z-10 flex min-h-full items-center justify-center px-3 py-5 sm:px-6 sm:py-10",children:n?T.jsx("div",{className:"h-[330px] w-full max-w-[440px] animate-pulse rounded-3xl bg-white/90","aria-label":"Carregando sessão"}):T.jsxs("section",{role:"dialog","aria-modal":"true","aria-label":"Acesse seu relatório",className:"w-full max-w-[440px] rounded-2xl bg-white px-5 py-5 shadow-2xl sm:rounded-3xl sm:px-7 sm:py-7",children:[T.jsx(yI,{callbackUrl:QI(t),title:"Acesse seu relatório",subtitle:"Entre ou crie sua conta para ver a análise completa.",variant:"compact",allowedSocialProviders:["google"],allowPassword:!1,onAuthEvent:o,brand:T.jsxs("div",{className:"flex items-center justify-between gap-4",children:[T.jsxs("div",{className:"inline-flex min-w-0 items-center gap-2 rounded-full border px-3 py-1.5",style:{borderColor:N.border,background:N.bg},children:[T.jsx("img",{src:bf(t),alt:"",className:"h-4 w-4 shrink-0 rounded object-contain"}),T.jsx("span",{className:"truncate text-[13px]",style:{color:N.muted},children:t})]}),T.jsx("img",{src:"/logos/deco logo.svg",alt:"Deco",className:"h-7 w-7 shrink-0"})]}),copy:JI}),T.jsx("p",{className:"mt-5 text-center text-xs leading-5",style:{color:N.faint},children:"Acesso gratuito. Leva menos de um minuto."}),T.jsx(y2,{compact:!0})]})}),e[9]=t,e[10]=o,e[11]=n,e[12]=h):h=e[12];let v;return e[13]!==c||e[14]!==h||e[15]!==l?(v=T.jsxs("div",{ref:l,className:"fixed inset-0 overflow-y-auto",style:u,children:[c,f,h]}),e[13]=c,e[14]=h,e[15]=l,e[16]=v):v=e[16],v}const Zy=4e3,aP=180;function tc(r,e){for(const t of e??[])Ke("report_slide_dropped",{domain:r,section_type:t.section_type,position:t.position,reason:t.reason,surface:"deck_v2"})}const Og=r=>`report:pending:${r}`,nP=r=>{try{return JSON.parse(localStorage.getItem(Og(r))??"null")}catch{return null}},iP=r=>{try{localStorage.setItem(Og(r),JSON.stringify({startedAt:Date.now()}))}catch{}},Oi=r=>{try{localStorage.removeItem(Og(r))}catch{}};async function oP(r,e,t,a){try{Ke("report_scan_triggered",{domain:r,surface:"deck_v2"});const n=await OI({domain:r,distinctId:e});if(t.aborted)return;if(n.state==="blocked")return Oi(r),Ke("report_scan_failed",{domain:r,phase:"blocked",reason:"blocked",surface:"deck_v2"}),a.onPhase("blocked");const i=n.state==="running"?n.id:null;n.state==="running"&&(a.onPhase("pending"),Ke("report_pending_screen_shown",{domain:r,surface:"deck_v2"}),iP(r));for(let o=0;o<aP&&!t.aborted;o++){const s=await Gd(r);if(t.aborted)return;if(s.status==="ready"&&s.deck)return Oi(r),tc(r,s.drops),Ke("report_scan_completed",{domain:r,surface:"deck_v2"}),a.onDeck(s.deck);if(i){const l=await BI(i);if(t.aborted)return;if(l.done){await Yy(Zy,{signal:t});const u=await Gd(r);return t.aborted?void 0:u.status==="ready"&&u.deck?(Oi(r),tc(r,u.drops),Ke("report_scan_completed",{domain:r,surface:"deck_v2"}),a.onDeck(u.deck)):(tc(r,u.drops),Oi(r),Ke("report_scan_failed",{domain:r,phase:"empty",reason:"run_finished_empty",surface:"deck_v2"}),a.onPhase("empty"))}}await Yy(Zy,{signal:t})}t.aborted||(Oi(r),Ke("report_scan_failed",{domain:r,phase:"empty",reason:"poll_timeout",surface:"deck_v2"}),a.onPhase("empty"))}catch(n){if(!t.aborted){Oi(r);const i=Ng(n);Ke("report_scan_failed",{domain:r,phase:i?"unauthorized":"error",reason:i?"unauthorized":"exception",surface:"deck_v2"}),a.onPhase(i?"unauthorized":"error")}}}const sP={share:PI,arrow_forward:TI,arrow_upward:bI,arrow_downward:_I,info:II,warning:vI,flag:RI,lock:hI,link:wI,leaderboard:LI,checklist:MI,notifications_active:DI,package_2:EI,check_circle:kI,cancel:SI,error:xI,trending_up:AI,trending_down:CI},lP={xs:12,small:14,medium:16,large:18,xl:20,xxl:32,40:40,immense:80};function dt(r){const e=be.c(4),{name:t,size:a,class:n}=r,i=a===void 0?"medium":a,o=n===void 0?"":n,s=sP[t];if(!s)return null;const l=lP[i];let u;return e[0]!==s||e[1]!==o||e[2]!==l?(u=T.jsx(s,{size:l,className:o}),e[0]=s,e[1]=o,e[2]=l,e[3]=u):u=e[3],u}function T2(r){return`/commerce-onboarding?siteUrl=${encodeURIComponent(r)}`}function Tf(r,e){Ke("report_cta_clicked",{domain:e.domain,placement:e.placement,destination:"studio_onboarding",...e.slideKey!==void 0?{slide_key:e.slideKey}:{},...e.slideIndex!==void 0?{slide_index:e.slideIndex}:{},surface:"deck_v2"},{transport:"sendBeacon"})}const Ne=r=>`https://www.google.com/s2/favicons?domain=${r}&sz=64`,uP={"google analytics 4":Ne("analytics.google.com"),ga4:Ne("analytics.google.com"),"google analytics":Ne("analytics.google.com"),"google search console":Ne("search.google.com"),"search console":Ne("search.google.com"),gsc:Ne("search.google.com"),"gsc url inspection":Ne("search.google.com"),"google tag manager":Ne("tagmanager.google.com"),gtm:Ne("tagmanager.google.com"),"google ads":Ne("ads.google.com"),"keyword planner":Ne("ads.google.com"),"merchant center":Ne("merchants.google.com"),"google merchant center":Ne("merchants.google.com"),"pagespeed insights":Ne("pagespeed.web.dev"),psi:Ne("pagespeed.web.dev"),lighthouse:Ne("developer.chrome.com"),"chrome ux report":Ne("developer.chrome.com"),crux:Ne("developer.chrome.com"),"chrome devtools":Ne("developer.chrome.com"),webpagetest:Ne("webpagetest.org"),semrush:Ne("semrush.com"),similarweb:Ne("similarweb.com"),ahrefs:Ne("ahrefs.com"),moz:Ne("moz.com"),"screaming frog":Ne("screamingfrog.co.uk"),builtwith:Ne("builtwith.com"),microlink:Ne("microlink.io"),apify:Ne("apify.com"),firecrawl:Ne("firecrawl.dev"),"reclame aqui":Ne("reclameaqui.com.br"),instagram:Ne("instagram.com"),meta:Ne("meta.com"),"meta business manager":Ne("business.facebook.com"),vtex:Ne("vtex.com"),"vtex oms":Ne("vtex.com"),shopify:Ne("shopify.com"),linx:Ne("linx.com.br"),wake:Ne("wake.com")};function qy(r,e){return e||(uP[r.toLowerCase().trim()]??"")}function rr(r){const e=be.c(20),{eyebrow:t,headline:a,annotation:n,active:i}=r;let o;if(e[0]!==a){let p;e[2]===Symbol.for("react.memo_cache_sentinel")?(p=/\s*\n\s*/g,e[2]=p):p=e[2],o=a.replace(p," "),e[0]=a,e[1]=o}else o=e[1];const s=o,l=i?"true":"false";let u;e[3]!==t||e[4]!==l?(u=t&&T.jsx("p",{className:"reveal deck-eyebrow","data-show":l,children:t}),e[3]=t,e[4]=l,e[5]=u):u=e[5];let c;e[6]===Symbol.for("react.memo_cache_sentinel")?(c={color:N.ink},e[6]=c):c=e[6];let f;e[7]!==l||e[8]!==s?(f=T.jsx("h2",{className:"reveal text-balance font-normal leading-[1.14] tracking-[-0.02em] text-[min(clamp(1.3125rem,4.8vw,2.5rem),2.9svh)] sm:text-[clamp(1.5rem,3.2vw,2.5rem)] lg:text-[2.25rem] lg:max-w-[20ch]","data-show":l,style:c,children:s}),e[7]=l,e[8]=s,e[9]=f):f=e[9];let h;e[10]!==i||e[11]!==n||e[12]!==l?(h=n&&T.jsx("p",{className:"reveal max-w-[44ch] shrink-0 text-[min(13px,1.9svh)] leading-snug sm:pt-1 sm:text-[14px] sm:leading-relaxed","data-show":l,style:{color:N.muted,transitionDelay:i?"90ms":"0ms"},children:n}),e[10]=i,e[11]=n,e[12]=l,e[13]=h):h=e[13];let v;e[14]!==f||e[15]!==h?(v=T.jsxs("div",{className:"flex flex-col gap-[min(0.625rem,1svh)] sm:flex-row sm:items-start sm:justify-between sm:gap-12",children:[f,h]}),e[14]=f,e[15]=h,e[16]=v):v=e[16];let d;return e[17]!==u||e[18]!==v?(d=T.jsxs("header",{className:"flex shrink-0 flex-col gap-[min(0.625rem,1svh)] px-5 pt-2 sm:gap-3 sm:px-10 lg:px-16",children:[u,v]}),e[17]=u,e[18]=v,e[19]=d):d=e[19],d}const dh=18;function cP(r){const e=be.c(20),{eyebrow:t,headline:a,annotation:n,items:i,active:o}=r,s=i.length>=5;let l;e[0]!==o||e[1]!==n||e[2]!==t||e[3]!==a?(l=T.jsx(rr,{eyebrow:t,headline:a,annotation:n,active:o}),e[0]=o,e[1]=n,e[2]=t,e[3]=a,e[4]=l):l=e[4];const u=s?"gap-[min(1rem,1.9svh)] sm:gap-4":"gap-[min(1.625rem,2.8svh)] sm:gap-9";let c;e[5]!==u?(c=We("my-auto flex w-full flex-col",u),e[5]=u,e[6]=c):c=e[6];let f;if(e[7]!==o||e[8]!==s||e[9]!==i){let d;e[11]!==o||e[12]!==s?(d=(p,g)=>{const m=at[p.tone??"neutral"],y=Math.max(1,Math.min(dh,Math.round(p.ratio*dh)));return T.jsxs("div",{className:We("reveal flex flex-col",s?"gap-1.5":"gap-2 sm:gap-2.5"),"data-show":o?"true":"false",style:{transitionDelay:o?`${80+g*90}ms`:"0ms"},children:[T.jsxs("div",{className:"flex items-baseline justify-between gap-4",children:[T.jsx("span",{className:We("min-w-0 flex-1 tracking-[-0.01em]",s?"line-clamp-2 break-words text-sm leading-snug sm:text-base":"truncate text-sm sm:text-base"),style:{color:N.muted},children:p.label}),T.jsx("span",{className:We("shrink-0 font-light leading-none tracking-[-0.02em] tabular-nums",s?"text-[min(clamp(1.375rem,3.5vw,1.75rem),3svh)]":"text-[min(clamp(1.5rem,4.5vw,2.5rem),3.4svh)] sm:text-[clamp(1.5rem,3vw,2.5rem)]"),style:{color:m},children:p.value})]}),T.jsx("div",{className:"flex gap-[3px]",children:Array.from({length:dh},(x,_)=>T.jsx("span",{className:We("flex-1 rounded-[2px]",s?"h-2.5 sm:h-3":"h-3 sm:h-3.5"),style:{background:o&&_<y?m:"rgba(40,37,36,0.08)",transition:"background-color 240ms ease",transitionDelay:o&&_<y?`${180+g*90+_*24}ms`:"0ms"}},_))})]},g)},e[11]=o,e[12]=s,e[13]=d):d=e[13],f=i.map(d),e[7]=o,e[8]=s,e[9]=i,e[10]=f}else f=e[10];let h;e[14]!==c||e[15]!==f?(h=T.jsx("div",{className:"flex min-h-0 flex-1 flex-col overflow-y-auto px-5 py-[min(1.5rem,2svh)] sm:px-10 sm:py-6 lg:px-16",children:T.jsx("div",{className:c,children:f})}),e[14]=c,e[15]=f,e[16]=h):h=e[16];let v;return e[17]!==l||e[18]!==h?(v=T.jsxs("div",{className:"flex h-full flex-col",children:[l,h]}),e[17]=l,e[18]=h,e[19]=v):v=e[19],v}const fP={good:{color:"#009a41",tint:"rgba(0,154,65,0.14)"},warn:{color:"#d98324",tint:"rgba(217,131,36,0.14)"},bad:{color:"#ef4444",tint:"rgba(239,68,68,0.14)"}},Wd=33,ph=2*Math.PI*Wd;function hP(r){const e=r?.match(/^(.*?)\s*\((.+)\)$/);return e?{band:e[1]??"",count:e[2]}:{band:r??""}}function vP(r){const e=be.c(15),{eyebrow:t,headline:a,annotation:n,gauges:i,active:o}=r;let s;e[0]!==o||e[1]!==n||e[2]!==t||e[3]!==a?(s=T.jsx(rr,{eyebrow:t,headline:a,annotation:n,active:o}),e[0]=o,e[1]=n,e[2]=t,e[3]=a,e[4]=s):s=e[4];let l;if(e[5]!==o||e[6]!==i){let f;e[8]!==o?(f=(h,v)=>{const d=fP[h.status],p=Math.min(1,Math.max(0,h.ratio??0)),{band:g,count:m}=hP(h.caption);return T.jsxs("div",{className:"reveal flex flex-col items-center rounded-2xl px-2 py-[min(0.875rem,1.6svh)] text-center sm:px-4 sm:py-5","data-show":o?"true":"false",style:{background:N.surface,border:`1px solid ${N.border}`,transitionDelay:o?`${100+v*80}ms`:"0ms"},children:[T.jsxs("div",{className:"relative h-[min(4.25rem,9svh)] w-[min(4.25rem,9svh)] sm:h-20 sm:w-20",children:[T.jsxs("svg",{viewBox:"0 0 80 80",className:"h-full w-full -rotate-90",children:[T.jsx("circle",{cx:"40",cy:"40",r:Wd,fill:"none",stroke:d.tint,strokeWidth:"7"}),T.jsx("circle",{cx:"40",cy:"40",r:Wd,fill:"none",stroke:d.color,strokeWidth:"7",strokeLinecap:"round",strokeDasharray:ph,strokeDashoffset:o?ph*(1-p):ph,className:"transition-[stroke-dashoffset] duration-1000 ease-out",style:{transitionDelay:o?`${200+v*80}ms`:"0ms"}})]}),T.jsx("span",{className:"absolute inset-0 flex items-center justify-center font-semibold leading-none tracking-[-0.02em] tabular-nums text-[min(1.375rem,3svh)] sm:text-2xl",style:{color:d.color},children:h.value})]}),T.jsx("span",{className:"mt-[min(0.5rem,1svh)] line-clamp-2 text-[13px] font-medium leading-tight sm:mt-2.5 sm:text-sm",style:{color:N.ink},children:h.label}),T.jsx("span",{className:"mt-1.5 inline-block rounded-full px-2 py-0.5 text-[10px] font-medium leading-[1.4] sm:text-[11px]",style:{color:d.color,background:d.tint},children:g}),m&&T.jsx("span",{className:"mt-1 hidden text-[11px] sm:block",style:{color:N.muted,opacity:.8},children:m})]},v)},e[8]=o,e[9]=f):f=e[9],l=i.map(f),e[5]=o,e[6]=i,e[7]=l}else l=e[7];let u;e[10]!==l?(u=T.jsx("div",{className:"flex min-h-0 flex-1 flex-col overflow-y-auto px-5 py-[min(1rem,1.8svh)] sm:px-10 sm:py-4 lg:px-16",children:T.jsx("div",{className:"my-auto grid w-full grid-cols-2 gap-2.5 sm:grid-cols-3 sm:gap-4",children:l})}),e[10]=l,e[11]=u):u=e[11];let c;return e[12]!==s||e[13]!==u?(c=T.jsxs("div",{className:"flex h-full flex-col",children:[s,u]}),e[12]=s,e[13]=u,e[14]=c):c=e[14],c}const Ky={pass:{color:at.good,icon:"check_circle"},fail:{color:at.bad,icon:"cancel"},warn:{color:N.warn,icon:"error"}};function dP(r){const e=be.c(16),{eyebrow:t,headline:a,annotation:n,checks:i,active:o}=r;let s;e[0]!==o||e[1]!==n||e[2]!==t||e[3]!==a?(s=T.jsx(rr,{eyebrow:t,headline:a,annotation:n,active:o}),e[0]=o,e[1]=n,e[2]=t,e[3]=a,e[4]=s):s=e[4];let l;if(e[5]!==o||e[6]!==i){let f;e[8]!==o||e[9]!==i.length?(f=(h,v)=>{const d=Ky[h.status]??Ky.fail;return T.jsxs("li",{className:"reveal flex items-center gap-4 py-[min(0.875rem,1.5svh)] sm:py-4","data-show":o?"true":"false",style:{...v<i.length-1?{borderBottom:`1px solid ${N.border}`}:{},transitionDelay:o?`${60+v*55}ms`:"0ms"},children:[T.jsx("span",{className:"grid shrink-0 place-items-center",style:{color:d.color},children:T.jsx(dt,{name:d.icon,size:"large"})}),T.jsx("span",{className:"min-w-0 flex-[2] text-[15px] leading-snug sm:text-lg",style:{color:N.ink},children:h.label}),h.value&&T.jsx("span",{className:"min-w-0 flex-1 truncate text-right text-[13px] font-medium tabular-nums sm:text-base",style:{color:d.color},title:h.value,children:h.value})]},v)},e[8]=o,e[9]=i.length,e[10]=f):f=e[10],l=i.map(f),e[5]=o,e[6]=i,e[7]=l}else l=e[7];let u;e[11]!==l?(u=T.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto px-5 sm:px-10 lg:px-16",children:T.jsx("div",{className:"flex min-h-full flex-col justify-center py-3",children:T.jsx("ul",{className:"w-full",children:l})})}),e[11]=l,e[12]=u):u=e[12];let c;return e[13]!==s||e[14]!==u?(c=T.jsxs("div",{className:"flex h-full flex-col",children:[s,u]}),e[13]=s,e[14]=u,e[15]=c):c=e[15],c}function Bg(r){return T2(`https://${r}/`)}function pP(r){const e=r.trim().replace(/^https?:\/\//,"").split("/")[0]??"";return/\./.test(e)?`https://www.google.com/s2/favicons?domain=${encodeURIComponent(e)}&sz=64`:null}function gP(r){const e=be.c(5),{initial:t,faviconUrl:a}=r,[n,i]=Re.useState(!1);let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={border:`1px solid ${N.border}`,boxShadow:"0 1px 1px rgba(40,37,36,0.04),0 3px 9px rgba(40,37,36,0.04),0 6px 18px rgba(40,37,36,0.02)"},e[0]=o):o=e[0];let s;return e[1]!==n||e[2]!==a||e[3]!==t?(s=T.jsx("span",{className:"grid size-9 shrink-0 place-items-center overflow-hidden rounded-[10px] bg-white sm:size-10",style:o,children:a&&!n?T.jsx("img",{src:a,alt:"",className:"h-full w-full object-contain p-2",onError:()=>i(!0)}):T.jsx("span",{className:"text-lg font-medium",style:{color:N.muted},children:t})}),e[1]=n,e[2]=a,e[3]=t,e[4]=s):s=e[4],s}function mP(r){const e=be.c(34),{eyebrow:t,headline:a,annotation:n,metricLabel:i,competitors:o,faviconUrl:s,domain:l,active:u}=r,c=Bg(l);let f;e[0]!==u||e[1]!==n||e[2]!==t||e[3]!==a?(f=T.jsx(rr,{eyebrow:t,headline:a,annotation:n,active:u}),e[0]=u,e[1]=n,e[2]=t,e[3]=a,e[4]=f):f=e[4];let h,v;e[5]===Symbol.for("react.memo_cache_sentinel")?(h={color:N.muted},v=T.jsx("span",{className:"flex-1",children:"Concorrente"}),e[5]=h,e[6]=v):(h=e[5],v=e[6]);let d;e[7]!==i?(d=i&&T.jsx("span",{children:i}),e[7]=i,e[8]=d):d=e[8];let p;e[9]!==d?(p=T.jsxs("div",{className:"flex items-center gap-3 px-4 pb-2 text-[11px] font-medium uppercase tracking-[0.04em]",style:h,children:[v,d]}),e[9]=d,e[10]=p):p=e[10];let g;if(e[11]!==u||e[12]!==o||e[13]!==s){let C;e[15]!==u||e[16]!==s?(C=(A,D)=>{const M=A.isYou?N.muted:at[A.tone??"neutral"];return T.jsxs("li",{className:"reveal flex items-center gap-3 rounded-xl px-3 py-[min(0.5rem,1svh)]","data-show":u?"true":"false",style:{...A.isYou?{background:N.surface,border:`1px solid ${N.border}`}:{},transitionDelay:u?`${60+D*60}ms`:"0ms"},children:[T.jsx(gP,{initial:(A.name[0]??"?").toUpperCase(),faviconUrl:A.isYou?s:pP(A.name)}),T.jsx("span",{className:"flex-1 truncate text-[15px] sm:text-lg",style:{color:N.ink},children:A.name}),T.jsx("span",{className:"shrink-0 text-lg font-light tabular-nums tracking-[-0.02em] sm:text-2xl",style:{color:M},children:A.value})]},D)},e[15]=u,e[16]=s,e[17]=C):C=e[17],g=o.map(C),e[11]=u,e[12]=o,e[13]=s,e[14]=g}else g=e[14];let m;e[18]!==g?(m=T.jsx("div",{className:"flex min-h-0 flex-1 flex-col overflow-y-auto",children:T.jsx("ul",{className:"my-auto flex flex-col gap-[min(0.375rem,0.8svh)] py-1",children:g})}),e[18]=g,e[19]=m):m=e[19];const y=c.startsWith("http")?"_blank":"_self";let x;e[20]!==l?(x=C=>Tf(C,{domain:l,placement:"competitor_slide_edit"}),e[20]=l,e[21]=x):x=e[21];let _;e[22]===Symbol.for("react.memo_cache_sentinel")?(_={borderColor:N.inputBorder,color:N.ink,background:N.surface},e[22]=_):_=e[22];let b;e[23]!==c||e[24]!==y||e[25]!==x?(b=T.jsx("div",{className:"flex shrink-0 justify-center py-[min(1rem,2.4svh)] sm:py-5",children:T.jsx("a",{href:c,target:y,rel:"noopener noreferrer",onClick:x,className:"inline-flex h-11 items-center rounded-full border px-7 text-[15px] font-medium transition-colors hover:bg-black/[0.03] sm:h-12 sm:px-8 sm:text-base",style:_,children:"Editar meus concorrentes"})}),e[23]=c,e[24]=y,e[25]=x,e[26]=b):b=e[26];let S;e[27]!==b||e[28]!==p||e[29]!==m?(S=T.jsxs("div",{className:"flex min-h-0 flex-1 flex-col px-5 pt-4 sm:px-10 lg:px-16",children:[p,m,b]}),e[27]=b,e[28]=p,e[29]=m,e[30]=S):S=e[30];let w;return e[31]!==f||e[32]!==S?(w=T.jsxs("div",{className:"flex h-full flex-col",children:[f,S]}),e[31]=f,e[32]=S,e[33]=w):w=e[33],w}function Jy(r){const e=be.c(10),{url:t,initial:a,size:n}=r,[i,o]=Re.useState(!1);let s;e[0]!==n?(s={width:n,height:n,borderColor:N.border},e[0]=n,e[1]=s):s=e[1];let l;e[2]!==i||e[3]!==a||e[4]!==n||e[5]!==t?(l=i?T.jsx("span",{className:"font-medium",style:{fontSize:n*.42,color:N.muted},children:a}):T.jsx("img",{src:t,alt:"",width:n,height:n,className:"h-full w-full object-contain p-1.5",onError:()=>o(!0)}),e[2]=i,e[3]=a,e[4]=n,e[5]=t,e[6]=l):l=e[6];let u;return e[7]!==s||e[8]!==l?(u=T.jsx("span",{className:"flex shrink-0 items-center justify-center overflow-hidden rounded-xl border bg-white",style:s,children:l}),e[7]=s,e[8]=l,e[9]=u):u=e[9],u}function Qy(r){const e=be.c(36),{domain:t,faviconUrl:a,initial:n,desktopShot:i,mobileShot:o,hidePhone:s}=r,l=s===void 0?!1:s,[u,c]=Re.useState(i?"loading":"fail"),[f,h]=Re.useState(o?"loading":"fail"),v=!l&&"pb-10 pl-8";let d;e[0]!==v?(d=We("relative w-full max-w-[560px]",v),e[0]=v,e[1]=d):d=e[1];let p;e[2]===Symbol.for("react.memo_cache_sentinel")?(p={boxShadow:"0 0 0 1px rgba(40,37,36,0.14), 0 2px 4px rgba(40,37,36,0.05), 0 28px 56px -22px rgba(40,37,36,0.30)"},e[2]=p):p=e[2];let g;e[3]===Symbol.for("react.memo_cache_sentinel")?(g={background:"#f4f2ec",borderBottom:`1px solid ${N.border}`},e[3]=g):g=e[3];let m;e[4]===Symbol.for("react.memo_cache_sentinel")?(m=T.jsxs("span",{className:"flex gap-1.5",children:[T.jsx("span",{className:"h-2.5 w-2.5 rounded-full bg-black/15"}),T.jsx("span",{className:"h-2.5 w-2.5 rounded-full bg-black/15"}),T.jsx("span",{className:"h-2.5 w-2.5 rounded-full bg-black/15"})]}),e[4]=m):m=e[4];let y,x;e[5]===Symbol.for("react.memo_cache_sentinel")?(y={background:"#fff"},x=T.jsx(dt,{name:"lock",size:"xs",class:"opacity-50"}),e[5]=y,e[6]=x):(y=e[5],x=e[6]);let _;e[7]===Symbol.for("react.memo_cache_sentinel")?(_={color:N.muted},e[7]=_):_=e[7];let b;e[8]!==t?(b=T.jsxs("div",{className:"flex h-9 items-center gap-2 px-4",style:g,children:[m,T.jsxs("span",{className:"mx-2 flex h-5 flex-1 items-center gap-2 rounded-md px-2.5",style:y,children:[x,T.jsx("span",{className:"truncate text-xs",style:_,children:t})]})]}),e[8]=t,e[9]=b):b=e[9];let S;e[10]===Symbol.for("react.memo_cache_sentinel")?(S={background:"#f4f2ec"},e[10]=S):S=e[10];let w;e[11]!==u||e[12]!==a||e[13]!==n?(w=u!=="ok"&&T.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center gap-3 animate-pulse",children:[T.jsx(Jy,{url:a,initial:n,size:44}),T.jsx("span",{className:"text-xs",style:{color:N.muted},children:u==="loading"?"capturing preview…":"preview unavailable"})]}),e[11]=u,e[12]=a,e[13]=n,e[14]=w):w=e[14];let C;e[15]!==i||e[16]!==t||e[17]!==u?(C=i&&T.jsx("img",{src:i,alt:`${t} homepage`,className:We("absolute inset-0 block h-full w-full object-cover object-top transition-opacity duration-500",u==="ok"?"opacity-100":"opacity-0"),onLoad:()=>c("ok"),onError:()=>c("fail"),loading:"eager"}),e[15]=i,e[16]=t,e[17]=u,e[18]=C):C=e[18];let A;e[19]!==w||e[20]!==C?(A=T.jsxs("div",{className:"relative aspect-[4/3]",style:S,children:[w,C]}),e[19]=w,e[20]=C,e[21]=A):A=e[21];let D;e[22]!==b||e[23]!==A?(D=T.jsxs("div",{className:"overflow-hidden rounded-2xl bg-white",style:p,children:[b,A]}),e[22]=b,e[23]=A,e[24]=D):D=e[24];let M;e[25]!==t||e[26]!==a||e[27]!==l||e[28]!==n||e[29]!==o||e[30]!==f?(M=!l&&f!=="fail"&&T.jsx("div",{className:"absolute bottom-0 left-0 w-[26%] max-w-[136px]",children:T.jsxs("div",{className:"rounded-[1.5rem] p-1.5",style:{background:"#fff",boxShadow:"0 0 0 1px rgba(40,37,36,0.14), 0 2px 4px rgba(40,37,36,0.06), 0 18px 36px -16px rgba(40,37,36,0.36)"},children:[T.jsx("div",{className:"flex h-5 items-center justify-center",children:T.jsx("span",{className:"h-1.5 w-9 rounded-full bg-black/15"})}),T.jsxs("div",{className:"relative aspect-[9/19] overflow-hidden rounded-[1.05rem]",style:{background:"#f4f2ec"},children:[f!=="ok"&&T.jsx("div",{className:"absolute inset-0 flex items-center justify-center animate-pulse",children:T.jsx(Jy,{url:a,initial:n,size:26})}),o&&T.jsx("img",{src:o,alt:`${t} mobile`,className:We("absolute inset-0 block h-full w-full object-cover object-top transition-opacity duration-500",f==="ok"?"opacity-100":"opacity-0"),style:{transform:"scale(1.14) translateY(-6%)",transformOrigin:"50% 0%"},onLoad:()=>h("ok"),onError:()=>h("fail"),loading:"eager"})]})]})}),e[25]=t,e[26]=a,e[27]=l,e[28]=n,e[29]=o,e[30]=f,e[31]=M):M=e[31];let I;return e[32]!==D||e[33]!==M||e[34]!==d?(I=T.jsxs("div",{className:d,children:[D,M]}),e[32]=D,e[33]=M,e[34]=d,e[35]=I):I=e[35],I}function C2(r){return r>=61?at.good:r>=41?N.warn:at.bad}const yP="A composite score from 0–100 measuring your store's commerce performance across page speed, SEO signals, conversion experience, and technical health. Higher is better.";function e0(r){const e=be.c(54),{score:t,active:a,compact:n}=r,[i,o]=Re.useState(0);let s;e[0]!==t.value?(s=C2(t.value),e[0]=t.value,e[1]=s):s=e[1];const l=s,u=n?66:104,c=n?7:10,[f,h]=Re.useState(!1),v=Re.useRef(null);let d;e[2]!==a||e[3]!==t.value?(d=$=>{if(!$||!a)return;const j=t.value;if(window.matchMedia?.("(prefers-reduced-motion: reduce)").matches){o(j);return}let K=0,Se=0;const me=we=>{Se||(Se=we);const he=Math.min(1,(we-Se)/1100);o(j*(1-(1-he)**3)),he<1&&(K=requestAnimationFrame(me))};return K=requestAnimationFrame(me),()=>cancelAnimationFrame(K)},e[2]=a,e[3]=t.value,e[4]=d):d=e[4];const p=d;let g;e[5]===Symbol.for("react.memo_cache_sentinel")?(g=$=>{if(!$)return;const j=K=>{v.current&&!v.current.contains(K.target)&&h(!1)};return document.addEventListener("mousedown",j),document.addEventListener("touchstart",j),()=>{document.removeEventListener("mousedown",j),document.removeEventListener("touchstart",j)}},e[5]=g):g=e[5];const m=g,y=Math.min(100,Math.max(0,i)),x=(u-c)/2,_=2*Math.PI*x,b=u/2,S=u/2;let w;e[6]!==x||e[7]!==c||e[8]!==b||e[9]!==S?(w=T.jsx("circle",{cx:b,cy:S,r:x,fill:"none",stroke:N.border,strokeWidth:c}),e[6]=x,e[7]=c,e[8]=b,e[9]=S,e[10]=w):w=e[10];const C=u/2,A=u/2,D=_*(1-y/100);let M;e[11]!==_||e[12]!==x||e[13]!==c||e[14]!==C||e[15]!==A||e[16]!==D||e[17]!==l?(M=T.jsx("circle",{cx:C,cy:A,r:x,fill:"none",stroke:l,strokeWidth:c,strokeLinecap:"round",strokeDasharray:_,strokeDashoffset:D}),e[11]=_,e[12]=x,e[13]=c,e[14]=C,e[15]=A,e[16]=D,e[17]=l,e[18]=M):M=e[18];let I;e[19]!==u||e[20]!==M||e[21]!==w?(I=T.jsxs("svg",{width:u,height:u,className:"-rotate-90 shrink-0",children:[w,M]}),e[19]=u,e[20]=M,e[21]=w,e[22]=I):I=e[22];let P;e[23]!==l?(P={color:l},e[23]=l,e[24]=P):P=e[24];let k;e[25]!==i?(k=Math.round(i),e[25]=i,e[26]=k):k=e[26];let R;e[27]!==P||e[28]!==k?(R=T.jsx("span",{className:"font-light leading-[0.9] tracking-[-0.02em] tabular-nums text-[2.4rem] lg:text-[4rem]",style:P,children:k}),e[27]=P,e[28]=k,e[29]=R):R=e[29];let E;e[30]===Symbol.for("react.memo_cache_sentinel")?(E=T.jsx("span",{className:"text-sm lg:text-xl",style:{color:N.faint},children:"/ 100"}),e[30]=E):E=e[30];let B;e[31]!==R?(B=T.jsxs("div",{className:"flex items-baseline gap-2",children:[R,E]}),e[31]=R,e[32]=B):B=e[32];let O;e[33]===Symbol.for("react.memo_cache_sentinel")?(O=T.jsx("span",{className:"text-[11px] font-medium uppercase tracking-[0.04em] lg:text-[12px]",style:{color:N.soft},children:"Deco Score"}),e[33]=O):O=e[33];const V=f?.8:.45;let F;e[34]!==V?(F={opacity:V},e[34]=V,e[35]=F):F=e[35];let H,Y,Z,J;e[36]===Symbol.for("react.memo_cache_sentinel")?(H=()=>h(!0),Y=()=>h(!1),Z=()=>h(xP),J=T.jsx(dt,{name:"info",size:"medium",class:""}),e[36]=H,e[37]=Y,e[38]=Z,e[39]=J):(H=e[36],Y=e[37],Z=e[38],J=e[39]);let te;e[40]!==F?(te=T.jsx("button",{type:"button","aria-label":"What is the Deco Score?",className:"flex items-center justify-center rounded-full transition-opacity",style:F,onMouseEnter:H,onMouseLeave:Y,onClick:Z,children:J}),e[40]=F,e[41]=te):te=e[41];let xe;e[42]!==f?(xe=f&&T.jsx("div",{ref:m,className:"absolute left-0 top-full z-50 mt-2 w-72 rounded-xl px-4 py-3.5 text-sm leading-[1.6] shadow-xl",style:{background:N.surface,border:`1px solid ${N.border}`,color:N.ink,boxShadow:"0 4px 6px rgba(40,37,36,0.06), 0 12px 32px rgba(40,37,36,0.12)"},children:yP}),e[42]=f,e[43]=xe):xe=e[43];let de;e[44]!==te||e[45]!==xe?(de=T.jsxs("div",{ref:v,className:"relative flex items-center gap-1",children:[O,te,xe]}),e[44]=te,e[45]=xe,e[46]=de):de=e[46];let oe;e[47]!==B||e[48]!==de?(oe=T.jsxs("div",{className:"flex flex-col gap-0.5",children:[B,de]}),e[47]=B,e[48]=de,e[49]=oe):oe=e[49];let ae;return e[50]!==p||e[51]!==I||e[52]!==oe?(ae=T.jsxs("div",{ref:p,className:"flex shrink-0 items-center gap-3.5 lg:gap-5",children:[I,oe]}),e[50]=p,e[51]=I,e[52]=oe,e[53]=ae):ae=e[53],ae}function xP(r){return!r}function t0(r){const e=be.c(20),{deviceCluster:t,className:a,innerClassName:n,padClassName:i,alignClassName:o}=r,s=a===void 0?"":a,l=n===void 0?"max-w-[520px]":n,u=i===void 0?"p-4 sm:p-6":i,c=o===void 0?"items-center":o;let f;e[0]!==s?(f=We("deco-art relative overflow-hidden",s),e[0]=s,e[1]=f):f=e[1];let h;e[2]===Symbol.for("react.memo_cache_sentinel")?(h=T.jsx("div",{className:"holo-art-base absolute inset-0 z-0","aria-hidden":!0}),e[2]=h):h=e[2];let v;e[3]!==c||e[4]!==u?(v=We("relative z-10 flex h-full w-full justify-center",c,u),e[3]=c,e[4]=u,e[5]=v):v=e[5];let d;e[6]!==l?(d=We("w-full",l),e[6]=l,e[7]=d):d=e[7];let p;e[8]!==t||e[9]!==d?(p=T.jsx("div",{className:d,children:t}),e[8]=t,e[9]=d,e[10]=p):p=e[10];let g;e[11]!==v||e[12]!==p?(g=T.jsx("div",{className:v,children:p}),e[11]=v,e[12]=p,e[13]=g):g=e[13];let m,y,x;e[14]===Symbol.for("react.memo_cache_sentinel")?(m=T.jsx("div",{className:"holo-artfoil pointer-events-none absolute inset-0 z-20","aria-hidden":!0}),y=T.jsx("div",{className:"holo-sparkle pointer-events-none absolute inset-0 z-20","aria-hidden":!0}),x=T.jsx("div",{className:"holo-artglare pointer-events-none absolute inset-0 z-30","aria-hidden":!0}),e[14]=m,e[15]=y,e[16]=x):(m=e[14],y=e[15],x=e[16]);let _;return e[17]!==g||e[18]!==f?(_=T.jsxs("div",{className:f,children:[h,g,m,y,x]}),e[17]=g,e[18]=f,e[19]=_):_=e[19],_}function _P(r){const e=be.c(73),{headline:t,score:a,screenshot:n,mobileScreenshot:i,faviconUrl:o,domain:s,initial:l,active:u,findings:c,onFindingClick:f}=r,h=u===void 0?!1:u,[v,d]=Re.useState(h),[p,g]=Re.useState(h?1:0);h!==v&&(d(h),h&&g(bP));const m=Re.useRef(null),y=Re.useRef(0);let x;e[0]===Symbol.for("react.memo_cache_sentinel")?(x={rx:0,ry:0,trx:0,tryy:0,hovering:!1},e[0]=x):x=e[0];const _=Re.useRef(x);let b;if(e[1]===Symbol.for("react.memo_cache_sentinel")){const ft=()=>{const ht=m.current,vt=_.current;if(!ht){y.current=0;return}vt.rx=vt.rx+(vt.trx-vt.rx)*.12,vt.ry=vt.ry+(vt.tryy-vt.ry)*.12,ht.style.setProperty("--rx",`${vt.rx.toFixed(3)}deg`),ht.style.setProperty("--ry",`${vt.ry.toFixed(3)}deg`);const qo=Math.abs(vt.trx-vt.rx)<.02&&Math.abs(vt.tryy-vt.ry)<.02;vt.hovering||!qo?y.current=requestAnimationFrame(ft):y.current=0};b=()=>{y.current||(y.current=requestAnimationFrame(ft))},e[1]=b}else b=e[1];const S=b;let w;e[2]===Symbol.for("react.memo_cache_sentinel")?(w=ft=>{const ht=m.current;if(!ht)return;const vt=ht.getBoundingClientRect(),qo=(ft.clientX-vt.left)/vt.width,hh=(ft.clientY-vt.top)/vt.height,vh=_.current;vh.hovering=!0,vh.trx=(.5-hh)*28,vh.tryy=(qo-.5)*28,ht.style.setProperty("--mx",`${(qo*100).toFixed(1)}%`),ht.style.setProperty("--my",`${(hh*100).toFixed(1)}%`),ht.style.setProperty("--posx",`${(20+qo*60).toFixed(1)}%`),ht.style.setProperty("--posy",`${(20+hh*60).toFixed(1)}%`),ht.style.setProperty("--active","1"),S()},e[2]=w):w=e[2];const C=w;let A;e[3]===Symbol.for("react.memo_cache_sentinel")?(A=()=>{const ft=m.current;if(!ft)return;const ht=_.current;ht.hovering=!1,ht.trx=0,ht.tryy=0,ft.style.setProperty("--mx","50%"),ft.style.setProperty("--my","50%"),ft.style.setProperty("--posx","50%"),ft.style.setProperty("--posy","50%"),ft.style.setProperty("--active","0"),S()},e[3]=A):A=e[3];const D=A;let M;e[4]===Symbol.for("react.memo_cache_sentinel")?(M=ft=>(m.current=ft,()=>cancelAnimationFrame(y.current)),e[4]=M):M=e[4];const I=M;let P;e[5]!==a?(P=a?C2(a.value):N.ink,e[5]=a,e[6]=P):P=e[6];const k=P;let R;e[7]===Symbol.for("react.memo_cache_sentinel")?(R={borderBottom:`1px solid ${N.border}`},e[7]=R):R=e[7];let E;e[8]===Symbol.for("react.memo_cache_sentinel")?(E={width:40,height:40,border:`1px solid ${N.border}`,boxShadow:"0 0.714px 0.714px rgba(0,0,0,0.04),0 4.286px 17.143px rgba(0,0,0,0.01),0 6.429px 34.286px rgba(0,0,0,0.09)"},e[8]=E):E=e[8];let B;e[9]!==o?(B=T.jsx("div",{className:"flex shrink-0 items-center justify-center overflow-hidden rounded-xl bg-white",style:E,children:T.jsx("img",{src:o,alt:"",className:"h-full w-full object-contain p-1.5"})}),e[9]=o,e[10]=B):B=e[10];let O,V;e[11]===Symbol.for("react.memo_cache_sentinel")?(O={color:N.ink},V=T.jsx("span",{style:{color:N.faint},children:"https://"}),e[11]=O,e[12]=V):(O=e[11],V=e[12]);let F;e[13]!==s?(F=T.jsxs("span",{className:"min-w-0 flex-1 truncate text-sm lg:text-base",style:O,children:[V,s]}),e[13]=s,e[14]=F):F=e[14];let H;e[15]===Symbol.for("react.memo_cache_sentinel")?(H=T.jsx("span",{className:"shrink-0 text-[10px] font-medium uppercase tracking-[0.04em] lg:text-[11px]",style:{color:N.soft},children:"Relatório"}),e[15]=H):H=e[15];let Y;e[16]!==B||e[17]!==F?(Y=T.jsxs("div",{className:"flex shrink-0 items-center gap-3 pb-3.5 lg:gap-4 lg:pb-4",style:R,children:[B,F,H]}),e[16]=B,e[17]=F,e[18]=Y):Y=e[18];const Z=Y,J=h&&p>0?"true":"false";let te;e[19]!==k?(te={"--tone":k},e[19]=k,e[20]=te):te=e[20];const xe=te;let de,oe,ae,$;e[21]===Symbol.for("react.memo_cache_sentinel")?(de={background:"radial-gradient(120% 80% at 30% 0%, #ffffff 0%, #fafaf9 45%, #f6f4f1 100%)",boxShadow:"inset 0 1px 0 rgba(255,255,255,0.9), inset 0 0 0 1px rgba(40,37,36,0.05), 0 1px 2px rgba(40,37,36,0.04)"},oe=T.jsx("div",{className:"holo-foil pointer-events-none absolute inset-0 z-30","aria-hidden":!0}),ae=T.jsx("div",{className:"holo-lines pointer-events-none absolute inset-0 z-30","aria-hidden":!0}),$=T.jsx("div",{className:"holo-glare pointer-events-none absolute inset-0 z-40","aria-hidden":!0}),e[21]=de,e[22]=oe,e[23]=ae,e[24]=$):(de=e[21],oe=e[22],ae=e[23],$=e[24]);let j;e[25]===Symbol.for("react.memo_cache_sentinel")?(j=T.jsx("div",{className:"deco-sweep pointer-events-none absolute inset-0 z-50 overflow-hidden","aria-hidden":!0,children:T.jsx("span",{className:"holo-sweep-bar"})}),e[25]=j):j=e[25];let K;e[26]!==h||e[27]!==a?(K=a&&T.jsxs("div",{className:"mt-4 shrink-0 lg:mt-4",children:[T.jsx("div",{className:"lg:hidden",children:T.jsx(e0,{score:a,active:h,compact:!0})}),T.jsx("div",{className:"hidden lg:block",children:T.jsx(e0,{score:a,active:h})})]}),e[26]=h,e[27]=a,e[28]=K):K=e[28];const Se=h?"true":"false",me=h?"140ms":"0ms";let we;e[29]!==me?(we={color:N.ink,transitionDelay:me},e[29]=me,e[30]=we):we=e[30];let he;e[31]!==t||e[32]!==Se||e[33]!==we?(he=T.jsx("h1",{className:"reveal mt-3.5 text-balance text-[min(1.375rem,3svh)] font-normal leading-[1.16] tracking-[-0.02em] sm:text-2xl lg:mt-4 lg:text-[1.7rem]","data-show":Se,style:we,children:t}),e[31]=t,e[32]=Se,e[33]=we,e[34]=he):he=e[34];let Ve;e[35]!==h||e[36]!==c||e[37]!==f?(Ve=c&&c.length>0&&T.jsx("ul",{className:"holo-findings mt-4 flex min-h-0 shrink-0 flex-col overflow-y-auto pb-2 lg:mt-auto lg:shrink lg:pb-5 lg:pt-4",children:c.map((ft,ht)=>T.jsx("li",{className:We("reveal",ht>=4&&"hidden lg:block"),"data-show":h?"true":"false",style:{...ht<c.length-1?{borderBottom:`1px solid ${N.border}`}:{},transitionDelay:h?`${240+ht*55}ms`:"0ms"},children:T.jsxs("button",{type:"button",onClick:()=>f?.(ft.slideKey),className:"group flex w-full items-center gap-3 py-2 transition-colors hover:bg-black/[0.03] active:bg-black/[0.06] lg:gap-3.5 lg:py-2.5",style:{cursor:f?"pointer":"default"},children:[T.jsx("span",{className:"shrink-0 text-[11px] tabular-nums lg:text-[12px]",style:{color:N.soft},children:String(ht+1).padStart(2,"0")}),T.jsx("span",{className:"min-w-0 flex-1 truncate text-left text-[13px] opacity-55 transition-opacity group-hover:opacity-85 lg:text-[15px]",style:{color:N.ink,lineHeight:1.3},children:ft.title}),T.jsx(dt,{name:"arrow_forward",size:"xs",class:"shrink-0 opacity-0 transition-opacity group-hover:opacity-40"})]})},ft.slideKey))}),e[35]=h,e[36]=c,e[37]=f,e[38]=Ve):Ve=e[38];const ct=h?"true":"false",it=h?"260ms":"0ms";let wt;e[39]!==it?(wt={transitionDelay:it},e[39]=it,e[40]=wt):wt=e[40];let Dt;e[41]!==s||e[42]!==o||e[43]!==l||e[44]!==i||e[45]!==n?(Dt=T.jsx(t0,{deviceCluster:T.jsx(Qy,{domain:s,faviconUrl:o,initial:l,desktopShot:n,mobileShot:i,hidePhone:!0}),className:"deco-art-mobile h-full w-full rounded-2xl",innerClassName:"max-w-[440px]",padClassName:"px-5 pt-6",alignClassName:"items-start"}),e[41]=s,e[42]=o,e[43]=l,e[44]=i,e[45]=n,e[46]=Dt):Dt=e[46];let Lr;e[47]!==ct||e[48]!==wt||e[49]!==Dt?(Lr=T.jsx("div",{className:"reveal mt-4 min-h-[150px] flex-1 lg:hidden","data-show":ct,style:wt,children:Dt}),e[47]=ct,e[48]=wt,e[49]=Dt,e[50]=Lr):Lr=e[50];let Oe;e[51]!==Z||e[52]!==K||e[53]!==he||e[54]!==Ve||e[55]!==Lr?(Oe=T.jsxs("div",{className:"flex min-h-0 flex-col px-4 pb-3 pt-4 lg:px-5 lg:py-5",children:[Z,K,he,Ve,Lr]}),e[51]=Z,e[52]=K,e[53]=he,e[54]=Ve,e[55]=Lr,e[56]=Oe):Oe=e[56];let qe;e[57]!==s||e[58]!==o||e[59]!==l||e[60]!==i||e[61]!==n?(qe=T.jsx("div",{className:"hidden lg:block",children:T.jsx(t0,{deviceCluster:T.jsx(Qy,{domain:s,faviconUrl:o,initial:l,desktopShot:n,mobileShot:i}),className:"h-full w-full rounded-2xl"})}),e[57]=s,e[58]=o,e[59]=l,e[60]=i,e[61]=n,e[62]=qe):qe=e[62];let He;e[63]!==Oe||e[64]!==qe?(He=T.jsxs("div",{className:"relative flex min-h-0 flex-1 flex-col overflow-hidden rounded-[24px]",style:de,children:[oe,ae,$,j,T.jsxs("div",{className:"relative z-10 grid min-h-0 flex-1 grid-cols-1 gap-2 p-2 lg:grid-cols-2",children:[Oe,qe]})]}),e[63]=Oe,e[64]=qe,e[65]=He):He=e[65];let ur;e[66]!==xe||e[67]!==He?(ur=T.jsx("div",{ref:I,className:"holo-tilt relative flex h-full w-full flex-col rounded-[26px] p-[2px]",style:xe,children:He}),e[66]=xe,e[67]=He,e[68]=ur):ur=e[68];let Ni;return e[69]!==p||e[70]!==J||e[71]!==ur?(Ni=T.jsx("div",{className:"holo-stage flex h-full w-full items-center justify-center px-3 py-2 sm:px-6",onMouseMove:C,onMouseLeave:D,children:T.jsx("div",{"data-enter":J,className:"holo-card h-full w-full max-w-[1080px]",children:ur},p)}),e[69]=p,e[70]=J,e[71]=ur,e[72]=Ni):Ni=e[72],Ni}function bP(r){return r+1}const zg="M119.984 119.569H0V0H119.984V119.569ZM97.701 83.5682C91.8687 77.7359 84.1987 75.1332 77.3557 75.9756C76.5754 76.0717 75.9638 76.6837 75.8677 77.464C75.0254 84.3068 77.6278 91.9758 83.46 97.8081C89.2925 103.641 96.9622 106.243 103.805 105.401C104.586 105.305 105.197 104.693 105.293 103.913C106.135 97.07 103.533 89.4004 97.701 83.5682ZM42.3732 75.7072C35.5307 74.8654 27.8618 77.468 22.0299 83.2998C16.1979 89.1319 13.5955 96.8012 14.4377 103.644C14.5337 104.424 15.1456 105.036 15.926 105.132C22.7686 105.974 30.4374 103.372 36.2693 97.5397C42.1015 91.7075 44.7039 84.0383 43.8616 77.1956C43.7655 76.4151 43.1536 75.8032 42.3732 75.7072ZM61.0692 64.9991C60.4495 64.5153 59.5843 64.5153 58.9646 64.9991C53.5306 69.2421 49.9481 76.5051 49.948 84.7529C49.948 93.0008 53.5305 100.264 58.9646 104.507C59.5843 104.991 60.4495 104.991 61.0692 104.507C66.5033 100.264 70.0862 93.0008 70.0862 84.7529C70.0861 76.5052 66.5032 69.2422 61.0692 64.9991ZM35.4013 49.9298C27.1534 49.9299 19.8901 53.5122 15.6471 58.9463C15.1632 59.566 15.1633 60.4313 15.6471 61.051C19.89 66.4853 27.1532 70.0683 35.4013 70.0683C43.6494 70.0683 50.9129 66.4853 55.1559 61.051C55.6396 60.4313 55.6396 59.5664 55.1559 58.9468C50.9129 53.5125 43.6493 49.9298 35.4013 49.9298ZM84.7513 49.9298C76.5034 49.9298 69.2401 53.5122 64.9971 58.9463C64.5133 59.566 64.5133 60.4313 64.9971 61.051C69.2401 66.4853 76.5033 70.0683 84.7513 70.0683C92.9994 70.0683 100.263 66.4853 104.506 61.051C104.99 60.4313 104.99 59.5664 104.506 58.9468C100.263 53.5125 92.9993 49.9298 84.7513 49.9298ZM61.0692 15.6483C60.4495 15.1645 59.5843 15.1644 58.9646 15.6483C53.5305 19.8913 49.9481 27.1546 49.948 35.4025C49.9481 43.6505 53.5304 50.9141 58.9646 55.1571C59.5843 55.641 60.4495 55.6409 61.0692 55.1571C66.5033 50.9141 70.0862 43.6504 70.0862 35.4025C70.0862 27.1547 66.5033 19.8914 61.0692 15.6483ZM103.912 14.6242C97.0695 13.7825 89.4008 16.3854 83.5691 22.2172C77.737 28.0494 75.1345 35.7186 75.9768 42.5613C76.0729 43.3417 76.6848 43.9533 77.4652 44.0493C84.3077 44.8911 91.9762 42.2885 97.8081 36.4567C103.64 30.6244 106.243 22.9554 105.4 16.1125C105.304 15.3321 104.692 14.7202 103.912 14.6242ZM36.6172 22.0295C30.7853 16.1977 23.1164 13.595 16.2739 14.4369C15.4936 14.5329 14.8816 15.1449 14.7855 15.9252C13.9432 22.7681 16.546 30.4375 22.3782 36.2697C28.2102 42.1017 35.8793 44.704 42.7219 43.862C43.5022 43.7659 44.1138 43.1543 44.2099 42.374C45.0521 35.5312 42.4494 27.8617 36.6172 22.0295Z",SP="Sua loja tem receita parada.",wP="Vamos encontrá-la.",TP="Conectar minha loja",Jr=N.forest,Cc=N.lime,CP=N.forest,AP="repeating-conic-gradient(from 0deg, rgba(208,236,26,0.55) 0deg 3deg, transparent 3deg 11deg)",r0="radial-gradient(circle, transparent 26%, #000 44%, #000 60%, transparent 80%)",DP=[{label:"Veja onde seus concorrentes estão na frente",desc:"Comparação direta com as marcas que disputam o mesmo cliente",color:"#a595ff",icon:"leaderboard"},{label:"O que corrigir primeiro",desc:"Priorizado por impacto em receita, com esforço estimado",color:"#ffc116",icon:"checklist"},{label:"Monitoramento contínuo",desc:"Alertas quando concorrentes se mexem, correções automáticas",color:N.lime,icon:"notifications_active"}],MP=[{label:"VTEX",src:"https://cdn.simpleicons.org/vtex"},{label:"Google Search Console",src:"https://cdn.simpleicons.org/googlesearchconsole"},{label:"Google Analytics 4",src:"https://cdn.simpleicons.org/googleanalytics"}],LP=[{label:"47 passos",color:"#ffc116",rotate:-8},{label:"SEO −38pts",color:"#a595ff",rotate:3},{label:"Autofix 3×",color:"#67e8f9",rotate:9}],a0={position:"absolute"};function IP(){const r=be.c(13);let e;r[0]===Symbol.for("react.memo_cache_sentinel")?(e={...a0,width:130,height:96,top:17,left:0},r[0]=e):e=r[0];const t=e;let a;r[1]===Symbol.for("react.memo_cache_sentinel")?(a={...a0,width:130,height:130,inset:0},r[1]=a):a=r[1];const n=a;let i,o,s;r[2]===Symbol.for("react.memo_cache_sentinel")?(i={width:150,height:150,perspective:"700px",flexShrink:0},o={width:130,height:130,margin:10,position:"relative",transformStyle:"preserve-3d",transform:"rotateX(-12deg) rotateY(-25deg)"},s={...t,background:Cc,border:`2px solid ${Jr}`,transform:"translateZ(65px)",display:"flex",alignItems:"center",justifyContent:"center"},r[2]=i,r[3]=o,r[4]=s):(i=r[2],o=r[3],s=r[4]);let l;r[5]===Symbol.for("react.memo_cache_sentinel")?(l={width:40,height:40,opacity:.55,flexShrink:0},r[5]=l):l=r[5];let u,c,f,h;r[6]===Symbol.for("react.memo_cache_sentinel")?(u=T.jsx("div",{style:s,children:T.jsx("svg",{"aria-hidden":!0,viewBox:"0 0 120 120",style:l,fill:Jr,children:T.jsx("path",{d:zg,fillRule:"evenodd",clipRule:"evenodd"})})}),c=T.jsx("div",{style:{...t,background:"rgba(160,194,16,0.92)",border:`1.5px solid ${Jr}`,transform:"rotateY(90deg) translateZ(65px)"}}),f=T.jsx("div",{style:{...t,background:"rgba(160,194,16,0.92)",border:`1.5px solid ${Jr}`,transform:"rotateY(-90deg) translateZ(65px)"}}),h=T.jsx("div",{style:{...t,background:Jr,border:"1.5px solid rgba(255,255,255,0.06)",transform:"translateZ(-65px)"}}),r[6]=u,r[7]=c,r[8]=f,r[9]=h):(u=r[6],c=r[7],f=r[8],h=r[9]);let v,d;r[10]===Symbol.for("react.memo_cache_sentinel")?(v=T.jsx("div",{className:"unlock-box-glow",style:{...n,background:"radial-gradient(ellipse at 50% 55%, rgba(208,236,26,0.55) 0%, #093d1a 62%)",transform:"rotateX(90deg) translateZ(-45px)"}}),d={...n,transformStyle:"preserve-3d",transform:"rotateX(90deg) translateZ(48px)"},r[10]=v,r[11]=d):(v=r[10],d=r[11]);let p;return r[12]===Symbol.for("react.memo_cache_sentinel")?(p=T.jsx("div",{className:"unlock-box",style:i,children:T.jsxs("div",{style:o,children:[u,c,f,h,v,T.jsx("div",{style:d,children:T.jsx("div",{className:"unlock-box-lid-face",style:{...n,background:`linear-gradient(175deg, ${Cc} 0%, rgba(190,228,14,0.95) 100%)`,border:`2px solid ${Jr}`,transformOrigin:"50% 0%"}})})]})}),r[12]=p):p=r[12],p}function PP(r){const e=be.c(14),{label:t,src:a,small:n}=r,[i,o]=Re.useState(!1),s=n?"size-9 rounded-xl":"size-14 rounded-2xl";let l;e[0]!==s?(l=We("grid place-items-center overflow-hidden bg-white",s),e[0]=s,e[1]=l):l=e[1];const u=n?"0 3px 10px rgba(0,0,0,0.22)":"0 8px 24px rgba(0,0,0,0.28),0 2px 6px rgba(0,0,0,0.12)";let c;e[2]!==u?(c={border:"1.5px solid rgba(120,113,108,0.1)",boxShadow:u},e[2]=u,e[3]=c):c=e[3];let f;e[4]!==i||e[5]!==t||e[6]!==n||e[7]!==a?(f=i?T.jsx("span",{className:We("font-medium",n?"text-[10px]":"text-sm"),style:{color:Jr},children:t[0]}):T.jsx("img",{src:a,alt:t,className:We("object-contain",n?"size-5":"size-9"),onError:()=>o(!0)}),e[4]=i,e[5]=t,e[6]=n,e[7]=a,e[8]=f):f=e[8];let h;return e[9]!==t||e[10]!==l||e[11]!==c||e[12]!==f?(h=T.jsx("span",{className:l,style:c,title:t,children:f}),e[9]=t,e[10]=l,e[11]=c,e[12]=f,e[13]=h):h=e[13],h}function kP(r){const e=be.c(9),{label:t,color:a}=r;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={background:"rgba(255,255,255,0.97)",borderRadius:20,padding:"7px 13px",display:"flex",alignItems:"center",gap:7,boxShadow:"0 4px 16px rgba(0,0,0,0.26), 0 1px 3px rgba(0,0,0,0.1)",whiteSpace:"nowrap"},e[0]=n):n=e[0];let i;e[1]!==a?(i=T.jsx("span",{style:{width:8,height:8,borderRadius:8,background:a,flexShrink:0,display:"block"}}),e[1]=a,e[2]=i):i=e[2];let o;e[3]===Symbol.for("react.memo_cache_sentinel")?(o={fontSize:13,fontWeight:500,color:Jr,lineHeight:1},e[3]=o):o=e[3];let s;e[4]!==t?(s=T.jsx("span",{style:o,children:t}),e[4]=t,e[5]=s):s=e[5];let l;return e[6]!==i||e[7]!==s?(l=T.jsxs("div",{style:n,children:[i,s]}),e[6]=i,e[7]=s,e[8]=l):l=e[8],l}function RP(r){const e=be.c(9),{active:t}=r,[a,n]=Re.useState(t),[i,o]=Re.useState(0);t!==a&&(n(t),t&&o(OP));let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=T.jsx("div",{className:"pointer-events-none absolute inset-0 hidden overflow-visible lg:block",children:T.jsx("div",{className:"absolute left-[-5%] top-1/2 aspect-square h-[130%] -translate-y-1/2",children:T.jsx("svg",{"aria-hidden":!0,viewBox:"0 0 120 120",className:"h-full w-full",fill:"#0c5122",children:T.jsx("path",{d:zg,fillRule:"evenodd",clipRule:"evenodd"})})})}),e[0]=s):s=e[0];const l=t&&i>0?"true":"false";let u;e[1]===Symbol.for("react.memo_cache_sentinel")?(u=T.jsx("div",{className:"unlock-rays pointer-events-none absolute size-[360px] sm:size-[460px]",style:{bottom:116,left:"50%",transform:"translateX(-50%)",background:AP,maskImage:r0,WebkitMaskImage:r0}}),e[1]=u):u=e[1];let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=T.jsx("div",{className:"unlock-halo pointer-events-none absolute size-[300px] rounded-full sm:size-[380px]",style:{bottom:128,left:"50%",transform:"translateX(-50%)",background:"radial-gradient(circle, rgba(208,236,26,0.38), transparent 70%)"}}),e[2]=c):c=e[2];let f;e[3]===Symbol.for("react.memo_cache_sentinel")?(f=T.jsx("div",{className:"absolute bottom-0 left-1/2 -translate-x-1/2",children:T.jsx(IP,{})}),e[3]=f):f=e[3];let h;e[4]===Symbol.for("react.memo_cache_sentinel")?(h=T.jsx("div",{className:"unlock-box-sources absolute left-1/2 -translate-x-1/2 flex items-center gap-2",style:{bottom:6},children:MP.map(NP)}),e[4]=h):h=e[4];let v;e[5]===Symbol.for("react.memo_cache_sentinel")?(v=T.jsxs("div",{className:"relative h-[min(240px,26svh)] w-[260px] sm:h-[240px]",children:[u,c,f,h,T.jsx("div",{className:"absolute left-1/2 -translate-x-1/2 flex items-center gap-3",style:{bottom:128},children:LP.map(EP)})]}),e[5]=v):v=e[5];let d;return e[6]!==i||e[7]!==l?(d=T.jsxs("div",{className:"relative z-10 flex w-full shrink-0 items-center justify-center py-[min(0.5rem,0.8svh)] sm:py-4 lg:h-full lg:flex-1 lg:py-0",children:[s,T.jsx("div",{"data-play":l,className:"relative z-10 flex flex-col items-center gap-2 lg:scale-[2] lg:origin-center [@media(max-height:780px)]:lg:scale-[1.4]",children:v},i)]}),e[6]=i,e[7]=l,e[8]=d):d=e[8],d}function EP(r,e){return T.jsx("div",{style:{transform:`rotate(${r.rotate}deg)`},children:T.jsx("div",{className:"unlock-box-icon",style:{animationDelay:`${1280+e*130}ms`,"--icon-dx":["-10px","0px","10px"][e]},children:T.jsx(kP,{label:r.label,color:r.color})})},r.label)}function NP(r){return T.jsx(PP,{...r,small:!0},r.label)}function OP(r){return r+1}function BP(r){const e=be.c(33),{domain:t,active:a}=r,n=a===void 0?!1:a,i=n?"true":"false",o=Bg(t);let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={background:Jr},e[0]=s):s=e[0];let l;e[1]===Symbol.for("react.memo_cache_sentinel")?(l=T.jsx("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 top-0 z-0 h-[58%] overflow-hidden [mask-image:linear-gradient(to_bottom,#000_28%,transparent_92%)] [-webkit-mask-image:linear-gradient(to_bottom,#000_28%,transparent_92%)] lg:hidden",children:T.jsx("svg",{viewBox:"0 0 120 120",preserveAspectRatio:"xMidYMid slice",className:"absolute left-1/2 top-1/2 h-[135%] w-[135%] -translate-x-1/2 -translate-y-1/2",fill:"#0c5122",children:T.jsx("path",{d:zg,fillRule:"evenodd",clipRule:"evenodd"})})}),e[1]=l):l=e[1];let u;e[2]!==n?(u=T.jsx(RP,{active:n}),e[2]=n,e[3]=u):u=e[3];const c=n?"40ms":"0ms";let f;e[4]!==c?(f={color:"#ffffff",transitionDelay:c},e[4]=c,e[5]=f):f=e[5];let h;e[6]===Symbol.for("react.memo_cache_sentinel")?(h=T.jsx("span",{style:{color:Cc},children:wP}),e[6]=h):h=e[6];let v;e[7]!==i||e[8]!==f?(v=T.jsxs("h2",{className:"reveal text-balance text-center font-normal leading-[1.08] tracking-[-0.02em] text-[min(clamp(1.6rem,4.4vw,2.75rem),3.4svh)] min-[390px]:text-[min(clamp(1.9rem,5vw,2.75rem),3.4svh)] sm:text-[clamp(1.9rem,5vw,2.75rem)] lg:text-left","data-show":i,style:f,children:[SP," ",h]}),e[7]=i,e[8]=f,e[9]=v):v=e[9];let d;e[10]!==n||e[11]!==i?(d=DP.map((C,A)=>T.jsxs("li",{className:"reveal flex items-start gap-3.5","data-show":i,style:{transitionDelay:n?`${190+A*70}ms`:"0ms"},children:[T.jsx("span",{className:"mt-0.5 grid size-9 shrink-0 place-items-center rounded-lg [@media(max-height:780px)]:lg:size-7 [@media(max-height:780px)]:lg:rounded-md",style:{background:C.color,color:Jr},children:T.jsx(dt,{name:C.icon,size:"large"})}),T.jsxs("span",{className:"flex min-w-0 flex-col",children:[T.jsx("span",{className:"text-base min-[390px]:text-[17px] font-medium leading-snug [@media(max-height:780px)]:lg:text-[15px]",style:{color:"#ffffff"},children:C.label}),T.jsx("span",{className:"text-[14px] min-[390px]:text-[15px] leading-snug [@media(max-height:820px)]:line-clamp-1",style:{color:"rgba(255,255,255,0.6)"},children:C.desc})]})]},C.label)),e[10]=n,e[11]=i,e[12]=d):d=e[12];let p;e[13]!==d?(p=T.jsx("ul",{className:"flex flex-col gap-1.5 min-[390px]:gap-3 sm:gap-5 lg:gap-6 [@media(max-height:780px)]:lg:gap-3",children:d}),e[13]=d,e[14]=p):p=e[14];let g;e[15]!==t?(g=C=>Tf(C,{domain:t,placement:"cta_slide_desktop",slideKey:"cta"}),e[15]=t,e[16]=g):g=e[16];const m=n?"480ms":"0ms";let y;e[17]!==m?(y={background:Cc,color:CP,transitionDelay:m},e[17]=m,e[18]=y):y=e[18];let x,_;e[19]===Symbol.for("react.memo_cache_sentinel")?(x=T.jsx("span",{children:TP}),_=T.jsx(dt,{name:"arrow_forward",size:"medium"}),e[19]=x,e[20]=_):(x=e[19],_=e[20]);let b;e[21]!==o||e[22]!==i||e[23]!==g||e[24]!==y?(b=T.jsxs("a",{href:o,onClick:g,className:"reveal mt-1 hidden h-12 shrink-0 items-center gap-2 self-start whitespace-nowrap rounded-full px-7 text-base font-medium transition-transform hover:scale-[1.02] lg:mt-3 lg:inline-flex","data-show":i,style:y,children:[x,_]}),e[21]=o,e[22]=i,e[23]=g,e[24]=y,e[25]=b):b=e[25];let S;e[26]!==p||e[27]!==b||e[28]!==v?(S=T.jsxs("div",{className:"relative z-10 flex flex-col justify-center gap-[min(1rem,1.8svh)] sm:gap-5 lg:flex-1 lg:gap-10 lg:pr-8 [@media(max-height:780px)]:lg:gap-5",children:[v,p,b]}),e[26]=p,e[27]=b,e[28]=v,e[29]=S):S=e[29];let w;return e[30]!==S||e[31]!==u?(w=T.jsx("div",{className:"h-full w-full sm:px-6 lg:px-10 sm:pb-2",children:T.jsxs("div",{className:"relative flex h-full w-full flex-col gap-[min(1.75rem,2.8svh)] overflow-y-auto overflow-x-hidden rounded-none px-6 py-[min(1.5rem,2.2svh)] [justify-content:safe_center] sm:gap-0 sm:justify-start sm:overflow-hidden sm:rounded-3xl sm:p-8 lg:flex-row-reverse lg:items-stretch lg:p-12 [@media(max-height:780px)]:lg:p-8",style:s,children:[l,u,S]})}),e[30]=S,e[31]=u,e[32]=w):w=e[32],w}const zP={good:{ratio:.16},warn:{ratio:.5},bad:{ratio:.84}},VP=[N.soft,N.warn,"#d43d3d"],FP=["rgba(140,170,37,0.16)","rgba(240,182,19,0.16)","rgba(212,61,61,0.14)"],GP=r=>r<1/3?0:r<2/3?1:2;function HP(r){const e=be.c(20),{eyebrow:t,headline:a,annotation:n,gauges:i,active:o}=r,s=i.length>=5;let l;e[0]!==o||e[1]!==n||e[2]!==t||e[3]!==a?(l=T.jsx(rr,{eyebrow:t,headline:a,annotation:n,active:o}),e[0]=o,e[1]=n,e[2]=t,e[3]=a,e[4]=l):l=e[4];const u=s?"gap-[min(0.875rem,1.8svh)] sm:gap-5":"gap-[min(1.25rem,2.6svh)] sm:gap-10";let c;e[5]!==u?(c=We("my-auto flex w-full flex-col",u),e[5]=u,e[6]=c):c=e[6];let f;if(e[7]!==o||e[8]!==s||e[9]!==i){let d;e[11]!==o||e[12]!==s?(d=(p,g)=>{const m=Math.min(1,Math.max(0,p.ratio??zP[p.status].ratio)),y=VP[GP(m)];return T.jsxs("div",{className:We("reveal grid grid-cols-1 items-center gap-x-8 sm:grid-cols-[minmax(0,10rem)_1fr]",s?"gap-y-[min(0.5rem,1svh)] sm:gap-y-1.5":"gap-y-[min(0.75rem,1.4svh)] sm:gap-y-3"),"data-show":o?"true":"false",style:{transitionDelay:o?`${80+g*90}ms`:"0ms"},children:[T.jsxs("div",{className:"flex items-baseline gap-2 sm:flex-col sm:gap-0.5",children:[T.jsx("span",{className:We("font-light leading-none tracking-[-0.02em] tabular-nums",s?"text-[min(clamp(1.5rem,4vw,2rem),3svh)] sm:text-[clamp(1.5rem,2.5vw,2rem)]":"text-[min(clamp(2rem,5vw,3rem),4svh)] sm:text-[clamp(2rem,5vw,3rem)]"),style:{color:y},children:p.value}),T.jsx("span",{className:We("tracking-[-0.01em]",s?"text-sm sm:text-base":"text-base sm:text-lg"),style:{color:N.muted},children:p.label})]}),T.jsxs("div",{className:"flex flex-col gap-1.5",children:[T.jsxs("div",{className:"relative flex h-3 w-full gap-1",children:[FP.map(jP),T.jsx("span",{className:"absolute top-1/2 h-5 w-5 -translate-x-1/2 -translate-y-1/2 rounded-full",style:{left:`${m*100}%`,background:y,border:`3px solid ${N.bg}`,boxShadow:"0 1px 3px rgba(40,37,36,0.25)"}})]}),p.caption&&T.jsx("span",{className:"text-right text-xs sm:text-left sm:text-sm",style:{color:N.muted,opacity:.8},children:p.caption})]})]},g)},e[11]=o,e[12]=s,e[13]=d):d=e[13],f=i.map(d),e[7]=o,e[8]=s,e[9]=i,e[10]=f}else f=e[10];let h;e[14]!==c||e[15]!==f?(h=T.jsx("div",{className:"flex min-h-0 flex-1 flex-col overflow-y-auto px-5 py-[min(1.5rem,2.2svh)] sm:px-10 sm:py-6 lg:px-16",children:T.jsx("div",{className:c,children:f})}),e[14]=c,e[15]=f,e[16]=h):h=e[16];let v;return e[17]!==l||e[18]!==h?(v=T.jsxs("div",{className:"flex h-full flex-col",children:[l,h]}),e[17]=l,e[18]=h,e[19]=v):v=e[19],v}function jP(r,e){return T.jsx("span",{className:"h-full flex-1 rounded-full",style:{background:r}},e)}const WP={good:{color:"#009a41",tint:"rgba(0,154,65,0.14)"},neutral:{color:"#d98324",tint:"rgba(217,131,36,0.14)"},bad:{color:"#ef4444",tint:"rgba(239,68,68,0.14)"}},$P=2;function UP(r){const e=r.match(/^(.*?)\s*\((\d+)\/(\d+)\)$/);return e?{name:e[1]??"",chip:`${e[2]} de ${e[3]}`}:{name:r}}function YP(r){const e=be.c(27),{eyebrow:t,headline:a,annotation:n,items:i,active:o}=r;let s,l,u,c,f;if(e[0]!==o||e[1]!==n||e[2]!==t||e[3]!==a||e[4]!==i){const p=[...i].sort(XP);c="flex h-full flex-col",e[10]!==o||e[11]!==n||e[12]!==t||e[13]!==a?(f=T.jsx(rr,{eyebrow:t,headline:a,annotation:n,active:o}),e[10]=o,e[11]=n,e[12]=t,e[13]=a,e[14]=f):f=e[14],u="flex min-h-0 flex-1 flex-col overflow-y-auto px-5 py-4 sm:px-10 lg:px-16",s="my-auto flex w-full flex-col gap-[min(0.875rem,1.7svh)] sm:gap-4";let g;e[15]!==o?(g=(m,y)=>{const x=WP[m.tone??"neutral"],_=Math.max($P,Math.min(100,m.ratio*100)),{name:b,chip:S}=UP(m.label);return T.jsxs("div",{className:"reveal flex flex-col gap-1.5","data-show":o?"true":"false",style:{transitionDelay:o?`${80+y*70}ms`:"0ms"},children:[T.jsxs("div",{className:"flex items-baseline gap-2.5",children:[T.jsx("span",{className:"min-w-0 line-clamp-2 break-words text-sm font-medium leading-snug tracking-[-0.01em] sm:text-[15px]",style:{color:N.ink},children:b}),S&&T.jsx("span",{className:"shrink-0 translate-y-[-1px] rounded-full px-1.5 py-px text-[10px] leading-[1.5]",style:{color:N.muted,border:`1px solid ${N.border}`},children:S}),T.jsx("span",{className:"ml-auto shrink-0 font-semibold leading-none tracking-[-0.02em] tabular-nums text-[min(1.5rem,3svh)] sm:text-[1.625rem]",style:{color:x.color},children:m.value})]}),T.jsx("div",{className:"h-[min(0.75rem,1.4svh)] w-full overflow-hidden rounded-full sm:h-3",style:{background:x.tint},children:T.jsx("div",{className:"h-full rounded-full transition-[width] duration-700 ease-out",style:{width:o?`${_}%`:"0%",background:x.color,transitionDelay:o?`${150+y*70}ms`:"0ms"}})})]},y)},e[15]=o,e[16]=g):g=e[16],l=p.map(g),e[0]=o,e[1]=n,e[2]=t,e[3]=a,e[4]=i,e[5]=s,e[6]=l,e[7]=u,e[8]=c,e[9]=f}else s=e[5],l=e[6],u=e[7],c=e[8],f=e[9];let h;e[17]!==s||e[18]!==l?(h=T.jsx("div",{className:s,children:l}),e[17]=s,e[18]=l,e[19]=h):h=e[19];let v;e[20]!==u||e[21]!==h?(v=T.jsx("div",{className:u,children:h}),e[20]=u,e[21]=h,e[22]=v):v=e[22];let d;return e[23]!==c||e[24]!==f||e[25]!==v?(d=T.jsxs("div",{className:c,children:[f,v]}),e[23]=c,e[24]=f,e[25]=v,e[26]=d):d=e[26],d}function XP(r,e){return(Number(r.value)||0)-(Number(e.value)||0)}function ZP(r){return!r||r<=0?at.bad:r<=3?at.good:r<=10?N.warn:at.bad}function qP(r){return r&&r>0?`${r}ª`:"—"}function KP(r){const e=be.c(39),{eyebrow:t,headline:a,annotation:n,keywords:i,volumeLabel:o,active:s}=r;let l,u,c,f,h,v,d;if(e[0]!==s||e[1]!==n||e[2]!==t||e[3]!==a||e[4]!==i||e[5]!==o){const x=i.slice(0,8);v="flex h-full flex-col",e[13]!==s||e[14]!==n||e[15]!==t||e[16]!==a?(d=T.jsx(rr,{eyebrow:t,headline:a,annotation:n,active:s}),e[13]=s,e[14]=n,e[15]=t,e[16]=a,e[17]=d):d=e[17],h="flex min-h-0 flex-1 flex-col overflow-y-auto px-5 py-[min(1rem,1.4svh)] sm:px-10 sm:py-4 lg:px-16",c="my-auto w-full";let _,b;e[18]===Symbol.for("react.memo_cache_sentinel")?(_={color:N.muted},b=T.jsx("span",{className:"min-w-0 flex-1 truncate",children:"Keyword"}),e[18]=_,e[19]=b):(_=e[18],b=e[19]);const S=o??"Buscas/mês";let w;e[20]!==S?(w=T.jsx("span",{className:"w-20 shrink-0 text-right sm:w-24",children:S}),e[20]=S,e[21]=w):w=e[21];let C;e[22]===Symbol.for("react.memo_cache_sentinel")?(C=T.jsx("span",{className:"w-12 shrink-0 text-right sm:w-16",children:"Posição"}),e[22]=C):C=e[22],e[23]!==w?(f=T.jsxs("div",{className:"flex items-center gap-2 px-1 pb-1 text-[10px] font-medium uppercase tracking-[0.04em] sm:gap-3 sm:px-3 sm:text-[11px]",style:_,children:[b,w,C]}),e[23]=w,e[24]=f):f=e[24],l="flex flex-col",u=x.map((A,D)=>T.jsxs("li",{className:"reveal flex items-center gap-2 px-1 py-[min(10px,1.1svh)] sm:gap-3 sm:px-3 sm:py-[10px]","data-show":s?"true":"false",style:{...D<x.length-1?{borderBottom:`1px solid ${N.border}`}:{},transitionDelay:s?`${70+D*55}ms`:"0ms"},children:[T.jsx("span",{className:"min-w-0 flex-1 truncate text-base sm:text-lg",style:{color:N.ink},children:A.term}),T.jsx("span",{className:"w-20 shrink-0 text-right text-sm tabular-nums sm:w-24 sm:text-base",style:{color:N.muted},children:A.volume}),T.jsx("span",{className:"w-12 shrink-0 text-right text-lg font-normal tabular-nums tracking-[-0.01em] sm:w-16 sm:text-xl",style:{color:ZP(A.position)},children:qP(A.position)})]},D)),e[0]=s,e[1]=n,e[2]=t,e[3]=a,e[4]=i,e[5]=o,e[6]=l,e[7]=u,e[8]=c,e[9]=f,e[10]=h,e[11]=v,e[12]=d}else l=e[6],u=e[7],c=e[8],f=e[9],h=e[10],v=e[11],d=e[12];let p;e[25]!==l||e[26]!==u?(p=T.jsx("ul",{className:l,children:u}),e[25]=l,e[26]=u,e[27]=p):p=e[27];let g;e[28]!==c||e[29]!==f||e[30]!==p?(g=T.jsxs("div",{className:c,children:[f,p]}),e[28]=c,e[29]=f,e[30]=p,e[31]=g):g=e[31];let m;e[32]!==h||e[33]!==g?(m=T.jsx("div",{className:h,children:g}),e[32]=h,e[33]=g,e[34]=m):m=e[34];let y;return e[35]!==m||e[36]!==v||e[37]!==d?(y=T.jsxs("div",{className:v,children:[d,m]}),e[35]=m,e[36]=v,e[37]=d,e[38]=y):y=e[38],y}const gh={error:{color:"#d43d3d",icon:"error"},warning:{color:N.warn,icon:"warning"},notice:{color:N.notice,icon:"info"}};function JP(r){const e=be.c(30),{headline:t,entries:a,domain:n,onNext:i,moreCount:o,active:s}=r,l=Bg(n);let u;e[0]===Symbol.for("react.memo_cache_sentinel")?(u={borderColor:N.inputBorder,color:N.ink,background:N.surface},e[0]=u):u=e[0];const c=u,f=s?"true":"false";let h;e[1]===Symbol.for("react.memo_cache_sentinel")?(h={color:N.ink},e[1]=h):h=e[1];let v;e[2]!==t||e[3]!==o?(v=o&&o>0?T.jsxs(T.Fragment,{children:[T.jsxs("span",{style:{color:gh.error.color},children:["+",o]})," ","outros sinais no diagnóstico completo"]}):t.replace(/\s*\n\s*/g," "),e[2]=t,e[3]=o,e[4]=v):v=e[4];let d;e[5]!==f||e[6]!==v?(d=T.jsx("header",{className:"flex shrink-0 flex-col gap-3 px-5 pt-2 sm:gap-4 sm:px-10 lg:px-16",children:T.jsx("h2",{className:"reveal text-balance font-normal leading-[1.1] tracking-[-0.02em] text-[min(clamp(1.375rem,4.8vw,2.5rem),3svh)] sm:text-[clamp(1.5rem,3.2vw,2.5rem)] lg:text-[2.75rem] lg:max-w-[20ch]","data-show":f,style:h,children:v})}),e[5]=f,e[6]=v,e[7]=d):d=e[7];let p;e[8]===Symbol.for("react.memo_cache_sentinel")?(p={maskImage:"linear-gradient(to bottom, #000 55%, transparent 92%)",WebkitMaskImage:"linear-gradient(to bottom, #000 55%, transparent 92%)"},e[8]=p):p=e[8];let g;if(e[9]!==s||e[10]!==a||e[11]!==f){let S;e[13]!==s||e[14]!==a.length||e[15]!==f?(S=(w,C)=>{const A=gh[w.severity]??gh.notice;return T.jsxs("li",{className:"reveal flex items-center gap-4 py-[min(9px,1.3svh)]","data-show":f,style:{...C<a.length-1?{borderBottom:`1px solid ${N.border}`}:{},transitionDelay:s?`${60+C*45}ms`:"0ms"},children:[T.jsx("span",{className:"line-clamp-2 flex-1 text-[13px] leading-snug sm:text-[15px]",style:{color:N.muted},children:w.label}),T.jsx("span",{className:"grid shrink-0 place-items-center",style:{color:A.color},"aria-label":w.severity,children:T.jsx(dt,{name:A.icon,size:"large"})})]},C)},e[13]=s,e[14]=a.length,e[15]=f,e[16]=S):S=e[16],g=a.map(S),e[9]=s,e[10]=a,e[11]=f,e[12]=g}else g=e[12];let m;e[17]!==g?(m=T.jsx("ul",{className:"h-full overflow-hidden",style:p,children:g}),e[17]=g,e[18]=m):m=e[18];let y;e[19]===Symbol.for("react.memo_cache_sentinel")?(y={background:`linear-gradient(to bottom, transparent, ${N.bg} 34%)`},e[19]=y):y=e[19];let x;e[20]!==l||e[21]!==n||e[22]!==i?(x=T.jsx("div",{className:"pointer-events-none absolute inset-x-0 bottom-0 flex justify-center px-5 pb-7 pt-24 sm:px-10 lg:px-16",style:y,children:i?T.jsx("button",{type:"button",onClick:i,className:"pointer-events-auto inline-flex h-12 items-center rounded-full border px-8 text-base font-medium transition-colors hover:bg-black/[0.03]",style:c,children:"Destravar minha receita"}):T.jsx("a",{href:l,target:l.startsWith("http")?"_blank":"_self",rel:"noopener noreferrer",onClick:S=>Tf(S,{domain:n,placement:"list_slide_fallback"}),className:"pointer-events-auto inline-flex h-12 items-center rounded-full border px-8 text-base font-medium transition-colors hover:bg-black/[0.03]",style:c,children:"Destravar minha receita"})}),e[20]=l,e[21]=n,e[22]=i,e[23]=x):x=e[23];let _;e[24]!==m||e[25]!==x?(_=T.jsxs("div",{className:"relative min-h-0 flex-1 px-5 pt-3 sm:px-10 lg:px-16",children:[m,x]}),e[24]=m,e[25]=x,e[26]=_):_=e[26];let b;return e[27]!==_||e[28]!==d?(b=T.jsxs("div",{className:"flex h-full flex-col",children:[d,_]}),e[27]=_,e[28]=d,e[29]=b):b=e[29],b}const QP={up:at.good,down:at.bad,neutral:N.muted},e5={up:"↑",down:"↓",neutral:"→"};function A2(r,e){return r?at[r]:e?N.muted:N.ink}function t5(r){const e=be.c(8),{cell:t}=r;let a;e[0]!==t.muted||e[1]!==t.tone?(a=A2(t.tone,t.muted),e[0]=t.muted,e[1]=t.tone,e[2]=a):a=e[2];let n;e[3]!==a?(n={color:a},e[3]=a,e[4]=n):n=e[4];let i;return e[5]!==t.value||e[6]!==n?(i=T.jsx("span",{className:"line-clamp-2 leading-snug",style:n,children:t.value}),e[5]=t.value,e[6]=n,e[7]=i):i=e[7],i}function r5(r){const e=be.c(14),{cell:t}=r,a=t.deltaDir??"neutral";let n;e[0]!==t.muted||e[1]!==t.tone?(n=A2(t.tone,t.muted),e[0]=t.muted,e[1]=t.tone,e[2]=n):n=e[2];let i;e[3]!==n?(i={color:n},e[3]=n,e[4]=i):i=e[4];let o;e[5]!==t.value||e[6]!==i?(o=T.jsx("span",{style:i,children:t.value}),e[5]=t.value,e[6]=i,e[7]=o):o=e[7];let s;e[8]!==t.delta||e[9]!==a?(s=t.delta&&T.jsxs("span",{className:"text-sm tabular-nums",style:{color:QP[a]},children:[e5[a]," ",t.delta]}),e[8]=t.delta,e[9]=a,e[10]=s):s=e[10];let l;return e[11]!==o||e[12]!==s?(l=T.jsxs("span",{className:"inline-flex items-baseline gap-2 whitespace-nowrap",children:[o,s]}),e[11]=o,e[12]=s,e[13]=l):l=e[13],l}function a5(r){const e=be.c(8),{cell:t}=r,a=t.tone?at[t.tone]:N.muted,n=t.points.length;if(n<2)return null;const i=48/(n-1);let o;if(e[0]!==t.points||e[1]!==i){let u;e[3]!==i?(u=(c,f)=>`${f*i},${20-c*20}`,e[3]=i,e[4]=u):u=e[4],o=t.points.map(u).join(" "),e[0]=t.points,e[1]=i,e[2]=o}else o=e[2];const s=o;let l;return e[5]!==a||e[6]!==s?(l=T.jsx("svg",{width:48,height:20,viewBox:"0 0 48 20",className:"inline-block align-middle",children:T.jsx("polyline",{points:s,fill:"none",stroke:a,strokeWidth:1.5,strokeLinejoin:"round",strokeLinecap:"round"})}),e[5]=a,e[6]=s,e[7]=l):l=e[7],l}function n5(r){const e=be.c(6),{cell:t}=r,a=t.tone?at[t.tone]:N.muted,n=`1px solid ${a}`;let i;e[0]!==a||e[1]!==n?(i={color:a,border:n,lineHeight:"1.4"},e[0]=a,e[1]=n,e[2]=i):i=e[2];let o;return e[3]!==t.label||e[4]!==i?(o=T.jsx("span",{className:"inline-block rounded-full px-2 py-0.5 text-xs font-medium",style:i,children:t.label}),e[3]=t.label,e[4]=i,e[5]=o):o=e[5],o}function i5(r){const e=be.c(12),{cell:t}=r,a=t.tone?at[t.tone]:N.ink,n=Math.min(100,Math.max(0,t.value));let i;e[0]!==a?(i={color:a},e[0]=a,e[1]=i):i=e[1];let o;e[2]!==n||e[3]!==i?(o=T.jsx("span",{className:"text-sm tabular-nums",style:i,children:n}),e[2]=n,e[3]=i,e[4]=o):o=e[4];let s;e[5]===Symbol.for("react.memo_cache_sentinel")?(s={background:N.border},e[5]=s):s=e[5];const l=`${n}%`;let u;e[6]!==a||e[7]!==l?(u=T.jsx("span",{className:"inline-block h-1.5 w-12 overflow-hidden rounded-full",style:s,children:T.jsx("span",{className:"block h-full rounded-full",style:{width:l,background:a}})}),e[6]=a,e[7]=l,e[8]=u):u=e[8];let c;return e[9]!==o||e[10]!==u?(c=T.jsxs("span",{className:"inline-flex items-center gap-2",children:[o,u]}),e[9]=o,e[10]=u,e[11]=c):c=e[11],c}function mh(r){const e=be.c(10),{cell:t}=r;switch(t.kind){case"text":{let a;return e[0]!==t?(a=T.jsx(t5,{cell:t}),e[0]=t,e[1]=a):a=e[1],a}case"number":{let a;return e[2]!==t?(a=T.jsx(r5,{cell:t}),e[2]=t,e[3]=a):a=e[3],a}case"sparkline":{let a;return e[4]!==t?(a=T.jsx(a5,{cell:t}),e[4]=t,e[5]=a):a=e[5],a}case"badge":{let a;return e[6]!==t?(a=T.jsx(n5,{cell:t}),e[6]=t,e[7]=a):a=e[7],a}case"score":{let a;return e[8]!==t?(a=T.jsx(i5,{cell:t}),e[8]=t,e[9]=a):a=e[9],a}default:return t}}function D2(r){const e=be.c(51),{eyebrow:t,headline:a,annotation:n,columns:i,rows:o,highlightRow:s,active:l}=r,u=o.length>=6;let c;e[0]!==l||e[1]!==n||e[2]!==t||e[3]!==a?(c=T.jsx(rr,{eyebrow:t,headline:a,annotation:n,active:l}),e[0]=l,e[1]=n,e[2]=t,e[3]=a,e[4]=c):c=e[4];let f;e[5]===Symbol.for("react.memo_cache_sentinel")?(f={WebkitMaskImage:"linear-gradient(to bottom, #000 calc(100% - 20px), transparent 100%)",maskImage:"linear-gradient(to bottom, #000 calc(100% - 20px), transparent 100%)"},e[5]=f):f=e[5];let h;if(e[6]!==l||e[7]!==i||e[8]!==s||e[9]!==o){let A;e[11]!==l||e[12]!==i||e[13]!==s?(A=(D,M)=>T.jsxs("li",{className:"reveal shrink-0 rounded-xl border p-3.5","data-show":l?"true":"false",style:{borderColor:N.cardBorder,background:M===s?"rgba(40,37,36,0.03)":N.surface,transitionDelay:l?`${80+M*45}ms`:"0ms"},children:[T.jsx("div",{className:"text-[15px] font-medium leading-snug",style:{color:N.ink},children:D[0]&&T.jsx(mh,{cell:D[0]})}),T.jsx("div",{className:"mt-2.5 flex flex-wrap gap-x-6 gap-y-2",children:D.slice(1).map((I,P)=>T.jsxs("div",{className:"flex flex-col gap-0.5",children:[T.jsx("span",{className:"text-[10px] font-medium uppercase tracking-[0.04em]",style:{color:N.muted},children:i[P+1]?.label}),T.jsx("span",{className:"text-sm tabular-nums",style:{color:N.ink},children:T.jsx(mh,{cell:I})})]},P))})]},M),e[11]=l,e[12]=i,e[13]=s,e[14]=A):A=e[14],h=o.map(A),e[6]=l,e[7]=i,e[8]=s,e[9]=o,e[10]=h}else h=e[10];let v;e[15]!==h?(v=T.jsx("ul",{className:"flex min-h-0 flex-1 flex-col gap-2.5 overflow-y-auto py-1 sm:hidden",style:f,children:h}),e[15]=h,e[16]=v):v=e[16];const d=l?"true":"false",p=l?"100ms":"0ms";let g;e[17]!==p?(g={background:N.surface,border:`1px solid ${N.cardBorder}`,transitionDelay:p},e[17]=p,e[18]=g):g=e[18];let m;if(e[19]!==i||e[20]!==u){let A;e[22]!==u?(A=(D,M)=>T.jsx("th",{className:We("text-[11px] font-medium uppercase tracking-wide sm:text-sm",u?"px-3 py-2.5 sm:px-5 sm:py-3":"px-3 py-3 sm:px-6 sm:py-4",D.align==="right"?"text-right":"text-left"),style:{color:N.muted,borderBottom:`1px solid ${N.border}`},children:D.label},M),e[22]=u,e[23]=A):A=e[23],m=i.map(A),e[19]=i,e[20]=u,e[21]=m}else m=e[21];let y;e[24]!==m?(y=T.jsx("thead",{children:T.jsx("tr",{children:m})}),e[24]=m,e[25]=y):y=e[25];let x;if(e[26]!==i||e[27]!==u||e[28]!==s||e[29]!==o){let A;e[31]!==i||e[32]!==u||e[33]!==s||e[34]!==o.length?(A=(D,M)=>T.jsx("tr",{style:{borderBottom:M<o.length-1?`1px solid ${N.border}`:void 0,background:M===s?"rgba(40,37,36,0.04)":void 0},children:D.map((I,P)=>{const k=i[P]?.align==="right";return T.jsx("td",{className:We("align-top tracking-[-0.01em] tabular-nums",u?"px-3 py-1.5 text-sm sm:px-5 sm:py-2.5 sm:text-base":"px-3 py-3 text-sm sm:px-6 sm:py-4 sm:text-lg",k?"text-right":"text-left font-medium"),children:T.jsx(mh,{cell:I})},P)})},M),e[31]=i,e[32]=u,e[33]=s,e[34]=o.length,e[35]=A):A=e[35],x=o.map(A),e[26]=i,e[27]=u,e[28]=s,e[29]=o,e[30]=x}else x=e[30];let _;e[36]!==x?(_=T.jsx("tbody",{children:x}),e[36]=x,e[37]=_):_=e[37];let b;e[38]!==_||e[39]!==y?(b=T.jsxs("table",{className:"w-full border-collapse",children:[y,_]}),e[38]=_,e[39]=y,e[40]=b):b=e[40];let S;e[41]!==b||e[42]!==d||e[43]!==g?(S=T.jsx("div",{className:"reveal hidden w-full overflow-hidden rounded-xl sm:block","data-show":d,style:g,children:b}),e[41]=b,e[42]=d,e[43]=g,e[44]=S):S=e[44];let w;e[45]!==S||e[46]!==v?(w=T.jsxs("div",{className:"flex min-h-0 flex-1 flex-col px-5 pt-3 sm:items-center sm:justify-center sm:px-10 sm:pt-4 lg:px-16",children:[v,S]}),e[45]=S,e[46]=v,e[47]=w):w=e[47];let C;return e[48]!==c||e[49]!==w?(C=T.jsxs("div",{className:"flex h-full flex-col",children:[c,w]}),e[48]=c,e[49]=w,e[50]=C):C=e[50],C}const M2={Crítico:{color:"#ef4444",tint:"rgba(239,68,68,0.12)"},Atenção:{color:"#d98324",tint:"rgba(217,131,36,0.12)"}},L2={color:N.muted,tint:"rgba(13,9,6,0.06)"};function o5(r){const e=[];for(const t of r){const[a,n,i]=t;if(t.length!==3||a?.kind!=="text"||n?.kind!=="text"||i?.kind!=="badge")return null;const o={title:n.value.replace(/^✗\s*/,""),severity:i.label},s=e[e.length-1];s&&s.page===a.value?s.issues.push(o):e.push({page:a.value,issues:[o]})}return e.length>0?e:null}function n0(r){const e=be.c(6),{severity:t}=r,a=M2[t]??L2;let n;e[0]!==a.color||e[1]!==a.tint?(n={color:a.color,background:a.tint},e[0]=a.color,e[1]=a.tint,e[2]=n):n=e[2];let i;return e[3]!==t||e[4]!==n?(i=T.jsx("span",{className:"shrink-0 rounded-full px-2 py-0.5 text-[10px] font-medium leading-[1.4] sm:text-[11px]",style:n,children:t}),e[3]=t,e[4]=n,e[5]=i):i=e[5],i}function i0(r){const e=be.c(2),{severity:t}=r,a=M2[t]??L2;let n;return e[0]!==a.color?(n=T.jsx("span",{className:"shrink-0 text-sm font-semibold leading-snug sm:text-base",style:{color:a.color},children:"✗"}),e[0]=a.color,e[1]=n):n=e[1],n}function s5(r){const{eyebrow:e,headline:t,annotation:a,rows:n,active:i}=r,o=o5(n);if(!o)return T.jsx(D2,{...r});const s=o.length>1,l=o.flatMap(c=>c.issues.map(f=>({...f,page:c.page})));let u=0;return T.jsxs("div",{className:"flex h-full flex-col",children:[T.jsx(rr,{eyebrow:e,headline:t,annotation:a,active:i}),T.jsxs("div",{className:"flex min-h-0 flex-1 flex-col overflow-y-auto px-5 py-2 sm:px-10 sm:py-4 lg:px-16",children:[T.jsx("div",{className:"reveal my-auto w-full rounded-2xl px-3.5 py-1 sm:hidden","data-show":i?"true":"false",style:{background:N.surface,border:`1px solid ${N.border}`,transitionDelay:i?"80ms":"0ms"},children:o.map((c,f)=>T.jsxs("div",{className:"py-[min(0.625rem,1.2svh)]",style:{borderTop:f>0?`1px solid ${N.border}`:void 0},children:[T.jsxs("div",{className:"flex items-baseline justify-between gap-3",children:[T.jsx("span",{className:"text-[11px] font-semibold uppercase tracking-[0.08em]",style:{color:N.muted},children:c.page}),c.issues.length>1&&T.jsxs("span",{className:"text-[11px] tabular-nums",style:{color:N.muted,opacity:.7},children:[c.issues.length," achados"]})]}),c.issues.map((h,v)=>{const d=140+u++*60;return T.jsxs("div",{className:"reveal mt-[min(0.375rem,0.8svh)] flex items-baseline gap-2","data-show":i?"true":"false",style:{transitionDelay:i?`${d}ms`:"0ms"},children:[T.jsx(i0,{severity:h.severity}),T.jsx("span",{className:"min-w-0 flex-1 line-clamp-2 text-[13px] font-medium leading-snug tracking-[-0.01em]",style:{color:N.ink},children:h.title}),T.jsx(n0,{severity:h.severity})]},v)})]},f))}),T.jsx("div",{className:"my-auto hidden w-full gap-4 sm:grid sm:grid-cols-2 lg:grid-cols-3",children:l.map((c,f)=>T.jsxs("div",{className:"reveal flex flex-col gap-3 rounded-2xl px-5 py-4","data-show":i?"true":"false",style:{background:N.surface,border:`1px solid ${N.border}`,transitionDelay:i?`${100+f*60}ms`:"0ms"},children:[s&&T.jsx("span",{className:"text-[11px] font-semibold uppercase tracking-[0.08em]",style:{color:N.muted},children:c.page}),T.jsxs("div",{className:"flex items-start gap-2.5",children:[T.jsx(i0,{severity:c.severity}),T.jsx("span",{className:"min-w-0 flex-1 text-sm font-medium leading-snug tracking-[-0.01em] lg:text-[15px]",style:{color:N.ink},children:c.title})]}),T.jsx("div",{className:"mt-auto",children:T.jsx(n0,{severity:c.severity})})]},f))})]})]})}const l5={1:"#c8a24b",2:"#9aa0a6",3:"#b07a48"};function u5(r){const e=be.c(28),{product:t,rank:a,active:n,delay:i}=r,[o,s]=Re.useState(!!t.image),l=l5[a],u=n?"true":"false",c=n?`${i}ms`:"0ms";let f;e[0]!==c?(f={borderColor:N.cardBorder,transitionDelay:c},e[0]=c,e[1]=f):f=e[1];let h;e[2]===Symbol.for("react.memo_cache_sentinel")?(h={background:"#f6f4f1"},e[2]=h):h=e[2];let v;e[3]!==o||e[4]!==t.image||e[5]!==t.name?(v=o&&t.image?T.jsx("img",{src:t.image,alt:t.name,className:"h-full w-full object-cover transition-transform duration-700 ease-out group-hover:scale-[1.04]",loading:"lazy",onError:()=>s(!1)}):T.jsx("span",{className:"grid h-full w-full place-items-center",children:T.jsx(dt,{name:"package_2",size:"xxl",class:"opacity-15"})}),e[3]=o,e[4]=t.image,e[5]=t.name,e[6]=v):v=e[6];let d;e[7]!==l?(d=l?{background:l,color:"#fff"}:{background:"rgba(255,255,255,0.92)",color:N.muted,border:`1px solid ${N.cardBorder}`},e[7]=l,e[8]=d):d=e[8];let p;e[9]!==a||e[10]!==d?(p=T.jsxs("span",{className:"absolute left-2 top-2 inline-flex h-6 items-center gap-1 rounded-full px-2 text-[11px] font-medium tabular-nums",style:d,children:["#",a]}),e[9]=a,e[10]=d,e[11]=p):p=e[11];let g;e[12]!==v||e[13]!==p?(g=T.jsxs("div",{className:"relative aspect-[3/4] w-full overflow-hidden rounded-md",style:h,children:[v,p]}),e[12]=v,e[13]=p,e[14]=g):g=e[14];let m;e[15]===Symbol.for("react.memo_cache_sentinel")?(m={color:N.ink},e[15]=m):m=e[15];let y;e[16]!==t.name?(y=T.jsx("span",{className:"line-clamp-2 min-w-0 text-[13px] leading-snug sm:text-[13.5px]",style:m,children:t.name}),e[16]=t.name,e[17]=y):y=e[17];let x;e[18]!==t.price?(x=t.price&&T.jsx("span",{className:"mt-auto pt-1 text-[15px] font-medium tabular-nums tracking-[-0.01em] sm:text-[17px]",style:{color:N.ink},children:t.price}),e[18]=t.price,e[19]=x):x=e[19];let _;e[20]!==y||e[21]!==x?(_=T.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-1 px-1.5 pb-1 pt-2.5",children:[y,x]}),e[20]=y,e[21]=x,e[22]=_):_=e[22];let b;return e[23]!==u||e[24]!==_||e[25]!==f||e[26]!==g?(b=T.jsxs("div",{className:"reveal group flex w-[52vw] max-w-[210px] shrink-0 snap-center flex-col rounded-xl border bg-white p-1.5 transition-shadow duration-500 hover:shadow-[0_20px_44px_-24px_rgba(40,37,36,0.32)] sm:w-auto sm:max-w-none sm:shrink sm:snap-align-none","data-show":u,style:f,children:[g,_]}),e[23]=u,e[24]=_,e[25]=f,e[26]=g,e[27]=b):b=e[27],b}function c5(r){return r<=2?"sm:grid-cols-2":r===3?"sm:grid-cols-3":r===4?"sm:grid-cols-4":r===5?"sm:grid-cols-5":"sm:grid-cols-3 lg:grid-cols-6"}function f5(r){const e=be.c(27),{eyebrow:t,headline:a,annotation:n,products:i,active:o}=r,s=o===void 0?!1:o;let l,u,c,f,h;if(e[0]!==s||e[1]!==n||e[2]!==t||e[3]!==a||e[4]!==i){const g=i.slice(0,6);f="flex h-full flex-col",e[10]!==s||e[11]!==n||e[12]!==t||e[13]!==a?(h=T.jsx(rr,{eyebrow:t,headline:a,annotation:n,active:s}),e[10]=s,e[11]=n,e[12]=t,e[13]=a,e[14]=h):h=e[14],c="flex min-h-0 flex-1 flex-col justify-center pt-4 sm:px-10 sm:pt-12 lg:px-16",l=We("flex w-full snap-x snap-mandatory gap-3 overflow-x-auto overscroll-x-contain px-5 scroll-px-5 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden sm:grid sm:snap-none sm:gap-4 sm:overflow-x-visible sm:px-0",c5(g.length));let m;e[15]!==s?(m=(y,x)=>T.jsx(u5,{product:y,rank:x+1,active:s,delay:60+x*55},x),e[15]=s,e[16]=m):m=e[16],u=g.map(m),e[0]=s,e[1]=n,e[2]=t,e[3]=a,e[4]=i,e[5]=l,e[6]=u,e[7]=c,e[8]=f,e[9]=h}else l=e[5],u=e[6],c=e[7],f=e[8],h=e[9];let v;e[17]!==l||e[18]!==u?(v=T.jsx("div",{className:l,children:u}),e[17]=l,e[18]=u,e[19]=v):v=e[19];let d;e[20]!==c||e[21]!==v?(d=T.jsx("div",{className:c,children:v}),e[20]=c,e[21]=v,e[22]=d):d=e[22];let p;return e[23]!==f||e[24]!==h||e[25]!==d?(p=T.jsxs("div",{className:f,children:[h,d]}),e[23]=f,e[24]=h,e[25]=d,e[26]=p):p=e[26],p}function o0(r){if(!r)return null;const e=r.replace(/\s/g,"").match(/^[^\d]*([\d.,]+)\s*([kKmMbB])?/);if(!e)return null;const t=Number.parseFloat((e[1]??"").replace(/\./g,"").replace(",","."));if(Number.isNaN(t))return null;const a=(e[2]||"").toLowerCase();return t*(a==="b"?1e9:a==="m"?1e6:a==="k"?1e3:1)}function h5(r){return!!r&&!/\s/.test(r)&&/\.[a-z]{2,}$/i.test(r.replace(/\/+$/,""))}function v5(r){const e=be.c(17),{name:t,className:a}=r,[n,i]=Re.useState(!1);let o;e[0]!==t?(o=t?.replace(/^https?:\/\//,"").replace(/\/.*$/,""),e[0]=t,e[1]=o):o=e[1];const s=o;let l;e[2]!==t?(l=(t??"?").replace(/^https?:\/\//,"").replace(/^www\./,"")[0]?.toUpperCase()??"?",e[2]=t,e[3]=l):l=e[3];const u=l;let c;e[4]!==n||e[5]!==t?(c=h5(t)&&!n,e[4]=n,e[5]=t,e[6]=c):c=e[6];const f=c;let h;e[7]!==a?(h=We("grid shrink-0 place-items-center overflow-hidden rounded-[10px]",a),e[7]=a,e[8]=h):h=e[8];let v;e[9]===Symbol.for("react.memo_cache_sentinel")?(v={background:N.surface,border:`1px solid ${N.border}`},e[9]=v):v=e[9];let d;e[10]!==s||e[11]!==u||e[12]!==f?(d=f?T.jsx("img",{src:`https://www.google.com/s2/favicons?sz=64&domain=${encodeURIComponent(s??"")}`,alt:"",className:"h-full w-full object-contain p-1",onError:()=>i(!0)}):T.jsx("span",{className:"text-xs font-medium",style:{color:N.muted},children:u}),e[10]=s,e[11]=u,e[12]=f,e[13]=d):d=e[13];let p;return e[14]!==h||e[15]!==d?(p=T.jsx("span",{className:h,style:v,children:d}),e[14]=h,e[15]=d,e[16]=p):p=e[16],p}function d5(r){return r?r.replace(/^https?:\/\//,"").replace(/^www\./,"").replace(/\/+$/,""):""}const s0="h-[min(2rem,3.4svh)] w-[min(2rem,3.4svh)] sm:h-8 sm:w-8",l0=r=>r==="good"?0:r==="bad"?2:1;function p5(r){const e=be.c(31),{eyebrow:t,headline:a,annotation:n,rivalLabel:i,dimensions:o,faviconUrl:s,active:l}=r;let u,c,f,h,v;if(e[0]!==l||e[1]!==n||e[2]!==o||e[3]!==t||e[4]!==s||e[5]!==a||e[6]!==i){const m=o.map(m5).sort(g5);h="flex h-full flex-col",e[12]!==l||e[13]!==n||e[14]!==t||e[15]!==a?(v=T.jsx(rr,{eyebrow:t,headline:a,annotation:n,active:l}),e[12]=l,e[13]=n,e[14]=t,e[15]=a,e[16]=v):v=e[16],f="flex min-h-0 flex-1 flex-col overflow-y-auto px-5 py-[min(1rem,1.2svh)] sm:px-10 sm:py-4 lg:px-16",u="my-auto flex w-full flex-col";let y;e[17]!==l||e[18]!==s||e[19]!==i?(y=(x,_)=>{const{d:b,i:S}=x,w=b.tone==="good"?at.good:b.tone==="bad"?at.bad:N.muted,C=!!(b.rival||b.rivalName),A=o0(b.you),D=o0(b.rival),I=A!=null&&D!=null&&A+D>0?Math.min(.9,Math.max(.1,A/(A+D))):b.tone==="good"?.72:b.tone==="bad"?.28:.5,P=b.tone==="good",k=b.tone==="bad",R=P?at.good:k?at.bad:N.muted;return T.jsxs("div",{className:"reveal flex flex-col gap-[min(0.5rem,0.9svh)] py-[min(0.75rem,1.1svh)] sm:gap-2 sm:py-3","data-show":l?"true":"false",style:{borderTop:_===0?"none":`1px solid ${N.cardBorder}`,transitionDelay:l?`${80+_*55}ms`:"0ms"},children:[T.jsxs("div",{className:"flex items-center justify-between gap-3",children:[T.jsx("span",{className:"min-w-0 truncate text-sm font-medium sm:text-[15px]",style:{color:N.ink},children:b.label}),T.jsxs("span",{className:"flex shrink-0 items-center gap-1 text-[11px] font-medium sm:text-xs",style:{color:R},children:[(P||k)&&T.jsx(dt,{name:P?"trending_up":"trending_down",size:"xs"}),P?"Você lidera":k?`${d5(b.rivalName)||i||"Concorrente"} lidera`:C?"Empate":"Sem comparação"]})]}),T.jsxs("div",{className:"flex items-center gap-2.5 sm:gap-3",children:[T.jsx("img",{src:s,alt:"",width:32,height:32,className:We("shrink-0 rounded-[10px] border bg-white p-1",s0),style:{borderColor:N.border}}),T.jsx("span",{className:"shrink-0 text-[min(1.125rem,2.5svh)] font-normal tabular-nums tracking-[-0.01em] sm:text-xl",style:{color:w},children:b.you}),T.jsx("span",{className:"relative h-3.5 flex-1 overflow-hidden rounded-full",style:{background:"rgba(40,37,36,0.07)"},children:T.jsx("span",{className:"absolute inset-y-0 left-0 rounded-full transition-[width] duration-700 ease-out",style:{width:l?`${I*100}%`:"0%",background:w}})}),C&&T.jsxs(T.Fragment,{children:[T.jsx("span",{className:"shrink-0 text-[min(1.125rem,2.5svh)] tabular-nums sm:text-xl",style:{color:N.muted},children:b.rival??"—"}),T.jsx(v5,{name:b.rivalName,className:s0})]})]})]},S)},e[17]=l,e[18]=s,e[19]=i,e[20]=y):y=e[20],c=m.map(y),e[0]=l,e[1]=n,e[2]=o,e[3]=t,e[4]=s,e[5]=a,e[6]=i,e[7]=u,e[8]=c,e[9]=f,e[10]=h,e[11]=v}else u=e[7],c=e[8],f=e[9],h=e[10],v=e[11];let d;e[21]!==u||e[22]!==c?(d=T.jsx("div",{className:u,children:c}),e[21]=u,e[22]=c,e[23]=d):d=e[23];let p;e[24]!==f||e[25]!==d?(p=T.jsx("div",{className:f,children:d}),e[24]=f,e[25]=d,e[26]=p):p=e[26];let g;return e[27]!==h||e[28]!==v||e[29]!==p?(g=T.jsxs("div",{className:h,children:[v,p]}),e[27]=h,e[28]=v,e[29]=p,e[30]=g):g=e[30],g}function g5(r,e){return l0(r.d.tone)-l0(e.d.tone)||r.i-e.i}function m5(r,e){return{d:r,i:e}}var $d=function(r,e){return $d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n])},$d(r,e)};function z(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");$d(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var y5=(function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r})(),x5=(function(){function r(){this.browser=new y5,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})(),Ae=new x5;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Ae.wxa=!0,Ae.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Ae.worker=!0:!Ae.hasGlobalWindow||"Deno"in window?(Ae.node=!0,Ae.svgSupported=!0):_5(navigator.userAgent,Ae);function _5(r,e){var t=e.browser,a=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);a&&(t.firefox=!0,t.version=a[1]),n&&(t.ie=!0,t.version=n[1]),i&&(t.edge=!0,t.version=i[1],t.newEdge=+i[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}var Vg=12,I2="sans-serif",hn=Vg+"px "+I2,b5=20,S5=100,w5="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function T5(r){var e={};if(typeof JSON>"u")return e;for(var t=0;t<r.length;t++){var a=String.fromCharCode(t+32),n=(r.charCodeAt(t)-b5)/S5;e[a]=n}return e}var C5=T5(w5),vn={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var r,e;return function(t,a){if(!r){var n=vn.createCanvas();r=n&&n.getContext("2d")}if(r)return e!==a&&(e=r.font=a||hn),r.measureText(t);t=t||"",a=a||hn;var i=/((?:\d+)?\.?\d*)px/.exec(a),o=i&&+i[1]||Vg,s=0;if(a.indexOf("mono")>=0)s=o*t.length;else for(var l=0;l<t.length;l++){var u=C5[t[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(r,e,t){var a=new Image;return a.onload=e,a.onerror=t,a.src=r,a}},P2=sa(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,e){return r["[object "+e+"]"]=!0,r},{}),k2=sa(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,e){return r["[object "+e+"Array]"]=!0,r},{}),Eo=Object.prototype.toString,Cf=Array.prototype,A5=Cf.forEach,D5=Cf.filter,Fg=Cf.slice,M5=Cf.map,u0=(function(){}).constructor,Kl=u0?u0.prototype:null,Gg="__proto__",L5=2311;function R2(){return L5++}function Hg(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];typeof console<"u"&&console.error.apply(console,r)}function le(r){if(r==null||typeof r!="object")return r;var e=r,t=Eo.call(r);if(t==="[object Array]"){if(!zs(r)){e=[];for(var a=0,n=r.length;a<n;a++)e[a]=le(r[a])}}else if(k2[t]){if(!zs(r)){var i=r.constructor;if(i.from)e=i.from(r);else{e=new i(r.length);for(var a=0,n=r.length;a<n;a++)e[a]=r[a]}}}else if(!P2[t]&&!zs(r)&&!wo(r)){e={};for(var o in r)r.hasOwnProperty(o)&&o!==Gg&&(e[o]=le(r[o]))}return e}function pe(r,e,t){if(!se(e)||!se(r))return t?le(e):r;for(var a in e)if(e.hasOwnProperty(a)&&a!==Gg){var n=r[a],i=e[a];se(i)&&se(n)&&!W(i)&&!W(n)&&!wo(i)&&!wo(n)&&!c0(i)&&!c0(n)&&!zs(i)&&!zs(n)?pe(n,i,t):(t||!(a in r))&&(r[a]=le(e[a]))}return r}function jg(r,e){for(var t=r[0],a=1,n=r.length;a<n;a++)t=pe(t,r[a],e);return t}function G(r,e){if(Object.assign)Object.assign(r,e);else for(var t in e)e.hasOwnProperty(t)&&t!==Gg&&(r[t]=e[t]);return r}function ie(r,e,t){for(var a=Me(e),n=0,i=a.length;n<i;n++){var o=a[n];(t?e[o]!=null:r[o]==null)&&(r[o]=e[o])}return r}function _e(r,e){if(r){if(r.indexOf)return r.indexOf(e);for(var t=0,a=r.length;t<a;t++)if(r[t]===e)return t}return-1}function I5(r,e){var t=r.prototype;function a(){}a.prototype=e.prototype,r.prototype=new a;for(var n in t)t.hasOwnProperty(n)&&(r.prototype[n]=t[n]);r.prototype.constructor=r,r.superClass=e}function ut(r,e,t){if(r="prototype"in r?r.prototype:r,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var a=Object.getOwnPropertyNames(e),n=0;n<a.length;n++){var i=a[n];i!=="constructor"&&(t?e[i]!=null:r[i]==null)&&(r[i]=e[i])}else ie(r,e,t)}function Ot(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function L(r,e,t){if(r&&e)if(r.forEach&&r.forEach===A5)r.forEach(e,t);else if(r.length===+r.length)for(var a=0,n=r.length;a<n;a++)e.call(t,r[a],a,r);else for(var i in r)r.hasOwnProperty(i)&&e.call(t,r[i],i,r)}function U(r,e,t){if(!r)return[];if(!e)return Wg(r);if(r.map&&r.map===M5)return r.map(e,t);for(var a=[],n=0,i=r.length;n<i;n++)a.push(e.call(t,r[n],n,r));return a}function sa(r,e,t,a){if(r&&e){for(var n=0,i=r.length;n<i;n++)t=e.call(a,t,r[n],n,r);return t}}function ze(r,e,t){if(!r)return[];if(!e)return Wg(r);if(r.filter&&r.filter===D5)return r.filter(e,t);for(var a=[],n=0,i=r.length;n<i;n++)e.call(t,r[n],n,r)&&a.push(r[n]);return a}function P5(r,e,t){if(r&&e){for(var a=0,n=r.length;a<n;a++)if(e.call(t,r[a],a,r))return r[a]}}function Me(r){if(!r)return[];if(Object.keys)return Object.keys(r);var e=[];for(var t in r)r.hasOwnProperty(t)&&e.push(t);return e}function k5(r,e){for(var t=[],a=2;a<arguments.length;a++)t[a-2]=arguments[a];return function(){return r.apply(e,t.concat(Fg.call(arguments)))}}var Q=Kl&&ne(Kl.bind)?Kl.call.bind(Kl.bind):k5;function ve(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return function(){return r.apply(this,e.concat(Fg.call(arguments)))}}function W(r){return Array.isArray?Array.isArray(r):Eo.call(r)==="[object Array]"}function ne(r){return typeof r=="function"}function q(r){return typeof r=="string"}function Ud(r){return Eo.call(r)==="[object String]"}function ke(r){return typeof r=="number"}function se(r){var e=typeof r;return e==="function"||!!r&&e==="object"}function c0(r){return!!P2[Eo.call(r)]}function tr(r){return!!k2[Eo.call(r)]}function wo(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function Af(r){return r.colorStops!=null}function R5(r){return r.image!=null}function E5(r){return Eo.call(r)==="[object RegExp]"}function el(r){return r!==r}function Ct(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];for(var t=0,a=r.length;t<a;t++)if(r[t]!=null)return r[t]}function fe(r,e){return r??e}function ia(r,e,t){return r??e??t}function Wg(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return Fg.apply(r,e)}function $g(r){if(typeof r=="number")return[r,r,r,r];var e=r.length;return e===2?[r[0],r[1],r[0],r[1]]:e===3?[r[0],r[1],r[2],r[1]]:r}function $t(r,e){if(!r)throw new Error(e)}function Or(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var E2="__ec_primitive__";function Ac(r){r[E2]=!0}function zs(r){return r[E2]}var N5=(function(){function r(){this.data={}}return r.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},r.prototype.has=function(e){return this.data.hasOwnProperty(e)},r.prototype.get=function(e){return this.data[e]},r.prototype.set=function(e,t){return this.data[e]=t,this},r.prototype.keys=function(){return Me(this.data)},r.prototype.forEach=function(e){var t=this.data;for(var a in t)t.hasOwnProperty(a)&&e(t[a],a)},r})(),N2=typeof Map=="function";function O5(){return N2?new Map:new N5}var B5=(function(){function r(e){var t=W(e);this.data=O5();var a=this;e instanceof r?e.each(n):e&&L(e,n);function n(i,o){t?a.set(i,o):a.set(o,i)}}return r.prototype.hasKey=function(e){return this.data.has(e)},r.prototype.get=function(e){return this.data.get(e)},r.prototype.set=function(e,t){return this.data.set(e,t),t},r.prototype.each=function(e,t){this.data.forEach(function(a,n){e.call(t,a,n)})},r.prototype.keys=function(){var e=this.data.keys();return N2?Array.from(e):e},r.prototype.removeKey=function(e){this.data.delete(e)},r})();function re(r){return new B5(r)}function tl(r,e){for(var t=new r.constructor(r.length+e.length),a=0;a<r.length;a++)t[a]=r[a];for(var n=r.length,a=0;a<e.length;a++)t[a+n]=e[a];return t}function Df(r,e){var t;if(Object.create)t=Object.create(r);else{var a=function(){};a.prototype=r,t=new a}return e&&G(t,e),t}function O2(r){var e=r.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function ee(r,e){return r.hasOwnProperty(e)}function nt(){}var rc=180/Math.PI;function Ai(r,e){return r==null&&(r=0),e==null&&(e=0),[r,e]}function Vt(r,e){return r[0]=e[0],r[1]=e[1],r}function Sa(r){return[r[0],r[1]]}function z5(r,e,t){return r[0]=e,r[1]=t,r}function f0(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r}function Yd(r,e,t,a){return r[0]=e[0]+t[0]*a,r[1]=e[1]+t[1]*a,r}function ri(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r}function Xd(r){return Math.sqrt(V5(r))}function V5(r){return r[0]*r[0]+r[1]*r[1]}function ac(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r}function No(r,e){var t=Xd(e);return t===0?(r[0]=0,r[1]=0):(r[0]=e[0]/t,r[1]=e[1]/t),r}function Zd(r,e){return Math.sqrt((r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1]))}var Ka=Zd;function F5(r,e){return(r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1])}var ci=F5;function nc(r,e,t,a){return r[0]=e[0]+a*(t[0]-e[0]),r[1]=e[1]+a*(t[1]-e[1]),r}function Lt(r,e,t){var a=e[0],n=e[1];return r[0]=t[0]*a+t[2]*n+t[4],r[1]=t[1]*a+t[3]*n+t[5],r}function Ja(r,e,t){return r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r}function Qa(r,e,t){return r[0]=Math.max(e[0],t[0]),r[1]=Math.max(e[1],t[1]),r}var Bi=(function(){function r(e,t){this.target=e,this.topTarget=t&&t.topTarget}return r})(),G5=(function(){function r(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Bi(t,e),"dragstart",e.event))},r.prototype._drag=function(e){var t=this._draggingTarget;if(t){var a=e.offsetX,n=e.offsetY,i=a-this._x,o=n-this._y;this._x=a,this._y=n,t.drift(i,o,e),this.handler.dispatchToElement(new Bi(t,e),"drag",e.event);var s=this.handler.findHover(a,n,t).target,l=this._dropTarget;this._dropTarget=s,t!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Bi(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new Bi(s,e),"dragenter",e.event))}},r.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new Bi(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new Bi(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},r})(),Ar=(function(){function r(e){e&&(this._$eventProcessor=e)}return r.prototype.on=function(e,t,a,n){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof t=="function"&&(n=a,a=t,t=null),!a||!e)return this;var o=this._$eventProcessor;t!=null&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),i[e]||(i[e]=[]);for(var s=0;s<i[e].length;s++)if(i[e][s].h===a)return this;var l={h:a,query:t,ctx:n||this,callAtLast:a.zrEventfulCallAtLast},u=i[e].length-1,c=i[e][u];return c&&c.callAtLast?i[e].splice(u,0,l):i[e].push(l),this},r.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},r.prototype.off=function(e,t){var a=this._$handlers;if(!a)return this;if(!e)return this._$handlers={},this;if(t){if(a[e]){for(var n=[],i=0,o=a[e].length;i<o;i++)a[e][i].h!==t&&n.push(a[e][i]);a[e]=n}a[e]&&a[e].length===0&&delete a[e]}else delete a[e];return this},r.prototype.trigger=function(e){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];if(!this._$handlers)return this;var n=this._$handlers[e],i=this._$eventProcessor;if(n)for(var o=t.length,s=n.length,l=0;l<s;l++){var u=n[l];if(!(i&&i.filter&&u.query!=null&&!i.filter(e,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,t[0]);break;case 2:u.h.call(u.ctx,t[0],t[1]);break;default:u.h.apply(u.ctx,t);break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},r.prototype.triggerWithContext=function(e){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];if(!this._$handlers)return this;var n=this._$handlers[e],i=this._$eventProcessor;if(n)for(var o=t.length,s=t[o-1],l=n.length,u=0;u<l;u++){var c=n[u];if(!(i&&i.filter&&c.query!=null&&!i.filter(e,c.query)))switch(o){case 0:c.h.call(s);break;case 1:c.h.call(s,t[0]);break;case 2:c.h.call(s,t[0],t[1]);break;default:c.h.apply(s,t.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},r})(),H5=Math.log(2);function qd(r,e,t,a,n,i){var o=a+"-"+n,s=r.length;if(i.hasOwnProperty(o))return i[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~n)/H5);return r[t][l]}for(var u=a|1<<t,c=t+1;a&1<<c;)c++;for(var f=0,h=0,v=0;h<s;h++){var d=1<<h;d&n||(f+=(v%2?-1:1)*r[t][h]*qd(r,e-1,c,u,n|d,i),v++)}return i[o]=f,f}function h0(r,e){var t=[[r[0],r[1],1,0,0,0,-e[0]*r[0],-e[0]*r[1]],[0,0,0,r[0],r[1],1,-e[1]*r[0],-e[1]*r[1]],[r[2],r[3],1,0,0,0,-e[2]*r[2],-e[2]*r[3]],[0,0,0,r[2],r[3],1,-e[3]*r[2],-e[3]*r[3]],[r[4],r[5],1,0,0,0,-e[4]*r[4],-e[4]*r[5]],[0,0,0,r[4],r[5],1,-e[5]*r[4],-e[5]*r[5]],[r[6],r[7],1,0,0,0,-e[6]*r[6],-e[6]*r[7]],[0,0,0,r[6],r[7],1,-e[7]*r[6],-e[7]*r[7]]],a={},n=qd(t,8,0,0,0,a);if(n!==0){for(var i=[],o=0;o<8;o++)for(var s=0;s<8;s++)i[s]==null&&(i[s]=0),i[s]+=((o+s)%2?-1:1)*qd(t,7,o===0?1:0,1<<o,1<<s,a)/n*e[o];return function(l,u,c){var f=u*i[6]+c*i[7]+1;l[0]=(u*i[0]+c*i[1]+i[2])/f,l[1]=(u*i[3]+c*i[4]+i[5])/f}}}var v0="___zrEVENTSAVED",yh=[];function j5(r,e,t,a,n){return Kd(yh,e,a,n,!0)&&Kd(r,t,yh[0],yh[1])}function Kd(r,e,t,a,n){if(e.getBoundingClientRect&&Ae.domSupported&&!B2(e)){var i=e[v0]||(e[v0]={}),o=W5(e,i),s=$5(o,i,n);if(s)return s(r,t,a),!0}return!1}function W5(r,e){var t=e.markers;if(t)return t;t=e.markers=[];for(var a=["left","right"],n=["top","bottom"],i=0;i<4;i++){var o=document.createElement("div"),s=o.style,l=i%2,u=(i>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",a[l]+":0",n[u]+":0",a[1-l]+":auto",n[1-u]+":auto",""].join("!important;"),r.appendChild(o),t.push(o)}return t}function $5(r,e,t){for(var a=t?"invTrans":"trans",n=e[a],i=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=r[u].getBoundingClientRect(),f=2*u,h=c.left,v=c.top;o.push(h,v),l=l&&i&&h===i[f]&&v===i[f+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&n?n:(e.srcCoords=o,e[a]=t?h0(s,o):h0(o,s))}function B2(r){return r.nodeName.toUpperCase()==="CANVAS"}var U5=/([&<>"'])/g,Y5={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Ht(r){return r==null?"":(r+"").replace(U5,function(e,t){return Y5[t]})}var X5=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,xh=[],Z5=Ae.browser.firefox&&+Ae.browser.version.split(".")[0]<39;function Jd(r,e,t,a){return t=t||{},a?d0(r,e,t):Z5&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):d0(r,e,t),t}function d0(r,e,t){if(Ae.domSupported&&r.getBoundingClientRect){var a=e.clientX,n=e.clientY;if(B2(r)){var i=r.getBoundingClientRect();t.zrX=a-i.left,t.zrY=n-i.top;return}else if(Kd(xh,r,a,n)){t.zrX=xh[0],t.zrY=xh[1];return}}t.zrX=t.zrY=0}function Ug(r){return r||window.event}function pr(r,e,t){if(e=Ug(e),e.zrX!=null)return e;var a=e.type,n=a&&a.indexOf("touch")>=0;if(n){var o=a!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&Jd(r,o,e,t)}else{Jd(r,e,e,t);var i=q5(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&X5.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function q5(r){var e=r.wheelDelta;if(e)return e;var t=r.deltaX,a=r.deltaY;if(t==null||a==null)return e;var n=Math.abs(a!==0?a:t),i=a>0?-1:a<0?1:t>0?-1:1;return 3*n*i}function Qd(r,e,t,a){r.addEventListener(e,t,a)}function K5(r,e,t,a){r.removeEventListener(e,t,a)}var Da=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function p0(r){return r.which===2||r.which===3}var J5=(function(){function r(){this._track=[]}return r.prototype.recognize=function(e,t,a){return this._doTrack(e,t,a),this._recognize(e)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(e,t,a){var n=e.touches;if(n){for(var i={points:[],touches:[],target:t,event:e},o=0,s=n.length;o<s;o++){var l=n[o],u=Jd(a,l,{});i.points.push([u.zrX,u.zrY]),i.touches.push(l)}this._track.push(i)}},r.prototype._recognize=function(e){for(var t in _h)if(_h.hasOwnProperty(t)){var a=_h[t](this._track,e);if(a)return a}},r})();function g0(r){var e=r[1][0]-r[0][0],t=r[1][1]-r[0][1];return Math.sqrt(e*e+t*t)}function Q5(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var _h={pinch:function(r,e){var t=r.length;if(t){var a=(r[t-1]||{}).points,n=(r[t-2]||{}).points||a;if(n&&n.length>1&&a&&a.length>1){var i=g0(a)/g0(n);!isFinite(i)&&(i=1),e.pinchScale=i;var o=Q5(a);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}};function or(){return[1,0,0,1,0,0]}function Mf(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function Yg(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function wa(r,e,t){var a=e[0]*t[0]+e[2]*t[1],n=e[1]*t[0]+e[3]*t[1],i=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return r[0]=a,r[1]=n,r[2]=i,r[3]=o,r[4]=s,r[5]=l,r}function la(r,e,t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4]+t[0],r[5]=e[5]+t[1],r}function Di(r,e,t,a){a===void 0&&(a=[0,0]);var n=e[0],i=e[2],o=e[4],s=e[1],l=e[3],u=e[5],c=Math.sin(t),f=Math.cos(t);return r[0]=n*f+s*c,r[1]=-n*c+s*f,r[2]=i*f+l*c,r[3]=-i*c+f*l,r[4]=f*(o-a[0])+c*(u-a[1])+a[0],r[5]=f*(u-a[1])-c*(o-a[0])+a[1],r}function Xg(r,e,t){var a=t[0],n=t[1];return r[0]=e[0]*a,r[1]=e[1]*n,r[2]=e[2]*a,r[3]=e[3]*n,r[4]=e[4]*a,r[5]=e[5]*n,r}function Oo(r,e){var t=e[0],a=e[2],n=e[4],i=e[1],o=e[3],s=e[5],l=t*o-i*a;return l?(l=1/l,r[0]=o*l,r[1]=-i*l,r[2]=-a*l,r[3]=t*l,r[4]=(a*s-o*n)*l,r[5]=(i*n-t*s)*l,r):null}function ek(r){var e=or();return Yg(e,r),e}var ge=(function(){function r(e,t){this.x=e||0,this.y=t||0}return r.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(e,t){return this.x=e,this.y=t,this},r.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},r.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},r.prototype.scale=function(e){this.x*=e,this.y*=e},r.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},r.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},r.prototype.dot=function(e){return this.x*e.x+this.y*e.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 e=this.len();return this.x/=e,this.y/=e,this},r.prototype.distance=function(e){var t=this.x-e.x,a=this.y-e.y;return Math.sqrt(t*t+a*a)},r.prototype.distanceSquare=function(e){var t=this.x-e.x,a=this.y-e.y;return t*t+a*a},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(e){if(e){var t=this.x,a=this.y;return this.x=e[0]*t+e[2]*a+e[4],this.y=e[1]*t+e[3]*a+e[5],this}},r.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},r.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},r.set=function(e,t,a){e.x=t,e.y=a},r.copy=function(e,t){e.x=t.x,e.y=t.y},r.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},r.lenSquare=function(e){return e.x*e.x+e.y*e.y},r.dot=function(e,t){return e.x*t.x+e.y*t.y},r.add=function(e,t,a){e.x=t.x+a.x,e.y=t.y+a.y},r.sub=function(e,t,a){e.x=t.x-a.x,e.y=t.y-a.y},r.scale=function(e,t,a){e.x=t.x*a,e.y=t.y*a},r.scaleAndAdd=function(e,t,a,n){e.x=t.x+a.x*n,e.y=t.y+a.y*n},r.lerp=function(e,t,a,n){var i=1-n;e.x=i*t.x+n*a.x,e.y=i*t.y+n*a.y},r})(),Jl=Math.min,Ql=Math.max,Sn=new ge,wn=new ge,Tn=new ge,Cn=new ge,Ko=new ge,Jo=new ge,ye=(function(){function r(e,t,a,n){a<0&&(e=e+a,a=-a),n<0&&(t=t+n,n=-n),this.x=e,this.y=t,this.width=a,this.height=n}return r.prototype.union=function(e){var t=Jl(e.x,this.x),a=Jl(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ql(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ql(e.y+e.height,this.y+this.height)-a:this.height=e.height,this.x=t,this.y=a},r.prototype.applyTransform=function(e){r.applyTransform(this,this,e)},r.prototype.calculateTransform=function(e){var t=this,a=e.width/t.width,n=e.height/t.height,i=or();return la(i,i,[-t.x,-t.y]),Xg(i,i,[a,n]),la(i,i,[e.x,e.y]),i},r.prototype.intersect=function(e,t){if(!e)return!1;e instanceof r||(e=r.create(e));var a=this,n=a.x,i=a.x+a.width,o=a.y,s=a.y+a.height,l=e.x,u=e.x+e.width,c=e.y,f=e.y+e.height,h=!(i<l||u<n||s<c||f<o);if(t){var v=1/0,d=0,p=Math.abs(i-l),g=Math.abs(u-n),m=Math.abs(s-c),y=Math.abs(f-o),x=Math.min(p,g),_=Math.min(m,y);i<l||u<n?x>d&&(d=x,p<g?ge.set(Jo,-p,0):ge.set(Jo,g,0)):x<v&&(v=x,p<g?ge.set(Ko,p,0):ge.set(Ko,-g,0)),s<c||f<o?_>d&&(d=_,m<y?ge.set(Jo,0,-m):ge.set(Jo,0,y)):x<v&&(v=x,m<y?ge.set(Ko,0,m):ge.set(Ko,0,-y))}return t&&ge.copy(t,h?Ko:Jo),h},r.prototype.contain=function(e,t){var a=this;return e>=a.x&&e<=a.x+a.width&&t>=a.y&&t<=a.y+a.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){r.copy(this,e)},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(e){return new r(e.x,e.y,e.width,e.height)},r.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},r.applyTransform=function(e,t,a){if(!a){e!==t&&r.copy(e,t);return}if(a[1]<1e-5&&a[1]>-1e-5&&a[2]<1e-5&&a[2]>-1e-5){var n=a[0],i=a[3],o=a[4],s=a[5];e.x=t.x*n+o,e.y=t.y*i+s,e.width=t.width*n,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Sn.x=Tn.x=t.x,Sn.y=Cn.y=t.y,wn.x=Cn.x=t.x+t.width,wn.y=Tn.y=t.y+t.height,Sn.transform(a),Cn.transform(a),wn.transform(a),Tn.transform(a),e.x=Jl(Sn.x,wn.x,Tn.x,Cn.x),e.y=Jl(Sn.y,wn.y,Tn.y,Cn.y);var l=Ql(Sn.x,wn.x,Tn.x,Cn.x),u=Ql(Sn.y,wn.y,Tn.y,Cn.y);e.width=l-e.x,e.height=u-e.y},r})(),z2="silent";function tk(r,e,t){return{type:r,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:rk}}function rk(){Da(this.event)}var ak=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e})(Ar),Qo=(function(){function r(e,t){this.x=e,this.y=t}return r})(),nk=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],bh=new ye(0,0,0,0),V2=(function(r){z(e,r);function e(t,a,n,i,o){var s=r.call(this)||this;return s._hovered=new Qo(0,0),s.storage=t,s.painter=a,s.painterRoot=i,s._pointerSize=o,n=n||new ak,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new G5(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(L(nk,function(a){t.on&&t.on(a,this[a],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var a=t.zrX,n=t.zrY,i=F2(this,a,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new Qo(a,n):this.findHover(a,n),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var a=t.zrEventControl;a!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),a!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Qo(0,0)},e.prototype.dispatch=function(t,a){var n=this[t];n&&n.call(this,a)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var a=this.proxy;a.setCursor&&a.setCursor(t)},e.prototype.dispatchToElement=function(t,a,n){t=t||{};var i=t.target;if(!(i&&i.silent)){for(var o="on"+a,s=tk(a,t,n);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(a,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(a,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(a,s)}))}},e.prototype.findHover=function(t,a,n){var i=this.storage.getDisplayList(),o=new Qo(t,a);if(m0(i,o,t,a,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new ye(t-u,a-u,l,l),f=i.length-1;f>=0;f--){var h=i[f];h!==n&&!h.ignore&&!h.ignoreCoarsePointer&&(!h.parent||!h.parent.ignoreCoarsePointer)&&(bh.copy(h.getBoundingRect()),h.transform&&bh.applyTransform(h.transform),bh.intersect(c)&&s.push(h))}if(s.length)for(var v=4,d=Math.PI/12,p=Math.PI*2,g=0;g<u;g+=v)for(var m=0;m<p;m+=d){var y=t+g*Math.cos(m),x=a+g*Math.sin(m);if(m0(s,o,y,x,n),o.target)return o}}return o},e.prototype.processGesture=function(t,a){this._gestureMgr||(this._gestureMgr=new J5);var n=this._gestureMgr;a==="start"&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if(a==="end"&&n.clear(),i){var o=i.type;t.gestureEvent=o;var s=new Qo;s.target=i.target,this.dispatchToElement(s,o,i.event)}},e})(Ar);L(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){V2.prototype[r]=function(e){var t=e.zrX,a=e.zrY,n=F2(this,t,a),i,o;if((r!=="mouseup"||!n)&&(i=this.findHover(t,a),o=i.target),r==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||Ka(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,r,e)}});function ik(r,e,t){if(r[r.rectHover?"rectContain":"contain"](e,t)){for(var a=r,n=void 0,i=!1;a;){if(a.ignoreClip&&(i=!0),!i){var o=a.getClipPath();if(o&&!o.contain(e,t))return!1}a.silent&&(n=!0);var s=a.__hostTarget;a=s||a.parent}return n?z2:!0}return!1}function m0(r,e,t,a,n){for(var i=r.length-1;i>=0;i--){var o=r[i],s=void 0;if(o!==n&&!o.ignore&&(s=ik(o,t,a))&&(!e.topTarget&&(e.topTarget=o),s!==z2)){e.target=o;break}}}function F2(r,e,t){var a=r.painter;return e<0||e>a.getWidth()||t<0||t>a.getHeight()}var G2=32,es=7;function ok(r){for(var e=0;r>=G2;)e|=r&1,r>>=1;return r+e}function y0(r,e,t,a){var n=e+1;if(n===t)return 1;if(a(r[n++],r[e])<0){for(;n<t&&a(r[n],r[n-1])<0;)n++;sk(r,e,n)}else for(;n<t&&a(r[n],r[n-1])>=0;)n++;return n-e}function sk(r,e,t){for(t--;e<t;){var a=r[e];r[e++]=r[t],r[t--]=a}}function x0(r,e,t,a,n){for(a===e&&a++;a<t;a++){for(var i=r[a],o=e,s=a,l;o<s;)l=o+s>>>1,n(i,r[l])<0?s=l:o=l+1;var u=a-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=i}}function Sh(r,e,t,a,n,i){var o=0,s=0,l=1;if(i(r,e[t+n])>0){for(s=a-n;l<s&&i(r,e[t+n+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;l<s&&i(r,e[t+n-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}for(o++;o<l;){var c=o+(l-o>>>1);i(r,e[t+c])>0?o=c+1:l=c}return l}function wh(r,e,t,a,n,i){var o=0,s=0,l=1;if(i(r,e[t+n])<0){for(s=n+1;l<s&&i(r,e[t+n-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}else{for(s=a-n;l<s&&i(r,e[t+n+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o<l;){var c=o+(l-o>>>1);i(r,e[t+c])<0?l=c:o=c+1}return l}function lk(r,e){var t=es,a,n,i=0,o=[];a=[],n=[];function s(v,d){a[i]=v,n[i]=d,i+=1}function l(){for(;i>1;){var v=i-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;c(v)}}function u(){for(;i>1;){var v=i-2;v>0&&n[v-1]<n[v+1]&&v--,c(v)}}function c(v){var d=a[v],p=n[v],g=a[v+1],m=n[v+1];n[v]=p+m,v===i-3&&(a[v+1]=a[v+2],n[v+1]=n[v+2]),i--;var y=wh(r[g],r,d,p,0,e);d+=y,p-=y,p!==0&&(m=Sh(r[d+p-1],r,g,m,m-1,e),m!==0&&(p<=m?f(d,p,g,m):h(d,p,g,m)))}function f(v,d,p,g){var m=0;for(m=0;m<d;m++)o[m]=r[v+m];var y=0,x=p,_=v;if(r[_++]=r[x++],--g===0){for(m=0;m<d;m++)r[_+m]=o[y+m];return}if(d===1){for(m=0;m<g;m++)r[_+m]=r[x+m];r[_+g]=o[y];return}for(var b=t,S,w,C;;){S=0,w=0,C=!1;do if(e(r[x],o[y])<0){if(r[_++]=r[x++],w++,S=0,--g===0){C=!0;break}}else if(r[_++]=o[y++],S++,w=0,--d===1){C=!0;break}while((S|w)<b);if(C)break;do{if(S=wh(r[x],o,y,d,0,e),S!==0){for(m=0;m<S;m++)r[_+m]=o[y+m];if(_+=S,y+=S,d-=S,d<=1){C=!0;break}}if(r[_++]=r[x++],--g===0){C=!0;break}if(w=Sh(o[y],r,x,g,0,e),w!==0){for(m=0;m<w;m++)r[_+m]=r[x+m];if(_+=w,x+=w,g-=w,g===0){C=!0;break}}if(r[_++]=o[y++],--d===1){C=!0;break}b--}while(S>=es||w>=es);if(C)break;b<0&&(b=0),b+=2}if(t=b,t<1&&(t=1),d===1){for(m=0;m<g;m++)r[_+m]=r[x+m];r[_+g]=o[y]}else{if(d===0)throw new Error;for(m=0;m<d;m++)r[_+m]=o[y+m]}}function h(v,d,p,g){var m=0;for(m=0;m<g;m++)o[m]=r[p+m];var y=v+d-1,x=g-1,_=p+g-1,b=0,S=0;if(r[_--]=r[y--],--d===0){for(b=_-(g-1),m=0;m<g;m++)r[b+m]=o[m];return}if(g===1){for(_-=d,y-=d,S=_+1,b=y+1,m=d-1;m>=0;m--)r[S+m]=r[b+m];r[_]=o[x];return}for(var w=t;;){var C=0,A=0,D=!1;do if(e(o[x],r[y])<0){if(r[_--]=r[y--],C++,A=0,--d===0){D=!0;break}}else if(r[_--]=o[x--],A++,C=0,--g===1){D=!0;break}while((C|A)<w);if(D)break;do{if(C=d-wh(o[x],r,v,d,d-1,e),C!==0){for(_-=C,y-=C,d-=C,S=_+1,b=y+1,m=C-1;m>=0;m--)r[S+m]=r[b+m];if(d===0){D=!0;break}}if(r[_--]=o[x--],--g===1){D=!0;break}if(A=g-Sh(r[y],o,0,g,g-1,e),A!==0){for(_-=A,x-=A,g-=A,S=_+1,b=x+1,m=0;m<A;m++)r[S+m]=o[b+m];if(g<=1){D=!0;break}}if(r[_--]=r[y--],--d===0){D=!0;break}w--}while(C>=es||A>=es);if(D)break;w<0&&(w=0),w+=2}if(t=w,t<1&&(t=1),g===1){for(_-=d,y-=d,S=_+1,b=y+1,m=d-1;m>=0;m--)r[S+m]=r[b+m];r[_]=o[x]}else{if(g===0)throw new Error;for(b=_-(g-1),m=0;m<g;m++)r[b+m]=o[m]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function ic(r,e,t,a){t||(t=0),a||(a=r.length);var n=a-t;if(!(n<2)){var i=0;if(n<G2){i=y0(r,t,a,e),x0(r,t,a,t+i,e);return}var o=lk(r,e),s=ok(n);do{if(i=y0(r,t,a,e),i<s){var l=n;l>s&&(l=s),x0(r,t,t+l,t+i,e),i=l}o.pushRun(t,i),o.mergeRuns(),n-=i,t+=i}while(n!==0);o.forceMergeRuns()}}var nr=1,As=2,oo=4,_0=!1;function Th(){_0||(_0=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function b0(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var uk=(function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=b0}return r.prototype.traverse=function(e,t){for(var a=0;a<this._roots.length;a++)this._roots[a].traverse(e,t)},r.prototype.getDisplayList=function(e,t){t=t||!1;var a=this._displayList;return(e||!a.length)&&this.updateDisplayList(t),a},r.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,a=this._displayList,n=0,i=t.length;n<i;n++)this._updateAndAddDisplayable(t[n],null,e);a.length=this._displayListLen,ic(a,b0)},r.prototype._updateAndAddDisplayable=function(e,t,a){if(!(e.ignore&&!a)){e.beforeUpdate(),e.update(),e.afterUpdate();var n=e.getClipPath();if(e.ignoreClip)t=null;else if(n){t?t=t.slice():t=[];for(var i=n,o=e;i;)i.parent=o,i.updateTransform(),t.push(i),o=i,i=i.getClipPath()}if(e.childrenRef){for(var s=e.childrenRef(),l=0;l<s.length;l++){var u=s[l];e.__dirty&&(u.__dirty|=nr),this._updateAndAddDisplayable(u,t,a)}e.__dirty=0}else{var c=e;t&&t.length?c.__clipPaths=t:c.__clipPaths&&c.__clipPaths.length>0&&(c.__clipPaths=[]),isNaN(c.z)&&(Th(),c.z=0),isNaN(c.z2)&&(Th(),c.z2=0),isNaN(c.zlevel)&&(Th(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var f=e.getDecalElement&&e.getDecalElement();f&&this._updateAndAddDisplayable(f,t,a);var h=e.getTextGuideLine();h&&this._updateAndAddDisplayable(h,t,a);var v=e.getTextContent();v&&this._updateAndAddDisplayable(v,t,a)}},r.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},r.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,a=e.length;t<a;t++)this.delRoot(e[t]);return}var n=_e(this._roots,e);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})(),Dc;Dc=Ae.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var Vs={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 e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)))},elasticOut:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*r)*Math.sin((r-e)*(2*Math.PI)/a)+1)},elasticInOut:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),(r*=2)<1?-.5*(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)):t*Math.pow(2,-10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)*.5+1)},backIn:function(r){var e=1.70158;return r*r*((e+1)*r-e)},backOut:function(r){var e=1.70158;return--r*r*((e+1)*r+e)+1},backInOut:function(r){var e=2.5949095;return(r*=2)<1?.5*(r*r*((e+1)*r-e)):.5*((r-=2)*r*((e+1)*r+e)+2)},bounceIn:function(r){return 1-Vs.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?Vs.bounceIn(r*2)*.5:Vs.bounceOut(r*2-1)*.5+.5}},eu=Math.pow,ln=Math.sqrt,Mc=1e-8,H2=1e-4,S0=ln(3),tu=1/3,Qr=Ai(),xr=Ai(),mo=Ai();function en(r){return r>-Mc&&r<Mc}function j2(r){return r>Mc||r<-Mc}function mt(r,e,t,a,n){var i=1-n;return i*i*(i*r+3*n*e)+n*n*(n*a+3*i*t)}function w0(r,e,t,a,n){var i=1-n;return 3*(((e-r)*i+2*(t-e)*n)*i+(a-t)*n*n)}function Lc(r,e,t,a,n,i){var o=a+3*(e-t)-r,s=3*(t-e*2+r),l=3*(e-r),u=r-n,c=s*s-3*o*l,f=s*l-9*o*u,h=l*l-3*s*u,v=0;if(en(c)&&en(f))if(en(s))i[0]=0;else{var d=-l/s;d>=0&&d<=1&&(i[v++]=d)}else{var p=f*f-4*c*h;if(en(p)){var g=f/c,d=-s/o+g,m=-g/2;d>=0&&d<=1&&(i[v++]=d),m>=0&&m<=1&&(i[v++]=m)}else if(p>0){var y=ln(p),x=c*s+1.5*o*(-f+y),_=c*s+1.5*o*(-f-y);x<0?x=-eu(-x,tu):x=eu(x,tu),_<0?_=-eu(-_,tu):_=eu(_,tu);var d=(-s-(x+_))/(3*o);d>=0&&d<=1&&(i[v++]=d)}else{var b=(2*c*s-3*o*f)/(2*ln(c*c*c)),S=Math.acos(b)/3,w=ln(c),C=Math.cos(S),d=(-s-2*w*C)/(3*o),m=(-s+w*(C+S0*Math.sin(S)))/(3*o),A=(-s+w*(C-S0*Math.sin(S)))/(3*o);d>=0&&d<=1&&(i[v++]=d),m>=0&&m<=1&&(i[v++]=m),A>=0&&A<=1&&(i[v++]=A)}}return v}function W2(r,e,t,a,n){var i=6*t-12*e+6*r,o=9*e+3*a-3*r-9*t,s=3*e-3*r,l=0;if(en(o)){if(j2(i)){var u=-s/i;u>=0&&u<=1&&(n[l++]=u)}}else{var c=i*i-4*o*s;if(en(c))n[0]=-i/(2*o);else if(c>0){var f=ln(c),u=(-i+f)/(2*o),h=(-i-f)/(2*o);u>=0&&u<=1&&(n[l++]=u),h>=0&&h<=1&&(n[l++]=h)}}return l}function dn(r,e,t,a,n,i){var o=(e-r)*n+r,s=(t-e)*n+e,l=(a-t)*n+t,u=(s-o)*n+o,c=(l-s)*n+s,f=(c-u)*n+u;i[0]=r,i[1]=o,i[2]=u,i[3]=f,i[4]=f,i[5]=c,i[6]=l,i[7]=a}function $2(r,e,t,a,n,i,o,s,l,u,c){var f,h=.005,v=1/0,d,p,g,m;Qr[0]=l,Qr[1]=u;for(var y=0;y<1;y+=.05)xr[0]=mt(r,t,n,o,y),xr[1]=mt(e,a,i,s,y),g=ci(Qr,xr),g<v&&(f=y,v=g);v=1/0;for(var x=0;x<32&&!(h<H2);x++)d=f-h,p=f+h,xr[0]=mt(r,t,n,o,d),xr[1]=mt(e,a,i,s,d),g=ci(xr,Qr),d>=0&&g<v?(f=d,v=g):(mo[0]=mt(r,t,n,o,p),mo[1]=mt(e,a,i,s,p),m=ci(mo,Qr),p<=1&&m<v?(f=p,v=m):h*=.5);return c&&(c[0]=mt(r,t,n,o,f),c[1]=mt(e,a,i,s,f)),ln(v)}function ck(r,e,t,a,n,i,o,s,l){for(var u=r,c=e,f=0,h=1/l,v=1;v<=l;v++){var d=v*h,p=mt(r,t,n,o,d),g=mt(e,a,i,s,d),m=p-u,y=g-c;f+=Math.sqrt(m*m+y*y),u=p,c=g}return f}function Tt(r,e,t,a){var n=1-a;return n*(n*r+2*a*e)+a*a*t}function ep(r,e,t,a){return 2*((1-a)*(e-r)+a*(t-e))}function fk(r,e,t,a,n){var i=r-2*e+t,o=2*(e-r),s=r-a,l=0;if(en(i)){if(j2(o)){var u=-s/o;u>=0&&u<=1&&(n[l++]=u)}}else{var c=o*o-4*i*s;if(en(c)){var u=-o/(2*i);u>=0&&u<=1&&(n[l++]=u)}else if(c>0){var f=ln(c),u=(-o+f)/(2*i),h=(-o-f)/(2*i);u>=0&&u<=1&&(n[l++]=u),h>=0&&h<=1&&(n[l++]=h)}}return l}function U2(r,e,t){var a=r+t-2*e;return a===0?.5:(r-e)/a}function rl(r,e,t,a,n){var i=(e-r)*a+r,o=(t-e)*a+e,s=(o-i)*a+i;n[0]=r,n[1]=i,n[2]=s,n[3]=s,n[4]=o,n[5]=t}function Y2(r,e,t,a,n,i,o,s,l){var u,c=.005,f=1/0;Qr[0]=o,Qr[1]=s;for(var h=0;h<1;h+=.05){xr[0]=Tt(r,t,n,h),xr[1]=Tt(e,a,i,h);var v=ci(Qr,xr);v<f&&(u=h,f=v)}f=1/0;for(var d=0;d<32&&!(c<H2);d++){var p=u-c,g=u+c;xr[0]=Tt(r,t,n,p),xr[1]=Tt(e,a,i,p);var v=ci(xr,Qr);if(p>=0&&v<f)u=p,f=v;else{mo[0]=Tt(r,t,n,g),mo[1]=Tt(e,a,i,g);var m=ci(mo,Qr);g<=1&&m<f?(u=g,f=m):c*=.5}}return l&&(l[0]=Tt(r,t,n,u),l[1]=Tt(e,a,i,u)),ln(f)}function hk(r,e,t,a,n,i,o){for(var s=r,l=e,u=0,c=1/o,f=1;f<=o;f++){var h=f*c,v=Tt(r,t,n,h),d=Tt(e,a,i,h),p=v-s,g=d-l;u+=Math.sqrt(p*p+g*g),s=v,l=d}return u}var vk=/cubic-bezier\(([0-9,\.e ]+)\)/;function Zg(r){var e=r&&vk.exec(r);if(e){var t=e[1].split(","),a=+Or(t[0]),n=+Or(t[1]),i=+Or(t[2]),o=+Or(t[3]);if(isNaN(a+n+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:Lc(0,a,i,1,l,s)&&mt(0,n,o,1,s[0])}}}var dk=(function(){function r(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||nt,this.ondestroy=e.ondestroy||nt,this.onrestart=e.onrestart||nt,e.easing&&this.setEasing(e.easing)}return r.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var a=this._life,n=e-this._startTime-this._pausedTime,i=n/a;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=n%a;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(e){this.easing=e,this.easingFunc=ne(e)?e:Vs[e]||Zg(e)},r})(),X2=(function(){function r(e){this.value=e}return r})(),pk=(function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new X2(e);return this.insertEntry(t),t},r.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},r.prototype.remove=function(e){var t=e.prev,a=e.next;t?t.next=a:this.head=a,a?a.prev=t:this.tail=t,e.next=e.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r})(),Ll=(function(){function r(e){this._list=new pk,this._maxSize=10,this._map={},this._maxSize=e}return r.prototype.put=function(e,t){var a=this._list,n=this._map,i=null;if(n[e]==null){var o=a.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=a.head;a.remove(l),delete n[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new X2(t),s.key=e,a.insertEntry(s),n[e]=s}return i},r.prototype.get=function(e){var t=this._map[e],a=this._list;if(t!=null)return t!==a.tail&&(a.remove(t),a.insertEntry(t)),t.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r})(),T0={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 zr(r){return r=Math.round(r),r<0?0:r>255?255:r}function gk(r){return r=Math.round(r),r<0?0:r>360?360:r}function al(r){return r<0?0:r>1?1:r}function Ch(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?zr(parseFloat(e)/100*255):zr(parseInt(e,10))}function fi(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?al(parseFloat(e)/100):al(parseFloat(e))}function Ah(r,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?r+(e-r)*t*6:t*2<1?e:t*3<2?r+(e-r)*(2/3-t)*6:r}function tn(r,e,t){return r+(e-r)*t}function dr(r,e,t,a,n){return r[0]=e,r[1]=t,r[2]=a,r[3]=n,r}function tp(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var Z2=new Ll(20),ru=null;function zi(r,e){ru&&tp(ru,e),ru=Z2.put(r,ru||e.slice())}function sr(r,e){if(r){e=e||[];var t=Z2.get(r);if(t)return tp(e,t);r=r+"";var a=r.replace(/ /g,"").toLowerCase();if(a in T0)return tp(e,T0[a]),zi(r,e),e;var n=a.length;if(a.charAt(0)==="#"){if(n===4||n===5){var i=parseInt(a.slice(1,4),16);if(!(i>=0&&i<=4095)){dr(e,0,0,0,1);return}return dr(e,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,n===5?parseInt(a.slice(4),16)/15:1),zi(r,e),e}else if(n===7||n===9){var i=parseInt(a.slice(1,7),16);if(!(i>=0&&i<=16777215)){dr(e,0,0,0,1);return}return dr(e,(i&16711680)>>16,(i&65280)>>8,i&255,n===9?parseInt(a.slice(7),16)/255:1),zi(r,e),e}return}var o=a.indexOf("("),s=a.indexOf(")");if(o!==-1&&s+1===n){var l=a.substr(0,o),u=a.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?dr(e,+u[0],+u[1],+u[2],1):dr(e,0,0,0,1);c=fi(u.pop());case"rgb":if(u.length>=3)return dr(e,Ch(u[0]),Ch(u[1]),Ch(u[2]),u.length===3?c:fi(u[3])),zi(r,e),e;dr(e,0,0,0,1);return;case"hsla":if(u.length!==4){dr(e,0,0,0,1);return}return u[3]=fi(u[3]),rp(u,e),zi(r,e),e;case"hsl":if(u.length!==3){dr(e,0,0,0,1);return}return rp(u,e),zi(r,e),e;default:return}}dr(e,0,0,0,1)}}function rp(r,e){var t=(parseFloat(r[0])%360+360)%360/360,a=fi(r[1]),n=fi(r[2]),i=n<=.5?n*(a+1):n+a-n*a,o=n*2-i;return e=e||[],dr(e,zr(Ah(o,i,t+1/3)*255),zr(Ah(o,i,t)*255),zr(Ah(o,i,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function mk(r){if(r){var e=r[0]/255,t=r[1]/255,a=r[2]/255,n=Math.min(e,t,a),i=Math.max(e,t,a),o=i-n,s=(i+n)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+n):u=o/(2-i-n);var c=((i-e)/6+o/2)/o,f=((i-t)/6+o/2)/o,h=((i-a)/6+o/2)/o;e===i?l=h-f:t===i?l=1/3+c-h:a===i&&(l=2/3+f-c),l<0&&(l+=1),l>1&&(l-=1)}var v=[l*360,u,s];return r[3]!=null&&v.push(r[3]),v}}function ap(r,e){var t=sr(r);if(t){for(var a=0;a<3;a++)e<0?t[a]=t[a]*(1-e)|0:t[a]=(255-t[a])*e+t[a]|0,t[a]>255?t[a]=255:t[a]<0&&(t[a]=0);return Ta(t,t.length===4?"rgba":"rgb")}}function Dh(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){t=t||[];var a=r*(e.length-1),n=Math.floor(a),i=Math.ceil(a),o=e[n],s=e[i],l=a-n;return t[0]=zr(tn(o[0],s[0],l)),t[1]=zr(tn(o[1],s[1],l)),t[2]=zr(tn(o[2],s[2],l)),t[3]=al(tn(o[3],s[3],l)),t}}function yk(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){var a=r*(e.length-1),n=Math.floor(a),i=Math.ceil(a),o=sr(e[n]),s=sr(e[i]),l=a-n,u=Ta([zr(tn(o[0],s[0],l)),zr(tn(o[1],s[1],l)),zr(tn(o[2],s[2],l)),al(tn(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:n,rightIndex:i,value:a}:u}}function Fs(r,e,t,a){var n=sr(r);if(r)return n=mk(n),e!=null&&(n[0]=gk(e)),t!=null&&(n[1]=fi(t)),a!=null&&(n[2]=fi(a)),Ta(rp(n),"rgba")}function Ic(r,e){var t=sr(r);if(t&&e!=null)return t[3]=al(e),Ta(t,"rgba")}function Ta(r,e){if(!(!r||!r.length)){var t=r[0]+","+r[1]+","+r[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+r[3]),e+"("+t+")"}}function Pc(r,e){var t=sr(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var C0=new Ll(100);function np(r){if(q(r)){var e=C0.get(r);return e||(e=ap(r,-.1),C0.put(r,e)),e}else if(Af(r)){var t=G({},r);return t.colorStops=U(r.colorStops,function(a){return{offset:a.offset,color:ap(a.color,-.1)}}),t}return r}var kc=Math.round;function nl(r){var e;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var t=sr(r);t&&(r="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:r,opacity:e??1}}var A0=1e-4;function rn(r){return r<A0&&r>-A0}function au(r){return kc(r*1e3)/1e3}function ip(r){return kc(r*1e4)/1e4}function xk(r){return"matrix("+au(r[0])+","+au(r[1])+","+au(r[2])+","+au(r[3])+","+ip(r[4])+","+ip(r[5])+")"}var _k={left:"start",right:"end",center:"middle",middle:"middle"};function bk(r,e,t){return t==="top"?r+=e/2:t==="bottom"&&(r-=e/2),r}function Sk(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function wk(r){var e=r.style,t=r.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function q2(r){return r&&!!r.image}function Tk(r){return r&&!!r.svgElement}function qg(r){return q2(r)||Tk(r)}function K2(r){return r.type==="linear"}function J2(r){return r.type==="radial"}function Q2(r){return r&&(r.type==="linear"||r.type==="radial")}function Lf(r){return"url(#"+r+")"}function eT(r){var e=r.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function tT(r){var e=r.x||0,t=r.y||0,a=(r.rotation||0)*rc,n=fe(r.scaleX,1),i=fe(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),a&&l.push("rotate("+a+")"),(n!==1||i!==1)&&l.push("scale("+n+","+i+")"),(o||s)&&l.push("skew("+kc(o*rc)+"deg, "+kc(s*rc)+"deg)"),l.join(" ")}var Ck=(function(){return Ae.hasGlobalWindow&&ne(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}})(),op=Array.prototype.slice;function ya(r,e,t){return(e-r)*t+r}function Mh(r,e,t,a){for(var n=e.length,i=0;i<n;i++)r[i]=ya(e[i],t[i],a);return r}function Ak(r,e,t,a){for(var n=e.length,i=n&&e[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=ya(e[o][s],t[o][s],a)}return r}function nu(r,e,t,a){for(var n=e.length,i=0;i<n;i++)r[i]=e[i]+t[i]*a;return r}function D0(r,e,t,a){for(var n=e.length,i=n&&e[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=e[o][s]+t[o][s]*a}return r}function Dk(r,e){for(var t=r.length,a=e.length,n=t>a?e:r,i=Math.min(t,a),o=n[i-1]||{color:[0,0,0,0],offset:0},s=i;s<Math.max(t,a);s++)n.push({offset:o.offset,color:o.color.slice()})}function Mk(r,e,t){var a=r,n=e;if(!(!a.push||!n.push)){var i=a.length,o=n.length;if(i!==o){var s=i>o;if(s)a.length=o;else for(var l=i;l<o;l++)a.push(t===1?n[l]:op.call(n[l]))}for(var u=a[0]&&a[0].length,l=0;l<a.length;l++)if(t===1)isNaN(a[l])&&(a[l]=n[l]);else for(var c=0;c<u;c++)isNaN(a[l][c])&&(a[l][c]=n[l][c])}}function Gs(r){if(Ot(r)){var e=r.length;if(Ot(r[0])){for(var t=[],a=0;a<e;a++)t.push(op.call(r[a]));return t}return op.call(r)}return r}function oc(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 Lk(r){return Ot(r&&r[0])?2:1}var iu=0,sc=1,rT=2,Ds=3,sp=4,lp=5,M0=6;function L0(r){return r===sp||r===lp}function ou(r){return r===sc||r===rT}var ts=[0,0,0,0],Ik=(function(){function r(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}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(e,t,a){this._needsSort=!0;var n=this.keyframes,i=n.length,o=!1,s=M0,l=t;if(Ot(t)){var u=Lk(t);s=u,(u===1&&!ke(t[0])||u===2&&!ke(t[0][0]))&&(o=!0)}else if(ke(t)&&!el(t))s=iu;else if(q(t))if(!isNaN(+t))s=iu;else{var c=sr(t);c&&(l=c,s=Ds)}else if(Af(t)){var f=G({},l);f.colorStops=U(t.colorStops,function(v){return{offset:v.offset,color:sr(v.color)}}),K2(t)?s=sp:J2(t)&&(s=lp),l=f}i===0?this.valType=s:(s!==this.valType||s===M0)&&(o=!0),this.discrete=this.discrete||o;var h={time:e,value:l,rawValue:t,percent:0};return a&&(h.easing=a,h.easingFunc=ne(a)?a:Vs[a]||Zg(a)),n.push(h),h},r.prototype.prepare=function(e,t){var a=this.keyframes;this._needsSort&&a.sort(function(p,g){return p.time-g.time});for(var n=this.valType,i=a.length,o=a[i-1],s=this.discrete,l=ou(n),u=L0(n),c=0;c<i;c++){var f=a[c],h=f.value,v=o.value;f.percent=f.time/e,s||(l&&c!==i-1?Mk(h,v,n):u&&Dk(h.colorStops,v.colorStops))}if(!s&&n!==lp&&t&&this.needsAnimate()&&t.needsAnimate()&&n===t.valType&&!t._finished){this._additiveTrack=t;for(var d=a[0].value,c=0;c<i;c++)n===iu?a[c].additiveValue=a[c].value-d:n===Ds?a[c].additiveValue=nu([],a[c].value,d,-1):ou(n)&&(a[c].additiveValue=n===sc?nu([],a[c].value,d,-1):D0([],a[c].value,d,-1))}},r.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var a=this._additiveTrack!=null,n=a?"additiveValue":"value",i=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=i===Ds,c,f=this._lastFr,h=Math.min,v,d;if(s===1)v=d=o[0];else{if(t<0)c=0;else if(t<this._lastFrP){var p=h(f+1,s-1);for(c=p;c>=0&&!(o[c].percent<=t);c--);c=h(c,s-2)}else{for(c=f;c<s&&!(o[c].percent>t);c++);c=h(c-1,s-2)}d=o[c+1],v=o[c]}if(v&&d){this._lastFr=c,this._lastFrP=t;var g=d.percent-v.percent,m=g===0?1:h((t-v.percent)/g,1);d.easingFunc&&(m=d.easingFunc(m));var y=a?this._additiveValue:u?ts:e[l];if((ou(i)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)e[l]=m<1?v.rawValue:d.rawValue;else if(ou(i))i===sc?Mh(y,v[n],d[n],m):Ak(y,v[n],d[n],m);else if(L0(i)){var x=v[n],_=d[n],b=i===sp;e[l]={type:b?"linear":"radial",x:ya(x.x,_.x,m),y:ya(x.y,_.y,m),colorStops:U(x.colorStops,function(w,C){var A=_.colorStops[C];return{offset:ya(w.offset,A.offset,m),color:oc(Mh([],w.color,A.color,m))}}),global:_.global},b?(e[l].x2=ya(x.x2,_.x2,m),e[l].y2=ya(x.y2,_.y2,m)):e[l].r=ya(x.r,_.r,m)}else if(u)Mh(y,v[n],d[n],m),a||(e[l]=oc(y));else{var S=ya(v[n],d[n],m);a?this._additiveValue=S:e[l]=S}a&&this._addToTarget(e)}}},r.prototype._addToTarget=function(e){var t=this.valType,a=this.propName,n=this._additiveValue;t===iu?e[a]=e[a]+n:t===Ds?(sr(e[a],ts),nu(ts,ts,n,1),e[a]=oc(ts)):t===sc?nu(e[a],e[a],n,1):t===rT&&D0(e[a],e[a],n,1)},r})(),Kg=(function(){function r(e,t,a,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&n){Hg("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=a}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(e){this._target=e},r.prototype.when=function(e,t,a){return this.whenWithKeys(e,t,Me(t),a)},r.prototype.whenWithKeys=function(e,t,a,n){for(var i=this._tracks,o=0;o<a.length;o++){var s=a[o],l=i[s];if(!l){l=i[s]=new Ik(s);var u=void 0,c=this._getAdditiveTrack(s);if(c){var f=c.keyframes,h=f[f.length-1];u=h&&h.value,c.valType===Ds&&u&&(u=oc(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,Gs(u),n),this._trackKeys.push(s)}l.addKeyframe(e,Gs(t[s]),n)}return this._maxTime=Math.max(this._maxTime,e),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(e){return this._maxTime=e,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,a=0;a<t;a++)e[a].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var a=0;a<t.length;a++)t[a].call(this)},r.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,a=0;a<t.length;a++)e[t[a]].setFinished()},r.prototype._getAdditiveTrack=function(e){var t,a=this._additiveAnimators;if(a)for(var n=0;n<a.length;n++){var i=a[n].getTrack(e);i&&(t=i)}return t},r.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,a=[],n=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,c=u.length;if(s.prepare(n,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var f=u[c-1];f&&(t._target[s.propName]=f.rawValue),s.setFinished()}else a.push(s)}if(a.length||this._force){var h=new dk({life:n,loop:this._loop,delay:this._delay||0,onframe:function(v){t._started=2;var d=t._additiveAnimators;if(d){for(var p=!1,g=0;g<d.length;g++)if(d[g]._clip){p=!0;break}p||(t._additiveAnimators=null)}for(var g=0;g<a.length;g++)a[g].step(t._target,v);var m=t._onframeCbs;if(m)for(var g=0;g<m.length;g++)m[g](t._target,v)},ondestroy:function(){t._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),e&&h.setEasing(e)}else this._doneCallback();return this}},r.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},r.prototype.delay=function(e){return this._delay=e,this},r.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},r.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},r.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(e){return this._tracks[e]},r.prototype.getTracks=function(){var e=this;return U(this._trackKeys,function(t){return e._tracks[t]})},r.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var a=this._tracks,n=this._trackKeys,i=0;i<e.length;i++){var o=a[e[i]];o&&!o.isFinished()&&(t?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,i=0;i<n.length;i++)if(!a[n[i]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(e,t,a){if(e){t=t||this._trackKeys;for(var n=0;n<t.length;n++){var i=t[n],o=this._tracks[i];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[a?0:s.length-1];l&&(e[i]=Gs(l.rawValue))}}}},r.prototype.__changeFinalValue=function(e,t){t=t||Me(e);for(var a=0;a<t.length;a++){var n=t[a],i=this._tracks[n];if(i){var o=i.keyframes;if(o.length>1){var s=o.pop();i.addKeyframe(s.time,e[n]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},r})();function fo(){return new Date().getTime()}var Pk=(function(r){z(e,r);function e(t){var a=r.call(this)||this;return a._running=!1,a._time=0,a._pausedTime=0,a._pauseStart=0,a._paused=!1,t=t||{},a.stage=t.stage||{},a}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var a=t.getClip();a&&this.addClip(a)},e.prototype.removeClip=function(t){if(t.animation){var a=t.prev,n=t.next;a?a.next=n:this._head=n,n?n.prev=a:this._tail=a,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var a=t.getClip();a&&this.removeClip(a),t.animation=null},e.prototype.update=function(t){for(var a=fo()-this._pausedTime,n=a-this._time,i=this._head;i;){var o=i.next,s=i.step(a,n);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=a,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function a(){t._running&&(Dc(a),!t._paused&&t.update())}Dc(a)},e.prototype.start=function(){this._running||(this._time=fo(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=fo(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=fo()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var a=t.next;t.prev=t.next=t.animation=null,t=a}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,a){a=a||{},this.start();var n=new Kg(t,a.loop);return this.addAnimator(n),n},e})(Ar),kk=300,Lh=Ae.domSupported,Ih=(function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},a=U(r,function(n){var i=n.replace("mouse","pointer");return t.hasOwnProperty(i)?i:n});return{mouse:r,touch:e,pointer:a}})(),I0={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},P0=!1;function up(r){var e=r.pointerType;return e==="pen"||e==="touch"}function Rk(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 Ph(r){r&&(r.zrByTouch=!0)}function Ek(r,e){return pr(r.dom,new Nk(r,e),!0)}function aT(r,e){for(var t=e,a=!1;t&&t.nodeType!==9&&!(a=t.domBelongToZr||t!==e&&t===r.painterRoot);)t=t.parentNode;return a}var Nk=(function(){function r(e,t){this.stopPropagation=nt,this.stopImmediatePropagation=nt,this.preventDefault=nt,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return r})(),Rr={mousedown:function(r){r=pr(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=pr(this.dom,r);var e=this.__mayPointerCapture;e&&(r.zrX!==e[0]||r.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=pr(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=pr(this.dom,r);var e=r.toElement||r.relatedTarget;aT(this,e)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){P0=!0,r=pr(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){P0||(r=pr(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=pr(this.dom,r),Ph(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Rr.mousemove.call(this,r),Rr.mousedown.call(this,r)},touchmove:function(r){r=pr(this.dom,r),Ph(r),this.handler.processGesture(r,"change"),Rr.mousemove.call(this,r)},touchend:function(r){r=pr(this.dom,r),Ph(r),this.handler.processGesture(r,"end"),Rr.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<kk&&Rr.click.call(this,r)},pointerdown:function(r){Rr.mousedown.call(this,r)},pointermove:function(r){up(r)||Rr.mousemove.call(this,r)},pointerup:function(r){Rr.mouseup.call(this,r)},pointerout:function(r){up(r)||Rr.mouseout.call(this,r)}};L(["click","dblclick","contextmenu"],function(r){Rr[r]=function(e){e=pr(this.dom,e),this.trigger(r,e)}});var cp={pointermove:function(r){up(r)||cp.mousemove.call(this,r)},pointerup:function(r){cp.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),e&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function Ok(r,e){var t=e.domHandlers;Ae.pointerEventsSupported?L(Ih.pointer,function(a){lc(e,a,function(n){t[a].call(r,n)})}):(Ae.touchEventsSupported&&L(Ih.touch,function(a){lc(e,a,function(n){t[a].call(r,n),Rk(e)})}),L(Ih.mouse,function(a){lc(e,a,function(n){n=Ug(n),e.touching||t[a].call(r,n)})}))}function Bk(r,e){Ae.pointerEventsSupported?L(I0.pointer,t):Ae.touchEventsSupported||L(I0.mouse,t);function t(a){function n(i){i=Ug(i),aT(r,i.target)||(i=Ek(r,i),e.domHandlers[a].call(r,i))}lc(e,a,n,{capture:!0})}}function lc(r,e,t,a){r.mounted[e]=t,r.listenerOpts[e]=a,Qd(r.domTarget,e,t,a)}function kh(r){var e=r.mounted;for(var t in e)e.hasOwnProperty(t)&&K5(r.domTarget,t,e[t],r.listenerOpts[t]);r.mounted={}}var k0=(function(){function r(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return r})(),zk=(function(r){z(e,r);function e(t,a){var n=r.call(this)||this;return n.__pointerCapturing=!1,n.dom=t,n.painterRoot=a,n._localHandlerScope=new k0(t,Rr),Lh&&(n._globalHandlerScope=new k0(document,cp)),Ok(n,n._localHandlerScope),n}return e.prototype.dispose=function(){kh(this._localHandlerScope),Lh&&kh(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,Lh&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var a=this._globalHandlerScope;t?Bk(this,a):kh(a)}},e})(Ar),nT=1;Ae.hasGlobalWindow&&(nT=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Rc=nT,fp=.4,hp="#333",vp="#ccc",Vk="#eee",R0=Mf,E0=5e-5;function An(r){return r>E0||r<-E0}var Dn=[],Vi=[],Rh=or(),Eh=Math.abs,_a=(function(){function r(){}return r.prototype.getLocalTransform=function(e){return r.getLocalTransform(this,e)},r.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},r.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},r.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},r.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},r.prototype.needLocalTransform=function(){return An(this.rotation)||An(this.x)||An(this.y)||An(this.scaleX-1)||An(this.scaleY-1)||An(this.skewX)||An(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),a=this.transform;if(!(t||e)){a&&(R0(a),this.invTransform=null);return}a=a||or(),t?this.getLocalTransform(a):R0(a),e&&(t?wa(a,e,a):Yg(a,e)),this.transform=a,this._resolveGlobalScaleRatio(a)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(Dn);var a=Dn[0]<0?-1:1,n=Dn[1]<0?-1:1,i=((Dn[0]-a)*t+a)/Dn[0]||0,o=((Dn[1]-n)*t+n)/Dn[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||or(),Oo(this.invTransform,e)},r.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},r.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],a=e[2]*e[2]+e[3]*e[3],n=Math.atan2(e[1],e[0]),i=Math.PI/2+n-Math.atan2(e[3],e[2]);a=Math.sqrt(a)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-n,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=a,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||or(),wa(Vi,e.invTransform,t),t=Vi);var a=this.originX,n=this.originY;(a||n)&&(Rh[4]=a,Rh[5]=n,wa(Vi,t,Rh),Vi[4]-=a,Vi[5]-=n,t=Vi),this.setLocalTransform(t)}},r.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},r.prototype.transformCoordToLocal=function(e,t){var a=[e,t],n=this.invTransform;return n&&Lt(a,a,n),a},r.prototype.transformCoordToGlobal=function(e,t){var a=[e,t],n=this.transform;return n&&Lt(a,a,n),a},r.prototype.getLineScale=function(){var e=this.transform;return e&&Eh(e[0]-1)>1e-10&&Eh(e[3]-1)>1e-10?Math.sqrt(Eh(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){iT(this,e)},r.getLocalTransform=function(e,t){t=t||[];var a=e.originX||0,n=e.originY||0,i=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,c=e.x,f=e.y,h=e.skewX?Math.tan(e.skewX):0,v=e.skewY?Math.tan(-e.skewY):0;if(a||n||s||l){var d=a+s,p=n+l;t[4]=-d*i-h*p*o,t[5]=-p*o-v*d*i}else t[4]=t[5]=0;return t[0]=i,t[3]=o,t[1]=v*i,t[2]=h*o,u&&Di(t,t,u),t[4]+=a+c,t[5]+=n+f,t},r.initDefaultProps=(function(){var e=r.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0})(),r})(),ua=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function iT(r,e){for(var t=0;t<ua.length;t++){var a=ua[t];r[a]=e[a]}}var N0={};function lr(r,e){e=e||hn;var t=N0[e];t||(t=N0[e]=new Ll(500));var a=t.get(r);return a==null&&(a=vn.measureText(r,e).width,t.put(r,a)),a}function O0(r,e,t,a){var n=lr(r,e),i=If(e),o=Ms(0,n,t),s=so(0,i,a),l=new ye(o,s,n,i);return l}function Il(r,e,t,a){var n=((r||"")+"").split(`
2
- `),i=n.length;if(i===1)return O0(n[0],e,t,a);for(var o=new ye(0,0,0,0),s=0;s<n.length;s++){var l=O0(n[s],e,t,a);s===0?o.copy(l):o.union(l)}return o}function Ms(r,e,t){return t==="right"?r-=e:t==="center"&&(r-=e/2),r}function so(r,e,t){return t==="middle"?r-=e/2:t==="bottom"&&(r-=e),r}function If(r){return lr("国",r)}function Fr(r,e){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*e:parseFloat(r):r}function Ec(r,e,t){var a=e.position||"inside",n=e.distance!=null?e.distance:5,i=t.height,o=t.width,s=i/2,l=t.x,u=t.y,c="left",f="top";if(a instanceof Array)l+=Fr(a[0],t.width),u+=Fr(a[1],t.height),c=null,f=null;else switch(a){case"left":l-=n,u+=s,c="right",f="middle";break;case"right":l+=n+o,u+=s,f="middle";break;case"top":l+=o/2,u-=n,c="center",f="bottom";break;case"bottom":l+=o/2,u+=i+n,c="center";break;case"inside":l+=o/2,u+=s,c="center",f="middle";break;case"insideLeft":l+=n,u+=s,f="middle";break;case"insideRight":l+=o-n,u+=s,c="right",f="middle";break;case"insideTop":l+=o/2,u+=n,c="center";break;case"insideBottom":l+=o/2,u+=i-n,c="center",f="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,c="right";break;case"insideBottomLeft":l+=n,u+=i-n,f="bottom";break;case"insideBottomRight":l+=o-n,u+=i-n,c="right",f="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=c,r.verticalAlign=f,r}var Nh="__zr_normal__",Oh=ua.concat(["ignore"]),Fk=sa(ua,function(r,e){return r[e]=!0,r},{ignore:!1}),Fi={},Gk=new ye(0,0,0,0),Pf=(function(){function r(e){this.id=R2(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return r.prototype._init=function(e){this.attr(e)},r.prototype.drift=function(e,t,a){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=e,n[5]+=t,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(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var a=this.textConfig,n=a.local,i=t.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=n?this:null;var u=!1;if(i.copyTransform(t),a.position!=null){var c=Gk;a.layoutRect?c.copy(a.layoutRect):c.copy(this.getBoundingRect()),n||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Fi,a,c):Ec(Fi,a,c),i.x=Fi.x,i.y=Fi.y,o=Fi.align,s=Fi.verticalAlign;var f=a.origin;if(f&&a.rotation!=null){var h=void 0,v=void 0;f==="center"?(h=c.width*.5,v=c.height*.5):(h=Fr(f[0],c.width),v=Fr(f[1],c.height)),u=!0,i.originX=-i.x+h+(n?0:c.x),i.originY=-i.y+v+(n?0:c.y)}}a.rotation!=null&&(i.rotation=a.rotation);var d=a.offset;d&&(i.x+=d[0],i.y+=d[1],u||(i.originX=-d[0],i.originY=-d[1]));var p=a.inside==null?typeof a.position=="string"&&a.position.indexOf("inside")>=0:a.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,y=void 0,x=void 0;p&&this.canBeInsideText()?(m=a.insideFill,y=a.insideStroke,(m==null||m==="auto")&&(m=this.getInsideTextFill()),(y==null||y==="auto")&&(y=this.getInsideTextStroke(m),x=!0)):(m=a.outsideFill,y=a.outsideStroke,(m==null||m==="auto")&&(m=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(m),x=!0)),m=m||"#000",(m!==g.fill||y!==g.stroke||x!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=m,g.stroke=y,g.autoStroke=x,g.align=o,g.verticalAlign=s,t.setDefaultTextStyle(g)),t.__dirty|=nr,l&&t.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(e){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?vp:hp},r.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),a=typeof t=="string"&&sr(t);a||(a=[255,255,255,1]);for(var n=a[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)a[o]=a[o]*n+(i?0:255)*(1-n);return a[3]=1,Ta(a,"rgba")},r.prototype.traverse=function(e,t){},r.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},G(this.extra,t)):this[e]=t},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(se(e))for(var a=e,n=Me(a),i=0;i<n.length;i++){var o=n[i];this.attrKV(o,e[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,a=0;a<this.animators.length;a++){var n=this.animators[a],i=n.__fromStateTransition;if(!(n.getLoop()||i&&i!==Nh)){var o=n.targetName,s=o?t[o]:t;n.saveTo(s)}}},r.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,Oh)},r.prototype._savePrimaryToNormal=function(e,t,a){for(var n=0;n<a.length;n++){var i=a[n];e[i]!=null&&!(i in t)&&(t[i]=this[i])}},r.prototype.hasState=function(){return this.currentStates.length>0},r.prototype.getState=function(e){return this.states[e]},r.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},r.prototype.clearStates=function(e){this.useState(Nh,!1,e)},r.prototype.useState=function(e,t,a,n){var i=e===Nh,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(_e(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!i){Hg("State "+e+" not exists.");return}i||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||n);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!a&&!this.__inHover&&l&&l.duration>0,l);var f=this._textContent,h=this._textGuide;return f&&f.useState(e,t,a,c),h&&h.useState(e,t,a,c),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~nr),u}}},r.prototype.useStates=function(e,t,a){if(!e.length)this.clearStates();else{var n=[],i=this.currentStates,o=e.length,s=o===i.length;if(s){for(var l=0;l<o;l++)if(e[l]!==i[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=e[l],c=void 0;this.stateProxy&&(c=this.stateProxy(u,e)),c||(c=this.states[u]),c&&n.push(c)}var f=n[o-1],h=!!(f&&f.hoverLayer||a);h&&this._toggleHoverLayerFlag(!0);var v=this._mergeStates(n),d=this.stateTransition;this.saveCurrentToNormalState(v),this._applyStateObj(e.join(","),v,this._normalState,!1,!t&&!this.__inHover&&d&&d.duration>0,d);var p=this._textContent,g=this._textGuide;p&&p.useStates(e,t,h),g&&g.useStates(e,t,h),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~nr)}},r.prototype.isSilent=function(){for(var e=this.silent,t=this.parent;!e&&t;){if(t.silent){e=!0;break}t=t.parent}return e},r.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},r.prototype.removeState=function(e){var t=_e(this.currentStates,e);if(t>=0){var a=this.currentStates.slice();a.splice(t,1),this.useStates(a)}},r.prototype.replaceState=function(e,t,a){var n=this.currentStates.slice(),i=_e(n,e),o=_e(n,t)>=0;i>=0?o?n.splice(i,1):n[i]=t:a&&!o&&n.push(t),this.useStates(n)},r.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},r.prototype._mergeStates=function(e){for(var t={},a,n=0;n<e.length;n++){var i=e[n];G(t,i),i.textConfig&&(a=a||{},G(a,i.textConfig))}return a&&(t.textConfig=a),t},r.prototype._applyStateObj=function(e,t,a,n,i,o){var s=!(t&&n);t&&t.textConfig?(this.textConfig=G({},n?this.textConfig:a.textConfig),G(this.textConfig,t.textConfig)):s&&a.textConfig&&(this.textConfig=a.textConfig);for(var l={},u=!1,c=0;c<Oh.length;c++){var f=Oh[c],h=i&&Fk[f];t&&t[f]!=null?h?(u=!0,l[f]=t[f]):this[f]=t[f]:s&&a[f]!=null&&(h?(u=!0,l[f]=a[f]):this[f]=a[f])}if(!i)for(var c=0;c<this.animators.length;c++){var v=this.animators[c],d=v.targetName;v.getLoop()||v.__changeFinalValue(d?(t||a)[d]:t||a)}u&&this._transitionState(e,l,o)},r.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},r.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},r.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new _a,this._attachComponent(e),this._textContent=e,this.markRedraw())},r.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),G(this.textConfig,e),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=nr;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,a=this._textGuide;t&&(t.__inHover=e),a&&(a.__inHover=e)},r.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var a=0;a<t.length;a++)e.animation.addAnimator(t[a]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},r.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var a=0;a<t.length;a++)e.animation.removeAnimator(t[a]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},r.prototype.animate=function(e,t,a){var n=e?this[e]:this,i=new Kg(n,t,a);return e&&(i.targetName=e),this.addAnimator(i,e),i},r.prototype.addAnimator=function(e,t){var a=this.__zr,n=this;e.during(function(){n.updateDuringAnimation(t)}).done(function(){var i=n.animators,o=_e(i,e);o>=0&&i.splice(o,1)}),this.animators.push(e),a&&a.animation.addAnimator(e),a&&a.wakeUp()},r.prototype.updateDuringAnimation=function(e){this.markRedraw()},r.prototype.stopAnimation=function(e,t){for(var a=this.animators,n=a.length,i=[],o=0;o<n;o++){var s=a[o];!e||e===s.scope?s.stop(t):i.push(s)}return this.animators=i,this},r.prototype.animateTo=function(e,t,a){Bh(this,e,t,a)},r.prototype.animateFrom=function(e,t,a){Bh(this,e,t,a,!0)},r.prototype._transitionState=function(e,t,a,n){for(var i=Bh(this,t,a,n),o=0;o<i.length;o++)i[o].__fromStateTransition=e},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=(function(){var e=r.prototype;e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=nr;function t(a,n,i,o){Object.defineProperty(e,a,{get:function(){if(!this[n]){var l=this[n]=[];s(this,l)}return this[n]},set:function(l){this[i]=l[0],this[o]=l[1],this[n]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[i]},set:function(c){l[i]=c}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(c){l[o]=c}})}}Object.defineProperty&&(t("position","_legacyPos","x","y"),t("scale","_legacyScale","scaleX","scaleY"),t("origin","_legacyOrigin","originX","originY"))})(),r})();ut(Pf,Ar);ut(Pf,_a);function Bh(r,e,t,a,n){t=t||{};var i=[];oT(r,"",r,e,t,a,i,n);var o=i.length,s=!1,l=t.done,u=t.aborted,c=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},f=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),i.length>0&&t.during&&i[0].during(function(d,p){t.during(p)});for(var h=0;h<i.length;h++){var v=i[h];c&&v.done(c),f&&v.aborted(f),t.force&&v.duration(t.duration),v.start(t.easing)}return i}function zh(r,e,t){for(var a=0;a<t;a++)r[a]=e[a]}function Hk(r){return Ot(r[0])}function jk(r,e,t){if(Ot(e[t]))if(Ot(r[t])||(r[t]=[]),tr(e[t])){var a=e[t].length;r[t].length!==a&&(r[t]=new e[t].constructor(a),zh(r[t],e[t],a))}else{var n=e[t],i=r[t],o=n.length;if(Hk(n))for(var s=n[0].length,l=0;l<o;l++)i[l]?zh(i[l],n[l],s):i[l]=Array.prototype.slice.call(n[l]);else zh(i,n,o);i.length=n.length}else r[t]=e[t]}function Wk(r,e){return r===e||Ot(r)&&Ot(e)&&$k(r,e)}function $k(r,e){var t=r.length;if(t!==e.length)return!1;for(var a=0;a<t;a++)if(r[a]!==e[a])return!1;return!0}function oT(r,e,t,a,n,i,o,s){for(var l=Me(a),u=n.duration,c=n.delay,f=n.additive,h=n.setToFinal,v=!se(i),d=r.animators,p=[],g=0;g<l.length;g++){var m=l[g],y=a[m];if(y!=null&&t[m]!=null&&(v||i[m]))if(se(y)&&!Ot(y)&&!Af(y)){if(e){s||(t[m]=y,r.updateDuringAnimation(e));continue}oT(r,m,t[m],y,n,i&&i[m],o,s)}else p.push(m);else s||(t[m]=y,r.updateDuringAnimation(e),p.push(m))}var x=p.length;if(!f&&x)for(var _=0;_<d.length;_++){var b=d[_];if(b.targetName===e){var S=b.stopTracks(p);if(S){var w=_e(d,b);d.splice(w,1)}}}if(n.force||(p=ze(p,function(M){return!Wk(a[M],t[M])}),x=p.length),x>0||n.force&&!o.length){var C=void 0,A=void 0,D=void 0;if(s){A={},h&&(C={});for(var _=0;_<x;_++){var m=p[_];A[m]=t[m],h?C[m]=a[m]:t[m]=a[m]}}else if(h){D={};for(var _=0;_<x;_++){var m=p[_];D[m]=Gs(t[m]),jk(t,a,m)}}var b=new Kg(t,!1,!1,f?ze(d,function(I){return I.targetName===e}):null);b.targetName=e,n.scope&&(b.scope=n.scope),h&&C&&b.whenWithKeys(0,C,p),D&&b.whenWithKeys(0,D,p),b.whenWithKeys(u??500,s?A:a,p).delay(c||0),r.addAnimator(b,e),o.push(b)}}var ue=(function(r){z(e,r);function e(t){var a=r.call(this)||this;return a.isGroup=!0,a._children=[],a.attr(t),a}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var a=this._children,n=0;n<a.length;n++)if(a[n].name===t)return a[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},e.prototype.addBefore=function(t,a){if(t&&t!==this&&t.parent!==this&&a&&a.parent===this){var n=this._children,i=n.indexOf(a);i>=0&&(n.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,a){var n=_e(this._children,t);return n>=0&&this.replaceAt(a,n),this},e.prototype.replaceAt=function(t,a){var n=this._children,i=n[a];if(t&&t!==this&&t.parent!==this&&t!==i){n[a]=t,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var a=this.__zr;a&&a!==t.__zr&&t.addSelfToZr(a),a&&a.refresh()},e.prototype.remove=function(t){var a=this.__zr,n=this._children,i=_e(n,t);return i<0?this:(n.splice(i,1),t.parent=null,a&&t.removeSelfFromZr(a),a&&a.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,a=this.__zr,n=0;n<t.length;n++){var i=t[n];a&&i.removeSelfFromZr(a),i.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,a){for(var n=this._children,i=0;i<n.length;i++){var o=n[i];t.call(a,o,i)}return this},e.prototype.traverse=function(t,a){for(var n=0;n<this._children.length;n++){var i=this._children[n],o=t.call(a,i);i.isGroup&&!o&&i.traverse(t,a)}return this},e.prototype.addSelfToZr=function(t){r.prototype.addSelfToZr.call(this,t);for(var a=0;a<this._children.length;a++){var n=this._children[a];n.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){r.prototype.removeSelfFromZr.call(this,t);for(var a=0;a<this._children.length;a++){var n=this._children[a];n.removeSelfFromZr(t)}},e.prototype.getBoundingRect=function(t){for(var a=new ye(0,0,0,0),n=t||this._children,i=[],o=null,s=0;s<n.length;s++){var l=n[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),c=l.getLocalTransform(i);c?(ye.applyTransform(a,u,c),o=o||a.clone(),o.union(a)):(o=o||u.clone(),o.union(u))}}return o||a},e})(Pf);ue.prototype.type="group";var uc={},sT={};function Uk(r){delete sT[r]}function Yk(r){if(!r)return!1;if(typeof r=="string")return Pc(r,1)<fp;if(r.colorStops){for(var e=r.colorStops,t=0,a=e.length,n=0;n<a;n++)t+=Pc(e[n].color,1);return t/=a,t<fp}return!1}var Xk=(function(){function r(e,t,a){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,a=a||{},this.dom=t,this.id=e;var i=new uk,o=a.renderer||"canvas";uc[o]||(o=Me(uc)[0]),a.useDirtyRect=a.useDirtyRect==null?!1:a.useDirtyRect;var s=new uc[o](t,i,a,e),l=a.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!Ae.node&&!Ae.worker&&!l?new zk(s.getViewportRoot(),s.root):null,c=a.useCoarsePointer,f=c==null||c==="auto"?Ae.touchEventsSupported:!!c,h=44,v;f&&(v=fe(a.pointerSize,h)),this.handler=new V2(i,s,u,s.root,v),this.animation=new Pk({stage:{update:l?null:function(){return n._flush(!0)}}}),l||this.animation.start()}return r.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},r.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},r.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=Yk(e))},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(e){this._darkMode=e},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(e){this._disposed||(e||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(e){var t,a=fo();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var n=fo();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:n-a})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},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(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.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(e){this._disposed||this.handler.setCursorStyle(e)},r.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},r.prototype.on=function(e,t,a){return this._disposed||this.handler.on(e,t,a),this},r.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},r.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},r.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof ue&&e[t].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,Uk(this.id))},r})();function B0(r,e){var t=new Xk(R2(),r,e);return sT[t.id]=t,t}function Zk(r,e){uc[r]=e}var dp;function qk(r){if(typeof dp=="function")return dp(r)}function Kk(r){dp=r}var z0=1e-4,lT=20;function Jk(r){return r.replace(/^\s+|\s+$/g,"")}function Fe(r,e,t,a){var n=e[0],i=e[1],o=t[0],s=t[1],l=i-n,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(a)if(l>0){if(r<=n)return o;if(r>=i)return s}else{if(r>=n)return o;if(r<=i)return s}else{if(r===n)return o;if(r===i)return s}return(r-n)/l*u+o}function X(r,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 q(r)?Jk(r).match(/%$/)?parseFloat(r)/100*e:parseFloat(r):r==null?NaN:+r}function tt(r,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),lT),r=(+r).toFixed(e),t?r:+r}function wr(r){return r.sort(function(e,t){return e-t}),r}function ta(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(r*e)/e===r)return t}return Qk(r)}function Qk(r){var e=r.toString().toLowerCase(),t=e.indexOf("e"),a=t>0?+e.slice(t+1):0,n=t>0?t:e.length,i=e.indexOf("."),o=i<0?0:n-1-i;return Math.max(0,o-a)}function uT(r,e){var t=Math.log,a=Math.LN10,n=Math.floor(t(r[1]-r[0])/a),i=Math.round(t(Math.abs(e[1]-e[0]))/a),o=Math.min(Math.max(-n+i,0),20);return isFinite(o)?o:20}function e3(r,e){var t=sa(r,function(v,d){return v+(isNaN(d)?0:d)},0);if(t===0)return[];for(var a=Math.pow(10,e),n=U(r,function(v){return(isNaN(v)?0:v)/t*a*100}),i=a*100,o=U(n,function(v){return Math.floor(v)}),s=sa(o,function(v,d){return v+d},0),l=U(n,function(v,d){return v-o[d]});s<i;){for(var u=Number.NEGATIVE_INFINITY,c=null,f=0,h=l.length;f<h;++f)l[f]>u&&(u=l[f],c=f);++o[c],l[c]=0,++s}return U(o,function(v){return v/a})}function t3(r,e){var t=Math.max(ta(r),ta(e)),a=r+e;return t>lT?a:tt(a,t)}var V0=9007199254740991;function cT(r){var e=Math.PI*2;return(r%e+e)%e}function il(r){return r>-z0&&r<z0}var r3=/^(?:(\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 ca(r){if(r instanceof Date)return r;if(q(r)){var e=r3.exec(r);if(!e)return new Date(NaN);if(e[8]){var t=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(t-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,t,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(r==null)return new Date(NaN);return new Date(Math.round(r))}function a3(r){return Math.pow(10,Jg(r))}function Jg(r){if(r===0)return 0;var e=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,e)>=10&&e++,e}function fT(r,e){var t=Jg(r),a=Math.pow(10,t),n=r/a,i;return n<1.5?i=1:n<2.5?i=2:n<4?i=3:n<7?i=5:i=10,r=i*a,t>=-20?+r.toFixed(t<0?-t:0):r}function Vh(r,e){var t=(r.length-1)*e+1,a=Math.floor(t),n=+r[a-1],i=t-a;return i?n+i*(r[a]-n):n}function F0(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,a=0;a<r.length;){for(var n=r[a].interval,i=r[a].close,o=0;o<2;o++)n[o]<=e&&(n[o]=e,i[o]=o?1:1-t),e=n[o],t=i[o];n[0]===n[1]&&i[0]*i[1]!==1?r.splice(a,1):a++}return r;function s(l,u,c){return l.interval[c]<u.interval[c]||l.interval[c]===u.interval[c]&&(l.close[c]-u.close[c]===(c?-1:1)||!c&&s(l,u,1))}}function Ma(r){var e=parseFloat(r);return e==r&&(e!==0||!q(r)||r.indexOf("x")<=0)?e:NaN}function hT(r){return!isNaN(Ma(r))}function vT(){return Math.round(Math.random()*9)}function dT(r,e){return e===0?r:dT(e,r%e)}function G0(r,e){return r==null?e:e==null?r:r*e/dT(r,e)}function Be(r){throw new Error(r)}function H0(r,e,t){return(e-r)*t+r}var pT="series\0",gT="\0_ec_\0";function je(r){return r instanceof Array?r:r==null?[]:[r]}function xi(r,e,t){if(r){r[e]=r[e]||{},r.emphasis=r.emphasis||{},r.emphasis[e]=r.emphasis[e]||{};for(var a=0,n=t.length;a<n;a++){var i=t[a];!r.emphasis[e].hasOwnProperty(i)&&r[e].hasOwnProperty(i)&&(r.emphasis[e][i]=r[e][i])}}}var j0=["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 Bo(r){return se(r)&&!W(r)&&!(r instanceof Date)?r.value:r}function n3(r){return se(r)&&!(r instanceof Array)}function mT(r,e,t){var a=t==="normalMerge",n=t==="replaceMerge",i=t==="replaceAll";r=r||[],e=(e||[]).slice();var o=re();L(e,function(l,u){if(!se(l)){e[u]=null;return}});var s=i3(r,o,t);return(a||n)&&o3(s,r,o,e),a&&s3(s,e),a||n?l3(s,e,n):i&&u3(s,e),c3(s),s}function i3(r,e,t){var a=[];if(t==="replaceAll")return a;for(var n=0;n<r.length;n++){var i=r[n];i&&i.id!=null&&e.set(i.id,n),a.push({existing:t==="replaceMerge"||ol(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return a}function o3(r,e,t,a){L(a,function(n,i){if(!(!n||n.id==null)){var o=Hs(n.id),s=t.get(o);if(s!=null){var l=r[s];$t(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=n,l.existing=e[s],a[i]=null}}})}function s3(r,e){L(e,function(t,a){if(!(!t||t.name==null))for(var n=0;n<r.length;n++){var i=r[n].existing;if(!r[n].newOption&&i&&(i.id==null||t.id==null)&&!ol(t)&&!ol(i)&&yT("name",i,t)){r[n].newOption=t,e[a]=null;return}}})}function l3(r,e,t){L(e,function(a){if(a){for(var n,i=0;(n=r[i])&&(n.newOption||ol(n.existing)||n.existing&&a.id!=null&&!yT("id",a,n.existing));)i++;n?(n.newOption=a,n.brandNew=t):r.push({newOption:a,brandNew:t,existing:null,keyInfo:null}),i++}})}function u3(r,e){L(e,function(t){r.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function c3(r){var e=re();L(r,function(t){var a=t.existing;a&&e.set(a.id,t)}),L(r,function(t){var a=t.newOption;$t(!a||a.id==null||!e.get(a.id)||e.get(a.id)===t,"id duplicates: "+(a&&a.id)),a&&a.id!=null&&e.set(a.id,t),!t.keyInfo&&(t.keyInfo={})}),L(r,function(t,a){var n=t.existing,i=t.newOption,o=t.keyInfo;if(se(i)){if(o.name=i.name!=null?Hs(i.name):n?n.name:pT+a,n)o.id=Hs(n.id);else if(i.id!=null)o.id=Hs(i.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,t)}})}function yT(r,e,t){var a=pt(e[r],null),n=pt(t[r],null);return a!=null&&n!=null&&a===n}function Hs(r){return pt(r,"")}function pt(r,e){return r==null?e:q(r)?r:ke(r)||Ud(r)?r+"":e}function Qg(r){var e=r.name;return!!(e&&e.indexOf(pT))}function ol(r){return r&&r.id!=null&&Hs(r.id).indexOf(gT)===0}function f3(r){return gT+r}function h3(r,e,t){L(r,function(a){var n=a.newOption;se(n)&&(a.keyInfo.mainType=e,a.keyInfo.subType=v3(e,n,a.existing,t))})}function v3(r,e,t,a){var n=e.type?e.type:t?t.subType:a.determineSubType(r,e);return n}function d3(r,e){var t={},a={};return n(r||[],t),n(e||[],a,t),[i(t),i(a)];function n(o,s,l){for(var u=0,c=o.length;u<c;u++){var f=pt(o[u].seriesId,null);if(f==null)return;for(var h=je(o[u].dataIndex),v=l&&l[f],d=0,p=h.length;d<p;d++){var g=h[d];v&&v[g]?v[g]=null:(s[f]||(s[f]={}))[g]=1}}}function i(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var c=i(o[u],!0);c.length&&l.push({seriesId:u,dataIndex:c})}return l}}function _i(r,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return W(e.dataIndex)?U(e.dataIndex,function(t){return r.indexOfRawIndex(t)}):r.indexOfRawIndex(e.dataIndex);if(e.name!=null)return W(e.name)?U(e.name,function(t){return r.indexOfName(t)}):r.indexOfName(e.name)}function Ie(){var r="__ec_inner_"+p3++;return function(e){return e[r]||(e[r]={})}}var p3=vT();function js(r,e,t){var a=em(e,t),n=a.mainTypeSpecified,i=a.queryOptionMap,o=a.others,s=o,l=t?t.defaultMainType:null;return!n&&l&&i.set(l,{}),i.each(function(u,c){var f=Pl(r,c,u,{useDefault:l===c,enableAll:t&&t.enableAll!=null?t.enableAll:!0,enableNone:t&&t.enableNone!=null?t.enableNone:!0});s[c+"Models"]=f.models,s[c+"Model"]=f.models[0]}),s}function em(r,e){var t;if(q(r)){var a={};a[r+"Index"]=0,t=a}else t=r;var n=re(),i={},o=!1;return L(t,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){i[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],c=u[1],f=(u[2]||"").toLowerCase();if(!(!c||!f||e&&e.includeMainTypes&&_e(e.includeMainTypes,c)<0)){o=o||!!c;var h=n.get(c)||n.set(c,{});h[f]=s}}),{mainTypeSpecified:o,queryOptionMap:n,others:i}}var st={useDefault:!0,enableAll:!1,enableNone:!1},g3={useDefault:!1,enableAll:!0,enableNone:!0};function Pl(r,e,t,a){a=a||st;var n=t.index,i=t.id,o=t.name,s={models:null,specified:n!=null||i!=null||o!=null};if(!s.specified){var l=void 0;return s.models=a.useDefault&&(l=r.getComponent(e))?[l]:[],s}return n==="none"||n===!1?($t(a.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(n==="all"&&($t(a.enableAll,'`"all"` is not a valid value on index option.'),n=i=o=null),s.models=r.queryComponents({mainType:e,index:n,id:i,name:o}),s)}function xT(r,e,t){r.setAttribute?r.setAttribute(e,t):r[e]=t}function m3(r,e){return r.getAttribute?r.getAttribute(e):r[e]}function y3(r){return r==="auto"?Ae.domSupported?"html":"richText":r||"html"}function pp(r,e){var t=re(),a=[];return L(r,function(n){var i=e(n);(t.get(i)||(a.push(i),t.set(i,[]))).push(n)}),{keys:a,buckets:t}}function _T(r,e,t,a,n){var i=e==null||e==="auto";if(a==null)return a;if(ke(a)){var o=H0(t||0,a,n);return tt(o,i?Math.max(ta(t||0),ta(a)):e)}else{if(q(a))return n<1?t:a;for(var s=[],l=t,u=a,c=Math.max(l?l.length:0,u.length),f=0;f<c;++f){var h=r.getDimensionInfo(f);if(h&&h.type==="ordinal")s[f]=(n<1&&l?l:u)[f];else{var v=l&&l[f]?l[f]:0,d=u[f],o=H0(v,d,n);s[f]=tt(o,i?Math.max(ta(v),ta(d)):e)}}return s}}var x3=".",Mn="___EC__COMPONENT__CONTAINER___",bT="___EC__EXTENDED_CLASS___";function ra(r){var e={main:"",sub:""};if(r){var t=r.split(x3);e.main=t[0]||"",e.sub=t[1]||""}return e}function _3(r){$t(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function b3(r){return!!(r&&r[bT])}function tm(r,e){r.$constructor=r,r.extend=function(t){var a=this,n;return S3(a)?n=(function(i){z(o,i);function o(){return i.apply(this,arguments)||this}return o})(a):(n=function(){(t.$constructor||a).apply(this,arguments)},I5(n,this)),G(n.prototype,t),n[bT]=!0,n.extend=this.extend,n.superCall=C3,n.superApply=A3,n.superClass=a,n}}function S3(r){return ne(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function ST(r,e){r.extend=e.extend}var w3=Math.round(Math.random()*10);function T3(r){var e=["__\0is_clz",w3++].join("_");r.prototype[e]=!0,r.isInstance=function(t){return!!(t&&t[e])}}function C3(r,e){for(var t=[],a=2;a<arguments.length;a++)t[a-2]=arguments[a];return this.superClass.prototype[e].apply(r,t)}function A3(r,e,t){return this.superClass.prototype[e].apply(r,t)}function kf(r){var e={};r.registerClass=function(a){var n=a.type||a.prototype.type;if(n){_3(n),a.prototype.type=n;var i=ra(n);if(!i.sub)e[i.main]=a;else if(i.sub!==Mn){var o=t(i);o[i.sub]=a}}return a},r.getClass=function(a,n,i){var o=e[a];if(o&&o[Mn]&&(o=n?o[n]:null),i&&!o)throw new Error(n?"Component "+a+"."+(n||"")+" is used but not imported.":a+".type should be specified.");return o},r.getClassesByMainType=function(a){var n=ra(a),i=[],o=e[n.main];return o&&o[Mn]?L(o,function(s,l){l!==Mn&&i.push(s)}):i.push(o),i},r.hasClass=function(a){var n=ra(a);return!!e[n.main]},r.getAllClassMainTypes=function(){var a=[];return L(e,function(n,i){a.push(i)}),a},r.hasSubTypes=function(a){var n=ra(a),i=e[n.main];return i&&i[Mn]};function t(a){var n=e[a.main];return(!n||!n[Mn])&&(n=e[a.main]={},n[Mn]=!0),n}}function bi(r,e){for(var t=0;t<r.length;t++)r[t][1]||(r[t][1]=r[t][0]);return e=e||!1,function(a,n,i){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(n&&_e(n,l)>=0||i&&_e(i,l)<0)){var u=a.getShallow(l,e);u!=null&&(o[r[s][0]]=u)}}return o}}var D3=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],M3=bi(D3),L3=(function(){function r(){}return r.prototype.getAreaStyle=function(e,t){return M3(this,e,t)},r})(),gp=new Ll(50);function I3(r){if(typeof r=="string"){var e=gp.get(r);return e&&e.image}else return r}function rm(r,e,t,a,n){if(r)if(typeof r=="string"){if(e&&e.__zrImageSrc===r||!t)return e;var i=gp.get(r),o={hostEl:t,cb:a,cbPayload:n};return i?(e=i.image,!Rf(e)&&i.pending.push(o)):(e=vn.loadImage(r,W0,W0),e.__zrImageSrc=r,gp.put(r,e.__cachedImgObj={image:e,pending:[o]})),e}else return r;else return e}function W0(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<r.pending.length;e++){var t=r.pending[e],a=t.cb;a&&a(this,t.cbPayload),t.hostEl.dirty()}r.pending.length=0}function Rf(r){return r&&r.width&&r.height}var Fh=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function P3(r,e,t,a,n,i){if(!t){r.text="",r.isTruncated=!1;return}var o=(e+"").split(`
3
- `);i=wT(t,a,n,i);for(var s=!1,l={},u=0,c=o.length;u<c;u++)TT(l,o[u],i),o[u]=l.textLine,s=s||l.isTruncated;r.text=o.join(`
4
- `),r.isTruncated=s}function wT(r,e,t,a){a=a||{};var n=G({},a);n.font=e,t=fe(t,"..."),n.maxIterations=fe(a.maxIterations,2);var i=n.minChar=fe(a.minChar,0);n.cnCharWidth=lr("国",e);var o=n.ascCharWidth=lr("a",e);n.placeholder=fe(a.placeholder,"");for(var s=r=Math.max(0,r-1),l=0;l<i&&s>=o;l++)s-=o;var u=lr(t,e);return u>s&&(t="",u=0),s=r-u,n.ellipsis=t,n.ellipsisWidth=u,n.contentWidth=s,n.containerWidth=r,n}function TT(r,e,t){var a=t.containerWidth,n=t.font,i=t.contentWidth;if(!a){r.textLine="",r.isTruncated=!1;return}var o=lr(e,n);if(o<=a){r.textLine=e,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=i||s>=t.maxIterations){e+=t.ellipsis;break}var l=s===0?k3(e,i,t.ascCharWidth,t.cnCharWidth):o>0?Math.floor(e.length*i/o):0;e=e.substr(0,l),o=lr(e,n)}e===""&&(e=t.placeholder),r.textLine=e,r.isTruncated=!0}function k3(r,e,t,a){for(var n=0,i=0,o=r.length;i<o&&n<e;i++){var s=r.charCodeAt(i);n+=0<=s&&s<=127?t:a}return i}function R3(r,e){r!=null&&(r+="");var t=e.overflow,a=e.padding,n=e.font,i=t==="truncate",o=If(n),s=fe(e.lineHeight,o),l=!!e.backgroundColor,u=e.lineOverflow==="truncate",c=!1,f=e.width,h;f!=null&&(t==="break"||t==="breakAll")?h=r?CT(r,e.font,f,t==="breakAll",0).lines:[]:h=r?r.split(`
5
- `):[];var v=h.length*s,d=fe(e.height,v);if(v>d&&u){var p=Math.floor(d/s);c=c||h.length>p,h=h.slice(0,p)}if(r&&i&&f!=null)for(var g=wT(f,n,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),m={},y=0;y<h.length;y++)TT(m,h[y],g),h[y]=m.textLine,c=c||m.isTruncated;for(var x=d,_=0,y=0;y<h.length;y++)_=Math.max(lr(h[y],n),_);f==null&&(f=_);var b=_;return a&&(x+=a[0]+a[2],b+=a[1]+a[3],f+=a[1]+a[3]),l&&(b=f),{lines:h,height:d,outerWidth:b,outerHeight:x,lineHeight:s,calculatedLineHeight:o,contentWidth:_,contentHeight:v,width:f,isTruncated:c}}var E3=(function(){function r(){}return r})(),$0=(function(){function r(e){this.tokens=[],e&&(this.tokens=e)}return r})(),N3=(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 O3(r,e){var t=new N3;if(r!=null&&(r+=""),!r)return t;for(var a=e.width,n=e.height,i=e.overflow,o=(i==="break"||i==="breakAll")&&a!=null?{width:a,accumWidth:0,breakAll:i==="breakAll"}:null,s=Fh.lastIndex=0,l;(l=Fh.exec(r))!=null;){var u=l.index;u>s&&Gh(t,r.substring(s,u),e,o),Gh(t,l[2],e,o,l[1]),s=Fh.lastIndex}s<r.length&&Gh(t,r.substring(s,r.length),e,o);var c=[],f=0,h=0,v=e.padding,d=i==="truncate",p=e.lineOverflow==="truncate",g={};function m(F,H,Y){F.width=H,F.lineHeight=Y,f+=Y,h=Math.max(h,H)}e:for(var y=0;y<t.lines.length;y++){for(var x=t.lines[y],_=0,b=0,S=0;S<x.tokens.length;S++){var w=x.tokens[S],C=w.styleName&&e.rich[w.styleName]||{},A=w.textPadding=C.padding,D=A?A[1]+A[3]:0,M=w.font=C.font||e.font;w.contentHeight=If(M);var I=fe(C.height,w.contentHeight);if(w.innerHeight=I,A&&(I+=A[0]+A[2]),w.height=I,w.lineHeight=ia(C.lineHeight,e.lineHeight,I),w.align=C&&C.align||e.align,w.verticalAlign=C&&C.verticalAlign||"middle",p&&n!=null&&f+w.lineHeight>n){var P=t.lines.length;S>0?(x.tokens=x.tokens.slice(0,S),m(x,b,_),t.lines=t.lines.slice(0,y+1)):t.lines=t.lines.slice(0,y),t.isTruncated=t.isTruncated||t.lines.length<P;break e}var k=C.width,R=k==null||k==="auto";if(typeof k=="string"&&k.charAt(k.length-1)==="%")w.percentWidth=k,c.push(w),w.contentWidth=lr(w.text,M);else{if(R){var E=C.backgroundColor,B=E&&E.image;B&&(B=I3(B),Rf(B)&&(w.width=Math.max(w.width,B.width*I/B.height)))}var O=d&&a!=null?a-b:null;O!=null&&O<w.width?!R||O<D?(w.text="",w.width=w.contentWidth=0):(P3(g,w.text,O-D,M,e.ellipsis,{minChar:e.truncateMinChar}),w.text=g.text,t.isTruncated=t.isTruncated||g.isTruncated,w.width=w.contentWidth=lr(w.text,M)):w.contentWidth=lr(w.text,M)}w.width+=D,b+=w.width,C&&(_=Math.max(_,w.lineHeight))}m(x,b,_)}t.outerWidth=t.width=fe(a,h),t.outerHeight=t.height=fe(n,f),t.contentHeight=f,t.contentWidth=h,v&&(t.outerWidth+=v[1]+v[3],t.outerHeight+=v[0]+v[2]);for(var y=0;y<c.length;y++){var w=c[y],V=w.percentWidth;w.width=parseInt(V,10)/100*t.width}return t}function Gh(r,e,t,a,n){var i=e==="",o=n&&t.rich[n]||{},s=r.lines,l=o.font||t.font,u=!1,c,f;if(a){var h=o.padding,v=h?h[1]+h[3]:0;if(o.width!=null&&o.width!=="auto"){var d=Fr(o.width,a.width)+v;s.length>0&&d+a.accumWidth>a.width&&(c=e.split(`
6
- `),u=!0),a.accumWidth=d}else{var p=CT(e,l,a.width,a.breakAll,a.accumWidth);a.accumWidth=p.accumWidth+v,f=p.linesWidths,c=p.lines}}else c=e.split(`
7
- `);for(var g=0;g<c.length;g++){var m=c[g],y=new E3;if(y.styleName=n,y.text=m,y.isLineHolder=!m&&!i,typeof o.width=="number"?y.width=o.width:y.width=f?f[g]:lr(m,l),!g&&!u){var x=(s[s.length-1]||(s[0]=new $0)).tokens,_=x.length;_===1&&x[0].isLineHolder?x[0]=y:(m||!_||i)&&x.push(y)}else s.push(new $0([y]))}}function B3(r){var e=r.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var z3=sa(",&?/;] ".split(""),function(r,e){return r[e]=!0,r},{});function V3(r){return B3(r)?!!z3[r]:!0}function CT(r,e,t,a,n){for(var i=[],o=[],s="",l="",u=0,c=0,f=0;f<r.length;f++){var h=r.charAt(f);if(h===`
8
- `){l&&(s+=l,c+=u),i.push(s),o.push(c),s="",l="",u=0,c=0;continue}var v=lr(h,e),d=a?!1:!V3(h);if(i.length?c+v>t:n+c+v>t){c?(s||l)&&(d?(s||(s=l,l="",u=0,c=u),i.push(s),o.push(c-u),l+=h,u+=v,s="",c=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(c),s=h,c=v)):d?(i.push(l),o.push(u),l=h,u=v):(i.push(h),o.push(v));continue}c+=v,d?(l+=h,u+=v):(l&&(s+=l,l="",u=0),s+=h)}return!i.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(i.push(s),o.push(c)),i.length===1&&(c+=n),{accumWidth:c,lines:i,linesWidths:o}}var mp="__zr_style_"+Math.round(Math.random()*10),hi={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Ef={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};hi[mp]=!0;var U0=["z","z2","invisible"],F3=["invisible"],Cr=(function(r){z(e,r);function e(t){return r.call(this,t)||this}return e.prototype._init=function(t){for(var a=Me(t),n=0;n<a.length;n++){var i=a[n];i==="style"?this.useStyle(t[i]):r.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,a,n,i){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&G3(this,t,a)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(i&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(t,a){return this.rectContain(t,a)},e.prototype.traverse=function(t,a){t.call(a,this)},e.prototype.rectContain=function(t,a){var n=this.transformCoordToLocal(t,a),i=this.getBoundingRect();return i.contain(n[0],n[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var a=this.transform,n=this.getBoundingRect(),i=this.style,o=i.shadowBlur||0,s=i.shadowOffsetX||0,l=i.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new ye(0,0,0,0)),a?ye.applyTransform(t,n,a):t.copy(n),(o||s||l)&&(t.width+=o*2+Math.abs(s),t.height+=o*2+Math.abs(l),t.x=Math.min(t.x,t.x+s-o),t.y=Math.min(t.y,t.y+l-o));var u=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-u),t.y=Math.floor(t.y-u),t.width=Math.ceil(t.width+1+u*2),t.height=Math.ceil(t.height+1+u*2))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new ye(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(t,a){t!=="style"?r.prototype.attrKV.call(this,t,a):this.style?this.setStyle(a):this.useStyle(a)},e.prototype.setStyle=function(t,a){return typeof t=="string"?this.style[t]=a:G(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=As,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&As)},e.prototype.styleUpdated=function(){this.__dirty&=~As},e.prototype.createStyle=function(t){return Df(hi,t)},e.prototype.useStyle=function(t){t[mp]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[mp]},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var a=this._normalState;t.style&&!a.style&&(a.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,a,U0)},e.prototype._applyStateObj=function(t,a,n,i,o,s){r.prototype._applyStateObj.call(this,t,a,n,i,o,s);var l=!(a&&i),u;if(a&&a.style?o?i?u=a.style:(u=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(u,a.style)):(u=this._mergeStyle(this.createStyle(),i?this.style:n.style),this._mergeStyle(u,a.style)):l&&(u=n.style),u)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var f=Me(c),h=0;h<f.length;h++){var v=f[h];v in u&&(u[v]=u[v],this.style[v]=c[v])}for(var d=Me(u),h=0;h<d.length;h++){var v=d[h];this.style[v]=this.style[v]}this._transitionState(t,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var p=this.__inHover?F3:U0,h=0;h<p.length;h++){var v=p[h];a&&a[v]!=null?this[v]=a[v]:l&&n[v]!=null&&(this[v]=n[v])}},e.prototype._mergeStates=function(t){for(var a=r.prototype._mergeStates.call(this,t),n,i=0;i<t.length;i++){var o=t[i];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(a.style=n),a},e.prototype._mergeStyle=function(t,a){return G(t,a),t},e.prototype.getAnimationStyleProps=function(){return Ef},e.initDefaultProps=(function(){var t=e.prototype;t.type="displayable",t.invisible=!1,t.z=0,t.z2=0,t.zlevel=0,t.culling=!1,t.cursor="pointer",t.rectHover=!1,t.incremental=!1,t._rect=null,t.dirtyRectTolerance=0,t.__dirty=nr|As})(),e})(Pf),Hh=new ye(0,0,0,0),jh=new ye(0,0,0,0);function G3(r,e,t){return Hh.copy(r.getBoundingRect()),r.transform&&Hh.applyTransform(r.transform),jh.width=e,jh.height=t,!Hh.intersect(jh)}var Jt=Math.min,Qt=Math.max,Wh=Math.sin,$h=Math.cos,Ln=Math.PI*2,su=Ai(),lu=Ai(),uu=Ai();function Nf(r,e,t){if(r.length!==0){for(var a=r[0],n=a[0],i=a[0],o=a[1],s=a[1],l=1;l<r.length;l++)a=r[l],n=Jt(n,a[0]),i=Qt(i,a[0]),o=Jt(o,a[1]),s=Qt(s,a[1]);e[0]=n,e[1]=o,t[0]=i,t[1]=s}}function Y0(r,e,t,a,n,i){n[0]=Jt(r,t),n[1]=Jt(e,a),i[0]=Qt(r,t),i[1]=Qt(e,a)}var X0=[],Z0=[];function H3(r,e,t,a,n,i,o,s,l,u){var c=W2,f=mt,h=c(r,t,n,o,X0);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var v=0;v<h;v++){var d=f(r,t,n,o,X0[v]);l[0]=Jt(d,l[0]),u[0]=Qt(d,u[0])}h=c(e,a,i,s,Z0);for(var v=0;v<h;v++){var p=f(e,a,i,s,Z0[v]);l[1]=Jt(p,l[1]),u[1]=Qt(p,u[1])}l[0]=Jt(r,l[0]),u[0]=Qt(r,u[0]),l[0]=Jt(o,l[0]),u[0]=Qt(o,u[0]),l[1]=Jt(e,l[1]),u[1]=Qt(e,u[1]),l[1]=Jt(s,l[1]),u[1]=Qt(s,u[1])}function j3(r,e,t,a,n,i,o,s){var l=U2,u=Tt,c=Qt(Jt(l(r,t,n),1),0),f=Qt(Jt(l(e,a,i),1),0),h=u(r,t,n,c),v=u(e,a,i,f);o[0]=Jt(r,n,h),o[1]=Jt(e,i,v),s[0]=Qt(r,n,h),s[1]=Qt(e,i,v)}function W3(r,e,t,a,n,i,o,s,l){var u=Ja,c=Qa,f=Math.abs(n-i);if(f%Ln<1e-4&&f>1e-4){s[0]=r-t,s[1]=e-a,l[0]=r+t,l[1]=e+a;return}if(su[0]=$h(n)*t+r,su[1]=Wh(n)*a+e,lu[0]=$h(i)*t+r,lu[1]=Wh(i)*a+e,u(s,su,lu),c(l,su,lu),n=n%Ln,n<0&&(n=n+Ln),i=i%Ln,i<0&&(i=i+Ln),n>i&&!o?i+=Ln:n<i&&o&&(n+=Ln),o){var h=i;i=n,n=h}for(var v=0;v<i;v+=Math.PI/2)v>n&&(uu[0]=$h(v)*t+r,uu[1]=Wh(v)*a+e,u(s,uu,s),c(l,uu,l))}var Ue={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},In=[],Pn=[],Wr=[],za=[],$r=[],Ur=[],Uh=Math.min,Yh=Math.max,kn=Math.cos,Rn=Math.sin,pa=Math.abs,yp=Math.PI,Ya=yp*2,Xh=typeof Float32Array<"u",rs=[];function Zh(r){var e=Math.round(r/yp*1e8)/1e8;return e%2*yp}function am(r,e){var t=Zh(r[0]);t<0&&(t+=Ya);var a=t-r[0],n=r[1];n+=a,!e&&n-t>=Ya?n=t+Ya:e&&t-n>=Ya?n=t-Ya:!e&&t>n?n=t+(Ya-Zh(t-n)):e&&t<n&&(n=t-(Ya-Zh(n-t))),r[0]=t,r[1]=n}var fa=(function(){function r(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return r.prototype.increaseVersion=function(){this._version++},r.prototype.getVersion=function(){return this._version},r.prototype.setScale=function(e,t,a){a=a||0,a>0&&(this._ux=pa(a/Rc/e)||0,this._uy=pa(a/Rc/t)||0)},r.prototype.setDPR=function(e){this.dpr=e},r.prototype.setContext=function(e){this._ctx=e},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(e,t){return this._drawPendingPt(),this.addData(Ue.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},r.prototype.lineTo=function(e,t){var a=pa(e-this._xi),n=pa(t-this._yi),i=a>this._ux||n>this._uy;if(this.addData(Ue.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=a*a+n*n;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(e,t,a,n,i,o){return this._drawPendingPt(),this.addData(Ue.C,e,t,a,n,i,o),this._ctx&&this._ctx.bezierCurveTo(e,t,a,n,i,o),this._xi=i,this._yi=o,this},r.prototype.quadraticCurveTo=function(e,t,a,n){return this._drawPendingPt(),this.addData(Ue.Q,e,t,a,n),this._ctx&&this._ctx.quadraticCurveTo(e,t,a,n),this._xi=a,this._yi=n,this},r.prototype.arc=function(e,t,a,n,i,o){this._drawPendingPt(),rs[0]=n,rs[1]=i,am(rs,o),n=rs[0],i=rs[1];var s=i-n;return this.addData(Ue.A,e,t,a,a,n,s,0,o?0:1),this._ctx&&this._ctx.arc(e,t,a,n,i,o),this._xi=kn(i)*a+e,this._yi=Rn(i)*a+t,this},r.prototype.arcTo=function(e,t,a,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,a,n,i),this},r.prototype.rect=function(e,t,a,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,a,n),this.addData(Ue.R,e,t,a,n),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ue.Z);var e=this._ctx,t=this._x0,a=this._y0;return e&&e.closePath(),this._xi=t,this._yi=a,this},r.prototype.fill=function(e){e&&e.fill(),this.toStatic()},r.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(e){var t=e.length;!(this.data&&this.data.length===t)&&Xh&&(this.data=new Float32Array(t));for(var a=0;a<t;a++)this.data[a]=e[a];this._len=t},r.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var t=e.length,a=0,n=this._len,i=0;i<t;i++)a+=e[i].len();Xh&&this.data instanceof Float32Array&&(this.data=new Float32Array(n+a));for(var i=0;i<t;i++)for(var o=e[i].data,s=0;s<o.length;s++)this.data[n++]=o[s];this._len=n},r.prototype.addData=function(e,t,a,n,i,o,s,l,u){if(this._saveData){var c=this.data;this._len+arguments.length>c.length&&(this._expandData(),c=this.data);for(var f=0;f<arguments.length;f++)c[this._len++]=arguments[f]}},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 e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},r.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,Xh&&this._len>11&&(this.data=new Float32Array(e)))}},r.prototype.getBoundingRect=function(){Wr[0]=Wr[1]=$r[0]=$r[1]=Number.MAX_VALUE,za[0]=za[1]=Ur[0]=Ur[1]=-Number.MAX_VALUE;var e=this.data,t=0,a=0,n=0,i=0,o;for(o=0;o<this._len;){var s=e[o++],l=o===1;switch(l&&(t=e[o],a=e[o+1],n=t,i=a),s){case Ue.M:t=n=e[o++],a=i=e[o++],$r[0]=n,$r[1]=i,Ur[0]=n,Ur[1]=i;break;case Ue.L:Y0(t,a,e[o],e[o+1],$r,Ur),t=e[o++],a=e[o++];break;case Ue.C:H3(t,a,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],$r,Ur),t=e[o++],a=e[o++];break;case Ue.Q:j3(t,a,e[o++],e[o++],e[o],e[o+1],$r,Ur),t=e[o++],a=e[o++];break;case Ue.A:var u=e[o++],c=e[o++],f=e[o++],h=e[o++],v=e[o++],d=e[o++]+v;o+=1;var p=!e[o++];l&&(n=kn(v)*f+u,i=Rn(v)*h+c),W3(u,c,f,h,v,d,p,$r,Ur),t=kn(d)*f+u,a=Rn(d)*h+c;break;case Ue.R:n=t=e[o++],i=a=e[o++];var g=e[o++],m=e[o++];Y0(n,i,n+g,i+m,$r,Ur);break;case Ue.Z:t=n,a=i;break}Ja(Wr,Wr,$r),Qa(za,za,Ur)}return o===0&&(Wr[0]=Wr[1]=za[0]=za[1]=0),new ye(Wr[0],Wr[1],za[0]-Wr[0],za[1]-Wr[1])},r.prototype._calculateLength=function(){var e=this.data,t=this._len,a=this._ux,n=this._uy,i=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,c=0,f=0,h=0;h<t;){var v=e[h++],d=h===1;d&&(i=e[h],o=e[h+1],s=i,l=o);var p=-1;switch(v){case Ue.M:i=s=e[h++],o=l=e[h++];break;case Ue.L:{var g=e[h++],m=e[h++],y=g-i,x=m-o;(pa(y)>a||pa(x)>n||h===t-1)&&(p=Math.sqrt(y*y+x*x),i=g,o=m);break}case Ue.C:{var _=e[h++],b=e[h++],g=e[h++],m=e[h++],S=e[h++],w=e[h++];p=ck(i,o,_,b,g,m,S,w,10),i=S,o=w;break}case Ue.Q:{var _=e[h++],b=e[h++],g=e[h++],m=e[h++];p=hk(i,o,_,b,g,m,10),i=g,o=m;break}case Ue.A:var C=e[h++],A=e[h++],D=e[h++],M=e[h++],I=e[h++],P=e[h++],k=P+I;h+=1,d&&(s=kn(I)*D+C,l=Rn(I)*M+A),p=Yh(D,M)*Uh(Ya,Math.abs(P)),i=kn(k)*D+C,o=Rn(k)*M+A;break;case Ue.R:{s=i=e[h++],l=o=e[h++];var R=e[h++],E=e[h++];p=R*2+E*2;break}case Ue.Z:{var y=s-i,x=l-o;p=Math.sqrt(y*y+x*x),i=s,o=l;break}}p>=0&&(u[f++]=p,c+=p)}return this._pathLen=c,c},r.prototype.rebuildPath=function(e,t){var a=this.data,n=this._ux,i=this._uy,o=this._len,s,l,u,c,f,h,v=t<1,d,p,g=0,m=0,y,x=0,_,b;if(!(v&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=this._pathLen,y=t*p,!y)))e:for(var S=0;S<o;){var w=a[S++],C=S===1;switch(C&&(u=a[S],c=a[S+1],s=u,l=c),w!==Ue.L&&x>0&&(e.lineTo(_,b),x=0),w){case Ue.M:s=u=a[S++],l=c=a[S++],e.moveTo(u,c);break;case Ue.L:{f=a[S++],h=a[S++];var A=pa(f-u),D=pa(h-c);if(A>n||D>i){if(v){var M=d[m++];if(g+M>y){var I=(y-g)/M;e.lineTo(u*(1-I)+f*I,c*(1-I)+h*I);break e}g+=M}e.lineTo(f,h),u=f,c=h,x=0}else{var P=A*A+D*D;P>x&&(_=f,b=h,x=P)}break}case Ue.C:{var k=a[S++],R=a[S++],E=a[S++],B=a[S++],O=a[S++],V=a[S++];if(v){var M=d[m++];if(g+M>y){var I=(y-g)/M;dn(u,k,E,O,I,In),dn(c,R,B,V,I,Pn),e.bezierCurveTo(In[1],Pn[1],In[2],Pn[2],In[3],Pn[3]);break e}g+=M}e.bezierCurveTo(k,R,E,B,O,V),u=O,c=V;break}case Ue.Q:{var k=a[S++],R=a[S++],E=a[S++],B=a[S++];if(v){var M=d[m++];if(g+M>y){var I=(y-g)/M;rl(u,k,E,I,In),rl(c,R,B,I,Pn),e.quadraticCurveTo(In[1],Pn[1],In[2],Pn[2]);break e}g+=M}e.quadraticCurveTo(k,R,E,B),u=E,c=B;break}case Ue.A:var F=a[S++],H=a[S++],Y=a[S++],Z=a[S++],J=a[S++],te=a[S++],xe=a[S++],de=!a[S++],oe=Y>Z?Y:Z,ae=pa(Y-Z)>.001,$=J+te,j=!1;if(v){var M=d[m++];g+M>y&&($=J+te*(y-g)/M,j=!0),g+=M}if(ae&&e.ellipse?e.ellipse(F,H,Y,Z,xe,J,$,de):e.arc(F,H,oe,J,$,de),j)break e;C&&(s=kn(J)*Y+F,l=Rn(J)*Z+H),u=kn($)*Y+F,c=Rn($)*Z+H;break;case Ue.R:s=u=a[S],l=c=a[S+1],f=a[S++],h=a[S++];var K=a[S++],Se=a[S++];if(v){var M=d[m++];if(g+M>y){var me=y-g;e.moveTo(f,h),e.lineTo(f+Uh(me,K),h),me-=K,me>0&&e.lineTo(f+K,h+Uh(me,Se)),me-=Se,me>0&&e.lineTo(f+Yh(K-me,0),h+Se),me-=K,me>0&&e.lineTo(f,h+Yh(Se-me,0));break e}g+=M}e.rect(f,h,K,Se);break;case Ue.Z:if(v){var M=d[m++];if(g+M>y){var I=(y-g)/M;e.lineTo(u*(1-I)+s*I,c*(1-I)+l*I);break e}g+=M}e.closePath(),u=s,c=l}}},r.prototype.clone=function(){var e=new r,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},r.CMD=Ue,r.initDefaultProps=(function(){var e=r.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0})(),r})();function Za(r,e,t,a,n,i,o){if(n===0)return!1;var s=n,l=0,u=r;if(o>e+s&&o>a+s||o<e-s&&o<a-s||i>r+s&&i>t+s||i<r-s&&i<t-s)return!1;if(r!==t)l=(e-a)/(r-t),u=(r*a-t*e)/(r-t);else return Math.abs(i-r)<=s/2;var c=l*i-o+u,f=c*c/(l*l+1);return f<=s/2*s/2}function $3(r,e,t,a,n,i,o,s,l,u,c){if(l===0)return!1;var f=l;if(c>e+f&&c>a+f&&c>i+f&&c>s+f||c<e-f&&c<a-f&&c<i-f&&c<s-f||u>r+f&&u>t+f&&u>n+f&&u>o+f||u<r-f&&u<t-f&&u<n-f&&u<o-f)return!1;var h=$2(r,e,t,a,n,i,o,s,u,c,null);return h<=f/2}function AT(r,e,t,a,n,i,o,s,l){if(o===0)return!1;var u=o;if(l>e+u&&l>a+u&&l>i+u||l<e-u&&l<a-u&&l<i-u||s>r+u&&s>t+u&&s>n+u||s<r-u&&s<t-u&&s<n-u)return!1;var c=Y2(r,e,t,a,n,i,s,l,null);return c<=u/2}var q0=Math.PI*2;function ir(r){return r%=q0,r<0&&(r+=q0),r}var as=Math.PI*2;function U3(r,e,t,a,n,i,o,s,l){if(o===0)return!1;var u=o;s-=r,l-=e;var c=Math.sqrt(s*s+l*l);if(c-u>t||c+u<t)return!1;if(Math.abs(a-n)%as<1e-4)return!0;if(i){var f=a;a=ir(n),n=ir(f)}else a=ir(a),n=ir(n);a>n&&(n+=as);var h=Math.atan2(l,s);return h<0&&(h+=as),h>=a&&h<=n||h+as>=a&&h+as<=n}function xa(r,e,t,a,n,i){if(i>e&&i>a||i<e&&i<a||a===e)return 0;var o=(i-e)/(a-e),s=a<e?1:-1;(o===1||o===0)&&(s=a<e?.5:-.5);var l=o*(t-r)+r;return l===n?1/0:l>n?s:0}var Va=fa.CMD,En=Math.PI*2,Y3=1e-4;function X3(r,e){return Math.abs(r-e)<Y3}var Ft=[-1,-1,-1],mr=[-1,-1];function Z3(){var r=mr[0];mr[0]=mr[1],mr[1]=r}function q3(r,e,t,a,n,i,o,s,l,u){if(u>e&&u>a&&u>i&&u>s||u<e&&u<a&&u<i&&u<s)return 0;var c=Lc(e,a,i,s,u,Ft);if(c===0)return 0;for(var f=0,h=-1,v=void 0,d=void 0,p=0;p<c;p++){var g=Ft[p],m=g===0||g===1?.5:1,y=mt(r,t,n,o,g);y<l||(h<0&&(h=W2(e,a,i,s,mr),mr[1]<mr[0]&&h>1&&Z3(),v=mt(e,a,i,s,mr[0]),h>1&&(d=mt(e,a,i,s,mr[1]))),h===2?g<mr[0]?f+=v<e?m:-m:g<mr[1]?f+=d<v?m:-m:f+=s<d?m:-m:g<mr[0]?f+=v<e?m:-m:f+=s<v?m:-m)}return f}function K3(r,e,t,a,n,i,o,s){if(s>e&&s>a&&s>i||s<e&&s<a&&s<i)return 0;var l=fk(e,a,i,s,Ft);if(l===0)return 0;var u=U2(e,a,i);if(u>=0&&u<=1){for(var c=0,f=Tt(e,a,i,u),h=0;h<l;h++){var v=Ft[h]===0||Ft[h]===1?.5:1,d=Tt(r,t,n,Ft[h]);d<o||(Ft[h]<u?c+=f<e?v:-v:c+=i<f?v:-v)}return c}else{var v=Ft[0]===0||Ft[0]===1?.5:1,d=Tt(r,t,n,Ft[0]);return d<o?0:i<e?v:-v}}function J3(r,e,t,a,n,i,o,s){if(s-=e,s>t||s<-t)return 0;var l=Math.sqrt(t*t-s*s);Ft[0]=-l,Ft[1]=l;var u=Math.abs(a-n);if(u<1e-4)return 0;if(u>=En-1e-4){a=0,n=En;var c=i?1:-1;return o>=Ft[0]+r&&o<=Ft[1]+r?c:0}if(a>n){var f=a;a=n,n=f}a<0&&(a+=En,n+=En);for(var h=0,v=0;v<2;v++){var d=Ft[v];if(d+r>o){var p=Math.atan2(s,d),c=i?1:-1;p<0&&(p=En+p),(p>=a&&p<=n||p+En>=a&&p+En<=n)&&(p>Math.PI/2&&p<Math.PI*1.5&&(c=-c),h+=c)}}return h}function DT(r,e,t,a,n){for(var i=r.data,o=r.len(),s=0,l=0,u=0,c=0,f=0,h,v,d=0;d<o;){var p=i[d++],g=d===1;switch(p===Va.M&&d>1&&(t||(s+=xa(l,u,c,f,a,n))),g&&(l=i[d],u=i[d+1],c=l,f=u),p){case Va.M:c=i[d++],f=i[d++],l=c,u=f;break;case Va.L:if(t){if(Za(l,u,i[d],i[d+1],e,a,n))return!0}else s+=xa(l,u,i[d],i[d+1],a,n)||0;l=i[d++],u=i[d++];break;case Va.C:if(t){if($3(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],e,a,n))return!0}else s+=q3(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],a,n)||0;l=i[d++],u=i[d++];break;case Va.Q:if(t){if(AT(l,u,i[d++],i[d++],i[d],i[d+1],e,a,n))return!0}else s+=K3(l,u,i[d++],i[d++],i[d],i[d+1],a,n)||0;l=i[d++],u=i[d++];break;case Va.A:var m=i[d++],y=i[d++],x=i[d++],_=i[d++],b=i[d++],S=i[d++];d+=1;var w=!!(1-i[d++]);h=Math.cos(b)*x+m,v=Math.sin(b)*_+y,g?(c=h,f=v):s+=xa(l,u,h,v,a,n);var C=(a-m)*_/x+m;if(t){if(U3(m,y,_,b,b+S,w,e,C,n))return!0}else s+=J3(m,y,_,b,b+S,w,C,n);l=Math.cos(b+S)*x+m,u=Math.sin(b+S)*_+y;break;case Va.R:c=l=i[d++],f=u=i[d++];var A=i[d++],D=i[d++];if(h=c+A,v=f+D,t){if(Za(c,f,h,f,e,a,n)||Za(h,f,h,v,e,a,n)||Za(h,v,c,v,e,a,n)||Za(c,v,c,f,e,a,n))return!0}else s+=xa(h,f,h,v,a,n),s+=xa(c,v,c,f,a,n);break;case Va.Z:if(t){if(Za(l,u,c,f,e,a,n))return!0}else s+=xa(l,u,c,f,a,n);l=c,u=f;break}}return!t&&!X3(u,f)&&(s+=xa(l,u,c,f,a,n)||0),s!==0}function Q3(r,e,t){return DT(r,0,!1,e,t)}function eR(r,e,t,a){return DT(r,e,!0,t,a)}var Nc=ie({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},hi),tR={style:ie({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ef.style)},qh=ua.concat(["invisible","culling","z","z2","zlevel","parent"]),Ce=(function(r){z(e,r);function e(t){return r.call(this,t)||this}return e.prototype.update=function(){var t=this;r.prototype.update.call(this);var a=this.style;if(a.decal){var n=this._decalEl=this._decalEl||new e;n.buildPath===e.prototype.buildPath&&(n.buildPath=function(l){t.buildPath(l,t.shape)}),n.silent=!0;var i=n.style;for(var o in a)i[o]!==a[o]&&(i[o]=a[o]);i.fill=a.fill?a.decal:null,i.decal=null,i.shadowColor=null,a.strokeFirst&&(i.stroke=null);for(var s=0;s<qh.length;++s)n[qh[s]]=this[qh[s]];n.__dirty|=nr}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(t){var a=Me(t);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();n&&this.useStyle(n);for(var i=0;i<a.length;i++){var o=a[i],s=t[o];o==="style"?this.style?G(this.style,s):this.useStyle(s):o==="shape"?G(this.shape,s):r.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var t=this.style.fill;if(t!=="none"){if(q(t)){var a=Pc(t,0);return a>.5?hp:a>.2?Vk:vp}else if(t)return vp}return hp},e.prototype.getInsideTextStroke=function(t){var a=this.style.fill;if(q(a)){var n=this.__zr,i=!!(n&&n.isDarkMode()),o=Pc(t,0)<fp;if(i===o)return a}},e.prototype.buildPath=function(t,a,n){},e.prototype.pathUpdated=function(){this.__dirty&=~oo},e.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},e.prototype.createPathProxy=function(){this.path=new fa(!1)},e.prototype.hasStroke=function(){var t=this.style,a=t.stroke;return!(a==null||a==="none"||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style,a=t.fill;return a!=null&&a!=="none"},e.prototype.getBoundingRect=function(){var t=this._rect,a=this.style,n=!t;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&oo)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),t=o.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){s.copy(t);var l=a.strokeNoScale?this.getLineScale():1,u=a.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return t},e.prototype.contain=function(t,a){var n=this.transformCoordToLocal(t,a),i=this.getBoundingRect(),o=this.style;if(t=n[0],a=n[1],i.contain(t,a)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),eR(s,l/u,t,a)))return!0}if(this.hasFill())return Q3(s,t,a)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=oo,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():t==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(t,a){t==="shape"?this.setShape(a):r.prototype.attrKV.call(this,t,a)},e.prototype.setShape=function(t,a){var n=this.shape;return n||(n=this.shape={}),typeof t=="string"?n[t]=a:G(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&oo)},e.prototype.createStyle=function(t){return Df(Nc,t)},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var a=this._normalState;t.shape&&!a.shape&&(a.shape=G({},this.shape))},e.prototype._applyStateObj=function(t,a,n,i,o,s){r.prototype._applyStateObj.call(this,t,a,n,i,o,s);var l=!(a&&i),u;if(a&&a.shape?o?i?u=a.shape:(u=G({},n.shape),G(u,a.shape)):(u=G({},i?this.shape:n.shape),G(u,a.shape)):l&&(u=n.shape),u)if(o){this.shape=G({},this.shape);for(var c={},f=Me(u),h=0;h<f.length;h++){var v=f[h];typeof u[v]=="object"?this.shape[v]=u[v]:c[v]=u[v]}this._transitionState(t,{shape:c},s)}else this.shape=u,this.dirtyShape()},e.prototype._mergeStates=function(t){for(var a=r.prototype._mergeStates.call(this,t),n,i=0;i<t.length;i++){var o=t[i];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(a.shape=n),a},e.prototype.getAnimationStyleProps=function(){return tR},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var a=(function(i){z(o,i);function o(s){var l=i.call(this,s)||this;return t.init&&t.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return le(t.style)},o.prototype.getDefaultShape=function(){return le(t.shape)},o})(e);for(var n in t)typeof t[n]=="function"&&(a.prototype[n]=t[n]);return a},e.initDefaultProps=(function(){var t=e.prototype;t.type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=nr|As|oo})(),e})(Cr),rR=ie({strokeFirst:!0,font:hn,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Nc),To=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.hasStroke=function(){var t=this.style,a=t.stroke;return a!=null&&a!=="none"&&t.lineWidth>0},e.prototype.hasFill=function(){var t=this.style,a=t.fill;return a!=null&&a!=="none"},e.prototype.createStyle=function(t){return Df(rR,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var a=t.text;a!=null?a+="":a="";var n=Il(a,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},e.initDefaultProps=(function(){var t=e.prototype;t.dirtyRectTolerance=10})(),e})(Cr);To.prototype.type="tspan";var aR=ie({x:0,y:0},hi),nR={style:ie({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ef.style)};function iR(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var At=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return Df(aR,t)},e.prototype._getSize=function(t){var a=this.style,n=a[t];if(n!=null)return n;var i=iR(a.image)?a.image:this.__image;if(!i)return 0;var o=t==="width"?"height":"width",s=a[o];return s==null?i[t]:i[t]/i[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return nR},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new ye(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e})(Cr);At.prototype.type="image";function oR(r,e){var t=e.x,a=e.y,n=e.width,i=e.height,o=e.r,s,l,u,c;n<0&&(t=t+n,n=-n),i<0&&(a=a+i,i=-i),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[3]):s=l=u=c=0;var f;s+l>n&&(f=s+l,s*=n/f,l*=n/f),u+c>n&&(f=u+c,u*=n/f,c*=n/f),l+u>i&&(f=l+u,l*=i/f,u*=i/f),s+c>i&&(f=s+c,s*=i/f,c*=i/f),r.moveTo(t+s,a),r.lineTo(t+n-l,a),l!==0&&r.arc(t+n-l,a+l,l,-Math.PI/2,0),r.lineTo(t+n,a+i-u),u!==0&&r.arc(t+n-u,a+i-u,u,0,Math.PI/2),r.lineTo(t+c,a+i),c!==0&&r.arc(t+c,a+i-c,c,Math.PI/2,Math.PI),r.lineTo(t,a+s),s!==0&&r.arc(t+s,a+s,s,Math.PI,Math.PI*1.5)}var ho=Math.round;function MT(r,e,t){if(e){var a=e.x1,n=e.x2,i=e.y1,o=e.y2;r.x1=a,r.x2=n,r.y1=i,r.y2=o;var s=t&&t.lineWidth;return s&&(ho(a*2)===ho(n*2)&&(r.x1=r.x2=ai(a,s,!0)),ho(i*2)===ho(o*2)&&(r.y1=r.y2=ai(i,s,!0))),r}}function LT(r,e,t){if(e){var a=e.x,n=e.y,i=e.width,o=e.height;r.x=a,r.y=n,r.width=i,r.height=o;var s=t&&t.lineWidth;return s&&(r.x=ai(a,s,!0),r.y=ai(n,s,!0),r.width=Math.max(ai(a+i,s,!1)-r.x,i===0?0:1),r.height=Math.max(ai(n+o,s,!1)-r.y,o===0?0:1)),r}}function ai(r,e,t){if(!e)return r;var a=ho(r*2);return(a+ho(e))%2===0?a/2:(a+(t?1:-1))/2}var sR=(function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r})(),lR={},Le=(function(r){z(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new sR},e.prototype.buildPath=function(t,a){var n,i,o,s;if(this.subPixelOptimize){var l=LT(lR,a,this.style);n=l.x,i=l.y,o=l.width,s=l.height,l.r=a.r,a=l}else n=a.x,i=a.y,o=a.width,s=a.height;a.r?oR(t,a):t.rect(n,i,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e})(Ce);Le.prototype.type="rect";var K0={fill:"#000"},J0=2,uR={style:ie({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},Ef.style)},Pe=(function(r){z(e,r);function e(t){var a=r.call(this)||this;return a.type="text",a._children=[],a._defaultStyle=K0,a.attr(t),a}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var a=this._children[t];a.zlevel=this.zlevel,a.z=this.z,a.z2=this.z2,a.culling=this.culling,a.cursor=this.cursor,a.invisible=this.invisible}},e.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):r.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(t){var a=this.innerTransformable;return a?a.getLocalTransform(t):r.prototype.getLocalTransform.call(this,t)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),r.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,hR(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(t){r.prototype.addSelfToZr.call(this,t);for(var a=0;a<this._children.length;a++)this._children[a].__zr=t},e.prototype.removeSelfFromZr=function(t){r.prototype.removeSelfFromZr.call(this,t);for(var a=0;a<this._children.length;a++)this._children[a].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new ye(0,0,0,0),a=this._children,n=[],i=null,o=0;o<a.length;o++){var s=a[o],l=s.getBoundingRect(),u=s.getLocalTransform(n);u?(t.copy(l),t.applyTransform(u),i=i||t.clone(),i.union(t)):(i=i||l.clone(),i.union(l))}this._rect=i||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||K0},e.prototype.setTextContent=function(t){},e.prototype._mergeStyle=function(t,a){if(!a)return t;var n=a.rich,i=t.rich||n&&{};return G(t,a),n&&i?(this._mergeRich(i,n),t.rich=i):i&&(t.rich=i),t},e.prototype._mergeRich=function(t,a){for(var n=Me(a),i=0;i<n.length;i++){var o=n[i];t[o]=t[o]||{},G(t[o],a[o])}},e.prototype.getAnimationStyleProps=function(){return uR},e.prototype._getOrCreateChild=function(t){var a=this._children[this._childCursor];return(!a||!(a instanceof t))&&(a=new t),this._children[this._childCursor++]=a,a.__zr=this.__zr,a.parent=this,a},e.prototype._updatePlainTexts=function(){var t=this.style,a=t.font||hn,n=t.padding,i=i1(t),o=R3(i,t),s=Kh(t),l=!!t.backgroundColor,u=o.outerHeight,c=o.outerWidth,f=o.contentWidth,h=o.lines,v=o.lineHeight,d=this._defaultStyle;this.isTruncated=!!o.isTruncated;var p=t.x||0,g=t.y||0,m=t.align||d.align||"left",y=t.verticalAlign||d.verticalAlign||"top",x=p,_=so(g,o.contentHeight,y);if(s||n){var b=Ms(p,c,m),S=so(g,u,y);s&&this._renderBackground(t,t,b,S,c,u)}_+=v/2,n&&(x=n1(p,m,n),y==="top"?_+=n[0]:y==="bottom"&&(_-=n[2]));for(var w=0,C=!1,A=a1("fill"in t?t.fill:(C=!0,d.fill)),D=r1("stroke"in t?t.stroke:!l&&(!d.autoStroke||C)?(w=J0,d.stroke):null),M=t.textShadowBlur>0,I=t.width!=null&&(t.overflow==="truncate"||t.overflow==="break"||t.overflow==="breakAll"),P=o.calculatedLineHeight,k=0;k<h.length;k++){var R=this._getOrCreateChild(To),E=R.createStyle();R.useStyle(E),E.text=h[k],E.x=x,E.y=_,E.textAlign=m,E.textBaseline="middle",E.opacity=t.opacity,E.strokeFirst=!0,M&&(E.shadowBlur=t.textShadowBlur||0,E.shadowColor=t.textShadowColor||"transparent",E.shadowOffsetX=t.textShadowOffsetX||0,E.shadowOffsetY=t.textShadowOffsetY||0),E.stroke=D,E.fill=A,D&&(E.lineWidth=t.lineWidth||w,E.lineDash=t.lineDash,E.lineDashOffset=t.lineDashOffset||0),E.font=a,e1(E,t),_+=v,I&&R.setBoundingRect(new ye(Ms(E.x,f,E.textAlign),so(E.y,P,E.textBaseline),f,P))}},e.prototype._updateRichTexts=function(){var t=this.style,a=i1(t),n=O3(a,t),i=n.width,o=n.outerWidth,s=n.outerHeight,l=t.padding,u=t.x||0,c=t.y||0,f=this._defaultStyle,h=t.align||f.align,v=t.verticalAlign||f.verticalAlign;this.isTruncated=!!n.isTruncated;var d=Ms(u,o,h),p=so(c,s,v),g=d,m=p;l&&(g+=l[3],m+=l[0]);var y=g+i;Kh(t)&&this._renderBackground(t,t,d,p,o,s);for(var x=!!t.backgroundColor,_=0;_<n.lines.length;_++){for(var b=n.lines[_],S=b.tokens,w=S.length,C=b.lineHeight,A=b.width,D=0,M=g,I=y,P=w-1,k=void 0;D<w&&(k=S[D],!k.align||k.align==="left");)this._placeToken(k,t,C,m,M,"left",x),A-=k.width,M+=k.width,D++;for(;P>=0&&(k=S[P],k.align==="right");)this._placeToken(k,t,C,m,I,"right",x),A-=k.width,I-=k.width,P--;for(M+=(i-(M-g)-(y-I)-A)/2;D<=P;)k=S[D],this._placeToken(k,t,C,m,M+k.width/2,"center",x),M+=k.width,D++;m+=C}},e.prototype._placeToken=function(t,a,n,i,o,s,l){var u=a.rich[t.styleName]||{};u.text=t.text;var c=t.verticalAlign,f=i+n/2;c==="top"?f=i+t.height/2:c==="bottom"&&(f=i+n-t.height/2);var h=!t.isLineHolder&&Kh(u);h&&this._renderBackground(u,a,s==="right"?o-t.width:s==="center"?o-t.width/2:o,f-t.height/2,t.width,t.height);var v=!!u.backgroundColor,d=t.textPadding;d&&(o=n1(o,s,d),f-=t.height/2-d[0]-t.innerHeight/2);var p=this._getOrCreateChild(To),g=p.createStyle();p.useStyle(g);var m=this._defaultStyle,y=!1,x=0,_=a1("fill"in u?u.fill:"fill"in a?a.fill:(y=!0,m.fill)),b=r1("stroke"in u?u.stroke:"stroke"in a?a.stroke:!v&&!l&&(!m.autoStroke||y)?(x=J0,m.stroke):null),S=u.textShadowBlur>0||a.textShadowBlur>0;g.text=t.text,g.x=o,g.y=f,S&&(g.shadowBlur=u.textShadowBlur||a.textShadowBlur||0,g.shadowColor=u.textShadowColor||a.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||a.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||a.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=t.font||hn,g.opacity=ia(u.opacity,a.opacity,1),e1(g,u),b&&(g.lineWidth=ia(u.lineWidth,a.lineWidth,x),g.lineDash=fe(u.lineDash,a.lineDash),g.lineDashOffset=a.lineDashOffset||0,g.stroke=b),_&&(g.fill=_);var w=t.contentWidth,C=t.contentHeight;p.setBoundingRect(new ye(Ms(g.x,w,g.textAlign),so(g.y,C,g.textBaseline),w,C))},e.prototype._renderBackground=function(t,a,n,i,o,s){var l=t.backgroundColor,u=t.borderWidth,c=t.borderColor,f=l&&l.image,h=l&&!f,v=t.borderRadius,d=this,p,g;if(h||t.lineHeight||u&&c){p=this._getOrCreateChild(Le),p.useStyle(p.createStyle()),p.style.fill=null;var m=p.shape;m.x=n,m.y=i,m.width=o,m.height=s,m.r=v,p.dirtyShape()}if(h){var y=p.style;y.fill=l||null,y.fillOpacity=fe(t.fillOpacity,1)}else if(f){g=this._getOrCreateChild(At),g.onload=function(){d.dirtyStyle()};var x=g.style;x.image=l.image,x.x=n,x.y=i,x.width=o,x.height=s}if(u&&c){var y=p.style;y.lineWidth=u,y.stroke=c,y.strokeOpacity=fe(t.strokeOpacity,1),y.lineDash=t.borderDash,y.lineDashOffset=t.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var _=(p||g).style;_.shadowBlur=t.shadowBlur||0,_.shadowColor=t.shadowColor||"transparent",_.shadowOffsetX=t.shadowOffsetX||0,_.shadowOffsetY=t.shadowOffsetY||0,_.opacity=ia(t.opacity,a.opacity,1)},e.makeFont=function(t){var a="";return PT(t)&&(a=[t.fontStyle,t.fontWeight,IT(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),a&&Or(a)||t.textFont||t.font},e})(Cr),cR={left:!0,right:1,center:1},fR={top:1,bottom:1,middle:1},Q0=["fontStyle","fontWeight","fontSize","fontFamily"];function IT(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?Vg+"px":r+"px"}function e1(r,e){for(var t=0;t<Q0.length;t++){var a=Q0[t],n=e[a];n!=null&&(r[a]=n)}}function PT(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function hR(r){return t1(r),L(r.rich,t1),r}function t1(r){if(r){r.font=Pe.makeFont(r);var e=r.align;e==="middle"&&(e="center"),r.align=e==null||cR[e]?e:"left";var t=r.verticalAlign;t==="center"&&(t="middle"),r.verticalAlign=t==null||fR[t]?t:"top";var a=r.padding;a&&(r.padding=$g(r.padding))}}function r1(r,e){return r==null||e<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function a1(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function n1(r,e,t){return e==="right"?r-t[1]:e==="center"?r+t[3]/2-t[1]/2:r+t[3]}function i1(r){var e=r.text;return e!=null&&(e+=""),e}function Kh(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}var ce=Ie(),xp=function(r,e,t,a){if(a){var n=ce(a);n.dataIndex=t,n.dataType=e,n.seriesIndex=r,n.ssrType="chart",a.type==="group"&&a.traverse(function(i){var o=ce(i);o.seriesIndex=r,o.dataIndex=t,o.dataType=e,o.ssrType="chart"})}},o1=1,s1={},kT=Ie(),nm=Ie(),im=0,kl=1,Of=2,Ut=["emphasis","blur","select"],sl=["normal","emphasis","blur","select"],zo=10,vR=9,vi="highlight",cc="downplay",Ws="select",fc="unselect",$s="toggleSelect";function Gi(r){return r!=null&&r!=="none"}function Bf(r,e,t){r.onHoverStateChange&&(r.hoverState||0)!==t&&r.onHoverStateChange(e),r.hoverState=t}function RT(r){Bf(r,"emphasis",Of)}function ET(r){r.hoverState===Of&&Bf(r,"normal",im)}function om(r){Bf(r,"blur",kl)}function NT(r){r.hoverState===kl&&Bf(r,"normal",im)}function dR(r){r.selected=!0}function pR(r){r.selected=!1}function l1(r,e,t){e(r,t)}function Na(r,e,t){l1(r,e,t),r.isGroup&&r.traverse(function(a){l1(a,e,t)})}function Oc(r,e){switch(e){case"emphasis":r.hoverState=Of;break;case"normal":r.hoverState=im;break;case"blur":r.hoverState=kl;break;case"select":r.selected=!0}}function gR(r,e,t,a){for(var n=r.style,i={},o=0;o<e.length;o++){var s=e[o],l=n[s];i[s]=l??(a&&a[s])}for(var o=0;o<r.animators.length;o++){var u=r.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(t)<0&&u.targetName==="style"&&u.saveTo(i,e)}return i}function mR(r,e,t,a){var n=t&&_e(t,"select")>=0,i=!1;if(r instanceof Ce){var o=kT(r),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(Gi(s)||Gi(l)){a=a||{};var u=a.style||{};u.fill==="inherit"?(i=!0,a=G({},a),u=G({},u),u.fill=s):!Gi(u.fill)&&Gi(s)?(i=!0,a=G({},a),u=G({},u),u.fill=np(s)):!Gi(u.stroke)&&Gi(l)&&(i||(a=G({},a),u=G({},u)),u.stroke=np(l)),a.style=u}}if(a&&a.z2==null){i||(a=G({},a));var c=r.z2EmphasisLift;a.z2=r.z2+(c??zo)}return a}function yR(r,e,t){if(t&&t.z2==null){t=G({},t);var a=r.z2SelectLift;t.z2=r.z2+(a??vR)}return t}function xR(r,e,t){var a=_e(r.currentStates,e)>=0,n=r.style.opacity,i=a?null:gR(r,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=G({},t),o=G({opacity:a?n:i.opacity*.1},o),t.style=o),t}function Jh(r,e){var t=this.states[r];if(this.style){if(r==="emphasis")return mR(this,r,e,t);if(r==="blur")return xR(this,r,t);if(r==="select")return yR(this,r,t)}return t}function Si(r){r.stateProxy=Jh;var e=r.getTextContent(),t=r.getTextGuideLine();e&&(e.stateProxy=Jh),t&&(t.stateProxy=Jh)}function u1(r,e){!VT(r,e)&&!r.__highByOuter&&Na(r,RT)}function c1(r,e){!VT(r,e)&&!r.__highByOuter&&Na(r,ET)}function La(r,e){r.__highByOuter|=1<<(e||0),Na(r,RT)}function Ia(r,e){!(r.__highByOuter&=~(1<<(e||0)))&&Na(r,ET)}function OT(r){Na(r,om)}function sm(r){Na(r,NT)}function BT(r){Na(r,dR)}function zT(r){Na(r,pR)}function VT(r,e){return r.__highDownSilentOnTouch&&e.zrByTouch}function FT(r){var e=r.getModel(),t=[],a=[];e.eachComponent(function(n,i){var o=nm(i),s=n==="series",l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&a.push(l),o.isBlured&&(l.group.traverse(function(u){NT(u)}),s&&t.push(i)),o.isBlured=!1}),L(a,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(t,!1,e)})}function _p(r,e,t,a){var n=a.getModel();t=t||"coordinateSystem";function i(u,c){for(var f=0;f<c.length;f++){var h=u.getItemGraphicEl(c[f]);h&&sm(h)}}if(r!=null&&!(!e||e==="none")){var o=n.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];n.eachSeries(function(u){var c=o===u,f=u.coordinateSystem;f&&f.master&&(f=f.master);var h=f&&s?f===s:c;if(!(t==="series"&&!c||t==="coordinateSystem"&&!h||e==="series"&&c)){var v=a.getViewOfSeriesModel(u);if(v.group.traverse(function(g){g.__highByOuter&&c&&e==="self"||om(g)}),Ot(e))i(u.getData(),e);else if(se(e))for(var d=Me(e),p=0;p<d.length;p++)i(u.getData(d[p]),e[d[p]]);l.push(u),nm(u).isBlured=!0}}),n.eachComponent(function(u,c){if(u!=="series"){var f=a.getViewOfComponentModel(c);f&&f.toggleBlurSeries&&f.toggleBlurSeries(l,!0,n)}})}}function bp(r,e,t){if(!(r==null||e==null)){var a=t.getModel().getComponent(r,e);if(a){nm(a).isBlured=!0;var n=t.getViewOfComponentModel(a);!n||!n.focusBlurEnabled||n.group.traverse(function(i){om(i)})}}}function _R(r,e,t){var a=r.seriesIndex,n=r.getData(e.dataType);if(n){var i=_i(n,e);i=(W(i)?i[0]:i)||0;var o=n.getItemGraphicEl(i);if(!o)for(var s=n.count(),l=0;!o&&l<s;)o=n.getItemGraphicEl(l++);if(o){var u=ce(o);_p(a,u.focus,u.blurScope,t)}else{var c=r.get(["emphasis","focus"]),f=r.get(["emphasis","blurScope"]);c!=null&&_p(a,c,f,t)}}}function lm(r,e,t,a){var n={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||e==null||t==null)return n;var i=a.getModel().getComponent(r,e);if(!i)return n;var o=a.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return n;for(var s=o.findHighDownDispatchers(t),l,u=0;u<s.length;u++)if(ce(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function bR(r,e,t){var a=ce(r),n=lm(a.componentMainType,a.componentIndex,a.componentHighDownName,t),i=n.dispatchers,o=n.focusSelf;i?(o&&bp(a.componentMainType,a.componentIndex,t),L(i,function(s){return u1(s,e)})):(_p(a.seriesIndex,a.focus,a.blurScope,t),a.focus==="self"&&bp(a.componentMainType,a.componentIndex,t),u1(r,e))}function SR(r,e,t){FT(t);var a=ce(r),n=lm(a.componentMainType,a.componentIndex,a.componentHighDownName,t).dispatchers;n?L(n,function(i){return c1(i,e)}):c1(r,e)}function wR(r,e,t){if(wp(e)){var a=e.dataType,n=r.getData(a),i=_i(n,e);W(i)||(i=[i]),r[e.type===$s?"toggleSelect":e.type===Ws?"select":"unselect"](i,a)}}function f1(r){var e=r.getAllData();L(e,function(t){var a=t.data,n=t.type;a.eachItemGraphicEl(function(i,o){r.isSelected(o,n)?BT(i):zT(i)})})}function TR(r){var e=[];return r.eachSeries(function(t){var a=t.getAllData();L(a,function(n){n.data;var i=n.type,o=t.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:t.seriesIndex};i!=null&&(s.dataType=i),e.push(s)}})}),e}function di(r,e,t){ni(r,!0),Na(r,Si),Sp(r,e,t)}function CR(r){ni(r,!1)}function et(r,e,t,a){a?CR(r):di(r,e,t)}function Sp(r,e,t){var a=ce(r);e!=null?(a.focus=e,a.blurScope=t):a.focus&&(a.focus=null)}var h1=["emphasis","blur","select"],AR={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function It(r,e,t,a){t=t||"itemStyle";for(var n=0;n<h1.length;n++){var i=h1[n],o=e.getModel([i,t]),s=r.ensureState(i);s.style=a?a(o):o[AR[t]]()}}function ni(r,e){var t=e===!1,a=r;r.highDownSilentOnTouch&&(a.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!t||a.__highDownDispatcher)&&(a.__highByOuter=a.__highByOuter||0,a.__highDownDispatcher=!t)}function ll(r){return!!(r&&r.__highDownDispatcher)}function DR(r,e,t){var a=ce(r);a.componentMainType=e.mainType,a.componentIndex=e.componentIndex,a.componentHighDownName=t}function MR(r){var e=s1[r];return e==null&&o1<=32&&(e=s1[r]=o1++),e}function wp(r){var e=r.type;return e===Ws||e===fc||e===$s}function v1(r){var e=r.type;return e===vi||e===cc}function LR(r){var e=kT(r);e.normalFill=r.style.fill,e.normalStroke=r.style.stroke;var t=r.states.select||{};e.selectFill=t.style&&t.style.fill||null,e.selectStroke=t.style&&t.style.stroke||null}var Hi=fa.CMD,IR=[[],[],[]],d1=Math.sqrt,PR=Math.atan2;function GT(r,e){if(e){var t=r.data,a=r.len(),n,i,o,s,l,u,c=Hi.M,f=Hi.C,h=Hi.L,v=Hi.R,d=Hi.A,p=Hi.Q;for(o=0,s=0;o<a;){switch(n=t[o++],s=o,i=0,n){case c:i=1;break;case h:i=1;break;case f:i=3;break;case p:i=2;break;case d:var g=e[4],m=e[5],y=d1(e[0]*e[0]+e[1]*e[1]),x=d1(e[2]*e[2]+e[3]*e[3]),_=PR(-e[1]/x,e[0]/y);t[o]*=y,t[o++]+=g,t[o]*=x,t[o++]+=m,t[o++]*=y,t[o++]*=x,t[o++]+=_,t[o++]+=_,o+=2,s=o;break;case v:u[0]=t[o++],u[1]=t[o++],Lt(u,u,e),t[s++]=u[0],t[s++]=u[1],u[0]+=t[o++],u[1]+=t[o++],Lt(u,u,e),t[s++]=u[0],t[s++]=u[1]}for(l=0;l<i;l++){var b=IR[l];b[0]=t[o++],b[1]=t[o++],Lt(b,b,e),t[s++]=b[0],t[s++]=b[1]}}r.increaseVersion()}}var Qh=Math.sqrt,cu=Math.sin,fu=Math.cos,ns=Math.PI;function p1(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function Tp(r,e){return(r[0]*e[0]+r[1]*e[1])/(p1(r)*p1(e))}function g1(r,e){return(r[0]*e[1]<r[1]*e[0]?-1:1)*Math.acos(Tp(r,e))}function m1(r,e,t,a,n,i,o,s,l,u,c){var f=l*(ns/180),h=fu(f)*(r-t)/2+cu(f)*(e-a)/2,v=-1*cu(f)*(r-t)/2+fu(f)*(e-a)/2,d=h*h/(o*o)+v*v/(s*s);d>1&&(o*=Qh(d),s*=Qh(d));var p=(n===i?-1:1)*Qh((o*o*(s*s)-o*o*(v*v)-s*s*(h*h))/(o*o*(v*v)+s*s*(h*h)))||0,g=p*o*v/s,m=p*-s*h/o,y=(r+t)/2+fu(f)*g-cu(f)*m,x=(e+a)/2+cu(f)*g+fu(f)*m,_=g1([1,0],[(h-g)/o,(v-m)/s]),b=[(h-g)/o,(v-m)/s],S=[(-1*h-g)/o,(-1*v-m)/s],w=g1(b,S);if(Tp(b,S)<=-1&&(w=ns),Tp(b,S)>=1&&(w=0),w<0){var C=Math.round(w/ns*1e6)/1e6;w=ns*2+C%2*ns}c.addData(u,y,x,o,s,_,w,f,i)}var kR=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,RR=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function ER(r){var e=new fa;if(!r)return e;var t=0,a=0,n=t,i=a,o,s=fa.CMD,l=r.match(kR);if(!l)return e;for(var u=0;u<l.length;u++){for(var c=l[u],f=c.charAt(0),h=void 0,v=c.match(RR)||[],d=v.length,p=0;p<d;p++)v[p]=parseFloat(v[p]);for(var g=0;g<d;){var m=void 0,y=void 0,x=void 0,_=void 0,b=void 0,S=void 0,w=void 0,C=t,A=a,D=void 0,M=void 0;switch(f){case"l":t+=v[g++],a+=v[g++],h=s.L,e.addData(h,t,a);break;case"L":t=v[g++],a=v[g++],h=s.L,e.addData(h,t,a);break;case"m":t+=v[g++],a+=v[g++],h=s.M,e.addData(h,t,a),n=t,i=a,f="l";break;case"M":t=v[g++],a=v[g++],h=s.M,e.addData(h,t,a),n=t,i=a,f="L";break;case"h":t+=v[g++],h=s.L,e.addData(h,t,a);break;case"H":t=v[g++],h=s.L,e.addData(h,t,a);break;case"v":a+=v[g++],h=s.L,e.addData(h,t,a);break;case"V":a=v[g++],h=s.L,e.addData(h,t,a);break;case"C":h=s.C,e.addData(h,v[g++],v[g++],v[g++],v[g++],v[g++],v[g++]),t=v[g-2],a=v[g-1];break;case"c":h=s.C,e.addData(h,v[g++]+t,v[g++]+a,v[g++]+t,v[g++]+a,v[g++]+t,v[g++]+a),t+=v[g-2],a+=v[g-1];break;case"S":m=t,y=a,D=e.len(),M=e.data,o===s.C&&(m+=t-M[D-4],y+=a-M[D-3]),h=s.C,C=v[g++],A=v[g++],t=v[g++],a=v[g++],e.addData(h,m,y,C,A,t,a);break;case"s":m=t,y=a,D=e.len(),M=e.data,o===s.C&&(m+=t-M[D-4],y+=a-M[D-3]),h=s.C,C=t+v[g++],A=a+v[g++],t+=v[g++],a+=v[g++],e.addData(h,m,y,C,A,t,a);break;case"Q":C=v[g++],A=v[g++],t=v[g++],a=v[g++],h=s.Q,e.addData(h,C,A,t,a);break;case"q":C=v[g++]+t,A=v[g++]+a,t+=v[g++],a+=v[g++],h=s.Q,e.addData(h,C,A,t,a);break;case"T":m=t,y=a,D=e.len(),M=e.data,o===s.Q&&(m+=t-M[D-4],y+=a-M[D-3]),t=v[g++],a=v[g++],h=s.Q,e.addData(h,m,y,t,a);break;case"t":m=t,y=a,D=e.len(),M=e.data,o===s.Q&&(m+=t-M[D-4],y+=a-M[D-3]),t+=v[g++],a+=v[g++],h=s.Q,e.addData(h,m,y,t,a);break;case"A":x=v[g++],_=v[g++],b=v[g++],S=v[g++],w=v[g++],C=t,A=a,t=v[g++],a=v[g++],h=s.A,m1(C,A,t,a,S,w,x,_,b,h,e);break;case"a":x=v[g++],_=v[g++],b=v[g++],S=v[g++],w=v[g++],C=t,A=a,t+=v[g++],a+=v[g++],h=s.A,m1(C,A,t,a,S,w,x,_,b,h,e);break}}(f==="z"||f==="Z")&&(h=s.Z,e.addData(h),t=n,a=i),o=h}return e.toStatic(),e}var HT=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.applyTransform=function(t){},e})(Ce);function jT(r){return r.setData!=null}function WT(r,e){var t=ER(r),a=G({},e);return a.buildPath=function(n){if(jT(n)){n.setData(t.data);var i=n.getContext();i&&n.rebuildPath(i,1)}else{var i=n;t.rebuildPath(i,1)}},a.applyTransform=function(n){GT(t,n),this.dirtyShape()},a}function $T(r,e){return new HT(WT(r,e))}function NR(r,e){var t=WT(r,e),a=(function(n){z(i,n);function i(o){var s=n.call(this,o)||this;return s.applyTransform=t.applyTransform,s.buildPath=t.buildPath,s}return i})(HT);return a}function OR(r,e){for(var t=[],a=r.length,n=0;n<a;n++){var i=r[n];t.push(i.getUpdatedPathProxy(!0))}var o=new Ce(e);return o.createPathProxy(),o.buildPath=function(s){if(jT(s)){s.appendPath(t);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function um(r,e){e=e||{};var t=new Ce;return r.shape&&t.setShape(r.shape),t.setStyle(r.style),e.bakeTransform?GT(t.path,r.getComputedTransform()):e.toLocal?t.setLocalTransform(r.getComputedTransform()):t.copyTransform(r),t.buildPath=r.buildPath,t.applyTransform=t.applyTransform,t.z=r.z,t.z2=r.z2,t.zlevel=r.zlevel,t}var BR=(function(){function r(){this.cx=0,this.cy=0,this.r=0}return r})(),Oa=(function(r){z(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new BR},e.prototype.buildPath=function(t,a){t.moveTo(a.cx+a.r,a.cy),t.arc(a.cx,a.cy,a.r,0,Math.PI*2)},e})(Ce);Oa.prototype.type="circle";var zR=(function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r})(),zf=(function(r){z(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new zR},e.prototype.buildPath=function(t,a){var n=.5522848,i=a.cx,o=a.cy,s=a.rx,l=a.ry,u=s*n,c=l*n;t.moveTo(i-s,o),t.bezierCurveTo(i-s,o-c,i-u,o-l,i,o-l),t.bezierCurveTo(i+u,o-l,i+s,o-c,i+s,o),t.bezierCurveTo(i+s,o+c,i+u,o+l,i,o+l),t.bezierCurveTo(i-u,o+l,i-s,o+c,i-s,o),t.closePath()},e})(Ce);zf.prototype.type="ellipse";var UT=Math.PI,ev=UT*2,Nn=Math.sin,ji=Math.cos,VR=Math.acos,kt=Math.atan2,y1=Math.abs,Us=Math.sqrt,Ls=Math.max,Yr=Math.min,kr=1e-4;function FR(r,e,t,a,n,i,o,s){var l=t-r,u=a-e,c=o-n,f=s-i,h=f*l-c*u;if(!(h*h<kr))return h=(c*(e-i)-f*(r-n))/h,[r+h*l,e+h*u]}function hu(r,e,t,a,n,i,o){var s=r-t,l=e-a,u=(o?i:-i)/Us(s*s+l*l),c=u*l,f=-u*s,h=r+c,v=e+f,d=t+c,p=a+f,g=(h+d)/2,m=(v+p)/2,y=d-h,x=p-v,_=y*y+x*x,b=n-i,S=h*p-d*v,w=(x<0?-1:1)*Us(Ls(0,b*b*_-S*S)),C=(S*x-y*w)/_,A=(-S*y-x*w)/_,D=(S*x+y*w)/_,M=(-S*y+x*w)/_,I=C-g,P=A-m,k=D-g,R=M-m;return I*I+P*P>k*k+R*R&&(C=D,A=M),{cx:C,cy:A,x0:-c,y0:-f,x1:C*(n/b-1),y1:A*(n/b-1)}}function GR(r){var e;if(W(r)){var t=r.length;if(!t)return r;t===1?e=[r[0],r[0],0,0]:t===2?e=[r[0],r[0],r[1],r[1]]:t===3?e=r.concat(r[2]):e=r}else e=[r,r,r,r];return e}function HR(r,e){var t,a=Ls(e.r,0),n=Ls(e.r0||0,0),i=a>0,o=n>0;if(!(!i&&!o)){if(i||(a=n,n=0),n>a){var s=a;a=n,n=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var c=e.cx,f=e.cy,h=!!e.clockwise,v=y1(u-l),d=v>ev&&v%ev;if(d>kr&&(v=d),!(a>kr))r.moveTo(c,f);else if(v>ev-kr)r.moveTo(c+a*ji(l),f+a*Nn(l)),r.arc(c,f,a,l,u,!h),n>kr&&(r.moveTo(c+n*ji(u),f+n*Nn(u)),r.arc(c,f,n,u,l,h));else{var p=void 0,g=void 0,m=void 0,y=void 0,x=void 0,_=void 0,b=void 0,S=void 0,w=void 0,C=void 0,A=void 0,D=void 0,M=void 0,I=void 0,P=void 0,k=void 0,R=a*ji(l),E=a*Nn(l),B=n*ji(u),O=n*Nn(u),V=v>kr;if(V){var F=e.cornerRadius;F&&(t=GR(F),p=t[0],g=t[1],m=t[2],y=t[3]);var H=y1(a-n)/2;if(x=Yr(H,m),_=Yr(H,y),b=Yr(H,p),S=Yr(H,g),A=w=Ls(x,_),D=C=Ls(b,S),(w>kr||C>kr)&&(M=a*ji(u),I=a*Nn(u),P=n*ji(l),k=n*Nn(l),v<UT)){var Y=FR(R,E,P,k,M,I,B,O);if(Y){var Z=R-Y[0],J=E-Y[1],te=M-Y[0],xe=I-Y[1],de=1/Nn(VR((Z*te+J*xe)/(Us(Z*Z+J*J)*Us(te*te+xe*xe)))/2),oe=Us(Y[0]*Y[0]+Y[1]*Y[1]);A=Yr(w,(a-oe)/(de+1)),D=Yr(C,(n-oe)/(de-1))}}}if(!V)r.moveTo(c+R,f+E);else if(A>kr){var ae=Yr(m,A),$=Yr(y,A),j=hu(P,k,R,E,a,ae,h),K=hu(M,I,B,O,a,$,h);r.moveTo(c+j.cx+j.x0,f+j.cy+j.y0),A<w&&ae===$?r.arc(c+j.cx,f+j.cy,A,kt(j.y0,j.x0),kt(K.y0,K.x0),!h):(ae>0&&r.arc(c+j.cx,f+j.cy,ae,kt(j.y0,j.x0),kt(j.y1,j.x1),!h),r.arc(c,f,a,kt(j.cy+j.y1,j.cx+j.x1),kt(K.cy+K.y1,K.cx+K.x1),!h),$>0&&r.arc(c+K.cx,f+K.cy,$,kt(K.y1,K.x1),kt(K.y0,K.x0),!h))}else r.moveTo(c+R,f+E),r.arc(c,f,a,l,u,!h);if(!(n>kr)||!V)r.lineTo(c+B,f+O);else if(D>kr){var ae=Yr(p,D),$=Yr(g,D),j=hu(B,O,M,I,n,-$,h),K=hu(R,E,P,k,n,-ae,h);r.lineTo(c+j.cx+j.x0,f+j.cy+j.y0),D<C&&ae===$?r.arc(c+j.cx,f+j.cy,D,kt(j.y0,j.x0),kt(K.y0,K.x0),!h):($>0&&r.arc(c+j.cx,f+j.cy,$,kt(j.y0,j.x0),kt(j.y1,j.x1),!h),r.arc(c,f,n,kt(j.cy+j.y1,j.cx+j.x1),kt(K.cy+K.y1,K.cx+K.x1),h),ae>0&&r.arc(c+K.cx,f+K.cy,ae,kt(K.y1,K.x1),kt(K.y0,K.x0),!h))}else r.lineTo(c+B,f+O),r.arc(c,f,n,u,l,h)}r.closePath()}}}var jR=(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})(),Yt=(function(r){z(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new jR},e.prototype.buildPath=function(t,a){HR(t,a)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e})(Ce);Yt.prototype.type="sector";var WR=(function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r})(),Rl=(function(r){z(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new WR},e.prototype.buildPath=function(t,a){var n=a.cx,i=a.cy,o=Math.PI*2;t.moveTo(n+a.r,i),t.arc(n,i,a.r,0,o,!1),t.moveTo(n+a.r0,i),t.arc(n,i,a.r0,0,o,!0)},e})(Ce);Rl.prototype.type="ring";function $R(r,e,t,a){var n=[],i=[],o=[],s=[],l,u,c,f;if(a){c=[1/0,1/0],f=[-1/0,-1/0];for(var h=0,v=r.length;h<v;h++)Ja(c,c,r[h]),Qa(f,f,r[h]);Ja(c,c,a[0]),Qa(f,f,a[1])}for(var h=0,v=r.length;h<v;h++){var d=r[h];if(t)l=r[h?h-1:v-1],u=r[(h+1)%v];else if(h===0||h===v-1){n.push(Sa(r[h]));continue}else l=r[h-1],u=r[h+1];ri(i,u,l),ac(i,i,e);var p=Zd(d,l),g=Zd(d,u),m=p+g;m!==0&&(p/=m,g/=m),ac(o,i,-p),ac(s,i,g);var y=f0([],d,o),x=f0([],d,s);a&&(Qa(y,y,c),Ja(y,y,f),Qa(x,x,c),Ja(x,x,f)),n.push(y),n.push(x)}return t&&n.push(n.shift()),n}function YT(r,e,t){var a=e.smooth,n=e.points;if(n&&n.length>=2){if(a){var i=$R(n,a,t,e.smoothConstraint);r.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(t?o:o-1);s++){var l=i[s*2],u=i[s*2+1],c=n[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{r.moveTo(n[0][0],n[0][1]);for(var s=1,f=n.length;s<f;s++)r.lineTo(n[s][0],n[s][1])}t&&r.closePath()}}var UR=(function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r})(),Xt=(function(r){z(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new UR},e.prototype.buildPath=function(t,a){YT(t,a,!0)},e})(Ce);Xt.prototype.type="polygon";var YR=(function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r})(),Zt=(function(r){z(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new YR},e.prototype.buildPath=function(t,a){YT(t,a,!1)},e})(Ce);Zt.prototype.type="polyline";var XR={},ZR=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r})(),yt=(function(r){z(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new ZR},e.prototype.buildPath=function(t,a){var n,i,o,s;if(this.subPixelOptimize){var l=MT(XR,a,this.style);n=l.x1,i=l.y1,o=l.x2,s=l.y2}else n=a.x1,i=a.y1,o=a.x2,s=a.y2;var u=a.percent;u!==0&&(t.moveTo(n,i),u<1&&(o=n*(1-u)+o*u,s=i*(1-u)+s*u),t.lineTo(o,s))},e.prototype.pointAt=function(t){var a=this.shape;return[a.x1*(1-t)+a.x2*t,a.y1*(1-t)+a.y2*t]},e})(Ce);yt.prototype.type="line";var qt=[],qR=(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 x1(r,e,t){var a=r.cpx2,n=r.cpy2;return a!=null||n!=null?[(t?w0:mt)(r.x1,r.cpx1,r.cpx2,r.x2,e),(t?w0:mt)(r.y1,r.cpy1,r.cpy2,r.y2,e)]:[(t?ep:Tt)(r.x1,r.cpx1,r.x2,e),(t?ep:Tt)(r.y1,r.cpy1,r.y2,e)]}var El=(function(r){z(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new qR},e.prototype.buildPath=function(t,a){var n=a.x1,i=a.y1,o=a.x2,s=a.y2,l=a.cpx1,u=a.cpy1,c=a.cpx2,f=a.cpy2,h=a.percent;h!==0&&(t.moveTo(n,i),c==null||f==null?(h<1&&(rl(n,l,o,h,qt),l=qt[1],o=qt[2],rl(i,u,s,h,qt),u=qt[1],s=qt[2]),t.quadraticCurveTo(l,u,o,s)):(h<1&&(dn(n,l,c,o,h,qt),l=qt[1],c=qt[2],o=qt[3],dn(i,u,f,s,h,qt),u=qt[1],f=qt[2],s=qt[3]),t.bezierCurveTo(l,u,c,f,o,s)))},e.prototype.pointAt=function(t){return x1(this.shape,t,!1)},e.prototype.tangentAt=function(t){var a=x1(this.shape,t,!0);return No(a,a)},e})(Ce);El.prototype.type="bezier-curve";var KR=(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})(),Vf=(function(r){z(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new KR},e.prototype.buildPath=function(t,a){var n=a.cx,i=a.cy,o=Math.max(a.r,0),s=a.startAngle,l=a.endAngle,u=a.clockwise,c=Math.cos(s),f=Math.sin(s);t.moveTo(c*o+n,f*o+i),t.arc(n,i,o,s,l,!u)},e})(Ce);Vf.prototype.type="arc";var cm=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="compound",t}return e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,a=this.shapeChanged(),n=0;n<t.length;n++)a=a||t[n].shapeChanged();a&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],a=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(a[0],a[1],t[n].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,a){for(var n=a.paths||[],i=0;i<n.length;i++)n[i].buildPath(t,n[i].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],a=0;a<t.length;a++)t[a].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Ce.prototype.getBoundingRect.call(this)},e})(Ce),XT=(function(){function r(e){this.colorStops=e||[]}return r.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},r})(),Nl=(function(r){z(e,r);function e(t,a,n,i,o,s){var l=r.call(this,o)||this;return l.x=t??0,l.y=a??0,l.x2=n??1,l.y2=i??0,l.type="linear",l.global=s||!1,l}return e})(XT),ZT=(function(r){z(e,r);function e(t,a,n,i,o){var s=r.call(this,i)||this;return s.x=t??.5,s.y=a??.5,s.r=n??.5,s.type="radial",s.global=o||!1,s}return e})(XT),On=[0,0],Bn=[0,0],vu=new ge,du=new ge,Bc=(function(){function r(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var a=0;a<4;a++)this._corners[a]=new ge;for(var a=0;a<2;a++)this._axes[a]=new ge;e&&this.fromBoundingRect(e,t)}return r.prototype.fromBoundingRect=function(e,t){var a=this._corners,n=this._axes,i=e.x,o=e.y,s=i+e.width,l=o+e.height;if(a[0].set(i,o),a[1].set(s,o),a[2].set(s,l),a[3].set(i,l),t)for(var u=0;u<4;u++)a[u].transform(t);ge.sub(n[0],a[1],a[0]),ge.sub(n[1],a[3],a[0]),n[0].normalize(),n[1].normalize();for(var u=0;u<2;u++)this._origin[u]=n[u].dot(a[0])},r.prototype.intersect=function(e,t){var a=!0,n=!t;return vu.set(1/0,1/0),du.set(0,0),!this._intersectCheckOneSide(this,e,vu,du,n,1)&&(a=!1,n)||!this._intersectCheckOneSide(e,this,vu,du,n,-1)&&(a=!1,n)||n||ge.copy(t,a?vu:du),a},r.prototype._intersectCheckOneSide=function(e,t,a,n,i,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,e._corners,On),this._getProjMinMaxOnAxis(l,t._corners,Bn),On[1]<Bn[0]||On[0]>Bn[1]){if(s=!1,i)return s;var c=Math.abs(Bn[0]-On[1]),f=Math.abs(On[0]-Bn[1]);Math.min(c,f)>n.len()&&(c<f?ge.scale(n,u,-c*o):ge.scale(n,u,f*o))}else if(a){var c=Math.abs(Bn[0]-On[1]),f=Math.abs(On[0]-Bn[1]);Math.min(c,f)<a.len()&&(c<f?ge.scale(a,u,c*o):ge.scale(a,u,-f*o))}}return s},r.prototype._getProjMinMaxOnAxis=function(e,t,a){for(var n=this._axes[e],i=this._origin,o=t[0].dot(n)+i[e],s=o,l=o,u=1;u<t.length;u++){var c=t[u].dot(n)+i[e];s=Math.min(c,s),l=Math.max(c,l)}a[0]=s,a[1]=l},r})(),JR=[],QR=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return e.prototype.traverse=function(t,a){t.call(a,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,a){a?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,a){a=a||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],a)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var a=this._cursor;a<this._displayables.length;a++)t&&t(this._displayables[a]);for(var a=0;a<this._temporaryDisplayables.length;a++)t&&t(this._temporaryDisplayables[a])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){var a=this._displayables[t];a.parent=this,a.update(),a.parent=null}for(var t=0;t<this._temporaryDisplayables.length;t++){var a=this._temporaryDisplayables[t];a.parent=this,a.update(),a.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new ye(1/0,1/0,-1/0,-1/0),a=0;a<this._displayables.length;a++){var n=this._displayables[a],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(JR)),t.union(i)}this._rect=t}return this._rect},e.prototype.contain=function(t,a){var n=this.transformCoordToLocal(t,a),i=this.getBoundingRect();if(i.contain(n[0],n[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(t,a))return!0}return!1},e})(Cr),qT=Ie();function Vo(r,e,t,a,n){var i;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();i=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=r==="update";if(s){var u=void 0,c=void 0,f=void 0;a?(u=fe(a.duration,200),c=fe(a.easing,"cubicOut"),f=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),c=e.getShallow(l?"animationEasingUpdate":"animationEasing"),f=e.getShallow(l?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(u=i.duration),i.easing!=null&&(c=i.easing),i.delay!=null&&(f=i.delay)),ne(f)&&(f=f(t,n)),ne(u)&&(u=u(t));var h={duration:u||0,delay:f,easing:c};return h}else return null}function fm(r,e,t,a,n,i,o){var s=!1,l;ne(n)?(o=i,i=n,n=null):se(n)&&(i=n.cb,o=n.during,s=n.isFrom,l=n.removeOpt,n=n.dataIndex);var u=r==="leave";u||e.stopAnimation("leave");var c=Vo(r,a,n,u?l||{}:null,a&&a.getAnimationDelayParams?a.getAnimationDelayParams(e,n):null);if(c&&c.duration>0){var f=c.duration,h=c.delay,v=c.easing,d={duration:f,delay:h||0,easing:v,done:i,force:!!i||!!o,setToFinal:!u,scope:r,during:o};s?e.animateFrom(t,d):e.animateTo(t,d)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),i&&i()}function Ee(r,e,t,a,n,i){fm("update",r,e,t,a,n,i)}function Je(r,e,t,a,n,i){fm("enter",r,e,t,a,n,i)}function yo(r){if(!r.__zr)return!0;for(var e=0;e<r.animators.length;e++){var t=r.animators[e];if(t.scope==="leave")return!0}return!1}function pn(r,e,t,a,n,i){yo(r)||fm("leave",r,e,t,a,n,i)}function _1(r,e,t,a){r.removeTextContent(),r.removeTextGuideLine(),pn(r,{style:{opacity:0}},e,t,a)}function ul(r,e,t){function a(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(n){n.isGroup||_1(n,e,t,a)}):_1(r,e,t,a)}function Gr(r){qT(r).oldStyle=r.style}function eE(r){return qT(r).oldStyle}var zc=Math.max,Vc=Math.min,Cp={};function tE(r){return Ce.extend(r)}var rE=NR;function aE(r,e){return rE(r,e)}function Hr(r,e){Cp[r]=e}function hm(r){if(Cp.hasOwnProperty(r))return Cp[r]}function Ff(r,e,t,a){var n=$T(r,e);return t&&(a==="center"&&(t=JT(t,n.getBoundingRect())),QT(n,t)),n}function KT(r,e,t){var a=new At({style:{image:r,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(n){if(t==="center"){var i={width:n.width,height:n.height};a.setStyle(JT(e,i))}}});return a}function JT(r,e){var t=e.width/e.height,a=r.height*t,n;a<=r.width?n=r.height:(a=r.width,n=a/t);var i=r.x+r.width/2,o=r.y+r.height/2;return{x:i-a/2,y:o-n/2,width:a,height:n}}var br=OR;function QT(r,e){if(r.applyTransform){var t=r.getBoundingRect(),a=t.calculateTransform(e);r.applyTransform(a)}}function Co(r,e){return MT(r,r,{lineWidth:e}),r}function nE(r){return LT(r.shape,r.shape,r.style),r}var hc=ai;function pi(r,e){for(var t=Mf([]);r&&r!==e;)wa(t,r.getLocalTransform(),t),r=r.parent;return t}function Vr(r,e,t){return e&&!Ot(e)&&(e=_a.getLocalTransform(e)),t&&(e=Oo([],e)),Lt([],r,e)}function Gf(r,e,t){var a=e[4]===0||e[5]===0||e[0]===0?1:Math.abs(2*e[4]/e[0]),n=e[4]===0||e[5]===0||e[2]===0?1:Math.abs(2*e[4]/e[2]),i=[r==="left"?-a:r==="right"?a:0,r==="top"?-n:r==="bottom"?n:0];return i=Vr(i,e,t),Math.abs(i[0])>Math.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function b1(r){return!r.isGroup}function iE(r){return r.shape!=null}function Ol(r,e,t){if(!r||!e)return;function a(o){var s={};return o.traverse(function(l){b1(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return iE(o)&&(s.shape=G({},o.shape)),s}var i=a(r);e.traverse(function(o){if(b1(o)&&o.anid){var s=i[o.anid];if(s){var l=n(o);o.attr(n(s)),Ee(o,l,t,ce(o).dataIndex)}}})}function eC(r,e){return U(r,function(t){var a=t[0];a=zc(a,e.x),a=Vc(a,e.x+e.width);var n=t[1];return n=zc(n,e.y),n=Vc(n,e.y+e.height),[a,n]})}function oE(r,e){var t=zc(r.x,e.x),a=Vc(r.x+r.width,e.x+e.width),n=zc(r.y,e.y),i=Vc(r.y+r.height,e.y+e.height);if(a>=t&&i>=n)return{x:t,y:n,width:a-t,height:i-n}}function Bl(r,e,t){var a=G({rectHover:!0},e),n=a.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(n.image=r.slice(8),ie(n,t),new At(a)):Ff(r.replace("path://",""),a,t,"center")}function Is(r,e,t,a,n){for(var i=0,o=n[n.length-1];i<n.length;i++){var s=n[i];if(tC(r,e,t,a,s[0],s[1],o[0],o[1]))return!0;o=s}}function tC(r,e,t,a,n,i,o,s){var l=t-r,u=a-e,c=o-n,f=s-i,h=tv(c,f,l,u);if(sE(h))return!1;var v=r-n,d=e-i,p=tv(v,d,l,u)/h;if(p<0||p>1)return!1;var g=tv(v,d,c,f)/h;return!(g<0||g>1)}function tv(r,e,t,a){return r*a-t*e}function sE(r){return r<=1e-6&&r>=-1e-6}function Mi(r){var e=r.itemTooltipOption,t=r.componentModel,a=r.itemName,n=q(e)?{formatter:e}:e,i=t.mainType,o=t.componentIndex,s={componentType:i,name:a,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&L(Me(l),function(c){ee(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=ce(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:a,option:ie({content:a,encodeHTMLContent:!0,formatterParams:s},n)}}function S1(r,e){var t;r.isGroup&&(t=e(r)),t||r.traverse(e)}function _n(r,e){if(r)if(W(r))for(var t=0;t<r.length;t++)S1(r[t],e);else S1(r,e)}Hr("circle",Oa);Hr("ellipse",zf);Hr("sector",Yt);Hr("ring",Rl);Hr("polygon",Xt);Hr("polyline",Zt);Hr("rect",Le);Hr("line",yt);Hr("bezierCurve",El);Hr("arc",Vf);const Li=Object.freeze(Object.defineProperty({__proto__:null,Arc:Vf,BezierCurve:El,BoundingRect:ye,Circle:Oa,CompoundPath:cm,Ellipse:zf,Group:ue,Image:At,IncrementalDisplayable:QR,Line:yt,LinearGradient:Nl,OrientedBoundingRect:Bc,Path:Ce,Point:ge,Polygon:Xt,Polyline:Zt,RadialGradient:ZT,Rect:Le,Ring:Rl,Sector:Yt,Text:Pe,applyTransform:Vr,clipPointsByRect:eC,clipRectByRect:oE,createIcon:Bl,extendPath:aE,extendShape:tE,getShapeClass:hm,getTransform:pi,groupTransition:Ol,initProps:Je,isElementRemoved:yo,lineLineIntersect:tC,linePolygonIntersect:Is,makeImage:KT,makePath:Ff,mergePath:br,registerShape:Hr,removeElement:pn,removeElementWithFadeOut:ul,resizePath:QT,setTooltipConfig:Mi,subPixelOptimize:hc,subPixelOptimizeLine:Co,subPixelOptimizeRect:nE,transformDirection:Gf,traverseElements:_n,updateProps:Ee},Symbol.toStringTag,{value:"Module"}));var Hf={};function rC(r,e){for(var t=0;t<Ut.length;t++){var a=Ut[t],n=e[a],i=r.ensureState(a);i.style=i.style||{},i.style.text=n}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:e.normal}),r.useStates(o,!0)}function Ap(r,e,t){var a=r.labelFetcher,n=r.labelDataIndex,i=r.labelDimIndex,o=e.normal,s;a&&(s=a.getFormattedLabel(n,"normal",null,i,o&&o.get("formatter"),t!=null?{interpolatedValue:t}:null)),s==null&&(s=ne(r.defaultText)?r.defaultText(n,r,t):r.defaultText);for(var l={normal:s},u=0;u<Ut.length;u++){var c=Ut[u],f=e[c];l[c]=fe(a?a.getFormattedLabel(n,c,null,i,f&&f.get("formatter")):null,s)}return l}function Pt(r,e,t,a){t=t||Hf;for(var n=r instanceof Pe,i=!1,o=0;o<sl.length;o++){var s=e[sl[o]];if(s&&s.getShallow("show")){i=!0;break}}var l=n?r:r.getTextContent();if(i){n||(l||(l=new Pe,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=Ap(t,e),c=e.normal,f=!!c.getShallow("show"),h=Xe(c,a&&a.normal,t,!1,!n);h.text=u.normal,n||r.setTextConfig(Fc(c,t,!1));for(var o=0;o<Ut.length;o++){var v=Ut[o],s=e[v];if(s){var d=l.ensureState(v),p=!!fe(s.getShallow("show"),f);if(p!==f&&(d.ignore=!p),d.style=Xe(s,a&&a[v],t,!0,!n),d.style.text=u[v],!n){var g=r.ensureState(v);g.textConfig=Fc(s,t,!0)}}}l.silent=!!c.getShallow("silent"),l.style.x!=null&&(h.x=l.style.x),l.style.y!=null&&(h.y=l.style.y),l.ignore=!f,l.useStyle(h),l.dirty(),t.enableTextSetter&&(Fo(l).setLabelText=function(m){var y=Ap(t,e,m);rC(l,y)})}else l&&(l.ignore=!0);r.dirty()}function bt(r,e){e=e||"label";for(var t={normal:r.getModel(e)},a=0;a<Ut.length;a++){var n=Ut[a];t[n]=r.getModel([n,e])}return t}function Xe(r,e,t,a,n){var i={};return lE(i,r,t,a,n),e&&G(i,e),i}function Fc(r,e,t){e=e||{};var a={},n,i=r.getShallow("rotate"),o=fe(r.getShallow("distance"),t?null:5),s=r.getShallow("offset");return n=r.getShallow("position")||(t?null:"inside"),n==="outside"&&(n=e.defaultOutsidePosition||"top"),n!=null&&(a.position=n),s!=null&&(a.offset=s),i!=null&&(i*=Math.PI/180,a.rotation=i),o!=null&&(a.distance=o),a.outsideFill=r.get("color")==="inherit"?e.inheritColor||null:"auto",a}function lE(r,e,t,a,n){t=t||Hf;var i=e.ecModel,o=i&&i.option.textStyle,s=uE(e),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var c=e.getModel(["rich",u]);A1(l[u]={},c,o,t,a,n,!1,!0)}}l&&(r.rich=l);var f=e.get("overflow");f&&(r.overflow=f);var h=e.get("minMargin");h!=null&&(r.margin=h),A1(r,e,o,t,a,n,!0,!1)}function uE(r){for(var e;r&&r!==r.ecModel;){var t=(r.option||Hf).rich;if(t){e=e||{};for(var a=Me(t),n=0;n<a.length;n++){var i=a[n];e[i]=1}}r=r.parentModel}return e}var w1=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],T1=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],C1=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function A1(r,e,t,a,n,i,o,s){t=!n&&t||Hf;var l=a&&a.inheritColor,u=e.getShallow("color"),c=e.getShallow("textBorderColor"),f=fe(e.getShallow("opacity"),t.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(c==="inherit"||c==="auto")&&(l?c=l:c=null),i||(u=u||t.color,c=c||t.textBorderColor),u!=null&&(r.fill=u),c!=null&&(r.stroke=c);var h=fe(e.getShallow("textBorderWidth"),t.textBorderWidth);h!=null&&(r.lineWidth=h);var v=fe(e.getShallow("textBorderType"),t.textBorderType);v!=null&&(r.lineDash=v);var d=fe(e.getShallow("textBorderDashOffset"),t.textBorderDashOffset);d!=null&&(r.lineDashOffset=d),!n&&f==null&&!s&&(f=a&&a.defaultOpacity),f!=null&&(r.opacity=f),!n&&!i&&r.fill==null&&a.inheritColor&&(r.fill=a.inheritColor);for(var p=0;p<w1.length;p++){var g=w1[p],m=fe(e.getShallow(g),t[g]);m!=null&&(r[g]=m)}for(var p=0;p<T1.length;p++){var g=T1[p],m=e.getShallow(g);m!=null&&(r[g]=m)}if(r.verticalAlign==null){var y=e.getShallow("baseline");y!=null&&(r.verticalAlign=y)}if(!o||!a.disableBox){for(var p=0;p<C1.length;p++){var g=C1[p],m=e.getShallow(g);m!=null&&(r[g]=m)}var x=e.getShallow("borderType");x!=null&&(r.borderDash=x),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&l&&(r.backgroundColor=l),(r.borderColor==="auto"||r.borderColor==="inherit")&&l&&(r.borderColor=l)}}function vm(r,e){var t=e&&e.getModel("textStyle");return Or([r.fontStyle||t&&t.getShallow("fontStyle")||"",r.fontWeight||t&&t.getShallow("fontWeight")||"",(r.fontSize||t&&t.getShallow("fontSize")||12)+"px",r.fontFamily||t&&t.getShallow("fontFamily")||"sans-serif"].join(" "))}var Fo=Ie();function aC(r,e,t,a){if(r){var n=Fo(r);n.prevValue=n.value,n.value=t;var i=e.normal;n.valueAnimation=i.get("valueAnimation"),n.valueAnimation&&(n.precision=i.get("precision"),n.defaultInterpolatedText=a,n.statesModels=e)}}function nC(r,e,t,a,n){var i=Fo(r);if(!i.valueAnimation||i.prevValue===i.value)return;var o=i.defaultInterpolatedText,s=fe(i.interpolatedValue,i.prevValue),l=i.value;function u(c){var f=_T(t,i.precision,s,l,c);i.interpolatedValue=c===1?null:f;var h=Ap({labelDataIndex:e,labelFetcher:n,defaultText:o?o(f):f+""},i.statesModels,f);rC(r,h)}r.percent=0,(i.prevValue==null?Je:Ee)(r,{percent:1},a,e,null,u)}var cE=["textStyle","color"],rv=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],av=new Pe,fE=(function(){function r(){}return r.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(cE):null)},r.prototype.getFont=function(){return vm({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},a=0;a<rv.length;a++)t[rv[a]]=this.getShallow(rv[a]);return av.useStyle(t),av.update(),av.getBoundingRect()},r})(),iC=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],hE=bi(iC),vE=(function(){function r(){}return r.prototype.getLineStyle=function(e){return hE(this,e)},r})(),oC=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],dE=bi(oC),pE=(function(){function r(){}return r.prototype.getItemStyle=function(e,t){return dE(this,e,t)},r})(),Ge=(function(){function r(e,t,a){this.parentModel=t,this.ecModel=a,this.option=e}return r.prototype.init=function(e,t,a){},r.prototype.mergeOption=function(e,t){pe(this.option,e,!0)},r.prototype.get=function(e,t){return e==null?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},r.prototype.getShallow=function(e,t){var a=this.option,n=a==null?a:a[e];if(n==null&&!t){var i=this.parentModel;i&&(n=i.getShallow(e))}return n},r.prototype.getModel=function(e,t){var a=e!=null,n=a?this.parsePath(e):null,i=a?this._doGet(n):this.option;return t=t||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(n)),new r(i,t,this.ecModel)},r.prototype.isEmpty=function(){return this.option==null},r.prototype.restoreData=function(){},r.prototype.clone=function(){var e=this.constructor;return new e(le(this.option))},r.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},r.prototype.resolveParentPath=function(e){return e},r.prototype.isAnimationEnabled=function(){if(!Ae.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(e,t){var a=this.option;if(!e)return a;for(var n=0;n<e.length&&!(e[n]&&(a=a&&typeof a=="object"?a[e[n]]:null,a==null));n++);return a==null&&t&&(a=t._doGet(this.resolveParentPath(e),t.parentModel)),a},r})();tm(Ge);T3(Ge);ut(Ge,vE);ut(Ge,pE);ut(Ge,L3);ut(Ge,fE);var gE=Math.round(Math.random()*10);function Go(r){return[r||"",gE++].join("_")}function mE(r){var e={};r.registerSubTypeDefaulter=function(t,a){var n=ra(t);e[n.main]=a},r.determineSubType=function(t,a){var n=a.type;if(!n){var i=ra(t).main;r.hasSubTypes(t)&&e[i]&&(n=e[i](a))}return n}}function yE(r,e){r.topologicalTravel=function(i,o,s,l){if(!i.length)return;var u=t(o),c=u.graph,f=u.noEntryList,h={};for(L(i,function(y){h[y]=!0});f.length;){var v=f.pop(),d=c[v],p=!!h[v];p&&(s.call(l,v,d.originalDeps.slice()),delete h[v]),L(d.successor,p?m:g)}L(h,function(){var y="";throw new Error(y)});function g(y){c[y].entryCount--,c[y].entryCount===0&&f.push(y)}function m(y){h[y]=!0,g(y)}};function t(i){var o={},s=[];return L(i,function(l){var u=a(o,l),c=u.originalDeps=e(l),f=n(c,i);u.entryCount=f.length,u.entryCount===0&&s.push(l),L(f,function(h){_e(u.predecessor,h)<0&&u.predecessor.push(h);var v=a(o,h);_e(v.successor,h)<0&&v.successor.push(l)})}),{graph:o,noEntryList:s}}function a(i,o){return i[o]||(i[o]={predecessor:[],successor:[]}),i[o]}function n(i,o){var s=[];return L(i,function(l){_e(o,l)>=0&&s.push(l)}),s}}function bn(r,e){return pe(pe({},r,!0),e,!0)}const xE={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:". "}}}},_E={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 Gc="ZH",dm="EN",xo=dm,vc={},pm={},sC=Ae.domSupported?(function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||xo).toUpperCase();return r.indexOf(Gc)>-1?Gc:xo})():xo;function lC(r,e){r=r.toUpperCase(),pm[r]=new Ge(e),vc[r]=e}function bE(r){if(q(r)){var e=vc[r.toUpperCase()]||{};return r===Gc||r===dm?le(e):pe(le(e),le(vc[xo]),!1)}else return pe(le(r),le(vc[xo]),!1)}function Dp(r){return pm[r]}function SE(){return pm[xo]}lC(dm,xE);lC(Gc,_E);var gm=1e3,mm=gm*60,Ys=mm*60,Sr=Ys*24,D1=Sr*365,Ps={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},pu="{yyyy}-{MM}-{dd}",M1={year:"{yyyy}",month:"{yyyy}-{MM}",day:pu,hour:pu+" "+Ps.hour,minute:pu+" "+Ps.minute,second:pu+" "+Ps.second,millisecond:Ps.none},nv=["year","month","day","hour","minute","second","millisecond"],uC=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Fa(r,e){return r+="","0000".substr(0,e-r.length)+r}function _o(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function wE(r){return r===_o(r)}function TE(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function jf(r,e,t,a){var n=ca(r),i=n[ym(t)](),o=n[bo(t)]()+1,s=Math.floor((o-1)/3)+1,l=n[Wf(t)](),u=n["get"+(t?"UTC":"")+"Day"](),c=n[cl(t)](),f=(c-1)%12+1,h=n[$f(t)](),v=n[Uf(t)](),d=n[Yf(t)](),p=c>=12?"pm":"am",g=p.toUpperCase(),m=a instanceof Ge?a:Dp(a||sC)||SE(),y=m.getModel("time"),x=y.get("month"),_=y.get("monthAbbr"),b=y.get("dayOfWeek"),S=y.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,p+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Fa(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,x[o-1]).replace(/{MMM}/g,_[o-1]).replace(/{MM}/g,Fa(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Fa(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Fa(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Fa(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,Fa(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Fa(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,Fa(d,3)).replace(/{S}/g,d+"")}function CE(r,e,t,a,n){var i=null;if(q(t))i=t;else if(ne(t))i=t(r.value,e,{level:r.level});else{var o=G({},Ps);if(r.level>0)for(var s=0;s<nv.length;++s)o[nv[s]]="{primary|"+o[nv[s]]+"}";var l=t?t.inherit===!1?t:ie(t,o):o,u=cC(r.value,n);if(l[u])i=l[u];else if(l.inherit){for(var c=uC.indexOf(u),s=c-1;s>=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(W(i)){var f=r.level==null?0:r.level>=0?r.level:i.length+r.level;f=Math.min(f,i.length-1),i=i[f]}}return jf(new Date(r.value),i,n,a)}function cC(r,e){var t=ca(r),a=t[bo(e)]()+1,n=t[Wf(e)](),i=t[cl(e)](),o=t[$f(e)](),s=t[Uf(e)](),l=t[Yf(e)](),u=l===0,c=u&&s===0,f=c&&o===0,h=f&&i===0,v=h&&n===1,d=v&&a===1;return d?"year":v?"month":h?"day":f?"hour":c?"minute":u?"second":"millisecond"}function L1(r,e,t){var a=ke(r)?ca(r):r;switch(e=e||cC(r,t),e){case"year":return a[ym(t)]();case"half-year":return a[bo(t)]()>=6?1:0;case"quarter":return Math.floor((a[bo(t)]()+1)/4);case"month":return a[bo(t)]();case"day":return a[Wf(t)]();case"half-day":return a[cl(t)]()/24;case"hour":return a[cl(t)]();case"minute":return a[$f(t)]();case"second":return a[Uf(t)]();case"millisecond":return a[Yf(t)]()}}function ym(r){return r?"getUTCFullYear":"getFullYear"}function bo(r){return r?"getUTCMonth":"getMonth"}function Wf(r){return r?"getUTCDate":"getDate"}function cl(r){return r?"getUTCHours":"getHours"}function $f(r){return r?"getUTCMinutes":"getMinutes"}function Uf(r){return r?"getUTCSeconds":"getSeconds"}function Yf(r){return r?"getUTCMilliseconds":"getMilliseconds"}function AE(r){return r?"setUTCFullYear":"setFullYear"}function fC(r){return r?"setUTCMonth":"setMonth"}function hC(r){return r?"setUTCDate":"setDate"}function vC(r){return r?"setUTCHours":"setHours"}function dC(r){return r?"setUTCMinutes":"setMinutes"}function pC(r){return r?"setUTCSeconds":"setSeconds"}function gC(r){return r?"setUTCMilliseconds":"setMilliseconds"}function mC(r){if(!hT(r))return q(r)?r:"-";var e=(r+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function yC(r,e){return r=(r||"").toLowerCase().replace(/-(.)/g,function(t,a){return a.toUpperCase()}),e&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var Ho=$g;function Mp(r,e,t){var a="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(c){return c&&Or(c)?c:"-"}function i(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=e==="time",s=r instanceof Date;if(o||s){var l=o?ca(r):r;if(isNaN(+l)){if(s)return"-"}else return jf(l,a,t)}if(e==="ordinal")return Ud(r)?n(r):ke(r)&&i(r)?r+"":"-";var u=Ma(r);return i(u)?mC(u):Ud(r)?n(r):typeof r=="boolean"?r+"":"-"}var I1=["a","b","c","d","e","f","g"],iv=function(r,e){return"{"+r+(e??"")+"}"};function xC(r,e,t){W(e)||(e=[e]);var a=e.length;if(!a)return"";for(var n=e[0].$vars||[],i=0;i<n.length;i++){var o=I1[i];r=r.replace(iv(o),iv(o,0))}for(var s=0;s<a;s++)for(var l=0;l<n.length;l++){var u=e[s][n[l]];r=r.replace(iv(I1[l],s),t?Ht(u):u)}return r}function DE(r,e,t){return L(e,function(a,n){r=r.replace("{"+n+"}",a)}),r}function ME(r,e){var t=q(r)?{color:r,extraCssText:e}:r||{},a=t.color,n=t.type;e=t.extraCssText;var i=t.renderMode||"html";if(!a)return"";if(i==="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:'+Ht(a)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Ht(a)+";"+(e||"")+'"></span>';var o=t.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:a}:{width:10,height:10,borderRadius:5,backgroundColor:a}}}function wi(r,e){return e=e||"transparent",q(r)?r:se(r)&&r.colorStops&&(r.colorStops[0]||{}).color||e}function Hc(r,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=r}else window.open(r,e)}var dc=L,_C=["left","right","top","bottom","width","height"],ii=[["width","left","right"],["height","top","bottom"]];function xm(r,e,t,a,n){var i=0,o=0;a==null&&(a=1/0),n==null&&(n=1/0);var s=0;e.eachChild(function(l,u){var c=l.getBoundingRect(),f=e.childAt(u+1),h=f&&f.getBoundingRect(),v,d;if(r==="horizontal"){var p=c.width+(h?-h.x+c.x:0);v=i+p,v>a||l.newline?(i=0,v=p,o+=s+t,s=c.height):s=Math.max(s,c.height)}else{var g=c.height+(h?-h.y+c.y:0);d=o+g,d>n||l.newline?(i+=s+t,o=0,d=g,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),r==="horizontal"?i=v+t:o=d+t)})}var gi=xm;ve(xm,"vertical");ve(xm,"horizontal");function LE(r,e,t){var a=e.width,n=e.height,i=X(r.left,a),o=X(r.top,n),s=X(r.right,a),l=X(r.bottom,n);return(isNaN(i)||isNaN(parseFloat(r.left)))&&(i=0),(isNaN(s)||isNaN(parseFloat(r.right)))&&(s=a),(isNaN(o)||isNaN(parseFloat(r.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(r.bottom)))&&(l=n),t=Ho(t||0),{width:Math.max(s-i-t[1]-t[3],0),height:Math.max(l-o-t[0]-t[2],0)}}function gt(r,e,t){t=Ho(t||0);var a=e.width,n=e.height,i=X(r.left,a),o=X(r.top,n),s=X(r.right,a),l=X(r.bottom,n),u=X(r.width,a),c=X(r.height,n),f=t[2]+t[0],h=t[1]+t[3],v=r.aspect;switch(isNaN(u)&&(u=a-s-h-i),isNaN(c)&&(c=n-l-f-o),v!=null&&(isNaN(u)&&isNaN(c)&&(v>a/n?u=a*.8:c=n*.8),isNaN(u)&&(u=v*c),isNaN(c)&&(c=u/v)),isNaN(i)&&(i=a-s-u-h),isNaN(o)&&(o=n-l-c-f),r.left||r.right){case"center":i=a/2-u/2-t[3];break;case"right":i=a-u-h;break}switch(r.top||r.bottom){case"middle":case"center":o=n/2-c/2-t[0];break;case"bottom":o=n-c-f;break}i=i||0,o=o||0,isNaN(u)&&(u=a-h-i-(s||0)),isNaN(c)&&(c=n-f-o-(l||0));var d=new ye(i+t[3],o+t[0],u,c);return d.margin=t,d}function Xf(r,e,t,a,n,i){var o=!n||!n.hv||n.hv[0],s=!n||!n.hv||n.hv[1],l=n&&n.boundingMode||"all";if(i=i||r,i.x=r.x,i.y=r.y,!o&&!s)return!1;var u;if(l==="raw")u=r.type==="group"?new ye(0,0,+e.width||0,+e.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var c=r.getLocalTransform();u=u.clone(),u.applyTransform(c)}var f=gt(ie({width:u.width,height:u.height},e),t,a),h=o?f.x-u.x:0,v=s?f.y-u.y:0;return l==="raw"?(i.x=h,i.y=v):(i.x+=h,i.y+=v),i===r&&r.markRedraw(),!0}function IE(r,e){return r[ii[e][0]]!=null||r[ii[e][1]]!=null&&r[ii[e][2]]!=null}function fl(r){var e=r.layoutMode||r.constructor.layoutMode;return se(e)?e:e?{type:e}:null}function gn(r,e,t){var a=t&&t.ignoreSize;!W(a)&&(a=[a,a]);var n=o(ii[0],0),i=o(ii[1],1);u(ii[0],r,n),u(ii[1],r,i);function o(c,f){var h={},v=0,d={},p=0,g=2;if(dc(c,function(x){d[x]=r[x]}),dc(c,function(x){s(e,x)&&(h[x]=d[x]=e[x]),l(h,x)&&v++,l(d,x)&&p++}),a[f])return l(e,c[1])?d[c[2]]=null:l(e,c[2])&&(d[c[1]]=null),d;if(p===g||!v)return d;if(v>=g)return h;for(var m=0;m<c.length;m++){var y=c[m];if(!s(h,y)&&s(r,y)){h[y]=r[y];break}}return h}function s(c,f){return c.hasOwnProperty(f)}function l(c,f){return c[f]!=null&&c[f]!=="auto"}function u(c,f,h){dc(c,function(v){f[v]=h[v]})}}function jo(r){return bC({},r)}function bC(r,e){return e&&r&&dc(_C,function(t){e.hasOwnProperty(t)&&(r[t]=e[t])}),r}var PE=Ie(),De=(function(r){z(e,r);function e(t,a,n){var i=r.call(this,t,a,n)||this;return i.uid=Go("ec_cpt_model"),i}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n)},e.prototype.mergeDefaultAndTheme=function(t,a){var n=fl(this),i=n?jo(t):{},o=a.getTheme();pe(t,o.get(this.mainType)),pe(t,this.getDefaultOption()),n&&gn(t,i,n)},e.prototype.mergeOption=function(t,a){pe(this.option,t,!0);var n=fl(this);n&&gn(this.option,t,n)},e.prototype.optionUpdated=function(t,a){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!b3(t))return t.defaultOption;var a=PE(this);if(!a.defaultOption){for(var n=[],i=t;i;){var o=i.prototype.defaultOption;o&&n.push(o),i=i.superClass}for(var s={},l=n.length-1;l>=0;l--)s=pe(s,n[l],!0);a.defaultOption=s}return a.defaultOption},e.prototype.getReferringComponents=function(t,a){var n=t+"Index",i=t+"Id";return Pl(this.ecModel,t,{index:this.get(n,!0),id:this.get(i,!0)},a)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=(function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0})(),e})(Ge);ST(De,Ge);kf(De);mE(De);yE(De,kE);function kE(r){var e=[];return L(De.getClassesByMainType(r),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=U(e,function(t){return ra(t).main}),r!=="dataset"&&_e(e,"dataset")<=0&&e.unshift("dataset"),e}var SC="";typeof navigator<"u"&&(SC=navigator.platform||"");var Wi="rgba(0, 0, 0, 0.2)";const RE={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],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:SC.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 wC=re(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Dr="original",Bt="arrayRows",Mr="objectRows",ha="keyedColumns",un="typedArray",TC="unknown",oa="column",Wo="row",Mt={Must:1,Might:2,Not:3},CC=Ie();function EE(r){CC(r).datasetMap=re()}function AC(r,e,t){var a={},n=bm(e);if(!n||!r)return a;var i=[],o=[],s=e.ecModel,l=CC(s).datasetMap,u=n.uid+"_"+t.seriesLayoutBy,c,f;r=r.slice(),L(r,function(p,g){var m=se(p)?p:r[g]={name:p};m.type==="ordinal"&&c==null&&(c=g,f=d(m)),a[m.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});L(r,function(p,g){var m=p.name,y=d(p);if(c==null){var x=h.valueWayDim;v(a[m],x,y),v(o,x,y),h.valueWayDim+=y}else if(c===g)v(a[m],0,y),v(i,0,y);else{var x=h.categoryWayDim;v(a[m],x,y),v(o,x,y),h.categoryWayDim+=y}});function v(p,g,m){for(var y=0;y<m;y++)p.push(g+y)}function d(p){var g=p.dimsDef;return g?g.length:1}return i.length&&(a.itemName=i),o.length&&(a.seriesName=o),a}function _m(r,e,t){var a={},n=bm(r);if(!n)return a;var i=e.sourceFormat,o=e.dimensionsDefine,s;(i===Mr||i===ha)&&L(o,function(c,f){(se(c)?c.name:c)==="name"&&(s=f)});var l=(function(){for(var c={},f={},h=[],v=0,d=Math.min(5,t);v<d;v++){var p=MC(e.data,i,e.seriesLayoutBy,o,e.startIndex,v);h.push(p);var g=p===Mt.Not;if(g&&c.v==null&&v!==s&&(c.v=v),(c.n==null||c.n===c.v||!g&&h[c.n]===Mt.Not)&&(c.n=v),m(c)&&h[c.n]!==Mt.Not)return c;g||(p===Mt.Might&&f.v==null&&v!==s&&(f.v=v),(f.n==null||f.n===f.v)&&(f.n=v))}function m(y){return y.v!=null&&y.n!=null}return m(c)?c:m(f)?f:null})();if(l){a.value=[l.v];var u=s??l.n;a.itemName=[u],a.seriesName=[u]}return a}function bm(r){var e=r.get("data",!0);if(!e)return Pl(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},st).models[0]}function NE(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:Pl(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},st).models}function DC(r,e){return MC(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,e)}function MC(r,e,t,a,n,i){var o,s=5;if(tr(r))return Mt.Not;var l,u;if(a){var c=a[i];se(c)?(l=c.name,u=c.type):q(c)&&(l=c)}if(u!=null)return u==="ordinal"?Mt.Must:Mt.Not;if(e===Bt){var f=r;if(t===Wo){for(var h=f[i],v=0;v<(h||[]).length&&v<s;v++)if((o=_(h[n+v]))!=null)return o}else for(var v=0;v<f.length&&v<s;v++){var d=f[n+v];if(d&&(o=_(d[i]))!=null)return o}}else if(e===Mr){var p=r;if(!l)return Mt.Not;for(var v=0;v<p.length&&v<s;v++){var g=p[v];if(g&&(o=_(g[l]))!=null)return o}}else if(e===ha){var m=r;if(!l)return Mt.Not;var h=m[l];if(!h||tr(h))return Mt.Not;for(var v=0;v<h.length&&v<s;v++)if((o=_(h[v]))!=null)return o}else if(e===Dr)for(var y=r,v=0;v<y.length&&v<s;v++){var g=y[v],x=Bo(g);if(!W(x))return Mt.Not;if((o=_(x[i]))!=null)return o}function _(b){var S=q(b);if(b!=null&&Number.isFinite(Number(b))&&b!=="")return S?Mt.Might:Mt.Not;if(S&&b!=="-")return Mt.Must}return Mt.Not}var Lp=re();function OE(r,e){$t(Lp.get(r)==null&&e),Lp.set(r,e)}function BE(r,e,t){var a=Lp.get(e);if(!a)return t;var n=a(r);return n?t.concat(n):t}var P1=Ie(),zE=Ie(),Sm=(function(){function r(){}return r.prototype.getColorFromPalette=function(e,t,a){var n=je(this.get("color",!0)),i=this.get("colorLayer",!0);return LC(this,P1,n,i,e,t,a)},r.prototype.clearColorPalette=function(){FE(this,P1)},r})();function Ip(r,e,t,a){var n=je(r.get(["aria","decal","decals"]));return LC(r,zE,n,null,e,t,a)}function VE(r,e){for(var t=r.length,a=0;a<t;a++)if(r[a].length>e)return r[a];return r[t-1]}function LC(r,e,t,a,n,i,o){i=i||r;var s=e(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(n))return u[n];var c=o==null||!a?t:VE(a,o);if(c=c||t,!(!c||!c.length)){var f=c[l];return n&&(u[n]=f),s.paletteIdx=(l+1)%c.length,f}}function FE(r,e){e(r).paletteIdx=0,e(r).paletteNameMap={}}var gu,is,k1,R1="\0_ec_inner",GE=1,wm=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t,a,n,i,o,s){i=i||{},this.option=null,this._theme=new Ge(i),this._locale=new Ge(o),this._optionManager=s},e.prototype.setOption=function(t,a,n){var i=O1(a);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,a){return this._resetOption(t,O1(a))},e.prototype._resetOption=function(t,a){var n=!1,i=this._optionManager;if(!t||t==="recreate"){var o=i.mountOption(t==="recreate");!this.option||t==="recreate"?k1(this,o):(this.restoreData(),this._mergeOption(o,a)),n=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=i.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,a))}if(!t||t==="recreate"||t==="media"){var l=i.getMediaOption(this);l.length&&L(l,function(u){n=!0,this._mergeOption(u,a)},this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,a){var n=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=re(),u=a&&a.replaceMergeMainTypeMap;EE(this),L(t,function(f,h){f!=null&&(De.hasClass(h)?h&&(s.push(h),l.set(h,!0)):n[h]=n[h]==null?le(f):pe(n[h],f,!0))}),u&&u.each(function(f,h){De.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),De.topologicalTravel(s,De.getAllClassMainTypes(),c,this);function c(f){var h=BE(this,f,je(t[f])),v=i.get(f),d=v?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",p=mT(v,h,d);h3(p,f,De),n[f]=null,i.set(f,null),o.set(f,0);var g=[],m=[],y=0,x;L(p,function(_,b){var S=_.existing,w=_.newOption;if(!w)S&&(S.mergeOption({},this),S.optionUpdated({},!1));else{var C=f==="series",A=De.getClass(f,_.keyInfo.subType,!C);if(!A)return;if(f==="tooltip"){if(x)return;x=!0}if(S&&S.constructor===A)S.name=_.keyInfo.name,S.mergeOption(w,this),S.optionUpdated(w,!1);else{var D=G({componentIndex:b},_.keyInfo);S=new A(w,this,this,D),G(S,D),_.brandNew&&(S.__requireNewView=!0),S.init(w,this,this),S.optionUpdated(null,!0)}}S?(g.push(S.option),m.push(S),y++):(g.push(void 0),m.push(void 0))},this),n[f]=g,i.set(f,m),o.set(f,y),f==="series"&&gu(this)}this._seriesIndices||gu(this)},e.prototype.getOption=function(){var t=le(this.option);return L(t,function(a,n){if(De.hasClass(n)){for(var i=je(a),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!ol(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,t[n]=i}}),delete t[R1],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,a){var n=this._componentsMap.get(t);if(n){var i=n[a||0];if(i)return i;if(a==null){for(var o=0;o<n.length;o++)if(n[o])return n[o]}}},e.prototype.queryComponents=function(t){var a=t.mainType;if(!a)return[];var n=t.index,i=t.id,o=t.name,s=this._componentsMap.get(a);if(!s||!s.length)return[];var l;return n!=null?(l=[],L(je(n),function(u){s[u]&&l.push(s[u])})):i!=null?l=E1("id",i,s):o!=null?l=E1("name",o,s):l=ze(s,function(u){return!!u}),N1(l,t)},e.prototype.findComponents=function(t){var a=t.query,n=t.mainType,i=s(a),o=i?this.queryComponents(i):ze(this._componentsMap.get(n),function(u){return!!u});return l(N1(o,t));function s(u){var c=n+"Index",f=n+"Id",h=n+"Name";return u&&(u[c]!=null||u[f]!=null||u[h]!=null)?{mainType:n,index:u[c],id:u[f],name:u[h]}:null}function l(u){return t.filter?ze(u,t.filter):u}},e.prototype.eachComponent=function(t,a,n){var i=this._componentsMap;if(ne(t)){var o=a,s=t;i.each(function(f,h){for(var v=0;f&&v<f.length;v++){var d=f[v];d&&s.call(o,h,d,d.componentIndex)}})}else for(var l=q(t)?i.get(t):se(t)?this.findComponents(t):null,u=0;l&&u<l.length;u++){var c=l[u];c&&a.call(n,c,c.componentIndex)}},e.prototype.getSeriesByName=function(t){var a=pt(t,null);return ze(this._componentsMap.get("series"),function(n){return!!n&&a!=null&&n.name===a})},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return ze(this._componentsMap.get("series"),function(a){return!!a&&a.subType===t})},e.prototype.getSeries=function(){return ze(this._componentsMap.get("series"),function(t){return!!t})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,a){is(this),L(this._seriesIndices,function(n){var i=this._componentsMap.get("series")[n];t.call(a,i,n)},this)},e.prototype.eachRawSeries=function(t,a){L(this._componentsMap.get("series"),function(n){n&&t.call(a,n,n.componentIndex)})},e.prototype.eachSeriesByType=function(t,a,n){is(this),L(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===t&&a.call(n,o,i)},this)},e.prototype.eachRawSeriesByType=function(t,a,n){return L(this.getSeriesByType(t),a,n)},e.prototype.isSeriesFiltered=function(t){return is(this),this._seriesIndicesMap.get(t.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,a){is(this);var n=[];L(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];t.call(a,o,i)&&n.push(i)},this),this._seriesIndices=n,this._seriesIndicesMap=re(n)},e.prototype.restoreData=function(t){gu(this);var a=this._componentsMap,n=[];a.each(function(i,o){De.hasClass(o)&&n.push(o)}),De.topologicalTravel(n,De.getAllClassMainTypes(),function(i){L(a.get(i),function(o){o&&(i!=="series"||!HE(o,t))&&o.restoreData()})})},e.internalField=(function(){gu=function(t){var a=t._seriesIndices=[];L(t._componentsMap.get("series"),function(n){n&&a.push(n.componentIndex)}),t._seriesIndicesMap=re(a)},is=function(t){},k1=function(t,a){t.option={},t.option[R1]=GE,t._componentsMap=re({series:[]}),t._componentsCount=re();var n=a.aria;se(n)&&n.enabled==null&&(n.enabled=!0),jE(a,t._theme.option),pe(a,RE,!1),t._mergeOption(a,null)}})(),e})(Ge);function HE(r,e){if(e){var t=e.seriesIndex,a=e.seriesId,n=e.seriesName;return t!=null&&r.componentIndex!==t||a!=null&&r.id!==a||n!=null&&r.name!==n}}function jE(r,e){var t=r.color&&!r.colorLayer;L(e,function(a,n){n==="colorLayer"&&t||De.hasClass(n)||(typeof a=="object"?r[n]=r[n]?pe(r[n],a,!1):le(a):r[n]==null&&(r[n]=a))})}function E1(r,e,t){if(W(e)){var a=re();return L(e,function(i){if(i!=null){var o=pt(i,null);o!=null&&a.set(i,!0)}}),ze(t,function(i){return i&&a.get(i[r])})}else{var n=pt(e,null);return ze(t,function(i){return i&&n!=null&&i[r]===n})}}function N1(r,e){return e.hasOwnProperty("subType")?ze(r,function(t){return t&&t.subType===e.subType}):r}function O1(r){var e=re();return r&&L(je(r.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}ut(wm,Sm);var WE=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],IC=(function(){function r(e){L(WE,function(t){this[t]=Q(e[t],e)},this)}return r})(),ov={},zl=(function(){function r(){this._coordinateSystems=[]}return r.prototype.create=function(e,t){var a=[];L(ov,function(n,i){var o=n.create(e,t);a=a.concat(o||[])}),this._coordinateSystems=a},r.prototype.update=function(e,t){L(this._coordinateSystems,function(a){a.update&&a.update(e,t)})},r.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},r.register=function(e,t){ov[e]=t},r.get=function(e){return ov[e]},r})(),$E=/^(min|max)?(.+)$/,UE=(function(){function r(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return r.prototype.setOption=function(e,t,a){e&&(L(je(e.series),function(o){o&&o.data&&tr(o.data)&&Ac(o.data)}),L(je(e.dataset),function(o){o&&o.source&&tr(o.source)&&Ac(o.source)})),e=le(e);var n=this._optionBackup,i=YE(e,t,!n);this._newBaseOption=i.baseOption,n?(i.timelineOptions.length&&(n.timelineOptions=i.timelineOptions),i.mediaList.length&&(n.mediaList=i.mediaList),i.mediaDefault&&(n.mediaDefault=i.mediaDefault)):this._optionBackup=i},r.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],le(e?t.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(e){var t,a=this._timelineOptions;if(a.length){var n=e.getComponent("timeline");n&&(t=le(a[n.getCurrentIndex()]))}return t},r.prototype.getMediaOption=function(e){var t=this._api.getWidth(),a=this._api.getHeight(),n=this._mediaList,i=this._mediaDefault,o=[],s=[];if(!n.length&&!i)return s;for(var l=0,u=n.length;l<u;l++)XE(n[l].query,t,a)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!qE(o,this._currentMediaIndices)&&(s=U(o,function(c){return le(c===-1?i.option:n[c].option)})),this._currentMediaIndices=o,s},r})();function YE(r,e,t){var a=[],n,i,o=r.baseOption,s=r.timeline,l=r.options,u=r.media,c=!!r.media,f=!!(l||s||o&&o.timeline);o?(i=o,i.timeline||(i.timeline=s)):((f||c)&&(r.options=r.media=null),i=r),c&&W(u)&&L(u,function(v){v&&v.option&&(v.query?a.push(v):n||(n=v))}),h(i),L(l,function(v){return h(v)}),L(a,function(v){return h(v.option)});function h(v){L(e,function(d){d(v,t)})}return{baseOption:i,timelineOptions:l||[],mediaDefault:n,mediaList:a}}function XE(r,e,t){var a={width:e,height:t,aspectratio:e/t},n=!0;return L(r,function(i,o){var s=o.match($E);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();ZE(a[u],i,l)||(n=!1)}}),n}function ZE(r,e,t){return t==="min"?r>=e:t==="max"?r<=e:r===e}function qE(r,e){return r.join(",")===e.join(",")}var Ir=L,hl=se,B1=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function sv(r){var e=r&&r.itemStyle;if(e)for(var t=0,a=B1.length;t<a;t++){var n=B1[t],i=e.normal,o=e.emphasis;i&&i[n]&&(r[n]=r[n]||{},r[n].normal?pe(r[n].normal,i[n]):r[n].normal=i[n],i[n]=null),o&&o[n]&&(r[n]=r[n]||{},r[n].emphasis?pe(r[n].emphasis,o[n]):r[n].emphasis=o[n],o[n]=null)}}function Nt(r,e,t){if(r&&r[e]&&(r[e].normal||r[e].emphasis)){var a=r[e].normal,n=r[e].emphasis;a&&(t?(r[e].normal=r[e].emphasis=null,ie(r[e],a)):r[e]=a),n&&(r.emphasis=r.emphasis||{},r.emphasis[e]=n,n.focus&&(r.emphasis.focus=n.focus),n.blurScope&&(r.emphasis.blurScope=n.blurScope))}}function ks(r){Nt(r,"itemStyle"),Nt(r,"lineStyle"),Nt(r,"areaStyle"),Nt(r,"label"),Nt(r,"labelLine"),Nt(r,"upperLabel"),Nt(r,"edgeLabel")}function ot(r,e){var t=hl(r)&&r[e],a=hl(t)&&t.textStyle;if(a)for(var n=0,i=j0.length;n<i;n++){var o=j0[n];a.hasOwnProperty(o)&&(t[o]=a[o])}}function gr(r){r&&(ks(r),ot(r,"label"),r.emphasis&&ot(r.emphasis,"label"))}function KE(r){if(hl(r)){sv(r),ks(r),ot(r,"label"),ot(r,"upperLabel"),ot(r,"edgeLabel"),r.emphasis&&(ot(r.emphasis,"label"),ot(r.emphasis,"upperLabel"),ot(r.emphasis,"edgeLabel"));var e=r.markPoint;e&&(sv(e),gr(e));var t=r.markLine;t&&(sv(t),gr(t));var a=r.markArea;a&&gr(a);var n=r.data;if(r.type==="graph"){n=n||r.nodes;var i=r.links||r.edges;if(i&&!tr(i))for(var o=0;o<i.length;o++)gr(i[o]);L(r.categories,function(u){ks(u)})}if(n&&!tr(n))for(var o=0;o<n.length;o++)gr(n[o]);if(e=r.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)gr(s[o]);if(t=r.markLine,t&&t.data)for(var l=t.data,o=0;o<l.length;o++)W(l[o])?(gr(l[o][0]),gr(l[o][1])):gr(l[o]);r.type==="gauge"?(ot(r,"axisLabel"),ot(r,"title"),ot(r,"detail")):r.type==="treemap"?(Nt(r.breadcrumb,"itemStyle"),L(r.levels,function(u){ks(u)})):r.type==="tree"&&ks(r.leaves)}}function ga(r){return W(r)?r:r?[r]:[]}function z1(r){return(W(r)?r[0]:r)||{}}function JE(r,e){Ir(ga(r.series),function(a){hl(a)&&KE(a)});var t=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&t.push("valueAxis","categoryAxis","logAxis","timeAxis"),Ir(t,function(a){Ir(ga(r[a]),function(n){n&&(ot(n,"axisLabel"),ot(n.axisPointer,"label"))})}),Ir(ga(r.parallel),function(a){var n=a&&a.parallelAxisDefault;ot(n,"axisLabel"),ot(n&&n.axisPointer,"label")}),Ir(ga(r.calendar),function(a){Nt(a,"itemStyle"),ot(a,"dayLabel"),ot(a,"monthLabel"),ot(a,"yearLabel")}),Ir(ga(r.radar),function(a){ot(a,"name"),a.name&&a.axisName==null&&(a.axisName=a.name,delete a.name),a.nameGap!=null&&a.axisNameGap==null&&(a.axisNameGap=a.nameGap,delete a.nameGap)}),Ir(ga(r.geo),function(a){hl(a)&&(gr(a),Ir(ga(a.regions),function(n){gr(n)}))}),Ir(ga(r.timeline),function(a){gr(a),Nt(a,"label"),Nt(a,"itemStyle"),Nt(a,"controlStyle",!0);var n=a.data;W(n)&&L(n,function(i){se(i)&&(Nt(i,"label"),Nt(i,"itemStyle"))})}),Ir(ga(r.toolbox),function(a){Nt(a,"iconStyle"),Ir(a.feature,function(n){Nt(n,"iconStyle")})}),ot(z1(r.axisPointer),"label"),ot(z1(r.tooltip).axisPointer,"label")}function QE(r,e){for(var t=e.split(","),a=r,n=0;n<t.length&&(a=a&&a[t[n]],a!=null);n++);return a}function eN(r,e,t,a){for(var n=e.split(","),i=r,o,s=0;s<n.length-1;s++)o=n[s],i[o]==null&&(i[o]={}),i=i[o];i[n[s]]==null&&(i[n[s]]=t)}function V1(r){r&&L(tN,function(e){e[0]in r&&!(e[1]in r)&&(r[e[1]]=r[e[0]])})}var tN=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],rN=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],lv=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function os(r){var e=r&&r.itemStyle;if(e)for(var t=0;t<lv.length;t++){var a=lv[t][1],n=lv[t][0];e[a]!=null&&(e[n]=e[a])}}function F1(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function G1(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay)}function aN(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function PC(r,e){if(r)for(var t=0;t<r.length;t++)e(r[t]),r[t]&&PC(r[t].children,e)}function kC(r,e){JE(r,e),r.series=je(r.series),L(r.series,function(t){if(se(t)){var a=t.type;if(a==="line")t.clipOverflow!=null&&(t.clip=t.clipOverflow);else if(a==="pie"||a==="gauge"){t.clockWise!=null&&(t.clockwise=t.clockWise),F1(t.label);var n=t.data;if(n&&!tr(n))for(var i=0;i<n.length;i++)F1(n[i]);t.hoverOffset!=null&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if(a==="gauge"){var o=QE(t,"pointer.color");o!=null&&eN(t,"itemStyle.color",o)}else if(a==="bar"){os(t),os(t.backgroundStyle),os(t.emphasis);var n=t.data;if(n&&!tr(n))for(var i=0;i<n.length;i++)typeof n[i]=="object"&&(os(n[i]),os(n[i]&&n[i].emphasis))}else if(a==="sunburst"){var s=t.highlightPolicy;s&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=s)),G1(t),PC(t.data,G1)}else a==="graph"||a==="sankey"?aN(t):a==="map"&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&ie(t,t.mapLocation));t.hoverAnimation!=null&&(t.emphasis=t.emphasis||{},t.emphasis&&t.emphasis.scale==null&&(t.emphasis.scale=t.hoverAnimation)),V1(t)}}),r.dataRange&&(r.visualMap=r.dataRange),L(rN,function(t){var a=r[t];a&&(W(a)||(a=[a]),L(a,function(n){V1(n)}))})}function nN(r){var e=re();r.eachSeries(function(t){var a=t.get("stack");if(a){var n=e.get(a)||e.set(a,[]),i=t.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:t};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;n.length&&i.setCalculationInfo("stackedOnSeries",n[n.length-1].seriesModel),n.push(o)}}),e.each(iN)}function iN(r){L(r,function(e,t){var a=[],n=[NaN,NaN],i=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,c,f){var h=o.get(e.stackedDimension,f);if(isNaN(h))return n;var v,d;s?d=o.getRawIndex(f):v=o.get(e.stackedByDimension,f);for(var p=NaN,g=t-1;g>=0;g--){var m=r[g];if(s||(d=m.data.rawIndexOf(m.stackedByDimension,v)),d>=0){var y=m.data.getByRawIndex(m.stackResultDimension,d);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&h>=0&&y>0||l==="samesign"&&h<=0&&y<0){h=t3(h,y),p=y;break}}}return a[0]=h,a[1]=p,a})})}var Zf=(function(){function r(e){this.data=e.data||(e.sourceFormat===ha?{}:[]),this.sourceFormat=e.sourceFormat||TC,this.seriesLayoutBy=e.seriesLayoutBy||oa,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var a=0;a<t.length;a++){var n=t[a];n.type==null&&DC(this,a)===Mt.Must&&(n.type="ordinal")}}return r})();function Tm(r){return r instanceof Zf}function Pp(r,e,t){t=t||RC(r);var a=e.seriesLayoutBy,n=sN(r,t,a,e.sourceHeader,e.dimensions),i=new Zf({data:r,sourceFormat:t,seriesLayoutBy:a,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,metaRawOption:le(e)});return i}function Cm(r){return new Zf({data:r,sourceFormat:tr(r)?un:Dr})}function oN(r){return new Zf({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:le(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function RC(r){var e=TC;if(tr(r))e=un;else if(W(r)){r.length===0&&(e=Bt);for(var t=0,a=r.length;t<a;t++){var n=r[t];if(n!=null){if(W(n)||tr(n)){e=Bt;break}else if(se(n)){e=Mr;break}}}}else if(se(r)){for(var i in r)if(ee(r,i)&&Ot(r[i])){e=ha;break}}return e}function sN(r,e,t,a,n){var i,o;if(!r)return{dimensionsDefine:H1(n),startIndex:o,dimensionsDetectedCount:i};if(e===Bt){var s=r;a==="auto"||a==null?j1(function(u){u!=null&&u!=="-"&&(q(u)?o==null&&(o=1):o=0)},t,s,10):o=ke(a)?a:a?1:0,!n&&o===1&&(n=[],j1(function(u,c){n[c]=u!=null?u+"":""},t,s,1/0)),i=n?n.length:t===Wo?s.length:s[0]?s[0].length:null}else if(e===Mr)n||(n=lN(r));else if(e===ha)n||(n=[],L(r,function(u,c){n.push(c)}));else if(e===Dr){var l=Bo(r[0]);i=W(l)&&l.length||1}return{startIndex:o,dimensionsDefine:H1(n),dimensionsDetectedCount:i}}function lN(r){for(var e=0,t;e<r.length&&!(t=r[e++]););if(t)return Me(t)}function H1(r){if(r){var e=re();return U(r,function(t,a){t=se(t)?t:{name:t};var n={name:t.name,displayName:t.displayName,type:t.type};if(n.name==null)return n;n.name+="",n.displayName==null&&(n.displayName=n.name);var i=e.get(n.name);return i?n.name+="-"+i.count++:e.set(n.name,{count:1}),n})}}function j1(r,e,t,a){if(e===Wo)for(var n=0;n<t.length&&n<a;n++)r(t[n]?t[n][0]:null,n);else for(var i=t[0]||[],n=0;n<i.length&&n<a;n++)r(i[n],n)}function EC(r){var e=r.sourceFormat;return e===Mr||e===ha}var zn,Vn,Fn,W1,$1,NC=(function(){function r(e,t){var a=Tm(e)?e:Cm(e);this._source=a;var n=this._data=a.data;a.sourceFormat===un&&(this._offset=0,this._dimSize=t,this._data=n),$1(this,n,a)}return r.prototype.getSource=function(){return this._source},r.prototype.count=function(){return 0},r.prototype.getItem=function(e,t){},r.prototype.appendData=function(e){},r.prototype.clean=function(){},r.protoInitialize=(function(){var e=r.prototype;e.pure=!1,e.persistent=!0})(),r.internalField=(function(){var e;$1=function(o,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,f=l.startIndex,h=l.dimensionsDefine,v=W1[Am(u,c)];if(G(o,v),u===un)o.getItem=t,o.count=n,o.fillStorage=a;else{var d=OC(u,c);o.getItem=Q(d,null,s,f,h);var p=BC(u,c);o.count=Q(p,null,s,f,h)}};var t=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,c=u*o,f=0;f<u;f++)s[f]=l[c+f];return s},a=function(o,s,l,u){for(var c=this._data,f=this._dimSize,h=0;h<f;h++){for(var v=u[h],d=v[0]==null?1/0:v[0],p=v[1]==null?-1/0:v[1],g=s-o,m=l[h],y=0;y<g;y++){var x=c[y*f+h];m[o+y]=x,x<d&&(d=x),x>p&&(p=x)}v[0]=d,v[1]=p}},n=function(){return this._data?this._data.length/this._dimSize:0};W1=(e={},e[Bt+"_"+oa]={pure:!0,appendData:i},e[Bt+"_"+Wo]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Mr]={pure:!0,appendData:i},e[ha]={pure:!0,appendData:function(o){var s=this._data;L(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},e[Dr]={appendData:i},e[un]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}})(),r})(),U1=function(r,e,t,a){return r[a]},uN=(zn={},zn[Bt+"_"+oa]=function(r,e,t,a){return r[a+e]},zn[Bt+"_"+Wo]=function(r,e,t,a,n){a+=e;for(var i=n||[],o=r,s=0;s<o.length;s++){var l=o[s];i[s]=l?l[a]:null}return i},zn[Mr]=U1,zn[ha]=function(r,e,t,a,n){for(var i=n||[],o=0;o<t.length;o++){var s=t[o].name,l=r[s];i[o]=l?l[a]:null}return i},zn[Dr]=U1,zn);function OC(r,e){var t=uN[Am(r,e)];return t}var Y1=function(r,e,t){return r.length},cN=(Vn={},Vn[Bt+"_"+oa]=function(r,e,t){return Math.max(0,r.length-e)},Vn[Bt+"_"+Wo]=function(r,e,t){var a=r[0];return a?Math.max(0,a.length-e):0},Vn[Mr]=Y1,Vn[ha]=function(r,e,t){var a=t[0].name,n=r[a];return n?n.length:0},Vn[Dr]=Y1,Vn);function BC(r,e){var t=cN[Am(r,e)];return t}var uv=function(r,e,t){return r[e]},fN=(Fn={},Fn[Bt]=uv,Fn[Mr]=function(r,e,t){return r[t]},Fn[ha]=uv,Fn[Dr]=function(r,e,t){var a=Bo(r);return a instanceof Array?a[e]:a},Fn[un]=uv,Fn);function zC(r){var e=fN[r];return e}function Am(r,e){return r===Bt?r+"_"+e:r}function Ao(r,e,t){if(r){var a=r.getRawDataItem(e);if(a!=null){var n=r.getStore(),i=n.getSource().sourceFormat;if(t!=null){var o=r.getDimensionIndex(t),s=n.getDimensionProperty(o);return zC(i)(a,o,s)}else{var l=a;return i===Dr&&(l=Bo(a)),l}}}}var hN=/\{@(.+?)\}/g,qf=(function(){function r(){}return r.prototype.getDataParams=function(e,t){var a=this.getData(t),n=this.getRawValue(e,t),i=a.getRawIndex(e),o=a.getName(e),s=a.getRawDataItem(e),l=a.getItemVisual(e,"style"),u=l&&l[a.getItemVisual(e,"drawType")||"fill"],c=l&&l.stroke,f=this.mainType,h=f==="series",v=a.userOutput&&a.userOutput.get();return{componentType:f,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:i,data:s,dataType:t,value:n,color:u,borderColor:c,dimensionNames:v?v.fullDimensions:null,encode:v?v.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(e,t,a,n,i,o){t=t||"normal";var s=this.getData(a),l=this.getDataParams(e,a);if(o&&(l.value=o.interpolatedValue),n!=null&&W(l.value)&&(l.value=l.value[n]),!i){var u=s.getItemModel(e);i=u.get(t==="normal"?["label","formatter"]:[t,"label","formatter"])}if(ne(i))return l.status=t,l.dimensionIndex=n,i(l);if(q(i)){var c=xC(i,l);return c.replace(hN,function(f,h){var v=h.length,d=h;d.charAt(0)==="["&&d.charAt(v-1)==="]"&&(d=+d.slice(1,v-1));var p=Ao(s,e,d);if(o&&W(o.interpolatedValue)){var g=s.getDimensionIndex(d);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(e,t){return Ao(this.getData(t),e)},r.prototype.formatTooltip=function(e,t,a){},r})();function X1(r){var e,t;return se(r)?r.type&&(t=r):e=r,{text:e,frag:t}}function Xs(r){return new vN(r)}var vN=(function(){function r(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return r.prototype.perform=function(e){var t=this._upstream,a=e&&e.skip;if(this._dirty&&t){var n=this.context;n.data=n.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!a&&(i=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(i="reset");function c(y){return!(y>=1)&&(y=1),y}var f;(this._dirty||i==="reset")&&(this._dirty=!1,f=this._doReset(a)),this._modBy=l,this._modDataCount=u;var h=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,d=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!a&&(f||v<d)){var p=this._progress;if(W(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],v,d,l,u);else this._doProgress(p,v,d,l,u)}this._dueIndex=d;var m=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=m}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(e,t,a,n,i){Z1.reset(t,a,n,i),this._callingProgress=e,this._callingProgress({start:t,end:a,count:a-t,next:Z1.next},this.context)},r.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var t,a;!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(a=t.forceFirstProgress,t=t.progress),W(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),a},r.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},r.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.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(e){this._outputDueEnd=this._settedOutputEnd=e},r})(),Z1=(function(){var r,e,t,a,n,i={reset:function(l,u,c,f){e=l,r=u,t=c,a=f,n=Math.ceil(a/t),i.next=t>1&&a>0?s:o}};return i;function o(){return e<r?e++:null}function s(){var l=e%n*t+Math.ceil(e/n),u=e>=r?null:l<a?l:e;return e++,u}})();function cn(r,e){var t=e&&e.type;return t==="ordinal"?r:(t==="time"&&!ke(r)&&r!=null&&r!=="-"&&(r=+ca(r)),r==null||r===""?NaN:Number(r))}var dN=re({number:function(r){return parseFloat(r)},time:function(r){return+ca(r)},trim:function(r){return q(r)?Or(r):r}});function VC(r){return dN.get(r)}var FC={lt:function(r,e){return r<e},lte:function(r,e){return r<=e},gt:function(r,e){return r>e},gte:function(r,e){return r>=e}},pN=(function(){function r(e,t){if(!ke(t)){var a="";Be(a)}this._opFn=FC[e],this._rvalFloat=Ma(t)}return r.prototype.evaluate=function(e){return ke(e)?this._opFn(e,this._rvalFloat):this._opFn(Ma(e),this._rvalFloat)},r})(),GC=(function(){function r(e,t){var a=e==="desc";this._resultLT=a?1:-1,t==null&&(t=a?"min":"max"),this._incomparable=t==="min"?-1/0:1/0}return r.prototype.evaluate=function(e,t){var a=ke(e)?e:Ma(e),n=ke(t)?t:Ma(t),i=isNaN(a),o=isNaN(n);if(i&&(a=this._incomparable),o&&(n=this._incomparable),i&&o){var s=q(e),l=q(t);s&&(a=l?e:0),l&&(n=s?t:0)}return a<n?this._resultLT:a>n?-this._resultLT:0},r})(),gN=(function(){function r(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=Ma(t)}return r.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var a=typeof e;a!==this._rvalTypeof&&(a==="number"||this._rvalTypeof==="number")&&(t=Ma(e)===this._rvalFloat)}return this._isEQ?t:!t},r})();function mN(r,e){return r==="eq"||r==="ne"?new gN(r==="eq",e):ee(FC,r)?new pN(r,e):null}var yN=(function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(e){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(e){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(e,t){},r.prototype.retrieveValueFromItem=function(e,t){},r.prototype.convertValue=function(e,t){return cn(e,t)},r})();function xN(r,e){var t=new yN,a=r.data,n=t.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==oa&&Be(o);var s=[],l={},u=r.dimensionsDefine;if(u)L(u,function(p,g){var m=p.name,y={index:g,name:m,displayName:p.displayName};if(s.push(y),m!=null){var x="";ee(l,m)&&Be(x),l[m]=y}});else for(var c=0;c<r.dimensionsDetectedCount;c++)s.push({index:c});var f=OC(n,oa);e.__isBuiltIn&&(t.getRawDataItem=function(p){return f(a,i,s,p)},t.getRawData=Q(_N,null,r)),t.cloneRawData=Q(bN,null,r);var h=BC(n,oa);t.count=Q(h,null,a,i,s);var v=zC(n);t.retrieveValue=function(p,g){var m=f(a,i,s,p);return d(m,g)};var d=t.retrieveValueFromItem=function(p,g){if(p!=null){var m=s[g];if(m)return v(p,g,m.name)}};return t.getDimensionInfo=Q(SN,null,s,l),t.cloneAllDimensionInfo=Q(wN,null,s),t}function _N(r){var e=r.sourceFormat;if(!Dm(e)){var t="";Be(t)}return r.data}function bN(r){var e=r.sourceFormat,t=r.data;if(!Dm(e)){var a="";Be(a)}if(e===Bt){for(var n=[],i=0,o=t.length;i<o;i++)n.push(t[i].slice());return n}else if(e===Mr){for(var n=[],i=0,o=t.length;i<o;i++)n.push(G({},t[i]));return n}}function SN(r,e,t){if(t!=null){if(ke(t)||!isNaN(t)&&!ee(e,t))return r[t];if(ee(e,t))return e[t]}}function wN(r){return le(r)}var HC=re();function TN(r){r=le(r);var e=r.type,t="";e||Be(t);var a=e.split(":");a.length!==2&&Be(t);var n=!1;a[0]==="echarts"&&(e=a[1],n=!0),r.__isBuiltIn=n,HC.set(e,r)}function CN(r,e,t){var a=je(r),n=a.length,i="";n||Be(i);for(var o=0,s=n;o<s;o++){var l=a[o];e=AN(l,e),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function AN(r,e,t,a){var n="";e.length||Be(n),se(r)||Be(n);var i=r.type,o=HC.get(i);o||Be(n);var s=U(e,function(u){return xN(u,o)}),l=je(o.transform({upstream:s[0],upstreamList:s,config:le(r.config)}));return U(l,function(u,c){var f="";se(u)||Be(f),u.data||Be(f);var h=RC(u.data);Dm(h)||Be(f);var v,d=e[0];if(d&&c===0&&!u.dimensions){var p=d.startIndex;p&&(u.data=d.data.slice(0,p).concat(u.data)),v={seriesLayoutBy:oa,sourceHeader:p,dimensions:d.metaRawOption.dimensions}}else v={seriesLayoutBy:oa,sourceHeader:0,dimensions:u.dimensions};return Pp(u.data,v,null)})}function Dm(r){return r===Bt||r===Mr}var Kf="undefined",DN=typeof Uint32Array===Kf?Array:Uint32Array,MN=typeof Uint16Array===Kf?Array:Uint16Array,jC=typeof Int32Array===Kf?Array:Int32Array,q1=typeof Float64Array===Kf?Array:Float64Array,WC={float:q1,int:jC,ordinal:Array,number:Array,time:q1},cv;function $i(r){return r>65535?DN:MN}function Ui(){return[1/0,-1/0]}function LN(r){var e=r.constructor;return e===Array?r.slice():new e(r)}function K1(r,e,t,a,n){var i=WC[t||"float"];if(n){var o=r[e],s=o&&o.length;if(s!==a){for(var l=new i(a),u=0;u<s;u++)l[u]=o[u];r[e]=l}}else r[e]=new i(a)}var kp=(function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=re()}return r.prototype.initData=function(e,t,a){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=e.getSource(),i=this.defaultDimValueGetter=cv[n.sourceFormat];this._dimValueGetter=a||i,this._rawExtent=[],EC(n),this._dimensions=U(t,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,e.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(e,t){var a=this._calcDimNameToIdx,n=this._dimensions,i=a.get(e);if(i!=null){if(n[i].type===t)return i}else i=n.length;return n[i]={type:t},a.set(e,i),this._chunks[i]=new WC[t||"float"](this._rawCount),this._rawExtent[i]=Ui(),i},r.prototype.collectOrdinalMeta=function(e,t){var a=this._chunks[e],n=this._dimensions[e],i=this._rawExtent,o=n.ordinalOffset||0,s=a.length;o===0&&(i[e]=Ui());for(var l=i[e],u=o;u<s;u++){var c=a[u]=t.parseAndCollect(a[u]);isNaN(c)||(l[0]=Math.min(c,l[0]),l[1]=Math.max(c,l[1]))}n.ordinalMeta=t,n.ordinalOffset=s,n.type="ordinal"},r.prototype.getOrdinalMeta=function(e){var t=this._dimensions[e],a=t.ordinalMeta;return a},r.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},r.prototype.appendData=function(e){var t=this._provider,a=this.count();t.appendData(e);var n=t.count();return t.persistent||(n+=a),a<n&&this._initDataFromProvider(a,n,!0),[a,n]},r.prototype.appendValues=function(e,t){for(var a=this._chunks,n=this._dimensions,i=n.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,t||0),u=0;u<i;u++){var c=n[u];K1(a,u,c.type,l,!0)}for(var f=[],h=s;h<l;h++)for(var v=h-s,d=0;d<i;d++){var c=n[d],p=cv.arrayRows.call(this,e[v]||f,c.property,v,d);a[d][h]=p;var g=o[d];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(e,t,a){for(var n=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=U(o,function(y){return y.property}),c=0;c<s;c++){var f=o[c];l[c]||(l[c]=Ui()),K1(i,c,f.type,t,a)}if(n.fillStorage)n.fillStorage(e,t,i,l);else for(var h=[],v=e;v<t;v++){h=n.getItem(v,h);for(var d=0;d<s;d++){var p=i[d],g=this._dimValueGetter(h,u[d],v,d);p[v]=g;var m=l[d];g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=t,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var a=this._chunks[e];return a?a[this.getRawIndex(t)]:NaN},r.prototype.getValues=function(e,t){var a=[],n=[];if(t==null){t=e,e=[];for(var i=0;i<this._dimensions.length;i++)n.push(i)}else n=e;for(var i=0,o=n.length;i<o;i++)a.push(this.get(n[i],t));return a},r.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var a=this._chunks[e];return a?a[t]:NaN},r.prototype.getSum=function(e){var t=this._chunks[e],a=0;if(t)for(var n=0,i=this.count();n<i;n++){var o=this.get(e,n);isNaN(o)||(a+=o)}return a},r.prototype.getMedian=function(e){var t=[];this.each([e],function(i){isNaN(i)||t.push(i)});var a=t.sort(function(i,o){return i-o}),n=this.count();return n===0?0:n%2===1?a[(n-1)/2]:(a[n/2]+a[n/2-1])/2},r.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,a=t[e];if(a!=null&&a<this._count&&a===e)return e;for(var n=0,i=this._count-1;n<=i;){var o=(n+i)/2|0;if(t[o]<e)n=o+1;else if(t[o]>e)i=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(e,t,a){var n=this._chunks,i=n[e],o=[];if(!i)return o;a==null&&(a=1/0);for(var s=1/0,l=-1,u=0,c=0,f=this.count();c<f;c++){var h=this.getRawIndex(c),v=t-i[h],d=Math.abs(v);d<=a&&((d<s||d===s&&v>=0&&l<0)&&(s=d,l=v,u=0),v===l&&(o[u++]=c))}return o.length=u,o},r.prototype.getIndices=function(){var e,t=this._indices;if(t){var a=t.constructor,n=this._count;if(a===Array){e=new a(n);for(var i=0;i<n;i++)e[i]=t[i]}else e=new a(t.buffer,0,n)}else{var a=$i(this._rawCount);e=new a(this.count());for(var i=0;i<e.length;i++)e[i]=i}return e},r.prototype.filter=function(e,t){if(!this._count)return this;for(var a=this.clone(),n=a.count(),i=$i(a._rawCount),o=new i(n),s=[],l=e.length,u=0,c=e[0],f=a._chunks,h=0;h<n;h++){var v=void 0,d=a.getRawIndex(h);if(l===0)v=t(h);else if(l===1){var p=f[c][d];v=t(p,h)}else{for(var g=0;g<l;g++)s[g]=f[e[g]][d];s[g]=h,v=t.apply(null,s)}v&&(o[u++]=d)}return u<n&&(a._indices=o),a._count=u,a._extent=[],a._updateGetRawIdx(),a},r.prototype.selectRange=function(e){var t=this.clone(),a=t._count;if(!a)return this;var n=Me(e),i=n.length;if(!i)return this;var o=t.count(),s=$i(t._rawCount),l=new s(o),u=0,c=n[0],f=e[c][0],h=e[c][1],v=t._chunks,d=!1;if(!t._indices){var p=0;if(i===1){for(var g=v[n[0]],m=0;m<a;m++){var y=g[m];(y>=f&&y<=h||isNaN(y))&&(l[u++]=p),p++}d=!0}else if(i===2){for(var g=v[n[0]],x=v[n[1]],_=e[n[1]][0],b=e[n[1]][1],m=0;m<a;m++){var y=g[m],S=x[m];(y>=f&&y<=h||isNaN(y))&&(S>=_&&S<=b||isNaN(S))&&(l[u++]=p),p++}d=!0}}if(!d)if(i===1)for(var m=0;m<o;m++){var w=t.getRawIndex(m),y=v[n[0]][w];(y>=f&&y<=h||isNaN(y))&&(l[u++]=w)}else for(var m=0;m<o;m++){for(var C=!0,w=t.getRawIndex(m),A=0;A<i;A++){var D=n[A],y=v[D][w];(y<e[D][0]||y>e[D][1])&&(C=!1)}C&&(l[u++]=t.getRawIndex(m))}return u<o&&(t._indices=l),t._count=u,t._extent=[],t._updateGetRawIdx(),t},r.prototype.map=function(e,t){var a=this.clone(e);return this._updateDims(a,e,t),a},r.prototype.modify=function(e,t){this._updateDims(this,e,t)},r.prototype._updateDims=function(e,t,a){for(var n=e._chunks,i=[],o=t.length,s=e.count(),l=[],u=e._rawExtent,c=0;c<t.length;c++)u[t[c]]=Ui();for(var f=0;f<s;f++){for(var h=e.getRawIndex(f),v=0;v<o;v++)l[v]=n[t[v]][h];l[o]=f;var d=a&&a.apply(null,l);if(d!=null){typeof d!="object"&&(i[0]=d,d=i);for(var c=0;c<d.length;c++){var p=t[c],g=d[c],m=u[p],y=n[p];y&&(y[h]=g),g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}}},r.prototype.lttbDownSample=function(e,t){var a=this.clone([e],!0),n=a._chunks,i=n[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),c,f,h,v=new($i(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var d=1;d<o-1;d+=l){for(var p=Math.min(d+l,o-1),g=Math.min(d+l*2,o),m=(g+p)/2,y=0,x=p;x<g;x++){var _=this.getRawIndex(x),b=i[_];isNaN(b)||(y+=b)}y/=g-p;var S=d,w=Math.min(d+l,o),C=d-1,A=i[u];c=-1,h=S;for(var D=-1,M=0,x=S;x<w;x++){var _=this.getRawIndex(x),b=i[_];if(isNaN(b)){M++,D<0&&(D=_);continue}f=Math.abs((C-m)*(b-A)-(C-x)*(y-A)),f>c&&(c=f,h=_)}M>0&&M<w-S&&(v[s++]=Math.min(D,h),h=Math.max(D,h)),v[s++]=h,u=h}return v[s++]=this.getRawIndex(o-1),a._count=s,a._indices=v,a.getRawIndex=this._getRawIdx,a},r.prototype.minmaxDownSample=function(e,t){for(var a=this.clone([e],!0),n=a._chunks,i=Math.floor(1/t),o=n[e],s=this.count(),l=new($i(this._rawCount))(Math.ceil(s/i)*2),u=0,c=0;c<s;c+=i){var f=c,h=o[this.getRawIndex(f)],v=c,d=o[this.getRawIndex(v)],p=i;c+i>s&&(p=s-c);for(var g=0;g<p;g++){var m=this.getRawIndex(c+g),y=o[m];y<h&&(h=y,f=c+g),y>d&&(d=y,v=c+g)}var x=this.getRawIndex(f),_=this.getRawIndex(v);f<v?(l[u++]=x,l[u++]=_):(l[u++]=_,l[u++]=x)}return a._count=u,a._indices=l,a._updateGetRawIdx(),a},r.prototype.downSample=function(e,t,a,n){for(var i=this.clone([e],!0),o=i._chunks,s=[],l=Math.floor(1/t),u=o[e],c=this.count(),f=i._rawExtent[e]=Ui(),h=new($i(this._rawCount))(Math.ceil(c/l)),v=0,d=0;d<c;d+=l){l>c-d&&(l=c-d,s.length=l);for(var p=0;p<l;p++){var g=this.getRawIndex(d+p);s[p]=u[g]}var m=a(s),y=this.getRawIndex(Math.min(d+n(s,m)||0,c-1));u[y]=m,m<f[0]&&(f[0]=m),m>f[1]&&(f[1]=m),h[v++]=y}return i._count=v,i._indices=h,i._updateGetRawIdx(),i},r.prototype.each=function(e,t){if(this._count)for(var a=e.length,n=this._chunks,i=0,o=this.count();i<o;i++){var s=this.getRawIndex(i);switch(a){case 0:t(i);break;case 1:t(n[e[0]][s],i);break;case 2:t(n[e[0]][s],n[e[1]][s],i);break;default:for(var l=0,u=[];l<a;l++)u[l]=n[e[l]][s];u[l]=i,t.apply(null,u)}}},r.prototype.getDataExtent=function(e){var t=this._chunks[e],a=Ui();if(!t)return a;var n=this.count(),i=!this._indices,o;if(i)return this._rawExtent[e].slice();if(o=this._extent[e],o)return o.slice();o=a;for(var s=o[0],l=o[1],u=0;u<n;u++){var c=this.getRawIndex(u),f=t[c];f<s&&(s=f),f>l&&(l=f)}return o=[s,l],this._extent[e]=o,o},r.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var a=[],n=this._chunks,i=0;i<n.length;i++)a.push(n[i][t]);return a},r.prototype.clone=function(e,t){var a=new r,n=this._chunks,i=e&&sa(e,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<n.length;o++)a._chunks[o]=i[o]?LN(n[o]):n[o];else a._chunks=n;return this._copyCommonProps(a),t||(a._indices=this._cloneIndices()),a._updateGetRawIdx(),a},r.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=le(this._extent),e._rawExtent=le(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var a=this._indices.length;t=new e(a);for(var n=0;n<a;n++)t[n]=this._indices[n]}else t=new e(this._indices);return t}return null},r.prototype._getRawIdxIdentity=function(e){return e},r.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=(function(){function e(t,a,n,i){return cn(t[i],this._dimensions[i])}cv={arrayRows:e,objectRows:function(t,a,n,i){return cn(t[a],this._dimensions[i])},keyedColumns:e,original:function(t,a,n,i){var o=t&&(t.value==null?t:t.value);return cn(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(t,a,n,i){return t[i]}}})(),r})(),$C=(function(){function r(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,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 e=this._sourceHost,t=this._getUpstreamSourceManagers(),a=!!t.length,n,i;if(mu(e)){var o=e,s=void 0,l=void 0,u=void 0;if(a){var c=t[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,i=[c._getVersionSign()]}else s=o.get("data",!0),l=tr(s)?un:Dr,i=[];var f=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},v=fe(f.seriesLayoutBy,h.seriesLayoutBy)||null,d=fe(f.sourceHeader,h.sourceHeader),p=fe(f.dimensions,h.dimensions),g=v!==h.seriesLayoutBy||!!d!=!!h.sourceHeader||p;n=g?[Pp(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:p},l)]:[]}else{var m=e;if(a){var y=this._applyTransform(t);n=y.sourceList,i=y.upstreamSignList}else{var x=m.get("source",!0);n=[Pp(x,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(n,i)},r.prototype._applyTransform=function(e){var t=this._sourceHost,a=t.get("transform",!0),n=t.get("fromTransformResult",!0);if(n!=null){var i="";e.length!==1&&Q1(i)}var o,s=[],l=[];return L(e,function(u){u.prepareSource();var c=u.getSource(n||0),f="";n!=null&&!c&&Q1(f),s.push(c),l.push(u._getVersionSign())}),a?o=CN(a,s,{datasetIndex:t.componentIndex}):n!=null&&(o=[oN(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var a=e[t];if(a._isDirty()||this._upstreamSignList[t]!==a._getVersionSign())return!0}},r.prototype.getSource=function(e){e=e||0;var t=this._sourceList[e];if(!t){var a=this._getUpstreamSourceManagers();return a[0]&&a[0].getSource(e)}return t},r.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},r.prototype._innerGetDataStore=function(e,t,a){var n=0,i=this._storeList,o=i[n];o||(o=i[n]={});var s=o[a];if(!s){var l=this._getUpstreamSourceManagers()[0];mu(this._sourceHost)&&l?s=l._innerGetDataStore(e,t,a):(s=new kp,s.initData(new NC(t,e.length),e)),o[a]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(mu(e)){var t=bm(e);return t?[t.getSourceManager()]:[]}else return U(NE(e),function(a){return a.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,a,n;if(mu(e))t=e.get("seriesLayoutBy",!0),a=e.get("sourceHeader",!0),n=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=e;t=i.get("seriesLayoutBy",!0),a=i.get("sourceHeader",!0),n=i.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:a,dimensions:n}},r})();function J1(r){var e=r.option.transform;e&&Ac(r.option.transform)}function mu(r){return r.mainType==="series"}function Q1(r){throw new Error(r)}var IN="line-height:1";function UC(r){var e=r.lineHeight;return e==null?IN:"line-height:"+Ht(e+"")+"px"}function YC(r,e){var t=r.color||"#6e7079",a=r.fontSize||12,n=r.fontWeight||"400",i=r.color||"#464646",o=r.fontSize||14,s=r.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+Ht(a+"")+"px;color:"+Ht(t)+";font-weight:"+Ht(n+""),valueStyle:"font-size:"+Ht(o+"")+"px;color:"+Ht(i)+";font-weight:"+Ht(s+"")}:{nameStyle:{fontSize:a,fill:t,fontWeight:n},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var PN=[0,10,20,30],kN=["",`
9
- `,`
10
-
11
- `,`
12
-
13
-
14
- `];function St(r,e){return e.type=r,e}function Rp(r){return r.type==="section"}function XC(r){return Rp(r)?RN:EN}function ZC(r){if(Rp(r)){var e=0,t=r.blocks.length,a=t>1||t>0&&!r.noHeader;return L(r.blocks,function(n){var i=ZC(n);i>=e&&(e=i+ +(a&&(!i||Rp(n)&&!n.noHeader)))}),e}return 0}function RN(r,e,t,a){var n=e.noHeader,i=NN(ZC(e)),o=[],s=e.blocks||[];$t(!s||W(s)),s=s||[];var l=r.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(ee(u,l)){var c=new GC(u[l],null);s.sort(function(p,g){return c.evaluate(p.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}L(s,function(p,g){var m=e.valueFormatter,y=XC(p)(m?G(G({},r),{valueFormatter:m}):r,p,g>0?i.html:0,a);y!=null&&o.push(y)});var f=r.renderMode==="richText"?o.join(i.richText):Ep(a,o.join(""),n?t:i.html);if(n)return f;var h=Mp(e.header,"ordinal",r.useUTC),v=YC(a,r.renderMode).nameStyle,d=UC(a);return r.renderMode==="richText"?qC(r,h,v)+i.richText+f:Ep(a,'<div style="'+v+";"+d+';">'+Ht(h)+"</div>"+f,t)}function EN(r,e,t,a){var n=r.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=r.useUTC,c=e.valueFormatter||r.valueFormatter||function(_){return _=W(_)?_:[_],U(_,function(b,S){return Mp(b,W(v)?v[S]:v,u)})};if(!(i&&o)){var f=s?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",n),h=i?"":Mp(l,"ordinal",u),v=e.valueType,d=o?[]:c(e.value,e.dataIndex),p=!s||!i,g=!s&&i,m=YC(a,n),y=m.nameStyle,x=m.valueStyle;return n==="richText"?(s?"":f)+(i?"":qC(r,h,y))+(o?"":zN(r,d,p,g,x)):Ep(a,(s?"":f)+(i?"":ON(h,!s,y))+(o?"":BN(d,p,g,x)),t)}}function ex(r,e,t,a,n,i){if(r){var o=XC(r),s={useUTC:n,renderMode:t,orderMode:a,markupStyleCreator:e,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function NN(r){return{html:PN[r],richText:kN[r]}}function Ep(r,e,t){var a='<div style="clear:both"></div>',n="margin: "+t+"px 0 0",i=UC(r);return'<div style="'+n+";"+i+';">'+e+a+"</div>"}function ON(r,e,t){var a=e?"margin-left:2px":"";return'<span style="'+t+";"+a+'">'+Ht(r)+"</span>"}function BN(r,e,t,a){var n=t?"10px":"20px",i=e?"float:right;margin-left:"+n:"";return r=W(r)?r:[r],'<span style="'+i+";"+a+'">'+U(r,function(o){return Ht(o)}).join("&nbsp;&nbsp;")+"</span>"}function qC(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function zN(r,e,t,a,n){var i=[n],o=a?10:20;return t&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(W(e)?e.join(" "):e,i)}function KC(r,e){var t=r.getData().getItemVisual(e,"style"),a=t[r.visualDrawType];return wi(a)}function JC(r,e){var t=r.get("padding");return t??(e==="richText"?[8,10]:10)}var fv=(function(){function r(){this.richTextStyles={},this._nextStyleNameId=vT()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(e,t,a){var n=a==="richText"?this._generateStyleName():null,i=ME({color:t,type:e,renderMode:a,markerId:n});return q(i)?i:(this.richTextStyles[n]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(e,t){var a={};W(t)?L(t,function(i){return G(a,i)}):G(a,t);var n=this._generateStyleName();return this.richTextStyles[n]=a,"{"+n+"|"+e+"}"},r})();function QC(r){var e=r.series,t=r.dataIndex,a=r.multipleSeries,n=e.getData(),i=n.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(t),l=W(s),u=KC(e,t),c,f,h,v;if(o>1||l&&!o){var d=VN(s,e,t,i,u);c=d.inlineValues,f=d.inlineValueTypes,h=d.blocks,v=d.inlineValues[0]}else if(o){var p=n.getDimensionInfo(i[0]);v=c=Ao(n,t,i[0]),f=p.type}else v=c=l?s[0]:s;var g=Qg(e),m=g&&e.name||"",y=n.getName(t),x=a?m:y;return St("section",{header:m,noHeader:a||!g,sortParam:v,blocks:[St("nameValue",{markerType:"item",markerColor:u,name:x,noName:!Or(x),value:c,valueType:f,dataIndex:t})].concat(h||[])})}function VN(r,e,t,a,n){var i=e.getData(),o=sa(r,function(f,h,v){var d=i.getDimensionInfo(v);return f=f||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];a.length?L(a,function(f){c(Ao(i,t,f),f)}):L(r,c);function c(f,h){var v=i.getDimensionInfo(h);!v||v.otherDims.tooltip===!1||(o?u.push(St("nameValue",{markerType:"subItem",markerColor:n,name:v.displayName,value:f,valueType:v.type})):(s.push(f),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Ga=Ie();function yu(r,e){return r.getName(e)||r.getId(e)}var pc="__universalTransitionEnabled",Ze=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,a,n){this.seriesIndex=this.componentIndex,this.dataTask=Xs({count:GN,reset:HN}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n);var i=Ga(this).sourceManager=new $C(this);i.prepareSource();var o=this.getInitialData(t,n);rx(o,this),this.dataTask.context.data=o,Ga(this).dataBeforeProcessed=o,tx(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,a){var n=fl(this),i=n?jo(t):{},o=this.subType;De.hasClass(o)&&(o+="Series"),pe(t,a.getTheme().get(this.subType)),pe(t,this.getDefaultOption()),xi(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&gn(t,i,n)},e.prototype.mergeOption=function(t,a){t=pe(this.option,t,!0),this.fillDataTextStyle(t.data);var n=fl(this);n&&gn(this.option,t,n);var i=Ga(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(t,a);rx(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Ga(this).dataBeforeProcessed=o,tx(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!tr(t))for(var a=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&xi(t[n],"label",a)},e.prototype.getInitialData=function(t,a){},e.prototype.appendData=function(t){var a=this.getRawData();a.appendData(t.data)},e.prototype.getData=function(t){var a=Np(this);if(a){var n=a.context.data;return t==null||!n.getLinkedData?n:n.getLinkedData(t)}else return Ga(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var a=Np(this);if(a){var n=a.context;n.outputData=t,a!==this.dataTask&&(n.data=t)}Ga(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return re(t)},e.prototype.getSourceManager=function(){return Ga(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return Ga(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var t=this.get("colorBy");return t||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.formatTooltip=function(t,a,n){return QC({series:this,dataIndex:t,multipleSeries:a})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(Ae.node&&!(t&&t.ssr))return!1;var a=this.getShallow("animation");return a&&this.getData().count()>this.getShallow("animationThreshold")&&(a=!1),!!a},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,a,n){var i=this.ecModel,o=Sm.prototype.getColorFromPalette.call(this,t,a,n);return o||(o=i.getColorFromPalette(t,a,n)),o},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,a){this._innerSelect(this.getData(a),t)},e.prototype.unselect=function(t,a){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,o=this.getData(a);if(i==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<t.length;s++){var l=t[s],u=yu(o,l);n[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(t,a){for(var n=[],i=0;i<t.length;i++)n[0]=t[i],this.isSelected(t[i],a)?this.unselect(n,a):this.select(n,a)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,a=Me(t),n=[],i=0;i<a.length;i++){var o=t[a[i]];o>=0&&n.push(o)}return n},e.prototype.isSelected=function(t,a){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(a);return(n==="all"||n[yu(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[pc])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,a){var n,i,o=this.option,s=o.selectedMode,l=a.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){se(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c<l;c++){var f=a[c],h=yu(t,f);u[h]=!0,this._selectedDataIndicesMap[h]=t.getRawIndex(f)}}else if(s==="single"||s===!0){var v=a[l-1],h=yu(t,v);o.selectedMap=(n={},n[h]=!0,n),this._selectedDataIndicesMap=(i={},i[h]=t.getRawIndex(v),i)}}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var a=[];t.hasItemOption&&t.each(function(n){var i=t.getRawDataItem(n);i&&i.selected&&a.push(n)}),a.length>0&&this._innerSelect(t,a)}},e.registerClass=function(t){return De.registerClass(t)},e.protoInitialize=(function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"})(),e})(De);ut(Ze,qf);ut(Ze,Sm);ST(Ze,De);function tx(r){var e=r.name;Qg(r)||(r.name=FN(r)||e)}function FN(r){var e=r.getRawData(),t=e.mapDimensionsAll("seriesName"),a=[];return L(t,function(n){var i=e.getDimensionInfo(n);i.displayName&&a.push(i.displayName)}),a.join(" ")}function GN(r){return r.model.getRawData().count()}function HN(r){var e=r.model;return e.setData(e.getRawData().cloneShallow()),jN}function jN(r,e){e.outputData&&r.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function rx(r,e){L(tl(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(t){r.wrapMethod(t,ve(WN,e))})}function WN(r,e){var t=Np(r);return t&&t.setOutputEnd((e||this).count()),e}function Np(r){var e=(r.ecModel||{}).scheduler,t=e&&e.getPipeline(r.uid);if(t){var a=t.currentTask;if(a){var n=a.agentStubMap;n&&(a=n.get(r.uid))}return a}}var Qe=(function(){function r(){this.group=new ue,this.uid=Go("viewComponent")}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,a,n){},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,a,n){},r.prototype.updateLayout=function(e,t,a,n){},r.prototype.updateVisual=function(e,t,a,n){},r.prototype.toggleBlurSeries=function(e,t,a){},r.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},r})();tm(Qe);kf(Qe);function $o(){var r=Ie();return function(e){var t=r(e),a=e.pipelineContext,n=!!t.large,i=!!t.progressiveRender,o=t.large=!!(a&&a.large),s=t.progressiveRender=!!(a&&a.progressiveRender);return(n!==o||i!==s)&&"reset"}}var eA=Ie(),$N=$o(),$e=(function(){function r(){this.group=new ue,this.uid=Go("viewChart"),this.renderTask=Xs({plan:UN,reset:YN}),this.renderTask.context={view:this}}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,a,n){},r.prototype.highlight=function(e,t,a,n){var i=e.getData(n&&n.dataType);i&&nx(i,n,"emphasis")},r.prototype.downplay=function(e,t,a,n){var i=e.getData(n&&n.dataType);i&&nx(i,n,"normal")},r.prototype.remove=function(e,t){this.group.removeAll()},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,a,n){this.render(e,t,a,n)},r.prototype.updateLayout=function(e,t,a,n){this.render(e,t,a,n)},r.prototype.updateVisual=function(e,t,a,n){this.render(e,t,a,n)},r.prototype.eachRendered=function(e){_n(this.group,e)},r.markUpdateMethod=function(e,t){eA(e).updateMethod=t},r.protoInitialize=(function(){var e=r.prototype;e.type="chart"})(),r})();function ax(r,e,t){r&&ll(r)&&(e==="emphasis"?La:Ia)(r,t)}function nx(r,e,t){var a=_i(r,e),n=e&&e.highlightKey!=null?MR(e.highlightKey):null;a!=null?L(je(a),function(i){ax(r.getItemGraphicEl(i),t,n)}):r.eachItemGraphicEl(function(i){ax(i,t,n)})}tm($e);kf($e);function UN(r){return $N(r.model)}function YN(r){var e=r.model,t=r.ecModel,a=r.api,n=r.payload,i=e.pipelineContext.progressiveRender,o=r.view,s=n&&eA(n).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,t,a,n),XN[l]}var XN={incrementalPrepareRender:{progress:function(r,e){e.view.incrementalRender(r,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(r,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},jc="\0__throttleOriginMethod",ix="\0__throttleRate",ox="\0__throttleType";function Mm(r,e,t){var a,n=0,i=0,o=null,s,l,u,c;e=e||0;function f(){i=new Date().getTime(),o=null,r.apply(l,u||[])}var h=function(){for(var v=[],d=0;d<arguments.length;d++)v[d]=arguments[d];a=new Date().getTime(),l=this,u=v;var p=c||e,g=c||t;c=null,s=a-(g?n:i)-p,clearTimeout(o),g?o=setTimeout(f,p):s>=0?f():o=setTimeout(f,-s),n=a};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(v){c=v},h}function Uo(r,e,t,a){var n=r[e];if(n){var i=n[jc]||n,o=n[ox],s=n[ix];if(s!==t||o!==a){if(t==null||!a)return r[e]=i;n=r[e]=Mm(i,t,a==="debounce"),n[jc]=i,n[ox]=a,n[ix]=t}return n}}function vl(r,e){var t=r[e];t&&t[jc]&&(t.clear&&t.clear(),r[e]=t[jc])}var sx=Ie(),lx={itemStyle:bi(oC,!0),lineStyle:bi(iC,!0)},ZN={lineStyle:"stroke",itemStyle:"fill"};function tA(r,e){var t=r.visualStyleMapper||lx[e];return t||(console.warn("Unknown style type '"+e+"'."),lx.itemStyle)}function rA(r,e){var t=r.visualDrawType||ZN[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var qN={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=r.getModel(a),i=tA(r,a),o=i(n),s=n.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=rA(r,a),u=o[l],c=ne(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||f){var h=r.getColorFromPalette(r.name,null,e.getSeriesCount());o[l]||(o[l]=h,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||ne(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||ne(o.stroke)?h:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(r)&&c)return t.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var p=r.getDataParams(d),g=G({},o);g[l]=c(p),v.setItemVisual(d,"style",g)}}}},ss=new Ge,KN={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!(r.ignoreStyleOnData||e.isSeriesFiltered(r))){var t=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=tA(r,a),i=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[a]){ss.option=l[a];var u=n(ss),c=o.ensureUniqueItemVisual(s,"style");G(c,u),ss.option.decal&&(o.setItemVisual(s,"decal",ss.option.decal),ss.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},JN={performRawSeries:!0,overallReset:function(r){var e=re();r.eachSeries(function(t){var a=t.getColorBy();if(!t.isColorBySeries()){var n=t.type+"-"+a,i=e.get(n);i||(i={},e.set(n,i)),sx(t).scope=i}}),r.eachSeries(function(t){if(!(t.isColorBySeries()||r.isSeriesFiltered(t))){var a=t.getRawData(),n={},i=t.getData(),o=sx(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=rA(t,s);i.each(function(u){var c=i.getRawIndex(u);n[c]=u}),a.each(function(u){var c=n[u],f=i.getItemVisual(c,"colorFromPalette");if(f){var h=i.ensureUniqueItemVisual(c,"style"),v=a.getName(u)||u+"",d=a.count();h[l]=t.getColorFromPalette(v,o,d)}})}})}},xu=Math.PI;function QN(r,e){e=e||{},ie(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var t=new ue,a=new Le({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(a);var n=new Pe({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),i=new Le({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(i);var o;return e.showSpinner&&(o=new Vf({shape:{startAngle:-xu/2,endAngle:-xu/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:xu*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:xu*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=n.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(r.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),c=r.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:c}),i.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),a.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},t.resize(),t}var aA=(function(){function r(e,t,a,n){this._stageTaskMap=re(),this.ecInstance=e,this.api=t,a=this._dataProcessorHandlers=a.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=a.concat(n)}return r.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(a){var n=a.overallTask;n&&n.dirty()})},r.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var a=this._pipelineMap.get(e.__pipeline.id),n=a.context,i=!t&&a.progressiveEnabled&&(!n||n.progressiveRender)&&e.__idxInPipeline>a.blockIndex,o=i?a.step:null,s=n&&n.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},r.prototype.updateStreamModes=function(e,t){var a=this._pipelineMap.get(e.uid),n=e.getData(),i=n.count(),o=a.progressiveEnabled&&t.incrementalPrepareRender&&i>=a.threshold,s=e.get("large")&&i>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?i:null;e.pipelineContext=a.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(e){var t=this,a=t._pipelineMap=re();e.eachSeries(function(n){var i=n.getProgressive(),o=n.uid;a.set(o,{id:o,head:null,tail:null,threshold:n.getProgressiveThreshold(),progressiveEnabled:i&&!(n.preventIncremental&&n.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),t._pipe(n,n.dataTask)})},r.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),a=this.api;L(this._allHandlers,function(n){var i=e.get(n.uid)||e.set(n.uid,{}),o="";$t(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,i,t,a),n.overallReset&&this._createOverallStageTask(n,i,t,a)},this)},r.prototype.prepareView=function(e,t,a,n){var i=e.renderTask,o=i.context;o.model=t,o.ecModel=a,o.api=n,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},r.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},r.prototype.performVisualTasks=function(e,t,a){this._performStageTasks(this._visualHandlers,e,t,a)},r.prototype._performStageTasks=function(e,t,a,n){n=n||{};var i=!1,o=this;L(e,function(l,u){if(!(n.visualType&&n.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),f=c.seriesTaskMap,h=c.overallTask;if(h){var v,d=h.agentStubMap;d.each(function(g){s(n,g)&&(g.dirty(),v=!0)}),v&&h.dirty(),o.updatePayload(h,a);var p=o.getPerformArgs(h,n.block);d.each(function(g){g.perform(p)}),h.perform(p)&&(i=!0)}else f&&f.each(function(g,m){s(n,g)&&g.dirty();var y=o.getPerformArgs(g,n.block);y.skip=!l.performRawSeries&&t.isSeriesFiltered(g.context.model),o.updatePayload(g,a),g.perform(y)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(a){t=a.dataTask.perform()||t}),this.unfinished=t||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},r.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},r.prototype._createSeriesStageTask=function(e,t,a,n){var i=this,o=t.seriesTaskMap,s=t.seriesTaskMap=re(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?a.eachRawSeries(c):l?a.eachRawSeriesByType(l,c):u&&u(a,n).each(c);function c(f){var h=f.uid,v=s.set(h,o&&o.get(h)||Xs({plan:n4,reset:i4,count:s4}));v.context={model:f,ecModel:a,api:n,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(f,v)}},r.prototype._createOverallStageTask=function(e,t,a,n){var i=this,o=t.overallTask=t.overallTask||Xs({reset:e4});o.context={ecModel:a,api:n,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=re(),u=e.seriesType,c=e.getTargetSeries,f=!0,h=!1,v="";$t(!e.createOnAllSeries,v),u?a.eachRawSeriesByType(u,d):c?c(a,n).each(d):(f=!1,L(a.getSeries(),d));function d(p){var g=p.uid,m=l.set(g,s&&s.get(g)||(h=!0,Xs({reset:t4,onDirty:a4})));m.context={model:p,overallProgress:f},m.agent=o,m.__block=f,i._pipe(p,m)}h&&o.dirty()},r.prototype._pipe=function(e,t){var a=e.uid,n=this._pipelineMap.get(a);!n.head&&(n.head=t),n.tail&&n.tail.pipe(t),n.tail=t,t.__idxInPipeline=n.count++,t.__pipeline=n},r.wrapStageHandler=function(e,t){return ne(e)&&(e={overallReset:e,seriesType:l4(e)}),e.uid=Go("stageHandler"),t&&(e.visualType=t),e},r})();function e4(r){r.overallReset(r.ecModel,r.api,r.payload)}function t4(r){return r.overallProgress&&r4}function r4(){this.agent.dirty(),this.getDownstream().dirty()}function a4(){this.agent&&this.agent.dirty()}function n4(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function i4(r){r.useClearVisual&&r.data.clearAllVisual();var e=r.resetDefines=je(r.reset(r.model,r.ecModel,r.api,r.payload));return e.length>1?U(e,function(t,a){return nA(a)}):o4}var o4=nA(0);function nA(r){return function(e,t){var a=t.data,n=t.resetDefines[r];if(n&&n.dataEach)for(var i=e.start;i<e.end;i++)n.dataEach(a,i);else n&&n.progress&&n.progress(e,a)}}function s4(r){return r.data.count()}function l4(r){Wc=null;try{r(dl,iA)}catch{}return Wc}var dl={},iA={},Wc;oA(dl,wm);oA(iA,IC);dl.eachSeriesByType=dl.eachRawSeriesByType=function(r){Wc=r};dl.eachComponent=function(r){r.mainType==="series"&&r.subType&&(Wc=r.subType)};function oA(r,e){for(var t in e.prototype)r[t]=nt}var ux=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const u4={color:ux,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],ux]};var Et="#B9B8CE",cx="#100C2A",_u=function(){return{axisLine:{lineStyle:{color:Et}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},fx=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],sA={darkMode:!0,color:fx,backgroundColor:cx,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Et},pageTextStyle:{color:Et}},textStyle:{color:Et},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Et}},dataZoom:{borderColor:"#71708A",textStyle:{color:Et},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:Et}},timeline:{lineStyle:{color:Et},label:{color:Et},controlStyle:{color:Et,borderColor:Et}},calendar:{itemStyle:{color:cx},dayLabel:{color:Et},monthLabel:{color:Et},yearLabel:{color:Et}},timeAxis:_u(),logAxis:_u(),valueAxis:_u(),categoryAxis:_u(),line:{symbol:"circle"},graph:{color:fx},gauge:{title:{color:Et},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Et},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};sA.categoryAxis.splitLine.show=!1;var c4=(function(){function r(){}return r.prototype.normalizeQuery=function(e){var t={},a={},n={};if(q(e)){var i=ra(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};L(e,function(l,u){for(var c=!1,f=0;f<o.length;f++){var h=o[f],v=u.lastIndexOf(h);if(v>0&&v===u.length-h.length){var d=u.slice(0,v);d!=="data"&&(t.mainType=d,t[h.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(a[u]=l,c=!0),c||(n[u]=l)})}return{cptQuery:t,dataQuery:a,otherQuery:n}},r.prototype.filter=function(e,t){var a=this.eventInfo;if(!a)return!0;var n=a.targetEl,i=a.packedEvent,o=a.model,s=a.view;if(!o||!s)return!0;var l=t.cptQuery,u=t.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,i,"name")&&c(u,i,"dataIndex")&&c(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,n,i));function c(f,h,v,d){return f[v]==null||h[d||v]===f[v]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r})(),Op=["symbol","symbolSize","symbolRotate","symbolOffset"],hx=Op.concat(["symbolKeepAspect"]),f4={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData();if(r.legendIcon&&t.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var a={},n={},i=!1,o=0;o<Op.length;o++){var s=Op[o],l=r.get(s);ne(l)?(i=!0,n[s]=l):a[s]=l}if(a.symbol=a.symbol||r.defaultSymbol,t.setVisual(G({legendIcon:r.legendIcon||a.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},a)),e.isSeriesFiltered(r))return;var u=Me(n);function c(f,h){for(var v=r.getRawValue(h),d=r.getDataParams(h),p=0;p<u.length;p++){var g=u[p];f.setItemVisual(h,g,n[g](v,d))}}return{dataEach:i?c:null}}},h4={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!r.hasSymbolVisual||e.isSeriesFiltered(r))return;var t=r.getData();function a(n,i){for(var o=n.getItemModel(i),s=0;s<hx.length;s++){var l=hx[s],u=o.getShallow(l,!0);u!=null&&n.setItemVisual(i,l,u)}}return{dataEach:t.hasItemOption?a:null}}};function Lm(r,e,t){switch(t){case"color":var a=r.getItemVisual(e,"style");return a[r.getVisual("drawType")];case"opacity":return r.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(e,t)}}function Vl(r,e){switch(e){case"color":var t=r.getVisual("style");return t[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(e)}}function lA(r,e,t,a){switch(t){case"color":var n=r.ensureUniqueItemVisual(e,"style");n[r.getVisual("drawType")]=a,r.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":r.ensureUniqueItemVisual(e,"style").opacity=a;break;case"symbol":case"symbolSize":case"liftZ":r.setItemVisual(e,t,a);break}}function uA(r,e){function t(a,n){var i=[];return a.eachComponent({mainType:"series",subType:r,query:n},function(o){i.push(o.seriesIndex)}),i}L([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(a){e(a[0],function(n,i,o){n=G({},n),o.dispatchAction(G(n,{type:a[1],seriesIndex:t(i,n)}))})})}function Yi(r,e,t,a,n){var i=r+e;t.isSilent(i)||a.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=n.selected,c=0;c<u.length;c++)if(u[c].seriesIndex===s){var f=o.getData(),h=_i(f,n.fromActionPayload);t.trigger(i,{type:i,seriesId:o.id,name:W(h)?f.getName(h[0]):f.getName(h),selected:q(l)?l:G({},l)})}})}function v4(r,e,t){r.on("selectchanged",function(a){var n=t.getModel();a.isFromClick?(Yi("map","selectchanged",e,n,a),Yi("pie","selectchanged",e,n,a)):a.fromAction==="select"?(Yi("map","selected",e,n,a),Yi("pie","selected",e,n,a)):a.fromAction==="unselect"&&(Yi("map","unselected",e,n,a),Yi("pie","unselected",e,n,a))})}function oi(r,e,t){for(var a;r&&!(e(r)&&(a=r,t));)r=r.__hostTarget||r.parent;return a}var d4=Math.round(Math.random()*9),p4=typeof Object.defineProperty=="function",g4=(function(){function r(){this._id="__ec_inner_"+d4++}return r.prototype.get=function(e){return this._guard(e)[this._id]},r.prototype.set=function(e,t){var a=this._guard(e);return p4?Object.defineProperty(a,this._id,{value:t,enumerable:!1,configurable:!0}):a[this._id]=t,this},r.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},r.prototype.has=function(e){return!!this._guard(e)[this._id]},r.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},r})(),m4=Ce.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,a=e.cy,n=e.width/2,i=e.height/2;r.moveTo(t,a-i),r.lineTo(t+n,a+i),r.lineTo(t-n,a+i),r.closePath()}}),y4=Ce.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,a=e.cy,n=e.width/2,i=e.height/2;r.moveTo(t,a-i),r.lineTo(t+n,a),r.lineTo(t,a+i),r.lineTo(t-n,a),r.closePath()}}),x4=Ce.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.x,a=e.y,n=e.width/5*3,i=Math.max(n,e.height),o=n/2,s=o*o/(i-o),l=a-i+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,f=Math.sin(u),h=Math.cos(u),v=o*.6,d=o*.7;r.moveTo(t-c,l+s),r.arc(t,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(t+c-f*v,l+s+h*v,t,a-d,t,a),r.bezierCurveTo(t,a-d,t-c+f*v,l+s+h*v,t-c,l+s),r.closePath()}}),_4=Ce.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.height,a=e.width,n=e.x,i=e.y,o=a/3*2;r.moveTo(n,i),r.lineTo(n+o,i+t),r.lineTo(n,i+t/4*3),r.lineTo(n-o,i+t),r.lineTo(n,i),r.closePath()}}),b4={line:yt,rect:Le,roundRect:Le,square:Le,circle:Oa,diamond:y4,pin:x4,arrow:_4,triangle:m4},S4={line:function(r,e,t,a,n){n.x1=r,n.y1=e+a/2,n.x2=r+t,n.y2=e+a/2},rect:function(r,e,t,a,n){n.x=r,n.y=e,n.width=t,n.height=a},roundRect:function(r,e,t,a,n){n.x=r,n.y=e,n.width=t,n.height=a,n.r=Math.min(t,a)/4},square:function(r,e,t,a,n){var i=Math.min(t,a);n.x=r,n.y=e,n.width=i,n.height=i},circle:function(r,e,t,a,n){n.cx=r+t/2,n.cy=e+a/2,n.r=Math.min(t,a)/2},diamond:function(r,e,t,a,n){n.cx=r+t/2,n.cy=e+a/2,n.width=t,n.height=a},pin:function(r,e,t,a,n){n.x=r+t/2,n.y=e+a/2,n.width=t,n.height=a},arrow:function(r,e,t,a,n){n.x=r+t/2,n.y=e+a/2,n.width=t,n.height=a},triangle:function(r,e,t,a,n){n.cx=r+t/2,n.cy=e+a/2,n.width=t,n.height=a}},$c={};L(b4,function(r,e){$c[e]=new r});var w4=Ce.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,e,t){var a=Ec(r,e,t),n=this.shape;return n&&n.symbolType==="pin"&&e.position==="inside"&&(a.y=t.y+t.height*.4),a},buildPath:function(r,e,t){var a=e.symbolType;if(a!=="none"){var n=$c[a];n||(a="rect",n=$c[a]),S4[a](e.x,e.y,e.width,e.height,n.shape),n.buildPath(r,n.shape,t)}}});function T4(r,e){if(this.type!=="image"){var t=this.style;this.__isEmptyBrush?(t.stroke=r,t.fill=e||"#fff",t.lineWidth=2):this.shape.symbolType==="line"?t.stroke=r:t.fill=r,this.markRedraw()}}function lt(r,e,t,a,n,i,o){var s=r.indexOf("empty")===0;s&&(r=r.substr(5,1).toLowerCase()+r.substr(6));var l;return r.indexOf("image://")===0?l=KT(r.slice(8),new ye(e,t,a,n),o?"center":"cover"):r.indexOf("path://")===0?l=Ff(r.slice(7),{},new ye(e,t,a,n),o?"center":"cover"):l=new w4({shape:{symbolType:r,x:e,y:t,width:a,height:n}}),l.__isEmptyBrush=s,l.setColor=T4,i&&l.setColor(i),l}function Yo(r){return W(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function Ii(r,e){if(r!=null)return W(r)||(r=[r,r]),[X(r[0],e[0])||0,X(fe(r[1],r[0]),e[1])||0]}function si(r){return isFinite(r)}function C4(r,e,t){var a=e.x==null?0:e.x,n=e.x2==null?1:e.x2,i=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(a=a*t.width+t.x,n=n*t.width+t.x,i=i*t.height+t.y,o=o*t.height+t.y),a=si(a)?a:0,n=si(n)?n:1,i=si(i)?i:0,o=si(o)?o:0;var s=r.createLinearGradient(a,i,n,o);return s}function A4(r,e,t){var a=t.width,n=t.height,i=Math.min(a,n),o=e.x==null?.5:e.x,s=e.y==null?.5:e.y,l=e.r==null?.5:e.r;e.global||(o=o*a+t.x,s=s*n+t.y,l=l*i),o=si(o)?o:.5,s=si(s)?s:.5,l=l>=0&&si(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function Bp(r,e,t){for(var a=e.type==="radial"?A4(r,e,t):C4(r,e,t),n=e.colorStops,i=0;i<n.length;i++)a.addColorStop(n[i].offset,n[i].color);return a}function D4(r,e){if(r===e||!r&&!e)return!1;if(!r||!e||r.length!==e.length)return!0;for(var t=0;t<r.length;t++)if(r[t]!==e[t])return!0;return!1}function bu(r){return parseInt(r,10)}function vo(r,e,t){var a=["width","height"][e],n=["clientWidth","clientHeight"][e],i=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(t[a]!=null&&t[a]!=="auto")return parseFloat(t[a]);var s=document.defaultView.getComputedStyle(r);return(r[n]||bu(s[a])||bu(r.style[a]))-(bu(s[i])||0)-(bu(s[o])||0)|0}function M4(r,e){return!r||r==="solid"||!(e>0)?null:r==="dashed"?[4*e,2*e]:r==="dotted"?[e]:ke(r)?[r]:W(r)?r:null}function Im(r){var e=r.style,t=e.lineDash&&e.lineWidth>0&&M4(e.lineDash,e.lineWidth),a=e.lineDashOffset;if(t){var n=e.strokeNoScale&&r.getLineScale?r.getLineScale():1;n&&n!==1&&(t=U(t,function(i){return i/n}),a/=n)}return[t,a]}var L4=new fa(!0);function Uc(r){var e=r.stroke;return!(e==null||e==="none"||!(r.lineWidth>0))}function vx(r){return typeof r=="string"&&r!=="none"}function Yc(r){var e=r.fill;return e!=null&&e!=="none"}function dx(r,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.fillOpacity*e.opacity,r.fill(),r.globalAlpha=t}else r.fill()}function px(r,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.strokeOpacity*e.opacity,r.stroke(),r.globalAlpha=t}else r.stroke()}function zp(r,e,t){var a=rm(e.image,e.__image,t);if(Rf(a)){var n=r.createPattern(a,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var i=new DOMMatrix;i.translateSelf(e.x||0,e.y||0),i.rotateSelf(0,0,(e.rotation||0)*rc),i.scaleSelf(e.scaleX||1,e.scaleY||1),n.setTransform(i)}return n}}function I4(r,e,t,a){var n,i=Uc(t),o=Yc(t),s=t.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var c=e.path||L4,f=e.__dirty;if(!a){var h=t.fill,v=t.stroke,d=o&&!!h.colorStops,p=i&&!!v.colorStops,g=o&&!!h.image,m=i&&!!v.image,y=void 0,x=void 0,_=void 0,b=void 0,S=void 0;(d||p)&&(S=e.getBoundingRect()),d&&(y=f?Bp(r,h,S):e.__canvasFillGradient,e.__canvasFillGradient=y),p&&(x=f?Bp(r,v,S):e.__canvasStrokeGradient,e.__canvasStrokeGradient=x),g&&(_=f||!e.__canvasFillPattern?zp(r,h,e):e.__canvasFillPattern,e.__canvasFillPattern=_),m&&(b=f||!e.__canvasStrokePattern?zp(r,v,e):e.__canvasStrokePattern,e.__canvasStrokePattern=_),d?r.fillStyle=y:g&&(_?r.fillStyle=_:o=!1),p?r.strokeStyle=x:m&&(b?r.strokeStyle=b:i=!1)}var w=e.getGlobalScale();c.setScale(w[0],w[1],e.segmentIgnoreThreshold);var C,A;r.setLineDash&&t.lineDash&&(n=Im(e),C=n[0],A=n[1]);var D=!0;(u||f&oo)&&(c.setDPR(r.dpr),l?c.setContext(null):(c.setContext(r),D=!1),c.reset(),e.buildPath(c,e.shape,a),c.toStatic(),e.pathUpdated()),D&&c.rebuildPath(r,l?s:1),C&&(r.setLineDash(C),r.lineDashOffset=A),a||(t.strokeFirst?(i&&px(r,t),o&&dx(r,t)):(o&&dx(r,t),i&&px(r,t))),C&&r.setLineDash([])}function P4(r,e,t){var a=e.__image=rm(t.image,e.__image,e,e.onload);if(!(!a||!Rf(a))){var n=t.x||0,i=t.y||0,o=e.getWidth(),s=e.getHeight(),l=a.width/a.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=a.width,s=a.height),t.sWidth&&t.sHeight){var u=t.sx||0,c=t.sy||0;r.drawImage(a,u,c,t.sWidth,t.sHeight,n,i,o,s)}else if(t.sx&&t.sy){var u=t.sx,c=t.sy,f=o-u,h=s-c;r.drawImage(a,u,c,f,h,n,i,o,s)}else r.drawImage(a,n,i,o,s)}}function k4(r,e,t){var a,n=t.text;if(n!=null&&(n+=""),n){r.font=t.font||hn,r.textAlign=t.textAlign,r.textBaseline=t.textBaseline;var i=void 0,o=void 0;r.setLineDash&&t.lineDash&&(a=Im(e),i=a[0],o=a[1]),i&&(r.setLineDash(i),r.lineDashOffset=o),t.strokeFirst?(Uc(t)&&r.strokeText(n,t.x,t.y),Yc(t)&&r.fillText(n,t.x,t.y)):(Yc(t)&&r.fillText(n,t.x,t.y),Uc(t)&&r.strokeText(n,t.x,t.y)),i&&r.setLineDash([])}}var gx=["shadowBlur","shadowOffsetX","shadowOffsetY"],mx=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function cA(r,e,t,a,n){var i=!1;if(!a&&(t=t||{},e===t))return!1;if(a||e.opacity!==t.opacity){er(r,n),i=!0;var o=Math.max(Math.min(e.opacity,1),0);r.globalAlpha=isNaN(o)?hi.opacity:o}(a||e.blend!==t.blend)&&(i||(er(r,n),i=!0),r.globalCompositeOperation=e.blend||hi.blend);for(var s=0;s<gx.length;s++){var l=gx[s];(a||e[l]!==t[l])&&(i||(er(r,n),i=!0),r[l]=r.dpr*(e[l]||0))}return(a||e.shadowColor!==t.shadowColor)&&(i||(er(r,n),i=!0),r.shadowColor=e.shadowColor||hi.shadowColor),i}function yx(r,e,t,a,n){var i=pl(e,n.inHover),o=a?null:t&&pl(t,n.inHover)||{};if(i===o)return!1;var s=cA(r,i,o,a,n);if((a||i.fill!==o.fill)&&(s||(er(r,n),s=!0),vx(i.fill)&&(r.fillStyle=i.fill)),(a||i.stroke!==o.stroke)&&(s||(er(r,n),s=!0),vx(i.stroke)&&(r.strokeStyle=i.stroke)),(a||i.opacity!==o.opacity)&&(s||(er(r,n),s=!0),r.globalAlpha=i.opacity==null?1:i.opacity),e.hasStroke()){var l=i.lineWidth,u=l/(i.strokeNoScale&&e.getLineScale?e.getLineScale():1);r.lineWidth!==u&&(s||(er(r,n),s=!0),r.lineWidth=u)}for(var c=0;c<mx.length;c++){var f=mx[c],h=f[0];(a||i[h]!==o[h])&&(s||(er(r,n),s=!0),r[h]=i[h]||f[1])}return s}function R4(r,e,t,a,n){return cA(r,pl(e,n.inHover),t&&pl(t,n.inHover),a,n)}function fA(r,e){var t=e.transform,a=r.dpr||1;t?r.setTransform(a*t[0],a*t[1],a*t[2],a*t[3],a*t[4],a*t[5]):r.setTransform(a,0,0,a,0,0)}function E4(r,e,t){for(var a=!1,n=0;n<r.length;n++){var i=r[n];a=a||i.isZeroArea(),fA(e,i),e.beginPath(),i.buildPath(e,i.shape),e.clip()}t.allClipped=a}function N4(r,e){return r&&e?r[0]!==e[0]||r[1]!==e[1]||r[2]!==e[2]||r[3]!==e[3]||r[4]!==e[4]||r[5]!==e[5]:!(!r&&!e)}var xx=1,_x=2,bx=3,Sx=4;function O4(r){var e=Yc(r),t=Uc(r);return!(r.lineDash||!(+e^+t)||e&&typeof r.fill!="string"||t&&typeof r.stroke!="string"||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1)}function er(r,e){e.batchFill&&r.fill(),e.batchStroke&&r.stroke(),e.batchFill="",e.batchStroke=""}function pl(r,e){return e&&r.__hoverStyle||r.style}function hA(r,e){li(r,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function li(r,e,t,a){var n=e.transform;if(!e.shouldBePainted(t.viewWidth,t.viewHeight,!1,!1)){e.__dirty&=~nr,e.__isRendered=!1;return}var i=e.__clipPaths,o=t.prevElClipPaths,s=!1,l=!1;if((!o||D4(i,o))&&(o&&o.length&&(er(r,t),r.restore(),l=s=!0,t.prevElClipPaths=null,t.allClipped=!1,t.prevEl=null),i&&i.length&&(er(r,t),r.save(),E4(i,r,t),s=!0),t.prevElClipPaths=i),t.allClipped){e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=t.prevEl;u||(l=s=!0);var c=e instanceof Ce&&e.autoBatch&&O4(e.style);s||N4(n,u.transform)?(er(r,t),fA(r,e)):c||er(r,t);var f=pl(e,t.inHover);e instanceof Ce?(t.lastDrawType!==xx&&(l=!0,t.lastDrawType=xx),yx(r,e,u,l,t),(!c||!t.batchFill&&!t.batchStroke)&&r.beginPath(),I4(r,e,f,c),c&&(t.batchFill=f.fill||"",t.batchStroke=f.stroke||"")):e instanceof To?(t.lastDrawType!==bx&&(l=!0,t.lastDrawType=bx),yx(r,e,u,l,t),k4(r,e,f)):e instanceof At?(t.lastDrawType!==_x&&(l=!0,t.lastDrawType=_x),R4(r,e,u,l,t),P4(r,e,f)):e.getTemporalDisplayables&&(t.lastDrawType!==Sx&&(l=!0,t.lastDrawType=Sx),B4(r,e,t)),c&&a&&er(r,t),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),t.prevEl=e,e.__dirty=0,e.__isRendered=!0}function B4(r,e,t){var a=e.getDisplayables(),n=e.getTemporalDisplayables();r.save();var i={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:t.viewWidth,viewHeight:t.viewHeight,inHover:t.inHover},o,s;for(o=e.getCursor(),s=a.length;o<s;o++){var l=a[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),li(r,l,i,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}for(var u=0,c=n.length;u<c;u++){var l=n[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),li(r,l,i,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,r.restore()}var hv=new g4,Tx=new Ll(100),Cx=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Do(r,e){if(r==="none")return null;var t=e.getDevicePixelRatio(),a=e.getZr(),n=a.painter.type==="svg";r.dirty&&hv.delete(r);var i=hv.get(r);if(i)return i;var o=ie(r,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=n?1:1/t,hv.set(r,s),r.dirty=!1,s;function l(u){for(var c=[t],f=!0,h=0;h<Cx.length;++h){var v=o[Cx[h]];if(v!=null&&!W(v)&&!q(v)&&!ke(v)&&typeof v!="boolean"){f=!1;break}c.push(v)}var d;if(f){d=c.join(",")+(n?"-svg":"");var p=Tx.get(d);p&&(n?u.svgElement=p:u.image=p)}var g=dA(o.dashArrayX),m=z4(o.dashArrayY),y=vA(o.symbol),x=V4(g),_=pA(m),b=!n&&vn.createCanvas(),S=n&&{tag:"g",attrs:{},key:"dcl",children:[]},w=A(),C;b&&(b.width=w.width*t,b.height=w.height*t,C=b.getContext("2d")),D(),f&&Tx.put(d,b||S),u.image=b,u.svgElement=S,u.svgWidth=w.width,u.svgHeight=w.height;function A(){for(var M=1,I=0,P=x.length;I<P;++I)M=G0(M,x[I]);for(var k=1,I=0,P=y.length;I<P;++I)k=G0(k,y[I].length);M*=k;var R=_*x.length*y.length;return{width:Math.max(1,Math.min(M,o.maxTileWidth)),height:Math.max(1,Math.min(R,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 M=0,I=0;I<m.length;++I)M+=m[I];if(M<=0)return;for(var P=-_,k=0,R=0,E=0;P<w.height;){if(k%2===0){for(var B=R/2%y.length,O=0,V=0,F=0;O<w.width*2;){for(var H=0,I=0;I<g[E].length;++I)H+=g[E][I];if(H<=0)break;if(V%2===0){var Y=(1-o.symbolSize)*.5,Z=O+g[E][V]*Y,J=P+m[k]*Y,te=g[E][V]*o.symbolSize,xe=m[k]*o.symbolSize,de=F/2%y[B].length;oe(Z,J,te,xe,y[B][de])}O+=g[E][V],++F,++V,V===g[E].length&&(V=0)}++E,E===g.length&&(E=0)}P+=m[k],++R,++k,k===m.length&&(k=0)}function oe(ae,$,j,K,Se){var me=n?1:t,we=lt(Se,ae*me,$*me,j*me,K*me,o.color,o.symbolKeepAspect);if(n){var he=a.painter.renderOneToVNode(we);he&&S.children.push(he)}else hA(C,we)}}}}function vA(r){if(!r||r.length===0)return[["rect"]];if(q(r))return[[r]];for(var e=!0,t=0;t<r.length;++t)if(!q(r[t])){e=!1;break}if(e)return vA([r]);for(var a=[],t=0;t<r.length;++t)q(r[t])?a.push([r[t]]):a.push(r[t]);return a}function dA(r){if(!r||r.length===0)return[[0,0]];if(ke(r)){var e=Math.ceil(r);return[[e,e]]}for(var t=!0,a=0;a<r.length;++a)if(!ke(r[a])){t=!1;break}if(t)return dA([r]);for(var n=[],a=0;a<r.length;++a)if(ke(r[a])){var e=Math.ceil(r[a]);n.push([e,e])}else{var e=U(r[a],function(s){return Math.ceil(s)});e.length%2===1?n.push(e.concat(e)):n.push(e)}return n}function z4(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(ke(r)){var e=Math.ceil(r);return[e,e]}var t=U(r,function(a){return Math.ceil(a)});return r.length%2?t.concat(t):t}function V4(r){return U(r,function(e){return pA(e)})}function pA(r){for(var e=0,t=0;t<r.length;++t)e+=r[t];return r.length%2===1?e*2:e}function F4(r,e){r.eachRawSeries(function(t){if(!r.isSeriesFiltered(t)){var a=t.getData();a.hasItemVisual()&&a.each(function(o){var s=a.getItemVisual(o,"decal");if(s){var l=a.ensureUniqueItemVisual(o,"style");l.decal=Do(s,e)}});var n=a.getVisual("decal");if(n){var i=a.getVisual("style");i.decal=Do(n,e)}}})}var Er=new Ar,gA={};function G4(r,e){gA[r]=e}function H4(r){return gA[r]}var j4=1,W4=800,$4=900,U4=1e3,Y4=2e3,X4=5e3,mA=1e3,Z4=1100,Pm=2e3,yA=3e3,q4=4e3,Jf=4500,K4=4600,J4=5e3,Q4=6e3,xA=7e3,eO={PROCESSOR:{FILTER:U4,SERIES_FILTER:W4,STATISTIC:X4},VISUAL:{LAYOUT:mA,PROGRESSIVE_LAYOUT:Z4,GLOBAL:Pm,CHART:yA,POST_CHART_LAYOUT:K4,COMPONENT:q4,BRUSH:J4,CHART_ITEM:Jf,ARIA:Q4,DECAL:xA}},Rt="__flagInMainProcess",Kt="__pendingUpdate",vv="__needsUpdateStatus",Ax=/^[a-zA-Z0-9_]+$/,dv="__connectUpdateStatus",Dx=0,tO=1,rO=2;function _A(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(this.isDisposed()){this.id;return}return SA(this,r,e)}}function bA(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return SA(this,r,e)}}function SA(r,e,t){return t[0]=t[0]&&t[0].toLowerCase(),Ar.prototype[e].apply(r,t)}var wA=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(Ar),TA=wA.prototype;TA.on=bA("on");TA.off=bA("off");var Xi,pv,Su,Ha,gv,mv,yv,ls,us,Mx,Lx,xv,Ix,wu,Px,CA,cr,kx,AA=(function(r){z(e,r);function e(t,a,n){var i=r.call(this,new c4)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],n=n||{},q(a)&&(a=DA[a]),i._dom=t;var o="canvas",s="auto",l=!1;n.ssr&&Kk(function(h){var v=ce(h),d=v.dataIndex;if(d!=null){var p=re();return p.set("series_index",v.seriesIndex),p.set("data_index",d),v.ssrType&&p.set("ssr_type",v.ssrType),p}});var u=i._zr=B0(t,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:fe(n.useDirtyRect,l),useCoarsePointer:fe(n.useCoarsePointer,s),pointerSize:n.pointerSize});i._ssr=n.ssr,i._throttledZrFlush=Mm(Q(u.flush,u),17),a=le(a),a&&kC(a,!0),i._theme=a,i._locale=bE(n.locale||sC),i._coordSysMgr=new zl;var c=i._api=Px(i);function f(h,v){return h.__prio-v.__prio}return ic(Zc,f),ic(Vp,f),i._scheduler=new aA(i,c,Vp,Zc),i._messageCenter=new wA,i._initEvents(),i.resize=Q(i.resize,i),u.animation.on("frame",i._onframe,i),Mx(u,i),Lx(u,i),Ac(i),i}return e.prototype._onframe=function(){if(!this._disposed){kx(this);var t=this._scheduler;if(this[Kt]){var a=this[Kt].silent;this[Rt]=!0;try{Xi(this),Ha.update.call(this,null,this[Kt].updateParams)}catch(l){throw this[Rt]=!1,this[Kt]=null,l}this._zr.flush(),this[Rt]=!1,this[Kt]=null,ls.call(this,a),us.call(this,a)}else if(t.unfinished){var n=j4,i=this._model,o=this._api;t.unfinished=!1;do{var s=+new Date;t.performSeriesTasks(i),t.performDataProcessorTasks(i),mv(this,i),t.performVisualTasks(i),wu(this,this._model,o,"remain",{}),n-=+new Date-s}while(n>0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,a,n){if(!this[Rt]){if(this._disposed){this.id;return}var i,o,s;if(se(a)&&(n=a.lazyUpdate,i=a.silent,o=a.replaceMerge,s=a.transition,a=a.notMerge),this[Rt]=!0,!this._model||a){var l=new UE(this._api),u=this._theme,c=this._model=new wm;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},Fp);var f={seriesTransition:s,optionChanged:!0};if(n)this[Kt]={silent:i,updateParams:f},this[Rt]=!1,this.getZr().wakeUp();else{try{Xi(this),Ha.update.call(this,null,f)}catch(h){throw this[Kt]=null,this[Rt]=!1,h}this._ssr||this._zr.flush(),this[Kt]=null,this[Rt]=!1,ls.call(this,i),us.call(this,i)}}},e.prototype.setTheme=function(){},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Ae.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var a=this._zr.painter;return a.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var a=this._zr.painter;return a.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(Ae.svgSupported){var t=this._zr,a=t.storage.getDisplayList();return L(a,function(n){n.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(this._disposed){this.id;return}t=t||{};var a=t.excludeComponents,n=this._model,i=[],o=this;L(a,function(l){n.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(i.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return L(i,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){this.id;return}var a=t.type==="svg",n=this.group,i=Math.min,o=Math.max,s=1/0;if(Rx[n]){var l=s,u=s,c=-s,f=-s,h=[],v=t&&t.pixelRatio||this.getDevicePixelRatio();L(qs,function(x,_){if(x.group===n){var b=a?x.getZr().painter.getSvgDom().innerHTML:x.renderToCanvas(le(t)),S=x.getDom().getBoundingClientRect();l=i(S.left,l),u=i(S.top,u),c=o(S.right,c),f=o(S.bottom,f),h.push({dom:b,left:S.left,top:S.top})}}),l*=v,u*=v,c*=v,f*=v;var d=c-l,p=f-u,g=vn.createCanvas(),m=B0(g,{renderer:a?"svg":"canvas"});if(m.resize({width:d,height:p}),a){var y="";return L(h,function(x){var _=x.left-l,b=x.top-u;y+='<g transform="translate('+_+","+b+')">'+x.dom+"</g>"}),m.painter.getSvgRoot().innerHTML=y,t.connectedBackgroundColor&&m.painter.setBackgroundColor(t.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return t.connectedBackgroundColor&&m.add(new Le({shape:{x:0,y:0,width:d,height:p},style:{fill:t.connectedBackgroundColor}})),L(h,function(x){var _=new At({style:{x:x.left*v-l,y:x.top*v-u,image:x.dom}});m.add(_)}),m.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,a){return gv(this,"convertToPixel",t,a)},e.prototype.convertFromPixel=function(t,a){return gv(this,"convertFromPixel",t,a)},e.prototype.containPixel=function(t,a){if(this._disposed){this.id;return}var n=this._model,i,o=js(n,t);return L(o,function(s,l){l.indexOf("Models")>=0&&L(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)i=i||!!c.containPoint(a);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint&&(i=i||f.containPoint(a,u))}},this)},this),!!i},e.prototype.getVisual=function(t,a){var n=this._model,i=js(n,t,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?Lm(s,l,a):Vl(s,a)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;L(aO,function(a){var n=function(i){var o=t.getModel(),s=i.target,l,u=a==="globalout";if(u?l={}:s&&oi(s,function(d){var p=ce(d);if(p&&p.dataIndex!=null){var g=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return l=g&&g.getDataParams(p.dataIndex,p.dataType,s)||{},!0}else if(p.eventData)return l=G({},p.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var h=c&&f!=null&&o.getComponent(c,f),v=h&&t[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];l.event=i,l.type=a,t._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:h,view:v},t.trigger(a,l)}};n.zrEventfulCallAtLast=!0,t._zr.on(a,n,t)}),L(Zs,function(a,n){t._messageCenter.on(n,function(i){this.trigger(n,i)},t)}),L(["selectchanged"],function(a){t._messageCenter.on(a,function(n){this.trigger(a,n)},t)}),v4(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var t=this.getDom();t&&xT(this.getDom(),Rm,"");var a=this,n=a._api,i=a._model;L(a._componentsViews,function(o){o.dispose(i,n)}),L(a._chartsViews,function(o){o.dispose(i,n)}),a._zr.dispose(),a._dom=a._model=a._chartsMap=a._componentsMap=a._chartsViews=a._componentsViews=a._scheduler=a._api=a._zr=a._throttledZrFlush=a._theme=a._coordSysMgr=a._messageCenter=null,delete qs[a.id]},e.prototype.resize=function(t){if(!this[Rt]){if(this._disposed){this.id;return}this._zr.resize(t);var a=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!a){var n=a.resetOption("media"),i=t&&t.silent;this[Kt]&&(i==null&&(i=this[Kt].silent),n=!0,this[Kt]=null),this[Rt]=!0;try{n&&Xi(this),Ha.update.call(this,{type:"resize",animation:G({duration:0},t&&t.animation)})}catch(o){throw this[Rt]=!1,o}this[Rt]=!1,ls.call(this,i),us.call(this,i)}}},e.prototype.showLoading=function(t,a){if(this._disposed){this.id;return}if(se(t)&&(a=t,t=""),t=t||"default",this.hideLoading(),!!Gp[t]){var n=Gp[t](this._api,a),i=this._zr;this._loadingFX=n,i.add(n)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var a=G({},t);return a.type=Zs[t.type],a},e.prototype.dispatchAction=function(t,a){if(this._disposed){this.id;return}if(se(a)||(a={silent:!!a}),!!Xc[t.type]&&this._model){if(this[Rt]){this._pendingActions.push(t);return}var n=a.silent;yv.call(this,t,n);var i=a.flush;i?this._zr.flush():i!==!1&&Ae.browser.weChat&&this._throttledZrFlush(),ls.call(this,n),us.call(this,n)}},e.prototype.updateLabelLayout=function(){Er.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){this.id;return}var a=t.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(a);i.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=(function(){Xi=function(f){var h=f._scheduler;h.restorePipelines(f._model),h.prepareStageTasks(),pv(f,!0),pv(f,!1),h.plan()},pv=function(f,h){for(var v=f._model,d=f._scheduler,p=h?f._componentsViews:f._chartsViews,g=h?f._componentsMap:f._chartsMap,m=f._zr,y=f._api,x=0;x<p.length;x++)p[x].__alive=!1;h?v.eachComponent(function(S,w){S!=="series"&&_(w)}):v.eachSeries(_);function _(S){var w=S.__requireNewView;S.__requireNewView=!1;var C="_ec_"+S.id+"_"+S.type,A=!w&&g[C];if(!A){var D=ra(S.type),M=h?Qe.getClass(D.main,D.sub):$e.getClass(D.sub);A=new M,A.init(v,y),g[C]=A,p.push(A),m.add(A.group)}S.__viewId=A.__id=C,A.__alive=!0,A.__model=S,A.group.__ecComponentInfo={mainType:S.mainType,index:S.componentIndex},!h&&d.prepareView(A,S,v,y)}for(var x=0;x<p.length;){var b=p[x];b.__alive?x++:(!h&&b.renderTask.dispose(),m.remove(b.group),b.dispose(v,y),p.splice(x,1),g[b.__id]===b&&delete g[b.__id],b.__id=b.group.__ecComponentInfo=null)}},Su=function(f,h,v,d,p){var g=f._model;if(g.setUpdatePayload(v),!d){L([].concat(f._componentsViews).concat(f._chartsViews),b);return}var m={};m[d+"Id"]=v[d+"Id"],m[d+"Index"]=v[d+"Index"],m[d+"Name"]=v[d+"Name"];var y={mainType:d,query:m};p&&(y.subType=p);var x=v.excludeSeriesId,_;x!=null&&(_=re(),L(je(x),function(S){var w=pt(S,null);w!=null&&_.set(w,!0)})),g&&g.eachComponent(y,function(S){var w=_&&_.get(S.id)!=null;if(!w)if(v1(v))if(S instanceof Ze)v.type===vi&&!v.notBlur&&!S.get(["emphasis","disabled"])&&_R(S,v,f._api);else{var C=lm(S.mainType,S.componentIndex,v.name,f._api),A=C.focusSelf,D=C.dispatchers;v.type===vi&&A&&!v.notBlur&&bp(S.mainType,S.componentIndex,f._api),D&&L(D,function(M){v.type===vi?La(M):Ia(M)})}else wp(v)&&S instanceof Ze&&(wR(S,v,f._api),f1(S),cr(f))},f),g&&g.eachComponent(y,function(S){var w=_&&_.get(S.id)!=null;w||b(f[d==="series"?"_chartsMap":"_componentsMap"][S.__viewId])},f);function b(S){S&&S.__alive&&S[h]&&S[h](S.__model,g,f._api,v)}},Ha={prepareAndUpdate:function(f){Xi(this),Ha.update.call(this,f,{optionChanged:f.newOption!=null})},update:function(f,h){var v=this._model,d=this._api,p=this._zr,g=this._coordSysMgr,m=this._scheduler;if(v){v.setUpdatePayload(f),m.restoreData(v,f),m.performSeriesTasks(v),g.create(v,d),m.performDataProcessorTasks(v,f),mv(this,v),g.update(v,d),t(v),m.performVisualTasks(v,f),xv(this,v,d,f,h);var y=v.get("backgroundColor")||"transparent",x=v.get("darkMode");p.setBackgroundColor(y),x!=null&&x!=="auto"&&p.setDarkMode(x),Er.trigger("afterupdate",v,d)}},updateTransform:function(f){var h=this,v=this._model,d=this._api;if(v){v.setUpdatePayload(f);var p=[];v.eachComponent(function(m,y){if(m!=="series"){var x=h.getViewOfComponentModel(y);if(x&&x.__alive)if(x.updateTransform){var _=x.updateTransform(y,v,d,f);_&&_.update&&p.push(x)}else p.push(x)}});var g=re();v.eachSeries(function(m){var y=h._chartsMap[m.__viewId];if(y.updateTransform){var x=y.updateTransform(m,v,d,f);x&&x.update&&g.set(m.uid,1)}else g.set(m.uid,1)}),t(v),this._scheduler.performVisualTasks(v,f,{setDirty:!0,dirtyMap:g}),wu(this,v,d,f,{},g),Er.trigger("afterupdate",v,d)}},updateView:function(f){var h=this._model;h&&(h.setUpdatePayload(f),$e.markUpdateMethod(f,"updateView"),t(h),this._scheduler.performVisualTasks(h,f,{setDirty:!0}),xv(this,h,this._api,f,{}),Er.trigger("afterupdate",h,this._api))},updateVisual:function(f){var h=this,v=this._model;v&&(v.setUpdatePayload(f),v.eachSeries(function(d){d.getData().clearAllVisual()}),$e.markUpdateMethod(f,"updateVisual"),t(v),this._scheduler.performVisualTasks(v,f,{visualType:"visual",setDirty:!0}),v.eachComponent(function(d,p){if(d!=="series"){var g=h.getViewOfComponentModel(p);g&&g.__alive&&g.updateVisual(p,v,h._api,f)}}),v.eachSeries(function(d){var p=h._chartsMap[d.__viewId];p.updateVisual(d,v,h._api,f)}),Er.trigger("afterupdate",v,this._api))},updateLayout:function(f){Ha.update.call(this,f)}},gv=function(f,h,v,d){if(f._disposed){f.id;return}for(var p=f._model,g=f._coordSysMgr.getCoordinateSystems(),m,y=js(p,v),x=0;x<g.length;x++){var _=g[x];if(_[h]&&(m=_[h](p,y,d))!=null)return m}},mv=function(f,h){var v=f._chartsMap,d=f._scheduler;h.eachSeries(function(p){d.updateStreamModes(p,v[p.__viewId])})},yv=function(f,h){var v=this,d=this.getModel(),p=f.type,g=f.escapeConnect,m=Xc[p],y=m.actionInfo,x=(y.update||"update").split(":"),_=x.pop(),b=x[0]!=null&&ra(x[0]);this[Rt]=!0;var S=[f],w=!1;f.batch&&(w=!0,S=U(f.batch,function(k){return k=ie(G({},k),f),k.batch=null,k}));var C=[],A,D=wp(f),M=v1(f);if(M&&FT(this._api),L(S,function(k){if(A=m.action(k,v._model,v._api),A=A||G({},k),A.type=y.event||A.type,C.push(A),M){var R=em(f),E=R.queryOptionMap,B=R.mainTypeSpecified,O=B?E.keys()[0]:"series";Su(v,_,k,O),cr(v)}else D?(Su(v,_,k,"series"),cr(v)):b&&Su(v,_,k,b.main,b.sub)}),_!=="none"&&!M&&!D&&!b)try{this[Kt]?(Xi(this),Ha.update.call(this,f),this[Kt]=null):Ha[_].call(this,f)}catch(k){throw this[Rt]=!1,k}if(w?A={type:y.event||p,escapeConnect:g,batch:C}:A=C[0],this[Rt]=!1,!h){var I=this._messageCenter;if(I.trigger(A.type,A),D){var P={type:"selectchanged",escapeConnect:g,selected:TR(d),isFromClick:f.isFromClick||!1,fromAction:f.type,fromActionPayload:f};I.trigger(P.type,P)}}},ls=function(f){for(var h=this._pendingActions;h.length;){var v=h.shift();yv.call(this,v,f)}},us=function(f){!f&&this.trigger("updated")},Mx=function(f,h){f.on("rendered",function(v){h.trigger("rendered",v),f.animation.isFinished()&&!h[Kt]&&!h._scheduler.unfinished&&!h._pendingActions.length&&h.trigger("finished")})},Lx=function(f,h){f.on("mouseover",function(v){var d=v.target,p=oi(d,ll);p&&(bR(p,v,h._api),cr(h))}).on("mouseout",function(v){var d=v.target,p=oi(d,ll);p&&(SR(p,v,h._api),cr(h))}).on("click",function(v){var d=v.target,p=oi(d,function(y){return ce(y).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",m=ce(p);h._api.dispatchAction({type:g,dataType:m.dataType,dataIndexInside:m.dataIndex,seriesIndex:m.seriesIndex,isFromClick:!0})}})};function t(f){f.clearColorPalette(),f.eachSeries(function(h){h.clearColorPalette()})}function a(f){var h=[],v=[],d=!1;if(f.eachComponent(function(y,x){var _=x.get("zlevel")||0,b=x.get("z")||0,S=x.getZLevelKey();d=d||!!S,(y==="series"?v:h).push({zlevel:_,z:b,idx:x.componentIndex,type:y,key:S})}),d){var p=h.concat(v),g,m;ic(p,function(y,x){return y.zlevel===x.zlevel?y.z-x.z:y.zlevel-x.zlevel}),L(p,function(y){var x=f.getComponent(y.type,y.idx),_=y.zlevel,b=y.key;g!=null&&(_=Math.max(g,_)),b?(_===g&&b!==m&&_++,m=b):m&&(_===g&&_++,m=""),g=_,x.setZLevel(_)})}}xv=function(f,h,v,d,p){a(h),Ix(f,h,v,d,p),L(f._chartsViews,function(g){g.__alive=!1}),wu(f,h,v,d,p),L(f._chartsViews,function(g){g.__alive||g.remove(h,v)})},Ix=function(f,h,v,d,p,g){L(g||f._componentsViews,function(m){var y=m.__model;u(y,m),m.render(y,h,v,d),s(y,m),c(y,m)})},wu=function(f,h,v,d,p,g){var m=f._scheduler;p=G(p||{},{updatedSeries:h.getSeries()}),Er.trigger("series:beforeupdate",h,v,p);var y=!1;h.eachSeries(function(x){var _=f._chartsMap[x.__viewId];_.__alive=!0;var b=_.renderTask;m.updatePayload(b,d),u(x,_),g&&g.get(x.uid)&&b.dirty(),b.perform(m.getPerformArgs(b))&&(y=!0),_.group.silent=!!x.get("silent"),o(x,_),f1(x)}),m.unfinished=y||m.unfinished,Er.trigger("series:layoutlabels",h,v,p),Er.trigger("series:transition",h,v,p),h.eachSeries(function(x){var _=f._chartsMap[x.__viewId];s(x,_),c(x,_)}),i(f,h),Er.trigger("series:afterupdate",h,v,p)},cr=function(f){f[vv]=!0,f.getZr().wakeUp()},kx=function(f){f[vv]&&(f.getZr().storage.traverse(function(h){yo(h)||n(h)}),f[vv]=!1)};function n(f){for(var h=[],v=f.currentStates,d=0;d<v.length;d++){var p=v[d];p==="emphasis"||p==="blur"||p==="select"||h.push(p)}f.selected&&f.states.select&&h.push("select"),f.hoverState===Of&&f.states.emphasis?h.push("emphasis"):f.hoverState===kl&&f.states.blur&&h.push("blur"),f.useStates(h)}function i(f,h){var v=f._zr,d=v.storage,p=0;d.traverse(function(g){g.isGroup||p++}),p>h.get("hoverLayerThreshold")&&!Ae.node&&!Ae.worker&&h.eachSeries(function(g){if(!g.preventUsingHoverLayer){var m=f._chartsMap[g.__viewId];m.__alive&&m.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function o(f,h){var v=f.get("blendMode")||null;h.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function s(f,h){if(!f.preventAutoZ){var v=f.get("z")||0,d=f.get("zlevel")||0;h.eachRendered(function(p){return l(p,v,d,-1/0),!0})}}function l(f,h,v,d){var p=f.getTextContent(),g=f.getTextGuideLine(),m=f.isGroup;if(m)for(var y=f.childrenRef(),x=0;x<y.length;x++)d=Math.max(l(y[x],h,v,d),d);else f.z=h,f.zlevel=v,d=Math.max(f.z2,d);if(p&&(p.z=h,p.zlevel=v,isFinite(d)&&(p.z2=d+2)),g){var _=f.textGuideLineConfig;g.z=h,g.zlevel=v,isFinite(d)&&(g.z2=d+(_&&_.showAbove?1:-1))}return d}function u(f,h){h.eachRendered(function(v){if(!yo(v)){var d=v.getTextContent(),p=v.getTextGuideLine();v.stateTransition&&(v.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),v.hasState()?(v.prevStates=v.currentStates,v.clearStates()):v.prevStates&&(v.prevStates=null)}})}function c(f,h){var v=f.getModel("stateAnimation"),d=f.isAnimationEnabled(),p=v.get("duration"),g=p>0?{duration:p,delay:v.get("delay"),easing:v.get("easing")}:null;h.eachRendered(function(m){if(m.states&&m.states.emphasis){if(yo(m))return;if(m instanceof Ce&&LR(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(d){m.stateTransition=g;var x=m.getTextContent(),_=m.getTextGuideLine();x&&(x.stateTransition=g),_&&(_.stateTransition=g)}m.__dirty&&n(m)}})}Px=function(f){return new((function(h){z(v,h);function v(){return h!==null&&h.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return f._model.getComponent(p.mainType,p.index);d=d.parent}},v.prototype.enterEmphasis=function(d,p){La(d,p),cr(f)},v.prototype.leaveEmphasis=function(d,p){Ia(d,p),cr(f)},v.prototype.enterBlur=function(d){OT(d),cr(f)},v.prototype.leaveBlur=function(d){sm(d),cr(f)},v.prototype.enterSelect=function(d){BT(d),cr(f)},v.prototype.leaveSelect=function(d){zT(d),cr(f)},v.prototype.getModel=function(){return f.getModel()},v.prototype.getViewOfComponentModel=function(d){return f.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return f.getViewOfSeriesModel(d)},v})(IC))(f)},CA=function(f){function h(v,d){for(var p=0;p<v.length;p++){var g=v[p];g[dv]=d}}L(Zs,function(v,d){f._messageCenter.on(d,function(p){if(Rx[f.group]&&f[dv]!==Dx){if(p&&p.escapeConnect)return;var g=f.makeActionFromEvent(p),m=[];L(qs,function(y){y!==f&&y.group===f.group&&m.push(y)}),h(m,Dx),L(m,function(y){y[dv]!==tO&&y.dispatchAction(g)}),h(m,rO)}})})}})(),e})(Ar),km=AA.prototype;km.on=_A("on");km.off=_A("off");km.one=function(r,e,t){var a=this;function n(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];e&&e.apply&&e.apply(this,i),a.off(r,n)}this.on.call(this,r,n,t)};var aO=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Xc={},Zs={},Vp=[],Fp=[],Zc=[],DA={},Gp={},qs={},Rx={},nO=+new Date-0,Rm="_echarts_instance_";function iO(r,e,t){{var a=oO(r);if(a)return a}var n=new AA(r,e,t);return n.id="ec_"+nO++,qs[n.id]=n,xT(r,Rm,n.id),CA(n),Er.trigger("afterinit",n),n}function oO(r){return qs[m3(r,Rm)]}function MA(r,e){DA[r]=e}function LA(r){_e(Fp,r)<0&&Fp.push(r)}function IA(r,e){Nm(Vp,r,e,Y4)}function sO(r){Em("afterinit",r)}function lO(r){Em("afterupdate",r)}function Em(r,e){Er.on(r,e)}function va(r,e,t){ne(e)&&(t=e,e="");var a=se(r)?r.type:[r,r={event:e}][0];r.event=(r.event||a).toLowerCase(),e=r.event,!Zs[e]&&($t(Ax.test(a)&&Ax.test(e)),Xc[a]||(Xc[a]={action:t,actionInfo:r}),Zs[e]=a)}function uO(r,e){zl.register(r,e)}function cO(r,e){Nm(Zc,r,e,mA,"layout")}function Pi(r,e){Nm(Zc,r,e,yA,"visual")}var Ex=[];function Nm(r,e,t,a,n){if((ne(e)||se(e))&&(t=e,e=a),!(_e(Ex,t)>=0)){Ex.push(t);var i=aA.wrapStageHandler(t,n);i.__prio=e,i.__raw=t,r.push(i)}}function PA(r,e){Gp[r]=e}function fO(r,e,t){var a=H4("registerMap");a&&a(r,e,t)}var hO=TN;Pi(Pm,qN);Pi(Jf,KN);Pi(Jf,JN);Pi(Pm,f4);Pi(Jf,h4);Pi(xA,F4);LA(kC);IA($4,nN);PA("default",QN);va({type:vi,event:vi,update:vi},nt);va({type:cc,event:cc,update:cc},nt);va({type:Ws,event:Ws,update:Ws},nt);va({type:fc,event:fc,update:fc},nt);va({type:$s,event:$s,update:$s},nt);MA("light",u4);MA("dark",sA);var Nx=[],vO={registerPreprocessor:LA,registerProcessor:IA,registerPostInit:sO,registerPostUpdate:lO,registerUpdateLifecycle:Em,registerAction:va,registerCoordinateSystem:uO,registerLayout:cO,registerVisual:Pi,registerTransform:hO,registerLoading:PA,registerMap:fO,registerImpl:G4,PRIORITY:eO,ComponentModel:De,ComponentView:Qe,SeriesModel:Ze,ChartView:$e,registerComponentModel:function(r){De.registerClass(r)},registerComponentView:function(r){Qe.registerClass(r)},registerSeriesModel:function(r){Ze.registerClass(r)},registerChartView:function(r){$e.registerClass(r)},registerSubTypeDefaulter:function(r,e){De.registerSubTypeDefaulter(r,e)},registerPainter:function(r,e){Zk(r,e)}};function Te(r){if(W(r)){L(r,function(e){Te(e)});return}_e(Nx,r)>=0||(Nx.push(r),ne(r)&&(r={install:r}),r.install(vO))}function cs(r){return r==null?0:r.length||1}function Ox(r){return r}var Pa=(function(){function r(e,t,a,n,i,o){this._old=e,this._new=t,this._oldKeyGetter=a||Ox,this._newKeyGetter=n||Ox,this.context=i,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(e){return this._add=e,this},r.prototype.update=function(e){return this._update=e,this},r.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},r.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},r.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},r.prototype.remove=function(e){return this._remove=e,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var e=this._old,t=this._new,a={},n=new Array(e.length),i=new Array(t.length);this._initIndexMap(e,null,n,"_oldKeyGetter"),this._initIndexMap(t,a,i,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=n[o],l=a[s],u=cs(l);if(u>1){var c=l.shift();l.length===1&&(a[s]=l[0]),this._update&&this._update(c,o)}else u===1?(a[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,a)},r.prototype._executeMultiple=function(){var e=this._old,t=this._new,a={},n={},i=[],o=[];this._initIndexMap(e,a,i,"_oldKeyGetter"),this._initIndexMap(t,n,o,"_newKeyGetter");for(var s=0;s<i.length;s++){var l=i[s],u=a[l],c=n[l],f=cs(u),h=cs(c);if(f>1&&h===1)this._updateManyToOne&&this._updateManyToOne(c,u),n[l]=null;else if(f===1&&h>1)this._updateOneToMany&&this._updateOneToMany(c,u),n[l]=null;else if(f===1&&h===1)this._update&&this._update(c,u),n[l]=null;else if(f>1&&h>1)this._updateManyToMany&&this._updateManyToMany(c,u),n[l]=null;else if(f>1)for(var v=0;v<f;v++)this._remove&&this._remove(u[v]);else this._remove&&this._remove(u)}this._performRestAdd(o,n)},r.prototype._performRestAdd=function(e,t){for(var a=0;a<e.length;a++){var n=e[a],i=t[n],o=cs(i);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(i[s]);else o===1&&this._add&&this._add(i);t[n]=null}},r.prototype._initIndexMap=function(e,t,a,n){for(var i=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[n](e[o],o);if(i||(a[o]=s),!!t){var l=t[s],u=cs(l);u===0?(t[s]=o,i&&a.push(s)):u===1?t[s]=[l,o]:l.push(o)}}},r})(),dO=(function(){function r(e,t){this._encode=e,this._schema=t}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 pO(r,e){var t={},a=t.encode={},n=re(),i=[],o=[],s={};L(r.dimensions,function(h){var v=r.getDimensionInfo(h),d=v.coordDim;if(d){var p=v.coordDimIndex;_v(a,d)[p]=h,v.isExtraCoord||(n.set(d,1),gO(v.type)&&(i[0]=h),_v(s,d)[p]=r.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(h)}wC.each(function(g,m){var y=_v(a,m),x=v.otherDims[m];x!=null&&x!==!1&&(y[x]=v.name)})});var l=[],u={};n.each(function(h,v){var d=a[v];u[v]=d[0],l=l.concat(d)}),t.dataDimsOnCoord=l,t.dataDimIndicesOnCoord=U(l,function(h){return r.getDimensionInfo(h).storeDimIndex}),t.encodeFirstDimNotExtra=u;var c=a.label;c&&c.length&&(i=c.slice());var f=a.tooltip;return f&&f.length?o=f.slice():o.length||(o=i.slice()),a.defaultedLabel=i,a.defaultedTooltip=o,t.userOutput=new dO(s,e),t}function _v(r,e){return r.hasOwnProperty(e)||(r[e]=[]),r[e]}function qc(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function gO(r){return!(r==="ordinal"||r==="time")}var gc=(function(){function r(e){this.otherDims={},e!=null&&G(this,e)}return r})(),mO=Ie(),yO={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},kA=(function(){function r(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=NA(this.source)))},r.prototype.getSourceDimensionIndex=function(e){return fe(this._dimNameMap.get(e),-1)},r.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},r.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=EC(this.source),a=!OA(e),n="",i=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,c=void 0,f=this.dimensions[s];if(f&&f.storeDimIndex===o)l=t?f.name:null,u=f.type,c=f.ordinalMeta,s++;else{var h=this.getSourceDimension(o);h&&(l=t?h.name:null,u=h.type)}i.push({property:l,type:u,ordinalMeta:c}),t&&l!=null&&(!f||!f.isCalculationCoord)&&(n+=a?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),n+="$",n+=yO[u]||"f",c&&(n+=c.uid),n+="$"}var v=this.source,d=[v.seriesLayoutBy,v.startIndex,n].join("$$");return{dimensions:i,hash:d}},r.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,a=0;t<this._fullDimCount;t++){var n=void 0,i=this.dimensions[a];if(i&&i.storeDimIndex===t)i.isCalculationCoord||(n=i.name),a++;else{var o=this.getSourceDimension(t);o&&(n=o.name)}e.push(n)}return e},r.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r})();function RA(r){return r instanceof kA}function EA(r){for(var e=re(),t=0;t<(r||[]).length;t++){var a=r[t],n=se(a)?a.name:a;n!=null&&e.get(n)==null&&e.set(n,t)}return e}function NA(r){var e=mO(r);return e.dimNameMap||(e.dimNameMap=EA(r.dimensionsDefine))}function OA(r){return r>30}var fs=se,ja=U,xO=typeof Int32Array>"u"?Array:Int32Array,_O="e\0\0",Bx=-1,bO=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],SO=["_approximateExtent"],zx,Tu,hs,vs,bv,ds,Sv,jt=(function(){function r(e,t){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var a,n=!1;RA(e)?(a=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(n=!0,a=e),a=a||["x","y"];for(var i={},o=[],s={},l=!1,u={},c=0;c<a.length;c++){var f=a[c],h=q(f)?new gc({name:f}):f instanceof gc?f:new gc(f),v=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=v,h.coordDimIndex=0);var d=h.otherDims=h.otherDims||{};o.push(v),i[v]=h,u[v]!=null&&(l=!0),h.createInvertedIndices&&(s[v]=[]),d.itemName===0&&(this._nameDimIdx=c),d.itemId===0&&(this._idDimIdx=c),n&&(h.storeDimIndex=c)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(l),this.hostModel=t,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=re();L(o,function(g){p.set(i[g].storeDimIndex,g)})}}return r.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(t==null)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var a=this._dimIdxToName.get(t);if(a!=null)return a;var n=this._schema.getSourceDimension(t);if(n)return n.name},r.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(t!=null)return t;if(e==null)return-1;var a=this._getDimInfo(e);return a?a.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},r.prototype._recognizeDimIndex=function(e){if(ke(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},r.prototype._getStoreDimIndex=function(e){var t=this.getDimensionIndex(e);return t},r.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},r.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(a){return t.hasOwnProperty(a)?t[a]:void 0}:function(a){return t[a]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(e,t){var a=this._dimSummary;if(t==null)return a.encodeFirstDimNotExtra[e];var n=a.encode[e];return n?n[t]:null},r.prototype.mapDimensionsAll=function(e){var t=this._dimSummary,a=t.encode[e];return(a||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(e,t,a){var n=this,i;if(e instanceof kp&&(i=e),!i){var o=this.dimensions,s=Tm(e)||Ot(e)?new NC(e,o.length):e;i=new kp;var l=ja(o,function(u){return{type:n._dimInfos[u].type,property:u}});i.initData(s,l,a)}this._store=i,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=pO(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},r.prototype.appendValues=function(e,t){var a=this._store.appendValues(e,t&&t.length),n=a.start,i=a.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var s=n;s<i;s++){var l=s-n;this._nameList[s]=t[l],o&&Sv(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,a=0;a<t.length;a++){var n=this._dimInfos[t[a]];n.ordinalMeta&&e.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==un&&!e.fillStorage},r.prototype._doInit=function(e,t){if(!(e>=t)){var a=this._store,n=a.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=n.getSource().sourceFormat,l=s===Dr;if(l&&!n.pure)for(var u=[],c=e;c<t;c++){var f=n.getItem(c,u);if(!this.hasItemOption&&n3(f)&&(this.hasItemOption=!0),f){var h=f.name;i[c]==null&&h!=null&&(i[c]=pt(h,null));var v=f.id;o[c]==null&&v!=null&&(o[c]=pt(v,null))}}if(this._shouldMakeIdFromName())for(var c=e;c<t;c++)Sv(this,c);zx(this)}},r.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},r.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},r.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},r.prototype.setCalculationInfo=function(e,t){fs(e)?G(this._calculationInfo,e):this._calculationInfo[e]=t},r.prototype.getName=function(e){var t=this.getRawIndex(e),a=this._nameList[t];return a==null&&this._nameDimIdx!=null&&(a=hs(this,this._nameDimIdx,t)),a==null&&(a=""),a},r.prototype._getCategory=function(e,t){var a=this._store.get(e,t),n=this._store.getOrdinalMeta(e);return n?n.categories[a]:a},r.prototype.getId=function(e){return Tu(this,this.getRawIndex(e))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(e,t){var a=this._store,n=this._dimInfos[e];if(n)return a.get(n.storeDimIndex,t)},r.prototype.getByRawIndex=function(e,t){var a=this._store,n=this._dimInfos[e];if(n)return a.getByRawIndex(n.storeDimIndex,t)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},r.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},r.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},r.prototype.getValues=function(e,t){var a=this,n=this._store;return W(e)?n.getValues(ja(e,function(i){return a._getStoreDimIndex(i)}),t):n.getValues(e)},r.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,a=0,n=t.length;a<n;a++)if(isNaN(this._store.get(t[a],e)))return!1;return!0},r.prototype.indexOfName=function(e){for(var t=0,a=this._store.count();t<a;t++)if(this.getName(t)===e)return t;return-1},r.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},r.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},r.prototype.rawIndexOf=function(e,t){var a=e&&this._invertedIndicesMap[e],n=a&&a[t];return n==null||isNaN(n)?Bx:n},r.prototype.indicesOfNearest=function(e,t,a){return this._store.indicesOfNearest(this._getStoreDimIndex(e),t,a)},r.prototype.each=function(e,t,a){ne(e)&&(a=t,t=e,e=[]);var n=a||this,i=ja(vs(e),this._getStoreDimIndex,this);this._store.each(i,n?Q(t,n):t)},r.prototype.filterSelf=function(e,t,a){ne(e)&&(a=t,t=e,e=[]);var n=a||this,i=ja(vs(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,n?Q(t,n):t),this},r.prototype.selectRange=function(e){var t=this,a={},n=Me(e);return L(n,function(i){var o=t._getStoreDimIndex(i);a[o]=e[i]}),this._store=this._store.selectRange(a),this},r.prototype.mapArray=function(e,t,a){ne(e)&&(a=t,t=e,e=[]),a=a||this;var n=[];return this.each(e,function(){n.push(t&&t.apply(this,arguments))},a),n},r.prototype.map=function(e,t,a,n){var i=a||n||this,o=ja(vs(e),this._getStoreDimIndex,this),s=ds(this);return s._store=this._store.map(o,i?Q(t,i):t),s},r.prototype.modify=function(e,t,a,n){var i=a||n||this,o=ja(vs(e),this._getStoreDimIndex,this);this._store.modify(o,i?Q(t,i):t)},r.prototype.downSample=function(e,t,a,n){var i=ds(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,a,n),i},r.prototype.minmaxDownSample=function(e,t){var a=ds(this);return a._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),a},r.prototype.lttbDownSample=function(e,t){var a=ds(this);return a._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),a},r.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},r.prototype.getItemModel=function(e){var t=this.hostModel,a=this.getRawDataItem(e);return new Ge(a,t,t&&t.ecModel)},r.prototype.diff=function(e){var t=this;return new Pa(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(a){return Tu(e,a)},function(a){return Tu(t,a)})},r.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},r.prototype.setVisual=function(e,t){this._visual=this._visual||{},fs(e)?G(this._visual,e):this._visual[e]=t},r.prototype.getItemVisual=function(e,t){var a=this._itemVisuals[e],n=a&&a[t];return n??this.getVisual(t)},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(e,t){var a=this._itemVisuals,n=a[e];n||(n=a[e]={});var i=n[t];return i==null&&(i=this.getVisual(t),W(i)?i=i.slice():fs(i)&&(i=G({},i)),n[t]=i),i},r.prototype.setItemVisual=function(e,t,a){var n=this._itemVisuals[e]||{};this._itemVisuals[e]=n,fs(t)?G(n,t):n[t]=a},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(e,t){fs(e)?G(this._layout,e):this._layout[e]=t},r.prototype.getLayout=function(e){return this._layout[e]},r.prototype.getItemLayout=function(e){return this._itemLayouts[e]},r.prototype.setItemLayout=function(e,t,a){this._itemLayouts[e]=a?G(this._itemLayouts[e]||{},t):t},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(e,t){var a=this.hostModel&&this.hostModel.seriesIndex;xp(a,this.dataType,e,t),this._graphicEls[e]=t},r.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},r.prototype.eachItemGraphicEl=function(e,t){L(this._graphicEls,function(a,n){a&&e&&e.call(t,a,n)})},r.prototype.cloneShallow=function(e){return e||(e=new r(this._schema?this._schema:ja(this.dimensions,this._getDimInfo,this),this.hostModel)),bv(e,this),e._store=this._store,e},r.prototype.wrapMethod=function(e,t){var a=this[e];ne(a)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var n=a.apply(this,arguments);return t.apply(this,[n].concat(Wg(arguments)))})},r.internalField=(function(){zx=function(e){var t=e._invertedIndicesMap;L(t,function(a,n){var i=e._dimInfos[n],o=i.ordinalMeta,s=e._store;if(o){a=t[n]=new xO(o.categories.length);for(var l=0;l<a.length;l++)a[l]=Bx;for(var l=0;l<s.count();l++)a[s.get(i.storeDimIndex,l)]=l}})},hs=function(e,t,a){return pt(e._getCategory(t,a),null)},Tu=function(e,t){var a=e._idList[t];return a==null&&e._idDimIdx!=null&&(a=hs(e,e._idDimIdx,t)),a==null&&(a=_O+t),a},vs=function(e){return W(e)||(e=e!=null?[e]:[]),e},ds=function(e){var t=new r(e._schema?e._schema:ja(e.dimensions,e._getDimInfo,e),e.hostModel);return bv(t,e),t},bv=function(e,t){L(bO.concat(t.__wrappedMethods||[]),function(a){t.hasOwnProperty(a)&&(e[a]=t[a])}),e.__wrappedMethods=t.__wrappedMethods,L(SO,function(a){e[a]=le(t[a])}),e._calculationInfo=G({},t._calculationInfo)},Sv=function(e,t){var a=e._nameList,n=e._idList,i=e._nameDimIdx,o=e._idDimIdx,s=a[t],l=n[t];if(s==null&&i!=null&&(a[t]=s=hs(e,i,t)),l==null&&o!=null&&(n[t]=l=hs(e,o,t)),l==null&&s!=null){var u=e._nameRepeatCount,c=u[s]=(u[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),n[t]=l}}})(),r})();function Fl(r,e){Tm(r)||(r=Cm(r)),e=e||{};var t=e.coordDimensions||[],a=e.dimensionsDefine||r.dimensionsDefine||[],n=re(),i=[],o=TO(r,t,a,e.dimensionsCount),s=e.canOmitUnusedDimensions&&OA(o),l=a===r.dimensionsDefine,u=l?NA(r):EA(a),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(r,o));for(var f=re(c),h=new jC(o),v=0;v<h.length;v++)h[v]=-1;function d(A){var D=h[A];if(D<0){var M=a[A],I=se(M)?M:{name:M},P=new gc,k=I.name;k!=null&&u.get(k)!=null&&(P.name=P.displayName=k),I.type!=null&&(P.type=I.type),I.displayName!=null&&(P.displayName=I.displayName);var R=i.length;return h[A]=R,P.storeDimIndex=A,i.push(P),P}return i[D]}if(!s)for(var v=0;v<o;v++)d(v);f.each(function(A,D){var M=je(A).slice();if(M.length===1&&!q(M[0])&&M[0]<0){f.set(D,!1);return}var I=f.set(D,[]);L(M,function(P,k){var R=q(P)?u.get(P):P;R!=null&&R<o&&(I[k]=R,g(d(R),D,k))})});var p=0;L(t,function(A){var D,M,I,P;if(q(A))D=A,P={};else{P=A,D=P.name;var k=P.ordinalMeta;P.ordinalMeta=null,P=G({},P),P.ordinalMeta=k,M=P.dimsDef,I=P.otherDims,P.name=P.coordDim=P.coordDimIndex=P.dimsDef=P.otherDims=null}var R=f.get(D);if(R!==!1){if(R=je(R),!R.length)for(var E=0;E<(M&&M.length||1);E++){for(;p<o&&d(p).coordDim!=null;)p++;p<o&&R.push(p++)}L(R,function(B,O){var V=d(B);if(l&&P.type!=null&&(V.type=P.type),g(ie(V,P),D,O),V.name==null&&M){var F=M[O];!se(F)&&(F={name:F}),V.name=V.displayName=F.name,V.defaultTooltip=F.defaultTooltip}I&&ie(V.otherDims,I)})}});function g(A,D,M){wC.get(D)!=null?A.otherDims[D]=M:(A.coordDim=D,A.coordDimIndex=M,n.set(D,!0))}var m=e.generateCoord,y=e.generateCoordCount,x=y!=null;y=m?y||1:0;var _=m||"value";function b(A){A.name==null&&(A.name=A.coordDim)}if(s)L(i,function(A){b(A)}),i.sort(function(A,D){return A.storeDimIndex-D.storeDimIndex});else for(var S=0;S<o;S++){var w=d(S),C=w.coordDim;C==null&&(w.coordDim=CO(_,n,x),w.coordDimIndex=0,(!m||y<=0)&&(w.isExtraCoord=!0),y--),b(w),w.type==null&&(DC(r,S)===Mt.Must||w.isExtraCoord&&(w.otherDims.itemName!=null||w.otherDims.seriesName!=null))&&(w.type="ordinal")}return wO(i),new kA({source:r,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function wO(r){for(var e=re(),t=0;t<r.length;t++){var a=r[t],n=a.name,i=e.get(n)||0;i>0&&(a.name=n+(i-1)),i++,e.set(n,i)}}function TO(r,e,t,a){var n=Math.max(r.dimensionsDetectedCount||1,e.length,t.length,a||0);return L(e,function(i){var o;se(i)&&(o=i.dimsDef)&&(n=Math.max(n,o.length))}),n}function CO(r,e,t){if(t||e.hasKey(r)){for(var a=0;e.hasKey(r+a);)a++;r+=a}return e.set(r,!0),r}var AO=(function(){function r(e){this.coordSysDims=[],this.axisMap=re(),this.categoryAxisMap=re(),this.coordSysName=e}return r})();function DO(r){var e=r.get("coordinateSystem"),t=new AO(e),a=MO[e];if(a)return a(r,t,t.axisMap,t.categoryAxisMap),t}var MO={cartesian2d:function(r,e,t,a){var n=r.getReferringComponents("xAxis",st).models[0],i=r.getReferringComponents("yAxis",st).models[0];e.coordSysDims=["x","y"],t.set("x",n),t.set("y",i),Zi(n)&&(a.set("x",n),e.firstCategoryDimIndex=0),Zi(i)&&(a.set("y",i),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(r,e,t,a){var n=r.getReferringComponents("singleAxis",st).models[0];e.coordSysDims=["single"],t.set("single",n),Zi(n)&&(a.set("single",n),e.firstCategoryDimIndex=0)},polar:function(r,e,t,a){var n=r.getReferringComponents("polar",st).models[0],i=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",i),t.set("angle",o),Zi(i)&&(a.set("radius",i),e.firstCategoryDimIndex=0),Zi(o)&&(a.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(r,e,t,a){e.coordSysDims=["lng","lat"]},parallel:function(r,e,t,a){var n=r.ecModel,i=n.getComponent("parallel",r.get("parallelIndex")),o=e.coordSysDims=i.dimensions.slice();L(i.parallelAxisIndex,function(s,l){var u=n.getComponent("parallelAxis",s),c=o[l];t.set(c,u),Zi(u)&&(a.set(c,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function Zi(r){return r.get("type")==="category"}function LO(r,e,t){t=t||{};var a=t.byIndex,n=t.stackedCoordDimension,i,o,s;IO(e)?i=e:(o=e.schema,i=o.dimensions,s=e.store);var l=!!(r&&r.get("stack")),u,c,f,h;if(L(i,function(y,x){q(y)&&(i[x]=y={name:y}),l&&!y.isExtraCoord&&(!a&&!u&&y.ordinalMeta&&(u=y),!c&&y.type!=="ordinal"&&y.type!=="time"&&(!n||n===y.coordDim)&&(c=y))}),c&&!a&&!u&&(a=!0),c){f="__\0ecstackresult_"+r.id,h="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var v=c.coordDim,d=c.type,p=0;L(i,function(y){y.coordDim===v&&p++});var g={name:f,coordDim:v,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},m={name:h,coordDim:h,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(h,d),m.storeDimIndex=s.ensureCalculationDimension(f,d)),o.appendCalculationDimension(g),o.appendCalculationDimension(m)):(i.push(g),i.push(m))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:a,stackedOverDimension:h,stackResultDimension:f}}function IO(r){return!RA(r.schema)}function mn(r,e){return!!e&&e===r.getCalculationInfo("stackedDimension")}function BA(r,e){return mn(r,e)?r.getCalculationInfo("stackResultDimension"):e}function PO(r,e){var t=r.get("coordinateSystem"),a=zl.get(t),n;return e&&e.coordSysDims&&(n=U(e.coordSysDims,function(i){var o={name:i},s=e.axisMap.get(i);if(s){var l=s.get("type");o.type=qc(l)}return o})),n||(n=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]),n}function kO(r,e,t){var a,n;return t&&L(r,function(i,o){var s=i.coordDim,l=t.categoryAxisMap.get(s);l&&(a==null&&(a=o),i.ordinalMeta=l.getOrdinalMeta(),e&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(n=!0)}),!n&&a!=null&&(r[a].otherDims.itemName=0),a}function Ba(r,e,t){t=t||{};var a=e.getSourceManager(),n,i=!1;r?(i=!0,n=Cm(r)):(n=a.getSource(),i=n.sourceFormat===Dr);var o=DO(e),s=PO(e,o),l=t.useEncodeDefaulter,u=ne(l)?l:l?ve(AC,s,e):null,c={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},f=Fl(n,c),h=kO(f.dimensions,t.createInvertedIndices,o),v=i?null:a.getSharedDataStore(f),d=LO(e,{schema:f,store:v}),p=new jt(f,e);p.setCalculationInfo(d);var g=h!=null&&RO(n)?function(m,y,x,_){return _===h?x:this.defaultDimValueGetter(m,y,x,_)}:null;return p.hasItemOption=!1,p.initData(i?n:v,null,g),p}function RO(r){if(r.sourceFormat===Dr){var e=EO(r.data||[]);return!W(Bo(e))}}function EO(r){for(var e=0;e<r.length&&r[e]==null;)e++;return r[e]}var da=(function(){function r(e){this._setting=e||{},this._extent=[1/0,-1/0]}return r.prototype.getSetting=function(e){return this._setting[e]},r.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},r.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(e,t){var a=this._extent;isNaN(e)||(a[0]=e),isNaN(t)||(a[1]=t)},r.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(e){this._isBlank=e},r})();kf(da);var NO=0,Hp=(function(){function r(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++NO}return r.createByAxisModel=function(e){var t=e.option,a=t.data,n=a&&U(a,OO);return new r({categories:n,needCollect:!n,deduplication:t.dedplication!==!1})},r.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},r.prototype.parseAndCollect=function(e){var t,a=this._needCollect;if(!q(e)&&!a)return e;if(a&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var n=this._getOrCreateMap();return t=n.get(e),t==null&&(a?(t=this.categories.length,this.categories[t]=e,n.set(e,t)):t=NaN),t},r.prototype._getOrCreateMap=function(){return this._map||(this._map=re(this.categories))},r})();function OO(r){return se(r)&&r.value!=null?r.value:r+""}function jp(r){return r.type==="interval"||r.type==="log"}function BO(r,e,t,a){var n={},i=r[1]-r[0],o=n.interval=fT(i/e);t!=null&&o<t&&(o=n.interval=t),a!=null&&o>a&&(o=n.interval=a);var s=n.intervalPrecision=zA(o),l=n.niceTickExtent=[tt(Math.ceil(r[0]/o)*o,s),tt(Math.floor(r[1]/o)*o,s)];return zO(l,r),n}function wv(r){var e=Math.pow(10,Jg(r)),t=r/e;return t?t===2?t=3:t===3?t=5:t*=2:t=1,tt(t*e)}function zA(r){return ta(r)+2}function Vx(r,e,t){r[e]=Math.max(Math.min(r[e],t[1]),t[0])}function zO(r,e){!isFinite(r[0])&&(r[0]=e[0]),!isFinite(r[1])&&(r[1]=e[1]),Vx(r,0,e),Vx(r,1,e),r[0]>r[1]&&(r[0]=r[1])}function Qf(r,e){return r>=e[0]&&r<=e[1]}function eh(r,e){return e[1]===e[0]?.5:(r-e[0])/(e[1]-e[0])}function th(r,e){return r*(e[1]-e[0])+e[0]}var rh=(function(r){z(e,r);function e(t){var a=r.call(this,t)||this;a.type="ordinal";var n=a.getSetting("ordinalMeta");return n||(n=new Hp({})),W(n)&&(n=new Hp({categories:U(n,function(i){return se(i)?i.value:i})})),a._ordinalMeta=n,a._extent=a.getSetting("extent")||[0,n.categories.length-1],a}return e.prototype.parse=function(t){return t==null?NaN:q(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),Qf(t,this._extent)&&this._ordinalMeta.categories[t]!=null},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),eh(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(th(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],a=this._extent,n=a[0];n<=a[1];)t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var a=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,a.length);o<l;++o){var u=a[o];n[o]=u,i[u]=o}for(var c=0;o<s;++o){for(;i[c]!=null;)c++;n.push(c),i[c]=o}},e.prototype._getTickNumber=function(t){var a=this._ticksByOrdinalNumber;return a&&t>=0&&t<a.length?a[t]:t},e.prototype.getRawOrdinalNumber=function(t){var a=this._ordinalNumbersByTick;return a&&t>=0&&t<a.length?a[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var a=this.getRawOrdinalNumber(t.value),n=this._ordinalMeta.categories[a];return n==null?"":n+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(t,a){this.unionExtent(t.getApproximateExtent(a))},e.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e})(da);da.registerClass(rh);var Gn=tt,ka=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return Qf(t,this._extent)},e.prototype.normalize=function(t){return eh(t,this._extent)},e.prototype.scale=function(t){return th(t,this._extent)},e.prototype.setExtent=function(t,a){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(a)||(n[1]=parseFloat(a))},e.prototype.unionExtent=function(t){var a=this._extent;t[0]<a[0]&&(a[0]=t[0]),t[1]>a[1]&&(a[1]=t[1]),this.setExtent(a[0],a[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=zA(t)},e.prototype.getTicks=function(t){var a=this._interval,n=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!a)return s;var l=1e4;n[0]<i[0]&&(t?s.push({value:Gn(i[0]-a,o)}):s.push({value:n[0]}));for(var u=i[0];u<=i[1]&&(s.push({value:u}),u=Gn(u+a,o),u!==s[s.length-1].value);)if(s.length>l)return[];var c=s.length?s[s.length-1].value:i[1];return n[1]>c&&(t?s.push({value:Gn(c+a,o)}):s.push({value:n[1]})),s},e.prototype.getMinorTicks=function(t){for(var a=this.getTicks(!0),n=[],i=this.getExtent(),o=1;o<a.length;o++){for(var s=a[o],l=a[o-1],u=0,c=[],f=s.value-l.value,h=f/t;u<t-1;){var v=Gn(l.value+(u+1)*h);v>i[0]&&v<i[1]&&c.push(v),u++}n.push(c)}return n},e.prototype.getLabel=function(t,a){if(t==null)return"";var n=a&&a.precision;n==null?n=ta(t.value)||0:n==="auto"&&(n=this._intervalPrecision);var i=Gn(t.value,n,!0);return mC(i)},e.prototype.calcNiceTicks=function(t,a,n){t=t||5;var i=this._extent,o=i[1]-i[0];if(isFinite(o)){o<0&&(o=-o,i.reverse());var s=BO(i,t,a,n);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var a=this._extent;if(a[0]===a[1])if(a[0]!==0){var n=Math.abs(a[0]);t.fixMax||(a[1]+=n/2),a[0]-=n/2}else a[1]=1;var i=a[1]-a[0];isFinite(i)||(a[0]=0,a[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var o=this._interval;t.fixMin||(a[0]=Gn(Math.floor(a[0]/o)*o)),t.fixMax||(a[1]=Gn(Math.ceil(a[1]/o)*o))},e.prototype.setNiceExtent=function(t,a){this._niceExtent=[t,a]},e.type="interval",e})(da);da.registerClass(ka);var VA=typeof Float32Array<"u",VO=VA?Float32Array:Array;function aa(r){return W(r)?VA?new Float32Array(r):r:new VO(r)}var Wp="__ec_stack_";function FA(r){return r.get("stack")||Wp+r.seriesIndex}function Om(r){return r.dim+r.index}function FO(r){var e=[],t=r.axis,a="axis0";if(t.type==="category"){for(var n=t.getBandWidth(),i=0;i<r.count;i++)e.push(ie({bandWidth:n,axisKey:a,stackId:Wp+i},r));for(var o=jA(e),s=[],i=0;i<r.count;i++){var l=o[a][Wp+i];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function GA(r,e){var t=[];return e.eachSeriesByType(r,function(a){UA(a)&&t.push(a)}),t}function GO(r){var e={};L(r,function(l){var u=l.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var f=l.getData(),h=c.dim+"_"+c.index,v=f.getDimensionIndex(f.mapDimension(c.dim)),d=f.getStore(),p=0,g=d.count();p<g;++p){var m=d.get(v,p);e[h]?e[h].push(m):e[h]=[m]}});var t={};for(var a in e)if(e.hasOwnProperty(a)){var n=e[a];if(n){n.sort(function(l,u){return l-u});for(var i=null,o=1;o<n.length;++o){var s=n[o]-n[o-1];s>0&&(i=i===null?s:Math.min(i,s))}t[a]=i}}return t}function HA(r){var e=GO(r),t=[];return L(r,function(a){var n=a.coordinateSystem,i=n.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=e[l],c=Math.abs(o[1]-o[0]),f=i.scale.getExtent(),h=Math.abs(f[1]-f[0]);s=u?c/h*u:c}else{var v=a.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=X(a.get("barWidth"),s),p=X(a.get("barMaxWidth"),s),g=X(a.get("barMinWidth")||(YA(a)?.5:1),s),m=a.get("barGap"),y=a.get("barCategoryGap");t.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:g,barGap:m,barCategoryGap:y,axisKey:Om(i),stackId:FA(a)})}),jA(t)}function jA(r){var e={};L(r,function(a,n){var i=a.axisKey,o=a.bandWidth,s=e[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[i]=s;var u=a.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=a.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=a.barMaxWidth;f&&(l[u].maxWidth=f);var h=a.barMinWidth;h&&(l[u].minWidth=h);var v=a.barGap;v!=null&&(s.gap=v);var d=a.barCategoryGap;d!=null&&(s.categoryGap=d)});var t={};return L(e,function(a,n){t[n]={};var i=a.stacks,o=a.bandWidth,s=a.categoryGap;if(s==null){var l=Me(i).length;s=Math.max(35-l*4,15)+"%"}var u=X(s,o),c=X(a.gap,1),f=a.remainedWidth,h=a.autoWidthCount,v=(f-u)/(h+(h-1)*c);v=Math.max(v,0),L(i,function(m){var y=m.maxWidth,x=m.minWidth;if(m.width){var _=m.width;y&&(_=Math.min(_,y)),x&&(_=Math.max(_,x)),m.width=_,f-=_+c*_,h--}else{var _=v;y&&y<_&&(_=Math.min(y,f)),x&&x>_&&(_=x),_!==v&&(m.width=_,f-=_+c*_,h--)}}),v=(f-u)/(h+(h-1)*c),v=Math.max(v,0);var d=0,p;L(i,function(m,y){m.width||(m.width=v),p=m,d+=m.width*(1+c)}),p&&(d-=p.width*c);var g=-d/2;L(i,function(m,y){t[n][y]=t[n][y]||{bandWidth:o,offset:g,width:m.width},g+=m.width*(1+c)})}),t}function HO(r,e,t){if(r&&e){var a=r[Om(e)];return a}}function WA(r,e){var t=GA(r,e),a=HA(t);L(t,function(n){var i=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=FA(n),u=a[Om(s)][l],c=u.offset,f=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function $A(r){return{seriesType:r,plan:$o(),reset:function(e){if(UA(e)){var t=e.getData(),a=e.coordinateSystem,n=a.getBaseAxis(),i=a.getOtherAxis(n),o=t.getDimensionIndex(t.mapDimension(i.dim)),s=t.getDimensionIndex(t.mapDimension(n.dim)),l=e.get("showBackground",!0),u=t.mapDimension(i.dim),c=t.getCalculationInfo("stackResultDimension"),f=mn(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),h=i.isHorizontal(),v=jO(n,i),d=YA(e),p=e.get("barMinHeight")||0,g=c&&t.getDimensionIndex(c),m=t.getLayout("size"),y=t.getLayout("offset");return{progress:function(x,_){for(var b=x.count,S=d&&aa(b*3),w=d&&l&&aa(b*3),C=d&&aa(b),A=a.master.getRect(),D=h?A.width:A.height,M,I=_.getStore(),P=0;(M=x.next())!=null;){var k=I.get(f?g:o,M),R=I.get(s,M),E=v,B=void 0;f&&(B=+k-I.get(o,M));var O=void 0,V=void 0,F=void 0,H=void 0;if(h){var Y=a.dataToPoint([k,R]);if(f){var Z=a.dataToPoint([B,R]);E=Z[0]}O=E,V=Y[1]+y,F=Y[0]-E,H=m,Math.abs(F)<p&&(F=(F<0?-1:1)*p)}else{var Y=a.dataToPoint([R,k]);if(f){var Z=a.dataToPoint([R,B]);E=Z[1]}O=Y[0]+y,V=E,F=m,H=Y[1]-E,Math.abs(H)<p&&(H=(H<=0?-1:1)*p)}d?(S[P]=O,S[P+1]=V,S[P+2]=h?F:H,w&&(w[P]=h?A.x:O,w[P+1]=h?V:A.y,w[P+2]=D),C[M]=M):_.setItemLayout(M,{x:O,y:V,width:F,height:H}),P+=3}d&&_.setLayout({largePoints:S,largeDataIndices:C,largeBackgroundPoints:w,valueAxisHorizontal:h})}}}}}}function UA(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function YA(r){return r.pipelineContext&&r.pipelineContext.large}function jO(r,e){var t=e.model.get("startValue");return t||(t=0),e.toGlobalCoord(e.dataToCoord(e.type==="log"?t>0?t:1:t))}var WO=function(r,e,t,a){for(;t<a;){var n=t+a>>>1;r[n][1]<e?t=n+1:a=n}return t},Bm=(function(r){z(e,r);function e(t){var a=r.call(this,t)||this;return a.type="time",a}return e.prototype.getLabel=function(t){var a=this.getSetting("useUTC");return jf(t.value,M1[TE(_o(this._minLevelUnit))]||M1.second,a,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,a,n){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return CE(t,a,n,o,i)},e.prototype.getTicks=function(){var t=this._interval,a=this._extent,n=[];if(!t)return n;n.push({value:a[0],level:0});var i=this.getSetting("useUTC"),o=KO(this._minLevelUnit,this._approxInterval,i,a);return n=n.concat(o),n.push({value:a[1],level:0}),n},e.prototype.calcNiceExtent=function(t){var a=this._extent;if(a[0]===a[1]&&(a[0]-=Sr,a[1]+=Sr),a[1]===-1/0&&a[0]===1/0){var n=new Date;a[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),a[0]=a[1]-Sr}this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,a,n){t=t||10;var i=this._extent,o=i[1]-i[0];this._approxInterval=o/t,a!=null&&this._approxInterval<a&&(this._approxInterval=a),n!=null&&this._approxInterval>n&&(this._approxInterval=n);var s=Cu.length,l=Math.min(WO(Cu,this._approxInterval,0,s),s-1);this._interval=Cu[l][1],this._minLevelUnit=Cu[Math.max(l-1,0)][0]},e.prototype.parse=function(t){return ke(t)?t:+ca(t)},e.prototype.contain=function(t){return Qf(this.parse(t),this._extent)},e.prototype.normalize=function(t){return eh(this.parse(t),this._extent)},e.prototype.scale=function(t){return th(t,this._extent)},e.type="time",e})(ka),Cu=[["second",gm],["minute",mm],["hour",Ys],["quarter-day",Ys*6],["half-day",Ys*12],["day",Sr*1.2],["half-week",Sr*3.5],["week",Sr*7],["month",Sr*31],["quarter",Sr*95],["half-year",D1/2],["year",D1]];function $O(r,e,t,a){var n=ca(e),i=ca(t),o=function(d){return L1(n,d,a)===L1(i,d,a)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},f=function(){return c()&&o("minute")},h=function(){return f()&&o("second")},v=function(){return h()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return f();case"second":return h();case"millisecond":return v()}}function UO(r,e){return r/=Sr,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function YO(r){var e=30*Sr;return r/=e,r>6?6:r>3?3:r>2?2:1}function XO(r){return r/=Ys,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function Fx(r,e){return r/=e?mm:gm,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function ZO(r){return fT(r)}function qO(r,e,t){var a=new Date(r);switch(_o(e)){case"year":case"month":a[fC(t)](0);case"day":a[hC(t)](1);case"hour":a[vC(t)](0);case"minute":a[dC(t)](0);case"second":a[pC(t)](0),a[gC(t)](0)}return a.getTime()}function KO(r,e,t,a){var n=1e4,i=uC,o=0;function s(D,M,I,P,k,R,E){for(var B=new Date(M),O=M,V=B[P]();O<I&&O<=a[1];)E.push({value:O}),V+=D,B[k](V),O=B.getTime();E.push({value:O,notAdd:!0})}function l(D,M,I){var P=[],k=!M.length;if(!$O(_o(D),a[0],a[1],t)){k&&(M=[{value:qO(new Date(a[0]),D,t)},{value:a[1]}]);for(var R=0;R<M.length-1;R++){var E=M[R].value,B=M[R+1].value;if(E!==B){var O=void 0,V=void 0,F=void 0,H=!1;switch(D){case"year":O=Math.max(1,Math.round(e/Sr/365)),V=ym(t),F=AE(t);break;case"half-year":case"quarter":case"month":O=YO(e),V=bo(t),F=fC(t);break;case"week":case"half-week":case"day":O=UO(e),V=Wf(t),F=hC(t),H=!0;break;case"half-day":case"quarter-day":case"hour":O=XO(e),V=cl(t),F=vC(t);break;case"minute":O=Fx(e,!0),V=$f(t),F=dC(t);break;case"second":O=Fx(e,!1),V=Uf(t),F=pC(t);break;case"millisecond":O=ZO(e),V=Yf(t),F=gC(t);break}s(O,E,B,V,F,H,P),D==="year"&&I.length>1&&R===0&&I.unshift({value:I[0].value-O})}}for(var R=0;R<P.length;R++)I.push(P[R]);return P}}for(var u=[],c=[],f=0,h=0,v=0;v<i.length&&o++<n;++v){var d=_o(i[v]);if(wE(i[v])){l(i[v],u[u.length-1]||[],c);var p=i[v+1]?_o(i[v+1]):null;if(d!==p){if(c.length){h=f,c.sort(function(D,M){return D.value-M.value});for(var g=[],m=0;m<c.length;++m){var y=c[m].value;(m===0||c[m-1].value!==y)&&(g.push(c[m]),y>=a[0]&&y<=a[1]&&f++)}var x=(a[1]-a[0])/e;if(f>x*1.5&&h>x/1.5||(u.push(g),f>x||r===i[v]))break}c=[]}}}for(var _=ze(U(u,function(D){return ze(D,function(M){return M.value>=a[0]&&M.value<=a[1]&&!M.notAdd})}),function(D){return D.length>0}),b=[],S=_.length-1,v=0;v<_.length;++v)for(var w=_[v],C=0;C<w.length;++C)b.push({value:w[C].value,level:S-v});b.sort(function(D,M){return D.value-M.value});for(var A=[],v=0;v<b.length;++v)(v===0||b[v].value!==b[v-1].value)&&A.push(b[v]);return A}da.registerClass(Bm);var Gx=da.prototype,Ks=ka.prototype,JO=tt,QO=Math.floor,eB=Math.ceil,Au=Math.pow,Pr=Math.log,zm=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new ka,t._interval=0,t}return e.prototype.getTicks=function(t){var a=this._originalScale,n=this._extent,i=a.getExtent(),o=Ks.getTicks.call(this,t);return U(o,function(s){var l=s.value,u=tt(Au(this.base,l));return u=l===n[0]&&this._fixMin?Du(u,i[0]):u,u=l===n[1]&&this._fixMax?Du(u,i[1]):u,{value:u}},this)},e.prototype.setExtent=function(t,a){var n=Pr(this.base);t=Pr(Math.max(0,t))/n,a=Pr(Math.max(0,a))/n,Ks.setExtent.call(this,t,a)},e.prototype.getExtent=function(){var t=this.base,a=Gx.getExtent.call(this);a[0]=Au(t,a[0]),a[1]=Au(t,a[1]);var n=this._originalScale,i=n.getExtent();return this._fixMin&&(a[0]=Du(a[0],i[0])),this._fixMax&&(a[1]=Du(a[1],i[1])),a},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var a=this.base;t[0]=Pr(t[0])/Pr(a),t[1]=Pr(t[1])/Pr(a),Gx.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,a){this.unionExtent(t.getApproximateExtent(a))},e.prototype.calcNiceTicks=function(t){t=t||10;var a=this._extent,n=a[1]-a[0];if(!(n===1/0||n<=0)){var i=a3(n),o=t/n*i;for(o<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var s=[tt(eB(a[0]/i)*i),tt(QO(a[1]/i)*i)];this._interval=i,this._niceExtent=s}},e.prototype.calcNiceExtent=function(t){Ks.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=Pr(t)/Pr(this.base),Qf(t,this._extent)},e.prototype.normalize=function(t){return t=Pr(t)/Pr(this.base),eh(t,this._extent)},e.prototype.scale=function(t){return t=th(t,this._extent),Au(this.base,t)},e.type="log",e})(da),XA=zm.prototype;XA.getMinorTicks=Ks.getMinorTicks;XA.getLabel=Ks.getLabel;function Du(r,e){return JO(r,ta(e))}da.registerClass(zm);var tB=(function(){function r(e,t,a){this._prepareParams(e,t,a)}return r.prototype._prepareParams=function(e,t,a){a[1]<a[0]&&(a=[NaN,NaN]),this._dataMin=a[0],this._dataMax=a[1];var n=this._isOrdinal=e.type==="ordinal";this._needCrossZero=e.type==="interval"&&t.getNeedCrossZero&&t.getNeedCrossZero();var i=t.get("min",!0);i==null&&(i=t.get("startValue",!0));var o=this._modelMinRaw=i;ne(o)?this._modelMinNum=Mu(e,o({min:a[0],max:a[1]})):o!=="dataMin"&&(this._modelMinNum=Mu(e,o));var s=this._modelMaxRaw=t.get("max",!0);if(ne(s)?this._modelMaxNum=Mu(e,s({min:a[0],max:a[1]})):s!=="dataMax"&&(this._modelMaxNum=Mu(e,s)),n)this._axisDataLen=t.getCategories().length;else{var l=t.get("boundaryGap"),u=W(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Fr(u[0],1),Fr(u[1],1)]}},r.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,a=this._dataMax,n=this._axisDataLen,i=this._boundaryGapInner,o=e?null:a-t||Math.abs(t),s=this._modelMinRaw==="dataMin"?t:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?a:this._modelMaxNum,u=s!=null,c=l!=null;s==null&&(s=e?n?0:NaN:t-i[0]*o),l==null&&(l=e?n?n-1:NaN:a+i[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var f=el(s)||el(l)||e&&!n;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var h=this._determinedMin,v=this._determinedMax;return h!=null&&(s=h,u=!0),v!=null&&(l=v,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},r.prototype.modifyDataMinMax=function(e,t){this[aB[e]]=t},r.prototype.setDeterminedMinMax=function(e,t){var a=rB[e];this[a]=t},r.prototype.freeze=function(){this.frozen=!0},r})(),rB={min:"_determinedMin",max:"_determinedMax"},aB={min:"_dataMin",max:"_dataMax"};function ZA(r,e,t){var a=r.rawExtentInfo;return a||(a=new tB(r,e,t),r.rawExtentInfo=a,a)}function Mu(r,e){return e==null?null:el(e)?NaN:r.parse(e)}function qA(r,e){var t=r.type,a=ZA(r,e,r.getExtent()).calculate();r.setBlank(a.isBlank);var n=a.min,i=a.max,o=e.ecModel;if(o&&t==="time"){var s=GA("bar",o),l=!1;if(L(s,function(f){l=l||f.getBaseAxis()===e.axis}),l){var u=HA(s),c=nB(n,i,e,u);n=c.min,i=c.max}}return{extent:[n,i],fixMin:a.minFixed,fixMax:a.maxFixed}}function nB(r,e,t,a){var n=t.axis.getExtent(),i=Math.abs(n[1]-n[0]),o=HO(a,t.axis);if(o===void 0)return{min:r,max:e};var s=1/0;L(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;L(o,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-r,f=1-(s+l)/i,h=c/f-c;return e+=h*(l/u),r-=h*(s/u),{min:r,max:e}}function Mo(r,e){var t=e,a=qA(r,t),n=a.extent,i=t.get("splitNumber");r instanceof zm&&(r.base=t.get("logBase"));var o=r.type,s=t.get("interval"),l=o==="interval"||o==="time";r.setExtent(n[0],n[1]),r.calcNiceExtent({splitNumber:i,fixMin:a.fixMin,fixMax:a.fixMax,minInterval:l?t.get("minInterval"):null,maxInterval:l?t.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function ah(r,e){if(e=e||r.get("type"),e)switch(e){case"category":return new rh({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new Bm({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(da.getClass(e)||ka)}}function iB(r){var e=r.scale.getExtent(),t=e[0],a=e[1];return!(t>0&&a>0||t<0&&a<0)}function Xo(r){var e=r.getLabelModel().get("formatter"),t=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?(function(a){return function(n,i){return r.scale.getFormattedLabel(n,i,a)}})(e):q(e)?(function(a){return function(n){var i=r.scale.getLabel(n),o=a.replace("{value}",i??"");return o}})(e):ne(e)?(function(a){return function(n,i){return t!=null&&(i=n.value-t),a(Vm(r,n),i,n.level!=null?{level:n.level}:null)}})(e):function(a){return r.scale.getLabel(a)}}function Vm(r,e){return r.type==="category"?r.scale.getLabel(e):e.value}function oB(r){var e=r.model,t=r.scale;if(!(!e.get(["axisLabel","show"])||t.isBlank())){var a,n,i=t.getExtent();t instanceof rh?n=t.count():(a=t.getTicks(),n=a.length);var o=r.getLabelModel(),s=Xo(r),l,u=1;n>40&&(u=Math.ceil(n/40));for(var c=0;c<n;c+=u){var f=a?a[c]:{value:i[0]+c},h=s(f,c),v=o.getTextRect(h),d=sB(v,o.get("rotate")||0);l?l.union(d):l=d}return l}}function sB(r,e){var t=e*Math.PI/180,a=r.width,n=r.height,i=a*Math.abs(Math.cos(t))+Math.abs(n*Math.sin(t)),o=a*Math.abs(Math.sin(t))+Math.abs(n*Math.cos(t)),s=new ye(r.x,r.y,i,o);return s}function Fm(r){var e=r.get("interval");return e??"auto"}function KA(r){return r.type==="category"&&Fm(r.getLabelModel())===0}function Kc(r,e){var t={};return L(r.mapDimensionsAll(e),function(a){t[BA(r,a)]=!0}),Me(t)}function lB(r,e,t){e&&L(Kc(e,t),function(a){var n=e.getApproximateExtent(a);n[0]<r[0]&&(r[0]=n[0]),n[1]>r[1]&&(r[1]=n[1])})}var Gl=(function(){function r(){}return r.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},r.prototype.getCoordSysModel=function(){},r})(),uB=1e-8;function Hx(r,e){return Math.abs(r-e)<uB}function Jn(r,e,t){var a=0,n=r[0];if(!n)return!1;for(var i=1;i<r.length;i++){var o=r[i];a+=xa(n[0],n[1],o[0],o[1],e,t),n=o}var s=r[0];return(!Hx(n[0],s[0])||!Hx(n[1],s[1]))&&(a+=xa(n[0],n[1],s[0],s[1],e,t)),a!==0}var cB=[];function Tv(r,e){for(var t=0;t<r.length;t++)Lt(r[t],r[t],e)}function jx(r,e,t,a){for(var n=0;n<r.length;n++){var i=r[n];a&&(i=a.project(i)),i&&isFinite(i[0])&&isFinite(i[1])&&(Ja(e,e,i),Qa(t,t,i))}}function fB(r){for(var e=0,t=0,a=0,n=r.length,i=r[n-1][0],o=r[n-1][1],s=0;s<n;s++){var l=r[s][0],u=r[s][1],c=i*u-l*o;e+=c,t+=(i+l)*c,a+=(o+u)*c,i=l,o=u}return e?[t/e/3,a/e/3,e]:[r[0][0]||0,r[0][1]||0]}var JA=(function(){function r(e){this.name=e}return r.prototype.setCenter=function(e){this._center=e},r.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},r})(),Wx=(function(){function r(e,t){this.type="polygon",this.exterior=e,this.interiors=t}return r})(),$x=(function(){function r(e){this.type="linestring",this.points=e}return r})(),QA=(function(r){z(e,r);function e(t,a,n){var i=r.call(this,t)||this;return i.type="geoJSON",i.geometries=a,i._center=n&&[n[0],n[1]],i}return e.prototype.calcCenter=function(){for(var t=this.geometries,a,n=0,i=0;i<t.length;i++){var o=t[i],s=o.exterior,l=s&&s.length;l>n&&(a=o,n=l)}if(a)return fB(a.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var a=this._rect;if(a&&!t)return a;var n=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return L(o,function(s){s.type==="polygon"?jx(s.exterior,n,i,t):L(s.points,function(l){jx(l,n,i,t)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),a=new ye(n[0],n[1],i[0]-n[0],i[1]-n[1]),t||(this._rect=a),a},e.prototype.contain=function(t){var a=this.getBoundingRect(),n=this.geometries;if(!a.contain(t[0],t[1]))return!1;e:for(var i=0,o=n.length;i<o;i++){var s=n[i];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(Jn(l,t[0],t[1])){for(var c=0;c<(u?u.length:0);c++)if(Jn(u[c],t[0],t[1]))continue e;return!0}}}return!1},e.prototype.transformTo=function(t,a,n,i){var o=this.getBoundingRect(),s=o.width/o.height;n?i||(i=n/s):n=s*i;for(var l=new ye(t,a,n,i),u=o.calculateTransform(l),c=this.geometries,f=0;f<c.length;f++){var h=c[f];h.type==="polygon"?(Tv(h.exterior,u),L(h.interiors,function(v){Tv(v,u)})):L(h.points,function(v){Tv(v,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},e.prototype.cloneShallow=function(t){t==null&&(t=this.name);var a=new e(t,this.geometries,this._center);return a._rect=this._rect,a.transformTo=null,a},e})(JA),hB=(function(r){z(e,r);function e(t,a){var n=r.call(this,t)||this;return n.type="geoSVG",n._elOnlyForCalculate=a,n}return e.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,a=t.getBoundingRect(),n=[a.x+a.width/2,a.y+a.height/2],i=Mf(cB),o=t;o&&!o.isGeoSVGGraphicRoot;)wa(i,o.getLocalTransform(),i),o=o.parent;return Oo(i,i),Lt(n,n,i),n},e})(JA);function vB(r){if(!r.UTF8Encoding)return r;var e=r,t=e.UTF8Scale;t==null&&(t=1024);var a=e.features;return L(a,function(n){var i=n.geometry,o=i.encodeOffsets,s=i.coordinates;if(o)switch(i.type){case"LineString":i.coordinates=eD(s,o,t);break;case"Polygon":Cv(s,o,t);break;case"MultiLineString":Cv(s,o,t);break;case"MultiPolygon":L(s,function(l,u){return Cv(l,o[u],t)})}}),e.UTF8Encoding=!1,e}function Cv(r,e,t){for(var a=0;a<r.length;a++)r[a]=eD(r[a],e[a],t)}function eD(r,e,t){for(var a=[],n=e[0],i=e[1],o=0;o<r.length;o+=2){var s=r.charCodeAt(o)-64,l=r.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=n,l+=i,n=s,i=l,a.push([s/t,l/t])}return a}function dB(r,e){return r=vB(r),U(ze(r.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var a=t.properties,n=t.geometry,i=[];switch(n.type){case"Polygon":var o=n.coordinates;i.push(new Wx(o[0],o.slice(1)));break;case"MultiPolygon":L(n.coordinates,function(l){l[0]&&i.push(new Wx(l[0],l.slice(1)))});break;case"LineString":i.push(new $x([n.coordinates]));break;case"MultiLineString":i.push(new $x(n.coordinates))}var s=new QA(a[e||"name"],i,a.cp);return s.properties=a,s})}var gl=Ie();function tD(r,e){var t=U(e,function(a){return r.scale.parse(a)});return r.type==="time"&&t.length>0&&(t.sort(),t.unshift(t[0]),t.push(t[t.length-1])),t}function pB(r){var e=r.getLabelModel().get("customValues");if(e){var t=Xo(r),a=r.scale.getExtent(),n=tD(r,e),i=ze(n,function(o){return o>=a[0]&&o<=a[1]});return{labels:U(i,function(o){var s={value:o};return{formattedLabel:t(s),rawLabel:r.scale.getLabel(s),tickValue:o}})}}return r.type==="category"?mB(r):xB(r)}function gB(r,e){var t=r.getTickModel().get("customValues");if(t){var a=r.scale.getExtent(),n=tD(r,t);return{ticks:ze(n,function(i){return i>=a[0]&&i<=a[1]})}}return r.type==="category"?yB(r,e):{ticks:U(r.scale.getTicks(),function(i){return i.value})}}function mB(r){var e=r.getLabelModel(),t=rD(r,e);return!e.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:t.labelCategoryInterval}:t}function rD(r,e){var t=aD(r,"labels"),a=Fm(e),n=nD(t,a);if(n)return n;var i,o;return ne(a)?i=sD(r,a):(o=a==="auto"?_B(r):a,i=oD(r,o)),iD(t,a,{labels:i,labelCategoryInterval:o})}function yB(r,e){var t=aD(r,"ticks"),a=Fm(e),n=nD(t,a);if(n)return n;var i,o;if((!e.get("show")||r.scale.isBlank())&&(i=[]),ne(a))i=sD(r,a,!0);else if(a==="auto"){var s=rD(r,r.getLabelModel());o=s.labelCategoryInterval,i=U(s.labels,function(l){return l.tickValue})}else o=a,i=oD(r,o,!0);return iD(t,a,{ticks:i,tickCategoryInterval:o})}function xB(r){var e=r.scale.getTicks(),t=Xo(r);return{labels:U(e,function(a,n){return{level:a.level,formattedLabel:t(a,n),rawLabel:r.scale.getLabel(a),tickValue:a.value}})}}function aD(r,e){return gl(r)[e]||(gl(r)[e]=[])}function nD(r,e){for(var t=0;t<r.length;t++)if(r[t].key===e)return r[t].value}function iD(r,e,t){return r.push({key:e,value:t}),t}function _B(r){var e=gl(r).autoInterval;return e??(gl(r).autoInterval=r.calculateCategoryInterval())}function bB(r){var e=SB(r),t=Xo(r),a=(e.axisRotate-e.labelRotate)/180*Math.PI,n=r.scale,i=n.getExtent(),o=n.count();if(i[1]-i[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),c=Math.abs(u*Math.cos(a)),f=Math.abs(u*Math.sin(a)),h=0,v=0;l<=i[1];l+=s){var d=0,p=0,g=Il(t({value:l}),e.font,"center","top");d=g.width*1.3,p=g.height*1.3,h=Math.max(h,d,7),v=Math.max(v,p,7)}var m=h/c,y=v/f;isNaN(m)&&(m=1/0),isNaN(y)&&(y=1/0);var x=Math.max(0,Math.floor(Math.min(m,y))),_=gl(r.model),b=r.getExtent(),S=_.lastAutoInterval,w=_.lastTickCount;return S!=null&&w!=null&&Math.abs(S-x)<=1&&Math.abs(w-o)<=1&&S>x&&_.axisExtent0===b[0]&&_.axisExtent1===b[1]?x=S:(_.lastTickCount=o,_.lastAutoInterval=x,_.axisExtent0=b[0],_.axisExtent1=b[1]),x}function SB(r){var e=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function oD(r,e,t){var a=Xo(r),n=r.scale,i=n.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=i[0],c=n.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=KA(r),h=o.get("showMinLabel")||f,v=o.get("showMaxLabel")||f;h&&u!==i[0]&&p(i[0]);for(var d=u;d<=i[1];d+=l)p(d);v&&d-l!==i[1]&&p(i[1]);function p(g){var m={value:g};s.push(t?g:{formattedLabel:a(m),rawLabel:n.getLabel(m),tickValue:g})}return s}function sD(r,e,t){var a=r.scale,n=Xo(r),i=[];return L(a.getTicks(),function(o){var s=a.getLabel(o),l=o.value;e(o.value,s)&&i.push(t?l:{formattedLabel:n(o),rawLabel:s,tickValue:l})}),i}var Ux=[0,1],jr=(function(){function r(e,t,a){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=a||[0,0]}return r.prototype.contain=function(e){var t=this._extent,a=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]);return e>=a&&e<=n},r.prototype.containData=function(e){return this.scale.contain(e)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(e){return uT(e||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(e,t){var a=this._extent;a[0]=e,a[1]=t},r.prototype.dataToCoord=function(e,t){var a=this._extent,n=this.scale;return e=n.normalize(e),this.onBand&&n.type==="ordinal"&&(a=a.slice(),Yx(a,n.count())),Fe(e,Ux,a,t)},r.prototype.coordToData=function(e,t){var a=this._extent,n=this.scale;this.onBand&&n.type==="ordinal"&&(a=a.slice(),Yx(a,n.count()));var i=Fe(e,a,Ux,t);return this.scale.scale(i)},r.prototype.pointToData=function(e,t){},r.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),a=gB(this,t),n=a.ticks,i=U(n,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=t.get("alignWithLabel");return wB(this,i,o,e.clamp),i},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var a=this.scale.getMinorTicks(t),n=U(a,function(i){return U(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},r.prototype.getViewLabels=function(){return pB(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),a=t[1]-t[0]+(this.onBand?1:0);a===0&&(a=1);var n=Math.abs(e[1]-e[0]);return Math.abs(n)/a},r.prototype.calculateCategoryInterval=function(){return bB(this)},r})();function Yx(r,e){var t=r[1]-r[0],a=e,n=t/a/2;r[0]+=n,r[1]-=n}function wB(r,e,t,a){var n=e.length;if(!r.onBand||t||!n)return;var i=r.getExtent(),o,s;if(n===1)e[0].coord=i[0],o=e[1]={coord:i[1],tickValue:e[0].tickValue};else{var l=e[n-1].tickValue-e[0].tickValue,u=(e[n-1].coord-e[0].coord)/l;L(e,function(v){v.coord-=u/2});var c=r.scale.getExtent();s=1+c[1]-e[n-1].tickValue,o={coord:e[n-1].coord+u*s,tickValue:c[1]+1},e.push(o)}var f=i[0]>i[1];h(e[0].coord,i[0])&&(a?e[0].coord=i[0]:e.shift()),a&&h(i[0],e[0].coord)&&e.unshift({coord:i[0]}),h(i[1],o.coord)&&(a?o.coord=i[1]:e.pop()),a&&h(o.coord,i[1])&&e.push({coord:i[1]});function h(v,d){return v=tt(v),d=tt(d),f?v>d:v<d}}var ps=Math.PI*2,Hn=fa.CMD,TB=["top","right","bottom","left"];function CB(r,e,t,a,n){var i=t.width,o=t.height;switch(r){case"top":a.set(t.x+i/2,t.y-e),n.set(0,-1);break;case"bottom":a.set(t.x+i/2,t.y+o+e),n.set(0,1);break;case"left":a.set(t.x-e,t.y+o/2),n.set(-1,0);break;case"right":a.set(t.x+i+e,t.y+o/2),n.set(1,0);break}}function AB(r,e,t,a,n,i,o,s,l){o-=r,s-=e;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var c=o*t+r,f=s*t+e;if(Math.abs(a-n)%ps<1e-4)return l[0]=c,l[1]=f,u-t;if(i){var h=a;a=ir(n),n=ir(h)}else a=ir(a),n=ir(n);a>n&&(n+=ps);var v=Math.atan2(s,o);if(v<0&&(v+=ps),v>=a&&v<=n||v+ps>=a&&v+ps<=n)return l[0]=c,l[1]=f,u-t;var d=t*Math.cos(a)+r,p=t*Math.sin(a)+e,g=t*Math.cos(n)+r,m=t*Math.sin(n)+e,y=(d-o)*(d-o)+(p-s)*(p-s),x=(g-o)*(g-o)+(m-s)*(m-s);return y<x?(l[0]=d,l[1]=p,Math.sqrt(y)):(l[0]=g,l[1]=m,Math.sqrt(x))}function Jc(r,e,t,a,n,i,o,s){var l=n-r,u=i-e,c=t-r,f=a-e,h=Math.sqrt(c*c+f*f);c/=h,f/=h;var v=l*c+u*f,d=v/h;s&&(d=Math.min(Math.max(d,0),1)),d*=h;var p=o[0]=r+d*c,g=o[1]=e+d*f;return Math.sqrt((p-n)*(p-n)+(g-i)*(g-i))}function lD(r,e,t,a,n,i,o){t<0&&(r=r+t,t=-t),a<0&&(e=e+a,a=-a);var s=r+t,l=e+a,u=o[0]=Math.min(Math.max(n,r),s),c=o[1]=Math.min(Math.max(i,e),l);return Math.sqrt((u-n)*(u-n)+(c-i)*(c-i))}var Nr=[];function DB(r,e,t){var a=lD(e.x,e.y,e.width,e.height,r.x,r.y,Nr);return t.set(Nr[0],Nr[1]),a}function MB(r,e,t){for(var a=0,n=0,i=0,o=0,s,l,u=1/0,c=e.data,f=r.x,h=r.y,v=0;v<c.length;){var d=c[v++];v===1&&(a=c[v],n=c[v+1],i=a,o=n);var p=u;switch(d){case Hn.M:i=c[v++],o=c[v++],a=i,n=o;break;case Hn.L:p=Jc(a,n,c[v],c[v+1],f,h,Nr,!0),a=c[v++],n=c[v++];break;case Hn.C:p=$2(a,n,c[v++],c[v++],c[v++],c[v++],c[v],c[v+1],f,h,Nr),a=c[v++],n=c[v++];break;case Hn.Q:p=Y2(a,n,c[v++],c[v++],c[v],c[v+1],f,h,Nr),a=c[v++],n=c[v++];break;case Hn.A:var g=c[v++],m=c[v++],y=c[v++],x=c[v++],_=c[v++],b=c[v++];v+=1;var S=!!(1-c[v++]);s=Math.cos(_)*y+g,l=Math.sin(_)*x+m,v<=1&&(i=s,o=l);var w=(f-g)*x/y+g;p=AB(g,m,x,_,_+b,S,w,h,Nr),a=Math.cos(_+b)*y+g,n=Math.sin(_+b)*x+m;break;case Hn.R:i=a=c[v++],o=n=c[v++];var C=c[v++],A=c[v++];p=lD(i,o,C,A,f,h,Nr);break;case Hn.Z:p=Jc(a,n,i,o,f,h,Nr,!0),a=i,n=o;break}p<u&&(u=p,t.set(Nr[0],Nr[1]))}return u}var Br=new ge,Ye=new ge,rt=new ge,na=new ge,ea=new ge;function Xx(r,e){if(r){var t=r.getTextGuideLine(),a=r.getTextContent();if(a&&t){var n=r.textGuideLineConfig||{},i=[[0,0],[0,0],[0,0]],o=n.candidates||TB,s=a.getBoundingRect().clone();s.applyTransform(a.getComputedTransform());var l=1/0,u=n.anchor,c=r.getComputedTransform(),f=c&&Oo([],c),h=e.get("length2")||0;u&&rt.copy(u);for(var v=0;v<o.length;v++){var d=o[v];CB(d,0,s,Br,na),ge.scaleAndAdd(Ye,Br,na,h),Ye.transform(f);var p=r.getBoundingRect(),g=u?u.distance(Ye):r instanceof Ce?MB(Ye,r.path,rt):DB(Ye,p,rt);g<l&&(l=g,Ye.transform(c),rt.transform(c),rt.toArray(i[0]),Ye.toArray(i[1]),Br.toArray(i[2]))}uD(i,e.get("minTurnAngle")),t.setShape({points:i})}}}var Qc=[],Gt=new ge;function uD(r,e){if(e<=180&&e>0){e=e/180*Math.PI,Br.fromArray(r[0]),Ye.fromArray(r[1]),rt.fromArray(r[2]),ge.sub(na,Br,Ye),ge.sub(ea,rt,Ye);var t=na.len(),a=ea.len();if(!(t<.001||a<.001)){na.scale(1/t),ea.scale(1/a);var n=na.dot(ea),i=Math.cos(e);if(i<n){var o=Jc(Ye.x,Ye.y,rt.x,rt.y,Br.x,Br.y,Qc,!1);Gt.fromArray(Qc),Gt.scaleAndAdd(ea,o/Math.tan(Math.PI-e));var s=rt.x!==Ye.x?(Gt.x-Ye.x)/(rt.x-Ye.x):(Gt.y-Ye.y)/(rt.y-Ye.y);if(isNaN(s))return;s<0?ge.copy(Gt,Ye):s>1&&ge.copy(Gt,rt),Gt.toArray(r[1])}}}}function LB(r,e,t){if(t<=180&&t>0){t=t/180*Math.PI,Br.fromArray(r[0]),Ye.fromArray(r[1]),rt.fromArray(r[2]),ge.sub(na,Ye,Br),ge.sub(ea,rt,Ye);var a=na.len(),n=ea.len();if(!(a<.001||n<.001)){na.scale(1/a),ea.scale(1/n);var i=na.dot(e),o=Math.cos(t);if(i<o){var s=Jc(Ye.x,Ye.y,rt.x,rt.y,Br.x,Br.y,Qc,!1);Gt.fromArray(Qc);var l=Math.PI/2,u=Math.acos(ea.dot(e)),c=l+u-t;if(c>=l)ge.copy(Gt,rt);else{Gt.scaleAndAdd(ea,s/Math.tan(Math.PI/2-c));var f=rt.x!==Ye.x?(Gt.x-Ye.x)/(rt.x-Ye.x):(Gt.y-Ye.y)/(rt.y-Ye.y);if(isNaN(f))return;f<0?ge.copy(Gt,Ye):f>1&&ge.copy(Gt,rt)}Gt.toArray(r[1])}}}}function Av(r,e,t,a){var n=t==="normal",i=n?r:r.ensureState(t);i.ignore=e;var o=a.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=a.getModel("lineStyle").getLineStyle();n?r.useStyle(s):i.style=s}function IB(r,e){var t=e.smooth,a=e.points;if(a)if(r.moveTo(a[0][0],a[0][1]),t>0&&a.length>=3){var n=Ka(a[0],a[1]),i=Ka(a[1],a[2]);if(!n||!i){r.lineTo(a[1][0],a[1][1]),r.lineTo(a[2][0],a[2][1]);return}var o=Math.min(n,i)*t,s=nc([],a[1],a[0],o/n),l=nc([],a[1],a[2],o/i),u=nc([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],a[2][0],a[2][1])}else for(var c=1;c<a.length;c++)r.lineTo(a[c][0],a[c][1])}function Gm(r,e,t){var a=r.getTextGuideLine(),n=r.getTextContent();if(!n){a&&r.removeTextGuideLine();return}for(var i=e.normal,o=i.get("show"),s=n.ignore,l=0;l<sl.length;l++){var u=sl[l],c=e[u],f=u==="normal";if(c){var h=c.get("show"),v=f?s:fe(n.states[u]&&n.states[u].ignore,s);if(v||!fe(h,o)){var d=f?a:a&&a.states[u];d&&(d.ignore=!0),a&&Av(a,!0,u,c);continue}a||(a=new Zt,r.setTextGuideLine(a),!f&&(s||!o)&&Av(a,!0,"normal",e.normal),r.stateProxy&&(a.stateProxy=r.stateProxy)),Av(a,!1,u,c)}}if(a){ie(a.style,t),a.style.fill=null;var p=i.get("showAbove"),g=r.textGuideLineConfig=r.textGuideLineConfig||{};g.showAbove=p||!1,a.buildPath=IB}}function Hm(r,e){e=e||"labelLine";for(var t={normal:r.getModel(e)},a=0;a<Ut.length;a++){var n=Ut[a];t[n]=r.getModel([n,e])}return t}function cD(r){for(var e=[],t=0;t<r.length;t++){var a=r[t];if(!a.defaultAttr.ignore){var n=a.label,i=n.getComputedTransform(),o=n.getBoundingRect(),s=!i||i[1]<1e-5&&i[2]<1e-5,l=n.style.margin||0,u=o.clone();u.applyTransform(i),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new Bc(o,i):null;e.push({label:n,labelLine:a.labelLine,rect:u,localRect:o,obb:c,priority:a.priority,defaultAttr:a.defaultAttr,layoutOption:a.computedLayoutOption,axisAligned:s,transform:i})}}return e}function fD(r,e,t,a,n,i){var o=r.length;if(o<2)return;r.sort(function(S,w){return S.rect[e]-w.rect[e]});for(var s=0,l,u=!1,c=0;c<o;c++){var f=r[c],h=f.rect;l=h[e]-s,l<0&&(h[e]-=l,f.label[e]-=l,u=!0),s=h[e]+h[t]}var v=r[0],d=r[o-1],p,g;m(),p<0&&_(-p,.8),g<0&&_(g,.8),m(),y(p,g,1),y(g,p,-1),m(),p<0&&b(-p),g<0&&b(g);function m(){p=v.rect[e]-a,g=n-d.rect[e]-d.rect[t]}function y(S,w,C){if(S<0){var A=Math.min(w,-S);if(A>0){x(A*C,0,o);var D=A+S;D<0&&_(-D*C,1)}else _(-S*C,1)}}function x(S,w,C){S!==0&&(u=!0);for(var A=w;A<C;A++){var D=r[A],M=D.rect;M[e]+=S,D.label[e]+=S}}function _(S,w){for(var C=[],A=0,D=1;D<o;D++){var M=r[D-1].rect,I=Math.max(r[D].rect[e]-M[e]-M[t],0);C.push(I),A+=I}if(A){var P=Math.min(Math.abs(S)/A,w);if(S>0)for(var D=0;D<o-1;D++){var k=C[D]*P;x(k,0,D+1)}else for(var D=o-1;D>0;D--){var k=C[D-1]*P;x(-k,D,o)}}}function b(S){var w=S<0?-1:1;S=Math.abs(S);for(var C=Math.ceil(S/(o-1)),A=0;A<o-1;A++)if(w>0?x(C,0,A+1):x(-C,o-A-1,o),S-=C,S<=0)return}return u}function PB(r,e,t,a){return fD(r,"x","width",e,t)}function hD(r,e,t,a){return fD(r,"y","height",e,t)}function vD(r){var e=[];r.sort(function(p,g){return g.priority-p.priority});var t=new ye(0,0,0,0);function a(p){if(!p.ignore){var g=p.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}p.ignore=!0}for(var n=0;n<r.length;n++){var i=r[n],o=i.axisAligned,s=i.localRect,l=i.transform,u=i.label,c=i.labelLine;t.copy(i.rect),t.width-=.1,t.height-=.1,t.x+=.05,t.y+=.05;for(var f=i.obb,h=!1,v=0;v<e.length;v++){var d=e[v];if(t.intersect(d.rect)){if(o&&d.axisAligned){h=!0;break}if(d.obb||(d.obb=new Bc(d.localRect,d.transform)),f||(f=new Bc(s,l)),f.intersect(d.obb)){h=!0;break}}}h?(a(u),c&&a(c)):(u.attr("ignore",i.defaultAttr.ignore),c&&c.attr("ignore",i.defaultAttr.labelGuideIgnore),e.push(i))}}function kB(r){if(r){for(var e=[],t=0;t<r.length;t++)e.push(r[t].slice());return e}}function RB(r,e){var t=r.label,a=e&&e.getTextGuideLine();return{dataIndex:r.dataIndex,dataType:r.dataType,seriesIndex:r.seriesModel.seriesIndex,text:r.label.style.text,rect:r.hostRect,labelRect:r.rect,align:t.style.align,verticalAlign:t.style.verticalAlign,labelLinePoints:kB(a&&a.shape.points)}}var Zx=["align","verticalAlign","width","height","fontSize"],zt=new _a,Dv=Ie(),EB=Ie();function Lu(r,e,t){for(var a=0;a<t.length;a++){var n=t[a];e[n]!=null&&(r[n]=e[n])}}var Iu=["x","y","rotation"],NB=(function(){function r(){this._labelList=[],this._chartViewList=[]}return r.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},r.prototype._addLabel=function(e,t,a,n,i){var o=n.style,s=n.__hostTarget,l=s.textConfig||{},u=n.getComputedTransform(),c=n.getBoundingRect().plain();ye.applyTransform(c,c,u),u?zt.setLocalTransform(u):(zt.x=zt.y=zt.rotation=zt.originX=zt.originY=0,zt.scaleX=zt.scaleY=1),zt.rotation=ir(zt.rotation);var f=n.__hostTarget,h;if(f){h=f.getBoundingRect().plain();var v=f.getComputedTransform();ye.applyTransform(h,h,v)}var d=h&&f.getTextGuideLine();this._labelList.push({label:n,labelLine:d,seriesModel:a,dataIndex:e,dataType:t,layoutOption:i,computedLayoutOption:null,rect:c,hostRect:h,priority:h?h.width*h.height:0,defaultAttr:{ignore:n.ignore,labelGuideIgnore:d&&d.ignore,x:zt.x,y:zt.y,scaleX:zt.scaleX,scaleY:zt.scaleY,rotation:zt.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:n.cursor,attachedPos:l.position,attachedRot:l.rotation}})},r.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var a=e.__model,n=a.get("labelLayout");(ne(n)||Me(n).length)&&e.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=ce(i);o&&!o.disableLabelLayout&&t._addLabel(s.dataIndex,s.dataType,a,o,n)})},r.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),a=e.getHeight();function n(x,_){return function(){Xx(x,_)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],s=o.label,l=s.__hostTarget,u=o.defaultAttr,c=void 0;ne(o.layoutOption)?c=o.layoutOption(RB(o,l)):c=o.layoutOption,c=c||{},o.computedLayoutOption=c;var f=Math.PI/180;l&&l.setTextConfig({local:!1,position:c.x!=null||c.y!=null?null:u.attachedPos,rotation:c.rotate!=null?c.rotate*f:u.attachedRot,offset:[c.dx||0,c.dy||0]});var h=!1;if(c.x!=null?(s.x=X(c.x,t),s.setStyle("x",0),h=!0):(s.x=u.x,s.setStyle("x",u.style.x)),c.y!=null?(s.y=X(c.y,a),s.setStyle("y",0),h=!0):(s.y=u.y,s.setStyle("y",u.style.y)),c.labelLinePoints){var v=l.getTextGuideLine();v&&(v.setShape({points:c.labelLinePoints}),h=!1)}var d=Dv(s);d.needsUpdateLabelLine=h,s.rotation=c.rotate!=null?c.rotate*f:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var p=0;p<Zx.length;p++){var g=Zx[p];s.setStyle(g,c[g]!=null?c[g]:u.style[g])}if(c.draggable){if(s.draggable=!0,s.cursor="move",l){var m=o.seriesModel;if(o.dataIndex!=null){var y=o.seriesModel.getData(o.dataType);m=y.getItemModel(o.dataIndex)}s.on("drag",n(l,m.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},r.prototype.layout=function(e){var t=e.getWidth(),a=e.getHeight(),n=cD(this._labelList),i=ze(n,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=ze(n,function(l){return l.layoutOption.moveOverlap==="shiftY"});PB(i,0,t),hD(o,0,a);var s=ze(n,function(l){return l.layoutOption.hideOverlap});vD(s)},r.prototype.processLabelsOverall=function(){var e=this;L(this._chartViewList,function(t){var a=t.__model,n=t.ignoreLabelLineUpdate,i=a.isAnimationEnabled();t.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!n,l=o.getTextContent();!s&&l&&(s=Dv(l).needsUpdateLabelLine),s&&e._updateLabelLine(o,a),i&&e._animateLabels(o,a)})})},r.prototype._updateLabelLine=function(e,t){var a=e.getTextContent(),n=ce(e),i=n.dataIndex;if(a&&i!=null){var o=t.getData(n.dataType),s=o.getItemModel(i),l={},u=o.getItemVisual(i,"style");if(u){var c=o.getVisual("drawType");l.stroke=u[c]}var f=s.getModel("labelLine");Gm(e,Hm(s),l),Xx(e,f)}},r.prototype._animateLabels=function(e,t){var a=e.getTextContent(),n=e.getTextGuideLine();if(a&&(e.forceLabelAnimation||!a.ignore&&!a.invisible&&!e.disableLabelAnimation&&!yo(e))){var i=Dv(a),o=i.oldLayout,s=ce(e),l=s.dataIndex,u={x:a.x,y:a.y,rotation:a.rotation},c=t.getData(s.dataType);if(o){a.attr(o);var h=e.prevStates;h&&(_e(h,"select")>=0&&a.attr(i.oldLayoutSelect),_e(h,"emphasis")>=0&&a.attr(i.oldLayoutEmphasis)),Ee(a,u,t,l)}else if(a.attr(u),!Fo(a).valueAnimation){var f=fe(a.style.opacity,1);a.style.opacity=0,Je(a,{style:{opacity:f}},t,l)}if(i.oldLayout=u,a.states.select){var v=i.oldLayoutSelect={};Lu(v,u,Iu),Lu(v,a.states.select,Iu)}if(a.states.emphasis){var d=i.oldLayoutEmphasis={};Lu(d,u,Iu),Lu(d,a.states.emphasis,Iu)}nC(a,l,c,t,t)}if(n&&!n.ignore&&!n.invisible){var i=EB(n),o=i.oldLayout,p={points:n.shape.points};o?(n.attr({shape:o}),Ee(n,{shape:p},t)):(n.setShape(p),n.style.strokePercent=0,Je(n,{style:{strokePercent:1}},t)),i.oldLayout=p}},r})(),Mv=Ie();function OB(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,a){var n=Mv(t).labelManager;n||(n=Mv(t).labelManager=new NB),n.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(e,t,a){var n=Mv(t).labelManager;a.updatedSeries.forEach(function(i){n.addLabelsOfSeries(t.getViewOfSeriesModel(i))}),n.updateLayoutConfig(t),n.layout(t),n.processLabelsOverall()})}var Lv=Math.sin,Iv=Math.cos,dD=Math.PI,jn=Math.PI*2,BB=180/dD,pD=(function(){function r(){}return r.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},r.prototype.moveTo=function(e,t){this._add("M",e,t)},r.prototype.lineTo=function(e,t){this._add("L",e,t)},r.prototype.bezierCurveTo=function(e,t,a,n,i,o){this._add("C",e,t,a,n,i,o)},r.prototype.quadraticCurveTo=function(e,t,a,n){this._add("Q",e,t,a,n)},r.prototype.arc=function(e,t,a,n,i,o){this.ellipse(e,t,a,a,0,n,i,o)},r.prototype.ellipse=function(e,t,a,n,i,o,s,l){var u=s-o,c=!l,f=Math.abs(u),h=rn(f-jn)||(c?u>=jn:-u>=jn),v=u>0?u%jn:u%jn+jn,d=!1;h?d=!0:rn(f)?d=!1:d=v>=dD==!!c;var p=e+a*Iv(o),g=t+n*Lv(o);this._start&&this._add("M",p,g);var m=Math.round(i*BB);if(h){var y=1/this._p,x=(c?1:-1)*(jn-y);this._add("A",a,n,m,1,+c,e+a*Iv(o+x),t+n*Lv(o+x)),y>.01&&this._add("A",a,n,m,0,+c,p,g)}else{var _=e+a*Iv(s),b=t+n*Lv(s);this._add("A",a,n,m,+d,+c,_,b)}},r.prototype.rect=function(e,t,a,n){this._add("M",e,t),this._add("l",a,0),this._add("l",0,n),this._add("l",-a,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(e,t,a,n,i,o,s,l,u){for(var c=[],f=this._p,h=1;h<arguments.length;h++){var v=arguments[h];if(isNaN(v)){this._invalid=!0;return}c.push(Math.round(v*f)/f)}this._d.push(e+c.join(" ")),this._start=e==="Z"},r.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},r.prototype.getStr=function(){return this._str},r})(),jm="none",zB=Math.round;function VB(r){var e=r.fill;return e!=null&&e!==jm}function FB(r){var e=r.stroke;return e!=null&&e!==jm}var $p=["lineCap","miterLimit","lineJoin"],GB=U($p,function(r){return"stroke-"+r.toLowerCase()});function HB(r,e,t,a){var n=e.opacity==null?1:e.opacity;if(t instanceof At){r("opacity",n);return}if(VB(e)){var i=nl(e.fill);r("fill",i.color);var o=e.fillOpacity!=null?e.fillOpacity*i.opacity*n:i.opacity*n;o<1&&r("fill-opacity",o)}else r("fill",jm);if(FB(e)){var s=nl(e.stroke);r("stroke",s.color);var l=e.strokeNoScale?t.getLineScale():1,u=l?(e.lineWidth||0)/l:0,c=e.strokeOpacity!=null?e.strokeOpacity*s.opacity*n:s.opacity*n,f=e.strokeFirst;if(u!==1&&r("stroke-width",u),f&&r("paint-order",f?"stroke":"fill"),c<1&&r("stroke-opacity",c),e.lineDash){var h=Im(t),v=h[0],d=h[1];v&&(d=zB(d||0),r("stroke-dasharray",v.join(",")),(d||a)&&r("stroke-dashoffset",d))}for(var p=0;p<$p.length;p++){var g=$p[p];if(e[g]!==Nc[g]){var m=e[g]||Nc[g];m&&r(GB[p],m)}}}}var gD="http://www.w3.org/2000/svg",mD="http://www.w3.org/1999/xlink",jB="http://www.w3.org/2000/xmlns/",WB="http://www.w3.org/XML/1998/namespace",qx="ecmeta_";function yD(r){return document.createElementNS(gD,r)}function xt(r,e,t,a,n){return{tag:r,attrs:t||{},children:a,text:n,key:e}}function $B(r,e){var t=[];if(e)for(var a in e){var n=e[a],i=a;n!==!1&&(n!==!0&&n!=null&&(i+='="'+n+'"'),t.push(i))}return"<"+r+" "+t.join(" ")+">"}function UB(r){return"</"+r+">"}function Wm(r,e){e=e||{};var t=e.newline?`
15
- `:"";function a(n){var i=n.children,o=n.tag,s=n.attrs,l=n.text;return $B(o,s)+(o!=="style"?Ht(l):l||"")+(i?""+t+U(i,function(u){return a(u)}).join(t)+t:"")+UB(o)}return a(r)}function YB(r,e,t){t=t||{};var a=t.newline?`
16
- `:"",n=" {"+a,i=a+"}",o=U(Me(r),function(l){return l+n+U(Me(r[l]),function(u){return u+":"+r[l][u]+";"}).join(a)+i}).join(a),s=U(Me(e),function(l){return"@keyframes "+l+n+U(Me(e[l]),function(u){return u+n+U(Me(e[l][u]),function(c){var f=e[l][u][c];return c==="d"&&(f='path("'+f+'")'),c+":"+f+";"}).join(a)+i}).join(a)+i}).join(a);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(a)}function Up(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Kx(r,e,t,a){return xt("svg","root",{width:r,height:e,xmlns:gD,"xmlns:xlink":mD,version:"1.1",baseProfile:"full",viewBox:a?"0 0 "+r+" "+e:!1},t)}var XB=0;function xD(){return XB++}var Jx={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},Un="transform-origin";function ZB(r,e,t){var a=G({},r.shape);G(a,e),r.buildPath(t,a);var n=new pD;return n.reset(eT(r)),t.rebuildPath(n,1),n.generateStr(),n.getStr()}function qB(r,e){var t=e.originX,a=e.originY;(t||a)&&(r[Un]=t+"px "+a+"px")}var KB={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function _D(r,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=r,t}function JB(r,e,t){var a=r.shape.paths,n={},i,o;if(L(a,function(l){var u=Up(t.zrId);u.animation=!0,nh(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,h=Me(c),v=h.length;if(v){o=h[v-1];var d=c[o];for(var p in d){var g=d[p];n[p]=n[p]||{d:""},n[p].d+=g.d||""}for(var m in f){var y=f[m].animation;y.indexOf(o)>=0&&(i=y)}}}),!!i){e.d=!1;var s=_D(n,t);return i.replace(o,s)}}function Qx(r){return q(r)?Jx[r]?"cubic-bezier("+Jx[r]+")":Zg(r)?r:"":""}function nh(r,e,t,a){var n=r.animators,i=n.length,o=[];if(r instanceof cm){var s=JB(r,e,t);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u<i;u++){var c=n[u],f=[c.getMaxTime()/1e3+"s"],h=Qx(c.getClip().easing),v=c.getDelay();h?f.push(h):f.push("linear"),v&&f.push(v/1e3+"s"),c.getLoop()&&f.push("infinite");var d=f.join(" ");l[d]=l[d]||[d,[]],l[d][1].push(c)}function p(y){var x=y[1],_=x.length,b={},S={},w={},C="animation-timing-function";function A(oe,ae,$){for(var j=oe.getTracks(),K=oe.getMaxTime(),Se=0;Se<j.length;Se++){var me=j[Se];if(me.needsAnimate()){var we=me.keyframes,he=me.propName;if($&&(he=$(he)),he)for(var Ve=0;Ve<we.length;Ve++){var ct=we[Ve],it=Math.round(ct.time/K*100)+"%",wt=Qx(ct.easing),Dt=ct.rawValue;(q(Dt)||ke(Dt))&&(ae[it]=ae[it]||{},ae[it][he]=ct.rawValue,wt&&(ae[it][C]=wt))}}}}for(var D=0;D<_;D++){var M=x[D],I=M.targetName;I?I==="shape"&&A(M,S):!a&&A(M,b)}for(var P in b){var k={};iT(k,r),G(k,b[P]);var R=tT(k),E=b[P][C];w[P]=R?{transform:R}:{},qB(w[P],k),E&&(w[P][C]=E)}var B,O=!0;for(var P in S){w[P]=w[P]||{};var V=!B,E=S[P][C];V&&(B=new fa);var F=B.len();B.reset(),w[P].d=ZB(r,S[P],B);var H=B.len();if(!V&&F!==H){O=!1;break}E&&(w[P][C]=E)}if(!O)for(var P in w)delete w[P].d;if(!a)for(var D=0;D<_;D++){var M=x[D],I=M.targetName;I==="style"&&A(M,w,function(j){return KB[j]})}for(var Y=Me(w),Z=!0,J,D=1;D<Y.length;D++){var te=Y[D-1],xe=Y[D];if(w[te][Un]!==w[xe][Un]){Z=!1;break}J=w[te][Un]}if(Z&&J){for(var P in w)w[P][Un]&&delete w[P][Un];e[Un]=J}if(ze(Y,function(oe){return Me(w[oe]).length>0}).length){var de=_D(w,t);return de+" "+y[0]+" both"}}for(var g in l){var s=p(l[g]);s&&o.push(s)}if(o.length){var m=t.zrId+"-cls-"+xD();t.cssNodes["."+m]={animation:o.join(",")},e.class=m}}function QB(r,e,t){if(!r.ignore)if(r.isSilent()){var a={"pointer-events":"none"};e_(a,e,t)}else{var n=r.states.emphasis&&r.states.emphasis.style?r.states.emphasis.style:{},i=n.fill;if(!i){var o=r.style&&r.style.fill,s=r.states.select&&r.states.select.style&&r.states.select.style.fill,l=r.currentStates.indexOf("select")>=0&&s||o;l&&(i=np(l))}var u=n.lineWidth;if(u){var c=!n.strokeNoScale&&r.transform?r.transform[0]:1;u=u/c}var a={cursor:"pointer"};i&&(a.fill=i),n.stroke&&(a.stroke=n.stroke),u&&(a["stroke-width"]=u),e_(a,e,t)}}function e_(r,e,t,a){var n=JSON.stringify(r),i=t.cssStyleCache[n];i||(i=t.zrId+"-cls-"+xD(),t.cssStyleCache[n]=i,t.cssNodes["."+i+":hover"]=r),e.class=e.class?e.class+" "+i:i}var ml=Math.round;function bD(r){return r&&q(r.src)}function SD(r){return r&&ne(r.toDataURL)}function $m(r,e,t,a){HB(function(n,i){var o=n==="fill"||n==="stroke";o&&Q2(i)?TD(e,r,n,a):o&&qg(i)?CD(t,r,n,a):r[n]=i,o&&a.ssr&&i==="none"&&(r["pointer-events"]="visible")},e,t,!1),o6(t,r,a)}function Um(r,e){var t=qk(e);t&&(t.each(function(a,n){a!=null&&(r[(qx+n).toLowerCase()]=a+"")}),e.isSilent()&&(r[qx+"silent"]="true"))}function t_(r){return rn(r[0]-1)&&rn(r[1])&&rn(r[2])&&rn(r[3]-1)}function e6(r){return rn(r[4])&&rn(r[5])}function Ym(r,e,t){if(e&&!(e6(e)&&t_(e))){var a=1e4;r.transform=t_(e)?"translate("+ml(e[4]*a)/a+" "+ml(e[5]*a)/a+")":xk(e)}}function r_(r,e,t){for(var a=r.points,n=[],i=0;i<a.length;i++)n.push(ml(a[i][0]*t)/t),n.push(ml(a[i][1]*t)/t);e.points=n.join(" ")}function a_(r){return!r.smooth}function t6(r){var e=U(r,function(t){return typeof t=="string"?[t,t]:t});return function(t,a,n){for(var i=0;i<e.length;i++){var o=e[i],s=t[o[0]];s!=null&&(a[o[1]]=ml(s*n)/n)}}}var r6={circle:[t6(["cx","cy","r"])],polyline:[r_,a_],polygon:[r_,a_]};function a6(r){for(var e=r.animators,t=0;t<e.length;t++)if(e[t].targetName==="shape")return!0;return!1}function wD(r,e){var t=r.style,a=r.shape,n=r6[r.type],i={},o=e.animation,s="path",l=r.style.strokePercent,u=e.compress&&eT(r)||4;if(n&&!e.willUpdate&&!(n[1]&&!n[1](a))&&!(o&&a6(r))&&!(l<1)){s=r.type;var c=Math.pow(10,u);n[0](a,i,c)}else{var f=!r.path||r.shapeChanged();r.path||r.createPathProxy();var h=r.path;f&&(h.beginPath(),r.buildPath(h,r.shape),r.pathUpdated());var v=h.getVersion(),d=r,p=d.__svgPathBuilder;(d.__svgPathVersion!==v||!p||l!==d.__svgPathStrokePercent)&&(p||(p=d.__svgPathBuilder=new pD),p.reset(u),h.rebuildPath(p,l),p.generateStr(),d.__svgPathVersion=v,d.__svgPathStrokePercent=l),i.d=p.getStr()}return Ym(i,r.transform),$m(i,t,r,e),Um(i,r),e.animation&&nh(r,i,e),e.emphasis&&QB(r,i,e),xt(s,r.id+"",i)}function n6(r,e){var t=r.style,a=t.image;if(a&&!q(a)&&(bD(a)?a=a.src:SD(a)&&(a=a.toDataURL())),!!a){var n=t.x||0,i=t.y||0,o=t.width,s=t.height,l={href:a,width:o,height:s};return n&&(l.x=n),i&&(l.y=i),Ym(l,r.transform),$m(l,t,r,e),Um(l,r),e.animation&&nh(r,l,e),xt("image",r.id+"",l)}}function i6(r,e){var t=r.style,a=t.text;if(a!=null&&(a+=""),!(!a||isNaN(t.x)||isNaN(t.y))){var n=t.font||hn,i=t.x||0,o=bk(t.y||0,If(n),t.textBaseline),s=_k[t.textAlign]||t.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(PT(t)){var u="",c=t.fontStyle,f=IT(t.fontSize);if(!parseFloat(f))return;var h=t.fontFamily||I2,v=t.fontWeight;u+="font-size:"+f+";font-family:"+h+";",c&&c!=="normal"&&(u+="font-style:"+c+";"),v&&v!=="normal"&&(u+="font-weight:"+v+";"),l.style=u}else l.style="font: "+n;return a.match(/\s/)&&(l["xml:space"]="preserve"),i&&(l.x=i),o&&(l.y=o),Ym(l,r.transform),$m(l,t,r,e),Um(l,r),e.animation&&nh(r,l,e),xt("text",r.id+"",l,void 0,a)}}function n_(r,e){if(r instanceof Ce)return wD(r,e);if(r instanceof At)return n6(r,e);if(r instanceof To)return i6(r,e)}function o6(r,e,t){var a=r.style;if(Sk(a)){var n=wk(r),i=t.shadowCache,o=i[n];if(!o){var s=r.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var c=a.shadowOffsetX||0,f=a.shadowOffsetY||0,h=a.shadowBlur,v=nl(a.shadowColor),d=v.opacity,p=v.color,g=h/2/l,m=h/2/u,y=g+" "+m;o=t.zrId+"-s"+t.shadowIdx++,t.defs[o]=xt("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[xt("feDropShadow","",{dx:c/l,dy:f/u,stdDeviation:y,"flood-color":p,"flood-opacity":d})]),i[n]=o}e.filter=Lf(o)}}function TD(r,e,t,a){var n=r[t],i,o={gradientUnits:n.global?"userSpaceOnUse":"objectBoundingBox"};if(K2(n))i="linearGradient",o.x1=n.x,o.y1=n.y,o.x2=n.x2,o.y2=n.y2;else if(J2(n))i="radialGradient",o.cx=fe(n.x,.5),o.cy=fe(n.y,.5),o.r=fe(n.r,.5);else return;for(var s=n.colorStops,l=[],u=0,c=s.length;u<c;++u){var f=ip(s[u].offset)*100+"%",h=s[u].color,v=nl(h),d=v.color,p=v.opacity,g={offset:f};g["stop-color"]=d,p<1&&(g["stop-opacity"]=p),l.push(xt("stop",u+"",g))}var m=xt(i,"",o,l),y=Wm(m),x=a.gradientCache,_=x[y];_||(_=a.zrId+"-g"+a.gradientIdx++,x[y]=_,o.id=_,a.defs[_]=xt(i,_,o,l)),e[t]=Lf(_)}function CD(r,e,t,a){var n=r.style[t],i=r.getBoundingRect(),o={},s=n.repeat,l=s==="no-repeat",u=s==="repeat-x",c=s==="repeat-y",f;if(q2(n)){var h=n.imageWidth,v=n.imageHeight,d=void 0,p=n.image;if(q(p)?d=p:bD(p)?d=p.src:SD(p)&&(d=p.toDataURL()),typeof Image>"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";$t(h,g),$t(v,g)}else if(h==null||v==null){var m=function(D,M){if(D){var I=D.elm,P=h||M.width,k=v||M.height;D.tag==="pattern"&&(u?(k=1,P/=i.width):c&&(P=1,k/=i.height)),D.attrs.width=P,D.attrs.height=k,I&&(I.setAttribute("width",P),I.setAttribute("height",k))}},y=rm(d,null,r,function(D){l||m(S,D),m(f,D)});y&&y.width&&y.height&&(h=h||y.width,v=v||y.height)}f=xt("image","img",{href:d,width:h,height:v}),o.width=h,o.height=v}else n.svgElement&&(f=le(n.svgElement),o.width=n.svgWidth,o.height=n.svgHeight);if(f){var x,_;l?x=_=1:u?(_=1,x=o.width/i.width):c?(x=1,_=o.height/i.height):o.patternUnits="userSpaceOnUse",x!=null&&!isNaN(x)&&(o.width=x),_!=null&&!isNaN(_)&&(o.height=_);var b=tT(n);b&&(o.patternTransform=b);var S=xt("pattern","",o,[f]),w=Wm(S),C=a.patternCache,A=C[w];A||(A=a.zrId+"-p"+a.patternIdx++,C[w]=A,o.id=A,S=a.defs[A]=xt("pattern",A,o,[f])),e[t]=Lf(A)}}function s6(r,e,t){var a=t.clipPathCache,n=t.defs,i=a[r.id];if(!i){i=t.zrId+"-c"+t.clipPathIdx++;var o={id:i};a[r.id]=i,n[i]=xt("clipPath",i,o,[wD(r,t)])}e["clip-path"]=Lf(i)}function i_(r){return document.createTextNode(r)}function Qn(r,e,t){r.insertBefore(e,t)}function o_(r,e){r.removeChild(e)}function s_(r,e){r.appendChild(e)}function AD(r){return r.parentNode}function DD(r){return r.nextSibling}function Pv(r,e){r.textContent=e}var l_=58,l6=120,u6=xt("","");function Yp(r){return r===void 0}function Kr(r){return r!==void 0}function c6(r,e,t){for(var a={},n=e;n<=t;++n){var i=r[n].key;i!==void 0&&(a[i]=n)}return a}function Rs(r,e){var t=r.key===e.key,a=r.tag===e.tag;return a&&t}function yl(r){var e,t=r.children,a=r.tag;if(Kr(a)){var n=r.elm=yD(a);if(Xm(u6,r),W(t))for(e=0;e<t.length;++e){var i=t[e];i!=null&&s_(n,yl(i))}else Kr(r.text)&&!se(r.text)&&s_(n,i_(r.text))}else r.elm=i_(r.text);return r.elm}function MD(r,e,t,a,n){for(;a<=n;++a){var i=t[a];i!=null&&Qn(r,yl(i),e)}}function ef(r,e,t,a){for(;t<=a;++t){var n=e[t];if(n!=null)if(Kr(n.tag)){var i=AD(n.elm);o_(i,n.elm)}else o_(r,n.elm)}}function Xm(r,e){var t,a=e.elm,n=r&&r.attrs||{},i=e.attrs||{};if(n!==i){for(t in i){var o=i[t],s=n[t];s!==o&&(o===!0?a.setAttribute(t,""):o===!1?a.removeAttribute(t):t==="style"?a.style.cssText=o:t.charCodeAt(0)!==l6?a.setAttribute(t,o):t==="xmlns:xlink"||t==="xmlns"?a.setAttributeNS(jB,t,o):t.charCodeAt(3)===l_?a.setAttributeNS(WB,t,o):t.charCodeAt(5)===l_?a.setAttributeNS(mD,t,o):a.setAttribute(t,o))}for(t in n)t in i||a.removeAttribute(t)}}function f6(r,e,t){for(var a=0,n=0,i=e.length-1,o=e[0],s=e[i],l=t.length-1,u=t[0],c=t[l],f,h,v,d;a<=i&&n<=l;)o==null?o=e[++a]:s==null?s=e[--i]:u==null?u=t[++n]:c==null?c=t[--l]:Rs(o,u)?(lo(o,u),o=e[++a],u=t[++n]):Rs(s,c)?(lo(s,c),s=e[--i],c=t[--l]):Rs(o,c)?(lo(o,c),Qn(r,o.elm,DD(s.elm)),o=e[++a],c=t[--l]):Rs(s,u)?(lo(s,u),Qn(r,s.elm,o.elm),s=e[--i],u=t[++n]):(Yp(f)&&(f=c6(e,a,i)),h=f[u.key],Yp(h)?Qn(r,yl(u),o.elm):(v=e[h],v.tag!==u.tag?Qn(r,yl(u),o.elm):(lo(v,u),e[h]=void 0,Qn(r,v.elm,o.elm))),u=t[++n]);(a<=i||n<=l)&&(a>i?(d=t[l+1]==null?null:t[l+1].elm,MD(r,d,t,n,l)):ef(r,e,a,i))}function lo(r,e){var t=e.elm=r.elm,a=r.children,n=e.children;r!==e&&(Xm(r,e),Yp(e.text)?Kr(a)&&Kr(n)?a!==n&&f6(t,a,n):Kr(n)?(Kr(r.text)&&Pv(t,""),MD(t,null,n,0,n.length-1)):Kr(a)?ef(t,a,0,a.length-1):Kr(r.text)&&Pv(t,""):r.text!==e.text&&(Kr(a)&&ef(t,a,0,a.length-1),Pv(t,e.text)))}function h6(r,e){if(Rs(r,e))lo(r,e);else{var t=r.elm,a=AD(t);yl(e),a!==null&&(Qn(a,e.elm,DD(t)),ef(a,[r],0,0))}return e}var v6=0,d6=(function(){function r(e,t,a){if(this.type="svg",this.refreshHover=u_(),this.configLayer=u_(),this.storage=t,this._opts=a=G({},a),this.root=e,this._id="zr"+v6++,this._oldVNode=Kx(a.width,a.height),e&&!a.ssr){var n=this._viewport=document.createElement("div");n.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=yD("svg");Xm(null,this._oldVNode),n.appendChild(i),e.appendChild(n)}this.resize(a.width,a.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",h6(this._oldVNode,e),this._oldVNode=e}},r.prototype.renderOneToVNode=function(e){return n_(e,Up(this._id))},r.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),a=this._width,n=this._height,i=Up(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis,i.ssr=this._opts.ssr;var o=[],s=this._bgVNode=p6(a,n,this._backgroundColor,i);s&&o.push(s);var l=e.compress?null:this._mainVNode=xt("g","main",{},[]);this._paintList(t,i,l?l.children:o),l&&o.push(l);var u=U(Me(i.defs),function(h){return i.defs[h]});if(u.length&&o.push(xt("defs","defs",{},u)),e.animation){var c=YB(i.cssNodes,i.cssAnims,{newline:!0});if(c){var f=xt("style","stl",{},[],c);o.push(f)}}return Kx(a,n,o,e.useViewBox)},r.prototype.renderToString=function(e){return e=e||{},Wm(this.renderToVNode({animation:fe(e.cssAnimation,!0),emphasis:fe(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:fe(e.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(e,t,a){for(var n=e.length,i=[],o=0,s,l,u=0,c=0;c<n;c++){var f=e[c];if(!f.invisible){var h=f.__clipPaths,v=h&&h.length||0,d=l&&l.length||0,p=void 0;for(p=Math.max(v-1,d-1);p>=0&&!(h&&l&&h[p]===l[p]);p--);for(var g=d-1;g>p;g--)o--,s=i[o-1];for(var m=p+1;m<v;m++){var y={};s6(h[m],y,t);var x=xt("g","clip-g-"+u++,y,[]);(s?s.children:a).push(x),i[o++]=x,s=x}l=h;var _=n_(f,t);_&&(s?s.children:a).push(_)}}},r.prototype.resize=function(e,t){var a=this._opts,n=this.root,i=this._viewport;if(e!=null&&(a.width=e),t!=null&&(a.height=t),n&&i&&(i.style.display="none",e=vo(n,0,a),t=vo(n,1,a),i.style.display=""),this._width!==e||this._height!==t){if(this._width=e,this._height=t,i){var o=i.style;o.width=e+"px",o.height=t+"px"}if(qg(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",e),s.setAttribute("height",t));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",e),l.setAttribute("height",t))}}},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},r.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},r.prototype.toDataURL=function(e){var t=this.renderToString(),a="data:image/svg+xml;";return e?(t=Ck(t),t&&a+"base64,"+t):a+"charset=UTF-8,"+encodeURIComponent(t)},r})();function u_(r){return function(){}}function p6(r,e,t,a){var n;if(t&&t!=="none")if(n=xt("rect","bg",{width:r,height:e,x:"0",y:"0"}),Q2(t))TD({fill:t},n.attrs,"fill",a);else if(qg(t))CD({style:{fill:t},dirty:nt,getBoundingRect:function(){return{width:r,height:e}}},n.attrs,"fill",a);else{var i=nl(t),o=i.color,s=i.opacity;n.attrs.fill=o,s<1&&(n.attrs["fill-opacity"]=s)}return n}function g6(r){r.registerPainter("svg",d6)}function c_(r,e,t){var a=vn.createCanvas(),n=e.getWidth(),i=e.getHeight(),o=a.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=n+"px",o.height=i+"px",a.setAttribute("data-zr-dom-id",r)),a.width=n*t,a.height=i*t,a}var kv=(function(r){z(e,r);function e(t,a,n){var i=r.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.incremental=!1,i.zlevel=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__used=!1,i.__drawIndex=0,i.__startIndex=0,i.__endIndex=0,i.__prevStartIndex=null,i.__prevEndIndex=null;var o;n=n||Rc,typeof t=="string"?o=c_(t,a,n):se(t)&&(o=t,t=o.id),i.id=t,i.dom=o;var s=o.style;return s&&(O2(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),i.painter=a,i.dpr=n,i}return e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=c_("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),t!==1&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,a,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new ye(0,0,0,0);function c(y){if(!(!y.isFinite()||y.isZero()))if(o.length===0){var x=new ye(0,0,0,0);x.copy(y),o.push(x)}else{for(var _=!1,b=1/0,S=0,w=0;w<o.length;++w){var C=o[w];if(C.intersect(y)){var A=new ye(0,0,0,0);A.copy(C),A.union(y),o[w]=A,_=!0;break}else if(l){u.copy(y),u.union(C);var D=y.width*y.height,M=C.width*C.height,I=u.width*u.height,P=I-D-M;P<b&&(b=P,S=w)}}if(l&&(o[S].union(y),_=!0),!_){var x=new ye(0,0,0,0);x.copy(y),o.push(x)}l||(l=o.length>=s)}}for(var f=this.__startIndex;f<this.__endIndex;++f){var h=t[f];if(h){var v=h.shouldBePainted(n,i,!0,!0),d=h.__isRendered&&(h.__dirty&nr||!v)?h.getPrevPaintRect():null;d&&c(d);var p=v&&(h.__dirty&nr||!h.__isRendered)?h.getPaintRect():null;p&&c(p)}}for(var f=this.__prevStartIndex;f<this.__prevEndIndex;++f){var h=a[f],v=h&&h.shouldBePainted(n,i,!0,!0);if(h&&(!v||!h.__zr)&&h.__isRendered){var d=h.getPrevPaintRect();d&&c(d)}}var g;do{g=!1;for(var f=0;f<o.length;){if(o[f].isZero()){o.splice(f,1);continue}for(var m=f+1;m<o.length;)o[f].intersect(o[m])?(g=!0,o[f].union(o[m]),o.splice(m,1)):m++;f++}}while(g);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,a){var n=this.dpr,i=this.dom,o=i.style,s=this.domBack;o&&(o.width=t+"px",o.height=a+"px"),i.width=t*n,i.height=a*n,s&&(s.width=t*n,s.height=a*n,n!==1&&this.ctxBack.scale(n,n))},e.prototype.clear=function(t,a,n){var i=this.dom,o=this.ctx,s=i.width,l=i.height;a=a||this.clearColor;var u=this.motionBlur&&!t,c=this.lastFrameAlpha,f=this.dpr,h=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,s/f,l/f));var v=this.domBack;function d(p,g,m,y){if(o.clearRect(p,g,m,y),a&&a!=="transparent"){var x=void 0;if(Af(a)){var _=a.global||a.__width===m&&a.__height===y;x=_&&a.__canvasGradient||Bp(o,a,{x:0,y:0,width:m,height:y}),a.__canvasGradient=x,a.__width=m,a.__height=y}else R5(a)&&(a.scaleX=a.scaleX||f,a.scaleY=a.scaleY||f,x=zp(o,a,{dirty:function(){h.setUnpainted(),h.painter.refresh()}}));o.save(),o.fillStyle=x||a,o.fillRect(p,g,m,y),o.restore()}u&&(o.save(),o.globalAlpha=c,o.drawImage(v,p,g,m,y),o.restore())}!n||u?d(0,0,s,l):n.length&&L(n,function(p){d(p.x*f,p.y*f,p.width*f,p.height*f)})},e})(Ar),f_=1e5,Wn=314159,Pu=.01,m6=.001;function y6(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function x6(r,e){var t=document.createElement("div");return t.style.cssText=["position:relative","width:"+r+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",t}var _6=(function(){function r(e,t,a,n){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=a=G({},a||{}),this.dpr=a.devicePixelRatio||Rc,this._singleCanvas=i,this.root=e;var o=e.style;o&&(O2(e),e.innerHTML=""),this.storage=t;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(i){var c=e,f=c.width,h=c.height;a.width!=null&&(f=a.width),a.height!=null&&(h=a.height),this.dpr=a.devicePixelRatio||1,c.width=f*this.dpr,c.height=h*this.dpr,this._width=f,this._height=h;var v=new kv(c,this,this.dpr);v.__builtin__=!0,v.initContext(),l[Wn]=v,v.zlevel=Wn,s.push(Wn),this._domRoot=e}else{this._width=vo(e,0,a),this._height=vo(e,1,a);var u=this._domRoot=x6(this._width,this._height);e.appendChild(u)}}return r.prototype.getType=function(){return"canvas"},r.prototype.isSingleCanvas=function(){return this._singleCanvas},r.prototype.getViewportRoot=function(){return this._domRoot},r.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.refresh=function(e){var t=this.storage.getDisplayList(!0),a=this._prevDisplayList,n=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,a,e,this._redrawId);for(var i=0;i<n.length;i++){var o=n[i],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=i===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=t.slice()),this},r.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},r.prototype._paintHoverList=function(e){var t=e.length,a=this._hoverlayer;if(a&&a.clear(),!!t){for(var n={inHover:!0,viewWidth:this._width,viewHeight:this._height},i,o=0;o<t;o++){var s=e[o];s.__inHover&&(a||(a=this._hoverlayer=this.getLayer(f_)),i||(i=a.ctx,i.save()),li(i,s,n,o===t-1))}i&&i.restore()}},r.prototype.getHoverLayer=function(){return this.getLayer(f_)},r.prototype.paintOne=function(e,t){hA(e,t)},r.prototype._paintList=function(e,t,a,n){if(this._redrawId===n){a=a||!1,this._updateLayerStatus(e);var i=this._doPaintList(e,t,a),o=i.finished,s=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(e),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;Dc(function(){l._paintList(e,t,a,n)})}}},r.prototype._compositeManually=function(){var e=this.getLayer(Wn).ctx,t=this._domRoot.width,a=this._domRoot.height;e.clearRect(0,0,t,a),this.eachBuiltinLayer(function(n){n.virtual&&e.drawImage(n.dom,0,0,t,a)})},r.prototype._doPaintList=function(e,t,a){for(var n=this,i=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||a)&&i.push(u)}for(var c=!0,f=!1,h=function(p){var g=i[p],m=g.ctx,y=o&&g.createRepaintRects(e,t,v._width,v._height),x=a?g.__startIndex:g.__drawIndex,_=!a&&g.incremental&&Date.now,b=_&&Date.now(),S=g.zlevel===v._zlevelList[0]?v._backgroundColor:null;if(g.__startIndex===g.__endIndex)g.clear(!1,S,y);else if(x===g.__startIndex){var w=e[x];(!w.incremental||!w.notClear||a)&&g.clear(!1,S,y)}x===-1&&(console.error("For some unknown reason. drawIndex is -1"),x=g.__startIndex);var C,A=function(P){var k={inHover:!1,allClipped:!1,prevEl:null,viewWidth:n._width,viewHeight:n._height};for(C=x;C<g.__endIndex;C++){var R=e[C];if(R.__inHover&&(f=!0),n._doPaintEl(R,g,o,P,k,C===g.__endIndex-1),_){var E=Date.now()-b;if(E>15)break}}k.prevElClipPaths&&m.restore()};if(y)if(y.length===0)C=g.__endIndex;else for(var D=v.dpr,M=0;M<y.length;++M){var I=y[M];m.save(),m.beginPath(),m.rect(I.x*D,I.y*D,I.width*D,I.height*D),m.clip(),A(I),m.restore()}else m.save(),A(),m.restore();g.__drawIndex=C,g.__drawIndex<g.__endIndex&&(c=!1)},v=this,d=0;d<i.length;d++)h(d);return Ae.wxa&&L(this._layers,function(p){p&&p.ctx&&p.ctx.draw&&p.ctx.draw()}),{finished:c,needsRefreshHover:f}},r.prototype._doPaintEl=function(e,t,a,n,i,o){var s=t.ctx;if(a){var l=e.getPaintRect();(!n||l&&l.intersect(n))&&(li(s,e,i,o),e.setPrevPaintRect(l))}else li(s,e,i,o)},r.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=Wn);var a=this._layers[e];return a||(a=new kv("zr_"+e,this,this.dpr),a.zlevel=e,a.__builtin__=!0,this._layerConfig[e]?pe(a,this._layerConfig[e],!0):this._layerConfig[e-Pu]&&pe(a,this._layerConfig[e-Pu],!0),t&&(a.virtual=t),this.insertLayer(e,a),a.initContext()),a},r.prototype.insertLayer=function(e,t){var a=this._layers,n=this._zlevelList,i=n.length,o=this._domRoot,s=null,l=-1;if(!a[e]&&y6(t)){if(i>0&&e>n[0]){for(l=0;l<i-1&&!(n[l]<e&&n[l+1]>e);l++);s=a[n[l]]}if(n.splice(l+1,0,e),a[e]=t,!t.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(t.dom,u.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.painter||(t.painter=this)}},r.prototype.eachLayer=function(e,t){for(var a=this._zlevelList,n=0;n<a.length;n++){var i=a[n];e.call(t,this._layers[i],i)}},r.prototype.eachBuiltinLayer=function(e,t){for(var a=this._zlevelList,n=0;n<a.length;n++){var i=a[n],o=this._layers[i];o.__builtin__&&e.call(t,o,i)}},r.prototype.eachOtherLayer=function(e,t){for(var a=this._zlevelList,n=0;n<a.length;n++){var i=a[n],o=this._layers[i];o.__builtin__||e.call(t,o,i)}},r.prototype.getLayers=function(){return this._layers},r.prototype._updateLayerStatus=function(e){this.eachBuiltinLayer(function(f,h){f.__dirty=f.__used=!1});function t(f){i&&(i.__endIndex!==f&&(i.__dirty=!0),i.__endIndex=f)}if(this._singleCanvas)for(var a=1;a<e.length;a++){var n=e[a];if(n.zlevel!==e[a-1].zlevel||n.incremental){this._needsManuallyCompositing=!0;break}}var i=null,o=0,s,l;for(l=0;l<e.length;l++){var n=e[l],u=n.zlevel,c=void 0;s!==u&&(s=u,o=0),n.incremental?(c=this.getLayer(u+m6,this._needsManuallyCompositing),c.incremental=!0,o=1):c=this.getLayer(u+(o>0?Pu:0),this._needsManuallyCompositing),c.__builtin__||Hg("ZLevel "+u+" has been used by unkown layer "+c.id),c!==i&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,t(l),i=c),n.__dirty&nr&&!n.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}t(l),this.eachBuiltinLayer(function(f,h){!f.__used&&f.getElementCount()>0&&(f.__dirty=!0,f.__startIndex=f.__endIndex=f.__drawIndex=0),f.__dirty&&f.__drawIndex<0&&(f.__drawIndex=f.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(e){e.clear()},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e,L(this._layers,function(t){t.setUnpainted()})},r.prototype.configLayer=function(e,t){if(t){var a=this._layerConfig;a[e]?pe(a[e],t,!0):a[e]=t;for(var n=0;n<this._zlevelList.length;n++){var i=this._zlevelList[n];if(i===e||i===e+Pu){var o=this._layers[i];pe(o,a[e],!0)}}}},r.prototype.delLayer=function(e){var t=this._layers,a=this._zlevelList,n=t[e];n&&(n.dom.parentNode.removeChild(n.dom),delete t[e],a.splice(_e(a,e),1))},r.prototype.resize=function(e,t){if(this._domRoot.style){var a=this._domRoot;a.style.display="none";var n=this._opts,i=this.root;if(e!=null&&(n.width=e),t!=null&&(n.height=t),e=vo(i,0,n),t=vo(i,1,n),a.style.display="",this._width!==e||t!==this._height){a.style.width=e+"px",a.style.height=t+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(e,t);this.refresh(!0)}this._width=e,this._height=t}else{if(e==null||t==null)return;this._width=e,this._height=t,this.getLayer(Wn).resize(e,t)}return this},r.prototype.clearLayer=function(e){var t=this._layers[e];t&&t.clear()},r.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},r.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[Wn].dom;var t=new kv("image",this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var a=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var n=t.dom.width,i=t.dom.height;this.eachLayer(function(f){f.__builtin__?a.drawImage(f.dom,0,0,n,i):f.renderToCanvas&&(a.save(),f.renderToCanvas(a),a.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var c=s[l];li(a,c,o,l===u-1)}return t.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r})();function b6(r){r.registerPainter("canvas",_6)}var S6=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t){return Ba(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var a=new ue,n=lt("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);a.add(n),n.setStyle(t.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=i==="none"?"circle":i,l=t.itemHeight*.8,u=lt(s,(t.itemWidth-l)/2,(t.itemHeight-l)/2,l,l,t.itemStyle.fill);a.add(u),u.setStyle(t.itemStyle);var c=t.iconRotate==="inherit"?o:t.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([t.itemWidth/2,t.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),a},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e})(Ze);function Lo(r,e){var t=r.mapDimensionsAll("defaultedLabel"),a=t.length;if(a===1){var n=Ao(r,e,t[0]);return n!=null?n+"":null}else if(a){for(var i=[],o=0;o<t.length;o++)i.push(Ao(r,e,t[o]));return i.join(" ")}}function LD(r,e){var t=r.mapDimensionsAll("defaultedLabel");if(!W(e))return e+"";for(var a=[],n=0;n<t.length;n++){var i=r.getDimensionIndex(t[n]);i>=0&&a.push(e[i])}return a.join(" ")}var Hl=(function(r){z(e,r);function e(t,a,n,i){var o=r.call(this)||this;return o.updateData(t,a,n,i),o}return e.prototype._createSymbol=function(t,a,n,i,o){this.removeAll();var s=lt(t,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=w6,this._symbolType=t,this.add(s)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){La(this.childAt(0))},e.prototype.downplay=function(){Ia(this.childAt(0))},e.prototype.setZ=function(t,a){var n=this.childAt(0);n.zlevel=t,n.z=a},e.prototype.setDraggable=function(t,a){var n=this.childAt(0);n.draggable=t,n.cursor=!a&&t?"move":n.cursor},e.prototype.updateData=function(t,a,n,i){this.silent=!1;var o=t.getItemVisual(a,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,a),u=o!==this._symbolType,c=i&&i.disableAnimation;if(u){var f=t.getItemVisual(a,"symbolKeepAspect");this._createSymbol(o,t,a,l,f)}else{var h=this.childAt(0);h.silent=!1;var v={scaleX:l[0]/2,scaleY:l[1]/2};c?h.attr(v):Ee(h,v,s,a),Gr(h)}if(this._updateCommon(t,a,l,n,i),u){var h=this.childAt(0);if(!c){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,Je(h,v,s,a)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,a,n,i,o){var s=this.childAt(0),l=t.hostModel,u,c,f,h,v,d,p,g,m;if(i&&(u=i.emphasisItemStyle,c=i.blurItemStyle,f=i.selectItemStyle,h=i.focus,v=i.blurScope,p=i.labelStatesModels,g=i.hoverScale,m=i.cursorStyle,d=i.emphasisDisabled),!i||t.hasItemOption){var y=i&&i.itemModel?i.itemModel:t.getItemModel(a),x=y.getModel("emphasis");u=x.getModel("itemStyle").getItemStyle(),f=y.getModel(["select","itemStyle"]).getItemStyle(),c=y.getModel(["blur","itemStyle"]).getItemStyle(),h=x.get("focus"),v=x.get("blurScope"),d=x.get("disabled"),p=bt(y),g=x.getShallow("scale"),m=y.getShallow("cursor")}var _=t.getItemVisual(a,"symbolRotate");s.attr("rotation",(_||0)*Math.PI/180||0);var b=Ii(t.getItemVisual(a,"symbolOffset"),n);b&&(s.x=b[0],s.y=b[1]),m&&s.attr("cursor",m);var S=t.getItemVisual(a,"style"),w=S.fill;if(s instanceof At){var C=s.style;s.useStyle(G({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},S))}else s.__isEmptyBrush?s.useStyle(G({},S)):s.useStyle(S),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var A=t.getItemVisual(a,"liftZ"),D=this._z2;A!=null?D==null&&(this._z2=s.z2,s.z2+=A):D!=null&&(s.z2=D,this._z2=null);var M=o&&o.useNameLabel;Pt(s,p,{labelFetcher:l,labelDataIndex:a,defaultText:I,inheritColor:w,defaultOpacity:S.opacity});function I(R){return M?t.getName(R):Lo(t,R)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var P=s.ensureState("emphasis");P.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var k=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;P.scaleX=this._sizeX*k,P.scaleY=this._sizeY*k,this.setSymbolScale(1),et(this,h,v,d)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,a,n){var i=this.childAt(0),o=ce(this).dataIndex,s=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var l=i.getTextContent();l&&pn(l,{style:{opacity:0}},a,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();pn(i,{style:{opacity:0},scaleX:0,scaleY:0},a,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,a){return Yo(t.getItemVisual(a,"symbolSize"))},e})(ue);function w6(r,e){this.parent.drift(r,e)}function Rv(r,e,t,a){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(a.isIgnore&&a.isIgnore(t))&&!(a.clipShape&&!a.clipShape.contain(e[0],e[1]))&&r.getItemVisual(t,"symbol")!=="none"}function h_(r){return r!=null&&!se(r)&&(r={isIgnore:r}),r||{}}function v_(r){var e=r.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:bt(e),cursorStyle:e.get("cursor")}}var jl=(function(){function r(e){this.group=new ue,this._SymbolCtor=e||Hl}return r.prototype.updateData=function(e,t){this._progressiveEls=null,t=h_(t);var a=this.group,n=e.hostModel,i=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=v_(e),u={disableAnimation:s},c=t.getSymbolPoint||function(f){return e.getItemLayout(f)};i||a.removeAll(),e.diff(i).add(function(f){var h=c(f);if(Rv(e,h,f,t)){var v=new o(e,f,l,u);v.setPosition(h),e.setItemGraphicEl(f,v),a.add(v)}}).update(function(f,h){var v=i.getItemGraphicEl(h),d=c(f);if(!Rv(e,d,f,t)){a.remove(v);return}var p=e.getItemVisual(f,"symbol")||"circle",g=v&&v.getSymbolType&&v.getSymbolType();if(!v||g&&g!==p)a.remove(v),v=new o(e,f,l,u),v.setPosition(d);else{v.updateData(e,f,l,u);var m={x:d[0],y:d[1]};s?v.attr(m):Ee(v,m,n)}a.add(v),e.setItemGraphicEl(f,v)}).remove(function(f){var h=i.getItemGraphicEl(f);h&&h.fadeOut(function(){a.remove(h)},n)}).execute(),this._getSymbolPoint=c,this._data=e},r.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(a,n){var i=e._getSymbolPoint(n);a.setPosition(i),a.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=v_(e),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,a){this._progressiveEls=[],a=h_(a);function n(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i<e.end;i++){var o=t.getItemLayout(i);if(Rv(t,o,i,a)){var s=new this._SymbolCtor(t,i,this._seriesScope);s.traverse(n),s.setPosition(o),this.group.add(s),t.setItemGraphicEl(i,s),this._progressiveEls.push(s)}}},r.prototype.eachRendered=function(e){_n(this._progressiveEls||this.group,e)},r.prototype.remove=function(e){var t=this.group,a=this._data;a&&e?a.eachItemGraphicEl(function(n){n.fadeOut(function(){t.remove(n)},a.hostModel)}):t.removeAll()},r})();function ID(r,e,t){var a=r.getBaseAxis(),n=r.getOtherAxis(a),i=T6(n,t),o=a.dim,s=n.dim,l=e.mapDimension(s),u=e.mapDimension(o),c=s==="x"||s==="radius"?1:0,f=U(r.dimensions,function(d){return e.mapDimension(d)}),h=!1,v=e.getCalculationInfo("stackResultDimension");return mn(e,f[0])&&(h=!0,f[0]=v),mn(e,f[1])&&(h=!0,f[1]=v),{dataDimsForPoint:f,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!h,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function T6(r,e){var t=0,a=r.scale.getExtent();return e==="start"?t=a[0]:e==="end"?t=a[1]:ke(e)&&!isNaN(e)?t=e:a[0]>0?t=a[0]:a[1]<0&&(t=a[1]),t}function PD(r,e,t,a){var n=NaN;r.stacked&&(n=t.get(t.getCalculationInfo("stackedOverDimension"),a)),isNaN(n)&&(n=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=t.get(r.baseDim,a),o[1-i]=n,e.dataToPoint(o)}function C6(r,e){var t=[];return e.diff(r).add(function(a){t.push({cmd:"+",idx:a})}).update(function(a,n){t.push({cmd:"=",idx:n,idx1:a})}).remove(function(a){t.push({cmd:"-",idx:a})}).execute(),t}function A6(r,e,t,a,n,i,o,s){for(var l=C6(r,e),u=[],c=[],f=[],h=[],v=[],d=[],p=[],g=ID(n,e,o),m=r.getLayout("points")||[],y=e.getLayout("points")||[],x=0;x<l.length;x++){var _=l[x],b=!0,S=void 0,w=void 0;switch(_.cmd){case"=":S=_.idx*2,w=_.idx1*2;var C=m[S],A=m[S+1],D=y[w],M=y[w+1];(isNaN(C)||isNaN(A))&&(C=D,A=M),u.push(C,A),c.push(D,M),f.push(t[S],t[S+1]),h.push(a[w],a[w+1]),p.push(e.getRawIndex(_.idx1));break;case"+":var I=_.idx,P=g.dataDimsForPoint,k=n.dataToPoint([e.get(P[0],I),e.get(P[1],I)]);w=I*2,u.push(k[0],k[1]),c.push(y[w],y[w+1]);var R=PD(g,n,e,I);f.push(R[0],R[1]),h.push(a[w],a[w+1]),p.push(e.getRawIndex(I));break;case"-":b=!1}b&&(v.push(_),d.push(d.length))}d.sort(function(te,xe){return p[te]-p[xe]});for(var E=u.length,B=aa(E),O=aa(E),V=aa(E),F=aa(E),H=[],x=0;x<d.length;x++){var Y=d[x],Z=x*2,J=Y*2;B[Z]=u[J],B[Z+1]=u[J+1],O[Z]=c[J],O[Z+1]=c[J+1],V[Z]=f[J],V[Z+1]=f[J+1],F[Z]=h[J],F[Z+1]=h[J+1],H[x]=v[Y]}return{current:B,next:O,stackedOnCurrent:V,stackedOnNext:F,status:H}}var Wa=Math.min,$a=Math.max;function mi(r,e){return isNaN(r)||isNaN(e)}function Xp(r,e,t,a,n,i,o,s,l){for(var u,c,f,h,v,d,p=t,g=0;g<a;g++){var m=e[p*2],y=e[p*2+1];if(p>=n||p<0)break;if(mi(m,y)){if(l){p+=i;continue}break}if(p===t)r[i>0?"moveTo":"lineTo"](m,y),f=m,h=y;else{var x=m-u,_=y-c;if(x*x+_*_<.5){p+=i;continue}if(o>0){for(var b=p+i,S=e[b*2],w=e[b*2+1];S===m&&w===y&&g<a;)g++,b+=i,p+=i,S=e[b*2],w=e[b*2+1],m=e[p*2],y=e[p*2+1],x=m-u,_=y-c;var C=g+1;if(l)for(;mi(S,w)&&C<a;)C++,b+=i,S=e[b*2],w=e[b*2+1];var A=.5,D=0,M=0,I=void 0,P=void 0;if(C>=a||mi(S,w))v=m,d=y;else{D=S-u,M=w-c;var k=m-u,R=S-m,E=y-c,B=w-y,O=void 0,V=void 0;if(s==="x"){O=Math.abs(k),V=Math.abs(R);var F=D>0?1:-1;v=m-F*O*o,d=y,I=m+F*V*o,P=y}else if(s==="y"){O=Math.abs(E),V=Math.abs(B);var H=M>0?1:-1;v=m,d=y-H*O*o,I=m,P=y+H*V*o}else O=Math.sqrt(k*k+E*E),V=Math.sqrt(R*R+B*B),A=V/(V+O),v=m-D*o*(1-A),d=y-M*o*(1-A),I=m+D*o*A,P=y+M*o*A,I=Wa(I,$a(S,m)),P=Wa(P,$a(w,y)),I=$a(I,Wa(S,m)),P=$a(P,Wa(w,y)),D=I-m,M=P-y,v=m-D*O/V,d=y-M*O/V,v=Wa(v,$a(u,m)),d=Wa(d,$a(c,y)),v=$a(v,Wa(u,m)),d=$a(d,Wa(c,y)),D=m-v,M=y-d,I=m+D*V/O,P=y+M*V/O}r.bezierCurveTo(f,h,v,d,m,y),f=I,h=P}else r.lineTo(m,y)}u=m,c=y,p+=i}return g}var kD=(function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r})(),D6=(function(r){z(e,r);function e(t){var a=r.call(this,t)||this;return a.type="ec-polyline",a}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new kD},e.prototype.buildPath=function(t,a){var n=a.points,i=0,o=n.length/2;if(a.connectNulls){for(;o>0&&mi(n[o*2-2],n[o*2-1]);o--);for(;i<o&&mi(n[i*2],n[i*2+1]);i++);}for(;i<o;)i+=Xp(t,n,i,o,o,1,a.smooth,a.smoothMonotone,a.connectNulls)+1},e.prototype.getPointOn=function(t,a){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n=this.path,i=n.data,o=fa.CMD,s,l,u=a==="x",c=[],f=0;f<i.length;){var h=i[f++],v=void 0,d=void 0,p=void 0,g=void 0,m=void 0,y=void 0,x=void 0;switch(h){case o.M:s=i[f++],l=i[f++];break;case o.L:if(v=i[f++],d=i[f++],x=u?(t-s)/(v-s):(t-l)/(d-l),x<=1&&x>=0){var _=u?(d-l)*x+l:(v-s)*x+s;return u?[t,_]:[_,t]}s=v,l=d;break;case o.C:v=i[f++],d=i[f++],p=i[f++],g=i[f++],m=i[f++],y=i[f++];var b=u?Lc(s,v,p,m,t,c):Lc(l,d,g,y,t,c);if(b>0)for(var S=0;S<b;S++){var w=c[S];if(w<=1&&w>=0){var _=u?mt(l,d,g,y,w):mt(s,v,p,m,w);return u?[t,_]:[_,t]}}s=m,l=y;break}}},e})(Ce),M6=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(kD),RD=(function(r){z(e,r);function e(t){var a=r.call(this,t)||this;return a.type="ec-polygon",a}return e.prototype.getDefaultShape=function(){return new M6},e.prototype.buildPath=function(t,a){var n=a.points,i=a.stackedOnPoints,o=0,s=n.length/2,l=a.smoothMonotone;if(a.connectNulls){for(;s>0&&mi(n[s*2-2],n[s*2-1]);s--);for(;o<s&&mi(n[o*2],n[o*2+1]);o++);}for(;o<s;){var u=Xp(t,n,o,s,s,1,a.smooth,l,a.connectNulls);Xp(t,i,o+u-1,u,s,-1,a.stackedOnSmooth,l,a.connectNulls),o+=u+1,t.closePath()}},e})(Ce);function ED(r,e,t,a,n){var i=r.getArea(),o=i.x,s=i.y,l=i.width,u=i.height,c=t.get(["lineStyle","width"])||0;o-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var f=new Le({shape:{x:o,y:s,width:l,height:u}});if(e){var h=r.getBaseAxis(),v=h.isHorizontal(),d=h.inverse;v?(d&&(f.shape.x+=l),f.shape.width=0):(d||(f.shape.y+=u),f.shape.height=0);var p=ne(n)?function(g){n(g,f)}:null;Je(f,{shape:{width:l,height:u,x:o,y:s}},t,null,a,p)}return f}function ND(r,e,t){var a=r.getArea(),n=tt(a.r0,1),i=tt(a.r,1),o=new Yt({shape:{cx:tt(r.cx,1),cy:tt(r.cy,1),r0:n,r:i,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}});if(e){var s=r.getBaseAxis().dim==="angle";s?o.shape.endAngle=a.startAngle:o.shape.r=n,Je(o,{shape:{endAngle:a.endAngle,r:i}},t)}return o}function Wl(r,e,t,a,n){if(r){if(r.type==="polar")return ND(r,e,t);if(r.type==="cartesian2d")return ED(r,e,t,a,n)}else return null;return null}function ki(r,e){return r.type===e}function d_(r,e){if(r.length===e.length){for(var t=0;t<r.length;t++)if(r[t]!==e[t])return;return!0}}function p_(r){for(var e=1/0,t=1/0,a=-1/0,n=-1/0,i=0;i<r.length;){var o=r[i++],s=r[i++];isNaN(o)||(e=Math.min(o,e),a=Math.max(o,a)),isNaN(s)||(t=Math.min(s,t),n=Math.max(s,n))}return[[e,t],[a,n]]}function g_(r,e){var t=p_(r),a=t[0],n=t[1],i=p_(e),o=i[0],s=i[1];return Math.max(Math.abs(a[0]-o[0]),Math.abs(a[1]-o[1]),Math.abs(n[0]-s[0]),Math.abs(n[1]-s[1]))}function m_(r){return ke(r)?r:r?.5:0}function L6(r,e,t){if(!t.valueDim)return[];for(var a=e.count(),n=aa(a*2),i=0;i<a;i++){var o=PD(t,r,e,i);n[i*2]=o[0],n[i*2+1]=o[1]}return n}function Ua(r,e,t,a,n){var i=t.getBaseAxis(),o=i.dim==="x"||i.dim==="radius"?0:1,s=[],l=0,u=[],c=[],f=[],h=[];if(n){for(l=0;l<r.length;l+=2){var v=e||r;!isNaN(v[l])&&!isNaN(v[l+1])&&h.push(r[l],r[l+1])}r=h}for(l=0;l<r.length-2;l+=2)switch(f[0]=r[l+2],f[1]=r[l+3],c[0]=r[l],c[1]=r[l+1],s.push(c[0],c[1]),a){case"end":u[o]=f[o],u[1-o]=c[1-o],s.push(u[0],u[1]);break;case"middle":var d=(c[o]+f[o])/2,p=[];u[o]=p[o]=d,u[1-o]=c[1-o],p[1-o]=f[1-o],s.push(u[0],u[1]),s.push(p[0],p[1]);break;default:u[o]=c[o],u[1-o]=f[1-o],s.push(u[0],u[1])}return s.push(r[l++],r[l++]),s}function I6(r,e){var t=[],a=r.length,n,i;function o(c,f,h){var v=c.coord,d=(h-v)/(f.coord-v),p=yk(d,[c.color,f.color]);return{coord:h,color:p}}for(var s=0;s<a;s++){var l=r[s],u=l.coord;if(u<0)n=l;else if(u>e){i?t.push(o(i,l,e)):n&&t.push(o(n,l,0),o(n,l,e));break}else n&&(t.push(o(n,l,0)),n=null),t.push(l),i=l}return t}function P6(r,e,t){var a=r.getVisual("visualMeta");if(!(!a||!a.length||!r.count())&&e.type==="cartesian2d"){for(var n,i,o=a.length-1;o>=0;o--){var s=r.getDimensionInfo(a[o].dimension);if(n=s&&s.coordDim,n==="x"||n==="y"){i=a[o];break}}if(i){var l=e.getAxis(n),u=U(i.stops,function(x){return{coord:l.toGlobalCoord(l.dataToCoord(x.value)),color:x.color}}),c=u.length,f=i.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var h=I6(u,n==="x"?t.getWidth():t.getHeight()),v=h.length;if(!v&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var d=10,p=h[0].coord-d,g=h[v-1].coord+d,m=g-p;if(m<.001)return"transparent";L(h,function(x){x.offset=(x.coord-p)/m}),h.push({offset:v?h[v-1].offset:.5,color:f[1]||"transparent"}),h.unshift({offset:v?h[0].offset:.5,color:f[0]||"transparent"});var y=new Nl(0,0,0,0,h,!0);return y[n]=p,y[n+"2"]=g,y}}}function k6(r,e,t){var a=r.get("showAllSymbol"),n=a==="auto";if(!(a&&!n)){var i=t.getAxesByScale("ordinal")[0];if(i&&!(n&&R6(i,e))){var o=e.mapDimension(i.dim),s={};return L(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function R6(r,e){var t=r.getExtent(),a=Math.abs(t[1]-t[0])/r.scale.count();isNaN(a)&&(a=0);for(var n=e.count(),i=Math.max(1,Math.round(n/5)),o=0;o<n;o+=i)if(Hl.getSymbolSize(e,o)[r.isHorizontal()?1:0]*1.5>a)return!1;return!0}function E6(r,e){return isNaN(r)||isNaN(e)}function N6(r){for(var e=r.length/2;e>0&&E6(r[e*2-2],r[e*2-1]);e--);return e-1}function y_(r,e){return[r[e*2],r[e*2+1]]}function O6(r,e,t){for(var a=r.length/2,n=t==="x"?0:1,i,o,s=0,l=-1,u=0;u<a;u++)if(o=r[u*2+n],!(isNaN(o)||isNaN(r[u*2+1-n]))){if(u===0){i=o;continue}if(i<=e&&o>=e||i>=e&&o<=e){l=u;break}s=u,i=o}return{range:[s,l],t:(e-i)/(o-i)}}function OD(r){if(r.get(["endLabel","show"]))return!0;for(var e=0;e<Ut.length;e++)if(r.get([Ut[e],"endLabel","show"]))return!0;return!1}function Ev(r,e,t,a){if(ki(e,"cartesian2d")){var n=a.getModel("endLabel"),i=n.get("valueAnimation"),o=a.getData(),s={lastFrameIndex:0},l=OD(a)?function(v,d){r._endLabelOnDuring(v,d,o,s,i,n,e)}:null,u=e.getBaseAxis().isHorizontal(),c=ED(e,t,a,function(){var v=r._endLabel;v&&t&&s.originalX!=null&&v.attr({x:s.originalX,y:s.originalY})},l);if(!a.get("clip",!0)){var f=c.shape,h=Math.max(f.width,f.height);u?(f.y-=h,f.height+=h*2):(f.x-=h,f.width+=h*2)}return l&&l(1,c),c}else return ND(e,t,a)}function B6(r,e){var t=e.getBaseAxis(),a=t.isHorizontal(),n=t.inverse,i=a?n?"right":"left":"center",o=a?"middle":n?"top":"bottom";return{normal:{align:r.get("align")||i,verticalAlign:r.get("verticalAlign")||o}}}var z6=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(){var t=new ue,a=new jl;this.group.add(a.group),this._symbolDraw=a,this._lineGroup=t,this._changePolyState=Q(this._changePolyState,this)},e.prototype.render=function(t,a,n){var i=t.coordinateSystem,o=this.group,s=t.getData(),l=t.getModel("lineStyle"),u=t.getModel("areaStyle"),c=s.getLayout("points")||[],f=i.type==="polar",h=this._coordSys,v=this._symbolDraw,d=this._polyline,p=this._polygon,g=this._lineGroup,m=!a.ssr&&t.get("animation"),y=!u.isEmpty(),x=u.get("origin"),_=ID(i,s,x),b=y&&L6(i,s,_),S=t.get("showSymbol"),w=t.get("connectNulls"),C=S&&!f&&k6(t,s,i),A=this._data;A&&A.eachItemGraphicEl(function(te,xe){te.__temp&&(o.remove(te),A.setItemGraphicEl(xe,null))}),S||v.remove(),o.add(g);var D=f?!1:t.get("step"),M;i&&i.getArea&&t.get("clip",!0)&&(M=i.getArea(),M.width!=null?(M.x-=.1,M.y-=.1,M.width+=.2,M.height+=.2):M.r0&&(M.r0-=.5,M.r+=.5)),this._clipShapeForSymbol=M;var I=P6(s,i,n)||s.getVisual("style")[s.getVisual("drawType")];if(!(d&&h.type===i.type&&D===this._step))S&&v.updateData(s,{isIgnore:C,clipShape:M,disableAnimation:!0,getSymbolPoint:function(te){return[c[te*2],c[te*2+1]]}}),m&&this._initSymbolLabelAnimation(s,i,M),D&&(b&&(b=Ua(b,c,i,D,w)),c=Ua(c,null,i,D,w)),d=this._newPolyline(c),y?p=this._newPolygon(c,b):p&&(g.remove(p),p=this._polygon=null),f||this._initOrUpdateEndLabel(t,i,wi(I)),g.setClipPath(Ev(this,i,!0,t));else{y&&!p?p=this._newPolygon(c,b):p&&!y&&(g.remove(p),p=this._polygon=null),f||this._initOrUpdateEndLabel(t,i,wi(I));var P=g.getClipPath();if(P){var k=Ev(this,i,!1,t);Je(P,{shape:k.shape},t)}else g.setClipPath(Ev(this,i,!0,t));S&&v.updateData(s,{isIgnore:C,clipShape:M,disableAnimation:!0,getSymbolPoint:function(te){return[c[te*2],c[te*2+1]]}}),(!d_(this._stackedOnPoints,b)||!d_(this._points,c))&&(m?this._doUpdateAnimation(s,b,i,n,D,x,w):(D&&(b&&(b=Ua(b,c,i,D,w)),c=Ua(c,null,i,D,w)),d.setShape({points:c}),p&&p.setShape({points:c,stackedOnPoints:b})))}var R=t.getModel("emphasis"),E=R.get("focus"),B=R.get("blurScope"),O=R.get("disabled");if(d.useStyle(ie(l.getLineStyle(),{fill:"none",stroke:I,lineJoin:"bevel"})),It(d,t,"lineStyle"),d.style.lineWidth>0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var V=d.getState("emphasis").style;V.lineWidth=+d.style.lineWidth+1}ce(d).seriesIndex=t.seriesIndex,et(d,E,B,O);var F=m_(t.get("smooth")),H=t.get("smoothMonotone");if(d.setShape({smooth:F,smoothMonotone:H,connectNulls:w}),p){var Y=s.getCalculationInfo("stackedOnSeries"),Z=0;p.useStyle(ie(u.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),Y&&(Z=m_(Y.get("smooth"))),p.setShape({smooth:F,stackedOnSmooth:Z,smoothMonotone:H,connectNulls:w}),It(p,t,"areaStyle"),ce(p).seriesIndex=t.seriesIndex,et(p,E,B,O)}var J=this._changePolyState;s.eachItemGraphicEl(function(te){te&&(te.onHoverStateChange=J)}),this._polyline.onHoverStateChange=J,this._data=s,this._coordSys=i,this._stackedOnPoints=b,this._points=c,this._step=D,this._valueOrigin=x,t.get("triggerLineEvent")&&(this.packEventData(t,d),p&&this.packEventData(t,p))},e.prototype.packEventData=function(t,a){ce(a).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,a,n,i){var o=t.getData(),s=_i(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],f=l[s*2+1];if(isNaN(c)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,f))return;var h=t.get("zlevel")||0,v=t.get("z")||0;u=new Hl(o,s),u.x=c,u.y=f,u.setZ(h,v);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=h,d.z=v,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else $e.prototype.highlight.call(this,t,a,n,i)},e.prototype.downplay=function(t,a,n,i){var o=t.getData(),s=_i(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else $e.prototype.downplay.call(this,t,a,n,i)},e.prototype._changePolyState=function(t){var a=this._polygon;Oc(this._polyline,t),a&&Oc(a,t)},e.prototype._newPolyline=function(t){var a=this._polyline;return a&&this._lineGroup.remove(a),a=new D6({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(a),this._polyline=a,a},e.prototype._newPolygon=function(t,a){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new RD({shape:{points:t,stackedOnPoints:a},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,a,n){var i,o,s=a.getBaseAxis(),l=s.inverse;a.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):a.type==="polar"&&(i=s.dim==="angle",o=!0);var u=t.hostModel,c=u.get("animationDuration");ne(c)&&(c=c(null));var f=u.get("animationDelay")||0,h=ne(f)?f(null):f;t.eachItemGraphicEl(function(v,d){var p=v;if(p){var g=[v.x,v.y],m=void 0,y=void 0,x=void 0;if(n)if(o){var _=n,b=a.pointToCoord(g);i?(m=_.startAngle,y=_.endAngle,x=-b[1]/180*Math.PI):(m=_.r0,y=_.r,x=b[0])}else{var S=n;i?(m=S.x,y=S.x+S.width,x=v.x):(m=S.y+S.height,y=S.y,x=v.y)}var w=y===m?0:(x-m)/(y-m);l&&(w=1-w);var C=ne(f)?f(d):c*w+h,A=p.getSymbolPath(),D=A.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:C}),D&&D.animateFrom({style:{opacity:0}},{duration:300,delay:C}),A.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,a,n){var i=t.getModel("endLabel");if(OD(t)){var o=t.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new Pe({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=N6(l);c>=0&&(Pt(s,bt(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:c,defaultText:function(f,h,v){return v!=null?LD(o,v):Lo(o,f)},enableTextSetter:!0},B6(i,a)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,a,n,i,o,s,l){var u=this._endLabel,c=this._polyline;if(u){t<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var f=n.getLayout("points"),h=n.hostModel,v=h.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,g=l.getBaseAxis(),m=g.isHorizontal(),y=g.inverse,x=a.shape,_=y?m?x.x:x.y+x.height:m?x.x+x.width:x.y,b=(m?p:0)*(y?-1:1),S=(m?0:-p)*(y?-1:1),w=m?"x":"y",C=O6(f,_,w),A=C.range,D=A[1]-A[0],M=void 0;if(D>=1){if(D>1&&!v){var I=y_(f,A[0]);u.attr({x:I[0]+b,y:I[1]+S}),o&&(M=h.getRawValue(A[0]))}else{var I=c.getPointOn(_,w);I&&u.attr({x:I[0]+b,y:I[1]+S});var P=h.getRawValue(A[0]),k=h.getRawValue(A[1]);o&&(M=_T(n,d,P,k,C.t))}i.lastFrameIndex=A[0]}else{var R=t===1||i.lastFrameIndex>0?A[0]:0,I=y_(f,R);o&&(M=h.getRawValue(R)),u.attr({x:I[0]+b,y:I[1]+S})}if(o){var E=Fo(u);typeof E.setLabelText=="function"&&E.setLabelText(M)}}},e.prototype._doUpdateAnimation=function(t,a,n,i,o,s,l){var u=this._polyline,c=this._polygon,f=t.hostModel,h=A6(this._data,t,this._stackedOnPoints,a,this._coordSys,n,this._valueOrigin),v=h.current,d=h.stackedOnCurrent,p=h.next,g=h.stackedOnNext;if(o&&(d=Ua(h.stackedOnCurrent,h.current,n,o,l),v=Ua(h.current,null,n,o,l),g=Ua(h.stackedOnNext,h.next,n,o,l),p=Ua(h.next,null,n,o,l)),g_(v,p)>3e3||c&&g_(d,g)>3e3){u.stopAnimation(),u.setShape({points:p}),c&&(c.stopAnimation(),c.setShape({points:p,stackedOnPoints:g}));return}u.shape.__points=h.current,u.shape.points=v;var m={shape:{points:p}};h.current!==v&&(m.shape.__points=h.next),u.stopAnimation(),Ee(u,m,f),c&&(c.setShape({points:v,stackedOnPoints:d}),c.stopAnimation(),Ee(c,{shape:{stackedOnPoints:g}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var y=[],x=h.status,_=0;_<x.length;_++){var b=x[_].cmd;if(b==="="){var S=t.getItemGraphicEl(x[_].idx1);S&&y.push({el:S,ptIdx:_})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var w=u.shape.__points,C=0;C<y.length;C++){var A=y[C].el,D=y[C].ptIdx*2;A.x=w[D],A.y=w[D+1],A.markRedraw()}})},e.prototype.remove=function(t){var a=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(i,o){i.__temp&&(a.remove(i),n.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e})($e);function $l(r,e){return{seriesType:r,plan:$o(),reset:function(t){var a=t.getData(),n=t.coordinateSystem,i=t.pipelineContext,o=e||i.large;if(n){var s=U(n.dimensions,function(v){return a.mapDimension(v)}).slice(0,2),l=s.length,u=a.getCalculationInfo("stackResultDimension");mn(a,s[0])&&(s[0]=u),mn(a,s[1])&&(s[1]=u);var c=a.getStore(),f=a.getDimensionIndex(s[0]),h=a.getDimensionIndex(s[1]);return l&&{progress:function(v,d){for(var p=v.end-v.start,g=o&&aa(p*l),m=[],y=[],x=v.start,_=0;x<v.end;x++){var b=void 0;if(l===1){var S=c.get(f,x);b=n.dataToPoint(S,null,y)}else m[0]=c.get(f,x),m[1]=c.get(h,x),b=n.dataToPoint(m,null,y);o?(g[_++]=b[0],g[_++]=b[1]):d.setItemLayout(x,b.slice())}o&&d.setLayout("points",g)}}}}}}var V6={average:function(r){for(var e=0,t=0,a=0;a<r.length;a++)isNaN(r[a])||(e+=r[a],t++);return t===0?NaN:e/t},sum:function(r){for(var e=0,t=0;t<r.length;t++)e+=r[t]||0;return e},max:function(r){for(var e=-1/0,t=0;t<r.length;t++)r[t]>e&&(e=r[t]);return isFinite(e)?e:NaN},min:function(r){for(var e=1/0,t=0;t<r.length;t++)r[t]<e&&(e=r[t]);return isFinite(e)?e:NaN},nearest:function(r){return r[0]}},F6=function(r){return Math.round(r.length/2)};function BD(r){return{seriesType:r,reset:function(e,t,a){var n=e.getData(),i=e.get("sampling"),o=e.coordinateSystem,s=n.count();if(s>10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),f=a.getDevicePixelRatio(),h=Math.abs(c[1]-c[0])*(f||1),v=Math.round(s/h);if(isFinite(v)&&v>1){i==="lttb"?e.setData(n.lttbDownSample(n.mapDimension(u.dim),1/v)):i==="minmax"&&e.setData(n.minmaxDownSample(n.mapDimension(u.dim),1/v));var d=void 0;q(i)?d=V6[i]:ne(i)&&(d=i),d&&e.setData(n.downSample(n.mapDimension(u.dim),1/v,d,F6))}}}}}function G6(r){r.registerChartView(z6),r.registerSeriesModel(S6),r.registerLayout($l("line",!0)),r.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),a=e.getModel("lineStyle").getLineStyle();a&&!a.stroke&&(a.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",a)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,BD("line"))}var xl=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,a){return Ba(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,a,n){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(t),s=i.dataToPoint(o);if(n)L(i.getAxes(),function(h,v){if(h.type==="category"&&a!=null){var d=h.getTicksCoords(),p=h.getTickModel().get("alignWithLabel"),g=o[v],m=a[v]==="x1"||a[v]==="y1";if(m&&!p&&(g+=1),d.length<2)return;if(d.length===2){s[v]=h.toGlobalCoord(h.getExtent()[m?1:0]);return}for(var y=void 0,x=void 0,_=1,b=0;b<d.length;b++){var S=d[b].coord,w=b===d.length-1?d[b-1].tickValue+_:d[b].tickValue;if(w===g){x=S;break}else if(w<g)y=S;else if(y!=null&&w>g){x=(S+y)/2;break}b===1&&(_=w-d[0].tickValue)}x==null&&(y?y&&(x=d[d.length-1].coord):x=d[0].coord),s[v]=h.toGlobalCoord(x)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),f=i.getBaseAxis().isHorizontal()?0:1;s[f]+=u+c/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e})(Ze);Ze.registerClass(xl);var H6=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return Ba(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),a=this.get("largeThreshold");return a>t&&(t=a),t},e.prototype.brushSelector=function(t,a,n){return n.rect(a.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=bn(xl.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e})(xl),j6=(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}return r})(),tf=(function(r){z(e,r);function e(t){var a=r.call(this,t)||this;return a.type="sausage",a}return e.prototype.getDefaultShape=function(){return new j6},e.prototype.buildPath=function(t,a){var n=a.cx,i=a.cy,o=Math.max(a.r0||0,0),s=Math.max(a.r,0),l=(s-o)*.5,u=o+l,c=a.startAngle,f=a.endAngle,h=a.clockwise,v=Math.PI*2,d=h?f-c<v:c-f<v;d||(c=f-(h?v:-v));var p=Math.cos(c),g=Math.sin(c),m=Math.cos(f),y=Math.sin(f);d?(t.moveTo(p*o+n,g*o+i),t.arc(p*u+n,g*u+i,l,-Math.PI+c,c,!h)):t.moveTo(p*s+n,g*s+i),t.arc(n,i,s,c,f,!h),t.arc(m*u+n,y*u+i,l,f-Math.PI*2,f-Math.PI,!h),o!==0&&t.arc(n,i,o,f,c,h)},e})(Ce);function W6(r,e){e=e||{};var t=e.isRoundCap;return function(a,n,i){var o=n.position;if(!o||o instanceof Array)return Ec(a,n,i);var s=r(o),l=n.distance!=null?n.distance:5,u=this.shape,c=u.cx,f=u.cy,h=u.r,v=u.r0,d=(h+v)/2,p=u.startAngle,g=u.endAngle,m=(p+g)/2,y=t?Math.abs(h-v)/2:0,x=Math.cos,_=Math.sin,b=c+h*x(p),S=f+h*_(p),w="left",C="top";switch(s){case"startArc":b=c+(v-l)*x(m),S=f+(v-l)*_(m),w="center",C="top";break;case"insideStartArc":b=c+(v+l)*x(m),S=f+(v+l)*_(m),w="center",C="bottom";break;case"startAngle":b=c+d*x(p)+ku(p,l+y,!1),S=f+d*_(p)+Ru(p,l+y,!1),w="right",C="middle";break;case"insideStartAngle":b=c+d*x(p)+ku(p,-l+y,!1),S=f+d*_(p)+Ru(p,-l+y,!1),w="left",C="middle";break;case"middle":b=c+d*x(m),S=f+d*_(m),w="center",C="middle";break;case"endArc":b=c+(h+l)*x(m),S=f+(h+l)*_(m),w="center",C="bottom";break;case"insideEndArc":b=c+(h-l)*x(m),S=f+(h-l)*_(m),w="center",C="top";break;case"endAngle":b=c+d*x(g)+ku(g,l+y,!0),S=f+d*_(g)+Ru(g,l+y,!0),w="left",C="middle";break;case"insideEndAngle":b=c+d*x(g)+ku(g,-l+y,!0),S=f+d*_(g)+Ru(g,-l+y,!0),w="right",C="middle";break;default:return Ec(a,n,i)}return a=a||{},a.x=b,a.y=S,a.align=w,a.verticalAlign=C,a}}function $6(r,e,t,a){if(ke(a)){r.setTextConfig({rotation:a});return}else if(W(e)){r.setTextConfig({rotation:0});return}var n=r.shape,i=n.clockwise?n.startAngle:n.endAngle,o=n.clockwise?n.endAngle:n.startAngle,s=(i+o)/2,l,u=t(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=i;break;case"endAngle":case"insideEndAngle":l=o;break;default:r.setTextConfig({rotation:0});return}var c=Math.PI*1.5-l;u==="middle"&&c>Math.PI/2&&c<Math.PI*1.5&&(c-=Math.PI),r.setTextConfig({rotation:c})}function ku(r,e,t){return e*Math.sin(r)*(t?-1:1)}function Ru(r,e,t){return e*Math.cos(r)*(t?1:-1)}function ui(r,e,t){var a=r.get("borderRadius");if(a==null)return t?{cornerRadius:0}:null;W(a)||(a=[a,a,a,a]);var n=Math.abs(e.r||0-e.r0||0);return{cornerRadius:U(a,function(i){return Fr(i,n)})}}var Nv=Math.max,Ov=Math.min;function U6(r,e){var t=r.getArea&&r.getArea();if(ki(r,"cartesian2d")){var a=r.getBaseAxis();if(a.type!=="category"||!a.onBand){var n=e.getLayout("bandWidth");a.isHorizontal()?(t.x-=n,t.width+=n*2):(t.y-=n,t.height+=n*2)}}return t}var Y6=(function(r){z(e,r);function e(){var t=r.call(this)||this;return t.type=e.type,t._isFirstFrame=!0,t}return e.prototype.render=function(t,a,n,i){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var o=t.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,a,n):this._renderNormal(t,a,n,i))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,a){this._progressiveEls=[],this._incrementalRenderLarge(t,a)},e.prototype.eachRendered=function(t){_n(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var a=t.pipelineContext.large;(this._isLargeDraw==null||a!==this._isLargeDraw)&&(this._isLargeDraw=a,this._clear())},e.prototype._renderNormal=function(t,a,n,i){var o=this.group,s=t.getData(),l=this._data,u=t.coordinateSystem,c=u.getBaseAxis(),f;u.type==="cartesian2d"?f=c.isHorizontal():u.type==="polar"&&(f=c.dim==="angle");var h=t.isAnimationEnabled()?t:null,v=X6(t,u);v&&this._enableRealtimeSort(v,s,n);var d=t.get("clip",!0)||v,p=U6(u,s);o.removeClipPath();var g=t.get("roundCap",!0),m=t.get("showBackground",!0),y=t.getModel("backgroundStyle"),x=y.get("borderRadius")||0,_=[],b=this._backgroundEls,S=i&&i.isInitSort,w=i&&i.type==="changeAxisOrder";function C(M){var I=Eu[u.type](s,M),P=tz(u,f,I);return P.useStyle(y.getItemStyle()),u.type==="cartesian2d"?P.setShape("r",x):P.setShape("cornerRadius",x),_[M]=P,P}s.diff(l).add(function(M){var I=s.getItemModel(M),P=Eu[u.type](s,M,I);if(m&&C(M),!(!s.hasValue(M)||!w_[u.type](P))){var k=!1;d&&(k=x_[u.type](p,P));var R=__[u.type](t,s,M,P,f,h,c.model,!1,g);v&&(R.forceLabelAnimation=!0),T_(R,s,M,I,P,t,f,u.type==="polar"),S?R.attr({shape:P}):v?b_(v,h,R,P,M,f,!1,!1):Je(R,{shape:P},t,M),s.setItemGraphicEl(M,R),o.add(R),R.ignore=k}}).update(function(M,I){var P=s.getItemModel(M),k=Eu[u.type](s,M,P);if(m){var R=void 0;b.length===0?R=C(I):(R=b[I],R.useStyle(y.getItemStyle()),u.type==="cartesian2d"?R.setShape("r",x):R.setShape("cornerRadius",x),_[M]=R);var E=Eu[u.type](s,M),B=VD(f,E,u);Ee(R,{shape:B},h,M)}var O=l.getItemGraphicEl(I);if(!s.hasValue(M)||!w_[u.type](k)){o.remove(O);return}var V=!1;if(d&&(V=x_[u.type](p,k),V&&o.remove(O)),O?Gr(O):O=__[u.type](t,s,M,k,f,h,c.model,!!O,g),v&&(O.forceLabelAnimation=!0),w){var F=O.getTextContent();if(F){var H=Fo(F);H.prevValue!=null&&(H.prevValue=H.value)}}else T_(O,s,M,P,k,t,f,u.type==="polar");S?O.attr({shape:k}):v?b_(v,h,O,k,M,f,!0,w):Ee(O,{shape:k},t,M,null),s.setItemGraphicEl(M,O),O.ignore=V,o.add(O)}).remove(function(M){var I=l.getItemGraphicEl(M);I&&ul(I,t,M)}).execute();var A=this._backgroundGroup||(this._backgroundGroup=new ue);A.removeAll();for(var D=0;D<_.length;++D)A.add(_[D]);o.add(A),this._backgroundEls=_,this._data=s},e.prototype._renderLarge=function(t,a,n){this._clear(),A_(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,a){this._removeBackground(),A_(a,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var a=t.get("clip",!0)&&Wl(t.coordinateSystem,!1,t),n=this.group;a?n.setClipPath(a):n.removeClipPath()},e.prototype._enableRealtimeSort=function(t,a,n){var i=this;if(a.count()){var o=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(a,t,n),this._isFirstFrame=!1;else{var s=function(l){var u=a.getItemGraphicEl(l),c=u&&u.shape;return c&&Math.abs(o.isHorizontal()?c.height:c.width)||0};this._onRendered=function(){i._updateSortWithinSameData(a,s,o,n)},n.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,a,n){var i=[];return t.each(t.mapDimension(a.dim),function(o,s){var l=n(s);l=l??NaN,i.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),i.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:U(i,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(t,a,n){for(var i=n.scale,o=t.mapDimension(n.dim),s=Number.MAX_VALUE,l=0,u=i.getOrdinalMeta().categories.length;l<u;++l){var c=t.rawIndexOf(o,i.getRawOrdinalNumber(l)),f=c<0?Number.MIN_VALUE:a(t.indexOfRawIndex(c));if(f>s)return!0;s=f}return!1},e.prototype._isOrderDifferentInView=function(t,a){for(var n=a.scale,i=n.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],n.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,a,n,i){if(this._isOrderChangedWithinSameData(t,a,n)){var o=this._dataSort(t,n,a);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,a,n){var i=a.baseAxis,o=this._dataSort(t,i,function(s){return t.get(t.mapDimension(a.otherAxis.dim),s)});n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},e.prototype.remove=function(t,a){this._clear(this._model),this._removeOnRenderedListener(a)},e.prototype.dispose=function(t,a){this._removeOnRenderedListener(a)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var a=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(i){ul(i,t,ce(i).dataIndex)})):a.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e})($e),x_={cartesian2d:function(r,e){var t=e.width<0?-1:1,a=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),a<0&&(e.y+=e.height,e.height=-e.height);var n=r.x+r.width,i=r.y+r.height,o=Nv(e.x,r.x),s=Ov(e.x+e.width,n),l=Nv(e.y,r.y),u=Ov(e.y+e.height,i),c=s<o,f=u<l;return e.x=c&&o>n?s:o,e.y=f&&l>i?u:l,e.width=c?0:s-o,e.height=f?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),a<0&&(e.y+=e.height,e.height=-e.height),c||f},polar:function(r,e){var t=e.r0<=e.r?1:-1;if(t<0){var a=e.r;e.r=e.r0,e.r0=a}var n=Ov(e.r,r.r),i=Nv(e.r0,r.r0);e.r=n,e.r0=i;var o=n-i<0;if(t<0){var a=e.r;e.r=e.r0,e.r0=a}return o}},__={cartesian2d:function(r,e,t,a,n,i,o,s,l){var u=new Le({shape:G({},a),z2:1});if(u.__dataIndex=t,u.name="item",i){var c=u.shape,f=n?"height":"width";c[f]=0}return u},polar:function(r,e,t,a,n,i,o,s,l){var u=!n&&l?tf:Yt,c=new u({shape:a,z2:1});c.name="item";var f=zD(n);if(c.calculateTextPosition=W6(f,{isRoundCap:u===tf}),i){var h=c.shape,v=n?"r":"endAngle",d={};h[v]=n?a.r0:a.startAngle,d[v]=a[v],(s?Ee:Je)(c,{shape:d},i)}return c}};function X6(r,e){var t=r.get("realtimeSort",!0),a=e.getBaseAxis();if(t&&a.type==="category"&&e.type==="cartesian2d")return{baseAxis:a,otherAxis:e.getOtherAxis(a)}}function b_(r,e,t,a,n,i,o,s){var l,u;i?(u={x:a.x,width:a.width},l={y:a.y,height:a.height}):(u={y:a.y,height:a.height},l={x:a.x,width:a.width}),s||(o?Ee:Je)(t,{shape:l},e,n,null);var c=e?r.baseAxis.model:null;(o?Ee:Je)(t,{shape:u},c,n)}function S_(r,e){for(var t=0;t<e.length;t++)if(!isFinite(r[e[t]]))return!0;return!1}var Z6=["x","y","width","height"],q6=["cx","cy","r","startAngle","endAngle"],w_={cartesian2d:function(r){return!S_(r,Z6)},polar:function(r){return!S_(r,q6)}},Eu={cartesian2d:function(r,e,t){var a=r.getItemLayout(e),n=t?J6(t,a):0,i=a.width>0?1:-1,o=a.height>0?1:-1;return{x:a.x+i*n/2,y:a.y+o*n/2,width:a.width-i*n,height:a.height-o*n}},polar:function(r,e,t){var a=r.getItemLayout(e);return{cx:a.cx,cy:a.cy,r0:a.r0,r:a.r,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}}};function K6(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function zD(r){return(function(e){var t=e?"Arc":"Angle";return function(a){switch(a){case"start":case"insideStart":case"end":case"insideEnd":return a+t;default:return a}}})(r)}function T_(r,e,t,a,n,i,o,s){var l=e.getItemVisual(t,"style");if(s){if(!i.get("roundCap")){var c=r.shape,f=ui(a.getModel("itemStyle"),c,!0);G(c,f),r.setShape(c)}}else{var u=a.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var h=a.getShallow("cursor");h&&r.attr("cursor",h);var v=s?o?n.r>=n.r0?"endArc":"startArc":n.endAngle>=n.startAngle?"endAngle":"startAngle":o?n.height>=0?"bottom":"top":n.width>=0?"right":"left",d=bt(a);Pt(r,d,{labelFetcher:i,labelDataIndex:t,defaultText:Lo(i.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:v});var p=r.getTextContent();if(s&&p){var g=a.get(["label","position"]);r.textConfig.inside=g==="middle"?!0:null,$6(r,g==="outside"?v:g,zD(o),a.get(["label","rotate"]))}aC(p,d,i.getRawValue(t),function(y){return LD(e,y)});var m=a.getModel(["emphasis"]);et(r,m.get("focus"),m.get("blurScope"),m.get("disabled")),It(r,a),K6(n)&&(r.style.fill="none",r.style.stroke="none",L(r.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function J6(r,e){var t=r.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var a=r.get(["itemStyle","borderWidth"])||0,n=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),i=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(a,n,i)}var Q6=(function(){function r(){}return r})(),C_=(function(r){z(e,r);function e(t){var a=r.call(this,t)||this;return a.type="largeBar",a}return e.prototype.getDefaultShape=function(){return new Q6},e.prototype.buildPath=function(t,a){for(var n=a.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c<n.length;c+=3)l[i]=u,l[o]=n[c+2],s[i]=n[c+i],s[o]=n[c+o],t.rect(s[0],s[1],l[0],l[1])},e})(Ce);function A_(r,e,t,a){var n=r.getData(),i=n.getLayout("valueAxisHorizontal")?1:0,o=n.getLayout("largeDataIndices"),s=n.getLayout("size"),l=r.getModel("backgroundStyle"),u=n.getLayout("largeBackgroundPoints");if(u){var c=new C_({shape:{points:u},incremental:!!a,silent:!0,z2:0});c.baseDimIdx=i,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),e.add(c),t&&t.push(c)}var f=new C_({shape:{points:n.getLayout("largePoints")},incremental:!!a,ignoreCoarsePointer:!0,z2:1});f.baseDimIdx=i,f.largeDataIndices=o,f.barWidth=s,e.add(f),f.useStyle(n.getVisual("style")),f.style.stroke=null,ce(f).seriesIndex=r.seriesIndex,r.get("silent")||(f.on("mousedown",D_),f.on("mousemove",D_)),t&&t.push(f)}var D_=Mm(function(r){var e=this,t=ez(e,r.offsetX,r.offsetY);ce(e).dataIndex=t>=0?t:null},30,!1);function ez(r,e,t){for(var a=r.baseDimIdx,n=1-a,i=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,c=0,f=i.length/3;c<f;c++){var h=c*3;if(l[a]=u,l[n]=i[h+2],s[a]=i[h+a],s[n]=i[h+n],l[n]<0&&(s[n]+=l[n],l[n]=-l[n]),e>=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[c]}return-1}function VD(r,e,t){if(ki(t,"cartesian2d")){var a=e,n=t.getArea();return{x:r?a.x:n.x,y:r?n.y:a.y,width:r?a.width:n.width,height:r?n.height:a.height}}else{var n=t.getArea(),i=e;return{cx:n.cx,cy:n.cy,r0:r?n.r0:i.r0,r:r?n.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function tz(r,e,t){var a=r.type==="polar"?Yt:Le;return new a({shape:VD(e,t,r),silent:!0,z2:0})}function rz(r){r.registerChartView(Y6),r.registerSeriesModel(H6),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,ve(WA,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,$A("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,BD("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var a=e.componentType||"series";t.eachComponent({mainType:a,query:e},function(n){e.sortInfo&&n.axis.setCategorySortInfo(e.sortInfo)})})}var M_=Math.PI*2,Nu=Math.PI/180;function FD(r,e){return gt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function GD(r,e){var t=FD(r,e),a=r.get("center"),n=r.get("radius");W(n)||(n=[0,n]);var i=X(t.width,e.getWidth()),o=X(t.height,e.getHeight()),s=Math.min(i,o),l=X(n[0],s/2),u=X(n[1],s/2),c,f,h=r.coordinateSystem;if(h){var v=h.dataToPoint(a);c=v[0]||0,f=v[1]||0}else W(a)||(a=[a,a]),c=X(a[0],i)+t.x,f=X(a[1],o)+t.y;return{cx:c,cy:f,r0:l,r:u}}function az(r,e,t){e.eachSeriesByType(r,function(a){var n=a.getData(),i=n.mapDimension("value"),o=FD(a,t),s=GD(a,t),l=s.cx,u=s.cy,c=s.r,f=s.r0,h=-a.get("startAngle")*Nu,v=a.get("endAngle"),d=a.get("padAngle")*Nu;v=v==="auto"?h-M_:-v*Nu;var p=a.get("minAngle")*Nu,g=p+d,m=0;n.each(i,function(B){!isNaN(B)&&m++});var y=n.getSum(i),x=Math.PI/(y||m)*2,_=a.get("clockwise"),b=a.get("roseType"),S=a.get("stillShowZeroSum"),w=n.getDataExtent(i);w[0]=0;var C=_?1:-1,A=[h,v],D=C*d/2;am(A,!_),h=A[0],v=A[1];var M=HD(a);M.startAngle=h,M.endAngle=v,M.clockwise=_;var I=Math.abs(v-h),P=I,k=0,R=h;if(n.setLayout({viewRect:o,r:c}),n.each(i,function(B,O){var V;if(isNaN(B)){n.setItemLayout(O,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:l,cy:u,r0:f,r:b?NaN:c});return}b!=="area"?V=y===0&&S?x:B*x:V=I/m,V<g?(V=g,P-=g):k+=B;var F=R+C*V,H=0,Y=0;d>V?(H=R+C*V/2,Y=H):(H=R+D,Y=F-D),n.setItemLayout(O,{angle:V,startAngle:H,endAngle:Y,clockwise:_,cx:l,cy:u,r0:f,r:b?Fe(B,w,[f,c]):c}),R=F}),P<M_&&m)if(P<=.001){var E=I/m;n.each(i,function(B,O){if(!isNaN(B)){var V=n.getItemLayout(O);V.angle=E;var F=0,H=0;E<d?(F=h+C*(O+1/2)*E,H=F):(F=h+C*O*E+D,H=h+C*(O+1)*E-D),V.startAngle=F,V.endAngle=H}})}else x=P/k,R=h,n.each(i,function(B,O){if(!isNaN(B)){var V=n.getItemLayout(O),F=V.angle===g?g:B*x,H=0,Y=0;F<d?(H=R+C*F/2,Y=H):(H=R+D,Y=R+C*F-D),V.startAngle=H,V.endAngle=Y,R+=C*F}})})}var HD=Ie();function Ul(r){return{seriesType:r,reset:function(e,t){var a=t.findComponents({mainType:"legend"});if(!(!a||!a.length)){var n=e.getData();n.filterSelf(function(i){for(var o=n.getName(i),s=0;s<a.length;s++)if(!a[s].isSelected(o))return!1;return!0})}}}}var nz=Math.PI/180;function L_(r,e,t,a,n,i,o,s,l,u){if(r.length<2)return;function c(p){for(var g=p.rB,m=g*g,y=0;y<p.list.length;y++){var x=p.list[y],_=Math.abs(x.label.y-t),b=a+x.len,S=b*b,w=Math.sqrt(Math.abs((1-_*_/m)*S)),C=e+(w+x.len2)*n,A=C-x.label.x,D=x.targetTextWidth-A*n;jD(x,D,!0),x.label.x=C}}function f(p){for(var g={list:[],maxY:0},m={list:[],maxY:0},y=0;y<p.length;y++)if(p[y].labelAlignTo==="none"){var x=p[y],_=x.label.y>t?m:g,b=Math.abs(x.label.y-t);if(b>=_.maxY){var S=x.label.x-e-x.len2*n,w=a+x.len,C=Math.abs(S)<w?Math.sqrt(b*b/(1-S*S/w/w)):w;_.rB=C,_.maxY=b}_.list.push(x)}c(g),c(m)}for(var h=r.length,v=0;v<h;v++)if(r[v].position==="outer"&&r[v].labelAlignTo==="labelLine"){var d=r[v].label.x-u;r[v].linePoints[1][0]+=d,r[v].label.x=u}hD(r,l,l+o)&&f(r)}function iz(r,e,t,a,n,i,o,s){for(var l=[],u=[],c=Number.MAX_VALUE,f=-Number.MAX_VALUE,h=0;h<r.length;h++){var v=r[h].label;Bv(r[h])||(v.x<e?(c=Math.min(c,v.x),l.push(r[h])):(f=Math.max(f,v.x),u.push(r[h])))}for(var h=0;h<r.length;h++){var d=r[h];if(!Bv(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var v=d.label,p=d.linePoints,g=void 0;d.labelAlignTo==="edge"?v.x<e?g=p[2][0]-d.labelDistance-o-d.edgeDistance:g=o+n-d.edgeDistance-p[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?v.x<e?g=c-o-d.bleedMargin:g=o+n-f-d.bleedMargin:v.x<e?g=v.x-o-d.bleedMargin:g=o+n-v.x-d.bleedMargin,d.targetTextWidth=g,jD(d,g)}}L_(u,e,t,a,1,n,i,o,s,f),L_(l,e,t,a,-1,n,i,o,s,c);for(var h=0;h<r.length;h++){var d=r[h];if(!Bv(d)&&d.linePoints){var v=d.label,p=d.linePoints,m=d.labelAlignTo==="edge",y=v.style.padding,x=y?y[1]+y[3]:0,_=v.style.backgroundColor?0:x,b=d.rect.width+_,S=p[1][0]-p[2][0];m?v.x<e?p[2][0]=o+d.edgeDistance+b+d.labelDistance:p[2][0]=o+n-d.edgeDistance-b-d.labelDistance:(v.x<e?p[2][0]=v.x+d.labelDistance:p[2][0]=v.x-d.labelDistance,p[1][0]=p[2][0]+S),p[1][1]=p[2][1]=v.y}}}function jD(r,e,t){if(t===void 0&&(t=!1),r.labelStyleWidth==null){var a=r.label,n=a.style,i=r.rect,o=n.backgroundColor,s=n.padding,l=s?s[1]+s[3]:0,u=n.overflow,c=i.width+(o?0:l);if(e<c||t){var f=i.height;if(u&&u.match("break")){a.setStyle("backgroundColor",null),a.setStyle("width",e-l);var h=a.getBoundingRect();a.setStyle("width",Math.ceil(h.width)),a.setStyle("backgroundColor",o)}else{var v=e-l,d=e<c?v:t?v>r.unconstrainedWidth?null:v:null;a.setStyle("width",d)}var p=a.getBoundingRect();i.width=p.width;var g=(a.style.margin||0)+2.1;i.height=p.height+g,i.y-=(i.height-f)/2}}}function Bv(r){return r.position==="center"}function oz(r){var e=r.getData(),t=[],a,n,i=!1,o=(r.get("minShowLabelAngle")||0)*nz,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,c=s.x,f=s.y,h=s.height;function v(S){S.ignore=!0}function d(S){if(!S.ignore)return!0;for(var w in S.states)if(S.states[w].ignore===!1)return!0;return!1}e.each(function(S){var w=e.getItemGraphicEl(S),C=w.shape,A=w.getTextContent(),D=w.getTextGuideLine(),M=e.getItemModel(S),I=M.getModel("label"),P=I.get("position")||M.get(["emphasis","label","position"]),k=I.get("distanceToLabelLine"),R=I.get("alignTo"),E=X(I.get("edgeDistance"),u),B=I.get("bleedMargin"),O=M.getModel("labelLine"),V=O.get("length");V=X(V,u);var F=O.get("length2");if(F=X(F,u),Math.abs(C.endAngle-C.startAngle)<o){L(A.states,v),A.ignore=!0,D&&(L(D.states,v),D.ignore=!0);return}if(d(A)){var H=(C.startAngle+C.endAngle)/2,Y=Math.cos(H),Z=Math.sin(H),J,te,xe,de;a=C.cx,n=C.cy;var oe=P==="inside"||P==="inner";if(P==="center")J=C.cx,te=C.cy,de="center";else{var ae=(oe?(C.r+C.r0)/2*Y:C.r*Y)+a,$=(oe?(C.r+C.r0)/2*Z:C.r*Z)+n;if(J=ae+Y*3,te=$+Z*3,!oe){var j=ae+Y*(V+l-C.r),K=$+Z*(V+l-C.r),Se=j+(Y<0?-1:1)*F,me=K;R==="edge"?J=Y<0?c+E:c+u-E:J=Se+(Y<0?-k:k),te=me,xe=[[ae,$],[j,K],[Se,me]]}de=oe?"center":R==="edge"?Y>0?"right":"left":Y>0?"left":"right"}var we=Math.PI,he=0,Ve=I.get("rotate");if(ke(Ve))he=Ve*(we/180);else if(P==="center")he=0;else if(Ve==="radial"||Ve===!0){var ct=Y<0?-H+we:-H;he=ct}else if(Ve==="tangential"&&P!=="outside"&&P!=="outer"){var it=Math.atan2(Y,Z);it<0&&(it=we*2+it);var wt=Z>0;wt&&(it=we+it),he=it-we}if(i=!!he,A.x=J,A.y=te,A.rotation=he,A.setStyle({verticalAlign:"middle"}),oe){A.setStyle({align:de});var Oe=A.states.select;Oe&&(Oe.x+=A.x,Oe.y+=A.y)}else{var Dt=A.getBoundingRect().clone();Dt.applyTransform(A.getComputedTransform());var Lr=(A.style.margin||0)+2.1;Dt.y-=Lr/2,Dt.height+=Lr,t.push({label:A,labelLine:D,position:P,len:V,len2:F,minTurnAngle:O.get("minTurnAngle"),maxSurfaceAngle:O.get("maxSurfaceAngle"),surfaceNormal:new ge(Y,Z),linePoints:xe,textAlign:de,labelDistance:k,labelAlignTo:R,edgeDistance:E,bleedMargin:B,rect:Dt,unconstrainedWidth:Dt.width,labelStyleWidth:A.style.width})}w.setTextConfig({inside:oe})}}),!i&&r.get("avoidLabelOverlap")&&iz(t,a,n,l,u,h,c,f);for(var p=0;p<t.length;p++){var g=t[p],m=g.label,y=g.labelLine,x=isNaN(m.x)||isNaN(m.y);if(m){m.setStyle({align:g.textAlign}),x&&(L(m.states,v),m.ignore=!0);var _=m.states.select;_&&(_.x+=m.x,_.y+=m.y)}if(y){var b=g.linePoints;x||!b?(L(y.states,v),y.ignore=!0):(uD(b,g.minTurnAngle),LB(b,g.surfaceNormal,g.maxSurfaceAngle),y.setShape({points:b}),m.__hostTarget.textGuideLineConfig={anchor:new ge(b[0][0],b[0][1])})}}}var sz=(function(r){z(e,r);function e(t,a,n){var i=r.call(this)||this;i.z2=2;var o=new Pe;return i.setTextContent(o),i.updateData(t,a,n,!0),i}return e.prototype.updateData=function(t,a,n,i){var o=this,s=t.hostModel,l=t.getItemModel(a),u=l.getModel("emphasis"),c=t.getItemLayout(a),f=G(ui(l.getModel("itemStyle"),c,!0),c);if(isNaN(f.startAngle)){o.setShape(f);return}if(i){o.setShape(f);var h=s.getShallow("animationType");s.ecModel.ssr?(Je(o,{scaleX:0,scaleY:0},s,{dataIndex:a,isFrom:!0}),o.originX=f.cx,o.originY=f.cy):h==="scale"?(o.shape.r=c.r0,Je(o,{shape:{r:c.r}},s,a)):n!=null?(o.setShape({startAngle:n,endAngle:n}),Je(o,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},s,a)):(o.shape.endAngle=c.startAngle,Ee(o,{shape:{endAngle:c.endAngle}},s,a))}else Gr(o),Ee(o,{shape:f},s,a);o.useStyle(t.getItemVisual(a,"style")),It(o,l);var v=(c.startAngle+c.endAngle)/2,d=s.get("selectedOffset"),p=Math.cos(v)*d,g=Math.sin(v)*d,m=l.getShallow("cursor");m&&o.attr("cursor",m),this._updateLabel(s,t,a),o.ensureState("emphasis").shape=G({r:c.r+(u.get("scale")&&u.get("scaleSize")||0)},ui(u.getModel("itemStyle"),c)),G(o.ensureState("select"),{x:p,y:g,shape:ui(l.getModel(["select","itemStyle"]),c)}),G(o.ensureState("blur"),{shape:ui(l.getModel(["blur","itemStyle"]),c)});var y=o.getTextGuideLine(),x=o.getTextContent();y&&G(y.ensureState("select"),{x:p,y:g}),G(x.ensureState("select"),{x:p,y:g}),et(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,a,n){var i=this,o=a.getItemModel(n),s=o.getModel("labelLine"),l=a.getItemVisual(n,"style"),u=l&&l.fill,c=l&&l.opacity;Pt(i,bt(o),{labelFetcher:a.hostModel,labelDataIndex:n,inheritColor:u,defaultOpacity:c,defaultText:t.getFormattedLabel(n,"normal")||a.getName(n)});var f=i.getTextContent();i.setTextConfig({position:null,rotation:null}),f.attr({z2:10});var h=t.get(["label","position"]);if(h!=="outside"&&h!=="outer")i.removeTextGuideLine();else{var v=this.getTextGuideLine();v||(v=new Zt,this.setTextGuideLine(v)),Gm(this,Hm(o),{stroke:u,opacity:ia(s.get(["lineStyle","opacity"]),c,1)})}},e})(Yt),lz=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,a,n,i){var o=t.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var c=o.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f<o.count();++f)c=o.getItemLayout(f);c&&(u=c.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&t.get("showEmptyCircle")){var h=HD(t),v=new Yt({shape:G(GD(t,n),h)});v.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=v,l.add(v)}o.diff(s).add(function(d){var p=new sz(o,d,u);o.setItemGraphicEl(d,p),l.add(p)}).update(function(d,p){var g=s.getItemGraphicEl(p);g.updateData(o,d,u),g.off("click"),l.add(g),o.setItemGraphicEl(d,g)}).remove(function(d){var p=s.getItemGraphicEl(d);ul(p,t,d)}).execute(),oz(t),t.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,a){var n=a.getData(),i=n.getItemLayout(0);if(i){var o=t[0]-i.cx,s=t[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},e.type="pie",e})($e);function Zo(r,e,t){e=W(e)&&{coordDimensions:e}||G({encodeDefine:r.getEncode()},e);var a=r.getSource(),n=Fl(a,e).dimensions,i=new jt(n,r);return i.initData(a,t),i}var Yl=(function(){function r(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return r.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},r.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},r.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},r.prototype.getItemVisual=function(e,t){var a=this._getDataWithEncodedVisual();return a.getItemVisual(e,t)},r})(),uz=Ie(),cz=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Yl(Q(this.getData,this),Q(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return Zo(this,{coordDimensions:["value"],encodeDefaulter:ve(_m,this)})},e.prototype.getDataParams=function(t){var a=this.getData(),n=uz(a),i=n.seats;if(!i){var o=[];a.each(a.mapDimension("value"),function(l){o.push(l)}),i=n.seats=e3(o,a.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,t);return s.percent=i[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){xi(t,"labelLine",["show"]);var a=t.labelLine,n=t.emphasis.labelLine;a.show=a.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e})(Ze);function fz(r){return{seriesType:r,reset:function(e,t){var a=e.getData();a.filterSelf(function(n){var i=a.mapDimension("value"),o=a.get(i,n);return!(ke(o)&&!isNaN(o)&&o<0)})}}}function hz(r){r.registerChartView(lz),r.registerSeriesModel(cz),uA("pie",r.registerAction),r.registerLayout(ve(az,"pie")),r.registerProcessor(Ul("pie")),r.registerProcessor(fz("pie"))}var vz=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,a){return Ba(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(t,a,n){return n.point(a.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e})(Ze),WD=4,dz=(function(){function r(){}return r})(),pz=(function(r){z(e,r);function e(t){var a=r.call(this,t)||this;return a._off=0,a.hoverDataIdx=-1,a}return e.prototype.getDefaultShape=function(){return new dz},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,a){var n=a.points,i=a.size,o=this.symbolProxy,s=o.shape,l=t.getContext?t.getContext():t,u=l&&i[0]<WD,c=this.softClipShape,f;if(u){this._ctx=l;return}for(this._ctx=null,f=this._off;f<n.length;){var h=n[f++],v=n[f++];isNaN(h)||isNaN(v)||c&&!c.contain(h,v)||(s.x=h-i[0]/2,s.y=v-i[1]/2,s.width=i[0],s.height=i[1],o.buildPath(t,s,!0))}this.incremental&&(this._off=f,this.notClear=!0)},e.prototype.afterBrush=function(){var t=this.shape,a=t.points,n=t.size,i=this._ctx,o=this.softClipShape,s;if(i){for(s=this._off;s<a.length;){var l=a[s++],u=a[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||i.fillRect(l-n[0]/2,u-n[1]/2,n[0],n[1])}this.incremental&&(this._off=s,this.notClear=!0)}},e.prototype.findDataIndex=function(t,a){for(var n=this.shape,i=n.points,o=n.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=i.length/2-1;u>=0;u--){var c=u*2,f=i[c]-s/2,h=i[c+1]-l/2;if(t>=f&&a>=h&&t<=f+s&&a<=h+l)return u}return-1},e.prototype.contain=function(t,a){var n=this.transformCoordToLocal(t,a),i=this.getBoundingRect();if(t=n[0],a=n[1],i.contain(t,a)){var o=this.hoverDataIdx=this.findDataIndex(t,a);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var a=this.shape,n=a.points,i=a.size,o=i[0],s=i[1],l=1/0,u=1/0,c=-1/0,f=-1/0,h=0;h<n.length;){var v=n[h++],d=n[h++];l=Math.min(v,l),c=Math.max(v,c),u=Math.min(d,u),f=Math.max(d,f)}t=this._rect=new ye(l-o/2,u-s/2,c-l+o,f-u+s)}return t},e})(Ce),gz=(function(){function r(){this.group=new ue}return r.prototype.updateData=function(e,t){this._clear();var a=this._create();a.setShape({points:e.getLayout("points")}),this._setCommon(a,e,t)},r.prototype.updateLayout=function(e){var t=e.getLayout("points");this.group.eachChild(function(a){if(a.startIndex!=null){var n=(a.endIndex-a.startIndex)*2,i=a.startIndex*4*2;t=new Float32Array(t.buffer,i,n)}a.setShape("points",t),a.reset()})},r.prototype.incrementalPrepareUpdate=function(e){this._clear()},r.prototype.incrementalUpdate=function(e,t,a){var n=this._newAdded[0],i=t.getLayout("points"),o=n&&n.shape.points;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+i.length);l.set(o),l.set(i,s),n.endIndex=e.end,n.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=e.start,u.endIndex=e.end,u.incremental=!0,u.setShape({points:i}),this._setCommon(u,t,a)}},r.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},r.prototype._create=function(){var e=new pz({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},r.prototype._setCommon=function(e,t,a){var n=t.hostModel;a=a||{};var i=t.getVisual("symbolSize");e.setShape("size",i instanceof Array?i:[i,i]),e.softClipShape=a.clipShape||null,e.symbolProxy=lt(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<WD;e.useStyle(n.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=t.getVisual("style"),l=s&&s.fill;l&&e.setColor(l);var u=ce(e);u.seriesIndex=n.seriesIndex,e.on("mousemove",function(c){u.dataIndex=null;var f=e.hoverDataIdx;f>=0&&(u.dataIndex=f+(e.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r})(),mz=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,a,n){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,a,n){this._symbolDraw.incrementalUpdate(t,a.getData(),{clipShape:this._getClipShape(a)}),this._finished=t.end===a.getData().count()},e.prototype.updateTransform=function(t,a,n){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=$l("").reset(t,a,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){if(t.get("clip",!0)){var a=t.coordinateSystem;return a&&a.getArea&&a.getArea(.1)}},e.prototype._updateSymbolDraw=function(t,a){var n=this._symbolDraw,i=a.pipelineContext,o=i.large;return(!n||o!==this._isLargeDraw)&&(n&&n.remove(),n=this._symbolDraw=o?new gz:new jl,this._isLargeDraw=o,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(t,a){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e})($e),yz=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e})(De),Zp=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",st).models[0]},e.type="cartesian2dAxis",e})(De);ut(Zp,Gl);var $D={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},xz=pe({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},$D),Zm=pe({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},$D),_z=pe({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Zm),bz=ie({logBase:10},Zm);const UD={category:xz,value:Zm,time:_z,log:bz};var Sz={value:1,category:1,time:1,log:1};function Io(r,e,t,a){L(Sz,function(n,i){var o=pe(pe({},UD[i],!0),a,!0),s=(function(l){z(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=e+"Axis."+i,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var h=fl(this),v=h?jo(c):{},d=f.getTheme();pe(c,d.get(i+"Axis")),pe(c,this.getDefaultOption()),c.type=I_(c),h&&gn(c,v,h)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=Hp.createByAxisModel(this))},u.prototype.getCategories=function(c){var f=this.option;if(f.type==="category")return c?f.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+"Axis."+i,u.defaultOption=o,u})(t);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(e+"Axis",I_)}function I_(r){return r.type||(r.data?"category":"value")}var wz=(function(){function r(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return r.prototype.getAxis=function(e){return this._axes[e]},r.prototype.getAxes=function(){return U(this._dimList,function(e){return this._axes[e]},this)},r.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),ze(this.getAxes(),function(t){return t.scale.type===e})},r.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},r})(),qp=["x","y"];function P_(r){return r.type==="interval"||r.type==="time"}var Tz=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=qp,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,a=this.getAxis("y").scale;if(!(!P_(t)||!P_(a))){var n=t.getExtent(),i=a.getExtent(),o=this.dataToPoint([n[0],i[0]]),s=this.dataToPoint([n[1],i[1]]),l=n[1]-n[0],u=i[1]-i[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,f=(s[1]-o[1])/u,h=o[0]-n[0]*c,v=o[1]-i[0]*f,d=this._transform=[c,0,0,f,h,v];this._invTransform=Oo([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var a=this.getAxis("x"),n=this.getAxis("y");return a.contain(a.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,a){var n=this.dataToPoint(t),i=this.dataToPoint(a),o=this.getArea(),s=new ye(n[0],n[1],i[0]-n[0],i[1]-n[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,a,n){n=n||[];var i=t[0],o=t[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return Lt(n,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(i,a)),n[1]=l.toGlobalCoord(l.dataToCoord(o,a)),n},e.prototype.clampData=function(t,a){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,o=n.getExtent(),s=i.getExtent(),l=n.parse(t[0]),u=i.parse(t[1]);return a=a||[],a[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),a[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),a},e.prototype.pointToData=function(t,a){var n=[];if(this._invTransform)return Lt(n,t,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(t[0]),a),n[1]=o.coordToData(o.toLocalCoord(t[1]),a),n},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(t){t=t||0;var a=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(a[0],a[1])-t,o=Math.min(n[0],n[1])-t,s=Math.max(a[0],a[1])-i+t,l=Math.max(n[0],n[1])-o+t;return new ye(i,o,s,l)},e})(wz),Cz=(function(r){z(e,r);function e(t,a,n,i,o){var s=r.call(this,t,a,n)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var a=this.getExtent();return a[0]=this.toGlobalCoord(a[0]),a[1]=this.toGlobalCoord(a[1]),t&&a[0]>a[1]&&a.reverse(),a},e.prototype.pointToData=function(t,a){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),a)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e})(jr);function Kp(r,e,t){t=t||{};var a=r.coordinateSystem,n=e.axis,i={},o=n.getAxesOnZeroOf()[0],s=n.position,l=o?"onZero":s,u=n.dim,c=a.getRect(),f=[c.x,c.x+c.width,c.y,c.y+c.height],h={left:0,right:1,top:0,bottom:1,onZero:2},v=e.get("offset")||0,d=u==="x"?[f[2]-v,f[3]+v]:[f[0]-v,f[1]+v];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));d[h.onZero]=Math.max(Math.min(p,d[1]),d[0])}i.position=[u==="y"?d[h[l]]:f[0],u==="x"?d[h[l]]:f[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=g[s],i.labelOffset=o?d[h[s]]-d[h.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Ct(t.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var m=e.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-m:m,i.z2=1,i}function k_(r){return r.get("coordinateSystem")==="cartesian2d"}function R_(r){var e={xAxisModel:null,yAxisModel:null};return L(e,function(t,a){var n=a.replace(/Model$/,""),i=r.getReferringComponents(n,st).models[0];e[a]=i}),e}var zv=Math.log;function YD(r,e,t){var a=ka.prototype,n=a.getTicks.call(t),i=a.getTicks.call(t,!0),o=n.length-1,s=a.getInterval.call(t),l=qA(r,e),u=l.extent,c=l.fixMin,f=l.fixMax;if(r.type==="log"){var h=zv(r.base);u=[zv(u[0])/h,zv(u[1])/h]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:f});var v=a.getExtent.call(r);c&&(u[0]=v[0]),f&&(u[1]=v[1]);var d=a.getInterval.call(r),p=u[0],g=u[1];if(c&&f)d=(g-p)/o;else if(c)for(g=u[0]+d*o;g<u[1]&&isFinite(g)&&isFinite(u[1]);)d=wv(d),g=u[0]+d*o;else if(f)for(p=u[1]-d*o;p>u[0]&&isFinite(p)&&isFinite(u[0]);)d=wv(d),p=u[1]-d*o;else{var m=r.getTicks().length-1;m>o&&(d=wv(d));var y=d*o;g=Math.ceil(u[1]/d)*d,p=tt(g-y),p<0&&u[0]>=0?(p=0,g=tt(y)):g>0&&u[1]<=0&&(g=0,p=-tt(y))}var x=(n[0].value-i[0].value)/s,_=(n[o].value-i[o].value)/s;a.setExtent.call(r,p+d*x,g+d*_),a.setInterval.call(r,d),(x||_)&&a.setNiceExtent.call(r,p+d,g-d)}var Az=(function(){function r(e,t,a){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=qp,this._initCartesian(e,t,a),this.model=e}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(e,t){var a=this._axesMap;this._updateScale(e,this.model);function n(o){var s,l=Me(o),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var h=+l[f],v=o[h],d=v.model,p=v.scale;jp(p)&&d.get("alignTicks")&&d.get("interval")==null?c.push(v):(Mo(p,d),jp(p)&&(s=v))}c.length&&(s||(s=c.pop(),Mo(s.scale,s.model)),L(c,function(g){YD(g.scale,g.model,s.scale)}))}}n(a.x),n(a.y);var i={};L(a.x,function(o){E_(a,"y",o,i)}),L(a.y,function(o){E_(a,"x",o,i)}),this.resize(this.model,t)},r.prototype.resize=function(e,t,a){var n=e.getBoxLayoutParams(),i=!a&&e.get("containLabel"),o=gt(n,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(L(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=oB(u);if(c){var f=u.isHorizontal()?"height":"width",h=u.model.get(["axisLabel","margin"]);o[f]-=c[f]+h,u.position==="top"?o.y+=c.height+h:u.position==="left"&&(o.x+=c.width+h)}}}),l()),L(this._coordsList,function(u){u.calcAffineTransform()});function l(){L(s,function(u){var c=u.isHorizontal(),f=c?[0,o.width]:[0,o.height],h=u.inverse?1:0;u.setExtent(f[h],f[1-h]),Dz(u,c?o.x:o.y)})}},r.prototype.getAxis=function(e,t){var a=this._axesMap[e];if(a!=null)return a[t||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var a="x"+e+"y"+t;return this._coordsMap[a]}se(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var n=0,i=this._coordsList;n<i.length;n++)if(i[n].getAxis("x").index===e||i[n].getAxis("y").index===t)return i[n]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(e,t,a){var n=this._findConvertTarget(t);return n.cartesian?n.cartesian.dataToPoint(a):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(a)):null},r.prototype.convertFromPixel=function(e,t,a){var n=this._findConvertTarget(t);return n.cartesian?n.cartesian.pointToData(a):n.axis?n.axis.coordToData(n.axis.toLocalCoord(a)):null},r.prototype._findConvertTarget=function(e){var t=e.seriesModel,a=e.xAxisModel||t&&t.getReferringComponents("xAxis",st).models[0],n=e.yAxisModel||t&&t.getReferringComponents("yAxis",st).models[0],i=e.gridModel,o=this._coordsList,s,l;if(t)s=t.coordinateSystem,_e(o,s)<0&&(s=null);else if(a&&n)s=this.getCartesian(a.componentIndex,n.componentIndex);else if(a)l=this.getAxis("x",a.componentIndex);else if(n)l=this.getAxis("y",n.componentIndex);else if(i){var u=i.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},r.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},r.prototype._initCartesian=function(e,t,a){var n=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(t.eachComponent("xAxis",u("x"),this),t.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,L(s.x,function(c,f){L(s.y,function(h,v){var d="x"+f+"y"+v,p=new Tz(d);p.master=n,p.model=e,n._coordsMap[d]=p,n._coordsList.push(p),p.addAxis(c),p.addAxis(h)})});function u(c){return function(f,h){if(Vv(f,e)){var v=f.get("position");c==="x"?v!=="top"&&v!=="bottom"&&(v=o.bottom?"top":"bottom"):v!=="left"&&v!=="right"&&(v=o.left?"right":"left"),o[v]=!0;var d=new Cz(c,ah(f),[0,0],f.get("type"),v),p=d.type==="category";d.onBand=p&&f.get("boundaryGap"),d.inverse=f.get("inverse"),f.axis=d,d.model=f,d.grid=i,d.index=h,i._axesList.push(d),s[c][h]=d,l[c]++}}}},r.prototype._updateScale=function(e,t){L(this._axesList,function(n){if(n.scale.setExtent(1/0,-1/0),n.type==="category"){var i=n.model.get("categorySortInfo");n.scale.setSortInfo(i)}}),e.eachSeries(function(n){if(k_(n)){var i=R_(n),o=i.xAxisModel,s=i.yAxisModel;if(!Vv(o,t)||!Vv(s,t))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=n.getData(),c=l.getAxis("x"),f=l.getAxis("y");a(u,c),a(u,f)}},this);function a(n,i){L(Kc(n,i.dim),function(o){i.scale.unionExtentFromData(n,o)})}},r.prototype.getTooltipAxes=function(e){var t=[],a=[];return L(this.getCartesians(),function(n){var i=e!=null&&e!=="auto"?n.getAxis(e):n.getBaseAxis(),o=n.getOtherAxis(i);_e(t,i)<0&&t.push(i),_e(a,o)<0&&a.push(o)}),{baseAxes:t,otherAxes:a}},r.create=function(e,t){var a=[];return e.eachComponent("grid",function(n,i){var o=new r(n,e,t);o.name="grid_"+i,o.resize(n,t,!0),n.coordinateSystem=o,a.push(o)}),e.eachSeries(function(n){if(k_(n)){var i=R_(n),o=i.xAxisModel,s=i.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;n.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),a},r.dimensions=qp,r})();function Vv(r,e){return r.getCoordSysModel()===e}function E_(r,e,t,a){t.getAxesOnZeroOf=function(){return i?[i]:[]};var n=r[e],i,o=t.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)N_(n[l])&&(i=n[l]);else for(var u in n)if(n.hasOwnProperty(u)&&N_(n[u])&&!a[c(n[u])]){i=n[u];break}i&&(a[c(i)]=!0);function c(f){return f.dim+"_"+f.index}}function N_(r){return r&&r.type!=="category"&&r.type!=="time"&&iB(r)}function Dz(r,e){var t=r.getExtent(),a=t[0]+t[1];r.toGlobalCoord=r.dim==="x"?function(n){return n+e}:function(n){return a-n+e},r.toLocalCoord=r.dim==="x"?function(n){return n-e}:function(n){return a-n+e}}var an=Math.PI,Wt=(function(){function r(e,t){this.group=new ue,this.opt=t,this.axisModel=e,ie(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var a=new ue({x:t.position[0],y:t.position[1],rotation:t.rotation});a.updateTransform(),this._transformGroup=a}return r.prototype.hasBuilder=function(e){return!!O_[e]},r.prototype.add=function(e){O_[e](this.opt,this.axisModel,this.group,this._transformGroup)},r.prototype.getGroup=function(){return this.group},r.innerTextLayout=function(e,t,a){var n=cT(t-e),i,o;return il(n)?(o=a>0?"top":"bottom",i="center"):il(n-an)?(o=a>0?"bottom":"top",i="center"):(o="middle",n>0&&n<an?i=a>0?"right":"left":i=a>0?"left":"right"),{rotation:n,textAlign:i,textVerticalAlign:o}},r.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},r.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},r})(),O_={axisLine:function(r,e,t,a){var n=e.get(["axisLine","show"]);if(n==="auto"&&r.handleAutoShown&&(n=r.handleAutoShown("axisLine")),!!n){var i=e.axis.getExtent(),o=a.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(Lt(s,s,o),Lt(l,l,o));var c=G({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new yt({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});Co(f.shape,f.style.lineWidth),f.anid="line",t.add(f);var h=e.get(["axisLine","symbol"]);if(h!=null){var v=e.get(["axisLine","symbolSize"]);q(h)&&(h=[h,h]),(q(v)||ke(v))&&(v=[v,v]);var d=Ii(e.get(["axisLine","symbolOffset"])||0,v),p=v[0],g=v[1];L([{rotate:r.rotation+Math.PI/2,offset:d[0],r:0},{rotate:r.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(m,y){if(h[y]!=="none"&&h[y]!=null){var x=lt(h[y],-p/2,-g/2,p,g,c.stroke,!0),_=m.r+m.offset,b=u?l:s;x.attr({rotation:m.rotate,x:b[0]+_*Math.cos(r.rotation),y:b[1]-_*Math.sin(r.rotation),silent:!0,z2:11}),t.add(x)}})}}},axisTickLabel:function(r,e,t,a){var n=Iz(t,a,e,r),i=kz(t,a,e,r);if(Lz(e,i,n),Pz(t,a,e,r.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=cD(U(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));vD(o)}},axisName:function(r,e,t,a){var n=Ct(r.axisName,e.get("name"));if(n){var i=e.get("nameLocation"),o=r.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),c=u[0]>u[1]?-1:1,f=[i==="start"?u[0]-c*l:i==="end"?u[1]+c*l:(u[0]+u[1])/2,z_(i)?r.labelOffset+o*l:0],h,v=e.get("nameRotate");v!=null&&(v=v*an/180);var d;z_(i)?h=Wt.innerTextLayout(r.rotation,v??r.rotation,o):(h=Mz(r.rotation,i,v||0,u),d=r.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(h.rotation)),!isFinite(d)&&(d=null)));var p=s.getFont(),g=e.get("nameTruncate",!0)||{},m=g.ellipsis,y=Ct(r.nameTruncateMaxWidth,g.maxWidth,d),x=new Pe({x:f[0],y:f[1],rotation:h.rotation,silent:Wt.isLabelSilent(e),style:Xe(s,{text:n,font:p,overflow:"truncate",width:y,ellipsis:m,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||h.textAlign,verticalAlign:s.get("verticalAlign")||h.textVerticalAlign}),z2:1});if(Mi({el:x,componentModel:e,itemName:n}),x.__fullText=n,x.anid="name",e.get("triggerEvent")){var _=Wt.makeAxisEventDataBase(e);_.targetType="axisName",_.name=n,ce(x).eventData=_}a.add(x),x.updateTransform(),t.add(x),x.decomposeTransform()}}};function Mz(r,e,t,a){var n=cT(t-r),i,o,s=a[0]>a[1],l=e==="start"&&!s||e!=="start"&&s;return il(n-an/2)?(o=l?"bottom":"top",i="center"):il(n-an*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",n<an*1.5&&n>an/2?i=l?"left":"right":i=l?"right":"left"),{rotation:n,textAlign:i,textVerticalAlign:o}}function Lz(r,e,t){if(!KA(r.axis)){var a=r.get(["axisLabel","showMinLabel"]),n=r.get(["axisLabel","showMaxLabel"]);e=e||[],t=t||[];var i=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=t[0],c=t[1],f=t[t.length-1],h=t[t.length-2];a===!1?(fr(i),fr(u)):B_(i,o)&&(a?(fr(o),fr(c)):(fr(i),fr(u))),n===!1?(fr(s),fr(f)):B_(l,s)&&(n?(fr(l),fr(h)):(fr(s),fr(f)))}}function fr(r){r&&(r.ignore=!0)}function B_(r,e){var t=r&&r.getBoundingRect().clone(),a=e&&e.getBoundingRect().clone();if(!(!t||!a)){var n=Mf([]);return Di(n,n,-r.rotation),t.applyTransform(wa([],n,r.getLocalTransform())),a.applyTransform(wa([],n,e.getLocalTransform())),t.intersect(a)}}function z_(r){return r==="middle"||r==="center"}function XD(r,e,t,a,n){for(var i=[],o=[],s=[],l=0;l<r.length;l++){var u=r[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=t,e&&(Lt(o,o,e),Lt(s,s,e));var c=new yt({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:a,z2:2,autoBatch:!0,silent:!0});Co(c.shape,c.style.lineWidth),c.anid=n+"_"+r[l].tickValue,i.push(c)}return i}function Iz(r,e,t,a){var n=t.axis,i=t.getModel("axisTick"),o=i.get("show");if(o==="auto"&&a.handleAutoShown&&(o=a.handleAutoShown("axisTick")),!(!o||n.scale.isBlank())){for(var s=i.getModel("lineStyle"),l=a.tickDirection*i.get("length"),u=n.getTicksCoords(),c=XD(u,e.transform,l,ie(s.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}),"ticks"),f=0;f<c.length;f++)r.add(c[f]);return c}}function Pz(r,e,t,a){var n=t.axis,i=t.getModel("minorTick");if(!(!i.get("show")||n.scale.isBlank())){var o=n.getMinorTicksCoords();if(o.length)for(var s=i.getModel("lineStyle"),l=a*i.get("length"),u=ie(s.getLineStyle(),ie(t.getModel("axisTick").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})),c=0;c<o.length;c++)for(var f=XD(o[c],e.transform,l,u,"minorticks_"+c),h=0;h<f.length;h++)r.add(f[h])}}function kz(r,e,t,a){var n=t.axis,i=Ct(a.axisLabelShow,t.get(["axisLabel","show"]));if(!(!i||n.scale.isBlank())){var o=t.getModel("axisLabel"),s=o.get("margin"),l=n.getViewLabels(),u=(Ct(a.labelRotate,o.get("rotate"))||0)*an/180,c=Wt.innerTextLayout(a.rotation,u,a.labelDirection),f=t.getCategories&&t.getCategories(!0),h=[],v=Wt.isLabelSilent(t),d=t.get("triggerEvent");return L(l,function(p,g){var m=n.scale.type==="ordinal"?n.scale.getRawOrdinalNumber(p.tickValue):p.tickValue,y=p.formattedLabel,x=p.rawLabel,_=o;if(f&&f[m]){var b=f[m];se(b)&&b.textStyle&&(_=new Ge(b.textStyle,o,t.ecModel))}var S=_.getTextColor()||t.get(["axisLine","lineStyle","color"]),w=n.dataToCoord(m),C=_.getShallow("align",!0)||c.textAlign,A=fe(_.getShallow("alignMinLabel",!0),C),D=fe(_.getShallow("alignMaxLabel",!0),C),M=_.getShallow("verticalAlign",!0)||_.getShallow("baseline",!0)||c.textVerticalAlign,I=fe(_.getShallow("verticalAlignMinLabel",!0),M),P=fe(_.getShallow("verticalAlignMaxLabel",!0),M),k=new Pe({x:w,y:a.labelOffset+a.labelDirection*s,rotation:c.rotation,silent:v,z2:10+(p.level||0),style:Xe(_,{text:y,align:g===0?A:g===l.length-1?D:C,verticalAlign:g===0?I:g===l.length-1?P:M,fill:ne(S)?S(n.type==="category"?x:n.type==="value"?m+"":m,g):S})});if(k.anid="label_"+m,Mi({el:k,componentModel:t,itemName:y,formatterParamsExtra:{isTruncated:function(){return k.isTruncated},value:x,tickIndex:g}}),d){var R=Wt.makeAxisEventDataBase(t);R.targetType="axisLabel",R.value=x,R.tickIndex=g,n.type==="category"&&(R.dataIndex=m),ce(k).eventData=R}e.add(k),k.updateTransform(),h.push(k),r.add(k),k.decomposeTransform()}),h}}function Rz(r,e){var t={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return Ez(t,r,e),t.seriesInvolved&&Oz(t,r),t}function Ez(r,e,t){var a=e.getComponent("tooltip"),n=e.getComponent("axisPointer"),i=n.get("link",!0)||[],o=[];L(t.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=_l(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var c=s.model,f=c.getModel("tooltip",a);if(L(s.getAxes(),ve(p,!1,null)),s.getTooltipAxes&&a&&f.get("show")){var h=f.get("trigger")==="axis",v=f.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(f.get(["axisPointer","axis"]));(h||v)&&L(d.baseAxes,ve(p,v?"cross":!0,h)),v&&L(d.otherAxes,ve(p,"cross",!1))}function p(g,m,y){var x=y.model.getModel("axisPointer",n),_=x.get("show");if(!(!_||_==="auto"&&!g&&!Jp(x))){m==null&&(m=x.get("triggerTooltip")),x=g?Nz(y,f,n,e,g,m):x;var b=x.get("snap"),S=x.get("triggerEmphasis"),w=_l(y.model),C=m||b||y.type==="category",A=r.axesInfo[w]={key:w,axis:y,coordSys:s,axisPointerModel:x,triggerTooltip:m,triggerEmphasis:S,involveSeries:C,snap:b,useHandle:Jp(x),seriesModels:[],linkGroup:null};u[w]=A,r.seriesInvolved=r.seriesInvolved||C;var D=Bz(i,y);if(D!=null){var M=o[D]||(o[D]={axesInfo:{}});M.axesInfo[w]=A,M.mapper=i[D].mapper,A.linkGroup=M}}}})}function Nz(r,e,t,a,n,i){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};L(s,function(h){l[h]=le(o.get(h))}),l.snap=r.type!=="category"&&!!i,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),n==="cross"){var c=o.get(["label","show"]);if(u.show=c??!0,!i){var f=l.lineStyle=o.get("crossStyle");f&&ie(u,f.textStyle)}}return r.model.getModel("axisPointer",new Ge(l,t,a))}function Oz(r,e){e.eachSeries(function(t){var a=t.coordinateSystem,n=t.get(["tooltip","trigger"],!0),i=t.get(["tooltip","show"],!0);!a||n==="none"||n===!1||n==="item"||i===!1||t.get(["axisPointer","show"],!0)===!1||L(r.coordSysAxesInfo[_l(a.model)],function(o){var s=o.axis;a.getAxis(s.dim)===s&&(o.seriesModels.push(t),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=t.getData().count())})})}function Bz(r,e){for(var t=e.model,a=e.dim,n=0;n<r.length;n++){var i=r[n]||{};if(Fv(i[a+"AxisId"],t.id)||Fv(i[a+"AxisIndex"],t.componentIndex)||Fv(i[a+"AxisName"],t.name))return n}}function Fv(r,e){return r==="all"||W(r)&&_e(r,e)>=0||r===e}function zz(r){var e=qm(r);if(e){var t=e.axisPointerModel,a=e.axis.scale,n=t.option,i=t.get("status"),o=t.get("value");o!=null&&(o=a.parse(o));var s=Jp(t);i==null&&(n.status=s?"show":"hide");var l=a.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),n.value=o,s&&(n.status=e.axis.scale.isBlank()?"hide":"show")}}function qm(r){var e=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[_l(r)]}function Vz(r){var e=qm(r);return e&&e.axisPointerModel}function Jp(r){return!!r.get(["handle","show"])}function _l(r){return r.type+"||"+r.id}var V_={},Ri=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n,i){this.axisPointerClass&&zz(t),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,n,!0)},e.prototype.updateAxisPointer=function(t,a,n,i){this._doUpdateAxisPointerClass(t,n,!1)},e.prototype.remove=function(t,a){var n=this._axisPointer;n&&n.remove(a)},e.prototype.dispose=function(t,a){this._disposeAxisPointer(a),r.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,a,n){var i=e.getAxisPointerClass(this.axisPointerClass);if(i){var o=Vz(t);o?(this._axisPointer||(this._axisPointer=new i)).render(t,o,a,n):this._disposeAxisPointer(a)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,a){V_[t]=a},e.getAxisPointerClass=function(t){return t&&V_[t]},e.type="axis",e})(Qe),Qp=Ie();function ZD(r,e,t,a){var n=t.axis;if(!n.scale.isBlank()){var i=t.getModel("splitArea"),o=i.getModel("areaStyle"),s=o.get("color"),l=a.coordinateSystem.getRect(),u=n.getTicksCoords({tickModel:i,clamp:!0});if(u.length){var c=s.length,f=Qp(r).splitAreaColors,h=re(),v=0;if(f)for(var d=0;d<u.length;d++){var p=f.get(u[d].tickValue);if(p!=null){v=(p+(c-1)*d)%c;break}}var g=n.toGlobalCoord(u[0].coord),m=o.getAreaStyle();s=W(s)?s:[s];for(var d=1;d<u.length;d++){var y=n.toGlobalCoord(u[d].coord),x=void 0,_=void 0,b=void 0,S=void 0;n.isHorizontal()?(x=g,_=l.y,b=y-x,S=l.height,g=x+b):(x=l.x,_=g,b=l.width,S=y-_,g=_+S);var w=u[d-1].tickValue;w!=null&&h.set(w,v),e.add(new Le({anid:w!=null?"area_"+w:null,shape:{x,y:_,width:b,height:S},style:ie({fill:s[v]},m),autoBatch:!0,silent:!0})),v=(v+1)%c}Qp(r).splitAreaColors=h}}}function qD(r){Qp(r).splitAreaColors=null}var Fz=["axisLine","axisTickLabel","axisName"],Gz=["splitArea","splitLine","minorSplitLine"],KD=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="CartesianAxisPointer",t}return e.prototype.render=function(t,a,n,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new ue,this.group.add(this._axisGroup),!!t.get("show")){var s=t.getCoordSysModel(),l=Kp(s,t),u=new Wt(t,G({handleAutoShown:function(f){for(var h=s.coordinateSystem.getCartesians(),v=0;v<h.length;v++)if(jp(h[v].getOtherAxis(t.axis).scale))return!0;return!1}},l));L(Fz,u.add,u),this._axisGroup.add(u.getGroup()),L(Gz,function(f){t.get([f,"show"])&&Hz[f](this,this._axisGroup,t,s)},this);var c=i&&i.type==="changeAxisOrder"&&i.isInitSort;c||Ol(o,this._axisGroup,t),r.prototype.render.call(this,t,a,n,i)}},e.prototype.remove=function(){qD(this)},e.type="cartesianAxis",e})(Ri),Hz={splitLine:function(r,e,t,a){var n=t.axis;if(!n.scale.isBlank()){var i=t.getModel("splitLine"),o=i.getModel("lineStyle"),s=o.get("color"),l=i.get("showMinLine")!==!1,u=i.get("showMaxLine")!==!1;s=W(s)?s:[s];for(var c=a.coordinateSystem.getRect(),f=n.isHorizontal(),h=0,v=n.getTicksCoords({tickModel:i}),d=[],p=[],g=o.getLineStyle(),m=0;m<v.length;m++){var y=n.toGlobalCoord(v[m].coord);if(!(m===0&&!l||m===v.length-1&&!u)){var x=v[m].tickValue;f?(d[0]=y,d[1]=c.y,p[0]=y,p[1]=c.y+c.height):(d[0]=c.x,d[1]=y,p[0]=c.x+c.width,p[1]=y);var _=h++%s.length,b=new yt({anid:x!=null?"line_"+x:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:p[0],y2:p[1]},style:ie({stroke:s[_]},g),silent:!0});Co(b.shape,g.lineWidth),e.add(b)}}}},minorSplitLine:function(r,e,t,a){var n=t.axis,i=t.getModel("minorSplitLine"),o=i.getModel("lineStyle"),s=a.coordinateSystem.getRect(),l=n.isHorizontal(),u=n.getMinorTicksCoords();if(u.length)for(var c=[],f=[],h=o.getLineStyle(),v=0;v<u.length;v++)for(var d=0;d<u[v].length;d++){var p=n.toGlobalCoord(u[v][d].coord);l?(c[0]=p,c[1]=s.y,f[0]=p,f[1]=s.y+s.height):(c[0]=s.x,c[1]=p,f[0]=s.x+s.width,f[1]=p);var g=new yt({anid:"minor_line_"+u[v][d].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:f[0],y2:f[1]},style:h,silent:!0});Co(g.shape,h.lineWidth),e.add(g)}},splitArea:function(r,e,t,a){ZD(r,e,t,a)}},JD=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="xAxis",e})(KD),jz=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=JD.type,t}return e.type="yAxis",e})(KD),Wz=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="grid",t}return e.prototype.render=function(t,a){this.group.removeAll(),t.get("show")&&this.group.add(new Le({shape:t.coordinateSystem.getRect(),style:ie({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e})(Qe),F_={offset:0};function QD(r){r.registerComponentView(Wz),r.registerComponentModel(yz),r.registerCoordinateSystem("cartesian2d",Az),Io(r,"x",Zp,F_),Io(r,"y",Zp,F_),r.registerComponentView(JD),r.registerComponentView(jz),r.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function $z(r){Te(QD),r.registerSeriesModel(vz),r.registerChartView(mz),r.registerLayout($l("scatter"))}function Uz(r){r.eachSeriesByType("radar",function(e){var t=e.getData(),a=[],n=e.coordinateSystem;if(n){var i=n.getIndicatorAxes();L(i,function(o,s){t.each(t.mapDimension(i[s].dim),function(l,u){a[u]=a[u]||[];var c=n.dataToPoint(l,s);a[u][s]=G_(c)?c:H_(n)})}),t.each(function(o){var s=P5(a[o],function(l){return G_(l)})||H_(n);a[o].push(s.slice()),t.setItemLayout(o,a[o])})}})}function G_(r){return!isNaN(r[0])&&!isNaN(r[1])}function H_(r){return[r.cx,r.cy]}function Yz(r){var e=r.polar;if(e){W(e)||(e=[e]);var t=[];L(e,function(a,n){a.indicator?(a.type&&!a.shape&&(a.shape=a.type),r.radar=r.radar||[],W(r.radar)||(r.radar=[r.radar]),r.radar.push(a)):t.push(a)}),r.polar=t}L(r.series,function(a){a&&a.type==="radar"&&a.polarIndex&&(a.radarIndex=a.polarIndex)})}var Xz=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=t.coordinateSystem,o=this.group,s=t.getData(),l=this._data;function u(h,v){var d=h.getItemVisual(v,"symbol")||"circle";if(d!=="none"){var p=Yo(h.getItemVisual(v,"symbolSize")),g=lt(d,-1,-1,2,2),m=h.getItemVisual(v,"symbolRotate")||0;return g.attr({style:{strokeNoScale:!0},z2:100,scaleX:p[0]/2,scaleY:p[1]/2,rotation:m*Math.PI/180||0}),g}}function c(h,v,d,p,g,m){d.removeAll();for(var y=0;y<v.length-1;y++){var x=u(p,g);x&&(x.__dimIdx=y,h[y]?(x.setPosition(h[y]),Li[m?"initProps":"updateProps"](x,{x:v[y][0],y:v[y][1]},t,g)):x.setPosition(v[y]),d.add(x))}}function f(h){return U(h,function(v){return[i.cx,i.cy]})}s.diff(l).add(function(h){var v=s.getItemLayout(h);if(v){var d=new Xt,p=new Zt,g={shape:{points:v}};d.shape.points=f(v),p.shape.points=f(v),Je(d,g,t,h),Je(p,g,t,h);var m=new ue,y=new ue;m.add(p),m.add(d),m.add(y),c(p.shape.points,v,y,s,h,!0),s.setItemGraphicEl(h,m)}}).update(function(h,v){var d=l.getItemGraphicEl(v),p=d.childAt(0),g=d.childAt(1),m=d.childAt(2),y={shape:{points:s.getItemLayout(h)}};y.shape.points&&(c(p.shape.points,y.shape.points,m,s,h,!1),Gr(g),Gr(p),Ee(p,y,t),Ee(g,y,t),s.setItemGraphicEl(h,d))}).remove(function(h){o.remove(l.getItemGraphicEl(h))}).execute(),s.eachItemGraphicEl(function(h,v){var d=s.getItemModel(v),p=h.childAt(0),g=h.childAt(1),m=h.childAt(2),y=s.getItemVisual(v,"style"),x=y.fill;o.add(h),p.useStyle(ie(d.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:x})),It(p,d,"lineStyle"),It(g,d,"areaStyle");var _=d.getModel("areaStyle"),b=_.isEmpty()&&_.parentModel.isEmpty();g.ignore=b,L(["emphasis","select","blur"],function(C){var A=d.getModel([C,"areaStyle"]),D=A.isEmpty()&&A.parentModel.isEmpty();g.ensureState(C).ignore=D&&b}),g.useStyle(ie(_.getAreaStyle(),{fill:x,opacity:.7,decal:y.decal}));var S=d.getModel("emphasis"),w=S.getModel("itemStyle").getItemStyle();m.eachChild(function(C){if(C instanceof At){var A=C.style;C.useStyle(G({image:A.image,x:A.x,y:A.y,width:A.width,height:A.height},y))}else C.useStyle(y),C.setColor(x),C.style.strokeNoScale=!0;var D=C.ensureState("emphasis");D.style=le(w);var M=s.getStore().get(s.getDimensionIndex(C.__dimIdx),v);(M==null||isNaN(M))&&(M=""),Pt(C,bt(d),{labelFetcher:s.hostModel,labelDataIndex:v,labelDimIndex:C.__dimIdx,defaultText:M,inheritColor:x,defaultOpacity:y.opacity})}),et(h,S.get("focus"),S.get("blurScope"),S.get("disabled"))}),this._data=s},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e})($e),Zz=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Yl(Q(this.getData,this),Q(this.getRawData,this))},e.prototype.getInitialData=function(t,a){return Zo(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,a,n){var i=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(t),u=l===""?this.name:l,c=KC(this,t);return St("section",{header:u,sortBlocks:!0,blocks:U(s,function(f){var h=i.get(i.mapDimension(f.dim),t);return St("nameValue",{markerType:"subItem",markerColor:c,name:f.name,value:h,sortParam:h})})})},e.prototype.getTooltipPosition=function(t){if(t!=null){for(var a=this.getData(),n=this.coordinateSystem,i=a.getValues(U(n.dimensions,function(u){return a.mapDimension(u)}),t),o=0,s=i.length;o<s;o++)if(!isNaN(i[o])){var l=n.getIndicatorAxes();return n.coordToPoint(l[o].dataToCoord(i[o]),o)}}},e.type="series.radar",e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e})(Ze),gs=UD.value;function Ou(r,e){return ie({show:e},r)}var qz=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){var t=this.get("boundaryGap"),a=this.get("splitNumber"),n=this.get("scale"),i=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),c=this.get(["axisName","formatter"]),f=this.get("axisNameGap"),h=this.get("triggerEvent"),v=U(this.get("indicator")||[],function(d){d.max!=null&&d.max>0&&!d.min?d.min=0:d.min!=null&&d.min<0&&!d.max&&(d.max=0);var p=l;d.color!=null&&(p=ie({color:d.color},l));var g=pe(le(d),{boundaryGap:t,splitNumber:a,scale:n,axisLine:i,axisTick:o,axisLabel:s,name:d.text,showName:u,nameLocation:"end",nameGap:f,nameTextStyle:p,triggerEvent:h},!1);if(q(c)){var m=g.name;g.name=c.replace("{value}",m??"")}else ne(c)&&(g.name=c(g.name,g));var y=new Ge(g,null,this.ecModel);return ut(y,Gl.prototype),y.mainType="radar",y.componentIndex=this.componentIndex,y},this);this._indicatorModels=v},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:pe({lineStyle:{color:"#bbb"}},gs.axisLine),axisLabel:Ou(gs.axisLabel,!1),axisTick:Ou(gs.axisTick,!1),splitLine:Ou(gs.splitLine,!0),splitArea:Ou(gs.splitArea,!0),indicator:[]},e})(De),Kz=["axisLine","axisTickLabel","axisName"],Jz=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=this.group;i.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var a=t.coordinateSystem,n=a.getIndicatorAxes(),i=U(n,function(o){var s=o.model.get("showName")?o.name:"",l=new Wt(o.model,{axisName:s,position:[a.cx,a.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});L(i,function(o){L(Kz,o.add,o),this.group.add(o.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var a=t.coordinateSystem,n=a.getIndicatorAxes();if(!n.length)return;var i=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),f=s.get("show"),h=l.get("color"),v=u.get("color"),d=W(h)?h:[h],p=W(v)?v:[v],g=[],m=[];function y(R,E,B){var O=B%E.length;return R[O]=R[O]||[],O}if(i==="circle")for(var x=n[0].getTicksCoords(),_=a.cx,b=a.cy,S=0;S<x.length;S++){if(c){var w=y(g,d,S);g[w].push(new Oa({shape:{cx:_,cy:b,r:x[S].coord}}))}if(f&&S<x.length-1){var w=y(m,p,S);m[w].push(new Rl({shape:{cx:_,cy:b,r0:x[S].coord,r:x[S+1].coord}}))}}else for(var C,A=U(n,function(R,E){var B=R.getTicksCoords();return C=C==null?B.length-1:Math.min(B.length-1,C),U(B,function(O){return a.coordToPoint(O.coord,E)})}),D=[],S=0;S<=C;S++){for(var M=[],I=0;I<n.length;I++)M.push(A[I][S]);if(M[0]&&M.push(M[0].slice()),c){var w=y(g,d,S);g[w].push(new Zt({shape:{points:M}}))}if(f&&D){var w=y(m,p,S-1);m[w].push(new Xt({shape:{points:M.concat(D)}}))}D=M.slice().reverse()}var P=l.getLineStyle(),k=u.getAreaStyle();L(m,function(R,E){this.group.add(br(R,{style:ie({stroke:"none",fill:p[E%p.length]},k),silent:!0}))},this),L(g,function(R,E){this.group.add(br(R,{style:ie({fill:"none",stroke:d[E%d.length]},P),silent:!0}))},this)},e.type="radar",e})(Qe),Qz=(function(r){z(e,r);function e(t,a,n){var i=r.call(this,t,a,n)||this;return i.type="value",i.angle=0,i.name="",i}return e})(jr),eV=(function(){function r(e,t,a){this.dimensions=[],this._model=e,this._indicatorAxes=U(e.getIndicatorModels(),function(n,i){var o="indicator_"+i,s=new Qz(o,new ka);return s.name=n.get("name"),s.model=n,n.axis=s,this.dimensions.push(o),s},this),this.resize(e,a)}return r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(e,t){var a=this._indicatorAxes[t];return this.coordToPoint(a.dataToCoord(e),t)},r.prototype.coordToPoint=function(e,t){var a=this._indicatorAxes[t],n=a.angle,i=this.cx+e*Math.cos(n),o=this.cy-e*Math.sin(n);return[i,o]},r.prototype.pointToData=function(e){var t=e[0]-this.cx,a=e[1]-this.cy,n=Math.sqrt(t*t+a*a);t/=n,a/=n;for(var i=Math.atan2(-a,t),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var c=this._indicatorAxes[u],f=Math.abs(i-c.angle);f<o&&(s=c,l=u,o=f)}return[l,+(s&&s.coordToData(n))]},r.prototype.resize=function(e,t){var a=e.get("center"),n=t.getWidth(),i=t.getHeight(),o=Math.min(n,i)/2;this.cx=X(a[0],n),this.cy=X(a[1],i),this.startAngle=e.get("startAngle")*Math.PI/180;var s=e.get("radius");(q(s)||ke(s))&&(s=[0,s]),this.r0=X(s[0],o),this.r=X(s[1],o),L(this._indicatorAxes,function(l,u){l.setExtent(this.r0,this.r);var c=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;c=Math.atan2(Math.sin(c),Math.cos(c)),l.angle=c},this)},r.prototype.update=function(e,t){var a=this._indicatorAxes,n=this._model;L(a,function(s){s.scale.setExtent(1/0,-1/0)}),e.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||e.getComponent("radar",s.get("radarIndex"))!==n)){var u=s.getData();L(a,function(c){c.scale.unionExtentFromData(u,u.mapDimension(c.dim))})}},this);var i=n.get("splitNumber"),o=new ka;o.setExtent(0,i),o.setInterval(1),L(a,function(s,l){YD(s.scale,s.model,o)})},r.prototype.convertToPixel=function(e,t,a){return console.warn("Not implemented."),null},r.prototype.convertFromPixel=function(e,t,a){return console.warn("Not implemented."),null},r.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},r.create=function(e,t){var a=[];return e.eachComponent("radar",function(n){var i=new r(n,e,t);a.push(i),n.coordinateSystem=i}),e.eachSeriesByType("radar",function(n){n.get("coordinateSystem")==="radar"&&(n.coordinateSystem=a[n.get("radarIndex")||0])}),a},r.dimensions=[],r})();function tV(r){r.registerCoordinateSystem("radar",eV),r.registerComponentModel(qz),r.registerComponentView(Jz),r.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each(function(a){t.setItemVisual(a,"legendIcon","roundRect")}),t.setVisual("legendIcon","roundRect")}})}function rV(r){Te(tV),r.registerChartView(Xz),r.registerSeriesModel(Zz),r.registerLayout(Uz),r.registerProcessor(Ul("radar")),r.registerPreprocessor(Yz)}var j_="\0_ec_interaction_mutex";function aV(r,e,t){var a=Km(r);a[e]=t}function nV(r,e,t){var a=Km(r),n=a[e];n===t&&(a[e]=null)}function W_(r,e){return!!Km(r)[e]}function Km(r){return r[j_]||(r[j_]={})}va({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},nt);var Xl=(function(r){z(e,r);function e(t){var a=r.call(this)||this;a._zr=t;var n=Q(a._mousedownHandler,a),i=Q(a._mousemoveHandler,a),o=Q(a._mouseupHandler,a),s=Q(a._mousewheelHandler,a),l=Q(a._pinchHandler,a);return a.enable=function(u,c){this.disable(),this._opt=ie(le(c)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(t.on("mousedown",n),t.on("mousemove",i),t.on("mouseup",o)),(u===!0||u==="scale"||u==="zoom")&&(t.on("mousewheel",s),t.on("pinch",l))},a.disable=function(){t.off("mousedown",n),t.off("mousemove",i),t.off("mouseup",o),t.off("mousewheel",s),t.off("pinch",l)},a}return e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype.setPointerChecker=function(t){this.pointerChecker=t},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!p0(t)){for(var a=t.target;a;){if(a.draggable)return;a=a.__hostTarget||a.parent}var n=t.offsetX,i=t.offsetY;this.pointerChecker&&this.pointerChecker(t,n,i)&&(this._x=n,this._y=i,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){if(!(!this._dragging||!mc("moveOnMouseMove",t,this._opt)||t.gestureEvent==="pinch"||W_(this._zr,"globalPan"))){var a=t.offsetX,n=t.offsetY,i=this._x,o=this._y,s=a-i,l=n-o;this._x=a,this._y=n,this._opt.preventDefaultMouseMove&&Da(t.event),eM(this,"pan","moveOnMouseMove",t,{dx:s,dy:l,oldX:i,oldY:o,newX:a,newY:n,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){p0(t)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(t){var a=mc("zoomOnMouseWheel",t,this._opt),n=mc("moveOnMouseWheel",t,this._opt),i=t.wheelDelta,o=Math.abs(i),s=t.offsetX,l=t.offsetY;if(!(i===0||!a&&!n)){if(a){var u=o>3?1.4:o>1?1.2:1.1,c=i>0?u:1/u;Gv(this,"zoom","zoomOnMouseWheel",t,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(n){var f=Math.abs(i),h=(i>0?1:-1)*(f>3?.4:f>1?.15:.05);Gv(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:h,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!W_(this._zr,"globalPan")){var a=t.pinchScale>1?1.1:1/1.1;Gv(this,"zoom",null,t,{scale:a,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e})(Ar);function Gv(r,e,t,a,n){r.pointerChecker&&r.pointerChecker(a,n.originX,n.originY)&&(Da(a.event),eM(r,e,t,a,n))}function eM(r,e,t,a,n){n.isAvailableBehavior=Q(mc,null,t,a),r.trigger(e,n)}function mc(r,e,t){var a=t[r];return!r||a&&(!q(a)||e.event[a+"Key"])}function Jm(r,e,t){var a=r.target;a.x+=e,a.y+=t,a.dirty()}function Qm(r,e,t,a){var n=r.target,i=r.zoomLimit,o=r.zoom=r.zoom||1;if(o*=e,i){var s=i.min||0,l=i.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/r.zoom;r.zoom=o,n.x-=(t-n.x)*(u-1),n.y-=(a-n.y)*(u-1),n.scaleX*=u,n.scaleY*=u,n.dirty()}var iV={axisPointer:1,tooltip:1,brush:1};function ih(r,e,t){var a=e.getComponentByElement(r.topTarget),n=a&&a.coordinateSystem;return a&&a!==t&&!iV.hasOwnProperty(a.mainType)&&n&&n.model!==t}function tM(r){if(q(r)){var e=new DOMParser;r=e.parseFromString(r,"text/xml")}var t=r;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var Hv,rf={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},$_=Me(rf),af={"alignment-baseline":"textBaseline","stop-color":"stopColor"},U_=Me(af),oV=(function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(e,t){t=t||{};var a=tM(e);this._defsUsePending=[];var n=new ue;this._root=n;var i=[],o=a.getAttribute("viewBox")||"",s=parseFloat(a.getAttribute("width")||t.width),l=parseFloat(a.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),ar(a,n,null,!0,!1);for(var u=a.firstChild;u;)this._parseNode(u,n,i,null,!1,!1),u=u.nextSibling;uV(this._defs,this._defsUsePending),this._defsUsePending=[];var c,f;if(o){var h=oh(o);h.length>=4&&(c={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(c&&s!=null&&l!=null&&(f=aM(c,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var v=n;n=new ue,n.add(v),v.scaleX=v.scaleY=f.scale,v.x=f.x,v.y=f.y}return!t.ignoreRootClip&&s!=null&&l!=null&&n.setClipPath(new Le({shape:{x:0,y:0,width:s,height:l}})),{root:n,width:s,height:l,viewBoxRect:c,viewBoxTransform:f,named:i}},r.prototype._parseNode=function(e,t,a,n,i,o){var s=e.nodeName.toLowerCase(),l,u=n;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=t;else{if(!i){var c=Hv[s];if(c&&ee(Hv,s)){l=c.call(this,e,t);var f=e.getAttribute("name");if(f){var h={name:f,namedFrom:null,svgNodeTagLower:s,el:l};a.push(h),s==="g"&&(u=h)}else n&&a.push({name:n.name,namedFrom:n,svgNodeTagLower:s,el:l});t.add(l)}}var v=Y_[s];if(v&&ee(Y_,s)){var d=v.call(this,e),p=e.getAttribute("id");p&&(this._defs[p]=d)}}if(l&&l.isGroup)for(var g=e.firstChild;g;)g.nodeType===1?this._parseNode(g,l,a,u,i,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},r.prototype._parseText=function(e,t){var a=new To({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});hr(t,a),ar(e,a,this._defsUsePending,!1,!1),sV(a,t);var n=a.style,i=n.fontSize;i&&i<9&&(n.fontSize=9,a.scaleX*=i/9,a.scaleY*=i/9);var o=(n.fontSize||n.fontFamily)&&[n.fontStyle,n.fontWeight,(n.fontSize||12)+"px",n.fontFamily||"sans-serif"].join(" ");n.font=o;var s=a.getBoundingRect();return this._textX+=s.width,t.add(a),a},r.internalField=(function(){Hv={g:function(e,t){var a=new ue;return hr(t,a),ar(e,a,this._defsUsePending,!1,!1),a},rect:function(e,t){var a=new Le;return hr(t,a),ar(e,a,this._defsUsePending,!1,!1),a.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),a.silent=!0,a},circle:function(e,t){var a=new Oa;return hr(t,a),ar(e,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),a.silent=!0,a},line:function(e,t){var a=new yt;return hr(t,a),ar(e,a,this._defsUsePending,!1,!1),a.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),a.silent=!0,a},ellipse:function(e,t){var a=new zf;return hr(t,a),ar(e,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),a.silent=!0,a},polygon:function(e,t){var a=e.getAttribute("points"),n;a&&(n=q_(a));var i=new Xt({shape:{points:n||[]},silent:!0});return hr(t,i),ar(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var a=e.getAttribute("points"),n;a&&(n=q_(a));var i=new Zt({shape:{points:n||[]},silent:!0});return hr(t,i),ar(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var a=new At;return hr(t,a),ar(e,a,this._defsUsePending,!1,!1),a.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),a.silent=!0,a},text:function(e,t){var a=e.getAttribute("x")||"0",n=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(a)+parseFloat(i),this._textY=parseFloat(n)+parseFloat(o);var s=new ue;return hr(t,s),ar(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var a=e.getAttribute("x"),n=e.getAttribute("y");a!=null&&(this._textX=parseFloat(a)),n!=null&&(this._textY=parseFloat(n));var i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new ue;return hr(t,s),ar(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(e,t){var a=e.getAttribute("d")||"",n=$T(a);return hr(t,n),ar(e,n,this._defsUsePending,!1,!1),n.silent=!0,n}}})(),r})(),Y_={lineargradient:function(r){var e=parseInt(r.getAttribute("x1")||"0",10),t=parseInt(r.getAttribute("y1")||"0",10),a=parseInt(r.getAttribute("x2")||"10",10),n=parseInt(r.getAttribute("y2")||"0",10),i=new Nl(e,t,a,n);return X_(r,i),Z_(r,i),i},radialgradient:function(r){var e=parseInt(r.getAttribute("cx")||"0",10),t=parseInt(r.getAttribute("cy")||"0",10),a=parseInt(r.getAttribute("r")||"0",10),n=new ZT(e,t,a);return X_(r,n),Z_(r,n),n}};function X_(r,e){var t=r.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function Z_(r,e){for(var t=r.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var a=t.getAttribute("offset"),n=void 0;a&&a.indexOf("%")>0?n=parseInt(a,10)/100:a?n=parseFloat(a):n=0;var i={};rM(t,i,i);var o=i.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:n,color:o})}t=t.nextSibling}}function hr(r,e){r&&r.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),ie(e.__inheritedStyle,r.__inheritedStyle))}function q_(r){for(var e=oh(r),t=[],a=0;a<e.length;a+=2){var n=parseFloat(e[a]),i=parseFloat(e[a+1]);t.push([n,i])}return t}function ar(r,e,t,a,n){var i=e,o=i.__inheritedStyle=i.__inheritedStyle||{},s={};r.nodeType===1&&(hV(r,e),rM(r,o,s),a||vV(r,o,s)),i.style=i.style||{},o.fill!=null&&(i.style.fill=K_(i,"fill",o.fill,t)),o.stroke!=null&&(i.style.stroke=K_(i,"stroke",o.stroke,t)),L(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(i.style[l]=parseFloat(o[l]))}),L(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(i.style[l]=o[l])}),n&&(i.__selfStyle=s),o.lineDash&&(i.style.lineDash=U(oh(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(i.invisible=!0),o.display==="none"&&(i.ignore=!0)}function sV(r,e){var t=e.__selfStyle;if(t){var a=t.textBaseline,n=a;!a||a==="auto"||a==="baseline"?n="alphabetic":a==="before-edge"||a==="text-before-edge"?n="top":a==="after-edge"||a==="text-after-edge"?n="bottom":(a==="central"||a==="mathematical")&&(n="middle"),r.style.textBaseline=n}var i=e.__inheritedStyle;if(i){var o=i.textAlign,s=o;o&&(o==="middle"&&(s="center"),r.style.textAlign=s)}}var lV=/^url\(\s*#(.*?)\)/;function K_(r,e,t,a){var n=t&&t.match(lV);if(n){var i=Or(n[1]);a.push([r,e,i]);return}return t==="none"&&(t=null),t}function uV(r,e){for(var t=0;t<e.length;t++){var a=e[t];a[0].style[a[1]]=r[a[2]]}}var cV=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function oh(r){return r.match(cV)||[]}var fV=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,jv=Math.PI/180;function hV(r,e){var t=r.getAttribute("transform");if(t){t=t.replace(/,/g," ");var a=[],n=null;t.replace(fV,function(f,h,v){return a.push(h,v),""});for(var i=a.length-1;i>0;i-=2){var o=a[i],s=a[i-1],l=oh(o);switch(n=n||or(),s){case"translate":la(n,n,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Xg(n,n,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Di(n,n,-parseFloat(l[0])*jv,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*jv);wa(n,[1,0,u,1,0,0],n);break;case"skewY":var c=Math.tan(parseFloat(l[0])*jv);wa(n,[1,c,0,1,0,0],n);break;case"matrix":n[0]=parseFloat(l[0]),n[1]=parseFloat(l[1]),n[2]=parseFloat(l[2]),n[3]=parseFloat(l[3]),n[4]=parseFloat(l[4]),n[5]=parseFloat(l[5]);break}}e.setLocalTransform(n)}}var J_=/([^\s:;]+)\s*:\s*([^:;]+)/g;function rM(r,e,t){var a=r.getAttribute("style");if(a){J_.lastIndex=0;for(var n;(n=J_.exec(a))!=null;){var i=n[1],o=ee(rf,i)?rf[i]:null;o&&(e[o]=n[2]);var s=ee(af,i)?af[i]:null;s&&(t[s]=n[2])}}}function vV(r,e,t){for(var a=0;a<$_.length;a++){var n=$_[a],i=r.getAttribute(n);i!=null&&(e[rf[n]]=i)}for(var a=0;a<U_.length;a++){var n=U_[a],i=r.getAttribute(n);i!=null&&(t[af[n]]=i)}}function aM(r,e){var t=e.width/r.width,a=e.height/r.height,n=Math.min(t,a);return{scale:n,x:-(r.x+r.width/2)*n+(e.x+e.width/2),y:-(r.y+r.height/2)*n+(e.y+e.height/2)}}function dV(r,e){var t=new oV;return t.parse(r,e)}var pV=re(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),gV=(function(){function r(e,t){this.type="geoSVG",this._usedGraphicMap=re(),this._freedGraphics=[],this._mapName=e,this._parsedXML=tM(t)}return r.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var t=yV(e.named),a=t.regions,n=t.regionsMap;this._regions=a,this._regionsMap=n}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},r.prototype._buildGraphic=function(e){var t,a;try{t=e&&dV(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},a=t.root,$t(a!=null)}catch(g){throw new Error(`Invalid svg format
17
- `+g.message)}var n=new ue;n.add(a),n.isGeoSVGGraphicRoot=!0;var i=t.width,o=t.height,s=t.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,c=void 0,f=void 0,h=void 0;if(i!=null?(u=0,f=i):s&&(u=s.x,f=s.width),o!=null?(c=0,h=o):s&&(c=s.y,h=s.height),u==null||c==null){var v=a.getBoundingRect();u==null&&(u=v.x,f=v.width),c==null&&(c=v.y,h=v.height)}l=this._boundingRect=new ye(u,c,f,h)}if(s){var d=aM(s,l);a.scaleX=a.scaleY=d.scale,a.x=d.x,a.y=d.y}n.setClipPath(new Le({shape:l.plain()}));var p=[];return L(t.named,function(g){pV.get(g.svgNodeTagLower)!=null&&(p.push(g),mV(g.el))}),{root:n,boundingRect:l,named:p}},r.prototype.useGraphic=function(e){var t=this._usedGraphicMap,a=t.get(e);return a||(a=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,a),a)},r.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,a=t.get(e);a&&(t.removeKey(e),this._freedGraphics.push(a))},r})();function mV(r){r.silent=!1,r.isGroup&&r.traverse(function(e){e.silent=!1})}function yV(r){var e=[],t=re();return L(r,function(a){if(a.namedFrom==null){var n=new hB(a.name,a.el);e.push(n),t.set(a.name,n)}}),{regions:e,regionsMap:t}}var eg=[126,25],Q_="南海诸岛",Yn=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]];for(var $n=0;$n<Yn.length;$n++)for(var qi=0;qi<Yn[$n].length;qi++)Yn[$n][qi][0]/=10.5,Yn[$n][qi][1]/=-10.5/.75,Yn[$n][qi][0]+=eg[0],Yn[$n][qi][1]+=eg[1];function xV(r,e){if(r==="china"){for(var t=0;t<e.length;t++)if(e[t].name===Q_)return;e.push(new QA(Q_,U(Yn,function(a){return{type:"polygon",exterior:a}}),eg))}}var _V={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function bV(r,e){if(r==="china"){var t=_V[e.name];if(t){var a=e.getCenter();a[0]+=t[0]/10.5,a[1]+=-t[1]/(10.5/.75),e.setCenter(a)}}}var SV=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function wV(r,e){r==="china"&&e.name==="台湾"&&e.geometries.push({type:"polygon",exterior:SV[0]})}var TV="name",CV=(function(){function r(e,t,a){this.type="geoJSON",this._parsedMap=re(),this._mapName=e,this._specialAreas=a,this._geoJSON=DV(t)}return r.prototype.load=function(e,t){t=t||TV;var a=this._parsedMap.get(t);if(!a){var n=this._parseToRegions(t);a=this._parsedMap.set(t,{regions:n,boundingRect:AV(n)})}var i=re(),o=[];return L(a.regions,function(s){var l=s.name;e&&ee(e,l)&&(s=s.cloneShallow(l=e[l])),o.push(s),i.set(l,s)}),{regions:o,boundingRect:a.boundingRect||new ye(0,0,0,0),regionsMap:i}},r.prototype._parseToRegions=function(e){var t=this._mapName,a=this._geoJSON,n;try{n=a?dB(a,e):[]}catch(i){throw new Error(`Invalid geoJson format
18
- `+i.message)}return xV(t,n),L(n,function(i){var o=i.name;bV(t,i),wV(t,i);var s=this._specialAreas&&this._specialAreas[o];s&&i.transformTo(s.left,s.top,s.width,s.height)},this),n},r.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},r})();function AV(r){for(var e,t=0;t<r.length;t++){var a=r[t].getBoundingRect();e=e||a.clone(),e.union(a)}return e}function DV(r){return q(r)?typeof JSON<"u"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var ms=re();const Ra={registerMap:function(r,e,t){if(e.svg){var a=new gV(r,e.svg);ms.set(r,a)}else{var n=e.geoJson||e.geoJSON;n&&!e.features?t=e.specialAreas:n=e;var a=new CV(r,n,t);ms.set(r,a)}},getGeoResource:function(r){return ms.get(r)},getMapForUser:function(r){var e=ms.get(r);return e&&e.type==="geoJSON"&&e.getMapForUser()},load:function(r,e,t){var a=ms.get(r);if(a)return a.load(e,t)}};var ey=["rect","circle","line","ellipse","polygon","polyline","path"],MV=re(ey),LV=re(ey.concat(["g"])),IV=re(ey.concat(["g"])),nM=Ie();function Bu(r){var e=r.getItemStyle(),t=r.get("areaColor");return t!=null&&(e.fill=t),e}function eb(r){var e=r.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var iM=(function(){function r(e){var t=new ue;this.uid=Go("ec_map_draw"),this._controller=new Xl(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new ue),t.add(this._svgGroup=new ue)}return r.prototype.draw=function(e,t,a,n,i){var o=e.mainType==="geo",s=e.getData&&e.getData();o&&t.eachComponent({mainType:"series",subType:"map"},function(m){!s&&m.getHostGeoModel()===e&&(s=m.getData())});var l=e.coordinateSystem,u=this._regionsGroup,c=this.group,f=l.getTransformInfo(),h=f.raw,v=f.roam,d=!u.childAt(0)||i;d?(c.x=v.x,c.y=v.y,c.scaleX=v.scaleX,c.scaleY=v.scaleY,c.dirty()):Ee(c,v,e);var p=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,g={api:a,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:p,isGeo:o,transformInfoRaw:h};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(e,t,a),this._updateMapSelectHandler(e,u,a,n)},r.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=re(),a=re(),n=this._regionsGroup,i=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function c(v,d){return d&&(v=d(v)),v&&[v[0]*i.scaleX+i.x,v[1]*i.scaleY+i.y]}function f(v){for(var d=[],p=!u&&l&&l.project,g=0;g<v.length;++g){var m=c(v[g],p);m&&d.push(m)}return d}function h(v){return{shape:{points:f(v)}}}n.removeAll(),L(e.geo.regions,function(v){var d=v.name,p=t.get(d),g=a.get(d)||{},m=g.dataIdx,y=g.regionModel;if(!p){p=t.set(d,new ue),n.add(p),m=s?s.indexOfName(d):null,y=e.isGeo?o.getRegionModel(d):s?s.getItemModel(m):null;var x=y.get("silent",!0);x!=null&&(p.silent=x),a.set(d,{dataIdx:m,regionModel:y})}var _=[],b=[];L(v.geometries,function(C){if(C.type==="polygon"){var A=[C.exterior].concat(C.interiors||[]);u&&(A=ob(A,u)),L(A,function(M){_.push(new Xt(h(M)))})}else{var D=C.points;u&&(D=ob(D,u,!0)),L(D,function(M){b.push(new Zt(h(M)))})}});var S=c(v.getCenter(),l&&l.project);function w(C,A){if(C.length){var D=new cm({culling:!0,segmentIgnoreThreshold:1,shape:{paths:C}});p.add(D),tb(e,D,m,y),rb(e,D,d,y,o,m,S),A&&(eb(D),L(D.states,eb))}}w(_),w(b,!0)}),t.each(function(v,d){var p=a.get(d),g=p.dataIdx,m=p.regionModel;ab(e,v,d,m,o,g),nb(e,v,d,m,o),ib(e,v,d,m,o)},this)},r.prototype._buildSVG=function(e){var t=e.geo.map,a=e.transformInfoRaw;this._svgGroup.x=a.x,this._svgGroup.y=a.y,this._svgGroup.scaleX=a.scaleX,this._svgGroup.scaleY=a.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var n=this._svgDispatcherMap=re(),i=!1;L(this._svgGraphicRecord.named,function(o){var s=o.name,l=e.mapOrGeoModel,u=e.data,c=o.svgNodeTagLower,f=o.el,h=u?u.indexOfName(s):null,v=l.getRegionModel(s);MV.get(c)!=null&&f instanceof Cr&&tb(e,f,h,v),f instanceof Cr&&(f.culling=!0);var d=v.get("silent",!0);if(d!=null&&(f.silent=d),f.z2EmphasisLift=0,!o.namedFrom&&(IV.get(c)!=null&&rb(e,f,s,v,l,h,null),ab(e,f,s,v,l,h),nb(e,f,s,v,l),LV.get(c)!=null)){var p=ib(e,f,s,v,l);p==="self"&&(i=!0);var g=n.get(s)||n.set(s,[]);g.push(f)}},this),this._enableBlurEntireSVG(i,e)},r.prototype._enableBlurEntireSVG=function(e,t){if(e&&t.isGeo){var a=t.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),n=a.opacity;this._svgGraphicRecord.root.traverse(function(i){if(!i.isGroup){Si(i);var o=i.ensureState("blur").style||{};o.opacity==null&&n!=null&&(o.opacity=n),i.ensureState("emphasis")}})}},r.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},r.prototype.findHighDownDispatchers=function(e,t){if(e==null)return[];var a=t.coordinateSystem;if(a.resourceType==="geoJSON"){var n=this._regionsGroupByName;if(n){var i=n.get(e);return i?[i]:[]}}else if(a.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},r.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},r.prototype._useSVG=function(e){var t=Ra.getGeoResource(e);if(t&&t.type==="geoSVG"){var a=t.useGraphic(this.uid);this._svgGroup.add(a.root),this._svgGraphicRecord=a,this._svgMapName=e}},r.prototype._freeSVG=function(){var e=this._svgMapName;if(e!=null){var t=Ra.getGeoResource(e);t&&t.type==="geoSVG"&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},r.prototype._updateController=function(e,t,a){var n=e.coordinateSystem,i=this._controller,o=this._controllerHost;o.zoomLimit=e.get("scaleLimit"),o.zoom=n.getZoom(),i.enable(e.get("roam")||!1);var s=e.mainType;function l(){var u={type:"geoRoam",componentType:s};return u[s+"Id"]=e.id,u}i.off("pan").on("pan",function(u){this._mouseDownFlag=!1,Jm(o,u.dx,u.dy),a.dispatchAction(G(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),i.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,Qm(o,u.scale,u.originX,u.originY),a.dispatchAction(G(l(),{totalZoom:o.zoom,zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this),i.setPointerChecker(function(u,c,f){return n.containPoint([c,f])&&!ih(u,a,e)})},r.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var t=e.getTextContent();t&&(t.ignore=nM(t).ignore)})},r.prototype._updateMapSelectHandler=function(e,t,a,n){var i=this;t.off("mousedown"),t.off("click"),e.get("selectedMode")&&(t.on("mousedown",function(){i._mouseDownFlag=!0}),t.on("click",function(o){i._mouseDownFlag&&(i._mouseDownFlag=!1)}))},r})();function tb(r,e,t,a){var n=a.getModel("itemStyle"),i=a.getModel(["emphasis","itemStyle"]),o=a.getModel(["blur","itemStyle"]),s=a.getModel(["select","itemStyle"]),l=Bu(n),u=Bu(i),c=Bu(s),f=Bu(o),h=r.data;if(h){var v=h.getItemVisual(t,"style"),d=h.getItemVisual(t,"decal");r.isVisualEncodedByVisualMap&&v.fill&&(l.fill=v.fill),d&&(l.decal=Do(d,r.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=u,e.ensureState("select").style=c,e.ensureState("blur").style=f,Si(e)}function rb(r,e,t,a,n,i,o){var s=r.data,l=r.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),i)),c=s&&s.getItemLayout(i);if(l||u||c&&c.showLabel){var f=l?t:i,h=void 0;(!s||i>=0)&&(h=n);var v=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Pt(e,bt(a),{labelFetcher:h,labelDataIndex:f,defaultText:t},v);var d=e.getTextContent();if(d&&(nM(d).ignore=d.ignore,e.textConfig&&o)){var p=e.getBoundingRect().clone();e.textConfig.layoutRect=p,e.textConfig.position=[(o[0]-p.x)/p.width*100+"%",(o[1]-p.y)/p.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function ab(r,e,t,a,n,i){r.data?r.data.setItemGraphicEl(i,e):ce(e).eventData={componentType:"geo",componentIndex:n.componentIndex,geoIndex:n.componentIndex,name:t,region:a&&a.option||{}}}function nb(r,e,t,a,n){r.data||Mi({el:e,componentModel:n,itemName:t,itemTooltipOption:a.get("tooltip")})}function ib(r,e,t,a,n){e.highDownSilentOnTouch=!!n.get("selectedMode");var i=a.getModel("emphasis"),o=i.get("focus");return et(e,o,i.get("blurScope"),i.get("disabled")),r.isGeo&&DR(e,n,t),o}function ob(r,e,t){var a=[],n;function i(){n=[]}function o(){n.length&&(a.push(n),n=[])}var s=e({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&n.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),L(r,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!t&&s.polygonEnd(),a}var PV=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n,i){if(!(i&&i.type==="mapToggleSelect"&&i.from===this.uid)){var o=this.group;if(o.removeAll(),!t.getHostGeoModel()){if(this._mapDraw&&i&&i.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),i&&i.type==="geoRoam"&&i.componentType==="series"&&i.seriesId===t.id){var s=this._mapDraw;s&&o.add(s.group)}else if(t.needsDrawMap){var s=this._mapDraw||new iM(n);o.add(s.group),s.draw(t,a,n,this,i),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&a.getComponent("legend")&&this._renderSymbols(t,a,n)}}},e.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(t,a,n){var i=t.originalData,o=this.group;i.each(i.mapDimension("value"),function(s,l){if(!isNaN(s)){var u=i.getItemLayout(l);if(!(!u||!u.point)){var c=u.point,f=u.offset,h=new Oa({style:{fill:t.getData().getVisual("style").fill},shape:{cx:c[0]+f*9,cy:c[1],r:3},silent:!0,z2:8+(f?0:zo+1)});if(!f){var v=t.mainSeries.getData(),d=i.getName(l),p=v.indexOfName(d),g=i.getItemModel(l),m=g.getModel("label"),y=v.getItemGraphicEl(p);Pt(h,bt(g),{labelFetcher:{getFormattedLabel:function(x,_){return t.getFormattedLabel(p,_)}},defaultText:d}),h.disableLabelAnimation=!0,m.get("position")||h.setTextConfig({position:"bottom"}),y.onHoverStateChange=function(x){Oc(h,x)}}o.add(h)}}})},e.type="map",e})($e),kV=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.needsDrawMap=!1,t.seriesGroup=[],t.getTooltipPosition=function(a){if(a!=null){var n=this.getData().getName(a),i=this.coordinateSystem,o=i.getRegion(n);return o&&i.dataToPoint(o.getCenter())}},t}return e.prototype.getInitialData=function(t){for(var a=Zo(this,{coordDimensions:["value"],encodeDefaulter:ve(_m,this)}),n=re(),i=[],o=0,s=a.count();o<s;o++){var l=a.getName(o);n.set(l,o)}var u=Ra.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return L(u.regions,function(c){var f=c.name,h=n.get(f),v=c.properties&&c.properties.echartsStyle,d;h==null?(d={name:f},i.push(d)):d=a.getRawDataItem(h),v&&pe(d,v)}),a.appendData(i),a},e.prototype.getHostGeoModel=function(){var t=this.option.geoIndex;return t!=null?this.ecModel.getComponent("geo",t):null},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(t){var a=this.getData();return a.get(a.mapDimension("value"),t)},e.prototype.getRegionModel=function(t){var a=this.getData();return a.getItemModel(a.indexOfName(t))},e.prototype.formatTooltip=function(t,a,n){for(var i=this.getData(),o=this.getRawValue(t),s=i.getName(t),l=this.seriesGroup,u=[],c=0;c<l.length;c++){var f=l[c].originalData.indexOfName(s),h=i.mapDimension("value");isNaN(l[c].originalData.get(h,f))||u.push(l[c].name)}return St("section",{header:u.join(", "),noHeader:!u.length,blocks:[St("nameValue",{name:s,value:o})]})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.getLegendIcon=function(t){var a=t.icon||"roundRect",n=lt(a,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return n.setStyle(t.itemStyle),n.style.stroke="none",a.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e})(Ze);function RV(r,e){var t={};return L(r,function(a){a.each(a.mapDimension("value"),function(n,i){var o="ec-"+a.getName(i);t[o]=t[o]||[],isNaN(n)||t[o].push(n)})}),r[0].map(r[0].mapDimension("value"),function(a,n){for(var i="ec-"+r[0].getName(n),o=0,s=1/0,l=-1/0,u=t[i].length,c=0;c<u;c++)s=Math.min(s,t[i][c]),l=Math.max(l,t[i][c]),o+=t[i][c];var f;return e==="min"?f=s:e==="max"?f=l:e==="average"?f=o/u:f=o,u===0?NaN:f})}function EV(r){var e={};r.eachSeriesByType("map",function(t){var a=t.getHostGeoModel(),n=a?"o"+a.id:"i"+t.getMapType();(e[n]=e[n]||[]).push(t)}),L(e,function(t,a){for(var n=RV(U(t,function(o){return o.getData()}),t[0].get("mapValueCalculation")),i=0;i<t.length;i++)t[i].originalData=t[i].getData();for(var i=0;i<t.length;i++)t[i].seriesGroup=t,t[i].needsDrawMap=i===0&&!t[i].getHostGeoModel(),t[i].setData(n.cloneShallow()),t[i].mainSeries=t[0]})}function NV(r){var e={};r.eachSeriesByType("map",function(t){var a=t.getMapType();if(!(t.getHostGeoModel()||e[a])){var n={};L(t.seriesGroup,function(o){var s=o.coordinateSystem,l=o.originalData;o.get("showLegendSymbol")&&r.getComponent("legend")&&l.each(l.mapDimension("value"),function(u,c){var f=l.getName(c),h=s.getRegion(f);if(!(!h||isNaN(u))){var v=n[f]||0,d=s.dataToPoint(h.getCenter());n[f]=v+1,l.setItemLayout(c,{point:d,offset:v})}})});var i=t.getData();i.each(function(o){var s=i.getName(o),l=i.getItemLayout(o)||{};l.showLabel=!n[s],i.setItemLayout(o,l)}),e[a]=!0}})}var sb=Lt,Zl=(function(r){z(e,r);function e(t){var a=r.call(this)||this;return a.type="view",a.dimensions=["x","y"],a._roamTransformable=new _a,a._rawTransformable=new _a,a.name=t,a}return e.prototype.setBoundingRect=function(t,a,n,i){return this._rect=new ye(t,a,n,i),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(t,a,n,i){this._transformTo(t,a,n,i),this._viewRect=new ye(t,a,n,i)},e.prototype._transformTo=function(t,a,n,i){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new ye(t,a,n,i));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},e.prototype.setCenter=function(t,a){t&&(this._center=[X(t[0],a.getWidth()),X(t[1],a.getHeight())],this._updateCenterAndZoom())},e.prototype.setZoom=function(t){t=t||1;var a=this.zoomLimit;a&&(a.max!=null&&(t=Math.min(a.max,t)),a.min!=null&&(t=Math.max(a.min,t))),this._zoom=t,this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var t=this.getBoundingRect(),a=t.x+t.width/2,n=t.y+t.height/2;return[a,n]},e.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},e.prototype.getZoom=function(){return this._zoom||1},e.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},e.prototype._updateCenterAndZoom=function(){var t=this._rawTransformable.getLocalTransform(),a=this._roamTransformable,n=this.getDefaultCenter(),i=this.getCenter(),o=this.getZoom();i=Lt([],i,t),n=Lt([],n,t),a.originX=i[0],a.originY=i[1],a.x=n[0]-i[0],a.y=n[1]-i[1],a.scaleX=a.scaleY=o,this._updateTransform()},e.prototype._updateTransform=function(){var t=this._roamTransformable,a=this._rawTransformable;a.parent=t,t.updateTransform(),a.updateTransform(),Yg(this.transform||(this.transform=[]),a.transform||or()),this._rawTransform=a.getLocalTransform(),this.invTransform=this.invTransform||[],Oo(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var t=this._rawTransformable,a=this._roamTransformable,n=new _a;return n.transform=a.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY}}},e.prototype.getViewRect=function(){return this._viewRect},e.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},e.prototype.dataToPoint=function(t,a,n){var i=a?this._rawTransform:this.transform;return n=n||[],i?sb(n,t,i):Vt(n,t)},e.prototype.pointToData=function(t){var a=this.invTransform;return a?sb([],t,a):[t[0],t[1]]},e.prototype.convertToPixel=function(t,a,n){var i=lb(a);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,a,n){var i=lb(a);return i===this?i.pointToData(n):null},e.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},e.dimensions=["x","y"],e})(_a);function lb(r){var e=r.seriesModel;return e?e.coordinateSystem:null}var OV={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},oM=["lng","lat"],tg=(function(r){z(e,r);function e(t,a,n){var i=r.call(this,t)||this;i.dimensions=oM,i.type="geo",i._nameCoordMap=re(),i.map=a;var o=n.projection,s=Ra.load(a,n.nameMap,n.nameProperty),l=Ra.getGeoResource(a);i.resourceType=l?l.type:null;var u=i.regions=s.regions,c=OV[l.type];i._regionsMap=s.regionsMap,i.regions=s.regions,i.projection=o;var f;if(o)for(var h=0;h<u.length;h++){var v=u[h].getBoundingRect(o);f=f||v.clone(),f.union(v)}else f=s.boundingRect;return i.setBoundingRect(f.x,f.y,f.width,f.height),i.aspectScale=o?1:fe(n.aspectScale,c.aspectScale),i._invertLongitute=o?!1:c.invertLongitute,i}return e.prototype._transformTo=function(t,a,n,i){var o=this.getBoundingRect(),s=this._invertLongitute;o=o.clone(),s&&(o.y=-o.y-o.height);var l=this._rawTransformable;l.transform=o.calculateTransform(new ye(t,a,n,i));var u=l.parent;l.parent=null,l.decomposeTransform(),l.parent=u,s&&(l.scaleY=-l.scaleY),this._updateTransform()},e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){for(var a=this.regions,n=0;n<a.length;n++){var i=a[n];if(i.type==="geoJSON"&&i.contain(t))return a[n]}},e.prototype.addGeoCoord=function(t,a){this._nameCoordMap.set(t,a)},e.prototype.getGeoCoord=function(t){var a=this._regionsMap.get(t);return this._nameCoordMap.get(t)||a&&a.getCenter()},e.prototype.dataToPoint=function(t,a,n){if(q(t)&&(t=this.getGeoCoord(t)),t){var i=this.projection;return i&&(t=i.project(t)),t&&this.projectedToPoint(t,a,n)}},e.prototype.pointToData=function(t){var a=this.projection;return a&&(t=a.unproject(t)),t&&this.pointToProjected(t)},e.prototype.pointToProjected=function(t){return r.prototype.pointToData.call(this,t)},e.prototype.projectedToPoint=function(t,a,n){return r.prototype.dataToPoint.call(this,t,a,n)},e.prototype.convertToPixel=function(t,a,n){var i=ub(a);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,a,n){var i=ub(a);return i===this?i.pointToData(n):null},e})(Zl);ut(tg,Zl);function ub(r){var e=r.geoModel,t=r.seriesModel;return e?e.coordinateSystem:t?t.coordinateSystem||(t.getReferringComponents("geo",st).models[0]||{}).coordinateSystem:null}function cb(r,e){var t=r.get("boundingCoords");if(t!=null){var a=t[0],n=t[1];if(isFinite(a[0])&&isFinite(a[1])&&isFinite(n[0])&&isFinite(n[1])){var i=this.projection;if(i){var o=a[0],s=a[1],l=n[0],u=n[1];a=[1/0,1/0],n=[-1/0,-1/0];var c=function(S,w,C,A){for(var D=C-S,M=A-w,I=0;I<=100;I++){var P=I/100,k=i.project([S+D*P,w+M*P]);Ja(a,a,k),Qa(n,n,k)}};c(o,s,l,s),c(l,s,l,u),c(l,u,o,u),c(o,u,l,s)}this.setBoundingRect(a[0],a[1],n[0]-a[0],n[1]-a[1])}}var f=this.getBoundingRect(),h=r.get("layoutCenter"),v=r.get("layoutSize"),d=e.getWidth(),p=e.getHeight(),g=f.width/f.height*this.aspectScale,m=!1,y,x;h&&v&&(y=[X(h[0],d),X(h[1],p)],x=X(v,Math.min(d,p)),!isNaN(y[0])&&!isNaN(y[1])&&!isNaN(x)&&(m=!0));var _;if(m)_={},g>1?(_.width=x,_.height=x/g):(_.height=x,_.width=x*g),_.y=y[1]-_.height/2,_.x=y[0]-_.width/2;else{var b=r.getBoxLayoutParams();b.aspect=g,_=gt(b,{width:d,height:p})}this.setViewRect(_.x,_.y,_.width,_.height),this.setCenter(r.get("center"),e),this.setZoom(r.get("zoom"))}function BV(r,e){L(e.get("geoCoord"),function(t,a){r.addGeoCoord(a,t)})}var zV=(function(){function r(){this.dimensions=oM}return r.prototype.create=function(e,t){var a=[];function n(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var l=o.get("map"),u=new tg(l+s,l,G({nameMap:o.get("nameMap")},n(o)));u.zoomLimit=o.get("scaleLimit"),a.push(u),o.coordinateSystem=u,u.model=o,u.resize=cb,u.resize(o,t)}),e.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=a[l]}});var i={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),L(i,function(o,s){var l=U(o,function(c){return c.get("nameMap")}),u=new tg(s,s,G({nameMap:jg(l)},n(o[0])));u.zoomLimit=Ct.apply(null,U(o,function(c){return c.get("scaleLimit")})),a.push(u),u.resize=cb,u.resize(o[0],t),L(o,function(c){c.coordinateSystem=u,BV(u,c)})}),a},r.prototype.getFilledRegions=function(e,t,a,n){for(var i=(e||[]).slice(),o=re(),s=0;s<i.length;s++)o.set(i[s].name,i[s]);var l=Ra.load(t,a,n);return L(l.regions,function(u){var c=u.name,f=o.get(c),h=u.properties&&u.properties.echartsStyle;f||(f={name:c},i.push(f)),h&&pe(f,h)}),i},r})(),sM=new zV,VV=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a,n){var i=Ra.getGeoResource(t.map);if(i&&i.type==="geoJSON"){var o=t.itemStyle=t.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(t,n),xi(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,a=this.option;a.regions=sM.getFilledRegions(a.regions,a.map,a.nameMap,a.nameProperty);var n={};this._optionModelMap=sa(a.regions||[],function(i,o){var s=o.name;return s&&(i.set(s,new Ge(o,t,t.ecModel)),o.selected&&(n[s]=!0)),i},re()),a.selectedMap||(a.selectedMap=n)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new Ge(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,a){var n=this.getRegionModel(t),i=a==="normal"?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),o={name:t};if(ne(i))return o.status=a,i(o);if(q(i))return i.replace("{a}",t??"")},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.select=function(t){var a=this.option,n=a.selectedMode;if(n){n!=="multiple"&&(a.selectedMap=null);var i=a.selectedMap||(a.selectedMap={});i[t]=!0}},e.prototype.unSelect=function(t){var a=this.option.selectedMap;a&&(a[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var a=this.option.selectedMap;return!!(a&&a[t])},e.type="geo",e.layoutMode="box",e.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},e})(De);function fb(r,e){return r.pointToProjected?r.pointToProjected(e):r.pointToData(e)}function ty(r,e,t,a){var n=r.getZoom(),i=r.getCenter(),o=e.zoom,s=r.projectedToPoint?r.projectedToPoint(i):r.dataToPoint(i);if(e.dx!=null&&e.dy!=null&&(s[0]-=e.dx,s[1]-=e.dy,r.setCenter(fb(r,s),a)),o!=null){if(t){var l=t.min||0,u=t.max||1/0;o=Math.max(Math.min(n*o,u),l)/n}r.scaleX*=o,r.scaleY*=o;var c=(e.originX-r.x)*(o-1),f=(e.originY-r.y)*(o-1);r.x-=c,r.y-=f,r.updateTransform(),r.setCenter(fb(r,s),a),r.setZoom(o*n)}return{center:r.getCenter(),zoom:r.getZoom()}}var FV=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.focusBlurEnabled=!0,t}return e.prototype.init=function(t,a){this._api=a},e.prototype.render=function(t,a,n,i){if(this._model=t,!t.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new iM(n));var o=this._mapDraw;o.draw(t,a,n,this,i),o.group.on("click",this._handleRegionClick,this),o.group.silent=t.get("silent"),this.group.add(o.group),this.updateSelectStatus(t,a,n)},e.prototype._handleRegionClick=function(t){var a;oi(t.target,function(n){return(a=ce(n).eventData)!=null},!0),a&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:a.name})},e.prototype.updateSelectStatus=function(t,a,n){var i=this;this._mapDraw.group.traverse(function(o){var s=ce(o).eventData;if(s)return i._model.isSelected(s.name)?n.enterSelect(o):n.leaveSelect(o),!0})},e.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e})(Qe);function GV(r,e,t){Ra.registerMap(r,e,t)}function lM(r){r.registerCoordinateSystem("geo",sM),r.registerComponentModel(VV),r.registerComponentView(FV),r.registerImpl("registerMap",GV),r.registerImpl("getMap",function(t){return Ra.getMapForUser(t)});function e(t,a){a.update="geo:updateSelectStatus",r.registerAction(a,function(n,i){var o={},s=[];return i.eachComponent({mainType:"geo",query:n},function(l){l[t](n.name);var u=l.coordinateSystem;L(u.regions,function(f){o[f.name]=l.isSelected(f.name)||!1});var c=[];L(o,function(f,h){o[h]&&c.push(h)}),s.push({geoIndex:l.componentIndex,name:c})}),{selected:o,allSelected:s,name:n.name}})}e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),r.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(t,a,n){var i=t.componentType||"series";a.eachComponent({mainType:i,query:t},function(o){var s=o.coordinateSystem;if(s.type==="geo"){var l=ty(s,t,o.get("scaleLimit"),n);o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),i==="series"&&L(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function HV(r){Te(lM),r.registerChartView(PV),r.registerSeriesModel(kV),r.registerLayout(NV),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,EV),uA("map",r.registerAction)}function jV(r){var e=r;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var t=[e],a,n;a=t.pop();)if(n=a.children,a.isExpand&&n.length)for(var i=n.length,o=i-1;o>=0;o--){var s=n[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},t.push(s)}}function WV(r,e){var t=r.isExpand?r.children:[],a=r.parentNode.children,n=r.hierNode.i?a[r.hierNode.i-1]:null;if(t.length){YV(r);var i=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;n?(r.hierNode.prelim=n.hierNode.prelim+e(r,n),r.hierNode.modifier=r.hierNode.prelim-i):r.hierNode.prelim=i}else n&&(r.hierNode.prelim=n.hierNode.prelim+e(r,n));r.parentNode.hierNode.defaultAncestor=XV(r,n,r.parentNode.hierNode.defaultAncestor||a[0],e)}function $V(r){var e=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:e},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function hb(r){return arguments.length?r:KV}function Es(r,e){return r-=Math.PI/2,{x:e*Math.cos(r),y:e*Math.sin(r)}}function UV(r,e){return gt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function YV(r){for(var e=r.children,t=e.length,a=0,n=0;--t>=0;){var i=e[t];i.hierNode.prelim+=a,i.hierNode.modifier+=a,n+=i.hierNode.change,a+=i.hierNode.shift+n}}function XV(r,e,t,a){if(e){for(var n=r,i=r,o=i.parentNode.children[0],s=e,l=n.hierNode.modifier,u=i.hierNode.modifier,c=o.hierNode.modifier,f=s.hierNode.modifier;s=Wv(s),i=$v(i),s&&i;){n=Wv(n),o=$v(o),n.hierNode.ancestor=r;var h=s.hierNode.prelim+f-i.hierNode.prelim-u+a(s,i);h>0&&(qV(ZV(s,r,t),r,h),u+=h,l+=h),f+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=n.hierNode.modifier,c+=o.hierNode.modifier}s&&!Wv(n)&&(n.hierNode.thread=s,n.hierNode.modifier+=f-l),i&&!$v(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-c,t=r)}return t}function Wv(r){var e=r.children;return e.length&&r.isExpand?e[e.length-1]:r.hierNode.thread}function $v(r){var e=r.children;return e.length&&r.isExpand?e[0]:r.hierNode.thread}function ZV(r,e,t){return r.hierNode.ancestor.parentNode===e.parentNode?r.hierNode.ancestor:t}function qV(r,e,t){var a=t/(e.hierNode.i-r.hierNode.i);e.hierNode.change-=a,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,r.hierNode.change+=a}function KV(r,e){return r.parentNode===e.parentNode?1:2}var JV=(function(){function r(){this.parentPoint=[],this.childPoints=[]}return r})(),QV=(function(r){z(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new JV},e.prototype.buildPath=function(t,a){var n=a.childPoints,i=n.length,o=a.parentPoint,s=n[0],l=n[i-1];if(i===1){t.moveTo(o[0],o[1]),t.lineTo(s[0],s[1]);return}var u=a.orient,c=u==="TB"||u==="BT"?0:1,f=1-c,h=X(a.forkPosition,1),v=[];v[c]=o[c],v[f]=o[f]+(l[f]-o[f])*h,t.moveTo(o[0],o[1]),t.lineTo(v[0],v[1]),t.moveTo(s[0],s[1]),v[c]=s[c],t.lineTo(v[0],v[1]),v[c]=l[c],t.lineTo(v[0],v[1]),t.lineTo(l[0],l[1]);for(var d=1;d<i-1;d++){var p=n[d];t.moveTo(p[0],p[1]),v[c]=p[c],t.lineTo(v[0],v[1])}},e})(Ce),eF=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._mainGroup=new ue,t}return e.prototype.init=function(t,a){this._controller=new Xl(a.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},e.prototype.render=function(t,a,n){var i=t.getData(),o=t.layoutInfo,s=this._mainGroup,l=t.get("layout");l==="radial"?(s.x=o.x+o.width/2,s.y=o.y+o.height/2):(s.x=o.x,s.y=o.y),this._updateViewCoordSys(t,n),this._updateController(t,a,n);var u=this._data;i.diff(u).add(function(c){vb(i,c)&&db(i,c,null,s,t)}).update(function(c,f){var h=u.getItemGraphicEl(f);if(!vb(i,c)){h&&gb(u,f,h,s,t);return}db(i,c,h,s,t)}).remove(function(c){var f=u.getItemGraphicEl(c);f&&gb(u,c,f,s,t)}).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),t.get("expandAndCollapse")===!0&&i.eachItemGraphicEl(function(c,f){c.off("click").on("click",function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:f})})}),this._data=i},e.prototype._updateViewCoordSys=function(t,a){var n=t.getData(),i=[];n.each(function(f){var h=n.getItemLayout(f);h&&!isNaN(h.x)&&!isNaN(h.y)&&i.push([+h.x,+h.y])});var o=[],s=[];Nf(i,o,s);var l=this._min,u=this._max;s[0]-o[0]===0&&(o[0]=l?l[0]:o[0]-1,s[0]=u?u[0]:s[0]+1),s[1]-o[1]===0&&(o[1]=l?l[1]:o[1]-1,s[1]=u?u[1]:s[1]+1);var c=t.coordinateSystem=new Zl;c.zoomLimit=t.get("scaleLimit"),c.setBoundingRect(o[0],o[1],s[0]-o[0],s[1]-o[1]),c.setCenter(t.get("center"),a),c.setZoom(t.get("zoom")),this.group.attr({x:c.x,y:c.y,scaleX:c.scaleX,scaleY:c.scaleY}),this._min=o,this._max=s},e.prototype._updateController=function(t,a,n){var i=this,o=this._controller,s=this._controllerHost,l=this.group;o.setPointerChecker(function(u,c,f){var h=l.getBoundingRect();return h.applyTransform(l.transform),h.contain(c,f)&&!ih(u,n,t)}),o.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){Jm(s,u.dx,u.dy),n.dispatchAction({seriesId:t.id,type:"treeRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){Qm(s,u.scale,u.originX,u.originY),n.dispatchAction({seriesId:t.id,type:"treeRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(t),n.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(t){var a=t.getData(),n=this._getNodeGlobalScale(t);a.eachItemGraphicEl(function(i,o){i.setSymbolScale(n)})},e.prototype._getNodeGlobalScale=function(t){var a=t.coordinateSystem;if(a.type!=="view")return 1;var n=this._nodeScaleRatio,i=a.scaleX||1,o=a.getZoom(),s=(o-1)*n+1;return s/i},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},e.type="tree",e})($e);function vb(r,e){var t=r.getItemLayout(e);return t&&!isNaN(t.x)&&!isNaN(t.y)}function db(r,e,t,a,n){var i=!t,o=r.tree.getNodeByDataIndex(e),s=o.getModel(),l=o.getVisual("style").fill,u=o.isExpand===!1&&o.children.length!==0?l:"#fff",c=r.tree.root,f=o.parentNode===c?o:o.parentNode||o,h=r.getItemGraphicEl(f.dataIndex),v=f.getLayout(),d=h?{x:h.__oldX,y:h.__oldY,rawX:h.__radialOldRawX,rawY:h.__radialOldRawY}:v,p=o.getLayout();i?(t=new Hl(r,e,null,{symbolInnerColor:u,useNameLabel:!0}),t.x=d.x,t.y=d.y):t.updateData(r,e,null,{symbolInnerColor:u,useNameLabel:!0}),t.__radialOldRawX=t.__radialRawX,t.__radialOldRawY=t.__radialRawY,t.__radialRawX=p.rawX,t.__radialRawY=p.rawY,a.add(t),r.setItemGraphicEl(e,t),t.__oldX=t.x,t.__oldY=t.y,Ee(t,{x:p.x,y:p.y},n);var g=t.getSymbolPath();if(n.get("layout")==="radial"){var m=c.children[0],y=m.getLayout(),x=m.children.length,_=void 0,b=void 0;if(p.x===y.x&&o.isExpand===!0&&m.children.length){var S={x:(m.children[0].getLayout().x+m.children[x-1].getLayout().x)/2,y:(m.children[0].getLayout().y+m.children[x-1].getLayout().y)/2};_=Math.atan2(S.y-y.y,S.x-y.x),_<0&&(_=Math.PI*2+_),b=S.x<y.x,b&&(_=_-Math.PI)}else _=Math.atan2(p.y-y.y,p.x-y.x),_<0&&(_=Math.PI*2+_),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(b=p.x<y.x,b&&(_=_-Math.PI)):(b=p.x>y.x,b||(_=_-Math.PI));var w=b?"left":"right",C=s.getModel("label"),A=C.get("rotate"),D=A*(Math.PI/180),M=g.getTextContent();M&&(g.setTextConfig({position:C.get("position")||w,rotation:A==null?-_:D,origin:"center"}),M.setStyle("verticalAlign","middle"))}var I=s.get(["emphasis","focus"]),P=I==="relative"?tl(o.getAncestorsIndices(),o.getDescendantIndices()):I==="ancestor"?o.getAncestorsIndices():I==="descendant"?o.getDescendantIndices():null;P&&(ce(t).focus=P),tF(n,o,c,t,d,v,p,a),t.__edge&&(t.onHoverStateChange=function(k){if(k!=="blur"){var R=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);R&&R.hoverState===kl||Oc(t.__edge,k)}})}function tF(r,e,t,a,n,i,o,s){var l=e.getModel(),u=r.get("edgeShape"),c=r.get("layout"),f=r.getOrient(),h=r.get(["lineStyle","curveness"]),v=r.get("edgeForkPosition"),d=l.getModel("lineStyle").getLineStyle(),p=a.__edge;if(u==="curve")e.parentNode&&e.parentNode!==t&&(p||(p=a.__edge=new El({shape:rg(c,f,h,n,n)})),Ee(p,{shape:rg(c,f,h,i,o)},r));else if(u==="polyline"&&c==="orthogonal"&&e!==t&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var g=e.children,m=[],y=0;y<g.length;y++){var x=g[y].getLayout();m.push([x.x,x.y])}p||(p=a.__edge=new QV({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:f,forkPosition:v}})),Ee(p,{shape:{parentPoint:[o.x,o.y],childPoints:m}},r)}p&&!(u==="polyline"&&!e.isExpand)&&(p.useStyle(ie({strokeNoScale:!0,fill:null},d)),It(p,l,"lineStyle"),Si(p),s.add(p))}function pb(r,e,t,a,n){var i=e.tree.root,o=uM(i,r),s=o.source,l=o.sourceLayout,u=e.getItemGraphicEl(r.dataIndex);if(u){var c=e.getItemGraphicEl(s.dataIndex),f=c.__edge,h=u.__edge||(s.isExpand===!1||s.children.length===1?f:void 0),v=a.get("edgeShape"),d=a.get("layout"),p=a.get("orient"),g=a.get(["lineStyle","curveness"]);h&&(v==="curve"?pn(h,{shape:rg(d,p,g,l,l),style:{opacity:0}},a,{cb:function(){t.remove(h)},removeOpt:n}):v==="polyline"&&a.get("layout")==="orthogonal"&&pn(h,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},a,{cb:function(){t.remove(h)},removeOpt:n}))}}function uM(r,e){for(var t=e.parentNode===r?e:e.parentNode||e,a;a=t.getLayout(),a==null;)t=t.parentNode===r?t:t.parentNode||t;return{source:t,sourceLayout:a}}function gb(r,e,t,a,n){var i=r.tree.getNodeByDataIndex(e),o=r.tree.root,s=uM(o,i).sourceLayout,l={duration:n.get("animationDurationUpdate"),easing:n.get("animationEasingUpdate")};pn(t,{x:s.x+1,y:s.y+1},n,{cb:function(){a.remove(t),r.setItemGraphicEl(e,null)},removeOpt:l}),t.fadeOut(null,r.hostModel,{fadeLabel:!0,animation:l}),i.children.forEach(function(u){pb(u,r,a,n,l)}),pb(i,r,a,n,l)}function rg(r,e,t,a,n){var i,o,s,l,u,c,f,h;if(r==="radial"){u=a.rawX,f=a.rawY,c=n.rawX,h=n.rawY;var v=Es(u,f),d=Es(u,f+(h-f)*t),p=Es(c,h+(f-h)*t),g=Es(c,h);return{x1:v.x||0,y1:v.y||0,x2:g.x||0,y2:g.y||0,cpx1:d.x||0,cpy1:d.y||0,cpx2:p.x||0,cpy2:p.y||0}}else u=a.x,f=a.y,c=n.x,h=n.y,(e==="LR"||e==="RL")&&(i=u+(c-u)*t,o=f,s=c+(u-c)*t,l=h),(e==="TB"||e==="BT")&&(i=u,o=f+(h-f)*t,s=c,l=h+(f-h)*t);return{x1:u,y1:f,x2:c,y2:h,cpx1:i,cpy1:o,cpx2:s,cpy2:l}}var Tr=Ie();function cM(r){var e=r.mainData,t=r.datas;t||(t={main:e},r.datasAttr={main:"data"}),r.datas=r.mainData=null,fM(e,t,r),L(t,function(a){L(e.TRANSFERABLE_METHODS,function(n){a.wrapMethod(n,ve(rF,r))})}),e.wrapMethod("cloneShallow",ve(nF,r)),L(e.CHANGABLE_METHODS,function(a){e.wrapMethod(a,ve(aF,r))}),$t(t[e.dataType]===e)}function rF(r,e){if(sF(this)){var t=G({},Tr(this).datas);t[this.dataType]=e,fM(e,t,r)}else ry(e,this.dataType,Tr(this).mainData,r);return e}function aF(r,e){return r.struct&&r.struct.update(),e}function nF(r,e){return L(Tr(e).datas,function(t,a){t!==e&&ry(t.cloneShallow(),a,e,r)}),e}function iF(r){var e=Tr(this).mainData;return r==null||e==null?e:Tr(e).datas[r]}function oF(){var r=Tr(this).mainData;return r==null?[{data:r}]:U(Me(Tr(r).datas),function(e){return{type:e,data:Tr(r).datas[e]}})}function sF(r){return Tr(r).mainData===r}function fM(r,e,t){Tr(r).datas={},L(e,function(a,n){ry(a,n,r,t)})}function ry(r,e,t,a){Tr(t).datas[e]=r,Tr(r).mainData=t,r.dataType=e,a.struct&&(r[a.structAttr]=a.struct,a.struct[a.datasAttr[e]]=r),r.getLinkedData=iF,r.getLinkedDataAll=oF}var lF=(function(){function r(e,t){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=t}return r.prototype.isRemoved=function(){return this.dataIndex<0},r.prototype.eachNode=function(e,t,a){ne(e)&&(a=t,t=e,e=null),e=e||{},q(e)&&(e={order:e});var n=e.order||"preorder",i=this[e.attr||"children"],o;n==="preorder"&&(o=t.call(a,this));for(var s=0;!o&&s<i.length;s++)i[s].eachNode(e,t,a);n==="postorder"&&t.call(a,this)},r.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var a=0;a<this.children.length;a++){var n=this.children[a];n.updateDepthAndHeight(e+1),n.height>t&&(t=n.height)}this.height=t+1},r.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,a=this.children,n=a.length;t<n;t++){var i=a[t].getNodeById(e);if(i)return i}},r.prototype.contains=function(e){if(e===this)return!0;for(var t=0,a=this.children,n=a.length;t<n;t++){var i=a[t].contains(e);if(i)return i}},r.prototype.getAncestors=function(e){for(var t=[],a=e?this:this.parentNode;a;)t.push(a),a=a.parentNode;return t.reverse(),t},r.prototype.getAncestorsIndices=function(){for(var e=[],t=this;t;)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},r.prototype.getDescendantIndices=function(){var e=[];return this.eachNode(function(t){e.push(t.dataIndex)}),e},r.prototype.getValue=function(e){var t=this.hostTree.data;return t.getStore().get(t.getDimensionIndex(e||"value"),this.dataIndex)},r.prototype.setLayout=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,a=t.data.getItemModel(this.dataIndex);return a.getModel(e)}},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},r.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},r.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},r.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},r.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t<e.length;++t)if(e[t]===this)return t;return-1}return-1},r.prototype.isAncestorOf=function(e){for(var t=e.parentNode;t;){if(t===this)return!0;t=t.parentNode}return!1},r.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},r})(),ay=(function(){function r(e){this.type="tree",this._nodes=[],this.hostModel=e}return r.prototype.eachNode=function(e,t,a){this.root.eachNode(e,t,a)},r.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},r.prototype.getNodeById=function(e){return this.root.getNodeById(e)},r.prototype.update=function(){for(var e=this.data,t=this._nodes,a=0,n=t.length;a<n;a++)t[a].dataIndex=-1;for(var a=0,n=e.count();a<n;a++)t[e.getRawIndex(a)].dataIndex=a},r.prototype.clearLayouts=function(){this.data.clearItemLayouts()},r.createTree=function(e,t,a){var n=new r(t),i=[],o=1;s(e);function s(c,f){var h=c.value;o=Math.max(o,W(h)?h.length:1),i.push(c);var v=new lF(pt(c.name,""),n);f?uF(v,f):n.root=v,n._nodes.push(v);var d=c.children;if(d)for(var p=0;p<d.length;p++)s(d[p],v)}n.root.updateDepthAndHeight(0);var l=Fl(i,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new jt(l,t);return u.initData(i),a&&a(u),cM({mainData:u,struct:n,structAttr:"tree"}),n.update(),n},r})();function uF(r,e){var t=e.children;r.parentNode!==e&&(t.push(r),r.parentNode=e)}function bl(r,e,t){if(r&&_e(e,r.type)>=0){var a=t.getData().tree.root,n=r.targetNode;if(q(n)&&(n=a.getNodeById(n)),n&&a.contains(n))return{node:n};var i=r.targetNodeId;if(i!=null&&(n=a.getNodeById(i)))return{node:n}}}function hM(r){for(var e=[];r;)r=r.parentNode,r&&e.push(r);return e.reverse()}function ny(r,e){var t=hM(r);return _e(t,e)>=0}function sh(r,e){for(var t=[];r;){var a=r.dataIndex;t.push({name:r.name,dataIndex:a,value:e.getRawValue(a)}),r=r.parentNode}return t.reverse(),t}var cF=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t){var a={name:t.name,children:t.data},n=t.leaves||{},i=new Ge(n,this,this.ecModel),o=ay.createTree(a,this,s);function s(f){f.wrapMethod("getItemModel",function(h,v){var d=o.getNodeByDataIndex(v);return d&&d.children.length&&d.isExpand||(h.parentModel=i),h})}var l=0;o.eachNode("preorder",function(f){f.depth>l&&(l=f.depth)});var u=t.expandAndCollapse,c=u&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return o.root.eachNode("preorder",function(f){var h=f.hostTree.data.getRawDataItem(f.dataIndex);f.isExpand=h&&h.collapsed!=null?!h.collapsed:f.depth<=c}),o.data},e.prototype.getOrient=function(){var t=this.get("orient");return t==="horizontal"?t="LR":t==="vertical"&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,a,n){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(t),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return St("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(t){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return a.treeAncestors=sh(n,this),a.collapsed=!n.isExpand,a},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e})(Ze);function fF(r,e,t){for(var a=[r],n=[],i;i=a.pop();)if(n.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s<o.length;s++)a.push(o[s])}for(;i=n.pop();)e(i,t)}function ys(r,e){for(var t=[r],a;a=t.pop();)if(e(a),a.isExpand){var n=a.children;if(n.length)for(var i=n.length-1;i>=0;i--)t.push(n[i])}}function hF(r,e){r.eachSeriesByType("tree",function(t){vF(t,e)})}function vF(r,e){var t=UV(r,e);r.layoutInfo=t;var a=r.get("layout"),n=0,i=0,o=null;a==="radial"?(n=2*Math.PI,i=Math.min(t.height,t.width)/2,o=hb(function(x,_){return(x.parentNode===_.parentNode?1:2)/x.depth})):(n=t.width,i=t.height,o=hb());var s=r.getData().tree.root,l=s.children[0];if(l){jV(s),fF(l,WV,o),s.hierNode.modifier=-l.hierNode.prelim,ys(l,$V);var u=l,c=l,f=l;ys(l,function(x){var _=x.getLayout().x;_<u.getLayout().x&&(u=x),_>c.getLayout().x&&(c=x),x.depth>f.depth&&(f=x)});var h=u===c?1:o(u,c)/2,v=h-u.getLayout().x,d=0,p=0,g=0,m=0;if(a==="radial")d=n/(c.getLayout().x+h+v),p=i/(f.depth-1||1),ys(l,function(x){g=(x.getLayout().x+v)*d,m=(x.depth-1)*p;var _=Es(g,m);x.setLayout({x:_.x,y:_.y,rawX:g,rawY:m},!0)});else{var y=r.getOrient();y==="RL"||y==="LR"?(p=i/(c.getLayout().x+h+v),d=n/(f.depth-1||1),ys(l,function(x){m=(x.getLayout().x+v)*p,g=y==="LR"?(x.depth-1)*d:n-(x.depth-1)*d,x.setLayout({x:g,y:m},!0)})):(y==="TB"||y==="BT")&&(d=n/(c.getLayout().x+h+v),p=i/(f.depth-1||1),ys(l,function(x){g=(x.getLayout().x+v)*d,m=y==="TB"?(x.depth-1)*p:i-(x.depth-1)*p,x.setLayout({x:g,y:m},!0)}))}}}function dF(r){r.eachSeriesByType("tree",function(e){var t=e.getData(),a=t.tree;a.eachNode(function(n){var i=n.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=t.ensureUniqueItemVisual(n.dataIndex,"style");G(s,o)})})}function pF(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(a){var n=e.dataIndex,i=a.getData().tree,o=i.getNodeByDataIndex(n);o.isExpand=!o.isExpand})}),r.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t,a){t.eachComponent({mainType:"series",subType:"tree",query:e},function(n){var i=n.coordinateSystem,o=ty(i,e,void 0,a);n.setCenter&&n.setCenter(o.center),n.setZoom&&n.setZoom(o.zoom)})})}function gF(r){r.registerChartView(eF),r.registerSeriesModel(cF),r.registerLayout(hF),r.registerVisual(dF),pF(r)}var mb=["treemapZoomToNode","treemapRender","treemapMove"];function mF(r){for(var e=0;e<mb.length;e++)r.registerAction({type:mb[e],update:"updateView"},nt);r.registerAction({type:"treemapRootToNode",update:"updateView"},function(t,a){a.eachComponent({mainType:"series",subType:"treemap",query:t},n);function n(i,o){var s=["treemapZoomToNode","treemapRootToNode"],l=bl(t,s,i);if(l){var u=i.getViewRoot();u&&(t.direction=ny(u,l.node)?"rollUp":"drillDown"),i.resetViewRoot(l.node)}}})}function vM(r){var e=r.getData(),t=e.tree,a={};t.eachNode(function(n){for(var i=n;i&&i.depth>1;)i=i.parentNode;var o=Ip(r.ecModel,i.name||i.dataIndex+"",a);n.setVisual("decal",o)})}var yF=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return e.prototype.getInitialData=function(t,a){var n={name:t.name,children:t.data};dM(n);var i=t.levels||[],o=this.designatedVisualItemStyle={},s=new Ge({itemStyle:o},this,a);i=t.levels=xF(i,a);var l=U(i||[],function(f){return new Ge(f,s,a)},this),u=ay.createTree(n,this,c);function c(f){f.wrapMethod("getItemModel",function(h,v){var d=u.getNodeByDataIndex(v),p=d?l[d.depth]:null;return h.parentModel=p||s,h})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,a,n){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t);return St("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(t){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return a.treeAncestors=sh(n,this),a.treePathInfo=a.treeAncestors,a},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},G(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var a=this._idIndexMap;a||(a=this._idIndexMap=re(),this._idIndexMapCount=0);var n=a.get(t);return n==null&&a.set(t,n=this._idIndexMapCount++),n},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var a=this.getRawData().tree.root;(!t||t!==a&&!a.contains(t))&&(this._viewRoot=a)},e.prototype.enableAriaDecal=function(){vM(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,scaleLimit:null,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e})(Ze);function dM(r){var e=0;L(r.children,function(a){dM(a);var n=a.value;W(n)&&(n=n[0]),e+=n});var t=r.value;W(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),W(r.value)?r.value[0]=t:r.value=t}function xF(r,e){var t=je(e.get("color")),a=je(e.get(["aria","decal","decals"]));if(t){r=r||[];var n,i;L(r,function(s){var l=new Ge(s),u=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(n=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(i=!0)});var o=r[0]||(r[0]={});return n||(o.color=t.slice()),!i&&a&&(o.decal=a.slice()),r}}var _F=8,yb=8,Uv=5,bF=(function(){function r(e){this.group=new ue,e.add(this.group)}return r.prototype.render=function(e,t,a,n){var i=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!a)){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),f={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(a,f,u),this._renderContent(e,f,s,l,u,c,n),Xf(o,f.pos,f.box)}},r.prototype._prepare=function(e,t,a){for(var n=e;n;n=n.parentNode){var i=pt(n.getModel().get("name"),""),o=a.getTextRect(i),s=Math.max(o.width+_F*2,t.emptyItemWidth);t.totalWidth+=s+yb,t.renderList.push({node:n,text:i,width:s})}},r.prototype._renderContent=function(e,t,a,n,i,o,s){for(var l=0,u=t.emptyItemWidth,c=e.get(["breadcrumb","height"]),f=LE(t.pos,t.box),h=t.totalWidth,v=t.renderList,d=n.getModel("itemStyle").getItemStyle(),p=v.length-1;p>=0;p--){var g=v[p],m=g.node,y=g.width,x=g.text;h>f.width&&(h-=y-u,y=u,x=null);var _=new Xt({shape:{points:SF(l,0,y,c,p===v.length-1,p===0)},style:ie(a.getItemStyle(),{lineJoin:"bevel"}),textContent:new Pe({style:Xe(i,{text:x})}),textConfig:{position:"inside"},z2:zo*1e4,onclick:ve(s,m)});_.disableLabelAnimation=!0,_.getTextContent().ensureState("emphasis").style=Xe(o,{text:x}),_.ensureState("emphasis").style=d,et(_,n.get("focus"),n.get("blurScope"),n.get("disabled")),this.group.add(_),wF(_,e,m),l+=y+yb}},r.prototype.remove=function(){this.group.removeAll()},r})();function SF(r,e,t,a,n,i){var o=[[n?r:r-Uv,e],[r+t,e],[r+t,e+a],[n?r:r-Uv,e+a]];return!i&&o.splice(2,0,[r+t+Uv,e+a/2]),!n&&o.push([r,e+a/2]),o}function wF(r,e,t){ce(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&sh(t,e)}}var TF=(function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(e,t,a,n,i){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:a,delay:n,easing:i}),!0)},r.prototype.finished=function(e){return this._finishedCallback=e,this},r.prototype.start=function(){for(var e=this,t=this._storage.length,a=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},n=0,i=this._storage.length;n<i;n++){var o=this._storage[n];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:a,aborted:a})}return this},r})();function CF(){return new TF}var ag=ue,xb=Le,_b=3,bb="label",Sb="upperLabel",AF=zo*10,DF=zo*2,MF=zo*3,Xn=bi([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),wb=function(r){var e=Xn(r);return e.stroke=e.fill=e.lineWidth=null,e},nf=Ie(),LF=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._state="ready",t._storage=xs(),t}return e.prototype.render=function(t,a,n,i){var o=a.findComponents({mainType:"series",subType:"treemap",query:i});if(!(_e(o,t)<0)){this.seriesModel=t,this.api=n,this.ecModel=a;var s=["treemapZoomToNode","treemapRootToNode"],l=bl(i,s,t),u=i&&i.type,c=t.layoutInfo,f=!this._oldTree,h=this._storage,v=u==="treemapRootToNode"&&l&&h?{rootNodeGroup:h.nodeGroup[l.node.getRawIndex()],direction:i.direction}:null,d=this._giveContainerGroup(c),p=t.get("animation"),g=this._doRender(d,t,v);p&&!f&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(d,g,t,v):g.renderFinally(),this._resetController(n),this._renderBreadcrumb(t,n,l)}},e.prototype._giveContainerGroup=function(t){var a=this._containerGroup;return a||(a=this._containerGroup=new ag,this._initEvents(a),this.group.add(a)),a.x=t.x,a.y=t.y,a},e.prototype._doRender=function(t,a,n){var i=a.getData().tree,o=this._oldTree,s=xs(),l=xs(),u=this._storage,c=[];function f(y,x,_,b){return IF(a,l,u,n,s,c,y,x,_,b)}p(i.root?[i.root]:[],o&&o.root?[o.root]:[],t,i===o||!o,0);var h=g(u);if(this._oldTree=i,this._storage=l,this._controllerHost){var v=this.seriesModel.layoutInfo,d=i.root.getLayout();d.width===v.width&&d.height===v.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:s,willDeleteEls:h,renderFinally:m};function p(y,x,_,b,S){b?(x=y,L(y,function(A,D){!A.isRemoved()&&C(D,D)})):new Pa(x,y,w,w).add(C).update(C).remove(ve(C,null)).execute();function w(A){return A.getId()}function C(A,D){var M=A!=null?y[A]:null,I=D!=null?x[D]:null,P=f(M,I,_,S);P&&p(M&&M.viewChildren||[],I&&I.viewChildren||[],P,b,S+1)}}function g(y){var x=xs();return y&&L(y,function(_,b){var S=x[b];L(_,function(w){w&&(S.push(w),nf(w).willDelete=!0)})}),x}function m(){L(h,function(y){L(y,function(x){x.parent&&x.parent.remove(x)})}),L(c,function(y){y.invisible=!0,y.dirty()})}},e.prototype._doAnimation=function(t,a,n,i){var o=n.get("animationDurationUpdate"),s=n.get("animationEasing"),l=(ne(o)?0:o)||0,u=(ne(s)?null:s)||"cubicOut",c=CF();L(a.willDeleteEls,function(f,h){L(f,function(v,d){if(!v.invisible){var p=v.parent,g,m=nf(p);if(i&&i.direction==="drillDown")g=p===i.rootNodeGroup?{shape:{x:0,y:0,width:m.nodeWidth,height:m.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var y=0,x=0;m.willDelete||(y=m.nodeWidth/2,x=m.nodeHeight/2),g=h==="nodeGroup"?{x:y,y:x,style:{opacity:0}}:{shape:{x:y,y:x,width:0,height:0},style:{opacity:0}}}g&&c.add(v,g,l,0,u)}})}),L(this._storage,function(f,h){L(f,function(v,d){var p=a.lastsForAnimation[h][d],g={};p&&(v instanceof ue?p.oldX!=null&&(g.x=v.x,g.y=v.y,v.x=p.oldX,v.y=p.oldY):(p.oldShape&&(g.shape=G({},v.shape),v.setShape(p.oldShape)),p.fadein?(v.setStyle("opacity",0),g.style={opacity:1}):v.style.opacity!==1&&(g.style={opacity:1})),c.add(v,g,l,0,u))})},this),this._state="animating",c.finished(Q(function(){this._state="ready",a.renderFinally()},this)).start()},e.prototype._resetController=function(t){var a=this._controller,n=this._controllerHost;n||(this._controllerHost={target:this.group},n=this._controllerHost),a||(a=this._controller=new Xl(t.getZr()),a.enable(this.seriesModel.get("roam")),n.zoomLimit=this.seriesModel.get("scaleLimit"),n.zoom=this.seriesModel.get("zoom"),a.on("pan",Q(this._onPan,this)),a.on("zoom",Q(this._onZoom,this)));var i=new ye(0,0,t.getWidth(),t.getHeight());a.setPointerChecker(function(o,s,l){return i.contain(s,l)})},e.prototype._clearController=function(){var t=this._controller;this._controllerHost=null,t&&(t.dispose(),t=null)},e.prototype._onPan=function(t){if(this._state!=="animating"&&(Math.abs(t.dx)>_b||Math.abs(t.dy)>_b)){var a=this.seriesModel.getData().tree.root;if(!a)return;var n=a.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},e.prototype._onZoom=function(t){var a=t.originX,n=t.originY,i=t.scale;if(this._state!=="animating"){var o=this.seriesModel.getData().tree.root;if(!o)return;var s=o.getLayout();if(!s)return;var l=new ye(s.x,s.y,s.width,s.height),u=null,c=this._controllerHost;u=c.zoomLimit;var f=c.zoom=c.zoom||1;if(f*=i,u){var h=u.min||0,v=u.max||1/0;f=Math.max(Math.min(v,f),h)}var d=f/c.zoom;c.zoom=f;var p=this.seriesModel.layoutInfo;a-=p.x,n-=p.y;var g=or();la(g,g,[-a,-n]),Xg(g,g,[d,d]),la(g,g,[a,n]),l.applyTransform(g),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:l.x,y:l.y,width:l.width,height:l.height}})}},e.prototype._initEvents=function(t){var a=this;t.on("click",function(n){if(a._state==="ready"){var i=a.seriesModel.get("nodeClick",!0);if(i){var o=a.findTarget(n.offsetX,n.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)a._rootToNode(o);else if(i==="zoomToNode")a._zoomToNode(o);else if(i==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&Hc(u,c)}}}}},this)},e.prototype._renderBreadcrumb=function(t,a,n){var i=this;n||(n=t.get("leafDepth",!0)!=null?{node:t.getViewRoot()}:this.findTarget(a.getWidth()/2,a.getHeight()/2),n||(n={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new bF(this.group))).render(t,a,n.node,function(o){i._state!=="animating"&&(ny(t.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=xs(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,a){var n,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(t,a),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)n={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),n},e.type="treemap",e})($e);function xs(){return{nodeGroup:[],background:[],content:[]}}function IF(r,e,t,a,n,i,o,s,l,u){if(!o)return;var c=o.getLayout(),f=r.getData(),h=o.getModel();if(f.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var v=c.width,d=c.height,p=c.borderWidth,g=c.invisible,m=o.getRawIndex(),y=s&&s.getRawIndex(),x=o.viewChildren,_=c.upperHeight,b=x&&x.length,S=h.getModel("itemStyle"),w=h.getModel(["emphasis","itemStyle"]),C=h.getModel(["blur","itemStyle"]),A=h.getModel(["select","itemStyle"]),D=S.get("borderRadius")||0,M=te("nodeGroup",ag);if(!M)return;if(l.add(M),M.x=c.x||0,M.y=c.y||0,M.markRedraw(),nf(M).nodeWidth=v,nf(M).nodeHeight=d,c.isAboveViewRoot)return M;var I=te("background",xb,u,DF);I&&F(M,I,b&&c.upperLabelHeight);var P=h.getModel("emphasis"),k=P.get("focus"),R=P.get("blurScope"),E=P.get("disabled"),B=k==="ancestor"?o.getAncestorsIndices():k==="descendant"?o.getDescendantIndices():k;if(b)ll(M)&&ni(M,!1),I&&(ni(I,!E),f.setItemGraphicEl(o.dataIndex,I),Sp(I,B,R));else{var O=te("content",xb,u,MF);O&&H(M,O),I.disableMorphing=!0,I&&ll(I)&&ni(I,!1),ni(M,!E),f.setItemGraphicEl(o.dataIndex,M);var V=h.getShallow("cursor");V&&O.attr("cursor",V),Sp(M,B,R)}return M;function F(oe,ae,$){var j=ce(ae);if(j.dataIndex=o.dataIndex,j.seriesIndex=r.seriesIndex,ae.setShape({x:0,y:0,width:v,height:d,r:D}),g)Y(ae);else{ae.invisible=!1;var K=o.getVisual("style"),Se=K.stroke,me=wb(S);me.fill=Se;var we=Xn(w);we.fill=w.get("borderColor");var he=Xn(C);he.fill=C.get("borderColor");var Ve=Xn(A);if(Ve.fill=A.get("borderColor"),$){var ct=v-2*p;Z(ae,Se,K.opacity,{x:p,y:0,width:ct,height:_})}else ae.removeTextContent();ae.setStyle(me),ae.ensureState("emphasis").style=we,ae.ensureState("blur").style=he,ae.ensureState("select").style=Ve,Si(ae)}oe.add(ae)}function H(oe,ae){var $=ce(ae);$.dataIndex=o.dataIndex,$.seriesIndex=r.seriesIndex;var j=Math.max(v-2*p,0),K=Math.max(d-2*p,0);if(ae.culling=!0,ae.setShape({x:p,y:p,width:j,height:K,r:D}),g)Y(ae);else{ae.invisible=!1;var Se=o.getVisual("style"),me=Se.fill,we=wb(S);we.fill=me,we.decal=Se.decal;var he=Xn(w),Ve=Xn(C),ct=Xn(A);Z(ae,me,Se.opacity,null),ae.setStyle(we),ae.ensureState("emphasis").style=he,ae.ensureState("blur").style=Ve,ae.ensureState("select").style=ct,Si(ae)}oe.add(ae)}function Y(oe){!oe.invisible&&i.push(oe)}function Z(oe,ae,$,j){var K=h.getModel(j?Sb:bb),Se=pt(h.get("name"),null),me=K.getShallow("show");Pt(oe,bt(h,j?Sb:bb),{defaultText:me?Se:null,inheritColor:ae,defaultOpacity:$,labelFetcher:r,labelDataIndex:o.dataIndex});var we=oe.getTextContent();if(we){var he=we.style,Ve=$g(he.padding||0);j&&(oe.setTextConfig({layoutRect:j}),we.disableLabelLayout=!0),we.beforeUpdate=function(){var it=Math.max((j?j.width:oe.shape.width)-Ve[1]-Ve[3],0),wt=Math.max((j?j.height:oe.shape.height)-Ve[0]-Ve[2],0);(he.width!==it||he.height!==wt)&&we.setStyle({width:it,height:wt})},he.truncateMinChar=2,he.lineOverflow="truncate",J(he,j,c);var ct=we.getState("emphasis");J(ct?ct.style:null,j,c)}}function J(oe,ae,$){var j=oe?oe.text:null;if(!ae&&$.isLeafRoot&&j!=null){var K=r.get("drillDownIcon",!0);oe.text=K?K+" "+j:j}}function te(oe,ae,$,j){var K=y!=null&&t[oe][y],Se=n[oe];return K?(t[oe][y]=null,xe(Se,K)):g||(K=new ae,K instanceof Cr&&(K.z2=PF($,j)),de(Se,K)),e[oe][m]=K}function xe(oe,ae){var $=oe[m]={};ae instanceof ag?($.oldX=ae.x,$.oldY=ae.y):$.oldShape=G({},ae.shape)}function de(oe,ae){var $=oe[m]={},j=o.parentNode,K=ae instanceof ue;if(j&&(!a||a.direction==="drillDown")){var Se=0,me=0,we=n.background[j.getRawIndex()];!a&&we&&we.oldShape&&(Se=we.oldShape.width,me=we.oldShape.height),K?($.oldX=0,$.oldY=me):$.oldShape={x:Se,y:me,width:0,height:0}}$.fadein=!K}}function PF(r,e){return r*AF+e}var Sl=L,kF=se,of=-1,_t=(function(){function r(e){var t=e.mappingMethod,a=e.type,n=this.option=le(e);this.type=a,this.mappingMethod=t,this._normalizeData=NF[t];var i=r.visualHandlers[a];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[t],t==="piecewise"?(Yv(n),RF(n)):t==="category"?n.categories?EF(n):Yv(n,!0):($t(t!=="linear"||n.dataExtent),Yv(n))}return r.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},r.prototype.getNormalizer=function(){return Q(this._normalizeData,this)},r.listVisualTypes=function(){return Me(r.visualHandlers)},r.isValidType=function(e){return r.visualHandlers.hasOwnProperty(e)},r.eachVisual=function(e,t,a){se(e)?L(e,t,a):t.call(a,e)},r.mapVisual=function(e,t,a){var n,i=W(e)?[]:se(e)?{}:(n=!0,null);return r.eachVisual(e,function(o,s){var l=t.call(a,o,s);n?i=l:i[s]=l}),i},r.retrieveVisuals=function(e){var t={},a;return e&&Sl(r.visualHandlers,function(n,i){e.hasOwnProperty(i)&&(t[i]=e[i],a=!0)}),a?t:null},r.prepareVisualTypes=function(e){if(W(e))e=e.slice();else if(kF(e)){var t=[];Sl(e,function(a,n){t.push(n)}),e=t}else return[];return e.sort(function(a,n){return n==="color"&&a!=="color"&&a.indexOf("color")===0?1:-1}),e},r.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},r.findPieceIndex=function(e,t,a){for(var n,i=1/0,o=0,s=t.length;o<s;o++){var l=t[o].value;if(l!=null){if(l===e||q(l)&&l===e+"")return o;a&&h(l,o)}}for(var o=0,s=t.length;o<s;o++){var u=t[o],c=u.interval,f=u.close;if(c){if(c[0]===-1/0){if(Vu(f[1],e,c[1]))return o}else if(c[1]===1/0){if(Vu(f[0],c[0],e))return o}else if(Vu(f[0],c[0],e)&&Vu(f[1],e,c[1]))return o;a&&h(c[0],o),a&&h(c[1],o)}}if(a)return e===1/0?t.length-1:e===-1/0?0:n;function h(v,d){var p=Math.abs(v-e);p<i&&(i=p,n=d)}},r.visualHandlers={color:{applyVisual:_s("color"),getColorMapper:function(){var e=this.option;return Q(e.mappingMethod==="category"?function(t,a){return!a&&(t=this._normalizeData(t)),Ns.call(this,t)}:function(t,a,n){var i=!!n;return!a&&(t=this._normalizeData(t)),n=Dh(t,e.parsedVisual,n),i?n:Ta(n,"rgba")},this)},_normalizedToVisual:{linear:function(e){return Ta(Dh(e,this.option.parsedVisual),"rgba")},category:Ns,piecewise:function(e,t){var a=ig.call(this,t);return a==null&&(a=Ta(Dh(e,this.option.parsedVisual),"rgba")),a},fixed:Zn}},colorHue:zu(function(e,t){return Fs(e,t)}),colorSaturation:zu(function(e,t){return Fs(e,null,t)}),colorLightness:zu(function(e,t){return Fs(e,null,null,t)}),colorAlpha:zu(function(e,t){return Ic(e,t)}),decal:{applyVisual:_s("decal"),_normalizedToVisual:{linear:null,category:Ns,piecewise:null,fixed:null}},opacity:{applyVisual:_s("opacity"),_normalizedToVisual:ng([0,1])},liftZ:{applyVisual:_s("liftZ"),_normalizedToVisual:{linear:Zn,category:Zn,piecewise:Zn,fixed:Zn}},symbol:{applyVisual:function(e,t,a){var n=this.mapValueToVisual(e);a("symbol",n)},_normalizedToVisual:{linear:Tb,category:Ns,piecewise:function(e,t){var a=ig.call(this,t);return a==null&&(a=Tb.call(this,e)),a},fixed:Zn}},symbolSize:{applyVisual:_s("symbolSize"),_normalizedToVisual:ng([0,1])}},r})();function RF(r){var e=r.pieceList;r.hasSpecialVisual=!1,L(e,function(t,a){t.originIndex=a,t.visual!=null&&(r.hasSpecialVisual=!0)})}function EF(r){var e=r.categories,t=r.categoryMap={},a=r.visual;if(Sl(e,function(o,s){t[o]=s}),!W(a)){var n=[];se(a)?Sl(a,function(o,s){var l=t[s];n[l??of]=o}):n[of]=a,a=pM(r,n)}for(var i=e.length-1;i>=0;i--)a[i]==null&&(delete t[e[i]],e.pop())}function Yv(r,e){var t=r.visual,a=[];se(t)?Sl(t,function(i){a.push(i)}):t!=null&&a.push(t);var n={color:1,symbol:1};!e&&a.length===1&&!n.hasOwnProperty(r.type)&&(a[1]=a[0]),pM(r,a)}function zu(r){return{applyVisual:function(e,t,a){var n=this.mapValueToVisual(e);a("color",r(t("color"),n))},_normalizedToVisual:ng([0,1])}}function Tb(r){var e=this.option.visual;return e[Math.round(Fe(r,[0,1],[0,e.length-1],!0))]||{}}function _s(r){return function(e,t,a){a(r,this.mapValueToVisual(e))}}function Ns(r){var e=this.option.visual;return e[this.option.loop&&r!==of?r%e.length:r]}function Zn(){return this.option.visual[0]}function ng(r){return{linear:function(e){return Fe(e,r,this.option.visual,!0)},category:Ns,piecewise:function(e,t){var a=ig.call(this,t);return a==null&&(a=Fe(e,r,this.option.visual,!0)),a},fixed:Zn}}function ig(r){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var a=_t.findPieceIndex(r,t),n=t[a];if(n&&n.visual)return n.visual[this.type]}}function pM(r,e){return r.visual=e,r.type==="color"&&(r.parsedVisual=U(e,function(t){var a=sr(t);return a||[0,0,0,1]})),e}var NF={linear:function(r){return Fe(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var e=this.option.pieceList,t=_t.findPieceIndex(r,e,!0);if(t!=null)return Fe(t,[0,e.length-1],[0,1],!0)},category:function(r){var e=this.option.categories?this.option.categoryMap[r]:r;return e??of},fixed:nt};function Vu(r,e,t){return r?e<=t:e<t}var OF="itemStyle",gM=Ie();const BF={seriesType:"treemap",reset:function(r){var e=r.getData().tree,t=e.root;t.isRemoved()||mM(t,{},r.getViewRoot().getAncestors(),r)}};function mM(r,e,t,a){var n=r.getModel(),i=r.getLayout(),o=r.hostTree.data;if(!(!i||i.invisible||!i.isInView)){var s=n.getModel(OF),l=zF(s,e,a),u=o.ensureUniqueItemVisual(r.dataIndex,"style"),c=s.get("borderColor"),f=s.get("borderColorSaturation"),h;f!=null&&(h=Cb(l),c=VF(f,h)),u.stroke=c;var v=r.viewChildren;if(!v||!v.length)h=Cb(l),u.fill=h;else{var d=FF(r,n,i,s,l,v);L(v,function(p,g){if(p.depth>=t.length||p===t[p.depth]){var m=GF(n,l,p,g,d,a);mM(p,m,t,a)}})}}}function zF(r,e,t){var a=G({},e),n=t.designatedVisualItemStyle;return L(["color","colorAlpha","colorSaturation"],function(i){n[i]=e[i];var o=r.get(i);n[i]=null,o!=null&&(a[i]=o)}),a}function Cb(r){var e=Xv(r,"color");if(e){var t=Xv(r,"colorAlpha"),a=Xv(r,"colorSaturation");return a&&(e=Fs(e,null,null,a)),t&&(e=Ic(e,t)),e}}function VF(r,e){return e!=null?Fs(e,null,null,r):null}function Xv(r,e){var t=r[e];if(t!=null&&t!=="none")return t}function FF(r,e,t,a,n,i){if(!(!i||!i.length)){var o=Zv(e,"color")||n.color!=null&&n.color!=="none"&&(Zv(e,"colorAlpha")||Zv(e,"colorSaturation"));if(o){var s=e.get("visualMin"),l=e.get("visualMax"),u=t.dataExtent.slice();s!=null&&s<u[0]&&(u[0]=s),l!=null&&l>u[1]&&(u[1]=l);var c=e.get("colorMappingBy"),f={type:o.name,dataExtent:u,visual:o.range};f.type==="color"&&(c==="index"||c==="id")?(f.mappingMethod="category",f.loop=!0):f.mappingMethod="linear";var h=new _t(f);return gM(h).drColorMappingBy=c,h}}}function Zv(r,e){var t=r.get(e);return W(t)&&t.length?{name:e,range:t}:null}function GF(r,e,t,a,n,i){var o=G({},e);if(n){var s=n.type,l=s==="color"&&gM(n).drColorMappingBy,u=l==="index"?a:l==="id"?i.mapIdToIndex(t.getId()):t.getValue(r.get("visualDimension"));o[s]=n.mapValueToVisual(u)}return o}var wl=Math.max,sf=Math.min,Ab=Ct,iy=L,yM=["itemStyle","borderWidth"],HF=["itemStyle","gapWidth"],jF=["upperLabel","show"],WF=["upperLabel","height"];const $F={seriesType:"treemap",reset:function(r,e,t,a){var n=t.getWidth(),i=t.getHeight(),o=r.option,s=gt(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),l=o.size||[],u=X(Ab(s.width,l[0]),n),c=X(Ab(s.height,l[1]),i),f=a&&a.type,h=["treemapZoomToNode","treemapRootToNode"],v=bl(a,h,r),d=f==="treemapRender"||f==="treemapMove"?a.rootRect:null,p=r.getViewRoot(),g=hM(p);if(f!=="treemapMove"){var m=f==="treemapZoomToNode"?KF(r,v,p,u,c):d?[d.width,d.height]:[u,c],y=o.sort;y&&y!=="asc"&&y!=="desc"&&(y="desc");var x={squareRatio:o.squareRatio,sort:y,leafDepth:o.leafDepth};p.hostTree.clearLayouts();var _={x:0,y:0,width:m[0],height:m[1],area:m[0]*m[1]};p.setLayout(_),xM(p,x,!1,0),_=p.getLayout(),iy(g,function(S,w){var C=(g[w+1]||p).getValue();S.setLayout(G({dataExtent:[C,C],borderWidth:0,upperHeight:0},_))})}var b=r.getData().tree.root;b.setLayout(JF(s,d,v),!0),r.setLayoutInfo(s),_M(b,new ye(-s.x,-s.y,n,i),g,p,0)}};function xM(r,e,t,a){var n,i;if(!r.isRemoved()){var o=r.getLayout();n=o.width,i=o.height;var s=r.getModel(),l=s.get(yM),u=s.get(HF)/2,c=bM(s),f=Math.max(l,c),h=l-u,v=f-u;r.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:c},!0),n=wl(n-2*h,0),i=wl(i-h-v,0);var d=n*i,p=UF(r,s,d,e,t,a);if(p.length){var g={x:h,y:v,width:n,height:i},m=sf(n,i),y=1/0,x=[];x.area=0;for(var _=0,b=p.length;_<b;){var S=p[_];x.push(S),x.area+=S.getLayout().area;var w=qF(x,m,e.squareRatio);w<=y?(_++,y=w):(x.area-=x.pop().getLayout().area,Db(x,m,g,u,!1),m=sf(g.width,g.height),x.length=x.area=0,y=1/0)}if(x.length&&Db(x,m,g,u,!0),!t){var C=s.get("childrenVisibleMin");C!=null&&d<C&&(t=!0)}for(var _=0,b=p.length;_<b;_++)xM(p[_],e,t,a+1)}}}function UF(r,e,t,a,n,i){var o=r.children||[],s=a.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=a.leafDepth!=null&&a.leafDepth<=i;if(n&&!l)return r.viewChildren=[];o=ze(o,function(v){return!v.isRemoved()}),XF(o,s);var u=ZF(e,o,s);if(u.sum===0)return r.viewChildren=[];if(u.sum=YF(e,t,u.sum,s,o),u.sum===0)return r.viewChildren=[];for(var c=0,f=o.length;c<f;c++){var h=o[c].getValue()/u.sum*t;o[c].setLayout({area:h})}return l&&(o.length&&r.setLayout({isLeafRoot:!0},!0),o.length=0),r.viewChildren=o,r.setLayout({dataExtent:u.dataExtent},!0),o}function YF(r,e,t,a,n){if(!a)return t;for(var i=r.get("visibleMin"),o=n.length,s=o,l=o-1;l>=0;l--){var u=n[a==="asc"?o-l-1:l].getValue();u/t*e<i&&(s=l,t-=u)}return a==="asc"?n.splice(0,o-s):n.splice(s,o-s),t}function XF(r,e){return e&&r.sort(function(t,a){var n=e==="asc"?t.getValue()-a.getValue():a.getValue()-t.getValue();return n===0?e==="asc"?t.dataIndex-a.dataIndex:a.dataIndex-t.dataIndex:n}),r}function ZF(r,e,t){for(var a=0,n=0,i=e.length;n<i;n++)a+=e[n].getValue();var o=r.get("visualDimension"),s;return!e||!e.length?s=[NaN,NaN]:o==="value"&&t?(s=[e[e.length-1].getValue(),e[0].getValue()],t==="asc"&&s.reverse()):(s=[1/0,-1/0],iy(e,function(l){var u=l.getValue(o);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:a,dataExtent:s}}function qF(r,e,t){for(var a=0,n=1/0,i=0,o=void 0,s=r.length;i<s;i++)o=r[i].getLayout().area,o&&(o<n&&(n=o),o>a&&(a=o));var l=r.area*r.area,u=e*e*t;return l?wl(u*a/l,l/(u*n)):1/0}function Db(r,e,t,a,n){var i=e===t.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=t[s[i]],c=e?r.area/e:0;(n||c>t[l[o]])&&(c=t[l[o]]);for(var f=0,h=r.length;f<h;f++){var v=r[f],d={},p=c?v.getLayout().area/c:0,g=d[l[o]]=wl(c-2*a,0),m=t[s[i]]+t[l[i]]-u,y=f===h-1||m<p?m:p,x=d[l[i]]=wl(y-2*a,0);d[s[o]]=t[s[o]]+sf(a,g/2),d[s[i]]=u+sf(a,x/2),u+=y,v.setLayout(d,!0)}t[s[o]]+=c,t[l[o]]-=c}function KF(r,e,t,a,n){var i=(e||{}).node,o=[a,n];if(!i||i===t)return o;for(var s,l=a*n,u=l*r.option.zoomToNodeRatio;s=i.parentNode;){for(var c=0,f=s.children,h=0,v=f.length;h<v;h++)c+=f[h].getValue();var d=i.getValue();if(d===0)return o;u*=c/d;var p=s.getModel(),g=p.get(yM),m=Math.max(g,bM(p));u+=4*g*g+(3*g+m)*Math.pow(u,.5),u>V0&&(u=V0),i=s}u<l&&(u=l);var y=Math.pow(u/l,.5);return[a*y,n*y]}function JF(r,e,t){if(e)return{x:e.x,y:e.y};var a={x:0,y:0};if(!t)return a;var n=t.node,i=n.getLayout();if(!i)return a;for(var o=[i.width/2,i.height/2],s=n;s;){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:r.width/2-o[0],y:r.height/2-o[1]}}function _M(r,e,t,a,n){var i=r.getLayout(),o=t[n],s=o&&o===r;if(!(o&&!s||n===t.length&&r!==a)){r.setLayout({isInView:!0,invisible:!s&&!e.intersect(i),isAboveViewRoot:s},!0);var l=new ye(e.x-i.x,e.y-i.y,e.width,e.height);iy(r.viewChildren||[],function(u){_M(u,l,t,a,n+1)})}}function bM(r){return r.get(jF)?r.get(WF):0}function QF(r){r.registerSeriesModel(yF),r.registerChartView(LF),r.registerVisual(BF),r.registerLayout($F),mF(r)}function eG(r){var e=r.findComponents({mainType:"legend"});!e||!e.length||r.eachSeriesByType("graph",function(t){var a=t.getCategoriesData(),n=t.getGraph(),i=n.data,o=a.mapArray(a.getName);i.filterSelf(function(s){var l=i.getItemModel(s),u=l.getShallow("category");if(u!=null){ke(u)&&(u=o[u]);for(var c=0;c<e.length;c++)if(!e[c].isSelected(u))return!1}return!0})})}function tG(r){var e={};r.eachSeriesByType("graph",function(t){var a=t.getCategoriesData(),n=t.getData(),i={};a.each(function(o){var s=a.getName(o);i["ec-"+s]=o;var l=a.getItemModel(o),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=t.getColorFromPalette(s,e)),a.setItemVisual(o,"style",u);for(var c=["symbol","symbolSize","symbolKeepAspect"],f=0;f<c.length;f++){var h=l.getShallow(c[f],!0);h!=null&&a.setItemVisual(o,c[f],h)}}),a.count()&&n.each(function(o){var s=n.getItemModel(o),l=s.getShallow("category");if(l!=null){q(l)&&(l=i["ec-"+l]);var u=a.getItemVisual(l,"style"),c=n.ensureUniqueItemVisual(o,"style");G(c,u);for(var f=["symbol","symbolSize","symbolKeepAspect"],h=0;h<f.length;h++)n.setItemVisual(o,f[h],a.getItemVisual(l,f[h]))}})})}function Fu(r){return r instanceof Array||(r=[r,r]),r}function rG(r){r.eachSeriesByType("graph",function(e){var t=e.getGraph(),a=e.getEdgeData(),n=Fu(e.get("edgeSymbol")),i=Fu(e.get("edgeSymbolSize"));a.setVisual("fromSymbol",n&&n[0]),a.setVisual("toSymbol",n&&n[1]),a.setVisual("fromSymbolSize",i&&i[0]),a.setVisual("toSymbolSize",i&&i[1]),a.setVisual("style",e.getModel("lineStyle").getLineStyle()),a.each(function(o){var s=a.getItemModel(o),l=t.getEdgeByIndex(o),u=Fu(s.getShallow("symbol",!0)),c=Fu(s.getShallow("symbolSize",!0)),f=s.getModel("lineStyle").getLineStyle(),h=a.ensureUniqueItemVisual(o,"style");switch(G(h,f),h.stroke){case"source":{var v=l.node1.getVisual("style");h.stroke=v&&v.fill;break}case"target":{var v=l.node2.getVisual("style");h.stroke=v&&v.fill;break}}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),c[0]&&l.setVisual("fromSymbolSize",c[0]),c[1]&&l.setVisual("toSymbolSize",c[1])})})}var og="-->",lh=function(r){return r.get("autoCurveness")||null},SM=function(r,e){var t=lh(r),a=20,n=[];if(ke(t))a=t;else if(W(t)){r.__curvenessList=t;return}e>a&&(a=e);var i=a%2?a+2:a+3;n=[];for(var o=0;o<i;o++)n.push((o%2?o+1:o)/10*(o%2?-1:1));r.__curvenessList=n},Tl=function(r,e,t){var a=[r.id,r.dataIndex].join("."),n=[e.id,e.dataIndex].join(".");return[t.uid,a,n].join(og)},wM=function(r){var e=r.split(og);return[e[0],e[2],e[1]].join(og)},aG=function(r,e){var t=Tl(r.node1,r.node2,e);return e.__edgeMap[t]},nG=function(r,e){var t=sg(Tl(r.node1,r.node2,e),e),a=sg(Tl(r.node2,r.node1,e),e);return t+a},sg=function(r,e){var t=e.__edgeMap;return t[r]?t[r].length:0};function iG(r){lh(r)&&(r.__curvenessList=[],r.__edgeMap={},SM(r))}function oG(r,e,t,a){if(lh(t)){var n=Tl(r,e,t),i=t.__edgeMap,o=i[wM(n)];i[n]&&!o?i[n].isForward=!0:o&&i[n]&&(o.isForward=!0,i[n].isForward=!1),i[n]=i[n]||[],i[n].push(a)}}function oy(r,e,t,a){var n=lh(e),i=W(n);if(!n)return null;var o=aG(r,e);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===t){s=l;break}var u=nG(r,e);SM(e,u),r.lineStyle=r.lineStyle||{};var c=Tl(r.node1,r.node2,e),f=e.__curvenessList,h=i||u%2?0:1;if(o.isForward)return f[h+s];var v=wM(c),d=sg(v,e),p=f[s+d+h];return a?i?n&&n[0]===0?(d+h)%2?p:-p:((d%2?0:1)+h)%2?p:-p:(d+h)%2?p:-p:f[s+d+h]}function TM(r){var e=r.coordinateSystem;if(!(e&&e.type!=="view")){var t=r.getGraph();t.eachNode(function(a){var n=a.getModel();a.setLayout([+n.get("x"),+n.get("y")])}),sy(t,r)}}function sy(r,e){r.eachEdge(function(t,a){var n=ia(t.getModel().get(["lineStyle","curveness"]),-oy(t,e,a,!0),0),i=Sa(t.node1.getLayout()),o=Sa(t.node2.getLayout()),s=[i,o];+n&&s.push([(i[0]+o[0])/2-(i[1]-o[1])*n,(i[1]+o[1])/2-(o[0]-i[0])*n]),t.setLayout(s)})}function sG(r,e){r.eachSeriesByType("graph",function(t){var a=t.get("layout"),n=t.coordinateSystem;if(n&&n.type!=="view"){var i=t.getData(),o=[];L(n.dimensions,function(h){o=o.concat(i.mapDimensionsAll(h))});for(var s=0;s<i.count();s++){for(var l=[],u=!1,c=0;c<o.length;c++){var f=i.get(o[c],s);isNaN(f)||(u=!0),l.push(f)}u?i.setItemLayout(s,n.dataToPoint(l)):i.setItemLayout(s,[NaN,NaN])}sy(i.graph,t)}else(!a||a==="none")&&TM(t)})}function Os(r){var e=r.coordinateSystem;if(e.type!=="view")return 1;var t=r.option.nodeScaleRatio,a=e.scaleX,n=e.getZoom(),i=(n-1)*t+1;return i/a}function Bs(r){var e=r.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var Mb=Math.PI,qv=[];function ly(r,e,t,a){var n=r.coordinateSystem;if(!(n&&n.type!=="view")){var i=n.getBoundingRect(),o=r.getData(),s=o.graph,l=i.width/2+i.x,u=i.height/2+i.y,c=Math.min(i.width,i.height)/2,f=o.count();if(o.setLayout({cx:l,cy:u}),!!f){if(t){var h=n.pointToData(a),v=h[0],d=h[1],p=[v-l,d-u];No(p,p),ac(p,p,c),t.setLayout([l+p[0],u+p[1]],!0);var g=r.get(["circular","rotateLabel"]);CM(t,g,l,u)}lG[e](r,s,o,c,l,u,f),s.eachEdge(function(m,y){var x=ia(m.getModel().get(["lineStyle","curveness"]),oy(m,r,y),0),_=Sa(m.node1.getLayout()),b=Sa(m.node2.getLayout()),S,w=(_[0]+b[0])/2,C=(_[1]+b[1])/2;+x&&(x*=3,S=[l*x+w*(1-x),u*x+C*(1-x)]),m.setLayout([_,b,S])})}}}var lG={value:function(r,e,t,a,n,i,o){var s=0,l=t.getSum("value"),u=Math.PI*2/(l||o);e.eachNode(function(c){var f=c.getValue("value"),h=u*(l?f:1)/2;s+=h,c.setLayout([a*Math.cos(s)+n,a*Math.sin(s)+i]),s+=h})},symbolSize:function(r,e,t,a,n,i,o){var s=0;qv.length=o;var l=Os(r);e.eachNode(function(f){var h=Bs(f);isNaN(h)&&(h=2),h<0&&(h=0),h*=l;var v=Math.asin(h/2/a);isNaN(v)&&(v=Mb/2),qv[f.dataIndex]=v,s+=v*2});var u=(2*Mb-s)/o/2,c=0;e.eachNode(function(f){var h=u+qv[f.dataIndex];c+=h,(!f.getLayout()||!f.getLayout().fixed)&&f.setLayout([a*Math.cos(c)+n,a*Math.sin(c)+i]),c+=h})}};function CM(r,e,t,a){var n=r.getGraphicEl();if(n){var i=r.getModel(),o=i.get(["label","rotate"])||0,s=n.getSymbolPath();if(e){var l=r.getLayout(),u=Math.atan2(l[1]-a,l[0]-t);u<0&&(u=Math.PI*2+u);var c=l[0]<t;c&&(u=u-Math.PI);var f=c?"left":"right";s.setTextConfig({rotation:-u,position:f,origin:"center"});var h=s.ensureState("emphasis");G(h.textConfig||(h.textConfig={}),{position:f})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function uG(r){r.eachSeriesByType("graph",function(e){e.get("layout")==="circular"&&ly(e,"symbolSize")})}var Ki=Yd;function cG(r,e,t){for(var a=r,n=e,i=t.rect,o=i.width,s=i.height,l=[i.x+o/2,i.y+s/2],u=t.gravity==null?.1:t.gravity,c=0;c<a.length;c++){var f=a[c];f.p||(f.p=Ai(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),f.pp=Sa(f.p),f.edges=null}var h=t.friction==null?.6:t.friction,v=h,d,p;return{warmUp:function(){v=h*.8},setFixed:function(g){a[g].fixed=!0},setUnfixed:function(g){a[g].fixed=!1},beforeStep:function(g){d=g},afterStep:function(g){p=g},step:function(g){d&&d(a,n);for(var m=[],y=a.length,x=0;x<n.length;x++){var _=n[x];if(!_.ignoreForceLayout){var b=_.n1,S=_.n2;ri(m,S.p,b.p);var w=Xd(m)-_.d,C=S.w/(b.w+S.w);isNaN(C)&&(C=0),No(m,m),!b.fixed&&Ki(b.p,b.p,m,C*w*v),!S.fixed&&Ki(S.p,S.p,m,-(1-C)*w*v)}}for(var x=0;x<y;x++){var A=a[x];A.fixed||(ri(m,l,A.p),Ki(A.p,A.p,m,u*v))}for(var x=0;x<y;x++)for(var b=a[x],D=x+1;D<y;D++){var S=a[D];ri(m,S.p,b.p);var w=Xd(m);w===0&&(z5(m,Math.random()-.5,Math.random()-.5),w=1);var M=(b.rep+S.rep)/w/w;!b.fixed&&Ki(b.pp,b.pp,m,M),!S.fixed&&Ki(S.pp,S.pp,m,-M)}for(var I=[],x=0;x<y;x++){var A=a[x];A.fixed||(ri(I,A.p,A.pp),Ki(A.p,A.p,I,v),Vt(A.pp,A.p))}v=v*.992;var P=v<.01;p&&p(a,n,P),g&&g(P)}}}function fG(r){r.eachSeriesByType("graph",function(e){var t=e.coordinateSystem;if(!(t&&t.type!=="view"))if(e.get("layout")==="force"){var a=e.preservedPoints||{},n=e.getGraph(),i=n.data,o=n.edgeData,s=e.getModel("force"),l=s.get("initLayout");e.preservedPoints?i.each(function(x){var _=i.getId(x);i.setItemLayout(x,a[_]||[NaN,NaN])}):!l||l==="none"?TM(e):l==="circular"&&ly(e,"value");var u=i.getDataExtent("value"),c=o.getDataExtent("value"),f=s.get("repulsion"),h=s.get("edgeLength"),v=W(f)?f:[f,f],d=W(h)?h:[h,h];d=[d[1],d[0]];var p=i.mapArray("value",function(x,_){var b=i.getItemLayout(_),S=Fe(x,u,v);return isNaN(S)&&(S=(v[0]+v[1])/2),{w:S,rep:S,fixed:i.getItemModel(_).get("fixed"),p:!b||isNaN(b[0])||isNaN(b[1])?null:b}}),g=o.mapArray("value",function(x,_){var b=n.getEdgeByIndex(_),S=Fe(x,c,d);isNaN(S)&&(S=(d[0]+d[1])/2);var w=b.getModel(),C=ia(b.getModel().get(["lineStyle","curveness"]),-oy(b,e,_,!0),0);return{n1:p[b.node1.dataIndex],n2:p[b.node2.dataIndex],d:S,curveness:C,ignoreForceLayout:w.get("ignoreForceLayout")}}),m=t.getBoundingRect(),y=cG(p,g,{rect:m,gravity:s.get("gravity"),friction:s.get("friction")});y.beforeStep(function(x,_){for(var b=0,S=x.length;b<S;b++)x[b].fixed&&Vt(x[b].p,n.getNodeByIndex(b).getLayout())}),y.afterStep(function(x,_,b){for(var S=0,w=x.length;S<w;S++)x[S].fixed||n.getNodeByIndex(S).setLayout(x[S].p),a[i.getId(S)]=x[S].p;for(var S=0,w=_.length;S<w;S++){var C=_[S],A=n.getEdgeByIndex(S),D=C.n1.p,M=C.n2.p,I=A.getLayout();I=I?I.slice():[],I[0]=I[0]||[],I[1]=I[1]||[],Vt(I[0],D),Vt(I[1],M),+C.curveness&&(I[2]=[(D[0]+M[0])/2-(D[1]-M[1])*C.curveness,(D[1]+M[1])/2-(M[0]-D[0])*C.curveness]),A.setLayout(I)}}),e.forceLayout=y,e.preservedPoints=a,y.step()}else e.forceLayout=null})}function hG(r,e,t){var a=G(r.getBoxLayoutParams(),{aspect:t});return gt(a,{width:e.getWidth(),height:e.getHeight()})}function vG(r,e){var t=[];return r.eachSeriesByType("graph",function(a){var n=a.get("coordinateSystem");if(!n||n==="view"){var i=a.getData(),o=i.mapArray(function(g){var m=i.getItemModel(g);return[+m.get("x"),+m.get("y")]}),s=[],l=[];Nf(o,s,l),l[0]-s[0]===0&&(l[0]+=1,s[0]-=1),l[1]-s[1]===0&&(l[1]+=1,s[1]-=1);var u=(l[0]-s[0])/(l[1]-s[1]),c=hG(a,e,u);isNaN(u)&&(s=[c.x,c.y],l=[c.x+c.width,c.y+c.height]);var f=l[0]-s[0],h=l[1]-s[1],v=c.width,d=c.height,p=a.coordinateSystem=new Zl;p.zoomLimit=a.get("scaleLimit"),p.setBoundingRect(s[0],s[1],f,h),p.setViewRect(c.x,c.y,v,d),p.setCenter(a.get("center"),e),p.setZoom(a.get("zoom")),t.push(p)}}),t}var Lb=yt.prototype,Kv=El.prototype,AM=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r})();(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(AM);function Jv(r){return isNaN(+r.cpx1)||isNaN(+r.cpy1)}var dG=(function(r){z(e,r);function e(t){var a=r.call(this,t)||this;return a.type="ec-line",a}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new AM},e.prototype.buildPath=function(t,a){Jv(a)?Lb.buildPath.call(this,t,a):Kv.buildPath.call(this,t,a)},e.prototype.pointAt=function(t){return Jv(this.shape)?Lb.pointAt.call(this,t):Kv.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var a=this.shape,n=Jv(a)?[a.x2-a.x1,a.y2-a.y1]:Kv.tangentAt.call(this,t);return No(n,n)},e})(Ce),Qv=["fromSymbol","toSymbol"];function Ib(r){return"_"+r+"Type"}function Pb(r,e,t){var a=e.getItemVisual(t,r);if(!a||a==="none")return a;var n=e.getItemVisual(t,r+"Size"),i=e.getItemVisual(t,r+"Rotate"),o=e.getItemVisual(t,r+"Offset"),s=e.getItemVisual(t,r+"KeepAspect"),l=Yo(n),u=Ii(o||0,l);return a+l+u+(i||"")+(s||"")}function kb(r,e,t){var a=e.getItemVisual(t,r);if(!(!a||a==="none")){var n=e.getItemVisual(t,r+"Size"),i=e.getItemVisual(t,r+"Rotate"),o=e.getItemVisual(t,r+"Offset"),s=e.getItemVisual(t,r+"KeepAspect"),l=Yo(n),u=Ii(o||0,l),c=lt(a,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=i==null||isNaN(i)?void 0:+i*Math.PI/180||0,c.name=r,c}}function pG(r){var e=new dG({name:"line",subPixelOptimize:!0});return lg(e.shape,r),e}function lg(r,e){r.x1=e[0][0],r.y1=e[0][1],r.x2=e[1][0],r.y2=e[1][1],r.percent=1;var t=e[2];t?(r.cpx1=t[0],r.cpy1=t[1]):(r.cpx1=NaN,r.cpy1=NaN)}var uy=(function(r){z(e,r);function e(t,a,n){var i=r.call(this)||this;return i._createLine(t,a,n),i}return e.prototype._createLine=function(t,a,n){var i=t.hostModel,o=t.getItemLayout(a),s=pG(o);s.shape.percent=0,Je(s,{shape:{percent:1}},i,a),this.add(s),L(Qv,function(l){var u=kb(l,t,a);this.add(u),this[Ib(l)]=Pb(l,t,a)},this),this._updateCommonStl(t,a,n)},e.prototype.updateData=function(t,a,n){var i=t.hostModel,o=this.childOfName("line"),s=t.getItemLayout(a),l={shape:{}};lg(l.shape,s),Ee(o,l,i,a),L(Qv,function(u){var c=Pb(u,t,a),f=Ib(u);if(this[f]!==c){this.remove(this.childOfName(u));var h=kb(u,t,a);this.add(h)}this[f]=c},this),this._updateCommonStl(t,a,n)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,a,n){var i=t.hostModel,o=this.childOfName("line"),s=n&&n.emphasisLineStyle,l=n&&n.blurLineStyle,u=n&&n.selectLineStyle,c=n&&n.labelStatesModels,f=n&&n.emphasisDisabled,h=n&&n.focus,v=n&&n.blurScope;if(!n||t.hasItemOption){var d=t.getItemModel(a),p=d.getModel("emphasis");s=p.getModel("lineStyle").getLineStyle(),l=d.getModel(["blur","lineStyle"]).getLineStyle(),u=d.getModel(["select","lineStyle"]).getLineStyle(),f=p.get("disabled"),h=p.get("focus"),v=p.get("blurScope"),c=bt(d)}var g=t.getItemVisual(a,"style"),m=g.stroke;o.useStyle(g),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,L(Qv,function(S){var w=this.childOfName(S);if(w){w.setColor(m),w.style.opacity=g.opacity;for(var C=0;C<Ut.length;C++){var A=Ut[C],D=o.getState(A);if(D){var M=D.style||{},I=w.ensureState(A),P=I.style||(I.style={});M.stroke!=null&&(P[w.__isEmptyBrush?"stroke":"fill"]=M.stroke),M.opacity!=null&&(P.opacity=M.opacity)}}w.markRedraw()}},this);var y=i.getRawValue(a);Pt(this,c,{labelDataIndex:a,labelFetcher:{getFormattedLabel:function(S,w){return i.getFormattedLabel(S,w,t.dataType)}},inheritColor:m||"#000",defaultOpacity:g.opacity,defaultText:(y==null?t.getName(a):isFinite(y)?tt(y):y)+""});var x=this.getTextContent();if(x){var _=c.normal;x.__align=x.style.align,x.__verticalAlign=x.style.verticalAlign,x.__position=_.get("position")||"middle";var b=_.get("distance");W(b)||(b=[b,b]),x.__labelDistance=b}this.setTextConfig({position:null,local:!0,inside:!1}),et(this,h,v,f)},e.prototype.highlight=function(){La(this)},e.prototype.downplay=function(){Ia(this)},e.prototype.updateLayout=function(t,a){this.setLinePoints(t.getItemLayout(a))},e.prototype.setLinePoints=function(t){var a=this.childOfName("line");lg(a.shape,t),a.dirty()},e.prototype.beforeUpdate=function(){var t=this,a=t.childOfName("fromSymbol"),n=t.childOfName("toSymbol"),i=t.getTextContent();if(!a&&!n&&(!i||i.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=t.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,c=l.pointAt(0),f=l.pointAt(u),h=ri([],f,c);No(h,h);function v(D,M){var I=D.__specifiedRotation;if(I==null){var P=l.tangentAt(M);D.attr("rotation",(M===1?-1:1)*Math.PI/2-Math.atan2(P[1],P[0]))}else D.attr("rotation",I)}if(a&&(a.setPosition(c),v(a,0),a.scaleX=a.scaleY=o*u,a.markRedraw()),n&&(n.setPosition(f),v(n,1),n.scaleX=n.scaleY=o*u,n.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var d=void 0,p=void 0,g=i.__labelDistance,m=g[0]*o,y=g[1]*o,x=u/2,_=l.tangentAt(x),b=[_[1],-_[0]],S=l.pointAt(x);b[1]>0&&(b[0]=-b[0],b[1]=-b[1]);var w=_[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var C=-Math.atan2(_[1],_[0]);f[0]<c[0]&&(C=Math.PI+C),i.rotation=C}var A=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":A=-y,p="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":A=y,p="top";break;default:A=0,p="middle"}switch(i.__position){case"end":i.x=h[0]*m+f[0],i.y=h[1]*y+f[1],d=h[0]>.8?"left":h[0]<-.8?"right":"center",p=h[1]>.8?"top":h[1]<-.8?"bottom":"middle";break;case"start":i.x=-h[0]*m+c[0],i.y=-h[1]*y+c[1],d=h[0]>.8?"right":h[0]<-.8?"left":"center",p=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=m*w+c[0],i.y=c[1]+A,d=_[0]<0?"right":"left",i.originX=-m*w,i.originY=-A;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=S[0],i.y=S[1]+A,d="center",i.originY=-A;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-m*w+f[0],i.y=f[1]+A,d=_[0]>=0?"right":"left",i.originX=m*w,i.originY=-A;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||p,align:i.__align||d})}},e})(ue),cy=(function(){function r(e){this.group=new ue,this._LineCtor=e||uy}return r.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var a=this,n=a.group,i=a._lineData;a._lineData=e,i||n.removeAll();var o=Rb(e);e.diff(i).add(function(s){t._doAdd(e,s,o)}).update(function(s,l){t._doUpdate(i,e,l,s,o)}).remove(function(s){n.remove(i.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,a){t.updateLayout(e,a)},this)},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Rb(e),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function a(s){!s.isGroup&&!gG(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var n=e.start;n<e.end;n++){var i=t.getItemLayout(n);if(ed(i)){var o=new this._LineCtor(t,n,this._seriesScope);o.traverse(a),this.group.add(o),t.setItemGraphicEl(n,o),this._progressiveEls.push(o)}}},r.prototype.remove=function(){this.group.removeAll()},r.prototype.eachRendered=function(e){_n(this._progressiveEls||this.group,e)},r.prototype._doAdd=function(e,t,a){var n=e.getItemLayout(t);if(ed(n)){var i=new this._LineCtor(e,t,a);e.setItemGraphicEl(t,i),this.group.add(i)}},r.prototype._doUpdate=function(e,t,a,n,i){var o=e.getItemGraphicEl(a);if(!ed(t.getItemLayout(n))){this.group.remove(o);return}o?o.updateData(t,n,i):o=new this._LineCtor(t,n,i),t.setItemGraphicEl(n,o),this.group.add(o)},r})();function gG(r){return r.animators&&r.animators.length>0}function Rb(r){var e=r.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:bt(e)}}function Eb(r){return isNaN(r[0])||isNaN(r[1])}function ed(r){return r&&!Eb(r[0])&&!Eb(r[1])}var td=[],rd=[],ad=[],Ji=Tt,nd=ci,Nb=Math.abs;function Ob(r,e,t){for(var a=r[0],n=r[1],i=r[2],o=1/0,s,l=t*t,u=.1,c=.1;c<=.9;c+=.1){td[0]=Ji(a[0],n[0],i[0],c),td[1]=Ji(a[1],n[1],i[1],c);var f=Nb(nd(td,e)-l);f<o&&(o=f,s=c)}for(var h=0;h<32;h++){var v=s+u;rd[0]=Ji(a[0],n[0],i[0],s),rd[1]=Ji(a[1],n[1],i[1],s),ad[0]=Ji(a[0],n[0],i[0],v),ad[1]=Ji(a[1],n[1],i[1],v);var f=nd(rd,e)-l;if(Nb(f)<.01)break;var d=nd(ad,e)-l;u/=2,f<0?d>=0?s=s+u:s=s-u:d>=0?s=s-u:s=s+u}return s}function id(r,e){var t=[],a=rl,n=[[],[],[]],i=[[],[]],o=[];e/=2,r.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),f=s.getVisual("toSymbol");u.__original||(u.__original=[Sa(u[0]),Sa(u[1])],u[2]&&u.__original.push(Sa(u[2])));var h=u.__original;if(u[2]!=null){if(Vt(n[0],h[0]),Vt(n[1],h[2]),Vt(n[2],h[1]),c&&c!=="none"){var v=Bs(s.node1),d=Ob(n,h[0],v*e);a(n[0][0],n[1][0],n[2][0],d,t),n[0][0]=t[3],n[1][0]=t[4],a(n[0][1],n[1][1],n[2][1],d,t),n[0][1]=t[3],n[1][1]=t[4]}if(f&&f!=="none"){var v=Bs(s.node2),d=Ob(n,h[1],v*e);a(n[0][0],n[1][0],n[2][0],d,t),n[1][0]=t[1],n[2][0]=t[2],a(n[0][1],n[1][1],n[2][1],d,t),n[1][1]=t[1],n[2][1]=t[2]}Vt(u[0],n[0]),Vt(u[1],n[2]),Vt(u[2],n[1])}else{if(Vt(i[0],h[0]),Vt(i[1],h[1]),ri(o,i[1],i[0]),No(o,o),c&&c!=="none"){var v=Bs(s.node1);Yd(i[0],i[0],o,v*e)}if(f&&f!=="none"){var v=Bs(s.node2);Yd(i[1],i[1],o,-v*e)}Vt(u[0],i[0]),Vt(u[1],i[1])}})}function Bb(r){return r.type==="view"}var mG=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){var n=new jl,i=new cy,o=this.group;this._controller=new Xl(a.getZr()),this._controllerHost={target:o},o.add(n.group),o.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},e.prototype.render=function(t,a,n){var i=this,o=t.coordinateSystem;this._model=t;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(Bb(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):Ee(u,c,t)}id(t.getGraph(),Os(t));var f=t.getData();s.updateData(f);var h=t.getEdgeData();l.updateData(h),this._updateNodeAndLinkScale(),this._updateController(t,a,n),clearTimeout(this._layoutTimeout);var v=t.forceLayout,d=t.get(["force","layoutAnimation"]);v&&this._startForceLayoutIteration(v,d);var p=t.get("layout");f.graph.eachNode(function(x){var _=x.dataIndex,b=x.getGraphicEl(),S=x.getModel();if(b){b.off("drag").off("dragend");var w=S.get("draggable");w&&b.on("drag",function(A){switch(p){case"force":v.warmUp(),!i._layouting&&i._startForceLayoutIteration(v,d),v.setFixed(_),f.setItemLayout(_,[b.x,b.y]);break;case"circular":f.setItemLayout(_,[b.x,b.y]),x.setLayout({fixed:!0},!0),ly(t,"symbolSize",x,[A.offsetX,A.offsetY]),i.updateLayout(t);break;default:f.setItemLayout(_,[b.x,b.y]),sy(t.getGraph(),t),i.updateLayout(t);break}}).on("dragend",function(){v&&v.setUnfixed(_)}),b.setDraggable(w,!!S.get("cursor"));var C=S.get(["emphasis","focus"]);C==="adjacency"&&(ce(b).focus=x.getAdjacentDataIndices())}}),f.graph.eachEdge(function(x){var _=x.getGraphicEl(),b=x.getModel().get(["emphasis","focus"]);_&&b==="adjacency"&&(ce(_).focus={edge:[x.dataIndex],node:[x.node1.dataIndex,x.node2.dataIndex]})});var g=t.get("layout")==="circular"&&t.get(["circular","rotateLabel"]),m=f.getLayout("cx"),y=f.getLayout("cy");f.graph.eachNode(function(x){CM(x,g,m,y)}),this._firstRender=!1},e.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,a){var n=this;(function i(){t.step(function(o){n.updateLayout(n._model),(n._layouting=!o)&&(a?n._layoutTimeout=setTimeout(i,16):i())})})()},e.prototype._updateController=function(t,a,n){var i=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,c,f){var h=l.getBoundingRect();return h.applyTransform(l.transform),h.contain(c,f)&&!ih(u,n,t)}),!Bb(t.coordinateSystem)){o.disable();return}o.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){Jm(s,u.dx,u.dy),n.dispatchAction({seriesId:t.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){Qm(s,u.scale,u.originX,u.originY),n.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(),id(t.getGraph(),Os(t)),i._lineDraw.updateLayout(),n.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,a=t.getData(),n=Os(t);a.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(n)})},e.prototype.updateLayout=function(t){id(t.getGraph(),Os(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e})($e);function Qi(r){return"_EC_"+r}var yG=(function(){function r(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return r.prototype.isDirected=function(){return this._directed},r.prototype.addNode=function(e,t){e=e==null?""+t:""+e;var a=this._nodesMap;if(!a[Qi(e)]){var n=new qn(e,t);return n.hostGraph=this,this.nodes.push(n),a[Qi(e)]=n,n}},r.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},r.prototype.getNodeById=function(e){return this._nodesMap[Qi(e)]},r.prototype.addEdge=function(e,t,a){var n=this._nodesMap,i=this._edgesMap;if(ke(e)&&(e=this.nodes[e]),ke(t)&&(t=this.nodes[t]),e instanceof qn||(e=n[Qi(e)]),t instanceof qn||(t=n[Qi(t)]),!(!e||!t)){var o=e.id+"-"+t.id,s=new DM(e,t,a);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),t.inEdges.push(s)),e.edges.push(s),e!==t&&t.edges.push(s),this.edges.push(s),i[o]=s,s}},r.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},r.prototype.getEdge=function(e,t){e instanceof qn&&(e=e.id),t instanceof qn&&(t=t.id);var a=this._edgesMap;return this._directed?a[e+"-"+t]:a[e+"-"+t]||a[t+"-"+e]},r.prototype.eachNode=function(e,t){for(var a=this.nodes,n=a.length,i=0;i<n;i++)a[i].dataIndex>=0&&e.call(t,a[i],i)},r.prototype.eachEdge=function(e,t){for(var a=this.edges,n=a.length,i=0;i<n;i++)a[i].dataIndex>=0&&a[i].node1.dataIndex>=0&&a[i].node2.dataIndex>=0&&e.call(t,a[i],i)},r.prototype.breadthFirstTraverse=function(e,t,a,n){if(t instanceof qn||(t=this._nodesMap[Qi(t)]),!!t){for(var i=a==="out"?"outEdges":a==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!e.call(n,t,null))for(var s=[t];s.length;)for(var l=s.shift(),u=l[i],o=0;o<u.length;o++){var c=u[o],f=c.node1===l?c.node2:c.node1;if(!f.__visited){if(e.call(n,f,l))return;s.push(f),f.__visited=!0}}}},r.prototype.update=function(){for(var e=this.data,t=this.edgeData,a=this.nodes,n=this.edges,i=0,o=a.length;i<o;i++)a[i].dataIndex=-1;for(var i=0,o=e.count();i<o;i++)a[e.getRawIndex(i)].dataIndex=i;t.filterSelf(function(s){var l=n[t.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var i=0,o=n.length;i<o;i++)n[i].dataIndex=-1;for(var i=0,o=t.count();i<o;i++)n[t.getRawIndex(i)].dataIndex=i},r.prototype.clone=function(){for(var e=new r(this._directed),t=this.nodes,a=this.edges,n=0;n<t.length;n++)e.addNode(t[n].id,t[n].dataIndex);for(var n=0;n<a.length;n++){var i=a[n];e.addEdge(i.node1.id,i.node2.id,i.dataIndex)}return e},r})(),qn=(function(){function r(e,t){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=e??"",this.dataIndex=t??-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(e){if(!(this.dataIndex<0)){var t=this.hostGraph,a=t.data.getItemModel(this.dataIndex);return a.getModel(e)}},r.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},t=0;t<this.edges.length;t++){var a=this.edges[t];a.dataIndex<0||(e.edge.push(a.dataIndex),e.node.push(a.node1.dataIndex,a.node2.dataIndex))}return e},r.prototype.getTrajectoryDataIndices=function(){for(var e=re(),t=re(),a=0;a<this.edges.length;a++){var n=this.edges[a];if(!(n.dataIndex<0)){e.set(n.dataIndex,!0);for(var i=[n.node1],o=[n.node2],s=0;s<i.length;){var l=i[s];s++,t.set(l.dataIndex,!0);for(var u=0;u<l.inEdges.length;u++)e.set(l.inEdges[u].dataIndex,!0),i.push(l.inEdges[u].node1)}for(s=0;s<o.length;){var c=o[s];s++,t.set(c.dataIndex,!0);for(var u=0;u<c.outEdges.length;u++)e.set(c.outEdges[u].dataIndex,!0),o.push(c.outEdges[u].node2)}}}return{edge:e.keys(),node:t.keys()}},r})(),DM=(function(){function r(e,t,a){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=a??-1}return r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,a=t.edgeData.getItemModel(this.dataIndex);return a.getModel(e)}},r.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},r.prototype.getTrajectoryDataIndices=function(){var e=re(),t=re();e.set(this.dataIndex,!0);for(var a=[this.node1],n=[this.node2],i=0;i<a.length;){var o=a[i];i++,t.set(o.dataIndex,!0);for(var s=0;s<o.inEdges.length;s++)e.set(o.inEdges[s].dataIndex,!0),a.push(o.inEdges[s].node1)}for(i=0;i<n.length;){var l=n[i];i++,t.set(l.dataIndex,!0);for(var s=0;s<l.outEdges.length;s++)e.set(l.outEdges[s].dataIndex,!0),n.push(l.outEdges[s].node2)}return{edge:e.keys(),node:t.keys()}},r})();function MM(r,e){return{getValue:function(t){var a=this[r][e];return a.getStore().get(a.getDimensionIndex(t||"value"),this.dataIndex)},setVisual:function(t,a){this.dataIndex>=0&&this[r][e].setItemVisual(this.dataIndex,t,a)},getVisual:function(t){return this[r][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,a){this.dataIndex>=0&&this[r][e].setItemLayout(this.dataIndex,t,a)},getLayout:function(){return this[r][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][e].getRawIndex(this.dataIndex)}}}ut(qn,MM("hostGraph","data"));ut(DM,MM("hostGraph","edgeData"));function LM(r,e,t,a,n){for(var i=new yG(a),o=0;o<r.length;o++)i.addNode(Ct(r[o].id,r[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<e.length;o++){var c=e[o],f=c.source,h=c.target;i.addEdge(f,h,u)&&(l.push(c),s.push(Ct(pt(c.id,null),f+" > "+h)),u++)}var v=t.get("coordinateSystem"),d;if(v==="cartesian2d"||v==="polar")d=Ba(r,t);else{var p=zl.get(v),g=p?p.dimensions||[]:[];_e(g,"value")<0&&g.concat(["value"]);var m=Fl(r,{coordDimensions:g,encodeDefine:t.getEncode()}).dimensions;d=new jt(m,t),d.initData(r)}var y=new jt(["value"],t);return y.initData(l,s),n&&n(d,y),cM({mainData:d,struct:i,structAttr:"graph",datas:{node:d,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var xG=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments);var a=this;function n(){return a._categoriesData}this.legendVisualProvider=new Yl(n,n),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){r.prototype.mergeDefaultAndTheme.apply(this,arguments),xi(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,a){var n=t.edges||t.links||[],i=t.data||t.nodes||[],o=this;if(i&&n){iG(this);var s=LM(i,n,this,!0,l);return L(s.edges,function(u){oG(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(d){var p=o._categoriesModels,g=d.getShallow("category"),m=p[g];return m&&(m.parentModel=d.parentModel,d.parentModel=m),d});var f=Ge.prototype.getModel;function h(d,p){var g=f.call(this,d,p);return g.resolveParentPath=v,g}c.wrapMethod("getItemModel",function(d){return d.resolveParentPath=v,d.getModel=h,d});function v(d){if(d&&(d[0]==="label"||d[1]==="label")){var p=d.slice();return d[0]==="label"?p[0]="edgeLabel":d[1]==="label"&&(p[1]="edgeLabel"),p}return d}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,a,n){if(n==="edge"){var i=this.getData(),o=this.getDataParams(t,n),s=i.graph.getEdgeByIndex(t),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),St("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var f=QC({series:this,dataIndex:t,multipleSeries:a});return f},e.prototype._updateCategoriesData=function(){var t=U(this.option.categories||[],function(n){return n.value!=null?n:G({value:0},n)}),a=new jt(["value"],this);a.initData(t),this._categoriesData=a,this._categoriesModels=a.mapArray(function(n){return a.getItemModel(n)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e})(Ze),_G={type:"graphRoam",event:"graphRoam",update:"none"};function bG(r){r.registerChartView(mG),r.registerSeriesModel(xG),r.registerProcessor(eG),r.registerVisual(tG),r.registerVisual(rG),r.registerLayout(sG),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,uG),r.registerLayout(fG),r.registerCoordinateSystem("graphView",{dimensions:Zl.dimensions,create:vG}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},nt),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},nt),r.registerAction(_G,function(e,t,a){t.eachComponent({mainType:"series",query:e},function(n){var i=n.coordinateSystem,o=ty(i,e,void 0,a);n.setCenter&&n.setCenter(o.center),n.setZoom&&n.setZoom(o.zoom)})})}var SG=(function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r})(),wG=(function(r){z(e,r);function e(t){var a=r.call(this,t)||this;return a.type="pointer",a}return e.prototype.getDefaultShape=function(){return new SG},e.prototype.buildPath=function(t,a){var n=Math.cos,i=Math.sin,o=a.r,s=a.width,l=a.angle,u=a.x-n(l)*s*(s>=o/3?1:2),c=a.y-i(l)*s*(s>=o/3?1:2);l=a.angle-Math.PI/2,t.moveTo(u,c),t.lineTo(a.x+n(l)*s,a.y+i(l)*s),t.lineTo(a.x+n(a.angle)*o,a.y+i(a.angle)*o),t.lineTo(a.x-n(l)*s,a.y-i(l)*s),t.lineTo(u,c)},e})(Ce);function TG(r,e){var t=r.get("center"),a=e.getWidth(),n=e.getHeight(),i=Math.min(a,n),o=X(t[0],e.getWidth()),s=X(t[1],e.getHeight()),l=X(r.get("radius"),i/2);return{cx:o,cy:s,r:l}}function Gu(r,e){var t=r==null?"":r+"";return e&&(q(e)?t=e.replace("{value}",t):ne(e)&&(t=e(r))),t}var CG=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),o=TG(t,n);this._renderMain(t,a,n,i,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,a,n,i,o){var s=this.group,l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,c=-t.get("endAngle")/180*Math.PI,f=t.getModel("axisLine"),h=f.get("roundCap"),v=h?tf:Yt,d=f.get("show"),p=f.getModel("lineStyle"),g=p.get("width"),m=[u,c];am(m,!l),u=m[0],c=m[1];for(var y=c-u,x=u,_=[],b=0;d&&b<i.length;b++){var S=Math.min(Math.max(i[b][0],0),1);c=u+y*S;var w=new v({shape:{startAngle:x,endAngle:c,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-g,r:o.r},silent:!0});w.setStyle({fill:i[b][1]}),w.setStyle(p.getLineStyle(["color","width"])),_.push(w),x=c}_.reverse(),L(_,function(A){return s.add(A)});var C=function(A){if(A<=0)return i[0][1];var D;for(D=0;D<i.length;D++)if(i[D][0]>=A&&(D===0?0:i[D-1][0])<A)return i[D][1];return i[D-1][1]};this._renderTicks(t,a,n,C,o,u,c,l,g),this._renderTitleAndDetail(t,a,n,C,o),this._renderAnchor(t,o),this._renderPointer(t,a,n,C,o,u,c,l,g)},e.prototype._renderTicks=function(t,a,n,i,o,s,l,u,c){for(var f=this.group,h=o.cx,v=o.cy,d=o.r,p=+t.get("min"),g=+t.get("max"),m=t.getModel("splitLine"),y=t.getModel("axisTick"),x=t.getModel("axisLabel"),_=t.get("splitNumber"),b=y.get("splitNumber"),S=X(m.get("length"),d),w=X(y.get("length"),d),C=s,A=(l-s)/_,D=A/b,M=m.getModel("lineStyle").getLineStyle(),I=y.getModel("lineStyle").getLineStyle(),P=m.get("distance"),k,R,E=0;E<=_;E++){if(k=Math.cos(C),R=Math.sin(C),m.get("show")){var B=P?P+c:c,O=new yt({shape:{x1:k*(d-B)+h,y1:R*(d-B)+v,x2:k*(d-S-B)+h,y2:R*(d-S-B)+v},style:M,silent:!0});M.stroke==="auto"&&O.setStyle({stroke:i(E/_)}),f.add(O)}if(x.get("show")){var B=x.get("distance")+P,V=Gu(tt(E/_*(g-p)+p),x.get("formatter")),F=i(E/_),H=k*(d-S-B)+h,Y=R*(d-S-B)+v,Z=x.get("rotate"),J=0;Z==="radial"?(J=-C+2*Math.PI,J>Math.PI/2&&(J+=Math.PI)):Z==="tangential"?J=-C-Math.PI/2:ke(Z)&&(J=Z*Math.PI/180),J===0?f.add(new Pe({style:Xe(x,{text:V,x:H,y:Y,verticalAlign:R<-.8?"top":R>.8?"bottom":"middle",align:k<-.4?"left":k>.4?"right":"center"},{inheritColor:F}),silent:!0})):f.add(new Pe({style:Xe(x,{text:V,x:H,y:Y,verticalAlign:"middle",align:"center"},{inheritColor:F}),silent:!0,originX:H,originY:Y,rotation:J}))}if(y.get("show")&&E!==_){var B=y.get("distance");B=B?B+c:c;for(var te=0;te<=b;te++){k=Math.cos(C),R=Math.sin(C);var xe=new yt({shape:{x1:k*(d-B)+h,y1:R*(d-B)+v,x2:k*(d-w-B)+h,y2:R*(d-w-B)+v},silent:!0,style:I});I.stroke==="auto"&&xe.setStyle({stroke:i((E+te/b)/_)}),f.add(xe),C+=D}C-=D}else C+=A}},e.prototype._renderPointer=function(t,a,n,i,o,s,l,u,c){var f=this.group,h=this._data,v=this._progressEls,d=[],p=t.get(["pointer","show"]),g=t.getModel("progress"),m=g.get("show"),y=t.getData(),x=y.mapDimension("value"),_=+t.get("min"),b=+t.get("max"),S=[_,b],w=[s,l];function C(D,M){var I=y.getItemModel(D),P=I.getModel("pointer"),k=X(P.get("width"),o.r),R=X(P.get("length"),o.r),E=t.get(["pointer","icon"]),B=P.get("offsetCenter"),O=X(B[0],o.r),V=X(B[1],o.r),F=P.get("keepAspect"),H;return E?H=lt(E,O-k/2,V-R,k,R,null,F):H=new wG({shape:{angle:-Math.PI/2,width:k,r:R,x:O,y:V}}),H.rotation=-(M+Math.PI/2),H.x=o.cx,H.y=o.cy,H}function A(D,M){var I=g.get("roundCap"),P=I?tf:Yt,k=g.get("overlap"),R=k?g.get("width"):c/y.count(),E=k?o.r-R:o.r-(D+1)*R,B=k?o.r:o.r-D*R,O=new P({shape:{startAngle:s,endAngle:M,cx:o.cx,cy:o.cy,clockwise:u,r0:E,r:B}});return k&&(O.z2=Fe(y.get(x,D),[_,b],[100,0],!0)),O}(m||p)&&(y.diff(h).add(function(D){var M=y.get(x,D);if(p){var I=C(D,s);Je(I,{rotation:-((isNaN(+M)?w[0]:Fe(M,S,w,!0))+Math.PI/2)},t),f.add(I),y.setItemGraphicEl(D,I)}if(m){var P=A(D,s),k=g.get("clip");Je(P,{shape:{endAngle:Fe(M,S,w,k)}},t),f.add(P),xp(t.seriesIndex,y.dataType,D,P),d[D]=P}}).update(function(D,M){var I=y.get(x,D);if(p){var P=h.getItemGraphicEl(M),k=P?P.rotation:s,R=C(D,k);R.rotation=k,Ee(R,{rotation:-((isNaN(+I)?w[0]:Fe(I,S,w,!0))+Math.PI/2)},t),f.add(R),y.setItemGraphicEl(D,R)}if(m){var E=v[M],B=E?E.shape.endAngle:s,O=A(D,B),V=g.get("clip");Ee(O,{shape:{endAngle:Fe(I,S,w,V)}},t),f.add(O),xp(t.seriesIndex,y.dataType,D,O),d[D]=O}}).execute(),y.each(function(D){var M=y.getItemModel(D),I=M.getModel("emphasis"),P=I.get("focus"),k=I.get("blurScope"),R=I.get("disabled");if(p){var E=y.getItemGraphicEl(D),B=y.getItemVisual(D,"style"),O=B.fill;if(E instanceof At){var V=E.style;E.useStyle(G({image:V.image,x:V.x,y:V.y,width:V.width,height:V.height},B))}else E.useStyle(B),E.type!=="pointer"&&E.setColor(O);E.setStyle(M.getModel(["pointer","itemStyle"]).getItemStyle()),E.style.fill==="auto"&&E.setStyle("fill",i(Fe(y.get(x,D),S,[0,1],!0))),E.z2EmphasisLift=0,It(E,M),et(E,P,k,R)}if(m){var F=d[D];F.useStyle(y.getItemVisual(D,"style")),F.setStyle(M.getModel(["progress","itemStyle"]).getItemStyle()),F.z2EmphasisLift=0,It(F,M),et(F,P,k,R)}}),this._progressEls=d)},e.prototype._renderAnchor=function(t,a){var n=t.getModel("anchor"),i=n.get("show");if(i){var o=n.get("size"),s=n.get("icon"),l=n.get("offsetCenter"),u=n.get("keepAspect"),c=lt(s,a.cx-o/2+X(l[0],a.r),a.cy-o/2+X(l[1],a.r),o,o,null,u);c.z2=n.get("showAbove")?1:0,c.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(c)}},e.prototype._renderTitleAndDetail=function(t,a,n,i,o){var s=this,l=t.getData(),u=l.mapDimension("value"),c=+t.get("min"),f=+t.get("max"),h=new ue,v=[],d=[],p=t.isAnimationEnabled(),g=t.get(["pointer","showAbove"]);l.diff(this._data).add(function(m){v[m]=new Pe({silent:!0}),d[m]=new Pe({silent:!0})}).update(function(m,y){v[m]=s._titleEls[y],d[m]=s._detailEls[y]}).execute(),l.each(function(m){var y=l.getItemModel(m),x=l.get(u,m),_=new ue,b=i(Fe(x,[c,f],[0,1],!0)),S=y.getModel("title");if(S.get("show")){var w=S.get("offsetCenter"),C=o.cx+X(w[0],o.r),A=o.cy+X(w[1],o.r),D=v[m];D.attr({z2:g?0:2,style:Xe(S,{x:C,y:A,text:l.getName(m),align:"center",verticalAlign:"middle"},{inheritColor:b})}),_.add(D)}var M=y.getModel("detail");if(M.get("show")){var I=M.get("offsetCenter"),P=o.cx+X(I[0],o.r),k=o.cy+X(I[1],o.r),R=X(M.get("width"),o.r),E=X(M.get("height"),o.r),B=t.get(["progress","show"])?l.getItemVisual(m,"style").fill:b,D=d[m],O=M.get("formatter");D.attr({z2:g?0:2,style:Xe(M,{x:P,y:k,text:Gu(x,O),width:isNaN(R)?null:R,height:isNaN(E)?null:E,align:"center",verticalAlign:"middle"},{inheritColor:B})}),aC(D,{normal:M},x,function(F){return Gu(F,O)}),p&&nC(D,m,l,t,{getFormattedLabel:function(F,H,Y,Z,J,te){return Gu(te?te.interpolatedValue:x,O)}}),_.add(D)}h.add(_)}),this.group.add(h),this._titleEls=v,this._detailEls=d},e.type="gauge",e})($e),AG=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return e.prototype.getInitialData=function(t,a){return Zo(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e})(Ze);function DG(r){r.registerChartView(CG),r.registerSeriesModel(AG)}var MG=["itemStyle","opacity"],LG=(function(r){z(e,r);function e(t,a){var n=r.call(this)||this,i=n,o=new Zt,s=new Pe;return i.setTextContent(s),n.setTextGuideLine(o),n.updateData(t,a,!0),n}return e.prototype.updateData=function(t,a,n){var i=this,o=t.hostModel,s=t.getItemModel(a),l=t.getItemLayout(a),u=s.getModel("emphasis"),c=s.get(MG);c=c??1,n||Gr(i),i.useStyle(t.getItemVisual(a,"style")),i.style.lineJoin="round",n?(i.setShape({points:l.points}),i.style.opacity=0,Je(i,{style:{opacity:c}},o,a)):Ee(i,{style:{opacity:c},shape:{points:l.points}},o,a),It(i,s),this._updateLabel(t,a),et(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,a){var n=this,i=this.getTextGuideLine(),o=n.getTextContent(),s=t.hostModel,l=t.getItemModel(a),u=t.getItemLayout(a),c=u.label,f=t.getItemVisual(a,"style"),h=f.fill;Pt(o,bt(l),{labelFetcher:t.hostModel,labelDataIndex:a,defaultOpacity:f.opacity,defaultText:t.getName(a)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}}),n.setTextConfig({local:!0,inside:!!c.inside,insideStroke:h,outsideFill:h});var v=c.linePoints;i.setShape({points:v}),n.textGuideLineConfig={anchor:v?new ge(v[0][0],v[0][1]):null},Ee(o,{style:{x:c.x,y:c.y}},s,a),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),Gm(n,Hm(l),{stroke:h})},e})(Xt),IG=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,a,n){var i=t.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new LG(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=o.getItemGraphicEl(u);c.updateData(i,l),s.add(c),i.setItemGraphicEl(l,c)}).remove(function(l){var u=o.getItemGraphicEl(l);ul(u,t,l)}).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e})($e),PG=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Yl(Q(this.getData,this),Q(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,a){return Zo(this,{coordDimensions:["value"],encodeDefaulter:ve(_m,this)})},e.prototype._defaultLabelLine=function(t){xi(t,"labelLine",["show"]);var a=t.labelLine,n=t.emphasis.labelLine;a.show=a.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var a=this.getData(),n=r.prototype.getDataParams.call(this,t),i=a.mapDimension("value"),o=a.getSum(i);return n.percent=o?+(a.get(i,t)/o*100).toFixed(2):0,n.$vars.push("percent"),n},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e})(Ze);function kG(r,e){return gt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function RG(r,e){for(var t=r.mapDimension("value"),a=r.mapArray(t,function(l){return l}),n=[],i=e==="ascending",o=0,s=r.count();o<s;o++)n[o]=o;return ne(e)?n.sort(e):e!=="none"&&n.sort(function(l,u){return i?a[l]-a[u]:a[u]-a[l]}),n}function EG(r){var e=r.hostModel,t=e.get("orient");r.each(function(a){var n=r.getItemModel(a),i=n.getModel("label"),o=i.get("position"),s=n.getModel("labelLine"),l=r.getItemLayout(a),u=l.points,c=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",f,h,v,d;if(c)o==="insideLeft"?(h=(u[0][0]+u[3][0])/2+5,v=(u[0][1]+u[3][1])/2,f="left"):o==="insideRight"?(h=(u[1][0]+u[2][0])/2-5,v=(u[1][1]+u[2][1])/2,f="right"):(h=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,v=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,f="center"),d=[[h,v],[h,v]];else{var p=void 0,g=void 0,m=void 0,y=void 0,x=s.get("length");o==="left"?(p=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,m=p-x,h=m-5,f="right"):o==="right"?(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,m=p+x,h=m+5,f="left"):o==="top"?(p=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,y=g-x,v=y-5,f="center"):o==="bottom"?(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,y=g+x,v=y+5,f="center"):o==="rightTop"?(p=t==="horizontal"?u[3][0]:u[1][0],g=t==="horizontal"?u[3][1]:u[1][1],t==="horizontal"?(y=g-x,v=y-5,f="center"):(m=p+x,h=m+5,f="top")):o==="rightBottom"?(p=u[2][0],g=u[2][1],t==="horizontal"?(y=g+x,v=y+5,f="center"):(m=p+x,h=m+5,f="bottom")):o==="leftTop"?(p=u[0][0],g=t==="horizontal"?u[0][1]:u[1][1],t==="horizontal"?(y=g-x,v=y-5,f="center"):(m=p-x,h=m-5,f="right")):o==="leftBottom"?(p=t==="horizontal"?u[1][0]:u[3][0],g=t==="horizontal"?u[1][1]:u[2][1],t==="horizontal"?(y=g+x,v=y+5,f="center"):(m=p-x,h=m-5,f="right")):(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,t==="horizontal"?(y=g+x,v=y+5,f="center"):(m=p+x,h=m+5,f="left")),t==="horizontal"?(m=p,h=m):(y=g,v=y),d=[[p,g],[m,y]]}l.label={linePoints:d,x:h,y:v,verticalAlign:"middle",textAlign:f,inside:c}})}function NG(r,e){r.eachSeriesByType("funnel",function(t){var a=t.getData(),n=a.mapDimension("value"),i=t.get("sort"),o=kG(t,e),s=t.get("orient"),l=o.width,u=o.height,c=RG(a,i),f=o.x,h=o.y,v=s==="horizontal"?[X(t.get("minSize"),u),X(t.get("maxSize"),u)]:[X(t.get("minSize"),l),X(t.get("maxSize"),l)],d=a.getDataExtent(n),p=t.get("min"),g=t.get("max");p==null&&(p=Math.min(d[0],0)),g==null&&(g=d[1]);var m=t.get("funnelAlign"),y=t.get("gap"),x=s==="horizontal"?l:u,_=(x-y*(a.count()-1))/a.count(),b=function(k,R){if(s==="horizontal"){var E=a.get(n,k)||0,B=Fe(E,[p,g],v,!0),O=void 0;switch(m){case"top":O=h;break;case"center":O=h+(u-B)/2;break;case"bottom":O=h+(u-B);break}return[[R,O],[R,O+B]]}var V=a.get(n,k)||0,F=Fe(V,[p,g],v,!0),H;switch(m){case"left":H=f;break;case"center":H=f+(l-F)/2;break;case"right":H=f+l-F;break}return[[H,R],[H+F,R]]};i==="ascending"&&(_=-_,y=-y,s==="horizontal"?f+=l:h+=u,c=c.reverse());for(var S=0;S<c.length;S++){var w=c[S],C=c[S+1],A=a.getItemModel(w);if(s==="horizontal"){var D=A.get(["itemStyle","width"]);D==null?D=_:(D=X(D,l),i==="ascending"&&(D=-D));var M=b(w,f),I=b(C,f+D);f+=D+y,a.setItemLayout(w,{points:M.concat(I.slice().reverse())})}else{var P=A.get(["itemStyle","height"]);P==null?P=_:(P=X(P,u),i==="ascending"&&(P=-P));var M=b(w,h),I=b(C,h+P);h+=P+y,a.setItemLayout(w,{points:M.concat(I.slice().reverse())})}}EG(a)})}function OG(r){r.registerChartView(IG),r.registerSeriesModel(PG),r.registerLayout(NG),r.registerProcessor(Ul("funnel"))}var BG=.3,zG=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._dataGroup=new ue,t._initialized=!1,t}return e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(t,a,n,i){this._progressiveEls=null;var o=this._dataGroup,s=t.getData(),l=this._data,u=t.coordinateSystem,c=u.dimensions,f=Vb(t);s.diff(l).add(h).update(v).remove(d).execute();function h(g){var m=zb(s,o,g,c,u);od(m,s,g,f)}function v(g,m){var y=l.getItemGraphicEl(m),x=IM(s,g,c,u);s.setItemGraphicEl(g,y),Ee(y,{shape:{points:x}},t,g),Gr(y),od(y,s,g,f)}function d(g){var m=l.getItemGraphicEl(g);o.remove(m)}if(!this._initialized){this._initialized=!0;var p=VG(u,t,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(p)}this._data=s},e.prototype.incrementalPrepareRender=function(t,a,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(t,a,n){for(var i=a.getData(),o=a.coordinateSystem,s=o.dimensions,l=Vb(a),u=this._progressiveEls=[],c=t.start;c<t.end;c++){var f=zb(i,this._dataGroup,c,s,o);f.incremental=!0,od(f,i,c,l),u.push(f)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e})($e);function VG(r,e,t){var a=r.model,n=r.getRect(),i=new Le({shape:{x:n.x,y:n.y,width:n.width,height:n.height}}),o=a.get("layout")==="horizontal"?"width":"height";return i.setShape(o,0),Je(i,{shape:{width:n.width,height:n.height}},e,t),i}function IM(r,e,t,a){for(var n=[],i=0;i<t.length;i++){var o=t[i],s=r.get(r.mapDimension(o),e);FG(s,a.getAxis(o).type)||n.push(a.dataToPoint(s,o))}return n}function zb(r,e,t,a,n){var i=IM(r,t,a,n),o=new Zt({shape:{points:i},z2:10});return e.add(o),r.setItemGraphicEl(t,o),o}function Vb(r){var e=r.get("smooth",!0);return e===!0&&(e=BG),e=Ma(e),el(e)&&(e=0),{smooth:e}}function od(r,e,t,a){r.useStyle(e.getItemVisual(t,"style")),r.style.fill=null,r.setShape("smooth",a.smooth);var n=e.getItemModel(t),i=n.getModel("emphasis");It(r,n,"lineStyle"),et(r,i.get("focus"),i.get("blurScope"),i.get("disabled"))}function FG(r,e){return e==="category"?r==null:r==null||isNaN(r)}var GG=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.getInitialData=function(t,a){return Ba(null,this,{useEncodeDefaulter:Q(HG,null,this)})},e.prototype.getRawIndicesByActiveState=function(t){var a=this.coordinateSystem,n=this.getData(),i=[];return a.eachActiveState(n,function(o,s){t===o&&i.push(n.getRawIndex(s))}),i},e.type="series.parallel",e.dependencies=["parallel"],e.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},e})(Ze);function HG(r){var e=r.ecModel.getComponent("parallel",r.get("parallelIndex"));if(e){var t={};return L(e.dimensions,function(a){var n=jG(a);t[a]=n}),t}}function jG(r){return+r.replace("dim","")}var WG=["lineStyle","opacity"],$G={seriesType:"parallel",reset:function(r,e){var t=r.coordinateSystem,a={normal:r.get(["lineStyle","opacity"]),active:r.get("activeOpacity"),inactive:r.get("inactiveOpacity")};return{progress:function(n,i){t.eachActiveState(i,function(o,s){var l=a[o];if(o==="normal"&&i.hasItemOption){var u=i.getItemModel(s).get(WG,!0);u!=null&&(l=u)}var c=i.ensureUniqueItemVisual(s,"style");c.opacity=l},n.start,n.end)}}}};function UG(r){YG(r),XG(r)}function YG(r){if(!r.parallel){var e=!1;L(r.series,function(t){t&&t.type==="parallel"&&(e=!0)}),e&&(r.parallel=[{}])}}function XG(r){var e=je(r.parallelAxis);L(e,function(t){if(se(t)){var a=t.parallelIndex||0,n=je(r.parallel)[a];n&&n.parallelAxisDefault&&pe(t,n.parallelAxisDefault,!1)}})}var ZG=5,qG=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){this._model=t,this._api=n,this._handlers||(this._handlers={},L(KG,function(i,o){n.getZr().on(o,this._handlers[o]=Q(i,this))},this)),Uo(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,a){vl(this,"_throttledDispatchExpand"),L(this._handlers,function(n,i){a.getZr().off(i,n)}),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction(G({type:"parallelAxisExpand"},t))},e.type="parallel",e})(Qe),KG={mousedown:function(r){sd(this,"click")&&(this._mouseDownPoint=[r.offsetX,r.offsetY])},mouseup:function(r){var e=this._mouseDownPoint;if(sd(this,"click")&&e){var t=[r.offsetX,r.offsetY],a=Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2);if(a>ZG)return;var n=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);n.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:n.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!sd(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),a=t.behavior;a==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(a==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:a==="jump"?null:{duration:0}})}}};function sd(r,e){var t=r._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}var JG=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var a=this.option;t&&pe(a,t,!0),this._initDimensions()},e.prototype.contains=function(t,a){var n=t.get("parallelIndex");return n!=null&&a.getComponent("parallel",n)===this},e.prototype.setAxisExpand=function(t){L(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(a){t.hasOwnProperty(a)&&(this.option[a]=t[a])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],a=this.parallelAxisIndex=[],n=ze(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);L(n,function(i){t.push("dim"+i.get("dim")),a.push(i.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e})(De),QG=(function(r){z(e,r);function e(t,a,n,i,o){var s=r.call(this,t,a,n)||this;return s.type=i||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e})(jr);function Ei(r,e,t,a,n,i){r=r||0;var o=t[1]-t[0];if(n!=null&&(n=eo(n,[0,o])),i!=null&&(i=Math.max(i,n??0)),a==="all"){var s=Math.abs(e[1]-e[0]);s=eo(s,[0,o]),n=i=eo(s,[n,i]),a=0}e[0]=eo(e[0],t),e[1]=eo(e[1],t);var l=ld(e,a);e[a]+=r;var u=n||0,c=t.slice();l.sign<0?c[0]+=u:c[1]-=u,e[a]=eo(e[a],c);var f;return f=ld(e,a),n!=null&&(f.sign!==l.sign||f.span<n)&&(e[1-a]=e[a]+l.sign*n),f=ld(e,a),i!=null&&f.span>i&&(e[1-a]=e[a]+f.sign*i),e}function ld(r,e){var t=r[e]-r[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function eo(r,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,r))}var ud=L,PM=Math.min,kM=Math.max,Fb=Math.floor,e7=Math.ceil,Gb=tt,t7=Math.PI,r7=(function(){function r(e,t,a){this.type="parallel",this._axesMap=re(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,a)}return r.prototype._init=function(e,t,a){var n=e.dimensions,i=e.parallelAxisIndex;ud(n,function(o,s){var l=i[s],u=t.getComponent("parallelAxis",l),c=this._axesMap.set(o,new QG(o,ah(u),[0,0],u.get("type"),l)),f=c.type==="category";c.onBand=f&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},r.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),a=t.axisBase,n=t.layoutBase,i=t.pixelDimIndex,o=e[1-i],s=e[i];return o>=a&&o<=a+t.axisLength&&s>=n&&s<=n+t.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(a){if(e.contains(a,t)){var n=a.getData();ud(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(n,n.mapDimension(i)),Mo(o.scale,o.model)},this)}},this)},r.prototype.resize=function(e,t){this._rect=gt(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,a=["x","y"],n=["width","height"],i=e.get("layout"),o=i==="horizontal"?0:1,s=t[n[o]],l=[0,s],u=this.dimensions.length,c=Hu(e.get("axisExpandWidth"),l),f=Hu(e.get("axisExpandCount")||0,[0,u]),h=e.get("axisExpandable")&&u>3&&u>f&&f>1&&c>0&&s>0,v=e.get("axisExpandWindow"),d;if(v)d=Hu(v[1]-v[0],l),v[1]=v[0]+d;else{d=Hu(c*(f-1),l);var p=e.get("axisExpandCenter")||Fb(u/2);v=[c*p-d/2],v[1]=v[0]+d}var g=(s-d)/(u-f);g<3&&(g=0);var m=[Fb(Gb(v[0]/c,1))+1,e7(Gb(v[1]/c,1))-1],y=g/c*v[0];return{layout:i,pixelDimIndex:o,layoutBase:t[a[o]],layoutLength:s,axisBase:t[a[1-o]],axisLength:t[n[1-o]],axisExpandable:h,axisExpandWidth:c,axisCollapseWidth:g,axisExpandWindow:v,axisCount:u,winInnerIndices:m,axisExpandWindow0Pos:y}},r.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,a=this.dimensions,n=this._makeLayoutInfo(),i=n.layout;t.each(function(o){var s=[0,n.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),ud(a,function(o,s){var l=(n.axisExpandable?n7:a7)(s,n),u={horizontal:{x:l.position,y:n.axisLength},vertical:{x:0,y:l.position}},c={horizontal:t7/2,vertical:0},f=[u[i].x+e.x,u[i].y+e.y],h=c[i],v=or();Di(v,v,h),la(v,v,f),this._axesLayout[o]={position:f,rotation:h,transform:v,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(e){return this._axesMap.get(e)},r.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},r.prototype.eachActiveState=function(e,t,a,n){a==null&&(a=0),n==null&&(n=e.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];L(o,function(g){s.push(e.mapDimension(g)),l.push(i.get(g).model)});for(var u=this.hasAxisBrushed(),c=a;c<n;c++){var f=void 0;if(!u)f="normal";else{f="active";for(var h=e.getValues(s,c),v=0,d=o.length;v<d;v++){var p=l[v].getActiveState(h[v]);if(p==="inactive"){f="inactive";break}}}t(f,c)}},r.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,a=!1,n=0,i=e.length;n<i;n++)t.get(e[n]).model.getActiveState()!=="normal"&&(a=!0);return a},r.prototype.axisCoordToPoint=function(e,t){var a=this._axesLayout[t];return Vr([e,0],a.transform)},r.prototype.getAxisLayout=function(e){return le(this._axesLayout[e])},r.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),a=t.pixelDimIndex,n=t.axisExpandWindow.slice(),i=n[1]-n[0],o=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:n};var s=e[a]-t.layoutBase-t.axisExpandWindow0Pos,l,u="slide",c=t.axisCollapseWidth,f=this._model.get("axisExpandSlideTriggerArea"),h=f[0]!=null;if(c)h&&c&&s<i*f[0]?(u="jump",l=s-i*f[2]):h&&c&&s>i*(1-f[0])?(u="jump",l=s-i*(1-f[2])):(l=s-i*f[1])>=0&&(l=s-i*(1-f[1]))<=0&&(l=0),l*=t.axisExpandWidth/c,l?Ei(l,n,o,"all"):u="none";else{var v=n[1]-n[0],d=o[1]*s/v;n=[kM(0,d-v/2)],n[1]=PM(o[1],n[0]+v),n[0]=n[1]-v}return{axisExpandWindow:n,behavior:u}},r})();function Hu(r,e){return PM(kM(r,e[0]),e[1])}function a7(r,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*r,axisNameAvailableWidth:t,axisLabelShow:!0}}function n7(r,e){var t=e.layoutLength,a=e.axisExpandWidth,n=e.axisCount,i=e.axisCollapseWidth,o=e.winInnerIndices,s,l=i,u=!1,c;return r<o[0]?(s=r*i,c=i):r<=o[1]?(s=e.axisExpandWindow0Pos+r*a-e.axisExpandWindow[0],l=a,u=!0):(s=t-(n-1-r)*i,c=i),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:c}}function i7(r,e){var t=[];return r.eachComponent("parallel",function(a,n){var i=new r7(a,r,e);i.name="parallel_"+n,i.resize(a,e),a.coordinateSystem=i,i.model=a,t.push(i)}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="parallel"){var n=a.getReferringComponents("parallel",st).models[0];a.coordinateSystem=n.coordinateSystem}}),t}var o7={create:i7},ug=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.activeIntervals=[],t}return e.prototype.getAreaSelectStyle=function(){return bi([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var a=this.activeIntervals=le(t);if(a)for(var n=a.length-1;n>=0;n--)wr(a[n])},e.prototype.getActiveState=function(t){var a=this.activeIntervals;if(!a.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(a.length===1){var n=a[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,o=a.length;i<o;i++)if(a[i][0]<=t&&t<=a[i][1])return"active";return"inactive"},e})(De);ut(ug,Gl);var Ti=!0,Cl=Math.min,Po=Math.max,s7=Math.pow,l7=1e4,u7=6,c7=6,Hb="globalPan",f7={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},h7={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},jb={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},v7=0,fy=(function(r){z(e,r);function e(t){var a=r.call(this)||this;return a._track=[],a._covers=[],a._handlers={},a._zr=t,a.group=new ue,a._uid="brushController_"+v7++,L(_7,function(n,i){this._handlers[i]=Q(n,this)},a),a}return e.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var a=this._zr;this._enableGlobalPan||aV(a,Hb,this._uid),L(this._handlers,function(n,i){a.on(i,n)}),this._brushType=t.brushType,this._brushOption=pe(le(jb),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;nV(t,Hb,this._uid),L(this._handlers,function(a,n){t.off(n,a)}),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var a=this._panels={};L(t,function(n){a[n.panelId]=le(n)})}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var a=this.group;return this._zr.add(a),a.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=a.getLocalTransform(),this},e.prototype.updateCovers=function(t){t=U(t,function(h){return pe(le(jb),h,!0)});var a="\0-brush-index-",n=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new Pa(n,t,u,l).add(c).update(c).remove(f).execute(),this;function l(h,v){return(h.id!=null?h.id:a+v)+"-"+h.brushType}function u(h,v){return l(h.__brushOption,v)}function c(h,v){var d=t[h];if(v!=null&&n[v]===s)i[h]=n[v];else{var p=i[h]=v!=null?(n[v].__brushOption=d,n[v]):EM(o,RM(o,d));hy(o,p)}}function f(h){n[h]!==s&&o.group.remove(n[h])}},e.prototype.unmount=function(){return this.enableBrush(!1),cg(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e})(Ar);function RM(r,e){var t=uh[e.brushType].createCover(r,e);return t.__brushOption=e,OM(t,e),r.group.add(t),t}function EM(r,e){var t=vy(e);return t.endCreating&&(t.endCreating(r,e),OM(e,e.__brushOption)),e}function NM(r,e){var t=e.__brushOption;vy(e).updateCoverShape(r,e,t.range,t)}function OM(r,e){var t=e.z;t==null&&(t=l7),r.traverse(function(a){a.z=t,a.z2=t})}function hy(r,e){vy(e).updateCommon(r,e),NM(r,e)}function vy(r){return uh[r.__brushOption.brushType]}function dy(r,e,t){var a=r._panels;if(!a)return Ti;var n,i=r._transform;return L(a,function(o){o.isTargetByCursor(e,t,i)&&(n=o)}),n}function BM(r,e){var t=r._panels;if(!t)return Ti;var a=e.__brushOption.panelId;return a!=null?t[a]:Ti}function cg(r){var e=r._covers,t=e.length;return L(e,function(a){r.group.remove(a)},r),e.length=0,!!t}function Ci(r,e){var t=U(r._covers,function(a){var n=a.__brushOption,i=le(n.range);return{brushType:n.brushType,panelId:n.panelId,range:i}});r.trigger("brush",{areas:t,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function d7(r){var e=r._track;if(!e.length)return!1;var t=e[e.length-1],a=e[0],n=t[0]-a[0],i=t[1]-a[1],o=s7(n*n+i*i,.5);return o>u7}function zM(r){var e=r.length-1;return e<0&&(e=0),[r[0],r[e]]}function VM(r,e,t,a){var n=new ue;return n.add(new Le({name:"main",style:py(t),silent:!0,draggable:!0,cursor:"move",drift:ve(Wb,r,e,n,["n","s","w","e"]),ondragend:ve(Ci,e,{isEnd:!0})})),L(a,function(i){n.add(new Le({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:ve(Wb,r,e,n,i),ondragend:ve(Ci,e,{isEnd:!0})}))}),n}function FM(r,e,t,a){var n=a.brushStyle.lineWidth||0,i=Po(n,c7),o=t[0][0],s=t[1][0],l=o-n/2,u=s-n/2,c=t[0][1],f=t[1][1],h=c-i+n/2,v=f-i+n/2,d=c-o,p=f-s,g=d+n,m=p+n;ma(r,e,"main",o,s,d,p),a.transformable&&(ma(r,e,"w",l,u,i,m),ma(r,e,"e",h,u,i,m),ma(r,e,"n",l,u,g,i),ma(r,e,"s",l,v,g,i),ma(r,e,"nw",l,u,i,i),ma(r,e,"ne",h,u,i,i),ma(r,e,"sw",l,v,i,i),ma(r,e,"se",h,v,i,i))}function fg(r,e){var t=e.__brushOption,a=t.transformable,n=e.childAt(0);n.useStyle(py(t)),n.attr({silent:!a,cursor:a?"move":"default"}),L([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=e.childOfName(i.join("")),s=i.length===1?hg(r,i[0]):g7(r,i);o&&o.attr({silent:!a,invisible:!a,cursor:a?h7[s]+"-resize":null})})}function ma(r,e,t,a,n,i,o){var s=e.childOfName(t);s&&s.setShape(y7(gy(r,e,[[a,n],[a+i,n+o]])))}function py(r){return ie({strokeNoScale:!0},r.brushStyle)}function GM(r,e,t,a){var n=[Cl(r,t),Cl(e,a)],i=[Po(r,t),Po(e,a)];return[[n[0],i[0]],[n[1],i[1]]]}function p7(r){return pi(r.group)}function hg(r,e){var t={w:"left",e:"right",n:"top",s:"bottom"},a={left:"w",right:"e",top:"n",bottom:"s"},n=Gf(t[e],p7(r));return a[n]}function g7(r,e){var t=[hg(r,e[0]),hg(r,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function Wb(r,e,t,a,n,i){var o=t.__brushOption,s=r.toRectRange(o.range),l=HM(e,n,i);L(a,function(u){var c=f7[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=r.fromRectRange(GM(s[0][0],s[1][0],s[0][1],s[1][1])),hy(e,t),Ci(e,{isEnd:!1})}function m7(r,e,t,a){var n=e.__brushOption.range,i=HM(r,t,a);L(n,function(o){o[0]+=i[0],o[1]+=i[1]}),hy(r,e),Ci(r,{isEnd:!1})}function HM(r,e,t){var a=r.group,n=a.transformCoordToLocal(e,t),i=a.transformCoordToLocal(0,0);return[n[0]-i[0],n[1]-i[1]]}function gy(r,e,t){var a=BM(r,e);return a&&a!==Ti?a.clipPath(t,r._transform):le(t)}function y7(r){var e=Cl(r[0][0],r[1][0]),t=Cl(r[0][1],r[1][1]),a=Po(r[0][0],r[1][0]),n=Po(r[0][1],r[1][1]);return{x:e,y:t,width:a-e,height:n-t}}function x7(r,e,t){if(!(!r._brushType||b7(r,e.offsetX,e.offsetY))){var a=r._zr,n=r._covers,i=dy(r,e,t);if(!r._dragging)for(var o=0;o<n.length;o++){var s=n[o].__brushOption;if(i&&(i===Ti||s.panelId===i.panelId)&&uh[s.brushType].contain(n[o],t[0],t[1]))return}i&&a.setCursorStyle("crosshair")}}function vg(r){var e=r.event;e.preventDefault&&e.preventDefault()}function dg(r,e,t){return r.childOfName("main").contain(e,t)}function jM(r,e,t,a){var n=r._creatingCover,i=r._creatingPanel,o=r._brushOption,s;if(r._track.push(t.slice()),d7(r)||n){if(i&&!n){o.brushMode==="single"&&cg(r);var l=le(o);l.brushType=$b(l.brushType,i),l.panelId=i===Ti?null:i.panelId,n=r._creatingCover=RM(r,l),r._covers.push(n)}if(n){var u=uh[$b(r._brushType,i)],c=n.__brushOption;c.range=u.getCreatingRange(gy(r,n,r._track)),a&&(EM(r,n),u.updateCommon(r,n)),NM(r,n),s={isEnd:a}}}else a&&o.brushMode==="single"&&o.removeOnClick&&dy(r,e,t)&&cg(r)&&(s={isEnd:a,removeOnClick:!0});return s}function $b(r,e){return r==="auto"?e.defaultBrushType:r}var _7={mousedown:function(r){if(this._dragging)Ub(this,r);else if(!r.target||!r.target.draggable){vg(r);var e=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var t=this._creatingPanel=dy(this,r,e);t&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(r){var e=r.offsetX,t=r.offsetY,a=this.group.transformCoordToLocal(e,t);if(x7(this,r,a),this._dragging){vg(r);var n=jM(this,r,a,!1);n&&Ci(this,n)}},mouseup:function(r){Ub(this,r)}};function Ub(r,e){if(r._dragging){vg(e);var t=e.offsetX,a=e.offsetY,n=r.group.transformCoordToLocal(t,a),i=jM(r,e,n,!0);r._dragging=!1,r._track=[],r._creatingCover=null,i&&Ci(r,i)}}function b7(r,e,t){var a=r._zr;return e<0||e>a.getWidth()||t<0||t>a.getHeight()}var uh={lineX:Yb(0),lineY:Yb(1),rect:{createCover:function(r,e){function t(a){return a}return VM({toRectRange:t,fromRectRange:t},r,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var e=zM(r);return GM(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(r,e,t,a){FM(r,e,t,a)},updateCommon:fg,contain:dg},polygon:{createCover:function(r,e){var t=new ue;return t.add(new Zt({name:"main",style:py(e),silent:!0})),t},getCreatingRange:function(r){return r},endCreating:function(r,e){e.remove(e.childAt(0)),e.add(new Xt({name:"main",draggable:!0,drift:ve(m7,r,e),ondragend:ve(Ci,r,{isEnd:!0})}))},updateCoverShape:function(r,e,t,a){e.childAt(0).setShape({points:gy(r,e,t)})},updateCommon:fg,contain:dg}};function Yb(r){return{createCover:function(e,t){return VM({toRectRange:function(a){var n=[a,[0,100]];return r&&n.reverse(),n},fromRectRange:function(a){return a[r]}},e,t,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(e){var t=zM(e),a=Cl(t[0][r],t[1][r]),n=Po(t[0][r],t[1][r]);return[a,n]},updateCoverShape:function(e,t,a,n){var i,o=BM(e,t);if(o!==Ti&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(r);else{var s=e._zr;i=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[a,i];r&&l.reverse(),FM(e,t,l,n)},updateCommon:fg,contain:dg}}function WM(r){return r=my(r),function(e){return eC(e,r)}}function $M(r,e){return r=my(r),function(t){var a=e??t,n=a?r.width:r.height,i=a?r.x:r.y;return[i,i+(n||0)]}}function UM(r,e,t){var a=my(r);return function(n,i){return a.contain(i[0],i[1])&&!ih(n,e,t)}}function my(r){return ye.create(r)}var S7=["axisLine","axisTickLabel","axisName"],w7=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){r.prototype.init.apply(this,arguments),(this._brushController=new fy(a.getZr())).on("brush",Q(this._onBrush,this))},e.prototype.render=function(t,a,n,i){if(!T7(t,a,i)){this.axisModel=t,this.api=n,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new ue,this.group.add(this._axisGroup),!!t.get("show")){var s=A7(t,a),l=s.coordinateSystem,u=t.getAreaSelectStyle(),c=u.width,f=t.axis.dim,h=l.getAxisLayout(f),v=G({strokeContainThreshold:c},h),d=new Wt(t,v);L(S7,d.add,d),this._axisGroup.add(d.getGroup()),this._refreshBrushController(v,u,t,s,c,n),Ol(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,a,n,i,o,s){var l=n.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),f=ye.create({x:l[0],y:-o/2,width:u,height:o});f.x-=c,f.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:WM(f),isTargetByCursor:UM(f,s,i),getLinearBrushOtherExtent:$M(f,0)}]).enableBrush({brushType:"lineX",brushStyle:a,removeOnClick:!0}).updateCovers(C7(n))},e.prototype._onBrush=function(t){var a=t.areas,n=this.axisModel,i=n.axis,o=U(a,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!n.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e})(Qe);function T7(r,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===r}function C7(r){var e=r.axis;return U(r.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function A7(r,e){return e.getComponent("parallel",r.get("parallelIndex"))}var D7={type:"axisAreaSelect",event:"axisAreaSelected"};function M7(r){r.registerAction(D7,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(a){a.axis.model.setActiveIntervals(e.intervals)})}),r.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(a){a.setAxisExpand(e)})})}var L7={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function YM(r){r.registerComponentView(qG),r.registerComponentModel(JG),r.registerCoordinateSystem("parallel",o7),r.registerPreprocessor(UG),r.registerComponentModel(ug),r.registerComponentView(w7),Io(r,"parallel",ug,L7),M7(r)}function I7(r){Te(YM),r.registerChartView(zG),r.registerSeriesModel(GG),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,$G)}var P7=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return r})(),k7=(function(r){z(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new P7},e.prototype.buildPath=function(t,a){var n=a.extent;t.moveTo(a.x1,a.y1),t.bezierCurveTo(a.cpx1,a.cpy1,a.cpx2,a.cpy2,a.x2,a.y2),a.orient==="vertical"?(t.lineTo(a.x2+n,a.y2),t.bezierCurveTo(a.cpx2+n,a.cpy2,a.cpx1+n,a.cpy1,a.x1+n,a.y1)):(t.lineTo(a.x2,a.y2+n),t.bezierCurveTo(a.cpx2,a.cpy2+n,a.cpx1,a.cpy1+n,a.x1,a.y1+n)),t.closePath()},e.prototype.highlight=function(){La(this)},e.prototype.downplay=function(){Ia(this)},e})(Ce),R7=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._focusAdjacencyDisabled=!1,t}return e.prototype.render=function(t,a,n){var i=this,o=t.getGraph(),s=this.group,l=t.layoutInfo,u=l.width,c=l.height,f=t.getData(),h=t.getData("edge"),v=t.get("orient");this._model=t,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(d){var p=new k7,g=ce(p);g.dataIndex=d.dataIndex,g.seriesIndex=t.seriesIndex,g.dataType="edge";var m=d.getModel(),y=m.getModel("lineStyle"),x=y.get("curveness"),_=d.node1.getLayout(),b=d.node1.getModel(),S=b.get("localX"),w=b.get("localY"),C=d.node2.getLayout(),A=d.node2.getModel(),D=A.get("localX"),M=A.get("localY"),I=d.getLayout(),P,k,R,E,B,O,V,F;p.shape.extent=Math.max(1,I.dy),p.shape.orient=v,v==="vertical"?(P=(S!=null?S*u:_.x)+I.sy,k=(w!=null?w*c:_.y)+_.dy,R=(D!=null?D*u:C.x)+I.ty,E=M!=null?M*c:C.y,B=P,O=k*(1-x)+E*x,V=R,F=k*x+E*(1-x)):(P=(S!=null?S*u:_.x)+_.dx,k=(w!=null?w*c:_.y)+I.sy,R=D!=null?D*u:C.x,E=(M!=null?M*c:C.y)+I.ty,B=P*(1-x)+R*x,O=k,V=P*x+R*(1-x),F=E),p.setShape({x1:P,y1:k,x2:R,y2:E,cpx1:B,cpy1:O,cpx2:V,cpy2:F}),p.useStyle(y.getItemStyle()),Xb(p.style,v,d);var H=""+m.get("value"),Y=bt(m,"edgeLabel");Pt(p,Y,{labelFetcher:{getFormattedLabel:function(te,xe,de,oe,ae,$){return t.getFormattedLabel(te,xe,"edge",oe,ia(ae,Y.normal&&Y.normal.get("formatter"),H),$)}},labelDataIndex:d.dataIndex,defaultText:H}),p.setTextConfig({position:"inside"});var Z=m.getModel("emphasis");It(p,m,"lineStyle",function(te){var xe=te.getItemStyle();return Xb(xe,v,d),xe}),s.add(p),h.setItemGraphicEl(d.dataIndex,p);var J=Z.get("focus");et(p,J==="adjacency"?d.getAdjacentDataIndices():J==="trajectory"?d.getTrajectoryDataIndices():J,Z.get("blurScope"),Z.get("disabled"))}),o.eachNode(function(d){var p=d.getLayout(),g=d.getModel(),m=g.get("localX"),y=g.get("localY"),x=g.getModel("emphasis"),_=g.get(["itemStyle","borderRadius"])||0,b=new Le({shape:{x:m!=null?m*u:p.x,y:y!=null?y*c:p.y,width:p.dx,height:p.dy,r:_},style:g.getModel("itemStyle").getItemStyle(),z2:10});Pt(b,bt(g),{labelFetcher:{getFormattedLabel:function(w,C){return t.getFormattedLabel(w,C,"node")}},labelDataIndex:d.dataIndex,defaultText:d.id}),b.disableLabelAnimation=!0,b.setStyle("fill",d.getVisual("color")),b.setStyle("decal",d.getVisual("style").decal),It(b,g),s.add(b),f.setItemGraphicEl(d.dataIndex,b),ce(b).dataType="node";var S=x.get("focus");et(b,S==="adjacency"?d.getAdjacentDataIndices():S==="trajectory"?d.getTrajectoryDataIndices():S,x.get("blurScope"),x.get("disabled"))}),f.eachItemGraphicEl(function(d,p){var g=f.getItemModel(p);g.get("draggable")&&(d.drift=function(m,y){i._focusAdjacencyDisabled=!0,this.shape.x+=m,this.shape.y+=y,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:f.getRawIndex(p),localX:this.shape.x/u,localY:this.shape.y/c})},d.ondragend=function(){i._focusAdjacencyDisabled=!1},d.draggable=!0,d.cursor="move")}),!this._data&&t.isAnimationEnabled()&&s.setClipPath(E7(s.getBoundingRect(),t,function(){s.removeClipPath()})),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e})($e);function Xb(r,e,t){switch(r.fill){case"source":r.fill=t.node1.getVisual("color"),r.decal=t.node1.getVisual("style").decal;break;case"target":r.fill=t.node2.getVisual("color"),r.decal=t.node2.getVisual("style").decal;break;case"gradient":var a=t.node1.getVisual("color"),n=t.node2.getVisual("color");q(a)&&q(n)&&(r.fill=new Nl(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:a,offset:0},{color:n,offset:1}]))}}function E7(r,e,t){var a=new Le({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return Je(a,{shape:{width:r.width+20}},e,t),a}var N7=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,a){var n=t.edges||t.links||[],i=t.data||t.nodes||[],o=t.levels||[];this.levelModels=[];for(var s=this.levelModels,l=0;l<o.length;l++)o[l].depth!=null&&o[l].depth>=0&&(s[o[l].depth]=new Ge(o[l],this,a));var u=LM(i,n,this,!0,c);return u.data;function c(f,h){f.wrapMethod("getItemModel",function(v,d){var p=v.parentModel,g=p.getData().getItemLayout(d);if(g){var m=g.depth,y=p.levelModels[m];y&&(v.parentModel=y)}return v}),h.wrapMethod("getItemModel",function(v,d){var p=v.parentModel,g=p.getGraph().getEdgeByIndex(d),m=g.node1.getLayout();if(m){var y=m.depth,x=p.levelModels[y];x&&(v.parentModel=x)}return v})}},e.prototype.setNodePosition=function(t,a){var n=this.option.data||this.option.nodes,i=n[t];i.localX=a[0],i.localY=a[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,a,n){function i(v){return isNaN(v)||v==null}if(n==="edge"){var o=this.getDataParams(t,n),s=o.data,l=o.value,u=s.source+" -- "+s.target;return St("nameValue",{name:u,value:l,noValue:i(l)})}else{var c=this.getGraph().getNodeByIndex(t),f=c.getLayout().value,h=this.getDataParams(t,n).data.name;return St("nameValue",{name:h!=null?h+"":null,value:f,noValue:i(f)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,a){var n=r.prototype.getDataParams.call(this,t,a);if(n.value==null&&a==="node"){var i=this.getGraph().getNodeByIndex(t),o=i.getLayout().value;n.value=o}return n},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e})(Ze);function O7(r,e){r.eachSeriesByType("sankey",function(t){var a=t.get("nodeWidth"),n=t.get("nodeGap"),i=B7(t,e);t.layoutInfo=i;var o=i.width,s=i.height,l=t.getGraph(),u=l.nodes,c=l.edges;V7(u);var f=ze(u,function(p){return p.getLayout().value===0}),h=f.length!==0?0:t.get("layoutIterations"),v=t.get("orient"),d=t.get("nodeAlign");z7(u,c,a,n,o,s,h,v,d)})}function B7(r,e){return gt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function z7(r,e,t,a,n,i,o,s,l){F7(r,e,t,n,i,s,l),W7(r,e,i,n,a,o,s),Q7(r,s)}function V7(r){L(r,function(e){var t=fn(e.outEdges,lf),a=fn(e.inEdges,lf),n=e.getValue()||0,i=Math.max(t,a,n);e.setLayout({value:i},!0)})}function F7(r,e,t,a,n,i,o){for(var s=[],l=[],u=[],c=[],f=0,h=0;h<e.length;h++)s[h]=1;for(var h=0;h<r.length;h++)l[h]=r[h].inEdges.length,l[h]===0&&u.push(r[h]);for(var v=-1;u.length;){for(var d=0;d<u.length;d++){var p=u[d],g=p.hostGraph.data.getRawDataItem(p.dataIndex),m=g.depth!=null&&g.depth>=0;m&&g.depth>v&&(v=g.depth),p.setLayout({depth:m?g.depth:f},!0),i==="vertical"?p.setLayout({dy:t},!0):p.setLayout({dx:t},!0);for(var y=0;y<p.outEdges.length;y++){var x=p.outEdges[y],_=e.indexOf(x);s[_]=0;var b=x.node2,S=r.indexOf(b);--l[S]===0&&c.indexOf(b)<0&&c.push(b)}}++f,u=c,c=[]}for(var h=0;h<s.length;h++)if(s[h]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var w=v>f-1?v:f-1;o&&o!=="left"&&G7(r,o,i,w);var C=i==="vertical"?(n-t)/w:(a-t)/w;j7(r,C,i)}function XM(r){var e=r.hostGraph.data.getRawDataItem(r.dataIndex);return e.depth!=null&&e.depth>=0}function G7(r,e,t,a){if(e==="right"){for(var n=[],i=r,o=0;i.length;){for(var s=0;s<i.length;s++){var l=i[s];l.setLayout({skNodeHeight:o},!0);for(var u=0;u<l.inEdges.length;u++){var c=l.inEdges[u];n.indexOf(c.node1)<0&&n.push(c.node1)}}i=n,n=[],++o}L(r,function(f){XM(f)||f.setLayout({depth:Math.max(0,a-f.getLayout().skNodeHeight)},!0)})}else e==="justify"&&H7(r,a)}function H7(r,e){L(r,function(t){!XM(t)&&!t.outEdges.length&&t.setLayout({depth:e},!0)})}function j7(r,e,t){L(r,function(a){var n=a.getLayout().depth*e;t==="vertical"?a.setLayout({y:n},!0):a.setLayout({x:n},!0)})}function W7(r,e,t,a,n,i,o){var s=$7(r,o);U7(s,e,t,a,n,o),cd(s,n,t,a,o);for(var l=1;i>0;i--)l*=.99,Y7(s,l,o),cd(s,n,t,a,o),J7(s,l,o),cd(s,n,t,a,o)}function $7(r,e){var t=[],a=e==="vertical"?"y":"x",n=pp(r,function(i){return i.getLayout()[a]});return n.keys.sort(function(i,o){return i-o}),L(n.keys,function(i){t.push(n.buckets.get(i))}),t}function U7(r,e,t,a,n,i){var o=1/0;L(r,function(s){var l=s.length,u=0;L(s,function(f){u+=f.getLayout().value});var c=i==="vertical"?(a-(l-1)*n)/u:(t-(l-1)*n)/u;c<o&&(o=c)}),L(r,function(s){L(s,function(l,u){var c=l.getLayout().value*o;i==="vertical"?(l.setLayout({x:u},!0),l.setLayout({dx:c},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:c},!0))})}),L(e,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function cd(r,e,t,a,n){var i=n==="vertical"?"x":"y";L(r,function(o){o.sort(function(p,g){return p.getLayout()[i]-g.getLayout()[i]});for(var s,l,u,c=0,f=o.length,h=n==="vertical"?"dx":"dy",v=0;v<f;v++)l=o[v],u=c-l.getLayout()[i],u>0&&(s=l.getLayout()[i]+u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]+l.getLayout()[h]+e;var d=n==="vertical"?a:t;if(u=c-e-d,u>0){s=l.getLayout()[i]-u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var v=f-2;v>=0;--v)l=o[v],u=l.getLayout()[i]+l.getLayout()[h]+e-c,u>0&&(s=l.getLayout()[i]-u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]}})}function Y7(r,e,t){L(r.slice().reverse(),function(a){L(a,function(n){if(n.outEdges.length){var i=fn(n.outEdges,X7,t)/fn(n.outEdges,lf);if(isNaN(i)){var o=n.outEdges.length;i=o?fn(n.outEdges,Z7,t)/o:0}if(t==="vertical"){var s=n.getLayout().x+(i-yn(n,t))*e;n.setLayout({x:s},!0)}else{var l=n.getLayout().y+(i-yn(n,t))*e;n.setLayout({y:l},!0)}}})})}function X7(r,e){return yn(r.node2,e)*r.getValue()}function Z7(r,e){return yn(r.node2,e)}function q7(r,e){return yn(r.node1,e)*r.getValue()}function K7(r,e){return yn(r.node1,e)}function yn(r,e){return e==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function lf(r){return r.getValue()}function fn(r,e,t){for(var a=0,n=r.length,i=-1;++i<n;){var o=+e(r[i],t);isNaN(o)||(a+=o)}return a}function J7(r,e,t){L(r,function(a){L(a,function(n){if(n.inEdges.length){var i=fn(n.inEdges,q7,t)/fn(n.inEdges,lf);if(isNaN(i)){var o=n.inEdges.length;i=o?fn(n.inEdges,K7,t)/o:0}if(t==="vertical"){var s=n.getLayout().x+(i-yn(n,t))*e;n.setLayout({x:s},!0)}else{var l=n.getLayout().y+(i-yn(n,t))*e;n.setLayout({y:l},!0)}}})})}function Q7(r,e){var t=e==="vertical"?"x":"y";L(r,function(a){a.outEdges.sort(function(n,i){return n.node2.getLayout()[t]-i.node2.getLayout()[t]}),a.inEdges.sort(function(n,i){return n.node1.getLayout()[t]-i.node1.getLayout()[t]})}),L(r,function(a){var n=0,i=0;L(a.outEdges,function(o){o.setLayout({sy:n},!0),n+=o.getLayout().dy}),L(a.inEdges,function(o){o.setLayout({ty:i},!0),i+=o.getLayout().dy})})}function e8(r){r.eachSeriesByType("sankey",function(e){var t=e.getGraph(),a=t.nodes,n=t.edges;if(a.length){var i=1/0,o=-1/0;L(a,function(s){var l=s.getLayout().value;l<i&&(i=l),l>o&&(o=l)}),L(a,function(s){var l=new _t({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:e.get("color")}),u=l.mapValueToVisual(s.getLayout().value),c=s.getModel().get(["itemStyle","color"]);c!=null?(s.setVisual("color",c),s.setVisual("style",{fill:c})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}n.length&&L(n,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function t8(r){r.registerChartView(R7),r.registerSeriesModel(N7),r.registerLayout(O7),r.registerVisual(e8),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(a){a.setNodePosition(e.dataIndex,[e.localX,e.localY])})})}var ZM=(function(){function r(){}return r.prototype._hasEncodeRule=function(e){var t=this.getEncode();return t&&t.get(e)!=null},r.prototype.getInitialData=function(e,t){var a,n=t.getComponent("xAxis",this.get("xAxisIndex")),i=t.getComponent("yAxis",this.get("yAxisIndex")),o=n.get("type"),s=i.get("type"),l;o==="category"?(e.layout="horizontal",a=n.getOrdinalMeta(),l=!this._hasEncodeRule("x")):s==="category"?(e.layout="vertical",a=i.getOrdinalMeta(),l=!this._hasEncodeRule("y")):e.layout=e.layout||"horizontal";var u=["x","y"],c=e.layout==="horizontal"?0:1,f=this._baseAxisDim=u[c],h=u[1-c],v=[n,i],d=v[c].get("type"),p=v[1-c].get("type"),g=e.data;if(g&&l){var m=[];L(g,function(_,b){var S;W(_)?(S=_.slice(),_.unshift(b)):W(_.value)?(S=G({},_),S.value=S.value.slice(),_.value.unshift(b)):S=_,m.push(S)}),e.data=m}var y=this.defaultValueDimensions,x=[{name:f,type:qc(d),ordinalMeta:a,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:qc(p),dimsDef:y.slice()}];return Zo(this,{coordDimensions:x,dimensionsCount:y.length+1,encodeDefaulter:ve(AC,x,this)})},r.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},r})(),qM=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}return e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e})(Ze);ut(qM,ZM,!0);var r8=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=t.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=t.get("layout")==="horizontal"?1:0;i.diff(s).add(function(u){if(i.hasValue(u)){var c=i.getItemLayout(u),f=Zb(c,i,u,l,!0);i.setItemGraphicEl(u,f),o.add(f)}}).update(function(u,c){var f=s.getItemGraphicEl(c);if(!i.hasValue(u)){o.remove(f);return}var h=i.getItemLayout(u);f?(Gr(f),KM(h,f,i,u)):f=Zb(h,i,u,l),o.add(f),i.setItemGraphicEl(u,f)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&o.remove(c)}).execute(),this._data=i},e.prototype.remove=function(t){var a=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(i){i&&a.remove(i)})},e.type="boxplot",e})($e),a8=(function(){function r(){}return r})(),n8=(function(r){z(e,r);function e(t){var a=r.call(this,t)||this;return a.type="boxplotBoxPath",a}return e.prototype.getDefaultShape=function(){return new a8},e.prototype.buildPath=function(t,a){var n=a.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();i<n.length;i++)t.moveTo(n[i][0],n[i][1]),i++,t.lineTo(n[i][0],n[i][1])},e})(Ce);function Zb(r,e,t,a,n){var i=r.ends,o=new n8({shape:{points:n?i8(i,a,r):i}});return KM(r,o,e,t,n),o}function KM(r,e,t,a,n){var i=t.hostModel,o=Li[n?"initProps":"updateProps"];o(e,{shape:{points:r.ends}},i,a),e.useStyle(t.getItemVisual(a,"style")),e.style.strokeNoScale=!0,e.z2=100;var s=t.getItemModel(a),l=s.getModel("emphasis");It(e,s),et(e,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function i8(r,e,t){return U(r,function(a){return a=a.slice(),a[e]=t.initBaseline,a})}var Js=L;function o8(r){var e=s8(r);Js(e,function(t){var a=t.seriesModels;a.length&&(l8(t),Js(a,function(n,i){u8(n,t.boxOffsetList[i],t.boxWidthList[i])}))})}function s8(r){var e=[],t=[];return r.eachSeriesByType("boxplot",function(a){var n=a.getBaseAxis(),i=_e(t,n);i<0&&(i=t.length,t[i]=n,e[i]={axis:n,seriesModels:[]}),e[i].seriesModels.push(a)}),e}function l8(r){var e=r.axis,t=r.seriesModels,a=t.length,n=r.boxWidthList=[],i=r.boxOffsetList=[],o=[],s;if(e.type==="category")s=e.getBandWidth();else{var l=0;Js(t,function(d){l=Math.max(l,d.getData().count())});var u=e.getExtent();s=Math.abs(u[1]-u[0])/l}Js(t,function(d){var p=d.get("boxWidth");W(p)||(p=[p,p]),o.push([X(p[0],s)||0,X(p[1],s)||0])});var c=s*.8-2,f=c/a*.3,h=(c-f*(a-1))/a,v=h/2-c/2;Js(t,function(d,p){i.push(v),v+=f+h,n.push(Math.min(Math.max(h,o[p][0]),o[p][1]))})}function u8(r,e,t){var a=r.coordinateSystem,n=r.getData(),i=t/2,o=r.get("layout")==="horizontal"?0:1,s=1-o,l=["x","y"],u=n.mapDimension(l[o]),c=n.mapDimensionsAll(l[s]);if(u==null||c.length<5)return;for(var f=0;f<n.count();f++){var h=n.get(u,f),v=x(h,c[2],f),d=x(h,c[0],f),p=x(h,c[1],f),g=x(h,c[3],f),m=x(h,c[4],f),y=[];_(y,p,!1),_(y,g,!0),y.push(d,p,m,g),b(y,d),b(y,m),b(y,v),n.setItemLayout(f,{initBaseline:v[s],ends:y})}function x(S,w,C){var A=n.get(w,C),D=[];D[o]=S,D[s]=A;var M;return isNaN(S)||isNaN(A)?M=[NaN,NaN]:(M=a.dataToPoint(D),M[o]+=e),M}function _(S,w,C){var A=w.slice(),D=w.slice();A[o]+=i,D[o]-=i,C?S.push(A,D):S.push(D,A)}function b(S,w){var C=w.slice(),A=w.slice();C[o]-=i,A[o]+=i,S.push(C,A)}}function c8(r,e){e=e||{};for(var t=[],a=[],n=e.boundIQR,i=n==="none"||n===0,o=0;o<r.length;o++){var s=wr(r[o].slice()),l=Vh(s,.25),u=Vh(s,.5),c=Vh(s,.75),f=s[0],h=s[s.length-1],v=(n??1.5)*(c-l),d=i?f:Math.max(f,l-v),p=i?h:Math.min(h,c+v),g=e.itemNameFormatter,m=ne(g)?g({value:o}):q(g)?g.replace("{value}",o+""):o+"";t.push([m,d,l,u,c,p]);for(var y=0;y<s.length;y++){var x=s[y];if(x<d||x>p){var _=[m,x];a.push(_)}}}return{boxData:t,outliers:a}}var f8={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==Bt){var a="";Be(a)}var n=c8(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}};function h8(r){r.registerSeriesModel(qM),r.registerChartView(r8),r.registerLayout(o8),r.registerTransform(f8)}var v8=["itemStyle","borderColor"],d8=["itemStyle","borderColor0"],p8=["itemStyle","borderColorDoji"],g8=["itemStyle","color"],m8=["itemStyle","color0"];function yy(r,e){return e.get(r>0?g8:m8)}function xy(r,e){return e.get(r===0?p8:r>0?v8:d8)}var y8={seriesType:"candlestick",plan:$o(),performRawSeries:!0,reset:function(r,e){if(!e.isSeriesFiltered(r)){var t=r.pipelineContext.large;return!t&&{progress:function(a,n){for(var i;(i=a.next())!=null;){var o=n.getItemModel(i),s=n.getItemLayout(i).sign,l=o.getItemStyle();l.fill=yy(s,o),l.stroke=xy(s,o)||l.fill;var u=n.ensureUniqueItemVisual(i,"style");G(u,l)}}}}}},x8=["color","borderColor"],_8=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,a,n){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,a,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,a):this._incrementalRenderNormal(t,a)},e.prototype.eachRendered=function(t){_n(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var a=t.pipelineContext.large;(this._isLargeDraw==null||a!==this._isLargeDraw)&&(this._isLargeDraw=a,this._clear())},e.prototype._renderNormal=function(t){var a=t.getData(),n=this._data,i=this.group,o=a.getLayout("isSimpleBox"),s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),a.diff(n).add(function(c){if(a.hasValue(c)){var f=a.getItemLayout(c);if(s&&qb(u,f))return;var h=fd(f,c,!0);Je(h,{shape:{points:f.ends}},t,c),hd(h,a,c,o),i.add(h),a.setItemGraphicEl(c,h)}}).update(function(c,f){var h=n.getItemGraphicEl(f);if(!a.hasValue(c)){i.remove(h);return}var v=a.getItemLayout(c);if(s&&qb(u,v)){i.remove(h);return}h?(Ee(h,{shape:{points:v.ends}},t,c),Gr(h)):h=fd(v),hd(h,a,c,o),i.add(h),a.setItemGraphicEl(c,h)}).remove(function(c){var f=n.getItemGraphicEl(c);f&&i.remove(f)}).execute(),this._data=a},e.prototype._renderLarge=function(t){this._clear(),Kb(t,this.group);var a=t.get("clip",!0)?Wl(t.coordinateSystem,!1,t):null;a?this.group.setClipPath(a):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,a){for(var n=a.getData(),i=n.getLayout("isSimpleBox"),o;(o=t.next())!=null;){var s=n.getItemLayout(o),l=fd(s);hd(l,n,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(t,a){Kb(a,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e})($e),b8=(function(){function r(){}return r})(),S8=(function(r){z(e,r);function e(t){var a=r.call(this,t)||this;return a.type="normalCandlestickBox",a}return e.prototype.getDefaultShape=function(){return new b8},e.prototype.buildPath=function(t,a){var n=a.points;this.__simpleBox?(t.moveTo(n[4][0],n[4][1]),t.lineTo(n[6][0],n[6][1])):(t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]),t.lineTo(n[3][0],n[3][1]),t.closePath(),t.moveTo(n[4][0],n[4][1]),t.lineTo(n[5][0],n[5][1]),t.moveTo(n[6][0],n[6][1]),t.lineTo(n[7][0],n[7][1]))},e})(Ce);function fd(r,e,t){var a=r.ends;return new S8({shape:{points:t?w8(a,r):a},z2:100})}function qb(r,e){for(var t=!0,a=0;a<e.ends.length;a++)if(r.contain(e.ends[a][0],e.ends[a][1])){t=!1;break}return t}function hd(r,e,t,a){var n=e.getItemModel(t);r.useStyle(e.getItemVisual(t,"style")),r.style.strokeNoScale=!0,r.__simpleBox=a,It(r,n);var i=e.getItemLayout(t).sign;L(r.states,function(s,l){var u=n.getModel(l),c=yy(i,u),f=xy(i,u)||c,h=s.style||(s.style={});c&&(h.fill=c),f&&(h.stroke=f)});var o=n.getModel("emphasis");et(r,o.get("focus"),o.get("blurScope"),o.get("disabled"))}function w8(r,e){return U(r,function(t){return t=t.slice(),t[1]=e.initBaseline,t})}var T8=(function(){function r(){}return r})(),vd=(function(r){z(e,r);function e(t){var a=r.call(this,t)||this;return a.type="largeCandlestickBox",a}return e.prototype.getDefaultShape=function(){return new T8},e.prototype.buildPath=function(t,a){for(var n=a.points,i=0;i<n.length;)if(this.__sign===n[i++]){var o=n[i++];t.moveTo(o,n[i++]),t.lineTo(o,n[i++])}else i+=3},e})(Ce);function Kb(r,e,t,a){var n=r.getData(),i=n.getLayout("largePoints"),o=new vd({shape:{points:i},__sign:1,ignoreCoarsePointer:!0});e.add(o);var s=new vd({shape:{points:i},__sign:-1,ignoreCoarsePointer:!0});e.add(s);var l=new vd({shape:{points:i},__sign:0,ignoreCoarsePointer:!0});e.add(l),dd(1,o,r),dd(-1,s,r),dd(0,l,r),a&&(o.incremental=!0,s.incremental=!0),t&&t.push(o,s)}function dd(r,e,t,a){var n=xy(r,t)||yy(r,t),i=t.getModel("itemStyle").getItemStyle(x8);e.useStyle(i),e.style.fill=null,e.style.stroke=n}var JM=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,a,n){var i=a.getItemLayout(t);return i&&n.rect(i.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e})(Ze);ut(JM,ZM,!0);function C8(r){!r||!W(r.series)||L(r.series,function(e){se(e)&&e.type==="k"&&(e.type="candlestick")})}var A8={seriesType:"candlestick",plan:$o(),reset:function(r){var e=r.coordinateSystem,t=r.getData(),a=D8(r,t),n=0,i=1,o=["x","y"],s=t.getDimensionIndex(t.mapDimension(o[n])),l=U(t.mapDimensionsAll(o[i]),t.getDimensionIndex,t),u=l[0],c=l[1],f=l[2],h=l[3];if(t.setLayout({candleWidth:a,isSimpleBox:a<=1.3}),s<0||l.length<4)return;return{progress:r.pipelineContext.large?d:v};function v(p,g){for(var m,y=g.getStore();(m=p.next())!=null;){var x=y.get(s,m),_=y.get(u,m),b=y.get(c,m),S=y.get(f,m),w=y.get(h,m),C=Math.min(_,b),A=Math.max(_,b),D=B(C,x),M=B(A,x),I=B(S,x),P=B(w,x),k=[];O(k,M,0),O(k,D,1),k.push(F(P),F(M),F(I),F(D));var R=g.getItemModel(m),E=!!R.get(["itemStyle","borderColorDoji"]);g.setItemLayout(m,{sign:Jb(y,m,_,b,c,E),initBaseline:_>b?M[i]:D[i],ends:k,brushRect:V(S,w,x)})}function B(H,Y){var Z=[];return Z[n]=Y,Z[i]=H,isNaN(Y)||isNaN(H)?[NaN,NaN]:e.dataToPoint(Z)}function O(H,Y,Z){var J=Y.slice(),te=Y.slice();J[n]=hc(J[n]+a/2,1,!1),te[n]=hc(te[n]-a/2,1,!0),Z?H.push(J,te):H.push(te,J)}function V(H,Y,Z){var J=B(H,Z),te=B(Y,Z);return J[n]-=a/2,te[n]-=a/2,{x:J[0],y:J[1],width:a,height:te[1]-J[1]}}function F(H){return H[n]=hc(H[n],1),H}}function d(p,g){for(var m=aa(p.count*4),y=0,x,_=[],b=[],S,w=g.getStore(),C=!!r.get(["itemStyle","borderColorDoji"]);(S=p.next())!=null;){var A=w.get(s,S),D=w.get(u,S),M=w.get(c,S),I=w.get(f,S),P=w.get(h,S);if(isNaN(A)||isNaN(I)||isNaN(P)){m[y++]=NaN,y+=3;continue}m[y++]=Jb(w,S,D,M,c,C),_[n]=A,_[i]=I,x=e.dataToPoint(_,null,b),m[y++]=x?x[0]:NaN,m[y++]=x?x[1]:NaN,_[i]=P,x=e.dataToPoint(_,null,b),m[y++]=x?x[1]:NaN}g.setLayout("largePoints",m)}}};function Jb(r,e,t,a,n,i){var o;return t>a?o=-1:t<a?o=1:o=i?0:e>0?r.get(n,e-1)<=a?1:-1:1,o}function D8(r,e){var t=r.getBaseAxis(),a,n=t.type==="category"?t.getBandWidth():(a=t.getExtent(),Math.abs(a[1]-a[0])/e.count()),i=X(fe(r.get("barMaxWidth"),n),n),o=X(fe(r.get("barMinWidth"),1),n),s=r.get("barWidth");return s!=null?X(s,n):Math.max(Math.min(n/2,i),o)}function M8(r){r.registerChartView(_8),r.registerSeriesModel(JM),r.registerPreprocessor(C8),r.registerVisual(y8),r.registerLayout(A8)}function Qb(r,e){var t=e.rippleEffectColor||e.color;r.eachChild(function(a){a.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?t:null,fill:e.brushType==="fill"?t:null}})})}var L8=(function(r){z(e,r);function e(t,a){var n=r.call(this)||this,i=new Hl(t,a),o=new ue;return n.add(i),n.add(o),n.updateData(t,a),n}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var a=t.symbolType,n=t.color,i=t.rippleNumber,o=this.childAt(1),s=0;s<i;s++){var l=lt(a,-1,-1,2,2,n);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-s/i*t.period+t.effectOffset;l.animate("",!0).when(t.period,{scaleX:t.rippleScale/2,scaleY:t.rippleScale/2}).delay(u).start(),l.animateStyle(!0).when(t.period,{opacity:0}).delay(u).start(),o.add(l)}Qb(o,t)},e.prototype.updateEffectAnimation=function(t){for(var a=this._effectCfg,n=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],o=0;o<i.length;o++){var s=i[o];if(a[s]!==t[s]){this.stopEffectAnimation(),this.startEffectAnimation(t);return}}Qb(n,t)},e.prototype.highlight=function(){La(this)},e.prototype.downplay=function(){Ia(this)},e.prototype.getSymbolType=function(){var t=this.childAt(0);return t&&t.getSymbolType()},e.prototype.updateData=function(t,a){var n=this,i=t.hostModel;this.childAt(0).updateData(t,a);var o=this.childAt(1),s=t.getItemModel(a),l=t.getItemVisual(a,"symbol"),u=Yo(t.getItemVisual(a,"symbolSize")),c=t.getItemVisual(a,"style"),f=c&&c.fill,h=s.getModel("emphasis");o.setScale(u),o.traverse(function(g){g.setStyle("fill",f)});var v=Ii(t.getItemVisual(a,"symbolOffset"),u);v&&(o.x=v[0],o.y=v[1]);var d=t.getItemVisual(a,"symbolRotate");o.rotation=(d||0)*Math.PI/180||0;var p={};p.showEffectOn=i.get("showEffectOn"),p.rippleScale=s.get(["rippleEffect","scale"]),p.brushType=s.get(["rippleEffect","brushType"]),p.period=s.get(["rippleEffect","period"])*1e3,p.effectOffset=a/t.count(),p.z=i.getShallow("z")||0,p.zlevel=i.getShallow("zlevel")||0,p.symbolType=l,p.color=f,p.rippleEffectColor=s.get(["rippleEffect","color"]),p.rippleNumber=s.get(["rippleEffect","number"]),p.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(p):this.startEffectAnimation(p),this._effectCfg=p):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(g){g==="emphasis"?p.showEffectOn!=="render"&&n.startEffectAnimation(p):g==="normal"&&p.showEffectOn!=="render"&&n.stopEffectAnimation()}),this._effectCfg=p,et(this,h.get("focus"),h.get("blurScope"),h.get("disabled"))},e.prototype.fadeOut=function(t){t&&t()},e})(ue),I8=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this._symbolDraw=new jl(L8)},e.prototype.render=function(t,a,n){var i=t.getData(),o=this._symbolDraw;o.updateData(i,{clipShape:this._getClipShape(t)}),this.group.add(o.group)},e.prototype._getClipShape=function(t){var a=t.coordinateSystem,n=a&&a.getArea&&a.getArea();return t.get("clip",!0)?n:null},e.prototype.updateTransform=function(t,a,n){var i=t.getData();this.group.dirty();var o=$l("").reset(t,a,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},e.prototype._updateGroupTransform=function(t){var a=t.coordinateSystem;a&&a.getRoamTransform&&(this.group.transform=ek(a.getRoamTransform()),this.group.decomposeTransform())},e.prototype.remove=function(t,a){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e})($e),P8=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,a){return Ba(null,this,{useEncodeDefaulter:!0})},e.prototype.brushSelector=function(t,a,n){return n.point(a.getItemLayout(t))},e.type="series.effectScatter",e.dependencies=["grid","polar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},e})(Ze);function k8(r){r.registerChartView(I8),r.registerSeriesModel(P8),r.registerLayout($l("effectScatter"))}var QM=(function(r){z(e,r);function e(t,a,n){var i=r.call(this)||this;return i.add(i.createLine(t,a,n)),i._updateEffectSymbol(t,a),i}return e.prototype.createLine=function(t,a,n){return new uy(t,a,n)},e.prototype._updateEffectSymbol=function(t,a){var n=t.getItemModel(a),i=n.getModel("effect"),o=i.get("symbolSize"),s=i.get("symbol");W(o)||(o=[o,o]);var l=t.getItemVisual(a,"style"),u=i.get("color")||l&&l.stroke,c=this.childAt(1);this._symbolType!==s&&(this.remove(c),c=lt(s,-.5,-.5,1,1,u),c.z2=100,c.culling=!0,this.add(c)),c&&(c.setStyle("shadowColor",u),c.setStyle(i.getItemStyle(["color"])),c.scaleX=o[0],c.scaleY=o[1],c.setColor(u),this._symbolType=s,this._symbolScale=o,this._updateEffectAnimation(t,i,a))},e.prototype._updateEffectAnimation=function(t,a,n){var i=this.childAt(1);if(i){var o=t.getItemLayout(n),s=a.get("period")*1e3,l=a.get("loop"),u=a.get("roundTrip"),c=a.get("constantSpeed"),f=Ct(a.get("delay"),function(v){return v/t.count()*s/3});if(i.ignore=!0,this._updateAnimationPoints(i,o),c>0&&(s=this._getLineLength(i)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var h=void 0;ne(f)?h=f(n):h=f,i.__t>0&&(h=-s*i.__t),this._animateSymbol(i,s,h,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(t,a,n,i,o){if(a>0){t.__t=0;var s=this,l=t.animate("",i).when(o?a*2:a,{__t:o?2:1}).delay(n).during(function(){s._updateSymbolPosition(t)});i||l.done(function(){s.remove(t)}),l.start()}},e.prototype._getLineLength=function(t){return Ka(t.__p1,t.__cp1)+Ka(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,a){t.__p1=a[0],t.__p2=a[1],t.__cp1=a[2]||[(a[0][0]+a[1][0])/2,(a[0][1]+a[1][1])/2]},e.prototype.updateData=function(t,a,n){this.childAt(0).updateData(t,a,n),this._updateEffectSymbol(t,a)},e.prototype._updateSymbolPosition=function(t){var a=t.__p1,n=t.__p2,i=t.__cp1,o=t.__t<1?t.__t:2-t.__t,s=[t.x,t.y],l=s.slice(),u=Tt,c=ep;s[0]=u(a[0],i[0],n[0],o),s[1]=u(a[1],i[1],n[1],o);var f=t.__t<1?c(a[0],i[0],n[0],o):c(n[0],i[0],a[0],1-o),h=t.__t<1?c(a[1],i[1],n[1],o):c(n[1],i[1],a[1],1-o);t.rotation=-Math.atan2(h,f)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(t.__lastT!==void 0&&t.__lastT<t.__t?(t.scaleY=Ka(l,s)*1.05,o===1&&(s[0]=l[0]+(s[0]-l[0])/2,s[1]=l[1]+(s[1]-l[1])/2)):t.__lastT===1?t.scaleY=2*Ka(a,s):t.scaleY=this._symbolScale[1]),t.__lastT=t.__t,t.ignore=!1,t.x=s[0],t.y=s[1]},e.prototype.updateLayout=function(t,a){this.childAt(0).updateLayout(t,a);var n=t.getItemModel(a).getModel("effect");this._updateEffectAnimation(t,n,a)},e})(ue),eL=(function(r){z(e,r);function e(t,a,n){var i=r.call(this)||this;return i._createPolyline(t,a,n),i}return e.prototype._createPolyline=function(t,a,n){var i=t.getItemLayout(a),o=new Zt({shape:{points:i}});this.add(o),this._updateCommonStl(t,a,n)},e.prototype.updateData=function(t,a,n){var i=t.hostModel,o=this.childAt(0),s={shape:{points:t.getItemLayout(a)}};Ee(o,s,i,a),this._updateCommonStl(t,a,n)},e.prototype._updateCommonStl=function(t,a,n){var i=this.childAt(0),o=t.getItemModel(a),s=n&&n.emphasisLineStyle,l=n&&n.focus,u=n&&n.blurScope,c=n&&n.emphasisDisabled;if(!n||t.hasItemOption){var f=o.getModel("emphasis");s=f.getModel("lineStyle").getLineStyle(),c=f.get("disabled"),l=f.get("focus"),u=f.get("blurScope")}i.useStyle(t.getItemVisual(a,"style")),i.style.fill=null,i.style.strokeNoScale=!0;var h=i.ensureState("emphasis");h.style=s,et(this,l,u,c)},e.prototype.updateLayout=function(t,a){var n=this.childAt(0);n.setShape("points",t.getItemLayout(a))},e})(ue),R8=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return e.prototype.createLine=function(t,a,n){return new eL(t,a,n)},e.prototype._updateAnimationPoints=function(t,a){this._points=a;for(var n=[0],i=0,o=1;o<a.length;o++){var s=a[o-1],l=a[o];i+=Ka(s,l),n.push(i)}if(i===0){this._length=0;return}for(var o=0;o<n.length;o++)n[o]/=i;this._offsets=n,this._length=i},e.prototype._getLineLength=function(){return this._length},e.prototype._updateSymbolPosition=function(t){var a=t.__t<1?t.__t:2-t.__t,n=this._points,i=this._offsets,o=n.length;if(i){var s=this._lastFrame,l;if(a<this._lastFramePercent){var u=Math.min(s+1,o-1);for(l=u;l>=0&&!(i[l]<=a);l--);l=Math.min(l,o-2)}else{for(l=s;l<o&&!(i[l]>a);l++);l=Math.min(l-1,o-2)}var c=(a-i[l])/(i[l+1]-i[l]),f=n[l],h=n[l+1];t.x=f[0]*(1-c)+c*h[0],t.y=f[1]*(1-c)+c*h[1];var v=t.__t<1?h[0]-f[0]:f[0]-h[0],d=t.__t<1?h[1]-f[1]:f[1]-h[1];t.rotation=-Math.atan2(d,v)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=a,t.ignore=!1}},e})(QM),E8=(function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r})(),N8=(function(r){z(e,r);function e(t){var a=r.call(this,t)||this;return a._off=0,a.hoverDataIdx=-1,a}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new E8},e.prototype.buildPath=function(t,a){var n=a.segs,i=a.curveness,o;if(a.polyline)for(o=this._off;o<n.length;){var s=n[o++];if(s>0){t.moveTo(n[o++],n[o++]);for(var l=1;l<s;l++)t.lineTo(n[o++],n[o++])}}else for(o=this._off;o<n.length;){var u=n[o++],c=n[o++],f=n[o++],h=n[o++];if(t.moveTo(u,c),i>0){var v=(u+f)/2-(c-h)*i,d=(c+h)/2-(f-u)*i;t.quadraticCurveTo(v,d,f,h)}else t.lineTo(f,h)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(t,a){var n=this.shape,i=n.segs,o=n.curveness,s=this.style.lineWidth;if(n.polyline)for(var l=0,u=0;u<i.length;){var c=i[u++];if(c>0)for(var f=i[u++],h=i[u++],v=1;v<c;v++){var d=i[u++],p=i[u++];if(Za(f,h,d,p,s,t,a))return l}l++}else for(var l=0,u=0;u<i.length;){var f=i[u++],h=i[u++],d=i[u++],p=i[u++];if(o>0){var g=(f+d)/2-(h-p)*o,m=(h+p)/2-(d-f)*o;if(AT(f,h,g,m,d,p,s,t,a))return l}else if(Za(f,h,d,p,s,t,a))return l;l++}return-1},e.prototype.contain=function(t,a){var n=this.transformCoordToLocal(t,a),i=this.getBoundingRect();if(t=n[0],a=n[1],i.contain(t,a)){var o=this.hoverDataIdx=this.findDataIndex(t,a);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var a=this.shape,n=a.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u<n.length;){var c=n[u++],f=n[u++];i=Math.min(c,i),s=Math.max(c,s),o=Math.min(f,o),l=Math.max(f,l)}t=this._rect=new ye(i,o,s,l)}return t},e})(Ce),O8=(function(){function r(){this.group=new ue}return r.prototype.updateData=function(e){this._clear();var t=this._create();t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e)},r.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clear()},r.prototype.incrementalUpdate=function(e,t){var a=this._newAdded[0],n=t.getLayout("linesPoints"),i=a&&a.shape.segs;if(i&&i.length<2e4){var o=i.length,s=new Float32Array(o+n.length);s.set(i),s.set(n,o),a.setShape({segs:s})}else{this._newAdded=[];var l=this._create();l.incremental=!0,l.setShape({segs:n}),this._setCommon(l,t),l.__startIndex=e.start}},r.prototype.remove=function(){this._clear()},r.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},r.prototype._create=function(){var e=new N8({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},r.prototype._setCommon=function(e,t,a){var n=t.hostModel;e.setShape({polyline:n.get("polyline"),curveness:n.get(["lineStyle","curveness"])}),e.useStyle(n.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var i=t.getVisual("style");i&&i.stroke&&e.setStyle("stroke",i.stroke),e.setStyle("fill",null);var o=ce(e);o.seriesIndex=n.seriesIndex,e.on("mousemove",function(s){o.dataIndex=null;var l=e.hoverDataIdx;l>0&&(o.dataIndex=l+e.__startIndex)})},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r})(),tL={seriesType:"lines",plan:$o(),reset:function(r){var e=r.coordinateSystem;if(e){var t=r.get("polyline"),a=r.pipelineContext.large;return{progress:function(n,i){var o=[];if(a){var s=void 0,l=n.end-n.start;if(t){for(var u=0,c=n.start;c<n.end;c++)u+=r.getLineCoordsCount(c);s=new Float32Array(l+u*2)}else s=new Float32Array(l*4);for(var f=0,h=[],c=n.start;c<n.end;c++){var v=r.getLineCoords(c,o);t&&(s[f++]=v);for(var d=0;d<v;d++)h=e.dataToPoint(o[d],!1,h),s[f++]=h[0],s[f++]=h[1]}i.setLayout("linesPoints",s)}else for(var c=n.start;c<n.end;c++){var p=i.getItemModel(c),v=r.getLineCoords(c,o),g=[];if(t)for(var m=0;m<v;m++)g.push(e.dataToPoint(o[m]));else{g[0]=e.dataToPoint(o[0]),g[1]=e.dataToPoint(o[1]);var y=p.get(["lineStyle","curveness"]);+y&&(g[2]=[(g[0][0]+g[1][0])/2-(g[0][1]-g[1][1])*y,(g[0][1]+g[1][1])/2-(g[1][0]-g[0][0])*y])}i.setItemLayout(c,g)}}}}}},B8=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=t.getData(),o=this._updateLineDraw(i,t),s=t.get("zlevel"),l=t.get(["effect","trailLength"]),u=n.getZr(),c=u.painter.getType()==="svg";c||u.painter.getLayer(s).clear(!0),this._lastZlevel!=null&&!c&&u.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&l>0&&(c||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(i);var f=t.get("clip",!0)&&Wl(t.coordinateSystem,!1,t);f?this.group.setClipPath(f):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,a,n){var i=t.getData(),o=this._updateLineDraw(i,t);o.incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},e.prototype.incrementalRender=function(t,a,n){this._lineDraw.incrementalUpdate(t,a.getData()),this._finished=t.end===a.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,a,n){var i=t.getData(),o=t.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=tL.reset(t,a,n);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},e.prototype._updateLineDraw=function(t,a){var n=this._lineDraw,i=this._showEffect(a),o=!!a.get("polyline"),s=a.pipelineContext,l=s.large;return(!n||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(n&&n.remove(),n=this._lineDraw=l?new O8:new cy(o?i?R8:eL:i?QM:uy),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(n.group),n},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var a=t.getZr(),n=a.painter.getType()==="svg";!n&&this._lastZlevel!=null&&a.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,a){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(a)},e.prototype.dispose=function(t,a){this.remove(t,a)},e.type="lines",e})($e),z8=typeof Uint32Array>"u"?Array:Uint32Array,V8=typeof Float64Array>"u"?Array:Float64Array;function eS(r){var e=r.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(r.data=U(e,function(t){var a=[t[0].coord,t[1].coord],n={coords:a};return t[0].name&&(n.fromName=t[0].name),t[1].name&&(n.toName=t[1].name),jg([n,t[0],t[1]])}))}var F8=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.init=function(t){t.data=t.data||[],eS(t);var a=this._processFlatCoordsArray(t.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(t.data=new Float32Array(a.count)),r.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(t){if(eS(t),t.data){var a=this._processFlatCoordsArray(t.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(t.data=new Float32Array(a.count))}r.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var a=this._processFlatCoordsArray(t.data);a.flatCoords&&(this._flatCoords?(this._flatCoords=tl(this._flatCoords,a.flatCoords),this._flatCoordsOffset=tl(this._flatCoordsOffset,a.flatCoordsOffset)):(this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset),t.data=new Float32Array(a.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var a=this.getData().getItemModel(t),n=a.option instanceof Array?a.option:a.getShallow("coords");return n},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[t*2+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,a){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[t*2],i=this._flatCoordsOffset[t*2+1],o=0;o<i;o++)a[o]=a[o]||[],a[o][0]=this._flatCoords[n+o*2],a[o][1]=this._flatCoords[n+o*2+1];return i}else{for(var s=this._getCoordsFromItemModel(t),o=0;o<s.length;o++)a[o]=a[o]||[],a[o][0]=s[o][0],a[o][1]=s[o][1];return s.length}},e.prototype._processFlatCoordsArray=function(t){var a=0;if(this._flatCoords&&(a=this._flatCoords.length),ke(t[0])){for(var n=t.length,i=new z8(n),o=new V8(n),s=0,l=0,u=0,c=0;c<n;){u++;var f=t[c++];i[l++]=s+a,i[l++]=f;for(var h=0;h<f;h++){var v=t[c++],d=t[c++];o[s++]=v,o[s++]=d}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},e.prototype.getInitialData=function(t,a){var n=new jt(["value"],this);return n.hasItemOption=!1,n.initData(t.data,[],function(i,o,s,l){if(i instanceof Array)return NaN;n.hasItemOption=!0;var u=i.value;if(u!=null)return u instanceof Array?u[l]:u}),n},e.prototype.formatTooltip=function(t,a,n){var i=this.getData(),o=i.getItemModel(t),s=o.get("name");if(s)return s;var l=o.get("fromName"),u=o.get("toName"),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),St("nameValue",{name:c.join(" > ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?1e4:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?2e4:this.get("progressiveThreshold"))},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),a=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&a>0?a+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e})(Ze);function ju(r){return r instanceof Array||(r=[r,r]),r}var G8={seriesType:"lines",reset:function(r){var e=ju(r.get("symbol")),t=ju(r.get("symbolSize")),a=r.getData();a.setVisual("fromSymbol",e&&e[0]),a.setVisual("toSymbol",e&&e[1]),a.setVisual("fromSymbolSize",t&&t[0]),a.setVisual("toSymbolSize",t&&t[1]);function n(i,o){var s=i.getItemModel(o),l=ju(s.getShallow("symbol",!0)),u=ju(s.getShallow("symbolSize",!0));l[0]&&i.setItemVisual(o,"fromSymbol",l[0]),l[1]&&i.setItemVisual(o,"toSymbol",l[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:a.hasItemOption?n:null}}};function H8(r){r.registerChartView(B8),r.registerSeriesModel(F8),r.registerLayout(tL),r.registerVisual(G8)}var j8=256,W8=(function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=vn.createCanvas();this.canvas=e}return r.prototype.update=function(e,t,a,n,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),c=this.pointSize+this.blurSize,f=this.canvas,h=f.getContext("2d"),v=e.length;f.width=t,f.height=a;for(var d=0;d<v;++d){var p=e[d],g=p[0],m=p[1],y=p[2],x=n(y);h.globalAlpha=x,h.drawImage(s,g-c,m-c)}if(!f.width||!f.height)return f;for(var _=h.getImageData(0,0,f.width,f.height),b=_.data,S=0,w=b.length,C=this.minOpacity,A=this.maxOpacity,D=A-C;S<w;){var x=b[S+3]/256,M=Math.floor(x*(j8-1))*4;if(x>0){var I=o(x)?l:u;x>0&&(x=x*D+C),b[S++]=I[M],b[S++]=I[M+1],b[S++]=I[M+2],b[S++]=I[M+3]*x*256}else S+=4}return h.putImageData(_,0,0),f},r.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=vn.createCanvas()),t=this.pointSize+this.blurSize,a=t*2;e.width=a,e.height=a;var n=e.getContext("2d");return n.clearRect(0,0,a,a),n.shadowOffsetX=a,n.shadowBlur=this.blurSize,n.shadowColor="#000",n.beginPath(),n.arc(-t,t,this.pointSize,0,Math.PI*2,!0),n.closePath(),n.fill(),e},r.prototype._getGradient=function(e,t){for(var a=this._gradientPixels,n=a[t]||(a[t]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,i),n[o++]=i[0],n[o++]=i[1],n[o++]=i[2],n[o++]=i[3];return n},r})();function $8(r,e,t){var a=r[1]-r[0];e=U(e,function(o){return{interval:[(o.interval[0]-r[0])/a,(o.interval[1]-r[0])/a]}});var n=e.length,i=0;return function(o){var s;for(s=i;s<n;s++){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}if(s===n)for(s=i-1;s>=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s<n&&t[s]}}function U8(r,e){var t=r[1]-r[0];return e=[(e[0]-r[0])/t,(e[1]-r[0])/t],function(a){return a>=e[0]&&a<=e[1]}}function tS(r){var e=r.dimensions;return e[0]==="lng"&&e[1]==="lat"}var Y8=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i;a.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===t&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):tS(o)&&this._renderOnGeo(o,t,i,n)},e.prototype.incrementalPrepareRender=function(t,a,n){this.group.removeAll()},e.prototype.incrementalRender=function(t,a,n,i){var o=a.coordinateSystem;o&&(tS(o)?this.render(a,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(a,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){_n(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,a,n,i,o){var s=t.coordinateSystem,l=ki(s,"cartesian2d"),u,c,f,h;if(l){var v=s.getAxis("x"),d=s.getAxis("y");u=v.getBandWidth()+.5,c=d.getBandWidth()+.5,f=v.scale.getExtent(),h=d.scale.getExtent()}for(var p=this.group,g=t.getData(),m=t.getModel(["emphasis","itemStyle"]).getItemStyle(),y=t.getModel(["blur","itemStyle"]).getItemStyle(),x=t.getModel(["select","itemStyle"]).getItemStyle(),_=t.get(["itemStyle","borderRadius"]),b=bt(t),S=t.getModel("emphasis"),w=S.get("focus"),C=S.get("blurScope"),A=S.get("disabled"),D=l?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],M=n;M<i;M++){var I=void 0,P=g.getItemVisual(M,"style");if(l){var k=g.get(D[0],M),R=g.get(D[1],M);if(isNaN(g.get(D[2],M))||isNaN(k)||isNaN(R)||k<f[0]||k>f[1]||R<h[0]||R>h[1])continue;var E=s.dataToPoint([k,R]);I=new Le({shape:{x:E[0]-u/2,y:E[1]-c/2,width:u,height:c},style:P})}else{if(isNaN(g.get(D[1],M)))continue;I=new Le({z2:1,shape:s.dataToRect([g.get(D[0],M)]).contentShape,style:P})}if(g.hasItemOption){var B=g.getItemModel(M),O=B.getModel("emphasis");m=O.getModel("itemStyle").getItemStyle(),y=B.getModel(["blur","itemStyle"]).getItemStyle(),x=B.getModel(["select","itemStyle"]).getItemStyle(),_=B.get(["itemStyle","borderRadius"]),w=O.get("focus"),C=O.get("blurScope"),A=O.get("disabled"),b=bt(B)}I.shape.r=_;var V=t.getRawValue(M),F="-";V&&V[2]!=null&&(F=V[2]+""),Pt(I,b,{labelFetcher:t,labelDataIndex:M,defaultOpacity:P.opacity,defaultText:F}),I.ensureState("emphasis").style=m,I.ensureState("blur").style=y,I.ensureState("select").style=x,et(I,w,C,A),I.incremental=o,o&&(I.states.emphasis.hoverLayer=!0),p.add(I),g.setItemGraphicEl(M,I),this._progressiveEls&&this._progressiveEls.push(I)}},e.prototype._renderOnGeo=function(t,a,n,i){var o=n.targetVisuals.inRange,s=n.targetVisuals.outOfRange,l=a.getData(),u=this._hmLayer||this._hmLayer||new W8;u.blurSize=a.get("blurSize"),u.pointSize=a.get("pointSize"),u.minOpacity=a.get("minOpacity"),u.maxOpacity=a.get("maxOpacity");var c=t.getViewRect().clone(),f=t.getRoamTransform();c.applyTransform(f);var h=Math.max(c.x,0),v=Math.max(c.y,0),d=Math.min(c.width+c.x,i.getWidth()),p=Math.min(c.height+c.y,i.getHeight()),g=d-h,m=p-v,y=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],x=l.mapArray(y,function(w,C,A){var D=t.dataToPoint([w,C]);return D[0]-=h,D[1]-=v,D.push(A),D}),_=n.getExtent(),b=n.type==="visualMap.continuous"?U8(_,n.option.range):$8(_,n.getPieceList(),n.option.selected);u.update(x,g,m,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},b);var S=new At({style:{width:g,height:m,x:h,y:v,image:u.canvas},silent:!0});this.group.add(S)},e.type="heatmap",e})($e),X8=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,a){return Ba(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=zl.get(this.get("coordinateSystem"));if(t&&t.dimensions)return t.dimensions[0]==="lng"&&t.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e})(Ze);function Z8(r){r.registerChartView(Y8),r.registerSeriesModel(X8)}var q8=["itemStyle","borderWidth"],rS=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],pd=new Oa,K8=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),f=l.master.getRect(),h={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[f.x,f.x+f.width],[f.y,f.y+f.height]],isHorizontal:c,valueDim:rS[+c],categoryDim:rS[1-+c]};o.diff(s).add(function(d){if(o.hasValue(d)){var p=nS(o,d),g=aS(o,d,p,h),m=iS(o,h,g);o.setItemGraphicEl(d,m),i.add(m),sS(m,h,g)}}).update(function(d,p){var g=s.getItemGraphicEl(p);if(!o.hasValue(d)){i.remove(g);return}var m=nS(o,d),y=aS(o,d,m,h),x=sL(o,y);g&&x!==g.__pictorialShapeStr&&(i.remove(g),o.setItemGraphicEl(d,null),g=null),g?n9(g,h,y):g=iS(o,h,y,!0),o.setItemGraphicEl(d,g),g.__pictorialSymbolMeta=y,i.add(g),sS(g,h,y)}).remove(function(d){var p=s.getItemGraphicEl(d);p&&oS(s,d,p.__pictorialSymbolMeta.animationModel,p)}).execute();var v=t.get("clip",!0)?Wl(t.coordinateSystem,!1,t):null;return v?i.setClipPath(v):i.removeClipPath(),this._data=o,this.group},e.prototype.remove=function(t,a){var n=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl(function(o){oS(i,ce(o).dataIndex,t,o)}):n.removeAll()},e.type="pictorialBar",e})($e);function aS(r,e,t,a){var n=r.getItemLayout(e),i=t.get("symbolRepeat"),o=t.get("symbolClip"),s=t.get("symbolPosition")||"start",l=t.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=t.get("symbolPatternSize")||2,f=t.isAnimationEnabled(),h={dataIndex:e,layout:n,itemModel:t,symbolType:r.getItemVisual(e,"symbol")||"circle",style:r.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:f?t:null,hoverScale:f&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};J8(t,i,n,a,h),Q8(r,e,n,i,o,h.boundingLength,h.pxSign,c,a,h),e9(t,h.symbolScale,u,a,h);var v=h.symbolSize,d=Ii(t.get("symbolOffset"),v);return t9(t,v,n,i,o,d,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,a,h),h}function J8(r,e,t,a,n){var i=a.valueDim,o=r.get("symbolBoundingData"),s=a.coordSys.getOtherAxis(a.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[i.wh]<=0),c;if(W(o)){var f=[gd(s,o[0])-l,gd(s,o[1])-l];f[1]<f[0]&&f.reverse(),c=f[u]}else o!=null?c=gd(s,o)-l:e?c=a.coordSysExtent[i.index][u]-l:c=t[i.wh];n.boundingLength=c,e&&(n.repeatCutLength=t[i.wh]);var h=i.xy==="x",v=s.inverse;n.pxSign=h&&!v||!h&&v?c>=0?1:-1:c>0?1:-1}function gd(r,e){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(e)))}function Q8(r,e,t,a,n,i,o,s,l,u){var c=l.valueDim,f=l.categoryDim,h=Math.abs(t[f.wh]),v=r.getItemVisual(e,"symbolSize"),d;W(v)?d=v.slice():v==null?d=["100%","100%"]:d=[v,v],d[f.index]=X(d[f.index],h),d[c.index]=X(d[c.index],a?h:Math.abs(i)),u.symbolSize=d;var p=u.symbolScale=[d[0]/s,d[1]/s];p[c.index]*=(l.isHorizontal?-1:1)*o}function e9(r,e,t,a,n){var i=r.get(q8)||0;i&&(pd.attr({scaleX:e[0],scaleY:e[1],rotation:t}),pd.updateTransform(),i/=pd.getLineScale(),i*=e[a.valueDim.index]),n.valueLineWidth=i||0}function t9(r,e,t,a,n,i,o,s,l,u,c,f){var h=c.categoryDim,v=c.valueDim,d=f.pxSign,p=Math.max(e[v.index]+s,0),g=p;if(a){var m=Math.abs(l),y=Ct(r.get("symbolMargin"),"15%")+"",x=!1;y.lastIndexOf("!")===y.length-1&&(x=!0,y=y.slice(0,y.length-1));var _=X(y,e[v.index]),b=Math.max(p+_*2,0),S=x?0:_*2,w=hT(a),C=w?a:lS((m+S)/b),A=m-C*p;_=A/2/(x?C:Math.max(C-1,1)),b=p+_*2,S=x?0:_*2,!w&&a!=="fixed"&&(C=u?lS((Math.abs(u)+S)/b):0),g=C*b-S,f.repeatTimes=C,f.symbolMargin=_}var D=d*(g/2),M=f.pathPosition=[];M[h.index]=t[h.wh]/2,M[v.index]=o==="start"?D:o==="end"?l-D:l/2,i&&(M[0]+=i[0],M[1]+=i[1]);var I=f.bundlePosition=[];I[h.index]=t[h.xy],I[v.index]=t[v.xy];var P=f.barRectShape=G({},t);P[v.wh]=d*Math.max(Math.abs(t[v.wh]),Math.abs(M[v.index]+D)),P[h.wh]=t[h.wh];var k=f.clipShape={};k[h.xy]=-t[h.xy],k[h.wh]=c.ecSize[h.wh],k[v.xy]=0,k[v.wh]=t[v.wh]}function rL(r){var e=r.symbolPatternSize,t=lt(r.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function aL(r,e,t,a){var n=r.__pictorialBundle,i=t.symbolSize,o=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,c=0,f=i[e.valueDim.index]+o+t.symbolMargin*2;for(_y(r,function(p){p.__pictorialAnimationIndex=c,p.__pictorialRepeatTimes=u,c<u?So(p,null,d(c),t,a):So(p,null,{scaleX:0,scaleY:0},t,a,function(){n.remove(p)}),c++});c<u;c++){var h=rL(t);h.__pictorialAnimationIndex=c,h.__pictorialRepeatTimes=u,n.add(h);var v=d(c);So(h,{x:v.x,y:v.y,scaleX:0,scaleY:0},{scaleX:v.scaleX,scaleY:v.scaleY,rotation:v.rotation},t,a)}function d(p){var g=s.slice(),m=t.pxSign,y=p;return(t.symbolRepeatDirection==="start"?m>0:m<0)&&(y=u-1-p),g[l.index]=f*(y-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function nL(r,e,t,a){var n=r.__pictorialBundle,i=r.__pictorialMainPath;i?So(i,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,a):(i=r.__pictorialMainPath=rL(t),n.add(i),So(i,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,a))}function iL(r,e,t){var a=G({},e.barRectShape),n=r.__pictorialBarRect;n?So(n,null,{shape:a},e,t):(n=r.__pictorialBarRect=new Le({z2:2,shape:a,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),n.disableMorphing=!0,r.add(n))}function oL(r,e,t,a){if(t.symbolClip){var n=r.__pictorialClipPath,i=G({},t.clipShape),o=e.valueDim,s=t.animationModel,l=t.dataIndex;if(n)Ee(n,{shape:i},s,l);else{i[o.wh]=0,n=new Le({shape:i}),r.__pictorialBundle.setClipPath(n),r.__pictorialClipPath=n;var u={};u[o.wh]=t.clipShape[o.wh],Li[a?"updateProps":"initProps"](n,{shape:u},s,l)}}}function nS(r,e){var t=r.getItemModel(e);return t.getAnimationDelayParams=r9,t.isAnimationEnabled=a9,t}function r9(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function a9(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function iS(r,e,t,a){var n=new ue,i=new ue;return n.add(i),n.__pictorialBundle=i,i.x=t.bundlePosition[0],i.y=t.bundlePosition[1],t.symbolRepeat?aL(n,e,t):nL(n,e,t),iL(n,t,a),oL(n,e,t,a),n.__pictorialShapeStr=sL(r,t),n.__pictorialSymbolMeta=t,n}function n9(r,e,t){var a=t.animationModel,n=t.dataIndex,i=r.__pictorialBundle;Ee(i,{x:t.bundlePosition[0],y:t.bundlePosition[1]},a,n),t.symbolRepeat?aL(r,e,t,!0):nL(r,e,t,!0),iL(r,t,!0),oL(r,e,t,!0)}function oS(r,e,t,a){var n=a.__pictorialBarRect;n&&n.removeTextContent();var i=[];_y(a,function(o){i.push(o)}),a.__pictorialMainPath&&i.push(a.__pictorialMainPath),a.__pictorialClipPath&&(t=null),L(i,function(o){pn(o,{scaleX:0,scaleY:0},t,e,function(){a.parent&&a.parent.remove(a)})}),r.setItemGraphicEl(e,null)}function sL(r,e){return[r.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function _y(r,e,t){L(r.__pictorialBundle.children(),function(a){a!==r.__pictorialBarRect&&e.call(t,a)})}function So(r,e,t,a,n,i){e&&r.attr(e),a.symbolClip&&!n?t&&r.attr(t):t&&Li[n?"updateProps":"initProps"](r,t,a.animationModel,a.dataIndex,i)}function sS(r,e,t){var a=t.dataIndex,n=t.itemModel,i=n.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=n.getModel(["blur","itemStyle"]).getItemStyle(),l=n.getModel(["select","itemStyle"]).getItemStyle(),u=n.getShallow("cursor"),c=i.get("focus"),f=i.get("blurScope"),h=i.get("scale");_y(r,function(p){if(p instanceof At){var g=p.style;p.useStyle(G({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},t.style))}else p.useStyle(t.style);var m=p.ensureState("emphasis");m.style=o,h&&(m.scaleX=p.scaleX*1.1,m.scaleY=p.scaleY*1.1),p.ensureState("blur").style=s,p.ensureState("select").style=l,u&&(p.cursor=u),p.z2=t.z2});var v=e.valueDim.posDesc[+(t.boundingLength>0)],d=r.__pictorialBarRect;d.ignoreClip=!0,Pt(d,bt(n),{labelFetcher:e.seriesModel,labelDataIndex:a,defaultText:Lo(e.seriesModel.getData(),a),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:v}),et(r,c,f,i.get("disabled"))}function lS(r){var e=Math.round(r);return Math.abs(r-e)<1e-4?e:Math.ceil(r)}var i9=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,r.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=bn(xl.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e})(xl);function o9(r){r.registerChartView(K8),r.registerSeriesModel(i9),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,ve(WA,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,$A("pictorialBar"))}var s9=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._layers=[],t}return e.prototype.render=function(t,a,n){var i=t.getData(),o=this,s=this.group,l=t.getLayerSeries(),u=i.getLayout("layoutInfo"),c=u.rect,f=u.boundaryGap;s.x=0,s.y=c.y+f[0];function h(g){return g.name}var v=new Pa(this._layersSeries||[],l,h,h),d=[];v.add(Q(p,this,"add")).update(Q(p,this,"update")).remove(Q(p,this,"remove")).execute();function p(g,m,y){var x=o._layers;if(g==="remove"){s.remove(x[m]);return}for(var _=[],b=[],S,w=l[m].indices,C=0;C<w.length;C++){var A=i.getItemLayout(w[C]),D=A.x,M=A.y0,I=A.y;_.push(D,M),b.push(D,M+I),S=i.getItemVisual(w[C],"style")}var P,k=i.getItemLayout(w[0]),R=t.getModel("label"),E=R.get("margin"),B=t.getModel("emphasis");if(g==="add"){var O=d[m]=new ue;P=new RD({shape:{points:_,stackedOnPoints:b,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),O.add(P),s.add(O),t.isAnimationEnabled()&&P.setClipPath(l9(P.getBoundingRect(),t,function(){P.removeClipPath()}))}else{var O=x[y];P=O.childAt(0),s.add(O),d[m]=O,Ee(P,{shape:{points:_,stackedOnPoints:b}},t),Gr(P)}Pt(P,bt(t),{labelDataIndex:w[C-1],defaultText:i.getName(w[C-1]),inheritColor:S.fill},{normal:{verticalAlign:"middle"}}),P.setTextConfig({position:null,local:!0});var V=P.getTextContent();V&&(V.x=k.x-E,V.y=k.y0+k.y/2),P.useStyle(S),i.setItemGraphicEl(m,P),It(P,t),et(P,B.get("focus"),B.get("blurScope"),B.get("disabled"))}this._layersSeries=l,this._layers=d},e.type="themeRiver",e})($e);function l9(r,e,t){var a=new Le({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return Je(a,{shape:{x:r.x-50,width:r.width+100,height:r.height+20}},e,t),a}var md=2,u9=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Yl(Q(this.getData,this),Q(this.getRawData,this))},e.prototype.fixData=function(t){var a=t.length,n={},i=pp(t,function(h){return n.hasOwnProperty(h[0]+"")||(n[h[0]+""]=-1),h[2]}),o=[];i.buckets.each(function(h,v){o.push({name:v,dataList:h})});for(var s=o.length,l=0;l<s;++l){for(var u=o[l].name,c=0;c<o[l].dataList.length;++c){var f=o[l].dataList[c][0]+"";n[f]=l}for(var f in n)n.hasOwnProperty(f)&&n[f]!==l&&(n[f]=l,t[a]=[f,0,u],a++)}return t},e.prototype.getInitialData=function(t,a){for(var n=this.getReferringComponents("singleAxis",st).models[0],i=n.get("type"),o=ze(t.data,function(d){return d[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=re(),c=0,f=0;f<s.length;++f)l.push(s[f][md]),u.get(s[f][md])||(u.set(s[f][md],c),c++);var h=Fl(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:qc(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,v=new jt(h,this);return v.initData(s),v},e.prototype.getLayerSeries=function(){for(var t=this.getData(),a=t.count(),n=[],i=0;i<a;++i)n[i]=i;var o=t.mapDimension("single"),s=pp(n,function(u){return t.get("name",u)}),l=[];return s.buckets.each(function(u,c){u.sort(function(f,h){return t.get(o,f)-t.get(o,h)}),l.push({name:c,indices:u})}),l},e.prototype.getAxisTooltipData=function(t,a,n){W(t)||(t=t?[t]:[]);for(var i=this.getData(),o=this.getLayerSeries(),s=[],l=o.length,u,c=0;c<l;++c){for(var f=Number.MAX_VALUE,h=-1,v=o[c].indices.length,d=0;d<v;++d){var p=i.get(t[0],o[c].indices[d]),g=Math.abs(p-a);g<=f&&(u=p,f=g,h=o[c].indices[d])}s.push(h)}return{dataIndices:s,nestestValue:u}},e.prototype.formatTooltip=function(t,a,n){var i=this.getData(),o=i.getName(t),s=i.get(i.mapDimension("value"),t);return St("nameValue",{name:o,value:s})},e.type="series.themeRiver",e.dependencies=["singleAxis"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},e})(Ze);function c9(r,e){r.eachSeriesByType("themeRiver",function(t){var a=t.getData(),n=t.coordinateSystem,i={},o=n.getRect();i.rect=o;var s=t.get("boundaryGap"),l=n.getAxis();if(i.boundaryGap=s,l.orient==="horizontal"){s[0]=X(s[0],o.height),s[1]=X(s[1],o.height);var u=o.height-s[0]-s[1];uS(a,t,u)}else{s[0]=X(s[0],o.width),s[1]=X(s[1],o.width);var c=o.width-s[0]-s[1];uS(a,t,c)}a.setLayout("layoutInfo",i)})}function uS(r,e,t){if(r.count())for(var a=e.coordinateSystem,n=e.getLayerSeries(),i=r.mapDimension("single"),o=r.mapDimension("value"),s=U(n,function(g){return U(g.indices,function(m){var y=a.dataToPoint(r.get(i,m));return y[1]=r.get(o,m),y})}),l=f9(s),u=l.y0,c=t/l.max,f=n.length,h=n[0].indices.length,v,d=0;d<h;++d){v=u[d]*c,r.setItemLayout(n[0].indices[d],{layerIndex:0,x:s[0][d][0],y0:v,y:s[0][d][1]*c});for(var p=1;p<f;++p)v+=s[p-1][d][1]*c,r.setItemLayout(n[p].indices[d],{layerIndex:p,x:s[p][d][0],y0:v,y:s[p][d][1]*c})}}function f9(r){for(var e=r.length,t=r[0].length,a=[],n=[],i=0,o=0;o<t;++o){for(var s=0,l=0;l<e;++l)s+=r[l][o][1];s>i&&(i=s),a.push(s)}for(var u=0;u<t;++u)n[u]=(i-a[u])/2;i=0;for(var c=0;c<t;++c){var f=a[c]+n[c];f>i&&(i=f)}return{y0:n,max:i}}function h9(r){r.registerChartView(s9),r.registerSeriesModel(u9),r.registerLayout(c9),r.registerProcessor(Ul("themeRiver"))}var v9=2,d9=4,cS=(function(r){z(e,r);function e(t,a,n,i){var o=r.call(this)||this;o.z2=v9,o.textConfig={inside:!0},ce(o).seriesIndex=a.seriesIndex;var s=new Pe({z2:d9,silent:t.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,t,a,n,i),o}return e.prototype.updateData=function(t,a,n,i,o){this.node=a,a.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var s=this;ce(s).dataIndex=a.dataIndex;var l=a.getModel(),u=l.getModel("emphasis"),c=a.getLayout(),f=G({},c);f.label=null;var h=a.getVisual("style");h.lineJoin="bevel";var v=a.getVisual("decal");v&&(h.decal=Do(v,o));var d=ui(l.getModel("itemStyle"),f,!0);G(f,d),L(Ut,function(y){var x=s.ensureState(y),_=l.getModel([y,"itemStyle"]);x.style=_.getItemStyle();var b=ui(_,f);b&&(x.shape=b)}),t?(s.setShape(f),s.shape.r=c.r0,Je(s,{shape:{r:c.r}},n,a.dataIndex)):(Ee(s,{shape:f},n),Gr(s)),s.useStyle(h),this._updateLabel(n);var p=l.getShallow("cursor");p&&s.attr("cursor",p),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var g=u.get("focus"),m=g==="relative"?tl(a.getAncestorsIndices(),a.getDescendantIndices()):g==="ancestor"?a.getAncestorsIndices():g==="descendant"?a.getDescendantIndices():g;et(this,m,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t){var a=this,n=this.node.getModel(),i=n.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),c=Math.sin(l),f=this,h=f.getTextContent(),v=this.node.dataIndex,d=i.get("minAngle")/180*Math.PI,p=i.get("show")&&!(d!=null&&Math.abs(s)<d);h.ignore=!p,L(sl,function(m){var y=m==="normal"?n.getModel("label"):n.getModel([m,"label"]),x=m==="normal",_=x?h:h.ensureState(m),b=t.getFormattedLabel(v,m);x&&(b=b||a.node.name),_.style=Xe(y,{},null,m!=="normal",!0),b&&(_.style.text=b);var S=y.get("show");S!=null&&!x&&(_.ignore=!S);var w=g(y,"position"),C=x?f:f.states[m],A=C.style.fill;C.textConfig={outsideFill:y.get("color")==="inherit"?A:null,inside:w!=="outside"};var D,M=g(y,"distance")||0,I=g(y,"align"),P=g(y,"rotate"),k=Math.PI*.5,R=Math.PI*1.5,E=ir(P==="tangential"?Math.PI/2-l:l),B=E>k&&!il(E-k)&&E<R;w==="outside"?(D=o.r+M,I=B?"right":"left"):!I||I==="center"?(s===2*Math.PI&&o.r0===0?D=0:D=(o.r+o.r0)/2,I="center"):I==="left"?(D=o.r0+M,I=B?"right":"left"):I==="right"&&(D=o.r-M,I=B?"left":"right"),_.style.align=I,_.style.verticalAlign=g(y,"verticalAlign")||"middle",_.x=D*u+o.cx,_.y=D*c+o.cy;var O=0;P==="radial"?O=ir(-l)+(B?Math.PI:0):P==="tangential"?O=ir(Math.PI/2-l)+(B?Math.PI:0):ke(P)&&(O=P*Math.PI/180),_.rotation=ir(O)});function g(m,y){var x=m.get(y);return x??i.get(y)}h.dirtyStyle()},e})(Yt),pg="sunburstRootToNode",fS="sunburstHighlight",p9="sunburstUnhighlight";function g9(r){r.registerAction({type:pg,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},a);function a(n,i){var o=bl(e,[pg],n);if(o){var s=n.getViewRoot();s&&(e.direction=ny(s,o.node)?"rollUp":"drillDown"),n.resetViewRoot(o.node)}}}),r.registerAction({type:fS,update:"none"},function(e,t,a){e=G({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},n);function n(i){var o=bl(e,[fS],i);o&&(e.dataIndex=o.node.dataIndex)}a.dispatchAction(G(e,{type:"highlight"}))}),r.registerAction({type:p9,update:"updateView"},function(e,t,a){e=G({},e),a.dispatchAction(G(e,{type:"downplay"}))})}var m9=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n,i){var o=this;this.seriesModel=t,this.api=n,this.ecModel=a;var s=t.getData(),l=s.tree.root,u=t.getViewRoot(),c=this.group,f=t.get("renderLabelForZeroData"),h=[];u.eachNode(function(y){h.push(y)});var v=this._oldChildren||[];d(h,v),m(l,u),this._initEvents(),this._oldChildren=h;function d(y,x){if(y.length===0&&x.length===0)return;new Pa(x,y,_,_).add(b).update(b).remove(ve(b,null)).execute();function _(S){return S.getId()}function b(S,w){var C=S==null?null:y[S],A=w==null?null:x[w];p(C,A)}}function p(y,x){if(!f&&y&&!y.getValue()&&(y=null),y!==l&&x!==l){if(x&&x.piece)y?(x.piece.updateData(!1,y,t,a,n),s.setItemGraphicEl(y.dataIndex,x.piece)):g(x);else if(y){var _=new cS(y,t,a,n);c.add(_),s.setItemGraphicEl(y.dataIndex,_)}}}function g(y){y&&y.piece&&(c.remove(y.piece),y.piece=null)}function m(y,x){x.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,y,t,a,n):(o.virtualPiece=new cS(y,t,a,n),c.add(o.virtualPiece)),x.piece.off("click"),o.virtualPiece.on("click",function(_){o._rootToNode(x.parentNode)})):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(a){var n=!1,i=t.seriesModel.getViewRoot();i.eachNode(function(o){if(!n&&o.piece&&o.piece===a.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")t._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";Hc(u,c)}}n=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:pg,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,a){var n=a.getData(),i=n.getItemLayout(0);if(i){var o=t[0]-i.cx,s=t[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},e.type="sunburst",e})($e),y9=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t,a){var n={name:t.name,children:t.data};lL(n);var i=this._levelModels=U(t.levels||[],function(l){return new Ge(l,this,a)},this),o=ay.createTree(n,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var f=o.getNodeByDataIndex(c),h=i[f.depth];return h&&(u.parentModel=h),u})}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(t){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return a.treePathInfo=sh(n,this),a},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var a=this.getRawData().tree.root;(!t||t!==a&&!a.contains(t))&&(this._viewRoot=a)},e.prototype.enableAriaDecal=function(){vM(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e})(Ze);function lL(r){var e=0;L(r.children,function(a){lL(a);var n=a.value;W(n)&&(n=n[0]),e+=n});var t=r.value;W(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),W(r.value)?r.value[0]=t:r.value=t}var hS=Math.PI/180;function x9(r,e,t){e.eachSeriesByType(r,function(a){var n=a.get("center"),i=a.get("radius");W(i)||(i=[0,i]),W(n)||(n=[n,n]);var o=t.getWidth(),s=t.getHeight(),l=Math.min(o,s),u=X(n[0],o),c=X(n[1],s),f=X(i[0],l/2),h=X(i[1],l/2),v=-a.get("startAngle")*hS,d=a.get("minAngle")*hS,p=a.getData().tree.root,g=a.getViewRoot(),m=g.depth,y=a.get("sort");y!=null&&uL(g,y);var x=0;L(g.children,function(E){!isNaN(E.getValue())&&x++});var _=g.getValue(),b=Math.PI/(_||x)*2,S=g.depth>0,w=g.height-(S?-1:1),C=(h-f)/(w||1),A=a.get("clockwise"),D=a.get("stillShowZeroSum"),M=A?1:-1,I=function(E,B){if(E){var O=B;if(E!==p){var V=E.getValue(),F=_===0&&D?b:V*b;F<d&&(F=d),O=B+M*F;var H=E.depth-m-(S?-1:1),Y=f+C*H,Z=f+C*(H+1),J=a.getLevelModel(E);if(J){var te=J.get("r0",!0),xe=J.get("r",!0),de=J.get("radius",!0);de!=null&&(te=de[0],xe=de[1]),te!=null&&(Y=X(te,l/2)),xe!=null&&(Z=X(xe,l/2))}E.setLayout({angle:F,startAngle:B,endAngle:O,clockwise:A,cx:u,cy:c,r0:Y,r:Z})}if(E.children&&E.children.length){var oe=0;L(E.children,function(ae){oe+=I(ae,B+oe)})}return O-B}};if(S){var P=f,k=f+C,R=Math.PI*2;p.setLayout({angle:R,startAngle:v,endAngle:v+R,clockwise:A,cx:u,cy:c,r0:P,r:k})}I(g,v)})}function uL(r,e){var t=r.children||[];r.children=_9(t,e),t.length&&L(r.children,function(a){uL(a,e)})}function _9(r,e){if(ne(e)){var t=U(r,function(n,i){var o=n.getValue();return{params:{depth:n.depth,height:n.height,dataIndex:n.dataIndex,getValue:function(){return o}},index:i}});return t.sort(function(n,i){return e(n.params,i.params)}),U(t,function(n){return r[n.index]})}else{var a=e==="asc";return r.sort(function(n,i){var o=(n.getValue()-i.getValue())*(a?1:-1);return o===0?(n.dataIndex-i.dataIndex)*(a?-1:1):o})}}function b9(r){var e={};function t(a,n,i){for(var o=a;o&&o.depth>1;)o=o.parentNode;var s=n.getColorFromPalette(o.name||o.dataIndex+"",e);return a.depth>1&&q(s)&&(s=ap(s,(a.depth-1)/(i-1)*.5)),s}r.eachSeriesByType("sunburst",function(a){var n=a.getData(),i=n.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=t(o,a,i.root.height));var u=n.ensureUniqueItemVisual(o.dataIndex,"style");G(u,l)})})}function S9(r){r.registerChartView(m9),r.registerSeriesModel(y9),r.registerLayout(ve(x9,"sunburst")),r.registerProcessor(ve(Ul,"sunburst")),r.registerVisual(b9),g9(r)}var vS={color:"fill",borderColor:"stroke"},w9={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Ca=Ie(),T9=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,a){return Ba(null,this)},e.prototype.getDataParams=function(t,a,n){var i=r.prototype.getDataParams.call(this,t,a);return n&&(i.info=Ca(n).info),i},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e})(Ze);function C9(r,e){return e=e||[0,0],U(["x","y"],function(t,a){var n=this.getAxis(t),i=e[a],o=r[a]/2;return n.type==="category"?n.getBandWidth():Math.abs(n.dataToCoord(i-o)-n.dataToCoord(i+o))},this)}function A9(r){var e=r.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:Q(C9,r)}}}function D9(r,e){return e=e||[0,0],U([0,1],function(t){var a=e[t],n=r[t]/2,i=[],o=[];return i[t]=a-n,o[t]=a+n,i[1-t]=o[1-t]=e[1-t],Math.abs(this.dataToPoint(i)[t]-this.dataToPoint(o)[t])},this)}function M9(r){var e=r.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:r.getZoom()},api:{coord:function(t){return r.dataToPoint(t)},size:Q(D9,r)}}}function L9(r,e){var t=this.getAxis(),a=e instanceof Array?e[0]:e,n=(r instanceof Array?r[0]:r)/2;return t.type==="category"?t.getBandWidth():Math.abs(t.dataToCoord(a-n)-t.dataToCoord(a+n))}function I9(r){var e=r.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:Q(L9,r)}}}function P9(r,e){return e=e||[0,0],U(["Radius","Angle"],function(t,a){var n="get"+t+"Axis",i=this[n](),o=e[a],s=r[a]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return t==="Angle"&&(l=l*Math.PI/180),l},this)}function k9(r){var e=r.getRadiusAxis(),t=r.getAngleAxis(),a=e.getExtent();return a[0]>a[1]&&a.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:a[1],r0:a[0]},api:{coord:function(n){var i=e.dataToRadius(n[0]),o=t.dataToAngle(n[1]),s=r.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:Q(P9,r)}}}function R9(r){var e=r.getRect(),t=r.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(a,n){return r.dataToPoint(a,n)}}}}function cL(r,e,t,a){return r&&(r.legacy||r.legacy!==!1&&!t&&!a&&e!=="tspan"&&(e==="text"||ee(r,"text")))}function fL(r,e,t){var a=r,n,i,o;if(e==="text")o=a;else{o={},ee(a,"text")&&(o.text=a.text),ee(a,"rich")&&(o.rich=a.rich),ee(a,"textFill")&&(o.fill=a.textFill),ee(a,"textStroke")&&(o.stroke=a.textStroke),ee(a,"fontFamily")&&(o.fontFamily=a.fontFamily),ee(a,"fontSize")&&(o.fontSize=a.fontSize),ee(a,"fontStyle")&&(o.fontStyle=a.fontStyle),ee(a,"fontWeight")&&(o.fontWeight=a.fontWeight),i={type:"text",style:o,silent:!0},n={};var s=ee(a,"textPosition");t?n.position=s?a.textPosition:"inside":s&&(n.position=a.textPosition),ee(a,"textPosition")&&(n.position=a.textPosition),ee(a,"textOffset")&&(n.offset=a.textOffset),ee(a,"textRotation")&&(n.rotation=a.textRotation),ee(a,"textDistance")&&(n.distance=a.textDistance)}return dS(o,r),L(o.rich,function(l){dS(l,l)}),{textConfig:n,textContent:i}}function dS(r,e){e&&(e.font=e.textFont||e.font,ee(e,"textStrokeWidth")&&(r.lineWidth=e.textStrokeWidth),ee(e,"textAlign")&&(r.align=e.textAlign),ee(e,"textVerticalAlign")&&(r.verticalAlign=e.textVerticalAlign),ee(e,"textLineHeight")&&(r.lineHeight=e.textLineHeight),ee(e,"textWidth")&&(r.width=e.textWidth),ee(e,"textHeight")&&(r.height=e.textHeight),ee(e,"textBackgroundColor")&&(r.backgroundColor=e.textBackgroundColor),ee(e,"textPadding")&&(r.padding=e.textPadding),ee(e,"textBorderColor")&&(r.borderColor=e.textBorderColor),ee(e,"textBorderWidth")&&(r.borderWidth=e.textBorderWidth),ee(e,"textBorderRadius")&&(r.borderRadius=e.textBorderRadius),ee(e,"textBoxShadowColor")&&(r.shadowColor=e.textBoxShadowColor),ee(e,"textBoxShadowBlur")&&(r.shadowBlur=e.textBoxShadowBlur),ee(e,"textBoxShadowOffsetX")&&(r.shadowOffsetX=e.textBoxShadowOffsetX),ee(e,"textBoxShadowOffsetY")&&(r.shadowOffsetY=e.textBoxShadowOffsetY))}function pS(r,e,t){var a=r;a.textPosition=a.textPosition||t.position||"inside",t.offset!=null&&(a.textOffset=t.offset),t.rotation!=null&&(a.textRotation=t.rotation),t.distance!=null&&(a.textDistance=t.distance);var n=a.textPosition.indexOf("inside")>=0,i=r.fill||"#000";gS(a,e);var o=a.textFill==null;return n?o&&(a.textFill=t.insideFill||"#fff",!a.textStroke&&t.insideStroke&&(a.textStroke=t.insideStroke),!a.textStroke&&(a.textStroke=i),a.textStrokeWidth==null&&(a.textStrokeWidth=2)):(o&&(a.textFill=r.fill||t.outsideFill||"#000"),!a.textStroke&&t.outsideStroke&&(a.textStroke=t.outsideStroke)),a.text=e.text,a.rich=e.rich,L(e.rich,function(s){gS(s,s)}),a}function gS(r,e){e&&(ee(e,"fill")&&(r.textFill=e.fill),ee(e,"stroke")&&(r.textStroke=e.fill),ee(e,"lineWidth")&&(r.textStrokeWidth=e.lineWidth),ee(e,"font")&&(r.font=e.font),ee(e,"fontStyle")&&(r.fontStyle=e.fontStyle),ee(e,"fontWeight")&&(r.fontWeight=e.fontWeight),ee(e,"fontSize")&&(r.fontSize=e.fontSize),ee(e,"fontFamily")&&(r.fontFamily=e.fontFamily),ee(e,"align")&&(r.textAlign=e.align),ee(e,"verticalAlign")&&(r.textVerticalAlign=e.verticalAlign),ee(e,"lineHeight")&&(r.textLineHeight=e.lineHeight),ee(e,"width")&&(r.textWidth=e.width),ee(e,"height")&&(r.textHeight=e.height),ee(e,"backgroundColor")&&(r.textBackgroundColor=e.backgroundColor),ee(e,"padding")&&(r.textPadding=e.padding),ee(e,"borderColor")&&(r.textBorderColor=e.borderColor),ee(e,"borderWidth")&&(r.textBorderWidth=e.borderWidth),ee(e,"borderRadius")&&(r.textBorderRadius=e.borderRadius),ee(e,"shadowColor")&&(r.textBoxShadowColor=e.shadowColor),ee(e,"shadowBlur")&&(r.textBoxShadowBlur=e.shadowBlur),ee(e,"shadowOffsetX")&&(r.textBoxShadowOffsetX=e.shadowOffsetX),ee(e,"shadowOffsetY")&&(r.textBoxShadowOffsetY=e.shadowOffsetY),ee(e,"textShadowColor")&&(r.textShadowColor=e.textShadowColor),ee(e,"textShadowBlur")&&(r.textShadowBlur=e.textShadowBlur),ee(e,"textShadowOffsetX")&&(r.textShadowOffsetX=e.textShadowOffsetX),ee(e,"textShadowOffsetY")&&(r.textShadowOffsetY=e.textShadowOffsetY))}var hL={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},mS=Me(hL);sa(ua,function(r,e){return r[e]=1,r},{});ua.join(", ");var uf=["","style","shape","extra"],ko=Ie();function by(r,e,t,a,n){var i=r+"Animation",o=Vo(r,a,n)||{},s=ko(e).userDuring;return o.duration>0&&(o.during=s?Q(z9,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=r),G(o,t[i]),o}function yc(r,e,t,a){a=a||{};var n=a.dataIndex,i=a.isInit,o=a.clearStyle,s=t.isAnimationEnabled(),l=ko(r),u=e.style;l.userDuring=e.during;var c={},f={};if(F9(r,e,f),xS("shape",e,f),xS("extra",e,f),!i&&s&&(V9(r,e,c),yS("shape",r,e,c),yS("extra",r,e,c),G9(r,e,u,c)),f.style=u,E9(r,f,o),O9(r,e),s)if(i){var h={};L(uf,function(d){var p=d?e[d]:e;p&&p.enterFrom&&(d&&(h[d]=h[d]||{}),G(d?h[d]:h,p.enterFrom))});var v=by("enter",r,e,t,n);v.duration>0&&r.animateFrom(h,v)}else N9(r,e,n||0,t,c);vL(r,e),u?r.dirty():r.markRedraw()}function vL(r,e){for(var t=ko(r).leaveToProps,a=0;a<uf.length;a++){var n=uf[a],i=n?e[n]:e;i&&i.leaveTo&&(t||(t=ko(r).leaveToProps={}),n&&(t[n]=t[n]||{}),G(n?t[n]:t,i.leaveTo))}}function ch(r,e,t,a){if(r){var n=r.parent,i=ko(r).leaveToProps;if(i){var o=by("update",r,e,t,0);o.done=function(){n.remove(r)},r.animateTo(i,o)}else n.remove(r)}}function yi(r){return r==="all"}function E9(r,e,t){var a=e.style;if(!r.isGroup&&a){if(t){r.useStyle({});for(var n=r.animators,i=0;i<n.length;i++){var o=n[i];o.targetName==="style"&&o.changeTarget(r.style)}}r.setStyle(a)}e&&(e.style=null,e&&r.attr(e),e.style=a)}function N9(r,e,t,a,n){if(n){var i=by("update",r,e,a,t);i.duration>0&&r.animateFrom(n,i)}}function O9(r,e){ee(e,"silent")&&(r.silent=e.silent),ee(e,"ignore")&&(r.ignore=e.ignore),r instanceof Cr&&ee(e,"invisible")&&(r.invisible=e.invisible),r instanceof Ce&&ee(e,"autoBatch")&&(r.autoBatch=e.autoBatch)}var Zr={},B9={setTransform:function(r,e){return Zr.el[r]=e,this},getTransform:function(r){return Zr.el[r]},setShape:function(r,e){var t=Zr.el,a=t.shape||(t.shape={});return a[r]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(r){var e=Zr.el.shape;if(e)return e[r]},setStyle:function(r,e){var t=Zr.el,a=t.style;return a&&(a[r]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(r){var e=Zr.el.style;if(e)return e[r]},setExtra:function(r,e){var t=Zr.el.extra||(Zr.el.extra={});return t[r]=e,this},getExtra:function(r){var e=Zr.el.extra;if(e)return e[r]}};function z9(){var r=this,e=r.el;if(e){var t=ko(e).userDuring,a=r.userDuring;if(t!==a){r.el=r.userDuring=null;return}Zr.el=e,a(B9)}}function yS(r,e,t,a){var n=t[r];if(n){var i=e[r],o;if(i){var s=t.transition,l=n.transition;if(l)if(!o&&(o=a[r]={}),yi(l))G(o,i);else for(var u=je(l),c=0;c<u.length;c++){var f=u[c],h=i[f];o[f]=h}else if(yi(s)||_e(s,r)>=0){!o&&(o=a[r]={});for(var v=Me(i),c=0;c<v.length;c++){var f=v[c],h=i[f];H9(n[f],h)&&(o[f]=h)}}}}}function xS(r,e,t){var a=e[r];if(a)for(var n=t[r]={},i=Me(a),o=0;o<i.length;o++){var s=i[o];n[s]=Gs(a[s])}}function V9(r,e,t){for(var a=e.transition,n=yi(a)?ua:je(a||[]),i=0;i<n.length;i++){var o=n[i];if(!(o==="style"||o==="shape"||o==="extra")){var s=r[o];t[o]=s}}}function F9(r,e,t){for(var a=0;a<mS.length;a++){var n=mS[a],i=hL[n],o=e[n];o&&(t[i[0]]=o[0],t[i[1]]=o[1])}for(var a=0;a<ua.length;a++){var s=ua[a];e[s]!=null&&(t[s]=e[s])}}function G9(r,e,t,a){if(t){var n=r.style,i;if(n){var o=t.transition,s=e.transition;if(o&&!yi(o)){var l=je(o);!i&&(i=a.style={});for(var u=0;u<l.length;u++){var c=l[u],f=n[c];i[c]=f}}else if(r.getAnimationStyleProps&&(yi(s)||yi(o)||_e(s,"style")>=0)){var h=r.getAnimationStyleProps(),v=h?h.style:null;if(v){!i&&(i=a.style={});for(var d=Me(t),u=0;u<d.length;u++){var c=d[u];if(v[c]){var f=n[c];i[c]=f}}}}}}}function H9(r,e){return Ot(r)?r!==e:r!=null&&isFinite(r)}var dL=Ie(),j9=["percent","easing","shape","style","extra"];function pL(r){r.stopAnimation("keyframe"),r.attr(dL(r))}function cf(r,e,t){if(!(!t.isAnimationEnabled()||!e)){if(W(e)){L(e,function(s){cf(r,s,t)});return}var a=e.keyframes,n=e.duration;if(t&&n==null){var i=Vo("enter",t,0);n=i&&i.duration}if(!(!a||!n)){var o=dL(r);L(uf,function(s){if(!(s&&!r[s])){var l;a.sort(function(u,c){return u.percent-c.percent}),L(a,function(u){var c=r.animators,f=s?u[s]:u;if(f){var h=Me(f);if(s||(h=ze(h,function(p){return _e(j9,p)<0})),!!h.length){l||(l=r.animate(s,e.loop,!0),l.scope="keyframe");for(var v=0;v<c.length;v++)c[v]!==l&&c[v].targetName===l.targetName&&c[v].stopTracks(h);s&&(o[s]=o[s]||{});var d=s?o[s]:o;L(h,function(p){d[p]=((s?r[s]:r)||{})[p]}),l.whenWithKeys(n*u.percent,f,h,u.easing)}}}),l&&l.delay(e.delay||0).duration(n).start(e.easing)}})}}}var Aa="emphasis",nn="normal",Sy="blur",wy="select",xn=[nn,Aa,Sy,wy],yd={normal:["itemStyle"],emphasis:[Aa,"itemStyle"],blur:[Sy,"itemStyle"],select:[wy,"itemStyle"]},xd={normal:["label"],emphasis:[Aa,"label"],blur:[Sy,"label"],select:[wy,"label"]},W9=["x","y"],$9="e\0\0",vr={normal:{},emphasis:{},blur:{},select:{}},U9={cartesian2d:A9,geo:M9,single:I9,polar:k9,calendar:R9};function gg(r){return r instanceof Ce}function mg(r){return r instanceof Cr}function Y9(r,e){e.copyTransform(r),mg(e)&&mg(r)&&(e.setStyle(r.style),e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel,e.invisible=r.invisible,e.ignore=r.ignore,gg(e)&&gg(r)&&e.setShape(r.shape))}var X9=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n,i){this._progressiveEls=null;var o=this._data,s=t.getData(),l=this.group,u=_S(t,s,a,n);o||l.removeAll(),s.diff(o).add(function(f){_d(n,null,f,u(f,i),t,l,s)}).remove(function(f){var h=o.getItemGraphicEl(f);h&&ch(h,Ca(h).option,t)}).update(function(f,h){var v=o.getItemGraphicEl(h);_d(n,v,f,u(f,i),t,l,s)}).execute();var c=t.get("clip",!0)?Wl(t.coordinateSystem,!1,t):null;c?l.setClipPath(c):l.removeClipPath(),this._data=s},e.prototype.incrementalPrepareRender=function(t,a,n){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,a,n,i,o){var s=a.getData(),l=_S(a,s,n,i),u=this._progressiveEls=[];function c(v){v.isGroup||(v.incremental=!0,v.ensureState("emphasis").hoverLayer=!0)}for(var f=t.start;f<t.end;f++){var h=_d(null,null,f,l(f,o),a,this.group,s);h&&(h.traverse(c),u.push(h))}},e.prototype.eachRendered=function(t){_n(this._progressiveEls||this.group,t)},e.prototype.filterForExposedEvent=function(t,a,n,i){var o=a.element;if(o==null||n.name===o)return!0;for(;(n=n.__hostTarget||n.parent)&&n!==this.group;)if(n.name===o)return!0;return!1},e.type="custom",e})($e);function Ty(r){var e=r.type,t;if(e==="path"){var a=r.shape,n=a.width!=null&&a.height!=null?{x:a.x||0,y:a.y||0,width:a.width,height:a.height}:null,i=yL(a);t=Ff(i,null,n,a.layout||"center"),Ca(t).customPathData=i}else if(e==="image")t=new At({}),Ca(t).customImagePath=r.style.image;else if(e==="text")t=new Pe({});else if(e==="group")t=new ue;else{if(e==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var o=hm(e);if(!o){var s="";Be(s)}t=new o}return Ca(t).customGraphicType=e,t.name=r.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function Cy(r,e,t,a,n,i,o){pL(e);var s=n&&n.normal.cfg;s&&e.setTextConfig(s),a&&a.transition==null&&(a.transition=W9);var l=a&&a.style;if(l){if(e.type==="text"){var u=l;ee(u,"textFill")&&(u.fill=u.textFill),ee(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,f=gg(e)?l.decal:null;r&&f&&(f.dirty=!0,c=Do(f,r)),l.__decalPattern=c}if(mg(e)&&l){var c=l.__decalPattern;c&&(l.decal=c)}yc(e,a,i,{dataIndex:t,isInit:o,clearStyle:!0}),cf(e,a.keyframeAnimation,i)}function gL(r,e,t,a,n){var i=e.isGroup?null:e,o=n&&n[r].cfg;if(i){var s=i.ensureState(r);if(a===!1){var l=i.getState(r);l&&(l.style=null)}else s.style=a||null;o&&(s.textConfig=o),Si(i)}}function Z9(r,e,t){if(!r.isGroup){var a=r,n=t.currentZ,i=t.currentZLevel;a.z=n,a.zlevel=i;var o=e.z2;o!=null&&(a.z2=o||0);for(var s=0;s<xn.length;s++)q9(a,e,xn[s])}}function q9(r,e,t){var a=t===nn,n=a?e:ff(e,t),i=n?n.z2:null,o;i!=null&&(o=a?r:r.ensureState(t),o.z2=i||0)}function _S(r,e,t,a){var n=r.get("renderItem"),i=r.coordinateSystem,o={};i&&(o=i.prepareCustoms?i.prepareCustoms(i):U9[i.type](i));for(var s=ie({getWidth:a.getWidth,getHeight:a.getHeight,getZr:a.getZr,getDevicePixelRatio:a.getDevicePixelRatio,value:_,style:S,ordinalRawValue:b,styleEmphasis:w,visual:D,barLayout:M,currentSeriesIndices:I,font:P},o.api||{}),l={context:{},seriesId:r.id,seriesName:r.name,seriesIndex:r.seriesIndex,coordSys:o.coordSys,dataInsideLength:e.count(),encode:K9(r.getData())},u,c,f={},h={},v={},d={},p=0;p<xn.length;p++){var g=xn[p];v[g]=r.getModel(yd[g]),d[g]=r.getModel(xd[g])}function m(k){return k===u?c||(c=e.getItemModel(k)):e.getItemModel(k)}function y(k,R){return e.hasItemOption?k===u?f[R]||(f[R]=m(k).getModel(yd[R])):m(k).getModel(yd[R]):v[R]}function x(k,R){return e.hasItemOption?k===u?h[R]||(h[R]=m(k).getModel(xd[R])):m(k).getModel(xd[R]):d[R]}return function(k,R){return u=k,c=null,f={},h={},n&&n(ie({dataIndexInside:k,dataIndex:e.getRawIndex(k),actionType:R?R.type:null},l),s)};function _(k,R){return R==null&&(R=u),e.getStore().get(e.getDimensionIndex(k||0),R)}function b(k,R){R==null&&(R=u),k=k||0;var E=e.getDimensionInfo(k);if(!E){var B=e.getDimensionIndex(k);return B>=0?e.getStore().get(B,R):void 0}var O=e.get(E.name,R),V=E&&E.ordinalMeta;return V?V.categories[O]:O}function S(k,R){R==null&&(R=u);var E=e.getItemVisual(R,"style"),B=E&&E.fill,O=E&&E.opacity,V=y(R,nn).getItemStyle();B!=null&&(V.fill=B),O!=null&&(V.opacity=O);var F={inheritColor:q(B)?B:"#000"},H=x(R,nn),Y=Xe(H,null,F,!1,!0);Y.text=H.getShallow("show")?fe(r.getFormattedLabel(R,nn),Lo(e,R)):null;var Z=Fc(H,F,!1);return A(k,V),V=pS(V,Y,Z),k&&C(V,k),V.legacy=!0,V}function w(k,R){R==null&&(R=u);var E=y(R,Aa).getItemStyle(),B=x(R,Aa),O=Xe(B,null,null,!0,!0);O.text=B.getShallow("show")?ia(r.getFormattedLabel(R,Aa),r.getFormattedLabel(R,nn),Lo(e,R)):null;var V=Fc(B,null,!0);return A(k,E),E=pS(E,O,V),k&&C(E,k),E.legacy=!0,E}function C(k,R){for(var E in R)ee(R,E)&&(k[E]=R[E])}function A(k,R){k&&(k.textFill&&(R.textFill=k.textFill),k.textPosition&&(R.textPosition=k.textPosition))}function D(k,R){if(R==null&&(R=u),ee(vS,k)){var E=e.getItemVisual(R,"style");return E?E[vS[k]]:null}if(ee(w9,k))return e.getItemVisual(R,k)}function M(k){if(i.type==="cartesian2d"){var R=i.getBaseAxis();return FO(ie({axis:R},k))}}function I(){return t.getCurrentSeriesIndices()}function P(k){return vm(k,t)}}function K9(r){var e={};return L(r.dimensions,function(t){var a=r.getDimensionInfo(t);if(!a.isExtraCoord){var n=a.coordDim,i=e[n]=e[n]||[];i[a.coordDimIndex]=r.getDimensionIndex(t)}}),e}function _d(r,e,t,a,n,i,o){if(!a){i.remove(e);return}var s=Ay(r,e,t,a,n,i);return s&&o.setItemGraphicEl(t,s),s&&et(s,a.focus,a.blurScope,a.emphasisDisabled),s}function Ay(r,e,t,a,n,i){var o=-1,s=e;e&&mL(e,a,n)&&(o=_e(i.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=Ty(a),s&&Y9(s,u)),a.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),vr.normal.cfg=vr.normal.conOpt=vr.emphasis.cfg=vr.emphasis.conOpt=vr.blur.cfg=vr.blur.conOpt=vr.select.cfg=vr.select.conOpt=null,vr.isLegacy=!1,Q9(u,t,a,n,l,vr),J9(u,t,a,n,l),Cy(r,u,t,a,vr,n,l),ee(a,"info")&&(Ca(u).info=a.info);for(var c=0;c<xn.length;c++){var f=xn[c];if(f!==nn){var h=ff(a,f),v=Dy(a,h,f);gL(f,u,h,v,vr)}}return Z9(u,a,n),a.type==="group"&&eH(r,u,t,a,n),o>=0?i.replaceAt(u,o):i.add(u),u}function mL(r,e,t){var a=Ca(r),n=e.type,i=e.shape,o=e.style;return t.isUniversalTransitionEnabled()||n!=null&&n!==a.customGraphicType||n==="path"&&nH(i)&&yL(i)!==a.customPathData||n==="image"&&ee(o,"image")&&o.image!==a.customImagePath}function J9(r,e,t,a,n){var i=t.clipPath;if(i===!1)r&&r.getClipPath()&&r.removeClipPath();else if(i){var o=r.getClipPath();o&&mL(o,i,a)&&(o=null),o||(o=Ty(i),r.setClipPath(o)),Cy(null,o,e,i,null,a,n)}}function Q9(r,e,t,a,n,i){if(!r.isGroup){bS(t,null,i),bS(t,Aa,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var c=r.getTextContent();if(o===!1)c&&r.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=Ty(o),r.setTextContent(c)),Cy(null,c,e,o,null,a,n);for(var f=o&&o.style,h=0;h<xn.length;h++){var v=xn[h];if(v!==nn){var d=i[v].conOpt;gL(v,c,d,Dy(o,d,v),null)}}f?c.dirty():c.markRedraw()}}}}function bS(r,e,t){var a=e?ff(r,e):r,n=e?Dy(r,a,Aa):r.style,i=r.type,o=a?a.textConfig:null,s=r.textContent,l=s?e?ff(s,e):s:null;if(n&&(t.isLegacy||cL(n,i,!!o,!!l))){t.isLegacy=!0;var u=fL(n,i,!e);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var c=l;!c.type&&(c.type="text")}var f=e?t[e]:t.normal;f.cfg=o,f.conOpt=l}function ff(r,e){return e?r?r[e]:null:r}function Dy(r,e,t){var a=e&&e.style;return a==null&&t===Aa&&r&&(a=r.styleEmphasis),a}function eH(r,e,t,a,n){var i=a.children,o=i?i.length:0,s=a.$mergeChildren,l=s==="byName"||a.diffChildrenByName,u=s===!1;if(!(!o&&!l&&!u)){if(l){rH({api:r,oldChildren:e.children()||[],newChildren:i||[],dataIndex:t,seriesModel:n,group:e});return}u&&e.removeAll();for(var c=0;c<o;c++){var f=i[c],h=e.childAt(c);f?(f.ignore==null&&(f.ignore=!1),Ay(r,h,t,f,n,e)):h.ignore=!0}for(var v=e.childCount()-1;v>=c;v--){var d=e.childAt(v);tH(e,d,n)}}}function tH(r,e,t){e&&ch(e,Ca(r).option,t)}function rH(r){new Pa(r.oldChildren,r.newChildren,SS,SS,r).add(wS).update(wS).remove(aH).execute()}function SS(r,e){var t=r&&r.name;return t??$9+e}function wS(r,e){var t=this.context,a=r!=null?t.newChildren[r]:null,n=e!=null?t.oldChildren[e]:null;Ay(t.api,n,t.dataIndex,a,t.seriesModel,t.group)}function aH(r){var e=this.context,t=e.oldChildren[r];t&&ch(t,Ca(t).option,e.seriesModel)}function yL(r){return r&&(r.pathData||r.d)}function nH(r){return r&&(ee(r,"pathData")||ee(r,"d"))}function iH(r){r.registerChartView(X9),r.registerSeriesModel(T9)}var ei=Ie(),TS=le,bd=Q,My=(function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(e,t,a,n){var i=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=a,!(!n&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,e,t,a);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(a),this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new ue,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),a.getZr().add(s);else{var h=ve(CS,t,f);this.updatePointerEl(s,u,h),this.updateLabelEl(s,u,h,t)}DS(s,t,!0),this._renderHandle(i)}},r.prototype.remove=function(e){this.clear(e)},r.prototype.dispose=function(e){this.clear(e)},r.prototype.determineAnimation=function(e,t){var a=t.get("animation"),n=e.axis,i=n.type==="category",o=t.get("snap");if(!o&&!i)return!1;if(a==="auto"||a==null){var s=this.animationThreshold;if(i&&n.getBandWidth()>s)return!0;if(o){var l=qm(e).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return a===!0},r.prototype.makeElOption=function(e,t,a,n,i){},r.prototype.createPointerEl=function(e,t,a,n){var i=t.pointer;if(i){var o=ei(e).pointerEl=new Li[i.type](TS(t.pointer));e.add(o)}},r.prototype.createLabelEl=function(e,t,a,n){if(t.label){var i=ei(e).labelEl=new Pe(TS(t.label));e.add(i),AS(i,n)}},r.prototype.updatePointerEl=function(e,t,a){var n=ei(e).pointerEl;n&&t.pointer&&(n.setStyle(t.pointer.style),a(n,{shape:t.pointer.shape}))},r.prototype.updateLabelEl=function(e,t,a,n){var i=ei(e).labelEl;i&&(i.setStyle(t.label.style),a(i,{x:t.label.x,y:t.label.y}),AS(i,n))},r.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,a=this._api.getZr(),n=this._handle,i=t.getModel("handle"),o=t.get("status");if(!i.get("show")||!o||o==="hide"){n&&a.remove(n),this._handle=null;return}var s;this._handle||(s=!0,n=this._handle=Bl(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Da(u.event)},onmousedown:bd(this._onHandleDragMove,this,0,0),drift:bd(this._onHandleDragMove,this),ondragend:bd(this._onHandleDragEnd,this)}),a.add(n)),DS(n,t,!1),n.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");W(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,Uo(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},r.prototype._moveHandleToValue=function(e,t){CS(this._axisPointerModel,!t&&this._moveAnimation,this._handle,Sd(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(e,t){var a=this._handle;if(a){this._dragging=!0;var n=this.updateHandleTransform(Sd(a),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=n,a.stopAnimation(),a.attr(Sd(n)),ei(a).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,a=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:a.axis.dim,axisIndex:a.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),a=this._group,n=this._handle;t&&a&&(this._lastGraphicKey=null,a&&t.remove(a),n&&t.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),vl(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(e,t,a){return a=a||0,{x:e[a],y:e[1-a],width:t[a],height:t[1-a]}},r})();function CS(r,e,t,a){xL(ei(t).lastProp,a)||(ei(t).lastProp=a,e?Ee(t,a,r):(t.stopAnimation(),t.attr(a)))}function xL(r,e){if(se(r)&&se(e)){var t=!0;return L(e,function(a,n){t=t&&xL(r[n],a)}),!!t}else return r===e}function AS(r,e){r[e.get(["label","show"])?"show":"hide"]()}function Sd(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function DS(r,e,t){var a=e.get("z"),n=e.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(a!=null&&(i.z=a),n!=null&&(i.zlevel=n),i.silent=t)})}function Ly(r){var e=r.get("type"),t=r.getModel(e+"Style"),a;return e==="line"?(a=t.getLineStyle(),a.fill=null):e==="shadow"&&(a=t.getAreaStyle(),a.stroke=null),a}function _L(r,e,t,a,n){var i=t.get("value"),o=bL(i,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=Ho(s.get("padding")||0),u=s.getFont(),c=Il(o,u),f=n.position,h=c.width+l[1]+l[3],v=c.height+l[0]+l[2],d=n.align;d==="right"&&(f[0]-=h),d==="center"&&(f[0]-=h/2);var p=n.verticalAlign;p==="bottom"&&(f[1]-=v),p==="middle"&&(f[1]-=v/2),oH(f,h,v,a);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=e.get(["axisLine","lineStyle","color"])),r.label={x:f[0],y:f[1],style:Xe(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function oH(r,e,t,a){var n=a.getWidth(),i=a.getHeight();r[0]=Math.min(r[0]+e,n)-e,r[1]=Math.min(r[1]+t,i)-t,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function bL(r,e,t,a,n){r=e.scale.parse(r);var i=e.scale.getLabel({value:r},{precision:n.precision}),o=n.formatter;if(o){var s={value:Vm(e,{value:r}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};L(a,function(l){var u=t.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),q(o)?i=o.replace("{value}",i):ne(o)&&(i=o(s))}return i}function Iy(r,e,t){var a=or();return Di(a,a,t.rotation),la(a,a,t.position),Vr([r.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],a)}function SL(r,e,t,a,n,i){var o=Wt.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=n.get(["label","margin"]),_L(e,a,n,i,{position:Iy(a.axis,r,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function Py(r,e,t){return t=t||0,{x1:r[t],y1:r[1-t],x2:e[t],y2:e[1-t]}}function wL(r,e,t){return t=t||0,{x:r[t],y:r[1-t],width:e[t],height:e[1-t]}}function MS(r,e,t,a,n,i){return{cx:r,cy:e,r0:t,r:a,startAngle:n,endAngle:i,clockwise:!0}}var sH=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,a,n,i,o){var s=n.axis,l=s.grid,u=i.get("type"),c=LS(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(a,!0));if(u&&u!=="none"){var h=Ly(i),v=lH[u](s,f,c);v.style=h,t.graphicKey=v.type,t.pointer=v}var d=Kp(l.model,n);SL(a,t,d,n,i,o)},e.prototype.getHandleTransform=function(t,a,n){var i=Kp(a.axis.grid.model,a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=Iy(a.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,a,n,i){var o=n.axis,s=o.grid,l=o.getGlobalExtent(!0),u=LS(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,f=[t.x,t.y];f[c]+=a[c],f[c]=Math.min(l[1],f[c]),f[c]=Math.max(l[0],f[c]);var h=(u[1]+u[0])/2,v=[h,h];v[c]=f[c];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:t.rotation,cursorPoint:v,tooltipOption:d[c]}},e})(My);function LS(r,e){var t={};return t[e.dim+"AxisIndex"]=e.index,r.getCartesian(t)}var lH={line:function(r,e,t){var a=Py([e,t[0]],[e,t[1]],IS(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,e,t){var a=Math.max(1,r.getBandWidth()),n=t[1]-t[0];return{type:"Rect",shape:wL([e-a/2,t[0]],[a,n],IS(r))}}};function IS(r){return r.dim==="x"?0:1}var uH=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e})(De),ba=Ie(),cH=L;function TL(r,e,t){if(!Ae.node){var a=e.getZr();ba(a).records||(ba(a).records={}),fH(a,e);var n=ba(a).records[r]||(ba(a).records[r]={});n.handler=t}}function fH(r,e){if(ba(r).initialized)return;ba(r).initialized=!0,t("click",ve(PS,"click")),t("mousemove",ve(PS,"mousemove")),t("globalout",vH);function t(a,n){r.on(a,function(i){var o=dH(e);cH(ba(r).records,function(s){s&&n(s,i,o.dispatchAction)}),hH(o.pendings,e)})}}function hH(r,e){var t=r.showTip.length,a=r.hideTip.length,n;t?n=r.showTip[t-1]:a&&(n=r.hideTip[a-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}function vH(r,e,t){r.handler("leave",null,t)}function PS(r,e,t,a){e.handler(r,t,a)}function dH(r){var e={showTip:[],hideTip:[]},t=function(a){var n=e[a.type];n?n.push(a):(a.dispatchAction=t,r.dispatchAction(a))};return{dispatchAction:t,pendings:e}}function yg(r,e){if(!Ae.node){var t=e.getZr(),a=(ba(t).records||{})[r];a&&(ba(t).records[r]=null)}}var pH=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=a.getComponent("tooltip"),o=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";TL("axisPointer",n,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(t,a){yg("axisPointer",a)},e.prototype.dispose=function(t,a){yg("axisPointer",a)},e.type="axisPointer",e})(Qe);function CL(r,e){var t=[],a=r.seriesIndex,n;if(a==null||!(n=e.getSeriesByIndex(a)))return{point:[]};var i=n.getData(),o=_i(i,r);if(o==null||o<0||W(o))return{point:[]};var s=i.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)t=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,h=u.dim,v=f==="x"||f==="radius"?1:0,d=i.mapDimension(h),p=[];p[v]=i.get(d,o),p[1-v]=i.get(i.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(p)||[]}else t=l.dataToPoint(i.getValues(U(l.dimensions,function(m){return i.mapDimension(m)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),t=[g.x+g.width/2,g.y+g.height/2]}return{point:t,el:s}}var kS=Ie();function gH(r,e,t){var a=r.currTrigger,n=[r.x,r.y],i=r,o=r.dispatchAction||Q(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){xc(n)&&(n=CL({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var l=xc(n),u=i.axesInfo,c=s.axesInfo,f=a==="leave"||xc(n),h={},v={},d={list:[],map:{}},p={showPointer:ve(yH,v),showTooltip:ve(xH,d)};L(s.coordSysMap,function(m,y){var x=l||m.containPoint(n);L(s.coordSysAxesInfo[y],function(_,b){var S=_.axis,w=wH(u,_);if(!f&&x&&(!u||w)){var C=w&&w.value;C==null&&!l&&(C=S.pointToData(n)),C!=null&&RS(_,C,p,!1,h)}})});var g={};return L(c,function(m,y){var x=m.linkGroup;x&&!v[y]&&L(x.axesInfo,function(_,b){var S=v[b];if(_!==m&&S){var w=S.value;x.mapper&&(w=m.axis.scale.parse(x.mapper(w,ES(_),ES(m)))),g[m.key]=w}})}),L(g,function(m,y){RS(c[y],m,p,!0,h)}),_H(v,c,h),bH(d,n,r,o),SH(c,o,t),h}}function RS(r,e,t,a,n){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(e))){if(!r.involveSeries){t.showPointer(r,e);return}var o=mH(e,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&n.seriesIndex==null&&G(n,s[0]),!a&&r.snap&&i.containData(l)&&l!=null&&(e=l),t.showPointer(r,e,s),t.showTooltip(r,o,l)}}function mH(r,e){var t=e.axis,a=t.dim,n=r,i=[],o=Number.MAX_VALUE,s=-1;return L(e.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(a),f,h;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(c,r,t);h=v.dataIndices,f=v.nestestValue}else{if(h=l.getData().indicesOfNearest(c[0],r,t.type==="category"?.5:null),!h.length)return;f=l.getData().get(c[0],h[0])}if(!(f==null||!isFinite(f))){var d=r-f,p=Math.abs(d);p<=o&&((p<o||d>=0&&s<0)&&(o=p,s=d,n=f,i.length=0),L(h,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:i,snapToValue:n}}function yH(r,e,t,a){r[e.key]={value:t,payloadBatch:a}}function xH(r,e,t,a){var n=t.payloadBatch,i=e.axis,o=i.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!n.length)){var l=e.coordSys.model,u=_l(l),c=r.map[u];c||(c=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(c)),c.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:a,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function _H(r,e,t){var a=t.axesInfo=[];L(e,function(n,i){var o=n.axisPointerModel.option,s=r[i];s?(!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),o.status==="show"&&a.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function bH(r,e,t,a){if(xc(e)||!r.list.length){a({type:"hideTip"});return}var n=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};a({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:r.list})}function SH(r,e,t){var a=t.getZr(),n="axisPointerLastHighlights",i=kS(a)[n]||{},o=kS(a)[n]={};L(r,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&L(f.seriesDataIndices,function(h){var v=h.seriesIndex+" | "+h.dataIndex;o[v]=h})});var s=[],l=[];L(i,function(u,c){!o[c]&&l.push(u)}),L(o,function(u,c){!i[c]&&s.push(u)}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function wH(r,e){for(var t=0;t<(r||[]).length;t++){var a=r[t];if(e.axis.dim===a.axisDim&&e.axis.model.componentIndex===a.axisIndex)return a}}function ES(r){var e=r.axis.model,t={},a=t.axisDim=r.axis.dim;return t.axisIndex=t[a+"AxisIndex"]=e.componentIndex,t.axisName=t[a+"AxisName"]=e.name,t.axisId=t[a+"AxisId"]=e.id,t}function xc(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function ql(r){Ri.registerAxisPointerClass("CartesianAxisPointer",sH),r.registerComponentModel(uH),r.registerComponentView(pH),r.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!W(t)&&(e.axisPointer.link=[t])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=Rz(e,t)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},gH)}function TH(r){Te(QD),Te(ql)}var CH=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,a,n,i,o){var s=n.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),f=s.dataToCoord(a),h=i.get("type");if(h&&h!=="none"){var v=Ly(i),d=DH[h](s,l,f,c);d.style=v,t.graphicKey=d.type,t.pointer=d}var p=i.get(["label","margin"]),g=AH(a,n,i,l,p);_L(t,n,i,o,g)},e})(My);function AH(r,e,t,a,n){var i=e.axis,o=i.dataToCoord(r),s=a.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=a.getRadiusAxis().getExtent(),u,c,f;if(i.dim==="radius"){var h=or();Di(h,h,s),la(h,h,[a.cx,a.cy]),u=Vr([o,-n],h);var v=e.getModel("axisLabel").get("rotate")||0,d=Wt.innerTextLayout(s,v*Math.PI/180,-1);c=d.textAlign,f=d.textVerticalAlign}else{var p=l[1];u=a.coordToPoint([p+n,o]);var g=a.cx,m=a.cy;c=Math.abs(u[0]-g)/p<.3?"center":u[0]>g?"left":"right",f=Math.abs(u[1]-m)/p<.3?"middle":u[1]>m?"top":"bottom"}return{position:u,align:c,verticalAlign:f}}var DH={line:function(r,e,t,a){return r.dim==="angle"?{type:"Line",shape:Py(e.coordToPoint([a[0],t]),e.coordToPoint([a[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(r,e,t,a){var n=Math.max(1,r.getBandWidth()),i=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:MS(e.cx,e.cy,a[0],a[1],(-t-n/2)*i,(-t+n/2)*i)}:{type:"Sector",shape:MS(e.cx,e.cy,t-n/2,t+n/2,0,Math.PI*2)}}},MH=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.findAxisModel=function(t){var a,n=this.ecModel;return n.eachComponent(t,function(i){i.getCoordSysModel()===this&&(a=i)},this),a},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e})(De),ky=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",st).models[0]},e.type="polarAxis",e})(De);ut(ky,Gl);var LH=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e})(ky),IH=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e})(ky),Ry=(function(r){z(e,r);function e(t,a){return r.call(this,"radius",t,a)||this}return e.prototype.pointToData=function(t,a){return this.polar.pointToData(t,a)[this.dim==="radius"?0:1]},e})(jr);Ry.prototype.dataToRadius=jr.prototype.dataToCoord;Ry.prototype.radiusToData=jr.prototype.coordToData;var PH=Ie(),Ey=(function(r){z(e,r);function e(t,a){return r.call(this,"angle",t,a||[0,360])||this}return e.prototype.pointToData=function(t,a){return this.polar.pointToData(t,a)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,a=t.getLabelModel(),n=t.scale,i=n.getExtent(),o=n.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),c=Il(s==null?"":s+"",a.getFont(),"center","top"),f=Math.max(c.height,7),h=f/u;isNaN(h)&&(h=1/0);var v=Math.max(0,Math.floor(h)),d=PH(t.model),p=d.lastAutoInterval,g=d.lastTickCount;return p!=null&&g!=null&&Math.abs(p-v)<=1&&Math.abs(g-o)<=1&&p>v?v=p:(d.lastTickCount=o,d.lastAutoInterval=v),v},e})(jr);Ey.prototype.dataToAngle=jr.prototype.dataToCoord;Ey.prototype.angleToData=jr.prototype.coordToData;var AL=["radius","angle"],kH=(function(){function r(e){this.dimensions=AL,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new Ry,this._angleAxis=new Ey,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},r.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},r.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(e){var t=[],a=this._angleAxis,n=this._radiusAxis;return a.scale.type===e&&t.push(a),n.scale.type===e&&t.push(n),t},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(e){var t=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},r.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},r.prototype.pointToData=function(e,t){var a=this.pointToCoord(e);return[this._radiusAxis.radiusToData(a[0],t),this._angleAxis.angleToData(a[1],t)]},r.prototype.pointToCoord=function(e){var t=e[0]-this.cx,a=e[1]-this.cy,n=this.getAngleAxis(),i=n.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);n.inverse?o=s-360:s=o+360;var l=Math.sqrt(t*t+a*a);t/=l,a/=l;for(var u=Math.atan2(-a,t)/Math.PI*180,c=u<o?1:-1;u<o||u>s;)u+=c*360;return[l,u]},r.prototype.coordToPoint=function(e){var t=e[0],a=e[1]/180*Math.PI,n=Math.cos(a)*t+this.cx,i=-Math.sin(a)*t+this.cy;return[n,i]},r.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),a=t.getExtent().slice();a[0]>a[1]&&a.reverse();var n=e.getExtent(),i=Math.PI/180,o=1e-4;return{cx:this.cx,cy:this.cy,r0:a[0],r:a[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:e.inverse,contain:function(s,l){var u=s-this.cx,c=l-this.cy,f=u*u+c*c,h=this.r,v=this.r0;return h!==v&&f-o<=h*h&&f+o>=v*v}}},r.prototype.convertToPixel=function(e,t,a){var n=NS(t);return n===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(e,t,a){var n=NS(t);return n===this?this.pointToData(a):null},r})();function NS(r){var e=r.seriesModel,t=r.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function RH(r,e,t){var a=e.get("center"),n=t.getWidth(),i=t.getHeight();r.cx=X(a[0],n),r.cy=X(a[1],i);var o=r.getRadiusAxis(),s=Math.min(n,i)/2,l=e.get("radius");l==null?l=[0,"100%"]:W(l)||(l=[0,l]);var u=[X(l[0],s),X(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function EH(r,e){var t=this,a=t.getAngleAxis(),n=t.getRadiusAxis();if(a.scale.setExtent(1/0,-1/0),n.scale.setExtent(1/0,-1/0),r.eachSeries(function(s){if(s.coordinateSystem===t){var l=s.getData();L(Kc(l,"radius"),function(u){n.scale.unionExtentFromData(l,u)}),L(Kc(l,"angle"),function(u){a.scale.unionExtentFromData(l,u)})}}),Mo(a.scale,a.model),Mo(n.scale,n.model),a.type==="category"&&!a.onBand){var i=a.getExtent(),o=360/a.scale.count();a.inverse?i[1]+=o:i[1]-=o,a.setExtent(i[0],i[1])}}function NH(r){return r.mainType==="angleAxis"}function OS(r,e){var t;if(r.type=e.get("type"),r.scale=ah(e),r.onBand=e.get("boundaryGap")&&r.type==="category",r.inverse=e.get("inverse"),NH(e)){r.inverse=r.inverse!==e.get("clockwise");var a=e.get("startAngle"),n=(t=e.get("endAngle"))!==null&&t!==void 0?t:a+(r.inverse?-360:360);r.setExtent(a,n)}e.axis=r,r.model=e}var OH={dimensions:AL,create:function(r,e){var t=[];return r.eachComponent("polar",function(a,n){var i=new kH(n+"");i.update=EH;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=a.findAxisModel("radiusAxis"),u=a.findAxisModel("angleAxis");OS(o,l),OS(s,u),RH(i,a,e),t.push(i),a.coordinateSystem=i,i.model=a}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="polar"){var n=a.getReferringComponents("polar",st).models[0];a.coordinateSystem=n.coordinateSystem}}),t}},BH=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Wu(r,e,t){e[1]>e[0]&&(e=e.slice().reverse());var a=r.coordToPoint([e[0],t]),n=r.coordToPoint([e[1],t]);return{x1:a[0],y1:a[1],x2:n[0],y2:n[1]}}function $u(r){var e=r.getRadiusAxis();return e.inverse?0:1}function BS(r){var e=r[0],t=r[r.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&r.pop()}var zH=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,a){if(this.group.removeAll(),!!t.get("show")){var n=t.axis,i=n.polar,o=i.getRadiusAxis().getExtent(),s=n.getTicksCoords(),l=n.getMinorTicksCoords(),u=U(n.getViewLabels(),function(c){c=le(c);var f=n.scale,h=f.type==="ordinal"?f.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=n.dataToCoord(h),c});BS(u),BS(s),L(BH,function(c){t.get([c,"show"])&&(!n.scale.isBlank()||c==="axisLine")&&VH[c](this.group,t,i,s,l,o,u)},this)}},e.type="angleAxis",e})(Ri),VH={axisLine:function(r,e,t,a,n,i){var o=e.getModel(["axisLine","lineStyle"]),s=t.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),c=$u(t),f=c?0:1,h,v=Math.abs(u[1]-u[0])===360?"Circle":"Arc";i[f]===0?h=new Li[v]({shape:{cx:t.cx,cy:t.cy,r:i[c],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):h=new Rl({shape:{cx:t.cx,cy:t.cy,r:i[c],r0:i[f]},style:o.getLineStyle(),z2:1,silent:!0}),h.style.fill=null,r.add(h)},axisTick:function(r,e,t,a,n,i){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[$u(t)],u=U(a,function(c){return new yt({shape:Wu(t,[l,l+s],c.coord)})});r.add(br(u,{style:ie(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,e,t,a,n,i){if(n.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[$u(t)],c=[],f=0;f<n.length;f++)for(var h=0;h<n[f].length;h++)c.push(new yt({shape:Wu(t,[u,u+l],n[f][h].coord)}));r.add(br(c,{style:ie(s.getModel("lineStyle").getLineStyle(),ie(o.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(r,e,t,a,n,i,o){var s=e.getCategories(!0),l=e.getModel("axisLabel"),u=l.get("margin"),c=e.get("triggerEvent");L(o,function(f,h){var v=l,d=f.tickValue,p=i[$u(t)],g=t.coordToPoint([p+u,f.coord]),m=t.cx,y=t.cy,x=Math.abs(g[0]-m)/p<.3?"center":g[0]>m?"left":"right",_=Math.abs(g[1]-y)/p<.3?"middle":g[1]>y?"top":"bottom";if(s&&s[d]){var b=s[d];se(b)&&b.textStyle&&(v=new Ge(b.textStyle,l,l.ecModel))}var S=new Pe({silent:Wt.isLabelSilent(e),style:Xe(v,{x:g[0],y:g[1],fill:v.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:f.formattedLabel,align:x,verticalAlign:_})});if(r.add(S),c){var w=Wt.makeAxisEventDataBase(e);w.targetType="axisLabel",w.value=f.rawLabel,ce(S).eventData=w}},this)},splitLine:function(r,e,t,a,n,i){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=0;f<a.length;f++){var h=u++%l.length;c[h]=c[h]||[],c[h].push(new yt({shape:Wu(t,i,a[f].coord)}))}for(var f=0;f<c.length;f++)r.add(br(c[f],{style:ie({stroke:l[f%l.length]},s.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(r,e,t,a,n,i){if(n.length){for(var o=e.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<n.length;u++)for(var c=0;c<n[u].length;c++)l.push(new yt({shape:Wu(t,i,n[u][c].coord)}));r.add(br(l,{style:s.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(r,e,t,a,n,i){if(a.length){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=Math.PI/180,h=-a[0].coord*f,v=Math.min(i[0],i[1]),d=Math.max(i[0],i[1]),p=e.get("clockwise"),g=1,m=a.length;g<=m;g++){var y=g===m?a[0].coord:a[g].coord,x=u++%l.length;c[x]=c[x]||[],c[x].push(new Yt({shape:{cx:t.cx,cy:t.cy,r0:v,r:d,startAngle:h,endAngle:-y*f,clockwise:p},silent:!0})),h=-y*f}for(var g=0;g<c.length;g++)r.add(br(c[g],{style:ie({fill:l[g%l.length]},s.getAreaStyle()),silent:!0}))}}},FH=["axisLine","axisTickLabel","axisName"],GH=["splitLine","splitArea","minorSplitLine"],HH=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,a){if(this.group.removeAll(),!!t.get("show")){var n=this._axisGroup,i=this._axisGroup=new ue;this.group.add(i);var o=t.axis,s=o.polar,l=s.getAngleAxis(),u=o.getTicksCoords(),c=o.getMinorTicksCoords(),f=l.getExtent()[0],h=o.getExtent(),v=WH(s,t,f),d=new Wt(t,v);L(FH,d.add,d),i.add(d.getGroup()),Ol(n,i,t),L(GH,function(p){t.get([p,"show"])&&!o.scale.isBlank()&&jH[p](this.group,t,s,f,h,u,c)},this)}},e.type="radiusAxis",e})(Ri),jH={splitLine:function(r,e,t,a,n,i){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0,c=t.getAngleAxis(),f=Math.PI/180,h=c.getExtent(),v=Math.abs(h[1]-h[0])===360?"Circle":"Arc";l=l instanceof Array?l:[l];for(var d=[],p=0;p<i.length;p++){var g=u++%l.length;d[g]=d[g]||[],d[g].push(new Li[v]({shape:{cx:t.cx,cy:t.cy,r:Math.max(i[p].coord,0),startAngle:-h[0]*f,endAngle:-h[1]*f,clockwise:c.inverse}}))}for(var p=0;p<d.length;p++)r.add(br(d[p],{style:ie({stroke:l[p%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(r,e,t,a,n,i,o){if(o.length){for(var s=e.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],c=0;c<o.length;c++)for(var f=0;f<o[c].length;f++)u.push(new Oa({shape:{cx:t.cx,cy:t.cy,r:o[c][f].coord}}));r.add(br(u,{style:ie({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(r,e,t,a,n,i){if(i.length){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=i[0].coord,h=1;h<i.length;h++){var v=u++%l.length;c[v]=c[v]||[],c[v].push(new Yt({shape:{cx:t.cx,cy:t.cy,r0:f,r:i[h].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),f=i[h].coord}for(var h=0;h<c.length;h++)r.add(br(c[h],{style:ie({fill:l[h%l.length]},s.getAreaStyle()),silent:!0}))}}};function WH(r,e,t){return{position:[r.cx,r.cy],rotation:t/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}function DL(r){return r.get("stack")||"__ec_stack_"+r.seriesIndex}function ML(r,e){return e.dim+r.model.componentIndex}function $H(r,e,t){var a={},n=UH(ze(e.getSeriesByType(r),function(i){return!e.isSeriesFiltered(i)&&i.coordinateSystem&&i.coordinateSystem.type==="polar"}));e.eachSeriesByType(r,function(i){if(i.coordinateSystem.type==="polar"){var o=i.getData(),s=i.coordinateSystem,l=s.getBaseAxis(),u=ML(s,l),c=DL(i),f=n[u][c],h=f.offset,v=f.width,d=s.getOtherAxis(l),p=i.coordinateSystem.cx,g=i.coordinateSystem.cy,m=i.get("barMinHeight")||0,y=i.get("barMinAngle")||0;a[c]=a[c]||[];for(var x=o.mapDimension(d.dim),_=o.mapDimension(l.dim),b=mn(o,x),S=l.dim!=="radius"||!i.get("roundCap",!0),w=d.model,C=w.get("startValue"),A=d.dataToCoord(C||0),D=0,M=o.count();D<M;D++){var I=o.get(x,D),P=o.get(_,D),k=I>=0?"p":"n",R=A;b&&(a[c][P]||(a[c][P]={p:A,n:A}),R=a[c][P][k]);var E=void 0,B=void 0,O=void 0,V=void 0;if(d.dim==="radius"){var F=d.dataToCoord(I)-A,H=l.dataToCoord(P);Math.abs(F)<m&&(F=(F<0?-1:1)*m),E=R,B=R+F,O=H-h,V=O-v,b&&(a[c][P][k]=B)}else{var Y=d.dataToCoord(I,S)-A,Z=l.dataToCoord(P);Math.abs(Y)<y&&(Y=(Y<0?-1:1)*y),E=Z+h,B=E+v,O=R,V=R+Y,b&&(a[c][P][k]=V)}o.setItemLayout(D,{cx:p,cy:g,r0:E,r:B,startAngle:-O*Math.PI/180,endAngle:-V*Math.PI/180,clockwise:O>=V})}}})}function UH(r){var e={};L(r,function(a,n){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=ML(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),f=e[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},h=f.stacks;e[l]=f;var v=DL(a);h[v]||f.autoWidthCount++,h[v]=h[v]||{width:0,maxWidth:0};var d=X(a.get("barWidth"),c),p=X(a.get("barMaxWidth"),c),g=a.get("barGap"),m=a.get("barCategoryGap");d&&!h[v].width&&(d=Math.min(f.remainedWidth,d),h[v].width=d,f.remainedWidth-=d),p&&(h[v].maxWidth=p),g!=null&&(f.gap=g),m!=null&&(f.categoryGap=m)});var t={};return L(e,function(a,n){t[n]={};var i=a.stacks,o=a.bandWidth,s=X(a.categoryGap,o),l=X(a.gap,1),u=a.remainedWidth,c=a.autoWidthCount,f=(u-s)/(c+(c-1)*l);f=Math.max(f,0),L(i,function(p,g){var m=p.maxWidth;m&&m<f&&(m=Math.min(m,u),p.width&&(m=Math.min(m,p.width)),u-=m,p.width=m,c--)}),f=(u-s)/(c+(c-1)*l),f=Math.max(f,0);var h=0,v;L(i,function(p,g){p.width||(p.width=f),v=p,h+=p.width*(1+l)}),v&&(h-=v.width*l);var d=-h/2;L(i,function(p,g){t[n][g]=t[n][g]||{offset:d,width:p.width},d+=p.width*(1+l)})}),t}var YH={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},XH={splitNumber:5},ZH=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="polar",e})(Qe);function qH(r){Te(ql),Ri.registerAxisPointerClass("PolarAxisPointer",CH),r.registerCoordinateSystem("polar",OH),r.registerComponentModel(MH),r.registerComponentView(ZH),Io(r,"angle",LH,YH),Io(r,"radius",IH,XH),r.registerComponentView(zH),r.registerComponentView(HH),r.registerLayout(ve($H,"bar"))}function xg(r,e){e=e||{};var t=r.coordinateSystem,a=r.axis,n={},i=a.position,o=a.orient,s=t.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};n.position=[o==="vertical"?u.vertical[i]:l[0],o==="horizontal"?u.horizontal[i]:l[3]];var c={horizontal:0,vertical:1};n.rotation=Math.PI/2*c[o];var f={top:-1,bottom:1,right:1,left:-1};n.labelDirection=n.tickDirection=n.nameDirection=f[i],r.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),Ct(e.labelInside,r.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var h=e.rotate;return h==null&&(h=r.get(["axisLabel","rotate"])),n.labelRotation=i==="top"?-h:h,n.z2=1,n}var KH=["axisLine","axisTickLabel","axisName"],JH=["splitArea","splitLine"],QH=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="SingleAxisPointer",t}return e.prototype.render=function(t,a,n,i){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new ue;var l=xg(t),u=new Wt(t,l);L(KH,u.add,u),o.add(this._axisGroup),o.add(u.getGroup()),L(JH,function(c){t.get([c,"show"])&&ej[c](this,this.group,this._axisGroup,t)},this),Ol(s,this._axisGroup,t),r.prototype.render.call(this,t,a,n,i)},e.prototype.remove=function(){qD(this)},e.type="singleAxis",e})(Ri),ej={splitLine:function(r,e,t,a){var n=a.axis;if(!n.scale.isBlank()){var i=a.getModel("splitLine"),o=i.getModel("lineStyle"),s=o.get("color");s=s instanceof Array?s:[s];for(var l=o.get("width"),u=a.coordinateSystem.getRect(),c=n.isHorizontal(),f=[],h=0,v=n.getTicksCoords({tickModel:i}),d=[],p=[],g=0;g<v.length;++g){var m=n.toGlobalCoord(v[g].coord);c?(d[0]=m,d[1]=u.y,p[0]=m,p[1]=u.y+u.height):(d[0]=u.x,d[1]=m,p[0]=u.x+u.width,p[1]=m);var y=new yt({shape:{x1:d[0],y1:d[1],x2:p[0],y2:p[1]},silent:!0});Co(y.shape,l);var x=h++%s.length;f[x]=f[x]||[],f[x].push(y)}for(var _=o.getLineStyle(["color"]),g=0;g<f.length;++g)e.add(br(f[g],{style:ie({stroke:s[g%s.length]},_),silent:!0}))}},splitArea:function(r,e,t,a){ZD(r,t,a,a)}},_c=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getCoordSysModel=function(){return this},e.type="singleAxis",e.layoutMode="box",e.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},e})(De);ut(_c,Gl.prototype);var tj=(function(r){z(e,r);function e(t,a,n,i,o){var s=r.call(this,t,a,n)||this;return s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.pointToData=function(t,a){return this.coordinateSystem.pointToData(t)[0]},e})(jr),LL=["single"],rj=(function(){function r(e,t,a){this.type="single",this.dimension="single",this.dimensions=LL,this.axisPointerEnabled=!0,this.model=e,this._init(e,t,a)}return r.prototype._init=function(e,t,a){var n=this.dimension,i=new tj(n,ah(e),[0,0],e.get("type"),e.get("position")),o=i.type==="category";i.onBand=o&&e.get("boundaryGap"),i.inverse=e.get("inverse"),i.orient=e.get("orient"),e.axis=i,i.model=e,i.coordinateSystem=this,this._axis=i},r.prototype.update=function(e,t){e.eachSeries(function(a){if(a.coordinateSystem===this){var n=a.getData();L(n.mapDimensionsAll(this.dimension),function(i){this._axis.scale.unionExtentFromData(n,i)},this),Mo(this._axis.scale,this._axis.model)}},this)},r.prototype.resize=function(e,t){this._rect=gt({left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")},{width:t.getWidth(),height:t.getHeight()}),this._adjustAxis()},r.prototype.getRect=function(){return this._rect},r.prototype._adjustAxis=function(){var e=this._rect,t=this._axis,a=t.isHorizontal(),n=a?[0,e.width]:[0,e.height],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),this._updateAxisTransform(t,a?e.x:e.y)},r.prototype._updateAxisTransform=function(e,t){var a=e.getExtent(),n=a[0]+a[1],i=e.isHorizontal();e.toGlobalCoord=i?function(o){return o+t}:function(o){return n-o+t},e.toLocalCoord=i?function(o){return o-t}:function(o){return n-o+t}},r.prototype.getAxis=function(){return this._axis},r.prototype.getBaseAxis=function(){return this._axis},r.prototype.getAxes=function(){return[this._axis]},r.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},r.prototype.containPoint=function(e){var t=this.getRect(),a=this.getAxis(),n=a.orient;return n==="horizontal"?a.contain(a.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:a.contain(a.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},r.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e[t.orient==="horizontal"?0:1]))]},r.prototype.dataToPoint=function(e){var t=this.getAxis(),a=this.getRect(),n=[],i=t.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),n[i]=t.toGlobalCoord(t.dataToCoord(+e)),n[1-i]=i===0?a.y+a.height/2:a.x+a.width/2,n},r.prototype.convertToPixel=function(e,t,a){var n=zS(t);return n===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(e,t,a){var n=zS(t);return n===this?this.pointToData(a):null},r})();function zS(r){var e=r.seriesModel,t=r.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function aj(r,e){var t=[];return r.eachComponent("singleAxis",function(a,n){var i=new rj(a,r,e);i.name="single_"+n,i.resize(a,e),a.coordinateSystem=i,t.push(i)}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="singleAxis"){var n=a.getReferringComponents("singleAxis",st).models[0];a.coordinateSystem=n&&n.coordinateSystem}}),t}var nj={create:aj,dimensions:LL},VS=["x","y"],ij=["width","height"],oj=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,a,n,i,o){var s=n.axis,l=s.coordinateSystem,u=wd(l,1-hf(s)),c=l.dataToPoint(a)[0],f=i.get("type");if(f&&f!=="none"){var h=Ly(i),v=sj[f](s,c,u);v.style=h,t.graphicKey=v.type,t.pointer=v}var d=xg(n);SL(a,t,d,n,i,o)},e.prototype.getHandleTransform=function(t,a,n){var i=xg(a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=Iy(a.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,a,n,i){var o=n.axis,s=o.coordinateSystem,l=hf(o),u=wd(s,l),c=[t.x,t.y];c[l]+=a[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var f=wd(s,1-l),h=(f[1]+f[0])/2,v=[h,h];return v[l]=c[l],{x:c[0],y:c[1],rotation:t.rotation,cursorPoint:v,tooltipOption:{verticalAlign:"middle"}}},e})(My),sj={line:function(r,e,t){var a=Py([e,t[0]],[e,t[1]],hf(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,e,t){var a=r.getBandWidth(),n=t[1]-t[0];return{type:"Rect",shape:wL([e-a/2,t[0]],[a,n],hf(r))}}};function hf(r){return r.isHorizontal()?0:1}function wd(r,e){var t=r.getRect();return[t[VS[e]],t[VS[e]]+t[ij[e]]]}var lj=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="single",e})(Qe);function uj(r){Te(ql),Ri.registerAxisPointerClass("SingleAxisPointer",oj),r.registerComponentView(lj),r.registerComponentView(QH),r.registerComponentModel(_c),Io(r,"single",_c,_c.defaultOption),r.registerCoordinateSystem("single",nj)}var cj=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a,n){var i=jo(t);r.prototype.init.apply(this,arguments),FS(t,i)},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),FS(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e})(De);function FS(r,e){var t=r.cellSize,a;W(t)?a=t:a=r.cellSize=[t,t],a.length===1&&(a[1]=a[0]);var n=U([0,1],function(i){return IE(e,i)&&(a[i]="auto"),a[i]!=null&&a[i]!=="auto"});gn(r,e,{type:"box",ignoreSize:n})}var fj=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=this.group;i.removeAll();var o=t.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=a.getLocaleModel();this._renderDayRect(t,s,i),this._renderLines(t,s,l,i),this._renderYearText(t,s,l,i),this._renderMonthText(t,u,l,i),this._renderWeekText(t,u,s,l,i)},e.prototype._renderDayRect=function(t,a,n){for(var i=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=a.start.time;u<=a.end.time;u=i.getNextNDay(u,1).time){var c=i.dataToRect([u],!1).tl,f=new Le({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});n.add(f)}},e.prototype._renderLines=function(t,a,n,i){var o=this,s=t.coordinateSystem,l=t.getModel(["splitLine","lineStyle"]).getLineStyle(),u=t.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var f=a.start,h=0;f.time<=a.end.time;h++){d(f.formatedDate),h===0&&(f=s.getDateInfo(a.start.y+"-"+a.start.m));var v=f.date;v.setMonth(v.getMonth()+1),f=s.getDateInfo(v)}d(s.getNextNDay(a.end.time,1).formatedDate);function d(p){o._firstDayOfMonth.push(s.getDateInfo(p)),o._firstDayPoints.push(s.dataToRect([p],!1).tl);var g=o._getLinePointsOfOneWeek(t,p,n);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,n),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,n),l,i)},e.prototype._getEdgesPoints=function(t,a,n){var i=[t[0].slice(),t[t.length-1].slice()],o=n==="horizontal"?0:1;return i[0][o]=i[0][o]-a/2,i[1][o]=i[1][o]+a/2,i},e.prototype._drawSplitline=function(t,a,n){var i=new Zt({z2:20,shape:{points:t},style:a});n.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,a,n){for(var i=t.coordinateSystem,o=i.getDateInfo(a),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),c=i.dataToRect([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[n==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,a){return q(t)&&t?DE(t,a):ne(t)?t(a):a.nameMap},e.prototype._yearTextPositionControl=function(t,a,n,i,o){var s=a[0],l=a[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var c=0;return(i==="left"||i==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(t,a,n,i){var o=t.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=n!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,f=(u[0][1]+u[1][1])/2,h=n==="horizontal"?0:1,v={top:[c,u[h][1]],bottom:[c,u[1-h][1]],left:[u[1-h][0],f],right:[u[h][0],f]},d=a.start.y;+a.end.y>+a.start.y&&(d=d+"-"+a.end.y);var p=o.get("formatter"),g={start:a.start.y,end:a.end.y,nameMap:d},m=this._formatterLabel(p,g),y=new Pe({z2:30,style:Xe(o,{text:m}),silent:o.get("silent")});y.attr(this._yearTextPositionControl(y,v[l],n,l,s)),i.add(y)}},e.prototype._monthTextPositionControl=function(t,a,n,i,o){var s="left",l="top",u=t[0],c=t[1];return n==="horizontal"?(c=c+o,a&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,a&&(l="middle"),i==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,a,n,i){var o=t.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),c=o.get("align"),f=[this._tlpoints,this._blpoints];(!s||q(s))&&(s&&(a=Dp(s)||a),s=a.get(["time","monthAbbr"])||[]);var h=u==="start"?0:1,v=n==="horizontal"?0:1;l=u==="start"?-l:l;for(var d=c==="center",p=o.get("silent"),g=0;g<f[h].length-1;g++){var m=f[h][g].slice(),y=this._firstDayOfMonth[g];if(d){var x=this._firstDayPoints[g];m[v]=(x[v]+f[0][g+1][v])/2}var _=o.get("formatter"),b=s[+y.m-1],S={yyyy:y.y,yy:(y.y+"").slice(2),MM:y.m,M:+y.m,nameMap:b},w=this._formatterLabel(_,S),C=new Pe({z2:30,style:G(Xe(o,{text:w}),this._monthTextPositionControl(m,d,n,u,l)),silent:p});i.add(C)}}},e.prototype._weekTextPositionControl=function(t,a,n,i,o){var s="center",l="middle",u=t[0],c=t[1],f=n==="start";return a==="horizontal"?(u=u+i+(f?1:-1)*o[0]/2,s=f?"right":"left"):(c=c+i+(f?1:-1)*o[1]/2,l=f?"bottom":"top"),{x:u,y:c,align:s,verticalAlign:l}},e.prototype._renderWeekText=function(t,a,n,i,o){var s=t.getModel("dayLabel");if(s.get("show")){var l=t.coordinateSystem,u=s.get("position"),c=s.get("nameMap"),f=s.get("margin"),h=l.getFirstDayOfWeek();if(!c||q(c)){c&&(a=Dp(c)||a);var v=a.get(["time","dayOfWeekShort"]);c=v||U(a.get(["time","dayOfWeekAbbr"]),function(S){return S[0]})}var d=l.getNextNDay(n.end.time,7-n.lweek).time,p=[l.getCellWidth(),l.getCellHeight()];f=X(f,Math.min(p[1],p[0])),u==="start"&&(d=l.getNextNDay(n.start.time,-(7+n.fweek)).time,f=-f);for(var g=s.get("silent"),m=0;m<7;m++){var y=l.getNextNDay(d,m),x=l.dataToRect([y.time],!1).center,_=m;_=Math.abs((m+h)%7);var b=new Pe({z2:30,style:G(Xe(s,{text:c[_]}),this._weekTextPositionControl(x,i,u,f,p)),silent:g});o.add(b)}}},e.type="calendar",e})(Qe),Td=864e5,hj=(function(){function r(e,t,a){this.type="calendar",this.dimensions=r.dimensions,this.getDimensionsInfo=r.getDimensionsInfo,this._model=e}return r.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},r.prototype.getRangeInfo=function(){return this._rangeInfo},r.prototype.getModel=function(){return this._model},r.prototype.getRect=function(){return this._rect},r.prototype.getCellWidth=function(){return this._sw},r.prototype.getCellHeight=function(){return this._sh},r.prototype.getOrient=function(){return this._orient},r.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},r.prototype.getDateInfo=function(e){e=ca(e);var t=e.getFullYear(),a=e.getMonth()+1,n=a<10?"0"+a:""+a,i=e.getDate(),o=i<10?"0"+i:""+i,s=e.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:t+"",m:n,d:o,day:s,time:e.getTime(),formatedDate:t+"-"+n+"-"+o,date:e}},r.prototype.getNextNDay=function(e,t){return t=t||0,t===0?this.getDateInfo(e):(e=new Date(this.getDateInfo(e).time),e.setDate(e.getDate()+t),this.getDateInfo(e))},r.prototype.update=function(e,t){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var a=this._rangeInfo.weeks||1,n=["width","height"],i=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[a,7]:[7,a];L([0,1],function(f){c(i,f)&&(o[n[f]]=i[f]*s[f])});var l={width:t.getWidth(),height:t.getHeight()},u=this._rect=gt(o,l);L([0,1],function(f){c(i,f)||(i[f]=u[n[f]]/s[f])});function c(f,h){return f[h]!=null&&f[h]!=="auto"}this._sw=i[0],this._sh=i[1]},r.prototype.dataToPoint=function(e,t){W(e)&&(e=e[0]),t==null&&(t=!0);var a=this.getDateInfo(e),n=this._rangeInfo,i=a.formatedDate;if(t&&!(a.time>=n.start.time&&a.time<n.end.time+Td))return[NaN,NaN];var o=a.day,s=this._getRangeInfo([n.start.time,i]).nthWeek;return this._orient==="vertical"?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]:[this._rect.x+s*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},r.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},r.prototype.dataToRect=function(e,t){var a=this.dataToPoint(e,t);return{contentShape:{x:a[0]-(this._sw-this._lineWidth)/2,y:a[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:a,tl:[a[0]-this._sw/2,a[1]-this._sh/2],tr:[a[0]+this._sw/2,a[1]-this._sh/2],br:[a[0]+this._sw/2,a[1]+this._sh/2],bl:[a[0]-this._sw/2,a[1]+this._sh/2]}},r.prototype.pointToDate=function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,a=Math.floor((e[1]-this._rect.y)/this._sh)+1,n=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(a,t-1,n):this._getDateByWeeksAndDay(t,a-1,n)},r.prototype.convertToPixel=function(e,t,a){var n=GS(t);return n===this?n.dataToPoint(a):null},r.prototype.convertFromPixel=function(e,t,a){var n=GS(t);return n===this?n.pointToData(a):null},r.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},r.prototype._initRangeOption=function(){var e=this._model.get("range"),t;if(W(e)&&e.length===1&&(e=e[0]),W(e))t=e;else{var a=e.toString();if(/^\d{4}$/.test(a)&&(t=[a+"-01-01",a+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(a)){var n=this.getDateInfo(a),i=n.date;i.setMonth(i.getMonth()+1);var o=this.getNextNDay(i,-1);t=[n.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(a)&&(t=[a,a])}if(!t)return e;var s=this._getRangeInfo(t);return s.start.time>s.end.time&&t.reverse(),t},r.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],a;t[0].time>t[1].time&&(a=!0,t.reverse());var n=Math.floor(t[1].time/Td)-Math.floor(t[0].time/Td)+1,i=new Date(t[0].time),o=i.getDate(),s=t[1].date.getDate();i.setDate(o+n-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-t[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-t[1].time)*u>0;)n-=u,i.setDate(l-u);var c=Math.floor((n+t[0].day+6)/7),f=a?-c+1:c-1;return a&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:n,weeks:c,nthWeek:f,fweek:t[0].day,lweek:t[1].day}},r.prototype._getDateByWeeksAndDay=function(e,t,a){var n=this._getRangeInfo(a);if(e>n.weeks||e===0&&t<n.fweek||e===n.weeks&&t>n.lweek)return null;var i=(e-1)*7-n.fweek+t,o=new Date(n.start.time);return o.setDate(+n.start.d+i),this.getDateInfo(o)},r.create=function(e,t){var a=[];return e.eachComponent("calendar",function(n){var i=new r(n);a.push(i),n.coordinateSystem=i}),e.eachSeries(function(n){n.get("coordinateSystem")==="calendar"&&(n.coordinateSystem=a[n.get("calendarIndex")||0])}),a},r.dimensions=["time","value"],r})();function GS(r){var e=r.calendarModel,t=r.seriesModel,a=e?e.coordinateSystem:t?t.coordinateSystem:null;return a}function vj(r){r.registerComponentModel(cj),r.registerComponentView(fj),r.registerCoordinateSystem("calendar",hj)}function dj(r,e){var t=r.existing;if(e.id=r.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var a=e.parentOption;a?e.parentId=a.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function HS(r,e){var t;return L(e,function(a){r[a]!=null&&r[a]!=="auto"&&(t=!0)}),t}function pj(r,e,t){var a=G({},t),n=r[e],i=t.$action||"merge";i==="merge"?n?(pe(n,a,!0),gn(n,a,{ignoreSize:!0}),bC(t,n),Uu(t,n),Uu(t,n,"shape"),Uu(t,n,"style"),Uu(t,n,"extra"),t.clipPath=n.clipPath):r[e]=a:i==="replace"?r[e]=a:i==="remove"&&n&&(r[e]=null)}var IL=["transition","enterFrom","leaveTo"],gj=IL.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Uu(r,e,t){if(t&&(!r[t]&&e[t]&&(r[t]={}),r=r[t],e=e[t]),!(!r||!e))for(var a=t?IL:gj,n=0;n<a.length;n++){var i=a[n];r[i]==null&&e[i]!=null&&(r[i]=e[i])}}function mj(r,e){if(r&&(r.hv=e.hv=[HS(e,["left","right"]),HS(e,["top","bottom"])],r.type==="group")){var t=r,a=e;t.width==null&&(t.width=a.width=0),t.height==null&&(t.height=a.height=0)}}var yj=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventAutoZ=!0,t}return e.prototype.mergeOption=function(t,a){var n=this.option.elements;this.option.elements=null,r.prototype.mergeOption.call(this,t,a),this.option.elements=n},e.prototype.optionUpdated=function(t,a){var n=this.option,i=(a?n:t).elements,o=n.elements=a?[]:n.elements,s=[];this._flatten(i,s,null);var l=mT(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];L(l,function(c,f){var h=c.newOption;h&&(u.push(h),dj(c,h),pj(o,f,h),mj(o[f],h))},this),n.elements=ze(o,function(c){return c&&delete c.$action,c!=null})},e.prototype._flatten=function(t,a,n){L(t,function(i){if(i){n&&(i.parentOption=n),a.push(i);var o=i.children;o&&o.length&&this._flatten(o,a,i),delete i.children}},this)},e.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},e.type="graphic",e.defaultOption={elements:[]},e})(De),jS={path:null,compoundPath:null,group:ue,image:At,text:Pe},yr=Ie(),xj=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this._elMap=re()},e.prototype.render=function(t,a,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},e.prototype._updateElements=function(t){var a=t.useElOptionsToUpdate();if(a){var n=this._elMap,i=this.group,o=t.get("z"),s=t.get("zlevel");L(a,function(l){var u=pt(l.id,null),c=u!=null?n.get(u):null,f=pt(l.parentId,null),h=f!=null?n.get(f):i,v=l.type,d=l.style;v==="text"&&d&&l.hv&&l.hv[1]&&(d.textVerticalAlign=d.textBaseline=d.verticalAlign=d.align=null);var p=l.textContent,g=l.textConfig;if(d&&cL(d,v,!!g,!!p)){var m=fL(d,v,!0);!g&&m.textConfig&&(g=l.textConfig=m.textConfig),!p&&m.textContent&&(p=m.textContent)}var y=_j(l),x=l.$action||"merge",_=x==="merge",b=x==="replace";if(_){var S=!c,w=c;S?w=WS(u,h,l.type,n):(w&&(yr(w).isNew=!1),pL(w)),w&&(yc(w,y,t,{isInit:S}),$S(w,l,o,s))}else if(b){bc(c,l,n,t);var C=WS(u,h,l.type,n);C&&(yc(C,y,t,{isInit:!0}),$S(C,l,o,s))}else x==="remove"&&(vL(c,l),bc(c,l,n,t));var A=n.get(u);if(A&&p)if(_){var D=A.getTextContent();D?D.attr(p):A.setTextContent(new Pe(p))}else b&&A.setTextContent(new Pe(p));if(A){var M=l.clipPath;if(M){var I=M.type,P=void 0,S=!1;if(_){var k=A.getClipPath();S=!k||yr(k).type!==I,P=S?_g(I):k}else b&&(S=!0,P=_g(I));A.setClipPath(P),yc(P,M,t,{isInit:S}),cf(P,M.keyframeAnimation,t)}var R=yr(A);A.setTextConfig(g),R.option=l,bj(A,t,l),Mi({el:A,componentModel:t,itemName:A.name,itemTooltipOption:l.tooltip}),cf(A,l.keyframeAnimation,t)}})}},e.prototype._relocate=function(t,a){for(var n=t.option.elements,i=this.group,o=this._elMap,s=a.getWidth(),l=a.getHeight(),u=["x","y"],c=0;c<n.length;c++){var f=n[c],h=pt(f.id,null),v=h!=null?o.get(h):null;if(!(!v||!v.isGroup)){var d=v.parent,p=d===i,g=yr(v),m=yr(d);g.width=X(g.option.width,p?s:m.width)||0,g.height=X(g.option.height,p?l:m.height)||0}}for(var c=n.length-1;c>=0;c--){var f=n[c],h=pt(f.id,null),v=h!=null?o.get(h):null;if(v){var d=v.parent,m=yr(d),y=d===i?{width:s,height:l}:{width:m.width,height:m.height},x={},_=Xf(v,f,y,null,{hv:f.hv,boundingMode:f.bounding},x);if(!yr(v).isNew&&_){for(var b=f.transition,S={},w=0;w<u.length;w++){var C=u[w],A=x[C];b&&(yi(b)||_e(b,C)>=0)?S[C]=A:v[C]=A}Ee(v,S,t,0)}else v.attr(x)}}},e.prototype._clear=function(){var t=this,a=this._elMap;a.each(function(n){bc(n,yr(n).option,a,t._lastGraphicModel)}),this._elMap=re()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e})(Qe);function _g(r){var e=ee(jS,r)?jS[r]:hm(r),t=new e({});return yr(t).type=r,t}function WS(r,e,t,a){var n=_g(t);return e.add(n),a.set(r,n),yr(n).id=r,yr(n).isNew=!0,n}function bc(r,e,t,a){var n=r&&r.parent;n&&(r.type==="group"&&r.traverse(function(i){bc(i,e,t,a)}),ch(r,e,a),t.removeKey(yr(r).id))}function $S(r,e,t,a){r.isGroup||L([["cursor",Cr.prototype.cursor],["zlevel",a||0],["z",t||0],["z2",0]],function(n){var i=n[0];ee(e,i)?r[i]=fe(e[i],n[1]):r[i]==null&&(r[i]=n[1])}),L(Me(e),function(n){if(n.indexOf("on")===0){var i=e[n];r[n]=ne(i)?i:null}}),ee(e,"draggable")&&(r.draggable=e.draggable),e.name!=null&&(r.name=e.name),e.id!=null&&(r.id=e.id)}function _j(r){return r=G({},r),L(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(_C),function(e){delete r[e]}),r}function bj(r,e,t){var a=ce(r).eventData;!r.silent&&!r.ignore&&!a&&(a=ce(r).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:r.name}),a&&(a.info=t.info)}function Sj(r){r.registerComponentModel(yj),r.registerComponentView(xj),r.registerPreprocessor(function(e){var t=e.graphic;W(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var US=["x","y","radius","angle","single"],wj=["cartesian2d","polar","singleAxis"];function Tj(r){var e=r.get("coordinateSystem");return _e(wj,e)>=0}function on(r){return r+"Axis"}function Cj(r,e){var t=re(),a=[],n=re();r.eachComponent({mainType:"dataZoom",query:e},function(c){n.get(c.uid)||s(c)});var i;do i=!1,r.eachComponent("dataZoom",o);while(i);function o(c){!n.get(c.uid)&&l(c)&&(s(c),i=!0)}function s(c){n.set(c.uid,!0),a.push(c),u(c)}function l(c){var f=!1;return c.eachTargetAxis(function(h,v){var d=t.get(h);d&&d[v]&&(f=!0)}),f}function u(c){c.eachTargetAxis(function(f,h){(t.get(f)||t.set(f,[]))[h]=!0})}return a}function PL(r){var e=r.ecModel,t={infoList:[],infoMap:re()};return r.eachTargetAxis(function(a,n){var i=e.getComponent(on(a),n);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=t.infoMap.get(s);l||(l={model:o,axisModels:[]},t.infoList.push(l),t.infoMap.set(s,l)),l.axisModels.push(i)}}}),t}var Cd=(function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},r})(),Al=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,a,n){var i=YS(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this._doInit(i)},e.prototype.mergeOption=function(t){var a=YS(t);pe(this.option,t,!0),pe(this.settledOption,a,!0),this._doInit(a)},e.prototype._doInit=function(t){var a=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var n=this.settledOption;L([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(a[i[0]]=n[i[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),a=this._targetAxisInfoMap=re(),n=this._fillSpecifiedTargetAxis(a);n?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(a,this._orient)),this._noTarget=!0,a.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var a=!1;return L(US,function(n){var i=this.getReferringComponents(on(n),g3);if(i.specified){a=!0;var o=new Cd;L(i.models,function(s){o.add(s.componentIndex)}),t.set(n,o)}},this),a},e.prototype._fillAutoTargetAxisByOrient=function(t,a){var n=this.ecModel,i=!0;if(i){var o=a==="vertical"?"y":"x",s=n.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=n.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===a}});l(s,"single")}function l(u,c){var f=u[0];if(f){var h=new Cd;if(h.add(f.componentIndex),t.set(c,h),i=!1,c==="x"||c==="y"){var v=f.getReferringComponents("grid",st).models[0];v&&L(u,function(d){f.componentIndex!==d.componentIndex&&v===d.getReferringComponents("grid",st).models[0]&&h.add(d.componentIndex)})}}}i&&L(US,function(u){if(i){var c=n.findComponents({mainType:on(u),filter:function(h){return h.get("type",!0)==="category"}});if(c[0]){var f=new Cd;f.add(c[0].componentIndex),t.set(u,f),i=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(a){!t&&(t=a)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var a=this.ecModel.option;this.option.throttle=a.animation&&a.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var a=this._rangePropMode,n=this.get("rangeMode");L([["start","startValue"],["end","endValue"]],function(i,o){var s=t[i[0]]!=null,l=t[i[1]]!=null;s&&!l?a[o]="percent":!s&&l?a[o]="value":n?a[o]=n[o]:s&&(a[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(a,n){t==null&&(t=this.ecModel.getComponent(on(a),n))},this),t},e.prototype.eachTargetAxis=function(t,a){this._targetAxisInfoMap.each(function(n,i){L(n.indexList,function(o){t.call(a,i,o)})})},e.prototype.getAxisProxy=function(t,a){var n=this.getAxisModel(t,a);if(n)return n.__dzAxisProxy},e.prototype.getAxisModel=function(t,a){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[a])return this.ecModel.getComponent(on(t),a)},e.prototype.setRawRange=function(t){var a=this.option,n=this.settledOption;L([["start","startValue"],["end","endValue"]],function(i){(t[i[0]]!=null||t[i[1]]!=null)&&(a[i[0]]=n[i[0]]=t[i[0]],a[i[1]]=n[i[1]]=t[i[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var a=this.option;L(["start","startValue","end","endValue"],function(n){a[n]=t[n]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,a){if(t==null&&a==null){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataValueWindow()}else return this.getAxisProxy(t,a).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var a,n=this._targetAxisInfoMap.keys(),i=0;i<n.length;i++)for(var o=n[i],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;a||(a=u)}return a},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e})(De);function YS(r){var e={};return L(["start","end","startValue","endValue","throttle"],function(t){r.hasOwnProperty(t)&&(e[t]=r[t])}),e}var Aj=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e})(Al),Ny=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n,i){this.dataZoomModel=t,this.ecModel=a,this.api=n},e.type="dataZoom",e})(Qe),Dj=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e})(Ny),uo=L,XS=wr,Mj=(function(){function r(e,t,a,n){this._dimName=e,this._axisIndex=t,this.ecModel=n,this._dataZoomModel=a}return r.prototype.hostedBy=function(e){return this._dataZoomModel===e},r.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},r.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},r.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if(Tj(t)){var a=on(this._dimName),n=t.getReferringComponents(a,st).models[0];n&&this._axisIndex===n.componentIndex&&e.push(t)}},this),e},r.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},r.prototype.getMinMaxSpan=function(){return le(this._minMaxSpan)},r.prototype.calculateDataWindow=function(e){var t=this._dataExtent,a=this.getAxisModel(),n=a.axis.scale,i=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;uo(["start","end"],function(h,v){var d=e[h],p=e[h+"Value"];i[v]==="percent"?(d==null&&(d=o[v]),p=n.parse(Fe(d,o,t))):(u=!0,p=p==null?t[v]:n.parse(p),d=Fe(p,t,o)),l[v]=p==null||isNaN(p)?t[v]:p,s[v]=d==null||isNaN(d)?o[v]:d}),XS(l),XS(s);var c=this._minMaxSpan;u?f(l,s,t,o,!1):f(s,l,o,t,!0);function f(h,v,d,p,g){var m=g?"Span":"ValueSpan";Ei(0,h,d,"all",c["min"+m],c["max"+m]);for(var y=0;y<2;y++)v[y]=Fe(h[y],d,p,!0),g&&(v[y]=n.parse(v[y]))}return{valueWindow:l,percentWindow:s}},r.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=Lj(this,this._dimName,t),this._updateMinMaxSpan();var a=this.calculateDataWindow(e.settledOption);this._valueWindow=a.valueWindow,this._percentWindow=a.percentWindow,this._setAxisModel()}},r.prototype.filterData=function(e,t){if(e!==this._dataZoomModel)return;var a=this._dimName,n=this.getTargetSeriesModels(),i=e.get("filterMode"),o=this._valueWindow;if(i==="none")return;uo(n,function(l){var u=l.getData(),c=u.mapDimensionsAll(a);if(c.length){if(i==="weakFilter"){var f=u.getStore(),h=U(c,function(v){return u.getDimensionIndex(v)},u);u.filterSelf(function(v){for(var d,p,g,m=0;m<c.length;m++){var y=f.get(h[m],v),x=!isNaN(y),_=y<o[0],b=y>o[1];if(x&&!_&&!b)return!0;x&&(g=!0),_&&(d=!0),b&&(p=!0)}return g&&d&&p})}else uo(c,function(v){if(i==="empty")l.setData(u=u.map(v,function(p){return s(p)?p:NaN}));else{var d={};d[v]=o,u.selectRange(d)}});uo(c,function(v){u.setApproximateExtent(o,v)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,a=this._dataExtent;uo(["min","max"],function(n){var i=t.get(n+"Span"),o=t.get(n+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=Fe(a[0]+o,a,[0,100],!0):i!=null&&(o=Fe(i,[0,100],a,!0)-a[0]),e[n+"Span"]=i,e[n+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,a=this._valueWindow;if(t){var n=uT(a,[0,500]);n=Math.min(n,20);var i=e.axis.scale.rawExtentInfo;t[0]!==0&&i.setDeterminedMinMax("min",+a[0].toFixed(n)),t[1]!==100&&i.setDeterminedMinMax("max",+a[1].toFixed(n)),i.freeze()}},r})();function Lj(r,e,t){var a=[1/0,-1/0];uo(t,function(o){lB(a,o.getData(),e)});var n=r.getAxisModel(),i=ZA(n.axis.scale,n,a).calculate();return[i.min,i.max]}var Ij={getTargetSeries:function(r){function e(n){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent(on(o),s);n(o,s,l,i)})})}e(function(n,i,o,s){o.__dzAxisProxy=null});var t=[];e(function(n,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new Mj(n,i,s,r),t.push(o.__dzAxisProxy))});var a=re();return L(t,function(n){L(n.getTargetSeriesModels(),function(i){a.set(i.uid,i)})}),a},overallReset:function(r,e){r.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(a,n){t.getAxisProxy(a,n).reset(t)}),t.eachTargetAxis(function(a,n){t.getAxisProxy(a,n).filterData(t,e)})}),r.eachComponent("dataZoom",function(t){var a=t.findRepresentativeAxisProxy();if(a){var n=a.getDataPercentWindow(),i=a.getDataValueWindow();t.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}})}};function Pj(r){r.registerAction("dataZoom",function(e,t){var a=Cj(t,e);L(a,function(n){n.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var ZS=!1;function Oy(r){ZS||(ZS=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,Ij),Pj(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function kj(r){r.registerComponentModel(Aj),r.registerComponentView(Dj),Oy(r)}var _r=(function(){function r(){}return r})(),kL={};function co(r,e){kL[r]=e}function RL(r){return kL[r]}var Rj=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;L(this.option.feature,function(a,n){var i=RL(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(t)),pe(a,i.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e})(De);function Ej(r,e,t){var a=e.getBoxLayoutParams(),n=e.get("padding"),i={width:t.getWidth(),height:t.getHeight()},o=gt(a,i,n);gi(e.get("orient"),r,e.get("itemGap"),o.width,o.height),Xf(r,a,i,n)}function EL(r,e){var t=Ho(e.get("padding")),a=e.getItemStyle(["color","opacity"]);return a.fill=e.get("backgroundColor"),r=new Le({shape:{x:r.x-t[3],y:r.y-t[0],width:r.width+t[1]+t[3],height:r.height+t[0]+t[2],r:e.get("borderRadius")},style:a,silent:!0,z2:-1}),r}var Nj=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,a,n,i){var o=this.group;if(o.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),l=t.get("orient")==="vertical",u=t.get("feature")||{},c=this._features||(this._features={}),f=[];L(u,function(d,p){f.push(p)}),new Pa(this._featureNames||[],f).add(h).update(h).remove(ve(h,null)).execute(),this._featureNames=f;function h(d,p){var g=f[d],m=f[p],y=u[g],x=new Ge(y,t,t.ecModel),_;if(i&&i.newTitle!=null&&i.featureName===g&&(y.title=i.newTitle),g&&!m){if(Oj(g))_={onclick:x.option.onclick,featureName:g};else{var b=RL(g);if(!b)return;_=new b}c[g]=_}else if(_=c[m],!_)return;_.uid=Go("toolbox-feature"),_.model=x,_.ecModel=a,_.api=n;var S=_ instanceof _r;if(!g&&m){S&&_.dispose&&_.dispose(a,n);return}if(!x.get("show")||S&&_.unusable){S&&_.remove&&_.remove(a,n);return}v(x,_,g),x.setIconStatus=function(w,C){var A=this.option,D=this.iconPaths;A.iconStatus=A.iconStatus||{},A.iconStatus[w]=C,D[w]&&(C==="emphasis"?La:Ia)(D[w])},_ instanceof _r&&_.render&&_.render(x,a,n,i)}function v(d,p,g){var m=d.getModel("iconStyle"),y=d.getModel(["emphasis","iconStyle"]),x=p instanceof _r&&p.getIcons?p.getIcons():d.get("icon"),_=d.get("title")||{},b,S;q(x)?(b={},b[g]=x):b=x,q(_)?(S={},S[g]=_):S=_;var w=d.iconPaths={};L(b,function(C,A){var D=Bl(C,{},{x:-s/2,y:-s/2,width:s,height:s});D.setStyle(m.getItemStyle());var M=D.ensureState("emphasis");M.style=y.getItemStyle();var I=new Pe({style:{text:S[A],align:y.get("textAlign"),borderRadius:y.get("textBorderRadius"),padding:y.get("textPadding"),fill:null,font:vm({fontStyle:y.get("textFontStyle"),fontFamily:y.get("textFontFamily"),fontSize:y.get("textFontSize"),fontWeight:y.get("textFontWeight")},a)},ignore:!0});D.setTextContent(I),Mi({el:D,componentModel:t,itemName:A,formatterParamsExtra:{title:S[A]}}),D.__title=S[A],D.on("mouseover",function(){var P=y.getItemStyle(),k=l?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";I.setStyle({fill:y.get("textFill")||P.fill||P.stroke||"#000",backgroundColor:y.get("textBackgroundColor")}),D.setTextConfig({position:y.get("textPosition")||k}),I.ignore=!t.get("showTitle"),n.enterEmphasis(this)}).on("mouseout",function(){d.get(["iconStatus",A])!=="emphasis"&&n.leaveEmphasis(this),I.hide()}),(d.get(["iconStatus",A])==="emphasis"?La:Ia)(D),o.add(D),D.on("click",Q(p.onclick,p,a,n,A)),w[A]=D})}Ej(o,t,n),o.add(EL(o.getBoundingRect(),t)),l||o.eachChild(function(d){var p=d.__title,g=d.ensureState("emphasis"),m=g.textConfig||(g.textConfig={}),y=d.getTextContent(),x=y&&y.ensureState("emphasis");if(x&&!ne(x)&&p){var _=x.style||(x.style={}),b=Il(p,Pe.makeFont(_)),S=d.x+o.x,w=d.y+o.y+s,C=!1;w+b.height>n.getHeight()&&(m.position="top",C=!0);var A=C?-5-b.height:s+10;S+b.width/2>n.getWidth()?(m.position=["100%",A],_.align="right"):S-b.width/2<0&&(m.position=[0,A],_.align="left")}})},e.prototype.updateView=function(t,a,n,i){L(this._features,function(o){o instanceof _r&&o.updateView&&o.updateView(o.model,a,n,i)})},e.prototype.remove=function(t,a){L(this._features,function(n){n instanceof _r&&n.remove&&n.remove(t,a)}),this.group.removeAll()},e.prototype.dispose=function(t,a){L(this._features,function(n){n instanceof _r&&n.dispose&&n.dispose(t,a)})},e.type="toolbox",e})(Qe);function Oj(r){return r.indexOf("my")===0}var Bj=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,a){var n=this.model,i=n.get("name")||t.get("title.0.text")||"echarts",o=a.getZr().painter.getType()==="svg",s=o?"svg":n.get("type",!0)||"png",l=a.getConnectedDataURL({type:s,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),u=Ae.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=i+"."+s,c.target="_blank",c.href=l;var f=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(f)}else if(window.navigator.msSaveOrOpenBlob||o){var h=l.split(","),v=h[0].indexOf("base64")>-1,d=o?decodeURIComponent(h[1]):h[1];v&&(d=window.atob(d));var p=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=d.length,m=new Uint8Array(g);g--;)m[g]=d.charCodeAt(g);var y=new Blob([m]);window.navigator.msSaveOrOpenBlob(y,p)}else{var x=document.createElement("iframe");document.body.appendChild(x);var _=x.contentWindow,b=_.document;b.open("image/svg+xml","replace"),b.write(d),b.close(),_.focus(),b.execCommand("SaveAs",!0,p),document.body.removeChild(x)}}else{var S=n.get("lang"),w='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(S&&S[0]||"")+'" /></body>',C=window.open();C.document.write(w),C.document.title=i}},e.getDefaultOption=function(t){var a={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return a},e})(_r),qS="__ec_magicType_stack__",zj=[["line","bar"],["stack"]],Vj=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,a=t.get("icon"),n={};return L(t.get("type"),function(i){a[i]&&(n[i]=a[i])}),n},e.getDefaultOption=function(t){var a={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return a},e.prototype.onclick=function(t,a,n){var i=this.model,o=i.get(["seriesIndex",n]);if(KS[n]){var s={series:[]},l=function(f){var h=f.subType,v=f.id,d=KS[n](h,v,f,i);d&&(ie(d,f.option),s.series.push(d));var p=f.coordinateSystem;if(p&&p.type==="cartesian2d"&&(n==="line"||n==="bar")){var g=p.getAxesByScale("ordinal")[0];if(g){var m=g.dim,y=m+"Axis",x=f.getReferringComponents(y,st).models[0],_=x.componentIndex;s[y]=s[y]||[];for(var b=0;b<=_;b++)s[y][_]=s[y][_]||{};s[y][_].boundaryGap=n==="bar"}}};L(zj,function(f){_e(f,n)>=0&&L(f,function(h){i.setIconStatus(h,"normal")})}),i.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=n;n==="stack"&&(u=pe({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",n])!=="emphasis"&&(c="tiled")),a.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},e})(_r),KS={line:function(r,e,t,a){if(r==="bar")return pe({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},a.get(["option","line"])||{},!0)},bar:function(r,e,t,a){if(r==="line")return pe({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},a.get(["option","bar"])||{},!0)},stack:function(r,e,t,a){var n=t.get("stack")===qS;if(r==="line"||r==="bar")return a.setIconStatus("stack",n?"normal":"emphasis"),pe({id:e,stack:n?"":qS},a.get(["option","stack"])||{},!0)}};va({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,e){e.mergeOption(r.newOption)});var fh=new Array(60).join("-"),Ro=" ";function Fj(r){var e={},t=[],a=[];return r.eachRawSeries(function(n){var i=n.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},a.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(n)}else t.push(n)}else t.push(n)}),{seriesGroupByCategoryAxis:e,other:t,meta:a}}function Gj(r){var e=[];return L(r,function(t,a){var n=t.categoryAxis,i=t.valueAxis,o=i.dim,s=[" "].concat(U(t.series,function(v){return v.name})),l=[n.model.getCategories()];L(t.series,function(v){var d=v.getRawData();l.push(v.getRawData().mapArray(d.mapDimension(o),function(p){return p}))});for(var u=[s.join(Ro)],c=0;c<l[0].length;c++){for(var f=[],h=0;h<l.length;h++)f.push(l[h][c]);u.push(f.join(Ro))}e.push(u.join(`
19
- `))}),e.join(`
20
-
21
- `+fh+`
22
-
23
- `)}function Hj(r){return U(r,function(e){var t=e.getRawData(),a=[e.name],n=[];return t.each(t.dimensions,function(){for(var i=arguments.length,o=arguments[i-1],s=t.getName(o),l=0;l<i-1;l++)n[l]=arguments[l];a.push((s?s+Ro:"")+n.join(Ro))}),a.join(`
24
- `)}).join(`
25
-
26
- `+fh+`
27
-
28
- `)}function jj(r){var e=Fj(r);return{value:ze([Gj(e.seriesGroupByCategoryAxis),Hj(e.other)],function(t){return!!t.replace(/[\n\t\s]/g,"")}).join(`
29
-
30
- `+fh+`
31
-
32
- `),meta:e.meta}}function vf(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Wj(r){var e=r.slice(0,r.indexOf(`
33
- `));if(e.indexOf(Ro)>=0)return!0}var bg=new RegExp("["+Ro+"]+","g");function $j(r){for(var e=r.split(/\n+/g),t=vf(e.shift()).split(bg),a=[],n=U(t,function(l){return{name:l,data:[]}}),i=0;i<e.length;i++){var o=vf(e[i]).split(bg);a.push(o.shift());for(var s=0;s<o.length;s++)n[s]&&(n[s].data[i]=o[s])}return{series:n,categories:a}}function Uj(r){for(var e=r.split(/\n+/g),t=vf(e.shift()),a=[],n=0;n<e.length;n++){var i=vf(e[n]);if(i){var o=i.split(bg),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),a[n]={name:s,value:[]},l=a[n].value):l=a[n]=[];for(var c=0;c<o.length;c++)l.push(+o[c]);l.length===1&&(u?a[n].value=l[0]:a[n]=l[0])}}return{name:t,data:a}}function Yj(r,e){var t=r.split(new RegExp(`
34
- *`+fh+`
35
- *`,"g")),a={series:[]};return L(t,function(n,i){if(Wj(n)){var o=$j(n),s=e[i],l=s.axisDim+"Axis";s&&(a[l]=a[l]||[],a[l][s.axisIndex]={data:o.categories},a.series=a.series.concat(o.series))}else{var o=Uj(n);a.series.push(o)}}),a}var Xj=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,a){setTimeout(function(){a.dispatchAction({type:"hideTip"})});var n=a.getDom(),i=this.model;this._dom&&n.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=i.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=i.get("lang")||[];s.innerHTML=l[0]||i.get("title"),s.style.cssText="margin:10px 20px",s.style.color=i.get("textColor");var u=document.createElement("div"),c=document.createElement("textarea");u.style.cssText="overflow:auto";var f=i.get("optionToContent"),h=i.get("contentToOption"),v=jj(t);if(ne(f)){var d=f(a.getOption());q(d)?u.innerHTML=d:wo(d)&&u.appendChild(d)}else{c.readOnly=i.get("readOnly");var p=c.style;p.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",p.color=i.get("textColor"),p.borderColor=i.get("textareaBorderColor"),p.backgroundColor=i.get("textareaColor"),c.value=v.value,u.appendChild(c)}var g=v.meta,m=document.createElement("div");m.style.cssText="position:absolute;bottom:5px;left:0;right:0";var y="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",x=document.createElement("div"),_=document.createElement("div");y+=";background-color:"+i.get("buttonColor"),y+=";color:"+i.get("buttonTextColor");var b=this;function S(){n.removeChild(o),b._dom=null}Qd(x,"click",S),Qd(_,"click",function(){if(h==null&&f!=null||h!=null&&f==null){S();return}var w;try{ne(h)?w=h(u,a.getOption()):w=Yj(c.value,g)}catch(C){throw S(),new Error("Data view format error "+C)}w&&a.dispatchAction({type:"changeDataView",newOption:w}),S()}),x.innerHTML=l[1],_.innerHTML=l[2],_.style.cssText=x.style.cssText=y,!i.get("readOnly")&&m.appendChild(_),m.appendChild(x),o.appendChild(s),o.appendChild(u),o.appendChild(m),u.style.height=n.clientHeight-80+"px",n.appendChild(o),this._dom=o},e.prototype.remove=function(t,a){this._dom&&a.getDom().removeChild(this._dom)},e.prototype.dispose=function(t,a){this.remove(t,a)},e.getDefaultOption=function(t){var a={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:t.getLocaleModel().get(["toolbox","dataView","title"]),lang:t.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return a},e})(_r);function Zj(r,e){return U(r,function(t,a){var n=e&&e[a];if(se(n)&&!W(n)){var i=se(t)&&!W(t);i||(t={value:t});var o=n.name!=null&&t.name==null;return t=ie(t,n),o&&delete t.name,t}else return t})}va({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,e){var t=[];L(r.newOption.series,function(a){var n=e.getSeriesByName(a.name)[0];if(!n)t.push(G({type:"scatter"},a));else{var i=n.get("data");t.push({name:a.name,data:Zj(a.data,i)})}}),e.mergeOption(ie({series:t},r.newOption))});var NL=L,OL=Ie();function qj(r,e){var t=By(r);NL(e,function(a,n){for(var i=t.length-1;i>=0;i--){var o=t[i];if(o[n])break}if(i<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(s){var l=s.getPercentRange();t[0][n]={dataZoomId:n,start:l[0],end:l[1]}}}}),t.push(e)}function Kj(r){var e=By(r),t=e[e.length-1];e.length>1&&e.pop();var a={};return NL(t,function(n,i){for(var o=e.length-1;o>=0;o--)if(n=e[o][i],n){a[i]=n;break}}),a}function Jj(r){OL(r).snapshots=null}function Qj(r){return By(r).length}function By(r){var e=OL(r);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var eW=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,a){Jj(t),a.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var a={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return a},e})(_r);va({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,e){e.resetOption("recreate")});var tW=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],zy=(function(){function r(e,t,a){var n=this;this._targetInfoList=[];var i=JS(t,e);L(rW,function(o,s){(!a||!a.include||_e(a.include,s)>=0)&&o(i,n._targetInfoList)})}return r.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(a,n,i){if((a.coordRanges||(a.coordRanges=[])).push(n),!a.coordRange){a.coordRange=n;var o=Ad[a.brushType](0,i,n);a.__rangeOffset={offset:rw[a.brushType](o.values,a.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},r.prototype.matchOutputRanges=function(e,t,a){L(e,function(n){var i=this.findTargetInfo(n,t);i&&i!==!0&&L(i.coordSyses,function(o){var s=Ad[n.brushType](1,o,n.range,!0);a(n,s.values,o,t)})},this)},r.prototype.setInputRanges=function(e,t){L(e,function(a){var n=this.findTargetInfo(a,t);if(a.range=a.range||[],n&&n!==!0){a.panelId=n.panelId;var i=Ad[a.brushType](0,n.coordSys,a.coordRange),o=a.__rangeOffset;a.range=o?rw[a.brushType](i.values,o.offset,aW(i.xyMinMax,o.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(e,t){return U(this._targetInfoList,function(a){var n=a.getPanelRect();return{panelId:a.panelId,defaultBrushType:t?t(a):null,clipPath:WM(n),isTargetByCursor:UM(n,e,a.coordSysModel),getLinearBrushOtherExtent:$M(n)}})},r.prototype.controlSeries=function(e,t,a){var n=this.findTargetInfo(e,a);return n===!0||n&&_e(n.coordSyses,t.coordinateSystem)>=0},r.prototype.findTargetInfo=function(e,t){for(var a=this._targetInfoList,n=JS(t,e),i=0;i<a.length;i++){var o=a[i],s=e.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<QS.length;l++)if(QS[l](n,o))return o}return!0},r})();function Sg(r){return r[0]>r[1]&&r.reverse(),r}function JS(r,e){return js(r,e,{includeMainTypes:tW})}var rW={grid:function(r,e){var t=r.xAxisModels,a=r.yAxisModels,n=r.gridModels,i=re(),o={},s={};!t&&!a&&!n||(L(t,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),L(a,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),L(n,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,c=[];L(u.getCartesians(),function(f,h){(_e(t,f.getAxis("x").model)>=0||_e(a,f.getAxis("y").model)>=0)&&c.push(f)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:ew.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,e){L(r.geoModels,function(t){var a=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:a,coordSyses:[a],getPanelRect:ew.geo})})}},QS=[function(r,e){var t=r.xAxisModel,a=r.yAxisModel,n=r.gridModel;return!n&&t&&(n=t.axis.grid.model),!n&&a&&(n=a.axis.grid.model),n&&n===e.gridModel},function(r,e){var t=r.geoModel;return t&&t===e.geoModel}],ew={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,e=r.getBoundingRect().clone();return e.applyTransform(pi(r)),e}},Ad={lineX:ve(tw,0),lineY:ve(tw,1),rect:function(r,e,t,a){var n=r?e.pointToData([t[0][0],t[1][0]],a):e.dataToPoint([t[0][0],t[1][0]],a),i=r?e.pointToData([t[0][1],t[1][1]],a):e.dataToPoint([t[0][1],t[1][1]],a),o=[Sg([n[0],i[0]]),Sg([n[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(r,e,t,a){var n=[[1/0,-1/0],[1/0,-1/0]],i=U(t,function(o){var s=r?e.pointToData(o,a):e.dataToPoint(o,a);return n[0][0]=Math.min(n[0][0],s[0]),n[1][0]=Math.min(n[1][0],s[1]),n[0][1]=Math.max(n[0][1],s[0]),n[1][1]=Math.max(n[1][1],s[1]),s});return{values:i,xyMinMax:n}}};function tw(r,e,t,a){var n=t.getAxis(["x","y"][r]),i=Sg(U([0,1],function(s){return e?n.coordToData(n.toLocalCoord(a[s]),!0):n.toGlobalCoord(n.dataToCoord(a[s]))})),o=[];return o[r]=i,o[1-r]=[NaN,NaN],{values:i,xyMinMax:o}}var rw={lineX:ve(aw,0),lineY:ve(aw,1),rect:function(r,e,t){return[[r[0][0]-t[0]*e[0][0],r[0][1]-t[0]*e[0][1]],[r[1][0]-t[1]*e[1][0],r[1][1]-t[1]*e[1][1]]]},polygon:function(r,e,t){return U(r,function(a,n){return[a[0]-t[0]*e[n][0],a[1]-t[1]*e[n][1]]})}};function aw(r,e,t,a){return[e[0]-a[r]*t[0],e[1]-a[r]*t[1]]}function aW(r,e){var t=nw(r),a=nw(e),n=[t[0]/a[0],t[1]/a[1]];return isNaN(n[0])&&(n[0]=1),isNaN(n[1])&&(n[1]=1),n}function nw(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var wg=L,nW=f3("toolbox-dataZoom_"),iW=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,a,n,i){this._brushController||(this._brushController=new fy(n.getZr()),this._brushController.on("brush",Q(this._onBrush,this)).mount()),lW(t,a,this,i,n),sW(t,a)},e.prototype.onclick=function(t,a,n){oW[n].call(this)},e.prototype.remove=function(t,a){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,a){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var a=t.areas;if(!t.isEnd||!a.length)return;var n={},i=this.ecModel;this._brushController.updateCovers([]);var o=new zy(Vy(this.model),i,{include:["grid"]});o.matchOutputRanges(a,i,function(u,c,f){if(f.type==="cartesian2d"){var h=u.brushType;h==="rect"?(s("x",f,c[0]),s("y",f,c[1])):s({lineX:"x",lineY:"y"}[h],f,c)}}),qj(i,n),this._dispatchZoomAction(n);function s(u,c,f){var h=c.getAxis(u),v=h.model,d=l(u,v,i),p=d.findRepresentativeAxisProxy(v).getMinMaxSpan();(p.minValueSpan!=null||p.maxValueSpan!=null)&&(f=Ei(0,f.slice(),h.scale.getExtent(),0,p.minValueSpan,p.maxValueSpan)),d&&(n[d.id]={dataZoomId:d.id,startValue:f[0],endValue:f[1]})}function l(u,c,f){var h;return f.eachComponent({mainType:"dataZoom",subType:"select"},function(v){var d=v.getAxisModel(u,c.componentIndex);d&&(h=v)}),h}},e.prototype._dispatchZoomAction=function(t){var a=[];wg(t,function(n,i){a.push(le(n))}),a.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:a})},e.getDefaultOption=function(t){var a={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return a},e})(_r),oW={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(Kj(this.ecModel))}};function Vy(r){var e={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function sW(r,e){r.setIconStatus("back",Qj(e)>1?"emphasis":"normal")}function lW(r,e,t,a,n){var i=t._isZoomActive;a&&a.type==="takeGlobalCursor"&&(i=a.key==="dataZoomSelect"?a.dataZoomSelectActive:!1),t._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var o=new zy(Vy(r),e,{include:["grid"]}),s=o.makePanelOpts(n,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}OE("dataZoom",function(r){var e=r.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var a=e.getModel(t),n=[],i=Vy(a),o=js(r,i);wg(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),wg(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var f=l.componentIndex,h={type:"select",$fromToolbox:!0,filterMode:a.get("filterMode",!0)||"filter",id:nW+u+f};h[c]=f,n.push(h)}return n});function uW(r){r.registerComponentModel(Rj),r.registerComponentView(Nj),co("saveAsImage",Bj),co("magicType",Vj),co("dataView",Xj),co("dataZoom",iW),co("restore",eW),Te(kj)}var cW=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e})(De);function BL(r){var e=r.get("confine");return e!=null?!!e:r.get("renderMode")==="richText"}function zL(r){if(Ae.domSupported){for(var e=document.documentElement.style,t=0,a=r.length;t<a;t++)if(r[t]in e)return r[t]}}var VL=zL(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),fW=zL(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function FL(r,e){if(!r)return e;e=yC(e,!0);var t=r.indexOf(e);return r=t===-1?e:"-"+r.slice(0,t)+"-"+e,r.toLowerCase()}function hW(r,e){var t=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return t?t[e]:null}var vW=FL(fW,"transition"),Fy=FL(VL,"transform"),dW="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Ae.transform3dSupported?"will-change:transform;":"");function pW(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function gW(r,e,t){if(!q(t)||t==="inside")return"";var a=r.get("backgroundColor"),n=r.get("borderWidth");e=wi(e);var i=pW(t),o=Math.max(Math.round(n)*1.5,6),s="",l=Fy+":",u;_e(["left","right"],i)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var c=u*Math.PI/180,f=o+n,h=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),v=Math.round(((h-Math.SQRT2*n)/2+Math.SQRT2*n-(h-f)/2)*100)/100;s+=";"+i+":-"+v+"px";var d=e+" solid "+n+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+a+";"];return'<div style="'+p.join("")+'"></div>'}function mW(r,e){var t="cubic-bezier(0.23,1,0.32,1)",a=" "+r/2+"s "+t,n="opacity"+a+",visibility"+a;return e||(a=" "+r+"s "+t,n+=Ae.transformSupported?","+Fy+a:",left"+a+",top"+a),vW+":"+n}function iw(r,e,t){var a=r.toFixed(0)+"px",n=e.toFixed(0)+"px";if(!Ae.transformSupported)return t?"top:"+n+";left:"+a+";":[["top",n],["left",a]];var i=Ae.transform3dSupported,o="translate"+(i?"3d":"")+"("+a+","+n+(i?",0":"")+")";return t?"top:0;left:0;"+Fy+":"+o+";":[["top",0],["left",0],[VL,o]]}function yW(r){var e=[],t=r.get("fontSize"),a=r.getTextColor();a&&e.push("color:"+a),e.push("font:"+r.getFont());var n=fe(r.get("lineHeight"),Math.round(t*3/2));t&&e.push("line-height:"+n+"px");var i=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,s=r.get("textShadowOffsetX")||0,l=r.get("textShadowOffsetY")||0;return i&&o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+i),L(["decoration","align"],function(u){var c=r.get(u);c&&e.push("text-"+u+":"+c)}),e.join(";")}function xW(r,e,t){var a=[],n=r.get("transitionDuration"),i=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),c=r.getModel("textStyle"),f=JC(r,"html"),h=l+"px "+u+"px "+o+"px "+s;return a.push("box-shadow:"+h),e&&n&&a.push(mW(n,t)),i&&a.push("background-color:"+i),L(["width","color","radius"],function(v){var d="border-"+v,p=yC(d),g=r.get(p);g!=null&&a.push(d+":"+g+(v==="color"?"":"px"))}),a.push(yW(c)),f!=null&&a.push("padding:"+Ho(f).join("px ")+"px"),a.join(";")+";"}function ow(r,e,t,a,n){var i=e&&e.painter;if(t){var o=i&&i.getViewportRoot();o&&j5(r,o,t,a,n)}else{r[0]=a,r[1]=n;var s=i&&i.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var _W=(function(){function r(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Ae.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var n=this._zr=e.getZr(),i=t.appendTo,o=i&&(q(i)?document.querySelector(i):wo(i)?i:ne(i)&&i(e.getDom()));ow(this._styleCoord,n,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(a),this._api=e,this._container=o;var s=this;a.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},a.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=n.handler,c=n.painter.getViewportRoot();pr(c,l,!0),u.dispatch("mousemove",l)}},a.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),a=hW(t,"position"),n=t.style;n.position!=="absolute"&&a!=="absolute"&&(n.position="relative")}var i=e.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=e.get("className")||""},r.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var a=this.el,n=a.style,i=this._styleCoord;a.innerHTML?n.cssText=dW+xW(e,!this._firstShow,this._longHide)+iw(i[0],i[1],!0)+("border-color:"+wi(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(e,t,a,n,i){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(q(i)&&a.get("trigger")==="item"&&!BL(a)&&(s=gW(a,n,i)),q(e))o.innerHTML=e+s;else if(e){o.innerHTML="",W(e)||(e=[e]);for(var l=0;l<e.length;l++)wo(e[l])&&e[l].parentNode!==o&&o.appendChild(e[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},r.prototype.setEnterable=function(e){this._enterable=e},r.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},r.prototype.moveTo=function(e,t){if(this.el){var a=this._styleCoord;if(ow(a,this._zr,this._container,e,t),a[0]!=null&&a[1]!=null){var n=this.el.style,i=iw(a[0],a[1]);L(i,function(o){n[o[0]]=o[1]})}}},r.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},r.prototype.hide=function(){var e=this,t=this.el.style;t.visibility="hidden",t.opacity="0",Ae.transform3dSupported&&(t.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},r.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Q(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this.el.parentNode;e&&e.removeChild(this.el),this.el=this._container=null},r})(),bW=(function(){function r(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),lw(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return r.prototype.update=function(e){var t=e.get("alwaysShowContent");t&&this._moveIfResized(),this._alwaysShowContent=t},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(e,t,a,n,i){var o=this;se(e)&&Be(""),this.el&&this._zr.remove(this.el);var s=a.getModel("textStyle");this.el=new Pe({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:s.get("textShadowColor"),fill:a.get(["textStyle","color"]),padding:JC(a,"richText"),verticalAlign:"top",align:"left"},z:a.get("z")}),L(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=a.get(u)}),L(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},r.prototype.setEnterable=function(e){this._enterable=e},r.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),a=sw(e.style);return[t.width+a.left+a.right,t.height+a.top+a.bottom]},r.prototype.moveTo=function(e,t){var a=this.el;if(a){var n=this._styleCoord;lw(n,this._zr,e,t),e=n[0],t=n[1];var i=a.style,o=Xa(i.borderWidth||0),s=sw(i);a.x=e+o+s.left,a.y=t+o+s.top,a.markRedraw()}},r.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Q(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r})();function Xa(r){return Math.max(0,r)}function sw(r){var e=Xa(r.shadowBlur||0),t=Xa(r.shadowOffsetX||0),a=Xa(r.shadowOffsetY||0);return{left:Xa(e-t),right:Xa(e+t),top:Xa(e-a),bottom:Xa(e+a)}}function lw(r,e,t,a){r[0]=t,r[1]=a,r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var SW=new Le({shape:{x:-1,y:-1,width:2,height:2}}),wW=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){if(!(Ae.node||!a.getDom())){var n=t.getComponent("tooltip"),i=this._renderMode=y3(n.get("renderMode"));this._tooltipContent=i==="richText"?new bW(a):new _W(a,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},e.prototype.render=function(t,a,n){if(!(Ae.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=t,this._ecModel=a,this._api=n;var i=this._tooltipContent;i.update(t),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&t.get("transitionDuration")?Uo(this,"_updatePosition",50,"fixRate"):vl(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel,a=t.get("triggerOn");TL("itemTooltip",this._api,Q(function(n,i,o){a!=="none"&&(a.indexOf(n)>=0?this._tryShow(i,o):n==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,a=this._ecModel,n=this._api,i=t.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(t,a,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,a,n,i){if(!(i.from===this.uid||Ae.node||!n.getDom())){var o=uw(i,n);this._ticket="";var s=i.dataByCoordSys,l=DW(i,a,n);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var c=SW;c.x=i.x,c.y=i.y,c.update(),ce(c).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:c},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(t,a,n,i))return;var f=CL(i,a),h=f.point[0],v=f.point[1];h!=null&&v!=null&&this._tryShow({offsetX:h,offsetY:v,target:f.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},o))}},e.prototype.manuallyHideTip=function(t,a,n,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(uw(i,n))},e.prototype._manuallyAxisShowTip=function(t,a,n,i){var o=i.seriesIndex,s=i.dataIndex,l=a.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=a.getSeriesByIndex(o);if(u){var c=u.getData(),f=bs([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},e.prototype._tryShow=function(t,a){var n=t.target,i=this._tooltipModel;if(i){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(n){var s=ce(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;oi(n,function(c){if(ce(c).dataIndex!=null)return l=c,!0;if(ce(c).tooltipConfig!=null)return u=c,!0},!0),l?this._showSeriesItemTooltip(t,l,a):u?this._showComponentItemTooltip(t,u,a):this._hide(a)}else this._lastDataByCoordSys=null,this._hide(a)}},e.prototype._showOrMove=function(t,a){var n=t.get("showDelay");a=Q(a,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(a,n):a()},e.prototype._showAxisTooltip=function(t,a){var n=this._ecModel,i=this._tooltipModel,o=[a.offsetX,a.offsetY],s=bs([a.tooltipOption],i),l=this._renderMode,u=[],c=St("section",{blocks:[],noHeader:!0}),f=[],h=new fv;L(t,function(y){L(y.dataByAxis,function(x){var _=n.getComponent(x.axisDim+"Axis",x.axisIndex),b=x.value;if(!(!_||b==null)){var S=bL(b,_.axis,n,x.seriesDataIndices,x.valueLabelOpt),w=St("section",{header:S,noHeader:!Or(S),sortBlocks:!0,blocks:[]});c.blocks.push(w),L(x.seriesDataIndices,function(C){var A=n.getSeriesByIndex(C.seriesIndex),D=C.dataIndexInside,M=A.getDataParams(D);if(!(M.dataIndex<0)){M.axisDim=x.axisDim,M.axisIndex=x.axisIndex,M.axisType=x.axisType,M.axisId=x.axisId,M.axisValue=Vm(_.axis,{value:b}),M.axisValueLabel=S,M.marker=h.makeTooltipMarker("item",wi(M.color),l);var I=X1(A.formatTooltip(D,!0,null)),P=I.frag;if(P){var k=bs([A],i).get("valueFormatter");w.blocks.push(k?G({valueFormatter:k},P):P)}I.text&&f.push(I.text),u.push(M)}})}})}),c.blocks.reverse(),f.reverse();var v=a.position,d=s.get("order"),p=ex(c,h,l,d,n.get("useUTC"),s.get("textStyle"));p&&f.unshift(p);var g=l==="richText"?`
36
-
37
- `:"<br/>",m=f.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],v,null,h)})},e.prototype._showSeriesItemTooltip=function(t,a,n){var i=this._ecModel,o=ce(a),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,h=u.getData(f),v=this._renderMode,d=t.positionDefault,p=bs([h.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var m=u.getDataParams(c,f),y=new fv;m.marker=y.makeTooltipMarker("item",wi(m.color),v);var x=X1(u.formatTooltip(c,!1,f)),_=p.get("order"),b=p.get("valueFormatter"),S=x.frag,w=S?ex(b?G({valueFormatter:b},S):S,y,v,_,i.get("useUTC"),p.get("textStyle")):x.text,C="item_"+u.name+"_"+c;this._showOrMove(p,function(){this._showTooltipContent(p,w,m,C,t.offsetX,t.offsetY,t.position,t.target,y)}),n({type:"showTip",dataIndexInside:c,dataIndex:h.getRawIndex(c),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,a,n){var i=this._renderMode==="html",o=ce(a),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(q(l)){var c=l;l={content:c,formatter:c},u=!0}u&&i&&l.content&&(l=le(l),l.content=Ht(l.content));var f=[l],h=this._ecModel.getComponent(o.componentMainType,o.componentIndex);h&&f.push(h),f.push({formatter:l.content});var v=t.positionDefault,d=bs(f,this._tooltipModel,v?{position:v}:null),p=d.get("content"),g=Math.random()+"",m=new fv;this._showOrMove(d,function(){var y=le(d.get("formatterParams")||{});this._showTooltipContent(d,p,y,g,t.offsetX,t.offsetY,t.position,a,m)}),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,a,n,i,o,s,l,u,c){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var f=this._tooltipContent;f.setEnterable(t.get("enterable"));var h=t.get("formatter");l=l||t.get("position");var v=a,d=this._getNearestPoint([o,s],n,t.get("trigger"),t.get("borderColor")),p=d.color;if(h)if(q(h)){var g=t.ecModel.get("useUTC"),m=W(n)?n[0]:n,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;v=h,y&&(v=jf(m.axisValue,v,g)),v=xC(v,n,!0)}else if(ne(h)){var x=Q(function(_,b){_===this._ticket&&(f.setContent(b,c,t,p,l),this._updatePosition(t,l,o,s,f,n,u))},this);this._ticket=i,v=h(n,i,x)}else v=h;f.setContent(v,c,t,p,l),f.show(t,p),this._updatePosition(t,l,o,s,f,n,u)}},e.prototype._getNearestPoint=function(t,a,n,i){if(n==="axis"||W(a))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!W(a))return{color:i||a.color||a.borderColor}},e.prototype._updatePosition=function(t,a,n,i,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();a=a||t.get("position");var f=o.getSize(),h=t.get("align"),v=t.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),ne(a)&&(a=a([n,i],s,o.el,d,{viewSize:[u,c],contentSize:f.slice()})),W(a))n=X(a[0],u),i=X(a[1],c);else if(se(a)){var p=a;p.width=f[0],p.height=f[1];var g=gt(p,{width:u,height:c});n=g.x,i=g.y,h=null,v=null}else if(q(a)&&l){var m=AW(a,d,f,t.get("borderWidth"));n=m[0],i=m[1]}else{var m=TW(n,i,o,u,c,h?null:20,v?null:20);n=m[0],i=m[1]}if(h&&(n-=cw(h)?f[0]/2:h==="right"?f[0]:0),v&&(i-=cw(v)?f[1]/2:v==="bottom"?f[1]:0),BL(t)){var m=CW(n,i,o,u,c);n=m[0],i=m[1]}o.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t,a){var n=this._lastDataByCoordSys,i=this._cbParamsList,o=!!n&&n.length===t.length;return o&&L(n,function(s,l){var u=s.dataByAxis||[],c=t[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&L(u,function(h,v){var d=f[v]||{},p=h.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&h.value===d.value&&h.axisType===d.axisType&&h.axisId===d.axisId&&p.length===g.length,o&&L(p,function(m,y){var x=g[y];o=o&&m.seriesIndex===x.seriesIndex&&m.dataIndex===x.dataIndex}),i&&L(h.seriesDataIndices,function(m){var y=m.seriesIndex,x=a[y],_=i[y];x&&_&&_.data!==x.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=a,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,a){Ae.node||!a.getDom()||(vl(this,"_updatePosition"),this._tooltipContent.dispose(),yg("itemTooltip",a))},e.type="tooltip",e})(Qe);function bs(r,e,t){var a=e.ecModel,n;t?(n=new Ge(t,a,a),n=new Ge(e.option,n,a)):n=e;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof Ge&&(o=o.get("tooltip",!0)),q(o)&&(o={formatter:o}),o&&(n=new Ge(o,n,a)))}return n}function uw(r,e){return r.dispatchAction||Q(e.dispatchAction,e)}function TW(r,e,t,a,n,i,o){var s=t.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>a?r-=l+i:r+=i),o!=null&&(e+u+o>n?e-=u+o:e+=o),[r,e]}function CW(r,e,t,a,n){var i=t.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,a)-o,e=Math.min(e+s,n)-s,r=Math.max(r,0),e=Math.max(e,0),[r,e]}function AW(r,e,t,a){var n=t[0],i=t[1],o=Math.ceil(Math.SQRT2*a)+8,s=0,l=0,u=e.width,c=e.height;switch(r){case"inside":s=e.x+u/2-n/2,l=e.y+c/2-i/2;break;case"top":s=e.x+u/2-n/2,l=e.y-i-o;break;case"bottom":s=e.x+u/2-n/2,l=e.y+c+o;break;case"left":s=e.x-n-o,l=e.y+c/2-i/2;break;case"right":s=e.x+u+o,l=e.y+c/2-i/2}return[s,l]}function cw(r){return r==="center"||r==="middle"}function DW(r,e,t){var a=em(r).queryOptionMap,n=a.keys()[0];if(!(!n||n==="series")){var i=Pl(e,n,a.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=t.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=ce(u).tooltipConfig;if(c&&c.name===r.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}function MW(r){Te(ql),r.registerComponentModel(cW),r.registerComponentView(wW),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},nt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},nt)}var LW=["rect","polygon","keep","clear"];function IW(r,e){var t=je(r?r.brush:[]);if(t.length){var a=[];L(t,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(a=a.concat(u))});var n=r&&r.toolbox;W(n)&&(n=n[0]),n||(n={feature:{}},r.toolbox=[n]);var i=n.feature||(n.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,a),PW(s),e&&!s.length&&s.push.apply(s,LW)}}function PW(r){var e={};L(r,function(t){e[t]=1}),r.length=0,L(e,function(t,a){r.push(a)})}var fw=L;function hw(r){if(r){for(var e in r)if(r.hasOwnProperty(e))return!0}}function Tg(r,e,t){var a={};return fw(e,function(i){var o=a[i]=n();fw(r[i],function(s,l){if(_t.isValidType(l)){var u={type:l,visual:s};t&&t(u,i),o[l]=new _t(u),l==="opacity"&&(u=le(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new _t(u))}})}),a;function n(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function GL(r,e,t){var a;L(t,function(n){e.hasOwnProperty(n)&&hw(e[n])&&(a=!0)}),a&&L(t,function(n){e.hasOwnProperty(n)&&hw(e[n])?r[n]=le(e[n]):delete r[n]})}function kW(r,e,t,a,n,i){var o={};L(r,function(f){var h=_t.prepareVisualTypes(e[f]);o[f]=h});var s;function l(f){return Lm(t,s,f)}function u(f,h){lA(t,s,f,h)}t.each(c);function c(f,h){s=f;var v=t.getRawDataItem(s);if(!(v&&v.visualMap===!1))for(var d=a.call(n,f),p=e[d],g=o[d],m=0,y=g.length;m<y;m++){var x=g[m];p[x]&&p[x].applyVisual(f,l,u)}}}function RW(r,e,t,a){var n={};return L(r,function(i){var o=_t.prepareVisualTypes(e[i]);n[i]=o}),{progress:function(o,s){var l;a!=null&&(l=s.getDimensionIndex(a));function u(b){return Lm(s,f,b)}function c(b,S){lA(s,f,b,S)}for(var f,h=s.getStore();(f=o.next())!=null;){var v=s.getRawDataItem(f);if(!(v&&v.visualMap===!1))for(var d=a!=null?h.get(l,f):f,p=t(d),g=e[p],m=n[p],y=0,x=m.length;y<x;y++){var _=m[y];g[_]&&g[_].applyVisual(d,u,c)}}}}}function EW(r){var e=r.brushType,t={point:function(a){return vw[e].point(a,t,r)},rect:function(a){return vw[e].rect(a,t,r)}};return t}var vw={lineX:dw(0),lineY:dw(1),rect:{point:function(r,e,t){return r&&t.boundingRect.contain(r[0],r[1])},rect:function(r,e,t){return r&&t.boundingRect.intersect(r)}},polygon:{point:function(r,e,t){return r&&t.boundingRect.contain(r[0],r[1])&&Jn(t.range,r[0],r[1])},rect:function(r,e,t){var a=t.range;if(!r||a.length<=1)return!1;var n=r.x,i=r.y,o=r.width,s=r.height,l=a[0];if(Jn(a,n,i)||Jn(a,n+o,i)||Jn(a,n,i+s)||Jn(a,n+o,i+s)||ye.create(r).contain(l[0],l[1])||Is(n,i,n+o,i,a)||Is(n,i,n,i+s,a)||Is(n+o,i,n+o,i+s,a)||Is(n,i+s,n+o,i+s,a))return!0}}};function dw(r){var e=["x","y"],t=["width","height"];return{point:function(a,n,i){if(a){var o=i.range,s=a[r];return Ss(s,o)}},rect:function(a,n,i){if(a){var o=i.range,s=[a[e[r]],a[e[r]]+a[t[r]]];return s[1]<s[0]&&s.reverse(),Ss(s[0],o)||Ss(s[1],o)||Ss(o[0],s)||Ss(o[1],s)}}}}function Ss(r,e){return e[0]<=r&&r<=e[1]}var pw=["inBrush","outOfBrush"],Dd="__ecBrushSelect",Cg="__ecInBrushSelectEvent";function HL(r){r.eachComponent({mainType:"brush"},function(e){var t=e.brushTargetManager=new zy(e.option,r);t.setInputRanges(e.areas,r)})}function NW(r,e,t){var a=[],n,i;r.eachComponent({mainType:"brush"},function(o){t&&t.type==="takeGlobalCursor"&&o.setBrushOption(t.key==="brush"?t.brushOption:{brushType:!1})}),HL(r),r.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:le(o.areas),selected:[]};a.push(l);var u=o.option,c=u.brushLink,f=[],h=[],v=[],d=!1;s||(n=u.throttleType,i=u.throttleDelay);var p=U(o.areas,function(b){var S=VW[b.brushType],w=ie({boundingRect:S?S(b):void 0},b);return w.selectors=EW(w),w}),g=Tg(o.option,pw,function(b){b.mappingMethod="fixed"});W(c)&&L(c,function(b){f[b]=1});function m(b){return c==="all"||!!f[b]}function y(b){return!!b.length}r.eachSeries(function(b,S){var w=v[S]=[];b.subType==="parallel"?x(b,S):_(b,S,w)});function x(b,S){var w=b.coordinateSystem;d=d||w.hasAxisBrushed(),m(S)&&w.eachActiveState(b.getData(),function(C,A){C==="active"&&(h[A]=1)})}function _(b,S,w){if(!(!b.brushSelector||zW(o,S))&&(L(p,function(A){o.brushTargetManager.controlSeries(A,b,r)&&w.push(A),d=d||y(w)}),m(S)&&y(w))){var C=b.getData();C.each(function(A){gw(b,w,C,A)&&(h[A]=1)})}}r.eachSeries(function(b,S){var w={seriesId:b.id,seriesIndex:S,seriesName:b.name,dataIndex:[]};l.selected.push(w);var C=v[S],A=b.getData(),D=m(S)?function(M){return h[M]?(w.dataIndex.push(A.getRawIndex(M)),"inBrush"):"outOfBrush"}:function(M){return gw(b,C,A,M)?(w.dataIndex.push(A.getRawIndex(M)),"inBrush"):"outOfBrush"};(m(S)?d:y(C))&&kW(pw,g,A,D)})}),OW(e,n,i,a,t)}function OW(r,e,t,a,n){if(n){var i=r.getZr();if(!i[Cg]){i[Dd]||(i[Dd]=BW);var o=Uo(i,Dd,t,e);o(r,a)}}}function BW(r,e){if(!r.isDisposed()){var t=r.getZr();t[Cg]=!0,r.dispatchAction({type:"brushSelect",batch:e}),t[Cg]=!1}}function gw(r,e,t,a){for(var n=0,i=e.length;n<i;n++){var o=e[n];if(r.brushSelector(a,t,o.selectors,o))return!0}}function zW(r,e){var t=r.option.seriesIndex;return t!=null&&t!=="all"&&(W(t)?_e(t,e)<0:e!==t)}var VW={rect:function(r){return mw(r.range)},polygon:function(r){for(var e,t=r.range,a=0,n=t.length;a<n;a++){e=e||[[1/0,-1/0],[1/0,-1/0]];var i=t[a];i[0]<e[0][0]&&(e[0][0]=i[0]),i[0]>e[0][1]&&(e[0][1]=i[0]),i[1]<e[1][0]&&(e[1][0]=i[1]),i[1]>e[1][1]&&(e[1][1]=i[1])}return e&&mw(e)}};function mw(r){return new ye(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var FW=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){this.ecModel=t,this.api=a,this.model,(this._brushController=new fy(a.getZr())).on("brush",Q(this._onBrush,this)).mount()},e.prototype.render=function(t,a,n,i){this.model=t,this._updateController(t,a,n,i)},e.prototype.updateTransform=function(t,a,n,i){HL(a),this._updateController(t,a,n,i)},e.prototype.updateVisual=function(t,a,n,i){this.updateTransform(t,a,n,i)},e.prototype.updateView=function(t,a,n,i){this._updateController(t,a,n,i)},e.prototype._updateController=function(t,a,n,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var a=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:a,areas:le(n),$from:a}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:a,areas:le(n),$from:a})},e.type="brush",e})(Qe),GW="#ddd",HW=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.areas=[],t.brushOption={},t}return e.prototype.optionUpdated=function(t,a){var n=this.option;!a&&GL(n,t,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:GW},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=U(t,function(a){return yw(this.option,a)},this))},e.prototype.setBrushOption=function(t){this.brushOption=yw(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e})(De);function yw(r,e){return pe({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new Ge(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},e,!0)}var jW=["rect","polygon","lineX","lineY","keep","clear"],WW=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,a,n){var i,o,s;a.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,L(t.get("type",!0),function(l){t.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},e.prototype.updateView=function(t,a,n){this.render(t,a,n)},e.prototype.getIcons=function(){var t=this.model,a=t.get("icon",!0),n={};return L(t.get("type",!0),function(i){a[i]&&(n[i]=a[i])}),n},e.prototype.onclick=function(t,a,n){var i=this._brushType,o=this._brushMode;n==="clear"?(a.dispatchAction({type:"axisAreaSelect",intervals:[]}),a.dispatchAction({type:"brush",command:"clear",areas:[]})):a.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:n==="keep"?i:i===n?!1:n,brushMode:n==="keep"?o==="multiple"?"single":"multiple":o}})},e.getDefaultOption=function(t){var a={show:!0,type:jW.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])};return a},e})(_r);function $W(r){r.registerComponentView(FW),r.registerComponentModel(HW),r.registerPreprocessor(IW),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,NW),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(a){a.setAreas(e.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},nt),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},nt),co("brush",WW)}var UW=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e})(De),YW=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){if(this.group.removeAll(),!!t.get("show")){var i=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=fe(t.get("textBaseline"),t.get("textVerticalAlign")),c=new Pe({style:Xe(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),h=t.get("subtext"),v=new Pe({style:Xe(s,{text:h,fill:s.getTextColor(),y:f.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=t.get("link"),p=t.get("sublink"),g=t.get("triggerEvent",!0);c.silent=!d&&!g,v.silent=!p&&!g,d&&c.on("click",function(){Hc(d,"_"+t.get("target"))}),p&&v.on("click",function(){Hc(p,"_"+t.get("subtarget"))}),ce(c).eventData=ce(v).eventData=g?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(c),h&&i.add(v);var m=i.getBoundingRect(),y=t.getBoxLayoutParams();y.width=m.width,y.height=m.height;var x=gt(y,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?x.x+=x.width:l==="center"&&(x.x+=x.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?x.y+=x.height:u==="middle"&&(x.y+=x.height/2),u=u||"top"),i.x=x.x,i.y=x.y,i.markRedraw();var _={align:l,verticalAlign:u};c.setStyle(_),v.setStyle(_),m=i.getBoundingRect();var b=x.margin,S=t.getItemStyle(["color","opacity"]);S.fill=t.get("backgroundColor");var w=new Le({shape:{x:m.x-b[3],y:m.y-b[0],width:m.width+b[1]+b[3],height:m.height+b[0]+b[2],r:t.get("borderRadius")},style:S,subPixelOptimize:!0,silent:!0});i.add(w)}},e.type="title",e})(Qe);function XW(r){r.registerComponentModel(UW),r.registerComponentView(YW)}var xw=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n),this._initData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){t==null&&(t=this.option.currentIndex);var a=this._data.count();this.option.loop?t=(t%a+a)%a:(t>=a&&(t=a-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t=this.option,a=t.data||[],n=t.axisType,i=this._names=[],o;n==="category"?(o=[],L(a,function(u,c){var f=pt(Bo(u),""),h;se(u)?(h=le(u),h.value=c):h=c,o.push(h),i.push(f)})):o=a;var s={category:"ordinal",time:"time",value:"number"}[n]||"number",l=this._data=new jt([{name:"value",type:s}],this);l.initData(o,i)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e})(De),jL=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=bn(xw.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e})(xw);ut(jL,qf.prototype);var ZW=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e})(Qe),qW=(function(r){z(e,r);function e(t,a,n,i){var o=r.call(this,t,a,n)||this;return o.type=i||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e})(jr),Md=Math.PI,_w=Ie(),KW=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){this.api=a},e.prototype.render=function(t,a,n){if(this.model=t,this.api=n,this.ecModel=a,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,n),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,t);t.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return St("nameValue",{noName:!0,value:c})},L(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,t)},this),this._renderAxisLabel(i,s,l,t),this._position(i,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,a){var n=t.get(["label","position"]),i=t.get("orient"),o=QW(t,a),s;n==null||n==="auto"?s=i==="horizontal"?o.y+o.height/2<a.getHeight()/2?"-":"+":o.x+o.width/2<a.getWidth()/2?"+":"-":q(n)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[i][n]:s=n;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:Md/2},f=i==="vertical"?o.height:o.width,h=t.getModel("controlStyle"),v=h.get("show",!0),d=v?h.get("itemSize"):0,p=v?h.get("itemGap"):0,g=d+p,m=t.get(["label","rotate"])||0;m=m*Md/180;var y,x,_,b=h.get("position",!0),S=v&&h.get("showPlayBtn",!0),w=v&&h.get("showPrevBtn",!0),C=v&&h.get("showNextBtn",!0),A=0,D=f;b==="left"||b==="bottom"?(S&&(y=[0,0],A+=g),w&&(x=[A,0],A+=g),C&&(_=[D-d,0],D-=g)):(S&&(y=[D-d,0],D-=g),w&&(x=[0,0],A+=g),C&&(_=[D-d,0],D-=g));var M=[A,D];return t.get("inverse")&&M.reverse(),{viewRect:o,mainLength:f,orient:i,rotation:c[i],labelRotation:m,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[i],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[i],playPosition:y,prevBtnPosition:x,nextBtnPosition:_,axisExtent:M,controlSize:d,controlGap:p}},e.prototype._position=function(t,a){var n=this._mainGroup,i=this._labelGroup,o=t.viewRect;if(t.orient==="vertical"){var s=or(),l=o.x,u=o.y+o.height;la(s,s,[-l,-u]),Di(s,s,-Md/2),la(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=y(o),f=y(n.getBoundingRect()),h=y(i.getBoundingRect()),v=[n.x,n.y],d=[i.x,i.y];d[0]=v[0]=c[0][0];var p=t.labelPosOpt;if(p==null||q(p)){var g=p==="+"?0:1;x(v,f,c,1,g),x(d,h,c,1,1-g)}else{var g=p>=0?0:1;x(v,f,c,1,g),d[1]=v[1]+p}n.setPosition(v),i.setPosition(d),n.rotation=i.rotation=t.rotation,m(n),m(i);function m(_){_.originX=c[0][0]-_.x,_.originY=c[1][0]-_.y}function y(_){return[[_.x,_.x+_.width],[_.y,_.y+_.height]]}function x(_,b,S,w,C){_[w]+=S[w][C]-b[w][C]}},e.prototype._createAxis=function(t,a){var n=a.getData(),i=a.get("axisType"),o=JW(a,i);o.getTicks=function(){return n.mapArray(["value"],function(u){return{value:u}})};var s=n.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new qW("value",o,t.axisExtent,i);return l.model=a,l},e.prototype._createGroup=function(t){var a=this[t]=new ue;return this.group.add(a),a},e.prototype._renderAxisLine=function(t,a,n,i){var o=n.getExtent();if(i.get(["lineStyle","show"])){var s=new yt({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:G({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});a.add(s);var l=this._progressLine=new yt({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:ie({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});a.add(l)}},e.prototype._renderAxisTick=function(t,a,n,i){var o=this,s=i.getData(),l=n.scale.getTicks();this._tickSymbols=[],L(l,function(u){var c=n.dataToCoord(u.value),f=s.getItemModel(u.value),h=f.getModel("itemStyle"),v=f.getModel(["emphasis","itemStyle"]),d=f.getModel(["progress","itemStyle"]),p={x:c,y:0,onclick:Q(o._changeTimeline,o,u.value)},g=bw(f,h,a,p);g.ensureState("emphasis").style=v.getItemStyle(),g.ensureState("progress").style=d.getItemStyle(),di(g);var m=ce(g);f.get("tooltip")?(m.dataIndex=u.value,m.dataModel=i):m.dataIndex=m.dataModel=null,o._tickSymbols.push(g)})},e.prototype._renderAxisLabel=function(t,a,n,i){var o=this,s=n.getLabelModel();if(s.get("show")){var l=i.getData(),u=n.getViewLabels();this._tickLabels=[],L(u,function(c){var f=c.tickValue,h=l.getItemModel(f),v=h.getModel("label"),d=h.getModel(["emphasis","label"]),p=h.getModel(["progress","label"]),g=n.dataToCoord(c.tickValue),m=new Pe({x:g,y:0,rotation:t.labelRotation-t.rotation,onclick:Q(o._changeTimeline,o,f),silent:!1,style:Xe(v,{text:c.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});m.ensureState("emphasis").style=Xe(d),m.ensureState("progress").style=Xe(p),a.add(m),di(m),_w(m).dataIndex=f,o._tickLabels.push(m)})}},e.prototype._renderControl=function(t,a,n,i){var o=t.controlSize,s=t.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),c=i.getPlayState(),f=i.get("inverse",!0);h(t.nextBtnPosition,"next",Q(this._changeTimeline,this,f?"-":"+")),h(t.prevBtnPosition,"prev",Q(this._changeTimeline,this,f?"+":"-")),h(t.playPosition,c?"stop":"play",Q(this._handlePlayClick,this,!c),!0);function h(v,d,p,g){if(v){var m=Fr(fe(i.get(["controlStyle",d+"BtnSize"]),o),o),y=[0,-m/2,m,m],x=e$(i,d+"Icon",y,{x:v[0],y:v[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:p});x.ensureState("emphasis").style=u,a.add(x),di(x)}}},e.prototype._renderCurrentPointer=function(t,a,n,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(f){f.draggable=!0,f.drift=Q(u._handlePointerDrag,u),f.ondragend=Q(u._handlePointerDragend,u),Sw(f,u._progressLine,s,n,i,!0)},onUpdate:function(f){Sw(f,u._progressLine,s,n,i)}};this._currentPointer=bw(l,l,this._mainGroup,{},this._currentPointer,c)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,a,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,a){var n=this._toAxisCoord(t)[0],i=this._axis,o=wr(i.getExtent().slice());n>o[1]&&(n=o[1]),n<o[0]&&(n=o[0]),this._currentPointer.x=n,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=n,s.dirty());var l=this._findNearestTick(n),u=this.model;(a||l!==u.getCurrentIndex()&&u.get("realtime"))&&this._changeTimeline(l)},e.prototype._doPlayStop=function(){var t=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var a=t.model;t._changeTimeline(a.getCurrentIndex()+(a.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},e.prototype._toAxisCoord=function(t){var a=this._mainGroup.getLocalTransform();return Vr(t,a,!0)},e.prototype._findNearestTick=function(t){var a=this.model.getData(),n=1/0,i,o=this._axis;return a.each(["value"],function(s,l){var u=o.dataToCoord(s),c=Math.abs(u-t);c<n&&(n=c,i=l)}),i},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(t){var a=this.model.getCurrentIndex();t==="+"?t=a+1:t==="-"&&(t=a-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},e.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),a=this._tickSymbols,n=this._tickLabels;if(a)for(var i=0;i<a.length;i++)a&&a[i]&&a[i].toggleState("progress",i<t);if(n)for(var i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",_w(n[i]).dataIndex<=t)},e.type="timeline.slider",e})(ZW);function JW(r,e){if(e=e||r.get("type"),e)switch(e){case"category":return new rh({ordinalMeta:r.getCategories(),extent:[1/0,-1/0]});case"time":return new Bm({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new ka}}function QW(r,e){return gt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},r.get("padding"))}function e$(r,e,t,a){var n=a.style,i=Bl(r.get(["controlStyle",e]),a||{},new ye(t[0],t[1],t[2],t[3]));return n&&i.setStyle(n),i}function bw(r,e,t,a,n,i){var o=e.get("color");if(n)n.setColor(o),t.add(n),i&&i.onUpdate(n);else{var s=r.get("symbol");n=lt(s,-1,-1,2,2,o),n.setStyle("strokeNoScale",!0),t.add(n),i&&i.onCreate(n)}var l=e.getItemStyle(["color"]);n.setStyle(l),a=pe({rectHover:!0,z2:100},a,!0);var u=Yo(r.get("symbolSize"));a.scaleX=u[0]/2,a.scaleY=u[1]/2;var c=Ii(r.get("symbolOffset"),u);c&&(a.x=(a.x||0)+c[0],a.y=(a.y||0)+c[1]);var f=r.get("symbolRotate");return a.rotation=(f||0)*Math.PI/180||0,n.attr(a),n.updateTransform(),n}function Sw(r,e,t,a,n,i){if(!r.dragging){var o=n.getModel("checkpointStyle"),s=a.dataToCoord(n.getData().get("value",t));if(i||!o.get("animation",!0))r.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};r.stopAnimation(null,!0),r.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}function t$(r){r.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(e,t,a){var n=t.getComponent("timeline");return n&&e.currentIndex!=null&&(n.setCurrentIndex(e.currentIndex),!n.get("loop",!0)&&n.isIndexMax()&&n.getPlayState()&&(n.setPlayState(!1),a.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),t.resetOption("timeline",{replaceMerge:n.get("replaceMerge",!0)}),ie({currentIndex:n.option.currentIndex},e)}),r.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(e,t){var a=t.getComponent("timeline");a&&e.playState!=null&&a.setPlayState(e.playState)})}function r$(r){var e=r&&r.timeline;W(e)||(e=e?[e]:[]),L(e,function(t){t&&a$(t)})}function a$(r){var e=r.type,t={number:"value",time:"time"};if(t[e]&&(r.axisType=t[e],delete r.type),ww(r),ti(r,"controlPosition")){var a=r.controlStyle||(r.controlStyle={});ti(a,"position")||(a.position=r.controlPosition),a.position==="none"&&!ti(a,"show")&&(a.show=!1,delete a.position),delete r.controlPosition}L(r.data||[],function(n){se(n)&&!W(n)&&(!ti(n,"value")&&ti(n,"name")&&(n.value=n.name),ww(n))})}function ww(r){var e=r.itemStyle||(r.itemStyle={}),t=e.emphasis||(e.emphasis={}),a=r.label||r.label||{},n=a.normal||(a.normal={}),i={normal:1,emphasis:1};L(a,function(o,s){!i[s]&&!ti(n,s)&&(n[s]=o)}),t.label&&!ti(a,"emphasis")&&(a.emphasis=t.label,delete t.label)}function ti(r,e){return r.hasOwnProperty(e)}function n$(r){r.registerComponentModel(jL),r.registerComponentView(KW),r.registerSubTypeDefaulter("timeline",function(){return"slider"}),t$(r),r.registerPreprocessor(r$)}function Gy(r,e){if(!r)return!1;for(var t=W(r)?r:[r],a=0;a<t.length;a++)if(t[a]&&t[a][e])return!0;return!1}function Yu(r){xi(r,"label",["show"])}var Xu=Ie(),Ea=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.createdBySelf=!1,t}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},e.prototype.isAnimationEnabled=function(){if(Ae.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,a){this._mergeOption(t,a,!1,!1)},e.prototype._mergeOption=function(t,a,n,i){var o=this.mainType;n||a.eachSeries(function(s){var l=s.get(this.mainType,!0),u=Xu(s)[o];if(!l||!l.data){Xu(s)[o]=null;return}u?u._mergeOption(l,a,!0):(i&&Yu(l),L(l.data,function(c){c instanceof Array?(Yu(c[0]),Yu(c[1])):Yu(c)}),u=this.createMarkerModelFromSeries(l,this,a),G(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),Xu(s)[o]=u},this)},e.prototype.formatTooltip=function(t,a,n){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t);return St("section",{header:this.name,blocks:[St("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(t){this._data=t},e.prototype.getDataParams=function(t,a){var n=qf.prototype.getDataParams.call(this,t,a),i=this.__hostSeries;return i&&(n.seriesId=i.id,n.seriesName=i.name,n.seriesType=i.subType),n},e.getMarkerModelFromSeries=function(t,a){return Xu(t)[a]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e})(De);ut(Ea,qf.prototype);var i$=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,a,n){return new e(t,a,n)},e.type="markPoint",e.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},e})(Ea);function Ag(r){return!(isNaN(parseFloat(r.x))&&isNaN(parseFloat(r.y)))}function o$(r){return!isNaN(parseFloat(r.x))&&!isNaN(parseFloat(r.y))}function Zu(r,e,t,a,n,i){var o=[],s=mn(e,a),l=s?e.getCalculationInfo("stackResultDimension"):a,u=Hy(e,l,r),c=e.indicesOfNearest(l,u)[0];o[n]=e.get(t,c),o[i]=e.get(l,c);var f=e.get(a,c),h=ta(e.get(a,c));return h=Math.min(h,20),h>=0&&(o[i]=+o[i].toFixed(h)),[o,f]}var Ld={min:ve(Zu,"min"),max:ve(Zu,"max"),average:ve(Zu,"average"),median:ve(Zu,"median")};function Dl(r,e){if(e){var t=r.getData(),a=r.coordinateSystem,n=a&&a.dimensions;if(!o$(e)&&!W(e.coord)&&W(n)){var i=WL(e,t,a,r);if(e=le(e),e.type&&Ld[e.type]&&i.baseAxis&&i.valueAxis){var o=_e(n,i.baseAxis.dim),s=_e(n,i.valueAxis.dim),l=Ld[e.type](t,i.baseDataDim,i.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!W(n))e.coord=[];else for(var u=e.coord,c=0;c<2;c++)Ld[u[c]]&&(u[c]=Hy(t,t.mapDimension(n[c]),u[c]));return e}}function WL(r,e,t,a){var n={};return r.valueIndex!=null||r.valueDim!=null?(n.valueDataDim=r.valueIndex!=null?e.getDimension(r.valueIndex):r.valueDim,n.valueAxis=t.getAxis(s$(a,n.valueDataDim)),n.baseAxis=t.getOtherAxis(n.valueAxis),n.baseDataDim=e.mapDimension(n.baseAxis.dim)):(n.baseAxis=a.getBaseAxis(),n.valueAxis=t.getOtherAxis(n.baseAxis),n.baseDataDim=e.mapDimension(n.baseAxis.dim),n.valueDataDim=e.mapDimension(n.valueAxis.dim)),n}function s$(r,e){var t=r.getData().getDimensionInfo(e);return t&&t.coordDim}function Ml(r,e){return r&&r.containData&&e.coord&&!Ag(e)?r.containData(e.coord):!0}function l$(r,e,t){return r&&r.containZone&&e.coord&&t.coord&&!Ag(e)&&!Ag(t)?r.containZone(e.coord,t.coord):!0}function $L(r,e){return r?function(t,a,n,i){var o=i<2?t.coord&&t.coord[i]:t.value;return cn(o,e[i])}:function(t,a,n,i){return cn(t.value,e[i])}}function Hy(r,e,t){if(t==="average"){var a=0,n=0;return r.each(e,function(i,o){isNaN(i)||(a+=i,n++)}),a/n}else return t==="median"?r.getMedian(e):r.getDataExtent(e)[t==="max"?1:0]}var Id=Ie(),jy=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this.markerGroupMap=re()},e.prototype.render=function(t,a,n){var i=this,o=this.markerGroupMap;o.each(function(s){Id(s).keep=!1}),a.eachSeries(function(s){var l=Ea.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,a,n)}),o.each(function(s){!Id(s).keep&&i.group.remove(s.group)})},e.prototype.markKeep=function(t){Id(t).keep=!0},e.prototype.toggleBlurSeries=function(t,a){var n=this;L(t,function(i){var o=Ea.getMarkerModelFromSeries(i,n.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(a?OT(l):sm(l))})}})},e.type="marker",e})(Qe);function Tw(r,e,t){var a=e.coordinateSystem;r.each(function(n){var i=r.getItemModel(n),o,s=X(i.get("x"),t.getWidth()),l=X(i.get("y"),t.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(e.getMarkerPosition)o=e.getMarkerPosition(r.getValues(r.dimensions,n));else if(a){var u=r.get(a.dimensions[0],n),c=r.get(a.dimensions[1],n);o=a.dataToPoint([u,c])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),r.setItemLayout(n,o)})}var u$=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,a,n){a.eachSeries(function(i){var o=Ea.getMarkerModelFromSeries(i,"markPoint");o&&(Tw(o.getData(),i,n),this.markerGroupMap.get(i.id).updateLayout())},this)},e.prototype.renderSeries=function(t,a,n,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new jl),f=c$(o,t,a);a.setData(f),Tw(a.getData(),t,i),f.each(function(h){var v=f.getItemModel(h),d=v.getShallow("symbol"),p=v.getShallow("symbolSize"),g=v.getShallow("symbolRotate"),m=v.getShallow("symbolOffset"),y=v.getShallow("symbolKeepAspect");if(ne(d)||ne(p)||ne(g)||ne(m)){var x=a.getRawValue(h),_=a.getDataParams(h);ne(d)&&(d=d(x,_)),ne(p)&&(p=p(x,_)),ne(g)&&(g=g(x,_)),ne(m)&&(m=m(x,_))}var b=v.getModel("itemStyle").getItemStyle(),S=Vl(l,"color");b.fill||(b.fill=S),f.setItemVisual(h,{symbol:d,symbolSize:p,symbolRotate:g,symbolOffset:m,symbolKeepAspect:y,style:b})}),c.updateData(f),this.group.add(c.group),f.eachItemGraphicEl(function(h){h.traverse(function(v){ce(v).dataModel=a})}),this.markKeep(c),c.group.silent=a.get("silent")||t.get("silent")},e.type="markPoint",e})(jy);function c$(r,e,t){var a;r?a=U(r&&r.dimensions,function(s){var l=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return G(G({},l),{name:s,ordinalMeta:null})}):a=[{name:"value",type:"float"}];var n=new jt(a,t),i=U(t.get("data"),ve(Dl,e));r&&(i=ze(i,ve(Ml,r)));var o=$L(!!r,a);return n.initData(i,null,o),n}function f$(r){r.registerComponentModel(i$),r.registerComponentView(u$),r.registerPreprocessor(function(e){Gy(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var h$=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,a,n){return new e(t,a,n)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e})(Ea),qu=Ie(),v$=function(r,e,t,a){var n=r.getData(),i;if(W(a))i=a;else{var o=a.type;if(o==="min"||o==="max"||o==="average"||o==="median"||a.xAxis!=null||a.yAxis!=null){var s=void 0,l=void 0;if(a.yAxis!=null||a.xAxis!=null)s=e.getAxis(a.yAxis!=null?"y":"x"),l=Ct(a.yAxis,a.xAxis);else{var u=WL(a,n,e,r);s=u.valueAxis;var c=BA(n,u.valueDataDim);l=Hy(n,c,o)}var f=s.dim==="x"?0:1,h=1-f,v=le(a),d={coord:[]};v.type=null,v.coord=[],v.coord[h]=-1/0,d.coord[h]=1/0;var p=t.get("precision");p>=0&&ke(l)&&(l=+l.toFixed(Math.min(p,20))),v.coord[f]=d.coord[f]=l,i=[v,d,{type:o,valueIndex:a.valueIndex,value:l}]}else i=[]}var g=[Dl(r,i[0]),Dl(r,i[1]),G({},i[2])];return g[2].type=g[2].type||null,pe(g[2],g[0]),pe(g[2],g[1]),g};function df(r){return!isNaN(r)&&!isFinite(r)}function Cw(r,e,t,a){var n=1-r,i=a.dimensions[r];return df(e[n])&&df(t[n])&&e[r]===t[r]&&a.getAxis(i).containData(e[r])}function d$(r,e){if(r.type==="cartesian2d"){var t=e[0].coord,a=e[1].coord;if(t&&a&&(Cw(1,t,a,r)||Cw(0,t,a,r)))return!0}return Ml(r,e[0])&&Ml(r,e[1])}function Pd(r,e,t,a,n){var i=a.coordinateSystem,o=r.getItemModel(e),s,l=X(o.get("x"),n.getWidth()),u=X(o.get("y"),n.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(a.getMarkerPosition)s=a.getMarkerPosition(r.getValues(r.dimensions,e));else{var c=i.dimensions,f=r.get(c[0],e),h=r.get(c[1],e);s=i.dataToPoint([f,h])}if(ki(i,"cartesian2d")){var v=i.getAxis("x"),d=i.getAxis("y"),c=i.dimensions;df(r.get(c[0],e))?s[0]=v.toGlobalCoord(v.getExtent()[t?0:1]):df(r.get(c[1],e))&&(s[1]=d.toGlobalCoord(d.getExtent()[t?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}r.setItemLayout(e,s)}var p$=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,a,n){a.eachSeries(function(i){var o=Ea.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=qu(o).from,u=qu(o).to;l.each(function(c){Pd(l,c,!0,i,n),Pd(u,c,!1,i,n)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,a,n,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new cy);this.group.add(c.group);var f=g$(o,t,a),h=f.from,v=f.to,d=f.line;qu(a).from=h,qu(a).to=v,a.setData(d);var p=a.get("symbol"),g=a.get("symbolSize"),m=a.get("symbolRotate"),y=a.get("symbolOffset");W(p)||(p=[p,p]),W(g)||(g=[g,g]),W(m)||(m=[m,m]),W(y)||(y=[y,y]),f.from.each(function(_){x(h,_,!0),x(v,_,!1)}),d.each(function(_){var b=d.getItemModel(_).getModel("lineStyle").getLineStyle();d.setItemLayout(_,[h.getItemLayout(_),v.getItemLayout(_)]),b.stroke==null&&(b.stroke=h.getItemVisual(_,"style").fill),d.setItemVisual(_,{fromSymbolKeepAspect:h.getItemVisual(_,"symbolKeepAspect"),fromSymbolOffset:h.getItemVisual(_,"symbolOffset"),fromSymbolRotate:h.getItemVisual(_,"symbolRotate"),fromSymbolSize:h.getItemVisual(_,"symbolSize"),fromSymbol:h.getItemVisual(_,"symbol"),toSymbolKeepAspect:v.getItemVisual(_,"symbolKeepAspect"),toSymbolOffset:v.getItemVisual(_,"symbolOffset"),toSymbolRotate:v.getItemVisual(_,"symbolRotate"),toSymbolSize:v.getItemVisual(_,"symbolSize"),toSymbol:v.getItemVisual(_,"symbol"),style:b})}),c.updateData(d),f.line.eachItemGraphicEl(function(_){ce(_).dataModel=a,_.traverse(function(b){ce(b).dataModel=a})});function x(_,b,S){var w=_.getItemModel(b);Pd(_,b,S,t,i);var C=w.getModel("itemStyle").getItemStyle();C.fill==null&&(C.fill=Vl(l,"color")),_.setItemVisual(b,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:fe(w.get("symbolOffset",!0),y[S?0:1]),symbolRotate:fe(w.get("symbolRotate",!0),m[S?0:1]),symbolSize:fe(w.get("symbolSize"),g[S?0:1]),symbol:fe(w.get("symbol",!0),p[S?0:1]),style:C})}this.markKeep(c),c.group.silent=a.get("silent")||t.get("silent")},e.type="markLine",e})(jy);function g$(r,e,t){var a;r?a=U(r&&r.dimensions,function(u){var c=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return G(G({},c),{name:u,ordinalMeta:null})}):a=[{name:"value",type:"float"}];var n=new jt(a,t),i=new jt(a,t),o=new jt([],t),s=U(t.get("data"),ve(v$,e,r,t));r&&(s=ze(s,ve(d$,r)));var l=$L(!!r,a);return n.initData(U(s,function(u){return u[0]}),null,l),i.initData(U(s,function(u){return u[1]}),null,l),o.initData(U(s,function(u){return u[2]})),o.hasItemOption=!0,{from:n,to:i,line:o}}function m$(r){r.registerComponentModel(h$),r.registerComponentView(p$),r.registerPreprocessor(function(e){Gy(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var y$=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,a,n){return new e(t,a,n)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e})(Ea),Ku=Ie(),x$=function(r,e,t,a){var n=a[0],i=a[1];if(!(!n||!i)){var o=Dl(r,n),s=Dl(r,i),l=o.coord,u=s.coord;l[0]=Ct(l[0],-1/0),l[1]=Ct(l[1],-1/0),u[0]=Ct(u[0],1/0),u[1]=Ct(u[1],1/0);var c=jg([{},o,s]);return c.coord=[o.coord,s.coord],c.x0=o.x,c.y0=o.y,c.x1=s.x,c.y1=s.y,c}};function pf(r){return!isNaN(r)&&!isFinite(r)}function Aw(r,e,t,a){var n=1-r;return pf(e[n])&&pf(t[n])}function _$(r,e){var t=e.coord[0],a=e.coord[1],n={coord:t,x:e.x0,y:e.y0},i={coord:a,x:e.x1,y:e.y1};return ki(r,"cartesian2d")?t&&a&&(Aw(1,t,a)||Aw(0,t,a))?!0:l$(r,n,i):Ml(r,n)||Ml(r,i)}function Dw(r,e,t,a,n){var i=a.coordinateSystem,o=r.getItemModel(e),s,l=X(o.get(t[0]),n.getWidth()),u=X(o.get(t[1]),n.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(a.getMarkerPosition){var c=r.getValues(["x0","y0"],e),f=r.getValues(["x1","y1"],e),h=i.clampData(c),v=i.clampData(f),d=[];t[0]==="x0"?d[0]=h[0]>v[0]?f[0]:c[0]:d[0]=h[0]>v[0]?c[0]:f[0],t[1]==="y0"?d[1]=h[1]>v[1]?f[1]:c[1]:d[1]=h[1]>v[1]?c[1]:f[1],s=a.getMarkerPosition(d,t,!0)}else{var p=r.get(t[0],e),g=r.get(t[1],e),m=[p,g];i.clampData&&i.clampData(m,m),s=i.dataToPoint(m,!0)}if(ki(i,"cartesian2d")){var y=i.getAxis("x"),x=i.getAxis("y"),p=r.get(t[0],e),g=r.get(t[1],e);pf(p)?s[0]=y.toGlobalCoord(y.getExtent()[t[0]==="x0"?0:1]):pf(g)&&(s[1]=x.toGlobalCoord(x.getExtent()[t[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var Mw=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],b$=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,a,n){a.eachSeries(function(i){var o=Ea.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=U(Mw,function(f){return Dw(s,l,f,i,n)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},e.prototype.renderSeries=function(t,a,n,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new ue});this.group.add(c.group),this.markKeep(c);var f=S$(o,t,a);a.setData(f),f.each(function(h){var v=U(Mw,function(C){return Dw(f,h,C,t,i)}),d=o.getAxis("x").scale,p=o.getAxis("y").scale,g=d.getExtent(),m=p.getExtent(),y=[d.parse(f.get("x0",h)),d.parse(f.get("x1",h))],x=[p.parse(f.get("y0",h)),p.parse(f.get("y1",h))];wr(y),wr(x);var _=!(g[0]>y[1]||g[1]<y[0]||m[0]>x[1]||m[1]<x[0]),b=!_;f.setItemLayout(h,{points:v,allClipped:b});var S=f.getItemModel(h).getModel("itemStyle").getItemStyle(),w=Vl(l,"color");S.fill||(S.fill=w,q(S.fill)&&(S.fill=Ic(S.fill,.4))),S.stroke||(S.stroke=w),f.setItemVisual(h,"style",S)}),f.diff(Ku(c).data).add(function(h){var v=f.getItemLayout(h);if(!v.allClipped){var d=new Xt({shape:{points:v.points}});f.setItemGraphicEl(h,d),c.group.add(d)}}).update(function(h,v){var d=Ku(c).data.getItemGraphicEl(v),p=f.getItemLayout(h);p.allClipped?d&&c.group.remove(d):(d?Ee(d,{shape:{points:p.points}},a,h):d=new Xt({shape:{points:p.points}}),f.setItemGraphicEl(h,d),c.group.add(d))}).remove(function(h){var v=Ku(c).data.getItemGraphicEl(h);c.group.remove(v)}).execute(),f.eachItemGraphicEl(function(h,v){var d=f.getItemModel(v),p=f.getItemVisual(v,"style");h.useStyle(f.getItemVisual(v,"style")),Pt(h,bt(d),{labelFetcher:a,labelDataIndex:v,defaultText:f.getName(v)||"",inheritColor:q(p.fill)?Ic(p.fill,1):"#000"}),It(h,d),et(h,null,null,d.get(["emphasis","disabled"])),ce(h).dataModel=a}),Ku(c).data=f,c.group.silent=a.get("silent")||t.get("silent")},e.type="markArea",e})(jy);function S$(r,e,t){var a,n,i=["x0","y0","x1","y1"];if(r){var o=U(r&&r.dimensions,function(u){var c=e.getData(),f=c.getDimensionInfo(c.mapDimension(u))||{};return G(G({},f),{name:u,ordinalMeta:null})});n=U(i,function(u,c){return{name:u,type:o[c%2].type}}),a=new jt(n,t)}else n=[{name:"value",type:"float"}],a=new jt(n,t);var s=U(t.get("data"),ve(x$,e,r,t));r&&(s=ze(s,ve(_$,r)));var l=r?function(u,c,f,h){var v=u.coord[Math.floor(h/2)][h%2];return cn(v,n[h])}:function(u,c,f,h){return cn(u.value,n[h])};return a.initData(s,null,l),a.hasItemOption=!0,a}function w$(r){r.registerComponentModel(y$),r.registerComponentView(b$),r.registerPreprocessor(function(e){Gy(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var T$=function(r,e){if(e==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},Dg=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.call(this,t,a),this._updateSelector(t)},e.prototype._updateSelector=function(t){var a=t.selector,n=this.ecModel;a===!0&&(a=t.selector=["all","inverse"]),W(a)&&L(a,function(i,o){q(i)&&(i={type:i}),a[o]=pe(i,T$(n,i.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var a=!1,n=0;n<t.length;n++){var i=t[n].get("name");if(this.isSelected(i)){this.select(i),a=!0;break}}!a&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var a=[],n=[];t.eachRawSeries(function(l){var u=l.name;n.push(u);var c;if(l.legendVisualProvider){var f=l.legendVisualProvider,h=f.getAllNames();t.isSeriesFiltered(l)||(n=n.concat(h)),h.length?a=a.concat(h):c=!0}else c=!0;c&&Qg(l)&&a.push(l.name)}),this._availableNames=n;var i=this.get("data")||a,o=re(),s=U(i,function(l){return(q(l)||ke(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Ge(l,this,this.ecModel))},this);this._data=ze(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var a=this.option.selected,n=this.get("selectedMode");if(n==="single"){var i=this._data;L(i,function(o){a[o.get("name")]=!1})}a[t]=!0},e.prototype.unSelect=function(t){this.get("selectedMode")!=="single"&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var a=this.option.selected;a.hasOwnProperty(t)||(a[t]=!0),this[a[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,a=this.option.selected;L(t,function(n){a[n.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var t=this._data,a=this.option.selected;L(t,function(n){var i=n.get("name",!0);a.hasOwnProperty(i)||(a[i]=!0),a[i]=!a[i]})},e.prototype.isSelected=function(t){var a=this.option.selected;return!(a.hasOwnProperty(t)&&!a[t])&&_e(this._availableNames,t)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e})(De),to=ve,Mg=L,Ju=ue,UL=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new Ju),this.group.add(this._selectorGroup=new Ju),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,a,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||o==="auto")&&(o=t.get("left")==="right"&&s==="vertical"?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,t,a,n,l,s,u);var c=t.getBoxLayoutParams(),f={width:n.getWidth(),height:n.getHeight()},h=t.get("padding"),v=gt(c,f,h),d=this.layoutInner(t,o,v,i,l,u),p=gt(ie({width:d.width,height:d.height},c),f,h);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=EL(d,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,a,n,i,o,s,l){var u=this.getContentGroup(),c=re(),f=a.get("selectedMode"),h=[];n.eachRawSeries(function(v){!v.get("legendHoverLink")&&h.push(v.id)}),Mg(a.getData(),function(v,d){var p=v.get("name");if(!this.newlineDisabled&&(p===""||p===`
38
- `)){var g=new Ju;g.newline=!0,u.add(g);return}var m=n.getSeriesByName(p)[0];if(!c.get(p))if(m){var y=m.getData(),x=y.getVisual("legendLineStyle")||{},_=y.getVisual("legendIcon"),b=y.getVisual("style"),S=this._createItem(m,p,d,v,a,t,x,b,_,f,i);S.on("click",to(Lw,p,null,i,h)).on("mouseover",to(Lg,m.name,null,i,h)).on("mouseout",to(Ig,m.name,null,i,h)),n.ssr&&S.eachChild(function(w){var C=ce(w);C.seriesIndex=m.seriesIndex,C.dataIndex=d,C.ssrType="legend"}),c.set(p,!0)}else n.eachRawSeries(function(w){if(!c.get(p)&&w.legendVisualProvider){var C=w.legendVisualProvider;if(!C.containName(p))return;var A=C.indexOfName(p),D=C.getItemVisual(A,"style"),M=C.getItemVisual(A,"legendIcon"),I=sr(D.fill);I&&I[3]===0&&(I[3]=.2,D=G(G({},D),{fill:Ta(I,"rgba")}));var P=this._createItem(w,p,d,v,a,t,{},D,M,f,i);P.on("click",to(Lw,null,p,i,h)).on("mouseover",to(Lg,null,p,i,h)).on("mouseout",to(Ig,null,p,i,h)),n.ssr&&P.eachChild(function(k){var R=ce(k);R.seriesIndex=w.seriesIndex,R.dataIndex=d,R.ssrType="legend"}),c.set(p,!0)}},this)},this),o&&this._createSelector(o,a,i,s,l)},e.prototype._createSelector=function(t,a,n,i,o){var s=this.getSelectorGroup();Mg(t,function(u){var c=u.type,f=new Pe({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect",legendId:a.id})}});s.add(f);var h=a.getModel("selectorLabel"),v=a.getModel(["emphasis","selectorLabel"]);Pt(f,{normal:h,emphasis:v},{defaultText:u.title}),di(f)})},e.prototype._createItem=function(t,a,n,i,o,s,l,u,c,f,h){var v=t.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(a),m=i.get("symbolRotate"),y=i.get("symbolKeepAspect"),x=i.get("icon");c=x||c||"roundRect";var _=C$(c,i,l,u,v,g,h),b=new Ju,S=i.getModel("textStyle");if(ne(t.getLegendIcon)&&(!x||x==="inherit"))b.add(t.getLegendIcon({itemWidth:d,itemHeight:p,icon:c,iconRotate:m,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:y}));else{var w=x==="inherit"&&t.getData().getVisual("symbol")?m==="inherit"?t.getData().getVisual("symbolRotate"):m:0;b.add(A$({itemWidth:d,itemHeight:p,icon:c,iconRotate:w,itemStyle:_.itemStyle,symbolKeepAspect:y}))}var C=s==="left"?d+5:-5,A=s,D=o.get("formatter"),M=a;q(D)&&D?M=D.replace("{name}",a??""):ne(D)&&(M=D(a));var I=g?S.getTextColor():i.get("inactiveColor");b.add(new Pe({style:Xe(S,{text:M,x:C,y:p/2,fill:I,align:A,verticalAlign:"middle"},{inheritColor:I})}));var P=new Le({shape:b.getBoundingRect(),style:{fill:"transparent"}}),k=i.getModel("tooltip");return k.get("show")&&Mi({el:P,componentModel:o,itemName:a,itemTooltipOption:k.option}),b.add(P),b.eachChild(function(R){R.silent=!0}),P.silent=!f,this.getContentGroup().add(b),di(b),b.__legendDataIndex=n,b},e.prototype.layoutInner=function(t,a,n,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();gi(t.get("orient"),l,t.get("itemGap"),n.width,n.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){gi("horizontal",u,t.get("selectorItemGap",!0));var h=u.getBoundingRect(),v=[-h.x,-h.y],d=t.get("selectorButtonGap",!0),p=t.getOrient().index,g=p===0?"width":"height",m=p===0?"height":"width",y=p===0?"y":"x";s==="end"?v[p]+=c[g]+d:f[p]+=h[g]+d,v[1-p]+=c[m]/2-h[m]/2,u.x=v[0],u.y=v[1],l.x=f[0],l.y=f[1];var x={x:0,y:0};return x[g]=c[g]+d+h[g],x[m]=Math.max(c[m],h[m]),x[y]=Math.min(0,h[y]+v[1-p]),x}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e})(Qe);function C$(r,e,t,a,n,i,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),Mg(g,function(y,x){g[x]==="inherit"&&(g[x]=m[x])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=r.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?a.decal:Do(f,o),u.fill==="inherit"&&(u.fill=a[n]),u.stroke==="inherit"&&(u.stroke=a[c]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?a:t).opacity),s(u,a);var h=e.getModel("lineStyle"),v=h.getLineStyle();if(s(v,t),u.fill==="auto"&&(u.fill=a.fill),u.stroke==="auto"&&(u.stroke=a.fill),v.stroke==="auto"&&(v.stroke=a.fill),!i){var d=e.get("inactiveBorderWidth"),p=u[c];u.lineWidth=d==="auto"?a.lineWidth>0&&p?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),v.stroke=h.get("inactiveColor"),v.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function A$(r){var e=r.icon||"roundRect",t=lt(e,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return t.setStyle(r.itemStyle),t.rotation=(r.iconRotate||0)*Math.PI/180,t.setOrigin([r.itemWidth/2,r.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill="#fff",t.style.lineWidth=2),t}function Lw(r,e,t,a){Ig(r,e,t,a),t.dispatchAction({type:"legendToggleSelect",name:r??e}),Lg(r,e,t,a)}function YL(r){for(var e=r.getZr().storage.getDisplayList(),t,a=0,n=e.length;a<n&&!(t=e[a].states.emphasis);)a++;return t&&t.hoverLayer}function Lg(r,e,t,a){YL(t)||t.dispatchAction({type:"highlight",seriesName:r,name:e,excludeSeriesId:a})}function Ig(r,e,t,a){YL(t)||t.dispatchAction({type:"downplay",seriesName:r,name:e,excludeSeriesId:a})}function D$(r){var e=r.findComponents({mainType:"legend"});e&&e.length&&r.filterSeries(function(t){for(var a=0;a<e.length;a++)if(!e[a].isSelected(t.name))return!1;return!0})}function ws(r,e,t){var a=r==="allSelect"||r==="inverseSelect",n={},i=[];t.eachComponent({mainType:"legend",query:e},function(s){a?s[r]():s[r](e.name),Iw(s,n),i.push(s.componentIndex)});var o={};return t.eachComponent("legend",function(s){L(n,function(l,u){s[l?"select":"unSelect"](u)}),Iw(s,o)}),a?{selected:o,legendIndex:i}:{name:e.name,selected:o}}function Iw(r,e){var t=e||{};return L(r.getData(),function(a){var n=a.get("name");if(!(n===`
39
- `||n==="")){var i=r.isSelected(n);ee(t,n)?t[n]=t[n]&&i:t[n]=i}}),t}function M$(r){r.registerAction("legendToggleSelect","legendselectchanged",ve(ws,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",ve(ws,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",ve(ws,"inverseSelect")),r.registerAction("legendSelect","legendselected",ve(ws,"select")),r.registerAction("legendUnSelect","legendunselected",ve(ws,"unSelect"))}function XL(r){r.registerComponentModel(Dg),r.registerComponentView(UL),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,D$),r.registerSubTypeDefaulter("legend",function(){return"plain"}),M$(r)}var L$=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(t,a,n){var i=jo(t);r.prototype.init.call(this,t,a,n),Pw(this,t,i)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.call(this,t,a),Pw(this,this.option,t)},e.type="legend.scroll",e.defaultOption=bn(Dg.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:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),e})(Dg);function Pw(r,e,t){var a=r.getOrient(),n=[1,1];n[a.index]=0,gn(e,t,{type:"box",ignoreSize:!!n})}var kw=ue,kd=["width","height"],Rd=["x","y"],I$=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!0,t._currentIndex=0,t}return e.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new kw),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new kw)},e.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(t,a,n,i,o,s,l){var u=this;r.prototype.renderInner.call(this,t,a,n,i,o,s,l);var c=this._controllerGroup,f=a.get("pageIconSize",!0),h=W(f)?f:[f,f];d("pagePrev",0);var v=a.getModel("pageTextStyle");c.add(new Pe({name:"pageText",style:{text:"xx/xx",fill:v.getTextColor(),font:v.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(p,g){var m=p+"DataIndex",y=Bl(a.get("pageIcons",!0)[a.getOrient().name][g],{onclick:Q(u._pageGo,u,m,a,i)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});y.name=p,c.add(y)}},e.prototype.layoutInner=function(t,a,n,i,o,s){var l=this.getSelectorGroup(),u=t.getOrient().index,c=kd[u],f=Rd[u],h=kd[1-u],v=Rd[1-u];o&&gi("horizontal",l,t.get("selectorItemGap",!0));var d=t.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],m=le(n);o&&(m[c]=n[c]-p[c]-d);var y=this._layoutContentAndController(t,i,m,u,c,h,v,f);if(o){if(s==="end")g[u]+=y[c]+d;else{var x=p[c]+d;g[u]-=x,y[f]-=x}y[c]+=p[c]+d,g[1-u]+=y[v]+y[h]/2-p[h]/2,y[h]=Math.max(y[h],p[h]),y[v]=Math.min(y[v],p[v]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return y},e.prototype._layoutContentAndController=function(t,a,n,i,o,s,l,u){var c=this.getContentGroup(),f=this._containerGroup,h=this._controllerGroup;gi(t.get("orient"),c,t.get("itemGap"),i?n.width:null,i?null:n.height),gi("horizontal",h,t.get("pageButtonItemGap",!0));var v=c.getBoundingRect(),d=h.getBoundingRect(),p=this._showController=v[o]>n[o],g=[-v.x,-v.y];a||(g[i]=c[u]);var m=[0,0],y=[-d.x,-d.y],x=fe(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(p){var _=t.get("pageButtonPosition",!0);_==="end"?y[i]+=n[o]-d[o]:m[i]+=d[o]+x}y[1-i]+=v[s]/2-d[s]/2,c.setPosition(g),f.setPosition(m),h.setPosition(y);var b={x:0,y:0};if(b[o]=p?n[o]:v[o],b[s]=Math.max(v[s],d[s]),b[l]=Math.min(0,d[l]+y[1-i]),f.__rectSize=n[o],p){var S={x:0,y:0};S[o]=Math.max(n[o]-d[o]-x,0),S[s]=b[s],f.setClipPath(new Le({shape:S})),f.__rectSize=S[o]}else h.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(t);return w.pageIndex!=null&&Ee(c,{x:w.contentPosition[0],y:w.contentPosition[1]},p?t:null),this._updatePageInfoView(t,w),b},e.prototype._pageGo=function(t,a,n){var i=this._getPageInfo(a)[t];i!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:a.id})},e.prototype._updatePageInfoView=function(t,a){var n=this._controllerGroup;L(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",h=a[f]!=null,v=n.childOfName(c);v&&(v.setStyle("fill",h?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),v.cursor=h?"pointer":"default")});var i=n.childOfName("pageText"),o=t.get("pageFormatter"),s=a.pageIndex,l=s!=null?s+1:0,u=a.pageCount;i&&o&&i.setStyle("text",q(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var a=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,o=t.getOrient().index,s=kd[o],l=Rd[o],u=this._findTargetItemIndex(a),c=n.children(),f=c[u],h=c.length,v=h?1:0,d={contentPosition:[n.x,n.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return d;var p=_(f);d.contentPosition[o]=-p.s;for(var g=u+1,m=p,y=p,x=null;g<=h;++g)x=_(c[g]),(!x&&y.e>m.s+i||x&&!b(x,m.s))&&(y.i>m.i?m=y:m=x,m&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=m.i),++d.pageCount)),y=x;for(var g=u-1,m=p,y=p,x=null;g>=-1;--g)x=_(c[g]),(!x||!b(y,x.s))&&m.i<y.i&&(y=m,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=m.i),++d.pageCount,++d.pageIndex),m=x;return d;function _(S){if(S){var w=S.getBoundingRect(),C=w[l]+S[l];return{s:C,e:C+w[s],i:S.__legendDataIndex}}}function b(S,w){return S.e>=w&&S.s<=w+i}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var a,n=this.getContentGroup(),i;return n.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===t&&(a=s)}),a??i},e.type="legend.scroll",e})(UL);function P$(r){r.registerAction("legendScroll","legendscroll",function(e,t){var a=e.scrollDataIndex;a!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(n){n.setScrollDataIndex(a)})})}function k$(r){Te(XL),r.registerComponentModel(L$),r.registerComponentView(I$),P$(r)}function R$(r){Te(XL),Te(k$)}var E$=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=bn(Al.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e})(Al),Wy=Ie();function N$(r,e,t){Wy(r).coordSysRecordMap.each(function(a){var n=a.dataZoomInfoMap.get(e.uid);n&&(n.getRange=t)})}function O$(r,e){for(var t=Wy(r).coordSysRecordMap,a=t.keys(),n=0;n<a.length;n++){var i=a[n],o=t.get(i),s=o.dataZoomInfoMap;if(s){var l=e.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||ZL(t,o))}}}function ZL(r,e){if(e){r.removeKey(e.model.uid);var t=e.controller;t&&t.dispose()}}function B$(r,e){var t={model:e,containsPoint:ve(V$,e),dispatchAction:ve(z$,r),dataZoomInfoMap:null,controller:null},a=t.controller=new Xl(r.getZr());return L(["pan","zoom","scrollMove"],function(n){a.on(n,function(i){var o=[];t.dataZoomInfoMap.each(function(s){if(i.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[n],u=l&&l(s.dzReferCoordSysInfo,t.model.mainType,t.controller,i);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&t.dispatchAction(o)})}),t}function z$(r,e){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function V$(r,e,t,a){return r.coordinateSystem.containPoint([t,a])}function F$(r){var e,t="type_",a={type_true:2,type_move:1,type_false:0,type_undefined:-1},n=!0;return r.each(function(i){var o=i.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;a[t+s]>a[t+e]&&(e=s),n=n&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!n}}}function G$(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(e,t){var a=Wy(t),n=a.coordSysRecordMap||(a.coordSysRecordMap=re());n.each(function(i){i.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=PL(i);L(o.infoList,function(s){var l=s.model.uid,u=n.get(l)||n.set(l,B$(t,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=re());c.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),n.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){ZL(n,i);return}var c=F$(l);o.enable(c.controlType,c.opt),o.setPointerChecker(i.containsPoint),Uo(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var H$=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,a,n){if(r.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),N$(n,t,{pan:Q(Ed.pan,this),zoom:Q(Ed.zoom,this),scrollMove:Q(Ed.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){O$(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e})(Ny),Ed={zoom:function(r,e,t,a){var n=this.range,i=n.slice(),o=r.axisModels[0];if(o){var s=Nd[e](null,[a.originX,a.originY],o,t,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/a.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Ei(0,i,[0,100],0,c.minSpan,c.maxSpan),this.range=i,n[0]!==i[0]||n[1]!==i[1])return i}},pan:Rw(function(r,e,t,a,n,i){var o=Nd[a]([i.oldX,i.oldY],[i.newX,i.newY],e,n,t);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:Rw(function(r,e,t,a,n,i){var o=Nd[a]([0,0],[i.scrollDelta,i.scrollDelta],e,n,t);return o.signal*(r[1]-r[0])*i.scrollDelta})};function Rw(r){return function(e,t,a,n){var i=this.range,o=i.slice(),s=e.axisModels[0];if(s){var l=r(o,s,e,t,a,n);if(Ei(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var Nd={grid:function(r,e,t,a,n){var i=t.axis,o={},s=n.model.coordinateSystem.getRect();return r=r||[0,0],i.dim==="x"?(o.pixel=e[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(r,e,t,a,n){var i=t.axis,o={},s=n.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(o.pixel=e[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(r,e,t,a,n){var i=t.axis,o=n.model.coordinateSystem.getRect(),s={};return r=r||[0,0],i.orient==="horizontal"?(s.pixel=e[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=e[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};function qL(r){Oy(r),r.registerComponentModel(E$),r.registerComponentView(H$),G$(r)}var j$=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=bn(Al.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e})(Al),Ts=Le,Ew=7,W$=1,Od=30,$$=7,Cs="horizontal",Nw="vertical",U$=5,Y$=["line","bar","candlestick","scatter"],X$={easing:"cubicOut",duration:100,delay:0},Z$=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,a){this.api=a,this._onBrush=Q(this._onBrush,this),this._onBrushEnd=Q(this._onBrushEnd,this)},e.prototype.render=function(t,a,n,i){if(r.prototype.render.apply(this,arguments),Uo(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){vl(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var a=this._displayables.sliderGroup=new ue;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(a),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,a=this.api,n=t.get("brushSelect"),i=n?$$:0,o=this._findCoordRect(),s={width:a.getWidth(),height:a.getHeight()},l=this._orient===Cs?{right:s.width-o.x-o.width,top:s.height-Od-Ew-i,width:o.width,height:Od}:{right:Ew,top:o.y,width:Od,height:o.height},u=jo(t.option);L(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=gt(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===Nw&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,a=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(n===Cs&&!o?{scaleY:l?1:-1,scaleX:1}:n===Cs&&o?{scaleY:l?1:-1,scaleX:-1}:n===Nw&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=t.getBoundingRect([s]);t.x=a.x-u.x,t.y=a.y-u.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,a=this._size,n=this._displayables.sliderGroup,i=t.get("brushSelect");n.add(new Ts({silent:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new Ts({shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:"transparent"},z2:0,onclick:Q(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),n.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var a=this._size,n=this._shadowSize||[],i=t.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():t.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||a[0]!==n[0]||a[1]!==n[1]){var f=o.getDataExtent(l),h=(f[1]-f[0])*.3;f=[f[0]-h,f[1]+h];var v=[0,a[1]],d=[0,a[0]],p=[[a[0],0],[0,0]],g=[],m=d[1]/(o.count()-1),y=0,x=Math.round(o.count()/a[0]),_;o.each([l],function(A,D){if(x>0&&D%x){y+=m;return}var M=A==null||isNaN(A)||A==="",I=M?0:Fe(A,f,v,!0);M&&!_&&D?(p.push([p[p.length-1][0],0]),g.push([g[g.length-1][0],0])):!M&&_&&(p.push([y,0]),g.push([y,0])),p.push([y,I]),g.push([y,I]),y+=m,_=M}),u=this._shadowPolygonPts=p,c=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[a[0],a[1]];var b=this.dataZoomModel;function S(A){var D=b.getModel(A?"selectedDataBackground":"dataBackground"),M=new ue,I=new Xt({shape:{points:u},segmentIgnoreThreshold:1,style:D.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),P=new Zt({shape:{points:c},segmentIgnoreThreshold:1,style:D.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return M.add(I),M.add(P),M}for(var w=0;w<3;w++){var C=S(w===1);this._displayables.sliderGroup.add(C),this._displayables.dataShadowSegs.push(C)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,a=t.get("showDataShadow");if(a!==!1){var n,i=this.ecModel;return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o,s).getTargetSeriesModels();L(l,function(u){if(!n&&!(a!==!0&&_e(Y$,u.get("type"))<0)){var c=i.getComponent(on(o),s).axis,f=q$(o),h,v=u.coordinateSystem;f!=null&&v.getOtherAxis&&(h=v.getOtherAxis(c).inverse),f=u.getData().mapDimension(f),n={thisAxis:c,series:u,thisDim:o,otherDim:f,otherAxisInverse:h}}},this)},this),n}},e.prototype._renderHandle=function(){var t=this.group,a=this._displayables,n=a.handles=[null,null],i=a.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,f=l.get("brushSelect"),h=a.filler=new Ts({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(h),o.add(new Ts({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:W$,fill:"rgba(0,0,0,0)"}})),L([0,1],function(x){var _=l.get("handleIcon");!$c[_]&&_.indexOf("path://")<0&&_.indexOf("image://")<0&&(_="path://"+_);var b=lt(_,-1,0,2,2,null,!0);b.attr({cursor:Ow(this._orient),draggable:!0,drift:Q(this._onDragMove,this,x),ondragend:Q(this._onDragEnd,this),onmouseover:Q(this._showDataInfo,this,!0),onmouseout:Q(this._showDataInfo,this,!1),z2:5});var S=b.getBoundingRect(),w=l.get("handleSize");this._handleHeight=X(w,this._size[1]),this._handleWidth=S.width/S.height*this._handleHeight,b.setStyle(l.getModel("handleStyle").getItemStyle()),b.style.strokeNoScale=!0,b.rectHover=!0,b.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),di(b);var C=l.get("handleColor");C!=null&&(b.style.fill=C),o.add(n[x]=b);var A=l.getModel("textStyle"),D=l.get("handleLabel")||{},M=D.show||!1;t.add(i[x]=new Pe({silent:!0,invisible:!M,style:Xe(A,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:A.getTextColor(),font:A.getFont()}),z2:10}))},this);var v=h;if(f){var d=X(l.get("moveHandleSize"),s[1]),p=a.moveHandle=new Le({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:d}}),g=d*.8,m=a.moveHandleIcon=lt(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);m.silent=!0,m.y=s[1]+d/2-.5,p.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(s[1]/2,Math.max(d,10));v=a.moveZone=new Le({invisible:!0,shape:{y:s[1]-y,height:d+y}}),v.on("mouseover",function(){u.enterEmphasis(p)}).on("mouseout",function(){u.leaveEmphasis(p)}),o.add(p),o.add(m),o.add(v)}v.attr({draggable:!0,cursor:Ow(this._orient),drift:Q(this._onDragMove,this,"all"),ondragstart:Q(this._showDataInfo,this,!0),ondragend:Q(this._onDragEnd,this),onmouseover:Q(this._showDataInfo,this,!0),onmouseout:Q(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),a=this._getViewExtent();this._handleEnds=[Fe(t[0],[0,100],a,!0),Fe(t[1],[0,100],a,!0)]},e.prototype._updateInterval=function(t,a){var n=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=n.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Ei(a,i,o,n.get("zoomLock")?"all":t,s.minSpan!=null?Fe(s.minSpan,l,o,!0):null,s.maxSpan!=null?Fe(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=wr([Fe(i[0],o,l,!0),Fe(i[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},e.prototype._updateView=function(t){var a=this._displayables,n=this._handleEnds,i=wr(n.slice()),o=this._size;L([0,1],function(v){var d=a.handles[v],p=this._handleHeight;d.attr({scaleX:p/2,scaleY:p/2,x:n[v]+(v?-1:1),y:o[1]/2-p/2})},this),a.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};a.moveHandle&&(a.moveHandle.setShape(s),a.moveZone.setShape(s),a.moveZone.getBoundingRect(),a.moveHandleIcon&&a.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=a.dataShadowSegs,u=[0,i[0],i[1],o[0]],c=0;c<l.length;c++){var f=l[c],h=f.getClipPath();h||(h=new Le,f.setClipPath(h)),h.setShape({x:u[c],y:0,width:u[c+1]-u[c],height:o[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var a=this.dataZoomModel,n=this._displayables,i=n.handleLabels,o=this._orient,s=["",""];if(a.get("showDetail")){var l=a.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,c=this._range,f=t?l.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(f[0],u),this._formatLabel(f[1],u)]}}var h=wr(this._handleEnds.slice());v.call(this,0),v.call(this,1);function v(d){var p=pi(n.handles[d].parent,this.group),g=Gf(d===0?"right":"left",p),m=this._handleWidth/2+U$,y=Vr([h[d]+(d===0?-m:m),this._size[1]/2],p);i[d].setStyle({x:y[0],y:y[1],verticalAlign:o===Cs?"middle":g,align:o===Cs?g:"center",text:s[d]})}},e.prototype._formatLabel=function(t,a){var n=this.dataZoomModel,i=n.get("labelFormatter"),o=n.get("labelPrecision");(o==null||o==="auto")&&(o=a.getPixelPrecision());var s=t==null||isNaN(t)?"":a.type==="category"||a.type==="time"?a.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(o,20));return ne(i)?i(t,s):q(i)?i.replace("{value}",s):s},e.prototype._showDataInfo=function(t){var a=this.dataZoomModel.get("handleLabel")||{},n=a.show||!1,i=this.dataZoomModel.getModel(["emphasis","handleLabel"]),o=i.get("show")||!1,s=t||this._dragging?o:n,l=this._displayables,u=l.handleLabels;u[0].attr("invisible",!s),u[1].attr("invisible",!s),l.moveHandle&&this.api[s?"enterEmphasis":"leaveEmphasis"](l.moveHandle,1)},e.prototype._onDragMove=function(t,a,n,i){this._dragging=!0,Da(i.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=Vr([a,n],o,!0),l=this._updateInterval(t,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var t=this.dataZoomModel.get("realtime");!t&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var a=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(n[0]<0||n[0]>a[0]||n[1]<0||n[1]>a[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",n[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var a=t.offsetX,n=t.offsetY;this._brushStart=new ge(a,n),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var a=this._displayables.brushRect;if(this._brushing=!1,!!a){a.attr("ignore",!0);var n=a.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(n.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=wr([Fe(n.x,o,s,!0),Fe(n.x+n.width,o,s,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(Da(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,a){var n=this._displayables,i=this.dataZoomModel,o=n.brushRect;o||(o=n.brushRect=new Ts({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,a),c=l.transformCoordToLocal(s.x,s.y),f=this._size;u[0]=Math.max(Math.min(f[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:f[1]})},e.prototype._dispatchZoomAction=function(t){var a=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?X$:null,start:a[0],end:a[1]})},e.prototype._findCoordRect=function(){var t,a=PL(this.dataZoomModel).infoList;if(!t&&a.length){var n=a[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var i=this.api.getWidth(),o=this.api.getHeight();t={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return t},e.type="dataZoom.slider",e})(Ny);function q$(r){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[r]}function Ow(r){return r==="vertical"?"ns-resize":"ew-resize"}function KL(r){r.registerComponentModel(j$),r.registerComponentView(Z$),Oy(r)}function K$(r){Te(qL),Te(KL)}var JL={get:function(r,e,t){var a=le((J$[r]||{})[e]);return t&&W(a)?a[a.length-1]:a}},J$={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},Bw=_t.mapVisual,Q$=_t.eachVisual,eU=W,zw=L,tU=wr,rU=Fe,gf=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,a){var n=this.option;!a&&GL(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var a=this.stateList;t=Q(t,this),this.controllerVisuals=Tg(this.option.controller,a,t),this.targetVisuals=Tg(this.option.target,a,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,a=[];return t==null||t==="all"?this.ecModel.eachSeries(function(n,i){a.push(i)}):a=je(t),a},e.prototype.eachTargetSeries=function(t,a){L(this.getTargetSeriesIndices(),function(n){var i=this.ecModel.getSeriesByIndex(n);i&&t.call(a,i)},this)},e.prototype.isTargetSeries=function(t){var a=!1;return this.eachTargetSeries(function(n){n===t&&(a=!0)}),a},e.prototype.formatValueText=function(t,a,n){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;n=n||["<",">"],W(t)&&(t=t.slice(),u=!0);var c=a?t:u?[f(t[0]),f(t[1])]:f(t);if(q(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(ne(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?n[0]+" "+c[1]:t[1]===s[1]?n[1]+" "+c[0]:c[0]+" - "+c[1];return c;function f(h){return h===s[0]?"min":h===s[1]?"max":(+h).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,a=tU([t.min,t.max]);this._dataExtent=a},e.prototype.getDataDimensionIndex=function(t){var a=this.option.dimension;if(a!=null)return t.getDimensionIndex(a);for(var n=t.dimensions,i=n.length-1;i>=0;i--){var o=n[i],s=t.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,a=this.option,n={inRange:a.inRange,outOfRange:a.outOfRange},i=a.target||(a.target={}),o=a.controller||(a.controller={});pe(i,n),pe(o,n);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),c.call(this,o);function l(f){eU(a.color)&&!f.inRange&&(f.inRange={color:a.color.slice().reverse()}),f.inRange=f.inRange||{color:t.get("gradientColor")}}function u(f,h,v){var d=f[h],p=f[v];d&&!p&&(p=f[v]={},zw(d,function(g,m){if(_t.isValidType(m)){var y=JL.get(m,"inactive",s);y!=null&&(p[m]=y,m==="color"&&!p.hasOwnProperty("opacity")&&!p.hasOwnProperty("colorAlpha")&&(p.opacity=[0,0]))}}))}function c(f){var h=(f.inRange||{}).symbol||(f.outOfRange||{}).symbol,v=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,d=this.get("inactiveColor"),p=this.getItemSymbol(),g=p||"roundRect";zw(this.stateList,function(m){var y=this.itemSize,x=f[m];x||(x=f[m]={color:s?d:[d]}),x.symbol==null&&(x.symbol=h&&le(h)||(s?g:[g])),x.symbolSize==null&&(x.symbolSize=v&&le(v)||(s?y[0]:[y[0],y[0]])),x.symbol=Bw(x.symbol,function(S){return S==="none"?g:S});var _=x.symbolSize;if(_!=null){var b=-1/0;Q$(_,function(S){S>b&&(b=S)}),x.symbolSize=Bw(_,function(S){return rU(S,[0,b],[0,y[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e})(De),Vw=[20,140],aU=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(n){n.mappingMethod="linear",n.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=Vw[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=Vw[1])},e.prototype._resetRange=function(){var t=this.getExtent(),a=this.option.range;!a||a.auto?(t.auto=1,this.option.range=t):W(a)&&(a[0]>a[1]&&a.reverse(),a[0]=Math.max(a[0],t[0]),a[1]=Math.min(a[1],t[1]))},e.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),L(this.stateList,function(t){var a=this.option.controller[t].symbolSize;a&&a[0]!==a[1]&&(a[0]=a[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),a=wr((this.get("range")||[]).slice());return a[0]>t[1]&&(a[0]=t[1]),a[1]>t[1]&&(a[1]=t[1]),a[0]<t[0]&&(a[0]=t[0]),a[1]<t[0]&&(a[1]=t[0]),a},e.prototype.getValueState=function(t){var a=this.option.range,n=this.getExtent();return(a[0]<=n[0]||a[0]<=t)&&(a[1]>=n[1]||t<=a[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var a=[];return this.eachTargetSeries(function(n){var i=[],o=n.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&i.push(l)},this),a.push({seriesId:n.id,dataIndex:i})},this),a},e.prototype.getVisualMeta=function(t){var a=Fw(this,"outOfRange",this.getExtent()),n=Fw(this,"inRange",this.option.range.slice()),i=[];function o(v,d){i.push({value:v,color:t(v,d)})}for(var s=0,l=0,u=n.length,c=a.length;l<c&&(!n.length||a[l]<=n[0]);l++)a[l]<n[s]&&o(a[l],"outOfRange");for(var f=1;s<u;s++,f=0)f&&i.length&&o(n[s],"outOfRange"),o(n[s],"inRange");for(var f=1;l<c;l++)(!n.length||n[n.length-1]<a[l])&&(f&&(i.length&&o(i[i.length-1].value,"outOfRange"),f=0),o(a[l],"outOfRange"));var h=i.length;return{stops:i,outerColors:[h?i[0].color:"transparent",h?i[h-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=bn(gf.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),e})(gf);function Fw(r,e,t){if(t[0]===t[1])return t.slice();for(var a=200,n=(t[1]-t[0])/a,i=t[0],o=[],s=0;s<=a&&i<t[1];s++)o.push(i),i+=n;return o.push(t[1]),o}var QL=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.autoPositionValues={left:1,right:1,top:1,bottom:1},t}return e.prototype.init=function(t,a){this.ecModel=t,this.api=a},e.prototype.render=function(t,a,n,i){if(this.visualMapModel=t,t.get("show")===!1){this.group.removeAll();return}this.doRender(t,a,n,i)},e.prototype.renderBackground=function(t){var a=this.visualMapModel,n=Ho(a.get("padding")||0),i=t.getBoundingRect();t.add(new Le({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.height+n[0]+n[2]},style:{fill:a.get("backgroundColor"),stroke:a.get("borderColor"),lineWidth:a.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,a,n){n=n||{};var i=n.forceState,o=this.visualMapModel,s={};if(a==="color"){var l=o.get("contentColor");s.color=l}function u(v){return s[v]}function c(v,d){s[v]=d}var f=o.controllerVisuals[i||o.getValueState(t)],h=_t.prepareVisualTypes(f);return L(h,function(v){var d=f[v];n.convertOpacityToAlpha&&v==="opacity"&&(v="colorAlpha",d=f.__alphaForOpacity),_t.dependsOn(v,a)&&d&&d.applyVisual(t,u,c)}),s[a]},e.prototype.positionGroup=function(t){var a=this.visualMapModel,n=this.api;Xf(t,a.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},e.prototype.doRender=function(t,a,n,i){},e.type="visualMap",e})(Qe),Gw=[["left","right","width"],["top","bottom","height"]];function eI(r,e,t){var a=r.option,n=a.align;if(n!=null&&n!=="auto")return n;for(var i={width:e.getWidth(),height:e.getHeight()},o=a.orient==="horizontal"?1:0,s=Gw[o],l=[0,null,10],u={},c=0;c<3;c++)u[Gw[1-o][c]]=l[c],u[s[c]]=c===2?t[0]:a[s[c]];var f=[["x","width",3],["y","height",0]][o],h=gt(u,i,a.padding);return s[(h.margin[f[2]]||0)+h[f[0]]+h[f[1]]*.5<i[f[1]]*.5?0:1]}function Sc(r,e){return L(r||[],function(t){t.dataIndex!=null&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")}),r}var qr=Fe,nU=L,Hw=Math.min,Bd=Math.max,iU=12,oU=6,sU=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._shapes={},t._dataInterval=[],t._handleEnds=[],t._hoverLinkDataIndices=[],t}return e.prototype.init=function(t,a){r.prototype.init.call(this,t,a),this._hoverLinkFromSeriesMouseOver=Q(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=Q(this._hideIndicator,this)},e.prototype.doRender=function(t,a,n,i){(!i||i.type!=="selectDataRange"||i.from!==this.uid)&&this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,a=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(a);var n=t.get("text");this._renderEndsText(a,n,0),this._renderEndsText(a,n,1),this._updateView(!0),this.renderBackground(a),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(a)},e.prototype._renderEndsText=function(t,a,n){if(a){var i=a[1-n];i=i!=null?i+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,c=this._applyTransform([l[0]/2,n===0?-s:l[1]+s],u),f=this._applyTransform(n===0?"bottom":"top",u),h=this._orient,v=this.visualMapModel.textStyleModel;this.group.add(new Pe({style:Xe(v,{x:c[0],y:c[1],verticalAlign:h==="horizontal"?"middle":f,align:h==="horizontal"?f:"center",text:i})}))}},e.prototype._renderBar=function(t){var a=this.visualMapModel,n=this._shapes,i=a.itemSize,o=this._orient,s=this._useHandle,l=eI(a,this.api,i),u=n.mainGroup=this._createBarGroup(l),c=new ue;u.add(c),c.add(n.outOfRange=jw()),c.add(n.inRange=jw(null,s?$w(this._orient):null,Q(this._dragHandle,this,"all",!1),Q(this._dragHandle,this,"all",!0))),c.setClipPath(new Le({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var f=a.textStyleModel.getTextRect("国"),h=Bd(f.width,f.height);s&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(a,u,0,i,h,o),this._createHandle(a,u,1,i,h,o)),this._createIndicator(a,u,i,h,o),t.add(u)},e.prototype._createHandle=function(t,a,n,i,o,s){var l=Q(this._dragHandle,this,n,!1),u=Q(this._dragHandle,this,n,!0),c=Fr(t.get("handleSize"),i[0]),f=lt(t.get("handleIcon"),-c/2,-c/2,c,c,null,!0),h=$w(this._orient);f.attr({cursor:h,draggable:!0,drift:l,ondragend:u,onmousemove:function(m){Da(m.event)}}),f.x=i[0]/2,f.useStyle(t.getModel("handleStyle").getItemStyle()),f.setStyle({strokeNoScale:!0,strokeFirst:!0}),f.style.lineWidth*=2,f.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),ni(f,!0),a.add(f);var v=this.visualMapModel.textStyleModel,d=new Pe({cursor:h,draggable:!0,drift:l,onmousemove:function(m){Da(m.event)},ondragend:u,style:Xe(v,{x:0,y:0,text:""})});d.ensureState("blur").style={opacity:.1},d.stateTransition={duration:200},this.group.add(d);var p=[c,0],g=this._shapes;g.handleThumbs[n]=f,g.handleLabelPoints[n]=p,g.handleLabels[n]=d},e.prototype._createIndicator=function(t,a,n,i,o){var s=Fr(t.get("indicatorSize"),n[0]),l=lt(t.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var u=t.getModel("indicatorStyle").getItemStyle();if(l instanceof At){var c=l.style;l.useStyle(G({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},u))}else l.useStyle(u);a.add(l);var f=this.visualMapModel.textStyleModel,h=new Pe({silent:!0,invisible:!0,style:Xe(f,{x:0,y:0,text:""})});this.group.add(h);var v=[(o==="horizontal"?i/2:oU)+n[0]/2,0],d=this._shapes;d.indicator=l,d.indicatorLabel=h,d.indicatorLabelPoint=v,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,a,n,i){if(this._useHandle){if(this._dragging=!a,!a){var o=this._applyTransform([n,i],this._shapes.mainGroup,!0);this._updateInterval(t,o[1]),this._hideIndicator(),this._updateView()}a===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),a?!this._hovering&&this._clearHoverLinkToSeries():Ww(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,a=this._dataInterval=t.getSelected(),n=t.getExtent(),i=[0,t.itemSize[1]];this._handleEnds=[qr(a[0],n,i,!0),qr(a[1],n,i,!0)]},e.prototype._updateInterval=function(t,a){a=a||0;var n=this.visualMapModel,i=this._handleEnds,o=[0,n.itemSize[1]];Ei(a,i,o,t,0);var s=n.getExtent();this._dataInterval=[qr(i[0],o,s,!0),qr(i[1],o,s,!0)]},e.prototype._updateView=function(t){var a=this.visualMapModel,n=a.getExtent(),i=this._shapes,o=[0,a.itemSize[1]],s=t?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,n,s,"inRange"),u=this._createBarVisual(n,n,o,"outOfRange");i.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),i.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},e.prototype._createBarVisual=function(t,a,n,i){var o={forceState:i,convertOpacityToAlpha:!0},s=this._makeColorGradient(t,o),l=[this.getControllerVisual(t[0],"symbolSize",o),this.getControllerVisual(t[1],"symbolSize",o)],u=this._createBarPoints(n,l);return{barColor:new Nl(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},e.prototype._makeColorGradient=function(t,a){var n=100,i=[],o=(t[1]-t[0])/n;i.push({color:this.getControllerVisual(t[0],"color",a),offset:0});for(var s=1;s<n;s++){var l=t[0]+o*s;if(l>t[1])break;i.push({color:this.getControllerVisual(l,"color",a),offset:s/n})}return i.push({color:this.getControllerVisual(t[1],"color",a),offset:1}),i},e.prototype._createBarPoints=function(t,a){var n=this.visualMapModel.itemSize;return[[n[0]-a[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-a[1],t[1]]]},e.prototype._createBarGroup=function(t){var a=this._orient,n=this.visualMapModel.get("inverse");return new ue(a==="horizontal"&&!n?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:a==="horizontal"&&n?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:a==="vertical"&&!n?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,a){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,o=n.handleThumbs,s=n.handleLabels,l=i.itemSize,u=i.getExtent(),c=this._applyTransform("left",n.mainGroup);nU([0,1],function(f){var h=o[f];h.setStyle("fill",a.handlesColor[f]),h.y=t[f];var v=qr(t[f],[0,l[1]],u,!0),d=this.getControllerVisual(v,"symbolSize");h.scaleX=h.scaleY=d/l[0],h.x=l[0]-d/2;var p=Vr(n.handleLabelPoints[f],pi(h,this.group));if(this._orient==="horizontal"){var g=c==="left"||c==="top"?(l[0]-d)/2:(l[0]-d)/-2;p[1]+=g}s[f].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[f]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",n.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,a,n,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,f=c.indicator;if(f){f.attr("invisible",!1);var h={convertOpacityToAlpha:!0},v=this.getControllerVisual(t,"color",h),d=this.getControllerVisual(t,"symbolSize"),p=qr(t,s,u,!0),g=l[0]-d/2,m={x:f.x,y:f.y};f.y=p,f.x=g;var y=Vr(c.indicatorLabelPoint,pi(f,this.group)),x=c.indicatorLabel;x.attr("invisible",!1);var _=this._applyTransform("left",c.mainGroup),b=this._orient,S=b==="horizontal";x.setStyle({text:(n||"")+o.formatValueText(a),verticalAlign:S?_:"middle",align:S?"center":_});var w={x:g,y:p,style:{fill:v}},C={style:{x:y[0],y:y[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var A={duration:100,easing:"cubicInOut",additive:!0};f.x=m.x,f.y=m.y,f.animateTo(w,A),x.animateTo(C,A)}else f.attr(w),x.attr(C);this._firstShowIndicator=!1;var D=this._shapes.handleLabels;if(D)for(var M=0;M<D.length;M++)this.api.enterBlur(D[M])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",function(a){if(t._hovering=!0,!t._dragging){var n=t.visualMapModel.itemSize,i=t._applyTransform([a.offsetX,a.offsetY],t._shapes.mainGroup,!0,!0);i[1]=Hw(Bd(0,i[1]),n[1]),t._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[0])}}).on("mouseout",function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()})},e.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(t,a){var n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var o=[0,i[1]],s=n.getExtent();t=Hw(Bd(o[0],t),o[1]);var l=lU(n,s,o),u=[t-l,t+l],c=qr(t,o,s,!0),f=[qr(u[0],o,s,!0),qr(u[1],o,s,!0)];u[0]<o[0]&&(f[0]=-1/0),u[1]>o[1]&&(f[1]=1/0),a&&(f[0]===-1/0?this._showIndicator(c,f[1],"< ",l):f[1]===1/0?this._showIndicator(c,f[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var h=this._hoverLinkDataIndices,v=[];(a||Ww(n))&&(v=this._hoverLinkDataIndices=n.findTargetDataIndices(f));var d=d3(h,v);this._dispatchHighDown("downplay",Sc(d[0],n)),this._dispatchHighDown("highlight",Sc(d[1],n))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var a;if(oi(t.target,function(l){var u=ce(l);if(u.dataIndex!=null)return a=u,!0},!0),!!a){var n=this.ecModel.getSeriesByIndex(a.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(n)){var o=n.getData(a.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),a.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var a=this._shapes.handleLabels;if(a)for(var n=0;n<a.length;n++)this.api.leaveBlur(a[n])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",Sc(t,this.visualMapModel)),t.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(t,a,n,i){var o=pi(a,i?null:this.group);return W(t)?Vr(t,o,n):Gf(t,o,n)},e.prototype._dispatchHighDown=function(t,a){a&&a.length&&this.api.dispatchAction({type:t,batch:a})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e})(QL);function jw(r,e,t,a){return new Xt({shape:{points:r},draggable:!!t,cursor:e,drift:t,onmousemove:function(n){Da(n.event)},ondragend:a})}function lU(r,e,t){var a=iU/2,n=r.get("hoverLinkDataSize");return n&&(a=qr(n,e,t,!0)/2),a}function Ww(r){var e=r.get("hoverLinkOnHandle");return!!(e??r.get("realtime"))}function $w(r){return r==="vertical"?"ns-resize":"ew-resize"}var uU={type:"selectDataRange",event:"dataRangeSelected",update:"update"},cU=function(r,e){e.eachComponent({mainType:"visualMap",query:r},function(t){t.setSelected(r.selected)})},fU=[{createOnAllSeries:!0,reset:function(r,e){var t=[];return e.eachComponent("visualMap",function(a){var n=r.pipelineContext;!a.isTargetSeries(r)||n&&n.large||t.push(RW(a.stateList,a.targetVisuals,Q(a.getValueState,a),a.getDataDimensionIndex(r.getData())))}),t}},{createOnAllSeries:!0,reset:function(r,e){var t=r.getData(),a=[];e.eachComponent("visualMap",function(n){if(n.isTargetSeries(r)){var i=n.getVisualMeta(Q(hU,null,r,n))||{stops:[],outerColors:[]},o=n.getDataDimensionIndex(t);o>=0&&(i.dimension=o,a.push(i))}}),r.getData().setVisual("visualMeta",a)}}];function hU(r,e,t,a){for(var n=e.targetVisuals[a],i=_t.prepareVisualTypes(n),o={color:Vl(r.getData(),"color")},s=0,l=i.length;s<l;s++){var u=i[s],c=n[u==="opacity"?"__alphaForOpacity":u];c&&c.applyVisual(t,f,h)}return o.color;function f(v){return o[v]}function h(v,d){o[v]=d}}var Uw=L;function vU(r){var e=r&&r.visualMap;W(e)||(e=e?[e]:[]),Uw(e,function(t){if(t){ro(t,"splitList")&&!ro(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var a=t.pieces;a&&W(a)&&Uw(a,function(n){se(n)&&(ro(n,"start")&&!ro(n,"min")&&(n.min=n.start),ro(n,"end")&&!ro(n,"max")&&(n.max=n.end))})}})}function ro(r,e){return r&&r.hasOwnProperty&&r.hasOwnProperty(e)}var Yw=!1;function tI(r){Yw||(Yw=!0,r.registerSubTypeDefaulter("visualMap",function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),r.registerAction(uU,cU),L(fU,function(e){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,e)}),r.registerPreprocessor(vU))}function rI(r){r.registerComponentModel(aU),r.registerComponentView(sU),tI(r)}var dU=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var n=this._mode=this._determineMode();this._pieceList=[],pU[this._mode].call(this,this._pieceList),this._resetSelected(t,a);var i=this.option.categories;this.resetVisual(function(o,s){n==="categories"?(o.mappingMethod="category",o.categories=le(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=U(this._pieceList,function(l){return l=le(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,a={},n=_t.listVisualTypes(),i=this.isCategory();L(t.pieces,function(s){L(n,function(l){s.hasOwnProperty(l)&&(a[l]=1)})}),L(a,function(s,l){var u=!1;L(this.stateList,function(c){u=u||o(t,c,l)||o(t.target,c,l)},this),!u&&L(this.stateList,function(c){(t[c]||(t[c]={}))[l]=JL.get(l,c==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,a){var n=this.option,i=this._pieceList,o=(a?n:t).selected||{};if(n.selected=o,L(i,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),n.selectedMode==="single"){var s=!1;L(i,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=le(t)},e.prototype.getValueState=function(t){var a=_t.findPieceIndex(t,this._pieceList);return a!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[a])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var a=[],n=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=_t.findPieceIndex(l,n);c===t&&o.push(u)},this),a.push({seriesId:i.id,dataIndex:o})},this),a},e.prototype.getRepresentValue=function(t){var a;if(this.isCategory())a=t.value;else if(t.value!=null)a=t.value;else{var n=t.interval||[];a=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return a},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var a=[],n=["",""],i=this;function o(c,f){var h=i.getRepresentValue({interval:c});f||(f=i.getValueState(h));var v=t(h,f);c[0]===-1/0?n[0]=v:c[1]===1/0?n[1]=v:a.push({value:c[0],color:v},{value:c[1],color:v})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return L(s,function(c){var f=c.interval;f&&(f[0]>u&&o([u,f[0]],"outOfRange"),o(f.slice()),u=f[1])},this),{stops:a,outerColors:n}},e.type="visualMap.piecewise",e.defaultOption=bn(gf.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e})(gf),pU={splitNumber:function(r){var e=this.option,t=Math.min(e.precision,20),a=this.getExtent(),n=e.splitNumber;n=Math.max(parseInt(n,10),1),e.splitNumber=n;for(var i=(a[1]-a[0])/n;+i.toFixed(t)!==i&&t<5;)t++;e.precision=t,i=+i.toFixed(t),e.minOpen&&r.push({interval:[-1/0,a[0]],close:[0,0]});for(var o=0,s=a[0];o<n;s+=i,o++){var l=o===n-1?a[1]:s+i;r.push({interval:[s,l],close:[1,1]})}e.maxOpen&&r.push({interval:[a[1],1/0],close:[0,0]}),F0(r),L(r,function(u,c){u.index=c,u.text=this.formatValueText(u.interval)},this)},categories:function(r){var e=this.option;L(e.categories,function(t){r.push({text:this.formatValueText(t,!0),value:t})},this),Xw(e,r)},pieces:function(r){var e=this.option;L(e.pieces,function(t,a){se(t)||(t={value:t});var n={text:"",index:a};if(t.label!=null&&(n.text=t.label),t.hasOwnProperty("value")){var i=n.value=t.value;n.interval=[i,i],n.close=[1,1]}else{for(var o=n.interval=[],s=n.close=[0,0],l=[1,0,1],u=[-1/0,1/0],c=[],f=0;f<2;f++){for(var h=[["gte","gt","min"],["lte","lt","max"]][f],v=0;v<3&&o[f]==null;v++)o[f]=t[h[v]],s[f]=l[v],c[f]=v===2;o[f]==null&&(o[f]=u[f])}c[0]&&o[1]===1/0&&(s[0]=0),c[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(n.value=o[0])}n.visual=_t.retrieveVisuals(t),r.push(n)},this),Xw(e,r),F0(r),L(r,function(t){var a=t.close,n=[["<","≤"][a[1]],[">","≥"][a[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,n)},this)}};function Xw(r,e){var t=r.inverse;(r.orient==="vertical"?!t:t)&&e.reverse()}var gU=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var a=this.visualMapModel,n=a.get("textGap"),i=a.textStyleModel,o=i.getFont(),s=i.getTextColor(),l=this._getItemAlign(),u=a.itemSize,c=this._getViewData(),f=c.endsText,h=Ct(a.get("showLabel",!0),!f),v=!a.get("selectedMode");f&&this._renderEndsText(t,f[0],u,h,l),L(c.viewPieceList,function(d){var p=d.piece,g=new ue;g.onclick=Q(this._onItemClick,this,p),this._enableHoverLink(g,d.indexInModelPieceList);var m=a.getRepresentValue(p);if(this._createItemSymbol(g,m,[0,0,u[0],u[1]],v),h){var y=this.visualMapModel.getValueState(m);g.add(new Pe({style:{x:l==="right"?-n:u[0]+n,y:u[1]/2,text:p.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:y==="outOfRange"?.5:1},silent:v}))}t.add(g)},this),f&&this._renderEndsText(t,f[1],u,h,l),gi(a.get("orient"),t,a.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,a){var n=this;t.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=n.visualMapModel;s.option.hoverLink&&n.api.dispatchAction({type:o,batch:Sc(s.findTargetDataIndices(a),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,a=t.option;if(a.orient==="vertical")return eI(t,this.api,t.itemSize);var n=a.align;return(!n||n==="auto")&&(n="left"),n},e.prototype._renderEndsText=function(t,a,n,i,o){if(a){var s=new ue,l=this.visualMapModel.textStyleModel;s.add(new Pe({style:Xe(l,{x:i?o==="right"?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?o:"center",text:a})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,a=U(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),n=t.get("text"),i=t.get("orient"),o=t.get("inverse");return(i==="horizontal"?o:!o)?a.reverse():n&&(n=n.slice().reverse()),{viewPieceList:a,endsText:n}},e.prototype._createItemSymbol=function(t,a,n,i){var o=lt(this.getControllerVisual(a,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(a,"color"));o.silent=i,t.add(o)},e.prototype._onItemClick=function(t){var a=this.visualMapModel,n=a.option,i=n.selectedMode;if(i){var o=le(n.selected),s=a.getSelectedMapKey(t);i==="single"||i===!0?(o[s]=!0,L(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e})(QL);function aI(r){r.registerComponentModel(dU),r.registerComponentView(gU),tI(r)}function mU(r){Te(rI),Te(aI)}var yU={label:{enabled:!0},decal:{show:!1}},Zw=Ie(),xU={};function _U(r,e){var t=r.getModel("aria");if(!t.get("enabled"))return;var a=le(yU);pe(a.label,r.getLocaleModel().get("aria"),!1),pe(t.option,a,!1),n(),i();function n(){var u=t.getModel("decal"),c=u.get("show");if(c){var f=re();r.eachSeries(function(h){if(!h.isColorBySeries()){var v=f.get(h.type);v||(v={},f.set(h.type,v)),Zw(h).scope=v}}),r.eachRawSeries(function(h){if(r.isSeriesFiltered(h))return;if(ne(h.enableAriaDecal)){h.enableAriaDecal();return}var v=h.getData();if(h.isColorBySeries()){var y=Ip(h.ecModel,h.name,xU,r.getSeriesCount()),x=v.getVisual("decal");v.setVisual("decal",_(x,y))}else{var d=h.getRawData(),p={},g=Zw(h).scope;v.each(function(b){var S=v.getRawIndex(b);p[S]=b});var m=d.count();d.each(function(b){var S=p[b],w=d.getName(b)||b+"",C=Ip(h.ecModel,w,g,m),A=v.getItemVisual(S,"decal");v.setItemVisual(S,"decal",_(A,C))})}function _(b,S){var w=b?G(G({},S),b):S;return w.dirty=!0,w}})}}function i(){var u=e.getZr().dom;if(u){var c=r.getLocaleModel().get("aria"),f=t.getModel("label");if(f.option=ie(f.option,c),!!f.get("enabled")){if(u.setAttribute("role","img"),f.get("description")){u.setAttribute("aria-label",f.get("description"));return}var h=r.getSeriesCount(),v=f.get(["data","maxCount"])||10,d=f.get(["series","maxCount"])||10,p=Math.min(h,d),g;if(!(h<1)){var m=s();if(m){var y=f.get(["general","withTitle"]);g=o(y,{title:m})}else g=f.get(["general","withoutTitle"]);var x=[],_=h>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);g+=o(_,{seriesCount:h}),r.eachSeries(function(C,A){if(A<p){var D=void 0,M=C.get("name"),I=M?"withName":"withoutName";D=h>1?f.get(["series","multiple",I]):f.get(["series","single",I]),D=o(D,{seriesId:C.seriesIndex,seriesName:C.get("name"),seriesType:l(C.subType)});var P=C.getData();if(P.count()>v){var k=f.get(["data","partialData"]);D+=o(k,{displayCnt:v})}else D+=f.get(["data","allData"]);for(var R=f.get(["data","separator","middle"]),E=f.get(["data","separator","end"]),B=f.get(["data","excludeDimensionId"]),O=[],V=0;V<P.count();V++)if(V<v){var F=P.getName(V),H=B?ze(P.getValues(V),function(Z,J){return _e(B,J)===-1}):P.getValues(V),Y=f.get(["data",F?"withName":"withoutName"]);O.push(o(Y,{name:F,value:H.join(R)}))}D+=O.join(R)+E,x.push(D)}});var b=f.getModel(["series","multiple","separator"]),S=b.get("middle"),w=b.get("end");g+=x.join(S)+w,u.setAttribute("aria-label",g)}}}}function o(u,c){if(!q(u))return u;var f=u;return L(c,function(h,v){f=f.replace(new RegExp("\\{\\s*"+v+"\\s*\\}","g"),h)}),f}function s(){var u=r.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){var c=r.getLocaleModel().get(["series","typeNames"]);return c[u]||c.chart}}function bU(r){if(!(!r||!r.aria)){var e=r.aria;e.show!=null&&(e.enabled=e.show),e.label=e.label||{},L(["description","general","series","data"],function(t){e[t]!=null&&(e.label[t]=e[t])})}}function SU(r){r.registerPreprocessor(bU),r.registerVisual(r.PRIORITY.VISUAL.ARIA,_U)}var qw={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},wU=(function(){function r(e){var t=this._condVal=q(e)?new RegExp(e):E5(e)?e:null;if(t==null){var a="";Be(a)}}return r.prototype.evaluate=function(e){var t=typeof e;return q(t)?this._condVal.test(e):ke(t)?this._condVal.test(e+""):!1},r})(),TU=(function(){function r(){}return r.prototype.evaluate=function(){return this.value},r})(),CU=(function(){function r(){}return r.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},r})(),AU=(function(){function r(){}return r.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},r})(),DU=(function(){function r(){}return r.prototype.evaluate=function(){return!this.child.evaluate()},r})(),MU=(function(){function r(){}return r.prototype.evaluate=function(){for(var e=!!this.valueParser,t=this.getValue,a=t(this.valueGetterParam),n=e?this.valueParser(a):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(e?n:a))return!1;return!0},r})();function $y(r,e){if(r===!0||r===!1){var t=new TU;return t.value=r,t}var a="";return nI(r)||Be(a),r.and?Kw("and",r,e):r.or?Kw("or",r,e):r.not?LU(r,e):IU(r,e)}function Kw(r,e,t){var a=e[r],n="";W(a)||Be(n),a.length||Be(n);var i=r==="and"?new CU:new AU;return i.children=U(a,function(o){return $y(o,t)}),i.children.length||Be(n),i}function LU(r,e){var t=r.not,a="";nI(t)||Be(a);var n=new DU;return n.child=$y(t,e),n.child||Be(a),n}function IU(r,e){for(var t="",a=e.prepareGetValue(r),n=[],i=Me(r),o=r.parser,s=o?VC(o):null,l=0;l<i.length;l++){var u=i[l];if(!(u==="parser"||e.valueGetterAttrMap.get(u))){var c=ee(qw,u)?qw[u]:u,f=r[u],h=s?s(f):f,v=mN(c,h)||c==="reg"&&new wU(h);v||Be(t),n.push(v)}}n.length||Be(t);var d=new MU;return d.valueGetterParam=a,d.valueParser=s,d.getValue=e.getValue,d.subCondList=n,d}function nI(r){return se(r)&&!Ot(r)}var PU=(function(){function r(e,t){this._cond=$y(e,t)}return r.prototype.evaluate=function(){return this._cond.evaluate()},r})();function kU(r,e){return new PU(r,e)}var RU={type:"echarts:filter",transform:function(r){for(var e=r.upstream,t,a=kU(r.config,{valueGetterAttrMap:re({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;ee(s,"dimension")||Be(l);var c=e.getDimensionInfo(u);return c||Be(l),{dimIdx:c.index}},getValue:function(s){return e.retrieveValueFromItem(t,s.dimIdx)}}),n=[],i=0,o=e.count();i<o;i++)t=e.getRawDataItem(i),a.evaluate()&&n.push(t);return{data:n}}},EU={type:"echarts:sort",transform:function(r){var e=r.upstream,t=r.config,a="",n=je(t);n.length||Be(a);var i=[];L(n,function(c){var f=c.dimension,h=c.order,v=c.parser,d=c.incomparable;if(f==null&&Be(a),h!=="asc"&&h!=="desc"&&Be(a),d&&d!=="min"&&d!=="max"){var p="";Be(p)}if(h!=="asc"&&h!=="desc"){var g="";Be(g)}var m=e.getDimensionInfo(f);m||Be(a);var y=v?VC(v):null;v&&!y&&Be(a),i.push({dimIdx:m.index,parser:y,comparator:new GC(h,d)})});var o=e.sourceFormat;o!==Bt&&o!==Mr&&Be(a);for(var s=[],l=0,u=e.count();l<u;l++)s.push(e.getRawDataItem(l));return s.sort(function(c,f){for(var h=0;h<i.length;h++){var v=i[h],d=e.retrieveValueFromItem(c,v.dimIdx),p=e.retrieveValueFromItem(f,v.dimIdx);v.parser&&(d=v.parser(d),p=v.parser(p));var g=v.comparator.evaluate(d,p);if(g!==0)return g}return 0}),{data:s}}};function NU(r){r.registerTransform(RU),r.registerTransform(EU)}var OU=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.prototype.init=function(t,a,n){r.prototype.init.call(this,t,a,n),this._sourceManager=new $C(this),J1(this)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.call(this,t,a),J1(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:oa},e})(De),BU=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.type="dataset",e})(Qe);function zU(r){r.registerComponentModel(OU),r.registerComponentView(BU)}var Xr=fa.CMD;function po(r,e){return Math.abs(r-e)<1e-5}function Pg(r){var e=r.data,t=r.len(),a=[],n,i=0,o=0,s=0,l=0;function u(P,k){n&&n.length>2&&a.push(n),n=[P,k]}function c(P,k,R,E){po(P,R)&&po(k,E)||n.push(P,k,R,E,R,E)}function f(P,k,R,E,B,O){var V=Math.abs(k-P),F=Math.tan(V/4)*4/3,H=k<P?-1:1,Y=Math.cos(P),Z=Math.sin(P),J=Math.cos(k),te=Math.sin(k),xe=Y*B+R,de=Z*O+E,oe=J*B+R,ae=te*O+E,$=B*F*H,j=O*F*H;n.push(xe-$*Z,de+j*Y,oe+$*te,ae-j*J,oe,ae)}for(var h,v,d,p,g=0;g<t;){var m=e[g++],y=g===1;switch(y&&(i=e[g],o=e[g+1],s=i,l=o,(m===Xr.L||m===Xr.C||m===Xr.Q)&&(n=[s,l])),m){case Xr.M:i=s=e[g++],o=l=e[g++],u(s,l);break;case Xr.L:h=e[g++],v=e[g++],c(i,o,h,v),i=h,o=v;break;case Xr.C:n.push(e[g++],e[g++],e[g++],e[g++],i=e[g++],o=e[g++]);break;case Xr.Q:h=e[g++],v=e[g++],d=e[g++],p=e[g++],n.push(i+2/3*(h-i),o+2/3*(v-o),d+2/3*(h-d),p+2/3*(v-p),d,p),i=d,o=p;break;case Xr.A:var x=e[g++],_=e[g++],b=e[g++],S=e[g++],w=e[g++],C=e[g++]+w;g+=1;var A=!e[g++];h=Math.cos(w)*b+x,v=Math.sin(w)*S+_,y?(s=h,l=v,u(s,l)):c(i,o,h,v),i=Math.cos(C)*b+x,o=Math.sin(C)*S+_;for(var D=(A?-1:1)*Math.PI/2,M=w;A?M>C:M<C;M+=D){var I=A?Math.max(M+D,C):Math.min(M+D,C);f(M,I,x,_,b,S)}break;case Xr.R:s=i=e[g++],l=o=e[g++],h=s+e[g++],v=l+e[g++],u(h,l),c(h,l,h,v),c(h,v,s,v),c(s,v,s,l),c(s,l,h,l);break;case Xr.Z:n&&c(i,o,s,l),i=s,o=l;break}}return n&&n.length>2&&a.push(n),a}function kg(r,e,t,a,n,i,o,s,l,u){if(po(r,t)&&po(e,a)&&po(n,o)&&po(i,s)){l.push(o,s);return}var c=2/u,f=c*c,h=o-r,v=s-e,d=Math.sqrt(h*h+v*v);h/=d,v/=d;var p=t-r,g=a-e,m=n-o,y=i-s,x=p*p+g*g,_=m*m+y*y;if(x<f&&_<f){l.push(o,s);return}var b=h*p+v*g,S=-h*m-v*y,w=x-b*b,C=_-S*S;if(w<f&&b>=0&&C<f&&S>=0){l.push(o,s);return}var A=[],D=[];dn(r,t,n,o,.5,A),dn(e,a,i,s,.5,D),kg(A[0],D[0],A[1],D[1],A[2],D[2],A[3],D[3],l,u),kg(A[4],D[4],A[5],D[5],A[6],D[6],A[7],D[7],l,u)}function VU(r,e){var t=Pg(r),a=[];e=e||1;for(var n=0;n<t.length;n++){var i=t[n],o=[],s=i[0],l=i[1];o.push(s,l);for(var u=2;u<i.length;){var c=i[u++],f=i[u++],h=i[u++],v=i[u++],d=i[u++],p=i[u++];kg(s,l,c,f,h,v,d,p,o,e),s=d,l=p}a.push(o)}return a}function iI(r,e,t){var a=r[e],n=r[1-e],i=Math.abs(a/n),o=Math.ceil(Math.sqrt(i*t)),s=Math.floor(t/o);s===0&&(s=1,o=t);for(var l=[],u=0;u<o;u++)l.push(s);var c=o*s,f=t-c;if(f>0)for(var u=0;u<f;u++)l[u%o]+=1;return l}function Jw(r,e,t){for(var a=r.r0,n=r.r,i=r.startAngle,o=r.endAngle,s=Math.abs(o-i),l=s*n,u=n-a,c=l>Math.abs(u),f=iI([l,u],c?0:1,e),h=(c?s:u)/f.length,v=0;v<f.length;v++)for(var d=(c?u:s)/f[v],p=0;p<f[v];p++){var g={};c?(g.startAngle=i+h*v,g.endAngle=i+h*(v+1),g.r0=a+d*p,g.r=a+d*(p+1)):(g.startAngle=i+d*p,g.endAngle=i+d*(p+1),g.r0=a+h*v,g.r=a+h*(v+1)),g.clockwise=r.clockwise,g.cx=r.cx,g.cy=r.cy,t.push(g)}}function FU(r,e,t){for(var a=r.width,n=r.height,i=a>n,o=iI([a,n],i?0:1,e),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",c=i?"y":"x",f=r[s]/o.length,h=0;h<o.length;h++)for(var v=r[l]/o[h],d=0;d<o[h];d++){var p={};p[u]=h*f,p[c]=d*v,p[s]=f,p[l]=v,p.x+=r.x,p.y+=r.y,t.push(p)}}function Qw(r,e,t,a){return r*a-t*e}function GU(r,e,t,a,n,i,o,s){var l=t-r,u=a-e,c=o-n,f=s-i,h=Qw(c,f,l,u);if(Math.abs(h)<1e-6)return null;var v=r-n,d=e-i,p=Qw(v,d,c,f)/h;return p<0||p>1?null:new ge(p*l+r,p*u+e)}function HU(r,e,t){var a=new ge;ge.sub(a,t,e),a.normalize();var n=new ge;ge.sub(n,r,e);var i=n.dot(a);return i}function ao(r,e){var t=r[r.length-1];t&&t[0]===e[0]&&t[1]===e[1]||r.push(e)}function jU(r,e,t){for(var a=r.length,n=[],i=0;i<a;i++){var o=r[i],s=r[(i+1)%a],l=GU(o[0],o[1],s[0],s[1],e.x,e.y,t.x,t.y);l&&n.push({projPt:HU(l,e,t),pt:l,idx:i})}if(n.length<2)return[{points:r},{points:r}];n.sort(function(g,m){return g.projPt-m.projPt});var u=n[0],c=n[n.length-1];if(c.idx<u.idx){var f=u;u=c,c=f}for(var h=[u.pt.x,u.pt.y],v=[c.pt.x,c.pt.y],d=[h],p=[v],i=u.idx+1;i<=c.idx;i++)ao(d,r[i].slice());ao(d,v),ao(d,h);for(var i=c.idx+1;i<=u.idx+a;i++)ao(p,r[i%a].slice());return ao(p,h),ao(p,v),[{points:d},{points:p}]}function e2(r){var e=r.points,t=[],a=[];Nf(e,t,a);var n=new ye(t[0],t[1],a[0]-t[0],a[1]-t[1]),i=n.width,o=n.height,s=n.x,l=n.y,u=new ge,c=new ge;return i>o?(u.x=c.x=s+i/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+i),jU(e,u,c)}function mf(r,e,t,a){if(t===1)a.push(e);else{var n=Math.floor(t/2),i=r(e);mf(r,i[0],n,a),mf(r,i[1],t-n,a)}return a}function WU(r,e){for(var t=[],a=0;a<e;a++)t.push(um(r));return t}function $U(r,e){e.setStyle(r.style),e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel}function UU(r){for(var e=[],t=0;t<r.length;)e.push([r[t++],r[t++]]);return e}function YU(r,e){var t=[],a=r.shape,n;switch(r.type){case"rect":FU(a,e,t),n=Le;break;case"sector":Jw(a,e,t),n=Yt;break;case"circle":Jw({r0:0,r:a.r,startAngle:0,endAngle:Math.PI*2,cx:a.cx,cy:a.cy},e,t),n=Yt;break;default:var i=r.getComputedTransform(),o=i?Math.sqrt(Math.max(i[0]*i[0]+i[1]*i[1],i[2]*i[2]+i[3]*i[3])):1,s=U(VU(r.getUpdatedPathProxy(),o),function(m){return UU(m)}),l=s.length;if(l===0)mf(e2,{points:s[0]},e,t);else if(l===e)for(var u=0;u<l;u++)t.push({points:s[u]});else{var c=0,f=U(s,function(m){var y=[],x=[];Nf(m,y,x);var _=(x[1]-y[1])*(x[0]-y[0]);return c+=_,{poly:m,area:_}});f.sort(function(m,y){return y.area-m.area});for(var h=e,u=0;u<l;u++){var v=f[u];if(h<=0)break;var d=u===l-1?h:Math.ceil(v.area/c*e);d<0||(mf(e2,{points:v.poly},d,t),h-=d)}}n=Xt;break}if(!n)return WU(r,e);for(var p=[],u=0;u<t.length;u++){var g=new n;g.setShape(t[u]),$U(r,g),p.push(g)}return p}function XU(r,e){var t=r.length,a=e.length;if(t===a)return[r,e];for(var n=[],i=[],o=t<a?r:e,s=Math.min(t,a),l=Math.abs(a-t)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,f=[o[0],o[1]],h=l,v=2;v<s;){var d=o[v-2],p=o[v-1],g=o[v++],m=o[v++],y=o[v++],x=o[v++],_=o[v++],b=o[v++];if(h<=0){f.push(g,m,y,x,_,b);continue}for(var S=Math.min(h,c-1)+1,w=1;w<=S;w++){var C=w/S;dn(d,g,y,_,C,n),dn(p,m,x,b,C,i),d=n[3],p=i[3],f.push(n[1],i[1],n[2],i[2],d,p),g=n[5],m=i[5],y=n[6],x=i[6]}h-=S-1}return o===r?[f,e]:[r,f]}function t2(r,e){for(var t=r.length,a=r[t-2],n=r[t-1],i=[],o=0;o<e.length;)i[o++]=a,i[o++]=n;return i}function ZU(r,e){for(var t,a,n,i=[],o=[],s=0;s<Math.max(r.length,e.length);s++){var l=r[s],u=e[s],c=void 0,f=void 0;l?u?(t=XU(l,u),c=t[0],f=t[1],a=c,n=f):(f=t2(n||l,l),c=l):(c=t2(a||u,u),f=u),i.push(c),o.push(f)}return[i,o]}function r2(r){for(var e=0,t=0,a=0,n=r.length,i=0,o=n-2;i<n;o=i,i+=2){var s=r[o],l=r[o+1],u=r[i],c=r[i+1],f=s*c-u*l;e+=f,t+=(s+u)*f,a+=(l+c)*f}return e===0?[r[0]||0,r[1]||0]:[t/e/3,a/e/3,e]}function qU(r,e,t,a){for(var n=(r.length-2)/6,i=1/0,o=0,s=r.length,l=s-2,u=0;u<n;u++){for(var c=u*6,f=0,h=0;h<s;h+=2){var v=h===0?c:(c+h-2)%l+2,d=r[v]-t[0],p=r[v+1]-t[1],g=e[h]-a[0],m=e[h+1]-a[1],y=g-d,x=m-p;f+=y*y+x*x}f<i&&(i=f,o=u)}return o}function KU(r){for(var e=[],t=r.length,a=0;a<t;a+=2)e[a]=r[t-a-2],e[a+1]=r[t-a-1];return e}function JU(r,e,t,a){for(var n=[],i,o=0;o<r.length;o++){var s=r[o],l=e[o],u=r2(s),c=r2(l);i==null&&(i=u[2]<0!=c[2]<0);var f=[],h=[],v=0,d=1/0,p=[],g=s.length;i&&(s=KU(s));for(var m=qU(s,l,u,c)*6,y=g-2,x=0;x<y;x+=2){var _=(m+x)%y+2;f[x+2]=s[_]-u[0],f[x+3]=s[_+1]-u[1]}f[0]=s[m]-u[0],f[1]=s[m+1]-u[1];for(var b=a/t,S=-a/2;S<=a/2;S+=b){for(var w=Math.sin(S),C=Math.cos(S),A=0,x=0;x<s.length;x+=2){var D=f[x],M=f[x+1],I=l[x]-c[0],P=l[x+1]-c[1],k=I*C-P*w,R=I*w+P*C;p[x]=k,p[x+1]=R;var E=k-D,B=R-M;A+=E*E+B*B}if(A<d){d=A,v=S;for(var O=0;O<p.length;O++)h[O]=p[O]}}n.push({from:f,to:h,fromCp:u,toCp:c,rotation:-v})}return n}function yf(r){return r.__isCombineMorphing}var oI="__mOriginal_";function xf(r,e,t){var a=oI+e,n=r[a]||r[e];r[a]||(r[a]=r[e]);var i=t.replace,o=t.after,s=t.before;r[e]=function(){var l=arguments,u;return s&&s.apply(this,l),i?u=i.apply(this,l):u=n.apply(this,l),o&&o.apply(this,l),u}}function Qs(r,e){var t=oI+e;r[t]&&(r[e]=r[t],r[t]=null)}function a2(r,e){for(var t=0;t<r.length;t++)for(var a=r[t],n=0;n<a.length;){var i=a[n],o=a[n+1];a[n++]=e[0]*i+e[2]*o+e[4],a[n++]=e[1]*i+e[3]*o+e[5]}}function sI(r,e){var t=r.getUpdatedPathProxy(),a=e.getUpdatedPathProxy(),n=ZU(Pg(t),Pg(a)),i=n[0],o=n[1],s=r.getComputedTransform(),l=e.getComputedTransform();function u(){this.transform=null}s&&a2(i,s),l&&a2(o,l),xf(e,"updateTransform",{replace:u}),e.transform=null;var c=JU(i,o,10,Math.PI),f=[];xf(e,"buildPath",{replace:function(h){for(var v=e.__morphT,d=1-v,p=[],g=0;g<c.length;g++){var m=c[g],y=m.from,x=m.to,_=m.rotation*v,b=m.fromCp,S=m.toCp,w=Math.sin(_),C=Math.cos(_);nc(p,b,S,v);for(var A=0;A<y.length;A+=2){var D=y[A],M=y[A+1],I=x[A],P=x[A+1],k=D*d+I*v,R=M*d+P*v;f[A]=k*C-R*w+p[0],f[A+1]=k*w+R*C+p[1]}var E=f[0],B=f[1];h.moveTo(E,B);for(var A=2;A<y.length;){var I=f[A++],P=f[A++],O=f[A++],V=f[A++],F=f[A++],H=f[A++];E===I&&B===P&&O===F&&V===H?h.lineTo(F,H):h.bezierCurveTo(I,P,O,V,F,H),E=F,B=H}}}})}function Uy(r,e,t){if(!r||!e)return e;var a=t.done,n=t.during;sI(r,e),e.__morphT=0;function i(){Qs(e,"buildPath"),Qs(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return e.animateTo({__morphT:1},ie({during:function(o){e.dirtyShape(),n&&n(o)},done:function(){i(),a&&a()}},t)),e}function QU(r,e,t,a,n,i){var o=16;r=n===t?0:Math.round(32767*(r-t)/(n-t)),e=i===a?0:Math.round(32767*(e-a)/(i-a));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var c=0,f=0;(r&u)>0&&(c=1),(e&u)>0&&(f=1),s+=u*u*(3*c^f),f===0&&(c===1&&(r=u-1-r,e=u-1-e),l=r,r=e,e=l)}return s}function _f(r){var e=1/0,t=1/0,a=-1/0,n=-1/0,i=U(r,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),f=l.y+l.height/2+(u?u[5]:0);return e=Math.min(c,e),t=Math.min(f,t),a=Math.max(c,a),n=Math.max(f,n),[c,f]}),o=U(i,function(s,l){return{cp:s,z:QU(s[0],s[1],e,t,a,n),path:r[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function lI(r){return YU(r.path,r.count)}function Rg(){return{fromIndividuals:[],toIndividuals:[],count:0}}function eY(r,e,t){var a=[];function n(b){for(var S=0;S<b.length;S++){var w=b[S];yf(w)?n(w.childrenRef()):w instanceof Ce&&a.push(w)}}n(r);var i=a.length;if(!i)return Rg();var o=t.dividePath||lI,s=o({path:e,count:i});if(s.length!==i)return console.error("Invalid morphing: unmatched splitted path"),Rg();a=_f(a),s=_f(s);for(var l=t.done,u=t.during,c=t.individualDelay,f=new _a,h=0;h<i;h++){var v=a[h],d=s[h];d.parent=e,d.copyTransform(f),c||sI(v,d)}e.__isCombineMorphing=!0,e.childrenRef=function(){return s};function p(b){for(var S=0;S<s.length;S++)s[S].addSelfToZr(b)}xf(e,"addSelfToZr",{after:function(b){p(b)}}),xf(e,"removeSelfFromZr",{after:function(b){for(var S=0;S<s.length;S++)s[S].removeSelfFromZr(b)}});function g(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,Qs(e,"addSelfToZr"),Qs(e,"removeSelfFromZr")}var m=s.length;if(c)for(var y=m,x=function(){y--,y===0&&(g(),l&&l())},h=0;h<m;h++){var _=c?ie({delay:(t.delay||0)+c(h,m,a[h],s[h]),done:x},t):t;Uy(a[h],s[h],_)}else e.__morphT=0,e.animateTo({__morphT:1},ie({during:function(b){for(var S=0;S<m;S++){var w=s[S];w.__morphT=e.__morphT,w.dirtyShape()}u&&u(b)},done:function(){g();for(var b=0;b<r.length;b++)Qs(r[b],"updateTransform");l&&l()}},t));return e.__zr&&p(e.__zr),{fromIndividuals:a,toIndividuals:s,count:m}}function tY(r,e,t){var a=e.length,n=[],i=t.dividePath||lI;function o(v){for(var d=0;d<v.length;d++){var p=v[d];yf(p)?o(p.childrenRef()):p instanceof Ce&&n.push(p)}}if(yf(r)){o(r.childrenRef());var s=n.length;if(s<a)for(var l=0,u=s;u<a;u++)n.push(um(n[l++%s]));n.length=a}else{n=i({path:r,count:a});for(var c=r.getComputedTransform(),u=0;u<n.length;u++)n[u].setLocalTransform(c);if(n.length!==a)return console.error("Invalid morphing: unmatched splitted path"),Rg()}n=_f(n),e=_f(e);for(var f=t.individualDelay,u=0;u<a;u++){var h=f?ie({delay:(t.delay||0)+f(u,a,n[u],e[u])},t):t;Uy(n[u],e[u],h)}return{fromIndividuals:n,toIndividuals:e,count:e.length}}function n2(r){return W(r[0])}function i2(r,e){for(var t=[],a=r.length,n=0;n<a;n++)t.push({one:r[n],many:[]});for(var n=0;n<e.length;n++){var i=e[n].length,o=void 0;for(o=0;o<i;o++)t[o%a].many.push(e[n][o])}for(var s=0,n=a-1;n>=0;n--)if(!t[n].many.length){var l=t[s].many;if(l.length<=1)if(s)s=0;else return t;var i=l.length,u=Math.ceil(i/2);t[n].many=l.slice(u,i),t[s].many=l.slice(0,u),s++}return t}var rY={clone:function(r){for(var e=[],t=1-Math.pow(1-r.path.style.opacity,1/r.count),a=0;a<r.count;a++){var n=um(r.path);n.setStyle("opacity",t),e.push(n)}return e},split:null};function zd(r,e,t,a,n,i){if(!r.length||!e.length)return;var o=Vo("update",a,n);if(!(o&&o.duration>0))return;var s=a.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;n2(r)&&(u=r,c=e),n2(e)&&(u=e,c=r);function f(m,y,x,_,b){var S=m.many,w=m.one;if(S.length===1&&!b){var C=y?S[0]:w,A=y?w:S[0];if(yf(C))f({many:[C],one:A},!0,x,_,!0);else{var D=s?ie({delay:s(x,_)},l):l;Uy(C,A,D),i(C,A,C,A,D)}}else for(var M=ie({dividePath:rY[t],individualDelay:s&&function(B,O,V,F){return s(B+x,_)}},l),I=y?eY(S,w,M):tY(w,S,M),P=I.fromIndividuals,k=I.toIndividuals,R=P.length,E=0;E<R;E++){var D=s?ie({delay:s(E,R)},l):l;i(P[E],k[E],y?S[E]:m.one,y?m.one:S[E],D)}}for(var h=u?u===r:r.length>e.length,v=u?i2(c,u):i2(h?e:r,[h?r:e]),d=0,p=0;p<v.length;p++)d+=v[p].many.length;for(var g=0,p=0;p<v.length;p++)f(v[p],h,g,d),g+=v[p].many.length}function Kn(r){if(!r)return[];if(W(r)){for(var e=[],t=0;t<r.length;t++)e.push(Kn(r[t]));return e}var a=[];return r.traverse(function(n){n instanceof Ce&&!n.disableMorphing&&!n.invisible&&!n.ignore&&a.push(n)}),a}var uI=1e4,aY=0,o2=1,s2=2,nY=Ie();function iY(r,e){for(var t=r.dimensions,a=0;a<t.length;a++){var n=r.getDimensionInfo(t[a]);if(n&&n.otherDims[e]===0)return t[a]}}function oY(r,e,t){var a=r.getDimensionInfo(t),n=a&&a.ordinalMeta;if(a){var i=r.get(a.name,e);return n&&n.categories[i]||i+""}}function l2(r,e,t,a){var n=a?"itemChildGroupId":"itemGroupId",i=iY(r,n);if(i){var o=oY(r,e,i);return o}var s=r.getRawDataItem(e),l=a?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!a)return t||r.getId(e)}function u2(r){var e=[];return L(r,function(t){var a=t.data,n=t.dataGroupId;if(!(a.count()>uI))for(var i=a.getIndices(),o=0;o<i.length;o++)e.push({data:a,groupId:l2(a,o,n,!1),childGroupId:l2(a,o,n,!0),divide:t.divide,dataIndex:o})}),e}function Vd(r,e,t){r.traverse(function(a){a instanceof Ce&&Je(a,{style:{opacity:0}},e,{dataIndex:t,isFrom:!0})})}function Fd(r){if(r.parent){var e=r.getComputedTransform();r.setLocalTransform(e),r.parent.remove(r)}}function no(r){r.stopAnimation(),r.isGroup&&r.traverse(function(e){e.stopAnimation()})}function sY(r,e,t){var a=Vo("update",t,e);a&&r.traverse(function(n){if(n instanceof Cr){var i=eE(n);i&&n.animateFrom({style:i},a)}})}function lY(r,e){var t=r.length;if(t!==e.length)return!1;for(var a=0;a<t;a++){var n=r[a],i=e[a];if(n.data.getId(n.dataIndex)!==i.data.getId(i.dataIndex))return!1}return!0}function cI(r,e,t){var a=u2(r),n=u2(e);function i(x,_,b,S,w){(b||x)&&_.animateFrom({style:b&&b!==x?G(G({},b.style),x.style):x.style},w)}var o=!1,s=aY,l=re(),u=re();a.forEach(function(x){x.groupId&&l.set(x.groupId,!0),x.childGroupId&&u.set(x.childGroupId,!0)});for(var c=0;c<n.length;c++){var f=n[c].groupId;if(u.get(f)){s=o2;break}var h=n[c].childGroupId;if(h&&l.get(h)){s=s2;break}}function v(x,_){return function(b){var S=b.data,w=b.dataIndex;return _?S.getId(w):x?s===o2?b.childGroupId:b.groupId:s===s2?b.childGroupId:b.groupId}}var d=lY(a,n),p={};if(!d)for(var c=0;c<n.length;c++){var g=n[c],m=g.data.getItemGraphicEl(g.dataIndex);m&&(p[m.id]=!0)}function y(x,_){var b=a[_],S=n[x],w=S.data.hostModel,C=b.data.getItemGraphicEl(b.dataIndex),A=S.data.getItemGraphicEl(S.dataIndex);if(C===A){A&&sY(A,S.dataIndex,w);return}C&&p[C.id]||A&&(no(A),C?(no(C),Fd(C),o=!0,zd(Kn(C),Kn(A),S.divide,w,x,i)):Vd(A,w,x))}new Pa(a,n,v(!0,d),v(!1,d),null,"multiple").update(y).updateManyToOne(function(x,_){var b=n[x],S=b.data,w=S.hostModel,C=S.getItemGraphicEl(b.dataIndex),A=ze(U(_,function(D){return a[D].data.getItemGraphicEl(a[D].dataIndex)}),function(D){return D&&D!==C&&!p[D.id]});C&&(no(C),A.length?(L(A,function(D){no(D),Fd(D)}),o=!0,zd(Kn(A),Kn(C),b.divide,w,x,i)):Vd(C,w,b.dataIndex))}).updateOneToMany(function(x,_){var b=a[_],S=b.data.getItemGraphicEl(b.dataIndex);if(!(S&&p[S.id])){var w=ze(U(x,function(A){return n[A].data.getItemGraphicEl(n[A].dataIndex)}),function(A){return A&&A!==S}),C=n[x[0]].data.hostModel;w.length&&(L(w,function(A){return no(A)}),S?(no(S),Fd(S),o=!0,zd(Kn(S),Kn(w),b.divide,C,x[0],i)):L(w,function(A){return Vd(A,C,x[0])}))}}).updateManyToMany(function(x,_){new Pa(_,x,function(b){return a[b].data.getId(a[b].dataIndex)},function(b){return n[b].data.getId(n[b].dataIndex)}).update(function(b,S){y(x[b],_[S])}).execute()}).execute(),o&&L(e,function(x){var _=x.data,b=_.hostModel,S=b&&t.getViewOfSeriesModel(b),w=Vo("update",b,0);S&&b.isAnimationEnabled()&&w&&w.duration>0&&S.group.traverse(function(C){C instanceof Ce&&!C.animators.length&&C.animateFrom({style:{opacity:0}},w)})})}function c2(r){var e=r.getModel("universalTransition").get("seriesKey");return e||r.id}function f2(r){return W(r)?r.sort().join(","):r}function qa(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function uY(r,e){var t=re(),a=re(),n=re();return L(r.oldSeries,function(i,o){var s=r.oldDataGroupIds[o],l=r.oldData[o],u=c2(i),c=f2(u);a.set(c,{dataGroupId:s,data:l}),W(u)&&L(u,function(f){n.set(f,{key:c,dataGroupId:s,data:l})})}),L(e.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=c2(i),u=f2(l),c=a.get(u);if(c)t.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:qa(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:qa(s),data:s}]});else if(W(l)){var f=[];L(l,function(d){var p=a.get(d);p.data&&f.push({dataGroupId:p.dataGroupId,divide:qa(p.data),data:p.data})}),f.length&&t.set(u,{oldSeries:f,newSeries:[{dataGroupId:o,data:s,divide:qa(s)}]})}else{var h=n.get(l);if(h){var v=t.get(h.key);v||(v={oldSeries:[{dataGroupId:h.dataGroupId,data:h.data,divide:qa(h.data)}],newSeries:[]},t.set(h.key,v)),v.newSeries.push({dataGroupId:o,data:s,divide:qa(s)})}}}}),t}function h2(r,e){for(var t=0;t<r.length;t++){var a=e.seriesIndex!=null&&e.seriesIndex===r[t].seriesIndex||e.seriesId!=null&&e.seriesId===r[t].id;if(a)return t}}function cY(r,e,t,a){var n=[],i=[];L(je(r.from),function(o){var s=h2(e.oldSeries,o);s>=0&&n.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:qa(e.oldData[s]),groupIdDim:o.dimension})}),L(je(r.to),function(o){var s=h2(t.updatedSeries,o);if(s>=0){var l=t.updatedSeries[s].getData();i.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:qa(l),groupIdDim:o.dimension})}}),n.length>0&&i.length>0&&cI(n,i,a)}function fY(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,a){L(je(a.seriesTransition),function(n){L(je(n.to),function(i){for(var o=a.updatedSeries,s=0;s<o.length;s++)(i.seriesIndex!=null&&i.seriesIndex===o[s].seriesIndex||i.seriesId!=null&&i.seriesId===o[s].id)&&(o[s][pc]=!0)})})}),r.registerUpdateLifecycle("series:transition",function(e,t,a){var n=nY(t);if(n.oldSeries&&a.updatedSeries&&a.optionChanged){var i=a.seriesTransition;if(i)L(je(i),function(v){cY(v,n,a,t)});else{var o=uY(n,a);L(o.keys(),function(v){var d=o.get(v);cI(d.oldSeries,d.newSeries,t)})}L(a.updatedSeries,function(v){v[pc]&&(v[pc]=!1)})}for(var s=e.getSeries(),l=n.oldSeries=[],u=n.oldDataGroupIds=[],c=n.oldData=[],f=0;f<s.length;f++){var h=s[f].getData();h.count()<uI&&(l.push(s[f]),u.push(s[f].get("dataGroupId")),c.push(h))}})}Te([b6]);Te([g6]);Te([G6,rz,hz,$z,rV,HV,gF,QF,bG,DG,OG,I7,t8,h8,M8,k8,H8,Z8,o9,h9,S9,iH]);Te(TH);Te(qH);Te(lM);Te(uj);Te(YM);Te(vj);Te(Sj);Te(uW);Te(MW);Te(ql);Te($W);Te(XW);Te(n$);Te(f$);Te(m$);Te(w$);Te(R$);Te(K$);Te(qL);Te(KL);Te(mU);Te(rI);Te(aI);Te(SU);Te(NU);Te(zU);Te(fY);Te(OB);function hY(r,e){const t=Math.abs(r);let a;return t>=1e6?a=`${(r/1e6).toFixed(1).replace(/\.0$/,"")}M`:t>=1e3?a=`${(r/1e3).toFixed(1).replace(/\.0$/,"")}K`:a=String(r),e?`${a} ${e}`:a}function vY(r){const e=document.createElement("canvas");e.width=6,e.height=6;const t=e.getContext("2d");return t&&(t.globalAlpha=.12,t.fillStyle=r,t.fillRect(0,0,6,6),t.globalAlpha=.28,t.fillRect(0,0,1.5,6)),e}function dY(r){const e=be.c(22),{points:t,xLabels:a,highlightIndex:n,calloutValue:i,tone:o,unit:s,yHeadroom:l}=r,u=o===void 0?"good":o,c=l===void 0?.08:l,f=Math.floor(t.length/2),h=gY,v=h(t.slice(f))>=h(t.slice(0,f))?"left":"right";let d;e[0]!==n||e[1]!==t||e[2]!==u||e[3]!==s||e[4]!==a||e[5]!==c?(d=C=>{if(!C)return;const A=at[u],D=t.length,M=Math.min(Math.max(n,0),D-1),I={};a.forEach((H,Y)=>{const Z=a.length===1?0:Math.round(Y*(D-1)/(a.length-1));I[Z]=H});const P=[];let k=a[0]??"";for(let H=0;H<D;H++){const Y=I[H];Y&&(k=Y),P[H]=k}const R=Math.min(...t),E=Math.max(...t),B=E-R||1,O=iO(C),V={backgroundColor:"transparent",animationDuration:1100,animationEasing:"cubicOut",tooltip:{trigger:"axis",backgroundColor:N.ink,borderWidth:0,padding:[8,12],textStyle:{color:N.bg,fontSize:12,fontFamily:"Switzer, 'Helvetica Neue', Helvetica, Arial, sans-serif"},axisPointer:{type:"line",lineStyle:{color:A,width:1,type:[5,4]},label:{show:!1}},formatter:H=>{const Z=(Array.isArray(H)?H[0]:H)?.dataIndex??0;return`<div style="font-weight:500">${P[Z]??""}</div><div style="opacity:.75;margin-top:2px">${hY(t[Z]??0,s)}</div>`}},grid:{left:0,right:0,top:12,bottom:34,containLabel:!1},xAxis:{type:"category",data:t.map(pY),boundaryGap:!1,axisLine:{show:!1},axisTick:{show:!1},axisLabel:{interval:0,margin:14,color:N.ink,fontFamily:"Switzer, 'Helvetica Neue', Helvetica, Arial, sans-serif",fontWeight:500,fontSize:12,alignMinLabel:"left",alignMaxLabel:"right",formatter:(H,Y)=>I[Y]??""}},yAxis:{type:"value",show:!1,min:R-B*.12,max:E+B*c},series:[{type:"line",data:t,smooth:.5,symbol:"circle",symbolSize:9,showSymbol:!1,itemStyle:{color:A},emphasis:{scale:1.3,itemStyle:{borderColor:N.bg,borderWidth:2}},lineStyle:{color:A,width:2.5},areaStyle:{color:{image:vY(A),repeat:"repeat"},origin:"start"},markLine:{symbol:"none",silent:!0,animation:!1,label:{show:!1},lineStyle:{color:A,width:1.5,type:"solid"},data:[[{coord:[M,R-B*.12]},{coord:[M,t[M]]}]]},markPoint:{silent:!0,animation:!1,symbol:"circle",symbolSize:11,itemStyle:{color:A},label:{show:!1},data:[{coord:[M,t[M]]}]}}]};O.setOption(V);const F=new ResizeObserver(()=>O.resize());return F.observe(C),()=>{F.disconnect(),O.dispose()}},e[0]=n,e[1]=t,e[2]=u,e[3]=s,e[4]=a,e[5]=c,e[6]=d):d=e[6];const p=d;let g;e[7]!==p?(g=T.jsx("div",{ref:p,className:"h-full w-full"}),e[7]=p,e[8]=g):g=e[8];const m=v==="left"?"justify-start":"justify-end";let y;e[9]!==m?(y=We("pointer-events-none absolute inset-x-0 top-0 flex px-5 pt-3 sm:px-10 sm:pt-6 lg:px-16",m),e[9]=m,e[10]=y):y=e[10];const x=at[u];let _;e[11]!==x?(_={color:x,fontSize:"min(clamp(2.75rem,13vw,7.5rem), 13svh)"},e[11]=x,e[12]=_):_=e[12];let b;e[13]!==i||e[14]!==_?(b=T.jsx("span",{className:"font-light leading-none tracking-[-0.02em] tabular-nums whitespace-nowrap",style:_,children:i}),e[13]=i,e[14]=_,e[15]=b):b=e[15];let S;e[16]!==y||e[17]!==b?(S=T.jsx("div",{className:y,children:b}),e[16]=y,e[17]=b,e[18]=S):S=e[18];let w;return e[19]!==S||e[20]!==g?(w=T.jsxs("div",{className:"relative h-full w-full",children:[g,S]}),e[19]=S,e[20]=g,e[21]=w):w=e[21],w}function pY(r,e){return String(e)}function gY(r){return r.length?r.reduce(mY,0)/r.length:0}function mY(r,e){return r+e}function yY(r){const e=be.c(21),{eyebrow:t,headline:a,annotation:n,points:i,xLabels:o,unit:s,callout:l,active:u}=r;let c;e[0]!==u||e[1]!==n||e[2]!==t||e[3]!==a?(c=T.jsx(rr,{eyebrow:t,headline:a,annotation:n,active:u}),e[0]=u,e[1]=n,e[2]=t,e[3]=a,e[4]=c):c=e[4];const f=u?"true":"false",h=u?"120ms":"0ms";let v;e[5]!==h?(v={transitionDelay:h},e[5]=h,e[6]=v):v=e[6];const d=l.tone??"good";let p;e[7]!==l.index||e[8]!==l.value||e[9]!==i||e[10]!==d||e[11]!==s||e[12]!==o?(p=T.jsx(dY,{points:i,xLabels:o,highlightIndex:l.index,calloutValue:l.value,tone:d,unit:s}),e[7]=l.index,e[8]=l.value,e[9]=i,e[10]=d,e[11]=s,e[12]=o,e[13]=p):p=e[13];let g;e[14]!==f||e[15]!==v||e[16]!==p?(g=T.jsx("div",{className:"reveal relative mt-6 min-h-0 flex-1","data-show":f,style:v,children:p}),e[14]=f,e[15]=v,e[16]=p,e[17]=g):g=e[17];let m;return e[18]!==c||e[19]!==g?(m=T.jsxs("div",{className:"flex h-full flex-col",children:[c,g]}),e[18]=c,e[19]=g,e[20]=m):m=e[20],m}function xY(r){const e=be.c(18),{eyebrow:t,headline:a,annotation:n,stats:i,active:o}=r,s=i.length<=2?"grid-cols-1":i.length===3?"grid-cols-1 sm:grid-cols-3":"grid-cols-2";let l;e[0]!==o||e[1]!==n||e[2]!==t||e[3]!==a?(l=T.jsx(rr,{eyebrow:t,headline:a,annotation:n,active:o}),e[0]=o,e[1]=n,e[2]=t,e[3]=a,e[4]=l):l=e[4];let u;e[5]!==s?(u=We("my-auto grid gap-3 sm:my-0 sm:h-full sm:auto-rows-fr sm:gap-4",s),e[5]=s,e[6]=u):u=e[6];let c;if(e[7]!==o||e[8]!==i){let v;e[10]!==o?(v=(d,p)=>{const g=String(d.value??""),m=g.length<=5?"text-[min(clamp(2rem,6vw,4rem),5svh)] sm:text-[clamp(2.25rem,6vw,4rem)]":g.length<=9?"text-[min(clamp(1.5rem,4.5vw,2.75rem),4svh)] sm:text-[clamp(1.75rem,4.5vw,2.75rem)]":"text-[min(clamp(1.125rem,3.5vw,1.875rem),3svh)] sm:text-[clamp(1.25rem,3.5vw,1.875rem)]";return T.jsxs("div",{className:"reveal flex min-w-0 flex-col justify-center gap-2 rounded-xl border px-5 py-[min(1.25rem,2svh)] sm:px-8 sm:py-6","data-show":o?"true":"false",style:{background:N.surface,borderColor:N.cardBorder,transitionDelay:o?`${60+p*70}ms`:"0ms"},children:[T.jsx("span",{className:We("break-words font-light leading-[1.05] tracking-[-0.02em] tabular-nums",m),style:{color:at[d.tone??"neutral"]},children:g}),T.jsx("span",{className:"break-words text-sm tracking-[-0.015em] sm:text-base",style:{color:N.muted},children:d.label}),d.sub&&T.jsx("span",{className:"break-words text-sm",style:{color:N.muted,opacity:.7},children:d.sub})]},p)},e[10]=o,e[11]=v):v=e[11],c=i.map(v),e[7]=o,e[8]=i,e[9]=c}else c=e[9];let f;e[12]!==u||e[13]!==c?(f=T.jsx("div",{className:"flex min-h-0 flex-1 flex-col px-5 pb-2 pt-6 sm:px-10 sm:pt-8 lg:px-16",children:T.jsx("div",{className:u,children:c})}),e[12]=u,e[13]=c,e[14]=f):f=e[14];let h;return e[15]!==l||e[16]!==f?(h=T.jsxs("div",{className:"flex h-full flex-col",children:[l,f]}),e[15]=l,e[16]=f,e[17]=h):h=e[17],h}const io={good:{solid:N.soft,tint:"rgba(140,170,37,0.16)"},warn:{solid:N.warn,tint:"rgba(240,182,19,0.16)"},poor:{solid:"#d43d3d",tint:"rgba(212,61,61,0.14)"}};function _Y(r){const e=be.c(59),{eyebrow:t,headline:a,annotation:n,value:i,metricLabel:o,ratio:s,thresholdRatio:l,thresholdLabel:u,active:c}=r,f=l??Math.min(s,.45),h=Math.min(.94,f+(1-f)*.55),v=f*100,d=bY,p=(s<f?io.good:s<h?io.warn:io.poor).solid;let g;e[0]!==f?(g={start:0,end:f,band:io.good},e[0]=f,e[1]=g):g=e[1];let m;e[2]!==f||e[3]!==h?(m={start:f,end:h,band:io.warn},e[2]=f,e[3]=h,e[4]=m):m=e[4];let y;e[5]!==h?(y={start:h,end:1,band:io.poor},e[5]=h,e[6]=y):y=e[6];let x;e[7]!==g||e[8]!==m||e[9]!==y?(x=[g,m,y],e[7]=g,e[8]=m,e[9]=y,e[10]=x):x=e[10];let _;e[11]!==s||e[12]!==x?(_=x.map(de=>({...de,fill:de.end>de.start?d((Math.min(s,de.end)-de.start)/(de.end-de.start)):0})),e[11]=s,e[12]=x,e[13]=_):_=e[13];const b=_;let S;e[14]!==c||e[15]!==n||e[16]!==t||e[17]!==a?(S=T.jsx(rr,{eyebrow:t,headline:a,annotation:n,active:c}),e[14]=c,e[15]=n,e[16]=t,e[17]=a,e[18]=S):S=e[18];const w=c?"true":"false",C=c?"80ms":"0ms";let A;e[19]!==C?(A={transitionDelay:C},e[19]=C,e[20]=A):A=e[20];let D;e[21]!==p?(D={color:p},e[21]=p,e[22]=D):D=e[22];let M;e[23]!==D||e[24]!==i?(M=T.jsx("span",{className:"font-light leading-none tracking-[-0.02em] tabular-nums text-[min(clamp(2.5rem,11vw,7rem),9svh)] sm:text-[clamp(3.5rem,12vw,7rem)]",style:D,children:i}),e[23]=D,e[24]=i,e[25]=M):M=e[25];let I;e[26]!==o?(I=o&&T.jsx("span",{className:"text-base tracking-[-0.015em] sm:text-xl",style:{color:N.muted},children:o}),e[26]=o,e[27]=I):I=e[27];let P;e[28]!==M||e[29]!==I||e[30]!==w||e[31]!==A?(P=T.jsxs("div",{className:"reveal flex flex-col gap-1","data-show":w,style:A,children:[M,I]}),e[28]=M,e[29]=I,e[30]=w,e[31]=A,e[32]=P):P=e[32];const k=c?"true":"false",R=c?"180ms":"0ms";let E;e[33]!==R?(E={transitionDelay:R},e[33]=R,e[34]=E):E=e[34];let B;e[35]!==c||e[36]!==b?(B=b.map((de,oe)=>T.jsx("div",{className:"absolute inset-y-0",style:{left:`${de.start*100}%`,width:`${(de.end-de.start)*100}%`,background:de.band.tint},children:T.jsx("div",{className:"h-full transition-[width] duration-700 ease-out",style:{width:c?`${de.fill*100}%`:"0%",background:de.band.solid}})},oe)),e[35]=c,e[36]=b,e[37]=B):B=e[37];const O=`${v}%`;let V;e[38]!==O?(V=T.jsx("div",{className:"absolute inset-y-0 w-px -translate-x-1/2",style:{left:O,background:N.ink}}),e[38]=O,e[39]=V):V=e[39];let F;e[40]!==B||e[41]!==V?(F=T.jsxs("div",{className:"relative h-11 w-full overflow-hidden rounded-2xl sm:h-14",children:[B,V]}),e[40]=B,e[41]=V,e[42]=F):F=e[42];const H=`${v}%`;let Y;e[43]!==H?(Y={left:H,top:"100%",marginTop:10,color:N.muted},e[43]=H,e[44]=Y):Y=e[44];let Z;e[45]!==Y||e[46]!==u?(Z=T.jsx("span",{className:"absolute -translate-x-1/2 whitespace-nowrap text-sm tracking-[-0.015em] opacity-60 sm:text-base",style:Y,children:u}),e[45]=Y,e[46]=u,e[47]=Z):Z=e[47];let J;e[48]!==k||e[49]!==E||e[50]!==F||e[51]!==Z?(J=T.jsxs("div",{className:"reveal relative w-full","data-show":k,style:E,children:[F,Z]}),e[48]=k,e[49]=E,e[50]=F,e[51]=Z,e[52]=J):J=e[52];let te;e[53]!==P||e[54]!==J?(te=T.jsx("div",{className:"flex min-h-0 flex-1 flex-col overflow-y-auto px-5 py-6 sm:px-10 lg:px-16",children:T.jsxs("div",{className:"my-auto flex w-full flex-col gap-8 sm:gap-10",children:[P,J]})}),e[53]=P,e[54]=J,e[55]=te):te=e[55];let xe;return e[56]!==te||e[57]!==S?(xe=T.jsxs("div",{className:"flex h-full flex-col",children:[S,te]}),e[56]=te,e[57]=S,e[58]=xe):xe=e[58],xe}function bY(r){return Math.min(1,Math.max(0,r))}function SY(r){const e=be.c(78),{slide:t,deck:a,active:n,onNavigate:i}=r,o=t.template,s=t.eyebrow&&t.eyebrow!==a.meta.domain?t.eyebrow:t.title;let l;e[0]!==n||e[1]!==s||e[2]!==t.annotation||e[3]!==t.headline?(l={eyebrow:s,headline:t.headline,annotation:t.annotation,active:n},e[0]=n,e[1]=s,e[2]=t.annotation,e[3]=t.headline,e[4]=l):l=e[4];const u=l;if(t.key==="categorias"&&o.template==="gauges"){let c;return e[5]!==u||e[6]!==o?(c=T.jsx(vP,{...o,...u}),e[5]=u,e[6]=o,e[7]=c):c=e[7],c}if(t.key==="geo-dimensoes"&&o.template==="bars"){let c;return e[8]!==u||e[9]!==o?(c=T.jsx(YP,{...o,...u}),e[8]=u,e[9]=o,e[10]=c):c=e[10],c}if(t.key==="paginas"&&o.template==="table"){let c;return e[11]!==u||e[12]!==o?(c=T.jsx(s5,{...o,...u}),e[11]=u,e[12]=o,e[13]=c):c=e[13],c}switch(o.template){case"cover":{let c;e[14]!==a.slides?(c=a.slides.filter(TY).map(wY).slice(0,6),e[14]=a.slides,e[15]=c):c=e[15];const f=c;let h;return e[16]!==n||e[17]!==u||e[18]!==a.meta.brand||e[19]!==a.meta.colors||e[20]!==a.meta.domain||e[21]!==a.meta.faviconUrl||e[22]!==a.meta.initial||e[23]!==f||e[24]!==i||e[25]!==o?(h=T.jsx(_P,{...o,...u,findings:f,colors:a.meta.colors,faviconUrl:a.meta.faviconUrl,domain:a.meta.domain,brand:a.meta.brand,initial:a.meta.initial,active:n,onFindingClick:i}),e[16]=n,e[17]=u,e[18]=a.meta.brand,e[19]=a.meta.colors,e[20]=a.meta.domain,e[21]=a.meta.faviconUrl,e[22]=a.meta.initial,e[23]=f,e[24]=i,e[25]=o,e[26]=h):h=e[26],h}case"series":{let c;return e[27]!==u||e[28]!==o?(c=T.jsx(yY,{...o,...u}),e[27]=u,e[28]=o,e[29]=c):c=e[29],c}case"threshold":{let c;return e[30]!==u||e[31]!==o?(c=T.jsx(_Y,{...o,...u}),e[30]=u,e[31]=o,e[32]=c):c=e[32],c}case"stats":{let c;return e[33]!==u||e[34]!==o?(c=T.jsx(xY,{...o,...u}),e[33]=u,e[34]=o,e[35]=c):c=e[35],c}case"bars":{let c;return e[36]!==u||e[37]!==o?(c=T.jsx(cP,{...o,...u}),e[36]=u,e[37]=o,e[38]=c):c=e[38],c}case"gauges":{let c;return e[39]!==u||e[40]!==o?(c=T.jsx(HP,{...o,...u}),e[39]=u,e[40]=o,e[41]=c):c=e[41],c}case"checklist":{let c;return e[42]!==u||e[43]!==o?(c=T.jsx(dP,{...o,...u}),e[42]=u,e[43]=o,e[44]=c):c=e[44],c}case"table":{let c;return e[45]!==u||e[46]!==o?(c=T.jsx(D2,{...o,...u}),e[45]=u,e[46]=o,e[47]=c):c=e[47],c}case"list":{const c=a.slides.findIndex(d=>d.key===t.key),f=a.slides[c+1]?.key;let h;e[48]!==f||e[49]!==i?(h=f&&i?()=>i(f):void 0,e[48]=f,e[49]=i,e[50]=h):h=e[50];let v;return e[51]!==u||e[52]!==a.meta.domain||e[53]!==o||e[54]!==h?(v=T.jsx(JP,{...o,...u,domain:a.meta.domain,onNext:h}),e[51]=u,e[52]=a.meta.domain,e[53]=o,e[54]=h,e[55]=v):v=e[55],v}case"keywords":{let c;return e[56]!==u||e[57]!==o?(c=T.jsx(KP,{...o,...u}),e[56]=u,e[57]=o,e[58]=c):c=e[58],c}case"products":{let c;return e[59]!==u||e[60]!==o?(c=T.jsx(f5,{...o,...u}),e[59]=u,e[60]=o,e[61]=c):c=e[61],c}case"scorecard":{let c;return e[62]!==u||e[63]!==a.meta.faviconUrl||e[64]!==o?(c=T.jsx(p5,{...o,...u,faviconUrl:a.meta.faviconUrl}),e[62]=u,e[63]=a.meta.faviconUrl,e[64]=o,e[65]=c):c=e[65],c}case"competitor":{let c;return e[66]!==u||e[67]!==a.meta.domain||e[68]!==a.meta.faviconUrl||e[69]!==o?(c=T.jsx(mP,{...o,...u,faviconUrl:a.meta.faviconUrl,domain:a.meta.domain}),e[66]=u,e[67]=a.meta.domain,e[68]=a.meta.faviconUrl,e[69]=o,e[70]=c):c=e[70],c}case"cta":{let c;return e[71]!==u||e[72]!==a.meta.brand||e[73]!==a.meta.domain||e[74]!==a.meta.faviconUrl||e[75]!==a.meta.initial||e[76]!==o?(c=T.jsx(BP,{...o,...u,faviconUrl:a.meta.faviconUrl,domain:a.meta.domain,brand:a.meta.brand,initial:a.meta.initial}),e[71]=u,e[72]=a.meta.brand,e[73]=a.meta.domain,e[74]=a.meta.faviconUrl,e[75]=a.meta.initial,e[76]=o,e[77]=c):c=e[77],c}default:return o}}function wY(r){return{title:r.title,slideKey:r.key}}function TY(r){return r.template.template!=="cover"&&r.template.template!=="cta"}const Qu=r=>String(r).padStart(2,"0"),ec=()=>sn()?go.get_distinct_id():void 0;function CY({deck:r}){const e=r.slides.length,[t,a]=Re.useState(0),[n,i]=Re.useState(null),[o,s]=Re.useState(!1),[l,u]=Re.useState(!1),[c,f]=Re.useState(""),[h,v]=Re.useState(!1),[d,p]=Re.useState(!1),g=Re.useRef(!1),m=Re.useRef(!1),[y,x]=Re.useState(!1),_=Re.useRef(null),[b,S]=Re.useState(!1),[w,C]=Re.useState(null),[A,D]=Re.useState("above"),[M,I]=Re.useState(""),P=T2(`https://${r.meta.domain}/`),k=r.slides[t],R=Re.useRef(!1),E=Re.useRef(null),B=$=>{const j=r.slides[$];j&&(s(!1),u(!1),f(""),v(!1),p(!1),g.current=!1,Ke("report_slide_viewed",{domain:r.meta.domain,slide_key:j.key,slide_index:$,slides:e,slide_title:j.title,template:j.template.template,surface:"deck_v2"}),$===e-1&&!m.current&&(m.current=!0,Ke("report_deck_completed",{domain:r.meta.domain,slides:e,surface:"deck_v2"})))},O=()=>{x(!0),_.current&&clearTimeout(_.current),_.current=setTimeout(()=>x(!1),400)},V=Re.useEffectEvent($=>{const j=Math.min(Math.max($,0),e-1);j!==t&&(history.pushState({slideIndex:j},""),S(!1),a(j),B(j),O())}),F=Re.useEffectEvent($=>{R.current||$===0||(R.current=!0,V(t+$),setTimeout(()=>{R.current=!1},650))}),H=$=>{if(!$)return;Ke("report_viewed",{domain:r.meta.domain,slides:e,surface:"deck_v2"});const j=new URLSearchParams(window.location.search),K=j.get("share_id");K&&sn()&&go.setPersonProperties(void 0,{inbound_share_id:K});const Se=j.get("d");if(Se&&j.get("utm_source")==="email"){const he=j.get("email_run_id");Ke("report_email_link_opened",{domain:r.meta.domain,surface:"deck_v2",...he?{email_run_id:he}:{}}),zI(Se).then(Ve=>{sn()&&go.setPersonProperties(void 0,{...he?{inbound_email_run_id:he}:{},...Ve?{inbound_email_domain:Ve.domain}:{}})}).catch(()=>{he&&sn()&&go.setPersonProperties(void 0,{inbound_email_run_id:he})})}B(0),history.replaceState({slideIndex:0},"");const me=he=>{const Ve=he.state?.slideIndex??0;S(!1),a(Ve),B(Ve),O()};window.addEventListener("popstate",me);const we=he=>{["ArrowDown","ArrowRight","PageDown"," "].includes(he.key)?(he.preventDefault(),V(t+1)):["ArrowUp","ArrowLeft","PageUp"].includes(he.key)&&(he.preventDefault(),V(t-1))};return window.addEventListener("keydown",we),()=>{window.removeEventListener("popstate",me),window.removeEventListener("keydown",we),_.current&&clearTimeout(_.current)}},Y=$=>{if(!$)return;const j=(Oe,qe)=>{let He=Oe;for(;He&&He!==$;){if(He.scrollHeight>He.clientHeight+1){const ur=getComputedStyle(He).overflowY;if(ur==="auto"||ur==="scroll"){const Ni=He.scrollTop<=0,ft=He.scrollTop+He.clientHeight>=He.scrollHeight-1;if(qe?!ft:!Ni)return!0}}He=He.parentElement}return!1},K=Oe=>{let qe=Oe;for(;qe&&qe!==$;){if(qe.scrollWidth>qe.clientWidth+1){const He=getComputedStyle(qe).overflowX;if(He==="auto"||He==="scroll")return!0}qe=qe.parentElement}return!1},Se=Oe=>{const qe=Math.abs(Oe.deltaY)>=Math.abs(Oe.deltaX);if(qe&&j(Oe.target,Oe.deltaY>0)||!qe&&K(Oe.target))return;const He=qe?Oe.deltaY:Oe.deltaX;Math.abs(He)<12||(Oe.preventDefault(),F(He>0?1:-1))};let me=0,we=0,he=null;const Ve=Oe=>{me=Oe.touches[0]?.clientX??0,we=Oe.touches[0]?.clientY??0,he=Oe.target},ct=Oe=>{if(Oe.touches.length>1)return;const qe=me-(Oe.touches[0]?.clientX??0),He=we-(Oe.touches[0]?.clientY??0);Math.abs(qe)>Math.abs(He)&&K(he)||j(he,He>0)||Oe.cancelable&&Oe.preventDefault()},it=Oe=>{const qe=me-(Oe.changedTouches[0]?.clientX??0),He=we-(Oe.changedTouches[0]?.clientY??0),ur=Math.abs(He)>=Math.abs(qe)?He:qe;Math.abs(ur)<=50||he?.closest?.("canvas")&&Math.abs(He)<Math.abs(qe)*1.5||Math.abs(He)>=Math.abs(qe)&&j(he,He>0)||Math.abs(qe)>Math.abs(He)&&K(he)||F(ur>0?1:-1)};$.addEventListener("wheel",Se,{passive:!1}),$.addEventListener("touchstart",Ve,{passive:!0}),$.addEventListener("touchmove",ct,{passive:!1}),$.addEventListener("touchend",it,{passive:!0});const wt=document.documentElement,Dt=wt.style.overscrollBehaviorY,Lr=document.body.style.overscrollBehaviorY;return wt.style.overscrollBehaviorY="none",document.body.style.overscrollBehaviorY="none",()=>{$.removeEventListener("wheel",Se),$.removeEventListener("touchstart",Ve),$.removeEventListener("touchmove",ct),$.removeEventListener("touchend",it),wt.style.overscrollBehaviorY=Dt,document.body.style.overscrollBehaviorY=Lr}},Z=$=>{if(E.current=$,!$)return;const j=K=>{E.current&&!E.current.contains(K.target)&&S(!1)};return document.addEventListener("pointerdown",j),()=>document.removeEventListener("pointerdown",j)},J=$=>`${r.meta.domain}:${$.key}:${Math.random().toString(36).slice(2,10)}`,te=($,j)=>{const K=window.location.origin,Se=new URLSearchParams({share_id:j,utm_source:"share",utm_medium:"deck",utm_campaign:"report"});return`${K}/report/${encodeURIComponent(r.meta.domain)}?${Se.toString()}#${$.key}`},xe=$=>`🔍 ${r.meta.brand}
40
-
41
- "${$.headline.replace(/\n/g," ")}"
42
-
43
- Relatório gratuito do seu site →`,de=async($,j)=>{if(window.matchMedia("(pointer: coarse)").matches&&typeof navigator<"u"&&navigator.share){try{const me=J(j),we=te(j,me);await navigator.share({title:`${r.meta.brand} — ${j.title}`,text:xe(j),url:we}),Ke("report_slide_shared",{domain:r.meta.domain,slide_key:j.key,slide_index:t,surface:"deck_v2",method:"web_share",share_id:me,sharer_person_id:ec()})}catch{}return}const Se=$.currentTarget.getBoundingClientRect();C(Se),D(Se.top<window.innerHeight/2?"below":"above"),I(J(j)),S(me=>!me)},oe=async $=>{const j=J($),K=te($,j);try{await navigator.clipboard?.writeText(K),i("Link copiado"),Ke("report_slide_shared",{domain:r.meta.domain,slide_key:$.key,slide_index:t,surface:"deck_v2",method:"copy_link",share_id:j,sharer_person_id:ec()})}catch{i("Erro ao copiar")}S(!1),setTimeout(()=>i(null),1800)};return k?T.jsxs("div",{ref:$=>{const j=H($),K=Y($);return()=>{j?.(),K?.()}},className:"fixed inset-0 flex flex-col font-sans antialiased",style:{background:N.bg,color:N.ink,fontFamily:"Switzer, 'Inter var', Helvetica, Arial, sans-serif",fontFeatureSettings:"normal"},children:[T.jsx("header",{className:"shrink-0 px-3 pt-3 sm:px-6 sm:pt-4",children:T.jsxs("div",{className:"mx-auto flex h-14 max-w-[1360px] items-center gap-3 rounded-full border pl-4 pr-3 backdrop-blur-md sm:h-[60px] sm:pl-6 sm:pr-4",style:{borderColor:N.cardBorder,background:"rgba(255,255,255,0.82)",boxShadow:"0 1px 2px rgba(40,37,36,0.05), 0 10px 30px -20px rgba(40,37,36,0.35)"},children:[T.jsx("a",{href:"https://decocms.com","aria-label":"deco — página inicial",className:"flex shrink-0 items-center opacity-95 transition-opacity hover:opacity-70",children:T.jsx("img",{src:"/logos/deco-logo.svg",alt:"deco",width:54,height:22,className:"h-[22px] w-auto"})}),T.jsx("div",{className:"ml-auto flex shrink-0 items-center",children:T.jsx("button",{type:"button",onClick:$=>de($,k),className:"inline-flex h-9 items-center rounded-full px-5 text-sm font-medium transition-transform hover:scale-[1.03]",style:{background:N.primary,color:N.primaryFg},children:"Share"})})]})}),T.jsxs("main",{className:"relative min-h-0 flex-1 overflow-hidden",children:[T.jsx("div",{className:"h-full w-full",style:{transform:`translateY(-${t*100}%)`,transition:"transform 620ms cubic-bezier(0.16,1,0.3,1)"},children:r.slides.map(($,j)=>T.jsx("div",{className:"h-full w-full overflow-hidden",children:T.jsx("div",{className:We("mx-auto flex h-full w-full max-w-[1440px] flex-col sm:py-8",$.template.template==="cta"?"py-0":$.template.template==="cover"?"py-3":"py-6"),children:T.jsx(SY,{slide:$,deck:r,active:j===t,onNavigate:K=>V(r.slides.findIndex(Se=>Se.key===K))})})},$.key))}),T.jsx("nav",{className:"absolute right-3 top-1/2 flex -translate-y-1/2 flex-col gap-1.5 transition-opacity duration-300 md:!opacity-100",style:{opacity:y?1:0},"aria-label":"Slides",children:r.slides.map(($,j)=>T.jsxs("button",{type:"button","aria-label":`Go to ${$.title}`,onClick:()=>V(j),className:"group relative flex h-5 items-center justify-end",children:[T.jsx("span",{className:"pointer-events-none absolute right-9 whitespace-nowrap rounded-md px-2.5 py-1 text-xs font-medium opacity-0 transition-all duration-200 group-hover:opacity-100",style:{background:N.ink,color:N.bg},children:$.title}),T.jsx("span",{className:"rounded-full transition-all duration-300",style:{height:j===t?3:2,width:j===t?28:12,background:j===t?N.ink:"rgba(40,37,36,0.22)"}})]},$.key))})]}),T.jsx("footer",{className:"flex shrink-0 items-center gap-2 px-4 py-4 sm:px-6",style:t===e-1?{borderTop:"1px solid rgba(255,255,255,0.14)",background:N.forest}:{borderTop:`1px solid ${N.border}`},children:t===e-1?T.jsxs(T.Fragment,{children:[T.jsxs("span",{className:"hidden text-sm tabular-nums opacity-50 lg:block",style:{color:N.ink},children:[Qu(t+1),"/",Qu(e)]}),T.jsx("button",{type:"button",onClick:$=>de($,k),"aria-label":"Compartilhar",className:"grid h-12 w-12 shrink-0 place-items-center rounded-full border lg:hidden",style:{borderColor:"rgba(255,255,255,0.2)",color:"#ffffff",background:"rgba(255,255,255,0.08)"},children:T.jsx(dt,{name:"share",size:"large"})}),T.jsxs("a",{href:P,onClick:$=>Tf($,{domain:r.meta.domain,placement:"deck_footer_mobile",slideKey:k.key,slideIndex:t}),className:"inline-flex h-12 flex-1 items-center justify-center gap-2 rounded-full px-6 text-base font-medium transition-transform hover:scale-[1.01] lg:hidden",style:{background:N.lime,color:N.forest},children:[T.jsx("span",{children:"Destravar minha receita"}),T.jsx(dt,{name:"arrow_forward",size:"large"})]}),T.jsxs("button",{type:"button",onClick:$=>de($,k),className:"ml-auto hidden h-12 items-center gap-2 rounded-full border px-6 text-sm font-medium lg:inline-flex",style:{borderColor:N.inputBorder,color:N.ink,background:N.surface},children:[T.jsx(dt,{name:"share",size:"medium"}),T.jsx("span",{children:"Compartilhar"})]})]}):T.jsxs(T.Fragment,{children:[T.jsxs("div",{className:"flex min-w-0 items-center gap-1.5 sm:gap-2",children:[k.sources?.length?T.jsx("div",{className:"hidden items-center gap-1.5 sm:flex",children:k.sources.map($=>T.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded-full border px-2.5 py-1 text-xs",style:{borderColor:N.border,color:N.ink,background:N.surface},children:[qy($.name,$.logoUrl)&&T.jsx("img",{src:qy($.name,$.logoUrl),alt:"",width:14,height:14,className:"rounded-sm",onError:j=>{j.currentTarget.style.display="none"}}),T.jsx("span",{className:"whitespace-nowrap",children:$.name})]},$.name))}):null,k.methodology?T.jsxs("span",{className:"group relative",children:[T.jsxs("button",{type:"button","aria-label":"Como medimos","aria-expanded":o,onClick:()=>{u(!1),s($=>!$)},className:"inline-flex items-center gap-1.5 rounded-full px-2.5 py-2 text-[13px] transition-colors hover:bg-black/5 sm:text-sm",style:{color:o?N.ink:N.muted},children:[T.jsx(dt,{name:"info",size:"medium"}),T.jsx("span",{className:"hidden whitespace-nowrap underline decoration-1 underline-offset-2 opacity-90 sm:inline",children:"Como medimos"})]}),T.jsx("span",{className:We("absolute bottom-full left-0 mb-3 w-72 max-w-[calc(100vw-2rem)] rounded-xl p-4 text-sm leading-relaxed shadow-sm transition-opacity duration-200 group-hover:opacity-100",o?"opacity-100":"pointer-events-none opacity-0"),style:{background:N.surface,border:`1px solid ${N.border}`,color:N.muted},children:k.methodology})]}):null,T.jsxs("span",{className:"group relative",children:[T.jsxs("button",{type:"button","aria-label":"A IA errou?","aria-expanded":l,onClick:()=>{s(!1),u($=>{const j=!$;return j&&Ke("report_ai_feedback_opened",{domain:r.meta.domain,slide_key:k.key,slide_index:t,surface:"deck_v2"}),j})},className:"inline-flex items-center gap-1.5 rounded-full px-2.5 py-2 text-[13px] transition-colors hover:bg-black/5 sm:text-sm",style:{color:l?N.ink:N.muted},children:[T.jsx(dt,{name:"flag",size:"medium"}),T.jsx("span",{className:"whitespace-nowrap underline decoration-1 underline-offset-2 opacity-90",children:"A IA errou?"})]}),T.jsx("div",{className:We("absolute bottom-full left-0 mb-3 flex w-72 max-w-[calc(100vw-2rem)] flex-col gap-3 rounded-xl p-4 text-sm leading-relaxed shadow-sm transition-opacity duration-200",l?"opacity-100 pointer-events-auto":"pointer-events-none opacity-0"),style:{background:N.surface,border:`1px solid ${N.border}`,color:N.muted},children:h?T.jsx("p",{style:{color:N.ink},children:"Obrigado! Iremos revisar esse slide."}):T.jsxs(T.Fragment,{children:[T.jsx("p",{children:"O que a análise leu errado neste slide?"}),T.jsx("textarea",{rows:3,value:c,onChange:$=>{f($.target.value),!g.current&&$.target.value.length>0&&(g.current=!0,Ke("report_ai_feedback_started",{domain:r.meta.domain,slide_key:k.key,slide_index:t,surface:"deck_v2"}))},placeholder:"Ex: o preço mostrado está desatualizado, a métrica não condiz com o segmento…",className:"w-full resize-none rounded-xl border px-3 py-2 text-sm leading-relaxed outline-none focus:ring-1 focus:ring-[#282524]",style:{borderColor:N.border,background:N.bg,color:N.ink}}),T.jsxs("button",{type:"button",disabled:!c.trim()||d,onClick:()=>{p(!0),Ke("report_ai_feedback_reported",{domain:r.meta.domain,slide_key:k.key,slide_index:t,slide_title:k.title,surface:"deck_v2",feedback_text:c.trim()}),v(!0),p(!1)},className:"inline-flex items-center gap-1.5 self-start rounded-full px-4 py-2 text-sm font-medium transition-opacity disabled:opacity-40",style:{background:N.primary,color:N.primaryFg},children:[T.jsx(dt,{name:"flag",size:"small"}),T.jsx("span",{children:d?"Enviando…":"Reportar erro"})]})]})})]}),T.jsxs("span",{className:"ml-1 hidden text-sm tabular-nums opacity-50 sm:inline",style:{color:N.ink},children:[Qu(t+1),"/",Qu(e)]})]}),T.jsxs("div",{className:"ml-auto flex items-center gap-2",children:[r.meta.scores?T.jsxs("span",{className:"hidden items-center gap-1.5 rounded-full px-2.5 py-1 text-xs tabular-nums lg:inline-flex",style:{background:N.surface,border:`1px solid ${N.border}`,color:N.muted},title:`Cobertura: ${r.meta.scores.coverage.checks_probed} de ${r.meta.scores.coverage.checks_total} verificações medidas neste relatório gratuito`,children:[T.jsxs("span",{style:{color:N.ink},children:[r.meta.scores.cover,"/100"]}),T.jsx("span",{"aria-hidden":!0,children:"·"}),T.jsxs("span",{children:[r.meta.scores.coverage.checks_probed,"/",r.meta.scores.coverage.checks_total," medidos"]})]}):null,T.jsxs("button",{type:"button",onClick:$=>de($,k),className:"inline-flex h-12 w-12 items-center justify-center gap-2 rounded-full border font-medium sm:w-auto sm:px-6 sm:text-sm",style:{borderColor:N.inputBorder,color:N.ink,background:N.surface},children:[T.jsx(dt,{name:"share",size:"large"}),T.jsx("span",{className:"hidden sm:inline",children:"Compartilhar"})]}),T.jsxs("div",{className:"flex items-center gap-1 sm:hidden",children:[T.jsx("button",{type:"button",onClick:()=>V(t-1),disabled:t===0,"aria-label":"Slide anterior",className:"grid h-12 w-12 place-items-center rounded-full border disabled:opacity-30",style:{borderColor:N.inputBorder,color:N.ink,background:N.surface},children:T.jsx(dt,{name:"arrow_upward",size:"large"})}),T.jsx("button",{type:"button",onClick:()=>V(t+1),"aria-label":"Próximo slide",className:"grid h-12 w-12 place-items-center rounded-full",style:{background:N.primary,color:N.primaryFg},children:T.jsx(dt,{name:"arrow_downward",size:"large"})})]}),T.jsxs("button",{type:"button",onClick:()=>V(t+1),className:"hidden h-12 items-center gap-2 rounded-full px-6 text-sm font-medium sm:inline-flex",style:{background:N.primary,color:N.primaryFg},children:[T.jsx("span",{children:"Próximo"}),T.jsx(dt,{name:"arrow_forward",size:"medium"})]})]})]})}),b&&w&&T.jsxs("div",{ref:Z,role:"menu",className:"fixed z-50 flex min-w-[200px] flex-col overflow-hidden rounded-xl border shadow-xl",style:{background:N.surface,borderColor:N.border,...A==="below"?{top:w.bottom+8}:{bottom:window.innerHeight-w.top+8},left:w.left+w.width/2,transform:"translateX(-50%)"},children:[T.jsxs("button",{type:"button",role:"menuitem",onClick:()=>oe(k),className:"flex items-center gap-3 px-4 py-3 text-sm font-medium transition-colors hover:bg-black/5",style:{color:N.ink},children:[T.jsx(dt,{name:"link",size:"medium"}),"Copiar link"]}),T.jsxs("a",{role:"menuitem",href:`https://twitter.com/intent/tweet?url=${encodeURIComponent(te(k,M))}&text=${encodeURIComponent(xe(k))}`,target:"_blank",rel:"noopener noreferrer",onClick:()=>{Ke("report_slide_shared",{domain:r.meta.domain,slide_key:k.key,slide_index:t,surface:"deck_v2",method:"twitter",share_id:M,sharer_person_id:ec()}),S(!1)},className:"flex items-center gap-3 px-4 py-3 text-sm font-medium transition-colors hover:bg-black/5",style:{color:N.ink},children:[T.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:T.jsx("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-4.714-6.231-5.401 6.231H2.748l7.73-8.835L1.254 2.25H8.08l4.261 5.635zm-1.161 17.52h1.833L7.084 4.126H5.117z"})}),"Compartilhar no X"]}),T.jsxs("a",{role:"menuitem",href:`https://www.linkedin.com/shareArticle?mini=true&url=${encodeURIComponent(te(k,M))}&title=${encodeURIComponent(`${r.meta.brand} — ${k.title}`)}&summary=${encodeURIComponent(xe(k))}`,target:"_blank",rel:"noopener noreferrer",onClick:()=>{Ke("report_slide_shared",{domain:r.meta.domain,slide_key:k.key,slide_index:t,surface:"deck_v2",method:"linkedin",share_id:M,sharer_person_id:ec()}),S(!1)},className:"flex items-center gap-3 px-4 py-3 text-sm font-medium transition-colors hover:bg-black/5",style:{color:N.ink},children:[T.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:T.jsx("path",{d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 01-2.063-2.065 2.064 2.064 0 112.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"})}),"Compartilhar no LinkedIn"]})]}),n&&T.jsx("div",{className:"fixed bottom-20 left-1/2 z-50 -translate-x-1/2 rounded-full px-4 py-2 text-sm font-medium shadow-lg",style:{background:N.ink,color:N.bg},children:n})]}):null}const AY="#D0EC1A",fI="#07401A",DY=()=>sn()?go.get_distinct_id():void 0;function MY(r){const e=be.c(17),{domain:t,initial:a,sessionEmail:n}=r,[i,o]=Re.useState(a?.status==="ready"?a.deck:null);let s;e[0]!==t||e[1]!==a?.status?(s=()=>a?.status!=="ready"&&nP(t)?"pending":"scanning",e[0]=t,e[1]=a?.status,e[2]=s):s=e[2];const[l,u]=Re.useState(s);let c;e[3]!==t||e[4]!==a?(c=d=>{if(!d||(a&&tc(t,a.drops),a?.status==="ready"))return;const p=new AbortController;return oP(t,DY(),p.signal,{onPhase:u,onDeck:o}),()=>p.abort()},e[3]=t,e[4]=a,e[5]=c):c=e[5];const f=c;if(i){let d;return e[6]!==i?(d=T.jsx(CY,{deck:i}),e[6]=i,e[7]=d):d=e[7],d}if(l==="unauthorized"){let d;return e[8]!==t?(d=T.jsx(Tc,{domain:t}),e[8]=t,e[9]=d):d=e[9],d}let h;e[10]!==t||e[11]!==l||e[12]!==n?(h=T.jsx(IY,{domain:t,phase:l,email:n}),e[10]=t,e[11]=l,e[12]=n,e[13]=h):h=e[13];let v;return e[14]!==f||e[15]!==h?(v=T.jsx("div",{ref:f,children:h}),e[14]=f,e[15]=h,e[16]=v):v=e[16],v}const v2=[{id:"initiated",label:"Análise iniciada",detail:null},{id:"collecting",label:"Coletando dados públicos",detail:null},{id:"building",label:"Montando seu relatório",detail:null},{id:"ready",label:"Relatório pronto",detail:null}];function LY(r){return r==="scanning"?["done","active","pending","pending"]:r==="pending"?["done","done","active","pending"]:["done","done","done","pending"]}function IY(r){const e=be.c(25),{domain:t,phase:a,email:n}=r,i=a==="scanning"||a==="pending";let o;e[0]!==a?(o=LY(a),e[0]=a,e[1]=o):o=e[1];const s=o,l=a==="blocked"?"Este relatório não está disponível publicamente.":a==="empty"?"Escaneamos sua loja, mas o relatório ainda está sendo montado. Verifique em breve.":a==="error"?"Algo deu errado ao acessar o relatório. Tente novamente.":null;let u;e[2]===Symbol.for("react.memo_cache_sentinel")?(u={color:N.ink,fontFamily:"Switzer, 'Inter var', Helvetica, Arial, sans-serif",WebkitFontSmoothing:"antialiased"},e[2]=u):u=e[2];let c;e[3]!==t?(c=T.jsx(wf,{domain:t}),e[3]=t,e[4]=c):c=e[4];let f;e[5]===Symbol.for("react.memo_cache_sentinel")?(f=T.jsx("div",{className:"pointer-events-none absolute inset-0 bg-white/35"}),e[5]=f):f=e[5];let h;e[6]===Symbol.for("react.memo_cache_sentinel")?(h={background:"rgba(255,255,255,0.15)"},e[6]=h):h=e[6];let v;e[7]!==i?(v=i&&T.jsx("div",{className:"animate-indeterminate h-full w-2/5",style:{background:AY}}),e[7]=i,e[8]=v):v=e[8];let d;e[9]!==v?(d=T.jsx("div",{className:"fixed inset-x-0 top-0 z-10 h-[2px] overflow-hidden",style:h,children:v}),e[9]=v,e[10]=d):d=e[10];let p;e[11]!==t||e[12]!==n||e[13]!==i||e[14]!==s?(p=i&&T.jsxs("div",{className:"w-full max-w-[460px] rounded-2xl sm:rounded-3xl px-5 pt-5 pb-6 sm:px-8 sm:pt-8 sm:pb-9",style:{background:"#fff",boxShadow:"0 24px 64px rgba(0,0,0,0.22), 0 4px 16px rgba(0,0,0,0.12)"},children:[T.jsxs("div",{className:"mb-4 sm:mb-6 inline-flex items-center gap-2 rounded-full border px-3 py-1.5",style:{borderColor:N.border,background:"#FAFAF9"},children:[T.jsx("img",{src:bf(t),alt:"",className:"h-4 w-4 rounded object-contain"}),T.jsxs("span",{className:"text-[13px]",style:{color:N.muted},children:[T.jsx("span",{style:{opacity:.5},children:"https://"}),t]})]}),T.jsxs("h1",{className:"text-[24px] sm:text-[32px] font-normal leading-[1.18] tracking-[-0.025em]",style:{color:N.ink},children:["Seu relatório está",T.jsx("br",{}),T.jsx("span",{style:{color:N.soft},children:"sendo preparado."})]}),T.jsx("p",{className:"mt-2 sm:mt-3 text-[13px] sm:text-[14px] leading-[1.6]",style:{color:N.muted},children:"Você pode acompanhar por aqui. Também avisaremos quando estiver pronto."}),T.jsxs("div",{className:"mt-4 sm:mt-5 rounded-xl sm:rounded-2xl px-4 sm:px-5 py-4 sm:py-5",style:{background:"#F2F1EF"},children:[T.jsx("p",{className:"mb-2.5 sm:mb-3 text-[15px] sm:text-[16px]",style:{color:N.ink},children:"Enviaremos uma notificação para:"}),T.jsx(kY,{email:n})]}),T.jsx("div",{className:"mt-5 sm:mt-7 rounded-xl sm:rounded-2xl overflow-hidden",style:{border:`1px solid ${N.border}`},children:v2.map((x,_)=>{const b=s[_]??"pending",S=_===v2.length-1;return T.jsxs("div",{className:"flex items-start gap-3 sm:gap-4 px-4 sm:px-5 py-3 sm:py-4",style:{borderTop:_>0?`1px solid ${N.border}`:void 0,background:b==="active"?N.limeTint:void 0},children:[T.jsxs("div",{className:"flex flex-col items-center self-stretch pt-0.5",children:[T.jsx(PY,{state:b}),!S&&T.jsx("div",{className:"w-px flex-1 mt-2",style:{background:b==="done"?N.soft:N.border,opacity:b==="done"?.5:1}})]}),T.jsxs("div",{className:"min-w-0 flex-1 py-0.5",children:[T.jsxs("div",{className:"flex items-center gap-2",children:[T.jsx("span",{className:"text-[13px] sm:text-[14px] leading-5",style:{color:b==="pending"?N.faint:N.ink,fontWeight:b==="active"?500:400},children:x.label}),b==="active"&&T.jsx("span",{className:"text-[11px] px-1.5 py-0.5 rounded-md font-medium",style:{background:N.limeTint,color:fI,border:"1px solid rgba(7,64,26,0.15)"},children:"agora"})]}),x.detail&&b!=="pending"&&T.jsx("p",{className:"mt-0.5 text-[12px] leading-4",style:{color:N.faint},children:x.detail})]})]},x.id)})}),T.jsx(y2,{})]}),e[11]=t,e[12]=n,e[13]=i,e[14]=s,e[15]=p):p=e[15];let g;e[16]!==l?(g=l&&T.jsxs("div",{className:"w-full max-w-[460px] rounded-3xl px-8 py-10",style:{background:"#fff",boxShadow:"0 24px 64px rgba(0,0,0,0.22), 0 4px 16px rgba(0,0,0,0.12)"},children:[T.jsx("div",{className:"mb-5 flex h-10 w-10 items-center justify-center rounded-full",style:{background:"rgba(212,61,61,0.08)"},children:T.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 22 22",fill:"none","aria-hidden":"true",children:[T.jsx("path",{d:"M11 7v5M11 15h.01",stroke:"#d43d3d",strokeWidth:"2",strokeLinecap:"round"}),T.jsx("circle",{cx:"11",cy:"11",r:"9",stroke:"#d43d3d",strokeWidth:"1.5"})]})}),T.jsx("p",{className:"text-[20px] font-normal leading-snug tracking-[-0.02em]",style:{color:N.ink},children:l}),T.jsx("a",{href:"https://decocms.com/diagnostico",className:"mt-5 inline-flex items-center gap-2 rounded-xl px-4 py-2.5 text-[14px] font-medium transition-transform active:scale-[0.98]",style:{background:N.primary,color:N.primaryFg},children:"Tentar outra loja"})]}),e[16]=l,e[17]=g):g=e[17];let m;e[18]!==p||e[19]!==g?(m=T.jsxs("div",{className:"relative z-10 flex min-h-full flex-col items-center justify-center px-3 py-4 sm:px-5 sm:py-16",children:[p,g]}),e[18]=p,e[19]=g,e[20]=m):m=e[20];let y;return e[21]!==m||e[22]!==c||e[23]!==d?(y=T.jsxs("div",{className:"fixed inset-0 overflow-y-auto",style:u,children:[c,f,d,m]}),e[21]=m,e[22]=c,e[23]=d,e[24]=y):y=e[24],y}function PY(r){const e=be.c(5),{state:t}=r;if(t==="done"){let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={background:N.soft},e[0]=n):n=e[0];let i;return e[1]===Symbol.for("react.memo_cache_sentinel")?(i=T.jsx("div",{className:"flex h-[18px] w-[18px] shrink-0 items-center justify-center rounded-full",style:n,children:T.jsx("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"none","aria-hidden":"true",children:T.jsx("path",{d:"M1.5 4.5l2 2L7.5 2.5",stroke:"#fff",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),e[1]=i):i=e[1],i}if(t==="active"){let n;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=T.jsx("div",{className:"absolute h-full w-full rounded-full animate-ping opacity-30",style:{background:N.soft}}),e[2]=n):n=e[2];let i;return e[3]===Symbol.for("react.memo_cache_sentinel")?(i=T.jsxs("div",{className:"relative flex h-[18px] w-[18px] shrink-0 items-center justify-center",children:[n,T.jsx("div",{className:"h-3 w-3 rounded-full",style:{background:N.soft}})]}),e[3]=i):i=e[3],i}let a;return e[4]===Symbol.for("react.memo_cache_sentinel")?(a=T.jsx("div",{className:"h-[18px] w-[18px] shrink-0 rounded-full",style:{border:`1.5px solid ${N.border}`}}),e[4]=a):a=e[4],a}function kY(r){const e=be.c(9),{email:t}=r;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={background:N.limeTint},e[0]=a):a=e[0];let n;e[1]===Symbol.for("react.memo_cache_sentinel")?(n={background:N.soft},e[1]=n):n=e[1];let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=T.jsx("div",{className:"flex h-7 w-7 shrink-0 items-center justify-center rounded-full",style:n,children:T.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none","aria-hidden":"true",children:T.jsx("path",{d:"M2 6l2.5 2.5L10 3.5",stroke:"#fff",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})})}),e[2]=i):i=e[2];let o;e[3]===Symbol.for("react.memo_cache_sentinel")?(o={color:fI},e[3]=o):o=e[3];let s;e[4]!==t?(s=T.jsx("p",{className:"truncate text-[13px] font-medium",style:o,children:t}),e[4]=t,e[5]=s):s=e[5];let l;e[6]===Symbol.for("react.memo_cache_sentinel")?(l=T.jsx("p",{className:"text-[12px]",style:{color:N.soft},children:"Avisamos assim que ficar pronto."}),e[6]=l):l=e[6];let u;return e[7]!==s?(u=T.jsxs("div",{className:"flex min-w-0 items-center gap-3 rounded-xl px-4 py-3",style:a,children:[i,T.jsxs("div",{className:"min-w-0",children:[s,l]})]}),e[7]=s,e[8]=u):u=e[8],u}const d2=mI("/report/$domain");function RY(r,e,t){return a=>{if(!a||!r)return;const n=document.title;document.title=e;const i=t||bf(r,64),o=document.head,s=Array.from(o.querySelectorAll('link[rel~="icon"], link[rel="apple-touch-icon"]')).filter(u=>!u.hasAttribute("data-domain-favicon"));s.forEach(u=>{u.dataset.prevRel=u.getAttribute("rel")??"",u.setAttribute("rel","decocms-icon-disabled")});const l=document.createElement("link");return l.rel="icon",l.href=i,l.setAttribute("data-domain-favicon",""),o.appendChild(l),()=>{document.title=n,l.remove(),s.forEach(u=>{u.setAttribute("rel",u.dataset.prevRel??"icon"),delete u.dataset.prevRel})}}}function EY(r){const e=be.c(7),{domain:t,refreshSession:a}=r;let n;e[0]!==a?(n=l=>{!l||l.dataset.sessionRefreshStarted==="true"||(l.dataset.sessionRefreshStarted="true",a())},e[0]=a,e[1]=n):n=e[1];const i=n;let o;e[2]!==t?(o=T.jsx(Tc,{domain:t}),e[2]=t,e[3]=o):o=e[3];let s;return e[4]!==i||e[5]!==o?(s=T.jsx("div",{ref:i,children:o}),e[4]=i,e[5]=o,e[6]=s):s=e[6],s}function NY(r){const e=be.c(10),{domain:t,retry:a}=r;let n;e[0]!==t?(n=T.jsx(wf,{domain:t}),e[0]=t,e[1]=n):n=e[1];let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=T.jsx("div",{className:"pointer-events-none absolute inset-0 bg-white/35"}),e[2]=i):i=e[2];let o,s;e[3]===Symbol.for("react.memo_cache_sentinel")?(o=T.jsx("h1",{className:"text-xl font-medium leading-7",children:"Não foi possível carregar este relatório."}),s=T.jsx("p",{className:"mt-2 text-sm leading-6 text-muted-foreground",children:"Verifique sua conexão e tente novamente."}),e[3]=o,e[4]=s):(o=e[3],s=e[4]);let l;e[5]!==a?(l=T.jsx("div",{className:"relative z-10 flex min-h-full items-center justify-center px-4 py-10",children:T.jsxs("section",{role:"alert","aria-label":"Não foi possível carregar o relatório",className:"w-full max-w-[440px] rounded-3xl bg-background px-7 py-8 text-foreground shadow-2xl",children:[o,s,T.jsx("button",{type:"button",onClick:a,className:"mt-6 inline-flex h-11 items-center justify-center rounded-lg bg-primary px-5 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary/80",children:"Tentar novamente"})]})}),e[5]=a,e[6]=l):l=e[6];let u;return e[7]!==n||e[8]!==l?(u=T.jsxs("div",{className:"fixed inset-0 overflow-y-auto",children:[n,i,l]}),e[7]=n,e[8]=l,e[9]=u):u=e[9],u}function qY(){const r=be.c(23),{domain:e}=d2.useParams(),{key:t}=d2.useSearch(),a=Eg(e),n=dI.useSession(),i=!!n.data?.user;jd(!!t);const o=pI({queryKey:gI.report(a,t),queryFn:()=>Gd(a,t),enabled:i,staleTime:1/0,retry:BY});let s;r[0]!==o.error||r[1]!==o.isError?(s=o.isError&&Ng(o.error),r[0]=o.error,r[1]=o.isError,r[2]=s):s=r[2];const l=s,u=o.data?.deck?.meta.brand?.trim()||p2(a),{title:c}=NI({brand:u,domain:a});let f;r[3]!==t?(f=x=>{if(x)return jd(!!t),OY},r[3]=t,r[4]=f):f=r[4];const h=f;let v;r[5]!==i||r[6]!==a||r[7]!==l?(v=x=>{if(!x||!i||l||x.dataset.authCompletionTracked==="true"||!sn())return;const _=qI(a);_&&(x.dataset.authCompletionTracked="true",Ke("report_auth_succeeded",{domain:a,surface:"deck_v2",...Hd(_),method:_.method??"unknown",time_to_auth_ms:Math.max(0,Date.now()-_.gate_shown_at),..._.provider?{provider:_.provider}:{},..._.auth_mode?{auth_mode:_.auth_mode}:{}}))},r[5]=i,r[6]=a,r[7]=l,r[8]=v):v=r[8];const d=v;let p;r[9]!==a||r[10]!==o||r[11]!==l||r[12]!==n?(p=n.isPending?T.jsx(Tc,{domain:a,loading:!0}):n.data?.user?l?T.jsx(EY,{domain:a,refreshSession:()=>{n.refetch()}}):o.isPending?T.jsxs("div",{className:"fixed inset-0 overflow-hidden","aria-busy":"true",children:[T.jsx(wf,{domain:a}),T.jsx("div",{className:"pointer-events-none absolute inset-0 bg-white/35"})]}):o.isError?T.jsx(NY,{domain:a,retry:()=>{o.refetch()}}):T.jsx(MY,{domain:a,initial:o.data,sessionEmail:n.data.user.email}):T.jsx(Tc,{domain:a}),r[9]=a,r[10]=o,r[11]=l,r[12]=n,r[13]=p):p=r[13];const g=p;let m;r[14]!==d||r[15]!==a||r[16]!==o.data?.deck?.meta.faviconUrl||r[17]!==h||r[18]!==c?(m=x=>{const _=RY(a,c,o.data?.deck?.meta.faviconUrl)(x),b=h(x);return d(x),()=>{_?.(),b?.()}},r[14]=d,r[15]=a,r[16]=o.data?.deck?.meta.faviconUrl,r[17]=h,r[18]=c,r[19]=m):m=r[19];let y;return r[20]!==g||r[21]!==m?(y=T.jsx("div",{ref:m,children:g}),r[20]=g,r[21]=m,r[22]=y):y=r[22],y}function OY(){return jd(!1)}function BY(r,e){return!Ng(e)&&r<1}export{qY as default};