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
@@ -0,0 +1,43 @@
1
+ import{c as _e,l as qe,j as T,r as Ne,o as on,T as po,w as fI,x as hI,a as vI,m as dI,K as pI,y as gI}from"./index-lRedQ_8t.js";import{A as mI}from"./auth-entry-BBn3Oy3I.js";import{d as $y}from"./delay-CnY5UFtP.js";import{i as yI}from"./AlertCircle-BaauQIwC.js";import{n as xI,i as _I}from"./ArrowUp-C814v0pE.js";import{a as bI,b as SI,i as wI}from"./XCircle-DHCvZwgH.js";import{a as TI,i as CI,b as AI,c as DI,t as MI,n as LI,d as II,e as PI,f as kI,g as RI,h as EI}from"./TrendUp01-C3q3M7MG.js";import{i as NI}from"./CheckCircle-D_t3rWUI.js";import{s as OI}from"./Eye-CM4SfxEo.js";import{s as BI}from"./Flag01-RtD7xNTJ.js";import{a as zI}from"./Package-DYdmCLl6.js";import{i as VI}from"./SearchLg-crE3yQZJ.js";import{i as FI}from"./Shield01-CULBCC4Z.js";import{t as GI}from"./Stars01-COE1U6xi.js";import{i as HI}from"./Zap-CI5WhuKJ.js";import"./input-DOZlS9i9.js";import"./backoff-CrEUbyZT.js";function Rg(r){let e=(r??"").trim().toLowerCase();return e=e.replace(/^https?:\/\//,""),e=e.replace(/^www\./,""),e=e.split(/[/?#]/)[0]??"",e.replace(/\/+$/,"")}function d2(r){return(Rg(r).split(".")[0]||r).replace(/[-_]/g," ").split(" ").filter(Boolean).map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" ")}function _f(r,e=64){return`https://www.google.com/s2/favicons?domain=${encodeURIComponent(Rg(r))}&sz=${e}`}function Uy(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 jI(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()?Uy(`${n.trim().replace(/\s+/g," ")} — ${o}`,200):Uy(`How does ${t} really perform? ${o}`,200);return{title:i,description:s}}class p2 extends Error{constructor(e){super(`reports API HTTP ${e}`),this.status=e,this.name="ReportsApiError"}status}function Eg(r){return r instanceof p2&&r.status===401}async function bf(r){if(!r.ok)throw new p2(r.status);return await r.json()}function Fd(r,e){const t=e?`?key=${encodeURIComponent(e)}`:"";return fetch(`/api/_reports/site/${encodeURIComponent(r)}${t}`).then(a=>bf(a))}function WI(r){return fetch("/api/_reports/run",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}).then(e=>bf(e))}function $I(r){return fetch(`/api/_reports/status?id=${encodeURIComponent(r)}`).then(e=>bf(e))}function UI(r){return fetch(`/api/_reports/link-token/${encodeURIComponent(r)}`).then(e=>bf(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},YI=[{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}],XI=4,ZI=2400;function qI(r){const e=Array.from({length:r},()=>[]);return YI.forEach((t,a)=>e[a%r]?.push(t)),e}function g2(r){const e=_e.c(22),{logos:t,delayMs:a,last:n,bottomRow:i}=r,[o,s]=Ne.useState(0);let l;e[0]!==a||e[1]!==t.length?(l=b=>{if(!b)return;let S;const w=setTimeout(()=>{S=setInterval(()=>s(A=>(A+1)%t.length),ZI)},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 KI(){const r=_e.c(1);let e;if(r[0]===Symbol.for("react.memo_cache_sentinel")){const t=qI(XI);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(JI)}),T.jsx("div",{className:"hidden overflow-hidden rounded-xl sm:flex",style:{border:`1px solid ${N.border}`},children:t.map((a,n)=>T.jsx(g2,{logos:a,delayMs:n*380,last:n===t.length-1},a[0]?.src))})]}),r[0]=e}else e=r[0];return e}function JI(r,e){return T.jsx(g2,{logos:r,delayMs:e*380,last:e%2===1,bottomRow:e>=2},r[0]?.src)}function m2(r){const e=_e.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=qe(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(KI,{}),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 y2=!1;const QI="report:auth-attempt:",eP=3600*1e3;function tP(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 x2(){return tP(typeof window>"u"?"":window.location.search)}function Sc(r){return`${QI}${r}`}function rP(){try{return globalThis.crypto.randomUUID()}catch{return`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}}function _2(r){try{const e=window.sessionStorage.getItem(Sc(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>eP?(window.sessionStorage.removeItem(Sc(r)),null):t}catch{return null}}function b2(r){try{window.sessionStorage.setItem(Sc(r.domain),JSON.stringify(r))}catch{}}function S2(r){const e=_2(r);if(e)return e;const t={attempt_id:rP(),domain:r,gate_shown_at:Date.now(),...x2()};return b2(t),t}function aP(r,e){const t={...S2(r),...e};return b2(t),t}function Gd(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 nP(r){const e=_2(r);if(!e)return null;try{window.sessionStorage.removeItem(Sc(r))}catch{}return e}function iP(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 Hd(r){y2=r}function Ke(r,e,t){if(on())try{po.capture(r,{...x2(),...e,...y2?{report_preview:"reviewer"}:{}},t)}catch{}}const oP={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 sP(r){const e=`/report/${encodeURIComponent(r)}`;return typeof window>"u"?e:`${e}${window.location.search}${window.location.hash}`}function Sf(r){const e=_e.c(44),{domain:t}=r;let a;e[0]!==t?(a=d2(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=_f(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(cP)})]}),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,A,C,D;e[29]===Symbol.for("react.memo_cache_sentinel")?(w={borderColor:N.border},A=T.jsx("span",{className:"h-2.5 w-2.5 rounded-full bg-[#ff6b67]"}),C=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]=A,e[31]=C,e[32]=D):(w=e[29],A=e[30],C=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:[A,C,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(uP)})]})]}),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(lP)})]}),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 lP(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 uP(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 cP(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 wc(r){const e=_e.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=aP(t,y),_={domain:t,surface:"deck_v2",...Gd(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:iP(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=S2(t);d.dataset.tracked==="true"||!on()||(d.dataset.tracked="true",Ke("report_auth_gate_shown",{domain:t,surface:"deck_v2",...Gd(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(Sf,{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(mI,{callbackUrl:sP(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:_f(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:oP}),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(m2,{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 Yy=4e3,fP=180;function ec(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 Ng=r=>`report:pending:${r}`,hP=r=>{try{return JSON.parse(localStorage.getItem(Ng(r))??"null")}catch{return null}},vP=r=>{try{localStorage.setItem(Ng(r),JSON.stringify({startedAt:Date.now()}))}catch{}},Ni=r=>{try{localStorage.removeItem(Ng(r))}catch{}};async function dP(r,e,t,a){try{Ke("report_scan_triggered",{domain:r,surface:"deck_v2"});const n=await WI({domain:r,distinctId:e});if(t.aborted)return;if(n.state==="blocked")return Ni(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"}),vP(r));for(let o=0;o<fP&&!t.aborted;o++){const s=await Fd(r);if(t.aborted)return;if(s.status==="ready"&&s.deck)return Ni(r),ec(r,s.drops),Ke("report_scan_completed",{domain:r,surface:"deck_v2"}),a.onDeck(s.deck);if(i){const l=await $I(i);if(t.aborted)return;if(l.done){await $y(Yy,{signal:t});const u=await Fd(r);return t.aborted?void 0:u.status==="ready"&&u.deck?(Ni(r),ec(r,u.drops),Ke("report_scan_completed",{domain:r,surface:"deck_v2"}),a.onDeck(u.deck)):(ec(r,u.drops),Ni(r),Ke("report_scan_failed",{domain:r,phase:"empty",reason:"run_finished_empty",surface:"deck_v2"}),a.onPhase("empty"))}}await $y(Yy,{signal:t})}t.aborted||(Ni(r),Ke("report_scan_failed",{domain:r,phase:"empty",reason:"poll_timeout",surface:"deck_v2"}),a.onPhase("empty"))}catch(n){if(!t.aborted){Ni(r);const i=Eg(n);Ke("report_scan_failed",{domain:r,phase:i?"unauthorized":"error",reason:i?"unauthorized":"exception",surface:"deck_v2"}),a.onPhase(i?"unauthorized":"error")}}}const pP={share:EI,arrow_forward:wI,arrow_upward:_I,arrow_downward:xI,info:RI,warning:hI,flag:BI,lock:fI,link:SI,leaderboard:kI,checklist:PI,notifications_active:II,package_2:zI,check_circle:NI,cancel:bI,error:yI,trending_up:LI,trending_down:MI,bolt:HI,search:VI,shopping_cart:DI,monitoring:AI,accessibility_new:OI,shield:FI,article:CI,smart_toy:GI,bar_chart:TI},gP={xs:12,small:14,medium:16,large:18,xl:20,xxl:32,40:40,immense:80};function dt(r){const e=_e.c(4),{name:t,size:a,class:n}=r,i=a===void 0?"medium":a,o=n===void 0?"":n,s=pP[t];if(!s)return null;const l=gP[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 w2(r){return`/commerce-onboarding?siteUrl=${encodeURIComponent(r)}`}function wf(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 Ee=r=>`https://www.google.com/s2/favicons?domain=${r}&sz=64`,mP={"google analytics 4":Ee("analytics.google.com"),ga4:Ee("analytics.google.com"),"google analytics":Ee("analytics.google.com"),"google search console":Ee("search.google.com"),"search console":Ee("search.google.com"),gsc:Ee("search.google.com"),"gsc url inspection":Ee("search.google.com"),"google tag manager":Ee("tagmanager.google.com"),gtm:Ee("tagmanager.google.com"),"google ads":Ee("ads.google.com"),"keyword planner":Ee("ads.google.com"),"merchant center":Ee("merchants.google.com"),"google merchant center":Ee("merchants.google.com"),"pagespeed insights":Ee("pagespeed.web.dev"),psi:Ee("pagespeed.web.dev"),lighthouse:Ee("developer.chrome.com"),"chrome ux report":Ee("developer.chrome.com"),crux:Ee("developer.chrome.com"),"chrome devtools":Ee("developer.chrome.com"),webpagetest:Ee("webpagetest.org"),semrush:Ee("semrush.com"),similarweb:Ee("similarweb.com"),ahrefs:Ee("ahrefs.com"),moz:Ee("moz.com"),"screaming frog":Ee("screamingfrog.co.uk"),builtwith:Ee("builtwith.com"),microlink:Ee("microlink.io"),apify:Ee("apify.com"),firecrawl:Ee("firecrawl.dev"),"reclame aqui":Ee("reclameaqui.com.br"),instagram:Ee("instagram.com"),meta:Ee("meta.com"),"meta business manager":Ee("business.facebook.com"),vtex:Ee("vtex.com"),"vtex oms":Ee("vtex.com"),shopify:Ee("shopify.com"),linx:Ee("linx.com.br"),wake:Ee("wake.com")};function Xy(r,e){return e||(mP[r.toLowerCase().trim()]??"")}function rr(r){const e=_e.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 vh=18;function yP(r){const e=_e.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=qe("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(vh,Math.round(p.ratio*vh)));return T.jsxs("div",{className:qe("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:qe("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:qe("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:vh},(x,_)=>T.jsx("span",{className:qe("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 xP={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)"}},jd=33,dh=2*Math.PI*jd;function _P(r){const e=r?.match(/^(.*?)\s*\((.+)\)$/);return e?{band:e[1]??"",count:e[2]}:{band:r??""}}function bP(r){const e=_e.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=xP[h.status],p=Math.min(1,Math.max(0,h.ratio??0)),{band:g,count:m}=_P(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:jd,fill:"none",stroke:d.tint,strokeWidth:"7"}),T.jsx("circle",{cx:"40",cy:"40",r:jd,fill:"none",stroke:d.color,strokeWidth:"7",strokeLinecap:"round",strokeDasharray:dh,strokeDashoffset:o?dh*(1-p):dh,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 Zy={pass:{color:at.good,icon:"check_circle"},fail:{color:at.bad,icon:"cancel"},warn:{color:N.warn,icon:"error"}};function SP(r){const e=_e.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=Zy[h.status]??Zy.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 Og(r){return w2(`https://${r}/`)}function wP(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 TP(r){const e=_e.c(5),{initial:t,faviconUrl:a}=r,[n,i]=Ne.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 CP(r){const e=_e.c(34),{eyebrow:t,headline:a,annotation:n,metricLabel:i,competitors:o,faviconUrl:s,domain:l,active:u}=r,c=Og(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 A;e[15]!==u||e[16]!==s?(A=(C,D)=>{const M=C.isYou?N.muted:at[C.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:{...C.isYou?{background:N.surface,border:`1px solid ${N.border}`}:{},transitionDelay:u?`${60+D*60}ms`:"0ms"},children:[T.jsx(TP,{initial:(C.name[0]??"?").toUpperCase(),faviconUrl:C.isYou?s:wP(C.name)}),T.jsx("span",{className:"flex-1 truncate text-[15px] sm:text-lg",style:{color:N.ink},children:C.name}),T.jsx("span",{className:"shrink-0 text-lg font-light tabular-nums tracking-[-0.02em] sm:text-2xl",style:{color:M},children:C.value})]},D)},e[15]=u,e[16]=s,e[17]=A):A=e[17],g=o.map(A),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=A=>wf(A,{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 qy(r){const e=_e.c(10),{url:t,initial:a,size:n}=r,[i,o]=Ne.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 Ky(r){const e=_e.c(36),{domain:t,faviconUrl:a,initial:n,desktopShot:i,mobileShot:o,hidePhone:s}=r,l=s===void 0?!1:s,[u,c]=Ne.useState(i?"loading":"fail"),[f,h]=Ne.useState(o?"loading":"fail"),v=!l&&"pb-10 pl-8";let d;e[0]!==v?(d=qe("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(qy,{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 A;e[15]!==i||e[16]!==t||e[17]!==u?(A=i&&T.jsx("img",{src:i,alt:`${t} homepage`,className:qe("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]=A):A=e[18];let C;e[19]!==w||e[20]!==A?(C=T.jsxs("div",{className:"relative aspect-[4/3]",style:S,children:[w,A]}),e[19]=w,e[20]=A,e[21]=C):C=e[21];let D;e[22]!==b||e[23]!==C?(D=T.jsxs("div",{className:"overflow-hidden rounded-2xl bg-white",style:p,children:[b,C]}),e[22]=b,e[23]=C,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(qy,{url:a,initial:n,size:26})}),o&&T.jsx("img",{src:o,alt:`${t} mobile`,className:qe("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 T2(r){return r>=61?at.good:r>=41?N.warn:at.bad}const AP="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 Jy(r){const e=_e.c(54),{score:t,active:a,compact:n}=r,[i,o]=Ne.useState(0);let s;e[0]!==t.value?(s=T2(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]=Ne.useState(!1),v=Ne.useRef(null);let d;e[2]!==a||e[3]!==t.value?(d=W=>{if(!W||!a)return;const j=t.value;if(window.matchMedia?.("(prefers-reduced-motion: reduce)").matches){o(j);return}let K=0,Se=0;const ye=we=>{Se||(Se=we);const ve=Math.min(1,(we-Se)/1100);o(j*(1-(1-ve)**3)),ve<1&&(K=requestAnimationFrame(ye))};return K=requestAnimationFrame(ye),()=>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=W=>{if(!W)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 A=u/2,C=u/2,D=_*(1-y/100);let M;e[11]!==_||e[12]!==x||e[13]!==c||e[14]!==A||e[15]!==C||e[16]!==D||e[17]!==l?(M=T.jsx("circle",{cx:A,cy:C,r:x,fill:"none",stroke:l,strokeWidth:c,strokeLinecap:"round",strokeDasharray:_,strokeDashoffset:D}),e[11]=_,e[12]=x,e[13]=c,e[14]=A,e[15]=C,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 G,Y,X,q;e[36]===Symbol.for("react.memo_cache_sentinel")?(G=()=>h(!0),Y=()=>h(!1),X=()=>h(DP),q=T.jsx(dt,{name:"info",size:"medium",class:""}),e[36]=G,e[37]=Y,e[38]=X,e[39]=q):(G=e[36],Y=e[37],X=e[38],q=e[39]);let Q;e[40]!==F?(Q=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:G,onMouseLeave:Y,onClick:X,children:q}),e[40]=F,e[41]=Q):Q=e[41];let pe;e[42]!==f?(pe=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:AP}),e[42]=f,e[43]=pe):pe=e[43];let ce;e[44]!==Q||e[45]!==pe?(ce=T.jsxs("div",{ref:v,className:"relative flex items-center gap-1",children:[O,Q,pe]}),e[44]=Q,e[45]=pe,e[46]=ce):ce=e[46];let ne;e[47]!==B||e[48]!==ce?(ne=T.jsxs("div",{className:"flex flex-col gap-0.5",children:[B,ce]}),e[47]=B,e[48]=ce,e[49]=ne):ne=e[49];let te;return e[50]!==p||e[51]!==I||e[52]!==ne?(te=T.jsxs("div",{ref:p,className:"flex shrink-0 items-center gap-3.5 lg:gap-5",children:[I,ne]}),e[50]=p,e[51]=I,e[52]=ne,e[53]=te):te=e[53],te}function DP(r){return!r}function Qy(r){const e=_e.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=qe("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=qe("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=qe("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 MP(r){const e=_e.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]=Ne.useState(h),[p,g]=Ne.useState(h?1:0);h!==v&&(d(h),h&&g(LP));const m=Ne.useRef(null),y=Ne.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 _=Ne.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 Zo=Math.abs(vt.trx-vt.rx)<.02&&Math.abs(vt.tryy-vt.ry)<.02;vt.hovering||!Zo?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(),Zo=(ft.clientX-vt.left)/vt.width,fh=(ft.clientY-vt.top)/vt.height,hh=_.current;hh.hovering=!0,hh.trx=(.5-fh)*28,hh.tryy=(Zo-.5)*28,ht.style.setProperty("--mx",`${(Zo*100).toFixed(1)}%`),ht.style.setProperty("--my",`${(fh*100).toFixed(1)}%`),ht.style.setProperty("--posx",`${(20+Zo*60).toFixed(1)}%`),ht.style.setProperty("--posy",`${(20+fh*60).toFixed(1)}%`),ht.style.setProperty("--active","1"),S()},e[2]=w):w=e[2];const A=w;let C;e[3]===Symbol.for("react.memo_cache_sentinel")?(C=()=>{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]=C):C=e[3];const D=C;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?T2(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 G;e[15]===Symbol.for("react.memo_cache_sentinel")?(G=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]=G):G=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,G]}),e[16]=B,e[17]=F,e[18]=Y):Y=e[18];const X=Y,q=h&&p>0?"true":"false";let Q;e[19]!==k?(Q={"--tone":k},e[19]=k,e[20]=Q):Q=e[20];const pe=Q;let ce,ne,te,W;e[21]===Symbol.for("react.memo_cache_sentinel")?(ce={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)"},ne=T.jsx("div",{className:"holo-foil pointer-events-none absolute inset-0 z-30","aria-hidden":!0}),te=T.jsx("div",{className:"holo-lines pointer-events-none absolute inset-0 z-30","aria-hidden":!0}),W=T.jsx("div",{className:"holo-glare pointer-events-none absolute inset-0 z-40","aria-hidden":!0}),e[21]=ce,e[22]=ne,e[23]=te,e[24]=W):(ce=e[21],ne=e[22],te=e[23],W=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(Jy,{score:a,active:h,compact:!0})}),T.jsx("div",{className:"hidden lg:block",children:T.jsx(Jy,{score:a,active:h})})]}),e[26]=h,e[27]=a,e[28]=K):K=e[28];const Se=h?"true":"false",ye=h?"140ms":"0ms";let we;e[29]!==ye?(we={color:N.ink,transitionDelay:ye},e[29]=ye,e[30]=we):we=e[30];let ve;e[31]!==t||e[32]!==Se||e[33]!==we?(ve=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]=ve):ve=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:qe("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(Qy,{deviceCluster:T.jsx(Ky,{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]!==X||e[52]!==K||e[53]!==ve||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:[X,K,ve,Ve,Lr]}),e[51]=X,e[52]=K,e[53]=ve,e[54]=Ve,e[55]=Lr,e[56]=Oe):Oe=e[56];let Ze;e[57]!==s||e[58]!==o||e[59]!==l||e[60]!==i||e[61]!==n?(Ze=T.jsx("div",{className:"hidden lg:block",children:T.jsx(Qy,{deviceCluster:T.jsx(Ky,{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]=Ze):Ze=e[62];let He;e[63]!==Oe||e[64]!==Ze?(He=T.jsxs("div",{className:"relative flex min-h-0 flex-1 flex-col overflow-hidden rounded-[24px]",style:ce,children:[ne,te,W,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,Ze]})]}),e[63]=Oe,e[64]=Ze,e[65]=He):He=e[65];let ur;e[66]!==pe||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:pe,children:He}),e[66]=pe,e[67]=He,e[68]=ur):ur=e[68];let Ei;return e[69]!==p||e[70]!==q||e[71]!==ur?(Ei=T.jsx("div",{className:"holo-stage flex h-full w-full items-center justify-center px-3 py-2 sm:px-6",onMouseMove:A,onMouseLeave:D,children:T.jsx("div",{"data-enter":q,className:"holo-card h-full w-full max-w-[1080px]",children:ur},p)}),e[69]=p,e[70]=q,e[71]=ur,e[72]=Ei):Ei=e[72],Ei}function LP(r){return r+1}const IP="Acesse a análise completa e",PP="opere seu site no piloto automático.",kP="389 verificações em 15 dimensões, cada problema com uma",RP="próxima ação clara. A Deco corrige por você.",EP="Ver diagnóstico completo",NP=N.forest,OP=N.lime,e0=[{label:"SEO",icon:"search",color:"#ffc116"},{label:"Busca por IA",icon:"smart_toy",color:"#14b8a6"},{label:"Performance",icon:"bolt",color:"#a595ff"},{label:"Conversão",icon:"shopping_cart",color:"#ffc116"},{label:"Rastreamento",icon:"monitoring",color:"#6e9fdb"},{label:"Acessibilidade",icon:"accessibility_new",color:"#b7a8ff"},{label:"Segurança",icon:"shield",color:"#f0846b"},{label:"Conteúdo",icon:"article",color:"#ffc116"},{label:"Analytics & Funil",icon:"bar_chart",color:"#a3c73a"}],BP=[{label:"Conversão",score:42,color:"#6e9fdb"},{label:"Performance",score:35,color:"#a595ff"},{label:"SEO",score:54,color:"#f0b613"},{label:"Busca por IA (GEO)",score:67,color:"#14b8a6"},{label:"Acessibilidade",score:48,color:"#8aa9ff"},{label:"Segurança",score:31,color:"#f0846b"},{label:"Analytics & Funil",score:75,color:"#8caa25"}],t0=14,r0=[{title:"Corrigir LCP acima de 4s na home",level:"Alta",color:"#d43d3d"},{title:"Adicionar canonical em 12 páginas",level:"Alta",color:"#d43d3d"},{title:"Liberar GPTBot no robots.txt",level:"Média",color:"#f0b613"},{title:"Corrigir GA4 duplicando eventos",level:"Alta",color:"#d43d3d"},{title:"Adicionar alt em 18 imagens",level:"Média",color:"#f0b613"},{title:"Reduzir checkout para 3 campos",level:"Alta",color:"#d43d3d"},{title:"Ativar HSTS e CSP",level:"Média",color:"#f0b613"}],zP=7,Tc=16,VP=["#8caa2510","#cfe8b8","#9fd07f","#5fa843","#0c5122"];function FP(r,e){return(r*3+e*5+r*e%4)%5}const GP=[{label:"Tempo médio até corrigir",value:"3 dias"},{label:"Correções esta semana",value:"7"},{label:"Em revisão",value:"2"}];function HP(r){const e=_e.c(14),{label:t,icon:a,color:n}=r;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i={border:"1px solid rgba(255,255,255,0.25)"},e[0]=i):i=e[0];let o;e[1]!==n?(o={color:n},e[1]=n,e[2]=o):o=e[2];let s;e[3]!==a?(s=T.jsx(dt,{name:a,size:"xl"}),e[3]=a,e[4]=s):s=e[4];let l;e[5]!==o||e[6]!==s?(l=T.jsx("span",{style:o,children:s}),e[5]=o,e[6]=s,e[7]=l):l=e[7];let u;e[8]===Symbol.for("react.memo_cache_sentinel")?(u={color:"#ffffff"},e[8]=u):u=e[8];let c;e[9]!==t?(c=T.jsx("span",{className:"whitespace-nowrap text-[15px]",style:u,children:t}),e[9]=t,e[10]=c):c=e[10];let f;return e[11]!==l||e[12]!==c?(f=T.jsxs("span",{className:"flex shrink-0 items-center gap-2.5 rounded-full py-2 pl-3 pr-5",style:i,children:[l,c]}),e[11]=l,e[12]=c,e[13]=f):f=e[13],f}function jP(r){const e=_e.c(3),{score:t,color:a}=r,n=Math.round(t/100*t0);let i;return e[0]!==a||e[1]!==n?(i=T.jsx("span",{className:"flex flex-1 items-center gap-[3px]",children:Array.from({length:t0},(o,s)=>T.jsx("span",{className:"h-2.5 flex-1 rounded-[3px]",style:{background:s<n?a:"rgba(40,37,36,0.08)"}},s))}),e[0]=a,e[1]=n,e[2]=i):i=e[2],i}function WP(r){const e=_e.c(16),{domain:t,faviconUrl:a,initial:n}=r,[i,o]=Ne.useState(!1);let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={boxShadow:"0 -20px 60px rgba(3,32,14,0.35)"},e[0]=s):s=e[0];let l;e[1]===Symbol.for("react.memo_cache_sentinel")?(l={border:`1px solid ${N.border}`},e[1]=l):l=e[1];let u;e[2]!==i||e[3]!==a||e[4]!==n?(u=T.jsx("span",{className:"grid size-7 shrink-0 place-items-center overflow-hidden rounded-md",style:l,children:i?T.jsx("span",{className:"text-[11px] font-semibold",style:{color:N.forest},children:n}):T.jsx("img",{src:a,alt:"",className:"size-4 object-contain",onError:()=>o(!0)})}),e[2]=i,e[3]=a,e[4]=n,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]!==t?(f=T.jsx("span",{className:"min-w-0 flex-1 truncate text-[15px] font-medium",style:c,children:t}),e[7]=t,e[8]=f):f=e[8];let h;e[9]===Symbol.for("react.memo_cache_sentinel")?(h=T.jsx("span",{className:"text-[12px] font-semibold uppercase tracking-wide",style:{color:N.soft},children:"Diagnóstico"}),e[9]=h):h=e[9];let v;e[10]!==u||e[11]!==f?(v=T.jsxs("div",{className:"flex items-center gap-2.5",children:[u,f,h]}),e[10]=u,e[11]=f,e[12]=v):v=e[12];let d;e[13]===Symbol.for("react.memo_cache_sentinel")?(d=T.jsx("ul",{className:"mt-5 flex flex-col gap-4",children:BP.map($P)}),e[13]=d):d=e[13];let p;return e[14]!==v?(p=T.jsxs("div",{className:"w-[min(92vw,600px)] rounded-t-2xl bg-white p-6 sm:p-7",style:s,children:[v,d]}),e[14]=v,e[15]=p):p=e[15],p}function $P(r){return T.jsxs("li",{className:"flex flex-col gap-1.5",children:[T.jsxs("div",{className:"flex items-baseline justify-between",children:[T.jsx("span",{className:"text-[11px] font-semibold uppercase tracking-wide",style:{color:N.ink},children:r.label}),T.jsxs("span",{className:"text-[15px] font-semibold tabular-nums",style:{color:N.ink},children:[r.score,T.jsx("span",{className:"text-[11px] font-normal",style:{color:N.faint},children:"/100"})]})]}),T.jsx(jP,{score:r.score,color:r.color})]},r.label)}function UP(r){const e=_e.c(14),{title:t,level:a,color:n}=r;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i={border:`1px solid ${N.border}`,boxShadow:"0 6px 20px rgba(3,32,14,0.12)"},e[0]=i):i=e[0];let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o=T.jsx("span",{className:"mt-0.5 size-3.5 shrink-0 rounded-full",style:{border:`1.5px solid ${N.faint}`}}),e[1]=o):o=e[1];let s;e[2]===Symbol.for("react.memo_cache_sentinel")?(s={color:N.ink},e[2]=s):s=e[2];let l;e[3]!==t?(l=T.jsxs("div",{className:"flex items-start gap-2",children:[o,T.jsx("span",{className:"text-[12.5px] font-medium leading-snug",style:s,children:t})]}),e[3]=t,e[4]=l):l=e[4];let u;e[5]===Symbol.for("react.memo_cache_sentinel")?(u={background:"rgba(40,37,36,0.04)",color:N.muted},e[5]=u):u=e[5];let c;e[6]!==n?(c=T.jsx("span",{className:"size-1.5 rounded-full",style:{background:n}}),e[6]=n,e[7]=c):c=e[7];let f;e[8]!==a||e[9]!==c?(f=T.jsxs("span",{className:"mt-2 ml-5 inline-flex items-center gap-1.5 rounded-md px-2 py-0.5 text-[11px]",style:u,children:[c,a]}),e[8]=a,e[9]=c,e[10]=f):f=e[10];let h;return e[11]!==l||e[12]!==f?(h=T.jsxs("div",{className:"rounded-xl bg-white p-3",style:i,children:[l,f]}),e[11]=l,e[12]=f,e[13]=h):h=e[13],h}function YP(){const r=_e.c(2);let e;r[0]===Symbol.for("react.memo_cache_sentinel")?(e={maskImage:"linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent)",WebkitMaskImage:"linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent)"},r[0]=e):e=r[0];let t;return r[1]===Symbol.for("react.memo_cache_sentinel")?(t=T.jsx("div",{className:"h-[400px] w-[248px] overflow-hidden",style:e,children:T.jsx("div",{className:"report-task-track gap-3",children:[...r0,...r0].map(XP)})}),r[1]=t):t=r[1],t}function XP(r,e){return T.jsx(UP,{...r},`${r.title}-${e}`)}function ZP(){const r=_e.c(4);let e;r[0]===Symbol.for("react.memo_cache_sentinel")?(e={boxShadow:"0 20px 50px rgba(3,32,14,0.22)"},r[0]=e):e=r[0];let t;r[1]===Symbol.for("react.memo_cache_sentinel")?(t=T.jsx("span",{className:"text-[11px] font-semibold uppercase tracking-wide",style:{color:N.soft},children:"Ritmo de entrega"}),r[1]=t):t=r[1];let a;r[2]===Symbol.for("react.memo_cache_sentinel")?(a=T.jsx("div",{className:"mt-4 grid gap-[3px]",style:{gridTemplateColumns:`repeat(${Tc}, 1fr)`},children:Array.from({length:zP*Tc},KP)}),r[2]=a):a=r[2];let n;return r[3]===Symbol.for("react.memo_cache_sentinel")?(n=T.jsxs("div",{className:"w-[320px] rounded-2xl bg-white p-5",style:e,children:[t,a,T.jsx("ul",{className:"mt-4 flex flex-col",children:GP.map(qP)})]}),r[3]=n):n=r[3],n}function qP(r){return T.jsxs("li",{className:"flex items-center justify-between py-2.5 text-[13px]",style:{borderTop:`1px solid ${N.border}`},children:[T.jsx("span",{style:{color:N.muted},children:r.label}),T.jsx("span",{className:"font-semibold",style:{color:N.ink},children:r.value})]},r.label)}function KP(r,e){const t=Math.floor(e/Tc),a=e%Tc;return T.jsx("span",{className:"aspect-square rounded-[3px]",style:{background:VP[FP(t,a)]}},e)}function JP(r){const e=_e.c(71),{domain:t,faviconUrl:a,initial:n,checksProbed:i,checksTotal:o,active:s}=r,l=s===void 0?!1:s,u=l?"true":"false",c=Og(t),f=typeof i=="number"&&typeof o=="number";let h;e[0]===Symbol.for("react.memo_cache_sentinel")?(h={background:NP},e[0]=h):h=e[0];let v;e[1]===Symbol.for("react.memo_cache_sentinel")?(v=T.jsx("div",{"aria-hidden":!0,className:"pointer-events-none absolute left-1/2 top-[52%] size-[900px] -translate-x-1/2 rounded-full",style:{background:"radial-gradient(circle, rgba(208,236,26,0.08), transparent 62%)"}}),e[1]=v):v=e[1];let d;e[2]!==i||e[3]!==o||e[4]!==f||e[5]!==u?(d=f?T.jsxs("span",{className:"reveal rounded-full px-4 py-1.5 text-[15px]","data-show":u,style:{border:"1px solid rgba(255,255,255,0.25)"},children:[T.jsxs("span",{style:{color:"rgba(255,255,255,0.5)"},children:[i,"/"]}),T.jsx("span",{style:{color:"#ffffff"},children:o})]}):null,e[2]=i,e[3]=o,e[4]=f,e[5]=u,e[6]=d):d=e[6];const p=l?"60ms":"0ms";let g;e[7]!==p?(g={color:"#ffffff",transitionDelay:p},e[7]=p,e[8]=g):g=e[8];let m;e[9]===Symbol.for("react.memo_cache_sentinel")?(m=T.jsx("br",{className:"hidden sm:block"}),e[9]=m):m=e[9];let y;e[10]!==u||e[11]!==g?(y=T.jsxs("h2",{className:"reveal text-balance font-normal leading-[1.15] tracking-[-0.015em] text-[clamp(1.5rem,6vw,2.75rem)]","data-show":u,style:g,children:[IP,m," ",PP]}),e[10]=u,e[11]=g,e[12]=y):y=e[12];const x=l?"130ms":"0ms";let _;e[13]!==x?(_={color:"rgba(255,255,255,0.75)",transitionDelay:x},e[13]=x,e[14]=_):_=e[14];let b;e[15]===Symbol.for("react.memo_cache_sentinel")?(b=T.jsx("br",{className:"hidden sm:block"}),e[15]=b):b=e[15];let S;e[16]!==u||e[17]!==_?(S=T.jsxs("p",{className:"reveal max-w-[520px] text-[15px] leading-relaxed sm:text-base","data-show":u,style:_,children:[kP,b," ",RP]}),e[16]=u,e[17]=_,e[18]=S):S=e[18];let w;e[19]!==t?(w=K=>wf(K,{domain:t,placement:"cta_slide",slideKey:"cta"}),e[19]=t,e[20]=w):w=e[20];const A=l?"220ms":"0ms";let C;e[21]!==A?(C={background:OP,color:N.forest,transitionDelay:A},e[21]=A,e[22]=C):C=e[22];let D,M;e[23]===Symbol.for("react.memo_cache_sentinel")?(D=T.jsx("span",{children:EP}),M=T.jsx(dt,{name:"arrow_forward",size:"medium"}),e[23]=D,e[24]=M):(D=e[23],M=e[24]);let I;e[25]!==c||e[26]!==u||e[27]!==w||e[28]!==C?(I=T.jsxs("a",{href:c,onClick:w,className:"reveal mt-1 inline-flex h-12 items-center gap-2 whitespace-nowrap rounded-full px-8 text-base font-medium transition-transform duration-300 ease-out hover:scale-105","data-show":u,style:C,children:[D,M]}),e[25]=c,e[26]=u,e[27]=w,e[28]=C,e[29]=I):I=e[29];let P;e[30]!==S||e[31]!==I||e[32]!==d||e[33]!==y?(P=T.jsxs("div",{className:"relative z-10 flex max-w-[820px] flex-col items-center gap-5 text-center",children:[d,y,S,I]}),e[30]=S,e[31]=I,e[32]=d,e[33]=y,e[34]=P):P=e[34];const k=l?"300ms":"0ms";let R;e[35]!==k?(R={transitionDelay:k,maskImage:"linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent)",WebkitMaskImage:"linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent)"},e[35]=k,e[36]=R):R=e[36];let E;e[37]===Symbol.for("react.memo_cache_sentinel")?(E=T.jsx("div",{className:"report-marquee-track gap-2",children:[...e0,...e0].map(QP)}),e[37]=E):E=e[37];let B;e[38]!==u||e[39]!==R?(B=T.jsx("div",{className:"reveal relative z-10 w-[calc(100%+4rem)] shrink-0 overflow-hidden sm:w-[calc(100%+8rem)]","data-show":u,style:R,children:E}),e[38]=u,e[39]=R,e[40]=B):B=e[40];const O=l?"460ms":"0ms";let V;e[41]!==O?(V={transitionDelay:O},e[41]=O,e[42]=V):V=e[42];let F;e[43]===Symbol.for("react.memo_cache_sentinel")?(F=T.jsx(YP,{}),e[43]=F):F=e[43];let G;e[44]!==u||e[45]!==V?(G=T.jsx("div",{className:"reveal pointer-events-none relative z-0 -mr-24 mt-3 hidden shrink-0 -rotate-[5deg] xl:block","data-show":u,style:V,children:F}),e[44]=u,e[45]=V,e[46]=G):G=e[46];const Y=l?"380ms":"0ms";let X;e[47]!==Y?(X={transitionDelay:Y},e[47]=Y,e[48]=X):X=e[48];let q;e[49]!==t||e[50]!==a||e[51]!==n?(q=T.jsx(WP,{domain:t,faviconUrl:a,initial:n}),e[49]=t,e[50]=a,e[51]=n,e[52]=q):q=e[52];let Q;e[53]!==u||e[54]!==X||e[55]!==q?(Q=T.jsx("div",{className:"reveal relative z-20 shrink-0","data-show":u,style:X,children:q}),e[53]=u,e[54]=X,e[55]=q,e[56]=Q):Q=e[56];const pe=l?"440ms":"0ms";let ce;e[57]!==pe?(ce={transitionDelay:pe},e[57]=pe,e[58]=ce):ce=e[58];let ne;e[59]===Symbol.for("react.memo_cache_sentinel")?(ne=T.jsx(ZP,{}),e[59]=ne):ne=e[59];let te;e[60]!==u||e[61]!==ce?(te=T.jsx("div",{className:"reveal pointer-events-none relative z-0 -ml-24 mt-3 hidden shrink-0 rotate-[6deg] xl:block","data-show":u,style:ce,children:ne}),e[60]=u,e[61]=ce,e[62]=te):te=e[62];let W;e[63]!==G||e[64]!==Q||e[65]!==te?(W=T.jsxs("div",{className:"relative z-10 flex w-full flex-1 items-start justify-center overflow-hidden",children:[G,Q,te]}),e[63]=G,e[64]=Q,e[65]=te,e[66]=W):W=e[66];let j;return e[67]!==P||e[68]!==B||e[69]!==W?(j=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 items-center gap-8 overflow-hidden rounded-none px-6 pb-0 pt-8 sm:rounded-3xl sm:px-8 sm:pt-10 lg:gap-10 lg:pt-14 [@media(max-height:780px)]:lg:gap-6 [@media(max-height:780px)]:lg:pt-10",style:h,children:[v,P,B,W]})}),e[67]=P,e[68]=B,e[69]=W,e[70]=j):j=e[70],j}function QP(r,e){return T.jsx(HP,{...r},`${r.label}-${e}`)}const ek={good:{ratio:.16},warn:{ratio:.5},bad:{ratio:.84}},tk=[N.soft,N.warn,"#d43d3d"],rk=["rgba(140,170,37,0.16)","rgba(240,182,19,0.16)","rgba(212,61,61,0.14)"],ak=r=>r<1/3?0:r<2/3?1:2;function nk(r){const e=_e.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=qe("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??ek[p.status].ratio)),y=tk[ak(m)];return T.jsxs("div",{className:qe("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:qe("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:qe("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:[rk.map(ik),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 ik(r,e){return T.jsx("span",{className:"h-full flex-1 rounded-full",style:{background:r}},e)}const ok={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)"}},sk=2;function lk(r){const e=r.match(/^(.*?)\s*\((\d+)\/(\d+)\)$/);return e?{name:e[1]??"",chip:`${e[2]} de ${e[3]}`}:{name:r}}function uk(r){const e=_e.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(ck);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=ok[m.tone??"neutral"],_=Math.max(sk,Math.min(100,m.ratio*100)),{name:b,chip:S}=lk(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 ck(r,e){return(Number(r.value)||0)-(Number(e.value)||0)}function fk(r){return!r||r<=0?at.bad:r<=3?at.good:r<=10?N.warn:at.bad}function hk(r){return r&&r>0?`${r}ª`:"—"}function vk(r){const e=_e.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 A;e[22]===Symbol.for("react.memo_cache_sentinel")?(A=T.jsx("span",{className:"w-12 shrink-0 text-right sm:w-16",children:"Posição"}),e[22]=A):A=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,A]}),e[23]=w,e[24]=f):f=e[24],l="flex flex-col",u=x.map((C,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:C.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:C.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:fk(C.position)},children:hk(C.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 ph={error:{color:"#d43d3d",icon:"error"},warning:{color:N.warn,icon:"warning"},notice:{color:N.notice,icon:"info"}};function dk(r){const e=_e.c(30),{headline:t,entries:a,domain:n,onNext:i,moreCount:o,active:s}=r,l=Og(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:ph.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,A)=>{const C=ph[w.severity]??ph.notice;return T.jsxs("li",{className:"reveal flex items-center gap-4 py-[min(9px,1.3svh)]","data-show":f,style:{...A<a.length-1?{borderBottom:`1px solid ${N.border}`}:{},transitionDelay:s?`${60+A*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:C.color},"aria-label":w.severity,children:T.jsx(dt,{name:C.icon,size:"large"})})]},A)},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=>wf(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 pk={up:at.good,down:at.bad,neutral:N.muted},gk={up:"↑",down:"↓",neutral:"→"};function C2(r,e){return r?at[r]:e?N.muted:N.ink}function mk(r){const e=_e.c(8),{cell:t}=r;let a;e[0]!==t.muted||e[1]!==t.tone?(a=C2(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 yk(r){const e=_e.c(14),{cell:t}=r,a=t.deltaDir??"neutral";let n;e[0]!==t.muted||e[1]!==t.tone?(n=C2(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:pk[a]},children:[gk[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 xk(r){const e=_e.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 _k(r){const e=_e.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 bk(r){const e=_e.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 gh(r){const e=_e.c(10),{cell:t}=r;switch(t.kind){case"text":{let a;return e[0]!==t?(a=T.jsx(mk,{cell:t}),e[0]=t,e[1]=a):a=e[1],a}case"number":{let a;return e[2]!==t?(a=T.jsx(yk,{cell:t}),e[2]=t,e[3]=a):a=e[3],a}case"sparkline":{let a;return e[4]!==t?(a=T.jsx(xk,{cell:t}),e[4]=t,e[5]=a):a=e[5],a}case"badge":{let a;return e[6]!==t?(a=T.jsx(_k,{cell:t}),e[6]=t,e[7]=a):a=e[7],a}case"score":{let a;return e[8]!==t?(a=T.jsx(bk,{cell:t}),e[8]=t,e[9]=a):a=e[9],a}default:return t}}function A2(r){const e=_e.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 C;e[11]!==l||e[12]!==i||e[13]!==s?(C=(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(gh,{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(gh,{cell:I})})]},P))})]},M),e[11]=l,e[12]=i,e[13]=s,e[14]=C):C=e[14],h=o.map(C),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 C;e[22]!==u?(C=(D,M)=>T.jsx("th",{className:qe("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]=C):C=e[23],m=i.map(C),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 C;e[31]!==i||e[32]!==u||e[33]!==s||e[34]!==o.length?(C=(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:qe("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(gh,{cell:I})},P)})},M),e[31]=i,e[32]=u,e[33]=s,e[34]=o.length,e[35]=C):C=e[35],x=o.map(C),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 A;return e[48]!==c||e[49]!==w?(A=T.jsxs("div",{className:"flex h-full flex-col",children:[c,w]}),e[48]=c,e[49]=w,e[50]=A):A=e[50],A}const D2={Crítico:{color:"#ef4444",tint:"rgba(239,68,68,0.12)"},Atenção:{color:"#d98324",tint:"rgba(217,131,36,0.12)"}},M2={color:N.muted,tint:"rgba(13,9,6,0.06)"};function Sk(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 a0(r){const e=_e.c(6),{severity:t}=r,a=D2[t]??M2;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 n0(r){const e=_e.c(2),{severity:t}=r,a=D2[t]??M2;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 wk(r){const{eyebrow:e,headline:t,annotation:a,rows:n,active:i}=r,o=Sk(n);if(!o)return T.jsx(A2,{...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(n0,{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(a0,{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(n0,{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(a0,{severity:c.severity})})]},f))})]})]})}const Tk={1:"#c8a24b",2:"#9aa0a6",3:"#b07a48"};function Ck(r){const e=_e.c(28),{product:t,rank:a,active:n,delay:i}=r,[o,s]=Ne.useState(!!t.image),l=Tk[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 Ak(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 Dk(r){const e=_e.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=qe("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",Ak(g.length));let m;e[15]!==s?(m=(y,x)=>T.jsx(Ck,{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 i0(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 Mk(r){return!!r&&!/\s/.test(r)&&/\.[a-z]{2,}$/i.test(r.replace(/\/+$/,""))}function Lk(r){const e=_e.c(17),{name:t,className:a}=r,[n,i]=Ne.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=Mk(t)&&!n,e[4]=n,e[5]=t,e[6]=c):c=e[6];const f=c;let h;e[7]!==a?(h=qe("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 Ik(r){return r?r.replace(/^https?:\/\//,"").replace(/^www\./,"").replace(/\/+$/,""):""}const o0="h-[min(2rem,3.4svh)] w-[min(2rem,3.4svh)] sm:h-8 sm:w-8",s0=r=>r==="good"?0:r==="bad"?2:1;function Pk(r){const e=_e.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(Rk).sort(kk);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,A=!!(b.rival||b.rivalName),C=i0(b.you),D=i0(b.rival),I=C!=null&&D!=null&&C+D>0?Math.min(.9,Math.max(.1,C/(C+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?`${Ik(b.rivalName)||i||"Concorrente"} lidera`:A?"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:qe("shrink-0 rounded-[10px] border bg-white p-1",o0),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}})}),A&&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(Lk,{name:b.rivalName,className:o0})]})]})]},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 kk(r,e){return s0(r.d.tone)-s0(e.d.tone)||r.i-e.i}function Rk(r,e){return{d:r,i:e}}var Wd=function(r,e){return Wd=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])},Wd(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");Wd(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var Ek=(function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r})(),Nk=(function(){function r(){this.browser=new Ek,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 Nk;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):Ok(navigator.userAgent,Ae);function Ok(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 Bg=12,L2="sans-serif",fn=Bg+"px "+L2,Bk=20,zk=100,Vk="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Fk(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)-Bk)/zk;e[a]=n}return e}var Gk=Fk(Vk),hn={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var r,e;return function(t,a){if(!r){var n=hn.createCanvas();r=n&&n.getContext("2d")}if(r)return e!==a&&(e=r.font=a||fn),r.measureText(t);t=t||"",a=a||fn;var i=/((?:\d+)?\.?\d*)px/.exec(a),o=i&&+i[1]||Bg,s=0;if(a.indexOf("mono")>=0)s=o*t.length;else for(var l=0;l<t.length;l++){var u=Gk[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}},I2=oa(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,e){return r["[object "+e+"]"]=!0,r},{}),P2=oa(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,e){return r["[object "+e+"Array]"]=!0,r},{}),Ro=Object.prototype.toString,Tf=Array.prototype,Hk=Tf.forEach,jk=Tf.filter,zg=Tf.slice,Wk=Tf.map,l0=(function(){}).constructor,ql=l0?l0.prototype:null,Vg="__proto__",$k=2311;function k2(){return $k++}function Fg(){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=Ro.call(r);if(t==="[object Array]"){if(!Bs(r)){e=[];for(var a=0,n=r.length;a<n;a++)e[a]=le(r[a])}}else if(P2[t]){if(!Bs(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(!I2[t]&&!Bs(r)&&!So(r)){e={};for(var o in r)r.hasOwnProperty(o)&&o!==Vg&&(e[o]=le(r[o]))}return e}function ge(r,e,t){if(!se(e)||!se(r))return t?le(e):r;for(var a in e)if(e.hasOwnProperty(a)&&a!==Vg){var n=r[a],i=e[a];se(i)&&se(n)&&!$(i)&&!$(n)&&!So(i)&&!So(n)&&!u0(i)&&!u0(n)&&!Bs(i)&&!Bs(n)?ge(n,i,t):(t||!(a in r))&&(r[a]=le(e[a]))}return r}function Gg(r,e){for(var t=r[0],a=1,n=r.length;a<n;a++)t=ge(t,r[a],e);return t}function H(r,e){if(Object.assign)Object.assign(r,e);else for(var t in e)e.hasOwnProperty(t)&&t!==Vg&&(r[t]=e[t]);return r}function oe(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 be(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 Uk(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 oe(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===Hk)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 Hg(r);if(r.map&&r.map===Wk)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 oa(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 Hg(r);if(r.filter&&r.filter===jk)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 Yk(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 Xk(r,e){for(var t=[],a=2;a<arguments.length;a++)t[a-2]=arguments[a];return function(){return r.apply(e,t.concat(zg.call(arguments)))}}var ee=ql&&ie(ql.bind)?ql.call.bind(ql.bind):Xk;function de(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return function(){return r.apply(this,e.concat(zg.call(arguments)))}}function $(r){return Array.isArray?Array.isArray(r):Ro.call(r)==="[object Array]"}function ie(r){return typeof r=="function"}function J(r){return typeof r=="string"}function $d(r){return Ro.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 u0(r){return!!I2[Ro.call(r)]}function tr(r){return!!P2[Ro.call(r)]}function So(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function Cf(r){return r.colorStops!=null}function Zk(r){return r.image!=null}function qk(r){return Ro.call(r)==="[object RegExp]"}function Qs(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 he(r,e){return r??e}function na(r,e,t){return r??e??t}function Hg(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return zg.apply(r,e)}function jg(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 R2="__ec_primitive__";function Cc(r){r[R2]=!0}function Bs(r){return r[R2]}var Kk=(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})(),E2=typeof Map=="function";function Jk(){return E2?new Map:new Kk}var Qk=(function(){function r(e){var t=$(e);this.data=Jk();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 E2?Array.from(e):e},r.prototype.removeKey=function(e){this.data.delete(e)},r})();function ae(r){return new Qk(r)}function el(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 Af(r,e){var t;if(Object.create)t=Object.create(r);else{var a=function(){};a.prototype=r,t=new a}return e&&H(t,e),t}function N2(r){var e=r.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function re(r,e){return r.hasOwnProperty(e)}function nt(){}var tc=180/Math.PI;function Ci(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 ba(r){return[r[0],r[1]]}function e5(r,e,t){return r[0]=e,r[1]=t,r}function c0(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r}function Ud(r,e,t,a){return r[0]=e[0]+t[0]*a,r[1]=e[1]+t[1]*a,r}function ti(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r}function Yd(r){return Math.sqrt(t5(r))}function t5(r){return r[0]*r[0]+r[1]*r[1]}function rc(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r}function Eo(r,e){var t=Yd(e);return t===0?(r[0]=0,r[1]=0):(r[0]=e[0]/t,r[1]=e[1]/t),r}function Xd(r,e){return Math.sqrt((r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1]))}var qa=Xd;function r5(r,e){return(r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1])}var ui=r5;function ac(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 Ka(r,e,t){return r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r}function Ja(r,e,t){return r[0]=Math.max(e[0],t[0]),r[1]=Math.max(e[1],t[1]),r}var Oi=(function(){function r(e,t){this.target=e,this.topTarget=t&&t.topTarget}return r})(),a5=(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 Oi(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 Oi(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 Oi(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new Oi(s,e),"dragenter",e.event))}},r.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new Oi(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new Oi(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})(),n5=Math.log(2);function Zd(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)/n5);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]*Zd(r,e-1,c,u,n|d,i),v++)}return i[o]=f,f}function f0(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=Zd(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)*Zd(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 h0="___zrEVENTSAVED",mh=[];function i5(r,e,t,a,n){return qd(mh,e,a,n,!0)&&qd(r,t,mh[0],mh[1])}function qd(r,e,t,a,n){if(e.getBoundingClientRect&&Ae.domSupported&&!O2(e)){var i=e[h0]||(e[h0]={}),o=o5(e,i),s=s5(o,i,n);if(s)return s(r,t,a),!0}return!1}function o5(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 s5(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?f0(s,o):f0(o,s))}function O2(r){return r.nodeName.toUpperCase()==="CANVAS"}var l5=/([&<>"'])/g,u5={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Ht(r){return r==null?"":(r+"").replace(l5,function(e,t){return u5[t]})}var c5=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,yh=[],f5=Ae.browser.firefox&&+Ae.browser.version.split(".")[0]<39;function Kd(r,e,t,a){return t=t||{},a?v0(r,e,t):f5&&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):v0(r,e,t),t}function v0(r,e,t){if(Ae.domSupported&&r.getBoundingClientRect){var a=e.clientX,n=e.clientY;if(O2(r)){var i=r.getBoundingClientRect();t.zrX=a-i.left,t.zrY=n-i.top;return}else if(qd(yh,r,a,n)){t.zrX=yh[0],t.zrY=yh[1];return}}t.zrX=t.zrY=0}function Wg(r){return r||window.event}function pr(r,e,t){if(e=Wg(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&&Kd(r,o,e,t)}else{Kd(r,e,e,t);var i=h5(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&c5.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function h5(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 Jd(r,e,t,a){r.addEventListener(e,t,a)}function v5(r,e,t,a){r.removeEventListener(e,t,a)}var Aa=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function d0(r){return r.which===2||r.which===3}var d5=(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=Kd(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 xh)if(xh.hasOwnProperty(t)){var a=xh[t](this._track,e);if(a)return a}},r})();function p0(r){var e=r[1][0]-r[0][0],t=r[1][1]-r[0][1];return Math.sqrt(e*e+t*t)}function p5(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var xh={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=p0(a)/p0(n);!isFinite(i)&&(i=1),e.pinchScale=i;var o=p5(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 Df(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function $g(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 Sa(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 sa(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 Ai(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 Ug(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 No(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 g5(r){var e=or();return $g(e,r),e}var me=(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})(),Kl=Math.min,Jl=Math.max,bn=new me,Sn=new me,wn=new me,Tn=new me,qo=new me,Ko=new me,xe=(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=Kl(e.x,this.x),a=Kl(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Jl(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Jl(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 sa(i,i,[-t.x,-t.y]),Ug(i,i,[a,n]),sa(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?me.set(Ko,-p,0):me.set(Ko,g,0)):x<v&&(v=x,p<g?me.set(qo,p,0):me.set(qo,-g,0)),s<c||f<o?_>d&&(d=_,m<y?me.set(Ko,0,-m):me.set(Ko,0,y)):x<v&&(v=x,m<y?me.set(qo,0,m):me.set(qo,0,-y))}return t&&me.copy(t,h?qo:Ko),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}bn.x=wn.x=t.x,bn.y=Tn.y=t.y,Sn.x=Tn.x=t.x+t.width,Sn.y=wn.y=t.y+t.height,bn.transform(a),Tn.transform(a),Sn.transform(a),wn.transform(a),e.x=Kl(bn.x,Sn.x,wn.x,Tn.x),e.y=Kl(bn.y,Sn.y,wn.y,Tn.y);var l=Jl(bn.x,Sn.x,wn.x,Tn.x),u=Jl(bn.y,Sn.y,wn.y,Tn.y);e.width=l-e.x,e.height=u-e.y},r})(),B2="silent";function m5(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:y5}}function y5(){Aa(this.event)}var x5=(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),Jo=(function(){function r(e,t){this.x=e,this.y=t}return r})(),_5=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],_h=new xe(0,0,0,0),z2=(function(r){z(e,r);function e(t,a,n,i,o){var s=r.call(this)||this;return s._hovered=new Jo(0,0),s.storage=t,s.painter=a,s.painterRoot=i,s._pointerSize=o,n=n||new x5,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new a5(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(L(_5,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=V2(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 Jo(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 Jo(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=m5(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 Jo(t,a);if(g0(i,o,t,a,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new xe(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)&&(_h.copy(h.getBoundingRect()),h.transform&&_h.applyTransform(h.transform),_h.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(g0(s,o,y,x,n),o.target)return o}}return o},e.prototype.processGesture=function(t,a){this._gestureMgr||(this._gestureMgr=new d5);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 Jo;s.target=i.target,this.dispatchToElement(s,o,i.event)}},e})(Ar);L(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){z2.prototype[r]=function(e){var t=e.zrX,a=e.zrY,n=V2(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||qa(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,r,e)}});function b5(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?B2:!0}return!1}function g0(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=b5(o,t,a))&&(!e.topTarget&&(e.topTarget=o),s!==B2)){e.target=o;break}}}function V2(r,e,t){var a=r.painter;return e<0||e>a.getWidth()||t<0||t>a.getHeight()}var F2=32,Qo=7;function S5(r){for(var e=0;r>=F2;)e|=r&1,r>>=1;return r+e}function m0(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++;w5(r,e,n)}else for(;n<t&&a(r[n],r[n-1])>=0;)n++;return n-e}function w5(r,e,t){for(t--;e<t;){var a=r[e];r[e++]=r[t],r[t--]=a}}function y0(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 bh(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 Sh(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 T5(r,e){var t=Qo,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=Sh(r[g],r,d,p,0,e);d+=y,p-=y,p!==0&&(m=bh(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,A;;){S=0,w=0,A=!1;do if(e(r[x],o[y])<0){if(r[_++]=r[x++],w++,S=0,--g===0){A=!0;break}}else if(r[_++]=o[y++],S++,w=0,--d===1){A=!0;break}while((S|w)<b);if(A)break;do{if(S=Sh(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){A=!0;break}}if(r[_++]=r[x++],--g===0){A=!0;break}if(w=bh(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){A=!0;break}}if(r[_++]=o[y++],--d===1){A=!0;break}b--}while(S>=Qo||w>=Qo);if(A)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 A=0,C=0,D=!1;do if(e(o[x],r[y])<0){if(r[_--]=r[y--],A++,C=0,--d===0){D=!0;break}}else if(r[_--]=o[x--],C++,A=0,--g===1){D=!0;break}while((A|C)<w);if(D)break;do{if(A=d-Sh(o[x],r,v,d,d-1,e),A!==0){for(_-=A,y-=A,d-=A,S=_+1,b=y+1,m=A-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(C=g-bh(r[y],o,0,g,g-1,e),C!==0){for(_-=C,x-=C,g-=C,S=_+1,b=x+1,m=0;m<C;m++)r[S+m]=o[b+m];if(g<=1){D=!0;break}}if(r[_--]=r[y--],--d===0){D=!0;break}w--}while(A>=Qo||C>=Qo);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 nc(r,e,t,a){t||(t=0),a||(a=r.length);var n=a-t;if(!(n<2)){var i=0;if(n<F2){i=m0(r,t,a,e),y0(r,t,a,t+i,e);return}var o=T5(r,e),s=S5(n);do{if(i=m0(r,t,a,e),i<s){var l=n;l>s&&(l=s),y0(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,Cs=2,io=4,x0=!1;function wh(){x0||(x0=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function _0(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var C5=(function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=_0}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,nc(a,_0)},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)&&(wh(),c.z=0),isNaN(c.z2)&&(wh(),c.z2=0),isNaN(c.zlevel)&&(wh(),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=be(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})(),Ac;Ac=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 zs={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-zs.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?zs.bounceIn(r*2)*.5:zs.bounceOut(r*2-1)*.5+.5}},Ql=Math.pow,sn=Math.sqrt,Dc=1e-8,G2=1e-4,b0=sn(3),eu=1/3,Jr=Ci(),xr=Ci(),go=Ci();function Qa(r){return r>-Dc&&r<Dc}function H2(r){return r>Dc||r<-Dc}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 S0(r,e,t,a,n){var i=1-n;return 3*(((e-r)*i+2*(t-e)*n)*i+(a-t)*n*n)}function Mc(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(Qa(c)&&Qa(f))if(Qa(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(Qa(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=sn(p),x=c*s+1.5*o*(-f+y),_=c*s+1.5*o*(-f-y);x<0?x=-Ql(-x,eu):x=Ql(x,eu),_<0?_=-Ql(-_,eu):_=Ql(_,eu);var d=(-s-(x+_))/(3*o);d>=0&&d<=1&&(i[v++]=d)}else{var b=(2*c*s-3*o*f)/(2*sn(c*c*c)),S=Math.acos(b)/3,w=sn(c),A=Math.cos(S),d=(-s-2*w*A)/(3*o),m=(-s+w*(A+b0*Math.sin(S)))/(3*o),C=(-s+w*(A-b0*Math.sin(S)))/(3*o);d>=0&&d<=1&&(i[v++]=d),m>=0&&m<=1&&(i[v++]=m),C>=0&&C<=1&&(i[v++]=C)}}return v}function j2(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(Qa(o)){if(H2(i)){var u=-s/i;u>=0&&u<=1&&(n[l++]=u)}}else{var c=i*i-4*o*s;if(Qa(c))n[0]=-i/(2*o);else if(c>0){var f=sn(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 vn(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 W2(r,e,t,a,n,i,o,s,l,u,c){var f,h=.005,v=1/0,d,p,g,m;Jr[0]=l,Jr[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=ui(Jr,xr),g<v&&(f=y,v=g);v=1/0;for(var x=0;x<32&&!(h<G2);x++)d=f-h,p=f+h,xr[0]=mt(r,t,n,o,d),xr[1]=mt(e,a,i,s,d),g=ui(xr,Jr),d>=0&&g<v?(f=d,v=g):(go[0]=mt(r,t,n,o,p),go[1]=mt(e,a,i,s,p),m=ui(go,Jr),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)),sn(v)}function A5(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 Qd(r,e,t,a){return 2*((1-a)*(e-r)+a*(t-e))}function D5(r,e,t,a,n){var i=r-2*e+t,o=2*(e-r),s=r-a,l=0;if(Qa(i)){if(H2(o)){var u=-s/o;u>=0&&u<=1&&(n[l++]=u)}}else{var c=o*o-4*i*s;if(Qa(c)){var u=-o/(2*i);u>=0&&u<=1&&(n[l++]=u)}else if(c>0){var f=sn(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 $2(r,e,t){var a=r+t-2*e;return a===0?.5:(r-e)/a}function tl(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 U2(r,e,t,a,n,i,o,s,l){var u,c=.005,f=1/0;Jr[0]=o,Jr[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=ui(Jr,xr);v<f&&(u=h,f=v)}f=1/0;for(var d=0;d<32&&!(c<G2);d++){var p=u-c,g=u+c;xr[0]=Tt(r,t,n,p),xr[1]=Tt(e,a,i,p);var v=ui(xr,Jr);if(p>=0&&v<f)u=p,f=v;else{go[0]=Tt(r,t,n,g),go[1]=Tt(e,a,i,g);var m=ui(go,Jr);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)),sn(f)}function M5(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 L5=/cubic-bezier\(([0-9,\.e ]+)\)/;function Yg(r){var e=r&&L5.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:Mc(0,a,i,1,l,s)&&mt(0,n,o,1,s[0])}}}var I5=(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=ie(e)?e:zs[e]||Yg(e)},r})(),Y2=(function(){function r(e){this.value=e}return r})(),P5=(function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new Y2(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})(),Ml=(function(){function r(e){this._list=new P5,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 Y2(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})(),w0={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 k5(r){return r=Math.round(r),r<0?0:r>360?360:r}function rl(r){return r<0?0:r>1?1:r}function Th(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?zr(parseFloat(e)/100*255):zr(parseInt(e,10))}function ci(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?rl(parseFloat(e)/100):rl(parseFloat(e))}function Ch(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 en(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 ep(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var X2=new Ml(20),tu=null;function Bi(r,e){tu&&ep(tu,e),tu=X2.put(r,tu||e.slice())}function sr(r,e){if(r){e=e||[];var t=X2.get(r);if(t)return ep(e,t);r=r+"";var a=r.replace(/ /g,"").toLowerCase();if(a in w0)return ep(e,w0[a]),Bi(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),Bi(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),Bi(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=ci(u.pop());case"rgb":if(u.length>=3)return dr(e,Th(u[0]),Th(u[1]),Th(u[2]),u.length===3?c:ci(u[3])),Bi(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]=ci(u[3]),tp(u,e),Bi(r,e),e;case"hsl":if(u.length!==3){dr(e,0,0,0,1);return}return tp(u,e),Bi(r,e),e;default:return}}dr(e,0,0,0,1)}}function tp(r,e){var t=(parseFloat(r[0])%360+360)%360/360,a=ci(r[1]),n=ci(r[2]),i=n<=.5?n*(a+1):n+a-n*a,o=n*2-i;return e=e||[],dr(e,zr(Ch(o,i,t+1/3)*255),zr(Ch(o,i,t)*255),zr(Ch(o,i,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function R5(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 rp(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 wa(t,t.length===4?"rgba":"rgb")}}function Ah(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(en(o[0],s[0],l)),t[1]=zr(en(o[1],s[1],l)),t[2]=zr(en(o[2],s[2],l)),t[3]=rl(en(o[3],s[3],l)),t}}function E5(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=wa([zr(en(o[0],s[0],l)),zr(en(o[1],s[1],l)),zr(en(o[2],s[2],l)),rl(en(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:n,rightIndex:i,value:a}:u}}function Vs(r,e,t,a){var n=sr(r);if(r)return n=R5(n),e!=null&&(n[0]=k5(e)),t!=null&&(n[1]=ci(t)),a!=null&&(n[2]=ci(a)),wa(tp(n),"rgba")}function Lc(r,e){var t=sr(r);if(t&&e!=null)return t[3]=rl(e),wa(t,"rgba")}function wa(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 Ic(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 T0=new Ml(100);function ap(r){if(J(r)){var e=T0.get(r);return e||(e=rp(r,-.1),T0.put(r,e)),e}else if(Cf(r)){var t=H({},r);return t.colorStops=U(r.colorStops,function(a){return{offset:a.offset,color:rp(a.color,-.1)}}),t}return r}var Pc=Math.round;function al(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 C0=1e-4;function tn(r){return r<C0&&r>-C0}function ru(r){return Pc(r*1e3)/1e3}function np(r){return Pc(r*1e4)/1e4}function N5(r){return"matrix("+ru(r[0])+","+ru(r[1])+","+ru(r[2])+","+ru(r[3])+","+np(r[4])+","+np(r[5])+")"}var O5={left:"start",right:"end",center:"middle",middle:"middle"};function B5(r,e,t){return t==="top"?r+=e/2:t==="bottom"&&(r-=e/2),r}function z5(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function V5(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 Z2(r){return r&&!!r.image}function F5(r){return r&&!!r.svgElement}function Xg(r){return Z2(r)||F5(r)}function q2(r){return r.type==="linear"}function K2(r){return r.type==="radial"}function J2(r){return r&&(r.type==="linear"||r.type==="radial")}function Mf(r){return"url(#"+r+")"}function Q2(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 eT(r){var e=r.x||0,t=r.y||0,a=(r.rotation||0)*tc,n=he(r.scaleX,1),i=he(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("+Pc(o*tc)+"deg, "+Pc(s*tc)+"deg)"),l.join(" ")}var G5=(function(){return Ae.hasGlobalWindow&&ie(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}})(),ip=Array.prototype.slice;function ma(r,e,t){return(e-r)*t+r}function Dh(r,e,t,a){for(var n=e.length,i=0;i<n;i++)r[i]=ma(e[i],t[i],a);return r}function H5(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]=ma(e[o][s],t[o][s],a)}return r}function au(r,e,t,a){for(var n=e.length,i=0;i<n;i++)r[i]=e[i]+t[i]*a;return r}function A0(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 j5(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 W5(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]:ip.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 Fs(r){if(Ot(r)){var e=r.length;if(Ot(r[0])){for(var t=[],a=0;a<e;a++)t.push(ip.call(r[a]));return t}return ip.call(r)}return r}function ic(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 $5(r){return Ot(r&&r[0])?2:1}var nu=0,oc=1,tT=2,As=3,op=4,sp=5,D0=6;function M0(r){return r===op||r===sp}function iu(r){return r===oc||r===tT}var es=[0,0,0,0],U5=(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=D0,l=t;if(Ot(t)){var u=$5(t);s=u,(u===1&&!ke(t[0])||u===2&&!ke(t[0][0]))&&(o=!0)}else if(ke(t)&&!Qs(t))s=nu;else if(J(t))if(!isNaN(+t))s=nu;else{var c=sr(t);c&&(l=c,s=As)}else if(Cf(t)){var f=H({},l);f.colorStops=U(t.colorStops,function(v){return{offset:v.offset,color:sr(v.color)}}),q2(t)?s=op:K2(t)&&(s=sp),l=f}i===0?this.valType=s:(s!==this.valType||s===D0)&&(o=!0),this.discrete=this.discrete||o;var h={time:e,value:l,rawValue:t,percent:0};return a&&(h.easing=a,h.easingFunc=ie(a)?a:zs[a]||Yg(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=iu(n),u=M0(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?W5(h,v,n):u&&j5(h.colorStops,v.colorStops))}if(!s&&n!==sp&&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===nu?a[c].additiveValue=a[c].value-d:n===As?a[c].additiveValue=au([],a[c].value,d,-1):iu(n)&&(a[c].additiveValue=n===oc?au([],a[c].value,d,-1):A0([],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===As,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?es:e[l];if((iu(i)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)e[l]=m<1?v.rawValue:d.rawValue;else if(iu(i))i===oc?Dh(y,v[n],d[n],m):H5(y,v[n],d[n],m);else if(M0(i)){var x=v[n],_=d[n],b=i===op;e[l]={type:b?"linear":"radial",x:ma(x.x,_.x,m),y:ma(x.y,_.y,m),colorStops:U(x.colorStops,function(w,A){var C=_.colorStops[A];return{offset:ma(w.offset,C.offset,m),color:ic(Dh([],w.color,C.color,m))}}),global:_.global},b?(e[l].x2=ma(x.x2,_.x2,m),e[l].y2=ma(x.y2,_.y2,m)):e[l].r=ma(x.r,_.r,m)}else if(u)Dh(y,v[n],d[n],m),a||(e[l]=ic(y));else{var S=ma(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===nu?e[a]=e[a]+n:t===As?(sr(e[a],es),au(es,es,n,1),e[a]=ic(es)):t===oc?au(e[a],e[a],n,1):t===tT&&A0(e[a],e[a],n,1)},r})(),Zg=(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){Fg("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 U5(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===As&&u&&(u=ic(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,Fs(u),n),this._trackKeys.push(s)}l.addKeyframe(e,Fs(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 I5({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]=Fs(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 co(){return new Date().getTime()}var Y5=(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=co()-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&&(Ac(a),!t._paused&&t.update())}Ac(a)},e.prototype.start=function(){this._running||(this._time=co(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=co(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=co()-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 Zg(t,a.loop);return this.addAnimator(n),n},e})(Ar),X5=300,Mh=Ae.domSupported,Lh=(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}})(),L0={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},I0=!1;function lp(r){var e=r.pointerType;return e==="pen"||e==="touch"}function Z5(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 Ih(r){r&&(r.zrByTouch=!0)}function q5(r,e){return pr(r.dom,new K5(r,e),!0)}function rT(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 K5=(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;rT(this,e)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){I0=!0,r=pr(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){I0||(r=pr(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=pr(this.dom,r),Ih(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),Ih(r),this.handler.processGesture(r,"change"),Rr.mousemove.call(this,r)},touchend:function(r){r=pr(this.dom,r),Ih(r),this.handler.processGesture(r,"end"),Rr.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<X5&&Rr.click.call(this,r)},pointerdown:function(r){Rr.mousedown.call(this,r)},pointermove:function(r){lp(r)||Rr.mousemove.call(this,r)},pointerup:function(r){Rr.mouseup.call(this,r)},pointerout:function(r){lp(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 up={pointermove:function(r){lp(r)||up.mousemove.call(this,r)},pointerup:function(r){up.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 J5(r,e){var t=e.domHandlers;Ae.pointerEventsSupported?L(Lh.pointer,function(a){sc(e,a,function(n){t[a].call(r,n)})}):(Ae.touchEventsSupported&&L(Lh.touch,function(a){sc(e,a,function(n){t[a].call(r,n),Z5(e)})}),L(Lh.mouse,function(a){sc(e,a,function(n){n=Wg(n),e.touching||t[a].call(r,n)})}))}function Q5(r,e){Ae.pointerEventsSupported?L(L0.pointer,t):Ae.touchEventsSupported||L(L0.mouse,t);function t(a){function n(i){i=Wg(i),rT(r,i.target)||(i=q5(r,i),e.domHandlers[a].call(r,i))}sc(e,a,n,{capture:!0})}}function sc(r,e,t,a){r.mounted[e]=t,r.listenerOpts[e]=a,Jd(r.domTarget,e,t,a)}function Ph(r){var e=r.mounted;for(var t in e)e.hasOwnProperty(t)&&v5(r.domTarget,t,e[t],r.listenerOpts[t]);r.mounted={}}var P0=(function(){function r(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return r})(),eR=(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 P0(t,Rr),Mh&&(n._globalHandlerScope=new P0(document,up)),J5(n,n._localHandlerScope),n}return e.prototype.dispose=function(){Ph(this._localHandlerScope),Mh&&Ph(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,Mh&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var a=this._globalHandlerScope;t?Q5(this,a):Ph(a)}},e})(Ar),aT=1;Ae.hasGlobalWindow&&(aT=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var kc=aT,cp=.4,fp="#333",hp="#ccc",tR="#eee",k0=Df,R0=5e-5;function Cn(r){return r>R0||r<-R0}var An=[],zi=[],kh=or(),Rh=Math.abs,xa=(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 Cn(this.rotation)||Cn(this.x)||Cn(this.y)||Cn(this.scaleX-1)||Cn(this.scaleY-1)||Cn(this.skewX)||Cn(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),a=this.transform;if(!(t||e)){a&&(k0(a),this.invTransform=null);return}a=a||or(),t?this.getLocalTransform(a):k0(a),e&&(t?Sa(a,e,a):$g(a,e)),this.transform=a,this._resolveGlobalScaleRatio(a)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(An);var a=An[0]<0?-1:1,n=An[1]<0?-1:1,i=((An[0]-a)*t+a)/An[0]||0,o=((An[1]-n)*t+n)/An[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||or(),No(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(),Sa(zi,e.invTransform,t),t=zi);var a=this.originX,n=this.originY;(a||n)&&(kh[4]=a,kh[5]=n,Sa(zi,t,kh),zi[4]-=a,zi[5]-=n,t=zi),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&&Rh(e[0]-1)>1e-10&&Rh(e[3]-1)>1e-10?Math.sqrt(Rh(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){nT(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&&Ai(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})(),la=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function nT(r,e){for(var t=0;t<la.length;t++){var a=la[t];r[a]=e[a]}}var E0={};function lr(r,e){e=e||fn;var t=E0[e];t||(t=E0[e]=new Ml(500));var a=t.get(r);return a==null&&(a=hn.measureText(r,e).width,t.put(r,a)),a}function N0(r,e,t,a){var n=lr(r,e),i=Lf(e),o=Ds(0,n,t),s=oo(0,i,a),l=new xe(o,s,n,i);return l}function Ll(r,e,t,a){var n=((r||"")+"").split(`
2
+ `),i=n.length;if(i===1)return N0(n[0],e,t,a);for(var o=new xe(0,0,0,0),s=0;s<n.length;s++){var l=N0(n[s],e,t,a);s===0?o.copy(l):o.union(l)}return o}function Ds(r,e,t){return t==="right"?r-=e:t==="center"&&(r-=e/2),r}function oo(r,e,t){return t==="middle"?r-=e/2:t==="bottom"&&(r-=e),r}function Lf(r){return lr("国",r)}function Fr(r,e){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*e:parseFloat(r):r}function Rc(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 Eh="__zr_normal__",Nh=la.concat(["ignore"]),rR=oa(la,function(r,e){return r[e]=!0,r},{ignore:!1}),Vi={},aR=new xe(0,0,0,0),If=(function(){function r(e){this.id=k2(),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=aR;a.layoutRect?c.copy(a.layoutRect):c.copy(this.getBoundingRect()),n||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Vi,a,c):Rc(Vi,a,c),i.x=Vi.x,i.y=Vi.y,o=Vi.align,s=Vi.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()?hp:fp},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,wa(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||{},H(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!==Eh)){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,Nh)},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(Eh,!1,e)},r.prototype.useState=function(e,t,a,n){var i=e===Eh,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(be(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){Fg("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=be(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=be(n,e),o=be(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];H(t,i),i.textConfig&&(a=a||{},H(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=H({},n?this.textConfig:a.textConfig),H(this.textConfig,t.textConfig)):s&&a.textConfig&&(this.textConfig=a.textConfig);for(var l={},u=!1,c=0;c<Nh.length;c++){var f=Nh[c],h=i&&rR[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 xa,this._attachComponent(e),this._textContent=e,this.markRedraw())},r.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),H(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 Zg(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=be(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){Oh(this,e,t,a)},r.prototype.animateFrom=function(e,t,a){Oh(this,e,t,a,!0)},r.prototype._transitionState=function(e,t,a,n){for(var i=Oh(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(If,Ar);ut(If,xa);function Oh(r,e,t,a,n){t=t||{};var i=[];iT(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 Bh(r,e,t){for(var a=0;a<t;a++)r[a]=e[a]}function nR(r){return Ot(r[0])}function iR(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),Bh(r[t],e[t],a))}else{var n=e[t],i=r[t],o=n.length;if(nR(n))for(var s=n[0].length,l=0;l<o;l++)i[l]?Bh(i[l],n[l],s):i[l]=Array.prototype.slice.call(n[l]);else Bh(i,n,o);i.length=n.length}else r[t]=e[t]}function oR(r,e){return r===e||Ot(r)&&Ot(e)&&sR(r,e)}function sR(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 iT(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)&&!Cf(y)){if(e){s||(t[m]=y,r.updateDuringAnimation(e));continue}iT(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=be(d,b);d.splice(w,1)}}}if(n.force||(p=ze(p,function(M){return!oR(a[M],t[M])}),x=p.length),x>0||n.force&&!o.length){var A=void 0,C=void 0,D=void 0;if(s){C={},h&&(A={});for(var _=0;_<x;_++){var m=p[_];C[m]=t[m],h?A[m]=a[m]:t[m]=a[m]}}else if(h){D={};for(var _=0;_<x;_++){var m=p[_];D[m]=Fs(t[m]),iR(t,a,m)}}var b=new Zg(t,!1,!1,f?ze(d,function(I){return I.targetName===e}):null);b.targetName=e,n.scope&&(b.scope=n.scope),h&&A&&b.whenWithKeys(0,A,p),D&&b.whenWithKeys(0,D,p),b.whenWithKeys(u??500,s?C: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=be(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=be(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 xe(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?(xe.applyTransform(a,u,c),o=o||a.clone(),o.union(a)):(o=o||u.clone(),o.union(u))}}return o||a},e})(If);ue.prototype.type="group";var lc={},oT={};function lR(r){delete oT[r]}function uR(r){if(!r)return!1;if(typeof r=="string")return Ic(r,1)<cp;if(r.colorStops){for(var e=r.colorStops,t=0,a=e.length,n=0;n<a;n++)t+=Ic(e[n].color,1);return t/=a,t<cp}return!1}var cR=(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 C5,o=a.renderer||"canvas";lc[o]||(o=Me(lc)[0]),a.useDirtyRect=a.useDirtyRect==null?!1:a.useDirtyRect;var s=new lc[o](t,i,a,e),l=a.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!Ae.node&&!Ae.worker&&!l?new eR(s.getViewportRoot(),s.root):null,c=a.useCoarsePointer,f=c==null||c==="auto"?Ae.touchEventsSupported:!!c,h=44,v;f&&(v=he(a.pointerSize,h)),this.handler=new z2(i,s,u,s.root,v),this.animation=new Y5({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=uR(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=co();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var n=co();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,lR(this.id))},r})();function O0(r,e){var t=new cR(k2(),r,e);return oT[t.id]=t,t}function fR(r,e){lc[r]=e}var vp;function hR(r){if(typeof vp=="function")return vp(r)}function vR(r){vp=r}var B0=1e-4,sT=20;function dR(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 Z(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 J(r)?dR(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),sT),r=(+r).toFixed(e),t?r:+r}function wr(r){return r.sort(function(e,t){return e-t}),r}function ea(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 pR(r)}function pR(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 lT(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 gR(r,e){var t=oa(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=oa(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 mR(r,e){var t=Math.max(ea(r),ea(e)),a=r+e;return t>sT?a:tt(a,t)}var z0=9007199254740991;function uT(r){var e=Math.PI*2;return(r%e+e)%e}function nl(r){return r>-B0&&r<B0}var yR=/^(?:(\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 ua(r){if(r instanceof Date)return r;if(J(r)){var e=yR.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 xR(r){return Math.pow(10,qg(r))}function qg(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 cT(r,e){var t=qg(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 zh(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 V0(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 Da(r){var e=parseFloat(r);return e==r&&(e!==0||!J(r)||r.indexOf("x")<=0)?e:NaN}function fT(r){return!isNaN(Da(r))}function hT(){return Math.round(Math.random()*9)}function vT(r,e){return e===0?r:vT(e,r%e)}function F0(r,e){return r==null?e:e==null?r:r*e/vT(r,e)}function Be(r){throw new Error(r)}function G0(r,e,t){return(e-r)*t+r}var dT="series\0",pT="\0_ec_\0";function je(r){return r instanceof Array?r:r==null?[]:[r]}function yi(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 H0=["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 Oo(r){return se(r)&&!$(r)&&!(r instanceof Date)?r.value:r}function _R(r){return se(r)&&!(r instanceof Array)}function gT(r,e,t){var a=t==="normalMerge",n=t==="replaceMerge",i=t==="replaceAll";r=r||[],e=(e||[]).slice();var o=ae();L(e,function(l,u){if(!se(l)){e[u]=null;return}});var s=bR(r,o,t);return(a||n)&&SR(s,r,o,e),a&&wR(s,e),a||n?TR(s,e,n):i&&CR(s,e),AR(s),s}function bR(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"||il(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return a}function SR(r,e,t,a){L(a,function(n,i){if(!(!n||n.id==null)){var o=Gs(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 wR(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)&&!il(t)&&!il(i)&&mT("name",i,t)){r[n].newOption=t,e[a]=null;return}}})}function TR(r,e,t){L(e,function(a){if(a){for(var n,i=0;(n=r[i])&&(n.newOption||il(n.existing)||n.existing&&a.id!=null&&!mT("id",a,n.existing));)i++;n?(n.newOption=a,n.brandNew=t):r.push({newOption:a,brandNew:t,existing:null,keyInfo:null}),i++}})}function CR(r,e){L(e,function(t){r.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function AR(r){var e=ae();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?Gs(i.name):n?n.name:dT+a,n)o.id=Gs(n.id);else if(i.id!=null)o.id=Gs(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 mT(r,e,t){var a=pt(e[r],null),n=pt(t[r],null);return a!=null&&n!=null&&a===n}function Gs(r){return pt(r,"")}function pt(r,e){return r==null?e:J(r)?r:ke(r)||$d(r)?r+"":e}function Kg(r){var e=r.name;return!!(e&&e.indexOf(dT))}function il(r){return r&&r.id!=null&&Gs(r.id).indexOf(pT)===0}function DR(r){return pT+r}function MR(r,e,t){L(r,function(a){var n=a.newOption;se(n)&&(a.keyInfo.mainType=e,a.keyInfo.subType=LR(e,n,a.existing,t))})}function LR(r,e,t,a){var n=e.type?e.type:t?t.subType:a.determineSubType(r,e);return n}function IR(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 xi(r,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return $(e.dataIndex)?U(e.dataIndex,function(t){return r.indexOfRawIndex(t)}):r.indexOfRawIndex(e.dataIndex);if(e.name!=null)return $(e.name)?U(e.name,function(t){return r.indexOfName(t)}):r.indexOfName(e.name)}function Ie(){var r="__ec_inner_"+PR++;return function(e){return e[r]||(e[r]={})}}var PR=hT();function Hs(r,e,t){var a=Jg(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=Il(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 Jg(r,e){var t;if(J(r)){var a={};a[r+"Index"]=0,t=a}else t=r;var n=ae(),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&&be(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},kR={useDefault:!1,enableAll:!0,enableNone:!0};function Il(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 yT(r,e,t){r.setAttribute?r.setAttribute(e,t):r[e]=t}function RR(r,e){return r.getAttribute?r.getAttribute(e):r[e]}function ER(r){return r==="auto"?Ae.domSupported?"html":"richText":r||"html"}function dp(r,e){var t=ae(),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 xT(r,e,t,a,n){var i=e==null||e==="auto";if(a==null)return a;if(ke(a)){var o=G0(t||0,a,n);return tt(o,i?Math.max(ea(t||0),ea(a)):e)}else{if(J(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=G0(v,d,n);s[f]=tt(o,i?Math.max(ea(v),ea(d)):e)}}return s}}var NR=".",Dn="___EC__COMPONENT__CONTAINER___",_T="___EC__EXTENDED_CLASS___";function ta(r){var e={main:"",sub:""};if(r){var t=r.split(NR);e.main=t[0]||"",e.sub=t[1]||""}return e}function OR(r){$t(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function BR(r){return!!(r&&r[_T])}function Qg(r,e){r.$constructor=r,r.extend=function(t){var a=this,n;return zR(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)},Uk(n,this)),H(n.prototype,t),n[_T]=!0,n.extend=this.extend,n.superCall=GR,n.superApply=HR,n.superClass=a,n}}function zR(r){return ie(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function bT(r,e){r.extend=e.extend}var VR=Math.round(Math.random()*10);function FR(r){var e=["__\0is_clz",VR++].join("_");r.prototype[e]=!0,r.isInstance=function(t){return!!(t&&t[e])}}function GR(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 HR(r,e,t){return this.superClass.prototype[e].apply(r,t)}function Pf(r){var e={};r.registerClass=function(a){var n=a.type||a.prototype.type;if(n){OR(n),a.prototype.type=n;var i=ta(n);if(!i.sub)e[i.main]=a;else if(i.sub!==Dn){var o=t(i);o[i.sub]=a}}return a},r.getClass=function(a,n,i){var o=e[a];if(o&&o[Dn]&&(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=ta(a),i=[],o=e[n.main];return o&&o[Dn]?L(o,function(s,l){l!==Dn&&i.push(s)}):i.push(o),i},r.hasClass=function(a){var n=ta(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=ta(a),i=e[n.main];return i&&i[Dn]};function t(a){var n=e[a.main];return(!n||!n[Dn])&&(n=e[a.main]={},n[Dn]=!0),n}}function _i(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&&be(n,l)>=0||i&&be(i,l)<0)){var u=a.getShallow(l,e);u!=null&&(o[r[s][0]]=u)}}return o}}var jR=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],WR=_i(jR),$R=(function(){function r(){}return r.prototype.getAreaStyle=function(e,t){return WR(this,e,t)},r})(),pp=new Ml(50);function UR(r){if(typeof r=="string"){var e=pp.get(r);return e&&e.image}else return r}function em(r,e,t,a,n){if(r)if(typeof r=="string"){if(e&&e.__zrImageSrc===r||!t)return e;var i=pp.get(r),o={hostEl:t,cb:a,cbPayload:n};return i?(e=i.image,!kf(e)&&i.pending.push(o)):(e=hn.loadImage(r,j0,j0),e.__zrImageSrc=r,pp.put(r,e.__cachedImgObj={image:e,pending:[o]})),e}else return r;else return e}function j0(){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 kf(r){return r&&r.width&&r.height}var Vh=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function YR(r,e,t,a,n,i){if(!t){r.text="",r.isTruncated=!1;return}var o=(e+"").split(`
3
+ `);i=ST(t,a,n,i);for(var s=!1,l={},u=0,c=o.length;u<c;u++)wT(l,o[u],i),o[u]=l.textLine,s=s||l.isTruncated;r.text=o.join(`
4
+ `),r.isTruncated=s}function ST(r,e,t,a){a=a||{};var n=H({},a);n.font=e,t=he(t,"..."),n.maxIterations=he(a.maxIterations,2);var i=n.minChar=he(a.minChar,0);n.cnCharWidth=lr("国",e);var o=n.ascCharWidth=lr("a",e);n.placeholder=he(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 wT(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?XR(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 XR(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 ZR(r,e){r!=null&&(r+="");var t=e.overflow,a=e.padding,n=e.font,i=t==="truncate",o=Lf(n),s=he(e.lineHeight,o),l=!!e.backgroundColor,u=e.lineOverflow==="truncate",c=!1,f=e.width,h;f!=null&&(t==="break"||t==="breakAll")?h=r?TT(r,e.font,f,t==="breakAll",0).lines:[]:h=r?r.split(`
5
+ `):[];var v=h.length*s,d=he(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=ST(f,n,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),m={},y=0;y<h.length;y++)wT(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 qR=(function(){function r(){}return r})(),W0=(function(){function r(e){this.tokens=[],e&&(this.tokens=e)}return r})(),KR=(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 JR(r,e){var t=new KR;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=Vh.lastIndex=0,l;(l=Vh.exec(r))!=null;){var u=l.index;u>s&&Fh(t,r.substring(s,u),e,o),Fh(t,l[2],e,o,l[1]),s=Vh.lastIndex}s<r.length&&Fh(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,G,Y){F.width=G,F.lineHeight=Y,f+=Y,h=Math.max(h,G)}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],A=w.styleName&&e.rich[w.styleName]||{},C=w.textPadding=A.padding,D=C?C[1]+C[3]:0,M=w.font=A.font||e.font;w.contentHeight=Lf(M);var I=he(A.height,w.contentHeight);if(w.innerHeight=I,C&&(I+=C[0]+C[2]),w.height=I,w.lineHeight=na(A.lineHeight,e.lineHeight,I),w.align=A&&A.align||e.align,w.verticalAlign=A&&A.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=A.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=A.backgroundColor,B=E&&E.image;B&&(B=UR(B),kf(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):(YR(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,A&&(_=Math.max(_,w.lineHeight))}m(x,b,_)}t.outerWidth=t.width=he(a,h),t.outerHeight=t.height=he(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 Fh(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=TT(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 qR;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 W0)).tokens,_=x.length;_===1&&x[0].isLineHolder?x[0]=y:(m||!_||i)&&x.push(y)}else s.push(new W0([y]))}}function QR(r){var e=r.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var eE=oa(",&?/;] ".split(""),function(r,e){return r[e]=!0,r},{});function tE(r){return QR(r)?!!eE[r]:!0}function TT(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:!tE(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 gp="__zr_style_"+Math.round(Math.random()*10),fi={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Rf={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};fi[gp]=!0;var $0=["z","z2","invisible"],rE=["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&&aE(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 xe(0,0,0,0)),a?xe.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 xe(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:H(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=Cs,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&Cs)},e.prototype.styleUpdated=function(){this.__dirty&=~Cs},e.prototype.createStyle=function(t){return Af(fi,t)},e.prototype.useStyle=function(t){t[gp]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[gp]},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,$0)},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?rE:$0,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 H(t,a),t},e.prototype.getAnimationStyleProps=function(){return Rf},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|Cs})(),e})(If),Gh=new xe(0,0,0,0),Hh=new xe(0,0,0,0);function aE(r,e,t){return Gh.copy(r.getBoundingRect()),r.transform&&Gh.applyTransform(r.transform),Hh.width=e,Hh.height=t,!Gh.intersect(Hh)}var Jt=Math.min,Qt=Math.max,jh=Math.sin,Wh=Math.cos,Mn=Math.PI*2,ou=Ci(),su=Ci(),lu=Ci();function Ef(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 U0(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 Y0=[],X0=[];function nE(r,e,t,a,n,i,o,s,l,u){var c=j2,f=mt,h=c(r,t,n,o,Y0);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,Y0[v]);l[0]=Jt(d,l[0]),u[0]=Qt(d,u[0])}h=c(e,a,i,s,X0);for(var v=0;v<h;v++){var p=f(e,a,i,s,X0[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 iE(r,e,t,a,n,i,o,s){var l=$2,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 oE(r,e,t,a,n,i,o,s,l){var u=Ka,c=Ja,f=Math.abs(n-i);if(f%Mn<1e-4&&f>1e-4){s[0]=r-t,s[1]=e-a,l[0]=r+t,l[1]=e+a;return}if(ou[0]=Wh(n)*t+r,ou[1]=jh(n)*a+e,su[0]=Wh(i)*t+r,su[1]=jh(i)*a+e,u(s,ou,su),c(l,ou,su),n=n%Mn,n<0&&(n=n+Mn),i=i%Mn,i<0&&(i=i+Mn),n>i&&!o?i+=Mn:n<i&&o&&(n+=Mn),o){var h=i;i=n,n=h}for(var v=0;v<i;v+=Math.PI/2)v>n&&(lu[0]=Wh(v)*t+r,lu[1]=jh(v)*a+e,u(s,lu,s),c(l,lu,l))}var $e={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Ln=[],In=[],Wr=[],Ba=[],$r=[],Ur=[],$h=Math.min,Uh=Math.max,Pn=Math.cos,kn=Math.sin,da=Math.abs,mp=Math.PI,Ua=mp*2,Yh=typeof Float32Array<"u",ts=[];function Xh(r){var e=Math.round(r/mp*1e8)/1e8;return e%2*mp}function tm(r,e){var t=Xh(r[0]);t<0&&(t+=Ua);var a=t-r[0],n=r[1];n+=a,!e&&n-t>=Ua?n=t+Ua:e&&t-n>=Ua?n=t-Ua:!e&&t>n?n=t+(Ua-Xh(t-n)):e&&t<n&&(n=t-(Ua-Xh(n-t))),r[0]=t,r[1]=n}var ca=(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=da(a/kc/e)||0,this._uy=da(a/kc/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($e.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=da(e-this._xi),n=da(t-this._yi),i=a>this._ux||n>this._uy;if(this.addData($e.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($e.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($e.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(),ts[0]=n,ts[1]=i,tm(ts,o),n=ts[0],i=ts[1];var s=i-n;return this.addData($e.A,e,t,a,a,n,s,0,o?0:1),this._ctx&&this._ctx.arc(e,t,a,n,i,o),this._xi=Pn(i)*a+e,this._yi=kn(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($e.R,e,t,a,n),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData($e.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)&&Yh&&(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();Yh&&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,Yh&&this._len>11&&(this.data=new Float32Array(e)))}},r.prototype.getBoundingRect=function(){Wr[0]=Wr[1]=$r[0]=$r[1]=Number.MAX_VALUE,Ba[0]=Ba[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 $e.M:t=n=e[o++],a=i=e[o++],$r[0]=n,$r[1]=i,Ur[0]=n,Ur[1]=i;break;case $e.L:U0(t,a,e[o],e[o+1],$r,Ur),t=e[o++],a=e[o++];break;case $e.C:nE(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 $e.Q:iE(t,a,e[o++],e[o++],e[o],e[o+1],$r,Ur),t=e[o++],a=e[o++];break;case $e.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=Pn(v)*f+u,i=kn(v)*h+c),oE(u,c,f,h,v,d,p,$r,Ur),t=Pn(d)*f+u,a=kn(d)*h+c;break;case $e.R:n=t=e[o++],i=a=e[o++];var g=e[o++],m=e[o++];U0(n,i,n+g,i+m,$r,Ur);break;case $e.Z:t=n,a=i;break}Ka(Wr,Wr,$r),Ja(Ba,Ba,Ur)}return o===0&&(Wr[0]=Wr[1]=Ba[0]=Ba[1]=0),new xe(Wr[0],Wr[1],Ba[0]-Wr[0],Ba[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 $e.M:i=s=e[h++],o=l=e[h++];break;case $e.L:{var g=e[h++],m=e[h++],y=g-i,x=m-o;(da(y)>a||da(x)>n||h===t-1)&&(p=Math.sqrt(y*y+x*x),i=g,o=m);break}case $e.C:{var _=e[h++],b=e[h++],g=e[h++],m=e[h++],S=e[h++],w=e[h++];p=A5(i,o,_,b,g,m,S,w,10),i=S,o=w;break}case $e.Q:{var _=e[h++],b=e[h++],g=e[h++],m=e[h++];p=M5(i,o,_,b,g,m,10),i=g,o=m;break}case $e.A:var A=e[h++],C=e[h++],D=e[h++],M=e[h++],I=e[h++],P=e[h++],k=P+I;h+=1,d&&(s=Pn(I)*D+A,l=kn(I)*M+C),p=Uh(D,M)*$h(Ua,Math.abs(P)),i=Pn(k)*D+A,o=kn(k)*M+C;break;case $e.R:{s=i=e[h++],l=o=e[h++];var R=e[h++],E=e[h++];p=R*2+E*2;break}case $e.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++],A=S===1;switch(A&&(u=a[S],c=a[S+1],s=u,l=c),w!==$e.L&&x>0&&(e.lineTo(_,b),x=0),w){case $e.M:s=u=a[S++],l=c=a[S++],e.moveTo(u,c);break;case $e.L:{f=a[S++],h=a[S++];var C=da(f-u),D=da(h-c);if(C>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=C*C+D*D;P>x&&(_=f,b=h,x=P)}break}case $e.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;vn(u,k,E,O,I,Ln),vn(c,R,B,V,I,In),e.bezierCurveTo(Ln[1],In[1],Ln[2],In[2],Ln[3],In[3]);break e}g+=M}e.bezierCurveTo(k,R,E,B,O,V),u=O,c=V;break}case $e.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;tl(u,k,E,I,Ln),tl(c,R,B,I,In),e.quadraticCurveTo(Ln[1],In[1],Ln[2],In[2]);break e}g+=M}e.quadraticCurveTo(k,R,E,B),u=E,c=B;break}case $e.A:var F=a[S++],G=a[S++],Y=a[S++],X=a[S++],q=a[S++],Q=a[S++],pe=a[S++],ce=!a[S++],ne=Y>X?Y:X,te=da(Y-X)>.001,W=q+Q,j=!1;if(v){var M=d[m++];g+M>y&&(W=q+Q*(y-g)/M,j=!0),g+=M}if(te&&e.ellipse?e.ellipse(F,G,Y,X,pe,q,W,ce):e.arc(F,G,ne,q,W,ce),j)break e;A&&(s=Pn(q)*Y+F,l=kn(q)*X+G),u=Pn(W)*Y+F,c=kn(W)*X+G;break;case $e.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 ye=y-g;e.moveTo(f,h),e.lineTo(f+$h(ye,K),h),ye-=K,ye>0&&e.lineTo(f+K,h+$h(ye,Se)),ye-=Se,ye>0&&e.lineTo(f+Uh(K-ye,0),h+Se),ye-=K,ye>0&&e.lineTo(f,h+Uh(Se-ye,0));break e}g+=M}e.rect(f,h,K,Se);break;case $e.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=$e,r.initDefaultProps=(function(){var e=r.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0})(),r})();function Xa(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 sE(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=W2(r,e,t,a,n,i,o,s,u,c,null);return h<=f/2}function CT(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=U2(r,e,t,a,n,i,s,l,null);return c<=u/2}var Z0=Math.PI*2;function ir(r){return r%=Z0,r<0&&(r+=Z0),r}var rs=Math.PI*2;function lE(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)%rs<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+=rs);var h=Math.atan2(l,s);return h<0&&(h+=rs),h>=a&&h<=n||h+rs>=a&&h+rs<=n}function ya(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 za=ca.CMD,Rn=Math.PI*2,uE=1e-4;function cE(r,e){return Math.abs(r-e)<uE}var Ft=[-1,-1,-1],mr=[-1,-1];function fE(){var r=mr[0];mr[0]=mr[1],mr[1]=r}function hE(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=Mc(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=j2(e,a,i,s,mr),mr[1]<mr[0]&&h>1&&fE(),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 vE(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=D5(e,a,i,s,Ft);if(l===0)return 0;var u=$2(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 dE(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>=Rn-1e-4){a=0,n=Rn;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+=Rn,n+=Rn);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=Rn+p),(p>=a&&p<=n||p+Rn>=a&&p+Rn<=n)&&(p>Math.PI/2&&p<Math.PI*1.5&&(c=-c),h+=c)}}return h}function AT(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===za.M&&d>1&&(t||(s+=ya(l,u,c,f,a,n))),g&&(l=i[d],u=i[d+1],c=l,f=u),p){case za.M:c=i[d++],f=i[d++],l=c,u=f;break;case za.L:if(t){if(Xa(l,u,i[d],i[d+1],e,a,n))return!0}else s+=ya(l,u,i[d],i[d+1],a,n)||0;l=i[d++],u=i[d++];break;case za.C:if(t){if(sE(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],e,a,n))return!0}else s+=hE(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 za.Q:if(t){if(CT(l,u,i[d++],i[d++],i[d],i[d+1],e,a,n))return!0}else s+=vE(l,u,i[d++],i[d++],i[d],i[d+1],a,n)||0;l=i[d++],u=i[d++];break;case za.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+=ya(l,u,h,v,a,n);var A=(a-m)*_/x+m;if(t){if(lE(m,y,_,b,b+S,w,e,A,n))return!0}else s+=dE(m,y,_,b,b+S,w,A,n);l=Math.cos(b+S)*x+m,u=Math.sin(b+S)*_+y;break;case za.R:c=l=i[d++],f=u=i[d++];var C=i[d++],D=i[d++];if(h=c+C,v=f+D,t){if(Xa(c,f,h,f,e,a,n)||Xa(h,f,h,v,e,a,n)||Xa(h,v,c,v,e,a,n)||Xa(c,v,c,f,e,a,n))return!0}else s+=ya(h,f,h,v,a,n),s+=ya(c,v,c,f,a,n);break;case za.Z:if(t){if(Xa(l,u,c,f,e,a,n))return!0}else s+=ya(l,u,c,f,a,n);l=c,u=f;break}}return!t&&!cE(u,f)&&(s+=ya(l,u,c,f,a,n)||0),s!==0}function pE(r,e,t){return AT(r,0,!1,e,t)}function gE(r,e,t,a){return AT(r,e,!0,t,a)}var Ec=oe({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},fi),mE={style:oe({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Rf.style)},Zh=la.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<Zh.length;++s)n[Zh[s]]=this[Zh[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?H(this.style,s):this.useStyle(s):o==="shape"?H(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(J(t)){var a=Ic(t,0);return a>.5?fp:a>.2?tR:hp}else if(t)return hp}return fp},e.prototype.getInsideTextStroke=function(t){var a=this.style.fill;if(J(a)){var n=this.__zr,i=!!(n&&n.isDarkMode()),o=Ic(t,0)<cp;if(i===o)return a}},e.prototype.buildPath=function(t,a,n){},e.prototype.pathUpdated=function(){this.__dirty&=~io},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 ca(!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&io)&&(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)),gE(s,l/u,t,a)))return!0}if(this.hasFill())return pE(s,t,a)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=io,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:H(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&io)},e.prototype.createStyle=function(t){return Af(Ec,t)},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var a=this._normalState;t.shape&&!a.shape&&(a.shape=H({},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=H({},n.shape),H(u,a.shape)):(u=H({},i?this.shape:n.shape),H(u,a.shape)):l&&(u=n.shape),u)if(o){this.shape=H({},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 mE},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|Cs|io})(),e})(Cr),yE=oe({strokeFirst:!0,font:fn,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Ec),wo=(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 Af(yE,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=Ll(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);wo.prototype.type="tspan";var xE=oe({x:0,y:0},fi),_E={style:oe({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Rf.style)};function bE(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 Af(xE,t)},e.prototype._getSize=function(t){var a=this.style,n=a[t];if(n!=null)return n;var i=bE(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 _E},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new xe(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e})(Cr);At.prototype.type="image";function SE(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 fo=Math.round;function DT(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&&(fo(a*2)===fo(n*2)&&(r.x1=r.x2=ri(a,s,!0)),fo(i*2)===fo(o*2)&&(r.y1=r.y2=ri(i,s,!0))),r}}function MT(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=ri(a,s,!0),r.y=ri(n,s,!0),r.width=Math.max(ri(a+i,s,!1)-r.x,i===0?0:1),r.height=Math.max(ri(n+o,s,!1)-r.y,o===0?0:1)),r}}function ri(r,e,t){if(!e)return r;var a=fo(r*2);return(a+fo(e))%2===0?a/2:(a+(t?1:-1))/2}var wE=(function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r})(),TE={},Le=(function(r){z(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new wE},e.prototype.buildPath=function(t,a){var n,i,o,s;if(this.subPixelOptimize){var l=MT(TE,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?SE(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 q0={fill:"#000"},K0=2,CE={style:oe({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},Rf.style)},Pe=(function(r){z(e,r);function e(t){var a=r.call(this)||this;return a.type="text",a._children=[],a._defaultStyle=q0,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,ME(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 xe(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||q0},e.prototype.setTextContent=function(t){},e.prototype._mergeStyle=function(t,a){if(!a)return t;var n=a.rich,i=t.rich||n&&{};return H(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]||{},H(t[o],a[o])}},e.prototype.getAnimationStyleProps=function(){return CE},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||fn,n=t.padding,i=n1(t),o=ZR(i,t),s=qh(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,_=oo(g,o.contentHeight,y);if(s||n){var b=Ds(p,c,m),S=oo(g,u,y);s&&this._renderBackground(t,t,b,S,c,u)}_+=v/2,n&&(x=a1(p,m,n),y==="top"?_+=n[0]:y==="bottom"&&(_-=n[2]));for(var w=0,A=!1,C=r1("fill"in t?t.fill:(A=!0,d.fill)),D=t1("stroke"in t?t.stroke:!l&&(!d.autoStroke||A)?(w=K0,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(wo),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=C,D&&(E.lineWidth=t.lineWidth||w,E.lineDash=t.lineDash,E.lineDashOffset=t.lineDashOffset||0),E.font=a,Q0(E,t),_+=v,I&&R.setBoundingRect(new xe(Ds(E.x,f,E.textAlign),oo(E.y,P,E.textBaseline),f,P))}},e.prototype._updateRichTexts=function(){var t=this.style,a=n1(t),n=JR(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=Ds(u,o,h),p=oo(c,s,v),g=d,m=p;l&&(g+=l[3],m+=l[0]);var y=g+i;qh(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,A=b.lineHeight,C=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,A,m,M,"left",x),C-=k.width,M+=k.width,D++;for(;P>=0&&(k=S[P],k.align==="right");)this._placeToken(k,t,A,m,I,"right",x),C-=k.width,I-=k.width,P--;for(M+=(i-(M-g)-(y-I)-C)/2;D<=P;)k=S[D],this._placeToken(k,t,A,m,M+k.width/2,"center",x),M+=k.width,D++;m+=A}},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&&qh(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=a1(o,s,d),f-=t.height/2-d[0]-t.innerHeight/2);var p=this._getOrCreateChild(wo),g=p.createStyle();p.useStyle(g);var m=this._defaultStyle,y=!1,x=0,_=r1("fill"in u?u.fill:"fill"in a?a.fill:(y=!0,m.fill)),b=t1("stroke"in u?u.stroke:"stroke"in a?a.stroke:!v&&!l&&(!m.autoStroke||y)?(x=K0,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||fn,g.opacity=na(u.opacity,a.opacity,1),Q0(g,u),b&&(g.lineWidth=na(u.lineWidth,a.lineWidth,x),g.lineDash=he(u.lineDash,a.lineDash),g.lineDashOffset=a.lineDashOffset||0,g.stroke=b),_&&(g.fill=_);var w=t.contentWidth,A=t.contentHeight;p.setBoundingRect(new xe(Ds(g.x,w,g.textAlign),oo(g.y,A,g.textBaseline),w,A))},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=he(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=he(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=na(t.opacity,a.opacity,1)},e.makeFont=function(t){var a="";return IT(t)&&(a=[t.fontStyle,t.fontWeight,LT(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),a&&Or(a)||t.textFont||t.font},e})(Cr),AE={left:!0,right:1,center:1},DE={top:1,bottom:1,middle:1},J0=["fontStyle","fontWeight","fontSize","fontFamily"];function LT(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?Bg+"px":r+"px"}function Q0(r,e){for(var t=0;t<J0.length;t++){var a=J0[t],n=e[a];n!=null&&(r[a]=n)}}function IT(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function ME(r){return e1(r),L(r.rich,e1),r}function e1(r){if(r){r.font=Pe.makeFont(r);var e=r.align;e==="middle"&&(e="center"),r.align=e==null||AE[e]?e:"left";var t=r.verticalAlign;t==="center"&&(t="middle"),r.verticalAlign=t==null||DE[t]?t:"top";var a=r.padding;a&&(r.padding=jg(r.padding))}}function t1(r,e){return r==null||e<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function r1(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function a1(r,e,t){return e==="right"?r-t[1]:e==="center"?r+t[3]/2-t[1]/2:r+t[3]}function n1(r){var e=r.text;return e!=null&&(e+=""),e}function qh(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}var fe=Ie(),yp=function(r,e,t,a){if(a){var n=fe(a);n.dataIndex=t,n.dataType=e,n.seriesIndex=r,n.ssrType="chart",a.type==="group"&&a.traverse(function(i){var o=fe(i);o.seriesIndex=r,o.dataIndex=t,o.dataType=e,o.ssrType="chart"})}},i1=1,o1={},PT=Ie(),rm=Ie(),am=0,Pl=1,Nf=2,Ut=["emphasis","blur","select"],ol=["normal","emphasis","blur","select"],Bo=10,LE=9,hi="highlight",uc="downplay",js="select",cc="unselect",Ws="toggleSelect";function Fi(r){return r!=null&&r!=="none"}function Of(r,e,t){r.onHoverStateChange&&(r.hoverState||0)!==t&&r.onHoverStateChange(e),r.hoverState=t}function kT(r){Of(r,"emphasis",Nf)}function RT(r){r.hoverState===Nf&&Of(r,"normal",am)}function nm(r){Of(r,"blur",Pl)}function ET(r){r.hoverState===Pl&&Of(r,"normal",am)}function IE(r){r.selected=!0}function PE(r){r.selected=!1}function s1(r,e,t){e(r,t)}function Ea(r,e,t){s1(r,e,t),r.isGroup&&r.traverse(function(a){s1(a,e,t)})}function Nc(r,e){switch(e){case"emphasis":r.hoverState=Nf;break;case"normal":r.hoverState=am;break;case"blur":r.hoverState=Pl;break;case"select":r.selected=!0}}function kE(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 RE(r,e,t,a){var n=t&&be(t,"select")>=0,i=!1;if(r instanceof Ce){var o=PT(r),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(Fi(s)||Fi(l)){a=a||{};var u=a.style||{};u.fill==="inherit"?(i=!0,a=H({},a),u=H({},u),u.fill=s):!Fi(u.fill)&&Fi(s)?(i=!0,a=H({},a),u=H({},u),u.fill=ap(s)):!Fi(u.stroke)&&Fi(l)&&(i||(a=H({},a),u=H({},u)),u.stroke=ap(l)),a.style=u}}if(a&&a.z2==null){i||(a=H({},a));var c=r.z2EmphasisLift;a.z2=r.z2+(c??Bo)}return a}function EE(r,e,t){if(t&&t.z2==null){t=H({},t);var a=r.z2SelectLift;t.z2=r.z2+(a??LE)}return t}function NE(r,e,t){var a=be(r.currentStates,e)>=0,n=r.style.opacity,i=a?null:kE(r,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=H({},t),o=H({opacity:a?n:i.opacity*.1},o),t.style=o),t}function Kh(r,e){var t=this.states[r];if(this.style){if(r==="emphasis")return RE(this,r,e,t);if(r==="blur")return NE(this,r,t);if(r==="select")return EE(this,r,t)}return t}function bi(r){r.stateProxy=Kh;var e=r.getTextContent(),t=r.getTextGuideLine();e&&(e.stateProxy=Kh),t&&(t.stateProxy=Kh)}function l1(r,e){!zT(r,e)&&!r.__highByOuter&&Ea(r,kT)}function u1(r,e){!zT(r,e)&&!r.__highByOuter&&Ea(r,RT)}function Ma(r,e){r.__highByOuter|=1<<(e||0),Ea(r,kT)}function La(r,e){!(r.__highByOuter&=~(1<<(e||0)))&&Ea(r,RT)}function NT(r){Ea(r,nm)}function im(r){Ea(r,ET)}function OT(r){Ea(r,IE)}function BT(r){Ea(r,PE)}function zT(r,e){return r.__highDownSilentOnTouch&&e.zrByTouch}function VT(r){var e=r.getModel(),t=[],a=[];e.eachComponent(function(n,i){var o=rm(i),s=n==="series",l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&a.push(l),o.isBlured&&(l.group.traverse(function(u){ET(u)}),s&&t.push(i)),o.isBlured=!1}),L(a,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(t,!1,e)})}function xp(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&&im(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"||nm(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),rm(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 _p(r,e,t){if(!(r==null||e==null)){var a=t.getModel().getComponent(r,e);if(a){rm(a).isBlured=!0;var n=t.getViewOfComponentModel(a);!n||!n.focusBlurEnabled||n.group.traverse(function(i){nm(i)})}}}function OE(r,e,t){var a=r.seriesIndex,n=r.getData(e.dataType);if(n){var i=xi(n,e);i=($(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=fe(o);xp(a,u.focus,u.blurScope,t)}else{var c=r.get(["emphasis","focus"]),f=r.get(["emphasis","blurScope"]);c!=null&&xp(a,c,f,t)}}}function om(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(fe(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function BE(r,e,t){var a=fe(r),n=om(a.componentMainType,a.componentIndex,a.componentHighDownName,t),i=n.dispatchers,o=n.focusSelf;i?(o&&_p(a.componentMainType,a.componentIndex,t),L(i,function(s){return l1(s,e)})):(xp(a.seriesIndex,a.focus,a.blurScope,t),a.focus==="self"&&_p(a.componentMainType,a.componentIndex,t),l1(r,e))}function zE(r,e,t){VT(t);var a=fe(r),n=om(a.componentMainType,a.componentIndex,a.componentHighDownName,t).dispatchers;n?L(n,function(i){return u1(i,e)}):u1(r,e)}function VE(r,e,t){if(Sp(e)){var a=e.dataType,n=r.getData(a),i=xi(n,e);$(i)||(i=[i]),r[e.type===Ws?"toggleSelect":e.type===js?"select":"unselect"](i,a)}}function c1(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)?OT(i):BT(i)})})}function FE(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 vi(r,e,t){ai(r,!0),Ea(r,bi),bp(r,e,t)}function GE(r){ai(r,!1)}function et(r,e,t,a){a?GE(r):vi(r,e,t)}function bp(r,e,t){var a=fe(r);e!=null?(a.focus=e,a.blurScope=t):a.focus&&(a.focus=null)}var f1=["emphasis","blur","select"],HE={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function It(r,e,t,a){t=t||"itemStyle";for(var n=0;n<f1.length;n++){var i=f1[n],o=e.getModel([i,t]),s=r.ensureState(i);s.style=a?a(o):o[HE[t]]()}}function ai(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 sl(r){return!!(r&&r.__highDownDispatcher)}function jE(r,e,t){var a=fe(r);a.componentMainType=e.mainType,a.componentIndex=e.componentIndex,a.componentHighDownName=t}function WE(r){var e=o1[r];return e==null&&i1<=32&&(e=o1[r]=i1++),e}function Sp(r){var e=r.type;return e===js||e===cc||e===Ws}function h1(r){var e=r.type;return e===hi||e===uc}function $E(r){var e=PT(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 Gi=ca.CMD,UE=[[],[],[]],v1=Math.sqrt,YE=Math.atan2;function FT(r,e){if(e){var t=r.data,a=r.len(),n,i,o,s,l,u,c=Gi.M,f=Gi.C,h=Gi.L,v=Gi.R,d=Gi.A,p=Gi.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=v1(e[0]*e[0]+e[1]*e[1]),x=v1(e[2]*e[2]+e[3]*e[3]),_=YE(-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=UE[l];b[0]=t[o++],b[1]=t[o++],Lt(b,b,e),t[s++]=b[0],t[s++]=b[1]}}r.increaseVersion()}}var Jh=Math.sqrt,uu=Math.sin,cu=Math.cos,as=Math.PI;function d1(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function wp(r,e){return(r[0]*e[0]+r[1]*e[1])/(d1(r)*d1(e))}function p1(r,e){return(r[0]*e[1]<r[1]*e[0]?-1:1)*Math.acos(wp(r,e))}function g1(r,e,t,a,n,i,o,s,l,u,c){var f=l*(as/180),h=cu(f)*(r-t)/2+uu(f)*(e-a)/2,v=-1*uu(f)*(r-t)/2+cu(f)*(e-a)/2,d=h*h/(o*o)+v*v/(s*s);d>1&&(o*=Jh(d),s*=Jh(d));var p=(n===i?-1:1)*Jh((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+cu(f)*g-uu(f)*m,x=(e+a)/2+uu(f)*g+cu(f)*m,_=p1([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=p1(b,S);if(wp(b,S)<=-1&&(w=as),wp(b,S)>=1&&(w=0),w<0){var A=Math.round(w/as*1e6)/1e6;w=as*2+A%2*as}c.addData(u,y,x,o,s,_,w,f,i)}var XE=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,ZE=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function qE(r){var e=new ca;if(!r)return e;var t=0,a=0,n=t,i=a,o,s=ca.CMD,l=r.match(XE);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(ZE)||[],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,A=t,C=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,A=v[g++],C=v[g++],t=v[g++],a=v[g++],e.addData(h,m,y,A,C,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,A=t+v[g++],C=a+v[g++],t+=v[g++],a+=v[g++],e.addData(h,m,y,A,C,t,a);break;case"Q":A=v[g++],C=v[g++],t=v[g++],a=v[g++],h=s.Q,e.addData(h,A,C,t,a);break;case"q":A=v[g++]+t,C=v[g++]+a,t+=v[g++],a+=v[g++],h=s.Q,e.addData(h,A,C,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++],A=t,C=a,t=v[g++],a=v[g++],h=s.A,g1(A,C,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++],A=t,C=a,t+=v[g++],a+=v[g++],h=s.A,g1(A,C,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 GT=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.applyTransform=function(t){},e})(Ce);function HT(r){return r.setData!=null}function jT(r,e){var t=qE(r),a=H({},e);return a.buildPath=function(n){if(HT(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){FT(t,n),this.dirtyShape()},a}function WT(r,e){return new GT(jT(r,e))}function KE(r,e){var t=jT(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})(GT);return a}function JE(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(HT(s)){s.appendPath(t);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function sm(r,e){e=e||{};var t=new Ce;return r.shape&&t.setShape(r.shape),t.setStyle(r.style),e.bakeTransform?FT(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 QE=(function(){function r(){this.cx=0,this.cy=0,this.r=0}return r})(),Na=(function(r){z(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new QE},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);Na.prototype.type="circle";var eN=(function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r})(),Bf=(function(r){z(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new eN},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);Bf.prototype.type="ellipse";var $T=Math.PI,Qh=$T*2,En=Math.sin,Hi=Math.cos,tN=Math.acos,kt=Math.atan2,m1=Math.abs,$s=Math.sqrt,Ms=Math.max,Yr=Math.min,kr=1e-4;function rN(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 fu(r,e,t,a,n,i,o){var s=r-t,l=e-a,u=(o?i:-i)/$s(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)*$s(Ms(0,b*b*_-S*S)),A=(S*x-y*w)/_,C=(-S*y-x*w)/_,D=(S*x+y*w)/_,M=(-S*y+x*w)/_,I=A-g,P=C-m,k=D-g,R=M-m;return I*I+P*P>k*k+R*R&&(A=D,C=M),{cx:A,cy:C,x0:-c,y0:-f,x1:A*(n/b-1),y1:C*(n/b-1)}}function aN(r){var e;if($(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 nN(r,e){var t,a=Ms(e.r,0),n=Ms(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=m1(u-l),d=v>Qh&&v%Qh;if(d>kr&&(v=d),!(a>kr))r.moveTo(c,f);else if(v>Qh-kr)r.moveTo(c+a*Hi(l),f+a*En(l)),r.arc(c,f,a,l,u,!h),n>kr&&(r.moveTo(c+n*Hi(u),f+n*En(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,A=void 0,C=void 0,D=void 0,M=void 0,I=void 0,P=void 0,k=void 0,R=a*Hi(l),E=a*En(l),B=n*Hi(u),O=n*En(u),V=v>kr;if(V){var F=e.cornerRadius;F&&(t=aN(F),p=t[0],g=t[1],m=t[2],y=t[3]);var G=m1(a-n)/2;if(x=Yr(G,m),_=Yr(G,y),b=Yr(G,p),S=Yr(G,g),C=w=Ms(x,_),D=A=Ms(b,S),(w>kr||A>kr)&&(M=a*Hi(u),I=a*En(u),P=n*Hi(l),k=n*En(l),v<$T)){var Y=rN(R,E,P,k,M,I,B,O);if(Y){var X=R-Y[0],q=E-Y[1],Q=M-Y[0],pe=I-Y[1],ce=1/En(tN((X*Q+q*pe)/($s(X*X+q*q)*$s(Q*Q+pe*pe)))/2),ne=$s(Y[0]*Y[0]+Y[1]*Y[1]);C=Yr(w,(a-ne)/(ce+1)),D=Yr(A,(n-ne)/(ce-1))}}}if(!V)r.moveTo(c+R,f+E);else if(C>kr){var te=Yr(m,C),W=Yr(y,C),j=fu(P,k,R,E,a,te,h),K=fu(M,I,B,O,a,W,h);r.moveTo(c+j.cx+j.x0,f+j.cy+j.y0),C<w&&te===W?r.arc(c+j.cx,f+j.cy,C,kt(j.y0,j.x0),kt(K.y0,K.x0),!h):(te>0&&r.arc(c+j.cx,f+j.cy,te,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),W>0&&r.arc(c+K.cx,f+K.cy,W,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 te=Yr(p,D),W=Yr(g,D),j=fu(B,O,M,I,n,-W,h),K=fu(R,E,P,k,n,-te,h);r.lineTo(c+j.cx+j.x0,f+j.cy+j.y0),D<A&&te===W?r.arc(c+j.cx,f+j.cy,D,kt(j.y0,j.x0),kt(K.y0,K.x0),!h):(W>0&&r.arc(c+j.cx,f+j.cy,W,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),te>0&&r.arc(c+K.cx,f+K.cy,te,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 iN=(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 iN},e.prototype.buildPath=function(t,a){nN(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 oN=(function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r})(),kl=(function(r){z(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new oN},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);kl.prototype.type="ring";function sN(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++)Ka(c,c,r[h]),Ja(f,f,r[h]);Ka(c,c,a[0]),Ja(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(ba(r[h]));continue}else l=r[h-1],u=r[h+1];ti(i,u,l),rc(i,i,e);var p=Xd(d,l),g=Xd(d,u),m=p+g;m!==0&&(p/=m,g/=m),rc(o,i,-p),rc(s,i,g);var y=c0([],d,o),x=c0([],d,s);a&&(Ja(y,y,c),Ka(y,y,f),Ja(x,x,c),Ka(x,x,f)),n.push(y),n.push(x)}return t&&n.push(n.shift()),n}function UT(r,e,t){var a=e.smooth,n=e.points;if(n&&n.length>=2){if(a){var i=sN(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 lN=(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 lN},e.prototype.buildPath=function(t,a){UT(t,a,!0)},e})(Ce);Xt.prototype.type="polygon";var uN=(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 uN},e.prototype.buildPath=function(t,a){UT(t,a,!1)},e})(Ce);Zt.prototype.type="polyline";var cN={},fN=(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 fN},e.prototype.buildPath=function(t,a){var n,i,o,s;if(this.subPixelOptimize){var l=DT(cN,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=[],hN=(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 y1(r,e,t){var a=r.cpx2,n=r.cpy2;return a!=null||n!=null?[(t?S0:mt)(r.x1,r.cpx1,r.cpx2,r.x2,e),(t?S0:mt)(r.y1,r.cpy1,r.cpy2,r.y2,e)]:[(t?Qd:Tt)(r.x1,r.cpx1,r.x2,e),(t?Qd:Tt)(r.y1,r.cpy1,r.y2,e)]}var Rl=(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 hN},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&&(tl(n,l,o,h,qt),l=qt[1],o=qt[2],tl(i,u,s,h,qt),u=qt[1],s=qt[2]),t.quadraticCurveTo(l,u,o,s)):(h<1&&(vn(n,l,c,o,h,qt),l=qt[1],c=qt[2],o=qt[3],vn(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 y1(this.shape,t,!1)},e.prototype.tangentAt=function(t){var a=y1(this.shape,t,!0);return Eo(a,a)},e})(Ce);Rl.prototype.type="bezier-curve";var vN=(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})(),zf=(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 vN},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);zf.prototype.type="arc";var lm=(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),YT=(function(){function r(e){this.colorStops=e||[]}return r.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},r})(),El=(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})(YT),XT=(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})(YT),Nn=[0,0],On=[0,0],hu=new me,vu=new me,Oc=(function(){function r(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var a=0;a<4;a++)this._corners[a]=new me;for(var a=0;a<2;a++)this._axes[a]=new me;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);me.sub(n[0],a[1],a[0]),me.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 hu.set(1/0,1/0),vu.set(0,0),!this._intersectCheckOneSide(this,e,hu,vu,n,1)&&(a=!1,n)||!this._intersectCheckOneSide(e,this,hu,vu,n,-1)&&(a=!1,n)||n||me.copy(t,a?hu:vu),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,Nn),this._getProjMinMaxOnAxis(l,t._corners,On),Nn[1]<On[0]||Nn[0]>On[1]){if(s=!1,i)return s;var c=Math.abs(On[0]-Nn[1]),f=Math.abs(Nn[0]-On[1]);Math.min(c,f)>n.len()&&(c<f?me.scale(n,u,-c*o):me.scale(n,u,f*o))}else if(a){var c=Math.abs(On[0]-Nn[1]),f=Math.abs(Nn[0]-On[1]);Math.min(c,f)<a.len()&&(c<f?me.scale(a,u,c*o):me.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})(),dN=[],pN=(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 xe(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(dN)),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),ZT=Ie();function zo(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=he(a.duration,200),c=he(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)),ie(f)&&(f=f(t,n)),ie(u)&&(u=u(t));var h={duration:u||0,delay:f,easing:c};return h}else return null}function um(r,e,t,a,n,i,o){var s=!1,l;ie(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=zo(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 Re(r,e,t,a,n,i){um("update",r,e,t,a,n,i)}function Je(r,e,t,a,n,i){um("enter",r,e,t,a,n,i)}function mo(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 dn(r,e,t,a,n,i){mo(r)||um("leave",r,e,t,a,n,i)}function x1(r,e,t,a){r.removeTextContent(),r.removeTextGuideLine(),dn(r,{style:{opacity:0}},e,t,a)}function ll(r,e,t){function a(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(n){n.isGroup||x1(n,e,t,a)}):x1(r,e,t,a)}function Gr(r){ZT(r).oldStyle=r.style}function gN(r){return ZT(r).oldStyle}var Bc=Math.max,zc=Math.min,Tp={};function mN(r){return Ce.extend(r)}var yN=KE;function xN(r,e){return yN(r,e)}function Hr(r,e){Tp[r]=e}function cm(r){if(Tp.hasOwnProperty(r))return Tp[r]}function Vf(r,e,t,a){var n=WT(r,e);return t&&(a==="center"&&(t=KT(t,n.getBoundingRect())),JT(n,t)),n}function qT(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(KT(e,i))}}});return a}function KT(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=JE;function JT(r,e){if(r.applyTransform){var t=r.getBoundingRect(),a=t.calculateTransform(e);r.applyTransform(a)}}function To(r,e){return DT(r,r,{lineWidth:e}),r}function _N(r){return MT(r.shape,r.shape,r.style),r}var fc=ri;function di(r,e){for(var t=Df([]);r&&r!==e;)Sa(t,r.getLocalTransform(),t),r=r.parent;return t}function Vr(r,e,t){return e&&!Ot(e)&&(e=xa.getLocalTransform(e)),t&&(e=No([],e)),Lt([],r,e)}function Ff(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 _1(r){return!r.isGroup}function bN(r){return r.shape!=null}function Nl(r,e,t){if(!r||!e)return;function a(o){var s={};return o.traverse(function(l){_1(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return bN(o)&&(s.shape=H({},o.shape)),s}var i=a(r);e.traverse(function(o){if(_1(o)&&o.anid){var s=i[o.anid];if(s){var l=n(o);o.attr(n(s)),Re(o,l,t,fe(o).dataIndex)}}})}function QT(r,e){return U(r,function(t){var a=t[0];a=Bc(a,e.x),a=zc(a,e.x+e.width);var n=t[1];return n=Bc(n,e.y),n=zc(n,e.y+e.height),[a,n]})}function SN(r,e){var t=Bc(r.x,e.x),a=zc(r.x+r.width,e.x+e.width),n=Bc(r.y,e.y),i=zc(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 Ol(r,e,t){var a=H({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),oe(n,t),new At(a)):Vf(r.replace("path://",""),a,t,"center")}function Ls(r,e,t,a,n){for(var i=0,o=n[n.length-1];i<n.length;i++){var s=n[i];if(eC(r,e,t,a,s[0],s[1],o[0],o[1]))return!0;o=s}}function eC(r,e,t,a,n,i,o,s){var l=t-r,u=a-e,c=o-n,f=s-i,h=ev(c,f,l,u);if(wN(h))return!1;var v=r-n,d=e-i,p=ev(v,d,l,u)/h;if(p<0||p>1)return!1;var g=ev(v,d,c,f)/h;return!(g<0||g>1)}function ev(r,e,t,a){return r*a-t*e}function wN(r){return r<=1e-6&&r>=-1e-6}function Di(r){var e=r.itemTooltipOption,t=r.componentModel,a=r.itemName,n=J(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){re(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=fe(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:a,option:oe({content:a,encodeHTMLContent:!0,formatterParams:s},n)}}function b1(r,e){var t;r.isGroup&&(t=e(r)),t||r.traverse(e)}function xn(r,e){if(r)if($(r))for(var t=0;t<r.length;t++)b1(r[t],e);else b1(r,e)}Hr("circle",Na);Hr("ellipse",Bf);Hr("sector",Yt);Hr("ring",kl);Hr("polygon",Xt);Hr("polyline",Zt);Hr("rect",Le);Hr("line",yt);Hr("bezierCurve",Rl);Hr("arc",zf);const Mi=Object.freeze(Object.defineProperty({__proto__:null,Arc:zf,BezierCurve:Rl,BoundingRect:xe,Circle:Na,CompoundPath:lm,Ellipse:Bf,Group:ue,Image:At,IncrementalDisplayable:pN,Line:yt,LinearGradient:El,OrientedBoundingRect:Oc,Path:Ce,Point:me,Polygon:Xt,Polyline:Zt,RadialGradient:XT,Rect:Le,Ring:kl,Sector:Yt,Text:Pe,applyTransform:Vr,clipPointsByRect:QT,clipRectByRect:SN,createIcon:Ol,extendPath:xN,extendShape:mN,getShapeClass:cm,getTransform:di,groupTransition:Nl,initProps:Je,isElementRemoved:mo,lineLineIntersect:eC,linePolygonIntersect:Ls,makeImage:qT,makePath:Vf,mergePath:br,registerShape:Hr,removeElement:dn,removeElementWithFadeOut:ll,resizePath:JT,setTooltipConfig:Di,subPixelOptimize:fc,subPixelOptimizeLine:To,subPixelOptimizeRect:_N,transformDirection:Ff,traverseElements:xn,updateProps:Re},Symbol.toStringTag,{value:"Module"}));var Gf={};function tC(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 Cp(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=ie(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]=he(a?a.getFormattedLabel(n,c,null,i,f&&f.get("formatter")):null,s)}return l}function Pt(r,e,t,a){t=t||Gf;for(var n=r instanceof Pe,i=!1,o=0;o<ol.length;o++){var s=e[ol[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=Cp(t,e),c=e.normal,f=!!c.getShallow("show"),h=Ye(c,a&&a.normal,t,!1,!n);h.text=u.normal,n||r.setTextConfig(Vc(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=!!he(s.getShallow("show"),f);if(p!==f&&(d.ignore=!p),d.style=Ye(s,a&&a[v],t,!0,!n),d.style.text=u[v],!n){var g=r.ensureState(v);g.textConfig=Vc(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&&(Vo(l).setLabelText=function(m){var y=Cp(t,e,m);tC(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 Ye(r,e,t,a,n){var i={};return TN(i,r,t,a,n),e&&H(i,e),i}function Vc(r,e,t){e=e||{};var a={},n,i=r.getShallow("rotate"),o=he(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 TN(r,e,t,a,n){t=t||Gf;var i=e.ecModel,o=i&&i.option.textStyle,s=CN(e),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var c=e.getModel(["rich",u]);C1(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),C1(r,e,o,t,a,n,!0,!1)}function CN(r){for(var e;r&&r!==r.ecModel;){var t=(r.option||Gf).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 S1=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],w1=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],T1=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function C1(r,e,t,a,n,i,o,s){t=!n&&t||Gf;var l=a&&a.inheritColor,u=e.getShallow("color"),c=e.getShallow("textBorderColor"),f=he(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=he(e.getShallow("textBorderWidth"),t.textBorderWidth);h!=null&&(r.lineWidth=h);var v=he(e.getShallow("textBorderType"),t.textBorderType);v!=null&&(r.lineDash=v);var d=he(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<S1.length;p++){var g=S1[p],m=he(e.getShallow(g),t[g]);m!=null&&(r[g]=m)}for(var p=0;p<w1.length;p++){var g=w1[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<T1.length;p++){var g=T1[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 fm(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 Vo=Ie();function rC(r,e,t,a){if(r){var n=Vo(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 aC(r,e,t,a,n){var i=Vo(r);if(!i.valueAnimation||i.prevValue===i.value)return;var o=i.defaultInterpolatedText,s=he(i.interpolatedValue,i.prevValue),l=i.value;function u(c){var f=xT(t,i.precision,s,l,c);i.interpolatedValue=c===1?null:f;var h=Cp({labelDataIndex:e,labelFetcher:n,defaultText:o?o(f):f+""},i.statesModels,f);tC(r,h)}r.percent=0,(i.prevValue==null?Je:Re)(r,{percent:1},a,e,null,u)}var AN=["textStyle","color"],tv=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],rv=new Pe,DN=(function(){function r(){}return r.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(AN):null)},r.prototype.getFont=function(){return fm({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<tv.length;a++)t[tv[a]]=this.getShallow(tv[a]);return rv.useStyle(t),rv.update(),rv.getBoundingRect()},r})(),nC=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],MN=_i(nC),LN=(function(){function r(){}return r.prototype.getLineStyle=function(e){return MN(this,e)},r})(),iC=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],IN=_i(iC),PN=(function(){function r(){}return r.prototype.getItemStyle=function(e,t){return IN(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){ge(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})();Qg(Ge);FR(Ge);ut(Ge,LN);ut(Ge,PN);ut(Ge,$R);ut(Ge,DN);var kN=Math.round(Math.random()*10);function Fo(r){return[r||"",kN++].join("_")}function RN(r){var e={};r.registerSubTypeDefaulter=function(t,a){var n=ta(t);e[n.main]=a},r.determineSubType=function(t,a){var n=a.type;if(!n){var i=ta(t).main;r.hasSubTypes(t)&&e[i]&&(n=e[i](a))}return n}}function EN(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){be(u.predecessor,h)<0&&u.predecessor.push(h);var v=a(o,h);be(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){be(o,l)>=0&&s.push(l)}),s}}function _n(r,e){return ge(ge({},r,!0),e,!0)}const NN={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:". "}}}},ON={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 Fc="ZH",hm="EN",yo=hm,hc={},vm={},oC=Ae.domSupported?(function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||yo).toUpperCase();return r.indexOf(Fc)>-1?Fc:yo})():yo;function sC(r,e){r=r.toUpperCase(),vm[r]=new Ge(e),hc[r]=e}function BN(r){if(J(r)){var e=hc[r.toUpperCase()]||{};return r===Fc||r===hm?le(e):ge(le(e),le(hc[yo]),!1)}else return ge(le(r),le(hc[yo]),!1)}function Ap(r){return vm[r]}function zN(){return vm[yo]}sC(hm,NN);sC(Fc,ON);var dm=1e3,pm=dm*60,Us=pm*60,Sr=Us*24,A1=Sr*365,Is={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}"},du="{yyyy}-{MM}-{dd}",D1={year:"{yyyy}",month:"{yyyy}-{MM}",day:du,hour:du+" "+Is.hour,minute:du+" "+Is.minute,second:du+" "+Is.second,millisecond:Is.none},av=["year","month","day","hour","minute","second","millisecond"],lC=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Va(r,e){return r+="","0000".substr(0,e-r.length)+r}function xo(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 VN(r){return r===xo(r)}function FN(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Hf(r,e,t,a){var n=ua(r),i=n[gm(t)](),o=n[_o(t)]()+1,s=Math.floor((o-1)/3)+1,l=n[jf(t)](),u=n["get"+(t?"UTC":"")+"Day"](),c=n[ul(t)](),f=(c-1)%12+1,h=n[Wf(t)](),v=n[$f(t)](),d=n[Uf(t)](),p=c>=12?"pm":"am",g=p.toUpperCase(),m=a instanceof Ge?a:Ap(a||oC)||zN(),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,Va(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,x[o-1]).replace(/{MMM}/g,_[o-1]).replace(/{MM}/g,Va(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Va(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Va(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Va(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,Va(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Va(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,Va(d,3)).replace(/{S}/g,d+"")}function GN(r,e,t,a,n){var i=null;if(J(t))i=t;else if(ie(t))i=t(r.value,e,{level:r.level});else{var o=H({},Is);if(r.level>0)for(var s=0;s<av.length;++s)o[av[s]]="{primary|"+o[av[s]]+"}";var l=t?t.inherit===!1?t:oe(t,o):o,u=uC(r.value,n);if(l[u])i=l[u];else if(l.inherit){for(var c=lC.indexOf(u),s=c-1;s>=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if($(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 Hf(new Date(r.value),i,n,a)}function uC(r,e){var t=ua(r),a=t[_o(e)]()+1,n=t[jf(e)](),i=t[ul(e)](),o=t[Wf(e)](),s=t[$f(e)](),l=t[Uf(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 M1(r,e,t){var a=ke(r)?ua(r):r;switch(e=e||uC(r,t),e){case"year":return a[gm(t)]();case"half-year":return a[_o(t)]()>=6?1:0;case"quarter":return Math.floor((a[_o(t)]()+1)/4);case"month":return a[_o(t)]();case"day":return a[jf(t)]();case"half-day":return a[ul(t)]()/24;case"hour":return a[ul(t)]();case"minute":return a[Wf(t)]();case"second":return a[$f(t)]();case"millisecond":return a[Uf(t)]()}}function gm(r){return r?"getUTCFullYear":"getFullYear"}function _o(r){return r?"getUTCMonth":"getMonth"}function jf(r){return r?"getUTCDate":"getDate"}function ul(r){return r?"getUTCHours":"getHours"}function Wf(r){return r?"getUTCMinutes":"getMinutes"}function $f(r){return r?"getUTCSeconds":"getSeconds"}function Uf(r){return r?"getUTCMilliseconds":"getMilliseconds"}function HN(r){return r?"setUTCFullYear":"setFullYear"}function cC(r){return r?"setUTCMonth":"setMonth"}function fC(r){return r?"setUTCDate":"setDate"}function hC(r){return r?"setUTCHours":"setHours"}function vC(r){return r?"setUTCMinutes":"setMinutes"}function dC(r){return r?"setUTCSeconds":"setSeconds"}function pC(r){return r?"setUTCMilliseconds":"setMilliseconds"}function gC(r){if(!fT(r))return J(r)?r:"-";var e=(r+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function mC(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 Go=jg;function Dp(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?ua(r):r;if(isNaN(+l)){if(s)return"-"}else return Hf(l,a,t)}if(e==="ordinal")return $d(r)?n(r):ke(r)&&i(r)?r+"":"-";var u=Da(r);return i(u)?gC(u):$d(r)?n(r):typeof r=="boolean"?r+"":"-"}var L1=["a","b","c","d","e","f","g"],nv=function(r,e){return"{"+r+(e??"")+"}"};function yC(r,e,t){$(e)||(e=[e]);var a=e.length;if(!a)return"";for(var n=e[0].$vars||[],i=0;i<n.length;i++){var o=L1[i];r=r.replace(nv(o),nv(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(nv(L1[l],s),t?Ht(u):u)}return r}function jN(r,e,t){return L(e,function(a,n){r=r.replace("{"+n+"}",a)}),r}function WN(r,e){var t=J(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 Si(r,e){return e=e||"transparent",J(r)?r:se(r)&&r.colorStops&&(r.colorStops[0]||{}).color||e}function Gc(r,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=r}else window.open(r,e)}var vc=L,xC=["left","right","top","bottom","width","height"],ni=[["width","left","right"],["height","top","bottom"]];function mm(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 pi=mm;de(mm,"vertical");de(mm,"horizontal");function $N(r,e,t){var a=e.width,n=e.height,i=Z(r.left,a),o=Z(r.top,n),s=Z(r.right,a),l=Z(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=Go(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=Go(t||0);var a=e.width,n=e.height,i=Z(r.left,a),o=Z(r.top,n),s=Z(r.right,a),l=Z(r.bottom,n),u=Z(r.width,a),c=Z(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 xe(i+t[3],o+t[0],u,c);return d.margin=t,d}function Yf(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 xe(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(oe({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 UN(r,e){return r[ni[e][0]]!=null||r[ni[e][1]]!=null&&r[ni[e][2]]!=null}function cl(r){var e=r.layoutMode||r.constructor.layoutMode;return se(e)?e:e?{type:e}:null}function pn(r,e,t){var a=t&&t.ignoreSize;!$(a)&&(a=[a,a]);var n=o(ni[0],0),i=o(ni[1],1);u(ni[0],r,n),u(ni[1],r,i);function o(c,f){var h={},v=0,d={},p=0,g=2;if(vc(c,function(x){d[x]=r[x]}),vc(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){vc(c,function(v){f[v]=h[v]})}}function Ho(r){return _C({},r)}function _C(r,e){return e&&r&&vc(xC,function(t){e.hasOwnProperty(t)&&(r[t]=e[t])}),r}var YN=Ie(),De=(function(r){z(e,r);function e(t,a,n){var i=r.call(this,t,a,n)||this;return i.uid=Fo("ec_cpt_model"),i}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n)},e.prototype.mergeDefaultAndTheme=function(t,a){var n=cl(this),i=n?Ho(t):{},o=a.getTheme();ge(t,o.get(this.mainType)),ge(t,this.getDefaultOption()),n&&pn(t,i,n)},e.prototype.mergeOption=function(t,a){ge(this.option,t,!0);var n=cl(this);n&&pn(this.option,t,n)},e.prototype.optionUpdated=function(t,a){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!BR(t))return t.defaultOption;var a=YN(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=ge(s,n[l],!0);a.defaultOption=s}return a.defaultOption},e.prototype.getReferringComponents=function(t,a){var n=t+"Index",i=t+"Id";return Il(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);bT(De,Ge);Pf(De);RN(De);EN(De,XN);function XN(r){var e=[];return L(De.getClassesByMainType(r),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=U(e,function(t){return ta(t).main}),r!=="dataset"&&be(e,"dataset")<=0&&e.unshift("dataset"),e}var bC="";typeof navigator<"u"&&(bC=navigator.platform||"");var ji="rgba(0, 0, 0, 0.2)";const ZN={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:ji,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:ji,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:ji,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:ji,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:ji,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:ji,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:bC.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 SC=ae(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Dr="original",Bt="arrayRows",Mr="objectRows",fa="keyedColumns",ln="typedArray",wC="unknown",ia="column",jo="row",Mt={Must:1,Might:2,Not:3},TC=Ie();function qN(r){TC(r).datasetMap=ae()}function CC(r,e,t){var a={},n=xm(e);if(!n||!r)return a;var i=[],o=[],s=e.ecModel,l=TC(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 ym(r,e,t){var a={},n=xm(r);if(!n)return a;var i=e.sourceFormat,o=e.dimensionsDefine,s;(i===Mr||i===fa)&&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=DC(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 xm(r){var e=r.get("data",!0);if(!e)return Il(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},st).models[0]}function KN(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:Il(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},st).models}function AC(r,e){return DC(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,e)}function DC(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):J(c)&&(l=c)}if(u!=null)return u==="ordinal"?Mt.Must:Mt.Not;if(e===Bt){var f=r;if(t===jo){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===fa){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=Oo(g);if(!$(x))return Mt.Not;if((o=_(x[i]))!=null)return o}function _(b){var S=J(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 Mp=ae();function JN(r,e){$t(Mp.get(r)==null&&e),Mp.set(r,e)}function QN(r,e,t){var a=Mp.get(e);if(!a)return t;var n=a(r);return n?t.concat(n):t}var I1=Ie(),e3=Ie(),_m=(function(){function r(){}return r.prototype.getColorFromPalette=function(e,t,a){var n=je(this.get("color",!0)),i=this.get("colorLayer",!0);return MC(this,I1,n,i,e,t,a)},r.prototype.clearColorPalette=function(){r3(this,I1)},r})();function Lp(r,e,t,a){var n=je(r.get(["aria","decal","decals"]));return MC(r,e3,n,null,e,t,a)}function t3(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 MC(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:t3(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 r3(r,e){e(r).paletteIdx=0,e(r).paletteNameMap={}}var pu,ns,P1,k1="\0_ec_inner",a3=1,bm=(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=N1(a);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,a){return this._resetOption(t,N1(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"?P1(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=ae(),u=a&&a.replaceMergeMainTypeMap;qN(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):ge(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=QN(this,f,je(t[f])),v=i.get(f),d=v?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",p=gT(v,h,d);MR(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 A=f==="series",C=De.getClass(f,_.keyInfo.subType,!A);if(!C)return;if(f==="tooltip"){if(x)return;x=!0}if(S&&S.constructor===C)S.name=_.keyInfo.name,S.mergeOption(w,this),S.optionUpdated(w,!1);else{var D=H({componentIndex:b},_.keyInfo);S=new C(w,this,this,D),H(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"&&pu(this)}this._seriesIndices||pu(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]&&!il(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,t[n]=i}}),delete t[k1],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=R1("id",i,s):o!=null?l=R1("name",o,s):l=ze(s,function(u){return!!u}),E1(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(E1(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(ie(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=J(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){ns(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){ns(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 ns(this),this._seriesIndicesMap.get(t.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,a){ns(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=ae(n)},e.prototype.restoreData=function(t){pu(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"||!n3(o,t))&&o.restoreData()})})},e.internalField=(function(){pu=function(t){var a=t._seriesIndices=[];L(t._componentsMap.get("series"),function(n){n&&a.push(n.componentIndex)}),t._seriesIndicesMap=ae(a)},ns=function(t){},P1=function(t,a){t.option={},t.option[k1]=a3,t._componentsMap=ae({series:[]}),t._componentsCount=ae();var n=a.aria;se(n)&&n.enabled==null&&(n.enabled=!0),i3(a,t._theme.option),ge(a,ZN,!1),t._mergeOption(a,null)}})(),e})(Ge);function n3(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 i3(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]?ge(r[n],a,!1):le(a):r[n]==null&&(r[n]=a))})}function R1(r,e,t){if($(e)){var a=ae();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 E1(r,e){return e.hasOwnProperty("subType")?ze(r,function(t){return t&&t.subType===e.subType}):r}function N1(r){var e=ae();return r&&L(je(r.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}ut(bm,_m);var o3=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],LC=(function(){function r(e){L(o3,function(t){this[t]=ee(e[t],e)},this)}return r})(),iv={},Bl=(function(){function r(){this._coordinateSystems=[]}return r.prototype.create=function(e,t){var a=[];L(iv,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){iv[e]=t},r.get=function(e){return iv[e]},r})(),s3=/^(min|max)?(.+)$/,l3=(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)&&Cc(o.data)}),L(je(e.dataset),function(o){o&&o.source&&tr(o.source)&&Cc(o.source)})),e=le(e);var n=this._optionBackup,i=u3(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++)c3(n[l].query,t,a)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!h3(o,this._currentMediaIndices)&&(s=U(o,function(c){return le(c===-1?i.option:n[c].option)})),this._currentMediaIndices=o,s},r})();function u3(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&&$(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 c3(r,e,t){var a={width:e,height:t,aspectratio:e/t},n=!0;return L(r,function(i,o){var s=o.match(s3);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();f3(a[u],i,l)||(n=!1)}}),n}function f3(r,e,t){return t==="min"?r>=e:t==="max"?r<=e:r===e}function h3(r,e){return r.join(",")===e.join(",")}var Ir=L,fl=se,O1=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function ov(r){var e=r&&r.itemStyle;if(e)for(var t=0,a=O1.length;t<a;t++){var n=O1[t],i=e.normal,o=e.emphasis;i&&i[n]&&(r[n]=r[n]||{},r[n].normal?ge(r[n].normal,i[n]):r[n].normal=i[n],i[n]=null),o&&o[n]&&(r[n]=r[n]||{},r[n].emphasis?ge(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,oe(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 Ps(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=fl(r)&&r[e],a=fl(t)&&t.textStyle;if(a)for(var n=0,i=H0.length;n<i;n++){var o=H0[n];a.hasOwnProperty(o)&&(t[o]=a[o])}}function gr(r){r&&(Ps(r),ot(r,"label"),r.emphasis&&ot(r.emphasis,"label"))}function v3(r){if(fl(r)){ov(r),Ps(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&&(ov(e),gr(e));var t=r.markLine;t&&(ov(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){Ps(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++)$(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){Ps(u)})):r.type==="tree"&&Ps(r.leaves)}}function pa(r){return $(r)?r:r?[r]:[]}function B1(r){return($(r)?r[0]:r)||{}}function d3(r,e){Ir(pa(r.series),function(a){fl(a)&&v3(a)});var t=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&t.push("valueAxis","categoryAxis","logAxis","timeAxis"),Ir(t,function(a){Ir(pa(r[a]),function(n){n&&(ot(n,"axisLabel"),ot(n.axisPointer,"label"))})}),Ir(pa(r.parallel),function(a){var n=a&&a.parallelAxisDefault;ot(n,"axisLabel"),ot(n&&n.axisPointer,"label")}),Ir(pa(r.calendar),function(a){Nt(a,"itemStyle"),ot(a,"dayLabel"),ot(a,"monthLabel"),ot(a,"yearLabel")}),Ir(pa(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(pa(r.geo),function(a){fl(a)&&(gr(a),Ir(pa(a.regions),function(n){gr(n)}))}),Ir(pa(r.timeline),function(a){gr(a),Nt(a,"label"),Nt(a,"itemStyle"),Nt(a,"controlStyle",!0);var n=a.data;$(n)&&L(n,function(i){se(i)&&(Nt(i,"label"),Nt(i,"itemStyle"))})}),Ir(pa(r.toolbox),function(a){Nt(a,"iconStyle"),Ir(a.feature,function(n){Nt(n,"iconStyle")})}),ot(B1(r.axisPointer),"label"),ot(B1(r.tooltip).axisPointer,"label")}function p3(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 g3(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 z1(r){r&&L(m3,function(e){e[0]in r&&!(e[1]in r)&&(r[e[1]]=r[e[0]])})}var m3=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],y3=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],sv=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function is(r){var e=r&&r.itemStyle;if(e)for(var t=0;t<sv.length;t++){var a=sv[t][1],n=sv[t][0];e[a]!=null&&(e[n]=e[a])}}function V1(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function F1(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay)}function x3(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function IC(r,e){if(r)for(var t=0;t<r.length;t++)e(r[t]),r[t]&&IC(r[t].children,e)}function PC(r,e){d3(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),V1(t.label);var n=t.data;if(n&&!tr(n))for(var i=0;i<n.length;i++)V1(n[i]);t.hoverOffset!=null&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if(a==="gauge"){var o=p3(t,"pointer.color");o!=null&&g3(t,"itemStyle.color",o)}else if(a==="bar"){is(t),is(t.backgroundStyle),is(t.emphasis);var n=t.data;if(n&&!tr(n))for(var i=0;i<n.length;i++)typeof n[i]=="object"&&(is(n[i]),is(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)),F1(t),IC(t.data,F1)}else a==="graph"||a==="sankey"?x3(t):a==="map"&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&oe(t,t.mapLocation));t.hoverAnimation!=null&&(t.emphasis=t.emphasis||{},t.emphasis&&t.emphasis.scale==null&&(t.emphasis.scale=t.hoverAnimation)),z1(t)}}),r.dataRange&&(r.visualMap=r.dataRange),L(y3,function(t){var a=r[t];a&&($(a)||(a=[a]),L(a,function(n){z1(n)}))})}function _3(r){var e=ae();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(b3)}function b3(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=mR(h,y),p=y;break}}}return a[0]=h,a[1]=p,a})})}var Xf=(function(){function r(e){this.data=e.data||(e.sourceFormat===fa?{}:[]),this.sourceFormat=e.sourceFormat||wC,this.seriesLayoutBy=e.seriesLayoutBy||ia,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&&AC(this,a)===Mt.Must&&(n.type="ordinal")}}return r})();function Sm(r){return r instanceof Xf}function Ip(r,e,t){t=t||kC(r);var a=e.seriesLayoutBy,n=w3(r,t,a,e.sourceHeader,e.dimensions),i=new Xf({data:r,sourceFormat:t,seriesLayoutBy:a,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,metaRawOption:le(e)});return i}function wm(r){return new Xf({data:r,sourceFormat:tr(r)?ln:Dr})}function S3(r){return new Xf({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:le(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function kC(r){var e=wC;if(tr(r))e=ln;else if($(r)){r.length===0&&(e=Bt);for(var t=0,a=r.length;t<a;t++){var n=r[t];if(n!=null){if($(n)||tr(n)){e=Bt;break}else if(se(n)){e=Mr;break}}}}else if(se(r)){for(var i in r)if(re(r,i)&&Ot(r[i])){e=fa;break}}return e}function w3(r,e,t,a,n){var i,o;if(!r)return{dimensionsDefine:G1(n),startIndex:o,dimensionsDetectedCount:i};if(e===Bt){var s=r;a==="auto"||a==null?H1(function(u){u!=null&&u!=="-"&&(J(u)?o==null&&(o=1):o=0)},t,s,10):o=ke(a)?a:a?1:0,!n&&o===1&&(n=[],H1(function(u,c){n[c]=u!=null?u+"":""},t,s,1/0)),i=n?n.length:t===jo?s.length:s[0]?s[0].length:null}else if(e===Mr)n||(n=T3(r));else if(e===fa)n||(n=[],L(r,function(u,c){n.push(c)}));else if(e===Dr){var l=Oo(r[0]);i=$(l)&&l.length||1}return{startIndex:o,dimensionsDefine:G1(n),dimensionsDetectedCount:i}}function T3(r){for(var e=0,t;e<r.length&&!(t=r[e++]););if(t)return Me(t)}function G1(r){if(r){var e=ae();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 H1(r,e,t,a){if(e===jo)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 RC(r){var e=r.sourceFormat;return e===Mr||e===fa}var Bn,zn,Vn,j1,W1,EC=(function(){function r(e,t){var a=Sm(e)?e:wm(e);this._source=a;var n=this._data=a.data;a.sourceFormat===ln&&(this._offset=0,this._dimSize=t,this._data=n),W1(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;W1=function(o,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,f=l.startIndex,h=l.dimensionsDefine,v=j1[Tm(u,c)];if(H(o,v),u===ln)o.getItem=t,o.count=n,o.fillStorage=a;else{var d=NC(u,c);o.getItem=ee(d,null,s,f,h);var p=OC(u,c);o.count=ee(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};j1=(e={},e[Bt+"_"+ia]={pure:!0,appendData:i},e[Bt+"_"+jo]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Mr]={pure:!0,appendData:i},e[fa]={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[ln]={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})(),$1=function(r,e,t,a){return r[a]},C3=(Bn={},Bn[Bt+"_"+ia]=function(r,e,t,a){return r[a+e]},Bn[Bt+"_"+jo]=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},Bn[Mr]=$1,Bn[fa]=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},Bn[Dr]=$1,Bn);function NC(r,e){var t=C3[Tm(r,e)];return t}var U1=function(r,e,t){return r.length},A3=(zn={},zn[Bt+"_"+ia]=function(r,e,t){return Math.max(0,r.length-e)},zn[Bt+"_"+jo]=function(r,e,t){var a=r[0];return a?Math.max(0,a.length-e):0},zn[Mr]=U1,zn[fa]=function(r,e,t){var a=t[0].name,n=r[a];return n?n.length:0},zn[Dr]=U1,zn);function OC(r,e){var t=A3[Tm(r,e)];return t}var lv=function(r,e,t){return r[e]},D3=(Vn={},Vn[Bt]=lv,Vn[Mr]=function(r,e,t){return r[t]},Vn[fa]=lv,Vn[Dr]=function(r,e,t){var a=Oo(r);return a instanceof Array?a[e]:a},Vn[ln]=lv,Vn);function BC(r){var e=D3[r];return e}function Tm(r,e){return r===Bt?r+"_"+e:r}function Co(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 BC(i)(a,o,s)}else{var l=a;return i===Dr&&(l=Oo(a)),l}}}}var M3=/\{@(.+?)\}/g,Zf=(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&&$(l.value)&&(l.value=l.value[n]),!i){var u=s.getItemModel(e);i=u.get(t==="normal"?["label","formatter"]:[t,"label","formatter"])}if(ie(i))return l.status=t,l.dimensionIndex=n,i(l);if(J(i)){var c=yC(i,l);return c.replace(M3,function(f,h){var v=h.length,d=h;d.charAt(0)==="["&&d.charAt(v-1)==="]"&&(d=+d.slice(1,v-1));var p=Co(s,e,d);if(o&&$(o.interpolatedValue)){var g=s.getDimensionIndex(d);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(e,t){return Co(this.getData(t),e)},r.prototype.formatTooltip=function(e,t,a){},r})();function Y1(r){var e,t;return se(r)?r.type&&(t=r):e=r,{text:e,frag:t}}function Ys(r){return new L3(r)}var L3=(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($(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){X1.reset(t,a,n,i),this._callingProgress=e,this._callingProgress({start:t,end:a,count:a-t,next:X1.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),$(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})(),X1=(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 un(r,e){var t=e&&e.type;return t==="ordinal"?r:(t==="time"&&!ke(r)&&r!=null&&r!=="-"&&(r=+ua(r)),r==null||r===""?NaN:Number(r))}var I3=ae({number:function(r){return parseFloat(r)},time:function(r){return+ua(r)},trim:function(r){return J(r)?Or(r):r}});function zC(r){return I3.get(r)}var VC={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}},P3=(function(){function r(e,t){if(!ke(t)){var a="";Be(a)}this._opFn=VC[e],this._rvalFloat=Da(t)}return r.prototype.evaluate=function(e){return ke(e)?this._opFn(e,this._rvalFloat):this._opFn(Da(e),this._rvalFloat)},r})(),FC=(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:Da(e),n=ke(t)?t:Da(t),i=isNaN(a),o=isNaN(n);if(i&&(a=this._incomparable),o&&(n=this._incomparable),i&&o){var s=J(e),l=J(t);s&&(a=l?e:0),l&&(n=s?t:0)}return a<n?this._resultLT:a>n?-this._resultLT:0},r})(),k3=(function(){function r(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=Da(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=Da(e)===this._rvalFloat)}return this._isEQ?t:!t},r})();function R3(r,e){return r==="eq"||r==="ne"?new k3(r==="eq",e):re(VC,r)?new P3(r,e):null}var E3=(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 un(e,t)},r})();function N3(r,e){var t=new E3,a=r.data,n=t.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==ia&&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="";re(l,m)&&Be(x),l[m]=y}});else for(var c=0;c<r.dimensionsDetectedCount;c++)s.push({index:c});var f=NC(n,ia);e.__isBuiltIn&&(t.getRawDataItem=function(p){return f(a,i,s,p)},t.getRawData=ee(O3,null,r)),t.cloneRawData=ee(B3,null,r);var h=OC(n,ia);t.count=ee(h,null,a,i,s);var v=BC(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=ee(z3,null,s,l),t.cloneAllDimensionInfo=ee(V3,null,s),t}function O3(r){var e=r.sourceFormat;if(!Cm(e)){var t="";Be(t)}return r.data}function B3(r){var e=r.sourceFormat,t=r.data;if(!Cm(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(H({},t[i]));return n}}function z3(r,e,t){if(t!=null){if(ke(t)||!isNaN(t)&&!re(e,t))return r[t];if(re(e,t))return e[t]}}function V3(r){return le(r)}var GC=ae();function F3(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,GC.set(e,r)}function G3(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=H3(l,e),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function H3(r,e,t,a){var n="";e.length||Be(n),se(r)||Be(n);var i=r.type,o=GC.get(i);o||Be(n);var s=U(e,function(u){return N3(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=kC(u.data);Cm(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:ia,sourceHeader:p,dimensions:d.metaRawOption.dimensions}}else v={seriesLayoutBy:ia,sourceHeader:0,dimensions:u.dimensions};return Ip(u.data,v,null)})}function Cm(r){return r===Bt||r===Mr}var qf="undefined",j3=typeof Uint32Array===qf?Array:Uint32Array,W3=typeof Uint16Array===qf?Array:Uint16Array,HC=typeof Int32Array===qf?Array:Int32Array,Z1=typeof Float64Array===qf?Array:Float64Array,jC={float:Z1,int:HC,ordinal:Array,number:Array,time:Z1},uv;function Wi(r){return r>65535?j3:W3}function $i(){return[1/0,-1/0]}function $3(r){var e=r.constructor;return e===Array?r.slice():new e(r)}function q1(r,e,t,a,n){var i=jC[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 Pp=(function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=ae()}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=uv[n.sourceFormat];this._dimValueGetter=a||i,this._rawExtent=[],RC(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 jC[t||"float"](this._rawCount),this._rawExtent[i]=$i(),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]=$i());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];q1(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=uv.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]=$i()),q1(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=Wi(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=Wi(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=Wi(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 A=!0,w=t.getRawIndex(m),C=0;C<i;C++){var D=n[C],y=v[D][w];(y<e[D][0]||y>e[D][1])&&(A=!1)}A&&(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]]=$i();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(Wi(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),A=d-1,C=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((A-m)*(b-C)-(A-x)*(y-C)),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(Wi(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]=$i(),h=new(Wi(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=$i();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&&oa(e,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<n.length;o++)a._chunks[o]=i[o]?$3(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 un(t[i],this._dimensions[i])}uv={arrayRows:e,objectRows:function(t,a,n,i){return un(t[a],this._dimensions[i])},keyedColumns:e,original:function(t,a,n,i){var o=t&&(t.value==null?t:t.value);return un(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(t,a,n,i){return t[i]}}})(),r})(),WC=(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(gu(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)?ln:Dr,i=[];var f=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},v=he(f.seriesLayoutBy,h.seriesLayoutBy)||null,d=he(f.sourceHeader,h.sourceHeader),p=he(f.dimensions,h.dimensions),g=v!==h.seriesLayoutBy||!!d!=!!h.sourceHeader||p;n=g?[Ip(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=[Ip(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&&J1(i)}var o,s=[],l=[];return L(e,function(u){u.prepareSource();var c=u.getSource(n||0),f="";n!=null&&!c&&J1(f),s.push(c),l.push(u._getVersionSign())}),a?o=G3(a,s,{datasetIndex:t.componentIndex}):n!=null&&(o=[S3(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];gu(this._sourceHost)&&l?s=l._innerGetDataStore(e,t,a):(s=new Pp,s.initData(new EC(t,e.length),e)),o[a]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(gu(e)){var t=xm(e);return t?[t.getSourceManager()]:[]}else return U(KN(e),function(a){return a.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,a,n;if(gu(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 K1(r){var e=r.option.transform;e&&Cc(r.option.transform)}function gu(r){return r.mainType==="series"}function J1(r){throw new Error(r)}var U3="line-height:1";function $C(r){var e=r.lineHeight;return e==null?U3:"line-height:"+Ht(e+"")+"px"}function UC(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 Y3=[0,10,20,30],X3=["",`
9
+ `,`
10
+
11
+ `,`
12
+
13
+
14
+ `];function St(r,e){return e.type=r,e}function kp(r){return r.type==="section"}function YC(r){return kp(r)?Z3:q3}function XC(r){if(kp(r)){var e=0,t=r.blocks.length,a=t>1||t>0&&!r.noHeader;return L(r.blocks,function(n){var i=XC(n);i>=e&&(e=i+ +(a&&(!i||kp(n)&&!n.noHeader)))}),e}return 0}function Z3(r,e,t,a){var n=e.noHeader,i=K3(XC(e)),o=[],s=e.blocks||[];$t(!s||$(s)),s=s||[];var l=r.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(re(u,l)){var c=new FC(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=YC(p)(m?H(H({},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):Rp(a,o.join(""),n?t:i.html);if(n)return f;var h=Dp(e.header,"ordinal",r.useUTC),v=UC(a,r.renderMode).nameStyle,d=$C(a);return r.renderMode==="richText"?ZC(r,h,v)+i.richText+f:Rp(a,'<div style="'+v+";"+d+';">'+Ht(h)+"</div>"+f,t)}function q3(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 _=$(_)?_:[_],U(_,function(b,S){return Dp(b,$(v)?v[S]:v,u)})};if(!(i&&o)){var f=s?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",n),h=i?"":Dp(l,"ordinal",u),v=e.valueType,d=o?[]:c(e.value,e.dataIndex),p=!s||!i,g=!s&&i,m=UC(a,n),y=m.nameStyle,x=m.valueStyle;return n==="richText"?(s?"":f)+(i?"":ZC(r,h,y))+(o?"":e4(r,d,p,g,x)):Rp(a,(s?"":f)+(i?"":J3(h,!s,y))+(o?"":Q3(d,p,g,x)),t)}}function Q1(r,e,t,a,n,i){if(r){var o=YC(r),s={useUTC:n,renderMode:t,orderMode:a,markupStyleCreator:e,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function K3(r){return{html:Y3[r],richText:X3[r]}}function Rp(r,e,t){var a='<div style="clear:both"></div>',n="margin: "+t+"px 0 0",i=$C(r);return'<div style="'+n+";"+i+';">'+e+a+"</div>"}function J3(r,e,t){var a=e?"margin-left:2px":"";return'<span style="'+t+";"+a+'">'+Ht(r)+"</span>"}function Q3(r,e,t,a){var n=t?"10px":"20px",i=e?"float:right;margin-left:"+n:"";return r=$(r)?r:[r],'<span style="'+i+";"+a+'">'+U(r,function(o){return Ht(o)}).join("&nbsp;&nbsp;")+"</span>"}function ZC(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function e4(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($(e)?e.join(" "):e,i)}function qC(r,e){var t=r.getData().getItemVisual(e,"style"),a=t[r.visualDrawType];return Si(a)}function KC(r,e){var t=r.get("padding");return t??(e==="richText"?[8,10]:10)}var cv=(function(){function r(){this.richTextStyles={},this._nextStyleNameId=hT()}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=WN({color:t,type:e,renderMode:a,markerId:n});return J(i)?i:(this.richTextStyles[n]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(e,t){var a={};$(t)?L(t,function(i){return H(a,i)}):H(a,t);var n=this._generateStyleName();return this.richTextStyles[n]=a,"{"+n+"|"+e+"}"},r})();function JC(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=$(s),u=qC(e,t),c,f,h,v;if(o>1||l&&!o){var d=t4(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=Co(n,t,i[0]),f=p.type}else v=c=l?s[0]:s;var g=Kg(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 t4(r,e,t,a,n){var i=e.getData(),o=oa(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(Co(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 Fa=Ie();function mu(r,e){return r.getName(e)||r.getId(e)}var dc="__universalTransitionEnabled",Xe=(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=Ys({count:a4,reset:n4}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n);var i=Fa(this).sourceManager=new WC(this);i.prepareSource();var o=this.getInitialData(t,n);tx(o,this),this.dataTask.context.data=o,Fa(this).dataBeforeProcessed=o,ex(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,a){var n=cl(this),i=n?Ho(t):{},o=this.subType;De.hasClass(o)&&(o+="Series"),ge(t,a.getTheme().get(this.subType)),ge(t,this.getDefaultOption()),yi(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&pn(t,i,n)},e.prototype.mergeOption=function(t,a){t=ge(this.option,t,!0),this.fillDataTextStyle(t.data);var n=cl(this);n&&pn(this.option,t,n);var i=Fa(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(t,a);tx(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Fa(this).dataBeforeProcessed=o,ex(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&&yi(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=Ep(this);if(a){var n=a.context.data;return t==null||!n.getLinkedData?n:n.getLinkedData(t)}else return Fa(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=Ep(this);if(a){var n=a.context;n.outputData=t,a!==this.dataTask&&(n.data=t)}Fa(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return ae(t)},e.prototype.getSourceManager=function(){return Fa(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return Fa(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 JC({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=_m.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=mu(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[mu(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[dc])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=mu(t,f);u[h]=!0,this._selectedDataIndicesMap[h]=t.getRawIndex(f)}}else if(s==="single"||s===!0){var v=a[l-1],h=mu(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(Xe,Zf);ut(Xe,_m);bT(Xe,De);function ex(r){var e=r.name;Kg(r)||(r.name=r4(r)||e)}function r4(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 a4(r){return r.model.getRawData().count()}function n4(r){var e=r.model;return e.setData(e.getRawData().cloneShallow()),i4}function i4(r,e){e.outputData&&r.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function tx(r,e){L(el(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(t){r.wrapMethod(t,de(o4,e))})}function o4(r,e){var t=Ep(r);return t&&t.setOutputEnd((e||this).count()),e}function Ep(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=Fo("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})();Qg(Qe);Pf(Qe);function Wo(){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 QC=Ie(),s4=Wo(),We=(function(){function r(){this.group=new ue,this.uid=Fo("viewChart"),this.renderTask=Ys({plan:l4,reset:u4}),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&&ax(i,n,"emphasis")},r.prototype.downplay=function(e,t,a,n){var i=e.getData(n&&n.dataType);i&&ax(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){xn(this.group,e)},r.markUpdateMethod=function(e,t){QC(e).updateMethod=t},r.protoInitialize=(function(){var e=r.prototype;e.type="chart"})(),r})();function rx(r,e,t){r&&sl(r)&&(e==="emphasis"?Ma:La)(r,t)}function ax(r,e,t){var a=xi(r,e),n=e&&e.highlightKey!=null?WE(e.highlightKey):null;a!=null?L(je(a),function(i){rx(r.getItemGraphicEl(i),t,n)}):r.eachItemGraphicEl(function(i){rx(i,t,n)})}Qg(We);Pf(We);function l4(r){return s4(r.model)}function u4(r){var e=r.model,t=r.ecModel,a=r.api,n=r.payload,i=e.pipelineContext.progressiveRender,o=r.view,s=n&&QC(n).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,t,a,n),c4[l]}var c4={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)}}},Hc="\0__throttleOriginMethod",nx="\0__throttleRate",ix="\0__throttleType";function Am(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 $o(r,e,t,a){var n=r[e];if(n){var i=n[Hc]||n,o=n[ix],s=n[nx];if(s!==t||o!==a){if(t==null||!a)return r[e]=i;n=r[e]=Am(i,t,a==="debounce"),n[Hc]=i,n[ix]=a,n[nx]=t}return n}}function hl(r,e){var t=r[e];t&&t[Hc]&&(t.clear&&t.clear(),r[e]=t[Hc])}var ox=Ie(),sx={itemStyle:_i(iC,!0),lineStyle:_i(nC,!0)},f4={lineStyle:"stroke",itemStyle:"fill"};function eA(r,e){var t=r.visualStyleMapper||sx[e];return t||(console.warn("Unknown style type '"+e+"'."),sx.itemStyle)}function tA(r,e){var t=r.visualDrawType||f4[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var h4={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=r.getModel(a),i=eA(r,a),o=i(n),s=n.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=tA(r,a),u=o[l],c=ie(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"||ie(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||ie(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=H({},o);g[l]=c(p),v.setItemVisual(d,"style",g)}}}},os=new Ge,v4={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!(r.ignoreStyleOnData||e.isSeriesFiltered(r))){var t=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=eA(r,a),i=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[a]){os.option=l[a];var u=n(os),c=o.ensureUniqueItemVisual(s,"style");H(c,u),os.option.decal&&(o.setItemVisual(s,"decal",os.option.decal),os.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},d4={performRawSeries:!0,overallReset:function(r){var e=ae();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)),ox(t).scope=i}}),r.eachSeries(function(t){if(!(t.isColorBySeries()||r.isSeriesFiltered(t))){var a=t.getRawData(),n={},i=t.getData(),o=ox(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=tA(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)}})}})}},yu=Math.PI;function p4(r,e){e=e||{},oe(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 zf({shape:{startAngle:-yu/2,endAngle:-yu/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:yu*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:yu*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 rA=(function(){function r(e,t,a,n){this._stageTaskMap=ae(),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=ae();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=ae(),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)||Ys({plan:_4,reset:b4,count:w4}));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||Ys({reset:g4});o.context={ecModel:a,api:n,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=ae(),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,Ys({reset:m4,onDirty:x4})));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 ie(e)&&(e={overallReset:e,seriesType:T4(e)}),e.uid=Fo("stageHandler"),t&&(e.visualType=t),e},r})();function g4(r){r.overallReset(r.ecModel,r.api,r.payload)}function m4(r){return r.overallProgress&&y4}function y4(){this.agent.dirty(),this.getDownstream().dirty()}function x4(){this.agent&&this.agent.dirty()}function _4(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function b4(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 aA(a)}):S4}var S4=aA(0);function aA(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 w4(r){return r.data.count()}function T4(r){jc=null;try{r(vl,nA)}catch{}return jc}var vl={},nA={},jc;iA(vl,bm);iA(nA,LC);vl.eachSeriesByType=vl.eachRawSeriesByType=function(r){jc=r};vl.eachComponent=function(r){r.mainType==="series"&&r.subType&&(jc=r.subType)};function iA(r,e){for(var t in e.prototype)r[t]=nt}var lx=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const C4={color:lx,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],lx]};var Et="#B9B8CE",ux="#100C2A",xu=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"}}}},cx=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],oA={darkMode:!0,color:cx,backgroundColor:ux,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:ux},dayLabel:{color:Et},monthLabel:{color:Et},yearLabel:{color:Et}},timeAxis:xu(),logAxis:xu(),valueAxis:xu(),categoryAxis:xu(),line:{symbol:"circle"},graph:{color:cx},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"}}};oA.categoryAxis.splitLine.show=!1;var A4=(function(){function r(){}return r.prototype.normalizeQuery=function(e){var t={},a={},n={};if(J(e)){var i=ta(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})(),Np=["symbol","symbolSize","symbolRotate","symbolOffset"],fx=Np.concat(["symbolKeepAspect"]),D4={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<Np.length;o++){var s=Np[o],l=r.get(s);ie(l)?(i=!0,n[s]=l):a[s]=l}if(a.symbol=a.symbol||r.defaultSymbol,t.setVisual(H({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}}},M4={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<fx.length;s++){var l=fx[s],u=o.getShallow(l,!0);u!=null&&n.setItemVisual(i,l,u)}}return{dataEach:t.hasItemOption?a:null}}};function Dm(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 zl(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 sA(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 lA(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=H({},n),o.dispatchAction(H(n,{type:a[1],seriesIndex:t(i,n)}))})})}function Ui(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=xi(f,n.fromActionPayload);t.trigger(i,{type:i,seriesId:o.id,name:$(h)?f.getName(h[0]):f.getName(h),selected:J(l)?l:H({},l)})}})}function L4(r,e,t){r.on("selectchanged",function(a){var n=t.getModel();a.isFromClick?(Ui("map","selectchanged",e,n,a),Ui("pie","selectchanged",e,n,a)):a.fromAction==="select"?(Ui("map","selected",e,n,a),Ui("pie","selected",e,n,a)):a.fromAction==="unselect"&&(Ui("map","unselected",e,n,a),Ui("pie","unselected",e,n,a))})}function ii(r,e,t){for(var a;r&&!(e(r)&&(a=r,t));)r=r.__hostTarget||r.parent;return a}var I4=Math.round(Math.random()*9),P4=typeof Object.defineProperty=="function",k4=(function(){function r(){this._id="__ec_inner_"+I4++}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})(),R4=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()}}),E4=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()}}),N4=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()}}),O4=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:Na,diamond:E4,pin:N4,arrow:O4,triangle:R4},z4={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}},Wc={};L(B4,function(r,e){Wc[e]=new r});var V4=Ce.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,e,t){var a=Rc(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=Wc[a];n||(a="rect",n=Wc[a]),z4[a](e.x,e.y,e.width,e.height,n.shape),n.buildPath(r,n.shape,t)}}});function F4(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=qT(r.slice(8),new xe(e,t,a,n),o?"center":"cover"):r.indexOf("path://")===0?l=Vf(r.slice(7),{},new xe(e,t,a,n),o?"center":"cover"):l=new V4({shape:{symbolType:r,x:e,y:t,width:a,height:n}}),l.__isEmptyBrush=s,l.setColor=F4,i&&l.setColor(i),l}function Uo(r){return $(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function Li(r,e){if(r!=null)return $(r)||(r=[r,r]),[Z(r[0],e[0])||0,Z(he(r[1],r[0]),e[1])||0]}function oi(r){return isFinite(r)}function G4(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=oi(a)?a:0,n=oi(n)?n:1,i=oi(i)?i:0,o=oi(o)?o:0;var s=r.createLinearGradient(a,i,n,o);return s}function H4(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=oi(o)?o:.5,s=oi(s)?s:.5,l=l>=0&&oi(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function Op(r,e,t){for(var a=e.type==="radial"?H4(r,e,t):G4(r,e,t),n=e.colorStops,i=0;i<n.length;i++)a.addColorStop(n[i].offset,n[i].color);return a}function j4(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 _u(r){return parseInt(r,10)}function ho(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]||_u(s[a])||_u(r.style[a]))-(_u(s[i])||0)-(_u(s[o])||0)|0}function W4(r,e){return!r||r==="solid"||!(e>0)?null:r==="dashed"?[4*e,2*e]:r==="dotted"?[e]:ke(r)?[r]:$(r)?r:null}function Mm(r){var e=r.style,t=e.lineDash&&e.lineWidth>0&&W4(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 $4=new ca(!0);function $c(r){var e=r.stroke;return!(e==null||e==="none"||!(r.lineWidth>0))}function hx(r){return typeof r=="string"&&r!=="none"}function Uc(r){var e=r.fill;return e!=null&&e!=="none"}function vx(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 dx(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 Bp(r,e,t){var a=em(e.image,e.__image,t);if(kf(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)*tc),i.scaleSelf(e.scaleX||1,e.scaleY||1),n.setTransform(i)}return n}}function U4(r,e,t,a){var n,i=$c(t),o=Uc(t),s=t.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var c=e.path||$4,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?Op(r,h,S):e.__canvasFillGradient,e.__canvasFillGradient=y),p&&(x=f?Op(r,v,S):e.__canvasStrokeGradient,e.__canvasStrokeGradient=x),g&&(_=f||!e.__canvasFillPattern?Bp(r,h,e):e.__canvasFillPattern,e.__canvasFillPattern=_),m&&(b=f||!e.__canvasStrokePattern?Bp(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 A,C;r.setLineDash&&t.lineDash&&(n=Mm(e),A=n[0],C=n[1]);var D=!0;(u||f&io)&&(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),A&&(r.setLineDash(A),r.lineDashOffset=C),a||(t.strokeFirst?(i&&dx(r,t),o&&vx(r,t)):(o&&vx(r,t),i&&dx(r,t))),A&&r.setLineDash([])}function Y4(r,e,t){var a=e.__image=em(t.image,e.__image,e,e.onload);if(!(!a||!kf(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 X4(r,e,t){var a,n=t.text;if(n!=null&&(n+=""),n){r.font=t.font||fn,r.textAlign=t.textAlign,r.textBaseline=t.textBaseline;var i=void 0,o=void 0;r.setLineDash&&t.lineDash&&(a=Mm(e),i=a[0],o=a[1]),i&&(r.setLineDash(i),r.lineDashOffset=o),t.strokeFirst?($c(t)&&r.strokeText(n,t.x,t.y),Uc(t)&&r.fillText(n,t.x,t.y)):(Uc(t)&&r.fillText(n,t.x,t.y),$c(t)&&r.strokeText(n,t.x,t.y)),i&&r.setLineDash([])}}var px=["shadowBlur","shadowOffsetX","shadowOffsetY"],gx=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function uA(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)?fi.opacity:o}(a||e.blend!==t.blend)&&(i||(er(r,n),i=!0),r.globalCompositeOperation=e.blend||fi.blend);for(var s=0;s<px.length;s++){var l=px[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||fi.shadowColor),i}function mx(r,e,t,a,n){var i=dl(e,n.inHover),o=a?null:t&&dl(t,n.inHover)||{};if(i===o)return!1;var s=uA(r,i,o,a,n);if((a||i.fill!==o.fill)&&(s||(er(r,n),s=!0),hx(i.fill)&&(r.fillStyle=i.fill)),(a||i.stroke!==o.stroke)&&(s||(er(r,n),s=!0),hx(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<gx.length;c++){var f=gx[c],h=f[0];(a||i[h]!==o[h])&&(s||(er(r,n),s=!0),r[h]=i[h]||f[1])}return s}function Z4(r,e,t,a,n){return uA(r,dl(e,n.inHover),t&&dl(t,n.inHover),a,n)}function cA(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 q4(r,e,t){for(var a=!1,n=0;n<r.length;n++){var i=r[n];a=a||i.isZeroArea(),cA(e,i),e.beginPath(),i.buildPath(e,i.shape),e.clip()}t.allClipped=a}function K4(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 yx=1,xx=2,_x=3,bx=4;function J4(r){var e=Uc(r),t=$c(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 dl(r,e){return e&&r.__hoverStyle||r.style}function fA(r,e){si(r,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function si(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||j4(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(),q4(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&&J4(e.style);s||K4(n,u.transform)?(er(r,t),cA(r,e)):c||er(r,t);var f=dl(e,t.inHover);e instanceof Ce?(t.lastDrawType!==yx&&(l=!0,t.lastDrawType=yx),mx(r,e,u,l,t),(!c||!t.batchFill&&!t.batchStroke)&&r.beginPath(),U4(r,e,f,c),c&&(t.batchFill=f.fill||"",t.batchStroke=f.stroke||"")):e instanceof wo?(t.lastDrawType!==_x&&(l=!0,t.lastDrawType=_x),mx(r,e,u,l,t),X4(r,e,f)):e instanceof At?(t.lastDrawType!==xx&&(l=!0,t.lastDrawType=xx),Z4(r,e,u,l,t),Y4(r,e,f)):e.getTemporalDisplayables&&(t.lastDrawType!==bx&&(l=!0,t.lastDrawType=bx),Q4(r,e,t)),c&&a&&er(r,t),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),t.prevEl=e,e.__dirty=0,e.__isRendered=!0}function Q4(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(),si(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(),si(r,l,i,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,r.restore()}var fv=new k4,Sx=new Ml(100),Tx=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Ao(r,e){if(r==="none")return null;var t=e.getDevicePixelRatio(),a=e.getZr(),n=a.painter.type==="svg";r.dirty&&fv.delete(r);var i=fv.get(r);if(i)return i;var o=oe(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,fv.set(r,s),r.dirty=!1,s;function l(u){for(var c=[t],f=!0,h=0;h<Tx.length;++h){var v=o[Tx[h]];if(v!=null&&!$(v)&&!J(v)&&!ke(v)&&typeof v!="boolean"){f=!1;break}c.push(v)}var d;if(f){d=c.join(",")+(n?"-svg":"");var p=Sx.get(d);p&&(n?u.svgElement=p:u.image=p)}var g=vA(o.dashArrayX),m=eO(o.dashArrayY),y=hA(o.symbol),x=tO(g),_=dA(m),b=!n&&hn.createCanvas(),S=n&&{tag:"g",attrs:{},key:"dcl",children:[]},w=C(),A;b&&(b.width=w.width*t,b.height=w.height*t,A=b.getContext("2d")),D(),f&&Sx.put(d,b||S),u.image=b,u.svgElement=S,u.svgWidth=w.width,u.svgHeight=w.height;function C(){for(var M=1,I=0,P=x.length;I<P;++I)M=F0(M,x[I]);for(var k=1,I=0,P=y.length;I<P;++I)k=F0(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(){A&&(A.clearRect(0,0,b.width,b.height),o.backgroundColor&&(A.fillStyle=o.backgroundColor,A.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 G=0,I=0;I<g[E].length;++I)G+=g[E][I];if(G<=0)break;if(V%2===0){var Y=(1-o.symbolSize)*.5,X=O+g[E][V]*Y,q=P+m[k]*Y,Q=g[E][V]*o.symbolSize,pe=m[k]*o.symbolSize,ce=F/2%y[B].length;ne(X,q,Q,pe,y[B][ce])}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 ne(te,W,j,K,Se){var ye=n?1:t,we=lt(Se,te*ye,W*ye,j*ye,K*ye,o.color,o.symbolKeepAspect);if(n){var ve=a.painter.renderOneToVNode(we);ve&&S.children.push(ve)}else fA(A,we)}}}}function hA(r){if(!r||r.length===0)return[["rect"]];if(J(r))return[[r]];for(var e=!0,t=0;t<r.length;++t)if(!J(r[t])){e=!1;break}if(e)return hA([r]);for(var a=[],t=0;t<r.length;++t)J(r[t])?a.push([r[t]]):a.push(r[t]);return a}function vA(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 vA([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 eO(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 tO(r){return U(r,function(e){return dA(e)})}function dA(r){for(var e=0,t=0;t<r.length;++t)e+=r[t];return r.length%2===1?e*2:e}function rO(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=Ao(s,e)}});var n=a.getVisual("decal");if(n){var i=a.getVisual("style");i.decal=Ao(n,e)}}})}var Er=new Ar,pA={};function aO(r,e){pA[r]=e}function nO(r){return pA[r]}var iO=1,oO=800,sO=900,lO=1e3,uO=2e3,cO=5e3,gA=1e3,fO=1100,Lm=2e3,mA=3e3,hO=4e3,Kf=4500,vO=4600,dO=5e3,pO=6e3,yA=7e3,gO={PROCESSOR:{FILTER:lO,SERIES_FILTER:oO,STATISTIC:cO},VISUAL:{LAYOUT:gA,PROGRESSIVE_LAYOUT:fO,GLOBAL:Lm,CHART:mA,POST_CHART_LAYOUT:vO,COMPONENT:hO,BRUSH:dO,CHART_ITEM:Kf,ARIA:pO,DECAL:yA}},Rt="__flagInMainProcess",Kt="__pendingUpdate",hv="__needsUpdateStatus",Cx=/^[a-zA-Z0-9_]+$/,vv="__connectUpdateStatus",Ax=0,mO=1,yO=2;function xA(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(this.isDisposed()){this.id;return}return bA(this,r,e)}}function _A(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return bA(this,r,e)}}function bA(r,e,t){return t[0]=t[0]&&t[0].toLowerCase(),Ar.prototype[e].apply(r,t)}var SA=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(Ar),wA=SA.prototype;wA.on=_A("on");wA.off=_A("off");var Yi,dv,bu,Ga,pv,gv,mv,ss,ls,Dx,Mx,yv,Lx,Su,Ix,TA,cr,Px,CA=(function(r){z(e,r);function e(t,a,n){var i=r.call(this,new A4)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],n=n||{},J(a)&&(a=AA[a]),i._dom=t;var o="canvas",s="auto",l=!1;n.ssr&&vR(function(h){var v=fe(h),d=v.dataIndex;if(d!=null){var p=ae();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=O0(t,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:he(n.useDirtyRect,l),useCoarsePointer:he(n.useCoarsePointer,s),pointerSize:n.pointerSize});i._ssr=n.ssr,i._throttledZrFlush=Am(ee(u.flush,u),17),a=le(a),a&&PC(a,!0),i._theme=a,i._locale=BN(n.locale||oC),i._coordSysMgr=new Bl;var c=i._api=Ix(i);function f(h,v){return h.__prio-v.__prio}return nc(Xc,f),nc(zp,f),i._scheduler=new rA(i,c,zp,Xc),i._messageCenter=new SA,i._initEvents(),i.resize=ee(i.resize,i),u.animation.on("frame",i._onframe,i),Dx(u,i),Mx(u,i),Cc(i),i}return e.prototype._onframe=function(){if(!this._disposed){Px(this);var t=this._scheduler;if(this[Kt]){var a=this[Kt].silent;this[Rt]=!0;try{Yi(this),Ga.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,ss.call(this,a),ls.call(this,a)}else if(t.unfinished){var n=iO,i=this._model,o=this._api;t.unfinished=!1;do{var s=+new Date;t.performSeriesTasks(i),t.performDataProcessorTasks(i),gv(this,i),t.performVisualTasks(i),Su(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 l3(this._api),u=this._theme,c=this._model=new bm;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},Vp);var f={seriesTransition:s,optionChanged:!0};if(n)this[Kt]={silent:i,updateParams:f},this[Rt]=!1,this.getZr().wakeUp();else{try{Yi(this),Ga.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,ss.call(this,i),ls.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(kx[n]){var l=s,u=s,c=-s,f=-s,h=[],v=t&&t.pixelRatio||this.getDevicePixelRatio();L(Zs,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=hn.createCanvas(),m=O0(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 pv(this,"convertToPixel",t,a)},e.prototype.convertFromPixel=function(t,a){return pv(this,"convertFromPixel",t,a)},e.prototype.containPixel=function(t,a){if(this._disposed){this.id;return}var n=this._model,i,o=Hs(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=Hs(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?Dm(s,l,a):zl(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(xO,function(a){var n=function(i){var o=t.getModel(),s=i.target,l,u=a==="globalout";if(u?l={}:s&&ii(s,function(d){var p=fe(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=H({},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(Xs,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)}),L4(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&&yT(this.getDom(),Pm,"");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 Zs[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&&Yi(this),Ga.update.call(this,{type:"resize",animation:H({duration:0},t&&t.animation)})}catch(o){throw this[Rt]=!1,o}this[Rt]=!1,ss.call(this,i),ls.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(),!!Fp[t]){var n=Fp[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=H({},t);return a.type=Xs[t.type],a},e.prototype.dispatchAction=function(t,a){if(this._disposed){this.id;return}if(se(a)||(a={silent:!!a}),!!Yc[t.type]&&this._model){if(this[Rt]){this._pendingActions.push(t);return}var n=a.silent;mv.call(this,t,n);var i=a.flush;i?this._zr.flush():i!==!1&&Ae.browser.weChat&&this._throttledZrFlush(),ss.call(this,n),ls.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(){Yi=function(f){var h=f._scheduler;h.restorePipelines(f._model),h.prepareStageTasks(),dv(f,!0),dv(f,!1),h.plan()},dv=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 A="_ec_"+S.id+"_"+S.type,C=!w&&g[A];if(!C){var D=ta(S.type),M=h?Qe.getClass(D.main,D.sub):We.getClass(D.sub);C=new M,C.init(v,y),g[A]=C,p.push(C),m.add(C.group)}S.__viewId=C.__id=A,C.__alive=!0,C.__model=S,C.group.__ecComponentInfo={mainType:S.mainType,index:S.componentIndex},!h&&d.prepareView(C,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)}},bu=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&&(_=ae(),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(h1(v))if(S instanceof Xe)v.type===hi&&!v.notBlur&&!S.get(["emphasis","disabled"])&&OE(S,v,f._api);else{var A=om(S.mainType,S.componentIndex,v.name,f._api),C=A.focusSelf,D=A.dispatchers;v.type===hi&&C&&!v.notBlur&&_p(S.mainType,S.componentIndex,f._api),D&&L(D,function(M){v.type===hi?Ma(M):La(M)})}else Sp(v)&&S instanceof Xe&&(VE(S,v,f._api),c1(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)}},Ga={prepareAndUpdate:function(f){Yi(this),Ga.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),gv(this,v),g.update(v,d),t(v),m.performVisualTasks(v,f),yv(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=ae();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}),Su(this,v,d,f,{},g),Er.trigger("afterupdate",v,d)}},updateView:function(f){var h=this._model;h&&(h.setUpdatePayload(f),We.markUpdateMethod(f,"updateView"),t(h),this._scheduler.performVisualTasks(h,f,{setDirty:!0}),yv(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()}),We.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){Ga.update.call(this,f)}},pv=function(f,h,v,d){if(f._disposed){f.id;return}for(var p=f._model,g=f._coordSysMgr.getCoordinateSystems(),m,y=Hs(p,v),x=0;x<g.length;x++){var _=g[x];if(_[h]&&(m=_[h](p,y,d))!=null)return m}},gv=function(f,h){var v=f._chartsMap,d=f._scheduler;h.eachSeries(function(p){d.updateStreamModes(p,v[p.__viewId])})},mv=function(f,h){var v=this,d=this.getModel(),p=f.type,g=f.escapeConnect,m=Yc[p],y=m.actionInfo,x=(y.update||"update").split(":"),_=x.pop(),b=x[0]!=null&&ta(x[0]);this[Rt]=!0;var S=[f],w=!1;f.batch&&(w=!0,S=U(f.batch,function(k){return k=oe(H({},k),f),k.batch=null,k}));var A=[],C,D=Sp(f),M=h1(f);if(M&&VT(this._api),L(S,function(k){if(C=m.action(k,v._model,v._api),C=C||H({},k),C.type=y.event||C.type,A.push(C),M){var R=Jg(f),E=R.queryOptionMap,B=R.mainTypeSpecified,O=B?E.keys()[0]:"series";bu(v,_,k,O),cr(v)}else D?(bu(v,_,k,"series"),cr(v)):b&&bu(v,_,k,b.main,b.sub)}),_!=="none"&&!M&&!D&&!b)try{this[Kt]?(Yi(this),Ga.update.call(this,f),this[Kt]=null):Ga[_].call(this,f)}catch(k){throw this[Rt]=!1,k}if(w?C={type:y.event||p,escapeConnect:g,batch:A}:C=A[0],this[Rt]=!1,!h){var I=this._messageCenter;if(I.trigger(C.type,C),D){var P={type:"selectchanged",escapeConnect:g,selected:FE(d),isFromClick:f.isFromClick||!1,fromAction:f.type,fromActionPayload:f};I.trigger(P.type,P)}}},ss=function(f){for(var h=this._pendingActions;h.length;){var v=h.shift();mv.call(this,v,f)}},ls=function(f){!f&&this.trigger("updated")},Dx=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")})},Mx=function(f,h){f.on("mouseover",function(v){var d=v.target,p=ii(d,sl);p&&(BE(p,v,h._api),cr(h))}).on("mouseout",function(v){var d=v.target,p=ii(d,sl);p&&(zE(p,v,h._api),cr(h))}).on("click",function(v){var d=v.target,p=ii(d,function(y){return fe(y).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",m=fe(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;nc(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(_)})}}yv=function(f,h,v,d,p){a(h),Lx(f,h,v,d,p),L(f._chartsViews,function(g){g.__alive=!1}),Su(f,h,v,d,p),L(f._chartsViews,function(g){g.__alive||g.remove(h,v)})},Lx=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)})},Su=function(f,h,v,d,p,g){var m=f._scheduler;p=H(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,_),c1(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[hv]=!0,f.getZr().wakeUp()},Px=function(f){f[hv]&&(f.getZr().storage.traverse(function(h){mo(h)||n(h)}),f[hv]=!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===Nf&&f.states.emphasis?h.push("emphasis"):f.hoverState===Pl&&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(!mo(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(mo(m))return;if(m instanceof Ce&&$E(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)}})}Ix=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){Ma(d,p),cr(f)},v.prototype.leaveEmphasis=function(d,p){La(d,p),cr(f)},v.prototype.enterBlur=function(d){NT(d),cr(f)},v.prototype.leaveBlur=function(d){im(d),cr(f)},v.prototype.enterSelect=function(d){OT(d),cr(f)},v.prototype.leaveSelect=function(d){BT(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})(LC))(f)},TA=function(f){function h(v,d){for(var p=0;p<v.length;p++){var g=v[p];g[vv]=d}}L(Xs,function(v,d){f._messageCenter.on(d,function(p){if(kx[f.group]&&f[vv]!==Ax){if(p&&p.escapeConnect)return;var g=f.makeActionFromEvent(p),m=[];L(Zs,function(y){y!==f&&y.group===f.group&&m.push(y)}),h(m,Ax),L(m,function(y){y[vv]!==mO&&y.dispatchAction(g)}),h(m,yO)}})})}})(),e})(Ar),Im=CA.prototype;Im.on=xA("on");Im.off=xA("off");Im.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 xO=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Yc={},Xs={},zp=[],Vp=[],Xc=[],AA={},Fp={},Zs={},kx={},_O=+new Date-0,Pm="_echarts_instance_";function bO(r,e,t){{var a=SO(r);if(a)return a}var n=new CA(r,e,t);return n.id="ec_"+_O++,Zs[n.id]=n,yT(r,Pm,n.id),TA(n),Er.trigger("afterinit",n),n}function SO(r){return Zs[RR(r,Pm)]}function DA(r,e){AA[r]=e}function MA(r){be(Vp,r)<0&&Vp.push(r)}function LA(r,e){Rm(zp,r,e,uO)}function wO(r){km("afterinit",r)}function TO(r){km("afterupdate",r)}function km(r,e){Er.on(r,e)}function ha(r,e,t){ie(e)&&(t=e,e="");var a=se(r)?r.type:[r,r={event:e}][0];r.event=(r.event||a).toLowerCase(),e=r.event,!Xs[e]&&($t(Cx.test(a)&&Cx.test(e)),Yc[a]||(Yc[a]={action:t,actionInfo:r}),Xs[e]=a)}function CO(r,e){Bl.register(r,e)}function AO(r,e){Rm(Xc,r,e,gA,"layout")}function Ii(r,e){Rm(Xc,r,e,mA,"visual")}var Rx=[];function Rm(r,e,t,a,n){if((ie(e)||se(e))&&(t=e,e=a),!(be(Rx,t)>=0)){Rx.push(t);var i=rA.wrapStageHandler(t,n);i.__prio=e,i.__raw=t,r.push(i)}}function IA(r,e){Fp[r]=e}function DO(r,e,t){var a=nO("registerMap");a&&a(r,e,t)}var MO=F3;Ii(Lm,h4);Ii(Kf,v4);Ii(Kf,d4);Ii(Lm,D4);Ii(Kf,M4);Ii(yA,rO);MA(PC);LA(sO,_3);IA("default",p4);ha({type:hi,event:hi,update:hi},nt);ha({type:uc,event:uc,update:uc},nt);ha({type:js,event:js,update:js},nt);ha({type:cc,event:cc,update:cc},nt);ha({type:Ws,event:Ws,update:Ws},nt);DA("light",C4);DA("dark",oA);var Ex=[],LO={registerPreprocessor:MA,registerProcessor:LA,registerPostInit:wO,registerPostUpdate:TO,registerUpdateLifecycle:km,registerAction:ha,registerCoordinateSystem:CO,registerLayout:AO,registerVisual:Ii,registerTransform:MO,registerLoading:IA,registerMap:DO,registerImpl:aO,PRIORITY:gO,ComponentModel:De,ComponentView:Qe,SeriesModel:Xe,ChartView:We,registerComponentModel:function(r){De.registerClass(r)},registerComponentView:function(r){Qe.registerClass(r)},registerSeriesModel:function(r){Xe.registerClass(r)},registerChartView:function(r){We.registerClass(r)},registerSubTypeDefaulter:function(r,e){De.registerSubTypeDefaulter(r,e)},registerPainter:function(r,e){fR(r,e)}};function Te(r){if($(r)){L(r,function(e){Te(e)});return}be(Ex,r)>=0||(Ex.push(r),ie(r)&&(r={install:r}),r.install(LO))}function us(r){return r==null?0:r.length||1}function Nx(r){return r}var Ia=(function(){function r(e,t,a,n,i,o){this._old=e,this._new=t,this._oldKeyGetter=a||Nx,this._newKeyGetter=n||Nx,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=us(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=us(u),h=us(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=us(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=us(l);u===0?(t[s]=o,i&&a.push(s)):u===1?t[s]=[l,o]:l.push(o)}}},r})(),IO=(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=ae(),i=[],o=[],s={};L(r.dimensions,function(h){var v=r.getDimensionInfo(h),d=v.coordDim;if(d){var p=v.coordDimIndex;xv(a,d)[p]=h,v.isExtraCoord||(n.set(d,1),kO(v.type)&&(i[0]=h),xv(s,d)[p]=r.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(h)}SC.each(function(g,m){var y=xv(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 IO(s,e),t}function xv(r,e){return r.hasOwnProperty(e)||(r[e]=[]),r[e]}function Zc(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function kO(r){return!(r==="ordinal"||r==="time")}var pc=(function(){function r(e){this.otherDims={},e!=null&&H(this,e)}return r})(),RO=Ie(),EO={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},PA=(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=EA(this.source)))},r.prototype.getSourceDimensionIndex=function(e){return he(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=RC(this.source),a=!NA(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+=EO[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 kA(r){return r instanceof PA}function RA(r){for(var e=ae(),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 EA(r){var e=RO(r);return e.dimNameMap||(e.dimNameMap=RA(r.dimensionsDefine))}function NA(r){return r>30}var cs=se,Ha=U,NO=typeof Int32Array>"u"?Array:Int32Array,OO="e\0\0",Ox=-1,BO=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],zO=["_approximateExtent"],Bx,wu,fs,hs,_v,vs,bv,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;kA(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=J(f)?new pc({name:f}):f instanceof pc?f:new pc(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=ae();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 Pp&&(i=e),!i){var o=this.dimensions,s=Sm(e)||Ot(e)?new EC(e,o.length):e;i=new Pp;var l=Ha(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&&bv(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!==ln&&!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&&_R(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++)bv(this,c);Bx(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){cs(e)?H(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=fs(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 wu(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 $(e)?n.getValues(Ha(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)?Ox:n},r.prototype.indicesOfNearest=function(e,t,a){return this._store.indicesOfNearest(this._getStoreDimIndex(e),t,a)},r.prototype.each=function(e,t,a){ie(e)&&(a=t,t=e,e=[]);var n=a||this,i=Ha(hs(e),this._getStoreDimIndex,this);this._store.each(i,n?ee(t,n):t)},r.prototype.filterSelf=function(e,t,a){ie(e)&&(a=t,t=e,e=[]);var n=a||this,i=Ha(hs(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,n?ee(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){ie(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=Ha(hs(e),this._getStoreDimIndex,this),s=vs(this);return s._store=this._store.map(o,i?ee(t,i):t),s},r.prototype.modify=function(e,t,a,n){var i=a||n||this,o=Ha(hs(e),this._getStoreDimIndex,this);this._store.modify(o,i?ee(t,i):t)},r.prototype.downSample=function(e,t,a,n){var i=vs(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,a,n),i},r.prototype.minmaxDownSample=function(e,t){var a=vs(this);return a._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),a},r.prototype.lttbDownSample=function(e,t){var a=vs(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 Ia(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(a){return wu(e,a)},function(a){return wu(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||{},cs(e)?H(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),$(i)?i=i.slice():cs(i)&&(i=H({},i)),n[t]=i),i},r.prototype.setItemVisual=function(e,t,a){var n=this._itemVisuals[e]||{};this._itemVisuals[e]=n,cs(t)?H(n,t):n[t]=a},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(e,t){cs(e)?H(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?H(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;yp(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:Ha(this.dimensions,this._getDimInfo,this),this.hostModel)),_v(e,this),e._store=this._store,e},r.prototype.wrapMethod=function(e,t){var a=this[e];ie(a)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var n=a.apply(this,arguments);return t.apply(this,[n].concat(Hg(arguments)))})},r.internalField=(function(){Bx=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 NO(o.categories.length);for(var l=0;l<a.length;l++)a[l]=Ox;for(var l=0;l<s.count();l++)a[s.get(i.storeDimIndex,l)]=l}})},fs=function(e,t,a){return pt(e._getCategory(t,a),null)},wu=function(e,t){var a=e._idList[t];return a==null&&e._idDimIdx!=null&&(a=fs(e,e._idDimIdx,t)),a==null&&(a=OO+t),a},hs=function(e){return $(e)||(e=e!=null?[e]:[]),e},vs=function(e){var t=new r(e._schema?e._schema:Ha(e.dimensions,e._getDimInfo,e),e.hostModel);return _v(t,e),t},_v=function(e,t){L(BO.concat(t.__wrappedMethods||[]),function(a){t.hasOwnProperty(a)&&(e[a]=t[a])}),e.__wrappedMethods=t.__wrappedMethods,L(zO,function(a){e[a]=le(t[a])}),e._calculationInfo=H({},t._calculationInfo)},bv=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=fs(e,i,t)),l==null&&o!=null&&(n[t]=l=fs(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 Vl(r,e){Sm(r)||(r=wm(r)),e=e||{};var t=e.coordDimensions||[],a=e.dimensionsDefine||r.dimensionsDefine||[],n=ae(),i=[],o=FO(r,t,a,e.dimensionsCount),s=e.canOmitUnusedDimensions&&NA(o),l=a===r.dimensionsDefine,u=l?EA(r):RA(a),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(r,o));for(var f=ae(c),h=new HC(o),v=0;v<h.length;v++)h[v]=-1;function d(C){var D=h[C];if(D<0){var M=a[C],I=se(M)?M:{name:M},P=new pc,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[C]=R,P.storeDimIndex=C,i.push(P),P}return i[D]}if(!s)for(var v=0;v<o;v++)d(v);f.each(function(C,D){var M=je(C).slice();if(M.length===1&&!J(M[0])&&M[0]<0){f.set(D,!1);return}var I=f.set(D,[]);L(M,function(P,k){var R=J(P)?u.get(P):P;R!=null&&R<o&&(I[k]=R,g(d(R),D,k))})});var p=0;L(t,function(C){var D,M,I,P;if(J(C))D=C,P={};else{P=C,D=P.name;var k=P.ordinalMeta;P.ordinalMeta=null,P=H({},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(oe(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&&oe(V.otherDims,I)})}});function g(C,D,M){SC.get(D)!=null?C.otherDims[D]=M:(C.coordDim=D,C.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(C){C.name==null&&(C.name=C.coordDim)}if(s)L(i,function(C){b(C)}),i.sort(function(C,D){return C.storeDimIndex-D.storeDimIndex});else for(var S=0;S<o;S++){var w=d(S),A=w.coordDim;A==null&&(w.coordDim=GO(_,n,x),w.coordDimIndex=0,(!m||y<=0)&&(w.isExtraCoord=!0),y--),b(w),w.type==null&&(AC(r,S)===Mt.Must||w.isExtraCoord&&(w.otherDims.itemName!=null||w.otherDims.seriesName!=null))&&(w.type="ordinal")}return VO(i),new PA({source:r,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function VO(r){for(var e=ae(),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 FO(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 GO(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 HO=(function(){function r(e){this.coordSysDims=[],this.axisMap=ae(),this.categoryAxisMap=ae(),this.coordSysName=e}return r})();function jO(r){var e=r.get("coordinateSystem"),t=new HO(e),a=WO[e];if(a)return a(r,t,t.axisMap,t.categoryAxisMap),t}var WO={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),Xi(n)&&(a.set("x",n),e.firstCategoryDimIndex=0),Xi(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),Xi(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),Xi(i)&&(a.set("radius",i),e.firstCategoryDimIndex=0),Xi(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),Xi(u)&&(a.set(c,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function Xi(r){return r.get("type")==="category"}function $O(r,e,t){t=t||{};var a=t.byIndex,n=t.stackedCoordDimension,i,o,s;UO(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){J(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 UO(r){return!kA(r.schema)}function gn(r,e){return!!e&&e===r.getCalculationInfo("stackedDimension")}function OA(r,e){return gn(r,e)?r.getCalculationInfo("stackResultDimension"):e}function YO(r,e){var t=r.get("coordinateSystem"),a=Bl.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=Zc(l)}return o})),n||(n=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]),n}function XO(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 Oa(r,e,t){t=t||{};var a=e.getSourceManager(),n,i=!1;r?(i=!0,n=wm(r)):(n=a.getSource(),i=n.sourceFormat===Dr);var o=jO(e),s=YO(e,o),l=t.useEncodeDefaulter,u=ie(l)?l:l?de(CC,s,e):null,c={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},f=Vl(n,c),h=XO(f.dimensions,t.createInvertedIndices,o),v=i?null:a.getSharedDataStore(f),d=$O(e,{schema:f,store:v}),p=new jt(f,e);p.setCalculationInfo(d);var g=h!=null&&ZO(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 ZO(r){if(r.sourceFormat===Dr){var e=qO(r.data||[]);return!$(Oo(e))}}function qO(r){for(var e=0;e<r.length&&r[e]==null;)e++;return r[e]}var va=(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})();Pf(va);var KO=0,Gp=(function(){function r(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++KO}return r.createByAxisModel=function(e){var t=e.option,a=t.data,n=a&&U(a,JO);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(!J(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=ae(this.categories))},r})();function JO(r){return se(r)&&r.value!=null?r.value:r+""}function Hp(r){return r.type==="interval"||r.type==="log"}function QO(r,e,t,a){var n={},i=r[1]-r[0],o=n.interval=cT(i/e);t!=null&&o<t&&(o=n.interval=t),a!=null&&o>a&&(o=n.interval=a);var s=n.intervalPrecision=BA(o),l=n.niceTickExtent=[tt(Math.ceil(r[0]/o)*o,s),tt(Math.floor(r[1]/o)*o,s)];return eB(l,r),n}function Sv(r){var e=Math.pow(10,qg(r)),t=r/e;return t?t===2?t=3:t===3?t=5:t*=2:t=1,tt(t*e)}function BA(r){return ea(r)+2}function zx(r,e,t){r[e]=Math.max(Math.min(r[e],t[1]),t[0])}function eB(r,e){!isFinite(r[0])&&(r[0]=e[0]),!isFinite(r[1])&&(r[1]=e[1]),zx(r,0,e),zx(r,1,e),r[0]>r[1]&&(r[0]=r[1])}function Jf(r,e){return r>=e[0]&&r<=e[1]}function Qf(r,e){return e[1]===e[0]?.5:(r-e[0])/(e[1]-e[0])}function eh(r,e){return r*(e[1]-e[0])+e[0]}var th=(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 Gp({})),$(n)&&(n=new Gp({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:J(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),Jf(t,this._extent)&&this._ordinalMeta.categories[t]!=null},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),Qf(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(eh(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})(va);va.registerClass(th);var Fn=tt,Pa=(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 Jf(t,this._extent)},e.prototype.normalize=function(t){return Qf(t,this._extent)},e.prototype.scale=function(t){return eh(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=BA(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:Fn(i[0]-a,o)}):s.push({value:n[0]}));for(var u=i[0];u<=i[1]&&(s.push({value:u}),u=Fn(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:Fn(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=Fn(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=ea(t.value)||0:n==="auto"&&(n=this._intervalPrecision);var i=Fn(t.value,n,!0);return gC(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=QO(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]=Fn(Math.floor(a[0]/o)*o)),t.fixMax||(a[1]=Fn(Math.ceil(a[1]/o)*o))},e.prototype.setNiceExtent=function(t,a){this._niceExtent=[t,a]},e.type="interval",e})(va);va.registerClass(Pa);var zA=typeof Float32Array<"u",tB=zA?Float32Array:Array;function ra(r){return $(r)?zA?new Float32Array(r):r:new tB(r)}var jp="__ec_stack_";function VA(r){return r.get("stack")||jp+r.seriesIndex}function Em(r){return r.dim+r.index}function rB(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(oe({bandWidth:n,axisKey:a,stackId:jp+i},r));for(var o=HA(e),s=[],i=0;i<r.count;i++){var l=o[a][jp+i];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function FA(r,e){var t=[];return e.eachSeriesByType(r,function(a){$A(a)&&t.push(a)}),t}function aB(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 GA(r){var e=aB(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=Z(a.get("barWidth"),s),p=Z(a.get("barMaxWidth"),s),g=Z(a.get("barMinWidth")||(UA(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:Em(i),stackId:VA(a)})}),HA(t)}function HA(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=Z(s,o),c=Z(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 nB(r,e,t){if(r&&e){var a=r[Em(e)];return a}}function jA(r,e){var t=FA(r,e),a=GA(t);L(t,function(n){var i=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=VA(n),u=a[Em(s)][l],c=u.offset,f=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function WA(r){return{seriesType:r,plan:Wo(),reset:function(e){if($A(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=gn(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),h=i.isHorizontal(),v=iB(n,i),d=UA(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&&ra(b*3),w=d&&l&&ra(b*3),A=d&&ra(b),C=a.master.getRect(),D=h?C.width:C.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,G=void 0;if(h){var Y=a.dataToPoint([k,R]);if(f){var X=a.dataToPoint([B,R]);E=X[0]}O=E,V=Y[1]+y,F=Y[0]-E,G=m,Math.abs(F)<p&&(F=(F<0?-1:1)*p)}else{var Y=a.dataToPoint([R,k]);if(f){var X=a.dataToPoint([R,B]);E=X[1]}O=Y[0]+y,V=E,F=m,G=Y[1]-E,Math.abs(G)<p&&(G=(G<=0?-1:1)*p)}d?(S[P]=O,S[P+1]=V,S[P+2]=h?F:G,w&&(w[P]=h?C.x:O,w[P+1]=h?V:C.y,w[P+2]=D),A[M]=M):_.setItemLayout(M,{x:O,y:V,width:F,height:G}),P+=3}d&&_.setLayout({largePoints:S,largeDataIndices:A,largeBackgroundPoints:w,valueAxisHorizontal:h})}}}}}}function $A(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function UA(r){return r.pipelineContext&&r.pipelineContext.large}function iB(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 oB=function(r,e,t,a){for(;t<a;){var n=t+a>>>1;r[n][1]<e?t=n+1:a=n}return t},Nm=(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 Hf(t.value,D1[FN(xo(this._minLevelUnit))]||D1.second,a,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,a,n){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return GN(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=vB(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=Tu.length,l=Math.min(oB(Tu,this._approxInterval,0,s),s-1);this._interval=Tu[l][1],this._minLevelUnit=Tu[Math.max(l-1,0)][0]},e.prototype.parse=function(t){return ke(t)?t:+ua(t)},e.prototype.contain=function(t){return Jf(this.parse(t),this._extent)},e.prototype.normalize=function(t){return Qf(this.parse(t),this._extent)},e.prototype.scale=function(t){return eh(t,this._extent)},e.type="time",e})(Pa),Tu=[["second",dm],["minute",pm],["hour",Us],["quarter-day",Us*6],["half-day",Us*12],["day",Sr*1.2],["half-week",Sr*3.5],["week",Sr*7],["month",Sr*31],["quarter",Sr*95],["half-year",A1/2],["year",A1]];function sB(r,e,t,a){var n=ua(e),i=ua(t),o=function(d){return M1(n,d,a)===M1(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 lB(r,e){return r/=Sr,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function uB(r){var e=30*Sr;return r/=e,r>6?6:r>3?3:r>2?2:1}function cB(r){return r/=Us,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function Vx(r,e){return r/=e?pm:dm,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function fB(r){return cT(r)}function hB(r,e,t){var a=new Date(r);switch(xo(e)){case"year":case"month":a[cC(t)](0);case"day":a[fC(t)](1);case"hour":a[hC(t)](0);case"minute":a[vC(t)](0);case"second":a[dC(t)](0),a[pC(t)](0)}return a.getTime()}function vB(r,e,t,a){var n=1e4,i=lC,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(!sB(xo(D),a[0],a[1],t)){k&&(M=[{value:hB(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,G=!1;switch(D){case"year":O=Math.max(1,Math.round(e/Sr/365)),V=gm(t),F=HN(t);break;case"half-year":case"quarter":case"month":O=uB(e),V=_o(t),F=cC(t);break;case"week":case"half-week":case"day":O=lB(e),V=jf(t),F=fC(t),G=!0;break;case"half-day":case"quarter-day":case"hour":O=cB(e),V=ul(t),F=hC(t);break;case"minute":O=Vx(e,!0),V=Wf(t),F=vC(t);break;case"second":O=Vx(e,!1),V=$f(t),F=dC(t);break;case"millisecond":O=fB(e),V=Uf(t),F=pC(t);break}s(O,E,B,V,F,G,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=xo(i[v]);if(VN(i[v])){l(i[v],u[u.length-1]||[],c);var p=i[v+1]?xo(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],A=0;A<w.length;++A)b.push({value:w[A].value,level:S-v});b.sort(function(D,M){return D.value-M.value});for(var C=[],v=0;v<b.length;++v)(v===0||b[v].value!==b[v-1].value)&&C.push(b[v]);return C}va.registerClass(Nm);var Fx=va.prototype,qs=Pa.prototype,dB=tt,pB=Math.floor,gB=Math.ceil,Cu=Math.pow,Pr=Math.log,Om=(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 Pa,t._interval=0,t}return e.prototype.getTicks=function(t){var a=this._originalScale,n=this._extent,i=a.getExtent(),o=qs.getTicks.call(this,t);return U(o,function(s){var l=s.value,u=tt(Cu(this.base,l));return u=l===n[0]&&this._fixMin?Au(u,i[0]):u,u=l===n[1]&&this._fixMax?Au(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,qs.setExtent.call(this,t,a)},e.prototype.getExtent=function(){var t=this.base,a=Fx.getExtent.call(this);a[0]=Cu(t,a[0]),a[1]=Cu(t,a[1]);var n=this._originalScale,i=n.getExtent();return this._fixMin&&(a[0]=Au(a[0],i[0])),this._fixMax&&(a[1]=Au(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),Fx.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=xR(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(gB(a[0]/i)*i),tt(pB(a[1]/i)*i)];this._interval=i,this._niceExtent=s}},e.prototype.calcNiceExtent=function(t){qs.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),Jf(t,this._extent)},e.prototype.normalize=function(t){return t=Pr(t)/Pr(this.base),Qf(t,this._extent)},e.prototype.scale=function(t){return t=eh(t,this._extent),Cu(this.base,t)},e.type="log",e})(va),YA=Om.prototype;YA.getMinorTicks=qs.getMinorTicks;YA.getLabel=qs.getLabel;function Au(r,e){return dB(r,ea(e))}va.registerClass(Om);var mB=(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;ie(o)?this._modelMinNum=Du(e,o({min:a[0],max:a[1]})):o!=="dataMin"&&(this._modelMinNum=Du(e,o));var s=this._modelMaxRaw=t.get("max",!0);if(ie(s)?this._modelMaxNum=Du(e,s({min:a[0],max:a[1]})):s!=="dataMax"&&(this._modelMaxNum=Du(e,s)),n)this._axisDataLen=t.getCategories().length;else{var l=t.get("boundaryGap"),u=$(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=Qs(s)||Qs(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[xB[e]]=t},r.prototype.setDeterminedMinMax=function(e,t){var a=yB[e];this[a]=t},r.prototype.freeze=function(){this.frozen=!0},r})(),yB={min:"_determinedMin",max:"_determinedMax"},xB={min:"_dataMin",max:"_dataMax"};function XA(r,e,t){var a=r.rawExtentInfo;return a||(a=new mB(r,e,t),r.rawExtentInfo=a,a)}function Du(r,e){return e==null?null:Qs(e)?NaN:r.parse(e)}function ZA(r,e){var t=r.type,a=XA(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=FA("bar",o),l=!1;if(L(s,function(f){l=l||f.getBaseAxis()===e.axis}),l){var u=GA(s),c=_B(n,i,e,u);n=c.min,i=c.max}}return{extent:[n,i],fixMin:a.minFixed,fixMax:a.maxFixed}}function _B(r,e,t,a){var n=t.axis.getExtent(),i=Math.abs(n[1]-n[0]),o=nB(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 Do(r,e){var t=e,a=ZA(r,t),n=a.extent,i=t.get("splitNumber");r instanceof Om&&(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 rh(r,e){if(e=e||r.get("type"),e)switch(e){case"category":return new th({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new Nm({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(va.getClass(e)||Pa)}}function bB(r){var e=r.scale.getExtent(),t=e[0],a=e[1];return!(t>0&&a>0||t<0&&a<0)}function Yo(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):J(e)?(function(a){return function(n){var i=r.scale.getLabel(n),o=a.replace("{value}",i??"");return o}})(e):ie(e)?(function(a){return function(n,i){return t!=null&&(i=n.value-t),a(Bm(r,n),i,n.level!=null?{level:n.level}:null)}})(e):function(a){return r.scale.getLabel(a)}}function Bm(r,e){return r.type==="category"?r.scale.getLabel(e):e.value}function SB(r){var e=r.model,t=r.scale;if(!(!e.get(["axisLabel","show"])||t.isBlank())){var a,n,i=t.getExtent();t instanceof th?n=t.count():(a=t.getTicks(),n=a.length);var o=r.getLabelModel(),s=Yo(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=wB(v,o.get("rotate")||0);l?l.union(d):l=d}return l}}function wB(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 xe(r.x,r.y,i,o);return s}function zm(r){var e=r.get("interval");return e??"auto"}function qA(r){return r.type==="category"&&zm(r.getLabelModel())===0}function qc(r,e){var t={};return L(r.mapDimensionsAll(e),function(a){t[OA(r,a)]=!0}),Me(t)}function TB(r,e,t){e&&L(qc(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 Fl=(function(){function r(){}return r.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},r.prototype.getCoordSysModel=function(){},r})(),CB=1e-8;function Gx(r,e){return Math.abs(r-e)<CB}function Kn(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+=ya(n[0],n[1],o[0],o[1],e,t),n=o}var s=r[0];return(!Gx(n[0],s[0])||!Gx(n[1],s[1]))&&(a+=ya(n[0],n[1],s[0],s[1],e,t)),a!==0}var AB=[];function wv(r,e){for(var t=0;t<r.length;t++)Lt(r[t],r[t],e)}function Hx(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])&&(Ka(e,e,i),Ja(t,t,i))}}function DB(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 KA=(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})(),jx=(function(){function r(e,t){this.type="polygon",this.exterior=e,this.interiors=t}return r})(),Wx=(function(){function r(e){this.type="linestring",this.points=e}return r})(),JA=(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 DB(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"?Hx(s.exterior,n,i,t):L(s.points,function(l){Hx(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 xe(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(Kn(l,t[0],t[1])){for(var c=0;c<(u?u.length:0);c++)if(Kn(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 xe(t,a,n,i),u=o.calculateTransform(l),c=this.geometries,f=0;f<c.length;f++){var h=c[f];h.type==="polygon"?(wv(h.exterior,u),L(h.interiors,function(v){wv(v,u)})):L(h.points,function(v){wv(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})(KA),MB=(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=Df(AB),o=t;o&&!o.isGeoSVGGraphicRoot;)Sa(i,o.getLocalTransform(),i),o=o.parent;return No(i,i),Lt(n,n,i),n},e})(KA);function LB(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=QA(s,o,t);break;case"Polygon":Tv(s,o,t);break;case"MultiLineString":Tv(s,o,t);break;case"MultiPolygon":L(s,function(l,u){return Tv(l,o[u],t)})}}),e.UTF8Encoding=!1,e}function Tv(r,e,t){for(var a=0;a<r.length;a++)r[a]=QA(r[a],e[a],t)}function QA(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 IB(r,e){return r=LB(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 jx(o[0],o.slice(1)));break;case"MultiPolygon":L(n.coordinates,function(l){l[0]&&i.push(new jx(l[0],l.slice(1)))});break;case"LineString":i.push(new Wx([n.coordinates]));break;case"MultiLineString":i.push(new Wx(n.coordinates))}var s=new JA(a[e||"name"],i,a.cp);return s.properties=a,s})}var pl=Ie();function eD(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=Yo(r),a=r.scale.getExtent(),n=eD(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"?RB(r):NB(r)}function kB(r,e){var t=r.getTickModel().get("customValues");if(t){var a=r.scale.getExtent(),n=eD(r,t);return{ticks:ze(n,function(i){return i>=a[0]&&i<=a[1]})}}return r.type==="category"?EB(r,e):{ticks:U(r.scale.getTicks(),function(i){return i.value})}}function RB(r){var e=r.getLabelModel(),t=tD(r,e);return!e.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:t.labelCategoryInterval}:t}function tD(r,e){var t=rD(r,"labels"),a=zm(e),n=aD(t,a);if(n)return n;var i,o;return ie(a)?i=oD(r,a):(o=a==="auto"?OB(r):a,i=iD(r,o)),nD(t,a,{labels:i,labelCategoryInterval:o})}function EB(r,e){var t=rD(r,"ticks"),a=zm(e),n=aD(t,a);if(n)return n;var i,o;if((!e.get("show")||r.scale.isBlank())&&(i=[]),ie(a))i=oD(r,a,!0);else if(a==="auto"){var s=tD(r,r.getLabelModel());o=s.labelCategoryInterval,i=U(s.labels,function(l){return l.tickValue})}else o=a,i=iD(r,o,!0);return nD(t,a,{ticks:i,tickCategoryInterval:o})}function NB(r){var e=r.scale.getTicks(),t=Yo(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 rD(r,e){return pl(r)[e]||(pl(r)[e]=[])}function aD(r,e){for(var t=0;t<r.length;t++)if(r[t].key===e)return r[t].value}function nD(r,e,t){return r.push({key:e,value:t}),t}function OB(r){var e=pl(r).autoInterval;return e??(pl(r).autoInterval=r.calculateCategoryInterval())}function BB(r){var e=zB(r),t=Yo(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=Ll(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))),_=pl(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 zB(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 iD(r,e,t){var a=Yo(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=qA(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 oD(r,e,t){var a=r.scale,n=Yo(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 $x=[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 lT(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(),Ux(a,n.count())),Fe(e,$x,a,t)},r.prototype.coordToData=function(e,t){var a=this._extent,n=this.scale;this.onBand&&n.type==="ordinal"&&(a=a.slice(),Ux(a,n.count()));var i=Fe(e,a,$x,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=kB(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 VB(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 Ux(r,e){var t=r[1]-r[0],a=e,n=t/a/2;r[0]+=n,r[1]-=n}function VB(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 ds=Math.PI*2,Gn=ca.CMD,FB=["top","right","bottom","left"];function GB(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 HB(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)%ds<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+=ds);var v=Math.atan2(s,o);if(v<0&&(v+=ds),v>=a&&v<=n||v+ds>=a&&v+ds<=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 Kc(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 sD(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 jB(r,e,t){var a=sD(e.x,e.y,e.width,e.height,r.x,r.y,Nr);return t.set(Nr[0],Nr[1]),a}function WB(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 Gn.M:i=c[v++],o=c[v++],a=i,n=o;break;case Gn.L:p=Kc(a,n,c[v],c[v+1],f,h,Nr,!0),a=c[v++],n=c[v++];break;case Gn.C:p=W2(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 Gn.Q:p=U2(a,n,c[v++],c[v++],c[v],c[v+1],f,h,Nr),a=c[v++],n=c[v++];break;case Gn.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=HB(g,m,x,_,_+b,S,w,h,Nr),a=Math.cos(_+b)*y+g,n=Math.sin(_+b)*x+m;break;case Gn.R:i=a=c[v++],o=n=c[v++];var A=c[v++],C=c[v++];p=sD(i,o,A,C,f,h,Nr);break;case Gn.Z:p=Kc(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 me,Ue=new me,rt=new me,aa=new me,Qr=new me;function Yx(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||FB,s=a.getBoundingRect().clone();s.applyTransform(a.getComputedTransform());var l=1/0,u=n.anchor,c=r.getComputedTransform(),f=c&&No([],c),h=e.get("length2")||0;u&&rt.copy(u);for(var v=0;v<o.length;v++){var d=o[v];GB(d,0,s,Br,aa),me.scaleAndAdd(Ue,Br,aa,h),Ue.transform(f);var p=r.getBoundingRect(),g=u?u.distance(Ue):r instanceof Ce?WB(Ue,r.path,rt):jB(Ue,p,rt);g<l&&(l=g,Ue.transform(c),rt.transform(c),rt.toArray(i[0]),Ue.toArray(i[1]),Br.toArray(i[2]))}lD(i,e.get("minTurnAngle")),t.setShape({points:i})}}}var Jc=[],Gt=new me;function lD(r,e){if(e<=180&&e>0){e=e/180*Math.PI,Br.fromArray(r[0]),Ue.fromArray(r[1]),rt.fromArray(r[2]),me.sub(aa,Br,Ue),me.sub(Qr,rt,Ue);var t=aa.len(),a=Qr.len();if(!(t<.001||a<.001)){aa.scale(1/t),Qr.scale(1/a);var n=aa.dot(Qr),i=Math.cos(e);if(i<n){var o=Kc(Ue.x,Ue.y,rt.x,rt.y,Br.x,Br.y,Jc,!1);Gt.fromArray(Jc),Gt.scaleAndAdd(Qr,o/Math.tan(Math.PI-e));var s=rt.x!==Ue.x?(Gt.x-Ue.x)/(rt.x-Ue.x):(Gt.y-Ue.y)/(rt.y-Ue.y);if(isNaN(s))return;s<0?me.copy(Gt,Ue):s>1&&me.copy(Gt,rt),Gt.toArray(r[1])}}}}function $B(r,e,t){if(t<=180&&t>0){t=t/180*Math.PI,Br.fromArray(r[0]),Ue.fromArray(r[1]),rt.fromArray(r[2]),me.sub(aa,Ue,Br),me.sub(Qr,rt,Ue);var a=aa.len(),n=Qr.len();if(!(a<.001||n<.001)){aa.scale(1/a),Qr.scale(1/n);var i=aa.dot(e),o=Math.cos(t);if(i<o){var s=Kc(Ue.x,Ue.y,rt.x,rt.y,Br.x,Br.y,Jc,!1);Gt.fromArray(Jc);var l=Math.PI/2,u=Math.acos(Qr.dot(e)),c=l+u-t;if(c>=l)me.copy(Gt,rt);else{Gt.scaleAndAdd(Qr,s/Math.tan(Math.PI/2-c));var f=rt.x!==Ue.x?(Gt.x-Ue.x)/(rt.x-Ue.x):(Gt.y-Ue.y)/(rt.y-Ue.y);if(isNaN(f))return;f<0?me.copy(Gt,Ue):f>1&&me.copy(Gt,rt)}Gt.toArray(r[1])}}}}function Cv(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 UB(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=qa(a[0],a[1]),i=qa(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=ac([],a[1],a[0],o/n),l=ac([],a[1],a[2],o/i),u=ac([],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 Vm(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<ol.length;l++){var u=ol[l],c=e[u],f=u==="normal";if(c){var h=c.get("show"),v=f?s:he(n.states[u]&&n.states[u].ignore,s);if(v||!he(h,o)){var d=f?a:a&&a.states[u];d&&(d.ignore=!0),a&&Cv(a,!0,u,c);continue}a||(a=new Zt,r.setTextGuideLine(a),!f&&(s||!o)&&Cv(a,!0,"normal",e.normal),r.stateProxy&&(a.stateProxy=r.stateProxy)),Cv(a,!1,u,c)}}if(a){oe(a.style,t),a.style.fill=null;var p=i.get("showAbove"),g=r.textGuideLineConfig=r.textGuideLineConfig||{};g.showAbove=p||!1,a.buildPath=UB}}function Fm(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 uD(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 Oc(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 cD(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,A){if(S<0){var C=Math.min(w,-S);if(C>0){x(C*A,0,o);var D=C+S;D<0&&_(-D*A,1)}else _(-S*A,1)}}function x(S,w,A){S!==0&&(u=!0);for(var C=w;C<A;C++){var D=r[C],M=D.rect;M[e]+=S,D.label[e]+=S}}function _(S,w){for(var A=[],C=0,D=1;D<o;D++){var M=r[D-1].rect,I=Math.max(r[D].rect[e]-M[e]-M[t],0);A.push(I),C+=I}if(C){var P=Math.min(Math.abs(S)/C,w);if(S>0)for(var D=0;D<o-1;D++){var k=A[D]*P;x(k,0,D+1)}else for(var D=o-1;D>0;D--){var k=A[D-1]*P;x(-k,D,o)}}}function b(S){var w=S<0?-1:1;S=Math.abs(S);for(var A=Math.ceil(S/(o-1)),C=0;C<o-1;C++)if(w>0?x(A,0,C+1):x(-A,o-C-1,o),S-=A,S<=0)return}return u}function YB(r,e,t,a){return cD(r,"x","width",e,t)}function fD(r,e,t,a){return cD(r,"y","height",e,t)}function hD(r){var e=[];r.sort(function(p,g){return g.priority-p.priority});var t=new xe(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 Oc(d.localRect,d.transform)),f||(f=new Oc(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 XB(r){if(r){for(var e=[],t=0;t<r.length;t++)e.push(r[t].slice());return e}}function ZB(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:XB(a&&a.shape.points)}}var Xx=["align","verticalAlign","width","height","fontSize"],zt=new xa,Av=Ie(),qB=Ie();function Mu(r,e,t){for(var a=0;a<t.length;a++){var n=t[a];e[n]!=null&&(r[n]=e[n])}}var Lu=["x","y","rotation"],KB=(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();xe.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();xe.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");(ie(n)||Me(n).length)&&e.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=fe(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(){Yx(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;ie(o.layoutOption)?c=o.layoutOption(ZB(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=Z(c.x,t),s.setStyle("x",0),h=!0):(s.x=u.x,s.setStyle("x",u.style.x)),c.y!=null?(s.y=Z(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=Av(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<Xx.length;p++){var g=Xx[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=uD(this._labelList),i=ze(n,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=ze(n,function(l){return l.layoutOption.moveOverlap==="shiftY"});YB(i,0,t),fD(o,0,a);var s=ze(n,function(l){return l.layoutOption.hideOverlap});hD(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=Av(l).needsUpdateLabelLine),s&&e._updateLabelLine(o,a),i&&e._animateLabels(o,a)})})},r.prototype._updateLabelLine=function(e,t){var a=e.getTextContent(),n=fe(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");Vm(e,Fm(s),l),Yx(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&&!mo(e))){var i=Av(a),o=i.oldLayout,s=fe(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&&(be(h,"select")>=0&&a.attr(i.oldLayoutSelect),be(h,"emphasis")>=0&&a.attr(i.oldLayoutEmphasis)),Re(a,u,t,l)}else if(a.attr(u),!Vo(a).valueAnimation){var f=he(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={};Mu(v,u,Lu),Mu(v,a.states.select,Lu)}if(a.states.emphasis){var d=i.oldLayoutEmphasis={};Mu(d,u,Lu),Mu(d,a.states.emphasis,Lu)}aC(a,l,c,t,t)}if(n&&!n.ignore&&!n.invisible){var i=qB(n),o=i.oldLayout,p={points:n.shape.points};o?(n.attr({shape:o}),Re(n,{shape:p},t)):(n.setShape(p),n.style.strokePercent=0,Je(n,{style:{strokePercent:1}},t)),i.oldLayout=p}},r})(),Dv=Ie();function JB(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,a){var n=Dv(t).labelManager;n||(n=Dv(t).labelManager=new KB),n.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(e,t,a){var n=Dv(t).labelManager;a.updatedSeries.forEach(function(i){n.addLabelsOfSeries(t.getViewOfSeriesModel(i))}),n.updateLayoutConfig(t),n.layout(t),n.processLabelsOverall()})}var Mv=Math.sin,Lv=Math.cos,vD=Math.PI,Hn=Math.PI*2,QB=180/vD,dD=(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=tn(f-Hn)||(c?u>=Hn:-u>=Hn),v=u>0?u%Hn:u%Hn+Hn,d=!1;h?d=!0:tn(f)?d=!1:d=v>=vD==!!c;var p=e+a*Lv(o),g=t+n*Mv(o);this._start&&this._add("M",p,g);var m=Math.round(i*QB);if(h){var y=1/this._p,x=(c?1:-1)*(Hn-y);this._add("A",a,n,m,1,+c,e+a*Lv(o+x),t+n*Mv(o+x)),y>.01&&this._add("A",a,n,m,0,+c,p,g)}else{var _=e+a*Lv(s),b=t+n*Mv(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})(),Gm="none",ez=Math.round;function tz(r){var e=r.fill;return e!=null&&e!==Gm}function rz(r){var e=r.stroke;return e!=null&&e!==Gm}var Wp=["lineCap","miterLimit","lineJoin"],az=U(Wp,function(r){return"stroke-"+r.toLowerCase()});function nz(r,e,t,a){var n=e.opacity==null?1:e.opacity;if(t instanceof At){r("opacity",n);return}if(tz(e)){var i=al(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",Gm);if(rz(e)){var s=al(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=Mm(t),v=h[0],d=h[1];v&&(d=ez(d||0),r("stroke-dasharray",v.join(",")),(d||a)&&r("stroke-dashoffset",d))}for(var p=0;p<Wp.length;p++){var g=Wp[p];if(e[g]!==Ec[g]){var m=e[g]||Ec[g];m&&r(az[p],m)}}}}var pD="http://www.w3.org/2000/svg",gD="http://www.w3.org/1999/xlink",iz="http://www.w3.org/2000/xmlns/",oz="http://www.w3.org/XML/1998/namespace",Zx="ecmeta_";function mD(r){return document.createElementNS(pD,r)}function xt(r,e,t,a,n){return{tag:r,attrs:t||{},children:a,text:n,key:e}}function sz(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 lz(r){return"</"+r+">"}function Hm(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 sz(o,s)+(o!=="style"?Ht(l):l||"")+(i?""+t+U(i,function(u){return a(u)}).join(t)+t:"")+lz(o)}return a(r)}function uz(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 $p(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function qx(r,e,t,a){return xt("svg","root",{width:r,height:e,xmlns:pD,"xmlns:xlink":gD,version:"1.1",baseProfile:"full",viewBox:a?"0 0 "+r+" "+e:!1},t)}var cz=0;function yD(){return cz++}var Kx={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"},$n="transform-origin";function fz(r,e,t){var a=H({},r.shape);H(a,e),r.buildPath(t,a);var n=new dD;return n.reset(Q2(r)),t.rebuildPath(n,1),n.generateStr(),n.getStr()}function hz(r,e){var t=e.originX,a=e.originY;(t||a)&&(r[$n]=t+"px "+a+"px")}var vz={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function xD(r,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=r,t}function dz(r,e,t){var a=r.shape.paths,n={},i,o;if(L(a,function(l){var u=$p(t.zrId);u.animation=!0,ah(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=xD(n,t);return i.replace(o,s)}}function Jx(r){return J(r)?Kx[r]?"cubic-bezier("+Kx[r]+")":Yg(r)?r:"":""}function ah(r,e,t,a){var n=r.animators,i=n.length,o=[];if(r instanceof lm){var s=dz(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=Jx(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={},A="animation-timing-function";function C(ne,te,W){for(var j=ne.getTracks(),K=ne.getMaxTime(),Se=0;Se<j.length;Se++){var ye=j[Se];if(ye.needsAnimate()){var we=ye.keyframes,ve=ye.propName;if(W&&(ve=W(ve)),ve)for(var Ve=0;Ve<we.length;Ve++){var ct=we[Ve],it=Math.round(ct.time/K*100)+"%",wt=Jx(ct.easing),Dt=ct.rawValue;(J(Dt)||ke(Dt))&&(te[it]=te[it]||{},te[it][ve]=ct.rawValue,wt&&(te[it][A]=wt))}}}}for(var D=0;D<_;D++){var M=x[D],I=M.targetName;I?I==="shape"&&C(M,S):!a&&C(M,b)}for(var P in b){var k={};nT(k,r),H(k,b[P]);var R=eT(k),E=b[P][A];w[P]=R?{transform:R}:{},hz(w[P],k),E&&(w[P][A]=E)}var B,O=!0;for(var P in S){w[P]=w[P]||{};var V=!B,E=S[P][A];V&&(B=new ca);var F=B.len();B.reset(),w[P].d=fz(r,S[P],B);var G=B.len();if(!V&&F!==G){O=!1;break}E&&(w[P][A]=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"&&C(M,w,function(j){return vz[j]})}for(var Y=Me(w),X=!0,q,D=1;D<Y.length;D++){var Q=Y[D-1],pe=Y[D];if(w[Q][$n]!==w[pe][$n]){X=!1;break}q=w[Q][$n]}if(X&&q){for(var P in w)w[P][$n]&&delete w[P][$n];e[$n]=q}if(ze(Y,function(ne){return Me(w[ne]).length>0}).length){var ce=xD(w,t);return ce+" "+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-"+yD();t.cssNodes["."+m]={animation:o.join(",")},e.class=m}}function pz(r,e,t){if(!r.ignore)if(r.isSilent()){var a={"pointer-events":"none"};Qx(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=ap(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),Qx(a,e,t)}}function Qx(r,e,t,a){var n=JSON.stringify(r),i=t.cssStyleCache[n];i||(i=t.zrId+"-cls-"+yD(),t.cssStyleCache[n]=i,t.cssNodes["."+i+":hover"]=r),e.class=e.class?e.class+" "+i:i}var gl=Math.round;function _D(r){return r&&J(r.src)}function bD(r){return r&&ie(r.toDataURL)}function jm(r,e,t,a){nz(function(n,i){var o=n==="fill"||n==="stroke";o&&J2(i)?wD(e,r,n,a):o&&Xg(i)?TD(t,r,n,a):r[n]=i,o&&a.ssr&&i==="none"&&(r["pointer-events"]="visible")},e,t,!1),Sz(t,r,a)}function Wm(r,e){var t=hR(e);t&&(t.each(function(a,n){a!=null&&(r[(Zx+n).toLowerCase()]=a+"")}),e.isSilent()&&(r[Zx+"silent"]="true"))}function e_(r){return tn(r[0]-1)&&tn(r[1])&&tn(r[2])&&tn(r[3]-1)}function gz(r){return tn(r[4])&&tn(r[5])}function $m(r,e,t){if(e&&!(gz(e)&&e_(e))){var a=1e4;r.transform=e_(e)?"translate("+gl(e[4]*a)/a+" "+gl(e[5]*a)/a+")":N5(e)}}function t_(r,e,t){for(var a=r.points,n=[],i=0;i<a.length;i++)n.push(gl(a[i][0]*t)/t),n.push(gl(a[i][1]*t)/t);e.points=n.join(" ")}function r_(r){return!r.smooth}function mz(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]]=gl(s*n)/n)}}}var yz={circle:[mz(["cx","cy","r"])],polyline:[t_,r_],polygon:[t_,r_]};function xz(r){for(var e=r.animators,t=0;t<e.length;t++)if(e[t].targetName==="shape")return!0;return!1}function SD(r,e){var t=r.style,a=r.shape,n=yz[r.type],i={},o=e.animation,s="path",l=r.style.strokePercent,u=e.compress&&Q2(r)||4;if(n&&!e.willUpdate&&!(n[1]&&!n[1](a))&&!(o&&xz(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 dD),p.reset(u),h.rebuildPath(p,l),p.generateStr(),d.__svgPathVersion=v,d.__svgPathStrokePercent=l),i.d=p.getStr()}return $m(i,r.transform),jm(i,t,r,e),Wm(i,r),e.animation&&ah(r,i,e),e.emphasis&&pz(r,i,e),xt(s,r.id+"",i)}function _z(r,e){var t=r.style,a=t.image;if(a&&!J(a)&&(_D(a)?a=a.src:bD(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),$m(l,r.transform),jm(l,t,r,e),Wm(l,r),e.animation&&ah(r,l,e),xt("image",r.id+"",l)}}function bz(r,e){var t=r.style,a=t.text;if(a!=null&&(a+=""),!(!a||isNaN(t.x)||isNaN(t.y))){var n=t.font||fn,i=t.x||0,o=B5(t.y||0,Lf(n),t.textBaseline),s=O5[t.textAlign]||t.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(IT(t)){var u="",c=t.fontStyle,f=LT(t.fontSize);if(!parseFloat(f))return;var h=t.fontFamily||L2,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),$m(l,r.transform),jm(l,t,r,e),Wm(l,r),e.animation&&ah(r,l,e),xt("text",r.id+"",l,void 0,a)}}function a_(r,e){if(r instanceof Ce)return SD(r,e);if(r instanceof At)return _z(r,e);if(r instanceof wo)return bz(r,e)}function Sz(r,e,t){var a=r.style;if(z5(a)){var n=V5(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=al(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=Mf(o)}}function wD(r,e,t,a){var n=r[t],i,o={gradientUnits:n.global?"userSpaceOnUse":"objectBoundingBox"};if(q2(n))i="linearGradient",o.x1=n.x,o.y1=n.y,o.x2=n.x2,o.y2=n.y2;else if(K2(n))i="radialGradient",o.cx=he(n.x,.5),o.cy=he(n.y,.5),o.r=he(n.r,.5);else return;for(var s=n.colorStops,l=[],u=0,c=s.length;u<c;++u){var f=np(s[u].offset)*100+"%",h=s[u].color,v=al(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=Hm(m),x=a.gradientCache,_=x[y];_||(_=a.zrId+"-g"+a.gradientIdx++,x[y]=_,o.id=_,a.defs[_]=xt(i,_,o,l)),e[t]=Mf(_)}function TD(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(Z2(n)){var h=n.imageWidth,v=n.imageHeight,d=void 0,p=n.image;if(J(p)?d=p:_D(p)?d=p.src:bD(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=em(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=eT(n);b&&(o.patternTransform=b);var S=xt("pattern","",o,[f]),w=Hm(S),A=a.patternCache,C=A[w];C||(C=a.zrId+"-p"+a.patternIdx++,A[w]=C,o.id=C,S=a.defs[C]=xt("pattern",C,o,[f])),e[t]=Mf(C)}}function wz(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,[SD(r,t)])}e["clip-path"]=Mf(i)}function n_(r){return document.createTextNode(r)}function Jn(r,e,t){r.insertBefore(e,t)}function i_(r,e){r.removeChild(e)}function o_(r,e){r.appendChild(e)}function CD(r){return r.parentNode}function AD(r){return r.nextSibling}function Iv(r,e){r.textContent=e}var s_=58,Tz=120,Cz=xt("","");function Up(r){return r===void 0}function Kr(r){return r!==void 0}function Az(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 ks(r,e){var t=r.key===e.key,a=r.tag===e.tag;return a&&t}function ml(r){var e,t=r.children,a=r.tag;if(Kr(a)){var n=r.elm=mD(a);if(Um(Cz,r),$(t))for(e=0;e<t.length;++e){var i=t[e];i!=null&&o_(n,ml(i))}else Kr(r.text)&&!se(r.text)&&o_(n,n_(r.text))}else r.elm=n_(r.text);return r.elm}function DD(r,e,t,a,n){for(;a<=n;++a){var i=t[a];i!=null&&Jn(r,ml(i),e)}}function Qc(r,e,t,a){for(;t<=a;++t){var n=e[t];if(n!=null)if(Kr(n.tag)){var i=CD(n.elm);i_(i,n.elm)}else i_(r,n.elm)}}function Um(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)!==Tz?a.setAttribute(t,o):t==="xmlns:xlink"||t==="xmlns"?a.setAttributeNS(iz,t,o):t.charCodeAt(3)===s_?a.setAttributeNS(oz,t,o):t.charCodeAt(5)===s_?a.setAttributeNS(gD,t,o):a.setAttribute(t,o))}for(t in n)t in i||a.removeAttribute(t)}}function Dz(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]:ks(o,u)?(so(o,u),o=e[++a],u=t[++n]):ks(s,c)?(so(s,c),s=e[--i],c=t[--l]):ks(o,c)?(so(o,c),Jn(r,o.elm,AD(s.elm)),o=e[++a],c=t[--l]):ks(s,u)?(so(s,u),Jn(r,s.elm,o.elm),s=e[--i],u=t[++n]):(Up(f)&&(f=Az(e,a,i)),h=f[u.key],Up(h)?Jn(r,ml(u),o.elm):(v=e[h],v.tag!==u.tag?Jn(r,ml(u),o.elm):(so(v,u),e[h]=void 0,Jn(r,v.elm,o.elm))),u=t[++n]);(a<=i||n<=l)&&(a>i?(d=t[l+1]==null?null:t[l+1].elm,DD(r,d,t,n,l)):Qc(r,e,a,i))}function so(r,e){var t=e.elm=r.elm,a=r.children,n=e.children;r!==e&&(Um(r,e),Up(e.text)?Kr(a)&&Kr(n)?a!==n&&Dz(t,a,n):Kr(n)?(Kr(r.text)&&Iv(t,""),DD(t,null,n,0,n.length-1)):Kr(a)?Qc(t,a,0,a.length-1):Kr(r.text)&&Iv(t,""):r.text!==e.text&&(Kr(a)&&Qc(t,a,0,a.length-1),Iv(t,e.text)))}function Mz(r,e){if(ks(r,e))so(r,e);else{var t=r.elm,a=CD(t);ml(e),a!==null&&(Jn(a,e.elm,AD(t)),Qc(a,[r],0,0))}return e}var Lz=0,Iz=(function(){function r(e,t,a){if(this.type="svg",this.refreshHover=l_(),this.configLayer=l_(),this.storage=t,this._opts=a=H({},a),this.root=e,this._id="zr"+Lz++,this._oldVNode=qx(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=mD("svg");Um(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",Mz(this._oldVNode,e),this._oldVNode=e}},r.prototype.renderOneToVNode=function(e){return a_(e,$p(this._id))},r.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),a=this._width,n=this._height,i=$p(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=Pz(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=uz(i.cssNodes,i.cssAnims,{newline:!0});if(c){var f=xt("style","stl",{},[],c);o.push(f)}}return qx(a,n,o,e.useViewBox)},r.prototype.renderToString=function(e){return e=e||{},Hm(this.renderToVNode({animation:he(e.cssAnimation,!0),emphasis:he(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:he(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={};wz(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 _=a_(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=ho(n,0,a),t=ho(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(Xg(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=G5(t),t&&a+"base64,"+t):a+"charset=UTF-8,"+encodeURIComponent(t)},r})();function l_(r){return function(){}}function Pz(r,e,t,a){var n;if(t&&t!=="none")if(n=xt("rect","bg",{width:r,height:e,x:"0",y:"0"}),J2(t))wD({fill:t},n.attrs,"fill",a);else if(Xg(t))TD({style:{fill:t},dirty:nt,getBoundingRect:function(){return{width:r,height:e}}},n.attrs,"fill",a);else{var i=al(t),o=i.color,s=i.opacity;n.attrs.fill=o,s<1&&(n.attrs["fill-opacity"]=s)}return n}function kz(r){r.registerPainter("svg",Iz)}function u_(r,e,t){var a=hn.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 Pv=(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||kc,typeof t=="string"?o=u_(t,a,n):se(t)&&(o=t,t=o.id),i.id=t,i.dom=o;var s=o.style;return s&&(N2(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=u_("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 xe(0,0,0,0);function c(y){if(!(!y.isFinite()||y.isZero()))if(o.length===0){var x=new xe(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 A=o[w];if(A.intersect(y)){var C=new xe(0,0,0,0);C.copy(A),C.union(y),o[w]=C,_=!0;break}else if(l){u.copy(y),u.union(A);var D=y.width*y.height,M=A.width*A.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 xe(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(Cf(a)){var _=a.global||a.__width===m&&a.__height===y;x=_&&a.__canvasGradient||Op(o,a,{x:0,y:0,width:m,height:y}),a.__canvasGradient=x,a.__width=m,a.__height=y}else Zk(a)&&(a.scaleX=a.scaleX||f,a.scaleY=a.scaleY||f,x=Bp(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),c_=1e5,jn=314159,Iu=.01,Rz=.001;function Ez(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function Nz(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 Oz=(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=H({},a||{}),this.dpr=a.devicePixelRatio||kc,this._singleCanvas=i,this.root=e;var o=e.style;o&&(N2(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 Pv(c,this,this.dpr);v.__builtin__=!0,v.initContext(),l[jn]=v,v.zlevel=jn,s.push(jn),this._domRoot=e}else{this._width=ho(e,0,a),this._height=ho(e,1,a);var u=this._domRoot=Nz(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(c_)),i||(i=a.ctx,i.save()),si(i,s,n,o===t-1))}i&&i.restore()}},r.prototype.getHoverLayer=function(){return this.getLayer(c_)},r.prototype.paintOne=function(e,t){fA(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;Ac(function(){l._paintList(e,t,a,n)})}}},r.prototype._compositeManually=function(){var e=this.getLayer(jn).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 A,C=function(P){var k={inHover:!1,allClipped:!1,prevEl:null,viewWidth:n._width,viewHeight:n._height};for(A=x;A<g.__endIndex;A++){var R=e[A];if(R.__inHover&&(f=!0),n._doPaintEl(R,g,o,P,k,A===g.__endIndex-1),_){var E=Date.now()-b;if(E>15)break}}k.prevElClipPaths&&m.restore()};if(y)if(y.length===0)A=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(),C(I),m.restore()}else m.save(),C(),m.restore();g.__drawIndex=A,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))&&(si(s,e,i,o),e.setPrevPaintRect(l))}else si(s,e,i,o)},r.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=jn);var a=this._layers[e];return a||(a=new Pv("zr_"+e,this,this.dpr),a.zlevel=e,a.__builtin__=!0,this._layerConfig[e]?ge(a,this._layerConfig[e],!0):this._layerConfig[e-Iu]&&ge(a,this._layerConfig[e-Iu],!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]&&Ez(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+Rz,this._needsManuallyCompositing),c.incremental=!0,o=1):c=this.getLayer(u+(o>0?Iu:0),this._needsManuallyCompositing),c.__builtin__||Fg("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]?ge(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+Iu){var o=this._layers[i];ge(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(be(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=ho(i,0,n),t=ho(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(jn).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[jn].dom;var t=new Pv("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];si(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 Bz(r){r.registerPainter("canvas",Oz)}var 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.getInitialData=function(t){return Oa(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})(Xe);function Mo(r,e){var t=r.mapDimensionsAll("defaultedLabel"),a=t.length;if(a===1){var n=Co(r,e,t[0]);return n!=null?n+"":null}else if(a){for(var i=[],o=0;o<t.length;o++)i.push(Co(r,e,t[o]));return i.join(" ")}}function MD(r,e){var t=r.mapDimensionsAll("defaultedLabel");if(!$(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 Gl=(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=Vz,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(){Ma(this.childAt(0))},e.prototype.downplay=function(){La(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):Re(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=Li(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 A=s.style;s.useStyle(H({image:A.image,x:A.x,y:A.y,width:A.width,height:A.height},S))}else s.__isEmptyBrush?s.useStyle(H({},S)):s.useStyle(S),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=t.getItemVisual(a,"liftZ"),D=this._z2;C!=null?D==null&&(this._z2=s.z2,s.z2+=C):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):Mo(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=fe(this).dataIndex,s=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var l=i.getTextContent();l&&dn(l,{style:{opacity:0}},a,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();dn(i,{style:{opacity:0},scaleX:0,scaleY:0},a,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,a){return Uo(t.getItemVisual(a,"symbolSize"))},e})(ue);function Vz(r,e){this.parent.drift(r,e)}function kv(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 f_(r){return r!=null&&!se(r)&&(r={isIgnore:r}),r||{}}function h_(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 Hl=(function(){function r(e){this.group=new ue,this._SymbolCtor=e||Gl}return r.prototype.updateData=function(e,t){this._progressiveEls=null,t=f_(t);var a=this.group,n=e.hostModel,i=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=h_(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(kv(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(!kv(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):Re(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=h_(e),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,a){this._progressiveEls=[],a=f_(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(kv(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){xn(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 LD(r,e,t){var a=r.getBaseAxis(),n=r.getOtherAxis(a),i=Fz(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 gn(e,f[0])&&(h=!0,f[0]=v),gn(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 Fz(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 ID(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 Gz(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 Hz(r,e,t,a,n,i,o,s){for(var l=Gz(r,e),u=[],c=[],f=[],h=[],v=[],d=[],p=[],g=LD(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 A=m[S],C=m[S+1],D=y[w],M=y[w+1];(isNaN(A)||isNaN(C))&&(A=D,C=M),u.push(A,C),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=ID(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(Q,pe){return p[Q]-p[pe]});for(var E=u.length,B=ra(E),O=ra(E),V=ra(E),F=ra(E),G=[],x=0;x<d.length;x++){var Y=d[x],X=x*2,q=Y*2;B[X]=u[q],B[X+1]=u[q+1],O[X]=c[q],O[X+1]=c[q+1],V[X]=f[q],V[X+1]=f[q+1],F[X]=h[q],F[X+1]=h[q+1],G[x]=v[Y]}return{current:B,next:O,stackedOnCurrent:V,stackedOnNext:F,status:G}}var ja=Math.min,Wa=Math.max;function gi(r,e){return isNaN(r)||isNaN(e)}function Yp(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(gi(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 A=g+1;if(l)for(;gi(S,w)&&A<a;)A++,b+=i,S=e[b*2],w=e[b*2+1];var C=.5,D=0,M=0,I=void 0,P=void 0;if(A>=a||gi(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 G=M>0?1:-1;v=m,d=y-G*O*o,I=m,P=y+G*V*o}else O=Math.sqrt(k*k+E*E),V=Math.sqrt(R*R+B*B),C=V/(V+O),v=m-D*o*(1-C),d=y-M*o*(1-C),I=m+D*o*C,P=y+M*o*C,I=ja(I,Wa(S,m)),P=ja(P,Wa(w,y)),I=Wa(I,ja(S,m)),P=Wa(P,ja(w,y)),D=I-m,M=P-y,v=m-D*O/V,d=y-M*O/V,v=ja(v,Wa(u,m)),d=ja(d,Wa(c,y)),v=Wa(v,ja(u,m)),d=Wa(d,ja(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 PD=(function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r})(),jz=(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 PD},e.prototype.buildPath=function(t,a){var n=a.points,i=0,o=n.length/2;if(a.connectNulls){for(;o>0&&gi(n[o*2-2],n[o*2-1]);o--);for(;i<o&&gi(n[i*2],n[i*2+1]);i++);}for(;i<o;)i+=Yp(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=ca.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?Mc(s,v,p,m,t,c):Mc(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),Wz=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(PD),kD=(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 Wz},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&&gi(n[s*2-2],n[s*2-1]);s--);for(;o<s&&gi(n[o*2],n[o*2+1]);o++);}for(;o<s;){var u=Yp(t,n,o,s,s,1,a.smooth,l,a.connectNulls);Yp(t,i,o+u-1,u,s,-1,a.stackedOnSmooth,l,a.connectNulls),o+=u+1,t.closePath()}},e})(Ce);function RD(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=ie(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 ED(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 jl(r,e,t,a,n){if(r){if(r.type==="polar")return ED(r,e,t);if(r.type==="cartesian2d")return RD(r,e,t,a,n)}else return null;return null}function Pi(r,e){return r.type===e}function v_(r,e){if(r.length===e.length){for(var t=0;t<r.length;t++)if(r[t]!==e[t])return;return!0}}function d_(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 p_(r,e){var t=d_(r),a=t[0],n=t[1],i=d_(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 g_(r){return ke(r)?r:r?.5:0}function $z(r,e,t){if(!t.valueDim)return[];for(var a=e.count(),n=ra(a*2),i=0;i<a;i++){var o=ID(t,r,e,i);n[i*2]=o[0],n[i*2+1]=o[1]}return n}function $a(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 Uz(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=E5(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 Yz(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=Uz(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 El(0,0,0,0,h,!0);return y[n]=p,y[n+"2"]=g,y}}}function Xz(r,e,t){var a=r.get("showAllSymbol"),n=a==="auto";if(!(a&&!n)){var i=t.getAxesByScale("ordinal")[0];if(i&&!(n&&Zz(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 Zz(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(Gl.getSymbolSize(e,o)[r.isHorizontal()?1:0]*1.5>a)return!1;return!0}function qz(r,e){return isNaN(r)||isNaN(e)}function Kz(r){for(var e=r.length/2;e>0&&qz(r[e*2-2],r[e*2-1]);e--);return e-1}function m_(r,e){return[r[e*2],r[e*2+1]]}function Jz(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 ND(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 Rv(r,e,t,a){if(Pi(e,"cartesian2d")){var n=a.getModel("endLabel"),i=n.get("valueAnimation"),o=a.getData(),s={lastFrameIndex:0},l=ND(a)?function(v,d){r._endLabelOnDuring(v,d,o,s,i,n,e)}:null,u=e.getBaseAxis().isHorizontal(),c=RD(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 ED(e,t,a)}function Qz(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 eV=(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 Hl;this.group.add(a.group),this._symbolDraw=a,this._lineGroup=t,this._changePolyState=ee(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"),_=LD(i,s,x),b=y&&$z(i,s,_),S=t.get("showSymbol"),w=t.get("connectNulls"),A=S&&!f&&Xz(t,s,i),C=this._data;C&&C.eachItemGraphicEl(function(Q,pe){Q.__temp&&(o.remove(Q),C.setItemGraphicEl(pe,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=Yz(s,i,n)||s.getVisual("style")[s.getVisual("drawType")];if(!(d&&h.type===i.type&&D===this._step))S&&v.updateData(s,{isIgnore:A,clipShape:M,disableAnimation:!0,getSymbolPoint:function(Q){return[c[Q*2],c[Q*2+1]]}}),m&&this._initSymbolLabelAnimation(s,i,M),D&&(b&&(b=$a(b,c,i,D,w)),c=$a(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,Si(I)),g.setClipPath(Rv(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,Si(I));var P=g.getClipPath();if(P){var k=Rv(this,i,!1,t);Je(P,{shape:k.shape},t)}else g.setClipPath(Rv(this,i,!0,t));S&&v.updateData(s,{isIgnore:A,clipShape:M,disableAnimation:!0,getSymbolPoint:function(Q){return[c[Q*2],c[Q*2+1]]}}),(!v_(this._stackedOnPoints,b)||!v_(this._points,c))&&(m?this._doUpdateAnimation(s,b,i,n,D,x,w):(D&&(b&&(b=$a(b,c,i,D,w)),c=$a(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(oe(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}fe(d).seriesIndex=t.seriesIndex,et(d,E,B,O);var F=g_(t.get("smooth")),G=t.get("smoothMonotone");if(d.setShape({smooth:F,smoothMonotone:G,connectNulls:w}),p){var Y=s.getCalculationInfo("stackedOnSeries"),X=0;p.useStyle(oe(u.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),Y&&(X=g_(Y.get("smooth"))),p.setShape({smooth:F,stackedOnSmooth:X,smoothMonotone:G,connectNulls:w}),It(p,t,"areaStyle"),fe(p).seriesIndex=t.seriesIndex,et(p,E,B,O)}var q=this._changePolyState;s.eachItemGraphicEl(function(Q){Q&&(Q.onHoverStateChange=q)}),this._polyline.onHoverStateChange=q,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){fe(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=xi(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 Gl(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 We.prototype.highlight.call(this,t,a,n,i)},e.prototype.downplay=function(t,a,n,i){var o=t.getData(),s=xi(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 We.prototype.downplay.call(this,t,a,n,i)},e.prototype._changePolyState=function(t){var a=this._polygon;Nc(this._polyline,t),a&&Nc(a,t)},e.prototype._newPolyline=function(t){var a=this._polyline;return a&&this._lineGroup.remove(a),a=new jz({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 kD({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");ie(c)&&(c=c(null));var f=u.get("animationDelay")||0,h=ie(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 A=ie(f)?f(d):c*w+h,C=p.getSymbolPath(),D=C.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:A}),D&&D.animateFrom({style:{opacity:0}},{duration:300,delay:A}),C.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,a,n){var i=t.getModel("endLabel");if(ND(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=Kz(l);c>=0&&(Pt(s,bt(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:c,defaultText:function(f,h,v){return v!=null?MD(o,v):Mo(o,f)},enableTextSetter:!0},Qz(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",A=Jz(f,_,w),C=A.range,D=C[1]-C[0],M=void 0;if(D>=1){if(D>1&&!v){var I=m_(f,C[0]);u.attr({x:I[0]+b,y:I[1]+S}),o&&(M=h.getRawValue(C[0]))}else{var I=c.getPointOn(_,w);I&&u.attr({x:I[0]+b,y:I[1]+S});var P=h.getRawValue(C[0]),k=h.getRawValue(C[1]);o&&(M=xT(n,d,P,k,A.t))}i.lastFrameIndex=C[0]}else{var R=t===1||i.lastFrameIndex>0?C[0]:0,I=m_(f,R);o&&(M=h.getRawValue(R)),u.attr({x:I[0]+b,y:I[1]+S})}if(o){var E=Vo(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=Hz(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=$a(h.stackedOnCurrent,h.current,n,o,l),v=$a(h.current,null,n,o,l),g=$a(h.stackedOnNext,h.next,n,o,l),p=$a(h.next,null,n,o,l)),p_(v,p)>3e3||c&&p_(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(),Re(u,m,f),c&&(c.setShape({points:v,stackedOnPoints:d}),c.stopAnimation(),Re(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,A=0;A<y.length;A++){var C=y[A].el,D=y[A].ptIdx*2;C.x=w[D],C.y=w[D+1],C.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})(We);function Wl(r,e){return{seriesType:r,plan:Wo(),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");gn(a,s[0])&&(s[0]=u),gn(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&&ra(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 tV={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]}},rV=function(r){return Math.round(r.length/2)};function OD(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;J(i)?d=tV[i]:ie(i)&&(d=i),d&&e.setData(n.downSample(n.mapDimension(u.dim),1/v,d,rV))}}}}}function aV(r){r.registerChartView(eV),r.registerSeriesModel(zz),r.registerLayout(Wl("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,OD("line"))}var yl=(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 Oa(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})(Xe);Xe.registerClass(yl);var nV=(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 Oa(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=_n(yl.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})(yl),iV=(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})(),ef=(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 iV},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 oV(r,e){e=e||{};var t=e.isRoundCap;return function(a,n,i){var o=n.position;if(!o||o instanceof Array)return Rc(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",A="top";switch(s){case"startArc":b=c+(v-l)*x(m),S=f+(v-l)*_(m),w="center",A="top";break;case"insideStartArc":b=c+(v+l)*x(m),S=f+(v+l)*_(m),w="center",A="bottom";break;case"startAngle":b=c+d*x(p)+Pu(p,l+y,!1),S=f+d*_(p)+ku(p,l+y,!1),w="right",A="middle";break;case"insideStartAngle":b=c+d*x(p)+Pu(p,-l+y,!1),S=f+d*_(p)+ku(p,-l+y,!1),w="left",A="middle";break;case"middle":b=c+d*x(m),S=f+d*_(m),w="center",A="middle";break;case"endArc":b=c+(h+l)*x(m),S=f+(h+l)*_(m),w="center",A="bottom";break;case"insideEndArc":b=c+(h-l)*x(m),S=f+(h-l)*_(m),w="center",A="top";break;case"endAngle":b=c+d*x(g)+Pu(g,l+y,!0),S=f+d*_(g)+ku(g,l+y,!0),w="left",A="middle";break;case"insideEndAngle":b=c+d*x(g)+Pu(g,-l+y,!0),S=f+d*_(g)+ku(g,-l+y,!0),w="right",A="middle";break;default:return Rc(a,n,i)}return a=a||{},a.x=b,a.y=S,a.align=w,a.verticalAlign=A,a}}function sV(r,e,t,a){if(ke(a)){r.setTextConfig({rotation:a});return}else if($(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 Pu(r,e,t){return e*Math.sin(r)*(t?-1:1)}function ku(r,e,t){return e*Math.cos(r)*(t?1:-1)}function li(r,e,t){var a=r.get("borderRadius");if(a==null)return t?{cornerRadius:0}:null;$(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 Ev=Math.max,Nv=Math.min;function lV(r,e){var t=r.getArea&&r.getArea();if(Pi(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 uV=(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){xn(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=cV(t,u);v&&this._enableRealtimeSort(v,s,n);var d=t.get("clip",!0)||v,p=lV(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 A(M){var I=Ru[u.type](s,M),P=mV(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=Ru[u.type](s,M,I);if(m&&A(M),!(!s.hasValue(M)||!S_[u.type](P))){var k=!1;d&&(k=y_[u.type](p,P));var R=x_[u.type](t,s,M,P,f,h,c.model,!1,g);v&&(R.forceLabelAnimation=!0),w_(R,s,M,I,P,t,f,u.type==="polar"),S?R.attr({shape:P}):v?__(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=Ru[u.type](s,M,P);if(m){var R=void 0;b.length===0?R=A(I):(R=b[I],R.useStyle(y.getItemStyle()),u.type==="cartesian2d"?R.setShape("r",x):R.setShape("cornerRadius",x),_[M]=R);var E=Ru[u.type](s,M),B=zD(f,E,u);Re(R,{shape:B},h,M)}var O=l.getItemGraphicEl(I);if(!s.hasValue(M)||!S_[u.type](k)){o.remove(O);return}var V=!1;if(d&&(V=y_[u.type](p,k),V&&o.remove(O)),O?Gr(O):O=x_[u.type](t,s,M,k,f,h,c.model,!!O,g),v&&(O.forceLabelAnimation=!0),w){var F=O.getTextContent();if(F){var G=Vo(F);G.prevValue!=null&&(G.prevValue=G.value)}}else w_(O,s,M,P,k,t,f,u.type==="polar");S?O.attr({shape:k}):v?__(v,h,O,k,M,f,!0,w):Re(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&&ll(I,t,M)}).execute();var C=this._backgroundGroup||(this._backgroundGroup=new ue);C.removeAll();for(var D=0;D<_.length;++D)C.add(_[D]);o.add(C),this._backgroundEls=_,this._data=s},e.prototype._renderLarge=function(t,a,n){this._clear(),C_(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,a){this._removeBackground(),C_(a,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var a=t.get("clip",!0)&&jl(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){ll(i,t,fe(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})(We),y_={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=Ev(e.x,r.x),s=Nv(e.x+e.width,n),l=Ev(e.y,r.y),u=Nv(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=Nv(e.r,r.r),i=Ev(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}},x_={cartesian2d:function(r,e,t,a,n,i,o,s,l){var u=new Le({shape:H({},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?ef:Yt,c=new u({shape:a,z2:1});c.name="item";var f=BD(n);if(c.calculateTextPosition=oV(f,{isRoundCap:u===ef}),i){var h=c.shape,v=n?"r":"endAngle",d={};h[v]=n?a.r0:a.startAngle,d[v]=a[v],(s?Re:Je)(c,{shape:d},i)}return c}};function cV(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 __(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?Re:Je)(t,{shape:l},e,n,null);var c=e?r.baseAxis.model:null;(o?Re:Je)(t,{shape:u},c,n)}function b_(r,e){for(var t=0;t<e.length;t++)if(!isFinite(r[e[t]]))return!0;return!1}var fV=["x","y","width","height"],hV=["cx","cy","r","startAngle","endAngle"],S_={cartesian2d:function(r){return!b_(r,fV)},polar:function(r){return!b_(r,hV)}},Ru={cartesian2d:function(r,e,t){var a=r.getItemLayout(e),n=t?dV(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 vV(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function BD(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 w_(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=li(a.getModel("itemStyle"),c,!0);H(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:Mo(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,sV(r,g==="outside"?v:g,BD(o),a.get(["label","rotate"]))}rC(p,d,i.getRawValue(t),function(y){return MD(e,y)});var m=a.getModel(["emphasis"]);et(r,m.get("focus"),m.get("blurScope"),m.get("disabled")),It(r,a),vV(n)&&(r.style.fill="none",r.style.stroke="none",L(r.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function dV(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 pV=(function(){function r(){}return r})(),T_=(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 pV},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 C_(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 T_({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 T_({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,fe(f).seriesIndex=r.seriesIndex,r.get("silent")||(f.on("mousedown",A_),f.on("mousemove",A_)),t&&t.push(f)}var A_=Am(function(r){var e=this,t=gV(e,r.offsetX,r.offsetY);fe(e).dataIndex=t>=0?t:null},30,!1);function gV(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 zD(r,e,t){if(Pi(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 mV(r,e,t){var a=r.type==="polar"?Yt:Le;return new a({shape:zD(e,t,r),silent:!0,z2:0})}function yV(r){r.registerChartView(uV),r.registerSeriesModel(nV),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,de(jA,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,WA("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,OD("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 D_=Math.PI*2,Eu=Math.PI/180;function VD(r,e){return gt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function FD(r,e){var t=VD(r,e),a=r.get("center"),n=r.get("radius");$(n)||(n=[0,n]);var i=Z(t.width,e.getWidth()),o=Z(t.height,e.getHeight()),s=Math.min(i,o),l=Z(n[0],s/2),u=Z(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 $(a)||(a=[a,a]),c=Z(a[0],i)+t.x,f=Z(a[1],o)+t.y;return{cx:c,cy:f,r0:l,r:u}}function xV(r,e,t){e.eachSeriesByType(r,function(a){var n=a.getData(),i=n.mapDimension("value"),o=VD(a,t),s=FD(a,t),l=s.cx,u=s.cy,c=s.r,f=s.r0,h=-a.get("startAngle")*Eu,v=a.get("endAngle"),d=a.get("padAngle")*Eu;v=v==="auto"?h-D_:-v*Eu;var p=a.get("minAngle")*Eu,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 A=_?1:-1,C=[h,v],D=A*d/2;tm(C,!_),h=C[0],v=C[1];var M=GD(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+A*V,G=0,Y=0;d>V?(G=R+A*V/2,Y=G):(G=R+D,Y=F-D),n.setItemLayout(O,{angle:V,startAngle:G,endAngle:Y,clockwise:_,cx:l,cy:u,r0:f,r:b?Fe(B,w,[f,c]):c}),R=F}),P<D_&&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,G=0;E<d?(F=h+A*(O+1/2)*E,G=F):(F=h+A*O*E+D,G=h+A*(O+1)*E-D),V.startAngle=F,V.endAngle=G}})}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,G=0,Y=0;F<d?(G=R+A*F/2,Y=G):(G=R+D,Y=R+A*F-D),V.startAngle=G,V.endAngle=Y,R+=A*F}})})}var GD=Ie();function $l(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 _V=Math.PI/180;function M_(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)),A=e+(w+x.len2)*n,C=A-x.label.x,D=x.targetTextWidth-C*n;HD(x,D,!0),x.label.x=A}}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,A=Math.abs(S)<w?Math.sqrt(b*b/(1-S*S/w/w)):w;_.rB=A,_.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}fD(r,l,l+o)&&f(r)}function bV(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;Ov(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(!Ov(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,HD(d,g)}}M_(u,e,t,a,1,n,i,o,s,f),M_(l,e,t,a,-1,n,i,o,s,c);for(var h=0;h<r.length;h++){var d=r[h];if(!Ov(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 HD(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 Ov(r){return r.position==="center"}function SV(r){var e=r.getData(),t=[],a,n,i=!1,o=(r.get("minShowLabelAngle")||0)*_V,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),A=w.shape,C=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=Z(I.get("edgeDistance"),u),B=I.get("bleedMargin"),O=M.getModel("labelLine"),V=O.get("length");V=Z(V,u);var F=O.get("length2");if(F=Z(F,u),Math.abs(A.endAngle-A.startAngle)<o){L(C.states,v),C.ignore=!0,D&&(L(D.states,v),D.ignore=!0);return}if(d(C)){var G=(A.startAngle+A.endAngle)/2,Y=Math.cos(G),X=Math.sin(G),q,Q,pe,ce;a=A.cx,n=A.cy;var ne=P==="inside"||P==="inner";if(P==="center")q=A.cx,Q=A.cy,ce="center";else{var te=(ne?(A.r+A.r0)/2*Y:A.r*Y)+a,W=(ne?(A.r+A.r0)/2*X:A.r*X)+n;if(q=te+Y*3,Q=W+X*3,!ne){var j=te+Y*(V+l-A.r),K=W+X*(V+l-A.r),Se=j+(Y<0?-1:1)*F,ye=K;R==="edge"?q=Y<0?c+E:c+u-E:q=Se+(Y<0?-k:k),Q=ye,pe=[[te,W],[j,K],[Se,ye]]}ce=ne?"center":R==="edge"?Y>0?"right":"left":Y>0?"left":"right"}var we=Math.PI,ve=0,Ve=I.get("rotate");if(ke(Ve))ve=Ve*(we/180);else if(P==="center")ve=0;else if(Ve==="radial"||Ve===!0){var ct=Y<0?-G+we:-G;ve=ct}else if(Ve==="tangential"&&P!=="outside"&&P!=="outer"){var it=Math.atan2(Y,X);it<0&&(it=we*2+it);var wt=X>0;wt&&(it=we+it),ve=it-we}if(i=!!ve,C.x=q,C.y=Q,C.rotation=ve,C.setStyle({verticalAlign:"middle"}),ne){C.setStyle({align:ce});var Oe=C.states.select;Oe&&(Oe.x+=C.x,Oe.y+=C.y)}else{var Dt=C.getBoundingRect().clone();Dt.applyTransform(C.getComputedTransform());var Lr=(C.style.margin||0)+2.1;Dt.y-=Lr/2,Dt.height+=Lr,t.push({label:C,labelLine:D,position:P,len:V,len2:F,minTurnAngle:O.get("minTurnAngle"),maxSurfaceAngle:O.get("maxSurfaceAngle"),surfaceNormal:new me(Y,X),linePoints:pe,textAlign:ce,labelDistance:k,labelAlignTo:R,edgeDistance:E,bleedMargin:B,rect:Dt,unconstrainedWidth:Dt.width,labelStyleWidth:C.style.width})}w.setTextConfig({inside:ne})}}),!i&&r.get("avoidLabelOverlap")&&bV(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):(lD(b,g.minTurnAngle),$B(b,g.surfaceNormal,g.maxSurfaceAngle),y.setShape({points:b}),m.__hostTarget.textGuideLineConfig={anchor:new me(b[0][0],b[0][1])})}}}var wV=(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=H(li(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,Re(o,{shape:{endAngle:c.endAngle}},s,a))}else Gr(o),Re(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=H({r:c.r+(u.get("scale")&&u.get("scaleSize")||0)},li(u.getModel("itemStyle"),c)),H(o.ensureState("select"),{x:p,y:g,shape:li(l.getModel(["select","itemStyle"]),c)}),H(o.ensureState("blur"),{shape:li(l.getModel(["blur","itemStyle"]),c)});var y=o.getTextGuideLine(),x=o.getTextContent();y&&H(y.ensureState("select"),{x:p,y:g}),H(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)),Vm(this,Fm(o),{stroke:u,opacity:na(s.get(["lineStyle","opacity"]),c,1)})}},e})(Yt),TV=(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=GD(t),v=new Yt({shape:H(FD(t,n),h)});v.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=v,l.add(v)}o.diff(s).add(function(d){var p=new wV(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);ll(p,t,d)}).execute(),SV(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})(We);function Xo(r,e,t){e=$(e)&&{coordDimensions:e}||H({encodeDefine:r.getEncode()},e);var a=r.getSource(),n=Vl(a,e).dimensions,i=new jt(n,r);return i.initData(a,t),i}var Ul=(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})(),CV=Ie(),AV=(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 Ul(ee(this.getData,this),ee(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return Xo(this,{coordDimensions:["value"],encodeDefaulter:de(ym,this)})},e.prototype.getDataParams=function(t){var a=this.getData(),n=CV(a),i=n.seats;if(!i){var o=[];a.each(a.mapDimension("value"),function(l){o.push(l)}),i=n.seats=gR(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){yi(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})(Xe);function DV(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 MV(r){r.registerChartView(TV),r.registerSeriesModel(AV),lA("pie",r.registerAction),r.registerLayout(de(xV,"pie")),r.registerProcessor($l("pie")),r.registerProcessor(DV("pie"))}var LV=(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 Oa(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})(Xe),jD=4,IV=(function(){function r(){}return r})(),PV=(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 IV},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]<jD,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 xe(l-o/2,u-s/2,c-l+o,f-u+s)}return t},e})(Ce),kV=(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 PV({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]<jD;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=fe(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})(),RV=(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=Wl("").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 kV:new Hl,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})(We),EV=(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),Xp=(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(Xp,Fl);var WD={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)"]}}},NV=ge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},WD),Ym=ge({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}}},WD),OV=ge({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Ym),BV=oe({logBase:10},Ym);const $D={category:NV,value:Ym,time:OV,log:BV};var zV={value:1,category:1,time:1,log:1};function Lo(r,e,t,a){L(zV,function(n,i){var o=ge(ge({},$D[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=cl(this),v=h?Ho(c):{},d=f.getTheme();ge(c,d.get(i+"Axis")),ge(c,this.getDefaultOption()),c.type=L_(c),h&&pn(c,v,h)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=Gp.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",L_)}function L_(r){return r.type||(r.data?"category":"value")}var VV=(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})(),Zp=["x","y"];function I_(r){return r.type==="interval"||r.type==="time"}var FV=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=Zp,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,a=this.getAxis("y").scale;if(!(!I_(t)||!I_(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=No([],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 xe(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 xe(i,o,s,l)},e})(VV),GV=(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 qp(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 P_(r){return r.get("coordinateSystem")==="cartesian2d"}function k_(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 Bv=Math.log;function UD(r,e,t){var a=Pa.prototype,n=a.getTicks.call(t),i=a.getTicks.call(t,!0),o=n.length-1,s=a.getInterval.call(t),l=ZA(r,e),u=l.extent,c=l.fixMin,f=l.fixMax;if(r.type==="log"){var h=Bv(r.base);u=[Bv(u[0])/h,Bv(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=Sv(d),g=u[0]+d*o;else if(f)for(p=u[1]-d*o;p>u[0]&&isFinite(p)&&isFinite(u[0]);)d=Sv(d),p=u[1]-d*o;else{var m=r.getTicks().length-1;m>o&&(d=Sv(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 HV=(function(){function r(e,t,a){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Zp,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;Hp(p)&&d.get("alignTicks")&&d.get("interval")==null?c.push(v):(Do(p,d),Hp(p)&&(s=v))}c.length&&(s||(s=c.pop(),Do(s.scale,s.model)),L(c,function(g){UD(g.scale,g.model,s.scale)}))}}n(a.x),n(a.y);var i={};L(a.x,function(o){R_(a,"y",o,i)}),L(a.y,function(o){R_(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=SB(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]),jV(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,be(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 FV(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(zv(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 GV(c,rh(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(P_(n)){var i=k_(n),o=i.xAxisModel,s=i.yAxisModel;if(!zv(o,t)||!zv(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(qc(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);be(t,i)<0&&t.push(i),be(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(P_(n)){var i=k_(n),o=i.xAxisModel,s=i.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;n.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),a},r.dimensions=Zp,r})();function zv(r,e){return r.getCoordSysModel()===e}function R_(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)E_(n[l])&&(i=n[l]);else for(var u in n)if(n.hasOwnProperty(u)&&E_(n[u])&&!a[c(n[u])]){i=n[u];break}i&&(a[c(i)]=!0);function c(f){return f.dim+"_"+f.index}}function E_(r){return r&&r.type!=="category"&&r.type!=="time"&&bB(r)}function jV(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 rn=Math.PI,Wt=(function(){function r(e,t){this.group=new ue,this.opt=t,this.axisModel=e,oe(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!!N_[e]},r.prototype.add=function(e){N_[e](this.opt,this.axisModel,this.group,this._transformGroup)},r.prototype.getGroup=function(){return this.group},r.innerTextLayout=function(e,t,a){var n=uT(t-e),i,o;return nl(n)?(o=a>0?"top":"bottom",i="center"):nl(n-rn)?(o=a>0?"bottom":"top",i="center"):(o="middle",n>0&&n<rn?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})(),N_={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=H({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});To(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"]);J(h)&&(h=[h,h]),(J(v)||ke(v))&&(v=[v,v]);var d=Li(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=UV(t,a,e,r),i=XV(t,a,e,r);if($V(e,i,n),YV(t,a,e,r.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=uD(U(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));hD(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,B_(i)?r.labelOffset+o*l:0],h,v=e.get("nameRotate");v!=null&&(v=v*rn/180);var d;B_(i)?h=Wt.innerTextLayout(r.rotation,v??r.rotation,o):(h=WV(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:Ye(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(Di({el:x,componentModel:e,itemName:n}),x.__fullText=n,x.anid="name",e.get("triggerEvent")){var _=Wt.makeAxisEventDataBase(e);_.targetType="axisName",_.name=n,fe(x).eventData=_}a.add(x),x.updateTransform(),t.add(x),x.decomposeTransform()}}};function WV(r,e,t,a){var n=uT(t-r),i,o,s=a[0]>a[1],l=e==="start"&&!s||e!=="start"&&s;return nl(n-rn/2)?(o=l?"bottom":"top",i="center"):nl(n-rn*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",n<rn*1.5&&n>rn/2?i=l?"left":"right":i=l?"right":"left"),{rotation:n,textAlign:i,textVerticalAlign:o}}function $V(r,e,t){if(!qA(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)):O_(i,o)&&(a?(fr(o),fr(c)):(fr(i),fr(u))),n===!1?(fr(s),fr(f)):O_(l,s)&&(n?(fr(l),fr(h)):(fr(s),fr(f)))}}function fr(r){r&&(r.ignore=!0)}function O_(r,e){var t=r&&r.getBoundingRect().clone(),a=e&&e.getBoundingRect().clone();if(!(!t||!a)){var n=Df([]);return Ai(n,n,-r.rotation),t.applyTransform(Sa([],n,r.getLocalTransform())),a.applyTransform(Sa([],n,e.getLocalTransform())),t.intersect(a)}}function B_(r){return r==="middle"||r==="center"}function YD(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});To(c.shape,c.style.lineWidth),c.anid=n+"_"+r[l].tickValue,i.push(c)}return i}function UV(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=YD(u,e.transform,l,oe(s.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}),"ticks"),f=0;f<c.length;f++)r.add(c[f]);return c}}function YV(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=oe(s.getLineStyle(),oe(t.getModel("axisTick").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})),c=0;c<o.length;c++)for(var f=YD(o[c],e.transform,l,u,"minorticks_"+c),h=0;h<f.length;h++)r.add(f[h])}}function XV(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)*rn/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),A=_.getShallow("align",!0)||c.textAlign,C=he(_.getShallow("alignMinLabel",!0),A),D=he(_.getShallow("alignMaxLabel",!0),A),M=_.getShallow("verticalAlign",!0)||_.getShallow("baseline",!0)||c.textVerticalAlign,I=he(_.getShallow("verticalAlignMinLabel",!0),M),P=he(_.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:Ye(_,{text:y,align:g===0?C:g===l.length-1?D:A,verticalAlign:g===0?I:g===l.length-1?P:M,fill:ie(S)?S(n.type==="category"?x:n.type==="value"?m+"":m,g):S})});if(k.anid="label_"+m,Di({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),fe(k).eventData=R}e.add(k),k.updateTransform(),h.push(k),r.add(k),k.decomposeTransform()}),h}}function ZV(r,e){var t={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return qV(t,r,e),t.seriesInvolved&&JV(t,r),t}function qV(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=xl(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var c=s.model,f=c.getModel("tooltip",a);if(L(s.getAxes(),de(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,de(p,v?"cross":!0,h)),v&&L(d.otherAxes,de(p,"cross",!1))}function p(g,m,y){var x=y.model.getModel("axisPointer",n),_=x.get("show");if(!(!_||_==="auto"&&!g&&!Kp(x))){m==null&&(m=x.get("triggerTooltip")),x=g?KV(y,f,n,e,g,m):x;var b=x.get("snap"),S=x.get("triggerEmphasis"),w=xl(y.model),A=m||b||y.type==="category",C=r.axesInfo[w]={key:w,axis:y,coordSys:s,axisPointerModel:x,triggerTooltip:m,triggerEmphasis:S,involveSeries:A,snap:b,useHandle:Kp(x),seriesModels:[],linkGroup:null};u[w]=C,r.seriesInvolved=r.seriesInvolved||A;var D=QV(i,y);if(D!=null){var M=o[D]||(o[D]={axesInfo:{}});M.axesInfo[w]=C,M.mapper=i[D].mapper,C.linkGroup=M}}}})}function KV(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&&oe(u,f.textStyle)}}return r.model.getModel("axisPointer",new Ge(l,t,a))}function JV(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[xl(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 QV(r,e){for(var t=e.model,a=e.dim,n=0;n<r.length;n++){var i=r[n]||{};if(Vv(i[a+"AxisId"],t.id)||Vv(i[a+"AxisIndex"],t.componentIndex)||Vv(i[a+"AxisName"],t.name))return n}}function Vv(r,e){return r==="all"||$(r)&&be(r,e)>=0||r===e}function e6(r){var e=Xm(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=Kp(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 Xm(r){var e=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[xl(r)]}function t6(r){var e=Xm(r);return e&&e.axisPointerModel}function Kp(r){return!!r.get(["handle","show"])}function xl(r){return r.type+"||"+r.id}var z_={},ki=(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&&e6(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=t6(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){z_[t]=a},e.getAxisPointerClass=function(t){return t&&z_[t]},e.type="axis",e})(Qe),Jp=Ie();function XD(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=Jp(r).splitAreaColors,h=ae(),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=$(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:oe({fill:s[v]},m),autoBatch:!0,silent:!0})),v=(v+1)%c}Jp(r).splitAreaColors=h}}}function ZD(r){Jp(r).splitAreaColors=null}var r6=["axisLine","axisTickLabel","axisName"],a6=["splitArea","splitLine","minorSplitLine"],qD=(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=qp(s,t),u=new Wt(t,H({handleAutoShown:function(f){for(var h=s.coordinateSystem.getCartesians(),v=0;v<h.length;v++)if(Hp(h[v].getOtherAxis(t.axis).scale))return!0;return!1}},l));L(r6,u.add,u),this._axisGroup.add(u.getGroup()),L(a6,function(f){t.get([f,"show"])&&n6[f](this,this._axisGroup,t,s)},this);var c=i&&i.type==="changeAxisOrder"&&i.isInitSort;c||Nl(o,this._axisGroup,t),r.prototype.render.call(this,t,a,n,i)}},e.prototype.remove=function(){ZD(this)},e.type="cartesianAxis",e})(ki),n6={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=$(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:oe({stroke:s[_]},g),silent:!0});To(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});To(g.shape,h.lineWidth),e.add(g)}},splitArea:function(r,e,t,a){XD(r,e,t,a)}},KD=(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})(qD),i6=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=KD.type,t}return e.type="yAxis",e})(qD),o6=(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:oe({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e})(Qe),V_={offset:0};function JD(r){r.registerComponentView(o6),r.registerComponentModel(EV),r.registerCoordinateSystem("cartesian2d",HV),Lo(r,"x",Xp,V_),Lo(r,"y",Xp,V_),r.registerComponentView(KD),r.registerComponentView(i6),r.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function s6(r){Te(JD),r.registerSeriesModel(LV),r.registerChartView(RV),r.registerLayout(Wl("scatter"))}function l6(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]=F_(c)?c:G_(n)})}),t.each(function(o){var s=Yk(a[o],function(l){return F_(l)})||G_(n);a[o].push(s.slice()),t.setItemLayout(o,a[o])})}})}function F_(r){return!isNaN(r[0])&&!isNaN(r[1])}function G_(r){return[r.cx,r.cy]}function u6(r){var e=r.polar;if(e){$(e)||(e=[e]);var t=[];L(e,function(a,n){a.indicator?(a.type&&!a.shape&&(a.shape=a.type),r.radar=r.radar||[],$(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 c6=(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=Uo(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]),Mi[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),Re(p,y,t),Re(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(oe(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(A){var C=d.getModel([A,"areaStyle"]),D=C.isEmpty()&&C.parentModel.isEmpty();g.ensureState(A).ignore=D&&b}),g.useStyle(oe(_.getAreaStyle(),{fill:x,opacity:.7,decal:y.decal}));var S=d.getModel("emphasis"),w=S.getModel("itemStyle").getItemStyle();m.eachChild(function(A){if(A instanceof At){var C=A.style;A.useStyle(H({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},y))}else A.useStyle(y),A.setColor(x),A.style.strokeNoScale=!0;var D=A.ensureState("emphasis");D.style=le(w);var M=s.getStore().get(s.getDimensionIndex(A.__dimIdx),v);(M==null||isNaN(M))&&(M=""),Pt(A,bt(d),{labelFetcher:s.hostModel,labelDataIndex:v,labelDimIndex:A.__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})(We),f6=(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 Ul(ee(this.getData,this),ee(this.getRawData,this))},e.prototype.getInitialData=function(t,a){return Xo(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=qC(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})(Xe),ps=$D.value;function Nu(r,e){return oe({show:e},r)}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.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=oe({color:d.color},l));var g=ge(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(J(c)){var m=g.name;g.name=c.replace("{value}",m??"")}else ie(c)&&(g.name=c(g.name,g));var y=new Ge(g,null,this.ecModel);return ut(y,Fl.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:ge({lineStyle:{color:"#bbb"}},ps.axisLine),axisLabel:Nu(ps.axisLabel,!1),axisTick:Nu(ps.axisTick,!1),splitLine:Nu(ps.splitLine,!0),splitArea:Nu(ps.splitArea,!0),indicator:[]},e})(De),v6=["axisLine","axisTickLabel","axisName"],d6=(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(v6,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=$(h)?h:[h],p=$(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 Na({shape:{cx:_,cy:b,r:x[S].coord}}))}if(f&&S<x.length-1){var w=y(m,p,S);m[w].push(new kl({shape:{cx:_,cy:b,r0:x[S].coord,r:x[S+1].coord}}))}}else for(var A,C=U(n,function(R,E){var B=R.getTicksCoords();return A=A==null?B.length-1:Math.min(B.length-1,A),U(B,function(O){return a.coordToPoint(O.coord,E)})}),D=[],S=0;S<=A;S++){for(var M=[],I=0;I<n.length;I++)M.push(C[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:oe({stroke:"none",fill:p[E%p.length]},k),silent:!0}))},this),L(g,function(R,E){this.group.add(br(R,{style:oe({fill:"none",stroke:d[E%d.length]},P),silent:!0}))},this)},e.type="radar",e})(Qe),p6=(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),g6=(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 p6(o,new Pa);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=Z(a[0],n),this.cy=Z(a[1],i),this.startAngle=e.get("startAngle")*Math.PI/180;var s=e.get("radius");(J(s)||ke(s))&&(s=[0,s]),this.r0=Z(s[0],o),this.r=Z(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 Pa;o.setExtent(0,i),o.setInterval(1),L(a,function(s,l){UD(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 m6(r){r.registerCoordinateSystem("radar",g6),r.registerComponentModel(h6),r.registerComponentView(d6),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 y6(r){Te(m6),r.registerChartView(c6),r.registerSeriesModel(f6),r.registerLayout(l6),r.registerProcessor($l("radar")),r.registerPreprocessor(u6)}var H_="\0_ec_interaction_mutex";function x6(r,e,t){var a=Zm(r);a[e]=t}function _6(r,e,t){var a=Zm(r),n=a[e];n===t&&(a[e]=null)}function j_(r,e){return!!Zm(r)[e]}function Zm(r){return r[H_]||(r[H_]={})}ha({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},nt);var Yl=(function(r){z(e,r);function e(t){var a=r.call(this)||this;a._zr=t;var n=ee(a._mousedownHandler,a),i=ee(a._mousemoveHandler,a),o=ee(a._mouseupHandler,a),s=ee(a._mousewheelHandler,a),l=ee(a._pinchHandler,a);return a.enable=function(u,c){this.disable(),this._opt=oe(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(!d0(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||!gc("moveOnMouseMove",t,this._opt)||t.gestureEvent==="pinch"||j_(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&&Aa(t.event),QD(this,"pan","moveOnMouseMove",t,{dx:s,dy:l,oldX:i,oldY:o,newX:a,newY:n,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){d0(t)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(t){var a=gc("zoomOnMouseWheel",t,this._opt),n=gc("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;Fv(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);Fv(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:h,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!j_(this._zr,"globalPan")){var a=t.pinchScale>1?1.1:1/1.1;Fv(this,"zoom",null,t,{scale:a,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e})(Ar);function Fv(r,e,t,a,n){r.pointerChecker&&r.pointerChecker(a,n.originX,n.originY)&&(Aa(a.event),QD(r,e,t,a,n))}function QD(r,e,t,a,n){n.isAvailableBehavior=ee(gc,null,t,a),r.trigger(e,n)}function gc(r,e,t){var a=t[r];return!r||a&&(!J(a)||e.event[a+"Key"])}function qm(r,e,t){var a=r.target;a.x+=e,a.y+=t,a.dirty()}function Km(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 b6={axisPointer:1,tooltip:1,brush:1};function nh(r,e,t){var a=e.getComponentByElement(r.topTarget),n=a&&a.coordinateSystem;return a&&a!==t&&!b6.hasOwnProperty(a.mainType)&&n&&n.model!==t}function eM(r){if(J(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 Gv,tf={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"},W_=Me(tf),rf={"alignment-baseline":"textBaseline","stop-color":"stopColor"},$_=Me(rf),S6=(function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(e,t){t=t||{};var a=eM(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;C6(this._defs,this._defsUsePending),this._defsUsePending=[];var c,f;if(o){var h=ih(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=rM(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=Gv[s];if(c&&re(Gv,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=U_[s];if(v&&re(U_,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 wo({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});hr(t,a),ar(e,a,this._defsUsePending,!1,!1),w6(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(){Gv={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 Na;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 Bf;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=Z_(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=Z_(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=WT(a);return hr(t,n),ar(e,n,this._defsUsePending,!1,!1),n.silent=!0,n}}})(),r})(),U_={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 El(e,t,a,n);return Y_(r,i),X_(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 XT(e,t,a);return Y_(r,n),X_(r,n),n}};function Y_(r,e){var t=r.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function X_(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={};tM(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={}),oe(e.__inheritedStyle,r.__inheritedStyle))}function Z_(r){for(var e=ih(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&&(M6(r,e),tM(r,o,s),a||L6(r,o,s)),i.style=i.style||{},o.fill!=null&&(i.style.fill=q_(i,"fill",o.fill,t)),o.stroke!=null&&(i.style.stroke=q_(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(ih(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(i.invisible=!0),o.display==="none"&&(i.ignore=!0)}function w6(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 T6=/^url\(\s*#(.*?)\)/;function q_(r,e,t,a){var n=t&&t.match(T6);if(n){var i=Or(n[1]);a.push([r,e,i]);return}return t==="none"&&(t=null),t}function C6(r,e){for(var t=0;t<e.length;t++){var a=e[t];a[0].style[a[1]]=r[a[2]]}}var A6=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function ih(r){return r.match(A6)||[]}var D6=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,Hv=Math.PI/180;function M6(r,e){var t=r.getAttribute("transform");if(t){t=t.replace(/,/g," ");var a=[],n=null;t.replace(D6,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=ih(o);switch(n=n||or(),s){case"translate":sa(n,n,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Ug(n,n,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Ai(n,n,-parseFloat(l[0])*Hv,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*Hv);Sa(n,[1,0,u,1,0,0],n);break;case"skewY":var c=Math.tan(parseFloat(l[0])*Hv);Sa(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 K_=/([^\s:;]+)\s*:\s*([^:;]+)/g;function tM(r,e,t){var a=r.getAttribute("style");if(a){K_.lastIndex=0;for(var n;(n=K_.exec(a))!=null;){var i=n[1],o=re(tf,i)?tf[i]:null;o&&(e[o]=n[2]);var s=re(rf,i)?rf[i]:null;s&&(t[s]=n[2])}}}function L6(r,e,t){for(var a=0;a<W_.length;a++){var n=W_[a],i=r.getAttribute(n);i!=null&&(e[tf[n]]=i)}for(var a=0;a<$_.length;a++){var n=$_[a],i=r.getAttribute(n);i!=null&&(t[rf[n]]=i)}}function rM(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 I6(r,e){var t=new S6;return t.parse(r,e)}var P6=ae(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),k6=(function(){function r(e,t){this.type="geoSVG",this._usedGraphicMap=ae(),this._freedGraphics=[],this._mapName=e,this._parsedXML=eM(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=E6(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&&I6(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 xe(u,c,f,h)}if(s){var d=rM(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){P6.get(g.svgNodeTagLower)!=null&&(p.push(g),R6(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 R6(r){r.silent=!1,r.isGroup&&r.traverse(function(e){e.silent=!1})}function E6(r){var e=[],t=ae();return L(r,function(a){if(a.namedFrom==null){var n=new MB(a.name,a.el);e.push(n),t.set(a.name,n)}}),{regions:e,regionsMap:t}}var Qp=[126,25],J_="南海诸岛",Un=[[[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 Wn=0;Wn<Un.length;Wn++)for(var Zi=0;Zi<Un[Wn].length;Zi++)Un[Wn][Zi][0]/=10.5,Un[Wn][Zi][1]/=-10.5/.75,Un[Wn][Zi][0]+=Qp[0],Un[Wn][Zi][1]+=Qp[1];function N6(r,e){if(r==="china"){for(var t=0;t<e.length;t++)if(e[t].name===J_)return;e.push(new JA(J_,U(Un,function(a){return{type:"polygon",exterior:a}}),Qp))}}var O6={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function B6(r,e){if(r==="china"){var t=O6[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 z6=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function V6(r,e){r==="china"&&e.name==="台湾"&&e.geometries.push({type:"polygon",exterior:z6[0]})}var F6="name",G6=(function(){function r(e,t,a){this.type="geoJSON",this._parsedMap=ae(),this._mapName=e,this._specialAreas=a,this._geoJSON=j6(t)}return r.prototype.load=function(e,t){t=t||F6;var a=this._parsedMap.get(t);if(!a){var n=this._parseToRegions(t);a=this._parsedMap.set(t,{regions:n,boundingRect:H6(n)})}var i=ae(),o=[];return L(a.regions,function(s){var l=s.name;e&&re(e,l)&&(s=s.cloneShallow(l=e[l])),o.push(s),i.set(l,s)}),{regions:o,boundingRect:a.boundingRect||new xe(0,0,0,0),regionsMap:i}},r.prototype._parseToRegions=function(e){var t=this._mapName,a=this._geoJSON,n;try{n=a?IB(a,e):[]}catch(i){throw new Error(`Invalid geoJson format
18
+ `+i.message)}return N6(t,n),L(n,function(i){var o=i.name;B6(t,i),V6(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 H6(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 j6(r){return J(r)?typeof JSON<"u"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var gs=ae();const ka={registerMap:function(r,e,t){if(e.svg){var a=new k6(r,e.svg);gs.set(r,a)}else{var n=e.geoJson||e.geoJSON;n&&!e.features?t=e.specialAreas:n=e;var a=new G6(r,n,t);gs.set(r,a)}},getGeoResource:function(r){return gs.get(r)},getMapForUser:function(r){var e=gs.get(r);return e&&e.type==="geoJSON"&&e.getMapForUser()},load:function(r,e,t){var a=gs.get(r);if(a)return a.load(e,t)}};var Jm=["rect","circle","line","ellipse","polygon","polyline","path"],W6=ae(Jm),$6=ae(Jm.concat(["g"])),U6=ae(Jm.concat(["g"])),aM=Ie();function Ou(r){var e=r.getItemStyle(),t=r.get("areaColor");return t!=null&&(e.fill=t),e}function Q_(r){var e=r.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var nM=(function(){function r(e){var t=new ue;this.uid=Fo("ec_map_draw"),this._controller=new Yl(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()):Re(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=ae(),a=ae(),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(A){if(A.type==="polygon"){var C=[A.exterior].concat(A.interiors||[]);u&&(C=ib(C,u)),L(C,function(M){_.push(new Xt(h(M)))})}else{var D=A.points;u&&(D=ib(D,u,!0)),L(D,function(M){b.push(new Zt(h(M)))})}});var S=c(v.getCenter(),l&&l.project);function w(A,C){if(A.length){var D=new lm({culling:!0,segmentIgnoreThreshold:1,shape:{paths:A}});p.add(D),eb(e,D,m,y),tb(e,D,d,y,o,m,S),C&&(Q_(D),L(D.states,Q_))}}w(_),w(b,!0)}),t.each(function(v,d){var p=a.get(d),g=p.dataIdx,m=p.regionModel;rb(e,v,d,m,o,g),ab(e,v,d,m,o),nb(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=ae(),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);W6.get(c)!=null&&f instanceof Cr&&eb(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&&(U6.get(c)!=null&&tb(e,f,s,v,l,h,null),rb(e,f,s,v,l,h),ab(e,f,s,v,l),$6.get(c)!=null)){var p=nb(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){bi(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=ka.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=ka.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,qm(o,u.dx,u.dy),a.dispatchAction(H(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),i.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,Km(o,u.scale,u.originX,u.originY),a.dispatchAction(H(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])&&!nh(u,a,e)})},r.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var t=e.getTextContent();t&&(t.ignore=aM(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 eb(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=Ou(n),u=Ou(i),c=Ou(s),f=Ou(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=Ao(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,bi(e)}function tb(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&&(aM(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 rb(r,e,t,a,n,i){r.data?r.data.setItemGraphicEl(i,e):fe(e).eventData={componentType:"geo",componentIndex:n.componentIndex,geoIndex:n.componentIndex,name:t,region:a&&a.option||{}}}function ab(r,e,t,a,n){r.data||Di({el:e,componentModel:n,itemName:t,itemTooltipOption:a.get("tooltip")})}function nb(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&&jE(e,n,t),o}function ib(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 Y6=(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 nM(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 Na({style:{fill:t.getData().getVisual("style").fill},shape:{cx:c[0]+f*9,cy:c[1],r:3},silent:!0,z2:8+(f?0:Bo+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){Nc(h,x)}}o.add(h)}}})},e.type="map",e})(We),X6=(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=Xo(this,{coordDimensions:["value"],encodeDefaulter:de(ym,this)}),n=ae(),i=[],o=0,s=a.count();o<s;o++){var l=a.getName(o);n.set(l,o)}var u=ka.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&&ge(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})(Xe);function Z6(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 q6(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=Z6(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 K6(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 ob=Lt,Xl=(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 xa,a._rawTransformable=new xa,a.name=t,a}return e.prototype.setBoundingRect=function(t,a,n,i){return this._rect=new xe(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 xe(t,a,n,i)},e.prototype._transformTo=function(t,a,n,i){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new xe(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=[Z(t[0],a.getWidth()),Z(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(),$g(this.transform||(this.transform=[]),a.transform||or()),this._rawTransform=a.getLocalTransform(),this.invTransform=this.invTransform||[],No(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var t=this._rawTransformable,a=this._roamTransformable,n=new xa;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?ob(n,t,i):Vt(n,t)},e.prototype.pointToData=function(t){var a=this.invTransform;return a?ob([],t,a):[t[0],t[1]]},e.prototype.convertToPixel=function(t,a,n){var i=sb(a);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,a,n){var i=sb(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})(xa);function sb(r){var e=r.seriesModel;return e?e.coordinateSystem:null}var J6={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},iM=["lng","lat"],eg=(function(r){z(e,r);function e(t,a,n){var i=r.call(this,t)||this;i.dimensions=iM,i.type="geo",i._nameCoordMap=ae(),i.map=a;var o=n.projection,s=ka.load(a,n.nameMap,n.nameProperty),l=ka.getGeoResource(a);i.resourceType=l?l.type:null;var u=i.regions=s.regions,c=J6[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:he(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 xe(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(J(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=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})(Xl);ut(eg,Xl);function lb(r){var e=r.geoModel,t=r.seriesModel;return e?e.coordinateSystem:t?t.coordinateSystem||(t.getReferringComponents("geo",st).models[0]||{}).coordinateSystem:null}function ub(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,A,C){for(var D=A-S,M=C-w,I=0;I<=100;I++){var P=I/100,k=i.project([S+D*P,w+M*P]);Ka(a,a,k),Ja(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=[Z(h[0],d),Z(h[1],p)],x=Z(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 Q6(r,e){L(e.get("geoCoord"),function(t,a){r.addGeoCoord(a,t)})}var eF=(function(){function r(){this.dimensions=iM}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 eg(l+s,l,H({nameMap:o.get("nameMap")},n(o)));u.zoomLimit=o.get("scaleLimit"),a.push(u),o.coordinateSystem=u,u.model=o,u.resize=ub,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 eg(s,s,H({nameMap:Gg(l)},n(o[0])));u.zoomLimit=Ct.apply(null,U(o,function(c){return c.get("scaleLimit")})),a.push(u),u.resize=ub,u.resize(o[0],t),L(o,function(c){c.coordinateSystem=u,Q6(u,c)})}),a},r.prototype.getFilledRegions=function(e,t,a,n){for(var i=(e||[]).slice(),o=ae(),s=0;s<i.length;s++)o.set(i[s].name,i[s]);var l=ka.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&&ge(f,h)}),i},r})(),oM=new eF,tF=(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=ka.getGeoResource(t.map);if(i&&i.type==="geoJSON"){var o=t.itemStyle=t.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(t,n),yi(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,a=this.option;a.regions=oM.getFilledRegions(a.regions,a.map,a.nameMap,a.nameProperty);var n={};this._optionModelMap=oa(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},ae()),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(ie(i))return o.status=a,i(o);if(J(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 cb(r,e){return r.pointToProjected?r.pointToProjected(e):r.pointToData(e)}function Qm(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(cb(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(cb(r,s),a),r.setZoom(o*n)}return{center:r.getCenter(),zoom:r.getZoom()}}var rF=(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 nM(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;ii(t.target,function(n){return(a=fe(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=fe(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 aF(r,e,t){ka.registerMap(r,e,t)}function sM(r){r.registerCoordinateSystem("geo",oM),r.registerComponentModel(tF),r.registerComponentView(rF),r.registerImpl("registerMap",aF),r.registerImpl("getMap",function(t){return ka.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=Qm(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 nF(r){Te(sM),r.registerChartView(Y6),r.registerSeriesModel(X6),r.registerLayout(K6),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,q6),lA("map",r.registerAction)}function iF(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 oF(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){uF(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=cF(r,n,r.parentNode.hierNode.defaultAncestor||a[0],e)}function sF(r){var e=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:e},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function fb(r){return arguments.length?r:vF}function Rs(r,e){return r-=Math.PI/2,{x:e*Math.cos(r),y:e*Math.sin(r)}}function lF(r,e){return gt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function uF(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 cF(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=jv(s),i=Wv(i),s&&i;){n=jv(n),o=Wv(o),n.hierNode.ancestor=r;var h=s.hierNode.prelim+f-i.hierNode.prelim-u+a(s,i);h>0&&(hF(fF(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&&!jv(n)&&(n.hierNode.thread=s,n.hierNode.modifier+=f-l),i&&!Wv(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-c,t=r)}return t}function jv(r){var e=r.children;return e.length&&r.isExpand?e[e.length-1]:r.hierNode.thread}function Wv(r){var e=r.children;return e.length&&r.isExpand?e[0]:r.hierNode.thread}function fF(r,e,t){return r.hierNode.ancestor.parentNode===e.parentNode?r.hierNode.ancestor:t}function hF(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 vF(r,e){return r.parentNode===e.parentNode?1:2}var dF=(function(){function r(){this.parentPoint=[],this.childPoints=[]}return r})(),pF=(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 dF},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=Z(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),gF=(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 Yl(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){hb(i,c)&&vb(i,c,null,s,t)}).update(function(c,f){var h=u.getItemGraphicEl(f);if(!hb(i,c)){h&&pb(u,f,h,s,t);return}vb(i,c,h,s,t)}).remove(function(c){var f=u.getItemGraphicEl(c);f&&pb(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=[];Ef(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 Xl;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)&&!nh(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){qm(s,u.dx,u.dy),n.dispatchAction({seriesId:t.id,type:"treeRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){Km(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})(We);function hb(r,e){var t=r.getItemLayout(e);return t&&!isNaN(t.x)&&!isNaN(t.y)}function vb(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 Gl(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,Re(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",A=s.getModel("label"),C=A.get("rotate"),D=C*(Math.PI/180),M=g.getTextContent();M&&(g.setTextConfig({position:A.get("position")||w,rotation:C==null?-_:D,origin:"center"}),M.setStyle("verticalAlign","middle"))}var I=s.get(["emphasis","focus"]),P=I==="relative"?el(o.getAncestorsIndices(),o.getDescendantIndices()):I==="ancestor"?o.getAncestorsIndices():I==="descendant"?o.getDescendantIndices():null;P&&(fe(t).focus=P),mF(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===Pl||Nc(t.__edge,k)}})}function mF(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 Rl({shape:tg(c,f,h,n,n)})),Re(p,{shape:tg(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 pF({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:f,forkPosition:v}})),Re(p,{shape:{parentPoint:[o.x,o.y],childPoints:m}},r)}p&&!(u==="polyline"&&!e.isExpand)&&(p.useStyle(oe({strokeNoScale:!0,fill:null},d)),It(p,l,"lineStyle"),bi(p),s.add(p))}function db(r,e,t,a,n){var i=e.tree.root,o=lM(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"?dn(h,{shape:tg(d,p,g,l,l),style:{opacity:0}},a,{cb:function(){t.remove(h)},removeOpt:n}):v==="polyline"&&a.get("layout")==="orthogonal"&&dn(h,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},a,{cb:function(){t.remove(h)},removeOpt:n}))}}function lM(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 pb(r,e,t,a,n){var i=r.tree.getNodeByDataIndex(e),o=r.tree.root,s=lM(o,i).sourceLayout,l={duration:n.get("animationDurationUpdate"),easing:n.get("animationEasingUpdate")};dn(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){db(u,r,a,n,l)}),db(i,r,a,n,l)}function tg(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=Rs(u,f),d=Rs(u,f+(h-f)*t),p=Rs(c,h+(f-h)*t),g=Rs(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 uM(r){var e=r.mainData,t=r.datas;t||(t={main:e},r.datasAttr={main:"data"}),r.datas=r.mainData=null,cM(e,t,r),L(t,function(a){L(e.TRANSFERABLE_METHODS,function(n){a.wrapMethod(n,de(yF,r))})}),e.wrapMethod("cloneShallow",de(_F,r)),L(e.CHANGABLE_METHODS,function(a){e.wrapMethod(a,de(xF,r))}),$t(t[e.dataType]===e)}function yF(r,e){if(wF(this)){var t=H({},Tr(this).datas);t[this.dataType]=e,cM(e,t,r)}else ey(e,this.dataType,Tr(this).mainData,r);return e}function xF(r,e){return r.struct&&r.struct.update(),e}function _F(r,e){return L(Tr(e).datas,function(t,a){t!==e&&ey(t.cloneShallow(),a,e,r)}),e}function bF(r){var e=Tr(this).mainData;return r==null||e==null?e:Tr(e).datas[r]}function SF(){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 wF(r){return Tr(r).mainData===r}function cM(r,e,t){Tr(r).datas={},L(e,function(a,n){ey(a,n,r,t)})}function ey(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=bF,r.getLinkedDataAll=SF}var TF=(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){ie(e)&&(a=t,t=e,e=null),e=e||{},J(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})(),ty=(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,$(h)?h.length:1),i.push(c);var v=new TF(pt(c.name,""),n);f?CF(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=Vl(i,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new jt(l,t);return u.initData(i),a&&a(u),uM({mainData:u,struct:n,structAttr:"tree"}),n.update(),n},r})();function CF(r,e){var t=e.children;r.parentNode!==e&&(t.push(r),r.parentNode=e)}function _l(r,e,t){if(r&&be(e,r.type)>=0){var a=t.getData().tree.root,n=r.targetNode;if(J(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 fM(r){for(var e=[];r;)r=r.parentNode,r&&e.push(r);return e.reverse()}function ry(r,e){var t=fM(r);return be(t,e)>=0}function oh(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 AF=(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=ty.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=oh(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})(Xe);function DF(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 ms(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 MF(r,e){r.eachSeriesByType("tree",function(t){LF(t,e)})}function LF(r,e){var t=lF(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=fb(function(x,_){return(x.parentNode===_.parentNode?1:2)/x.depth})):(n=t.width,i=t.height,o=fb());var s=r.getData().tree.root,l=s.children[0];if(l){iF(s),DF(l,oF,o),s.hierNode.modifier=-l.hierNode.prelim,ms(l,sF);var u=l,c=l,f=l;ms(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),ms(l,function(x){g=(x.getLayout().x+v)*d,m=(x.depth-1)*p;var _=Rs(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),ms(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),ms(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 IF(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");H(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=Qm(i,e,void 0,a);n.setCenter&&n.setCenter(o.center),n.setZoom&&n.setZoom(o.zoom)})})}function kF(r){r.registerChartView(gF),r.registerSeriesModel(AF),r.registerLayout(MF),r.registerVisual(IF),PF(r)}var gb=["treemapZoomToNode","treemapRender","treemapMove"];function RF(r){for(var e=0;e<gb.length;e++)r.registerAction({type:gb[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=_l(t,s,i);if(l){var u=i.getViewRoot();u&&(t.direction=ry(u,l.node)?"rollUp":"drillDown"),i.resetViewRoot(l.node)}}})}function hM(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=Lp(r.ecModel,i.name||i.dataIndex+"",a);n.setVisual("decal",o)})}var EF=(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};vM(n);var i=t.levels||[],o=this.designatedVisualItemStyle={},s=new Ge({itemStyle:o},this,a);i=t.levels=NF(i,a);var l=U(i||[],function(f){return new Ge(f,s,a)},this),u=ty.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=oh(n,this),a.treePathInfo=a.treeAncestors,a},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},H(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var a=this._idIndexMap;a||(a=this._idIndexMap=ae(),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(){hM(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})(Xe);function vM(r){var e=0;L(r.children,function(a){vM(a);var n=a.value;$(n)&&(n=n[0]),e+=n});var t=r.value;$(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),$(r.value)?r.value[0]=t:r.value=t}function NF(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 OF=8,mb=8,$v=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),Yf(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+OF*2,t.emptyItemWidth);t.totalWidth+=s+mb,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=$N(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:zF(l,0,y,c,p===v.length-1,p===0)},style:oe(a.getItemStyle(),{lineJoin:"bevel"}),textContent:new Pe({style:Ye(i,{text:x})}),textConfig:{position:"inside"},z2:Bo*1e4,onclick:de(s,m)});_.disableLabelAnimation=!0,_.getTextContent().ensureState("emphasis").style=Ye(o,{text:x}),_.ensureState("emphasis").style=d,et(_,n.get("focus"),n.get("blurScope"),n.get("disabled")),this.group.add(_),VF(_,e,m),l+=y+mb}},r.prototype.remove=function(){this.group.removeAll()},r})();function zF(r,e,t,a,n,i){var o=[[n?r:r-$v,e],[r+t,e],[r+t,e+a],[n?r:r-$v,e+a]];return!i&&o.splice(2,0,[r+t+$v,e+a/2]),!n&&o.push([r,e+a/2]),o}function VF(r,e,t){fe(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&&oh(t,e)}}var FF=(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 GF(){return new FF}var rg=ue,yb=Le,xb=3,_b="label",bb="upperLabel",HF=Bo*10,jF=Bo*2,WF=Bo*3,Yn=_i([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),Sb=function(r){var e=Yn(r);return e.stroke=e.fill=e.lineWidth=null,e},af=Ie(),$F=(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=ys(),t}return e.prototype.render=function(t,a,n,i){var o=a.findComponents({mainType:"series",subType:"treemap",query:i});if(!(be(o,t)<0)){this.seriesModel=t,this.api=n,this.ecModel=a;var s=["treemapZoomToNode","treemapRootToNode"],l=_l(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 rg,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=ys(),l=ys(),u=this._storage,c=[];function f(y,x,_,b){return UF(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(C,D){!C.isRemoved()&&A(D,D)})):new Ia(x,y,w,w).add(A).update(A).remove(de(A,null)).execute();function w(C){return C.getId()}function A(C,D){var M=C!=null?y[C]: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=ys();return y&&L(y,function(_,b){var S=x[b];L(_,function(w){w&&(S.push(w),af(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=(ie(o)?0:o)||0,u=(ie(s)?null:s)||"cubicOut",c=GF();L(a.willDeleteEls,function(f,h){L(f,function(v,d){if(!v.invisible){var p=v.parent,g,m=af(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=H({},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(ee(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 Yl(t.getZr()),a.enable(this.seriesModel.get("roam")),n.zoomLimit=this.seriesModel.get("scaleLimit"),n.zoom=this.seriesModel.get("zoom"),a.on("pan",ee(this._onPan,this)),a.on("zoom",ee(this._onZoom,this)));var i=new xe(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)>xb||Math.abs(t.dy)>xb)){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 xe(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();sa(g,g,[-a,-n]),Ug(g,g,[d,d]),sa(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&&Gc(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"&&(ry(t.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=ys(),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})(We);function ys(){return{nodeGroup:[],background:[],content:[]}}function UF(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"]),A=h.getModel(["blur","itemStyle"]),C=h.getModel(["select","itemStyle"]),D=S.get("borderRadius")||0,M=Q("nodeGroup",rg);if(!M)return;if(l.add(M),M.x=c.x||0,M.y=c.y||0,M.markRedraw(),af(M).nodeWidth=v,af(M).nodeHeight=d,c.isAboveViewRoot)return M;var I=Q("background",yb,u,jF);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)sl(M)&&ai(M,!1),I&&(ai(I,!E),f.setItemGraphicEl(o.dataIndex,I),bp(I,B,R));else{var O=Q("content",yb,u,WF);O&&G(M,O),I.disableMorphing=!0,I&&sl(I)&&ai(I,!1),ai(M,!E),f.setItemGraphicEl(o.dataIndex,M);var V=h.getShallow("cursor");V&&O.attr("cursor",V),bp(M,B,R)}return M;function F(ne,te,W){var j=fe(te);if(j.dataIndex=o.dataIndex,j.seriesIndex=r.seriesIndex,te.setShape({x:0,y:0,width:v,height:d,r:D}),g)Y(te);else{te.invisible=!1;var K=o.getVisual("style"),Se=K.stroke,ye=Sb(S);ye.fill=Se;var we=Yn(w);we.fill=w.get("borderColor");var ve=Yn(A);ve.fill=A.get("borderColor");var Ve=Yn(C);if(Ve.fill=C.get("borderColor"),W){var ct=v-2*p;X(te,Se,K.opacity,{x:p,y:0,width:ct,height:_})}else te.removeTextContent();te.setStyle(ye),te.ensureState("emphasis").style=we,te.ensureState("blur").style=ve,te.ensureState("select").style=Ve,bi(te)}ne.add(te)}function G(ne,te){var W=fe(te);W.dataIndex=o.dataIndex,W.seriesIndex=r.seriesIndex;var j=Math.max(v-2*p,0),K=Math.max(d-2*p,0);if(te.culling=!0,te.setShape({x:p,y:p,width:j,height:K,r:D}),g)Y(te);else{te.invisible=!1;var Se=o.getVisual("style"),ye=Se.fill,we=Sb(S);we.fill=ye,we.decal=Se.decal;var ve=Yn(w),Ve=Yn(A),ct=Yn(C);X(te,ye,Se.opacity,null),te.setStyle(we),te.ensureState("emphasis").style=ve,te.ensureState("blur").style=Ve,te.ensureState("select").style=ct,bi(te)}ne.add(te)}function Y(ne){!ne.invisible&&i.push(ne)}function X(ne,te,W,j){var K=h.getModel(j?bb:_b),Se=pt(h.get("name"),null),ye=K.getShallow("show");Pt(ne,bt(h,j?bb:_b),{defaultText:ye?Se:null,inheritColor:te,defaultOpacity:W,labelFetcher:r,labelDataIndex:o.dataIndex});var we=ne.getTextContent();if(we){var ve=we.style,Ve=jg(ve.padding||0);j&&(ne.setTextConfig({layoutRect:j}),we.disableLabelLayout=!0),we.beforeUpdate=function(){var it=Math.max((j?j.width:ne.shape.width)-Ve[1]-Ve[3],0),wt=Math.max((j?j.height:ne.shape.height)-Ve[0]-Ve[2],0);(ve.width!==it||ve.height!==wt)&&we.setStyle({width:it,height:wt})},ve.truncateMinChar=2,ve.lineOverflow="truncate",q(ve,j,c);var ct=we.getState("emphasis");q(ct?ct.style:null,j,c)}}function q(ne,te,W){var j=ne?ne.text:null;if(!te&&W.isLeafRoot&&j!=null){var K=r.get("drillDownIcon",!0);ne.text=K?K+" "+j:j}}function Q(ne,te,W,j){var K=y!=null&&t[ne][y],Se=n[ne];return K?(t[ne][y]=null,pe(Se,K)):g||(K=new te,K instanceof Cr&&(K.z2=YF(W,j)),ce(Se,K)),e[ne][m]=K}function pe(ne,te){var W=ne[m]={};te instanceof rg?(W.oldX=te.x,W.oldY=te.y):W.oldShape=H({},te.shape)}function ce(ne,te){var W=ne[m]={},j=o.parentNode,K=te instanceof ue;if(j&&(!a||a.direction==="drillDown")){var Se=0,ye=0,we=n.background[j.getRawIndex()];!a&&we&&we.oldShape&&(Se=we.oldShape.width,ye=we.oldShape.height),K?(W.oldX=0,W.oldY=ye):W.oldShape={x:Se,y:ye,width:0,height:0}}W.fadein=!K}}function YF(r,e){return r*HF+e}var bl=L,XF=se,nf=-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=KF[t];var i=r.visualHandlers[a];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[t],t==="piecewise"?(Uv(n),ZF(n)):t==="category"?n.categories?qF(n):Uv(n,!0):($t(t!=="linear"||n.dataExtent),Uv(n))}return r.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},r.prototype.getNormalizer=function(){return ee(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=$(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&&bl(r.visualHandlers,function(n,i){e.hasOwnProperty(i)&&(t[i]=e[i],a=!0)}),a?t:null},r.prepareVisualTypes=function(e){if($(e))e=e.slice();else if(XF(e)){var t=[];bl(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||J(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(zu(f[1],e,c[1]))return o}else if(c[1]===1/0){if(zu(f[0],c[0],e))return o}else if(zu(f[0],c[0],e)&&zu(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:xs("color"),getColorMapper:function(){var e=this.option;return ee(e.mappingMethod==="category"?function(t,a){return!a&&(t=this._normalizeData(t)),Es.call(this,t)}:function(t,a,n){var i=!!n;return!a&&(t=this._normalizeData(t)),n=Ah(t,e.parsedVisual,n),i?n:wa(n,"rgba")},this)},_normalizedToVisual:{linear:function(e){return wa(Ah(e,this.option.parsedVisual),"rgba")},category:Es,piecewise:function(e,t){var a=ng.call(this,t);return a==null&&(a=wa(Ah(e,this.option.parsedVisual),"rgba")),a},fixed:Xn}},colorHue:Bu(function(e,t){return Vs(e,t)}),colorSaturation:Bu(function(e,t){return Vs(e,null,t)}),colorLightness:Bu(function(e,t){return Vs(e,null,null,t)}),colorAlpha:Bu(function(e,t){return Lc(e,t)}),decal:{applyVisual:xs("decal"),_normalizedToVisual:{linear:null,category:Es,piecewise:null,fixed:null}},opacity:{applyVisual:xs("opacity"),_normalizedToVisual:ag([0,1])},liftZ:{applyVisual:xs("liftZ"),_normalizedToVisual:{linear:Xn,category:Xn,piecewise:Xn,fixed:Xn}},symbol:{applyVisual:function(e,t,a){var n=this.mapValueToVisual(e);a("symbol",n)},_normalizedToVisual:{linear:wb,category:Es,piecewise:function(e,t){var a=ng.call(this,t);return a==null&&(a=wb.call(this,e)),a},fixed:Xn}},symbolSize:{applyVisual:xs("symbolSize"),_normalizedToVisual:ag([0,1])}},r})();function ZF(r){var e=r.pieceList;r.hasSpecialVisual=!1,L(e,function(t,a){t.originIndex=a,t.visual!=null&&(r.hasSpecialVisual=!0)})}function qF(r){var e=r.categories,t=r.categoryMap={},a=r.visual;if(bl(e,function(o,s){t[o]=s}),!$(a)){var n=[];se(a)?bl(a,function(o,s){var l=t[s];n[l??nf]=o}):n[nf]=a,a=dM(r,n)}for(var i=e.length-1;i>=0;i--)a[i]==null&&(delete t[e[i]],e.pop())}function Uv(r,e){var t=r.visual,a=[];se(t)?bl(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]),dM(r,a)}function Bu(r){return{applyVisual:function(e,t,a){var n=this.mapValueToVisual(e);a("color",r(t("color"),n))},_normalizedToVisual:ag([0,1])}}function wb(r){var e=this.option.visual;return e[Math.round(Fe(r,[0,1],[0,e.length-1],!0))]||{}}function xs(r){return function(e,t,a){a(r,this.mapValueToVisual(e))}}function Es(r){var e=this.option.visual;return e[this.option.loop&&r!==nf?r%e.length:r]}function Xn(){return this.option.visual[0]}function ag(r){return{linear:function(e){return Fe(e,r,this.option.visual,!0)},category:Es,piecewise:function(e,t){var a=ng.call(this,t);return a==null&&(a=Fe(e,r,this.option.visual,!0)),a},fixed:Xn}}function ng(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 dM(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 KF={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??nf},fixed:nt};function zu(r,e,t){return r?e<=t:e<t}var JF="itemStyle",pM=Ie();const QF={seriesType:"treemap",reset:function(r){var e=r.getData().tree,t=e.root;t.isRemoved()||gM(t,{},r.getViewRoot().getAncestors(),r)}};function gM(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(JF),l=eG(s,e,a),u=o.ensureUniqueItemVisual(r.dataIndex,"style"),c=s.get("borderColor"),f=s.get("borderColorSaturation"),h;f!=null&&(h=Tb(l),c=tG(f,h)),u.stroke=c;var v=r.viewChildren;if(!v||!v.length)h=Tb(l),u.fill=h;else{var d=rG(r,n,i,s,l,v);L(v,function(p,g){if(p.depth>=t.length||p===t[p.depth]){var m=aG(n,l,p,g,d,a);gM(p,m,t,a)}})}}}function eG(r,e,t){var a=H({},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 Tb(r){var e=Yv(r,"color");if(e){var t=Yv(r,"colorAlpha"),a=Yv(r,"colorSaturation");return a&&(e=Vs(e,null,null,a)),t&&(e=Lc(e,t)),e}}function tG(r,e){return e!=null?Vs(e,null,null,r):null}function Yv(r,e){var t=r[e];if(t!=null&&t!=="none")return t}function rG(r,e,t,a,n,i){if(!(!i||!i.length)){var o=Xv(e,"color")||n.color!=null&&n.color!=="none"&&(Xv(e,"colorAlpha")||Xv(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 pM(h).drColorMappingBy=c,h}}}function Xv(r,e){var t=r.get(e);return $(t)&&t.length?{name:e,range:t}:null}function aG(r,e,t,a,n,i){var o=H({},e);if(n){var s=n.type,l=s==="color"&&pM(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 Sl=Math.max,of=Math.min,Cb=Ct,ay=L,mM=["itemStyle","borderWidth"],nG=["itemStyle","gapWidth"],iG=["upperLabel","show"],oG=["upperLabel","height"];const sG={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=Z(Cb(s.width,l[0]),n),c=Z(Cb(s.height,l[1]),i),f=a&&a.type,h=["treemapZoomToNode","treemapRootToNode"],v=_l(a,h,r),d=f==="treemapRender"||f==="treemapMove"?a.rootRect:null,p=r.getViewRoot(),g=fM(p);if(f!=="treemapMove"){var m=f==="treemapZoomToNode"?vG(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(_),yM(p,x,!1,0),_=p.getLayout(),ay(g,function(S,w){var A=(g[w+1]||p).getValue();S.setLayout(H({dataExtent:[A,A],borderWidth:0,upperHeight:0},_))})}var b=r.getData().tree.root;b.setLayout(dG(s,d,v),!0),r.setLayoutInfo(s),xM(b,new xe(-s.x,-s.y,n,i),g,p,0)}};function yM(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(mM),u=s.get(nG)/2,c=_M(s),f=Math.max(l,c),h=l-u,v=f-u;r.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:c},!0),n=Sl(n-2*h,0),i=Sl(i-h-v,0);var d=n*i,p=lG(r,s,d,e,t,a);if(p.length){var g={x:h,y:v,width:n,height:i},m=of(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=hG(x,m,e.squareRatio);w<=y?(_++,y=w):(x.area-=x.pop().getLayout().area,Ab(x,m,g,u,!1),m=of(g.width,g.height),x.length=x.area=0,y=1/0)}if(x.length&&Ab(x,m,g,u,!0),!t){var A=s.get("childrenVisibleMin");A!=null&&d<A&&(t=!0)}for(var _=0,b=p.length;_<b;_++)yM(p[_],e,t,a+1)}}}function lG(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()}),cG(o,s);var u=fG(e,o,s);if(u.sum===0)return r.viewChildren=[];if(u.sum=uG(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 uG(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 cG(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 fG(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],ay(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 hG(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?Sl(u*a/l,l/(u*n)):1/0}function Ab(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]]=Sl(c-2*a,0),m=t[s[i]]+t[l[i]]-u,y=f===h-1||m<p?m:p,x=d[l[i]]=Sl(y-2*a,0);d[s[o]]=t[s[o]]+of(a,g/2),d[s[i]]=u+of(a,x/2),u+=y,v.setLayout(d,!0)}t[s[o]]+=c,t[l[o]]-=c}function vG(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(mM),m=Math.max(g,_M(p));u+=4*g*g+(3*g+m)*Math.pow(u,.5),u>z0&&(u=z0),i=s}u<l&&(u=l);var y=Math.pow(u/l,.5);return[a*y,n*y]}function dG(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 xM(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 xe(e.x-i.x,e.y-i.y,e.width,e.height);ay(r.viewChildren||[],function(u){xM(u,l,t,a,n+1)})}}function _M(r){return r.get(iG)?r.get(oG):0}function pG(r){r.registerSeriesModel(EF),r.registerChartView($F),r.registerVisual(QF),r.registerLayout(sG),RF(r)}function gG(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 mG(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){J(l)&&(l=i["ec-"+l]);var u=a.getItemVisual(l,"style"),c=n.ensureUniqueItemVisual(o,"style");H(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 Vu(r){return r instanceof Array||(r=[r,r]),r}function yG(r){r.eachSeriesByType("graph",function(e){var t=e.getGraph(),a=e.getEdgeData(),n=Vu(e.get("edgeSymbol")),i=Vu(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=Vu(s.getShallow("symbol",!0)),c=Vu(s.getShallow("symbolSize",!0)),f=s.getModel("lineStyle").getLineStyle(),h=a.ensureUniqueItemVisual(o,"style");switch(H(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 ig="-->",sh=function(r){return r.get("autoCurveness")||null},bM=function(r,e){var t=sh(r),a=20,n=[];if(ke(t))a=t;else if($(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},wl=function(r,e,t){var a=[r.id,r.dataIndex].join("."),n=[e.id,e.dataIndex].join(".");return[t.uid,a,n].join(ig)},SM=function(r){var e=r.split(ig);return[e[0],e[2],e[1]].join(ig)},xG=function(r,e){var t=wl(r.node1,r.node2,e);return e.__edgeMap[t]},_G=function(r,e){var t=og(wl(r.node1,r.node2,e),e),a=og(wl(r.node2,r.node1,e),e);return t+a},og=function(r,e){var t=e.__edgeMap;return t[r]?t[r].length:0};function bG(r){sh(r)&&(r.__curvenessList=[],r.__edgeMap={},bM(r))}function SG(r,e,t,a){if(sh(t)){var n=wl(r,e,t),i=t.__edgeMap,o=i[SM(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 ny(r,e,t,a){var n=sh(e),i=$(n);if(!n)return null;var o=xG(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=_G(r,e);bM(e,u),r.lineStyle=r.lineStyle||{};var c=wl(r.node1,r.node2,e),f=e.__curvenessList,h=i||u%2?0:1;if(o.isForward)return f[h+s];var v=SM(c),d=og(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 wM(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")])}),iy(t,r)}}function iy(r,e){r.eachEdge(function(t,a){var n=na(t.getModel().get(["lineStyle","curveness"]),-ny(t,e,a,!0),0),i=ba(t.node1.getLayout()),o=ba(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 wG(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])}iy(i.graph,t)}else(!a||a==="none")&&wM(t)})}function Ns(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 Os(r){var e=r.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var Db=Math.PI,Zv=[];function oy(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];Eo(p,p),rc(p,p,c),t.setLayout([l+p[0],u+p[1]],!0);var g=r.get(["circular","rotateLabel"]);TM(t,g,l,u)}TG[e](r,s,o,c,l,u,f),s.eachEdge(function(m,y){var x=na(m.getModel().get(["lineStyle","curveness"]),ny(m,r,y),0),_=ba(m.node1.getLayout()),b=ba(m.node2.getLayout()),S,w=(_[0]+b[0])/2,A=(_[1]+b[1])/2;+x&&(x*=3,S=[l*x+w*(1-x),u*x+A*(1-x)]),m.setLayout([_,b,S])})}}}var TG={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;Zv.length=o;var l=Ns(r);e.eachNode(function(f){var h=Os(f);isNaN(h)&&(h=2),h<0&&(h=0),h*=l;var v=Math.asin(h/2/a);isNaN(v)&&(v=Db/2),Zv[f.dataIndex]=v,s+=v*2});var u=(2*Db-s)/o/2,c=0;e.eachNode(function(f){var h=u+Zv[f.dataIndex];c+=h,(!f.getLayout()||!f.getLayout().fixed)&&f.setLayout([a*Math.cos(c)+n,a*Math.sin(c)+i]),c+=h})}};function TM(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");H(h.textConfig||(h.textConfig={}),{position:f})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function CG(r){r.eachSeriesByType("graph",function(e){e.get("layout")==="circular"&&oy(e,"symbolSize")})}var qi=Ud;function AG(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=Ci(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),f.pp=ba(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;ti(m,S.p,b.p);var w=Yd(m)-_.d,A=S.w/(b.w+S.w);isNaN(A)&&(A=0),Eo(m,m),!b.fixed&&qi(b.p,b.p,m,A*w*v),!S.fixed&&qi(S.p,S.p,m,-(1-A)*w*v)}}for(var x=0;x<y;x++){var C=a[x];C.fixed||(ti(m,l,C.p),qi(C.p,C.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];ti(m,S.p,b.p);var w=Yd(m);w===0&&(e5(m,Math.random()-.5,Math.random()-.5),w=1);var M=(b.rep+S.rep)/w/w;!b.fixed&&qi(b.pp,b.pp,m,M),!S.fixed&&qi(S.pp,S.pp,m,-M)}for(var I=[],x=0;x<y;x++){var C=a[x];C.fixed||(ti(I,C.p,C.pp),qi(C.p,C.p,I,v),Vt(C.pp,C.p))}v=v*.992;var P=v<.01;p&&p(a,n,P),g&&g(P)}}}function DG(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"?wM(e):l==="circular"&&oy(e,"value");var u=i.getDataExtent("value"),c=o.getDataExtent("value"),f=s.get("repulsion"),h=s.get("edgeLength"),v=$(f)?f:[f,f],d=$(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(),A=na(b.getModel().get(["lineStyle","curveness"]),-ny(b,e,_,!0),0);return{n1:p[b.node1.dataIndex],n2:p[b.node2.dataIndex],d:S,curveness:A,ignoreForceLayout:w.get("ignoreForceLayout")}}),m=t.getBoundingRect(),y=AG(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 A=_[S],C=n.getEdgeByIndex(S),D=A.n1.p,M=A.n2.p,I=C.getLayout();I=I?I.slice():[],I[0]=I[0]||[],I[1]=I[1]||[],Vt(I[0],D),Vt(I[1],M),+A.curveness&&(I[2]=[(D[0]+M[0])/2-(D[1]-M[1])*A.curveness,(D[1]+M[1])/2-(M[0]-D[0])*A.curveness]),C.setLayout(I)}}),e.forceLayout=y,e.preservedPoints=a,y.step()}else e.forceLayout=null})}function MG(r,e,t){var a=H(r.getBoxLayoutParams(),{aspect:t});return gt(a,{width:e.getWidth(),height:e.getHeight()})}function LG(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=[];Ef(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=MG(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 Xl;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 Mb=yt.prototype,qv=Rl.prototype,CM=(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})(CM);function Kv(r){return isNaN(+r.cpx1)||isNaN(+r.cpy1)}var IG=(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 CM},e.prototype.buildPath=function(t,a){Kv(a)?Mb.buildPath.call(this,t,a):qv.buildPath.call(this,t,a)},e.prototype.pointAt=function(t){return Kv(this.shape)?Mb.pointAt.call(this,t):qv.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var a=this.shape,n=Kv(a)?[a.x2-a.x1,a.y2-a.y1]:qv.tangentAt.call(this,t);return Eo(n,n)},e})(Ce),Jv=["fromSymbol","toSymbol"];function Lb(r){return"_"+r+"Type"}function Ib(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=Uo(n),u=Li(o||0,l);return a+l+u+(i||"")+(s||"")}function Pb(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=Uo(n),u=Li(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 IG({name:"line",subPixelOptimize:!0});return sg(e.shape,r),e}function sg(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 sy=(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(Jv,function(l){var u=Pb(l,t,a);this.add(u),this[Lb(l)]=Ib(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:{}};sg(l.shape,s),Re(o,l,i,a),L(Jv,function(u){var c=Ib(u,t,a),f=Lb(u);if(this[f]!==c){this.remove(this.childOfName(u));var h=Pb(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(Jv,function(S){var w=this.childOfName(S);if(w){w.setColor(m),w.style.opacity=g.opacity;for(var A=0;A<Ut.length;A++){var C=Ut[A],D=o.getState(C);if(D){var M=D.style||{},I=w.ensureState(C),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");$(b)||(b=[b,b]),x.__labelDistance=b}this.setTextConfig({position:null,local:!0,inside:!1}),et(this,h,v,f)},e.prototype.highlight=function(){Ma(this)},e.prototype.downplay=function(){La(this)},e.prototype.updateLayout=function(t,a){this.setLinePoints(t.getItemLayout(a))},e.prototype.setLinePoints=function(t){var a=this.childOfName("line");sg(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=ti([],f,c);Eo(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 A=-Math.atan2(_[1],_[0]);f[0]<c[0]&&(A=Math.PI+A),i.rotation=A}var C=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":C=-y,p="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":C=y,p="top";break;default:C=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]+C,d=_[0]<0?"right":"left",i.originX=-m*w,i.originY=-C;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=S[0],i.y=S[1]+C,d="center",i.originY=-C;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-m*w+f[0],i.y=f[1]+C,d=_[0]>=0?"right":"left",i.originX=m*w,i.originY=-C;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||p,align:i.__align||d})}},e})(ue),ly=(function(){function r(e){this.group=new ue,this._LineCtor=e||sy}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=kb(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=kb(e),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function a(s){!s.isGroup&&!kG(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var n=e.start;n<e.end;n++){var i=t.getItemLayout(n);if(Qv(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){xn(this._progressiveEls||this.group,e)},r.prototype._doAdd=function(e,t,a){var n=e.getItemLayout(t);if(Qv(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(!Qv(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 kG(r){return r.animators&&r.animators.length>0}function kb(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 Rb(r){return isNaN(r[0])||isNaN(r[1])}function Qv(r){return r&&!Rb(r[0])&&!Rb(r[1])}var ed=[],td=[],rd=[],Ki=Tt,ad=ui,Eb=Math.abs;function Nb(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){ed[0]=Ki(a[0],n[0],i[0],c),ed[1]=Ki(a[1],n[1],i[1],c);var f=Eb(ad(ed,e)-l);f<o&&(o=f,s=c)}for(var h=0;h<32;h++){var v=s+u;td[0]=Ki(a[0],n[0],i[0],s),td[1]=Ki(a[1],n[1],i[1],s),rd[0]=Ki(a[0],n[0],i[0],v),rd[1]=Ki(a[1],n[1],i[1],v);var f=ad(td,e)-l;if(Eb(f)<.01)break;var d=ad(rd,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 nd(r,e){var t=[],a=tl,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=[ba(u[0]),ba(u[1])],u[2]&&u.__original.push(ba(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=Os(s.node1),d=Nb(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=Os(s.node2),d=Nb(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]),ti(o,i[1],i[0]),Eo(o,o),c&&c!=="none"){var v=Os(s.node1);Ud(i[0],i[0],o,v*e)}if(f&&f!=="none"){var v=Os(s.node2);Ud(i[1],i[1],o,-v*e)}Vt(u[0],i[0]),Vt(u[1],i[1])}})}function Ob(r){return r.type==="view"}var RG=(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 Hl,i=new ly,o=this.group;this._controller=new Yl(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(Ob(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):Re(u,c,t)}nd(t.getGraph(),Ns(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(C){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),oy(t,"symbolSize",x,[C.offsetX,C.offsetY]),i.updateLayout(t);break;default:f.setItemLayout(_,[b.x,b.y]),iy(t.getGraph(),t),i.updateLayout(t);break}}).on("dragend",function(){v&&v.setUnfixed(_)}),b.setDraggable(w,!!S.get("cursor"));var A=S.get(["emphasis","focus"]);A==="adjacency"&&(fe(b).focus=x.getAdjacentDataIndices())}}),f.graph.eachEdge(function(x){var _=x.getGraphicEl(),b=x.getModel().get(["emphasis","focus"]);_&&b==="adjacency"&&(fe(_).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){TM(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)&&!nh(u,n,t)}),!Ob(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){qm(s,u.dx,u.dy),n.dispatchAction({seriesId:t.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){Km(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(),nd(t.getGraph(),Ns(t)),i._lineDraw.updateLayout(),n.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,a=t.getData(),n=Ns(t);a.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(n)})},e.prototype.updateLayout=function(t){nd(t.getGraph(),Ns(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})(We);function Ji(r){return"_EC_"+r}var EG=(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[Ji(e)]){var n=new Zn(e,t);return n.hostGraph=this,this.nodes.push(n),a[Ji(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[Ji(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 Zn||(e=n[Ji(e)]),t instanceof Zn||(t=n[Ji(t)]),!(!e||!t)){var o=e.id+"-"+t.id,s=new AM(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 Zn&&(e=e.id),t instanceof Zn&&(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 Zn||(t=this._nodesMap[Ji(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})(),Zn=(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=ae(),t=ae(),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})(),AM=(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=ae(),t=ae();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 DM(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(Zn,DM("hostGraph","data"));ut(AM,DM("hostGraph","edgeData"));function MM(r,e,t,a,n){for(var i=new EG(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=Oa(r,t);else{var p=Bl.get(v),g=p?p.dimensions||[]:[];be(g,"value")<0&&g.concat(["value"]);var m=Vl(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),uM({mainData:d,struct:i,structAttr:"graph",datas:{node:d,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var NG=(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 Ul(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),yi(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){bG(this);var s=MM(i,n,this,!0,l);return L(s.edges,function(u){SG(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=JC({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:H({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})(Xe),OG={type:"graphRoam",event:"graphRoam",update:"none"};function BG(r){r.registerChartView(RG),r.registerSeriesModel(NG),r.registerProcessor(gG),r.registerVisual(mG),r.registerVisual(yG),r.registerLayout(wG),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,CG),r.registerLayout(DG),r.registerCoordinateSystem("graphView",{dimensions:Xl.dimensions,create:LG}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},nt),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},nt),r.registerAction(OG,function(e,t,a){t.eachComponent({mainType:"series",query:e},function(n){var i=n.coordinateSystem,o=Qm(i,e,void 0,a);n.setCenter&&n.setCenter(o.center),n.setZoom&&n.setZoom(o.zoom)})})}var zG=(function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r})(),VG=(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 zG},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 FG(r,e){var t=r.get("center"),a=e.getWidth(),n=e.getHeight(),i=Math.min(a,n),o=Z(t[0],e.getWidth()),s=Z(t[1],e.getHeight()),l=Z(r.get("radius"),i/2);return{cx:o,cy:s,r:l}}function Fu(r,e){var t=r==null?"":r+"";return e&&(J(e)?t=e.replace("{value}",t):ie(e)&&(t=e(r))),t}var GG=(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=FG(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?ef:Yt,d=f.get("show"),p=f.getModel("lineStyle"),g=p.get("width"),m=[u,c];tm(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(C){return s.add(C)});var A=function(C){if(C<=0)return i[0][1];var D;for(D=0;D<i.length;D++)if(i[D][0]>=C&&(D===0?0:i[D-1][0])<C)return i[D][1];return i[D-1][1]};this._renderTicks(t,a,n,A,o,u,c,l,g),this._renderTitleAndDetail(t,a,n,A,o),this._renderAnchor(t,o),this._renderPointer(t,a,n,A,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=Z(m.get("length"),d),w=Z(y.get("length"),d),A=s,C=(l-s)/_,D=C/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(A),R=Math.sin(A),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=Fu(tt(E/_*(g-p)+p),x.get("formatter")),F=i(E/_),G=k*(d-S-B)+h,Y=R*(d-S-B)+v,X=x.get("rotate"),q=0;X==="radial"?(q=-A+2*Math.PI,q>Math.PI/2&&(q+=Math.PI)):X==="tangential"?q=-A-Math.PI/2:ke(X)&&(q=X*Math.PI/180),q===0?f.add(new Pe({style:Ye(x,{text:V,x:G,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:Ye(x,{text:V,x:G,y:Y,verticalAlign:"middle",align:"center"},{inheritColor:F}),silent:!0,originX:G,originY:Y,rotation:q}))}if(y.get("show")&&E!==_){var B=y.get("distance");B=B?B+c:c;for(var Q=0;Q<=b;Q++){k=Math.cos(A),R=Math.sin(A);var pe=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"&&pe.setStyle({stroke:i((E+Q/b)/_)}),f.add(pe),A+=D}A-=D}else A+=C}},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 A(D,M){var I=y.getItemModel(D),P=I.getModel("pointer"),k=Z(P.get("width"),o.r),R=Z(P.get("length"),o.r),E=t.get(["pointer","icon"]),B=P.get("offsetCenter"),O=Z(B[0],o.r),V=Z(B[1],o.r),F=P.get("keepAspect"),G;return E?G=lt(E,O-k/2,V-R,k,R,null,F):G=new VG({shape:{angle:-Math.PI/2,width:k,r:R,x:O,y:V}}),G.rotation=-(M+Math.PI/2),G.x=o.cx,G.y=o.cy,G}function C(D,M){var I=g.get("roundCap"),P=I?ef: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=A(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=C(D,s),k=g.get("clip");Je(P,{shape:{endAngle:Fe(M,S,w,k)}},t),f.add(P),yp(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=A(D,k);R.rotation=k,Re(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=C(D,B),V=g.get("clip");Re(O,{shape:{endAngle:Fe(I,S,w,V)}},t),f.add(O),yp(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(H({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+Z(l[0],a.r),a.cy-o/2+Z(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"),A=o.cx+Z(w[0],o.r),C=o.cy+Z(w[1],o.r),D=v[m];D.attr({z2:g?0:2,style:Ye(S,{x:A,y:C,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+Z(I[0],o.r),k=o.cy+Z(I[1],o.r),R=Z(M.get("width"),o.r),E=Z(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:Ye(M,{x:P,y:k,text:Fu(x,O),width:isNaN(R)?null:R,height:isNaN(E)?null:E,align:"center",verticalAlign:"middle"},{inheritColor:B})}),rC(D,{normal:M},x,function(F){return Fu(F,O)}),p&&aC(D,m,l,t,{getFormattedLabel:function(F,G,Y,X,q,Q){return Fu(Q?Q.interpolatedValue:x,O)}}),_.add(D)}h.add(_)}),this.group.add(h),this._titleEls=v,this._detailEls=d},e.type="gauge",e})(We),HG=(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 Xo(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})(Xe);function jG(r){r.registerChartView(GG),r.registerSeriesModel(HG)}var WG=["itemStyle","opacity"],$G=(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(WG);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)):Re(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 me(v[0][0],v[0][1]):null},Re(o,{style:{x:c.x,y:c.y}},s,a),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),Vm(n,Fm(l),{stroke:h})},e})(Xt),UG=(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 $G(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);ll(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})(We),YG=(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 Ul(ee(this.getData,this),ee(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,a){return Xo(this,{coordDimensions:["value"],encodeDefaulter:de(ym,this)})},e.prototype._defaultLabelLine=function(t){yi(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})(Xe);function XG(r,e){return gt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function ZG(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 ie(e)?n.sort(e):e!=="none"&&n.sort(function(l,u){return i?a[l]-a[u]:a[u]-a[l]}),n}function qG(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 KG(r,e){r.eachSeriesByType("funnel",function(t){var a=t.getData(),n=a.mapDimension("value"),i=t.get("sort"),o=XG(t,e),s=t.get("orient"),l=o.width,u=o.height,c=ZG(a,i),f=o.x,h=o.y,v=s==="horizontal"?[Z(t.get("minSize"),u),Z(t.get("maxSize"),u)]:[Z(t.get("minSize"),l),Z(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),G;switch(m){case"left":G=f;break;case"center":G=f+(l-F)/2;break;case"right":G=f+l-F;break}return[[G,R],[G+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],A=c[S+1],C=a.getItemModel(w);if(s==="horizontal"){var D=C.get(["itemStyle","width"]);D==null?D=_:(D=Z(D,l),i==="ascending"&&(D=-D));var M=b(w,f),I=b(A,f+D);f+=D+y,a.setItemLayout(w,{points:M.concat(I.slice().reverse())})}else{var P=C.get(["itemStyle","height"]);P==null?P=_:(P=Z(P,u),i==="ascending"&&(P=-P));var M=b(w,h),I=b(A,h+P);h+=P+y,a.setItemLayout(w,{points:M.concat(I.slice().reverse())})}}qG(a)})}function JG(r){r.registerChartView(UG),r.registerSeriesModel(YG),r.registerLayout(KG),r.registerProcessor($l("funnel"))}var QG=.3,e8=(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=zb(t);s.diff(l).add(h).update(v).remove(d).execute();function h(g){var m=Bb(s,o,g,c,u);id(m,s,g,f)}function v(g,m){var y=l.getItemGraphicEl(m),x=LM(s,g,c,u);s.setItemGraphicEl(g,y),Re(y,{shape:{points:x}},t,g),Gr(y),id(y,s,g,f)}function d(g){var m=l.getItemGraphicEl(g);o.remove(m)}if(!this._initialized){this._initialized=!0;var p=t8(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=zb(a),u=this._progressiveEls=[],c=t.start;c<t.end;c++){var f=Bb(i,this._dataGroup,c,s,o);f.incremental=!0,id(f,i,c,l),u.push(f)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e})(We);function t8(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 LM(r,e,t,a){for(var n=[],i=0;i<t.length;i++){var o=t[i],s=r.get(r.mapDimension(o),e);r8(s,a.getAxis(o).type)||n.push(a.dataToPoint(s,o))}return n}function Bb(r,e,t,a,n){var i=LM(r,t,a,n),o=new Zt({shape:{points:i},z2:10});return e.add(o),r.setItemGraphicEl(t,o),o}function zb(r){var e=r.get("smooth",!0);return e===!0&&(e=QG),e=Da(e),Qs(e)&&(e=0),{smooth:e}}function id(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 r8(r,e){return e==="category"?r==null:r==null||isNaN(r)}var a8=(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 Oa(null,this,{useEncodeDefaulter:ee(n8,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})(Xe);function n8(r){var e=r.ecModel.getComponent("parallel",r.get("parallelIndex"));if(e){var t={};return L(e.dimensions,function(a){var n=i8(a);t[a]=n}),t}}function i8(r){return+r.replace("dim","")}var o8=["lineStyle","opacity"],s8={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(o8,!0);u!=null&&(l=u)}var c=i.ensureUniqueItemVisual(s,"style");c.opacity=l},n.start,n.end)}}}};function l8(r){u8(r),c8(r)}function u8(r){if(!r.parallel){var e=!1;L(r.series,function(t){t&&t.type==="parallel"&&(e=!0)}),e&&(r.parallel=[{}])}}function c8(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&&ge(t,n.parallelAxisDefault,!1)}})}var f8=5,h8=(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(v8,function(i,o){n.getZr().on(o,this._handlers[o]=ee(i,this))},this)),$o(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,a){hl(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(H({type:"parallelAxisExpand"},t))},e.type="parallel",e})(Qe),v8={mousedown:function(r){od(this,"click")&&(this._mouseDownPoint=[r.offsetX,r.offsetY])},mouseup:function(r){var e=this._mouseDownPoint;if(od(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>f8)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||!od(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 od(r,e){var t=r._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}var d8=(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&&ge(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),p8=(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 Ri(r,e,t,a,n,i){r=r||0;var o=t[1]-t[0];if(n!=null&&(n=Qi(n,[0,o])),i!=null&&(i=Math.max(i,n??0)),a==="all"){var s=Math.abs(e[1]-e[0]);s=Qi(s,[0,o]),n=i=Qi(s,[n,i]),a=0}e[0]=Qi(e[0],t),e[1]=Qi(e[1],t);var l=sd(e,a);e[a]+=r;var u=n||0,c=t.slice();l.sign<0?c[0]+=u:c[1]-=u,e[a]=Qi(e[a],c);var f;return f=sd(e,a),n!=null&&(f.sign!==l.sign||f.span<n)&&(e[1-a]=e[a]+l.sign*n),f=sd(e,a),i!=null&&f.span>i&&(e[1-a]=e[a]+f.sign*i),e}function sd(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 Qi(r,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,r))}var ld=L,IM=Math.min,PM=Math.max,Vb=Math.floor,g8=Math.ceil,Fb=tt,m8=Math.PI,y8=(function(){function r(e,t,a){this.type="parallel",this._axesMap=ae(),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;ld(n,function(o,s){var l=i[s],u=t.getComponent("parallelAxis",l),c=this._axesMap.set(o,new p8(o,rh(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();ld(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(n,n.mapDimension(i)),Do(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=Gu(e.get("axisExpandWidth"),l),f=Gu(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=Gu(v[1]-v[0],l),v[1]=v[0]+d;else{d=Gu(c*(f-1),l);var p=e.get("axisExpandCenter")||Vb(u/2);v=[c*p-d/2],v[1]=v[0]+d}var g=(s-d)/(u-f);g<3&&(g=0);var m=[Vb(Fb(v[0]/c,1))+1,g8(Fb(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])}),ld(a,function(o,s){var l=(n.axisExpandable?_8:x8)(s,n),u={horizontal:{x:l.position,y:n.axisLength},vertical:{x:0,y:l.position}},c={horizontal:m8/2,vertical:0},f=[u[i].x+e.x,u[i].y+e.y],h=c[i],v=or();Ai(v,v,h),sa(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?Ri(l,n,o,"all"):u="none";else{var v=n[1]-n[0],d=o[1]*s/v;n=[PM(0,d-v/2)],n[1]=IM(o[1],n[0]+v),n[0]=n[1]-v}return{axisExpandWindow:n,behavior:u}},r})();function Gu(r,e){return IM(PM(r,e[0]),e[1])}function x8(r,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*r,axisNameAvailableWidth:t,axisLabelShow:!0}}function _8(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 b8(r,e){var t=[];return r.eachComponent("parallel",function(a,n){var i=new y8(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 S8={create:b8},lg=(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 _i([["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(lg,Fl);var wi=!0,Tl=Math.min,Io=Math.max,w8=Math.pow,T8=1e4,C8=6,A8=6,Gb="globalPan",D8={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},M8={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},Hb={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},L8=0,uy=(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_"+L8++,L(O8,function(n,i){this._handlers[i]=ee(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||x6(a,Gb,this._uid),L(this._handlers,function(n,i){a.on(i,n)}),this._brushType=t.brushType,this._brushOption=ge(le(Hb),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;_6(t,Gb,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 ge(le(Hb),h,!0)});var a="\0-brush-index-",n=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new Ia(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]):RM(o,kM(o,d));cy(o,p)}}function f(h){n[h]!==s&&o.group.remove(n[h])}},e.prototype.unmount=function(){return this.enableBrush(!1),ug(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e})(Ar);function kM(r,e){var t=lh[e.brushType].createCover(r,e);return t.__brushOption=e,NM(t,e),r.group.add(t),t}function RM(r,e){var t=fy(e);return t.endCreating&&(t.endCreating(r,e),NM(e,e.__brushOption)),e}function EM(r,e){var t=e.__brushOption;fy(e).updateCoverShape(r,e,t.range,t)}function NM(r,e){var t=e.z;t==null&&(t=T8),r.traverse(function(a){a.z=t,a.z2=t})}function cy(r,e){fy(e).updateCommon(r,e),EM(r,e)}function fy(r){return lh[r.__brushOption.brushType]}function hy(r,e,t){var a=r._panels;if(!a)return wi;var n,i=r._transform;return L(a,function(o){o.isTargetByCursor(e,t,i)&&(n=o)}),n}function OM(r,e){var t=r._panels;if(!t)return wi;var a=e.__brushOption.panelId;return a!=null?t[a]:wi}function ug(r){var e=r._covers,t=e.length;return L(e,function(a){r.group.remove(a)},r),e.length=0,!!t}function Ti(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 I8(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=w8(n*n+i*i,.5);return o>C8}function BM(r){var e=r.length-1;return e<0&&(e=0),[r[0],r[e]]}function zM(r,e,t,a){var n=new ue;return n.add(new Le({name:"main",style:vy(t),silent:!0,draggable:!0,cursor:"move",drift:de(jb,r,e,n,["n","s","w","e"]),ondragend:de(Ti,e,{isEnd:!0})})),L(a,function(i){n.add(new Le({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:de(jb,r,e,n,i),ondragend:de(Ti,e,{isEnd:!0})}))}),n}function VM(r,e,t,a){var n=a.brushStyle.lineWidth||0,i=Io(n,A8),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;ga(r,e,"main",o,s,d,p),a.transformable&&(ga(r,e,"w",l,u,i,m),ga(r,e,"e",h,u,i,m),ga(r,e,"n",l,u,g,i),ga(r,e,"s",l,v,g,i),ga(r,e,"nw",l,u,i,i),ga(r,e,"ne",h,u,i,i),ga(r,e,"sw",l,v,i,i),ga(r,e,"se",h,v,i,i))}function cg(r,e){var t=e.__brushOption,a=t.transformable,n=e.childAt(0);n.useStyle(vy(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?fg(r,i[0]):k8(r,i);o&&o.attr({silent:!a,invisible:!a,cursor:a?M8[s]+"-resize":null})})}function ga(r,e,t,a,n,i,o){var s=e.childOfName(t);s&&s.setShape(E8(dy(r,e,[[a,n],[a+i,n+o]])))}function vy(r){return oe({strokeNoScale:!0},r.brushStyle)}function FM(r,e,t,a){var n=[Tl(r,t),Tl(e,a)],i=[Io(r,t),Io(e,a)];return[[n[0],i[0]],[n[1],i[1]]]}function P8(r){return di(r.group)}function fg(r,e){var t={w:"left",e:"right",n:"top",s:"bottom"},a={left:"w",right:"e",top:"n",bottom:"s"},n=Ff(t[e],P8(r));return a[n]}function k8(r,e){var t=[fg(r,e[0]),fg(r,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function jb(r,e,t,a,n,i){var o=t.__brushOption,s=r.toRectRange(o.range),l=GM(e,n,i);L(a,function(u){var c=D8[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=r.fromRectRange(FM(s[0][0],s[1][0],s[0][1],s[1][1])),cy(e,t),Ti(e,{isEnd:!1})}function R8(r,e,t,a){var n=e.__brushOption.range,i=GM(r,t,a);L(n,function(o){o[0]+=i[0],o[1]+=i[1]}),cy(r,e),Ti(r,{isEnd:!1})}function GM(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 dy(r,e,t){var a=OM(r,e);return a&&a!==wi?a.clipPath(t,r._transform):le(t)}function E8(r){var e=Tl(r[0][0],r[1][0]),t=Tl(r[0][1],r[1][1]),a=Io(r[0][0],r[1][0]),n=Io(r[0][1],r[1][1]);return{x:e,y:t,width:a-e,height:n-t}}function N8(r,e,t){if(!(!r._brushType||B8(r,e.offsetX,e.offsetY))){var a=r._zr,n=r._covers,i=hy(r,e,t);if(!r._dragging)for(var o=0;o<n.length;o++){var s=n[o].__brushOption;if(i&&(i===wi||s.panelId===i.panelId)&&lh[s.brushType].contain(n[o],t[0],t[1]))return}i&&a.setCursorStyle("crosshair")}}function hg(r){var e=r.event;e.preventDefault&&e.preventDefault()}function vg(r,e,t){return r.childOfName("main").contain(e,t)}function HM(r,e,t,a){var n=r._creatingCover,i=r._creatingPanel,o=r._brushOption,s;if(r._track.push(t.slice()),I8(r)||n){if(i&&!n){o.brushMode==="single"&&ug(r);var l=le(o);l.brushType=Wb(l.brushType,i),l.panelId=i===wi?null:i.panelId,n=r._creatingCover=kM(r,l),r._covers.push(n)}if(n){var u=lh[Wb(r._brushType,i)],c=n.__brushOption;c.range=u.getCreatingRange(dy(r,n,r._track)),a&&(RM(r,n),u.updateCommon(r,n)),EM(r,n),s={isEnd:a}}}else a&&o.brushMode==="single"&&o.removeOnClick&&hy(r,e,t)&&ug(r)&&(s={isEnd:a,removeOnClick:!0});return s}function Wb(r,e){return r==="auto"?e.defaultBrushType:r}var O8={mousedown:function(r){if(this._dragging)$b(this,r);else if(!r.target||!r.target.draggable){hg(r);var e=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var t=this._creatingPanel=hy(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(N8(this,r,a),this._dragging){hg(r);var n=HM(this,r,a,!1);n&&Ti(this,n)}},mouseup:function(r){$b(this,r)}};function $b(r,e){if(r._dragging){hg(e);var t=e.offsetX,a=e.offsetY,n=r.group.transformCoordToLocal(t,a),i=HM(r,e,n,!0);r._dragging=!1,r._track=[],r._creatingCover=null,i&&Ti(r,i)}}function B8(r,e,t){var a=r._zr;return e<0||e>a.getWidth()||t<0||t>a.getHeight()}var lh={lineX:Ub(0),lineY:Ub(1),rect:{createCover:function(r,e){function t(a){return a}return zM({toRectRange:t,fromRectRange:t},r,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var e=BM(r);return FM(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(r,e,t,a){VM(r,e,t,a)},updateCommon:cg,contain:vg},polygon:{createCover:function(r,e){var t=new ue;return t.add(new Zt({name:"main",style:vy(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:de(R8,r,e),ondragend:de(Ti,r,{isEnd:!0})}))},updateCoverShape:function(r,e,t,a){e.childAt(0).setShape({points:dy(r,e,t)})},updateCommon:cg,contain:vg}};function Ub(r){return{createCover:function(e,t){return zM({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=BM(e),a=Tl(t[0][r],t[1][r]),n=Io(t[0][r],t[1][r]);return[a,n]},updateCoverShape:function(e,t,a,n){var i,o=OM(e,t);if(o!==wi&&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(),VM(e,t,l,n)},updateCommon:cg,contain:vg}}function jM(r){return r=py(r),function(e){return QT(e,r)}}function WM(r,e){return r=py(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 $M(r,e,t){var a=py(r);return function(n,i){return a.contain(i[0],i[1])&&!nh(n,e,t)}}function py(r){return xe.create(r)}var z8=["axisLine","axisTickLabel","axisName"],V8=(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 uy(a.getZr())).on("brush",ee(this._onBrush,this))},e.prototype.render=function(t,a,n,i){if(!F8(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=H8(t,a),l=s.coordinateSystem,u=t.getAreaSelectStyle(),c=u.width,f=t.axis.dim,h=l.getAxisLayout(f),v=H({strokeContainThreshold:c},h),d=new Wt(t,v);L(z8,d.add,d),this._axisGroup.add(d.getGroup()),this._refreshBrushController(v,u,t,s,c,n),Nl(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=xe.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:jM(f),isTargetByCursor:$M(f,s,i),getLinearBrushOtherExtent:WM(f,0)}]).enableBrush({brushType:"lineX",brushStyle:a,removeOnClick:!0}).updateCovers(G8(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 F8(r,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===r}function G8(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 H8(r,e){return e.getComponent("parallel",r.get("parallelIndex"))}var j8={type:"axisAreaSelect",event:"axisAreaSelected"};function W8(r){r.registerAction(j8,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 $8={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function UM(r){r.registerComponentView(h8),r.registerComponentModel(d8),r.registerCoordinateSystem("parallel",S8),r.registerPreprocessor(l8),r.registerComponentModel(lg),r.registerComponentView(V8),Lo(r,"parallel",lg,$8),W8(r)}function U8(r){Te(UM),r.registerChartView(e8),r.registerSeriesModel(a8),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,s8)}var Y8=(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})(),X8=(function(r){z(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new Y8},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(){Ma(this)},e.prototype.downplay=function(){La(this)},e})(Ce),Z8=(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 X8,g=fe(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"),A=d.node2.getLayout(),C=d.node2.getModel(),D=C.get("localX"),M=C.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:A.x)+I.ty,E=M!=null?M*c:A.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:A.x,E=(M!=null?M*c:A.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()),Yb(p.style,v,d);var G=""+m.get("value"),Y=bt(m,"edgeLabel");Pt(p,Y,{labelFetcher:{getFormattedLabel:function(Q,pe,ce,ne,te,W){return t.getFormattedLabel(Q,pe,"edge",ne,na(te,Y.normal&&Y.normal.get("formatter"),G),W)}},labelDataIndex:d.dataIndex,defaultText:G}),p.setTextConfig({position:"inside"});var X=m.getModel("emphasis");It(p,m,"lineStyle",function(Q){var pe=Q.getItemStyle();return Yb(pe,v,d),pe}),s.add(p),h.setItemGraphicEl(d.dataIndex,p);var q=X.get("focus");et(p,q==="adjacency"?d.getAdjacentDataIndices():q==="trajectory"?d.getTrajectoryDataIndices():q,X.get("blurScope"),X.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,A){return t.getFormattedLabel(w,A,"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),fe(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(q8(s.getBoundingRect(),t,function(){s.removeClipPath()})),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e})(We);function Yb(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");J(a)&&J(n)&&(r.fill=new El(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:a,offset:0},{color:n,offset:1}]))}}function q8(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 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.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=MM(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})(Xe);function J8(r,e){r.eachSeriesByType("sankey",function(t){var a=t.get("nodeWidth"),n=t.get("nodeGap"),i=Q8(t,e);t.layoutInfo=i;var o=i.width,s=i.height,l=t.getGraph(),u=l.nodes,c=l.edges;t7(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");e7(u,c,a,n,o,s,h,v,d)})}function Q8(r,e){return gt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function e7(r,e,t,a,n,i,o,s,l){r7(r,e,t,n,i,s,l),o7(r,e,i,n,a,o,s),p7(r,s)}function t7(r){L(r,function(e){var t=cn(e.outEdges,sf),a=cn(e.inEdges,sf),n=e.getValue()||0,i=Math.max(t,a,n);e.setLayout({value:i},!0)})}function r7(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"&&a7(r,o,i,w);var A=i==="vertical"?(n-t)/w:(a-t)/w;i7(r,A,i)}function YM(r){var e=r.hostGraph.data.getRawDataItem(r.dataIndex);return e.depth!=null&&e.depth>=0}function a7(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){YM(f)||f.setLayout({depth:Math.max(0,a-f.getLayout().skNodeHeight)},!0)})}else e==="justify"&&n7(r,a)}function n7(r,e){L(r,function(t){!YM(t)&&!t.outEdges.length&&t.setLayout({depth:e},!0)})}function i7(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 o7(r,e,t,a,n,i,o){var s=s7(r,o);l7(s,e,t,a,n,o),ud(s,n,t,a,o);for(var l=1;i>0;i--)l*=.99,u7(s,l,o),ud(s,n,t,a,o),d7(s,l,o),ud(s,n,t,a,o)}function s7(r,e){var t=[],a=e==="vertical"?"y":"x",n=dp(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 l7(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 ud(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 u7(r,e,t){L(r.slice().reverse(),function(a){L(a,function(n){if(n.outEdges.length){var i=cn(n.outEdges,c7,t)/cn(n.outEdges,sf);if(isNaN(i)){var o=n.outEdges.length;i=o?cn(n.outEdges,f7,t)/o:0}if(t==="vertical"){var s=n.getLayout().x+(i-mn(n,t))*e;n.setLayout({x:s},!0)}else{var l=n.getLayout().y+(i-mn(n,t))*e;n.setLayout({y:l},!0)}}})})}function c7(r,e){return mn(r.node2,e)*r.getValue()}function f7(r,e){return mn(r.node2,e)}function h7(r,e){return mn(r.node1,e)*r.getValue()}function v7(r,e){return mn(r.node1,e)}function mn(r,e){return e==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function sf(r){return r.getValue()}function cn(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 d7(r,e,t){L(r,function(a){L(a,function(n){if(n.inEdges.length){var i=cn(n.inEdges,h7,t)/cn(n.inEdges,sf);if(isNaN(i)){var o=n.inEdges.length;i=o?cn(n.inEdges,v7,t)/o:0}if(t==="vertical"){var s=n.getLayout().x+(i-mn(n,t))*e;n.setLayout({x:s},!0)}else{var l=n.getLayout().y+(i-mn(n,t))*e;n.setLayout({y:l},!0)}}})})}function p7(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 g7(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 m7(r){r.registerChartView(Z8),r.registerSeriesModel(K8),r.registerLayout(J8),r.registerVisual(g7),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 XM=(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;$(_)?(S=_.slice(),_.unshift(b)):$(_.value)?(S=H({},_),S.value=S.value.slice(),_.value.unshift(b)):S=_,m.push(S)}),e.data=m}var y=this.defaultValueDimensions,x=[{name:f,type:Zc(d),ordinalMeta:a,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:Zc(p),dimsDef:y.slice()}];return Xo(this,{coordDimensions:x,dimensionsCount:y.length+1,encodeDefaulter:de(CC,x,this)})},r.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},r})(),ZM=(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})(Xe);ut(ZM,XM,!0);var y7=(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=Xb(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),qM(h,f,i,u)):f=Xb(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})(We),x7=(function(){function r(){}return r})(),_7=(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 x7},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 Xb(r,e,t,a,n){var i=r.ends,o=new _7({shape:{points:n?b7(i,a,r):i}});return qM(r,o,e,t,n),o}function qM(r,e,t,a,n){var i=t.hostModel,o=Mi[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 b7(r,e,t){return U(r,function(a){return a=a.slice(),a[e]=t.initBaseline,a})}var Ks=L;function S7(r){var e=w7(r);Ks(e,function(t){var a=t.seriesModels;a.length&&(T7(t),Ks(a,function(n,i){C7(n,t.boxOffsetList[i],t.boxWidthList[i])}))})}function w7(r){var e=[],t=[];return r.eachSeriesByType("boxplot",function(a){var n=a.getBaseAxis(),i=be(t,n);i<0&&(i=t.length,t[i]=n,e[i]={axis:n,seriesModels:[]}),e[i].seriesModels.push(a)}),e}function T7(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;Ks(t,function(d){l=Math.max(l,d.getData().count())});var u=e.getExtent();s=Math.abs(u[1]-u[0])/l}Ks(t,function(d){var p=d.get("boxWidth");$(p)||(p=[p,p]),o.push([Z(p[0],s)||0,Z(p[1],s)||0])});var c=s*.8-2,f=c/a*.3,h=(c-f*(a-1))/a,v=h/2-c/2;Ks(t,function(d,p){i.push(v),v+=f+h,n.push(Math.min(Math.max(h,o[p][0]),o[p][1]))})}function C7(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,A){var C=n.get(w,A),D=[];D[o]=S,D[s]=C;var M;return isNaN(S)||isNaN(C)?M=[NaN,NaN]:(M=a.dataToPoint(D),M[o]+=e),M}function _(S,w,A){var C=w.slice(),D=w.slice();C[o]+=i,D[o]-=i,A?S.push(C,D):S.push(D,C)}function b(S,w){var A=w.slice(),C=w.slice();A[o]-=i,C[o]+=i,S.push(A,C)}}function A7(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=zh(s,.25),u=zh(s,.5),c=zh(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=ie(g)?g({value:o}):J(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 D7={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==Bt){var a="";Be(a)}var n=A7(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}};function M7(r){r.registerSeriesModel(ZM),r.registerChartView(y7),r.registerLayout(S7),r.registerTransform(D7)}var L7=["itemStyle","borderColor"],I7=["itemStyle","borderColor0"],P7=["itemStyle","borderColorDoji"],k7=["itemStyle","color"],R7=["itemStyle","color0"];function gy(r,e){return e.get(r>0?k7:R7)}function my(r,e){return e.get(r===0?P7:r>0?L7:I7)}var E7={seriesType:"candlestick",plan:Wo(),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=gy(s,o),l.stroke=my(s,o)||l.fill;var u=n.ensureUniqueItemVisual(i,"style");H(u,l)}}}}}},N7=["color","borderColor"],O7=(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){xn(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&&Zb(u,f))return;var h=cd(f,c,!0);Je(h,{shape:{points:f.ends}},t,c),fd(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&&Zb(u,v)){i.remove(h);return}h?(Re(h,{shape:{points:v.ends}},t,c),Gr(h)):h=cd(v),fd(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(),qb(t,this.group);var a=t.get("clip",!0)?jl(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=cd(s);fd(l,n,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(t,a){qb(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})(We),B7=(function(){function r(){}return r})(),z7=(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 B7},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 cd(r,e,t){var a=r.ends;return new z7({shape:{points:t?V7(a,r):a},z2:100})}function Zb(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 fd(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=gy(i,u),f=my(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 V7(r,e){return U(r,function(t){return t=t.slice(),t[1]=e.initBaseline,t})}var F7=(function(){function r(){}return r})(),hd=(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 F7},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 qb(r,e,t,a){var n=r.getData(),i=n.getLayout("largePoints"),o=new hd({shape:{points:i},__sign:1,ignoreCoarsePointer:!0});e.add(o);var s=new hd({shape:{points:i},__sign:-1,ignoreCoarsePointer:!0});e.add(s);var l=new hd({shape:{points:i},__sign:0,ignoreCoarsePointer:!0});e.add(l),vd(1,o,r),vd(-1,s,r),vd(0,l,r),a&&(o.incremental=!0,s.incremental=!0),t&&t.push(o,s)}function vd(r,e,t,a){var n=my(r,t)||gy(r,t),i=t.getModel("itemStyle").getItemStyle(N7);e.useStyle(i),e.style.fill=null,e.style.stroke=n}var KM=(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})(Xe);ut(KM,XM,!0);function G7(r){!r||!$(r.series)||L(r.series,function(e){se(e)&&e.type==="k"&&(e.type="candlestick")})}var H7={seriesType:"candlestick",plan:Wo(),reset:function(r){var e=r.coordinateSystem,t=r.getData(),a=j7(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),A=Math.min(_,b),C=Math.max(_,b),D=B(A,x),M=B(C,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:Kb(y,m,_,b,c,E),initBaseline:_>b?M[i]:D[i],ends:k,brushRect:V(S,w,x)})}function B(G,Y){var X=[];return X[n]=Y,X[i]=G,isNaN(Y)||isNaN(G)?[NaN,NaN]:e.dataToPoint(X)}function O(G,Y,X){var q=Y.slice(),Q=Y.slice();q[n]=fc(q[n]+a/2,1,!1),Q[n]=fc(Q[n]-a/2,1,!0),X?G.push(q,Q):G.push(Q,q)}function V(G,Y,X){var q=B(G,X),Q=B(Y,X);return q[n]-=a/2,Q[n]-=a/2,{x:q[0],y:q[1],width:a,height:Q[1]-q[1]}}function F(G){return G[n]=fc(G[n],1),G}}function d(p,g){for(var m=ra(p.count*4),y=0,x,_=[],b=[],S,w=g.getStore(),A=!!r.get(["itemStyle","borderColorDoji"]);(S=p.next())!=null;){var C=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(C)||isNaN(I)||isNaN(P)){m[y++]=NaN,y+=3;continue}m[y++]=Kb(w,S,D,M,c,A),_[n]=C,_[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 Kb(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 j7(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=Z(he(r.get("barMaxWidth"),n),n),o=Z(he(r.get("barMinWidth"),1),n),s=r.get("barWidth");return s!=null?Z(s,n):Math.max(Math.min(n/2,i),o)}function W7(r){r.registerChartView(O7),r.registerSeriesModel(KM),r.registerPreprocessor(G7),r.registerVisual(E7),r.registerLayout(H7)}function Jb(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 $7=(function(r){z(e,r);function e(t,a){var n=r.call(this)||this,i=new Gl(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)}Jb(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}}Jb(n,t)},e.prototype.highlight=function(){Ma(this)},e.prototype.downplay=function(){La(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=Uo(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=Li(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),U7=(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 Hl($7)},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=Wl("").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=g5(a.getRoamTransform()),this.group.decomposeTransform())},e.prototype.remove=function(t,a){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e})(We),Y7=(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 Oa(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})(Xe);function X7(r){r.registerChartView(U7),r.registerSeriesModel(Y7),r.registerLayout(Wl("effectScatter"))}var JM=(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 sy(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");$(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;ie(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 qa(t.__p1,t.__cp1)+qa(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=Qd;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=qa(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*qa(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),QM=(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)}};Re(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),Z7=(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 QM(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+=qa(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})(JM),q7=(function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r})(),K7=(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 q7},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(Xa(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(CT(f,h,g,m,d,p,s,t,a))return l}else if(Xa(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 xe(i,o,s,l)}return t},e})(Ce),J7=(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 K7({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=fe(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})(),eL={seriesType:"lines",plan:Wo(),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)}}}}}},Q7=(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)&&jl(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=eL.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 J7:new ly(o?i?Z7:QM:i?JM:sy),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})(We),eH=typeof Uint32Array>"u"?Array:Uint32Array,tH=typeof Float64Array>"u"?Array:Float64Array;function Qb(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),Gg([n,t[0],t[1]])}))}var rH=(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||[],Qb(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(Qb(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=el(this._flatCoords,a.flatCoords),this._flatCoordsOffset=el(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 eH(n),o=new tH(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})(Xe);function Hu(r){return r instanceof Array||(r=[r,r]),r}var aH={seriesType:"lines",reset:function(r){var e=Hu(r.get("symbol")),t=Hu(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=Hu(s.getShallow("symbol",!0)),u=Hu(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 nH(r){r.registerChartView(Q7),r.registerSeriesModel(rH),r.registerLayout(eL),r.registerVisual(aH)}var iH=256,oH=(function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=hn.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,A=this.minOpacity,C=this.maxOpacity,D=C-A;S<w;){var x=b[S+3]/256,M=Math.floor(x*(iH-1))*4;if(x>0){var I=o(x)?l:u;x>0&&(x=x*D+A),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=hn.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 sH(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 lH(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 eS(r){var e=r.dimensions;return e[0]==="lng"&&e[1]==="lat"}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.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()):eS(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&&(eS(o)?this.render(a,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(a,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){xn(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,a,n,i,o){var s=t.coordinateSystem,l=Pi(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"),A=S.get("blurScope"),C=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"),A=O.get("blurScope"),C=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,A,C),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 oH;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,A,C){var D=t.dataToPoint([w,A]);return D[0]-=h,D[1]-=v,D.push(C),D}),_=n.getExtent(),b=n.type==="visualMap.continuous"?lH(_,n.option.range):sH(_,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})(We),cH=(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 Oa(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=Bl.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})(Xe);function fH(r){r.registerChartView(uH),r.registerSeriesModel(cH)}var hH=["itemStyle","borderWidth"],tS=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],dd=new Na,vH=(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:tS[+c],categoryDim:tS[1-+c]};o.diff(s).add(function(d){if(o.hasValue(d)){var p=aS(o,d),g=rS(o,d,p,h),m=nS(o,h,g);o.setItemGraphicEl(d,m),i.add(m),oS(m,h,g)}}).update(function(d,p){var g=s.getItemGraphicEl(p);if(!o.hasValue(d)){i.remove(g);return}var m=aS(o,d),y=rS(o,d,m,h),x=oL(o,y);g&&x!==g.__pictorialShapeStr&&(i.remove(g),o.setItemGraphicEl(d,null),g=null),g?_H(g,h,y):g=nS(o,h,y,!0),o.setItemGraphicEl(d,g),g.__pictorialSymbolMeta=y,i.add(g),oS(g,h,y)}).remove(function(d){var p=s.getItemGraphicEl(d);p&&iS(s,d,p.__pictorialSymbolMeta.animationModel,p)}).execute();var v=t.get("clip",!0)?jl(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){iS(i,fe(o).dataIndex,t,o)}):n.removeAll()},e.type="pictorialBar",e})(We);function rS(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};dH(t,i,n,a,h),pH(r,e,n,i,o,h.boundingLength,h.pxSign,c,a,h),gH(t,h.symbolScale,u,a,h);var v=h.symbolSize,d=Li(t.get("symbolOffset"),v);return mH(t,v,n,i,o,d,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,a,h),h}function dH(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($(o)){var f=[pd(s,o[0])-l,pd(s,o[1])-l];f[1]<f[0]&&f.reverse(),c=f[u]}else o!=null?c=pd(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 pd(r,e){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(e)))}function pH(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;$(v)?d=v.slice():v==null?d=["100%","100%"]:d=[v,v],d[f.index]=Z(d[f.index],h),d[c.index]=Z(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 gH(r,e,t,a,n){var i=r.get(hH)||0;i&&(dd.attr({scaleX:e[0],scaleY:e[1],rotation:t}),dd.updateTransform(),i/=dd.getLineScale(),i*=e[a.valueDim.index]),n.valueLineWidth=i||0}function mH(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 _=Z(y,e[v.index]),b=Math.max(p+_*2,0),S=x?0:_*2,w=fT(a),A=w?a:sS((m+S)/b),C=m-A*p;_=C/2/(x?A:Math.max(A-1,1)),b=p+_*2,S=x?0:_*2,!w&&a!=="fixed"&&(A=u?sS((Math.abs(u)+S)/b):0),g=A*b-S,f.repeatTimes=A,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=H({},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 tL(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 rL(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(yy(r,function(p){p.__pictorialAnimationIndex=c,p.__pictorialRepeatTimes=u,c<u?bo(p,null,d(c),t,a):bo(p,null,{scaleX:0,scaleY:0},t,a,function(){n.remove(p)}),c++});c<u;c++){var h=tL(t);h.__pictorialAnimationIndex=c,h.__pictorialRepeatTimes=u,n.add(h);var v=d(c);bo(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 aL(r,e,t,a){var n=r.__pictorialBundle,i=r.__pictorialMainPath;i?bo(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=tL(t),n.add(i),bo(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 nL(r,e,t){var a=H({},e.barRectShape),n=r.__pictorialBarRect;n?bo(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 iL(r,e,t,a){if(t.symbolClip){var n=r.__pictorialClipPath,i=H({},t.clipShape),o=e.valueDim,s=t.animationModel,l=t.dataIndex;if(n)Re(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],Mi[a?"updateProps":"initProps"](n,{shape:u},s,l)}}}function aS(r,e){var t=r.getItemModel(e);return t.getAnimationDelayParams=yH,t.isAnimationEnabled=xH,t}function yH(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function xH(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function nS(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?rL(n,e,t):aL(n,e,t),nL(n,t,a),iL(n,e,t,a),n.__pictorialShapeStr=oL(r,t),n.__pictorialSymbolMeta=t,n}function _H(r,e,t){var a=t.animationModel,n=t.dataIndex,i=r.__pictorialBundle;Re(i,{x:t.bundlePosition[0],y:t.bundlePosition[1]},a,n),t.symbolRepeat?rL(r,e,t,!0):aL(r,e,t,!0),nL(r,t,!0),iL(r,e,t,!0)}function iS(r,e,t,a){var n=a.__pictorialBarRect;n&&n.removeTextContent();var i=[];yy(a,function(o){i.push(o)}),a.__pictorialMainPath&&i.push(a.__pictorialMainPath),a.__pictorialClipPath&&(t=null),L(i,function(o){dn(o,{scaleX:0,scaleY:0},t,e,function(){a.parent&&a.parent.remove(a)})}),r.setItemGraphicEl(e,null)}function oL(r,e){return[r.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function yy(r,e,t){L(r.__pictorialBundle.children(),function(a){a!==r.__pictorialBarRect&&e.call(t,a)})}function bo(r,e,t,a,n,i){e&&r.attr(e),a.symbolClip&&!n?t&&r.attr(t):t&&Mi[n?"updateProps":"initProps"](r,t,a.animationModel,a.dataIndex,i)}function oS(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");yy(r,function(p){if(p instanceof At){var g=p.style;p.useStyle(H({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:Mo(e.seriesModel.getData(),a),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:v}),et(r,c,f,i.get("disabled"))}function sS(r){var e=Math.round(r);return Math.abs(r-e)<1e-4?e:Math.ceil(r)}var bH=(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=_n(yl.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})(yl);function SH(r){r.registerChartView(vH),r.registerSeriesModel(bH),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,de(jA,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,WA("pictorialBar"))}var wH=(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 Ia(this._layersSeries||[],l,h,h),d=[];v.add(ee(p,this,"add")).update(ee(p,this,"update")).remove(ee(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,A=0;A<w.length;A++){var C=i.getItemLayout(w[A]),D=C.x,M=C.y0,I=C.y;_.push(D,M),b.push(D,M+I),S=i.getItemVisual(w[A],"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 kD({shape:{points:_,stackedOnPoints:b,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),O.add(P),s.add(O),t.isAnimationEnabled()&&P.setClipPath(TH(P.getBoundingRect(),t,function(){P.removeClipPath()}))}else{var O=x[y];P=O.childAt(0),s.add(O),d[m]=O,Re(P,{shape:{points:_,stackedOnPoints:b}},t),Gr(P)}Pt(P,bt(t),{labelDataIndex:w[A-1],defaultText:i.getName(w[A-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})(We);function TH(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 gd=2,CH=(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 Ul(ee(this.getData,this),ee(this.getRawData,this))},e.prototype.fixData=function(t){var a=t.length,n={},i=dp(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=ae(),c=0,f=0;f<s.length;++f)l.push(s[f][gd]),u.get(s[f][gd])||(u.set(s[f][gd],c),c++);var h=Vl(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:Zc(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=dp(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){$(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})(Xe);function AH(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]=Z(s[0],o.height),s[1]=Z(s[1],o.height);var u=o.height-s[0]-s[1];lS(a,t,u)}else{s[0]=Z(s[0],o.width),s[1]=Z(s[1],o.width);var c=o.width-s[0]-s[1];lS(a,t,c)}a.setLayout("layoutInfo",i)})}function lS(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=DH(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 DH(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 MH(r){r.registerChartView(wH),r.registerSeriesModel(CH),r.registerLayout(AH),r.registerProcessor($l("themeRiver"))}var LH=2,IH=4,uS=(function(r){z(e,r);function e(t,a,n,i){var o=r.call(this)||this;o.z2=LH,o.textConfig={inside:!0},fe(o).seriesIndex=a.seriesIndex;var s=new Pe({z2:IH,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;fe(s).dataIndex=a.dataIndex;var l=a.getModel(),u=l.getModel("emphasis"),c=a.getLayout(),f=H({},c);f.label=null;var h=a.getVisual("style");h.lineJoin="bevel";var v=a.getVisual("decal");v&&(h.decal=Ao(v,o));var d=li(l.getModel("itemStyle"),f,!0);H(f,d),L(Ut,function(y){var x=s.ensureState(y),_=l.getModel([y,"itemStyle"]);x.style=_.getItemStyle();var b=li(_,f);b&&(x.shape=b)}),t?(s.setShape(f),s.shape.r=c.r0,Je(s,{shape:{r:c.r}},n,a.dataIndex)):(Re(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"?el(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(ol,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=Ye(y,{},null,m!=="normal",!0),b&&(_.style.text=b);var S=y.get("show");S!=null&&!x&&(_.ignore=!S);var w=g(y,"position"),A=x?f:f.states[m],C=A.style.fill;A.textConfig={outsideFill:y.get("color")==="inherit"?C: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&&!nl(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),dg="sunburstRootToNode",cS="sunburstHighlight",PH="sunburstUnhighlight";function kH(r){r.registerAction({type:dg,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},a);function a(n,i){var o=_l(e,[dg],n);if(o){var s=n.getViewRoot();s&&(e.direction=ry(s,o.node)?"rollUp":"drillDown"),n.resetViewRoot(o.node)}}}),r.registerAction({type:cS,update:"none"},function(e,t,a){e=H({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},n);function n(i){var o=_l(e,[cS],i);o&&(e.dataIndex=o.node.dataIndex)}a.dispatchAction(H(e,{type:"highlight"}))}),r.registerAction({type:PH,update:"updateView"},function(e,t,a){e=H({},e),a.dispatchAction(H(e,{type:"downplay"}))})}var RH=(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 Ia(x,y,_,_).add(b).update(b).remove(de(b,null)).execute();function _(S){return S.getId()}function b(S,w){var A=S==null?null:y[S],C=w==null?null:x[w];p(A,C)}}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 uS(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 uS(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";Gc(u,c)}}n=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:dg,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})(We),EH=(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};sL(n);var i=this._levelModels=U(t.levels||[],function(l){return new Ge(l,this,a)},this),o=ty.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=oh(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(){hM(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})(Xe);function sL(r){var e=0;L(r.children,function(a){sL(a);var n=a.value;$(n)&&(n=n[0]),e+=n});var t=r.value;$(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),$(r.value)?r.value[0]=t:r.value=t}var fS=Math.PI/180;function NH(r,e,t){e.eachSeriesByType(r,function(a){var n=a.get("center"),i=a.get("radius");$(i)||(i=[0,i]),$(n)||(n=[n,n]);var o=t.getWidth(),s=t.getHeight(),l=Math.min(o,s),u=Z(n[0],o),c=Z(n[1],s),f=Z(i[0],l/2),h=Z(i[1],l/2),v=-a.get("startAngle")*fS,d=a.get("minAngle")*fS,p=a.getData().tree.root,g=a.getViewRoot(),m=g.depth,y=a.get("sort");y!=null&&lL(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),A=(h-f)/(w||1),C=a.get("clockwise"),D=a.get("stillShowZeroSum"),M=C?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 G=E.depth-m-(S?-1:1),Y=f+A*G,X=f+A*(G+1),q=a.getLevelModel(E);if(q){var Q=q.get("r0",!0),pe=q.get("r",!0),ce=q.get("radius",!0);ce!=null&&(Q=ce[0],pe=ce[1]),Q!=null&&(Y=Z(Q,l/2)),pe!=null&&(X=Z(pe,l/2))}E.setLayout({angle:F,startAngle:B,endAngle:O,clockwise:C,cx:u,cy:c,r0:Y,r:X})}if(E.children&&E.children.length){var ne=0;L(E.children,function(te){ne+=I(te,B+ne)})}return O-B}};if(S){var P=f,k=f+A,R=Math.PI*2;p.setLayout({angle:R,startAngle:v,endAngle:v+R,clockwise:C,cx:u,cy:c,r0:P,r:k})}I(g,v)})}function lL(r,e){var t=r.children||[];r.children=OH(t,e),t.length&&L(r.children,function(a){lL(a,e)})}function OH(r,e){if(ie(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 BH(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&&J(s)&&(s=rp(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");H(u,l)})})}function zH(r){r.registerChartView(RH),r.registerSeriesModel(EH),r.registerLayout(de(NH,"sunburst")),r.registerProcessor(de($l,"sunburst")),r.registerVisual(BH),kH(r)}var hS={color:"fill",borderColor:"stroke"},VH={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Ta=Ie(),FH=(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 Oa(null,this)},e.prototype.getDataParams=function(t,a,n){var i=r.prototype.getDataParams.call(this,t,a);return n&&(i.info=Ta(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})(Xe);function GH(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 HH(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:ee(GH,r)}}}function jH(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 WH(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:ee(jH,r)}}}function $H(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 UH(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:ee($H,r)}}}function YH(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 XH(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:ee(YH,r)}}}function ZH(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 uL(r,e,t,a){return r&&(r.legacy||r.legacy!==!1&&!t&&!a&&e!=="tspan"&&(e==="text"||re(r,"text")))}function cL(r,e,t){var a=r,n,i,o;if(e==="text")o=a;else{o={},re(a,"text")&&(o.text=a.text),re(a,"rich")&&(o.rich=a.rich),re(a,"textFill")&&(o.fill=a.textFill),re(a,"textStroke")&&(o.stroke=a.textStroke),re(a,"fontFamily")&&(o.fontFamily=a.fontFamily),re(a,"fontSize")&&(o.fontSize=a.fontSize),re(a,"fontStyle")&&(o.fontStyle=a.fontStyle),re(a,"fontWeight")&&(o.fontWeight=a.fontWeight),i={type:"text",style:o,silent:!0},n={};var s=re(a,"textPosition");t?n.position=s?a.textPosition:"inside":s&&(n.position=a.textPosition),re(a,"textPosition")&&(n.position=a.textPosition),re(a,"textOffset")&&(n.offset=a.textOffset),re(a,"textRotation")&&(n.rotation=a.textRotation),re(a,"textDistance")&&(n.distance=a.textDistance)}return vS(o,r),L(o.rich,function(l){vS(l,l)}),{textConfig:n,textContent:i}}function vS(r,e){e&&(e.font=e.textFont||e.font,re(e,"textStrokeWidth")&&(r.lineWidth=e.textStrokeWidth),re(e,"textAlign")&&(r.align=e.textAlign),re(e,"textVerticalAlign")&&(r.verticalAlign=e.textVerticalAlign),re(e,"textLineHeight")&&(r.lineHeight=e.textLineHeight),re(e,"textWidth")&&(r.width=e.textWidth),re(e,"textHeight")&&(r.height=e.textHeight),re(e,"textBackgroundColor")&&(r.backgroundColor=e.textBackgroundColor),re(e,"textPadding")&&(r.padding=e.textPadding),re(e,"textBorderColor")&&(r.borderColor=e.textBorderColor),re(e,"textBorderWidth")&&(r.borderWidth=e.textBorderWidth),re(e,"textBorderRadius")&&(r.borderRadius=e.textBorderRadius),re(e,"textBoxShadowColor")&&(r.shadowColor=e.textBoxShadowColor),re(e,"textBoxShadowBlur")&&(r.shadowBlur=e.textBoxShadowBlur),re(e,"textBoxShadowOffsetX")&&(r.shadowOffsetX=e.textBoxShadowOffsetX),re(e,"textBoxShadowOffsetY")&&(r.shadowOffsetY=e.textBoxShadowOffsetY))}function dS(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";pS(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){pS(s,s)}),a}function pS(r,e){e&&(re(e,"fill")&&(r.textFill=e.fill),re(e,"stroke")&&(r.textStroke=e.fill),re(e,"lineWidth")&&(r.textStrokeWidth=e.lineWidth),re(e,"font")&&(r.font=e.font),re(e,"fontStyle")&&(r.fontStyle=e.fontStyle),re(e,"fontWeight")&&(r.fontWeight=e.fontWeight),re(e,"fontSize")&&(r.fontSize=e.fontSize),re(e,"fontFamily")&&(r.fontFamily=e.fontFamily),re(e,"align")&&(r.textAlign=e.align),re(e,"verticalAlign")&&(r.textVerticalAlign=e.verticalAlign),re(e,"lineHeight")&&(r.textLineHeight=e.lineHeight),re(e,"width")&&(r.textWidth=e.width),re(e,"height")&&(r.textHeight=e.height),re(e,"backgroundColor")&&(r.textBackgroundColor=e.backgroundColor),re(e,"padding")&&(r.textPadding=e.padding),re(e,"borderColor")&&(r.textBorderColor=e.borderColor),re(e,"borderWidth")&&(r.textBorderWidth=e.borderWidth),re(e,"borderRadius")&&(r.textBorderRadius=e.borderRadius),re(e,"shadowColor")&&(r.textBoxShadowColor=e.shadowColor),re(e,"shadowBlur")&&(r.textBoxShadowBlur=e.shadowBlur),re(e,"shadowOffsetX")&&(r.textBoxShadowOffsetX=e.shadowOffsetX),re(e,"shadowOffsetY")&&(r.textBoxShadowOffsetY=e.shadowOffsetY),re(e,"textShadowColor")&&(r.textShadowColor=e.textShadowColor),re(e,"textShadowBlur")&&(r.textShadowBlur=e.textShadowBlur),re(e,"textShadowOffsetX")&&(r.textShadowOffsetX=e.textShadowOffsetX),re(e,"textShadowOffsetY")&&(r.textShadowOffsetY=e.textShadowOffsetY))}var fL={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},gS=Me(fL);oa(la,function(r,e){return r[e]=1,r},{});la.join(", ");var lf=["","style","shape","extra"],Po=Ie();function xy(r,e,t,a,n){var i=r+"Animation",o=zo(r,a,n)||{},s=Po(e).userDuring;return o.duration>0&&(o.during=s?ee(e9,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=r),H(o,t[i]),o}function mc(r,e,t,a){a=a||{};var n=a.dataIndex,i=a.isInit,o=a.clearStyle,s=t.isAnimationEnabled(),l=Po(r),u=e.style;l.userDuring=e.during;var c={},f={};if(r9(r,e,f),yS("shape",e,f),yS("extra",e,f),!i&&s&&(t9(r,e,c),mS("shape",r,e,c),mS("extra",r,e,c),a9(r,e,u,c)),f.style=u,qH(r,f,o),JH(r,e),s)if(i){var h={};L(lf,function(d){var p=d?e[d]:e;p&&p.enterFrom&&(d&&(h[d]=h[d]||{}),H(d?h[d]:h,p.enterFrom))});var v=xy("enter",r,e,t,n);v.duration>0&&r.animateFrom(h,v)}else KH(r,e,n||0,t,c);hL(r,e),u?r.dirty():r.markRedraw()}function hL(r,e){for(var t=Po(r).leaveToProps,a=0;a<lf.length;a++){var n=lf[a],i=n?e[n]:e;i&&i.leaveTo&&(t||(t=Po(r).leaveToProps={}),n&&(t[n]=t[n]||{}),H(n?t[n]:t,i.leaveTo))}}function uh(r,e,t,a){if(r){var n=r.parent,i=Po(r).leaveToProps;if(i){var o=xy("update",r,e,t,0);o.done=function(){n.remove(r)},r.animateTo(i,o)}else n.remove(r)}}function mi(r){return r==="all"}function qH(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 KH(r,e,t,a,n){if(n){var i=xy("update",r,e,a,t);i.duration>0&&r.animateFrom(n,i)}}function JH(r,e){re(e,"silent")&&(r.silent=e.silent),re(e,"ignore")&&(r.ignore=e.ignore),r instanceof Cr&&re(e,"invisible")&&(r.invisible=e.invisible),r instanceof Ce&&re(e,"autoBatch")&&(r.autoBatch=e.autoBatch)}var Zr={},QH={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 e9(){var r=this,e=r.el;if(e){var t=Po(e).userDuring,a=r.userDuring;if(t!==a){r.el=r.userDuring=null;return}Zr.el=e,a(QH)}}function mS(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]={}),mi(l))H(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(mi(s)||be(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];n9(n[f],h)&&(o[f]=h)}}}}}function yS(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]=Fs(a[s])}}function t9(r,e,t){for(var a=e.transition,n=mi(a)?la: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 r9(r,e,t){for(var a=0;a<gS.length;a++){var n=gS[a],i=fL[n],o=e[n];o&&(t[i[0]]=o[0],t[i[1]]=o[1])}for(var a=0;a<la.length;a++){var s=la[a];e[s]!=null&&(t[s]=e[s])}}function a9(r,e,t,a){if(t){var n=r.style,i;if(n){var o=t.transition,s=e.transition;if(o&&!mi(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&&(mi(s)||mi(o)||be(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 n9(r,e){return Ot(r)?r!==e:r!=null&&isFinite(r)}var vL=Ie(),i9=["percent","easing","shape","style","extra"];function dL(r){r.stopAnimation("keyframe"),r.attr(vL(r))}function uf(r,e,t){if(!(!t.isAnimationEnabled()||!e)){if($(e)){L(e,function(s){uf(r,s,t)});return}var a=e.keyframes,n=e.duration;if(t&&n==null){var i=zo("enter",t,0);n=i&&i.duration}if(!(!a||!n)){var o=vL(r);L(lf,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 be(i9,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 Ca="emphasis",an="normal",_y="blur",by="select",yn=[an,Ca,_y,by],md={normal:["itemStyle"],emphasis:[Ca,"itemStyle"],blur:[_y,"itemStyle"],select:[by,"itemStyle"]},yd={normal:["label"],emphasis:[Ca,"label"],blur:[_y,"label"],select:[by,"label"]},o9=["x","y"],s9="e\0\0",vr={normal:{},emphasis:{},blur:{},select:{}},l9={cartesian2d:HH,geo:WH,single:UH,polar:XH,calendar:ZH};function pg(r){return r instanceof Ce}function gg(r){return r instanceof Cr}function u9(r,e){e.copyTransform(r),gg(e)&&gg(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,pg(e)&&pg(r)&&e.setShape(r.shape))}var c9=(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=xS(t,s,a,n);o||l.removeAll(),s.diff(o).add(function(f){xd(n,null,f,u(f,i),t,l,s)}).remove(function(f){var h=o.getItemGraphicEl(f);h&&uh(h,Ta(h).option,t)}).update(function(f,h){var v=o.getItemGraphicEl(h);xd(n,v,f,u(f,i),t,l,s)}).execute();var c=t.get("clip",!0)?jl(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=xS(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=xd(null,null,f,l(f,o),a,this.group,s);h&&(h.traverse(c),u.push(h))}},e.prototype.eachRendered=function(t){xn(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})(We);function Sy(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=mL(a);t=Vf(i,null,n,a.layout||"center"),Ta(t).customPathData=i}else if(e==="image")t=new At({}),Ta(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=cm(e);if(!o){var s="";Be(s)}t=new o}return Ta(t).customGraphicType=e,t.name=r.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function wy(r,e,t,a,n,i,o){dL(e);var s=n&&n.normal.cfg;s&&e.setTextConfig(s),a&&a.transition==null&&(a.transition=o9);var l=a&&a.style;if(l){if(e.type==="text"){var u=l;re(u,"textFill")&&(u.fill=u.textFill),re(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,f=pg(e)?l.decal:null;r&&f&&(f.dirty=!0,c=Ao(f,r)),l.__decalPattern=c}if(gg(e)&&l){var c=l.__decalPattern;c&&(l.decal=c)}mc(e,a,i,{dataIndex:t,isInit:o,clearStyle:!0}),uf(e,a.keyframeAnimation,i)}function pL(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),bi(i)}}function f9(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<yn.length;s++)h9(a,e,yn[s])}}function h9(r,e,t){var a=t===an,n=a?e:cf(e,t),i=n?n.z2:null,o;i!=null&&(o=a?r:r.ensureState(t),o.z2=i||0)}function xS(r,e,t,a){var n=r.get("renderItem"),i=r.coordinateSystem,o={};i&&(o=i.prepareCustoms?i.prepareCustoms(i):l9[i.type](i));for(var s=oe({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:v9(r.getData())},u,c,f={},h={},v={},d={},p=0;p<yn.length;p++){var g=yn[p];v[g]=r.getModel(md[g]),d[g]=r.getModel(yd[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(md[R])):m(k).getModel(md[R]):v[R]}function x(k,R){return e.hasItemOption?k===u?h[R]||(h[R]=m(k).getModel(yd[R])):m(k).getModel(yd[R]):d[R]}return function(k,R){return u=k,c=null,f={},h={},n&&n(oe({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,an).getItemStyle();B!=null&&(V.fill=B),O!=null&&(V.opacity=O);var F={inheritColor:J(B)?B:"#000"},G=x(R,an),Y=Ye(G,null,F,!1,!0);Y.text=G.getShallow("show")?he(r.getFormattedLabel(R,an),Mo(e,R)):null;var X=Vc(G,F,!1);return C(k,V),V=dS(V,Y,X),k&&A(V,k),V.legacy=!0,V}function w(k,R){R==null&&(R=u);var E=y(R,Ca).getItemStyle(),B=x(R,Ca),O=Ye(B,null,null,!0,!0);O.text=B.getShallow("show")?na(r.getFormattedLabel(R,Ca),r.getFormattedLabel(R,an),Mo(e,R)):null;var V=Vc(B,null,!0);return C(k,E),E=dS(E,O,V),k&&A(E,k),E.legacy=!0,E}function A(k,R){for(var E in R)re(R,E)&&(k[E]=R[E])}function C(k,R){k&&(k.textFill&&(R.textFill=k.textFill),k.textPosition&&(R.textPosition=k.textPosition))}function D(k,R){if(R==null&&(R=u),re(hS,k)){var E=e.getItemVisual(R,"style");return E?E[hS[k]]:null}if(re(VH,k))return e.getItemVisual(R,k)}function M(k){if(i.type==="cartesian2d"){var R=i.getBaseAxis();return rB(oe({axis:R},k))}}function I(){return t.getCurrentSeriesIndices()}function P(k){return fm(k,t)}}function v9(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 xd(r,e,t,a,n,i,o){if(!a){i.remove(e);return}var s=Ty(r,e,t,a,n,i);return s&&o.setItemGraphicEl(t,s),s&&et(s,a.focus,a.blurScope,a.emphasisDisabled),s}function Ty(r,e,t,a,n,i){var o=-1,s=e;e&&gL(e,a,n)&&(o=be(i.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=Sy(a),s&&u9(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,p9(u,t,a,n,l,vr),d9(u,t,a,n,l),wy(r,u,t,a,vr,n,l),re(a,"info")&&(Ta(u).info=a.info);for(var c=0;c<yn.length;c++){var f=yn[c];if(f!==an){var h=cf(a,f),v=Cy(a,h,f);pL(f,u,h,v,vr)}}return f9(u,a,n),a.type==="group"&&g9(r,u,t,a,n),o>=0?i.replaceAt(u,o):i.add(u),u}function gL(r,e,t){var a=Ta(r),n=e.type,i=e.shape,o=e.style;return t.isUniversalTransitionEnabled()||n!=null&&n!==a.customGraphicType||n==="path"&&_9(i)&&mL(i)!==a.customPathData||n==="image"&&re(o,"image")&&o.image!==a.customImagePath}function d9(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&&gL(o,i,a)&&(o=null),o||(o=Sy(i),r.setClipPath(o)),wy(null,o,e,i,null,a,n)}}function p9(r,e,t,a,n,i){if(!r.isGroup){_S(t,null,i),_S(t,Ca,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=Sy(o),r.setTextContent(c)),wy(null,c,e,o,null,a,n);for(var f=o&&o.style,h=0;h<yn.length;h++){var v=yn[h];if(v!==an){var d=i[v].conOpt;pL(v,c,d,Cy(o,d,v),null)}}f?c.dirty():c.markRedraw()}}}}function _S(r,e,t){var a=e?cf(r,e):r,n=e?Cy(r,a,Ca):r.style,i=r.type,o=a?a.textConfig:null,s=r.textContent,l=s?e?cf(s,e):s:null;if(n&&(t.isLegacy||uL(n,i,!!o,!!l))){t.isLegacy=!0;var u=cL(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 cf(r,e){return e?r?r[e]:null:r}function Cy(r,e,t){var a=e&&e.style;return a==null&&t===Ca&&r&&(a=r.styleEmphasis),a}function g9(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){y9({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),Ty(r,h,t,f,n,e)):h.ignore=!0}for(var v=e.childCount()-1;v>=c;v--){var d=e.childAt(v);m9(e,d,n)}}}function m9(r,e,t){e&&uh(e,Ta(r).option,t)}function y9(r){new Ia(r.oldChildren,r.newChildren,bS,bS,r).add(SS).update(SS).remove(x9).execute()}function bS(r,e){var t=r&&r.name;return t??s9+e}function SS(r,e){var t=this.context,a=r!=null?t.newChildren[r]:null,n=e!=null?t.oldChildren[e]:null;Ty(t.api,n,t.dataIndex,a,t.seriesModel,t.group)}function x9(r){var e=this.context,t=e.oldChildren[r];t&&uh(t,Ta(t).option,e.seriesModel)}function mL(r){return r&&(r.pathData||r.d)}function _9(r){return r&&(re(r,"pathData")||re(r,"d"))}function b9(r){r.registerChartView(c9),r.registerSeriesModel(FH)}var Qn=Ie(),wS=le,_d=ee,Ay=(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=de(TS,t,f);this.updatePointerEl(s,u,h),this.updateLabelEl(s,u,h,t)}AS(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=Xm(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=Qn(e).pointerEl=new Mi[i.type](wS(t.pointer));e.add(o)}},r.prototype.createLabelEl=function(e,t,a,n){if(t.label){var i=Qn(e).labelEl=new Pe(wS(t.label));e.add(i),CS(i,n)}},r.prototype.updatePointerEl=function(e,t,a){var n=Qn(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=Qn(e).labelEl;i&&(i.setStyle(t.label.style),a(i,{x:t.label.x,y:t.label.y}),CS(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=Ol(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Aa(u.event)},onmousedown:_d(this._onHandleDragMove,this,0,0),drift:_d(this._onHandleDragMove,this),ondragend:_d(this._onHandleDragEnd,this)}),a.add(n)),AS(n,t,!1),n.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");$(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,$o(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},r.prototype._moveHandleToValue=function(e,t){TS(this._axisPointerModel,!t&&this._moveAnimation,this._handle,bd(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(bd(a),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=n,a.stopAnimation(),a.attr(bd(n)),Qn(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),hl(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 TS(r,e,t,a){yL(Qn(t).lastProp,a)||(Qn(t).lastProp=a,e?Re(t,a,r):(t.stopAnimation(),t.attr(a)))}function yL(r,e){if(se(r)&&se(e)){var t=!0;return L(e,function(a,n){t=t&&yL(r[n],a)}),!!t}else return r===e}function CS(r,e){r[e.get(["label","show"])?"show":"hide"]()}function bd(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function AS(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 Dy(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 xL(r,e,t,a,n){var i=t.get("value"),o=_L(i,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=Go(s.get("padding")||0),u=s.getFont(),c=Ll(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),S9(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:Ye(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function S9(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 _L(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:Bm(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)}),J(o)?i=o.replace("{value}",i):ie(o)&&(i=o(s))}return i}function My(r,e,t){var a=or();return Ai(a,a,t.rotation),sa(a,a,t.position),Vr([r.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],a)}function bL(r,e,t,a,n,i){var o=Wt.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=n.get(["label","margin"]),xL(e,a,n,i,{position:My(a.axis,r,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function Ly(r,e,t){return t=t||0,{x1:r[t],y1:r[1-t],x2:e[t],y2:e[1-t]}}function SL(r,e,t){return t=t||0,{x:r[t],y:r[1-t],width:e[t],height:e[1-t]}}function DS(r,e,t,a,n,i){return{cx:r,cy:e,r0:t,r:a,startAngle:n,endAngle:i,clockwise:!0}}var w9=(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=MS(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(a,!0));if(u&&u!=="none"){var h=Dy(i),v=T9[u](s,f,c);v.style=h,t.graphicKey=v.type,t.pointer=v}var d=qp(l.model,n);bL(a,t,d,n,i,o)},e.prototype.getHandleTransform=function(t,a,n){var i=qp(a.axis.grid.model,a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=My(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=MS(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})(Ay);function MS(r,e){var t={};return t[e.dim+"AxisIndex"]=e.index,r.getCartesian(t)}var T9={line:function(r,e,t){var a=Ly([e,t[0]],[e,t[1]],LS(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:SL([e-a/2,t[0]],[a,n],LS(r))}}};function LS(r){return r.dim==="x"?0:1}var C9=(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),_a=Ie(),A9=L;function wL(r,e,t){if(!Ae.node){var a=e.getZr();_a(a).records||(_a(a).records={}),D9(a,e);var n=_a(a).records[r]||(_a(a).records[r]={});n.handler=t}}function D9(r,e){if(_a(r).initialized)return;_a(r).initialized=!0,t("click",de(IS,"click")),t("mousemove",de(IS,"mousemove")),t("globalout",L9);function t(a,n){r.on(a,function(i){var o=I9(e);A9(_a(r).records,function(s){s&&n(s,i,o.dispatchAction)}),M9(o.pendings,e)})}}function M9(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 L9(r,e,t){r.handler("leave",null,t)}function IS(r,e,t,a){e.handler(r,t,a)}function I9(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 mg(r,e){if(!Ae.node){var t=e.getZr(),a=(_a(t).records||{})[r];a&&(_a(t).records[r]=null)}}var P9=(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";wL("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){mg("axisPointer",a)},e.prototype.dispose=function(t,a){mg("axisPointer",a)},e.type="axisPointer",e})(Qe);function TL(r,e){var t=[],a=r.seriesIndex,n;if(a==null||!(n=e.getSeriesByIndex(a)))return{point:[]};var i=n.getData(),o=xi(i,r);if(o==null||o<0||$(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 PS=Ie();function k9(r,e,t){var a=r.currTrigger,n=[r.x,r.y],i=r,o=r.dispatchAction||ee(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){yc(n)&&(n=TL({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var l=yc(n),u=i.axesInfo,c=s.axesInfo,f=a==="leave"||yc(n),h={},v={},d={list:[],map:{}},p={showPointer:de(E9,v),showTooltip:de(N9,d)};L(s.coordSysMap,function(m,y){var x=l||m.containPoint(n);L(s.coordSysAxesInfo[y],function(_,b){var S=_.axis,w=V9(u,_);if(!f&&x&&(!u||w)){var A=w&&w.value;A==null&&!l&&(A=S.pointToData(n)),A!=null&&kS(_,A,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,RS(_),RS(m)))),g[m.key]=w}})}),L(g,function(m,y){kS(c[y],m,p,!0,h)}),O9(v,c,h),B9(d,n,r,o),z9(c,o,t),h}}function kS(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=R9(e,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&n.seriesIndex==null&&H(n,s[0]),!a&&r.snap&&i.containData(l)&&l!=null&&(e=l),t.showPointer(r,e,s),t.showTooltip(r,o,l)}}function R9(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 E9(r,e,t,a){r[e.key]={value:t,payloadBatch:a}}function N9(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=xl(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 O9(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 B9(r,e,t,a){if(yc(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 z9(r,e,t){var a=t.getZr(),n="axisPointerLastHighlights",i=PS(a)[n]||{},o=PS(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 V9(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 RS(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 yc(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Zl(r){ki.registerAxisPointerClass("CartesianAxisPointer",w9),r.registerComponentModel(C9),r.registerComponentView(P9),r.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!$(t)&&(e.axisPointer.link=[t])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=ZV(e,t)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},k9)}function F9(r){Te(JD),Te(Zl)}var G9=(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=Dy(i),d=j9[h](s,l,f,c);d.style=v,t.graphicKey=d.type,t.pointer=d}var p=i.get(["label","margin"]),g=H9(a,n,i,l,p);xL(t,n,i,o,g)},e})(Ay);function H9(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();Ai(h,h,s),sa(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 j9={line:function(r,e,t,a){return r.dim==="angle"?{type:"Line",shape:Ly(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:DS(e.cx,e.cy,a[0],a[1],(-t-n/2)*i,(-t+n/2)*i)}:{type:"Sector",shape:DS(e.cx,e.cy,t-n/2,t+n/2,0,Math.PI*2)}}},W9=(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),Iy=(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(Iy,Fl);var $9=(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})(Iy),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.type="radiusAxis",e})(Iy),Py=(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);Py.prototype.dataToRadius=jr.prototype.dataToCoord;Py.prototype.radiusToData=jr.prototype.coordToData;var Y9=Ie(),ky=(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=Ll(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=Y9(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);ky.prototype.dataToAngle=jr.prototype.dataToCoord;ky.prototype.angleToData=jr.prototype.coordToData;var CL=["radius","angle"],X9=(function(){function r(e){this.dimensions=CL,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new Py,this._angleAxis=new ky,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=ES(t);return n===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(e,t,a){var n=ES(t);return n===this?this.pointToData(a):null},r})();function ES(r){var e=r.seriesModel,t=r.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function Z9(r,e,t){var a=e.get("center"),n=t.getWidth(),i=t.getHeight();r.cx=Z(a[0],n),r.cy=Z(a[1],i);var o=r.getRadiusAxis(),s=Math.min(n,i)/2,l=e.get("radius");l==null?l=[0,"100%"]:$(l)||(l=[0,l]);var u=[Z(l[0],s),Z(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function q9(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(qc(l,"radius"),function(u){n.scale.unionExtentFromData(l,u)}),L(qc(l,"angle"),function(u){a.scale.unionExtentFromData(l,u)})}}),Do(a.scale,a.model),Do(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 K9(r){return r.mainType==="angleAxis"}function NS(r,e){var t;if(r.type=e.get("type"),r.scale=rh(e),r.onBand=e.get("boundaryGap")&&r.type==="category",r.inverse=e.get("inverse"),K9(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 J9={dimensions:CL,create:function(r,e){var t=[];return r.eachComponent("polar",function(a,n){var i=new X9(n+"");i.update=q9;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=a.findAxisModel("radiusAxis"),u=a.findAxisModel("angleAxis");NS(o,l),NS(s,u),Z9(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}},Q9=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function ju(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 Wu(r){var e=r.getRadiusAxis();return e.inverse?0:1}function OS(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 ej=(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});OS(u),OS(s),L(Q9,function(c){t.get([c,"show"])&&(!n.scale.isBlank()||c==="axisLine")&&tj[c](this.group,t,i,s,l,o,u)},this)}},e.type="angleAxis",e})(ki),tj={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=Wu(t),f=c?0:1,h,v=Math.abs(u[1]-u[0])===360?"Circle":"Arc";i[f]===0?h=new Mi[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 kl({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[Wu(t)],u=U(a,function(c){return new yt({shape:ju(t,[l,l+s],c.coord)})});r.add(br(u,{style:oe(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[Wu(t)],c=[],f=0;f<n.length;f++)for(var h=0;h<n[f].length;h++)c.push(new yt({shape:ju(t,[u,u+l],n[f][h].coord)}));r.add(br(c,{style:oe(s.getModel("lineStyle").getLineStyle(),oe(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[Wu(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:Ye(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,fe(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:ju(t,i,a[f].coord)}))}for(var f=0;f<c.length;f++)r.add(br(c[f],{style:oe({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:ju(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:oe({fill:l[g%l.length]},s.getAreaStyle()),silent:!0}))}}},rj=["axisLine","axisTickLabel","axisName"],aj=["splitLine","splitArea","minorSplitLine"],nj=(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=oj(s,t,f),d=new Wt(t,v);L(rj,d.add,d),i.add(d.getGroup()),Nl(n,i,t),L(aj,function(p){t.get([p,"show"])&&!o.scale.isBlank()&&ij[p](this.group,t,s,f,h,u,c)},this)}},e.type="radiusAxis",e})(ki),ij={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 Mi[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:oe({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 Na({shape:{cx:t.cx,cy:t.cy,r:o[c][f].coord}}));r.add(br(u,{style:oe({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:oe({fill:l[h%l.length]},s.getAreaStyle()),silent:!0}))}}};function oj(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 AL(r){return r.get("stack")||"__ec_stack_"+r.seriesIndex}function DL(r,e){return e.dim+r.model.componentIndex}function sj(r,e,t){var a={},n=lj(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=DL(s,l),c=AL(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=gn(o,x),S=l.dim!=="radius"||!i.get("roundCap",!0),w=d.model,A=w.get("startValue"),C=d.dataToCoord(A||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=C;b&&(a[c][P]||(a[c][P]={p:C,n:C}),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)-C,G=l.dataToCoord(P);Math.abs(F)<m&&(F=(F<0?-1:1)*m),E=R,B=R+F,O=G-h,V=O-v,b&&(a[c][P][k]=B)}else{var Y=d.dataToCoord(I,S)-C,X=l.dataToCoord(P);Math.abs(Y)<y&&(Y=(Y<0?-1:1)*y),E=X+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 lj(r){var e={};L(r,function(a,n){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=DL(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=AL(a);h[v]||f.autoWidthCount++,h[v]=h[v]||{width:0,maxWidth:0};var d=Z(a.get("barWidth"),c),p=Z(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=Z(a.categoryGap,o),l=Z(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 uj={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},cj={splitNumber:5},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.type="polar",e})(Qe);function hj(r){Te(Zl),ki.registerAxisPointerClass("PolarAxisPointer",G9),r.registerCoordinateSystem("polar",J9),r.registerComponentModel(W9),r.registerComponentView(fj),Lo(r,"angle",$9,uj),Lo(r,"radius",U9,cj),r.registerComponentView(ej),r.registerComponentView(nj),r.registerLayout(de(sj,"bar"))}function yg(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 vj=["axisLine","axisTickLabel","axisName"],dj=["splitArea","splitLine"],pj=(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=yg(t),u=new Wt(t,l);L(vj,u.add,u),o.add(this._axisGroup),o.add(u.getGroup()),L(dj,function(c){t.get([c,"show"])&&gj[c](this,this.group,this._axisGroup,t)},this),Nl(s,this._axisGroup,t),r.prototype.render.call(this,t,a,n,i)},e.prototype.remove=function(){ZD(this)},e.type="singleAxis",e})(ki),gj={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});To(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:oe({stroke:s[g%s.length]},_),silent:!0}))}},splitArea:function(r,e,t,a){XD(r,t,a,a)}},xc=(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(xc,Fl.prototype);var mj=(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),ML=["single"],yj=(function(){function r(e,t,a){this.type="single",this.dimension="single",this.dimensions=ML,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 mj(n,rh(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),Do(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=BS(t);return n===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(e,t,a){var n=BS(t);return n===this?this.pointToData(a):null},r})();function BS(r){var e=r.seriesModel,t=r.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function xj(r,e){var t=[];return r.eachComponent("singleAxis",function(a,n){var i=new yj(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 _j={create:xj,dimensions:ML},zS=["x","y"],bj=["width","height"],Sj=(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=Sd(l,1-ff(s)),c=l.dataToPoint(a)[0],f=i.get("type");if(f&&f!=="none"){var h=Dy(i),v=wj[f](s,c,u);v.style=h,t.graphicKey=v.type,t.pointer=v}var d=yg(n);bL(a,t,d,n,i,o)},e.prototype.getHandleTransform=function(t,a,n){var i=yg(a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=My(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=ff(o),u=Sd(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=Sd(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})(Ay),wj={line:function(r,e,t){var a=Ly([e,t[0]],[e,t[1]],ff(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:SL([e-a/2,t[0]],[a,n],ff(r))}}};function ff(r){return r.isHorizontal()?0:1}function Sd(r,e){var t=r.getRect();return[t[zS[e]],t[zS[e]]+t[bj[e]]]}var Tj=(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 Cj(r){Te(Zl),ki.registerAxisPointerClass("SingleAxisPointer",Sj),r.registerComponentView(Tj),r.registerComponentView(pj),r.registerComponentModel(xc),Lo(r,"single",xc,xc.defaultOption),r.registerCoordinateSystem("single",_j)}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.prototype.init=function(t,a,n){var i=Ho(t);r.prototype.init.apply(this,arguments),VS(t,i)},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),VS(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 VS(r,e){var t=r.cellSize,a;$(t)?a=t:a=r.cellSize=[t,t],a.length===1&&(a[1]=a[0]);var n=U([0,1],function(i){return UN(e,i)&&(a[i]="auto"),a[i]!=null&&a[i]!=="auto"});pn(r,e,{type:"box",ignoreSize:n})}var 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.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 J(t)&&t?jN(t,a):ie(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:Ye(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||J(s))&&(s&&(a=Ap(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),A=new Pe({z2:30,style:H(Ye(o,{text:w}),this._monthTextPositionControl(m,d,n,u,l)),silent:p});i.add(A)}}},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||J(c)){c&&(a=Ap(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=Z(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:H(Ye(s,{text:c[_]}),this._weekTextPositionControl(x,i,u,f,p)),silent:g});o.add(b)}}},e.type="calendar",e})(Qe),wd=864e5,Mj=(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=ua(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){$(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+wd))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=FS(t);return n===this?n.dataToPoint(a):null},r.prototype.convertFromPixel=function(e,t,a){var n=FS(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($(e)&&e.length===1&&(e=e[0]),$(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/wd)-Math.floor(t[0].time/wd)+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 FS(r){var e=r.calendarModel,t=r.seriesModel,a=e?e.coordinateSystem:t?t.coordinateSystem:null;return a}function Lj(r){r.registerComponentModel(Aj),r.registerComponentView(Dj),r.registerCoordinateSystem("calendar",Mj)}function Ij(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 GS(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=H({},t),n=r[e],i=t.$action||"merge";i==="merge"?n?(ge(n,a,!0),pn(n,a,{ignoreSize:!0}),_C(t,n),$u(t,n),$u(t,n,"shape"),$u(t,n,"style"),$u(t,n,"extra"),t.clipPath=n.clipPath):r[e]=a:i==="replace"?r[e]=a:i==="remove"&&n&&(r[e]=null)}var LL=["transition","enterFrom","leaveTo"],kj=LL.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function $u(r,e,t){if(t&&(!r[t]&&e[t]&&(r[t]={}),r=r[t],e=e[t]),!(!r||!e))for(var a=t?LL:kj,n=0;n<a.length;n++){var i=a[n];r[i]==null&&e[i]!=null&&(r[i]=e[i])}}function Rj(r,e){if(r&&(r.hv=e.hv=[GS(e,["left","right"]),GS(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 Ej=(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=gT(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];L(l,function(c,f){var h=c.newOption;h&&(u.push(h),Ij(c,h),Pj(o,f,h),Rj(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),HS={path:null,compoundPath:null,group:ue,image:At,text:Pe},yr=Ie(),Nj=(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=ae()},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&&uL(d,v,!!g,!!p)){var m=cL(d,v,!0);!g&&m.textConfig&&(g=l.textConfig=m.textConfig),!p&&m.textContent&&(p=m.textContent)}var y=Oj(l),x=l.$action||"merge",_=x==="merge",b=x==="replace";if(_){var S=!c,w=c;S?w=jS(u,h,l.type,n):(w&&(yr(w).isNew=!1),dL(w)),w&&(mc(w,y,t,{isInit:S}),WS(w,l,o,s))}else if(b){_c(c,l,n,t);var A=jS(u,h,l.type,n);A&&(mc(A,y,t,{isInit:!0}),WS(A,l,o,s))}else x==="remove"&&(hL(c,l),_c(c,l,n,t));var C=n.get(u);if(C&&p)if(_){var D=C.getTextContent();D?D.attr(p):C.setTextContent(new Pe(p))}else b&&C.setTextContent(new Pe(p));if(C){var M=l.clipPath;if(M){var I=M.type,P=void 0,S=!1;if(_){var k=C.getClipPath();S=!k||yr(k).type!==I,P=S?xg(I):k}else b&&(S=!0,P=xg(I));C.setClipPath(P),mc(P,M,t,{isInit:S}),uf(P,M.keyframeAnimation,t)}var R=yr(C);C.setTextConfig(g),R.option=l,Bj(C,t,l),Di({el:C,componentModel:t,itemName:C.name,itemTooltipOption:l.tooltip}),uf(C,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=Z(g.option.width,p?s:m.width)||0,g.height=Z(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={},_=Yf(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 A=u[w],C=x[A];b&&(mi(b)||be(b,A)>=0)?S[A]=C:v[A]=C}Re(v,S,t,0)}else v.attr(x)}}},e.prototype._clear=function(){var t=this,a=this._elMap;a.each(function(n){_c(n,yr(n).option,a,t._lastGraphicModel)}),this._elMap=ae()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e})(Qe);function xg(r){var e=re(HS,r)?HS[r]:cm(r),t=new e({});return yr(t).type=r,t}function jS(r,e,t,a){var n=xg(t);return e.add(n),a.set(r,n),yr(n).id=r,yr(n).isNew=!0,n}function _c(r,e,t,a){var n=r&&r.parent;n&&(r.type==="group"&&r.traverse(function(i){_c(i,e,t,a)}),uh(r,e,a),t.removeKey(yr(r).id))}function WS(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];re(e,i)?r[i]=he(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]=ie(i)?i:null}}),re(e,"draggable")&&(r.draggable=e.draggable),e.name!=null&&(r.name=e.name),e.id!=null&&(r.id=e.id)}function Oj(r){return r=H({},r),L(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(xC),function(e){delete r[e]}),r}function Bj(r,e,t){var a=fe(r).eventData;!r.silent&&!r.ignore&&!a&&(a=fe(r).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:r.name}),a&&(a.info=t.info)}function zj(r){r.registerComponentModel(Ej),r.registerComponentView(Nj),r.registerPreprocessor(function(e){var t=e.graphic;$(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var $S=["x","y","radius","angle","single"],Vj=["cartesian2d","polar","singleAxis"];function Fj(r){var e=r.get("coordinateSystem");return be(Vj,e)>=0}function nn(r){return r+"Axis"}function Gj(r,e){var t=ae(),a=[],n=ae();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 IL(r){var e=r.ecModel,t={infoList:[],infoMap:ae()};return r.eachTargetAxis(function(a,n){var i=e.getComponent(nn(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 Td=(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})(),Cl=(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=US(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this._doInit(i)},e.prototype.mergeOption=function(t){var a=US(t);ge(this.option,t,!0),ge(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=ae(),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($S,function(n){var i=this.getReferringComponents(nn(n),kR);if(i.specified){a=!0;var o=new Td;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 Td;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($S,function(u){if(i){var c=n.findComponents({mainType:nn(u),filter:function(h){return h.get("type",!0)==="category"}});if(c[0]){var f=new Td;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(nn(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(nn(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 US(r){var e={};return L(["start","end","startValue","endValue","throttle"],function(t){r.hasOwnProperty(t)&&(e[t]=r[t])}),e}var Hj=(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})(Cl),Ry=(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),jj=(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})(Ry),lo=L,YS=wr,Wj=(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(Fj(t)){var a=nn(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;lo(["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}),YS(l),YS(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";Ri(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=$j(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;lo(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 lo(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)}});lo(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;lo(["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=lT(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 $j(r,e,t){var a=[1/0,-1/0];lo(t,function(o){TB(a,o.getData(),e)});var n=r.getAxisModel(),i=XA(n.axis.scale,n,a).calculate();return[i.min,i.max]}var Uj={getTargetSeries:function(r){function e(n){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent(nn(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 Wj(n,i,s,r),t.push(o.__dzAxisProxy))});var a=ae();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 Yj(r){r.registerAction("dataZoom",function(e,t){var a=Gj(t,e);L(a,function(n){n.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var XS=!1;function Ey(r){XS||(XS=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,Uj),Yj(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function Xj(r){r.registerComponentModel(Hj),r.registerComponentView(jj),Ey(r)}var _r=(function(){function r(){}return r})(),PL={};function uo(r,e){PL[r]=e}function kL(r){return PL[r]}var Zj=(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=kL(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(t)),ge(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 qj(r,e,t){var a=e.getBoxLayoutParams(),n=e.get("padding"),i={width:t.getWidth(),height:t.getHeight()},o=gt(a,i,n);pi(e.get("orient"),r,e.get("itemGap"),o.width,o.height),Yf(r,a,i,n)}function RL(r,e){var t=Go(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 Kj=(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 Ia(this._featureNames||[],f).add(h).update(h).remove(de(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(Jj(g))_={onclick:x.option.onclick,featureName:g};else{var b=kL(g);if(!b)return;_=new b}c[g]=_}else if(_=c[m],!_)return;_.uid=Fo("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,A){var C=this.option,D=this.iconPaths;C.iconStatus=C.iconStatus||{},C.iconStatus[w]=A,D[w]&&(A==="emphasis"?Ma:La)(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;J(x)?(b={},b[g]=x):b=x,J(_)?(S={},S[g]=_):S=_;var w=d.iconPaths={};L(b,function(A,C){var D=Ol(A,{},{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[C],align:y.get("textAlign"),borderRadius:y.get("textBorderRadius"),padding:y.get("textPadding"),fill:null,font:fm({fontStyle:y.get("textFontStyle"),fontFamily:y.get("textFontFamily"),fontSize:y.get("textFontSize"),fontWeight:y.get("textFontWeight")},a)},ignore:!0});D.setTextContent(I),Di({el:D,componentModel:t,itemName:C,formatterParamsExtra:{title:S[C]}}),D.__title=S[C],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",C])!=="emphasis"&&n.leaveEmphasis(this),I.hide()}),(d.get(["iconStatus",C])==="emphasis"?Ma:La)(D),o.add(D),D.on("click",ee(p.onclick,p,a,n,C)),w[C]=D})}qj(o,t,n),o.add(RL(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&&!ie(x)&&p){var _=x.style||(x.style={}),b=Ll(p,Pe.makeFont(_)),S=d.x+o.x,w=d.y+o.y+s,A=!1;w+b.height>n.getHeight()&&(m.position="top",A=!0);var C=A?-5-b.height:s+10;S+b.width/2>n.getWidth()?(m.position=["100%",C],_.align="right"):S-b.width/2<0&&(m.position=[0,C],_.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 Jj(r){return r.indexOf("my")===0}var Qj=(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>',A=window.open();A.document.write(w),A.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),ZS="__ec_magicType_stack__",eW=[["line","bar"],["stack"]],tW=(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(qS[n]){var s={series:[]},l=function(f){var h=f.subType,v=f.id,d=qS[n](h,v,f,i);d&&(oe(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(eW,function(f){be(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=ge({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),qS={line:function(r,e,t,a){if(r==="bar")return ge({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 ge({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")===ZS;if(r==="line"||r==="bar")return a.setIconStatus("stack",n?"normal":"emphasis"),ge({id:e,stack:n?"":ZS},a.get(["option","stack"])||{},!0)}};ha({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,e){e.mergeOption(r.newOption)});var ch=new Array(60).join("-"),ko=" ";function rW(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 aW(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(ko)],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(ko))}e.push(u.join(`
19
+ `))}),e.join(`
20
+
21
+ `+ch+`
22
+
23
+ `)}function nW(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+ko:"")+n.join(ko))}),a.join(`
24
+ `)}).join(`
25
+
26
+ `+ch+`
27
+
28
+ `)}function iW(r){var e=rW(r);return{value:ze([aW(e.seriesGroupByCategoryAxis),nW(e.other)],function(t){return!!t.replace(/[\n\t\s]/g,"")}).join(`
29
+
30
+ `+ch+`
31
+
32
+ `),meta:e.meta}}function hf(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function oW(r){var e=r.slice(0,r.indexOf(`
33
+ `));if(e.indexOf(ko)>=0)return!0}var _g=new RegExp("["+ko+"]+","g");function sW(r){for(var e=r.split(/\n+/g),t=hf(e.shift()).split(_g),a=[],n=U(t,function(l){return{name:l,data:[]}}),i=0;i<e.length;i++){var o=hf(e[i]).split(_g);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 lW(r){for(var e=r.split(/\n+/g),t=hf(e.shift()),a=[],n=0;n<e.length;n++){var i=hf(e[n]);if(i){var o=i.split(_g),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 uW(r,e){var t=r.split(new RegExp(`
34
+ *`+ch+`
35
+ *`,"g")),a={series:[]};return L(t,function(n,i){if(oW(n)){var o=sW(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=lW(n);a.series.push(o)}}),a}var cW=(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=iW(t);if(ie(f)){var d=f(a.getOption());J(d)?u.innerHTML=d:So(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}Jd(x,"click",S),Jd(_,"click",function(){if(h==null&&f!=null||h!=null&&f==null){S();return}var w;try{ie(h)?w=h(u,a.getOption()):w=uW(c.value,g)}catch(A){throw S(),new Error("Data view format error "+A)}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 fW(r,e){return U(r,function(t,a){var n=e&&e[a];if(se(n)&&!$(n)){var i=se(t)&&!$(t);i||(t={value:t});var o=n.name!=null&&t.name==null;return t=oe(t,n),o&&delete t.name,t}else return t})}ha({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(H({type:"scatter"},a));else{var i=n.get("data");t.push({name:a.name,data:fW(a.data,i)})}}),e.mergeOption(oe({series:t},r.newOption))});var EL=L,NL=Ie();function hW(r,e){var t=Ny(r);EL(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 vW(r){var e=Ny(r),t=e[e.length-1];e.length>1&&e.pop();var a={};return EL(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 dW(r){NL(r).snapshots=null}function pW(r){return Ny(r).length}function Ny(r){var e=NL(r);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var gW=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,a){dW(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);ha({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,e){e.resetOption("recreate")});var mW=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],Oy=(function(){function r(e,t,a){var n=this;this._targetInfoList=[];var i=KS(t,e);L(yW,function(o,s){(!a||!a.include||be(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=Cd[a.brushType](0,i,n);a.__rangeOffset={offset:tw[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=Cd[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=Cd[a.brushType](0,n.coordSys,a.coordRange),o=a.__rangeOffset;a.range=o?tw[a.brushType](i.values,o.offset,xW(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:jM(n),isTargetByCursor:$M(n,e,a.coordSysModel),getLinearBrushOtherExtent:WM(n)}})},r.prototype.controlSeries=function(e,t,a){var n=this.findTargetInfo(e,a);return n===!0||n&&be(n.coordSyses,t.coordinateSystem)>=0},r.prototype.findTargetInfo=function(e,t){for(var a=this._targetInfoList,n=KS(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<JS.length;l++)if(JS[l](n,o))return o}return!0},r})();function bg(r){return r[0]>r[1]&&r.reverse(),r}function KS(r,e){return Hs(r,e,{includeMainTypes:mW})}var yW={grid:function(r,e){var t=r.xAxisModels,a=r.yAxisModels,n=r.gridModels,i=ae(),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){(be(t,f.getAxis("x").model)>=0||be(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:QS.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:QS.geo})})}},JS=[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}],QS={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,e=r.getBoundingRect().clone();return e.applyTransform(di(r)),e}},Cd={lineX:de(ew,0),lineY:de(ew,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=[bg([n[0],i[0]]),bg([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 ew(r,e,t,a){var n=t.getAxis(["x","y"][r]),i=bg(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 tw={lineX:de(rw,0),lineY:de(rw,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 rw(r,e,t,a){return[e[0]-a[r]*t[0],e[1]-a[r]*t[1]]}function xW(r,e){var t=aw(r),a=aw(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 aw(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var Sg=L,_W=DR("toolbox-dataZoom_"),bW=(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 uy(n.getZr()),this._brushController.on("brush",ee(this._onBrush,this)).mount()),TW(t,a,this,i,n),wW(t,a)},e.prototype.onclick=function(t,a,n){SW[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 Oy(By(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)}}),hW(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=Ri(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=[];Sg(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),SW={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(vW(this.ecModel))}};function By(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 wW(r,e){r.setIconStatus("back",pW(e)>1?"emphasis":"normal")}function TW(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 Oy(By(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)}JN("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=By(a),o=Hs(r,i);Sg(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),Sg(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:_W+u+f};h[c]=f,n.push(h)}return n});function CW(r){r.registerComponentModel(Zj),r.registerComponentView(Kj),uo("saveAsImage",Qj),uo("magicType",tW),uo("dataView",cW),uo("dataZoom",bW),uo("restore",gW),Te(Xj)}var AW=(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 OL(r){var e=r.get("confine");return e!=null?!!e:r.get("renderMode")==="richText"}function BL(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 zL=BL(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),DW=BL(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function VL(r,e){if(!r)return e;e=mC(e,!0);var t=r.indexOf(e);return r=t===-1?e:"-"+r.slice(0,t)+"-"+e,r.toLowerCase()}function MW(r,e){var t=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return t?t[e]:null}var LW=VL(DW,"transition"),zy=VL(zL,"transform"),IW="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 kW(r,e,t){if(!J(t)||t==="inside")return"";var a=r.get("backgroundColor"),n=r.get("borderWidth");e=Si(e);var i=PW(t),o=Math.max(Math.round(n)*1.5,6),s="",l=zy+":",u;be(["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 RW(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?","+zy+a:",left"+a+",top"+a),LW+":"+n}function nw(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;"+zy+":"+o+";":[["top",0],["left",0],[zL,o]]}function EW(r){var e=[],t=r.get("fontSize"),a=r.getTextColor();a&&e.push("color:"+a),e.push("font:"+r.getFont());var n=he(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 NW(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=KC(r,"html"),h=l+"px "+u+"px "+o+"px "+s;return a.push("box-shadow:"+h),e&&n&&a.push(RW(n,t)),i&&a.push("background-color:"+i),L(["width","color","radius"],function(v){var d="border-"+v,p=mC(d),g=r.get(p);g!=null&&a.push(d+":"+g+(v==="color"?"":"px"))}),a.push(EW(c)),f!=null&&a.push("padding:"+Go(f).join("px ")+"px"),a.join(";")+";"}function iw(r,e,t,a,n){var i=e&&e.painter;if(t){var o=i&&i.getViewportRoot();o&&i5(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 OW=(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&&(J(i)?document.querySelector(i):So(i)?i:ie(i)&&i(e.getDom()));iw(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=MW(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=IW+NW(e,!this._firstShow,this._longHide)+nw(i[0],i[1],!0)+("border-color:"+Si(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(J(i)&&a.get("trigger")==="item"&&!OL(a)&&(s=kW(a,n,i)),J(e))o.innerHTML=e+s;else if(e){o.innerHTML="",$(e)||(e=[e]);for(var l=0;l<e.length;l++)So(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(iw(a,this._zr,this._container,e,t),a[0]!=null&&a[1]!=null){var n=this.el.style,i=nw(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(ee(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(),sw(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:KC(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=ow(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;sw(n,this._zr,e,t),e=n[0],t=n[1];var i=a.style,o=Ya(i.borderWidth||0),s=ow(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(ee(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r})();function Ya(r){return Math.max(0,r)}function ow(r){var e=Ya(r.shadowBlur||0),t=Ya(r.shadowOffsetX||0),a=Ya(r.shadowOffsetY||0);return{left:Ya(e-t),right:Ya(e+t),top:Ya(e-a),bottom:Ya(e+a)}}function sw(r,e,t,a){r[0]=t,r[1]=a,r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var zW=new Le({shape:{x:-1,y:-1,width:2,height:2}}),VW=(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=ER(n.get("renderMode"));this._tooltipContent=i==="richText"?new BW(a):new OW(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")?$o(this,"_updatePosition",50,"fixRate"):hl(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel,a=t.get("triggerOn");wL("itemTooltip",this._api,ee(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=lw(i,n);this._ticket="";var s=i.dataByCoordSys,l=jW(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=zW;c.x=i.x,c.y=i.y,c.update(),fe(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=TL(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(lw(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=_s([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=fe(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;ii(n,function(c){if(fe(c).dataIndex!=null)return l=c,!0;if(fe(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=ee(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=_s([a.tooltipOption],i),l=this._renderMode,u=[],c=St("section",{blocks:[],noHeader:!0}),f=[],h=new cv;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=_L(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(A){var C=n.getSeriesByIndex(A.seriesIndex),D=A.dataIndexInside,M=C.getDataParams(D);if(!(M.dataIndex<0)){M.axisDim=x.axisDim,M.axisIndex=x.axisIndex,M.axisType=x.axisType,M.axisId=x.axisId,M.axisValue=Bm(_.axis,{value:b}),M.axisValueLabel=S,M.marker=h.makeTooltipMarker("item",Si(M.color),l);var I=Y1(C.formatTooltip(D,!0,null)),P=I.frag;if(P){var k=_s([C],i).get("valueFormatter");w.blocks.push(k?H({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=Q1(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=fe(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=_s([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 cv;m.marker=y.makeTooltipMarker("item",Si(m.color),v);var x=Y1(u.formatTooltip(c,!1,f)),_=p.get("order"),b=p.get("valueFormatter"),S=x.frag,w=S?Q1(b?H({valueFormatter:b},S):S,y,v,_,i.get("useUTC"),p.get("textStyle")):x.text,A="item_"+u.name+"_"+c;this._showOrMove(p,function(){this._showTooltipContent(p,w,m,A,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=fe(a),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(J(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=_s(f,this._tooltipModel,v?{position:v}:null),p=d.get("content"),g=Math.random()+"",m=new cv;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(J(h)){var g=t.ecModel.get("useUTC"),m=$(n)?n[0]:n,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;v=h,y&&(v=Hf(m.axisValue,v,g)),v=yC(v,n,!0)}else if(ie(h)){var x=ee(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"||$(a))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!$(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),ie(a)&&(a=a([n,i],s,o.el,d,{viewSize:[u,c],contentSize:f.slice()})),$(a))n=Z(a[0],u),i=Z(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(J(a)&&l){var m=HW(a,d,f,t.get("borderWidth"));n=m[0],i=m[1]}else{var m=FW(n,i,o,u,c,h?null:20,v?null:20);n=m[0],i=m[1]}if(h&&(n-=uw(h)?f[0]/2:h==="right"?f[0]:0),v&&(i-=uw(v)?f[1]/2:v==="bottom"?f[1]:0),OL(t)){var m=GW(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()||(hl(this,"_updatePosition"),this._tooltipContent.dispose(),mg("itemTooltip",a))},e.type="tooltip",e})(Qe);function _s(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)),J(o)&&(o={formatter:o}),o&&(n=new Ge(o,n,a)))}return n}function lw(r,e){return r.dispatchAction||ee(e.dispatchAction,e)}function FW(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 GW(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 HW(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 uw(r){return r==="center"||r==="middle"}function jW(r,e,t){var a=Jg(r).queryOptionMap,n=a.keys()[0];if(!(!n||n==="series")){var i=Il(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=fe(u).tooltipConfig;if(c&&c.name===r.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}function WW(r){Te(Zl),r.registerComponentModel(AW),r.registerComponentView(VW),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},nt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},nt)}var $W=["rect","polygon","keep","clear"];function UW(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;$(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),YW(s),e&&!s.length&&s.push.apply(s,$W)}}function YW(r){var e={};L(r,function(t){e[t]=1}),r.length=0,L(e,function(t,a){r.push(a)})}var cw=L;function fw(r){if(r){for(var e in r)if(r.hasOwnProperty(e))return!0}}function wg(r,e,t){var a={};return cw(e,function(i){var o=a[i]=n();cw(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 FL(r,e,t){var a;L(t,function(n){e.hasOwnProperty(n)&&fw(e[n])&&(a=!0)}),a&&L(t,function(n){e.hasOwnProperty(n)&&fw(e[n])?r[n]=le(e[n]):delete r[n]})}function XW(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 Dm(t,s,f)}function u(f,h){sA(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 ZW(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 Dm(s,f,b)}function c(b,S){sA(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 qW(r){var e=r.brushType,t={point:function(a){return hw[e].point(a,t,r)},rect:function(a){return hw[e].rect(a,t,r)}};return t}var hw={lineX:vw(0),lineY:vw(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])&&Kn(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(Kn(a,n,i)||Kn(a,n+o,i)||Kn(a,n,i+s)||Kn(a,n+o,i+s)||xe.create(r).contain(l[0],l[1])||Ls(n,i,n+o,i,a)||Ls(n,i,n,i+s,a)||Ls(n+o,i,n+o,i+s,a)||Ls(n,i+s,n+o,i+s,a))return!0}}};function vw(r){var e=["x","y"],t=["width","height"];return{point:function(a,n,i){if(a){var o=i.range,s=a[r];return bs(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(),bs(s[0],o)||bs(s[1],o)||bs(o[0],s)||bs(o[1],s)}}}}function bs(r,e){return e[0]<=r&&r<=e[1]}var dw=["inBrush","outOfBrush"],Ad="__ecBrushSelect",Tg="__ecInBrushSelectEvent";function GL(r){r.eachComponent({mainType:"brush"},function(e){var t=e.brushTargetManager=new Oy(e.option,r);t.setInputRanges(e.areas,r)})}function KW(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})}),GL(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=t$[b.brushType],w=oe({boundingRect:S?S(b):void 0},b);return w.selectors=qW(w),w}),g=wg(o.option,dw,function(b){b.mappingMethod="fixed"});$(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(A,C){A==="active"&&(h[C]=1)})}function _(b,S,w){if(!(!b.brushSelector||e$(o,S))&&(L(p,function(C){o.brushTargetManager.controlSeries(C,b,r)&&w.push(C),d=d||y(w)}),m(S)&&y(w))){var A=b.getData();A.each(function(C){pw(b,w,A,C)&&(h[C]=1)})}}r.eachSeries(function(b,S){var w={seriesId:b.id,seriesIndex:S,seriesName:b.name,dataIndex:[]};l.selected.push(w);var A=v[S],C=b.getData(),D=m(S)?function(M){return h[M]?(w.dataIndex.push(C.getRawIndex(M)),"inBrush"):"outOfBrush"}:function(M){return pw(b,A,C,M)?(w.dataIndex.push(C.getRawIndex(M)),"inBrush"):"outOfBrush"};(m(S)?d:y(A))&&XW(dw,g,C,D)})}),JW(e,n,i,a,t)}function JW(r,e,t,a,n){if(n){var i=r.getZr();if(!i[Tg]){i[Ad]||(i[Ad]=QW);var o=$o(i,Ad,t,e);o(r,a)}}}function QW(r,e){if(!r.isDisposed()){var t=r.getZr();t[Tg]=!0,r.dispatchAction({type:"brushSelect",batch:e}),t[Tg]=!1}}function pw(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 e$(r,e){var t=r.option.seriesIndex;return t!=null&&t!=="all"&&($(t)?be(t,e)<0:e!==t)}var t$={rect:function(r){return gw(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&&gw(e)}};function gw(r){return new xe(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var r$=(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 uy(a.getZr())).on("brush",ee(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){GL(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),a$="#ddd",n$=(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&&FL(n,t,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:a$},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=U(t,function(a){return mw(this.option,a)},this))},e.prototype.setBrushOption=function(t){this.brushOption=mw(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 mw(r,e){return ge({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new Ge(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},e,!0)}var i$=["rect","polygon","lineX","lineY","keep","clear"],o$=(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:i$.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 s$(r){r.registerComponentView(r$),r.registerComponentModel(n$),r.registerPreprocessor(UW),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,KW),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),uo("brush",o$)}var l$=(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),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.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=he(t.get("textBaseline"),t.get("textVerticalAlign")),c=new Pe({style:Ye(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),h=t.get("subtext"),v=new Pe({style:Ye(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(){Gc(d,"_"+t.get("target"))}),p&&v.on("click",function(){Gc(p,"_"+t.get("subtarget"))}),fe(c).eventData=fe(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 c$(r){r.registerComponentModel(l$),r.registerComponentView(u$)}var yw=(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(Oo(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),HL=(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=_n(yw.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})(yw);ut(HL,Zf.prototype);var f$=(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),h$=(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),Dd=Math.PI,xw=Ie(),v$=(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=p$(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?"+":"-":J(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:Dd/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*Dd/180;var y,x,_,b=h.get("position",!0),S=v&&h.get("showPlayBtn",!0),w=v&&h.get("showPrevBtn",!0),A=v&&h.get("showNextBtn",!0),C=0,D=f;b==="left"||b==="bottom"?(S&&(y=[0,0],C+=g),w&&(x=[C,0],C+=g),A&&(_=[D-d,0],D-=g)):(S&&(y=[D-d,0],D-=g),w&&(x=[0,0],C+=g),A&&(_=[D-d,0],D-=g));var M=[C,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;sa(s,s,[-l,-u]),Ai(s,s,-Dd/2),sa(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||J(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,A){_[w]+=S[w][A]-b[w][A]}},e.prototype._createAxis=function(t,a){var n=a.getData(),i=a.get("axisType"),o=d$(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 h$("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:H({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:oe({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:ee(o._changeTimeline,o,u.value)},g=_w(f,h,a,p);g.ensureState("emphasis").style=v.getItemStyle(),g.ensureState("progress").style=d.getItemStyle(),vi(g);var m=fe(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:ee(o._changeTimeline,o,f),silent:!1,style:Ye(v,{text:c.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});m.ensureState("emphasis").style=Ye(d),m.ensureState("progress").style=Ye(p),a.add(m),vi(m),xw(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",ee(this._changeTimeline,this,f?"-":"+")),h(t.prevBtnPosition,"prev",ee(this._changeTimeline,this,f?"+":"-")),h(t.playPosition,c?"stop":"play",ee(this._handlePlayClick,this,!c),!0);function h(v,d,p,g){if(v){var m=Fr(he(i.get(["controlStyle",d+"BtnSize"]),o),o),y=[0,-m/2,m,m],x=g$(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),vi(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=ee(u._handlePointerDrag,u),f.ondragend=ee(u._handlePointerDragend,u),bw(f,u._progressLine,s,n,i,!0)},onUpdate:function(f){bw(f,u._progressLine,s,n,i)}};this._currentPointer=_w(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",xw(n[i]).dataIndex<=t)},e.type="timeline.slider",e})(f$);function d$(r,e){if(e=e||r.get("type"),e)switch(e){case"category":return new th({ordinalMeta:r.getCategories(),extent:[1/0,-1/0]});case"time":return new Nm({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new Pa}}function p$(r,e){return gt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},r.get("padding"))}function g$(r,e,t,a){var n=a.style,i=Ol(r.get(["controlStyle",e]),a||{},new xe(t[0],t[1],t[2],t[3]));return n&&i.setStyle(n),i}function _w(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=ge({rectHover:!0,z2:100},a,!0);var u=Uo(r.get("symbolSize"));a.scaleX=u[0]/2,a.scaleY=u[1]/2;var c=Li(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 bw(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 m$(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)}),oe({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 y$(r){var e=r&&r.timeline;$(e)||(e=e?[e]:[]),L(e,function(t){t&&x$(t)})}function x$(r){var e=r.type,t={number:"value",time:"time"};if(t[e]&&(r.axisType=t[e],delete r.type),Sw(r),ei(r,"controlPosition")){var a=r.controlStyle||(r.controlStyle={});ei(a,"position")||(a.position=r.controlPosition),a.position==="none"&&!ei(a,"show")&&(a.show=!1,delete a.position),delete r.controlPosition}L(r.data||[],function(n){se(n)&&!$(n)&&(!ei(n,"value")&&ei(n,"name")&&(n.value=n.name),Sw(n))})}function Sw(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]&&!ei(n,s)&&(n[s]=o)}),t.label&&!ei(a,"emphasis")&&(a.emphasis=t.label,delete t.label)}function ei(r,e){return r.hasOwnProperty(e)}function _$(r){r.registerComponentModel(HL),r.registerComponentView(v$),r.registerSubTypeDefaulter("timeline",function(){return"slider"}),m$(r),r.registerPreprocessor(y$)}function Vy(r,e){if(!r)return!1;for(var t=$(r)?r:[r],a=0;a<t.length;a++)if(t[a]&&t[a][e])return!0;return!1}function Uu(r){yi(r,"label",["show"])}var Yu=Ie(),Ra=(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=Yu(s)[o];if(!l||!l.data){Yu(s)[o]=null;return}u?u._mergeOption(l,a,!0):(i&&Uu(l),L(l.data,function(c){c instanceof Array?(Uu(c[0]),Uu(c[1])):Uu(c)}),u=this.createMarkerModelFromSeries(l,this,a),H(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),Yu(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=Zf.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 Yu(t)[a]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e})(De);ut(Ra,Zf.prototype);var 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.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})(Ra);function Cg(r){return!(isNaN(parseFloat(r.x))&&isNaN(parseFloat(r.y)))}function S$(r){return!isNaN(parseFloat(r.x))&&!isNaN(parseFloat(r.y))}function Xu(r,e,t,a,n,i){var o=[],s=gn(e,a),l=s?e.getCalculationInfo("stackResultDimension"):a,u=Fy(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=ea(e.get(a,c));return h=Math.min(h,20),h>=0&&(o[i]=+o[i].toFixed(h)),[o,f]}var Md={min:de(Xu,"min"),max:de(Xu,"max"),average:de(Xu,"average"),median:de(Xu,"median")};function Al(r,e){if(e){var t=r.getData(),a=r.coordinateSystem,n=a&&a.dimensions;if(!S$(e)&&!$(e.coord)&&$(n)){var i=jL(e,t,a,r);if(e=le(e),e.type&&Md[e.type]&&i.baseAxis&&i.valueAxis){var o=be(n,i.baseAxis.dim),s=be(n,i.valueAxis.dim),l=Md[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||!$(n))e.coord=[];else for(var u=e.coord,c=0;c<2;c++)Md[u[c]]&&(u[c]=Fy(t,t.mapDimension(n[c]),u[c]));return e}}function jL(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(w$(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 w$(r,e){var t=r.getData().getDimensionInfo(e);return t&&t.coordDim}function Dl(r,e){return r&&r.containData&&e.coord&&!Cg(e)?r.containData(e.coord):!0}function T$(r,e,t){return r&&r.containZone&&e.coord&&t.coord&&!Cg(e)&&!Cg(t)?r.containZone(e.coord,t.coord):!0}function WL(r,e){return r?function(t,a,n,i){var o=i<2?t.coord&&t.coord[i]:t.value;return un(o,e[i])}:function(t,a,n,i){return un(t.value,e[i])}}function Fy(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 Ld=Ie(),Gy=(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=ae()},e.prototype.render=function(t,a,n){var i=this,o=this.markerGroupMap;o.each(function(s){Ld(s).keep=!1}),a.eachSeries(function(s){var l=Ra.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,a,n)}),o.each(function(s){!Ld(s).keep&&i.group.remove(s.group)})},e.prototype.markKeep=function(t){Ld(t).keep=!0},e.prototype.toggleBlurSeries=function(t,a){var n=this;L(t,function(i){var o=Ra.getMarkerModelFromSeries(i,n.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(a?NT(l):im(l))})}})},e.type="marker",e})(Qe);function ww(r,e,t){var a=e.coordinateSystem;r.each(function(n){var i=r.getItemModel(n),o,s=Z(i.get("x"),t.getWidth()),l=Z(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 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.updateTransform=function(t,a,n){a.eachSeries(function(i){var o=Ra.getMarkerModelFromSeries(i,"markPoint");o&&(ww(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 Hl),f=A$(o,t,a);a.setData(f),ww(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(ie(d)||ie(p)||ie(g)||ie(m)){var x=a.getRawValue(h),_=a.getDataParams(h);ie(d)&&(d=d(x,_)),ie(p)&&(p=p(x,_)),ie(g)&&(g=g(x,_)),ie(m)&&(m=m(x,_))}var b=v.getModel("itemStyle").getItemStyle(),S=zl(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){fe(v).dataModel=a})}),this.markKeep(c),c.group.silent=a.get("silent")||t.get("silent")},e.type="markPoint",e})(Gy);function A$(r,e,t){var a;r?a=U(r&&r.dimensions,function(s){var l=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return H(H({},l),{name:s,ordinalMeta:null})}):a=[{name:"value",type:"float"}];var n=new jt(a,t),i=U(t.get("data"),de(Al,e));r&&(i=ze(i,de(Dl,r)));var o=WL(!!r,a);return n.initData(i,null,o),n}function D$(r){r.registerComponentModel(b$),r.registerComponentView(C$),r.registerPreprocessor(function(e){Vy(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var M$=(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})(Ra),Zu=Ie(),L$=function(r,e,t,a){var n=r.getData(),i;if($(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=jL(a,n,e,r);s=u.valueAxis;var c=OA(n,u.valueDataDim);l=Fy(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=[Al(r,i[0]),Al(r,i[1]),H({},i[2])];return g[2].type=g[2].type||null,ge(g[2],g[0]),ge(g[2],g[1]),g};function vf(r){return!isNaN(r)&&!isFinite(r)}function Tw(r,e,t,a){var n=1-r,i=a.dimensions[r];return vf(e[n])&&vf(t[n])&&e[r]===t[r]&&a.getAxis(i).containData(e[r])}function I$(r,e){if(r.type==="cartesian2d"){var t=e[0].coord,a=e[1].coord;if(t&&a&&(Tw(1,t,a,r)||Tw(0,t,a,r)))return!0}return Dl(r,e[0])&&Dl(r,e[1])}function Id(r,e,t,a,n){var i=a.coordinateSystem,o=r.getItemModel(e),s,l=Z(o.get("x"),n.getWidth()),u=Z(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(Pi(i,"cartesian2d")){var v=i.getAxis("x"),d=i.getAxis("y"),c=i.dimensions;vf(r.get(c[0],e))?s[0]=v.toGlobalCoord(v.getExtent()[t?0:1]):vf(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=Ra.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=Zu(o).from,u=Zu(o).to;l.each(function(c){Id(l,c,!0,i,n),Id(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 ly);this.group.add(c.group);var f=k$(o,t,a),h=f.from,v=f.to,d=f.line;Zu(a).from=h,Zu(a).to=v,a.setData(d);var p=a.get("symbol"),g=a.get("symbolSize"),m=a.get("symbolRotate"),y=a.get("symbolOffset");$(p)||(p=[p,p]),$(g)||(g=[g,g]),$(m)||(m=[m,m]),$(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(_){fe(_).dataModel=a,_.traverse(function(b){fe(b).dataModel=a})});function x(_,b,S){var w=_.getItemModel(b);Id(_,b,S,t,i);var A=w.getModel("itemStyle").getItemStyle();A.fill==null&&(A.fill=zl(l,"color")),_.setItemVisual(b,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:he(w.get("symbolOffset",!0),y[S?0:1]),symbolRotate:he(w.get("symbolRotate",!0),m[S?0:1]),symbolSize:he(w.get("symbolSize"),g[S?0:1]),symbol:he(w.get("symbol",!0),p[S?0:1]),style:A})}this.markKeep(c),c.group.silent=a.get("silent")||t.get("silent")},e.type="markLine",e})(Gy);function k$(r,e,t){var a;r?a=U(r&&r.dimensions,function(u){var c=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return H(H({},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"),de(L$,e,r,t));r&&(s=ze(s,de(I$,r)));var l=WL(!!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 R$(r){r.registerComponentModel(M$),r.registerComponentView(P$),r.registerPreprocessor(function(e){Vy(e.series,"markLine")&&(e.markLine=e.markLine||{})})}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.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})(Ra),qu=Ie(),N$=function(r,e,t,a){var n=a[0],i=a[1];if(!(!n||!i)){var o=Al(r,n),s=Al(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=Gg([{},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 df(r){return!isNaN(r)&&!isFinite(r)}function Cw(r,e,t,a){var n=1-r;return df(e[n])&&df(t[n])}function O$(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 Pi(r,"cartesian2d")?t&&a&&(Cw(1,t,a)||Cw(0,t,a))?!0:T$(r,n,i):Dl(r,n)||Dl(r,i)}function Aw(r,e,t,a,n){var i=a.coordinateSystem,o=r.getItemModel(e),s,l=Z(o.get(t[0]),n.getWidth()),u=Z(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(Pi(i,"cartesian2d")){var y=i.getAxis("x"),x=i.getAxis("y"),p=r.get(t[0],e),g=r.get(t[1],e);df(p)?s[0]=y.toGlobalCoord(y.getExtent()[t[0]==="x0"?0:1]):df(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 Dw=[["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=Ra.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=U(Dw,function(f){return Aw(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=z$(o,t,a);a.setData(f),f.each(function(h){var v=U(Dw,function(A){return Aw(f,h,A,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=zl(l,"color");S.fill||(S.fill=w,J(S.fill)&&(S.fill=Lc(S.fill,.4))),S.stroke||(S.stroke=w),f.setItemVisual(h,"style",S)}),f.diff(qu(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=qu(c).data.getItemGraphicEl(v),p=f.getItemLayout(h);p.allClipped?d&&c.group.remove(d):(d?Re(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=qu(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:J(p.fill)?Lc(p.fill,1):"#000"}),It(h,d),et(h,null,null,d.get(["emphasis","disabled"])),fe(h).dataModel=a}),qu(c).data=f,c.group.silent=a.get("silent")||t.get("silent")},e.type="markArea",e})(Gy);function z$(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 H(H({},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"),de(N$,e,r,t));r&&(s=ze(s,de(O$,r)));var l=r?function(u,c,f,h){var v=u.coord[Math.floor(h/2)][h%2];return un(v,n[h])}:function(u,c,f,h){return un(u.value,n[h])};return a.initData(s,null,l),a.hasItemOption=!0,a}function V$(r){r.registerComponentModel(E$),r.registerComponentView(B$),r.registerPreprocessor(function(e){Vy(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var F$=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"])}},Ag=(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"]),$(a)&&L(a,function(i,o){J(i)&&(i={type:i}),a[o]=ge(i,F$(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&&Kg(l)&&a.push(l.name)}),this._availableNames=n;var i=this.get("data")||a,o=ae(),s=U(i,function(l){return(J(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])&&be(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),eo=de,Dg=L,Ku=ue,$L=(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 Ku),this.group.add(this._selectorGroup=new Ku),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(oe({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=RL(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=ae(),f=a.get("selectedMode"),h=[];n.eachRawSeries(function(v){!v.get("legendHoverLink")&&h.push(v.id)}),Dg(a.getData(),function(v,d){var p=v.get("name");if(!this.newlineDisabled&&(p===""||p===`
38
+ `)){var g=new Ku;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",eo(Mw,p,null,i,h)).on("mouseover",eo(Mg,m.name,null,i,h)).on("mouseout",eo(Lg,m.name,null,i,h)),n.ssr&&S.eachChild(function(w){var A=fe(w);A.seriesIndex=m.seriesIndex,A.dataIndex=d,A.ssrType="legend"}),c.set(p,!0)}else n.eachRawSeries(function(w){if(!c.get(p)&&w.legendVisualProvider){var A=w.legendVisualProvider;if(!A.containName(p))return;var C=A.indexOfName(p),D=A.getItemVisual(C,"style"),M=A.getItemVisual(C,"legendIcon"),I=sr(D.fill);I&&I[3]===0&&(I[3]=.2,D=H(H({},D),{fill:wa(I,"rgba")}));var P=this._createItem(w,p,d,v,a,t,{},D,M,f,i);P.on("click",eo(Mw,null,p,i,h)).on("mouseover",eo(Mg,null,p,i,h)).on("mouseout",eo(Lg,null,p,i,h)),n.ssr&&P.eachChild(function(k){var R=fe(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();Dg(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}),vi(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 _=G$(c,i,l,u,v,g,h),b=new Ku,S=i.getModel("textStyle");if(ie(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(H$({itemWidth:d,itemHeight:p,icon:c,iconRotate:w,itemStyle:_.itemStyle,symbolKeepAspect:y}))}var A=s==="left"?d+5:-5,C=s,D=o.get("formatter"),M=a;J(D)&&D?M=D.replace("{name}",a??""):ie(D)&&(M=D(a));var I=g?S.getTextColor():i.get("inactiveColor");b.add(new Pe({style:Ye(S,{text:M,x:A,y:p/2,fill:I,align:C,verticalAlign:"middle"},{inheritColor:I})}));var P=new Le({shape:b.getBoundingRect(),style:{fill:"transparent"}}),k=i.getModel("tooltip");return k.get("show")&&Di({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),vi(b),b.__legendDataIndex=n,b},e.prototype.layoutInner=function(t,a,n,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();pi(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){pi("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 G$(r,e,t,a,n,i,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),Dg(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:Ao(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 H$(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 Mw(r,e,t,a){Lg(r,e,t,a),t.dispatchAction({type:"legendToggleSelect",name:r??e}),Mg(r,e,t,a)}function UL(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 Mg(r,e,t,a){UL(t)||t.dispatchAction({type:"highlight",seriesName:r,name:e,excludeSeriesId:a})}function Lg(r,e,t,a){UL(t)||t.dispatchAction({type:"downplay",seriesName:r,name:e,excludeSeriesId:a})}function j$(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 Ss(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),Lw(s,n),i.push(s.componentIndex)});var o={};return t.eachComponent("legend",function(s){L(n,function(l,u){s[l?"select":"unSelect"](u)}),Lw(s,o)}),a?{selected:o,legendIndex:i}:{name:e.name,selected:o}}function Lw(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);re(t,n)?t[n]=t[n]&&i:t[n]=i}}),t}function W$(r){r.registerAction("legendToggleSelect","legendselectchanged",de(Ss,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",de(Ss,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",de(Ss,"inverseSelect")),r.registerAction("legendSelect","legendselected",de(Ss,"select")),r.registerAction("legendUnSelect","legendunselected",de(Ss,"unSelect"))}function YL(r){r.registerComponentModel(Ag),r.registerComponentView($L),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,j$),r.registerSubTypeDefaulter("legend",function(){return"plain"}),W$(r)}var $$=(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=Ho(t);r.prototype.init.call(this,t,a,n),Iw(this,t,i)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.call(this,t,a),Iw(this,this.option,t)},e.type="legend.scroll",e.defaultOption=_n(Ag.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})(Ag);function Iw(r,e,t){var a=r.getOrient(),n=[1,1];n[a.index]=0,pn(e,t,{type:"box",ignoreSize:!!n})}var Pw=ue,Pd=["width","height"],kd=["x","y"],U$=(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 Pw),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Pw)},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=$(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=Ol(a.get("pageIcons",!0)[a.getOrient().name][g],{onclick:ee(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=Pd[u],f=kd[u],h=Pd[1-u],v=kd[1-u];o&&pi("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;pi(t.get("orient"),c,t.get("itemGap"),i?n.width:null,i?null:n.height),pi("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=he(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(A){A.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(t);return w.pageIndex!=null&&Re(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",J(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=Pd[o],l=kd[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(),A=w[l]+S[l];return{s:A,e:A+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})($L);function Y$(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 X$(r){Te(YL),r.registerComponentModel($$),r.registerComponentView(U$),Y$(r)}function Z$(r){Te(YL),Te(X$)}var q$=(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=_n(Cl.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e})(Cl),Hy=Ie();function K$(r,e,t){Hy(r).coordSysRecordMap.each(function(a){var n=a.dataZoomInfoMap.get(e.uid);n&&(n.getRange=t)})}function J$(r,e){for(var t=Hy(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||XL(t,o))}}}function XL(r,e){if(e){r.removeKey(e.model.uid);var t=e.controller;t&&t.dispose()}}function Q$(r,e){var t={model:e,containsPoint:de(tU,e),dispatchAction:de(eU,r),dataZoomInfoMap:null,controller:null},a=t.controller=new Yl(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 eU(r,e){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function tU(r,e,t,a){return r.coordinateSystem.containPoint([t,a])}function rU(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 aU(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(e,t){var a=Hy(t),n=a.coordSysRecordMap||(a.coordSysRecordMap=ae());n.each(function(i){i.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=IL(i);L(o.infoList,function(s){var l=s.model.uid,u=n.get(l)||n.set(l,Q$(t,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=ae());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){XL(n,i);return}var c=rU(l);o.enable(c.controlType,c.opt),o.setPointerChecker(i.containsPoint),$o(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var nU=(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(),K$(n,t,{pan:ee(Rd.pan,this),zoom:ee(Rd.zoom,this),scrollMove:ee(Rd.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){J$(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e})(Ry),Rd={zoom:function(r,e,t,a){var n=this.range,i=n.slice(),o=r.axisModels[0];if(o){var s=Ed[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(Ri(0,i,[0,100],0,c.minSpan,c.maxSpan),this.range=i,n[0]!==i[0]||n[1]!==i[1])return i}},pan:kw(function(r,e,t,a,n,i){var o=Ed[a]([i.oldX,i.oldY],[i.newX,i.newY],e,n,t);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:kw(function(r,e,t,a,n,i){var o=Ed[a]([0,0],[i.scrollDelta,i.scrollDelta],e,n,t);return o.signal*(r[1]-r[0])*i.scrollDelta})};function kw(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(Ri(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var Ed={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 ZL(r){Ey(r),r.registerComponentModel(q$),r.registerComponentView(nU),aU(r)}var iU=(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=_n(Cl.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})(Cl),ws=Le,Rw=7,oU=1,Nd=30,sU=7,Ts="horizontal",Ew="vertical",lU=5,uU=["line","bar","candlestick","scatter"],cU={easing:"cubicOut",duration:100,delay:0},fU=(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=ee(this._onBrush,this),this._onBrushEnd=ee(this._onBrushEnd,this)},e.prototype.render=function(t,a,n,i){if(r.prototype.render.apply(this,arguments),$o(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(){hl(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?sU:0,o=this._findCoordRect(),s={width:a.getWidth(),height:a.getHeight()},l=this._orient===Ts?{right:s.width-o.x-o.width,top:s.height-Nd-Rw-i,width:o.width,height:Nd}:{right:Rw,top:o.y,width:Nd,height:o.height},u=Ho(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===Ew&&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===Ts&&!o?{scaleY:l?1:-1,scaleX:1}:n===Ts&&o?{scaleY:l?1:-1,scaleX:-1}:n===Ew&&!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 ws({silent:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new ws({shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:"transparent"},z2:0,onclick:ee(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(C,D){if(x>0&&D%x){y+=m;return}var M=C==null||isNaN(C)||C==="",I=M?0:Fe(C,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(C){var D=b.getModel(C?"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 A=S(w===1);this._displayables.sliderGroup.add(A),this._displayables.dataShadowSegs.push(A)}},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&&be(uU,u.get("type"))<0)){var c=i.getComponent(nn(o),s).axis,f=hU(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 ws({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(h),o.add(new ws({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:oU,fill:"rgba(0,0,0,0)"}})),L([0,1],function(x){var _=l.get("handleIcon");!Wc[_]&&_.indexOf("path://")<0&&_.indexOf("image://")<0&&(_="path://"+_);var b=lt(_,-1,0,2,2,null,!0);b.attr({cursor:Nw(this._orient),draggable:!0,drift:ee(this._onDragMove,this,x),ondragend:ee(this._onDragEnd,this),onmouseover:ee(this._showDataInfo,this,!0),onmouseout:ee(this._showDataInfo,this,!1),z2:5});var S=b.getBoundingRect(),w=l.get("handleSize");this._handleHeight=Z(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(),vi(b);var A=l.get("handleColor");A!=null&&(b.style.fill=A),o.add(n[x]=b);var C=l.getModel("textStyle"),D=l.get("handleLabel")||{},M=D.show||!1;t.add(i[x]=new Pe({silent:!0,invisible:!M,style:Ye(C,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:C.getTextColor(),font:C.getFont()}),z2:10}))},this);var v=h;if(f){var d=Z(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:Nw(this._orient),drift:ee(this._onDragMove,this,"all"),ondragstart:ee(this._showDataInfo,this,!0),ondragend:ee(this._onDragEnd,this),onmouseover:ee(this._showDataInfo,this,!0),onmouseout:ee(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];Ri(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=di(n.handles[d].parent,this.group),g=Ff(d===0?"right":"left",p),m=this._handleWidth/2+lU,y=Vr([h[d]+(d===0?-m:m),this._size[1]/2],p);i[d].setStyle({x:y[0],y:y[1],verticalAlign:o===Ts?"middle":g,align:o===Ts?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 ie(i)?i(t,s):J(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,Aa(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 me(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&&(Aa(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 ws({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?cU:null,start:a[0],end:a[1]})},e.prototype._findCoordRect=function(){var t,a=IL(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})(Ry);function hU(r){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[r]}function Nw(r){return r==="vertical"?"ns-resize":"ew-resize"}function qL(r){r.registerComponentModel(iU),r.registerComponentView(fU),Ey(r)}function vU(r){Te(ZL),Te(qL)}var KL={get:function(r,e,t){var a=le((dU[r]||{})[e]);return t&&$(a)?a[a.length-1]:a}},dU={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]}},Ow=_t.mapVisual,pU=_t.eachVisual,gU=$,Bw=L,mU=wr,yU=Fe,pf=(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&&FL(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var a=this.stateList;t=ee(t,this),this.controllerVisuals=wg(this.option.controller,a,t),this.targetVisuals=wg(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||["<",">"],$(t)&&(t=t.slice(),u=!0);var c=a?t:u?[f(t[0]),f(t[1])]:f(t);if(J(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(ie(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=mU([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={});ge(i,n),ge(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){gU(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]={},Bw(d,function(g,m){if(_t.isValidType(m)){var y=KL.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";Bw(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=Ow(x.symbol,function(S){return S==="none"?g:S});var _=x.symbolSize;if(_!=null){var b=-1/0;pU(_,function(S){S>b&&(b=S)}),x.symbolSize=Ow(_,function(S){return yU(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),zw=[20,140],xU=(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]=zw[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=zw[1])},e.prototype._resetRange=function(){var t=this.getExtent(),a=this.option.range;!a||a.auto?(t.auto=1,this.option.range=t):$(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=Vw(this,"outOfRange",this.getExtent()),n=Vw(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=_n(pf.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})(pf);function Vw(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 JL=(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=Go(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;Yf(t,a.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},e.prototype.doRender=function(t,a,n,i){},e.type="visualMap",e})(Qe),Fw=[["left","right","width"],["top","bottom","height"]];function QL(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=Fw[o],l=[0,null,10],u={},c=0;c<3;c++)u[Fw[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 bc(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,_U=L,Gw=Math.min,Od=Math.max,bU=12,SU=6,wU=(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=ee(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=ee(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:Ye(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=QL(a,this.api,i),u=n.mainGroup=this._createBarGroup(l),c=new ue;u.add(c),c.add(n.outOfRange=Hw()),c.add(n.inRange=Hw(null,s?Ww(this._orient):null,ee(this._dragHandle,this,"all",!1),ee(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=Od(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=ee(this._dragHandle,this,n,!1),u=ee(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=Ww(this._orient);f.attr({cursor:h,draggable:!0,drift:l,ondragend:u,onmousemove:function(m){Aa(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(),ai(f,!0),a.add(f);var v=this.visualMapModel.textStyleModel,d=new Pe({cursor:h,draggable:!0,drift:l,onmousemove:function(m){Aa(m.event)},ondragend:u,style:Ye(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(H({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:Ye(f,{x:0,y:0,text:""})});this.group.add(h);var v=[(o==="horizontal"?i/2:SU)+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():jw(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]];Ri(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 El(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);_U([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],di(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,di(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}},A={style:{x:y[0],y:y[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var C={duration:100,easing:"cubicInOut",additive:!0};f.x=m.x,f.y=m.y,f.animateTo(w,C),x.animateTo(A,C)}else f.attr(w),x.attr(A);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]=Gw(Od(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=Gw(Od(o[0],t),o[1]);var l=TU(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||jw(n))&&(v=this._hoverLinkDataIndices=n.findTargetDataIndices(f));var d=IR(h,v);this._dispatchHighDown("downplay",bc(d[0],n)),this._dispatchHighDown("highlight",bc(d[1],n))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var a;if(ii(t.target,function(l){var u=fe(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",bc(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=di(a,i?null:this.group);return $(t)?Vr(t,o,n):Ff(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})(JL);function Hw(r,e,t,a){return new Xt({shape:{points:r},draggable:!!t,cursor:e,drift:t,onmousemove:function(n){Aa(n.event)},ondragend:a})}function TU(r,e,t){var a=bU/2,n=r.get("hoverLinkDataSize");return n&&(a=qr(n,e,t,!0)/2),a}function jw(r){var e=r.get("hoverLinkOnHandle");return!!(e??r.get("realtime"))}function Ww(r){return r==="vertical"?"ns-resize":"ew-resize"}var CU={type:"selectDataRange",event:"dataRangeSelected",update:"update"},AU=function(r,e){e.eachComponent({mainType:"visualMap",query:r},function(t){t.setSelected(r.selected)})},DU=[{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(ZW(a.stateList,a.targetVisuals,ee(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(ee(MU,null,r,n))||{stops:[],outerColors:[]},o=n.getDataDimensionIndex(t);o>=0&&(i.dimension=o,a.push(i))}}),r.getData().setVisual("visualMeta",a)}}];function MU(r,e,t,a){for(var n=e.targetVisuals[a],i=_t.prepareVisualTypes(n),o={color:zl(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 $w=L;function LU(r){var e=r&&r.visualMap;$(e)||(e=e?[e]:[]),$w(e,function(t){if(t){to(t,"splitList")&&!to(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var a=t.pieces;a&&$(a)&&$w(a,function(n){se(n)&&(to(n,"start")&&!to(n,"min")&&(n.min=n.start),to(n,"end")&&!to(n,"max")&&(n.max=n.end))})}})}function to(r,e){return r&&r.hasOwnProperty&&r.hasOwnProperty(e)}var Uw=!1;function eI(r){Uw||(Uw=!0,r.registerSubTypeDefaulter("visualMap",function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),r.registerAction(CU,AU),L(DU,function(e){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,e)}),r.registerPreprocessor(LU))}function tI(r){r.registerComponentModel(xU),r.registerComponentView(wU),eI(r)}var IU=(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]=KL.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=_n(pf.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})(pf),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]}),V0(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),Yw(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),Yw(e,r),V0(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 Yw(r,e){var t=r.inverse;(r.orient==="vertical"?!t:t)&&e.reverse()}var kU=(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=ee(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),pi(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:bc(s.findTargetDataIndices(a),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,a=t.option;if(a.orient==="vertical")return QL(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:Ye(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})(JL);function rI(r){r.registerComponentModel(IU),r.registerComponentView(kU),eI(r)}function RU(r){Te(tI),Te(rI)}var EU={label:{enabled:!0},decal:{show:!1}},Xw=Ie(),NU={};function OU(r,e){var t=r.getModel("aria");if(!t.get("enabled"))return;var a=le(EU);ge(a.label,r.getLocaleModel().get("aria"),!1),ge(t.option,a,!1),n(),i();function n(){var u=t.getModel("decal"),c=u.get("show");if(c){var f=ae();r.eachSeries(function(h){if(!h.isColorBySeries()){var v=f.get(h.type);v||(v={},f.set(h.type,v)),Xw(h).scope=v}}),r.eachRawSeries(function(h){if(r.isSeriesFiltered(h))return;if(ie(h.enableAriaDecal)){h.enableAriaDecal();return}var v=h.getData();if(h.isColorBySeries()){var y=Lp(h.ecModel,h.name,NU,r.getSeriesCount()),x=v.getVisual("decal");v.setVisual("decal",_(x,y))}else{var d=h.getRawData(),p={},g=Xw(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+"",A=Lp(h.ecModel,w,g,m),C=v.getItemVisual(S,"decal");v.setItemVisual(S,"decal",_(C,A))})}function _(b,S){var w=b?H(H({},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=oe(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(A,C){if(C<p){var D=void 0,M=A.get("name"),I=M?"withName":"withoutName";D=h>1?f.get(["series","multiple",I]):f.get(["series","single",I]),D=o(D,{seriesId:A.seriesIndex,seriesName:A.get("name"),seriesType:l(A.subType)});var P=A.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),G=B?ze(P.getValues(V),function(X,q){return be(B,q)===-1}):P.getValues(V),Y=f.get(["data",F?"withName":"withoutName"]);O.push(o(Y,{name:F,value:G.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(!J(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 zU(r){r.registerPreprocessor(BU),r.registerVisual(r.PRIORITY.VISUAL.ARIA,OU)}var Zw={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},VU=(function(){function r(e){var t=this._condVal=J(e)?new RegExp(e):qk(e)?e:null;if(t==null){var a="";Be(a)}}return r.prototype.evaluate=function(e){var t=typeof e;return J(t)?this._condVal.test(e):ke(t)?this._condVal.test(e+""):!1},r})(),FU=(function(){function r(){}return r.prototype.evaluate=function(){return this.value},r})(),GU=(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})(),HU=(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})(),jU=(function(){function r(){}return r.prototype.evaluate=function(){return!this.child.evaluate()},r})(),WU=(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 jy(r,e){if(r===!0||r===!1){var t=new FU;return t.value=r,t}var a="";return aI(r)||Be(a),r.and?qw("and",r,e):r.or?qw("or",r,e):r.not?$U(r,e):UU(r,e)}function qw(r,e,t){var a=e[r],n="";$(a)||Be(n),a.length||Be(n);var i=r==="and"?new GU:new HU;return i.children=U(a,function(o){return jy(o,t)}),i.children.length||Be(n),i}function $U(r,e){var t=r.not,a="";aI(t)||Be(a);var n=new jU;return n.child=jy(t,e),n.child||Be(a),n}function UU(r,e){for(var t="",a=e.prepareGetValue(r),n=[],i=Me(r),o=r.parser,s=o?zC(o):null,l=0;l<i.length;l++){var u=i[l];if(!(u==="parser"||e.valueGetterAttrMap.get(u))){var c=re(Zw,u)?Zw[u]:u,f=r[u],h=s?s(f):f,v=R3(c,h)||c==="reg"&&new VU(h);v||Be(t),n.push(v)}}n.length||Be(t);var d=new WU;return d.valueGetterParam=a,d.valueParser=s,d.getValue=e.getValue,d.subCondList=n,d}function aI(r){return se(r)&&!Ot(r)}var YU=(function(){function r(e,t){this._cond=jy(e,t)}return r.prototype.evaluate=function(){return this._cond.evaluate()},r})();function XU(r,e){return new YU(r,e)}var ZU={type:"echarts:filter",transform:function(r){for(var e=r.upstream,t,a=XU(r.config,{valueGetterAttrMap:ae({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;re(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}}},qU={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?zC(v):null;v&&!y&&Be(a),i.push({dimIdx:m.index,parser:y,comparator:new FC(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 KU(r){r.registerTransform(ZU),r.registerTransform(qU)}var JU=(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 WC(this),K1(this)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.call(this,t,a),K1(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:ia},e})(De),QU=(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 eY(r){r.registerComponentModel(JU),r.registerComponentView(QU)}var Xr=ca.CMD;function vo(r,e){return Math.abs(r-e)<1e-5}function Ig(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){vo(P,R)&&vo(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,G=k<P?-1:1,Y=Math.cos(P),X=Math.sin(P),q=Math.cos(k),Q=Math.sin(k),pe=Y*B+R,ce=X*O+E,ne=q*B+R,te=Q*O+E,W=B*F*G,j=O*F*G;n.push(pe-W*X,ce+j*Y,ne+W*Q,te-j*q,ne,te)}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++],A=e[g++]+w;g+=1;var C=!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(A)*b+x,o=Math.sin(A)*S+_;for(var D=(C?-1:1)*Math.PI/2,M=w;C?M>A:M<A;M+=D){var I=C?Math.max(M+D,A):Math.min(M+D,A);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 Pg(r,e,t,a,n,i,o,s,l,u){if(vo(r,t)&&vo(e,a)&&vo(n,o)&&vo(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,A=_-S*S;if(w<f&&b>=0&&A<f&&S>=0){l.push(o,s);return}var C=[],D=[];vn(r,t,n,o,.5,C),vn(e,a,i,s,.5,D),Pg(C[0],D[0],C[1],D[1],C[2],D[2],C[3],D[3],l,u),Pg(C[4],D[4],C[5],D[5],C[6],D[6],C[7],D[7],l,u)}function tY(r,e){var t=Ig(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++];Pg(s,l,c,f,h,v,d,p,o,e),s=d,l=p}a.push(o)}return a}function nI(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 Kw(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=nI([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 rY(r,e,t){for(var a=r.width,n=r.height,i=a>n,o=nI([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 Jw(r,e,t,a){return r*a-t*e}function aY(r,e,t,a,n,i,o,s){var l=t-r,u=a-e,c=o-n,f=s-i,h=Jw(c,f,l,u);if(Math.abs(h)<1e-6)return null;var v=r-n,d=e-i,p=Jw(v,d,c,f)/h;return p<0||p>1?null:new me(p*l+r,p*u+e)}function nY(r,e,t){var a=new me;me.sub(a,t,e),a.normalize();var n=new me;me.sub(n,r,e);var i=n.dot(a);return i}function ro(r,e){var t=r[r.length-1];t&&t[0]===e[0]&&t[1]===e[1]||r.push(e)}function iY(r,e,t){for(var a=r.length,n=[],i=0;i<a;i++){var o=r[i],s=r[(i+1)%a],l=aY(o[0],o[1],s[0],s[1],e.x,e.y,t.x,t.y);l&&n.push({projPt:nY(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++)ro(d,r[i].slice());ro(d,v),ro(d,h);for(var i=c.idx+1;i<=u.idx+a;i++)ro(p,r[i%a].slice());return ro(p,h),ro(p,v),[{points:d},{points:p}]}function Qw(r){var e=r.points,t=[],a=[];Ef(e,t,a);var n=new xe(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 me,c=new me;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),iY(e,u,c)}function gf(r,e,t,a){if(t===1)a.push(e);else{var n=Math.floor(t/2),i=r(e);gf(r,i[0],n,a),gf(r,i[1],t-n,a)}return a}function oY(r,e){for(var t=[],a=0;a<e;a++)t.push(sm(r));return t}function sY(r,e){e.setStyle(r.style),e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel}function lY(r){for(var e=[],t=0;t<r.length;)e.push([r[t++],r[t++]]);return e}function uY(r,e){var t=[],a=r.shape,n;switch(r.type){case"rect":rY(a,e,t),n=Le;break;case"sector":Kw(a,e,t),n=Yt;break;case"circle":Kw({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(tY(r.getUpdatedPathProxy(),o),function(m){return lY(m)}),l=s.length;if(l===0)gf(Qw,{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=[];Ef(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||(gf(Qw,{points:v.poly},d,t),h-=d)}}n=Xt;break}if(!n)return oY(r,e);for(var p=[],u=0;u<t.length;u++){var g=new n;g.setShape(t[u]),sY(r,g),p.push(g)}return p}function cY(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 A=w/S;vn(d,g,y,_,A,n),vn(p,m,x,b,A,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 e2(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 fY(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=cY(l,u),c=t[0],f=t[1],a=c,n=f):(f=e2(n||l,l),c=l):(c=e2(a||u,u),f=u),i.push(c),o.push(f)}return[i,o]}function t2(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 hY(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 vY(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 dY(r,e,t,a){for(var n=[],i,o=0;o<r.length;o++){var s=r[o],l=e[o],u=t2(s),c=t2(l);i==null&&(i=u[2]<0!=c[2]<0);var f=[],h=[],v=0,d=1/0,p=[],g=s.length;i&&(s=vY(s));for(var m=hY(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),A=Math.cos(S),C=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*A-P*w,R=I*w+P*A;p[x]=k,p[x+1]=R;var E=k-D,B=R-M;C+=E*E+B*B}if(C<d){d=C,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 mf(r){return r.__isCombineMorphing}var iI="__mOriginal_";function yf(r,e,t){var a=iI+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 Js(r,e){var t=iI+e;r[t]&&(r[e]=r[t],r[t]=null)}function r2(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 oI(r,e){var t=r.getUpdatedPathProxy(),a=e.getUpdatedPathProxy(),n=fY(Ig(t),Ig(a)),i=n[0],o=n[1],s=r.getComputedTransform(),l=e.getComputedTransform();function u(){this.transform=null}s&&r2(i,s),l&&r2(o,l),yf(e,"updateTransform",{replace:u}),e.transform=null;var c=dY(i,o,10,Math.PI),f=[];yf(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(_),A=Math.cos(_);ac(p,b,S,v);for(var C=0;C<y.length;C+=2){var D=y[C],M=y[C+1],I=x[C],P=x[C+1],k=D*d+I*v,R=M*d+P*v;f[C]=k*A-R*w+p[0],f[C+1]=k*w+R*A+p[1]}var E=f[0],B=f[1];h.moveTo(E,B);for(var C=2;C<y.length;){var I=f[C++],P=f[C++],O=f[C++],V=f[C++],F=f[C++],G=f[C++];E===I&&B===P&&O===F&&V===G?h.lineTo(F,G):h.bezierCurveTo(I,P,O,V,F,G),E=F,B=G}}}})}function Wy(r,e,t){if(!r||!e)return e;var a=t.done,n=t.during;oI(r,e),e.__morphT=0;function i(){Js(e,"buildPath"),Js(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return e.animateTo({__morphT:1},oe({during:function(o){e.dirtyShape(),n&&n(o)},done:function(){i(),a&&a()}},t)),e}function pY(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 xf(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:pY(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 sI(r){return uY(r.path,r.count)}function kg(){return{fromIndividuals:[],toIndividuals:[],count:0}}function gY(r,e,t){var a=[];function n(b){for(var S=0;S<b.length;S++){var w=b[S];mf(w)?n(w.childrenRef()):w instanceof Ce&&a.push(w)}}n(r);var i=a.length;if(!i)return kg();var o=t.dividePath||sI,s=o({path:e,count:i});if(s.length!==i)return console.error("Invalid morphing: unmatched splitted path"),kg();a=xf(a),s=xf(s);for(var l=t.done,u=t.during,c=t.individualDelay,f=new xa,h=0;h<i;h++){var v=a[h],d=s[h];d.parent=e,d.copyTransform(f),c||oI(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)}yf(e,"addSelfToZr",{after:function(b){p(b)}}),yf(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,Js(e,"addSelfToZr"),Js(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?oe({delay:(t.delay||0)+c(h,m,a[h],s[h]),done:x},t):t;Wy(a[h],s[h],_)}else e.__morphT=0,e.animateTo({__morphT:1},oe({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++)Js(r[b],"updateTransform");l&&l()}},t));return e.__zr&&p(e.__zr),{fromIndividuals:a,toIndividuals:s,count:m}}function mY(r,e,t){var a=e.length,n=[],i=t.dividePath||sI;function o(v){for(var d=0;d<v.length;d++){var p=v[d];mf(p)?o(p.childrenRef()):p instanceof Ce&&n.push(p)}}if(mf(r)){o(r.childrenRef());var s=n.length;if(s<a)for(var l=0,u=s;u<a;u++)n.push(sm(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"),kg()}n=xf(n),e=xf(e);for(var f=t.individualDelay,u=0;u<a;u++){var h=f?oe({delay:(t.delay||0)+f(u,a,n[u],e[u])},t):t;Wy(n[u],e[u],h)}return{fromIndividuals:n,toIndividuals:e,count:e.length}}function a2(r){return $(r[0])}function n2(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 yY={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=sm(r.path);n.setStyle("opacity",t),e.push(n)}return e},split:null};function Bd(r,e,t,a,n,i){if(!r.length||!e.length)return;var o=zo("update",a,n);if(!(o&&o.duration>0))return;var s=a.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;a2(r)&&(u=r,c=e),a2(e)&&(u=e,c=r);function f(m,y,x,_,b){var S=m.many,w=m.one;if(S.length===1&&!b){var A=y?S[0]:w,C=y?w:S[0];if(mf(A))f({many:[A],one:C},!0,x,_,!0);else{var D=s?oe({delay:s(x,_)},l):l;Wy(A,C,D),i(A,C,A,C,D)}}else for(var M=oe({dividePath:yY[t],individualDelay:s&&function(B,O,V,F){return s(B+x,_)}},l),I=y?gY(S,w,M):mY(w,S,M),P=I.fromIndividuals,k=I.toIndividuals,R=P.length,E=0;E<R;E++){var D=s?oe({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?n2(c,u):n2(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 qn(r){if(!r)return[];if($(r)){for(var e=[],t=0;t<r.length;t++)e.push(qn(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 lI=1e4,xY=0,i2=1,o2=2,_Y=Ie();function bY(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 SY(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 s2(r,e,t,a){var n=a?"itemChildGroupId":"itemGroupId",i=bY(r,n);if(i){var o=SY(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 l2(r){var e=[];return L(r,function(t){var a=t.data,n=t.dataGroupId;if(!(a.count()>lI))for(var i=a.getIndices(),o=0;o<i.length;o++)e.push({data:a,groupId:s2(a,o,n,!1),childGroupId:s2(a,o,n,!0),divide:t.divide,dataIndex:o})}),e}function zd(r,e,t){r.traverse(function(a){a instanceof Ce&&Je(a,{style:{opacity:0}},e,{dataIndex:t,isFrom:!0})})}function Vd(r){if(r.parent){var e=r.getComputedTransform();r.setLocalTransform(e),r.parent.remove(r)}}function ao(r){r.stopAnimation(),r.isGroup&&r.traverse(function(e){e.stopAnimation()})}function wY(r,e,t){var a=zo("update",t,e);a&&r.traverse(function(n){if(n instanceof Cr){var i=gN(n);i&&n.animateFrom({style:i},a)}})}function TY(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 uI(r,e,t){var a=l2(r),n=l2(e);function i(x,_,b,S,w){(b||x)&&_.animateFrom({style:b&&b!==x?H(H({},b.style),x.style):x.style},w)}var o=!1,s=xY,l=ae(),u=ae();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=i2;break}var h=n[c].childGroupId;if(h&&l.get(h)){s=o2;break}}function v(x,_){return function(b){var S=b.data,w=b.dataIndex;return _?S.getId(w):x?s===i2?b.childGroupId:b.groupId:s===o2?b.childGroupId:b.groupId}}var d=TY(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,A=b.data.getItemGraphicEl(b.dataIndex),C=S.data.getItemGraphicEl(S.dataIndex);if(A===C){C&&wY(C,S.dataIndex,w);return}A&&p[A.id]||C&&(ao(C),A?(ao(A),Vd(A),o=!0,Bd(qn(A),qn(C),S.divide,w,x,i)):zd(C,w,x))}new Ia(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,A=S.getItemGraphicEl(b.dataIndex),C=ze(U(_,function(D){return a[D].data.getItemGraphicEl(a[D].dataIndex)}),function(D){return D&&D!==A&&!p[D.id]});A&&(ao(A),C.length?(L(C,function(D){ao(D),Vd(D)}),o=!0,Bd(qn(C),qn(A),b.divide,w,x,i)):zd(A,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(C){return n[C].data.getItemGraphicEl(n[C].dataIndex)}),function(C){return C&&C!==S}),A=n[x[0]].data.hostModel;w.length&&(L(w,function(C){return ao(C)}),S?(ao(S),Vd(S),o=!0,Bd(qn(S),qn(w),b.divide,A,x[0],i)):L(w,function(C){return zd(C,A,x[0])}))}}).updateManyToMany(function(x,_){new Ia(_,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=zo("update",b,0);S&&b.isAnimationEnabled()&&w&&w.duration>0&&S.group.traverse(function(A){A instanceof Ce&&!A.animators.length&&A.animateFrom({style:{opacity:0}},w)})})}function u2(r){var e=r.getModel("universalTransition").get("seriesKey");return e||r.id}function c2(r){return $(r)?r.sort().join(","):r}function Za(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function CY(r,e){var t=ae(),a=ae(),n=ae();return L(r.oldSeries,function(i,o){var s=r.oldDataGroupIds[o],l=r.oldData[o],u=u2(i),c=c2(u);a.set(c,{dataGroupId:s,data:l}),$(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=u2(i),u=c2(l),c=a.get(u);if(c)t.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:Za(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:Za(s),data:s}]});else if($(l)){var f=[];L(l,function(d){var p=a.get(d);p.data&&f.push({dataGroupId:p.dataGroupId,divide:Za(p.data),data:p.data})}),f.length&&t.set(u,{oldSeries:f,newSeries:[{dataGroupId:o,data:s,divide:Za(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:Za(h.data)}],newSeries:[]},t.set(h.key,v)),v.newSeries.push({dataGroupId:o,data:s,divide:Za(s)})}}}}),t}function f2(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 AY(r,e,t,a){var n=[],i=[];L(je(r.from),function(o){var s=f2(e.oldSeries,o);s>=0&&n.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:Za(e.oldData[s]),groupIdDim:o.dimension})}),L(je(r.to),function(o){var s=f2(t.updatedSeries,o);if(s>=0){var l=t.updatedSeries[s].getData();i.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:Za(l),groupIdDim:o.dimension})}}),n.length>0&&i.length>0&&uI(n,i,a)}function DY(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][dc]=!0)})})}),r.registerUpdateLifecycle("series:transition",function(e,t,a){var n=_Y(t);if(n.oldSeries&&a.updatedSeries&&a.optionChanged){var i=a.seriesTransition;if(i)L(je(i),function(v){AY(v,n,a,t)});else{var o=CY(n,a);L(o.keys(),function(v){var d=o.get(v);uI(d.oldSeries,d.newSeries,t)})}L(a.updatedSeries,function(v){v[dc]&&(v[dc]=!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()<lI&&(l.push(s[f]),u.push(s[f].get("dataGroupId")),c.push(h))}})}Te([Bz]);Te([kz]);Te([aV,yV,MV,s6,y6,nF,kF,pG,BG,jG,JG,U8,m7,M7,W7,X7,nH,fH,SH,MH,zH,b9]);Te(F9);Te(hj);Te(sM);Te(Cj);Te(UM);Te(Lj);Te(zj);Te(CW);Te(WW);Te(Zl);Te(s$);Te(c$);Te(_$);Te(D$);Te(R$);Te(V$);Te(Z$);Te(vU);Te(ZL);Te(qL);Te(RU);Te(tI);Te(rI);Te(zU);Te(KU);Te(eY);Te(DY);Te(JB);function MY(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 LY(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 IY(r){const e=_e.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=kY,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=A=>{if(!A)return;const C=at[u],D=t.length,M=Math.min(Math.max(n,0),D-1),I={};a.forEach((G,Y)=>{const X=a.length===1?0:Math.round(Y*(D-1)/(a.length-1));I[X]=G});const P=[];let k=a[0]??"";for(let G=0;G<D;G++){const Y=I[G];Y&&(k=Y),P[G]=k}const R=Math.min(...t),E=Math.max(...t),B=E-R||1,O=bO(A),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:C,width:1,type:[5,4]},label:{show:!1}},formatter:G=>{const X=(Array.isArray(G)?G[0]:G)?.dataIndex??0;return`<div style="font-weight:500">${P[X]??""}</div><div style="opacity:.75;margin-top:2px">${MY(t[X]??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:(G,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:C},emphasis:{scale:1.3,itemStyle:{borderColor:N.bg,borderWidth:2}},lineStyle:{color:C,width:2.5},areaStyle:{color:{image:LY(C),repeat:"repeat"},origin:"start"},markLine:{symbol:"none",silent:!0,animation:!1,label:{show:!1},lineStyle:{color:C,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:C},label:{show:!1},data:[{coord:[M,t[M]]}]}}]};O.setOption(V);const F=new ResizeObserver(()=>O.resize());return F.observe(A),()=>{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=qe("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 kY(r){return r.length?r.reduce(RY,0)/r.length:0}function RY(r,e){return r+e}function EY(r){const e=_e.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(IY,{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 NY(r){const e=_e.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=qe("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:qe("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 no={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 OY(r){const e=_e.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?no.good:s<h?no.warn:no.poor).solid;let g;e[0]!==f?(g={start:0,end:f,band:no.good},e[0]=f,e[1]=g):g=e[1];let m;e[2]!==f||e[3]!==h?(m={start:f,end:h,band:no.warn},e[2]=f,e[3]=h,e[4]=m):m=e[4];let y;e[5]!==h?(y={start:h,end:1,band:no.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(ce=>({...ce,fill:ce.end>ce.start?d((Math.min(s,ce.end)-ce.start)/(ce.end-ce.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",A=c?"80ms":"0ms";let C;e[19]!==A?(C={transitionDelay:A},e[19]=A,e[20]=C):C=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]!==C?(P=T.jsxs("div",{className:"reveal flex flex-col gap-1","data-show":w,style:C,children:[M,I]}),e[28]=M,e[29]=I,e[30]=w,e[31]=C,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((ce,ne)=>T.jsx("div",{className:"absolute inset-y-0",style:{left:`${ce.start*100}%`,width:`${(ce.end-ce.start)*100}%`,background:ce.band.tint},children:T.jsx("div",{className:"h-full transition-[width] duration-700 ease-out",style:{width:c?`${ce.fill*100}%`:"0%",background:ce.band.solid}})},ne)),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 G=`${v}%`;let Y;e[43]!==G?(Y={left:G,top:"100%",marginTop:10,color:N.muted},e[43]=G,e[44]=Y):Y=e[44];let X;e[45]!==Y||e[46]!==u?(X=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]=X):X=e[47];let q;e[48]!==k||e[49]!==E||e[50]!==F||e[51]!==X?(q=T.jsxs("div",{className:"reveal relative w-full","data-show":k,style:E,children:[F,X]}),e[48]=k,e[49]=E,e[50]=F,e[51]=X,e[52]=q):q=e[52];let Q;e[53]!==P||e[54]!==q?(Q=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,q]})}),e[53]=P,e[54]=q,e[55]=Q):Q=e[55];let pe;return e[56]!==Q||e[57]!==S?(pe=T.jsxs("div",{className:"flex h-full flex-col",children:[S,Q]}),e[56]=Q,e[57]=S,e[58]=pe):pe=e[58],pe}function BY(r){return Math.min(1,Math.max(0,r))}function zY(r){const e=_e.c(80),{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(bP,{...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(uk,{...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(wk,{...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(FY).map(VY).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(MP,{...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(EY,{...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(OY,{...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(NY,{...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(yP,{...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(nk,{...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(SP,{...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(A2,{...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(dk,{...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(vk,{...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(Dk,{...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(Pk,{...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(CP,{...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":{const c=a.meta.scores?.coverage.checks_probed,f=a.meta.scores?.coverage.checks_total;let h;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||e[77]!==c||e[78]!==f?(h=T.jsx(JP,{...o,...u,faviconUrl:a.meta.faviconUrl,domain:a.meta.domain,brand:a.meta.brand,initial:a.meta.initial,checksProbed:c,checksTotal:f}),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,e[78]=f,e[79]=h):h=e[79],h}default:return o}}function VY(r){return{title:r.title,slideKey:r.key}}function FY(r){return r.template.template!=="cover"&&r.template.template!=="cta"}const Ju=r=>String(r).padStart(2,"0"),Qu=()=>on()?po.get_distinct_id():void 0;function GY({deck:r}){const e=r.slides.length,[t,a]=Ne.useState(0),[n,i]=Ne.useState(null),[o,s]=Ne.useState(!1),[l,u]=Ne.useState(!1),[c,f]=Ne.useState(""),[h,v]=Ne.useState(!1),[d,p]=Ne.useState(!1),g=Ne.useRef(!1),m=Ne.useRef(!1),[y,x]=Ne.useState(!1),_=Ne.useRef(null),[b,S]=Ne.useState(!1),[w,A]=Ne.useState(null),[C,D]=Ne.useState("above"),[M,I]=Ne.useState(""),P=w2(`https://${r.meta.domain}/`),k=r.slides[t],R=Ne.useRef(!1),E=Ne.useRef(null),B=W=>{const j=r.slides[W];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:W,slides:e,slide_title:j.title,template:j.template.template,surface:"deck_v2"}),W===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=Ne.useEffectEvent(W=>{const j=Math.min(Math.max(W,0),e-1);j!==t&&(history.pushState({slideIndex:j},""),S(!1),a(j),B(j),O())}),F=Ne.useEffectEvent(W=>{R.current||W===0||(R.current=!0,V(t+W),setTimeout(()=>{R.current=!1},650))}),G=W=>{if(!W)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&&on()&&po.setPersonProperties(void 0,{inbound_share_id:K});const Se=j.get("d");if(Se&&j.get("utm_source")==="email"){const ve=j.get("email_run_id");Ke("report_email_link_opened",{domain:r.meta.domain,surface:"deck_v2",...ve?{email_run_id:ve}:{}}),UI(Se).then(Ve=>{on()&&po.setPersonProperties(void 0,{...ve?{inbound_email_run_id:ve}:{},...Ve?{inbound_email_domain:Ve.domain}:{}})}).catch(()=>{ve&&on()&&po.setPersonProperties(void 0,{inbound_email_run_id:ve})})}B(0),history.replaceState({slideIndex:0},"");const ye=ve=>{const Ve=ve.state?.slideIndex??0;S(!1),a(Ve),B(Ve),O()};window.addEventListener("popstate",ye);const we=ve=>{["ArrowDown","ArrowRight","PageDown"," "].includes(ve.key)?(ve.preventDefault(),V(t+1)):["ArrowUp","ArrowLeft","PageUp"].includes(ve.key)&&(ve.preventDefault(),V(t-1))};return window.addEventListener("keydown",we),()=>{window.removeEventListener("popstate",ye),window.removeEventListener("keydown",we),_.current&&clearTimeout(_.current)}},Y=W=>{if(!W)return;const j=(Oe,Ze)=>{let He=Oe;for(;He&&He!==W;){if(He.scrollHeight>He.clientHeight+1){const ur=getComputedStyle(He).overflowY;if(ur==="auto"||ur==="scroll"){const Ei=He.scrollTop<=0,ft=He.scrollTop+He.clientHeight>=He.scrollHeight-1;if(Ze?!ft:!Ei)return!0}}He=He.parentElement}return!1},K=Oe=>{let Ze=Oe;for(;Ze&&Ze!==W;){if(Ze.scrollWidth>Ze.clientWidth+1){const He=getComputedStyle(Ze).overflowX;if(He==="auto"||He==="scroll")return!0}Ze=Ze.parentElement}return!1},Se=Oe=>{const Ze=Math.abs(Oe.deltaY)>=Math.abs(Oe.deltaX);if(Ze&&j(Oe.target,Oe.deltaY>0)||!Ze&&K(Oe.target))return;const He=Ze?Oe.deltaY:Oe.deltaX;Math.abs(He)<12||(Oe.preventDefault(),F(He>0?1:-1))};let ye=0,we=0,ve=null;const Ve=Oe=>{ye=Oe.touches[0]?.clientX??0,we=Oe.touches[0]?.clientY??0,ve=Oe.target},ct=Oe=>{if(Oe.touches.length>1)return;const Ze=ye-(Oe.touches[0]?.clientX??0),He=we-(Oe.touches[0]?.clientY??0);Math.abs(Ze)>Math.abs(He)&&K(ve)||j(ve,He>0)||Oe.cancelable&&Oe.preventDefault()},it=Oe=>{const Ze=ye-(Oe.changedTouches[0]?.clientX??0),He=we-(Oe.changedTouches[0]?.clientY??0),ur=Math.abs(He)>=Math.abs(Ze)?He:Ze;Math.abs(ur)<=50||ve?.closest?.("canvas")&&Math.abs(He)<Math.abs(Ze)*1.5||Math.abs(He)>=Math.abs(Ze)&&j(ve,He>0)||Math.abs(Ze)>Math.abs(He)&&K(ve)||F(ur>0?1:-1)};W.addEventListener("wheel",Se,{passive:!1}),W.addEventListener("touchstart",Ve,{passive:!0}),W.addEventListener("touchmove",ct,{passive:!1}),W.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",()=>{W.removeEventListener("wheel",Se),W.removeEventListener("touchstart",Ve),W.removeEventListener("touchmove",ct),W.removeEventListener("touchend",it),wt.style.overscrollBehaviorY=Dt,document.body.style.overscrollBehaviorY=Lr}},X=W=>{if(E.current=W,!W)return;const j=K=>{E.current&&!E.current.contains(K.target)&&S(!1)};return document.addEventListener("pointerdown",j),()=>document.removeEventListener("pointerdown",j)},q=W=>`${r.meta.domain}:${W.key}:${Math.random().toString(36).slice(2,10)}`,Q=(W,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()}#${W.key}`},pe=W=>`🔍 ${r.meta.brand}
40
+
41
+ "${W.headline.replace(/\n/g," ")}"
42
+
43
+ Relatório gratuito do seu site →`,ce=async(W,j)=>{if(window.matchMedia("(pointer: coarse)").matches&&typeof navigator<"u"&&navigator.share){try{const ye=q(j),we=Q(j,ye);await navigator.share({title:`${r.meta.brand} — ${j.title}`,text:pe(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:ye,sharer_person_id:Qu()})}catch{}return}const Se=W.currentTarget.getBoundingClientRect();A(Se),D(Se.top<window.innerHeight/2?"below":"above"),I(q(j)),S(ye=>!ye)},ne=async W=>{const j=q(W),K=Q(W,j);try{await navigator.clipboard?.writeText(K),i("Link copiado"),Ke("report_slide_shared",{domain:r.meta.domain,slide_key:W.key,slide_index:t,surface:"deck_v2",method:"copy_link",share_id:j,sharer_person_id:Qu()})}catch{i("Erro ao copiar")}S(!1),setTimeout(()=>i(null),1800)};return k?T.jsxs("div",{ref:W=>{const j=G(W),K=Y(W);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:W=>ce(W,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((W,j)=>T.jsx("div",{className:"h-full w-full overflow-hidden",children:T.jsx("div",{className:qe("mx-auto flex h-full w-full max-w-[1440px] flex-col sm:py-8",W.template.template==="cta"?"py-0":W.template.template==="cover"?"py-3":"py-6"),children:T.jsx(zY,{slide:W,deck:r,active:j===t,onNavigate:K=>V(r.slides.findIndex(Se=>Se.key===K))})})},W.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((W,j)=>T.jsxs("button",{type:"button","aria-label":`Go to ${W.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:W.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)"}})]},W.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:[Ju(t+1),"/",Ju(e)]}),T.jsx("button",{type:"button",onClick:W=>ce(W,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:W=>wf(W,{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 duration-300 ease-out hover:scale-105 lg:hidden",style:{background:N.lime,color:N.forest},children:[T.jsx("span",{children:"Ver diagnóstico completo"}),T.jsx(dt,{name:"arrow_forward",size:"large"})]}),T.jsxs("button",{type:"button",onClick:W=>ce(W,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(W=>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:[Xy(W.name,W.logoUrl)&&T.jsx("img",{src:Xy(W.name,W.logoUrl),alt:"",width:14,height:14,className:"rounded-sm",onError:j=>{j.currentTarget.style.display="none"}}),T.jsx("span",{className:"whitespace-nowrap",children:W.name})]},W.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(W=>!W)},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:qe("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(W=>{const j=!W;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:qe("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:W=>{f(W.target.value),!g.current&&W.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:[Ju(t+1),"/",Ju(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:W=>ce(W,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:X,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,...C==="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:()=>ne(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(Q(k,M))}&text=${encodeURIComponent(pe(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:Qu()}),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(Q(k,M))}&title=${encodeURIComponent(`${r.meta.brand} — ${k.title}`)}&summary=${encodeURIComponent(pe(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:Qu()}),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 HY="#D0EC1A",cI="#07401A",jY=()=>on()?po.get_distinct_id():void 0;function WY(r){const e=_e.c(17),{domain:t,initial:a,sessionEmail:n}=r,[i,o]=Ne.useState(a?.status==="ready"?a.deck:null);let s;e[0]!==t||e[1]!==a?.status?(s=()=>a?.status!=="ready"&&hP(t)?"pending":"scanning",e[0]=t,e[1]=a?.status,e[2]=s):s=e[2];const[l,u]=Ne.useState(s);let c;e[3]!==t||e[4]!==a?(c=d=>{if(!d||(a&&ec(t,a.drops),a?.status==="ready"))return;const p=new AbortController;return dP(t,jY(),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(GY,{deck:i}),e[6]=i,e[7]=d):d=e[7],d}if(l==="unauthorized"){let d;return e[8]!==t?(d=T.jsx(wc,{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(UY,{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 h2=[{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 $Y(r){return r==="scanning"?["done","active","pending","pending"]:r==="pending"?["done","done","active","pending"]:["done","done","done","pending"]}function UY(r){const e=_e.c(25),{domain:t,phase:a,email:n}=r,i=a==="scanning"||a==="pending";let o;e[0]!==a?(o=$Y(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(Sf,{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:HY}}),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:_f(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(XY,{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:h2.map((x,_)=>{const b=s[_]??"pending",S=_===h2.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(YY,{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:cI,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(m2,{})]}),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 YY(r){const e=_e.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 XY(r){const e=_e.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:cI},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 v2=gI("/report/$domain");function ZY(r,e,t){return a=>{if(!a||!r)return;const n=document.title;document.title=e;const i=t||_f(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 qY(r){const e=_e.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(wc,{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 KY(r){const e=_e.c(10),{domain:t,retry:a}=r;let n;e[0]!==t?(n=T.jsx(Sf,{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 mX(){const r=_e.c(23),{domain:e}=v2.useParams(),{key:t}=v2.useSearch(),a=Rg(e),n=vI.useSession(),i=!!n.data?.user;Hd(!!t);const o=dI({queryKey:pI.report(a,t),queryFn:()=>Fd(a,t),enabled:i,staleTime:1/0,retry:QY});let s;r[0]!==o.error||r[1]!==o.isError?(s=o.isError&&Eg(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()||d2(a),{title:c}=jI({brand:u,domain:a});let f;r[3]!==t?(f=x=>{if(x)return Hd(!!t),JY},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"||!on())return;const _=nP(a);_&&(x.dataset.authCompletionTracked="true",Ke("report_auth_succeeded",{domain:a,surface:"deck_v2",...Gd(_),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(wc,{domain:a,loading:!0}):n.data?.user?l?T.jsx(qY,{domain:a,refreshSession:()=>{n.refetch()}}):o.isPending?T.jsxs("div",{className:"fixed inset-0 overflow-hidden","aria-busy":"true",children:[T.jsx(Sf,{domain:a}),T.jsx("div",{className:"pointer-events-none absolute inset-0 bg-white/35"})]}):o.isError?T.jsx(KY,{domain:a,retry:()=>{o.refetch()}}):T.jsx(WY,{domain:a,initial:o.data,sessionEmail:n.data.user.email}):T.jsx(wc,{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 _=ZY(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 JY(){return Hd(!1)}function QY(r,e){return!Eg(e)&&r<1}export{mX as default};