@lobu/runtime-server 24.5.0 → 24.6.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 (235) hide show
  1. package/dist/catalogs/connectors.json +342 -4
  2. package/dist/catalogs/skills.json +1 -1
  3. package/dist/component.json +1 -1
  4. package/dist/connectors/linkedin-identity.ts +43 -0
  5. package/dist/connectors/linkedin.ts +154 -3
  6. package/dist/connectors/x-like-follow.ts +329 -0
  7. package/dist/connectors/x.ts +709 -80
  8. package/dist/dependencies.bun.lock +18 -18
  9. package/dist/owletto/dist/assets/_-DT3E3BmS.js +3 -0
  10. package/dist/owletto/dist/assets/_-c1xy7bLu.js +2 -0
  11. package/dist/owletto/dist/assets/_agentId-CTfoi0-7.js +2 -0
  12. package/dist/owletto/dist/assets/_agentId-DV8utajn.js +2 -0
  13. package/dist/owletto/dist/assets/_automationId-DvP3qyYL.js +2 -0
  14. package/dist/owletto/dist/assets/_connectorKey._connectionId-CL5SivCn.js +2 -0
  15. package/dist/owletto/dist/assets/_connectorKey.index-tnMwC67b.js +2 -0
  16. package/dist/owletto/dist/assets/_conversationId-DXN_8m88.js +2 -0
  17. package/dist/owletto/dist/assets/_eventId-SdpFT7jB.js +2 -0
  18. package/dist/owletto/dist/assets/_name-CM1AMywz.js +2 -0
  19. package/dist/owletto/dist/assets/_owner-CaGsXXBW.js +3 -0
  20. package/dist/owletto/dist/assets/_shape-DGAkETDp.js +2 -0
  21. package/dist/owletto/dist/assets/_skillKey-Dd4ZHPY8.js +2 -0
  22. package/dist/owletto/dist/assets/_slug-cRvJQtNo.js +2 -0
  23. package/dist/owletto/dist/assets/_view-B5I7mmkl.js +2 -0
  24. package/dist/owletto/dist/assets/_viewKey-Bwn0dyLo.js +2 -0
  25. package/dist/owletto/dist/assets/_viewKey-YjSYD0wc.js +2 -0
  26. package/dist/owletto/dist/assets/{accept-invitation-pUl-c1KQ.js → accept-invitation-CQZQ0wwC.js} +2 -2
  27. package/dist/owletto/dist/assets/{activity-route-view-DN0ZEAzr.js → activity-route-view-CZykJXQp.js} +2 -2
  28. package/dist/owletto/dist/assets/{agent-card-controls-C5jNWgfq.js → agent-card-controls-DuQJhtqp.js} +2 -2
  29. package/dist/owletto/dist/assets/{agent-client-setup-list-DbXtJTsO.js → agent-client-setup-list-CpUTAjXf.js} +2 -2
  30. package/dist/owletto/dist/assets/{agent-connect-pages-DcTuiSt9.js → agent-connect-pages-Br_ycC0z.js} +2 -2
  31. package/dist/owletto/dist/assets/agent-editor-form-BXQBFHSv.js +2 -0
  32. package/dist/owletto/dist/assets/{agent-guardrails-route-BJyfalBY.js → agent-guardrails-route-CN7vpC0X.js} +2 -2
  33. package/dist/owletto/dist/assets/{agent-list-row-rF5LH-3k.js → agent-list-row-BnP6r4pm.js} +2 -2
  34. package/dist/owletto/dist/assets/{agent-loading-shells-ClY_O6lb.js → agent-loading-shells-_18OREnx.js} +2 -2
  35. package/dist/owletto/dist/assets/{agent-permissions-matrix-bP1Qihv7.js → agent-permissions-matrix-DSjidWHL.js} +2 -2
  36. package/dist/owletto/dist/assets/{agent-skill-context-BAaGpvfS.js → agent-skill-context-1DBn7Xc_.js} +2 -2
  37. package/dist/owletto/dist/assets/{agent-skills-route-Bv5luNdw.js → agent-skills-route-d5jh3oBR.js} +2 -2
  38. package/dist/owletto/dist/assets/{agent-tab-intro-ednTs4WF.js → agent-tab-intro-DKrC3SQt.js} +2 -2
  39. package/dist/owletto/dist/assets/{agent-thread-WNk2HapT.js → agent-thread-FyEO-y44.js} +3 -3
  40. package/dist/owletto/dist/assets/agents-kXojozTU.js +2 -0
  41. package/dist/owletto/dist/assets/{agents-workbench-bPTjdVS1.js → agents-workbench-CDpJmUVN.js} +2 -2
  42. package/dist/owletto/dist/assets/{app._appId-DrL5H5lB.js → app._appId-DwNeXRJp.js} +2 -2
  43. package/dist/owletto/dist/assets/{assist-composer-ClfFEVx7.js → assist-composer-Mn9EfX4X.js} +2 -2
  44. package/dist/owletto/dist/assets/automation-detail-content-Bs3vwAPd.js +2 -0
  45. package/dist/owletto/dist/assets/{automation-row-DCHM--aD.js → automation-row-B5Q1B10y.js} +2 -2
  46. package/dist/owletto/dist/assets/automation-source-list-Dhucq1sI.js +2 -0
  47. package/dist/owletto/dist/assets/automations-kXojozTU.js +2 -0
  48. package/dist/owletto/dist/assets/{callback-DRABUOha.js → callback-9xSHyA12.js} +2 -2
  49. package/dist/owletto/dist/assets/{card-Bdi7VEwo.js → card-g4yxo4Hr.js} +2 -2
  50. package/dist/owletto/dist/assets/{change-summary-PBoM6Asb.js → change-summary-DeuXQEpb.js} +2 -2
  51. package/dist/owletto/dist/assets/{claim-CUIG1Oc-.js → claim-B98IhDra.js} +2 -2
  52. package/dist/owletto/dist/assets/{client-activity-scopes-CXOWB5co.js → client-activity-scopes-BD2HBo-_.js} +2 -2
  53. package/dist/owletto/dist/assets/{client-rows-36VnmgMK.js → client-rows-x_CxeWkP.js} +2 -2
  54. package/dist/owletto/dist/assets/{clients-BJRcMk1A.js → clients-Cmp0LmOp.js} +2 -2
  55. package/dist/owletto/dist/assets/connect-menu-CezOH3s7.js +2 -0
  56. package/dist/owletto/dist/assets/connect-zUot_0kG.js +2 -0
  57. package/dist/owletto/dist/assets/connect._clientId-nsGxe6yO.js +2 -0
  58. package/dist/owletto/dist/assets/connected._clientId-DnclRRXk.js +2 -0
  59. package/dist/owletto/dist/assets/connected._clientId.activity-CDB8atTX.js +2 -0
  60. package/dist/owletto/dist/assets/{connected._clientId.index-jSnGvzYs.js → connected._clientId.index-DBNP2mZo.js} +2 -2
  61. package/dist/owletto/dist/assets/{connection-q1bdnxCN.js → connection-B6fM2KHN.js} +2 -2
  62. package/dist/owletto/dist/assets/{connection-feed-detail-BIlkK0Pd.js → connection-feed-detail-Ckq-qEbD.js} +2 -2
  63. package/dist/owletto/dist/assets/{connections-browser-V-3td9DB.js → connections-browser-BXsJqieG.js} +2 -2
  64. package/dist/owletto/dist/assets/{connector-boxes-lFc-WP83.js → connector-boxes-CbqSFeVm.js} +2 -2
  65. package/dist/owletto/dist/assets/{connector-page-shell-Cs1SjrYB.js → connector-page-shell-Di6XzkVo.js} +2 -2
  66. package/dist/owletto/dist/assets/{connector-provenance-aJFeeRIC.js → connector-provenance-BrnasBW4.js} +2 -2
  67. package/dist/owletto/dist/assets/{connector-scope-lists--vNdbOn0.js → connector-scope-lists-dQnZARCD.js} +2 -2
  68. package/dist/owletto/dist/assets/{connectors-BsvDMdsQ.js → connectors-DnOUxX_U.js} +2 -2
  69. package/dist/owletto/dist/assets/{consent-DJV78pnz.js → consent-Byli4yMs.js} +2 -2
  70. package/dist/owletto/dist/assets/{copy-button-DjMWgrBf.js → copy-button-Ddf7lBjZ.js} +2 -2
  71. package/dist/owletto/dist/assets/{core.esm-CQzL3ObT.js → core.esm-BsXtvNoI.js} +2 -2
  72. package/dist/owletto/dist/assets/create-B34eskZ_.js +2 -0
  73. package/dist/owletto/dist/assets/create-DLB9sXgU.js +2 -0
  74. package/dist/owletto/dist/assets/{create-jBEuveV1.js → create-YdAnh3ml.js} +2 -2
  75. package/dist/owletto/dist/assets/create-automation-form-C9PMX7N8.js +3 -0
  76. package/dist/owletto/dist/assets/create._connectorKey-Bz4OYRiC.js +2 -0
  77. package/dist/owletto/dist/assets/definition-comparison-B5WgZILB.js +2 -0
  78. package/dist/owletto/dist/assets/{device-Ba3RsIgb.js → device-DdCoCj-Q.js} +2 -2
  79. package/dist/owletto/dist/assets/device-pin-tombstone-B06J7Af1.js +2 -0
  80. package/dist/owletto/dist/assets/device._deviceId-Bh9S4bFp.js +2 -0
  81. package/dist/owletto/dist/assets/dynamic-schema-form-qWSRtOAv.js +2 -0
  82. package/dist/owletto/dist/assets/{entity-options-daOOQo7O.js → entity-options-BkU_En_f.js} +2 -2
  83. package/dist/owletto/dist/assets/entity-page-BPFDHY8q.js +2 -0
  84. package/dist/owletto/dist/assets/entity-pages-DxgbjLMt.js +2 -0
  85. package/dist/owletto/dist/assets/entity-type-page-D0ghgRgq.js +2 -0
  86. package/dist/owletto/dist/assets/event-card-CjA_dLzq.js +2 -0
  87. package/dist/owletto/dist/assets/{event-detail-DkY95e5b.js → event-detail-CmC-DVrK.js} +2 -2
  88. package/dist/owletto/dist/assets/{events-feed-B9CZHI_P.js → events-feed-CGzA1w3R.js} +2 -2
  89. package/dist/owletto/dist/assets/filter-bar-CQ_oE7a9.js +2 -0
  90. package/dist/owletto/dist/assets/{full-page-spinner-BqmckkOf.js → full-page-spinner-B5xXnKtV.js} +2 -2
  91. package/dist/owletto/dist/assets/guardrails-DkXatmea.js +2 -0
  92. package/dist/owletto/dist/assets/identity-BwJy3ixB.js +2 -0
  93. package/dist/owletto/dist/assets/{index--ZWegctR.js → index-35ehGReZ.js} +2 -2
  94. package/dist/owletto/dist/assets/index-B9hYiwBw.js +2 -0
  95. package/dist/owletto/dist/assets/{index-C186T2Rw.js → index-BDl1_w6U.js} +2 -2
  96. package/dist/owletto/dist/assets/{index-ijqrJaRB.js → index-BdNR51Ua.js} +2 -2
  97. package/dist/owletto/dist/assets/{index-DdBTTN3y.js → index-BjcZVe7n.js} +52 -52
  98. package/dist/owletto/dist/assets/{index-CsrT07TJ.js → index-BqAVebvY.js} +2 -2
  99. package/dist/owletto/dist/assets/index-BvK1fS1J.js +2 -0
  100. package/dist/owletto/dist/assets/{index-DdYWarql.css → index-CNEpTkgw.css} +1 -1
  101. package/dist/owletto/dist/assets/index-CRc73k1t.js +2 -0
  102. package/dist/owletto/dist/assets/index-CYGaSD3y.js +2 -0
  103. package/dist/owletto/dist/assets/index-CfZGe-zn.js +2 -0
  104. package/dist/owletto/dist/assets/{index-B0kw2lFL.js → index-CkiyxW4w.js} +2 -2
  105. package/dist/owletto/dist/assets/index-CzLDNB2E.js +2 -0
  106. package/dist/owletto/dist/assets/{index-BKrdVwW9.js → index-D-o5iOVd.js} +2 -2
  107. package/dist/owletto/dist/assets/index-DjYVV1Ml.js +2 -0
  108. package/dist/owletto/dist/assets/{index-ikp_mTsf.js → index-TkPy_P_u.js} +2 -2
  109. package/dist/owletto/dist/assets/index-VyAX-asP.js +2 -0
  110. package/dist/owletto/dist/assets/json-diff-DtZtra_g.js +28 -0
  111. package/dist/owletto/dist/assets/{list-skeleton-CXDLkYTg.js → list-skeleton-CIHWCi2a.js} +2 -2
  112. package/dist/owletto/dist/assets/{login-u6LCgDYG.js → login-TWR0vF4_.js} +2 -2
  113. package/dist/owletto/dist/assets/{logout-JhmuWJEH.js → logout-BA5kojS0.js} +2 -2
  114. package/dist/owletto/dist/assets/{manage-gear-D8LMhehh.js → manage-gear-C-0BAMbC.js} +2 -2
  115. package/dist/owletto/dist/assets/{member-scope-gate-4FQ0aanZ.js → member-scope-gate-BQiRAqtx.js} +2 -2
  116. package/dist/owletto/dist/assets/memory-browse-page-Ba32-vVL.js +74 -0
  117. package/dist/owletto/dist/assets/{model-jL871x2J.js → model-C2q7WDcS.js} +2 -2
  118. package/dist/owletto/dist/assets/{model-selector-CgU8SJMF.js → model-selector-B2cjCn0V.js} +2 -2
  119. package/dist/owletto/dist/assets/models-CZkH5gtj.js +2 -0
  120. package/dist/owletto/dist/assets/{nav-pill-DrFkuyUQ.js → nav-pill-Bam6s3jj.js} +2 -2
  121. package/dist/owletto/dist/assets/new-BJst6K0b.js +2 -0
  122. package/dist/owletto/dist/assets/{new-DgE1pVV0.js → new-Dc5Bbotb.js} +2 -2
  123. package/dist/owletto/dist/assets/new-DgbivfDe.js +2 -0
  124. package/dist/owletto/dist/assets/{organization-CKM_oFX3.js → organization-B9U1L-56.js} +2 -2
  125. package/dist/owletto/dist/assets/peek-pane-content-Cq8P38s3.js +2 -0
  126. package/dist/owletto/dist/assets/{pending-seed-sml8Uf6e.js → pending-seed-BP3xHM2d.js} +2 -2
  127. package/dist/owletto/dist/assets/{permissions-BvA9SATv.js → permissions-BVlbeY4u.js} +2 -2
  128. package/dist/owletto/dist/assets/proposal-review-shell-BED-DO9C.js +2 -0
  129. package/dist/owletto/dist/assets/public-shell-ready-Diq15_QW.js +2 -0
  130. package/dist/owletto/dist/assets/{record-activity-C9gVBbF0.js → record-activity-CTLwq8s1.js} +2 -2
  131. package/dist/owletto/dist/assets/{record-session-R-uHNuby.js → record-session-DOFgdd43.js} +2 -2
  132. package/dist/owletto/dist/assets/renderer-CHPS-1vD.js +96 -0
  133. package/dist/owletto/dist/assets/{reset-password-Mx3baeNc.js → reset-password-BmNM-apc.js} +2 -2
  134. package/dist/owletto/dist/assets/{run-activity-link-CaIBSRQj.js → run-activity-link-Dh1YyCfk.js} +2 -2
  135. package/dist/owletto/dist/assets/{run-initiator-BvzQJYW9.js → run-initiator-CCxNv0rK.js} +2 -2
  136. package/dist/owletto/dist/assets/{runs-fFJ1lPnw.js → runs-BntGAKQG.js} +2 -2
  137. package/dist/owletto/dist/assets/{runs-panel-DEnZHTa5.js → runs-panel-BwTVaRsE.js} +2 -2
  138. package/dist/owletto/dist/assets/{runs-table-XGnxJl7S.js → runs-table-CYS1jDdL.js} +2 -2
  139. package/dist/owletto/dist/assets/{schema-type-editor-panel-C0_9VcSs.js → schema-type-editor-panel-v3nR2Oa2.js} +2 -2
  140. package/dist/owletto/dist/assets/schema-value-BFb7jCBo.js +3 -0
  141. package/dist/owletto/dist/assets/settings-DBgT60nY.js +2 -0
  142. package/dist/owletto/dist/assets/{settings-CP4PjMQA.js → settings-DubSpJfg.js} +2 -2
  143. package/dist/owletto/dist/assets/skills-DDoeRGhJ.js +2 -0
  144. package/dist/owletto/dist/assets/{source-record-panels-Bh0n4gGw.js → source-record-panels-m8gECt82.js} +2 -2
  145. package/dist/owletto/dist/assets/{status-dot-Cpq63I7p.js → status-dot-BnQPFrcU.js} +2 -2
  146. package/dist/owletto/dist/assets/{table-BUqshjxa.js → table-DALHuXPE.js} +2 -2
  147. package/dist/owletto/dist/assets/{use-automations-BLNjxq2K.js → use-automations-D9hKpufo.js} +2 -2
  148. package/dist/owletto/dist/assets/{use-login-redirect-CmyQW7GT.js → use-login-redirect-ciwfc-7A.js} +2 -2
  149. package/dist/owletto/dist/assets/{use-mention-search-dn3ws1WB.js → use-mention-search-CJGCatFS.js} +2 -2
  150. package/dist/owletto/dist/assets/{use-scroll-sentinel-DRyBMueA.js → use-scroll-sentinel-BWCrmNIB.js} +2 -2
  151. package/dist/owletto/dist/assets/view-param-filters-CDvwie_f.js +2 -0
  152. package/dist/owletto/dist/assets/views-access-required-CZ1fvAks.js +2 -0
  153. package/dist/owletto/dist/index.html +2 -2
  154. package/dist/server-main.bundle.mjs +5596 -4000
  155. package/npm-shrinkwrap.json +99 -99
  156. package/package.json +1 -1
  157. package/vendor/connector-sdk/package.json +1 -1
  158. package/vendor/core/dist/contracts/tools/view-host.d.ts +7 -0
  159. package/vendor/core/dist/contracts/tools/view-host.js +28 -0
  160. package/vendor/core/dist/contracts/tools/view-runtime.d.ts +2 -4
  161. package/vendor/core/dist/contracts/tools/view-runtime.js +19 -7
  162. package/vendor/core/package.json +11 -1
  163. package/vendor/views/dist/api.d.ts +9 -4
  164. package/vendor/views/dist/api.js +33 -2
  165. package/vendor/views/dist/bridge.d.ts +8 -0
  166. package/vendor/views/dist/bridge.js +12 -2
  167. package/vendor/views/dist/components.d.ts +4 -2
  168. package/vendor/views/dist/components.js +29 -14
  169. package/vendor/views/dist/index.d.ts +1 -1
  170. package/vendor/views/dist/index.js +1 -1
  171. package/vendor/views/dist/native.d.ts +327 -0
  172. package/vendor/views/dist/native.js +57 -0
  173. package/vendor/views/package.json +1 -1
  174. package/dist/owletto/dist/assets/_-CCWuGXtQ.js +0 -2
  175. package/dist/owletto/dist/assets/_-DOJW1D-I.js +0 -3
  176. package/dist/owletto/dist/assets/_agentId-CJhQbi6k.js +0 -2
  177. package/dist/owletto/dist/assets/_agentId-DD4K1i6V.js +0 -2
  178. package/dist/owletto/dist/assets/_automationId-Cbd7B0mP.js +0 -2
  179. package/dist/owletto/dist/assets/_connectorKey._connectionId-DFpPep9B.js +0 -2
  180. package/dist/owletto/dist/assets/_connectorKey.index-n3iSDT74.js +0 -2
  181. package/dist/owletto/dist/assets/_conversationId-B1yGIGA9.js +0 -2
  182. package/dist/owletto/dist/assets/_eventId-B1H0-vD7.js +0 -2
  183. package/dist/owletto/dist/assets/_name-D30_V03t.js +0 -2
  184. package/dist/owletto/dist/assets/_owner-Be8O41u8.js +0 -3
  185. package/dist/owletto/dist/assets/_shape-C6YbloRh.js +0 -2
  186. package/dist/owletto/dist/assets/_skillKey-BMPvvoOI.js +0 -2
  187. package/dist/owletto/dist/assets/_slug-Bc4YIEA2.js +0 -2
  188. package/dist/owletto/dist/assets/_view-aoFDwEld.js +0 -2
  189. package/dist/owletto/dist/assets/_viewKey-DuNHc3cc.js +0 -2
  190. package/dist/owletto/dist/assets/_viewKey-rJ7A1zNx.js +0 -2
  191. package/dist/owletto/dist/assets/agent-editor-form-CdA5vLr8.js +0 -2
  192. package/dist/owletto/dist/assets/agents-DY2S2SGE.js +0 -2
  193. package/dist/owletto/dist/assets/automation-detail-content-dFy1Huas.js +0 -2
  194. package/dist/owletto/dist/assets/automations-DY2S2SGE.js +0 -2
  195. package/dist/owletto/dist/assets/calendar-Ck0yOLYu.js +0 -2
  196. package/dist/owletto/dist/assets/code-editor-DNuRKde1.js +0 -16
  197. package/dist/owletto/dist/assets/connect-CMcEQWls.js +0 -2
  198. package/dist/owletto/dist/assets/connect-menu-C-B-1xGR.js +0 -2
  199. package/dist/owletto/dist/assets/connect._clientId-tGipxP5a.js +0 -2
  200. package/dist/owletto/dist/assets/connected._clientId-DSGU78eV.js +0 -2
  201. package/dist/owletto/dist/assets/connected._clientId.activity-CPLbry8R.js +0 -2
  202. package/dist/owletto/dist/assets/create-BmKx5vq3.js +0 -2
  203. package/dist/owletto/dist/assets/create-Rt0RbiD4.js +0 -2
  204. package/dist/owletto/dist/assets/create-automation-form-PEmSLMD6.js +0 -3
  205. package/dist/owletto/dist/assets/create._connectorKey-DcxhYIYC.js +0 -2
  206. package/dist/owletto/dist/assets/device-pin-tombstone-C79KIAIK.js +0 -2
  207. package/dist/owletto/dist/assets/device._deviceId-CIaoq9co.js +0 -2
  208. package/dist/owletto/dist/assets/entity-avatar-TVKjZxWQ.js +0 -2
  209. package/dist/owletto/dist/assets/entity-page-BfJXvbxn.js +0 -2
  210. package/dist/owletto/dist/assets/entity-type-page-BLwH6qa7.js +0 -2
  211. package/dist/owletto/dist/assets/event-card-DVUB8my6.js +0 -2
  212. package/dist/owletto/dist/assets/filter-bar-wPaR12SS.js +0 -2
  213. package/dist/owletto/dist/assets/guardrails-Csusrok2.js +0 -2
  214. package/dist/owletto/dist/assets/identity-Dmg3STO8.js +0 -2
  215. package/dist/owletto/dist/assets/index-BUBcNNUY.js +0 -2
  216. package/dist/owletto/dist/assets/index-BUDr4-Yv.js +0 -2
  217. package/dist/owletto/dist/assets/index-BYPQWVwD.js +0 -2
  218. package/dist/owletto/dist/assets/index-BfpaPJPj.js +0 -2
  219. package/dist/owletto/dist/assets/index-BicNFLBW.js +0 -2
  220. package/dist/owletto/dist/assets/index-Bsdv5aks.js +0 -2
  221. package/dist/owletto/dist/assets/index-CX0pJ9j9.js +0 -2
  222. package/dist/owletto/dist/assets/index-JYEIN8nM.js +0 -2
  223. package/dist/owletto/dist/assets/json-diff-BaLL4Fsu.js +0 -14
  224. package/dist/owletto/dist/assets/memory-browse-page-CNZJbCJC.js +0 -74
  225. package/dist/owletto/dist/assets/models-jdemgIZk.js +0 -2
  226. package/dist/owletto/dist/assets/new-CcJOd5aH.js +0 -2
  227. package/dist/owletto/dist/assets/new-OWwrYckd.js +0 -2
  228. package/dist/owletto/dist/assets/peek-pane-content-D68BjguQ.js +0 -2
  229. package/dist/owletto/dist/assets/proposal-review-shell-D6KABxah.js +0 -2
  230. package/dist/owletto/dist/assets/public-shell-ready-BIVCHQHe.js +0 -2
  231. package/dist/owletto/dist/assets/renderer-DXfJaCCa.js +0 -97
  232. package/dist/owletto/dist/assets/settings-CgaUJMHH.js +0 -2
  233. package/dist/owletto/dist/assets/skills-D-e_h3a9.js +0 -2
  234. package/dist/owletto/dist/assets/view-param-filters-CER47Tlz.js +0 -2
  235. package/dist/owletto/dist/assets/views-access-required-C_b9itZ2.js +0 -2
@@ -0,0 +1,96 @@
1
+ import{eS as iB,ek as oB,j as V,a$ as kI,b0 as OI,bQ as sB,b1 as NI,eW as F_,aY as lB,i as pd,eX as uB,r as ze,c$ as fB,eY as vB,eZ as cB,cR as hB,e4 as vm,aq as BI,L as dB,c as pB,u as gB,ex as yB,ey as mB,S as pp,B as $u,A as _B,e_ as SB,a0 as VI,db as xB,e$ as wB,f0 as bB,m as CB,C as TB,dh as AB,eE as MB,bB as DB}from"./index-BjcZVe7n.js";import{S as cm,i as hm,t as dm,f as IB}from"./schema-value-BFb7jCBo.js";import{c as LB,d as PB,b as RB,a as EB,C as kB}from"./card-g4yxo4Hr.js";import{T as OB,a as NB,b as gp,c as BB,d as VB,e as Rx}from"./table-DALHuXPE.js";function zB(r){return String(r??"").split(/[_-]/).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}function FB(r,e){return e.title||e.description||zB(r)}function GB(r){return r.title&&r.description&&r.description!==r.title?r.description:void 0}function HB({control:r}){const e=[r.set_by,r.set_at?oB(r.set_at):null].filter(Boolean).join(" · ");return V.jsxs(kI,{children:[V.jsx(OI,{asChild:!0,children:V.jsx("button",{type:"button",className:"shrink-0 text-emerald-600 hover:text-emerald-500 dark:text-emerald-400","aria-label":"Set by a person",children:V.jsx(sB,{className:"h-3 w-3"})})}),V.jsxs(NI,{className:"max-w-xs space-y-1",children:[V.jsx("div",{className:"text-xs font-medium",children:"Set by a person"}),V.jsx("div",{className:"text-[11px] text-primary-foreground/70",children:"Automations ask for approval before changing it."}),r.note?V.jsx("div",{className:"text-xs text-primary-foreground/90",children:r.note}):null,e?V.jsx("div",{className:"text-[11px] text-primary-foreground/70",children:e}):null]})]})}function UB(r){const e=iB(r);return e===null||e===""?void 0:e}function $B(r){return r.parent_id&&r.parent_slug&&r.parent_entity_type?[{entity_type:r.parent_entity_type,slug:r.parent_slug},{entity_type:r.entity_type,slug:r.slug}]:[{entity_type:r.entity_type,slug:r.slug}]}function Une(r){return typeof r=="string"?JSON.parse(r):r??{}}function WB(r){return r.type==="array"&&!!r.items&&(r.items?.type==="object"||!!r.items?.properties)}function zI(r){return(r.type==="object"||!!r.properties)&&Object.keys(r.properties??{}).length>0}function YB(r){const e=r?.properties;return F_(e).filter(([,t])=>!("x-measure"in t)&&!("x-dimension"in t)).map(([t,n])=>({key:t,prop:n}))}function pm(r){return r.label??r.prop["x-table-label"]??FB(r.key,r.prop)}function FI(r){try{return UB(r)}catch{return r instanceof uB?r.text:r}}function gm(r){return typeof r=="object"&&r!==null&&!Array.isArray(r)}function ym(r,e){const t=FI(e);return t==null?!1:typeof t=="string"?t.trim().length>0:Array.isArray(t)?t.length>0:gm(t)?zI(r.prop)?F_(r.prop.properties).some(([n,a])=>ym({prop:a},t[n])):Object.entries(t).some(([n,a])=>ym({prop:{}},a)):!0}function GI(r,e){return r.filter(t=>ym(t,e[t.key]))}function XB({value:r,prop:e,ownerSlug:t,orgContext:n}){const a=e["x-link-entity-type"],i=e["x-link-lookup-field"]||"slug",{data:o}=fB(a,n,{limit:vB}),s=c=>{const h=o?.entities.find(d=>{const p=i==="slug"?d.slug:d.metadata?.[i];return p!=null&&String(p)===c});return h?{label:h.name,to:hB(t,$B(h))}:void 0},l=Array.isArray(r)?r:[r],u=c=>i==="slug"&&o!==void 0&&ZB(c)&&!s(String(c));if(!l.some(u))return V.jsx(cm,{value:r,prop:e,resolveLink:s});const f=[...new Set(l.map(String))],v=new Map(l.map(c=>[String(c),c]));return V.jsx("span",{className:"inline-flex flex-wrap gap-x-2 gap-y-1",children:f.map(c=>v.get(c)).map(c=>u(c)?V.jsx(jB,{entityType:a,recordKey:String(c),ownerSlug:t},String(c)):V.jsx(cm,{value:c,prop:Array.isArray(r)?e.items??e:e,resolveLink:s},String(c)))})}function ZB(r){const e=typeof r=="number"?String(r):r;return typeof e=="string"&&e.trim()!==""&&!/[/?#]/.test(e)}function jB({entityType:r,recordKey:e,ownerSlug:t}){const n=vm(t,[{entity_type:r,slug:e}]),{data:a,isError:i}=BI(n,{slug:t}),o=a?.entity,s=o&&o.entity_type===r&&o.slug===e;return i||a&&!s?V.jsx("span",{className:"text-muted-foreground",title:"This record is not available",children:e}):V.jsx(dB,{to:n,className:"text-primary hover:underline",onClick:l=>l.stopPropagation(),children:s?o.name:e})}function qB({field:r,value:e,context:t}){if(WB(r.prop)&&(e==null||Array.isArray(e))){const n=Array.isArray(e)?e.length:0,a=`${n} ${n===1?"item":"items"}`,i=t.dirtyKeys?.includes(r.key)??!1,o="inline-flex items-center gap-1 rounded-md bg-muted px-1.5 py-0.5 text-xs tabular-nums";if(!t.openField)return V.jsx("span",{className:o,children:a});const s=t.openFieldKey===r.key;return V.jsxs("button",{type:"button","aria-pressed":s,"aria-label":`${pm(r)}: ${a}${i?", unsaved changes":""}`,className:pd(o,"hover:bg-muted/70 hover:text-foreground",s&&"ring-1 ring-primary"),onClick:()=>t.openField?.(r),children:[a,i?V.jsx("span",{className:"text-amber-600 dark:text-amber-400",children:"· edited"}):null]})}return r.prop["x-link-entity-type"]&&t.orgContext&&e!=null?V.jsx(XB,{value:e,prop:r.prop,ownerSlug:t.ownerSlug,orgContext:t.orgContext}):V.jsx(cm,{value:e,prop:r.prop})}function Ex({field:r,control:e,labelId:t}){const n=GB(r.prop);return V.jsxs("span",{className:"flex min-w-0 flex-wrap items-center gap-x-1 gap-y-0.5",children:[V.jsx("span",{id:t,className:"min-w-0 break-words",children:pm(r)}),n?V.jsxs(kI,{children:[V.jsx(OI,{asChild:!0,children:V.jsx("button",{type:"button",className:"shrink-0 text-muted-foreground/70 hover:text-foreground","aria-label":`About ${pm(r)}: ${n}`,children:V.jsx(cB,{className:"h-3 w-3"})})}),V.jsx(NI,{className:"max-w-xs",children:n})]}):null,e?V.jsx(HB,{control:e}):null]})}function HI({field:r,value:e,context:t,nested:n}){const a=ze.useId(),i=n?void 0:t.controls?.[r.key],o=FI(e);if(zI(r.prop)&&(o==null||gm(o))){const s=gm(o)?o:{},l=GI(F_(r.prop.properties).map(([u,f])=>({key:u,prop:f})),s);return V.jsxs("fieldset",{"aria-labelledby":a,className:"m-0 min-w-0 space-y-2 border-0 p-0",children:[V.jsx("div",{className:"text-xs font-medium text-muted-foreground",children:V.jsx(Ex,{field:r,control:i,labelId:a})}),V.jsx("dl",{className:"space-y-2 border-l border-border pl-3",children:l.map(u=>V.jsx(HI,{field:u,value:s[u.key],context:t,nested:!0},u.key))})]})}return V.jsxs("div",{className:"grid grid-cols-[minmax(0,2fr)_minmax(0,3fr)] items-baseline gap-x-3",children:[V.jsx("dt",{className:"text-muted-foreground",children:V.jsx(Ex,{field:r,control:i,labelId:a})}),V.jsx("dd",{"aria-labelledby":a,className:pd("min-w-0 [overflow-wrap:anywhere]",r.numeric&&"tabular-nums"),children:V.jsx(qB,{field:r,value:o,context:t})})]})}function KB({fields:r,values:e,context:t,fieldLimit:n}){const a=GI(r,e);return a.length===0?V.jsx("p",{className:"text-sm text-muted-foreground",children:r.length===0?"This type declares no fields.":"No details have been added yet."}):V.jsx(lB,{delayDuration:200,children:V.jsx("dl",{className:"space-y-2.5 text-sm leading-5",children:(n===void 0?a:a.slice(0,n)).map(i=>V.jsx(HI,{field:i,value:e[i.key],context:t,nested:!1},i.key))})})}function JB(r,e){if(typeof r!="string"||!e||e.length===0)return r;const t=r.trim();if(e.includes(t))return t;try{const n=JSON.parse(t);if(typeof n=="string"&&e.includes(n))return n}catch{}return r}function QB(r,e){if(!r)return{};const t=e?.properties;return t?Object.fromEntries(Object.entries(r).map(([n,a])=>[n,JB(a,t[n]?.enum)])):{...r}}function $ne(r){return{href:"",key:`record-peer:${r.record?JSON.stringify([r.record.type,r.record.key]):r.entityId}`,title:r.name?.trim()||"Record",recordPeer:{...r.record?{record:r.record}:{entityId:r.entityId},ownerSlug:r.ownerSlug,orgContext:r.orgContext}}}function Wne({target:r}){const e=pB(),t=gB(),n=yB(r.entityId,r.orgContext),a=r.record?vm(r.ownerSlug,[{entity_type:r.record.type,slug:r.record.key}]):"",i=BI(a,r.orgContext),o=r.record?i.data?.entity:n.data,{isLoading:s,isError:l}=r.record?i:n,{data:u}=mB(o?.entity_type??"",r.orgContext),[f,v]=ze.useState(!1),[c,h]=ze.useState(!1);if(s)return V.jsxs("div",{className:"space-y-3 px-5 py-5",children:[V.jsx(pp,{className:"h-5 w-2/3"}),V.jsx(pp,{className:"h-4 w-full"}),V.jsx(pp,{className:"h-4 w-full"})]});if(l||!o)return V.jsx("p",{className:"px-5 py-5 text-sm text-muted-foreground",children:"This record is not available. It may have been deleted, or you may not have access to it."});const d=u?.metadata_schema,p=async()=>{v(!0),h(!1);try{const g=r.record?[{entity_type:r.record.type,slug:r.record.key}]:await SB(r.entityId,r.orgContext);t?.close(),await e({to:vm(r.ownerSlug,g)})}catch{h(!0)}finally{v(!1)}};return V.jsxs("article",{className:"space-y-4 px-5 py-4",children:[V.jsxs("div",{className:"flex items-start justify-between gap-3",children:[V.jsxs("div",{className:"min-w-0",children:[V.jsx("p",{className:"truncate text-sm font-medium",children:o.name}),V.jsx("p",{className:"text-xs text-muted-foreground",children:u?.name??o.entity_type})]}),V.jsxs($u,{type:"button",variant:"ghost",size:"sm",className:"h-7 shrink-0 gap-1 px-2 text-muted-foreground hover:text-foreground",disabled:f,"aria-busy":f,onClick:()=>void p(),children:["Open record",V.jsx(_B,{className:"h-3.5 w-3.5"})]})]}),c?V.jsx("p",{role:"alert",className:"text-xs text-destructive",children:"Could not open this record. Try again."}):null,V.jsx(KB,{fields:YB(d),values:QB(o.metadata??{},d),context:{ownerSlug:r.ownerSlug,orgContext:r.orgContext}})]})}const eV=r=>r!=null;function tV(r,e,t=eV){let n=r;for(const a of e.replace(/\[(\d+)\]/g,".$1").split(".")){if(!t(n))return;n=n[a]}return n}function rV(r,e,t){return typeof r!="string"?r:r.startsWith("@")?e?.[r.slice(1)]:r.startsWith("{{")&&r.endsWith("}}")&&r.indexOf("}}")===r.length-2?t(r.slice(2,-2).trim()):r.replace(/\{\{(.+?)\}\}/g,(n,a)=>{const i=t(a.trim());return i===void 0?"":String(i)})}const nV=new Set(["type","children","props","path","fallback","key"]);function aV(r,e){const t={};for(const[n,a]of Object.entries(r))nV.has(n)||(t[n]=a);return Object.assign(t,e)}/*! *****************************************************************************
2
+ Copyright (c) Microsoft Corporation.
3
+
4
+ Permission to use, copy, modify, and/or distribute this software for any
5
+ purpose with or without fee is hereby granted.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
8
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
+ PERFORMANCE OF THIS SOFTWARE.
14
+ ***************************************************************************** */var mm=function(r,e){return mm=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])},mm(r,e)};function B(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");mm(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var iV=(function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r})(),oV=(function(){function r(){this.browser=new iV,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})(),Le=new oV;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Le.wxa=!0,Le.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Le.worker=!0:!Le.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(Le.node=!0,Le.svgSupported=!0):sV(navigator.userAgent,Le);function sV(r,e){var t=e.browser,n=r.match(/Firefox\/([\d.]+)/),a=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);n&&(t.firefox=!0,t.version=n[1]),a&&(t.ie=!0,t.version=a[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);var s=e.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in l||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}}var G_=12,UI="sans-serif",la=G_+"px "+UI,lV=20,uV=100,fV="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function vV(r){var e={};if(typeof JSON>"u")return e;for(var t=0;t<r.length;t++){var n=String.fromCharCode(t+32),a=(r.charCodeAt(t)-lV)/uV;e[n]=a}return e}var cV=vV(fV),rr={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var r,e;return function(t,n){if(!r){var a=rr.createCanvas();r=a&&a.getContext("2d")}if(r)return e!==n&&(e=r.font=n||la),r.measureText(t);t=t||"",n=n||la;var i=/((?:\d+)?\.?\d*)px/.exec(n),o=i&&+i[1]||G_,s=0;if(n.indexOf("mono")>=0)s=o*t.length;else for(var l=0;l<t.length;l++){var u=cV[t[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(r,e,t){var n=new Image;return n.onload=e,n.onerror=t,n.src=r,n},getTime:function(){return Date.now?Date.now():+new Date}},$I=En(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,e){return r["[object "+e+"]"]=!0,r},{}),WI=En(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,e){return r["[object "+e+"Array]"]=!0,r},{}),pl=Object.prototype.toString,gd=Array.prototype,hV=gd.forEach,dV=gd.filter,H_=gd.slice,pV=gd.map,kx=function(){}.constructor,ev=kx?kx.prototype:null,U_="__proto__",yp=2311,gV=Math.pow(2,53)-1;function YI(){return yp>=gV&&(yp=0),yp++}function $_(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];typeof console<"u"&&console.error.apply(console,r)}function ae(r){if(r==null||typeof r!="object")return r;var e=r,t=pl.call(r);if(t==="[object Array]"){if(!Iu(r)){e=[];for(var n=0,a=r.length;n<a;n++)e[n]=ae(r[n])}}else if(WI[t]){if(!Iu(r)){var i=r.constructor;if(i.from)e=i.from(r);else{e=new i(r.length);for(var n=0,a=r.length;n<a;n++)e[n]=r[n]}}}else if(!$I[t]&&!Iu(r)&&!js(r)){e={};for(var o in r)r.hasOwnProperty(o)&&o!==U_&&(e[o]=ae(r[o]))}return e}function _e(r,e,t){if(!fe(e)||!fe(r))return t?ae(e):r;for(var n in e)if(e.hasOwnProperty(n)&&n!==U_){var a=r[n],i=e[n];fe(i)&&fe(a)&&!U(i)&&!U(a)&&!js(i)&&!js(a)&&!Ox(i)&&!Ox(a)&&!Iu(i)&&!Iu(a)?_e(a,i,t):(t||!(n in r))&&(r[n]=ae(e[n]))}return r}function W_(r,e){for(var t=r[0],n=1,a=r.length;n<a;n++)t=_e(t,r[n],e);return t}function G(r,e){if(Object.assign)Object.assign(r,e);else for(var t in e)e.hasOwnProperty(t)&&t!==U_&&(r[t]=e[t]);return r}function yV(r,e,t){r=r||{};for(var n=0;n<t.length;n++){var a=t[n];r[a]=e[a]}return r}function le(r,e,t){for(var n=De(e),a=0,i=n.length;a<i;a++){var o=n[a];(t?e[o]!=null:r[o]==null)&&(r[o]=e[o])}return r}function pe(r,e){if(r){if(r.indexOf)return r.indexOf(e);for(var t=0,n=r.length;t<n;t++)if(r[t]===e)return t}return-1}function mV(r,e){var t=r.prototype;function n(){}n.prototype=e.prototype,r.prototype=new n;for(var a in t)t.hasOwnProperty(a)&&(r.prototype[a]=t[a]);r.prototype.constructor=r,r.superClass=e}function xt(r,e,t){if(r="prototype"in r?r.prototype:r,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(e),a=0;a<n.length;a++){var i=n[a];i!=="constructor"&&(t?e[i]!=null:r[i]==null)&&(r[i]=e[i])}else le(r,e,t)}function Wt(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function M(r,e,t){if(r&&e)if(r.forEach&&r.forEach===hV)r.forEach(e,t);else if(r.length===+r.length)for(var n=0,a=r.length;n<a;n++)e.call(t,r[n],n,r);else for(var i in r)r.hasOwnProperty(i)&&e.call(t,r[i],i,r)}function $(r,e,t){if(!r)return[];if(!e)return Y_(r);if(r.map&&r.map===pV)return r.map(e,t);for(var n=[],a=0,i=r.length;a<i;a++)n.push(e.call(t,r[a],a,r));return n}function En(r,e,t,n){if(r&&e){for(var a=0,i=r.length;a<i;a++)t=e.call(n,t,r[a],a,r);return t}}function Fe(r,e,t){if(!r)return[];if(!e)return Y_(r);if(r.filter&&r.filter===dV)return r.filter(e,t);for(var n=[],a=0,i=r.length;a<i;a++)e.call(t,r[a],a,r)&&n.push(r[a]);return n}function ci(r,e,t){if(r&&e){for(var n=0,a=r.length;n<a;n++)if(e.call(t,r[n],n,r))return r[n]}}function De(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 _V(r,e){for(var t=[],n=2;n<arguments.length;n++)t[n-2]=arguments[n];return function(){return r.apply(e,t.concat(H_.call(arguments)))}}var q=ev&&ie(ev.bind)?ev.call.bind(ev.bind):_V;function xe(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return function(){return r.apply(this,e.concat(H_.call(arguments)))}}function U(r){return Array.isArray?Array.isArray(r):pl.call(r)==="[object Array]"}function ie(r){return typeof r=="function"}function Z(r){return typeof r=="string"}function _m(r){return pl.call(r)==="[object String]"}function Ee(r){return typeof r=="number"}function fe(r){var e=typeof r;return e==="function"||!!r&&e==="object"}function Ox(r){return!!$I[pl.call(r)]}function dr(r){return!!WI[pl.call(r)]}function js(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function yd(r){return r.colorStops!=null}function SV(r){return r.image!=null}function xV(r){return pl.call(r)==="[object RegExp]"}function $t(r){return r!==r}function tr(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];for(var t=0,n=r.length;t<n;t++)if(r[t]!=null)return r[t]}function Q(r,e){return r??e}function xr(r,e,t){return r??e??t}function Y_(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return H_.apply(r,e)}function md(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 Yt(r,e){if(!r)throw new Error(e)}function Br(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var XI="__ec_primitive__";function qc(r){r[XI]=!0}function Iu(r){return r[XI]}var wV=(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 De(this.data)},r.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},r})(),ZI=typeof Map=="function";function bV(){return ZI?new Map:new wV}var CV=(function(){function r(e){var t=U(e);this.data=bV();var n=this;e instanceof r?e.each(a):e&&M(e,a);function a(i,o){t?n.set(i,o):n.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(n,a){e.call(t,n,a)})},r.prototype.keys=function(){var e=this.data.keys();return ZI?Array.from(e):e},r.prototype.removeKey=function(e){this.data.delete(e)},r})();function K(r){return new CV(r)}function Wu(r,e){for(var t=new r.constructor(r.length+e.length),n=0;n<r.length;n++)t[n]=r[n];for(var a=r.length,n=0;n<e.length;n++)t[n+a]=e[n];return t}function _d(r,e){var t;if(Object.create)t=Object.create(r);else{var n=function(){};n.prototype=r,t=new n}return e&&G(t,e),t}function jI(r){var e=r.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function J(r,e){return r.hasOwnProperty(e)}function ot(){}var bc=180/Math.PI;/*! *****************************************************************************
15
+ Copyright (c) Microsoft Corporation.
16
+
17
+ Permission to use, copy, modify, and/or distribute this software for any
18
+ purpose with or without fee is hereby granted.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
21
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
22
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
23
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
24
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
25
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
26
+ PERFORMANCE OF THIS SOFTWARE.
27
+ ***************************************************************************** */var Sm=function(r,e){return Sm=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])},Sm(r,e)};function Je(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Sm(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function Ho(r,e){return r==null&&(r=0),e==null&&(e=0),[r,e]}function Ht(r,e){return r[0]=e[0],r[1]=e[1],r}function ra(r){return[r[0],r[1]]}function Ya(r,e,t){return r[0]=e,r[1]=t,r}function Nx(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r}function xm(r,e,t,n){return r[0]=e[0]+t[0]*n,r[1]=e[1]+t[1]*n,r}function no(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r}function wm(r){return Math.sqrt(TV(r))}function TV(r){return r[0]*r[0]+r[1]*r[1]}function Cc(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r}function gl(r,e){var t=wm(e);return t===0?(r[0]=0,r[1]=0):(r[0]=e[0]/t,r[1]=e[1]/t),r}function bm(r,e){return Math.sqrt((r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1]))}var Na=bm;function AV(r,e){return(r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1])}var fo=AV;function Tc(r,e,t,n){return r[0]=e[0]+n*(t[0]-e[0]),r[1]=e[1]+n*(t[1]-e[1]),r}function st(r,e,t){var n=e[0],a=e[1];return r[0]=t[0]*n+t[2]*a+t[4],r[1]=t[1]*n+t[3]*a+t[5],r}function Ba(r,e,t){return r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r}function Va(r,e,t){return r[0]=Math.max(e[0],t[0]),r[1]=Math.max(e[1],t[1]),r}var ns=(function(){function r(e,t){this.target=e,this.topTarget=t&&t.topTarget}return r})(),MV=(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 ns(t,e),"dragstart",e.event))},r.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,a=e.offsetY,i=n-this._x,o=a-this._y;this._x=n,this._y=a,t.drift(i,o,e),this.handler.dispatchToElement(new ns(t,e),"drag",e.event);var s=this.handler.findHover(n,a,t).target,l=this._dropTarget;this._dropTarget=s,t!==s&&(l&&s!==l&&this.handler.dispatchToElement(new ns(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new ns(s,e),"dragenter",e.event))}},r.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new ns(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new ns(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},r})(),Wr=(function(){function r(e){e&&(this._$eventProcessor=e)}return r.prototype.on=function(e,t,n,a){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof t=="function"&&(a=n,n=t,t=null),!n||!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===n)return this;var l={h:n,query:t,ctx:a||this,callAtLast:n.zrEventfulCallAtLast},u=i[e].length-1,f=i[e][u];return f&&f.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 n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var a=[],i=0,o=n[e].length;i<o;i++)n[e][i].h!==t&&a.push(n[e][i]);n[e]=a}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},r.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[e],i=this._$eventProcessor;if(a)for(var o=t.length,s=a.length,l=0;l<s;l++){var u=a[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=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[e],i=this._$eventProcessor;if(a)for(var o=t.length,s=t[o-1],l=a.length,u=0;u<l;u++){var f=a[u];if(!(i&&i.filter&&f.query!=null&&!i.filter(e,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,t[0]);break;case 2:f.h.call(s,t[0],t[1]);break;default:f.h.apply(s,t.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},r})(),DV=Math.log(2);function Cm(r,e,t,n,a,i){var o=n+"-"+a,s=r.length;if(i.hasOwnProperty(o))return i[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~a)/DV);return r[t][l]}for(var u=n|1<<t,f=t+1;n&1<<f;)f++;for(var v=0,c=0,h=0;c<s;c++){var d=1<<c;d&a||(v+=(h%2?-1:1)*r[t][c]*Cm(r,e-1,f,u,a|d,i),h++)}return i[o]=v,v}function Bx(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]]],n={},a=Cm(t,8,0,0,0,n);if(a!==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)*Cm(t,7,o===0?1:0,1<<o,1<<s,n)/a*e[o];return function(l,u,f){var v=u*i[6]+f*i[7]+1;l[0]=(u*i[0]+f*i[1]+i[2])/v,l[1]=(u*i[3]+f*i[4]+i[5])/v}}}var Kc="___zrEVENTSAVED",mp=[];function IV(r,e,t,n,a){return Tm(mp,e,n,a,!0)&&Tm(r,t,mp[0],mp[1])}function LV(r,e){r&&t(r),e&&t(e);function t(n){var a=n[Kc];a&&(a.clearMarkers&&a.clearMarkers(),delete n[Kc])}}function Tm(r,e,t,n,a){if(e.getBoundingClientRect&&Le.domSupported&&!qI(e)){var i=e[Kc]||(e[Kc]={}),o=PV(e,i),s=RV(o,i,a);if(s)return s(r,t,n),!0}return!1}function PV(r,e){var t=e.markers;if(t)return t;t=e.markers=[];for(var n=["left","right"],a=["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",n[l]+":0",a[u]+":0",n[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),r.appendChild(o),t.push(o)}return e.clearMarkers=function(){M(t,function(f){f.parentNode&&f.parentNode.removeChild(f)})},t}function RV(r,e,t){for(var n=t?"invTrans":"trans",a=e[n],i=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),v=2*u,c=f.left,h=f.top;o.push(c,h),l=l&&i&&c===i[v]&&h===i[v+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&a?a:(e.srcCoords=o,e[n]=t?Bx(s,o):Bx(o,s))}function qI(r){return r.nodeName.toUpperCase()==="CANVAS"}var EV=/([&<>"'])/g,kV={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Qt(r){return r==null?"":(r+"").replace(EV,function(e,t){return kV[t]})}var OV=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,_p=[],NV=Le.browser.firefox&&+Le.browser.version.split(".")[0]<39;function Am(r,e,t,n){return t=t||{},n?Vx(r,e,t):NV&&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):Vx(r,e,t),t}function Vx(r,e,t){if(Le.domSupported&&r.getBoundingClientRect){var n=e.clientX,a=e.clientY;if(qI(r)){var i=r.getBoundingClientRect();t.zrX=n-i.left,t.zrY=a-i.top;return}else if(Tm(_p,r,n,a)){t.zrX=_p[0],t.zrY=_p[1];return}}t.zrX=t.zrY=0}function X_(r){return r||window.event}function Lr(r,e,t){if(e=X_(e),e.zrX!=null)return e;var n=e.type,a=n&&n.indexOf("touch")>=0;if(a){var o=n!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&Am(r,o,e,t)}else{Am(r,e,e,t);var i=BV(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&OV.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function BV(r){var e=r.wheelDelta;if(e)return e;var t=r.deltaX,n=r.deltaY;if(t==null||n==null)return e;var a=Math.abs(n!==0?n:t),i=n>0?-1:n<0?1:t>0?-1:1;return 3*a*i}function Mm(r,e,t,n){r.addEventListener(e,t,n)}function VV(r,e,t,n){r.removeEventListener(e,t,n)}var ua=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function zx(r){return r.which===2||r.which===3}var zV=(function(){function r(){this._track=[]}return r.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(e,t,n){var a=e.touches;if(a){for(var i={points:[],touches:[],target:t,event:e},o=0,s=a.length;o<s;o++){var l=a[o],u=Am(n,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 Sp)if(Sp.hasOwnProperty(t)){var n=Sp[t](this._track,e);if(n)return n}},r})();function Fx(r){var e=r[1][0]-r[0][0],t=r[1][1]-r[0][1];return Math.sqrt(e*e+t*t)}function FV(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var Sp={pinch:function(r,e){var t=r.length;if(t){var n=(r[t-1]||{}).points,a=(r[t-2]||{}).points||n;if(a&&a.length>1&&n&&n.length>1){var i=Fx(n)/Fx(a);!isFinite(i)&&(i=1),e.pinchScale=i;var o=FV(n);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}};function nt(){return[1,0,0,1,0,0]}function yl(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function _o(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 Vr(r,e,t){var n=e[0]*t[0]+e[2]*t[1],a=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]=n,r[1]=a,r[2]=i,r[3]=o,r[4]=s,r[5]=l,r}function kn(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 hi(r,e,t,n){n===void 0&&(n=[0,0]);var a=e[0],i=e[2],o=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(t),v=Math.cos(t);return r[0]=a*v+s*f,r[1]=-a*f+s*v,r[2]=i*v+l*f,r[3]=-i*f+v*l,r[4]=v*(o-n[0])+f*(u-n[1])+n[0],r[5]=v*(u-n[1])-f*(o-n[0])+n[1],r}function Z_(r,e,t){var n=t[0],a=t[1];return r[0]=e[0]*n,r[1]=e[1]*a,r[2]=e[2]*n,r[3]=e[3]*a,r[4]=e[4]*n,r[5]=e[5]*a,r}function Gr(r,e){var t=e[0],n=e[2],a=e[4],i=e[1],o=e[3],s=e[5],l=t*o-i*n;return l?(l=1/l,r[0]=o*l,r[1]=-i*l,r[2]=-n*l,r[3]=t*l,r[4]=(n*s-o*a)*l,r[5]=(i*a-t*s)*l,r):null}function GV(r){var e=nt();return _o(e,r),e}var ue=(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,n=this.y-e.y;return Math.sqrt(t*t+n*n)},r.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},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,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},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,n){e.x=t,e.y=n},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,n){e.x=t.x+n.x,e.y=t.y+n.y},r.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},r.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},r.scaleAndAdd=function(e,t,n,a){e.x=t.x+n.x*a,e.y=t.y+n.y*a},r.lerp=function(e,t,n,a){var i=1-a;e.x=i*t.x+a*n.x,e.y=i*t.y+a*n.y},r})(),ao=Math.min,Ps=Math.max,Dm=Math.abs,Gx=["x","y"],HV=["width","height"],yi=new ue,mi=new ue,_i=new ue,Si=new ue,mr=QI(),pu=mr.minTv,Im=mr.maxTv,Lu=[0,0],se=(function(){function r(e,t,n,a){xp(this,e,t,n,a)}return r.set=function(e,t,n,a,i){return a<0&&(t=t+a,a=-a),i<0&&(n=n+i,i=-i),e.x=t,e.y=n,e.width=a,e.height=i,e},r.prototype.union=function(e){var t=ao(e.x,this.x),n=ao(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ps(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ps(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},r.prototype.applyTransform=function(e){r.applyTransform(this,this,e)},r.prototype.calculateTransform=function(e){return KI(nt(),this,e)},r.prototype.intersect=function(e,t,n){return r.intersect(this,e,t,n)},r.intersect=function(e,t,n,a){n&&ue.set(n,0,0);var i=a&&a.outIntersectRect||null,o=a&&a.clamp;if(i&&(i.x=i.y=i.width=i.height=NaN),!e||!t)return!1;e instanceof r||(e=xp($V,e.x,e.y,e.width,e.height)),t instanceof r||(t=xp(WV,t.x,t.y,t.width,t.height));var s=!!n;mr.reset(a,s);var l=mr.touchThreshold,u=e.x+l,f=e.x+e.width-l,v=e.y+l,c=e.y+e.height-l,h=t.x+l,d=t.x+t.width-l,p=t.y+l,g=t.y+t.height-l;if(u>f||v>c||h>d||p>g)return!1;var y=!(f<h||d<u||c<p||g<v);return(s||i)&&(Lu[0]=1/0,Lu[1]=0,Hx(u,f,h,d,0,s,i,o),Hx(v,c,p,g,1,s,i,o),s&&ue.copy(n,y?mr.useDir?mr.dirMinTv:pu:Im)),y},r.contain=function(e,t,n){return t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},r.prototype.contain=function(e,t){return r.contain(this,e,t)},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){qs(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?e.x:0,e?e.y:0,e?e.width:0,e?e.height:0)},r.copy=function(e,t){return e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height,e},r.applyTransform=function(e,t,n){if(!n){e!==t&&qs(e,t);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var a=n[0],i=n[3],o=n[4],s=n[5];e.x=t.x*a+o,e.y=t.y*i+s,e.width=t.width*a,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}yi.x=_i.x=t.x,yi.y=Si.y=t.y,mi.x=Si.x=t.x+t.width,mi.y=_i.y=t.y+t.height,yi.transform(n),Si.transform(n),mi.transform(n),_i.transform(n),e.x=ao(yi.x,mi.x,_i.x,Si.x),e.y=ao(yi.y,mi.y,_i.y,Si.y);var l=Ps(yi.x,mi.x,_i.x,Si.x),u=Ps(yi.y,mi.y,_i.y,Si.y);e.width=l-e.x,e.height=u-e.y},r.calculateTransform=function(e,t,n){var a=n.width/t.width,i=n.height/t.height;return e=yl(e||[]),kn(e,e,Ya(wp,-t.x,-t.y)),Z_(e,e,Ya(wp,a,i)),kn(e,e,Ya(wp,n.x,n.y)),e},r})(),Sd=se.create,xp=se.set,qs=se.copy,KI=se.calculateTransform,JI=se.applyTransform,UV=se.contain,$V=new se(0,0,0,0),WV=new se(0,0,0,0),wp=[];function Hx(r,e,t,n,a,i,o,s){var l=Dm(e-t),u=Dm(n-r),f=ao(l,u),v=Gx[a],c=Gx[1-a],h=HV[a];e<t||n<r?l<u?(i&&(Im[v]=-l),s&&(o[v]=e,o[h]=0)):(i&&(Im[v]=u),s&&(o[v]=r,o[h]=0)):(o&&(o[v]=Ps(r,t),o[h]=ao(e,n)-o[v]),i&&(f<Lu[0]||mr.useDir)&&(Lu[0]=ao(f,Lu[0]),(l<u||!mr.bidirectional)&&(pu[v]=l,pu[c]=0,mr.useDir&&mr.calcDirMTV()),(l>=u||!mr.bidirectional)&&(pu[v]=-u,pu[c]=0,mr.useDir&&mr.calcDirMTV())))}function QI(){var r=0,e=new ue,t=new ue,n={minTv:new ue,maxTv:new ue,useDir:!1,dirMinTv:new ue,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,o){n.touchThreshold=0,i&&i.touchThreshold!=null&&(n.touchThreshold=Ps(0,i.touchThreshold)),n.negativeSize=!1,o&&(n.minTv.set(1/0,1/0),n.maxTv.set(0,0),n.useDir=!1,i&&i.direction!=null&&(n.useDir=!0,n.dirMinTv.copy(n.minTv),t.copy(n.minTv),r=i.direction,n.bidirectional=i.bidirectional==null||!!i.bidirectional,n.bidirectional||e.set(Math.cos(r),Math.sin(r))))},calcDirMTV:function(){var i=n.minTv,o=n.dirMinTv,s=i.y*i.y+i.x*i.x,l=Math.sin(r),u=Math.cos(r),f=l*i.y+u*i.x;if(a(f)){a(i.x)&&a(i.y)&&o.set(0,0);return}if(t.x=s*u/f,t.y=s*l/f,a(t.x)&&a(t.y)){o.set(0,0);return}(n.bidirectional||e.dot(t)>0)&&t.len()<o.len()&&o.copy(t)}};function a(i){return Dm(i)<1e-10}return n}var eL="silent";function YV(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:XV}}function XV(){ua(this.event)}var ZV=(function(r){Je(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})(Wr),kl=(function(){function r(e,t){this.x=e,this.y=t}return r})(),jV=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],bp=new se(0,0,0,0),tL=(function(r){Je(e,r);function e(t,n,a,i,o){var s=r.call(this)||this;return s._hovered=new kl(0,0),s.storage=t,s.painter=n,s.painterRoot=i,s._pointerSize=o,a=a||new ZV,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new MV(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(M(jV,function(n){t.on&&t.on(n,this[n],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var n=t.zrX,a=t.zrY,i=rL(this,n,a),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 kl(n,a):this.findHover(n,a),u=l.target,f=this.proxy;f.setCursor&&f.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 n=t.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new kl(0,0)},e.prototype.dispatch=function(t,n){var a=this[t];a&&a.call(this,n)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var n=this.proxy;n.setCursor&&n.setCursor(t)},e.prototype.dispatchToElement=function(t,n,a){t=t||{};var i=t.target;if(!(i&&i.silent)){for(var o="on"+n,s=YV(n,t,a);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(n,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},e.prototype.findHover=function(t,n,a){var i=this.storage.getDisplayList(),o=new kl(t,n);if(Ux(i,o,t,n,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new se(t-u,n-u,l,l),v=i.length-1;v>=0;v--){var c=i[v];c!==a&&!c.ignore&&!c.ignoreCoarsePointer&&(!c.parent||!c.parent.ignoreCoarsePointer)&&(bp.copy(c.getBoundingRect()),c.transform&&bp.applyTransform(c.transform),bp.intersect(f)&&s.push(c))}if(s.length)for(var h=4,d=Math.PI/12,p=Math.PI*2,g=0;g<u;g+=h)for(var y=0;y<p;y+=d){var m=t+g*Math.cos(y),_=n+g*Math.sin(y);if(Ux(s,o,m,_,a),o.target)return o}}return o},e.prototype.processGesture=function(t,n){this._gestureMgr||(this._gestureMgr=new zV);var a=this._gestureMgr;n==="start"&&a.clear();var i=a.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if(n==="end"&&a.clear(),i){var o=i.type;t.gestureEvent=o;var s=new kl;s.target=i.target,this.dispatchToElement(s,o,i.event)}},e})(Wr);M(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){tL.prototype[r]=function(e){var t=e.zrX,n=e.zrY,a=rL(this,t,n),i,o;if((r!=="mouseup"||!a)&&(i=this.findHover(t,n),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||Na(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,r,e)}});function qV(r,e,t){if(r[r.rectHover?"rectContain":"contain"](e,t)){for(var n=r,a=void 0,i=!1;n;){if(n.ignoreClip&&(i=!0),!i){var o=n.getClipPath();if(o&&!o.contain(e,t))return!1}n.silent&&(a=!0);var s=n.__hostTarget;n=s?n.ignoreHostSilent?null:s:n.parent}return a?eL:!0}return!1}function Ux(r,e,t,n,a){for(var i=r.length-1;i>=0;i--){var o=r[i],s=void 0;if(o!==a&&!o.ignore&&(s=qV(o,t,n))&&(!e.topTarget&&(e.topTarget=o),s!==eL)){e.target=o;break}}}function rL(r,e,t){var n=r.painter;return e<0||e>n.getWidth()||t<0||t>n.getHeight()}var nL=32,Ol=7;function KV(r){for(var e=0;r>=nL;)e|=r&1,r>>=1;return r+e}function $x(r,e,t,n){var a=e+1;if(a===t)return 1;if(n(r[a++],r[e])<0){for(;a<t&&n(r[a],r[a-1])<0;)a++;JV(r,e,a)}else for(;a<t&&n(r[a],r[a-1])>=0;)a++;return a-e}function JV(r,e,t){for(t--;e<t;){var n=r[e];r[e++]=r[t],r[t--]=n}}function Wx(r,e,t,n,a){for(n===e&&n++;n<t;n++){for(var i=r[n],o=e,s=n,l;o<s;)l=o+s>>>1,a(i,r[l])<0?s=l:o=l+1;var u=n-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 Cp(r,e,t,n,a,i){var o=0,s=0,l=1;if(i(r,e[t+a])>0){for(s=n-a;l<s&&i(r,e[t+a+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;l<s&&i(r,e[t+a-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o<l;){var f=o+(l-o>>>1);i(r,e[t+f])>0?o=f+1:l=f}return l}function Tp(r,e,t,n,a,i){var o=0,s=0,l=1;if(i(r,e[t+a])<0){for(s=a+1;l<s&&i(r,e[t+a-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=n-a;l<s&&i(r,e[t+a+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o<l;){var f=o+(l-o>>>1);i(r,e[t+f])<0?l=f:o=f+1}return l}function QV(r,e){var t=Ol,n,a,i=0,o=[];n=[],a=[];function s(h,d){n[i]=h,a[i]=d,i+=1}function l(){for(;i>1;){var h=i-2;if(h>=1&&a[h-1]<=a[h]+a[h+1]||h>=2&&a[h-2]<=a[h]+a[h-1])a[h-1]<a[h+1]&&h--;else if(a[h]>a[h+1])break;f(h)}}function u(){for(;i>1;){var h=i-2;h>0&&a[h-1]<a[h+1]&&h--,f(h)}}function f(h){var d=n[h],p=a[h],g=n[h+1],y=a[h+1];a[h]=p+y,h===i-3&&(n[h+1]=n[h+2],a[h+1]=a[h+2]),i--;var m=Tp(r[g],r,d,p,0,e);d+=m,p-=m,p!==0&&(y=Cp(r[d+p-1],r,g,y,y-1,e),y!==0&&(p<=y?v(d,p,g,y):c(d,p,g,y)))}function v(h,d,p,g){var y=0;for(y=0;y<d;y++)o[y]=r[h+y];var m=0,_=p,S=h;if(r[S++]=r[_++],--g===0){for(y=0;y<d;y++)r[S+y]=o[m+y];return}if(d===1){for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m];return}for(var x=t,w,b,T;;){w=0,b=0,T=!1;do if(e(r[_],o[m])<0){if(r[S++]=r[_++],b++,w=0,--g===0){T=!0;break}}else if(r[S++]=o[m++],w++,b=0,--d===1){T=!0;break}while((w|b)<x);if(T)break;do{if(w=Tp(r[_],o,m,d,0,e),w!==0){for(y=0;y<w;y++)r[S+y]=o[m+y];if(S+=w,m+=w,d-=w,d<=1){T=!0;break}}if(r[S++]=r[_++],--g===0){T=!0;break}if(b=Cp(o[m],r,_,g,0,e),b!==0){for(y=0;y<b;y++)r[S+y]=r[_+y];if(S+=b,_+=b,g-=b,g===0){T=!0;break}}if(r[S++]=o[m++],--d===1){T=!0;break}x--}while(w>=Ol||b>=Ol);if(T)break;x<0&&(x=0),x+=2}if(t=x,t<1&&(t=1),d===1){for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m]}else{if(d===0)throw new Error;for(y=0;y<d;y++)r[S+y]=o[m+y]}}function c(h,d,p,g){var y=0;for(y=0;y<g;y++)o[y]=r[p+y];var m=h+d-1,_=g-1,S=p+g-1,x=0,w=0;if(r[S--]=r[m--],--d===0){for(x=S-(g-1),y=0;y<g;y++)r[x+y]=o[y];return}if(g===1){for(S-=d,m-=d,w=S+1,x=m+1,y=d-1;y>=0;y--)r[w+y]=r[x+y];r[S]=o[_];return}for(var b=t;;){var T=0,C=0,A=!1;do if(e(o[_],r[m])<0){if(r[S--]=r[m--],T++,C=0,--d===0){A=!0;break}}else if(r[S--]=o[_--],C++,T=0,--g===1){A=!0;break}while((T|C)<b);if(A)break;do{if(T=d-Tp(o[_],r,h,d,d-1,e),T!==0){for(S-=T,m-=T,d-=T,w=S+1,x=m+1,y=T-1;y>=0;y--)r[w+y]=r[x+y];if(d===0){A=!0;break}}if(r[S--]=o[_--],--g===1){A=!0;break}if(C=g-Cp(r[m],o,0,g,g-1,e),C!==0){for(S-=C,_-=C,g-=C,w=S+1,x=_+1,y=0;y<C;y++)r[w+y]=o[x+y];if(g<=1){A=!0;break}}if(r[S--]=r[m--],--d===0){A=!0;break}b--}while(T>=Ol||C>=Ol);if(A)break;b<0&&(b=0),b+=2}if(t=b,t<1&&(t=1),g===1){for(S-=d,m-=d,w=S+1,x=m+1,y=d-1;y>=0;y--)r[w+y]=r[x+y];r[S]=o[_]}else{if(g===0)throw new Error;for(x=S-(g-1),y=0;y<g;y++)r[x+y]=o[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Ac(r,e,t,n){t||(t=0),n||(n=r.length);var a=n-t;if(!(a<2)){var i=0;if(a<nL){i=$x(r,t,n,e),Wx(r,t,n,t+i,e);return}var o=QV(r,e),s=KV(a);do{if(i=$x(r,t,n,e),i<s){var l=a;l>s&&(l=s),Wx(r,t,t+l,t+i,e),i=l}o.pushRun(t,i),o.mergeRuns(),a-=i,t+=i}while(a!==0);o.forceMergeRuns()}}var vr=1,gu=2,Ms=4,Yx=!1;function Ap(){Yx||(Yx=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Xx(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var ez=(function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Xx}return r.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},r.prototype.getDisplayList=function(e,t){t=t||!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(t),n},r.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,a=0,i=t.length;a<i;a++)this._updateAndAddDisplayable(t[a],null,e);n.length=this._displayListLen,Ac(n,Xx)},r.prototype._updateAndAddDisplayable=function(e,t,n){if(!(e.ignore&&!n)){e.beforeUpdate(),e.update(),e.afterUpdate();var a=e.getClipPath(),i=t&&t.length,o=0,s=e.__clipPaths;if(!e.ignoreClip&&(i||a)){if(s||(s=e.__clipPaths=[]),i)for(var l=0;l<t.length;l++)s[o++]=t[l];for(var u=a,f=e;u;)u.parent=f,u.updateTransform(),s[o++]=u,f=u,u=u.getClipPath()}if(s&&(s.length=o),e.childrenRef){for(var v=e.childrenRef(),c=0;c<v.length;c++){var h=v[c];e.__dirty&&(h.__dirty|=vr),this._updateAndAddDisplayable(h,s,n)}e.__dirty=0}else{var d=e;isNaN(d.z)&&(Ap(),d.z=0),isNaN(d.z2)&&(Ap(),d.z2=0),isNaN(d.zlevel)&&(Ap(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var p=e.getDecalElement&&e.getDecalElement();p&&this._updateAndAddDisplayable(p,s,n);var g=e.getTextGuideLine();g&&this._updateAndAddDisplayable(g,s,n);var y=e.getTextContent();y&&this._updateAndAddDisplayable(y,s,n)}},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,n=e.length;t<n;t++)this.delRoot(e[t]);return}var a=pe(this._roots,e);a>=0&&this._roots.splice(a,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})(),Jc;Jc=Le.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var Pu={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,n=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=n/4):e=n*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/n)))},elasticOut:function(r){var e,t=.1,n=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=n/4):e=n*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*r)*Math.sin((r-e)*(2*Math.PI)/n)+1)},elasticInOut:function(r){var e,t=.1,n=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=n/4):e=n*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)/n)):t*Math.pow(2,-10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/n)*.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-Pu.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?Pu.bounceIn(r*2)*.5:Pu.bounceOut(r*2-1)*.5+.5}},tv=Math.pow,Xa=Math.sqrt,Qc=1e-8,aL=1e-4,Zx=Xa(3),rv=1/3,_n=Ho(),kr=Ho(),Vs=Ho();function za(r){return r>-Qc&&r<Qc}function iL(r){return r>Qc||r<-Qc}function Ct(r,e,t,n,a){var i=1-a;return i*i*(i*r+3*a*e)+a*a*(a*n+3*i*t)}function jx(r,e,t,n,a){var i=1-a;return 3*(((e-r)*i+2*(t-e)*a)*i+(n-t)*a*a)}function eh(r,e,t,n,a,i){var o=n+3*(e-t)-r,s=3*(t-e*2+r),l=3*(e-r),u=r-a,f=s*s-3*o*l,v=s*l-9*o*u,c=l*l-3*s*u,h=0;if(za(f)&&za(v))if(za(s))i[0]=0;else{var d=-l/s;d>=0&&d<=1&&(i[h++]=d)}else{var p=v*v-4*f*c;if(za(p)){var g=v/f,d=-s/o+g,y=-g/2;d>=0&&d<=1&&(i[h++]=d),y>=0&&y<=1&&(i[h++]=y)}else if(p>0){var m=Xa(p),_=f*s+1.5*o*(-v+m),S=f*s+1.5*o*(-v-m);_<0?_=-tv(-_,rv):_=tv(_,rv),S<0?S=-tv(-S,rv):S=tv(S,rv);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(i[h++]=d)}else{var x=(2*f*s-3*o*v)/(2*Xa(f*f*f)),w=Math.acos(x)/3,b=Xa(f),T=Math.cos(w),d=(-s-2*b*T)/(3*o),y=(-s+b*(T+Zx*Math.sin(w)))/(3*o),C=(-s+b*(T-Zx*Math.sin(w)))/(3*o);d>=0&&d<=1&&(i[h++]=d),y>=0&&y<=1&&(i[h++]=y),C>=0&&C<=1&&(i[h++]=C)}}return h}function oL(r,e,t,n,a){var i=6*t-12*e+6*r,o=9*e+3*n-3*r-9*t,s=3*e-3*r,l=0;if(za(o)){if(iL(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var f=i*i-4*o*s;if(za(f))a[0]=-i/(2*o);else if(f>0){var v=Xa(f),u=(-i+v)/(2*o),c=(-i-v)/(2*o);u>=0&&u<=1&&(a[l++]=u),c>=0&&c<=1&&(a[l++]=c)}}return l}function ri(r,e,t,n,a,i){var o=(e-r)*a+r,s=(t-e)*a+e,l=(n-t)*a+t,u=(s-o)*a+o,f=(l-s)*a+s,v=(f-u)*a+u;i[0]=r,i[1]=o,i[2]=u,i[3]=v,i[4]=v,i[5]=f,i[6]=l,i[7]=n}function sL(r,e,t,n,a,i,o,s,l,u,f){var v,c=.005,h=1/0,d,p,g,y;_n[0]=l,_n[1]=u;for(var m=0;m<1;m+=.05)kr[0]=Ct(r,t,a,o,m),kr[1]=Ct(e,n,i,s,m),g=fo(_n,kr),g<h&&(v=m,h=g);h=1/0;for(var _=0;_<32&&!(c<aL);_++)d=v-c,p=v+c,kr[0]=Ct(r,t,a,o,d),kr[1]=Ct(e,n,i,s,d),g=fo(kr,_n),d>=0&&g<h?(v=d,h=g):(Vs[0]=Ct(r,t,a,o,p),Vs[1]=Ct(e,n,i,s,p),y=fo(Vs,_n),p<=1&&y<h?(v=p,h=y):c*=.5);return f&&(f[0]=Ct(r,t,a,o,v),f[1]=Ct(e,n,i,s,v)),Xa(h)}function tz(r,e,t,n,a,i,o,s,l){for(var u=r,f=e,v=0,c=1/l,h=1;h<=l;h++){var d=h*c,p=Ct(r,t,a,o,d),g=Ct(e,n,i,s,d),y=p-u,m=g-f;v+=Math.sqrt(y*y+m*m),u=p,f=g}return v}function Lt(r,e,t,n){var a=1-n;return a*(a*r+2*n*e)+n*n*t}function Lm(r,e,t,n){return 2*((1-n)*(e-r)+n*(t-e))}function rz(r,e,t,n,a){var i=r-2*e+t,o=2*(e-r),s=r-n,l=0;if(za(i)){if(iL(o)){var u=-s/o;u>=0&&u<=1&&(a[l++]=u)}}else{var f=o*o-4*i*s;if(za(f)){var u=-o/(2*i);u>=0&&u<=1&&(a[l++]=u)}else if(f>0){var v=Xa(f),u=(-o+v)/(2*i),c=(-o-v)/(2*i);u>=0&&u<=1&&(a[l++]=u),c>=0&&c<=1&&(a[l++]=c)}}return l}function lL(r,e,t){var n=r+t-2*e;return n===0?.5:(r-e)/n}function Yu(r,e,t,n,a){var i=(e-r)*n+r,o=(t-e)*n+e,s=(o-i)*n+i;a[0]=r,a[1]=i,a[2]=s,a[3]=s,a[4]=o,a[5]=t}function uL(r,e,t,n,a,i,o,s,l){var u,f=.005,v=1/0;_n[0]=o,_n[1]=s;for(var c=0;c<1;c+=.05){kr[0]=Lt(r,t,a,c),kr[1]=Lt(e,n,i,c);var h=fo(_n,kr);h<v&&(u=c,v=h)}v=1/0;for(var d=0;d<32&&!(f<aL);d++){var p=u-f,g=u+f;kr[0]=Lt(r,t,a,p),kr[1]=Lt(e,n,i,p);var h=fo(kr,_n);if(p>=0&&h<v)u=p,v=h;else{Vs[0]=Lt(r,t,a,g),Vs[1]=Lt(e,n,i,g);var y=fo(Vs,_n);g<=1&&y<v?(u=g,v=y):f*=.5}}return l&&(l[0]=Lt(r,t,a,u),l[1]=Lt(e,n,i,u)),Xa(v)}function nz(r,e,t,n,a,i,o){for(var s=r,l=e,u=0,f=1/o,v=1;v<=o;v++){var c=v*f,h=Lt(r,t,a,c),d=Lt(e,n,i,c),p=h-s,g=d-l;u+=Math.sqrt(p*p+g*g),s=h,l=d}return u}var az=/cubic-bezier\(([0-9,\.e ]+)\)/;function j_(r){var e=r&&az.exec(r);if(e){var t=e[1].split(","),n=+Br(t[0]),a=+Br(t[1]),i=+Br(t[2]),o=+Br(t[3]);if(isNaN(n+a+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:eh(0,n,i,1,l,s)&&Ct(0,a,o,1,s[0])}}}var iz=(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||ot,this.ondestroy=e.ondestroy||ot,this.onrestart=e.onrestart||ot,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 n=this._life,a=e-this._startTime-this._pausedTime,i=a/n;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=a%n;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:Pu[e]||j_(e)},r})(),fL=(function(){function r(e){this.value=e}return r})(),oz=(function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new fL(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,n=e.next;t?t.next=n:this.head=n,n?n.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})(),Ks=(function(){function r(e){this._list=new oz,this._maxSize=10,this._map={},this._maxSize=e}return r.prototype.put=function(e,t){var n=this._list,a=this._map,i=null;if(a[e]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete a[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new fL(t),s.key=e,n.insertEntry(s),a[e]=s}return i},r.prototype.get=function(e){var t=this._map[e],n=this._list;if(t!=null)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r})(),qx={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 Kr(r){return r=Math.round(r),r<0?0:r>255?255:r}function sz(r){return r=Math.round(r),r<0?0:r>360?360:r}function Xu(r){return r<0?0:r>1?1:r}function Mp(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Kr(parseFloat(e)/100*255):Kr(parseInt(e,10))}function Za(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Xu(parseFloat(e)/100):Xu(parseFloat(e))}function Dp(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 Fa(r,e,t){return r+(e-r)*t}function Dr(r,e,t,n,a){return r[0]=e,r[1]=t,r[2]=n,r[3]=a,r}function Pm(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var vL=new Ks(20),nv=null;function as(r,e){nv&&Pm(nv,e),nv=vL.put(r,nv||e.slice())}function hr(r,e){if(r){e=e||[];var t=vL.get(r);if(t)return Pm(e,t);r=r+"";var n=r.replace(/ /g,"").toLowerCase();if(n in qx)return Pm(e,qx[n]),as(r,e),e;var a=n.length;if(n.charAt(0)==="#"){if(a===4||a===5){var i=parseInt(n.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,a===5?parseInt(n.slice(4),16)/15:1),as(r,e),e}else if(a===7||a===9){var i=parseInt(n.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,a===9?parseInt(n.slice(7),16)/255:1),as(r,e),e}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===a){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),f=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);f=Za(u.pop());case"rgb":if(u.length>=3)return Dr(e,Mp(u[0]),Mp(u[1]),Mp(u[2]),u.length===3?f:Za(u[3])),as(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]=Za(u[3]),Rm(u,e),as(r,e),e;case"hsl":if(u.length!==3){Dr(e,0,0,0,1);return}return Rm(u,e),as(r,e),e;default:return}}Dr(e,0,0,0,1)}}function Rm(r,e){var t=(parseFloat(r[0])%360+360)%360/360,n=Za(r[1]),a=Za(r[2]),i=a<=.5?a*(n+1):a+n-a*n,o=a*2-i;return e=e||[],Dr(e,Kr(Dp(o,i,t+1/3)*255),Kr(Dp(o,i,t)*255),Kr(Dp(o,i,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function lz(r){if(r){var e=r[0]/255,t=r[1]/255,n=r[2]/255,a=Math.min(e,t,n),i=Math.max(e,t,n),o=i-a,s=(i+a)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+a):u=o/(2-i-a);var f=((i-e)/6+o/2)/o,v=((i-t)/6+o/2)/o,c=((i-n)/6+o/2)/o;e===i?l=c-v:t===i?l=1/3+f-c:n===i&&(l=2/3+v-f),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return r[3]!=null&&h.push(r[3]),h}}function Em(r,e){var t=hr(r);if(t){for(var n=0;n<3;n++)e<0?t[n]=t[n]*(1-e)|0:t[n]=(255-t[n])*e+t[n]|0,t[n]>255?t[n]=255:t[n]<0&&(t[n]=0);return Tn(t,t.length===4?"rgba":"rgb")}}function Ip(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){t=t||[];var n=r*(e.length-1),a=Math.floor(n),i=Math.ceil(n),o=e[a],s=e[i],l=n-a;return t[0]=Kr(Fa(o[0],s[0],l)),t[1]=Kr(Fa(o[1],s[1],l)),t[2]=Kr(Fa(o[2],s[2],l)),t[3]=Xu(Fa(o[3],s[3],l)),t}}function uz(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){var n=r*(e.length-1),a=Math.floor(n),i=Math.ceil(n),o=hr(e[a]),s=hr(e[i]),l=n-a,u=Tn([Kr(Fa(o[0],s[0],l)),Kr(Fa(o[1],s[1],l)),Kr(Fa(o[2],s[2],l)),Xu(Fa(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:a,rightIndex:i,value:n}:u}}function ja(r,e,t,n){var a=hr(r);if(r)return a=lz(a),e!=null&&(a[0]=sz(ie(e)?e(a[0]):e)),t!=null&&(a[1]=Za(ie(t)?t(a[1]):t)),n!=null&&(a[2]=Za(ie(n)?n(a[2]):n)),Tn(Rm(a),"rgba")}function th(r,e){var t=hr(r);if(t&&e!=null)return t[3]=Xu(e),Tn(t,"rgba")}function Tn(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 rh(r,e){var t=hr(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var Kx=new Ks(100);function km(r){if(Z(r)){var e=Kx.get(r);return e||(e=Em(r,-.1),Kx.put(r,e)),e}else if(yd(r)){var t=G({},r);return t.colorStops=$(r.colorStops,function(n){return{offset:n.offset,color:Em(n.color,-.1)}}),t}return r}var nh=Math.round;function Zu(r){var e;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var t=hr(r);t&&(r="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:r,opacity:e??1}}var Jx=1e-4;function Ga(r){return r<Jx&&r>-Jx}function av(r){return nh(r*1e3)/1e3}function Om(r){return nh(r*1e4)/1e4}function fz(r){return"matrix("+av(r[0])+","+av(r[1])+","+av(r[2])+","+av(r[3])+","+Om(r[4])+","+Om(r[5])+")"}var vz={left:"start",right:"end",center:"middle",middle:"middle"};function cz(r,e,t){return t==="top"?r+=e/2:t==="bottom"&&(r-=e/2),r}function hz(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function dz(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 cL(r){return r&&!!r.image}function pz(r){return r&&!!r.svgElement}function q_(r){return cL(r)||pz(r)}function hL(r){return r.type==="linear"}function dL(r){return r.type==="radial"}function pL(r){return r&&(r.type==="linear"||r.type==="radial")}function xd(r){return"url(#"+r+")"}function gL(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 yL(r){var e=r.x||0,t=r.y||0,n=(r.rotation||0)*bc,a=Q(r.scaleX,1),i=Q(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),n&&l.push("rotate("+n+")"),(a!==1||i!==1)&&l.push("scale("+a+","+i+")"),(o||s)&&l.push("skew("+nh(o*bc)+"deg, "+nh(s*bc)+"deg)"),l.join(" ")}var gz=(function(){return typeof Buffer<"u"&&typeof Buffer.from=="function"?function(r){return Buffer.from(r).toString("base64")}:typeof btoa=="function"&&typeof unescape=="function"&&typeof encodeURIComponent=="function"?function(r){return btoa(unescape(encodeURIComponent(r)))}:function(r){return null}})(),Nm=Array.prototype.slice;function qn(r,e,t){return(e-r)*t+r}function Lp(r,e,t,n){for(var a=e.length,i=0;i<a;i++)r[i]=qn(e[i],t[i],n);return r}function yz(r,e,t,n){for(var a=e.length,i=a&&e[0].length,o=0;o<a;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=qn(e[o][s],t[o][s],n)}return r}function iv(r,e,t,n){for(var a=e.length,i=0;i<a;i++)r[i]=e[i]+t[i]*n;return r}function Qx(r,e,t,n){for(var a=e.length,i=a&&e[0].length,o=0;o<a;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=e[o][s]+t[o][s]*n}return r}function mz(r,e){for(var t=r.length,n=e.length,a=t>n?e:r,i=Math.min(t,n),o=a[i-1]||{color:[0,0,0,0],offset:0},s=i;s<Math.max(t,n);s++)a.push({offset:o.offset,color:o.color.slice()})}function _z(r,e,t){var n=r,a=e;if(!(!n.push||!a.push)){var i=n.length,o=a.length;if(i!==o){var s=i>o;if(s)n.length=o;else for(var l=i;l<o;l++)n.push(t===1?a[l]:Nm.call(a[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(t===1)isNaN(n[l])&&(n[l]=a[l]);else for(var f=0;f<u;f++)isNaN(n[l][f])&&(n[l][f]=a[l][f])}}function Ru(r){if(Wt(r)){var e=r.length;if(Wt(r[0])){for(var t=[],n=0;n<e;n++)t.push(Nm.call(r[n]));return t}return Nm.call(r)}return r}function Mc(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 Sz(r){return Wt(r&&r[0])?2:1}var ov=0,Dc=1,mL=2,yu=3,Bm=4,Vm=5,ew=6;function tw(r){return r===Bm||r===Vm}function sv(r){return r===Dc||r===mL}var Nl=[0,0,0,0],xz=(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,n){this._needsSort=!0;var a=this.keyframes,i=a.length,o=!1,s=ew,l=t;if(Wt(t)){var u=Sz(t);s=u,(u===1&&!Ee(t[0])||u===2&&!Ee(t[0][0]))&&(o=!0)}else if(Ee(t)&&!$t(t))s=ov;else if(Z(t))if(!isNaN(+t))s=ov;else{var f=hr(t);f&&(l=f,s=yu)}else if(yd(t)){var v=G({},l);v.colorStops=$(t.colorStops,function(h){return{offset:h.offset,color:hr(h.color)}}),hL(t)?s=Bm:dL(t)&&(s=Vm),l=v}i===0?this.valType=s:(s!==this.valType||s===ew)&&(o=!0),this.discrete=this.discrete||o;var c={time:e,value:l,rawValue:t,percent:0};return n&&(c.easing=n,c.easingFunc=ie(n)?n:Pu[n]||j_(n)),a.push(c),c},r.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort(function(p,g){return p.time-g.time});for(var a=this.valType,i=n.length,o=n[i-1],s=this.discrete,l=sv(a),u=tw(a),f=0;f<i;f++){var v=n[f],c=v.value,h=o.value;v.percent=v.time/e,s||(l&&f!==i-1?_z(c,h,a):u&&mz(c.colorStops,h.colorStops))}if(!s&&a!==Vm&&t&&this.needsAnimate()&&t.needsAnimate()&&a===t.valType&&!t._finished){this._additiveTrack=t;for(var d=n[0].value,f=0;f<i;f++)a===ov?n[f].additiveValue=n[f].value-d:a===yu?n[f].additiveValue=iv([],n[f].value,d,-1):sv(a)&&(n[f].additiveValue=a===Dc?iv([],n[f].value,d,-1):Qx([],n[f].value,d,-1))}},r.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,a=n?"additiveValue":"value",i=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=i===yu,f,v=this._lastFr,c=Math.min,h,d;if(s===1)h=d=o[0];else{if(t<0)f=0;else if(t<this._lastFrP){var p=c(v+1,s-1);for(f=p;f>=0&&!(o[f].percent<=t);f--);f=c(f,s-2)}else{for(f=v;f<s&&!(o[f].percent>t);f++);f=c(f-1,s-2)}d=o[f+1],h=o[f]}if(h&&d){this._lastFr=f,this._lastFrP=t;var g=d.percent-h.percent,y=g===0?1:c((t-h.percent)/g,1);d.easingFunc&&(y=d.easingFunc(y));var m=n?this._additiveValue:u?Nl:e[l];if((sv(i)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)e[l]=y<1?h.rawValue:d.rawValue;else if(sv(i))i===Dc?Lp(m,h[a],d[a],y):yz(m,h[a],d[a],y);else if(tw(i)){var _=h[a],S=d[a],x=i===Bm;e[l]={type:x?"linear":"radial",x:qn(_.x,S.x,y),y:qn(_.y,S.y,y),colorStops:$(_.colorStops,function(b,T){var C=S.colorStops[T];return{offset:qn(b.offset,C.offset,y),color:Mc(Lp([],b.color,C.color,y))}}),global:S.global},x?(e[l].x2=qn(_.x2,S.x2,y),e[l].y2=qn(_.y2,S.y2,y)):e[l].r=qn(_.r,S.r,y)}else if(u)Lp(m,h[a],d[a],y),n||(e[l]=Mc(m));else{var w=qn(h[a],d[a],y);n?this._additiveValue=w:e[l]=w}n&&this._addToTarget(e)}}},r.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,a=this._additiveValue;t===ov?e[n]=e[n]+a:t===yu?(hr(e[n],Nl),iv(Nl,Nl,a,1),e[n]=Mc(Nl)):t===Dc?iv(e[n],e[n],a,1):t===mL&&Qx(e[n],e[n],a,1)},r})(),K_=(function(){function r(e,t,n,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&a){$_("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=n}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,n){return this.whenWithKeys(e,t,De(t),n)},r.prototype.whenWithKeys=function(e,t,n,a){for(var i=this._tracks,o=0;o<n.length;o++){var s=n[o],l=i[s];if(!l){l=i[s]=new xz(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var v=f.keyframes,c=v[v.length-1];u=c&&c.value,f.valType===yu&&u&&(u=Mc(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,Ru(u),a),this._trackKeys.push(s)}l.addKeyframe(e,Ru(t[s]),a)}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,n=0;n<t;n++)e[n].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 n=0;n<t.length;n++)t[n].call(this)},r.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},r.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var a=0;a<n.length;a++){var i=n[a].getTrack(e);i&&(t=i)}return t},r.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,n=[],a=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,f=u.length;if(s.prepare(a,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var v=u[f-1];v&&(t._target[s.propName]=v.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var c=new iz({life:a,loop:this._loop,delay:this._delay||0,onframe:function(h){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<n.length;g++)n[g].step(t._target,h);var y=t._onframeCbs;if(y)for(var g=0;g<y.length;g++)y[g](t._target,h)},ondestroy:function(){t._doneCallback()}});this._clip=c,this.animation&&this.animation.addClip(c),e&&c.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 $(this._trackKeys,function(t){return e._tracks[t]})},r.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,a=this._trackKeys,i=0;i<e.length;i++){var o=n[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<a.length;i++)if(!n[a[i]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(e,t,n){if(e){t=t||this._trackKeys;for(var a=0;a<t.length;a++){var i=t[a],o=this._tracks[i];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(e[i]=Ru(l.rawValue))}}}},r.prototype.__changeFinalValue=function(e,t){t=t||De(e);for(var n=0;n<t.length;n++){var a=t[n],i=this._tracks[a];if(i){var o=i.keyframes;if(o.length>1){var s=o.pop();i.addKeyframe(s.time,e[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},r})();function Rs(){return new Date().getTime()}var wz=(function(r){Je(e,r);function e(t){var n=r.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t=t||{},n.stage=t.stage||{},n}return 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 n=t.getClip();n&&this.addClip(n)},e.prototype.removeClip=function(t){if(t.animation){var n=t.prev,a=t.next;n?n.next=a:this._head=a,a?a.prev=n:this._tail=n,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var n=t.getClip();n&&this.removeClip(n),t.animation=null},e.prototype.update=function(t){for(var n=Rs()-this._pausedTime,a=n-this._time,i=this._head;i;){var o=i.next,s=i.step(n,a);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=n,t||(this.trigger("frame",a),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function n(){t._running&&(Jc(n),!t._paused&&t.update())}Jc(n)},e.prototype.start=function(){this._running||(this._time=Rs(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Rs(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Rs()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var n=t.next;t.prev=t.next=t.animation=null,t=n}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,n){n=n||{},this.start();var a=new K_(t,n.loop);return this.addAnimator(a),a},e})(Wr),bz=300,Pp=Le.domSupported,Rp=(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},n=$(r,function(a){var i=a.replace("mouse","pointer");return t.hasOwnProperty(i)?i:a});return{mouse:r,touch:e,pointer:n}})(),rw={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},nw=!1;function zm(r){var e=r.pointerType;return e==="pen"||e==="touch"}function Cz(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 Ep(r){r&&(r.zrByTouch=!0)}function Tz(r,e){return Lr(r.dom,new Az(r,e),!0)}function _L(r,e){for(var t=e,n=!1;t&&t.nodeType!==9&&!(n=t.domBelongToZr||t!==e&&t===r.painterRoot);)t=t.parentNode;return n}var Az=(function(){function r(e,t){this.stopPropagation=ot,this.stopImmediatePropagation=ot,this.preventDefault=ot,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return r})(),Zr={mousedown:function(r){r=Lr(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Lr(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=Lr(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=Lr(this.dom,r);var e=r.toElement||r.relatedTarget;_L(this,e)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){nw=!0,r=Lr(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){nw||(r=Lr(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Lr(this.dom,r),Ep(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Zr.mousemove.call(this,r),Zr.mousedown.call(this,r)},touchmove:function(r){r=Lr(this.dom,r),Ep(r),this.handler.processGesture(r,"change"),Zr.mousemove.call(this,r)},touchend:function(r){r=Lr(this.dom,r),Ep(r),this.handler.processGesture(r,"end"),Zr.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<bz&&Zr.click.call(this,r)},pointerdown:function(r){Zr.mousedown.call(this,r)},pointermove:function(r){zm(r)||Zr.mousemove.call(this,r)},pointerup:function(r){Zr.mouseup.call(this,r)},pointerout:function(r){zm(r)||Zr.mouseout.call(this,r)}};M(["click","dblclick","contextmenu"],function(r){Zr[r]=function(e){e=Lr(this.dom,e),this.trigger(r,e)}});var Fm={pointermove:function(r){zm(r)||Fm.mousemove.call(this,r)},pointerup:function(r){Fm.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 Mz(r,e){var t=e.domHandlers;Le.pointerEventsSupported?M(Rp.pointer,function(n){Ic(e,n,function(a){t[n].call(r,a)})}):(Le.touchEventsSupported&&M(Rp.touch,function(n){Ic(e,n,function(a){t[n].call(r,a),Cz(e)})}),M(Rp.mouse,function(n){Ic(e,n,function(a){a=X_(a),e.touching||t[n].call(r,a)})}))}function Dz(r,e){Le.pointerEventsSupported?M(rw.pointer,t):Le.touchEventsSupported||M(rw.mouse,t);function t(n){function a(i){i=X_(i),_L(r,i.target)||(i=Tz(r,i),e.domHandlers[n].call(r,i))}Ic(e,n,a,{capture:!0})}}function Ic(r,e,t,n){r.mounted[e]=t,r.listenerOpts[e]=n,Mm(r.domTarget,e,t,n)}function kp(r){var e=r.mounted;for(var t in e)e.hasOwnProperty(t)&&VV(r.domTarget,t,e[t],r.listenerOpts[t]);r.mounted={}}var aw=(function(){function r(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return r})(),Iz=(function(r){Je(e,r);function e(t,n){var a=r.call(this)||this;return a.__pointerCapturing=!1,a.dom=t,a.painterRoot=n,a._localHandlerScope=new aw(t,Zr),Pp&&(a._globalHandlerScope=new aw(document,Fm)),Mz(a,a._localHandlerScope),a}return e.prototype.dispose=function(){kp(this._localHandlerScope),Pp&&kp(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,Pp&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var n=this._globalHandlerScope;t?Dz(this,n):kp(n)}},e})(Wr),SL=1;Le.hasGlobalWindow&&(SL=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var ah=SL,Gm=.4,Hm="#333",Um="#ccc",Lz="#eee",iw=yl,ow=5e-5;function xi(r){return r>ow||r<-ow}var wi=[],is=[],Op=nt(),Np=Math.abs,Un=(function(){function r(){}return r.prototype.getLocalTransform=function(e){return ni(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 xi(this.rotation)||xi(this.x)||xi(this.y)||xi(this.scaleX-1)||xi(this.scaleY-1)||xi(this.skewX)||xi(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;if(!(t||e)){n&&(iw(n),this.invTransform=null);return}n=n||nt(),t?this.getLocalTransform(n):iw(n),e&&(t?Vr(n,e,n):_o(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n),this.invTransform=this.invTransform||nt(),Gr(this.invTransform,n)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(wi);var n=wi[0]<0?-1:1,a=wi[1]<0?-1:1,i=((wi[0]-n)*t+n)/wi[0]||0,o=((wi[1]-a)*t+a)/wi[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}},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],n=e[2]*e[2]+e[3]*e[3],a=Math.atan2(e[1],e[0]),i=Math.PI/2+a-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-a,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,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||nt(),Vr(is,e.invTransform,t),t=is);var n=this.originX,a=this.originY;(n||a)&&(Op[4]=n,Op[5]=a,Vr(is,t,Op),is[4]-=n,is[5]-=a,t=is),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 n=[e,t],a=this.invTransform;return a&&st(n,n,a),n},r.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],a=this.transform;return a&&st(n,n,a),n},r.prototype.getLineScale=function(){var e=this.transform;return e&&Np(e[0]-1)>1e-10&&Np(e[3]-1)>1e-10?Math.sqrt(Np(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){On(this,e)},r.getLocalTransform=function(e,t){t=t||[];var n=e.originX||0,a=e.originY||0,i=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,v=e.y,c=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(n||a||s||l){var d=n+s,p=a+l;t[4]=-d*i-c*p*o,t[5]=-p*o-h*d*i}else t[4]=t[5]=0;return t[0]=i,t[3]=o,t[1]=h*i,t[2]=c*o,u&&hi(t,t,u),t[4]+=n+f,t[5]+=a+v,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})(),ni=Un.getLocalTransform;function zs(){return new Un}var fa=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function On(r,e){return yV(r,e,fa)}function An(r){lv||(lv=new Ks(100)),r=r||la;var e=lv.get(r);return e||(e={font:r,strWidthCache:new Ks(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:rr.measureText("国",r).width,asciiCharWidth:rr.measureText("a",r).width},lv.put(r,e)),e}var lv;function Pz(r){if(!(Bp>=sw)){r=r||la;for(var e=[],t=+new Date,n=0;n<=127;n++)e[n]=rr.measureText(String.fromCharCode(n),r).width;var a=+new Date-t;return a>16?Bp=sw:a>2&&Bp++,e}}var Bp=0,sw=5;function xL(r,e){return r.asciiWidthMapTried||(r.asciiWidthMap=Pz(r.font),r.asciiWidthMapTried=!0),0<=e&&e<=127?r.asciiWidthMap!=null?r.asciiWidthMap[e]:r.asciiCharWidth:r.stWideCharWidth}function Mn(r,e){var t=r.strWidthCache,n=t.get(e);return n==null&&(n=rr.measureText(e,r.font).width,t.put(e,n)),n}function lw(r,e,t,n){var a=Mn(An(e),r),i=Pf(e),o=Js(0,a,t),s=vo(0,i,n),l=new se(o,s,a,i);return l}function wd(r,e,t,n){var a=((r||"")+"").split(`
28
+ `),i=a.length;if(i===1)return lw(a[0],e,t,n);for(var o=new se(0,0,0,0),s=0;s<a.length;s++){var l=lw(a[s],e,t,n);s===0?o.copy(l):o.union(l)}return o}function Js(r,e,t,n){return t==="right"?n?r+=e:r-=e:t==="center"&&(n?r+=e/2:r-=e/2),r}function vo(r,e,t,n){return t==="middle"?n?r+=e/2:r-=e/2:t==="bottom"&&(n?r+=e:r-=e),r}function Pf(r){return An(r).stWideCharWidth}function Nn(r,e){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*e:parseFloat(r):r}function ih(r,e,t){var n=e.position||"inside",a=e.distance!=null?e.distance:5,i=t.height,o=t.width,s=i/2,l=t.x,u=t.y,f="left",v="top";if(n instanceof Array)l+=Nn(n[0],t.width),u+=Nn(n[1],t.height),f=null,v=null;else switch(n){case"left":l-=a,u+=s,f="right",v="middle";break;case"right":l+=a+o,u+=s,v="middle";break;case"top":l+=o/2,u-=a,f="center",v="bottom";break;case"bottom":l+=o/2,u+=i+a,f="center";break;case"inside":l+=o/2,u+=s,f="center",v="middle";break;case"insideLeft":l+=a,u+=s,v="middle";break;case"insideRight":l+=o-a,u+=s,f="right",v="middle";break;case"insideTop":l+=o/2,u+=a,f="center";break;case"insideBottom":l+=o/2,u+=i-a,f="center",v="bottom";break;case"insideTopLeft":l+=a,u+=a;break;case"insideTopRight":l+=o-a,u+=a,f="right";break;case"insideBottomLeft":l+=a,u+=i-a,v="bottom";break;case"insideBottomRight":l+=o-a,u+=i-a,f="right",v="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=v,r}var Vp="__zr_normal__",zp=fa.concat(["ignore"]),Rz=En(fa,function(r,e){return r[e]=!0,r},{ignore:!1}),os={},Ez=new se(0,0,0,0),uv=[],Lc=0,bd=1,Cd=(function(){function r(e){this.id=YI(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return r.prototype._init=function(e){this.attr(e)},r.prototype.drift=function(e,t,n){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=e,a[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 n=this.textConfig,a=n.local,i=t.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=a?this:null;var u=!1;i.copyTransform(t);var f=n.position!=null,v=n.autoOverflowArea,c=void 0;if((v||f)&&(c=Ez,n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),a||c.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(os,n,c):ih(os,n,c),i.x=os.x,i.y=os.y,o=os.align,s=os.verticalAlign;var h=n.origin;if(h&&n.rotation!=null){var d=void 0,p=void 0;h==="center"?(d=c.width*.5,p=c.height*.5):(d=Nn(h[0],c.width),p=Nn(h[1],c.height)),u=!0,i.originX=-i.x+d+(a?0:c.x),i.originY=-i.y+p+(a?0:c.y)}}n.rotation!=null&&(i.rotation=n.rotation);var g=n.offset;g&&(i.x+=g[0],i.y+=g[1],u||(i.originX=-g[0],i.originY=-g[1]));var y=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(v){var m=y.overflowRect=y.overflowRect||new se(0,0,0,0);i.getLocalTransform(uv),Gr(uv,uv),se.copy(m,c),m.applyTransform(uv)}else y.overflowRect=null;var _=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,S=void 0,x=void 0,w=void 0;_&&this.canBeInsideText()?(S=n.insideFill,x=n.insideStroke,(S==null||S==="auto")&&(S=this.getInsideTextFill()),(x==null||x==="auto")&&(x=this.getInsideTextStroke(S),w=!0)):(S=n.outsideFill,x=n.outsideStroke,(S==null||S==="auto")&&(S=this.getOutsideFill()),(x==null||x==="auto")&&(x=this.getOutsideStroke(S),w=!0)),S=S||"#000",(S!==y.fill||x!==y.stroke||w!==y.autoStroke||o!==y.align||s!==y.verticalAlign)&&(l=!0,y.fill=S,y.stroke=x,y.autoStroke=w,y.align=o,y.verticalAlign=s,t.setDefaultTextStyle(y)),t.__dirty|=vr,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()?Um:Hm},r.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n=typeof t=="string"&&hr(t);n||(n=[255,255,255,1]);for(var a=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*a+(i?0:255)*(1-a);return n[3]=1,Tn(n,"rgba")},r.prototype.traverse=function(e,t){},r.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},G(this.extra,t)):this[e]=t},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(fe(e))for(var n=e,a=De(n),i=0;i<a.length;i++){var o=a[i];this.attrKV(o,e[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var a=this.animators[n],i=a.__fromStateTransition;if(!(a.getLoop()||i&&i!==Vp)){var o=a.targetName,s=o?t[o]:t;a.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,zp)},r.prototype._savePrimaryToNormal=function(e,t,n){for(var a=0;a<n.length;a++){var i=n[a];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(Vp,!1,e)},r.prototype.useState=function(e,t,n,a){var i=e===Vp,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(pe(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){$_("State "+e+" not exists.");return}i||this.saveCurrentToNormalState(u);var f=this._textContent,v=uw(this,f,u,a);v&&!this.__inHover&&(this.__inHover=v),this._applyStateObj(e,u,this._normalState,t,vw(this,n,l),l);var c=this._textGuide;return f&&f.useState(e,t,n,!!v),c&&c.useState(e,t,n,!!v),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!v&&this.__inHover&&(this.__inHover=Lc,this.__dirty&=~vr),u}}},r.prototype.useStates=function(e,t,n){if(!e.length)this.clearStates();else{var a=[],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],f=void 0;this.stateProxy&&(f=this.stateProxy(u,e)),f||(f=this.states[u]),f&&a.push(f)}var v=a[o-1],c=this._textContent,h=uw(this,c,v,n);h&&!this.__inHover&&(this.__inHover=h);var d=this._mergeStates(a),p=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(e.join(","),d,this._normalState,!1,vw(this,t,p),p);var g=this._textGuide;c&&c.useStates(e,t,!!h),g&&g.useStates(e,t,!!h),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!h&&this.__inHover&&(this.__inHover=Lc,this.__dirty&=~vr)}},r.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var t=e.__hostTarget;e=t?e.ignoreHostSilent?null:t:e.parent}return!1},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=pe(this.currentStates,e);if(t>=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},r.prototype.replaceState=function(e,t,n){var a=this.currentStates.slice(),i=pe(a,e),o=pe(a,t)>=0;i>=0?o?a.splice(i,1):a[i]=t:n&&!o&&a.push(t),this.useStates(a)},r.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},r.prototype._mergeStates=function(e){for(var t={},n,a=0;a<e.length;a++){var i=e[a];G(t,i),i.textConfig&&(n=n||{},G(n,i.textConfig))}return n&&(t.textConfig=n),t},r.prototype._applyStateObj=function(e,t,n,a,i,o){if(this.__inHover!==bd){var s=!(t&&a);t&&t.textConfig?(this.textConfig=G({},a?this.textConfig:n.textConfig),G(this.textConfig,t.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,f=0;f<zp.length;f++){var v=zp[f],c=i&&Rz[v];t&&t[v]!=null?c?(u=!0,l[v]=t[v]):this[v]=t[v]:s&&n[v]!=null&&(c?(u=!0,l[v]=n[v]):this[v]=n[v])}if(!i)for(var f=0;f<this.animators.length;f++){var h=this.animators[f],d=h.targetName;h.getLoop()||h.__changeFinalValue(d?(t||n)[d]:t||n)}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 Un,this._attachComponent(e),this._textContent=e,this.markRedraw())},r.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),G(this.textConfig,e),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=vr;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},r.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},r.prototype.animate=function(e,t,n){var a=e?this[e]:this,i=new K_(a,t,n);return e&&(i.targetName=e),this.addAnimator(i,e),i},r.prototype.addAnimator=function(e,t){var n=this.__zr,a=this;e.during(function(){a.updateDuringAnimation(t)}).done(function(){var i=a.animators,o=pe(i,e);o>=0&&i.splice(o,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},r.prototype.updateDuringAnimation=function(e){this.markRedraw()},r.prototype.stopAnimation=function(e,t){for(var n=this.animators,a=n.length,i=[],o=0;o<a;o++){var s=n[o];!e||e===s.scope?s.stop(t):i.push(s)}return this.animators=i,this},r.prototype.animateTo=function(e,t,n){Fp(this,e,t,n)},r.prototype.animateFrom=function(e,t,n){Fp(this,e,t,n,!0)},r.prototype._transitionState=function(e,t,n,a){for(var i=Fp(this,t,n,a),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.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=!1,e.__inHover=Lc,e.__dirty=vr;function t(n,a,i,o){Object.defineProperty(e,n,{get:function(){if(!this[a]){var l=this[a]=[];s(this,l)}return this[a]},set:function(l){this[i]=l[0],this[o]=l[1],this[a]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[i]},set:function(f){l[i]=f}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(f){l[o]=f}})}}Object.defineProperty&&(t("position","_legacyPos","x","y"),t("scale","_legacyScale","scaleX","scaleY"),t("origin","_legacyOrigin","originX","originY"))})(),r})();xt(Cd,Wr);xt(Cd,Un);function Fp(r,e,t,n,a){t=t||{};var i=[];wL(r,"",r,e,t,n,i,a);var o=i.length,s=!1,l=t.done,u=t.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},v=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 c=0;c<i.length;c++){var h=i[c];f&&h.done(f),v&&h.aborted(v),t.force&&h.duration(t.duration),h.start(t.easing)}return i}function Gp(r,e,t){for(var n=0;n<t;n++)r[n]=e[n]}function kz(r){return Wt(r[0])}function Oz(r,e,t){if(Wt(e[t]))if(Wt(r[t])||(r[t]=[]),dr(e[t])){var n=e[t].length;r[t].length!==n&&(r[t]=new e[t].constructor(n),Gp(r[t],e[t],n))}else{var a=e[t],i=r[t],o=a.length;if(kz(a))for(var s=a[0].length,l=0;l<o;l++)i[l]?Gp(i[l],a[l],s):i[l]=Array.prototype.slice.call(a[l]);else Gp(i,a,o);i.length=a.length}else r[t]=e[t]}function Nz(r,e){return r===e||Wt(r)&&Wt(e)&&Bz(r,e)}function Bz(r,e){var t=r.length;if(t!==e.length)return!1;for(var n=0;n<t;n++)if(r[n]!==e[n])return!1;return!0}function wL(r,e,t,n,a,i,o,s){for(var l=De(n),u=a.duration,f=a.delay,v=a.additive,c=a.setToFinal,h=!fe(i),d=r.animators,p=[],g=0;g<l.length;g++){var y=l[g],m=n[y];if(m!=null&&t[y]!=null&&(h||i[y]))if(fe(m)&&!Wt(m)&&!yd(m)){if(e){s||(t[y]=m,r.updateDuringAnimation(e));continue}wL(r,y,t[y],m,a,i&&i[y],o,s)}else p.push(y);else s||(t[y]=m,r.updateDuringAnimation(e),p.push(y))}var _=p.length;if(!v&&_)for(var S=0;S<d.length;S++){var x=d[S];if(x.targetName===e){var w=x.stopTracks(p);if(w){var b=pe(d,x);d.splice(b,1)}}}if(a.force||(p=Fe(p,function(D){return!Nz(n[D],t[D])}),_=p.length),_>0||a.force&&!o.length){var T=void 0,C=void 0,A=void 0;if(s){C={},c&&(T={});for(var S=0;S<_;S++){var y=p[S];C[y]=t[y],c?T[y]=n[y]:t[y]=n[y]}}else if(c){A={};for(var S=0;S<_;S++){var y=p[S];A[y]=Ru(t[y]),Oz(t,n,y)}}var x=new K_(t,!1,!1,v?Fe(d,function(L){return L.targetName===e}):null);x.targetName=e,a.scope&&(x.scope=a.scope),c&&T&&x.whenWithKeys(0,T,p),A&&x.whenWithKeys(0,A,p),x.whenWithKeys(u??500,s?C:n,p).delay(f||0),r.addAnimator(x,e),o.push(x)}}function uw(r,e,t,n){return!(t&&t.hoverLayer||n)||fw(r)||e&&fw(e)?Lc:bd}function fw(r){return r.type==="text"||r.type==="tspan"}function vw(r,e,t){return!e&&!r.__inHover&&t&&t.duration>0}var oe=(function(r){Je(e,r);function e(t){var n=r.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}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 n=this._children,a=0;a<n.length;a++)if(n[a].name===t)return n[a]},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,n){if(t&&t!==this&&t.parent!==this&&n&&n.parent===this){var a=this._children,i=a.indexOf(n);i>=0&&(a.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,n){var a=pe(this._children,t);return a>=0&&this.replaceAt(n,a),this},e.prototype.replaceAt=function(t,n){var a=this._children,i=a[n];if(t&&t!==this&&t.parent!==this&&t!==i){a[n]=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 n=this.__zr;n&&n!==t.__zr&&t.addSelfToZr(n),n&&n.refresh()},e.prototype.remove=function(t){var n=this.__zr,a=this._children,i=pe(a,t);return i<0?this:(a.splice(i,1),t.parent=null,n&&t.removeSelfFromZr(n),n&&n.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,n=this.__zr,a=0;a<t.length;a++){var i=t[a];n&&i.removeSelfFromZr(n),i.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,n){for(var a=this._children,i=0;i<a.length;i++){var o=a[i];t.call(n,o,i)}return this},e.prototype.traverse=function(t,n){for(var a=0;a<this._children.length;a++){var i=this._children[a],o=t.call(n,i);i.isGroup&&!o&&i.traverse(t,n)}return this},e.prototype.addSelfToZr=function(t){r.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++){var a=this._children[n];a.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){r.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++){var a=this._children[n];a.removeSelfFromZr(t)}},e.prototype.getBoundingRect=function(t){for(var n=new se(0,0,0,0),a=t||this._children,i=[],o=null,s=0;s<a.length;s++){var l=a[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(i);f?(se.applyTransform(n,u,f),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},e})(Cd);oe.prototype.type="group";/*!
29
+ * ZRender, a high performance 2d drawing library.
30
+ *
31
+ * Copyright (c) 2013, Baidu Inc.
32
+ * All rights reserved.
33
+ *
34
+ * LICENSE
35
+ * https://github.com/ecomfe/zrender/blob/master/LICENSE
36
+ */var Pc={},bL={};function Vz(r){delete bL[r]}function zz(r){if(!r)return!1;if(typeof r=="string")return rh(r,1)<Gm;if(r.colorStops){for(var e=r.colorStops,t=0,n=e.length,a=0;a<n;a++)t+=rh(e[a].color,1);return t/=n,t<Gm}return!1}var Fz=(function(){function r(e,t,n){var a=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,n=n||{},this.dom=t,this.id=e;var i=new ez,o=n.renderer||"canvas";Pc[o]||(o=De(Pc)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new Pc[o](t,i,n,e),l=n.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!Le.node&&!Le.worker&&!l?new Iz(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,v=f==null||f==="auto"?Le.touchEventsSupported:!!f,c=44,h;v&&(h=Q(n.pointerSize,c)),this.handler=new tL(i,s,u,s.root,h),this.animation=new wz({stage:{update:l?null:function(){return a._flush(!1)}}}),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=zz(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||this._refresh({animUpdate:!e,refresh:!0,refreshHover:!1})},r.prototype._refresh=function(e){e.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:e.refresh,refreshHover:e.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},r.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},r.prototype.flush=function(){this._disposed||this._flush(!0)},r.prototype._flush=function(e){var t,n=Rs(),a=this._needsRefresh,i=this._needsRefreshHover;(a||i)&&(t=!0,this._refresh({animUpdate:e,refresh:a,refreshHover:i}));var o=Rs();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:o-n})):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._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},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,n){return this._disposed||this.handler.on(e,t,n),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 oe&&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,Vz(this.id))},r})();function cw(r,e){var t=new Fz(YI(),r,e);return bL[t.id]=t,t}function Gz(r,e){Pc[r]=e}var $m;function Hz(r){if(typeof $m=="function")return $m(r)}function Uz(r){$m=r}var hw=1e-4,CL=20,$z=14;function Wz(r){return r.replace(/^\s+|\s+$/g,"")}var He=Math.min,we=Math.max,it=Math.abs,va=Math.round,rn=Math.floor,Uo=Math.ceil,$o=Math.pow,ju=Math.log,Wm=Math.LN10,oh=Math.PI,Yz=Math.random;function Be(r,e,t,n){var a=e[0],i=e[1],o=t[0],s=t[1],l=i-a,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(r<=a)return o;if(r>=i)return s}else{if(r>=a)return o;if(r<=i)return s}else{if(r===a)return o;if(r===i)return s}return(r-a)/l*u+o}var j=Xz;function Xz(r,e,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return sh(r,e,t)}function sh(r,e,t){return Z(r)?TL(r)?parseFloat(r)/100*e+(t||0):parseFloat(r):r==null?NaN:+r}function Zz(r){return Z(r)&&TL(r)}function TL(r){return!!Wz(r).match(/%$/)}function ke(r,e,t){return isNaN(e)?t?""+r:+r:(e=He(we(0,e),CL),r=(+r).toFixed(e),t?r:+r)}function Nt(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(va(r*e)/e===r)return t}return jz(r)}function jz(r){var e=r.toString().toLowerCase(),t=e.indexOf("e"),n=t>0?+e.slice(t+1):0,a=t>0?t:e.length,i=e.indexOf("."),o=i<0?0:a-1-i;return we(0,o-n)}function J_(r,e,t){var n=it(r[1]-r[0]);if(!isFinite(n)||n===0)return NaN;var a=ju(2*it(t||1)*it(n))/Wm,i=ju(it(e))/Wm,o=we(0,Uo(-a+i));return isFinite(o)||(o=NaN),o}function qz(r,e){var t=En(r,function(h,d){return h+(isNaN(d)?0:d)},0);if(t===0)return[];for(var n=$o(10,e),a=$(r,function(h){return(isNaN(h)?0:h)/t*n*100}),i=n*100,o=$(a,function(h){return rn(h)}),s=En(o,function(h,d){return h+d},0),l=$(a,function(h,d){return h-o[d]});s<i;){for(var u=Number.NEGATIVE_INFINITY,f=null,v=0,c=l.length;v<c;++v)l[v]>u&&(u=l[v],f=v);++o[f],l[f]=0,++s}return $(o,function(h){return h/n})}function Yi(r,e){var t=we(ea(r),ea(e)),n=r+e;return t>CL?n:ke(n,t)}var lh=$o(2,53)-1;function AL(r){var e=oh*2;return(r%e+e)%e}function Qs(r){return r>-hw&&r<hw}var Kz=/^(?:(\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 Wo(r){if(r instanceof Date)return r;if(Z(r)){var e=Kz.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(va(r))}function ML(r){return $o(10,Q_(r))}function Q_(r){if(r===0)return 0;var e=rn(ju(r)/Wm);return r/$o(10,e)>=10&&e++,e}var DL=2;function eS(r,e){var t=Q_(r),n=$o(10,t),a=r/n,i;return e===DL?i=1:e?a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10:a<1?i=1:a<2?i=2:a<3?i=3:a<5?i=5:i=10,r=i*n,ke(r,-t)}function Hp(r,e){var t=(r.length-1)*e+1,n=rn(t),a=+r[n-1],i=t-n;return i?a+i*(r[n]-a):a}function dw(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,n=0;n<r.length;){for(var a=r[n].interval,i=r[n].close,o=0;o<2;o++)a[o]<=e&&(a[o]=e,i[o]=o?1:1-t),e=a[o],t=i[o];a[0]===a[1]&&i[0]*i[1]!==1?r.splice(n,1):n++}return r;function s(l,u,f){return l.interval[f]<u.interval[f]||l.interval[f]===u.interval[f]&&(l.close[f]-u.close[f]===(f?-1:1)||!f&&s(l,u,1))}}function ca(r){var e=parseFloat(r);return e==r&&(e!==0||!Z(r)||r.indexOf("x")<=0)?e:NaN}function IL(r){return!isNaN(ca(r))}function tS(){return va(Yz()*9)}function LL(r,e){return e===0?r:LL(e,r%e)}function pw(r,e){return r==null?e:e==null?r:r*e/LL(r,e)}function Hr(r){return r!=null&&isFinite(r)}var Jz="[ECharts] ",Qz=typeof console<"u"&&console.warn&&console.log;function eF(r,e,t){Qz&&console[r](Jz+e)}function PL(r,e){eF("error",r)}function Ve(r){throw new Error(r)}function gw(r,e,t){return(e-r)*t+r}var RL="series\0",EL="\0_ec_\0";function Ye(r){return r instanceof Array?r:r==null?[]:[r]}function So(r,e,t){if(r){r[e]=r[e]||{},r.emphasis=r.emphasis||{},r.emphasis[e]=r.emphasis[e]||{};for(var n=0,a=t.length;n<a;n++){var i=t[n];!r.emphasis[e].hasOwnProperty(i)&&r[e].hasOwnProperty(i)&&(r.emphasis[e][i]=r[e][i])}}}var yw=["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 ml(r){return fe(r)&&!U(r)&&!(r instanceof Date)?r.value:r}function tF(r){return fe(r)&&!(r instanceof Array)}function kL(r,e,t){var n=t==="normalMerge",a=t==="replaceMerge",i=t==="replaceAll";r=r||[],e=(e||[]).slice();var o=K();M(e,function(l,u){if(!fe(l)){e[u]=null;return}});var s=rF(r,o,t);return(n||a)&&nF(s,r,o,e),n&&aF(s,e),n||a?iF(s,e,a):i&&oF(s,e),sF(s),s}function rF(r,e,t){var n=[];if(t==="replaceAll")return n;for(var a=0;a<r.length;a++){var i=r[a];i&&i.id!=null&&e.set(i.id,a),n.push({existing:t==="replaceMerge"||qu(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return n}function nF(r,e,t,n){M(n,function(a,i){if(!(!a||a.id==null)){var o=Eu(a.id),s=t.get(o);if(s!=null){var l=r[s];Yt(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=a,l.existing=e[s],n[i]=null}}})}function aF(r,e){M(e,function(t,n){if(!(!t||t.name==null))for(var a=0;a<r.length;a++){var i=r[a].existing;if(!r[a].newOption&&i&&(i.id==null||t.id==null)&&!qu(t)&&!qu(i)&&OL("name",i,t)){r[a].newOption=t,e[n]=null;return}}})}function iF(r,e,t){M(e,function(n){if(n){for(var a,i=0;(a=r[i])&&(a.newOption||qu(a.existing)||a.existing&&n.id!=null&&!OL("id",n,a.existing));)i++;a?(a.newOption=n,a.brandNew=t):r.push({newOption:n,brandNew:t,existing:null,keyInfo:null}),i++}})}function oF(r,e){M(e,function(t){r.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function sF(r){var e=K();M(r,function(t){var n=t.existing;n&&e.set(n.id,t)}),M(r,function(t){var n=t.newOption;Yt(!n||n.id==null||!e.get(n.id)||e.get(n.id)===t,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&e.set(n.id,t),!t.keyInfo&&(t.keyInfo={})}),M(r,function(t,n){var a=t.existing,i=t.newOption,o=t.keyInfo;if(fe(i)){if(o.name=i.name!=null?Eu(i.name):a?a.name:RL+n,a)o.id=Eu(a.id);else if(i.id!=null)o.id=Eu(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 OL(r,e,t){var n=mt(e[r],null),a=mt(t[r],null);return n!=null&&a!=null&&n===a}function Eu(r){return mt(r,"")}function mt(r,e){return r==null?e:Z(r)?r:Ee(r)||_m(r)?r+"":e}function rS(r){var e=r.name;return!!(e&&e.indexOf(RL))}function qu(r){return r&&r.id!=null&&Eu(r.id).indexOf(EL)===0}function lF(r){return EL+r}function uF(r,e,t){M(r,function(n){var a=n.newOption;fe(a)&&(n.keyInfo.mainType=e,n.keyInfo.subType=fF(e,a,n.existing,t))})}function fF(r,e,t,n){var a=e.type?e.type:t?t.subType:n.determineSubType(r,e);return a}function vF(r,e){var t={},n={};return a(r||[],t),a(e||[],n,t),[i(t),i(n)];function a(o,s,l){for(var u=0,f=o.length;u<f;u++){var v=mt(o[u].seriesId,null);if(v==null)return;for(var c=Ye(o[u].dataIndex),h=l&&l[v],d=0,p=c.length;d<p;d++){var g=c[d];h&&h[g]?h[g]=null:(s[v]||(s[v]={}))[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 f=i(o[u],!0);f.length&&l.push({seriesId:u,dataIndex:f})}return l}}function xo(r,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return U(e.dataIndex)?$(e.dataIndex,function(t){return r.indexOfRawIndex(t)}):r.indexOfRawIndex(e.dataIndex);if(e.name!=null)return U(e.name)?$(e.name,function(t){return r.indexOfName(t)}):r.indexOfName(e.name)}function me(){var r="__ec_inner_"+cF++;return function(e){return e[r]||(e[r]={})}}var cF=tS();function Fs(r,e,t){var n=nS(e,t),a=n.mainTypeSpecified,i=n.queryOptionMap,o=n.others,s=o,l=t?t.defaultMainType:null;return!a&&l&&i.set(l,{}),i.each(function(u,f){var v=_l(r,f,u,{useDefault:l===f,enableAll:t&&t.enableAll!=null?t.enableAll:!0,enableNone:t&&t.enableNone!=null?t.enableNone:!0});s[f+"Models"]=v.models,s[f+"Model"]=v.models[0]}),s}function nS(r,e){var t;if(Z(r)){var n={};n[r+"Index"]=0,t=n}else t=r;var a=K(),i={},o=!1;return M(t,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){i[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],v=(u[2]||"").toLowerCase();if(!(!f||!v||e&&e.includeMainTypes&&pe(e.includeMainTypes,f)<0)){o=o||!!f;var c=a.get(f)||a.set(f,{});c[v]=s}}),{mainTypeSpecified:o,queryOptionMap:a,others:i}}var at={useDefault:!0,enableAll:!1,enableNone:!1},hF={useDefault:!1,enableAll:!0,enableNone:!0};function _l(r,e,t,n){n=n||at;var a=t.index,i=t.id,o=t.name,s={models:null,specified:a!=null||i!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=r.getComponent(e))?[l]:[],s}if(a==="none"||a===!1){if(n.enableNone)return s.models=[],s;a=-1}return a==="all"&&(n.enableAll?a=i=o=null:a=-1),s.models=r.queryComponents({mainType:e,index:a,id:i,name:o}),s}function aS(r,e,t){var n={};n[e+"Id"]=r[e+"Id"],n[e+"Index"]=r[e+"Index"],n[e+"Name"]=r[e+"Name"];var a={mainType:e,query:n};return t&&(a.subType=t),a}function NL(r,e,t){r.setAttribute?r.setAttribute(e,t):r[e]=t}function dF(r,e){return r.getAttribute?r.getAttribute(e):r[e]}function pF(r){return r==="auto"?Le.domSupported?"html":"richText":r||"html"}function Ym(r,e){var t=K(),n=[];return M(r,function(a){var i=e(a);(t.get(i)||(n.push(i),t.set(i,[]))).push(a)}),{keys:n,buckets:t}}function BL(r,e,t,n,a){var i=e==null||e==="auto";if(n==null)return n;if(Ee(n)){var o=gw(t||0,n,a);return ke(o,i?Math.max(ea(t||0),ea(n)):e)}else{if(Z(n))return a<1?t:n;for(var s=[],l=t,u=n,f=Math.max(l?l.length:0,u.length),v=0;v<f;++v){var c=r.getDimensionInfo(v);if(c&&c.type==="ordinal")s[v]=(a<1&&l?l:u)[v];else{var h=l&&l[v]?l[v]:0,d=u[v],o=gw(h,d,a);s[v]=ke(o,i?Math.max(ea(h),ea(d)):e)}}return s}}var qa=(function(){function r(){}return r.prototype.reset=function(e,t,n,a){return this._list=e,this._step=a=a||1,this._idx=t,this._end=n??(a>0?e.length:0),this.item=null,this.key=NaN,this},r.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)?(this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0):!1},r})();function Up(r){r.option=r.parentModel=r.ecModel=null}function Ot(){return[1/0,-1/0]}function Xm(r,e){ha(e)&&(e<r[0]&&(r[0]=e),e>r[1]&&(r[1]=e))}function VL(r,e){ha(e)&&e<r[0]&&(r[0]=e)}function zL(r,e){ha(e)&&e>r[1]&&(r[1]=e)}function gF(r,e){wo(e[0],e[1])&&(e[0]<r[0]&&(r[0]=e[0]),e[1]>r[1]&&(r[1]=e[1]))}function ha(r){return r!=null&&isFinite(r)}function wo(r,e){return ha(r)&&ha(e)&&r<=e}function yF(r){var e=r[1]-r[0];return isFinite(e)&&e>=0}function Rc(r){wo(r[0],r[1])&&r[0]>r[1]&&(r[0]=r[1])}function Sl(){var r="__ec_once_"+mF++;return function(e,t){J(e,r)||(e[r]=1,t())}}var mF=tS();function Td(r,e,t){var n=K(),a=0;M(r,function(i){var o=e(i),s=n.get(o)||0;t&&t(i,s),!s&&!t&&(r[a++]=i),n.set(o,s+1)}),t||(r.length=a)}function _F(r){return r.value+""}function SF(r){return r+""}function Dn(r,e){return Q(e,!0)?r.seriesIndex+2:0}function FL(r,e,t){var n=r.getData().count();return{progressiveRender:t.progressiveEnabled&&e.incrementalPrepareRender&&n>=t.threshold,large:r.get("large")&&n>=r.get("largeThreshold"),modDataCount:r.get("progressiveChunkMode")==="mod"?r.getData().count():null}}function wt(r,e){return{seriesType:r,overallReset:e}}function Rf(r){return{overallReset:r}}var xF=".",bi="___EC__COMPONENT__CONTAINER___",GL="___EC__EXTENDED_CLASS___";function xn(r){var e={main:"",sub:""};if(r){var t=r.split(xF);e.main=t[0]||"",e.sub=t[1]||""}return e}function wF(r){Yt(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function bF(r){return!!(r&&r[GL])}function iS(r,e){r.$constructor=r,r.extend=function(t){var n=this,a;return CF(n)?a=(function(i){B(o,i);function o(){return i.apply(this,arguments)||this}return o})(n):(a=function(){(t.$constructor||n).apply(this,arguments)},mV(a,this)),G(a.prototype,t),a[GL]=!0,a.extend=this.extend,a.superCall=MF,a.superApply=DF,a.superClass=n,a}}function CF(r){return ie(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function HL(r,e){r.extend=e.extend}var TF=Math.round(Math.random()*10);function AF(r){var e=["__\0is_clz",TF++].join("_");r.prototype[e]=!0,r.isInstance=function(t){return!!(t&&t[e])}}function MF(r,e){for(var t=[],n=2;n<arguments.length;n++)t[n-2]=arguments[n];return this.superClass.prototype[e].apply(r,t)}function DF(r,e,t){return this.superClass.prototype[e].apply(r,t)}function Ad(r){var e={};r.registerClass=function(n){var a=n.type||n.prototype.type;if(a){wF(a),n.prototype.type=a;var i=xn(a);if(!i.sub)e[i.main]=n;else if(i.sub!==bi){var o=t(i);o[i.sub]=n}}return n},r.getClass=function(n,a,i){var o=e[n];if(o&&o[bi]&&(o=a?o[a]:null),i&&!o)throw new Error(a?"Component "+n+"."+(a||"")+" is used but not imported.":n+".type should be specified.");return o},r.getClassesByMainType=function(n){var a=xn(n),i=[],o=e[a.main];return o&&o[bi]?M(o,function(s,l){l!==bi&&i.push(s)}):i.push(o),i},r.hasClass=function(n){var a=xn(n);return!!e[a.main]},r.getAllClassMainTypes=function(){var n=[];return M(e,function(a,i){n.push(i)}),n},r.hasSubTypes=function(n){var a=xn(n),i=e[a.main];return i&&i[bi]};function t(n){var a=e[n.main];return(!a||!a[bi])&&(a=e[n.main]={},a[bi]=!0),a}}function bo(r,e){for(var t=0;t<r.length;t++)r[t][1]||(r[t][1]=r[t][0]);return e=e||!1,function(n,a,i){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(a&&pe(a,l)>=0||i&&pe(i,l)<0)){var u=n.getShallow(l,e);u!=null&&(o[r[s][0]]=u)}}return o}}var IF=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],LF=bo(IF),PF=(function(){function r(){}return r.prototype.getAreaStyle=function(e,t){return LF(this,e,t)},r})(),Zm=new Ks(50);function RF(r){if(typeof r=="string"){var e=Zm.get(r);return e&&e.image}else return r}function oS(r,e,t,n,a){if(r)if(typeof r=="string"){if(e&&e.__zrImageSrc===r||!t)return e;var i=Zm.get(r),o={hostEl:t,cb:n,cbPayload:a};return i?(e=i.image,!Md(e)&&i.pending.push(o)):(e=rr.loadImage(r,mw,mw),e.__zrImageSrc=r,Zm.put(r,e.__cachedImgObj={image:e,pending:[o]})),e}else return r;else return e}function mw(){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],n=t.cb;n&&n(this,t.cbPayload),t.hostEl.dirty()}r.pending.length=0}function Md(r){return r&&r.width&&r.height}var $p=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function EF(r,e,t,n,a,i){if(!t){r.text="",r.isTruncated=!1;return}var o=(e+"").split(`
37
+ `);i=UL(t,n,a,i);for(var s=!1,l={},u=0,f=o.length;u<f;u++)$L(l,o[u],i),o[u]=l.textLine,s=s||l.isTruncated;r.text=o.join(`
38
+ `),r.isTruncated=s}function UL(r,e,t,n){n=n||{};var a=G({},n);t=Q(t,"..."),a.maxIterations=Q(n.maxIterations,2);var i=a.minChar=Q(n.minChar,0),o=a.fontMeasureInfo=An(e),s=o.asciiCharWidth;a.placeholder=Q(n.placeholder,"");for(var l=r=Math.max(0,r-1),u=0;u<i&&l>=s;u++)l-=s;var f=Mn(o,t);return f>l&&(t="",f=0),l=r-f,a.ellipsis=t,a.ellipsisWidth=f,a.contentWidth=l,a.containerWidth=r,a}function $L(r,e,t){var n=t.containerWidth,a=t.contentWidth,i=t.fontMeasureInfo;if(!n){r.textLine="",r.isTruncated=!1;return}var o=Mn(i,e);if(o<=n){r.textLine=e,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=a||s>=t.maxIterations){e+=t.ellipsis;break}var l=s===0?kF(e,a,i):o>0?Math.floor(e.length*a/o):0;e=e.substr(0,l),o=Mn(i,e)}e===""&&(e=t.placeholder),r.textLine=e,r.isTruncated=!0}function kF(r,e,t){for(var n=0,a=0,i=r.length;a<i&&n<e;a++)n+=xL(t,r.charCodeAt(a));return a}function OF(r,e,t,n){var a=sS(r),i=e.overflow,o=e.padding,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,u=e.font,f=i==="truncate",v=Pf(u),c=Q(e.lineHeight,v),h=e.lineOverflow==="truncate",d=!1,p=e.width;p==null&&t!=null&&(p=t-s);var g=e.height;g==null&&n!=null&&(g=n-l);var y;p!=null&&(i==="break"||i==="breakAll")?y=a?WL(a,e.font,p,i==="breakAll",0).lines:[]:y=a?a.split(`
39
+ `):[];var m=y.length*c;if(g==null&&(g=m),m>g&&h){var _=Math.floor(g/c);d=d||y.length>_,y=y.slice(0,_),m=y.length*c}if(a&&f&&p!=null)for(var S=UL(p,u,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),x={},w=0;w<y.length;w++)$L(x,y[w],S),y[w]=x.textLine,d=d||x.isTruncated;for(var b=g,T=0,C=An(u),w=0;w<y.length;w++)T=Math.max(Mn(C,y[w]),T);p==null&&(p=T);var A=p;return b+=l,A+=s,{lines:y,height:g,outerWidth:A,outerHeight:b,lineHeight:c,calculatedLineHeight:v,contentWidth:T,contentHeight:m,width:p,isTruncated:d}}var NF=(function(){function r(){}return r})(),_w=(function(){function r(e){this.tokens=[],e&&(this.tokens=e)}return r})(),BF=(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 VF(r,e,t,n,a){var i=new BF,o=sS(r);if(!o)return i;var s=e.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,f=e.width;f==null&&t!=null&&(f=t-l);var v=e.height;v==null&&n!=null&&(v=n-u);for(var c=e.overflow,h=(c==="break"||c==="breakAll")&&f!=null?{width:f,accumWidth:0,breakAll:c==="breakAll"}:null,d=$p.lastIndex=0,p;(p=$p.exec(o))!=null;){var g=p.index;g>d&&Wp(i,o.substring(d,g),e,h),Wp(i,p[2],e,h,p[1]),d=$p.lastIndex}d<o.length&&Wp(i,o.substring(d,o.length),e,h);var y=[],m=0,_=0,S=c==="truncate",x=e.lineOverflow==="truncate",w={};function b(ye,Ne,ce){ye.width=Ne,ye.lineHeight=ce,m+=ce,_=Math.max(_,Ne)}e:for(var T=0;T<i.lines.length;T++){for(var C=i.lines[T],A=0,D=0,L=0;L<C.tokens.length;L++){var I=C.tokens[L],P=I.styleName&&e.rich[I.styleName]||{},R=I.textPadding=P.padding,E=R?R[1]+R[3]:0,O=I.font=P.font||e.font;I.contentHeight=Pf(O);var k=Q(P.height,I.contentHeight);if(I.innerHeight=k,R&&(k+=R[0]+R[2]),I.height=k,I.lineHeight=xr(P.lineHeight,e.lineHeight,k),I.align=P&&P.align||a,I.verticalAlign=P&&P.verticalAlign||"middle",x&&v!=null&&m+I.lineHeight>v){var z=i.lines.length;L>0?(C.tokens=C.tokens.slice(0,L),b(C,D,A),i.lines=i.lines.slice(0,T+1)):i.lines=i.lines.slice(0,T),i.isTruncated=i.isTruncated||i.lines.length<z;break e}var F=P.width,H=F==null||F==="auto";if(typeof F=="string"&&F.charAt(F.length-1)==="%")I.percentWidth=F,y.push(I),I.contentWidth=Mn(An(O),I.text);else{if(H){var W=P.backgroundColor,X=W&&W.image;X&&(X=RF(X),Md(X)&&(I.width=Math.max(I.width,X.width*k/X.height)))}var Y=S&&f!=null?f-D:null;Y!=null&&Y<I.width?!H||Y<E?(I.text="",I.width=I.contentWidth=0):(EF(w,I.text,Y-E,O,e.ellipsis,{minChar:e.truncateMinChar}),I.text=w.text,i.isTruncated=i.isTruncated||w.isTruncated,I.width=I.contentWidth=Mn(An(O),I.text)):I.contentWidth=Mn(An(O),I.text)}I.width+=E,D+=I.width,P&&(A=Math.max(A,I.lineHeight))}b(C,D,A)}i.outerWidth=i.width=Q(f,_),i.outerHeight=i.height=Q(v,m),i.contentHeight=m,i.contentWidth=_,i.outerWidth+=l,i.outerHeight+=u;for(var T=0;T<y.length;T++){var I=y[T],ee=I.percentWidth;I.width=parseInt(ee,10)/100*i.width}return i}function Wp(r,e,t,n,a){var i=e==="",o=a&&t.rich[a]||{},s=r.lines,l=o.font||t.font,u=!1,f,v;if(n){var c=o.padding,h=c?c[1]+c[3]:0;if(o.width!=null&&o.width!=="auto"){var d=Nn(o.width,n.width)+h;s.length>0&&d+n.accumWidth>n.width&&(f=e.split(`
40
+ `),u=!0),n.accumWidth=d}else{var p=WL(e,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=p.accumWidth+h,v=p.linesWidths,f=p.lines}}f||(f=e.split(`
41
+ `));for(var g=An(l),y=0;y<f.length;y++){var m=f[y],_=new NF;if(_.styleName=a,_.text=m,_.isLineHolder=!m&&!i,typeof o.width=="number"?_.width=o.width:_.width=v?v[y]:Mn(g,m),!y&&!u){var S=(s[s.length-1]||(s[0]=new _w)).tokens,x=S.length;x===1&&S[0].isLineHolder?S[0]=_:(m||!x||i)&&S.push(_)}else s.push(new _w([_]))}}function zF(r){var e=r.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var FF=En(",&?/;] ".split(""),function(r,e){return r[e]=!0,r},{});function GF(r){return zF(r)?!!FF[r]:!0}function WL(r,e,t,n,a){for(var i=[],o=[],s="",l="",u=0,f=0,v=An(e),c=0;c<r.length;c++){var h=r.charAt(c);if(h===`
42
+ `){l&&(s+=l,f+=u),i.push(s),o.push(f),s="",l="",u=0,f=0;continue}var d=xL(v,h.charCodeAt(0)),p=n?!1:!GF(h);if(i.length?f+d>t:a+f+d>t){f?(s||l)&&(p?(s||(s=l,l="",u=0,f=u),i.push(s),o.push(f-u),l+=h,u+=d,s="",f=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(f),s=h,f=d)):p?(i.push(l),o.push(u),l=h,u=d):(i.push(h),o.push(d));continue}f+=d,p?(l+=h,u+=d):(l&&(s+=l,l="",u=0),s+=h)}return l&&(s+=l),s&&(i.push(s),o.push(f)),i.length===1&&(f+=a),{accumWidth:f,lines:i,linesWidths:o}}function Sw(r,e,t,n,a,i){if(r.baseX=t,r.baseY=n,r.outerWidth=r.outerHeight=null,!!e){var o=e.width*2,s=e.height*2;se.set(xw,Js(t,o,a),vo(n,s,i),o,s),se.intersect(e,xw,null,ww);var l=ww.outIntersectRect;r.outerWidth=l.width,r.outerHeight=l.height,r.baseX=Js(l.x,l.width,a,!0),r.baseY=vo(l.y,l.height,i,!0)}}var xw=new se(0,0,0,0),ww={outIntersectRect:{},clamp:!0};function sS(r){return r!=null?r+="":r=""}function HF(r){var e=sS(r.text),t=r.font,n=Mn(An(t),e),a=Pf(t);return jm(r,n,a,null)}function jm(r,e,t,n){var a=new se(Js(r.x||0,e,r.textAlign),vo(r.y||0,t,r.textBaseline),e,t),i=n??(YL(r)?r.lineWidth:0);return i>0&&(a.x-=i/2,a.y-=i/2,a.width+=i,a.height+=i),a}function YL(r){var e=r.stroke;return e!=null&&e!=="none"&&r.lineWidth>0}var qm="__zr_style_"+Math.round(Math.random()*10),co={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Dd={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};co[qm]=!0;var bw=["z","z2","invisible"],UF=["invisible"],Ur=(function(r){Je(e,r);function e(t){return r.call(this,t)||this}return e.prototype._init=function(t){for(var n=De(t),a=0;a<n.length;a++){var i=n[a];i==="style"?this.useStyle(t[i]):r.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(t){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,n,a,i){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&$F(this,t,n)||o&&!o[0]&&!o[3])return!1;if(a&&this.__clipPaths&&this.__clipPaths.length){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,n){return this.rectContain(t,n)},e.prototype.traverse=function(t,n){t.call(n,this)},e.prototype.rectContain=function(t,n){var a=this.transformCoordToLocal(t,n),i=this.getBoundingRect();return i.contain(a[0],a[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,a=this.getBoundingRect(),i=this.style,o=i.shadowBlur||0,s=i.shadowOffsetX||0,l=i.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new se(0,0,0,0)),n?se.applyTransform(t,a,n):t.copy(a),(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 se(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,n){t!=="style"?r.prototype.attrKV.call(this,t,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(t,n){return typeof t=="string"?this.style[t]=n:G(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=gu,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&gu)},e.prototype.styleUpdated=function(){this.__dirty&=~gu},e.prototype.createStyle=function(t){return _d(co,t)},e.prototype.useStyle=function(t){t[qm]||(t=this.createStyle(t)),this.style=t,this.dirtyStyle()},e.prototype._useHoverStyle=function(t){this.__hoverStyle=t},e.prototype.isStyleObject=function(t){return t[qm]},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,n,bw)},e.prototype._applyStateObj=function(t,n,a,i,o,s){r.prototype._applyStateObj.call(this,t,n,a,i,o,s);var l=!(n&&i),u=this.__inHover===bd,f;if(n&&n.style?o?i?f=n.style:(f=this._mergeStyle(this.createStyle(),a.style),this._mergeStyle(f,n.style)):(f=this._mergeStyle(this.createStyle(),i?this.style:a.style),this._mergeStyle(f,n.style)):l&&(f=a.style),f)if(o){var v=this.style;if(this.style=this.createStyle(l?{}:v),l)for(var c=De(v),h=0;h<c.length;h++){var d=c[h];d in f&&(f[d]=f[d],this.style[d]=v[d])}for(var p=De(f),h=0;h<p.length;h++){var d=p[h];this.style[d]=this.style[d]}this._transitionState(t,{style:f},s,this.getAnimationStyleProps())}else u?this._useHoverStyle(f):this.useStyle(f);if(!u)for(var g=this.__inHover?UF:bw,h=0;h<g.length;h++){var d=g[h];n&&n[d]!=null?this[d]=n[d]:l&&a[d]!=null&&(this[d]=a[d])}},e.prototype._mergeStates=function(t){for(var n=r.prototype._mergeStates.call(this,t),a,i=0;i<t.length;i++){var o=t[i];o.style&&(a=a||{},this._mergeStyle(a,o.style))}return a&&(n.style=a),n},e.prototype._mergeStyle=function(t,n){return G(t,n),t},e.prototype.getAnimationStyleProps=function(){return Dd},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=0,t._rect=null,t.dirtyRectTolerance=0,t.__dirty=vr|gu})(),e})(Cd),Yp=new se(0,0,0,0),Xp=new se(0,0,0,0);function $F(r,e,t){return Yp.copy(r.getBoundingRect()),r.transform&&Yp.applyTransform(r.transform),Xp.width=e,Xp.height=t,!Yp.intersect(Xp)}var ur=Math.min,fr=Math.max,Zp=Math.sin,jp=Math.cos,Ci=Math.PI*2,fv=Ho(),vv=Ho(),cv=Ho();function Id(r,e,t){if(r.length!==0){for(var n=r[0],a=n[0],i=n[0],o=n[1],s=n[1],l=1;l<r.length;l++)n=r[l],a=ur(a,n[0]),i=fr(i,n[0]),o=ur(o,n[1]),s=fr(s,n[1]);e[0]=a,e[1]=o,t[0]=i,t[1]=s}}function Cw(r,e,t,n,a,i){a[0]=ur(r,t),a[1]=ur(e,n),i[0]=fr(r,t),i[1]=fr(e,n)}var Tw=[],Aw=[];function WF(r,e,t,n,a,i,o,s,l,u){var f=oL,v=Ct,c=f(r,t,a,o,Tw);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<c;h++){var d=v(r,t,a,o,Tw[h]);l[0]=ur(d,l[0]),u[0]=fr(d,u[0])}c=f(e,n,i,s,Aw);for(var h=0;h<c;h++){var p=v(e,n,i,s,Aw[h]);l[1]=ur(p,l[1]),u[1]=fr(p,u[1])}l[0]=ur(r,l[0]),u[0]=fr(r,u[0]),l[0]=ur(o,l[0]),u[0]=fr(o,u[0]),l[1]=ur(e,l[1]),u[1]=fr(e,u[1]),l[1]=ur(s,l[1]),u[1]=fr(s,u[1])}function YF(r,e,t,n,a,i,o,s){var l=lL,u=Lt,f=fr(ur(l(r,t,a),1),0),v=fr(ur(l(e,n,i),1),0),c=u(r,t,a,f),h=u(e,n,i,v);o[0]=ur(r,a,c),o[1]=ur(e,i,h),s[0]=fr(r,a,c),s[1]=fr(e,i,h)}function XF(r,e,t,n,a,i,o,s,l){var u=Ba,f=Va,v=Math.abs(a-i);if(v%Ci<1e-4&&v>1e-4){s[0]=r-t,s[1]=e-n,l[0]=r+t,l[1]=e+n;return}if(fv[0]=jp(a)*t+r,fv[1]=Zp(a)*n+e,vv[0]=jp(i)*t+r,vv[1]=Zp(i)*n+e,u(s,fv,vv),f(l,fv,vv),a=a%Ci,a<0&&(a=a+Ci),i=i%Ci,i<0&&(i=i+Ci),a>i&&!o?i+=Ci:a<i&&o&&(a+=Ci),o){var c=i;i=a,a=c}for(var h=0;h<i;h+=Math.PI/2)h>a&&(cv[0]=jp(h)*t+r,cv[1]=Zp(h)*n+e,u(s,cv,s),f(l,cv,l))}var Xe={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Ti=[],Ai=[],un=[],ba=[],fn=[],vn=[],qp=Math.min,Kp=Math.max,Mi=Math.cos,Di=Math.sin,Wn=Math.abs,Km=Math.PI,Ra=Km*2,Jp=typeof Float32Array<"u",Bl=[];function Qp(r){var e=Math.round(r/Km*1e8)/1e8;return e%2*Km}function Ld(r,e){var t=Qp(r[0]);t<0&&(t+=Ra);var n=t-r[0],a=r[1];a+=n,!e&&a-t>=Ra?a=t+Ra:e&&t-a>=Ra?a=t-Ra:!e&&t>a?a=t+(Ra-Qp(t-a)):e&&t<a&&(a=t-(Ra-Qp(a-t))),r[0]=t,r[1]=a}var Bn=(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,n){n=n||0,n>0&&(this._ux=Wn(n/ah/e)||0,this._uy=Wn(n/ah/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(Xe.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 n=Wn(e-this._xi),a=Wn(t-this._yi),i=n>this._ux||a>this._uy;if(this.addData(Xe.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=n*n+a*a;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(e,t,n,a,i,o){return this._drawPendingPt(),this.addData(Xe.C,e,t,n,a,i,o),this._ctx&&this._ctx.bezierCurveTo(e,t,n,a,i,o),this._xi=i,this._yi=o,this},r.prototype.quadraticCurveTo=function(e,t,n,a){return this._drawPendingPt(),this.addData(Xe.Q,e,t,n,a),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,a),this._xi=n,this._yi=a,this},r.prototype.arc=function(e,t,n,a,i,o){this._drawPendingPt(),Bl[0]=a,Bl[1]=i,Ld(Bl,o),a=Bl[0],i=Bl[1];var s=i-a;return this.addData(Xe.A,e,t,n,n,a,s,0,o?0:1),this._ctx&&this._ctx.arc(e,t,n,a,i,o),this._xi=Mi(i)*n+e,this._yi=Di(i)*n+t,this},r.prototype.arcTo=function(e,t,n,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,a,i),this},r.prototype.rect=function(e,t,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,a),this.addData(Xe.R,e,t,n,a),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(Xe.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,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){if(this._saveData){var t=e.length;!(this.data&&this.data.length===t)&&Jp&&(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t}},r.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var t=e.length,n=0,a=this._len,i=0;i<t;i++)n+=e[i].len();var o=this.data;if(Jp&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(a+n),a>0&&o))for(var s=0;s<a;s++)this.data[s]=o[s];for(var i=0;i<t;i++)for(var l=e[i].data,s=0;s<l.length;s++)this.data[a++]=l[s];this._len=a}},r.prototype.addData=function(e,t,n,a,i,o,s,l,u){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var v=0;v<arguments.length;v++)f[this._len++]=arguments[v]}},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,Jp&&this._len>11&&(this.data=new Float32Array(e)))}},r.prototype.getBoundingRect=function(){un[0]=un[1]=fn[0]=fn[1]=Number.MAX_VALUE,ba[0]=ba[1]=vn[0]=vn[1]=-Number.MAX_VALUE;var e=this.data,t=0,n=0,a=0,i=0,o;for(o=0;o<this._len;){var s=e[o++],l=o===1;switch(l&&(t=e[o],n=e[o+1],a=t,i=n),s){case Xe.M:t=a=e[o++],n=i=e[o++],fn[0]=a,fn[1]=i,vn[0]=a,vn[1]=i;break;case Xe.L:Cw(t,n,e[o],e[o+1],fn,vn),t=e[o++],n=e[o++];break;case Xe.C:WF(t,n,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],fn,vn),t=e[o++],n=e[o++];break;case Xe.Q:YF(t,n,e[o++],e[o++],e[o],e[o+1],fn,vn),t=e[o++],n=e[o++];break;case Xe.A:var u=e[o++],f=e[o++],v=e[o++],c=e[o++],h=e[o++],d=e[o++]+h;o+=1;var p=!e[o++];l&&(a=Mi(h)*v+u,i=Di(h)*c+f),XF(u,f,v,c,h,d,p,fn,vn),t=Mi(d)*v+u,n=Di(d)*c+f;break;case Xe.R:a=t=e[o++],i=n=e[o++];var g=e[o++],y=e[o++];Cw(a,i,a+g,i+y,fn,vn);break;case Xe.Z:t=a,n=i;break}Ba(un,un,fn),Va(ba,ba,vn)}return o===0&&(un[0]=un[1]=ba[0]=ba[1]=0),new se(un[0],un[1],ba[0]-un[0],ba[1]-un[1])},r.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,a=this._uy,i=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,v=0,c=0;c<t;){var h=e[c++],d=c===1;d&&(i=e[c],o=e[c+1],s=i,l=o);var p=-1;switch(h){case Xe.M:i=s=e[c++],o=l=e[c++];break;case Xe.L:{var g=e[c++],y=e[c++],m=g-i,_=y-o;(Wn(m)>n||Wn(_)>a||c===t-1)&&(p=Math.sqrt(m*m+_*_),i=g,o=y);break}case Xe.C:{var S=e[c++],x=e[c++],g=e[c++],y=e[c++],w=e[c++],b=e[c++];p=tz(i,o,S,x,g,y,w,b,10),i=w,o=b;break}case Xe.Q:{var S=e[c++],x=e[c++],g=e[c++],y=e[c++];p=nz(i,o,S,x,g,y,10),i=g,o=y;break}case Xe.A:var T=e[c++],C=e[c++],A=e[c++],D=e[c++],L=e[c++],I=e[c++],P=I+L;c+=1,d&&(s=Mi(L)*A+T,l=Di(L)*D+C),p=Kp(A,D)*qp(Ra,Math.abs(I)),i=Mi(P)*A+T,o=Di(P)*D+C;break;case Xe.R:{s=i=e[c++],l=o=e[c++];var R=e[c++],E=e[c++];p=R*2+E*2;break}case Xe.Z:{var m=s-i,_=l-o;p=Math.sqrt(m*m+_*_),i=s,o=l;break}}p>=0&&(u[v++]=p,f+=p)}return this._pathLen=f,f},r.prototype.rebuildPath=function(e,t){var n=this.data,a=this._ux,i=this._uy,o=this._len,s,l,u,f,v,c,h=t<1,d,p,g=0,y=0,m,_=0,S,x;if(!(h&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=this._pathLen,m=t*p,!m)))e:for(var w=0;w<o;){var b=n[w++],T=w===1;switch(T&&(u=n[w],f=n[w+1],s=u,l=f),b!==Xe.L&&_>0&&(e.lineTo(S,x),_=0),b){case Xe.M:s=u=n[w++],l=f=n[w++],e.moveTo(u,f);break;case Xe.L:{v=n[w++],c=n[w++];var C=Wn(v-u),A=Wn(c-f);if(C>a||A>i){if(h){var D=d[y++];if(g+D>m){var L=(m-g)/D;e.lineTo(u*(1-L)+v*L,f*(1-L)+c*L);break e}g+=D}e.lineTo(v,c),u=v,f=c,_=0}else{var I=C*C+A*A;I>_&&(S=v,x=c,_=I)}break}case Xe.C:{var P=n[w++],R=n[w++],E=n[w++],O=n[w++],k=n[w++],z=n[w++];if(h){var D=d[y++];if(g+D>m){var L=(m-g)/D;ri(u,P,E,k,L,Ti),ri(f,R,O,z,L,Ai),e.bezierCurveTo(Ti[1],Ai[1],Ti[2],Ai[2],Ti[3],Ai[3]);break e}g+=D}e.bezierCurveTo(P,R,E,O,k,z),u=k,f=z;break}case Xe.Q:{var P=n[w++],R=n[w++],E=n[w++],O=n[w++];if(h){var D=d[y++];if(g+D>m){var L=(m-g)/D;Yu(u,P,E,L,Ti),Yu(f,R,O,L,Ai),e.quadraticCurveTo(Ti[1],Ai[1],Ti[2],Ai[2]);break e}g+=D}e.quadraticCurveTo(P,R,E,O),u=E,f=O;break}case Xe.A:var F=n[w++],H=n[w++],W=n[w++],X=n[w++],Y=n[w++],ee=n[w++],ye=n[w++],Ne=!n[w++],ce=W>X?W:X,te=Wn(W-X)>.001,ge=Y+ee,re=!1;if(h){var D=d[y++];g+D>m&&(ge=Y+ee*(m-g)/D,re=!0),g+=D}if(te&&e.ellipse?e.ellipse(F,H,W,X,ye,Y,ge,Ne):e.arc(F,H,ce,Y,ge,Ne),re)break e;T&&(s=Mi(Y)*W+F,l=Di(Y)*X+H),u=Mi(ge)*W+F,f=Di(ge)*X+H;break;case Xe.R:s=u=n[w],l=f=n[w+1],v=n[w++],c=n[w++];var he=n[w++],$e=n[w++];if(h){var D=d[y++];if(g+D>m){var Pe=m-g;e.moveTo(v,c),e.lineTo(v+qp(Pe,he),c),Pe-=he,Pe>0&&e.lineTo(v+he,c+qp(Pe,$e)),Pe-=$e,Pe>0&&e.lineTo(v+Kp(he-Pe,0),c+$e),Pe-=he,Pe>0&&e.lineTo(v,c+Kp($e-Pe,0));break e}g+=D}e.rect(v,c,he,$e);break;case Xe.Z:if(h){var D=d[y++];if(g+D>m){var L=(m-g)/D;e.lineTo(u*(1-L)+s*L,f*(1-L)+l*L);break e}g+=D}e.closePath(),u=s,f=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.prototype.canSave=function(){return!!this._saveData},r.CMD=Xe,r.initDefaultProps=(function(){var e=r.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0})(),r})();function ka(r,e,t,n,a,i,o){if(a===0)return!1;var s=a,l=0,u=r;if(o>e+s&&o>n+s||o<e-s&&o<n-s||i>r+s&&i>t+s||i<r-s&&i<t-s)return!1;if(r!==t)l=(e-n)/(r-t),u=(r*n-t*e)/(r-t);else return Math.abs(i-r)<=s/2;var f=l*i-o+u,v=f*f/(l*l+1);return v<=s/2*s/2}function ZF(r,e,t,n,a,i,o,s,l,u,f){if(l===0)return!1;var v=l;if(f>e+v&&f>n+v&&f>i+v&&f>s+v||f<e-v&&f<n-v&&f<i-v&&f<s-v||u>r+v&&u>t+v&&u>a+v&&u>o+v||u<r-v&&u<t-v&&u<a-v&&u<o-v)return!1;var c=sL(r,e,t,n,a,i,o,s,u,f,null);return c<=v/2}function XL(r,e,t,n,a,i,o,s,l){if(o===0)return!1;var u=o;if(l>e+u&&l>n+u&&l>i+u||l<e-u&&l<n-u&&l<i-u||s>r+u&&s>t+u&&s>a+u||s<r-u&&s<t-u&&s<a-u)return!1;var f=uL(r,e,t,n,a,i,s,l,null);return f<=u/2}var Mw=Math.PI*2;function _r(r){return r%=Mw,r<0&&(r+=Mw),r}var Vl=Math.PI*2;function jF(r,e,t,n,a,i,o,s,l){if(o===0)return!1;var u=o;s-=r,l-=e;var f=Math.sqrt(s*s+l*l);if(f-u>t||f+u<t)return!1;if(Math.abs(n-a)%Vl<1e-4)return!0;if(i){var v=n;n=_r(a),a=_r(v)}else n=_r(n),a=_r(a);n>a&&(a+=Vl);var c=Math.atan2(l,s);return c<0&&(c+=Vl),c>=n&&c<=a||c+Vl>=n&&c+Vl<=a}function Kn(r,e,t,n,a,i){if(i>e&&i>n||i<e&&i<n||n===e)return 0;var o=(i-e)/(n-e),s=n<e?1:-1;(o===1||o===0)&&(s=n<e?.5:-.5);var l=o*(t-r)+r;return l===a?1/0:l>a?s:0}var Ca=Bn.CMD,Ii=Math.PI*2,qF=1e-4;function KF(r,e){return Math.abs(r-e)<qF}var Kt=[-1,-1,-1],Rr=[-1,-1];function JF(){var r=Rr[0];Rr[0]=Rr[1],Rr[1]=r}function QF(r,e,t,n,a,i,o,s,l,u){if(u>e&&u>n&&u>i&&u>s||u<e&&u<n&&u<i&&u<s)return 0;var f=eh(e,n,i,s,u,Kt);if(f===0)return 0;for(var v=0,c=-1,h=void 0,d=void 0,p=0;p<f;p++){var g=Kt[p],y=g===0||g===1?.5:1,m=Ct(r,t,a,o,g);m<l||(c<0&&(c=oL(e,n,i,s,Rr),Rr[1]<Rr[0]&&c>1&&JF(),h=Ct(e,n,i,s,Rr[0]),c>1&&(d=Ct(e,n,i,s,Rr[1]))),c===2?g<Rr[0]?v+=h<e?y:-y:g<Rr[1]?v+=d<h?y:-y:v+=s<d?y:-y:g<Rr[0]?v+=h<e?y:-y:v+=s<h?y:-y)}return v}function e5(r,e,t,n,a,i,o,s){if(s>e&&s>n&&s>i||s<e&&s<n&&s<i)return 0;var l=rz(e,n,i,s,Kt);if(l===0)return 0;var u=lL(e,n,i);if(u>=0&&u<=1){for(var f=0,v=Lt(e,n,i,u),c=0;c<l;c++){var h=Kt[c]===0||Kt[c]===1?.5:1,d=Lt(r,t,a,Kt[c]);d<o||(Kt[c]<u?f+=v<e?h:-h:f+=i<v?h:-h)}return f}else{var h=Kt[0]===0||Kt[0]===1?.5:1,d=Lt(r,t,a,Kt[0]);return d<o?0:i<e?h:-h}}function t5(r,e,t,n,a,i,o,s){if(s-=e,s>t||s<-t)return 0;var l=Math.sqrt(t*t-s*s);Kt[0]=-l,Kt[1]=l;var u=Math.abs(n-a);if(u<1e-4)return 0;if(u>=Ii-1e-4){n=0,a=Ii;var f=i?1:-1;return o>=Kt[0]+r&&o<=Kt[1]+r?f:0}if(n>a){var v=n;n=a,a=v}n<0&&(n+=Ii,a+=Ii);for(var c=0,h=0;h<2;h++){var d=Kt[h];if(d+r>o){var p=Math.atan2(s,d),f=i?1:-1;p<0&&(p=Ii+p),(p>=n&&p<=a||p+Ii>=n&&p+Ii<=a)&&(p>Math.PI/2&&p<Math.PI*1.5&&(f=-f),c+=f)}}return c}function ZL(r,e,t,n,a){for(var i=r.data,o=r.len(),s=0,l=0,u=0,f=0,v=0,c,h,d=0;d<o;){var p=i[d++],g=d===1;switch(p===Ca.M&&d>1&&(t||(s+=Kn(l,u,f,v,n,a))),g&&(l=i[d],u=i[d+1],f=l,v=u),p){case Ca.M:f=i[d++],v=i[d++],l=f,u=v;break;case Ca.L:if(t){if(ka(l,u,i[d],i[d+1],e,n,a))return!0}else s+=Kn(l,u,i[d],i[d+1],n,a)||0;l=i[d++],u=i[d++];break;case Ca.C:if(t){if(ZF(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],e,n,a))return!0}else s+=QF(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],n,a)||0;l=i[d++],u=i[d++];break;case Ca.Q:if(t){if(XL(l,u,i[d++],i[d++],i[d],i[d+1],e,n,a))return!0}else s+=e5(l,u,i[d++],i[d++],i[d],i[d+1],n,a)||0;l=i[d++],u=i[d++];break;case Ca.A:var y=i[d++],m=i[d++],_=i[d++],S=i[d++],x=i[d++],w=i[d++];d+=1;var b=!!(1-i[d++]);c=Math.cos(x)*_+y,h=Math.sin(x)*S+m,g?(f=c,v=h):s+=Kn(l,u,c,h,n,a);var T=(n-y)*S/_+y;if(t){if(jF(y,m,S,x,x+w,b,e,T,a))return!0}else s+=t5(y,m,S,x,x+w,b,T,a);l=Math.cos(x+w)*_+y,u=Math.sin(x+w)*S+m;break;case Ca.R:f=l=i[d++],v=u=i[d++];var C=i[d++],A=i[d++];if(c=f+C,h=v+A,t){if(ka(f,v,c,v,e,n,a)||ka(c,v,c,h,e,n,a)||ka(c,h,f,h,e,n,a)||ka(f,h,f,v,e,n,a))return!0}else s+=Kn(c,v,c,h,n,a),s+=Kn(f,h,f,v,n,a);break;case Ca.Z:if(t){if(ka(l,u,f,v,e,n,a))return!0}else s+=Kn(l,u,f,v,n,a);l=f,u=v;break}}return!t&&!KF(u,v)&&(s+=Kn(l,u,f,v,n,a)||0),s!==0}function r5(r,e,t){return ZL(r,0,!1,e,t)}function n5(r,e,t,n){return ZL(r,e,!0,t,n)}var uh=le({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},co),a5={style:le({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Dd.style)},eg=fa.concat(["invisible","culling","z","z2","zlevel","parent"]),Ae=(function(r){Je(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 n=this.style;if(n.decal){var a=this._decalEl=this._decalEl||new e;a.buildPath===e.prototype.buildPath&&(a.buildPath=function(l){t.buildPath(l,t.shape)}),a.silent=!0;var i=a.style;for(var o in n)i[o]!==n[o]&&(i[o]=n[o]);i.fill=n.fill?n.decal:null,i.decal=null,i.shadowColor=null,n.strokeFirst&&(i.stroke=null);for(var s=0;s<eg.length;++s)a[eg[s]]=this[eg[s]];a.__dirty|=vr}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(t){var n=De(t);this.shape=this.getDefaultShape();var a=this.getDefaultStyle();a&&this.useStyle(a);for(var i=0;i<n.length;i++){var o=n[i],s=t[o];o==="style"?this.style?G(this.style,s):this.useStyle(s):o==="shape"?G(this.shape,s):r.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var t=this.style.fill;if(t!=="none"){if(Z(t)){var n=rh(t,0);return n>.5?Hm:n>.2?Lz:Um}else if(t)return Um}return Hm},e.prototype.getInsideTextStroke=function(t){var n=this.style.fill;if(Z(n)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=rh(t,0)<Gm;if(i===o)return n}},e.prototype.buildPath=function(t,n,a){},e.prototype.pathUpdated=function(){this.__dirty&=~Ms},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 Bn(!1)},e.prototype.hasStroke=function(){var t=this.style,n=t.stroke;return!(n==null||n==="none"||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style,n=t.fill;return n!=null&&n!=="none"},e.prototype.getBoundingRect=function(){var t=this._rect,n=this.style,a=!t;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&Ms)&&(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||a){s.copy(t);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return t},e.prototype.contain=function(t,n){var a=this.transformCoordToLocal(t,n),i=this.getBoundingRect(),o=this.style;if(t=a[0],n=a[1],i.contain(t,n)){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)),n5(s,l/u,t,n)))return!0}if(this.hasFill())return r5(s,t,n)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Ms,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,n){t==="shape"?this.setShape(n):r.prototype.attrKV.call(this,t,n)},e.prototype.setShape=function(t,n){var a=this.shape;return a||(a=this.shape={}),typeof t=="string"?a[t]=n:G(a,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Ms)},e.prototype.createStyle=function(t){return _d(uh,t)},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=G({},this.shape))},e.prototype._applyStateObj=function(t,n,a,i,o,s){if(r.prototype._applyStateObj.call(this,t,n,a,i,o,s),this.__inHover!==bd){var l=!(n&&i),u;if(n&&n.shape?o?i?u=n.shape:(u=G({},a.shape),G(u,n.shape)):(u=G({},i?this.shape:a.shape),G(u,n.shape)):l&&(u=a.shape),u)if(o){this.shape=G({},this.shape);for(var f={},v=De(u),c=0;c<v.length;c++){var h=v[c];typeof u[h]=="object"?this.shape[h]=u[h]:f[h]=u[h]}this._transitionState(t,{shape:f},s)}else this.shape=u,this.dirtyShape()}},e.prototype._mergeStates=function(t){for(var n=r.prototype._mergeStates.call(this,t),a,i=0;i<t.length;i++){var o=t[i];o.shape&&(a=a||{},this._mergeStyle(a,o.shape))}return a&&(n.shape=a),n},e.prototype.getAnimationStyleProps=function(){return a5},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var n=(function(i){Je(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 ae(t.style)},o.prototype.getDefaultShape=function(){return ae(t.shape)},o})(e);for(var a in t)typeof t[a]=="function"&&(n.prototype[a]=t[a]);return n},e.initDefaultProps=(function(){var t=e.prototype;t.type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=vr|gu|Ms})(),e})(Ur),i5=le({strokeFirst:!0,font:la,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},uh),el=(function(r){Je(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.hasStroke=function(){return YL(this.style)},e.prototype.hasFill=function(){var t=this.style,n=t.fill;return n!=null&&n!=="none"},e.prototype.createStyle=function(t){return _d(i5,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){return this._rect||(this._rect=HF(this.style)),this._rect},e.initDefaultProps=(function(){var t=e.prototype;t.dirtyRectTolerance=10})(),e})(Ur);el.prototype.type="tspan";var o5=le({x:0,y:0},co),s5={style:le({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Dd.style)};function l5(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var Rt=(function(r){Je(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return _d(o5,t)},e.prototype._getSize=function(t){var n=this.style,a=n[t];if(a!=null)return a;var i=l5(n.image)?n.image:this.__image;if(!i)return 0;var o=t==="width"?"height":"width",s=n[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 s5},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new se(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e})(Ur);Rt.prototype.type="image";function u5(r,e){var t=e.x,n=e.y,a=e.width,i=e.height,o=e.r,s,l,u,f;a<0&&(t=t+a,a=-a),i<0&&(n=n+i,i=-i),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var v;s+l>a&&(v=s+l,s*=a/v,l*=a/v),u+f>a&&(v=u+f,u*=a/v,f*=a/v),l+u>i&&(v=l+u,l*=i/v,u*=i/v),s+f>i&&(v=s+f,s*=i/v,f*=i/v),r.moveTo(t+s,n),r.lineTo(t+a-l,n),l!==0&&r.arc(t+a-l,n+l,l,-Math.PI/2,0),r.lineTo(t+a,n+i-u),u!==0&&r.arc(t+a-u,n+i-u,u,0,Math.PI/2),r.lineTo(t+f,n+i),f!==0&&r.arc(t+f,n+i-f,f,Math.PI/2,Math.PI),r.lineTo(t,n+s),s!==0&&r.arc(t+s,n+s,s,Math.PI,Math.PI*1.5),r.closePath()}var Es=Math.round;function Pd(r,e,t){if(e){var n=e.x1,a=e.x2,i=e.y1,o=e.y2;r.x1=n,r.x2=a,r.y1=i,r.y2=o;var s=t&&t.lineWidth;return s&&(Es(n*2)===Es(a*2)&&(r.x1=r.x2=Sr(n,s,!0)),Es(i*2)===Es(o*2)&&(r.y1=r.y2=Sr(i,s,!0))),r}}function jL(r,e,t){if(e){var n=e.x,a=e.y,i=e.width,o=e.height;r.x=n,r.y=a,r.width=i,r.height=o;var s=t&&t.lineWidth;return s&&(r.x=Sr(n,s,!0),r.y=Sr(a,s,!0),r.width=Math.max(Sr(n+i,s,!1)-r.x,i===0?0:1),r.height=Math.max(Sr(a+o,s,!1)-r.y,o===0?0:1)),r}}function Sr(r,e,t){if(!e)return r;var n=Es(r*2);return(n+Es(e))%2===0?n/2:(n+(t?1:-1))/2}var f5=(function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r})(),v5={},be=(function(r){Je(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new f5},e.prototype.buildPath=function(t,n){var a,i,o,s;if(this.subPixelOptimize){var l=jL(v5,n,this.style);a=l.x,i=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else a=n.x,i=n.y,o=n.width,s=n.height;n.r?u5(t,n):t.rect(a,i,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e})(Ae);be.prototype.type="rect";var Dw={fill:"#000"},Iw=2,cn={},c5={style:le({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},Dd.style)},Re=(function(r){Je(e,r);function e(t){var n=r.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Dw,n.attr(t),n}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 n=this._children[t];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},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 n=this.innerTransformable;return n?n.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,p5(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 n=0;n<this._children.length;n++)this._children[n].__zr=t},e.prototype.removeSelfFromZr=function(t){r.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new se(0,0,0,0),n=this._children,a=[],i=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(a);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||Dw},e.prototype.setTextContent=function(t){},e.prototype._mergeStyle=function(t,n){if(!n)return t;var a=n.rich,i=t.rich||a&&{};return G(t,n),a&&i?(this._mergeRich(i,a),t.rich=i):i&&(t.rich=i),t},e.prototype._mergeRich=function(t,n){for(var a=De(n),i=0;i<a.length;i++){var o=a[i];t[o]=t[o]||{},G(t[o],n[o])}},e.prototype.getAnimationStyleProps=function(){return c5},e.prototype._getOrCreateChild=function(t){var n=this._children[this._childCursor];return(!n||!(n instanceof t))&&(n=new t),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},e.prototype._updatePlainTexts=function(){var t=this.style,n=t.font||la,a=t.padding,i=this._defaultStyle,o=t.x||0,s=t.y||0,l=t.align||i.align||"left",u=t.verticalAlign||i.verticalAlign||"top";Sw(cn,i.overflowRect,o,s,l,u),o=cn.baseX,s=cn.baseY;var f=Nw(t),v=OF(f,t,cn.outerWidth,cn.outerHeight),c=tg(t),h=!!t.backgroundColor,d=v.outerHeight,p=v.outerWidth,g=v.lines,y=v.lineHeight;this.isTruncated=!!v.isTruncated;var m=o,_=vo(s,v.contentHeight,u);if(c||a){var S=Js(o,p,l),x=vo(s,d,u);c&&this._renderBackground(t,t,S,x,p,d)}_+=y/2,a&&(m=Ow(o,l,a),u==="top"?_+=a[0]:u==="bottom"&&(_-=a[2]));for(var w=0,b=!1,T=!1,C=kw("fill"in t?t.fill:(T=!0,i.fill)),A=Ew("stroke"in t?t.stroke:!h&&(!i.autoStroke||T)?(w=Iw,b=!0,i.stroke):null),D=t.textShadowBlur>0,L=0;L<g.length;L++){var I=this._getOrCreateChild(el),P=I.createStyle();I.useStyle(P),P.text=g[L],P.x=m,P.y=_,P.textAlign=l,P.textBaseline="middle",P.opacity=t.opacity,P.strokeFirst=!0,D&&(P.shadowBlur=t.textShadowBlur||0,P.shadowColor=t.textShadowColor||"transparent",P.shadowOffsetX=t.textShadowOffsetX||0,P.shadowOffsetY=t.textShadowOffsetY||0),P.stroke=A,P.fill=C,A&&(P.lineWidth=t.lineWidth||w,P.lineDash=t.lineDash,P.lineDashOffset=t.lineDashOffset||0),P.font=n,Pw(P,t),_+=y,I.setBoundingRect(jm(P,v.contentWidth,v.calculatedLineHeight,b?0:null))}},e.prototype._updateRichTexts=function(){var t=this.style,n=this._defaultStyle,a=t.align||n.align,i=t.verticalAlign||n.verticalAlign,o=t.x||0,s=t.y||0;Sw(cn,n.overflowRect,o,s,a,i),o=cn.baseX,s=cn.baseY;var l=Nw(t),u=VF(l,t,cn.outerWidth,cn.outerHeight,a),f=u.width,v=u.outerWidth,c=u.outerHeight,h=t.padding;this.isTruncated=!!u.isTruncated;var d=Js(o,v,a),p=vo(s,c,i),g=d,y=p;h&&(g+=h[3],y+=h[0]);var m=g+f;tg(t)&&this._renderBackground(t,t,d,p,v,c);for(var _=!!t.backgroundColor,S=0;S<u.lines.length;S++){for(var x=u.lines[S],w=x.tokens,b=w.length,T=x.lineHeight,C=x.width,A=0,D=g,L=m,I=b-1,P=void 0;A<b&&(P=w[A],!P.align||P.align==="left");)this._placeToken(P,t,T,y,D,"left",_),C-=P.width,D+=P.width,A++;for(;I>=0&&(P=w[I],P.align==="right");)this._placeToken(P,t,T,y,L,"right",_),C-=P.width,L-=P.width,I--;for(D+=(f-(D-g)-(m-L)-C)/2;A<=I;)P=w[A],this._placeToken(P,t,T,y,D+P.width/2,"center",_),D+=P.width,A++;y+=T}},e.prototype._placeToken=function(t,n,a,i,o,s,l){var u=n.rich[t.styleName]||{};u.text=t.text;var f=t.verticalAlign,v=i+a/2;f==="top"?v=i+t.height/2:f==="bottom"&&(v=i+a-t.height/2);var c=!t.isLineHolder&&tg(u);c&&this._renderBackground(u,n,s==="right"?o-t.width:s==="center"?o-t.width/2:o,v-t.height/2,t.width,t.height);var h=!!u.backgroundColor,d=t.textPadding;d&&(o=Ow(o,s,d),v-=t.height/2-d[0]-t.innerHeight/2);var p=this._getOrCreateChild(el),g=p.createStyle();p.useStyle(g);var y=this._defaultStyle,m=!1,_=0,S=!1,x=kw("fill"in u?u.fill:"fill"in n?n.fill:(m=!0,y.fill)),w=Ew("stroke"in u?u.stroke:"stroke"in n?n.stroke:!h&&!l&&(!y.autoStroke||m)?(_=Iw,S=!0,y.stroke):null),b=u.textShadowBlur>0||n.textShadowBlur>0;g.text=t.text,g.x=o,g.y=v,b&&(g.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,g.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=t.font||la,g.opacity=xr(u.opacity,n.opacity,1),Pw(g,u),w&&(g.lineWidth=xr(u.lineWidth,n.lineWidth,_),g.lineDash=Q(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=w),x&&(g.fill=x),p.setBoundingRect(jm(g,t.contentWidth,t.contentHeight,S?0:null))},e.prototype._renderBackground=function(t,n,a,i,o,s){var l=t.backgroundColor,u=t.borderWidth,f=t.borderColor,v=l&&l.image,c=l&&!v,h=t.borderRadius,d=this,p,g;if(c||t.lineHeight||u&&f){p=this._getOrCreateChild(be),p.useStyle(p.createStyle()),p.style.fill=null;var y=p.shape;y.x=a,y.y=i,y.width=o,y.height=s,y.r=h,p.dirtyShape()}if(c){var m=p.style;m.fill=l||null,m.fillOpacity=Q(t.fillOpacity,1)}else if(v){g=this._getOrCreateChild(Rt),g.onload=function(){d.dirtyStyle()};var _=g.style;_.image=l.image,_.x=a,_.y=i,_.width=o,_.height=s}if(u&&f){var m=p.style;m.lineWidth=u,m.stroke=f,m.strokeOpacity=Q(t.strokeOpacity,1),m.lineDash=t.borderDash,m.lineDashOffset=t.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var S=(p||g).style;S.shadowBlur=t.shadowBlur||0,S.shadowColor=t.shadowColor||"transparent",S.shadowOffsetX=t.shadowOffsetX||0,S.shadowOffsetY=t.shadowOffsetY||0,S.opacity=xr(t.opacity,n.opacity,1)},e.makeFont=function(t){var n="";return KL(t)&&(n=[t.fontStyle,t.fontWeight,qL(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),n&&Br(n)||t.textFont||t.font},e})(Ur),h5={left:!0,right:1,center:1},d5={top:1,bottom:1,middle:1},Lw=["fontStyle","fontWeight","fontSize","fontFamily"];function qL(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?G_+"px":r+"px"}function Pw(r,e){for(var t=0;t<Lw.length;t++){var n=Lw[t],a=e[n];a!=null&&(r[n]=a)}}function KL(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function p5(r){return Rw(r),M(r.rich,Rw),r}function Rw(r){if(r){r.font=Re.makeFont(r);var e=r.align;e==="middle"&&(e="center"),r.align=e==null||h5[e]?e:"left";var t=r.verticalAlign;t==="center"&&(t="middle"),r.verticalAlign=t==null||d5[t]?t:"top";var n=r.padding;n&&(r.padding=md(r.padding))}}function Ew(r,e){return r==null||e<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function kw(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function Ow(r,e,t){return e==="right"?r-t[1]:e==="center"?r+t[3]/2-t[1]/2:r+t[3]}function Nw(r){var e=r.text;return e!=null&&(e+=""),e}function tg(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}var ve=me(),Jm=function(r,e,t,n){if(n){var a=ve(n);a.dataIndex=t,a.dataType=e,a.seriesIndex=r,a.ssrType="chart",n.type==="group"&&n.traverse(function(i){var o=ve(i);o.seriesIndex=r,o.dataIndex=t,o.dataType=e,o.ssrType="chart"})}},xl="undefined",Vn="series",JL=K(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),br="original",Pt="arrayRows",Cr="objectRows",an="keyedColumns",Ka="typedArray",QL="unknown",Jr="column",Yo="row",e2="Roam",g5=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],t2=(function(){function r(e){M(g5,function(t){this[t]=q(e[t],e)},this)}return r})();function r2(r,e){return e.mainType===Vn?r.getViewOfSeriesModel(e):r.getViewOfComponentModel(e)}var Bw=1,Vw={},n2=me(),lS=me(),uS=0,Ef=1,Rd=2,ir=["emphasis","blur","select"],Ku=["normal","emphasis","blur","select"],wl=10,y5=9,ho="highlight",Ec="downplay",fh="select",Qm="unselect",vh="toggleSelect",fS="selectchanged";function ss(r){return r!=null&&r!=="none"}function Ed(r,e,t){r.onHoverStateChange&&(r.hoverState||0)!==t&&r.onHoverStateChange(e),r.hoverState=t}function a2(r){Ed(r,"emphasis",Rd)}function i2(r){r.hoverState===Rd&&Ed(r,"normal",uS)}function vS(r){Ed(r,"blur",Ef)}function o2(r){r.hoverState===Ef&&Ed(r,"normal",uS)}function m5(r){r.selected=!0}function _5(r){r.selected=!1}function zw(r,e,t){e(r,t)}function _a(r,e,t){zw(r,e,t),r.isGroup&&r.traverse(function(n){zw(n,e,t)})}function ch(r,e){switch(e){case"emphasis":r.hoverState=Rd;break;case"normal":r.hoverState=uS;break;case"blur":r.hoverState=Ef;break;case"select":r.selected=!0}}function S5(r,e,t,n){for(var a=r.style,i={},o=0;o<e.length;o++){var s=e[o],l=a[s];i[s]=l??(n&&n[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 x5(r,e,t,n){var a=t&&pe(t,"select")>=0,i=!1;if(r instanceof Ae){var o=n2(r),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(ss(s)||ss(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(i=!0,n=G({},n),u=G({},u),u.fill=s):!ss(u.fill)&&ss(s)?(i=!0,n=G({},n),u=G({},u),u.fill=km(s)):!ss(u.stroke)&&ss(l)&&(i||(n=G({},n),u=G({},u)),u.stroke=km(l)),n.style=u}}if(n&&n.z2==null){i||(n=G({},n));var f=r.z2EmphasisLift;n.z2=r.z2+(f??wl)}return n}function w5(r,e,t){if(t&&t.z2==null){t=G({},t);var n=r.z2SelectLift;t.z2=r.z2+(n??y5)}return t}function b5(r,e,t){var n=pe(r.currentStates,e)>=0,a=r.style.opacity,i=n?null:S5(r,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=G({},t),o=G({opacity:n?a:i.opacity*.1},o),t.style=o),t}function rg(r,e){var t=this.states[r];if(this.style){if(r==="emphasis")return x5(this,r,e,t);if(r==="blur")return b5(this,r,t);if(r==="select")return w5(this,r,t)}return t}function Co(r){r.stateProxy=rg;var e=r.getTextContent(),t=r.getTextGuideLine();e&&(e.stateProxy=rg),t&&(t.stateProxy=rg)}function Fw(r,e){!f2(r,e)&&!r.__highByOuter&&_a(r,a2)}function Gw(r,e){!f2(r,e)&&!r.__highByOuter&&_a(r,i2)}function da(r,e){r.__highByOuter|=1<<(e||0),_a(r,a2)}function pa(r,e){!(r.__highByOuter&=~(1<<(e||0)))&&_a(r,i2)}function s2(r){_a(r,vS)}function cS(r){_a(r,o2)}function l2(r){_a(r,m5)}function u2(r){_a(r,_5)}function f2(r,e){return r.__highDownSilentOnTouch&&e.zrByTouch}function v2(r){var e=r.getModel(),t=[],n=[];e.eachComponent(function(a,i){var o=lS(i),s=r2(r,i),l=a==="series";!l&&n.push(s),o.isBlured&&(s.group.traverse(function(u){o2(u)}),l&&t.push(i)),o.isBlured=!1}),M(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(t,!1,e)})}function e0(r,e,t,n){var a=n.getModel();t=t||"coordinateSystem";function i(u,f){for(var v=0;v<f.length;v++){var c=u.getItemGraphicEl(f[v]);c&&cS(c)}}if(r!=null&&!(!e||e==="none")){var o=a.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];a.eachSeries(function(u){var f=o===u,v=u.coordinateSystem;v&&v.master&&(v=v.master);var c=v&&s?v===s:f;if(!(t==="series"&&!f||t==="coordinateSystem"&&!c||e==="series"&&f)){var h=n.getViewOfSeriesModel(u);if(h.group.traverse(function(g){g.__highByOuter&&f&&e==="self"||vS(g)}),Wt(e))i(u.getData(),e);else if(fe(e))for(var d=De(e),p=0;p<d.length;p++)i(u.getData(d[p]),e[d[p]]);l.push(u),lS(u).isBlured=!0}}),a.eachComponent(function(u,f){if(u!=="series"){var v=n.getViewOfComponentModel(f);v&&v.toggleBlurSeries&&v.toggleBlurSeries(l,!0,a)}})}}function t0(r,e,t){if(!(r==null||e==null)){var n=t.getModel().getComponent(r,e);if(n){lS(n).isBlured=!0;var a=t.getViewOfComponentModel(n);!a||!a.focusBlurEnabled||a.group.traverse(function(i){vS(i)})}}}function C5(r,e,t){var n=r.seriesIndex,a=r.getData(e.dataType);if(a){var i=xo(a,e);i=(U(i)?i[0]:i)||0;var o=a.getItemGraphicEl(i);if(!o)for(var s=a.count(),l=0;!o&&l<s;)o=a.getItemGraphicEl(l++);if(o){var u=ve(o);e0(n,u.focus,u.blurScope,t)}else{var f=r.get(["emphasis","focus"]),v=r.get(["emphasis","blurScope"]);f!=null&&e0(n,f,v,t)}}}function hS(r,e,t,n){var a={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||e==null||t==null)return a;var i=n.getModel().getComponent(r,e);if(!i)return a;var o=n.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return a;for(var s=o.findHighDownDispatchers(t),l,u=0;u<s.length;u++)if(ve(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function T5(r,e,t){var n=ve(r),a=hS(n.componentMainType,n.componentIndex,n.componentHighDownName,t),i=a.dispatchers,o=a.focusSelf;i?(o&&t0(n.componentMainType,n.componentIndex,t),M(i,function(s){return Fw(s,e)})):(e0(n.seriesIndex,n.focus,n.blurScope,t),n.focus==="self"&&t0(n.componentMainType,n.componentIndex,t),Fw(r,e))}function A5(r,e,t){v2(t);var n=ve(r),a=hS(n.componentMainType,n.componentIndex,n.componentHighDownName,t).dispatchers;a?M(a,function(i){return Gw(i,e)}):Gw(r,e)}function M5(r,e,t){if(n0(e)){var n=e.dataType,a=r.getData(n),i=xo(a,e);U(i)||(i=[i]),r[e.type===vh?"toggleSelect":e.type===fh?"select":"unselect"](i,n)}}function Hw(r){var e=r.getAllData();M(e,function(t){var n=t.data,a=t.type;n.eachItemGraphicEl(function(i,o){r.isSelected(o,a)?l2(i):u2(i)})})}function D5(r){var e=[];return r.eachSeries(function(t){var n=t.getAllData();M(n,function(a){a.data;var i=a.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 po(r,e,t){io(r,!0),_a(r,Co),r0(r,e,t)}function I5(r){io(r,!1)}function et(r,e,t,n){n?I5(r):po(r,e,t)}function r0(r,e,t){var n=ve(r);e!=null?(n.focus=e,n.blurScope=t):n.focus&&(n.focus=null)}var Uw=["emphasis","blur","select"],L5={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function _t(r,e,t,n){t=t||"itemStyle";for(var a=0;a<Uw.length;a++){var i=Uw[a],o=e.getModel([i,t]),s=r.ensureState(i);s.style=n?n(o):o[L5[t]]()}}function io(r,e){var t=e===!1,n=r;r.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!t||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!t)}function Ju(r){return!!(r&&r.__highDownDispatcher)}function P5(r,e,t){var n=ve(r);n.componentMainType=e.mainType,n.componentIndex=e.componentIndex,n.componentHighDownName=t}function R5(r){var e=Vw[r];return e==null&&Bw<=32&&(e=Vw[r]=Bw++),e}function n0(r){var e=r.type;return e===fh||e===Qm||e===vh}function $w(r){var e=r.type;return e===ho||e===Ec}function E5(r){var e=n2(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 ls=Bn.CMD,k5=[[],[],[]],Ww=Math.sqrt,O5=Math.atan2;function c2(r,e){if(e){var t=r.data,n=r.len(),a,i,o,s,l,u,f=ls.M,v=ls.C,c=ls.L,h=ls.R,d=ls.A,p=ls.Q;for(o=0,s=0;o<n;){switch(a=t[o++],s=o,i=0,a){case f:i=1;break;case c:i=1;break;case v:i=3;break;case p:i=2;break;case d:var g=e[4],y=e[5],m=Ww(e[0]*e[0]+e[1]*e[1]),_=Ww(e[2]*e[2]+e[3]*e[3]),S=O5(-e[1]/_,e[0]/m);t[o]*=m,t[o++]+=g,t[o]*=_,t[o++]+=y,t[o++]*=m,t[o++]*=_,t[o++]+=S,t[o++]+=S,o+=2,s=o;break;case h:u[0]=t[o++],u[1]=t[o++],st(u,u,e),t[s++]=u[0],t[s++]=u[1],u[0]+=t[o++],u[1]+=t[o++],st(u,u,e),t[s++]=u[0],t[s++]=u[1]}for(l=0;l<i;l++){var x=k5[l];x[0]=t[o++],x[1]=t[o++],st(x,x,e),t[s++]=x[0],t[s++]=x[1]}}r.increaseVersion()}}var ng=Math.sqrt,hv=Math.sin,dv=Math.cos,zl=Math.PI;function Yw(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function a0(r,e){return(r[0]*e[0]+r[1]*e[1])/(Yw(r)*Yw(e))}function Xw(r,e){return(r[0]*e[1]<r[1]*e[0]?-1:1)*Math.acos(a0(r,e))}function Zw(r,e,t,n,a,i,o,s,l,u,f){var v=l*(zl/180),c=dv(v)*(r-t)/2+hv(v)*(e-n)/2,h=-1*hv(v)*(r-t)/2+dv(v)*(e-n)/2,d=c*c/(o*o)+h*h/(s*s);d>1&&(o*=ng(d),s*=ng(d));var p=(a===i?-1:1)*ng((o*o*(s*s)-o*o*(h*h)-s*s*(c*c))/(o*o*(h*h)+s*s*(c*c)))||0,g=p*o*h/s,y=p*-s*c/o,m=(r+t)/2+dv(v)*g-hv(v)*y,_=(e+n)/2+hv(v)*g+dv(v)*y,S=Xw([1,0],[(c-g)/o,(h-y)/s]),x=[(c-g)/o,(h-y)/s],w=[(-1*c-g)/o,(-1*h-y)/s],b=Xw(x,w);if(a0(x,w)<=-1&&(b=zl),a0(x,w)>=1&&(b=0),b<0){var T=Math.round(b/zl*1e6)/1e6;b=zl*2+T%2*zl}f.addData(u,m,_,o,s,S,b,v,i)}var N5=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,B5=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function V5(r){var e=new Bn;if(!r)return e;var t=0,n=0,a=t,i=n,o,s=Bn.CMD,l=r.match(N5);if(!l)return e;for(var u=0;u<l.length;u++){for(var f=l[u],v=f.charAt(0),c=void 0,h=f.match(B5)||[],d=h.length,p=0;p<d;p++)h[p]=parseFloat(h[p]);for(var g=0;g<d;){var y=void 0,m=void 0,_=void 0,S=void 0,x=void 0,w=void 0,b=void 0,T=t,C=n,A=void 0,D=void 0;switch(v){case"l":t+=h[g++],n+=h[g++],c=s.L,e.addData(c,t,n);break;case"L":t=h[g++],n=h[g++],c=s.L,e.addData(c,t,n);break;case"m":t+=h[g++],n+=h[g++],c=s.M,e.addData(c,t,n),a=t,i=n,v="l";break;case"M":t=h[g++],n=h[g++],c=s.M,e.addData(c,t,n),a=t,i=n,v="L";break;case"h":t+=h[g++],c=s.L,e.addData(c,t,n);break;case"H":t=h[g++],c=s.L,e.addData(c,t,n);break;case"v":n+=h[g++],c=s.L,e.addData(c,t,n);break;case"V":n=h[g++],c=s.L,e.addData(c,t,n);break;case"C":c=s.C,e.addData(c,h[g++],h[g++],h[g++],h[g++],h[g++],h[g++]),t=h[g-2],n=h[g-1];break;case"c":c=s.C,e.addData(c,h[g++]+t,h[g++]+n,h[g++]+t,h[g++]+n,h[g++]+t,h[g++]+n),t+=h[g-2],n+=h[g-1];break;case"S":y=t,m=n,A=e.len(),D=e.data,o===s.C&&(y+=t-D[A-4],m+=n-D[A-3]),c=s.C,T=h[g++],C=h[g++],t=h[g++],n=h[g++],e.addData(c,y,m,T,C,t,n);break;case"s":y=t,m=n,A=e.len(),D=e.data,o===s.C&&(y+=t-D[A-4],m+=n-D[A-3]),c=s.C,T=t+h[g++],C=n+h[g++],t+=h[g++],n+=h[g++],e.addData(c,y,m,T,C,t,n);break;case"Q":T=h[g++],C=h[g++],t=h[g++],n=h[g++],c=s.Q,e.addData(c,T,C,t,n);break;case"q":T=h[g++]+t,C=h[g++]+n,t+=h[g++],n+=h[g++],c=s.Q,e.addData(c,T,C,t,n);break;case"T":y=t,m=n,A=e.len(),D=e.data,o===s.Q&&(y+=t-D[A-4],m+=n-D[A-3]),t=h[g++],n=h[g++],c=s.Q,e.addData(c,y,m,t,n);break;case"t":y=t,m=n,A=e.len(),D=e.data,o===s.Q&&(y+=t-D[A-4],m+=n-D[A-3]),t+=h[g++],n+=h[g++],c=s.Q,e.addData(c,y,m,t,n);break;case"A":_=h[g++],S=h[g++],x=h[g++],w=h[g++],b=h[g++],T=t,C=n,t=h[g++],n=h[g++],c=s.A,Zw(T,C,t,n,w,b,_,S,x,c,e);break;case"a":_=h[g++],S=h[g++],x=h[g++],w=h[g++],b=h[g++],T=t,C=n,t+=h[g++],n+=h[g++],c=s.A,Zw(T,C,t,n,w,b,_,S,x,c,e);break}}(v==="z"||v==="Z")&&(c=s.Z,e.addData(c),t=a,n=i),o=c}return e.toStatic(),e}var h2=(function(r){Je(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.applyTransform=function(t){},e})(Ae);function d2(r){return r.setData!=null}function p2(r,e){var t=V5(r),n=G({},e);return n.buildPath=function(a){var i=d2(a);if(i&&a.canSave()){a.appendPath(t);var o=a.getContext();o&&a.rebuildPath(o,1)}else{var o=i?a.getContext():a;o&&t.rebuildPath(o,1)}},n.applyTransform=function(a){c2(t,a),this.dirtyShape()},n}function g2(r,e){return new h2(p2(r,e))}function z5(r,e){var t=p2(r,e),n=(function(a){Je(i,a);function i(o){var s=a.call(this,o)||this;return s.applyTransform=t.applyTransform,s.buildPath=t.buildPath,s}return i})(h2);return n}function F5(r,e){for(var t=[],n=r.length,a=0;a<n;a++){var i=r[a];t.push(i.getUpdatedPathProxy(!0))}var o=new Ae(e);return o.createPathProxy(),o.buildPath=function(s){if(d2(s)){s.appendPath(t);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function dS(r,e){e=e||{};var t=new Ae;return r.shape&&t.setShape(r.shape),t.setStyle(r.style),e.bakeTransform?c2(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 G5=(function(){function r(){this.cx=0,this.cy=0,this.r=0}return r})(),Sa=(function(r){Je(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new G5},e.prototype.buildPath=function(t,n){t.moveTo(n.cx+n.r,n.cy),t.arc(n.cx,n.cy,n.r,0,Math.PI*2)},e})(Ae);Sa.prototype.type="circle";var H5=(function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r})(),kd=(function(r){Je(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new H5},e.prototype.buildPath=function(t,n){var a=.5522848,i=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*a,f=l*a;t.moveTo(i-s,o),t.bezierCurveTo(i-s,o-f,i-u,o-l,i,o-l),t.bezierCurveTo(i+u,o-l,i+s,o-f,i+s,o),t.bezierCurveTo(i+s,o+f,i+u,o+l,i,o+l),t.bezierCurveTo(i-u,o+l,i-s,o+f,i-s,o),t.closePath()},e})(Ae);kd.prototype.type="ellipse";var y2=Math.PI,ag=y2*2,Li=Math.sin,us=Math.cos,U5=Math.acos,zt=Math.atan2,jw=Math.abs,ku=Math.sqrt,mu=Math.max,hn=Math.min,Xr=1e-4;function $5(r,e,t,n,a,i,o,s){var l=t-r,u=n-e,f=o-a,v=s-i,c=v*l-f*u;if(!(c*c<Xr))return c=(f*(e-i)-v*(r-a))/c,[r+c*l,e+c*u]}function pv(r,e,t,n,a,i,o){var s=r-t,l=e-n,u=(o?i:-i)/ku(s*s+l*l),f=u*l,v=-u*s,c=r+f,h=e+v,d=t+f,p=n+v,g=(c+d)/2,y=(h+p)/2,m=d-c,_=p-h,S=m*m+_*_,x=a-i,w=c*p-d*h,b=(_<0?-1:1)*ku(mu(0,x*x*S-w*w)),T=(w*_-m*b)/S,C=(-w*m-_*b)/S,A=(w*_+m*b)/S,D=(-w*m+_*b)/S,L=T-g,I=C-y,P=A-g,R=D-y;return L*L+I*I>P*P+R*R&&(T=A,C=D),{cx:T,cy:C,x0:-f,y0:-v,x1:T*(a/x-1),y1:C*(a/x-1)}}function W5(r){var e;if(U(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 Y5(r,e){var t,n=mu(e.r,0),a=mu(e.r0||0,0),i=n>0,o=a>0;if(!(!i&&!o)){if(i||(n=a,a=0),a>n){var s=n;n=a,a=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var f=e.cx,v=e.cy,c=!!e.clockwise,h=jw(u-l),d=h>ag&&h%ag;if(d>Xr&&(h=d),!(n>Xr))r.moveTo(f,v);else if(h>ag-Xr)r.moveTo(f+n*us(l),v+n*Li(l)),r.arc(f,v,n,l,u,!c),a>Xr&&(r.moveTo(f+a*us(u),v+a*Li(u)),r.arc(f,v,a,u,l,c));else{var p=void 0,g=void 0,y=void 0,m=void 0,_=void 0,S=void 0,x=void 0,w=void 0,b=void 0,T=void 0,C=void 0,A=void 0,D=void 0,L=void 0,I=void 0,P=void 0,R=n*us(l),E=n*Li(l),O=a*us(u),k=a*Li(u),z=h>Xr;if(z){var F=e.cornerRadius;F&&(t=W5(F),p=t[0],g=t[1],y=t[2],m=t[3]);var H=jw(n-a)/2;if(_=hn(H,y),S=hn(H,m),x=hn(H,p),w=hn(H,g),C=b=mu(_,S),A=T=mu(x,w),(b>Xr||T>Xr)&&(D=n*us(u),L=n*Li(u),I=a*us(l),P=a*Li(l),h<y2)){var W=$5(R,E,I,P,D,L,O,k);if(W){var X=R-W[0],Y=E-W[1],ee=D-W[0],ye=L-W[1],Ne=1/Li(U5((X*ee+Y*ye)/(ku(X*X+Y*Y)*ku(ee*ee+ye*ye)))/2),ce=ku(W[0]*W[0]+W[1]*W[1]);C=hn(b,(n-ce)/(Ne+1)),A=hn(T,(a-ce)/(Ne-1))}}}if(!z)r.moveTo(f+R,v+E);else if(C>Xr){var te=hn(y,C),ge=hn(m,C),re=pv(I,P,R,E,n,te,c),he=pv(D,L,O,k,n,ge,c);r.moveTo(f+re.cx+re.x0,v+re.cy+re.y0),C<b&&te===ge?r.arc(f+re.cx,v+re.cy,C,zt(re.y0,re.x0),zt(he.y0,he.x0),!c):(te>0&&r.arc(f+re.cx,v+re.cy,te,zt(re.y0,re.x0),zt(re.y1,re.x1),!c),r.arc(f,v,n,zt(re.cy+re.y1,re.cx+re.x1),zt(he.cy+he.y1,he.cx+he.x1),!c),ge>0&&r.arc(f+he.cx,v+he.cy,ge,zt(he.y1,he.x1),zt(he.y0,he.x0),!c))}else r.moveTo(f+R,v+E),r.arc(f,v,n,l,u,!c);if(!(a>Xr)||!z)r.lineTo(f+O,v+k);else if(A>Xr){var te=hn(p,A),ge=hn(g,A),re=pv(O,k,D,L,a,-ge,c),he=pv(R,E,I,P,a,-te,c);r.lineTo(f+re.cx+re.x0,v+re.cy+re.y0),A<T&&te===ge?r.arc(f+re.cx,v+re.cy,A,zt(re.y0,re.x0),zt(he.y0,he.x0),!c):(ge>0&&r.arc(f+re.cx,v+re.cy,ge,zt(re.y0,re.x0),zt(re.y1,re.x1),!c),r.arc(f,v,a,zt(re.cy+re.y1,re.cx+re.x1),zt(he.cy+he.y1,he.cx+he.x1),c),te>0&&r.arc(f+he.cx,v+he.cy,te,zt(he.y1,he.x1),zt(he.y0,he.x0),!c))}else r.lineTo(f+O,v+k),r.arc(f,v,a,u,l,c)}r.closePath()}}}var X5=(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})(),Xt=(function(r){Je(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new X5},e.prototype.buildPath=function(t,n){Y5(t,n)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e})(Ae);Xt.prototype.type="sector";var Z5=(function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r})(),kf=(function(r){Je(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new Z5},e.prototype.buildPath=function(t,n){var a=n.cx,i=n.cy,o=Math.PI*2;t.moveTo(a+n.r,i),t.arc(a,i,n.r,0,o,!1),t.moveTo(a+n.r0,i),t.arc(a,i,n.r0,0,o,!0)},e})(Ae);kf.prototype.type="ring";function j5(r,e,t,n){var a=[],i=[],o=[],s=[],l,u,f,v;if(n){f=[1/0,1/0],v=[-1/0,-1/0];for(var c=0,h=r.length;c<h;c++)Ba(f,f,r[c]),Va(v,v,r[c]);Ba(f,f,n[0]),Va(v,v,n[1])}for(var c=0,h=r.length;c<h;c++){var d=r[c];if(t)l=r[c?c-1:h-1],u=r[(c+1)%h];else if(c===0||c===h-1){a.push(ra(r[c]));continue}else l=r[c-1],u=r[c+1];no(i,u,l),Cc(i,i,e);var p=bm(d,l),g=bm(d,u),y=p+g;y!==0&&(p/=y,g/=y),Cc(o,i,-p),Cc(s,i,g);var m=Nx([],d,o),_=Nx([],d,s);n&&(Va(m,m,f),Ba(m,m,v),Va(_,_,f),Ba(_,_,v)),a.push(m),a.push(_)}return t&&a.push(a.shift()),a}function m2(r,e,t){var n=e.smooth,a=e.points;if(a&&a.length>=2){if(n){var i=j5(a,n,t,e.smoothConstraint);r.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(t?o:o-1);s++){var l=i[s*2],u=i[s*2+1],f=a[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{r.moveTo(a[0][0],a[0][1]);for(var s=1,v=a.length;s<v;s++)r.lineTo(a[s][0],a[s][1])}t&&r.closePath()}}var q5=(function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r})(),Zt=(function(r){Je(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new q5},e.prototype.buildPath=function(t,n){m2(t,n,!0)},e})(Ae);Zt.prototype.type="polygon";var K5=(function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r})(),Bt=(function(r){Je(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 K5},e.prototype.buildPath=function(t,n){m2(t,n,!1)},e})(Ae);Bt.prototype.type="polyline";var J5={},Q5=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r})(),dt=(function(r){Je(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 Q5},e.prototype.buildPath=function(t,n){var a,i,o,s;if(this.subPixelOptimize){var l=Pd(J5,n,this.style);a=l.x1,i=l.y1,o=l.x2,s=l.y2}else a=n.x1,i=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(t.moveTo(a,i),u<1&&(o=a*(1-u)+o*u,s=i*(1-u)+s*u),t.lineTo(o,s))},e.prototype.pointAt=function(t){var n=this.shape;return[n.x1*(1-t)+n.x2*t,n.y1*(1-t)+n.y2*t]},e})(Ae);dt.prototype.type="line";var lr=[],eG=(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 qw(r,e,t){var n=r.cpx2,a=r.cpy2;return n!=null||a!=null?[(t?jx:Ct)(r.x1,r.cpx1,r.cpx2,r.x2,e),(t?jx:Ct)(r.y1,r.cpy1,r.cpy2,r.y2,e)]:[(t?Lm:Lt)(r.x1,r.cpx1,r.x2,e),(t?Lm:Lt)(r.y1,r.cpy1,r.y2,e)]}var Of=(function(r){Je(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 eG},e.prototype.buildPath=function(t,n){var a=n.x1,i=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,f=n.cpx2,v=n.cpy2,c=n.percent;c!==0&&(t.moveTo(a,i),f==null||v==null?(c<1&&(Yu(a,l,o,c,lr),l=lr[1],o=lr[2],Yu(i,u,s,c,lr),u=lr[1],s=lr[2]),t.quadraticCurveTo(l,u,o,s)):(c<1&&(ri(a,l,f,o,c,lr),l=lr[1],f=lr[2],o=lr[3],ri(i,u,v,s,c,lr),u=lr[1],v=lr[2],s=lr[3]),t.bezierCurveTo(l,u,f,v,o,s)))},e.prototype.pointAt=function(t){return qw(this.shape,t,!1)},e.prototype.tangentAt=function(t){var n=qw(this.shape,t,!0);return gl(n,n)},e})(Ae);Of.prototype.type="bezier-curve";var tG=(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})(),Od=(function(r){Je(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 tG},e.prototype.buildPath=function(t,n){var a=n.cx,i=n.cy,o=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,f=Math.cos(s),v=Math.sin(s);t.moveTo(f*o+a,v*o+i),t.arc(a,i,o,s,l,!u)},e})(Ae);Od.prototype.type="arc";var Nd=(function(r){Je(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,n=this.shapeChanged(),a=0;a<t.length;a++)n=n||t[a].shapeChanged();n&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],n=this.getGlobalScale(),a=0;a<t.length;a++)t[a].path||t[a].createPathProxy(),t[a].path.setScale(n[0],n[1],t[a].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,n){for(var a=n.paths||[],i=0;i<a.length;i++)a[i].buildPath(t,a[i].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],n=0;n<t.length;n++)t[n].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Ae.prototype.getBoundingRect.call(this)},e})(Ae),_2=(function(){function r(e){this.colorStops=e||[]}return r.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},r})(),bl=(function(r){Je(e,r);function e(t,n,a,i,o,s){var l=r.call(this,o)||this;return l.x=t??0,l.y=n??0,l.x2=a??1,l.y2=i??0,l.type="linear",l.global=s||!1,l}return e})(_2),S2=(function(r){Je(e,r);function e(t,n,a,i,o){var s=r.call(this,i)||this;return s.x=t??.5,s.y=n??.5,s.r=a??.5,s.type="radial",s.global=o||!1,s}return e})(_2),ig=Math.min,rG=Math.max,gv=Math.abs,Pi=[0,0],Ri=[0,0],It=QI(),yv=It.minTv,mv=It.maxTv,x2=(function(){function r(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new ue;for(var n=0;n<2;n++)this._axes[n]=new ue;e&&this.fromBoundingRect(e,t)}return r.prototype.fromBoundingRect=function(e,t){var n=this._corners,a=this._axes,i=e.x,o=e.y,s=i+e.width,l=o+e.height;if(n[0].set(i,o),n[1].set(s,o),n[2].set(s,l),n[3].set(i,l),t)for(var u=0;u<4;u++)n[u].transform(t);ue.sub(a[0],n[1],n[0]),ue.sub(a[1],n[3],n[0]),a[0].normalize(),a[1].normalize();for(var u=0;u<2;u++)this._origin[u]=a[u].dot(n[0])},r.prototype.intersect=function(e,t,n){var a=!0,i=!t;return t&&ue.set(t,0,0),It.reset(n,!i),!this._intersectCheckOneSide(this,e,i,1)&&(a=!1,i)||!this._intersectCheckOneSide(e,this,i,-1)&&(a=!1,i)||!i&&!It.negativeSize&&ue.copy(t,a?It.useDir?It.dirMinTv:yv:mv),a},r.prototype._intersectCheckOneSide=function(e,t,n,a){for(var i=!0,o=0;o<2;o++){var s=e._axes[o];if(e._getProjMinMaxOnAxis(o,e._corners,Pi),e._getProjMinMaxOnAxis(o,t._corners,Ri),It.negativeSize||Pi[1]<Ri[0]||Pi[0]>Ri[1]){if(i=!1,It.negativeSize||n)return i;var l=gv(Ri[0]-Pi[1]),u=gv(Pi[0]-Ri[1]);ig(l,u)>mv.len()&&(l<u?ue.scale(mv,s,-l*a):ue.scale(mv,s,u*a))}else if(!n){var l=gv(Ri[0]-Pi[1]),u=gv(Pi[0]-Ri[1]);(It.useDir||ig(l,u)<yv.len())&&((l<u||!It.bidirectional)&&(ue.scale(yv,s,l*a),It.useDir&&It.calcDirMTV()),(l>=u||!It.bidirectional)&&(ue.scale(yv,s,-u*a),It.useDir&&It.calcDirMTV()))}}return i},r.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var a=this._axes[e],i=this._origin,o=t[0].dot(a)+i[e],s=o,l=o,u=1;u<t.length;u++){var f=t[u].dot(a)+i[e];s=ig(f,s),l=rG(f,l)}n[0]=s+It.touchThreshold,n[1]=l-It.touchThreshold,It.negativeSize=n[1]<n[0]},r})(),w2=0,nG=1,aG=2,iG=1,kc=0,oG=[],sG=(function(r){Je(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.notClear=!0,t.incremental=nG,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return e.prototype.traverse=function(t,n){t.call(n,this)},e.prototype.useStyle=function(){this.style={}},e.prototype._useHoverStyle=function(){this.__hoverStyle=null},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,n){n?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,n){n=n||!1;for(var a=0;a<t.length;a++)this.addDisplayable(t[a],n)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var n=this._cursor;n<this._displayables.length;n++)t&&t(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)t&&t(this._temporaryDisplayables[n])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){var n=this._displayables[t];n.parent=this,n.update(),n.parent=null}for(var t=0;t<this._temporaryDisplayables.length;t++){var n=this._temporaryDisplayables[t];n.parent=this,n.update(),n.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new se(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var a=this._displayables[n],i=a.getBoundingRect().clone();a.needLocalTransform()&&i.applyTransform(a.getLocalTransform(oG)),t.union(i)}this._rect=t}return this._rect},e.prototype.contain=function(t,n){var a=this.transformCoordToLocal(t,n),i=this.getBoundingRect();if(i.contain(a[0],a[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(t,n))return!0}return!1},e})(Ur),b2=me();function Cl(r,e,t,n,a){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,f=void 0,v=void 0;n?(u=Q(n.duration,200),f=Q(n.easing,"cubicOut"),v=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),f=e.getShallow(l?"animationEasingUpdate":"animationEasing"),v=e.getShallow(l?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(u=i.duration),i.easing!=null&&(f=i.easing),i.delay!=null&&(v=i.delay)),ie(v)&&(v=v(t,a)),ie(u)&&(u=u(t));var c={duration:u||0,delay:v,easing:f};return c}else return null}function pS(r,e,t,n,a,i,o){var s=!1,l;ie(a)?(o=i,i=a,a=null):fe(a)&&(i=a.cb,o=a.during,s=a.isFrom,l=a.removeOpt,a=a.dataIndex);var u=r==="leave";u||e.stopAnimation("leave");var f=Cl(r,n,a,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,a):null);if(f&&f.duration>0){var v=f.duration,c=f.delay,h=f.easing,d={duration:v,delay:c||0,easing:h,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 Oe(r,e,t,n,a,i){pS("update",r,e,t,n,a,i)}function Ke(r,e,t,n,a,i){pS("enter",r,e,t,n,a,i)}function Gs(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 ai(r,e,t,n,a,i){Gs(r)||pS("leave",r,e,t,n,a,i)}function Kw(r,e,t,n){r.removeTextContent(),r.removeTextGuideLine(),ai(r,{style:{opacity:0}},e,t,n)}function na(r,e,t){function n(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(a){a.isGroup||Kw(a,e,t,n)}):Kw(r,e,t,n)}function $r(r){b2(r).oldStyle=r.style}function lG(r){return b2(r).oldStyle}var i0={},de=["x","y"],lt=["width","height"],C2=0,T2=1,Tl=2;function uG(r){return Ae.extend(r)}var fG=z5;function vG(r,e){return fG(r,e)}function on(r,e){i0[r]=e}function hh(r){if(i0.hasOwnProperty(r))return i0[r]}function Qu(r,e,t,n){var a=g2(r,e);return t&&(n==="center"&&(t=M2(t,a.getBoundingRect())),D2(a,t)),a}function A2(r,e,t){var n=new Rt({style:{image:r,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(a){if(t==="center"){var i={width:a.width,height:a.height};n.setStyle(M2(e,i))}}});return n}function M2(r,e){var t=e.width/e.height,n=r.height*t,a;n<=r.width?a=r.height:(n=r.width,a=n/t);var i=r.x+r.width/2,o=r.y+r.height/2;return{x:i-n/2,y:o-a/2,width:n,height:a}}var Or=F5;function D2(r,e){if(r.applyTransform){var t=r.getBoundingRect(),n=t.calculateTransform(e);r.applyTransform(n)}}function tl(r,e){return Pd(r,r,{lineWidth:e}),r}function cG(r,e){return jL(r,r,e),r}var Oc=Sr;function Hs(r,e){for(var t=yl([]);r&&r!==e;)Vr(t,r.getLocalTransform(),t),r=r.parent;return t}function Qr(r,e,t){return e&&!Wt(e)&&(e=Un.getLocalTransform(e)),t&&(e=Gr([],e)),st([],r,e)}function Bd(r,e,t){var n=e[4]===0||e[5]===0||e[0]===0?1:it(2*e[4]/e[0]),a=e[4]===0||e[5]===0||e[2]===0?1:it(2*e[4]/e[2]),i=[r==="left"?-n:r==="right"?n:0,r==="top"?-a:r==="bottom"?a:0];return i=Qr(i,e,t),it(i[0])>it(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function Jw(r){return!r.isGroup}function hG(r){return r.shape!=null}function Nf(r,e,t){if(!r||!e)return;function n(o){var s={};return o.traverse(function(l){Jw(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return hG(o)&&(s.shape=ae(o.shape)),s}var i=n(r);e.traverse(function(o){if(Jw(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),Oe(o,l,t,ve(o).dataIndex)}}})}function I2(r,e){return $(r,function(t){var n=t[0];n=we(n,e.x),n=He(n,e.x+e.width);var a=t[1];return a=we(a,e.y),a=He(a,e.y+e.height),[n,a]})}function dG(r,e){var t=we(r.x,e.x),n=He(r.x+r.width,e.x+e.width),a=we(r.y,e.y),i=He(r.y+r.height,e.y+e.height);if(n>=t&&i>=a)return{x:t,y:a,width:n-t,height:i-a}}function Bf(r,e,t){var n=G({rectHover:!0},e),a=n.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(a.image=r.slice(8),le(a,t),new Rt(n)):Qu(r.replace("path://",""),n,t,"center")}function _u(r,e,t,n,a){for(var i=0,o=a[a.length-1];i<a.length;i++){var s=a[i];if(L2(r,e,t,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function L2(r,e,t,n,a,i,o,s){var l=t-r,u=n-e,f=o-a,v=s-i,c=og(f,v,l,u);if(pG(c))return!1;var h=r-a,d=e-i,p=og(h,d,l,u)/c;if(p<0||p>1)return!1;var g=og(h,d,f,v)/c;return!(g<0||g>1)}function og(r,e,t,n){return r*n-t*e}function pG(r){return r<=1e-6&&r>=-1e-6}function To(r,e,t,n,a){return e==null||(Ee(e)?rt[0]=rt[1]=rt[2]=rt[3]=e:(rt[0]=e[0],rt[1]=e[1],rt[2]=e[2],rt[3]=e[3]),n&&(rt[0]=we(0,rt[0]),rt[1]=we(0,rt[1]),rt[2]=we(0,rt[2]),rt[3]=we(0,rt[3])),t&&(rt[0]=-rt[0],rt[1]=-rt[1],rt[2]=-rt[2],rt[3]=-rt[3]),Qw(r,rt,"x","width",3,1,a&&a[0]||0),Qw(r,rt,"y","height",0,2,a&&a[1]||0)),r}var rt=[0,0,0,0];function Qw(r,e,t,n,a,i,o){var s=e[i]+e[a],l=r[n];r[n]+=s,o=we(0,He(o,l)),r[n]<o?(r[n]=o,r[t]+=e[a]>=0?-e[a]:e[i]>=0?l+e[i]:it(s)>1e-8?(l-o)*e[a]/s:0):r[t]-=e[a]}function xa(r){var e=r.itemTooltipOption,t=r.componentModel,n=r.itemName,a=Z(e)?{formatter:e}:e,i=t.mainType,o=t.componentIndex,s={componentType:i,name:n,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&M(De(l),function(f){J(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=ve(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:n,option:le({content:n,encodeHTMLContent:!0,formatterParams:s},a)}}function o0(r,e){var t;r.isGroup&&(t=e(r)),t||r.traverse(e)}function di(r,e){if(r)if(U(r))for(var t=0;t<r.length;t++)o0(r[t],e);else o0(r,e)}function gS(r){return!r||it(r[1])<_v&&it(r[2])<_v||it(r[0])<_v&&it(r[3])<_v}var _v=1e-5;function ef(r,e){return r?se.copy(r,e):e.clone()}function yS(r,e){return e?_o(r||nt(),e):void 0}function Ao(r){return{z:r.get("z")||0,zlevel:r.get("zlevel")||0}}function P2(r){var e=-1/0,t=1/0;o0(r,function(i){n(i),n(i.getTextContent()),n(i.getTextGuideLine())});function n(i){if(!(!i||i.isGroup)){var o=i.currentStates;if(o.length)for(var s=0;s<o.length;s++)a(i.states[o[s]]);a(i)}}function a(i){if(i){var o=i.z2;o>e&&(e=o),o<t&&(t=o)}}return t>e&&(t=e=0),{min:t,max:e}}function Vd(r,e,t){R2(r,e,t,-1/0)}function R2(r,e,t,n){if(r.ignoreModelZ)return n;var a=r.getTextContent(),i=r.getTextGuideLine(),o=r.isGroup;if(o)for(var s=r.childrenRef(),l=0;l<s.length;l++)n=we(R2(s[l],e,t,n),n);else r.z=e,r.zlevel=t,n=we(r.z2||0,n);if(a&&(a.z=e,a.zlevel=t,isFinite(n)&&(a.z2=n+2)),i){var u=r.textGuideLineConfig;i.z=e,i.zlevel=t,isFinite(n)&&(i.z2=n+(u&&u.showAbove?1:-1))}return n}function mS(r){return r.animation={duration:0},r}function zd(r,e){return e?_o(Su.transform,e):yl(Su.transform),Su.decomposeTransform(),On(r,Su),r}var Su=new Un;Su.transform=nt();function s0(r){var e=r.getZr().painter;return e.getType()==="canvas"?e:null}on("circle",Sa);on("ellipse",kd);on("sector",Xt);on("ring",kf);on("polygon",Zt);on("polyline",Bt);on("rect",be);on("line",dt);on("bezierCurve",Of);on("arc",Od);const Xo=Object.freeze(Object.defineProperty({__proto__:null,Arc:Od,BezierCurve:Of,BoundingRect:se,Circle:Sa,CompoundPath:Nd,Ellipse:kd,Group:oe,HOVER_LAYER_FOR_INCREMENTAL:Tl,HOVER_LAYER_FROM_THRESHOLD:T2,HOVER_LAYER_NO:C2,Image:Rt,IncrementalDisplayable:sG,Line:dt,LinearGradient:bl,OrientedBoundingRect:x2,Path:Ae,Point:ue,Polygon:Zt,Polyline:Bt,RadialGradient:S2,Rect:be,Ring:kf,Sector:Xt,Text:Re,WH:lt,XY:de,applyTransform:Qr,calcZ2Range:P2,clipPointsByRect:I2,clipRectByRect:dG,createIcon:Bf,decomposeTransform:zd,ensureCopyRect:ef,ensureCopyTransform:yS,expandOrShrinkRect:To,extendPath:vG,extendShape:uG,getCurrentCanvasPainter:s0,getShapeClass:hh,getTransform:Hs,groupTransition:Nf,initProps:Ke,isBoundingRectAxisAligned:gS,isElementRemoved:Gs,lineLineIntersect:L2,linePolygonIntersect:_u,makeImage:A2,makePath:Qu,mergePath:Or,payloadDisableAnimation:mS,registerShape:on,removeElement:ai,removeElementWithFadeOut:na,resizePath:D2,retrieveZInfo:Ao,setTooltipConfig:xa,subPixelOptimize:Oc,subPixelOptimizeLine:tl,subPixelOptimizeRect:cG,transformDirection:Bd,traverseElements:di,traverseUpdateZ:Vd,updateProps:Oe},Symbol.toStringTag,{value:"Module"}));var Fd={};function E2(r,e){for(var t=0;t<ir.length;t++){var n=ir[t],a=e[n],i=r.ensureState(n);i.style=i.style||{},i.style.text=a}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:e.normal}),r.useStates(o,!0)}function l0(r,e,t){var n=r.labelFetcher,a=r.labelDataIndex,i=r.labelDimIndex,o=e.normal,s;n&&(s=n.getFormattedLabel(a,"normal",null,i,o&&o.get("formatter"),t!=null?{interpolatedValue:t}:null)),s==null&&(s=ie(r.defaultText)?r.defaultText(a,r,t):r.defaultText);for(var l={normal:s},u=0;u<ir.length;u++){var f=ir[u],v=e[f];l[f]=Q(n?n.getFormattedLabel(a,f,null,i,v&&v.get("formatter")):null,s)}return l}function Mt(r,e,t,n){t=t||Fd;for(var a=r instanceof Re,i=!1,o=0;o<Ku.length;o++){var s=e[Ku[o]];if(s&&s.getShallow("show")){i=!0;break}}var l=a?r:r.getTextContent();if(i){a||(l||(l=new Re,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=l0(t,e),f=e.normal,v=!!f.getShallow("show"),c=Ze(f,n&&n.normal,t,!1,!a);c.text=u.normal,a||r.setTextConfig(dh(f,t,!1));for(var o=0;o<ir.length;o++){var h=ir[o],s=e[h];if(s){var d=l.ensureState(h),p=!!Q(s.getShallow("show"),v);if(p!==v&&(d.ignore=!p),d.style=Ze(s,n&&n[h],t,!0,!a),d.style.text=u[h],!a){var g=r.ensureState(h);g.textConfig=dh(s,t,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(c.x=l.style.x),l.style.y!=null&&(c.y=l.style.y),l.ignore=!v,l.useStyle(c),l.dirty(),t.enableTextSetter&&(Al(l).setLabelText=function(y){var m=l0(t,e,y);E2(l,m)})}else l&&(l.ignore=!0);r.dirty()}function St(r,e){e=e||"label";for(var t={normal:r.getModel(e)},n=0;n<ir.length;n++){var a=ir[n];t[a]=r.getModel([a,e])}return t}function Ze(r,e,t,n,a){var i={};return gG(i,r,t,n,a),e&&G(i,e),i}function dh(r,e,t){e=e||{};var n={},a,i=r.getShallow("rotate"),o=Q(r.getShallow("distance"),t?null:5),s=r.getShallow("offset");return a=r.getShallow("position")||(t?null:"inside"),a==="outside"&&(a=e.defaultOutsidePosition||"top"),a!=null&&(n.position=a),s!=null&&(n.offset=s),i!=null&&(i*=Math.PI/180,n.rotation=i),o!=null&&(n.distance=o),n.outsideFill=r.get("color")==="inherit"?e.inheritColor||null:"auto",e.autoOverflowArea!=null&&(n.autoOverflowArea=e.autoOverflowArea),e.layoutRect!=null&&(n.layoutRect=e.layoutRect),n}function gG(r,e,t,n,a){t=t||Fd;var i=e.ecModel,o=i&&i.option.textStyle,s=yG(e),l;if(s){l={};var u="richInheritPlainLabel",f=Q(e.get(u),i?i.get(u):void 0);for(var v in s)if(s.hasOwnProperty(v)){var c=e.getModel(["rich",v]);nb(l[v]={},c,o,e,f,t,n,a,!1,!0)}}l&&(r.rich=l);var h=e.get("overflow");h&&(r.overflow=h);var d=e.get("lineOverflow");d&&(r.lineOverflow=d);var p=r,g=e.get("minMargin");if(g!=null)g=Ee(g)?g/2:0,p.margin=[g,g,g,g],p.__marginType=ks.minMargin;else{var y=e.get("textMargin");y!=null&&(p.margin=md(y),p.__marginType=ks.textMargin)}nb(r,e,o,null,null,t,n,a,!0,!1)}function yG(r){for(var e;r&&r!==r.ecModel;){var t=(r.option||Fd).rich;if(t){e=e||{};for(var n=De(t),a=0;a<n.length;a++){var i=n[a];e[i]=1}}r=r.parentModel}return e}var eb=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],tb=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],rb=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function nb(r,e,t,n,a,i,o,s,l,u){t=!o&&t||Fd;var f=i&&i.inheritColor,v=e.getShallow("color"),c=e.getShallow("textBorderColor"),h=Q(e.getShallow("opacity"),t.opacity);(v==="inherit"||v==="auto")&&(f?v=f:v=null),(c==="inherit"||c==="auto")&&(f?c=f:c=null),s||(v=v||t.color,c=c||t.textBorderColor),v!=null&&(r.fill=v),c!=null&&(r.stroke=c);var d=Q(e.getShallow("textBorderWidth"),t.textBorderWidth);d!=null&&(r.lineWidth=d);var p=Q(e.getShallow("textBorderType"),t.textBorderType);p!=null&&(r.lineDash=p);var g=Q(e.getShallow("textBorderDashOffset"),t.textBorderDashOffset);g!=null&&(r.lineDashOffset=g),!o&&h==null&&!u&&(h=i&&i.defaultOpacity),h!=null&&(r.opacity=h),!o&&!s&&r.fill==null&&i.inheritColor&&(r.fill=i.inheritColor);for(var y=0;y<eb.length;y++){var m=eb[y],_=a!==!1&&n?xr(e.getShallow(m),n.getShallow(m),t[m]):Q(e.getShallow(m),t[m]);_!=null&&(r[m]=_)}for(var y=0;y<tb.length;y++){var m=tb[y],_=e.getShallow(m);_!=null&&(r[m]=_)}if(r.verticalAlign==null){var S=e.getShallow("baseline");S!=null&&(r.verticalAlign=S)}if(!l||!i.disableBox){for(var y=0;y<rb.length;y++){var m=rb[y],_=e.getShallow(m);_!=null&&(r[m]=_)}var x=e.getShallow("borderType");x!=null&&(r.borderDash=x),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&f&&(r.backgroundColor=f),(r.borderColor==="auto"||r.borderColor==="inherit")&&f&&(r.borderColor=f)}}function _S(r,e){var t=e&&e.getModel("textStyle");return Br([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 Al=me();function k2(r,e,t,n){if(r){var a=Al(r);a.prevValue=a.value,a.value=t;var i=e.normal;a.valueAnimation=i.get("valueAnimation"),a.valueAnimation&&(a.precision=i.get("precision"),a.defaultInterpolatedText=n,a.statesModels=e)}}function O2(r,e,t,n,a){var i=Al(r);if(!i.valueAnimation||i.prevValue===i.value)return;var o=i.defaultInterpolatedText,s=Q(i.interpolatedValue,i.prevValue),l=i.value;function u(f){var v=BL(t,i.precision,s,l,f);i.interpolatedValue=f===1?null:v;var c=l0({labelDataIndex:e,labelFetcher:a,defaultText:o?o(v):v+""},i.statesModels,v);E2(r,c)}r.percent=0,(i.prevValue==null?Ke:Oe)(r,{percent:1},n,e,null,u)}var ks={minMargin:1,textMargin:2},mG=["textStyle","color"],sg=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],lg=new Re,_G=(function(){function r(){}return r.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(mG):null)},r.prototype.getFont=function(){return _S({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")},n=0;n<sg.length;n++)t[sg[n]]=this.getShallow(sg[n]);return lg.useStyle(t),lg.update(),lg.getBoundingRect()},r})(),N2=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],SG=bo(N2),xG=(function(){function r(){}return r.prototype.getLineStyle=function(e){return SG(this,e)},r})(),B2=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],wG=bo(B2),bG=(function(){function r(){}return r.prototype.getItemStyle=function(e,t){return wG(this,e,t)},r})(),Ie=(function(){function r(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return r.prototype.init=function(e,t,n){},r.prototype.mergeOption=function(e,t){_e(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 n=this.option,a=n==null?n:n[e];if(a==null&&!t){var i=this.parentModel;i&&(a=i.getShallow(e))}return a},r.prototype.getModel=function(e,t){var n=e!=null,a=n?this.parsePath(e):null,i=n?this._doGet(a):this.option;return t=t||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(a)),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(ae(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(!Le.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 n=this.option;if(!e)return n;for(var a=0;a<e.length&&!(e[a]&&(n=n&&typeof n=="object"?n[e[a]]:null,n==null));a++);return n==null&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},r})();iS(Ie);AF(Ie);xt(Ie,xG);xt(Ie,bG);xt(Ie,PF);xt(Ie,_G);var CG=Math.round(Math.random()*10);function Zo(r){return[r||"",CG++].join("_")}function TG(r){var e={};r.registerSubTypeDefaulter=function(t,n){var a=xn(t);e[a.main]=n},r.determineSubType=function(t,n){var a=n.type;if(!a){var i=xn(t).main;r.hasSubTypes(t)&&e[i]&&(a=e[i](n))}return a}}function AG(r,e){r.topologicalTravel=function(i,o,s,l){if(!i.length)return;var u=t(o),f=u.graph,v=u.noEntryList,c={};for(M(i,function(m){c[m]=!0});v.length;){var h=v.pop(),d=f[h],p=!!c[h];p&&(s.call(l,h,d.originalDeps.slice()),delete c[h]),M(d.successor,p?y:g)}M(c,function(){var m="";throw new Error(m)});function g(m){f[m].entryCount--,f[m].entryCount===0&&v.push(m)}function y(m){c[m]=!0,g(m)}};function t(i){var o={},s=[];return M(i,function(l){var u=n(o,l),f=u.originalDeps=e(l),v=a(f,i);u.entryCount=v.length,u.entryCount===0&&s.push(l),M(v,function(c){pe(u.predecessor,c)<0&&u.predecessor.push(c);var h=n(o,c);pe(h.successor,c)<0&&h.successor.push(l)})}),{graph:o,noEntryList:s}}function n(i,o){return i[o]||(i[o]={predecessor:[],successor:[]}),i[o]}function a(i,o){var s=[];return M(i,function(l){pe(o,l)>=0&&s.push(l)}),s}}function pi(r,e){return _e(_e({},r,!0),e,!0)}const MG={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:". "}}}},DG={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 ph="ZH",SS="EN",Us=SS,Nc={},xS={},V2=Le.domSupported?(function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Us).toUpperCase();return r.indexOf(ph)>-1?ph:Us})():Us;function z2(r,e){r=r.toUpperCase(),xS[r]=new Ie(e),Nc[r]=e}function IG(r){if(Z(r)){var e=Nc[r.toUpperCase()]||{};return r===ph||r===SS?ae(e):_e(ae(e),ae(Nc[Us]),!1)}else return _e(ae(r),ae(Nc[Us]),!1)}function u0(r){return xS[r]}function LG(){return xS[Us]}z2(SS,MG);z2(ph,DG);var f0=null;function PG(r){f0||(f0=r)}function vt(){return f0}function F2(r,e){var t=vt(),n=e.breakOption,a=e.breakParsed;return!a&&t&&(a=t.parseAxisBreakOption(n,r)),a}function gh(r){var e=r.brk;return e?e.breaks:[]}function yh(r){var e=r.brk;return e?e.hasBreaks():!1}var wS=1e3,bS=wS*60,Ou=bS*60,Nr=Ou*24,ab=Nr*365,RG={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},Bc={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},EG="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",Sv="{yyyy}-{MM}-{dd}",ib={year:"{yyyy}",month:"{yyyy}-{MM}",day:Sv,hour:Sv+" "+Bc.hour,minute:Sv+" "+Bc.minute,second:Sv+" "+Bc.second,millisecond:EG},yr=["year","month","day","hour","minute","second","millisecond"],kG=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function OG(r){return!Z(r)&&!ie(r)?NG(r):r}function NG(r){r=r||{};var e={},t=!0;return M(yr,function(n){t&&(t=r[n]==null)}),M(yr,function(n,a){var i=r[n];e[n]={};for(var o=null,s=a;s>=0;s--){var l=yr[s],u=fe(i)&&!U(i)?i[l]:i,f=void 0;U(u)?(f=u.slice(),o=f[0]||""):Z(u)?(o=u,f=[o]):(o==null?o=Bc[n]:RG[l].test(o)||(o=e[l][l][0]+" "+o),f=[o],t&&(f[1]="{primary|"+o+"}")),e[n][l]=f}}),e}function Ta(r,e){return r+="","0000".substr(0,e-r.length)+r}function Nu(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 BG(r){return r===Nu(r)}function VG(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Gd(r,e,t,n){var a=Wo(r),i=a[G2(t)](),o=a[CS(t)]()+1,s=Math.floor((o-1)/3)+1,l=a[TS(t)](),u=a["get"+(t?"UTC":"")+"Day"](),f=a[AS(t)](),v=(f-1)%12+1,c=a[MS(t)](),h=a[DS(t)](),d=a[IS(t)](),p=f>=12?"pm":"am",g=p.toUpperCase(),y=n instanceof Ie?n:u0(n||V2)||LG(),m=y.getModel("time"),_=m.get("month"),S=m.get("monthAbbr"),x=m.get("dayOfWeek"),w=m.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,p+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Ta(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,Ta(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Ta(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,w[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Ta(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Ta(v+"",2)).replace(/{h}/g,v+"").replace(/{mm}/g,Ta(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,Ta(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Ta(d,3)).replace(/{S}/g,d+"")}function zG(r,e,t,n,a){var i=null;if(Z(t))i=t;else if(ie(t)){var o={time:r.time,level:r.time?r.time.level:0},s=vt();s&&s.makeAxisLabelFormatterParamBreak(o,r.break),i=t(r.value,e,o)}else{var l=r.time;if(l){var u=t[l.lowerTimeUnit][l.upperTimeUnit];i=u[Math.min(l.level,u.length-1)]||""}else{var f=$s(r.value,a);i=t[f][f][0]}}return Gd(new Date(r.value),i,a,n)}function $s(r,e){var t=Wo(r),n=t[CS(e)]()+1,a=t[TS(e)](),i=t[AS(e)](),o=t[MS(e)](),s=t[DS(e)](),l=t[IS(e)](),u=l===0,f=u&&s===0,v=f&&o===0,c=v&&i===0,h=c&&a===1,d=h&&n===1;return d?"year":h?"month":c?"day":v?"hour":f?"minute":u?"second":"millisecond"}function v0(r,e,t){switch(e){case"year":r[H2(t)](0);case"month":r[U2(t)](1);case"day":r[$2(t)](0);case"hour":r[W2(t)](0);case"minute":r[Y2(t)](0);case"second":r[X2(t)](0)}return r}function G2(r){return r?"getUTCFullYear":"getFullYear"}function CS(r){return r?"getUTCMonth":"getMonth"}function TS(r){return r?"getUTCDate":"getDate"}function AS(r){return r?"getUTCHours":"getHours"}function MS(r){return r?"getUTCMinutes":"getMinutes"}function DS(r){return r?"getUTCSeconds":"getSeconds"}function IS(r){return r?"getUTCMilliseconds":"getMilliseconds"}function FG(r){return r?"setUTCFullYear":"setFullYear"}function H2(r){return r?"setUTCMonth":"setMonth"}function U2(r){return r?"setUTCDate":"setDate"}function $2(r){return r?"setUTCHours":"setHours"}function W2(r){return r?"setUTCMinutes":"setMinutes"}function Y2(r){return r?"setUTCSeconds":"setSeconds"}function X2(r){return r?"setUTCMilliseconds":"setMilliseconds"}function Z2(r){if(!IL(r))return Z(r)?r:"-";var e=(r+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function j2(r,e){return r=(r||"").toLowerCase().replace(/-(.)/g,function(t,n){return n.toUpperCase()}),e&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var Vf=md;function c0(r,e,t){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(f){return f&&Br(f)?f:"-"}function i(f){return Hr(f)}var o=e==="time",s=r instanceof Date;if(o||s){var l=o?Wo(r):r;if(isNaN(+l)){if(s)return"-"}else return Gd(l,n,t)}if(e==="ordinal")return _m(r)?a(r):Ee(r)&&i(r)?r+"":"-";var u=ca(r);return i(u)?Z2(u):_m(r)?a(r):typeof r=="boolean"?r+"":"-"}var ob=["a","b","c","d","e","f","g"],ug=function(r,e){return"{"+r+(e??"")+"}"};function q2(r,e,t){U(e)||(e=[e]);var n=e.length;if(!n)return"";for(var a=e[0].$vars||[],i=0;i<a.length;i++){var o=ob[i];r=r.replace(ug(o),ug(o,0))}for(var s=0;s<n;s++)for(var l=0;l<a.length;l++){var u=e[s][a[l]];r=r.replace(ug(ob[l],s),t?Qt(u):u)}return r}function K2(r,e,t){return M(e,function(n,a){r=r.replace("{"+a+"}",n)}),r}function GG(r,e){var t=Z(r)?{color:r,extraCssText:e}:r||{},n=t.color,a=t.type;e=t.extraCssText;var i=t.renderMode||"html";if(!n)return"";if(i==="html")return a==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Qt(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Qt(n)+";"+(e||"")+'"></span>';var o=t.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function Mo(r,e){return e=e||"transparent",Z(r)?r:fe(r)&&r.colorStops&&(r.colorStops[0]||{}).color||e}function mh(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={},fg={},zf=(function(){function r(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return r.prototype.create=function(e,t){this._nonSeriesBoxMasterList=n(Vc),this._normalMasterList=n(fg);function n(a,i){var o=[];return M(a,function(s,l){var u=s.create(e,t);o=o.concat(u||[])}),o}},r.prototype.update=function(e,t){M(this._normalMasterList,function(n){n.update&&n.update(e,t)})},r.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},r.register=function(e,t){if(e==="matrix"||e==="calendar"){Vc[e]=t;return}fg[e]=t},r.get=function(e){return fg[e]||Vc[e]},r})();function HG(r){return!!Vc[r]}var UG=1,J2=2;function $G(r){Q2.set(r.fullType,{getCoord2:void 0}).getCoord2=r.getCoord2}var Q2=K();function eP(r){var e=r.getShallow("coord",!0),t=UG;if(e==null){var n=Q2.get(r.type);n&&n.getCoord2&&(t=J2,e=n.getCoord2(r))}return{coord:e,from:t}}var Ws=0,zc=1,tP=2;function rP(r,e){var t=r.getShallow("coordinateSystem"),n=r.getShallow("coordinateSystemUsage",!0),a=Ws;if(t){var i=r.mainType==="series";n==null&&(n=i?"data":"box"),n==="data"?(a=zc,i||(a=Ws)):n==="box"&&(a=tP,!i&&!HG(t)&&(a=Ws))}return{coordSysType:t,kind:a}}function Ff(r){var e=r.targetModel,t=r.coordSysType,n=r.coordSysProvider,a=r.isDefaultDataCoordSys;r.allowNotFound;var i=rP(e),o=i.kind,s=i.coordSysType;if(a&&o!==zc&&(o=zc,s=t),o===Ws||s!==t)return Ws;var l=n(t,e);return l?(o===zc?e.coordinateSystem=l:e.boxCoordinateSystem=l,o):Ws}var nP=function(r,e){var t=e.getReferringComponents(r,at).models[0];return t&&t.coordinateSystem},Fc=M,aP=["left","right","top","bottom","width","height"],oo=[["width","left","right"],["height","top","bottom"]];function LS(r,e,t,n,a){var i=0,o=0;n==null&&(n=1/0),a==null&&(a=1/0);var s=0;e.eachChild(function(l,u){var f=l.getBoundingRect(),v=e.childAt(u+1),c=v&&v.getBoundingRect(),h,d;if(r==="horizontal"){var p=f.width+(c?-c.x+f.x:0);h=i+p,h>n||l.newline?(i=0,h=p,o+=s+t,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(c?-c.y+f.y:0);d=o+g,d>a||l.newline?(i+=s+t,o=0,d=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),r==="horizontal"?i=h+t:o=d+t)})}var go=LS;xe(LS,"vertical");xe(LS,"horizontal");function iP(r,e){return{left:r.getShallow("left",e),top:r.getShallow("top",e),right:r.getShallow("right",e),bottom:r.getShallow("bottom",e),width:r.getShallow("width",e),height:r.getShallow("height",e)}}function WG(r,e){var t=bt(r,e,{enableLayoutOnlyByCenter:!0}),n=r.getBoxLayoutParams(),a,i;if(t.type===xu.point)i=t.refPoint,a=tt(n,{width:e.getWidth(),height:e.getHeight()});else{var o=r.get("center"),s=U(o)?o:[o,o];a=tt(n,t.refContainer),i=t.boxCoordFrom===J2?t.refPoint:[j(s[0],a.width)+a.x,j(s[1],a.height)+a.y]}return{viewRect:a,center:i}}function oP(r,e){var t=WG(r,e),n=t.viewRect,a=t.center,i=r.get("radius");U(i)||(i=[0,i]);var o=j(n.width,e.getWidth()),s=j(n.height,e.getHeight()),l=Math.min(o,s),u=j(i[0],l/2),f=j(i[1],l/2);return{cx:a[0],cy:a[1],r0:u,r:f,viewRect:n}}function tt(r,e,t){t=Vf(t||0);var n=e.width,a=e.height,i=j(r.left,n),o=j(r.top,a),s=j(r.right,n),l=j(r.bottom,a),u=j(r.width,n),f=j(r.height,a),v=t[2]+t[0],c=t[1]+t[3],h=r.aspect;switch(isNaN(u)&&(u=n-s-c-i),isNaN(f)&&(f=a-l-v-o),h!=null&&(isNaN(u)&&isNaN(f)&&(h>n/a?u=n*.8:f=a*.8),isNaN(u)&&(u=h*f),isNaN(f)&&(f=u/h)),isNaN(i)&&(i=n-s-u-c),isNaN(o)&&(o=a-l-f-v),r.left||r.right){case"center":i=n/2-u/2-t[3];break;case"right":i=n-u-c;break}switch(r.top||r.bottom){case"middle":case"center":o=a/2-f/2-t[0];break;case"bottom":o=a-f-v;break}i=i||0,o=o||0,isNaN(u)&&(u=n-c-i-(s||0)),isNaN(f)&&(f=a-v-o-(l||0));var d=new se((e.x||0)+i+t[3],(e.y||0)+o+t[0],u,f);return d.margin=t,d}function sP(r,e,t){var n=r.getShallow("preserveAspect",!0);if(!n)return e;var a=e.width/e.height;if(Math.abs(Math.atan(t)-Math.atan(a))<1e-9)return e;var i=r.getShallow("preserveAspectAlign",!0),o=r.getShallow("preserveAspectVerticalAlign",!0),s={width:e.width,height:e.height},l=n==="cover";return a>t&&!l||a<t&&l?(s.width=e.height*t,i==="left"?s.left=0:i==="right"?s.right=0:s.left="center"):(s.height=e.width/t,o==="top"?s.top=0:o==="bottom"?s.bottom=0:s.top="middle"),tt(s,e)}var xu={rect:1,point:2};function bt(r,e,t){var n,a,i,o=r.boxCoordinateSystem,s;if(o){var l=eP(r),u=l.coord,f=l.from;if(o.dataToLayout){i=xu.rect,s=f;var v=o.dataToLayout(u);n=v.contentRect||v.rect}else t&&t.enableLayoutOnlyByCenter&&o.dataToPoint&&(i=xu.point,s=f,a=o.dataToPoint(u))}return i==null&&(i=xu.rect),i===xu.rect&&(n||(n={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),a=[n.x+n.width/2,n.y+n.height/2]),{type:i,refContainer:n,refPoint:a,boxCoordFrom:s}}function Hd(r,e,t,n,a,i){var o=!a||!a.hv||a.hv[0],s=!a||!a.hv||a.hv[1],l=a&&a.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 se(0,0,+e.width||0,+e.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var f=r.getLocalTransform();u=u.clone(),u.applyTransform(f)}var v=tt(le({width:u.width,height:u.height},e),t,n),c=o?v.x-u.x:0,h=s?v.y-u.y:0;return l==="raw"?(i.x=c,i.y=h):(i.x+=c,i.y+=h),i===r&&r.markRedraw(),!0}function YG(r,e){return r[oo[e][0]]!=null||r[oo[e][1]]!=null&&r[oo[e][2]]!=null}function tf(r){var e=r.layoutMode||r.constructor.layoutMode;return fe(e)?e:e?{type:e}:null}function zn(r,e,t){var n=t&&t.ignoreSize;!U(n)&&(n=[n,n]);var a=o(oo[0],0),i=o(oo[1],1);l(oo[0],r,a),l(oo[1],r,i);function o(u,f){var v={},c=0,h={},d=0,p=2;if(Fc(u,function(m){h[m]=r[m]}),Fc(u,function(m){J(e,m)&&(v[m]=h[m]=e[m]),s(v,m)&&c++,s(h,m)&&d++}),n[f])return s(e,u[1])?h[u[2]]=null:s(e,u[2])&&(h[u[1]]=null),h;if(d===p||!c)return h;if(c>=p)return v;for(var g=0;g<u.length;g++){var y=u[g];if(!J(v,y)&&J(r,y)){v[y]=r[y];break}}return v}function s(u,f){return u[f]!=null&&u[f]!=="auto"}function l(u,f,v){Fc(u,function(c){f[c]=v[c]})}}function jo(r){return lP({},r)}function lP(r,e){return e&&r&&Fc(aP,function(t){J(e,t)&&(r[t]=e[t])}),r}var XG=me(),Me=(function(r){B(e,r);function e(t,n,a){var i=r.call(this,t,n,a)||this;return i.uid=Zo("ec_cpt_model"),i}return e.prototype.init=function(t,n,a){this.mergeDefaultAndTheme(t,a)},e.prototype.mergeDefaultAndTheme=function(t,n){var a=tf(this),i=a?jo(t):{},o=n.getTheme();_e(t,o.get(this.mainType)),_e(t,this.getDefaultOption()),a&&zn(t,i,a)},e.prototype.mergeOption=function(t,n){_e(this.option,t,!0);var a=tf(this);a&&zn(this.option,t,a)},e.prototype.optionUpdated=function(t,n){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!bF(t))return t.defaultOption;var n=XG(this);if(!n.defaultOption){for(var a=[],i=t;i;){var o=i.prototype.defaultOption;o&&a.push(o),i=i.superClass}for(var s={},l=a.length-1;l>=0;l--)s=_e(s,a[l],!0);n.defaultOption=s}return n.defaultOption},e.prototype.getReferringComponents=function(t,n){var a=t+"Index",i=t+"Id";return _l(this.ecModel,t,{index:this.get(a,!0),id:this.get(i,!0)},n)},e.prototype.getBoxLayoutParams=function(){return iP(this,!1)},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})(Ie);HL(Me,Ie);Ad(Me);TG(Me);AG(Me,ZG);function ZG(r){var e=[];return M(Me.getClassesByMainType(r),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=$(e,function(t){return xn(t).main}),r!=="dataset"&&pe(e,"dataset")<=0&&e.unshift("dataset"),e}var N={color:{},darkColor:{},size:{}},ut=N.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};G(ut,{primary:ut.neutral80,secondary:ut.neutral70,tertiary:ut.neutral60,quaternary:ut.neutral50,disabled:ut.neutral20,border:ut.neutral30,borderTint:ut.neutral20,borderShade:ut.neutral40,background:ut.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:ut.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:ut.neutral70,axisLineTint:ut.neutral40,axisTick:ut.neutral70,axisTickMinor:ut.neutral60,axisLabel:ut.neutral70,axisSplitLine:ut.neutral15,axisMinorSplitLine:ut.neutral05});for(var Ei in ut)if(ut.hasOwnProperty(Ei)){var sb=ut[Ei];Ei==="theme"?N.darkColor.theme=ut.theme.slice():Ei==="highlight"?N.darkColor.highlight="rgba(255,231,130,0.4)":Ei.indexOf("accent")===0?N.darkColor[Ei]=ja(sb,null,function(r){return r*.5},function(r){return Math.min(1,1.3-r)}):N.darkColor[Ei]=ja(sb,null,function(r){return r*.9},function(r){return 1-Math.pow(r,1.5)})}N.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var uP="";typeof navigator<"u"&&(uP=navigator.platform||"");var fs="rgba(0, 0, 0, 0.2)",fP=N.color.theme[0],jG=ja(fP,null,null,.9);const vP={darkMode:"auto",colorBy:"series",color:N.color.theme,gradientColor:[jG,fP],aria:{decal:{decals:[{color:fs,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:fs,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:fs,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:fs,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:fs,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:fs,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:uP.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 Et={Must:1,Might:2,Not:3},cP=me();function qG(r){cP(r).datasetMap=K()}function hP(r,e,t){var n={},a=RS(e);if(!a||!r)return n;var i=[],o=[],s=e.ecModel,l=cP(s).datasetMap,u=a.uid+"_"+t.seriesLayoutBy,f,v;r=r.slice(),M(r,function(p,g){var y=fe(p)?p:r[g]={name:p};y.type==="ordinal"&&f==null&&(f=g,v=d(y)),n[y.name]=[]});var c=l.get(u)||l.set(u,{categoryWayDim:v,valueWayDim:0});M(r,function(p,g){var y=p.name,m=d(p);if(f==null){var _=c.valueWayDim;h(n[y],_,m),h(o,_,m),c.valueWayDim+=m}else if(f===g)h(n[y],0,m),h(i,0,m);else{var _=c.categoryWayDim;h(n[y],_,m),h(o,_,m),c.categoryWayDim+=m}});function h(p,g,y){for(var m=0;m<y;m++)p.push(g+m)}function d(p){var g=p.dimsDef;return g?g.length:1}return i.length&&(n.itemName=i),o.length&&(n.seriesName=o),n}function PS(r,e,t){var n={},a=RS(r);if(!a)return n;var i=e.sourceFormat,o=e.dimensionsDefine,s;(i===Cr||i===an)&&M(o,function(f,v){(fe(f)?f.name:f)==="name"&&(s=v)});var l=(function(){for(var f={},v={},c=[],h=0,d=Math.min(5,t);h<d;h++){var p=pP(e.data,i,e.seriesLayoutBy,o,e.startIndex,h);c.push(p);var g=p===Et.Not;if(g&&f.v==null&&h!==s&&(f.v=h),(f.n==null||f.n===f.v||!g&&c[f.n]===Et.Not)&&(f.n=h),y(f)&&c[f.n]!==Et.Not)return f;g||(p===Et.Might&&v.v==null&&h!==s&&(v.v=h),(v.n==null||v.n===v.v)&&(v.n=h))}function y(m){return m.v!=null&&m.n!=null}return y(f)?f:y(v)?v:null})();if(l){n.value=[l.v];var u=s??l.n;n.itemName=[u],n.seriesName=[u]}return n}function RS(r){var e=r.get("data",!0);if(!e)return _l(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},at).models[0]}function KG(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:_l(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},at).models}function dP(r,e){return pP(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,e)}function pP(r,e,t,n,a,i){var o,s=5;if(dr(r))return Et.Not;var l,u;if(n){var f=n[i];fe(f)?(l=f.name,u=f.type):Z(f)&&(l=f)}if(u!=null)return u==="ordinal"?Et.Must:Et.Not;if(e===Pt){var v=r;if(t===Yo){for(var c=v[i],h=0;h<(c||[]).length&&h<s;h++)if((o=S(c[a+h]))!=null)return o}else for(var h=0;h<v.length&&h<s;h++){var d=v[a+h];if(d&&(o=S(d[i]))!=null)return o}}else if(e===Cr){var p=r;if(!l)return Et.Not;for(var h=0;h<p.length&&h<s;h++){var g=p[h];if(g&&(o=S(g[l]))!=null)return o}}else if(e===an){var y=r;if(!l)return Et.Not;var c=y[l];if(!c||dr(c))return Et.Not;for(var h=0;h<c.length&&h<s;h++)if((o=S(c[h]))!=null)return o}else if(e===br)for(var m=r,h=0;h<m.length&&h<s;h++){var g=m[h],_=ml(g);if(!U(_))return Et.Not;if((o=S(_[i]))!=null)return o}function S(x){var w=Z(x);if(x!=null&&isFinite(Number(x))&&x!=="")return w?Et.Might:Et.Not;if(w&&x!=="-")return Et.Must}return Et.Not}var h0=K();function JG(r,e){Yt(h0.get(r)==null&&e),h0.set(r,e)}function QG(r,e,t){var n=h0.get(e);if(!n)return t;var a=n(r);return a?t.concat(a):t}var lb=me(),e3=me(),ES=(function(){function r(){}return r.prototype.getColorFromPalette=function(e,t,n){var a=Ye(this.get("color",!0)),i=this.get("colorLayer",!0);return gP(this,lb,a,i,e,t,n)},r.prototype.clearColorPalette=function(){r3(this,lb)},r})();function d0(r,e,t,n){var a=Ye(r.get(["aria","decal","decals"]));return gP(r,e3,a,null,e,t,n)}function t3(r,e){for(var t=r.length,n=0;n<t;n++)if(r[n].length>e)return r[n];return r[t-1]}function gP(r,e,t,n,a,i,o){i=i||r;var s=e(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var f=o==null||!n?t:t3(n,o);if(f=f||t,!(!f||!f.length)){var v=f[l];return a&&(u[a]=v),s.paletteIdx=(l+1)%f.length,v}}function r3(r,e){e(r).paletteIdx=0,e(r).paletteNameMap={}}var xv,Fl,ub,fb="\0_ec_inner",n3=1,kS=(function(r){B(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t,n,a,i,o,s){i=i||{},this.option=null,this._theme=new Ie(i),this._locale=new Ie(o),this._optionManager=s},e.prototype.setOption=function(t,n,a){var i=hb(n);this._optionManager.setOption(t,a,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,n){return this._resetOption(t,hb(n))},e.prototype._resetOption=function(t,n){var a=!1,i=this._optionManager;if(!t||t==="recreate"){var o=i.mountOption(t==="recreate");!this.option||t==="recreate"?ub(this,o):(this.restoreData(),this._mergeOption(o,n)),a=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,n))}if(!t||t==="recreate"||t==="media"){var l=i.getMediaOption(this);l.length&&M(l,function(u){a=!0,this._mergeOption(u,n)},this)}return a},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,n){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=K(),u=n&&n.replaceMergeMainTypeMap;qG(this),M(t,function(v,c){v!=null&&(Me.hasClass(c)?c&&(s.push(c),l.set(c,!0)):a[c]=a[c]==null?ae(v):_e(a[c],v,!0))}),u&&u.each(function(v,c){Me.hasClass(c)&&!l.get(c)&&(s.push(c),l.set(c,!0))}),Me.topologicalTravel(s,Me.getAllClassMainTypes(),f,this);function f(v){var c=QG(this,v,Ye(t[v])),h=i.get(v),d=h?u&&u.get(v)?"replaceMerge":"normalMerge":"replaceAll",p=kL(h,c,d);uF(p,v,Me),a[v]=null,i.set(v,null),o.set(v,0);var g=[],y=[],m=0,_;M(p,function(S,x){var w=S.existing,b=S.newOption;if(!b)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var T=v==="series",C=Me.getClass(v,S.keyInfo.subType,!T);if(!C)return;if(v==="tooltip"){if(_)return;_=!0}if(w&&w.constructor===C)w.name=S.keyInfo.name,w.mergeOption(b,this),w.optionUpdated(b,!1);else{var A=G({componentIndex:x},S.keyInfo);w=new C(b,this,this,A),G(w,A),S.brandNew&&(w.__requireNewView=!0),w.init(b,this,this),w.optionUpdated(null,!0)}}w?(g.push(w.option),y.push(w),m++):(g.push(void 0),y.push(void 0))},this),a[v]=g,i.set(v,y),o.set(v,m),v==="series"&&xv(this)}this._seriesIndices||xv(this)},e.prototype.getOption=function(){var t=ae(this.option);return M(t,function(n,a){if(Me.hasClass(a)){for(var i=Ye(n),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!qu(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,t[a]=i}}),delete t[fb],t},e.prototype.setTheme=function(t){this._theme=new Ie(t),this._resetOption("recreate",null)},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,n){var a=this._componentsMap.get(t);if(a){var i=a[n||0];if(i)return i;if(n==null){for(var o=0;o<a.length;o++)if(a[o])return a[o]}}},e.prototype.queryComponents=function(t){var n=t.mainType;if(!n)return[];var a=t.index,i=t.id,o=t.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return a!=null?(l=[],M(Ye(a),function(u){s[u]&&l.push(s[u])})):i!=null?l=vb("id",i,s):o!=null?l=vb("name",o,s):l=Fe(s,function(u){return!!u}),cb(l,t)},e.prototype.findComponents=function(t){var n=t.query,a=t.mainType,i=s(n),o=i?this.queryComponents(i):Fe(this._componentsMap.get(a),function(u){return!!u});return l(cb(o,t));function s(u){var f=a+"Index",v=a+"Id",c=a+"Name";return u&&(u[f]!=null||u[v]!=null||u[c]!=null)?{mainType:a,index:u[f],id:u[v],name:u[c]}:null}function l(u){return t.filter?Fe(u,t.filter):u}},e.prototype.eachComponent=function(t,n,a){var i=this._componentsMap;if(ie(t)){var o=n,s=t;i.each(function(v,c){for(var h=0;v&&h<v.length;h++){var d=v[h];d&&s.call(o,c,d,d.componentIndex)}})}else for(var l=Z(t)?i.get(t):fe(t)?this.findComponents(t):null,u=0;l&&u<l.length;u++){var f=l[u];f&&n.call(a,f,f.componentIndex)}},e.prototype.getSeriesByName=function(t){var n=mt(t,null);return Fe(this._componentsMap.get("series"),function(a){return!!a&&n!=null&&a.name===n})},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return Fe(this._componentsMap.get("series"),function(n){return!!n&&n.subType===t})},e.prototype.getSeries=function(){return Fe(this._componentsMap.get("series"),function(t){return!!t})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,n){Fl(this),M(this._seriesIndices,function(a){var i=this._componentsMap.get("series")[a];t.call(n,i,a)},this)},e.prototype.eachRawSeries=function(t,n){M(this._componentsMap.get("series"),function(a){a&&t.call(n,a,a.componentIndex)})},e.prototype.eachSeriesByType=function(t,n,a){Fl(this),M(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===t&&n.call(a,o,i)},this)},e.prototype.eachRawSeriesByType=function(t,n,a){return M(this.getSeriesByType(t),n,a)},e.prototype.isSeriesFiltered=function(t){return Fl(this),this._seriesIndicesMap.get(t.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,n){Fl(this);var a=[];M(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];t.call(n,o,i)&&a.push(i)},this),this._seriesIndices=a,this._seriesIndicesMap=K(a)},e.prototype.restoreData=function(t){xv(this);var n=this._componentsMap,a=[];n.each(function(i,o){Me.hasClass(o)&&a.push(o)}),Me.topologicalTravel(a,Me.getAllClassMainTypes(),function(i){M(n.get(i),function(o){o&&(i!=="series"||!a3(o,t))&&o.restoreData()})})},e.internalField=(function(){xv=function(t){var n=t._seriesIndices=[];M(t._componentsMap.get("series"),function(a){a&&n.push(a.componentIndex)}),t._seriesIndicesMap=K(n)},Fl=function(t){},ub=function(t,n){t.option={},t.option[fb]=n3,t._componentsMap=K({series:[]}),t._componentsCount=K();var a=n.aria;fe(a)&&a.enabled==null&&(a.enabled=!0),i3(n,t._theme.option),_e(n,vP,!1),t._mergeOption(n,null)}})(),e})(Ie);function a3(r,e){if(e){var t=e.seriesIndex,n=e.seriesId,a=e.seriesName;return t!=null&&r.componentIndex!==t||n!=null&&r.id!==n||a!=null&&r.name!==a}}function i3(r,e){var t=r.color&&!r.colorLayer;M(e,function(n,a){a==="colorLayer"&&t||a==="color"&&r.color||Me.hasClass(a)||(typeof n=="object"?r[a]=r[a]?_e(r[a],n,!1):ae(n):r[a]==null&&(r[a]=n))})}function vb(r,e,t){if(U(e)){var n=K();return M(e,function(i){if(i!=null){var o=mt(i,null);o!=null&&n.set(i,!0)}}),Fe(t,function(i){return i&&n.get(i[r])})}else{var a=mt(e,null);return Fe(t,function(i){return i&&a!=null&&i[r]===a})}}function cb(r,e){return e.hasOwnProperty("subType")?Fe(r,function(t){return t&&t.subType===e.subType}):r}function hb(r){var e=K();return r&&M(Ye(r.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}xt(kS,ES);var o3=/^(min|max)?(.+)$/,s3=(function(){function r(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return r.prototype.setOption=function(e,t,n){e&&(M(Ye(e.series),function(o){o&&o.data&&dr(o.data)&&qc(o.data)}),M(Ye(e.dataset),function(o){o&&o.source&&dr(o.source)&&qc(o.source)})),e=ae(e);var a=this._optionBackup,i=l3(e,t,!a);this._newBaseOption=i.baseOption,a?(i.timelineOptions.length&&(a.timelineOptions=i.timelineOptions),i.mediaList.length&&(a.mediaList=i.mediaList),i.mediaDefault&&(a.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=[],ae(e?t.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var a=e.getComponent("timeline");a&&(t=ae(n[a.getCurrentIndex()]))}return t},r.prototype.getMediaOption=function(e){var t=this._api.getWidth(),n=this._api.getHeight(),a=this._mediaList,i=this._mediaDefault,o=[],s=[];if(!a.length&&!i)return s;for(var l=0,u=a.length;l<u;l++)u3(a[l].query,t,n)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!v3(o,this._currentMediaIndices)&&(s=$(o,function(f){return ae(f===-1?i.option:a[f].option)})),this._currentMediaIndices=o,s},r})();function l3(r,e,t){var n=[],a,i,o=r.baseOption,s=r.timeline,l=r.options,u=r.media,f=!!r.media,v=!!(l||s||o&&o.timeline);o?(i=o,i.timeline||(i.timeline=s)):((v||f)&&(r.options=r.media=null),i=r),f&&U(u)&&M(u,function(h){h&&h.option&&(h.query?n.push(h):a||(a=h))}),c(i),M(l,function(h){return c(h)}),M(n,function(h){return c(h.option)});function c(h){M(e,function(d){d(h,t)})}return{baseOption:i,timelineOptions:l||[],mediaDefault:a,mediaList:n}}function u3(r,e,t){var n={width:e,height:t,aspectratio:e/t},a=!0;return M(r,function(i,o){var s=o.match(o3);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();f3(n[u],i,l)||(a=!1)}}),a}function f3(r,e,t){return t==="min"?r>=e:t==="max"?r<=e:r===e}function v3(r,e){return r.join(",")===e.join(",")}var Yr=M,rf=fe,db=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function vg(r){var e=r&&r.itemStyle;if(e)for(var t=0,n=db.length;t<n;t++){var a=db[t],i=e.normal,o=e.emphasis;i&&i[a]&&(r[a]=r[a]||{},r[a].normal?_e(r[a].normal,i[a]):r[a].normal=i[a],i[a]=null),o&&o[a]&&(r[a]=r[a]||{},r[a].emphasis?_e(r[a].emphasis,o[a]):r[a].emphasis=o[a],o[a]=null)}}function Ut(r,e,t){if(r&&r[e]&&(r[e].normal||r[e].emphasis)){var n=r[e].normal,a=r[e].emphasis;n&&(t?(r[e].normal=r[e].emphasis=null,le(r[e],n)):r[e]=n),a&&(r.emphasis=r.emphasis||{},r.emphasis[e]=a,a.focus&&(r.emphasis.focus=a.focus),a.blurScope&&(r.emphasis.blurScope=a.blurScope))}}function wu(r){Ut(r,"itemStyle"),Ut(r,"lineStyle"),Ut(r,"areaStyle"),Ut(r,"label"),Ut(r,"labelLine"),Ut(r,"upperLabel"),Ut(r,"edgeLabel")}function ht(r,e){var t=rf(r)&&r[e],n=rf(t)&&t.textStyle;if(n)for(var a=0,i=yw.length;a<i;a++){var o=yw[a];n.hasOwnProperty(o)&&(t[o]=n[o])}}function Pr(r){r&&(wu(r),ht(r,"label"),r.emphasis&&ht(r.emphasis,"label"))}function c3(r){if(rf(r)){vg(r),wu(r),ht(r,"label"),ht(r,"upperLabel"),ht(r,"edgeLabel"),r.emphasis&&(ht(r.emphasis,"label"),ht(r.emphasis,"upperLabel"),ht(r.emphasis,"edgeLabel"));var e=r.markPoint;e&&(vg(e),Pr(e));var t=r.markLine;t&&(vg(t),Pr(t));var n=r.markArea;n&&Pr(n);var a=r.data;if(r.type==="graph"){a=a||r.nodes;var i=r.links||r.edges;if(i&&!dr(i))for(var o=0;o<i.length;o++)Pr(i[o]);M(r.categories,function(u){wu(u)})}if(a&&!dr(a))for(var o=0;o<a.length;o++)Pr(a[o]);if(e=r.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)Pr(s[o]);if(t=r.markLine,t&&t.data)for(var l=t.data,o=0;o<l.length;o++)U(l[o])?(Pr(l[o][0]),Pr(l[o][1])):Pr(l[o]);r.type==="gauge"?(ht(r,"axisLabel"),ht(r,"title"),ht(r,"detail")):r.type==="treemap"?(Ut(r.breadcrumb,"itemStyle"),M(r.levels,function(u){wu(u)})):r.type==="tree"&&wu(r.leaves)}}function Yn(r){return U(r)?r:r?[r]:[]}function pb(r){return(U(r)?r[0]:r)||{}}function h3(r,e){Yr(Yn(r.series),function(n){rf(n)&&c3(n)});var t=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&t.push("valueAxis","categoryAxis","logAxis","timeAxis"),Yr(t,function(n){Yr(Yn(r[n]),function(a){a&&(ht(a,"axisLabel"),ht(a.axisPointer,"label"))})}),Yr(Yn(r.parallel),function(n){var a=n&&n.parallelAxisDefault;ht(a,"axisLabel"),ht(a&&a.axisPointer,"label")}),Yr(Yn(r.calendar),function(n){Ut(n,"itemStyle"),ht(n,"dayLabel"),ht(n,"monthLabel"),ht(n,"yearLabel")}),Yr(Yn(r.radar),function(n){ht(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap)}),Yr(Yn(r.geo),function(n){rf(n)&&(Pr(n),Yr(Yn(n.regions),function(a){Pr(a)}))}),Yr(Yn(r.timeline),function(n){Pr(n),Ut(n,"label"),Ut(n,"itemStyle"),Ut(n,"controlStyle",!0);var a=n.data;U(a)&&M(a,function(i){fe(i)&&(Ut(i,"label"),Ut(i,"itemStyle"))})}),Yr(Yn(r.toolbox),function(n){Ut(n,"iconStyle"),Yr(n.feature,function(a){Ut(a,"iconStyle")})}),ht(pb(r.axisPointer),"label"),ht(pb(r.tooltip).axisPointer,"label")}function d3(r,e){for(var t=e.split(","),n=r,a=0;a<t.length&&(n=n&&n[t[a]],n!=null);a++);return n}function p3(r,e,t,n){for(var a=e.split(","),i=r,o,s=0;s<a.length-1;s++)o=a[s],i[o]==null&&(i[o]={}),i=i[o];i[a[s]]==null&&(i[a[s]]=t)}function gb(r){r&&M(g3,function(e){e[0]in r&&!(e[1]in r)&&(r[e[1]]=r[e[0]])})}var g3=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],y3=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],cg=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Gl(r){var e=r&&r.itemStyle;if(e)for(var t=0;t<cg.length;t++){var n=cg[t][1],a=cg[t][0];e[n]!=null&&(e[a]=e[n])}}function yb(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function mb(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay)}function m3(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function yP(r,e){if(r)for(var t=0;t<r.length;t++)e(r[t]),r[t]&&yP(r[t].children,e)}function mP(r,e){h3(r,e),r.series=Ye(r.series),M(r.series,function(t){if(fe(t)){var n=t.type;if(n==="line")t.clipOverflow!=null&&(t.clip=t.clipOverflow);else if(n==="pie"||n==="gauge"){t.clockWise!=null&&(t.clockwise=t.clockWise),yb(t.label);var a=t.data;if(a&&!dr(a))for(var i=0;i<a.length;i++)yb(a[i]);t.hoverOffset!=null&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if(n==="gauge"){var o=d3(t,"pointer.color");o!=null&&p3(t,"itemStyle.color",o)}else if(n==="bar"){Gl(t),Gl(t.backgroundStyle),Gl(t.emphasis);var a=t.data;if(a&&!dr(a))for(var i=0;i<a.length;i++)typeof a[i]=="object"&&(Gl(a[i]),Gl(a[i]&&a[i].emphasis))}else if(n==="sunburst"){var s=t.highlightPolicy;s&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=s)),mb(t),yP(t.data,mb)}else n==="graph"||n==="sankey"?m3(t):n==="map"&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&le(t,t.mapLocation));t.hoverAnimation!=null&&(t.emphasis=t.emphasis||{},t.emphasis&&t.emphasis.scale==null&&(t.emphasis.scale=t.hoverAnimation)),gb(t)}}),r.dataRange&&(r.visualMap=r.dataRange),M(y3,function(t){var n=r[t];n&&(U(n)||(n=[n]),M(n,function(a){gb(a)}))})}var _3=Rf(S3);function S3(r){var e=K();r.eachSeries(function(t){var n=t.get("stack");if(n){var a=e.get(n)||e.set(n,[]),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;a.push(o)}}),e.each(function(t){if(t.length!==0){var n=t[0].seriesModel,a=n.get("stackOrder")||"seriesAsc";a==="seriesDesc"&&t.reverse(),M(t,function(i,o){i.data.setCalculationInfo("stackedOnSeries",o>0?t[o-1].seriesModel:null)}),x3(t)}})}function x3(r){M(r,function(e,t){var n=[],a=[NaN,NaN],i=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,f,v){var c=o.get(e.stackedDimension,v);if(isNaN(c))return a;var h,d;s?d=o.getRawIndex(v):h=o.get(e.stackedByDimension,v);for(var p=NaN,g=t-1;g>=0;g--){var y=r[g];if(s||(d=y.data.rawIndexOf(y.stackedByDimension,h)),d>=0){var m=y.data.getByRawIndex(y.stackResultDimension,d);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&c>=0&&m>0||l==="samesign"&&c<=0&&m<0){c=Yi(c,m),p=m;break}}}return n[0]=c,n[1]=p,n})})}var Ud=(function(){function r(e){this.data=e.data||(e.sourceFormat===an?{}:[]),this.sourceFormat=e.sourceFormat||QL,this.seriesLayoutBy=e.seriesLayoutBy||Jr,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;n<t.length;n++){var a=t[n];a.type==null&&dP(this,n)===Et.Must&&(a.type="ordinal")}}return r})();function OS(r){return r instanceof Ud}function p0(r,e,t){t=t||_P(r);var n=e.seriesLayoutBy,a=b3(r,t,n,e.sourceHeader,e.dimensions),i=new Ud({data:r,sourceFormat:t,seriesLayoutBy:n,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:ae(e)});return i}function NS(r){return new Ud({data:r,sourceFormat:dr(r)?Ka:br})}function w3(r){return new Ud({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:ae(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function _P(r){var e=QL;if(dr(r))e=Ka;else if(U(r)){r.length===0&&(e=Pt);for(var t=0,n=r.length;t<n;t++){var a=r[t];if(a!=null){if(U(a)||dr(a)){e=Pt;break}else if(fe(a)){e=Cr;break}}}}else if(fe(r)){for(var i in r)if(J(r,i)&&Wt(r[i])){e=an;break}}return e}function b3(r,e,t,n,a){var i,o;if(!r)return{dimensionsDefine:_b(a),startIndex:o,dimensionsDetectedCount:i};if(e===Pt){var s=r;n==="auto"||n==null?Sb(function(u){u!=null&&u!=="-"&&(Z(u)?o==null&&(o=1):o=0)},t,s,10):o=Ee(n)?n:n?1:0,!a&&o===1&&(a=[],Sb(function(u,f){a[f]=u!=null?u+"":""},t,s,1/0)),i=a?a.length:t===Yo?s.length:s[0]?s[0].length:null}else if(e===Cr)a||(a=C3(r));else if(e===an)a||(a=[],M(r,function(u,f){a.push(f)}));else if(e===br){var l=ml(r[0]);i=U(l)&&l.length||1}return{startIndex:o,dimensionsDefine:_b(a),dimensionsDetectedCount:i}}function C3(r){for(var e=0,t;e<r.length&&!(t=r[e++]););if(t)return De(t)}function _b(r){if(r){var e=K();return $(r,function(t,n){t=fe(t)?t:{name:t};var a={name:t.name,displayName:t.displayName,type:t.type};if(a.name==null)return a;a.name+="",a.displayName==null&&(a.displayName=a.name);var i=e.get(a.name);return i?a.name+="-"+i.count++:e.set(a.name,{count:1}),a})}}function Sb(r,e,t,n){if(e===Yo)for(var a=0;a<t.length&&a<n;a++)r(t[a]?t[a][0]:null,a);else for(var i=t[0]||[],a=0;a<i.length&&a<n;a++)r(i[a],a)}function SP(r){var e=r.sourceFormat;return e===Cr||e===an}var ki,Oi,Ni,Bi,xb,wb,xP=(function(){function r(e,t){var n=OS(e)?e:NS(e);this._source=n;var a=this._data=n.data,i=n.sourceFormat;n.seriesLayoutBy,i===Ka&&(this._offset=0,this._dimSize=t,this._data=a),wb(this,a,n)}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;wb=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,v=l.startIndex,c=l.dimensionsDefine,h=xb[BS(u,f)];if(G(o,h),u===Ka)o.getItem=t,o.count=a,o.fillStorage=n;else{var d=wP(u,f);o.getItem=q(d,null,s,v,c);var p=bP(u,f);o.count=q(p,null,s,v,c)}};var t=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,v=0;v<u;v++)s[v]=l[f+v];return s},n=function(o,s,l,u){for(var f=this._data,v=this._dimSize,c=0;c<v;c++){for(var h=u[c],d=h[0]==null?1/0:h[0],p=h[1]==null?-1/0:h[1],g=s-o,y=l[c],m=0;m<g;m++){var _=f[m*v+c];y[o+m]=_,_<d&&(d=_),_>p&&(p=_)}h[0]=d,h[1]=p}},a=function(){return this._data?this._data.length/this._dimSize:0};xb=(e={},e[Pt+"_"+Jr]={pure:!0,appendData:i},e[Pt+"_"+Yo]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Cr]={pure:!0,appendData:i},e[an]={pure:!0,appendData:function(o){var s=this._data;M(o,function(l,u){for(var f=s[u]||(s[u]=[]),v=0;v<(l||[]).length;v++)f.push(l[v])})}},e[br]={appendData:i},e[Ka]={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})(),wv=function(r){U(r)||PL("series.data or dataset.source must be an array.")};ki={},ki[Pt+"_"+Jr]=wv,ki[Pt+"_"+Yo]=wv,ki[Cr]=wv,ki[an]=function(r,e){for(var t=0;t<e.length;t++){var n=e[t].name;n==null&&PL("dimension name must not be null/undefined.")}},ki[br]=wv;var bb=function(r,e,t,n){return r[n]},T3=(Oi={},Oi[Pt+"_"+Jr]=function(r,e,t,n){return r[n+e]},Oi[Pt+"_"+Yo]=function(r,e,t,n,a){n+=e;for(var i=a||[],o=r,s=0;s<o.length;s++){var l=o[s];i[s]=l?l[n]:null}return i},Oi[Cr]=bb,Oi[an]=function(r,e,t,n,a){for(var i=a||[],o=0;o<t.length;o++){var s=t[o].name,l=s!=null?r[s]:null;i[o]=l?l[n]:null}return i},Oi[br]=bb,Oi);function wP(r,e){var t=T3[BS(r,e)];return t}var Cb=function(r,e,t){return r.length},A3=(Ni={},Ni[Pt+"_"+Jr]=function(r,e,t){return Math.max(0,r.length-e)},Ni[Pt+"_"+Yo]=function(r,e,t){var n=r[0];return n?Math.max(0,n.length-e):0},Ni[Cr]=Cb,Ni[an]=function(r,e,t){var n=t[0].name,a=n!=null?r[n]:null;return a?a.length:0},Ni[br]=Cb,Ni);function bP(r,e){var t=A3[BS(r,e)];return t}var hg=function(r,e,t){return r[e]},M3=(Bi={},Bi[Pt]=hg,Bi[Cr]=function(r,e,t){return r[t]},Bi[an]=hg,Bi[br]=function(r,e,t){var n=ml(r);return n instanceof Array?n[e]:n},Bi[Ka]=hg,Bi);function CP(r){var e=M3[r];return e}function BS(r,e){return r===Pt?r+"_"+e:r}function rl(r,e,t){if(r){var n=r.getRawDataItem(e);if(n!=null){var a=r.getStore(),i=a.getSource().sourceFormat;if(t!=null){var o=r.getDimensionIndex(t),s=a.getDimensionProperty(o);return CP(i)(n,o,s)}else{var l=n;return i===br&&(l=ml(n)),l}}}}var D3=/\{@(.+?)\}/g,$d=(function(){function r(){}return r.prototype.getDataParams=function(e,t){var n=this.getData(t),a=this.getRawValue(e,t),i=n.getRawIndex(e),o=n.getName(e),s=n.getRawDataItem(e),l=n.getItemVisual(e,"style"),u=l&&l[n.getItemVisual(e,"drawType")||"fill"],f=l&&l.stroke,v=this.mainType,c=v==="series",h=n.userOutput&&n.userOutput.get();return{componentType:v,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:c?this.subType:null,seriesIndex:this.seriesIndex,seriesId:c?this.id:null,seriesName:c?this.name:null,name:o,dataIndex:i,data:s,dataType:t,value:a,color:u,borderColor:f,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(e,t,n,a,i,o){t=t||"normal";var s=this.getData(n),l=this.getDataParams(e,n);if(o&&(l.value=o.interpolatedValue),a!=null&&U(l.value)&&(l.value=l.value[a]),!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=a,i(l);if(Z(i)){var f=q2(i,l);return f.replace(D3,function(v,c){var h=c.length,d=c;d.charAt(0)==="["&&d.charAt(h-1)==="]"&&(d=+d.slice(1,h-1));var p=rl(s,e,d);if(o&&U(o.interpolatedValue)){var g=s.getDimensionIndex(d);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(e,t){return rl(this.getData(t),e)},r.prototype.formatTooltip=function(e,t,n){},r})();function Tb(r){var e,t;return fe(r)?r.type&&(t=r):e=r,{text:e,frag:t}}function Bu(r){return new I3(r)}var I3=(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,n=e&&e.skip;if(this._dirty&&t){var a=this.context;a.data=a.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(i="reset");function f(m){return!(m>=1)&&(m=1),m}var v;(this._dirty||i==="reset")&&(this._dirty=!1,v=this._doReset(n)),this._modBy=l,this._modDataCount=u;var c=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,d=Math.min(c!=null?this._dueIndex+c:1/0,this._dueEnd);if(!n&&(v||h<d)){var p=this._progress;if(U(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],h,d,l,u);else this._doProgress(p,h,d,l,u)}this._dueIndex=d;var y=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=y}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,n,a,i){Ab.reset(t,n,a,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:Ab.next},this.context)},r.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var t,n;!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(n=t.forceFirstProgress,t=t.progress),U(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var a=this._downstream;return a&&a.dirty(),n},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})(),Ab=(function(){var r,e,t,n,a,i={reset:function(l,u,f,v){e=l,r=u,t=f,n=v,a=Math.ceil(n/t),i.next=t>1&&n>0?s:o}};return i;function o(){return e<r?e++:null}function s(){var l=e%a*t+Math.ceil(e/a),u=e>=r?null:l<n?l:e;return e++,u}})();function Ja(r,e){var t=e&&e.type;return t==="ordinal"?r:(t==="time"&&!Ee(r)&&r!=null&&r!=="-"&&(r=+Wo(r)),r==null||r===""?NaN:Number(r))}var L3=K({number:function(r){return parseFloat(r)},time:function(r){return+Wo(r)},trim:function(r){return Z(r)?Br(r):r}});function TP(r){return L3.get(r)}var AP={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(!Ee(t)){var n="";Ve(n)}this._opFn=AP[e],this._rvalFloat=ca(t)}return r.prototype.evaluate=function(e){return Ee(e)?this._opFn(e,this._rvalFloat):this._opFn(ca(e),this._rvalFloat)},r})(),MP=(function(){function r(e,t){var n=e==="desc";this._resultLT=n?1:-1,t==null&&(t=n?"min":"max"),this._incomparable=t==="min"?-1/0:1/0}return r.prototype.evaluate=function(e,t){var n=Ee(e)?e:ca(e),a=Ee(t)?t:ca(t),i=isNaN(n),o=isNaN(a);if(i&&(n=this._incomparable),o&&(a=this._incomparable),i&&o){var s=Z(e),l=Z(t);s&&(n=l?e:0),l&&(a=s?t:0)}return n<a?this._resultLT:n>a?-this._resultLT:0},r})(),R3=(function(){function r(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=ca(t)}return r.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(t=ca(e)===this._rvalFloat)}return this._isEQ?t:!t},r})();function E3(r,e){return r==="eq"||r==="ne"?new R3(r==="eq",e):J(AP,r)?new P3(r,e):null}function DP(r){var e="",t=-1/0,n=-1/0,a=1/0,i=1/0;return r&&(r.g!=null&&(e+="G"+r.g,t=r.g),r.ge!=null&&(e+="GE"+r.ge,n=r.ge),r.l!=null&&(e+="L"+r.l,a=r.l),r.le!=null&&(e+="LE"+r.le,i=r.le)),{key:e,g:t,ge:n,l:a,le:i}}function IP(r,e){return e>r.g&&e>=r.ge&&e<r.l&&e<=r.le}var k3=(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 Ja(e,t)},r})();function O3(r,e){var t=new k3,n=r.data,a=t.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==Jr&&Ve(o);var s=[],l={},u=r.dimensionsDefine;if(u)M(u,function(p,g){var y=p.name,m={index:g,name:y,displayName:p.displayName};if(s.push(m),y!=null){var _="";J(l,y)&&Ve(_),l[y]=m}});else for(var f=0;f<r.dimensionsDetectedCount;f++)s.push({index:f});var v=wP(a,Jr);e.__isBuiltIn&&(t.getRawDataItem=function(p){return v(n,i,s,p)},t.getRawData=q(N3,null,r)),t.cloneRawData=q(B3,null,r);var c=bP(a,Jr);t.count=q(c,null,n,i,s);var h=CP(a);t.retrieveValue=function(p,g){var y=v(n,i,s,p);return d(y,g)};var d=t.retrieveValueFromItem=function(p,g){if(p!=null){var y=s[g];if(y)return h(p,g,y.name)}};return t.getDimensionInfo=q(V3,null,s,l),t.cloneAllDimensionInfo=q(z3,null,s),t}function N3(r){var e=r.sourceFormat;if(!VS(e)){var t="";Ve(t)}return r.data}function B3(r){var e=r.sourceFormat,t=r.data;if(!VS(e)){var n="";Ve(n)}if(e===Pt){for(var a=[],i=0,o=t.length;i<o;i++)a.push(t[i].slice());return a}else if(e===Cr){for(var a=[],i=0,o=t.length;i<o;i++)a.push(G({},t[i]));return a}}function V3(r,e,t){if(t!=null){if(Ee(t)||!isNaN(t)&&!J(e,t))return r[t];if(J(e,t))return e[t]}}function z3(r){return ae(r)}var LP=K();function F3(r){r=ae(r);var e=r.type,t="";e||Ve(t);var n=e.split(":");n.length!==2&&Ve(t);var a=!1;n[0]==="echarts"&&(e=n[1],a=!0),r.__isBuiltIn=a,LP.set(e,r)}function G3(r,e,t){var n=Ye(r),a=n.length,i="";a||Ve(i);for(var o=0,s=a;o<s;o++){var l=n[o];e=H3(l,e),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function H3(r,e,t,n){var a="";e.length||Ve(a),fe(r)||Ve(a);var i=r.type,o=LP.get(i);o||Ve(a);var s=$(e,function(u){return O3(u,o)}),l=Ye(o.transform({upstream:s[0],upstreamList:s,config:ae(r.config)}));return $(l,function(u,f){var v="";fe(u)||Ve(v),u.data||Ve(v);var c=_P(u.data);VS(c)||Ve(v);var h,d=e[0];if(d&&f===0&&!u.dimensions){var p=d.startIndex;p&&(u.data=d.data.slice(0,p).concat(u.data)),h={seriesLayoutBy:Jr,sourceHeader:p,dimensions:d.metaRawOption.dimensions}}else h={seriesLayoutBy:Jr,sourceHeader:0,dimensions:u.dimensions};return p0(u.data,h,null)})}function VS(r){return r===Pt||r===Cr}var U3=typeof Uint32Array===xl?Array:Uint32Array,$3=typeof Uint16Array===xl?Array:Uint16Array,PP=typeof Int32Array===xl?Array:Int32Array,Mb=typeof Float64Array===xl?Array:Float64Array,RP={float:Mb,int:PP,ordinal:Array,number:Array,time:Mb},dg;function vs(r){return r>65535?U3:$3}function W3(r){var e=r.constructor;return e===Array?r.slice():new e(r)}function Db(r,e,t,n,a){var i=RP[t||"float"];if(a){var o=r[e],s=o&&o.length;if(s!==n){for(var l=new i(n),u=0;u<s;u++)l[u]=o[u];r[e]=l}}else r[e]=new i(n)}var g0=(function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=K()}return r.prototype.initData=function(e,t,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=e.getSource(),i=this.defaultDimValueGetter=dg[a.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],SP(a),this._dimensions=$(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 n=this._calcDimNameToIdx,a=this._dimensions,i=n.get(e);if(i!=null){if(a[i].type===t)return i}else i=a.length;return a[i]={type:t},n.set(e,i),this._chunks[i]=new RP[t||"float"](this._rawCount),this._rawExtent[i]=Ot(),i},r.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],a=this._dimensions[e],i=this._rawExtent,o=a.ordinalOffset||0,s=n.length;o===0&&(i[e]=Ot());for(var l=i[e],u=o;u<s;u++){var f=n[u]=t.parseAndCollect(n[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}a.ordinalMeta=t,a.ordinalOffset=s,a.type="ordinal"},r.prototype.getOrdinalMeta=function(e){var t=this._dimensions[e],n=t.ordinalMeta;return n},r.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},r.prototype.appendData=function(e){var t=this._provider,n=this.count();t.appendData(e);var a=t.count();return t.persistent||(a+=n),n<a&&this._initDataFromProvider(n,a,!0),[n,a]},r.prototype.appendValues=function(e,t){for(var n=this._chunks,a=this._dimensions,i=a.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,t||0),u=0;u<i;u++){var f=a[u];Db(n,u,f.type,l,!0)}for(var v=[],c=s;c<l;c++)for(var h=c-s,d=0;d<i;d++){var f=a[d],p=dg.arrayRows.call(this,e[h]||v,f.property,h,d);n[d][c]=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,n){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=$(o,function(m){return m.property}),f=0;f<s;f++){var v=o[f];l[f]||(l[f]=Ot()),Db(i,f,v.type,t,n)}if(a.fillStorage)a.fillStorage(e,t,i,l);else for(var c=[],h=e;h<t;h++){c=a.getItem(h,c);for(var d=0;d<s;d++){var p=i[d],g=this._dimValueGetter(c,u[d],h,d);p[h]=g;var y=l[d];g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}!a.persistent&&a.clean&&a.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 n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},r.prototype.getValues=function(e,t){var n=[],a=[];if(t==null){t=e,e=[];for(var i=0;i<this._dimensions.length;i++)a.push(i)}else a=e;for(var i=0,o=a.length;i<o;i++)n.push(this.get(a[i],t));return n},r.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},r.prototype.getSum=function(e){var t=this._chunks[e],n=0;if(t)for(var a=0,i=this.count();a<i;a++){var o=this.get(e,a);isNaN(o)||(n+=o)}return n},r.prototype.getMedian=function(e){var t=[];this.each([e],function(a){isNaN(a)||t.push(a)}),Nt(t);var n=this.count();return n===0?0:n%2===1?t[(n-1)/2]:(t[n/2]+t[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,n=t[e];if(n!=null&&n<this._count&&n===e)return e;for(var a=0,i=this._count-1;a<=i;){var o=(a+i)/2|0;if(t[o]<e)a=o+1;else if(t[o]>e)i=o-1;else return o}return-1},r.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,a=this._count;if(n===Array){e=new n(a);for(var i=0;i<a;i++)e[i]=t[i]}else e=new n(t.buffer,0,a)}else{var n=vs(this._rawCount);e=new n(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 n=this.clone(),a=n.count(),i=vs(n._rawCount),o=new i(a),s=[],l=e.length,u=0,f=e[0],v=n._chunks,c=0;c<a;c++){var h=void 0,d=n.getRawIndex(c);if(l===0)h=t(c);else if(l===1){var p=v[f][d];h=t(p,c)}else{for(var g=0;g<l;g++)s[g]=v[e[g]][d];s[g]=c,h=t.apply(null,s)}h&&(o[u++]=d)}return u<a&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},r.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var a=De(e),i=a.length;if(!i)return this;var o=t.count(),s=vs(t._rawCount),l=new s(o),u=0,f=a[0],v=e[f][0],c=e[f][1],h=t._chunks,d=!1;if(!t._indices){var p=0;if(i===1){for(var g=h[a[0]],y=0;y<n;y++){var m=g[y];(m>=v&&m<=c||isNaN(m))&&(l[u++]=p),p++}d=!0}else if(i===2){for(var g=h[a[0]],_=h[a[1]],S=e[a[1]][0],x=e[a[1]][1],y=0;y<n;y++){var m=g[y],w=_[y];(m>=v&&m<=c||isNaN(m))&&(w>=S&&w<=x||isNaN(w))&&(l[u++]=p),p++}d=!0}}if(!d)if(i===1)for(var y=0;y<o;y++){var b=t.getRawIndex(y),m=h[a[0]][b];(m>=v&&m<=c||isNaN(m))&&(l[u++]=b)}else for(var y=0;y<o;y++){for(var T=!0,b=t.getRawIndex(y),C=0;C<i;C++){var A=a[C],m=h[A][b];(m<e[A][0]||m>e[A][1])&&(T=!1)}T&&(l[u++]=t.getRawIndex(y))}return u<o&&(t._indices=l),t._count=u,t._extent=[],t._updateGetRawIdx(),t},r.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},r.prototype.modify=function(e,t){this._updateDims(this,e,t)},r.prototype._updateDims=function(e,t,n){for(var a=e._chunks,i=[],o=t.length,s=e.count(),l=[],u=e._rawExtent,f=0;f<t.length;f++)u[t[f]]=Ot();for(var v=0;v<s;v++){for(var c=e.getRawIndex(v),h=0;h<o;h++)l[h]=a[t[h]][c];l[o]=v;var d=n&&n.apply(null,l);if(d!=null){typeof d!="object"&&(i[0]=d,d=i);for(var f=0;f<d.length;f++){var p=t[f],g=d[f],y=u[p],m=a[p];m&&(m[c]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}}},r.prototype.lttbDownSample=function(e,t){var n=this.clone([e],!0),a=n._chunks,i=a[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),f,v,c,h=new(vs(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[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),y=(g+p)/2,m=0,_=p;_<g;_++){var S=this.getRawIndex(_),x=i[S];isNaN(x)||(m+=x)}m/=g-p;var w=d,b=Math.min(d+l,o),T=d-1,C=i[u];f=-1,c=w;for(var A=-1,D=0,_=w;_<b;_++){var S=this.getRawIndex(_),x=i[S];if(isNaN(x)){D++,A<0&&(A=S);continue}v=Math.abs((T-y)*(x-C)-(T-_)*(m-C)),v>f&&(f=v,c=S)}D>0&&D<b-w&&(h[s++]=Math.min(A,c),c=Math.max(A,c)),h[s++]=c,u=c}return h[s++]=this.getRawIndex(o-1),n._count=s,n._indices=h,n.getRawIndex=this._getRawIdx,n},r.prototype.minmaxDownSample=function(e,t){for(var n=this.clone([e],!0),a=n._chunks,i=Math.floor(1/t),o=a[e],s=this.count(),l=new(vs(this._rawCount))(Math.ceil(s/i)*2),u=0,f=0;f<s;f+=i){var v=f,c=o[this.getRawIndex(v)],h=f,d=o[this.getRawIndex(h)],p=i;f+i>s&&(p=s-f);for(var g=0;g<p;g++){var y=this.getRawIndex(f+g),m=o[y];m<c&&(c=m,v=f+g),m>d&&(d=m,h=f+g)}var _=this.getRawIndex(v),S=this.getRawIndex(h);v<h?(l[u++]=_,l[u++]=S):(l[u++]=S,l[u++]=_)}return n._count=u,n._indices=l,n._updateGetRawIdx(),n},r.prototype.downSample=function(e,t,n,a){for(var i=this.clone([e],!0),o=i._chunks,s=[],l=Math.floor(1/t),u=o[e],f=this.count(),v=i._rawExtent[e]=Ot(),c=new(vs(this._rawCount))(Math.ceil(f/l)),h=0,d=0;d<f;d+=l){l>f-d&&(l=f-d,s.length=l);for(var p=0;p<l;p++){var g=this.getRawIndex(d+p);s[p]=u[g]}var y=n(s),m=this.getRawIndex(Math.min(d+a(s,y)||0,f-1));u[m]=y,y<v[0]&&(v[0]=y),y>v[1]&&(v[1]=y),c[h++]=m}return i._count=h,i._indices=c,i._updateGetRawIdx(),i},r.prototype.each=function(e,t){if(this._count)for(var n=e.length,a=this._chunks,i=0,o=this.count();i<o;i++){var s=this.getRawIndex(i);switch(n){case 0:t(i);break;case 1:t(a[e[0]][s],i);break;case 2:t(a[e[0]][s],a[e[1]][s],i);break;default:for(var l=0,u=[];l<n;l++)u[l]=a[e[l]][s];u[l]=i,t.apply(null,u)}}},r.prototype.getDataExtent=function(e,t){var n=this._chunks[e],a=Ot();if(!n)return a;var i=this.count(),o=!this._indices&&!t;if(o)return this._rawExtent[e].slice();var s=this._extent,l=s[e]||(s[e]={}),u=DP(t),f=u.key,v=l[f];if(v)return v.slice();for(var c=a[0],h=a[1],d=0;d<i;d++){var p=this.getRawIndex(d),g=n[p];(!t||IP(u,g))&&(g<c&&(c=g),g>h&&(h=g))}return l[f]=[c,h]},r.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],a=this._chunks,i=0;i<a.length;i++)n.push(a[i][t]);return n},r.prototype.clone=function(e,t){var n=new r,a=this._chunks,i=e&&En(e,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<a.length;o++)n._chunks[o]=i[o]?W3(a[o]):a[o];else n._chunks=a;return this._copyCommonProps(n),t||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},r.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=ae(this._extent),e._rawExtent=ae(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var n=this._indices.length;t=new e(n);for(var a=0;a<n;a++)t[a]=this._indices[a]}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,n,a,i){return Ja(t[i],this._dimensions[i])}dg={arrayRows:e,objectRows:function(t,n,a,i){return Ja(t[n],this._dimensions[i])},keyedColumns:e,original:function(t,n,a,i){var o=t&&(t.value==null?t:t.value);return Ja(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(t,n,a,i){return t[i]}}})(),r})(),EP=(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(),n=!!t.length,a,i;if(bv(e)){var o=e,s=void 0,l=void 0,u=void 0;if(n){var f=t[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,i=[f._getVersionSign()]}else s=o.get("data",!0),l=dr(s)?Ka:br,i=[];var v=this._getSourceMetaRawOption()||{},c=u&&u.metaRawOption||{},h=Q(v.seriesLayoutBy,c.seriesLayoutBy)||null,d=Q(v.sourceHeader,c.sourceHeader),p=Q(v.dimensions,c.dimensions),g=h!==c.seriesLayoutBy||!!d!=!!c.sourceHeader||p;a=g?[p0(s,{seriesLayoutBy:h,sourceHeader:d,dimensions:p},l)]:[]}else{var y=e;if(n){var m=this._applyTransform(t);a=m.sourceList,i=m.upstreamSignList}else{var _=y.get("source",!0);a=[p0(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},r.prototype._applyTransform=function(e){var t=this._sourceHost,n=t.get("transform",!0),a=t.get("fromTransformResult",!0);if(a!=null){var i="";e.length!==1&&Lb(i)}var o,s=[],l=[];return M(e,function(u){u.prepareSource();var f=u.getSource(a||0),v="";a!=null&&!f&&Lb(v),s.push(f),l.push(u._getVersionSign())}),n?o=G3(n,s,{datasetIndex:t.componentIndex}):a!=null&&(o=[w3(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 n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},r.prototype.getSource=function(e){e=e||0;var t=this._sourceList[e];if(!t){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return t},r.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},r.prototype._innerGetDataStore=function(e,t,n){var a=0,i=this._storeList,o=i[a];o||(o=i[a]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];bv(this._sourceHost)&&l?s=l._innerGetDataStore(e,t,n):(s=new g0,s.initData(new xP(t,e.length),e)),o[n]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(bv(e)){var t=RS(e);return t?[t.getSourceManager()]:[]}else return $(KG(e),function(n){return n.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,n,a;if(bv(e))t=e.get("seriesLayoutBy",!0),n=e.get("sourceHeader",!0),a=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=e;t=i.get("seriesLayoutBy",!0),n=i.get("sourceHeader",!0),a=i.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:n,dimensions:a}},r})();function Ib(r){var e=r.option.transform;e&&qc(r.option.transform)}function bv(r){return r.mainType==="series"}function Lb(r){throw new Error(r)}var Y3="line-height:1";function kP(r){var e=r.lineHeight;return e==null?Y3:"line-height:"+Qt(e+"")+"px"}function OP(r,e){var t=r.color||N.color.tertiary,n=r.fontSize||12,a=r.fontWeight||"400",i=r.color||N.color.secondary,o=r.fontSize||14,s=r.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+Qt(n+"")+"px;color:"+Qt(t)+";font-weight:"+Qt(a+""),valueStyle:"font-size:"+Qt(o+"")+"px;color:"+Qt(i)+";font-weight:"+Qt(s+"")}:{nameStyle:{fontSize:n,fill:t,fontWeight:a},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var X3=[0,10,20,30],Z3=["",`
43
+ `,`
44
+
45
+ `,`
46
+
47
+
48
+ `];function pt(r,e){return e.type=r,e}function y0(r){return r.type==="section"}function NP(r){return y0(r)?j3:q3}function BP(r){if(y0(r)){var e=0,t=r.blocks.length,n=t>1||t>0&&!r.noHeader;return M(r.blocks,function(a){var i=BP(a);i>=e&&(e=i+ +(n&&(!i||y0(a)&&!a.noHeader)))}),e}return 0}function j3(r,e,t,n){var a=e.noHeader,i=K3(BP(e)),o=[],s=e.blocks||[];Yt(!s||U(s)),s=s||[];var l=r.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(J(u,l)){var f=new MP(u[l],null);s.sort(function(p,g){return f.evaluate(p.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}M(s,function(p,g){var y=e.valueFormatter,m=NP(p)(y?G(G({},r),{valueFormatter:y}):r,p,g>0?i.html:0,n);m!=null&&o.push(m)});var v=r.renderMode==="richText"?o.join(i.richText):m0(n,o.join(""),a?t:i.html);if(a)return v;var c=c0(e.header,"ordinal",r.useUTC),h=OP(n,r.renderMode).nameStyle,d=kP(n);return r.renderMode==="richText"?VP(r,c,h)+i.richText+v:m0(n,'<div style="'+h+";"+d+';">'+Qt(c)+"</div>"+v,t)}function q3(r,e,t,n){var a=r.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=r.useUTC,f=e.valueFormatter||r.valueFormatter||function(S){return S=U(S)?S:[S],$(S,function(x,w){return c0(x,U(h)?h[w]:h,u)})};if(!(i&&o)){var v=s?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||N.color.secondary,a),c=i?"":c0(l,"ordinal",u),h=e.valueType,d=o?[]:f(e.value,e.rawDataIndex),p=!s||!i,g=!s&&i,y=OP(n,a),m=y.nameStyle,_=y.valueStyle;return a==="richText"?(s?"":v)+(i?"":VP(r,c,m))+(o?"":eH(r,d,p,g,_)):m0(n,(s?"":v)+(i?"":J3(c,!s,m))+(o?"":Q3(d,p,g,_)),t)}}function Pb(r,e,t,n,a,i){if(r){var o=NP(r),s={useUTC:a,renderMode:t,orderMode:n,markupStyleCreator:e,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function K3(r){return{html:X3[r],richText:Z3[r]}}function m0(r,e,t){var n='<div style="clear:both"></div>',a="margin: "+t+"px 0 0",i=kP(r);return'<div style="'+a+";"+i+';">'+e+n+"</div>"}function J3(r,e,t){var n=e?"margin-left:2px":"";return'<span style="'+t+";"+n+'">'+Qt(r)+"</span>"}function Q3(r,e,t,n){var a=t?"10px":"20px",i=e?"float:right;margin-left:"+a:"";return r=U(r)?r:[r],'<span style="'+i+";"+n+'">'+$(r,function(o){return Qt(o)}).join("&nbsp;&nbsp;")+"</span>"}function VP(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function eH(r,e,t,n,a){var i=[a],o=n?10:20;return t&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(U(e)?e.join(" "):e,i)}function zP(r,e){var t=r.getData().getItemVisual(e,"style"),n=t[r.visualDrawType];return Mo(n)}function FP(r,e){var t=r.get("padding");return t??(e==="richText"?[8,10]:10)}var pg=(function(){function r(){this.richTextStyles={},this._nextStyleNameId=tS()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(e,t,n){var a=n==="richText"?this._generateStyleName():null,i=GG({color:t,type:e,renderMode:n,markerId:a});return Z(i)?i:(this.richTextStyles[a]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(e,t){var n={};U(t)?M(t,function(i){return G(n,i)}):G(n,t);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+e+"}"},r})();function GP(r){var e=r.series,t=r.dataIndex,n=r.multipleSeries,a=e.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(t),l=U(s),u=zP(e,t),f,v,c,h;if(o>1||l&&!o){var d=tH(s,e,t,i,u);f=d.inlineValues,v=d.inlineValueTypes,c=d.blocks,h=d.inlineValues[0]}else if(o){var p=a.getDimensionInfo(i[0]);h=f=rl(a,t,i[0]),v=p.type}else h=f=l?s[0]:s;var g=rS(e),y=g&&e.name||"",m=a.getName(t),_=n?y:m;return pt("section",{header:y,noHeader:n||!g,sortParam:h,blocks:[pt("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Br(_),value:f,valueType:v,rawDataIndex:a.getRawIndex(t)})].concat(c||[])})}function tH(r,e,t,n,a){var i=e.getData(),o=En(r,function(v,c,h){var d=i.getDimensionInfo(h);return v=v||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?M(n,function(v){f(rl(i,t,v),v)}):M(r,f);function f(v,c){var h=i.getDimensionInfo(c);!h||h.otherDims.tooltip===!1||(o?u.push(pt("nameValue",{markerType:"subItem",markerColor:a,name:h.displayName,value:v,valueType:h.type})):(s.push(v),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Aa=me();function Cv(r,e){return r.getName(e)||r.getId(e)}var Gc="__universalTransitionEnabled",je=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,n,a){this.seriesIndex=this.componentIndex,this.dataTask=Bu({count:nH,reset:aH}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,a);var i=Aa(this).sourceManager=new EP(this);i.prepareSource();var o=this.getInitialData(t,a);Eb(o,this),this.dataTask.context.data=o,Aa(this).dataBeforeProcessed=o,Rb(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,n){var a=tf(this),i=a?jo(t):{},o=this.subType;Me.hasClass(o)&&(o+="Series"),_e(t,n.getTheme().get(this.subType)),_e(t,this.getDefaultOption()),So(t,"label",["show"]),this.fillDataTextStyle(t.data),a&&zn(t,i,a)},e.prototype.mergeOption=function(t,n){t=_e(this.option,t,!0),this.fillDataTextStyle(t.data);var a=tf(this);a&&zn(this.option,t,a);var i=Aa(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(t,n);Eb(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Aa(this).dataBeforeProcessed=o,Rb(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!dr(t))for(var n=["show"],a=0;a<t.length;a++)t[a]&&t[a].label&&So(t[a],"label",n)},e.prototype.getInitialData=function(t,n){},e.prototype.appendData=function(t){var n=this.getRawData();n.appendData(t.data)},e.prototype.getData=function(t){var n=_0(this);if(n){var a=n.context.data;return t==null||!a.getLinkedData?a:a.getLinkedData(t)}else return Aa(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var n=_0(this);if(n){var a=n.context;a.outputData=t,n!==this.dataTask&&(a.data=t)}Aa(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return K(t)},e.prototype.getSourceManager=function(){return Aa(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return Aa(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.indicesOfNearest=function(t,n,a,i){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(t);if(!s||!l)return[];var u=l.dataToCoord(a);i==null&&(i=1/0);for(var f=[],v=1/0,c=-1,h=0,d=o.getDimensionIndex(n),p=o.getStore(),g=0,y=p.count();g<y;g++){var m=p.get(d,g),_=l.dataToCoord(m),S=u-_,x=Math.abs(S);x<=i&&((x<v||x===v&&S>=0&&c<0)&&(v=x,c=S,h=0),S===c&&(f[h++]=g))}return f.length=h,f},e.prototype.formatTooltip=function(t,n,a){return GP({series:this,dataIndex:t,multipleSeries:n})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(Le.node&&!(t&&t.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,n,a){var i=this.ecModel,o=ES.prototype.getColorFromPalette.call(this,t,n,a);return o||(o=i.getColorFromPalette(t,n,a)),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,n){this._innerSelect(this.getData(n),t)},e.prototype.unselect=function(t,n){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(n);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<t.length;s++){var l=t[s],u=Cv(o,l);a[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(t,n){for(var a=[],i=0;i<t.length;i++)a[0]=t[i],this.isSelected(t[i],n)?this.unselect(a,n):this.select(a,n)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,n=De(t),a=[],i=0;i<n.length;i++){var o=t[n[i]];o>=0&&a.push(o)}return a},e.prototype.isSelected=function(t,n){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(n);return(a==="all"||a[Cv(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[Gc])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,n){var a,i,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){fe(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var v=n[f],c=Cv(t,v);u[c]=!0,this._selectedDataIndicesMap[c]=t.getRawIndex(v)}}else if(s==="single"||s===!0){var h=n[l-1],c=Cv(t,h);o.selectedMap=(a={},a[c]=!0,a),this._selectedDataIndicesMap=(i={},i[c]=t.getRawIndex(h),i)}}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var n=[];t.hasItemOption&&t.each(function(a){var i=t.getRawDataItem(a);i&&i.selected&&n.push(a)}),n.length>0&&this._innerSelect(t,n)}},e.registerClass=function(t){return Me.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})(Me);xt(je,$d);xt(je,ES);HL(je,Me);function Rb(r){var e=r.name;rS(r)||(r.name=rH(r)||e)}function rH(r){var e=r.getRawData(),t=e.mapDimensionsAll("seriesName"),n=[];return M(t,function(a){var i=e.getDimensionInfo(a);i.displayName&&n.push(i.displayName)}),n.join(" ")}function nH(r){return r.model.getRawData().count()}function aH(r){var e=r.model;return e.setData(e.getRawData().cloneShallow()),iH}function iH(r,e){e.outputData&&r.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Eb(r,e){M(Wu(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(t){r.wrapMethod(t,xe(oH,e))})}function oH(r,e){var t=_0(r);return t&&t.setOutputEnd((e||this).count()),e}function _0(r){var e=(r.ecModel||{}).scheduler,t=e&&e.getPipeline(r.uid);if(t){var n=t.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(r.uid))}return n}}var Qe=(function(){function r(){this.group=new oe,this.uid=Zo("viewComponent")}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,n,a){},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,n,a){},r.prototype.updateLayout=function(e,t,n,a){},r.prototype.updateVisual=function(e,t,n,a){},r.prototype.toggleBlurSeries=function(e,t,n){},r.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},r})();iS(Qe);Ad(Qe);function qo(){var r=me();return function(e){var t=r(e),n=e.pipelineContext,a=!!t.large,i=!!t.progressiveRender,o=t.large=!!(n&&n.large),s=t.progressiveRender=!!(n&&n.progressiveRender);return(a!==o||i!==s)&&"reset"}}var HP=me(),sH=qo(),Ue=(function(){function r(){this.group=new oe,this.uid=Zo("viewChart"),this.renderTask=Bu({plan:lH,reset:uH}),this.renderTask.context={view:this}}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,n,a){},r.prototype.highlight=function(e,t,n,a){var i=e.getData(a&&a.dataType);i&&Ob(i,a,"emphasis")},r.prototype.downplay=function(e,t,n,a){var i=e.getData(a&&a.dataType);i&&Ob(i,a,"normal")},r.prototype.remove=function(e,t){this.group.removeAll()},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,n,a){this.render(e,t,n,a)},r.prototype.updateVisual=function(e,t,n,a){this.render(e,t,n,a)},r.prototype.eachRendered=function(e){di(this.group,e)},r.markUpdateMethod=function(e,t){HP(e).updateMethod=t},r.protoInitialize=(function(){var e=r.prototype;e.type="chart"})(),r})();function kb(r,e,t){r&&Ju(r)&&(e==="emphasis"?da:pa)(r,t)}function Ob(r,e,t){var n=xo(r,e),a=e&&e.highlightKey!=null?R5(e.highlightKey):null;n!=null?M(Ye(n),function(i){kb(r.getItemGraphicEl(i),t,a)}):r.eachItemGraphicEl(function(i){kb(i,t,a)})}iS(Ue);Ad(Ue);function lH(r){return sH(r.model)}function uH(r){var e=r.model,t=r.ecModel,n=r.api,a=r.payload,i=e.pipelineContext.progressiveRender,o=r.view,s=a&&HP(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,t,n,a),fH[l]}var fH={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)}}},_h="\0__throttleOriginMethod",Nb="\0__throttleRate",Bb="\0__throttleType";function zS(r,e,t){var n,a=0,i=0,o=null,s,l,u,f;e=e||0;function v(){i=new Date().getTime(),o=null,r.apply(l,u||[])}var c=function(){for(var h=[],d=0;d<arguments.length;d++)h[d]=arguments[d];n=new Date().getTime(),l=this,u=h;var p=f||e,g=f||t;f=null,s=n-(g?a:i)-p,clearTimeout(o),g?o=setTimeout(v,p):s>=0?v():o=setTimeout(v,-s),a=n};return c.clear=function(){o&&(clearTimeout(o),o=null)},c.debounceNextCall=function(h){f=h},c}function Ml(r,e,t,n){var a=r[e];if(a){var i=a[_h]||a,o=a[Bb],s=a[Nb];if(s!==t||o!==n){if(t==null||!n)return r[e]=i;a=r[e]=zS(i,t,n==="debounce"),a[_h]=i,a[Bb]=n,a[Nb]=t}return a}}function nf(r,e){var t=r[e];t&&t[_h]&&(t.clear&&t.clear(),r[e]=t[_h])}var Vb=me(),zb={itemStyle:bo(B2,!0),lineStyle:bo(N2,!0)},vH={lineStyle:"stroke",itemStyle:"fill"};function UP(r,e){var t=r.visualStyleMapper||zb[e];return t||(console.warn("Unknown style type '"+e+"'."),zb.itemStyle)}function $P(r,e){var t=r.visualDrawType||vH[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var cH={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=r.getModel(n),i=UP(r,n),o=i(a),s=a.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=$P(r,n),u=o[l],f=ie(u)?u:null,v=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||v){var c=r.getColorFromPalette(r.name,null,e.getSeriesCount());o[l]||(o[l]=c,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||ie(o.fill)?c:o.fill,o.stroke=o.stroke==="auto"||ie(o.stroke)?c:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(r)&&f)return t.setVisual("colorFromPalette",!1),{dataEach:function(h,d){var p=r.getDataParams(d),g=G({},o);g[l]=f(p),h.setItemVisual(d,"style",g)}}}},Hl=new Ie,hH={createOnAllSeries:!0,reset:function(r,e){if(!r.ignoreStyleOnData){var t=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=UP(r,n),i=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Hl.option=l[n];var u=a(Hl),f=o.ensureUniqueItemVisual(s,"style");G(f,u),Hl.option.decal&&(o.setItemVisual(s,"decal",Hl.option.decal),Hl.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},dH={performRawSeries:!0,overallReset:function(r){var e=K();r.eachSeries(function(t){if(!t.isColorBySeries()){var n=t.type+"-"+t.getColorBy();Vb(t).scope=e.get(n)||e.set(n,{})}}),r.eachSeries(function(t){if(!t.isColorBySeries()){var n=t.getRawData(),a={},i=t.getData(),o=Vb(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=$P(t,s);i.each(function(u){var f=i.getRawIndex(u);a[f]=u}),n.each(function(u){var f=a[u],v=i.getItemVisual(f,"colorFromPalette");if(v){var c=i.ensureUniqueItemVisual(f,"style"),h=n.getName(u)||u+"",d=n.count();c[l]=t.getColorFromPalette(h,o,d)}})}})}},Tv=Math.PI;function pH(r,e){e=e||{},le(e,{text:"loading",textColor:N.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:N.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var t=new oe,n=new be({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(n);var a=new Re({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 be({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(i);var o;return e.showSpinner&&(o=new Od({shape:{startAngle:-Tv/2,endAngle:-Tv/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:Tv*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Tv*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=a.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),f=r.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:f}),i.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},t.resize(),t}var WP=(function(){function r(e,t,n,a){this._stageTaskMap=K(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return r.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},r.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),a=n.context,i=!t&&n.progressiveEnabled&&(!a||a.progressiveRender)&&e.__idxInPipeline>n.blockIndex,o=i?n.step:null,s=a&&a.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 n=this._pipelineMap.get(e.uid),a=e.__preparePipelineContext?e.__preparePipelineContext(t,n):FL(e,t,n);e.pipelineContext=n.context=a},r.prototype.restorePipelines=function(e,t){var n=this,a=n._pipelineMap=K();t.eachSeries(function(i){var o=e.painter.type==="canvas"&&i.getProgressive(),s=i.uid;a.set(s,{id:s,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:o&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),n._pipe(i,i.dataTask)})},r.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;M(this._allHandlers,function(a){var i=e.get(a.uid)||e.set(a.uid,{}),o="";Yt(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,t,n),a.overallReset&&this._createOverallStageTask(a,i,t,n)},this)},r.prototype.prepareView=function(e,t,n,a){var i=e.renderTask,o=i.context;o.model=t,o.ecModel=n,o.api=a,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,n){this._performStageTasks(this._visualHandlers,e,t,n)},r.prototype._performStageTasks=function(e,t,n,a){a=a||{};var i=!1,o=this;M(e,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),v=f.seriesTaskMap,c=f.overallTask;if(c){var h,d=c.agentStubMap;d.each(function(g){s(a,g)&&(g.dirty(),h=!0)}),h&&c.dirty(),o.updatePayload(c,n);var p=o.getPerformArgs(c,a.block);d.each(function(g){g.perform(p)}),c.perform(p)&&(i=!0)}else v&&v.each(function(g,y){s(a,g)&&g.dirty();var m=o.getPerformArgs(g,a.block);m.skip=!l.performRawSeries&&t.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(m)&&(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(n){t=n.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,n,a){var i=this,o=t.seriesTaskMap,s=t.seriesTaskMap=K(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,a).each(f);function f(v){var c=v.uid,h=s.set(c,o&&o.get(c)||Bu({plan:SH,reset:xH,count:bH}));h.context={model:v,ecModel:n,api:a,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(v,h)}},r.prototype._createOverallStageTask=function(e,t,n,a){var i=this,o=t.overallTask=t.overallTask||Bu({reset:gH});o.context={ecModel:n,api:a,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=K(),u=e.seriesType,f=e.getTargetSeries,v=e.dirtyOnOverallProgress,c=!1,h="";Yt(!e.createOnAllSeries,h),u?n.eachRawSeriesByType(u,d):f?f(n,a).each(d):M(n.getSeries(),d);function d(p){var g=p.uid,y=l.set(g,s&&s.get(g)||(c=!0,Bu({reset:yH,onDirty:_H})));y.context={model:p,dirtyOnOverallProgress:v},y.agent=o,y.__block=v,i._pipe(p,y)}c&&o.dirty()},r.prototype._pipe=function(e,t){var n=e.uid,a=this._pipelineMap.get(n);!a.head&&(a.head=t),a.tail&&a.tail.pipe(t),a.tail=t,t.__idxInPipeline=a.count++,t.__pipeline=a},r.wrapStageHandler=function(e,t){return ie(e)&&(e={overallReset:e,seriesType:CH(e)}),e.uid=Zo("stageHandler"),t&&(e.visualType=t),e},r})();function gH(r){r.overallReset(r.ecModel,r.api,r.payload)}function yH(r){return r.dirtyOnOverallProgress&&mH}function mH(){this.agent.dirty(),this.getDownstream().dirty()}function _H(){this.agent&&this.agent.dirty()}function SH(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function xH(r){r.useClearVisual&&r.data.clearAllVisual();var e=r.resetDefines=Ye(r.reset(r.model,r.ecModel,r.api,r.payload));return e.length>1?$(e,function(t,n){return YP(n)}):wH}var wH=YP(0);function YP(r){return function(e,t){var n=t.data,a=t.resetDefines[r];if(a&&a.dataEach)for(var i=e.start;i<e.end;i++)a.dataEach(n,i);else a&&a.progress&&a.progress(e,n)}}function bH(r){return r.data.count()}function CH(r){Sh=null;try{r(af,XP)}catch{}return Sh}var af={},XP={},Sh;ZP(af,kS);ZP(XP,t2);af.eachSeriesByType=af.eachRawSeriesByType=function(r){Sh=r};af.eachComponent=function(r){r.mainType==="series"&&r.subType&&(Sh=r.subType)};function ZP(r,e){for(var t in e.prototype)r[t]=ot}var ne=N.darkColor,Fb=ne.background,Ul=function(){return{axisLine:{lineStyle:{color:ne.axisLine}},splitLine:{lineStyle:{color:ne.axisSplitLine}},splitArea:{areaStyle:{color:[ne.backgroundTint,ne.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:ne.axisMinorSplitLine}},axisLabel:{color:ne.axisLabel},axisName:{}}},Gb={label:{color:ne.secondary},itemStyle:{borderColor:ne.borderTint},dividerLineStyle:{color:ne.border}},jP={darkMode:!0,color:ne.theme,backgroundColor:Fb,axisPointer:{lineStyle:{color:ne.border},crossStyle:{color:ne.borderShade},label:{color:ne.tertiary}},legend:{textStyle:{color:ne.secondary},pageTextStyle:{color:ne.tertiary}},textStyle:{color:ne.secondary},title:{textStyle:{color:ne.primary},subtextStyle:{color:ne.quaternary}},toolbox:{iconStyle:{borderColor:ne.accent50},feature:{dataView:{backgroundColor:Fb,textColor:ne.primary,textareaColor:ne.background,textareaBorderColor:ne.border,buttonColor:ne.accent50,buttonTextColor:ne.neutral00}}},tooltip:{backgroundColor:ne.neutral20,defaultBorderColor:ne.border,textStyle:{color:ne.tertiary}},dataZoom:{borderColor:ne.accent10,textStyle:{color:ne.tertiary},brushStyle:{color:ne.backgroundTint},handleStyle:{color:ne.neutral00,borderColor:ne.accent20},moveHandleStyle:{color:ne.accent40},emphasis:{handleStyle:{borderColor:ne.accent50}},dataBackground:{lineStyle:{color:ne.accent30},areaStyle:{color:ne.accent20}},selectedDataBackground:{lineStyle:{color:ne.accent50},areaStyle:{color:ne.accent30}}},visualMap:{textStyle:{color:ne.secondary},handleStyle:{borderColor:ne.neutral30}},timeline:{lineStyle:{color:ne.accent10},label:{color:ne.tertiary},controlStyle:{color:ne.accent30,borderColor:ne.accent30}},calendar:{itemStyle:{color:ne.neutral00,borderColor:ne.neutral20},dayLabel:{color:ne.tertiary},monthLabel:{color:ne.secondary},yearLabel:{color:ne.secondary}},matrix:{x:Gb,y:Gb,backgroundColor:{borderColor:ne.axisLine},body:{itemStyle:{borderColor:ne.borderTint}}},timeAxis:Ul(),logAxis:Ul(),valueAxis:Ul(),categoryAxis:Ul(),line:{symbol:"circle"},graph:{color:ne.theme},gauge:{title:{color:ne.secondary},axisLine:{lineStyle:{color:[[1,ne.neutral05]]}},axisLabel:{color:ne.axisLabel},detail:{color:ne.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:ne.background}},radar:(function(){var r=Ul();return r.axisName={color:ne.axisLabel},r.axisLine.lineStyle.color=ne.neutral20,r})(),treemap:{breadcrumb:{itemStyle:{color:ne.neutral20,textStyle:{color:ne.secondary}},emphasis:{itemStyle:{color:ne.neutral30}}}},sunburst:{itemStyle:{borderColor:ne.background}},map:{itemStyle:{borderColor:ne.border,areaColor:ne.neutral10},label:{color:ne.tertiary},emphasis:{label:{color:ne.primary},itemStyle:{areaColor:ne.highlight}},select:{label:{color:ne.primary},itemStyle:{areaColor:ne.highlight}}},geo:{itemStyle:{borderColor:ne.border,areaColor:ne.neutral10},emphasis:{label:{color:ne.primary},itemStyle:{areaColor:ne.highlight}},select:{label:{color:ne.primary},itemStyle:{color:ne.highlight}}}};jP.categoryAxis.splitLine.show=!1;var TH=(function(){function r(){}return r.prototype.normalizeQuery=function(e){var t={},n={},a={};if(Z(e)){var i=xn(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};M(e,function(l,u){for(var f=!1,v=0;v<o.length;v++){var c=o[v],h=u.lastIndexOf(c);if(h>0&&h===u.length-c.length){var d=u.slice(0,h);d!=="data"&&(t.mainType=d,t[c.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(a[u]=l)})}return{cptQuery:t,dataQuery:n,otherQuery:a}},r.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var a=n.targetEl,i=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=t.cptQuery,u=t.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,i,"name")&&f(u,i,"dataIndex")&&f(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,a,i));function f(v,c,h,d){return v[h]==null||c[d||h]===v[h]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r})(),S0=["symbol","symbolSize","symbolRotate","symbolOffset"],Hb=S0.concat(["symbolKeepAspect"]),AH={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 n={},a={},i=!1,o=0;o<S0.length;o++){var s=S0[o],l=r.get(s);ie(l)?(i=!0,a[s]=l):n[s]=l}if(n.symbol=n.symbol||r.defaultSymbol,t.setVisual(G({legendIcon:r.legendIcon||n.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},n)),e.isSeriesFiltered(r))return;var u=De(a);function f(v,c){for(var h=r.getRawValue(c),d=r.getDataParams(c),p=0;p<u.length;p++){var g=u[p];v.setItemVisual(c,g,a[g](h,d))}}return{dataEach:i?f:null}}},MH={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!r.hasSymbolVisual||e.isSeriesFiltered(r))return;var t=r.getData();function n(a,i){for(var o=a.getItemModel(i),s=0;s<Hb.length;s++){var l=Hb[s],u=o.getShallow(l,!0);u!=null&&a.setItemVisual(i,l,u)}}return{dataEach:t.hasItemOption?n:null}}};function FS(r,e,t){switch(t){case"color":var n=r.getItemVisual(e,"style");return n[r.getVisual("drawType")];case"opacity":return r.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(e,t)}}function Gf(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 qP(r,e,t,n){switch(t){case"color":var a=r.ensureUniqueItemVisual(e,"style");a[r.getVisual("drawType")]=n,r.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":r.ensureUniqueItemVisual(e,"style").opacity=n;break;case"symbol":case"symbolSize":case"liftZ":r.setItemVisual(e,t,n);break}}function KP(r,e){function t(n,a){var i=[];return n.eachComponent({mainType:"series",subType:r,query:a},function(o){i.push(o.seriesIndex)}),i}M([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(n){e(n[0],function(a,i,o){a=G({},a),o.dispatchAction(G(a,{type:n[1],seriesIndex:t(i,a)}))})})}function cs(r,e,t,n,a){var i=r+e;t.isSilent(i)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=a.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var v=o.getData(),c=xo(v,a.fromActionPayload);t.trigger(i,{type:i,seriesId:o.id,name:U(c)?v.getName(c[0]):v.getName(c),selected:Z(l)?l:G({},l)})}})}function DH(r,e,t){r.on("selectchanged",function(n){var a=t.getModel();n.isFromClick?(cs("map","selectchanged",e,a,n),cs("pie","selectchanged",e,a,n)):n.fromAction==="select"?(cs("map","selected",e,a,n),cs("pie","selected",e,a,n)):n.fromAction==="unselect"&&(cs("map","unselected",e,a,n),cs("pie","unselected",e,a,n))})}function so(r,e,t){for(var n;r&&!(e(r)&&(n=r,t));)r=r.__hostTarget||r.parent;return n}var Ir=new Wr,JP={};function IH(r,e){JP[r]=e}function LH(r){return JP[r]}var QP={};function PH(r,e){QP[r]=e}function RH(r){return QP[r]}var Wd=me();function EH(r){Wd(r).prepare={}}function kH(r){Wd(r).fullUpdate={}}function eR(r){return Wd(r).prepare}function Dl(r){return Wd(r).fullUpdate}var OH=Math.round(Math.random()*9),NH=typeof Object.defineProperty=="function",BH=(function(){function r(){this._id="__ec_inner_"+OH++}return r.prototype.get=function(e){return this._guard(e)[this._id]},r.prototype.set=function(e,t){var n=this._guard(e);return NH?Object.defineProperty(n,this._id,{value:t,enumerable:!1,configurable:!0}):n[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})(),VH=Ae.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,n=e.cy,a=e.width/2,i=e.height/2;r.moveTo(t,n-i),r.lineTo(t+a,n+i),r.lineTo(t-a,n+i),r.closePath()}}),zH=Ae.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,n=e.cy,a=e.width/2,i=e.height/2;r.moveTo(t,n-i),r.lineTo(t+a,n),r.lineTo(t,n+i),r.lineTo(t-a,n),r.closePath()}}),FH=Ae.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.x,n=e.y,a=e.width/5*3,i=Math.max(a,e.height),o=a/2,s=o*o/(i-o),l=n-i+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,v=Math.sin(u),c=Math.cos(u),h=o*.6,d=o*.7;r.moveTo(t-f,l+s),r.arc(t,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(t+f-v*h,l+s+c*h,t,n-d,t,n),r.bezierCurveTo(t,n-d,t-f+v*h,l+s+c*h,t-f,l+s),r.closePath()}}),GH=Ae.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.height,n=e.width,a=e.x,i=e.y,o=n/3*2;r.moveTo(a,i),r.lineTo(a+o,i+t),r.lineTo(a,i+t/4*3),r.lineTo(a-o,i+t),r.lineTo(a,i),r.closePath()}}),HH={line:dt,rect:be,roundRect:be,square:be,circle:Sa,diamond:zH,pin:FH,arrow:GH,triangle:VH},UH={line:function(r,e,t,n,a){a.x1=r,a.y1=e+n/2,a.x2=r+t,a.y2=e+n/2},rect:function(r,e,t,n,a){a.x=r,a.y=e,a.width=t,a.height=n},roundRect:function(r,e,t,n,a){a.x=r,a.y=e,a.width=t,a.height=n,a.r=Math.min(t,n)/4},square:function(r,e,t,n,a){var i=Math.min(t,n);a.x=r,a.y=e,a.width=i,a.height=i},circle:function(r,e,t,n,a){a.cx=r+t/2,a.cy=e+n/2,a.r=Math.min(t,n)/2},diamond:function(r,e,t,n,a){a.cx=r+t/2,a.cy=e+n/2,a.width=t,a.height=n},pin:function(r,e,t,n,a){a.x=r+t/2,a.y=e+n/2,a.width=t,a.height=n},arrow:function(r,e,t,n,a){a.x=r+t/2,a.y=e+n/2,a.width=t,a.height=n},triangle:function(r,e,t,n,a){a.cx=r+t/2,a.cy=e+n/2,a.width=t,a.height=n}},xh={};M(HH,function(r,e){xh[e]=new r});var $H=Ae.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,e,t){var n=ih(r,e,t),a=this.shape;return a&&a.symbolType==="pin"&&e.position==="inside"&&(n.y=t.y+t.height*.4),n},buildPath:function(r,e,t){var n=e.symbolType;if(n!=="none"){var a=xh[n];a||(n="rect",a=xh[n]),UH[n](e.x,e.y,e.width,e.height,a.shape),a.buildPath(r,a.shape,t)}}});function WH(r,e){if(this.type!=="image"){var t=this.style;this.__isEmptyBrush?(t.stroke=r,t.fill=e||N.color.neutral00,t.lineWidth=2):this.shape.symbolType==="line"?t.stroke=r:t.fill=r,this.markRedraw()}}function gt(r,e,t,n,a,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=A2(r.slice(8),new se(e,t,n,a),o?"center":"cover"):r.indexOf("path://")===0?l=Qu(r.slice(7),{},new se(e,t,n,a),o?"center":"cover"):l=new $H({shape:{symbolType:r,x:e,y:t,width:n,height:a}}),l.__isEmptyBrush=s,l.setColor=WH,i&&l.setColor(i),l}function Il(r){return U(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function Ko(r,e){if(r!=null)return U(r)||(r=[r,r]),[j(r[0],e[0])||0,j(Q(r[1],r[0]),e[1])||0]}function lo(r){return isFinite(r)}function YH(r,e,t){var n=e.x==null?0:e.x,a=e.x2==null?1:e.x2,i=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(n=n*t.width+t.x,a=a*t.width+t.x,i=i*t.height+t.y,o=o*t.height+t.y),n=lo(n)?n:0,a=lo(a)?a:1,i=lo(i)?i:0,o=lo(o)?o:0;var s=r.createLinearGradient(n,i,a,o);return s}function XH(r,e,t){var n=t.width,a=t.height,i=Math.min(n,a),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*n+t.x,s=s*a+t.y,l=l*i),o=lo(o)?o:.5,s=lo(s)?s:.5,l=l>=0&&lo(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function x0(r,e,t){for(var n=e.type==="radial"?XH(r,e,t):YH(r,e,t),a=e.colorStops,i=0;i<a.length;i++)n.addColorStop(a[i].offset,a[i].color);return n}function ZH(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 Av(r){return parseInt(r,10)}function Os(r,e,t){var n=["width","height"][e],a=["clientWidth","clientHeight"][e],i=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(t[n]!=null&&t[n]!=="auto")return parseFloat(t[n]);var s=document.defaultView.getComputedStyle(r);return(r[a]||Av(s[n])||Av(r.style[n]))-(Av(s[i])||0)-(Av(s[o])||0)||0}function jH(r,e){return!r||r==="solid"||!(e>0)?null:r==="dashed"?[4*e,2*e]:r==="dotted"?[e]:Ee(r)?[r]:U(r)?r:null}function GS(r){var e=r.style,t=e.lineDash&&e.lineWidth>0&&jH(e.lineDash,e.lineWidth),n=e.lineDashOffset;if(t){var a=e.strokeNoScale&&r.getLineScale?r.getLineScale():1;a&&a!==1&&(t=$(t,function(i){return i/a}),n/=a)}return[t,n]}var qH=new Bn(!0);function wh(r){var e=r.stroke;return!(e==null||e==="none"||!(r.lineWidth>0))}function Ub(r){return typeof r=="string"&&r!=="none"}function bh(r){var e=r.fill;return e!=null&&e!=="none"}function $b(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 Wb(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 w0(r,e,t){var n=oS(e.image,e.__image,t);if(Md(n)){var a=r.createPattern(n,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(e.x||0,e.y||0),i.rotateSelf(0,0,(e.rotation||0)*bc),i.scaleSelf(e.scaleX||1,e.scaleY||1),a.setTransform(i)}return a}}function KH(r,e,t,n,a){var i,o=wh(t),s=bh(t),l=t.strokePercent,u=l<1,f=!e.path;(!e.silent||u)&&f&&e.createPathProxy();var v=e.path||qH,c=e.__dirty;if(!n){var h=t.fill,d=t.stroke,p=s&&!!h.colorStops,g=o&&!!d.colorStops,y=s&&!!h.image,m=o&&!!d.image,_=void 0,S=void 0,x=void 0,w=void 0,b=void 0;(p||g)&&(b=e.getBoundingRect()),p&&(_=c?x0(r,h,b):e.__canvasFillGradient,e.__canvasFillGradient=_),g&&(S=c?x0(r,d,b):e.__canvasStrokeGradient,e.__canvasStrokeGradient=S),y&&(x=c||!e.__canvasFillPattern?w0(r,h,e):e.__canvasFillPattern,e.__canvasFillPattern=x),m&&(w=c||!e.__canvasStrokePattern?w0(r,d,e):e.__canvasStrokePattern,e.__canvasStrokePattern=w),p?r.fillStyle=_:y&&(x?r.fillStyle=x:s=!1),g?r.strokeStyle=S:m&&(w?r.strokeStyle=w:o=!1)}var T=e.getGlobalScale();v.setScale(T[0],T[1],e.segmentIgnoreThreshold);var C,A;r.setLineDash&&t.lineDash&&(i=GS(e),C=i[0],A=i[1]);var D=!0;(f||c&Ms)&&(v.setDPR(r.dpr),u?v.setContext(null):(v.setContext(r),D=!1),v.reset(),e.buildPath(v,e.shape,n),v.toStatic(),e.pathUpdated()),D&&v.rebuildPath(r,u?l:1),C&&(r.setLineDash(C),r.lineDashOffset=A),n?(a.batchFill=s,a.batchStroke=o):t.strokeFirst?(o&&Wb(r,t),s&&$b(r,t)):(s&&$b(r,t),o&&Wb(r,t)),C&&r.setLineDash([])}function JH(r,e,t){var n=e.__image=oS(t.image,e.__image,e,e.onload);if(!(!n||!Md(n))){var a=t.x||0,i=t.y||0,o=e.getWidth(),s=e.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),t.sWidth&&t.sHeight){var u=t.sx||0,f=t.sy||0;r.drawImage(n,u,f,t.sWidth,t.sHeight,a,i,o,s)}else if(t.sx&&t.sy){var u=t.sx,f=t.sy,v=o-u,c=s-f;r.drawImage(n,u,f,v,c,a,i,o,s)}else r.drawImage(n,a,i,o,s)}}function QH(r,e,t){var n,a=t.text;if(a!=null&&(a+=""),a){r.font=t.font||la,r.textAlign=t.textAlign,r.textBaseline=t.textBaseline;var i=void 0,o=void 0;r.setLineDash&&t.lineDash&&(n=GS(e),i=n[0],o=n[1]),i&&(r.setLineDash(i),r.lineDashOffset=o),t.strokeFirst?(wh(t)&&r.strokeText(a,t.x,t.y),bh(t)&&r.fillText(a,t.x,t.y)):(bh(t)&&r.fillText(a,t.x,t.y),wh(t)&&r.strokeText(a,t.x,t.y)),i&&r.setLineDash([])}}var Yb=["shadowBlur","shadowOffsetX","shadowOffsetY"],Xb=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function tR(r,e,t,n,a){var i=!1;if(!n&&(t=t||{},e===t))return!1;if(n||e.opacity!==t.opacity){er(r,a),i=!0;var o=Math.max(Math.min(e.opacity,1),0);r.globalAlpha=isNaN(o)?co.opacity:o}(n||e.blend!==t.blend)&&(i||(er(r,a),i=!0),r.globalCompositeOperation=e.blend||co.blend);for(var s=0;s<Yb.length;s++){var l=Yb[s];(n||e[l]!==t[l])&&(i||(er(r,a),i=!0),r[l]=r.dpr*(e[l]||0))}return(n||e.shadowColor!==t.shadowColor)&&(i||(er(r,a),i=!0),r.shadowColor=e.shadowColor||co.shadowColor),i}function Zb(r,e,t,n,a){var i=e.style,o=n?null:t&&t.style||{};if(i===o)return!1;var s=tR(r,i,o,n,a);if((n||i.fill!==o.fill)&&(s||(er(r,a),s=!0),Ub(i.fill)&&(r.fillStyle=i.fill)),(n||i.stroke!==o.stroke)&&(s||(er(r,a),s=!0),Ub(i.stroke)&&(r.strokeStyle=i.stroke)),(n||i.opacity!==o.opacity)&&(s||(er(r,a),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,a),s=!0),r.lineWidth=u)}for(var f=0;f<Xb.length;f++){var v=Xb[f],c=v[0];(n||i[c]!==o[c])&&(s||(er(r,a),s=!0),r[c]=i[c]||v[1])}return s}function e4(r,e,t,n,a){return tR(r,e.style,t&&t.style,n,a)}function rR(r,e){var t=e.transform,n=r.dpr||1;t?r.setTransform(n*t[0],n*t[1],n*t[2],n*t[3],n*t[4],n*t[5]):r.setTransform(n,0,0,n,0,0)}function t4(r,e,t){for(var n=!1,a=0;a<r.length;a++){var i=r[a];n=n||i.isZeroArea(),rR(e,i),e.beginPath(),i.buildPath(e,i.shape),e.clip()}t.allClipped=n}function r4(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 jb=1,qb=2,Kb=3,Jb=4;function n4(r){var e=bh(r),t=wh(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&&(e.batchFill=!1,r.fill()),e.batchStroke&&(e.batchStroke=!1,r.stroke())}function nR(r,e){var t={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};uo(r,e,t),Ys(r,t)}function uo(r,e,t){var n=e.transform;if(!e.shouldBePainted(t.viewWidth,t.viewHeight,!1,!1)){e.__dirty&=~vr,e.__isRendered=!1;return}var a=e.__clipPaths,i=t.prevElClipPaths,o=e.style,s=!1,l=!1;if((!i||ZH(a,i))&&(i&&(er(r,t),r.restore(),l=s=!0,t.prevElClipPaths=null,t.allClipped=!1,t.prevEl=null),a&&a.length&&(er(r,t),r.save(),t4(a,r,t),s=!0,t.prevElClipPaths=a)),t.allClipped){e.__dirty&=~vr,e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(t.beforeBrushParam),e.innerBeforeBrush();var u=t.prevEl;u||(l=s=!0);var f=e instanceof Ae&&e.autoBatch&&n4(o);s||r4(n,u.transform)?(er(r,t),rR(r,e)):f||er(r,t),e instanceof Ae?(t.lastDrawType!==jb&&(l=!0,t.lastDrawType=jb),Zb(r,e,u,l,t),(!f||!t.batchFill&&!t.batchStroke)&&r.beginPath(),KH(r,e,o,f,t)):e instanceof el?(t.lastDrawType!==Kb&&(l=!0,t.lastDrawType=Kb),Zb(r,e,u,l,t),QH(r,e,o)):e instanceof Rt?(t.lastDrawType!==qb&&(l=!0,t.lastDrawType=qb),e4(r,e,u,l,t),JH(r,e,o)):e.getTemporalDisplayables&&(t.lastDrawType!==Jb&&(l=!0,t.lastDrawType=Jb),a4(r,e,t)),e.innerAfterBrush(),e.afterBrush&&(f&&er(r,t),e.afterBrush()),t.prevEl=e,e.__dirty=0,e.__isRendered=!0}function Ys(r,e){er(r,e),e.prevElClipPaths&&r.restore()}function a4(r,e,t){var n=e.getDisplayables(),a=e.getTemporalDisplayables();r.save();var i={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:t.viewWidth,viewHeight:t.viewHeight,inHover:t.inHover,beforeBrushParam:{}},o,s;for(o=e.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(t.beforeBrushParam),l.innerBeforeBrush(),uo(r,l,i),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}Ys(r,i);for(var u=0,f=a.length;u<f;u++){var l=a[u];l.beforeBrush&&l.beforeBrush(t.beforeBrushParam),l.innerBeforeBrush(),uo(r,l,i),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}Ys(r,i),e.clearTemporalDisplayables(),e.notClear=!0,r.restore()}var gg=new BH,Qb=new Ks(100),eC=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function nl(r,e){if(r==="none")return null;var t=e.getDevicePixelRatio(),n=e.getZr(),a=n.painter.type==="svg";r.dirty&&gg.delete(r);var i=gg.get(r);if(i)return i;var o=le(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=a?1:1/t,gg.set(r,s),r.dirty=!1,s;function l(u){for(var f=[t],v=!0,c=0;c<eC.length;++c){var h=o[eC[c]];if(h!=null&&!U(h)&&!Z(h)&&!Ee(h)&&typeof h!="boolean"){v=!1;break}f.push(h)}var d;if(v){d=f.join(",")+(a?"-svg":"");var p=Qb.get(d);p&&(a?u.svgElement=p:u.image=p)}var g=iR(o.dashArrayX),y=i4(o.dashArrayY),m=aR(o.symbol),_=o4(g),S=oR(y),x=!a&&rr.createCanvas(),w=a&&{tag:"g",attrs:{},key:"dcl",children:[]},b=C(),T;x&&(x.width=b.width*t,x.height=b.height*t,T=x.getContext("2d")),A(),v&&Qb.put(d,x||w),u.image=x,u.svgElement=w,u.svgWidth=b.width,u.svgHeight=b.height;function C(){for(var D=1,L=0,I=_.length;L<I;++L)D=pw(D,_[L]);for(var P=1,L=0,I=m.length;L<I;++L)P=pw(P,m[L].length);D*=P;var R=S*_.length*m.length;return{width:Math.max(1,Math.min(D,o.maxTileWidth)),height:Math.max(1,Math.min(R,o.maxTileHeight))}}function A(){T&&(T.clearRect(0,0,x.width,x.height),o.backgroundColor&&(T.fillStyle=o.backgroundColor,T.fillRect(0,0,x.width,x.height)));for(var D=0,L=0;L<y.length;++L)D+=y[L];if(D<=0)return;for(var I=-S,P=0,R=0,E=0;I<b.height;){if(P%2===0){for(var O=R/2%m.length,k=0,z=0,F=0;k<b.width*2;){for(var H=0,L=0;L<g[E].length;++L)H+=g[E][L];if(H<=0)break;if(z%2===0){var W=(1-o.symbolSize)*.5,X=k+g[E][z]*W,Y=I+y[P]*W,ee=g[E][z]*o.symbolSize,ye=y[P]*o.symbolSize,Ne=F/2%m[O].length;ce(X,Y,ee,ye,m[O][Ne])}k+=g[E][z],++F,++z,z===g[E].length&&(z=0)}++E,E===g.length&&(E=0)}I+=y[P],++R,++P,P===y.length&&(P=0)}function ce(te,ge,re,he,$e){var Pe=a?1:t,Ge=gt($e,te*Pe,ge*Pe,re*Pe,he*Pe,o.color,o.symbolKeepAspect);if(a){var We=n.painter.renderOneToVNode(Ge);We&&w.children.push(We)}else nR(T,Ge)}}}}function aR(r){if(!r||r.length===0)return[["rect"]];if(Z(r))return[[r]];for(var e=!0,t=0;t<r.length;++t)if(!Z(r[t])){e=!1;break}if(e)return aR([r]);for(var n=[],t=0;t<r.length;++t)Z(r[t])?n.push([r[t]]):n.push(r[t]);return n}function iR(r){if(!r||r.length===0)return[[0,0]];if(Ee(r)){var e=Math.ceil(r);return[[e,e]]}for(var t=!0,n=0;n<r.length;++n)if(!Ee(r[n])){t=!1;break}if(t)return iR([r]);for(var a=[],n=0;n<r.length;++n)if(Ee(r[n])){var e=Math.ceil(r[n]);a.push([e,e])}else{var e=$(r[n],function(s){return Math.ceil(s)});e.length%2===1?a.push(e.concat(e)):a.push(e)}return a}function i4(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(Ee(r)){var e=Math.ceil(r);return[e,e]}var t=$(r,function(n){return Math.ceil(n)});return r.length%2?t.concat(t):t}function o4(r){return $(r,function(e){return oR(e)})}function oR(r){for(var e=0,t=0;t<r.length;++t)e+=r[t];return r.length%2===1?e*2:e}var s4=Rf(l4);function l4(r,e){r.eachRawSeries(function(t){if(!r.isSeriesFiltered(t)){var n=t.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=nl(s,e)}});var a=n.getVisual("decal");if(a){var i=n.getVisual("style");i.decal=nl(a,e)}}})}var u4=1,f4=800,v4=900,c4=920,h4=1e3,d4=2e3,tC=5e3,sR=1e3,p4=1100,HS=2e3,lR=3e3,g4=4e3,Yd=4500,y4=4600,m4=5e3,_4=6e3,uR=7e3,S4={PROCESSOR:{SERIES_FILTER:f4,AXIS_STATISTICS:c4,FILTER:h4,STATISTIC:tC,STATISTICS:tC},VISUAL:{LAYOUT:sR,PROGRESSIVE_LAYOUT:p4,GLOBAL:HS,CHART:lR,POST_CHART_LAYOUT:y4,COMPONENT:g4,BRUSH:m4,CHART_ITEM:Yd,ARIA:_4,DECAL:uR}},yt="__flagInMainProcess",Mv="__mainProcessVersion",Dt="__pendingUpdate",yg="__needsUpdateStatus",rC=/^[a-zA-Z0-9_]+$/,mg="__connectUpdateStatus",nC=0,x4=1,w4=2;function fR(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(this.isDisposed()){this.id;return}return cR(this,r,e)}}function vR(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return cR(this,r,e)}}function cR(r,e,t){return t[0]=t[0]&&t[0].toLowerCase(),Wr.prototype[e].apply(r,t)}var hR=(function(r){B(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(Wr),dR=hR.prototype;dR.on=vR("on");dR.off=vR("off");var Vi,_g,Dv,Xn,Iv,Sg,xg,hs,ds,aC,iC,wg,oC,Lv,sC,pR,Tr,lC,ps,gR=(function(r){B(e,r);function e(t,n,a){var i=r.call(this,new TH)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],a=a||{},i.__v_skip=!0,i._dom=t;var o="canvas",s="auto",l=!1;i[Mv]=1,a.ssr&&Uz(function(c){var h=ve(c),d=h.dataIndex;if(d!=null){var p=K();return p.set("series_index",h.seriesIndex),p.set("data_index",d),h.ssrType&&p.set("ssr_type",h.ssrType),p}});var u=i._zr=cw(t,{renderer:a.renderer||o,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:Q(a.useDirtyRect,l),useCoarsePointer:Q(a.useCoarsePointer,s),pointerSize:a.pointerSize});i._ssr=a.ssr,i._throttledZrFlush=zS(q(u.flush,u),17),i._updateTheme(n),i._locale=IG(a.locale||V2),i._coordSysMgr=new zf;var f=i._api=sC(i);function v(c,h){return c.__prio-h.__prio}return Ac(Th,v),Ac(T0,v),i._scheduler=new WP(i,f,T0,Th),i._messageCenter=new hR,i._initEvents(),i.resize=q(i.resize,i),u.animation.on("frame",i._onframe,i),aC(u,i),iC(u,i),qc(i),i}return e.prototype._onframe=function(){if(!this._disposed){var t=this._scheduler,n=this._model,a=this._api;if(lC(this),this[Dt]){var i=this[Dt].silent;this[yt]=!0,ps(this);try{Vi(this),Xn.update.call(this,null,this[Dt].updateParams)}catch(l){throw this[yt]=!1,this[Dt]=null,l}this._zr.flush(),this[yt]=!1,this[Dt]=null,hs.call(this,i),ds.call(this,i)}else if(t.unfinished){var o=u4;do{t.unfinished=!1;var s=rr.getTime();t.performSeriesTasks(n),t.performDataProcessorTasks(n),Sg(this,n),t.performVisualTasks(n),Lv(this,this._model,a,"remain",{}),o-=rr.getTime()-s}while(o>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,n,a){if(!this[yt]){if(this._disposed){this.id;return}var i,o,s;if(fe(n)&&(a=n.lazyUpdate,i=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[yt]=!0,ps(this),!this._model||n){var l=new s3(this._api),u=this._theme,f=this._model=new kS;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},A0);var v={seriesTransition:s,optionChanged:!0};if(a)this[Dt]={silent:i,updateParams:v},this[yt]=!1,this.getZr().wakeUp();else{try{Vi(this),Xn.update.call(this,null,v)}catch(c){throw this[Dt]=null,this[yt]=!1,c}this._ssr||this._zr.flush(),this[Dt]=null,this[yt]=!1,hs.call(this,i),ds.call(this,i)}}},e.prototype.setTheme=function(t,n){if(!this[yt]){if(this._disposed){this.id;return}var a=this._model;if(a){var i=n&&n.silent,o=null;this[Dt]&&(i==null&&(i=this[Dt].silent),o=this[Dt].updateParams,this[Dt]=null),this[yt]=!0,ps(this);try{this._updateTheme(t),a.setTheme(this._theme),Vi(this),Xn.update.call(this,{type:"setTheme"},o)}catch(s){throw this[yt]=!1,s}this[yt]=!1,hs.call(this,i),ds.call(this,i)}}},e.prototype._updateTheme=function(t){Z(t)&&(t=yR[t]),t&&(t=ae(t),t&&mP(t,!0),this._theme=t)},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||Le.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var n=this._zr.painter;return n.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){var t=this._zr,n=t.storage.getDisplayList();return M(n,function(a){a.stopAnimation(null,!0)}),t.painter.toDataURL()},e.prototype.getDataURL=function(t){if(this._disposed){this.id;return}t=t||{};var n=t.excludeComponents,a=this._model,i=[],o=this;M(n,function(l){a.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(i.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return M(i,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){this.id;return}var n=t.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(uC[a]){var l=s,u=s,f=-s,v=-s,c=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();M(Vu,function(_,S){if(_.group===a){var x=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(ae(t)),w=_.getDom().getBoundingClientRect();l=i(w.left,l),u=i(w.top,u),f=o(w.right,f),v=o(w.bottom,v),c.push({dom:x,left:w.left,top:w.top})}}),l*=h,u*=h,f*=h,v*=h;var d=f-l,p=v-u,g=rr.createCanvas(),y=cw(g,{renderer:n?"svg":"canvas"});if(y.resize({width:d,height:p}),n){var m="";return M(c,function(_){var S=_.left-l,x=_.top-u;m+='<g transform="translate('+S+","+x+')">'+_.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=m,t.connectedBackgroundColor&&y.painter.setBackgroundColor(t.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return t.connectedBackgroundColor&&y.add(new be({shape:{x:0,y:0,width:d,height:p},style:{fill:t.connectedBackgroundColor}})),M(c,function(_){var S=new Rt({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});y.add(S)}),y.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,n,a){return Iv(this,"convertToPixel",t,n,a)},e.prototype.convertToLayout=function(t,n,a){return Iv(this,"convertToLayout",t,n,a)},e.prototype.convertFromPixel=function(t,n,a){return Iv(this,"convertFromPixel",t,n,a)},e.prototype.containPixel=function(t,n){if(this._disposed){this.id;return}var a=this._model,i,o=Fs(a,t);return M(o,function(s,l){l.indexOf("Models")>=0&&M(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)i=i||!!f.containPoint(n);else if(l==="seriesModels"){var v=this._chartsMap[u.__viewId];v&&v.containPoint&&(i=i||v.containPoint(n,u))}},this)},this),!!i},e.prototype.getVisual=function(t,n){var a=this._model,i=Fs(a,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?FS(s,l,n):Gf(s,n)},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;M(b4,function(a){var i=function(o){var s=t.getModel(),l=o.target,u,f=a==="globalout";if(f?u={}:l&&so(l,function(p){var g=ve(p);if(g&&g.dataIndex!=null){var y=g.dataModel||s.getSeriesByIndex(g.seriesIndex);return u=y&&y.getDataParams(g.dataIndex,g.dataType,l)||{},!0}else if(g.eventData)return u=G({},g.eventData),!0},!0),u){var v=u.componentType,c=u.componentIndex;(v==="markLine"||v==="markPoint"||v==="markArea")&&(v="series",c=u.seriesIndex);var h=v&&c!=null&&s.getComponent(v,c),d=h&&t[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];u.event=o,u.type=a,t._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:h,view:d},t.trigger(a,u)}};i.zrEventfulCallAtLast=!0,t._zr.on(a,i,t)});var n=this._messageCenter;M(C0,function(a,i){n.on(i,function(o){t.trigger(i,o)})}),DH(n,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&&NL(this.getDom(),$S,"");var n=this,a=n._api,i=n._model;M(n._componentsViews,function(o){o.dispose(i,a)}),M(n._chartsViews,function(o){o.dispose(i,a)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete Vu[n.id]},e.prototype.resize=function(t){if(!this[yt]){if(this._disposed){this.id;return}this._zr.resize(t);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var a=n.resetOption("media"),i=t&&t.silent;this[Dt]&&(i==null&&(i=this[Dt].silent),a=!0,this[Dt]=null),this[yt]=!0,ps(this);try{a&&Vi(this),Xn.update.call(this,{type:"resize",animation:G({duration:0},t&&t.animation)})}catch(o){throw this[yt]=!1,o}this[yt]=!1,hs.call(this,i),ds.call(this,i)}}},e.prototype.showLoading=function(t,n){if(this._disposed){this.id;return}if(fe(t)&&(n=t,t=""),t=t||"default",this.hideLoading(),!!M0[t]){var a=M0[t](this._api,n),i=this._zr;this._loadingFX=a,i.add(a)}},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 n=G({},t);return n.type=b0[t.type],n},e.prototype.dispatchAction=function(t,n){if(this._disposed){this.id;return}if(fe(n)||(n={silent:!!n}),!!Ch[t.type]&&this._model){if(this[yt]){this._pendingActions.push(t);return}var a=n.silent;xg.call(this,t,a);var i=n.flush;i?this._zr.flush():i!==!1&&Le.browser.weChat&&this._throttledZrFlush(),hs.call(this,a),ds.call(this,a)}},e.prototype.updateLabelLayout=function(){Ir.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){this.id;return}var n=t.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(n);i.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=(function(){Vi=function(v){EH(v._model);var c=v._scheduler;c.restorePipelines(v._zr,v._model),c.prepareStageTasks(),_g(v,!0),_g(v,!1),c.plan()},_g=function(v,c){for(var h=v._model,d=v._scheduler,p=c?v._componentsViews:v._chartsViews,g=c?v._componentsMap:v._chartsMap,y=v._zr,m=v._api,_=0;_<p.length;_++)p[_].__alive=!1;c?h.eachComponent(function(w,b){w!=="series"&&S(b)}):h.eachSeries(S);function S(w){var b=w.__requireNewView;w.__requireNewView=!1;var T="_ec_"+w.id+"_"+w.type,C=!b&&g[T];if(!C){var A=xn(w.type),D=c?Qe.getClass(A.main,A.sub):Ue.getClass(A.sub);C=new D,C.init(h,m),g[T]=C,p.push(C),y.add(C.group)}w.__viewId=C.__id=T,C.__alive=!0,C.__model=w,C.group.__ecComponentInfo={mainType:w.mainType,index:w.componentIndex},!c&&d.prepareView(C,w,h,m)}for(var _=0;_<p.length;){var x=p[_];x.__alive?_++:(!c&&x.renderTask.dispose(),y.remove(x.group),x.dispose(h,m),p.splice(_,1),g[x.__id]===x&&delete g[x.__id],x.__id=x.group.__ecComponentInfo=null)}},Dv=function(v,c,h,d,p){var g=v._model;if(g.setUpdatePayload(h),!d){M([].concat(v._componentsViews).concat(v._chartsViews),S);return}var y=aS(h,d,p),m=h.excludeSeriesId,_;m!=null&&(_=K(),M(Ye(m),function(x){var w=mt(x,null);w!=null&&_.set(w,!0)})),g&&g.eachComponent(y,function(x){var w=_&&_.get(x.id)!=null;if(!w)if($w(h))if(x instanceof je)h.type===ho&&!h.notBlur&&!x.get(["emphasis","disabled"])&&C5(x,h,v._api);else{var b=hS(x.mainType,x.componentIndex,h.name,v._api),T=b.focusSelf,C=b.dispatchers;h.type===ho&&T&&!h.notBlur&&t0(x.mainType,x.componentIndex,v._api),C&&M(C,function(A){h.type===ho?da(A):pa(A)})}else n0(h)&&x instanceof je&&(M5(x,h,v._api),Hw(x),Tr(v))},v),g&&g.eachComponent(y,function(x){var w=_&&_.get(x.id)!=null;w||S(v[d==="series"?"_chartsMap":"_componentsMap"][x.__viewId])},v);function S(x){x&&x.__alive&&x[c]&&x[c](x.__model,g,v._api,h)}},Xn={prepareAndUpdate:function(v){Vi(this),Xn.update.call(this,v,v&&{optionChanged:v.newOption!=null})},update:function(v,c){var h=this._model,d=this._api,p=this._zr,g=this._coordSysMgr,y=this._scheduler;if(h){kH(h),h.setUpdatePayload(v),y.restoreData(h,v),y.performSeriesTasks(h),g.create(h,d),Ir.trigger("coordsys:aftercreate",h,d),y.performDataProcessorTasks(h,v),Sg(this,h),g.update(h,d),n(h),y.performVisualTasks(h,v);var m=h.get("backgroundColor")||"transparent";p.setBackgroundColor(m);var _=h.get("darkMode");_!=null&&_!=="auto"&&p.setDarkMode(_),wg(this,h,d,v,c),Ir.trigger("afterupdate",h,d)}},updateTransform:function(v){var c=this,h=c._model,d=c._api;if(h){h.setUpdatePayload(v);var p=[];h.eachComponent(function(y,m){if(y!==Vn){var _=c.getViewOfComponentModel(m);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(m,h,d,v);S&&S.update&&p.push(_)}else p.push(_)}});var g=K();h.eachSeries(function(y){var m=c._chartsMap[y.__viewId],_=y.pipelineContext;if(m.updateTransform&&!_.progressiveRender){var S=m.updateTransform(y,h,d,v);S&&S.update&&g.set(y.uid,1)}else g.set(y.uid,1)}),c._scheduler.performVisualTasks(h,v,{setDirty:!0,dirtyMap:g}),Lv(c,h,d,v,{},g),Ir.trigger("afterupdate",h,d)}},updateView:function(v){var c=this._model;c&&(c.setUpdatePayload(v),Ue.markUpdateMethod(v,"updateView"),n(c),this._scheduler.performVisualTasks(c,v,{setDirty:!0}),wg(this,c,this._api,v,{}),Ir.trigger("afterupdate",c,this._api))},updateVisual:function(v){var c=this,h=this._model;h&&(h.setUpdatePayload(v),h.eachSeries(function(d){d.getData().clearAllVisual()}),Ue.markUpdateMethod(v,"updateVisual"),n(h),this._scheduler.performVisualTasks(h,v,{visualType:"visual",setDirty:!0}),h.eachComponent(function(d,p){if(d!=="series"){var g=c.getViewOfComponentModel(p);g&&g.__alive&&g.updateVisual(p,h,c._api,v)}}),h.eachSeries(function(d){var p=c._chartsMap[d.__viewId];p.updateVisual(d,h,c._api,v)}),Ir.trigger("afterupdate",h,this._api))},updateLayout:function(v){Xn.update.call(this,v)}};function t(v,c,h,d,p){if(v._disposed){v.id;return}for(var g=v._model,y=v._coordSysMgr.getCoordinateSystems(),m,_=Fs(g,h),S=0;S<y.length;S++){var x=y[S];if(x[c]&&(m=x[c](g,_,d,p))!=null)return m}}Iv=t,Sg=function(v,c){var h=v._chartsMap,d=v._scheduler;c.eachSeries(function(p){d.updateStreamModes(p,h[p.__viewId])})},xg=function(v,c){var h=this,d=this.getModel(),p=v.type,g=v.escapeConnect,y=Ch[p],m=(y.update||"update").split(":"),_=m.pop(),S=m[0]!=null&&xn(m[0]);this[yt]=!0,ps(this);var x=[v],w=!1;v.batch&&(w=!0,x=$(v.batch,function(E){return E=le(G({},E),v),E.batch=null,E}));var b=[],T,C=[],A=y.nonRefinedEventType,D=n0(v),L=$w(v);if(L&&v2(this._api),M(x,function(E){var O=y.action(E,d,h._api);if(y.refineEvent?C.push(O):T=O,T=T||G({},E),T.type=A,b.push(T),L){var k=nS(v),z=k.queryOptionMap,F=k.mainTypeSpecified,H=F?z.keys()[0]:"series";Dv(h,_,E,H),Tr(h)}else D?(Dv(h,_,E,"series"),Tr(h)):S&&Dv(h,_,E,S.main,S.sub)}),_!=="none"&&!L&&!D&&!S)try{this[Dt]?(Vi(this),Xn.update.call(this,v),this[Dt]=null):Xn[_].call(this,v)}catch(E){throw this[yt]=!1,E}if(w?T={type:A,escapeConnect:g,batch:b}:T=b[0],this[yt]=!1,!c){var I=void 0;if(y.refineEvent){var P=y.refineEvent(C,v,d,this._api).eventContent;Yt(fe(P)),I=le({type:y.refinedEventType},P),I.fromAction=v.type,I.fromActionPayload=v,I.escapeConnect=!0}var R=this._messageCenter;R.trigger(T.type,T),I&&R.trigger(I.type,I)}},hs=function(v){for(var c=this._pendingActions;c.length;){var h=c.shift();xg.call(this,h,v)}},ds=function(v){!v&&this.trigger("updated")},aC=function(v,c){v.on("rendered",function(h){c.trigger("rendered",h),v.animation.isFinished()&&!c[Dt]&&!c._scheduler.unfinished&&!c._pendingActions.length?c.trigger("finished"):v.refresh()})},iC=function(v,c){v.on("mouseover",function(h){var d=h.target,p=so(d,Ju);p&&(T5(p,h,c._api),Tr(c))}).on("mouseout",function(h){var d=h.target,p=so(d,Ju);p&&(A5(p,h,c._api),Tr(c))}).on("click",function(h){var d=h.target,p=so(d,function(m){return ve(m).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",y=ve(p);c._api.dispatchAction({type:g,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function n(v){v.clearColorPalette(),v.eachSeries(function(c){c.clearColorPalette()})}function a(v){var c=[],h=[],d=!1;if(v.eachComponent(function(m,_){var S=_.get("zlevel")||0,x=_.get("z")||0,w=_.getZLevelKey();d=d||!!w,(m==="series"?h:c).push({zlevel:S,z:x,idx:_.componentIndex,type:m,key:w})}),d){var p=c.concat(h),g,y;Ac(p,function(m,_){return m.zlevel===_.zlevel?m.z-_.z:m.zlevel-_.zlevel}),M(p,function(m){var _=v.getComponent(m.type,m.idx),S=m.zlevel,x=m.key;g!=null&&(S=Math.max(g,S)),x?(S===g&&x!==y&&S++,y=x):y&&(S===g&&S++,y=""),g=S,_.setZLevel(S)})}}wg=function(v,c,h,d,p){a(c),oC(v,c,h,d,p),M(v._chartsViews,function(g){g.__alive=!1}),Lv(v,c,h,d,p),M(v._chartsViews,function(g){g.__alive||g.remove(c,h)})},oC=function(v,c,h,d,p,g){M(g||v._componentsViews,function(y){var m=y.__model;u(m,y),y.render(m,c,h,d),l(m,y),f(m,y)})},Lv=function(v,c,h,d,p,g){var y=v._scheduler;p=G(p||{},{updatedSeries:c.getSeries()}),Ir.trigger("series:beforeupdate",c,h,p);var m=!1;c.eachSeries(function(_){var S=v._chartsMap[_.__viewId];S.__alive=!0;var x=S.renderTask;y.updatePayload(x,d),u(_,S),g&&g.get(_.uid)&&x.dirty(),x.perform(y.getPerformArgs(x))&&(m=!0),S.group.silent=!!_.get("silent"),s(_,S),Hw(_)}),y.unfinished=m||y.unfinished,Ir.trigger("series:layoutlabels",c,h,p),Ir.trigger("series:transition",c,h,p),c.eachSeries(function(_){var S=v._chartsMap[_.__viewId];l(_,S),f(_,S)}),o(v,c),Ir.trigger("series:afterupdate",c,h,p)},Tr=function(v){v[yg]=!0,v.getZr().wakeUp()},ps=function(v){v[Mv]=(v[Mv]+1)%1e6},lC=function(v){v[yg]&&(v.getZr().storage.traverse(function(c){Gs(c)||i(c)}),v[yg]=!1)};function i(v){for(var c=[],h=v.currentStates,d=0;d<h.length;d++){var p=h[d];p==="emphasis"||p==="blur"||p==="select"||c.push(p)}v.selected&&v.states.select&&c.push("select"),v.hoverState===Rd&&v.states.emphasis?c.push("emphasis"):v.hoverState===Ef&&v.states.blur&&c.push("blur"),v.useStates(c)}function o(v,c){var h=v._zr;if(h.painter.type==="canvas"){var d=h.storage,p=0;d.traverse(function(y){y.isGroup||p++});var g=p>Q(c.get("hoverLayerThreshold"),vP.hoverLayerThreshold)&&!Le.node&&!Le.worker;(v._usingTHL||g)&&(c.eachSeries(function(y){if(!y.preventUsingHoverLayer){var m=v._chartsMap[y.__viewId];m.__alive&&m.eachRendered(function(_){var S=_.states.emphasis;S&&S.hoverLayer!==Tl&&(S.hoverLayer=g?T2:C2)})}}),v._usingTHL=g)}}function s(v,c){var h=v.get("blendMode")||null;c.eachRendered(function(d){d.isGroup||(d.style.blend=h)})}function l(v,c){if(!v.preventAutoZ){var h=Ao(v);c.eachRendered(function(d){return Vd(d,h.z,h.zlevel),!0})}}function u(v,c){c.eachRendered(function(h){if(!Gs(h)){var d=h.getTextContent(),p=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function f(v,c){var h=v.getModel("stateAnimation"),d=v.isAnimationEnabled(),p=h.get("duration"),g=p>0?{duration:p,delay:h.get("delay"),easing:h.get("easing")}:null;c.eachRendered(function(y){if(y.states&&y.states.emphasis){if(Gs(y))return;if(y instanceof Ae&&E5(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(d){y.stateTransition=g;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}y.__dirty&&i(y)}})}sC=function(v){return new((function(c){B(h,c);function h(){return c!==null&&c.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return v._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return v._model.getComponent(p.mainType,p.index);d=d.parent}},h.prototype.enterEmphasis=function(d,p){da(d,p),Tr(v)},h.prototype.leaveEmphasis=function(d,p){pa(d,p),Tr(v)},h.prototype.enterBlur=function(d){s2(d),Tr(v)},h.prototype.leaveBlur=function(d){cS(d),Tr(v)},h.prototype.enterSelect=function(d){l2(d),Tr(v)},h.prototype.leaveSelect=function(d){u2(d),Tr(v)},h.prototype.getModel=function(){return v.getModel()},h.prototype.getViewOfComponentModel=function(d){return v.getViewOfComponentModel(d)},h.prototype.getViewOfSeriesModel=function(d){return v.getViewOfSeriesModel(d)},h.prototype.getECUpdateCycleVersion=function(){return v[Mv]},h.prototype.usingTHL=function(){return v._usingTHL},h})(t2))(v)},pR=function(v){function c(h,d){for(var p=0;p<h.length;p++){var g=h[p];g[mg]=d}}M(b0,function(h,d){v._messageCenter.on(d,function(p){if(uC[v.group]&&v[mg]!==nC){if(p&&p.escapeConnect)return;var g=v.makeActionFromEvent(p),y=[];M(Vu,function(m){m!==v&&m.group===v.group&&y.push(m)}),c(y,nC),M(y,function(m){m[mg]!==x4&&m.dispatchAction(g)}),c(y,w4)}})})}})(),e})(Wr),US=gR.prototype;US.on=fR("on");US.off=fR("off");US.one=function(r,e,t){var n=this;function a(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];e&&e.apply&&e.apply(this,i),n.off(r,a)}this.on.call(this,r,a,t)};var b4=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Ch={},b0={},C0={},T0=[],A0=[],Th=[],yR={},M0={},Vu={},uC={},C4=+new Date-0,$S="_echarts_instance_";function T4(r,e,t){{var n=A4(r);if(n)return n}var a=new gR(r,e,t);return a.id="ec_"+C4++,Vu[a.id]=a,NL(r,$S,a.id),pR(a),Ir.trigger("afterinit",a),a}function A4(r){return Vu[dF(r,$S)]}function mR(r,e){yR[r]=e}function _R(r){pe(A0,r)<0&&A0.push(r)}function SR(r,e){YS(T0,r,e,d4)}function M4(r){WS("afterinit",r)}function D4(r){WS("afterupdate",r)}function WS(r,e){Ir.on(r,e)}function $n(r,e,t){var n,a,i,o,s;ie(e)&&(t=e,e=""),fe(r)?(n=r.type,a=r.event,o=r.update,s=r.publishNonRefinedEvent,t||(t=r.action),i=r.refineEvent):(n=r,a=e);function l(f){return f.toLowerCase()}a=l(a||n);var u=i?l(n):a;Ch[n]||(Yt(rC.test(n)&&rC.test(a)),i&&Yt(a!==n),Ch[n]={actionType:n,refinedEventType:a,nonRefinedEventType:u,update:o,action:t,refineEvent:i},C0[a]=1,i&&s&&(C0[u]=1),b0[u]=n)}function I4(r,e){zf.register(r,e)}function L4(r,e){YS(Th,r,e,sR,"layout")}function Jo(r,e){YS(Th,r,e,lR,"visual")}var fC=[];function YS(r,e,t,n,a,i){if((ie(e)||fe(e))&&(t=e,e=n),!(pe(fC,t)>=0)){fC.push(t);var o=WP.wrapStageHandler(t,a);o.__prio=e,o.__raw=t,r.push(o)}}function xR(r,e){M0[r]=e}function P4(r,e,t){var n=LH("registerMap");n&&n(r,e,t)}var R4=F3;Jo(HS,cH);Jo(Yd,hH);Jo(Yd,dH);Jo(HS,AH);Jo(Yd,MH);Jo(uR,s4);_R(mP);SR(v4,_3);xR("default",pH);$n({type:ho,event:ho,update:ho},ot);$n({type:Ec,event:Ec,update:Ec},ot);$n({type:fh,event:fS,update:fh,action:ot,refineEvent:XS,publishNonRefinedEvent:!0});$n({type:Qm,event:fS,update:Qm,action:ot,refineEvent:XS,publishNonRefinedEvent:!0});$n({type:vh,event:fS,update:vh,action:ot,refineEvent:XS,publishNonRefinedEvent:!0});function XS(r,e,t,n){return{eventContent:{selected:D5(t),isFromClick:e.isFromClick||!1}}}mR("default",{});mR("dark",jP);var vC=[],E4={registerPreprocessor:_R,registerProcessor:SR,registerPostInit:M4,registerPostUpdate:D4,registerUpdateLifecycle:WS,registerAction:$n,registerCoordinateSystem:I4,registerLayout:L4,registerVisual:Jo,registerTransform:R4,registerLoading:xR,registerMap:P4,registerImpl:IH,PRIORITY:S4,ComponentModel:Me,ComponentView:Qe,SeriesModel:je,ChartView:Ue,registerComponentModel:function(r){Me.registerClass(r)},registerComponentView:function(r){Qe.registerClass(r)},registerSeriesModel:function(r){je.registerClass(r)},registerChartView:function(r){Ue.registerClass(r)},registerCustomSeries:function(r,e){PH(r,e)},registerSubTypeDefaulter:function(r,e){Me.registerSubTypeDefaulter(r,e)},registerPainter:function(r,e){Gz(r,e)}};function Se(r){if(U(r)){M(r,function(e){Se(e)});return}pe(vC,r)>=0||(vC.push(r),ie(r)&&(r={install:r}),r.install(E4))}function $l(r){return r==null?0:r.length||1}function cC(r){return r}var ga=(function(){function r(e,t,n,a,i,o){this._old=e,this._new=t,this._oldKeyGetter=n||cC,this._newKeyGetter=a||cC,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,n={},a=new Array(e.length),i=new Array(t.length);this._initIndexMap(e,null,a,"_oldKeyGetter"),this._initIndexMap(t,n,i,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=a[o],l=n[s],u=$l(l);if(u>1){var f=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(f,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},r.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},a={},i=[],o=[];this._initIndexMap(e,n,i,"_oldKeyGetter"),this._initIndexMap(t,a,o,"_newKeyGetter");for(var s=0;s<i.length;s++){var l=i[s],u=n[l],f=a[l],v=$l(u),c=$l(f);if(v>1&&c===1)this._updateManyToOne&&this._updateManyToOne(f,u),a[l]=null;else if(v===1&&c>1)this._updateOneToMany&&this._updateOneToMany(f,u),a[l]=null;else if(v===1&&c===1)this._update&&this._update(f,u),a[l]=null;else if(v>1&&c>1)this._updateManyToMany&&this._updateManyToMany(f,u),a[l]=null;else if(v>1)for(var h=0;h<v;h++)this._remove&&this._remove(u[h]);else this._remove&&this._remove(u)}this._performRestAdd(o,a)},r.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var a=e[n],i=t[a],o=$l(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[a]=null}},r.prototype._initIndexMap=function(e,t,n,a){for(var i=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[a](e[o],o);if(i||(n[o]=s),!!t){var l=t[s],u=$l(l);u===0?(t[s]=o,i&&n.push(s)):u===1?t[s]=[l,o]:l.push(o)}}},r})(),k4=(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 O4(r,e){var t={},n=t.encode={},a=K(),i=[],o=[],s={};M(r.dimensions,function(c){var h=r.getDimensionInfo(c),d=h.coordDim;if(d){var p=h.coordDimIndex;bg(n,d)[p]=c,h.isExtraCoord||(a.set(d,1),N4(h.type)&&(i[0]=c),bg(s,d)[p]=r.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(c)}JL.each(function(g,y){var m=bg(n,y),_=h.otherDims[y];_!=null&&_!==!1&&(m[_]=h.name)})});var l=[],u={};a.each(function(c,h){var d=n[h];u[h]=d[0],l=l.concat(d)}),t.dataDimsOnCoord=l,t.dataDimIndicesOnCoord=$(l,function(c){return r.getDimensionInfo(c).storeDimIndex}),t.encodeFirstDimNotExtra=u;var f=n.label;f&&f.length&&(i=f.slice());var v=n.tooltip;return v&&v.length?o=v.slice():o.length||(o=i.slice()),n.defaultedLabel=i,n.defaultedTooltip=o,t.userOutput=new k4(s,e),t}function bg(r,e){return r.hasOwnProperty(e)||(r[e]=[]),r[e]}function Ah(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function N4(r){return!(r==="ordinal"||r==="time")}var Hc=(function(){function r(e){this.otherDims={},e!=null&&G(this,e)}return r})(),B4=me(),V4={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},wR=(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=CR(this.source)))},r.prototype.getSourceDimensionIndex=function(e){return Q(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=SP(this.source),n=!TR(e),a="",i=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,f=void 0,v=this.dimensions[s];if(v&&v.storeDimIndex===o)l=t?v.name:null,u=v.type,f=v.ordinalMeta,s++;else{var c=this.getSourceDimension(o);c&&(l=t?c.name:null,u=c.type)}i.push({property:l,type:u,ordinalMeta:f}),t&&l!=null&&(!v||!v.isCalculationCoord)&&(a+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),a+="$",a+=V4[u]||"f",f&&(a+=f.uid),a+="$"}var h=this.source,d=[h.seriesLayoutBy,h.startIndex,a].join("$$");return{dimensions:i,hash:d}},r.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var a=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===t)i.isCalculationCoord||(a=i.name),n++;else{var o=this.getSourceDimension(t);o&&(a=o.name)}e.push(a)}return e},r.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r})();function bR(r){return r instanceof wR}function ZS(r){for(var e=K(),t=0;t<(r||[]).length;t++){var n=r[t],a=fe(n)?n.name:n;a!=null&&e.get(a)==null&&e.set(a,t)}return e}function CR(r){var e=B4(r);return e.dimNameMap||(e.dimNameMap=ZS(r.dimensionsDefine))}function TR(r){return r>30}var Wl=fe,Ma=$,z4=typeof Int32Array>"u"?Array:Int32Array,F4="e\0\0",hC=-1,G4=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],H4=["_approximateExtent"],dC,Pv,Yl,Xl,Cg,Zl,Tg,nr=(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 n,a=!1;bR(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(a=!0,n=e),n=n||["x","y"];for(var i={},o=[],s={},l=!1,u={},f=0;f<n.length;f++){var v=n[f],c=Z(v)?new Hc({name:v}):v instanceof Hc?v:new Hc(v),h=c.name;c.type=c.type||"float",c.coordDim||(c.coordDim=h,c.coordDimIndex=0);var d=c.otherDims=c.otherDims||{};o.push(h),i[h]=c,u[h]!=null&&(l=!0),c.createInvertedIndices&&(s[h]=[]),a&&(c.storeDimIndex=f),d.itemName===0&&(this._nameDimIdx=c.storeDimIndex),d.itemId===0&&(this._idDimIdx=c.storeDimIndex)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(l),this.hostModel=t,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=K();M(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 n=this._dimIdxToName.get(t);if(n!=null)return n;var a=this._schema.getSourceDimension(t);if(a)return a.name},r.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(t!=null)return t;if(e==null)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},r.prototype._recognizeDimIndex=function(e){if(Ee(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(n){return t.hasOwnProperty(n)?t[n]:void 0}:function(n){return t[n]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(t==null)return n.encodeFirstDimNotExtra[e];var a=n.encode[e];return a?a[t]:null},r.prototype.mapDimensionsAll=function(e){var t=this._dimSummary,n=t.encode[e];return(n||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(e,t,n){var a=this,i;if(e instanceof g0&&(i=e),!i){var o=this.dimensions,s=OS(e)||Wt(e)?new xP(e,o.length):e;i=new g0;var l=Ma(o,function(u){return{type:a._dimInfos[u].type,property:u}});i.initData(s,l,n)}this._store=i,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=O4(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 n=this._store.appendValues(e,t&&t.length),a=n.start,i=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var s=a;s<i;s++){var l=s-a;this._nameList[s]=t[l],o&&Tg(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var a=this._dimInfos[t[n]];a.ordinalMeta&&e.collectOrdinalMeta(a.storeDimIndex,a.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==Ka&&!e.fillStorage},r.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store,a=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===br;if(l&&!a.pure)for(var u=[],f=e;f<t;f++){var v=a.getItem(f,u);if(!this.hasItemOption&&tF(v)&&(this.hasItemOption=!0),v){var c=v.name;i[f]==null&&c!=null&&(i[f]=mt(c,null));var h=v.id;o[f]==null&&h!=null&&(o[f]=mt(h,null))}}if(this._shouldMakeIdFromName())for(var f=e;f<t;f++)Tg(this,f);dC(this)}},r.prototype.getApproximateExtent=function(e,t){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e),t)},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){Wl(e)?G(this._calculationInfo,e):this._calculationInfo[e]=t},r.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return n==null&&this._nameDimIdx!=null&&(n=Yl(this,this._nameDimIdx,t)),n==null&&(n=""),n},r.prototype._getCategory=function(e,t){var n=this._store.get(e,t),a=this._store.getOrdinalMeta(e);return a?a.categories[n]:n},r.prototype.getId=function(e){return Pv(this,this.getRawIndex(e))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(e,t){var n=this._store,a=this._dimInfos[e];if(a)return n.get(a.storeDimIndex,t)},r.prototype.getByRawIndex=function(e,t){var n=this._store,a=this._dimInfos[e];if(a)return n.getByRawIndex(a.storeDimIndex,t)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e),null)},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 n=this,a=this._store;return U(e)?a.getValues(Ma(e,function(i){return n._getStoreDimIndex(i)}),t):a.getValues(e)},r.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,a=t.length;n<a;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},r.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;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 n=e&&this._invertedIndicesMap[e],a=n&&n[t];return a==null||isNaN(a)?hC:a},r.prototype.each=function(e,t,n){ie(e)&&(n=t,t=e,e=[]);var a=n||this,i=Ma(Xl(e),this._getStoreDimIndex,this);this._store.each(i,a?q(t,a):t)},r.prototype.filterSelf=function(e,t,n){ie(e)&&(n=t,t=e,e=[]);var a=n||this,i=Ma(Xl(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,a?q(t,a):t),this},r.prototype.selectRange=function(e){var t=this,n={},a=De(e);return M(a,function(i){var o=t._getStoreDimIndex(i);n[o]=e[i]}),this._store=this._store.selectRange(n),this},r.prototype.mapArray=function(e,t,n){ie(e)&&(n=t,t=e,e=[]),n=n||this;var a=[];return this.each(e,function(){a.push(t&&t.apply(this,arguments))},n),a},r.prototype.map=function(e,t,n,a){var i=n||a||this,o=Ma(Xl(e),this._getStoreDimIndex,this),s=Zl(this);return s._store=this._store.map(o,i?q(t,i):t),s},r.prototype.modify=function(e,t,n,a){var i=n||a||this,o=Ma(Xl(e),this._getStoreDimIndex,this);this._store.modify(o,i?q(t,i):t)},r.prototype.downSample=function(e,t,n,a){var i=Zl(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,n,a),i},r.prototype.minmaxDownSample=function(e,t){var n=Zl(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),n},r.prototype.lttbDownSample=function(e,t){var n=Zl(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},r.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},r.prototype.getItemModel=function(e){var t=this.hostModel,n=this.getRawDataItem(e);return new Ie(n,t,t&&t.ecModel)},r.prototype.diff=function(e){var t=this;return new ga(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(n){return Pv(e,n)},function(n){return Pv(t,n)})},r.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},r.prototype.setVisual=function(e,t){this._visual=this._visual||{},Wl(e)?G(this._visual,e):this._visual[e]=t},r.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e],a=n&&n[t];return a??this.getVisual(t)},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,a=n[e];a||(a=n[e]={});var i=a[t];return i==null&&(i=this.getVisual(t),U(i)?i=i.slice():Wl(i)&&(i=G({},i)),a[t]=i),i},r.prototype.setItemVisual=function(e,t,n){var a=this._itemVisuals[e]||{};this._itemVisuals[e]=a,Wl(t)?G(a,t):a[t]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(e,t){Wl(e)?G(this._layout,e):this._layout[e]=t},r.prototype.getLayout=function(e){return this._layout[e]},r.prototype.getItemLayout=function(e){return this._itemLayouts[e]},r.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?G(this._itemLayouts[e]||{},t):t},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(e,t){var n=this.hostModel&&this.hostModel.seriesIndex;Jm(n,this.dataType,e,t),this._graphicEls[e]=t},r.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},r.prototype.eachItemGraphicEl=function(e,t){M(this._graphicEls,function(n,a){n&&e&&e.call(t,n,a)})},r.prototype.cloneShallow=function(e){return e||(e=new r(this._schema?this._schema:Ma(this.dimensions,this._getDimInfo,this),this.hostModel)),Cg(e,this),e._store=this._store,e},r.prototype.wrapMethod=function(e,t){var n=this[e];ie(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var a=n.apply(this,arguments);return t.apply(this,[a].concat(Y_(arguments)))})},r.internalField=(function(){dC=function(e){var t=e._invertedIndicesMap;M(t,function(n,a){var i=e._dimInfos[a],o=i.ordinalMeta,s=e._store;if(o){n=t[a]=new z4(o.categories.length);for(var l=0;l<n.length;l++)n[l]=hC;for(var l=0;l<s.count();l++)n[s.get(i.storeDimIndex,l)]=l}})},Yl=function(e,t,n){return mt(e._getCategory(t,n),null)},Pv=function(e,t){var n=e._idList[t];return n==null&&e._idDimIdx!=null&&(n=Yl(e,e._idDimIdx,t)),n==null&&(n=F4+t),n},Xl=function(e){return U(e)||(e=e!=null?[e]:[]),e},Zl=function(e){var t=new r(e._schema?e._schema:Ma(e.dimensions,e._getDimInfo,e),e.hostModel);return Cg(t,e),t},Cg=function(e,t){M(G4.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,M(H4,function(n){e[n]=ae(t[n])}),e._calculationInfo=G({},t._calculationInfo)},Tg=function(e,t){var n=e._nameList,a=e._idList,i=e._nameDimIdx,o=e._idDimIdx,s=n[t],l=a[t];if(s==null&&i!=null&&(n[t]=s=Yl(e,i,t)),l==null&&o!=null&&(a[t]=l=Yl(e,o,t)),l==null&&s!=null){var u=e._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),a[t]=l}}})(),r})();function Hf(r,e){OS(r)||(r=NS(r)),e=e||{};var t=e.coordDimensions||[],n=e.dimensionsDefine||r.dimensionsDefine||[],a=K(),i=[],o=U4(r,t,n,e.dimensionsCount),s=e.canOmitUnusedDimensions&&TR(o),l=n===r.dimensionsDefine,u=l?CR(r):ZS(n),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(r,o));for(var v=K(f),c=new PP(o),h=0;h<c.length;h++)c[h]=-1;function d(C){var A=c[C];if(A<0){var D=n[C],L=fe(D)?D:{name:D},I=new Hc,P=L.name;P!=null&&u.get(P)!=null&&(I.name=I.displayName=P),L.type!=null&&(I.type=L.type),L.displayName!=null&&(I.displayName=L.displayName);var R=i.length;return c[C]=R,I.storeDimIndex=C,i.push(I),I}return i[A]}if(!s)for(var h=0;h<o;h++)d(h);v.each(function(C,A){var D=Ye(C).slice();if(D.length===1&&!Z(D[0])&&D[0]<0){v.set(A,!1);return}var L=v.set(A,[]);M(D,function(I,P){var R=Z(I)?u.get(I):I;R!=null&&R<o&&(L[P]=R,g(d(R),A,P))})});var p=0;M(t,function(C){var A,D,L,I;if(Z(C))A=C,I={};else{I=C,A=I.name;var P=I.ordinalMeta;I.ordinalMeta=null,I=G({},I),I.ordinalMeta=P,D=I.dimsDef,L=I.otherDims,I.name=I.coordDim=I.coordDimIndex=I.dimsDef=I.otherDims=null}var R=v.get(A);if(R!==!1){if(R=Ye(R),!R.length)for(var E=0;E<(D&&D.length||1);E++){for(;p<o&&d(p).coordDim!=null;)p++;p<o&&R.push(p++)}M(R,function(O,k){var z=d(O);if(l&&I.type!=null&&(z.type=I.type),g(le(z,I),A,k),z.name==null&&D){var F=D[k];!fe(F)&&(F={name:F}),z.name=z.displayName=F.name,z.defaultTooltip=F.defaultTooltip}L&&le(z.otherDims,L)})}});function g(C,A,D){JL.get(A)!=null?C.otherDims[A]=D:(C.coordDim=A,C.coordDimIndex=D,a.set(A,!0))}var y=e.generateCoord,m=e.generateCoordCount,_=m!=null;m=y?m||1:0;var S=y||"value";function x(C){C.name==null&&(C.name=C.coordDim)}if(s)M(i,function(C){x(C)}),i.sort(function(C,A){return C.storeDimIndex-A.storeDimIndex});else for(var w=0;w<o;w++){var b=d(w),T=b.coordDim;T==null&&(b.coordDim=$4(S,a,_),b.coordDimIndex=0,(!y||m<=0)&&(b.isExtraCoord=!0),m--),x(b),b.type==null&&(dP(r,w)===Et.Must||b.isExtraCoord&&(b.otherDims.itemName!=null||b.otherDims.seriesName!=null))&&(b.type="ordinal")}return Td(i,function(C){return C.name},function(C,A){A>0&&(C.name=C.name+(A-1))}),new wR({source:r,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function U4(r,e,t,n){var a=Math.max(r.dimensionsDetectedCount||1,e.length,t.length,n||0);return M(e,function(i){var o;fe(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function $4(r,e,t){if(t||e.hasKey(r)){for(var n=0;e.hasKey(r+n);)n++;r+=n}return e.set(r,!0),r}var W4=(function(){function r(e){this.coordSysDims=[],this.axisMap=K(),this.categoryAxisMap=K(),this.coordSysName=e}return r})();function Y4(r){var e=r.get("coordinateSystem"),t=new W4(e),n=X4[e];if(n)return n(r,t,t.axisMap,t.categoryAxisMap),t}var X4={cartesian2d:function(r,e,t,n){var a=r.getReferringComponents("xAxis",at).models[0],i=r.getReferringComponents("yAxis",at).models[0];e.coordSysDims=["x","y"],t.set("x",a),t.set("y",i),gs(a)&&(n.set("x",a),e.firstCategoryDimIndex=0),gs(i)&&(n.set("y",i),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(r,e,t,n){var a=r.getReferringComponents("singleAxis",at).models[0];e.coordSysDims=["single"],t.set("single",a),gs(a)&&(n.set("single",a),e.firstCategoryDimIndex=0)},polar:function(r,e,t,n){var a=r.getReferringComponents("polar",at).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",i),t.set("angle",o),gs(i)&&(n.set("radius",i),e.firstCategoryDimIndex=0),gs(o)&&(n.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(r,e,t,n){e.coordSysDims=["lng","lat"]},parallel:function(r,e,t,n){var a=r.ecModel,i=a.getComponent("parallel",r.get("parallelIndex")),o=e.coordSysDims=i.dimensions.slice();M(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),f=o[l];t.set(f,u),gs(u)&&(n.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})},matrix:function(r,e,t,n){var a=r.getReferringComponents("matrix",at).models[0];e.coordSysDims=["x","y"];var i=a.getDimensionModel("x"),o=a.getDimensionModel("y");t.set("x",i),t.set("y",o),n.set("x",i),n.set("y",o)}};function gs(r){return r.get("type")==="category"}function Z4(r,e,t){t=t||{};var n=t.byIndex,a=t.stackedCoordDimension,i,o,s;j4(e)?i=e:(o=e.schema,i=o.dimensions,s=e.store);var l=!!(r&&r.get("stack")),u,f,v,c,h=!0;function d(S){return S.type!=="ordinal"&&S.type!=="time"}if(M(i,function(S,x){Z(S)&&(i[x]=S={name:S}),d(S)||(h=!1)}),M(i,function(S,x){l&&!S.isExtraCoord&&(!n&&!u&&S.ordinalMeta&&(u=S),!f&&d(S)&&(!h||S.coordDim!=="x"&&S.coordDim!=="angle")&&(!a||a===S.coordDim)&&(f=S))}),f&&!n&&!u&&(n=!0),f){v="__\0ecstackresult_"+r.id,c="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var p=f.coordDim,g=f.type,y=0;M(i,function(S){S.coordDim===p&&y++});var m={name:v,coordDim:p,coordDimIndex:y,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},_={name:c,coordDim:c,coordDimIndex:y+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(m.storeDimIndex=s.ensureCalculationDimension(c,g),_.storeDimIndex=s.ensureCalculationDimension(v,g)),o.appendCalculationDimension(m),o.appendCalculationDimension(_)):(i.push(m),i.push(_))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:c,stackResultDimension:v}}function j4(r){return!bR(r.schema)}function ii(r,e){return!!e&&e===r.getCalculationInfo("stackedDimension")}function AR(r,e){return ii(r,e)?r.getCalculationInfo("stackResultDimension"):e}function q4(r,e){var t=r.get("coordinateSystem"),n=zf.get(t),a;return e&&e.coordSysDims&&(a=$(e.coordSysDims,function(i){var o={name:i},s=e.axisMap.get(i);if(s){var l=s.get("type");o.type=Ah(l)}return o})),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}function K4(r,e,t){var n,a;return t&&M(r,function(i,o){var s=i.coordDim,l=t.categoryAxisMap.get(s);l&&(n==null&&(n=o),i.ordinalMeta=l.getOrdinalMeta(),e&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&n!=null&&(r[n].otherDims.itemName=0),n}function wa(r,e,t){t=t||{};var n=e.getSourceManager(),a,i=!1;r?(i=!0,a=NS(r)):(a=n.getSource(),i=a.sourceFormat===br);var o=Y4(e),s=q4(e,o),l=t.useEncodeDefaulter,u=ie(l)?l:l?xe(hP,s,e):null,f={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},v=Hf(a,f),c=K4(v.dimensions,t.createInvertedIndices,o),h=i?null:n.getSharedDataStore(v),d=Z4(e,{schema:v,store:h}),p=new nr(v,e);p.setCalculationInfo(d);var g=c!=null&&J4(a)?function(y,m,_,S){return S===c?_:this.defaultDimValueGetter(y,m,_,S)}:null;return p.hasItemOption=!1,p.initData(i?a:h,null,g),p}function J4(r){if(r.sourceFormat===br){var e=Q4(r.data||[]);return!U(ml(e))}}function Q4(r){for(var e=0;e<r.length&&r[e]==null;)e++;return r[e]}var sn=(function(){function r(){}return r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(e){this._isBlank=e},r})();Ad(sn);var eU=0,of=(function(){function r(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++eU,this._onCollect=e.onCollect}return r.createByAxisModel=function(e){var t=e.option,n=t.data,a=n&&$(n,tU);return new r({categories:a,needCollect:!a,deduplication:t.dedplication!==!1})},r.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},r.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!Z(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,this._onCollect&&this._onCollect(e,t),t;var a=this._getOrCreateMap();return t=a.get(e),t==null&&(n?(t=this.categories.length,this.categories[t]=e,a.set(e,t),this._onCollect&&this._onCollect(e,t)):t=NaN),t},r.prototype._getOrCreateMap=function(){return this._map||(this._map=K(this.categories))},r})();function tU(r){return fe(r)&&r.value!=null?r.value:r+""}var cr=0,sf=1,rU={needTransform:1,normalize:1,scale:1,transformIn:1,transformOut:1,contain:1,getExtent:1,getExtentUnsafe:1,setExtent:1,setExtent2:1,getFilter:1,sanitize:1,getDefaultStartValue:1,freeze:1},MR=De(rU),aa=2,DR=3;function jS(r,e,t){var n;r=r||{};var a=vt();if(a){var i=a.createBreakScaleMapper(e,t);i.hasBreaks()&&(M(MR,function(o){i[o]&&(r[o]=q(i[o],i))}),n=i)}return n==null&&D0(r,t),{brk:n,mapper:r}}function qS(r,e){M(MR,function(t){r[t]=e[t]})}function KS(r,e){r.freeze=ot}function lf(r){return r.getExtentUnsafe(cr,aa)}function Mh(r,e){return r.getExtentUnsafe(sf,e)||r.getExtentUnsafe(cr,e)}function nU(r){var e=Mh(r,DR);return e[1]-e[0]}function Xd(r){var e=r.getExtentUnsafe(cr,DR);return e[1]-e[0]}function D0(r,e){var t=r||{},n=[];return t._extents=n,n[cr]=e?e.slice():Ot(),G(t,aU),t}var aU={needTransform:function(){return!1},normalize:function(r){var e=this._extents[sf]||this._extents[cr];return e[1]===e[0]?.5:(r-e[0])/(e[1]-e[0])},scale:function(r){var e=this._extents[sf]||this._extents[cr];return r*(e[1]-e[0])+e[0]},transformIn:function(r){return r},transformOut:function(r){return r},contain:function(r){var e=Mh(this,null);return r>=e[0]&&r<=e[1]},getExtent:function(){return this._extents[cr].slice()},getExtentUnsafe:function(r){return this._extents[r]},setExtent:function(r,e){pC(this._extents,cr,r,e)},setExtent2:function(r,e,t){var n=this._extents;n[r]||(n[r]=n[cr].slice()),pC(n,r,e,t)},freeze:function(){}};function pC(r,e,t,n){wo(t,n)&&(r[e][0]=t,r[e][1]=n)}function IR(r){return Dh(r)||al(r)}function Dh(r){return r.type==="interval"}function Uf(r){return r.type==="time"}function al(r){return r.type==="log"}function jt(r){return r.type==="ordinal"}function iU(r){var e=Q_(r),t=$o(10,e),n=va(r/t);return n?n===2?n=3:n===3?n=5:n*=2:n=1,ke(n*t,-e)}function Do(r){return ea(r)+2}function Rv(r,e){return ju(r)/ju(e)}function Ag(r,e,t){var n=t&&t.lookup;if(n){for(var a=0;a<n.from.length;a++)if(r===n.from[a])return n.to[a]}return $o(e,r)}function LR(r,e,t){var n=r.slice();if(n[0]===n[1]){var a=t&&t.ctnShp;if(n[0]!==0){var i=it(n[0]);e[1]||(n[1]+=i/2),n[0]-=i/2}else a&&(n[0]=-1),n[1]=1}return(!ha(n[0])||!ha(n[1]))&&(n[0]=0,n[1]=1),n[1]<n[0]&&n.reverse(),n}function oU(r,e){return[r[0]!==e[0],r[1]!==e[1]]}function Zd(r,e){return r=r||e,va(we(r,1))}function PR(r,e,t){var n=lf(r),a=n[0],i=r.count(),o=Math.max((e||0)+1,1);a!==0&&o>1&&i/o>2&&(a=Math.round(Math.ceil(a/o)*o)),a!==n[0]&&l(n[0],!0,!0);for(var s=a;s<=n[1];s+=o)l(s,!1,s===n[0]||s===n[1]);s-o!==n[1]&&l(n[1],!0,!0);function l(u,f,v){t({value:u,offInterval:f},v)}}var uf=(function(r){B(e,r);function e(t){var n=r.call(this)||this;n.type="ordinal",n.parse=e.parse,qS(n,e.decoratedMethods);var a=t.ordinalMeta;a||(a=new of({})),U(a)&&(a=new of({categories:$(a,function(o){return fe(o)?o.value:o})})),n._ordinalMeta=a;var i=jS(null,null,t.extent||[0,a.categories.length-1]);return n._mapper=i.mapper,KS(n),n}return e.parse=function(t){return t==null?t=NaN:Z(t)?(t=this._ordinalMeta.getOrdinal(t),t==null&&(t=NaN)):t=va(t),t},e.prototype.getTicks=function(){var t=[];return PR(this,0,function(n){t.push(n)}),t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=t.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=He(s,n.length);o<l;++o){var u=a[o]=n[o];i[u]=o}for(var f=0;o<s;++o){for(;i[f]!=null;)f++;a[o]=f,i[f]=o}},e.prototype._getTickNumber=function(t){var n=this._ticksByOrdinalNumber;return n&&t>=0&&t<n.length?n[t]:t},e.prototype.getRawOrdinalNumber=function(t){var n=this._ordinalNumbersByTick;return n&&t>=0&&t<n.length?n[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var n=this.getRawOrdinalNumber(t.value),a=this._ordinalMeta.categories[n];return a==null?"":a+""}},e.prototype.count=function(){var t=lf(this._mapper);return t[1]-t[0]+1},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.type="ordinal",e.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(t){return this._mapper.contain(this._getTickNumber(t))&&t>=0&&t<this._ordinalMeta.categories.length},normalize:function(t){return this._mapper.normalize(this._getTickNumber(t))},scale:function(t){return this.getRawOrdinalNumber(va(this._mapper.scale(t)))},transformIn:function(t,n){return this._mapper.transformIn(this._getTickNumber(t),n)},transformOut:function(t,n){return this.getRawOrdinalNumber(this._mapper.transformOut(t,n))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(t,n){return this._mapper.getExtentUnsafe(t,n)},setExtent:function(t,n){return this._mapper.setExtent(t,n)},setExtent2:function(t,n,a){return this._mapper.setExtent2(t,n,a)}},e})(sn);sn.registerClass(uf);function JS(r,e,t,n){for(var a=r.getTicks({expandToNicedExtent:!0}),i=[],o=r.getExtent(),s=1;s<a.length;s++){var l=a[s],u=a[s-1];if(!(u.break||l.break)){for(var f=0,v=[],c=l.value-u.value,h=c/e,d=Do(h);f<e-1;){var p=ke(u.value+(f+1)*h,d);p>o[0]&&p<o[1]&&v.push(p),f++}var g=vt();g&&g.pruneTicksByBreak("auto",v,t,function(y){return y},n,o),i.push(v)}}return i}var Qa=(function(r){B(e,r);function e(t){var n=r.call(this)||this;n.type="interval",n.parse=e.parse,t=t||{};var a=F2(n,t),i=jS(n,a,null);return n.brk=i.brk,n._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},n}return e.parse=function(t){return t==null||t===""?NaN:Number(t)},e.prototype.getConfig=function(){return ae(this._cfg)},e.prototype.setConfig=function(t){var n=lf(this);this._cfg=t=ae(t),t.niceExtent==null&&(t.niceExtent=n.slice()),t.intervalPrecision==null&&(t.intervalPrecision=Do(t.interval))},e.prototype.getTicks=function(t){t=t||{};var n=this._cfg,a=n.interval,i=lf(this),o=n.niceExtent,s=n.intervalPrecision,l=vt(),u=this.brk,f=l&&u,v=[];if(!a)return v;if(t.breakTicks==="only_break"&&f)return l.addBreaksToTicks(v,u.breaks,i),v;var c=3e3;i[0]<o[0]&&v.push({value:t.expandToNicedExtent?ke(o[0]-a,s):i[0]});for(var h=function(_,S){return va((S-_)/a)},d=n.intervalCount,p=o[0],g=0;;g++){if(d==null){if(p>o[1]||!isFinite(p)||!isFinite(o[1]))break}else{if(g>d)break;p=He(p,o[1]),g===d&&(p=o[1])}if(v.push({value:p}),p=ke(p+a,s),u){var y=u.calcNiceTickMultiple(p,h);y>=0&&(p=ke(p+y*a,s))}if(v.length>0&&p===v[v.length-1].value)break;if(v.length>c)return[]}var m=v.length?v[v.length-1].value:o[1];return i[1]>m&&v.push({value:t.expandToNicedExtent?ke(m+a,s):i[1]}),f&&l.pruneTicksByBreak(t.pruneByBreak,v,u.breaks,function(_){return _.value},n.interval,i),f&&t.breakTicks!=="none"&&l.addBreaksToTicks(v,u.breaks,i),v},e.prototype.getMinorTicks=function(t){return JS(this,t,gh(this),this._cfg.interval)},e.prototype.getLabel=function(t,n){if(t==null)return"";var a=n&&n.precision;a==null?a=ea(t.value)||0:a==="auto"&&(a=this._cfg.intervalPrecision);var i=ke(t.value,a,!0);return Z2(i)},e.type="interval",e})(sn);sn.registerClass(Qa);var sU=function(r,e,t,n){for(;t<n;){var a=t+n>>>1;r[a][1]<e?t=a+1:n=a}return t},RR=(function(r){B(e,r);function e(t){var n=r.call(this)||this;n.type="time",n.parse=e.parse,n._locale=t.locale,n._useUTC=t.useUTC,n._interval=0;var a=F2(n,t),i=jS(n,a,null);return n.brk=i.brk,n}return e.prototype.getLabel=function(t){return Gd(t.value,ib[VG(Nu(this._minLevelUnit))]||ib.second,this._useUTC,this._locale)},e.prototype.getFormattedLabel=function(t,n,a){return zG(t,n,a,this._locale,this._useUTC)},e.prototype.getTicks=function(t){t=t||{};var n=this._interval,a=lf(this),i=vt(),o=this.brk,s=i&&o,l=[];if(!n)return l;var u=this._useUTC;if(s&&t.breakTicks==="only_break")return vt().addBreaksToTicks(l,o.breaks,a),l;l=dU(this._minLevelUnit,this._approxInterval,u,a,Xd(this),o);var f=yr.length-1,v=0;return M(l,function(c){c.time&&(f=Math.min(f,pe(yr,c.time.upperTimeUnit)),v=Math.max(v,c.time.level))}),s&&vt().pruneTicksByBreak(t.pruneByBreak,l,o.breaks,function(c){return c.value},this._approxInterval,a),s&&t.breakTicks!=="none"&&vt().addBreaksToTicks(l,o.breaks,a,function(c){for(var h=Math.max(pe(yr,$s(c.vmin,u)),pe(yr,$s(c.vmax,u))),d=0,p=0;p<yr.length;p++)if(!ER(yr[p],c.vmin,c.vmax,u)){d=p;break}var g=Math.min(d,f),y=Math.max(g,h);return{level:v,lowerTimeUnit:yr[y],upperTimeUnit:yr[g]}}),l},e.prototype.getMinorTicks=function(t){return JS(this,t,gh(this),this._interval)},e.prototype.setTimeInterval=function(t){this._interval=t.interval,this._approxInterval=t.approxInterval,this._minLevelUnit=t.minLevelUnit},e.parse=function(t){return Ee(t)?Math.round(t):+Wo(t)},e.type="time",e})(sn),Ev=[["second",wS],["minute",bS],["hour",Ou],["quarter-day",Ou*6],["half-day",Ou*12],["day",Nr*1.2],["half-week",Nr*3.5],["week",Nr*7],["month",Nr*31],["quarter",Nr*95],["half-year",ab/2],["year",ab]];function ER(r,e,t,n){return v0(new Date(e),r,n).getTime()===v0(new Date(t),r,n).getTime()}function lU(r,e){return r/=Nr,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function uU(r){var e=30*Nr;return r/=e,r>6?6:r>3?3:r>2?2:1}function fU(r){return r/=Ou,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function gC(r,e){return r/=e?bS:wS,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function vU(r){return we(eS(r,!0),1)}function cU(r,e,t){var n=Math.max(0,pe(yr,e)-1);return v0(new Date(r),yr[n],t).getTime()}function hU(r,e){var t=new Date(0);t[r](1);var n=t.getTime();t[r](1+e);var a=t.getTime()-n;return function(i,o){return Math.max(0,Math.round((o-i)/a))}}function dU(r,e,t,n,a,i){var o=3e3,s=kG,l=0;function u(E,O,k,z,F,H,W){for(var X=hU(F,E),Y=O,ee=new Date(Y);Y<k&&Y<=n[1]&&(W.push({value:Y}),!(l++>o));)if(ee[F](ee[z]()+E),Y=ee.getTime(),i){var ye=i.calcNiceTickMultiple(Y,X);ye>0&&(ee[F](ee[z]()+ye*E),Y=ee.getTime())}W.push({value:Y,notAdd:Y>n[1]})}function f(E,O,k){var z=[],F=!O.length;if(!ER(Nu(E),n[0],n[1],t)){F&&(O=[{value:cU(n[0],E,t)},{value:n[1]}]);for(var H=0;H<O.length-1;H++){var W=O[H].value,X=O[H+1].value;if(W!==X){var Y=void 0,ee=void 0,ye=void 0,Ne=!1;switch(E){case"year":Y=Math.max(1,Math.round(e/Nr/365)),ee=G2(t),ye=FG(t);break;case"half-year":case"quarter":case"month":Y=uU(e),ee=CS(t),ye=H2(t);break;case"week":case"half-week":case"day":Y=lU(e),ee=TS(t),ye=U2(t),Ne=!0;break;case"half-day":case"quarter-day":case"hour":Y=fU(e),ee=AS(t),ye=$2(t);break;case"minute":Y=gC(e,!0),ee=MS(t),ye=W2(t);break;case"second":Y=gC(e,!1),ee=DS(t),ye=Y2(t);break;case"millisecond":Y=vU(e),ee=IS(t),ye=X2(t);break}X>=n[0]&&W<=n[1]&&u(Y,W,X,ee,ye,Ne,z),E==="year"&&k.length>1&&H===0&&k.unshift({value:k[0].value-Y})}}for(var H=0;H<z.length;H++)k.push(z[H])}}for(var v=[],c=[],h=0,d=0,p=0;p<s.length;++p){var g=Nu(s[p]);if(BG(s[p])){f(s[p],v[v.length-1]||[],c);var y=s[p+1]?Nu(s[p+1]):null;if(g!==y){if(c.length){d=h,c.sort(function(E,O){return E.value-O.value});for(var m=[],_=0;_<c.length;++_){var S=c[_].value;(_===0||c[_-1].value!==S)&&(m.push(c[_]),S>=n[0]&&S<=n[1]&&h++)}var x=a/e;if(h>x*1.5&&d>x/1.5||(v.push(m),h>x||r===s[p]))break}c=[]}}}for(var w=Fe($(v,function(E){return Fe(E,function(O){return O.value>=n[0]&&O.value<=n[1]&&!O.notAdd})}),function(E){return E.length>0}),b=w.length-1,T=[],p=0;p<w.length;++p)for(var C=w[p],A=0;A<C.length;++A){var D=$s(C[A].value,t);T.push({value:C[A].value,time:{level:b-p,upperTimeUnit:D,lowerTimeUnit:D}})}Td(T,_F,null),T.sort(function(E,O){return E.value-O.value});var L=T[0],I=T[T.length-1],P=$s(n[0],t),R=$s(n[1],t);return(!L||L.value>n[0])&&T.unshift({value:n[0],time:{level:0,upperTimeUnit:P,lowerTimeUnit:P},notNice:!0}),(!I||I.value<n[1])&&T.push({value:n[1],time:{level:0,upperTimeUnit:R,lowerTimeUnit:R},notNice:!0}),T}var pU=function(r,e){var t=r.getExtent();if(t[0]===t[1]&&(t[0]-=Nr,t[1]+=Nr),t[1]===-1/0&&t[0]===1/0){var n=new Date;t[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),t[0]=t[1]-Nr}r.setExtent(t[0],t[1]);var a=Zd(e.splitNumber,10),i=Xd(r)/a,o=e.minInterval,s=e.maxInterval;o!=null&&i<o&&(i=o),s!=null&&i>s&&(i=s);var l=Ev.length,u=Math.min(sU(Ev,i,0,l),l-1),f=Ev[u][1],v=Ev[Math.max(u-1,0)][0];r.setTimeInterval({approxInterval:i,interval:f,minLevelUnit:v})};sn.registerClass(RR);var kv=0,Ov=1,gU=2,kR=(function(r){B(e,r);function e(t){var n=r.call(this)||this;n.type="log",n.parse=Qa.parse,n.base=t.logBase||10;var a=[],i=[],o=n._lookup={from:a,to:i};a[kv]=a[Ov]=i[kv]=i[Ov]=NaN,qS(n,e.mapperMethods);var s=vt(),l=t.breakOption,u={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(l,n,{noNegative:!0},gU,u),n.powStub=new Qa({breakParsed:u.original}),n.intervalStub=new Qa({breakParsed:u.transformed}),KS(n,n.intervalStub),n}return e.prototype.getTicks=function(t){var n=this.base,a=this.powStub,i=vt(),o=this.intervalStub,s=o.getExtent(),l=a.getExtent(),u={lookup:{from:s,to:l}};return $(o.getTicks(t||{}),function(f){var v=f.value,c=Ag(v,n,u),h;if(i){var d=i.getTicksBreakOutwardTransform(this,f,gh(a),this._lookup);d&&(h=d.vBreak,c=d.tickVal)}return{value:c,break:h}},this)},e.prototype.getMinorTicks=function(t){return JS(this,t,gh(this.powStub),this.intervalStub.getConfig().interval)},e.prototype.getLabel=function(t,n){return this.intervalStub.getLabel(t,n)},e.type="log",e.mapperMethods={needTransform:function(){return!0},normalize:function(t){return this.intervalStub.normalize(Rv(t,this.base))},scale:function(t){return Ag(this.intervalStub.scale(t),this.base,null)},transformIn:function(t,n){return t=Rv(t,this.base),n&&n.depth===aa?t:this.intervalStub.transformIn(t,n)},transformOut:function(t,n){var a=n?n.depth:null;return yC.depth=a,mC.lookup=this._lookup,Ag(a===aa?t:this.intervalStub.transformOut(t,yC),this.base,mC)},contain:function(t){return this.powStub.contain(t)},setExtent:function(t,n){this.setExtent2(cr,t,n)},setExtent2:function(t,n,a){if(!(!wo(n,a)||n<=0||a<=0)){var i=_C,o=_C;if(t===cr){var s=this._lookup;i=s.to,o=s.from}this.powStub.setExtent2(t,i[kv]=n,i[Ov]=a);var l=this.base;this.intervalStub.setExtent2(t,o[kv]=Rv(n,l),o[Ov]=Rv(a,l))}},getFilter:function(){return{g:0}},sanitize:function(t,n){return wo(n[0],n[1])&&Hr(t)&&t<=0&&(t=n[0]),t},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(t,n){return n===null?this.powStub.getExtentUnsafe(t,null):this.intervalStub.getExtentUnsafe(t,n)}},e})(sn);sn.registerClass(kR);var yC={},mC={},_C=[],OR={value:1,category:1,time:1,log:1},NR=me();function jd(r){var e=r.get("type");return(e==null||!J(OR,e)&&!sn.getClass(e))&&(e="value"),e}function $f(r,e,t){var n=vt(),a;switch(n&&(a=BR(r,e,t)),e){case"category":return new uf({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:Ot()});case"time":return new RR({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC"),breakOption:a});case"log":return new kR({logBase:r.get("logBase"),breakOption:a});case"value":return new Qa({breakOption:a});default:return new(sn.getClass(e)||Qa)({})}}function yU(r,e,t){var n=r.getExtentUnsafe(cr,null),a=n[0],i=n[1];return wo(a,i)?a===e||i===e?_U:a<e&&i>e?mU:I0:I0}var mU=1,_U=2,I0=3;function SU(r){NR(r).noOnMyZero=!0}function xU(r){return NR(r).noOnMyZero}function Wf(r){var e=r.getLabelModel().get("formatter");if(r.type==="time"){var t=OG(e);return function(a,i){return r.scale.getFormattedLabel(a,i,t)}}else{if(Z(e))return function(a){var i=r.scale.getLabel(a),o=e.replace("{value}",i??"");return o};if(ie(e)){if(r.type==="category")return function(a,i){return e(Ih(r,a),a.value-r.scale.getExtent()[0],null)};var n=vt();return function(a,i){var o=null;return n&&(o=n.makeAxisLabelFormatterParamBreak(o,a.break)),e(Ih(r,a),i,o)}}else return function(a){return r.scale.getLabel(a)}}}function Ih(r,e){var t=r.scale;return jt(t)?t.getLabel(e):e.value}function QS(r){var e=r.get("interval");return e??"auto"}function wU(r){return r.type==="category"&&QS(r.getLabelModel())===0}function bU(r,e){var t={};return M(r.mapDimensionsAll(e),function(n){t[AR(r,n)]=!0}),De(t)}function il(r){return r==="middle"||r==="center"}function ff(r){return r.getShallow("show")}function BR(r,e,t){var n=r.get("breaks",!0);if(n!=null)return!vt()||!t||!CU(e)?void 0:n}function CU(r){return r!=="category"}function VR(r,e,t,n,a,i){var o=al(r),s=o?r.intervalStub:r;if(s.setExtent(n[0],n[1]),o){var l=r.powStub,u={depth:aa},f=r.transformOut(n[0],u),v=r.transformOut(n[1],u),c=oU(t,n);e[0]&&!c[0]&&(f=a[0]),e[1]&&!c[1]&&(v=a[1]),l.setExtent(f,v)}s.setConfig(i)}function Ll(r,e){return jt(r)?r.getRawOrdinalNumber(e.value):e.value}function Yf(r,e){return jt(r)&&!!e.get("boundaryGap")}var Xf=(function(){function r(){}return r.prototype.needIncludeZero=function(){return!this.option.scale},r.prototype.getCoordSysModel=function(){},r})(),TU=Sl(),Lh="|&",Pl=me(),zR=-2,AU=-1,MU=me();function e1(r,e){var t=r.model,n=Pl(Dl(t.ecModel)).keyed,a=n&&n.get(e);return a&&a.get(t.uid)}function DU(r,e){return GR(e1(r,e))}function IU(r,e){var t=[];return FR(r.model.ecModel,function(n){for(var a=0;a<e.length;a++)e[a]&&n.serByIdx[e[a].seriesIndex]&&t.push(GR(n))}),t}function FR(r,e){var t=Pl(Dl(r)).keyed;t&&t.each(function(n,a){n.each(function(i,o){e(i,a,o)})})}function GR(r){return{liPosMinGap:r?r.liPosMinGap:void 0}}function LU(r,e){var t=r.model.ecModel,n=Pl(Dl(t)).axSer;n&&qd(t,n.get(r.model.uid),e)}function Io(r,e,t){var n=e1(r,e);n&&qd(r.model.ecModel,n.sers,t)}function qd(r,e,t){if(e)for(var n=0;n<e.length;n++){var a=e[n];r.isSeriesFiltered(a)||t(a)}}function PU(r,e){var t=e1(r,e);if(!t||!t.sers.length)return 0;var n=0;return qd(r.model.ecModel,t.sers,function(){n++}),n}function t1(r,e,t){var n=Pl(Dl(r)).keyed,a=n&&n.get(e);a&&a.each(function(i){t(i.axis)})}function HR(r,e){var t=r.model,n=Pl(Dl(t.ecModel)).keys;n&&M(n.get(t.uid),function(a){e(a)})}function RU(r){var e=MU(eR(r)),t=e.keyed||(e.keyed=K());FR(r,function(n,a,i){var o=t.get(a)||t.set(a,K()),s=o.get(i)||o.set(i,{});n.metrics.liPosMinGap&&UR.liPosMinGap(r,n,s)})}function EU(r,e){UR[r]=e}var UR={};function Lo(r,e,t){if(r){var n=e.ecModel,a=Pl(Dl(n)),i=r.model.uid,o=a.axSer||(a.axSer=K()),s=o.get(i)||o.set(i,[]);s.push(e);var l=e.subType,u=e.getBaseAxis()===r,f=P0.get(L0(l,u,t))||P0.get(L0(l,u,null));if(f){var v=a.keyed||(a.keyed=K()),c=a.keys||(a.keys=K()),h=f.key,d=v.get(h)||v.set(h,K()),p=d.get(i);p||(p=d.set(i,{axis:r,sers:[],serByIdx:[]}),p.metrics=f.getMetrics(r),(c.get(i)||c.set(i,[])).push(h)),p.sers.push(e),p.serByIdx[e.seriesIndex]=e}}}function L0(r,e,t){return r+Lh+Q(e,!0)+Lh+(t||"")}function r1(r,e){var t=L0(e.seriesType,e.baseAxis,e.coordSysType);P0.set(t,e),TU(r,function(){r.registerProcessor(r.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:RU})})}var P0=K(),kU=me(),ol=1,OU=2,NU=3,$R=(function(){function r(e,t,n,a,i){var o=jt(e),s=o?t.getCategories().length:null,l;if(o){var u=t.getCategories(!0);l=u&&!u.length}var f=n.slice();(Dh(e)||al(e)||Uf(e))&&(VL(f,jl(e,t.get("dataMin",!0))),zL(f,jl(e,t.get("dataMax",!0)))),yF(f)||(f[0]=f[1]=NaN);var v=[],c=[!1,!1],h=t.get("min",!0);h==="dataMin"?(v[0]=f[0],c[0]=!0):(v[0]=jl(e,ie(h)?h({min:f[0],max:f[1]}):h),c[0]=v[0]!=null);var d=t.get("max",!0);d==="dataMax"?(v[1]=f[1],c[1]=!0):(v[1]=jl(e,ie(d)?d({min:f[0],max:f[1]}):d),c[1]=v[1]!=null);var p=BU(e,t),g=o?null:f[1]-f[0]||Math.abs(f[0]);v[0]==null&&(v[0]=o?l?f[0]:s?0:NaN:f[0]-p[0]*g),v[1]==null&&(v[1]=o?l?f[1]:s?s-1:NaN:f[1]+p[1]*g),!ha(v[0])&&(v[0]=NaN),!ha(v[1])&&(v[1]=NaN);var y=l||$t(v[0])||$t(v[1])||o&&!s,m=Dh(e),_=m&&t.needIncludeZero&&t.needIncludeZero();_&&(v[0]>0&&v[1]>0&&!c[0]&&(v[0]=0),v[0]<0&&v[1]<0&&!c[1]&&(v[1]=0));var S=!1;v[0]>v[1]&&(v.reverse(),S=!0);var x=jl(e,t.get("startValue",!0)),w=x!=null;!Hr(x)&&a&&(x=e.getDefaultStartValue?e.getDefaultStartValue():0),Hr(x)&&(w||!m||_)&&(x<v[0]&&!c[0]?(v[0]=x,c[0]=!0):x>v[1]&&!c[1]&&(v[1]=x,c[1]=!0));var b=this._i={scale:e,dataMM:f,noZoomEffMM:v,zoomMM:[],fixMM:c,zoomFixMM:[!1,!1],startValue:x,isBlank:y,incl0:_,tggAxInv:S,ctnShp:i};SC(b,v)}return r.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},r.prototype.makeFinal=function(){var e=this._i,t=e.zoomMM,n=e.noZoomEffMM,a=e.zoomFixMM,i=e.fixMM,o={fixMM:i,zoomFixMM:a,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:n.slice()},s=o.effMM;return t[0]!=null&&(s[0]=t[0],i[0]=a[0]=!0),t[1]!=null&&(s[1]=t[1],i[1]=a[1]=!0),SC(e,s),o},r.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},r.prototype.setZoomMM=function(e,t){this._i.zoomMM[e]=t},r})();function SC(r,e){var t=r.scale,n=r.dataMM;t.sanitize&&(e[0]=t.sanitize(e[0],n),e[1]=t.sanitize(e[1],n),Rc(e))}function jl(r,e){return e==null?null:$t(e)?NaN:r.parse(e)}function BU(r,e){var t;if(jt(r))t=[0,0];else{var n=e.get("boundaryGap");typeof n=="boolean"&&(n=null),t=U(n)?n:[n,n]}return[xC(t[0]),xC(t[1])]}function xC(r){return Nn(typeof r=="boolean"?0:r,1)||0}function WR(r){var e=kU(r.scale);return e.extent||(e.extent=Ot()),e}function VU(r,e){WR(r).dimIdxInCoord=e.get(r.dim)}function Po(r,e){var t=r.scale,n=r.model,a=r.dim;t.rawExtentInfo||zU(t,r,a,n,e)}function zU(r,e,t,n,a){var i=WR(e),o=i.extent,s=!1;LU(e,function(f){if(f.boxCoordinateSystem){var v=eP(f).coord,c=i.dimIdxInCoord;if(c>=0){if(U(v)){var h=v[c];h!=null&&!U(h)&&Xm(o,r.parse(h))}}}else if(f.coordinateSystem){var d=f.getData();if(d){var p=r.getFilter?r.getFilter():null;M(bU(d,t),function(g){gF(o,d.getApproximateExtent(g,p))})}f.__requireStartValue&&f.__requireStartValue(e)&&(s=!0)}});var l=GU(r,e,n),u=new $R(r,n,o,s,l);YR(r,u,a),i.extent=null}function FU(r,e){var t=r.scale;YR(t,new $R(t,r.model,e,!1,!1),NU)}function YR(r,e,t){r.rawExtentInfo=e,e.from=t}function Kd(r,e){n1.set(r,e)}var n1=K();function XR(r,e,t,n,a){r.rawExtentInfo||FU({scale:r,model:e},Ot());var i=r.rawExtentInfo.makeFinal(),o=i.effMM;return r.setExtent(o[0],o[1]),r.setBlank(i.isBlank),n&&i.tggAxInv&&t&&!t.get("legacyMinMaxDontInverseAxis")&&(n.inverse=!n.inverse),i}function GU(r,e,t){var n=Yf(r,t),a=t.get("containShape",!0);if(a==null&&!n&&(a=!0),!a)return!1;var i=!1;return HR(e,function(o){i=!!n1.get(o)||i}),i}function HU(r,e,t,n){if(t.ctnShp){var a;if(HR(r,function(s){var l=n1.get(s);if(l){var u=l(r,n);u&&(a=a||[0,0],VL(a,u[0]),zL(a,u[1]),SU(r))}}),!!a){var i=e.getExtent();if(jt(e))r.onBand||e.setExtent2(sf,He(i[0],i[0]+a[0]),we(i[1],i[1]+a[1]));else{var o=i.slice();t.zoomFixMM[0]||(o[0]=He(o[0],e.transformOut(e.transformIn(o[0],null)+a[0],null))),t.zoomFixMM[1]||(o[1]=we(o[1],e.transformOut(e.transformIn(o[1],null)+a[1],null))),(o[0]<i[0]||o[1]>i[1])&&e.setExtent2(sf,o[0],o[1])}}}}function wC(r,e){var t=al(r),n=t?r.intervalStub:r,a=e.fixMinMax||[],i=t?r.getExtent():null,o=n.getExtent(),s=LR(o,a,e.rawExtentResult);n.setExtent(s[0],s[1]),s=n.getExtent();var l=t?$U(n,e):UU(n,e),u=l.intervalPrecision,f=l.interval,v=e.userInterval;v!=null&&(l.interval=v,l.intervalPrecision=Do(v)),a[0]||(s[0]=ke(rn(s[0]/f)*f,u)),a[1]||(s[1]=ke(Uo(s[1]/f)*f,u)),v!=null&&(l.niceExtent=s.slice()),VR(r,a,o,s,i,l)}function UU(r,e){var t=Zd(e.splitNumber,5),n=Xd(r),a=e.minInterval,i=e.maxInterval,o=eS(n/t,!0);a!=null&&o<a&&(o=a),i!=null&&o>i&&(o=i);var s=Do(o),l=r.getExtent(),u=[ke(Uo(l[0]/o)*o,s),ke(rn(l[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:u}}function $U(r,e){var t=Zd(e.splitNumber,10),n=r.getExtent(),a=Xd(r),i=we(ML(a),1),o=t/a*i;o<=.5&&(i*=10);var s=Do(i),l=[ke(Uo(n[0]/i)*i,s),ke(rn(n[1]/i)*i,s)];return{intervalPrecision:s,interval:i,niceExtent:l}}function sl(r){var e=r.scale,t=r.model,n=t.axis,a=t.ecModel;WU(e,t,n,a)}function WU(r,e,t,n,a){var i=XR(r,e,n,t),o=Dh(r)||Uf(r);ZR(r,{splitNumber:e.get("splitNumber"),fixMinMax:i.fixMM,userInterval:e.get("interval"),minInterval:o?e.get("minInterval"):null,maxInterval:o?e.get("maxInterval"):null,rawExtentResult:i}),t&&n&&HU(t,r,i,n)}function ZR(r,e){YU[r.type](r,e)}var YU={interval:wC,log:wC,time:pU,ordinal:ot},XU=1e-8;function bC(r,e){return Math.abs(r-e)<XU}function Qi(r,e,t){var n=0,a=r[0];if(!a)return!1;for(var i=1;i<r.length;i++){var o=r[i];n+=Kn(a[0],a[1],o[0],o[1],e,t),a=o}var s=r[0];return(!bC(a[0],s[0])||!bC(a[1],s[1]))&&(n+=Kn(a[0],a[1],s[0],s[1],e,t)),n!==0}var ZU=[];function Mg(r,e){for(var t=0;t<r.length;t++)st(r[t],r[t],e)}function CC(r,e,t,n){for(var a=0;a<r.length;a++){var i=r[a];n&&(i=n.project(i)),i&&isFinite(i[0])&&isFinite(i[1])&&(Ba(e,e,i),Va(t,t,i))}}function jU(r){for(var e=0,t=0,n=0,a=r.length,i=r[a-1][0],o=r[a-1][1],s=0;s<a;s++){var l=r[s][0],u=r[s][1],f=i*u-l*o;e+=f,t+=(i+l)*f,n+=(o+u)*f,i=l,o=u}return e?[t/e/3,n/e/3,e]:[r[0][0]||0,r[0][1]||0]}var jR=(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})(),TC=(function(){function r(e,t){this.type="polygon",this.exterior=e,this.interiors=t}return r})(),AC=(function(){function r(e){this.type="linestring",this.points=e}return r})(),qR=(function(r){B(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.type="geoJSON",i.geometries=n,i._center=a&&[a[0],a[1]],i}return e.prototype.calcCenter=function(){for(var t=this.geometries,n,a=0,i=0;i<t.length;i++){var o=t[i],s=o.exterior,l=s&&s.length;l>a&&(n=o,a=l)}if(n)return jU(n.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var n=this._rect;if(n&&!t)return n;var a=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return M(o,function(s){s.type==="polygon"?CC(s.exterior,a,i,t):M(s.points,function(l){CC(l,a,i,t)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])||(a[0]=a[1]=i[0]=i[1]=0),n=new se(a[0],a[1],i[0]-a[0],i[1]-a[1]),t||(this._rect=n),n},e.prototype.contain=function(t){var n=this.getBoundingRect(),a=this.geometries;if(!n.contain(t[0],t[1]))return!1;e:for(var i=0,o=a.length;i<o;i++){var s=a[i];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(Qi(l,t[0],t[1])){for(var f=0;f<(u?u.length:0);f++)if(Qi(u[f],t[0],t[1]))continue e;return!0}}}return!1},e.prototype.transformTo=function(t,n,a,i){var o=this.getBoundingRect(),s=o.width/o.height;a?i||(i=a/s):a=s*i;for(var l=new se(t,n,a,i),u=o.calculateTransform(l),f=this.geometries,v=0;v<f.length;v++){var c=f[v];c.type==="polygon"?(Mg(c.exterior,u),M(c.interiors,function(h){Mg(h,u)})):M(c.points,function(h){Mg(h,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 n=new e(t,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},e})(jR),qU=(function(r){B(e,r);function e(t,n){var a=r.call(this,t)||this;return a.type="geoSVG",a._elOnlyForCalculate=n,a}return e.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,n=t.getBoundingRect(),a=[n.x+n.width/2,n.y+n.height/2],i=yl(ZU),o=t;o&&!o.isGeoSVGGraphicRoot;)Vr(i,o.getLocalTransform(),i),o=o.parent;return Gr(i,i),st(a,a,i),a},e})(jR);function KU(r){if(!r.UTF8Encoding)return r;var e=r,t=e.UTF8Scale;t==null&&(t=1024);var n=e.features;return M(n,function(a){var i=a.geometry,o=i.encodeOffsets,s=i.coordinates;if(o)switch(i.type){case"LineString":i.coordinates=KR(s,o,t);break;case"Polygon":Dg(s,o,t);break;case"MultiLineString":Dg(s,o,t);break;case"MultiPolygon":M(s,function(l,u){return Dg(l,o[u],t)})}}),e.UTF8Encoding=!1,e}function Dg(r,e,t){for(var n=0;n<r.length;n++)r[n]=KR(r[n],e[n],t)}function KR(r,e,t){for(var n=[],a=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+=a,l+=i,a=s,i=l,n.push([s/t,l/t])}return n}function JU(r,e){return r=KU(r),$(Fe(r.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var n=t.properties,a=t.geometry,i=[];switch(a.type){case"Polygon":var o=a.coordinates;i.push(new TC(o[0],o.slice(1)));break;case"MultiPolygon":M(a.coordinates,function(l){l[0]&&i.push(new TC(l[0],l.slice(1)))});break;case"LineString":i.push(new AC([a.coordinates]));break;case"MultiLineString":i.push(new AC(a.coordinates))}var s=new qR(n[e||"name"],i,n.cp);return s.properties=n,s})}var QU=me(),zu=me(),nn={estimate:1,determine:2};function Ph(r){return{out:{noPxChangeTryDetermine:[]},kind:r}}function e$(r,e){var t=r.getLabelModel().get("customValues");if(t){var n=r.scale;return{labels:$(JR(t,n),function(a,i){return{formattedLabel:Wf(r)(a,i),rawLabel:n.getLabel(a),tick:a}})}}return r.type==="category"?r$(r,e):a$(r)}function t$(r,e,t){var n=r.scale,a=r.getTickModel().get("customValues");return a?{ticks:JR(a,n)}:r.type==="category"?n$(r,e):{ticks:n.getTicks(t)}}function JR(r,e){var t=e.getExtent(),n=[];return M(r,function(a){a=e.parse(a),a>=t[0]&&a<=t[1]&&n.push(a)}),Td(n,SF,null),Nt(n),$(n,function(a){return{value:a}})}function r$(r,e){var t=r.getLabelModel(),n=QR(r,t,e);return!t.get("show")||r.scale.isBlank()?{labels:[]}:n}function QR(r,e,t){var n=o$(r),a=QS(e),i=t.kind===nn.estimate;if(!i){var o=tE(n,a);if(o)return o}var s,l;ie(a)?s=Rh(r,a,!1):(l=a==="auto"?s$(r,t):a,s=Rh(r,l,!1));var u={labels:s,labelCategoryInterval:l};return i?t.out.noPxChangeTryDetermine.push(function(){return R0(n,a,u),!0}):R0(n,a,u),u}function n$(r,e){var t=i$(r),n=QS(e),a=tE(t,n);if(a)return a;var i,o;if((!e.get("show")||r.scale.isBlank())&&(i=[]),ie(n))i=Rh(r,n,!0);else if(n==="auto"){var s=QR(r,r.getLabelModel(),Ph(nn.determine));o=s.labelCategoryInterval,i=$(s.labels,function(l){return l.tick})}else o=n,i=Rh(r,o,!0);return R0(t,n,{ticks:i,tickCategoryInterval:o})}function a$(r){var e=r.scale.getTicks(),t=Wf(r);return{labels:$(e,function(n,a){return{formattedLabel:t(n,a),rawLabel:r.scale.getLabel(n),tick:n}})}}var i$=eE("axisTick"),o$=eE("axisLabel");function eE(r){return function(t){return zu(t)[r]||(zu(t)[r]={list:[]})}}function tE(r,e){for(var t=0;t<r.list.length;t++)if(r.list[t].key===e)return r.list[t].value}function R0(r,e,t){return r.list.push({key:e,value:t}),t}function s$(r,e){if(e.kind===nn.estimate){var t=r.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return zu(r).autoInterval=t,!0}),t}var n=zu(r).autoInterval;return n??(zu(r).autoInterval=r.calculateCategoryInterval(e))}function l$(r,e){var t=e.kind,n=f$(r),a=Wf(r),i=(n.axisRotate-n.labelRotate)/180*Math.PI,o=r.scale,s=o.getExtent(),l=o.count();if(s[1]-s[0]<1)return 0;var u=1,f=40;l>f&&(u=Math.max(1,Math.floor(l/f)));for(var v=s[0],c=r.dataToCoord(v+1)-r.dataToCoord(v),h=Math.abs(c*Math.cos(i)),d=Math.abs(c*Math.sin(i)),p=0,g=0;v<=s[1];v+=u){var y=0,m=0,_=wd(a({value:v}),n.font,"center","top");y=_.width*1.3,m=_.height*1.3,p=Math.max(p,y,7),g=Math.max(g,m,7)}var S=p/h,x=g/d;isNaN(S)&&(S=1/0),isNaN(x)&&(x=1/0);var w=Math.max(0,Math.floor(Math.min(S,x)));if(t===nn.estimate)return e.out.noPxChangeTryDetermine.push(q(u$,null,r,w,l)),w;var b=rE(r,w,l);return b??w}function u$(r,e,t){return rE(r,e,t)==null}function rE(r,e,t){var n=QU(r.model),a=r.getExtent(),i=n.lastAutoInterval,o=n.lastTickCount;if(i!=null&&o!=null&&Math.abs(i-e)<=1&&Math.abs(o-t)<=1&&i>e&&n.axisExtent0===a[0]&&n.axisExtent1===a[1])return i;n.lastTickCount=t,n.lastAutoInterval=e,n.axisExtent0=a[0],n.axisExtent1=a[1]}function f$(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 Rh(r,e,t){var n=Wf(r),a=r.scale,i=[],o=ie(e);return PR(a,o?0:e,function(s,l){var u=a.getLabel(s);if(o){var f=!!e(s.value,u);if(s.offInterval=!f,!f&&!l)return}i.push(t?s:{formattedLabel:n(s),rawLabel:u,tick:s})}),i}var v$=.8;function Vt(r,e){e=e||{};var t={w:NaN,w2:NaN},n=r.scale,a=e.fromStat,i=e.min,o=nU(n);Hr(o)||(o=NaN);var s=r.getExtent(),l=it(s[1]-s[0]);return jt(n)?c$(t,r,o,l):a&&h$(t,r,o,l,a),i!=null&&(t.w=Hr(t.w)?we(i,t.w):i),t}function c$(r,e,t,n){var a=e.onBand,i=t+(a?1:0);i===0&&(i=1),r.w=n/i,!a&&t&&n&&(r.w2=r.w*t/n)}function h$(r,e,t,n,a){var i=!1,o=-1/0;M(a.key?[DU(e,a.key)]:IU(e,a.sers||[]),function(s){var l=s.liPosMinGap;l!=null&&(l>0?(l>o&&(o=l),i=!1):l===zR&&(i=!0))}),Hr(t)&&t>0&&Hr(o)?(r.w=n/t*o,r.w2=o):i&&(r.w=n*v$,r.w2=r.w*t/n)}var MC=[0,1],ln=(function(){function r(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return r.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),a=Math.max(t[0],t[1]);return e>=n&&e<=a},r.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},r.prototype.dataToCoord=function(e,t){var n=this.scale;return e=n.normalize(n.parse(e)),Be(e,MC,DC(this),t)},r.prototype.coordToData=function(e,t){var n=Be(e,DC(this),MC,t);return this.scale.scale(n)},r.prototype.pointToData=function(e,t){},r.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),n=t$(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}),a=$(n.ticks,function(s){return{coord:this.dataToCoord(Ll(this.scale,s)),tick:s}},this),i=t.get("alignWithLabel"),o=d$(this,a,i);return $(a,function(s){return{coord:s.coord,tickValue:s.tick.value,onBand:o}})},r.prototype.getMinorTicksCoords=function(){if(jt(this.scale))return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var n=this.scale.getMinorTicks(t),a=$(n,function(i){return $(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},r.prototype.getViewLabels=function(e){return e=e||Ph(nn.determine),e$(this,e).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){return Vt(this,{min:1}).w},r.prototype.calculateCategoryInterval=function(e){return e=e||Ph(nn.determine),l$(this,e)},r})();function DC(r){var e=r.getExtent();if(r.onBand){var t=e[1]-e[0],n=t/r.scale.count()/2;e[0]+=n,e[1]-=n}return e}function d$(r,e,t){var n=e.length;if(!r.onBand||t||!n)return!1;var a=Vt(r).w;if(!a)return!1;M(e,function(s){s.coord-=a/2});var i=r.scale.getExtent(),o=e[n-1];return o.tick.offInterval&&e.pop(),e.push({coord:o.coord+a,tick:{value:i[1]+1}}),!0}var ql=Math.PI*2,zi=Bn.CMD,p$=["top","right","bottom","left"];function g$(r,e,t,n,a){var i=t.width,o=t.height;switch(r){case"top":n.set(t.x+i/2,t.y-e),a.set(0,-1);break;case"bottom":n.set(t.x+i/2,t.y+o+e),a.set(0,1);break;case"left":n.set(t.x-e,t.y+o/2),a.set(-1,0);break;case"right":n.set(t.x+i+e,t.y+o/2),a.set(1,0);break}}function y$(r,e,t,n,a,i,o,s,l){o-=r,s-=e;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var f=o*t+r,v=s*t+e;if(Math.abs(n-a)%ql<1e-4)return l[0]=f,l[1]=v,u-t;if(i){var c=n;n=_r(a),a=_r(c)}else n=_r(n),a=_r(a);n>a&&(a+=ql);var h=Math.atan2(s,o);if(h<0&&(h+=ql),h>=n&&h<=a||h+ql>=n&&h+ql<=a)return l[0]=f,l[1]=v,u-t;var d=t*Math.cos(n)+r,p=t*Math.sin(n)+e,g=t*Math.cos(a)+r,y=t*Math.sin(a)+e,m=(d-o)*(d-o)+(p-s)*(p-s),_=(g-o)*(g-o)+(y-s)*(y-s);return m<_?(l[0]=d,l[1]=p,Math.sqrt(m)):(l[0]=g,l[1]=y,Math.sqrt(_))}function Eh(r,e,t,n,a,i,o,s){var l=a-r,u=i-e,f=t-r,v=n-e,c=Math.sqrt(f*f+v*v);f/=c,v/=c;var h=l*f+u*v,d=h/c;s&&(d=Math.min(Math.max(d,0),1)),d*=c;var p=o[0]=r+d*f,g=o[1]=e+d*v;return Math.sqrt((p-a)*(p-a)+(g-i)*(g-i))}function nE(r,e,t,n,a,i,o){t<0&&(r=r+t,t=-t),n<0&&(e=e+n,n=-n);var s=r+t,l=e+n,u=o[0]=Math.min(Math.max(a,r),s),f=o[1]=Math.min(Math.max(i,e),l);return Math.sqrt((u-a)*(u-a)+(f-i)*(f-i))}var jr=[];function m$(r,e,t){var n=nE(e.x,e.y,e.width,e.height,r.x,r.y,jr);return t.set(jr[0],jr[1]),n}function _$(r,e,t){for(var n=0,a=0,i=0,o=0,s,l,u=1/0,f=e.data,v=r.x,c=r.y,h=0;h<f.length;){var d=f[h++];h===1&&(n=f[h],a=f[h+1],i=n,o=a);var p=u;switch(d){case zi.M:i=f[h++],o=f[h++],n=i,a=o;break;case zi.L:p=Eh(n,a,f[h],f[h+1],v,c,jr,!0),n=f[h++],a=f[h++];break;case zi.C:p=sL(n,a,f[h++],f[h++],f[h++],f[h++],f[h],f[h+1],v,c,jr),n=f[h++],a=f[h++];break;case zi.Q:p=uL(n,a,f[h++],f[h++],f[h],f[h+1],v,c,jr),n=f[h++],a=f[h++];break;case zi.A:var g=f[h++],y=f[h++],m=f[h++],_=f[h++],S=f[h++],x=f[h++];h+=1;var w=!!(1-f[h++]);s=Math.cos(S)*m+g,l=Math.sin(S)*_+y,h<=1&&(i=s,o=l);var b=(v-g)*_/m+g;p=y$(g,y,_,S,S+x,w,b,c,jr),n=Math.cos(S+x)*m+g,a=Math.sin(S+x)*_+y;break;case zi.R:i=n=f[h++],o=a=f[h++];var T=f[h++],C=f[h++];p=nE(i,o,T,C,v,c,jr);break;case zi.Z:p=Eh(n,a,i,o,v,c,jr,!0),n=i,a=o;break}p<u&&(u=p,t.set(jr[0],jr[1]))}return u}var qr=new ue,qe=new ue,ft=new ue,wn=new ue,Sn=new ue;function IC(r,e){if(r){var t=r.getTextGuideLine(),n=r.getTextContent();if(n&&t){var a=r.textGuideLineConfig||{},i=[[0,0],[0,0],[0,0]],o=a.candidates||p$,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var l=1/0,u=a.anchor,f=r.getComputedTransform(),v=f&&Gr([],f),c=e.get("length2")||0;u&&ft.copy(u);for(var h=0;h<o.length;h++){var d=o[h];g$(d,0,s,qr,wn),ue.scaleAndAdd(qe,qr,wn,c),qe.transform(v);var p=r.getBoundingRect(),g=u?u.distance(qe):r instanceof Ae?_$(qe,r.path,ft):m$(qe,p,ft);g<l&&(l=g,qe.transform(f),ft.transform(f),ft.toArray(i[0]),qe.toArray(i[1]),qr.toArray(i[2]))}aE(i,e.get("minTurnAngle")),t.setShape({points:i})}}}var kh=[],Jt=new ue;function aE(r,e){if(e<=180&&e>0){e=e/180*Math.PI,qr.fromArray(r[0]),qe.fromArray(r[1]),ft.fromArray(r[2]),ue.sub(wn,qr,qe),ue.sub(Sn,ft,qe);var t=wn.len(),n=Sn.len();if(!(t<.001||n<.001)){wn.scale(1/t),Sn.scale(1/n);var a=wn.dot(Sn),i=Math.cos(e);if(i<a){var o=Eh(qe.x,qe.y,ft.x,ft.y,qr.x,qr.y,kh,!1);Jt.fromArray(kh),Jt.scaleAndAdd(Sn,o/Math.tan(Math.PI-e));var s=ft.x!==qe.x?(Jt.x-qe.x)/(ft.x-qe.x):(Jt.y-qe.y)/(ft.y-qe.y);if(isNaN(s))return;s<0?ue.copy(Jt,qe):s>1&&ue.copy(Jt,ft),Jt.toArray(r[1])}}}}function S$(r,e,t){if(t<=180&&t>0){t=t/180*Math.PI,qr.fromArray(r[0]),qe.fromArray(r[1]),ft.fromArray(r[2]),ue.sub(wn,qe,qr),ue.sub(Sn,ft,qe);var n=wn.len(),a=Sn.len();if(!(n<.001||a<.001)){wn.scale(1/n),Sn.scale(1/a);var i=wn.dot(e),o=Math.cos(t);if(i<o){var s=Eh(qe.x,qe.y,ft.x,ft.y,qr.x,qr.y,kh,!1);Jt.fromArray(kh);var l=Math.PI/2,u=Math.acos(Sn.dot(e)),f=l+u-t;if(f>=l)ue.copy(Jt,ft);else{Jt.scaleAndAdd(Sn,s/Math.tan(Math.PI/2-f));var v=ft.x!==qe.x?(Jt.x-qe.x)/(ft.x-qe.x):(Jt.y-qe.y)/(ft.y-qe.y);if(isNaN(v))return;v<0?ue.copy(Jt,qe):v>1&&ue.copy(Jt,ft)}Jt.toArray(r[1])}}}}function Ig(r,e,t,n){var a=t==="normal",i=a?r:r.ensureState(t);i.ignore=e;var o=n.get("smooth");o=o===!0?.3:Math.max(+o,0)||0,i.shape=i.shape||{},i.shape.smooth=o;var s=n.getModel("lineStyle").getLineStyle();a?r.useStyle(s):i.style=s}function x$(r,e){var t=e.smooth,n=e.points;if(n)if(r.moveTo(n[0][0],n[0][1]),t>0&&n.length>=3){var a=Na(n[0],n[1]),i=Na(n[1],n[2]);if(!a||!i){r.lineTo(n[1][0],n[1][1]),r.lineTo(n[2][0],n[2][1]);return}var o=Math.min(a,i)*t,s=Tc([],n[1],n[0],o/a),l=Tc([],n[1],n[2],o/i),u=Tc([],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],n[2][0],n[2][1])}else for(var f=1;f<n.length;f++)r.lineTo(n[f][0],n[f][1])}function a1(r,e,t){var n=r.getTextGuideLine(),a=r.getTextContent();if(!a){n&&r.removeTextGuideLine();return}for(var i=e.normal,o=i.get("show"),s=a.ignore,l=0;l<Ku.length;l++){var u=Ku[l],f=e[u],v=u==="normal";if(f){var c=f.get("show"),h=v?s:Q(a.states[u]&&a.states[u].ignore,s);if(h||!Q(c,o)){var d=v?n:n&&n.states[u];d&&(d.ignore=!0),n&&Ig(n,!0,u,f);continue}n||(n=new Bt,r.setTextGuideLine(n),!v&&(s||!o)&&Ig(n,!0,"normal",e.normal),r.stateProxy&&(n.stateProxy=r.stateProxy)),Ig(n,!1,u,f)}}if(n){le(n.style,t),n.style.fill=null;var p=i.get("showAbove"),g=r.textGuideLineConfig=r.textGuideLineConfig||{};g.showAbove=p||!1,n.buildPath=x$}}function i1(r,e){e=e||"labelLine";for(var t={normal:r.getModel(e)},n=0;n<ir.length;n++){var a=ir[n];t[a]=r.getModel([a,e])}return t}var LC=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],w$=1,Oh=2,iE=w$|Oh;function Nh(r,e,t){t=t||iE,e?r.dirty|=t:r.dirty&=~t}function oE(r,e){return e=e||iE,r.dirty==null||!!(r.dirty&e)}function Fn(r){if(r)return oE(r)&&sE(r,r.label,r),r}function sE(r,e,t){var n=e.getComputedTransform();r.transform=yS(r.transform,n);var a=r.localRect=ef(r.localRect,e.getBoundingRect()),i=e.style,o=i.margin,s=t&&t.marginForce,l=t&&t.minMarginForce,u=t&&t.marginDefault,f=i.__marginType;f==null&&u&&(o=u,f=ks.textMargin);for(var v=0;v<4;v++)Lg[v]=f===ks.minMargin&&l&&l[v]!=null?l[v]:s&&s[v]!=null?s[v]:o?o[v]:0;f===ks.textMargin&&To(a,Lg,!1,!1);var c=r.rect=ef(r.rect,a);return n&&c.applyTransform(n),f===ks.minMargin&&To(c,Lg,!1,!1),r.axisAligned=gS(n),(r.label=r.label||{}).ignore=e.ignore,Nh(r,!1),Nh(r,!0,Oh),r}var Lg=[0,0,0,0];function b$(r,e,t){return r.transform=yS(r.transform,t),r.localRect=ef(r.localRect,e),r.rect=ef(r.rect,e),t&&r.rect.applyTransform(t),r.axisAligned=gS(t),r.obb=void 0,(r.label=r.label||{}).ignore=!1,r}function E0(r,e){if(r){r.label.x+=e.x,r.label.y+=e.y,r.label.markRedraw();var t=r.transform;t&&(t[4]+=e.x,t[5]+=e.y);var n=r.rect;n&&(n.x+=e.x,n.y+=e.y);var a=r.obb;a&&a.fromBoundingRect(r.localRect,t)}}function k0(r,e){for(var t=0;t<LC.length;t++){var n=LC[t];r[n]==null&&(r[n]=e[n])}return Fn(r)}function PC(r){var e=r.obb;return(!e||oE(r,Oh))&&(r.obb=e=e||new x2,e.fromBoundingRect(r.localRect,r.transform),Nh(r,!1,Oh)),e}function O0(r,e,t,n,a){var i=r.length,o=de[e],s=lt[e];if(i<2)return!1;r.sort(function(b,T){return b.rect[o]-T.rect[o]});for(var l=0,u,f=!1,v=0;v<i;v++){var c=r[v],h=c.rect;u=h[o]-l,u<0&&(h[o]-=u,c.label[o]-=u,f=!0),l=h[o]+h[s]}var d=r[0],p=r[i-1],g,y;m(),g<0&&x(-g,.8),y<0&&x(y,.8),m(),_(g,y,1),_(y,g,-1),m(),g<0&&w(-g),y<0&&w(y);function m(){g=d.rect[o]-t,y=n-p.rect[o]-p.rect[s]}function _(b,T,C){if(b<0){var A=Math.min(T,-b);if(A>0){S(A*C,0,i);var D=A+b;D<0&&x(-D*C,1)}else x(-b*C,1)}}function S(b,T,C){b!==0&&(f=!0);for(var A=T;A<C;A++){var D=r[A],L=D.rect;L[o]+=b,D.label[o]+=b}}function x(b,T){for(var C=[],A=0,D=1;D<i;D++){var L=r[D-1].rect,I=Math.max(r[D].rect[o]-L[o]-L[s],0);C.push(I),A+=I}if(A){var P=Math.min(Math.abs(b)/A,T);if(b>0)for(var D=0;D<i-1;D++){var R=C[D]*P;S(R,0,D+1)}else for(var D=i-1;D>0;D--){var R=C[D-1]*P;S(-R,D,i)}}}function w(b){var T=b<0?-1:1;b=Math.abs(b);for(var C=Math.ceil(b/(i-1)),A=0;A<i-1;A++)if(T>0?S(C,0,A+1):S(-C,i-A-1,i),b-=C,b<=0)return}return f}function C$(r){for(var e=0;e<r.length;e++){var t=r[e],n=t.defaultAttr,a=t.labelLine;t.label.attr("ignore",n.ignore),a&&a.attr("ignore",n.labelGuideIgnore)}}function lE(r){var e=[];r.sort(function(u,f){return(f.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||f.priority-u.priority});function t(u){if(!u.ignore){var f=u.ensureState("emphasis");f.ignore==null&&(f.ignore=!1)}u.ignore=!0}for(var n=0;n<r.length;n++){var a=Fn(r[n]);if(!a.label.ignore){for(var i=a.label,o=a.labelLine,s=!1,l=0;l<e.length;l++)if(Jd(a,e[l],null,{touchThreshold:.05})){s=!0;break}s?(t(i),o&&t(o)):e.push(a)}}}function Jd(r,e,t,n){return!r||!e||r.label&&r.label.ignore||e.label&&e.label.ignore||!r.rect.intersect(e.rect,t,n)?!1:r.axisAligned&&e.axisAligned?!0:PC(r).intersect(PC(e),t,n)}function T$(r){if(r){for(var e=[],t=0;t<r.length;t++)e.push(r[t].slice());return e}}function A$(r,e){var t=r.label,n=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:T$(n&&n.shape.points)}}var RC=["align","verticalAlign","width","height","fontSize"],qt=new Un,Pg=me(),M$=me();function Nv(r,e,t){for(var n=0;n<t.length;n++){var a=t[n];e[a]!=null&&(r[a]=e[a])}}var Bv=["x","y","rotation"],D$=(function(){function r(){this._labelList=[],this._chartViewList=[]}return r.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},r.prototype._addLabel=function(e,t,n,a,i){var o=a.style,s=a.__hostTarget,l=s.textConfig||{},u=a.getComputedTransform(),f=a.getBoundingRect().plain();se.applyTransform(f,f,u),u?qt.setLocalTransform(u):(qt.x=qt.y=qt.rotation=qt.originX=qt.originY=0,qt.scaleX=qt.scaleY=1),qt.rotation=_r(qt.rotation);var v=a.__hostTarget,c;if(v){c=v.getBoundingRect().plain();var h=v.getComputedTransform();se.applyTransform(c,c,h)}var d=c&&v.getTextGuideLine();this._labelList.push({label:a,labelLine:d,seriesModel:n,dataIndex:e,dataType:t,layoutOptionOrCb:i,layoutOption:null,rect:f,hostRect:c,priority:c?c.width*c.height:0,defaultAttr:{ignore:a.ignore,labelGuideIgnore:d&&d.ignore,x:qt.x,y:qt.y,scaleX:qt.scaleX,scaleY:qt.scaleY,rotation:qt.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:a.cursor,attachedPos:l.position,attachedRot:l.rotation}})},r.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var n=e.__model,a=n.get("labelLayout");(ie(a)||De(a).length)&&e.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=ve(i);o&&!o.disableLabelLayout&&t._addLabel(s.dataIndex,s.dataType,n,o,a)})},r.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),n=e.getHeight();function a(_,S){return function(){IC(_,S)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],s=o.label,l=s.__hostTarget,u=o.defaultAttr,f=void 0;ie(o.layoutOptionOrCb)?f=o.layoutOptionOrCb(A$(o,l)):f=o.layoutOptionOrCb,f=f||{},o.layoutOption=f;var v=Math.PI/180;l&&l.setTextConfig({local:!1,position:f.x!=null||f.y!=null?null:u.attachedPos,rotation:f.rotate!=null?f.rotate*v:u.attachedRot,offset:[f.dx||0,f.dy||0]});var c=!1;if(f.x!=null?(s.x=j(f.x,t),s.setStyle("x",0),c=!0):(s.x=u.x,s.setStyle("x",u.style.x)),f.y!=null?(s.y=j(f.y,n),s.setStyle("y",0),c=!0):(s.y=u.y,s.setStyle("y",u.style.y)),f.labelLinePoints){var h=l.getTextGuideLine();h&&(h.setShape({points:f.labelLinePoints}),c=!1)}var d=Pg(s);d.needsUpdateLabelLine=c,s.rotation=f.rotate!=null?f.rotate*v:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var p=0;p<RC.length;p++){var g=RC[p];s.setStyle(g,f[g]!=null?f[g]:u.style[g])}if(f.draggable){if(s.draggable=!0,s.cursor="move",l){var y=o.seriesModel;if(o.dataIndex!=null){var m=o.seriesModel.getData(o.dataType);y=m.getItemModel(o.dataIndex)}s.on("drag",a(l,y.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},r.prototype.layout=function(e){var t=e.getWidth(),n=e.getHeight(),a=[];M(this._labelList,function(l){l.defaultAttr.ignore||a.push(k0({},l))});var i=Fe(a,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=Fe(a,function(l){return l.layoutOption.moveOverlap==="shiftY"});O0(i,0,0,t),O0(o,1,0,n);var s=Fe(a,function(l){return l.layoutOption.hideOverlap});C$(s),lE(s)},r.prototype.processLabelsOverall=function(){var e=this;M(this._chartViewList,function(t){var n=t.__model,a=t.ignoreLabelLineUpdate,i=n.isAnimationEnabled();t.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!a,l=o.getTextContent();!s&&l&&(s=Pg(l).needsUpdateLabelLine),s&&e._updateLabelLine(o,n),i&&e._animateLabels(o,n)})})},r.prototype._updateLabelLine=function(e,t){var n=e.getTextContent(),a=ve(e),i=a.dataIndex;if(n&&i!=null){var o=t.getData(a.dataType),s=o.getItemModel(i),l={},u=o.getItemVisual(i,"style");if(u){var f=o.getVisual("drawType");l.stroke=u[f]}var v=s.getModel("labelLine");a1(e,i1(s),l),IC(e,v)}},r.prototype._animateLabels=function(e,t){var n=e.getTextContent(),a=e.getTextGuideLine();if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!Gs(e))){var i=Pg(n),o=i.oldLayout,s=ve(e),l=s.dataIndex,u={x:n.x,y:n.y,rotation:n.rotation},f=t.getData(s.dataType);if(o){n.attr(o);var c=e.prevStates;c&&(pe(c,"select")>=0&&n.attr(i.oldLayoutSelect),pe(c,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),Oe(n,u,t,l)}else if(n.attr(u),!Al(n).valueAnimation){var v=Q(n.style.opacity,1);n.style.opacity=0,Ke(n,{style:{opacity:v}},t,l)}if(i.oldLayout=u,n.states.select){var h=i.oldLayoutSelect={};Nv(h,u,Bv),Nv(h,n.states.select,Bv)}if(n.states.emphasis){var d=i.oldLayoutEmphasis={};Nv(d,u,Bv),Nv(d,n.states.emphasis,Bv)}O2(n,l,f,t,t)}if(a&&!a.ignore&&!a.invisible){var i=M$(a),o=i.oldLayout,p={points:a.shape.points};o?(a.attr({shape:o}),Oe(a,{shape:p},t)):(a.setShape(p),a.style.strokePercent=0,Ke(a,{style:{strokePercent:1}},t)),i.oldLayout=p}},r})(),Rg=me();function I$(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,n){var a=Rg(t).labelManager;a||(a=Rg(t).labelManager=new D$),a.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(e,t,n){var a=Rg(t).labelManager;M(n.updatedSeries,function(i){a.addLabelsOfSeries(t.getViewOfSeriesModel(i))}),a.updateLayoutConfig(t),a.layout(t),a.processLabelsOverall()})}var Eg=Math.sin,kg=Math.cos,uE=Math.PI,Fi=Math.PI*2,L$=180/uE,fE=(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,n,a,i,o){this._add("C",e,t,n,a,i,o)},r.prototype.quadraticCurveTo=function(e,t,n,a){this._add("Q",e,t,n,a)},r.prototype.arc=function(e,t,n,a,i,o){this.ellipse(e,t,n,n,0,a,i,o)},r.prototype.ellipse=function(e,t,n,a,i,o,s,l){var u=s-o,f=!l,v=Math.abs(u),c=Ga(v-Fi)||(f?u>=Fi:-u>=Fi),h=u>0?u%Fi:u%Fi+Fi,d=!1;c?d=!0:Ga(v)?d=!1:d=h>=uE==!!f;var p=e+n*kg(o),g=t+a*Eg(o);this._start&&this._add("M",p,g);var y=Math.round(i*L$);if(c){var m=1/this._p,_=(f?1:-1)*(Fi-m);this._add("A",n,a,y,1,+f,e+n*kg(o+_),t+a*Eg(o+_)),m>.01&&this._add("A",n,a,y,0,+f,p,g)}else{var S=e+n*kg(s),x=t+a*Eg(s);this._add("A",n,a,y,+d,+f,S,x)}},r.prototype.rect=function(e,t,n,a){this._add("M",e,t),this._add("l",n,0),this._add("l",0,a),this._add("l",-n,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(e,t,n,a,i,o,s,l,u){for(var f=[],v=this._p,c=1;c<arguments.length;c++){var h=arguments[c];if(isNaN(h)){this._invalid=!0;return}f.push(Math.round(h*v)/v)}this._d.push(e+f.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})(),o1="none",P$=Math.round;function R$(r){var e=r.fill;return e!=null&&e!==o1}function E$(r){var e=r.stroke;return e!=null&&e!==o1}var N0=["lineCap","miterLimit","lineJoin"],k$=$(N0,function(r){return"stroke-"+r.toLowerCase()});function O$(r,e,t,n){var a=e.opacity==null?1:e.opacity;if(t instanceof Rt){r("opacity",a);return}if(R$(e)){var i=Zu(e.fill);r("fill",i.color);var o=e.fillOpacity!=null?e.fillOpacity*i.opacity*a:i.opacity*a;o<1&&r("fill-opacity",o)}else r("fill",o1);if(E$(e)){var s=Zu(e.stroke);r("stroke",s.color);var l=e.strokeNoScale?t.getLineScale():1,u=l?(e.lineWidth||0)/l:0,f=e.strokeOpacity!=null?e.strokeOpacity*s.opacity*a:s.opacity*a,v=e.strokeFirst;if(u!==1&&r("stroke-width",u),v&&r("paint-order",v?"stroke":"fill"),f<1&&r("stroke-opacity",f),e.lineDash){var c=GS(t),h=c[0],d=c[1];h&&(d=P$(d||0),r("stroke-dasharray",h.join(",")),(d||n)&&r("stroke-dashoffset",d))}for(var p=0;p<N0.length;p++){var g=N0[p];if(e[g]!==uh[g]){var y=e[g]||uh[g];y&&r(k$[p],y)}}}}var vE="http://www.w3.org/2000/svg",cE="http://www.w3.org/1999/xlink",N$="http://www.w3.org/2000/xmlns/",B$="http://www.w3.org/XML/1998/namespace",EC="ecmeta_";function hE(r){return document.createElementNS(vE,r)}function Tt(r,e,t,n,a){return{tag:r,attrs:t||{},children:n,text:a,key:e}}function V$(r,e){var t=[];if(e)for(var n in e){var a=e[n],i=n;a!==!1&&(a!==!0&&a!=null&&(i+='="'+a+'"'),t.push(i))}return"<"+r+" "+t.join(" ")+">"}function z$(r){return"</"+r+">"}function s1(r,e){e=e||{};var t=e.newline?`
49
+ `:"";function n(a){var i=a.children,o=a.tag,s=a.attrs,l=a.text;return V$(o,s)+(o!=="style"?Qt(l):l||"")+(i?""+t+$(i,function(u){return n(u)}).join(t)+t:"")+z$(o)}return n(r)}function F$(r,e,t){t=t||{};var n=t.newline?`
50
+ `:"",a=" {"+n,i=n+"}",o=$(De(r),function(l){return l+a+$(De(r[l]),function(u){return u+":"+r[l][u]+";"}).join(n)+i}).join(n),s=$(De(e),function(l){return"@keyframes "+l+a+$(De(e[l]),function(u){return u+a+$(De(e[l][u]),function(f){var v=e[l][u][f];return f==="d"&&(v='path("'+v+'")'),f+":"+v+";"}).join(n)+i}).join(n)+i}).join(n);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(n)}function B0(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function kC(r,e,t,n){return Tt("svg","root",{width:r,height:e,xmlns:vE,"xmlns:xlink":cE,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+r+" "+e:!1},t)}var G$=0;function dE(){return G$++}var OC={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"},Xi="transform-origin";function H$(r,e,t){var n=G({},r.shape);G(n,e),r.buildPath(t,n);var a=new fE;return a.reset(gL(r)),t.rebuildPath(a,1),a.generateStr(),a.getStr()}function U$(r,e){var t=e.originX,n=e.originY;(t||n)&&(r[Xi]=t+"px "+n+"px")}var $$={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function pE(r,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=r,t}function W$(r,e,t){var n=r.shape.paths,a={},i,o;if(M(n,function(l){var u=B0(t.zrId);u.animation=!0,Qd(l,{},u,!0);var f=u.cssAnims,v=u.cssNodes,c=De(f),h=c.length;if(h){o=c[h-1];var d=f[o];for(var p in d){var g=d[p];a[p]=a[p]||{d:""},a[p].d+=g.d||""}for(var y in v){var m=v[y].animation;m.indexOf(o)>=0&&(i=m)}}}),!!i){e.d=!1;var s=pE(a,t);return i.replace(o,s)}}function NC(r){return Z(r)?OC[r]?"cubic-bezier("+OC[r]+")":j_(r)?r:"":""}function Qd(r,e,t,n){var a=r.animators,i=a.length,o=[];if(r instanceof Nd){var s=W$(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 f=a[u],v=[f.getMaxTime()/1e3+"s"],c=NC(f.getClip().easing),h=f.getDelay();c?v.push(c):v.push("linear"),h&&v.push(h/1e3+"s"),f.getLoop()&&v.push("infinite");var d=v.join(" ");l[d]=l[d]||[d,[]],l[d][1].push(f)}function p(m){var _=m[1],S=_.length,x={},w={},b={},T="animation-timing-function";function C(ce,te,ge){for(var re=ce.getTracks(),he=ce.getMaxTime(),$e=0;$e<re.length;$e++){var Pe=re[$e];if(Pe.needsAnimate()){var Ge=Pe.keyframes,We=Pe.propName;if(ge&&(We=ge(We)),We)for(var ct=0;ct<Ge.length;ct++){var pr=Ge[ct],sr=Math.round(pr.time/he*100)+"%",gi=NC(pr.easing),rs=pr.rawValue;(Z(rs)||Ee(rs))&&(te[sr]=te[sr]||{},te[sr][We]=pr.rawValue,gi&&(te[sr][T]=gi))}}}}for(var A=0;A<S;A++){var D=_[A],L=D.targetName;L?L==="shape"&&C(D,w):!n&&C(D,x)}for(var I in x){var P={};On(P,r),G(P,x[I]);var R=yL(P),E=x[I][T];b[I]=R?{transform:R}:{},U$(b[I],P),E&&(b[I][T]=E)}var O,k=!0;for(var I in w){b[I]=b[I]||{};var z=!O,E=w[I][T];z&&(O=new Bn);var F=O.len();O.reset(),b[I].d=H$(r,w[I],O);var H=O.len();if(!z&&F!==H){k=!1;break}E&&(b[I][T]=E)}if(!k)for(var I in b)delete b[I].d;if(!n)for(var A=0;A<S;A++){var D=_[A],L=D.targetName;L==="style"&&C(D,b,function(re){return $$[re]})}for(var W=De(b),X=!0,Y,A=1;A<W.length;A++){var ee=W[A-1],ye=W[A];if(b[ee][Xi]!==b[ye][Xi]){X=!1;break}Y=b[ee][Xi]}if(X&&Y){for(var I in b)b[I][Xi]&&delete b[I][Xi];e[Xi]=Y}if(Fe(W,function(ce){return De(b[ce]).length>0}).length){var Ne=pE(b,t);return Ne+" "+m[0]+" both"}}for(var g in l){var s=p(l[g]);s&&o.push(s)}if(o.length){var y=t.zrId+"-cls-"+dE();t.cssNodes["."+y]={animation:o.join(",")},e.class=y}}function Y$(r,e,t){if(!r.ignore)if(r.isSilent()){var n={"pointer-events":"none"};BC(n,e,t)}else{var a=r.states.emphasis&&r.states.emphasis.style?r.states.emphasis.style:{},i=a.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=km(l))}var u=a.lineWidth;if(u){var f=!a.strokeNoScale&&r.transform?r.transform[0]:1;u=u/f}var n={cursor:"pointer"};i&&(n.fill=i),a.stroke&&(n.stroke=a.stroke),u&&(n["stroke-width"]=u),BC(n,e,t)}}function BC(r,e,t,n){var a=JSON.stringify(r),i=t.cssStyleCache[a];i||(i=t.zrId+"-cls-"+dE(),t.cssStyleCache[a]=i,t.cssNodes["."+i+":hover"]=r),e.class=e.class?e.class+" "+i:i}var vf=Math.round;function gE(r){return r&&Z(r.src)}function yE(r){return r&&ie(r.toDataURL)}function l1(r,e,t,n){O$(function(a,i){var o=a==="fill"||a==="stroke";o&&pL(i)?_E(e,r,a,n):o&&q_(i)?SE(t,r,a,n):r[a]=i,o&&n.ssr&&i==="none"&&(r["pointer-events"]="visible")},e,t,!1),Q$(t,r,n)}function u1(r,e){var t=Hz(e);t&&(t.each(function(n,a){n!=null&&(r[(EC+a).toLowerCase()]=n+"")}),e.isSilent()&&(r[EC+"silent"]="true"))}function VC(r){return Ga(r[0]-1)&&Ga(r[1])&&Ga(r[2])&&Ga(r[3]-1)}function X$(r){return Ga(r[4])&&Ga(r[5])}function f1(r,e,t){if(e&&!(X$(e)&&VC(e))){var n=1e4;r.transform=VC(e)?"translate("+vf(e[4]*n)/n+" "+vf(e[5]*n)/n+")":fz(e)}}function zC(r,e,t){for(var n=r.points,a=[],i=0;i<n.length;i++)a.push(vf(n[i][0]*t)/t),a.push(vf(n[i][1]*t)/t);e.points=a.join(" ")}function FC(r){return!r.smooth}function Z$(r){var e=$(r,function(t){return typeof t=="string"?[t,t]:t});return function(t,n,a){for(var i=0;i<e.length;i++){var o=e[i],s=t[o[0]];s!=null&&(n[o[1]]=vf(s*a)/a)}}}var j$={circle:[Z$(["cx","cy","r"])],polyline:[zC,FC],polygon:[zC,FC]};function q$(r){for(var e=r.animators,t=0;t<e.length;t++)if(e[t].targetName==="shape")return!0;return!1}function mE(r,e){var t=r.style,n=r.shape,a=j$[r.type],i={},o=e.animation,s="path",l=r.style.strokePercent,u=e.compress&&gL(r)||4;if(a&&!e.willUpdate&&!(a[1]&&!a[1](n))&&!(o&&q$(r))&&!(l<1)){s=r.type;var f=Math.pow(10,u);a[0](n,i,f)}else{var v=!r.path||r.shapeChanged();r.path||r.createPathProxy();var c=r.path;v&&(c.beginPath(),r.buildPath(c,r.shape),r.pathUpdated());var h=c.getVersion(),d=r,p=d.__svgPathBuilder;(d.__svgPathVersion!==h||!p||l!==d.__svgPathStrokePercent)&&(p||(p=d.__svgPathBuilder=new fE),p.reset(u),c.rebuildPath(p,l),p.generateStr(),d.__svgPathVersion=h,d.__svgPathStrokePercent=l),i.d=p.getStr()}return f1(i,r.transform),l1(i,t,r,e),u1(i,r),e.animation&&Qd(r,i,e),e.emphasis&&Y$(r,i,e),Tt(s,r.id+"",i)}function K$(r,e){var t=r.style,n=t.image;if(n&&!Z(n)&&(gE(n)?n=n.src:yE(n)&&(n=n.toDataURL())),!!n){var a=t.x||0,i=t.y||0,o=t.width,s=t.height,l={href:n,width:o,height:s};return a&&(l.x=a),i&&(l.y=i),f1(l,r.transform),l1(l,t,r,e),u1(l,r),e.animation&&Qd(r,l,e),Tt("image",r.id+"",l)}}function J$(r,e){var t=r.style,n=t.text;if(n!=null&&(n+=""),!(!n||isNaN(t.x)||isNaN(t.y))){var a=t.font||la,i=t.x||0,o=cz(t.y||0,Pf(a),t.textBaseline),s=vz[t.textAlign]||t.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(KL(t)){var u="",f=t.fontStyle,v=qL(t.fontSize);if(!parseFloat(v))return;var c=t.fontFamily||UI,h=t.fontWeight;u+="font-size:"+v+";font-family:"+c+";",f&&f!=="normal"&&(u+="font-style:"+f+";"),h&&h!=="normal"&&(u+="font-weight:"+h+";"),l.style=u}else l.style="font: "+a;return n.match(/\s/)&&(l["xml:space"]="preserve"),i&&(l.x=i),o&&(l.y=o),f1(l,r.transform),l1(l,t,r,e),u1(l,r),e.animation&&Qd(r,l,e),Tt("text",r.id+"",l,void 0,n)}}function GC(r,e){if(r instanceof Ae)return mE(r,e);if(r instanceof Rt)return K$(r,e);if(r instanceof el)return J$(r,e)}function Q$(r,e,t){var n=r.style;if(hz(n)){var a=dz(r),i=t.shadowCache,o=i[a];if(!o){var s=r.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var f=n.shadowOffsetX||0,v=n.shadowOffsetY||0,c=n.shadowBlur,h=Zu(n.shadowColor),d=h.opacity,p=h.color,g=c/2/l,y=c/2/u,m=g+" "+y;o=t.zrId+"-s"+t.shadowIdx++,t.defs[o]=Tt("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Tt("feDropShadow","",{dx:f/l,dy:v/u,stdDeviation:m,"flood-color":p,"flood-opacity":d})]),i[a]=o}e.filter=xd(o)}}function _E(r,e,t,n){var a=r[t],i,o={gradientUnits:a.global?"userSpaceOnUse":"objectBoundingBox"};if(hL(a))i="linearGradient",o.x1=a.x,o.y1=a.y,o.x2=a.x2,o.y2=a.y2;else if(dL(a))i="radialGradient",o.cx=Q(a.x,.5),o.cy=Q(a.y,.5),o.r=Q(a.r,.5);else return;for(var s=a.colorStops,l=[],u=0,f=s.length;u<f;++u){var v=Om(s[u].offset)*100+"%",c=s[u].color,h=Zu(c),d=h.color,p=h.opacity,g={offset:v};g["stop-color"]=d,p<1&&(g["stop-opacity"]=p),l.push(Tt("stop",u+"",g))}var y=Tt(i,"",o,l),m=s1(y),_=n.gradientCache,S=_[m];S||(S=n.zrId+"-g"+n.gradientIdx++,_[m]=S,o.id=S,n.defs[S]=Tt(i,S,o,l)),e[t]=xd(S)}function SE(r,e,t,n){var a=r.style[t],i=r.getBoundingRect(),o={},s=a.repeat,l=s==="no-repeat",u=s==="repeat-x",f=s==="repeat-y",v;if(cL(a)){var c=a.imageWidth,h=a.imageHeight,d=void 0,p=a.image;if(Z(p)?d=p:gE(p)?d=p.src:yE(p)&&(d=p.toDataURL()),typeof Image>"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";Yt(c,g),Yt(h,g)}else if(c==null||h==null){var y=function(A,D){if(A){var L=A.elm,I=c||D.width,P=h||D.height;A.tag==="pattern"&&(u?(P=1,I/=i.width):f&&(I=1,P/=i.height)),A.attrs.width=I,A.attrs.height=P,L&&(L.setAttribute("width",I),L.setAttribute("height",P))}},m=oS(d,null,r,function(A){l||y(w,A),y(v,A)});m&&m.width&&m.height&&(c=c||m.width,h=h||m.height)}v=Tt("image","img",{href:d,width:c,height:h}),o.width=c,o.height=h}else a.svgElement&&(v=ae(a.svgElement),o.width=a.svgWidth,o.height=a.svgHeight);if(v){var _,S;l?_=S=1:u?(S=1,_=o.width/i.width):f?(_=1,S=o.height/i.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),S!=null&&!isNaN(S)&&(o.height=S);var x=yL(a);x&&(o.patternTransform=x);var w=Tt("pattern","",o,[v]),b=s1(w),T=n.patternCache,C=T[b];C||(C=n.zrId+"-p"+n.patternIdx++,T[b]=C,o.id=C,w=n.defs[C]=Tt("pattern",C,o,[v])),e[t]=xd(C)}}function eW(r,e,t){var n=t.clipPathCache,a=t.defs,i=n[r.id];if(!i){i=t.zrId+"-c"+t.clipPathIdx++;var o={id:i};n[r.id]=i,a[i]=Tt("clipPath",i,o,[mE(r,t)])}e["clip-path"]=xd(i)}function HC(r){return document.createTextNode(r)}function eo(r,e,t){r.insertBefore(e,t)}function UC(r,e){r.removeChild(e)}function $C(r,e){r.appendChild(e)}function xE(r){return r.parentNode}function wE(r){return r.nextSibling}function Og(r,e){r.textContent=e}var WC=58,tW=120,rW=Tt("","");function V0(r){return r===void 0}function mn(r){return r!==void 0}function nW(r,e,t){for(var n={},a=e;a<=t;++a){var i=r[a].key;i!==void 0&&(n[i]=a)}return n}function bu(r,e){var t=r.key===e.key,n=r.tag===e.tag;return n&&t}function cf(r){var e,t=r.children,n=r.tag;if(mn(n)){var a=r.elm=hE(n);if(v1(rW,r),U(t))for(e=0;e<t.length;++e){var i=t[e];i!=null&&$C(a,cf(i))}else mn(r.text)&&!fe(r.text)&&$C(a,HC(r.text))}else r.elm=HC(r.text);return r.elm}function bE(r,e,t,n,a){for(;n<=a;++n){var i=t[n];i!=null&&eo(r,cf(i),e)}}function Bh(r,e,t,n){for(;t<=n;++t){var a=e[t];if(a!=null)if(mn(a.tag)){var i=xE(a.elm);UC(i,a.elm)}else UC(r,a.elm)}}function v1(r,e){var t,n=e.elm,a=r&&r.attrs||{},i=e.attrs||{};if(a!==i){for(t in i){var o=i[t],s=a[t];s!==o&&(o===!0?n.setAttribute(t,""):o===!1?n.removeAttribute(t):t==="style"?n.style.cssText=o:t.charCodeAt(0)!==tW?n.setAttribute(t,o):t==="xmlns:xlink"||t==="xmlns"?n.setAttributeNS(N$,t,o):t.charCodeAt(3)===WC?n.setAttributeNS(B$,t,o):t.charCodeAt(5)===WC?n.setAttributeNS(cE,t,o):n.setAttribute(t,o))}for(t in a)t in i||n.removeAttribute(t)}}function aW(r,e,t){for(var n=0,a=0,i=e.length-1,o=e[0],s=e[i],l=t.length-1,u=t[0],f=t[l],v,c,h,d;n<=i&&a<=l;)o==null?o=e[++n]:s==null?s=e[--i]:u==null?u=t[++a]:f==null?f=t[--l]:bu(o,u)?(Ds(o,u),o=e[++n],u=t[++a]):bu(s,f)?(Ds(s,f),s=e[--i],f=t[--l]):bu(o,f)?(Ds(o,f),eo(r,o.elm,wE(s.elm)),o=e[++n],f=t[--l]):bu(s,u)?(Ds(s,u),eo(r,s.elm,o.elm),s=e[--i],u=t[++a]):(V0(v)&&(v=nW(e,n,i)),c=v[u.key],V0(c)?eo(r,cf(u),o.elm):(h=e[c],h.tag!==u.tag?eo(r,cf(u),o.elm):(Ds(h,u),e[c]=void 0,eo(r,h.elm,o.elm))),u=t[++a]);(n<=i||a<=l)&&(n>i?(d=t[l+1]==null?null:t[l+1].elm,bE(r,d,t,a,l)):Bh(r,e,n,i))}function Ds(r,e){var t=e.elm=r.elm,n=r.children,a=e.children;r!==e&&(v1(r,e),V0(e.text)?mn(n)&&mn(a)?n!==a&&aW(t,n,a):mn(a)?(mn(r.text)&&Og(t,""),bE(t,null,a,0,a.length-1)):mn(n)?Bh(t,n,0,n.length-1):mn(r.text)&&Og(t,""):r.text!==e.text&&(mn(n)&&Bh(t,n,0,n.length-1),Og(t,e.text)))}function iW(r,e){if(bu(r,e))Ds(r,e);else{var t=r.elm,n=xE(t);cf(e),n!==null&&(eo(n,e.elm,wE(t)),Bh(n,[r],0,0))}return e}var oW=0,sW=(function(){function r(e,t,n){if(this.type="svg",this.configLayer=lW(),this.storage=t,this._opts=n=G({},n),this.root=e,this._id="zr"+oW++,this._oldVNode=kC(n.width,n.height),e&&!n.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=hE("svg");v1(null,this._oldVNode),a.appendChild(i),e.appendChild(a)}this.resize(n.width,n.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",iW(this._oldVNode,e),this._oldVNode=e}},r.prototype.renderOneToVNode=function(e){return GC(e,B0(this._id))},r.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),n=this._width,a=this._height,i=B0(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=uW(n,a,this._backgroundColor,i);s&&o.push(s);var l=e.compress?null:this._mainVNode=Tt("g","main",{},[]);this._paintList(t,i,l?l.children:o),l&&o.push(l);var u=$(De(i.defs),function(c){return i.defs[c]});if(u.length&&o.push(Tt("defs","defs",{},u)),e.animation){var f=F$(i.cssNodes,i.cssAnims,{newline:!0});if(f){var v=Tt("style","stl",{},[],f);o.push(v)}}return kC(n,a,o,e.useViewBox)},r.prototype.renderToString=function(e){return e=e||{},s1(this.renderToVNode({animation:Q(e.cssAnimation,!0),emphasis:Q(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Q(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,n){for(var a=e.length,i=[],o=0,s,l,u=0,f=0;f<a;f++){var v=e[f];if(!v.invisible){var c=v.__clipPaths,h=c&&c.length||0,d=l&&l.length||0,p=void 0;for(p=Math.max(h-1,d-1);p>=0&&!(c&&l&&c[p]===l[p]);p--);for(var g=d-1;g>p;g--)o--,s=i[o-1];for(var y=p+1;y<h;y++){var m={};eW(c[y],m,t);var _=Tt("g","clip-g-"+u++,m,[]);(s?s.children:n).push(_),i[o++]=_,s=_}l=c;var S=GC(v,t);S&&(s?s.children:n).push(S)}}},r.prototype.resize=function(e,t){var n=this._opts,a=this.root,i=this._viewport;if(e!=null&&(n.width=e),t!=null&&(n.height=t),a&&i&&(i.style.display="none",e=Os(a,0,n),t=Os(a,1,n),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(q_(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(),n="data:image/svg+xml;";return e?(t=gz(t),t&&n+"base64,"+t):n+"charset=UTF-8,"+encodeURIComponent(t)},r})();function lW(r){return function(){}}function uW(r,e,t,n){var a;if(t&&t!=="none")if(a=Tt("rect","bg",{width:r,height:e,x:"0",y:"0"}),pL(t))_E({fill:t},a.attrs,"fill",n);else if(q_(t))SE({style:{fill:t},dirty:ot,getBoundingRect:function(){return{width:r,height:e}}},a.attrs,"fill",n);else{var i=Zu(t),o=i.color,s=i.opacity;a.attrs.fill=o,s<1&&(a.attrs["fill-opacity"]=s)}return a}function fW(r){r.registerPainter("svg",sW)}function YC(r,e,t){var n=rr.createCanvas(),a=e.getWidth(),i=e.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=a+"px",o.height=i+"px",n.setAttribute("data-zr-dom-id",r)),n.width=a*t,n.height=i*t,n}function Ng(r){return!r.__cursors.get(w2)}function XC(r){var e=r.__cursors.get(w2);return{startIdx:e?e.startIdx:0,endIdx:e?e.endIdx:0}}var CE=(function(r){Je(e,r);function e(t,n,a){var i=r.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.zlevel=0,i.zlevel2=kc,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__prevIdx={startIdx:0,endIdx:0};var o;a=a||ah,typeof t=="string"?o=YC(t,n,a):fe(t)&&(o=t,t=o.id),i.id=t,i.dom=o;var s=o.style;return s&&(jI(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),i.painter=n,i.dpr=a,i}return e.prototype.afterBrush=function(){this.__prevIdx=XC(this)},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=YC("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),t!==1&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,n,a,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new se(0,0,0,0);function f(S){if(!(!S.isFinite()||S.isZero()))if(o.length===0){var x=new se(0,0,0,0);x.copy(S),o.push(x)}else{for(var w=!1,b=1/0,T=0,C=0;C<o.length;++C){var A=o[C];if(A.intersect(S)){var D=new se(0,0,0,0);D.copy(A),D.union(S),o[C]=D,w=!0;break}else if(l){u.copy(S),u.union(A);var L=S.width*S.height,I=A.width*A.height,P=u.width*u.height,R=P-L-I;R<b&&(b=R,T=C)}}if(l&&(o[T].union(S),w=!0),!w){var x=new se(0,0,0,0);x.copy(S),o.push(x)}l||(l=o.length>=s)}}for(var v=XC(this),c=v.startIdx;c<v.endIdx;++c){var h=t[c];if(h){var d=h.shouldBePainted(a,i,!0,!0),p=h.__isRendered&&(h.__dirty&vr||!d)?h.getPrevPaintRect():null;p&&f(p);var g=d&&(h.__dirty&vr||!h.__isRendered)?h.getPaintRect():null;g&&f(g)}}for(var y=this.__prevIdx,c=y.startIdx;c<y.endIdx;++c){var h=n[c],d=h&&h.shouldBePainted(a,i,!0,!0);if(h&&(!d||!h.__zr)&&h.__isRendered){var p=h.getPrevPaintRect();p&&f(p)}}var m;do{m=!1;for(var c=0;c<o.length;){if(o[c].isZero()){o.splice(c,1);continue}for(var _=c+1;_<o.length;)o[c].intersect(o[_])?(m=!0,o[c].union(o[_]),o.splice(_,1)):_++;c++}}while(m);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,n){var a=this.dpr,i=this.dom,o=i.style,s=this.domBack;o&&(o.width=t+"px",o.height=n+"px"),i.width=t*a,i.height=n*a,s&&(s.width=t*a,s.height=n*a,a!==1&&this.ctxBack.scale(a,a))},e.prototype.clear=function(t,n,a){var i=this.dom,o=this.ctx,s=i.width,l=i.height;n=n||this.clearColor;var u=this.motionBlur&&!t,f=this.lastFrameAlpha,v=this.dpr,c=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,s/v,l/v));var h=this.domBack;function d(p,g,y,m){if(o.clearRect(p,g,y,m),n&&n!=="transparent"){var _=void 0;if(yd(n)){var S=n.global||n.__width===y&&n.__height===m;_=S&&n.__canvasGradient||x0(o,n,{x:0,y:0,width:y,height:m}),n.__canvasGradient=_,n.__width=y,n.__height=m}else SV(n)&&(n.scaleX=n.scaleX||v,n.scaleY=n.scaleY||v,_=w0(o,n,{dirty:function(){c.setUnpainted(),c.painter.refresh()}}));o.save(),o.fillStyle=_||n,o.fillRect(p,g,y,m),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(h,p,g,y,m),o.restore())}!a||u?d(0,0,s,l):a.length&&M(a,function(p){d(p.x*v,p.y*v,p.width*v,p.height*v)})},e})(Wr),ZC=1e5,Gi=314159,Bg=void 0,vW=1,Vg=2;function cW(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function hW(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}function jC(r,e,t,n){var a=new CE(r,e,e.dpr);return a.zlevel=t,a.zlevel2=n,a.__builtin__=!0,TE(a),a}function TE(r){r.__cursorStack=[],r.__cursors=K()}function dW(r){return r.startIdx=r.drawIdx=r.endIdx=r.endIdxNew=0,r.used=!1,r.first=r.last=NaN,r.notClearIdx=-1,r}function pW(r,e){var t=r.__cursors,n=+e;return t.get(n)||(r.__cursorStack.push(n),t.set(n,dW({key:n})))}function Vv(r,e){for(var t=r.__cursorStack,n=0;n<t.length;n++)e(r.__cursors.get(t[n]))}function zg(r,e){var t=r.layers;return t[e]||(t[e]=new Array(3))}function Ft(r,e,t){for(var n=r.layerStack,a=0;a<n.length;a++){var i=n[a].zl,o=n[a].zl2,s=r.layers[i][o];(!t||(!(t&Fu)||s.__builtin__)&&(!(t&z0)||!s.__builtin__)&&(!(t&AE)||s!==r.hoverlayer))&&e(s,i,o,a)}}var Fu=1,z0=2,AE=4,zv=Fu|AE,gW=(function(){function r(e,t,n,a){this.type="canvas",this._prevDisplayList=[],this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas",this._i={layerStack:[],layers:[]};var i=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=n=G({},n||{}),this.dpr=n.devicePixelRatio||ah,this._singleCanvas=i,this.root=e;var o=e.style;if(o&&(jI(e),e.innerHTML=""),this.storage=t,this._prevDisplayList=[],i){var l=e,u=l.width,f=l.height;n.width!=null&&(u=n.width),n.height!=null&&(f=n.height),this.dpr=n.devicePixelRatio||1,l.width=u*this.dpr,l.height=f*this.dpr,this._width=u,this._height=f;var v=jC(l,this,Gi,kc);v.initContext(),this._insertLayer(v,Gi,kc,!0),this._domRoot=e}else{this._width=Os(e,0,n),this._height=Os(e,1,n);var s=this._domRoot=hW(this._width,this._height);e.appendChild(s)}}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;e&&!fe(e)?t={paintAll:!!e}:t=e||{};var n=Q(t.refresh,!0),a=Q(t.refreshHover,!1);if(a&&(this._hoverLayerDirty=Vg),!n)return a&&this._paintHoverList(this.storage.getDisplayList(!1)),this;var i=this.storage.getDisplayList(!0);this._updateLayerStatus(i,t.paintAll),this._redrawId=Math.random();var o=this._prevDisplayList;this._paintList(i,o,this._redrawId);var s=this._backgroundColor;return Ft(this._i,function(l,u,f,v){l.refresh&&l.refresh(v===0?s:null)},z0),this._opts.useDirtyRect&&(this._prevDisplayList=i.slice()),this},r.prototype._paintHoverList=function(e){var t=this._i.hoverlayer,n=this._hoverLayerDirty;if(this._hoverLayerDirty=Bg,n!==Bg&&(!t&&n===Vg&&(t=this._i.hoverlayer=this._ensureLayer(ZC)),!!t)){t.clear();for(var a={inHover:!0,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},i,o=0,s=e.length;o<s;o++){var l=e[o];if(l.__inHover){i||(i=t.ctx,i.save());var u=l.__hoverStyle,f=void 0;u&&(f=l.style,l.style=u),uo(i,l,a),u&&(l.style=f)}}i&&(Ys(i,a),i.restore())}},r.prototype.getHoverLayer=function(){return this._ensureLayer(ZC)},r.prototype.paintOne=function(e,t){nR(e,t)},r.prototype._paintList=function(e,t,n){if(this._redrawId===n){var a=this._doPaintList(e,t);if(this._needsManuallyCompositing&&this._compositeManually(),a)Ft(this._i,function(o){o.afterBrush&&o.afterBrush()},zv),this._paintHoverList(e);else{var i=this;Jc(function(){i._paintList(e,t,n)})}}},r.prototype._compositeManually=function(){var e=this._ensureLayer(Gi).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),Ft(this._i,function(a){a.virtual&&e.drawImage(a.dom,0,0,t,n)},Fu)},r.prototype._doPaintList=function(e,t){var n=this,a=!0;return Ft(this._i,function(i){var o=!1;if(Vv(i,function(v){(v.drawIdx<v.endIdx||v.notClearIdx>=0)&&(o=!0)}),!(!o&&!i.__dirty)){var s=n._opts.useDirtyRect&&!Ng(i)?i.createRepaintRects(e,t,n._width,n._height):null,l=n._i.layerStack[0],u=!0;if(i.__dirty){u=!1,i.__dirty=!1;var f=i.zlevel===l.zl&&i.zlevel2===l.zl2?n._backgroundColor:null;i.clear(!1,f,s)}Vv(i,function(v){var c=n._paintPerCursor(i,v,e,s,u);a=a&&c})}},zv),Le.wxa&&Ft(this._i,function(i){i&&i.ctx&&i.ctx.draw&&i.ctx.draw()}),a},r.prototype._paintPerCursor=function(e,t,n,a,i){var o=e.ctx;if(a)if(!a.length)t.drawIdx=t.endIdx;else for(var s=this.dpr,l=0;l<a.length;++l){var u=a[l];o.save(),o.beginPath(),o.rect(u.x*s,u.y*s,u.width*s,u.height*s),o.clip(),this._paintPerCursorInRect(e,t,n,u,i),o.restore()}else o.save(),this._paintPerCursorInRect(e,t,n,null,i),o.restore();return t.drawIdx>=t.endIdx},r.prototype._paintPerCursorInRect=function(e,t,n,a,i){for(var o={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:i}},s=e.ctx,l=Ng(e),u=l&&rr.getTime(),f=t.drawIdx,v=t.notClearIdx,c=v>=0?Math.min(v,f):f;c<t.endIdx;c++){var h=n[c];if(!(c<f&&!h.notClear)){if(h.__inHover&&(this._hoverLayerDirty=Vg),a!=null){var d=h.getPaintRect();d&&d.intersect(a)&&(uo(s,h,o),h.setPrevPaintRect(d))}else uo(s,h,o);if(l){var p=rr.getTime()-u;if(p>15){c++;break}}}}Ys(s,o),t.drawIdx=Math.max(c,f)},r.prototype.getLayer=function(e,t){return this._ensureLayer(e,0,t)},r.prototype._ensureLayer=function(e,t,n){t=t||0;var a=this._singleCanvas;a&&!this._needsManuallyCompositing&&(e=Gi,t=0);var i=zg(this._i,e)[t];return i||(i=jC("zr_"+e+"."+t,this,e,t),this._layerConfig[e]&&_e(i,this._layerConfig[e],!0),(n||a&&e!==Gi)&&(i.virtual=!0),this._insertLayer(i,e,t,!1),i.initContext()),i},r.prototype.insertLayer=function(e,t){this._insertLayer(t,e,0,!1)},r.prototype._insertLayer=function(e,t,n,a){var i=this._i,o=i.layers,s=i.layerStack,l=this._domRoot,u=null;if(!(o[t]&&o[t][n])&&cW(e)){for(var f=s.length,v=0;v<f&&(s[v].zl<t||s[v].zl===t&&s[v].zl2<n);)v++;if(v>0&&(u=zg(i,s[v-1].zl)[s[v-1].zl2]),s.splice(v,0,{zl:t,zl2:n}),zg(i,t)[n]=e,!a&&!e.virtual)if(u){var c=u.dom;c.nextSibling?l.insertBefore(e.dom,c.nextSibling):l.appendChild(e.dom)}else l.firstChild?l.insertBefore(e.dom,l.firstChild):l.appendChild(e.dom);e.painter||(e.painter=this)}},r.prototype.eachLayer=function(e,t){return Ft(this._i,function(n,a){e.call(t,n,a)})},r.prototype.eachBuiltinLayer=function(e,t){return Ft(this._i,function(n,a){e.call(t,n,a)},Fu)},r.prototype.eachOtherLayer=function(e,t){return Ft(this._i,function(n,a){e.call(t,n,a)},z0)},r.prototype.getLayers=function(){var e={};return Ft(this._i,function(t,n,a){e[t.id]=t}),e},r.prototype._updateLayerStatus=function(e,t){var n=this;if(n._singleCanvas)for(var a=1;a<e.length;a++){var i=e[a];if(i.zlevel!==e[a-1].zlevel||i.incremental){n._needsManuallyCompositing=!0;break}}Ft(n._i,function(g){g.__dirty=!1,Vv(g,function(y){y.used=!1,y.endIdxNew=0,y.notClearIdx=-1})},zv);for(var o,s=null,l=null,u=!1,f=0,v=e.length;f<v;f++){var i=e[f],c=i.zlevel,h=i.incremental,d=void 0;if(o!==c&&(o=c,u=!1),h?(u=!0,d=iG):d=u?aG:kc,(!s||c!==s.zlevel||d!==s.zlevel2)&&(s=n._ensureLayer(c,d),l=null,!s.__builtin__)){$_("ZLevel "+c+" has been used by unknown layer "+s.id);continue}if((!l||h!==l.key)&&(l=pW(s,h),!l.used))if(l.used=!0,!t&&l.first===i.id){var p=f-l.startIdx;l.startIdx=f,l.drawIdx+=p,l.endIdx+=p}else s.__dirty=!0,l.first=i.id,l.startIdx=l.drawIdx=f,l.endIdx=f+1;l.endIdxNew=f+1,i.__dirty&vr&&!i.__inHover&&((!h||!i.notClear&&f<l.drawIdx)&&(s.__dirty=!0),h&&i.notClear&&l.notClearIdx<0&&(l.notClearIdx=f))}Ft(n._i,function(g){for(var y=g.__cursorStack,m=g.__cursors,_=y.length-1;_>=0;_--){var S=m.get(y[_]);if(!S.used)g.__dirty=!0,m.removeKey(y[_]),y.splice(_,1);else{var x=S.endIdxNew;(Ng(g)?x<S.drawIdx:x!==S.endIdx||!x||e[x-1].id!==S.last)&&(g.__dirty=!0),S.endIdx=S.endIdxNew,S.last=x?e[x-1].id:NaN}}g.__dirty&&(Vv(g,function(w){w.drawIdx=w.startIdx}),n._hoverLayerDirty===Bg&&(n._hoverLayerDirty=vW))},zv)},r.prototype.clear=function(){return Ft(this._i,function(e){e.clear(),TE(e)},Fu),this},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e,Ft(this._i,function(t){t.setUnpainted()})},r.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?_e(n[e],t,!0):n[e]=t,Ft(this._i,function(a,i){_e(a,n[i],!0)})}},r.prototype.delLayer=function(e){for(var t=this._i.layerStack,n=this._i.layers,a=t.length-1;a>=0;a--){var i=t[a];if(i.zl===e){var o=n[e][i.zl2];if(o.__builtin__)continue;if(t.splice(a,1),n[e][i.zl2]=void 0,!o.virtual){var s=o.dom.parentNode;s&&s.removeChild(o.dom)}}}},r.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var a=this._opts,i=this.root;e!=null&&(a.width=e),t!=null&&(a.height=t),e=Os(i,0,a),t=Os(i,1,a),n.style.display="",(this._width!==e||t!==this._height)&&(n.style.width=e+"px",n.style.height=t+"px",Ft(this._i,function(o){o.resize(e,t)}),this.refresh({paintAll:!0})),this._width=e,this._height=t}else{if(e==null||t==null)return;this._width=e,this._height=t,this._ensureLayer(Gi).resize(e,t)}return this},r.prototype.clearLayer=function(e){M(this._i.layers[e],function(t){t&&!t.__builtin__&&t.clear()})},r.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._i=null},r.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._i.layers[Gi][0].dom;var t=new CE("image",this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var n=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var a=t.dom.width,i=t.dom.height;Ft(this._i,function(v){v.__builtin__?n.drawImage(v.dom,0,0,a,i):v.renderToCanvas&&(n.save(),v.renderToCanvas(n),n.restore())})}else{for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var f=s[l];uo(n,f,o)}Ys(n,o)}return t.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r})();function yW(r){r.registerPainter("canvas",gW)}var mW=(function(r){B(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 wa(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var n=new oe,a=gt("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);n.add(a),a.setStyle(t.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=i==="none"?"circle":i,l=t.itemHeight*.8,u=gt(s,(t.itemWidth-l)/2,(t.itemHeight-l)/2,l,l,t.itemStyle.fill);n.add(u),u.setStyle(t.itemStyle);var f=t.iconRotate==="inherit"?o:t.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([t.itemWidth/2,t.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill=N.color.neutral00,u.style.lineWidth=2),n},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:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1,triggerEvent:!1},e})(je);function ll(r,e){var t=r.mapDimensionsAll("defaultedLabel"),n=t.length;if(n===1){var a=rl(r,e,t[0]);return a!=null?a+"":null}else if(n){for(var i=[],o=0;o<t.length;o++)i.push(rl(r,e,t[o]));return i.join(" ")}}function ME(r,e){var t=r.mapDimensionsAll("defaultedLabel");if(!U(e))return e+"";for(var n=[],a=0;a<t.length;a++){var i=r.getDimensionIndex(t[a]);i>=0&&n.push(e[i])}return n.join(" ")}var Zf=(function(r){B(e,r);function e(t,n,a,i){var o=r.call(this)||this;return o.updateData(t,n,a,i),o}return e.prototype._createSymbol=function(t,n,a,i,o,s){this.removeAll();var l=gt(t,-1,-1,2,2,null,s);l.attr({z2:Q(o,100),culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),l.drift=_W,this._symbolType=t,this.add(l)},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(){da(this.childAt(0))},e.prototype.downplay=function(){pa(this.childAt(0))},e.prototype.setZ=function(t,n){var a=this.childAt(0);a.zlevel=t,a.z=n},e.prototype.setDraggable=function(t,n){var a=this.childAt(0);a.draggable=t,a.cursor=!n&&t?"move":a.cursor},e.prototype.updateData=function(t,n,a,i){this.silent=!1;var o=t.getItemVisual(n,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,n),u=e.getSymbolZ2(t,n),f=o!==this._symbolType,v=i&&i.disableAnimation;if(f){var c=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,t,n,l,u,c)}else{var h=this.childAt(0);h.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};v?h.attr(d):Oe(h,d,s,n),$r(h)}if(this._updateCommon(t,n,l,a,i),f){var h=this.childAt(0);if(!v){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,Ke(h,d,s,n)}}v&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,n,a,i,o){var s=this.childAt(0),l=t.hostModel,u,f,v,c,h,d,p,g,y;if(i&&(u=i.emphasisItemStyle,f=i.blurItemStyle,v=i.selectItemStyle,c=i.focus,h=i.blurScope,p=i.labelStatesModels,g=i.hoverScale,y=i.cursorStyle,d=i.emphasisDisabled),!i||t.hasItemOption){var m=i&&i.itemModel?i.itemModel:t.getItemModel(n),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),v=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),c=_.get("focus"),h=_.get("blurScope"),d=_.get("disabled"),p=St(m),g=_.getShallow("scale"),y=m.getShallow("cursor")}var S=t.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var x=Ko(t.getItemVisual(n,"symbolOffset"),a);x&&(s.x=x[0],s.y=x[1]),y&&s.attr("cursor",y);var w=t.getItemVisual(n,"style"),b=w.fill;if(s instanceof Rt){var T=s.style;s.useStyle(G({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},w))}else s.__isEmptyBrush?s.useStyle(G({},w)):s.useStyle(w),s.style.decal=null,s.setColor(b,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=t.getItemVisual(n,"liftZ"),A=this._z2;C!=null?A==null&&(this._z2=s.z2,s.z2+=C):A!=null&&(s.z2=A,this._z2=null);var D=o&&o.useNameLabel;Mt(s,p,{labelFetcher:l,labelDataIndex:n,defaultText:L,inheritColor:b,defaultOpacity:w.opacity});function L(R){return D?t.getName(R):ll(t,R)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var I=s.ensureState("emphasis");I.style=u,s.ensureState("select").style=v,s.ensureState("blur").style=f;var P=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;I.scaleX=this._sizeX*P,I.scaleY=this._sizeY*P,this.setSymbolScale(1),et(this,c,h,d)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,n,a){var i=this.childAt(0),o=ve(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&ai(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();ai(i,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,n){return Il(t.getItemVisual(n,"symbolSize"))},e.getSymbolZ2=function(t,n){return t.getItemVisual(n,"z2")},e})(oe);function _W(r,e){this.parent.drift(r,e)}function Fv(r,e,t,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(n&&n.isIgnore&&n.isIgnore(t))&&!(n&&n.clipShape&&!n.clipShape.contain(e[0],e[1]))&&r.getItemVisual(t,"symbol")!=="none"}function qC(r){return r!=null&&!fe(r)&&(r={isIgnore:r}),r||{}}function KC(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:St(e),cursorStyle:e.get("cursor")}}function JC(r,e,t,n,a,i,o){var s=new r(e,t,n,a);return s.setPosition(i),e.setItemGraphicEl(t,s),o.add(s),s}var jf=(function(){function r(e){this.group=new oe,this._SymbolCtor=e||Zf}return r.prototype.updateData=function(e,t){this._progressiveEls=null,t=qC(t);var n=this.group,a=e.hostModel,i=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=this._seriesScope=KC(e),u={disableAnimation:s},f=t.getSymbolPoint||function(v){return e.getItemLayout(v)};i||n.removeAll(),e.diff(i).add(function(v){var c=f(v);Fv(e,c,v,t)&&JC(o,e,v,l,u,c,n)}).update(function(v,c){var h=i.getItemGraphicEl(c),d=f(v);if(!Fv(e,d,v,t)){n.remove(h);return}var p=e.getItemVisual(v,"symbol")||"circle",g=h&&h.getSymbolType&&h.getSymbolType();if(!h||g&&g!==p)n.remove(h),h=new o(e,v,l,u),h.setPosition(d);else{h.updateData(e,v,l,u);var y={x:d[0],y:d[1]};s?h.attr(y):Oe(h,y,a)}n.add(h),e.setItemGraphicEl(v,h)}).remove(function(v){var c=i.getItemGraphicEl(v);c&&c.fadeOut(function(){n.remove(c)},a)}).execute(),this._getSymbolPoint=f,this._data=e},r.prototype.updateLayout=function(e){var t=this._data;if(t)for(var n=this,a=t.getStore(),i=0,o=a.count();i<o;i++){var s=t.getItemGraphicEl(i),l=n._getSymbolPoint(i);Fv(t,l,i,e)?(s=s||JC(n._SymbolCtor,t,i,n._seriesScope,{disableAnimation:!0},l,n.group),s.stopAnimation(),s.setPosition(l),s.markRedraw()):s&&(n.group.remove(s),t.setItemGraphicEl(i,null))}},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=KC(e),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,n,a){this._progressiveEls=[],a=qC(a);function i(u){u.isGroup||(u.incremental=n,u.ensureState("emphasis").hoverLayer=Tl)}for(var o=e.start;o<e.end;o++){var s=t.getItemLayout(o);if(Fv(t,s,o,a)){var l=new this._SymbolCtor(t,o,this._seriesScope);l.traverse(i),l.setPosition(s),this.group.add(l),t.setItemGraphicEl(o,l),this._progressiveEls.push(l)}}},r.prototype.eachRendered=function(e){di(this._progressiveEls||this.group,e)},r.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(a){a.fadeOut(function(){t.remove(a)},n.hostModel)}):t.removeAll()},r})();function DE(r,e,t){var n=r.getBaseAxis(),a=r.getOtherAxis(n),i=SW(a,t),o=n.dim,s=a.dim,l=e.mapDimension(s),u=e.mapDimension(o),f=s==="x"||s==="radius"?1:0,v=$(r.dimensions,function(d){return e.mapDimension(d)}),c=!1,h=e.getCalculationInfo("stackResultDimension");return ii(e,v[0])&&(c=!0,v[0]=h),ii(e,v[1])&&(c=!0,v[1]=h),{dataDimsForPoint:v,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!c,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function SW(r,e){var t=0,n=r.scale.getExtent();return e==="start"?t=n[0]:e==="end"?t=n[1]:Ee(e)&&!isNaN(e)?t=e:n[0]>0?t=n[0]:n[1]<0&&(t=n[1]),t}function IE(r,e,t,n){var a=NaN;r.stacked&&(a=t.get(t.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=t.get(r.baseDim,n),o[1-i]=a,e.dataToPoint(o)}function zr(r,e){return!isFinite(r)||!isFinite(e)}var xW=typeof Float32Array!==xl?Float32Array:void 0,wW=typeof Float64Array!==xl?Float64Array:void 0;function bn(r){return c1({ctor:xW},r).arr}function c1(r,e){var t=r.arr,n=r.ctor;if(e>lh&&(e=lh),!t||r.typed&&t.length<e){var a=void 0;if(n)try{a=new n(e),r.typed=!0,t&&a.set(t)}catch{}if(!a&&(a=[],r.typed=!1,t))for(var i=0,o=t.length;i<o;i++)a[i]=t[i];r.arr=a}return r}function bW(r,e){var t=[];return e.diff(r).add(function(n){t.push({cmd:"+",idx:n})}).update(function(n,a){t.push({cmd:"=",idx:a,idx1:n})}).remove(function(n){t.push({cmd:"-",idx:n})}).execute(),t}function CW(r,e,t,n,a,i,o,s){for(var l=bW(r,e),u=[],f=[],v=[],c=[],h=[],d=[],p=[],g=DE(a,e,o),y=r.getLayout("points")||[],m=e.getLayout("points")||[],_=0;_<l.length;_++){var S=l[_],x=!0,w=void 0,b=void 0;switch(S.cmd){case"=":w=S.idx*2,b=S.idx1*2;var T=y[w],C=y[w+1],A=m[b],D=m[b+1];(isNaN(T)||isNaN(C))&&(T=A,C=D),u.push(T,C),f.push(A,D),v.push(t[w],t[w+1]),c.push(n[b],n[b+1]),p.push(e.getRawIndex(S.idx1));break;case"+":var L=S.idx,I=g.dataDimsForPoint,P=a.dataToPoint([e.get(I[0],L),e.get(I[1],L)]);b=L*2,u.push(P[0],P[1]),f.push(m[b],m[b+1]);var R=IE(g,a,e,L);v.push(R[0],R[1]),c.push(n[b],n[b+1]),p.push(e.getRawIndex(L));break;case"-":x=!1}x&&(h.push(S),d.push(d.length))}d.sort(function(ee,ye){return p[ee]-p[ye]});for(var E=u.length,O=bn(E),k=bn(E),z=bn(E),F=bn(E),H=[],_=0;_<d.length;_++){var W=d[_],X=_*2,Y=W*2;O[X]=u[Y],O[X+1]=u[Y+1],k[X]=f[Y],k[X+1]=f[Y+1],z[X]=v[Y],z[X+1]=v[Y+1],F[X]=c[Y],F[X+1]=c[Y+1],H[_]=h[W]}return{current:O,next:k,stackedOnCurrent:z,stackedOnNext:F,status:H}}var Da=Math.min,Ia=Math.max;function F0(r,e,t,n,a,i,o,s,l){for(var u,f,v,c,h,d,p=t,g=0;g<n;g++){var y=e[p*2],m=e[p*2+1];if(p>=a||p<0)break;if(zr(y,m)){if(l){p+=i;continue}break}if(p===t)r[i>0?"moveTo":"lineTo"](y,m),v=y,c=m;else{var _=y-u,S=m-f;if(_*_+S*S<.5){p+=i;continue}if(o>0){for(var x=p+i,w=e[x*2],b=e[x*2+1];w===y&&b===m&&g<n;)g++,x+=i,p+=i,w=e[x*2],b=e[x*2+1],y=e[p*2],m=e[p*2+1],_=y-u,S=m-f;var T=g+1;if(l)for(;zr(w,b)&&T<n;)T++,x+=i,w=e[x*2],b=e[x*2+1];var C=.5,A=0,D=0,L=void 0,I=void 0;if(T>=n||zr(w,b))h=y,d=m;else{A=w-u,D=b-f;var P=y-u,R=w-y,E=m-f,O=b-m,k=void 0,z=void 0;if(s==="x"){k=Math.abs(P),z=Math.abs(R);var F=A>0?1:-1;h=y-F*k*o,d=m,L=y+F*z*o,I=m}else if(s==="y"){k=Math.abs(E),z=Math.abs(O);var H=D>0?1:-1;h=y,d=m-H*k*o,L=y,I=m+H*z*o}else k=Math.sqrt(P*P+E*E),z=Math.sqrt(R*R+O*O),C=z/(z+k),h=y-A*o*(1-C),d=m-D*o*(1-C),L=y+A*o*C,I=m+D*o*C,L=Da(L,Ia(w,y)),I=Da(I,Ia(b,m)),L=Ia(L,Da(w,y)),I=Ia(I,Da(b,m)),A=L-y,D=I-m,h=y-A*k/z,d=m-D*k/z,h=Da(h,Ia(u,y)),d=Da(d,Ia(f,m)),h=Ia(h,Da(u,y)),d=Ia(d,Da(f,m)),A=y-h,D=m-d,L=y+A*z/k,I=m+D*z/k}r.bezierCurveTo(v,c,h,d,y,m),v=L,c=I}else r.lineTo(y,m)}u=y,f=m,p+=i}return g}var LE=(function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r})(),TW=(function(r){B(e,r);function e(t){var n=r.call(this,t)||this;return n.type="ec-polyline",n}return e.prototype.getDefaultStyle=function(){return{stroke:N.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new LE},e.prototype.buildPath=function(t,n){var a=n.points,i=0,o=a.length/2;if(n.connectNulls){for(;o>0&&zr(a[o*2-2],a[o*2-1]);o--);for(;i<o&&zr(a[i*2],a[i*2+1]);i++);}for(;i<o;)i+=F0(t,a,i,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},e.prototype.getPointOn=function(t,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var a=this.path,i=a.data,o=Bn.CMD,s,l,u=n==="x",f=[],v=0;v<i.length;){var c=i[v++],h=void 0,d=void 0,p=void 0,g=void 0,y=void 0,m=void 0,_=void 0;switch(c){case o.M:s=i[v++],l=i[v++];break;case o.L:if(h=i[v++],d=i[v++],_=u?(t-s)/(h-s):(t-l)/(d-l),_<=1&&_>=0){var S=u?(d-l)*_+l:(h-s)*_+s;return u?[t,S]:[S,t]}s=h,l=d;break;case o.C:h=i[v++],d=i[v++],p=i[v++],g=i[v++],y=i[v++],m=i[v++];var x=u?eh(s,h,p,y,t,f):eh(l,d,g,m,t,f);if(x>0)for(var w=0;w<x;w++){var b=f[w];if(b<=1&&b>=0){var S=u?Ct(l,d,g,m,b):Ct(s,h,p,y,b);return u?[t,S]:[S,t]}}s=y,l=m;break}}},e})(Ae),AW=(function(r){B(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(LE),PE=(function(r){B(e,r);function e(t){var n=r.call(this,t)||this;return n.type="ec-polygon",n}return e.prototype.getDefaultShape=function(){return new AW},e.prototype.buildPath=function(t,n){var a=n.points,i=n.stackedOnPoints,o=0,s=a.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&zr(a[s*2-2],a[s*2-1]);s--);for(;o<s&&zr(a[o*2],a[o*2+1]);o++);}for(;o<s;){var u=F0(t,a,o,s,s,1,n.smooth,l,n.connectNulls);F0(t,i,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,t.closePath()}},e})(Ae);function RE(r,e,t,n,a){var i=r.getArea(),o=i.x,s=i.y,l=i.width,u=i.height,f=t.get(["lineStyle","width"])||0;o-=f/2,s-=f/2,l+=f,u+=f,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var v=new be({shape:{x:o,y:s,width:l,height:u}});if(e){var c=r.getBaseAxis(),h=c.isHorizontal(),d=c.inverse;h?(d&&(v.shape.x+=l),v.shape.width=0):(d||(v.shape.y+=u),v.shape.height=0);var p=ie(a)?function(g){a(g,v)}:null;Ke(v,{shape:{width:l,height:u,x:o,y:s}},t,null,n,p)}return v}function EE(r,e,t){var n=r.getArea(),a=ke(n.r0,1),i=ke(n.r,1),o=new Xt({shape:{cx:ke(r.cx,1),cy:ke(r.cy,1),r0:a,r:i,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(e){var s=r.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=a,Ke(o,{shape:{endAngle:n.endAngle,r:i}},t)}return o}function Ro(r,e,t,n,a){if(r){if(r.type==="polar")return EE(r,e,t);if(r.type==="cartesian2d")return RE(r,e,t,n,a)}else return null;return null}var hf=0,df=1,pf=2;function Ns(r,e,t){r?e.setClipPath(t):e.removeClipPath()}function kE(r){var e=r.coordinateSystem;if(r.get("clip",!0)&&e&&(!e.shouldClip||e.shouldClip()))return e.getArea&&e.getArea(.1)}function Eo(r,e){return r.type===e}function QC(r){var e=r.dimensions;return e[0]==="lng"&&e[1]==="lat"&&!!r.getViewRect}function OE(r,e,t,n){return r&&(r.legacy||r.legacy!==!1&&!t&&!n&&e!=="tspan"&&(e==="text"||J(r,"text")))}function NE(r,e,t){var n=r,a,i,o;if(e==="text")o=n;else{o={},J(n,"text")&&(o.text=n.text),J(n,"rich")&&(o.rich=n.rich),J(n,"textFill")&&(o.fill=n.textFill),J(n,"textStroke")&&(o.stroke=n.textStroke),J(n,"fontFamily")&&(o.fontFamily=n.fontFamily),J(n,"fontSize")&&(o.fontSize=n.fontSize),J(n,"fontStyle")&&(o.fontStyle=n.fontStyle),J(n,"fontWeight")&&(o.fontWeight=n.fontWeight),i={type:"text",style:o,silent:!0},a={};var s=J(n,"textPosition");t?a.position=s?n.textPosition:"inside":s&&(a.position=n.textPosition),J(n,"textPosition")&&(a.position=n.textPosition),J(n,"textOffset")&&(a.offset=n.textOffset),J(n,"textRotation")&&(a.rotation=n.textRotation),J(n,"textDistance")&&(a.distance=n.textDistance)}return eT(o,r),M(o.rich,function(l){eT(l,l)}),{textConfig:a,textContent:i}}function eT(r,e){e&&(e.font=e.textFont||e.font,J(e,"textStrokeWidth")&&(r.lineWidth=e.textStrokeWidth),J(e,"textAlign")&&(r.align=e.textAlign),J(e,"textVerticalAlign")&&(r.verticalAlign=e.textVerticalAlign),J(e,"textLineHeight")&&(r.lineHeight=e.textLineHeight),J(e,"textWidth")&&(r.width=e.textWidth),J(e,"textHeight")&&(r.height=e.textHeight),J(e,"textBackgroundColor")&&(r.backgroundColor=e.textBackgroundColor),J(e,"textPadding")&&(r.padding=e.textPadding),J(e,"textBorderColor")&&(r.borderColor=e.textBorderColor),J(e,"textBorderWidth")&&(r.borderWidth=e.textBorderWidth),J(e,"textBorderRadius")&&(r.borderRadius=e.textBorderRadius),J(e,"textBoxShadowColor")&&(r.shadowColor=e.textBoxShadowColor),J(e,"textBoxShadowBlur")&&(r.shadowBlur=e.textBoxShadowBlur),J(e,"textBoxShadowOffsetX")&&(r.shadowOffsetX=e.textBoxShadowOffsetX),J(e,"textBoxShadowOffsetY")&&(r.shadowOffsetY=e.textBoxShadowOffsetY))}function tT(r,e,t){var n=r;n.textPosition=n.textPosition||t.position||"inside",t.offset!=null&&(n.textOffset=t.offset),t.rotation!=null&&(n.textRotation=t.rotation),t.distance!=null&&(n.textDistance=t.distance);var a=n.textPosition.indexOf("inside")>=0,i=r.fill||N.color.neutral99;rT(n,e);var o=n.textFill==null;return a?o&&(n.textFill=t.insideFill||N.color.neutral00,!n.textStroke&&t.insideStroke&&(n.textStroke=t.insideStroke),!n.textStroke&&(n.textStroke=i),n.textStrokeWidth==null&&(n.textStrokeWidth=2)):(o&&(n.textFill=r.fill||t.outsideFill||N.color.neutral00),!n.textStroke&&t.outsideStroke&&(n.textStroke=t.outsideStroke)),n.text=e.text,n.rich=e.rich,M(e.rich,function(s){rT(s,s)}),n}function rT(r,e){e&&(J(e,"fill")&&(r.textFill=e.fill),J(e,"stroke")&&(r.textStroke=e.fill),J(e,"lineWidth")&&(r.textStrokeWidth=e.lineWidth),J(e,"font")&&(r.font=e.font),J(e,"fontStyle")&&(r.fontStyle=e.fontStyle),J(e,"fontWeight")&&(r.fontWeight=e.fontWeight),J(e,"fontSize")&&(r.fontSize=e.fontSize),J(e,"fontFamily")&&(r.fontFamily=e.fontFamily),J(e,"align")&&(r.textAlign=e.align),J(e,"verticalAlign")&&(r.textVerticalAlign=e.verticalAlign),J(e,"lineHeight")&&(r.textLineHeight=e.lineHeight),J(e,"width")&&(r.textWidth=e.width),J(e,"height")&&(r.textHeight=e.height),J(e,"backgroundColor")&&(r.textBackgroundColor=e.backgroundColor),J(e,"padding")&&(r.textPadding=e.padding),J(e,"borderColor")&&(r.textBorderColor=e.borderColor),J(e,"borderWidth")&&(r.textBorderWidth=e.borderWidth),J(e,"borderRadius")&&(r.textBorderRadius=e.borderRadius),J(e,"shadowColor")&&(r.textBoxShadowColor=e.shadowColor),J(e,"shadowBlur")&&(r.textBoxShadowBlur=e.shadowBlur),J(e,"shadowOffsetX")&&(r.textBoxShadowOffsetX=e.shadowOffsetX),J(e,"shadowOffsetY")&&(r.textBoxShadowOffsetY=e.shadowOffsetY),J(e,"textShadowColor")&&(r.textShadowColor=e.textShadowColor),J(e,"textShadowBlur")&&(r.textShadowBlur=e.textShadowBlur),J(e,"textShadowOffsetX")&&(r.textShadowOffsetX=e.textShadowOffsetX),J(e,"textShadowOffsetY")&&(r.textShadowOffsetY=e.textShadowOffsetY))}function nT(r,e){if(r.length===e.length){for(var t=0;t<r.length;t++)if(r[t]!==e[t])return;return!0}}function aT(r){for(var e=Ot(),t=Ot(),n=0;n<r.length;){var a=r[n++],i=r[n++];zr(a,i)||(Xm(e,a),Xm(t,i))}return[e,t]}function iT(r,e){var t=aT(r),n=t[0],a=t[1],i=aT(e),o=i[0],s=i[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(a[0]-s[0]),Math.abs(n[1]-o[1]),Math.abs(a[1]-s[1]))}function oT(r){return Ee(r)?r:r?.5:0}function MW(r,e,t){if(t.valueDim==null)return[];for(var n=e.count(),a=bn(n*2),i=0;i<n;i++){var o=IE(t,r,e,i);a[i*2]=o[0],a[i*2+1]=o[1]}return a}function La(r,e,t,n,a){var i=t.getBaseAxis(),o=i.dim==="x"||i.dim==="radius"?0:1,s=[],l=0,u=[],f=[],v=[],c=[];if(a){for(l=0;l<r.length;l+=2){var h=e||r;zr(h[l],h[l+1])||c.push(r[l],r[l+1])}r=c}for(l=0;l<r.length-2;l+=2)switch(v[0]=r[l+2],v[1]=r[l+3],f[0]=r[l],f[1]=r[l+1],s.push(f[0],f[1]),n){case"end":u[o]=v[o],u[1-o]=f[1-o],s.push(u[0],u[1]);break;case"middle":var d=(f[o]+v[o])/2,p=[];u[o]=p[o]=d,u[1-o]=f[1-o],p[1-o]=v[1-o],s.push(u[0],u[1]),s.push(p[0],p[1]);break;default:u[o]=f[o],u[1-o]=v[1-o],s.push(u[0],u[1])}return s.push(r[l++],r[l++]),s}function DW(r,e){var t=[],n=r.length,a,i;function o(f,v,c){var h=f.coord,d=(c-h)/(v.coord-h),p=uz(d,[f.color,v.color]);return{coord:c,color:p}}for(var s=0;s<n;s++){var l=r[s],u=l.coord;if(u<0)a=l;else if(u>e){i?t.push(o(i,l,e)):a&&t.push(o(a,l,0),o(a,l,e));break}else a&&(t.push(o(a,l,0)),a=null),t.push(l),i=l}return t}function IW(r,e,t){var n=r.getVisual("visualMeta");if(!(!n||!n.length||!r.count())&&e.type==="cartesian2d"){for(var a,i,o=n.length-1;o>=0;o--){var s=r.getDimensionInfo(n[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=n[o];break}}if(i){var l=e.getAxis(a),u=$(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,v=i.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),v.reverse());var c=DW(u,a==="x"?t.getWidth():t.getHeight()),h=c.length;if(!h&&f)return u[0].coord<0?v[1]?v[1]:u[f-1].color:v[0]?v[0]:u[0].color;var d=10,p=c[0].coord-d,g=c[h-1].coord+d,y=g-p;if(y<.001)return"transparent";M(c,function(_){_.offset=(_.coord-p)/y}),c.push({offset:h?c[h-1].offset:.5,color:v[1]||"transparent"}),c.unshift({offset:h?c[0].offset:.5,color:v[0]||"transparent"});var m=new bl(0,0,0,0,c,!0);return m[a]=p,m[a+"2"]=g,m}}}function LW(r,e,t){var n=r.get("showAllSymbol"),a=n==="auto";if(!(n&&!a)){var i=t.getAxesByScale("ordinal")[0];if(i&&!(a&&PW(i,e))){var o=e.mapDimension(i.dim),s={};return M(i.getViewLabels(),function(l){l.tick.offInterval||(s[Ll(i.scale,l.tick)]=1)}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function PW(r,e){var t=r.getExtent(),n=Math.abs(t[1]-t[0])/r.scale.count();isNaN(n)&&(n=0);for(var a=e.count(),i=Math.max(1,Math.round(a/5)),o=0;o<a;o+=i)if(Zf.getSymbolSize(e,o)[r.isHorizontal()?1:0]*1.5>n)return!1;return!0}function RW(r){for(var e=r.length/2;e>0&&zr(r[e*2-2],r[e*2-1]);e--);return e-1}function sT(r,e){return[r[e*2],r[e*2+1]]}function EW(r,e,t){for(var n=r.length/2,a=t==="x"?0:1,i,o,s=0,l=-1,u=0;u<n;u++)if(o=r[u*2+a],!zr(o,r[u*2+1-a])){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 BE(r){if(r.get(["endLabel","show"]))return!0;for(var e=0;e<ir.length;e++)if(r.get([ir[e],"endLabel","show"]))return!0;return!1}function Fg(r,e,t,n){if(Eo(e,"cartesian2d")){var a=n.getModel("endLabel"),i=a.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=BE(n)?function(h,d){r._endLabelOnDuring(h,d,o,s,i,a,e)}:null,u=e.getBaseAxis().isHorizontal(),f=RE(e,t,n,function(){var h=r._endLabel;h&&t&&s.originalX!=null&&h.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var v=f.shape,c=Math.max(v.width,v.height);u?(v.y-=c,v.height+=c*2):(v.x-=c,v.width+=c*2)}return l&&l(1,f),f}else return EE(e,t,n)}function kW(r,e){var t=e.getBaseAxis(),n=t.isHorizontal(),a=t.inverse,i=n?a?"right":"left":"center",o=n?"middle":a?"top":"bottom";return{normal:{align:r.get("align")||i,verticalAlign:r.get("verticalAlign")||o}}}var OW=(function(r){B(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(){var t=new oe,n=new jf;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=t,this._changePolyState=q(this._changePolyState,this)},e.prototype.render=function(t,n,a){var i=t.coordinateSystem,o=this.group,s=t.getData(),l=t.getModel("lineStyle"),u=t.getModel("areaStyle"),f=s.getLayout("points")||[],v=i.type==="polar",c=this._coordSys,h=this._symbolDraw,d=this._polyline,p=this._polygon,g=this._lineGroup,y=!n.ssr&&t.get("animation"),m=!u.isEmpty(),_=u.get("origin"),S=DE(i,s,_),x=m&&MW(i,s,S),w=t.get("showSymbol"),b=t.get("connectNulls"),T=w&&!v&&LW(t,s,i),C=this._data;C&&C.eachItemGraphicEl(function(te,ge){te.__temp&&(o.remove(te),C.setItemGraphicEl(ge,null))}),w||h.remove(),o.add(g);var A=v?!1:t.get("step"),D;i&&i.getArea&&t.get("clip",!0)&&(D=i.getArea(),D.width!=null?(D.x-=.1,D.y-=.1,D.width+=.2,D.height+=.2):D.r0&&(D.r0-=.5,D.r+=.5)),this._clipShapeForSymbol=D;var L=IW(s,i,a)||s.getVisual("style")[s.getVisual("drawType")];if(!(d&&c.type===i.type&&A===this._step))w&&h.updateData(s,{isIgnore:T,clipShape:D,disableAnimation:!0,getSymbolPoint:function(te){return[f[te*2],f[te*2+1]]}}),y&&this._initSymbolLabelAnimation(s,i,D),A&&(x&&(x=La(x,f,i,A,b)),f=La(f,null,i,A,b)),d=this._newPolyline(f),m?p=this._newPolygon(f,x):p&&(g.remove(p),p=this._polygon=null),v||this._initOrUpdateEndLabel(t,i,Mo(L)),g.setClipPath(Fg(this,i,!0,t));else{m&&!p?p=this._newPolygon(f,x):p&&!m&&(g.remove(p),p=this._polygon=null),v||this._initOrUpdateEndLabel(t,i,Mo(L));var I=g.getClipPath();if(I){var P=Fg(this,i,!1,t);Ke(I,{shape:P.shape},t)}else g.setClipPath(Fg(this,i,!0,t));w&&h.updateData(s,{isIgnore:T,clipShape:D,disableAnimation:!0,getSymbolPoint:function(te){return[f[te*2],f[te*2+1]]}}),(!nT(this._stackedOnPoints,x)||!nT(this._points,f))&&(y?this._doUpdateAnimation(s,x,i,a,A,_,b):(A&&(x&&(x=La(x,f,i,A,b)),f=La(f,null,i,A,b)),d.setShape({points:f}),p&&p.setShape({points:f,stackedOnPoints:x})))}var R=t.getModel("emphasis"),E=R.get("focus"),O=R.get("blurScope"),k=R.get("disabled");if(d.useStyle(le(l.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"})),_t(d,t,"lineStyle"),d.style.lineWidth>0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var z=d.getState("emphasis").style;z.lineWidth=+d.style.lineWidth+1}ve(d).seriesIndex=t.seriesIndex,et(d,E,O,k);var F=oT(t.get("smooth")),H=t.get("smoothMonotone");if(d.setShape({smooth:F,smoothMonotone:H,connectNulls:b}),p){var W=s.getCalculationInfo("stackedOnSeries"),X=0;p.useStyle(le(u.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),W&&(X=oT(W.get("smooth"))),p.setShape({smooth:F,stackedOnSmooth:X,smoothMonotone:H,connectNulls:b}),_t(p,t,"areaStyle"),ve(p).seriesIndex=t.seriesIndex,et(p,E,O,k)}var Y=this._changePolyState;s.eachItemGraphicEl(function(te){te&&(te.onHoverStateChange=Y)}),this._polyline.onHoverStateChange=Y,this._data=s,this._coordSys=i,this._stackedOnPoints=x,this._points=f,this._step=A,this._valueOrigin=_;var ee=t.get("triggerEvent"),ye=t.get("triggerLineEvent"),Ne=ye===!0||ee===!0||ee==="line",ce=ye===!0||ee===!0||ee==="area";this.packEventData(t,d,Ne),p&&this.packEventData(t,p,ce)},e.prototype.packEventData=function(t,n,a){ve(n).eventData=a?{componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line",selfType:n===this._polygon?"area":"line"}:null},e.prototype.highlight=function(t,n,a,i){var o=t.getData(),s=xo(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 f=l[s*2],v=l[s*2+1];if(zr(f,v)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,v))return;var c=t.get("zlevel")||0,h=t.get("z")||0;u=new Zf(o,s),u.x=f,u.y=v,u.setZ(c,h);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=c,d.z=h,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Ue.prototype.highlight.call(this,t,n,a,i)},e.prototype.downplay=function(t,n,a,i){var o=t.getData(),s=xo(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 Ue.prototype.downplay.call(this,t,n,a,i)},e.prototype._changePolyState=function(t){var n=this._polygon;ch(this._polyline,t),n&&ch(n,t)},e.prototype._newPolyline=function(t){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new TW({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},e.prototype._newPolygon=function(t,n){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new PE({shape:{points:t,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},e.prototype._initSymbolLabelAnimation=function(t,n,a){var i,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):n.type==="polar"&&(i=s.dim==="angle",o=!0);var u=t.hostModel,f=u.get("animationDuration");ie(f)&&(f=f(null));var v=u.get("animationDelay")||0,c=ie(v)?v(null):v;t.eachItemGraphicEl(function(h,d){var p=h;if(p){var g=[h.x,h.y],y=void 0,m=void 0,_=void 0;if(a)if(o){var S=a,x=n.pointToCoord(g);i?(y=S.startAngle,m=S.endAngle,_=-x[1]/180*Math.PI):(y=S.r0,m=S.r,_=x[0])}else{var w=a;i?(y=w.x,m=w.x+w.width,_=h.x):(y=w.y+w.height,m=w.y,_=h.y)}var b=m===y?0:(_-y)/(m-y);l&&(b=1-b);var T=ie(v)?v(d):f*b+c,C=p.getSymbolPath(),A=C.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),A&&A.animateFrom({style:{opacity:0}},{duration:300,delay:T}),C.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,n,a){var i=t.getModel("endLabel");if(BE(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 Re({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=RW(l);f>=0&&(Mt(s,St(t,"endLabel"),{inheritColor:a,labelFetcher:t,labelDataIndex:f,defaultText:function(v,c,h){return h!=null?ME(o,h):ll(o,v)},enableTextSetter:!0},kW(i,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,n,a,i,o,s,l){var u=this._endLabel,f=this._polyline;if(u){t<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var v=a.getLayout("points"),c=a.hostModel,h=c.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,g=l.getBaseAxis(),y=g.isHorizontal(),m=g.inverse,_=n.shape,S=m?y?_.x:_.y+_.height:y?_.x+_.width:_.y,x=(y?p:0)*(m?-1:1),w=(y?0:-p)*(m?-1:1),b=y?"x":"y",T=EW(v,S,b),C=T.range,A=C[1]-C[0],D=void 0;if(A>=1){if(A>1&&!h){var L=sT(v,C[0]);u.attr({x:L[0]+x,y:L[1]+w}),o&&(D=c.getRawValue(C[0]))}else{var L=f.getPointOn(S,b);L&&u.attr({x:L[0]+x,y:L[1]+w});var I=c.getRawValue(C[0]),P=c.getRawValue(C[1]);o&&(D=BL(a,d,I,P,T.t))}i.lastFrameIndex=C[0]}else{var R=t===1||i.lastFrameIndex>0?C[0]:0,L=sT(v,R);o&&(D=c.getRawValue(R)),u.attr({x:L[0]+x,y:L[1]+w})}if(o){var E=Al(u);typeof E.setLabelText=="function"&&E.setLabelText(D)}}},e.prototype._doUpdateAnimation=function(t,n,a,i,o,s,l){var u=this._polyline,f=this._polygon,v=t.hostModel,c=CW(this._data,t,this._stackedOnPoints,n,this._coordSys,a,this._valueOrigin),h=c.current,d=c.stackedOnCurrent,p=c.next,g=c.stackedOnNext;if(o&&(d=La(c.stackedOnCurrent,c.current,a,o,l),h=La(c.current,null,a,o,l),g=La(c.stackedOnNext,c.next,a,o,l),p=La(c.next,null,a,o,l)),iT(h,p)>3e3||f&&iT(d,g)>3e3){u.stopAnimation(),u.setShape({points:p}),f&&(f.stopAnimation(),f.setShape({points:p,stackedOnPoints:g}));return}u.shape.__points=c.current,u.shape.points=h;var y={shape:{points:p}};c.current!==h&&(y.shape.__points=c.next),u.stopAnimation(),Oe(u,y,v),f&&(f.setShape({points:h,stackedOnPoints:d}),f.stopAnimation(),Oe(f,{shape:{stackedOnPoints:g}},v),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var m=[],_=c.status,S=0;S<_.length;S++){var x=_[S].cmd;if(x==="="){var w=t.getItemGraphicEl(_[S].idx1);w&&m.push({el:w,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var b=u.shape.__points,T=0;T<m.length;T++){var C=m[T].el,A=m[T].ptIdx*2;C.x=b[A],C.y=b[A+1],C.markRedraw()}})},e.prototype.remove=function(t){var n=this.group,a=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),a&&a.eachItemGraphicEl(function(i,o){i.__temp&&(n.remove(i),a.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e})(Ue);function qf(r,e){return{seriesType:r,plan:qo(),reset:function(t){var n=t.getData(),a=t.coordinateSystem,i=t.pipelineContext,o=e||i.large;if(a){var s=$(a.dimensions,function(h){return n.mapDimension(h)}).slice(0,2),l=s.length,u=n.getCalculationInfo("stackResultDimension");ii(n,s[0])&&(s[0]=u),ii(n,s[1])&&(s[1]=u);var f=n.getStore(),v=n.getDimensionIndex(s[0]),c=n.getDimensionIndex(s[1]);return l&&{progress:function(h,d){for(var p=h.end-h.start,g=o&&bn(p*l),y=[],m=[],_=h.start,S=0;_<h.end;_++){var x=void 0;if(l===1){var w=f.get(v,_);x=a.dataToPoint(w,null,m)}else y[0]=f.get(v,_),y[1]=f.get(c,_),x=a.dataToPoint(y,null,m);o?(g[S++]=x[0],g[S++]=x[1]):d.setItemLayout(_,x.slice())}o&&(d.setLayout("points",g),d.setLayout("pointsRange",{start:h.start,end:h.end}))}}}}}}var NW={average:function(r){for(var e=0,t=0,n=0;n<r.length;n++)isNaN(r[n])||(e+=r[n],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]}},BW=function(r){return Math.round(r.length/2)};function VE(r){return{seriesType:r,reset:function(e,t,n){var a=e.getData(),i=e.get("sampling"),o=e.coordinateSystem,s=a.count();if(s>10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),v=n.getDevicePixelRatio(),c=Math.abs(f[1]-f[0])*(v||1),h=Math.round(s/c);if(isFinite(h)&&h>1){i==="lttb"?e.setData(a.lttbDownSample(a.mapDimension(u.dim),1/h)):i==="minmax"&&e.setData(a.minmaxDownSample(a.mapDimension(u.dim),1/h));var d=void 0;Z(i)?d=NW[i]:ie(i)&&(d=i),d&&e.setData(a.downSample(a.mapDimension(u.dim),1/h,d,BW))}}}}}function VW(r){r.registerChartView(OW),r.registerSeriesModel(mW),r.registerLayout(qf("line",!0)),r.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",n)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,VE("line"))}var zE=(function(r){B(e,r);function e(t,n,a,i,o){var s=r.call(this,t,n,a)||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 n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),t&&n[0]>n[1]&&n.reverse(),n},e.prototype.pointToData=function(t,n){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),n)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e})(ln),G0=null;function zW(r){G0||(G0=r)}function Kf(){return G0}var ep="expandAxisBreak",FE="collapseAxisBreak",GE="toggleAxisBreak",h1="axisbreakchanged",FW={type:ep,event:h1,update:"update",refineEvent:d1},GW={type:FE,event:h1,update:"update",refineEvent:d1},HW={type:GE,event:h1,update:"update",refineEvent:d1};function d1(r,e,t,n){var a=[];return M(r,function(i){a=a.concat(i.eventBreaks)}),{eventContent:{breaks:a}}}function UW(r){r.registerAction(FW,e),r.registerAction(GW,e),r.registerAction(HW,e);function e(t,n){var a=[],i=Fs(n,t);function o(s,l){M(i[s],function(u){var f=u.updateAxisBreaks(t);M(f.breaks,function(v){var c;a.push(le((c={},c[l]=u.componentIndex,c),v))})})}return o("xAxisModels","xAxisIndex"),o("yAxisModels","yAxisIndex"),o("singleAxisModels","singleAxisIndex"),{eventBreaks:a}}}var Ha=Math.PI,$W=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],WW=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],ko=me(),HE=me(),UE=(function(){function r(e){this.recordMap={},this.resolveAxisNameOverlap=e}return r.prototype.ensureRecord=function(e){var t=e.axis.dim,n=e.componentIndex,a=this.recordMap,i=a[t]||(a[t]=[]);return i[n]||(i[n]={ready:{}})},r})();function YW(r,e,t,n){var a=t.axis,i=e.ensureRecord(t),o=[],s,l=p1(r.axisName)&&il(r.nameLocation);M(n,function(d){var p=Fn(d);if(!(!p||p.label.ignore)){o.push(p);var g=i.transGroup;l&&(g.transform?Gr(Kl,g.transform):yl(Kl),p.transform&&Vr(Kl,Kl,p.transform),se.copy(Gv,p.localRect),Gv.applyTransform(Kl),s?s.union(Gv):se.copy(s=new se(0,0,0,0),Gv))}});var u=Math.abs(i.dirVec.x)>.1?"x":"y",f=i.transGroup[u];if(o.sort(function(d,p){return Math.abs(d.label[u]-f)-Math.abs(p.label[u]-f)}),l&&s){var v=a.getExtent(),c=Math.min(v[0],v[1]),h=Math.max(v[0],v[1])-c;s.union(new se(c,0,h,1))}i.stOccupiedRect=s,i.labelInfoList=o}var Kl=nt(),Gv=new se(0,0,0,0),$E=function(r,e,t,n,a,i){if(il(r.nameLocation)){var o=i.stOccupiedRect;o&&WE(b$({},o,i.transGroup.transform),n,a)}else YE(i.labelInfoList,i.dirVec,n,a)};function WE(r,e,t){var n=new ue;Jd(r,e,n,{direction:Math.atan2(t.y,t.x),bidirectional:!1,touchThreshold:.05})&&E0(e,n)}function YE(r,e,t,n){for(var a=ue.dot(n,e)>=0,i=0,o=r.length;i<o;i++){var s=r[a?i:o-1-i];s.label.ignore||WE(s,t,n)}}var ar=(function(){function r(e,t,n,a){this.group=new oe,this._axisModel=e,this._api=t,this._local={},this._shared=a||new UE($E),this._resetCfgDetermined(n)}return r.prototype.updateCfg=function(e){var t=this._cfg.raw;t.position=e.position,t.labelOffset=e.labelOffset,this._resetCfgDetermined(t)},r.prototype.__getRawCfg=function(){return this._cfg.raw},r.prototype._resetCfgDetermined=function(e){var t=this._axisModel,n=t.getDefaultOption?t.getDefaultOption():{},a=Q(e.axisName,t.get("name")),i=t.get("nameMoveOverlap");(i==null||i==="auto")&&(i=Q(e.defaultNameMoveOverlap,!0));var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:Q(e.nameDirection,1),tickDirection:Q(e.tickDirection,1),labelDirection:Q(e.labelDirection,1),labelOffset:Q(e.labelOffset,0),silent:Q(e.silent,!0),axisName:a,nameLocation:xr(t.get("nameLocation"),n.nameLocation,"end"),shouldNameMoveOverlap:p1(a)&&i,optionHideOverlap:t.get(["axisLabel","hideOverlap"]),showMinorTicks:t.get(["minorTick","show"])};this._cfg=o;var s=new oe({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(t);l.transGroup=this._transformGroup,l.dirVec=new ue(Math.cos(-o.rotation),Math.sin(-o.rotation))},r.prototype.build=function(e,t){var n=this;return e||(e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),M(XW,function(a){e[a]&&ZW[a](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,t||{})}),this},r.innerTextLayout=function(e,t,n){var a=AL(t-e),i,o;return Qs(a)?(o=n>0?"top":"bottom",i="center"):Qs(a-Ha)?(o=n>0?"bottom":"top",i="center"):(o="middle",a>0&&a<Ha?i=n>0?"right":"left":i=n>0?"left":"right"),{rotation:a,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})(),XW=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],ZW={axisLine:function(r,e,t,n,a,i,o){var s=n.get(["axisLine","show"]);if(s==="auto"&&(s=!0,r.raw.axisLineAutoShow!=null&&(s=!!r.raw.axisLineAutoShow)),!!s){var l=n.axis.getExtent(),u=i.transform,f=[l[0],0],v=[l[1],0],c=f[0]>v[0];u&&(st(f,f,u),st(v,v,u));var h=G({lineCap:"round"},n.getModel(["axisLine","lineStyle"]).getLineStyle()),d={strokeContainThreshold:r.raw.strokeContainThreshold||5,silent:!0,z2:1,style:h};if(n.get(["axisLine","breakLine"])&&yh(n.axis.scale))Kf().buildAxisBreakLine(n,a,i,d);else{var p=new dt(G({shape:{x1:f[0],y1:f[1],x2:v[0],y2:v[1]}},d));tl(p.shape,p.style.lineWidth),p.anid="line",a.add(p)}var g=n.get(["axisLine","symbol"]);if(g!=null){var y=n.get(["axisLine","symbolSize"]);Z(g)&&(g=[g,g]),(Z(y)||Ee(y))&&(y=[y,y]);var m=Ko(n.get(["axisLine","symbolOffset"])||0,y),_=y[0],S=y[1];M([{rotate:r.rotation+Math.PI/2,offset:m[0],r:0},{rotate:r.rotation-Math.PI/2,offset:m[1],r:Math.sqrt((f[0]-v[0])*(f[0]-v[0])+(f[1]-v[1])*(f[1]-v[1]))}],function(x,w){if(g[w]!=="none"&&g[w]!=null){var b=gt(g[w],-_/2,-S/2,_,S,h.stroke,!0),T=x.r+x.offset,C=c?v:f;b.attr({rotation:x.rotate,x:C[0]+T*Math.cos(r.rotation),y:C[1]-T*Math.sin(r.rotation),silent:!0,z2:11}),a.add(b)}})}}},axisTickLabelEstimate:function(r,e,t,n,a,i,o,s){var l=uT(e,a,s);l&&lT(r,e,t,n,a,i,o,nn.estimate)},axisTickLabelDetermine:function(r,e,t,n,a,i,o,s){var l=uT(e,a,s);l&&lT(r,e,t,n,a,i,o,nn.determine);var u=JW(r,a,i,n);KW(r,e.labelLayoutList,u),QW(r,a,i,n,r.tickDirection)},axisName:function(r,e,t,n,a,i,o,s){var l=t.ensureRecord(n);e.nameEl&&(a.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var u=r.axisName;if(p1(u)){var f=r.nameLocation,v=r.nameDirection,c=n.getModel("nameTextStyle"),h=n.get("nameGap")||0,d=n.axis.getExtent(),p=n.axis.inverse?-1:1,g=new ue(0,0),y=new ue(0,0);f==="start"?(g.x=d[0]-p*h,y.x=-p):f==="end"?(g.x=d[1]+p*h,y.x=p):(g.x=(d[0]+d[1])/2,g.y=r.labelOffset+v*h,y.y=v);var m=nt();y.transform(hi(m,m,r.rotation));var _=n.get("nameRotate");_!=null&&(_=_*Ha/180);var S,x;il(f)?S=ar.innerTextLayout(r.rotation,_??r.rotation,v):(S=jW(r.rotation,f,_||0,d),x=r.raw.axisNameAvailableWidth,x!=null&&(x=Math.abs(x/Math.sin(S.rotation)),!isFinite(x)&&(x=null)));var w=c.getFont(),b=n.get("nameTruncate",!0)||{},T=b.ellipsis,C=tr(r.raw.nameTruncateMaxWidth,b.maxWidth,x),A=s.nameMarginLevel||0,D=new Re({x:g.x,y:g.y,rotation:S.rotation,silent:ar.isLabelSilent(n),style:Ze(c,{text:u,font:w,overflow:"truncate",width:C,ellipsis:T,fill:c.getTextColor()||n.get(["axisLine","lineStyle","color"]),align:c.get("align")||S.textAlign,verticalAlign:c.get("verticalAlign")||S.textVerticalAlign}),z2:1});if(xa({el:D,componentModel:n,itemName:u}),D.__fullText=u,D.anid="name",n.get("triggerEvent")){var L=ar.makeAxisEventDataBase(n);L.targetType="axisName",L.name=u,ve(D).eventData=L}i.add(D),D.updateTransform(),e.nameEl=D;var I=l.nameLayout=Fn({label:D,priority:D.z2,defaultAttr:{ignore:D.ignore},marginDefault:il(f)?$W[A]:WW[A]});if(l.nameLocation=f,a.add(D),D.decomposeTransform(),r.shouldNameMoveOverlap&&I){var P=t.ensureRecord(n);t.resolveAxisNameOverlap(r,t,n,I,y,P)}}}};function lT(r,e,t,n,a,i,o,s){ZE(e)||eY(r,e,a,s,n,o);var l=e.labelLayoutList;tY(r,n,l,i),aY(n,r.rotation,l);var u=r.optionHideOverlap;qW(n,l,u),u&&lE(Fe(l,function(f){return f&&!f.label.ignore})),YW(r,t,n,l)}function jW(r,e,t,n){var a=AL(t-r),i,o,s=n[0]>n[1],l=e==="start"&&!s||e!=="start"&&s;return Qs(a-Ha/2)?(o=l?"bottom":"top",i="center"):Qs(a-Ha*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",a<Ha*1.5&&a>Ha/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function qW(r,e,t){var n=r.axis,a=r.get(["axisLabel","customValues"]);if(wU(n))return;function i(u,f,v){var c=Fn(e[f]),h=Fn(e[v]),d=n.scale;if(!(!c||!h)){if(u==null){if(!t&&a)return;var p=ko(c.label).labelInfo.tick;if(Uf(d)&&p.notNice||jt(d)&&p.offInterval){Is(c.label);return}}if(u===!1||c.suggestIgnore){Is(c.label);return}if(h.suggestIgnore){Is(h.label);return}var g=.1;if(!t){var y=[0,0,0,0];c=k0({marginForce:y},c),h=k0({marginForce:y},h)}Jd(c,h,null,{touchThreshold:g})&&Is(u?h.label:c.label)}}var o=r.get(["axisLabel","showMinLabel"]),s=r.get(["axisLabel","showMaxLabel"]),l=e.length;i(o,0,1),i(s,l-1,l-2)}function KW(r,e,t){r.showMinorTicks||M(e,function(n){if(n&&n.label.ignore)for(var a=0;a<t.length;a++){var i=t[a],o=HE(i),s=ko(n.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.labelInfo.tick.value){Is(i);return}}})}function Is(r){r&&(r.ignore=!0)}function XE(r,e,t,n,a){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&&(st(o,o,e),st(s,s,e));var f=new dt({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});tl(f.shape,f.style.lineWidth),f.anid=a+"_"+r[l].tickValue,i.push(f);var v=HE(f);v.onBand=!!r[l].onBand,v.tickValue=r[l].tickValue}return i}function JW(r,e,t,n){var a=n.axis,i=n.getModel("axisTick"),o=i.get("show");if(o==="auto"&&(o=!0,r.raw.axisTickAutoShow!=null&&(o=!!r.raw.axisTickAutoShow)),!o||a.scale.isBlank())return[];for(var s=i.getModel("lineStyle"),l=r.tickDirection*i.get("length"),u=a.getTicksCoords(),f=XE(u,t.transform,l,le(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),v=0;v<f.length;v++)e.add(f[v]);return f}function QW(r,e,t,n,a){var i=n.axis,o=n.getModel("minorTick");if(!(!r.showMinorTicks||i.scale.isBlank())){var s=i.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=a*o.get("length"),f=le(l.getLineStyle(),le(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),v=0;v<s.length;v++)for(var c=XE(s[v],t.transform,u,f,"minorticks_"+v),h=0;h<c.length;h++)e.add(c[h])}}function uT(r,e,t){if(ZE(r)){var n=r.axisLabelsCreationContext,a=n.out.noPxChangeTryDetermine;if(t.noPxChange){for(var i=!0,o=0;o<a.length;o++)i=i&&a[o]();if(i)return!1}a.length&&(e.remove(r.labelGroup),H0(r,null,null,null))}return!0}function eY(r,e,t,n,a,i){var o=a.axis,s=tr(r.raw.axisLabelShow,a.get(["axisLabel","show"])),l=new oe;t.add(l);var u=Ph(n);if(!s||o.scale.isBlank()){H0(e,[],l,u);return}var f=a.getModel("axisLabel"),v=o.getViewLabels(u),c=(tr(r.raw.labelRotate,f.get("rotate"))||0)*Ha/180,h=ar.innerTextLayout(r.rotation,c,r.labelDirection),d=a.getCategories&&a.getCategories(!0),p=[],g=a.get("triggerEvent"),y=1/0,m=-1/0;M(v,function(S,x){var w,b=S.tick,T=S.formattedLabel,C=S.rawLabel,A=f,D=Ll(o.scale,b);if(d&&d[D]){var L=d[D];fe(L)&&L.textStyle&&(A=new Ie(L.textStyle,f,a.ecModel))}var I=A.getTextColor()||a.get(["axisLine","lineStyle","color"]),P=A.getShallow("align",!0)||h.textAlign,R=Q(A.getShallow("alignMinLabel",!0),P),E=Q(A.getShallow("alignMaxLabel",!0),P),O=A.getShallow("verticalAlign",!0)||A.getShallow("baseline",!0)||h.textVerticalAlign,k=Q(A.getShallow("verticalAlignMinLabel",!0),O),z=Q(A.getShallow("verticalAlignMaxLabel",!0),O),F=10+(((w=b.time)===null||w===void 0?void 0:w.level)||0);y=Math.min(y,F),m=Math.max(m,F);var H=new Re({x:0,y:0,rotation:0,silent:ar.isLabelSilent(a),z2:F,style:Ze(A,{text:T,align:x===0?R:x===v.length-1?E:P,verticalAlign:x===0?k:x===v.length-1?z:O,fill:ie(I)?I(o.type==="category"?C:o.type==="value"?D+"":D,x):I})});H.anid="label_"+D;var W=ko(H);if(W.labelInfo=S,W.layoutRotation=h.rotation,xa({el:H,componentModel:a,itemName:T,formatterParamsExtra:{isTruncated:function(){return H.isTruncated},value:C,tickIndex:x}}),g){var X=ar.makeAxisEventDataBase(a);X.targetType="axisLabel",X.value=C,X.tickIndex=x;var Y=S.tick.break;if(Y){var ee=Y.parsedBreak;X.break={start:ee.vmin,end:ee.vmax}}o.type==="category"&&(X.dataIndex=D),ve(H).eventData=X,Y&&nY(a,i,H,Y)}p.push(H),l.add(H)});var _=$(p,function(S){return{label:S,priority:ko(S).labelInfo.tick.break?S.z2+(m-y+1):S.z2,defaultAttr:{ignore:S.ignore}}});H0(e,_,l,u)}function ZE(r){return!!r.labelLayoutList}function H0(r,e,t,n){r.labelLayoutList=e,r.labelGroup=t,r.axisLabelsCreationContext=n}function tY(r,e,t,n){var a=e.get(["axisLabel","margin"]);M(t,function(i,o){var s=Fn(i);if(s){var l=s.label,u=ko(l);s.suggestIgnore=l.ignore,l.ignore=!1,On(Zn,rY);var f=e.axis;Zn.x=f.dataToCoord(Ll(f.scale,u.labelInfo.tick)),Zn.y=r.labelOffset+r.labelDirection*a,Zn.rotation=u.layoutRotation,n.add(Zn),Zn.updateTransform(),n.remove(Zn),Zn.decomposeTransform(),On(l,Zn),l.markRedraw(),Nh(s,!0),Fn(s)}})}var Zn=new be,rY=new be;function p1(r){return!!r}function nY(r,e,t,n){t.on("click",function(a){var i={type:ep,breaks:[{start:n.parsedBreak.breakOption.start,end:n.parsedBreak.breakOption.end}]};i[r.axis.dim+"AxisIndex"]=r.componentIndex,e.dispatchAction(i)})}function aY(r,e,t){var n=vt();if(n){var a=n.retrieveAxisBreakPairs(t,function(o){return o&&ko(o.label).labelInfo.tick.break},!0),i=r.get(["breakLabelLayout","moveOverlap"],!0);(i===!0||i==="auto")&&M(a,function(o){Kf().adjustBreakLabelPair(r.axis.inverse,e,[Fn(t[o[0]]),Fn(t[o[1]])])})}}function Vh(r,e,t){t=t||{};var n=e.axis,a={},i=n.getAxesOnZeroOf()[0],o=n.position,s=i?"onZero":o,l=n.dim,u=[r.x,r.x+r.width,r.y,r.y+r.height],f={left:0,right:1,top:0,bottom:1,onZero:2},v=e.get("offset")||0,c=l==="x"?[u[2]-v,u[3]+v]:[u[0]-v,u[1]+v];if(i){var h=i.toGlobalCoord(i.dataToCoord(0));c[f.onZero]=Math.max(Math.min(h,c[1]),c[0])}a.position=[l==="y"?c[f[s]]:u[0],l==="x"?c[f[s]]:u[3]],a.rotation=Math.PI/2*(l==="x"?0:1);var d={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=d[o],a.labelOffset=i?c[f[o]]-c[f.onZero]:0,e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),tr(t.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var p=e.get(["axisLabel","rotate"]);return a.labelRotate=s==="top"?-p:p,a.z2=1,a}function iY(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function oY(r){var e={xAxisModel:null,yAxisModel:null};return M(e,function(t,n){var a=n.replace(/Model$/,""),i=r.getReferringComponents(a,at).models[0];e[n]=i}),e}function sY(r,e,t,n,a,i){for(var o=Vh(r,t),s=!1,l=!1,u=0;u<e.length;u++)IR(e[u].getOtherAxis(t.axis).scale)&&(s=l=!0,t.axis.type==="category"&&t.axis.onBand&&(l=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=i,new ar(t,n,o,a)}function lY(r,e,t){var n=Vh(e,t);r.updateCfg(n)}function uY(r){return r.dim+"_"+r.index}function fY(){EU("liPosMinGap",vY)}function vY(r,e,t){var n=K(),a=t.serUids,i=t.liPosMinGap,o,s=e.axis,l=s.scale,u=l.needTransform(),f=l.getFilter?l.getFilter():null,v=DP(f);function c(_){qd(r,e.sers,function(S){var x=S.getRawData(),w=x.getDimensionIndex(x.mapDimension(s.dim));w>=0&&_(w,S,x.getStore())})}var h=0;if(c(function(_,S,x){n.set(S.uid,1),(!a||!a.hasKey(S.uid))&&(o=!0),h+=x.count()}),(!a||a.keys().length!==n.keys().length)&&(o=!0),!o&&i!=null){e.liPosMinGap=i;return}c1(Hi,h);var d=0;c(function(_,S,x){for(var w=0,b=x.count();w<b;++w){var T=x.get(_,w);isFinite(T)&&(!f||IP(v,T))&&(u&&(T=l.transformIn(T,null)),Hi.arr[d++]=T)}});var p=Hi.typed?Hi.arr.subarray(0,d):(Hi.arr.length=d,Hi.arr);Hi.typed?p.sort():Nt(p);for(var g=1/0,y=1;y<d;++y){var m=p[y]-p[y-1];m>0&&m<g&&(g=m)}t.liPosMinGap=e.liPosMinGap=Hr(g)?g:d>0?zR:AU,t.serUids=n}var Hi=c1({ctor:wW},50);function tp(r){return function(e,t){var n=Vt(e,{fromStat:{key:r}});if(Hr(n.w2))return[-n.w2/2,n.w2/2]}}function yo(r){return r+Lh}function Qo(r,e){return r+Lh+e}function g1(r){return fY(),{liPosMinGap:!jt(r.scale)}}var In="bar",gf="pictorialBar";function jE(r,e,t,n){r1(r,{key:e,seriesType:t,coordSysType:n,getMetrics:g1})}function qE(r){var e=r.scale.rawExtentInfo.makeRenderInfo().startValue;return e}var KE={left:0,right:0,top:0,bottom:0},zh=["25%","25%"],en="cartesian2d",cY=(function(r){B(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.mergeDefaultAndTheme=function(t,n){var a=jo(t.outerBounds);r.prototype.mergeDefaultAndTheme.apply(this,arguments),a&&t.outerBounds&&zn(t.outerBounds,a)},e.prototype.mergeOption=function(t,n){r.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&zn(this.option.outerBounds,t.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:KE,outerBoundsContain:"all",outerBoundsClampWidth:zh[0],outerBoundsClampHeight:zh[1],backgroundColor:N.color.transparent,borderWidth:1,borderColor:N.color.neutral30},e})(Me),hY=Sl(),U0="__ec_stack_";function JE(r){return r.get("stack")||U0+r.seriesIndex}function dY(r){if(jt(r.axis.scale)){for(var e=Vt(r.axis),t=[],n=0;n<r.count;n++)t.push(le({stackId:U0+n},r));for(var a=QE({bandWidthResult:e,seriesInfo:t}),i=[],n=0;n<r.count;n++){var o=a[U0+n];o.offsetCenter=o.offset+o.width/2,i.push(o)}return i}}function pY(r,e){var t=gY(r,e);return t.columnMap=QE(t),t}function gY(r,e){var t=Qo(e,en),n=[],a=Vt(r,{fromStat:{key:t},min:1});return Io(r,t,function(i){n.push({barWidth:j(i.get("barWidth"),a.w),barMaxWidth:j(i.get("barMaxWidth"),a.w),barMinWidth:j(i.get("barMinWidth")||(rk(i)?.5:1),a.w),barGap:i.get("barGap"),barCategoryGap:i.get("barCategoryGap"),defaultBarGap:i.get("defaultBarGap"),stackId:JE(i)})}),{bandWidthResult:a,seriesInfo:n}}function QE(r){var e=r.bandWidthResult.w,t=e,n=0,a,i,o=[],s={};M(r.seriesInfo,function(p,g){g||(i=p.defaultBarGap||0);var y=p.stackId;J(s,y)||n++;var m=s[y];m||(m=s[y]={width:0,maxWidth:0},o.push(y));var _=p.barWidth;_&&!m.width&&(m.width=_,_=He(t,_),t-=_);var S=p.barMaxWidth;S&&(m.maxWidth=S);var x=p.barMinWidth;x&&(m.minWidth=x);var w=p.barGap;w!=null&&(i=w);var b=p.barCategoryGap;b!=null&&(a=b)}),a==null&&(a=we(35-o.length*4,15)+"%");var l=j(a,e),u=j(i,1),f=(t-l)/(n+(n-1)*u);f=we(f,0),M(o,function(p){var g=s[p],y=g.maxWidth,m=g.minWidth;if(g.width){var _=g.width;y&&(_=He(_,y)),m&&(_=we(_,m)),g.width=_,t-=_+u*_,n--}else{var _=f;y&&y<_&&(_=He(y,t)),m&&m>_&&(_=m),_!==f&&(g.width=_,t-=_+u*_,n--)}}),f=(t-l)/(n+(n-1)*u),f=we(f,0);var v=0,c;M(o,function(p){var g=s[p];g.width||(g.width=f),c=g,v+=g.width*(1+u)}),c&&(v-=c.width*u);var h={},d=-v/2;return M(o,function(p){var g=s[p];h[p]=h[p]||{bandWidth:e,offset:d,width:g.width},d+=g.width*(1+u)}),h}function ek(r){return{seriesType:r,overallReset:function(e){var t=Qo(r,en);t1(e,t,function(n){var a=pY(n,r);Io(n,t,function(i){var o=a.columnMap[JE(i)];i.getData().setLayout({bandWidth:o.bandWidth,offset:o.offset,size:o.width})})})}}}function tk(r){return{seriesType:r,plan:qo(),reset:function(e){if(iY(e)){var t=e.getData(),n=e.coordinateSystem,a=n.getBaseAxis(),i=n.getOtherAxis(a),o=t.getDimensionIndex(t.mapDimension(i.dim)),s=t.getDimensionIndex(t.mapDimension(a.dim)),l=e.get("showBackground",!0),u=t.mapDimension(i.dim),f=t.getCalculationInfo("stackResultDimension"),v=ii(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),c=i.isHorizontal(),h=i.toGlobalCoord(i.dataToCoord(qE(i))),d=rk(e),p=e.get("barMinHeight")||0,g=f&&t.getDimensionIndex(f),y=t.getLayout("size"),m=t.getLayout("offset");return{progress:function(_,S){for(var x=_.count,w=d&&bn(x*3),b=d&&l&&bn(x*3),T=d&&bn(x),C=n.master.getRect(),A=c?C.width:C.height,D,L=S.getStore(),I=0;(D=_.next())!=null;){var P=L.get(v?g:o,D),R=L.get(s,D),E=h,O=void 0;v&&(O=+P-L.get(o,D));var k=void 0,z=void 0,F=void 0,H=void 0;if(c){var W=n.dataToPoint([P,R]);v&&(E=n.dataToPoint([O,R])[0]),k=E,z=W[1]+m,F=W[0]-E,H=y,it(F)<p&&(F=(F<0?-1:1)*p)}else{var W=n.dataToPoint([R,P]);v&&(E=n.dataToPoint([R,O])[1]),k=W[0]+m,z=E,F=y,H=W[1]-E,it(H)<p&&(H=(H<=0?-1:1)*p)}d?(w[I]=k,w[I+1]=z,w[I+2]=c?F:H,b&&(b[I]=c?C.x:k,b[I+1]=c?z:C.y,b[I+2]=A),T[D]=D):S.setItemLayout(D,{x:k,y:z,width:F,height:H}),I+=3}d&&S.setLayout({largePoints:w,largeDataIndices:T,largeBackgroundPoints:b,valueAxisHorizontal:c})}}}}}}function rk(r){return r.pipelineContext&&r.pipelineContext.large}function yY(r){return tp(Qo(r,en))}function nk(r){hY(r,function(){function e(t){var n=Qo(t,en);jE(r,n,t,en),Kd(n,yY(t))}e("bar"),e("pictorialBar")})}var yf=(function(r){B(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,n){return wa(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,n,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(t),s=i.dataToPoint(o);if(a)M(i.getAxes(),function(c,h){if(c.type==="category"&&n!=null){var d=c.getTicksCoords(),p=c.getTickModel().get("alignWithLabel"),g=o[h],y=n[h]==="x1"||n[h]==="y1";if(y&&!p&&(g+=1),d.length<2)return;if(d.length===2){s[h]=c.toGlobalCoord(c.getExtent()[y?1:0]);return}for(var m=void 0,_=void 0,S=1,x=0;x<d.length;x++){var w=d[x].coord,b=x===d.length-1?d[x-1].tickValue+S:d[x].tickValue;if(b===g){_=w;break}else if(b<g)m=w;else if(m!=null&&b>g){_=(w+m)/2;break}x===1&&(S=b-d[0].tickValue)}_==null&&(m?m&&(_=d[d.length-1].coord):_=d[0].coord),s[h]=c.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),v=i.getBaseAxis().isHorizontal()?0:1;s[v]+=u+f/2}return s}return[NaN,NaN]},e.prototype.__requireStartValue=function(t){return this.getBaseAxis()!==t},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",defaultBarGap:"10%"},e})(je);je.registerClass(yf);var mY=(function(r){B(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 wa(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.__preparePipelineContext=function(t,n){var a=FL(this,t,n);return a.progressiveRender&&(a.large=!0),a},e.prototype.brushSelector=function(t,n,a){return a.rect(n.getItemLayout(t))},e.type="series."+In,e.dependencies=["grid","polar"],e.defaultOption=pi(yf.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:N.color.primary,borderWidth:2}},realtimeSort:!1}),e})(yf),_Y=(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})(),Fh=(function(r){B(e,r);function e(t){var n=r.call(this,t)||this;return n.type="sausage",n}return e.prototype.getDefaultShape=function(){return new _Y},e.prototype.buildPath=function(t,n){var a=n.cx,i=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,f=n.startAngle,v=n.endAngle,c=n.clockwise,h=Math.PI*2,d=c?v-f<h:f-v<h;d||(f=v-(c?h:-h));var p=Math.cos(f),g=Math.sin(f),y=Math.cos(v),m=Math.sin(v);d?(t.moveTo(p*o+a,g*o+i),t.arc(p*u+a,g*u+i,l,-Math.PI+f,f,!c)):t.moveTo(p*s+a,g*s+i),t.arc(a,i,s,f,v,!c),t.arc(y*u+a,m*u+i,l,v-Math.PI*2,v-Math.PI,!c),o!==0&&t.arc(a,i,o,v,f,c)},e})(Ae);function SY(r,e){e=e||{};var t=e.isRoundCap;return function(n,a,i){var o=a.position;if(!o||o instanceof Array)return ih(n,a,i);var s=r(o),l=a.distance!=null?a.distance:5,u=this.shape,f=u.cx,v=u.cy,c=u.r,h=u.r0,d=(c+h)/2,p=u.startAngle,g=u.endAngle,y=(p+g)/2,m=t?Math.abs(c-h)/2:0,_=Math.cos,S=Math.sin,x=f+c*_(p),w=v+c*S(p),b="left",T="top";switch(s){case"startArc":x=f+(h-l)*_(y),w=v+(h-l)*S(y),b="center",T="top";break;case"insideStartArc":x=f+(h+l)*_(y),w=v+(h+l)*S(y),b="center",T="bottom";break;case"startAngle":x=f+d*_(p)+Hv(p,l+m,!1),w=v+d*S(p)+Uv(p,l+m,!1),b="right",T="middle";break;case"insideStartAngle":x=f+d*_(p)+Hv(p,-l+m,!1),w=v+d*S(p)+Uv(p,-l+m,!1),b="left",T="middle";break;case"middle":x=f+d*_(y),w=v+d*S(y),b="center",T="middle";break;case"endArc":x=f+(c+l)*_(y),w=v+(c+l)*S(y),b="center",T="bottom";break;case"insideEndArc":x=f+(c-l)*_(y),w=v+(c-l)*S(y),b="center",T="top";break;case"endAngle":x=f+d*_(g)+Hv(g,l+m,!0),w=v+d*S(g)+Uv(g,l+m,!0),b="left",T="middle";break;case"insideEndAngle":x=f+d*_(g)+Hv(g,-l+m,!0),w=v+d*S(g)+Uv(g,-l+m,!0),b="right",T="middle";break;default:return ih(n,a,i)}return n=n||{},n.x=x,n.y=w,n.align=b,n.verticalAlign=T,n}}function xY(r,e,t,n){if(Ee(n)){r.setTextConfig({rotation:n});return}else if(U(e)){r.setTextConfig({rotation:0});return}var a=r.shape,i=a.clockwise?a.startAngle:a.endAngle,o=a.clockwise?a.endAngle:a.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 f=Math.PI*1.5-l;u==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),r.setTextConfig({rotation:f})}function Hv(r,e,t){return e*Math.sin(r)*(t?-1:1)}function Uv(r,e,t){return e*Math.cos(r)*(t?1:-1)}function Cn(r,e,t){var n=r.get("borderRadius");if(n==null)return t?{cornerRadius:0}:null;U(n)||(n=[n,n,n,n]);var a=Math.abs(e.r||0-e.r0||0);return{cornerRadius:$(n,function(i){return Nn(i,a)})}}var Gg=Math.max,Hg=Math.min,wY=(function(r){B(e,r);function e(){var t=r.call(this)||this;return t.type=In,t._isFirstFrame=!0,t}return e.prototype.render=function(t,n,a,i){this._model=t,this._removeOnRenderedListener(a),this._updateDrawMode(t);var o=t.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,n,a):this._renderNormal(t,n,a,i))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,n){this._progressiveEls=[],this._incrementalRenderLarge(t,n)},e.prototype.eachRendered=function(t){di(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var n=t.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},e.prototype._renderNormal=function(t,n,a,i){var o=this.group,s=t.getData(),l=this._data,u=t.coordinateSystem,f=u.getBaseAxis(),v;u.type==="cartesian2d"?v=f.isHorizontal():u.type==="polar"&&(v=f.dim==="angle");var c=t.isAnimationEnabled()?t:null,h=bY(t,u);h&&this._enableRealtimeSort(h,s,a);var d=t.get("clip",!0)||h,p=u.getArea();o.removeClipPath();var g=t.get("roundCap",!0),y=t.get("showBackground",!0),m=t.getModel("backgroundStyle"),_=m.get("borderRadius")||0,S=[],x=this._backgroundEls,w=i&&i.isInitSort,b=i&&i.type==="changeAxisOrder";function T(D){var L=$v[u.type](s,D);if(!L)return null;var I=LY(u,v,L);return I.useStyle(m.getItemStyle()),u.type==="cartesian2d"?I.setShape("r",_):I.setShape("cornerRadius",_),S[D]=I,I}s.diff(l).add(function(D){var L=s.getItemModel(D),I=$v[u.type](s,D,L);if(I&&(y&&T(D),!(!s.hasValue(D)||!dT[u.type](I)))){var P=!1;d&&(P=fT[u.type](p,I));var R=vT[u.type](t,s,D,I,v,c,f.model,!1,g);h&&(R.forceLabelAnimation=!0),pT(R,s,D,L,I,t,v,u.type==="polar"),w?R.attr({shape:I}):h?cT(h,c,R,I,D,v,!1,!1):Ke(R,{shape:I},t,D),s.setItemGraphicEl(D,R),o.add(R),R.ignore=P}}).update(function(D,L){var I=s.getItemModel(D),P=$v[u.type](s,D,I);if(P){if(y){var R=void 0;x.length===0?R=T(L):(R=x[L],R.useStyle(m.getItemStyle()),u.type==="cartesian2d"?R.setShape("r",_):R.setShape("cornerRadius",_),S[D]=R);var E=$v[u.type](s,D),O=ik(v,E,u);Oe(R,{shape:O},c,D)}var k=l.getItemGraphicEl(L);if(!s.hasValue(D)||!dT[u.type](P)){o.remove(k);return}var z=!1;d&&(z=fT[u.type](p,P),z&&o.remove(k));var F=k&&(k.type==="sector"&&g||k.type==="sausage"&&!g);if(F&&(k&&na(k,t,L),k=null),k?$r(k):k=vT[u.type](t,s,D,P,v,c,f.model,!0,g),h&&(k.forceLabelAnimation=!0),b){var H=k.getTextContent();if(H){var W=Al(H);W.prevValue!=null&&(W.prevValue=W.value)}}else pT(k,s,D,I,P,t,v,u.type==="polar");w?k.attr({shape:P}):h?cT(h,c,k,P,D,v,!0,b):Oe(k,{shape:P},t,D,null),s.setItemGraphicEl(D,k),k.ignore=z,o.add(k)}}).remove(function(D){var L=l.getItemGraphicEl(D);L&&na(L,t,D)}).execute();var C=this._backgroundGroup||(this._backgroundGroup=new oe);C.removeAll();for(var A=0;A<S.length;++A)C.add(S[A]);o.add(C),this._backgroundEls=S,this._data=s},e.prototype._renderLarge=function(t,n,a){this._clear(),yT(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,n){this._removeBackground(),yT(n,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var n=t.get("clip",!0)&&Ro(t.coordinateSystem,!1,t),a=this.group;n?a.setClipPath(n):a.removeClipPath()},e.prototype._enableRealtimeSort=function(t,n,a){var i=this;if(n.count()){var o=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,t,a),this._isFirstFrame=!1;else{var s=function(l){var u=n.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){i._updateSortWithinSameData(n,s,o,a)},a.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,n,a){var i=[];return t.each(t.mapDimension(n.dim),function(o,s){var l=a(s);l=l??NaN,i.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),i.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:$(i,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(t,n,a){for(var i=a.scale,o=t.mapDimension(a.dim),s=Number.MAX_VALUE,l=0,u=i.getOrdinalMeta().categories.length;l<u;++l){var f=t.rawIndexOf(o,i.getRawOrdinalNumber(l)),v=f<0?Number.MIN_VALUE:n(t.indexOfRawIndex(f));if(v>s)return!0;s=v}return!1},e.prototype._isOrderDifferentInView=function(t,n){for(var a=n.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,n,a,i){if(this._isOrderChangedWithinSameData(t,n,a)){var o=this._dataSort(t,a,n);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,n,a){var i=n.baseAxis,o=this._dataSort(t,i,function(s){return t.get(t.mapDimension(n.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},e.prototype.remove=function(t,n){this._clear(this._model),this._removeOnRenderedListener(n)},e.prototype.dispose=function(t,n){this._removeOnRenderedListener(n)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var n=this.group,a=this._data;t&&t.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){na(i,t,ve(i).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type=In,e})(Ue),fT={cartesian2d:function(r,e){var t=e.width<0?-1:1,n=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height);var a=r.x+r.width,i=r.y+r.height,o=Gg(e.x,r.x),s=Hg(e.x+e.width,a),l=Gg(e.y,r.y),u=Hg(e.y+e.height,i),f=s<o,v=u<l;return e.x=f&&o>a?s:o,e.y=v&&l>i?u:l,e.width=f?0:s-o,e.height=v?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height),f||v},polar:function(r,e){var t=e.r0<=e.r?1:-1;if(t<0){var n=e.r;e.r=e.r0,e.r0=n}var a=Hg(e.r,r.r),i=Gg(e.r0,r.r0);e.r=a,e.r0=i;var o=a-i<0;if(t<0){var n=e.r;e.r=e.r0,e.r0=n}return o}},vT={cartesian2d:function(r,e,t,n,a,i,o,s,l){var u=new be({shape:G({},n),z2:1});if(u.__dataIndex=t,u.name="item",i){var f=u.shape,v=a?"height":"width";f[v]=0}return u},polar:function(r,e,t,n,a,i,o,s,l){var u=!a&&l?Fh:Xt,f=new u({shape:n,z2:1});f.name="item";var v=ak(a);if(f.calculateTextPosition=SY(v,{isRoundCap:u===Fh}),i){var c=f.shape,h=a?"r":"endAngle",d={};c[h]=a?n.r0:n.startAngle,d[h]=n[h],(s?Oe:Ke)(f,{shape:d},i)}return f}};function bY(r,e){var t=r.get("realtimeSort",!0),n=e.getBaseAxis();if(t&&n.type==="category"&&e.type==="cartesian2d")return{baseAxis:n,otherAxis:e.getOtherAxis(n)}}function cT(r,e,t,n,a,i,o,s){var l,u;i?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?Oe:Ke)(t,{shape:l},e,a,null);var f=e?r.baseAxis.model:null;(o?Oe:Ke)(t,{shape:u},f,a)}function hT(r,e){for(var t=0;t<e.length;t++)if(!isFinite(r[e[t]]))return!0;return!1}var CY=["x","y","width","height"],TY=["cx","cy","r","startAngle","endAngle"],dT={cartesian2d:function(r){return!hT(r,CY)},polar:function(r){return!hT(r,TY)}},$v={cartesian2d:function(r,e,t){var n=r.getItemLayout(e);if(!n)return null;var a=t?MY(t,n):0,i=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+i*a/2,y:n.y+o*a/2,width:n.width-i*a,height:n.height-o*a}},polar:function(r,e,t){var n=r.getItemLayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function AY(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function ak(r){return(function(e){var t=e?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+t;default:return n}}})(r)}function pT(r,e,t,n,a,i,o,s){var l=e.getItemVisual(t,"style");if(s){if(!i.get("roundCap")){var f=r.shape,v=Cn(n.getModel("itemStyle"),f,!0);G(f,v),r.setShape(f)}}else{var u=n.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var c=n.getShallow("cursor");c&&r.attr("cursor",c);var h=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?PY(a,i.coordinateSystem):RY(a,i.coordinateSystem),d=St(n);Mt(r,d,{labelFetcher:i,labelDataIndex:t,defaultText:ll(i.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var p=r.getTextContent();if(s&&p){var g=n.get(["label","position"]);r.textConfig.inside=g==="middle"?!0:null,xY(r,g==="outside"?h:g,ak(o),n.get(["label","rotate"]))}k2(p,d,i.getRawValue(t),function(m){return ME(e,m)});var y=n.getModel(["emphasis"]);et(r,y.get("focus"),y.get("blurScope"),y.get("disabled")),_t(r,n),AY(a)&&(r.style.fill="none",r.style.stroke="none",M(r.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function MY(r,e){var t=r.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var n=r.get(["itemStyle","borderWidth"])||0,a=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),i=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(n,a,i)}var DY=(function(){function r(){}return r})(),gT=(function(r){B(e,r);function e(t){var n=r.call(this,t)||this;return n.type="largeBar",n}return e.prototype.getDefaultShape=function(){return new DY},e.prototype.buildPath=function(t,n){for(var a=n.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<a.length;f+=3)l[i]=u,l[o]=a[f+2],s[i]=a[f+i],s[o]=a[f+o],t.rect(s[0],s[1],l[0],l[1])},e})(Ae);function yT(r,e,t,n){var a=r.getData(),i=a.getLayout("valueAxisHorizontal")?1:0,o=a.getLayout("largeDataIndices"),s=a.getLayout("size"),l=r.getModel("backgroundStyle"),u=a.getLayout("largeBackgroundPoints"),f=n?Dn(r):0;if(u){var v=new gT({shape:{points:u},incremental:f,silent:!0,z2:0});v.baseDimIdx=i,v.largeDataIndices=o,v.barWidth=s,v.useStyle(l.getItemStyle()),e.add(v),t&&t.push(v)}var c=new gT({shape:{points:a.getLayout("largePoints")},incremental:f,ignoreCoarsePointer:!0,z2:1});c.baseDimIdx=i,c.largeDataIndices=o,c.barWidth=s,e.add(c),c.useStyle(a.getVisual("style")),c.style.stroke=null,ve(c).seriesIndex=r.seriesIndex,r.get("silent")||(c.on("mousedown",mT),c.on("mousemove",mT)),t&&t.push(c)}var mT=zS(function(r){var e=this,t=IY(e,r.offsetX,r.offsetY);ve(e).dataIndex=t>=0?t:null},30,!1);function IY(r,e,t){for(var n=r.baseDimIdx,a=1-n,i=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,v=i.length/3;f<v;f++){var c=f*3;if(l[n]=u,l[a]=i[c+2],s[n]=i[c+n],s[a]=i[c+a],l[a]<0&&(s[a]+=l[a],l[a]=-l[a]),e>=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[f]}return-1}function ik(r,e,t){if(Eo(t,"cartesian2d")){var n=e,a=t.getArea();return{x:r?n.x:a.x,y:r?a.y:n.y,width:r?n.width:a.width,height:r?a.height:n.height}}else{var a=t.getArea(),i=e;return{cx:a.cx,cy:a.cy,r0:r?a.r0:i.r0,r:r?a.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function LY(r,e,t){var n=r.type==="polar"?Xt:be;return new n({shape:ik(e,t,r),silent:!0,z2:0})}function PY(r,e){if(r.height===0){var t=e.getOtherAxis(e.getBaseAxis());return t.inverse?"bottom":"top"}return r.height>0?"bottom":"top"}function RY(r,e){if(r.width===0){var t=e.getOtherAxis(e.getBaseAxis());return t.inverse?"left":"right"}return r.width>=0?"right":"left"}function EY(r){r.registerChartView(wY),r.registerSeriesModel(mY),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,ek(In)),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,tk(In)),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,VE(In)),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},function(a){e.sortInfo&&a.axis.setCategorySortInfo(e.sortInfo)})}),nk(r)}function Jf(r){return{seriesType:r,reset:function(e,t){var n=t.findComponents({mainType:"legend"});if(!(!n||!n.length)){var a=e.getData();a.filterSelf(function(i){for(var o=a.getName(i),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}function Rl(r,e,t){e=U(e)&&{coordDimensions:e}||G({encodeDefine:r.getEncode()},e);var n=r.getSource(),a=Hf(n,e).dimensions,i=new nr(a,r);return i.initData(n,t),i}var El=(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 n=this._getDataWithEncodedVisual();return n.getItemVisual(e,t)},r})(),ei="pie",kY=me(),ok=(function(r){B(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 El(q(this.getData,this),q(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return Rl(this,{coordDimensions:["value"],encodeDefaulter:xe(PS,this)})},e.prototype.getDataParams=function(t){var n=this.getData(),a=kY(n),i=a.seats;if(!i){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),i=a.seats=qz(o,n.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){So(t,"labelLine",["show"]);var n=t.labelLine,a=t.emphasis.labelLine;n.show=n.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.type="series."+ei,e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e})(je);$G({fullType:ok.type,getCoord2:function(r){return r.getShallow("center")}});var OY=Math.PI/180;function _T(r,e,t,n,a,i,o,s,l,u){if(r.length<2)return;function f(p){for(var g=p.rB,y=g*g,m=0;m<p.list.length;m++){var _=p.list[m],S=Math.abs(_.label.y-t),x=n+_.len,w=x*x,b=Math.sqrt(Math.abs((1-S*S/y)*w)),T=e+(b+_.len2)*a,C=T-_.label.x,A=_.targetTextWidth-C*a;sk(_,A,!0),_.label.x=T}}function v(p){for(var g={list:[],maxY:0},y={list:[],maxY:0},m=0;m<p.length;m++)if(p[m].labelAlignTo==="none"){var _=p[m],S=_.label.y>t?y:g,x=Math.abs(_.label.y-t);if(x>=S.maxY){var w=_.label.x-e-_.len2*a,b=n+_.len,T=Math.abs(w)<b?Math.sqrt(x*x/(1-w*w/b/b)):b;S.rB=T,S.maxY=x}S.list.push(_)}f(g),f(y)}for(var c=r.length,h=0;h<c;h++)if(r[h].position==="outer"&&r[h].labelAlignTo==="labelLine"){var d=r[h].label.x-u;r[h].linePoints[1][0]+=d,r[h].label.x=u}O0(r,1,l,l+o)&&v(r)}function NY(r,e,t,n,a,i,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,v=-Number.MAX_VALUE,c=0;c<r.length;c++){var h=r[c].label;Ug(r[c])||(h.x<e?(f=Math.min(f,h.x),l.push(r[c])):(v=Math.max(v,h.x),u.push(r[c])))}for(var c=0;c<r.length;c++){var d=r[c];if(!Ug(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var h=d.label,p=d.linePoints,g=void 0;d.labelAlignTo==="edge"?h.x<e?g=p[2][0]-d.labelDistance-o-d.edgeDistance:g=o+a-d.edgeDistance-p[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?h.x<e?g=f-o-d.bleedMargin:g=o+a-v-d.bleedMargin:h.x<e?g=h.x-o-d.bleedMargin:g=o+a-h.x-d.bleedMargin,d.targetTextWidth=g,sk(d,g,!1)}}_T(u,e,t,n,1,a,i,o,s,v),_T(l,e,t,n,-1,a,i,o,s,f);for(var c=0;c<r.length;c++){var d=r[c];if(!Ug(d)&&d.linePoints){var h=d.label,p=d.linePoints,y=d.labelAlignTo==="edge",m=h.style.padding,_=m?m[1]+m[3]:0,S=h.style.backgroundColor?0:_,x=d.rect.width+S,w=p[1][0]-p[2][0];y?h.x<e?p[2][0]=o+d.edgeDistance+x+d.labelDistance:p[2][0]=o+a-d.edgeDistance-x-d.labelDistance:(h.x<e?p[2][0]=h.x+d.labelDistance:p[2][0]=h.x-d.labelDistance,p[1][0]=p[2][0]+w),p[1][1]=p[2][1]=h.y}}}function sk(r,e,t){if(r.labelStyleWidth==null){var n=r.label,a=n.style,i=r.rect,o=a.backgroundColor,s=a.padding,l=s?s[1]+s[3]:0,u=a.overflow,f=i.width+(o?0:l);if(e<f||t){if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",e-l);var v=n.getBoundingRect();n.setStyle("width",Math.ceil(v.width)),n.setStyle("backgroundColor",o)}else{var c=e-l,h=e<f?c:t?c>r.unconstrainedWidth?null:c:null;n.setStyle("width",h)}lk(i,n)}}}function lk(r,e){ST.rect=r,sE(ST,e,BY)}var BY={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},ST={};function Ug(r){return r.position==="center"}function VY(r){var e=r.getData(),t=[],n,a,i=!1,o=(r.get("minShowLabelAngle")||0)*OY,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,f=s.x,v=s.y,c=s.height;function h(w){w.ignore=!0}function d(w){if(!w.ignore)return!0;for(var b in w.states)if(w.states[b].ignore===!1)return!0;return!1}e.each(function(w){var b=e.getItemGraphicEl(w),T=b.shape,C=b.getTextContent(),A=b.getTextGuideLine(),D=e.getItemModel(w),L=D.getModel("label"),I=L.get("position")||D.get(["emphasis","label","position"]),P=L.get("distanceToLabelLine"),R=L.get("alignTo"),E=j(L.get("edgeDistance"),u),O=L.get("bleedMargin");O==null&&(O=Math.min(u,c)>200?10:2);var k=D.getModel("labelLine"),z=k.get("length");z=j(z,u);var F=k.get("length2");if(F=j(F,u),Math.abs(T.endAngle-T.startAngle)<o){M(C.states,h),C.ignore=!0,A&&(M(A.states,h),A.ignore=!0);return}if(d(C)){var H=(T.startAngle+T.endAngle)/2,W=Math.cos(H),X=Math.sin(H),Y,ee,ye,Ne;n=T.cx,a=T.cy;var ce=I==="inside"||I==="inner";if(I==="center")Y=T.cx,ee=T.cy,Ne="center";else{var te=(ce?(T.r+T.r0)/2*W:T.r*W)+n,ge=(ce?(T.r+T.r0)/2*X:T.r*X)+a;if(Y=te+W*3,ee=ge+X*3,!ce){var re=te+W*(z+l-T.r),he=ge+X*(z+l-T.r),$e=re+(W<0?-1:1)*F,Pe=he;R==="edge"?Y=W<0?f+E:f+u-E:Y=$e+(W<0?-P:P),ee=Pe,ye=[[te,ge],[re,he],[$e,Pe]]}Ne=ce?"center":R==="edge"?W>0?"right":"left":W>0?"left":"right"}var Ge=Math.PI,We=0,ct=L.get("rotate");if(Ee(ct))We=ct*(Ge/180);else if(I==="center")We=0;else if(ct==="radial"||ct===!0){var pr=W<0?-H+Ge:-H;We=pr}else if(ct==="tangential"||ct==="tangential-noflip"&&I!=="outside"&&I!=="outer"){var sr=Math.atan2(W,X);sr<0&&(sr=Ge*2+sr);var gi=X>0;gi&&ct!=="tangential-noflip"&&(sr=Ge+sr),We=sr-Ge}if(i=!!We,C.x=Y,C.y=ee,C.rotation=We,C.setStyle({verticalAlign:"middle"}),ce){C.setStyle({align:Ne});var dp=C.states.select;dp&&(dp.x+=C.x,dp.y+=C.y)}else{var rs=new se(0,0,0,0);lk(rs,C),t.push({label:C,labelLine:A,position:I,len:z,len2:F,minTurnAngle:k.get("minTurnAngle"),maxSurfaceAngle:k.get("maxSurfaceAngle"),surfaceNormal:new ue(W,X),linePoints:ye,textAlign:Ne,labelDistance:P,labelAlignTo:R,edgeDistance:E,bleedMargin:O,rect:rs,unconstrainedWidth:rs.width,labelStyleWidth:C.style.width})}b.setTextConfig({inside:ce})}}),!i&&r.get("avoidLabelOverlap")&&NY(t,n,a,l,u,c,f,v);for(var p=0;p<t.length;p++){var g=t[p],y=g.label,m=g.labelLine,_=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:g.textAlign}),_&&(M(y.states,h),y.ignore=!0);var S=y.states.select;S&&(S.x+=y.x,S.y+=y.y)}if(m){var x=g.linePoints;_||!x?(M(m.states,h),m.ignore=!0):(aE(x,g.minTurnAngle),S$(x,g.surfaceNormal,g.maxSurfaceAngle),m.setShape({points:x}),y.__hostTarget.textGuideLineConfig={anchor:new ue(x[0][0],x[0][1])})}}}var xT=Math.PI*2,Wv=Math.PI/180,zY=wt(ei,FY);function FY(r,e){r.eachSeriesByType(ei,function(t){var n=t.getData(),a=n.mapDimension("value"),i=oP(t,e),o=i.cx,s=i.cy,l=i.r,u=i.r0,f=i.viewRect,v=-t.get("startAngle")*Wv,c=t.get("endAngle"),h=t.get("padAngle")*Wv;c=c==="auto"?v-xT:-c*Wv;var d=t.get("minAngle")*Wv,p=d+h,g=0;n.each(a,function(E){!isNaN(E)&&g++});var y=n.getSum(a),m=Math.PI/(y||g)*2,_=t.get("clockwise"),S=t.get("roseType"),x=t.get("stillShowZeroSum"),w=n.getDataExtent(a);w[0]=0;var b=_?1:-1,T=[v,c],C=b*h/2;Ld(T,!_),v=T[0],c=T[1];var A=uk(t);A.startAngle=v,A.endAngle=c,A.clockwise=_,A.cx=o,A.cy=s,A.r=l,A.r0=u;var D=Math.abs(c-v),L=D,I=0,P=v;if(n.setLayout({viewRect:f,r:l}),n.each(a,function(E,O){var k;if(isNaN(E)){n.setItemLayout(O,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:o,cy:s,r0:u,r:S?NaN:l});return}S!=="area"?k=y===0&&x?m:E*m:k=D/g,k<p?(k=p,L-=p):I+=E;var z=P+b*k,F=0,H=0;h>k?(F=P+b*k/2,H=F):(F=P+C,H=z-C),n.setItemLayout(O,{angle:k,startAngle:F,endAngle:H,clockwise:_,cx:o,cy:s,r0:u,r:S?Be(E,w,[u,l]):l}),P=z}),L<xT&&g)if(L<=.001){var R=D/g;n.each(a,function(E,O){if(!isNaN(E)){var k=n.getItemLayout(O);k.angle=R;var z=0,F=0;R<h?(z=v+b*(O+1/2)*R,F=z):(z=v+b*O*R+C,F=v+b*(O+1)*R-C),k.startAngle=z,k.endAngle=F}})}else m=L/I,P=v,n.each(a,function(E,O){if(!isNaN(E)){var k=n.getItemLayout(O),z=k.angle===p?p:E*m,F=0,H=0;z<h?(F=P+b*z/2,H=F):(F=P+C,H=P+b*z-C),k.startAngle=F,k.endAngle=H,P+=b*z}})})}var uk=me(),GY=(function(r){B(e,r);function e(t,n,a){var i=r.call(this)||this;i.z2=2;var o=new Re;return i.setTextContent(o),i.updateData(t,n,a,!0),i}return e.prototype.updateData=function(t,n,a,i){var o=this,s=t.hostModel,l=t.getItemModel(n),u=l.getModel("emphasis"),f=t.getItemLayout(n),v=G(Cn(l.getModel("itemStyle"),f,!0),f);if(isNaN(v.startAngle)){o.setShape(v);return}if(i){o.setShape(v);var c=s.getShallow("animationType");s.ecModel.ssr?(Ke(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=v.cx,o.originY=v.cy):c==="scale"?(o.shape.r=f.r0,Ke(o,{shape:{r:f.r}},s,n)):a!=null?(o.setShape({startAngle:a,endAngle:a}),Ke(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,n)):(o.shape.endAngle=f.startAngle,Oe(o,{shape:{endAngle:f.endAngle}},s,n))}else $r(o),Oe(o,{shape:v},s,n);o.useStyle(t.getItemVisual(n,"style")),_t(o,l);var h=(f.startAngle+f.endAngle)/2,d=s.get("selectedOffset"),p=Math.cos(h)*d,g=Math.sin(h)*d,y=l.getShallow("cursor");y&&o.attr("cursor",y),this._updateLabel(s,t,n),o.ensureState("emphasis").shape=G({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},Cn(u.getModel("itemStyle"),f)),G(o.ensureState("select"),{x:p,y:g,shape:Cn(l.getModel(["select","itemStyle"]),f)}),G(o.ensureState("blur"),{shape:Cn(l.getModel(["blur","itemStyle"]),f)});var m=o.getTextGuideLine(),_=o.getTextContent();m&&G(m.ensureState("select"),{x:p,y:g}),G(_.ensureState("select"),{x:p,y:g}),et(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,n,a){var i=this,o=n.getItemModel(a),s=o.getModel("labelLine"),l=n.getItemVisual(a,"style"),u=l&&l.fill,f=l&&l.opacity;Mt(i,St(o),{labelFetcher:n.hostModel,labelDataIndex:a,inheritColor:u,defaultOpacity:f,defaultText:t.getFormattedLabel(a,"normal")||n.getName(a)});var v=i.getTextContent();i.setTextConfig({position:null,rotation:null}),v.attr({z2:10});var c=o.get(["label","position"]);if(c!=="outside"&&c!=="outer")i.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new Bt,this.setTextGuideLine(h)),a1(this,i1(o),{stroke:u,opacity:xr(s.get(["lineStyle","opacity"]),f,1)})}},e})(Xt),HY=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=ei,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,n,a,i){var o=t.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),v=1;isNaN(f&&f.startAngle)&&v<o.count();++v)f=o.getItemLayout(v);f&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&t.get("showEmptyCircle")){var c=uk(t),h=new Xt({shape:ae(c)});h.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,l.add(h)}o.diff(s).add(function(d){var p=new GY(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);na(p,t,d)}).execute(),VY(t),t.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,n){var a=n.getData(),i=a.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=ei,e})(Ue);function UY(r){return{seriesType:r,reset:function(e,t){var n=e.getData();n.filterSelf(function(a){var i=n.mapDimension("value"),o=n.get(i,a);return!(Ee(o)&&!isNaN(o)&&o<0)})}}}function $Y(r){r.registerChartView(HY),r.registerSeriesModel(ok),KP(ei,r.registerAction),r.registerLayout(zY),r.registerProcessor(Jf(ei)),r.registerProcessor(UY(ei))}var WY=(function(r){B(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,n){return wa(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,n,a){return a.point(n.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","matrix"],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:N.color.primary}},universalTransition:{divideShape:"clone"}},e})(je),fk=4,YY=(function(){function r(){}return r})(),XY=(function(r){B(e,r);function e(t){var n=r.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return e.prototype.getDefaultShape=function(){return new YY},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.beforeBrush=function(t){t&&!t.contentRetained&&this.reset()},e.prototype.buildPath=function(t,n){var a=n.points,i=n.size,o=this.symbolProxy,s=o.shape,l=t.getContext?t.getContext():t,u=l&&i[0]<fk,f=this.softClipShape,v;if(u){this._ctx=l;return}for(this._ctx=null,v=this._off;v<a.length;){var c=a[v++],h=a[v++];isNaN(c)||isNaN(h)||f&&!f.contain(c,h)||(s.x=c-i[0]/2,s.y=h-i[1]/2,s.width=i[0],s.height=i[1],o.buildPath(t,s,!0))}this.incremental&&(this._off=v,this.notClear=!0)},e.prototype.afterBrush=function(){var t=this.shape,n=t.points,a=t.size,i=this._ctx,o=this.softClipShape,s;if(i){for(s=this._off;s<n.length;){var l=n[s++],u=n[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||i.fillRect(l-a[0]/2,u-a[1]/2,a[0],a[1])}this.incremental&&(this._off=s,this.notClear=!0)}},e.prototype.findDataIndex=function(t,n){for(var a=this.shape,i=a.points,o=a.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=i.length/2-1;u>=0;u--){var f=u*2,v=i[f]-s/2,c=i[f+1]-l/2;if(t>=v&&n>=c&&t<=v+s&&n<=c+l)return u}return-1},e.prototype.contain=function(t,n){var a=this.transformCoordToLocal(t,n),i=this.getBoundingRect();if(t=a[0],n=a[1],i.contain(t,n)){var o=this.hoverDataIdx=this.findDataIndex(t,n);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var n=this.shape,a=n.points,i=n.size,o=i[0],s=i[1],l=1/0,u=1/0,f=-1/0,v=-1/0,c=0;c<a.length;){var h=a[c++],d=a[c++];l=Math.min(h,l),f=Math.max(h,f),u=Math.min(d,u),v=Math.max(d,v)}t=this._rect=new se(l-o/2,u-s/2,f-l+o,v-u+s)}return t},e})(Ae),ZY=(function(){function r(){this.group=new oe}return r.prototype.updateData=function(e,t){this._clear(),this._data=e;var n=this._create();n.setShape({points:e.getLayout("points")}),this._setCommon(n,e,t)},r.prototype.updateLayout=function(e){var t=this._data;if(t){var n=t.getLayout("points");this.group.eachChild(function(a){if(a.startIndex!=null){var i=(a.endIndex-a.startIndex)*2,o=a.startIndex*4*2;n=new Float32Array(n.buffer,o,i)}a.setShape("points",n),a.reset(),a.stopAnimation()})}},r.prototype.incrementalPrepareUpdate=function(e){this._clear()},r.prototype.incrementalUpdate=function(e,t,n,a){var i=this._newAdded[0],o=t.getLayout("points"),s=i&&i.shape.points;if(s&&s.length<2e4){var l=s.length,u=new Float32Array(l+o.length);u.set(s),u.set(o,l),i.endIndex=e.end,i.setShape({points:u})}else{this._newAdded=[];var f=this._create();f.startIndex=e.start,f.endIndex=e.end,f.incremental=n,f.setShape({points:o}),this._setCommon(f,t,a)}},r.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},r.prototype._create=function(){var e=new XY({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},r.prototype._setCommon=function(e,t,n){var a=t.hostModel;n=n||{};var i=t.getVisual("symbolSize");e.setShape("size",i instanceof Array?i:[i,i]),e.softClipShape=n.clipShape||null,e.symbolProxy=gt(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<fk;e.useStyle(a.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=t.getVisual("style"),l=s&&s.fill;l&&e.setColor(l);var u=ve(e);u.seriesIndex=a.seriesIndex,e.on("mousemove",function(f){u.dataIndex=null;var v=e.hoverDataIdx;v>=0&&(u.dataIndex=v+(e.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r})(),jY=(function(r){B(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,n,a){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.updateData(i,$g(t)),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,n,a){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,n,a){this._symbolDraw.incrementalUpdate(t,n.getData(),Dn(n),$g(n)),this._finished=t.end===n.getData().count()},e.prototype.updateTransform=function(t,n,a){var i=t.getData();if(this.group.dirty(),this._finished){var o=qf("").reset(t,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout($g(t))}else return{update:!0}},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._updateSymbolDraw=function(t,n){var a=this._symbolDraw,i=n.pipelineContext,o=i.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new ZY:new jf,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},e.prototype.remove=function(t,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e})(Ue);function $g(r){return{clipShape:kE(r)}}var $0=(function(r){B(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",at).models[0]},e.type="cartesian2dAxis",e})(Me);xt($0,Xf);var vk={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:"auto",onZeroAxisIndex:null,lineStyle:{color:N.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:N.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:N.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[N.color.backgroundTint,N.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:N.color.neutral00,borderColor:N.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},qY=_e({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},vk),y1=_e({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:N.color.axisMinorSplitLine,width:1}}},vk),KY=_e({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},y1),JY=le({logBase:10},y1);const ck={category:qY,value:y1,time:KY,log:JY};function ul(r,e,t,n){M(OR,function(a,i){var o=_e(_e({},ck[i],!0),n,!0),s=(function(l){B(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=e+"Axis."+i,f}return u.prototype.mergeDefaultAndTheme=function(f,v){var c=tf(this),h=c?jo(f):{},d=v.getTheme();_e(f,d.get(i+"Axis")),_e(f,this.getDefaultOption()),f.type=wT(f),c&&zn(f,h,c)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=of.createByAxisModel(this))},u.prototype.getCategories=function(f){var v=this.option;if(v.type==="category")return f?v.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(f){var v=Kf();return v?v.updateModelAxisBreak(this,f):{breaks:[]}},u.type=e+"Axis."+i,u.defaultOption=o,u})(t);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(e+"Axis",wT)}function wT(r){return r.type||(r.data?"category":"value")}var QY=(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 $(this._dimList,function(e){return this._axes[e]},this)},r.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Fe(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})(),Uc=["x","y"];function bT(r){return(r.type==="interval"||r.type==="time")&&!yh(r)}var e6=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=en,t.dimensions=Uc,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!bT(t)||!bT(n))){var a=Mh(t,null),i=Mh(n,null),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),l=a[1]-a[0],u=i[1]-i[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,v=(s[1]-o[1])/u,c=o[0]-a[0]*f,h=o[1]-i[0]*v,d=this._transform=[f,0,0,v,c,h];this._invTransform=Gr([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var n=this.getAxis("x"),a=this.getAxis("y");return n.contain(n.toLocalCoord(t[0]))&&a.contain(a.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,n){var a=this.dataToPoint(t),i=this.dataToPoint(n),o=this.getArea(),s=new se(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,n,a){a=a||[];var i=t[0],o=t[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return st(a,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,n)),a[1]=l.toGlobalCoord(l.dataToCoord(o,n)),a},e.prototype.clampData=function(t,n){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),l=a.parse(t[0]),u=i.parse(t[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},e.prototype.pointToData=function(t,n,a){if(a=a||[],this._invTransform)return st(a,t,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(t[0]),n),a[1]=o.coordToData(o.toLocalCoord(t[1]),n),a},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(t){t=t||0;var n=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),i=Math.min(n[0],n[1])-t,o=Math.min(a[0],a[1])-t,s=Math.max(n[0],n[1])-i+t,l=Math.max(a[0],a[1])-o+t;return new se(i,o,s,l)},e})(QY);function hk(r,e){var t=r.scale,n=r.model,a=XR(t,n,n.ecModel,r),i=al(t),o=al(e)?e.intervalStub:e,s=i?t.intervalStub:t,l=t.base,u=o.getTicks(),f=o.getTicks({expandToNicedExtent:!0}),v=u.length-1,c,h,d;if(v===1)c=h=0,d=1;else if(v===2){var p=it(u[0].value-u[1].value),g=it(u[1].value-u[2].value);c=h=0,p===g?d=2:(d=1,p<g?c=p/g:h=g/p)}else{var y=o.getConfig().interval;c=(1-(u[0].value-f[0].value)/y)%1,h=(1-(f[v].value-u[v].value)/y)%1,d=v-(c?1:0)-(h?1:0)}var m=a.zoomFixMM,_=m[0]||m[1],S=[a.fixMM[0]||_,a.fixMM[1]||_],x=t.getExtent(),w=s.getExtent(),b=LR(w,S),T,C,A,D,L,I;function P(W){for(var X=50,Y=0;Y<X&&!W();Y++)A=i?A*we(l,2):iU(A),D=Do(A)}function R(){T=ke(I-A*c,D)}function E(){C=ke(L+A*h,D)}function O(){I=c?ke(T+A*c,D):T}function k(){L=h?ke(C-A*h,D):C}if(S[0]&&S[1]){T=b[0],C=b[1],A=(C-T)/(d+c+h);var z=r.getExtent(),F=it(z[1]-z[0]);D=J_([C,T],F,.5/d),O(),k(),Hr(D)&&(A=ke(A,D))}else{var H=b[1]-b[0];A=i?we(ML(H),1):eS(H/d,DL),D=Do(A),S[0]?(T=b[0],P(function(){if(O(),L=ke(I+A*d,D),E(),C>=b[1])return!0})):S[1]?(C=b[1],P(function(){if(k(),I=ke(L-A*d,D),R(),T<=b[0])return!0})):P(function(){I=ke(Uo(b[0]/A)*A,D),L=ke(rn(b[1]/A)*A,D);var W=va((L-I)/A);if(W<=d){var X=d-W,Y=void 0,ee=a.incl0||i;if(ee&&b[0]===0)Y=[0,X];else if(ee&&b[1]===0)Y=[X,0];else{var ye=rn(X/2);Y=X%2===0?[ye,ye]:T+C<b[0]+b[1]?[ye,ye+1]:[ye+1,ye]}if(I=ke(I-A*Y[0],D),L=ke(L+A*Y[1],D),R(),E(),T<=b[0]&&C>=b[1])return!0}})}VR(t,S,w,[T,C],x,{interval:A,intervalCount:d,intervalPrecision:D,niceExtent:[I,L]})}var CT=[[3,1],[0,2]],t6=(function(){function r(e,t,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Uc,this._initCartesian(e,t,n),this.model=e}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(e,t){var n=this._axesMap;M(this._axesList,function(o){Po(o,ol);var s=o.scale;jt(s)&&s.setSortInfo(o.model.get("categorySortInfo"))});function a(o){for(var s=De(o),l=[],u=s.length-1;u>=0;u--){var f=o[+s[u]];f.__alignTo?l.push(f):sl(f)}M(l,function(v){n6(v,v.__alignTo)?sl(v):hk(v,v.__alignTo.scale)})}a(n.x),a(n.y);var i={};M(n.x,function(o){TT(n,"y",o,i)}),M(n.y,function(o){TT(n,"x",o,i)}),this.resize(this.model,t)},r.prototype.resize=function(e,t,n){var a=bt(e,t),i=this._rect=tt(e.getBoxLayoutParams(),a.refContainer),o=this._axesMap,s=this._coordsList,l=e.get("containLabel");if(W0(o,i),!n){var u=o6(i,s,o,l,t),f=void 0;if(l)Y0?(Y0(this._axesList,i),W0(o,i)):f=IT(i.clone(),"axisLabel",null,i,o,u,a);else{var v=s6(e,i,a),c=v.outerBoundsRect,h=v.parsedOuterBoundsContain,d=v.outerBoundsClamp;c&&(f=IT(c,h,d,i,o,u,a))}dk(i,o,nn.determine,null,f,a),M(this._coordsList,function(p){p.calcAffineTransform()})}},r.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(n!=null)return n[t||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var n="x"+e+"y"+t;return this._coordsMap[n]}fe(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var a=0,i=this._coordsList;a<i.length;a++)if(i[a].getAxis("x").index===e||i[a].getAxis("y").index===t)return i[a]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(e,t,n){var a=this._findConvertTarget(t);return a.cartesian?a.cartesian.dataToPoint(n):a.axis?a.axis.toGlobalCoord(a.axis.dataToCoord(n)):null},r.prototype.convertFromPixel=function(e,t,n){var a=this._findConvertTarget(t);return a.cartesian?a.cartesian.pointToData(n):a.axis?a.axis.coordToData(a.axis.toLocalCoord(n)):null},r.prototype._findConvertTarget=function(e){var t=e.seriesModel,n=e.xAxisModel||t&&t.getReferringComponents("xAxis",at).models[0],a=e.yAxisModel||t&&t.getReferringComponents("yAxis",at).models[0],i=e.gridModel,o=this._coordsList,s,l;if(t)s=t.coordinateSystem,pe(o,s)<0&&(s=null);else if(n&&a)s=this.getCartesian(n.componentIndex,a.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(a)l=this.getAxis("y",a.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,n){var a=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,M(s.x,function(f,v){M(s.y,function(c,h){var d="x"+v+"y"+h,p=new e6(d);p.master=a,p.model=e,a._coordsMap[d]=p,a._coordsList.push(p),p.addAxis(f),p.addAxis(c)})}),MT(s.x),MT(s.y);function u(f){return function(v,c){if(r6(v,e)){var h=v.get("position");f==="x"?h!=="top"&&h!=="bottom"&&(h=o.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=o.left?"right":"left"),o[h]=!0;var d=jd(v),p=new zE(f,$f(v,d,!0),[0,0],d,h);p.onBand=Yf(p.scale,v),p.inverse=v.get("inverse"),v.axis=p,p.model=v,p.grid=i,p.index=c,i._axesList.push(p),s[f][c]=p,l[f]++}}}},r.prototype.getTooltipAxes=function(e){var t=[],n=[];return M(this.getCartesians(),function(a){var i=e!=null&&e!=="auto"?a.getAxis(e):a.getBaseAxis(),o=a.getOtherAxis(i);pe(t,i)<0&&t.push(i),pe(n,o)<0&&n.push(o)}),{baseAxes:t,otherAxes:n}},r.create=function(e,t){var n=[];return e.eachComponent("grid",function(a,i){var o=new r(a,e,t);o.name="grid_"+i,o.resize(a,t,!0),a.coordinateSystem=o,n.push(o),M(o._axesList,function(s){VU(s,r.dimIdxMap)})}),e.eachSeries(function(a){var i,o;Ff({targetModel:a,coordSysType:en,coordSysProvider:s});function s(){var l=oY(a),u=l.xAxisModel,f=l.yAxisModel;i=u.axis,o=f.axis;var v=u.getCoordSysModel(),c=v.coordinateSystem;return c.getCartesian(u.componentIndex,f.componentIndex)}i&&o&&(Lo(i,a,en),Lo(o,a,en))},this),n},r.dimensions=Uc,r.dimIdxMap=ZS(Uc),r})();function r6(r,e){return r.getCoordSysModel()===e}function TT(r,e,t,n){t.getAxesOnZeroOf=function(){return i?[i]:[]};var a=r[e],i,o=t.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)AT(s,a[l])&&(i=a[l]);else for(var u in a)if(J(a,u)&&AT(s,a[u])&&!n[f(a[u])]){i=a[u];break}i&&(n[f(i)]=!0);function f(v){return v.dim+"_"+v.index}}function AT(r,e){if(!e)return!1;var t=e.scale,n=yU(t,0),a=e&&e.type!=="category"&&e.type!=="time"&&n!==I0;return a&&r==="auto"&&xU(e)&&(a=!1),a}function MT(r){for(var e=De(r),t,n=[],a=e.length-1;a>=0;a--){var i=r[+e[a]];IR(i.scale)&&BR(i.model,i.type,!0)==null&&(i.model.get("alignTicks")&&i.model.get("interval")==null?n.push(i):t=i)}t||(t=n.pop()),t&&M(n,function(o){o.__alignTo=t})}function n6(r,e){return yh(r.scale)||yh(e.scale)||e.scale.getTicks().length<2}function a6(r,e){var t=r.getExtent(),n=t[0]+t[1];r.toGlobalCoord=r.dim==="x"?function(a){return a+e}:function(a){return n-a+e},r.toLocalCoord=r.dim==="x"?function(a){return a-e}:function(a){return n-a+e}}function W0(r,e){M(r.x,function(t){return DT(t,e.x,e.width)}),M(r.y,function(t){return DT(t,e.y,e.height)})}function DT(r,e,t){var n=[0,t],a=r.inverse?1:0;r.setExtent(n[a],n[1-a]),a6(r,e)}var Y0;function i6(r){Y0=r}function IT(r,e,t,n,a,i,o){dk(n,a,nn.estimate,e,!1,o);var s=[0,0,0,0];u(0),u(1),f(n,0,NaN),f(n,1,NaN);var l=ci(s,function(c){return c>0})==null;return To(n,s,!0,!0,t),W0(a,n),l;function u(c){M(a[de[c]],function(h){if(ff(h.model)){var d=i.ensureRecord(h.model),p=d.labelInfoList;if(p)for(var g=0;g<p.length;g++){var y=p[g],m=h.scale.normalize(Ll(h.scale,ko(y.label).labelInfo.tick));m=c===1?1-m:m,f(y.rect,c,m),f(y.rect,1-c,NaN)}var _=d.nameLayout;if(_){var m=il(d.nameLocation)?.5:NaN;f(_.rect,c,m),f(_.rect,1-c,NaN)}}})}function f(c,h,d){var p=r[de[h]]-c[de[h]],g=c[lt[h]]+c[de[h]]-(r[lt[h]]+r[de[h]]);p=v(p,1-d),g=v(g,d);var y=CT[h][0],m=CT[h][1];s[y]=we(s[y],p),s[m]=we(s[m],g)}function v(c,h){return c>0&&!$t(h)&&h>1e-4&&(c/=h),c}}function o6(r,e,t,n,a){var i=new UE(l6);return M(t,function(o){return M(o,function(s){if(ff(s.model)){var l=!n;s.axisBuilder=sY(r,e,s.model,a,i,l)}})}),i}function dk(r,e,t,n,a,i){var o=t===nn.determine;M(e,function(u){return M(u,function(f){ff(f.model)&&(lY(f.axisBuilder,r,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:a}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[de[1-u]]=r[lt[u]]<=i.refContainer[lt[u]]*.5?0:1-u===1?2:1}M(e,function(u,f){return M(u,function(v){ff(v.model)&&((n==="all"||o)&&v.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&v.axisBuilder.build({axisLine:!0}))})})}function s6(r,e,t){var n,a=r.get("outerBoundsMode",!0);a==="same"?n=e.clone():(a==null||a==="auto")&&(n=tt(r.get("outerBounds",!0)||KE,t.refContainer));var i=r.get("outerBoundsContain",!0),o;i==null||i==="auto"||pe(["all","axisLabel"],i)<0?o="all":o=i;var s=[sh(Q(r.get("outerBoundsClampWidth",!0),zh[0]),e.width),sh(Q(r.get("outerBoundsClampHeight",!0),zh[1]),e.height)];return{outerBoundsRect:n,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var l6=function(r,e,t,n,a,i){var o=t.axis.dim==="x"?"y":"x";$E(r,e,t,n,a,i),il(r.nameLocation)||M(e.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&YE(s.labelInfoList,s.dirVec,n,a)})};function u6(r,e){var t={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return f6(t,r,e),t.seriesInvolved&&c6(t,r),t}function f6(r,e,t){var n=e.getComponent("tooltip"),a=e.getComponent("axisPointer"),i=a.get("link",!0)||[],o=[];M(t.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=mf(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var f=s.model,v=f.getModel("tooltip",n);if(M(s.getAxes(),xe(p,!1,null)),s.getTooltipAxes&&n&&v.get("show")){var c=v.get("trigger")==="axis",h=v.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(v.get(["axisPointer","axis"]));(c||h)&&M(d.baseAxes,xe(p,h?"cross":!0,c)),h&&M(d.otherAxes,xe(p,"cross",!1))}function p(g,y,m){var _=m.model.getModel("axisPointer",a),S=_.get("show");if(!(!S||S==="auto"&&!g&&!X0(_))){y==null&&(y=_.get("triggerTooltip")),_=g?v6(m,v,a,e,g,y):_;var x=_.get("snap"),w=_.get("triggerEmphasis"),b=mf(m.model),T=y||x||m.type==="category",C=r.axesInfo[b]={key:b,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:y,triggerEmphasis:w,involveSeries:T,snap:x,useHandle:X0(_),seriesModels:[],linkGroup:null};u[b]=C,r.seriesInvolved=r.seriesInvolved||T;var A=h6(i,m);if(A!=null){var D=o[A]||(o[A]={axesInfo:{}});D.axesInfo[b]=C,D.mapper=i[A].mapper,C.linkGroup=D}}}})}function v6(r,e,t,n,a,i){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};M(s,function(c){l[c]=ae(o.get(c))}),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),a==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!i){var v=l.lineStyle=o.get("crossStyle");v&&le(u,v.textStyle)}}return r.model.getModel("axisPointer",new Ie(l,t,n))}function c6(r,e){e.eachSeries(function(t){var n=t.coordinateSystem,a=t.get(["tooltip","trigger"],!0),i=t.get(["tooltip","show"],!0);!n||!n.model||a==="none"||a===!1||a==="item"||i===!1||t.get(["axisPointer","show"],!0)===!1||M(r.coordSysAxesInfo[mf(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(t),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=t.getData().count())})})}function h6(r,e){for(var t=e.model,n=e.dim,a=0;a<r.length;a++){var i=r[a]||{};if(Wg(i[n+"AxisId"],t.id)||Wg(i[n+"AxisIndex"],t.componentIndex)||Wg(i[n+"AxisName"],t.name))return a}}function Wg(r,e){return r==="all"||U(r)&&pe(r,e)>=0||r===e}function d6(r){var e=m1(r);if(e){var t=e.axisPointerModel,n=e.axis.scale,a=t.option,i=t.get("status"),o=t.get("value");o!=null&&(o=n.parse(o));var s=X0(t);i==null&&(a.status=s?"show":"hide");var l=n.getExtent();(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),a.value=o,s&&(a.status=e.axis.scale.isBlank()?"hide":"show")}}function m1(r){var e=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[mf(r)]}function p6(r){var e=m1(r);return e&&e.axisPointerModel}function X0(r){return!!r.get(["handle","show"])}function mf(r){return r.type+"||"+r.id}var LT={},es=(function(r){B(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,n,a,i){this.axisPointerClass&&d6(t),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,a,!0)},e.prototype.updateAxisPointer=function(t,n,a,i){this._doUpdateAxisPointerClass(t,a,!1)},e.prototype.remove=function(t,n){var a=this._axisPointer;a&&a.remove(n)},e.prototype.dispose=function(t,n){this._disposeAxisPointer(n),r.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,n,a){var i=e.getAxisPointerClass(this.axisPointerClass);if(i){var o=p6(t);o?(this._axisPointer||(this._axisPointer=new i)).render(t,o,n,a):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,n){LT[t]=n},e.getAxisPointerClass=function(t){return t&&LT[t]},e.type="axis",e})(Qe),Z0=me();function pk(r,e,t,n){var a=t.axis;if(!a.scale.isBlank()){var i=t.getModel("splitArea"),o=i.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=a.getTicksCoords({tickModel:i,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var f=s.length,v=Z0(r).splitAreaColors,c=K(),h=0;if(v)for(var d=0;d<u.length;d++){var p=v.get(u[d].tickValue);if(p!=null){h=(p+(f-1)*d)%f;break}}var g=a.toGlobalCoord(u[0].coord),y=o.getAreaStyle();s=U(s)?s:[s];for(var d=1;d<u.length;d++){var m=a.toGlobalCoord(u[d].coord),_=void 0,S=void 0,x=void 0,w=void 0;a.isHorizontal()?(_=g,S=l.y,x=m-_,w=l.height,g=_+x):(_=l.x,S=g,x=l.width,w=m-S,g=S+w);var b=u[d-1].tickValue;b!=null&&c.set(b,h),e.add(new be({anid:b!=null?"area_"+b:null,shape:{x:_,y:S,width:x,height:w},style:le({fill:s[h]},y),autoBatch:!0,silent:!0})),h=(h+1)%f}Z0(r).splitAreaColors=c}}}function gk(r){Z0(r).splitAreaColors=null}var g6=["splitArea","splitLine","minorSplitLine","breakArea"],yk=(function(r){B(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,n,a,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new oe,this.group.add(this._axisGroup),!!ff(t)){this._axisGroup.add(t.axis.axisBuilder.group),M(g6,function(l){t.get([l,"show"])&&y6[l](this,this._axisGroup,t,t.getCoordSysModel(),a)},this);var s=i&&i.type==="changeAxisOrder"&&i.isInitSort;s||Nf(o,this._axisGroup,t),r.prototype.render.call(this,t,n,a,i)}},e.prototype.remove=function(){gk(this)},e.type="cartesianAxis",e})(es),y6={splitLine:function(r,e,t,n,a){var i=t.axis;if(!i.scale.isBlank()){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=o.get("showMinLine")!==!1,f=o.get("showMaxLine")!==!1;l=U(l)?l:[l];for(var v=n.coordinateSystem.getRect(),c=i.isHorizontal(),h=0,d=i.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),p=[],g=[],y=s.getLineStyle(),m=0;m<d.length;m++){var _=i.toGlobalCoord(d[m].coord);if(!(m===0&&!u||m===d.length-1&&!f)){var S=d[m].tickValue;c?(p[0]=_,p[1]=v.y,g[0]=_,g[1]=v.y+v.height):(p[0]=v.x,p[1]=_,g[0]=v.x+v.width,g[1]=_);var x=h++%l.length,w=new dt({anid:S!=null?"line_"+S:null,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:g[0],y2:g[1]},style:le({stroke:l[x]},y),silent:!0});tl(w.shape,y.lineWidth),e.add(w)}}}},minorSplitLine:function(r,e,t,n,a){var i=t.axis,o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=n.coordinateSystem.getRect(),u=i.isHorizontal(),f=i.getMinorTicksCoords();if(f.length)for(var v=[],c=[],h=s.getLineStyle(),d=0;d<f.length;d++)for(var p=0;p<f[d].length;p++){var g=i.toGlobalCoord(f[d][p].coord);u?(v[0]=g,v[1]=l.y,c[0]=g,c[1]=l.y+l.height):(v[0]=l.x,v[1]=g,c[0]=l.x+l.width,c[1]=g);var y=new dt({anid:"minor_line_"+f[d][p].tickValue,autoBatch:!0,shape:{x1:v[0],y1:v[1],x2:c[0],y2:c[1]},style:h,silent:!0});tl(y.shape,h.lineWidth),e.add(y)}},splitArea:function(r,e,t,n,a){pk(r,e,t,n)},breakArea:function(r,e,t,n,a){var i=Kf(),o=t.axis.scale;i&&o.type!=="ordinal"&&i.rectCoordBuildBreakAxis(e,r,t,n.coordinateSystem.getRect(),a)}},mk=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="xAxis",e})(yk),m6=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=mk.type,t}return e.type="yAxis",e})(yk),_6=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="grid",t}return e.prototype.render=function(t,n){this.group.removeAll(),t.get("show")&&this.group.add(new be({shape:t.coordinateSystem.getRect(),style:le({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e})(Qe),PT={offset:0};function _k(r){r.registerComponentView(_6),r.registerComponentModel(cY),r.registerCoordinateSystem("cartesian2d",t6),ul(r,"x",$0,PT),ul(r,"y",$0,PT),r.registerComponentView(mk),r.registerComponentView(m6),r.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}var rp="single",S6="singleAxis",j0="singleAxis",$c=(function(r){B(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=j0,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}},jitter:0,jitterOverlap:!0,jitterMargin:2},e})(Me);xt($c,Xf.prototype);function x6(r,e){var t=r.coordinateSystem,n=t&&t.type,a=t&&t.getBaseAxis&&t.getBaseAxis(),i=a&&a.scale&&a.scale.type,o=n===en&&i==="ordinal"||n===rp,s=e.model.get("jitter")>0;return o&&s}var w6=me();function RT(r,e,t,n){if(r instanceof zE){var a=r.scale.type;if(a!=="ordinal")return t}var i=r.model,o=i.get("jitter");if(!(o>0))return t;var s=i.get("jitterOverlap"),l=i.get("jitterMargin")||0,u=jt(r.scale)?Vt(r).w:null;return s?Sk(t,o,u,n):b6(r,e,t,n,o,l)}function Sk(r,e,t,n){if(t===null)return r+(Math.random()-.5)*e;var a=t-n*2,i=Math.min(Math.max(0,e),a);return r+(Math.random()-.5)*i}function b6(r,e,t,n,a,i){var o=w6(r);o.items||(o.items=[]);var s=o.items,l=ET(s,e,t,n,a,i,1),u=ET(s,e,t,n,a,i,-1),f=Math.abs(l-t)<Math.abs(u-t)?l:u,v=jt(r.scale)?Vt(r).w:null,c=Math.abs(f-t);return c>a/2||v&&c>v/2-n?Sk(t,a,v,n):(s.push({fixedCoord:e,floatCoord:f,r:n}),f)}function ET(r,e,t,n,a,i,o){for(var s=t,l=0;l<r.length;l++){var u=r[l],f=e-u.fixedCoord,v=s-u.floatCoord,c=f*f+v*v,h=n+u.r+i;if(c<h*h){var d=u.floatCoord+Math.sqrt(h*h-f*f)*o;if(Math.abs(d-t)>a/2)return Number.MAX_VALUE;if(o===1&&d>s||o===-1&&d<s){s=d,l=-1;continue}}}return s}function C6(){return{seriesType:"scatter",plan:qo(),reset:function(r){var e=r.coordinateSystem;if(!(!e||e.type!==en&&e.type!==rp)){var t=e.getBaseAxis&&e.getBaseAxis(),n=t&&x6(r,t);if(n){var a=t.dim,i=t.orient,o=i==="horizontal"&&t.type!=="category"||i==="vertical"&&t.type==="category",s=a==="y"||a==="single"&&o,l=a==="x"||a==="single"&&!o;if(!(!s&&!l))return{progress:function(u,f){for(var v=f.getLayout("points"),c=!!v,h=u.start;h<u.end;h++){var d=c?(h-u.start)*2:-1,p=c?[v[d],v[d+1]]:f.getItemLayout(h);if(p){var g=f.getItemVisual(h,"symbolSize"),y=g instanceof Array?(g[1]+g[0])/2:g;if(s){var m=RT(t,p[0],p[1],y/2);c?v[d+1]=m:p[1]=m}else if(l){var m=RT(t,p[1],p[0],y/2);c?v[d]=m:p[0]=m}}}}}}}}}}function T6(r){Se(_k),r.registerSeriesModel(WY),r.registerChartView(jY),r.registerLayout(qf("scatter"))}function A6(r){r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,C6())}function M6(r){var e=r.polar;if(e){U(e)||(e=[e]);var t=[];M(e,function(n,a){n.indicator?(n.type&&!n.shape&&(n.shape=n.type),r.radar=r.radar||[],U(r.radar)||(r.radar=[r.radar]),r.radar.push(n)):t.push(n)}),r.polar=t}M(r.series,function(n){n&&n.type==="radar"&&n.polarIndex&&(n.radarIndex=n.polarIndex)})}var _f="radar",D6=(function(r){B(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 El(q(this.getData,this),q(this.getRawData,this))},e.prototype.getInitialData=function(t,n){return Rl(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,n,a){var i=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(t),u=l===""?this.name:l,f=zP(this,t);return pt("section",{header:u,sortBlocks:!0,blocks:$(s,function(v){var c=i.get(i.mapDimension(v.dim),t);return pt("nameValue",{markerType:"subItem",markerColor:f,name:v.name,value:c,sortParam:c})})})},e.prototype.getTooltipPosition=function(t){if(t!=null){for(var n=this.getData(),a=this.coordinateSystem,i=n.getValues($(a.dimensions,function(u){return n.mapDimension(u)}),t),o=0,s=i.length;o<s;o++)if(!isNaN(i[o])){var l=a.getIndicatorAxes();return a.coordToPoint(l[o].dataToCoord(i[o]),o)}}},e.type="series."+_f,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})(je),I6=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=_f,t}return e.prototype.render=function(t,n,a){var i=t.coordinateSystem,o=this.group,s=t.getData(),l=this._data;function u(c,h){var d=c.getItemVisual(h,"symbol")||"circle";if(d!=="none"){var p=Il(c.getItemVisual(h,"symbolSize")),g=gt(d,-1,-1,2,2),y=c.getItemVisual(h,"symbolRotate")||0;return g.attr({style:{strokeNoScale:!0},z2:100,scaleX:p[0]/2,scaleY:p[1]/2,rotation:y*Math.PI/180||0}),g}}function f(c,h,d,p,g,y){d.removeAll();for(var m=0;m<h.length-1;m++){var _=u(p,g);_&&(_.__dimIdx=m,c[m]?(_.setPosition(c[m]),Xo[y?"initProps":"updateProps"](_,{x:h[m][0],y:h[m][1]},t,g)):_.setPosition(h[m]),d.add(_))}}function v(c){return $(c,function(h){return[i.cx,i.cy]})}s.diff(l).add(function(c){var h=s.getItemLayout(c);if(h){var d=new Zt,p=new Bt,g={shape:{points:h}};d.shape.points=v(h),p.shape.points=v(h),Ke(d,g,t,c),Ke(p,g,t,c);var y=new oe,m=new oe;y.add(p),y.add(d),y.add(m),f(p.shape.points,h,m,s,c,!0),s.setItemGraphicEl(c,y)}}).update(function(c,h){var d=l.getItemGraphicEl(h),p=d.childAt(0),g=d.childAt(1),y=d.childAt(2),m={shape:{points:s.getItemLayout(c)}};m.shape.points&&(f(p.shape.points,m.shape.points,y,s,c,!1),$r(g),$r(p),Oe(p,m,t),Oe(g,m,t),s.setItemGraphicEl(c,d))}).remove(function(c){o.remove(l.getItemGraphicEl(c))}).execute(),s.eachItemGraphicEl(function(c,h){var d=s.getItemModel(h),p=c.childAt(0),g=c.childAt(1),y=c.childAt(2),m=s.getItemVisual(h,"style"),_=m.fill;o.add(c),p.useStyle(le(d.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:_})),_t(p,d,"lineStyle"),_t(g,d,"areaStyle");var S=d.getModel("areaStyle"),x=S.isEmpty()&&S.parentModel.isEmpty();g.ignore=x,M(["emphasis","select","blur"],function(b){var T=d.getModel([b,"areaStyle"]),C=T.isEmpty()&&T.parentModel.isEmpty();g.ensureState(b).ignore=C&&x;var A=d.getModel([b,"lineStyle"]).getLineStyle();p.ensureState(b).style=A;var D=T.getAreaStyle();g.ensureState(b).style=D;var L=d.getModel([b,"itemStyle"]).getItemStyle();y.eachChild(function(I){I.ensureState(b).style=ae(L)})}),g.useStyle(le(d.getModel("areaStyle").getAreaStyle(),{fill:_,opacity:.7,decal:m.decal}));var w=d.getModel("emphasis");y.eachChild(function(b){if(b instanceof Rt){var T=b.style;b.useStyle(G({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},m))}else b.useStyle(m),b.setColor(_),b.style.strokeNoScale=!0;var C=s.getStore().get(s.getDimensionIndex(b.__dimIdx),h);(C==null||isNaN(C))&&(C=""),Mt(b,St(d),{labelFetcher:s.hostModel,labelDataIndex:h,labelDimIndex:b.__dimIdx,defaultText:C,inheritColor:_,defaultOpacity:m.opacity})}),et(c,w.get("focus"),w.get("blurScope"),w.get("disabled"))}),this._data=s},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type=_f,e})(Ue),Jl=ck.value,Gu="radar",xk=Gu,L6=Gu,wk=5;function Yv(r,e){return le({show:e},r)}var P6=(function(r){B(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"),n=this.get("splitNumber"),a=this.get("clockwise"),i=this.get("scale"),o=this.get("axisLine"),s=this.get("axisTick"),l=this.get("axisLabel"),u=this.get("axisName"),f=this.get(["axisName","show"]),v=this.get(["axisName","formatter"]),c=this.get("axisNameGap"),h=this.get("triggerEvent"),d=$(this.get("indicator")||[],function(p){p.max!=null&&p.max>0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var g=u;p.color!=null&&(g=le({color:p.color},u));var y=_e(ae(p),{boundaryGap:t,splitNumber:n,clockwise:a,scale:i,axisLine:o,axisTick:s,axisLabel:l,name:p.text,showName:f,nameLocation:"end",nameGap:c,nameTextStyle:g,triggerEvent:h},!1);if(Z(v)){var m=y.name;y.name=v.replace("{value}",m??"")}else ie(v)&&(y.name=v(y.name,y));var _=new Ie(y,null,this.ecModel);return xt(_,Xf.prototype),_.mainType="radar",_.componentIndex=this.componentIndex,_.uid=Zo("ec_radar"),_},this);this._indicatorModels=d},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type=xk,e.defaultOption={z:0,center:["50%","50%"],radius:"50%",startAngle:90,clockwise:!1,axisName:{show:!0,color:N.color.axisLabel},boundaryGap:[0,0],splitNumber:wk,axisNameGap:15,scale:!1,shape:"polygon",axisLine:_e({lineStyle:{color:N.color.neutral20}},Jl.axisLine),axisLabel:Yv(Jl.axisLabel,!1),axisTick:Yv(Jl.axisTick,!1),splitLine:Yv(Jl.splitLine,!0),splitArea:Yv(Jl.splitArea,!0),indicator:[]},e})(Me),R6=(function(r){B(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,n,a){var i=this.group;i.removeAll(),this._buildAxes(t,a),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t,n){var a=t.coordinateSystem,i=a.getIndicatorAxes(),o=$(i,function(s){var l=s.model.get("showName")?s.name:"",u=new ar(s.model,n,{axisName:l,position:[a.cx,a.cy],rotation:s.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return u});M(o,function(s){s.build(),this.group.add(s.group)},this)},e.prototype._buildSplitLineAndArea=function(t){var n=t.coordinateSystem,a=n.getIndicatorAxes();if(!a.length)return;var i=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),f=o.get("show"),v=s.get("show"),c=l.get("color"),h=u.get("color"),d=U(c)?c:[c],p=U(h)?h:[h],g=[],y=[];function m(R,E,O){var k=O%E.length;return R[k]=R[k]||[],k}if(i==="circle")for(var _=a[0].getTicksCoords(),S=n.cx,x=n.cy,w=0;w<_.length;w++){if(f){var b=m(g,d,w);g[b].push(new Sa({shape:{cx:S,cy:x,r:_[w].coord}}))}if(v&&w<_.length-1){var b=m(y,p,w);y[b].push(new kf({shape:{cx:S,cy:x,r0:_[w].coord,r:_[w+1].coord}}))}}else for(var T,C=$(a,function(R,E){var O=R.getTicksCoords();return T=T==null?O.length-1:Math.min(O.length-1,T),$(O,function(k){return n.coordToPoint(k.coord,E)})}),A=[],w=0;w<=T;w++){for(var D=[],L=0;L<a.length;L++)D.push(C[L][w]);if(D[0]&&D.push(D[0].slice()),f){var b=m(g,d,w);g[b].push(new Bt({shape:{points:D}}))}if(v&&A){var b=m(y,p,w-1);y[b].push(new Zt({shape:{points:D.concat(A)}}))}A=D.slice().reverse()}var I=l.getLineStyle(),P=u.getAreaStyle();M(y,function(R,E){this.group.add(Or(R,{style:le({stroke:"none",fill:p[E%p.length]},P),silent:!0}))},this),M(g,function(R,E){this.group.add(Or(R,{style:le({fill:"none",stroke:d[E%d.length]},I),silent:!0}))},this)},e.type="radar",e})(Qe),E6=(function(r){B(e,r);function e(t,n,a){var i=r.call(this,t,n,a)||this;return i.type="value",i.angle=0,i.name="",i}return e})(ln),k6=(function(){function r(e,t,n){this.type=Gu,this.dimensions=[],this._model=e,this._indicatorAxes=$(e.getIndicatorModels(),function(a,i){var o="indicator_"+i,s=new E6(o,new Qa);return s.name=a.get("name"),s.model=a,a.axis=s,this.dimensions.push(o),s},this),this.resize(e,n)}return r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(e,t){var n=this._indicatorAxes[t];return this.coordToPoint(n.dataToCoord(e),t)},r.prototype.coordToPoint=function(e,t){var n=this._indicatorAxes[t],a=n.angle,i=this.cx+e*Math.cos(a),o=this.cy-e*Math.sin(a);return[i,o]},r.prototype.pointToData=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,a=Math.sqrt(t*t+n*n);t/=a,n/=a;for(var i=Math.atan2(-n,t),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var f=this._indicatorAxes[u],v=Math.abs(i-f.angle);v<o&&(s=f,l=u,o=v)}return[l,+(s&&s.coordToData(a))]},r.prototype.resize=function(e,t){var n=bt(e,t).refContainer,a=e.get("center"),i=e.get("clockwise")||!1,o=Math.min(n.width,n.height)/2;this.cx=j(a[0],n.width)+n.x,this.cy=j(a[1],n.height)+n.y,this.startAngle=e.get("startAngle")*Math.PI/180;var s=e.get("radius");(Z(s)||Ee(s))&&(s=[0,s]),this.r0=j(s[0],o),this.r=j(s[1],o);var l=i?-1:1;M(this._indicatorAxes,function(u,f){u.setExtent(this.r0,this.r);var v=this.startAngle+l*f*Math.PI*2/this._indicatorAxes.length;v=Math.atan2(Math.sin(v),Math.cos(v)),u.angle=v},this)},r.prototype.update=function(e,t){var n=this._indicatorAxes,a=this._model,i=Zd(a.get("splitNumber"),wk),o=new Qa;o.setExtent(0,i),o.setConfig({interval:1}),M(n,function(s){Po(s,ol),hk(s,o)})},r.prototype.convertToPixel=function(e,t,n){return console.warn("Not implemented."),null},r.prototype.convertFromPixel=function(e,t,n){return console.warn("Not implemented."),null},r.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},r.create=function(e,t){var n=[];return e.eachComponent(xk,function(a){var i=new r(a,e,t);n.push(i),a.coordinateSystem=i}),e.eachSeriesByType(L6,function(a){if(a.get("coordinateSystem")===Gu){var i=a.coordinateSystem=n[a.get("radarIndex")||0];i&&M(i.getIndicatorAxes(),function(o){Lo(o,a,Gu)})}}),n},r.dimensions=[],r})();function O6(r){r.registerCoordinateSystem("radar",k6),r.registerComponentModel(P6),r.registerComponentView(R6),r.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each(function(n){t.setItemVisual(n,"legendIcon","roundRect")}),t.setVisual("legendIcon","roundRect")}})}var N6=wt(_f,B6);function B6(r){r.eachSeriesByType(_f,function(e){var t=e.getData(),n=[],a=e.coordinateSystem;if(a){var i=a.getIndicatorAxes();M(i,function(o,s){t.each(t.mapDimension(i[s].dim),function(l,u){n[u]=n[u]||[];var f=a.dataToPoint(l,s);n[u][s]=kT(f)?f:OT(a)})}),t.each(function(o){var s=ci(n[o],function(l){return kT(l)})||OT(a);n[o].push(s.slice()),t.setItemLayout(o,n[o])})}})}function kT(r){return!isNaN(r[0])&&!isNaN(r[1])}function OT(r){return[r.cx,r.cy]}function V6(r){Se(O6),r.registerChartView(I6),r.registerSeriesModel(D6),r.registerLayout(N6),r.registerProcessor(Jf("radar")),r.registerPreprocessor(M6)}var _1=me();function z6(r,e,t){_1(r)[e]=t}function F6(r,e,t){var n=_1(r),a=n[e];a===t&&(n[e]=null)}function NT(r,e){return!!_1(r)[e]}$n({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},ot);var G6={axisPointer:1,tooltip:1,brush:1};function bk(r,e,t){var n=e.getComponentByElement(r.topTarget);if(!n||n===t||G6.hasOwnProperty(n.mainType))return!1;var a=n.coordinateSystem;if(!a||a.model===t)return!1;var i=Ao(n),o=Ao(t);return!((i.zlevel-o.zlevel||i.z-o.z)<=0)}var ts=(function(r){B(e,r);function e(t){var n=r.call(this)||this;n._zr=t;var a=q(n._mousedownHandler,n),i=q(n._mousemoveHandler,n),o=q(n._mouseupHandler,n),s=q(n._mousewheelHandler,n),l=q(n._pinchHandler,n);return n.enable=function(u,f){var v=f.zInfo,c=Ao(v.component),h=c.z,d=c.zlevel,p={component:v.component,z:h,zlevel:d,z2:Q(v.z2,-1/0)},g=G({},f.triggerInfo);this._opt=le(G({},f),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:p,triggerInfo:g,cursorGrab:"grab",cursorGrabbing:"grabbing"}),u==null&&(u=!0),(!this._enabled||this._controlType!==u)&&(this.disable(),this._enabled=!0,(u===!0||u==="move"||u==="pan")&&(eu(t,"mousedown",a,p),eu(t,"mousemove",i,p),eu(t,"mouseup",o,p)),(u===!0||u==="scale"||u==="zoom")&&(eu(t,"mousewheel",s,p),eu(t,"pinch",l,p)))},n.disable=function(){this._enabled&&(this._enabled=!1,tu(t,"mousedown",a),tu(t,"mousemove",i),tu(t,"mouseup",o),tu(t,"mousewheel",s),tu(t,"pinch",l))},n}return e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype._checkPointer=function(t,n,a){var i=this._opt,o=i.zInfoParsed;if(bk(t,i.api,o.component))return!1;var s=i.triggerInfo,l=s.roamTrigger,u=!1;return l==="global"&&(u=!0),u||(u=s.isInSelf(t,n,a)),u&&s.isInClip&&!s.isInClip(t,n,a)&&(u=!1),u},e.prototype._decideCursorStyle=function(t,n,a,i){var o=t.target;if(!o&&this._checkPointer(t,n,a))return this._opt.cursorGrab;if(i)return o&&o.cursor||"default"},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!(zx(t)||Ql(t))){for(var n=t.target;n;){if(n.draggable)return;n=n.__hostTarget||n.parent}var a=t.offsetX,i=t.offsetY;this._checkPointer(t,a,i)&&(this._x=a,this._y=i,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){var n=this._zr;if(!(t.gestureEvent==="pinch"||NT(n,"globalPan")||Ql(t))){var a=t.offsetX,i=t.offsetY;if(!this._dragging||!Wc("moveOnMouseMove",t,this._opt)){var o=this._decideCursorStyle(t,a,i,!1);o&&n.setCursorStyle(o);return}n.setCursorStyle(this._opt.cursorGrabbing);var s=this._x,l=this._y,u=a-s,f=i-l;this._x=a,this._y=i,this._opt.preventDefaultMouseMove&&ua(t.event),t.__ecRoamConsumed=!0,BT(this,"pan","moveOnMouseMove",t,{dx:u,dy:f,oldX:s,oldY:l,newX:a,newY:i,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){if(!Ql(t)){var n=this._zr;if(!zx(t)){this._dragging=!1;var a=this._decideCursorStyle(t,t.offsetX,t.offsetY,!0);a&&n.setCursorStyle(a)}}},e.prototype._mousewheelHandler=function(t){if(!Ql(t)){var n=Wc("zoomOnMouseWheel",t,this._opt),a=Wc("moveOnMouseWheel",t,this._opt),i=t.wheelDelta,o=Math.abs(i),s=t.offsetX,l=t.offsetY;if(!(i===0||!n&&!a)){if(n){var u=o>3?1.4:o>1?1.2:1.1,f=i>0?u:1/u;this._checkTriggerMoveZoom(this,"zoom","zoomOnMouseWheel",t,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(a){var v=Math.abs(i),c=(i>0?1:-1)*(v>3?.4:v>1?.15:.05);this._checkTriggerMoveZoom(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:c,originX:s,originY:l,isAvailableBehavior:null})}}}},e.prototype._pinchHandler=function(t){if(!(NT(this._zr,"globalPan")||Ql(t))){var n=t.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,"zoom",null,t,{scale:n,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e.prototype._checkTriggerMoveZoom=function(t,n,a,i,o){t._checkPointer(i,o.originX,o.originY)&&(ua(i.event),i.__ecRoamConsumed=!0,BT(t,n,a,i,o))},e})(Wr);function Ql(r){return r.__ecRoamConsumed}var H6=me();function np(r){var e=H6(r);return e.roam=e.roam||{},e.uniform=e.uniform||{},e}function eu(r,e,t,n){for(var a=np(r),i=a.roam,o=i[e]=i[e]||[],s=0;s<o.length;s++){var l=o[s].zInfoParsed;if((l.zlevel-n.zlevel||l.z-n.z||l.z2-n.z2)<=0)break}o.splice(s,0,{listener:t,zInfoParsed:n}),U6(r,e)}function tu(r,e,t){for(var n=np(r),a=n.roam[e]||[],i=0;i<a.length;i++)if(a[i].listener===t){a.splice(i,1),a.length||$6(r,e);return}}function U6(r,e){var t=np(r);t.uniform[e]||r.on(e,t.uniform[e]=function(n){var a=t.roam[e];if(a)for(var i=0;i<a.length;i++)a[i].listener(n)})}function $6(r,e){var t=np(r),n=t.uniform;n[e]&&(r.off(e,n[e]),n[e]=null)}function BT(r,e,t,n,a){a.isAvailableBehavior=q(Wc,null,t,n),r.trigger(e,a)}function Wc(r,e,t){var n=t[r];return!r||n&&(!Z(n)||e.event[n+"Key"])}function Ck(r){if(Z(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 Yg,Gh={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"},VT=De(Gh),Hh={"alignment-baseline":"textBaseline","stop-color":"stopColor"},zT=De(Hh),W6=(function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(e,t){t=t||{};var n=Ck(e);this._defsUsePending=[];var a=new oe;this._root=a;var i=[],o=n.getAttribute("viewBox")||"",s=parseFloat(n.getAttribute("width")||t.width),l=parseFloat(n.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),gr(n,a,null,!0,!1);for(var u=n.firstChild;u;)this._parseNode(u,a,i,null,!1,!1),u=u.nextSibling;Z6(this._defs,this._defsUsePending),this._defsUsePending=[];var f,v;if(o){var c=ap(o);c.length>=4&&(f={x:parseFloat(c[0]||0),y:parseFloat(c[1]||0),width:parseFloat(c[2]),height:parseFloat(c[3])})}if(f&&s!=null&&l!=null&&(v=Ak(f,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var h=a;a=new oe,a.add(h),h.scaleX=h.scaleY=v.scale,h.x=v.x,h.y=v.y}return!t.ignoreRootClip&&s!=null&&l!=null&&a.setClipPath(new be({shape:{x:0,y:0,width:s,height:l}})),{root:a,width:s,height:l,viewBoxRect:f,viewBoxTransform:v,named:i}},r.prototype._parseNode=function(e,t,n,a,i,o){var s=e.nodeName.toLowerCase(),l,u=a;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=t;else{if(!i){var f=Yg[s];if(f&&J(Yg,s)){l=f.call(this,e,t);var v=e.getAttribute("name");if(v){var c={name:v,namedFrom:null,svgNodeTagLower:s,el:l};n.push(c),s==="g"&&(u=c)}else a&&n.push({name:a.name,namedFrom:a,svgNodeTagLower:s,el:l});t.add(l)}}var h=FT[s];if(h&&J(FT,s)){var d=h.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,n,u,i,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},r.prototype._parseText=function(e,t){var n=new el({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Ar(t,n),gr(e,n,this._defsUsePending,!1,!1),Y6(n,t);var a=n.style,i=a.fontSize;i&&i<9&&(a.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9);var o=(a.fontSize||a.fontFamily)&&[a.fontStyle,a.fontWeight,(a.fontSize||12)+"px",a.fontFamily||"sans-serif"].join(" ");a.font=o;var s=n.getBoundingRect();return this._textX+=s.width,t.add(n),n},r.internalField=(function(){Yg={g:function(e,t){var n=new oe;return Ar(t,n),gr(e,n,this._defsUsePending,!1,!1),n},rect:function(e,t){var n=new be;return Ar(t,n),gr(e,n,this._defsUsePending,!1,!1),n.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")}),n.silent=!0,n},circle:function(e,t){var n=new Sa;return Ar(t,n),gr(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),n.silent=!0,n},line:function(e,t){var n=new dt;return Ar(t,n),gr(e,n,this._defsUsePending,!1,!1),n.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")}),n.silent=!0,n},ellipse:function(e,t){var n=new kd;return Ar(t,n),gr(e,n,this._defsUsePending,!1,!1),n.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")}),n.silent=!0,n},polygon:function(e,t){var n=e.getAttribute("points"),a;n&&(a=UT(n));var i=new Zt({shape:{points:a||[]},silent:!0});return Ar(t,i),gr(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var n=e.getAttribute("points"),a;n&&(a=UT(n));var i=new Bt({shape:{points:a||[]},silent:!0});return Ar(t,i),gr(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var n=new Rt;return Ar(t,n),gr(e,n,this._defsUsePending,!1,!1),n.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")}),n.silent=!0,n},text:function(e,t){var n=e.getAttribute("x")||"0",a=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(a)+parseFloat(o);var s=new oe;return Ar(t,s),gr(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var n=e.getAttribute("x"),a=e.getAttribute("y");n!=null&&(this._textX=parseFloat(n)),a!=null&&(this._textY=parseFloat(a));var i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new oe;return Ar(t,s),gr(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(e,t){var n=e.getAttribute("d")||"",a=g2(n);return Ar(t,a),gr(e,a,this._defsUsePending,!1,!1),a.silent=!0,a}}})(),r})(),FT={lineargradient:function(r){var e=parseInt(r.getAttribute("x1")||"0",10),t=parseInt(r.getAttribute("y1")||"0",10),n=parseInt(r.getAttribute("x2")||"10",10),a=parseInt(r.getAttribute("y2")||"0",10),i=new bl(e,t,n,a);return GT(r,i),HT(r,i),i},radialgradient:function(r){var e=parseInt(r.getAttribute("cx")||"0",10),t=parseInt(r.getAttribute("cy")||"0",10),n=parseInt(r.getAttribute("r")||"0",10),a=new S2(e,t,n);return GT(r,a),HT(r,a),a}};function GT(r,e){var t=r.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function HT(r,e){for(var t=r.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var n=t.getAttribute("offset"),a=void 0;n&&n.indexOf("%")>0?a=parseInt(n,10)/100:n?a=parseFloat(n):a=0;var i={};Tk(t,i,i);var o=i.stopColor||t.getAttribute("stop-color")||"#000000",s=i.stopOpacity||t.getAttribute("stop-opacity");if(s){var l=hr(o),u=l&&l[3];u&&(l[3]*=Za(s),o=Tn(l,"rgba"))}e.colorStops.push({offset:a,color:o})}t=t.nextSibling}}function Ar(r,e){r&&r.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),le(e.__inheritedStyle,r.__inheritedStyle))}function UT(r){for(var e=ap(r),t=[],n=0;n<e.length;n+=2){var a=parseFloat(e[n]),i=parseFloat(e[n+1]);t.push([a,i])}return t}function gr(r,e,t,n,a){var i=e,o=i.__inheritedStyle=i.__inheritedStyle||{},s={};r.nodeType===1&&(K6(r,e),Tk(r,o,s),n||J6(r,o,s)),i.style=i.style||{},o.fill!=null&&(i.style.fill=$T(i,"fill",o.fill,t)),o.stroke!=null&&(i.style.stroke=$T(i,"stroke",o.stroke,t)),M(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(i.style[l]=parseFloat(o[l]))}),M(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(i.style[l]=o[l])}),a&&(i.__selfStyle=s),o.lineDash&&(i.style.lineDash=$(ap(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(i.invisible=!0),o.display==="none"&&(i.ignore=!0)}function Y6(r,e){var t=e.__selfStyle;if(t){var n=t.textBaseline,a=n;!n||n==="auto"||n==="baseline"?a="alphabetic":n==="before-edge"||n==="text-before-edge"?a="top":n==="after-edge"||n==="text-after-edge"?a="bottom":(n==="central"||n==="mathematical")&&(a="middle"),r.style.textBaseline=a}var i=e.__inheritedStyle;if(i){var o=i.textAlign,s=o;o&&(o==="middle"&&(s="center"),r.style.textAlign=s)}}var X6=/^url\(\s*#(.*?)\)/;function $T(r,e,t,n){var a=t&&t.match(X6);if(a){var i=Br(a[1]);n.push([r,e,i]);return}return t==="none"&&(t=null),t}function Z6(r,e){for(var t=0;t<e.length;t++){var n=e[t];n[0].style[n[1]]=r[n[2]]}}var j6=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function ap(r){return r.match(j6)||[]}var q6=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,Xg=Math.PI/180;function K6(r,e){var t=r.getAttribute("transform");if(t){t=t.replace(/,/g," ");var n=[],a=null;t.replace(q6,function(v,c,h){return n.push(c,h),""});for(var i=n.length-1;i>0;i-=2){var o=n[i],s=n[i-1],l=ap(o);switch(a=a||nt(),s){case"translate":kn(a,a,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Z_(a,a,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":hi(a,a,-parseFloat(l[0])*Xg,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*Xg);Vr(a,[1,0,u,1,0,0],a);break;case"skewY":var f=Math.tan(parseFloat(l[0])*Xg);Vr(a,[1,f,0,1,0,0],a);break;case"matrix":a[0]=parseFloat(l[0]),a[1]=parseFloat(l[1]),a[2]=parseFloat(l[2]),a[3]=parseFloat(l[3]),a[4]=parseFloat(l[4]),a[5]=parseFloat(l[5]);break}}e.setLocalTransform(a)}}var WT=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Tk(r,e,t){var n=r.getAttribute("style");if(n){WT.lastIndex=0;for(var a;(a=WT.exec(n))!=null;){var i=a[1],o=J(Gh,i)?Gh[i]:null;o&&(e[o]=a[2]);var s=J(Hh,i)?Hh[i]:null;s&&(t[s]=a[2])}}}function J6(r,e,t){for(var n=0;n<VT.length;n++){var a=VT[n],i=r.getAttribute(a);i!=null&&(e[Gh[a]]=i)}for(var n=0;n<zT.length;n++){var a=zT[n],i=r.getAttribute(a);i!=null&&(t[Hh[a]]=i)}}function Ak(r,e){var t=e.width/r.width,n=e.height/r.height,a=Math.min(t,n);return{scale:a,x:-(r.x+r.width/2)*a+(e.x+e.width/2),y:-(r.y+r.height/2)*a+(e.y+e.height/2)}}function Q6(r,e){var t=new W6;return t.parse(r,e)}var e8=K(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),t8=(function(){function r(e,t){this.type="geoSVG",this._usedGraphicMap=K(),this._freedGraphics=[],this._mapName=e,this._parsedXML=Ck(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=n8(e.named),n=t.regions,a=t.regionsMap;this._regions=n,this._regionsMap=a}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},r.prototype._buildGraphic=function(e){var t,n;try{t=e&&Q6(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=t.root,Yt(n!=null)}catch(g){throw new Error(`Invalid svg format
51
+ `+g.message)}var a=new oe;a.add(n),a.isGeoSVGGraphicRoot=!0;var i=t.width,o=t.height,s=t.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,f=void 0,v=void 0,c=void 0;if(i!=null?(u=0,v=i):s&&(u=s.x,v=s.width),o!=null?(f=0,c=o):s&&(f=s.y,c=s.height),u==null||f==null){var h=n.getBoundingRect();u==null&&(u=h.x,v=h.width),f==null&&(f=h.y,c=h.height)}l=this._boundingRect=new se(u,f,v,c)}if(s){var d=Ak(s,l);n.scaleX=n.scaleY=d.scale,n.x=d.x,n.y=d.y}a.setClipPath(new be({shape:l.plain()}));var p=[];return M(t.named,function(g){e8.get(g.svgNodeTagLower)!=null&&(p.push(g),r8(g.el))}),{root:a,boundingRect:l,named:p}},r.prototype.useGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,n),n)},r.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);n&&(t.removeKey(e),this._freedGraphics.push(n))},r})();function r8(r){r.silent=!1,r.isGroup&&r.traverse(function(e){e.silent=!1})}function n8(r){var e=[],t=K();return M(r,function(n){if(n.namedFrom==null){var a=new qU(n.name,n.el);e.push(a),t.set(n.name,a)}}),{regions:e,regionsMap:t}}var q0=[126,25],YT="南海诸岛",Zi=[[[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 Ui=0;Ui<Zi.length;Ui++)for(var ys=0;ys<Zi[Ui].length;ys++)Zi[Ui][ys][0]/=10.5,Zi[Ui][ys][1]/=-10.5/.75,Zi[Ui][ys][0]+=q0[0],Zi[Ui][ys][1]+=q0[1];function a8(r,e){if(r==="china"){for(var t=0;t<e.length;t++)if(e[t].name===YT)return;e.push(new qR(YT,$(Zi,function(n){return{type:"polygon",exterior:n}}),q0))}}var i8={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function o8(r,e){if(r==="china"){var t=i8[e.name];if(t){var n=e.getCenter();n[0]+=t[0]/10.5,n[1]+=-t[1]/(10.5/.75),e.setCenter(n)}}}var s8=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function l8(r,e){r==="china"&&e.name==="台湾"&&e.geometries.push({type:"polygon",exterior:s8[0]})}var u8="name",f8=(function(){function r(e,t,n){this.type="geoJSON",this._parsedMap=K(),this._mapName=e,this._specialAreas=n,this._geoJSON=c8(t)}return r.prototype.load=function(e,t){t=t||u8;var n=this._parsedMap.get(t);if(!n){var a=this._parseToRegions(t);n=this._parsedMap.set(t,{regions:a,boundingRect:v8(a)})}var i=K(),o=[];return M(n.regions,function(s){var l=s.name;e&&J(e,l)&&(s=s.cloneShallow(l=e[l])),o.push(s),i.set(l,s)}),{regions:o,boundingRect:n.boundingRect||new se(0,0,0,0),regionsMap:i}},r.prototype._parseToRegions=function(e){var t=this._mapName,n=this._geoJSON,a;try{a=n?JU(n,e):[]}catch(i){throw new Error(`Invalid geoJson format
52
+ `+i.message)}return a8(t,a),M(a,function(i){var o=i.name;o8(t,i),l8(t,i);var s=this._specialAreas&&this._specialAreas[o];s&&i.transformTo(s.left,s.top,s.width,s.height)},this),a},r.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},r})();function v8(r){for(var e,t=0;t<r.length;t++){var n=r[t].getBoundingRect();e=e||n.clone(),e.union(n)}return e}function c8(r){return Z(r)?typeof JSON<"u"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var ru=K();const ya={registerMap:function(r,e,t){if(e.svg){var n=new t8(r,e.svg);ru.set(r,n)}else{var a=e.geoJson||e.geoJSON;a&&!e.features?t=e.specialAreas:a=e;var n=new f8(r,a,t);ru.set(r,n)}},getGeoResource:function(r){return ru.get(r)},getMapForUser:function(r){var e=ru.get(r);return e&&e.type==="geoJSON"&&e.getMapForUser()},load:function(r,e,t){var n=ru.get(r);if(n)return n.load(e,t)}};var Oo=0,No=1,Gn=2;var h8="view",ip=(function(r){B(e,r);function e(t,n,a){var i=r.call(this)||this;i.type=h8,i.dimensions=["x","y"];var o=i;o.invertY=t,o.lgCt=n,o.lgGeo=a;var s=o.trans=[];return s[Oo]=zs(),s[No]=zs(),s[Gn]=zs(),o.mtRaw=nt(),o.mtRawInv=nt(),o.mtOverall=nt(),o.mtOverallInv=nt(),o.zoom=1,i}return e.prototype.getBoundingRect=function(){return Mk(null,this)},e.prototype.getViewRect=function(){return S1(null,this)},e.prototype.getRoamTransform=function(){return ni(this.trans[No])},e.prototype.dataToPoint=function(t,n,a){var i=n?this.mtRaw:this.mtOverall;return a=a||[],i?st(a,t,i):Ht(a,t)},e.prototype.pointToData=function(t,n,a){a=a||[];var i=this.mtOverallInv;return i?st(a,t,i):Ht(a,t)},e.prototype.convertToPixel=function(t,n,a){var i=KT(n);return i===this?i.dataToPoint(a):null},e.prototype.convertFromPixel=function(t,n,a){var i=KT(n);return i===this?i.pointToData(a):null},e.prototype.containPoint=function(t){var n=this;return qs(Xv,n.dataRect),JI(Xv,Xv,n.mtOverall),UV(Xv,t[0],t[1])},e.dimensions=["x","y"],e})(Un),Xv=Sd();function Uh(r,e){return _o([],e.mtOverall)}function d8(r){return r.zoom}function Mk(r,e){return qs(Sd(),e.dataRect)}function S1(r,e){return qs(Sd(),e.viewRect)}function Sf(r,e,t){return On(r||zs(),e.trans[t])}function x1(r){return!!(r.dataRect&&r.viewRect)}function p8(r,e,t,n){n===No?Dk(r,e.trans[Oo],t):On(r,t)}function XT(r,e,t){ni(t,Zv),Vr(Zv,Zv,e.mtRawInv),zd(r,Zv)}var Zv=nt();function w1(r,e){var t=r;t.centerOption=e.getShallow("center");var n=t.zoomLimit=e.getShallow("scaleLimit"),a=e.getShallow("zoom");t.zoom=C1(a||1,n)||1,x1(t)&&b1(t)}function op(r,e,t,n,a){var i=r;i.dataRect=new se(e,t,n,a),x1(i)&&b1(i)}function $h(r,e,t,n,a){var i=r;i.viewRect=new se(e,t,n,a),x1(i)&&b1(i)}function b1(r){g8(r),m8(r),_8(r)}function g8(r){var e=r.dataRect,t=r.viewRect,n=r.trans[Oo],a=r.invertY;a&&(e=qs(y8,e),e.y=-e.y-e.height),KI(ZT,e,t),zd(n,ZT),a&&(n.scaleY=-n.scaleY);var i=ni(n,r.mtRaw);Gr(r.mtRawInv,i)}var ZT=nt(),y8=Sd();function m8(r){var e=Ik(r),t=w8(Zg,r,r.centerOption)?st(Zg,Zg,r.mtRaw):e,n=r.zoom,a=r.trans[No];a.x=e[0]-n*t[0],a.y=e[1]-n*t[1],a.scaleX=a.scaleY=n}var Zg=[];function _8(r){var e=r.trans,t=e[No],n=e[Oo],a=e[Gn];Dk(a,n,t);var i=ni(a,r.mtOverall),o=Gr(r.mtOverallInv,i);jT(r,a,i,o),jT(r.lgGeo,a,i,o)}function jT(r,e,t,n){r&&(On(r,e),_o(r.transform||(r.transform=[]),t),_o(r.invTransform||(r.invTransform=[]),n))}function Dk(r,e,t){ni(e,qT),ni(t,jv),Vr(jv,jv,qT),zd(r,jv)}var qT=nt(),jv=nt();function KT(r){var e=r.seriesModel;return e?e.coordinateSystem:null}function Ik(r){var e=r.viewRect;return jg[0]=e.x+e.width/2,jg[1]=e.y+e.height/2,jg}var jg=[];function Lk(r){return r&&r.type==="view"}function oi(r,e,t,n){var a=t;a.syncBackEl=r,a.syncBackType=e,n?Oe(r,Sf(null,t,e),n):(Sf(r,t,e),r.dirty())}function S8(r,e,t,n){var a=r,i=a.syncBackEl;i?(i.stopAnimation(),p8(Pa,a,i,a.syncBackType)):On(Pa,a.trans[Gn]),XT(qg,a,Pa),n?x8(Pa,qg,a,n):On(Pa,qg),XT(Pa,a,Pa),C8(a,e,t,Pa)}var Pa=zs(),qg=zs();function Pk(r,e,t){var n=Wh(e);n&&(S8(n,e,t,r),w1(n,e))}function Wh(r){return r.__ownRoamView?r.__ownRoamView():null}function Rk(r,e,t,n){t.setUpdatePayload(mS(r));var a=r2(n,e);a&&a.__updateOnOwnRoam&&a.__updateOnOwnRoam(r,e,n)}function x8(r,e,t,n){n.dx!=null&&n.dy!=null&&(r.x+=n.dx,r.y+=n.dy);var a=n.zoom;if(a!=null){var i=Ek(e),o=C1(i*a,t.zoomLimit),s=o/i;r.x-=(n.originX-r.x)*(s-1),r.y-=(n.originY-r.y)*(s-1),r.scaleX*=s,r.scaleY*=s}}function Ek(r){return r.scaleX}function w8(r,e,t){var n=e.dataRect;if(!t)return!1;var a=e.lgCt;return a?Ya(r,j(t[0],a.w),j(t[1],a.h)):n&&Ya(r,j(t[0],n.width,n.x),j(t[1],n.height,n.y)),!0}function b8(r,e){var t=r.centerOption,n=r.dataRect;return!t||r.lgCt?e.slice():[JT(0,e,t,n),JT(1,e,t,n)]}function JT(r,e,t,n){return t&&n&&n[lt[r]]&&Zz(t[r])?(e[r]-n[de[r]])/n[lt[r]]*100+"%":e[r]}function kk(r,e){return e&&r&&r.getShallow("legacyViewCoordSysCenterBase")?{w:e.getWidth(),h:e.getHeight()}:null}function C8(r,e,t,n){var a=Ik(r),i=Ek(n),o=it(i)>1e-6;nu[0]=o?(a[0]-n.x)/i:a[0],nu[1]=o?(a[1]-n.y)/i:a[1],st(nu,nu,r.mtRawInv);var s=b8(r,nu);QT(e,s,i),M(t,function(l){l!==e&&QT(l,s.slice(),i)})}var nu=[];function QT(r,e,t){var n=r.option;n.center=e,n.zoom=t}function C1(r,e){if(e){var t=e.min||0,n=e.max||1/0;r=Math.max(Math.min(n,r),t)}return r}function Ok(r,e){var t=e.getShallow("nodeScaleRatio",!0)||1,n=r;return((n.zoom-1)*t+1)/(n.trans[Gn].scaleX||1)}function sp(r,e,t,n,a,i,o,s){var l=Wh(r);if(!l){t.disable();return}t.enable(Q(r.get("roam"),o),{api:e,zInfo:{component:r},triggerInfo:{roamTrigger:r.get("roamTrigger"),isInSelf:n,isInClip:function(f,v,c){return!a||a.contain(v,c)}}});function u(f){var v=r.mainType,c=mS(le({type:Bk(v,r.subType,e2)},f));s&&(c.componentType=v),c[v+"Id"]=r.id,e.dispatchAction(c)}t.off("pan").off("zoom").on("pan",function(f){i&&i("pan"),u({dx:f.dx,dy:f.dy})}).on("zoom",function(f){i&&i("zoom"),u({zoom:f.scale,originX:f.originX,originY:f.originY})})}function Nk(r){return function(e,t,n){return Kg.copy(r.getBoundingRect()),Kg.applyTransform(r.getComputedTransform()),Kg.contain(t,n)}}var Kg=new se(0,0,0,0);function T1(r,e,t){var n=Bk(e,t,e2);r.registerAction({type:n,event:n,update:"none"},function(a,i,o){i.eachComponent(aS(a,e,t),function(s){Pk(a,s),Rk(a,s,i,o)})})}function Bk(r,e,t){return(r!==Vn?r:e==="map"?"geo":e)+t}function Vk(r){return r.zoom!=null}function A1(r,e,t,n,a,i,o){var s=new ip(null,kk(r.ecModel,e));return op(s,t,n,a,i),o?$h(s,o.x,o.y,o.width,o.height):$h(s,t,n,a,i),w1(s,r),s}var M1=["rect","circle","line","ellipse","polygon","polyline","path"],T8=K(M1),A8=K(M1.concat(["g"])),M8=K(M1.concat(["g"])),zk=me();function qv(r){var e=r.getItemStyle(),t=r.get("areaColor");return t!=null&&(e.fill=t),e}function eA(r){var e=r.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var Fk=(function(){function r(e){var t=this.group=new oe,n=this._transformGroup=new oe;t.add(n),this.uid=Zo("ec_map_draw"),this._controller=new ts(e.getZr()),n.add(this._regionsGroup=new oe),n.add(this._svgGroup=new oe)}return r.prototype.draw=function(e,t,n,a,i){var o=this,s=e.getData&&e.getData();Xs(e)&&t.eachComponent({mainType:"series",subType:"map"},function(p){!s&&p.getHostGeoModel()===e&&(s=p.getData())});var l=e.coordinateSystem,u=l.view,f=this._regionsGroup,v=this._transformGroup,c=!f.childAt(0)||i,h;l.shouldClip()?(h=S1(null,u),this.group.setClipPath(new be({shape:h.clone()}))):this.group.removeClipPath(),oi(v,No,u,c?null:e);var d=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0;l.resourceType==="geoJSON"?this._buildGeoJSON(u,n,l,e,s,d):l.resourceType==="geoSVG"&&this._buildSVG(u,n,l,e,s,d),sp(e,n,this._controller,function(p,g,y){return e.coordinateSystem.containPoint([g,y])},h,function(){o._mouseDownFlag=!1},!1,!0),this._updateMapSelectHandler(e,f,n,a)},r.prototype.__updateOnOwnRoam=function(e){oi(this._transformGroup,No,e.coordinateSystem.view,null)},r.prototype._buildGeoJSON=function(e,t,n,a,i,o){var s=this._regionsGroupByName=K(),l=K(),u=this._regionsGroup,f=n.projection,v=f&&f.stream,c=ni(Sf(null,e,Oo));function h(g,y){return y&&(g=y(g)),g&&st([],g,c)}function d(g){for(var y=[],m=!v&&f&&f.project,_=0;_<g.length;++_){var S=h(g[_],m);S&&y.push(S)}return y}function p(g){return{shape:{points:d(g)}}}u.removeAll(),M(n.regions,function(g){var y=g.name,m=s.get(y),_=l.get(y)||{},S=_.dataIdx,x=_.regionModel;if(!m){m=s.set(y,new oe),u.add(m),S=i?i.indexOfName(y):null,x=Xs(a)?a.getRegionModel(y):i?i.getItemModel(S):null;var w=x.get("silent",!0);w!=null&&(m.silent=w),l.set(y,{dataIdx:S,regionModel:x})}var b=[],T=[];M(g.geometries,function(D){if(D.type==="polygon"){var L=[D.exterior].concat(D.interiors||[]);v&&(L=oA(L,v)),M(L,function(P){b.push(new Zt(p(P)))})}else{var I=D.points;v&&(I=oA(I,v,!0)),M(I,function(P){T.push(new Bt(p(P)))})}});var C=h(g.getCenter(),f&&f.project);function A(D,L){if(D.length){var I=new Nd({culling:!0,segmentIgnoreThreshold:1,shape:{paths:D}});m.add(I),tA(t,i,o,I,S,x),rA(a,i,I,y,x,S,C),L&&(eA(I),M(I.states,eA))}}A(b),A(T,!0)}),s.each(function(g,y){var m=l.get(y),_=m.dataIdx,S=m.regionModel;nA(a,i,g,y,S,_),aA(a,i,g,y,S),iA(a,g,y,S)},this)},r.prototype._buildSVG=function(e,t,n,a,i,o){var s=n.map;Sf(this._svgGroup,e,Oo),this._svgResourceChanged(s)&&(this._freeSVG(),this._useSVG(s));var l=this._svgDispatcherMap=K(),u=!1;M(this._svgGraphicRecord.named,function(f){var v=f.name,c=f.svgNodeTagLower,h=f.el,d=i?i.indexOfName(v):null,p=a.getRegionModel(v);T8.get(c)!=null&&h instanceof Ur&&tA(t,i,o,h,d,p),h instanceof Ur&&(h.culling=!0);var g=p.get("silent",!0);if(g!=null&&(h.silent=g),h.z2EmphasisLift=0,!f.namedFrom&&(M8.get(c)!=null&&rA(a,i,h,v,p,d,null),nA(a,i,h,v,p,d),aA(a,i,h,v,p),A8.get(c)!=null)){var y=iA(a,h,v,p);y==="self"&&(u=!0);var m=l.get(v)||l.set(v,[]);m.push(h)}},this),this._enableBlurEntireSVG(u,a)},r.prototype._enableBlurEntireSVG=function(e,t){if(e&&Xs(t)){var n=t.getModel(["blur","itemStyle"]).getItemStyle(),a=n.opacity;this._svgGraphicRecord.root.traverse(function(i){if(!i.isGroup){Co(i);var o=i.ensureState("blur").style||{};o.opacity==null&&a!=null&&(o.opacity=a),i.ensureState("emphasis")}})}},r.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.disable()},r.prototype.findHighDownDispatchers=function(e,t){if(e==null)return[];var n=t.coordinateSystem;if(n.resourceType==="geoJSON"){var a=this._regionsGroupByName;if(a){var i=a.get(e);return i?[i]:[]}}else if(n.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=ya.getGeoResource(e);if(t&&t.type==="geoSVG"){var n=t.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=e}},r.prototype._freeSVG=function(){var e=this._svgMapName;if(e!=null){var t=ya.getGeoResource(e);t&&t.type==="geoSVG"&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},r.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var t=e.getTextContent();t&&(t.ignore=zk(t).ignore)})},r.prototype._updateMapSelectHandler=function(e,t,n,a){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 tA(r,e,t,n,a,i){var o=i.getModel("itemStyle"),s=i.getModel(["emphasis","itemStyle"]),l=i.getModel(["blur","itemStyle"]),u=i.getModel(["select","itemStyle"]),f=qv(o),v=qv(s),c=qv(u),h=qv(l);if(e){var d=e.getItemVisual(a,"style"),p=e.getItemVisual(a,"decal");t&&d.fill&&(f.fill=d.fill),p&&(f.decal=nl(p,r))}n.setStyle(f),n.style.strokeNoScale=!0,n.ensureState("emphasis").style=v,n.ensureState("select").style=c,n.ensureState("blur").style=h,Co(n)}function rA(r,e,t,n,a,i,o){var s=e&&isNaN(e.get(e.mapDimension("value"),i)),l=e&&e.getItemLayout(i);if(Xs(r)||s||l&&l.showLabel){var u=Xs(r)?n:i,f=void 0;(!e||i>=0)&&(f=r);var v=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Mt(t,St(a),{labelFetcher:f,labelDataIndex:u,defaultText:n},v);var c=t.getTextContent();if(c&&(zk(c).ignore=c.ignore,t.textConfig&&o)){var h=t.getBoundingRect().clone();t.textConfig.layoutRect=h,t.textConfig.position=[(o[0]-h.x)/h.width*100+"%",(o[1]-h.y)/h.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function nA(r,e,t,n,a,i){e?e.setItemGraphicEl(i,t):ve(t).eventData={componentType:"geo",componentIndex:r.componentIndex,geoIndex:r.componentIndex,name:n,region:a&&a.option||{}}}function aA(r,e,t,n,a){e||xa({el:t,componentModel:r,itemName:n,itemTooltipOption:a.get("tooltip")})}function iA(r,e,t,n){e.highDownSilentOnTouch=!!r.get("selectedMode");var a=n.getModel("emphasis"),i=a.get("focus");return et(e,i,a.get("blurScope"),a.get("disabled")),Xs(r)&&P5(e,r,t),i}function oA(r,e,t){var n=[],a;function i(){a=[]}function o(){a.length&&(n.push(a),a=[])}var s=e({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&a.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),M(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(),n}function Xs(r){return r.mainType==="geo"}var Bo="map",D8=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.getTooltipPosition=function(n){if(n!=null){var a=this.getData().getName(n),i=this.coordinateSystem,o=i.getRegion(a);return o&&i.dataToPoint(o.getCenter())}},t}return e.prototype.getInitialData=function(t){for(var n=Rl(this,{coordDimensions:["value"],encodeDefaulter:xe(PS,this)}),a=K(),i=[],o=0,s=n.count();o<s;o++){var l=n.getName(o);a.set(l,o)}var u=ya.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return M(u.regions,function(f){var v=f.name,c=a.get(v),h=f.properties&&f.properties.echartsStyle,d;c==null?(d={name:v},i.push(d)):d=n.getRawDataItem(c),h&&_e(d,h)}),n.appendData(i),n},e.prototype.getHostGeoModel=function(){if(rP(this).kind!==tP)return this.getReferringComponents("geo",{useDefault:!1,enableAll:!1,enableNone:!1}).models[0]},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(t){var n=this.getData();return n.get(n.mapDimension("value"),t)},e.prototype.getRegionModel=function(t){var n=this.getData();return n.getItemModel(n.indexOfName(t))},e.prototype.formatTooltip=function(t,n,a){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t),l=[];return M(this.seriesGroup.f,function(u){var f=u.originalData.indexOfName(s),v=i.mapDimension("value");isNaN(u.originalData.get(v,f))||l.push(u.name)}),pt("section",{header:l.join(", "),noHeader:!l.length,blocks:[pt("nameValue",{name:s,value:o})]})},e.prototype.getLegendIcon=function(t){var n=t.icon||"roundRect",a=gt(n,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return a.setStyle(t.itemStyle),a.style.stroke="none",n.indexOf("empty")>-1&&(a.style.stroke=a.style.fill,a.style.fill=N.color.neutral00,a.style.lineWidth=2),a},e.prototype.__ownRoamView=function(){return Yh(this)?this.coordinateSystem.view:null},e.type="series."+Bo,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:N.color.tertiary},itemStyle:{borderWidth:.5,borderColor:N.color.border,areaColor:N.color.background},emphasis:{label:{show:!0,color:N.color.primary},itemStyle:{areaColor:N.color.highlight}},select:{label:{show:!0,color:N.color.primary},itemStyle:{color:N.color.highlight}},nameProperty:"name"},e})(je);function Gk(r){return r.indexOf("i")===0}function Yh(r){return xf(r.seriesGroup)===r&&!r.getHostGeoModel()}function xf(r){return r.f[0]}function D1(r,e){var t={};return r.eachRawSeriesByType(Bo,function(n){var a=n.getHostGeoModel(),i=a?"o"+a.id:"i"+n.getMapType(),o=t[i]=t[i]||{f:[],r:[]};!r.isSeriesFiltered(n)&&!e&&o.f.push(n),o.r.push(n)}),t}var I8=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=Bo,t}return e.prototype.render=function(t,n,a,i){if(!(i&&i.type==="mapToggleSelect"&&i.from===this.uid)){var o=this.group;if(o.removeAll(),!t.getHostGeoModel()){var s=this._mapDraw;s&&i&&i.type==="geoRoam"&&s.resetForLabelLayout(),i&&i.type==="geoRoam"&&i.componentType==="series"&&i.seriesId===t.id?s&&o.add(s.group):Yh(t)?(s=s||(this._mapDraw=new Fk(a)),o.add(s.group),s.draw(t,n,a,this,i)):this._clearMapDraw(),t.get("showLegendSymbol")&&n.getComponent("legend")&&this._renderSymbols(t)}}},e.prototype.__updateOnOwnRoam=function(t,n,a){var i=this._mapDraw;Yh(n)&&i&&i.__updateOnOwnRoam(n)},e.prototype.remove=function(){this._clearMapDraw(),this.group.removeAll()},e.prototype.dispose=function(){this._clearMapDraw()},e.prototype._clearMapDraw=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(t){var n=t.originalData,a=this.group;n.each(n.mapDimension("value"),function(i,o){if(!isNaN(i)){var s=n.getItemLayout(o);if(!(!s||!s.point)){var l=s.point,u=s.offset,f=new Sa({style:{fill:t.getData().getVisual("style").fill},shape:{cx:l[0]+u*9,cy:l[1],r:3},silent:!0,z2:8+(u?0:wl+1)});if(!u){var v=xf(t.seriesGroup).getData(),c=n.getName(o),h=v.indexOfName(c),d=n.getItemModel(o),p=d.getModel("label"),g=v.getItemGraphicEl(h);Mt(f,St(d),{labelFetcher:{getFormattedLabel:function(y,m){return t.getFormattedLabel(h,m)}},defaultText:c}),f.disableLabelAnimation=!0,p.get("position")||f.setTextConfig({position:"bottom"}),g.onHoverStateChange=function(y){ch(f,y)}}a.add(f)}}})},e.type=Bo,e})(Ue),L8={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},Hk=["lng","lat"],sA=(function(r){B(e,r);function e(t,n,a){var i=r.call(this)||this;i.dimensions=Hk,i.type="geo",i._nameCoordMap=K(),i.name=t;var o=a.projection,s=ya.load(n,a.nameMap,a.nameProperty),l=ya.getGeoResource(n);i.resourceType=l?l.type:null;var u=i.regions=s.regions,f=L8[l.type];i._clip=a.clip;var v=o?!1:f.invertLongitute;i.view=new ip(v,kk(a.ecModel,a.api),i),i.map=n,i._regionsMap=s.regionsMap,i.regions=s.regions,i.projection=o;var c;if(o)for(var h=0;h<u.length;h++){var d=u[h].getBoundingRect(o);c=c||d.clone(),c.union(d)}else c=s.boundingRect;return op(i.view,c.x,c.y,c.width,c.height),i.aspectScale=o?1:Q(a.aspectScale,f.aspectScale),i}return e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){for(var n=this.regions,a=0;a<n.length;a++){var i=n[a];if(i.type==="geoJSON"&&i.contain(t))return n[a]}},e.prototype.addGeoCoord=function(t,n){this._nameCoordMap.set(t,n)},e.prototype.getGeoCoord=function(t){var n=this._regionsMap.get(t);return this._nameCoordMap.get(t)||n&&n.getCenter()},e.prototype.dataToPoint=function(t,n,a){if(Z(t)&&(t=this.getGeoCoord(t)),t){var i=this.projection;return i&&(t=i.project(t)),t&&this.view.dataToPoint(t,n,a)}},e.prototype.pointToData=function(t,n,a){var i=this.projection;return i&&(t=i.unproject(t)),t&&this.view.pointToData(t,a)},e.prototype.convertToPixel=function(t,n,a){var i=lA(n);return i===this?i.dataToPoint(a):null},e.prototype.convertFromPixel=function(t,n,a){var i=lA(n);return i===this?i.pointToData(a):null},e.prototype.containPoint=function(t){return this.view.containPoint(t)},e.prototype.getArea=function(t){t=t||0;var n=S1(null,this.view);return n.x-=t,n.y-=t,n.width+=2*t,n.height+=2*t,n},e.prototype.shouldClip=function(){return this._clip},e.prototype.getBoundingRect=function(){return this.view.getBoundingRect()},e.prototype.getViewRect=function(){return this.view.getViewRect()},e.prototype.getRoamTransform=function(){return this.view.getRoamTransform()},e})(Un);function lA(r){var e=r.geoModel,t=r.seriesModel;return e?e.coordinateSystem:t?t.coordinateSystem||(t.getReferringComponents("geo",at).models[0]||{}).coordinateSystem:null}function uA(r,e){var t=this.view,n=r.get("boundingCoords");if(n!=null){var a=n[0],i=n[1];if(isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])){var o=this.projection;if(o){var s=a[0],l=a[1],u=i[0],f=i[1];a=[1/0,1/0],i=[-1/0,-1/0];var v=function(w,b,T,C){for(var A=T-w,D=C-b,L=0;L<=100;L++){var I=L/100,P=o.project([w+A*I,b+D*I]);Ba(a,a,P),Va(i,i,P)}};v(s,l,u,l),v(u,l,u,f),v(u,f,s,f),v(s,f,u,l)}op(t,a[0],a[1],i[0]-a[0],i[1]-a[1])}}var c=t.getBoundingRect(),h=r.get("layoutCenter"),d=r.get("layoutSize"),p=bt(r,e).refContainer,g=c.width/c.height*this.aspectScale,y=!1,m,_;h&&d&&(m=[j(h[0],p.width)+p.x,j(h[1],p.height)+p.y],_=j(d,Math.min(p.width,p.height)),!isNaN(m[0])&&!isNaN(m[1])&&!isNaN(_)&&(y=!0));var S;if(y)S={},g>1?(S.width=_,S.height=_/g):(S.height=_,S.width=_*g),S.y=m[1]-S.height/2,S.x=m[0]-S.width/2;else{var x=r.getBoxLayoutParams();x.aspect=g,S=tt(x,p),S=sP(r,S,g)}$h(t,S.x,S.y,S.width,S.height),w1(t,r)}function P8(r,e){M(e.get("geoCoord"),function(t,n){r.addGeoCoord(n,t)})}var R8=(function(){function r(){this.dimensions=Hk}return r.prototype.create=function(e,t){var n=[];function a(i){return{nameProperty:i.get("nameProperty"),aspectScale:i.get("aspectScale"),projection:i.get("projection"),clip:i.getShallow("clip",!0)}}return e.eachComponent("geo",function(i,o){var s=i.get("map"),l=new sA(s+o,s,G({nameMap:i.get("nameMap"),api:t,ecModel:e},a(i)));n.push(l),i.coordinateSystem=l,l.model=i,l.resize=uA,l.resize(i,t)}),e.eachSeries(function(i){Ff({targetModel:i,coordSysType:"geo",coordSysProvider:function(){var o=i.subType===Bo?i.getHostGeoModel():i.getReferringComponents("geo",at).models[0];return o&&o.coordinateSystem},allowNotFound:!0})}),M(D1(e,!0),function(i,o){if(Gk(o)){var s=i.r[0],l=[];M(i.r,function(c){l.push(c.get("nameMap")),c.seriesGroup=null});var u=o.slice(1),f=new sA(u,u,G({nameMap:W_(l),api:t,ecModel:e},a(s))),v;M(i.r,function(c){v=Q(v,c.get("scaleLimit"))}),n.push(f),f.resize=uA,f.resize(s,t),M(i.r,function(c){c.coordinateSystem=f,P8(f,c)})}}),n},r.prototype.getFilledRegions=function(e,t,n,a){for(var i=(e||[]).slice(),o=K(),s=0;s<i.length;s++)o.set(i[s].name,i[s]);var l=ya.load(t,n,a);return M(l.regions,function(u){var f=u.name,v=o.get(f),c=u.properties&&u.properties.echartsStyle;v||(v={name:f},i.push(v)),c&&_e(v,c)}),i},r})(),Uk=new R8,E8=(function(r){B(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,n,a){this.mergeDefaultAndTheme(t,a);var i=ya.getGeoResource(t.map);if(i&&i.type==="geoJSON"){var o=t.itemStyle=t.itemStyle||{};"color"in o||(o.color=t.defaultItemStyleColor||N.color.backgroundTint)}So(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,n=this.option;n.regions=Uk.getFilledRegions(n.regions,n.map,n.nameMap,n.nameProperty);var a={};this._optionModelMap=En(n.regions||[],function(i,o){var s=o.name;return s&&(i.set(s,new Ie(o,t,t.ecModel)),o.selected&&(a[s]=!0)),i},K()),n.selectedMap||(n.selectedMap=a)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new Ie(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,n){var a=this.getRegionModel(t),i=n==="normal"?a.get(["label","formatter"]):a.get(["emphasis","label","formatter"]),o={name:t};if(ie(i))return o.status=n,i(o);if(Z(i))return i.replace("{a}",t??"")},e.prototype.select=function(t){var n=this.option,a=n.selectedMode;if(a){a!=="multiple"&&(n.selectedMap=null);var i=n.selectedMap||(n.selectedMap={});i[t]=!0}},e.prototype.unSelect=function(t){var n=this.option.selectedMap;n&&(n[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var n=this.option.selectedMap;return!!(n&&n[t])},e.prototype.__ownRoamView=function(){return this.coordinateSystem.view},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:N.color.tertiary},itemStyle:{borderWidth:.5,borderColor:N.color.border},emphasis:{label:{show:!0,color:N.color.primary},itemStyle:{color:N.color.highlight}},select:{label:{show:!0,color:N.color.primary},itemStyle:{color:N.color.highlight}},regions:[]},e})(Me),k8=(function(r){B(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,n){this._api=n},e.prototype.render=function(t,n,a,i){if(this._model=t,!t.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new Fk(a));var o=this._mapDraw;o.draw(t,n,a,this,i),o.group.on("click",this._handleRegionClick,this),o.group.silent=t.get("silent"),this.group.add(o.group),this.updateSelectStatus(t,n,a)},e.prototype.__updateOnOwnRoam=function(t,n,a){var i=this._mapDraw;i&&i.__updateOnOwnRoam(n)},e.prototype._handleRegionClick=function(t){var n;so(t.target,function(a){return(n=ve(a).eventData)!=null},!0),n&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:n.name})},e.prototype.updateSelectStatus=function(t,n,a){var i=this;this._mapDraw.group.traverse(function(o){var s=ve(o).eventData;if(s)return i._model.isSelected(s.name)?a.enterSelect(o):a.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 O8(r,e,t){ya.registerMap(r,e,t)}function $k(r){r.registerCoordinateSystem("geo",Uk),r.registerComponentModel(E8),r.registerComponentView(k8),r.registerImpl("registerMap",O8),r.registerImpl("getMap",function(t){return ya.getMapForUser(t)});function e(t,n){n.update="geo:updateSelectStatus",r.registerAction(n,function(a,i){var o={},s=[];return i.eachComponent({mainType:"geo",query:a},function(l){l[t](a.name);var u=l.coordinateSystem;M(u.regions,function(v){o[v.name]=l.isSelected(v.name)||!1});var f=[];M(o,function(v,c){o[c]&&f.push(c)}),s.push({geoIndex:l.componentIndex,name:f})}),{selected:o,allSelected:s,name:a.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,n,a){var i=t.componentType||(t.geoId!=null||t.geoName!=null||t.geoIndex!=null?"geo":Vn),o=i===Vn;if(!(i!=="geo"&&!o)){var s=o?"map":null;n.eachComponent(aS(t,i,s),function(l){o&&!Yh(l)||(Pk(t,l,o?l.seriesGroup.r:null),Rk(t,l,n,a))})}})}var N8=wt(Bo,B8);function B8(r){M(D1(r),function(e,t){if(!(!xf(e)||!Gk(t))){var n={};M(e.f,function(i){var o=i.coordinateSystem,s=i.originalData;i.get("showLegendSymbol")&&r.getComponent("legend")&&s.each(s.mapDimension("value"),function(l,u){var f=s.getName(u),v=o.getRegion(f);if(!(!v||isNaN(l))){var c=n[f]||0,h=o.dataToPoint(v.getCenter());n[f]=c+1,s.setItemLayout(u,{point:h,offset:c})}})});var a=xf(e).getData();a.each(function(i){var o=a.getName(i),s=a.getItemLayout(i)||{};s.showLabel=!n[o],a.setItemLayout(i,s)})}})}function V8(r,e){var t={};return M(r,function(n){n.each(n.mapDimension("value"),function(a,i){var o="ec-"+n.getName(i);t[o]=t[o]||[],isNaN(a)||t[o].push(a)})}),r[0].map(r[0].mapDimension("value"),function(n,a){for(var i="ec-"+r[0].getName(a),o=0,s=1/0,l=-1/0,u=t[i].length,f=0;f<u;f++)s=Math.min(s,t[i][f]),l=Math.max(l,t[i][f]),o+=t[i][f];var v;return e==="min"?v=s:e==="max"?v=l:e==="average"?v=o/u:v=o,u===0?NaN:v})}var z8=wt(Bo,F8);function F8(r){M(D1(r),function(e){var t=xf(e);if(t){var n=V8($(e.f,function(a){return a.getData()}),t.get("mapValueCalculation"));M(e.f,function(a){a.seriesGroup=e,a.originalData=a.getData(),a.setData(n.cloneShallow())})}})}function G8(r){Se($k),r.registerChartView(I8),r.registerSeriesModel(D8),r.registerLayout(N8),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,z8),KP("map",r.registerAction)}function H8(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],n,a;n=t.pop();)if(a=n.children,n.isExpand&&a.length)for(var i=a.length,o=i-1;o>=0;o--){var s=a[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},t.push(s)}}function U8(r,e){var t=r.isExpand?r.children:[],n=r.parentNode.children,a=r.hierNode.i?n[r.hierNode.i-1]:null;if(t.length){W8(r);var i=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;a?(r.hierNode.prelim=a.hierNode.prelim+e(r,a),r.hierNode.modifier=r.hierNode.prelim-i):r.hierNode.prelim=i}else a&&(r.hierNode.prelim=a.hierNode.prelim+e(r,a));r.parentNode.hierNode.defaultAncestor=Y8(r,a,r.parentNode.hierNode.defaultAncestor||n[0],e)}function $8(r){var e=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:e},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function fA(r){return arguments.length?r:j8}function Cu(r,e){return r-=Math.PI/2,{x:e*Math.cos(r),y:e*Math.sin(r)}}function W8(r){for(var e=r.children,t=e.length,n=0,a=0;--t>=0;){var i=e[t];i.hierNode.prelim+=n,i.hierNode.modifier+=n,a+=i.hierNode.change,n+=i.hierNode.shift+a}}function Y8(r,e,t,n){if(e){for(var a=r,i=r,o=i.parentNode.children[0],s=e,l=a.hierNode.modifier,u=i.hierNode.modifier,f=o.hierNode.modifier,v=s.hierNode.modifier;s=Jg(s),i=Qg(i),s&&i;){a=Jg(a),o=Qg(o),a.hierNode.ancestor=r;var c=s.hierNode.prelim+v-i.hierNode.prelim-u+n(s,i);c>0&&(Z8(X8(s,r,t),r,c),u+=c,l+=c),v+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=a.hierNode.modifier,f+=o.hierNode.modifier}s&&!Jg(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=v-l),i&&!Qg(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-f,t=r)}return t}function Jg(r){var e=r.children;return e.length&&r.isExpand?e[e.length-1]:r.hierNode.thread}function Qg(r){var e=r.children;return e.length&&r.isExpand?e[0]:r.hierNode.thread}function X8(r,e,t){return r.hierNode.ancestor.parentNode===e.parentNode?r.hierNode.ancestor:t}function Z8(r,e,t){var n=t/(e.hierNode.i-r.hierNode.i);e.hierNode.change-=n,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,r.hierNode.change+=n}function j8(r,e){return r.parentNode===e.parentNode?1:2}var Fr=me();function Wk(r){var e=r.mainData,t=r.datas;t||(t={main:e},r.datasAttr={main:"data"}),r.datas=r.mainData=null,Yk(e,t,r),M(t,function(n){M(e.TRANSFERABLE_METHODS,function(a){n.wrapMethod(a,xe(q8,r))})}),e.wrapMethod("cloneShallow",xe(J8,r)),M(e.CHANGABLE_METHODS,function(n){e.wrapMethod(n,xe(K8,r))}),Yt(t[e.dataType]===e)}function q8(r,e){if(t7(this)){var t=G({},Fr(this).datas);t[this.dataType]=e,Yk(e,t,r)}else I1(e,this.dataType,Fr(this).mainData,r);return e}function K8(r,e){return r.struct&&r.struct.update(),e}function J8(r,e){return M(Fr(e).datas,function(t,n){t!==e&&I1(t.cloneShallow(),n,e,r)}),e}function Q8(r){var e=Fr(this).mainData;return r==null||e==null?e:Fr(e).datas[r]}function e7(){var r=Fr(this).mainData;return r==null?[{data:r}]:$(De(Fr(r).datas),function(e){return{type:e,data:Fr(r).datas[e]}})}function t7(r){return Fr(r).mainData===r}function Yk(r,e,t){Fr(r).datas={},M(e,function(n,a){I1(n,a,r,t)})}function I1(r,e,t,n){Fr(t).datas[e]=r,Fr(r).mainData=t,r.dataType=e,n.struct&&(r[n.structAttr]=n.struct,n.struct[n.datasAttr[e]]=r),r.getLinkedData=Q8,r.getLinkedDataAll=e7}var r7=(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,n){ie(e)&&(n=t,t=e,e=null),e=e||{},Z(e)&&(e={order:e});var a=e.order||"preorder",i=this[e.attr||"children"],o;a==="preorder"&&(o=t.call(n,this));for(var s=0;!o&&s<i.length;s++)i[s].eachNode(e,t,n);a==="postorder"&&t.call(n,this)},r.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var n=0;n<this.children.length;n++){var a=this.children[n];a.updateDepthAndHeight(e+1),a.height>t&&(t=a.height)}this.height=t+1},r.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,a=n.length;t<a;t++){var i=n[t].getNodeById(e);if(i)return i}},r.prototype.contains=function(e){if(e===this)return!0;for(var t=0,n=this.children,a=n.length;t<a;t++){var i=n[t].contains(e);if(i)return i}},r.prototype.getAncestors=function(e){for(var t=[],n=e?this:this.parentNode;n;)t.push(n),n=n.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,n=t.data.getItemModel(this.dataIndex);return n.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})(),L1=(function(){function r(e){this.type="tree",this._nodes=[],this.hostModel=e}return r.prototype.eachNode=function(e,t,n){this.root.eachNode(e,t,n)},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,n=0,a=t.length;n<a;n++)t[n].dataIndex=-1;for(var n=0,a=e.count();n<a;n++)t[e.getRawIndex(n)].dataIndex=n},r.prototype.clearLayouts=function(){this.data.clearItemLayouts()},r.createTree=function(e,t,n){var a=new r(t),i=[],o=1;s(e);function s(f,v){var c=f.value;o=Math.max(o,U(c)?c.length:1),i.push(f);var h=new r7(mt(f.name,""),a);v?n7(h,v):a.root=h,a._nodes.push(h);var d=f.children;if(d)for(var p=0;p<d.length;p++)s(d[p],h)}a.root.updateDepthAndHeight(0);var l=Hf(i,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new nr(l,t);return u.initData(i),n&&n(u),Wk({mainData:u,struct:a,structAttr:"tree"}),a.update(),a},r})();function n7(r,e){var t=e.children;r.parentNode!==e&&(t.push(r),r.parentNode=e)}function wf(r,e,t){if(r&&pe(e,r.type)>=0){var n=t.getData().tree.root,a=r.targetNode;if(Z(a)&&(a=n.getNodeById(a)),a&&n.contains(a))return{node:a};var i=r.targetNodeId;if(i!=null&&(a=n.getNodeById(i)))return{node:a}}}function Xk(r){for(var e=[];r;)r=r.parentNode,r&&e.push(r);return e.reverse()}function P1(r,e){var t=Xk(r);return pe(t,e)>=0}function lp(r,e){for(var t=[];r;){var n=r.dataIndex;t.push({name:r.name,dataIndex:n,value:e.getRawValue(n)}),r=r.parentNode}return t.reverse(),t}var Vo="tree",a7=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t){var n={name:t.name,children:t.data},a=t.leaves||{},i=new Ie(a,this,this.ecModel),o=L1.createTree(n,this,s);function s(v){v.wrapMethod("getItemModel",function(c,h){var d=o.getNodeByDataIndex(h);return d&&d.children.length&&d.isExpand||(c.parentModel=i),c})}var l=0;o.eachNode("preorder",function(v){v.depth>l&&(l=v.depth)});var u=t.expandAndCollapse,f=u&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return o.root.eachNode("preorder",function(v){var c=v.hostTree.data.getRawDataItem(v.dataIndex);v.isExpand=c&&c.collapsed!=null?!c.collapsed:v.depth<=f}),o.data},e.prototype.getOrient=function(){var t=this.get("orient");return t==="horizontal"?t="LR":t==="vertical"&&(t="TB"),t},e.prototype.formatTooltip=function(t,n,a){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 pt("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(t){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=lp(a,this),n.collapsed=!a.isExpand,n},e.prototype.__ownRoamView=function(){return this.coordinateSystem},e.type="series."+Vo,e.layoutMode="box",e.defaultOption={z:2,coordinateSystemUsage:"box",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,roamTrigger:"global",nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:N.color.borderTint,width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e})(je),i7=(function(){function r(){this.parentPoint=[],this.childPoints=[]}return r})(),o7=(function(r){B(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:N.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new i7},e.prototype.buildPath=function(t,n){var a=n.childPoints,i=a.length,o=n.parentPoint,s=a[0],l=a[i-1];if(i===1){t.moveTo(o[0],o[1]),t.lineTo(s[0],s[1]);return}var u=n.orient,f=u==="TB"||u==="BT"?0:1,v=1-f,c=j(n.forkPosition,1),h=[];h[f]=o[f],h[v]=o[v]+(l[v]-o[v])*c,t.moveTo(o[0],o[1]),t.lineTo(h[0],h[1]),t.moveTo(s[0],s[1]),h[f]=s[f],t.lineTo(h[0],h[1]),h[f]=l[f],t.lineTo(h[0],h[1]),t.lineTo(l[0],l[1]);for(var d=1;d<i-1;d++){var p=a[d];t.moveTo(p[0],p[1]),h[f]=p[f],t.lineTo(h[0],h[1])}},e})(Ae),s7=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=Vo,t._mainGroup=new oe,t}return e.prototype.init=function(t,n){this._controller=new ts(n.getZr()),this.group.add(this._mainGroup),this._firstRender=!0},e.prototype.render=function(t,n,a){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,a),sp(t,a,this._controller,Nk(this.group),null);var u=this._data;i.diff(u).add(function(f){vA(i,f)&&cA(i,f,null,s,t)}).update(function(f,v){var c=u.getItemGraphicEl(v);if(!vA(i,f)){c&&dA(u,v,c,s,t);return}cA(i,f,c,s,t)}).remove(function(f){var v=u.getItemGraphicEl(f);v&&dA(u,f,v,s,t)}).execute(),this._updateNodeAndLinkScale(t),t.get("expandAndCollapse")===!0&&i.eachItemGraphicEl(function(f,v){f.off("click").on("click",function(){a.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:v})})}),this._data=i,this._firstRender=!1},e.prototype.__updateOnOwnRoam=function(t,n,a){oi(this.group,Gn,n.coordinateSystem,null),Vk(t)&&this._updateNodeAndLinkScale(n)},e.prototype._updateViewCoordSys=function(t,n){var a=t.getData(),i=[];a.each(function(v){var c=a.getItemLayout(v);c&&!isNaN(c.x)&&!isNaN(c.y)&&i.push([+c.x,+c.y])});var o=[],s=[];Id(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 f=t.coordinateSystem=A1(t,n,o[0],o[1],s[0]-o[0],s[1]-o[1]);oi(this.group,Gn,f,this._firstRender?null:t),this._min=o,this._max=s},e.prototype._updateNodeAndLinkScale=function(t){var n=t.getData(),a=Ok(t.coordinateSystem,t);n.eachItemGraphicEl(function(i,o){i.setSymbolScale(a)})},e.prototype.dispose=function(){this._controller&&this._controller.dispose()},e.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},e.type=Vo,e})(Ue);function vA(r,e){var t=r.getItemLayout(e);return t&&!isNaN(t.x)&&!isNaN(t.y)}function cA(r,e,t,n,a){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:N.color.neutral00,f=r.tree.root,v=o.parentNode===f?o:o.parentNode||o,c=r.getItemGraphicEl(v.dataIndex),h=v.getLayout(),d=c?{x:c.__oldX,y:c.__oldY,rawX:c.__radialOldRawX,rawY:c.__radialOldRawY}:h,p=o.getLayout();i?(t=new Zf(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,n.add(t),r.setItemGraphicEl(e,t),t.__oldX=t.x,t.__oldY=t.y,Oe(t,{x:p.x,y:p.y},a);var g=t.getSymbolPath();if(a.get("layout")==="radial"){var y=f.children[0],m=y.getLayout(),_=y.children.length,S=void 0,x=void 0;if(p.x===m.x&&o.isExpand===!0&&y.children.length){var w={x:(y.children[0].getLayout().x+y.children[_-1].getLayout().x)/2,y:(y.children[0].getLayout().y+y.children[_-1].getLayout().y)/2};S=Math.atan2(w.y-m.y,w.x-m.x),S<0&&(S=Math.PI*2+S),x=w.x<m.x,x&&(S=S-Math.PI)}else S=Math.atan2(p.y-m.y,p.x-m.x),S<0&&(S=Math.PI*2+S),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(x=p.x<m.x,x&&(S=S-Math.PI)):(x=p.x>m.x,x||(S=S-Math.PI));var b=x?"left":"right",T=s.getModel("label"),C=T.get("rotate"),A=C*(Math.PI/180),D=g.getTextContent();D&&(g.setTextConfig({position:T.get("position")||b,rotation:C==null?-S:A,origin:"center"}),D.setStyle("verticalAlign","middle"))}var L=s.get(["emphasis","focus"]),I=L==="relative"?Wu(o.getAncestorsIndices(),o.getDescendantIndices()):L==="ancestor"?o.getAncestorsIndices():L==="descendant"?o.getDescendantIndices():null;I&&(ve(t).focus=I),l7(a,o,f,t,d,h,p,n),t.__edge&&(t.onHoverStateChange=function(P){if(P!=="blur"){var R=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);R&&R.hoverState===Ef||ch(t.__edge,P)}})}function l7(r,e,t,n,a,i,o,s){var l=e.getModel(),u=r.get("edgeShape"),f=r.get("layout"),v=r.getOrient(),c=r.get(["lineStyle","curveness"]),h=r.get("edgeForkPosition"),d=l.getModel("lineStyle").getLineStyle(),p=n.__edge;if(u==="curve")e.parentNode&&e.parentNode!==t&&(p||(p=n.__edge=new Of({shape:K0(f,v,c,a,a)})),Oe(p,{shape:K0(f,v,c,i,o)},r));else if(u==="polyline"&&f==="orthogonal"&&e!==t&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var g=e.children,y=[],m=0;m<g.length;m++){var _=g[m].getLayout();y.push([_.x,_.y])}p||(p=n.__edge=new o7({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:v,forkPosition:h}})),Oe(p,{shape:{parentPoint:[o.x,o.y],childPoints:y}},r)}p&&!(u==="polyline"&&!e.isExpand)&&(p.useStyle(le({strokeNoScale:!0,fill:null},d)),_t(p,l,"lineStyle"),Co(p),s.add(p))}function hA(r,e,t,n,a){var i=e.tree.root,o=Zk(i,r),s=o.source,l=o.sourceLayout,u=e.getItemGraphicEl(r.dataIndex);if(u){var f=e.getItemGraphicEl(s.dataIndex),v=f.__edge,c=u.__edge||(s.isExpand===!1||s.children.length===1?v:void 0),h=n.get("edgeShape"),d=n.get("layout"),p=n.get("orient"),g=n.get(["lineStyle","curveness"]);c&&(h==="curve"?ai(c,{shape:K0(d,p,g,l,l),style:{opacity:0}},n,{cb:function(){t.remove(c)},removeOpt:a}):h==="polyline"&&n.get("layout")==="orthogonal"&&ai(c,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},n,{cb:function(){t.remove(c)},removeOpt:a}))}}function Zk(r,e){for(var t=e.parentNode===r?e:e.parentNode||e,n;n=t.getLayout(),n==null;)t=t.parentNode===r?t:t.parentNode||t;return{source:t,sourceLayout:n}}function dA(r,e,t,n,a){var i=r.tree.getNodeByDataIndex(e),o=r.tree.root,s=Zk(o,i).sourceLayout,l={duration:a.get("animationDurationUpdate"),easing:a.get("animationEasingUpdate")};ai(t,{x:s.x+1,y:s.y+1},a,{cb:function(){n.remove(t),r.setItemGraphicEl(e,null)},removeOpt:l}),t.fadeOut(null,r.hostModel,{fadeLabel:!0,animation:l}),M(i.children,function(u){hA(u,r,n,a,l)}),hA(i,r,n,a,l)}function K0(r,e,t,n,a){var i,o,s,l,u,f,v,c;if(r==="radial"){u=n.rawX,v=n.rawY,f=a.rawX,c=a.rawY;var h=Cu(u,v),d=Cu(u,v+(c-v)*t),p=Cu(f,c+(v-c)*t),g=Cu(f,c);return{x1:h.x||0,y1:h.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=n.x,v=n.y,f=a.x,c=a.y,(e==="LR"||e==="RL")&&(i=u+(f-u)*t,o=v,s=f+(u-f)*t,l=c),(e==="TB"||e==="BT")&&(i=u,o=v+(c-v)*t,s=f,l=c+(v-c)*t);return{x1:u,y1:v,x2:f,y2:c,cpx1:i,cpy1:o,cpx2:s,cpy2:l}}function u7(r,e,t){for(var n=[r],a=[],i;i=n.pop();)if(a.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s<o.length;s++)n.push(o[s])}for(;i=a.pop();)e(i,t)}function au(r,e){for(var t=[r],n;n=t.pop();)if(e(n),n.isExpand){var a=n.children;if(a.length)for(var i=a.length-1;i>=0;i--)t.push(a[i])}}function f7(r,e){r.eachSeriesByType("tree",function(t){v7(t,e)})}function v7(r,e){var t=bt(r,e).refContainer,n=tt(r.getBoxLayoutParams(),t);r.layoutInfo=n;var a=r.get("layout"),i=0,o=0,s=null;a==="radial"?(i=2*Math.PI,o=Math.min(n.height,n.width)/2,s=fA(function(S,x){return(S.parentNode===x.parentNode?1:2)/S.depth})):(i=n.width,o=n.height,s=fA());var l=r.getData().tree.root,u=l.children[0];if(u){H8(l),u7(u,U8,s),l.hierNode.modifier=-u.hierNode.prelim,au(u,$8);var f=u,v=u,c=u;au(u,function(S){var x=S.getLayout().x;x<f.getLayout().x&&(f=S),x>v.getLayout().x&&(v=S),S.depth>c.depth&&(c=S)});var h=f===v?1:s(f,v)/2,d=h-f.getLayout().x,p=0,g=0,y=0,m=0;if(a==="radial")p=i/(v.getLayout().x+h+d),g=o/(c.depth-1||1),au(u,function(S){y=(S.getLayout().x+d)*p,m=(S.depth-1)*g;var x=Cu(y,m);S.setLayout({x:x.x,y:x.y,rawX:y,rawY:m},!0)});else{var _=r.getOrient();_==="RL"||_==="LR"?(g=o/(v.getLayout().x+h+d),p=i/(c.depth-1||1),au(u,function(S){m=(S.getLayout().x+d)*g,y=_==="LR"?(S.depth-1)*p:i-(S.depth-1)*p,S.setLayout({x:y,y:m},!0)})):(_==="TB"||_==="BT")&&(p=i/(v.getLayout().x+h+d),g=o/(c.depth-1||1),au(u,function(S){y=(S.getLayout().x+d)*p,m=_==="TB"?(S.depth-1)*g:o-(S.depth-1)*g,S.setLayout({x:y,y:m},!0)}))}}}function c7(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:Vn,subType:Vo,query:e},function(n){var a=e.dataIndex,i=n.getData().tree,o=i.getNodeByDataIndex(a);o.isExpand=!o.isExpand})}),T1(r,Vn,Vo)}var h7=wt(Vo,d7);function d7(r){r.eachSeriesByType(Vo,function(e){var t=e.getData(),n=t.tree;n.eachNode(function(a){var i=a.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=t.ensureUniqueItemVisual(a.dataIndex,"style");G(s,o)})})}function p7(r){r.registerChartView(s7),r.registerSeriesModel(a7),r.registerLayout(f7),r.registerVisual(h7),c7(r)}var pA=["treemapZoomToNode","treemapRender","treemapMove"];function g7(r){for(var e=0;e<pA.length;e++)r.registerAction({type:pA[e],update:"updateView"},ot);r.registerAction({type:"treemapRootToNode",update:"updateView"},function(t,n){n.eachComponent({mainType:"series",subType:"treemap",query:t},a);function a(i,o){var s=["treemapZoomToNode","treemapRootToNode"],l=wf(t,s,i);if(l){var u=i.getViewRoot();u&&(t.direction=P1(u,l.node)?"rollUp":"drillDown"),i.resetViewRoot(l.node)}}})}function jk(r){var e=r.getData(),t=e.tree,n={};t.eachNode(function(a){for(var i=a;i&&i.depth>1;)i=i.parentNode;var o=d0(r.ecModel,i.name||i.dataIndex+"",n);a.setVisual("decal",o)})}var y7=(function(r){B(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,n){var a={name:t.name,children:t.data};qk(a);var i=t.levels||[],o=this.designatedVisualItemStyle={},s=new Ie({itemStyle:o},this,n);i=t.levels=m7(i,n);var l=$(i||[],function(v){return new Ie(v,s,n)},this),u=L1.createTree(a,this,f);function f(v){v.wrapMethod("getItemModel",function(c,h){var d=u.getNodeByDataIndex(h),p=d?l[d.depth]:null;return c.parentModel=p||s,c})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,n,a){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t);return pt("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(t){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=lp(a,this),n.treePathInfo=n.treeAncestors,n},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},G(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var n=this._idIndexMap;n||(n=this._idIndexMap=K(),this._idIndexMapCount=0);var a=n.get(t);return a==null&&n.set(t,a=this._idIndexMapCount++),a},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var n=this.getRawData().tree.root;(!t||t!==n&&!n.contains(t))&&(this._viewRoot=n)},e.prototype.enableAriaDecal=function(){jk(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,coordinateSystemUsage:"box",left:N.size.l,top:N.size.xxxl,right:N.size.l,bottom:N.size.xxxl,sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,scaleLimit:{max:5,min:.2},roam:!0,roamTrigger:"global",nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",bottom:N.size.m,emptyItemWidth:25,itemStyle:{color:N.color.backgroundShade,textStyle:{color:N.color.secondary}},emphasis:{itemStyle:{color:N.color.background}}},label:{show:!0,distance:0,padding:5,position:"inside",color:N.color.neutral00,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:N.color.neutral00,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})(je);function qk(r){var e=0;M(r.children,function(n){qk(n);var a=n.value;U(a)&&(a=a[0]),e+=a});var t=r.value;U(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),U(r.value)?r.value[0]=t:r.value=t}function m7(r,e){var t=Ye(e.get("color")),n=Ye(e.get(["aria","decal","decals"]));if(t){r=r||[];var a,i;M(r,function(s){var l=new Ie(s),u=l.get("color"),f=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(a=!0),(l.get(["itemStyle","decal"])||f&&f!=="none")&&(i=!0)});var o=r[0]||(r[0]={});return a||(o.color=t.slice()),!i&&n&&(o.decal=n.slice()),r}}var _7=8,gA=8,ey=5,S7=(function(){function r(e){this.group=new oe,e.add(this.group)}return r.prototype.render=function(e,t,n,a){var i=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!n)){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),f=l.getModel(["itemStyle","textStyle"]),v=bt(e,t).refContainer,c={left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},h={emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]},d=tt(c,v);this._prepare(n,h,u),this._renderContent(e,h,d,s,l,u,f,a),Hd(o,c,v)}},r.prototype._prepare=function(e,t,n){for(var a=e;a;a=a.parentNode){var i=mt(a.getModel().get("name"),""),o=n.getTextRect(i),s=Math.max(o.width+_7*2,t.emptyItemWidth);t.totalWidth+=s+gA,t.renderList.push({node:a,text:i,width:s})}},r.prototype._renderContent=function(e,t,n,a,i,o,s,l){for(var u=0,f=t.emptyItemWidth,v=e.get(["breadcrumb","height"]),c=t.totalWidth,h=t.renderList,d=i.getModel("itemStyle").getItemStyle(),p=h.length-1;p>=0;p--){var g=h[p],y=g.node,m=g.width,_=g.text;c>n.width&&(c-=m-f,m=f,_=null);var S=new Zt({shape:{points:x7(u,0,m,v,p===h.length-1,p===0)},style:le(a.getItemStyle(),{lineJoin:"bevel"}),textContent:new Re({style:Ze(o,{text:_})}),textConfig:{position:"inside"},z2:wl*1e4,onclick:xe(l,y)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=Ze(s,{text:_}),S.ensureState("emphasis").style=d,et(S,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(S),w7(S,e,y),u+=m+gA}},r.prototype.remove=function(){this.group.removeAll()},r})();function x7(r,e,t,n,a,i){var o=[[a?r:r-ey,e],[r+t,e],[r+t,e+n],[a?r:r-ey,e+n]];return!i&&o.splice(2,0,[r+t+ey,e+n/2]),!a&&o.push([r,e+n/2]),o}function w7(r,e,t){ve(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&&lp(t,e)}}var b7=(function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(e,t,n,a,i){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:n,delay:a,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,n=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},a=0,i=this._storage.length;a<i;a++){var o=this._storage[a];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},r})();function C7(){return new b7}var bf=Math.max,Xh=Math.min,R1=M,Kk=["itemStyle","borderWidth"],T7=["itemStyle","gapWidth"],A7=["upperLabel","show"],M7=["upperLabel","height"];const D7={seriesType:"treemap",reset:function(r,e,t,n){var a=r.option,i=bt(r,t).refContainer,o=tt(r.getBoxLayoutParams(),i),s=n&&n.type,l=["treemapZoomToNode","treemapRootToNode"],u=wf(n,l,r),f=s==="treemapRender"||s==="treemapMove"?n.rootRect:null,v=r.getViewRoot(),c=Xk(v);if(s!=="treemapMove"){var h=!1,d=s==="treemapZoomToNode"?(h=!0,k7(r,u,v,o)):f?(h=!0,G({},f)):G({},o);if(h){var p=tO(o,d);p=rO(p,r),d.width=o.width*p,d.height=o.height*p}var g=a.sort;g&&g!=="asc"&&g!=="desc"&&(g="desc");var y={squareRatio:a.squareRatio,sort:g,leafDepth:a.leafDepth};v.hostTree.clearLayouts();var m={x:0,y:0,width:d.width,height:d.height,area:d.width*d.height};v.setLayout(m),Jk(v,y,!1,0),m=v.getLayout(),R1(c,function(S,x){var w=(c[x+1]||v).getValue();S.setLayout(G({dataExtent:[w,w],borderWidth:0,upperHeight:0},m))})}var _=r.getData().tree.root;_.setLayout(O7(o,f,u),!0),r.setLayoutInfo(o),Qk(_,new se(-o.x,-o.y,t.getWidth(),t.getHeight()),c,v,0)}};function Jk(r,e,t,n){var a,i;if(!r.isRemoved()){var o=r.getLayout();a=o.width,i=o.height;var s=r.getModel(),l=s.get(Kk),u=s.get(T7)/2,f=eO(s),v=Math.max(l,f),c=l-u,h=v-u;r.setLayout({borderWidth:l,upperHeight:v,upperLabelHeight:f},!0),a=bf(a-2*c,0),i=bf(i-c-h,0);var d=a*i,p=I7(r,s,d,e,t,n);if(p.length){var g={x:c,y:h,width:a,height:i},y=Xh(a,i),m=1/0,_=[];_.area=0;for(var S=0,x=p.length;S<x;){var w=p[S];_.push(w),_.area+=w.getLayout().area;var b=E7(_,y,e.squareRatio);b<=m?(S++,m=b):(_.area-=_.pop().getLayout().area,yA(_,y,g,u,!1),y=Xh(g.width,g.height),_.length=_.area=0,m=1/0)}if(_.length&&yA(_,y,g,u,!0),!t){var T=s.get("childrenVisibleMin");T!=null&&d<T&&(t=!0)}for(var S=0,x=p.length;S<x;S++)Jk(p[S],e,t,n+1)}}}function I7(r,e,t,n,a,i){var o=r.children||[],s=n.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=n.leafDepth!=null&&n.leafDepth<=i;if(a&&!l)return r.viewChildren=[];o=Fe(o,function(h){return!h.isRemoved()}),P7(o,s);var u=R7(e,o,s);if(u.sum===0)return r.viewChildren=[];if(u.sum=L7(e,t,u.sum,s,o),u.sum===0)return r.viewChildren=[];for(var f=0,v=o.length;f<v;f++){var c=o[f].getValue()/u.sum*t;o[f].setLayout({area:c})}return l&&(o.length&&r.setLayout({isLeafRoot:!0},!0),o.length=0),r.viewChildren=o,r.setLayout({dataExtent:u.dataExtent},!0),o}function L7(r,e,t,n,a){if(!n)return t;for(var i=r.get("visibleMin"),o=a.length,s=o,l=o-1;l>=0;l--){var u=a[n==="asc"?o-l-1:l].getValue();u/t*e<i&&(s=l,t-=u)}return n==="asc"?a.splice(0,o-s):a.splice(s,o-s),t}function P7(r,e){return e&&r.sort(function(t,n){var a=e==="asc"?t.getValue()-n.getValue():n.getValue()-t.getValue();return a===0?e==="asc"?t.dataIndex-n.dataIndex:n.dataIndex-t.dataIndex:a}),r}function R7(r,e,t){for(var n=0,a=0,i=e.length;a<i;a++)n+=e[a].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=Ot(),R1(e,function(l){var u=l.getValue(o);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:n,dataExtent:s}}function E7(r,e,t){for(var n=0,a=1/0,i=0,o=void 0,s=r.length;i<s;i++)o=r[i].getLayout().area,o&&(o<a&&(a=o),o>n&&(n=o));var l=r.area*r.area,u=e*e*t;return l?bf(u*n/l,l/(u*a)):1/0}function yA(r,e,t,n,a){var i=e===t.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=t[s[i]],f=e?r.area/e:0;(a||f>t[l[o]])&&(f=t[l[o]]);for(var v=0,c=r.length;v<c;v++){var h=r[v],d={},p=f?h.getLayout().area/f:0,g=d[l[o]]=bf(f-2*n,0),y=t[s[i]]+t[l[i]]-u,m=v===c-1||y<p?y:p,_=d[l[i]]=bf(m-2*n,0);d[s[o]]=t[s[o]]+Xh(n,g/2),d[s[i]]=u+Xh(n,_/2),u+=m,h.setLayout(d,!0)}t[s[o]]+=f,t[l[o]]-=f}function k7(r,e,t,n){var a=(e||{}).node,i=n.width,o=n.height,s=G({},n);if(!a||a===t)return s;for(var l,u=i*o,f=u*r.option.zoomToNodeRatio;l=a.parentNode;){for(var v=0,c=l.children,h=0,d=c.length;h<d;h++)v+=c[h].getValue();var p=a.getValue();if(p===0)return s;f*=v/p;var g=l.getModel(),y=g.get(Kk),m=Math.max(y,eO(g));f+=4*y*y+(3*y+m)*Math.pow(f,.5),f>lh&&(f=lh),a=l}f<u&&(f=u);var _=Math.pow(f/u,.5);return{width:i*_,height:o*_}}function O7(r,e,t){if(e)return{x:e.x,y:e.y};var n={x:0,y:0};if(!t)return n;var a=t.node,i=a.getLayout();if(!i)return n;for(var o=[i.width/2,i.height/2],s=a;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 Qk(r,e,t,n,a){var i=r.getLayout(),o=t[a],s=o&&o===r;if(!(o&&!s||a===t.length&&r!==n)){r.setLayout({isInView:!0,invisible:!s&&!e.intersect(i),isAboveViewRoot:s},!0);var l=new se(e.x-i.x,e.y-i.y,e.width,e.height);R1(r.viewChildren||[],function(u){Qk(u,l,t,n,a+1)})}}function eO(r){return r.get(A7)?r.get(M7):0}function tO(r,e){return e.width/r.width||e.height/r.height||1}function rO(r,e){return C1(r,e.get("scaleLimit",!0))}var J0=oe,mA=be,_A=3,SA="label",xA="upperLabel",N7=wl*10,B7=wl*2,V7=wl*3,ji=bo([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),wA=function(r){var e=ji(r);return e.stroke=e.fill=e.lineWidth=null,e},Zh=me(),z7=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._state="ready",t._storage=iu(),t}return e.prototype.render=function(t,n,a,i){var o=n.findComponents({mainType:"series",subType:"treemap",query:i});if(!(pe(o,t)<0)){this.seriesModel=t,this.api=a,this.ecModel=n;var s=["treemapZoomToNode","treemapRootToNode"],l=wf(i,s,t),u=i&&i.type,f=t.layoutInfo,v=!this._oldTree,c=this._storage,h=u==="treemapRootToNode"&&l&&c?{rootNodeGroup:c.nodeGroup[l.node.getRawIndex()],direction:i.direction}:null,d=this._giveContainerGroup(f),p=t.get("animation"),g=this._doRender(d,t,h);p&&!v&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(d,g,t,h):g.renderFinally(),this._resetController(a),this._renderBreadcrumb(t,a,l)}},e.prototype._giveContainerGroup=function(t){var n=this._containerGroup;return n||(n=this._containerGroup=new J0,this._initEvents(n),this.group.add(n)),n.x=t.x,n.y=t.y,n},e.prototype._doRender=function(t,n,a){var i=n.getData().tree,o=this._oldTree,s=iu(),l=iu(),u=this._storage,f=[];function v(g,y,m,_){return F7(n,l,u,a,s,f,g,y,m,_)}h(i.root?[i.root]:[],o&&o.root?[o.root]:[],t,i===o||!o,0);var c=d(u);return this._oldTree=i,this._storage=l,{lastsForAnimation:s,willDeleteEls:c,renderFinally:p};function h(g,y,m,_,S){_?(y=g,M(g,function(b,T){!b.isRemoved()&&w(T,T)})):new ga(y,g,x,x).add(w).update(w).remove(xe(w,null)).execute();function x(b){return b.getId()}function w(b,T){var C=b!=null?g[b]:null,A=T!=null?y[T]:null,D=v(C,A,m,S);D&&h(C&&C.viewChildren||[],A&&A.viewChildren||[],D,_,S+1)}}function d(g){var y=iu();return g&&M(g,function(m,_){var S=y[_];M(m,function(x){x&&(S.push(x),Zh(x).willDelete=!0)})}),y}function p(){M(c,function(g){M(g,function(y){y.parent&&y.parent.remove(y)})}),M(f,function(g){g.invisible=!0,g.dirty()})}},e.prototype._doAnimation=function(t,n,a,i){var o=a.get("animationDurationUpdate"),s=a.get("animationEasing"),l=(ie(o)?0:o)||0,u=(ie(s)?null:s)||"cubicOut",f=C7();M(n.willDeleteEls,function(v,c){M(v,function(h,d){if(!h.invisible){var p=h.parent,g,y=Zh(p);if(i&&i.direction==="drillDown")g=p===i.rootNodeGroup?{shape:{x:0,y:0,width:y.nodeWidth,height:y.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var m=0,_=0;y.willDelete||(m=y.nodeWidth/2,_=y.nodeHeight/2),g=c==="nodeGroup"?{x:m,y:_,style:{opacity:0}}:{shape:{x:m,y:_,width:0,height:0},style:{opacity:0}}}g&&f.add(h,g,l,0,u)}})}),M(this._storage,function(v,c){M(v,function(h,d){var p=n.lastsForAnimation[c][d],g={};p&&(h instanceof oe?p.oldX!=null&&(g.x=h.x,g.y=h.y,h.x=p.oldX,h.y=p.oldY):(p.oldShape&&(g.shape=G({},h.shape),h.setShape(p.oldShape)),p.fadein?(h.setStyle("opacity",0),g.style={opacity:1}):h.style.opacity!==1&&(g.style={opacity:1})),f.add(h,g,l,0,u))})},this),this._state="animating",f.finished(q(function(){this._state="ready",n.renderFinally()},this)).start()},e.prototype._resetController=function(t){var n=this,a=this.seriesModel,i=this._controller;i||(i=this._controller=new ts(t.getZr()),i.on("pan",q(this._onPan,this)),i.on("zoom",q(this._onZoom,this))),i.enable(a.get("roam"),{api:t,zInfo:{component:a},triggerInfo:{roamTrigger:a.get("roamTrigger"),isInSelf:function(o,s,l){var u=n._containerGroup;return u?u.getBoundingRect().contain(s-u.x,l-u.y):!1}}})},e.prototype._clearController=function(){var t=this._controller;t&&(t.dispose(),t=null)},e.prototype._onPan=function(t){if(this._state!=="animating"&&(Math.abs(t.dx)>_A||Math.abs(t.dy)>_A)){var n=this.seriesModel.getData().tree.root;if(!n)return;var a=n.getLayout();if(!a)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x+t.dx,y:a.y+t.dy,width:a.width,height:a.height}})}},e.prototype._onZoom=function(t){var n=t.originX,a=t.originY,i=t.scale,o=this.seriesModel;if(this._state!=="animating"){var s=o.getData().tree.root;if(!s)return;var l=s.getLayout();if(!l)return;var u=new se(l.x,l.y,l.width,l.height),f=o.layoutInfo,v=tO(f,l),c=v*i;c=rO(c,o);var h=c/v;n-=f.x,a-=f.y;var d=nt();kn(d,d,[-n,-a]),Z_(d,d,[h,h]),kn(d,d,[n,a]),u.applyTransform(d),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:u.x,y:u.y,width:u.width,height:u.height}})}},e.prototype._initEvents=function(t){var n=this;t.on("click",function(a){if(n._state==="ready"){var i=n.seriesModel.get("nodeClick",!0);if(i){var o=n.findTarget(a.offsetX,a.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)n._rootToNode(o);else if(i==="zoomToNode")n._zoomToNode(o);else if(i==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),f=l.get("target",!0)||"blank";u&&mh(u,f)}}}}},this)},e.prototype._renderBreadcrumb=function(t,n,a){var i=this;a||(a=t.get("leafDepth",!0)!=null?{node:t.getViewRoot()}:this.findTarget(n.getWidth()/2,n.getHeight()/2),a||(a={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new S7(this.group))).render(t,n,a.node,function(o){i._state!=="animating"&&(P1(t.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=iu(),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,n){var a,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,n),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)a={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),a},e.type="treemap",e})(Ue);function iu(){return{nodeGroup:[],background:[],content:[]}}function F7(r,e,t,n,a,i,o,s,l,u){if(!o)return;var f=o.getLayout(),v=r.getData(),c=o.getModel();if(v.setItemGraphicEl(o.dataIndex,null),!f||!f.isInView)return;var h=f.width,d=f.height,p=f.borderWidth,g=f.invisible,y=o.getRawIndex(),m=s&&s.getRawIndex(),_=o.viewChildren,S=f.upperHeight,x=_&&_.length,w=c.getModel("itemStyle"),b=c.getModel(["emphasis","itemStyle"]),T=c.getModel(["blur","itemStyle"]),C=c.getModel(["select","itemStyle"]),A=w.get("borderRadius")||0,D=ee("nodeGroup",J0);if(!D)return;if(l.add(D),D.x=f.x||0,D.y=f.y||0,D.markRedraw(),Zh(D).nodeWidth=h,Zh(D).nodeHeight=d,f.isAboveViewRoot)return D;var L=ee("background",mA,u,B7);L&&F(D,L,x&&f.upperLabelHeight);var I=c.getModel("emphasis"),P=I.get("focus"),R=I.get("blurScope"),E=I.get("disabled"),O=P==="ancestor"?o.getAncestorsIndices():P==="descendant"?o.getDescendantIndices():P;if(x)Ju(D)&&io(D,!1),L&&(io(L,!E),v.setItemGraphicEl(o.dataIndex,L),r0(L,O,R));else{var k=ee("content",mA,u,V7);k&&H(D,k),L.disableMorphing=!0,L&&Ju(L)&&io(L,!1),io(D,!E),v.setItemGraphicEl(o.dataIndex,D);var z=c.getShallow("cursor");z&&k.attr("cursor",z),r0(D,O,R)}return D;function F(ce,te,ge){var re=ve(te);if(re.dataIndex=o.dataIndex,re.seriesIndex=r.seriesIndex,te.setShape({x:0,y:0,width:h,height:d,r:A}),g)W(te);else{te.invisible=!1;var he=o.getVisual("style"),$e=he.stroke,Pe=wA(w);Pe.fill=$e;var Ge=ji(b);Ge.fill=b.get("borderColor");var We=ji(T);We.fill=T.get("borderColor");var ct=ji(C);if(ct.fill=C.get("borderColor"),ge){var pr=h-2*p;X(te,$e,he.opacity,{x:p,y:0,width:pr,height:S})}else te.removeTextContent();te.setStyle(Pe),te.ensureState("emphasis").style=Ge,te.ensureState("blur").style=We,te.ensureState("select").style=ct,Co(te)}ce.add(te)}function H(ce,te){var ge=ve(te);ge.dataIndex=o.dataIndex,ge.seriesIndex=r.seriesIndex;var re=Math.max(h-2*p,0),he=Math.max(d-2*p,0);if(te.culling=!0,te.setShape({x:p,y:p,width:re,height:he,r:A}),g)W(te);else{te.invisible=!1;var $e=o.getVisual("style"),Pe=$e.fill,Ge=wA(w);Ge.fill=Pe,Ge.decal=$e.decal;var We=ji(b),ct=ji(T),pr=ji(C);X(te,Pe,$e.opacity,null),te.setStyle(Ge),te.ensureState("emphasis").style=We,te.ensureState("blur").style=ct,te.ensureState("select").style=pr,Co(te)}ce.add(te)}function W(ce){!ce.invisible&&i.push(ce)}function X(ce,te,ge,re){var he=c.getModel(re?xA:SA),$e=mt(c.get("name"),null),Pe=he.getShallow("show");Mt(ce,St(c,re?xA:SA),{defaultText:Pe?$e:null,inheritColor:te,defaultOpacity:ge,labelFetcher:r,labelDataIndex:o.dataIndex});var Ge=ce.getTextContent();if(Ge){var We=Ge.style,ct=md(We.padding||0);re&&(ce.setTextConfig({layoutRect:re}),Ge.disableLabelLayout=!0),Ge.beforeUpdate=function(){var sr=Math.max((re?re.width:ce.shape.width)-ct[1]-ct[3],0),gi=Math.max((re?re.height:ce.shape.height)-ct[0]-ct[2],0);(We.width!==sr||We.height!==gi)&&Ge.setStyle({width:sr,height:gi})},We.truncateMinChar=2,We.lineOverflow="truncate",Y(We,re,f);var pr=Ge.getState("emphasis");Y(pr?pr.style:null,re,f)}}function Y(ce,te,ge){var re=ce?ce.text:null;if(!te&&ge.isLeafRoot&&re!=null){var he=r.get("drillDownIcon",!0);ce.text=he?he+" "+re:re}}function ee(ce,te,ge,re){var he=m!=null&&t[ce][m],$e=a[ce];return he?(t[ce][m]=null,ye($e,he)):g||(he=new te,he instanceof Ur&&(he.z2=G7(ge,re)),Ne($e,he)),e[ce][y]=he}function ye(ce,te){var ge=ce[y]={};te instanceof J0?(ge.oldX=te.x,ge.oldY=te.y):ge.oldShape=G({},te.shape)}function Ne(ce,te){var ge=ce[y]={},re=o.parentNode,he=te instanceof oe;if(re&&(!n||n.direction==="drillDown")){var $e=0,Pe=0,Ge=a.background[re.getRawIndex()];!n&&Ge&&Ge.oldShape&&($e=Ge.oldShape.width,Pe=Ge.oldShape.height),he?(ge.oldX=0,ge.oldY=Pe):ge.oldShape={x:$e,y:Pe,width:0,height:0}}ge.fadein=!he}}function G7(r,e){return r*N7+e}var Cf=M,H7=fe,jh=-1,At=(function(){function r(e){var t=e.mappingMethod,n=e.type,a=this.option=ae(e);this.type=n,this.mappingMethod=t,this._normalizeData=W7[t];var i=r.visualHandlers[n];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[t],t==="piecewise"?(ty(a),U7(a)):t==="category"?a.categories?$7(a):ty(a,!0):(Yt(t!=="linear"||a.dataExtent),ty(a))}return r.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},r.prototype.getNormalizer=function(){return q(this._normalizeData,this)},r.listVisualTypes=function(){return De(r.visualHandlers)},r.isValidType=function(e){return r.visualHandlers.hasOwnProperty(e)},r.eachVisual=function(e,t,n){fe(e)?M(e,t,n):t.call(n,e)},r.mapVisual=function(e,t,n){var a,i=U(e)?[]:fe(e)?{}:(a=!0,null);return r.eachVisual(e,function(o,s){var l=t.call(n,o,s);a?i=l:i[s]=l}),i},r.retrieveVisuals=function(e){var t={},n;return e&&Cf(r.visualHandlers,function(a,i){e.hasOwnProperty(i)&&(t[i]=e[i],n=!0)}),n?t:null},r.prepareVisualTypes=function(e){if(U(e))e=e.slice();else if(H7(e)){var t=[];Cf(e,function(n,a){t.push(a)}),e=t}else return[];return e.sort(function(n,a){return a==="color"&&n!=="color"&&n.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,n){for(var a,i=1/0,o=0,s=t.length;o<s;o++){var l=t[o].value;if(l!=null){if(l===e||Z(l)&&l===e+"")return o;n&&c(l,o)}}for(var o=0,s=t.length;o<s;o++){var u=t[o],f=u.interval,v=u.close;if(f){if(f[0]===-1/0){if(Jv(v[1],e,f[1]))return o}else if(f[1]===1/0){if(Jv(v[0],f[0],e))return o}else if(Jv(v[0],f[0],e)&&Jv(v[1],e,f[1]))return o;n&&c(f[0],o),n&&c(f[1],o)}}if(n)return e===1/0?t.length-1:e===-1/0?0:a;function c(h,d){var p=Math.abs(h-e);p<i&&(i=p,a=d)}},r.visualHandlers={color:{applyVisual:ou("color"),getColorMapper:function(){var e=this.option;return q(e.mappingMethod==="category"?function(t,n){return!n&&(t=this._normalizeData(t)),Tu.call(this,t)}:function(t,n,a){var i=!!a;return!n&&(t=this._normalizeData(t)),a=Ip(t,e.parsedVisual,a),i?a:Tn(a,"rgba")},this)},_normalizedToVisual:{linear:function(e){return Tn(Ip(e,this.option.parsedVisual),"rgba")},category:Tu,piecewise:function(e,t){var n=e_.call(this,t);return n==null&&(n=Tn(Ip(e,this.option.parsedVisual),"rgba")),n},fixed:qi}},colorHue:Kv(function(e,t){return ja(e,t)}),colorSaturation:Kv(function(e,t){return ja(e,null,t)}),colorLightness:Kv(function(e,t){return ja(e,null,null,t)}),colorAlpha:Kv(function(e,t){return th(e,t)}),decal:{applyVisual:ou("decal"),_normalizedToVisual:{linear:null,category:Tu,piecewise:null,fixed:null}},opacity:{applyVisual:ou("opacity"),_normalizedToVisual:Q0([0,1])},liftZ:{applyVisual:ou("liftZ"),_normalizedToVisual:{linear:qi,category:qi,piecewise:qi,fixed:qi}},symbol:{applyVisual:function(e,t,n){var a=this.mapValueToVisual(e);n("symbol",a)},_normalizedToVisual:{linear:bA,category:Tu,piecewise:function(e,t){var n=e_.call(this,t);return n==null&&(n=bA.call(this,e)),n},fixed:qi}},symbolSize:{applyVisual:ou("symbolSize"),_normalizedToVisual:Q0([0,1])}},r})();function U7(r){var e=r.pieceList;r.hasSpecialVisual=!1,M(e,function(t,n){t.originIndex=n,t.visual!=null&&(r.hasSpecialVisual=!0)})}function $7(r){var e=r.categories,t=r.categoryMap={},n=r.visual;if(Cf(e,function(o,s){t[o]=s}),!U(n)){var a=[];fe(n)?Cf(n,function(o,s){var l=t[s];a[l??jh]=o}):a[jh]=n,n=nO(r,a)}for(var i=e.length-1;i>=0;i--)n[i]==null&&(delete t[e[i]],e.pop())}function ty(r,e){var t=r.visual,n=[];fe(t)?Cf(t,function(i){n.push(i)}):t!=null&&n.push(t);var a={color:1,symbol:1};!e&&n.length===1&&!a.hasOwnProperty(r.type)&&(n[1]=n[0]),nO(r,n)}function Kv(r){return{applyVisual:function(e,t,n){var a=this.mapValueToVisual(e);n("color",r(t("color"),a))},_normalizedToVisual:Q0([0,1])}}function bA(r){var e=this.option.visual;return e[Math.round(Be(r,[0,1],[0,e.length-1],!0))]||{}}function ou(r){return function(e,t,n){n(r,this.mapValueToVisual(e))}}function Tu(r){var e=this.option.visual;return e[this.option.loop&&r!==jh?r%e.length:r]}function qi(){return this.option.visual[0]}function Q0(r){return{linear:function(e){return Be(e,r,this.option.visual,!0)},category:Tu,piecewise:function(e,t){var n=e_.call(this,t);return n==null&&(n=Be(e,r,this.option.visual,!0)),n},fixed:qi}}function e_(r){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var n=At.findPieceIndex(r,t),a=t[n];if(a&&a.visual)return a.visual[this.type]}}function nO(r,e){return r.visual=e,r.type==="color"&&(r.parsedVisual=$(e,function(t){var n=hr(t);return n||[0,0,0,1]})),e}var W7={linear:function(r){return Be(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var e=this.option.pieceList,t=At.findPieceIndex(r,e,!0);if(t!=null)return Be(t,[0,e.length-1],[0,1],!0)},category:function(r){var e=this.option.categories?this.option.categoryMap[r]:r;return e??jh},fixed:ot};function Jv(r,e,t){return r?e<=t:e<t}var Y7="itemStyle",aO=me();const X7={seriesType:"treemap",reset:function(r){var e=r.getData().tree,t=e.root;t.isRemoved()||iO(t,{},r.getViewRoot().getAncestors(),r)}};function iO(r,e,t,n){var a=r.getModel(),i=r.getLayout(),o=r.hostTree.data;if(!(!i||i.invisible||!i.isInView)){var s=a.getModel(Y7),l=Z7(s,e,n),u=o.ensureUniqueItemVisual(r.dataIndex,"style"),f=s.get("borderColor"),v=s.get("borderColorSaturation"),c;v!=null&&(c=CA(l),f=j7(v,c)),u.stroke=f;var h=r.viewChildren;if(!h||!h.length)c=CA(l),u.fill=c;else{var d=q7(r,a,i,s,l,h);M(h,function(p,g){if(p.depth>=t.length||p===t[p.depth]){var y=K7(a,l,p,g,d,n);iO(p,y,t,n)}})}}}function Z7(r,e,t){var n=G({},e),a=t.designatedVisualItemStyle;return M(["color","colorAlpha","colorSaturation"],function(i){a[i]=e[i];var o=r.get(i);a[i]=null,o!=null&&(n[i]=o)}),n}function CA(r){var e=ry(r,"color");if(e){var t=ry(r,"colorAlpha"),n=ry(r,"colorSaturation");return n&&(e=ja(e,null,null,n)),t&&(e=th(e,t)),e}}function j7(r,e){return e!=null?ja(e,null,null,r):null}function ry(r,e){var t=r[e];if(t!=null&&t!=="none")return t}function q7(r,e,t,n,a,i){if(!(!i||!i.length)){var o=ny(e,"color")||a.color!=null&&a.color!=="none"&&(ny(e,"colorAlpha")||ny(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 f=e.get("colorMappingBy"),v={type:o.name,dataExtent:u,visual:o.range};v.type==="color"&&(f==="index"||f==="id")?(v.mappingMethod="category",v.loop=!0):v.mappingMethod="linear";var c=new At(v);return aO(c).drColorMappingBy=f,c}}}function ny(r,e){var t=r.get(e);return U(t)&&t.length?{name:e,range:t}:null}function K7(r,e,t,n,a,i){var o=G({},e);if(a){var s=a.type,l=s==="color"&&aO(a).drColorMappingBy,u=l==="index"?n:l==="id"?i.mapIdToIndex(t.getId()):t.getValue(r.get("visualDimension"));o[s]=a.mapValueToVisual(u)}return o}function J7(r){r.registerSeriesModel(y7),r.registerChartView(z7),r.registerVisual(X7),r.registerLayout(D7),g7(r)}function ms(r){return"_EC_"+r}var Q7=(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 n=this._nodesMap;if(!n[ms(e)]){var a=new Ki(e,t);return a.hostGraph=this,this.nodes.push(a),n[ms(e)]=a,a}},r.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},r.prototype.getNodeById=function(e){return this._nodesMap[ms(e)]},r.prototype.addEdge=function(e,t,n){var a=this._nodesMap,i=this._edgesMap;if(Ee(e)&&(e=this.nodes[e]),Ee(t)&&(t=this.nodes[t]),e instanceof Ki||(e=a[ms(e)]),t instanceof Ki||(t=a[ms(t)]),!(!e||!t)){var o=e.id+"-"+t.id,s=new oO(e,t,n);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 Ki&&(e=e.id),t instanceof Ki&&(t=t.id);var n=this._edgesMap;return this._directed?n[e+"-"+t]:n[e+"-"+t]||n[t+"-"+e]},r.prototype.eachNode=function(e,t){for(var n=this.nodes,a=n.length,i=0;i<a;i++)n[i].dataIndex>=0&&e.call(t,n[i],i)},r.prototype.eachEdge=function(e,t){for(var n=this.edges,a=n.length,i=0;i<a;i++)n[i].dataIndex>=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&e.call(t,n[i],i)},r.prototype.breadthFirstTraverse=function(e,t,n,a){if(t instanceof Ki||(t=this._nodesMap[ms(t)]),!!t){for(var i=n==="out"?"outEdges":n==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!e.call(a,t,null))for(var s=[t];s.length;)for(var l=s.shift(),u=l[i],o=0;o<u.length;o++){var f=u[o],v=f.node1===l?f.node2:f.node1;if(!v.__visited){if(e.call(a,v,l))return;s.push(v),v.__visited=!0}}}},r.prototype.update=function(){for(var e=this.data,t=this.edgeData,n=this.nodes,a=this.edges,i=0,o=n.length;i<o;i++)n[i].dataIndex=-1;for(var i=0,o=e.count();i<o;i++)n[e.getRawIndex(i)].dataIndex=i;t.filterSelf(function(s){var l=a[t.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var i=0,o=a.length;i<o;i++)a[i].dataIndex=-1;for(var i=0,o=t.count();i<o;i++)a[t.getRawIndex(i)].dataIndex=i},r.prototype.clone=function(){for(var e=new r(this._directed),t=this.nodes,n=this.edges,a=0;a<t.length;a++)e.addNode(t[a].id,t[a].dataIndex);for(var a=0;a<n.length;a++){var i=n[a];e.addEdge(i.node1.id,i.node2.id,i.dataIndex)}return e},r})(),Ki=(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,n=t.data.getItemModel(this.dataIndex);return n.getModel(e)}},r.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},t=0;t<this.edges.length;t++){var n=this.edges[t];n.dataIndex<0||(e.edge.push(n.dataIndex),e.node.push(n.node1.dataIndex,n.node2.dataIndex))}return e},r.prototype.getTrajectoryDataIndices=function(){for(var e=K(),t=K(),n=0,a=this.edges.length;n<a;n++){var i=this.edges[n];if(!(i.dataIndex<0)){e.set(i.dataIndex,!0);for(var o=[i.node1],s=[i.node2],l=0;l<o.length;){var u=o[l];l++,t.set(u.dataIndex,!0);for(var f=u.inEdges,v=0,c=f.length,h=void 0,d=void 0;v<c;v++)h=f[v],d=h.dataIndex,d>=0&&!e.hasKey(d)&&(e.set(d,!0),o.push(h.node1))}for(l=0;l<s.length;){var p=s[l];l++,t.set(p.dataIndex,!0);for(var g=p.outEdges,v=0,y=g.length,m=void 0,_=void 0;v<y;v++)m=g[v],_=m.dataIndex,_>=0&&!e.hasKey(_)&&(e.set(_,!0),s.push(m.node2))}}}return{edge:e.keys(),node:t.keys()}},r})(),oO=(function(){function r(e,t,n){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=n??-1}return r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,n=t.edgeData.getItemModel(this.dataIndex);return n.getModel(e)}},r.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},r.prototype.getTrajectoryDataIndices=function(){var e=K(),t=K();e.set(this.dataIndex,!0);for(var n=[this.node1],a=[this.node2],i=0;i<n.length;){var o=n[i];i++,t.set(o.dataIndex,!0);for(var s=o.inEdges,l=0,u=s.length,f=void 0,v=void 0;l<u;l++)f=o.inEdges[l],v=f.dataIndex,v>=0&&!e.hasKey(v)&&(e.set(v,!0),n.push(f.node1))}for(i=0;i<a.length;){var c=a[i];i++,t.set(c.dataIndex,!0);for(var h=c.outEdges,l=0,u=h.length,d=void 0,p=void 0;l<u;l++)d=c.outEdges[l],p=d.dataIndex,p>=0&&!e.hasKey(p)&&(e.set(p,!0),a.push(d.node2))}return{edge:e.keys(),node:t.keys()}},r})();function sO(r,e){return{getValue:function(t){var n=this[r][e];return n.getStore().get(n.getDimensionIndex(t||"value"),this.dataIndex)},setVisual:function(t,n){this.dataIndex>=0&&this[r][e].setItemVisual(this.dataIndex,t,n)},getVisual:function(t){return this[r][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,n){this.dataIndex>=0&&this[r][e].setItemLayout(this.dataIndex,t,n)},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)}}}xt(Ki,sO("hostGraph","data"));xt(oO,sO("hostGraph","edgeData"));function E1(r,e,t,n,a){for(var i=new Q7(n),o=0;o<r.length;o++)i.addNode(tr(r[o].id,r[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<e.length;o++){var f=e[o],v=f.source,c=f.target;i.addEdge(v,c,u)&&(l.push(f),s.push(tr(mt(f.id,null),v+" > "+c)),u++)}var h=t.get("coordinateSystem"),d;if(h==="cartesian2d"||h==="polar"||h==="matrix")d=wa(r,t);else{var p=zf.get(h),g=p?p.dimensions||[]:[];pe(g,"value")<0&&g.concat(["value"]);var y=Hf(r,{coordDimensions:g,encodeDefine:t.getEncode()}).dimensions;d=new nr(y,t),d.initData(r)}var m=new nr(["value"],t);return m.initData(l,s),a&&a(d,m),Wk({mainData:d,struct:i,structAttr:"graph",datas:{node:d,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var t_="-->",up=function(r){return r.get("autoCurveness")||null},lO=function(r,e){var t=up(r),n=20,a=[];if(Ee(t))n=t;else if(U(t)){r.__curvenessList=t;return}e>n&&(n=e);var i=n%2?n+2:n+3;a=[];for(var o=0;o<i;o++)a.push((o%2?o+1:o)/10*(o%2?-1:1));r.__curvenessList=a},Tf=function(r,e,t){var n=[r.id,r.dataIndex].join("."),a=[e.id,e.dataIndex].join(".");return[t.uid,n,a].join(t_)},uO=function(r){var e=r.split(t_);return[e[0],e[2],e[1]].join(t_)},eX=function(r,e){var t=Tf(r.node1,r.node2,e);return e.__edgeMap[t]},tX=function(r,e){var t=r_(Tf(r.node1,r.node2,e),e),n=r_(Tf(r.node2,r.node1,e),e);return t+n},r_=function(r,e){var t=e.__edgeMap;return t[r]?t[r].length:0};function rX(r){up(r)&&(r.__curvenessList=[],r.__edgeMap={},lO(r))}function nX(r,e,t,n){if(up(t)){var a=Tf(r,e,t),i=t.__edgeMap,o=i[uO(a)];i[a]&&!o?i[a].isForward=!0:o&&i[a]&&(o.isForward=!0,i[a].isForward=!1),i[a]=i[a]||[],i[a].push(n)}}function k1(r,e,t,n){var a=up(e),i=U(a);if(!a)return null;var o=eX(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=tX(r,e);lO(e,u),r.lineStyle=r.lineStyle||{};var f=Tf(r.node1,r.node2,e),v=e.__curvenessList,c=i||u%2?0:1;if(o.isForward)return v[c+s];var h=uO(f),d=r_(h,e),p=v[s+d+c];return n?i?a&&a[0]===0?(d+c)%2?p:-p:((d%2?0:1)+c)%2?p:-p:(d+c)%2?p:-p:v[s+d+c]}var or="graph",aX=(function(r){B(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 n=this;function a(){return n._categoriesData}this.legendVisualProvider=new El(a,a),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),So(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,n){var a=t.edges||t.links||[],i=t.data||t.nodes||[],o=this;if(i&&a){rX(this);var s=E1(i,a,this,!0,l);return M(s.edges,function(u){nX(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,f){u.wrapMethod("getItemModel",function(d){var p=o._categoriesModels,g=d.getShallow("category"),y=p[g];return y&&(y.parentModel=d.parentModel,d.parentModel=y),d});var v=Ie.prototype.getModel;function c(d,p){var g=v.call(this,d,p);return g.resolveParentPath=h,g}f.wrapMethod("getItemModel",function(d){return d.resolveParentPath=h,d.getModel=c,d});function h(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,n,a){if(a==="edge"){var i=this.getData(),o=this.getDataParams(t,a),s=i.graph.getEdgeByIndex(t),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),pt("nameValue",{name:f.join(" > "),value:o.value,noValue:o.value==null})}var v=GP({series:this,dataIndex:t,multipleSeries:n});return v},e.prototype._updateCategoriesData=function(){var t=$(this.option.categories||[],function(a){return a.value!=null?a:G({value:0},a)}),n=new nr(["value"],this);n.initData(t),this._categoriesData=n,this._categoriesModels=n.mapArray(function(a){return n.getItemModel(a)})},e.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.prototype.__ownRoamView=function(){var t=this.coordinateSystem;return Lk(t)&&t},e.type="series."+or,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:N.color.neutral50,width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:N.color.primary}}},e})(je);function Qv(r){return r instanceof Array||(r=[r,r]),r}var iX=wt(or,oX);function oX(r){r.eachSeriesByType(or,function(e){var t=e.getGraph(),n=e.getEdgeData(),a=Qv(e.get("edgeSymbol")),i=Qv(e.get("edgeSymbolSize"));n.setVisual("fromSymbol",a&&a[0]),n.setVisual("toSymbol",a&&a[1]),n.setVisual("fromSymbolSize",i&&i[0]),n.setVisual("toSymbolSize",i&&i[1]),n.setVisual("style",e.getModel("lineStyle").getLineStyle()),n.each(function(o){var s=n.getItemModel(o),l=t.getEdgeByIndex(o),u=Qv(s.getShallow("symbol",!0)),f=Qv(s.getShallow("symbolSize",!0)),v=s.getModel("lineStyle").getLineStyle(),c=n.ensureUniqueItemVisual(o,"style");switch(G(c,v),c.stroke){case"source":{var h=l.node1.getVisual("style");c.stroke=h&&h.fill;break}case"target":{var h=l.node2.getVisual("style");c.stroke=h&&h.fill;break}}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),f[0]&&l.setVisual("fromSymbolSize",f[0]),f[1]&&l.setVisual("toSymbolSize",f[1])})})}function fO(r){var e=r.coordinateSystem;if(!(e&&e.type!=="view")){var t=r.getGraph();t.eachNode(function(n){var a=n.getModel();n.setLayout([+a.get("x"),+a.get("y")])}),O1(t,r)}}function O1(r,e){r.eachEdge(function(t,n){var a=xr(t.getModel().get(["lineStyle","curveness"]),-k1(t,e,n,!0),0),i=ra(t.node1.getLayout()),o=ra(t.node2.getLayout()),s=[i,o];+a&&s.push([(i[0]+o[0])/2-(i[1]-o[1])*a,(i[1]+o[1])/2-(o[0]-i[0])*a]),t.setLayout(s)})}var sX=wt(or,lX);function lX(r,e){r.eachSeriesByType(or,function(t){var n=t.get("layout"),a=t.coordinateSystem;if(a&&a.type!=="view"){var i=t.getData(),o=[];M(a.dimensions,function(c){o=o.concat(i.mapDimensionsAll(c))});for(var s=0;s<i.count();s++){for(var l=[],u=!1,f=0;f<o.length;f++){var v=i.get(o[f],s);isNaN(v)||(u=!0),l.push(v)}u?i.setItemLayout(s,a.dataToPoint(l)):i.setItemLayout(s,[NaN,NaN])}O1(i.graph,t)}else(!n||n==="none")&&fO(t)})}function Au(r){var e=r.coordinateSystem;return Lk(e)?Ok(e,r):1}function Mu(r){var e=r.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var TA=Math.PI,ay=[];function N1(r,e,t,n){var a=r.coordinateSystem;if(!(a&&a.type!=="view")){var i=a.getBoundingRect(),o=r.getData(),s=o.graph,l=i.width/2+i.x,u=i.height/2+i.y,f=Math.min(i.width,i.height)/2,v=o.count();if(o.setLayout({cx:l,cy:u}),!!v){if(t){var c=a.pointToData(n),h=c[0],d=c[1],p=[h-l,d-u];gl(p,p),Cc(p,p,f),t.setLayout([l+p[0],u+p[1]],!0);var g=r.get(["circular","rotateLabel"]);vO(t,g,l,u)}uX[e](r,s,o,f,l,u,v),s.eachEdge(function(y,m){var _=xr(y.getModel().get(["lineStyle","curveness"]),k1(y,r,m),0),S=ra(y.node1.getLayout()),x=ra(y.node2.getLayout()),w,b=(S[0]+x[0])/2,T=(S[1]+x[1])/2;+_&&(_*=3,w=[l*_+b*(1-_),u*_+T*(1-_)]),y.setLayout([S,x,w])})}}}var uX={value:function(r,e,t,n,a,i,o){var s=0,l=t.getSum("value"),u=Math.PI*2/(l||o);e.eachNode(function(f){var v=f.getValue("value"),c=u*(l?v:1)/2;s+=c,f.setLayout([n*Math.cos(s)+a,n*Math.sin(s)+i]),s+=c})},symbolSize:function(r,e,t,n,a,i,o){var s=0;ay.length=o;var l=Au(r);e.eachNode(function(v){var c=Mu(v);isNaN(c)&&(c=2),c<0&&(c=0),c*=l;var h=Math.asin(c/2/n);isNaN(h)&&(h=TA/2),ay[v.dataIndex]=h,s+=h*2});var u=(2*TA-s)/o/2,f=0;e.eachNode(function(v){var c=u+ay[v.dataIndex];f+=c,(!v.getLayout()||!v.getLayout().fixed)&&v.setLayout([n*Math.cos(f)+a,n*Math.sin(f)+i]),f+=c})}};function vO(r,e,t,n){var a=r.getGraphicEl();if(a){var i=r.getModel(),o=i.get(["label","rotate"])||0,s=a.getSymbolPath();if(e){var l=r.getLayout(),u=Math.atan2(l[1]-n,l[0]-t);u<0&&(u=Math.PI*2+u);var f=l[0]<t;f&&(u=u-Math.PI);var v=f?"left":"right";s.setTextConfig({rotation:-u,position:v,origin:"center"});var c=s.ensureState("emphasis");G(c.textConfig||(c.textConfig={}),{position:v})}else s.setTextConfig({rotation:o*=Math.PI/180})}}var fX=wt(or,vX);function vX(r){r.eachSeriesByType("graph",function(e){e.get("layout")==="circular"&&N1(e,"symbolSize")})}var _s=xm;function cX(r,e,t){for(var n=r,a=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,f=0;f<n.length;f++){var v=n[f];v.p||(v.p=Ho(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),v.pp=ra(v.p),v.edges=null}var c=t.friction==null?.6:t.friction,h=c,d,p;return{warmUp:function(){h=c*.8},setFixed:function(g){n[g].fixed=!0},setUnfixed:function(g){n[g].fixed=!1},beforeStep:function(g){d=g},afterStep:function(g){p=g},step:function(g){d&&d(n,a);for(var y=[],m=n.length,_=0;_<a.length;_++){var S=a[_];if(!S.ignoreForceLayout){var x=S.n1,w=S.n2;no(y,w.p,x.p);var b=wm(y)-S.d,T=w.w/(x.w+w.w);isNaN(T)&&(T=0),gl(y,y),!x.fixed&&_s(x.p,x.p,y,T*b*h),!w.fixed&&_s(w.p,w.p,y,-(1-T)*b*h)}}for(var _=0;_<m;_++){var C=n[_];C.fixed||(no(y,l,C.p),_s(C.p,C.p,y,u*h))}for(var _=0;_<m;_++)for(var x=n[_],A=_+1;A<m;A++){var w=n[A];no(y,w.p,x.p);var b=wm(y);b===0&&(Ya(y,Math.random()-.5,Math.random()-.5),b=1);var D=(x.rep+w.rep)/b/b;!x.fixed&&_s(x.pp,x.pp,y,D),!w.fixed&&_s(w.pp,w.pp,y,-D)}for(var L=[],_=0;_<m;_++){var C=n[_];C.fixed||(no(L,C.p,C.pp),_s(C.p,C.p,L,h),Ht(C.pp,C.p))}h=h*.992;var I=h<.01;p&&p(n,a,I),g&&g(I)}}}var hX=wt(or,dX);function dX(r){r.eachSeriesByType(or,function(e){var t=e.coordinateSystem;if(!(t&&t.type!=="view"))if(e.get("layout")==="force"){var n=e.preservedPoints||{},a=e.getGraph(),i=a.data,o=a.edgeData,s=e.getModel("force"),l=s.get("initLayout");e.preservedPoints?i.each(function(_){var S=i.getId(_);i.setItemLayout(_,n[S]||[NaN,NaN])}):!l||l==="none"?fO(e):l==="circular"&&N1(e,"value");var u=i.getDataExtent("value"),f=o.getDataExtent("value"),v=s.get("repulsion"),c=s.get("edgeLength"),h=U(v)?v:[v,v],d=U(c)?c:[c,c];d=[d[1],d[0]];var p=i.mapArray("value",function(_,S){var x=i.getItemLayout(S),w=Be(_,u,h);return isNaN(w)&&(w=(h[0]+h[1])/2),{w,rep:w,fixed:i.getItemModel(S).get("fixed"),p:!x||isNaN(x[0])||isNaN(x[1])?null:x}}),g=o.mapArray("value",function(_,S){var x=a.getEdgeByIndex(S),w=Be(_,f,d);isNaN(w)&&(w=(d[0]+d[1])/2);var b=x.getModel(),T=xr(x.getModel().get(["lineStyle","curveness"]),-k1(x,e,S,!0),0);return{n1:p[x.node1.dataIndex],n2:p[x.node2.dataIndex],d:w,curveness:T,ignoreForceLayout:b.get("ignoreForceLayout")}}),y=t.getBoundingRect(),m=cX(p,g,{rect:y,gravity:s.get("gravity"),friction:s.get("friction")});m.beforeStep(function(_,S){for(var x=0,w=_.length;x<w;x++)_[x].fixed&&Ht(_[x].p,a.getNodeByIndex(x).getLayout())}),m.afterStep(function(_,S,x){for(var w=0,b=_.length;w<b;w++)_[w].fixed||a.getNodeByIndex(w).setLayout(_[w].p),n[i.getId(w)]=_[w].p;for(var w=0,b=S.length;w<b;w++){var T=S[w],C=a.getEdgeByIndex(w),A=T.n1.p,D=T.n2.p,L=C.getLayout();L=L?L.slice():[],L[0]=L[0]||[],L[1]=L[1]||[],Ht(L[0],A),Ht(L[1],D),+T.curveness&&(L[2]=[(A[0]+D[0])/2-(A[1]-D[1])*T.curveness,(A[1]+D[1])/2-(D[0]-A[0])*T.curveness]),C.setLayout(L)}}),e.forceLayout=m,e.preservedPoints=n,m.step()}else e.forceLayout=null})}function pX(r,e,t){var n=bt(r,e),a=G(r.getBoxLayoutParams(),{aspect:t}),i=tt(a,n.refContainer);return sP(r,i,t)}function gX(r,e){var t=[];return r.eachSeriesByType("graph",function(n){Ff({targetModel:n,coordSysType:"view",coordSysProvider:a,isDefaultDataCoordSys:!0});function a(){var i=n.getData(),o=i.mapArray(function(d){var p=i.getItemModel(d);return[+p.get("x"),+p.get("y")]}),s=[],l=[];Id(o,s,l),l[0]-s[0]===0&&(l[0]+=1,s[0]-=1),l[1]-s[1]===0&&(l[1]+=1,s[1]-=1);var u=(l[0]-s[0])/(l[1]-s[1]),f=pX(n,e,u);isNaN(u)&&(s=[f.x,f.y],l=[f.x+f.width,f.y+f.height]);var v=l[0]-s[0],c=l[1]-s[1],h=A1(n,e,s[0],s[1],v,c,f);return t.push(h),h}}),t}var AA=dt.prototype,iy=Of.prototype,cO=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r})();(function(r){B(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(cO);function oy(r){return isNaN(+r.cpx1)||isNaN(+r.cpy1)}var hO=(function(r){B(e,r);function e(t){var n=r.call(this,t)||this;return n.type="ec-line",n}return e.prototype.getDefaultStyle=function(){return{stroke:N.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new cO},e.prototype.buildPath=function(t,n){oy(n)?AA.buildPath.call(this,t,n):iy.buildPath.call(this,t,n)},e.prototype.pointAt=function(t){return oy(this.shape)?AA.pointAt.call(this,t):iy.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var n=this.shape,a=oy(n)?[n.x2-n.x1,n.y2-n.y1]:iy.tangentAt.call(this,t);return gl(a,a)},e})(Ae),sy=["fromSymbol","toSymbol"];function MA(r){return"_"+r+"Type"}function DA(r,e,t){var n=e.getItemVisual(t,r);if(!n||n==="none")return n;var a=e.getItemVisual(t,r+"Size"),i=e.getItemVisual(t,r+"Rotate"),o=e.getItemVisual(t,r+"Offset"),s=e.getItemVisual(t,r+"KeepAspect"),l=Il(a),u=Ko(o||0,l);return n+l+u+(i||"")+(s||"")}function IA(r,e,t){var n=e.getItemVisual(t,r);if(!(!n||n==="none")){var a=e.getItemVisual(t,r+"Size"),i=e.getItemVisual(t,r+"Rotate"),o=e.getItemVisual(t,r+"Offset"),s=e.getItemVisual(t,r+"KeepAspect"),l=Il(a),u=Ko(o||0,l),f=gt(n,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return f.__specifiedRotation=i==null||isNaN(i)?void 0:+i*Math.PI/180||0,f.name=r,f}}function yX(r){var e=new hO({name:"line",subPixelOptimize:!0});return n_(e.shape,r),e}function n_(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 B1=(function(r){B(e,r);function e(t,n,a){var i=r.call(this)||this;return i._createLine(t,n,a),i}return e.prototype._createLine=function(t,n,a){var i=t.hostModel,o=t.getItemLayout(n),s=t.getItemVisual(n,"z2"),l=yX(o);l.shape.percent=0,Ke(l,{z2:Q(s,0),shape:{percent:1}},i,n),this.add(l),M(sy,function(u){var f=IA(u,t,n);this.add(f),this[MA(u)]=DA(u,t,n)},this),this._updateCommonStl(t,n,a)},e.prototype.updateData=function(t,n,a){var i=t.hostModel,o=this.childOfName("line"),s=t.getItemLayout(n),l={shape:{}};n_(l.shape,s),Oe(o,l,i,n),M(sy,function(u){var f=DA(u,t,n),v=MA(u);if(this[v]!==f){this.remove(this.childOfName(u));var c=IA(u,t,n);this.add(c)}this[v]=f},this),this._updateCommonStl(t,n,a)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,n,a){var i=t.hostModel,o=this.childOfName("line"),s=a&&a.emphasisLineStyle,l=a&&a.blurLineStyle,u=a&&a.selectLineStyle,f=a&&a.labelStatesModels,v=a&&a.emphasisDisabled,c=a&&a.focus,h=a&&a.blurScope;if(!a||t.hasItemOption){var d=t.getItemModel(n),p=d.getModel("emphasis");s=p.getModel("lineStyle").getLineStyle(),l=d.getModel(["blur","lineStyle"]).getLineStyle(),u=d.getModel(["select","lineStyle"]).getLineStyle(),v=p.get("disabled"),c=p.get("focus"),h=p.get("blurScope"),f=St(d)}var g=t.getItemVisual(n,"style"),y=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,M(sy,function(w){var b=this.childOfName(w);if(b){b.setColor(y),b.style.opacity=g.opacity;for(var T=0;T<ir.length;T++){var C=ir[T],A=o.getState(C);if(A){var D=A.style||{},L=b.ensureState(C),I=L.style||(L.style={});D.stroke!=null&&(I[b.__isEmptyBrush?"stroke":"fill"]=D.stroke),D.opacity!=null&&(I.opacity=D.opacity)}}b.markRedraw()}},this);var m=i.getRawValue(n);Mt(this,f,{labelDataIndex:n,labelFetcher:{getFormattedLabel:function(w,b){return i.getFormattedLabel(w,b,t.dataType)}},inheritColor:y||N.color.neutral99,defaultOpacity:g.opacity,defaultText:(m==null?t.getName(n):isFinite(m)?ke(m,10):m)+""});var _=this.getTextContent();if(_){var S=f.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=S.get("position")||"middle";var x=S.get("distance");U(x)||(x=[x,x]),_.__labelDistance=x}this.setTextConfig({position:null,local:!0,inside:!1}),et(this,c,h,v)},e.prototype.highlight=function(){da(this)},e.prototype.downplay=function(){pa(this)},e.prototype.updateLayout=function(t,n){this.childOfName("line").stopAnimation(),this.setLinePoints(t.getItemLayout(n))},e.prototype.setLinePoints=function(t){var n=this.childOfName("line");n_(n.shape,t),n.dirty()},e.prototype.beforeUpdate=function(){var t=this,n=t.childOfName("fromSymbol"),a=t.childOfName("toSymbol"),i=t.getTextContent();if(!n&&!a&&(!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,f=l.pointAt(0),v=l.pointAt(u),c=no([],v,f);gl(c,c);function h(A,D){var L=A.__specifiedRotation;if(L==null){var I=l.tangentAt(D);A.attr("rotation",(D===1?-1:1)*Math.PI/2-Math.atan2(I[1],I[0]))}else A.attr("rotation",L)}if(n&&(n.setPosition(f),h(n,0),n.scaleX=n.scaleY=o*u,n.markRedraw()),a&&(a.setPosition(v),h(a,1),a.scaleX=a.scaleY=o*u,a.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var d=void 0,p=void 0,g=i.__labelDistance,y=g[0]*o,m=g[1]*o,_=u/2,S=l.tangentAt(_),x=[S[1],-S[0]],w=l.pointAt(_);x[1]>0&&(x[0]=-x[0],x[1]=-x[1]);var b=S[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var T=-Math.atan2(S[1],S[0]);v[0]<f[0]&&(T=Math.PI+T),i.rotation=T}var C=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":C=-m,p="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":C=m,p="top";break;default:C=0,p="middle"}switch(i.__position){case"end":i.x=c[0]*y+v[0],i.y=c[1]*m+v[1],d=c[0]>.8?"left":c[0]<-.8?"right":"center",p=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":i.x=-c[0]*y+f[0],i.y=-c[1]*m+f[1],d=c[0]>.8?"right":c[0]<-.8?"left":"center",p=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=y*b+f[0],i.y=f[1]+C,d=S[0]<0?"right":"left",i.originX=-y*b,i.originY=-C;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=w[0],i.y=w[1]+C,d="center",i.originY=-C;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-y*b+v[0],i.y=v[1]+C,d=S[0]>=0?"right":"left",i.originX=y*b,i.originY=-C;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||p,align:i.__align||d})}},e})(oe),V1=(function(){function r(e){this.group=new oe,this._LineCtor=e||B1}return r.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var n=this,a=n.group,i=n._lineData;n._lineData=e,i||a.removeAll();var o=LA(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){a.remove(i.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,n){t.updateLayout(e,n)},this)},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=LA(e),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,n){this._progressiveEls=[];function a(l){!l.isGroup&&!mX(l)&&(l.incremental=n,l.ensureState("emphasis").hoverLayer=Tl)}for(var i=e.start;i<e.end;i++){var o=t.getItemLayout(i);if(ly(o)){var s=new this._LineCtor(t,i,this._seriesScope);s.traverse(a),this.group.add(s),t.setItemGraphicEl(i,s),this._progressiveEls.push(s)}}},r.prototype.remove=function(){this.group.removeAll()},r.prototype.eachRendered=function(e){di(this._progressiveEls||this.group,e)},r.prototype._doAdd=function(e,t,n){var a=e.getItemLayout(t);if(ly(a)){var i=new this._LineCtor(e,t,n);e.setItemGraphicEl(t,i),this.group.add(i)}},r.prototype._doUpdate=function(e,t,n,a,i){var o=e.getItemGraphicEl(n);if(!ly(t.getItemLayout(a))){this.group.remove(o);return}o?o.updateData(t,a,i):o=new this._LineCtor(t,a,i),t.setItemGraphicEl(a,o),this.group.add(o)},r})();function mX(r){return r.animators&&r.animators.length>0}function LA(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:St(e)}}function PA(r){return isNaN(r[0])||isNaN(r[1])}function ly(r){return r&&!PA(r[0])&&!PA(r[1])}var uy=[],fy=[],vy=[],Ss=Lt,cy=fo,RA=Math.abs;function EA(r,e,t){for(var n=r[0],a=r[1],i=r[2],o=1/0,s,l=t*t,u=.1,f=.1;f<=.9;f+=.1){uy[0]=Ss(n[0],a[0],i[0],f),uy[1]=Ss(n[1],a[1],i[1],f);var v=RA(cy(uy,e)-l);v<o&&(o=v,s=f)}for(var c=0;c<32;c++){var h=s+u;fy[0]=Ss(n[0],a[0],i[0],s),fy[1]=Ss(n[1],a[1],i[1],s),vy[0]=Ss(n[0],a[0],i[0],h),vy[1]=Ss(n[1],a[1],i[1],h);var v=cy(fy,e)-l;if(RA(v)<.01)break;var d=cy(vy,e)-l;u/=2,v<0?d>=0?s=s+u:s=s-u:d>=0?s=s-u:s=s+u}return s}function hy(r,e){var t=[],n=Yu,a=[[],[],[]],i=[[],[]],o=[];e/=2,r.eachEdge(function(s,l){var u=s.getLayout(),f=s.getVisual("fromSymbol"),v=s.getVisual("toSymbol");u.__original||(u.__original=[ra(u[0]),ra(u[1])],u[2]&&u.__original.push(ra(u[2])));var c=u.__original;if(u[2]!=null){if(Ht(a[0],c[0]),Ht(a[1],c[2]),Ht(a[2],c[1]),f&&f!=="none"){var h=Mu(s.node1),d=EA(a,c[0],h*e);n(a[0][0],a[1][0],a[2][0],d,t),a[0][0]=t[3],a[1][0]=t[4],n(a[0][1],a[1][1],a[2][1],d,t),a[0][1]=t[3],a[1][1]=t[4]}if(v&&v!=="none"){var h=Mu(s.node2),d=EA(a,c[1],h*e);n(a[0][0],a[1][0],a[2][0],d,t),a[1][0]=t[1],a[2][0]=t[2],n(a[0][1],a[1][1],a[2][1],d,t),a[1][1]=t[1],a[2][1]=t[2]}Ht(u[0],a[0]),Ht(u[1],a[2]),Ht(u[2],a[1])}else{if(Ht(i[0],c[0]),Ht(i[1],c[1]),no(o,i[1],i[0]),gl(o,o),f&&f!=="none"){var h=Mu(s.node1);xm(i[0],i[0],o,h*e)}if(v&&v!=="none"){var h=Mu(s.node2);xm(i[1],i[1],o,-h*e)}Ht(u[0],i[0]),Ht(u[1],i[1])}})}var dO=me();function _X(r){if(r)return dO(r).bridge}function kA(r,e){r&&(dO(r).bridge=e)}var SX=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=or,t}return e.prototype.init=function(t,n){var a=new jf,i=new V1,o=this.group,s=new oe;this._controller=new ts(n.getZr()),s.add(a.group),s.add(i.group),o.add(s),this._symbolDraw=a,this._lineDraw=i,this._mainGroup=s,this._firstRender=!0},e.prototype.render=function(t,n,a){var i=this,o=Wh(t),s=!1;this._model=t,this._api=a,this._active=!0;var l=this._mainGroup,u=this._getThumbnailInfo();u&&u.bridge.reset(a);var f=this._symbolDraw,v=this._lineDraw;o&&oi(l,Gn,o,this._firstRender?null:t),hy(t.getGraph(),Au(t));var c=t.getData();f.updateData(c);var h=t.getEdgeData();v.updateData(h),this._updateNodeAndLinkScale(),o&&sp(t,a,this._controller,function(S,x,w){return t.coordinateSystem.containPoint([x,w])},null),clearTimeout(this._layoutTimeout);var d=t.forceLayout,p=t.get(["force","layoutAnimation"]);d&&(s=!0,this._startForceLayoutIteration(d,a,p));var g=t.get("layout");c.graph.eachNode(function(S){var x=S.dataIndex,w=S.getGraphicEl(),b=S.getModel();if(w){w.off("drag").off("dragend");var T=b.get("draggable");T&&w.on("drag",function(A){switch(g){case"force":d.warmUp(),!i._layouting&&i._startForceLayoutIteration(d,a,p),d.setFixed(x),c.setItemLayout(x,[w.x,w.y]);break;case"circular":c.setItemLayout(x,[w.x,w.y]),S.setLayout({fixed:!0},!0),N1(t,"symbolSize",S,[A.offsetX,A.offsetY]),i.updateLayout(t);break;case"none":default:c.setItemLayout(x,[w.x,w.y]),O1(t.getGraph(),t),i.updateLayout(t);break}}).on("dragend",function(){d&&d.setUnfixed(x)}),w.setDraggable(T,!!b.get("cursor"));var C=b.get(["emphasis","focus"]);C==="adjacency"&&(ve(w).focus=S.getAdjacentDataIndices())}}),c.graph.eachEdge(function(S){var x=S.getGraphicEl(),w=S.getModel().get(["emphasis","focus"]);x&&w==="adjacency"&&(ve(x).focus={edge:[S.dataIndex],node:[S.node1.dataIndex,S.node2.dataIndex]})});var y=t.get("layout")==="circular"&&t.get(["circular","rotateLabel"]),m=c.getLayout("cx"),_=c.getLayout("cy");c.graph.eachNode(function(S){vO(S,y,m,_)}),this._firstRender=!1,s||this._renderThumbnail(t,a,this._symbolDraw,this._lineDraw)},e.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose()},e.prototype._startForceLayoutIteration=function(t,n,a){var i=this,o=!1;(function s(){t.step(function(l){i.updateLayout(i._model),(l||!o)&&(o=!0,i._renderThumbnail(i._model,n,i._symbolDraw,i._lineDraw)),(i._layouting=!l)&&(a?i._layoutTimeout=setTimeout(s,16):s())})})()},e.prototype.__updateOnOwnRoam=function(t,n,a){var i=Wh(n);!this._active||!i||(oi(this._mainGroup,Gn,i,null),Vk(t)&&(this._updateNodeAndLinkScale(),hy(n.getGraph(),Au(n)),this._lineDraw.updateLayout(),a.updateLabelLayout()),this._updateThumbnailWindow())},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,n=t.getData(),a=Au(t);n.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(a)})},e.prototype.updateLayout=function(t){this._active&&(hy(t.getGraph(),Au(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout())},e.prototype.remove=function(){this._active=!1,clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove(),this._controller&&this._controller.disable()},e.prototype._getThumbnailInfo=function(){var t=this._model,n=t.coordinateSystem;if(n.type==="view"){var a=_X(t);if(a)return{bridge:a,coordSys:n}}},e.prototype._updateThumbnailWindow=function(){var t=this._getThumbnailInfo();t&&t.bridge.updateWindow(Uh(null,t.coordSys),this._api)},e.prototype._renderThumbnail=function(t,n,a,i){var o=this._getThumbnailInfo();if(o){var s=new oe,l=a.group.children(),u=i.group.children(),f=new oe,v=new oe;s.add(v),s.add(f);for(var c=0;c<l.length;c++){var h=l[c],d=h.children()[0],p=h.x,g=h.y,y=ae(d.shape),m=G(y,{width:d.scaleX,height:d.scaleY,x:p-d.scaleX/2,y:g-d.scaleY/2}),_=ae(d.style),S=new d.constructor({shape:m,style:_,z2:151});v.add(S)}for(var c=0;c<u.length;c++){var h=u[c],x=h.children()[0],_=ae(x.style),m=ae(x.shape),w=new hO({style:_,shape:m,z2:151});f.add(w)}o.bridge.renderContent({api:n,roamType:t.get("roam"),viewportRect:null,group:s,targetTrans:Uh(null,o.coordSys)})}},e.type=or,e})(Ue),xX=wt(or,wX);function wX(r){var e=r.findComponents({mainType:"legend"});!e||!e.length||r.eachSeriesByType(or,function(t){var n=t.getCategoriesData(),a=t.getGraph(),i=a.data,o=n.mapArray(n.getName);i.filterSelf(function(s){var l=i.getItemModel(s),u=l.getShallow("category");if(u!=null){Ee(u)&&(u=o[u]);for(var f=0;f<e.length;f++)if(!e[f].isSelected(u))return!1}return!0})})}var bX=wt(or,CX);function CX(r){var e={};r.eachSeriesByType(or,function(t){var n=t.getCategoriesData(),a=t.getData(),i={};n.each(function(o){var s=n.getName(o);i["ec-"+s]=o;var l=n.getItemModel(o),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=t.getColorFromPalette(s,e)),n.setItemVisual(o,"style",u);for(var f=["symbol","symbolSize","symbolKeepAspect"],v=0;v<f.length;v++){var c=l.getShallow(f[v],!0);c!=null&&n.setItemVisual(o,f[v],c)}}),n.count()&&a.each(function(o){var s=a.getItemModel(o),l=s.getShallow("category");if(l!=null){Z(l)&&(l=i["ec-"+l]);var u=n.getItemVisual(l,"style"),f=a.ensureUniqueItemVisual(o,"style");G(f,u);for(var v=["symbol","symbolSize","symbolKeepAspect"],c=0;c<v.length;c++)a.setItemVisual(o,v[c],n.getItemVisual(l,v[c]))}})})}function TX(r){r.registerChartView(SX),r.registerSeriesModel(aX),r.registerProcessor(xX),r.registerVisual(bX),r.registerVisual(iX),r.registerLayout(sX),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,fX),r.registerLayout(hX),r.registerCoordinateSystem("graphView",{dimensions:ip.dimensions,create:gX}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},ot),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},ot),T1(r,Vn,or)}var Af="chord",AX=(function(r){B(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.fillDataTextStyle(t.edges||t.links),this.legendVisualProvider=new El(q(this.getData,this),q(this.getRawData,this))},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links)},e.prototype.getInitialData=function(t,n){var a=t.edges||t.links||[],i=t.data||t.nodes||[];if(i&&a){var o=E1(i,a,this,!0,s);return o.data}function s(l,u){var f=Ie.prototype.getModel;function v(h,d){var p=f.call(this,h,d);return p.resolveParentPath=c,p}u.wrapMethod("getItemModel",function(h){return h.resolveParentPath=c,h.getModel=v,h});function c(h){if(h&&(h[0]==="label"||h[1]==="label")){var d=h.slice();return h[0]==="label"?d[0]="edgeLabel":h[1]==="label"&&(d[1]="edgeLabel"),d}return h}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,n,a){var i=this.getDataParams(t,a);if(a==="edge"){var o=this.getData(),s=o.graph.getEdgeByIndex(t),l=o.getName(s.node1.dataIndex),u=o.getName(s.node2.dataIndex),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),pt("nameValue",{name:f.join(" > "),value:i.value,noValue:i.value==null})}return pt("nameValue",{name:i.name,value:i.value,noValue:i.value==null})},e.prototype.getDataParams=function(t,n){var a=r.prototype.getDataParams.call(this,t,n);if(n==="node"){var i=this.getData(),o=this.getGraph().getNodeByIndex(t);if(a.name==null&&(a.name=i.getName(t)),a.value==null){var s=o.getLayout().value;a.value=s}}return a},e.type="series."+Af,e.defaultOption={z:2,coordinateSystem:"none",legendHoverLink:!0,colorBy:"data",left:0,top:0,right:0,bottom:0,width:null,height:null,center:["50%","50%"],radius:["70%","80%"],clockwise:!0,startAngle:90,endAngle:"auto",minAngle:0,padAngle:3,itemStyle:{borderRadius:[0,0,5,5]},lineStyle:{width:0,color:"source",opacity:.2},label:{show:!0,position:"outside",distance:5},emphasis:{focus:"adjacency",lineStyle:{opacity:.5}}},e})(je),OA=(function(r){B(e,r);function e(t,n,a){var i=r.call(this)||this;ve(i).dataType="node",i.z2=2;var o=new Re;return i.setTextContent(o),i.updateData(t,n,a,!0),i}return e.prototype.updateData=function(t,n,a,i){var o=this,s=t.graph.getNodeByIndex(n),l=t.hostModel,u=s.getModel(),f=u.getModel("emphasis"),v=t.getItemLayout(n),c=G(Cn(u.getModel("itemStyle"),v,!0),v),h=this;if(isNaN(c.startAngle)){h.setShape(c);return}i?h.setShape(c):Oe(h,{shape:c},l,n);var d=G(Cn(u.getModel("itemStyle"),v,!0),v);o.setShape(d),o.useStyle(t.getItemVisual(n,"style")),_t(o,u),this._updateLabel(l,u,s),t.setItemGraphicEl(n,h),_t(h,u,"itemStyle");var p=f.get("focus");et(this,p==="adjacency"?s.getAdjacentDataIndices():p,f.get("blurScope"),f.get("disabled"))},e.prototype._updateLabel=function(t,n,a){var i=this.getTextContent(),o=a.getLayout(),s=(o.startAngle+o.endAngle)/2,l=Math.cos(s),u=Math.sin(s),f=n.getModel("label");i.ignore=!f.get("show");var v=St(n),c=a.getVisual("style");Mt(i,v,{labelFetcher:{getFormattedLabel:function(m,_,S,x,w,b){return t.getFormattedLabel(m,_,"node",x,xr(w,v.normal&&v.normal.get("formatter"),n.get("name")),b)}},labelDataIndex:a.dataIndex,defaultText:a.dataIndex+"",inheritColor:c.fill,defaultOpacity:c.opacity,defaultOutsidePosition:"startArc"});var h=f.get("position")||"outside",d=f.get("distance")||0,p;h==="outside"?p=o.r+d:p=(o.r+o.r0)/2,this.textConfig={inside:h!=="outside"};var g=h!=="outside"?f.get("align")||"center":l>0?"left":"right",y=h!=="outside"?f.get("verticalAlign")||"middle":u>0?"top":"bottom";i.attr({x:l*p+o.cx,y:u*p+o.cy,rotation:0,style:{align:g,verticalAlign:y}})},e})(Xt),MX=(function(r){B(e,r);function e(t,n,a,i){var o=r.call(this)||this;return ve(o).dataType="edge",o.updateData(t,n,a,i,!0),o}return e.prototype.buildPath=function(t,n){t.moveTo(n.s1[0],n.s1[1]);var a=.7,i=n.clockwise;t.arc(n.cx,n.cy,n.r,n.sStartAngle,n.sEndAngle,!i),t.bezierCurveTo((n.cx-n.s2[0])*a+n.s2[0],(n.cy-n.s2[1])*a+n.s2[1],(n.cx-n.t1[0])*a+n.t1[0],(n.cy-n.t1[1])*a+n.t1[1],n.t1[0],n.t1[1]),t.arc(n.cx,n.cy,n.r,n.tStartAngle,n.tEndAngle,!i),t.bezierCurveTo((n.cx-n.t2[0])*a+n.t2[0],(n.cy-n.t2[1])*a+n.t2[1],(n.cx-n.s1[0])*a+n.s1[0],(n.cy-n.s1[1])*a+n.s1[1],n.s1[0],n.s1[1]),t.closePath()},e.prototype.updateData=function(t,n,a,i,o){var s=t.hostModel,l=n.graph.getEdgeByIndex(a),u=l.getLayout(),f=l.node1.getModel(),v=n.getItemModel(l.dataIndex),c=v.getModel("lineStyle"),h=v.getModel("emphasis"),d=h.get("focus"),p=G(Cn(f.getModel("itemStyle"),u,!0),u),g=this;if(isNaN(p.sStartAngle)||isNaN(p.tStartAngle)){g.setShape(p);return}o?(g.setShape(p),NA(g,l,t,c)):($r(g),NA(g,l,t,c),Oe(g,{shape:p},s,a)),et(this,d==="adjacency"?l.getAdjacentDataIndices():d,h.get("blurScope"),h.get("disabled")),_t(g,v,"lineStyle"),n.setItemGraphicEl(l.dataIndex,g)},e})(Ae);function NA(r,e,t,n){var a=e.node1,i=e.node2,o=r.style;r.setStyle(n.getLineStyle());var s=n.get("color");switch(s){case"source":o.fill=t.getItemVisual(a.dataIndex,"style").fill,o.decal=a.getVisual("style").decal;break;case"target":o.fill=t.getItemVisual(i.dataIndex,"style").fill,o.decal=i.getVisual("style").decal;break;case"gradient":var l=t.getItemVisual(a.dataIndex,"style").fill,u=t.getItemVisual(i.dataIndex,"style").fill;if(Z(l)&&Z(u)){var f=r.shape,v=(f.s1[0]+f.s2[0])/2,c=(f.s1[1]+f.s2[1])/2,h=(f.t1[0]+f.t2[0])/2,d=(f.t1[1]+f.t2[1])/2;o.fill=new bl(v,c,h,d,[{offset:0,color:l},{offset:1,color:u}],!0)}break}}var DX=Math.PI/180,IX=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=Af,t}return e.prototype.init=function(t,n){},e.prototype.render=function(t,n,a){var i=t.getData(),o=this._data,s=this.group,l=-t.get("startAngle")*DX;if(i.diff(o).add(function(f){var v=i.getItemLayout(f);if(v){var c=new OA(i,f,l);ve(c).dataIndex=f,s.add(c)}}).update(function(f,v){var c=o.getItemGraphicEl(v),h=i.getItemLayout(f);if(!h){c&&na(c,t,v);return}c?c.updateData(i,f,l):c=new OA(i,f,l),s.add(c)}).remove(function(f){var v=o.getItemGraphicEl(f);v&&na(v,t,f)}).execute(),!o){var u=t.get("center");this.group.scaleX=.01,this.group.scaleY=.01,this.group.originX=j(u[0],a.getWidth()),this.group.originY=j(u[1],a.getHeight()),Ke(this.group,{scaleX:1,scaleY:1},t)}this._data=i,this.renderEdges(t,l)},e.prototype.renderEdges=function(t,n){var a=t.getData(),i=t.getEdgeData(),o=this._edgeData,s=this.group;i.diff(o).add(function(l){var u=new MX(a,i,l,n);ve(u).dataIndex=l,s.add(u)}).update(function(l,u){var f=o.getItemGraphicEl(u);f.updateData(a,i,l,n),s.add(f)}).remove(function(l){var u=o.getItemGraphicEl(l);u&&na(u,t,l)}).execute(),this._edgeData=i},e.prototype.dispose=function(){},e.type=Af,e})(Ue),dy=Math.PI/180,LX=wt(Af,PX);function PX(r,e){r.eachSeriesByType(Af,function(t){RX(t,e)})}function RX(r,e){var t=r.getData(),n=t.graph,a=r.getEdgeData(),i=a.count();if(i){var o=oP(r,e),s=o.cx,l=o.cy,u=o.r,f=o.r0,v=Math.max((r.get("padAngle")||0)*dy,0),c=Math.max((r.get("minAngle")||0)*dy,0),h=-r.get("startAngle")*dy,d=h+Math.PI*2,p=r.get("clockwise"),g=p?1:-1,y=[h,d];Ld(y,!p);var m=y[0],_=y[1],S=_-m,x=t.getSum("value")===0&&a.getSum("value")===0,w=[],b=0;n.eachEdge(function(k){var z=x?1:k.getValue("value");x&&(z>0||c)&&(b+=2);var F=k.node1.dataIndex,H=k.node2.dataIndex;w[F]=(w[F]||0)+z,w[H]=(w[H]||0)+z});var T=0;if(n.eachNode(function(k){var z=k.getValue("value");isNaN(z)||(w[k.dataIndex]=Math.max(z,w[k.dataIndex]||0)),!x&&(w[k.dataIndex]>0||c)&&b++,T+=w[k.dataIndex]||0}),!(b===0||T===0)){v*b>=Math.abs(S)&&(v=Math.max(0,(Math.abs(S)-c*b)/b)),(v+c)*b>=Math.abs(S)&&(c=(Math.abs(S)-v*b)/b);var C=(S-v*b*g)/T,A=0,D=0,L=0;n.eachNode(function(k){var z=w[k.dataIndex]||0,F=C*(T?z:1)*g;Math.abs(F)<c?A+=c-Math.abs(F):(D+=Math.abs(F)-c,L+=Math.abs(F)),k.setLayout({angle:F,value:z})});var I=!1;if(A>D){var P=A/D;n.eachNode(function(k){var z=k.getLayout().angle;Math.abs(z)>=c?k.setLayout({angle:z*P,ratio:P},!0):k.setLayout({angle:c,ratio:c===0?1:z/c},!0)})}else n.eachNode(function(k){if(!I){var z=k.getLayout().angle,F=Math.min(z/L,1),H=F*A;z-H<c&&(I=!0)}});var R=A;n.eachNode(function(k){if(!(R<=0)){var z=k.getLayout().angle;if(z>c&&c>0){var F=I?1:Math.min(z/L,1),H=z-c,W=Math.min(H,Math.min(R,A*F));R-=W,k.setLayout({angle:z-W,ratio:(z-W)/z},!0)}else c>0&&k.setLayout({angle:c,ratio:z===0?1:c/z},!0)}});var E=m,O=[];n.eachNode(function(k){var z=Math.max(k.getLayout().angle,c);k.setLayout({cx:s,cy:l,r0:f,r:u,startAngle:E,endAngle:E+z*g,clockwise:p},!0),O[k.dataIndex]=E,E+=(z+v)*g}),n.eachEdge(function(k){var z=x?1:k.getValue("value"),F=C*(T?z:1)*g,H=k.node1.dataIndex,W=O[H]||0,X=Math.abs((k.node1.getLayout().ratio||1)*F),Y=W+X*g,ee=[s+f*Math.cos(W),l+f*Math.sin(W)],ye=[s+f*Math.cos(Y),l+f*Math.sin(Y)],Ne=k.node2.dataIndex,ce=O[Ne]||0,te=Math.abs((k.node2.getLayout().ratio||1)*F),ge=ce+te*g,re=[s+f*Math.cos(ce),l+f*Math.sin(ce)],he=[s+f*Math.cos(ge),l+f*Math.sin(ge)];k.setLayout({s1:ee,s2:ye,sStartAngle:W,sEndAngle:Y,t1:re,t2:he,tStartAngle:ce,tEndAngle:ge,cx:s,cy:l,r:f,value:z,clockwise:p}),O[H]=Y,O[Ne]=ge})}}}function EX(r){r.registerChartView(IX),r.registerSeriesModel(AX),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,LX),r.registerProcessor(Jf("chord"))}var kX=(function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r})(),OX=(function(r){B(e,r);function e(t){var n=r.call(this,t)||this;return n.type="pointer",n}return e.prototype.getDefaultShape=function(){return new kX},e.prototype.buildPath=function(t,n){var a=Math.cos,i=Math.sin,o=n.r,s=n.width,l=n.angle,u=n.x-a(l)*s*(s>=o/3?1:2),f=n.y-i(l)*s*(s>=o/3?1:2);l=n.angle-Math.PI/2,t.moveTo(u,f),t.lineTo(n.x+a(l)*s,n.y+i(l)*s),t.lineTo(n.x+a(n.angle)*o,n.y+i(n.angle)*o),t.lineTo(n.x-a(l)*s,n.y-i(l)*s),t.lineTo(u,f)},e})(Ae);function NX(r,e){var t=r.get("center"),n=e.getWidth(),a=e.getHeight(),i=Math.min(n,a),o=j(t[0],e.getWidth()),s=j(t[1],e.getHeight()),l=j(r.get("radius"),i/2);return{cx:o,cy:s,r:l}}function ec(r,e){var t=r==null?"":r+"";return e&&(Z(e)?t=e.replace("{value}",t):ie(e)&&(t=e(r))),t}var BX=(function(r){B(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,n,a){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),o=NX(t,a);this._renderMain(t,n,a,i,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,n,a,i,o){var s=this.group,l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,f=-t.get("endAngle")/180*Math.PI,v=t.getModel("axisLine"),c=v.get("roundCap"),h=c?Fh:Xt,d=v.get("show"),p=v.getModel("lineStyle"),g=p.get("width"),y=[u,f];Ld(y,!l),u=y[0],f=y[1];for(var m=f-u,_=u,S=[],x=0;d&&x<i.length;x++){var w=Math.min(Math.max(i[x][0],0),1);f=u+m*w;var b=new h({shape:{startAngle:_,endAngle:f,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-g,r:o.r},silent:!0});b.setStyle({fill:i[x][1]}),b.setStyle(p.getLineStyle(["color","width"])),S.push(b),_=f}S.reverse(),M(S,function(C){return s.add(C)});var T=function(C){if(C<=0)return i[0][1];var A;for(A=0;A<i.length;A++)if(i[A][0]>=C&&(A===0?0:i[A-1][0])<C)return i[A][1];return i[A-1][1]};this._renderTicks(t,n,a,T,o,u,f,l,g),this._renderTitleAndDetail(t,n,a,T,o),this._renderAnchor(t,o),this._renderPointer(t,n,a,T,o,u,f,l,g)},e.prototype._renderTicks=function(t,n,a,i,o,s,l,u,f){for(var v=this.group,c=o.cx,h=o.cy,d=o.r,p=+t.get("min"),g=+t.get("max"),y=t.getModel("splitLine"),m=t.getModel("axisTick"),_=t.getModel("axisLabel"),S=t.get("splitNumber"),x=m.get("splitNumber"),w=j(y.get("length"),d),b=j(m.get("length"),d),T=s,C=(l-s)/S,A=C/x,D=y.getModel("lineStyle").getLineStyle(),L=m.getModel("lineStyle").getLineStyle(),I=y.get("distance"),P,R,E=0;E<=S;E++){if(P=Math.cos(T),R=Math.sin(T),y.get("show")){var O=I?I+f:f,k=new dt({shape:{x1:P*(d-O)+c,y1:R*(d-O)+h,x2:P*(d-w-O)+c,y2:R*(d-w-O)+h},style:D,silent:!0});D.stroke==="auto"&&k.setStyle({stroke:i(E/S)}),v.add(k)}if(_.get("show")){var O=_.get("distance")+I,z=ec(ke(E*(g-p)/S+p,$z),_.get("formatter")),F=i(E/S),H=P*(d-w-O)+c,W=R*(d-w-O)+h,X=_.get("rotate"),Y=0;X==="radial"?(Y=-T+2*Math.PI,Y>Math.PI/2&&(Y+=Math.PI)):X==="tangential"?Y=-T-Math.PI/2:Ee(X)&&(Y=X*Math.PI/180),Y===0?v.add(new Re({style:Ze(_,{text:z,x:H,y:W,verticalAlign:R<-.8?"top":R>.8?"bottom":"middle",align:P<-.4?"left":P>.4?"right":"center"},{inheritColor:F}),silent:!0})):v.add(new Re({style:Ze(_,{text:z,x:H,y:W,verticalAlign:"middle",align:"center"},{inheritColor:F}),silent:!0,originX:H,originY:W,rotation:Y}))}if(m.get("show")&&E!==S){var O=m.get("distance");O=O?O+f:f;for(var ee=0;ee<=x;ee++){P=Math.cos(T),R=Math.sin(T);var ye=new dt({shape:{x1:P*(d-O)+c,y1:R*(d-O)+h,x2:P*(d-b-O)+c,y2:R*(d-b-O)+h},silent:!0,style:L});L.stroke==="auto"&&ye.setStyle({stroke:i((E+ee/x)/S)}),v.add(ye),T+=A}T-=A}else T+=C}},e.prototype._renderPointer=function(t,n,a,i,o,s,l,u,f){var v=this.group,c=this._data,h=this._progressEls,d=[],p=t.get(["pointer","show"]),g=t.getModel("progress"),y=g.get("show"),m=t.getData(),_=m.mapDimension("value"),S=+t.get("min"),x=+t.get("max"),w=[S,x],b=[s,l];function T(A,D){var L=m.getItemModel(A),I=L.getModel("pointer"),P=j(I.get("width"),o.r),R=j(I.get("length"),o.r),E=t.get(["pointer","icon"]),O=I.get("offsetCenter"),k=j(O[0],o.r),z=j(O[1],o.r),F=I.get("keepAspect"),H;return E?H=gt(E,k-P/2,z-R,P,R,null,F):H=new OX({shape:{angle:-Math.PI/2,width:P,r:R,x:k,y:z}}),H.rotation=-(D+Math.PI/2),H.x=o.cx,H.y=o.cy,H}function C(A,D){var L=g.get("roundCap"),I=L?Fh:Xt,P=g.get("overlap"),R=P?g.get("width"):f/m.count(),E=P?o.r-R:o.r-(A+1)*R,O=P?o.r:o.r-A*R,k=new I({shape:{startAngle:s,endAngle:D,cx:o.cx,cy:o.cy,clockwise:u,r0:E,r:O}});return P&&(k.z2=Be(m.get(_,A),[S,x],[100,0],!0)),k}(y||p)&&(m.diff(c).add(function(A){var D=m.get(_,A);if(p){var L=T(A,s);Ke(L,{rotation:-((isNaN(+D)?b[0]:Be(D,w,b,!0))+Math.PI/2)},t),v.add(L),m.setItemGraphicEl(A,L)}if(y){var I=C(A,s),P=g.get("clip");Ke(I,{shape:{endAngle:Be(D,w,b,P)}},t),v.add(I),Jm(t.seriesIndex,m.dataType,A,I),d[A]=I}}).update(function(A,D){var L=m.get(_,A);if(p){var I=c.getItemGraphicEl(D),P=I?I.rotation:s,R=T(A,P);R.rotation=P,Oe(R,{rotation:-((isNaN(+L)?b[0]:Be(L,w,b,!0))+Math.PI/2)},t),v.add(R),m.setItemGraphicEl(A,R)}if(y){var E=h[D],O=E?E.shape.endAngle:s,k=C(A,O),z=g.get("clip");Oe(k,{shape:{endAngle:Be(L,w,b,z)}},t),v.add(k),Jm(t.seriesIndex,m.dataType,A,k),d[A]=k}}).execute(),m.each(function(A){var D=m.getItemModel(A),L=D.getModel("emphasis"),I=L.get("focus"),P=L.get("blurScope"),R=L.get("disabled"),E=i(Be(m.get(_,A),w,[0,1],!0));if(p){var O=m.getItemGraphicEl(A),k=m.getItemVisual(A,"style"),z=k.fill;if(O instanceof Rt){var F=O.style;O.useStyle(G({image:F.image,x:F.x,y:F.y,width:F.width,height:F.height},k))}else O.useStyle(k),O.type!=="pointer"&&O.setColor(z);O.setStyle(D.getModel(["pointer","itemStyle"]).getItemStyle()),O.style.fill==="auto"&&O.setStyle("fill",E),O.z2EmphasisLift=0,_t(O,D),et(O,I,P,R)}if(y){var H=d[A];H.useStyle(m.getItemVisual(A,"style")),H.setStyle(D.getModel(["progress","itemStyle"]).getItemStyle()),H.style.fill==="auto"&&H.setStyle("fill",E),H.z2EmphasisLift=0,_t(H,D),et(H,I,P,R)}}),this._progressEls=d)},e.prototype._renderAnchor=function(t,n){var a=t.getModel("anchor"),i=a.get("show");if(i){var o=a.get("size"),s=a.get("icon"),l=a.get("offsetCenter"),u=a.get("keepAspect"),f=gt(s,n.cx-o/2+j(l[0],n.r),n.cy-o/2+j(l[1],n.r),o,o,null,u);f.z2=a.get("showAbove")?1:0,f.setStyle(a.getModel("itemStyle").getItemStyle()),this.group.add(f)}},e.prototype._renderTitleAndDetail=function(t,n,a,i,o){var s=this,l=t.getData(),u=l.mapDimension("value"),f=+t.get("min"),v=+t.get("max"),c=new oe,h=[],d=[],p=t.isAnimationEnabled(),g=t.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){h[y]=new Re({silent:!0}),d[y]=new Re({silent:!0})}).update(function(y,m){h[y]=s._titleEls[m],d[y]=s._detailEls[m]}).execute(),l.each(function(y){var m=l.getItemModel(y),_=l.get(u,y),S=new oe,x=i(Be(_,[f,v],[0,1],!0)),w=m.getModel("title");if(w.get("show")){var b=w.get("offsetCenter"),T=o.cx+j(b[0],o.r),C=o.cy+j(b[1],o.r),A=h[y];A.attr({z2:g?0:2,style:Ze(w,{x:T,y:C,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:x})}),S.add(A)}var D=m.getModel("detail");if(D.get("show")){var L=D.get("offsetCenter"),I=o.cx+j(L[0],o.r),P=o.cy+j(L[1],o.r),R=j(D.get("width"),o.r),E=j(D.get("height"),o.r),O=t.get(["progress","show"])?l.getItemVisual(y,"style").fill:x,A=d[y],k=D.get("formatter");A.attr({z2:g?0:2,style:Ze(D,{x:I,y:P,text:ec(_,k),width:isNaN(R)?null:R,height:isNaN(E)?null:E,align:"center",verticalAlign:"middle"},{inheritColor:O})}),k2(A,{normal:D},_,function(F){return ec(F,k)}),p&&O2(A,y,l,t,{getFormattedLabel:function(F,H,W,X,Y,ee){return ec(ee?ee.interpolatedValue:_,k)}}),S.add(A)}c.add(S)}),this.group.add(c),this._titleEls=h,this._detailEls=d},e.type="gauge",e})(Ue),VX=(function(r){B(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,n){return Rl(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,N.color.neutral10]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:N.color.axisTick,width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:N.color.axisTickMinor,width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:N.color.axisLabel,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:N.color.neutral00,borderWidth:0,borderColor:N.color.theme[0]}},title:{show:!0,offsetCenter:[0,"20%"],color:N.color.secondary,fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:N.color.transparent,borderWidth:0,borderColor:N.color.neutral40,width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:N.color.primary,fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e})(je);function zX(r){r.registerChartView(BX),r.registerSeriesModel(VX)}var fl="funnel",FX=(function(r){B(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 El(q(this.getData,this),q(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,n){return Rl(this,{coordDimensions:["value"],encodeDefaulter:xe(PS,this)})},e.prototype._defaultLabelLine=function(t){So(t,"labelLine",["show"]);var n=t.labelLine,a=t.emphasis.labelLine;n.show=n.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var n=this.getData(),a=r.prototype.getDataParams.call(this,t),i=n.mapDimension("value"),o=n.getSum(i);return a.percent=o?+(n.get(i,t)/o*100).toFixed(2):0,a.$vars.push("percent"),a},e.type="series."+fl,e.defaultOption={coordinateSystemUsage:"box",z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:65,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:N.color.neutral00,borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:N.color.primary}}},e})(je),GX=["itemStyle","opacity"],HX=(function(r){B(e,r);function e(t,n){var a=r.call(this)||this,i=a,o=new Bt,s=new Re;return i.setTextContent(s),a.setTextGuideLine(o),a.updateData(t,n,!0),a}return e.prototype.updateData=function(t,n,a){var i=this,o=t.hostModel,s=t.getItemModel(n),l=t.getItemLayout(n),u=s.getModel("emphasis"),f=s.get(GX);f=f??1,a||$r(i),i.useStyle(t.getItemVisual(n,"style")),i.style.lineJoin="round",a?(i.setShape({points:l.points}),i.style.opacity=0,Ke(i,{style:{opacity:f}},o,n)):Oe(i,{style:{opacity:f},shape:{points:l.points}},o,n),_t(i,s),this._updateLabel(t,n),et(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,n){var a=this,i=this.getTextGuideLine(),o=a.getTextContent(),s=t.hostModel,l=t.getItemModel(n),u=t.getItemLayout(n),f=u.label,v=t.getItemVisual(n,"style"),c=v.fill;Mt(o,St(l),{labelFetcher:t.hostModel,labelDataIndex:n,defaultOpacity:v.opacity,defaultText:t.getName(n)},{normal:{align:f.textAlign,verticalAlign:f.verticalAlign}});var h=l.getModel("label"),d=h.get("color"),p=d==="inherit"?c:null;a.setTextConfig({local:!0,inside:!!f.inside,insideStroke:p,outsideFill:p});var g=f.linePoints;i.setShape({points:g}),a.textGuideLineConfig={anchor:g?new ue(g[0][0],g[0][1]):null},Oe(o,{style:{x:f.x,y:f.y}},s,n),o.attr({rotation:f.rotation,originX:f.x,originY:f.y,z2:10}),a1(a,i1(l),{stroke:c})},e})(Zt),UX=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=fl,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,n,a){var i=t.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new HX(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var f=o.getItemGraphicEl(u);f.updateData(i,l),s.add(f),i.setItemGraphicEl(l,f)}).remove(function(l){var u=o.getItemGraphicEl(l);na(u,t,l)}).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type=fl,e})(Ue);function $X(r,e){for(var t=r.mapDimension("value"),n=r.mapArray(t,function(l){return l}),a=[],i=e==="ascending",o=0,s=r.count();o<s;o++)a[o]=o;return ie(e)?a.sort(e):e!=="none"&&a.sort(function(l,u){return i?n[l]-n[u]:n[u]-n[l]}),a}function WX(r){var e=r.hostModel,t=pO(e);r.each(function(n){var a=r.getItemModel(n),i=a.getModel("label"),o=i.get("position"),s=a.getModel("labelLine"),l=r.getItemLayout(n),u=l.points,f=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",v,c,h,d;if(f)o==="insideLeft"?(c=(u[0][0]+u[3][0])/2+5,h=(u[0][1]+u[3][1])/2,v="left"):o==="insideRight"?(c=(u[1][0]+u[2][0])/2-5,h=(u[1][1]+u[2][1])/2,v="right"):(c=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,h=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,v="center"),d=[[c,h],[c,h]];else{var p=void 0,g=void 0,y=void 0,m=void 0,_=s.get("length");Z(o)&&(!t&&pe(["top","bottom"],o)>-1&&(o="left"),t&&pe(["left","right"],o)>-1&&(o="bottom")),o==="left"?(p=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,y=p-_,c=y-5,v="right"):o==="right"?(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,y=p+_,c=y+5,v="left"):o==="top"?(p=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,m=g-_,h=m-5,v="center"):o==="bottom"?(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,m=g+_,h=m+5,v="center"):o==="rightTop"?(p=t?u[3][0]:u[1][0],g=t?u[3][1]:u[1][1],t?(m=g-_,h=m-5,v="center"):(y=p+_,c=y+5,v="top")):o==="rightBottom"?(p=u[2][0],g=u[2][1],t?(m=g+_,h=m+5,v="center"):(y=p+_,c=y+5,v="bottom")):o==="leftTop"?(p=u[0][0],g=t?u[0][1]:u[1][1],t?(m=g-_,h=m-5,v="center"):(y=p-_,c=y-5,v="right")):o==="leftBottom"?(p=t?u[1][0]:u[3][0],g=t?u[1][1]:u[2][1],t?(m=g+_,h=m+5,v="center"):(y=p-_,c=y-5,v="right")):(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,t?(m=g+_,h=m+5,v="center"):(y=p+_,c=y+5,v="left")),t?(y=p,c=y):(m=g,h=m),d=[[p,g],[y,m]]}l.label={linePoints:d,x:c,y:h,verticalAlign:"middle",textAlign:v,inside:f}})}var YX=wt(fl,XX);function XX(r,e){r.eachSeriesByType(fl,function(t){var n=t.getData(),a=n.mapDimension("value"),i=t.get("sort"),o=bt(t,e),s=tt(t.getBoxLayoutParams(),o.refContainer),l=pO(t),u=s.width,f=s.height,v=$X(n,i),c=s.x,h=s.y,d=l?[j(t.get("minSize"),f),j(t.get("maxSize"),f)]:[j(t.get("minSize"),u),j(t.get("maxSize"),u)],p=n.getDataExtent(a),g=t.get("min"),y=t.get("max");g==null&&(g=Math.min(p[0],0)),y==null&&(y=p[1]);var m=t.get("funnelAlign"),_=t.get("gap"),S=l?u:f,x=(S-_*(n.count()-1))/n.count(),w=function(R,E){if(l){var O=n.get(a,R)||0,k=Be(O,[g,y],d,!0),z=void 0;switch(m){case"top":z=h;break;case"center":z=h+(f-k)/2;break;case"bottom":z=h+(f-k);break}return[[E,z],[E,z+k]]}var F=n.get(a,R)||0,H=Be(F,[g,y],d,!0),W;switch(m){case"left":W=c;break;case"center":W=c+(u-H)/2;break;case"right":W=c+u-H;break}return[[W,E],[W+H,E]]};i==="ascending"&&(x=-x,_=-_,l?c+=u:h+=f,v=v.reverse());for(var b=0;b<v.length;b++){var T=v[b],C=v[b+1],A=n.getItemModel(T);if(l){var D=A.get(["itemStyle","width"]);D==null?D=x:(D=j(D,u),i==="ascending"&&(D=-D));var L=w(T,c),I=w(C,c+D);c+=D+_,n.setItemLayout(T,{points:L.concat(I.slice().reverse())})}else{var P=A.get(["itemStyle","height"]);P==null?P=x:(P=j(P,f),i==="ascending"&&(P=-P));var L=w(T,h),I=w(C,h+P);h+=P+_,n.setItemLayout(T,{points:L.concat(I.slice().reverse())})}}WX(n)})}function pO(r){return r.get("orient")==="horizontal"}function ZX(r){r.registerChartView(UX),r.registerSeriesModel(FX),r.registerLayout(YX),r.registerProcessor(Jf(fl))}var jX=.3,qX=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._dataGroup=new oe,t._initialized=!1,t}return e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(t,n,a,i){var o=this._dataGroup;this._progressiveEls=[],o.removeAll();var s=t.getData(),l=this._data,u=t.coordinateSystem,f=u.dimensions,v=VA(t);s.diff(l).add(c).update(h).remove(d).execute();function c(g){var y=BA(s,o,g,f,u);py(y,s,g,v)}function h(g,y){var m=l.getItemGraphicEl(y);o.add(m);var _=gO(s,g,f,u);s.setItemGraphicEl(g,m),Oe(m,{shape:{points:_}},t,g),$r(m),py(m,s,g,v)}function d(g){var y=l.getItemGraphicEl(g);o.remove(y)}if(!this._initialized){this._initialized=!0;var p=KX(u,t,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(p)}this._data=s},e.prototype.incrementalPrepareRender=function(t,n,a){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(t,n,a){for(var i=n.getData(),o=n.coordinateSystem,s=this._progressiveEls=[],l=t.start;l<t.end;l++){var u=BA(i,this._dataGroup,l,o.dimensions,o);u.incremental=Dn(n),py(u,i,l,VA(n)),s.push(u)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e})(Ue);function KX(r,e,t){var n=r.model,a=r.getRect(),i=new be({shape:{x:a.x,y:a.y,width:a.width,height:a.height}}),o=n.get("layout")==="horizontal"?"width":"height";return i.setShape(o,0),Ke(i,{shape:{width:a.width,height:a.height}},e,t),i}function gO(r,e,t,n){for(var a=[],i=0;i<t.length;i++){var o=t[i],s=r.get(r.mapDimension(o),e);JX(s,n.getAxis(o).type)||a.push(n.dataToPoint(s,o))}return a}function BA(r,e,t,n,a){var i=gO(r,t,n,a),o=new Bt({shape:{points:i},z2:10});return e.add(o),r.setItemGraphicEl(t,o),o}function VA(r){var e=r.get("smooth",!0);return e===!0&&(e=jX),e=ca(e),$t(e)&&(e=0),{smooth:e}}function py(r,e,t,n){r.useStyle(e.getItemVisual(t,"style")),r.style.fill=null,r.setShape("smooth",n.smooth);var a=e.getItemModel(t),i=a.getModel("emphasis");_t(r,a,"lineStyle"),et(r,i.get("focus"),i.get("blurScope"),i.get("disabled"))}function JX(r,e){return e==="category"?r==null:r==null||isNaN(r)}var QX=(function(r){B(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,n){return wa(null,this,{useEncodeDefaulter:q(e9,null,this)})},e.prototype.getRawIndicesByActiveState=function(t){var n=this.coordinateSystem,a=this.getData(),i=[];return n.eachActiveState(a,function(o,s){t===o&&i.push(a.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:300,smooth:!1,animationEasing:"linear"},e})(je);function e9(r){var e=r.ecModel.getComponent("parallel",r.get("parallelIndex"));if(e){var t={};return M(e.dimensions,function(n){var a=t9(n);t[n]=a}),t}}function t9(r){return+r.replace("dim","")}var r9=["lineStyle","opacity"],n9={seriesType:"parallel",reset:function(r,e){var t=r.coordinateSystem,n={normal:r.get(["lineStyle","opacity"]),active:r.get("activeOpacity"),inactive:r.get("inactiveOpacity")};return{progress:function(a,i){t.eachActiveState(i,function(o,s){var l=n[o];if(o==="normal"&&i.hasItemOption){var u=i.getItemModel(s).get(r9,!0);u!=null&&(l=u)}var f=i.ensureUniqueItemVisual(s,"style");f.opacity=l},a.start,a.end)}}}};function a9(r){i9(r),o9(r)}function i9(r){if(!r.parallel){var e=!1;M(r.series,function(t){t&&t.type==="parallel"&&(e=!0)}),e&&(r.parallel=[{}])}}function o9(r){var e=Ye(r.parallelAxis);M(e,function(t){if(fe(t)){var n=t.parallelIndex||0,a=Ye(r.parallel)[n];a&&a.parallelAxisDefault&&_e(t,a.parallelAxisDefault,!1)}})}var s9=5,l9=(function(r){B(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,n,a){this._model=t,this._api=a,this._handlers||(this._handlers={},M(u9,function(i,o){a.getZr().on(o,this._handlers[o]=q(i,this))},this)),Ml(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,n){nf(this,"_throttledDispatchExpand"),M(this._handlers,function(a,i){n.getZr().off(i,a)}),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction(G({type:"parallelAxisExpand"},t))},e.type="parallel",e})(Qe),u9={mousedown:function(r){gy(this,"click")&&(this._mouseDownPoint=[r.offsetX,r.offsetY])},mouseup:function(r){var e=this._mouseDownPoint;if(gy(this,"click")&&e){var t=[r.offsetX,r.offsetY],n=Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2);if(n>s9)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);a.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!gy(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),n=t.behavior;n==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(n==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:n==="jump"?null:{duration:0}})}}};function gy(r,e){var t=r._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}var qh="parallel",a_=qh,f9=(function(r){B(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 n=this.option;t&&_e(n,t,!0),this._initDimensions()},e.prototype.contains=function(t,n){var a=t.get("parallelIndex");return a!=null&&n.getComponent("parallel",a)===this},e.prototype.setAxisExpand=function(t){M(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){t.hasOwnProperty(n)&&(this.option[n]=t[n])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],n=this.parallelAxisIndex=[],a=Fe(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);M(a,function(i){t.push("dim"+i.get("dim")),n.push(i.componentIndex)})},e.type=a_,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})(Me),v9=(function(r){B(e,r);function e(t,n,a,i,o){var s=r.call(this,t,n,a)||this;return s.type=i||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e})(ln);function si(r,e,t,n,a,i){r=r||0;var o=Yi(t[1],-t[0]);if(a!=null&&(a=xs(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),n==="all"){var s=Math.abs(Yi(e[1],-e[0]));s=xs(s,[0,o]),a=i=xs(s,[a,i]),n=0}e[0]=xs(e[0],t),e[1]=xs(e[1],t);var l=yy(e,n);e[n]+=r;var u=a||0,f=t.slice();l.sign<0?f[0]=Yi(f[0],u):f[1]=Yi(f[1],-u),e[n]=xs(e[n],f);var v;return v=yy(e,n),a!=null&&(v.sign!==l.sign||v.span<a)&&(e[1-n]=Yi(e[n],l.sign*a)),v=yy(e,n),i!=null&&v.span>i&&(e[1-n]=Yi(e[n],v.sign*i)),e}function yy(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 xs(r,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,r))}var c9=(function(){function r(e,t,n){this.type=qh,this._axesMap=K(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,n)}return r.prototype._init=function(e,t,n){var a=e.dimensions,i=e.parallelAxisIndex;M(a,function(o,s){var l=i[s],u=t.getComponent("parallelAxis",l),f=jd(u),v=this._axesMap.set(o,new v9(o,$f(u,f,!1),[0,0],f,l));v.onBand=Yf(v.scale,u),v.inverse=u.get("inverse"),u.axis=v,v.model=u,v.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(e,t){M(this.dimensions,function(n){var a=this._axesMap.get(n);Po(a,ol),sl(a)},this)},r.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),n=t.axisBase,a=t.layoutBase,i=t.pixelDimIndex,o=e[1-i],s=e[i];return o>=n&&o<=n+t.axisLength&&s>=a&&s<=a+t.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype.resize=function(e,t){var n=bt(e,t).refContainer;this._rect=tt(e.getBoxLayoutParams(),n),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,n=["x","y"],a=["width","height"],i=e.get("layout"),o=i==="horizontal"?0:1,s=t[a[o]],l=[0,s],u=this.dimensions.length,f=tc(e.get("axisExpandWidth"),l),v=tc(e.get("axisExpandCount")||0,[0,u]),c=e.get("axisExpandable")&&u>3&&u>v&&v>1&&f>0&&s>0,h=e.get("axisExpandWindow"),d;if(h)d=tc(h[1]-h[0],l),h[1]=h[0]+d;else{d=tc(f*(v-1),l);var p=e.get("axisExpandCenter")||rn(u/2);h=[f*p-d/2],h[1]=h[0]+d}var g=(s-d)/(u-v);g<3&&(g=0);var y=[rn(ke(h[0]/f,1))+1,Uo(ke(h[1]/f,1))-1],m=g/f*h[0];return{layout:i,pixelDimIndex:o,layoutBase:t[n[o]],layoutLength:s,axisBase:t[n[1-o]],axisLength:t[a[1-o]],axisExpandable:c,axisExpandWidth:f,axisCollapseWidth:g,axisExpandWindow:h,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:m}},r.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,n=this.dimensions,a=this._makeLayoutInfo(),i=a.layout;t.each(function(o){var s=[0,a.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),M(n,function(o,s){var l=(a.axisExpandable?d9:h9)(s,a),u={horizontal:{x:l.position,y:a.axisLength},vertical:{x:0,y:l.position}},f={horizontal:oh/2,vertical:0},v=[u[i].x+e.x,u[i].y+e.y],c=f[i],h=nt();hi(h,h,c),kn(h,h,v),this._axesLayout[o]={position:v,rotation:c,transform:h,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,n,a){n==null&&(n=0),a==null&&(a=e.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];M(o,function(g){s.push(e.mapDimension(g)),l.push(i.get(g).model)});for(var u=this.hasAxisBrushed(),f=n;f<a;f++){var v=void 0;if(!u)v="normal";else{v="active";for(var c=e.getValues(s,f),h=0,d=o.length;h<d;h++){var p=l[h].getActiveState(c[h]);if(p==="inactive"){v="inactive";break}}}t(v,f)}},r.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,n=!1,a=0,i=e.length;a<i;a++)t.get(e[a]).model.getActiveState()!=="normal"&&(n=!0);return n},r.prototype.axisCoordToPoint=function(e,t){var n=this._axesLayout[t];return Qr([e,0],n.transform)},r.prototype.getAxisLayout=function(e){return ae(this._axesLayout[e])},r.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),n=t.pixelDimIndex,a=t.axisExpandWindow.slice(),i=a[1]-a[0],o=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:a};var s=e[n]-t.layoutBase-t.axisExpandWindow0Pos,l,u="slide",f=t.axisCollapseWidth,v=this._model.get("axisExpandSlideTriggerArea"),c=v[0]!=null;if(f)c&&f&&s<i*v[0]?(u="jump",l=s-i*v[2]):c&&f&&s>i*(1-v[0])?(u="jump",l=s-i*(1-v[2])):(l=s-i*v[1])>=0&&(l=s-i*(1-v[1]))<=0&&(l=0),l*=t.axisExpandWidth/f,l?si(l,a,o,"all"):u="none";else{var h=a[1]-a[0],d=o[1]*s/h;a=[we(0,d-h/2)],a[1]=He(o[1],a[0]+h),a[0]=a[1]-h}return{axisExpandWindow:a,behavior:u}},r})();function tc(r,e){return He(we(r,e[0]),e[1])}function h9(r,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*r,axisNameAvailableWidth:t,axisLabelShow:!0}}function d9(r,e){var t=e.layoutLength,n=e.axisExpandWidth,a=e.axisCount,i=e.axisCollapseWidth,o=e.winInnerIndices,s,l=i,u=!1,f;return r<o[0]?(s=r*i,f=i):r<=o[1]?(s=e.axisExpandWindow0Pos+r*n-e.axisExpandWindow[0],l=n,u=!0):(s=t-(a-1-r)*i,f=i),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:f}}function p9(r,e){var t=[];return r.eachComponent(a_,function(n,a){var i=new c9(n,r,e);i.name="parallel_"+a,i.resize(n,e),n.coordinateSystem=i,i.model=n,t.push(i)}),r.eachSeries(function(n){if(n.get("coordinateSystem")===qh){var a=n.getReferringComponents(a_,at).models[0],i=n.coordinateSystem=a.coordinateSystem;i&&M(i.dimensions,function(o){Lo(i.getAxis(o),n,qh)})}}),t}var g9={create:p9},i_=(function(r){B(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 bo([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var n=this.activeIntervals=ae(t);if(n)for(var a=n.length-1;a>=0;a--)Nt(n[a])},e.prototype.getActiveState=function(t){var n=this.activeIntervals;if(!n.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(n.length===1){var a=n[0];if(a[0]<=t&&t<=a[1])return"active"}else for(var i=0,o=n.length;i<o;i++)if(n[i][0]<=t&&t<=n[i][1])return"active";return"inactive"},e})(Me);xt(i_,Xf);var zo=!0,Mf=Math.min,vl=Math.max,y9=Math.pow,m9=1e4,_9=6,S9=6,zA="globalPan",x9={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},w9={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},FA={brushStyle:{lineWidth:2,stroke:N.color.backgroundTint,fill:N.color.borderTint},transformable:!0,brushMode:"single",removeOnClick:!1},b9=0,z1=(function(r){B(e,r);function e(t){var n=r.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=t,n.group=new oe,n._uid="brushController_"+b9++,M(L9,function(a,i){this._handlers[i]=q(a,this)},n),n}return e.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var n=this._zr;this._enableGlobalPan||z6(n,zA,this._uid),M(this._handlers,function(a,i){n.on(i,a)}),this._brushType=t.brushType,this._brushOption=_e(ae(FA),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;F6(t,zA,this._uid),M(this._handlers,function(n,a){t.off(a,n)}),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var n=this._panels={};M(t,function(a){n[a.panelId]=ae(a)})}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var n=this.group;return this._zr.add(n),n.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=n.getLocalTransform(),this},e.prototype.updateCovers=function(t){t=$(t,function(c){return _e(ae(FA),c,!0)});var n="\0-brush-index-",a=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new ga(a,t,u,l).add(f).update(f).remove(v).execute(),this;function l(c,h){return(c.id!=null?c.id:n+h)+"-"+c.brushType}function u(c,h){return l(c.__brushOption,h)}function f(c,h){var d=t[c];if(h!=null&&a[h]===s)i[c]=a[h];else{var p=i[c]=h!=null?(a[h].__brushOption=d,a[h]):mO(o,yO(o,d));F1(o,p)}}function v(c){a[c]!==s&&o.group.remove(a[c])}},e.prototype.unmount=function(){return this.enableBrush(!1),o_(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e})(Wr);function yO(r,e){var t=fp[e.brushType].createCover(r,e);return t.__brushOption=e,SO(t,e),r.group.add(t),t}function mO(r,e){var t=G1(e);return t.endCreating&&(t.endCreating(r,e),SO(e,e.__brushOption)),e}function _O(r,e){var t=e.__brushOption;G1(e).updateCoverShape(r,e,t.range,t)}function SO(r,e){var t=e.z;t==null&&(t=m9),r.traverse(function(n){n.z=t,n.z2=t})}function F1(r,e){G1(e).updateCommon(r,e),_O(r,e)}function G1(r){return fp[r.__brushOption.brushType]}function H1(r,e,t){var n=r._panels;if(!n)return zo;var a,i=r._transform;return M(n,function(o){o.isTargetByCursor(e,t,i)&&(a=o)}),a}function xO(r,e){var t=r._panels;if(!t)return zo;var n=e.__brushOption.panelId;return n!=null?t[n]:zo}function o_(r){var e=r._covers,t=e.length;return M(e,function(n){r.group.remove(n)},r),e.length=0,!!t}function Fo(r,e){var t=$(r._covers,function(n){var a=n.__brushOption,i=ae(a.range);return{brushType:a.brushType,panelId:a.panelId,range:i}});r.trigger("brush",{areas:t,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function C9(r){var e=r._track;if(!e.length)return!1;var t=e[e.length-1],n=e[0],a=t[0]-n[0],i=t[1]-n[1],o=y9(a*a+i*i,.5);return o>_9}function wO(r){var e=r.length-1;return e<0&&(e=0),[r[0],r[e]]}function bO(r,e,t,n){var a=new oe;return a.add(new be({name:"main",style:U1(t),silent:!0,draggable:!0,cursor:"move",drift:xe(GA,r,e,a,["n","s","w","e"]),ondragend:xe(Fo,e,{isEnd:!0})})),M(n,function(i){a.add(new be({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:xe(GA,r,e,a,i),ondragend:xe(Fo,e,{isEnd:!0})}))}),a}function CO(r,e,t,n){var a=n.brushStyle.lineWidth||0,i=vl(a,S9),o=t[0][0],s=t[1][0],l=o-a/2,u=s-a/2,f=t[0][1],v=t[1][1],c=f-i+a/2,h=v-i+a/2,d=f-o,p=v-s,g=d+a,y=p+a;jn(r,e,"main",o,s,d,p),n.transformable&&(jn(r,e,"w",l,u,i,y),jn(r,e,"e",c,u,i,y),jn(r,e,"n",l,u,g,i),jn(r,e,"s",l,h,g,i),jn(r,e,"nw",l,u,i,i),jn(r,e,"ne",c,u,i,i),jn(r,e,"sw",l,h,i,i),jn(r,e,"se",c,h,i,i))}function s_(r,e){var t=e.__brushOption,n=t.transformable,a=e.childAt(0);a.useStyle(U1(t)),a.attr({silent:!n,cursor:n?"move":"default"}),M([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=e.childOfName(i.join("")),s=i.length===1?l_(r,i[0]):A9(r,i);o&&o.attr({silent:!n,invisible:!n,cursor:n?w9[s]+"-resize":null})})}function jn(r,e,t,n,a,i,o){var s=e.childOfName(t);s&&s.setShape(D9($1(r,e,[[n,a],[n+i,a+o]])))}function U1(r){return le({strokeNoScale:!0},r.brushStyle)}function TO(r,e,t,n){var a=[Mf(r,t),Mf(e,n)],i=[vl(r,t),vl(e,n)];return[[a[0],i[0]],[a[1],i[1]]]}function T9(r){return Hs(r.group)}function l_(r,e){var t={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},a=Bd(t[e],T9(r));return n[a]}function A9(r,e){var t=[l_(r,e[0]),l_(r,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function GA(r,e,t,n,a,i){var o=t.__brushOption,s=r.toRectRange(o.range),l=AO(e,a,i);M(n,function(u){var f=x9[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(TO(s[0][0],s[1][0],s[0][1],s[1][1])),F1(e,t),Fo(e,{isEnd:!1})}function M9(r,e,t,n){var a=e.__brushOption.range,i=AO(r,t,n);M(a,function(o){o[0]+=i[0],o[1]+=i[1]}),F1(r,e),Fo(r,{isEnd:!1})}function AO(r,e,t){var n=r.group,a=n.transformCoordToLocal(e,t),i=n.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function $1(r,e,t){var n=xO(r,e);return n&&n!==zo?n.clipPath(t,r._transform):ae(t)}function D9(r){var e=Mf(r[0][0],r[1][0]),t=Mf(r[0][1],r[1][1]),n=vl(r[0][0],r[1][0]),a=vl(r[0][1],r[1][1]);return{x:e,y:t,width:n-e,height:a-t}}function I9(r,e,t){if(!(!r._brushType||P9(r,e.offsetX,e.offsetY))){var n=r._zr,a=r._covers,i=H1(r,e,t);if(!r._dragging)for(var o=0;o<a.length;o++){var s=a[o].__brushOption;if(i&&(i===zo||s.panelId===i.panelId)&&fp[s.brushType].contain(a[o],t[0],t[1]))return}i&&n.setCursorStyle("crosshair")}}function u_(r){var e=r.event;e.preventDefault&&e.preventDefault()}function f_(r,e,t){return r.childOfName("main").contain(e,t)}function MO(r,e,t,n){var a=r._creatingCover,i=r._creatingPanel,o=r._brushOption,s;if(r._track.push(t.slice()),C9(r)||a){if(i&&!a){o.brushMode==="single"&&o_(r);var l=ae(o);l.brushType=HA(l.brushType,i),l.panelId=i===zo?null:i.panelId,a=r._creatingCover=yO(r,l),r._covers.push(a)}if(a){var u=fp[HA(r._brushType,i)],f=a.__brushOption;f.range=u.getCreatingRange($1(r,a,r._track)),n&&(mO(r,a),u.updateCommon(r,a)),_O(r,a),s={isEnd:n}}}else n&&o.brushMode==="single"&&o.removeOnClick&&H1(r,e,t)&&o_(r)&&(s={isEnd:n,removeOnClick:!0});return s}function HA(r,e){return r==="auto"?e.defaultBrushType:r}var L9={mousedown:function(r){if(this._dragging)UA(this,r);else if(!r.target||!r.target.draggable){u_(r);var e=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var t=this._creatingPanel=H1(this,r,e);t&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(r){var e=r.offsetX,t=r.offsetY,n=this.group.transformCoordToLocal(e,t);if(I9(this,r,n),this._dragging){u_(r);var a=MO(this,r,n,!1);a&&Fo(this,a)}},mouseup:function(r){UA(this,r)}};function UA(r,e){if(r._dragging){u_(e);var t=e.offsetX,n=e.offsetY,a=r.group.transformCoordToLocal(t,n),i=MO(r,e,a,!0);r._dragging=!1,r._track=[],r._creatingCover=null,i&&Fo(r,i)}}function P9(r,e,t){var n=r._zr;return e<0||e>n.getWidth()||t<0||t>n.getHeight()}var fp={lineX:$A(0),lineY:$A(1),rect:{createCover:function(r,e){function t(n){return n}return bO({toRectRange:t,fromRectRange:t},r,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var e=wO(r);return TO(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(r,e,t,n){CO(r,e,t,n)},updateCommon:s_,contain:f_},polygon:{createCover:function(r,e){var t=new oe;return t.add(new Bt({name:"main",style:U1(e),silent:!0})),t},getCreatingRange:function(r){return r},endCreating:function(r,e){e.remove(e.childAt(0)),e.add(new Zt({name:"main",draggable:!0,drift:xe(M9,r,e),ondragend:xe(Fo,r,{isEnd:!0})}))},updateCoverShape:function(r,e,t,n){e.childAt(0).setShape({points:$1(r,e,t)})},updateCommon:s_,contain:f_}};function $A(r){return{createCover:function(e,t){return bO({toRectRange:function(n){var a=[n,[0,100]];return r&&a.reverse(),a},fromRectRange:function(n){return n[r]}},e,t,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(e){var t=wO(e),n=Mf(t[0][r],t[1][r]),a=vl(t[0][r],t[1][r]);return[n,a]},updateCoverShape:function(e,t,n,a){var i,o=xO(e,t);if(o!==zo&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(r);else{var s=e._zr;i=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[n,i];r&&l.reverse(),CO(e,t,l,a)},updateCommon:s_,contain:f_}}function DO(r){return r=W1(r),function(e){return I2(e,r)}}function IO(r,e){return r=W1(r),function(t){var n=e??t,a=n?r.width:r.height,i=n?r.x:r.y;return[i,i+(a||0)]}}function LO(r,e,t){var n=W1(r);return function(a,i){return n.contain(i[0],i[1])&&!bk(a,e,t)}}function W1(r){return se.create(r)}var R9=(function(r){B(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,n){r.prototype.init.apply(this,arguments),(this._brushController=new z1(n.getZr())).on("brush",q(this._onBrush,this))},e.prototype.render=function(t,n,a,i){if(!E9(t,n,i)){this.axisModel=t,this.api=a,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new oe,this.group.add(this._axisGroup),!!t.get("show")){var s=O9(t,n),l=s.coordinateSystem,u=t.getAreaSelectStyle(),f=u.width,v=t.axis.dim,c=l.getAxisLayout(v),h=G({strokeContainThreshold:f},c),d=new ar(t,a,h);d.build(),this._axisGroup.add(d.group),this._refreshBrushController(h,u,t,s,f,a),Nf(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,n,a,i,o,s){var l=a.axis.getExtent(),u=l[1]-l[0],f=Math.min(30,Math.abs(u)*.1),v=se.create({x:l[0],y:-o/2,width:u,height:o});v.x-=f,v.width+=2*f,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:DO(v),isTargetByCursor:LO(v,s,i),getLinearBrushOtherExtent:IO(v,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(k9(a))},e.prototype._onBrush=function(t){var n=t.areas,a=this.axisModel,i=a.axis,o=$(n,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!a.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:a.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e})(Qe);function E9(r,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===r}function k9(r){var e=r.axis;return $(r.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function O9(r,e){return e.getComponent("parallel",r.get("parallelIndex"))}var N9={type:"axisAreaSelect",event:"axisAreaSelected"};function B9(r){r.registerAction(N9,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(n){n.axis.model.setActiveIntervals(e.intervals)})}),r.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(n){n.setAxisExpand(e)})})}var V9={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function PO(r){r.registerComponentView(l9),r.registerComponentModel(f9),r.registerCoordinateSystem("parallel",g9),r.registerPreprocessor(a9),r.registerComponentModel(i_),r.registerComponentView(R9),ul(r,"parallel",i_,V9),B9(r)}function z9(r){Se(PO),r.registerChartView(qX),r.registerSeriesModel(QX),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,n9)}var ma="sankey",F9=(function(r){B(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,n){var a=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 Ie(o[l],this,n));var u=E1(i,a,this,!0,f);return u.data;function f(v,c){v.wrapMethod("getItemModel",function(h,d){var p=h.parentModel,g=p.getData().getItemLayout(d);if(g){var y=g.depth,m=p.levelModels[y];m&&(h.parentModel=m)}return h}),c.wrapMethod("getItemModel",function(h,d){var p=h.parentModel,g=p.getGraph().getEdgeByIndex(d),y=g.node1.getLayout();if(y){var m=y.depth,_=p.levelModels[m];_&&(h.parentModel=_)}return h})}},e.prototype.setNodePosition=function(t,n){var a=this.option.data||this.option.nodes,i=a[t];i.localX=n[0],i.localY=n[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,n,a){function i(h){return isNaN(h)||h==null}if(a==="edge"){var o=this.getDataParams(t,a),s=o.data,l=o.value,u=s.source+" -- "+s.target;return pt("nameValue",{name:u,value:l,noValue:i(l)})}else{var f=this.getGraph().getNodeByIndex(t),v=f.getLayout().value,c=this.getDataParams(t,a).data.name;return pt("nameValue",{name:c!=null?c+"":null,value:v,noValue:i(v)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,n){var a=r.prototype.getDataParams.call(this,t,n);if(a.value==null&&n==="node"){var i=this.getGraph().getNodeByIndex(t),o=i.getLayout().value;a.value=o}return a},e.prototype.__ownRoamView=function(){return this.coordinateSystem},e.type="series."+ma,e.layoutMode="box",e.defaultOption={z:2,coordinateSystemUsage:"box",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,roam:!1,roamTrigger:"global",center:null,zoom:1,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:N.color.neutral50,opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:N.color.primary}},animationEasing:"linear",animationDuration:1e3},e})(je),G9=(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})(),H9=(function(r){B(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new G9},e.prototype.buildPath=function(t,n){var a=n.extent;t.moveTo(n.x1,n.y1),t.bezierCurveTo(n.cpx1,n.cpy1,n.cpx2,n.cpy2,n.x2,n.y2),n.orient==="vertical"?(t.lineTo(n.x2+a,n.y2),t.bezierCurveTo(n.cpx2+a,n.cpy2,n.cpx1+a,n.cpy1,n.x1+a,n.y1)):(t.lineTo(n.x2,n.y2+a),t.bezierCurveTo(n.cpx2,n.cpy2+a,n.cpx1,n.cpy1+a,n.x1,n.y1+a)),t.closePath()},e.prototype.highlight=function(){da(this)},e.prototype.downplay=function(){pa(this)},e})(Ae),U9=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=ma,t._mainGroup=new oe,t}return e.prototype.init=function(t,n){this._controller=new ts(n.getZr()),this.group.add(this._mainGroup),this._firstRender=!0},e.prototype.render=function(t,n,a){var i=t.getGraph(),o=this._mainGroup,s=t.layoutInfo,l=s.width,u=s.height,f=t.getData(),v=t.getData("edge"),c=t.get("orient");o.removeAll(),o.x=s.x,o.y=s.y,this._updateViewCoordSys(t,a),sp(t,a,this._controller,Nk(o),null),i.eachEdge(function(h){var d=new H9,p=ve(d);p.dataIndex=h.dataIndex,p.seriesIndex=t.seriesIndex,p.dataType="edge";var g=h.getModel(),y=g.getModel("lineStyle"),m=y.get("curveness"),_=h.node1.getLayout(),S=h.node1.getModel(),x=S.get("localX"),w=S.get("localY"),b=h.node2.getLayout(),T=h.node2.getModel(),C=T.get("localX"),A=T.get("localY"),D=h.getLayout(),L,I,P,R,E,O,k,z;d.shape.extent=Math.max(1,D.dy),d.shape.orient=c,c==="vertical"?(L=(x!=null?x*l:_.x)+D.sy,I=(w!=null?w*u:_.y)+_.dy,P=(C!=null?C*l:b.x)+D.ty,R=A!=null?A*u:b.y,E=L,O=I*(1-m)+R*m,k=P,z=I*m+R*(1-m)):(L=(x!=null?x*l:_.x)+_.dx,I=(w!=null?w*u:_.y)+D.sy,P=C!=null?C*l:b.x,R=(A!=null?A*u:b.y)+D.ty,E=L*(1-m)+P*m,O=I,k=L*m+P*(1-m),z=R),d.setShape({x1:L,y1:I,x2:P,y2:R,cpx1:E,cpy1:O,cpx2:k,cpy2:z}),d.useStyle(y.getItemStyle()),WA(d.style,c,h);var F=""+g.get("value"),H=St(g,"edgeLabel");Mt(d,H,{labelFetcher:{getFormattedLabel:function(Y,ee,ye,Ne,ce,te){return t.getFormattedLabel(Y,ee,"edge",Ne,xr(ce,H.normal&&H.normal.get("formatter"),F),te)}},labelDataIndex:h.dataIndex,defaultText:F}),d.setTextConfig({position:"inside"});var W=g.getModel("emphasis");_t(d,g,"lineStyle",function(Y){var ee=Y.getItemStyle();return WA(ee,c,h),ee}),o.add(d),v.setItemGraphicEl(h.dataIndex,d);var X=W.get("focus");et(d,X==="adjacency"?h.getAdjacentDataIndices():X==="trajectory"?h.getTrajectoryDataIndices():X,W.get("blurScope"),W.get("disabled"))}),i.eachNode(function(h){var d=h.getLayout(),p=h.getModel(),g=p.get("localX"),y=p.get("localY"),m=p.getModel("emphasis"),_=p.get(["itemStyle","borderRadius"])||0,S=new be({shape:{x:g!=null?g*l:d.x,y:y!=null?y*u:d.y,width:d.dx,height:d.dy,r:_},style:p.getModel("itemStyle").getItemStyle(),z2:10});Mt(S,St(p),{labelFetcher:{getFormattedLabel:function(w,b){return t.getFormattedLabel(w,b,"node")}},labelDataIndex:h.dataIndex,defaultText:h.id}),S.disableLabelAnimation=!0,S.setStyle("fill",h.getVisual("color")),S.setStyle("decal",h.getVisual("style").decal),_t(S,p),o.add(S),f.setItemGraphicEl(h.dataIndex,S),ve(S).dataType="node";var x=m.get("focus");et(S,x==="adjacency"?h.getAdjacentDataIndices():x==="trajectory"?h.getTrajectoryDataIndices():x,m.get("blurScope"),m.get("disabled"))}),f.eachItemGraphicEl(function(h,d){var p=f.getItemModel(d);p.get("draggable")&&(h.drift=function(g,y){this.shape.x+=g,this.shape.y+=y,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:f.getRawIndex(d),localX:this.shape.x/l,localY:this.shape.y/u})},h.draggable=!0,h.cursor="move")}),!this._data&&t.isAnimationEnabled()&&o.setClipPath($9(o.getBoundingRect(),t,function(){o.removeClipPath()})),this._data=t.getData(),this._firstRender=!1},e.prototype.__updateOnOwnRoam=function(t,n,a){oi(this.group,Gn,n.coordinateSystem,null)},e.prototype.dispose=function(){this._controller&&this._controller.dispose()},e.prototype._updateViewCoordSys=function(t,n){var a=t.layoutInfo,i=t.coordinateSystem=A1(t,n,a.x,a.y,a.width,a.height);oi(this.group,Gn,i,this._firstRender?null:t)},e.type=ma,e})(Ue);function WA(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 n=t.node1.getVisual("color"),a=t.node2.getVisual("color");Z(n)&&Z(a)&&(r.fill=new bl(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:n,offset:0},{color:a,offset:1}]))}}function $9(r,e,t){var n=new be({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return Ke(n,{shape:{width:r.width+20}},e,t),n}var W9=wt(ma,Y9);function Y9(r,e){r.eachSeriesByType(ma,function(t){var n=t.get("nodeWidth"),a=t.get("nodeGap"),i=bt(t,e).refContainer,o=tt(t.getBoxLayoutParams(),i);t.layoutInfo=o;var s=o.width,l=o.height,u=t.getGraph(),f=u.nodes,v=u.edges;Z9(f);var c=Fe(f,function(g){return g.getLayout().value===0}),h=c.length!==0?0:t.get("layoutIterations"),d=t.get("orient"),p=t.get("nodeAlign");X9(f,v,n,a,s,l,h,d,p)})}function X9(r,e,t,n,a,i,o,s,l){j9(r,e,t,a,i,s,l),Q9(r,e,i,a,n,o,s),lZ(r,s)}function Z9(r){M(r,function(e){var t=ti(e.outEdges,Kh),n=ti(e.inEdges,Kh),a=e.getValue()||0,i=Math.max(t,n,a);e.setLayout({value:i},!0)})}function j9(r,e,t,n,a,i,o){for(var s=[],l=[],u=[],f=[],v=0,c=0;c<e.length;c++)s[c]=1;for(var c=0;c<r.length;c++)l[c]=r[c].inEdges.length,l[c]===0&&u.push(r[c]);for(var h=-1;u.length;){for(var d=0;d<u.length;d++){var p=u[d],g=p.hostGraph.data.getRawDataItem(p.dataIndex),y=g.depth!=null&&g.depth>=0;y&&g.depth>h&&(h=g.depth),p.setLayout({depth:y?g.depth:v},!0),i==="vertical"?p.setLayout({dy:t},!0):p.setLayout({dx:t},!0);for(var m=0;m<p.outEdges.length;m++){var _=p.outEdges[m],S=pe(e,_);s[S]=0;var x=_.node2,w=pe(r,x);--l[w]===0&&pe(f,x)<0&&f.push(x)}}++v,u=f,f=[]}for(var c=0;c<s.length;c++)if(s[c]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var b=h>v-1?h:v-1;o&&o!=="left"&&q9(r,o,i,b);var T=i==="vertical"?(a-t)/b:(n-t)/b;J9(r,T,i)}function RO(r){var e=r.hostGraph.data.getRawDataItem(r.dataIndex);return e.depth!=null&&e.depth>=0}function q9(r,e,t,n){if(e==="right"){for(var a=[],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 f=l.inEdges[u];pe(a,f.node1)<0&&a.push(f.node1)}}i=a,a=[],++o}M(r,function(v){RO(v)||v.setLayout({depth:Math.max(0,n-v.getLayout().skNodeHeight)},!0)})}else e==="justify"&&K9(r,n)}function K9(r,e){M(r,function(t){!RO(t)&&!t.outEdges.length&&t.setLayout({depth:e},!0)})}function J9(r,e,t){M(r,function(n){var a=n.getLayout().depth*e;t==="vertical"?n.setLayout({y:a},!0):n.setLayout({x:a},!0)})}function Q9(r,e,t,n,a,i,o){var s=eZ(r,o);tZ(s,e,t,n,a,o),my(s,a,t,n,o);for(var l=1;i>0;i--)l*=.99,rZ(s,l,o),my(s,a,t,n,o),sZ(s,l,o),my(s,a,t,n,o)}function eZ(r,e){var t=[],n=e==="vertical"?"y":"x",a=Ym(r,function(i){return i.getLayout()[n]});return Nt(a.keys),M(a.keys,function(i){t.push(a.buckets.get(i))}),t}function tZ(r,e,t,n,a,i){var o=1/0;M(r,function(s){var l=s.length,u=0;M(s,function(v){u+=v.getLayout().value});var f=i==="vertical"?(n-(l-1)*a)/u:(t-(l-1)*a)/u;f<o&&(o=f)}),M(r,function(s){M(s,function(l,u){var f=l.getLayout().value*o;i==="vertical"?(l.setLayout({x:u},!0),l.setLayout({dx:f},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:f},!0))})}),M(e,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function my(r,e,t,n,a){var i=a==="vertical"?"x":"y";M(r,function(o){o.sort(function(p,g){return p.getLayout()[i]-g.getLayout()[i]});for(var s,l,u,f=0,v=o.length,c=a==="vertical"?"dx":"dy",h=0;h<v;h++)l=o[h],u=f-l.getLayout()[i],u>0&&(s=l.getLayout()[i]+u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[i]+l.getLayout()[c]+e;var d=a==="vertical"?n:t;if(u=f-e-d,u>0){s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),f=s;for(var h=v-2;h>=0;--h)l=o[h],u=l.getLayout()[i]+l.getLayout()[c]+e-f,u>0&&(s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[i]}})}function rZ(r,e,t){M(r.slice().reverse(),function(n){M(n,function(a){if(a.outEdges.length){var i=ti(a.outEdges,nZ,t)/ti(a.outEdges,Kh);if(isNaN(i)){var o=a.outEdges.length;i=o?ti(a.outEdges,aZ,t)/o:0}if(t==="vertical"){var s=a.getLayout().x+(i-li(a,t))*e;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-li(a,t))*e;a.setLayout({y:l},!0)}}})})}function nZ(r,e){return li(r.node2,e)*r.getValue()}function aZ(r,e){return li(r.node2,e)}function iZ(r,e){return li(r.node1,e)*r.getValue()}function oZ(r,e){return li(r.node1,e)}function li(r,e){return e==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function Kh(r){return r.getValue()}function ti(r,e,t){for(var n=0,a=r.length,i=-1;++i<a;){var o=+e(r[i],t);isNaN(o)||(n+=o)}return n}function sZ(r,e,t){M(r,function(n){M(n,function(a){if(a.inEdges.length){var i=ti(a.inEdges,iZ,t)/ti(a.inEdges,Kh);if(isNaN(i)){var o=a.inEdges.length;i=o?ti(a.inEdges,oZ,t)/o:0}if(t==="vertical"){var s=a.getLayout().x+(i-li(a,t))*e;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-li(a,t))*e;a.setLayout({y:l},!0)}}})})}function lZ(r,e){var t=e==="vertical"?"x":"y";M(r,function(n){n.outEdges.sort(function(a,i){return a.node2.getLayout()[t]-i.node2.getLayout()[t]}),n.inEdges.sort(function(a,i){return a.node1.getLayout()[t]-i.node1.getLayout()[t]})}),M(r,function(n){var a=0,i=0;M(n.outEdges,function(o){o.setLayout({sy:a},!0),a+=o.getLayout().dy}),M(n.inEdges,function(o){o.setLayout({ty:i},!0),i+=o.getLayout().dy})})}var uZ=wt(ma,fZ);function fZ(r){r.eachSeriesByType(ma,function(e){var t=e.getGraph(),n=t.nodes,a=t.edges;if(n.length){var i=1/0,o=-1/0;M(n,function(s){var l=s.getLayout().value;l<i&&(i=l),l>o&&(o=l)}),M(n,function(s){var l=new At({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:e.get("color")}),u=l.mapValueToVisual(s.getLayout().value),f=s.getModel().get(["itemStyle","color"]);f!=null?(s.setVisual("color",f),s.setVisual("style",{fill:f})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}a.length&&M(a,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function vZ(r){r.registerChartView(U9),r.registerSeriesModel(F9),r.registerLayout(W9),r.registerVisual(uZ),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:Vn,subType:ma,query:e},function(n){n.setNodePosition(e.dataIndex,[e.localX,e.localY])})}),T1(r,Vn,ma)}var EO=(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 n,a=t.getComponent("xAxis",this.get("xAxisIndex")),i=t.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=i.get("type"),l,u=e.layout;o==="category"?(u="horizontal",n=a.getOrdinalMeta(),l=!this._hasEncodeRule("x")):s==="category"&&(u="vertical",n=i.getOrdinalMeta(),l=!this._hasEncodeRule("y")),u||(u=s==="time"?"vertical":"horizontal"),this._layout=u;var f=["x","y"],v=u==="horizontal"?0:1,c=this._baseAxisDim=f[v],h=f[1-v],d=[a,i],p=d[v].get("type"),g=d[1-v].get("type"),y=e.data;if(y&&l){var m=[];M(y,function(x,w){var b;U(x)?(b=x.slice(),x.unshift(w)):U(x.value)?(b=G({},x),b.value=b.value.slice(),x.value.unshift(w)):b=x,m.push(b)}),e.data=m}var _=this.defaultValueDimensions,S=[{name:c,type:Ah(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:Ah(g),dimsDef:_.slice()}];return Rl(this,{coordDimensions:S,dimensionsCount:_.length+1,encodeDefaulter:xe(hP,S,this)})},r.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},r.prototype.getWhiskerBoxesLayout=function(){return this._layout},r})();function Jh(r,e){for(var t=e.ends.length,n=0,a=0;a<t;a++)r.contain(e.ends[a][0],e.ends[a][1])&&n++;return n?n<t?df:hf:pf}var Ln="boxplot",kO=(function(r){B(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."+Ln,e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,boxWidth:[7,50],itemStyle:{color:N.color.neutral00,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:N.color.shadow}},animationDuration:800},e})(je);xt(kO,EO,!0);var cZ=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=Ln,t}return e.prototype.render=function(t,n,a){var i=t.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=t.getWhiskerBoxesLayout()==="horizontal"?1:0,u=t.get("clip",!0),f=t.coordinateSystem,v=f.getArea&&f.getArea(),c=u&&Ro(f,!1,t);i.diff(s).add(function(h){if(i.hasValue(h)){var d=i.getItemLayout(h),p=u?Jh(v,d):hf;if(p===pf)return;var g=YA(d,i,h,l,!0);Ns(p===df,g,c),i.setItemGraphicEl(h,g),o.add(g)}}).update(function(h,d){var p=s.getItemGraphicEl(d);if(!i.hasValue(h)){o.remove(p);return}var g=i.getItemLayout(h),y=u?Jh(v,g):hf;if(y===pf){o.remove(p);return}p?($r(p),OO(g,p,i,h)):p=YA(g,i,h,l),Ns(y===df,p,c),o.add(p),i.setItemGraphicEl(h,p)}).remove(function(h){var d=s.getItemGraphicEl(h);d&&o.remove(d)}).execute(),this._data=i},e.prototype.remove=function(t){var n=this.group,a=this._data;this._data=null,a&&a.eachItemGraphicEl(function(i){i&&n.remove(i)})},e.type=Ln,e})(Ue),hZ=(function(){function r(){}return r})(),dZ=(function(r){B(e,r);function e(t){var n=r.call(this,t)||this;return n.type="boxplotBoxPath",n}return e.prototype.getDefaultShape=function(){return new hZ},e.prototype.buildPath=function(t,n){var a=n.points,i=0;for(t.moveTo(a[i][0],a[i][1]),i++;i<4;i++)t.lineTo(a[i][0],a[i][1]);for(t.closePath();i<a.length;i++)t.moveTo(a[i][0],a[i][1]),i++,t.lineTo(a[i][0],a[i][1])},e})(Ae);function YA(r,e,t,n,a){var i=r.ends,o=new dZ({shape:{points:a?pZ(i,n,r):i}});return OO(r,o,e,t,a),o}function OO(r,e,t,n,a){var i=t.hostModel,o=Xo[a?"initProps":"updateProps"];o(e,{shape:{points:r.ends}},i,n),e.useStyle(t.getItemVisual(n,"style")),e.style.strokeNoScale=!0,e.z2=100;var s=t.getItemModel(n),l=s.getModel("emphasis");_t(e,s),et(e,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function pZ(r,e,t){return $(r,function(n){return n=n.slice(),n[e]=t.initBaseline,n})}var gZ=Sl(),yZ=wt(Ln,mZ);function mZ(r){var e=yo(Ln);t1(r,e,function(t){var n=PU(t,e);if(n){var a=_Z(t,n);Io(t,e,function(i){var o=i.seriesIndex;SZ(i,a.boxOffsetList[o],a.boxWidthList[o])})}})}function _Z(r,e){var t=[],n=[],a=[],i=Vt(r,{fromStat:{key:yo(Ln)},min:1}).w;Io(r,yo(Ln),function(f){var v=f.get("boxWidth");U(v)||(v=[v,v]),a[f.seriesIndex]=[j(v[0],i)||0,j(v[1],i)||0]});var o=i*.8-2,s=o/e*.3,l=(o-s*(e-1))/e,u=l/2-o/2;return Io(r,yo(Ln),function(f){var v=f.seriesIndex;n[v]=u,u+=s+l,t[v]=He(we(l,a[v][0]),a[v][1])}),{boxOffsetList:n,boxWidthList:t}}function SZ(r,e,t){var n=r.coordinateSystem,a=r.getData(),i=t/2,o=r.getWhiskerBoxesLayout()==="horizontal"?0:1,s=1-o,l=["x","y"],u=a.mapDimension(l[o]),f=a.mapDimensionsAll(l[s]);if(u==null||f.length<5)return;for(var v=0;v<a.count();v++){var c=a.get(u,v),h=_(c,f[2],v),d=_(c,f[0],v),p=_(c,f[1],v),g=_(c,f[3],v),y=_(c,f[4],v),m=[];S(m,p,!1),S(m,g,!0),m.push(d,p,y,g),x(m,d),x(m,y),x(m,h),a.setItemLayout(v,{initBaseline:h[s],ends:m})}function _(w,b,T){var C=a.get(b,T),A=[];A[o]=w,A[s]=C;var D;return isNaN(w)||isNaN(C)?D=[NaN,NaN]:(D=n.dataToPoint(A),D[o]+=e),D}function S(w,b,T){var C=b.slice(),A=b.slice();C[o]+=i,A[o]-=i,T?w.push(C,A):w.push(A,C)}function x(w,b){var T=b.slice(),C=b.slice();T[o]-=i,C[o]+=i,w.push(T,C)}}function xZ(r){gZ(r,function(){var e=yo(Ln);r1(r,{key:e,seriesType:Ln,getMetrics:g1}),Kd(e,tp(e))})}function wZ(r,e){e=e||{};for(var t=[],n=[],a=e.boundIQR,i=a==="none"||a===0,o=0;o<r.length;o++){var s=Nt(r[o].slice()),l=Hp(s,.25),u=Hp(s,.5),f=Hp(s,.75),v=s[0],c=s[s.length-1],h=(a??1.5)*(f-l),d=i?v:Math.max(v,l-h),p=i?c:Math.min(c,f+h),g=e.itemNameFormatter,y=ie(g)?g({value:o}):Z(g)?g.replace("{value}",o+""):o+"";t.push([y,d,l,u,f,p]);for(var m=0;m<s.length;m++){var _=s[m];if(_<d||_>p){var S=[y,_];n.push(S)}}}return{boxData:t,outliers:n}}var bZ={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==Pt){var n="";Ve(n)}var a=wZ(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function CZ(r){r.registerSeriesModel(kO),r.registerChartView(cZ),r.registerLayout(yZ),r.registerTransform(bZ),xZ(r)}var ui="candlestick",NO=(function(r){B(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,n,a){var i=n.getItemLayout(t);return i&&a.rect(i.brushRect)},e.type="series."+ui,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})(je);xt(NO,EO,!0);var TZ=["itemStyle","borderColor"],AZ=["itemStyle","borderColor0"],MZ=["itemStyle","borderColorDoji"],DZ=["itemStyle","color"],IZ=["itemStyle","color0"];function Y1(r,e){return e.get(r>0?DZ:IZ)}function X1(r,e){return e.get(r===0?MZ:r>0?TZ:AZ)}var LZ={seriesType:ui,plan:qo(),performRawSeries:!0,reset:function(r,e){if(!e.isSeriesFiltered(r)){var t=r.pipelineContext.large;return!t&&{progress:function(n,a){for(var i;(i=n.next())!=null;){var o=a.getItemModel(i),s=a.getItemLayout(i).sign,l=o.getItemStyle();l.fill=Y1(s,o),l.stroke=X1(s,o)||l.fill;var u=a.ensureUniqueItemVisual(i,"style");G(u,l)}}}}}},PZ=["color","borderColor"],RZ=(function(r){B(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,n,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,n,a){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,n,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,n):this._incrementalRenderNormal(t,n)},e.prototype.eachRendered=function(t){di(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var n=t.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},e.prototype._renderNormal=function(t){var n=t.getData(),a=this._data,i=this.group,o=n.getLayout("isSimpleBox"),s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea(),f=s&&Ro(l,!1,t);this._data||i.removeAll();var v=XA(t);n.diff(a).add(function(c){if(n.hasValue(c)){var h=n.getItemLayout(c),d=s?Jh(u,h):hf;if(d===pf)return;var p=_y(h,c,v,!0);Ke(p,{shape:{points:h.ends}},t,c),Ns(d===df,p,f),Sy(p,n,c,o),i.add(p),n.setItemGraphicEl(c,p)}}).update(function(c,h){var d=a.getItemGraphicEl(h);if(!n.hasValue(c)){i.remove(d);return}var p=n.getItemLayout(c),g=s?Jh(u,p):hf;if(g===pf){i.remove(d);return}d?(Oe(d,{shape:{points:p.ends}},t,c),$r(d)):d=_y(p,c,v),Sy(d,n,c,o),Ns(g===df,d,f),i.add(d),n.setItemGraphicEl(c,d)}).remove(function(c){var h=a.getItemGraphicEl(c);h&&i.remove(h)}).execute(),this._data=n},e.prototype._renderLarge=function(t){this._clear(),ZA(t,this.group);var n=t.get("clip",!0)?Ro(t.coordinateSystem,!1,t):null;Ns(!!n,this.group,n)},e.prototype._incrementalRenderNormal=function(t,n){for(var a=n.getData(),i=a.getLayout("isSimpleBox"),o=XA(n),s;(s=t.next())!=null;){var l=a.getItemLayout(s),u=_y(l,s,o);Sy(u,a,s,i),u.incremental=Dn(n),this.group.add(u),this._progressiveEls.push(u)}},e.prototype._incrementalRenderLarge=function(t,n){ZA(n,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),Ns(!1,this.group,null),this._data=null},e.type=ui,e})(Ue),EZ=(function(){function r(){}return r})(),kZ=(function(r){B(e,r);function e(t){var n=r.call(this,t)||this;return n.type="normalCandlestickBox",n}return e.prototype.getDefaultShape=function(){return new EZ},e.prototype.buildPath=function(t,n){var a=n.points;this.__simpleBox?(t.moveTo(a[4][0],a[4][1]),t.lineTo(a[6][0],a[6][1])):(t.moveTo(a[0][0],a[0][1]),t.lineTo(a[1][0],a[1][1]),t.lineTo(a[2][0],a[2][1]),t.lineTo(a[3][0],a[3][1]),t.closePath(),t.moveTo(a[4][0],a[4][1]),t.lineTo(a[5][0],a[5][1]),t.moveTo(a[6][0],a[6][1]),t.lineTo(a[7][0],a[7][1]))},e})(Ae);function _y(r,e,t,n){var a=r.ends;return new kZ({shape:{points:n?OZ(a,t,r):a},z2:100})}function Sy(r,e,t,n){var a=e.getItemModel(t);r.useStyle(e.getItemVisual(t,"style")),r.style.strokeNoScale=!0;var i=a.getShallow("cursor");i&&r.attr("cursor",i),r.__simpleBox=n,_t(r,a);var o=e.getItemLayout(t).sign;M(r.states,function(l,u){var f=a.getModel(u),v=Y1(o,f),c=X1(o,f)||v,h=l.style||(l.style={});v&&(h.fill=v),c&&(h.stroke=c)});var s=a.getModel("emphasis");et(r,s.get("focus"),s.get("blurScope"),s.get("disabled"))}function OZ(r,e,t){return $(r,function(n){return n=n.slice(),n[e]=t.initBaseline,n})}function XA(r){return r.getWhiskerBoxesLayout()==="horizontal"?1:0}var NZ=(function(){function r(){}return r})(),xy=(function(r){B(e,r);function e(t){var n=r.call(this,t)||this;return n.type="largeCandlestickBox",n}return e.prototype.getDefaultShape=function(){return new NZ},e.prototype.buildPath=function(t,n){for(var a=n.points,i=0;i<a.length;)if(this.__sign===a[i++]){var o=a[i++];t.moveTo(o,a[i++]),t.lineTo(o,a[i++])}else i+=3},e})(Ae);function ZA(r,e,t,n){var a=r.getData(),i=a.getLayout("largePoints"),o=new xy({shape:{points:i},__sign:1,ignoreCoarsePointer:!0});e.add(o);var s=new xy({shape:{points:i},__sign:-1,ignoreCoarsePointer:!0});e.add(s);var l=new xy({shape:{points:i},__sign:0,ignoreCoarsePointer:!0});e.add(l),wy(1,o,r),wy(-1,s,r),wy(0,l,r),n&&(o.incremental=Dn(r),s.incremental=Dn(r),l.incremental=Dn(r)),t&&t.push(o,s,l)}function wy(r,e,t,n){var a=X1(r,t)||Y1(r,t),i=t.getModel("itemStyle").getItemStyle(PZ);e.useStyle(i),e.style.fill=null,e.style.stroke=a;var o=t.get("cursor");o&&e.attr("cursor",o)}function BZ(r){!r||!U(r.series)||M(r.series,function(e){fe(e)&&e.type==="k"&&(e.type=ui)})}var VZ=Sl(),zZ={seriesType:ui,plan:qo(),reset:function(r){var e=r.coordinateSystem,t=r.getData(),n=FZ(r),a=r.getWhiskerBoxesLayout()==="horizontal"?0:1,i=1-a,o=["x","y"],s=t.getDimensionIndex(t.mapDimension(o[a])),l=$(t.mapDimensionsAll(o[i]),t.getDimensionIndex,t),u=l[0],f=l[1],v=l[2],c=l[3];if(t.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),s<0||l.length<4)return;return{progress:r.pipelineContext.large?d:h};function h(p,g){for(var y,m=g.getStore();(y=p.next())!=null;){var _=m.get(s,y),S=m.get(u,y),x=m.get(f,y),w=m.get(v,y),b=m.get(c,y),T=He(S,x),C=we(S,x),A=O(T,_),D=O(C,_),L=O(w,_),I=O(b,_),P=[];k(P,D,0),k(P,A,1),P.push(F(I),F(D),F(L),F(A));var R=g.getItemModel(y),E=!!R.get(["itemStyle","borderColorDoji"]);g.setItemLayout(y,{sign:jA(m,y,S,x,f,E),initBaseline:S>x?D[i]:A[i],ends:P,brushRect:z(w,b,_)})}function O(H,W){var X=[];return X[a]=W,X[i]=H,isNaN(W)||isNaN(H)?[NaN,NaN]:e.dataToPoint(X)}function k(H,W,X){var Y=W.slice(),ee=W.slice();Y[a]=Oc(Y[a]+n/2,1,!1),ee[a]=Oc(ee[a]-n/2,1,!0),X?H.push(Y,ee):H.push(ee,Y)}function z(H,W,X){var Y=O(H,X),ee=O(W,X);return Y[a]-=n/2,ee[a]-=n/2,{x:Y[0],y:Y[1],width:i?n:ee[0]-Y[0],height:i?ee[1]-Y[1]:n}}function F(H){return H[a]=Oc(H[a],1),H}}function d(p,g){for(var y=bn(p.count*4),m=0,_,S=[],x=[],w,b=g.getStore(),T=!!r.get(["itemStyle","borderColorDoji"]);(w=p.next())!=null;){var C=b.get(s,w),A=b.get(u,w),D=b.get(f,w),L=b.get(v,w),I=b.get(c,w);if(isNaN(C)||isNaN(L)||isNaN(I)){y[m++]=NaN,m+=3;continue}y[m++]=jA(b,w,A,D,f,T),S[a]=C,S[i]=L,_=e.dataToPoint(S,null,x),y[m++]=_?_[0]:NaN,y[m++]=_?_[1]:NaN,S[i]=I,_=e.dataToPoint(S,null,x),y[m++]=_?_[1]:NaN}g.setLayout("largePoints",y)}}};function jA(r,e,t,n,a,i){var o;return t>n?o=-1:t<n?o=1:o=i?0:e>0?r.get(a,e-1)<=n?1:-1:1,o}function FZ(r,e){var t=r.getBaseAxis(),n=Vt(t,{fromStat:{key:yo(ui)},min:1}).w,a=j(Q(r.get("barMaxWidth"),n),n),i=j(Q(r.get("barMinWidth"),1),n),o=r.get("barWidth");return o!=null?j(o,n):we(He(n/2,a),i)}function GZ(r){VZ(r,function(){var e=yo(ui);r1(r,{key:e,seriesType:ui,getMetrics:g1}),Kd(e,tp(e))})}function HZ(r){r.registerChartView(RZ),r.registerSeriesModel(NO),r.registerPreprocessor(BZ),r.registerVisual(LZ),r.registerLayout(zZ),GZ(r)}function qA(r,e){var t=e.rippleEffectColor||e.color;r.eachChild(function(n){n.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?t:null,fill:e.brushType==="fill"?t:null}})})}var UZ=(function(r){B(e,r);function e(t,n){var a=r.call(this)||this,i=new Zf(t,n),o=new oe;return a.add(i),a.add(o),a.updateData(t,n),a}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var n=t.symbolType,a=t.color,i=t.rippleNumber,o=this.childAt(1),s=0;s<i;s++){var l=gt(n,-1,-1,2,2,a);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)}qA(o,t)},e.prototype.updateEffectAnimation=function(t){for(var n=this._effectCfg,a=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],o=0;o<i.length;o++){var s=i[o];if(n[s]!==t[s]){this.stopEffectAnimation(),this.startEffectAnimation(t);return}}qA(a,t)},e.prototype.highlight=function(){da(this)},e.prototype.downplay=function(){pa(this)},e.prototype.getSymbolType=function(){var t=this.childAt(0);return t&&t.getSymbolType()},e.prototype.updateData=function(t,n){var a=this,i=t.hostModel;this.childAt(0).updateData(t,n);var o=this.childAt(1),s=t.getItemModel(n),l=t.getItemVisual(n,"symbol"),u=Il(t.getItemVisual(n,"symbolSize")),f=t.getItemVisual(n,"style"),v=f&&f.fill,c=s.getModel("emphasis");o.setScale(u),o.traverse(function(g){g.setStyle("fill",v)});var h=Ko(t.getItemVisual(n,"symbolOffset"),u);h&&(o.x=h[0],o.y=h[1]);var d=t.getItemVisual(n,"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=n/t.count(),p.z=i.getShallow("z")||0,p.zlevel=i.getShallow("zlevel")||0,p.symbolType=l,p.color=v,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"&&a.startEffectAnimation(p):g==="normal"&&p.showEffectOn!=="render"&&a.stopEffectAnimation()}),this._effectCfg=p,et(this,c.get("focus"),c.get("blurScope"),c.get("disabled"))},e.prototype.fadeOut=function(t){t&&t()},e})(oe),$Z=(function(r){B(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 jf(UZ)},e.prototype.render=function(t,n,a){var i=t.getData(),o=this._symbolDraw;o.updateData(i,KA(t)),this.group.add(o.group)},e.prototype.updateTransform=function(t,n,a){var i=t.getData();this.group.dirty();var o=qf("").reset(t,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(KA(t))},e.prototype._updateGroupTransform=function(t){var n=t.coordinateSystem;n&&n.getRoamTransform&&(this.group.transform=GV(n.getRoamTransform()),this.group.decomposeTransform())},e.prototype.remove=function(t,n){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e})(Ue);function KA(r){return{clipShape:kE(r)}}var WZ=(function(r){B(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,n){return wa(null,this,{useEncodeDefaulter:!0})},e.prototype.brushSelector=function(t,n,a){return a.point(n.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})(je);function YZ(r){r.registerChartView($Z),r.registerSeriesModel(WZ),r.registerLayout(qf("effectScatter"))}var BO=(function(r){B(e,r);function e(t,n,a){var i=r.call(this)||this;return i.add(i.createLine(t,n,a)),i._updateEffectSymbol(t,n),i}return e.prototype.createLine=function(t,n,a){return new B1(t,n,a)},e.prototype._updateEffectSymbol=function(t,n){var a=t.getItemModel(n),i=a.getModel("effect"),o=i.get("symbolSize"),s=i.get("symbol");U(o)||(o=[o,o]);var l=t.getItemVisual(n,"style"),u=i.get("color")||l&&l.stroke,f=this.childAt(1);this._symbolType!==s&&(this.remove(f),f=gt(s,-.5,-.5,1,1,u),f.z2=100,f.culling=!0,this.add(f)),f&&(f.setStyle("shadowColor",u),f.setStyle(i.getItemStyle(["color"])),f.scaleX=o[0],f.scaleY=o[1],f.setColor(u),this._symbolType=s,this._symbolScale=o,this._updateEffectAnimation(t,i,n))},e.prototype._updateEffectAnimation=function(t,n,a){var i=this.childAt(1);if(i){var o=t.getItemLayout(a),s=n.get("period")*1e3,l=n.get("loop"),u=n.get("roundTrip"),f=n.get("constantSpeed"),v=tr(n.get("delay"),function(h){return h/t.count()*s/3});if(i.ignore=!0,this._updateAnimationPoints(i,o),f>0&&(s=this._getLineLength(i)/f*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var c=void 0;ie(v)?c=v(a):c=v,i.__t>0&&(c=-s*i.__t),this._animateSymbol(i,s,c,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(t,n,a,i,o){if(n>0){t.__t=0;var s=this,l=t.animate("",i).when(o?n*2:n,{__t:o?2:1}).delay(a).during(function(){s._updateSymbolPosition(t)});i||l.done(function(){s.remove(t)}),l.start()}},e.prototype._getLineLength=function(t){return Na(t.__p1,t.__cp1)+Na(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,n){t.__p1=n[0],t.__p2=n[1],t.__cp1=n[2]||[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]},e.prototype.updateData=function(t,n,a){this.childAt(0).updateData(t,n,a),this._updateEffectSymbol(t,n)},e.prototype._updateSymbolPosition=function(t){var n=t.__p1,a=t.__p2,i=t.__cp1,o=t.__t<=1?t.__t:2-t.__t,s=[t.x,t.y],l=s.slice(),u=Lt,f=Lm;s[0]=u(n[0],i[0],a[0],o),s[1]=u(n[1],i[1],a[1],o);var v=t.__t<=1?f(n[0],i[0],a[0],o):f(a[0],i[0],n[0],1-o),c=t.__t<=1?f(n[1],i[1],a[1],o):f(a[1],i[1],n[1],1-o);t.rotation=-Math.atan2(c,v)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(t.__lastT!==void 0&&t.__lastT<t.__t?(t.scaleY=Na(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*Na(n,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,n){this.childAt(0).updateLayout(t,n);var a=t.getItemModel(n).getModel("effect");this._updateEffectAnimation(t,a,n)},e})(oe),VO=(function(r){B(e,r);function e(t,n,a){var i=r.call(this)||this;return i._createPolyline(t,n,a),i}return e.prototype._createPolyline=function(t,n,a){var i=t.getItemLayout(n),o=new Bt({shape:{points:i}});this.add(o),this._updateCommonStl(t,n,a)},e.prototype.updateData=function(t,n,a){var i=t.hostModel,o=this.childAt(0),s={shape:{points:t.getItemLayout(n)}};Oe(o,s,i,n),this._updateCommonStl(t,n,a)},e.prototype._updateCommonStl=function(t,n,a){var i=this.childAt(0),o=t.getItemModel(n),s=a&&a.emphasisLineStyle,l=a&&a.focus,u=a&&a.blurScope,f=a&&a.emphasisDisabled;if(!a||t.hasItemOption){var v=o.getModel("emphasis");s=v.getModel("lineStyle").getLineStyle(),f=v.get("disabled"),l=v.get("focus"),u=v.get("blurScope")}i.useStyle(t.getItemVisual(n,"style")),i.style.fill=null,i.style.strokeNoScale=!0;var c=i.ensureState("emphasis");c.style=s,et(this,l,u,f)},e.prototype.updateLayout=function(t,n){var a=this.childAt(0);a.stopAnimation(),a.setShape("points",t.getItemLayout(n))},e})(oe),XZ=(function(r){B(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,n,a){return new VO(t,n,a)},e.prototype._updateAnimationPoints=function(t,n){this._points=n;for(var a=[0],i=0,o=1;o<n.length;o++){var s=n[o-1],l=n[o];i+=Na(s,l),a.push(i)}if(i===0){this._length=0;return}for(var o=0;o<a.length;o++)a[o]/=i;this._offsets=a,this._length=i},e.prototype._getLineLength=function(){return this._length},e.prototype._updateSymbolPosition=function(t){var n=t.__t<=1?t.__t:2-t.__t,a=this._points,i=this._offsets,o=a.length;if(i){var s=this._lastFrame,l;if(n<this._lastFramePercent){var u=Math.min(s+1,o-1);for(l=u;l>=0&&!(i[l]<=n);l--);l=Math.min(l,o-2)}else{for(l=s;l<o&&!(i[l]>n);l++);l=Math.min(l-1,o-2)}var f=(n-i[l])/(i[l+1]-i[l]),v=a[l],c=a[l+1];t.x=v[0]*(1-f)+f*c[0],t.y=v[1]*(1-f)+f*c[1];var h=t.__t<=1?c[0]-v[0]:v[0]-c[0],d=t.__t<=1?c[1]-v[1]:v[1]-c[1];t.rotation=-Math.atan2(d,h)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=n,t.ignore=!1}},e})(BO),ZZ=(function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r})(),jZ=(function(r){B(e,r);function e(t){var n=r.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.beforeBrush=function(t){t&&!t.contentRetained&&this.reset()},e.prototype.getDefaultStyle=function(){return{stroke:N.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new ZZ},e.prototype.buildPath=function(t,n){var a=n.segs,i=n.curveness,o;if(n.polyline)for(o=this._off;o<a.length;){var s=a[o++];if(s>0){t.moveTo(a[o++],a[o++]);for(var l=1;l<s;l++)t.lineTo(a[o++],a[o++])}}else for(o=this._off;o<a.length;){var u=a[o++],f=a[o++],v=a[o++],c=a[o++];if(t.moveTo(u,f),i>0){var h=(u+v)/2-(f-c)*i,d=(f+c)/2-(v-u)*i;t.quadraticCurveTo(h,d,v,c)}else t.lineTo(v,c)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(t,n){var a=this.shape,i=a.segs,o=a.curveness,s=this.style.lineWidth;if(a.polyline)for(var l=0,u=0;u<i.length;){var f=i[u++];if(f>0)for(var v=i[u++],c=i[u++],h=1;h<f;h++){var d=i[u++],p=i[u++];if(ka(v,c,d,p,s,t,n))return l}l++}else for(var l=0,u=0;u<i.length;){var v=i[u++],c=i[u++],d=i[u++],p=i[u++];if(o>0){var g=(v+d)/2-(c-p)*o,y=(c+p)/2-(d-v)*o;if(XL(v,c,g,y,d,p,s,t,n))return l}else if(ka(v,c,d,p,s,t,n))return l;l++}return-1},e.prototype.contain=function(t,n){var a=this.transformCoordToLocal(t,n),i=this.getBoundingRect();if(t=a[0],n=a[1],i.contain(t,n)){var o=this.hoverDataIdx=this.findDataIndex(t,n);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var n=this.shape,a=n.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u<a.length;){var f=a[u++],v=a[u++];i=Math.min(f,i),s=Math.max(f,s),o=Math.min(v,o),l=Math.max(v,l)}t=this._rect=new se(i,o,s,l)}return t},e})(Ae),qZ=(function(){function r(){this.group=new oe}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,n){var a=this._newAdded[0],i=t.getLayout("linesPoints"),o=a&&a.shape.segs;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+i.length);l.set(o),l.set(i,s),a.setShape({segs:l})}else{this._newAdded=[];var u=this._create();u.incremental=n,u.setShape({segs:i}),this._setCommon(u,t),u.__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 jZ({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},r.prototype._setCommon=function(e,t,n){var a=t.hostModel;e.setShape({polyline:a.get("polyline"),curveness:a.get(["lineStyle","curveness"])}),e.useStyle(a.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=ve(e);o.seriesIndex=a.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})(),zO={seriesType:"lines",plan:qo(),reset:function(r){var e=r.coordinateSystem;if(e){var t=r.get("polyline"),n=r.pipelineContext.large;return{progress:function(a,i){var o=[];if(n){var s=void 0,l=a.end-a.start;if(t){for(var u=0,f=a.start;f<a.end;f++)u+=r.getLineCoordsCount(f);s=new Float32Array(l+u*2)}else s=new Float32Array(l*4);for(var v=0,c=[],f=a.start;f<a.end;f++){var h=r.getLineCoords(f,o);t&&(s[v++]=h);for(var d=0;d<h;d++)c=e.dataToPoint(o[d],!1,c),s[v++]=c[0],s[v++]=c[1]}i.setLayout("linesPoints",s)}else for(var f=a.start;f<a.end;f++){var p=i.getItemModel(f),h=r.getLineCoords(f,o),g=[];if(t)for(var y=0;y<h;y++)g.push(e.dataToPoint(o[y]));else{g[0]=e.dataToPoint(o[0]),g[1]=e.dataToPoint(o[1]);var m=p.get(["lineStyle","curveness"]);+m&&(g[2]=[(g[0][0]+g[1][0])/2-(g[0][1]-g[1][1])*m,(g[0][1]+g[1][1])/2-(g[1][0]-g[0][0])*m])}i.setItemLayout(f,g)}}}}}},KZ=(function(r){B(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,n,a){var i=t.getData(),o=this._updateLineDraw(i,t),s=t.get("zlevel"),l=t.get(["effect","trailLength"]),u=a.getZr(),f=!!s0(a);f&&u.painter.getLayer(s).clear(!0),this._lastZlevel!=null&&f&&u.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&l>0&&f&&u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)}),o.updateData(i);var v=t.get("clip",!0)&&Ro(t.coordinateSystem,!1,t);v?this.group.setClipPath(v):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,n,a){var i=t.getData(),o=this._updateLineDraw(i,t);o.incrementalPrepareUpdate(i),this._clearLayer(a),this._finished=!1},e.prototype.incrementalRender=function(t,n,a){this._lineDraw.incrementalUpdate(t,n.getData(),Dn(n)),this._finished=t.end===n.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,n,a){var i=t.getData(),o=this._lineDraw;if(!this._finished||!o||!o.updateLayout)return{update:!0};var s=zO.reset(t,n,a);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),o.updateLayout(),this._clearLayer(a)},e.prototype._updateLineDraw=function(t,n){var a=this._lineDraw,i=this._showEffect(n),o=!!n.get("polyline"),s=n.pipelineContext,l=s.large;return(!a||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=l?new qZ:new V1(o?i?XZ:VO:i?BO:B1),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(a.group),a},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var n=s0(t);n&&this._lastZlevel!=null&&n.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,n){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(n)},e.prototype.dispose=function(t,n){this.remove(t,n)},e.type="lines",e})(Ue),JZ=typeof Uint32Array>"u"?Array:Uint32Array,QZ=typeof Float64Array>"u"?Array:Float64Array;function JA(r){var e=r.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(r.data=$(e,function(t){var n=[t[0].coord,t[1].coord],a={coords:n};return t[0].name&&(a.fromName=t[0].name),t[1].name&&(a.toName=t[1].name),W_([a,t[0],t[1]])}))}var ej=(function(r){B(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||[],JA(t);var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count)),r.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(t){if(JA(t),t.data){var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count))}r.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var n=this._processFlatCoordsArray(t.data);n.flatCoords&&(this._flatCoords?(this._flatCoords=Wu(this._flatCoords,n.flatCoords),this._flatCoordsOffset=Wu(this._flatCoordsOffset,n.flatCoordsOffset)):(this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset),t.data=new Float32Array(n.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var n=this.getData().getItemModel(t),a=n.option instanceof Array?n.option:n.getShallow("coords");return a},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[t*2+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,n){if(this._flatCoordsOffset){for(var a=this._flatCoordsOffset[t*2],i=this._flatCoordsOffset[t*2+1],o=0;o<i;o++)n[o]=n[o]||[],n[o][0]=this._flatCoords[a+o*2],n[o][1]=this._flatCoords[a+o*2+1];return i}else{for(var s=this._getCoordsFromItemModel(t),o=0;o<s.length;o++)n[o]=n[o]||[],n[o][0]=s[o][0],n[o][1]=s[o][1];return s.length}},e.prototype._processFlatCoordsArray=function(t){var n=0;if(this._flatCoords&&(n=this._flatCoords.length),Ee(t[0])){for(var a=t.length,i=new JZ(a),o=new QZ(a),s=0,l=0,u=0,f=0;f<a;){u++;var v=t[f++];i[l++]=s+n,i[l++]=v;for(var c=0;c<v;c++){var h=t[f++],d=t[f++];o[s++]=h,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,n){var a=new nr(["value"],this);return a.hasItemOption=!1,a.initData(t.data,[],function(i,o,s,l){if(i instanceof Array)return NaN;a.hasItemOption=!0;var u=i.value;if(u!=null)return u instanceof Array?u[l]:u}),a},e.prototype.formatTooltip=function(t,n,a){var i=this.getData(),o=this.getRawValue(t),s=i.getItemModel(t),l=s.get("name");if(!l){var u=s.get("fromName"),f=s.get("toName"),v=[];u!=null&&v.push(u),f!=null&&v.push(f),l=v.join(" > ")}return pt("nameValue",{name:l,value:o,noValue:o==null||isNaN(o)})},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"),n=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&n>0?n+"":""},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})(je);function rc(r){return r instanceof Array||(r=[r,r]),r}var tj={seriesType:"lines",reset:function(r){var e=rc(r.get("symbol")),t=rc(r.get("symbolSize")),n=r.getData();n.setVisual("fromSymbol",e&&e[0]),n.setVisual("toSymbol",e&&e[1]),n.setVisual("fromSymbolSize",t&&t[0]),n.setVisual("toSymbolSize",t&&t[1]);function a(i,o){var s=i.getItemModel(o),l=rc(s.getShallow("symbol",!0)),u=rc(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:n.hasItemOption?a:null}}};function rj(r){r.registerChartView(KZ),r.registerSeriesModel(ej),r.registerLayout(zO),r.registerVisual(tj)}var nj=256,aj=(function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=rr.createCanvas();this.canvas=e}return r.prototype.update=function(e,t,n,a,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),f=this.pointSize+this.blurSize,v=this.canvas,c=v.getContext("2d"),h=e.length;v.width=t,v.height=n;for(var d=0;d<h;++d){var p=e[d],g=p[0],y=p[1],m=p[2],_=a(m);c.globalAlpha=_,c.drawImage(s,g-f,y-f)}if(!v.width||!v.height)return v;for(var S=c.getImageData(0,0,v.width,v.height),x=S.data,w=0,b=x.length,T=this.minOpacity,C=this.maxOpacity,A=C-T;w<b;){var _=x[w+3]/256,D=Math.floor(_*(nj-1))*4;if(_>0){var L=o(_)?l:u;_>0&&(_=_*A+T),x[w++]=L[D],x[w++]=L[D+1],x[w++]=L[D+2],x[w++]=L[D+3]*_*256}else w+=4}return c.putImageData(S,0,0),v},r.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=rr.createCanvas()),t=this.pointSize+this.blurSize,n=t*2;e.width=n,e.height=n;var a=e.getContext("2d");return a.clearRect(0,0,n,n),a.shadowOffsetX=n,a.shadowBlur=this.blurSize,a.shadowColor=N.color.neutral99,a.beginPath(),a.arc(-t,t,this.pointSize,0,Math.PI*2,!0),a.closePath(),a.fill(),e},r.prototype._getGradient=function(e,t){for(var n=this._gradientPixels,a=n[t]||(n[t]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,i),a[o++]=i[0],a[o++]=i[1],a[o++]=i[2],a[o++]=i[3];return a},r})();function ij(r,e,t){var n=r[1]-r[0];e=$(e,function(o){return{interval:[(o.interval[0]-r[0])/n,(o.interval[1]-r[0])/n]}});var a=e.length,i=0;return function(o){var s;for(s=i;s<a;s++){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}if(s===a)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<a&&t[s]}}function oj(r,e){var t=r[1]-r[0];return e=[(e[0]-r[0])/t,(e[1]-r[0])/t],function(n){return n>=e[0]&&n<=e[1]}}var sj=(function(r){B(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,n,a){var i;n.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"||o.type==="matrix"?this._renderOnGridLike(t,a,0,t.getData().count()):QC(o)&&this._renderOnGeo(o,t,i,a)},e.prototype.incrementalPrepareRender=function(t,n,a){this.group.removeAll()},e.prototype.incrementalRender=function(t,n,a,i){var o=n.coordinateSystem;o&&(QC(o)?this.render(n,a,i):(this._progressiveEls=[],this._renderOnGridLike(n,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){di(this._progressiveEls||this.group,t)},e.prototype._renderOnGridLike=function(t,n,a,i,o){var s=t.coordinateSystem,l=Eo(s,"cartesian2d"),u=Eo(s,"matrix"),f,v,c,h;if(l){var d=s.getAxis("x"),p=s.getAxis("y");f=Vt(d).w+.5,v=Vt(p).w+.5,c=d.scale.getExtent(),h=p.scale.getExtent()}for(var g=this.group,y=t.getData(),m=t.getModel(["emphasis","itemStyle"]).getItemStyle(),_=t.getModel(["blur","itemStyle"]).getItemStyle(),S=t.getModel(["select","itemStyle"]).getItemStyle(),x=t.get(["itemStyle","borderRadius"]),w=St(t),b=t.getModel("emphasis"),T=b.get("focus"),C=b.get("blurScope"),A=b.get("disabled"),D=l||u?[y.mapDimension("x"),y.mapDimension("y"),y.mapDimension("value")]:[y.mapDimension("time"),y.mapDimension("value")],L=a;L<i;L++){var I=void 0,P=y.getItemVisual(L,"style");if(l){var R=y.get(D[0],L),E=y.get(D[1],L);if(isNaN(y.get(D[2],L))||isNaN(R)||isNaN(E)||R<c[0]||R>c[1]||E<h[0]||E>h[1])continue;var O=s.dataToPoint([R,E]);I=new be({shape:{x:O[0]-f/2,y:O[1]-v/2,width:f,height:v},style:P})}else if(u){var k=s.dataToLayout([y.get(D[0],L),y.get(D[1],L)]).rect;if($t(k.x))continue;I=new be({z2:1,shape:k,style:P})}else{if(isNaN(y.get(D[1],L)))continue;var z=s.dataToLayout([y.get(D[0],L)]),k=z.contentRect||z.rect;if($t(k.x)||$t(k.y))continue;I=new be({z2:1,shape:k,style:P})}if(y.hasItemOption){var F=y.getItemModel(L),H=F.getModel("emphasis");m=H.getModel("itemStyle").getItemStyle(),_=F.getModel(["blur","itemStyle"]).getItemStyle(),S=F.getModel(["select","itemStyle"]).getItemStyle(),x=F.get(["itemStyle","borderRadius"]),T=H.get("focus"),C=H.get("blurScope"),A=H.get("disabled"),w=St(F)}I.shape.r=x;var W=t.getRawValue(L),X="-";W&&W[2]!=null&&(X=W[2]+""),Mt(I,w,{labelFetcher:t,labelDataIndex:L,defaultOpacity:P.opacity,defaultText:X}),I.ensureState("emphasis").style=m,I.ensureState("blur").style=_,I.ensureState("select").style=S,et(I,T,C,A),I.incremental=Dn(t,o),o&&(I.states.emphasis.hoverLayer=Tl),g.add(I),y.setItemGraphicEl(L,I),this._progressiveEls&&this._progressiveEls.push(I)}},e.prototype._renderOnGeo=function(t,n,a,i){var o=a.targetVisuals.inRange,s=a.targetVisuals.outOfRange,l=n.getData(),u=this._hmLayer||this._hmLayer||new aj;u.blurSize=n.get("blurSize"),u.pointSize=n.get("pointSize"),u.minOpacity=n.get("minOpacity"),u.maxOpacity=n.get("maxOpacity");var f=t.getViewRect().clone(),v=t.getRoamTransform();f.applyTransform(v);var c=Math.max(f.x,0),h=Math.max(f.y,0),d=Math.min(f.width+f.x,i.getWidth()),p=Math.min(f.height+f.y,i.getHeight()),g=d-c,y=p-h,m=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(m,function(b,T,C){var A=t.dataToPoint([b,T]);return A[0]-=c,A[1]-=h,A.push(C),A}),S=a.getExtent(),x=a.type==="visualMap.continuous"?oj(S,a.option.range):ij(S,a.getPieceList(),a.option.selected);u.update(_,g,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},x);var w=new Rt({style:{width:g,height:y,x:c,y:h,image:u.canvas},silent:!0});this.group.add(w)},e.type="heatmap",e})(Ue),lj=(function(r){B(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,n){return wa(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=zf.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","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:N.color.primary}}},e})(je);function uj(r){r.registerChartView(sj),r.registerSeriesModel(lj)}var fj=["itemStyle","borderWidth"],QA=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],by=new Sa,vj=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=gf,t}return e.prototype.render=function(t,n,a){var i=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),f=u.isHorizontal(),v=l.master.getRect(),c={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[v.x,v.x+v.width],[v.y,v.y+v.height]],isHorizontal:f,valueDim:QA[+f],categoryDim:QA[1-+f]};o.diff(s).add(function(d){if(o.hasValue(d)){var p=tM(o,d),g=eM(o,d,p,c),y=rM(o,c,g);o.setItemGraphicEl(d,y),i.add(y),aM(y,c,g)}}).update(function(d,p){var g=s.getItemGraphicEl(p);if(!o.hasValue(d)){i.remove(g);return}var y=tM(o,d),m=eM(o,d,y,c),_=WO(o,m);g&&_!==g.__pictorialShapeStr&&(i.remove(g),o.setItemGraphicEl(d,null),g=null),g?mj(g,c,m):g=rM(o,c,m,!0),o.setItemGraphicEl(d,g),g.__pictorialSymbolMeta=m,i.add(g),aM(g,c,m)}).remove(function(d){var p=s.getItemGraphicEl(d);p&&nM(s,d,p.__pictorialSymbolMeta.animationModel,p)}).execute();var h=t.get("clip",!0)?Ro(t.coordinateSystem,!1,t):null;return h?i.setClipPath(h):i.removeClipPath(),this._data=o,this.group},e.prototype.remove=function(t,n){var a=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl(function(o){nM(i,ve(o).dataIndex,t,o)}):a.removeAll()},e.type=gf,e})(Ue);function eM(r,e,t,n){var a=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,f=t.get("symbolPatternSize")||2,v=t.isAnimationEnabled(),c={dataIndex:e,layout:a,itemModel:t,symbolType:r.getItemVisual(e,"symbol")||"circle",style:r.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:f,rotation:u,animationModel:v?t:null,hoverScale:v&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};cj(t,i,a,n,c),hj(r,e,a,i,o,c.boundingLength,c.pxSign,f,n,c),dj(t,c.symbolScale,u,n,c);var h=c.symbolSize,d=Ko(t.get("symbolOffset"),h);return pj(t,h,a,i,o,d,s,c.valueLineWidth,c.boundingLength,c.repeatCutLength,n,c),c}function cj(r,e,t,n,a){var i=n.valueDim,o=r.get("symbolBoundingData"),s=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[i.wh]<=0),f;if(U(o)){var v=[Cy(s,o[0])-l,Cy(s,o[1])-l];v[1]<v[0]&&v.reverse(),f=v[u]}else o!=null?f=Cy(s,o)-l:e?f=n.coordSysExtent[i.index][u]-l:f=t[i.wh];a.boundingLength=f,e&&(a.repeatCutLength=t[i.wh]);var c=i.xy==="x",h=s.inverse;a.pxSign=c&&!h||!c&&h?f>=0?1:-1:f>0?1:-1}function Cy(r,e){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(e)))}function hj(r,e,t,n,a,i,o,s,l,u){var f=l.valueDim,v=l.categoryDim,c=Math.abs(t[v.wh]),h=r.getItemVisual(e,"symbolSize"),d;U(h)?d=h.slice():h==null?d=["100%","100%"]:d=[h,h],d[v.index]=j(d[v.index],c),d[f.index]=j(d[f.index],n?c:Math.abs(i)),u.symbolSize=d;var p=u.symbolScale=[d[0]/s,d[1]/s];p[f.index]*=(l.isHorizontal?-1:1)*o}function dj(r,e,t,n,a){var i=r.get(fj)||0;i&&(by.attr({scaleX:e[0],scaleY:e[1],rotation:t}),by.updateTransform(),i/=by.getLineScale(),i*=e[n.valueDim.index]),a.valueLineWidth=i||0}function pj(r,e,t,n,a,i,o,s,l,u,f,v){var c=f.categoryDim,h=f.valueDim,d=v.pxSign,p=Math.max(e[h.index]+s,0),g=p;if(n){var y=Math.abs(l),m=tr(r.get("symbolMargin"),"15%")+"",_=!1;m.lastIndexOf("!")===m.length-1&&(_=!0,m=m.slice(0,m.length-1));var S=j(m,e[h.index]),x=Math.max(p+S*2,0),w=_?0:S*2,b=IL(n),T=b?n:iM((y+w)/x),C=y-T*p;S=C/2/(_?T:Math.max(T-1,1)),x=p+S*2,w=_?0:S*2,!b&&n!=="fixed"&&(T=u?iM((Math.abs(u)+w)/x):0),g=T*x-w,v.repeatTimes=T,v.symbolMargin=S}var A=d*(g/2),D=v.pathPosition=[];D[c.index]=t[c.wh]/2,D[h.index]=o==="start"?A:o==="end"?l-A:l/2,i&&(D[0]+=i[0],D[1]+=i[1]);var L=v.bundlePosition=[];L[c.index]=t[c.xy],L[h.index]=t[h.xy];var I=v.barRectShape=G({},t);I[h.wh]=d*Math.max(Math.abs(t[h.wh]),Math.abs(D[h.index]+A)),I[c.wh]=t[c.wh];var P=v.clipShape={};P[c.xy]=-t[c.xy],P[c.wh]=f.ecSize[c.wh],P[h.xy]=0,P[h.wh]=t[h.wh]}function FO(r){var e=r.symbolPatternSize,t=gt(r.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function GO(r,e,t,n){var a=r.__pictorialBundle,i=t.symbolSize,o=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,f=0,v=i[e.valueDim.index]+o+t.symbolMargin*2;for(Z1(r,function(p){p.__pictorialAnimationIndex=f,p.__pictorialRepeatTimes=u,f<u?Zs(p,null,d(f),t,n):Zs(p,null,{scaleX:0,scaleY:0},t,n,function(){a.remove(p)}),f++});f<u;f++){var c=FO(t);c.__pictorialAnimationIndex=f,c.__pictorialRepeatTimes=u,a.add(c);var h=d(f);Zs(c,{x:h.x,y:h.y,scaleX:0,scaleY:0},{scaleX:h.scaleX,scaleY:h.scaleY,rotation:h.rotation},t,n)}function d(p){var g=s.slice(),y=t.pxSign,m=p;return(t.symbolRepeatDirection==="start"?y>0:y<0)&&(m=u-1-p),g[l.index]=v*(m-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function HO(r,e,t,n){var a=r.__pictorialBundle,i=r.__pictorialMainPath;i?Zs(i,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,n):(i=r.__pictorialMainPath=FO(t),a.add(i),Zs(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,n))}function UO(r,e,t){var n=G({},e.barRectShape),a=r.__pictorialBarRect;a?Zs(a,null,{shape:n},e,t):(a=r.__pictorialBarRect=new be({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,r.add(a))}function $O(r,e,t,n){if(t.symbolClip){var a=r.__pictorialClipPath,i=G({},t.clipShape),o=e.valueDim,s=t.animationModel,l=t.dataIndex;if(a)Oe(a,{shape:i},s,l);else{i[o.wh]=0,a=new be({shape:i}),r.__pictorialBundle.setClipPath(a),r.__pictorialClipPath=a;var u={};u[o.wh]=t.clipShape[o.wh],Xo[n?"updateProps":"initProps"](a,{shape:u},s,l)}}}function tM(r,e){var t=r.getItemModel(e);return t.getAnimationDelayParams=gj,t.isAnimationEnabled=yj,t}function gj(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function yj(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function rM(r,e,t,n){var a=new oe,i=new oe;return a.add(i),a.__pictorialBundle=i,i.x=t.bundlePosition[0],i.y=t.bundlePosition[1],t.symbolRepeat?GO(a,e,t):HO(a,e,t),UO(a,t,n),$O(a,e,t,n),a.__pictorialShapeStr=WO(r,t),a.__pictorialSymbolMeta=t,a}function mj(r,e,t){var n=t.animationModel,a=t.dataIndex,i=r.__pictorialBundle;Oe(i,{x:t.bundlePosition[0],y:t.bundlePosition[1]},n,a),t.symbolRepeat?GO(r,e,t,!0):HO(r,e,t,!0),UO(r,t,!0),$O(r,e,t,!0)}function nM(r,e,t,n){var a=n.__pictorialBarRect;a&&a.removeTextContent();var i=[];Z1(n,function(o){i.push(o)}),n.__pictorialMainPath&&i.push(n.__pictorialMainPath),n.__pictorialClipPath&&(t=null),M(i,function(o){ai(o,{scaleX:0,scaleY:0},t,e,function(){n.parent&&n.parent.remove(n)})}),r.setItemGraphicEl(e,null)}function WO(r,e){return[r.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function Z1(r,e,t){M(r.__pictorialBundle.children(),function(n){n!==r.__pictorialBarRect&&e.call(t,n)})}function Zs(r,e,t,n,a,i){e&&r.attr(e),n.symbolClip&&!a?t&&r.attr(t):t&&Xo[a?"updateProps":"initProps"](r,t,n.animationModel,n.dataIndex,i)}function aM(r,e,t){var n=t.dataIndex,a=t.itemModel,i=a.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=a.getModel(["blur","itemStyle"]).getItemStyle(),l=a.getModel(["select","itemStyle"]).getItemStyle(),u=a.getShallow("cursor"),f=i.get("focus"),v=i.get("blurScope"),c=i.get("scale");Z1(r,function(p){if(p instanceof Rt){var g=p.style;p.useStyle(G({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},t.style))}else p.useStyle(t.style);var y=p.ensureState("emphasis");y.style=o,c&&(y.scaleX=p.scaleX*1.1,y.scaleY=p.scaleY*1.1),p.ensureState("blur").style=s,p.ensureState("select").style=l,u&&(p.cursor=u),p.z2=t.z2});var h=e.valueDim.posDesc[+(t.boundingLength>0)],d=r.__pictorialBarRect;d.ignoreClip=!0,Mt(d,St(a),{labelFetcher:e.seriesModel,labelDataIndex:n,defaultText:ll(e.seriesModel.getData(),n),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:h}),et(r,f,v,i.get("disabled"))}function iM(r){var e=Math.round(r);return Math.abs(r-e)<1e-4?e:Math.ceil(r)}var _j=(function(r){B(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."+gf,e.dependencies=["grid"],e.defaultOption=pi(yf.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:N.color.primary}}}),e})(yf);function Sj(r){r.registerChartView(vj),r.registerSeriesModel(_j),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,ek(gf)),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,tk(gf)),nk(r)}var Ty=2,cl="themeRiver",xj=(function(r){B(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 El(q(this.getData,this),q(this.getRawData,this))},e.prototype.fixData=function(t){var n=t.length,a={},i=Ym(t,function(c){return a.hasOwnProperty(c[0]+"")||(a[c[0]+""]=-1),c[2]}),o=[];i.buckets.each(function(c,h){o.push({name:h,dataList:c})});for(var s=o.length,l=0;l<s;++l){for(var u=o[l].name,f=0;f<o[l].dataList.length;++f){var v=o[l].dataList[f][0]+"";a[v]=l}for(var v in a)a.hasOwnProperty(v)&&a[v]!==l&&(a[v]=l,t[n]=[v,0,u],n++)}return t},e.prototype.getInitialData=function(t,n){for(var a=this.getReferringComponents("singleAxis",at).models[0],i=a.get("type"),o=Fe(t.data,function(d){return d[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=K(),f=0,v=0;v<s.length;++v)l.push(s[v][Ty]),u.get(s[v][Ty])||(u.set(s[v][Ty],f),f++);var c=Hf(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:Ah(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,h=new nr(c,this);return h.initData(s),h},e.prototype.getLayerSeries=function(){for(var t=this.getData(),n=t.count(),a=[],i=0;i<n;++i)a[i]=i;var o=t.mapDimension("single"),s=Ym(a,function(u){return t.get("name",u)}),l=[];return s.buckets.each(function(u,f){u.sort(function(v,c){return t.get(o,v)-t.get(o,c)}),l.push({name:f,indices:u})}),l},e.prototype.getAxisTooltipData=function(t,n,a){U(t)||(t=t?[t]:[]);for(var i=this.getData(),o=this.getLayerSeries(),s=[],l=o.length,u,f=0;f<l;++f){for(var v=Number.MAX_VALUE,c=-1,h=o[f].indices.length,d=0;d<h;++d){var p=i.get(t[0],o[f].indices[d]),g=Math.abs(p-n);g<=v&&(u=p,v=g,c=o[f].indices[d])}s.push(c)}return{dataIndices:s,nestestValue:u}},e.prototype.formatTooltip=function(t,n,a){var i=this.getData(),o=i.getName(t),s=i.get(i.mapDimension("value"),t);return pt("nameValue",{name:o,value:s})},e.type="series."+cl,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})(je),wj=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=cl,t._layers=[],t}return e.prototype.render=function(t,n,a){var i=t.getData(),o=this,s=this.group,l=t.getLayerSeries(),u=i.getLayout("layoutInfo"),f=u.rect,v=u.boundaryGap;s.x=0,s.y=f.y+v[0];function c(g){return g.name}var h=new ga(this._layersSeries||[],l,c,c),d=[];h.add(q(p,this,"add")).update(q(p,this,"update")).remove(q(p,this,"remove")).execute();function p(g,y,m){var _=o._layers;if(g==="remove"){s.remove(_[y]);return}for(var S=[],x=[],w,b=l[y].indices,T=0;T<b.length;T++){var C=i.getItemLayout(b[T]),A=C.x,D=C.y0,L=C.y;S.push(A,D),x.push(A,D+L),w=i.getItemVisual(b[T],"style")}var I,P=i.getItemLayout(b[0]),R=t.getModel("label"),E=R.get("margin"),O=t.getModel("emphasis");if(g==="add"){var k=d[y]=new oe;I=new PE({shape:{points:S,stackedOnPoints:x,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),k.add(I),s.add(k),t.isAnimationEnabled()&&I.setClipPath(bj(I.getBoundingRect(),t,function(){I.removeClipPath()}))}else{var k=_[m];I=k.childAt(0),s.add(k),d[y]=k,Oe(I,{shape:{points:S,stackedOnPoints:x}},t),$r(I)}Mt(I,St(t),{labelDataIndex:b[T-1],defaultText:i.getName(b[T-1]),inheritColor:w.fill},{normal:{verticalAlign:"middle"}}),I.setTextConfig({position:null,local:!0});var z=I.getTextContent();z&&(z.x=P.x-E,z.y=P.y0+P.y/2),I.useStyle(w),i.setItemGraphicEl(y,I),_t(I,t),et(I,O.get("focus"),O.get("blurScope"),O.get("disabled"))}this._layersSeries=l,this._layers=d},e.type=cl,e})(Ue);function bj(r,e,t){var n=new be({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return Ke(n,{shape:{x:r.x-50,width:r.width+100,height:r.height+20}},e,t),n}var Cj=wt(cl,Tj);function Tj(r,e){r.eachSeriesByType(cl,function(t){var n=t.getData(),a=t.coordinateSystem,i={},o=a.getRect();i.rect=o;var s=t.get("boundaryGap"),l=a.getAxis();if(i.boundaryGap=s,l.orient==="horizontal"){s[0]=j(s[0],o.height),s[1]=j(s[1],o.height);var u=o.height-s[0]-s[1];oM(n,t,u)}else{s[0]=j(s[0],o.width),s[1]=j(s[1],o.width);var f=o.width-s[0]-s[1];oM(n,t,f)}n.setLayout("layoutInfo",i)})}function oM(r,e,t){if(r.count())for(var n=e.coordinateSystem,a=e.getLayerSeries(),i=r.mapDimension("single"),o=r.mapDimension("value"),s=$(a,function(g){return $(g.indices,function(y){var m=n.dataToPoint(r.get(i,y));return m[1]=r.get(o,y),m})}),l=Aj(s),u=l.y0,f=t/l.max,v=a.length,c=a[0].indices.length,h,d=0;d<c;++d){h=u[d]*f,r.setItemLayout(a[0].indices[d],{layerIndex:0,x:s[0][d][0],y0:h,y:s[0][d][1]*f});for(var p=1;p<v;++p)h+=s[p-1][d][1]*f,r.setItemLayout(a[p].indices[d],{layerIndex:p,x:s[p][d][0],y0:h,y:s[p][d][1]*f})}}function Aj(r){for(var e=r.length,t=r[0].length,n=[],a=[],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),n.push(s)}for(var u=0;u<t;++u)a[u]=(i-n[u])/2;i=0;for(var f=0;f<t;++f){var v=n[f]+a[f];v>i&&(i=v)}return{y0:a,max:i}}function Mj(r){r.registerChartView(wj),r.registerSeriesModel(xj),r.registerLayout(Cj),r.registerProcessor(Jf(cl))}var Dj=2,Ij=4,sM=(function(r){B(e,r);function e(t,n,a,i){var o=r.call(this)||this;o.z2=Dj,o.textConfig={inside:!0},ve(o).seriesIndex=n.seriesIndex;var s=new Re({z2:Ij,silent:t.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,t,n,a,i),o}return e.prototype.updateData=function(t,n,a,i,o){this.node=n,n.piece=this,a=a||this._seriesModel,i=i||this._ecModel;var s=this;ve(s).dataIndex=n.dataIndex;var l=n.getModel(),u=l.getModel("emphasis"),f=n.getLayout(),v=G({},f);v.label=null;var c=n.getVisual("style");c.lineJoin="bevel";var h=n.getVisual("decal");h&&(c.decal=nl(h,o));var d=Cn(l.getModel("itemStyle"),v,!0);G(v,d),M(ir,function(m){var _=s.ensureState(m),S=l.getModel([m,"itemStyle"]);_.style=S.getItemStyle();var x=Cn(S,v);x&&(_.shape=x)}),t?(s.setShape(v),s.shape.r=f.r0,Ke(s,{shape:{r:f.r}},a,n.dataIndex)):(Oe(s,{shape:v},a),$r(s)),s.useStyle(c),this._updateLabel(a);var p=l.getShallow("cursor");p&&s.attr("cursor",p),this._seriesModel=a||this._seriesModel,this._ecModel=i||this._ecModel;var g=u.get("focus"),y=g==="relative"?Wu(n.getAncestorsIndices(),n.getDescendantIndices()):g==="ancestor"?n.getAncestorsIndices():g==="descendant"?n.getDescendantIndices():g;et(this,y,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t){var n=this,a=this.node.getModel(),i=a.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),f=Math.sin(l),v=this,c=v.getTextContent(),h=this.node.dataIndex,d=i.get("minAngle")/180*Math.PI,p=i.get("show")&&!(d!=null&&Math.abs(s)<d);c.ignore=!p,M(Ku,function(y){var m=y==="normal"?a.getModel("label"):a.getModel([y,"label"]),_=y==="normal",S=_?c:c.ensureState(y),x=t.getFormattedLabel(h,y);_&&(x=x||n.node.name),S.style=Ze(m,{},null,y!=="normal",!0),x&&(S.style.text=x);var w=m.get("show");w!=null&&!_&&(S.ignore=!w);var b=g(m,"position"),T=_?v:v.states[y],C=T.style.fill;T.textConfig={outsideFill:m.get("color")==="inherit"?C:null,inside:b!=="outside"};var A,D=g(m,"distance")||0,L=g(m,"align"),I=g(m,"rotate"),P=Math.PI*.5,R=Math.PI*1.5,E=_r(I==="tangential"?Math.PI/2-l:l),O=E>P&&!Qs(E-P)&&E<R;b==="outside"?(A=o.r+D,L=O?"right":"left"):!L||L==="center"?(o.r0===0&&Qs(s-2*Math.PI)?A=0:A=(o.r+o.r0)/2,L="center"):L==="left"?(A=o.r0+D,L=O?"right":"left"):L==="right"&&(A=o.r-D,L=O?"left":"right"),S.style.align=L,S.style.verticalAlign=g(m,"verticalAlign")||"middle",S.x=A*u+o.cx,S.y=A*f+o.cy;var k=0;I==="radial"?k=_r(-l)+(O?Math.PI:0):I==="tangential"?k=_r(Math.PI/2-l)+(O?Math.PI:0):Ee(I)&&(k=I*Math.PI/180),S.rotation=_r(k)});function g(y,m){var _=y.get(m);return _??i.get(m)}c.dirtyStyle()},e})(Xt),Go="sunburst",Lj=(function(r){B(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,n){var a={name:t.name,children:t.data};YO(a);var i=this._levelModels=$(t.levels||[],function(l){return new Ie(l,this,n)},this),o=L1.createTree(a,this,s);function s(l){l.wrapMethod("getItemModel",function(u,f){var v=o.getNodeByDataIndex(f),c=i[v.depth];return c&&(u.parentModel=c),u})}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(t){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return n.treePathInfo=lp(a,this),n},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 n=this.getRawData().tree.root;(!t||t!==n&&!n.contains(t))&&(this._viewRoot=n)},e.prototype.enableAriaDecal=function(){jk(this)},e.type="series."+Go,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})(je);function YO(r){var e=0;M(r.children,function(n){YO(n);var a=n.value;U(a)&&(a=a[0]),e+=a});var t=r.value;U(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),U(r.value)?r.value[0]=t:r.value=t}var v_="sunburstRootToNode",lM="sunburstHighlight",Pj="sunburstUnhighlight";function Rj(r){r.registerAction({type:v_,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},n);function n(a,i){var o=wf(e,[v_],a);if(o){var s=a.getViewRoot();s&&(e.direction=P1(s,o.node)?"rollUp":"drillDown"),a.resetViewRoot(o.node)}}}),r.registerAction({type:lM,update:"none"},function(e,t,n){e=G({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},a);function a(i){var o=wf(e,[lM],i);o&&(e.dataIndex=o.node.dataIndex)}n.dispatchAction(G(e,{type:"highlight"}))}),r.registerAction({type:Pj,update:"updateView"},function(e,t,n){e=G({},e),n.dispatchAction(G(e,{type:"downplay"}))})}var Ej=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=Go,t}return e.prototype.render=function(t,n,a,i){var o=this;this.seriesModel=t,this.api=a,this.ecModel=n;var s=t.getData(),l=s.tree.root,u=t.getViewRoot(),f=this.group,v=t.get("renderLabelForZeroData"),c=[];u.eachNode(function(m){c.push(m)});var h=this._oldChildren||[];d(c,h),y(l,u),this._initEvents(),this._oldChildren=c;function d(m,_){if(m.length===0&&_.length===0)return;new ga(_,m,S,S).add(x).update(x).remove(xe(x,null)).execute();function S(w){return w.getId()}function x(w,b){var T=w==null?null:m[w],C=b==null?null:_[b];p(T,C)}}function p(m,_){if(!v&&m&&!m.getValue()&&(m=null),m!==l&&_!==l){if(_&&_.piece)m?(_.piece.updateData(!1,m,t,n,a),s.setItemGraphicEl(m.dataIndex,_.piece)):g(_);else if(m){var S=new sM(m,t,n,a);f.add(S),s.setItemGraphicEl(m.dataIndex,S)}}}function g(m){m&&m.piece&&(f.remove(m.piece),m.piece=null)}function y(m,_){_.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,m,t,n,a):(o.virtualPiece=new sM(m,t,n,a),f.add(o.virtualPiece)),_.piece.off("click"),o.virtualPiece.on("click",function(S){o._rootToNode(_.parentNode)})):o.virtualPiece&&(f.remove(o.virtualPiece),o.virtualPiece=null)}},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(n){var a=!1,i=t.seriesModel.getViewRoot();i.eachNode(function(o){if(!a&&o.piece&&o.piece===n.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 f=l.get("target",!0)||"_blank";mh(u,f)}}a=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:v_,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,n){var a=n.getData(),i=a.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=Go,e})(Ue),kj=wt(Go,Oj);function Oj(r){var e={};function t(n,a,i){if(n.depth===0)return N.color.neutral50;for(var o=n;o&&o.depth>1;)o=o.parentNode;var s=a.getColorFromPalette(o.name||o.dataIndex+"",e);return n.depth>1&&Z(s)&&(s=Em(s,(n.depth-1)/(i-1)*.5)),s}r.eachSeriesByType(Go,function(n){var a=n.getData(),i=a.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=t(o,n,i.root.height));var u=a.ensureUniqueItemVisual(o.dataIndex,"style");G(u,l)})})}var uM=Math.PI/180,Nj=wt(Go,Bj);function Bj(r,e){r.eachSeriesByType(Go,function(t){var n=t.get("center"),a=t.get("radius");U(a)||(a=[0,a]),U(n)||(n=[n,n]);var i=e.getWidth(),o=e.getHeight(),s=Math.min(i,o),l=j(n[0],i),u=j(n[1],o),f=j(a[0],s/2),v=j(a[1],s/2),c=-t.get("startAngle")*uM,h=t.get("minAngle")*uM,d=t.getData().tree.root,p=t.getViewRoot(),g=p.depth,y=t.get("sort");y!=null&&XO(p,y);var m=0;M(p.children,function(R){!isNaN(R.getValue())&&m++});var _=p.getValue(),S=Math.PI/(_||m)*2,x=p.depth>0,w=p.height-(x?-1:1),b=(v-f)/(w||1),T=t.get("clockwise"),C=t.get("stillShowZeroSum"),A=T?1:-1,D=function(R,E){if(R){var O=E;if(R!==d){var k=R.getValue(),z=_===0&&C?S:k*S;z<h&&(z=h),O=E+A*z;var F=R.depth-g-(x?-1:1),H=f+b*F,W=f+b*(F+1),X=t.getLevelModel(R);if(X){var Y=X.get("r0",!0),ee=X.get("r",!0),ye=X.get("radius",!0);ye!=null&&(Y=ye[0],ee=ye[1]),Y!=null&&(H=j(Y,s/2)),ee!=null&&(W=j(ee,s/2))}R.setLayout({angle:z,startAngle:E,endAngle:O,clockwise:T,cx:l,cy:u,r0:H,r:W})}if(R.children&&R.children.length){var Ne=0;M(R.children,function(ce){Ne+=D(ce,E+Ne)})}return O-E}};if(x){var L=f,I=f+b,P=Math.PI*2;d.setLayout({angle:P,startAngle:c,endAngle:c+P,clockwise:T,cx:l,cy:u,r0:L,r:I})}D(p,c)})}function XO(r,e){var t=r.children||[];r.children=Vj(t,e),t.length&&M(r.children,function(n){XO(n,e)})}function Vj(r,e){if(ie(e)){var t=$(r,function(a,i){var o=a.getValue();return{params:{depth:a.depth,height:a.height,dataIndex:a.dataIndex,getValue:function(){return o}},index:i}});return t.sort(function(a,i){return e(a.params,i.params)}),$(t,function(a){return r[a.index]})}else{var n=e==="asc";return r.sort(function(a,i){var o=(a.getValue()-i.getValue())*(n?1:-1);return o===0?(a.dataIndex-i.dataIndex)*(n?-1:1):o})}}function zj(r){r.registerChartView(Ej),r.registerSeriesModel(Lj),r.registerLayout(Nj),r.registerVisual(kj),Rj(r)}var fM={color:"fill",borderColor:"stroke"},Fj={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},ia=me(),Gj=(function(r){B(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,n){return wa(null,this)},e.prototype.getDataParams=function(t,n,a){var i=r.prototype.getDataParams.call(this,t,n);return a&&(i.info=ia(a).info),i},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e})(je);function Hj(r,e){return e=e||[0,0],$(["x","y"],function(t,n){var a=this.getAxis(t),i=e[n],o=r[n]/2;return a.type==="category"?Vt(a).w:Math.abs(a.dataToCoord(i-o)-a.dataToCoord(i+o))},this)}function Uj(r){var e=r.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:q(Hj,r)}}}function $j(r,e){return e=e||[0,0],$([0,1],function(t){var n=e[t],a=r[t]/2,i=[],o=[];return i[t]=n-a,o[t]=n+a,i[1-t]=o[1-t]=e[1-t],Math.abs(this.dataToPoint(i)[t]-this.dataToPoint(o)[t])},this)}function Wj(r){var e=r.view,t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:d8(e)},api:{coord:function(n){return r.dataToPoint(n)},size:q($j,r)}}}function Yj(r,e){var t=this.getAxis(),n=e instanceof Array?e[0]:e,a=(r instanceof Array?r[0]:r)/2;return t.type==="category"?Vt(t).w:Math.abs(t.dataToCoord(n-a)-t.dataToCoord(n+a))}function Xj(r){var e=r.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:q(Yj,r)}}}function Zj(r,e){return e=e||[0,0],$(["Radius","Angle"],function(t,n){var a="get"+t+"Axis",i=this[a](),o=e[n],s=r[n]/2,l=i.type==="category"?Vt(i).w:Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return t==="Angle"&&(l=l*Math.PI/180),l},this)}function jj(r){var e=r.getRadiusAxis(),t=r.getAngleAxis(),n=e.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:n[1],r0:n[0]},api:{coord:function(a){var i=e.dataToRadius(a[0]),o=t.dataToAngle(a[1]),s=r.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:q(Zj,r)}}}function qj(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(n,a){return r.dataToPoint(n,a)},layout:function(n,a){return r.dataToLayout(n,a)}}}}function Kj(r){var e=r.getRect();return{coordSys:{type:"matrix",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t,n){return r.dataToPoint(t,n)},layout:function(t,n){return r.dataToLayout(t,n)}}}}var ZO={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},vM=De(ZO);En(fa,function(r,e){return r[e]=1,r},{});fa.join(", ");var Qh=["","style","shape","extra"],hl=me();function j1(r,e,t,n,a){var i=r+"Animation",o=Cl(r,n,a)||{},s=hl(e).userDuring;return o.duration>0&&(o.during=s?q(rq,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=r),G(o,t[i]),o}function Yc(r,e,t,n){n=n||{};var a=n.dataIndex,i=n.isInit,o=n.clearStyle,s=t.isAnimationEnabled(),l=hl(r),u=e.style;l.userDuring=e.during;var f={},v={};if(aq(r,e,v),r.type==="compound")for(var c=r.shape.paths,h=e.shape.paths,d=0;d<h.length;d++){var p=h[d];Ay("shape",p,c[d])}else Ay("shape",e,v),Ay("extra",e,v);if(!i&&s&&(nq(r,e,f),cM("shape",r,e,f),cM("extra",r,e,f),iq(r,e,u,f)),v.style=u,Jj(r,v,o),eq(r,e),s)if(i){var g={};M(Qh,function(m){var _=m?e[m]:e;_&&_.enterFrom&&(m&&(g[m]=g[m]||{}),G(m?g[m]:g,_.enterFrom))});var y=j1("enter",r,e,t,a);y.duration>0&&r.animateFrom(g,y)}else Qj(r,e,a||0,t,f);jO(r,e),u?r.dirty():r.markRedraw()}function jO(r,e){for(var t=hl(r).leaveToProps,n=0;n<Qh.length;n++){var a=Qh[n],i=a?e[a]:e;i&&i.leaveTo&&(t||(t=hl(r).leaveToProps={}),a&&(t[a]=t[a]||{}),G(a?t[a]:t,i.leaveTo))}}function vp(r,e,t,n){if(r){var a=r.parent,i=hl(r).leaveToProps;if(i){var o=j1("update",r,e,t,0);o.done=function(){a&&a.remove(r)},r.animateTo(i,o)}else a&&a.remove(r)}}function mo(r){return r==="all"}function Jj(r,e,t){var n=e.style;if(!r.isGroup&&n){if(t){r.useStyle({});for(var a=r.animators,i=0;i<a.length;i++){var o=a[i];o.targetName==="style"&&o.changeTarget(r.style)}}r.setStyle(n)}e&&(e.style=null,e&&r.attr(e),e.style=n)}function Qj(r,e,t,n,a){if(a){var i=j1("update",r,e,n,t);i.duration>0&&r.animateFrom(a,i)}}function eq(r,e){J(e,"silent")&&(r.silent=e.silent),J(e,"ignore")&&(r.ignore=e.ignore),r instanceof Ur&&J(e,"invisible")&&(r.invisible=e.invisible),r instanceof Ae&&J(e,"autoBatch")&&(r.autoBatch=e.autoBatch)}var gn={},tq={setTransform:function(r,e){return gn.el[r]=e,this},getTransform:function(r){return gn.el[r]},setShape:function(r,e){var t=gn.el,n=t.shape||(t.shape={});return n[r]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(r){var e=gn.el.shape;if(e)return e[r]},setStyle:function(r,e){var t=gn.el,n=t.style;return n&&(n[r]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(r){var e=gn.el.style;if(e)return e[r]},setExtra:function(r,e){var t=gn.el.extra||(gn.el.extra={});return t[r]=e,this},getExtra:function(r){var e=gn.el.extra;if(e)return e[r]}};function rq(){var r=this,e=r.el;if(e){var t=hl(e).userDuring,n=r.userDuring;if(t!==n){r.el=r.userDuring=null;return}gn.el=e,n(tq)}}function cM(r,e,t,n){var a=t[r];if(a){var i=e[r],o;if(i){var s=t.transition,l=a.transition;if(l)if(!o&&(o=n[r]={}),mo(l))G(o,i);else for(var u=Ye(l),f=0;f<u.length;f++){var v=u[f],c=i[v];o[v]=c}else if(mo(s)||pe(s,r)>=0){!o&&(o=n[r]={});for(var h=De(i),f=0;f<h.length;f++){var v=h[f],c=i[v];oq(a[v],c)&&(o[v]=c)}}}}}function Ay(r,e,t){var n=e[r];if(n)for(var a=t[r]={},i=De(n),o=0;o<i.length;o++){var s=i[o];a[s]=Ru(n[s])}}function nq(r,e,t){for(var n=e.transition,a=mo(n)?fa:Ye(n||[]),i=0;i<a.length;i++){var o=a[i];if(!(o==="style"||o==="shape"||o==="extra")){var s=r[o];t[o]=s}}}function aq(r,e,t){for(var n=0;n<vM.length;n++){var a=vM[n],i=ZO[a],o=e[a];o&&(t[i[0]]=o[0],t[i[1]]=o[1])}for(var n=0;n<fa.length;n++){var s=fa[n];e[s]!=null&&(t[s]=e[s])}}function iq(r,e,t,n){if(t){var a=r.style,i;if(a){var o=t.transition,s=e.transition;if(o&&!mo(o)){var l=Ye(o);!i&&(i=n.style={});for(var u=0;u<l.length;u++){var f=l[u],v=a[f];i[f]=v}}else if(r.getAnimationStyleProps&&(mo(s)||mo(o)||pe(s,"style")>=0)){var c=r.getAnimationStyleProps(),h=c?c.style:null;if(h){!i&&(i=n.style={});for(var d=De(t),u=0;u<d.length;u++){var f=d[u];if(h[f]){var v=a[f];i[f]=v}}}}}}}function oq(r,e){return Wt(r)?r!==e:r!=null&&isFinite(r)}var qO=me(),sq=["percent","easing","shape","style","extra"];function KO(r){r.stopAnimation("keyframe"),r.attr(qO(r))}function ed(r,e,t){if(!(!t.isAnimationEnabled()||!e)){if(U(e)){M(e,function(s){ed(r,s,t)});return}var n=e.keyframes,a=e.duration;if(t&&a==null){var i=Cl("enter",t,0);a=i&&i.duration}if(!(!n||!a)){var o=qO(r);M(Qh,function(s){if(!(s&&!r[s])){var l;n.sort(function(u,f){return u.percent-f.percent}),M(n,function(u){var f=r.animators,v=s?u[s]:u;if(v){var c=De(v);if(s||(c=Fe(c,function(p){return pe(sq,p)<0})),!!c.length){l||(l=r.animate(s,e.loop,!0),l.scope="keyframe");for(var h=0;h<f.length;h++)f[h]!==l&&f[h].targetName===l.targetName&&f[h].stopTracks(c);s&&(o[s]=o[s]||{});var d=s?o[s]:o;M(c,function(p){d[p]=((s?r[s]:r)||{})[p]}),l.whenWithKeys(a*u.percent,v,c,u.easing)}}}),l&&l.delay(e.delay||0).duration(a).start(e.easing)}})}}}var oa="emphasis",Ua="normal",q1="blur",K1="select",fi=[Ua,oa,q1,K1],My={normal:["itemStyle"],emphasis:[oa,"itemStyle"],blur:[q1,"itemStyle"],select:[K1,"itemStyle"]},Dy={normal:["label"],emphasis:[oa,"label"],blur:[q1,"label"],select:[K1,"label"]},lq=["x","y"],uq="e\0\0",Mr={normal:{},emphasis:{},blur:{},select:{}},fq={cartesian2d:Uj,geo:Wj,single:Xj,polar:jj,calendar:qj,matrix:Kj};function c_(r){return r instanceof Ae}function h_(r){return r instanceof Ur}function vq(r,e){e.copyTransform(r),h_(e)&&h_(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,c_(e)&&c_(r)&&e.setShape(r.shape))}var cq=(function(r){B(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,n,a,i){this._progressiveEls=null;var o=this._data,s=t.getData(),l=this.group,u=hM(t,s,n,a);o||l.removeAll(),s.diff(o).add(function(v){Iy(a,null,v,u(v,i),t,l,s)}).remove(function(v){var c=o.getItemGraphicEl(v);c&&vp(c,ia(c).option,t)}).update(function(v,c){var h=o.getItemGraphicEl(c);Iy(a,h,v,u(v,i),t,l,s)}).execute();var f=t.get("clip",!0)?Ro(t.coordinateSystem,!1,t):null;f?l.setClipPath(f):l.removeClipPath(),this._data=s},e.prototype.incrementalPrepareRender=function(t,n,a){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,n,a,i,o){var s=n.getData(),l=hM(n,s,a,i),u=this._progressiveEls=[];function f(h){h.isGroup||(h.incremental=Dn(n),h.ensureState("emphasis").hoverLayer=Tl)}for(var v=t.start;v<t.end;v++){var c=Iy(null,null,v,l(v,o),n,this.group,s);c&&(c.traverse(f),u.push(c))}},e.prototype.eachRendered=function(t){di(this._progressiveEls||this.group,t)},e.prototype.filterForExposedEvent=function(t,n,a,i){var o=n.element;if(o==null||a.name===o)return!0;for(;(a=a.__hostTarget||a.parent)&&a!==this.group;)if(a.name===o)return!0;return!1},e.type="custom",e})(Ue);function J1(r){var e=r.type,t;if(e==="path"){var n=r.shape,a=n.width!=null&&n.height!=null?{x:n.x||0,y:n.y||0,width:n.width,height:n.height}:null,i=eN(n);t=Qu(i,null,a,n.layout||"center"),ia(t).customPathData=i}else if(e==="image")t=new Rt({}),ia(t).customImagePath=r.style.image;else if(e==="text")t=new Re({});else if(e==="group")t=new oe;else if(e==="compoundPath"){var n=r.shape;if(!n||!n.paths){var o="";Ve(o)}var s=$(n.paths,function(f){if(f.type==="path")return Qu(f.shape.pathData,f,null);var v=hh(f.type);if(!v){var c="";Ve(c)}return new v});t=new Nd({shape:{paths:s}})}else{var l=hh(e);if(!l){var o="";Ve(o)}t=new l}return ia(t).customGraphicType=e,t.name=r.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function Q1(r,e,t,n,a,i,o){KO(e);var s=a&&a.normal.cfg;s&&e.setTextConfig(s),n&&n.transition==null&&(n.transition=lq);var l=n&&n.style;if(l){if(e.type==="text"){var u=l;J(u,"textFill")&&(u.fill=u.textFill),J(u,"textStroke")&&(u.stroke=u.textStroke)}var f=void 0,v=c_(e)?l.decal:null;r&&v&&(v.dirty=!0,f=nl(v,r)),l.__decalPattern=f}if(h_(e)&&l){var f=l.__decalPattern;f&&(l.decal=f)}Yc(e,n,i,{dataIndex:t,isInit:o,clearStyle:!0}),ed(e,n.keyframeAnimation,i)}function JO(r,e,t,n,a){var i=e.isGroup?null:e,o=a&&a[r].cfg;if(i){var s=i.ensureState(r);if(n===!1){var l=i.getState(r);l&&(l.style=null)}else s.style=n||null;o&&(s.textConfig=o),Co(i)}}function hq(r,e,t){if(!r.isGroup){var n=r,a=t.currentZ,i=t.currentZLevel;n.z=a,n.zlevel=i;var o=e.z2;o!=null&&(n.z2=o||0);for(var s=0;s<fi.length;s++)dq(n,e,fi[s])}}function dq(r,e,t){var n=t===Ua,a=n?e:td(e,t),i=a?a.z2:null,o;i!=null&&(o=n?r:r.ensureState(t),o.z2=i||0)}function hM(r,e,t,n){var a=r.get("renderItem");if(typeof a=="string"){var i=RH(a);i&&(a=i)}var o=r.coordinateSystem,s={};o&&(s=o.prepareCustoms?o.prepareCustoms(o):fq[o.type](o));for(var l=le({getWidth:n.getWidth,getHeight:n.getHeight,getZr:n.getZr,getDevicePixelRatio:n.getDevicePixelRatio,value:x,style:b,ordinalRawValue:w,styleEmphasis:T,visual:D,barLayout:L,currentSeriesIndices:I,font:P},s.api||{}),u={context:{},seriesId:r.id,seriesName:r.name,seriesIndex:r.seriesIndex,coordSys:s.coordSys,dataInsideLength:e.count(),encode:pq(r.getData()),itemPayload:r.get("itemPayload")||{}},f,v,c={},h={},d={},p={},g=0;g<fi.length;g++){var y=fi[g];d[y]=r.getModel(My[y]),p[y]=r.getModel(Dy[y])}function m(R){return R===f?v||(v=e.getItemModel(R)):e.getItemModel(R)}function _(R,E){return e.hasItemOption?R===f?c[E]||(c[E]=m(R).getModel(My[E])):m(R).getModel(My[E]):d[E]}function S(R,E){return e.hasItemOption?R===f?h[E]||(h[E]=m(R).getModel(Dy[E])):m(R).getModel(Dy[E]):p[E]}return function(R,E){return f=R,v=null,c={},h={},a&&a(le({dataIndexInside:R,dataIndex:e.getRawIndex(R),actionType:E?E.type:null},u),l)};function x(R,E){return E==null&&(E=f),e.getStore().get(e.getDimensionIndex(R||0),E)}function w(R,E){E==null&&(E=f),R=R||0;var O=e.getDimensionInfo(R);if(!O){var k=e.getDimensionIndex(R);return k>=0?e.getStore().get(k,E):void 0}var z=e.get(O.name,E),F=O&&O.ordinalMeta;return F?F.categories[z]:z}function b(R,E){E==null&&(E=f);var O=e.getItemVisual(E,"style"),k=O&&O.fill,z=O&&O.opacity,F=_(E,Ua).getItemStyle();k!=null&&(F.fill=k),z!=null&&(F.opacity=z);var H={inheritColor:Z(k)?k:N.color.neutral99},W=S(E,Ua),X=Ze(W,null,H,!1,!0);X.text=W.getShallow("show")?Q(r.getFormattedLabel(E,Ua),ll(e,E)):null;var Y=dh(W,H,!1);return A(R,F),F=tT(F,X,Y),R&&C(F,R),F.legacy=!0,F}function T(R,E){E==null&&(E=f);var O=_(E,oa).getItemStyle(),k=S(E,oa),z=Ze(k,null,null,!0,!0);z.text=k.getShallow("show")?xr(r.getFormattedLabel(E,oa),r.getFormattedLabel(E,Ua),ll(e,E)):null;var F=dh(k,null,!0);return A(R,O),O=tT(O,z,F),R&&C(O,R),O.legacy=!0,O}function C(R,E){for(var O in E)J(E,O)&&(R[O]=E[O])}function A(R,E){R&&(R.textFill&&(E.textFill=R.textFill),R.textPosition&&(E.textPosition=R.textPosition))}function D(R,E){if(E==null&&(E=f),J(fM,R)){var O=e.getItemVisual(E,"style");return O?O[fM[R]]:null}if(J(Fj,R))return e.getItemVisual(E,R)}function L(R){if(o.type==="cartesian2d"){var E=o.getBaseAxis();return dY(le({axis:E},R))}}function I(){return t.getCurrentSeriesIndices()}function P(R){return _S(R,t)}}function pq(r){var e={};return M(r.dimensions,function(t){var n=r.getDimensionInfo(t);if(!n.isExtraCoord){var a=n.coordDim,i=e[a]=e[a]||[];i[n.coordDimIndex]=r.getDimensionIndex(t)}}),e}function Iy(r,e,t,n,a,i,o){if(!n){i.remove(e);return}var s=ex(r,e,t,n,a,i);return s&&o.setItemGraphicEl(t,s),s&&et(s,n.focus,n.blurScope,n.emphasisDisabled),s}function ex(r,e,t,n,a,i){var o=-1,s=e;e&&QO(e,n,a)&&(o=pe(i.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=J1(n),s&&vq(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),n.tooltipDisabled&&(u.tooltipDisabled=!0),Mr.normal.cfg=Mr.normal.conOpt=Mr.emphasis.cfg=Mr.emphasis.conOpt=Mr.blur.cfg=Mr.blur.conOpt=Mr.select.cfg=Mr.select.conOpt=null,Mr.isLegacy=!1,yq(u,t,n,a,l,Mr),gq(u,t,n,a,l),Q1(r,u,t,n,Mr,a,l),J(n,"info")&&(ia(u).info=n.info);for(var f=0;f<fi.length;f++){var v=fi[f];if(v!==Ua){var c=td(n,v),h=tx(n,c,v);JO(v,u,c,h,Mr)}}return hq(u,n,a),n.type==="group"&&mq(r,u,t,n,a),o>=0?i.replaceAt(u,o):i.add(u),u}function QO(r,e,t){var n=ia(r),a=e.type,i=e.shape,o=e.style;return t.isUniversalTransitionEnabled()||a!=null&&a!==n.customGraphicType||a==="path"&&wq(i)&&eN(i)!==n.customPathData||a==="image"&&J(o,"image")&&o.image!==n.customImagePath}function gq(r,e,t,n,a){var i=t.clipPath;if(i===!1)r&&r.getClipPath()&&r.removeClipPath();else if(i){var o=r.getClipPath();o&&QO(o,i,n)&&(o=null),o||(o=J1(i),r.setClipPath(o)),Q1(null,o,e,i,null,n,a)}}function yq(r,e,t,n,a,i){if(!(r.isGroup||r.type==="compoundPath")){dM(t,null,i),dM(t,oa,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 f=r.getTextContent();if(o===!1)f&&r.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},f?f.clearStates():(f=J1(o),r.setTextContent(f)),Q1(null,f,e,o,null,n,a);for(var v=o&&o.style,c=0;c<fi.length;c++){var h=fi[c];if(h!==Ua){var d=i[h].conOpt;JO(h,f,d,tx(o,d,h),null)}}v?f.dirty():f.markRedraw()}}}}function dM(r,e,t){var n=e?td(r,e):r,a=e?tx(r,n,oa):r.style,i=r.type,o=n?n.textConfig:null,s=r.textContent,l=s?e?td(s,e):s:null;if(a&&(t.isLegacy||OE(a,i,!!o,!!l))){t.isLegacy=!0;var u=NE(a,i,!e);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var f=l;!f.type&&(f.type="text")}var v=e?t[e]:t.normal;v.cfg=o,v.conOpt=l}function td(r,e){return e?r?r[e]:null:r}function tx(r,e,t){var n=e&&e.style;return n==null&&t===oa&&r&&(n=r.styleEmphasis),n}function mq(r,e,t,n,a){var i=n.children,o=i?i.length:0,s=n.$mergeChildren,l=s==="byName"||n.diffChildrenByName,u=s===!1;if(!(!o&&!l&&!u)){if(l){Sq({api:r,oldChildren:e.children()||[],newChildren:i||[],dataIndex:t,seriesModel:a,group:e});return}u&&e.removeAll();for(var f=0;f<o;f++){var v=i[f],c=e.childAt(f);v?(v.ignore==null&&(v.ignore=!1),ex(r,c,t,v,a,e)):c.ignore=!0}for(var h=e.childCount()-1;h>=f;h--){var d=e.childAt(h);_q(e,d,a)}}}function _q(r,e,t){e&&vp(e,ia(r).option,t)}function Sq(r){new ga(r.oldChildren,r.newChildren,pM,pM,r).add(gM).update(gM).remove(xq).execute()}function pM(r,e){var t=r&&r.name;return t??uq+e}function gM(r,e){var t=this.context,n=r!=null?t.newChildren[r]:null,a=e!=null?t.oldChildren[e]:null;ex(t.api,a,t.dataIndex,n,t.seriesModel,t.group)}function xq(r){var e=this.context,t=e.oldChildren[r];t&&vp(t,ia(t).option,e.seriesModel)}function eN(r){return r&&(r.pathData||r.d)}function wq(r){return r&&(J(r,"pathData")||J(r,"d"))}function bq(r){r.registerChartView(cq),r.registerSeriesModel(Gj)}var to=me(),yM=ae,Ly=q,rx=(function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(e,t,n,a){var i=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=n,!(!a&&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,n);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var v=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new oe,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),n.getZr().add(s);else{var c=xe(mM,t,v);this.updatePointerEl(s,u,c),this.updateLabelEl(s,u,c,t)}SM(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 n=t.get("animation"),a=e.axis,i=a.type==="category",o=t.get("snap");if(!o&&!i)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(i&&Vt(a).w>s)return!0;if(o){var l=m1(e).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},r.prototype.makeElOption=function(e,t,n,a,i){},r.prototype.createPointerEl=function(e,t,n,a){var i=t.pointer;if(i){var o=to(e).pointerEl=new Xo[i.type](yM(t.pointer));e.add(o)}},r.prototype.createLabelEl=function(e,t,n,a){if(t.label){var i=to(e).labelEl=new Re(yM(t.label));e.add(i),_M(i,a)}},r.prototype.updatePointerEl=function(e,t,n){var a=to(e).pointerEl;a&&t.pointer&&(a.setStyle(t.pointer.style),n(a,{shape:t.pointer.shape}))},r.prototype.updateLabelEl=function(e,t,n,a){var i=to(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),_M(i,a))},r.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,n=this._api.getZr(),a=this._handle,i=t.getModel("handle"),o=t.get("status");if(!i.get("show")||!o||o==="hide"){a&&n.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=Bf(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){ua(u.event)},onmousedown:Ly(this._onHandleDragMove,this,0,0),drift:Ly(this._onHandleDragMove,this),ondragend:Ly(this._onHandleDragEnd,this)}),n.add(a)),SM(a,t,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");U(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,Ml(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},r.prototype._moveHandleToValue=function(e,t){mM(this._axisPointerModel,!t&&this._moveAnimation,this._handle,Py(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var a=this.updateHandleTransform(Py(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr(Py(a)),to(n).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.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(),n=this._group,a=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),a&&t.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),nf(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},r})();function mM(r,e,t,n){tN(to(t).lastProp,n)||(to(t).lastProp=n,e?Oe(t,n,r):(t.stopAnimation(),t.attr(n)))}function tN(r,e){if(fe(r)&&fe(e)){var t=!0;return M(e,function(n,a){t=t&&tN(r[a],n)}),!!t}else return r===e}function _M(r,e){r[e.get(["label","show"])?"show":"hide"]()}function Py(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function SM(r,e,t){var n=e.get("z"),a=e.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(n!=null&&(i.z=n),a!=null&&(i.zlevel=a),i.silent=t)})}function nx(r){var e=r.get("type"),t=r.getModel(e+"Style"),n;return e==="line"?(n=t.getLineStyle(),n.fill=null):e==="shadow"&&(n=t.getAreaStyle(),n.stroke=null),n}function rN(r,e,t,n,a){var i=t.get("value"),o=nN(i,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=Vf(s.get("padding")||0),u=s.getFont(),f=wd(o,u),v=a.position,c=f.width+l[1]+l[3],h=f.height+l[0]+l[2],d=a.align;d==="right"&&(v[0]-=c),d==="center"&&(v[0]-=c/2);var p=a.verticalAlign;p==="bottom"&&(v[1]-=h),p==="middle"&&(v[1]-=h/2),Cq(v,c,h,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=e.get(["axisLine","lineStyle","color"])),r.label={x:v[0],y:v[1],style:Ze(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function Cq(r,e,t,n){var a=n.getWidth(),i=n.getHeight();r[0]=Math.min(r[0]+e,a)-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 nN(r,e,t,n,a){r=e.scale.parse(r);var i=e.scale.getLabel({value:r},{precision:a.precision}),o=a.formatter;if(o){var s={value:Ih(e,{value:r}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};M(n,function(l){var u=t.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,v=u&&u.getDataParams(f);v&&s.seriesData.push(v)}),Z(o)?i=o.replace("{value}",i):ie(o)&&(i=o(s))}return i}function ax(r,e,t){var n=nt();return hi(n,n,t.rotation),kn(n,n,t.position),Qr([r.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],n)}function aN(r,e,t,n,a,i){var o=ar.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=a.get(["label","margin"]),rN(e,n,a,i,{position:ax(n.axis,r,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function ix(r,e,t){return t=t||0,{x1:r[t],y1:r[1-t],x2:e[t],y2:e[1-t]}}function iN(r,e,t){return t=t||0,{x:r[t],y:r[1-t],width:e[t],height:e[1-t]}}function xM(r,e,t,n,a,i){return{cx:r,cy:e,r0:t,r:n,startAngle:a,endAngle:i,clockwise:!0}}function ox(r,e,t){return Vt(r,{fromStat:{sers:$(e,function(n){return t.getSeriesByIndex(n.seriesIndex)})},min:1}).w}function sx(r,e,t){return[we(He(e[0],e[1]),r-t/2),He(r+t/2,we(e[0],e[1]))]}var Tq=(function(r){B(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,n,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),f=s.getGlobalExtent(),v=wM(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var h=nx(i),d=Aq[u](s,c,f,v,i.get("seriesDataIndices"),i.ecModel);d.style=h,t.graphicKey=d.type,t.pointer=d}var p=Vh(l.getRect(),a);aN(n,t,p,a,i,o)},e.prototype.getHandleTransform=function(t,n,a){var i=Vh(n.axis.grid.getRect(),n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=ax(n.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,n,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=wM(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,v=[t.x,t.y];v[f]+=n[f],v[f]=He(l[1],v[f]),v[f]=we(l[0],v[f]);var c=(u[1]+u[0])/2,h=[c,c];h[f]=v[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:v[0],y:v[1],rotation:t.rotation,cursorPoint:h,tooltipOption:d[f]}},e})(rx);function wM(r,e){var t={};return t[e.dim+"AxisIndex"]=e.index,r.getCartesian(t)}var Aq={line:function(r,e,t,n){var a=ix([e,n[0]],[e,n[1]],bM(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,e,t,n,a,i){var o=ox(r,a,i),s=n[1]-n[0],l=sx(e,t,o),u=l[0],f=l[1];return{type:"Rect",shape:iN([u,n[0]],[f-u,s],bM(r))}}};function bM(r){return r.dim==="x"?0:1}var Mq=(function(r){B(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:N.color.border,width:1,type:"dashed"},shadowStyle:{color:N.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:N.color.neutral00,padding:[5,7,5,7],backgroundColor:N.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:N.color.accent40,throttle:40}},e})(Me),ta=me(),Dq=M;function oN(r,e,t){if(!Le.node){var n=e.getZr();ta(n).records||(ta(n).records={}),Iq(n,e);var a=ta(n).records[r]||(ta(n).records[r]={});a.handler=t}}function Iq(r,e){if(ta(r).initialized)return;ta(r).initialized=!0,t("click",xe(Ry,"click")),t("mousemove",xe(Ry,"mousemove")),t("mousewheel",xe(Ry,"mousewheel")),t("globalout",Pq);function t(n,a){r.on(n,function(i){var o=Rq(e);Dq(ta(r).records,function(s){s&&a(s,i,o.dispatchAction)}),Lq(o.pendings,e)})}}function Lq(r,e){var t=r.showTip.length,n=r.hideTip.length,a;t?a=r.showTip[t-1]:n&&(a=r.hideTip[n-1]),a&&(a.dispatchAction=null,e.dispatchAction(a))}function Pq(r,e,t){r.handler("leave",null,t)}function Ry(r,e,t,n){e.handler(r,t,n)}function Rq(r){var e={showTip:[],hideTip:[]},t=function(n){var a=e[n.type];a?a.push(n):(n.dispatchAction=t,r.dispatchAction(n))};return{dispatchAction:t,pendings:e}}function d_(r,e){if(!Le.node){var t=e.getZr(),n=(ta(t).records||{})[r];n&&(ta(t).records[r]=null)}}var Eq=(function(r){B(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,n,a){var i=n.getComponent("tooltip"),o=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click|mousewheel";oN("axisPointer",a,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,n){d_("axisPointer",n)},e.prototype.dispose=function(t,n){d_("axisPointer",n)},e.type="axisPointer",e})(Qe);function sN(r,e){var t=[],n=r.seriesIndex,a;if(n==null||!(a=e.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),o=xo(i,r);if(o==null||o<0||U(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)t=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),v=f.dim,c=u.dim,h=v==="x"||v==="radius"?1:0,d=i.mapDimension(c),p=[];p[h]=i.get(d,o),p[1-h]=i.get(i.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(p)||[]}else t=l.dataToPoint(i.getValues($(l.dimensions,function(y){return i.mapDimension(y)}),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 CM=me();function kq(r,e,t){var n=r.currTrigger,a=[r.x,r.y],i=r,o=r.dispatchAction||q(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Xc(a)&&(a=sN({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var l=Xc(a),u=i.axesInfo,f=s.axesInfo,v=n==="leave"||Xc(a),c={},h={},d={list:[],map:{}},p={showPointer:xe(Nq,h),showTooltip:xe(Bq,d)};M(s.coordSysMap,function(y,m){var _=l||y.containPoint(a);M(s.coordSysAxesInfo[m],function(S,x){var w=S.axis,b=Gq(u,S);if(!v&&_&&(!u||b)){var T=b&&b.value;T==null&&!l&&(T=w.pointToData(a)),T!=null&&TM(S,T,p,!1,c)}})});var g={};return M(f,function(y,m){var _=y.linkGroup;_&&!h[m]&&M(_.axesInfo,function(S,x){var w=h[x];if(S!==y&&w){var b=w.value;_.mapper&&(b=y.axis.scale.parse(_.mapper(b,AM(S),AM(y)))),g[y.key]=b}})}),M(g,function(y,m){TM(f[m],y,p,!0,c)}),Vq(h,f,c),zq(d,a,r,o),Fq(f,o,t),c}}function TM(r,e,t,n,a){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(e))){if(!r.involveSeries){t.showPointer(r,e);return}var o=Oq(e,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&G(a,s[0]),!n&&r.snap&&i.containData(l)&&l!=null&&(e=l),t.showPointer(r,e,s),t.showTooltip(r,o,l)}}function Oq(r,e){var t=e.axis,n=t.dim,a=r,i=[],o=Number.MAX_VALUE,s=-1;return M(e.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),v,c;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(f,r,t);c=h.dataIndices,v=h.nestestValue}else{if(c=l.indicesOfNearest(n,f[0],r,t.type==="category"?.5:null),!c.length)return;v=l.getData().get(f[0],c[0])}if(Hr(v)){var d=r-v,p=Math.abs(d);p<=o&&((p<o||d>=0&&s<0)&&(o=p,s=d,a=v,i.length=0),M(c,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:i,snapToValue:a}}function Nq(r,e,t,n){r[e.key]={value:t,payloadBatch:n}}function Bq(r,e,t,n){var a=t.payloadBatch,i=e.axis,o=i.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!a.length)){var l=e.coordSys.model,u=mf(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function Vq(r,e,t){var n=t.axesInfo=[];M(e,function(a,i){var o=a.axisPointerModel.option,s=r[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function zq(r,e,t,n){if(Xc(e)||!r.list.length){n({type:"hideTip"});return}var a=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:r.list})}function Fq(r,e,t){var n=t.getZr(),a="axisPointerLastHighlights",i=CM(n)[a]||{},o=CM(n)[a]={};M(r,function(f,v){var c=f.axisPointerModel.option;c.status==="show"&&f.triggerEmphasis&&M(c.seriesDataIndices,function(h){o[h.seriesIndex+"|"+h.dataIndex]=h})});var s=[],l=[];function u(f){return{seriesIndex:f.seriesIndex,dataIndex:f.dataIndex}}M(i,function(f,v){!o[v]&&l.push(u(f))}),M(o,function(f,v){!i[v]&&s.push(u(f))}),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 Gq(r,e){for(var t=0;t<(r||[]).length;t++){var n=r[t];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function AM(r){var e=r.axis.model,t={},n=t.axisDim=r.axis.dim;return t.axisIndex=t[n+"AxisIndex"]=e.componentIndex,t.axisName=t[n+"AxisName"]=e.name,t.axisId=t[n+"AxisId"]=e.id,t}function Xc(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Qf(r){es.registerAxisPointerClass("CartesianAxisPointer",Tq),r.registerComponentModel(Mq),r.registerComponentView(Eq),r.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!U(t)&&(e.axisPointer.link=[t])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=u6(e,t)}}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},kq)}function Hq(r){Se(_k),Se(Qf)}var Uq=(function(r){B(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,n,a,i,o){var s=a.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=s.getExtent(),f=l.getOtherAxis(s).getExtent(),v=s.dataToCoord(n),c=i.get("type");if(c&&c!=="none"){var h=nx(i),d=Wq[c](s,l,v,u,f,i.get("seriesDataIndices"),i.ecModel);d.style=h,t.graphicKey=d.type,t.pointer=d}var p=i.get(["label","margin"]),g=$q(n,a,i,l,p);rN(t,a,i,o,g)},e})(rx);function $q(r,e,t,n,a){var i=e.axis,o=i.dataToCoord(r),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=n.getRadiusAxis().getExtent(),u,f,v;if(i.dim==="radius"){var c=nt();hi(c,c,s),kn(c,c,[n.cx,n.cy]),u=Qr([o,-a],c);var h=e.getModel("axisLabel").get("rotate")||0,d=ar.innerTextLayout(s,h*Math.PI/180,-1);f=d.textAlign,v=d.textVerticalAlign}else{var p=l[1];u=n.coordToPoint([p+a,o]);var g=n.cx,y=n.cy;f=Math.abs(u[0]-g)/p<.3?"center":u[0]>g?"left":"right",v=Math.abs(u[1]-y)/p<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:f,verticalAlign:v}}var Wq={line:function(r,e,t,n,a){return r.dim==="angle"?{type:"Line",shape:ix(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,n,a,i,o){var s=Math.PI/180,l=ox(r,i,o),u;if(r.dim==="angle")u=xM(e.cx,e.cy,a[0],a[1],(-t-l/2)*s,(-t+l/2)*s);else{var f=sx(t,n,l),v=f[0],c=f[1];u=xM(e.cx,e.cy,v,c,0,Math.PI*2)}return{type:"Sector",shape:u}}},Pn="polar",MM=Pn,Yq=(function(r){B(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 n,a=this.ecModel;return a.eachComponent(t,function(i){i.getCoordSysModel()===this&&(n=i)},this),n},e.type=Pn,e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e})(Me),lx=(function(r){B(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",at).models[0]},e.type="polarAxis",e})(Me);xt(lx,Xf);var Xq=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e})(lx),Zq=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e})(lx),ux=(function(r){B(e,r);function e(t,n){return r.call(this,"radius",t,n)||this}return e.prototype.pointToData=function(t,n){return this.polar.pointToData(t,n)[this.dim==="radius"?0:1]},e})(ln);ux.prototype.dataToRadius=ln.prototype.dataToCoord;ux.prototype.radiusToData=ln.prototype.coordToData;var jq=me(),fx=(function(r){B(e,r);function e(t,n){return r.call(this,"angle",t,n||[0,360])||this}return e.prototype.pointToData=function(t,n){return this.polar.pointToData(t,n)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,n=t.getLabelModel(),a=t.scale,i=a.getExtent(),o=a.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),f=wd(s==null?"":s+"",n.getFont(),"center","top"),v=Math.max(f.height,7),c=v/u;isNaN(c)&&(c=1/0);var h=Math.max(0,Math.floor(c)),d=jq(t.model),p=d.lastAutoInterval,g=d.lastTickCount;return p!=null&&g!=null&&Math.abs(p-h)<=1&&Math.abs(g-o)<=1&&p>h?h=p:(d.lastTickCount=o,d.lastAutoInterval=h),h},e})(ln);fx.prototype.dataToAngle=ln.prototype.dataToCoord;fx.prototype.angleToData=ln.prototype.coordToData;var lN=["radius","angle"],qq=(function(){function r(e){this.dimensions=lN,this.type=Pn,this.cx=0,this.cy=0,this._radiusAxis=new ux,this._angleAxis=new fx,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=[],n=this._angleAxis,a=this._radiusAxis;return n.scale.type===e&&t.push(n),a.scale.type===e&&t.push(a),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,n){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)],n)},r.prototype.pointToData=function(e,t,n){n=n||[];var a=this.pointToCoord(e);return n[0]=this._radiusAxis.radiusToData(a[0],t),n[1]=this._angleAxis.angleToData(a[1],t),n},r.prototype.pointToCoord=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,a=this.getAngleAxis(),i=a.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);a.inverse?o=s-360:s=o+360;var l=Math.sqrt(t*t+n*n);t/=l,n/=l;for(var u=Math.atan2(-n,t)/Math.PI*180,f=u<o?1:-1;u<o||u>s;)u+=f*360;return[l,u]},r.prototype.coordToPoint=function(e,t){t=t||[];var n=e[0],a=e[1]/180*Math.PI;return t[0]=Math.cos(a)*n+this.cx,t[1]=-Math.sin(a)*n+this.cy,t},r.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),n=t.getExtent().slice();n[0]>n[1]&&n.reverse();var a=e.getExtent(),i=Math.PI/180,o=1e-4;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-a[0]*i,endAngle:-a[1]*i,clockwise:e.inverse,contain:function(s,l){var u=s-this.cx,f=l-this.cy,v=u*u+f*f,c=this.r,h=this.r0;return c!==h&&v-o<=c*c&&v+o>=h*h},x:this.cx-n[1],y:this.cy-n[1],width:n[1]*2,height:n[1]*2}},r.prototype.convertToPixel=function(e,t,n){var a=DM(t);return a===this?this.dataToPoint(n):null},r.prototype.convertFromPixel=function(e,t,n){var a=DM(t);return a===this?this.pointToData(n):null},r})();function DM(r){var e=r.seriesModel,t=r.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function Kq(r,e,t){var n=e.get("center"),a=bt(e,t).refContainer;r.cx=j(n[0],a.width)+a.x,r.cy=j(n[1],a.height)+a.y;var i=r.getRadiusAxis(),o=Math.min(a.width,a.height)/2,s=e.get("radius");s==null?s=[0,"100%"]:U(s)||(s=[0,s]);var l=[j(s[0],o),j(s[1],o)];i.inverse?i.setExtent(l[1],l[0]):i.setExtent(l[0],l[1])}function Jq(r,e){var t=this,n=t.getAngleAxis(),a=t.getRadiusAxis();if(Po(n,ol),Po(a,ol),sl(n),sl(a),n.type==="category"&&!n.onBand){var i=n.getExtent(),o=360/n.scale.count();n.inverse?i[1]+=o:i[1]-=o,n.setExtent(i[0],i[1])}}function Qq(r){return r.mainType==="angleAxis"}function IM(r,e){var t;if(r.type=jd(e),r.scale=$f(e,r.type,!1),r.onBand=Yf(r.scale,e),r.inverse=e.get("inverse"),Qq(e)){r.inverse=r.inverse!==e.get("clockwise");var n=e.get("startAngle"),a=(t=e.get("endAngle"))!==null&&t!==void 0?t:n+(r.inverse?-360:360);r.setExtent(n,a)}e.axis=r,r.model=e}var eK={dimensions:lN,create:function(r,e){var t=[];return r.eachComponent(MM,function(n,a){var i=new qq(a+"");i.update=Jq;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");IM(o,l),IM(s,u),Kq(i,n,e),t.push(i),n.coordinateSystem=i,i.model=n}),r.eachSeries(function(n){if(n.get("coordinateSystem")===Pn){var a=n.getReferringComponents(MM,at).models[0],i=n.coordinateSystem=a.coordinateSystem;i&&(Lo(i.getRadiusAxis(),n,Pn),Lo(i.getAngleAxis(),n,Pn))}}),t}},tK=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function nc(r,e,t){e[1]>e[0]&&(e=e.slice().reverse());var n=r.coordToPoint([e[0],t]),a=r.coordToPoint([e[1],t]);return{x1:n[0],y1:n[1],x2:a[0],y2:a[1]}}function ac(r){var e=r.getRadiusAxis();return e.inverse?0:1}function LM(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 rK=(function(r){B(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,n){if(this.group.removeAll(),!!t.get("show")){var a=t.axis,i=a.polar,o=i.getRadiusAxis().getExtent(),s=a.getTicksCoords({breakTicks:"none"}),l=a.getMinorTicksCoords(),u=[];M(a.getViewLabels(),function(f){if(!f.tick.offInterval){f=ae(f);var v=a.scale;f.coord=a.dataToCoord(Ll(v,f.tick)),u.push(f)}}),LM(u),LM(s),M(tK,function(f){t.get([f,"show"])&&(!a.scale.isBlank()||f==="axisLine")&&nK[f](this.group,t,i,s,l,o,u)},this)}},e.type="angleAxis",e})(es),nK={axisLine:function(r,e,t,n,a,i){var o=e.getModel(["axisLine","lineStyle"]),s=t.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),f=ac(t),v=f?0:1,c,h=Math.abs(u[1]-u[0])===360?"Circle":"Arc";i[v]===0?c=new Xo[h]({shape:{cx:t.cx,cy:t.cy,r:i[f],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):c=new kf({shape:{cx:t.cx,cy:t.cy,r:i[f],r0:i[v]},style:o.getLineStyle(),z2:1,silent:!0}),c.style.fill=null,r.add(c)},axisTick:function(r,e,t,n,a,i){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[ac(t)],u=$(n,function(f){return new dt({shape:nc(t,[l,l+s],f.coord)})});r.add(Or(u,{style:le(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,e,t,n,a,i){if(a.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[ac(t)],f=[],v=0;v<a.length;v++)for(var c=0;c<a[v].length;c++)f.push(new dt({shape:nc(t,[u,u+l],a[v][c].coord)}));r.add(Or(f,{style:le(s.getModel("lineStyle").getLineStyle(),le(o.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(r,e,t,n,a,i,o){var s=e.getCategories(!0),l=e.getModel("axisLabel"),u=l.get("margin"),f=e.get("triggerEvent");M(o,function(v,c){var h=l,d=v.tick.value,p=i[ac(t)],g=t.coordToPoint([p+u,v.coord]),y=t.cx,m=t.cy,_=Math.abs(g[0]-y)/p<.3?"center":g[0]>y?"left":"right",S=Math.abs(g[1]-m)/p<.3?"middle":g[1]>m?"top":"bottom";if(s&&s[d]){var x=s[d];fe(x)&&x.textStyle&&(h=new Ie(x.textStyle,l,l.ecModel))}var w=new Re({silent:ar.isLabelSilent(e),style:Ze(h,{x:g[0],y:g[1],fill:h.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:v.formattedLabel,align:_,verticalAlign:S})});if(r.add(w),xa({el:w,componentModel:e,itemName:v.formattedLabel,formatterParamsExtra:{isTruncated:function(){return w.isTruncated},value:v.rawLabel,tickIndex:c}}),f){var b=ar.makeAxisEventDataBase(e);b.targetType="axisLabel",b.value=v.rawLabel,ve(w).eventData=b}},this)},splitLine:function(r,e,t,n,a,i){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],v=0;v<n.length;v++){var c=u++%l.length;f[c]=f[c]||[],f[c].push(new dt({shape:nc(t,i,n[v].coord)}))}for(var v=0;v<f.length;v++)r.add(Or(f[v],{style:le({stroke:l[v%l.length]},s.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(r,e,t,n,a,i){if(a.length){for(var o=e.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<a.length;u++)for(var f=0;f<a[u].length;f++)l.push(new dt({shape:nc(t,i,a[u][f].coord)}));r.add(Or(l,{style:s.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(r,e,t,n,a,i){if(n.length){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],v=Math.PI/180,c=-n[0].coord*v,h=Math.min(i[0],i[1]),d=Math.max(i[0],i[1]),p=e.get("clockwise"),g=1,y=n.length;g<=y;g++){var m=g===y?n[0].coord:n[g].coord,_=u++%l.length;f[_]=f[_]||[],f[_].push(new Xt({shape:{cx:t.cx,cy:t.cy,r0:h,r:d,startAngle:c,endAngle:-m*v,clockwise:p},silent:!0})),c=-m*v}for(var g=0;g<f.length;g++)r.add(Or(f[g],{style:le({fill:l[g%l.length]},s.getAreaStyle()),silent:!0}))}}},aK=["splitLine","splitArea","minorSplitLine"],iK=(function(r){B(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,n,a){if(this.group.removeAll(),!!t.get("show")){var i=this._axisGroup,o=this._axisGroup=new oe;this.group.add(o);var s=t.axis,l=s.polar,u=l.getAngleAxis(),f=s.getTicksCoords(),v=s.getMinorTicksCoords(),c=u.getExtent()[0],h=s.getExtent(),d=sK(l,t,c),p=new ar(t,a,d);p.build(),o.add(p.group),Nf(i,o,t),M(aK,function(g){t.get([g,"show"])&&!s.scale.isBlank()&&oK[g](this.group,t,l,c,h,f,v)},this)}},e.type="radiusAxis",e})(es),oK={splitLine:function(r,e,t,n,a,i){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0,f=t.getAngleAxis(),v=Math.PI/180,c=f.getExtent(),h=Math.abs(c[1]-c[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 Xo[h]({shape:{cx:t.cx,cy:t.cy,r:Math.max(i[p].coord,0),startAngle:-c[0]*v,endAngle:-c[1]*v,clockwise:f.inverse}}))}for(var p=0;p<d.length;p++)r.add(Or(d[p],{style:le({stroke:l[p%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(r,e,t,n,a,i,o){if(o.length){for(var s=e.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],f=0;f<o.length;f++)for(var v=0;v<o[f].length;v++)u.push(new Sa({shape:{cx:t.cx,cy:t.cy,r:o[f][v].coord}}));r.add(Or(u,{style:le({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(r,e,t,n,a,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 f=[],v=i[0].coord,c=1;c<i.length;c++){var h=u++%l.length;f[h]=f[h]||[],f[h].push(new Xt({shape:{cx:t.cx,cy:t.cy,r0:v,r:i[c].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),v=i[c].coord}for(var c=0;c<f.length;c++)r.add(Or(f[c],{style:le({fill:l[c%l.length]},s.getAreaStyle()),silent:!0}))}}};function sK(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}}var lK=Sl();function uN(r){return r.get("stack")||"__ec_stack_"+r.seriesIndex}var uK=wt(In,fK);function fK(r){var e=Qo(In,Pn);t1(r,e,function(t){var n=cK(t,In),a={};Io(t,e,function(i){vK(t,i,n,a)})})}function vK(r,e,t,n){var a=e.getData(),i=uN(e),o=t[i],s=o.offset,l=o.width,u=e.coordinateSystem,f=u.getOtherAxis(r),v=u.cx,c=u.cy,h=e.get("barMinHeight")||0,d=e.get("barMinAngle")||0;n[i]=n[i]||[];for(var p=a.mapDimension(f.dim),g=a.mapDimension(r.dim),y=ii(a,p),m=r.dim!=="radius"||!e.get("roundCap",!0),_=f.dataToCoord(qE(f)),S=0,x=a.count();S<x;S++){var w=a.get(p,S),b=a.get(g,S),T=w>=0?"p":"n",C=_;y&&(n[i][b]||(n[i][b]={p:_,n:_}),C=n[i][b][T]);var A=void 0,D=void 0,L=void 0,I=void 0;if(f.dim==="radius"){var P=f.dataToCoord(w)-_,R=r.dataToCoord(b);it(P)<h&&(P=(P<0?-1:1)*h),A=C,D=C+P,L=R-s,I=L-l,y&&(n[i][b][T]=D)}else{var E=f.dataToCoord(w,m)-_,O=r.dataToCoord(b);it(E)<d&&(E=(E<0?-1:1)*d),A=O+s,D=A+l,L=C,I=C+E,y&&(n[i][b][T]=I)}a.setItemLayout(S,{cx:v,cy:c,r0:A,r:D,startAngle:-L*oh/180,endAngle:-I*oh/180,clockwise:L>=I})}}function cK(r,e){var t=Qo(e,Pn),n=Vt(r,{fromStat:{key:t},min:1}).w,a=n,i=0,o="20%",s="30%",l={};Io(r,t,function(g){var y=uN(g);l[y]||i++,l[y]=l[y]||{width:0,maxWidth:0};var m=j(g.get("barWidth"),n),_=j(g.get("barMaxWidth"),n),S=g.get("barGap"),x=g.get("barCategoryGap");m&&!l[y].width&&(m=He(a,m),l[y].width=m,a-=m),_&&(l[y].maxWidth=_),S!=null&&(s=S),x!=null&&(o=x)});var u={},f=j(o,n),v=j(s,1),c=(a-f)/(i+(i-1)*v);c=we(c,0),M(l,function(g,y){var m=g.maxWidth;m&&m<c&&(m=He(m,a),g.width&&(m=He(m,g.width)),a-=m,g.width=m,i--)}),c=(a-f)/(i+(i-1)*v),c=we(c,0);var h=0,d;M(l,function(g,y){g.width||(g.width=c),d=g,h+=g.width*(1+v)}),d&&(h-=d.width*v);var p=-h/2;return M(l,function(g,y){u[y]=u[y]||{offset:p,width:g.width},p+=g.width*(1+v)}),u}function hK(r,e){lK(r,function(){var t=Qo(e,Pn);jE(r,t,e,Pn),Kd(t,tp(t))})}var dK={startAngle:90,clockwise:!0,splitNumber:12,containShape:!1,axisLabel:{rotate:0}},pK={splitNumber:5},gK=(function(r){B(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 yK(r){Se(Qf),es.registerAxisPointerClass("PolarAxisPointer",Uq),r.registerCoordinateSystem("polar",eK),r.registerComponentModel(Yq),r.registerComponentView(gK),ul(r,"angle",Xq,dK),ul(r,"radius",Zq,pK),r.registerComponentView(rK),r.registerComponentView(iK),r.registerLayout(uK),hK(r,In)}function p_(r,e){e=e||{};var t=r.coordinateSystem,n=r.axis,a={},i=n.position,o=n.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]}};a.position=[o==="vertical"?u.vertical[i]:l[0],o==="horizontal"?u.horizontal[i]:l[3]];var f={horizontal:0,vertical:1};a.rotation=Math.PI/2*f[o];var v={top:-1,bottom:1,right:1,left:-1};a.labelDirection=a.tickDirection=a.nameDirection=v[i],r.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),tr(e.labelInside,r.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var c=r.get(["axisLabel","rotate"]);return a.labelRotate=i==="top"?-c:c,a.z2=1,a}var mK=["splitArea","splitLine","breakArea"],_K=(function(r){B(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,n,a,i){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new oe;var l=p_(t),u=new ar(t,a,l);u.build(),o.add(this._axisGroup),o.add(u.group),M(mK,function(f){t.get([f,"show"])&&SK[f](this,this.group,this._axisGroup,t,a)},this),Nf(s,this._axisGroup,t),r.prototype.render.call(this,t,n,a,i)},e.prototype.remove=function(){gk(this)},e.type="singleAxis",e})(es),SK={splitLine:function(r,e,t,n,a){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color");l=l instanceof Array?l:[l];for(var u=s.get("width"),f=n.coordinateSystem.getRect(),v=i.isHorizontal(),c=[],h=0,d=i.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),p=[],g=[],y=0;y<d.length;++y){var m=i.toGlobalCoord(d[y].coord);v?(p[0]=m,p[1]=f.y,g[0]=m,g[1]=f.y+f.height):(p[0]=f.x,p[1]=m,g[0]=f.x+f.width,g[1]=m);var _=new dt({shape:{x1:p[0],y1:p[1],x2:g[0],y2:g[1]},silent:!0});tl(_.shape,u);var S=h++%l.length;c[S]=c[S]||[],c[S].push(_)}for(var x=s.getLineStyle(["color"]),y=0;y<c.length;++y)e.add(Or(c[y],{style:le({stroke:l[y%l.length]},x),silent:!0}))}},splitArea:function(r,e,t,n,a){pk(r,t,n,n)},breakArea:function(r,e,t,n,a){var i=Kf(),o=n.axis.scale;i&&o.type!=="ordinal"&&i.rectCoordBuildBreakAxis(e,r,n,n.coordinateSystem.getRect(),a)}},xK=(function(r){B(e,r);function e(t,n,a,i,o){var s=r.call(this,t,n,a)||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,n){return this.coordinateSystem.pointToData(t)[0]},e})(ln),fN=["single"],wK=(function(){function r(e,t,n){this.type=rp,this.dimension="single",this.dimensions=fN,this.axisPointerEnabled=!0,this.model=e,this._init(e,t,n)}return r.prototype._init=function(e,t,n){var a=this.dimension,i=jd(e),o=new xK(a,$f(e,i,!0),[0,0],i,e.get("position"));o.onBand=Yf(o.scale,e),o.inverse=e.get("inverse"),o.orient=e.get("orient"),e.axis=o,o.model=e,o.coordinateSystem=this,this._axis=o},r.prototype.update=function(e,t){var n=this._axis;Po(n,ol),sl(n)},r.prototype.resize=function(e,t){var n=bt(e,t).refContainer;this._rect=tt(e.getBoxLayoutParams(),n),this._adjustAxis()},r.prototype.getRect=function(){return this._rect},r.prototype._adjustAxis=function(){var e=this._rect,t=this._axis,n=t.isHorizontal(),a=n?[0,e.width]:[0,e.height],i=t.inverse?1:0;t.setExtent(a[i],a[1-i]),this._updateAxisTransform(t,n?e.x:e.y)},r.prototype._updateAxisTransform=function(e,t){var n=e.getExtent(),a=n[0]+n[1],i=e.isHorizontal();e.toGlobalCoord=i?function(o){return o+t}:function(o){return a-o+t},e.toLocalCoord=i?function(o){return o-t}:function(o){return a-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(),n=this.getAxis(),a=n.orient;return a==="horizontal"?n.contain(n.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:n.contain(n.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},r.prototype.pointToData=function(e,t,n){n=n||[];var a=this.getAxis();return n[0]=a.coordToData(a.toLocalCoord(e[a.orient==="horizontal"?0:1])),n},r.prototype.dataToPoint=function(e,t,n){var a=this.getAxis(),i=this.getRect();n=n||[];var o=a.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),n[o]=a.toGlobalCoord(a.dataToCoord(+e)),n[1-o]=o===0?i.y+i.height/2:i.x+i.width/2,n},r.prototype.convertToPixel=function(e,t,n){var a=PM(t);return a===this?this.dataToPoint(n):null},r.prototype.convertFromPixel=function(e,t,n){var a=PM(t);return a===this?this.pointToData(n):null},r})();function PM(r){var e=r.seriesModel,t=r.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function bK(r,e){var t=[];return r.eachComponent(j0,function(n,a){var i=new wK(n,r,e);i.name="single_"+a,i.resize(n,e),n.coordinateSystem=i,t.push(i)}),r.eachSeries(function(n){if(n.get("coordinateSystem")===S6){var a=n.getReferringComponents(j0,at).models[0],i=n.coordinateSystem=a&&a.coordinateSystem;i&&Lo(i.getAxis(),n,rp)}}),t}var CK={create:bK,dimensions:fN},RM=["x","y"],TK=["width","height"],AK=(function(r){B(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,n,a,i,o){var s=a.axis,l=s.coordinateSystem,u=rd(s),f=ic(l,u),v=ic(l,1-u),c=l.dataToPoint(n)[0],h=i.get("type");if(h&&h!=="none"){var d=nx(i),p=MK[h](s,c,f,v,i.get("seriesDataIndices"),i.ecModel);p.style=d,t.graphicKey=p.type,t.pointer=p}var g=p_(a);aN(n,t,g,a,i,o)},e.prototype.getHandleTransform=function(t,n,a){var i=p_(n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=ax(n.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,n,a,i){var o=a.axis,s=o.coordinateSystem,l=rd(o),u=ic(s,l),f=[t.x,t.y];f[l]+=n[l],f[l]=Math.min(u[1],f[l]),f[l]=Math.max(u[0],f[l]);var v=ic(s,1-l),c=(v[1]+v[0])/2,h=[c,c];return h[l]=f[l],{x:f[0],y:f[1],rotation:t.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},e})(rx),MK={line:function(r,e,t,n){var a=ix([e,n[0]],[e,n[1]],rd(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,e,t,n,a,i){var o=ox(r,a,i),s=n[1]-n[0],l=sx(e,t,o),u=l[0],f=l[1];return{type:"Rect",shape:iN([u,n[0]],[f-u,s],rd(r))}}};function rd(r){return r.isHorizontal()?0:1}function ic(r,e){var t=r.getRect();return[t[RM[e]],t[RM[e]]+t[TK[e]]]}var DK=(function(r){B(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 IK(r){Se(Qf),es.registerAxisPointerClass("SingleAxisPointer",AK),r.registerComponentView(DK),r.registerComponentView(_K),r.registerComponentModel($c),ul(r,"single",$c,$c.defaultOption),r.registerCoordinateSystem("single",CK)}var LK=(function(r){B(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,n,a){var i=jo(t);r.prototype.init.apply(this,arguments),EM(t,i)},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),EM(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.layoutMode="box",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:N.color.axisLine,width:1,type:"solid"}},itemStyle:{color:N.color.neutral00,borderWidth:1,borderColor:N.color.neutral10},dayLabel:{show:!0,firstDay:0,position:"start",margin:N.size.s,color:N.color.secondary},monthLabel:{show:!0,position:"start",margin:N.size.s,align:"center",formatter:null,color:N.color.secondary},yearLabel:{show:!0,position:null,margin:N.size.xl,formatter:null,color:N.color.quaternary,fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e})(Me);function EM(r,e){var t=r.cellSize,n;U(t)?n=t:n=r.cellSize=[t,t],n.length===1&&(n[1]=n[0]);var a=$([0,1],function(i){return YG(e,i)&&(n[i]="auto"),n[i]!=null&&n[i]!=="auto"});zn(r,e,{type:"box",ignoreSize:a})}var PK=(function(r){B(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,n,a){var i=this.group;i.removeAll();var o=t.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=n.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,n,a){for(var i=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=n.start.time;u<=n.end.time;u=i.getNextNDay(u,1).time){var f=i.dataToCalendarLayout([u],!1).tl,v=new be({shape:{x:f[0],y:f[1],width:s,height:l},cursor:"default",style:o});a.add(v)}},e.prototype._renderLines=function(t,n,a,i){var o=this,s=t.coordinateSystem,l=t.getModel(["splitLine","lineStyle"]).getLineStyle(),u=t.get(["splitLine","show"]),f=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var v=n.start,c=0;v.time<=n.end.time;c++){d(v.formatedDate),c===0&&(v=s.getDateInfo(n.start.y+"-"+n.start.m));var h=v.date;h.setMonth(h.getMonth()+1),v=s.getDateInfo(h)}d(s.getNextNDay(n.end.time,1).formatedDate);function d(p){o._firstDayOfMonth.push(s.getDateInfo(p)),o._firstDayPoints.push(s.dataToCalendarLayout([p],!1).tl);var g=o._getLinePointsOfOneWeek(t,p,a);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,f,a),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,f,a),l,i)},e.prototype._getEdgesPoints=function(t,n,a){var i=[t[0].slice(),t[t.length-1].slice()],o=a==="horizontal"?0:1;return i[0][o]=i[0][o]-n/2,i[1][o]=i[1][o]+n/2,i},e.prototype._drawSplitline=function(t,n,a){var i=new Bt({z2:20,shape:{points:t},style:n});a.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,n,a){for(var i=t.coordinateSystem,o=i.getDateInfo(n),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),f=i.dataToCalendarLayout([u.time],!1);s[2*u.day]=f.tl,s[2*u.day+1]=f[a==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,n){return Z(t)&&t?K2(t,n):ie(t)?t(n):n.nameMap},e.prototype._yearTextPositionControl=function(t,n,a,i,o){var s=n[0],l=n[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 f=0;return(i==="left"||i==="right")&&(f=Math.PI/2),{rotation:f,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(t,n,a,i){var o=t.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=a!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],f=(u[0][0]+u[1][0])/2,v=(u[0][1]+u[1][1])/2,c=a==="horizontal"?0:1,h={top:[f,u[c][1]],bottom:[f,u[1-c][1]],left:[u[1-c][0],v],right:[u[c][0],v]},d=n.start.y;+n.end.y>+n.start.y&&(d=d+"-"+n.end.y);var p=o.get("formatter"),g={start:n.start.y,end:n.end.y,nameMap:d},y=this._formatterLabel(p,g),m=new Re({z2:30,style:Ze(o,{text:y}),silent:o.get("silent")});m.attr(this._yearTextPositionControl(m,h[l],a,l,s)),i.add(m)}},e.prototype._monthTextPositionControl=function(t,n,a,i,o){var s="left",l="top",u=t[0],f=t[1];return a==="horizontal"?(f=f+o,n&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,n&&(l="middle"),i==="start"&&(s="right")),{x:u,y:f,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,n,a,i){var o=t.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),f=o.get("align"),v=[this._tlpoints,this._blpoints];(!s||Z(s))&&(s&&(n=u0(s)||n),s=n.get(["time","monthAbbr"])||[]);var c=u==="start"?0:1,h=a==="horizontal"?0:1;l=u==="start"?-l:l;for(var d=f==="center",p=o.get("silent"),g=0;g<v[c].length-1;g++){var y=v[c][g].slice(),m=this._firstDayOfMonth[g];if(d){var _=this._firstDayPoints[g];y[h]=(_[h]+v[0][g+1][h])/2}var S=o.get("formatter"),x=s[+m.m-1],w={yyyy:m.y,yy:(m.y+"").slice(2),MM:m.m,M:+m.m,nameMap:x},b=this._formatterLabel(S,w),T=new Re({z2:30,style:G(Ze(o,{text:b}),this._monthTextPositionControl(y,d,a,u,l)),silent:p});i.add(T)}}},e.prototype._weekTextPositionControl=function(t,n,a,i,o){var s="center",l="middle",u=t[0],f=t[1],v=a==="start";return n==="horizontal"?(u=u+i+(v?1:-1)*o[0]/2,s=v?"right":"left"):(f=f+i+(v?1:-1)*o[1]/2,l=v?"bottom":"top"),{x:u,y:f,align:s,verticalAlign:l}},e.prototype._renderWeekText=function(t,n,a,i,o){var s=t.getModel("dayLabel");if(s.get("show")){var l=t.coordinateSystem,u=s.get("position"),f=s.get("nameMap"),v=s.get("margin"),c=l.getFirstDayOfWeek();if(!f||Z(f)){f&&(n=u0(f)||n);var h=n.get(["time","dayOfWeekShort"]);f=h||$(n.get(["time","dayOfWeekAbbr"]),function(w){return w[0]})}var d=l.getNextNDay(a.end.time,7-a.lweek).time,p=[l.getCellWidth(),l.getCellHeight()];v=j(v,Math.min(p[1],p[0])),u==="start"&&(d=l.getNextNDay(a.start.time,-(7+a.fweek)).time,v=-v);for(var g=s.get("silent"),y=0;y<7;y++){var m=l.getNextNDay(d,y),_=l.dataToCalendarLayout([m.time],!1).center,S=y;S=Math.abs((y+c)%7);var x=new Re({z2:30,style:G(Ze(s,{text:f[S]}),this._weekTextPositionControl(_,i,u,v,p)),silent:g});o.add(x)}}},e.type="calendar",e})(Qe),Ey=864e5,RK=(function(){function r(e,t,n){this.type="calendar",this.dimensions=r.dimensions,this.getDimensionsInfo=r.getDimensionsInfo,this._model=e,this._update(t,n)}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=Wo(e);var t=e.getFullYear(),n=e.getMonth()+1,a=n<10?"0"+n:""+n,i=e.getDate(),o=i<10?"0"+i:""+i,s=e.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:t+"",m:a,d:o,day:s,time:e.getTime(),formatedDate:t+"-"+a+"-"+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 n=this._rangeInfo.weeks||1,a=["width","height"],i=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[n,7]:[7,n];M([0,1],function(v){f(i,v)&&(o[a[v]]=i[v]*s[v])});var l={width:t.getWidth(),height:t.getHeight()},u=this._rect=tt(o,l);M([0,1],function(v){f(i,v)||(i[v]=u[a[v]]/s[v])});function f(v,c){return v[c]!=null&&v[c]!=="auto"}this._sw=i[0],this._sh=i[1]},r.prototype.dataToPoint=function(e,t,n){n=n||[],U(e)&&(e=e[0]),t==null&&(t=!0);var a=this.getDateInfo(e),i=this._rangeInfo,o=a.formatedDate;if(t&&!(a.time>=i.start.time&&a.time<i.end.time+Ey))return n[0]=n[1]=NaN,n;var s=a.day,l=this._getRangeInfo([i.start.time,o]).nthWeek;return this._orient==="vertical"?(n[0]=this._rect.x+s*this._sw+this._sw/2,n[1]=this._rect.y+l*this._sh+this._sh/2):(n[0]=this._rect.x+l*this._sw+this._sw/2,n[1]=this._rect.y+s*this._sh+this._sh/2),n},r.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},r.prototype.dataToLayout=function(e,t,n){n=n||{};var a=n.rect=n.rect||{},i=n.contentRect=n.contentRect||{},o=this.dataToPoint(e,t);return a.x=o[0]-this._sw/2,a.y=o[1]-this._sh/2,a.width=this._sw,a.height=this._sh,se.copy(i,a),To(i,this._lineWidth/2,!0,!0),n},r.prototype.dataToCalendarLayout=function(e,t){var n=this.dataToPoint(e,t);return{center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},r.prototype.pointToDate=function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,n=Math.floor((e[1]-this._rect.y)/this._sh)+1,a=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(n,t-1,a):this._getDateByWeeksAndDay(t,n-1,a)},r.prototype.convertToPixel=function(e,t,n){var a=ky(t);return a===this?a.dataToPoint(n):null},r.prototype.convertToLayout=function(e,t,n){var a=ky(t);return a===this?a.dataToLayout(n):null},r.prototype.convertFromPixel=function(e,t,n){var a=ky(t);return a===this?a.pointToData(n):null},r.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},r.prototype._initRangeOption=function(){var e=this._model.get("range"),t;if(U(e)&&e.length===1&&(e=e[0]),U(e))t=e;else{var n=e.toString();if(/^\d{4}$/.test(n)&&(t=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var a=this.getDateInfo(n),i=a.date;i.setMonth(i.getMonth()+1);var o=this.getNextNDay(i,-1);t=[a.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(t=[n,n])}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])],n;t[0].time>t[1].time&&(n=!0,t.reverse());var a=Math.floor(t[1].time/Ey)-Math.floor(t[0].time/Ey)+1,i=new Date(t[0].time),o=i.getDate(),s=t[1].date.getDate();i.setDate(o+a-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;)a-=u,i.setDate(l-u);var f=Math.floor((a+t[0].day+6)/7),v=n?-f+1:f-1;return n&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:a,weeks:f,nthWeek:v,fweek:t[0].day,lweek:t[1].day}},r.prototype._getDateByWeeksAndDay=function(e,t,n){var a=this._getRangeInfo(n);if(e>a.weeks||e===0&&t<a.fweek||e===a.weeks&&t>a.lweek)return null;var i=(e-1)*7-a.fweek+t,o=new Date(a.start.time);return o.setDate(+a.start.d+i),this.getDateInfo(o)},r.create=function(e,t){var n=[];return e.eachComponent("calendar",function(a){var i=new r(a,e,t);n.push(i),a.coordinateSystem=i}),e.eachComponent(function(a,i){Ff({targetModel:i,coordSysType:"calendar",coordSysProvider:nP})}),n},r.dimensions=["time","value"],r})();function ky(r){var e=r.calendarModel,t=r.seriesModel,n=e?e.coordinateSystem:t?t.coordinateSystem:null;return n}function EK(r){r.registerComponentModel(LK),r.registerComponentView(PK),r.registerCoordinateSystem("calendar",RK)}var Qn={level:1,leaf:2,nonLeaf:3},sa={none:0,all:1,body:2,corner:3};function g_(r,e,t){var n=e[de[t]].getCell(r);return!n&&Ee(r)&&r<0&&(n=e[de[1-t]].getUnitLayoutInfo(t,Math.round(r))),n}function vN(r){var e=r||[];return e[0]=e[0]||[],e[1]=e[1]||[],e[0][0]=e[0][1]=e[1][0]=e[1][1]=NaN,e}function cN(r,e,t,n,a){kM(r[0],e,a,t,n,0),kM(r[1],e,a,t,n,1)}function kM(r,e,t,n,a,i){r[0]=1/0,r[1]=-1/0;var o=n[i],s=U(o)?o:[o],l=s.length,u=!!t;if(l>=1?(OM(r,e,s,u,a,i,0),l>1&&OM(r,e,s,u,a,i,l-1)):r[0]=r[1]=NaN,u){var f=-a[de[1-i]].getLocatorCount(i),v=a[de[i]].getLocatorCount(i)-1;t===sa.body?f=we(0,f):t===sa.corner&&(v=He(-1,v)),v<f&&(f=v=NaN),$t(r[0])&&(r[0]=f),$t(r[1])&&(r[1]=v),r[0]=we(He(r[0],v),f),r[1]=we(He(r[1],v),f)}}function OM(r,e,t,n,a,i,o){var s=g_(t[o],a,i);if(!s){r[0]=r[1]=NaN;return}var l=s.id[de[i]],u=l,f=BK(s);f&&(u+=f.span[de[i]]-1),r[0]=He(r[0],l,u),r[1]=we(r[1],l,u)}function oc(r,e){return $t(r[e][0])||$t(r[e][1])}function NM(r,e,t,n){e=e||kK;for(var a=0;a<n;a++)e[a]=!1;for(;;){for(var i=!1,a=0;a<n;a++){var o=t[a];!e[a]&&o.cellMergeOwner&&OK(r,o.locatorRange)&&(e[a]=!0,i=!0)}if(!i)break}}var kK=[];function OK(r,e){return!BM(r[0],e[0])||!BM(r[1],e[1])?!1:(r[0][0]=He(r[0][0],e[0][0]),r[0][1]=we(r[0][1],e[0][1]),r[1][0]=He(r[1][0],e[1][0]),r[1][1]=we(r[1][1],e[1][1]),!0)}function BM(r,e){return r[1]>=e[0]&&r[0]<=e[1]}function VM(r,e){r.id.set(e[0][0],e[1][0]),r.span.set(e[0][1]-r.id.x+1,e[1][1]-r.id.y+1)}function NK(r,e){r[0][0]=e[0][0],r[0][1]=e[0][1],r[1][0]=e[1][0],r[1][1]=e[1][1]}function zM(r,e,t,n){var a=g_(e[n][0],t,n),i=g_(e[n][1],t,n);r[de[n]]=r[lt[n]]=NaN,a&&i&&(r[de[n]]=a.xy,r[lt[n]]=i.xy+i.wh-a.xy)}function su(r,e,t,n){return r[de[e]]=t,r[de[1-e]]=n,r}function BK(r){return r&&(r.type===Qn.leaf||r.type===Qn.nonLeaf)?r:null}function nd(){return{x:NaN,y:NaN,width:NaN,height:NaN}}var FM=(function(){function r(e,t){this._cells=[],this._levels=[],this.dim=e,this.dimIdx=e==="x"?0:1,this._model=t,this._uniqueValueGen=VK(e);var n=t.get("data",!0),a=t.get("length",!0);if(n!=null&&!U(n)&&(n=[]),n)this._initByDimModelData(n);else if(a!=null){n=Array(a);for(var i=0;i<a;i++)n[i]=null;this._initByDimModelData(n)}else this._initBySeriesData()}return r.prototype._initByDimModelData=function(e){var t=this,n=t._cells,a=t._levels,i=[],o=0;t._leavesCount=s(e,0,0),l();return;function s(u,f,v){var c=0;return u&&M(u,function(h,d){var p;Z(h)?p={value:h}:fe(h)?(p=h,h.value!=null&&!Z(h.value)&&(p={value:null})):p={value:null};var g={type:Qn.nonLeaf,ordinal:NaN,level:v,firstLeafLocator:f,id:new ue,span:su(new ue,t.dimIdx,1,1),option:p,xy:NaN,wh:NaN,dim:t,rect:nd()};o++,(i[f]||(i[f]=[])).push(g),a[v]||(a[v]={type:Qn.level,xy:NaN,wh:NaN,option:null,id:new ue,dim:t});var y=s(p.children,f,v+1),m=Math.max(1,y);g.span[de[t.dimIdx]]=m,c+=m,f+=m}),c}function l(){for(var u=[];n.length<o;)for(var f=0;f<i.length;f++){var v=i[f].pop();if(v){v.ordinal=u.length;var c=v.option.value;u.push(c),n.push(v),t._uniqueValueGen.calcDupBase(c)}}t._uniqueValueGen.ensureValueUnique(u,n);var h=t._ordinalMeta=new of({categories:u,needCollect:!1,deduplication:!1});t._scale=new uf({ordinalMeta:h});for(var d=0;d<t._leavesCount;d++){var p=t._cells[d];p.type=Qn.leaf,p.span[de[1-t.dimIdx]]=t._levels.length-p.level}t._initCellsId(),t._initLevelIdOptions()}},r.prototype._initBySeriesData=function(){var e=this;e._leavesCount=0,e._levels=[{type:Qn.level,xy:NaN,wh:NaN,option:null,id:new ue,dim:e}],e._initLevelIdOptions();var t=e._ordinalMeta=new of({needCollect:!0,deduplication:!0,onCollect:function(n,a){var i=e._cells[a]={type:Qn.leaf,ordinal:a,level:0,firstLeafLocator:a,id:new ue,span:su(new ue,e.dimIdx,1,1),option:{value:n+""},xy:NaN,wh:NaN,dim:e,rect:nd()};e._leavesCount++,e._setCellId(i)}});e._scale=new uf({ordinalMeta:t})},r.prototype._setCellId=function(e){var t=this._levels.length,n=this.dimIdx;su(e.id,n,e.firstLeafLocator,e.level-t)},r.prototype._initCellsId=function(){var e=this._levels.length,t=this.dimIdx;M(this._cells,function(n){su(n.id,t,n.firstLeafLocator,n.level-e)})},r.prototype._initLevelIdOptions=function(){var e=this._levels.length,t=this.dimIdx,n=this._model.get("levels",!0);n=U(n)?n:[],M(this._levels,function(a,i){su(a.id,t,0,i-e),a.option=n[i]})},r.prototype.shouldShow=function(){return!!this._model.getShallow("show",!0)},r.prototype.resetLayoutIterator=function(e,t,n,a){if(e=e||new qa,t===this.dimIdx){var i=this._leavesCount,o=n!=null?Math.max(0,n):0;a=a!=null?Math.min(a,i):i,e.reset(this._cells,o,o+a)}else{var i=this._levels.length,o=n!=null?Math.max(0,n+i):0;a=a!=null?Math.min(a,i):i,e.reset(this._levels,o,o+a)}return e},r.prototype.resetCellIterator=function(e){return(e||new qa).reset(this._cells,0)},r.prototype.resetLevelIterator=function(e){return(e||new qa).reset(this._levels,0)},r.prototype.getLayout=function(e,t,n){var a=this.getUnitLayoutInfo(t,n);e[de[t]]=a?a.xy:NaN,e[lt[t]]=a?a.wh:NaN},r.prototype.getUnitLayoutInfo=function(e,t){return e===this.dimIdx?t<this._leavesCount?this._cells[t]:void 0:this._levels[t+this._levels.length]},r.prototype.getCell=function(e){var t=this._scale.parse(e);return $t(t)?void 0:this._cells[t]},r.prototype.getLocatorCount=function(e){return e===this.dimIdx?this._leavesCount:this._levels.length},r.prototype.getOrdinalMeta=function(){return this._ordinalMeta},r})();function VK(r){var e=r.toUpperCase(),t=new RegExp("^"+e+"([0-9]+)$"),n=0;function a(s){var l;s!=null&&(l=s.match(t))&&(n=we(n,+l[1]+1))}function i(){return""+e+n++}function o(s,l){for(var u=K(),f=0;f<s.length;f++){var v=s[f];(v==null||u.get(v)!=null)&&(s[f]=v=i(),l[f].option=le({value:v},l[f].option)),u.set(v,!0)}}return{calcDupBase:a,ensureValueUnique:o}}var GM=(function(){function r(e,t,n){this._model=t,this._dims=n,this._kind=e,this._cellMergeOwnerList=[]}return r.prototype._ensureCellMap=function(){var e=this,t=e._cellMap;return t||(t=e._cellMap=K(),n()),t;function n(){var i=[],o=e._model.getShallow("data");o&&!U(o)&&(o=null),M(o,function(d,p){if(!(!fe(d)||!U(d.coord))){var g=vN([]),y=null;if(cN(g,y,d.coord,e._dims,d.coordClamp?sa[e._kind]:sa.none),!(oc(g,0)||oc(g,1))){var m=d&&d.mergeCells,_={id:new ue,span:new ue,locatorRange:g,option:d,cellMergeOwner:m};VM(_,g),i.push(_)}}});for(var s=[],l=0;l<i.length;l++){var u=i[l];if(u.cellMergeOwner){var f=u.locatorRange;NM(f,s,i,l);for(var v=0;v<l;v++)s[v]&&(i[v].cellMergeOwner=!1);if(f[0][0]!==u.id.x||f[1][0]!==u.id.y){u.cellMergeOwner=!1;var c=G({},u.option);c.coord=null;var h={id:new ue,span:new ue,locatorRange:f,option:c,cellMergeOwner:!0};VM(h,f),i.push(h)}}}M(i,function(d){var p=a(d.id.x,d.id.y);if(d.cellMergeOwner&&(p.cellMergeOwner=!0,p.span=d.span,p.locatorRange=d.locatorRange,p.spanRect=nd(),e._cellMergeOwnerList.push(p)),!(!d.cellMergeOwner&&!d.option))for(var g=0;g<d.span.y;g++)for(var y=0;y<d.span.x;y++){var m=a(d.id.x+y,d.id.y+g);m.option=d.option,d.cellMergeOwner&&(m.inSpanOf=p)}})}function a(i,o){var s=HM(i,o),l=t.get(s);return l||(l=t.set(s,{id:new ue(i,o),option:null,inSpanOf:null,span:null,spanRect:null,locatorRange:null,cellMergeOwner:!1})),l}},r.prototype.getCell=function(e){return this._ensureCellMap().get(HM(e[0],e[1]))},r.prototype.travelExistingCells=function(e){this._ensureCellMap().each(e)},r.prototype.expandRangeByCellMerge=function(e){if(!oc(e,0)&&!oc(e,1)&&e[0][0]===e[0][1]&&e[1][0]===e[1][1]){Oy[0]=e[0][0],Oy[1]=e[1][0];var t=this.getCell(Oy),n=t&&t.inSpanOf;if(n){NK(e,n.locatorRange);return}}var a=this._cellMergeOwnerList;NM(e,null,a,a.length)},r})(),Oy=[];function HM(r,e){return r+"|"+e}var vx={show:!0,color:N.color.secondary,overflow:"break",lineOverflow:"truncate",padding:[2,3,2,3],distance:0};function cx(r){return{color:"none",borderWidth:1,borderColor:r?"none":N.color.borderTint}}var UM={show:!0,label:vx,itemStyle:cx(!1),silent:void 0,dividerLineStyle:{width:1,color:N.color.border}},zK={label:vx,itemStyle:cx(!1),silent:void 0},FK={label:vx,itemStyle:cx(!0),silent:void 0},GK={z:-50,left:"10%",top:"10%",right:"10%",bottom:"10%",x:UM,y:UM,body:zK,corner:FK,backgroundStyle:{color:"none",borderColor:N.color.axisLine,borderWidth:1},triggerEvent:!1},HK=(function(r){B(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._dimModels={x:new $M(this.get("x",!0)||{}),y:new $M(this.get("y",!0)||{})};t.x.option.type=t.y.option.type="category";var n=t.x.dim=new FM("x",t.x),a=t.y.dim=new FM("y",t.y),i={x:n,y:a};this._body=new GM("body",new Ie(this.getShallow("body")),i),this._corner=new GM("corner",new Ie(this.getShallow("corner")),i)},e.prototype.getDimensionModel=function(t){return this._dimModels[t]},e.prototype.getBody=function(){return this._body},e.prototype.getCorner=function(){return this._corner},e.type="matrix",e.layoutMode="box",e.defaultOption=GK,e})(Me),$M=(function(r){B(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getOrdinalMeta=function(){return this.dim.getOrdinalMeta()},e})(Ie),sc=Math.round,UK=0,$K=99,WK={normal:25,special:100},YK={normal:50,special:125},XK=(function(r){B(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,n){this.group.removeAll();var a=this.group,i=t.coordinateSystem,o=i.getRect(),s=t.getDimensionModel("x"),l=t.getDimensionModel("y"),u=s.dim,f=l.dim;ZK(a,t,n),jK(a,t,u,f,n);var v=t.getShallow("borderZ2",!0),c=Q(v,$K),h=c-1,d=t.getModel("backgroundStyle").getItemStyle(["borderWidth"]);d.lineWidth=0;var p=t.getModel("backgroundStyle").getItemStyle(["color","decal","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]);p.fill="none";var g=y_(o.clone(),d,UK),y=y_(o.clone(),p,c);g.silent=!0,y.silent=!0,a.add(g),a.add(y);var m=u.getUnitLayoutInfo(0,0),_=f.getUnitLayoutInfo(1,0);m&&_&&(u.shouldShow()&&a.add(WM({x1:o.x,y1:_.xy,x2:o.x+o.width,y2:_.xy},s.getModel("dividerLineStyle").getLineStyle(),h)),f.shouldShow()&&a.add(WM({x1:m.xy,y1:o.y,x2:m.xy,y2:o.y+o.height},l.getModel("dividerLineStyle").getLineStyle(),h)))},e.type="matrix",e})(Qe);function ZK(r,e,t){n(0),n(1);function n(a){var i=e.getDimensionModel(de[a]),o=i.dim;if(o.shouldShow())for(var s=i.getModel("itemStyle"),l=i.getModel("label"),u=e.getShallow("tooltip",!0),f=[],v=o.resetCellIterator();v.next();){var c=v.item,h={};se.copy(h,c.rect),Ya(f,c.id.x,c.id.y),hN(f,e,r,t,c.option,s,l,i,h,c.option.value,YK,u,a===0?"x":"y")}}}function jK(r,e,t,n,a){i("body",e.getBody(),t,n),t.shouldShow()&&n.shouldShow()&&i("corner",e.getCorner(),n,t);function i(o,s,l,u){var f=new Ie(e.getShallow(o,!0)),v=f.getModel("itemStyle"),c=f.getModel("label"),h=new qa,d=new qa,p=[],g=e.getShallow("tooltip",!0);for(u.resetLayoutIterator(d,1);d.next();)for(l.resetLayoutIterator(h,0);h.next();){var y=h.item,m=d.item;Ya(p,y.id.x,m.id.y);var _=s.getCell(p);if(!(_&&_.inSpanOf&&_.inSpanOf!==_)){var S={};_&&_.span?se.copy(S,_.spanRect):(y.dim.getLayout(S,0,p[0]),m.dim.getLayout(S,1,p[1]));var x=_?_.option:null;hN(p,e,r,a,x,v,c,f,S,x?x.value:null,WK,g,o)}}}}function hN(r,e,t,n,a,i,o,s,l,u,f,v,c){var h;lc.option=a?a.itemStyle:null,lc.parentModel=i,ws.option=a,ws.parentModel=s;var d=Q(ws.getShallow("z2"),a&&a.itemStyle?f.special:f.normal),p=v&&v.show,g=y_(l,lc.getItemStyle(),d);t.add(g);var y=ws.get("cursor");y!=null&&g.attr("cursor",y);var m;if(u!=null){var _=u+"";$i.option=a?a.label:null,$i.parentModel=o,$i.ecModel=n;var S=$i.getShallow("formatter");if(S){var x={componentType:"matrix",componentIndex:e.componentIndex,name:_,value:u,coord:r.slice(),$vars:["name","value","coord"]};if(Z(S))_=K2(S,x);else if(ie(S)){var w=S(x);w!=null&&(_=w+"")}}if(Mt(g,{normal:$i},{defaultText:_,autoOverflowArea:!0,layoutRect:ae(g.shape)}),m=g.getTextContent(),m){m.z2=d+1;var b=m.style;if(b&&b.overflow&&b.overflow!=="none"&&b.lineOverflow){var T={};se.copy(T,l),To(T,(((h=g.style)===null||h===void 0?void 0:h.lineWidth)||0)/2,!0,!0),g.updateInnerText(),m.getLocalTransform(uc),Gr(uc,uc),se.applyTransform(T,T,uc),m.setClipPath(new be({shape:T}))}}xa({el:g,componentModel:e,itemName:_,itemTooltipOption:v,formatterParamsExtra:{xyLocator:r.slice()}})}var C=e.get("triggerEvent",!0);if(m){var A=$i.get("silent");A==null&&(A=!(C||p)),m.silent=A,m.ignoreHostSilent=!0}var D=ws.get("silent");if(D==null&&(D=!g.style||g.style.fill==="none"||!g.style.fill),g.silent=D,C&&g){var L={componentType:"matrix",componentIndex:e.componentIndex,matrixIndex:e.componentIndex,targetType:c,name:m&&m.style?m.style.text:void 0,value:u,coord:r.slice()};ve(g).eventData=L}Up(ws),Up(lc),Up($i)}var ws=new Ie,lc=new Ie,$i=new Ie,uc=[];function y_(r,e,t){var n=e.lineWidth;if(n){var a=r.x+r.width,i=r.y+r.height;r.x=Sr(r.x,n,!0),r.y=Sr(r.y,n,!0),r.width=Sr(a,n,!0)-r.x,r.height=Sr(i,n,!0)-r.y}return new be({shape:r,style:e,z2:t})}function WM(r,e,t){var n=e.lineWidth;return n&&(sc(r.x1*2)===sc(r.x2*2)&&(r.x1=r.x2=Sr(r.x1,n,!0)),sc(r.y1*2)===sc(r.y2*2)&&(r.y1=r.y2=Sr(r.y1,n,!0))),new dt({shape:r,style:e,silent:!0,z2:t})}var qK=(function(){function r(e,t,n){this.dimensions=r.dimensions,this.type="matrix",this._model=e;var a=this._dimModels={x:e.getDimensionModel("x"),y:e.getDimensionModel("y")};this._dims={x:a.x.dim,y:a.y.dim},this._resize(e,n)}return r.getDimensionsInfo=function(){return[{name:"x",type:"ordinal"},{name:"y",type:"ordinal"},{name:"value"}]},r.create=function(e,t){var n=[];return e.eachComponent("matrix",function(a){var i=new r(a,e,t);n.push(i),a.coordinateSystem=i}),e.eachComponent(function(a,i){Ff({targetModel:i,coordSysType:"matrix",coordSysProvider:nP})}),n},r.prototype.getRect=function(){return this._rect},r.prototype._resize=function(e,t){var n=this._dims,a=this._dimModels,i=this._rect=tt(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()});YM(a,n,i,0),YM(a,n,i,1),XM(0,n),XM(1,n),ZM(this._model.getBody(),n),ZM(this._model.getCorner(),n)},r.prototype.dataToPoint=function(e,t,n){return n=n||[],this.dataToLayout(e,t,lu),n[0]=lu.rect.x+lu.rect.width/2,n[1]=lu.rect.y+lu.rect.height/2,n},r.prototype.dataToLayout=function(e,t,n){var a=this._dims;n=n||{};var i=n.rect=n.rect||{};i.x=i.y=i.width=i.height=NaN;var o=n.matrixXYLocatorRange=vN(n.matrixXYLocatorRange);return U(e)&&(cN(o,null,e,a,Q(t&&t.clamp,sa.none)),(!t||!t.ignoreMergeCells)&&((!t||t.clamp!==sa.corner)&&this._model.getBody().expandRangeByCellMerge(o),(!t||t.clamp!==sa.body)&&this._model.getCorner().expandRangeByCellMerge(o)),zM(i,o,a,0),zM(i,o,a,1)),n},r.prototype.pointToData=function(e,t,n){var a=this._dims;return jM(dn,0,a,e,t&&t.clamp),jM(dn,1,a,e,t&&t.clamp),n=n||[],n[0]=n[1]=NaN,dn.y===kt.inCorner&&dn.x===kt.inBody?qM(dn,n,0,a):dn.x===kt.inCorner&&dn.y===kt.inBody?qM(dn,n,1,a):(KM(dn,n,0,a),KM(dn,n,1,a)),n},r.prototype.convertToPixel=function(e,t,n,a){var i=By(t);return i===this?i.dataToPoint(n,a):void 0},r.prototype.convertToLayout=function(e,t,n,a){var i=By(t);return i===this?i.dataToLayout(n,a):void 0},r.prototype.convertFromPixel=function(e,t,n,a){var i=By(t);return i===this?i.pointToData(n,a):void 0},r.prototype.containPoint=function(e){return this._rect.contain(e[0],e[1])},r.dimensions=["x","y","value"],r})(),lu={rect:nd()},fc=new qa,Ny=new qa;function YM(r,e,t,n){for(var a=1-n,i=e[de[n]],o=e[de[a]],s=o.shouldShow(),l=i.resetCellIterator();l.next();)l.item.wh=l.item.xy=NaN;for(var u=o.resetLayoutIterator(null,n);u.next();)u.item.wh=u.item.xy=NaN;for(var f=t[lt[n]],v=i.getLocatorCount(n)+o.getLocatorCount(n),c=new Ie,h=o.resetLevelIterator();h.next();)c.option=h.item.option,c.parentModel=r[de[a]],g(h.item,s?c.get("levelSize"):0);for(var d=new Ie,p=i.resetCellIterator();p.next();)p.item.type===Qn.leaf&&(d.option=p.item.option,d.parentModel=void 0,g(p.item,d.get("size")));function g(b,T){var C=KK(T,n,t);$t(C)||(b.wh=m_(C,f),f=m_(f-b.wh),v--)}var y=v?f/v:0,m=!v&&f>=1,_=t[de[n]],S=i.getLocatorCount(n)-1,x=new qa;for(o.resetLayoutIterator(x,n);x.next();)w(x.item);for(i.resetLayoutIterator(x,n);x.next();)w(x.item);function w(b){$t(b.wh)&&(b.wh=y),b.xy=_,b.id[de[n]]===S&&!m&&(b.wh=t[de[n]]+t[lt[n]]-b.xy),_+=b.wh}}function XM(r,e){for(var t=e[de[r]].resetCellIterator();t.next();){var n=t.item;ad(n.rect,r,n.id,n.span,e),ad(n.rect,1-r,n.id,n.span,e),n.type===Qn.nonLeaf&&(n.xy=n.rect[de[r]],n.wh=n.rect[lt[r]])}}function ZM(r,e){r.travelExistingCells(function(t){var n=t.span;if(n){var a=t.spanRect,i=t.id;ad(a,0,i,n,e),ad(a,1,i,n,e)}})}function ad(r,e,t,n,a){r[lt[e]]=0;var i=t[de[e]],o=i<0?a[de[1-e]]:a[de[e]],s=o.getUnitLayoutInfo(e,t[de[e]]);if(r[de[e]]=s.xy,r[lt[e]]=s.wh,n[de[e]]>1){var l=o.getUnitLayoutInfo(e,t[de[e]]+n[de[e]]-1);r[lt[e]]=l.xy+l.wh-s.xy}}function KK(r,e,t){var n=sh(r,t[lt[e]]);return m_(n,t[lt[e]])}function m_(r,e){return Math.max(Math.min(r,Q(e,1/0)),0)}function By(r){var e=r.matrixModel,t=r.seriesModel,n=e?e.coordinateSystem:t?t.coordinateSystem:null;return n}var kt={inBody:1,inCorner:2,outside:3},dn={x:null,y:null,point:[]};function jM(r,e,t,n,a){var i=t[de[e]],o=t[de[1-e]],s=i.getUnitLayoutInfo(e,i.getLocatorCount(e)-1),l=i.getUnitLayoutInfo(e,0),u=o.getUnitLayoutInfo(e,-o.getLocatorCount(e)),f=o.shouldShow()?o.getUnitLayoutInfo(e,-1):null,v=r.point[e]=n[e];if(!l&&!f){r[de[e]]=kt.outside;return}if(a===sa.body){l?(r[de[e]]=kt.inBody,v=He(s.xy+s.wh,we(l.xy,v)),r.point[e]=v):r[de[e]]=kt.outside;return}else if(a===sa.corner){f?(r[de[e]]=kt.inCorner,v=He(f.xy+f.wh,we(u.xy,v)),r.point[e]=v):r[de[e]]=kt.outside;return}var c=l?l.xy:f?f.xy+f.wh:NaN,h=u?u.xy:c,d=s?s.xy+s.wh:c;if(v<h){if(!a){r[de[e]]=kt.outside;return}v=h}else if(v>d){if(!a){r[de[e]]=kt.outside;return}v=d}r.point[e]=v,r[de[e]]=c<=v&&v<=d?kt.inBody:h<=v&&v<=c?kt.inCorner:kt.outside}function qM(r,e,t,n){var a=1-t;if(r[de[t]]!==kt.outside)for(n[de[t]].resetCellIterator(Ny);Ny.next();){var i=Ny.item;if(JM(r.point[t],i.rect,t)&&JM(r.point[a],i.rect,a)){e[t]=i.ordinal,e[a]=i.id[de[a]];return}}}function KM(r,e,t,n){if(r[de[t]]!==kt.outside){var a=r[de[t]]===kt.inCorner?n[de[1-t]]:n[de[t]];for(a.resetLayoutIterator(fc,t);fc.next();)if(JK(r.point[t],fc.item)){e[t]=fc.item.id[de[t]];return}}}function JK(r,e){return e.xy<=r&&r<=e.xy+e.wh}function JM(r,e,t){return e[de[t]]<=r&&r<=e[de[t]]+e[lt[t]]}function QK(r){r.registerComponentModel(HK),r.registerComponentView(XK),r.registerCoordinateSystem("matrix",qK)}function eJ(r,e){var t=r.existing;if(e.id=r.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var n=e.parentOption;n?e.parentId=n.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function QM(r,e){var t;return M(e,function(n){r[n]!=null&&r[n]!=="auto"&&(t=!0)}),t}function tJ(r,e,t){var n=G({},t),a=r[e],i=t.$action||"merge";i==="merge"?a?(_e(a,n,!0),zn(a,n,{ignoreSize:!0}),lP(t,a),vc(t,a),vc(t,a,"shape"),vc(t,a,"style"),vc(t,a,"extra"),t.clipPath=a.clipPath):r[e]=n:i==="replace"?r[e]=n:i==="remove"&&a&&(r[e]=null)}var dN=["transition","enterFrom","leaveTo"],rJ=dN.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function vc(r,e,t){if(t&&(!r[t]&&e[t]&&(r[t]={}),r=r[t],e=e[t]),!(!r||!e))for(var n=t?dN:rJ,a=0;a<n.length;a++){var i=n[a];r[i]==null&&e[i]!=null&&(r[i]=e[i])}}function nJ(r,e){if(r&&(r.hv=e.hv=[QM(e,["left","right"]),QM(e,["top","bottom"])],r.type==="group")){var t=r,n=e;t.width==null&&(t.width=n.width=0),t.height==null&&(t.height=n.height=0)}}var aJ=(function(r){B(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,n){var a=this.option.elements;this.option.elements=null,r.prototype.mergeOption.call(this,t,n),this.option.elements=a},e.prototype.optionUpdated=function(t,n){var a=this.option,i=(n?a:t).elements,o=a.elements=n?[]:a.elements,s=[];this._flatten(i,s,null);var l=kL(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];M(l,function(f,v){var c=f.newOption;c&&(u.push(c),eJ(f,c),tJ(o,v,c),nJ(o[v],c))},this),a.elements=Fe(o,function(f){return f&&delete f.$action,f!=null})},e.prototype._flatten=function(t,n,a){M(t,function(i){if(i){a&&(i.parentOption=a),n.push(i);var o=i.children;o&&o.length&&this._flatten(o,n,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})(Me),eD={path:null,compoundPath:null,group:oe,image:Rt,text:Re},Er=me(),iJ=(function(r){B(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=K()},e.prototype.render=function(t,n,a){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,a)},e.prototype._updateElements=function(t){var n=t.useElOptionsToUpdate();if(n){var a=this._elMap,i=this.group,o=t.get("z"),s=t.get("zlevel");M(n,function(l){var u=mt(l.id,null),f=u!=null?a.get(u):null,v=mt(l.parentId,null),c=v!=null?a.get(v):i,h=l.type,d=l.style;h==="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&&OE(d,h,!!g,!!p)){var y=NE(d,h,!0);!g&&y.textConfig&&(g=l.textConfig=y.textConfig),!p&&y.textContent&&(p=y.textContent)}var m=oJ(l),_=l.$action||"merge",S=_==="merge",x=_==="replace";if(S){var w=!f,b=f;w?b=tD(u,c,l.type,a):(b&&(Er(b).isNew=!1),KO(b)),b&&(Yc(b,m,t,{isInit:w}),rD(b,l,o,s))}else if(x){Zc(f,l,a,t);var T=tD(u,c,l.type,a);T&&(Yc(T,m,t,{isInit:!0}),rD(T,l,o,s))}else _==="remove"&&(jO(f,l),Zc(f,l,a,t));var C=a.get(u);if(C&&p)if(S){var A=C.getTextContent();A?A.attr(p):C.setTextContent(new Re(p))}else x&&C.setTextContent(new Re(p));if(C){var D=l.clipPath;if(D){var L=D.type,I=void 0,w=!1;if(S){var P=C.getClipPath();w=!P||Er(P).type!==L,I=w?__(L):P}else x&&(w=!0,I=__(L));C.setClipPath(I),Yc(I,D,t,{isInit:w}),ed(I,D.keyframeAnimation,t)}var R=Er(C);C.setTextConfig(g),R.option=l,sJ(C,t,l),xa({el:C,componentModel:t,itemName:C.name,itemTooltipOption:l.tooltip}),ed(C,l.keyframeAnimation,t)}})}},e.prototype._relocate=function(t,n){for(var a=t.option.elements,i=this.group,o=this._elMap,s=n.getWidth(),l=n.getHeight(),u=["x","y"],f=0;f<a.length;f++){var v=a[f],c=mt(v.id,null),h=c!=null?o.get(c):null;if(!(!h||!h.isGroup)){var d=h.parent,p=d===i,g=Er(h),y=Er(d);g.width=j(g.option.width,p?s:y.width)||0,g.height=j(g.option.height,p?l:y.height)||0}}for(var f=a.length-1;f>=0;f--){var v=a[f],c=mt(v.id,null),h=c!=null?o.get(c):null;if(h){var d=h.parent,y=Er(d),m=d===i?{width:s,height:l}:{width:y.width,height:y.height},_={},S=Hd(h,v,m,null,{hv:v.hv,boundingMode:v.bounding},_);if(!Er(h).isNew&&S){for(var x=v.transition,w={},b=0;b<u.length;b++){var T=u[b],C=_[T];x&&(mo(x)||pe(x,T)>=0)?w[T]=C:h[T]=C}Oe(h,w,t,0)}else h.attr(_)}}},e.prototype._clear=function(){var t=this,n=this._elMap;n.each(function(a){Zc(a,Er(a).option,n,t._lastGraphicModel)}),this._elMap=K()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e})(Qe);function __(r){var e=J(eD,r)?eD[r]:hh(r),t=new e({});return Er(t).type=r,t}function tD(r,e,t,n){var a=__(t);return e.add(a),n.set(r,a),Er(a).id=r,Er(a).isNew=!0,a}function Zc(r,e,t,n){var a=r&&r.parent;a&&(r.type==="group"&&r.traverse(function(i){Zc(i,e,t,n)}),vp(r,e,n),t.removeKey(Er(r).id))}function rD(r,e,t,n){r.isGroup||M([["cursor",Ur.prototype.cursor],["zlevel",n||0],["z",t||0],["z2",0]],function(a){var i=a[0];J(e,i)?r[i]=Q(e[i],a[1]):r[i]==null&&(r[i]=a[1])}),M(De(e),function(a){if(a.indexOf("on")===0){var i=e[a];r[a]=ie(i)?i:null}}),J(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=G({},r),M(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(aP),function(e){delete r[e]}),r}function sJ(r,e,t){var n=ve(r).eventData;!r.silent&&!r.ignore&&!n&&(n=ve(r).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:r.name}),n&&(n.info=t.info)}function lJ(r){r.registerComponentModel(aJ),r.registerComponentView(iJ),r.registerPreprocessor(function(e){var t=e.graphic;U(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var nD=["x","y","radius","angle","single"],uJ=me(),fJ=["cartesian2d","polar","singleAxis"];function vJ(r){var e=r.get("coordinateSystem");return pe(fJ,e)>=0}function $a(r){return r+"Axis"}function cJ(r,e){var t=K(),n=[],a=K();r.eachComponent({mainType:"dataZoom",query:e},function(f){a.get(f.uid)||s(f)});var i;do i=!1,r.eachComponent("dataZoom",o);while(i);function o(f){!a.get(f.uid)&&l(f)&&(s(f),i=!0)}function s(f){a.set(f.uid,!0),n.push(f),u(f)}function l(f){var v=!1;return f.eachTargetAxis(function(c,h){var d=t.get(c);d&&d[h]&&(v=!0)}),v}function u(f){f.eachTargetAxis(function(v,c){(t.get(v)||t.set(v,[]))[c]=!0})}return n}function pN(r){var e=r.ecModel,t={infoList:[],infoMap:K()};return r.eachTargetAxis(function(n,a){var i=e.getComponent($a(n),a);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}function gN(r){var e=uJ(eR(r));return e.axisProxyMap||(e.axisProxyMap=K())}function id(r){if(r)return gN(r.ecModel).get(r.uid)}function hJ(r,e){gN(r.ecModel).set(r.uid,e)}function yN(r,e){var t=e.getAxisModel().axis.__alignTo;return t&&r.getAxisProxy(t.dim,t.model.componentIndex)?id(t.model):null}var Vy=(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})(),Df=(function(r){B(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,n,a){var i=aD(t);this.settledOption=i,this.mergeDefaultAndTheme(t,a),this._doInit(i)},e.prototype.mergeOption=function(t){var n=aD(t);_e(this.option,t,!0),_e(this.settledOption,n,!0),this._doInit(n)},e.prototype._doInit=function(t){var n=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var a=this.settledOption;M([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(n[i[0]]=a[i[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),n=this._targetAxisInfoMap=K(),a=this._fillSpecifiedTargetAxis(n);a?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var n=!1;return M(nD,function(a){var i=this.getReferringComponents($a(a),hF);if(i.specified){n=!0;var o=new Vy;M(i.models,function(s){o.add(s.componentIndex)}),t.set(a,o)}},this),n},e.prototype._fillAutoTargetAxisByOrient=function(t,n){var a=this.ecModel,i=!0;if(i){var o=n==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=a.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===n}});l(s,"single")}function l(u,f){var v=u[0];if(v){var c=new Vy;if(c.add(v.componentIndex),t.set(f,c),i=!1,f==="x"||f==="y"){var h=v.getReferringComponents("grid",at).models[0];h&&M(u,function(d){v.componentIndex!==d.componentIndex&&h===d.getReferringComponents("grid",at).models[0]&&c.add(d.componentIndex)})}}}i&&M(nD,function(u){if(i){var f=a.findComponents({mainType:$a(u),filter:function(c){return c.get("type",!0)==="category"}});if(f[0]){var v=new Vy;v.add(f[0].componentIndex),t.set(u,v),i=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(n){!t&&(t=n)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var n=this._rangePropMode,a=this.get("rangeMode");M([["start","startValue"],["end","endValue"]],function(i,o){var s=t[i[0]]!=null,l=t[i[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":a?n[o]=a[o]:s&&(n[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(n,a){t==null&&(t=this.ecModel.getComponent($a(n),a))},this),t},e.prototype.eachTargetAxis=function(t,n){this._targetAxisInfoMap.each(function(a,i){M(a.indexList,function(o){t.call(n,i,o)})})},e.prototype.getAxisProxy=function(t,n){return id(this.getAxisModel(t,n))},e.prototype.getAxisModel=function(t,n){var a=this._targetAxisInfoMap.get(t);if(a&&a.indexMap[n])return this.ecModel.getComponent($a(t),n)},e.prototype.setRawRange=function(t){var n=this.option,a=this.settledOption;M([["start","startValue"],["end","endValue"]],function(i){(t[i[0]]!=null||t[i[1]]!=null)&&(n[i[0]]=a[i[0]]=t[i[0]],n[i[1]]=a[i[1]]=t[i[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var n=this.option;M(["start","startValue","end","endValue"],function(a){n[a]=t[a]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getWindow().percent},e.prototype.getValueRange=function(t,n){if(t==null&&n==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getWindow().value}else return this.getAxisProxy(t,n).getWindow().value},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return id(t);for(var n,a=this._targetAxisInfoMap.keys(),i=0;i<a.length;i++)for(var o=a[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;n||(n=u)}return n},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})(Me);function aD(r){var e={};return M(["start","end","startValue","endValue","throttle"],function(t){r.hasOwnProperty(t)&&(e[t]=r[t])}),e}var dJ=(function(r){B(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})(Df),hx=(function(r){B(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,n,a,i){this.dataZoomModel=t,this.ecModel=n,this.api=a},e.type="dataZoom",e})(Qe),pJ=(function(r){B(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})(hx),gJ=(function(){function r(e,t,n,a){this._dimName=e,this._axisIndex=t,this.ecModel=a,this._dataZoomModel=n}return r.prototype.hostedBy=function(e){return this._dataZoomModel===e},r.prototype.getWindow=function(){return ae(this._window)},r.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if(vJ(t)){var n=$a(this._dimName),a=t.getReferringComponents(n,at).models[0];a&&this._axisIndex===a.componentIndex&&e.push(t)}},this),e},r.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},r.prototype.getMinMaxSpan=function(){return ae(this._minMaxSpan)},r.prototype.calculateDataWindow=function(e){var t=this._extent,n=this.getAxisModel().axis,a=n.scale,i=this._dataZoomModel,o=i.getRangePropMode(),s=[0,100],l=[],u=[],f,v=[!1,!1];M(["start","end"],function(_,S){var x=e[_],w=e[_+"Value"];o[S]==="percent"?(x==null&&(x=s[S]),w=Be(x,s,t),v[S]=!0):(f=!0,w==null?w=t[S]:(w=a.parse(w),a.sanitize&&(w=a.sanitize(w,t))),x=Be(w,t,s)),u[S]=w==null||isNaN(w)?t[S]:w,l[S]=x==null||isNaN(x)?s[S]:x}),Nt(u),Nt(l);var c=this._minMaxSpan;f?h(u,l,t,s,!1):h(l,u,s,t,!0);function h(_,S,x,w,b){var T=b?"Span":"ValueSpan";si(0,_,x,"all",c["min"+T],c["max"+T]);for(var C=0;C<2;C++)S[C]=Be(_[C],x,w,!0),b&&(S[C]=S[C],v[C]=!0);Rc(S)}var d=jt(a)||Uf(a),p=n.getExtent(),g=it(p[1]-p[0]),y=d?0:J_(u,g,.5);M([[0,Uo],[1,rn]],function(_){var S=_[0],x=_[1];!v[S]||!isFinite(y)||(u[S]=ke(u[S],y),u[S]=He(t[1],we(t[0],u[S])),l[S]===s[S]&&(u[S]=t[S],d&&(u[S]=x(u[S]))))}),Rc(u);var m=[Be(u[0],t,s,!0),Be(u[1],t,s,!0)];return Rc(m),{value:u,percent:l,percentInverted:m,valuePrecision:y}},r.prototype.reset=function(e,t){if(this.hostedBy(e)){var n=this.getAxisModel().axis;Po(n,OU);var a=n.scale.rawExtentInfo;this._extent=a.makeNoZoom(),this._updateMinMaxSpan();var i=e.settledOption;t&&(i=le({start:t[0],end:t[1]},i));var o=this._window=this.calculateDataWindow(i),s=o.percent,l=o.value;s[0]!==0&&a.setZoomMM(0,l[0]),s[1]!==100&&a.setZoomMM(1,l[1])}},r.prototype.filterData=function(e,t){if(!this.hostedBy(e))return;var n=this._dimName,a=this.getTargetSeriesModels(),i=e.get("filterMode"),o=this._window.value;if(i==="none")return;M(a,function(l){var u=l.getData(),f=u.mapDimensionsAll(n);if(f.length){if(i==="weakFilter"){var v=u.getStore(),c=$(f,function(h){return u.getDimensionIndex(h)},u);u.filterSelf(function(h){for(var d,p,g,y=0;y<f.length;y++){var m=v.get(c[y],h),_=!isNaN(m),S=m<o[0],x=m>o[1];if(_&&!S&&!x)return!0;_&&(g=!0),S&&(d=!0),x&&(p=!0)}return g&&d&&p})}else M(f,function(h){if(i==="empty")l.setData(u=u.map(h,function(p){return s(p)?p:NaN}));else{var d={};d[h]=o,u.selectRange(d)}});M(f,function(h){u.setApproximateExtent(o,h)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._extent;M(["min","max"],function(a){var i=t.get(a+"Span"),o=t.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=Be(n[0]+o,n,[0,100],!0):i!=null&&(o=Be(i,[0,100],n,!0)-n[0]),e[a+"Span"]=i,e[a+"ValueSpan"]=o},this)},r})(),yJ={dirtyOnOverallProgress:!0,getTargetSeries:function(r){function e(a){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent($a(o),s);a(o,s,l,i)})})}var t=[];e(function(a,i,o,s){if(!id(o)){var l=new gJ(a,i,s,r);t.push(l),hJ(o,l)}});var n=K();return M(t,function(a){M(a.getTargetSeriesModels(),function(i){n.set(i.uid,i)})}),n},overallReset:function(r,e){r.eachComponent("dataZoom",function(t){var n=[];t.eachTargetAxis(function(a,i){var o=t.getAxisProxy(a,i),s=yN(t,o);s?n.push([o,s]):o.reset(t,null)}),M(n,function(a){a[0].reset(t,a[1].getWindow().percentInverted)}),t.eachTargetAxis(function(a,i){t.getAxisProxy(a,i).filterData(t,e)})}),r.eachComponent("dataZoom",function(t){var n=t.findRepresentativeAxisProxy();if(n){var a=n.getWindow(),i=a.percent,o=a.value;t.setCalculatedRange({start:i[0],end:i[1],startValue:o[0],endValue:o[1]})}})}};function mJ(r){r.registerAction("dataZoom",function(e,t){var n=cJ(t,e);M(n,function(a){a.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var _J=Sl();function dx(r){_J(r,function(){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,yJ),mJ(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"})})}function SJ(r){r.registerComponentModel(dJ),r.registerComponentView(pJ),dx(r)}var Rn=(function(){function r(){}return r})(),mN={};function Ls(r,e){mN[r]=e}function _N(r){return mN[r]}var xJ=(function(r){B(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,n,a){var i=a.getTheme().get("toolbox"),o=i?i.feature:null;o&&(this._themeFeatureOption=G({},o),i.feature={}),r.prototype.init.call(this,t,n,a),o&&(i.feature=o)},e.prototype.optionUpdated=function(){M(this.option.feature,function(t,n){var a=this._themeFeatureOption,i=_N(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(this.ecModel)),a&&a[n]&&(_e(t,a[n]),a[n]=null),_e(t,i.defaultOption))},this)},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:N.color.border,borderRadius:0,borderWidth:0,padding:N.size.m,itemSize:15,itemGap:N.size.s,showTitle:!0,iconStyle:{borderColor:N.color.accent50,color:"none"},emphasis:{iconStyle:{borderColor:N.color.accent70}},tooltip:{show:!1,position:"bottom"}},e})(Me);function SN(r,e){var t=Vf(e.get("padding")),n=e.getItemStyle(["color","opacity"]);n.fill=e.get("backgroundColor");var a=new be({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:n,silent:!0,z2:-1});return a}var wJ=(function(r){B(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,n,a,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")||{},f=this._features||(this._features=K()),v=[];M(u,function(m,_){v.push(_)}),new ga(this._featureNames||[],v).add(c).update(c).remove(xe(c,null)).execute(),this._featureNames=Fe(v,function(m){return f.hasKey(m)});function c(m,_){var S=m!=null&&_==null,x=m!=null&&_!=null,w=m==null,b=S||x?v[m]:v[_],T=u[b],C=S||x?new Ie(T,t,n):null,A=C&&C.get("show"),D;if(S){if(!A)return;if(bJ(b))D={onclick:C.option.onclick,featureName:b};else{var L=_N(b);if(!L)return;D=new L}f.set(b,D)}else D=f.get(b);if(w||!A){iD(D)&&D.dispose&&D.dispose(n,a),f.removeKey(b);return}i&&i.newTitle!=null&&i.featureName===b&&(T.title=i.newTitle),S&&(D.uid=Zo("toolbox-feature")),D.model=C,D.ecModel=n,D.api=a,h(C,D,b),C.setIconStatus=function(I,P){var R=this.option,E=this.iconPaths;R.iconStatus=R.iconStatus||{},R.iconStatus[I]=P,E[I]&&(P==="emphasis"?da:pa)(E[I])},iD(D)&&D.render&&D.render(C,n,a,i)}function h(m,_,S){var x=m.getModel("iconStyle"),w=m.getModel(["emphasis","iconStyle"]),b=_ instanceof Rn&&_.getIcons?_.getIcons():m.get("icon"),T=m.get("title")||{},C,A;Z(b)?(C={},C[S]=b):C=b,Z(T)?(A={},A[S]=T):A=T;var D=m.iconPaths={};M(C,function(L,I){var P=Bf(L,{},{x:-s/2,y:-s/2,width:s,height:s});P.setStyle(x.getItemStyle());var R=P.ensureState("emphasis");R.style=w.getItemStyle();var E=new Re({style:{text:A[I],align:w.get("textAlign"),borderRadius:w.get("textBorderRadius"),padding:w.get("textPadding"),fill:null,font:_S({fontStyle:w.get("textFontStyle"),fontFamily:w.get("textFontFamily"),fontSize:w.get("textFontSize"),fontWeight:w.get("textFontWeight")},n)},ignore:!0});P.setTextContent(E),xa({el:P,componentModel:t,itemName:I,formatterParamsExtra:{title:A[I]}}),P.__title=A[I],P.on("mouseover",function(){var O=w.getItemStyle(),k=l?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";E.setStyle({fill:w.get("textFill")||O.fill||O.stroke||N.color.neutral99,backgroundColor:w.get("textBackgroundColor")}),P.setTextConfig({position:w.get("textPosition")||k}),E.ignore=!t.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){m.get(["iconStatus",I])!=="emphasis"&&a.leaveEmphasis(this),E.hide()}),(m.get(["iconStatus",I])==="emphasis"?da:pa)(P),o.add(P),P.on("click",q(_.onclick,_,n,a,I)),D[I]=P})}var d=bt(t,a).refContainer,p=t.getBoxLayoutParams(),g=t.get("padding"),y=tt(p,d,g);go(t.get("orient"),o,t.get("itemGap"),y.width,y.height),Hd(o,p,d,g),o.add(SN(o.getBoundingRect(),t)),l||o.eachChild(function(m){var _=m.__title,S=m.ensureState("emphasis"),x=S.textConfig||(S.textConfig={}),w=m.getTextContent(),b=w&&w.ensureState("emphasis");if(b&&!ie(b)&&_){var T=b.style||(b.style={}),C=wd(_,Re.makeFont(T)),A=m.x+o.x,D=m.y+o.y+s,L=!1;D+C.height>a.getHeight()&&(x.position="top",L=!0);var I=L?-5-C.height:s+10;A+C.width/2>a.getWidth()?(x.position=["100%",I],T.align="right"):A-C.width/2<0&&(x.position=[0,I],T.align="left")}})},e.prototype.updateView=function(t,n,a,i){M(this._features,function(o){o&&o instanceof Rn&&o.updateView&&o.updateView(o.model,n,a,i)})},e.prototype.dispose=function(t,n){M(this._features,function(a){a&&a instanceof Rn&&a.dispose&&a.dispose(t,n)})},e.type="toolbox",e})(Qe);function bJ(r){return r.indexOf("my")===0}function iD(r){return r instanceof Rn}var CJ=(function(r){B(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,n){var a=this.model,i=a.get("name")||t.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||t.get("backgroundColor")||N.color.neutral00,connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=Le.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var f=document.createElement("a");f.download=i+"."+s,f.target="_blank",f.href=l;var v=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(v)}else if(window.navigator.msSaveOrOpenBlob||o){var c=l.split(","),h=c[0].indexOf("base64")>-1,d=o?decodeURIComponent(c[1]):c[1];h&&(d=window.atob(d));var p=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=d.length,y=new Uint8Array(g);g--;)y[g]=d.charCodeAt(g);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,p)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,x=S.document;x.open("image/svg+xml","replace"),x.write(d),x.close(),S.focus(),x.execCommand("SaveAs",!0,p),document.body.removeChild(_)}}else{var w=a.get("lang"),b='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(w&&w[0]||"")+'" /></body>',T=window.open();T.document.write(b),T.document.title=i}},e.getDefaultOption=function(t){var n={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:N.color.neutral00,name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},e})(Rn),oD="__ec_magicType_stack__",TJ=[["line","bar"],["stack"]],AJ=(function(r){B(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,n=t.get("icon"),a={};return M(t.get("type"),function(i){n[i]&&(a[i]=n[i])}),a},e.getDefaultOption=function(t){var n={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 n},e.prototype.onclick=function(t,n,a){var i=this.model,o=i.get(["seriesIndex",a]);if(sD[a]){var s={series:[]},l=function(v){var c=v.subType,h=v.id,d=sD[a](c,h,v,i);d&&(le(d,v.option),s.series.push(d));var p=v.coordinateSystem;if(p&&p.type==="cartesian2d"&&(a==="line"||a==="bar")){var g=p.getAxesByScale("ordinal")[0];if(g){var y=g.dim,m=y+"Axis",_=v.getReferringComponents(m,at).models[0],S=_.componentIndex;s[m]=s[m]||[];for(var x=0;x<=S;x++)s[m][S]=s[m][S]||{};s[m][S].boundaryGap=a==="bar"}}};M(TJ,function(v){pe(v,a)>=0&&M(v,function(c){i.setIconStatus(c,"normal")})}),i.setIconStatus(a,"emphasis"),t.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,f=a;a==="stack"&&(u=_e({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(f="tiled")),n.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:u,featureName:"magicType"})}},e})(Rn),sD={line:function(r,e,t,n){if(r==="bar")return _e({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(r,e,t,n){if(r==="line")return _e({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(r,e,t,n){var a=t.get("stack")===oD;if(r==="line"||r==="bar")return n.setIconStatus("stack",a?"normal":"emphasis"),_e({id:e,stack:a?"":oD},n.get(["option","stack"])||{},!0)}};$n({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,e){e.mergeOption(r.newOption)});var cp=new Array(60).join("-"),dl=" ";function MJ(r){var e={},t=[],n=[];return r.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=uY(o);e[s]||(e[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(a)}else t.push(a)}else t.push(a)}),{seriesGroupByCategoryAxis:e,other:t,meta:n}}function DJ(r){var e=[];return M(r,function(t,n){var a=t.categoryAxis,i=t.valueAxis,o=i.dim,s=[" "].concat($(t.series,function(h){return h.name})),l=[a.model.getCategories()];M(t.series,function(h){var d=h.getRawData();l.push(h.getRawData().mapArray(d.mapDimension(o),function(p){return p}))});for(var u=[s.join(dl)],f=0;f<l[0].length;f++){for(var v=[],c=0;c<l.length;c++)v.push(l[c][f]);u.push(v.join(dl))}e.push(u.join(`
53
+ `))}),e.join(`
54
+
55
+ `+cp+`
56
+
57
+ `)}function IJ(r){return $(r,function(e){var t=e.getRawData(),n=[e.name],a=[];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++)a[l]=arguments[l];n.push((s?s+dl:"")+a.join(dl))}),n.join(`
58
+ `)}).join(`
59
+
60
+ `+cp+`
61
+
62
+ `)}function LJ(r){var e=MJ(r);return{value:Fe([DJ(e.seriesGroupByCategoryAxis),IJ(e.other)],function(t){return!!t.replace(/[\n\t\s]/g,"")}).join(`
63
+
64
+ `+cp+`
65
+
66
+ `),meta:e.meta}}function od(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function PJ(r){var e=r.slice(0,r.indexOf(`
67
+ `));if(e.indexOf(dl)>=0)return!0}var S_=new RegExp("["+dl+"]+","g");function RJ(r){for(var e=r.split(/\n+/g),t=od(e.shift()).split(S_),n=[],a=$(t,function(l){return{name:l,data:[]}}),i=0;i<e.length;i++){var o=od(e[i]).split(S_);n.push(o.shift());for(var s=0;s<o.length;s++)a[s]&&(a[s].data[i]=o[s])}return{series:a,categories:n}}function EJ(r){for(var e=r.split(/\n+/g),t=od(e.shift()),n=[],a=0;a<e.length;a++){var i=od(e[a]);if(i){var o=i.split(S_),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),n[a]={name:s,value:[]},l=n[a].value):l=n[a]=[];for(var f=0;f<o.length;f++)l.push(+o[f]);l.length===1&&(u?n[a].value=l[0]:n[a]=l[0])}}return{name:t,data:n}}function kJ(r,e){var t=r.split(new RegExp(`
68
+ *`+cp+`
69
+ *`,"g")),n={series:[]};return M(t,function(a,i){if(PJ(a)){var o=RJ(a),s=e[i],l=s.axisDim+"Axis";s&&(n[l]=n[l]||[],n[l][s.axisIndex]={data:o.categories},n.series=n.series.concat(o.series))}else{var o=EJ(a);n.series.push(o)}}),n}var OJ=(function(r){B(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,n){setTimeout(function(){n.dispatchAction({type:"hideTip"})});var a=n.getDom(),i=this.model;this._dom&&a.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")||N.color.neutral00;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"),f=document.createElement("textarea");u.style.cssText="overflow:auto";var v=i.get("optionToContent"),c=i.get("contentToOption"),h=LJ(t);if(ie(v)){var d=v(n.getOption());Z(d)?u.innerHTML=d:js(d)&&u.appendChild(d)}else{f.readOnly=i.get("readOnly");var p=f.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"),f.value=h.value,u.appendChild(f)}var g=h.meta,y=document.createElement("div");y.style.cssText="position:absolute;bottom:5px;left:0;right:0";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",_=document.createElement("div"),S=document.createElement("div");m+=";background-color:"+i.get("buttonColor"),m+=";color:"+i.get("buttonTextColor");var x=this;function w(){a.removeChild(o),x._dom=null}Mm(_,"click",w),Mm(S,"click",function(){if(c==null&&v!=null||c!=null&&v==null){w();return}var b;try{ie(c)?b=c(u,n.getOption()):b=kJ(f.value,g)}catch(T){throw w(),new Error("Data view format error "+T)}b&&n.dispatchAction({type:"changeDataView",newOption:b}),w()}),_.innerHTML=l[1],S.innerHTML=l[2],S.style.cssText=_.style.cssText=m,!i.get("readOnly")&&y.appendChild(S),y.appendChild(_),o.appendChild(s),o.appendChild(u),o.appendChild(y),u.style.height=a.clientHeight-80+"px",a.appendChild(o),this._dom=o},e.prototype.dispose=function(t,n){this._dom&&n.getDom().removeChild(this._dom)},e.getDefaultOption=function(t){var n={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:N.color.background,textColor:N.color.primary,textareaColor:N.color.background,textareaBorderColor:N.color.border,buttonColor:N.color.accent50,buttonTextColor:N.color.neutral00};return n},e})(Rn);function NJ(r,e){return $(r,function(t,n){var a=e&&e[n];if(fe(a)&&!U(a)){var i=fe(t)&&!U(t);i||(t={value:t});var o=a.name!=null&&t.name==null;return t=le(t,a),o&&delete t.name,t}else return t})}$n({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,e){var t=[];M(r.newOption.series,function(n){var a=e.getSeriesByName(n.name)[0];if(!a)t.push(G({type:"scatter"},n));else{var i=a.get("data");t.push({name:n.name,data:NJ(n.data,i)})}}),e.mergeOption(le({series:t},r.newOption))});var xN=M,wN=me();function BJ(r,e){var t=px(r);xN(e,function(n,a){for(var i=t.length-1;i>=0;i--){var o=t[i];if(o[a])break}if(i<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();t[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),t.push(e)}function VJ(r){var e=px(r),t=e[e.length-1];e.length>1&&e.pop();var n={};return xN(t,function(a,i){for(var o=e.length-1;o>=0;o--)if(a=e[o][i],a){n[i]=a;break}}),n}function zJ(r){wN(r).snapshots=null}function FJ(r){return px(r).length}function px(r){var e=wN(r);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var GJ=(function(r){B(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,n){zJ(t),n.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var n={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 n},e})(Rn);$n({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,e){e.resetOption("recreate")});var HJ=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],gx=(function(){function r(e,t,n){var a=this;this._targetInfoList=[];var i=lD(t,e);M(UJ,function(o,s){(!n||!n.include||pe(n.include,s)>=0)&&o(i,a._targetInfoList)})}return r.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(n,a,i){if((n.coordRanges||(n.coordRanges=[])).push(a),!n.coordRange){n.coordRange=a;var o=zy[n.brushType](0,i,a);n.__rangeOffset={offset:cD[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},r.prototype.matchOutputRanges=function(e,t,n){M(e,function(a){var i=this.findTargetInfo(a,t);i&&i!==!0&&M(i.coordSyses,function(o){var s=zy[a.brushType](1,o,a.range,!0);n(a,s.values,o,t)})},this)},r.prototype.setInputRanges=function(e,t){M(e,function(n){var a=this.findTargetInfo(n,t);if(n.range=n.range||[],a&&a!==!0){n.panelId=a.panelId;var i=zy[n.brushType](0,a.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?cD[n.brushType](i.values,o.offset,$J(i.xyMinMax,o.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(e,t){return $(this._targetInfoList,function(n){var a=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:DO(a),isTargetByCursor:LO(a,e,n.coordSysModel),getLinearBrushOtherExtent:IO(a)}})},r.prototype.controlSeries=function(e,t,n){var a=this.findTargetInfo(e,n);return a===!0||a&&pe(a.coordSyses,t.coordinateSystem)>=0},r.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,a=lD(t,e),i=0;i<n.length;i++){var o=n[i],s=e.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<uD.length;l++)if(uD[l](a,o))return o}return!0},r})();function x_(r){return r[0]>r[1]&&r.reverse(),r}function lD(r,e){return Fs(r,e,{includeMainTypes:HJ})}var UJ={grid:function(r,e){var t=r.xAxisModels,n=r.yAxisModels,a=r.gridModels,i=K(),o={},s={};!t&&!n&&!a||(M(t,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),M(n,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),M(a,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,f=[];M(u.getCartesians(),function(v,c){(pe(t,v.getAxis("x").model)>=0||pe(n,v.getAxis("y").model)>=0)&&f.push(v)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:f[0],coordSyses:f,getPanelRect:fD.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,e){M(r.geoModels,function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:fD.geo})})}},uD=[function(r,e){var t=r.xAxisModel,n=r.yAxisModel,a=r.gridModel;return!a&&t&&(a=t.axis.grid.model),!a&&n&&(a=n.axis.grid.model),a&&a===e.gridModel},function(r,e){var t=r.geoModel;return t&&t===e.geoModel}],fD={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys.view,e=Mk(null,r);return JI(e,e,Uh(null,r)),e}},zy={lineX:xe(vD,0),lineY:xe(vD,1),rect:function(r,e,t,n){var a=r?e.pointToData([t[0][0],t[1][0]],n):e.dataToPoint([t[0][0],t[1][0]],n),i=r?e.pointToData([t[0][1],t[1][1]],n):e.dataToPoint([t[0][1],t[1][1]],n),o=[x_([a[0],i[0]]),x_([a[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(r,e,t,n){var a=[Ot(),Ot()],i=$(t,function(o){var s=r?e.pointToData(o,n):e.dataToPoint(o,n);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:i,xyMinMax:a}}};function vD(r,e,t,n){var a=t.getAxis(["x","y"][r]),i=x_($([0,1],function(s){return e?a.coordToData(a.toLocalCoord(n[s]),!0):a.toGlobalCoord(a.dataToCoord(n[s]))})),o=[];return o[r]=i,o[1-r]=[NaN,NaN],{values:i,xyMinMax:o}}var cD={lineX:xe(hD,0),lineY:xe(hD,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 $(r,function(n,a){return[n[0]-t[0]*e[a][0],n[1]-t[1]*e[a][1]]})}};function hD(r,e,t,n){return[e[0]-n[r]*t[0],e[1]-n[r]*t[1]]}function $J(r,e){var t=dD(r),n=dD(e),a=[t[0]/n[0],t[1]/n[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function dD(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var w_=M,WJ=lF("toolbox-dataZoom_"),YJ={x:"width",y:"height"},XJ=(function(r){B(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,n,a,i){this._brushController||(this._brushController=new z1(a.getZr()),this._brushController.on("brush",q(this._onBrush,this)).mount()),qJ(t,n,this,i,a),jJ(t,n)},e.prototype.onclick=function(t,n,a){ZJ[a].call(this)},e.prototype.dispose=function(t,n){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var n=t.areas;if(!t.isEnd||!n.length)return;var a={},i=this.ecModel;this._brushController.updateCovers([]);var o=new gx(yx(this.model),i,{include:["grid"]});o.matchOutputRanges(n,i,function(u,f,v){if(v.type==="cartesian2d"){var c=v.master.getRect().clone(),h=u.brushType;h==="rect"?(s("x",v,c,f[0]),s("y",v,c,f[1])):s({lineX:"x",lineY:"y"}[h],v,c,f)}}),BJ(i,a),this._dispatchZoomAction(a);function s(u,f,v,c){var h=f.getAxis(u),d=h.model,p=l(u,d,i),g=p.findRepresentativeAxisProxy(d).getMinMaxSpan(),y=h.scale.getExtent();(g.minValueSpan!=null||g.maxValueSpan!=null)&&(c=si(0,c.slice(),y,0,g.minValueSpan,g.maxValueSpan));var m=J_(y,v[YJ[u]],.5);p&&(a[p.id]={dataZoomId:p.id,startValue:isFinite(m)?ke(c[0],m):c[0],endValue:isFinite(m)?ke(c[1],m):c[1]})}function l(u,f,v){var c;return v.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var d=h.getAxisModel(u,f.componentIndex);d&&(c=h)}),c}},e.prototype._dispatchZoomAction=function(t){var n=[];w_(t,function(a,i){n.push(ae(a))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},e.getDefaultOption=function(t){var n={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:N.color.backgroundTint}};return n},e})(Rn),ZJ={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(VJ(this.ecModel))}};function yx(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 jJ(r,e){r.setIconStatus("back",FJ(e)>1?"emphasis":"normal")}function qJ(r,e,t,n,a){var i=t._isZoomActive;n&&n.type==="takeGlobalCursor"&&(i=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),t._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var o=new gx(yx(r),e,{include:["grid"]}),s=o.makePanelOpts(a,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)}JG("dataZoom",function(r){var e=r.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var n=e.getModel(t),a=[],i=yx(n),o=Fs(r,i);w_(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),w_(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,f){var v=l.componentIndex,c={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:WJ+u+v};c[f]=v,a.push(c)}return a});function KJ(r){r.registerComponentModel(xJ),r.registerComponentView(wJ),Ls("saveAsImage",CJ),Ls("magicType",AJ),Ls("dataView",OJ),Ls("dataZoom",XJ),Ls("restore",GJ),Se(SJ)}var JJ=(function(r){B(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|mousewheel",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:N.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:N.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:N.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:N.color.tertiary,fontSize:14}},e})(Me);function bN(r){var e=r.get("confine");return e!=null?!!e:r.get("renderMode")==="richText"}function CN(r){if(Le.domSupported){for(var e=document.documentElement.style,t=0,n=r.length;t<n;t++)if(r[t]in e)return r[t]}}var TN=CN(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),QJ=CN(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function AN(r,e){if(!r)return e;e=j2(e,!0);var t=r.indexOf(e);return r=t===-1?e:"-"+r.slice(0,t)+"-"+e,r.toLowerCase()}function eQ(r,e){var t=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return t?t[e]:null}var tQ=AN(QJ,"transition"),mx=AN(TN,"transform"),rQ="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Le.transform3dSupported?"will-change:transform;":"");function nQ(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function aQ(r,e,t){if(!Z(t)||t==="inside")return"";var n=r.get("backgroundColor"),a=r.get("borderWidth");e=Mo(e);var i=nQ(t),o=Math.max(Math.round(a)*1.5,6),s="",l=mx+":",u;pe(["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 f=u*Math.PI/180,v=o+a,c=v*Math.abs(Math.cos(f))+v*Math.abs(Math.sin(f)),h=Math.round(((c-Math.SQRT2*a)/2+Math.SQRT2*a-(c-v)/2)*100)/100;s+=";"+i+":-"+h+"px";var d=e+" solid "+a+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'<div style="'+p.join("")+'"></div>'}function iQ(r,e,t){var n="cubic-bezier(0.23,1,0.32,1)",a="",i="";return t&&(a=" "+r/2+"s "+n,i="opacity"+a+",visibility"+a),e||(a=" "+r+"s "+n,i+=(i.length?",":"")+(Le.transformSupported?""+mx+a:",left"+a+",top"+a)),tQ+":"+i}function pD(r,e,t){var n=r.toFixed(0)+"px",a=e.toFixed(0)+"px";if(!Le.transformSupported)return t?"top:"+a+";left:"+n+";":[["top",a],["left",n]];var i=Le.transform3dSupported,o="translate"+(i?"3d":"")+"("+n+","+a+(i?",0":"")+")";return t?"top:0;left:0;"+mx+":"+o+";":[["top",0],["left",0],[TN,o]]}function oQ(r){var e=[],t=r.get("fontSize"),n=r.getTextColor();n&&e.push("color:"+n),e.push("font:"+r.getFont());var a=Q(r.get("lineHeight"),Math.round(t*3/2));t&&e.push("line-height:"+a+"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),M(["decoration","align"],function(u){var f=r.get(u);f&&e.push("text-"+u+":"+f)}),e.join(";")}function sQ(r,e,t,n){var a=[],i=r.get("transitionDuration"),o=r.get("backgroundColor"),s=r.get("shadowBlur"),l=r.get("shadowColor"),u=r.get("shadowOffsetX"),f=r.get("shadowOffsetY"),v=r.getModel("textStyle"),c=FP(r,"html"),h=u+"px "+f+"px "+s+"px "+l;return a.push("box-shadow:"+h),e&&i>0&&a.push(iQ(i,t,n)),o&&a.push("background-color:"+o),M(["width","color","radius"],function(d){var p="border-"+d,g=j2(p),y=r.get(g);y!=null&&a.push(p+":"+y+(d==="color"?"":"px"))}),a.push(oQ(v)),c!=null&&a.push("padding:"+Vf(c).join("px ")+"px"),a.join(";")+";"}function gD(r,e,t,n,a){var i=e&&e.painter;if(t){var o=i&&i.getViewportRoot();o&&IV(r,o,t,n,a)}else{r[0]=n,r[1]=a;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 lQ=(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,Le.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var a=this._zr=e.getZr(),i=t.appendTo,o=i&&(Z(i)?document.querySelector(i):js(i)?i:ie(i)&&i(e.getDom()));gD(this._styleCoord,a,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(n),this._api=e,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,f=a.painter.getViewportRoot();Lr(f,l,!0),u.dispatch("mousemove",l)}},n.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(),n=eQ(t,"position"),a=t.style;a.position!=="absolute"&&n!=="absolute"&&(a.position="relative")}var i=e.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=e.get("displayTransition")&&e.get("transitionDuration")>0,this.el.className=e.get("className")||""},r.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,a=n.style,i=this._styleCoord;n.innerHTML?a.cssText=rQ+sQ(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+pD(i[0],i[1],!0)+("border-color:"+Mo(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(e,t,n,a,i){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(Z(i)&&n.get("trigger")==="item"&&!bN(n)&&(s=aQ(n,a,i)),Z(e))o.innerHTML=e+s;else if(e){o.innerHTML="",U(e)||(e=[e]);for(var l=0;l<e.length;l++)js(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 n=this._styleCoord;if(gD(n,this._zr,this._container,e,t),n[0]!=null&&n[1]!=null){var a=this.el.style,i=pD(n[0],n[1]);M(i,function(o){a[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;this._enableDisplayTransition?(t.visibility="hidden",t.opacity="0"):t.display="none",Le.transform3dSupported&&(t.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},r.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(q(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;LV(e&&e.painter&&e.painter.getViewportRoot(),this._container);var t=this.el;if(t){t.onmouseenter=t.onmousemove=t.onmouseleave=null;var n=t.parentNode;n&&n.removeChild(t)}this.el=this._container=null},r})(),uQ=(function(){function r(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),mD(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,n,a,i){var o=this;fe(e)&&Ve(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new Re({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:FP(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),M(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),M(["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(),n=yD(e.style);return[t.width+n.left+n.right,t.height+n.top+n.bottom]},r.prototype.moveTo=function(e,t){var n=this.el;if(n){var a=this._styleCoord;mD(a,this._zr,e,t),e=a[0],t=a[1];var i=n.style,o=Ea(i.borderWidth||0),s=yD(i);n.x=e+o+s.left,n.y=t+o+s.top,n.markRedraw()}},r.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(q(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r})();function Ea(r){return Math.max(0,r)}function yD(r){var e=Ea(r.shadowBlur||0),t=Ea(r.shadowOffsetX||0),n=Ea(r.shadowOffsetY||0);return{left:Ea(e-t),right:Ea(e+t),top:Ea(e-n),bottom:Ea(e+n)}}function mD(r,e,t,n){r[0]=t,r[1]=n,r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var fQ=new be({shape:{x:-1,y:-1,width:2,height:2}}),vQ=(function(r){B(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,n){if(!(Le.node||!n.getDom())){var a=t.getComponent("tooltip"),i=this._renderMode=pF(a.get("renderMode"));this._tooltipContent=i==="richText"?new uQ(n):new lQ(n,{appendTo:a.get("appendToBody",!0)?"body":a.get("appendTo",!0)})}},e.prototype.render=function(t,n,a){if(!(Le.node||!a.getDom())){this.group.removeAll(),this._tooltipModel=t,this._ecModel=n,this._api=a;var i=this._tooltipContent;i.update(t),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&t.get("transitionDuration")?Ml(this,"_updatePosition",50,"fixRate"):nf(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel,n=t.get("triggerOn");oN("itemTooltip",this._api,q(function(a,i,o){n!=="none"&&(n.indexOf(a)>=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,n=this._ecModel,a=this._api,i=t.get("triggerOn");if(t.get("trigger")!=="axis"&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(t,n,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,n,a,i){if(!(i.from===this.uid||Le.node||!a.getDom())){var o=_D(i,a);this._ticket="";var s=i.dataByCoordSys,l=pQ(i,n,a);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 f=fQ;f.x=i.x,f.y=i.y,f.update(),ve(f).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:f},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,n,a,i))return;var v=sN(i,n),c=v.point[0],h=v.point[1];c!=null&&h!=null&&this._tryShow({offsetX:c,offsetY:h,target:v.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},e.prototype.manuallyHideTip=function(t,n,a,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,i.from!==this.uid&&this._hide(_D(i,a))},e.prototype._manuallyAxisShowTip=function(t,n,a,i){var o=i.seriesIndex,s=i.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var f=u.getData(),v=uu([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(v.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},e.prototype._tryShow=function(t,n){var a=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(a){var s=ve(a);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null,this._cbParamsList=null;var l,u;so(a,function(f){if(f.tooltipDisabled)return l=u=null,!0;l||u||(ve(f).dataIndex!=null?l=f:ve(f).tooltipConfig!=null&&(u=f))},!0),l?this._showSeriesItemTooltip(t,l,n):u?this._showComponentItemTooltip(t,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(n)}},e.prototype._showOrMove=function(t,n){var a=t.get("showDelay");n=q(n,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(n,a):n()},e.prototype._showAxisTooltip=function(t,n){var a=this._ecModel,i=this._tooltipModel,o=[n.offsetX,n.offsetY],s=uu([n.tooltipOption],i),l=this._renderMode,u=[],f=pt("section",{blocks:[],noHeader:!0}),v=[],c=new pg;M(t,function(m){M(m.dataByAxis,function(_){var S=a.getComponent(_.axisDim+"Axis",_.axisIndex),x=_.value,w=S.axis,b=w.scale.parse(x);if(!(!S||x==null)){var T=nN(x,w,a,_.seriesDataIndices,_.valueLabelOpt),C=pt("section",{header:T,noHeader:!Br(T),sortBlocks:!0,blocks:[]});f.blocks.push(C),M(_.seriesDataIndices,function(A){var D=a.getSeriesByIndex(A.seriesIndex),L=A.dataIndexInside,I=D.getDataParams(L);if(!(I.dataIndex<0)){I.axisDim=_.axisDim,I.axisIndex=_.axisIndex,I.axisType=_.axisType,I.axisId=_.axisId,I.axisValue=Ih(S.axis,{value:b}),I.axisValueLabel=T,I.marker=c.makeTooltipMarker("item",Mo(I.color),l);var P=Tb(D.formatTooltip(L,!0,null)),R=P.frag;if(R){var E=uu([D],i).get("valueFormatter");C.blocks.push(E?G({valueFormatter:E},R):R)}P.text&&v.push(P.text),u.push(I)}})}})}),f.blocks.reverse(),v.reverse();var h=n.position,d=s.get("order"),p=Pb(f,c,l,d,a.get("useUTC"),s.get("textStyle"));p&&v.unshift(p);var g=l==="richText"?`
70
+
71
+ `:"<br/>",y=v.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],h,null,c)})},e.prototype._showSeriesItemTooltip=function(t,n,a){var i=this._ecModel,o=ve(n),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,v=o.dataType,c=u.getData(v),h=this._renderMode,d=t.positionDefault,p=uu([c.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(f,v),m=new pg;y.marker=m.makeTooltipMarker("item",Mo(y.color),h);var _=Tb(u.formatTooltip(f,!1,v)),S=p.get("order"),x=p.get("valueFormatter"),w=_.frag,b=w?Pb(x?G({valueFormatter:x},w):w,m,h,S,i.get("useUTC"),p.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,b,y,T,t.offsetX,t.offsetY,t.position,t.target,m)}),a({type:"showTip",dataIndexInside:f,dataIndex:c.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,n,a){var i=this._renderMode==="html",o=ve(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(Z(l)){var f=l;l={content:f,formatter:f},u=!0}u&&i&&l.content&&(l=ae(l),l.content=Qt(l.content));var v=[l],c=this._ecModel.getComponent(o.componentMainType,o.componentIndex);c&&v.push(c),v.push({formatter:l.content});var h=t.positionDefault,d=uu(v,this._tooltipModel,h?{position:h}:null),p=d.get("content"),g=Math.random()+"",y=new pg;this._showOrMove(d,function(){var m=ae(d.get("formatterParams")||{});this._showTooltipContent(d,p,m,g,t.offsetX,t.offsetY,t.position,n,y)}),a({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,n,a,i,o,s,l,u,f){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var v=this._tooltipContent;v.setEnterable(t.get("enterable"));var c=t.get("formatter");l=l||t.get("position");var h=n,d=this._getNearestPoint([o,s],a,t.get("trigger"),t.get("borderColor"),t.get("defaultBorderColor",!0)),p=d.color;if(c)if(Z(c)){var g=t.ecModel.get("useUTC"),y=U(a)?a[0]:a,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;h=c,m&&(h=Gd(y.axisValue,h,g)),h=q2(h,a,!0)}else if(ie(c)){var _=q(function(S,x){S===this._ticket&&(v.setContent(x,f,t,p,l),this._updatePosition(t,l,o,s,v,a,u))},this);this._ticket=i,h=c(a,i,_)}else h=c;v.setContent(h,f,t,p,l),v.show(t,p),this._updatePosition(t,l,o,s,v,a,u)}},e.prototype._getNearestPoint=function(t,n,a,i,o){if(a==="axis"||U(n))return{color:i||o};if(!U(n))return{color:i||n.color||n.borderColor}},e.prototype._updatePosition=function(t,n,a,i,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||t.get("position");var v=o.getSize(),c=t.get("align"),h=t.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),ie(n)&&(n=n([a,i],s,o.el,d,{viewSize:[u,f],contentSize:v.slice()})),U(n))a=j(n[0],u),i=j(n[1],f);else if(fe(n)){var p=n;p.width=v[0],p.height=v[1];var g=tt(p,{width:u,height:f});a=g.x,i=g.y,c=null,h=null}else if(Z(n)&&l){var y=dQ(n,d,v,t.get("borderWidth"));a=y[0],i=y[1]}else{var y=cQ(a,i,o,u,f,c?null:20,h?null:20);a=y[0],i=y[1]}if(c&&(a-=SD(c)?v[0]/2:c==="right"?v[0]:0),h&&(i-=SD(h)?v[1]/2:h==="bottom"?v[1]:0),bN(t)){var y=hQ(a,i,o,u,f);a=y[0],i=y[1]}o.moveTo(a,i)},e.prototype._updateContentNotChangedOnAxis=function(t,n){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===t.length;return o&&M(a,function(s,l){var u=s.dataByAxis||[],f=t[l]||{},v=f.dataByAxis||[];o=o&&u.length===v.length,o&&M(u,function(c,h){var d=v[h]||{},p=c.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&c.value===d.value&&c.axisType===d.axisType&&c.axisId===d.axisId&&p.length===g.length,o&&M(p,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),i&&M(c.seriesDataIndices,function(y){var m=y.seriesIndex,_=n[m],S=i[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=n,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,this._cbParamsList=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,n){Le.node||!n.getDom()||(nf(this,"_updatePosition"),this._tooltipContent.dispose(),d_("itemTooltip",n),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},e.type="tooltip",e})(Qe);function uu(r,e,t){var n=e.ecModel,a;t?(a=new Ie(t,n,n),a=new Ie(e.option,a,n)):a=e;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof Ie&&(o=o.get("tooltip",!0)),Z(o)&&(o={formatter:o}),o&&(a=new Ie(o,a,n)))}return a}function _D(r,e){return r.dispatchAction||q(e.dispatchAction,e)}function cQ(r,e,t,n,a,i,o){var s=t.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>n?r-=l+i:r+=i),o!=null&&(e+u+o>a?e-=u+o:e+=o),[r,e]}function hQ(r,e,t,n,a){var i=t.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,n)-o,e=Math.min(e+s,a)-s,r=Math.max(r,0),e=Math.max(e,0),[r,e]}function dQ(r,e,t,n){var a=t[0],i=t[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=e.width,f=e.height;switch(r){case"inside":s=e.x+u/2-a/2,l=e.y+f/2-i/2;break;case"top":s=e.x+u/2-a/2,l=e.y-i-o;break;case"bottom":s=e.x+u/2-a/2,l=e.y+f+o;break;case"left":s=e.x-a-o,l=e.y+f/2-i/2;break;case"right":s=e.x+u+o,l=e.y+f/2-i/2}return[s,l]}function SD(r){return r==="center"||r==="middle"}function pQ(r,e,t){var n=nS(r).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var i=_l(e,a,n.get(a),{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 f=ve(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}function gQ(r){Se(Qf),r.registerComponentModel(JJ),r.registerComponentView(vQ),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},ot),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},ot)}var yQ=["rect","polygon","keep","clear"];function mQ(r,e){var t=Ye(r?r.brush:[]);if(t.length){var n=[];M(t,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(n=n.concat(u))});var a=r&&r.toolbox;U(a)&&(a=a[0]),a||(a={feature:{}},r.toolbox=[a]);var i=a.feature||(a.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,n),Td(s,function(l){return l+""},null),e&&!s.length&&s.push.apply(s,yQ)}}var xD=M;function wD(r){if(r){for(var e in r)if(r.hasOwnProperty(e))return!0}}function b_(r,e,t){var n={};return xD(e,function(i){var o=n[i]=a();xD(r[i],function(s,l){if(At.isValidType(l)){var u={type:l,visual:s};t&&t(u,i),o[l]=new At(u),l==="opacity"&&(u=ae(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new At(u))}})}),n;function a(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function MN(r,e,t){var n;M(t,function(a){e.hasOwnProperty(a)&&wD(e[a])&&(n=!0)}),n&&M(t,function(a){e.hasOwnProperty(a)&&wD(e[a])?r[a]=ae(e[a]):delete r[a]})}function _Q(r,e,t,n,a,i){var o={};M(r,function(v){var c=At.prepareVisualTypes(e[v]);o[v]=c});var s;function l(v){return FS(t,s,v)}function u(v,c){qP(t,s,v,c)}t.each(f);function f(v,c){s=v;var h=t.getRawDataItem(s);if(!(h&&h.visualMap===!1))for(var d=n.call(a,v),p=e[d],g=o[d],y=0,m=g.length;y<m;y++){var _=g[y];p[_]&&p[_].applyVisual(v,l,u)}}}function SQ(r,e,t,n){var a={};return M(r,function(i){var o=At.prepareVisualTypes(e[i]);a[i]=o}),{progress:function(o,s){var l;n!=null&&(l=s.getDimensionIndex(n));function u(x){return FS(s,v,x)}function f(x,w){qP(s,v,x,w)}for(var v,c=s.getStore();(v=o.next())!=null;){var h=s.getRawDataItem(v);if(!(h&&h.visualMap===!1))for(var d=n!=null?c.get(l,v):v,p=t(d),g=e[p],y=a[p],m=0,_=y.length;m<_;m++){var S=y[m];g[S]&&g[S].applyVisual(d,u,f)}}}}}function xQ(r){var e=r.brushType,t={point:function(n){return bD[e].point(n,t,r)},rect:function(n){return bD[e].rect(n,t,r)}};return t}var bD={lineX:CD(0),lineY:CD(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])&&Qi(t.range,r[0],r[1])},rect:function(r,e,t){var n=t.range;if(!r||n.length<=1)return!1;var a=r.x,i=r.y,o=r.width,s=r.height,l=n[0];if(Qi(n,a,i)||Qi(n,a+o,i)||Qi(n,a,i+s)||Qi(n,a+o,i+s)||se.create(r).contain(l[0],l[1])||_u(a,i,a+o,i,n)||_u(a,i,a,i+s,n)||_u(a+o,i,a+o,i+s,n)||_u(a,i+s,a+o,i+s,n))return!0}}};function CD(r){var e=["x","y"],t=["width","height"];return{point:function(n,a,i){if(n){var o=i.range,s=n[r];return fu(s,o)}},rect:function(n,a,i){if(n){var o=i.range,s=[n[e[r]],n[e[r]]+n[t[r]]];return s[1]<s[0]&&s.reverse(),fu(s[0],o)||fu(s[1],o)||fu(o[0],s)||fu(o[1],s)}}}}function fu(r,e){return e[0]<=r&&r<=e[1]}var TD=["inBrush","outOfBrush"],Fy="__ecBrushSelect",C_="__ecInBrushSelectEvent";function DN(r){r.eachComponent({mainType:"brush"},function(e){var t=e.brushTargetManager=new gx(e.option,r);t.setInputRanges(e.areas,r)})}var wQ=Rf(bQ);function bQ(r,e,t){var n=[],a,i;r.eachComponent({mainType:"brush"},function(o){t&&t.type==="takeGlobalCursor"&&o.setBrushOption(t.key==="brush"?t.brushOption:{brushType:!1})}),DN(r),r.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:ae(o.areas),selected:[]};n.push(l);var u=o.option,f=u.brushLink,v=[],c=[],h=[],d=!1;s||(a=u.throttleType,i=u.throttleDelay);var p=$(o.areas,function(x){var w=MQ[x.brushType],b=le({boundingRect:w?w(x):void 0},x);return b.selectors=xQ(b),b}),g=b_(o.option,TD,function(x){x.mappingMethod="fixed"});U(f)&&M(f,function(x){v[x]=1});function y(x){return f==="all"||!!v[x]}function m(x){return!!x.length}r.eachSeries(function(x,w){var b=h[w]=[];x.subType==="parallel"?_(x,w):S(x,w,b)});function _(x,w){var b=x.coordinateSystem;d=d||b.hasAxisBrushed(),y(w)&&b.eachActiveState(x.getData(),function(T,C){T==="active"&&(c[C]=1)})}function S(x,w,b){if(!(!x.brushSelector||AQ(o,w))&&(M(p,function(C){o.brushTargetManager.controlSeries(C,x,r)&&b.push(C),d=d||m(b)}),y(w)&&m(b))){var T=x.getData();T.each(function(C){AD(x,b,T,C)&&(c[C]=1)})}}r.eachSeries(function(x,w){var b={seriesId:x.id,seriesIndex:w,seriesName:x.name,dataIndex:[]};l.selected.push(b);var T=h[w],C=x.getData(),A=y(w)?function(D){return c[D]?(b.dataIndex.push(C.getRawIndex(D)),"inBrush"):"outOfBrush"}:function(D){return AD(x,T,C,D)?(b.dataIndex.push(C.getRawIndex(D)),"inBrush"):"outOfBrush"};(y(w)?d:m(T))&&_Q(TD,g,C,A)})}),CQ(e,a,i,n,t)}function CQ(r,e,t,n,a){if(a){var i=r.getZr();if(!i[C_]){i[Fy]||(i[Fy]=TQ);var o=Ml(i,Fy,t,e);o(r,n)}}}function TQ(r,e){if(!r.isDisposed()){var t=r.getZr();t[C_]=!0,r.dispatchAction({type:"brushSelect",batch:e}),t[C_]=!1}}function AD(r,e,t,n){for(var a=0,i=e.length;a<i;a++){var o=e[a];if(r.brushSelector(n,t,o.selectors,o))return!0}}function AQ(r,e){var t=r.option.seriesIndex;return t!=null&&t!=="all"&&(U(t)?pe(t,e)<0:e!==t)}var MQ={rect:function(r){return MD(r.range)},polygon:function(r){for(var e,t=r.range,n=0,a=t.length;n<a;n++){e=e||[Ot(),Ot()];var i=t[n];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&&MD(e)}};function MD(r){return new se(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var DQ=(function(r){B(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,n){this.ecModel=t,this.api=n,this.model,(this._brushController=new z1(n.getZr())).on("brush",q(this._onBrush,this)).mount()},e.prototype.render=function(t,n,a,i){this.model=t,this._updateController(t,n,a,i)},e.prototype.updateTransform=function(t,n,a,i){DN(n),this._updateController(t,n,a,i)},e.prototype.updateVisual=function(t,n,a,i){this.updateTransform(t,n,a,i)},e.prototype.updateView=function(t,n,a,i){this._updateController(t,n,a,i)},e.prototype._updateController=function(t,n,a,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(a)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var n=this.model.id,a=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:ae(a),$from:n}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:ae(a),$from:n})},e.type="brush",e})(Qe),IQ=(function(r){B(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,n){var a=this.option;!n&&MN(a,t,["inBrush","outOfBrush"]);var i=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:this.option.defaultOutOfBrushColor},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=$(t,function(n){return DD(this.option,n)},this))},e.prototype.setBrushOption=function(t){this.brushOption=DD(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:N.color.backgroundTint,borderColor:N.color.borderTint},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4,defaultOutOfBrushColor:N.color.disabled},e})(Me);function DD(r,e){return _e({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new Ie(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},e,!0)}var LQ=["rect","polygon","lineX","lineY","keep","clear"],PQ=(function(r){B(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,n,a){var i,o,s;n.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,M(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,n,a){this.render(t,n,a)},e.prototype.getIcons=function(){var t=this.model,n=t.get("icon",!0),a={};return M(t.get("type",!0),function(i){n[i]&&(a[i]=n[i])}),a},e.prototype.onclick=function(t,n,a){var i=this._brushType,o=this._brushMode;a==="clear"?(n.dispatchAction({type:"axisAreaSelect",intervals:[]}),n.dispatchAction({type:"brush",command:"clear",areas:[]})):n.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:a==="keep"?i:i===a?!1:a,brushMode:a==="keep"?o==="multiple"?"single":"multiple":o}})},e.getDefaultOption=function(t){var n={show:!0,type:LQ.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 n},e})(Rn);function RQ(r){r.registerComponentView(DQ),r.registerComponentModel(IQ),r.registerPreprocessor(mQ),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,wQ),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(n){n.setAreas(e.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},ot),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},ot),Ls("brush",PQ)}var EQ=(function(r){B(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:"center",top:N.size.m,backgroundColor:N.color.transparent,borderColor:N.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:N.color.primary},subtextStyle:{fontSize:12,color:N.color.quaternary}},e})(Me),kQ=(function(r){B(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,n,a){if(this.group.removeAll(),!!t.get("show")){var i=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=Q(t.get("textBaseline"),t.get("textVerticalAlign")),f=new Re({style:Ze(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),v=f.getBoundingRect(),c=t.get("subtext"),h=new Re({style:Ze(s,{text:c,fill:s.getTextColor(),y:v.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=t.get("link"),p=t.get("sublink"),g=t.get("triggerEvent",!0);f.silent=!d&&!g,h.silent=!p&&!g,d&&f.on("click",function(){mh(d,"_"+t.get("target"))}),p&&h.on("click",function(){mh(p,"_"+t.get("subtarget"))}),ve(f).eventData=ve(h).eventData=g?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(f),c&&i.add(h);var y=i.getBoundingRect(),m=t.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=bt(t,a),S=tt(m,_.refContainer,t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?S.x+=S.width:l==="center"&&(S.x+=S.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?S.y+=S.height:u==="middle"&&(S.y+=S.height/2),u=u||"top"),i.x=S.x,i.y=S.y,i.markRedraw();var x={align:l,verticalAlign:u};f.setStyle(x),h.setStyle(x),y=i.getBoundingRect();var w=S.margin,b=t.getItemStyle(["color","opacity"]);b.fill=t.get("backgroundColor");var T=new be({shape:{x:y.x-w[3],y:y.y-w[0],width:y.width+w[1]+w[3],height:y.height+w[0]+w[2],r:t.get("borderRadius")},style:b,subPixelOptimize:!0,silent:!0});i.add(T)}},e.type="title",e})(Qe);function OQ(r){r.registerComponentModel(EQ),r.registerComponentView(kQ)}var ID=(function(r){B(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,n,a){this.mergeDefaultAndTheme(t,a),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 n=this._data.count();this.option.loop?t=(t%n+n)%n:(t>=n&&(t=n-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,n=t.data||[],a=t.axisType,i=this._names=[],o;a==="category"?(o=[],M(n,function(u,f){var v=mt(ml(u),""),c;fe(u)?(c=ae(u),c.value=f):c=f,o.push(c),i.push(v)})):o=n;var s={category:"ordinal",time:"time",value:"number"}[a]||"number",l=this._data=new nr([{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:N.size.m,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:N.color.secondary},data:[]},e})(Me),IN=(function(r){B(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=pi(ID.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:N.color.border,borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:N.color.accent10},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:N.color.tertiary},itemStyle:{color:N.color.accent20,borderWidth:0},checkpointStyle:{symbol:"circle",symbolSize:15,color:N.color.accent50,borderColor:N.color.accent50,borderWidth:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0, 0, 0, 0)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10.6699C11.5 9.90014 12.3333 9.41887 13 9.80371L20.5 14.1338C21.1667 14.5187 21.1667 15.4813 20.5 15.8662L13 20.1963C12.3333 20.5811 11.5 20.0999 11.5 19.3301V10.6699Z",stopIcon:"path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10C12.3284 10 13 10.6716 13 11.5V18.5C13 19.3284 12.3284 20 11.5 20C10.6716 20 10 19.3284 10 18.5V11.5C10 10.6716 10.6716 10 11.5 10ZM18.5 10C19.3284 10 20 10.6716 20 11.5V18.5C20 19.3284 19.3284 20 18.5 20C17.6716 20 17 19.3284 17 18.5V11.5C17 10.6716 17.6716 10 18.5 10Z",nextIcon:"path://M0.838834 18.7383C0.253048 18.1525 0.253048 17.2028 0.838834 16.617L7.55635 9.89949L0.838834 3.18198C0.253048 2.59619 0.253048 1.64645 0.838834 1.06066C1.42462 0.474874 2.37437 0.474874 2.96015 1.06066L10.7383 8.83883L10.8412 8.95277C11.2897 9.50267 11.2897 10.2963 10.8412 10.8462L10.7383 10.9602L2.96015 18.7383C2.37437 19.3241 1.42462 19.3241 0.838834 18.7383Z",prevIcon:"path://M10.9602 1.06066C11.5459 1.64645 11.5459 2.59619 10.9602 3.18198L4.24264 9.89949L10.9602 16.617C11.5459 17.2028 11.5459 18.1525 10.9602 18.7383C10.3744 19.3241 9.42462 19.3241 8.83883 18.7383L1.06066 10.9602L0.957771 10.8462C0.509245 10.2963 0.509245 9.50267 0.957771 8.95277L1.06066 8.83883L8.83883 1.06066C9.42462 0.474874 10.3744 0.474874 10.9602 1.06066Z",prevBtnSize:18,nextBtnSize:18,color:N.color.accent50,borderColor:N.color.accent50,borderWidth:0},emphasis:{label:{show:!0,color:N.color.accent60},itemStyle:{color:N.color.accent60,borderColor:N.color.accent60},controlStyle:{color:N.color.accent70,borderColor:N.color.accent70}},progress:{lineStyle:{color:N.color.accent30},itemStyle:{color:N.color.accent40}},data:[]}),e})(ID);xt(IN,$d.prototype);var NQ=(function(r){B(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),BQ=(function(r){B(e,r);function e(t,n,a,i){var o=r.call(this,t,n,a)||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})(ln),Gy=Math.PI,LD=me(),VQ=(function(r){B(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,n){this.api=n},e.prototype.render=function(t,n,a){if(this.model=t,this.api=a,this.ecModel=n,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,a),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,t);t.formatTooltip=function(u){var f=l.scale.getLabel({value:u});return pt("nameValue",{noName:!0,value:f})},M(["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,n){var a=t.get(["label","position"]),i=t.get("orient"),o=zQ(t,n),s;a==null||a==="auto"?s=i==="horizontal"?o.y+o.height/2<n.getHeight()/2?"-":"+":o.x+o.width/2<n.getWidth()/2?"+":"-":Z(a)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[i][a]:s=a;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},f={horizontal:0,vertical:Gy/2},v=i==="vertical"?o.height:o.width,c=t.getModel("controlStyle"),h=c.get("show",!0),d=h?c.get("itemSize"):0,p=h?c.get("itemGap"):0,g=d+p,y=t.get(["label","rotate"])||0;y=y*Gy/180;var m,_,S,x=c.get("position",!0),w=h&&c.get("showPlayBtn",!0),b=h&&c.get("showPrevBtn",!0),T=h&&c.get("showNextBtn",!0),C=0,A=v;x==="left"||x==="bottom"?(w&&(m=[0,0],C+=g),b&&(_=[C,0],C+=g),T&&(S=[A-d,0],A-=g)):(w&&(m=[A-d,0],A-=g),b&&(_=[0,0],C+=g),T&&(S=[A-d,0],A-=g));var D=[C,A];return t.get("inverse")&&D.reverse(),{viewRect:o,mainLength:v,orient:i,rotation:f[i],labelRotation:y,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[i],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[i],playPosition:m,prevBtnPosition:_,nextBtnPosition:S,axisExtent:D,controlSize:d,controlGap:p}},e.prototype._position=function(t,n){var a=this._mainGroup,i=this._labelGroup,o=t.viewRect;if(t.orient==="vertical"){var s=nt(),l=o.x,u=o.y+o.height;kn(s,s,[-l,-u]),hi(s,s,-Gy/2),kn(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var f=m(o),v=m(a.getBoundingRect()),c=m(i.getBoundingRect()),h=[a.x,a.y],d=[i.x,i.y];d[0]=h[0]=f[0][0];var p=t.labelPosOpt;if(p==null||Z(p)){var g=p==="+"?0:1;_(h,v,f,1,g),_(d,c,f,1,1-g)}else{var g=p>=0?0:1;_(h,v,f,1,g),d[1]=h[1]+p}a.setPosition(h),i.setPosition(d),a.rotation=i.rotation=t.rotation,y(a),y(i);function y(S){S.originX=f[0][0]-S.x,S.originY=f[1][0]-S.y}function m(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function _(S,x,w,b,T){S[b]+=w[b][T]-x[b][T]}},e.prototype._createAxis=function(t,n){var a=n.getData(),i=n.get("axisType")||n.get("type");i!=="category"&&i!=="time"&&(i="value");var o=$f(n,i,!1);o.getTicks=function(){return a.mapArray(["value"],function(u){return{value:u}})};var s=a.getDataExtent("value");o.setExtent(s[0],s[1]),ZR(o,{fixMinMax:[!0,!0]});var l=new BQ("value",o,t.axisExtent,i);return l.model=n,l},e.prototype._createGroup=function(t){var n=this[t]=new oe;return this.group.add(n),n},e.prototype._renderAxisLine=function(t,n,a,i){var o=a.getExtent();if(i.get(["lineStyle","show"])){var s=new dt({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:G({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(s);var l=this._progressLine=new dt({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:le({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});n.add(l)}},e.prototype._renderAxisTick=function(t,n,a,i){var o=this,s=i.getData(),l=a.scale.getTicks();this._tickSymbols=[],M(l,function(u){var f=a.dataToCoord(u.value),v=s.getItemModel(u.value),c=v.getModel("itemStyle"),h=v.getModel(["emphasis","itemStyle"]),d=v.getModel(["progress","itemStyle"]),p={x:f,y:0,onclick:q(o._changeTimeline,o,u.value)},g=PD(v,c,n,p);g.ensureState("emphasis").style=h.getItemStyle(),g.ensureState("progress").style=d.getItemStyle(),po(g);var y=ve(g);v.get("tooltip")?(y.dataIndex=u.value,y.dataModel=i):y.dataIndex=y.dataModel=null,o._tickSymbols.push(g)})},e.prototype._renderAxisLabel=function(t,n,a,i){var o=this,s=a.getLabelModel();if(s.get("show")){var l=i.getData(),u=a.getViewLabels();this._tickLabels=[],M(u,function(f){if(!f.tick.offInterval){var v=f.tick.value,c=l.getItemModel(v),h=c.getModel("label"),d=c.getModel(["emphasis","label"]),p=c.getModel(["progress","label"]),g=a.dataToCoord(v),y=new Re({x:g,y:0,rotation:t.labelRotation-t.rotation,onclick:q(o._changeTimeline,o,v),silent:!1,style:Ze(h,{text:f.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});y.ensureState("emphasis").style=Ze(d),y.ensureState("progress").style=Ze(p),n.add(y),po(y),LD(y).dataIndex=v,o._tickLabels.push(y)}})}},e.prototype._renderControl=function(t,n,a,i){var o=t.controlSize,s=t.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),f=i.getPlayState(),v=i.get("inverse",!0);c(t.nextBtnPosition,"next",q(this._changeTimeline,this,v?"-":"+")),c(t.prevBtnPosition,"prev",q(this._changeTimeline,this,v?"+":"-")),c(t.playPosition,f?"stop":"play",q(this._handlePlayClick,this,!f),!0);function c(h,d,p,g){if(h){var y=Nn(Q(i.get(["controlStyle",d+"BtnSize"]),o),o),m=[0,-y/2,y,y],_=FQ(i,d+"Icon",m,{x:h[0],y:h[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:p});_.ensureState("emphasis").style=u,n.add(_),po(_)}}},e.prototype._renderCurrentPointer=function(t,n,a,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,f={onCreate:function(v){v.draggable=!0,v.drift=q(u._handlePointerDrag,u),v.ondragend=q(u._handlePointerDragend,u),RD(v,u._progressLine,s,a,i,!0)},onUpdate:function(v){RD(v,u._progressLine,s,a,i)}};this._currentPointer=PD(l,l,this._mainGroup,{},this._currentPointer,f)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,n,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,n){var a=this._toAxisCoord(t)[0],i=this._axis,o=Nt(i.getExtent().slice());a>o[1]&&(a=o[1]),a<o[0]&&(a=o[0]),this._currentPointer.x=a,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=a,s.dirty());var l=this._findNearestTick(a),u=this.model;(n||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 n=t.model;t._changeTimeline(n.getCurrentIndex()+(n.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},e.prototype._toAxisCoord=function(t){var n=this._mainGroup.getLocalTransform();return Qr(t,n,!0)},e.prototype._findNearestTick=function(t){var n=this.model.getData(),a=1/0,i,o=this._axis;return n.each(["value"],function(s,l){var u=o.dataToCoord(s),f=Math.abs(u-t);f<a&&(a=f,i=l)}),i},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(t){var n=this.model.getCurrentIndex();t==="+"?t=n+1:t==="-"&&(t=n-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},e.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),n=this._tickSymbols,a=this._tickLabels;if(n)for(var i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",i<t);if(a)for(var i=0;i<a.length;i++)a&&a[i]&&a[i].toggleState("progress",LD(a[i]).dataIndex<=t)},e.type="timeline.slider",e})(NQ);function zQ(r,e){return tt(r.getBoxLayoutParams(),bt(r,e).refContainer,r.get("padding"))}function FQ(r,e,t,n){var a=n.style,i=Bf(r.get(["controlStyle",e]),n||{},new se(t[0],t[1],t[2],t[3]));return a&&i.setStyle(a),i}function PD(r,e,t,n,a,i){var o=e.get("color");if(a)a.setColor(o),t.add(a),i&&i.onUpdate(a);else{var s=r.get("symbol");a=gt(s,-1,-1,2,2,o),a.setStyle("strokeNoScale",!0),t.add(a),i&&i.onCreate(a)}var l=e.getItemStyle(["color"]);a.setStyle(l),n=_e({rectHover:!0,z2:100},n,!0);var u=Il(r.get("symbolSize"));n.scaleX=u[0]/2,n.scaleY=u[1]/2;var f=Ko(r.get("symbolOffset"),u);f&&(n.x=(n.x||0)+f[0],n.y=(n.y||0)+f[1]);var v=r.get("symbolRotate");return n.rotation=(v||0)*Math.PI/180||0,a.attr(n),a.updateTransform(),a}function RD(r,e,t,n,a,i){if(!r.dragging){var o=a.getModel("checkpointStyle"),s=n.dataToCoord(a.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 GQ(r){r.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(e,t,n){var a=t.getComponent("timeline");return a&&e.currentIndex!=null&&(a.setCurrentIndex(e.currentIndex),!a.get("loop",!0)&&a.isIndexMax()&&a.getPlayState()&&(a.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),t.resetOption("timeline",{replaceMerge:a.get("replaceMerge",!0)}),le({currentIndex:a.option.currentIndex},e)}),r.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(e,t){var n=t.getComponent("timeline");n&&e.playState!=null&&n.setPlayState(e.playState)})}function HQ(r){var e=r&&r.timeline;U(e)||(e=e?[e]:[]),M(e,function(t){t&&UQ(t)})}function UQ(r){var e=r.type,t={number:"value",time:"time"};if(t[e]&&(r.axisType=t[e],delete r.type),ED(r),ro(r,"controlPosition")){var n=r.controlStyle||(r.controlStyle={});ro(n,"position")||(n.position=r.controlPosition),n.position==="none"&&!ro(n,"show")&&(n.show=!1,delete n.position),delete r.controlPosition}M(r.data||[],function(a){fe(a)&&!U(a)&&(!ro(a,"value")&&ro(a,"name")&&(a.value=a.name),ED(a))})}function ED(r){var e=r.itemStyle||(r.itemStyle={}),t=e.emphasis||(e.emphasis={}),n=r.label||r.label||{},a=n.normal||(n.normal={}),i={normal:1,emphasis:1};M(n,function(o,s){!i[s]&&!ro(a,s)&&(a[s]=o)}),t.label&&!ro(n,"emphasis")&&(n.emphasis=t.label,delete t.label)}function ro(r,e){return r.hasOwnProperty(e)}function $Q(r){r.registerComponentModel(IN),r.registerComponentView(VQ),r.registerSubTypeDefaulter("timeline",function(){return"slider"}),GQ(r),r.registerPreprocessor(HQ)}function _x(r,e){if(!r)return!1;for(var t=U(r)?r:[r],n=0;n<t.length;n++)if(t[n]&&t[n][e])return!0;return!1}function cc(r){So(r,"label",["show"])}var hc=me(),Hn=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.createdBySelf=!1,t.preventAutoZ=!0,t}return e.prototype.init=function(t,n,a){this.mergeDefaultAndTheme(t,a),this._mergeOption(t,a,!1,!0)},e.prototype.isAnimationEnabled=function(){if(Le.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,n){this._mergeOption(t,n,!1,!1)},e.prototype._mergeOption=function(t,n,a,i){var o=this.mainType;a||n.eachSeries(function(s){var l=s.get(this.mainType,!0),u=hc(s)[o];if(!l||!l.data){hc(s)[o]=null;return}u?u._mergeOption(l,n,!0):(i&&cc(l),M(l.data,function(f){f instanceof Array?(cc(f[0]),cc(f[1])):cc(f)}),u=this.createMarkerModelFromSeries(l,this,n),G(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),hc(s)[o]=u},this)},e.prototype.formatTooltip=function(t,n,a){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t);return pt("section",{header:this.name,blocks:[pt("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,n){var a=$d.prototype.getDataParams.call(this,t,n),i=this.__hostSeries;return i&&(a.seriesId=i.id,a.seriesName=i.name,a.seriesType=i.subType),a},e.getMarkerModelFromSeries=function(t,n){return hc(t)[n]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e})(Me);xt(Hn,$d.prototype);var WQ=(function(r){B(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,n,a){return new e(t,n,a)},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})(Hn);function T_(r){return!(isNaN(parseFloat(r.x))&&isNaN(parseFloat(r.y)))}function YQ(r){return!isNaN(parseFloat(r.x))&&!isNaN(parseFloat(r.y))}function dc(r,e,t,n,a,i,o){var s=[],l=ii(e,a),u=l?e.getCalculationInfo("stackResultDimension"):a,f=sd(e,u,r),v=e.hostModel,c=v.indicesOfNearest(t,u,f)[0];s[i]=e.get(n,c),s[o]=e.get(u,c);var h=e.get(a,c),d=ea(e.get(a,c));return d=Math.min(d,20),d>=0&&(s[o]=+s[o].toFixed(d)),[s,h]}var pc={min:xe(dc,"min"),max:xe(dc,"max"),average:xe(dc,"average"),median:xe(dc,"median")};function If(r,e){if(e){var t=r.getData(),n=r.coordinateSystem,a=n&&n.dimensions;if(!YQ(e)&&!U(e.coord)&&U(a)){var i=LN(e,t,n,r);if(e=ae(e),e.type&&pc[e.type]&&i.baseAxis&&i.valueAxis){var o=pe(a,i.baseAxis.dim),s=pe(a,i.valueAxis.dim),l=pc[e.type](t,i.valueAxis.dim,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||!U(a)){e.coord=[];var u=r.getBaseAxis();if(u&&e.type&&pc[e.type]){var f=n.getOtherAxis(u);f&&(e.value=sd(t,t.mapDimension(f.dim),e.type))}}else for(var v=e.coord,c=0;c<2;c++)pc[v[c]]&&(v[c]=sd(t,t.mapDimension(a[c]),v[c]));return e}}function LN(r,e,t,n){var a={};return r.valueIndex!=null||r.valueDim!=null?(a.valueDataDim=r.valueIndex!=null?e.getDimension(r.valueIndex):r.valueDim,a.valueAxis=t.getAxis(XQ(n,a.valueDataDim)),a.baseAxis=t.getOtherAxis(a.valueAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim)):(a.baseAxis=n.getBaseAxis(),a.valueAxis=t.getOtherAxis(a.baseAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim),a.valueDataDim=e.mapDimension(a.valueAxis.dim)),a}function XQ(r,e){var t=r.getData().getDimensionInfo(e);return t&&t.coordDim}function Lf(r,e){return r&&r.containData&&e.coord&&!T_(e)?r.containData(e.coord):!0}function ZQ(r,e,t){return r&&r.containZone&&e.coord&&t.coord&&!T_(e)&&!T_(t)?r.containZone(e.coord,t.coord):!0}function PN(r,e){return r?function(t,n,a,i){var o=i<2?t.coord&&t.coord[i]:t.value;return Ja(o,e[i])}:function(t,n,a,i){return Ja(t.value,e[i])}}function sd(r,e,t){if(t==="average"){var n=0,a=0;return r.each(e,function(i,o){isNaN(i)||(n+=i,a++)}),n/a}else return t==="median"?r.getMedian(e):r.getDataExtent(e)[t==="max"?1:0]}var Hy=me(),Sx=(function(r){B(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=K()},e.prototype.render=function(t,n,a){var i=this,o=this.markerGroupMap;o.each(function(s){Hy(s).keep=!1}),n.eachSeries(function(s){var l=Hn.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,n,a)}),o.each(function(s){!Hy(s).keep&&i.group.remove(s.group)}),jQ(n,o,this.type)},e.prototype.markKeep=function(t){Hy(t).keep=!0},e.prototype.toggleBlurSeries=function(t,n){var a=this;M(t,function(i){var o=Hn.getMarkerModelFromSeries(i,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?s2(l):cS(l))})}})},e.type="marker",e})(Qe);function jQ(r,e,t){r.eachSeries(function(n){var a=Hn.getMarkerModelFromSeries(n,t),i=e.get(n.id);if(a&&i&&i.group){var o=Ao(a),s=o.z,l=o.zlevel;Vd(i.group,s,l)}})}function kD(r,e,t){var n=e.coordinateSystem,a=t.getWidth(),i=t.getHeight(),o=n&&n.getArea&&n.getArea();r.each(function(s){var l=r.getItemModel(s),u=l.get("relativeTo")==="coordinate",f=u?o?o.width:0:a,v=u?o?o.height:0:i,c=u&&o?o.x:0,h=u&&o?o.y:0,d,p=j(l.get("x"),f)+c,g=j(l.get("y"),v)+h;if(!isNaN(p)&&!isNaN(g))d=[p,g];else if(e.getMarkerPosition)d=e.getMarkerPosition(r.getValues(r.dimensions,s));else if(n){var y=r.get(n.dimensions[0],s),m=r.get(n.dimensions[1],s);d=n.dataToPoint([y,m])}isNaN(p)||(d[0]=p),isNaN(g)||(d[1]=g),r.setItemLayout(s,d)})}var qQ=(function(r){B(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,n,a){n.eachSeries(function(i){var o=Hn.getMarkerModelFromSeries(i,"markPoint");o&&(kD(o.getData(),i,a),this.markerGroupMap.get(i.id).updateLayout())},this)},e.prototype.renderSeries=function(t,n,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new jf),v=KQ(o,t,n);n.setData(v),kD(n.getData(),t,i),v.each(function(c){var h=v.getItemModel(c),d=h.getShallow("symbol"),p=h.getShallow("symbolSize"),g=h.getShallow("symbolRotate"),y=h.getShallow("symbolOffset"),m=h.getShallow("symbolKeepAspect");if(ie(d)||ie(p)||ie(g)||ie(y)){var _=n.getRawValue(c),S=n.getDataParams(c);ie(d)&&(d=d(_,S)),ie(p)&&(p=p(_,S)),ie(g)&&(g=g(_,S)),ie(y)&&(y=y(_,S))}var x=h.getModel("itemStyle").getItemStyle(),w=h.get("z2"),b=Gf(l,"color");x.fill||(x.fill=b),v.setItemVisual(c,{z2:Q(w,0),symbol:d,symbolSize:p,symbolRotate:g,symbolOffset:y,symbolKeepAspect:m,style:x})}),f.updateData(v),this.group.add(f.group),v.eachItemGraphicEl(function(c){c.traverse(function(h){ve(h).dataModel=n})}),this.markKeep(f),f.group.silent=n.get("silent")||t.get("silent")},e.type="markPoint",e})(Sx);function KQ(r,e,t){var n;r?n=$(r&&r.dimensions,function(s){var l=e.getData(),u=l.getDimensionInfo(l.mapDimension(s))||{};return G(G({},u),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new nr(n,t),i=$(t.get("data"),xe(If,e));r&&(i=Fe(i,xe(Lf,r)));var o=PN(!!r,n);return a.initData(i,null,o),a}function JQ(r){r.registerComponentModel(WQ),r.registerComponentView(qQ),r.registerPreprocessor(function(e){_x(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var QQ=(function(r){B(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,n,a){return new e(t,n,a)},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})(Hn),gc=me(),eee=function(r,e,t,n){var a=r.getData(),i;if(U(n))i=n;else{var o=n.type;if(o==="min"||o==="max"||o==="average"||o==="median"||n.xAxis!=null||n.yAxis!=null){var s=void 0,l=void 0;if(n.yAxis!=null||n.xAxis!=null)s=e.getAxis(n.yAxis!=null?"y":"x"),l=tr(n.yAxis,n.xAxis);else{var u=LN(n,a,e,r);s=u.valueAxis;var f=AR(a,u.valueDataDim);l=sd(a,f,o)}var v=s.dim==="x"?0:1,c=1-v,h=ae(n),d={coord:[]};h.type=null,h.coord=[],h.coord[c]=-1/0,d.coord[c]=1/0;var p=t.get("precision");p>=0&&Ee(l)&&(l=+l.toFixed(Math.min(p,20))),h.coord[v]=d.coord[v]=l,i=[h,d,{type:o,valueIndex:n.valueIndex,value:l}]}else i=[]}var g=[If(r,i[0]),If(r,i[1]),G({},i[2])];return g[2].type=g[2].type||null,_e(g[2],g[0]),_e(g[2],g[1]),g};function ld(r){return!isNaN(r)&&!isFinite(r)}function OD(r,e,t,n){var a=1-r,i=n.dimensions[r];return ld(e[a])&&ld(t[a])&&e[r]===t[r]&&n.getAxis(i).containData(e[r])}function tee(r,e){if(r.type==="cartesian2d"){var t=e[0].coord,n=e[1].coord;if(t&&n&&(OD(1,t,n,r)||OD(0,t,n,r)))return!0}return Lf(r,e[0])&&Lf(r,e[1])}function Uy(r,e,t,n,a){var i=n.coordinateSystem,o=r.getItemModel(e),s,l=j(o.get("x"),a.getWidth()),u=j(o.get("y"),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition)s=n.getMarkerPosition(r.getValues(r.dimensions,e));else{var f=i.dimensions,v=r.get(f[0],e),c=r.get(f[1],e);s=i.dataToPoint([v,c])}if(Eo(i,"cartesian2d")){var h=i.getAxis("x"),d=i.getAxis("y"),f=i.dimensions;ld(r.get(f[0],e))?s[0]=h.toGlobalCoord(h.getExtent()[t?0:1]):ld(r.get(f[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 ree=(function(r){B(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,n,a){n.eachSeries(function(i){var o=Hn.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=gc(o).from,u=gc(o).to;l.each(function(f){Uy(l,f,!0,i,a),Uy(u,f,!1,i,a)}),s.each(function(f){s.setItemLayout(f,[l.getItemLayout(f),u.getItemLayout(f)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,n,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new V1);this.group.add(f.group);var v=nee(o,t,n),c=v.from,h=v.to,d=v.line;gc(n).from=c,gc(n).to=h,n.setData(d);var p=n.get("symbol"),g=n.get("symbolSize"),y=n.get("symbolRotate"),m=n.get("symbolOffset");U(p)||(p=[p,p]),U(g)||(g=[g,g]),U(y)||(y=[y,y]),U(m)||(m=[m,m]),v.from.each(function(S){_(c,S,!0),_(h,S,!1)}),d.each(function(S){var x=d.getItemModel(S),w=x.getModel("lineStyle").getLineStyle();d.setItemLayout(S,[c.getItemLayout(S),h.getItemLayout(S)]);var b=x.get("z2");w.stroke==null&&(w.stroke=c.getItemVisual(S,"style").fill),d.setItemVisual(S,{z2:Q(b,0),fromSymbolKeepAspect:c.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:c.getItemVisual(S,"symbolOffset"),fromSymbolRotate:c.getItemVisual(S,"symbolRotate"),fromSymbolSize:c.getItemVisual(S,"symbolSize"),fromSymbol:c.getItemVisual(S,"symbol"),toSymbolKeepAspect:h.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(S,"symbolOffset"),toSymbolRotate:h.getItemVisual(S,"symbolRotate"),toSymbolSize:h.getItemVisual(S,"symbolSize"),toSymbol:h.getItemVisual(S,"symbol"),style:w})}),f.updateData(d),v.line.eachItemGraphicEl(function(S){ve(S).dataModel=n,S.traverse(function(x){ve(x).dataModel=n})});function _(S,x,w){var b=S.getItemModel(x);Uy(S,x,w,t,i);var T=b.getModel("itemStyle").getItemStyle();T.fill==null&&(T.fill=Gf(l,"color")),S.setItemVisual(x,{symbolKeepAspect:b.get("symbolKeepAspect"),symbolOffset:Q(b.get("symbolOffset",!0),m[w?0:1]),symbolRotate:Q(b.get("symbolRotate",!0),y[w?0:1]),symbolSize:Q(b.get("symbolSize"),g[w?0:1]),symbol:Q(b.get("symbol",!0),p[w?0:1]),style:T})}this.markKeep(f),f.group.silent=n.get("silent")||t.get("silent")},e.type="markLine",e})(Sx);function nee(r,e,t){var n;r?n=$(r&&r.dimensions,function(u){var f=e.getData(),v=f.getDimensionInfo(f.mapDimension(u))||{};return G(G({},v),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new nr(n,t),i=new nr(n,t),o=new nr([],t),s=$(t.get("data"),xe(eee,e,r,t));r&&(s=Fe(s,xe(tee,r)));var l=PN(!!r,n);return a.initData($(s,function(u){return u[0]}),null,l),i.initData($(s,function(u){return u[1]}),null,l),o.initData($(s,function(u){return u[2]})),o.hasItemOption=!0,{from:a,to:i,line:o}}function aee(r){r.registerComponentModel(QQ),r.registerComponentView(ree),r.registerPreprocessor(function(e){_x(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var iee=(function(r){B(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,n,a){return new e(t,n,a)},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})(Hn),yc=me(),oee=function(r,e,t,n){var a=n[0],i=n[1];if(!(!a||!i)){var o=If(r,a),s=If(r,i),l=o.coord,u=s.coord;l[0]=tr(l[0],-1/0),l[1]=tr(l[1],-1/0),u[0]=tr(u[0],1/0),u[1]=tr(u[1],1/0);var f=W_([{},o,s]);return f.coord=[o.coord,s.coord],f.x0=o.x,f.y0=o.y,f.x1=s.x,f.y1=s.y,f}};function ud(r){return!isNaN(r)&&!isFinite(r)}function ND(r,e,t,n){var a=1-r;return ud(e[a])&&ud(t[a])}function see(r,e){var t=e.coord[0],n=e.coord[1],a={coord:t,x:e.x0,y:e.y0},i={coord:n,x:e.x1,y:e.y1};return Eo(r,"cartesian2d")?t&&n&&(ND(1,t,n)||ND(0,t,n))?!0:ZQ(r,a,i):Lf(r,a)||Lf(r,i)}function BD(r,e,t,n,a){var i=n.coordinateSystem,o=r.getItemModel(e),s,l=j(o.get(t[0]),a.getWidth()),u=j(o.get(t[1]),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition){var f=r.getValues(["x0","y0"],e),v=r.getValues(["x1","y1"],e),c=i.clampData(f),h=i.clampData(v),d=[];t[0]==="x0"?d[0]=c[0]>h[0]?v[0]:f[0]:d[0]=c[0]>h[0]?f[0]:v[0],t[1]==="y0"?d[1]=c[1]>h[1]?v[1]:f[1]:d[1]=c[1]>h[1]?f[1]:v[1],s=n.getMarkerPosition(d,t,!0)}else{var p=r.get(t[0],e),g=r.get(t[1],e),y=[p,g];i.clampData&&i.clampData(y,y),s=i.dataToPoint(y,!0)}if(Eo(i,"cartesian2d")){var m=i.getAxis("x"),_=i.getAxis("y"),p=r.get(t[0],e),g=r.get(t[1],e);ud(p)?s[0]=m.toGlobalCoord(m.getExtent()[t[0]==="x0"?0:1]):ud(g)&&(s[1]=_.toGlobalCoord(_.getExtent()[t[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var VD=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],lee=(function(r){B(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,n,a){n.eachSeries(function(i){var o=Hn.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=$(VD,function(v){return BD(s,l,v,i,a)});s.setItemLayout(l,u);var f=s.getItemGraphicEl(l);f.setShape("points",u)})}},this)},e.prototype.renderSeries=function(t,n,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,{group:new oe});this.group.add(f.group),this.markKeep(f);var v=uee(o,t,n);n.setData(v),v.each(function(c){var h=$(VD,function(A){return BD(v,c,A,t,i)}),d=o.getAxis("x").scale,p=o.getAxis("y").scale,g=d.getExtent(),y=p.getExtent(),m=[d.parse(v.get("x0",c)),d.parse(v.get("x1",c))],_=[p.parse(v.get("y0",c)),p.parse(v.get("y1",c))];Nt(m),Nt(_);var S=!(g[0]>m[1]||g[1]<m[0]||y[0]>_[1]||y[1]<_[0]),x=!S;v.setItemLayout(c,{points:h,allClipped:x});var w=v.getItemModel(c),b=w.getModel("itemStyle").getItemStyle(),T=w.get("z2"),C=Gf(l,"color");b.fill||(b.fill=C,Z(b.fill)&&(b.fill=th(b.fill,.4))),b.stroke||(b.stroke=C),v.setItemVisual(c,"style",b),v.setItemVisual(c,"z2",Q(T,0))}),v.diff(yc(f).data).add(function(c){var h=v.getItemLayout(c),d=v.getItemVisual(c,"z2");if(!h.allClipped){var p=new Zt({z2:Q(d,0),shape:{points:h.points}});v.setItemGraphicEl(c,p),f.group.add(p)}}).update(function(c,h){var d=yc(f).data.getItemGraphicEl(h),p=v.getItemLayout(c),g=v.getItemVisual(c,"z2");p.allClipped?d&&f.group.remove(d):(d?Oe(d,{z2:Q(g,0),shape:{points:p.points}},n,c):d=new Zt({shape:{points:p.points}}),v.setItemGraphicEl(c,d),f.group.add(d))}).remove(function(c){var h=yc(f).data.getItemGraphicEl(c);f.group.remove(h)}).execute(),v.eachItemGraphicEl(function(c,h){var d=v.getItemModel(h),p=v.getItemVisual(h,"style");c.useStyle(v.getItemVisual(h,"style")),Mt(c,St(d),{labelFetcher:n,labelDataIndex:h,defaultText:v.getName(h)||"",inheritColor:Z(p.fill)?th(p.fill,1):N.color.neutral99}),_t(c,d),et(c,null,null,d.get(["emphasis","disabled"])),ve(c).dataModel=n}),yc(f).data=v,f.group.silent=n.get("silent")||t.get("silent")},e.type="markArea",e})(Sx);function uee(r,e,t){var n,a,i=["x0","y0","x1","y1"];if(r){var o=$(r&&r.dimensions,function(u){var f=e.getData(),v=f.getDimensionInfo(f.mapDimension(u))||{};return G(G({},v),{name:u,ordinalMeta:null})});a=$(i,function(u,f){return{name:u,type:o[f%2].type}}),n=new nr(a,t)}else a=[{name:"value",type:"float"}],n=new nr(a,t);var s=$(t.get("data"),xe(oee,e,r,t));r&&(s=Fe(s,xe(see,r)));var l=r?function(u,f,v,c){var h=u.coord[Math.floor(c/2)][c%2];return Ja(h,a[c])}:function(u,f,v,c){return Ja(u.value,a[c])};return n.initData(s,null,l),n.hasItemOption=!0,n}function fee(r){r.registerComponentModel(iee),r.registerComponentView(lee),r.registerPreprocessor(function(e){_x(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var vee=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"])}},A_=(function(r){B(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,n,a){this.mergeDefaultAndTheme(t,a),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,n){r.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},e.prototype._updateSelector=function(t){var n=t.selector,a=this.ecModel;n===!0&&(n=t.selector=["all","inverse"]),U(n)&&M(n,function(i,o){Z(i)&&(i={type:i}),n[o]=_e(i,vee(a,i.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var n=!1,a=0;a<t.length;a++){var i=t[a].get("name");if(this.isSelected(i)){this.select(i),n=!0;break}}!n&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var n=[],a=[];t.eachRawSeries(function(l){var u=l.name;a.push(u);var f;if(l.legendVisualProvider){var v=l.legendVisualProvider,c=v.getAllNames();t.isSeriesFiltered(l)||(a=a.concat(c)),c.length?n=n.concat(c):f=!0}else f=!0;f&&rS(l)&&n.push(l.name)}),this._availableNames=a;var i=this.get("data")||n,o=K(),s=$(i,function(l){return(Z(l)||Ee(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Ie(l,this,this.ecModel))},this);this._data=Fe(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var n=this.option.selected,a=this.get("selectedMode");if(a==="single"){var i=this._data;M(i,function(o){n[o.get("name")]=!1})}n[t]=!0},e.prototype.unSelect=function(t){this.get("selectedMode")!=="single"&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var n=this.option.selected;n.hasOwnProperty(t)||(n[t]=!0),this[n[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,n=this.option.selected;M(t,function(a){n[a.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var t=this._data,n=this.option.selected;M(t,function(a){var i=a.get("name",!0);n.hasOwnProperty(i)||(n[i]=!0),n[i]=!n[i]})},e.prototype.isSelected=function(t){var n=this.option.selected;return!(n.hasOwnProperty(t)&&!n[t])&&pe(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",bottom:N.size.m,align:"auto",backgroundColor:N.color.transparent,borderColor:N.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:N.color.disabled,inactiveBorderColor:N.color.disabled,inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:N.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:N.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:N.color.tertiary,borderWidth:1,borderColor:N.color.border},emphasis:{selectorLabel:{show:!0,color:N.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},e})(Me),bs=xe,M_=M,mc=oe,RN=(function(r){B(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 mc),this.group.add(this._selectorGroup=new mc),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,n,a){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,n,a,l,s,u);var f=bt(t,a).refContainer,v=t.getBoxLayoutParams(),c=t.get("padding"),h=tt(v,f,c),d=this.layoutInner(t,o,h,i,l,u),p=tt(le({width:d.width,height:d.height},v),f,c);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=SN(d,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,n,a,i,o,s,l){var u=this.getContentGroup(),f=K(),v=n.get("selectedMode"),c=n.get("triggerEvent"),h=[];a.eachRawSeries(function(d){!d.get("legendHoverLink")&&h.push(d.id)}),M_(n.getData(),function(d,p){var g=this,y=d.get("name");if(!this.newlineDisabled&&(y===""||y===`
72
+ `)){var m=new mc;m.newline=!0,u.add(m);return}var _=a.getSeriesByName(y)[0];if(!f.get(y))if(_){var S=_.getData(),x=S.getVisual("legendLineStyle")||{},w=S.getVisual("legendIcon"),b=S.getVisual("style"),T=this._createItem(_,y,p,d,n,t,x,b,w,v,i);T.on("click",bs(zD,y,null,i,h)).on("mouseover",bs(D_,_.name,null,i,h)).on("mouseout",bs(I_,_.name,null,i,h)),a.ssr&&T.eachChild(function(C){var A=ve(C);A.seriesIndex=_.seriesIndex,A.dataIndex=p,A.ssrType="legend"}),c&&T.eachChild(function(C){g.packEventData(C,n,_,p,y)}),f.set(y,!0)}else a.eachRawSeries(function(C){var A=this;if(!f.get(y)&&C.legendVisualProvider){var D=C.legendVisualProvider;if(!D.containName(y))return;var L=D.indexOfName(y),I=D.getItemVisual(L,"style"),P=D.getItemVisual(L,"legendIcon"),R=hr(I.fill);R&&R[3]===0&&(R[3]=.2,I=G(G({},I),{fill:Tn(R,"rgba")}));var E=this._createItem(C,y,p,d,n,t,{},I,P,v,i);E.on("click",bs(zD,null,y,i,h)).on("mouseover",bs(D_,null,y,i,h)).on("mouseout",bs(I_,null,y,i,h)),a.ssr&&E.eachChild(function(O){var k=ve(O);k.seriesIndex=C.seriesIndex,k.dataIndex=p,k.ssrType="legend"}),c&&E.eachChild(function(O){A.packEventData(O,n,C,p,y)}),f.set(y,!0)}},this)},this),o&&this._createSelector(o,n,i,s,l)},e.prototype.packEventData=function(t,n,a,i,o){var s={componentType:"legend",componentIndex:n.componentIndex,dataIndex:i,value:o,seriesIndex:a.seriesIndex};ve(t).eventData=s},e.prototype._createSelector=function(t,n,a,i,o){var s=this.getSelectorGroup();M_(t,function(u){var f=u.type,v=new Re({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});s.add(v);var c=n.getModel("selectorLabel"),h=n.getModel(["emphasis","selectorLabel"]);Mt(v,{normal:c,emphasis:h},{defaultText:u.title}),po(v)})},e.prototype._createItem=function(t,n,a,i,o,s,l,u,f,v,c){var h=t.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(n),y=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),_=i.get("icon");f=_||f||"roundRect";var S=cee(f,i,l,u,h,g,c),x=new mc,w=i.getModel("textStyle");if(ie(t.getLegendIcon)&&(!_||_==="inherit"))x.add(t.getLegendIcon({itemWidth:d,itemHeight:p,icon:f,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var b=_==="inherit"&&t.getData().getVisual("symbol")?y==="inherit"?t.getData().getVisual("symbolRotate"):y:0;x.add(hee({itemWidth:d,itemHeight:p,icon:f,iconRotate:b,itemStyle:S.itemStyle,symbolKeepAspect:m}))}var T=s==="left"?d+5:-5,C=s,A=o.get("formatter"),D=n;Z(A)&&A?D=A.replace("{name}",n??""):ie(A)&&(D=A(n));var L=g?w.getTextColor():i.get("inactiveColor");x.add(new Re({style:Ze(w,{text:D,x:T,y:p/2,fill:L,align:C,verticalAlign:"middle"},{inheritColor:L})}));var I=new be({shape:x.getBoundingRect(),style:{fill:"transparent"}}),P=i.getModel("tooltip");return P.get("show")&&xa({el:I,componentModel:o,itemName:n,itemTooltipOption:P.option}),x.add(I),x.eachChild(function(R){R.silent=!0}),I.silent=!v,this.getContentGroup().add(x),po(x),x.__legendDataIndex=a,x},e.prototype.layoutInner=function(t,n,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();go(t.get("orient"),l,t.get("itemGap"),a.width,a.height);var f=l.getBoundingRect(),v=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){go("horizontal",u,t.get("selectorItemGap",!0));var c=u.getBoundingRect(),h=[-c.x,-c.y],d=t.get("selectorButtonGap",!0),p=t.getOrient().index,g=p===0?"width":"height",y=p===0?"height":"width",m=p===0?"y":"x";s==="end"?h[p]+=f[g]+d:v[p]+=c[g]+d,h[1-p]+=f[y]/2-c[y]/2,u.x=h[0],u.y=h[1],l.x=v[0],l.y=v[1];var _={x:0,y:0};return _[g]=f[g]+d+c[g],_[y]=Math.max(f[y],c[y]),_[m]=Math.min(0,c[m]+h[1-p]),_}else return l.x=v[0],l.y=v[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e})(Qe);function cee(r,e,t,n,a,i,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),M_(g,function(m,_){g[_]==="inherit"&&(g[_]=y[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",v=l.getShallow("decal");u.decal=!v||v==="inherit"?n.decal:nl(v,o),u.fill==="inherit"&&(u.fill=n[a]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?n:t).opacity),s(u,n);var c=e.getModel("lineStyle"),h=c.getLineStyle();if(s(h,t),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),h.stroke==="auto"&&(h.stroke=n.fill),!i){var d=e.get("inactiveBorderWidth"),p=u[f];u.lineWidth=d==="auto"?n.lineWidth>0&&p?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),h.stroke=c.get("inactiveColor"),h.lineWidth=c.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function hee(r){var e=r.icon||"roundRect",t=gt(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=N.color.neutral00,t.style.lineWidth=2),t}function zD(r,e,t,n){I_(r,e,t,n),t.dispatchAction({type:"legendToggleSelect",name:r??e}),D_(r,e,t,n)}function D_(r,e,t,n){t.usingTHL()||t.dispatchAction({type:"highlight",seriesName:r,name:e,excludeSeriesId:n})}function I_(r,e,t,n){t.usingTHL()||t.dispatchAction({type:"downplay",seriesName:r,name:e,excludeSeriesId:n})}function vu(r,e,t){var n=r==="allSelect"||r==="inverseSelect",a={},i=[];t.eachComponent({mainType:"legend",query:e},function(s){n?s[r]():s[r](e.name),FD(s,a),i.push(s.componentIndex)});var o={};return t.eachComponent("legend",function(s){M(a,function(l,u){s[l?"select":"unSelect"](u)}),FD(s,o)}),n?{selected:o,legendIndex:i}:{name:e.name,selected:o}}function FD(r,e){var t=e||{};return M(r.getData(),function(n){var a=n.get("name");if(!(a===`
73
+ `||a==="")){var i=r.isSelected(a);J(t,a)?t[a]=t[a]&&i:t[a]=i}}),t}function dee(r){r.registerAction("legendToggleSelect","legendselectchanged",xe(vu,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",xe(vu,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",xe(vu,"inverseSelect")),r.registerAction("legendSelect","legendselected",xe(vu,"select")),r.registerAction("legendUnSelect","legendunselected",xe(vu,"unSelect"))}var pee=Rf(gee);function gee(r){var e=r.findComponents({mainType:"legend"});e&&e.length&&r.filterSeries(function(t){for(var n=0;n<e.length;n++)if(!e[n].isSelected(t.name))return!1;return!0})}function EN(r){r.registerComponentModel(A_),r.registerComponentView(RN),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,pee),r.registerSubTypeDefaulter("legend",function(){return"plain"}),dee(r)}var yee=(function(r){B(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,n,a){var i=jo(t);r.prototype.init.call(this,t,n,a),GD(this,t,i)},e.prototype.mergeOption=function(t,n){r.prototype.mergeOption.call(this,t,n),GD(this,this.option,t)},e.type="legend.scroll",e.defaultOption=pi(A_.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:N.color.accent50,pageIconInactiveColor:N.color.accent10,pageIconSize:15,pageTextStyle:{color:N.color.tertiary},animationDurationUpdate:800}),e})(A_);function GD(r,e,t){var n=r.getOrient(),a=[1,1];a[n.index]=0,zn(e,t,{type:"box",ignoreSize:!!a})}var HD=oe,$y=["width","height"],Wy=["x","y"],mee=(function(r){B(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 HD),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new HD)},e.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(t,n,a,i,o,s,l){var u=this;r.prototype.renderInner.call(this,t,n,a,i,o,s,l);var f=this._controllerGroup,v=n.get("pageIconSize",!0),c=U(v)?v:[v,v];d("pagePrev",0);var h=n.getModel("pageTextStyle");f.add(new Re({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(p,g){var y=p+"DataIndex",m=Bf(n.get("pageIcons",!0)[n.getOrient().name][g],{onclick:q(u._pageGo,u,y,n,i)},{x:-c[0]/2,y:-c[1]/2,width:c[0],height:c[1]});m.name=p,f.add(m)}},e.prototype.layoutInner=function(t,n,a,i,o,s){var l=this.getSelectorGroup(),u=t.getOrient().index,f=$y[u],v=Wy[u],c=$y[1-u],h=Wy[1-u];o&&go("horizontal",l,t.get("selectorItemGap",!0));var d=t.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],y=ae(a);o&&(y[f]=a[f]-p[f]-d);var m=this._layoutContentAndController(t,i,y,u,f,c,h,v);if(o){if(s==="end")g[u]+=m[f]+d;else{var _=p[f]+d;g[u]-=_,m[v]-=_}m[f]+=p[f]+d,g[1-u]+=m[h]+m[c]/2-p[c]/2,m[c]=Math.max(m[c],p[c]),m[h]=Math.min(m[h],p[h]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return m},e.prototype._layoutContentAndController=function(t,n,a,i,o,s,l,u){var f=this.getContentGroup(),v=this._containerGroup,c=this._controllerGroup;go(t.get("orient"),f,t.get("itemGap"),i?a.width:null,i?null:a.height),go("horizontal",c,t.get("pageButtonItemGap",!0));var h=f.getBoundingRect(),d=c.getBoundingRect(),p=this._showController=h[o]>a[o],g=[-h.x,-h.y];n||(g[i]=f[u]);var y=[0,0],m=[-d.x,-d.y],_=Q(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(p){var S=t.get("pageButtonPosition",!0);S==="end"?m[i]+=a[o]-d[o]:y[i]+=d[o]+_}m[1-i]+=h[s]/2-d[s]/2,f.setPosition(g),v.setPosition(y),c.setPosition(m);var x={x:0,y:0};if(x[o]=p?a[o]:h[o],x[s]=Math.max(h[s],d[s]),x[l]=Math.min(0,d[l]+m[1-i]),v.__rectSize=a[o],p){var w={x:0,y:0};w[o]=Math.max(a[o]-d[o]-_,0),w[s]=x[s],v.setClipPath(new be({shape:w})),v.__rectSize=w[o]}else c.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(t);return b.pageIndex!=null&&Oe(f,{x:b.contentPosition[0],y:b.contentPosition[1]},p?t:null),this._updatePageInfoView(t,b),x},e.prototype._pageGo=function(t,n,a){var i=this._getPageInfo(n)[t];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:n.id})},e.prototype._updatePageInfoView=function(t,n){var a=this._controllerGroup;M(["pagePrev","pageNext"],function(f){var v=f+"DataIndex",c=n[v]!=null,h=a.childOfName(f);h&&(h.setStyle("fill",c?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),h.cursor=c?"pointer":"default")});var i=a.childOfName("pageText"),o=t.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;i&&o&&i.setStyle("text",Z(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var n=t.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=t.getOrient().index,s=$y[o],l=Wy[o],u=this._findTargetItemIndex(n),f=a.children(),v=f[u],c=f.length,h=c?1:0,d={contentPosition:[a.x,a.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!v)return d;var p=S(v);d.contentPosition[o]=-p.s;for(var g=u+1,y=p,m=p,_=null;g<=c;++g)_=S(f[g]),(!_&&m.e>y.s+i||_&&!x(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=y.i),++d.pageCount)),m=_;for(var g=u-1,y=p,m=p,_=null;g>=-1;--g)_=S(f[g]),(!_||!x(m,_.s))&&y.i<m.i&&(m=y,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=y.i),++d.pageCount,++d.pageIndex),y=_;return d;function S(w){if(w){var b=w.getBoundingRect(),T=b[l]+w[l];return{s:T,e:T+b[s],i:w.__legendDataIndex}}}function x(w,b){return w.e>=b&&w.s<=b+i}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var n,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===t&&(n=s)}),n??i},e.type="legend.scroll",e})(RN);function _ee(r){r.registerAction("legendScroll","legendscroll",function(e,t){var n=e.scrollDataIndex;n!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(a){a.setScrollDataIndex(n)})})}function See(r){Se(EN),r.registerComponentModel(yee),r.registerComponentView(mee),_ee(r)}function xee(r){Se(EN),Se(See)}var wee=(function(r){B(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=pi(Df.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e})(Df),xx=me();function bee(r,e,t){xx(r).coordSysRecordMap.each(function(n){var a=n.dataZoomInfoMap.get(e.uid);a&&(a.getRange=t)})}function Cee(r,e){for(var t=xx(r).coordSysRecordMap,n=t.keys(),a=0;a<n.length;a++){var i=n[a],o=t.get(i),s=o.dataZoomInfoMap;if(s){var l=e.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||kN(t,o))}}}function kN(r,e){if(e){r.removeKey(e.model.uid);var t=e.controller;t&&t.dispose()}}function Tee(r,e){var t={model:e,containsPoint:xe(Mee,e),dispatchAction:xe(Aee,r),dataZoomInfoMap:null,controller:null},n=t.controller=new ts(r.getZr());return M(["pan","zoom","scrollMove"],function(a){n.on(a,function(i){var o=[];t.dataZoomInfoMap.each(function(s){if(i.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[a],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 Aee(r,e){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function Mee(r,e,t,n){return r.coordinateSystem.containPoint([t,n])}function Dee(r,e,t){var n,a="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},o=!0,s,l;return r.each(function(u){var f=u.model,v=f.get("disabled",!0)?!1:f.get("zoomLock",!0)?"move":!0;i[a+v]>i[a+n]&&(n=v),o=o&&f.get("preventDefaultMouseMove",!0),s=Q(f.get("cursorGrab",!0),s),l=Q(f.get("cursorGrabbing",!0),l)}),{controlType:n,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o,api:t,zInfo:{component:e.model},triggerInfo:{roamTrigger:null,isInSelf:e.containsPoint},cursorGrab:s,cursorGrabbing:l}}}function Iee(r){r.registerUpdateLifecycle("coordsys:aftercreate",function(e,t){var n=xx(t),a=n.coordSysRecordMap||(n.coordSysRecordMap=K());a.each(function(i){i.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=pN(i);M(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,Tee(t,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=K());f.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),a.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){kN(a,i);return}var f=Dee(l,i,t);o.enable(f.controlType,f.opt),Ml(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var Lee=(function(r){B(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,n,a){if(r.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),bee(a,t,{pan:q(Yy.pan,this),zoom:q(Yy.zoom,this),scrollMove:q(Yy.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Cee(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e})(hx),Yy={zoom:function(r,e,t,n){var a=this.range,i=a.slice(),o=r.axisModels[0];if(o){var s=Xy[e](null,[n.originX,n.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/n.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(si(0,i,[0,100],0,f.minSpan,f.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:UD(function(r,e,t,n,a,i){var o=Xy[n]([i.oldX,i.oldY],[i.newX,i.newY],e,a,t);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:UD(function(r,e,t,n,a,i){var o=Xy[n]([0,0],[i.scrollDelta,i.scrollDelta],e,a,t);return o.signal*(r[1]-r[0])*i.scrollDelta})};function UD(r){return function(e,t,n,a){var i=this.range,o=i.slice(),s=e.axisModels[0];if(s){var l=r(o,s,e,t,n,a);if(si(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var Xy={grid:function(r,e,t,n,a){var i=t.axis,o={},s=a.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,n,a){var i=t.axis,o={},s=a.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,n,a){var i=t.axis,o=a.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 ON(r){dx(r),r.registerComponentModel(wee),r.registerComponentView(Lee),Iee(r)}var Pee=(function(r){B(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=pi(Df.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:N.color.accent10,borderRadius:0,backgroundColor:N.color.transparent,dataBackground:{lineStyle:{color:N.color.accent30,width:.5},areaStyle:{color:N.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:N.color.accent40,width:.5},areaStyle:{color:N.color.accent20,opacity:.3}},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:N.color.neutral00,borderColor:N.color.accent20},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:N.color.accent40,opacity:.5},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:N.color.tertiary},brushSelect:!0,brushStyle:{color:N.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:N.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),e})(Df),cu=be,Ree=1,Zy=30,Eee=7,hu="horizontal",$D="vertical",kee=5,Oee=["line","bar","candlestick","scatter"],Nee={easing:"cubicOut",duration:100,delay:0},Bee=(function(r){B(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,n){this.api=n,this._onBrush=q(this._onBrush,this),this._onBrushEnd=q(this._onBrushEnd,this)},e.prototype.render=function(t,n,a,i){if(r.prototype.render.apply(this,arguments),Ml(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(){nf(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 n=this._displayables.sliderGroup=new oe;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(n),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,n=this.api,a=t.get("brushSelect"),i=a?Eee:0,o=bt(t,n).refContainer,s=this._findCoordRect(),l=t.get("defaultLocationEdgeGap",!0)||0,u=this._orient===hu?{right:o.width-s.x-s.width,top:o.height-Zy-l-i,width:s.width,height:Zy}:{right:l,top:s.y,width:Zy,height:s.height},f=jo(t.option);M(["right","top","width","height"],function(c){f[c]==="ph"&&(f[c]=u[c])});var v=tt(f,o);this._location={x:v.x,y:v.y},this._size=[v.width,v.height],this._orient===$D&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,n=this._location,a=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(a===hu&&!o?{scaleY:l?1:-1,scaleX:1}:a===hu&&o?{scaleY:l?1:-1,scaleX:-1}:a===$D&&!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]),f=isNaN(u.x)?0:u.x,v=isNaN(u.y)?0:u.y;t.x=n.x-f,t.y=n.y-v,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,n=this._size,a=this._displayables.sliderGroup,i=t.get("brushSelect");a.add(new cu({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new cu({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:q(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),a.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var n=this._size,a=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,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||n[0]!==a[0]||n[1]!==a[1]){var v=o.getDataExtent(t.thisDim),c=o.getDataExtent(l),h=(c[1]-c[0])*.3;c=[c[0]-h,c[1]+h];var d=[0,n[1]],p=[0,n[0]],g=[[n[0],0],[0,0]],y=[],m=p[1]/Math.max(1,o.count()-1),_=n[0]/(v[1]-v[0]),S=t.thisAxis.type==="time",x=-m,w=Math.round(o.count()/n[0]),b;o.each([t.thisDim,l],function(L,I,P){if(w>0&&P%w){S||(x+=m);return}x=S?(+L-v[0])*_:x+m;var R=I==null||isNaN(I)||I==="",E=R?0:Be(I,c,d,!0);R&&!b&&P?(g.push([g[g.length-1][0],0]),y.push([y[y.length-1][0],0])):!R&&b&&(g.push([x,0]),y.push([x,0])),R||(g.push([x,E]),y.push([x,E])),b=R}),u=this._shadowPolygonPts=g,f=this._shadowPolylinePts=y}this._shadowData=o,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var T=this.dataZoomModel;function C(L){var I=T.getModel(L?"selectedDataBackground":"dataBackground"),P=new oe,R=new Zt({shape:{points:u},segmentIgnoreThreshold:1,style:I.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),E=new Bt({shape:{points:f},segmentIgnoreThreshold:1,style:I.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return P.add(R),P.add(E),P}for(var A=0;A<3;A++){var D=C(A===1);this._displayables.sliderGroup.add(D),this._displayables.dataShadowSegs.push(D)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,n=t.get("showDataShadow");if(n!==!1){var a,i=this.ecModel;return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o,s).getTargetSeriesModels();M(l,function(u){if(!a&&!(n!==!0&&pe(Oee,u.get("type"))<0)){var f=i.getComponent($a(o),s).axis,v=Vee(o),c,h=u.coordinateSystem;v!=null&&h.getOtherAxis&&(c=h.getOtherAxis(f).inverse),v=u.getData().mapDimension(v);var d=u.getData().mapDimension(o);a={thisAxis:f,series:u,thisDim:d,otherDim:v,otherAxisInverse:c}}},this)},this),a}},e.prototype._renderHandle=function(){var t=this.group,n=this._displayables,a=n.handles=[null,null],i=n.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,f=l.get("borderRadius")||0,v=l.get("brushSelect"),c=n.filler=new cu({silent:v,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(c),o.add(new cu({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:f},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:Ree,fill:N.color.transparent}})),M([0,1],function(_){var S=l.get("handleIcon");!xh[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var x=gt(S,-1,0,2,2,null,!0);x.attr({cursor:zee(this._orient),draggable:!0,drift:q(this._onDragMove,this,_),ondragend:q(this._onDragEnd,this),onmouseover:q(this._onOverDataInfoTriggerArea,this,!0),onmouseout:q(this._onOverDataInfoTriggerArea,this,!1),z2:5});var w=x.getBoundingRect(),b=l.get("handleSize");this._handleHeight=j(b,this._size[1]),this._handleWidth=w.width/w.height*this._handleHeight,x.setStyle(l.getModel("handleStyle").getItemStyle()),x.style.strokeNoScale=!0,x.rectHover=!0,x.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),po(x);var T=l.get("handleColor");T!=null&&(x.style.fill=T),o.add(a[_]=x);var C=l.getModel("textStyle"),A=l.get("handleLabel")||{},D=A.show||!1;t.add(i[_]=new Re({silent:!0,invisible:!D,style:Ze(C,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:C.getTextColor(),font:C.getFont()}),z2:10}))},this);var h=c;if(v){var d=j(l.get("moveHandleSize"),s[1]),p=n.moveHandle=new be({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:d}}),g=d*.8,y=n.moveHandleIcon=gt(l.get("moveHandleIcon"),-g/2,-g/2,g,g,N.color.neutral00,!0);y.silent=!0,y.y=s[1]+d/2-.5,p.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(d,10));h=n.moveZone=new be({invisible:!0,shape:{y:s[1]-m,height:d+m}}),h.on("mouseover",function(){u.enterEmphasis(p)}).on("mouseout",function(){u.leaveEmphasis(p)}),o.add(p),o.add(y),o.add(h)}h.attr({draggable:!0,cursor:"grab",drift:q(this._onActualMoveZoneDrift,this),ondragstart:q(this._onActualMoveZoneDragStart,this),ondragend:q(this._onActualMoveZoneDragEnd,this),onmouseover:q(this._onOverDataInfoTriggerArea,this,!0),onmouseout:q(this._onOverDataInfoTriggerArea,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[Be(t[0],[0,100],n,!0),Be(t[1],[0,100],n,!0)]},e.prototype._updateInterval=function(t,n){var a=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];si(n,i,o,a.get("zoomLock")?"all":t,s.minSpan!=null?Be(s.minSpan,l,o,!0):null,s.maxSpan!=null?Be(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=Nt([Be(i[0],o,l,!0),Be(i[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},e.prototype._updateView=function(t){var n=this._displayables,a=this._handleEnds,i=Nt(a.slice()),o=this._size;M([0,1],function(h){var d=n.handles[h],p=this._handleHeight;d.attr({scaleX:p/2,scaleY:p/2,x:a[h]+(h?-1:1),y:o[1]/2-p/2})},this),n.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]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=n.dataShadowSegs,u=[0,i[0],i[1],o[0]],f=0;f<l.length;f++){var v=l[f],c=v.getClipPath();c||(c=new be,v.setClipPath(c)),c.setShape({x:u[f],y:0,width:u[f+1]-u[f],height:o[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var n=this.dataZoomModel,a=this._displayables,i=a.handleLabels,o=this._orient,s=["",""];if(n.get("showDetail")){var l=n.findRepresentativeAxisProxy(),u=l.getAxisModel().axis.scale;if(l){var f=this._range,v;if(t){var c={start:f[0],end:f[1]},h=yN(n,l);if(h){var d=h.calculateDataWindow(c).percentInverted;c={start:d[0],end:d[1]}}v=l.calculateDataWindow(c)}else v=l.getWindow();s=[WD(n,0,v,u),WD(n,1,v,u)]}}var p=Nt(this._handleEnds.slice());g.call(this,0),g.call(this,1);function g(y){var m=Hs(a.handles[y].parent,this.group),_=Bd(y===0?"right":"left",m),S=this._handleWidth/2+kee,x=Qr([p[y]+(y===0?-S:S),this._size[1]/2],m);i[y].setStyle({x:x[0],y:x[1],verticalAlign:o===hu?"middle":_,align:o===hu?_:"center",text:s[y]})}},e.prototype._onOverDataInfoTriggerArea=function(t){this._isOverDataInfoTriggerArea=t,this._showDataInfo(t)},e.prototype._showDataInfo=function(t){var n=this.dataZoomModel.get("handleLabel")||{},a=n.show||!1,i=this.dataZoomModel.getModel(["emphasis","handleLabel"]),o=i.get("show")||!1,s=t||this._dragging?o:a,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._onActualMoveZoneDrift=function(t,n,a){this.api.getZr().setCursorStyle("grabbing"),this._onDragMove("all",t,n,a)},e.prototype._onActualMoveZoneDragStart=function(t){t.target.attr("cursor","grabbing"),this._showDataInfo(!0)},e.prototype._onActualMoveZoneDragEnd=function(t){t.target.attr("cursor","grab"),this._onDragEnd()},e.prototype._onDragMove=function(t,n,a,i){this._dragging=!0,ua(i.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=Qr([n,a],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._isOverDataInfoTriggerArea||this._showDataInfo(!1);var t=this.dataZoomModel.get("realtime");!t&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var n=this._size,a=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(a[0]<0||a[0]>n[0]||a[1]<0||a[1]>n[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",a[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var n=t.offsetX,a=t.offsetY;this._brushStart=new ue(n,a),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var a=n.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(a.width)<5)){var o=this._getViewExtent(),s=[0,100],l=this._handleEnds=[a.x,a.x+a.width],u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();si(0,l,o,0,u.minSpan!=null?Be(u.minSpan,s,o,!0):null,u.maxSpan!=null?Be(u.maxSpan,s,o,!0):null),this._range=Nt([Be(l[0],o,s,!0),Be(l[1],o,s,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(ua(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,n){var a=this._displayables,i=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new cu({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,n),f=l.transformCoordToLocal(s.x,s.y),v=this._size;u[0]=Math.max(Math.min(v[0],u[0]),0),o.setShape({x:f[0],y:0,width:u[0]-f[0],height:v[1]})},e.prototype._dispatchZoomAction=function(t){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?Nee:null,start:n[0],end:n[1]})},e.prototype._findCoordRect=function(){var t,n=pN(this.dataZoomModel).infoList;if(!t&&n.length){var a=n[0].model.coordinateSystem;t=a.getRect&&a.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})(hx);function WD(r,e,t,n){var a=r.get("labelFormatter"),i=r.get("labelPrecision");(i==null||i==="auto")&&(i=t.valuePrecision);var o=t.value[e],s=o==null||isNaN(o)?"":jt(n)||Uf(n)?n.getLabel({value:Math.round(o)}):isFinite(i)?ke(o,i,!0):o+"";return ie(a)?a(o,s):Z(a)?a.replace("{value}",s):s}function Vee(r){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[r]}function zee(r){return r==="vertical"?"ns-resize":"ew-resize"}function NN(r){r.registerComponentModel(Pee),r.registerComponentView(Bee),dx(r)}function Fee(r){Se(ON),Se(NN)}var BN={get:function(r,e,t){var n=ae((Gee[r]||{})[e]);return t&&U(n)?n[n.length-1]:n}},Gee={color:{active:["#006edd","#e0ffff"],inactive:[N.color.transparent]},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]}},YD=At.mapVisual,Hee=At.eachVisual,Uee=U,jy=M,$ee=Nt,Wee=Be,fd=(function(r){B(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,n,a){this.mergeDefaultAndTheme(t,a)},e.prototype.optionUpdated=function(t,n){var a=this.option;!n&&MN(a,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var n=this.stateList;t=q(t,this),this.controllerVisuals=b_(this.option.controller,n,t),this.targetVisuals=b_(this.option.target,n,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this,n=this.option.seriesTargets;if(n){var a=[];return jy(n,function(l){if(l.seriesIndex!=null)a.push(l.seriesIndex);else if(l.seriesId!=null){var u;t.ecModel.eachSeries(function(f){f.id===l.seriesId&&(u=f)}),u&&a.push(u.componentIndex)}}),a}var i=this.option.seriesId,o=this.option.seriesIndex;o==null&&i==null&&(o="all");var s=_l(this.ecModel,"series",{index:o,id:i},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return $(s,function(l){return l.componentIndex})},e.prototype.eachTargetSeries=function(t,n){M(this.getTargetSeriesIndices(),function(a){var i=this.ecModel.getSeriesByIndex(a);i&&t.call(n,i)},this)},e.prototype.isTargetSeries=function(t){var n=!1;return this.eachTargetSeries(function(a){a===t&&(n=!0)}),n},e.prototype.formatValueText=function(t,n,a){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;a=a||["<",">"],U(t)&&(t=t.slice(),u=!0);var f=n?t:u?[v(t[0]),v(t[1])]:v(t);if(Z(l))return l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f);if(ie(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?a[0]+" "+f[1]:t[1]===s[1]?a[1]+" "+f[0]:f[0]+" - "+f[1];return f;function v(c){return c===s[0]?"min":c===s[1]?"max":(+c).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,n=$ee([t.min,t.max]);this._dataExtent=n},e.prototype.getDimension=function(t){var n=this,a=this.option.seriesTargets;if(a){var i=ci(a,function(o){return o.seriesIndex!=null&&o.seriesIndex===t||o.seriesId!=null&&o.seriesId===n.ecModel.getSeriesByIndex(t).id});if(i)return i.dimension}return this.option.dimension},e.prototype.getDataDimensionIndex=function(t){var n=t.hostModel.seriesIndex,a=this.getDimension(n);if(a!=null)return t.getDimensionIndex(a);for(var i=t.dimensions,o=i.length-1;o>=0;o--){var s=i[o],l=t.getDimensionInfo(s);if(!l.isCalculationCoord)return l.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,n=this.option,a={inRange:n.inRange,outOfRange:n.outOfRange},i=n.target||(n.target={}),o=n.controller||(n.controller={});_e(i,a),_e(o,a);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),f.call(this,o);function l(v){Uee(n.color)&&!v.inRange&&(v.inRange={color:n.color.slice().reverse()}),v.inRange=v.inRange||{color:t.get("gradientColor")}}function u(v,c,h){var d=v[c],p=v[h];d&&!p&&(p=v[h]={},jy(d,function(g,y){if(At.isValidType(y)){var m=BN.get(y,"inactive",s);m!=null&&(p[y]=m,y==="color"&&!p.hasOwnProperty("opacity")&&!p.hasOwnProperty("colorAlpha")&&(p.opacity=[0,0]))}}))}function f(v){var c=(v.inRange||{}).symbol||(v.outOfRange||{}).symbol,h=(v.inRange||{}).symbolSize||(v.outOfRange||{}).symbolSize,d=this.get("inactiveColor"),p=this.getItemSymbol(),g=p||"roundRect";jy(this.stateList,function(y){var m=this.itemSize,_=v[y];_||(_=v[y]={color:s?d:[d]}),_.symbol==null&&(_.symbol=c&&ae(c)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=h&&ae(h)||(s?m[0]:[m[0],m[0]])),_.symbol=YD(_.symbol,function(w){return w==="none"?g:w});var S=_.symbolSize;if(S!=null){var x=-1/0;Hee(S,function(w){w>x&&(x=w)}),_.symbolSize=YD(S,function(w){return Wee(w,[0,x],[0,m[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,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:N.color.transparent,borderColor:N.color.borderTint,contentColor:N.color.theme[0],inactiveColor:N.color.disabled,borderWidth:0,padding:N.size.m,textGap:10,precision:0,textStyle:{color:N.color.secondary}},e})(Me),XD=[20,140],Yee=(function(r){B(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,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.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]=XD[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=XD[1])},e.prototype._resetRange=function(){var t=this.getExtent(),n=this.option.range;!n||n.auto?(t.auto=1,this.option.range=t):U(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],t[0]),n[1]=Math.min(n[1],t[1]))},e.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),M(this.stateList,function(t){var n=this.option.controller[t].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),n=Nt((this.get("range")||[]).slice());return n[0]>t[1]&&(n[0]=t[1]),n[1]>t[1]&&(n[1]=t[1]),n[0]<t[0]&&(n[0]=t[0]),n[1]<t[0]&&(n[1]=t[0]),n},e.prototype.getValueState=function(t){var n=this.option.range,a=this.getExtent(),i=Q(this.option.unboundedRange,!0);return(i&&n[0]<=a[0]||n[0]<=t)&&(i&&n[1]>=a[1]||t<=n[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var n=[];return this.eachTargetSeries(function(a){var i=[],o=a.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&i.push(l)},this),n.push({seriesId:a.id,dataIndex:i})},this),n},e.prototype.getVisualMeta=function(t){var n=ZD(this,"outOfRange",this.getExtent()),a=ZD(this,"inRange",this.option.range.slice()),i=[];function o(h,d){i.push({value:h,color:t(h,d)})}for(var s=0,l=0,u=a.length,f=n.length;l<f&&(!a.length||n[l]<=a[0]);l++)n[l]<a[s]&&o(n[l],"outOfRange");for(var v=1;s<u;s++,v=0)v&&i.length&&o(a[s],"outOfRange"),o(a[s],"inRange");for(var v=1;l<f;l++)(!a.length||a[a.length-1]<n[l])&&(v&&(i.length&&o(i[i.length-1].value,"outOfRange"),v=0),o(n[l],"outOfRange"));var c=i.length;return{stops:i,outerColors:[c?i[0].color:"transparent",c?i[c-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=pi(fd.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:N.color.neutral00,borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:N.color.neutral00,borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:N.color.shadow}}),e})(fd);function ZD(r,e,t){if(t[0]===t[1])return t.slice();for(var n=200,a=(t[1]-t[0])/n,i=t[0],o=[],s=0;s<=n&&i<t[1];s++)o.push(i),i+=a;return o.push(t[1]),o}var VN=(function(r){B(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,n){this.ecModel=t,this.api=n},e.prototype.render=function(t,n,a,i){if(this.visualMapModel=t,t.get("show")===!1){this.group.removeAll();return}this.doRender(t,n,a,i)},e.prototype.renderBackground=function(t){var n=this.visualMapModel,a=Vf(n.get("padding")||0),i=t.getBoundingRect();t.add(new be({z2:-1,silent:!0,shape:{x:i.x-a[3],y:i.y-a[0],width:i.width+a[3]+a[1],height:i.height+a[0]+a[2]},style:{fill:n.get("backgroundColor"),stroke:n.get("borderColor"),lineWidth:n.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,n,a){a=a||{};var i=a.forceState,o=this.visualMapModel,s={};if(n==="color"){var l=o.get("contentColor");s.color=l}function u(h){return s[h]}function f(h,d){s[h]=d}var v=o.controllerVisuals[i||o.getValueState(t)],c=At.prepareVisualTypes(v);return M(c,function(h){var d=v[h];a.convertOpacityToAlpha&&h==="opacity"&&(h="colorAlpha",d=v.__alphaForOpacity),At.dependsOn(h,n)&&d&&d.applyVisual(t,u,f)}),s[n]},e.prototype.positionGroup=function(t){var n=this.visualMapModel,a=this.api,i=bt(n,a).refContainer;Hd(t,n.getBoxLayoutParams(),i)},e.prototype.doRender=function(t,n,a,i){},e.type="visualMap",e})(Qe),jD=[["left","right","width"],["top","bottom","height"]];function zN(r,e,t){var n=r.option,a=n.align;if(a!=null&&a!=="auto")return a;for(var i={width:e.getWidth(),height:e.getHeight()},o=n.orient==="horizontal"?1:0,s=jD[o],l=[0,null,10],u={},f=0;f<3;f++)u[jD[1-o][f]]=l[f],u[s[f]]=f===2?t[0]:n[s[f]];var v=[["x","width",3],["y","height",0]][o],c=tt(u,i,n.padding);return s[(c.margin[v[2]]||0)+c[v[0]]+c[v[1]]*.5<i[v[1]]*.5?0:1]}function jc(r,e){return M(r||[],function(t){t.dataIndex!=null&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")}),r}var yn=Be,Xee=M,qD=Math.min,qy=Math.max,Zee=12,jee=6,qee=(function(r){B(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,n){r.prototype.init.call(this,t,n),this._hoverLinkFromSeriesMouseOver=q(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=q(this._hideIndicator,this)},e.prototype.doRender=function(t,n,a,i){(!i||i.type!=="selectDataRange"||i.from!==this.uid)&&this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,n=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(n);var a=t.get("text");this._renderEndsText(n,a,0),this._renderEndsText(n,a,1),this._updateView(!0),this.renderBackground(n),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(n)},e.prototype._renderEndsText=function(t,n,a){if(n){var i=n[1-a];i=i!=null?i+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,f=this._applyTransform([l[0]/2,a===0?-s:l[1]+s],u),v=this._applyTransform(a===0?"bottom":"top",u),c=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new Re({style:Ze(h,{x:f[0],y:f[1],verticalAlign:h.get("verticalAlign")||(c==="horizontal"?"middle":v),align:h.get("align")||(c==="horizontal"?v:"center"),text:i})}))}},e.prototype._renderBar=function(t){var n=this.visualMapModel,a=this._shapes,i=n.itemSize,o=this._orient,s=this._useHandle,l=zN(n,this.api,i),u=a.mainGroup=this._createBarGroup(l),f=new oe;u.add(f),f.add(a.outOfRange=KD()),f.add(a.inRange=KD(null,s?QD(this._orient):null,q(this._dragHandle,this,"all",!1),q(this._dragHandle,this,"all",!0))),f.setClipPath(new be({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var v=n.textStyleModel.getTextRect("国"),c=qy(v.width,v.height);s&&(a.handleThumbs=[],a.handleLabels=[],a.handleLabelPoints=[],this._createHandle(n,u,0,i,c,o),this._createHandle(n,u,1,i,c,o)),this._createIndicator(n,u,i,c,o),t.add(u)},e.prototype._createHandle=function(t,n,a,i,o,s){var l=q(this._dragHandle,this,a,!1),u=q(this._dragHandle,this,a,!0),f=Nn(t.get("handleSize"),i[0]),v=gt(t.get("handleIcon"),-f/2,-f/2,f,f,null,!0),c=QD(this._orient);v.attr({cursor:c,draggable:!0,drift:l,ondragend:u,onmousemove:function(y){ua(y.event)}}),v.x=i[0]/2,v.useStyle(t.getModel("handleStyle").getItemStyle()),v.setStyle({strokeNoScale:!0,strokeFirst:!0}),v.style.lineWidth*=2,v.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),io(v,!0),n.add(v);var h=this.visualMapModel.textStyleModel,d=new Re({cursor:c,draggable:!0,drift:l,onmousemove:function(y){ua(y.event)},ondragend:u,style:Ze(h,{x:0,y:0,text:""})});d.ensureState("blur").style={opacity:.1},d.stateTransition={duration:200},this.group.add(d);var p=[f,0],g=this._shapes;g.handleThumbs[a]=v,g.handleLabelPoints[a]=p,g.handleLabels[a]=d},e.prototype._createIndicator=function(t,n,a,i,o){var s=Nn(t.get("indicatorSize"),a[0]),l=gt(t.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:a[0]/2});var u=t.getModel("indicatorStyle").getItemStyle();if(l instanceof Rt){var f=l.style;l.useStyle(G({image:f.image,x:f.x,y:f.y,width:f.width,height:f.height},u))}else l.useStyle(u);n.add(l);var v=this.visualMapModel.textStyleModel,c=new Re({silent:!0,invisible:!0,style:Ze(v,{x:0,y:0,text:""})});this.group.add(c);var h=[(o==="horizontal"?i/2:jee)+a[0]/2,0],d=this._shapes;d.indicator=l,d.indicatorLabel=c,d.indicatorLabelPoint=h,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,n,a,i){if(this._useHandle){if(this._dragging=!n,!n){var o=this._applyTransform([a,i],this._shapes.mainGroup,!0);this._updateInterval(t,o[1]),this._hideIndicator(),this._updateView()}n===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),n?!this._hovering&&this._clearHoverLinkToSeries():JD(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,n=this._dataInterval=t.getSelected(),a=t.getExtent(),i=[0,t.itemSize[1]];this._handleEnds=[yn(n[0],a,i,!0),yn(n[1],a,i,!0)]},e.prototype._updateInterval=function(t,n){n=n||0;var a=this.visualMapModel,i=this._handleEnds,o=[0,a.itemSize[1]];si(n,i,o,t,0);var s=a.getExtent();this._dataInterval=[yn(i[0],o,s,!0),yn(i[1],o,s,!0)]},e.prototype._updateView=function(t){var n=this.visualMapModel,a=n.getExtent(),i=this._shapes,o=[0,n.itemSize[1]],s=t?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,a,s,"inRange"),u=this._createBarVisual(a,a,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,n,a,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(a,l);return{barColor:new bl(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},e.prototype._makeColorGradient=function(t,n){var a=100,i=[],o=(t[1]-t[0])/a;i.push({color:this.getControllerVisual(t[0],"color",n),offset:0});for(var s=1;s<a;s++){var l=t[0]+o*s;if(l>t[1])break;i.push({color:this.getControllerVisual(l,"color",n),offset:s/a})}return i.push({color:this.getControllerVisual(t[1],"color",n),offset:1}),i},e.prototype._createBarPoints=function(t,n){var a=this.visualMapModel.itemSize;return[[a[0]-n[0],t[0]],[a[0],t[0]],[a[0],t[1]],[a[0]-n[1],t[1]]]},e.prototype._createBarGroup=function(t){var n=this._orient,a=this.visualMapModel.get("inverse");return new oe(n==="horizontal"&&!a?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&a?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!a?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,n){if(this._useHandle){var a=this._shapes,i=this.visualMapModel,o=a.handleThumbs,s=a.handleLabels,l=i.itemSize,u=i.getExtent(),f=this._applyTransform("left",a.mainGroup);Xee([0,1],function(v){var c=o[v];c.setStyle("fill",n.handlesColor[v]),c.y=t[v];var h=yn(t[v],[0,l[1]],u,!0),d=this.getControllerVisual(h,"symbolSize");c.scaleX=c.scaleY=d/l[0],c.x=l[0]-d/2;var p=Qr(a.handleLabelPoints[v],Hs(c,this.group));if(this._orient==="horizontal"){var g=f==="left"||f==="top"?(l[0]-d)/2:(l[0]-d)/-2;p[1]+=g}s[v].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[v]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,n,a,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],f=this._shapes,v=f.indicator;if(v){v.attr("invisible",!1);var c={convertOpacityToAlpha:!0},h=this.getControllerVisual(t,"color",c),d=this.getControllerVisual(t,"symbolSize"),p=yn(t,s,u,!0),g=l[0]-d/2,y={x:v.x,y:v.y};v.y=p,v.x=g;var m=Qr(f.indicatorLabelPoint,Hs(v,this.group)),_=f.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",f.mainGroup),x=this._orient,w=x==="horizontal";_.setStyle({text:(a||"")+o.formatValueText(n),verticalAlign:w?S:"middle",align:w?"center":S});var b={x:g,y:p,style:{fill:h}},T={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var C={duration:100,easing:"cubicInOut",additive:!0};v.x=y.x,v.y=y.y,v.animateTo(b,C),_.animateTo(T,C)}else v.attr(b),_.attr(T);this._firstShowIndicator=!1;var A=this._shapes.handleLabels;if(A)for(var D=0;D<A.length;D++)this.api.enterBlur(A[D])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",function(n){if(t._hovering=!0,!t._dragging){var a=t.visualMapModel.itemSize,i=t._applyTransform([n.offsetX,n.offsetY],t._shapes.mainGroup,!0,!0);i[1]=qD(qy(0,i[1]),a[1]),t._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=a[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,n){var a=this.visualMapModel,i=a.itemSize;if(a.option.hoverLink){var o=[0,i[1]],s=a.getExtent();t=qD(qy(o[0],t),o[1]);var l=Kee(a,s,o),u=[t-l,t+l],f=yn(t,o,s,!0),v=[yn(u[0],o,s,!0),yn(u[1],o,s,!0)];u[0]<o[0]&&(v[0]=-1/0),u[1]>o[1]&&(v[1]=1/0),n&&(v[0]===-1/0?this._showIndicator(f,v[1],"< ",l):v[1]===1/0?this._showIndicator(f,v[0],"> ",l):this._showIndicator(f,f,"≈ ",l));var c=this._hoverLinkDataIndices,h=[];(n||JD(a))&&(h=this._hoverLinkDataIndices=a.findTargetDataIndices(v));var d=vF(c,h);this._dispatchHighDown("downplay",jc(d[0],a)),this._dispatchHighDown("highlight",jc(d[1],a))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var n;if(so(t.target,function(l){var u=ve(l);if(u.dataIndex!=null)return n=u,!0},!0),!!n){var a=this.ecModel.getSeriesByIndex(n.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(a)){var o=a.getData(n.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),n.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 n=this._shapes.handleLabels;if(n)for(var a=0;a<n.length;a++)this.api.leaveBlur(n[a])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",jc(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,n,a,i){var o=Hs(n,i?null:this.group);return U(t)?Qr(t,o,a):Bd(t,o,a)},e.prototype._dispatchHighDown=function(t,n){n&&n.length&&this.api.dispatchAction({type:t,batch:n})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e})(VN);function KD(r,e,t,n){return new Zt({shape:{points:r},draggable:!!t,cursor:e,drift:t,onmousemove:function(a){ua(a.event)},ondragend:n})}function Kee(r,e,t){var n=Zee/2,a=r.get("hoverLinkDataSize");return a&&(n=yn(a,e,t,!0)/2),n}function JD(r){var e=r.get("hoverLinkOnHandle");return!!(e??r.get("realtime"))}function QD(r){return r==="vertical"?"ns-resize":"ew-resize"}var Jee={type:"selectDataRange",event:"dataRangeSelected",update:"update"},Qee=function(r,e){e.eachComponent({mainType:"visualMap",query:r},function(t){t.setSelected(r.selected)})},ete=[{createOnAllSeries:!0,reset:function(r,e){var t=[];return e.eachComponent("visualMap",function(n){var a=r.pipelineContext;!n.isTargetSeries(r)||a&&a.large||t.push(SQ(n.stateList,n.targetVisuals,q(n.getValueState,n),n.getDataDimensionIndex(r.getData())))}),t}},{createOnAllSeries:!0,reset:function(r,e){var t=r.getData(),n=[];e.eachComponent("visualMap",function(a){if(a.isTargetSeries(r)){var i=a.getVisualMeta(q(tte,null,r,a))||{stops:[],outerColors:[]},o=a.getDataDimensionIndex(t);o>=0&&(i.dimension=o,n.push(i))}}),r.getData().setVisual("visualMeta",n)}}];function tte(r,e,t,n){for(var a=e.targetVisuals[n],i=At.prepareVisualTypes(a),o={color:Gf(r.getData(),"color")},s=0,l=i.length;s<l;s++){var u=i[s],f=a[u==="opacity"?"__alphaForOpacity":u];f&&f.applyVisual(t,v,c)}return o.color;function v(h){return o[h]}function c(h,d){o[h]=d}}var eI=M;function rte(r){var e=r&&r.visualMap;U(e)||(e=e?[e]:[]),eI(e,function(t){if(t){Cs(t,"splitList")&&!Cs(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var n=t.pieces;n&&U(n)&&eI(n,function(a){fe(a)&&(Cs(a,"start")&&!Cs(a,"min")&&(a.min=a.start),Cs(a,"end")&&!Cs(a,"max")&&(a.max=a.end))})}})}function Cs(r,e){return r&&r.hasOwnProperty&&r.hasOwnProperty(e)}var tI=!1;function FN(r){tI||(tI=!0,r.registerSubTypeDefaulter("visualMap",function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),r.registerAction(Jee,Qee),M(ete,function(e){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,e)}),r.registerPreprocessor(rte))}function GN(r){r.registerComponentModel(Yee),r.registerComponentView(qee),FN(r)}var nte=(function(r){B(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,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],ate[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var i=this.option.categories;this.resetVisual(function(o,s){a==="categories"?(o.mappingMethod="category",o.categories=ae(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=$(this._pieceList,function(l){return l=ae(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,n={},a=At.listVisualTypes(),i=this.isCategory();M(t.pieces,function(s){M(a,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),M(n,function(s,l){var u=!1;M(this.stateList,function(f){u=u||o(t,f,l)||o(t.target,f,l)},this),!u&&M(this.stateList,function(f){(t[f]||(t[f]={}))[l]=BN.get(l,f==="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,n){var a=this.option,i=this._pieceList,o=(n?a:t).selected||{};if(a.selected=o,M(i,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),a.selectedMode==="single"){var s=!1;M(i,function(l,u){var f=this.getSelectedMapKey(l);o[f]&&(s?o[f]=!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=ae(t)},e.prototype.getValueState=function(t){var n=At.findPieceIndex(t,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var n=[],a=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var f=At.findPieceIndex(l,a);f===t&&o.push(u)},this),n.push({seriesId:i.id,dataIndex:o})},this),n},e.prototype.getRepresentValue=function(t){var n;if(this.isCategory())n=t.value;else if(t.value!=null)n=t.value;else{var a=t.interval||[];n=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return n},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var n=[],a=["",""],i=this;function o(f,v){var c=i.getRepresentValue({interval:f});v||(v=i.getValueState(c));var h=t(c,v);f[0]===-1/0?a[0]=h:f[1]===1/0?a[1]=h:n.push({value:f[0],color:h},{value:f[1],color:h})}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 M(s,function(f){var v=f.interval;v&&(v[0]>u&&o([u,v[0]],"outOfRange"),o(v.slice()),u=v[1])},this),{stops:n,outerColors:a}},e.type="visualMap.piecewise",e.defaultOption=pi(fd.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})(fd),ate={splitNumber:function(r){var e=this.option,t=Math.min(e.precision,20),n=this.getExtent(),a=e.splitNumber;a=Math.max(parseInt(a,10),1),e.splitNumber=a;for(var i=(n[1]-n[0])/a;+i.toFixed(t)!==i&&t<5;)t++;e.precision=t,i=+i.toFixed(t),e.minOpen&&r.push({interval:[-1/0,n[0]],close:[0,0]});for(var o=0,s=n[0];o<a;s+=i,o++){var l=o===a-1?n[1]:s+i;r.push({interval:[s,l],close:[1,1]})}e.maxOpen&&r.push({interval:[n[1],1/0],close:[0,0]}),dw(r),M(r,function(u,f){u.index=f,u.text=this.formatValueText(u.interval)},this)},categories:function(r){var e=this.option;M(e.categories,function(t){r.push({text:this.formatValueText(t,!0),value:t})},this),rI(e,r)},pieces:function(r){var e=this.option;M(e.pieces,function(t,n){fe(t)||(t={value:t});var a={text:"",index:n};if(t.label!=null&&(a.text=t.label),t.hasOwnProperty("value")){var i=a.value=t.value;a.interval=[i,i],a.close=[1,1]}else{for(var o=a.interval=[],s=a.close=[0,0],l=[1,0,1],u=[-1/0,1/0],f=[],v=0;v<2;v++){for(var c=[["gte","gt","min"],["lte","lt","max"]][v],h=0;h<3&&o[v]==null;h++)o[v]=t[c[h]],s[v]=l[h],f[v]=h===2;o[v]==null&&(o[v]=u[v])}f[0]&&o[1]===1/0&&(s[0]=0),f[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(a.value=o[0])}a.visual=At.retrieveVisuals(t),r.push(a)},this),rI(e,r),dw(r),M(r,function(t){var n=t.close,a=[["<","≤"][n[1]],[">","≥"][n[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,a)},this)}};function rI(r,e){var t=r.inverse;(r.orient==="vertical"?!t:t)&&e.reverse()}var ite=(function(r){B(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 n=this.visualMapModel,a=n.get("textGap"),i=n.textStyleModel,o=this._getItemAlign(),s=n.itemSize,l=this._getViewData(),u=l.endsText,f=tr(n.get("showLabel",!0),!u),v=!n.get("selectedMode");u&&this._renderEndsText(t,u[0],s,f,o),M(l.viewPieceList,function(c){var h=c.piece,d=new oe;d.onclick=q(this._onItemClick,this,h),this._enableHoverLink(d,c.indexInModelPieceList);var p=n.getRepresentValue(h);if(this._createItemSymbol(d,p,[0,0,s[0],s[1]],v),f){var g=this.visualMapModel.getValueState(p),y=i.get("align")||o;d.add(new Re({style:Ze(i,{x:y==="right"?-a:s[0]+a,y:s[1]/2,text:h.text,verticalAlign:i.get("verticalAlign")||"middle",align:y,opacity:Q(i.get("opacity"),g==="outOfRange"?.5:1)}),silent:v}))}t.add(d)},this),u&&this._renderEndsText(t,u[1],s,f,o),go(n.get("orient"),t,n.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,n){var a=this;t.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=a.visualMapModel;s.option.hoverLink&&a.api.dispatchAction({type:o,batch:jc(s.findTargetDataIndices(n),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,n=t.option;if(n.orient==="vertical")return zN(t,this.api,t.itemSize);var a=n.align;return(!a||a==="auto")&&(a="left"),a},e.prototype._renderEndsText=function(t,n,a,i,o){if(n){var s=new oe,l=this.visualMapModel.textStyleModel;s.add(new Re({style:Ze(l,{x:i?o==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:i?o:"center",text:n})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,n=$(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),a=t.get("text"),i=t.get("orient"),o=t.get("inverse");return(i==="horizontal"?o:!o)?n.reverse():a&&(a=a.slice().reverse()),{viewPieceList:n,endsText:a}},e.prototype._createItemSymbol=function(t,n,a,i){var o=gt(this.getControllerVisual(n,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(n,"color"));o.silent=i,t.add(o)},e.prototype._onItemClick=function(t){var n=this.visualMapModel,a=n.option,i=a.selectedMode;if(i){var o=ae(a.selected),s=n.getSelectedMapKey(t);i==="single"||i===!0?(o[s]=!0,M(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})(VN);function HN(r){r.registerComponentModel(nte),r.registerComponentView(ite),FN(r)}function ote(r){Se(GN),Se(HN)}var ste=(function(){function r(e){this._thumbnailModel=e}return r.prototype.reset=function(e){this._renderVersion=e.getECUpdateCycleVersion()},r.prototype.renderContent=function(e){var t=e.api.getViewOfComponentModel(this._thumbnailModel);t&&(e.group.silent=!0,t.renderContent({group:e.group,targetTrans:e.targetTrans,z2Range:P2(e.group),roamType:e.roamType,viewportRect:e.viewportRect,renderVersion:this._renderVersion}))},r.prototype.updateWindow=function(e,t){var n=t.getViewOfComponentModel(this._thumbnailModel);n&&n.updateWindow({targetTrans:e,renderVersion:this._renderVersion})},r})(),lte=(function(r){B(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.optionUpdated=function(t,n){this._updateBridge()},e.prototype._updateBridge=function(){var t=this._birdge=this._birdge||new ste(this);if(this._target=null,this.ecModel.eachSeries(function(a){kA(a,null)}),this.shouldShow()){var n=this.getTarget();kA(n.baseMapProvider,t)}},e.prototype.shouldShow=function(){return this.getShallow("show",!0)},e.prototype.getBridge=function(){return this._birdge},e.prototype.getTarget=function(){if(this._target)return this._target;var t=this.getReferringComponents("series",{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];return t?t.subType!=="graph"&&(t=null):t=this.ecModel.queryComponents({mainType:"series",subType:"graph"})[0],this._target={baseMapProvider:t},this._target},e.type="thumbnail",e.layoutMode="box",e.dependencies=["series","geo"],e.defaultOption={show:!0,right:1,bottom:1,height:"25%",width:"25%",itemStyle:{borderColor:N.color.border,borderWidth:2},windowStyle:{borderWidth:1,color:N.color.neutral30,borderColor:N.color.neutral40,opacity:.3},z:10},e})(Me),ute=(function(r){B(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,n,a){if(this._api=a,this._model=t,this._coordSys||(this._coordSys=new ip),!this._isEnabled()){this._clear();return}this._renderVersion=a.getECUpdateCycleVersion();var i=this.group;i.removeAll();var o=t.getModel("itemStyle"),s=o.getItemStyle();s.fill==null&&(s.fill=n.get("backgroundColor")||N.color.neutral00);var l=bt(t,a).refContainer,u=tt(iP(t,!0),l),f=s.lineWidth||0,v=this._contentRect=To(u.clone(),f/2,!0,!0),c=new oe;i.add(c),c.setClipPath(new be({shape:v.plain()}));var h=this._targetGroup=new oe;c.add(h);var d=u.plain();d.r=o.getShallow("borderRadius",!0),i.add(this._bgRect=new be({style:s,shape:d,silent:!1,cursor:"grab"}));var p=t.getModel("windowStyle"),g=p.getShallow("borderRadius",!0);c.add(this._windowRect=new be({shape:{x:0,y:0,width:0,height:0,r:g},style:p.getItemStyle(),silent:!1,cursor:"grab"})),this._dealRenderContent(),this._dealUpdateWindow(),aI(t,this)},e.prototype.renderContent=function(t){this._bridgeRendered=t,this._isEnabled()&&(this._dealRenderContent(),this._dealUpdateWindow(),aI(this._model,this))},e.prototype._dealRenderContent=function(){var t=this._bridgeRendered;if(!(!t||t.renderVersion!==this._renderVersion)){var n=this._targetGroup,a=this._coordSys,i=this._contentRect;if(n.removeAll(),!!t){var o=t.group,s=o.getBoundingRect();n.add(o),this._bgRect.z2=t.z2Range.min-10,op(a,s.x,s.y,s.width,s.height);var l=tt({left:"center",top:"center",aspect:s.width/s.height},i);$h(a,l.x,l.y,l.width,l.height),Sf(o,a,Oo),o.dirty(),this._windowRect.z2=t.z2Range.max+10,this._resetRoamController(t.roamType)}}},e.prototype.updateWindow=function(t){var n=this._bridgeRendered;n&&n.renderVersion===t.renderVersion&&(n.targetTrans=t.targetTrans),this._isEnabled()&&this._dealUpdateWindow()},e.prototype._dealUpdateWindow=function(){var t=this._bridgeRendered;if(!(!t||t.renderVersion!==this._renderVersion)){var n=Gr([],t.targetTrans),a=Vr([],Uh(null,this._coordSys),n);this._transThisToTarget=Gr([],a);var i=t.viewportRect;i?i=i.clone():i=new se(0,0,this._api.getWidth(),this._api.getHeight()),i.applyTransform(a);var o=this._windowRect,s=o.shape.r;o.setShape(le({r:s},i))}},e.prototype._resetRoamController=function(t){var n=this,a=this._api,i=this._roamController;if(i||(i=this._roamController=new ts(a.getZr())),!t||!this._isEnabled()){i.disable();return}i.enable(t,{api:a,zInfo:{component:this._model},triggerInfo:{roamTrigger:null,isInSelf:function(o,s,l){return n._contentRect.contain(s,l)}}}),i.off("pan").off("zoom").on("pan",q(this._onPan,this)).on("zoom",q(this._onZoom,this))},e.prototype._onPan=function(t){var n=this._transThisToTarget;if(!(!this._isEnabled()||!n)){var a=st([],[t.oldX,t.oldY],n),i=st([],[t.oldX-t.dx,t.oldY-t.dy],n);this._api.dispatchAction(nI(this._model.getTarget().baseMapProvider,{dx:i[0]-a[0],dy:i[1]-a[1]}))}},e.prototype._onZoom=function(t){var n=this._transThisToTarget;if(!(!this._isEnabled()||!n)){var a=st([],[t.originX,t.originY],n);this._api.dispatchAction(nI(this._model.getTarget().baseMapProvider,{zoom:1/t.scale,originX:a[0],originY:a[1]}))}},e.prototype._isEnabled=function(){var t=this._model;if(!t||!t.shouldShow())return!1;var n=t.getTarget().baseMapProvider;return!!n},e.prototype._clear=function(){this.group.removeAll(),this._bridgeRendered=null,this._roamController&&this._roamController.disable()},e.prototype.remove=function(){this._clear()},e.prototype.dispose=function(){this._clear()},e.type="thumbnail",e})(Qe);function nI(r,e){var t=r.mainType==="series"?r.subType+"Roam":r.mainType+"Roam",n={type:t};return n[r.mainType+"Id"]=r.id,G(n,e),n}function aI(r,e){var t=Ao(r);Vd(e.group,t.z,t.zlevel)}function fte(r){r.registerComponentModel(lte),r.registerComponentView(ute)}var vte={label:{enabled:!0},decal:{show:!1}},iI=me(),oI=me(),cte=Rf(hte);function hte(r,e){var t=r.getModel("aria");if(!t.get("enabled"))return;var n=oI(r).scope||(oI(r).scope={}),a=ae(vte);_e(a.label,r.getLocaleModel().get("aria"),!1),_e(t.option,a,!1),i(),o();function i(){var f=t.getModel("decal"),v=f.get("show");if(v){var c=K();r.eachSeries(function(h){h.isColorBySeries()||(iI(h).scope=c.get(h.type)||c.set(h.type,{}))}),r.eachSeries(function(h){if(ie(h.enableAriaDecal)){h.enableAriaDecal();return}var d=h.getData();if(h.isColorBySeries()){var _=d0(h.ecModel,h.name,n,r.getSeriesCount()),S=d.getVisual("decal");d.setVisual("decal",x(S,_))}else{var p=h.getRawData(),g={},y=iI(h).scope;d.each(function(w){var b=d.getRawIndex(w);g[b]=w});var m=p.count();p.each(function(w){var b=g[w],T=p.getName(w)||w+"",C=d0(h.ecModel,T,y,m),A=d.getItemVisual(b,"decal");d.setItemVisual(b,"decal",x(A,C))})}function x(w,b){var T=w?G(G({},b),w):b;return T.dirty=!0,T}})}}function o(){var f=e.getZr().dom;if(f){var v=r.getLocaleModel().get("aria"),c=t.getModel("label");if(c.option=le(c.option,v),!!c.get("enabled")){if(f.setAttribute("role","img"),c.get("description")){f.setAttribute("aria-label",c.get("description"));return}var h=r.getSeriesCount(),d=c.get(["data","maxCount"])||10,p=c.get(["series","maxCount"])||10,g=Math.min(h,p),y;if(!(h<1)){var m=l();if(m){var _=c.get(["general","withTitle"]);y=s(_,{title:m})}else y=c.get(["general","withoutTitle"]);var S=[],x=h>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);y+=s(x,{seriesCount:h}),r.eachSeries(function(C,A){if(A<g){var D=void 0,L=C.get("name"),I=L?"withName":"withoutName";D=h>1?c.get(["series","multiple",I]):c.get(["series","single",I]),D=s(D,{seriesId:C.seriesIndex,seriesName:C.get("name"),seriesType:u(C.subType)});var P=C.getData();if(P.count()>d){var R=c.get(["data","partialData"]);D+=s(R,{displayCnt:d})}else D+=c.get(["data","allData"]);for(var E=c.get(["data","separator","middle"]),O=c.get(["data","separator","end"]),k=c.get(["data","excludeDimensionId"]),z=[],F=0;F<P.count();F++)if(F<d){var H=P.getName(F),W=k?Fe(P.getValues(F),function(Y,ee){return pe(k,ee)===-1}):P.getValues(F),X=c.get(["data",H?"withName":"withoutName"]);z.push(s(X,{name:H,value:W.join(E)}))}D+=z.join(E)+O,S.push(D)}});var w=c.getModel(["series","multiple","separator"]),b=w.get("middle"),T=w.get("end");y+=S.join(b)+T,f.setAttribute("aria-label",y)}}}}function s(f,v){if(!Z(f))return f;var c=f;return M(v,function(h,d){c=c.replace(new RegExp("\\{\\s*"+d+"\\s*\\}","g"),h)}),c}function l(){var f=r.get("title");return f&&f.length&&(f=f[0]),f&&f.text}function u(f){var v=r.getLocaleModel().get(["series","typeNames"]);return v[f]||v.chart}}function dte(r){if(!(!r||!r.aria)){var e=r.aria;e.show!=null&&(e.enabled=e.show),e.label=e.label||{},M(["description","general","series","data"],function(t){e[t]!=null&&(e.label[t]=e[t])})}}function pte(r){r.registerPreprocessor(dte),r.registerVisual(r.PRIORITY.VISUAL.ARIA,cte)}var sI={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},gte=(function(){function r(e){var t=this._condVal=Z(e)?new RegExp(e):xV(e)?e:null;if(t==null){var n="";Ve(n)}}return r.prototype.evaluate=function(e){var t=typeof e;return Z(t)?this._condVal.test(e):Ee(t)?this._condVal.test(e+""):!1},r})(),yte=(function(){function r(){}return r.prototype.evaluate=function(){return this.value},r})(),mte=(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})(),_te=(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})(),Ste=(function(){function r(){}return r.prototype.evaluate=function(){return!this.child.evaluate()},r})(),xte=(function(){function r(){}return r.prototype.evaluate=function(){for(var e=!!this.valueParser,t=this.getValue,n=t(this.valueGetterParam),a=e?this.valueParser(n):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(e?a:n))return!1;return!0},r})();function bx(r,e){if(r===!0||r===!1){var t=new yte;return t.value=r,t}var n="";return UN(r)||Ve(n),r.and?lI("and",r,e):r.or?lI("or",r,e):r.not?wte(r,e):bte(r,e)}function lI(r,e,t){var n=e[r],a="";U(n)||Ve(a),n.length||Ve(a);var i=r==="and"?new mte:new _te;return i.children=$(n,function(o){return bx(o,t)}),i.children.length||Ve(a),i}function wte(r,e){var t=r.not,n="";UN(t)||Ve(n);var a=new Ste;return a.child=bx(t,e),a.child||Ve(n),a}function bte(r,e){for(var t="",n=e.prepareGetValue(r),a=[],i=De(r),o=r.parser,s=o?TP(o):null,l=0;l<i.length;l++){var u=i[l];if(!(u==="parser"||e.valueGetterAttrMap.get(u))){var f=J(sI,u)?sI[u]:u,v=r[u],c=s?s(v):v,h=E3(f,c)||f==="reg"&&new gte(c);h||Ve(t),a.push(h)}}a.length||Ve(t);var d=new xte;return d.valueGetterParam=n,d.valueParser=s,d.getValue=e.getValue,d.subCondList=a,d}function UN(r){return fe(r)&&!Wt(r)}var Cte=(function(){function r(e,t){this._cond=bx(e,t)}return r.prototype.evaluate=function(){return this._cond.evaluate()},r})();function Tte(r,e){return new Cte(r,e)}var Ate={type:"echarts:filter",transform:function(r){for(var e=r.upstream,t,n=Tte(r.config,{valueGetterAttrMap:K({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;J(s,"dimension")||Ve(l);var f=e.getDimensionInfo(u);return f||Ve(l),{dimIdx:f.index}},getValue:function(s){return e.retrieveValueFromItem(t,s.dimIdx)}}),a=[],i=0,o=e.count();i<o;i++)t=e.getRawDataItem(i),n.evaluate()&&a.push(t);return{data:a}}},Mte={type:"echarts:sort",transform:function(r){var e=r.upstream,t=r.config,n="",a=Ye(t);a.length||Ve(n);var i=[];M(a,function(f){var v=f.dimension,c=f.order,h=f.parser,d=f.incomparable;if(v==null&&Ve(n),c!=="asc"&&c!=="desc"&&Ve(n),d&&d!=="min"&&d!=="max"){var p="";Ve(p)}if(c!=="asc"&&c!=="desc"){var g="";Ve(g)}var y=e.getDimensionInfo(v);y||Ve(n);var m=h?TP(h):null;h&&!m&&Ve(n),i.push({dimIdx:y.index,parser:m,comparator:new MP(c,d)})});var o=e.sourceFormat;o!==Pt&&o!==Cr&&Ve(n);for(var s=[],l=0,u=e.count();l<u;l++)s.push(e.getRawDataItem(l));return s.sort(function(f,v){for(var c=0;c<i.length;c++){var h=i[c],d=e.retrieveValueFromItem(f,h.dimIdx),p=e.retrieveValueFromItem(v,h.dimIdx);h.parser&&(d=h.parser(d),p=h.parser(p));var g=h.comparator.evaluate(d,p);if(g!==0)return g}return 0}),{data:s}}};function Dte(r){r.registerTransform(Ate),r.registerTransform(Mte)}var Ite=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.prototype.init=function(t,n,a){r.prototype.init.call(this,t,n,a),this._sourceManager=new EP(this),Ib(this)},e.prototype.mergeOption=function(t,n){r.prototype.mergeOption.call(this,t,n),Ib(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:Jr},e})(Me),Lte=(function(r){B(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 Pte(r){r.registerComponentModel(Ite),r.registerComponentView(Lte)}var pn=Bn.CMD;function Bs(r,e){return Math.abs(r-e)<1e-5}function L_(r){var e=r.data,t=r.len(),n=[],a,i=0,o=0,s=0,l=0;function u(I,P){a&&a.length>2&&n.push(a),a=[I,P]}function f(I,P,R,E){Bs(I,R)&&Bs(P,E)||a.push(I,P,R,E,R,E)}function v(I,P,R,E,O,k){var z=Math.abs(P-I),F=Math.tan(z/4)*4/3,H=P<I?-1:1,W=Math.cos(I),X=Math.sin(I),Y=Math.cos(P),ee=Math.sin(P),ye=W*O+R,Ne=X*k+E,ce=Y*O+R,te=ee*k+E,ge=O*F*H,re=k*F*H;a.push(ye-ge*X,Ne+re*W,ce+ge*ee,te-re*Y,ce,te)}for(var c,h,d,p,g=0;g<t;){var y=e[g++],m=g===1;switch(m&&(i=e[g],o=e[g+1],s=i,l=o,(y===pn.L||y===pn.C||y===pn.Q)&&(a=[s,l])),y){case pn.M:i=s=e[g++],o=l=e[g++],u(s,l);break;case pn.L:c=e[g++],h=e[g++],f(i,o,c,h),i=c,o=h;break;case pn.C:a.push(e[g++],e[g++],e[g++],e[g++],i=e[g++],o=e[g++]);break;case pn.Q:c=e[g++],h=e[g++],d=e[g++],p=e[g++],a.push(i+2/3*(c-i),o+2/3*(h-o),d+2/3*(c-d),p+2/3*(h-p),d,p),i=d,o=p;break;case pn.A:var _=e[g++],S=e[g++],x=e[g++],w=e[g++],b=e[g++],T=e[g++]+b;g+=1;var C=!e[g++];c=Math.cos(b)*x+_,h=Math.sin(b)*w+S,m?(s=c,l=h,u(s,l)):f(i,o,c,h),i=Math.cos(T)*x+_,o=Math.sin(T)*w+S;for(var A=(C?-1:1)*Math.PI/2,D=b;C?D>T:D<T;D+=A){var L=C?Math.max(D+A,T):Math.min(D+A,T);v(D,L,_,S,x,w)}break;case pn.R:s=i=e[g++],l=o=e[g++],c=s+e[g++],h=l+e[g++],u(c,l),f(c,l,c,h),f(c,h,s,h),f(s,h,s,l),f(s,l,c,l);break;case pn.Z:a&&f(i,o,s,l),i=s,o=l;break}}return a&&a.length>2&&n.push(a),n}function P_(r,e,t,n,a,i,o,s,l,u){if(Bs(r,t)&&Bs(e,n)&&Bs(a,o)&&Bs(i,s)){l.push(o,s);return}var f=2/u,v=f*f,c=o-r,h=s-e,d=Math.sqrt(c*c+h*h);c/=d,h/=d;var p=t-r,g=n-e,y=a-o,m=i-s,_=p*p+g*g,S=y*y+m*m;if(_<v&&S<v){l.push(o,s);return}var x=c*p+h*g,w=-c*y-h*m,b=_-x*x,T=S-w*w;if(b<v&&x>=0&&T<v&&w>=0){l.push(o,s);return}var C=[],A=[];ri(r,t,a,o,.5,C),ri(e,n,i,s,.5,A),P_(C[0],A[0],C[1],A[1],C[2],A[2],C[3],A[3],l,u),P_(C[4],A[4],C[5],A[5],C[6],A[6],C[7],A[7],l,u)}function Rte(r,e){var t=L_(r),n=[];e=e||1;for(var a=0;a<t.length;a++){var i=t[a],o=[],s=i[0],l=i[1];o.push(s,l);for(var u=2;u<i.length;){var f=i[u++],v=i[u++],c=i[u++],h=i[u++],d=i[u++],p=i[u++];P_(s,l,f,v,c,h,d,p,o,e),s=d,l=p}n.push(o)}return n}function $N(r,e,t){var n=r[e],a=r[1-e],i=Math.abs(n/a),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 f=o*s,v=t-f;if(v>0)for(var u=0;u<v;u++)l[u%o]+=1;return l}function uI(r,e,t){for(var n=r.r0,a=r.r,i=r.startAngle,o=r.endAngle,s=Math.abs(o-i),l=s*a,u=a-n,f=l>Math.abs(u),v=$N([l,u],f?0:1,e),c=(f?s:u)/v.length,h=0;h<v.length;h++)for(var d=(f?u:s)/v[h],p=0;p<v[h];p++){var g={};f?(g.startAngle=i+c*h,g.endAngle=i+c*(h+1),g.r0=n+d*p,g.r=n+d*(p+1)):(g.startAngle=i+d*p,g.endAngle=i+d*(p+1),g.r0=n+c*h,g.r=n+c*(h+1)),g.clockwise=r.clockwise,g.cx=r.cx,g.cy=r.cy,t.push(g)}}function Ete(r,e,t){for(var n=r.width,a=r.height,i=n>a,o=$N([n,a],i?0:1,e),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",f=i?"y":"x",v=r[s]/o.length,c=0;c<o.length;c++)for(var h=r[l]/o[c],d=0;d<o[c];d++){var p={};p[u]=c*v,p[f]=d*h,p[s]=v,p[l]=h,p.x+=r.x,p.y+=r.y,t.push(p)}}function fI(r,e,t,n){return r*n-t*e}function kte(r,e,t,n,a,i,o,s){var l=t-r,u=n-e,f=o-a,v=s-i,c=fI(f,v,l,u);if(Math.abs(c)<1e-6)return null;var h=r-a,d=e-i,p=fI(h,d,f,v)/c;return p<0||p>1?null:new ue(p*l+r,p*u+e)}function Ote(r,e,t){var n=new ue;ue.sub(n,t,e),n.normalize();var a=new ue;ue.sub(a,r,e);var i=a.dot(n);return i}function Ts(r,e){var t=r[r.length-1];t&&t[0]===e[0]&&t[1]===e[1]||r.push(e)}function Nte(r,e,t){for(var n=r.length,a=[],i=0;i<n;i++){var o=r[i],s=r[(i+1)%n],l=kte(o[0],o[1],s[0],s[1],e.x,e.y,t.x,t.y);l&&a.push({projPt:Ote(l,e,t),pt:l,idx:i})}if(a.length<2)return[{points:r},{points:r}];a.sort(function(g,y){return g.projPt-y.projPt});var u=a[0],f=a[a.length-1];if(f.idx<u.idx){var v=u;u=f,f=v}for(var c=[u.pt.x,u.pt.y],h=[f.pt.x,f.pt.y],d=[c],p=[h],i=u.idx+1;i<=f.idx;i++)Ts(d,r[i].slice());Ts(d,h),Ts(d,c);for(var i=f.idx+1;i<=u.idx+n;i++)Ts(p,r[i%n].slice());return Ts(p,c),Ts(p,h),[{points:d},{points:p}]}function vI(r){var e=r.points,t=[],n=[];Id(e,t,n);var a=new se(t[0],t[1],n[0]-t[0],n[1]-t[1]),i=a.width,o=a.height,s=a.x,l=a.y,u=new ue,f=new ue;return i>o?(u.x=f.x=s+i/2,u.y=l,f.y=l+o):(u.y=f.y=l+o/2,u.x=s,f.x=s+i),Nte(e,u,f)}function vd(r,e,t,n){if(t===1)n.push(e);else{var a=Math.floor(t/2),i=r(e);vd(r,i[0],a,n),vd(r,i[1],t-a,n)}return n}function Bte(r,e){for(var t=[],n=0;n<e;n++)t.push(dS(r));return t}function Vte(r,e){e.setStyle(r.style),e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel}function zte(r){for(var e=[],t=0;t<r.length;)e.push([r[t++],r[t++]]);return e}function Fte(r,e){var t=[],n=r.shape,a;switch(r.type){case"rect":Ete(n,e,t),a=be;break;case"sector":uI(n,e,t),a=Xt;break;case"circle":uI({r0:0,r:n.r,startAngle:0,endAngle:Math.PI*2,cx:n.cx,cy:n.cy},e,t),a=Xt;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=$(Rte(r.getUpdatedPathProxy(),o),function(y){return zte(y)}),l=s.length;if(l===0)vd(vI,{points:s[0]},e,t);else if(l===e)for(var u=0;u<l;u++)t.push({points:s[u]});else{var f=0,v=$(s,function(y){var m=[],_=[];Id(y,m,_);var S=(_[1]-m[1])*(_[0]-m[0]);return f+=S,{poly:y,area:S}});v.sort(function(y,m){return m.area-y.area});for(var c=e,u=0;u<l;u++){var h=v[u];if(c<=0)break;var d=u===l-1?c:Math.ceil(h.area/f*e);d<0||(vd(vI,{points:h.poly},d,t),c-=d)}}a=Zt;break}if(!a)return Bte(r,e);for(var p=[],u=0;u<t.length;u++){var g=new a;g.setShape(t[u]),Vte(r,g),p.push(g)}return p}function Gte(r,e){var t=r.length,n=e.length;if(t===n)return[r,e];for(var a=[],i=[],o=t<n?r:e,s=Math.min(t,n),l=Math.abs(n-t)/6,u=(s-2)/6,f=Math.ceil(l/u)+1,v=[o[0],o[1]],c=l,h=2;h<s;){var d=o[h-2],p=o[h-1],g=o[h++],y=o[h++],m=o[h++],_=o[h++],S=o[h++],x=o[h++];if(c<=0){v.push(g,y,m,_,S,x);continue}for(var w=Math.min(c,f-1)+1,b=1;b<=w;b++){var T=b/w;ri(d,g,m,S,T,a),ri(p,y,_,x,T,i),d=a[3],p=i[3],v.push(a[1],i[1],a[2],i[2],d,p),g=a[5],y=i[5],m=a[6],_=i[6]}c-=w-1}return o===r?[v,e]:[r,v]}function cI(r,e){for(var t=r.length,n=r[t-2],a=r[t-1],i=[],o=0;o<e.length;)i[o++]=n,i[o++]=a;return i}function Hte(r,e){for(var t,n,a,i=[],o=[],s=0;s<Math.max(r.length,e.length);s++){var l=r[s],u=e[s],f=void 0,v=void 0;l?u?(t=Gte(l,u),f=t[0],v=t[1],n=f,a=v):(v=cI(a||l,l),f=l):(f=cI(n||u,u),v=u),i.push(f),o.push(v)}return[i,o]}function hI(r){for(var e=0,t=0,n=0,a=r.length,i=0,o=a-2;i<a;o=i,i+=2){var s=r[o],l=r[o+1],u=r[i],f=r[i+1],v=s*f-u*l;e+=v,t+=(s+u)*v,n+=(l+f)*v}return e===0?[r[0]||0,r[1]||0]:[t/e/3,n/e/3,e]}function Ute(r,e,t,n){for(var a=(r.length-2)/6,i=1/0,o=0,s=r.length,l=s-2,u=0;u<a;u++){for(var f=u*6,v=0,c=0;c<s;c+=2){var h=c===0?f:(f+c-2)%l+2,d=r[h]-t[0],p=r[h+1]-t[1],g=e[c]-n[0],y=e[c+1]-n[1],m=g-d,_=y-p;v+=m*m+_*_}v<i&&(i=v,o=u)}return o}function $te(r){for(var e=[],t=r.length,n=0;n<t;n+=2)e[n]=r[t-n-2],e[n+1]=r[t-n-1];return e}function Wte(r,e,t,n){for(var a=[],i,o=0;o<r.length;o++){var s=r[o],l=e[o],u=hI(s),f=hI(l);i==null&&(i=u[2]<0!=f[2]<0);var v=[],c=[],h=0,d=1/0,p=[],g=s.length;i&&(s=$te(s));for(var y=Ute(s,l,u,f)*6,m=g-2,_=0;_<m;_+=2){var S=(y+_)%m+2;v[_+2]=s[S]-u[0],v[_+3]=s[S+1]-u[1]}v[0]=s[y]-u[0],v[1]=s[y+1]-u[1];for(var x=n/t,w=-n/2;w<=n/2;w+=x){for(var b=Math.sin(w),T=Math.cos(w),C=0,_=0;_<s.length;_+=2){var A=v[_],D=v[_+1],L=l[_]-f[0],I=l[_+1]-f[1],P=L*T-I*b,R=L*b+I*T;p[_]=P,p[_+1]=R;var E=P-A,O=R-D;C+=E*E+O*O}if(C<d){d=C,h=w;for(var k=0;k<p.length;k++)c[k]=p[k]}}a.push({from:v,to:c,fromCp:u,toCp:f,rotation:-h})}return a}function cd(r){return r.__isCombineMorphing}var WN="__mOriginal_";function hd(r,e,t){var n=WN+e,a=r[n]||r[e];r[n]||(r[n]=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=a.apply(this,l),o&&o.apply(this,l),u}}function Hu(r,e){var t=WN+e;r[t]&&(r[e]=r[t],r[t]=null)}function dI(r,e){for(var t=0;t<r.length;t++)for(var n=r[t],a=0;a<n.length;){var i=n[a],o=n[a+1];n[a++]=e[0]*i+e[2]*o+e[4],n[a++]=e[1]*i+e[3]*o+e[5]}}function YN(r,e){var t=r.getUpdatedPathProxy(),n=e.getUpdatedPathProxy(),a=Hte(L_(t),L_(n)),i=a[0],o=a[1],s=r.getComputedTransform(),l=e.getComputedTransform();function u(){this.transform=null}s&&dI(i,s),l&&dI(o,l),hd(e,"updateTransform",{replace:u}),e.transform=null;var f=Wte(i,o,10,Math.PI),v=[];hd(e,"buildPath",{replace:function(c){for(var h=e.__morphT,d=1-h,p=[],g=0;g<f.length;g++){var y=f[g],m=y.from,_=y.to,S=y.rotation*h,x=y.fromCp,w=y.toCp,b=Math.sin(S),T=Math.cos(S);Tc(p,x,w,h);for(var C=0;C<m.length;C+=2){var A=m[C],D=m[C+1],L=_[C],I=_[C+1],P=A*d+L*h,R=D*d+I*h;v[C]=P*T-R*b+p[0],v[C+1]=P*b+R*T+p[1]}var E=v[0],O=v[1];c.moveTo(E,O);for(var C=2;C<m.length;){var L=v[C++],I=v[C++],k=v[C++],z=v[C++],F=v[C++],H=v[C++];E===L&&O===I&&k===F&&z===H?c.lineTo(F,H):c.bezierCurveTo(L,I,k,z,F,H),E=F,O=H}}}})}function Cx(r,e,t){if(!r||!e)return e;var n=t.done,a=t.during;YN(r,e),e.__morphT=0;function i(){Hu(e,"buildPath"),Hu(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return e.animateTo({__morphT:1},le({during:function(o){e.dirtyShape(),a&&a(o)},done:function(){i(),n&&n()}},t)),e}function Yte(r,e,t,n,a,i){var o=16;r=a===t?0:Math.round(32767*(r-t)/(a-t)),e=i===n?0:Math.round(32767*(e-n)/(i-n));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var f=0,v=0;(r&u)>0&&(f=1),(e&u)>0&&(v=1),s+=u*u*(3*f^v),v===0&&(f===1&&(r=u-1-r,e=u-1-e),l=r,r=e,e=l)}return s}function dd(r){var e=1/0,t=1/0,n=-1/0,a=-1/0,i=$(r,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),f=l.x+l.width/2+(u?u[4]:0),v=l.y+l.height/2+(u?u[5]:0);return e=Math.min(f,e),t=Math.min(v,t),n=Math.max(f,n),a=Math.max(v,a),[f,v]}),o=$(i,function(s,l){return{cp:s,z:Yte(s[0],s[1],e,t,n,a),path:r[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function XN(r){return Fte(r.path,r.count)}function R_(){return{fromIndividuals:[],toIndividuals:[],count:0}}function Xte(r,e,t){var n=[];function a(x){for(var w=0;w<x.length;w++){var b=x[w];cd(b)?a(b.childrenRef()):b instanceof Ae&&n.push(b)}}a(r);var i=n.length;if(!i)return R_();var o=t.dividePath||XN,s=o({path:e,count:i});if(s.length!==i)return console.error("Invalid morphing: unmatched splitted path"),R_();n=dd(n),s=dd(s);for(var l=t.done,u=t.during,f=t.individualDelay,v=new Un,c=0;c<i;c++){var h=n[c],d=s[c];d.parent=e,d.copyTransform(v),f||YN(h,d)}e.__isCombineMorphing=!0,e.childrenRef=function(){return s};function p(x){for(var w=0;w<s.length;w++)s[w].addSelfToZr(x)}hd(e,"addSelfToZr",{after:function(x){p(x)}}),hd(e,"removeSelfFromZr",{after:function(x){for(var w=0;w<s.length;w++)s[w].removeSelfFromZr(x)}});function g(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,Hu(e,"addSelfToZr"),Hu(e,"removeSelfFromZr")}var y=s.length;if(f)for(var m=y,_=function(){m--,m===0&&(g(),l&&l())},c=0;c<y;c++){var S=f?le({delay:(t.delay||0)+f(c,y,n[c],s[c]),done:_},t):t;Cx(n[c],s[c],S)}else e.__morphT=0,e.animateTo({__morphT:1},le({during:function(x){for(var w=0;w<y;w++){var b=s[w];b.__morphT=e.__morphT,b.dirtyShape()}u&&u(x)},done:function(){g();for(var x=0;x<r.length;x++)Hu(r[x],"updateTransform");l&&l()}},t));return e.__zr&&p(e.__zr),{fromIndividuals:n,toIndividuals:s,count:y}}function Zte(r,e,t){var n=e.length,a=[],i=t.dividePath||XN;function o(h){for(var d=0;d<h.length;d++){var p=h[d];cd(p)?o(p.childrenRef()):p instanceof Ae&&a.push(p)}}if(cd(r)){o(r.childrenRef());var s=a.length;if(s<n)for(var l=0,u=s;u<n;u++)a.push(dS(a[l++%s]));a.length=n}else{a=i({path:r,count:n});for(var f=r.getComputedTransform(),u=0;u<a.length;u++)a[u].setLocalTransform(f);if(a.length!==n)return console.error("Invalid morphing: unmatched splitted path"),R_()}a=dd(a),e=dd(e);for(var v=t.individualDelay,u=0;u<n;u++){var c=v?le({delay:(t.delay||0)+v(u,n,a[u],e[u])},t):t;Cx(a[u],e[u],c)}return{fromIndividuals:a,toIndividuals:e,count:e.length}}function pI(r){return U(r[0])}function gI(r,e){for(var t=[],n=r.length,a=0;a<n;a++)t.push({one:r[a],many:[]});for(var a=0;a<e.length;a++){var i=e[a].length,o=void 0;for(o=0;o<i;o++)t[o%n].many.push(e[a][o])}for(var s=0,a=n-1;a>=0;a--)if(!t[a].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[a].many=l.slice(u,i),t[s].many=l.slice(0,u),s++}return t}var jte={clone:function(r){for(var e=[],t=1-Math.pow(1-r.path.style.opacity,1/r.count),n=0;n<r.count;n++){var a=dS(r.path);a.setStyle("opacity",t),e.push(a)}return e},split:null};function Ky(r,e,t,n,a,i){if(!r.length||!e.length)return;var o=Cl("update",n,a);if(!(o&&o.duration>0))return;var s=n.getModel("universalTransition").get("delay"),l=G({setToFinal:!0},o),u,f;pI(r)&&(u=r,f=e),pI(e)&&(u=e,f=r);function v(y,m,_,S,x){var w=y.many,b=y.one;if(w.length===1&&!x){var T=m?w[0]:b,C=m?b:w[0];if(cd(T))v({many:[T],one:C},!0,_,S,!0);else{var A=s?le({delay:s(_,S)},l):l;Cx(T,C,A),i(T,C,T,C,A)}}else for(var D=le({dividePath:jte[t],individualDelay:s&&function(O,k,z,F){return s(O+_,S)}},l),L=m?Xte(w,b,D):Zte(b,w,D),I=L.fromIndividuals,P=L.toIndividuals,R=I.length,E=0;E<R;E++){var A=s?le({delay:s(E,R)},l):l;i(I[E],P[E],m?w[E]:y.one,m?y.one:w[E],A)}}for(var c=u?u===r:r.length>e.length,h=u?gI(f,u):gI(c?e:r,[c?r:e]),d=0,p=0;p<h.length;p++)d+=h[p].many.length;for(var g=0,p=0;p<h.length;p++)v(h[p],c,g,d),g+=h[p].many.length}function Ji(r){if(!r)return[];if(U(r)){for(var e=[],t=0;t<r.length;t++)e.push(Ji(r[t]));return e}var n=[];return r.traverse(function(a){a instanceof Ae&&!a.disableMorphing&&!a.invisible&&!a.ignore&&n.push(a)}),n}var ZN=1e4,qte=0,yI=1,mI=2,Kte=me();function Jte(r,e){for(var t=r.dimensions,n=0;n<t.length;n++){var a=r.getDimensionInfo(t[n]);if(a&&a.otherDims[e]===0)return t[n]}}function Qte(r,e,t){var n=r.getDimensionInfo(t),a=n&&n.ordinalMeta;if(n){var i=r.get(n.name,e);return a&&a.categories[i]||i+""}}function _I(r,e,t,n){var a=n?"itemChildGroupId":"itemGroupId",i=Jte(r,a);if(i){var o=Qte(r,e,i);return o}var s=r.getRawDataItem(e),l=n?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!n)return t||r.getId(e)}function SI(r){var e=[];return M(r,function(t){var n=t.data,a=t.dataGroupId;if(!(n.count()>ZN))for(var i=n.getIndices(),o=0;o<i.length;o++)e.push({data:n,groupId:_I(n,o,a,!1),childGroupId:_I(n,o,a,!0),divide:t.divide,dataIndex:o})}),e}function Jy(r,e,t){r.traverse(function(n){n instanceof Ae&&Ke(n,{style:{opacity:0}},e,{dataIndex:t,isFrom:!0})})}function Qy(r){if(r.parent){var e=r.getComputedTransform();r.setLocalTransform(e),r.parent.remove(r)}}function As(r){r.stopAnimation(),r.isGroup&&r.traverse(function(e){e.stopAnimation()})}function ere(r,e,t){var n=Cl("update",t,e);n&&r.traverse(function(a){if(a instanceof Ur){var i=lG(a);i&&a.animateFrom({style:i},n)}})}function tre(r,e){var t=r.length;if(t!==e.length)return!1;for(var n=0;n<t;n++){var a=r[n],i=e[n];if(a.data.getId(a.dataIndex)!==i.data.getId(i.dataIndex))return!1}return!0}function jN(r,e,t){var n=SI(r),a=SI(e);function i(_,S,x,w,b){(x||_)&&S.animateFrom({style:x&&x!==_?G(G({},x.style),_.style):_.style},b)}var o=!1,s=qte,l=K(),u=K();M(n,function(_){_.groupId&&l.set(_.groupId,!0),_.childGroupId&&u.set(_.childGroupId,!0)});for(var f=0;f<a.length;f++){var v=a[f].groupId;if(u.get(v)){s=yI;break}var c=a[f].childGroupId;if(c&&l.get(c)){s=mI;break}}function h(_,S){return function(x){var w=x.data,b=x.dataIndex;return S?w.getId(b):_?s===yI?x.childGroupId:x.groupId:s===mI?x.childGroupId:x.groupId}}var d=tre(n,a),p={};if(!d)for(var f=0;f<a.length;f++){var g=a[f],y=g.data.getItemGraphicEl(g.dataIndex);y&&(p[y.id]=!0)}function m(_,S){var x=n[S],w=a[_],b=w.data.hostModel,T=x.data.getItemGraphicEl(x.dataIndex),C=w.data.getItemGraphicEl(w.dataIndex);if(T===C){C&&ere(C,w.dataIndex,b);return}T&&p[T.id]||C&&(As(C),T?(As(T),Qy(T),o=!0,Ky(Ji(T),Ji(C),w.divide,b,_,i)):Jy(C,b,_))}new ga(n,a,h(!0,d),h(!1,d),null,"multiple").update(m).updateManyToOne(function(_,S){var x=a[_],w=x.data,b=w.hostModel,T=w.getItemGraphicEl(x.dataIndex),C=Fe($(S,function(A){return n[A].data.getItemGraphicEl(n[A].dataIndex)}),function(A){return A&&A!==T&&!p[A.id]});T&&(As(T),C.length?(M(C,function(A){As(A),Qy(A)}),o=!0,Ky(Ji(C),Ji(T),x.divide,b,_,i)):Jy(T,b,x.dataIndex))}).updateOneToMany(function(_,S){var x=n[S],w=x.data.getItemGraphicEl(x.dataIndex);if(!(w&&p[w.id])){var b=Fe($(_,function(C){return a[C].data.getItemGraphicEl(a[C].dataIndex)}),function(C){return C&&C!==w}),T=a[_[0]].data.hostModel;b.length&&(M(b,function(C){return As(C)}),w?(As(w),Qy(w),o=!0,Ky(Ji(w),Ji(b),x.divide,T,_[0],i)):M(b,function(C){return Jy(C,T,_[0])}))}}).updateManyToMany(function(_,S){new ga(S,_,function(x){return n[x].data.getId(n[x].dataIndex)},function(x){return a[x].data.getId(a[x].dataIndex)}).update(function(x,w){m(_[x],S[w])}).execute()}).execute(),o&&M(e,function(_){var S=_.data,x=S.hostModel,w=x&&t.getViewOfSeriesModel(x),b=Cl("update",x,0);w&&x.isAnimationEnabled()&&b&&b.duration>0&&w.group.traverse(function(T){T instanceof Ae&&!T.animators.length&&T.animateFrom({style:{opacity:0}},b)})})}function xI(r){var e=r.getModel("universalTransition").get("seriesKey");return e||r.id}function wI(r){return U(r)?r.sort().join(","):r}function Oa(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function rre(r,e){var t=K(),n=K(),a=K();return M(r.oldSeries,function(i,o){var s=r.oldDataGroupIds[o],l=r.oldData[o],u=xI(i),f=wI(u);n.set(f,{dataGroupId:s,data:l}),U(u)&&M(u,function(v){a.set(v,{key:f,dataGroupId:s,data:l})})}),M(e.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=xI(i),u=wI(l),f=n.get(u);if(f)t.set(u,{oldSeries:[{dataGroupId:f.dataGroupId,divide:Oa(f.data),data:f.data}],newSeries:[{dataGroupId:o,divide:Oa(s),data:s}]});else if(U(l)){var v=[];M(l,function(d){var p=n.get(d);p.data&&v.push({dataGroupId:p.dataGroupId,divide:Oa(p.data),data:p.data})}),v.length&&t.set(u,{oldSeries:v,newSeries:[{dataGroupId:o,data:s,divide:Oa(s)}]})}else{var c=a.get(l);if(c){var h=t.get(c.key);h||(h={oldSeries:[{dataGroupId:c.dataGroupId,data:c.data,divide:Oa(c.data)}],newSeries:[]},t.set(c.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:Oa(s)})}}}}),t}function bI(r,e){for(var t=0;t<r.length;t++){var n=e.seriesIndex!=null&&e.seriesIndex===r[t].seriesIndex||e.seriesId!=null&&e.seriesId===r[t].id;if(n)return t}}function nre(r,e,t,n){var a=[],i=[];M(Ye(r.from),function(o){var s=bI(e.oldSeries,o);s>=0&&a.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:Oa(e.oldData[s]),groupIdDim:o.dimension})}),M(Ye(r.to),function(o){var s=bI(t.updatedSeries,o);if(s>=0){var l=t.updatedSeries[s].getData();i.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:Oa(l),groupIdDim:o.dimension})}}),a.length>0&&i.length>0&&jN(a,i,n)}function are(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,n){M(Ye(n.seriesTransition),function(a){M(Ye(a.to),function(i){for(var o=n.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][Gc]=!0)})})}),r.registerUpdateLifecycle("series:transition",function(e,t,n){var a=Kte(t);if(a.oldSeries&&n.updatedSeries&&n.optionChanged){var i=n.seriesTransition;if(i)M(Ye(i),function(h){nre(h,a,n,t)});else{var o=rre(a,n);M(o.keys(),function(h){var d=o.get(h);jN(d.oldSeries,d.newSeries,t)})}M(n.updatedSeries,function(h){h[Gc]&&(h[Gc]=!1)})}for(var s=e.getSeries(),l=a.oldSeries=[],u=a.oldDataGroupIds=[],f=a.oldData=[],v=0;v<s.length;v++){var c=s[v].getData();c.count()<ZN&&(l.push(s[v]),u.push(s[v].get("dataGroupId")),f.push(c))}})}var ire=(function(){function r(e,t){qS(this,r.decoratedMethods),this._outOfBrk=D0(null,t),this._linear=D0(null,t),KS(this),this.breaks=e&&e.breaks||[]}return r.prototype.hasBreaks=function(){return!!this.breaks.length},r.prototype.calcNiceTickMultiple=function(e,t){for(var n=0;n<this.breaks.length;n++){var a=this.breaks[n];if(a.vmin<e&&e<a.vmax){var i=t(e,a.vmax);return i}}return 0},r.decoratedMethods={needTransform:function(){return!this.breaks.length},getExtent:function(){return this._outOfBrk.getExtent()},getExtentUnsafe:function(e,t){return t==null||t===aa?this._outOfBrk.getExtentUnsafe(e,null):this._linear.getExtentUnsafe(e,null)},setExtent:function(e,t){this.setExtent2(cr,e,t)},setExtent2:function(e,t,n){wo(t,n)&&(e===cr&&sre(this,[t,n]),this._outOfBrk.setExtent2(e,t,n),this._linear.setExtent2(e,this.transformIn(t,null),this.transformIn(n,null)))},normalize:function(e){return this._linear.normalize(this.transformIn(e,null))},scale:function(e){return this.transformOut(this._linear.scale(e),null)},contain:function(e){return this._outOfBrk.contain(e)},transformIn:function(e,t){if(t&&t.depth===aa)return e;for(var n=CI,a=TI,i=!0,o=0;o<this.breaks.length;o++){var s=this.breaks[o];if(e<=s.vmax){e>s.vmin?n+=s.vmin-a+(e-s.vmin)/(s.vmax-s.vmin)*s.gapReal:n+=e-a,a=s.vmax,i=!1;break}n+=s.vmin-a+s.gapReal,a=s.vmax}return i&&(n+=e-a),n},transformOut:function(e,t){if(t&&t.depth===aa)return e;for(var n=CI,a=TI,i=!0,o=0,s=0;s<this.breaks.length;s++){var l=this.breaks[s],u=n+l.vmin-a,f=u+l.gapReal;if(e<=f){e>u?o=l.vmin+(e-u)/(f-u)*(l.vmax-l.vmin):o=a+e-n,a=l.vmax,i=!1;break}n=f,a=l.vmax}return i&&(o=a+e-n),o}},r})();function ore(r,e){return new ire(r,e)}var CI=0,TI=0;function sre(r,e){var t=0,n={tpAbs:{span:0,val:0},tpPrct:{span:0,val:0}},a=function(){return{has:!1,span:NaN,inExtFrac:NaN,val:NaN}},i={S:{tpAbs:a(),tpPrct:a()},E:{tpAbs:a(),tpPrct:a()}};M(r.breaks,function(s){var l=s.gapParsed;l.type==="tpPrct"&&(t+=l.val);var u=Tx(s,e);if(u){var f=u.vmin!==s.vmin,v=u.vmax!==s.vmax,c=u.vmax-u.vmin;if(!(f&&v))if(f||v){var h=f?"S":"E";i[h][l.type].has=!0,i[h][l.type].span=c,i[h][l.type].inExtFrac=c/(s.vmax-s.vmin),i[h][l.type].val=l.val}else n[l.type].span+=c,n[l.type].val+=l.val}});var o=t*(0+(e[1]-e[0])+(n.tpAbs.val-n.tpAbs.span)+(i.S.tpAbs.has?(i.S.tpAbs.val-i.S.tpAbs.span)*i.S.tpAbs.inExtFrac:0)+(i.E.tpAbs.has?(i.E.tpAbs.val-i.E.tpAbs.span)*i.E.tpAbs.inExtFrac:0)-n.tpPrct.span-(i.S.tpPrct.has?i.S.tpPrct.span*i.S.tpPrct.inExtFrac:0)-(i.E.tpPrct.has?i.E.tpPrct.span*i.E.tpPrct.inExtFrac:0))/(1-n.tpPrct.val-(i.S.tpPrct.has?i.S.tpPrct.val*i.S.tpPrct.inExtFrac:0)-(i.E.tpPrct.has?i.E.tpPrct.val*i.E.tpPrct.inExtFrac:0));M(r.breaks,function(s){var l=s.gapParsed;l.type==="tpPrct"&&(s.gapReal=t!==0?we(o,0)*l.val/t:0),l.type==="tpAbs"&&(s.gapReal=l.val),s.gapReal==null&&(s.gapReal=0)})}function lre(r,e,t,n,a,i){r!=="no"&&M(t,function(o){var s=Tx(o,i);if(s)for(var l=e.length-1;l>=0;l--){var u=e[l],f=n(u),v=a*3/4;f>s.vmin-v&&f<s.vmax+v&&(r!=="preserve_extent_bound"||f!==i[0]&&f!==i[1])&&e.splice(l,1)}})}function ure(r,e,t,n){M(e,function(a){var i=Tx(a,t);i&&(r.push({value:i.vmin,break:{type:"vmin",parsedBreak:i},time:n?n(i):void 0}),r.push({value:i.vmax,break:{type:"vmax",parsedBreak:i},time:n?n(i):void 0}))}),e.length&&r.sort(function(a,i){return a.value-i.value})}function Tx(r,e){var t=we(r.vmin,e[0]),n=He(r.vmax,e[1]);return t<n||t===n&&t>e[0]&&t<e[1]?{vmin:t,vmax:n,breakOption:r.breakOption,gapParsed:r.gapParsed,gapReal:r.gapReal}:null}function E_(r,e,t){var n=[];if(!r)return{breaks:n};function a(o,s){return o>=0&&o<1-1e-5}M(r,function(o){if(!(!o||o.start==null||o.end==null)&&!o.isExpanded){var s={breakOption:ae(o),vmin:e.parse(o.start),vmax:e.parse(o.end),gapParsed:{type:"tpAbs",val:0},gapReal:null};if(o.gap!=null){var l=!1;if(Z(o.gap)){var u=Br(o.gap);if(u.match(/%$/)){var f=parseFloat(u)/100;a(f)||(f=0),s.gapParsed.type="tpPrct",s.gapParsed.val=f,l=!0}}if(!l){var v=e.parse(o.gap);(!isFinite(v)||v<0)&&(v=0),s.gapParsed.type="tpAbs",s.gapParsed.val=v}}if(s.vmin===s.vmax&&(s.gapParsed.type="tpAbs",s.gapParsed.val=0),t&&t.noNegative&&M(["vmin","vmax"],function(h){s[h]<0&&(s[h]=0)}),s.vmin>s.vmax){var c=s.vmax;s.vmax=s.vmin,s.vmin=c}n.push(s)}}),n.sort(function(o,s){return o.vmin-s.vmin});var i=-1/0;return M(n,function(o,s){i>o.vmin&&(n[s]=null),i=o.vmax}),{breaks:Fe(n,function(o){return!!o})}}function Ax(r,e){return k_(e)===k_(r)}function k_(r){return r.start+"_\0_"+r.end}function fre(r,e,t){var n=[];M(r,function(i,o){var s=e(i);s&&s.type==="vmin"&&n.push([o])}),M(r,function(i,o){var s=e(i);if(s&&s.type==="vmax"){var l=ci(n,function(u){return Ax(e(r[u[0]]).parsedBreak.breakOption,s.parsedBreak.breakOption)});l&&l.push(o)}});var a=[];return M(n,function(i){i.length===2&&a.push(t?i:[r[i[0]],r[i[1]]])}),a}function vre(r,e,t,n){if(e.break){var a=e.break.parsedBreak,i=ci(t,function(f){return Ax(f.breakOption,e.break.parsedBreak.breakOption)}),o={lookup:n,depth:aa},s=r.transformOut(a.vmin,o),l=r.transformOut(a.vmax,o),u={vmin:s,vmax:l,breakOption:a.breakOption,gapParsed:ae(i.gapParsed),gapReal:a.gapReal};return{tickVal:u[e.break.type],vBreak:{type:e.break.type,parsedBreak:u}}}}function cre(r,e,t,n,a){a.original=E_(r,e,t);var i=a.transformed=E_(r,e,t),o=a.lookup;i.breaks=$(i.breaks,function(s,l){var u={depth:aa},f=e.transformIn(s.vmin,u),v=e.transformIn(s.vmax,u),c={type:s.gapParsed.type,val:s.gapParsed.type==="tpAbs"?e.transformIn(s.vmin+s.gapParsed.val,u)-f:s.gapParsed.val};return o.from[n+l]=f,o.to[n+l]=s.vmin,o.from[n+l+1]=v,o.to[n+l+1]=s.vmax,{vmin:f,vmax:v,gapParsed:c,gapReal:s.gapReal,breakOption:s.breakOption}})}var hre={vmin:"start",vmax:"end"};function dre(r,e){return e&&(r=r||{},r.break={type:hre[e.type],start:e.parsedBreak.vmin,end:e.parsedBreak.vmax}),r}function pre(){PG({createBreakScaleMapper:ore,pruneTicksByBreak:lre,addBreaksToTicks:ure,parseAxisBreakOption:E_,identifyAxisBreak:Ax,serializeAxisBreakIdentifier:k_,retrieveAxisBreakPairs:fre,getTicksBreakOutwardTransform:vre,parseAxisBreakOptionInwardTransform:cre,makeAxisLabelFormatterParamBreak:dre})}var AI=me();function gre(r,e){var t=ci(r,function(n){return vt().identifyAxisBreak(n.parsedBreak.breakOption,e.breakOption)});return t||r.push(t={zigzagRandomList:[],parsedBreak:e,shouldRemove:!1}),t}function yre(r){M(r,function(e){return e.shouldRemove=!0})}function mre(r){for(var e=r.length-1;e>=0;e--)r[e].shouldRemove&&r.splice(e,1)}function _re(r,e,t,n,a){var i=t.axis;if(i.scale.isBlank()||!vt())return;var o=vt().retrieveAxisBreakPairs(i.scale.getTicks({breakTicks:"only_break"}),function(C){return C.break},!1);if(!o.length)return;var s=t.getModel("breakArea"),l=s.get("zigzagAmplitude"),u=s.get("zigzagMinSpan"),f=s.get("zigzagMaxSpan");u=Math.max(2,u||0),f=Math.max(u,f||0);var v=s.get("expandOnClick"),c=s.get("zigzagZ"),h=s.getModel("itemStyle"),d=h.getItemStyle(),p=d.stroke,g=d.lineWidth,y=d.lineDash,m=d.fill,_=new oe({ignoreModelZ:!0}),S=i.isHorizontal(),x=AI(e).visualList||(AI(e).visualList=[]);yre(x);for(var w=function(C){var A=o[C][0].break.parsedBreak,D=[];D[0]=i.toGlobalCoord(i.dataToCoord(A.vmin,!0)),D[1]=i.toGlobalCoord(i.dataToCoord(A.vmax,!0)),D[1]<D[0]&&D.reverse();var L=gre(x,A);L.shouldRemove=!1;var I=new oe;T(L.zigzagRandomList,I,D[0],D[1],S,A),v&&I.on("click",function(){var P={type:ep,breaks:[{start:A.breakOption.start,end:A.breakOption.end}]};P[i.dim+"AxisIndex"]=t.componentIndex,a.dispatchAction(P)}),I.silent=!v,_.add(I)},b=0;b<o.length;b++)w(b);r.add(_),mre(x);function T(C,A,D,L,I,P){var R={stroke:p,lineWidth:g,lineDash:y,fill:"none"},E=I?0:1,O=1-E,k=n[de[O]]+n[lt[O]];function z($e){var Pe=[],Ge=[];Pe[E]=Ge[E]=$e,Pe[O]=n[de[O]],Ge[O]=k;var We={x1:Pe[0],y1:Pe[1],x2:Ge[0],y2:Ge[1]};return Pd(We,We,{lineWidth:1}),Pe[0]=We.x1,Pe[1]=We.y1,Pe[E]}D=z(D),L=z(L);for(var F=[],H=[],W=!0,X=n[de[O]],Y=0;;Y++){var ee=X===n[de[O]],ye=X>=k;ye&&(X=k);var Ne=[],ce=[];Ne[E]=D,ce[E]=L,!ee&&!ye&&(Ne[E]+=W?-l:l,ce[E]-=W?l:-l),Ne[O]=X,ce[O]=X,F.push(Ne),H.push(ce);var te=void 0;if(Y<C.length?te=C[Y]:(te=Math.random(),C.push(te)),X+=te*(f-u)+u,W=!W,ye)break}var ge=vt().serializeAxisBreakIdentifier(P.breakOption);if(A.add(new Bt({anid:"break_a_"+ge,shape:{points:F},style:R,z:c})),P.gapReal!==0){A.add(new Bt({anid:"break_b_"+ge,shape:{points:H},style:R,z:c}));var re=H.slice();re.reverse();var he=F.concat(re);A.add(new Zt({anid:"break_c_"+ge,shape:{points:he},style:{fill:m,opacity:d.opacity},z:c}))}}}function Sre(r,e,t,n){var a=r.axis,i=t.transform;Yt(n.style);var o=a.getExtent();a.inverse&&(o=o.slice(),o.reverse());var s=vt().retrieveAxisBreakPairs(a.scale.getTicks({breakTicks:"only_break"}),function(g){return g.break},!1),l=$(s,function(g){var y=g[0].break.parsedBreak,m=[a.dataToCoord(y.vmin,!0),a.dataToCoord(y.vmax,!0)];return m[0]>m[1]&&m.reverse(),{coordPair:m,brkId:vt().serializeAxisBreakIdentifier(y.breakOption)}});l.sort(function(g,y){return g.coordPair[0]-y.coordPair[0]});for(var u=o[0],f=null,v=0;v<l.length;v++){var c=l[v],h=Math.max(c.coordPair[0],o[0]),d=Math.min(c.coordPair[1],o[1]);u<=h&&p(u,h,f,c),u=d,f=c}u<=o[1]&&p(u,o[1],f,null);function p(g,y,m,_){function S(D,L){i&&(st(D,D,i),st(L,L,i))}function x(D,L){var I={x1:D[0],y1:D[1],x2:L[0],y2:L[1]};Pd(I,I,n.style),D[0]=I.x1,D[1]=I.y1,L[0]=I.x2,L[1]=I.y2}var w=[g,0],b=[y,0],T=[g,5],C=[y,5];S(w,T),x(w,T),S(b,C),x(b,C),x(w,b);var A=new dt(G({shape:{x1:w[0],y1:w[1],x2:b[0],y2:b[1]}},n));e.add(A),A.anid="breakLine_"+(m?m.brkId:"\0")+"_\0_"+(_?_.brkId:"\0")}}function xre(r,e,t){if(ci(t,function(m){return!m}))return;var n=new ue;if(!Jd(t[0],t[1],n,{direction:-(r?e+Math.PI:e),touchThreshold:0,bidirectional:!1}))return;var a=nt();hi(a,a,-e);var i=$(t,function(m){return m.transform?Vr(nt(),a,m.transform):a});function o(m){var _=t[0].localRect,S=new ue(_[lt[m]]*i[0][0],_[lt[m]]*i[0][1]);return Math.abs(S.y)<1e-5}var s=.5;if(o(0)||o(1)){var l=$(t,function(m,_){var S=m.localRect.clone();return S.applyTransform(i[_]),S}),u=new ue;u.copy(t[0].label).add(t[1].label).scale(.5),u.transform(a);var f=n.clone().transform(a),v=l[0].x+l[1].x+(f.x>=0?l[0].width:l[1].width),c=(v+f.x)/2-u.x,h=Math.min(c,c-f.x),d=Math.max(c,c-f.x),p=d<0?d:h>0?h:0;s=(c-p)/f.x}var g=new ue,y=new ue;ue.scale(g,n,-s),ue.scale(y,n,1-s),E0(t[0],g),E0(t[1],y)}function wre(r,e){var t={breaks:[]};return M(e.breaks,function(n){if(n){var a=ci(r.get("breaks",!0),function(s){return vt().identifyAxisBreak(s,n)});if(a){var i=e.type,o={isExpanded:!!a.isExpanded};a.isExpanded=i===ep?!0:i===FE?!1:i===GE?!a.isExpanded:a.isExpanded,t.breaks.push({start:a.start,end:a.end,isExpanded:!!a.isExpanded,old:o})}}}),t}function bre(){zW({adjustBreakLabelPair:xre,buildAxisBreakLine:Sre,rectCoordBuildBreakAxis:_re,updateModelAxisBreak:wre})}function Cre(r){UW(r),pre(),bre()}function Tre(){i6(Are)}function Are(r,e){M(r,function(t){if(!t.model.get(["axisLabel","inside"])){var n=Mre(t);if(n){var a=t.isHorizontal()?"height":"width",i=t.model.get(["axisLabel","margin"]);e[a]-=n[a]+i,t.position==="top"?e.y+=n.height+i:t.position==="left"&&(e.x+=n.width+i)}}})}function Mre(r){var e=r.model,t=r.scale;if(!e.get(["axisLabel","show"])||t.isBlank())return;var n,a,i=t.getExtent();t instanceof uf?a=t.count():(n=t.getTicks(),a=n.length);var o=r.getLabelModel(),s=Wf(r),l,u=1;a>40&&(u=Math.ceil(a/40));for(var f=0;f<a;f+=u){var v=n?n[f]:{value:i[0]+f},c=s(v,f),h=o.getTextRect(c),d=p(h,o.get("rotate")||0);l?l.union(d):l=d}return l;function p(g,y){var m=y*Math.PI/180,_=g.width,S=g.height,x=_*Math.abs(Math.cos(m))+Math.abs(S*Math.sin(m)),w=_*Math.abs(Math.sin(m))+Math.abs(S*Math.cos(m)),b=new se(g.x,g.y,x,w);return b}}Se([yW]);Se([fW]);Se([VW,EY,$Y,T6,V6,G8,p7,J7,TX,EX,zX,ZX,z9,vZ,CZ,HZ,YZ,rj,uj,Sj,Mj,zj,bq]);Se(Hq);Se(yK);Se($k);Se(IK);Se(PO);Se(EK);Se(QK);Se(lJ);Se(KJ);Se(gQ);Se(Qf);Se(RQ);Se(OQ);Se($Q);Se(JQ);Se(aee);Se(fee);Se(xee);Se(Fee);Se(ON);Se(NN);Se(ote);Se(GN);Se(HN);Se(fte);Se(pte);Se(Dte);Se(Pte);Se(are);Se(I$);Se(Cre);Se(Tre);Se(A6);function Mx(r={}){const{option:e,autoResize:t=!0,theme:n,onReady:a,onClick:i,onDataZoom:o}=r,s=ze.useRef(null),l=ze.useRef(null);ze.useEffect(()=>{if(s.current)return l.current=T4(s.current,n),e&&l.current.setOption(e),a&&a(l.current),()=>{l.current&&(l.current.dispose(),l.current=null)}},[n]),ze.useEffect(()=>{l.current&&e&&l.current.setOption(e,!0)},[e]),ze.useEffect(()=>{if(!(!l.current||!i))return l.current.on("click",i),()=>{l.current?.off("click",i)}},[i]),ze.useEffect(()=>{if(!l.current||!o)return;const h=d=>{const p=d;p.batch?.[0]&&o(p.batch[0])};return l.current.on("datazoom",h),()=>{l.current?.off("datazoom",h)}},[o]),ze.useEffect(()=>{if(!t||!s.current)return;const h=new ResizeObserver(()=>{l.current?.resize()});return h.observe(s.current),()=>{h.disconnect()}},[t]);const u=ze.useCallback((h,d=!1)=>{l.current?.setOption(h,d)},[]),f=ze.useCallback(()=>l.current,[]),v=ze.useCallback(()=>{l.current?.resize()},[]),c=ze.useCallback(()=>{l.current?.clear()},[]);return{chartRef:s,setOption:u,getInstance:f,resize:v,clear:c}}const Dre={left:60,right:30,top:40,bottom:60,containLabel:!0};function Dx({data:r,height:e=300,xLabel:t="",yLabel:n="",series:a,tooltip:i,xAxisExtra:o}){const s=ze.useMemo(()=>({tooltip:i??{trigger:"axis"},grid:Dre,xAxis:{type:"category",data:r.map(u=>u.label),name:t,nameLocation:"middle",nameGap:35,...o},yAxis:{type:"value",name:n,nameLocation:"middle",nameGap:45},series:a}),[r,t,n,a,i,o]),{chartRef:l}=Mx({option:s});return V.jsx("div",{ref:l,style:{width:"100%",height:e}})}function Ire({data:r,...e}){const t=ze.useMemo(()=>[{type:"line",data:r.map(a=>a.value),smooth:!0,areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgba(99, 102, 241, 0.3)"},{offset:1,color:"rgba(99, 102, 241, 0.05)"}]}},lineStyle:{color:"#6366f1",width:2},itemStyle:{color:"#6366f1"}}],[r]),n=ze.useMemo(()=>({trigger:"axis",axisPointer:{type:"cross"}}),[]);return V.jsx(Dx,{data:r,series:t,tooltip:n,xAxisExtra:{boundaryGap:!1},...e})}function Lre({data:r,...e}){const t=ze.useMemo(()=>[{type:"bar",data:r.map(i=>i.value),itemStyle:{color:"#6366f1"},barMaxWidth:50}],[r]),n=ze.useMemo(()=>({trigger:"axis",axisPointer:{type:"shadow"}}),[]),a=ze.useMemo(()=>({axisLabel:{rotate:r.length>10?45:0,interval:0}}),[r.length]);return V.jsx(Dx,{data:r,series:t,tooltip:n,xAxisExtra:a,...e})}function Pre({data:r,...e}){const t=ze.useMemo(()=>[{type:"line",data:r.map(n=>n.value),smooth:!0,lineStyle:{color:"#6366f1",width:2},itemStyle:{color:"#6366f1"}}],[r]);return V.jsx(Dx,{data:r,series:t,xAxisExtra:{boundaryGap:!1},...e})}function Rre({data:r,height:e=400,showLabel:t=!0,showLegend:n=!0,radius:a=["50%","70%"],highlightName:i=null}){const o=ze.useMemo(()=>({tooltip:{trigger:"item",formatter:"{a} <br/>{b}: {c} ({d}%)"},legend:{show:n,orient:"vertical",right:10,top:"middle",textStyle:{fontSize:13}},series:[{name:"Distribution",type:"pie",radius:a,center:n?["40%","50%"]:["50%","50%"],data:r.map(l=>({...l,itemStyle:{...l.itemStyle,opacity:i&&l.name!==i?.3:1}})),emphasis:{itemStyle:{}},label:{show:t,formatter:"{b}: {d}%"}}]}),[r,t,n,a,i]),{chartRef:s}=Mx({option:o});return V.jsx("div",{ref:s,style:{width:"100%",height:e}})}function Ere({data:r,height:e=40,width:t=100,color:n="#6366f1",trend:a}){const i=a==="up"?"#ef4444":a==="down"?"#22c55e":n,o=r.length>0?r:[0],s=Math.min(...o),u=Math.max(...o)-s||1,f=o.length>1?t/(o.length-1):t,v=o.map((h,d)=>{const p=o.length>1?d*f:t/2,g=e-(h-s)/u*(e-4)-2;return`${p},${g}`}).join(" "),c=`${v} ${t},${e} 0,${e}`;return V.jsxs("svg",{width:t,height:e,viewBox:`0 0 ${t} ${e}`,role:"img","aria-hidden":"true",className:"overflow-visible",children:[V.jsx("polygon",{points:c,fill:i,fillOpacity:"0.12"}),V.jsx("polyline",{points:v,fill:"none",stroke:i,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}const MI=["#6366f1","#8b5cf6","#d946ef","#ec4899","#f43f5e","#f97316","#eab308","#84cc16","#22c55e","#14b8a6"];function DI(r){return MI[r%MI.length]}function kre({data:r,series:e,height:t=180,xLabel:n="",yLabel:a="",onSeriesClick:i,onDateRangeSelect:o}){const s=ze.useMemo(()=>{const v=e.map((c,h)=>({name:c.name,type:"line",stack:"total",areaStyle:{opacity:.6},emphasis:{focus:"series"},smooth:!0,data:r.map(d=>d[c.key]??0),itemStyle:{color:c.color||DI(h)},lineStyle:{width:1,color:c.color||DI(h)}}));return{tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},legend:{type:"scroll",bottom:0,data:e.map(c=>c.name),selectedMode:"multiple"},grid:{left:50,right:20,top:20,bottom:60,containLabel:!0},xAxis:{type:"category",boundaryGap:!1,data:r.map(c=>c.date),name:n,nameLocation:"middle",nameGap:30,axisLabel:{formatter:c=>{const h=new Date(c);return`${h.getMonth()+1}/${h.getDate()}`}}},yAxis:{type:"value",name:a,nameLocation:"middle",nameGap:40,minInterval:1},dataZoom:[{type:"inside",start:0,end:100},{type:"slider",show:!1}],series:v}},[r,e,n,a]),l=ze.useCallback(v=>{if(o&&r.length>0&&v.start!==void 0&&v.end!==void 0){const c=Math.floor(v.start/100*r.length),h=Math.ceil(v.end/100*r.length)-1;if(c>=0&&h<r.length){const d=r[c]?.date,p=r[h]?.date;d&&p&&o(d,p)}}},[r,o]),{chartRef:u,getInstance:f}=Mx({option:s,onDataZoom:l});return ze.useEffect(()=>{const v=f();if(!v||!i)return;const c=h=>{const d=Object.entries(h.selected).find(([,p])=>p===!1);if(d){const p=e.find(g=>g.name===d[0]);p&&i(p.key)}};return v.on("legendselectchanged",c),()=>{v.off("legendselectchanged",c)}},[f,e,i]),V.jsx("div",{ref:u,style:{width:"100%",height:t}})}/**
74
+ * table-core
75
+ *
76
+ * Copyright (c) TanStack
77
+ *
78
+ * This source code is licensed under the MIT license found in the
79
+ * LICENSE.md file in the root directory of this source tree.
80
+ *
81
+ * @license MIT
82
+ */function Wa(r,e){return typeof r=="function"?r(e):r}function wr(r,e){return t=>{e.setState(n=>({...n,[r]:Wa(t,n[r])}))}}function hp(r){return r instanceof Function}function Ore(r){return Array.isArray(r)&&r.every(e=>typeof e=="number")}function Nre(r,e){const t=[],n=a=>{a.forEach(i=>{t.push(i);const o=e(i);o!=null&&o.length&&n(o)})};return n(r),t}function Ce(r,e,t){let n=[],a;return i=>{let o;t.key&&t.debug&&(o=Date.now());const s=r(i);if(!(s.length!==n.length||s.some((f,v)=>n[v]!==f)))return a;n=s;let u;if(t.key&&t.debug&&(u=Date.now()),a=e(...s),t==null||t.onChange==null||t.onChange(a),t.key&&t.debug&&t!=null&&t.debug()){const f=Math.round((Date.now()-o)*100)/100,v=Math.round((Date.now()-u)*100)/100,c=v/16,h=(d,p)=>{for(d=String(d);d.length<p;)d=" "+d;return d};console.info(`%c⏱ ${h(v,5)} /${h(f,5)} ms`,`
83
+ font-size: .6rem;
84
+ font-weight: bold;
85
+ color: hsl(${Math.max(0,Math.min(120-120*c,120))}deg 100% 31%);`,t?.key)}return a}}function Te(r,e,t,n){return{debug:()=>{var a;return(a=r?.debugAll)!=null?a:r[e]},key:!1,onChange:n}}function Bre(r,e,t,n){const a=()=>{var o;return(o=i.getValue())!=null?o:r.options.renderFallbackValue},i={id:`${e.id}_${t.id}`,row:e,column:t,getValue:()=>e.getValue(n),renderValue:a,getContext:Ce(()=>[r,t,e,i],(o,s,l,u)=>({table:o,column:s,row:l,cell:u,getValue:u.getValue,renderValue:u.renderValue}),Te(r.options,"debugCells"))};return r._features.forEach(o=>{o.createCell==null||o.createCell(i,t,e,r)},{}),i}function Vre(r,e,t,n){var a,i;const s={...r._getDefaultColumnDef(),...e},l=s.accessorKey;let u=(a=(i=s.id)!=null?i:l?typeof String.prototype.replaceAll=="function"?l.replaceAll(".","_"):l.replace(/\./g,"_"):void 0)!=null?a:typeof s.header=="string"?s.header:void 0,f;if(s.accessorFn?f=s.accessorFn:l&&(l.includes(".")?f=c=>{let h=c;for(const p of l.split(".")){var d;h=(d=h)==null?void 0:d[p]}return h}:f=c=>c[s.accessorKey]),!u)throw new Error;let v={id:`${String(u)}`,accessorFn:f,parent:n,depth:t,columnDef:s,columns:[],getFlatColumns:Ce(()=>[!0],()=>{var c;return[v,...(c=v.columns)==null?void 0:c.flatMap(h=>h.getFlatColumns())]},Te(r.options,"debugColumns")),getLeafColumns:Ce(()=>[r._getOrderColumnsFn()],c=>{var h;if((h=v.columns)!=null&&h.length){let d=v.columns.flatMap(p=>p.getLeafColumns());return c(d)}return[v]},Te(r.options,"debugColumns"))};for(const c of r._features)c.createColumn==null||c.createColumn(v,r);return v}const Gt="debugHeaders";function II(r,e,t){var n;let i={id:(n=t.id)!=null?n:e.id,column:e,index:t.index,isPlaceholder:!!t.isPlaceholder,placeholderId:t.placeholderId,depth:t.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const o=[],s=l=>{l.subHeaders&&l.subHeaders.length&&l.subHeaders.map(s),o.push(l)};return s(i),o},getContext:()=>({table:r,header:i,column:e})};return r._features.forEach(o=>{o.createHeader==null||o.createHeader(i,r)}),i}const zre={createTable:r=>{r.getHeaderGroups=Ce(()=>[r.getAllColumns(),r.getVisibleLeafColumns(),r.getState().columnPinning.left,r.getState().columnPinning.right],(e,t,n,a)=>{var i,o;const s=(i=n?.map(v=>t.find(c=>c.id===v)).filter(Boolean))!=null?i:[],l=(o=a?.map(v=>t.find(c=>c.id===v)).filter(Boolean))!=null?o:[],u=t.filter(v=>!(n!=null&&n.includes(v.id))&&!(a!=null&&a.includes(v.id)));return _c(e,[...s,...u,...l],r)},Te(r.options,Gt)),r.getCenterHeaderGroups=Ce(()=>[r.getAllColumns(),r.getVisibleLeafColumns(),r.getState().columnPinning.left,r.getState().columnPinning.right],(e,t,n,a)=>(t=t.filter(i=>!(n!=null&&n.includes(i.id))&&!(a!=null&&a.includes(i.id))),_c(e,t,r,"center")),Te(r.options,Gt)),r.getLeftHeaderGroups=Ce(()=>[r.getAllColumns(),r.getVisibleLeafColumns(),r.getState().columnPinning.left],(e,t,n)=>{var a;const i=(a=n?.map(o=>t.find(s=>s.id===o)).filter(Boolean))!=null?a:[];return _c(e,i,r,"left")},Te(r.options,Gt)),r.getRightHeaderGroups=Ce(()=>[r.getAllColumns(),r.getVisibleLeafColumns(),r.getState().columnPinning.right],(e,t,n)=>{var a;const i=(a=n?.map(o=>t.find(s=>s.id===o)).filter(Boolean))!=null?a:[];return _c(e,i,r,"right")},Te(r.options,Gt)),r.getFooterGroups=Ce(()=>[r.getHeaderGroups()],e=>[...e].reverse(),Te(r.options,Gt)),r.getLeftFooterGroups=Ce(()=>[r.getLeftHeaderGroups()],e=>[...e].reverse(),Te(r.options,Gt)),r.getCenterFooterGroups=Ce(()=>[r.getCenterHeaderGroups()],e=>[...e].reverse(),Te(r.options,Gt)),r.getRightFooterGroups=Ce(()=>[r.getRightHeaderGroups()],e=>[...e].reverse(),Te(r.options,Gt)),r.getFlatHeaders=Ce(()=>[r.getHeaderGroups()],e=>e.map(t=>t.headers).flat(),Te(r.options,Gt)),r.getLeftFlatHeaders=Ce(()=>[r.getLeftHeaderGroups()],e=>e.map(t=>t.headers).flat(),Te(r.options,Gt)),r.getCenterFlatHeaders=Ce(()=>[r.getCenterHeaderGroups()],e=>e.map(t=>t.headers).flat(),Te(r.options,Gt)),r.getRightFlatHeaders=Ce(()=>[r.getRightHeaderGroups()],e=>e.map(t=>t.headers).flat(),Te(r.options,Gt)),r.getCenterLeafHeaders=Ce(()=>[r.getCenterFlatHeaders()],e=>e.filter(t=>{var n;return!((n=t.subHeaders)!=null&&n.length)}),Te(r.options,Gt)),r.getLeftLeafHeaders=Ce(()=>[r.getLeftFlatHeaders()],e=>e.filter(t=>{var n;return!((n=t.subHeaders)!=null&&n.length)}),Te(r.options,Gt)),r.getRightLeafHeaders=Ce(()=>[r.getRightFlatHeaders()],e=>e.filter(t=>{var n;return!((n=t.subHeaders)!=null&&n.length)}),Te(r.options,Gt)),r.getLeafHeaders=Ce(()=>[r.getLeftHeaderGroups(),r.getCenterHeaderGroups(),r.getRightHeaderGroups()],(e,t,n)=>{var a,i,o,s,l,u;return[...(a=(i=e[0])==null?void 0:i.headers)!=null?a:[],...(o=(s=t[0])==null?void 0:s.headers)!=null?o:[],...(l=(u=n[0])==null?void 0:u.headers)!=null?l:[]].map(f=>f.getLeafHeaders()).flat()},Te(r.options,Gt))}};function _c(r,e,t,n){var a,i;let o=0;const s=function(c,h){h===void 0&&(h=1),o=Math.max(o,h),c.filter(d=>d.getIsVisible()).forEach(d=>{var p;(p=d.columns)!=null&&p.length&&s(d.columns,h+1)},0)};s(r);let l=[];const u=(c,h)=>{const d={depth:h,id:[n,`${h}`].filter(Boolean).join("_"),headers:[]},p=[];c.forEach(g=>{const y=[...p].reverse()[0],m=g.column.depth===d.depth;let _,S=!1;if(m&&g.column.parent?_=g.column.parent:(_=g.column,S=!0),y&&y?.column===_)y.subHeaders.push(g);else{const x=II(t,_,{id:[n,h,_.id,g?.id].filter(Boolean).join("_"),isPlaceholder:S,placeholderId:S?`${p.filter(w=>w.column===_).length}`:void 0,depth:h,index:p.length});x.subHeaders.push(g),p.push(x)}d.headers.push(g),g.headerGroup=d}),l.push(d),h>0&&u(p,h-1)},f=e.map((c,h)=>II(t,c,{depth:o,index:h}));u(f,o-1),l.reverse();const v=c=>c.filter(d=>d.column.getIsVisible()).map(d=>{let p=0,g=0,y=[0];d.subHeaders&&d.subHeaders.length?(y=[],v(d.subHeaders).forEach(_=>{let{colSpan:S,rowSpan:x}=_;p+=S,y.push(x)})):p=1;const m=Math.min(...y);return g=g+m,d.colSpan=p,d.rowSpan=g,{colSpan:p,rowSpan:g}});return v((a=(i=l[0])==null?void 0:i.headers)!=null?a:[]),l}const Fre=(r,e,t,n,a,i,o)=>{let s={id:e,index:n,original:t,depth:a,parentId:o,_valuesCache:{},_uniqueValuesCache:{},getValue:l=>{if(s._valuesCache.hasOwnProperty(l))return s._valuesCache[l];const u=r.getColumn(l);if(u!=null&&u.accessorFn)return s._valuesCache[l]=u.accessorFn(s.original,n),s._valuesCache[l]},getUniqueValues:l=>{if(s._uniqueValuesCache.hasOwnProperty(l))return s._uniqueValuesCache[l];const u=r.getColumn(l);if(u!=null&&u.accessorFn)return u.columnDef.getUniqueValues?(s._uniqueValuesCache[l]=u.columnDef.getUniqueValues(s.original,n),s._uniqueValuesCache[l]):(s._uniqueValuesCache[l]=[s.getValue(l)],s._uniqueValuesCache[l])},renderValue:l=>{var u;return(u=s.getValue(l))!=null?u:r.options.renderFallbackValue},subRows:[],getLeafRows:()=>Nre(s.subRows,l=>l.subRows),getParentRow:()=>s.parentId?r.getRow(s.parentId,!0):void 0,getParentRows:()=>{let l=[],u=s;for(;;){const f=u.getParentRow();if(!f)break;l.push(f),u=f}return l.reverse()},getAllCells:Ce(()=>[r.getAllLeafColumns()],l=>l.map(u=>Bre(r,s,u,u.id)),Te(r.options,"debugRows")),_getAllCellsByColumnId:Ce(()=>[s.getAllCells()],l=>l.reduce((u,f)=>(u[f.column.id]=f,u),{}),Te(r.options,"debugRows"))};for(let l=0;l<r._features.length;l++){const u=r._features[l];u==null||u.createRow==null||u.createRow(s,r)}return s},Gre={createColumn:(r,e)=>{r._getFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,r.id),r.getFacetedRowModel=()=>r._getFacetedRowModel?r._getFacetedRowModel():e.getPreFilteredRowModel(),r._getFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,r.id),r.getFacetedUniqueValues=()=>r._getFacetedUniqueValues?r._getFacetedUniqueValues():new Map,r._getFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,r.id),r.getFacetedMinMaxValues=()=>{if(r._getFacetedMinMaxValues)return r._getFacetedMinMaxValues()}}},qN=(r,e,t)=>{var n,a;const i=t==null||(n=t.toString())==null?void 0:n.toLowerCase();return!!(!((a=r.getValue(e))==null||(a=a.toString())==null||(a=a.toLowerCase())==null)&&a.includes(i))};qN.autoRemove=r=>tn(r);const KN=(r,e,t)=>{var n;return!!(!((n=r.getValue(e))==null||(n=n.toString())==null)&&n.includes(t))};KN.autoRemove=r=>tn(r);const JN=(r,e,t)=>{var n;return((n=r.getValue(e))==null||(n=n.toString())==null?void 0:n.toLowerCase())===t?.toLowerCase()};JN.autoRemove=r=>tn(r);const QN=(r,e,t)=>{var n;return(n=r.getValue(e))==null?void 0:n.includes(t)};QN.autoRemove=r=>tn(r);const eB=(r,e,t)=>!t.some(n=>{var a;return!((a=r.getValue(e))!=null&&a.includes(n))});eB.autoRemove=r=>tn(r)||!(r!=null&&r.length);const tB=(r,e,t)=>t.some(n=>{var a;return(a=r.getValue(e))==null?void 0:a.includes(n)});tB.autoRemove=r=>tn(r)||!(r!=null&&r.length);const rB=(r,e,t)=>r.getValue(e)===t;rB.autoRemove=r=>tn(r);const nB=(r,e,t)=>r.getValue(e)==t;nB.autoRemove=r=>tn(r);const Ix=(r,e,t)=>{let[n,a]=t;const i=r.getValue(e);return i>=n&&i<=a};Ix.resolveFilterValue=r=>{let[e,t]=r,n=typeof e!="number"?parseFloat(e):e,a=typeof t!="number"?parseFloat(t):t,i=e===null||Number.isNaN(n)?-1/0:n,o=t===null||Number.isNaN(a)?1/0:a;if(i>o){const s=i;i=o,o=s}return[i,o]};Ix.autoRemove=r=>tn(r)||tn(r[0])&&tn(r[1]);const Jn={includesString:qN,includesStringSensitive:KN,equalsString:JN,arrIncludes:QN,arrIncludesAll:eB,arrIncludesSome:tB,equals:rB,weakEquals:nB,inNumberRange:Ix};function tn(r){return r==null||r===""}const Hre={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:r=>({columnFilters:[],...r}),getDefaultOptions:r=>({onColumnFiltersChange:wr("columnFilters",r),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(r,e)=>{r.getAutoFilterFn=()=>{const t=e.getCoreRowModel().flatRows[0],n=t?.getValue(r.id);return typeof n=="string"?Jn.includesString:typeof n=="number"?Jn.inNumberRange:typeof n=="boolean"||n!==null&&typeof n=="object"?Jn.equals:Array.isArray(n)?Jn.arrIncludes:Jn.weakEquals},r.getFilterFn=()=>{var t,n;return hp(r.columnDef.filterFn)?r.columnDef.filterFn:r.columnDef.filterFn==="auto"?r.getAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[r.columnDef.filterFn])!=null?t:Jn[r.columnDef.filterFn]},r.getCanFilter=()=>{var t,n,a;return((t=r.columnDef.enableColumnFilter)!=null?t:!0)&&((n=e.options.enableColumnFilters)!=null?n:!0)&&((a=e.options.enableFilters)!=null?a:!0)&&!!r.accessorFn},r.getIsFiltered=()=>r.getFilterIndex()>-1,r.getFilterValue=()=>{var t;return(t=e.getState().columnFilters)==null||(t=t.find(n=>n.id===r.id))==null?void 0:t.value},r.getFilterIndex=()=>{var t,n;return(t=(n=e.getState().columnFilters)==null?void 0:n.findIndex(a=>a.id===r.id))!=null?t:-1},r.setFilterValue=t=>{e.setColumnFilters(n=>{const a=r.getFilterFn(),i=n?.find(f=>f.id===r.id),o=Wa(t,i?i.value:void 0);if(LI(a,o,r)){var s;return(s=n?.filter(f=>f.id!==r.id))!=null?s:[]}const l={id:r.id,value:o};if(i){var u;return(u=n?.map(f=>f.id===r.id?l:f))!=null?u:[]}return n!=null&&n.length?[...n,l]:[l]})}},createRow:(r,e)=>{r.columnFilters={},r.columnFiltersMeta={}},createTable:r=>{r.setColumnFilters=e=>{const t=r.getAllLeafColumns(),n=a=>{var i;return(i=Wa(e,a))==null?void 0:i.filter(o=>{const s=t.find(l=>l.id===o.id);if(s){const l=s.getFilterFn();if(LI(l,o.value,s))return!1}return!0})};r.options.onColumnFiltersChange==null||r.options.onColumnFiltersChange(n)},r.resetColumnFilters=e=>{var t,n;r.setColumnFilters(e?[]:(t=(n=r.initialState)==null?void 0:n.columnFilters)!=null?t:[])},r.getPreFilteredRowModel=()=>r.getCoreRowModel(),r.getFilteredRowModel=()=>(!r._getFilteredRowModel&&r.options.getFilteredRowModel&&(r._getFilteredRowModel=r.options.getFilteredRowModel(r)),r.options.manualFiltering||!r._getFilteredRowModel?r.getPreFilteredRowModel():r._getFilteredRowModel())}};function LI(r,e,t){return(r&&r.autoRemove?r.autoRemove(e,t):!1)||typeof e>"u"||typeof e=="string"&&!e}const Ure=(r,e,t)=>t.reduce((n,a)=>{const i=a.getValue(r);return n+(typeof i=="number"?i:0)},0),$re=(r,e,t)=>{let n;return t.forEach(a=>{const i=a.getValue(r);i!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}),n},Wre=(r,e,t)=>{let n;return t.forEach(a=>{const i=a.getValue(r);i!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}),n},Yre=(r,e,t)=>{let n,a;return t.forEach(i=>{const o=i.getValue(r);o!=null&&(n===void 0?o>=o&&(n=a=o):(n>o&&(n=o),a<o&&(a=o)))}),[n,a]},Xre=(r,e)=>{let t=0,n=0;if(e.forEach(a=>{let i=a.getValue(r);i!=null&&(i=+i)>=i&&(++t,n+=i)}),t)return n/t},Zre=(r,e)=>{if(!e.length)return;const t=e.map(i=>i.getValue(r));if(!Ore(t))return;if(t.length===1)return t[0];const n=Math.floor(t.length/2),a=t.sort((i,o)=>i-o);return t.length%2!==0?a[n]:(a[n-1]+a[n])/2},jre=(r,e)=>Array.from(new Set(e.map(t=>t.getValue(r))).values()),qre=(r,e)=>new Set(e.map(t=>t.getValue(r))).size,Kre=(r,e)=>e.length,em={sum:Ure,min:$re,max:Wre,extent:Yre,mean:Xre,median:Zre,unique:jre,uniqueCount:qre,count:Kre},Jre={getDefaultColumnDef:()=>({aggregatedCell:r=>{var e,t;return(e=(t=r.getValue())==null||t.toString==null?void 0:t.toString())!=null?e:null},aggregationFn:"auto"}),getInitialState:r=>({grouping:[],...r}),getDefaultOptions:r=>({onGroupingChange:wr("grouping",r),groupedColumnMode:"reorder"}),createColumn:(r,e)=>{r.toggleGrouping=()=>{e.setGrouping(t=>t!=null&&t.includes(r.id)?t.filter(n=>n!==r.id):[...t??[],r.id])},r.getCanGroup=()=>{var t,n;return((t=r.columnDef.enableGrouping)!=null?t:!0)&&((n=e.options.enableGrouping)!=null?n:!0)&&(!!r.accessorFn||!!r.columnDef.getGroupingValue)},r.getIsGrouped=()=>{var t;return(t=e.getState().grouping)==null?void 0:t.includes(r.id)},r.getGroupedIndex=()=>{var t;return(t=e.getState().grouping)==null?void 0:t.indexOf(r.id)},r.getToggleGroupingHandler=()=>{const t=r.getCanGroup();return()=>{t&&r.toggleGrouping()}},r.getAutoAggregationFn=()=>{const t=e.getCoreRowModel().flatRows[0],n=t?.getValue(r.id);if(typeof n=="number")return em.sum;if(Object.prototype.toString.call(n)==="[object Date]")return em.extent},r.getAggregationFn=()=>{var t,n;if(!r)throw new Error;return hp(r.columnDef.aggregationFn)?r.columnDef.aggregationFn:r.columnDef.aggregationFn==="auto"?r.getAutoAggregationFn():(t=(n=e.options.aggregationFns)==null?void 0:n[r.columnDef.aggregationFn])!=null?t:em[r.columnDef.aggregationFn]}},createTable:r=>{r.setGrouping=e=>r.options.onGroupingChange==null?void 0:r.options.onGroupingChange(e),r.resetGrouping=e=>{var t,n;r.setGrouping(e?[]:(t=(n=r.initialState)==null?void 0:n.grouping)!=null?t:[])},r.getPreGroupedRowModel=()=>r.getFilteredRowModel(),r.getGroupedRowModel=()=>(!r._getGroupedRowModel&&r.options.getGroupedRowModel&&(r._getGroupedRowModel=r.options.getGroupedRowModel(r)),r.options.manualGrouping||!r._getGroupedRowModel?r.getPreGroupedRowModel():r._getGroupedRowModel())},createRow:(r,e)=>{r.getIsGrouped=()=>!!r.groupingColumnId,r.getGroupingValue=t=>{if(r._groupingValuesCache.hasOwnProperty(t))return r._groupingValuesCache[t];const n=e.getColumn(t);return n!=null&&n.columnDef.getGroupingValue?(r._groupingValuesCache[t]=n.columnDef.getGroupingValue(r.original),r._groupingValuesCache[t]):r.getValue(t)},r._groupingValuesCache={}},createCell:(r,e,t,n)=>{r.getIsGrouped=()=>e.getIsGrouped()&&e.id===t.groupingColumnId,r.getIsPlaceholder=()=>!r.getIsGrouped()&&e.getIsGrouped(),r.getIsAggregated=()=>{var a;return!r.getIsGrouped()&&!r.getIsPlaceholder()&&!!((a=t.subRows)!=null&&a.length)}}};function Qre(r,e,t){if(!(e!=null&&e.length)||!t)return r;const n=r.filter(i=>!e.includes(i.id));return t==="remove"?n:[...e.map(i=>r.find(o=>o.id===i)).filter(Boolean),...n]}const ene={getInitialState:r=>({columnOrder:[],...r}),getDefaultOptions:r=>({onColumnOrderChange:wr("columnOrder",r)}),createColumn:(r,e)=>{r.getIndex=Ce(t=>[Uu(e,t)],t=>t.findIndex(n=>n.id===r.id),Te(e.options,"debugColumns")),r.getIsFirstColumn=t=>{var n;return((n=Uu(e,t)[0])==null?void 0:n.id)===r.id},r.getIsLastColumn=t=>{var n;const a=Uu(e,t);return((n=a[a.length-1])==null?void 0:n.id)===r.id}},createTable:r=>{r.setColumnOrder=e=>r.options.onColumnOrderChange==null?void 0:r.options.onColumnOrderChange(e),r.resetColumnOrder=e=>{var t;r.setColumnOrder(e?[]:(t=r.initialState.columnOrder)!=null?t:[])},r._getOrderColumnsFn=Ce(()=>[r.getState().columnOrder,r.getState().grouping,r.options.groupedColumnMode],(e,t,n)=>a=>{let i=[];if(!(e!=null&&e.length))i=a;else{const o=[...e],s=[...a];for(;s.length&&o.length;){const l=o.shift(),u=s.findIndex(f=>f.id===l);u>-1&&i.push(s.splice(u,1)[0])}i=[...i,...s]}return Qre(i,t,n)},Te(r.options,"debugTable"))}},tm=()=>({left:[],right:[]}),tne={getInitialState:r=>({columnPinning:tm(),...r}),getDefaultOptions:r=>({onColumnPinningChange:wr("columnPinning",r)}),createColumn:(r,e)=>{r.pin=t=>{const n=r.getLeafColumns().map(a=>a.id).filter(Boolean);e.setColumnPinning(a=>{var i,o;if(t==="right"){var s,l;return{left:((s=a?.left)!=null?s:[]).filter(v=>!(n!=null&&n.includes(v))),right:[...((l=a?.right)!=null?l:[]).filter(v=>!(n!=null&&n.includes(v))),...n]}}if(t==="left"){var u,f;return{left:[...((u=a?.left)!=null?u:[]).filter(v=>!(n!=null&&n.includes(v))),...n],right:((f=a?.right)!=null?f:[]).filter(v=>!(n!=null&&n.includes(v)))}}return{left:((i=a?.left)!=null?i:[]).filter(v=>!(n!=null&&n.includes(v))),right:((o=a?.right)!=null?o:[]).filter(v=>!(n!=null&&n.includes(v)))}})},r.getCanPin=()=>r.getLeafColumns().some(n=>{var a,i,o;return((a=n.columnDef.enablePinning)!=null?a:!0)&&((i=(o=e.options.enableColumnPinning)!=null?o:e.options.enablePinning)!=null?i:!0)}),r.getIsPinned=()=>{const t=r.getLeafColumns().map(s=>s.id),{left:n,right:a}=e.getState().columnPinning,i=t.some(s=>n?.includes(s)),o=t.some(s=>a?.includes(s));return i?"left":o?"right":!1},r.getPinnedIndex=()=>{var t,n;const a=r.getIsPinned();return a?(t=(n=e.getState().columnPinning)==null||(n=n[a])==null?void 0:n.indexOf(r.id))!=null?t:-1:0}},createRow:(r,e)=>{r.getCenterVisibleCells=Ce(()=>[r._getAllVisibleCells(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,a)=>{const i=[...n??[],...a??[]];return t.filter(o=>!i.includes(o.column.id))},Te(e.options,"debugRows")),r.getLeftVisibleCells=Ce(()=>[r._getAllVisibleCells(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(i=>t.find(o=>o.column.id===i)).filter(Boolean).map(i=>({...i,position:"left"})),Te(e.options,"debugRows")),r.getRightVisibleCells=Ce(()=>[r._getAllVisibleCells(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(i=>t.find(o=>o.column.id===i)).filter(Boolean).map(i=>({...i,position:"right"})),Te(e.options,"debugRows"))},createTable:r=>{r.setColumnPinning=e=>r.options.onColumnPinningChange==null?void 0:r.options.onColumnPinningChange(e),r.resetColumnPinning=e=>{var t,n;return r.setColumnPinning(e?tm():(t=(n=r.initialState)==null?void 0:n.columnPinning)!=null?t:tm())},r.getIsSomeColumnsPinned=e=>{var t;const n=r.getState().columnPinning;if(!e){var a,i;return!!((a=n.left)!=null&&a.length||(i=n.right)!=null&&i.length)}return!!((t=n[e])!=null&&t.length)},r.getLeftLeafColumns=Ce(()=>[r.getAllLeafColumns(),r.getState().columnPinning.left],(e,t)=>(t??[]).map(n=>e.find(a=>a.id===n)).filter(Boolean),Te(r.options,"debugColumns")),r.getRightLeafColumns=Ce(()=>[r.getAllLeafColumns(),r.getState().columnPinning.right],(e,t)=>(t??[]).map(n=>e.find(a=>a.id===n)).filter(Boolean),Te(r.options,"debugColumns")),r.getCenterLeafColumns=Ce(()=>[r.getAllLeafColumns(),r.getState().columnPinning.left,r.getState().columnPinning.right],(e,t,n)=>{const a=[...t??[],...n??[]];return e.filter(i=>!a.includes(i.id))},Te(r.options,"debugColumns"))}};function rne(r){return r||(typeof document<"u"?document:null)}const Sc={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},rm=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),nne={getDefaultColumnDef:()=>Sc,getInitialState:r=>({columnSizing:{},columnSizingInfo:rm(),...r}),getDefaultOptions:r=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:wr("columnSizing",r),onColumnSizingInfoChange:wr("columnSizingInfo",r)}),createColumn:(r,e)=>{r.getSize=()=>{var t,n,a;const i=e.getState().columnSizing[r.id];return Math.min(Math.max((t=r.columnDef.minSize)!=null?t:Sc.minSize,(n=i??r.columnDef.size)!=null?n:Sc.size),(a=r.columnDef.maxSize)!=null?a:Sc.maxSize)},r.getStart=Ce(t=>[t,Uu(e,t),e.getState().columnSizing],(t,n)=>n.slice(0,r.getIndex(t)).reduce((a,i)=>a+i.getSize(),0),Te(e.options,"debugColumns")),r.getAfter=Ce(t=>[t,Uu(e,t),e.getState().columnSizing],(t,n)=>n.slice(r.getIndex(t)+1).reduce((a,i)=>a+i.getSize(),0),Te(e.options,"debugColumns")),r.resetSize=()=>{e.setColumnSizing(t=>{let{[r.id]:n,...a}=t;return a})},r.getCanResize=()=>{var t,n;return((t=r.columnDef.enableResizing)!=null?t:!0)&&((n=e.options.enableColumnResizing)!=null?n:!0)},r.getIsResizing=()=>e.getState().columnSizingInfo.isResizingColumn===r.id},createHeader:(r,e)=>{r.getSize=()=>{let t=0;const n=a=>{if(a.subHeaders.length)a.subHeaders.forEach(n);else{var i;t+=(i=a.column.getSize())!=null?i:0}};return n(r),t},r.getStart=()=>{if(r.index>0){const t=r.headerGroup.headers[r.index-1];return t.getStart()+t.getSize()}return 0},r.getResizeHandler=t=>{const n=e.getColumn(r.column.id),a=n?.getCanResize();return i=>{if(!n||!a||(i.persist==null||i.persist(),nm(i)&&i.touches&&i.touches.length>1))return;const o=r.getSize(),s=r?r.getLeafHeaders().map(y=>[y.column.id,y.column.getSize()]):[[n.id,n.getSize()]],l=nm(i)?Math.round(i.touches[0].clientX):i.clientX,u={},f=(y,m)=>{typeof m=="number"&&(e.setColumnSizingInfo(_=>{var S,x;const w=e.options.columnResizeDirection==="rtl"?-1:1,b=(m-((S=_?.startOffset)!=null?S:0))*w,T=Math.max(b/((x=_?.startSize)!=null?x:0),-.999999);return _.columnSizingStart.forEach(C=>{let[A,D]=C;u[A]=Math.round(Math.max(D+D*T,0)*100)/100}),{..._,deltaOffset:b,deltaPercentage:T}}),(e.options.columnResizeMode==="onChange"||y==="end")&&e.setColumnSizing(_=>({..._,...u})))},v=y=>f("move",y),c=y=>{f("end",y),e.setColumnSizingInfo(m=>({...m,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},h=rne(t),d={moveHandler:y=>v(y.clientX),upHandler:y=>{h?.removeEventListener("mousemove",d.moveHandler),h?.removeEventListener("mouseup",d.upHandler),c(y.clientX)}},p={moveHandler:y=>(y.cancelable&&(y.preventDefault(),y.stopPropagation()),v(y.touches[0].clientX),!1),upHandler:y=>{var m;h?.removeEventListener("touchmove",p.moveHandler),h?.removeEventListener("touchend",p.upHandler),y.cancelable&&(y.preventDefault(),y.stopPropagation()),c((m=y.touches[0])==null?void 0:m.clientX)}},g=ane()?{passive:!1}:!1;nm(i)?(h?.addEventListener("touchmove",p.moveHandler,g),h?.addEventListener("touchend",p.upHandler,g)):(h?.addEventListener("mousemove",d.moveHandler,g),h?.addEventListener("mouseup",d.upHandler,g)),e.setColumnSizingInfo(y=>({...y,startOffset:l,startSize:o,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:n.id}))}}},createTable:r=>{r.setColumnSizing=e=>r.options.onColumnSizingChange==null?void 0:r.options.onColumnSizingChange(e),r.setColumnSizingInfo=e=>r.options.onColumnSizingInfoChange==null?void 0:r.options.onColumnSizingInfoChange(e),r.resetColumnSizing=e=>{var t;r.setColumnSizing(e?{}:(t=r.initialState.columnSizing)!=null?t:{})},r.resetHeaderSizeInfo=e=>{var t;r.setColumnSizingInfo(e?rm():(t=r.initialState.columnSizingInfo)!=null?t:rm())},r.getTotalSize=()=>{var e,t;return(e=(t=r.getHeaderGroups()[0])==null?void 0:t.headers.reduce((n,a)=>n+a.getSize(),0))!=null?e:0},r.getLeftTotalSize=()=>{var e,t;return(e=(t=r.getLeftHeaderGroups()[0])==null?void 0:t.headers.reduce((n,a)=>n+a.getSize(),0))!=null?e:0},r.getCenterTotalSize=()=>{var e,t;return(e=(t=r.getCenterHeaderGroups()[0])==null?void 0:t.headers.reduce((n,a)=>n+a.getSize(),0))!=null?e:0},r.getRightTotalSize=()=>{var e,t;return(e=(t=r.getRightHeaderGroups()[0])==null?void 0:t.headers.reduce((n,a)=>n+a.getSize(),0))!=null?e:0}}};let xc=null;function ane(){if(typeof xc=="boolean")return xc;let r=!1;try{const e={get passive(){return r=!0,!1}},t=()=>{};window.addEventListener("test",t,e),window.removeEventListener("test",t)}catch{r=!1}return xc=r,xc}function nm(r){return r.type==="touchstart"}const ine={getInitialState:r=>({columnVisibility:{},...r}),getDefaultOptions:r=>({onColumnVisibilityChange:wr("columnVisibility",r)}),createColumn:(r,e)=>{r.toggleVisibility=t=>{r.getCanHide()&&e.setColumnVisibility(n=>({...n,[r.id]:t??!r.getIsVisible()}))},r.getIsVisible=()=>{var t,n;const a=r.columns;return(t=a.length?a.some(i=>i.getIsVisible()):(n=e.getState().columnVisibility)==null?void 0:n[r.id])!=null?t:!0},r.getCanHide=()=>{var t,n;return((t=r.columnDef.enableHiding)!=null?t:!0)&&((n=e.options.enableHiding)!=null?n:!0)},r.getToggleVisibilityHandler=()=>t=>{r.toggleVisibility==null||r.toggleVisibility(t.target.checked)}},createRow:(r,e)=>{r._getAllVisibleCells=Ce(()=>[r.getAllCells(),e.getState().columnVisibility],t=>t.filter(n=>n.column.getIsVisible()),Te(e.options,"debugRows")),r.getVisibleCells=Ce(()=>[r.getLeftVisibleCells(),r.getCenterVisibleCells(),r.getRightVisibleCells()],(t,n,a)=>[...t,...n,...a],Te(e.options,"debugRows"))},createTable:r=>{const e=(t,n)=>Ce(()=>[n(),n().filter(a=>a.getIsVisible()).map(a=>a.id).join("_")],a=>a.filter(i=>i.getIsVisible==null?void 0:i.getIsVisible()),Te(r.options,"debugColumns"));r.getVisibleFlatColumns=e("getVisibleFlatColumns",()=>r.getAllFlatColumns()),r.getVisibleLeafColumns=e("getVisibleLeafColumns",()=>r.getAllLeafColumns()),r.getLeftVisibleLeafColumns=e("getLeftVisibleLeafColumns",()=>r.getLeftLeafColumns()),r.getRightVisibleLeafColumns=e("getRightVisibleLeafColumns",()=>r.getRightLeafColumns()),r.getCenterVisibleLeafColumns=e("getCenterVisibleLeafColumns",()=>r.getCenterLeafColumns()),r.setColumnVisibility=t=>r.options.onColumnVisibilityChange==null?void 0:r.options.onColumnVisibilityChange(t),r.resetColumnVisibility=t=>{var n;r.setColumnVisibility(t?{}:(n=r.initialState.columnVisibility)!=null?n:{})},r.toggleAllColumnsVisible=t=>{var n;t=(n=t)!=null?n:!r.getIsAllColumnsVisible(),r.setColumnVisibility(r.getAllLeafColumns().reduce((a,i)=>({...a,[i.id]:t||!(i.getCanHide!=null&&i.getCanHide())}),{}))},r.getIsAllColumnsVisible=()=>!r.getAllLeafColumns().some(t=>!(t.getIsVisible!=null&&t.getIsVisible())),r.getIsSomeColumnsVisible=()=>r.getAllLeafColumns().some(t=>t.getIsVisible==null?void 0:t.getIsVisible()),r.getToggleAllColumnsVisibilityHandler=()=>t=>{var n;r.toggleAllColumnsVisible((n=t.target)==null?void 0:n.checked)}}};function Uu(r,e){return e?e==="center"?r.getCenterVisibleLeafColumns():e==="left"?r.getLeftVisibleLeafColumns():r.getRightVisibleLeafColumns():r.getVisibleLeafColumns()}const one={createTable:r=>{r._getGlobalFacetedRowModel=r.options.getFacetedRowModel&&r.options.getFacetedRowModel(r,"__global__"),r.getGlobalFacetedRowModel=()=>r.options.manualFiltering||!r._getGlobalFacetedRowModel?r.getPreFilteredRowModel():r._getGlobalFacetedRowModel(),r._getGlobalFacetedUniqueValues=r.options.getFacetedUniqueValues&&r.options.getFacetedUniqueValues(r,"__global__"),r.getGlobalFacetedUniqueValues=()=>r._getGlobalFacetedUniqueValues?r._getGlobalFacetedUniqueValues():new Map,r._getGlobalFacetedMinMaxValues=r.options.getFacetedMinMaxValues&&r.options.getFacetedMinMaxValues(r,"__global__"),r.getGlobalFacetedMinMaxValues=()=>{if(r._getGlobalFacetedMinMaxValues)return r._getGlobalFacetedMinMaxValues()}}},sne={getInitialState:r=>({globalFilter:void 0,...r}),getDefaultOptions:r=>({onGlobalFilterChange:wr("globalFilter",r),globalFilterFn:"auto",getColumnCanGlobalFilter:e=>{var t;const n=(t=r.getCoreRowModel().flatRows[0])==null||(t=t._getAllCellsByColumnId()[e.id])==null?void 0:t.getValue();return typeof n=="string"||typeof n=="number"}}),createColumn:(r,e)=>{r.getCanGlobalFilter=()=>{var t,n,a,i;return((t=r.columnDef.enableGlobalFilter)!=null?t:!0)&&((n=e.options.enableGlobalFilter)!=null?n:!0)&&((a=e.options.enableFilters)!=null?a:!0)&&((i=e.options.getColumnCanGlobalFilter==null?void 0:e.options.getColumnCanGlobalFilter(r))!=null?i:!0)&&!!r.accessorFn}},createTable:r=>{r.getGlobalAutoFilterFn=()=>Jn.includesString,r.getGlobalFilterFn=()=>{var e,t;const{globalFilterFn:n}=r.options;return hp(n)?n:n==="auto"?r.getGlobalAutoFilterFn():(e=(t=r.options.filterFns)==null?void 0:t[n])!=null?e:Jn[n]},r.setGlobalFilter=e=>{r.options.onGlobalFilterChange==null||r.options.onGlobalFilterChange(e)},r.resetGlobalFilter=e=>{r.setGlobalFilter(e?void 0:r.initialState.globalFilter)}}},lne={getInitialState:r=>({expanded:{},...r}),getDefaultOptions:r=>({onExpandedChange:wr("expanded",r),paginateExpandedRows:!0}),createTable:r=>{let e=!1,t=!1;r._autoResetExpanded=()=>{var n,a;if(!e){r._queue(()=>{e=!0});return}if((n=(a=r.options.autoResetAll)!=null?a:r.options.autoResetExpanded)!=null?n:!r.options.manualExpanding){if(t)return;t=!0,r._queue(()=>{r.resetExpanded(),t=!1})}},r.setExpanded=n=>r.options.onExpandedChange==null?void 0:r.options.onExpandedChange(n),r.toggleAllRowsExpanded=n=>{n??!r.getIsAllRowsExpanded()?r.setExpanded(!0):r.setExpanded({})},r.resetExpanded=n=>{var a,i;r.setExpanded(n?{}:(a=(i=r.initialState)==null?void 0:i.expanded)!=null?a:{})},r.getCanSomeRowsExpand=()=>r.getPrePaginationRowModel().flatRows.some(n=>n.getCanExpand()),r.getToggleAllRowsExpandedHandler=()=>n=>{n.persist==null||n.persist(),r.toggleAllRowsExpanded()},r.getIsSomeRowsExpanded=()=>{const n=r.getState().expanded;return n===!0||Object.values(n).some(Boolean)},r.getIsAllRowsExpanded=()=>{const n=r.getState().expanded;return typeof n=="boolean"?n===!0:!(!Object.keys(n).length||r.getRowModel().flatRows.some(a=>!a.getIsExpanded()))},r.getExpandedDepth=()=>{let n=0;return(r.getState().expanded===!0?Object.keys(r.getRowModel().rowsById):Object.keys(r.getState().expanded)).forEach(i=>{const o=i.split(".");n=Math.max(n,o.length)}),n},r.getPreExpandedRowModel=()=>r.getSortedRowModel(),r.getExpandedRowModel=()=>(!r._getExpandedRowModel&&r.options.getExpandedRowModel&&(r._getExpandedRowModel=r.options.getExpandedRowModel(r)),r.options.manualExpanding||!r._getExpandedRowModel?r.getPreExpandedRowModel():r._getExpandedRowModel())},createRow:(r,e)=>{r.toggleExpanded=t=>{e.setExpanded(n=>{var a;const i=n===!0?!0:!!(n!=null&&n[r.id]);let o={};if(n===!0?Object.keys(e.getRowModel().rowsById).forEach(s=>{o[s]=!0}):o=n,t=(a=t)!=null?a:!i,!i&&t)return{...o,[r.id]:!0};if(i&&!t){const{[r.id]:s,...l}=o;return l}return n})},r.getIsExpanded=()=>{var t;const n=e.getState().expanded;return!!((t=e.options.getIsRowExpanded==null?void 0:e.options.getIsRowExpanded(r))!=null?t:n===!0||n?.[r.id])},r.getCanExpand=()=>{var t,n,a;return(t=e.options.getRowCanExpand==null?void 0:e.options.getRowCanExpand(r))!=null?t:((n=e.options.enableExpanding)!=null?n:!0)&&!!((a=r.subRows)!=null&&a.length)},r.getIsAllParentsExpanded=()=>{let t=!0,n=r;for(;t&&n.parentId;)n=e.getRow(n.parentId,!0),t=n.getIsExpanded();return t},r.getToggleExpandedHandler=()=>{const t=r.getCanExpand();return()=>{t&&r.toggleExpanded()}}}},O_=0,N_=10,am=()=>({pageIndex:O_,pageSize:N_}),une={getInitialState:r=>({...r,pagination:{...am(),...r?.pagination}}),getDefaultOptions:r=>({onPaginationChange:wr("pagination",r)}),createTable:r=>{let e=!1,t=!1;r._autoResetPageIndex=()=>{var n,a;if(!e){r._queue(()=>{e=!0});return}if((n=(a=r.options.autoResetAll)!=null?a:r.options.autoResetPageIndex)!=null?n:!r.options.manualPagination){if(t)return;t=!0,r._queue(()=>{r.resetPageIndex(),t=!1})}},r.setPagination=n=>{const a=i=>Wa(n,i);return r.options.onPaginationChange==null?void 0:r.options.onPaginationChange(a)},r.resetPagination=n=>{var a;r.setPagination(n?am():(a=r.initialState.pagination)!=null?a:am())},r.setPageIndex=n=>{r.setPagination(a=>{let i=Wa(n,a.pageIndex);const o=typeof r.options.pageCount>"u"||r.options.pageCount===-1?Number.MAX_SAFE_INTEGER:r.options.pageCount-1;return i=Math.max(0,Math.min(i,o)),{...a,pageIndex:i}})},r.resetPageIndex=n=>{var a,i;r.setPageIndex(n?O_:(a=(i=r.initialState)==null||(i=i.pagination)==null?void 0:i.pageIndex)!=null?a:O_)},r.resetPageSize=n=>{var a,i;r.setPageSize(n?N_:(a=(i=r.initialState)==null||(i=i.pagination)==null?void 0:i.pageSize)!=null?a:N_)},r.setPageSize=n=>{r.setPagination(a=>{const i=Math.max(1,Wa(n,a.pageSize)),o=a.pageSize*a.pageIndex,s=Math.floor(o/i);return{...a,pageIndex:s,pageSize:i}})},r.setPageCount=n=>r.setPagination(a=>{var i;let o=Wa(n,(i=r.options.pageCount)!=null?i:-1);return typeof o=="number"&&(o=Math.max(-1,o)),{...a,pageCount:o}}),r.getPageOptions=Ce(()=>[r.getPageCount()],n=>{let a=[];return n&&n>0&&(a=[...new Array(n)].fill(null).map((i,o)=>o)),a},Te(r.options,"debugTable")),r.getCanPreviousPage=()=>r.getState().pagination.pageIndex>0,r.getCanNextPage=()=>{const{pageIndex:n}=r.getState().pagination,a=r.getPageCount();return a===-1?!0:a===0?!1:n<a-1},r.previousPage=()=>r.setPageIndex(n=>n-1),r.nextPage=()=>r.setPageIndex(n=>n+1),r.firstPage=()=>r.setPageIndex(0),r.lastPage=()=>r.setPageIndex(r.getPageCount()-1),r.getPrePaginationRowModel=()=>r.getExpandedRowModel(),r.getPaginationRowModel=()=>(!r._getPaginationRowModel&&r.options.getPaginationRowModel&&(r._getPaginationRowModel=r.options.getPaginationRowModel(r)),r.options.manualPagination||!r._getPaginationRowModel?r.getPrePaginationRowModel():r._getPaginationRowModel()),r.getPageCount=()=>{var n;return(n=r.options.pageCount)!=null?n:Math.ceil(r.getRowCount()/r.getState().pagination.pageSize)},r.getRowCount=()=>{var n;return(n=r.options.rowCount)!=null?n:r.getPrePaginationRowModel().rows.length}}},im=()=>({top:[],bottom:[]}),fne={getInitialState:r=>({rowPinning:im(),...r}),getDefaultOptions:r=>({onRowPinningChange:wr("rowPinning",r)}),createRow:(r,e)=>{r.pin=(t,n,a)=>{const i=n?r.getLeafRows().map(l=>{let{id:u}=l;return u}):[],o=a?r.getParentRows().map(l=>{let{id:u}=l;return u}):[],s=new Set([...o,r.id,...i]);e.setRowPinning(l=>{var u,f;if(t==="bottom"){var v,c;return{top:((v=l?.top)!=null?v:[]).filter(p=>!(s!=null&&s.has(p))),bottom:[...((c=l?.bottom)!=null?c:[]).filter(p=>!(s!=null&&s.has(p))),...Array.from(s)]}}if(t==="top"){var h,d;return{top:[...((h=l?.top)!=null?h:[]).filter(p=>!(s!=null&&s.has(p))),...Array.from(s)],bottom:((d=l?.bottom)!=null?d:[]).filter(p=>!(s!=null&&s.has(p)))}}return{top:((u=l?.top)!=null?u:[]).filter(p=>!(s!=null&&s.has(p))),bottom:((f=l?.bottom)!=null?f:[]).filter(p=>!(s!=null&&s.has(p)))}})},r.getCanPin=()=>{var t;const{enableRowPinning:n,enablePinning:a}=e.options;return typeof n=="function"?n(r):(t=n??a)!=null?t:!0},r.getIsPinned=()=>{const t=[r.id],{top:n,bottom:a}=e.getState().rowPinning,i=t.some(s=>n?.includes(s)),o=t.some(s=>a?.includes(s));return i?"top":o?"bottom":!1},r.getPinnedIndex=()=>{var t,n;const a=r.getIsPinned();if(!a)return-1;const i=(t=a==="top"?e.getTopRows():e.getBottomRows())==null?void 0:t.map(o=>{let{id:s}=o;return s});return(n=i?.indexOf(r.id))!=null?n:-1}},createTable:r=>{r.setRowPinning=e=>r.options.onRowPinningChange==null?void 0:r.options.onRowPinningChange(e),r.resetRowPinning=e=>{var t,n;return r.setRowPinning(e?im():(t=(n=r.initialState)==null?void 0:n.rowPinning)!=null?t:im())},r.getIsSomeRowsPinned=e=>{var t;const n=r.getState().rowPinning;if(!e){var a,i;return!!((a=n.top)!=null&&a.length||(i=n.bottom)!=null&&i.length)}return!!((t=n[e])!=null&&t.length)},r._getPinnedRows=(e,t,n)=>{var a;return((a=r.options.keepPinnedRows)==null||a?(t??[]).map(o=>{const s=r.getRow(o,!0);return s.getIsAllParentsExpanded()?s:null}):(t??[]).map(o=>e.find(s=>s.id===o))).filter(Boolean).map(o=>({...o,position:n}))},r.getTopRows=Ce(()=>[r.getRowModel().rows,r.getState().rowPinning.top],(e,t)=>r._getPinnedRows(e,t,"top"),Te(r.options,"debugRows")),r.getBottomRows=Ce(()=>[r.getRowModel().rows,r.getState().rowPinning.bottom],(e,t)=>r._getPinnedRows(e,t,"bottom"),Te(r.options,"debugRows")),r.getCenterRows=Ce(()=>[r.getRowModel().rows,r.getState().rowPinning.top,r.getState().rowPinning.bottom],(e,t,n)=>{const a=new Set([...t??[],...n??[]]);return e.filter(i=>!a.has(i.id))},Te(r.options,"debugRows"))}},vne={getInitialState:r=>({rowSelection:{},...r}),getDefaultOptions:r=>({onRowSelectionChange:wr("rowSelection",r),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:r=>{r.setRowSelection=e=>r.options.onRowSelectionChange==null?void 0:r.options.onRowSelectionChange(e),r.resetRowSelection=e=>{var t;return r.setRowSelection(e?{}:(t=r.initialState.rowSelection)!=null?t:{})},r.toggleAllRowsSelected=e=>{r.setRowSelection(t=>{e=typeof e<"u"?e:!r.getIsAllRowsSelected();const n={...t},a=r.getPreGroupedRowModel().flatRows;return e?a.forEach(i=>{i.getCanSelect()&&(n[i.id]=!0)}):a.forEach(i=>{delete n[i.id]}),n})},r.toggleAllPageRowsSelected=e=>r.setRowSelection(t=>{const n=typeof e<"u"?e:!r.getIsAllPageRowsSelected(),a={...t};return r.getRowModel().rows.forEach(i=>{B_(a,i.id,n,!0,r)}),a}),r.getPreSelectedRowModel=()=>r.getCoreRowModel(),r.getSelectedRowModel=Ce(()=>[r.getState().rowSelection,r.getCoreRowModel()],(e,t)=>Object.keys(e).length?om(r,t):{rows:[],flatRows:[],rowsById:{}},Te(r.options,"debugTable")),r.getFilteredSelectedRowModel=Ce(()=>[r.getState().rowSelection,r.getFilteredRowModel()],(e,t)=>Object.keys(e).length?om(r,t):{rows:[],flatRows:[],rowsById:{}},Te(r.options,"debugTable")),r.getGroupedSelectedRowModel=Ce(()=>[r.getState().rowSelection,r.getSortedRowModel()],(e,t)=>Object.keys(e).length?om(r,t):{rows:[],flatRows:[],rowsById:{}},Te(r.options,"debugTable")),r.getIsAllRowsSelected=()=>{const e=r.getFilteredRowModel().flatRows,{rowSelection:t}=r.getState();let n=!!(e.length&&Object.keys(t).length);return n&&e.some(a=>a.getCanSelect()&&!t[a.id])&&(n=!1),n},r.getIsAllPageRowsSelected=()=>{const e=r.getPaginationRowModel().flatRows.filter(a=>a.getCanSelect()),{rowSelection:t}=r.getState();let n=!!e.length;return n&&e.some(a=>!t[a.id])&&(n=!1),n},r.getIsSomeRowsSelected=()=>{var e;const t=Object.keys((e=r.getState().rowSelection)!=null?e:{}).length;return t>0&&t<r.getFilteredRowModel().flatRows.length},r.getIsSomePageRowsSelected=()=>{const e=r.getPaginationRowModel().flatRows;return r.getIsAllPageRowsSelected()?!1:e.filter(t=>t.getCanSelect()).some(t=>t.getIsSelected()||t.getIsSomeSelected())},r.getToggleAllRowsSelectedHandler=()=>e=>{r.toggleAllRowsSelected(e.target.checked)},r.getToggleAllPageRowsSelectedHandler=()=>e=>{r.toggleAllPageRowsSelected(e.target.checked)}},createRow:(r,e)=>{r.toggleSelected=(t,n)=>{const a=r.getIsSelected();e.setRowSelection(i=>{var o;if(t=typeof t<"u"?t:!a,r.getCanSelect()&&a===t)return i;const s={...i};return B_(s,r.id,t,(o=n?.selectChildren)!=null?o:!0,e),s})},r.getIsSelected=()=>{const{rowSelection:t}=e.getState();return Lx(r,t)},r.getIsSomeSelected=()=>{const{rowSelection:t}=e.getState();return V_(r,t)==="some"},r.getIsAllSubRowsSelected=()=>{const{rowSelection:t}=e.getState();return V_(r,t)==="all"},r.getCanSelect=()=>{var t;return typeof e.options.enableRowSelection=="function"?e.options.enableRowSelection(r):(t=e.options.enableRowSelection)!=null?t:!0},r.getCanSelectSubRows=()=>{var t;return typeof e.options.enableSubRowSelection=="function"?e.options.enableSubRowSelection(r):(t=e.options.enableSubRowSelection)!=null?t:!0},r.getCanMultiSelect=()=>{var t;return typeof e.options.enableMultiRowSelection=="function"?e.options.enableMultiRowSelection(r):(t=e.options.enableMultiRowSelection)!=null?t:!0},r.getToggleSelectedHandler=()=>{const t=r.getCanSelect();return n=>{var a;t&&r.toggleSelected((a=n.target)==null?void 0:a.checked)}}}},B_=(r,e,t,n,a)=>{var i;const o=a.getRow(e,!0);t?(o.getCanMultiSelect()||Object.keys(r).forEach(s=>delete r[s]),o.getCanSelect()&&(r[e]=!0)):delete r[e],n&&(i=o.subRows)!=null&&i.length&&o.getCanSelectSubRows()&&o.subRows.forEach(s=>B_(r,s.id,t,n,a))};function om(r,e){const t=r.getState().rowSelection,n=[],a={},i=function(o,s){return o.map(l=>{var u;const f=Lx(l,t);if(f&&(n.push(l),a[l.id]=l),(u=l.subRows)!=null&&u.length&&(l={...l,subRows:i(l.subRows)}),f)return l}).filter(Boolean)};return{rows:i(e.rows),flatRows:n,rowsById:a}}function Lx(r,e){var t;return(t=e[r.id])!=null?t:!1}function V_(r,e,t){var n;if(!((n=r.subRows)!=null&&n.length))return!1;let a=!0,i=!1;return r.subRows.forEach(o=>{if(!(i&&!a)&&(o.getCanSelect()&&(Lx(o,e)?i=!0:a=!1),o.subRows&&o.subRows.length)){const s=V_(o,e);s==="all"?i=!0:(s==="some"&&(i=!0),a=!1)}}),a?"all":i?"some":!1}const z_=/([0-9]+)/gm,cne=(r,e,t)=>aB(vi(r.getValue(t)).toLowerCase(),vi(e.getValue(t)).toLowerCase()),hne=(r,e,t)=>aB(vi(r.getValue(t)),vi(e.getValue(t))),dne=(r,e,t)=>Px(vi(r.getValue(t)).toLowerCase(),vi(e.getValue(t)).toLowerCase()),pne=(r,e,t)=>Px(vi(r.getValue(t)),vi(e.getValue(t))),gne=(r,e,t)=>{const n=r.getValue(t),a=e.getValue(t);return n>a?1:n<a?-1:0},yne=(r,e,t)=>Px(r.getValue(t),e.getValue(t));function Px(r,e){return r===e?0:r>e?1:-1}function vi(r){return typeof r=="number"?isNaN(r)||r===1/0||r===-1/0?"":String(r):typeof r=="string"?r:""}function aB(r,e){const t=r.split(z_).filter(Boolean),n=e.split(z_).filter(Boolean);for(;t.length&&n.length;){const a=t.shift(),i=n.shift(),o=parseInt(a,10),s=parseInt(i,10),l=[o,s].sort();if(isNaN(l[0])){if(a>i)return 1;if(i>a)return-1;continue}if(isNaN(l[1]))return isNaN(o)?-1:1;if(o>s)return 1;if(s>o)return-1}return t.length-n.length}const du={alphanumeric:cne,alphanumericCaseSensitive:hne,text:dne,textCaseSensitive:pne,datetime:gne,basic:yne},mne={getInitialState:r=>({sorting:[],...r}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:r=>({onSortingChange:wr("sorting",r),isMultiSortEvent:e=>e.shiftKey}),createColumn:(r,e)=>{r.getAutoSortingFn=()=>{const t=e.getFilteredRowModel().flatRows.slice(10);let n=!1;for(const a of t){const i=a?.getValue(r.id);if(Object.prototype.toString.call(i)==="[object Date]")return du.datetime;if(typeof i=="string"&&(n=!0,i.split(z_).length>1))return du.alphanumeric}return n?du.text:du.basic},r.getAutoSortDir=()=>{const t=e.getFilteredRowModel().flatRows[0];return typeof t?.getValue(r.id)=="string"?"asc":"desc"},r.getSortingFn=()=>{var t,n;if(!r)throw new Error;return hp(r.columnDef.sortingFn)?r.columnDef.sortingFn:r.columnDef.sortingFn==="auto"?r.getAutoSortingFn():(t=(n=e.options.sortingFns)==null?void 0:n[r.columnDef.sortingFn])!=null?t:du[r.columnDef.sortingFn]},r.toggleSorting=(t,n)=>{const a=r.getNextSortingOrder(),i=typeof t<"u"&&t!==null;e.setSorting(o=>{const s=o?.find(h=>h.id===r.id),l=o?.findIndex(h=>h.id===r.id);let u=[],f,v=i?t:a==="desc";if(o!=null&&o.length&&r.getCanMultiSort()&&n?s?f="toggle":f="add":o!=null&&o.length&&l!==o.length-1?f="replace":s?f="toggle":f="replace",f==="toggle"&&(i||a||(f="remove")),f==="add"){var c;u=[...o,{id:r.id,desc:v}],u.splice(0,u.length-((c=e.options.maxMultiSortColCount)!=null?c:Number.MAX_SAFE_INTEGER))}else f==="toggle"?u=o.map(h=>h.id===r.id?{...h,desc:v}:h):f==="remove"?u=o.filter(h=>h.id!==r.id):u=[{id:r.id,desc:v}];return u})},r.getFirstSortDir=()=>{var t,n;return((t=(n=r.columnDef.sortDescFirst)!=null?n:e.options.sortDescFirst)!=null?t:r.getAutoSortDir()==="desc")?"desc":"asc"},r.getNextSortingOrder=t=>{var n,a;const i=r.getFirstSortDir(),o=r.getIsSorted();return o?o!==i&&((n=e.options.enableSortingRemoval)==null||n)&&(!(t&&(a=e.options.enableMultiRemove)!=null)||a)?!1:o==="desc"?"asc":"desc":i},r.getCanSort=()=>{var t,n;return((t=r.columnDef.enableSorting)!=null?t:!0)&&((n=e.options.enableSorting)!=null?n:!0)&&!!r.accessorFn},r.getCanMultiSort=()=>{var t,n;return(t=(n=r.columnDef.enableMultiSort)!=null?n:e.options.enableMultiSort)!=null?t:!!r.accessorFn},r.getIsSorted=()=>{var t;const n=(t=e.getState().sorting)==null?void 0:t.find(a=>a.id===r.id);return n?n.desc?"desc":"asc":!1},r.getSortIndex=()=>{var t,n;return(t=(n=e.getState().sorting)==null?void 0:n.findIndex(a=>a.id===r.id))!=null?t:-1},r.clearSorting=()=>{e.setSorting(t=>t!=null&&t.length?t.filter(n=>n.id!==r.id):[])},r.getToggleSortingHandler=()=>{const t=r.getCanSort();return n=>{t&&(n.persist==null||n.persist(),r.toggleSorting==null||r.toggleSorting(void 0,r.getCanMultiSort()?e.options.isMultiSortEvent==null?void 0:e.options.isMultiSortEvent(n):!1))}}},createTable:r=>{r.setSorting=e=>r.options.onSortingChange==null?void 0:r.options.onSortingChange(e),r.resetSorting=e=>{var t,n;r.setSorting(e?[]:(t=(n=r.initialState)==null?void 0:n.sorting)!=null?t:[])},r.getPreSortedRowModel=()=>r.getGroupedRowModel(),r.getSortedRowModel=()=>(!r._getSortedRowModel&&r.options.getSortedRowModel&&(r._getSortedRowModel=r.options.getSortedRowModel(r)),r.options.manualSorting||!r._getSortedRowModel?r.getPreSortedRowModel():r._getSortedRowModel())}},_ne=[zre,ine,ene,tne,Gre,Hre,one,sne,mne,Jre,lne,une,fne,vne,nne];function Sne(r){var e,t;const n=[..._ne,...(e=r._features)!=null?e:[]];let a={_features:n};const i=a._features.reduce((c,h)=>Object.assign(c,h.getDefaultOptions==null?void 0:h.getDefaultOptions(a)),{}),o=c=>a.options.mergeOptions?a.options.mergeOptions(i,c):{...i,...c};let l={...{},...(t=r.initialState)!=null?t:{}};a._features.forEach(c=>{var h;l=(h=c.getInitialState==null?void 0:c.getInitialState(l))!=null?h:l});const u=[];let f=!1;const v={_features:n,options:{...i,...r},initialState:l,_queue:c=>{u.push(c),f||(f=!0,Promise.resolve().then(()=>{for(;u.length;)u.shift()();f=!1}).catch(h=>setTimeout(()=>{throw h})))},reset:()=>{a.setState(a.initialState)},setOptions:c=>{const h=Wa(c,a.options);a.options=o(h)},getState:()=>a.options.state,setState:c=>{a.options.onStateChange==null||a.options.onStateChange(c)},_getRowId:(c,h,d)=>{var p;return(p=a.options.getRowId==null?void 0:a.options.getRowId(c,h,d))!=null?p:`${d?[d.id,h].join("."):h}`},getCoreRowModel:()=>(a._getCoreRowModel||(a._getCoreRowModel=a.options.getCoreRowModel(a)),a._getCoreRowModel()),getRowModel:()=>a.getPaginationRowModel(),getRow:(c,h)=>{let d=(h?a.getPrePaginationRowModel():a.getRowModel()).rowsById[c];if(!d&&(d=a.getCoreRowModel().rowsById[c],!d))throw new Error;return d},_getDefaultColumnDef:Ce(()=>[a.options.defaultColumn],c=>{var h;return c=(h=c)!=null?h:{},{header:d=>{const p=d.header.column.columnDef;return p.accessorKey?p.accessorKey:p.accessorFn?p.id:null},cell:d=>{var p,g;return(p=(g=d.renderValue())==null||g.toString==null?void 0:g.toString())!=null?p:null},...a._features.reduce((d,p)=>Object.assign(d,p.getDefaultColumnDef==null?void 0:p.getDefaultColumnDef()),{}),...c}},Te(r,"debugColumns")),_getColumnDefs:()=>a.options.columns,getAllColumns:Ce(()=>[a._getColumnDefs()],c=>{const h=function(d,p,g){return g===void 0&&(g=0),d.map(y=>{const m=Vre(a,y,g,p),_=y;return m.columns=_.columns?h(_.columns,m,g+1):[],m})};return h(c)},Te(r,"debugColumns")),getAllFlatColumns:Ce(()=>[a.getAllColumns()],c=>c.flatMap(h=>h.getFlatColumns()),Te(r,"debugColumns")),_getAllFlatColumnsById:Ce(()=>[a.getAllFlatColumns()],c=>c.reduce((h,d)=>(h[d.id]=d,h),{}),Te(r,"debugColumns")),getAllLeafColumns:Ce(()=>[a.getAllColumns(),a._getOrderColumnsFn()],(c,h)=>{let d=c.flatMap(p=>p.getLeafColumns());return h(d)},Te(r,"debugColumns")),getColumn:c=>a._getAllFlatColumnsById()[c]};Object.assign(a,v);for(let c=0;c<a._features.length;c++){const h=a._features[c];h==null||h.createTable==null||h.createTable(a)}return a}function xne(){return r=>Ce(()=>[r.options.data],e=>{const t={rows:[],flatRows:[],rowsById:{}},n=function(a,i,o){i===void 0&&(i=0);const s=[];for(let u=0;u<a.length;u++){const f=Fre(r,r._getRowId(a[u],u,o),a[u],u,i,void 0,o?.id);if(t.flatRows.push(f),t.rowsById[f.id]=f,s.push(f),r.options.getSubRows){var l;f.originalSubRows=r.options.getSubRows(a[u],u),(l=f.originalSubRows)!=null&&l.length&&(f.subRows=n(f.originalSubRows,i+1,f))}}return s};return t.rows=n(e),t},Te(r.options,"debugTable","getRowModel",()=>r._autoResetPageIndex()))}function wne(r){const e=[],t=n=>{var a;e.push(n),(a=n.subRows)!=null&&a.length&&n.getIsExpanded()&&n.subRows.forEach(t)};return r.rows.forEach(t),{rows:e,flatRows:r.flatRows,rowsById:r.rowsById}}function bne(r){return e=>Ce(()=>[e.getState().pagination,e.getPrePaginationRowModel(),e.options.paginateExpandedRows?void 0:e.getState().expanded],(t,n)=>{if(!n.rows.length)return n;const{pageSize:a,pageIndex:i}=t;let{rows:o,flatRows:s,rowsById:l}=n;const u=a*i,f=u+a;o=o.slice(u,f);let v;e.options.paginateExpandedRows?v={rows:o,flatRows:s,rowsById:l}:v=wne({rows:o,flatRows:s,rowsById:l}),v.flatRows=[];const c=h=>{v.flatRows.push(h),h.subRows.length&&h.subRows.forEach(c)};return v.rows.forEach(c),v},Te(e.options,"debugTable"))}function Cne(){return r=>Ce(()=>[r.getState().sorting,r.getPreSortedRowModel()],(e,t)=>{if(!t.rows.length||!(e!=null&&e.length))return t;const n=r.getState().sorting,a=[],i=n.filter(l=>{var u;return(u=r.getColumn(l.id))==null?void 0:u.getCanSort()}),o={};i.forEach(l=>{const u=r.getColumn(l.id);u&&(o[l.id]={sortUndefined:u.columnDef.sortUndefined,invertSorting:u.columnDef.invertSorting,sortingFn:u.getSortingFn()})});const s=l=>{const u=l.map(f=>({...f}));return u.sort((f,v)=>{for(let h=0;h<i.length;h+=1){var c;const d=i[h],p=o[d.id],g=p.sortUndefined,y=(c=d?.desc)!=null?c:!1;let m=0;if(g){const _=f.getValue(d.id),S=v.getValue(d.id),x=_===void 0,w=S===void 0;if(x||w){if(g==="first")return x?-1:1;if(g==="last")return x?1:-1;m=x&&w?0:x?g:-g}}if(m===0&&(m=p.sortingFn(f,v,d.id)),m!==0)return y&&(m*=-1),p.invertSorting&&(m*=-1),m}return f.index-v.index}),u.forEach(f=>{var v;a.push(f),(v=f.subRows)!=null&&v.length&&(f.subRows=s(f.subRows))}),u};return{rows:s(t.rows),flatRows:a,rowsById:t.rowsById}},Te(r.options,"debugTable","getSortedRowModel",()=>r._autoResetPageIndex()))}/**
86
+ * react-table
87
+ *
88
+ * Copyright (c) TanStack
89
+ *
90
+ * This source code is licensed under the MIT license found in the
91
+ * LICENSE.md file in the root directory of this source tree.
92
+ *
93
+ * @license MIT
94
+ */function sm(r,e){return r?Tne(r)?ze.createElement(r,e):r:null}function Tne(r){return Ane(r)||typeof r=="function"||Mne(r)}function Ane(r){return typeof r=="function"&&(()=>{const e=Object.getPrototypeOf(r);return e.prototype&&e.prototype.isReactComponent})()}function Mne(r){return typeof r=="object"&&typeof r.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(r.$$typeof.description)}function Dne(r){const e={state:{},onStateChange:()=>{},renderFallbackValue:null,...r},[t]=ze.useState(()=>({current:Sne(e)})),[n,a]=ze.useState(()=>t.current.initialState);return t.current.setOptions(i=>({...i,...r,state:{...n,...r.state},onStateChange:o=>{a(o),r.onStateChange==null||r.onStateChange(o)}})),t.current}const PI=12;function lm(r){return!!r&&typeof r=="object"&&!Array.isArray(r)}function um(r){return r.replace(/[_-]+/g," ").replace(/\b\w/g,e=>e.toUpperCase())}function Ine(r){try{return JSON.stringify(r,null,2)}catch{return String(r)}}function Wi(r){return r===null?"null":r===void 0?"—":typeof r=="string"?r:typeof r=="number"||typeof r=="boolean"?String(r):Ine(r)}const RI=({value:r,openLink:e})=>{if(!hm(r))return V.jsx("span",{className:"break-words",children:r});let t=r;try{const n=new URL(r);t=`${n.host}${n.pathname==="/"?"":n.pathname}`}catch{}return V.jsxs($u,{type:"button",variant:"ghost",size:"sm",className:"h-auto max-w-full justify-start px-1 py-0 text-left font-normal text-xs",onClick:()=>e(r),children:[V.jsx(VI,{className:"mr-1 h-3 w-3 shrink-0"}),V.jsx("span",{className:"truncate",children:t})]})};function Lne({page:r,pageCount:e,onChange:t}){return V.jsxs("div",{className:"mt-2 flex items-center justify-end gap-1.5",children:[V.jsxs($u,{type:"button",size:"sm",variant:"outline",disabled:r===0,onClick:()=>t(r-1),children:[V.jsx(CB,{className:"h-3.5 w-3.5"}),V.jsx("span",{className:"sr-only",children:"Previous page"})]}),V.jsxs("span",{className:"text-muted-foreground text-xs",children:[r+1," / ",e]}),V.jsxs($u,{type:"button",size:"sm",variant:"outline",disabled:r+1>=e,onClick:()=>t(r+1),children:[V.jsx(TB,{className:"h-3.5 w-3.5"}),V.jsx("span",{className:"sr-only",children:"Next page"})]})]})}function Pne({rows:r,columns:e,openLink:t,stateKey:n="table",viewState:a,onViewStateChange:i,renderCell:o,renderStructuredValue:s,pageSize:l}){const u=ze.useMemo(()=>e?null:[...new Set(r.flatMap(L=>Object.keys(L)))],[e,r]),f=ze.useMemo(()=>e?.map(L=>L.name)??(u??[]).slice(0,PI),[e,u]),v=u?u.slice(PI):[],c=a?.[`${n}.sort.column`],h=a?.[`${n}.sort.desc`],d=typeof c=="string"&&c?[{id:c,desc:h===!0}]:[],[p,g]=ze.useState(d),[y,m]=ze.useState(null);ze.useEffect(()=>{g(d)},[c,h]);function _(L){const I=new Set(f);return Object.keys(L).filter(P=>!I.has(P))}const S=ze.useMemo(()=>f.map(L=>({id:L,accessorFn:I=>I[L],header:um(L),enableSorting:L!=="open",sortDescFirst:!1,sortingFn:(I,P,R)=>{const E=I.getValue(R),O=P.getValue(R);return typeof E=="number"&&typeof O=="number"?E-O:Wi(E).localeCompare(Wi(O),void 0,{numeric:!0,sensitivity:"base"})},cell:({getValue:I,row:P})=>{const R=I(),E=P.index===y;if(lm(R)||Array.isArray(R))return E?V.jsx("div",{className:"max-w-md break-words",children:s?s(R,t):Wi(R)}):V.jsx("span",{className:"text-muted-foreground",children:Array.isArray(R)?"[…]":"{…}"});const O=o?.(R,L);if(O!=null)return O;if(L==="open"&&typeof R=="string")return V.jsxs($u,{type:"button",variant:"ghost",size:"sm",className:"h-7 px-2",onClick:z=>{z.stopPropagation(),t(R)},children:[V.jsx(VI,{className:"mr-1 h-3.5 w-3.5"}),"Open"]});if(typeof R=="string"&&hm(R))return V.jsx(RI,{value:R,openLink:t});if(E)return V.jsx("span",{className:"break-words whitespace-pre-wrap",children:Wi(R)});const k=Wi(R);return V.jsx("span",{className:"block max-w-80 truncate",title:k,children:k})}})),[f,t,y,o,s]),x=a?.[`${n}.page`],[w,b]=ze.useState(typeof x=="number"?Math.max(0,x):0);ze.useEffect(()=>{b(typeof x=="number"?Math.max(0,x):0)},[x]);const T=l?Math.max(1,Math.ceil(r.length/l)):1,C=typeof x=="number"?Math.max(0,x):w,A=Math.min(C,T-1),D=Dne({data:r,columns:S,state:{sorting:p,...l?{pagination:{pageIndex:A,pageSize:l}}:{}},onSortingChange:L=>{const I=typeof L=="function"?L(p):L;g(I),i?.(`${n}.sort.column`,I[0]?.id??""),i?.(`${n}.sort.desc`,I[0]?.desc??!1)},getCoreRowModel:xne(),getSortedRowModel:Cne(),...l?{getPaginationRowModel:bne(),onPaginationChange:L=>{const I=typeof L=="function"?L({pageIndex:A,pageSize:l}):L;b(I.pageIndex),i?.(`${n}.page`,I.pageIndex)}}:{}});return V.jsxs("div",{children:[V.jsx("div",{className:"overflow-hidden rounded-md border border-border/70",children:V.jsxs(OB,{className:"text-xs",children:[V.jsx(NB,{className:"bg-muted/50",children:D.getHeaderGroups().map(L=>V.jsx(gp,{className:"hover:bg-transparent",children:L.headers.map(I=>{const P=I.column.getIsSorted(),R=String(I.column.columnDef.header),E=I.column.getCanSort();return V.jsx(BB,{"aria-sort":E?P==="asc"?"ascending":P==="desc"?"descending":"none":void 0,className:"h-8 whitespace-nowrap px-2",children:E?V.jsxs("button",{type:"button","aria-label":`Sort by ${R}`,className:"flex w-full items-center gap-1.5 text-left",onClick:I.column.getToggleSortingHandler(),children:[sm(I.column.columnDef.header,I.getContext()),P==="asc"?V.jsx(xB,{className:"h-3 w-3"}):P==="desc"?V.jsx(wB,{className:"h-3 w-3"}):V.jsx(bB,{className:"h-3 w-3 opacity-45"})]}):sm(I.column.columnDef.header,I.getContext())},I.id)})},L.id))}),V.jsx(VB,{children:D.getRowModel().rows.map(L=>{const I=L.index===y,P=_(L.original),R=P.length>0||f.some(E=>{const O=L.original[E];return lm(O)||Array.isArray(O)});return V.jsxs(ze.Fragment,{children:[V.jsx(gp,{className:pd("transition-colors",R&&"cursor-pointer",I?"bg-muted/20":R&&"hover:bg-muted/30"),onClick:R?()=>m(I?null:L.index):void 0,children:L.getVisibleCells().map(E=>V.jsx(Rx,{className:"p-2 align-top",children:sm(E.column.columnDef.cell,E.getContext())},E.id))}),I&&P.length>0?V.jsx(gp,{className:"border-b last:border-b-0 bg-muted/10",children:V.jsx(Rx,{colSpan:L.getVisibleCells().length,className:"p-2",children:V.jsx("div",{className:"grid grid-cols-2 gap-x-4 gap-y-1",children:P.map(E=>{const O=L.original[E];return V.jsxs("div",{children:[V.jsxs("span",{className:"text-muted-foreground capitalize",children:[um(E),":"]})," ",lm(O)||Array.isArray(O)?s?s(O,t):V.jsx("span",{className:"break-words whitespace-pre-wrap",children:Wi(O)}):(()=>{const k=o?.(O,E);return k??(typeof O=="string"&&hm(O)?V.jsx(RI,{value:O,openLink:t}):V.jsx("span",{className:"break-words whitespace-pre-wrap",children:Wi(O)}))})()]},E)})})})}):null]},L.id)})})]})}),v.length>0?V.jsxs("p",{className:"mt-2 text-muted-foreground text-xs",children:[v.length," additional"," ",v.length===1?"column":"columns"," available in expanded rows:"," ",v.slice(0,4).map(um).join(", "),v.length>4?`, +${v.length-4} more`:""]}):null,l&&T>1?V.jsx(Lne,{page:A,pageCount:T,onChange:L=>D.setPageIndex(L)}):null]})}function Rne(r,e,t){const n=e[0];let a=t;if(n&&typeof n=="object"&&!Array.isArray(n)){const i=n,o=i.currentTarget&&typeof i.currentTarget=="object"?i.currentTarget:i.target&&typeof i.target=="object"?i.target:null;o&&o.value!==void 0&&(o.value!==""||t==null)&&(a=o.value)}else(typeof n=="string"||typeof n=="number"||typeof n=="boolean")&&(a=n);return dm(r,a)}function fm(r,e,t){const n=r;return Array.isArray(n)?!e&&!t?n:n.map(a=>({label:String(a[e??"label"]??""),value:Number(a[t??"value"]??0)})):[]}function Ene(r,e,t){const n=r;return Array.isArray(n)?!e&&!t?n:n.map(a=>({name:String(a[e??"name"]??""),value:Number(a[t??"value"]??0)})):[]}const EI={div:({children:r,...e})=>V.jsx("div",{...e,children:r}),span:({children:r,...e})=>V.jsx("span",{...e,children:r}),p:({children:r,...e})=>V.jsx("p",{...e,children:r}),h1:({children:r,...e})=>V.jsx("h1",{...e,children:r}),h2:({children:r,...e})=>V.jsx("h2",{...e,children:r}),h3:({children:r,...e})=>V.jsx("h3",{...e,children:r}),h4:({children:r,...e})=>V.jsx("h4",{...e,children:r}),ul:({children:r,...e})=>V.jsx("ul",{...e,children:r}),ol:({children:r,...e})=>V.jsx("ol",{...e,children:r}),li:({children:r,...e})=>V.jsx("li",{...e,children:r}),table:({children:r,...e})=>V.jsx("table",{...e,children:r}),thead:({children:r,...e})=>V.jsx("thead",{...e,children:r}),tbody:({children:r,...e})=>V.jsx("tbody",{...e,children:r}),tr:({children:r,...e})=>V.jsx("tr",{...e,children:r}),th:({children:r,...e})=>V.jsx("th",{...e,children:r}),td:({children:r,...e})=>V.jsx("td",{...e,children:r}),card:({children:r,className:e,...t})=>V.jsx(kB,{className:e,...t,children:r}),"card-header":({children:r,className:e,...t})=>V.jsx(EB,{className:e,...t,children:r}),"card-title":({children:r,className:e,...t})=>V.jsx(RB,{asChild:!0,className:e,children:V.jsx("h3",{...t,children:r})}),"card-description":({children:r,className:e,...t})=>V.jsx(PB,{className:e,...t,children:r}),"card-content":({children:r,className:e,...t})=>V.jsx(LB,{className:e,...t,children:r}),badge:({children:r,className:e,variant:t="default",...n})=>{const a={default:"bg-primary text-primary-foreground",secondary:"bg-secondary text-secondary-foreground",destructive:"bg-destructive text-destructive-foreground",outline:"border border-input bg-background"},i=s=>typeof s=="string"?s.replace(/[_-]/g," ").replace(/\b\w/g,l=>l.toUpperCase()):typeof s=="number"||typeof s=="boolean"||s==null||DB.isValidElement(s)?s:Array.isArray(s)?s.map(i):String(s),o=i(r);return V.jsx("span",{className:`inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-semibold ${a[t]||a.default} ${e||""}`,...n,children:o})},button:({children:r,className:e,variant:t="default",type:n="button",label:a,...i})=>{const o={default:"bg-primary text-primary-foreground hover:bg-primary/90",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",ghost:"hover:bg-accent hover:text-accent-foreground"};return V.jsx("button",{type:n,className:`inline-flex items-center justify-center rounded-md text-sm font-medium h-10 px-4 py-2 ${o[t]||o.default} ${e||""}`,...i,children:r??String(a??"")})},select:({className:r,label:e,placeholder:t,options:n,onChange:a,onSelect:i,...o})=>V.jsxs("label",{className:`flex flex-col gap-1 text-sm ${r||""}`,children:[e?V.jsx("span",{className:"font-medium",children:String(e)}):null,V.jsxs("select",{className:"h-10 rounded-md border border-input bg-background px-3",onChange:a??i,defaultValue:"",...o,children:[t?V.jsx("option",{value:"",disabled:!0,children:String(t)}):null,Array.isArray(n)?n.map(s=>{const l=s,u=String(l.value??l.label??"");return V.jsx("option",{value:u,children:String(l.label??u)},JSON.stringify(l))}):null]})]}),alert:({children:r,className:e,variant:t="default",...n})=>{const a={default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive"};return V.jsx("div",{role:"alert",className:`relative w-full rounded-lg border p-4 ${a[t]||a.default} ${e||""}`,...n,children:r})},"alert-title":({children:r,className:e,...t})=>V.jsx("h5",{className:`mb-1 font-medium leading-none tracking-tight ${e||""}`,...t,children:r}),"alert-description":({children:r,className:e,...t})=>V.jsx("div",{className:`text-sm [&_p]:leading-relaxed ${e||""}`,...t,children:r}),progress:({className:r,value:e=0,label:t,...n})=>{const a=Math.round(e);return V.jsxs("div",{className:`flex items-center gap-2 ${r||""}`,...n,children:[V.jsx("div",{className:"relative h-4 flex-1 overflow-hidden rounded-full bg-secondary",children:V.jsx("div",{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-a}%)`}})}),V.jsx("span",{className:"text-xs font-medium tabular-nums text-muted-foreground shrink-0",children:t?String(t):`${a}%`})]})},strong:({children:r,...e})=>V.jsx("strong",{...e,children:r}),b:({children:r,...e})=>V.jsx("strong",{...e,children:r}),em:({children:r,...e})=>V.jsx("em",{...e,children:r}),link:({children:r,className:e,href:t,...n})=>{const a=String(t??""),i=/^https?:\/\//i.test(a);return V.jsx("a",{href:a,className:`text-primary underline underline-offset-2 hover:no-underline ${e||""}`,...i?{target:"_blank",rel:"noreferrer"}:{},...n,children:r})},a:({children:r,className:e,href:t,...n})=>V.jsx("a",{href:String(t??""),className:`text-primary underline underline-offset-2 hover:no-underline ${e||""}`,...n,children:r}),context:({children:r,className:e,...t})=>V.jsx("div",{className:`flex flex-wrap items-center gap-x-1.5 gap-y-1 text-xs text-muted-foreground ${e||""}`,...t,children:r}),fields:({children:r,className:e,...t})=>V.jsx("div",{className:`grid grid-cols-1 gap-x-6 gap-y-2 sm:grid-cols-2 ${e||""}`,...t,children:r}),field:({children:r,className:e,label:t,value:n,...a})=>V.jsxs("div",{className:`flex flex-col gap-0.5 ${e||""}`,...a,children:[V.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:String(t??"")}),V.jsx("span",{className:"text-sm break-words",children:r??(n==null?"—":String(n))})]}),separator:({className:r,...e})=>V.jsx("div",{className:`shrink-0 bg-border h-[1px] w-full ${r||""}`,...e}),markdown:({content:r,className:e})=>V.jsx("div",{className:`max-w-none text-sm space-y-2 ${e||""}`,children:V.jsx(MB,{text:String(r??"")})}),layout:({children:r,className:e,direction:t="vertical"})=>V.jsx("div",{className:`flex ${t==="horizontal"?"flex-row":"flex-col"} gap-4 ${e||""}`,children:r}),columns:({children:r,className:e})=>{const t=Array.isArray(r)?r.filter(n=>n!=null).length:r?1:0;return V.jsx("div",{className:`grid gap-4 ${e||""}`,style:{gridTemplateColumns:`repeat(${t}, minmax(0, 1fr))`},children:r})},metric:({label:r,value:e,className:t})=>V.jsxs("div",{className:pd(AB,"p-4",t),children:[V.jsx("p",{className:"text-sm text-muted-foreground",children:String(r??"")}),V.jsx("p",{className:"mt-1 text-2xl font-bold",children:String(e??"")})]}),"bar-chart":({data:r,height:e,xLabel:t,yLabel:n,labelField:a,valueField:i})=>V.jsx(Lre,{data:fm(r,a,i),height:e,xLabel:t,yLabel:n}),"line-chart":({data:r,height:e,xLabel:t,yLabel:n,labelField:a,valueField:i})=>V.jsx(Pre,{data:fm(r,a,i),height:e,xLabel:t,yLabel:n}),"area-chart":({data:r,height:e,xLabel:t,yLabel:n,labelField:a,valueField:i})=>V.jsx(Ire,{data:fm(r,a,i),height:e,xLabel:t,yLabel:n}),"pie-chart":({data:r,height:e,showLabel:t,showLegend:n,radius:a,highlightName:i,nameField:o,valueField:s})=>V.jsx(Rre,{data:Ene(r,o,s),height:e,showLabel:t,showLegend:n,radius:a,highlightName:i}),sparkline:({data:r,height:e,width:t,color:n,trend:a})=>V.jsx(Ere,{data:r,height:e,width:t,color:n,trend:a}),"stacked-area-chart":({data:r,series:e,height:t,xLabel:n,yLabel:a,onSeriesClick:i,onDateRangeSelect:o})=>V.jsx(kre,{data:r,series:e,height:t,xLabel:n,yLabel:a,onSeriesClick:i,onDateRangeSelect:o})},kne=new Set(["urgency","severity","sentiment","trend","status","priority"]),One={critical:"bg-red-500/15 text-red-400 border-red-500/30",high:"bg-orange-500/15 text-orange-400 border-orange-500/30",medium:"bg-yellow-500/15 text-yellow-400 border-yellow-500/30",low:"bg-green-500/15 text-green-400 border-green-500/30"};function Nne(r,e){if(r==null)return V.jsx("span",{className:"text-muted-foreground",children:"–"});const t=String(r);if(t.startsWith("http://")||t.startsWith("https://"))return V.jsx("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:e==="url"?"↗ Link":t});if(e==="subreddit"&&typeof r=="string")return V.jsxs("a",{href:`https://reddit.com/r/${r}`,target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:["r/",r]});if(kne.has(e)&&typeof r=="string"){const n=One[r.toLowerCase()]??"bg-secondary text-secondary-foreground border-border",a=r.replace(/[_-]/g," ").replace(/\b\w/g,i=>i.toUpperCase());return V.jsx("span",{className:`inline-flex items-center rounded-full border px-2 py-0.5 text-xs font-medium ${n}`,children:a})}return typeof r=="number"?V.jsx("span",{className:"font-mono tabular-nums",children:r}):typeof r=="boolean"?V.jsx("span",{className:`inline-flex items-center rounded-full border px-2 py-0.5 text-xs font-medium ${r?"bg-green-500/15 text-green-400 border-green-500/30":"bg-secondary text-secondary-foreground border-border"}`,children:r?"Yes":"No"}):V.jsx("span",{className:"whitespace-pre-wrap",children:t})}function Bne({rows:r,columns:e,title:t}){return V.jsxs("div",{className:"space-y-2",children:[t&&V.jsx("h4",{className:"text-sm font-semibold",children:t}),V.jsx(Pne,{rows:r,columns:e.map(n=>({name:n})),openLink:()=>{},renderCell:(n,a)=>Nne(n,a)})]})}const wc=tV;function Du(r,e,t){if(r.type==="text")return r.content;if(r.type==="data"){const u=r,f=wc(e.data,u.path),v=f!==void 0?f:u.fallback,c=IB(v,u.format);if(c.length>100&&(c.includes(`
95
+ `)||/[#*-]/.test(c))){const h=EI.markdown;return h?V.jsx(h,{content:c}):c}return c}if(r.type==="if"){const u=r;return wc(e.data,u.condition)?Du(u.then,e,t):u.else?Du(u.else,e,t):null}if(r.type==="each"){const u=r,f=wc(e.data,u.items);return Array.isArray(f)?f.map((v,c)=>{const h=u.as,d={...e,data:{...e.data,[h]:v,[`${h}Index`]:c}};if(typeof u.render=="string"){const p=`{{${h}}}`,g=typeof v=="string"?v:JSON.stringify(v);return u.render.split(p).join(g)}return Du(u.render,d,c)}):null}const n=r,a=e.components?.[n.type]??EI[n.type];if(!a)return console.warn(`Unknown component type: ${n.type}`),null;const i=u=>rV(u,e.actions,f=>wc(e.data,f)),o=aV(r,n.props),s={};for(const[u,f]of Object.entries(o)){if(/^on[A-Z]/.test(u))continue;const v=i(f);s[u]=v}for(const[u,f]of Object.entries(o)){if(!/^on[A-Z]/.test(u))continue;if(e.actionsDisabled){s.disabled=!0;continue}let v=i(f);if(typeof v!="function"&&e.onAction){const c=dm(f,s.value);c&&e.interactions?.[c.action]&&(v=(...h)=>e.onAction?.(Rne(f,h,s.value)??c))}if(typeof v!="function"){dm(f,s.value)&&(s.disabled=!0),f!==void 0&&console.warn(`Ignoring non-function handler for "${u}" (got ${typeof v}). Bind actions as "@actionName".`);continue}s[u]=v}if(n.type==="table"&&Array.isArray(s.data)&&Array.isArray(s.columns)){const u=s.data,f=s.columns,v=s.title;return V.jsx(Bne,{rows:u,columns:f,title:v},t)}const l=n.children?.map((u,f)=>Du(u,e,f));return V.jsx(a,{...s,children:l},t)}function Vne(r,e,t,n,a,i,o){const s={data:e,actions:t,onAction:n,interactions:a,components:i,actionsDisabled:o};return Du(r.root,s)}function Yne({template:r,data:e,actions:t,onAction:n,interactions:a,components:i,actionsDisabled:o}){return V.jsx(V.Fragment,{children:Vne(r,e,t,n,a,i,o)})}export{HB as F,Yne as J,bl as L,KB as R,Ere as S,Pre as a,Dne as b,YB as c,FB as d,$B as e,sm as f,xne as g,GB as h,zB as i,UB as j,Wne as k,$ne as l,QB as m,JB as n,GI as o,Une as p,WB as q,qB as r,pm as s,Mx as u};
96
+ //# sourceMappingURL=renderer-CHPS-1vD.js.map