mixdashboards 1.0.32 → 1.0.39

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 (413) hide show
  1. package/dist/CoordinateSystem-BMkAxlii.js +6 -0
  2. package/dist/CoordinateSystem-DWnjjFwb.cjs +1 -0
  3. package/dist/EChartComponentBase-BQOhWkz2.js +114 -0
  4. package/dist/EChartComponentBase-BaQpBzVC.cjs +1 -0
  5. package/dist/LegendVisualProvider-BDw4_0K3.cjs +1 -0
  6. package/dist/LegendVisualProvider-BP9kA8co.js +44 -0
  7. package/dist/MarkerView-BG_nYESR.cjs +1 -0
  8. package/dist/MarkerView-CtWJi5UZ.js +192 -0
  9. package/dist/RoamController--cgD3aNm.cjs +1 -0
  10. package/dist/RoamController-DmBIwcAZ.js +124 -0
  11. package/dist/UniverSheet-KlvmL1Yw.cjs +1 -0
  12. package/dist/UniverSheet-MSHzUXq0.js +180 -0
  13. package/dist/VisualMapping-D-MA7S0X.js +260 -0
  14. package/dist/VisualMapping-MilpZvD_.cjs +1 -0
  15. package/dist/accelerationChart-B1HPMmd2.js +577 -0
  16. package/dist/accelerationChart-DZj2V2vD.cjs +6 -0
  17. package/dist/actionItem-BYCPoQK7.cjs +1 -0
  18. package/dist/actionItem-Bb2xiYlY.js +686 -0
  19. package/dist/alarmLevelChart-Bb0mAbwQ.cjs +2 -0
  20. package/dist/alarmLevelChart-CCioESvL.js +182 -0
  21. package/dist/alertTable-CQwr8YYt.js +301 -0
  22. package/dist/alertTable-oaX5eJC0.cjs +1 -0
  23. package/dist/annualRainfallChart-C21jEMBe.js +185 -0
  24. package/dist/annualRainfallChart-pO8q6aUJ.cjs +1 -0
  25. package/dist/api-C0GhBpqd.js +125 -0
  26. package/dist/api-P_s372dW.cjs +1 -0
  27. package/dist/aqi-DlY2r7OA.cjs +3 -0
  28. package/dist/aqi-iLwQH4rc.js +145 -0
  29. package/dist/aqiIndass-BaIVBfdC.cjs +3 -0
  30. package/dist/aqiIndass-DBeVSBdy.js +301 -0
  31. package/dist/arrayCard-DNNUEPvW.js +93 -0
  32. package/dist/arrayCard-OlVAAsZq.cjs +1 -0
  33. package/dist/audio-CAP4D-J2.js +301 -0
  34. package/dist/audio-CThzVIDU.cjs +1 -0
  35. package/dist/axisAlignTicks-BqVUa467.js +481 -0
  36. package/dist/axisAlignTicks-CDNWKJRo.cjs +1 -0
  37. package/dist/bar-BjR566__.cjs +2 -0
  38. package/dist/bar-D8C06GO4.js +232 -0
  39. package/dist/bmp-Cjizh2x6.js +226 -0
  40. package/dist/bmp-DsmTzyce.cjs +1 -0
  41. package/dist/box-DqewT3MF.js +352 -0
  42. package/dist/box-qgu_67OD.cjs +1 -0
  43. package/dist/chartConfigPanel-BiQArCoQ.cjs +1 -0
  44. package/dist/chartConfigPanel-DwAUq3pf.js +408 -0
  45. package/dist/circleBar-CO89T7kj.cjs +4 -0
  46. package/dist/circleBar-DGHDWQih.js +196 -0
  47. package/dist/clock-32hGccm4.cjs +1 -0
  48. package/dist/clock-CT8YXEU3.js +274 -0
  49. package/dist/clt-5bP_g1O-.cjs +1 -0
  50. package/dist/clt-FfIEfGtn.js +293 -0
  51. package/dist/cmc-B2nQFZIS.js +269 -0
  52. package/dist/cmc-dbuLkE8o.cjs +1 -0
  53. package/dist/cmp-QQlYcnqo.js +378 -0
  54. package/dist/cmp-l3U9fIrz.cjs +6 -0
  55. package/dist/composite-CbsUYl-u.js +136 -0
  56. package/dist/composite-Cf24lSyN.cjs +1 -0
  57. package/dist/composite-DjhrBgG1.js +323 -0
  58. package/dist/composite-DlY2_x6P.cjs +3 -0
  59. package/dist/config-BLSroAzs.cjs +1 -0
  60. package/dist/config-Cc2W4vke.js +9 -0
  61. package/dist/controlList-BdF8xNAi.js +879 -0
  62. package/dist/controlList-De6PXdOc.cjs +1 -0
  63. package/dist/controlRecordList-CKpAr1ON.js +421 -0
  64. package/dist/controlRecordList-u5a7chIX.cjs +1 -0
  65. package/dist/crd-BVAf41oX.js +113 -0
  66. package/dist/crd-BoaXQhFQ.cjs +1 -0
  67. package/dist/createSeriesData-Cz83cqoZ.cjs +1 -0
  68. package/dist/createSeriesData-E53TTCAt.js +116 -0
  69. package/dist/createSeriesDataSimply-Bsly4zZA.js +14 -0
  70. package/dist/createSeriesDataSimply-CjfZL_jf.cjs +1 -0
  71. package/dist/ctrBtn-C9kQiqY1.cjs +1 -0
  72. package/dist/ctrBtn-ZPRYWE66.js +215 -0
  73. package/dist/ctrSet-C87dxLfQ.js +247 -0
  74. package/dist/ctrSet-CNCrnLSs.cjs +1 -0
  75. package/dist/ctrSwitch-CVEtbdfb.cjs +1 -0
  76. package/dist/ctrSwitch-CkC_Axtp.js +207 -0
  77. package/dist/cursorHelper-DE0KU4_J.js +29 -0
  78. package/dist/cursorHelper-DsTR8jVF.cjs +1 -0
  79. package/dist/customGraphicKeyframeAnimation-BJ_z0kB3.js +330 -0
  80. package/dist/customGraphicKeyframeAnimation-CEIvOjMs.cjs +1 -0
  81. package/dist/dataManagement-CjlNfeYq.js +672 -0
  82. package/dist/dataManagement-n711sd1g.cjs +1 -0
  83. package/dist/dataReport-BsVjW3p7.cjs +4 -0
  84. package/dist/dataReport-ByjswEqq.js +787 -0
  85. package/dist/dataSample-BXwc06Sb.js +114 -0
  86. package/dist/dataSample-D4ycwmll.cjs +1 -0
  87. package/dist/dataTable-DX500R1i.js +217 -0
  88. package/dist/dataTable-K7j4fhnq.cjs +1 -0
  89. package/dist/datetime-DVbJtALf.js +113 -0
  90. package/dist/datetime-DYXWKrXI.cjs +1 -0
  91. package/dist/deepClusterSlipSurface-B7nkEM9A.cjs +1 -0
  92. package/dist/deepClusterSlipSurface-CQUE05cK.js +372 -0
  93. package/dist/deepDataMatrix-DHZA0IAm.cjs +1 -0
  94. package/dist/deepDataMatrix-ai5rB6ET.js +238 -0
  95. package/dist/deepDisplacement3D-BFqKqSYg.cjs +4289 -0
  96. package/dist/deepDisplacement3D-BsUzvbQb.js +26052 -0
  97. package/dist/deepDisplacementChart-2JZNrhrw.cjs +5 -0
  98. package/dist/deepDisplacementChart-BCIuCMdK.js +585 -0
  99. package/dist/deepDisplacementChart-Ba67v6um.cjs +6 -0
  100. package/dist/deepDisplacementChart-igl4rW1K.js +340 -0
  101. package/dist/deepDisplacementView-BedWJsx7.js +231 -0
  102. package/dist/deepDisplacementView-wQxyKzB-.cjs +8 -0
  103. package/dist/deepNodeTemperatureChart-DLeb9jKp.js +347 -0
  104. package/dist/deepNodeTemperatureChart-albL8hKa.cjs +1 -0
  105. package/dist/deepTangentAngleChart-C6xOiITk.js +420 -0
  106. package/dist/deepTangentAngleChart-DukevXaM.cjs +1 -0
  107. package/dist/deepTemperatureField-B-y94GPV.js +398 -0
  108. package/dist/deepTemperatureField-De4xKoHw.cjs +1 -0
  109. package/dist/deepTrendChart-DCkV2HNv.js +345 -0
  110. package/dist/deepTrendChart-MmuYSXtu.cjs +1 -0
  111. package/dist/deviceOnlineStatus-B5cCjhNA.cjs +2 -0
  112. package/dist/deviceOnlineStatus-CFuCTx7_.js +178 -0
  113. package/dist/deviceStatus-B2ibBDSi.js +194 -0
  114. package/dist/deviceStatus-DsEtKiGo.cjs +1 -0
  115. package/dist/displacementDataTable-BDqG1IvI.js +256 -0
  116. package/dist/displacementDataTable-oLnUdafv.cjs +1 -0
  117. package/dist/displacementTrajectoryChart-CBhPwZhe.cjs +22 -0
  118. package/dist/displacementTrajectoryChart-Crf55oKi.js +597 -0
  119. package/dist/displacementTrendChart-10n_lC9j.js +364 -0
  120. package/dist/displacementTrendChart-CWihCuIJ.cjs +5 -0
  121. package/dist/dxf-D8zHpz5g.js +2768 -0
  122. package/dist/dxf-DDh_DcQy.cjs +1 -0
  123. package/dist/dzc-DLCdTCwW.js +144 -0
  124. package/dist/dzc-uNTDJqpi.cjs +2 -0
  125. package/dist/echarts-BB8O2KSA.cjs +21 -0
  126. package/dist/echarts-BVht3HHb.js +13787 -0
  127. package/dist/ele-aqi-icon-BMm9WgFH.cjs +1 -0
  128. package/dist/ele-aqi-icon-DsYfU5th.js +5 -0
  129. package/dist/ele-bar-icon-C-GiCs2a.js +5 -0
  130. package/dist/ele-bar-icon-V94clxg_.cjs +1 -0
  131. package/dist/ele-bmp-icon-BBI0-SX7.cjs +1 -0
  132. package/dist/ele-bmp-icon-Pdolk1J5.js +5 -0
  133. package/dist/ele-circleBar-icon-DNBUxt0A.js +5 -0
  134. package/dist/ele-circleBar-icon-Da0-L9sa.cjs +1 -0
  135. package/dist/ele-clt-icon-BEVOS7Tq.cjs +1 -0
  136. package/dist/ele-clt-icon-DuU4Q401.js +5 -0
  137. package/dist/ele-cmp-icon-CEP91RUe.js +5 -0
  138. package/dist/ele-cmp-icon-yUlU6c_Q.cjs +1 -0
  139. package/dist/ele-crd-icon-BXxB7P3T.js +5 -0
  140. package/dist/ele-crd-icon-BvNgAPKW.cjs +1 -0
  141. package/dist/ele-ctrSet-icon-BtKGrCid.js +5 -0
  142. package/dist/ele-ctrSet-icon-DCsPO0tL.cjs +1 -0
  143. package/dist/ele-dateTime-icon-BEGFlwID.js +5 -0
  144. package/dist/ele-dateTime-icon-BgZ2_KWW.cjs +1 -0
  145. package/dist/ele-dzc-icon-D6eVpaHp.js +5 -0
  146. package/dist/ele-dzc-icon-h5wOUHF0.cjs +1 -0
  147. package/dist/ele-evn-icon-DUQMS-9T.cjs +1 -0
  148. package/dist/ele-evn-icon-MWzAujnD.js +5 -0
  149. package/dist/ele-gag-icon-CB5dJeYF.js +5 -0
  150. package/dist/ele-gag-icon-Ce1hl9NI.cjs +1 -0
  151. package/dist/ele-glbModel-icon-ByACDCrv.cjs +1 -0
  152. package/dist/ele-glbModel-icon-l_SMi3ik.js +5 -0
  153. package/dist/ele-grd-icon-DR52zwGR.js +5 -0
  154. package/dist/ele-grd-icon-ZUb-megQ.cjs +1 -0
  155. package/dist/ele-gridview-icon-D3GcssP6.cjs +1 -0
  156. package/dist/ele-gridview-icon-cSd1oIDi.js +5 -0
  157. package/dist/ele-lin-icon-Dax-ZiWV.js +5 -0
  158. package/dist/ele-lin-icon-Dke_1AmT.cjs +1 -0
  159. package/dist/ele-lst-icon-CKpeRKmk.js +5 -0
  160. package/dist/ele-lst-icon-CrxnHZ-A.cjs +1 -0
  161. package/dist/ele-mxa-icon-CJWttkCK.js +5 -0
  162. package/dist/ele-mxa-icon-fgN0MLnh.cjs +1 -0
  163. package/dist/ele-rtn-icon-BrsJIU8J.cjs +1 -0
  164. package/dist/ele-rtn-icon-CqCKSHIw.js +5 -0
  165. package/dist/ele-textbox-icon-ClGaLi5p.js +5 -0
  166. package/dist/ele-textbox-icon-g_5kV8t6.cjs +1 -0
  167. package/dist/ele-vdo-icon-Bgp9gaT6.cjs +1 -0
  168. package/dist/ele-vdo-icon-DcWebTR5.js +5 -0
  169. package/dist/ele-vlu-icon-Bg6EHZdJ.js +5 -0
  170. package/dist/ele-vlu-icon-Dv-R7Xuc.cjs +1 -0
  171. package/dist/element-resize-detector-Bo5uDQAu.cjs +6 -0
  172. package/dist/element-resize-detector-DJcsrJ8s.js +1547 -0
  173. package/dist/evn-DuL5oVRl.cjs +1 -0
  174. package/dist/evn-YwCALVXj.js +116 -0
  175. package/dist/evolutionChart-4noZSdLX.js +406 -0
  176. package/dist/evolutionChart-AeL67MAt.cjs +1 -0
  177. package/dist/fileViewer-DiH3PM0r.js +415 -0
  178. package/dist/fileViewer-bsrjlJkC.cjs +1 -0
  179. package/dist/filterBar-CWEguwYc.js +394 -0
  180. package/dist/filterBar-Ct1BFhrS.cjs +1 -0
  181. package/dist/fireCombustionCurve-DYPC4zKJ.js +405 -0
  182. package/dist/fireCombustionCurve-DyiQn-WA.cjs +1 -0
  183. package/dist/fireFilterBar-Bdm2ljuO.cjs +1 -0
  184. package/dist/fireFilterBar-DGHPNTwF.js +221 -0
  185. package/dist/gag-HiNaL81R.cjs +1 -0
  186. package/dist/gag-kvkKzJuO.js +125 -0
  187. package/dist/glbModel-CUz6CyVF.js +2724 -0
  188. package/dist/glbModel-DtBI72ap.cjs +5 -0
  189. package/dist/gnssFilterBar-BQgY5x1W.cjs +1 -0
  190. package/dist/gnssFilterBar-TBtirXIB.js +310 -0
  191. package/dist/gnssHistoryTable-D1ZLJOgh.cjs +3 -0
  192. package/dist/gnssHistoryTable-U8O7nyO7.js +398 -0
  193. package/dist/gnssMapView-42zmAd9q.cjs +7 -0
  194. package/dist/gnssMapView-CaBfWeT1.js +699 -0
  195. package/dist/gnssTimeSeriesChart-BrXYvuh6.js +421 -0
  196. package/dist/gnssTimeSeriesChart-CV2w_Aik.cjs +1 -0
  197. package/dist/gnssXYTrajectory-BmzSYjQ_.cjs +5 -0
  198. package/dist/gnssXYTrajectory-D2DoYnze.js +304 -0
  199. package/dist/grd-B0GUjLm9.js +339 -0
  200. package/dist/grd-DW8cSFVR.cjs +1 -0
  201. package/dist/grdIndass-BeBXVsos.cjs +1 -0
  202. package/dist/grdIndass-DduUKZJm.js +216 -0
  203. package/dist/grg-CeX0pirQ.js +194 -0
  204. package/dist/grg-fnpcXtju.cjs +1 -0
  205. package/dist/gridview-BPwWXza9.js +183 -0
  206. package/dist/gridview-DpABhCIw.cjs +1 -0
  207. package/dist/groupCard-De1E15mW.js +132 -0
  208. package/dist/groupCard-WNE6gAAl.cjs +1 -0
  209. package/dist/headerBar-CZ3qcLHo.js +210 -0
  210. package/dist/headerBar-Qi1EXrr6.cjs +1 -0
  211. package/dist/{history-DigzRtjC.js → history-BkZhlpdY.js} +5 -3
  212. package/dist/history-DAmBl4_5.cjs +1 -0
  213. package/dist/index-ButoLLAe.js +8655 -0
  214. package/dist/index-Mh5Dw2sd.cjs +585 -0
  215. package/dist/index-kShjySl9.js +5313 -0
  216. package/dist/index-mAPVa0s4.cjs +11 -0
  217. package/dist/insarDeformChart-BGr2xe7w.cjs +1 -0
  218. package/dist/insarDeformChart-CnuSL1d9.js +216 -0
  219. package/dist/insarImageViewer-DRgGdQmN.cjs +1 -0
  220. package/dist/insarImageViewer-EmVThmVQ.js +268 -0
  221. package/dist/install-8XfFtnlL.js +853 -0
  222. package/dist/install-9_V0b6vf.js +497 -0
  223. package/dist/install-B0x4IqQr.js +1258 -0
  224. package/dist/install-B1IEhhn3.cjs +1 -0
  225. package/dist/install-B2TChEcT.js +895 -0
  226. package/dist/install-B65ZIqAx.cjs +1 -0
  227. package/dist/install-BBrAry2m.js +8 -0
  228. package/dist/install-BRjgycz_.cjs +1 -0
  229. package/dist/install-BUu5ESB7.js +447 -0
  230. package/dist/install-BamnGDPb.cjs +1 -0
  231. package/dist/install-BifpoHNI.js +1817 -0
  232. package/dist/install-BvOpNm0Y.cjs +1 -0
  233. package/dist/install-ByPD0oOh.cjs +1 -0
  234. package/dist/install-BzdOSCzO.js +785 -0
  235. package/dist/install-C8buXQPI.cjs +1 -0
  236. package/dist/install-C9Cdzkc6.js +265 -0
  237. package/dist/install-CBde4hAM.js +112 -0
  238. package/dist/install-CIT6k8Ga.cjs +1 -0
  239. package/dist/install-CYwVETsi.cjs +1 -0
  240. package/dist/install-C_3uGWLu.js +2328 -0
  241. package/dist/install-Ch5d8i37.cjs +1 -0
  242. package/dist/install-CltTFs4e.cjs +3 -0
  243. package/dist/install-Csxa7Kv7.cjs +18 -0
  244. package/dist/install-Cx1i_m0k.js +1168 -0
  245. package/dist/install-D1QM80AD.js +227 -0
  246. package/dist/install-D7znHb-b.js +604 -0
  247. package/dist/install-DHY9y86B.cjs +3 -0
  248. package/dist/install-DIlB2q7w.cjs +1 -0
  249. package/dist/install-DV5cEgNV.cjs +1 -0
  250. package/dist/install-DWm3j_D3.js +38 -0
  251. package/dist/install-FDYiy_gL.js +250 -0
  252. package/dist/install-LtoYukZU.cjs +1 -0
  253. package/dist/install-MS3ZY7fF.js +685 -0
  254. package/dist/install-hfre7yvV.js +727 -0
  255. package/dist/install-kGXY_57n.cjs +1 -0
  256. package/dist/install-nDY6w-GK.cjs +1 -0
  257. package/dist/install-oGjJ0_bF.js +588 -0
  258. package/dist/install-z6wShIZI.cjs +1 -0
  259. package/dist/installCanvasRenderer-CLT2hquJ.js +4260 -0
  260. package/dist/installCanvasRenderer-CyhM1Qpl.cjs +3 -0
  261. package/dist/installMarkArea-Cdg4iciO.js +206 -0
  262. package/dist/installMarkArea-CjyaJPLE.cjs +1 -0
  263. package/dist/installMarkLine-BgE0YACE.js +533 -0
  264. package/dist/installMarkLine-Bv53Iw9G.cjs +1 -0
  265. package/dist/installSimple-BWTCwMdY.js +586 -0
  266. package/dist/installSimple-c87Ufc4_.cjs +1 -0
  267. package/dist/kds-CpIQFgeY.js +1203 -0
  268. package/dist/kds-DTYWOq4K.cjs +3 -0
  269. package/dist/labelHelper-Cd8oB-sZ.js +26 -0
  270. package/dist/labelHelper-npJGYQ1j.cjs +1 -0
  271. package/dist/layerTabs-BATcBkTA.cjs +1 -0
  272. package/dist/layerTabs-uze6K91A.js +139 -0
  273. package/dist/lin-Ba6fHkYf.cjs +2 -0
  274. package/dist/lin-DU_EuPRg.js +239 -0
  275. package/dist/linIndass-XHKElG7L.js +273 -0
  276. package/dist/linIndass-urYe5inp.cjs +2 -0
  277. package/dist/lst-C7aee1cU.js +147 -0
  278. package/dist/lst-CpmoEQDY.cjs +1 -0
  279. package/dist/manualEntry-CJPiO5nh.cjs +1 -0
  280. package/dist/manualEntry-D9m_WPw3.js +662 -0
  281. package/dist/mapBackground-6g_71Fwa.js +6658 -0
  282. package/dist/mapBackground-CF_TqNBy.cjs +17 -0
  283. package/dist/mappingList-CR55Tq4t.cjs +1 -0
  284. package/dist/mappingList-luT5YE0d.js +917 -0
  285. package/dist/markdownViewer-CnguoUr8.js +261 -0
  286. package/dist/markdownViewer-D1hDk2Y7.cjs +3 -0
  287. package/dist/mix-control-modal-BDHAB4Tw.cjs +1 -0
  288. package/dist/mix-control-modal-CHiX3hQs.js +147 -0
  289. package/dist/mixDataPermission-BTA1jNd1.cjs +1 -0
  290. package/dist/mixDataPermission-BaqV0Z6N.js +760 -0
  291. package/dist/mixGrid-3BqQCvg8.cjs +1 -0
  292. package/dist/mixGrid-C0eEvwPy.js +180 -0
  293. package/dist/mixMap-7upgYwWk.js +258 -0
  294. package/dist/mixMap-Bw-We4Cm.cjs +1 -0
  295. package/dist/mixModel-BqE_Kd4c.js +245 -0
  296. package/dist/mixModel-CgV4XptM.cjs +3 -0
  297. package/dist/mixPie-9LfMCTQV.cjs +2 -0
  298. package/dist/mixPie-B-HeglUn.js +168 -0
  299. package/dist/mixdashboards.cjs +1 -1
  300. package/dist/mixdashboards.css +1 -1
  301. package/dist/mixdashboards.js +7 -7
  302. package/dist/mjpegCamera-Cfw3rzT5.js +158 -0
  303. package/dist/mjpegCamera-nxKfhobY.cjs +1 -0
  304. package/dist/monitorAlert-Bg5vzzyG.js +225 -0
  305. package/dist/monitorAlert-Bt0baNh4.cjs +1 -0
  306. package/dist/monitorData-BvAMeOrp.js +319 -0
  307. package/dist/monitorData-CzPVIk_4.cjs +1 -0
  308. package/dist/monitorSpeedChart-0bDuU3Kj.js +603 -0
  309. package/dist/monitorSpeedChart-C52QjA5K.cjs +16 -0
  310. package/dist/mxa-BW80xKCc.js +143 -0
  311. package/dist/mxa-eLAgZPMC.cjs +2 -0
  312. package/dist/no-image-icon-CPA7RKkF.cjs +1 -0
  313. package/dist/no-image-icon-n2ZlEjxS.js +1864 -0
  314. package/dist/objectList-Cf9GMyXN.js +1809 -0
  315. package/dist/objectList-CpqQxG8L.cjs +1 -0
  316. package/dist/params-3W3p8QeC.cjs +1 -0
  317. package/dist/params-DfgBemk0.js +75 -0
  318. package/dist/photo-BODEtaYh.cjs +1 -0
  319. package/dist/photo-BfLkWAo8.js +256 -0
  320. package/dist/pie-BDLg-Rls.js +199 -0
  321. package/dist/pie-DxoBrm0D.cjs +2 -0
  322. package/dist/points-DcRmizmA.cjs +1 -0
  323. package/dist/points-DkG9FRF9.js +277 -0
  324. package/dist/pressBtn-CXG1eSWC.js +242 -0
  325. package/dist/pressBtn-t0g4vk7s.cjs +1 -0
  326. package/dist/progressBar-BXaFKSCq.js +130 -0
  327. package/dist/progressBar-CJEWkZ42.cjs +1 -0
  328. package/dist/progressCircle-DpOI5D5z.js +168 -0
  329. package/dist/progressCircle-uQ7vaMKM.cjs +1 -0
  330. package/dist/qrcode-CX8aymYZ.js +814 -0
  331. package/dist/qrcode-DHCRfp0M.cjs +1 -0
  332. package/dist/raceBar-Cv0-0ogd.cjs +4 -0
  333. package/dist/raceBar-DFaH342G.js +197 -0
  334. package/dist/rad-CFswUTwi.cjs +1 -0
  335. package/dist/rad-NS2G_nMg.js +143 -0
  336. package/dist/rainfallFilterBar-BI45QvJm.cjs +1 -0
  337. package/dist/rainfallFilterBar-D_Ye_NeB.js +221 -0
  338. package/dist/rainfallTimeCurve-BHWqX47Q.js +443 -0
  339. package/dist/rainfallTimeCurve-Ke1JvSWq.cjs +1 -0
  340. package/dist/rangeLin-D6VZ2U3C.cjs +3 -0
  341. package/dist/rangeLin-GMYEgLeP.js +278 -0
  342. package/dist/request-BD0x5Hkt.js +75 -0
  343. package/dist/request-Bn100qAJ.cjs +1 -0
  344. package/dist/retainer1-D2XmjXYH.cjs +1 -0
  345. package/dist/retainer1-h-Whr2c9.js +290 -0
  346. package/dist/retainer2-ByQdiRjq.js +504 -0
  347. package/dist/retainer2-cF-trL2g.cjs +1 -0
  348. package/dist/riskRegionTable-CQxAkG7k.js +170 -0
  349. package/dist/riskRegionTable-cKnxra4_.cjs +1 -0
  350. package/dist/sankey-Bk1IcVJQ.js +171 -0
  351. package/dist/sankey-MRirEgU0.cjs +1 -0
  352. package/dist/sausage-DRCw7Qmr.cjs +1 -0
  353. package/dist/sausage-xU3hOdxD.js +30 -0
  354. package/dist/scd-BDRpzmsa.js +2577 -0
  355. package/dist/scd-J-mN3eI5.cjs +1 -0
  356. package/dist/sectorHelper-BFEnYqut.cjs +1 -0
  357. package/dist/sectorHelper-DIlWFMnU.js +18 -0
  358. package/dist/sideMenu-BgTMtnMq.js +225 -0
  359. package/dist/sideMenu-l8X2E00H.cjs +1 -0
  360. package/dist/slopeStability-BPf7m0fJ.cjs +1 -0
  361. package/dist/slopeStability-C5RqZ1im.js +331 -0
  362. package/dist/speedCurve-C3pK-zZy.js +394 -0
  363. package/dist/speedCurve-CluwNAZl.cjs +1 -0
  364. package/dist/staticLine-C6tGGXcN.cjs +1 -0
  365. package/dist/staticLine-DXWOLj15.js +362 -0
  366. package/dist/store-BJW2NQkK.cjs +5 -0
  367. package/dist/store-DzDtVfSX.js +1673 -0
  368. package/dist/swiper-DGqDoUkX.cjs +1 -0
  369. package/dist/swiper-IMlGje3t.js +128 -0
  370. package/dist/terminalConfigList-D6xDHsnb.cjs +1 -0
  371. package/dist/terminalConfigList-SAyXi-BK.js +1017 -0
  372. package/dist/terminalList-CjSHshiR.js +1211 -0
  373. package/dist/terminalList-ml2C18MY.cjs +1 -0
  374. package/dist/textbox-AQtCe25j.cjs +1 -0
  375. package/dist/textbox-BLV-SY8e.js +172 -0
  376. package/dist/three.module-DNVo041Q.cjs +3824 -0
  377. package/dist/three.module-DcOQNgKS.js +16561 -0
  378. package/dist/timeQueryBar-BeMu_DYr.js +155 -0
  379. package/dist/timeQueryBar-BuKakMy8.cjs +1 -0
  380. package/dist/timeSeries-DP5iZKVM.js +587 -0
  381. package/dist/timeSeries-DfGgFWiF.cjs +4 -0
  382. package/dist/timeSeriesCurve-B0Mw6eNK.cjs +1 -0
  383. package/dist/timeSeriesCurve-BSgtPqYw.js +463 -0
  384. package/dist/titleStyle-BT5GlpAb.js +49 -0
  385. package/dist/titleStyle-NSnz6cUg.cjs +1 -0
  386. package/dist/toggleBtn-Dh64vVWo.cjs +1 -0
  387. package/dist/toggleBtn-O2Y75Uen.js +249 -0
  388. package/dist/trajectoryConfigPanel--C1h3tK6.js +635 -0
  389. package/dist/trajectoryConfigPanel-P_Qa4omj.cjs +1 -0
  390. package/dist/trajectoryScatter-BbpbgNb8.cjs +1 -0
  391. package/dist/trajectoryScatter-VLrmImlq.js +525 -0
  392. package/dist/universalConfigPanel-C0lDSzOB.cjs +1 -0
  393. package/dist/universalConfigPanel-DBg76b4F.js +477 -0
  394. package/dist/universalTable-Bzq9VqzA.cjs +2 -0
  395. package/dist/universalTable-DGK02ywi.js +410 -0
  396. package/dist/universalTransition-Bv7ibBUh.js +988 -0
  397. package/dist/universalTransition-CIN_u2Cu.cjs +1 -0
  398. package/dist/video-CyRoSQf1.cjs +1 -0
  399. package/dist/video-DCzzaEmV.js +310 -0
  400. package/dist/videoMonitor-BjD-ZFS0.cjs +1 -0
  401. package/dist/videoMonitor-ByaQeIWR.js +241 -0
  402. package/dist/vlu-CYZjYHaV.cjs +1 -0
  403. package/dist/vlu-h-9twmCr.js +100 -0
  404. package/dist/vue-i18n-5Nahpzrm.js +2732 -0
  405. package/dist/vue-i18n-BvHMBi_b.cjs +5 -0
  406. package/dist/weather-B7B5E1EJ.cjs +1 -0
  407. package/dist/weather-C_aC0XJ1.js +94 -0
  408. package/dist/windLin-B7V4NUV8.js +1226 -0
  409. package/dist/windLin-DPNzX7JN.cjs +1 -0
  410. package/package.json +17 -10
  411. package/dist/history-fvcbbxGa.cjs +0 -1
  412. package/dist/index-B-aA7889.js +0 -154003
  413. package/dist/index-CdJ-j9Gj.cjs +0 -8893
@@ -0,0 +1,11 @@
1
+ "use strict";const I=require("./installCanvasRenderer-CyhM1Qpl.cjs"),l=require("./echarts-BB8O2KSA.cjs"),va=require("./install-CYwVETsi.cjs"),wt=require("./install-Ch5d8i37.cjs"),pe=require("./install-nDY6w-GK.cjs"),fi=require("./install-ByPD0oOh.cjs"),pi=require("./install-B1IEhhn3.cjs"),J=require("./install-DHY9y86B.cjs"),ha=require("./createSeriesDataSimply-CjfZL_jf.cjs"),Mt=require("./points-DcRmizmA.cjs"),Vt=require("./RoamController--cgD3aNm.cjs"),fa=require("./cursorHelper-DsTR8jVF.cjs"),kt=require("./install-BvOpNm0Y.cjs"),di=require("./VisualMapping-MilpZvD_.cjs"),Ce=require("./installMarkLine-Bv53Iw9G.cjs"),_e=require("./LegendVisualProvider-BDw4_0K3.cjs"),gi=require("./install-B65ZIqAx.cjs"),yi=require("./createSeriesData-Cz83cqoZ.cjs"),ae=require("./axisAlignTicks-CDNWKJRo.cjs"),Ze=require("./install-CIT6k8Ga.cjs"),Se=require("./installSimple-c87Ufc4_.cjs"),oe=require("./install-Csxa7Kv7.cjs"),pa=require("./dataSample-D4ycwmll.cjs"),mi=require("./install-LtoYukZU.cjs"),xi=require("./labelHelper-npJGYQ1j.cjs"),rr=require("./sectorHelper-BFEnYqut.cjs"),Si=require("./install-DIlB2q7w.cjs"),_i=require("./install-C8buXQPI.cjs"),wi=require("./install-kGXY_57n.cjs"),Ai=require("./install-DV5cEgNV.cjs"),bi=require("./install-BRjgycz_.cjs"),de=require("./MarkerView-BG_nYESR.cjs"),Di=require("./installMarkArea-CjyaJPLE.cjs"),Ii=require("./install-CltTFs4e.cjs"),zt=require("./install-z6wShIZI.cjs"),Ti=require("./install-BamnGDPb.cjs"),Li=require("./universalTransition-CIN_u2Cu.cjs");function Pi(r){if(r){for(var t=[],e=0;e<r.length;e++)t.push(r[e].slice());return t}}function Ci(r,t){var e=r.label,a=t&&t.getTextGuideLine();return{dataIndex:r.dataIndex,dataType:r.dataType,seriesIndex:r.seriesModel.seriesIndex,text:r.label.style.text,rect:r.hostRect,labelRect:r.rect,align:e.style.align,verticalAlign:e.style.verticalAlign,labelLinePoints:Pi(a&&a.shape.points)}}var ar=["align","verticalAlign","width","height","fontSize"],j=new l.Transformable,Je=l.makeInner(),Ei=l.makeInner();function ke(r,t,e){for(var a=0;a<e.length;a++){var i=e[a];t[i]!=null&&(r[i]=t[i])}}var ze=["x","y","rotation"],Ni=(function(){function r(){this._labelList=[],this._chartViewList=[]}return r.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},r.prototype._addLabel=function(t,e,a,i,n){var o=i.style,s=i.__hostTarget,u=s.textConfig||{},c=i.getComputedTransform(),v=i.getBoundingRect().plain();l.BoundingRect.applyTransform(v,v,c),c?j.setLocalTransform(c):(j.x=j.y=j.rotation=j.originX=j.originY=0,j.scaleX=j.scaleY=1),j.rotation=l.normalizeRadian(j.rotation);var h=i.__hostTarget,f;if(h){f=h.getBoundingRect().plain();var p=h.getComputedTransform();l.BoundingRect.applyTransform(f,f,p)}var g=f&&h.getTextGuideLine();this._labelList.push({label:i,labelLine:g,seriesModel:a,dataIndex:t,dataType:e,layoutOption:n,computedLayoutOption:null,rect:v,hostRect:f,priority:f?f.width*f.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:g&&g.ignore,x:j.x,y:j.y,scaleX:j.scaleX,scaleY:j.scaleY,rotation:j.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:i.cursor,attachedPos:u.position,attachedRot:u.rotation}})},r.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var a=t.__model,i=a.get("labelLayout");(l.isFunction(i)||l.keys(i).length)&&t.group.traverse(function(n){if(n.ignore)return!0;var o=n.getTextContent(),s=l.getECData(n);o&&!o.disableLabelLayout&&e._addLabel(s.dataIndex,s.dataType,a,o,i)})},r.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),a=t.getHeight();function i(S,_){return function(){pe.updateLabelLinePoints(S,_)}}for(var n=0;n<this._labelList.length;n++){var o=this._labelList[n],s=o.label,u=s.__hostTarget,c=o.defaultAttr,v=void 0;l.isFunction(o.layoutOption)?v=o.layoutOption(Ci(o,u)):v=o.layoutOption,v=v||{},o.computedLayoutOption=v;var h=Math.PI/180;u&&u.setTextConfig({local:!1,position:v.x!=null||v.y!=null?null:c.attachedPos,rotation:v.rotate!=null?v.rotate*h:c.attachedRot,offset:[v.dx||0,v.dy||0]});var f=!1;if(v.x!=null?(s.x=l.parsePercent(v.x,e),s.setStyle("x",0),f=!0):(s.x=c.x,s.setStyle("x",c.style.x)),v.y!=null?(s.y=l.parsePercent(v.y,a),s.setStyle("y",0),f=!0):(s.y=c.y,s.setStyle("y",c.style.y)),v.labelLinePoints){var p=u.getTextGuideLine();p&&(p.setShape({points:v.labelLinePoints}),f=!1)}var g=Je(s);g.needsUpdateLabelLine=f,s.rotation=v.rotate!=null?v.rotate*h:c.rotation,s.scaleX=c.scaleX,s.scaleY=c.scaleY;for(var d=0;d<ar.length;d++){var y=ar[d];s.setStyle(y,v[y]!=null?v[y]:c.style[y])}if(v.draggable){if(s.draggable=!0,s.cursor="move",u){var x=o.seriesModel;if(o.dataIndex!=null){var m=o.seriesModel.getData(o.dataType);x=m.getItemModel(o.dataIndex)}s.on("drag",i(u,x.getModel("labelLine")))}}else s.off("drag"),s.cursor=c.cursor}},r.prototype.layout=function(t){var e=t.getWidth(),a=t.getHeight(),i=I.prepareLayoutList(this._labelList),n=l.filter(i,function(u){return u.layoutOption.moveOverlap==="shiftX"}),o=l.filter(i,function(u){return u.layoutOption.moveOverlap==="shiftY"});I.shiftLayoutOnX(n,0,e),I.shiftLayoutOnY(o,0,a);var s=l.filter(i,function(u){return u.layoutOption.hideOverlap});I.hideOverlap(s)},r.prototype.processLabelsOverall=function(){var t=this;l.each(this._chartViewList,function(e){var a=e.__model,i=e.ignoreLabelLineUpdate,n=a.isAnimationEnabled();e.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!i,u=o.getTextContent();!s&&u&&(s=Je(u).needsUpdateLabelLine),s&&t._updateLabelLine(o,a),n&&t._animateLabels(o,a)})})},r.prototype._updateLabelLine=function(t,e){var a=t.getTextContent(),i=l.getECData(t),n=i.dataIndex;if(a&&n!=null){var o=e.getData(i.dataType),s=o.getItemModel(n),u={},c=o.getItemVisual(n,"style");if(c){var v=o.getVisual("drawType");u.stroke=c[v]}var h=s.getModel("labelLine");pe.setLabelLineStyle(t,pe.getLabelLineStatesModels(s),u),pe.updateLabelLinePoints(t,h)}},r.prototype._animateLabels=function(t,e){var a=t.getTextContent(),i=t.getTextGuideLine();if(a&&(t.forceLabelAnimation||!a.ignore&&!a.invisible&&!t.disableLabelAnimation&&!l.isElementRemoved(t))){var n=Je(a),o=n.oldLayout,s=l.getECData(t),u=s.dataIndex,c={x:a.x,y:a.y,rotation:a.rotation},v=e.getData(s.dataType);if(o){a.attr(o);var f=t.prevStates;f&&(l.indexOf(f,"select")>=0&&a.attr(n.oldLayoutSelect),l.indexOf(f,"emphasis")>=0&&a.attr(n.oldLayoutEmphasis)),l.updateProps(a,c,e,u)}else if(a.attr(c),!l.labelInner(a).valueAnimation){var h=l.retrieve2(a.style.opacity,1);a.style.opacity=0,l.initProps(a,{style:{opacity:h}},e,u)}if(n.oldLayout=c,a.states.select){var p=n.oldLayoutSelect={};ke(p,c,ze),ke(p,a.states.select,ze)}if(a.states.emphasis){var g=n.oldLayoutEmphasis={};ke(g,c,ze),ke(g,a.states.emphasis,ze)}l.animateLabelValue(a,u,v,e,e)}if(i&&!i.ignore&&!i.invisible){var n=Ei(i),o=n.oldLayout,d={points:i.shape.points};o?(i.attr({shape:o}),l.updateProps(i,{shape:d},e)):(i.setShape(d),i.style.strokePercent=0,l.initProps(i,{style:{strokePercent:1}},e)),n.oldLayout=d}},r})(),Qe=l.makeInner();function da(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,a){var i=Qe(e).labelManager;i||(i=Qe(e).labelManager=new Ni),i.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,a){var i=Qe(e).labelManager;a.updatedSeries.forEach(function(n){i.addLabelsOfSeries(e.getViewOfSeriesModel(n))}),i.updateLayoutConfig(e),i.layout(e),i.processLabelsOverall()})}var Ri=(function(r){l.__extends(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,i,n){if(!(n&&n.type==="mapToggleSelect"&&n.from===this.uid)){var o=this.group;if(o.removeAll(),!e.getHostGeoModel()){if(this._mapDraw&&n&&n.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),n&&n.type==="geoRoam"&&n.componentType==="series"&&n.seriesId===e.id){var s=this._mapDraw;s&&o.add(s.group)}else if(e.needsDrawMap){var s=this._mapDraw||new J.MapDraw(i);o.add(s.group),s.draw(e,a,i,this,n),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&a.getComponent("legend")&&this._renderSymbols(e,a,i)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(e,a,i){var n=e.originalData,o=this.group;n.each(n.mapDimension("value"),function(s,u){if(!isNaN(s)){var c=n.getItemLayout(u);if(!(!c||!c.point)){var v=c.point,h=c.offset,f=new l.Circle({style:{fill:e.getData().getVisual("style").fill},shape:{cx:v[0]+h*9,cy:v[1],r:3},silent:!0,z2:8+(h?0:l.Z2_EMPHASIS_LIFT+1)});if(!h){var p=e.mainSeries.getData(),g=n.getName(u),d=p.indexOfName(g),y=n.getItemModel(u),x=y.getModel("label"),m=p.getItemGraphicEl(d);l.setLabelStyle(f,l.getLabelStatesModels(y),{labelFetcher:{getFormattedLabel:function(S,_){return e.getFormattedLabel(d,_)}},defaultText:g}),f.disableLabelAnimation=!0,x.get("position")||f.setTextConfig({position:"bottom"}),m.onHoverStateChange=function(S){l.setStatesFlag(f,S)}}o.add(f)}}})},t.type="map",t})(l.ChartView),Mi=(function(r){l.__extends(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.needsDrawMap=!1,e.seriesGroup=[],e.getTooltipPosition=function(a){if(a!=null){var i=this.getData().getName(a),n=this.coordinateSystem,o=n.getRegion(i);return o&&n.dataToPoint(o.getCenter())}},e}return t.prototype.getInitialData=function(e){for(var a=ha.createSeriesDataSimply(this,{coordDimensions:["value"],encodeDefaulter:l.curry(l.makeSeriesEncodeForNameBased,this)}),i=l.createHashMap(),n=[],o=0,s=a.count();o<s;o++){var u=a.getName(o);i.set(u,o)}var c=J.geoSourceManager.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return l.each(c.regions,function(v){var h=v.name,f=i.get(h),p=v.properties&&v.properties.echartsStyle,g;f==null?(g={name:h},n.push(g)):g=a.getRawDataItem(f),p&&l.merge(g,p)}),a.appendData(n),a},t.prototype.getHostGeoModel=function(){var e=this.option.geoIndex;return e!=null?this.ecModel.getComponent("geo",e):null},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(e){var a=this.getData();return a.get(a.mapDimension("value"),e)},t.prototype.getRegionModel=function(e){var a=this.getData();return a.getItemModel(a.indexOfName(e))},t.prototype.formatTooltip=function(e,a,i){for(var n=this.getData(),o=this.getRawValue(e),s=n.getName(e),u=this.seriesGroup,c=[],v=0;v<u.length;v++){var h=u[v].originalData.indexOfName(s),f=n.mapDimension("value");isNaN(u[v].originalData.get(f,h))||c.push(u[v].name)}return l.createTooltipMarkup("section",{header:c.join(", "),noHeader:!c.length,blocks:[l.createTooltipMarkup("nameValue",{name:s,value:o})]})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.getLegendIcon=function(e){var a=e.icon||"roundRect",i=l.createSymbol(a,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill);return i.setStyle(e.itemStyle),i.style.stroke="none",a.indexOf("empty")>-1&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2),i},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t})(l.SeriesModel);function Vi(r,t){var e={};return l.each(r,function(a){a.each(a.mapDimension("value"),function(i,n){var o="ec-"+a.getName(n);e[o]=e[o]||[],isNaN(i)||e[o].push(i)})}),r[0].map(r[0].mapDimension("value"),function(a,i){for(var n="ec-"+r[0].getName(i),o=0,s=1/0,u=-1/0,c=e[n].length,v=0;v<c;v++)s=Math.min(s,e[n][v]),u=Math.max(u,e[n][v]),o+=e[n][v];var h;return t==="min"?h=s:t==="max"?h=u:t==="average"?h=o/c:h=o,c===0?NaN:h})}function ki(r){var t={};r.eachSeriesByType("map",function(e){var a=e.getHostGeoModel(),i=a?"o"+a.id:"i"+e.getMapType();(t[i]=t[i]||[]).push(e)}),l.each(t,function(e,a){for(var i=Vi(l.map(e,function(o){return o.getData()}),e[0].get("mapValueCalculation")),n=0;n<e.length;n++)e[n].originalData=e[n].getData();for(var n=0;n<e.length;n++)e[n].seriesGroup=e,e[n].needsDrawMap=n===0&&!e[n].getHostGeoModel(),e[n].setData(i.cloneShallow()),e[n].mainSeries=e[0]})}function zi(r){var t={};r.eachSeriesByType("map",function(e){var a=e.getMapType();if(!(e.getHostGeoModel()||t[a])){var i={};l.each(e.seriesGroup,function(o){var s=o.coordinateSystem,u=o.originalData;o.get("showLegendSymbol")&&r.getComponent("legend")&&u.each(u.mapDimension("value"),function(c,v){var h=u.getName(v),f=s.getRegion(h);if(!(!f||isNaN(c))){var p=i[h]||0,g=s.dataToPoint(f.getCenter());i[h]=p+1,u.setItemLayout(v,{point:g,offset:p})}})});var n=e.getData();n.each(function(o){var s=n.getName(o),u=n.getItemLayout(o)||{};u.showLabel=!i[s],n.setItemLayout(o,u)}),t[a]=!0}})}function Oi(r){I.use(J.install),r.registerChartView(Ri),r.registerSeriesModel(Mi),r.registerLayout(zi),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,ki),l.createLegacyDataSelectAction("map",r.registerAction)}function Bi(r){var t=r;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var e=[t],a,i;a=e.pop();)if(i=a.children,a.isExpand&&i.length)for(var n=i.length,o=n-1;o>=0;o--){var s=i[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},e.push(s)}}function Gi(r,t){var e=r.isExpand?r.children:[],a=r.parentNode.children,i=r.hierNode.i?a[r.hierNode.i-1]:null;if(e.length){Hi(r);var n=(e[0].hierNode.prelim+e[e.length-1].hierNode.prelim)/2;i?(r.hierNode.prelim=i.hierNode.prelim+t(r,i),r.hierNode.modifier=r.hierNode.prelim-n):r.hierNode.prelim=n}else i&&(r.hierNode.prelim=i.hierNode.prelim+t(r,i));r.parentNode.hierNode.defaultAncestor=$i(r,i,r.parentNode.hierNode.defaultAncestor||a[0],t)}function Wi(r){var t=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:t},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function ir(r){return arguments.length?r:Yi}function De(r,t){return r-=Math.PI/2,{x:t*Math.cos(r),y:t*Math.sin(r)}}function Fi(r,t){return l.getLayoutRect(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Hi(r){for(var t=r.children,e=t.length,a=0,i=0;--e>=0;){var n=t[e];n.hierNode.prelim+=a,n.hierNode.modifier+=a,i+=n.hierNode.change,a+=n.hierNode.shift+i}}function $i(r,t,e,a){if(t){for(var i=r,n=r,o=n.parentNode.children[0],s=t,u=i.hierNode.modifier,c=n.hierNode.modifier,v=o.hierNode.modifier,h=s.hierNode.modifier;s=et(s),n=tt(n),s&&n;){i=et(i),o=tt(o),i.hierNode.ancestor=r;var f=s.hierNode.prelim+h-n.hierNode.prelim-c+a(s,n);f>0&&(qi(Ui(s,r,e),r,f),c+=f,u+=f),h+=s.hierNode.modifier,c+=n.hierNode.modifier,u+=i.hierNode.modifier,v+=o.hierNode.modifier}s&&!et(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=h-u),n&&!tt(o)&&(o.hierNode.thread=n,o.hierNode.modifier+=c-v,e=r)}return e}function et(r){var t=r.children;return t.length&&r.isExpand?t[t.length-1]:r.hierNode.thread}function tt(r){var t=r.children;return t.length&&r.isExpand?t[0]:r.hierNode.thread}function Ui(r,t,e){return r.hierNode.ancestor.parentNode===t.parentNode?r.hierNode.ancestor:e}function qi(r,t,e){var a=e/(t.hierNode.i-r.hierNode.i);t.hierNode.change-=a,t.hierNode.shift+=e,t.hierNode.modifier+=e,t.hierNode.prelim+=e,r.hierNode.change+=a}function Yi(r,t){return r.parentNode===t.parentNode?1:2}var Zi=(function(){function r(){this.parentPoint=[],this.childPoints=[]}return r})(),Xi=(function(r){l.__extends(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Zi},t.prototype.buildPath=function(e,a){var i=a.childPoints,n=i.length,o=a.parentPoint,s=i[0],u=i[n-1];if(n===1){e.moveTo(o[0],o[1]),e.lineTo(s[0],s[1]);return}var c=a.orient,v=c==="TB"||c==="BT"?0:1,h=1-v,f=l.parsePercent(a.forkPosition,1),p=[];p[v]=o[v],p[h]=o[h]+(u[h]-o[h])*f,e.moveTo(o[0],o[1]),e.lineTo(p[0],p[1]),e.moveTo(s[0],s[1]),p[v]=s[v],e.lineTo(p[0],p[1]),p[v]=u[v],e.lineTo(p[0],p[1]),e.lineTo(u[0],u[1]);for(var g=1;g<n-1;g++){var d=i[g];e.moveTo(d[0],d[1]),p[v]=d[v],e.lineTo(p[0],p[1])}},t})(l.Path),Ki=(function(r){l.__extends(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._mainGroup=new l.Group,e}return t.prototype.init=function(e,a){this._controller=new Vt.RoamController(a.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(e,a,i){var n=e.getData(),o=e.layoutInfo,s=this._mainGroup,u=e.get("layout");u==="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(e,i),this._updateController(e,a,i);var c=this._data;n.diff(c).add(function(v){nr(n,v)&&or(n,v,null,s,e)}).update(function(v,h){var f=c.getItemGraphicEl(h);if(!nr(n,v)){f&&lr(c,h,f,s,e);return}or(n,v,f,s,e)}).remove(function(v){var h=c.getItemGraphicEl(v);h&&lr(c,v,h,s,e)}).execute(),this._nodeScaleRatio=e.get("nodeScaleRatio"),this._updateNodeAndLinkScale(e),e.get("expandAndCollapse")===!0&&n.eachItemGraphicEl(function(v,h){v.off("click").on("click",function(){i.dispatchAction({type:"treeExpandAndCollapse",seriesId:e.id,dataIndex:h})})}),this._data=n},t.prototype._updateViewCoordSys=function(e,a){var i=e.getData(),n=[];i.each(function(h){var f=i.getItemLayout(h);f&&!isNaN(f.x)&&!isNaN(f.y)&&n.push([+f.x,+f.y])});var o=[],s=[];l.fromPoints(n,o,s);var u=this._min,c=this._max;s[0]-o[0]===0&&(o[0]=u?u[0]:o[0]-1,s[0]=c?c[0]:s[0]+1),s[1]-o[1]===0&&(o[1]=u?u[1]:o[1]-1,s[1]=c?c[1]:s[1]+1);var v=e.coordinateSystem=new J.View;v.zoomLimit=e.get("scaleLimit"),v.setBoundingRect(o[0],o[1],s[0]-o[0],s[1]-o[1]),v.setCenter(e.get("center"),a),v.setZoom(e.get("zoom")),this.group.attr({x:v.x,y:v.y,scaleX:v.scaleX,scaleY:v.scaleY}),this._min=o,this._max=s},t.prototype._updateController=function(e,a,i){var n=this,o=this._controller,s=this._controllerHost,u=this.group;o.setPointerChecker(function(c,v,h){var f=u.getBoundingRect();return f.applyTransform(u.transform),f.contain(v,h)&&!fa.onIrrelevantElement(c,i,e)}),o.enable(e.get("roam")),s.zoomLimit=e.get("scaleLimit"),s.zoom=e.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(c){J.updateViewOnPan(s,c.dx,c.dy),i.dispatchAction({seriesId:e.id,type:"treeRoam",dx:c.dx,dy:c.dy})}).on("zoom",function(c){J.updateViewOnZoom(s,c.scale,c.originX,c.originY),i.dispatchAction({seriesId:e.id,type:"treeRoam",zoom:c.scale,originX:c.originX,originY:c.originY}),n._updateNodeAndLinkScale(e),i.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(e){var a=e.getData(),i=this._getNodeGlobalScale(e);a.eachItemGraphicEl(function(n,o){n.setSymbolScale(i)})},t.prototype._getNodeGlobalScale=function(e){var a=e.coordinateSystem;if(a.type!=="view")return 1;var i=this._nodeScaleRatio,n=a.scaleX||1,o=a.getZoom(),s=(o-1)*i+1;return s/n},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type="tree",t})(l.ChartView);function nr(r,t){var e=r.getItemLayout(t);return e&&!isNaN(e.x)&&!isNaN(e.y)}function or(r,t,e,a,i){var n=!e,o=r.tree.getNodeByDataIndex(t),s=o.getModel(),u=o.getVisual("style").fill,c=o.isExpand===!1&&o.children.length!==0?u:"#fff",v=r.tree.root,h=o.parentNode===v?o:o.parentNode||o,f=r.getItemGraphicEl(h.dataIndex),p=h.getLayout(),g=f?{x:f.__oldX,y:f.__oldY,rawX:f.__radialOldRawX,rawY:f.__radialOldRawY}:p,d=o.getLayout();n?(e=new Mt.Symbol(r,t,null,{symbolInnerColor:c,useNameLabel:!0}),e.x=g.x,e.y=g.y):e.updateData(r,t,null,{symbolInnerColor:c,useNameLabel:!0}),e.__radialOldRawX=e.__radialRawX,e.__radialOldRawY=e.__radialRawY,e.__radialRawX=d.rawX,e.__radialRawY=d.rawY,a.add(e),r.setItemGraphicEl(t,e),e.__oldX=e.x,e.__oldY=e.y,l.updateProps(e,{x:d.x,y:d.y},i);var y=e.getSymbolPath();if(i.get("layout")==="radial"){var x=v.children[0],m=x.getLayout(),S=x.children.length,_=void 0,w=void 0;if(d.x===m.x&&o.isExpand===!0&&x.children.length){var A={x:(x.children[0].getLayout().x+x.children[S-1].getLayout().x)/2,y:(x.children[0].getLayout().y+x.children[S-1].getLayout().y)/2};_=Math.atan2(A.y-m.y,A.x-m.x),_<0&&(_=Math.PI*2+_),w=A.x<m.x,w&&(_=_-Math.PI)}else _=Math.atan2(d.y-m.y,d.x-m.x),_<0&&(_=Math.PI*2+_),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(w=d.x<m.x,w&&(_=_-Math.PI)):(w=d.x>m.x,w||(_=_-Math.PI));var b=w?"left":"right",T=s.getModel("label"),P=T.get("rotate"),D=P*(Math.PI/180),E=y.getTextContent();E&&(y.setTextConfig({position:T.get("position")||b,rotation:P==null?-_:D,origin:"center"}),E.setStyle("verticalAlign","middle"))}var C=s.get(["emphasis","focus"]),L=C==="relative"?l.concatArray(o.getAncestorsIndices(),o.getDescendantIndices()):C==="ancestor"?o.getAncestorsIndices():C==="descendant"?o.getDescendantIndices():null;L&&(l.getECData(e).focus=L),ji(i,o,v,e,g,p,d,a),e.__edge&&(e.onHoverStateChange=function(R){if(R!=="blur"){var O=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);O&&O.hoverState===l.HOVER_STATE_BLUR||l.setStatesFlag(e.__edge,R)}})}function ji(r,t,e,a,i,n,o,s){var u=t.getModel(),c=r.get("edgeShape"),v=r.get("layout"),h=r.getOrient(),f=r.get(["lineStyle","curveness"]),p=r.get("edgeForkPosition"),g=u.getModel("lineStyle").getLineStyle(),d=a.__edge;if(c==="curve")t.parentNode&&t.parentNode!==e&&(d||(d=a.__edge=new l.BezierCurve({shape:At(v,h,f,i,i)})),l.updateProps(d,{shape:At(v,h,f,n,o)},r));else if(c==="polyline"){if(v==="orthogonal"){if(t!==e&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var y=t.children,x=[],m=0;m<y.length;m++){var S=y[m].getLayout();x.push([S.x,S.y])}d||(d=a.__edge=new Xi({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:h,forkPosition:p}})),l.updateProps(d,{shape:{parentPoint:[o.x,o.y],childPoints:x}},r)}}else if(process.env.NODE_ENV!=="production")throw new Error("The polyline edgeShape can only be used in orthogonal layout")}d&&!(c==="polyline"&&!t.isExpand)&&(d.useStyle(l.defaults({strokeNoScale:!0,fill:null},g)),l.setStatesStylesFromModel(d,u,"lineStyle"),l.setDefaultStateProxy(d),s.add(d))}function sr(r,t,e,a,i){var n=t.tree.root,o=ga(n,r),s=o.source,u=o.sourceLayout,c=t.getItemGraphicEl(r.dataIndex);if(c){var v=t.getItemGraphicEl(s.dataIndex),h=v.__edge,f=c.__edge||(s.isExpand===!1||s.children.length===1?h:void 0),p=a.get("edgeShape"),g=a.get("layout"),d=a.get("orient"),y=a.get(["lineStyle","curveness"]);f&&(p==="curve"?l.removeElement(f,{shape:At(g,d,y,u,u),style:{opacity:0}},a,{cb:function(){e.remove(f)},removeOpt:i}):p==="polyline"&&a.get("layout")==="orthogonal"&&l.removeElement(f,{shape:{parentPoint:[u.x,u.y],childPoints:[[u.x,u.y]]},style:{opacity:0}},a,{cb:function(){e.remove(f)},removeOpt:i}))}}function ga(r,t){for(var e=t.parentNode===r?t:t.parentNode||t,a;a=e.getLayout(),a==null;)e=e.parentNode===r?e:e.parentNode||e;return{source:e,sourceLayout:a}}function lr(r,t,e,a,i){var n=r.tree.getNodeByDataIndex(t),o=r.tree.root,s=ga(o,n).sourceLayout,u={duration:i.get("animationDurationUpdate"),easing:i.get("animationEasingUpdate")};l.removeElement(e,{x:s.x+1,y:s.y+1},i,{cb:function(){a.remove(e),r.setItemGraphicEl(t,null)},removeOpt:u}),e.fadeOut(null,r.hostModel,{fadeLabel:!0,animation:u}),n.children.forEach(function(c){sr(c,r,a,i,u)}),sr(n,r,a,i,u)}function At(r,t,e,a,i){var n,o,s,u,c,v,h,f;if(r==="radial"){c=a.rawX,h=a.rawY,v=i.rawX,f=i.rawY;var p=De(c,h),g=De(c,h+(f-h)*e),d=De(v,f+(h-f)*e),y=De(v,f);return{x1:p.x||0,y1:p.y||0,x2:y.x||0,y2:y.y||0,cpx1:g.x||0,cpy1:g.y||0,cpx2:d.x||0,cpy2:d.y||0}}else c=a.x,h=a.y,v=i.x,f=i.y,(t==="LR"||t==="RL")&&(n=c+(v-c)*e,o=h,s=v+(c-v)*e,u=f),(t==="TB"||t==="BT")&&(n=c,o=h+(f-h)*e,s=v,u=f+(h-f)*e);return{x1:c,y1:h,x2:v,y2:f,cpx1:n,cpy1:o,cpx2:s,cpy2:u}}var Ji=(function(){function r(t,e){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=e}return r.prototype.isRemoved=function(){return this.dataIndex<0},r.prototype.eachNode=function(t,e,a){l.isFunction(t)&&(a=e,e=t,t=null),t=t||{},l.isString(t)&&(t={order:t});var i=t.order||"preorder",n=this[t.attr||"children"],o;i==="preorder"&&(o=e.call(a,this));for(var s=0;!o&&s<n.length;s++)n[s].eachNode(t,e,a);i==="postorder"&&e.call(a,this)},r.prototype.updateDepthAndHeight=function(t){var e=0;this.depth=t;for(var a=0;a<this.children.length;a++){var i=this.children[a];i.updateDepthAndHeight(t+1),i.height>e&&(e=i.height)}this.height=e+1},r.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,a=this.children,i=a.length;e<i;e++){var n=a[e].getNodeById(t);if(n)return n}},r.prototype.contains=function(t){if(t===this)return!0;for(var e=0,a=this.children,i=a.length;e<i;e++){var n=a[e].contains(t);if(n)return n}},r.prototype.getAncestors=function(t){for(var e=[],a=t?this:this.parentNode;a;)e.push(a),a=a.parentNode;return e.reverse(),e},r.prototype.getAncestorsIndices=function(){for(var t=[],e=this;e;)t.push(e.dataIndex),e=e.parentNode;return t.reverse(),t},r.prototype.getDescendantIndices=function(){var t=[];return this.eachNode(function(e){t.push(e.dataIndex)}),t},r.prototype.getValue=function(t){var e=this.hostTree.data;return e.getStore().get(e.getDimensionIndex(t||"value"),this.dataIndex)},r.prototype.setLayout=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostTree,a=e.data.getItemModel(this.dataIndex);return a.getModel(t)}},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},r.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},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 t=this.parentNode.children,e=0;e<t.length;++e)if(t[e]===this)return e;return-1}return-1},r.prototype.isAncestorOf=function(t){for(var e=t.parentNode;e;){if(e===this)return!0;e=e.parentNode}return!1},r.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},r})(),Ot=(function(){function r(t){this.type="tree",this._nodes=[],this.hostModel=t}return r.prototype.eachNode=function(t,e,a){this.root.eachNode(t,e,a)},r.prototype.getNodeByDataIndex=function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},r.prototype.getNodeById=function(t){return this.root.getNodeById(t)},r.prototype.update=function(){for(var t=this.data,e=this._nodes,a=0,i=e.length;a<i;a++)e[a].dataIndex=-1;for(var a=0,i=t.count();a<i;a++)e[t.getRawIndex(a)].dataIndex=a},r.prototype.clearLayouts=function(){this.data.clearItemLayouts()},r.createTree=function(t,e,a){var i=new r(e),n=[],o=1;s(t);function s(v,h){var f=v.value;o=Math.max(o,l.isArray(f)?f.length:1),n.push(v);var p=new Ji(l.convertOptionIdName(v.name,""),i);h?Qi(p,h):i.root=p,i._nodes.push(p);var g=v.children;if(g)for(var d=0;d<g.length;d++)s(g[d],p)}i.root.updateDepthAndHeight(0);var u=I.prepareSeriesDataSchema(n,{coordDimensions:["value"],dimensionsCount:o}).dimensions,c=new I.SeriesData(u,e);return c.initData(n),a&&a(c),kt.linkSeriesData({mainData:c,struct:i,structAttr:"tree"}),i.update(),i},r})();function Qi(r,t){var e=t.children;r.parentNode!==t&&(e.push(r),r.parentNode=t)}function Ee(r,t,e){if(r&&l.indexOf(t,r.type)>=0){var a=e.getData().tree.root,i=r.targetNode;if(l.isString(i)&&(i=a.getNodeById(i)),i&&a.contains(i))return{node:i};var n=r.targetNodeId;if(n!=null&&(i=a.getNodeById(n)))return{node:i}}}function ya(r){for(var t=[];r;)r=r.parentNode,r&&t.push(r);return t.reverse()}function Bt(r,t){var e=ya(r);return l.indexOf(e,t)>=0}function Xe(r,t){for(var e=[];r;){var a=r.dataIndex;e.push({name:r.name,dataIndex:a,value:t.getRawValue(a)}),r=r.parentNode}return e.reverse(),e}var en=(function(r){l.__extends(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return t.prototype.getInitialData=function(e){var a={name:e.name,children:e.data},i=e.leaves||{},n=new l.Model(i,this,this.ecModel),o=Ot.createTree(a,this,s);function s(h){h.wrapMethod("getItemModel",function(f,p){var g=o.getNodeByDataIndex(p);return g&&g.children.length&&g.isExpand||(f.parentModel=n),f})}var u=0;o.eachNode("preorder",function(h){h.depth>u&&(u=h.depth)});var c=e.expandAndCollapse,v=c&&e.initialTreeDepth>=0?e.initialTreeDepth:u;return o.root.eachNode("preorder",function(h){var f=h.hostTree.data.getRawDataItem(h.dataIndex);h.isExpand=f&&f.collapsed!=null?!f.collapsed:h.depth<=v}),o.data},t.prototype.getOrient=function(){var e=this.get("orient");return e==="horizontal"?e="LR":e==="vertical"&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,a,i){for(var n=this.getData().tree,o=n.root.children[0],s=n.getNodeByDataIndex(e),u=s.getValue(),c=s.name;s&&s!==o;)c=s.parentNode.name+"."+c,s=s.parentNode;return l.createTooltipMarkup("nameValue",{name:c,value:u,noValue:isNaN(u)||u==null})},t.prototype.getDataParams=function(e){var a=r.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return a.treeAncestors=Xe(i,this),a.collapsed=!i.isExpand,a},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t})(l.SeriesModel);function tn(r,t,e){for(var a=[r],i=[],n;n=a.pop();)if(i.push(n),n.isExpand){var o=n.children;if(o.length)for(var s=0;s<o.length;s++)a.push(o[s])}for(;n=i.pop();)t(n,e)}function Ae(r,t){for(var e=[r],a;a=e.pop();)if(t(a),a.isExpand){var i=a.children;if(i.length)for(var n=i.length-1;n>=0;n--)e.push(i[n])}}function rn(r,t){r.eachSeriesByType("tree",function(e){an(e,t)})}function an(r,t){var e=Fi(r,t);r.layoutInfo=e;var a=r.get("layout"),i=0,n=0,o=null;a==="radial"?(i=2*Math.PI,n=Math.min(e.height,e.width)/2,o=ir(function(S,_){return(S.parentNode===_.parentNode?1:2)/S.depth})):(i=e.width,n=e.height,o=ir());var s=r.getData().tree.root,u=s.children[0];if(u){Bi(s),tn(u,Gi,o),s.hierNode.modifier=-u.hierNode.prelim,Ae(u,Wi);var c=u,v=u,h=u;Ae(u,function(S){var _=S.getLayout().x;_<c.getLayout().x&&(c=S),_>v.getLayout().x&&(v=S),S.depth>h.depth&&(h=S)});var f=c===v?1:o(c,v)/2,p=f-c.getLayout().x,g=0,d=0,y=0,x=0;if(a==="radial")g=i/(v.getLayout().x+f+p),d=n/(h.depth-1||1),Ae(u,function(S){y=(S.getLayout().x+p)*g,x=(S.depth-1)*d;var _=De(y,x);S.setLayout({x:_.x,y:_.y,rawX:y,rawY:x},!0)});else{var m=r.getOrient();m==="RL"||m==="LR"?(d=n/(v.getLayout().x+f+p),g=i/(h.depth-1||1),Ae(u,function(S){x=(S.getLayout().x+p)*d,y=m==="LR"?(S.depth-1)*g:i-(S.depth-1)*g,S.setLayout({x:y,y:x},!0)})):(m==="TB"||m==="BT")&&(g=i/(v.getLayout().x+f+p),d=n/(h.depth-1||1),Ae(u,function(S){y=(S.getLayout().x+p)*g,x=m==="TB"?(S.depth-1)*d:n-(S.depth-1)*d,S.setLayout({x:y,y:x},!0)}))}}}function nn(r){r.eachSeriesByType("tree",function(t){var e=t.getData(),a=e.tree;a.eachNode(function(i){var n=i.getModel(),o=n.getModel("itemStyle").getItemStyle(),s=e.ensureUniqueItemVisual(i.dataIndex,"style");l.extend(s,o)})})}function on(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},function(a){var i=t.dataIndex,n=a.getData().tree,o=n.getNodeByDataIndex(i);o.isExpand=!o.isExpand})}),r.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(t,e,a){e.eachComponent({mainType:"series",subType:"tree",query:t},function(i){var n=i.coordinateSystem,o=J.updateCenterAndZoom(n,t,void 0,a);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}function sn(r){r.registerChartView(Ki),r.registerSeriesModel(en),r.registerLayout(rn),r.registerVisual(nn),on(r)}var ur=["treemapZoomToNode","treemapRender","treemapMove"];function ln(r){for(var t=0;t<ur.length;t++)r.registerAction({type:ur[t],update:"updateView"},l.noop);r.registerAction({type:"treemapRootToNode",update:"updateView"},function(e,a){a.eachComponent({mainType:"series",subType:"treemap",query:e},i);function i(n,o){var s=["treemapZoomToNode","treemapRootToNode"],u=Ee(e,s,n);if(u){var c=n.getViewRoot();c&&(e.direction=Bt(c,u.node)?"rollUp":"drillDown"),n.resetViewRoot(u.node)}}})}function ma(r){var t=r.getData(),e=t.tree,a={};e.eachNode(function(i){for(var n=i;n&&n.depth>1;)n=n.parentNode;var o=l.getDecalFromPalette(r.ecModel,n.name||n.dataIndex+"",a);i.setVisual("decal",o)})}var un=(function(r){l.__extends(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.preventUsingHoverLayer=!0,e}return t.prototype.getInitialData=function(e,a){var i={name:e.name,children:e.data};xa(i);var n=e.levels||[],o=this.designatedVisualItemStyle={},s=new l.Model({itemStyle:o},this,a);n=e.levels=cn(n,a);var u=l.map(n||[],function(h){return new l.Model(h,s,a)},this),c=Ot.createTree(i,this,v);function v(h){h.wrapMethod("getItemModel",function(f,p){var g=c.getNodeByDataIndex(p),d=g?u[g.depth]:null;return f.parentModel=d||s,f})}return c.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,a,i){var n=this.getData(),o=this.getRawValue(e),s=n.getName(e);return l.createTooltipMarkup("nameValue",{name:s,value:o})},t.prototype.getDataParams=function(e){var a=r.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return a.treeAncestors=Xe(i,this),a.treePathInfo=a.treeAncestors,a},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},l.extend(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var a=this._idIndexMap;a||(a=this._idIndexMap=l.createHashMap(),this._idIndexMapCount=0);var i=a.get(e);return i==null&&a.set(e,i=this._idIndexMapCount++),i},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var a=this.getRawData().tree.root;(!e||e!==a&&!a.contains(e))&&(this._viewRoot=a)},t.prototype.enableAriaDecal=function(){ma(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,scaleLimit:null,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t})(l.SeriesModel);function xa(r){var t=0;l.each(r.children,function(a){xa(a);var i=a.value;l.isArray(i)&&(i=i[0]),t+=i});var e=r.value;l.isArray(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),l.isArray(r.value)?r.value[0]=e:r.value=e}function cn(r,t){var e=l.normalizeToArray(t.get("color")),a=l.normalizeToArray(t.get(["aria","decal","decals"]));if(e){r=r||[];var i,n;l.each(r,function(s){var u=new l.Model(s),c=u.get("color"),v=u.get("decal");(u.get(["itemStyle","color"])||c&&c!=="none")&&(i=!0),(u.get(["itemStyle","decal"])||v&&v!=="none")&&(n=!0)});var o=r[0]||(r[0]={});return i||(o.color=e.slice()),!n&&a&&(o.decal=a.slice()),r}}var vn=8,cr=8,rt=5,hn=(function(){function r(t){this.group=new l.Group,t.add(this.group)}return r.prototype.render=function(t,e,a,i){var n=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!n.get("show")||!a)){var s=n.getModel("itemStyle"),u=n.getModel("emphasis"),c=s.getModel("textStyle"),v=u.getModel(["itemStyle","textStyle"]),h={pos:{left:n.get("left"),right:n.get("right"),top:n.get("top"),bottom:n.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:n.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(a,h,c),this._renderContent(t,h,s,u,c,v,i),l.positionElement(o,h.pos,h.box)}},r.prototype._prepare=function(t,e,a){for(var i=t;i;i=i.parentNode){var n=l.convertOptionIdName(i.getModel().get("name"),""),o=a.getTextRect(n),s=Math.max(o.width+vn*2,e.emptyItemWidth);e.totalWidth+=s+cr,e.renderList.push({node:i,text:n,width:s})}},r.prototype._renderContent=function(t,e,a,i,n,o,s){for(var u=0,c=e.emptyItemWidth,v=t.get(["breadcrumb","height"]),h=l.getAvailableSize(e.pos,e.box),f=e.totalWidth,p=e.renderList,g=i.getModel("itemStyle").getItemStyle(),d=p.length-1;d>=0;d--){var y=p[d],x=y.node,m=y.width,S=y.text;f>h.width&&(f-=m-c,m=c,S=null);var _=new l.Polygon({shape:{points:fn(u,0,m,v,d===p.length-1,d===0)},style:l.defaults(a.getItemStyle(),{lineJoin:"bevel"}),textContent:new l.ZRText({style:l.createTextStyle(n,{text:S})}),textConfig:{position:"inside"},z2:l.Z2_EMPHASIS_LIFT*1e4,onclick:l.curry(s,x)});_.disableLabelAnimation=!0,_.getTextContent().ensureState("emphasis").style=l.createTextStyle(o,{text:S}),_.ensureState("emphasis").style=g,l.toggleHoverEmphasis(_,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(_),pn(_,t,x),u+=m+cr}},r.prototype.remove=function(){this.group.removeAll()},r})();function fn(r,t,e,a,i,n){var o=[[i?r:r-rt,t],[r+e,t],[r+e,t+a],[i?r:r-rt,t+a]];return!n&&o.splice(2,0,[r+e+rt,t+a/2]),!i&&o.push([r,t+a/2]),o}function pn(r,t,e){l.getECData(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:e&&e.dataIndex,name:e&&e.name},treePathInfo:e&&Xe(e,t)}}var dn=(function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(t,e,a,i,n){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:a,delay:i,easing:n}),!0)},r.prototype.finished=function(t){return this._finishedCallback=t,this},r.prototype.start=function(){for(var t=this,e=this._storage.length,a=function(){e--,e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},i=0,n=this._storage.length;i<n;i++){var o=this._storage[i];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:a,aborted:a})}return this},r})();function gn(){return new dn}var bt=l.Group,vr=l.Rect,hr=3,fr="label",pr="upperLabel",yn=l.Z2_EMPHASIS_LIFT*10,mn=l.Z2_EMPHASIS_LIFT*2,xn=l.Z2_EMPHASIS_LIFT*3,ve=l.makeStyleMapper([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),dr=function(r){var t=ve(r);return t.stroke=t.fill=t.lineWidth=null,t},$e=l.makeInner(),Sn=(function(r){l.__extends(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._state="ready",e._storage=be(),e}return t.prototype.render=function(e,a,i,n){var o=a.findComponents({mainType:"series",subType:"treemap",query:n});if(!(l.indexOf(o,e)<0)){this.seriesModel=e,this.api=i,this.ecModel=a;var s=["treemapZoomToNode","treemapRootToNode"],u=Ee(n,s,e),c=n&&n.type,v=e.layoutInfo,h=!this._oldTree,f=this._storage,p=c==="treemapRootToNode"&&u&&f?{rootNodeGroup:f.nodeGroup[u.node.getRawIndex()],direction:n.direction}:null,g=this._giveContainerGroup(v),d=e.get("animation"),y=this._doRender(g,e,p);d&&!h&&(!c||c==="treemapZoomToNode"||c==="treemapRootToNode")?this._doAnimation(g,y,e,p):y.renderFinally(),this._resetController(i),this._renderBreadcrumb(e,i,u)}},t.prototype._giveContainerGroup=function(e){var a=this._containerGroup;return a||(a=this._containerGroup=new bt,this._initEvents(a),this.group.add(a)),a.x=e.x,a.y=e.y,a},t.prototype._doRender=function(e,a,i){var n=a.getData().tree,o=this._oldTree,s=be(),u=be(),c=this._storage,v=[];function h(m,S,_,w){return _n(a,u,c,i,s,v,m,S,_,w)}d(n.root?[n.root]:[],o&&o.root?[o.root]:[],e,n===o||!o,0);var f=y(c);if(this._oldTree=n,this._storage=u,this._controllerHost){var p=this.seriesModel.layoutInfo,g=n.root.getLayout();g.width===p.width&&g.height===p.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:s,willDeleteEls:f,renderFinally:x};function d(m,S,_,w,A){w?(S=m,l.each(m,function(P,D){!P.isRemoved()&&T(D,D)})):new I.DataDiffer(S,m,b,b).add(T).update(T).remove(l.curry(T,null)).execute();function b(P){return P.getId()}function T(P,D){var E=P!=null?m[P]:null,C=D!=null?S[D]:null,L=h(E,C,_,A);L&&d(E&&E.viewChildren||[],C&&C.viewChildren||[],L,w,A+1)}}function y(m){var S=be();return m&&l.each(m,function(_,w){var A=S[w];l.each(_,function(b){b&&(A.push(b),$e(b).willDelete=!0)})}),S}function x(){l.each(f,function(m){l.each(m,function(S){S.parent&&S.parent.remove(S)})}),l.each(v,function(m){m.invisible=!0,m.dirty()})}},t.prototype._doAnimation=function(e,a,i,n){var o=i.get("animationDurationUpdate"),s=i.get("animationEasing"),u=(l.isFunction(o)?0:o)||0,c=(l.isFunction(s)?null:s)||"cubicOut",v=gn();l.each(a.willDeleteEls,function(h,f){l.each(h,function(p,g){if(!p.invisible){var d=p.parent,y,x=$e(d);if(n&&n.direction==="drillDown")y=d===n.rootNodeGroup?{shape:{x:0,y:0,width:x.nodeWidth,height:x.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var m=0,S=0;x.willDelete||(m=x.nodeWidth/2,S=x.nodeHeight/2),y=f==="nodeGroup"?{x:m,y:S,style:{opacity:0}}:{shape:{x:m,y:S,width:0,height:0},style:{opacity:0}}}y&&v.add(p,y,u,0,c)}})}),l.each(this._storage,function(h,f){l.each(h,function(p,g){var d=a.lastsForAnimation[f][g],y={};d&&(p instanceof l.Group?d.oldX!=null&&(y.x=p.x,y.y=p.y,p.x=d.oldX,p.y=d.oldY):(d.oldShape&&(y.shape=l.extend({},p.shape),p.setShape(d.oldShape)),d.fadein?(p.setStyle("opacity",0),y.style={opacity:1}):p.style.opacity!==1&&(y.style={opacity:1})),v.add(p,y,u,0,c))})},this),this._state="animating",v.finished(l.bind(function(){this._state="ready",a.renderFinally()},this)).start()},t.prototype._resetController=function(e){var a=this._controller,i=this._controllerHost;i||(this._controllerHost={target:this.group},i=this._controllerHost),a||(a=this._controller=new Vt.RoamController(e.getZr()),a.enable(this.seriesModel.get("roam")),i.zoomLimit=this.seriesModel.get("scaleLimit"),i.zoom=this.seriesModel.get("zoom"),a.on("pan",l.bind(this._onPan,this)),a.on("zoom",l.bind(this._onZoom,this)));var n=new l.BoundingRect(0,0,e.getWidth(),e.getHeight());a.setPointerChecker(function(o,s,u){return n.contain(s,u)})},t.prototype._clearController=function(){var e=this._controller;this._controllerHost=null,e&&(e.dispose(),e=null)},t.prototype._onPan=function(e){if(this._state!=="animating"&&(Math.abs(e.dx)>hr||Math.abs(e.dy)>hr)){var a=this.seriesModel.getData().tree.root;if(!a)return;var i=a.getLayout();if(!i)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+e.dx,y:i.y+e.dy,width:i.width,height:i.height}})}},t.prototype._onZoom=function(e){var a=e.originX,i=e.originY,n=e.scale;if(this._state!=="animating"){var o=this.seriesModel.getData().tree.root;if(!o)return;var s=o.getLayout();if(!s)return;var u=new l.BoundingRect(s.x,s.y,s.width,s.height),c=null,v=this._controllerHost;c=v.zoomLimit;var h=v.zoom=v.zoom||1;if(h*=n,c){var f=c.min||0,p=c.max||1/0;h=Math.max(Math.min(p,h),f)}var g=h/v.zoom;v.zoom=h;var d=this.seriesModel.layoutInfo;a-=d.x,i-=d.y;var y=l.create();l.translate(y,y,[-a,-i]),l.scale(y,y,[g,g]),l.translate(y,y,[a,i]),u.applyTransform(y),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}})}},t.prototype._initEvents=function(e){var a=this;e.on("click",function(i){if(a._state==="ready"){var n=a.seriesModel.get("nodeClick",!0);if(n){var o=a.findTarget(i.offsetX,i.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)a._rootToNode(o);else if(n==="zoomToNode")a._zoomToNode(o);else if(n==="link"){var u=s.hostTree.data.getItemModel(s.dataIndex),c=u.get("link",!0),v=u.get("target",!0)||"blank";c&&l.windowOpen(c,v)}}}}},this)},t.prototype._renderBreadcrumb=function(e,a,i){var n=this;i||(i=e.get("leafDepth",!0)!=null?{node:e.getViewRoot()}:this.findTarget(a.getWidth()/2,a.getHeight()/2),i||(i={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new hn(this.group))).render(e,a,i.node,function(o){n._state!=="animating"&&(Bt(e.getViewRoot(),o)?n._rootToNode({node:o}):n._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=be(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,a){var i,n=this.seriesModel.getViewRoot();return n.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var u=s.transformCoordToLocal(e,a),c=s.shape;if(c.x<=u[0]&&u[0]<=c.x+c.width&&c.y<=u[1]&&u[1]<=c.y+c.height)i={node:o,offsetX:u[0],offsetY:u[1]};else return!1}},this),i},t.type="treemap",t})(l.ChartView);function be(){return{nodeGroup:[],background:[],content:[]}}function _n(r,t,e,a,i,n,o,s,u,c){if(!o)return;var v=o.getLayout(),h=r.getData(),f=o.getModel();if(h.setItemGraphicEl(o.dataIndex,null),!v||!v.isInView)return;var p=v.width,g=v.height,d=v.borderWidth,y=v.invisible,x=o.getRawIndex(),m=s&&s.getRawIndex(),S=o.viewChildren,_=v.upperHeight,w=S&&S.length,A=f.getModel("itemStyle"),b=f.getModel(["emphasis","itemStyle"]),T=f.getModel(["blur","itemStyle"]),P=f.getModel(["select","itemStyle"]),D=A.get("borderRadius")||0,E=ie("nodeGroup",bt);if(!E)return;if(u.add(E),E.x=v.x||0,E.y=v.y||0,E.markRedraw(),$e(E).nodeWidth=p,$e(E).nodeHeight=g,v.isAboveViewRoot)return E;var C=ie("background",vr,c,mn);C&&$(E,C,w&&v.upperLabelHeight);var L=f.getModel("emphasis"),R=L.get("focus"),O=L.get("blurScope"),k=L.get("disabled"),M=R==="ancestor"?o.getAncestorsIndices():R==="descendant"?o.getDescendantIndices():R;if(w)l.isHighDownDispatcher(E)&&l.setAsHighDownDispatcher(E,!1),C&&(l.setAsHighDownDispatcher(C,!k),h.setItemGraphicEl(o.dataIndex,C),l.enableHoverFocus(C,M,O));else{var V=ie("content",vr,c,xn);V&&Z(E,V),C.disableMorphing=!0,C&&l.isHighDownDispatcher(C)&&l.setAsHighDownDispatcher(C,!1),l.setAsHighDownDispatcher(E,!k),h.setItemGraphicEl(o.dataIndex,E);var G=f.getShallow("cursor");G&&V.attr("cursor",G),l.enableHoverFocus(E,M,O)}return E;function $(z,N,W){var B=l.getECData(N);if(B.dataIndex=o.dataIndex,B.seriesIndex=r.seriesIndex,N.setShape({x:0,y:0,width:p,height:g,r:D}),y)Y(N);else{N.invisible=!1;var F=o.getVisual("style"),q=F.stroke,K=dr(A);K.fill=q;var H=ve(b);H.fill=b.get("borderColor");var X=ve(T);X.fill=T.get("borderColor");var ee=ve(P);if(ee.fill=P.get("borderColor"),W){var re=p-2*d;te(N,q,F.opacity,{x:d,y:0,width:re,height:_})}else N.removeTextContent();N.setStyle(K),N.ensureState("emphasis").style=H,N.ensureState("blur").style=X,N.ensureState("select").style=ee,l.setDefaultStateProxy(N)}z.add(N)}function Z(z,N){var W=l.getECData(N);W.dataIndex=o.dataIndex,W.seriesIndex=r.seriesIndex;var B=Math.max(p-2*d,0),F=Math.max(g-2*d,0);if(N.culling=!0,N.setShape({x:d,y:d,width:B,height:F,r:D}),y)Y(N);else{N.invisible=!1;var q=o.getVisual("style"),K=q.fill,H=dr(A);H.fill=K,H.decal=q.decal;var X=ve(b),ee=ve(T),re=ve(P);te(N,K,q.opacity,null),N.setStyle(H),N.ensureState("emphasis").style=X,N.ensureState("blur").style=ee,N.ensureState("select").style=re,l.setDefaultStateProxy(N)}z.add(N)}function Y(z){!z.invisible&&n.push(z)}function te(z,N,W,B){var F=f.getModel(B?pr:fr),q=l.convertOptionIdName(f.get("name"),null),K=F.getShallow("show");l.setLabelStyle(z,l.getLabelStatesModels(f,B?pr:fr),{defaultText:K?q:null,inheritColor:N,defaultOpacity:W,labelFetcher:r,labelDataIndex:o.dataIndex});var H=z.getTextContent();if(H){var X=H.style,ee=l.normalizeCssArray$1(X.padding||0);B&&(z.setTextConfig({layoutRect:B}),H.disableLabelLayout=!0),H.beforeUpdate=function(){var ue=Math.max((B?B.width:z.shape.width)-ee[1]-ee[3],0),we=Math.max((B?B.height:z.shape.height)-ee[0]-ee[2],0);(X.width!==ue||X.height!==we)&&H.setStyle({width:ue,height:we})},X.truncateMinChar=2,X.lineOverflow="truncate",Q(X,B,v);var re=H.getState("emphasis");Q(re?re.style:null,B,v)}}function Q(z,N,W){var B=z?z.text:null;if(!N&&W.isLeafRoot&&B!=null){var F=r.get("drillDownIcon",!0);z.text=F?F+" "+B:B}}function ie(z,N,W,B){var F=m!=null&&e[z][m],q=i[z];return F?(e[z][m]=null,se(q,F)):y||(F=new N,F instanceof l.Displayable&&(F.z2=wn(W,B)),le(q,F)),t[z][x]=F}function se(z,N){var W=z[x]={};N instanceof bt?(W.oldX=N.x,W.oldY=N.y):W.oldShape=l.extend({},N.shape)}function le(z,N){var W=z[x]={},B=o.parentNode,F=N instanceof l.Group;if(B&&(!a||a.direction==="drillDown")){var q=0,K=0,H=i.background[B.getRawIndex()];!a&&H&&H.oldShape&&(q=H.oldShape.width,K=H.oldShape.height),F?(W.oldX=0,W.oldY=K):W.oldShape={x:q,y:K,width:0,height:0}}W.fadein=!F}}function wn(r,t){return r*yn+t}var An="itemStyle",Sa=l.makeInner();const bn={seriesType:"treemap",reset:function(r){var t=r.getData().tree,e=t.root;e.isRemoved()||_a(e,{},r.getViewRoot().getAncestors(),r)}};function _a(r,t,e,a){var i=r.getModel(),n=r.getLayout(),o=r.hostTree.data;if(!(!n||n.invisible||!n.isInView)){var s=i.getModel(An),u=Dn(s,t,a),c=o.ensureUniqueItemVisual(r.dataIndex,"style"),v=s.get("borderColor"),h=s.get("borderColorSaturation"),f;h!=null&&(f=gr(u),v=In(h,f)),c.stroke=v;var p=r.viewChildren;if(!p||!p.length)f=gr(u),c.fill=f;else{var g=Tn(r,i,n,s,u,p);l.each(p,function(d,y){if(d.depth>=e.length||d===e[d.depth]){var x=Ln(i,u,d,y,g,a);_a(d,x,e,a)}})}}}function Dn(r,t,e){var a=l.extend({},t),i=e.designatedVisualItemStyle;return l.each(["color","colorAlpha","colorSaturation"],function(n){i[n]=t[n];var o=r.get(n);i[n]=null,o!=null&&(a[n]=o)}),a}function gr(r){var t=at(r,"color");if(t){var e=at(r,"colorAlpha"),a=at(r,"colorSaturation");return a&&(t=l.modifyHSL(t,null,null,a)),e&&(t=l.modifyAlpha(t,e)),t}}function In(r,t){return t!=null?l.modifyHSL(t,null,null,r):null}function at(r,t){var e=r[t];if(e!=null&&e!=="none")return e}function Tn(r,t,e,a,i,n){if(!(!n||!n.length)){var o=it(t,"color")||i.color!=null&&i.color!=="none"&&(it(t,"colorAlpha")||it(t,"colorSaturation"));if(o){var s=t.get("visualMin"),u=t.get("visualMax"),c=e.dataExtent.slice();s!=null&&s<c[0]&&(c[0]=s),u!=null&&u>c[1]&&(c[1]=u);var v=t.get("colorMappingBy"),h={type:o.name,dataExtent:c,visual:o.range};h.type==="color"&&(v==="index"||v==="id")?(h.mappingMethod="category",h.loop=!0):h.mappingMethod="linear";var f=new di.VisualMapping(h);return Sa(f).drColorMappingBy=v,f}}}function it(r,t){var e=r.get(t);return l.isArray(e)&&e.length?{name:t,range:e}:null}function Ln(r,t,e,a,i,n){var o=l.extend({},t);if(i){var s=i.type,u=s==="color"&&Sa(i).drColorMappingBy,c=u==="index"?a:u==="id"?n.mapIdToIndex(e.getId()):e.getValue(r.get("visualDimension"));o[s]=i.mapValueToVisual(c)}return o}var Ne=Math.max,Ue=Math.min,yr=l.retrieve,Gt=l.each,wa=["itemStyle","borderWidth"],Pn=["itemStyle","gapWidth"],Cn=["upperLabel","show"],En=["upperLabel","height"];const Nn={seriesType:"treemap",reset:function(r,t,e,a){var i=e.getWidth(),n=e.getHeight(),o=r.option,s=l.getLayoutRect(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),u=o.size||[],c=l.parsePercent(yr(s.width,u[0]),i),v=l.parsePercent(yr(s.height,u[1]),n),h=a&&a.type,f=["treemapZoomToNode","treemapRootToNode"],p=Ee(a,f,r),g=h==="treemapRender"||h==="treemapMove"?a.rootRect:null,d=r.getViewRoot(),y=ya(d);if(h!=="treemapMove"){var x=h==="treemapZoomToNode"?On(r,p,d,c,v):g?[g.width,g.height]:[c,v],m=o.sort;m&&m!=="asc"&&m!=="desc"&&(m="desc");var S={squareRatio:o.squareRatio,sort:m,leafDepth:o.leafDepth};d.hostTree.clearLayouts();var _={x:0,y:0,width:x[0],height:x[1],area:x[0]*x[1]};d.setLayout(_),Aa(d,S,!1,0),_=d.getLayout(),Gt(y,function(A,b){var T=(y[b+1]||d).getValue();A.setLayout(l.extend({dataExtent:[T,T],borderWidth:0,upperHeight:0},_))})}var w=r.getData().tree.root;w.setLayout(Bn(s,g,p),!0),r.setLayoutInfo(s),ba(w,new l.BoundingRect(-s.x,-s.y,i,n),y,d,0)}};function Aa(r,t,e,a){var i,n;if(!r.isRemoved()){var o=r.getLayout();i=o.width,n=o.height;var s=r.getModel(),u=s.get(wa),c=s.get(Pn)/2,v=Da(s),h=Math.max(u,v),f=u-c,p=h-c;r.setLayout({borderWidth:u,upperHeight:h,upperLabelHeight:v},!0),i=Ne(i-2*f,0),n=Ne(n-f-p,0);var g=i*n,d=Rn(r,s,g,t,e,a);if(d.length){var y={x:f,y:p,width:i,height:n},x=Ue(i,n),m=1/0,S=[];S.area=0;for(var _=0,w=d.length;_<w;){var A=d[_];S.push(A),S.area+=A.getLayout().area;var b=zn(S,x,t.squareRatio);b<=m?(_++,m=b):(S.area-=S.pop().getLayout().area,mr(S,x,y,c,!1),x=Ue(y.width,y.height),S.length=S.area=0,m=1/0)}if(S.length&&mr(S,x,y,c,!0),!e){var T=s.get("childrenVisibleMin");T!=null&&g<T&&(e=!0)}for(var _=0,w=d.length;_<w;_++)Aa(d[_],t,e,a+1)}}}function Rn(r,t,e,a,i,n){var o=r.children||[],s=a.sort;s!=="asc"&&s!=="desc"&&(s=null);var u=a.leafDepth!=null&&a.leafDepth<=n;if(i&&!u)return r.viewChildren=[];o=l.filter(o,function(p){return!p.isRemoved()}),Vn(o,s);var c=kn(t,o,s);if(c.sum===0)return r.viewChildren=[];if(c.sum=Mn(t,e,c.sum,s,o),c.sum===0)return r.viewChildren=[];for(var v=0,h=o.length;v<h;v++){var f=o[v].getValue()/c.sum*e;o[v].setLayout({area:f})}return u&&(o.length&&r.setLayout({isLeafRoot:!0},!0),o.length=0),r.viewChildren=o,r.setLayout({dataExtent:c.dataExtent},!0),o}function Mn(r,t,e,a,i){if(!a)return e;for(var n=r.get("visibleMin"),o=i.length,s=o,u=o-1;u>=0;u--){var c=i[a==="asc"?o-u-1:u].getValue();c/e*t<n&&(s=u,e-=c)}return a==="asc"?i.splice(0,o-s):i.splice(s,o-s),e}function Vn(r,t){return t&&r.sort(function(e,a){var i=t==="asc"?e.getValue()-a.getValue():a.getValue()-e.getValue();return i===0?t==="asc"?e.dataIndex-a.dataIndex:a.dataIndex-e.dataIndex:i}),r}function kn(r,t,e){for(var a=0,i=0,n=t.length;i<n;i++)a+=t[i].getValue();var o=r.get("visualDimension"),s;return!t||!t.length?s=[NaN,NaN]:o==="value"&&e?(s=[t[t.length-1].getValue(),t[0].getValue()],e==="asc"&&s.reverse()):(s=[1/0,-1/0],Gt(t,function(u){var c=u.getValue(o);c<s[0]&&(s[0]=c),c>s[1]&&(s[1]=c)})),{sum:a,dataExtent:s}}function zn(r,t,e){for(var a=0,i=1/0,n=0,o=void 0,s=r.length;n<s;n++)o=r[n].getLayout().area,o&&(o<i&&(i=o),o>a&&(a=o));var u=r.area*r.area,c=t*t*e;return u?Ne(c*a/u,u/(c*i)):1/0}function mr(r,t,e,a,i){var n=t===e.width?0:1,o=1-n,s=["x","y"],u=["width","height"],c=e[s[n]],v=t?r.area/t:0;(i||v>e[u[o]])&&(v=e[u[o]]);for(var h=0,f=r.length;h<f;h++){var p=r[h],g={},d=v?p.getLayout().area/v:0,y=g[u[o]]=Ne(v-2*a,0),x=e[s[n]]+e[u[n]]-c,m=h===f-1||x<d?x:d,S=g[u[n]]=Ne(m-2*a,0);g[s[o]]=e[s[o]]+Ue(a,y/2),g[s[n]]=c+Ue(a,S/2),c+=m,p.setLayout(g,!0)}e[s[o]]+=v,e[u[o]]-=v}function On(r,t,e,a,i){var n=(t||{}).node,o=[a,i];if(!n||n===e)return o;for(var s,u=a*i,c=u*r.option.zoomToNodeRatio;s=n.parentNode;){for(var v=0,h=s.children,f=0,p=h.length;f<p;f++)v+=h[f].getValue();var g=n.getValue();if(g===0)return o;c*=v/g;var d=s.getModel(),y=d.get(wa),x=Math.max(y,Da(d));c+=4*y*y+(3*y+x)*Math.pow(c,.5),c>l.MAX_SAFE_INTEGER&&(c=l.MAX_SAFE_INTEGER),n=s}c<u&&(c=u);var m=Math.pow(c/u,.5);return[a*m,i*m]}function Bn(r,t,e){if(t)return{x:t.x,y:t.y};var a={x:0,y:0};if(!e)return a;var i=e.node,n=i.getLayout();if(!n)return a;for(var o=[n.width/2,n.height/2],s=i;s;){var u=s.getLayout();o[0]+=u.x,o[1]+=u.y,s=s.parentNode}return{x:r.width/2-o[0],y:r.height/2-o[1]}}function ba(r,t,e,a,i){var n=r.getLayout(),o=e[i],s=o&&o===r;if(!(o&&!s||i===e.length&&r!==a)){r.setLayout({isInView:!0,invisible:!s&&!t.intersect(n),isAboveViewRoot:s},!0);var u=new l.BoundingRect(t.x-n.x,t.y-n.y,t.width,t.height);Gt(r.viewChildren||[],function(c){ba(c,u,e,a,i+1)})}}function Da(r){return r.get(Cn)?r.get(En):0}function Gn(r){r.registerSeriesModel(un),r.registerChartView(Sn),r.registerVisual(bn),r.registerLayout(Nn),ln(r)}function Wn(r){var t=r.findComponents({mainType:"legend"});!t||!t.length||r.eachSeriesByType("graph",function(e){var a=e.getCategoriesData(),i=e.getGraph(),n=i.data,o=a.mapArray(a.getName);n.filterSelf(function(s){var u=n.getItemModel(s),c=u.getShallow("category");if(c!=null){l.isNumber(c)&&(c=o[c]);for(var v=0;v<t.length;v++)if(!t[v].isSelected(c))return!1}return!0})})}function Fn(r){var t={};r.eachSeriesByType("graph",function(e){var a=e.getCategoriesData(),i=e.getData(),n={};a.each(function(o){var s=a.getName(o);n["ec-"+s]=o;var u=a.getItemModel(o),c=u.getModel("itemStyle").getItemStyle();c.fill||(c.fill=e.getColorFromPalette(s,t)),a.setItemVisual(o,"style",c);for(var v=["symbol","symbolSize","symbolKeepAspect"],h=0;h<v.length;h++){var f=u.getShallow(v[h],!0);f!=null&&a.setItemVisual(o,v[h],f)}}),a.count()&&i.each(function(o){var s=i.getItemModel(o),u=s.getShallow("category");if(u!=null){l.isString(u)&&(u=n["ec-"+u]);var c=a.getItemVisual(u,"style"),v=i.ensureUniqueItemVisual(o,"style");l.extend(v,c);for(var h=["symbol","symbolSize","symbolKeepAspect"],f=0;f<h.length;f++)i.setItemVisual(o,h[f],a.getItemVisual(u,h[f]))}})})}function Oe(r){return r instanceof Array||(r=[r,r]),r}function Hn(r){r.eachSeriesByType("graph",function(t){var e=t.getGraph(),a=t.getEdgeData(),i=Oe(t.get("edgeSymbol")),n=Oe(t.get("edgeSymbolSize"));a.setVisual("fromSymbol",i&&i[0]),a.setVisual("toSymbol",i&&i[1]),a.setVisual("fromSymbolSize",n&&n[0]),a.setVisual("toSymbolSize",n&&n[1]),a.setVisual("style",t.getModel("lineStyle").getLineStyle()),a.each(function(o){var s=a.getItemModel(o),u=e.getEdgeByIndex(o),c=Oe(s.getShallow("symbol",!0)),v=Oe(s.getShallow("symbolSize",!0)),h=s.getModel("lineStyle").getLineStyle(),f=a.ensureUniqueItemVisual(o,"style");switch(l.extend(f,h),f.stroke){case"source":{var p=u.node1.getVisual("style");f.stroke=p&&p.fill;break}case"target":{var p=u.node2.getVisual("style");f.stroke=p&&p.fill;break}}c[0]&&u.setVisual("fromSymbol",c[0]),c[1]&&u.setVisual("toSymbol",c[1]),v[0]&&u.setVisual("fromSymbolSize",v[0]),v[1]&&u.setVisual("toSymbolSize",v[1])})})}var Dt="-->",Ke=function(r){return r.get("autoCurveness")||null},Ia=function(r,t){var e=Ke(r),a=20,i=[];if(l.isNumber(e))a=e;else if(l.isArray(e)){r.__curvenessList=e;return}t>a&&(a=t);var n=a%2?a+2:a+3;i=[];for(var o=0;o<n;o++)i.push((o%2?o+1:o)/10*(o%2?-1:1));r.__curvenessList=i},Re=function(r,t,e){var a=[r.id,r.dataIndex].join("."),i=[t.id,t.dataIndex].join(".");return[e.uid,a,i].join(Dt)},Ta=function(r){var t=r.split(Dt);return[t[0],t[2],t[1]].join(Dt)},$n=function(r,t){var e=Re(r.node1,r.node2,t);return t.__edgeMap[e]},Un=function(r,t){var e=It(Re(r.node1,r.node2,t),t),a=It(Re(r.node2,r.node1,t),t);return e+a},It=function(r,t){var e=t.__edgeMap;return e[r]?e[r].length:0};function qn(r){Ke(r)&&(r.__curvenessList=[],r.__edgeMap={},Ia(r))}function Yn(r,t,e,a){if(Ke(e)){var i=Re(r,t,e),n=e.__edgeMap,o=n[Ta(i)];n[i]&&!o?n[i].isForward=!0:o&&n[i]&&(o.isForward=!0,n[i].isForward=!1),n[i]=n[i]||[],n[i].push(a)}}function Wt(r,t,e,a){var i=Ke(t),n=l.isArray(i);if(!i)return null;var o=$n(r,t);if(!o)return null;for(var s=-1,u=0;u<o.length;u++)if(o[u]===e){s=u;break}var c=Un(r,t);Ia(t,c),r.lineStyle=r.lineStyle||{};var v=Re(r.node1,r.node2,t),h=t.__curvenessList,f=n||c%2?0:1;if(o.isForward)return h[f+s];var p=Ta(v),g=It(p,t),d=h[s+g+f];return a?n?i&&i[0]===0?(g+f)%2?d:-d:((g%2?0:1)+f)%2?d:-d:(g+f)%2?d:-d:h[s+g+f]}function La(r){var t=r.coordinateSystem;if(!(t&&t.type!=="view")){var e=r.getGraph();e.eachNode(function(a){var i=a.getModel();a.setLayout([+i.get("x"),+i.get("y")])}),Ft(e,r)}}function Ft(r,t){r.eachEdge(function(e,a){var i=l.retrieve3(e.getModel().get(["lineStyle","curveness"]),-Wt(e,t,a,!0),0),n=l.clone$1(e.node1.getLayout()),o=l.clone$1(e.node2.getLayout()),s=[n,o];+i&&s.push([(n[0]+o[0])/2-(n[1]-o[1])*i,(n[1]+o[1])/2-(o[0]-n[0])*i]),e.setLayout(s)})}function Zn(r,t){r.eachSeriesByType("graph",function(e){var a=e.get("layout"),i=e.coordinateSystem;if(i&&i.type!=="view"){var n=e.getData(),o=[];l.each(i.dimensions,function(f){o=o.concat(n.mapDimensionsAll(f))});for(var s=0;s<n.count();s++){for(var u=[],c=!1,v=0;v<o.length;v++){var h=n.get(o[v],s);isNaN(h)||(c=!0),u.push(h)}c?n.setItemLayout(s,i.dataToPoint(u)):n.setItemLayout(s,[NaN,NaN])}Ft(n.graph,e)}else(!a||a==="none")&&La(e)})}function Ie(r){var t=r.coordinateSystem;if(t.type!=="view")return 1;var e=r.option.nodeScaleRatio,a=t.scaleX,i=t.getZoom(),n=(i-1)*e+1;return n/a}function Te(r){var t=r.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var xr=Math.PI,nt=[];function Ht(r,t,e,a){var i=r.coordinateSystem;if(!(i&&i.type!=="view")){var n=i.getBoundingRect(),o=r.getData(),s=o.graph,u=n.width/2+n.x,c=n.height/2+n.y,v=Math.min(n.width,n.height)/2,h=o.count();if(o.setLayout({cx:u,cy:c}),!!h){if(e){var f=i.pointToData(a),p=f[0],g=f[1],d=[p-u,g-c];l.normalize(d,d),l.scale$1(d,d,v),e.setLayout([u+d[0],c+d[1]],!0);var y=r.get(["circular","rotateLabel"]);Pa(e,y,u,c)}Xn[t](r,s,o,v,u,c,h),s.eachEdge(function(x,m){var S=l.retrieve3(x.getModel().get(["lineStyle","curveness"]),Wt(x,r,m),0),_=l.clone$1(x.node1.getLayout()),w=l.clone$1(x.node2.getLayout()),A,b=(_[0]+w[0])/2,T=(_[1]+w[1])/2;+S&&(S*=3,A=[u*S+b*(1-S),c*S+T*(1-S)]),x.setLayout([_,w,A])})}}}var Xn={value:function(r,t,e,a,i,n,o){var s=0,u=e.getSum("value"),c=Math.PI*2/(u||o);t.eachNode(function(v){var h=v.getValue("value"),f=c*(u?h:1)/2;s+=f,v.setLayout([a*Math.cos(s)+i,a*Math.sin(s)+n]),s+=f})},symbolSize:function(r,t,e,a,i,n,o){var s=0;nt.length=o;var u=Ie(r);t.eachNode(function(h){var f=Te(h);isNaN(f)&&(f=2),f<0&&(f=0),f*=u;var p=Math.asin(f/2/a);isNaN(p)&&(p=xr/2),nt[h.dataIndex]=p,s+=p*2});var c=(2*xr-s)/o/2,v=0;t.eachNode(function(h){var f=c+nt[h.dataIndex];v+=f,(!h.getLayout()||!h.getLayout().fixed)&&h.setLayout([a*Math.cos(v)+i,a*Math.sin(v)+n]),v+=f})}};function Pa(r,t,e,a){var i=r.getGraphicEl();if(i){var n=r.getModel(),o=n.get(["label","rotate"])||0,s=i.getSymbolPath();if(t){var u=r.getLayout(),c=Math.atan2(u[1]-a,u[0]-e);c<0&&(c=Math.PI*2+c);var v=u[0]<e;v&&(c=c-Math.PI);var h=v?"left":"right";s.setTextConfig({rotation:-c,position:h,origin:"center"});var f=s.ensureState("emphasis");l.extend(f.textConfig||(f.textConfig={}),{position:h})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function Kn(r){r.eachSeriesByType("graph",function(t){t.get("layout")==="circular"&&Ht(t,"symbolSize")})}var ge=l.scaleAndAdd;function jn(r,t,e){for(var a=r,i=t,n=e.rect,o=n.width,s=n.height,u=[n.x+o/2,n.y+s/2],c=e.gravity==null?.1:e.gravity,v=0;v<a.length;v++){var h=a[v];h.p||(h.p=l.create$1(o*(Math.random()-.5)+u[0],s*(Math.random()-.5)+u[1])),h.pp=l.clone$1(h.p),h.edges=null}var f=e.friction==null?.6:e.friction,p=f,g,d;return{warmUp:function(){p=f*.8},setFixed:function(y){a[y].fixed=!0},setUnfixed:function(y){a[y].fixed=!1},beforeStep:function(y){g=y},afterStep:function(y){d=y},step:function(y){g&&g(a,i);for(var x=[],m=a.length,S=0;S<i.length;S++){var _=i[S];if(!_.ignoreForceLayout){var w=_.n1,A=_.n2;l.sub(x,A.p,w.p);var b=l.len(x)-_.d,T=A.w/(w.w+A.w);isNaN(T)&&(T=0),l.normalize(x,x),!w.fixed&&ge(w.p,w.p,x,T*b*p),!A.fixed&&ge(A.p,A.p,x,-(1-T)*b*p)}}for(var S=0;S<m;S++){var P=a[S];P.fixed||(l.sub(x,u,P.p),ge(P.p,P.p,x,c*p))}for(var S=0;S<m;S++)for(var w=a[S],D=S+1;D<m;D++){var A=a[D];l.sub(x,A.p,w.p);var b=l.len(x);b===0&&(l.set(x,Math.random()-.5,Math.random()-.5),b=1);var E=(w.rep+A.rep)/b/b;!w.fixed&&ge(w.pp,w.pp,x,E),!A.fixed&&ge(A.pp,A.pp,x,-E)}for(var C=[],S=0;S<m;S++){var P=a[S];P.fixed||(l.sub(C,P.p,P.pp),ge(P.p,P.p,C,p),l.copy(P.pp,P.p))}p=p*.992;var L=p<.01;d&&d(a,i,L),y&&y(L)}}}function Jn(r){r.eachSeriesByType("graph",function(t){var e=t.coordinateSystem;if(!(e&&e.type!=="view"))if(t.get("layout")==="force"){var a=t.preservedPoints||{},i=t.getGraph(),n=i.data,o=i.edgeData,s=t.getModel("force"),u=s.get("initLayout");t.preservedPoints?n.each(function(S){var _=n.getId(S);n.setItemLayout(S,a[_]||[NaN,NaN])}):!u||u==="none"?La(t):u==="circular"&&Ht(t,"value");var c=n.getDataExtent("value"),v=o.getDataExtent("value"),h=s.get("repulsion"),f=s.get("edgeLength"),p=l.isArray(h)?h:[h,h],g=l.isArray(f)?f:[f,f];g=[g[1],g[0]];var d=n.mapArray("value",function(S,_){var w=n.getItemLayout(_),A=l.linearMap(S,c,p);return isNaN(A)&&(A=(p[0]+p[1])/2),{w:A,rep:A,fixed:n.getItemModel(_).get("fixed"),p:!w||isNaN(w[0])||isNaN(w[1])?null:w}}),y=o.mapArray("value",function(S,_){var w=i.getEdgeByIndex(_),A=l.linearMap(S,v,g);isNaN(A)&&(A=(g[0]+g[1])/2);var b=w.getModel(),T=l.retrieve3(w.getModel().get(["lineStyle","curveness"]),-Wt(w,t,_,!0),0);return{n1:d[w.node1.dataIndex],n2:d[w.node2.dataIndex],d:A,curveness:T,ignoreForceLayout:b.get("ignoreForceLayout")}}),x=e.getBoundingRect(),m=jn(d,y,{rect:x,gravity:s.get("gravity"),friction:s.get("friction")});m.beforeStep(function(S,_){for(var w=0,A=S.length;w<A;w++)S[w].fixed&&l.copy(S[w].p,i.getNodeByIndex(w).getLayout())}),m.afterStep(function(S,_,w){for(var A=0,b=S.length;A<b;A++)S[A].fixed||i.getNodeByIndex(A).setLayout(S[A].p),a[n.getId(A)]=S[A].p;for(var A=0,b=_.length;A<b;A++){var T=_[A],P=i.getEdgeByIndex(A),D=T.n1.p,E=T.n2.p,C=P.getLayout();C=C?C.slice():[],C[0]=C[0]||[],C[1]=C[1]||[],l.copy(C[0],D),l.copy(C[1],E),+T.curveness&&(C[2]=[(D[0]+E[0])/2-(D[1]-E[1])*T.curveness,(D[1]+E[1])/2-(E[0]-D[0])*T.curveness]),P.setLayout(C)}}),t.forceLayout=m,t.preservedPoints=a,m.step()}else t.forceLayout=null})}function Qn(r,t,e){var a=l.extend(r.getBoxLayoutParams(),{aspect:e});return l.getLayoutRect(a,{width:t.getWidth(),height:t.getHeight()})}function eo(r,t){var e=[];return r.eachSeriesByType("graph",function(a){var i=a.get("coordinateSystem");if(!i||i==="view"){var n=a.getData(),o=n.mapArray(function(y){var x=n.getItemModel(y);return[+x.get("x"),+x.get("y")]}),s=[],u=[];l.fromPoints(o,s,u),u[0]-s[0]===0&&(u[0]+=1,s[0]-=1),u[1]-s[1]===0&&(u[1]+=1,s[1]-=1);var c=(u[0]-s[0])/(u[1]-s[1]),v=Qn(a,t,c);isNaN(c)&&(s=[v.x,v.y],u=[v.x+v.width,v.y+v.height]);var h=u[0]-s[0],f=u[1]-s[1],p=v.width,g=v.height,d=a.coordinateSystem=new J.View;d.zoomLimit=a.get("scaleLimit"),d.setBoundingRect(s[0],s[1],h,f),d.setViewRect(v.x,v.y,p,g),d.setCenter(a.get("center"),t),d.setZoom(a.get("zoom")),e.push(d)}}),e}var ot=[],st=[],lt=[],ye=l.quadraticAt,ut=l.distSquare,Sr=Math.abs;function _r(r,t,e){for(var a=r[0],i=r[1],n=r[2],o=1/0,s,u=e*e,c=.1,v=.1;v<=.9;v+=.1){ot[0]=ye(a[0],i[0],n[0],v),ot[1]=ye(a[1],i[1],n[1],v);var h=Sr(ut(ot,t)-u);h<o&&(o=h,s=v)}for(var f=0;f<32;f++){var p=s+c;st[0]=ye(a[0],i[0],n[0],s),st[1]=ye(a[1],i[1],n[1],s),lt[0]=ye(a[0],i[0],n[0],p),lt[1]=ye(a[1],i[1],n[1],p);var h=ut(st,t)-u;if(Sr(h)<.01)break;var g=ut(lt,t)-u;c/=2,h<0?g>=0?s=s+c:s=s-c:g>=0?s=s-c:s=s+c}return s}function ct(r,t){var e=[],a=l.quadraticSubdivide,i=[[],[],[]],n=[[],[]],o=[];t/=2,r.eachEdge(function(s,u){var c=s.getLayout(),v=s.getVisual("fromSymbol"),h=s.getVisual("toSymbol");c.__original||(c.__original=[l.clone$1(c[0]),l.clone$1(c[1])],c[2]&&c.__original.push(l.clone$1(c[2])));var f=c.__original;if(c[2]!=null){if(l.copy(i[0],f[0]),l.copy(i[1],f[2]),l.copy(i[2],f[1]),v&&v!=="none"){var p=Te(s.node1),g=_r(i,f[0],p*t);a(i[0][0],i[1][0],i[2][0],g,e),i[0][0]=e[3],i[1][0]=e[4],a(i[0][1],i[1][1],i[2][1],g,e),i[0][1]=e[3],i[1][1]=e[4]}if(h&&h!=="none"){var p=Te(s.node2),g=_r(i,f[1],p*t);a(i[0][0],i[1][0],i[2][0],g,e),i[1][0]=e[1],i[2][0]=e[2],a(i[0][1],i[1][1],i[2][1],g,e),i[1][1]=e[1],i[2][1]=e[2]}l.copy(c[0],i[0]),l.copy(c[1],i[2]),l.copy(c[2],i[1])}else{if(l.copy(n[0],f[0]),l.copy(n[1],f[1]),l.sub(o,n[1],n[0]),l.normalize(o,o),v&&v!=="none"){var p=Te(s.node1);l.scaleAndAdd(n[0],n[0],o,p*t)}if(h&&h!=="none"){var p=Te(s.node2);l.scaleAndAdd(n[1],n[1],o,-p*t)}l.copy(c[0],n[0]),l.copy(c[1],n[1])}})}function wr(r){return r.type==="view"}var to=(function(r){l.__extends(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){var i=new Mt.SymbolDraw,n=new Ce.LineDraw,o=this.group;this._controller=new Vt.RoamController(a.getZr()),this._controllerHost={target:o},o.add(i.group),o.add(n.group),this._symbolDraw=i,this._lineDraw=n,this._firstRender=!0},t.prototype.render=function(e,a,i){var n=this,o=e.coordinateSystem;this._model=e;var s=this._symbolDraw,u=this._lineDraw,c=this.group;if(wr(o)){var v={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?c.attr(v):l.updateProps(c,v,e)}ct(e.getGraph(),Ie(e));var h=e.getData();s.updateData(h);var f=e.getEdgeData();u.updateData(f),this._updateNodeAndLinkScale(),this._updateController(e,a,i),clearTimeout(this._layoutTimeout);var p=e.forceLayout,g=e.get(["force","layoutAnimation"]);p&&this._startForceLayoutIteration(p,g);var d=e.get("layout");h.graph.eachNode(function(S){var _=S.dataIndex,w=S.getGraphicEl(),A=S.getModel();if(w){w.off("drag").off("dragend");var b=A.get("draggable");b&&w.on("drag",function(P){switch(d){case"force":p.warmUp(),!n._layouting&&n._startForceLayoutIteration(p,g),p.setFixed(_),h.setItemLayout(_,[w.x,w.y]);break;case"circular":h.setItemLayout(_,[w.x,w.y]),S.setLayout({fixed:!0},!0),Ht(e,"symbolSize",S,[P.offsetX,P.offsetY]),n.updateLayout(e);break;default:h.setItemLayout(_,[w.x,w.y]),Ft(e.getGraph(),e),n.updateLayout(e);break}}).on("dragend",function(){p&&p.setUnfixed(_)}),w.setDraggable(b,!!A.get("cursor"));var T=A.get(["emphasis","focus"]);T==="adjacency"&&(l.getECData(w).focus=S.getAdjacentDataIndices())}}),h.graph.eachEdge(function(S){var _=S.getGraphicEl(),w=S.getModel().get(["emphasis","focus"]);_&&w==="adjacency"&&(l.getECData(_).focus={edge:[S.dataIndex],node:[S.node1.dataIndex,S.node2.dataIndex]})});var y=e.get("layout")==="circular"&&e.get(["circular","rotateLabel"]),x=h.getLayout("cx"),m=h.getLayout("cy");h.graph.eachNode(function(S){Pa(S,y,x,m)}),this._firstRender=!1},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,a){var i=this;(function n(){e.step(function(o){i.updateLayout(i._model),(i._layouting=!o)&&(a?i._layoutTimeout=setTimeout(n,16):n())})})()},t.prototype._updateController=function(e,a,i){var n=this,o=this._controller,s=this._controllerHost,u=this.group;if(o.setPointerChecker(function(c,v,h){var f=u.getBoundingRect();return f.applyTransform(u.transform),f.contain(v,h)&&!fa.onIrrelevantElement(c,i,e)}),!wr(e.coordinateSystem)){o.disable();return}o.enable(e.get("roam")),s.zoomLimit=e.get("scaleLimit"),s.zoom=e.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(c){J.updateViewOnPan(s,c.dx,c.dy),i.dispatchAction({seriesId:e.id,type:"graphRoam",dx:c.dx,dy:c.dy})}).on("zoom",function(c){J.updateViewOnZoom(s,c.scale,c.originX,c.originY),i.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:c.scale,originX:c.originX,originY:c.originY}),n._updateNodeAndLinkScale(),ct(e.getGraph(),Ie(e)),n._lineDraw.updateLayout(),i.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,a=e.getData(),i=Ie(e);a.eachItemGraphicEl(function(n,o){n&&n.setSymbolScale(i)})},t.prototype.updateLayout=function(e){ct(e.getGraph(),Ie(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t})(l.ChartView),ro=(function(r){l.__extends(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments);var a=this;function i(){return a._categoriesData}this.legendVisualProvider=new _e.LegendVisualProvider(i,i),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(e){r.prototype.mergeDefaultAndTheme.apply(this,arguments),l.defaultEmphasis(e,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,a){var i=e.edges||e.links||[],n=e.data||e.nodes||[],o=this;if(n&&i){qn(this);var s=kt.createGraphFromNodeEdge(n,i,this,!0,u);return l.each(s.edges,function(c){Yn(c.node1,c.node2,this,c.dataIndex)},this),s.data}function u(c,v){c.wrapMethod("getItemModel",function(g){var d=o._categoriesModels,y=g.getShallow("category"),x=d[y];return x&&(x.parentModel=g.parentModel,g.parentModel=x),g});var h=l.Model.prototype.getModel;function f(g,d){var y=h.call(this,g,d);return y.resolveParentPath=p,y}v.wrapMethod("getItemModel",function(g){return g.resolveParentPath=p,g.getModel=f,g});function p(g){if(g&&(g[0]==="label"||g[1]==="label")){var d=g.slice();return g[0]==="label"?d[0]="edgeLabel":g[1]==="label"&&(d[1]="edgeLabel"),d}return g}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,a,i){if(i==="edge"){var n=this.getData(),o=this.getDataParams(e,i),s=n.graph.getEdgeByIndex(e),u=n.getName(s.node1.dataIndex),c=n.getName(s.node2.dataIndex),v=[];return u!=null&&v.push(u),c!=null&&v.push(c),l.createTooltipMarkup("nameValue",{name:v.join(" > "),value:o.value,noValue:o.value==null})}var h=l.defaultSeriesFormatTooltip({series:this,dataIndex:e,multipleSeries:a});return h},t.prototype._updateCategoriesData=function(){var e=l.map(this.option.categories||[],function(i){return i.value!=null?i:l.extend({value:0},i)}),a=new I.SeriesData(["value"],this);a.initData(e),this._categoriesData=a,this._categoriesModels=a.mapArray(function(i){return a.getItemModel(i)})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t})(l.SeriesModel),ao={type:"graphRoam",event:"graphRoam",update:"none"};function io(r){r.registerChartView(to),r.registerSeriesModel(ro),r.registerProcessor(Wn),r.registerVisual(Fn),r.registerVisual(Hn),r.registerLayout(Zn),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,Kn),r.registerLayout(Jn),r.registerCoordinateSystem("graphView",{dimensions:J.View.dimensions,create:eo}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},l.noop),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},l.noop),r.registerAction(ao,function(t,e,a){e.eachComponent({mainType:"series",query:t},function(i){var n=i.coordinateSystem,o=J.updateCenterAndZoom(n,t,void 0,a);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}var no=["itemStyle","opacity"],oo=(function(r){l.__extends(t,r);function t(e,a){var i=r.call(this)||this,n=i,o=new l.Polyline,s=new l.ZRText;return n.setTextContent(s),i.setTextGuideLine(o),i.updateData(e,a,!0),i}return t.prototype.updateData=function(e,a,i){var n=this,o=e.hostModel,s=e.getItemModel(a),u=e.getItemLayout(a),c=s.getModel("emphasis"),v=s.get(no);v=v==null?1:v,i||l.saveOldStyle(n),n.useStyle(e.getItemVisual(a,"style")),n.style.lineJoin="round",i?(n.setShape({points:u.points}),n.style.opacity=0,l.initProps(n,{style:{opacity:v}},o,a)):l.updateProps(n,{style:{opacity:v},shape:{points:u.points}},o,a),l.setStatesStylesFromModel(n,s),this._updateLabel(e,a),l.toggleHoverEmphasis(this,c.get("focus"),c.get("blurScope"),c.get("disabled"))},t.prototype._updateLabel=function(e,a){var i=this,n=this.getTextGuideLine(),o=i.getTextContent(),s=e.hostModel,u=e.getItemModel(a),c=e.getItemLayout(a),v=c.label,h=e.getItemVisual(a,"style"),f=h.fill;l.setLabelStyle(o,l.getLabelStatesModels(u),{labelFetcher:e.hostModel,labelDataIndex:a,defaultOpacity:h.opacity,defaultText:e.getName(a)},{normal:{align:v.textAlign,verticalAlign:v.verticalAlign}}),i.setTextConfig({local:!0,inside:!!v.inside,insideStroke:f,outsideFill:f});var p=v.linePoints;n.setShape({points:p}),i.textGuideLineConfig={anchor:p?new l.Point(p[0][0],p[0][1]):null},l.updateProps(o,{style:{x:v.x,y:v.y}},s,a),o.attr({rotation:v.rotation,originX:v.x,originY:v.y,z2:10}),pe.setLabelLineStyle(i,pe.getLabelLineStatesModels(u),{stroke:f})},t})(l.Polygon),so=(function(r){l.__extends(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.ignoreLabelLineUpdate=!0,e}return t.prototype.render=function(e,a,i){var n=e.getData(),o=this._data,s=this.group;n.diff(o).add(function(u){var c=new oo(n,u);n.setItemGraphicEl(u,c),s.add(c)}).update(function(u,c){var v=o.getItemGraphicEl(c);v.updateData(n,u),s.add(v),n.setItemGraphicEl(u,v)}).remove(function(u){var c=o.getItemGraphicEl(u);l.removeElementWithFadeOut(c,e,u)}).execute(),this._data=n},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t})(l.ChartView),lo=(function(r){l.__extends(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new _e.LegendVisualProvider(l.bind(this.getData,this),l.bind(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.getInitialData=function(e,a){return ha.createSeriesDataSimply(this,{coordDimensions:["value"],encodeDefaulter:l.curry(l.makeSeriesEncodeForNameBased,this)})},t.prototype._defaultLabelLine=function(e){l.defaultEmphasis(e,"labelLine",["show"]);var a=e.labelLine,i=e.emphasis.labelLine;a.show=a.show&&e.label.show,i.show=i.show&&e.emphasis.label.show},t.prototype.getDataParams=function(e){var a=this.getData(),i=r.prototype.getDataParams.call(this,e),n=a.mapDimension("value"),o=a.getSum(n);return i.percent=o?+(a.get(n,e)/o*100).toFixed(2):0,i.$vars.push("percent"),i},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t})(l.SeriesModel);function uo(r,t){return l.getLayoutRect(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function co(r,t){for(var e=r.mapDimension("value"),a=r.mapArray(e,function(u){return u}),i=[],n=t==="ascending",o=0,s=r.count();o<s;o++)i[o]=o;return l.isFunction(t)?i.sort(t):t!=="none"&&i.sort(function(u,c){return n?a[u]-a[c]:a[c]-a[u]}),i}function vo(r){var t=r.hostModel,e=t.get("orient");r.each(function(a){var i=r.getItemModel(a),n=i.getModel("label"),o=n.get("position"),s=i.getModel("labelLine"),u=r.getItemLayout(a),c=u.points,v=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",h,f,p,g;if(v)o==="insideLeft"?(f=(c[0][0]+c[3][0])/2+5,p=(c[0][1]+c[3][1])/2,h="left"):o==="insideRight"?(f=(c[1][0]+c[2][0])/2-5,p=(c[1][1]+c[2][1])/2,h="right"):(f=(c[0][0]+c[1][0]+c[2][0]+c[3][0])/4,p=(c[0][1]+c[1][1]+c[2][1]+c[3][1])/4,h="center"),g=[[f,p],[f,p]];else{var d=void 0,y=void 0,x=void 0,m=void 0,S=s.get("length");process.env.NODE_ENV!=="production"&&(e==="vertical"&&["top","bottom"].indexOf(o)>-1&&(o="left",console.warn("Position error: Funnel chart on vertical orient dose not support top and bottom.")),e==="horizontal"&&["left","right"].indexOf(o)>-1&&(o="bottom",console.warn("Position error: Funnel chart on horizontal orient dose not support left and right."))),o==="left"?(d=(c[3][0]+c[0][0])/2,y=(c[3][1]+c[0][1])/2,x=d-S,f=x-5,h="right"):o==="right"?(d=(c[1][0]+c[2][0])/2,y=(c[1][1]+c[2][1])/2,x=d+S,f=x+5,h="left"):o==="top"?(d=(c[3][0]+c[0][0])/2,y=(c[3][1]+c[0][1])/2,m=y-S,p=m-5,h="center"):o==="bottom"?(d=(c[1][0]+c[2][0])/2,y=(c[1][1]+c[2][1])/2,m=y+S,p=m+5,h="center"):o==="rightTop"?(d=e==="horizontal"?c[3][0]:c[1][0],y=e==="horizontal"?c[3][1]:c[1][1],e==="horizontal"?(m=y-S,p=m-5,h="center"):(x=d+S,f=x+5,h="top")):o==="rightBottom"?(d=c[2][0],y=c[2][1],e==="horizontal"?(m=y+S,p=m+5,h="center"):(x=d+S,f=x+5,h="bottom")):o==="leftTop"?(d=c[0][0],y=e==="horizontal"?c[0][1]:c[1][1],e==="horizontal"?(m=y-S,p=m-5,h="center"):(x=d-S,f=x-5,h="right")):o==="leftBottom"?(d=e==="horizontal"?c[1][0]:c[3][0],y=e==="horizontal"?c[1][1]:c[2][1],e==="horizontal"?(m=y+S,p=m+5,h="center"):(x=d-S,f=x-5,h="right")):(d=(c[1][0]+c[2][0])/2,y=(c[1][1]+c[2][1])/2,e==="horizontal"?(m=y+S,p=m+5,h="center"):(x=d+S,f=x+5,h="left")),e==="horizontal"?(x=d,f=x):(m=y,p=m),g=[[d,y],[x,m]]}u.label={linePoints:g,x:f,y:p,verticalAlign:"middle",textAlign:h,inside:v}})}function ho(r,t){r.eachSeriesByType("funnel",function(e){var a=e.getData(),i=a.mapDimension("value"),n=e.get("sort"),o=uo(e,t),s=e.get("orient"),u=o.width,c=o.height,v=co(a,n),h=o.x,f=o.y,p=s==="horizontal"?[l.parsePercent(e.get("minSize"),c),l.parsePercent(e.get("maxSize"),c)]:[l.parsePercent(e.get("minSize"),u),l.parsePercent(e.get("maxSize"),u)],g=a.getDataExtent(i),d=e.get("min"),y=e.get("max");d==null&&(d=Math.min(g[0],0)),y==null&&(y=g[1]);var x=e.get("funnelAlign"),m=e.get("gap"),S=s==="horizontal"?u:c,_=(S-m*(a.count()-1))/a.count(),w=function(R,O){if(s==="horizontal"){var k=a.get(i,R)||0,M=l.linearMap(k,[d,y],p,!0),V=void 0;switch(x){case"top":V=f;break;case"center":V=f+(c-M)/2;break;case"bottom":V=f+(c-M);break}return[[O,V],[O,V+M]]}var G=a.get(i,R)||0,$=l.linearMap(G,[d,y],p,!0),Z;switch(x){case"left":Z=h;break;case"center":Z=h+(u-$)/2;break;case"right":Z=h+u-$;break}return[[Z,O],[Z+$,O]]};n==="ascending"&&(_=-_,m=-m,s==="horizontal"?h+=u:f+=c,v=v.reverse());for(var A=0;A<v.length;A++){var b=v[A],T=v[A+1],P=a.getItemModel(b);if(s==="horizontal"){var D=P.get(["itemStyle","width"]);D==null?D=_:(D=l.parsePercent(D,u),n==="ascending"&&(D=-D));var E=w(b,h),C=w(T,h+D);h+=D+m,a.setItemLayout(b,{points:E.concat(C.slice().reverse())})}else{var L=P.get(["itemStyle","height"]);L==null?L=_:(L=l.parsePercent(L,c),n==="ascending"&&(L=-L));var E=w(b,f),C=w(T,f+L);f+=L+m,a.setItemLayout(b,{points:E.concat(C.slice().reverse())})}}vo(a)})}function fo(r){r.registerChartView(so),r.registerSeriesModel(lo),r.registerLayout(ho),r.registerProcessor(_e.dataFilter("funnel"))}var po=.3,go=(function(r){l.__extends(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._dataGroup=new l.Group,e._initialized=!1,e}return t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(e,a,i,n){this._progressiveEls=null;var o=this._dataGroup,s=e.getData(),u=this._data,c=e.coordinateSystem,v=c.dimensions,h=br(e);s.diff(u).add(f).update(p).remove(g).execute();function f(y){var x=Ar(s,o,y,v,c);vt(x,s,y,h)}function p(y,x){var m=u.getItemGraphicEl(x),S=Ca(s,y,v,c);s.setItemGraphicEl(y,m),l.updateProps(m,{shape:{points:S}},e,y),l.saveOldStyle(m),vt(m,s,y,h)}function g(y){var x=u.getItemGraphicEl(y);o.remove(x)}if(!this._initialized){this._initialized=!0;var d=yo(c,e,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(d)}this._data=s},t.prototype.incrementalPrepareRender=function(e,a,i){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(e,a,i){for(var n=a.getData(),o=a.coordinateSystem,s=o.dimensions,u=br(a),c=this._progressiveEls=[],v=e.start;v<e.end;v++){var h=Ar(n,this._dataGroup,v,s,o);h.incremental=!0,vt(h,n,v,u),c.push(h)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t})(l.ChartView);function yo(r,t,e){var a=r.model,i=r.getRect(),n=new l.Rect({shape:{x:i.x,y:i.y,width:i.width,height:i.height}}),o=a.get("layout")==="horizontal"?"width":"height";return n.setShape(o,0),l.initProps(n,{shape:{width:i.width,height:i.height}},t,e),n}function Ca(r,t,e,a){for(var i=[],n=0;n<e.length;n++){var o=e[n],s=r.get(r.mapDimension(o),t);mo(s,a.getAxis(o).type)||i.push(a.dataToPoint(s,o))}return i}function Ar(r,t,e,a,i){var n=Ca(r,e,a,i),o=new l.Polyline({shape:{points:n},z2:10});return t.add(o),r.setItemGraphicEl(e,o),o}function br(r){var t=r.get("smooth",!0);return t===!0&&(t=po),t=l.numericToNumber(t),l.eqNaN(t)&&(t=0),{smooth:t}}function vt(r,t,e,a){r.useStyle(t.getItemVisual(e,"style")),r.style.fill=null,r.setShape("smooth",a.smooth);var i=t.getItemModel(e),n=i.getModel("emphasis");l.setStatesStylesFromModel(r,i,"lineStyle"),l.toggleHoverEmphasis(r,n.get("focus"),n.get("blurScope"),n.get("disabled"))}function mo(r,t){return t==="category"?r==null:r==null||isNaN(r)}var xo=(function(r){l.__extends(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="lineStyle",e.visualDrawType="stroke",e}return t.prototype.getInitialData=function(e,a){return yi.createSeriesData(null,this,{useEncodeDefaulter:l.bind(So,null,this)})},t.prototype.getRawIndicesByActiveState=function(e){var a=this.coordinateSystem,i=this.getData(),n=[];return a.eachActiveState(i,function(o,s){e===o&&n.push(i.getRawIndex(s))}),n},t.type="series.parallel",t.dependencies=["parallel"],t.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},t})(l.SeriesModel);function So(r){var t=r.ecModel.getComponent("parallel",r.get("parallelIndex"));if(t){var e={};return l.each(t.dimensions,function(a){var i=_o(a);e[a]=i}),e}}function _o(r){return+r.replace("dim","")}var wo=["lineStyle","opacity"],Ao={seriesType:"parallel",reset:function(r,t){var e=r.coordinateSystem,a={normal:r.get(["lineStyle","opacity"]),active:r.get("activeOpacity"),inactive:r.get("inactiveOpacity")};return{progress:function(i,n){e.eachActiveState(n,function(o,s){var u=a[o];if(o==="normal"&&n.hasItemOption){var c=n.getItemModel(s).get(wo,!0);c!=null&&(u=c)}var v=n.ensureUniqueItemVisual(s,"style");v.opacity=u},i.start,i.end)}}}};function bo(r){Do(r),Io(r)}function Do(r){if(!r.parallel){var t=!1;l.each(r.series,function(e){e&&e.type==="parallel"&&(t=!0)}),t&&(r.parallel=[{}])}}function Io(r){var t=l.normalizeToArray(r.parallelAxis);l.each(t,function(e){if(l.isObject(e)){var a=e.parallelIndex||0,i=l.normalizeToArray(r.parallel)[a];i&&i.parallelAxisDefault&&l.merge(e,i.parallelAxisDefault,!1)}})}var To=5,Lo=(function(r){l.__extends(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,i){this._model=e,this._api=i,this._handlers||(this._handlers={},l.each(Po,function(n,o){i.getZr().on(o,this._handlers[o]=l.bind(n,this))},this)),l.createOrUpdate(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(e,a){l.clear(this,"_throttledDispatchExpand"),l.each(this._handlers,function(i,n){a.getZr().off(n,i)}),this._handlers=null},t.prototype._throttledDispatchExpand=function(e){this._dispatchExpand(e)},t.prototype._dispatchExpand=function(e){e&&this._api.dispatchAction(l.extend({type:"parallelAxisExpand"},e))},t.type="parallel",t})(l.ComponentView),Po={mousedown:function(r){ht(this,"click")&&(this._mouseDownPoint=[r.offsetX,r.offsetY])},mouseup:function(r){var t=this._mouseDownPoint;if(ht(this,"click")&&t){var e=[r.offsetX,r.offsetY],a=Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2);if(a>To)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);i.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!ht(this,"mousemove"))){var t=this._model,e=t.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),a=e.behavior;a==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(a==="none"?null:{axisExpandWindow:e.axisExpandWindow,animation:a==="jump"?null:{duration:0}})}}};function ht(r,t){var e=r._model;return e.get("axisExpandable")&&e.get("axisExpandTriggerOn")===t}var Co=(function(r){l.__extends(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var a=this.option;e&&l.merge(a,e,!0),this._initDimensions()},t.prototype.contains=function(e,a){var i=e.get("parallelIndex");return i!=null&&a.getComponent("parallel",i)===this},t.prototype.setAxisExpand=function(e){l.each(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(a){e.hasOwnProperty(a)&&(this.option[a]=e[a])},this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],a=this.parallelAxisIndex=[],i=l.filter(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(n){return(n.get("parallelIndex")||0)===this.componentIndex},this);l.each(i,function(n){e.push("dim"+n.get("dim")),a.push(n.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.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},t})(l.ComponentModel),Eo=(function(r){l.__extends(t,r);function t(e,a,i,n,o){var s=r.call(this,e,a,i)||this;return s.type=n||"value",s.axisIndex=o,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t})(ae.Axis),ft=l.each,Ea=Math.min,Na=Math.max,Dr=Math.floor,No=Math.ceil,Ir=l.round,Ro=Math.PI,Mo=(function(){function r(t,e,a){this.type="parallel",this._axesMap=l.createHashMap(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,a)}return r.prototype._init=function(t,e,a){var i=t.dimensions,n=t.parallelAxisIndex;ft(i,function(o,s){var u=n[s],c=e.getComponent("parallelAxis",u),v=this._axesMap.set(o,new Eo(o,I.createScaleByModel(c),[0,0],c.get("type"),u)),h=v.type==="category";v.onBand=h&&c.get("boundaryGap"),v.inverse=c.get("inverse"),c.axis=v,v.model=c,v.coordinateSystem=c.coordinateSystem=this},this)},r.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},r.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),a=e.axisBase,i=e.layoutBase,n=e.pixelDimIndex,o=t[1-n],s=t[n];return o>=a&&o<=a+e.axisLength&&s>=i&&s<=i+e.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(t,e){e.eachSeries(function(a){if(t.contains(a,e)){var i=a.getData();ft(this.dimensions,function(n){var o=this._axesMap.get(n);o.scale.unionExtentFromData(i,i.mapDimension(n)),I.niceScaleExtent(o.scale,o.model)},this)}},this)},r.prototype.resize=function(t,e){this._rect=l.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var t=this._model,e=this._rect,a=["x","y"],i=["width","height"],n=t.get("layout"),o=n==="horizontal"?0:1,s=e[i[o]],u=[0,s],c=this.dimensions.length,v=Be(t.get("axisExpandWidth"),u),h=Be(t.get("axisExpandCount")||0,[0,c]),f=t.get("axisExpandable")&&c>3&&c>h&&h>1&&v>0&&s>0,p=t.get("axisExpandWindow"),g;if(p)g=Be(p[1]-p[0],u),p[1]=p[0]+g;else{g=Be(v*(h-1),u);var d=t.get("axisExpandCenter")||Dr(c/2);p=[v*d-g/2],p[1]=p[0]+g}var y=(s-g)/(c-h);y<3&&(y=0);var x=[Dr(Ir(p[0]/v,1))+1,No(Ir(p[1]/v,1))-1],m=y/v*p[0];return{layout:n,pixelDimIndex:o,layoutBase:e[a[o]],layoutLength:s,axisBase:e[a[1-o]],axisLength:e[i[1-o]],axisExpandable:f,axisExpandWidth:v,axisCollapseWidth:y,axisExpandWindow:p,axisCount:c,winInnerIndices:x,axisExpandWindow0Pos:m}},r.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,a=this.dimensions,i=this._makeLayoutInfo(),n=i.layout;e.each(function(o){var s=[0,i.axisLength],u=o.inverse?1:0;o.setExtent(s[u],s[1-u])}),ft(a,function(o,s){var u=(i.axisExpandable?ko:Vo)(s,i),c={horizontal:{x:u.position,y:i.axisLength},vertical:{x:0,y:u.position}},v={horizontal:Ro/2,vertical:0},h=[c[n].x+t.x,c[n].y+t.y],f=v[n],p=l.create();l.rotate(p,p,f),l.translate(p,p,h),this._axesLayout[o]={position:h,rotation:f,transform:p,axisNameAvailableWidth:u.axisNameAvailableWidth,axisLabelShow:u.axisLabelShow,nameTruncateMaxWidth:u.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(t){return this._axesMap.get(t)},r.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},r.prototype.eachActiveState=function(t,e,a,i){a==null&&(a=0),i==null&&(i=t.count());var n=this._axesMap,o=this.dimensions,s=[],u=[];l.each(o,function(y){s.push(t.mapDimension(y)),u.push(n.get(y).model)});for(var c=this.hasAxisBrushed(),v=a;v<i;v++){var h=void 0;if(!c)h="normal";else{h="active";for(var f=t.getValues(s,v),p=0,g=o.length;p<g;p++){var d=u[p].getActiveState(f[p]);if(d==="inactive"){h="inactive";break}}}e(h,v)}},r.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,e=this._axesMap,a=!1,i=0,n=t.length;i<n;i++)e.get(t[i]).model.getActiveState()!=="normal"&&(a=!0);return a},r.prototype.axisCoordToPoint=function(t,e){var a=this._axesLayout[e];return l.applyTransform$1([t,0],a.transform)},r.prototype.getAxisLayout=function(t){return l.clone(this._axesLayout[t])},r.prototype.getSlidedAxisExpandWindow=function(t){var e=this._makeLayoutInfo(),a=e.pixelDimIndex,i=e.axisExpandWindow.slice(),n=i[1]-i[0],o=[0,e.axisExpandWidth*(e.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:i};var s=t[a]-e.layoutBase-e.axisExpandWindow0Pos,u,c="slide",v=e.axisCollapseWidth,h=this._model.get("axisExpandSlideTriggerArea"),f=h[0]!=null;if(v)f&&v&&s<n*h[0]?(c="jump",u=s-n*h[2]):f&&v&&s>n*(1-h[0])?(c="jump",u=s-n*(1-h[2])):(u=s-n*h[1])>=0&&(u=s-n*(1-h[1]))<=0&&(u=0),u*=e.axisExpandWidth/v,u?Ze.sliderMove(u,i,o,"all"):c="none";else{var p=i[1]-i[0],g=o[1]*s/p;i=[Na(0,g-p/2)],i[1]=Ea(o[1],i[0]+p),i[0]=i[1]-p}return{axisExpandWindow:i,behavior:c}},r})();function Be(r,t){return Ea(Na(r,t[0]),t[1])}function Vo(r,t){var e=t.layoutLength/(t.axisCount-1);return{position:e*r,axisNameAvailableWidth:e,axisLabelShow:!0}}function ko(r,t){var e=t.layoutLength,a=t.axisExpandWidth,i=t.axisCount,n=t.axisCollapseWidth,o=t.winInnerIndices,s,u=n,c=!1,v;return r<o[0]?(s=r*n,v=n):r<=o[1]?(s=t.axisExpandWindow0Pos+r*a-t.axisExpandWindow[0],u=a,c=!0):(s=e-(i-1-r)*n,v=n),{position:s,axisNameAvailableWidth:u,axisLabelShow:c,nameTruncateMaxWidth:v}}function zo(r,t){var e=[];return r.eachComponent("parallel",function(a,i){var n=new Mo(a,r,t);n.name="parallel_"+i,n.resize(a,t),a.coordinateSystem=n,n.model=a,e.push(n)}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="parallel"){var i=a.getReferringComponents("parallel",l.SINGLE_REFERRING).models[0];a.coordinateSystem=i.coordinateSystem}}),e}var Oo={create:zo},Tt=(function(r){l.__extends(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.activeIntervals=[],e}return t.prototype.getAreaSelectStyle=function(){return l.makeStyleMapper([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(e){var a=this.activeIntervals=l.clone(e);if(a)for(var i=a.length-1;i>=0;i--)l.asc(a[i])},t.prototype.getActiveState=function(e){var a=this.activeIntervals;if(!a.length)return"normal";if(e==null||isNaN(+e))return"inactive";if(a.length===1){var i=a[0];if(i[0]<=e&&e<=i[1])return"active"}else for(var n=0,o=a.length;n<o;n++)if(a[n][0]<=e&&e<=a[n][1])return"active";return"inactive"},t})(l.ComponentModel);l.mixin(Tt,ae.AxisModelCommonMixin);var Bo=["axisLine","axisTickLabel","axisName"],Go=(function(r){l.__extends(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){r.prototype.init.apply(this,arguments),(this._brushController=new oe.BrushController(a.getZr())).on("brush",l.bind(this._onBrush,this))},t.prototype.render=function(e,a,i,n){if(!Wo(e,a,n)){this.axisModel=e,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new l.Group,this.group.add(this._axisGroup),!!e.get("show")){var s=Ho(e,a),u=s.coordinateSystem,c=e.getAreaSelectStyle(),v=c.width,h=e.axis.dim,f=u.getAxisLayout(h),p=l.extend({strokeContainThreshold:v},f),g=new I.AxisBuilder(e,p);l.each(Bo,g.add,g),this._axisGroup.add(g.getGroup()),this._refreshBrushController(p,c,e,s,v,i),l.groupTransition(o,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,a,i,n,o,s){var u=i.axis.getExtent(),c=u[1]-u[0],v=Math.min(30,Math.abs(c)*.1),h=l.BoundingRect.create({x:u[0],y:-o/2,width:c,height:o});h.x-=v,h.width+=2*v,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:oe.makeRectPanelClipPath(h),isTargetByCursor:oe.makeRectIsTargetByCursor(h,s,n),getLinearBrushOtherExtent:oe.makeLinearBrushOtherExtent(h,0)}]).enableBrush({brushType:"lineX",brushStyle:a,removeOnClick:!0}).updateCovers(Fo(i))},t.prototype._onBrush=function(e){var a=e.areas,i=this.axisModel,n=i.axis,o=l.map(a,function(s){return[n.coordToData(s.range[0],!0),n.coordToData(s.range[1],!0)]});(!i.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t})(l.ComponentView);function Wo(r,t,e){return e&&e.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:e})[0]===r}function Fo(r){var t=r.axis;return l.map(r.activeIntervals,function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}})}function Ho(r,t){return t.getComponent("parallel",r.get("parallelIndex"))}var $o={type:"axisAreaSelect",event:"axisAreaSelected"};function Uo(r){r.registerAction($o,function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},function(a){a.axis.model.setActiveIntervals(t.intervals)})}),r.registerAction("parallelAxisExpand",function(t,e){e.eachComponent({mainType:"parallel",query:t},function(a){a.setAxisExpand(t)})})}var qo={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function Ra(r){r.registerComponentView(Lo),r.registerComponentModel(Co),r.registerCoordinateSystem("parallel",Oo),r.registerPreprocessor(bo),r.registerComponentModel(Tt),r.registerComponentView(Go),Se.axisModelCreator(r,"parallel",Tt,qo),Uo(r)}function Yo(r){I.use(Ra),r.registerChartView(go),r.registerSeriesModel(xo),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,Ao)}var Ma=(function(r){l.__extends(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],e.visualDrawType="stroke",e}return t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t})(l.SeriesModel);l.mixin(Ma,oe.WhiskerBoxCommonMixin,!0);var Zo=(function(r){l.__extends(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,i){var n=e.getData(),o=this.group,s=this._data;this._data||o.removeAll();var u=e.get("layout")==="horizontal"?1:0;n.diff(s).add(function(c){if(n.hasValue(c)){var v=n.getItemLayout(c),h=Tr(v,n,c,u,!0);n.setItemGraphicEl(c,h),o.add(h)}}).update(function(c,v){var h=s.getItemGraphicEl(v);if(!n.hasValue(c)){o.remove(h);return}var f=n.getItemLayout(c);h?(l.saveOldStyle(h),Va(f,h,n,c)):h=Tr(f,n,c,u),o.add(h),n.setItemGraphicEl(c,h)}).remove(function(c){var v=s.getItemGraphicEl(c);v&&o.remove(v)}).execute(),this._data=n},t.prototype.remove=function(e){var a=this.group,i=this._data;this._data=null,i&&i.eachItemGraphicEl(function(n){n&&a.remove(n)})},t.type="boxplot",t})(l.ChartView),Xo=(function(){function r(){}return r})(),Ko=(function(r){l.__extends(t,r);function t(e){var a=r.call(this,e)||this;return a.type="boxplotBoxPath",a}return t.prototype.getDefaultShape=function(){return new Xo},t.prototype.buildPath=function(e,a){var i=a.points,n=0;for(e.moveTo(i[n][0],i[n][1]),n++;n<4;n++)e.lineTo(i[n][0],i[n][1]);for(e.closePath();n<i.length;n++)e.moveTo(i[n][0],i[n][1]),n++,e.lineTo(i[n][0],i[n][1])},t})(l.Path);function Tr(r,t,e,a,i){var n=r.ends,o=new Ko({shape:{points:i?jo(n,a,r):n}});return Va(r,o,t,e,i),o}function Va(r,t,e,a,i){var n=e.hostModel,o=l.graphic[i?"initProps":"updateProps"];o(t,{shape:{points:r.ends}},n,a),t.useStyle(e.getItemVisual(a,"style")),t.style.strokeNoScale=!0,t.z2=100;var s=e.getItemModel(a),u=s.getModel("emphasis");l.setStatesStylesFromModel(t,s),l.toggleHoverEmphasis(t,u.get("focus"),u.get("blurScope"),u.get("disabled"))}function jo(r,t,e){return l.map(r,function(a){return a=a.slice(),a[t]=e.initBaseline,a})}var Pe=l.each;function Jo(r){var t=Qo(r);Pe(t,function(e){var a=e.seriesModels;a.length&&(es(e),Pe(a,function(i,n){ts(i,e.boxOffsetList[n],e.boxWidthList[n])}))})}function Qo(r){var t=[],e=[];return r.eachSeriesByType("boxplot",function(a){var i=a.getBaseAxis(),n=l.indexOf(e,i);n<0&&(n=e.length,e[n]=i,t[n]={axis:i,seriesModels:[]}),t[n].seriesModels.push(a)}),t}function es(r){var t=r.axis,e=r.seriesModels,a=e.length,i=r.boxWidthList=[],n=r.boxOffsetList=[],o=[],s;if(t.type==="category")s=t.getBandWidth();else{var u=0;Pe(e,function(g){u=Math.max(u,g.getData().count())});var c=t.getExtent();s=Math.abs(c[1]-c[0])/u}Pe(e,function(g){var d=g.get("boxWidth");l.isArray(d)||(d=[d,d]),o.push([l.parsePercent(d[0],s)||0,l.parsePercent(d[1],s)||0])});var v=s*.8-2,h=v/a*.3,f=(v-h*(a-1))/a,p=f/2-v/2;Pe(e,function(g,d){n.push(p),p+=h+f,i.push(Math.min(Math.max(f,o[d][0]),o[d][1]))})}function ts(r,t,e){var a=r.coordinateSystem,i=r.getData(),n=e/2,o=r.get("layout")==="horizontal"?0:1,s=1-o,u=["x","y"],c=i.mapDimension(u[o]),v=i.mapDimensionsAll(u[s]);if(c==null||v.length<5)return;for(var h=0;h<i.count();h++){var f=i.get(c,h),p=S(f,v[2],h),g=S(f,v[0],h),d=S(f,v[1],h),y=S(f,v[3],h),x=S(f,v[4],h),m=[];_(m,d,!1),_(m,y,!0),m.push(g,d,x,y),w(m,g),w(m,x),w(m,p),i.setItemLayout(h,{initBaseline:p[s],ends:m})}function S(A,b,T){var P=i.get(b,T),D=[];D[o]=A,D[s]=P;var E;return isNaN(A)||isNaN(P)?E=[NaN,NaN]:(E=a.dataToPoint(D),E[o]+=t),E}function _(A,b,T){var P=b.slice(),D=b.slice();P[o]+=n,D[o]-=n,T?A.push(P,D):A.push(D,P)}function w(A,b){var T=b.slice(),P=b.slice();T[o]-=n,P[o]+=n,A.push(T,P)}}function rs(r,t){t=t||{};for(var e=[],a=[],i=t.boundIQR,n=i==="none"||i===0,o=0;o<r.length;o++){var s=l.asc(r[o].slice()),u=l.quantile(s,.25),c=l.quantile(s,.5),v=l.quantile(s,.75),h=s[0],f=s[s.length-1],p=(i==null?1.5:i)*(v-u),g=n?h:Math.max(h,u-p),d=n?f:Math.min(f,v+p),y=t.itemNameFormatter,x=l.isFunction(y)?y({value:o}):l.isString(y)?y.replace("{value}",o+""):o+"";e.push([x,g,u,c,v,d]);for(var m=0;m<s.length;m++){var S=s[m];if(S<g||S>d){var _=[x,S];a.push(_)}}}return{boxData:e,outliers:a}}var as={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if(e.sourceFormat!==l.SOURCE_FORMAT_ARRAY_ROWS){var a="";process.env.NODE_ENV!=="production"&&(a=l.makePrintable("source data is not applicable for this boxplot transform. Expect number[][].")),l.throwError(a)}var i=rs(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function is(r){r.registerSeriesModel(Ma),r.registerChartView(Zo),r.registerLayout(Jo),r.registerTransform(as)}var ka=(function(r){l.__extends(t,r);function t(e,a,i){var n=r.call(this)||this;return n.add(n.createLine(e,a,i)),n._updateEffectSymbol(e,a),n}return t.prototype.createLine=function(e,a,i){return new Ce.Line(e,a,i)},t.prototype._updateEffectSymbol=function(e,a){var i=e.getItemModel(a),n=i.getModel("effect"),o=n.get("symbolSize"),s=n.get("symbol");l.isArray(o)||(o=[o,o]);var u=e.getItemVisual(a,"style"),c=n.get("color")||u&&u.stroke,v=this.childAt(1);this._symbolType!==s&&(this.remove(v),v=l.createSymbol(s,-.5,-.5,1,1,c),v.z2=100,v.culling=!0,this.add(v)),v&&(v.setStyle("shadowColor",c),v.setStyle(n.getItemStyle(["color"])),v.scaleX=o[0],v.scaleY=o[1],v.setColor(c),this._symbolType=s,this._symbolScale=o,this._updateEffectAnimation(e,n,a))},t.prototype._updateEffectAnimation=function(e,a,i){var n=this.childAt(1);if(n){var o=e.getItemLayout(i),s=a.get("period")*1e3,u=a.get("loop"),c=a.get("roundTrip"),v=a.get("constantSpeed"),h=l.retrieve(a.get("delay"),function(p){return p/e.count()*s/3});if(n.ignore=!0,this._updateAnimationPoints(n,o),v>0&&(s=this._getLineLength(n)/v*1e3),s!==this._period||u!==this._loop||c!==this._roundTrip){n.stopAnimation();var f=void 0;l.isFunction(h)?f=h(i):f=h,n.__t>0&&(f=-s*n.__t),this._animateSymbol(n,s,f,u,c)}this._period=s,this._loop=u,this._roundTrip=c}},t.prototype._animateSymbol=function(e,a,i,n,o){if(a>0){e.__t=0;var s=this,u=e.animate("",n).when(o?a*2:a,{__t:o?2:1}).delay(i).during(function(){s._updateSymbolPosition(e)});n||u.done(function(){s.remove(e)}),u.start()}},t.prototype._getLineLength=function(e){return l.dist(e.__p1,e.__cp1)+l.dist(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,a){e.__p1=a[0],e.__p2=a[1],e.__cp1=a[2]||[(a[0][0]+a[1][0])/2,(a[0][1]+a[1][1])/2]},t.prototype.updateData=function(e,a,i){this.childAt(0).updateData(e,a,i),this._updateEffectSymbol(e,a)},t.prototype._updateSymbolPosition=function(e){var a=e.__p1,i=e.__p2,n=e.__cp1,o=e.__t<1?e.__t:2-e.__t,s=[e.x,e.y],u=s.slice(),c=l.quadraticAt,v=l.quadraticDerivativeAt;s[0]=c(a[0],n[0],i[0],o),s[1]=c(a[1],n[1],i[1],o);var h=e.__t<1?v(a[0],n[0],i[0],o):v(i[0],n[0],a[0],1-o),f=e.__t<1?v(a[1],n[1],i[1],o):v(i[1],n[1],a[1],1-o);e.rotation=-Math.atan2(f,h)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(e.__lastT!==void 0&&e.__lastT<e.__t?(e.scaleY=l.dist(u,s)*1.05,o===1&&(s[0]=u[0]+(s[0]-u[0])/2,s[1]=u[1]+(s[1]-u[1])/2)):e.__lastT===1?e.scaleY=2*l.dist(a,s):e.scaleY=this._symbolScale[1]),e.__lastT=e.__t,e.ignore=!1,e.x=s[0],e.y=s[1]},t.prototype.updateLayout=function(e,a){this.childAt(0).updateLayout(e,a);var i=e.getItemModel(a).getModel("effect");this._updateEffectAnimation(e,i,a)},t})(l.Group),za=(function(r){l.__extends(t,r);function t(e,a,i){var n=r.call(this)||this;return n._createPolyline(e,a,i),n}return t.prototype._createPolyline=function(e,a,i){var n=e.getItemLayout(a),o=new l.Polyline({shape:{points:n}});this.add(o),this._updateCommonStl(e,a,i)},t.prototype.updateData=function(e,a,i){var n=e.hostModel,o=this.childAt(0),s={shape:{points:e.getItemLayout(a)}};l.updateProps(o,s,n,a),this._updateCommonStl(e,a,i)},t.prototype._updateCommonStl=function(e,a,i){var n=this.childAt(0),o=e.getItemModel(a),s=i&&i.emphasisLineStyle,u=i&&i.focus,c=i&&i.blurScope,v=i&&i.emphasisDisabled;if(!i||e.hasItemOption){var h=o.getModel("emphasis");s=h.getModel("lineStyle").getLineStyle(),v=h.get("disabled"),u=h.get("focus"),c=h.get("blurScope")}n.useStyle(e.getItemVisual(a,"style")),n.style.fill=null,n.style.strokeNoScale=!0;var f=n.ensureState("emphasis");f.style=s,l.toggleHoverEmphasis(this,u,c,v)},t.prototype.updateLayout=function(e,a){var i=this.childAt(0);i.setShape("points",e.getItemLayout(a))},t})(l.Group),ns=(function(r){l.__extends(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._lastFrame=0,e._lastFramePercent=0,e}return t.prototype.createLine=function(e,a,i){return new za(e,a,i)},t.prototype._updateAnimationPoints=function(e,a){this._points=a;for(var i=[0],n=0,o=1;o<a.length;o++){var s=a[o-1],u=a[o];n+=l.dist(s,u),i.push(n)}if(n===0){this._length=0;return}for(var o=0;o<i.length;o++)i[o]/=n;this._offsets=i,this._length=n},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(e){var a=e.__t<1?e.__t:2-e.__t,i=this._points,n=this._offsets,o=i.length;if(n){var s=this._lastFrame,u;if(a<this._lastFramePercent){var c=Math.min(s+1,o-1);for(u=c;u>=0&&!(n[u]<=a);u--);u=Math.min(u,o-2)}else{for(u=s;u<o&&!(n[u]>a);u++);u=Math.min(u-1,o-2)}var v=(a-n[u])/(n[u+1]-n[u]),h=i[u],f=i[u+1];e.x=h[0]*(1-v)+v*f[0],e.y=h[1]*(1-v)+v*f[1];var p=e.__t<1?f[0]-h[0]:h[0]-f[0],g=e.__t<1?f[1]-h[1]:h[1]-f[1];e.rotation=-Math.atan2(g,p)-Math.PI/2,this._lastFrame=u,this._lastFramePercent=a,e.ignore=!1}},t})(ka),os=(function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r})(),ss=(function(r){l.__extends(t,r);function t(e){var a=r.call(this,e)||this;return a._off=0,a.hoverDataIdx=-1,a}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new os},t.prototype.buildPath=function(e,a){var i=a.segs,n=a.curveness,o;if(a.polyline)for(o=this._off;o<i.length;){var s=i[o++];if(s>0){e.moveTo(i[o++],i[o++]);for(var u=1;u<s;u++)e.lineTo(i[o++],i[o++])}}else for(o=this._off;o<i.length;){var c=i[o++],v=i[o++],h=i[o++],f=i[o++];if(e.moveTo(c,v),n>0){var p=(c+h)/2-(v-f)*n,g=(v+f)/2-(h-c)*n;e.quadraticCurveTo(p,g,h,f)}else e.lineTo(h,f)}this.incremental&&(this._off=o,this.notClear=!0)},t.prototype.findDataIndex=function(e,a){var i=this.shape,n=i.segs,o=i.curveness,s=this.style.lineWidth;if(i.polyline)for(var u=0,c=0;c<n.length;){var v=n[c++];if(v>0)for(var h=n[c++],f=n[c++],p=1;p<v;p++){var g=n[c++],d=n[c++];if(l.containStroke(h,f,g,d,s,e,a))return u}u++}else for(var u=0,c=0;c<n.length;){var h=n[c++],f=n[c++],g=n[c++],d=n[c++];if(o>0){var y=(h+g)/2-(f-d)*o,x=(f+d)/2-(g-h)*o;if(l.containStroke$1(h,f,y,x,g,d,s,e,a))return u}else if(l.containStroke(h,f,g,d,s,e,a))return u;u++}return-1},t.prototype.contain=function(e,a){var i=this.transformCoordToLocal(e,a),n=this.getBoundingRect();if(e=i[0],a=i[1],n.contain(e,a)){var o=this.hoverDataIdx=this.findDataIndex(e,a);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var a=this.shape,i=a.segs,n=1/0,o=1/0,s=-1/0,u=-1/0,c=0;c<i.length;){var v=i[c++],h=i[c++];n=Math.min(v,n),s=Math.max(v,s),o=Math.min(h,o),u=Math.max(h,u)}e=this._rect=new l.BoundingRect(n,o,s,u)}return e},t})(l.Path),ls=(function(){function r(){this.group=new l.Group}return r.prototype.updateData=function(t){this._clear();var e=this._create();e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t)},r.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clear()},r.prototype.incrementalUpdate=function(t,e){var a=this._newAdded[0],i=e.getLayout("linesPoints"),n=a&&a.shape.segs;if(n&&n.length<2e4){var o=n.length,s=new Float32Array(o+i.length);s.set(n),s.set(i,o),a.setShape({segs:s})}else{this._newAdded=[];var u=this._create();u.incremental=!0,u.setShape({segs:i}),this._setCommon(u,e),u.__startIndex=t.start}},r.prototype.remove=function(){this._clear()},r.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},r.prototype._create=function(){var t=new ss({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(t),this.group.add(t),t},r.prototype._setCommon=function(t,e,a){var i=e.hostModel;t.setShape({polyline:i.get("polyline"),curveness:i.get(["lineStyle","curveness"])}),t.useStyle(i.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var n=e.getVisual("style");n&&n.stroke&&t.setStyle("stroke",n.stroke),t.setStyle("fill",null);var o=l.getECData(t);o.seriesIndex=i.seriesIndex,t.on("mousemove",function(s){o.dataIndex=null;var u=t.hoverDataIdx;u>0&&(o.dataIndex=u+t.__startIndex)})},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r})(),Oa={seriesType:"lines",plan:l.createRenderPlanner(),reset:function(r){var t=r.coordinateSystem;if(!t){process.env.NODE_ENV!=="production"&&l.error("The lines series must have a coordinate system.");return}var e=r.get("polyline"),a=r.pipelineContext.large;return{progress:function(i,n){var o=[];if(a){var s=void 0,u=i.end-i.start;if(e){for(var c=0,v=i.start;v<i.end;v++)c+=r.getLineCoordsCount(v);s=new Float32Array(u+c*2)}else s=new Float32Array(u*4);for(var h=0,f=[],v=i.start;v<i.end;v++){var p=r.getLineCoords(v,o);e&&(s[h++]=p);for(var g=0;g<p;g++)f=t.dataToPoint(o[g],!1,f),s[h++]=f[0],s[h++]=f[1]}n.setLayout("linesPoints",s)}else for(var v=i.start;v<i.end;v++){var d=n.getItemModel(v),p=r.getLineCoords(v,o),y=[];if(e)for(var x=0;x<p;x++)y.push(t.dataToPoint(o[x]));else{y[0]=t.dataToPoint(o[0]),y[1]=t.dataToPoint(o[1]);var m=d.get(["lineStyle","curveness"]);+m&&(y[2]=[(y[0][0]+y[1][0])/2-(y[0][1]-y[1][1])*m,(y[0][1]+y[1][1])/2-(y[1][0]-y[0][0])*m])}n.setItemLayout(v,y)}}}}},us=(function(r){l.__extends(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,i){var n=e.getData(),o=this._updateLineDraw(n,e),s=e.get("zlevel"),u=e.get(["effect","trailLength"]),c=i.getZr(),v=c.painter.getType()==="svg";v||c.painter.getLayer(s).clear(!0),this._lastZlevel!=null&&!v&&c.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(e)&&u>0&&(v?process.env.NODE_ENV!=="production"&&console.warn("SVG render mode doesn't support lines with trail effect"):c.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(u/10+.9,1),0)})),o.updateData(n);var h=e.get("clip",!0)&&pa.createClipPath(e.coordinateSystem,!1,e);h?this.group.setClipPath(h):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,a,i){var n=e.getData(),o=this._updateLineDraw(n,e);o.incrementalPrepareUpdate(n),this._clearLayer(i),this._finished=!1},t.prototype.incrementalRender=function(e,a,i){this._lineDraw.incrementalUpdate(e,a.getData()),this._finished=e.end===a.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,a,i){var n=e.getData(),o=e.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=Oa.reset(e,a,i);s.progress&&s.progress({start:0,end:n.count(),count:n.count()},n),this._lineDraw.updateLayout(),this._clearLayer(i)},t.prototype._updateLineDraw=function(e,a){var i=this._lineDraw,n=this._showEffect(a),o=!!a.get("polyline"),s=a.pipelineContext,u=s.large;return process.env.NODE_ENV!=="production"&&n&&u&&console.warn("Large lines not support effect"),(!i||n!==this._hasEffet||o!==this._isPolyline||u!==this._isLargeDraw)&&(i&&i.remove(),i=this._lineDraw=u?new ls:new Ce.LineDraw(o?n?ns:za:n?ka:Ce.Line),this._hasEffet=n,this._isPolyline=o,this._isLargeDraw=u),this.group.add(i.group),i},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var a=e.getZr(),i=a.painter.getType()==="svg";!i&&this._lastZlevel!=null&&a.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,a){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(a)},t.prototype.dispose=function(e,a){this.remove(e,a)},t.type="lines",t})(l.ChartView),cs=typeof Uint32Array=="undefined"?Array:Uint32Array,vs=typeof Float64Array=="undefined"?Array:Float64Array;function Lr(r){var t=r.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(process.env.NODE_ENV!=="production"&&console.warn("Lines data configuration has been changed to { coords:[[1,2],[2,3]] }"),r.data=l.map(t,function(e){var a=[e[0].coord,e[1].coord],i={coords:a};return e[0].name&&(i.fromName=e[0].name),e[1].name&&(i.toName=e[1].name),l.mergeAll([i,e[0],e[1]])}))}var hs=(function(r){l.__extends(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="lineStyle",e.visualDrawType="stroke",e}return t.prototype.init=function(e){e.data=e.data||[],Lr(e);var a=this._processFlatCoordsArray(e.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(e.data=new Float32Array(a.count)),r.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(e){if(Lr(e),e.data){var a=this._processFlatCoordsArray(e.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(e.data=new Float32Array(a.count))}r.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var a=this._processFlatCoordsArray(e.data);a.flatCoords&&(this._flatCoords?(this._flatCoords=l.concatArray(this._flatCoords,a.flatCoords),this._flatCoordsOffset=l.concatArray(this._flatCoordsOffset,a.flatCoordsOffset)):(this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset),e.data=new Float32Array(a.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var a=this.getData().getItemModel(e),i=a.option instanceof Array?a.option:a.getShallow("coords");if(process.env.NODE_ENV!=="production"&&!(i instanceof Array&&i.length>0&&i[0]instanceof Array))throw new Error("Invalid coords "+JSON.stringify(i)+". Lines must have 2d coords array in data item.");return i},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[e*2+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,a){if(this._flatCoordsOffset){for(var i=this._flatCoordsOffset[e*2],n=this._flatCoordsOffset[e*2+1],o=0;o<n;o++)a[o]=a[o]||[],a[o][0]=this._flatCoords[i+o*2],a[o][1]=this._flatCoords[i+o*2+1];return n}else{for(var s=this._getCoordsFromItemModel(e),o=0;o<s.length;o++)a[o]=a[o]||[],a[o][0]=s[o][0],a[o][1]=s[o][1];return s.length}},t.prototype._processFlatCoordsArray=function(e){var a=0;if(this._flatCoords&&(a=this._flatCoords.length),l.isNumber(e[0])){for(var i=e.length,n=new cs(i),o=new vs(i),s=0,u=0,c=0,v=0;v<i;){c++;var h=e[v++];n[u++]=s+a,n[u++]=h;for(var f=0;f<h;f++){var p=e[v++],g=e[v++];if(o[s++]=p,o[s++]=g,v>i&&process.env.NODE_ENV!=="production")throw new Error("Invalid data format.")}}return{flatCoordsOffset:new Uint32Array(n.buffer,0,u),flatCoords:o,count:c}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},t.prototype.getInitialData=function(e,a){if(process.env.NODE_ENV!=="production"){var i=l.CoordinateSystemManager.get(e.coordinateSystem);if(!i)throw new Error("Unknown coordinate system "+e.coordinateSystem)}var n=new I.SeriesData(["value"],this);return n.hasItemOption=!1,n.initData(e.data,[],function(o,s,u,c){if(o instanceof Array)return NaN;n.hasItemOption=!0;var v=o.value;if(v!=null)return v instanceof Array?v[c]:v}),n},t.prototype.formatTooltip=function(e,a,i){var n=this.getData(),o=n.getItemModel(e),s=o.get("name");if(s)return s;var u=o.get("fromName"),c=o.get("toName"),v=[];return u!=null&&v.push(u),c!=null&&v.push(c),l.createTooltipMarkup("nameValue",{name:v.join(" > ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return e==null?this.option.large?1e4:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e==null?this.option.large?2e4:this.get("progressiveThreshold"):e},t.prototype.getZLevelKey=function(){var e=this.getModel("effect"),a=e.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get("show")&&a>0?a+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.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}},t})(l.SeriesModel);function Ge(r){return r instanceof Array||(r=[r,r]),r}var fs={seriesType:"lines",reset:function(r){var t=Ge(r.get("symbol")),e=Ge(r.get("symbolSize")),a=r.getData();a.setVisual("fromSymbol",t&&t[0]),a.setVisual("toSymbol",t&&t[1]),a.setVisual("fromSymbolSize",e&&e[0]),a.setVisual("toSymbolSize",e&&e[1]);function i(n,o){var s=n.getItemModel(o),u=Ge(s.getShallow("symbol",!0)),c=Ge(s.getShallow("symbolSize",!0));u[0]&&n.setItemVisual(o,"fromSymbol",u[0]),u[1]&&n.setItemVisual(o,"toSymbol",u[1]),c[0]&&n.setItemVisual(o,"fromSymbolSize",c[0]),c[1]&&n.setItemVisual(o,"toSymbolSize",c[1])}return{dataEach:a.hasItemOption?i:null}}};function ps(r){r.registerChartView(us),r.registerSeriesModel(hs),r.registerLayout(Oa),r.registerVisual(fs)}var ds=["itemStyle","borderWidth"],Pr=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],pt=new l.Circle,gs=(function(r){l.__extends(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,i){var n=this.group,o=e.getData(),s=this._data,u=e.coordinateSystem,c=u.getBaseAxis(),v=c.isHorizontal(),h=u.master.getRect(),f={ecSize:{width:i.getWidth(),height:i.getHeight()},seriesModel:e,coordSys:u,coordSysExtent:[[h.x,h.x+h.width],[h.y,h.y+h.height]],isHorizontal:v,valueDim:Pr[+v],categoryDim:Pr[1-+v]};o.diff(s).add(function(g){if(o.hasValue(g)){var d=Er(o,g),y=Cr(o,g,d,f),x=Nr(o,f,y);o.setItemGraphicEl(g,x),n.add(x),Mr(x,f,y)}}).update(function(g,d){var y=s.getItemGraphicEl(d);if(!o.hasValue(g)){n.remove(y);return}var x=Er(o,g),m=Cr(o,g,x,f),S=$a(o,m);y&&S!==y.__pictorialShapeStr&&(n.remove(y),o.setItemGraphicEl(g,null),y=null),y?As(y,f,m):y=Nr(o,f,m,!0),o.setItemGraphicEl(g,y),y.__pictorialSymbolMeta=m,n.add(y),Mr(y,f,m)}).remove(function(g){var d=s.getItemGraphicEl(g);d&&Rr(s,g,d.__pictorialSymbolMeta.animationModel,d)}).execute();var p=e.get("clip",!0)?pa.createClipPath(e.coordinateSystem,!1,e):null;return p?n.setClipPath(p):n.removeClipPath(),this._data=o,this.group},t.prototype.remove=function(e,a){var i=this.group,n=this._data;e.get("animation")?n&&n.eachItemGraphicEl(function(o){Rr(n,l.getECData(o).dataIndex,e,o)}):i.removeAll()},t.type="pictorialBar",t})(l.ChartView);function Cr(r,t,e,a){var i=r.getItemLayout(t),n=e.get("symbolRepeat"),o=e.get("symbolClip"),s=e.get("symbolPosition")||"start",u=e.get("symbolRotate"),c=(u||0)*Math.PI/180||0,v=e.get("symbolPatternSize")||2,h=e.isAnimationEnabled(),f={dataIndex:t,layout:i,itemModel:e,symbolType:r.getItemVisual(t,"symbol")||"circle",style:r.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:n,symbolRepeatDirection:e.get("symbolRepeatDirection"),symbolPatternSize:v,rotation:c,animationModel:h?e:null,hoverScale:h&&e.get(["emphasis","scale"]),z2:e.getShallow("z",!0)||0};ys(e,n,i,a,f),ms(r,t,i,n,o,f.boundingLength,f.pxSign,v,a,f),xs(e,f.symbolScale,c,a,f);var p=f.symbolSize,g=l.normalizeSymbolOffset(e.get("symbolOffset"),p);return Ss(e,p,i,n,o,g,s,f.valueLineWidth,f.boundingLength,f.repeatCutLength,a,f),f}function ys(r,t,e,a,i){var n=a.valueDim,o=r.get("symbolBoundingData"),s=a.coordSys.getOtherAxis(a.coordSys.getBaseAxis()),u=s.toGlobalCoord(s.dataToCoord(0)),c=1-+(e[n.wh]<=0),v;if(l.isArray(o)){var h=[dt(s,o[0])-u,dt(s,o[1])-u];h[1]<h[0]&&h.reverse(),v=h[c]}else o!=null?v=dt(s,o)-u:t?v=a.coordSysExtent[n.index][c]-u:v=e[n.wh];i.boundingLength=v,t&&(i.repeatCutLength=e[n.wh]);var f=n.xy==="x",p=s.inverse;i.pxSign=f&&!p||!f&&p?v>=0?1:-1:v>0?1:-1}function dt(r,t){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(t)))}function ms(r,t,e,a,i,n,o,s,u,c){var v=u.valueDim,h=u.categoryDim,f=Math.abs(e[h.wh]),p=r.getItemVisual(t,"symbolSize"),g;l.isArray(p)?g=p.slice():p==null?g=["100%","100%"]:g=[p,p],g[h.index]=l.parsePercent(g[h.index],f),g[v.index]=l.parsePercent(g[v.index],a?f:Math.abs(n)),c.symbolSize=g;var d=c.symbolScale=[g[0]/s,g[1]/s];d[v.index]*=(u.isHorizontal?-1:1)*o}function xs(r,t,e,a,i){var n=r.get(ds)||0;n&&(pt.attr({scaleX:t[0],scaleY:t[1],rotation:e}),pt.updateTransform(),n/=pt.getLineScale(),n*=t[a.valueDim.index]),i.valueLineWidth=n||0}function Ss(r,t,e,a,i,n,o,s,u,c,v,h){var f=v.categoryDim,p=v.valueDim,g=h.pxSign,d=Math.max(t[p.index]+s,0),y=d;if(a){var x=Math.abs(u),m=l.retrieve(r.get("symbolMargin"),"15%")+"",S=!1;m.lastIndexOf("!")===m.length-1&&(S=!0,m=m.slice(0,m.length-1));var _=l.parsePercent(m,t[p.index]),w=Math.max(d+_*2,0),A=S?0:_*2,b=l.isNumeric(a),T=b?a:Vr((x+A)/w),P=x-T*d;_=P/2/(S?T:Math.max(T-1,1)),w=d+_*2,A=S?0:_*2,!b&&a!=="fixed"&&(T=c?Vr((Math.abs(c)+A)/w):0),y=T*w-A,h.repeatTimes=T,h.symbolMargin=_}var D=g*(y/2),E=h.pathPosition=[];E[f.index]=e[f.wh]/2,E[p.index]=o==="start"?D:o==="end"?u-D:u/2,n&&(E[0]+=n[0],E[1]+=n[1]);var C=h.bundlePosition=[];C[f.index]=e[f.xy],C[p.index]=e[p.xy];var L=h.barRectShape=l.extend({},e);L[p.wh]=g*Math.max(Math.abs(e[p.wh]),Math.abs(E[p.index]+D)),L[f.wh]=e[f.wh];var R=h.clipShape={};R[f.xy]=-e[f.xy],R[f.wh]=v.ecSize[f.wh],R[p.xy]=0,R[p.wh]=e[p.wh]}function Ba(r){var t=r.symbolPatternSize,e=l.createSymbol(r.symbolType,-t/2,-t/2,t,t);return e.attr({culling:!0}),e.type!=="image"&&e.setStyle({strokeNoScale:!0}),e}function Ga(r,t,e,a){var i=r.__pictorialBundle,n=e.symbolSize,o=e.valueLineWidth,s=e.pathPosition,u=t.valueDim,c=e.repeatTimes||0,v=0,h=n[t.valueDim.index]+o+e.symbolMargin*2;for($t(r,function(d){d.__pictorialAnimationIndex=v,d.__pictorialRepeatTimes=c,v<c?xe(d,null,g(v),e,a):xe(d,null,{scaleX:0,scaleY:0},e,a,function(){i.remove(d)}),v++});v<c;v++){var f=Ba(e);f.__pictorialAnimationIndex=v,f.__pictorialRepeatTimes=c,i.add(f);var p=g(v);xe(f,{x:p.x,y:p.y,scaleX:0,scaleY:0},{scaleX:p.scaleX,scaleY:p.scaleY,rotation:p.rotation},e,a)}function g(d){var y=s.slice(),x=e.pxSign,m=d;return(e.symbolRepeatDirection==="start"?x>0:x<0)&&(m=c-1-d),y[u.index]=h*(m-c/2+.5)+s[u.index],{x:y[0],y:y[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation}}}function Wa(r,t,e,a){var i=r.__pictorialBundle,n=r.__pictorialMainPath;n?xe(n,null,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation},e,a):(n=r.__pictorialMainPath=Ba(e),i.add(n),xe(n,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:0,scaleY:0,rotation:e.rotation},{scaleX:e.symbolScale[0],scaleY:e.symbolScale[1]},e,a))}function Fa(r,t,e){var a=l.extend({},t.barRectShape),i=r.__pictorialBarRect;i?xe(i,null,{shape:a},t,e):(i=r.__pictorialBarRect=new l.Rect({z2:2,shape:a,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,r.add(i))}function Ha(r,t,e,a){if(e.symbolClip){var i=r.__pictorialClipPath,n=l.extend({},e.clipShape),o=t.valueDim,s=e.animationModel,u=e.dataIndex;if(i)l.updateProps(i,{shape:n},s,u);else{n[o.wh]=0,i=new l.Rect({shape:n}),r.__pictorialBundle.setClipPath(i),r.__pictorialClipPath=i;var c={};c[o.wh]=e.clipShape[o.wh],l.graphic[a?"updateProps":"initProps"](i,{shape:c},s,u)}}}function Er(r,t){var e=r.getItemModel(t);return e.getAnimationDelayParams=_s,e.isAnimationEnabled=ws,e}function _s(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function ws(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function Nr(r,t,e,a){var i=new l.Group,n=new l.Group;return i.add(n),i.__pictorialBundle=n,n.x=e.bundlePosition[0],n.y=e.bundlePosition[1],e.symbolRepeat?Ga(i,t,e):Wa(i,t,e),Fa(i,e,a),Ha(i,t,e,a),i.__pictorialShapeStr=$a(r,e),i.__pictorialSymbolMeta=e,i}function As(r,t,e){var a=e.animationModel,i=e.dataIndex,n=r.__pictorialBundle;l.updateProps(n,{x:e.bundlePosition[0],y:e.bundlePosition[1]},a,i),e.symbolRepeat?Ga(r,t,e,!0):Wa(r,t,e,!0),Fa(r,e,!0),Ha(r,t,e,!0)}function Rr(r,t,e,a){var i=a.__pictorialBarRect;i&&i.removeTextContent();var n=[];$t(a,function(o){n.push(o)}),a.__pictorialMainPath&&n.push(a.__pictorialMainPath),a.__pictorialClipPath&&(e=null),l.each(n,function(o){l.removeElement(o,{scaleX:0,scaleY:0},e,t,function(){a.parent&&a.parent.remove(a)})}),r.setItemGraphicEl(t,null)}function $a(r,t){return[r.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function $t(r,t,e){l.each(r.__pictorialBundle.children(),function(a){a!==r.__pictorialBarRect&&t.call(e,a)})}function xe(r,t,e,a,i,n){t&&r.attr(t),a.symbolClip&&!i?e&&r.attr(e):e&&l.graphic[i?"updateProps":"initProps"](r,e,a.animationModel,a.dataIndex,n)}function Mr(r,t,e){var a=e.dataIndex,i=e.itemModel,n=i.getModel("emphasis"),o=n.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),u=i.getModel(["select","itemStyle"]).getItemStyle(),c=i.getShallow("cursor"),v=n.get("focus"),h=n.get("blurScope"),f=n.get("scale");$t(r,function(d){if(d instanceof l.ZRImage){var y=d.style;d.useStyle(l.extend({image:y.image,x:y.x,y:y.y,width:y.width,height:y.height},e.style))}else d.useStyle(e.style);var x=d.ensureState("emphasis");x.style=o,f&&(x.scaleX=d.scaleX*1.1,x.scaleY=d.scaleY*1.1),d.ensureState("blur").style=s,d.ensureState("select").style=u,c&&(d.cursor=c),d.z2=e.z2});var p=t.valueDim.posDesc[+(e.boundingLength>0)],g=r.__pictorialBarRect;g.ignoreClip=!0,l.setLabelStyle(g,l.getLabelStatesModels(i),{labelFetcher:t.seriesModel,labelDataIndex:a,defaultText:xi.getDefaultLabel(t.seriesModel.getData(),a),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:p}),l.toggleHoverEmphasis(r,v,h,n.get("disabled"))}function Vr(r){var t=Math.round(r);return Math.abs(r-t)<1e-4?t:Math.ceil(r)}var bs=(function(r){l.__extends(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e.defaultSymbol="roundRect",e}return t.prototype.getInitialData=function(e){return e.stack=null,r.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=l.inheritDefaultOption(wt.BaseBarSeriesModel.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t})(wt.BaseBarSeriesModel);function Ds(r){r.registerChartView(gs),r.registerSeriesModel(bs),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,l.curry(I.layout,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,I.createProgressiveLayout("pictorialBar"))}var Is=(function(r){l.__extends(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._layers=[],e}return t.prototype.render=function(e,a,i){var n=e.getData(),o=this,s=this.group,u=e.getLayerSeries(),c=n.getLayout("layoutInfo"),v=c.rect,h=c.boundaryGap;s.x=0,s.y=v.y+h[0];function f(y){return y.name}var p=new I.DataDiffer(this._layersSeries||[],u,f,f),g=[];p.add(l.bind(d,this,"add")).update(l.bind(d,this,"update")).remove(l.bind(d,this,"remove")).execute();function d(y,x,m){var S=o._layers;if(y==="remove"){s.remove(S[x]);return}for(var _=[],w=[],A,b=u[x].indices,T=0;T<b.length;T++){var P=n.getItemLayout(b[T]),D=P.x,E=P.y0,C=P.y;_.push(D,E),w.push(D,E+C),A=n.getItemVisual(b[T],"style")}var L,R=n.getItemLayout(b[0]),O=e.getModel("label"),k=O.get("margin"),M=e.getModel("emphasis");if(y==="add"){var V=g[x]=new l.Group;L=new va.ECPolygon({shape:{points:_,stackedOnPoints:w,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),V.add(L),s.add(V),e.isAnimationEnabled()&&L.setClipPath(Ts(L.getBoundingRect(),e,function(){L.removeClipPath()}))}else{var V=S[m];L=V.childAt(0),s.add(V),g[x]=V,l.updateProps(L,{shape:{points:_,stackedOnPoints:w}},e),l.saveOldStyle(L)}l.setLabelStyle(L,l.getLabelStatesModels(e),{labelDataIndex:b[T-1],defaultText:n.getName(b[T-1]),inheritColor:A.fill},{normal:{verticalAlign:"middle"}}),L.setTextConfig({position:null,local:!0});var G=L.getTextContent();G&&(G.x=R.x-k,G.y=R.y0+R.y/2),L.useStyle(A),n.setItemGraphicEl(x,L),l.setStatesStylesFromModel(L,e),l.toggleHoverEmphasis(L,M.get("focus"),M.get("blurScope"),M.get("disabled"))}this._layersSeries=u,this._layers=g},t.type="themeRiver",t})(l.ChartView);function Ts(r,t,e){var a=new l.Rect({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return l.initProps(a,{shape:{x:r.x-50,width:r.width+100,height:r.height+20}},t,e),a}var gt=2,Ls=(function(r){l.__extends(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new _e.LegendVisualProvider(l.bind(this.getData,this),l.bind(this.getRawData,this))},t.prototype.fixData=function(e){var a=e.length,i={},n=l.groupData(e,function(f){return i.hasOwnProperty(f[0]+"")||(i[f[0]+""]=-1),f[2]}),o=[];n.buckets.each(function(f,p){o.push({name:p,dataList:f})});for(var s=o.length,u=0;u<s;++u){for(var c=o[u].name,v=0;v<o[u].dataList.length;++v){var h=o[u].dataList[v][0]+"";i[h]=u}for(var h in i)i.hasOwnProperty(h)&&i[h]!==u&&(i[h]=u,e[a]=[h,0,c],a++)}return e},t.prototype.getInitialData=function(e,a){for(var i=this.getReferringComponents("singleAxis",l.SINGLE_REFERRING).models[0],n=i.get("type"),o=l.filter(e.data,function(g){return g[2]!==void 0}),s=this.fixData(o||[]),u=[],c=this.nameMap=l.createHashMap(),v=0,h=0;h<s.length;++h)u.push(s[h][gt]),c.get(s[h][gt])||(c.set(s[h][gt],v),v++);var f=I.prepareSeriesDataSchema(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:I.getDimensionTypeByAxis(n)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,p=new I.SeriesData(f,this);return p.initData(s),p},t.prototype.getLayerSeries=function(){for(var e=this.getData(),a=e.count(),i=[],n=0;n<a;++n)i[n]=n;var o=e.mapDimension("single"),s=l.groupData(i,function(c){return e.get("name",c)}),u=[];return s.buckets.each(function(c,v){c.sort(function(h,f){return e.get(o,h)-e.get(o,f)}),u.push({name:v,indices:c})}),u},t.prototype.getAxisTooltipData=function(e,a,i){l.isArray(e)||(e=e?[e]:[]);for(var n=this.getData(),o=this.getLayerSeries(),s=[],u=o.length,c,v=0;v<u;++v){for(var h=Number.MAX_VALUE,f=-1,p=o[v].indices.length,g=0;g<p;++g){var d=n.get(e[0],o[v].indices[g]),y=Math.abs(d-a);y<=h&&(c=d,h=y,f=o[v].indices[g])}s.push(f)}return{dataIndices:s,nestestValue:c}},t.prototype.formatTooltip=function(e,a,i){var n=this.getData(),o=n.getName(e),s=n.get(n.mapDimension("value"),e);return l.createTooltipMarkup("nameValue",{name:o,value:s})},t.type="series.themeRiver",t.dependencies=["singleAxis"],t.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}}},t})(l.SeriesModel);function Ps(r,t){r.eachSeriesByType("themeRiver",function(e){var a=e.getData(),i=e.coordinateSystem,n={},o=i.getRect();n.rect=o;var s=e.get("boundaryGap"),u=i.getAxis();if(n.boundaryGap=s,u.orient==="horizontal"){s[0]=l.parsePercent(s[0],o.height),s[1]=l.parsePercent(s[1],o.height);var c=o.height-s[0]-s[1];kr(a,e,c)}else{s[0]=l.parsePercent(s[0],o.width),s[1]=l.parsePercent(s[1],o.width);var v=o.width-s[0]-s[1];kr(a,e,v)}a.setLayout("layoutInfo",n)})}function kr(r,t,e){if(r.count())for(var a=t.coordinateSystem,i=t.getLayerSeries(),n=r.mapDimension("single"),o=r.mapDimension("value"),s=l.map(i,function(y){return l.map(y.indices,function(x){var m=a.dataToPoint(r.get(n,x));return m[1]=r.get(o,x),m})}),u=Cs(s),c=u.y0,v=e/u.max,h=i.length,f=i[0].indices.length,p,g=0;g<f;++g){p=c[g]*v,r.setItemLayout(i[0].indices[g],{layerIndex:0,x:s[0][g][0],y0:p,y:s[0][g][1]*v});for(var d=1;d<h;++d)p+=s[d-1][g][1]*v,r.setItemLayout(i[d].indices[g],{layerIndex:d,x:s[d][g][0],y0:p,y:s[d][g][1]*v})}}function Cs(r){for(var t=r.length,e=r[0].length,a=[],i=[],n=0,o=0;o<e;++o){for(var s=0,u=0;u<t;++u)s+=r[u][o][1];s>n&&(n=s),a.push(s)}for(var c=0;c<e;++c)i[c]=(n-a[c])/2;n=0;for(var v=0;v<e;++v){var h=a[v]+i[v];h>n&&(n=h)}return{y0:i,max:n}}function Es(r){r.registerChartView(Is),r.registerSeriesModel(Ls),r.registerLayout(Ps),r.registerProcessor(_e.dataFilter("themeRiver"))}var Ns=2,Rs=4,zr=(function(r){l.__extends(t,r);function t(e,a,i,n){var o=r.call(this)||this;o.z2=Ns,o.textConfig={inside:!0},l.getECData(o).seriesIndex=a.seriesIndex;var s=new l.ZRText({z2:Rs,silent:e.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,e,a,i,n),o}return t.prototype.updateData=function(e,a,i,n,o){this.node=a,a.piece=this,i=i||this._seriesModel,n=n||this._ecModel;var s=this;l.getECData(s).dataIndex=a.dataIndex;var u=a.getModel(),c=u.getModel("emphasis"),v=a.getLayout(),h=l.extend({},v);h.label=null;var f=a.getVisual("style");f.lineJoin="bevel";var p=a.getVisual("decal");p&&(f.decal=l.createOrUpdatePatternFromDecal(p,o));var g=rr.getSectorCornerRadius(u.getModel("itemStyle"),h,!0);l.extend(h,g),l.each(l.SPECIAL_STATES,function(m){var S=s.ensureState(m),_=u.getModel([m,"itemStyle"]);S.style=_.getItemStyle();var w=rr.getSectorCornerRadius(_,h);w&&(S.shape=w)}),e?(s.setShape(h),s.shape.r=v.r0,l.initProps(s,{shape:{r:v.r}},i,a.dataIndex)):(l.updateProps(s,{shape:h},i),l.saveOldStyle(s)),s.useStyle(f),this._updateLabel(i);var d=u.getShallow("cursor");d&&s.attr("cursor",d),this._seriesModel=i||this._seriesModel,this._ecModel=n||this._ecModel;var y=c.get("focus"),x=y==="relative"?l.concatArray(a.getAncestorsIndices(),a.getDescendantIndices()):y==="ancestor"?a.getAncestorsIndices():y==="descendant"?a.getDescendantIndices():y;l.toggleHoverEmphasis(this,x,c.get("blurScope"),c.get("disabled"))},t.prototype._updateLabel=function(e){var a=this,i=this.node.getModel(),n=i.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,u=(o.startAngle+o.endAngle)/2,c=Math.cos(u),v=Math.sin(u),h=this,f=h.getTextContent(),p=this.node.dataIndex,g=n.get("minAngle")/180*Math.PI,d=n.get("show")&&!(g!=null&&Math.abs(s)<g);f.ignore=!d,l.each(l.DISPLAY_STATES,function(x){var m=x==="normal"?i.getModel("label"):i.getModel([x,"label"]),S=x==="normal",_=S?f:f.ensureState(x),w=e.getFormattedLabel(p,x);S&&(w=w||a.node.name),_.style=l.createTextStyle(m,{},null,x!=="normal",!0),w&&(_.style.text=w);var A=m.get("show");A!=null&&!S&&(_.ignore=!A);var b=y(m,"position"),T=S?h:h.states[x],P=T.style.fill;T.textConfig={outsideFill:m.get("color")==="inherit"?P:null,inside:b!=="outside"};var D,E=y(m,"distance")||0,C=y(m,"align"),L=y(m,"rotate"),R=Math.PI*.5,O=Math.PI*1.5,k=l.normalizeRadian(L==="tangential"?Math.PI/2-u:u),M=k>R&&!l.isRadianAroundZero(k-R)&&k<O;b==="outside"?(D=o.r+E,C=M?"right":"left"):!C||C==="center"?(s===2*Math.PI&&o.r0===0?D=0:D=(o.r+o.r0)/2,C="center"):C==="left"?(D=o.r0+E,C=M?"right":"left"):C==="right"&&(D=o.r-E,C=M?"left":"right"),_.style.align=C,_.style.verticalAlign=y(m,"verticalAlign")||"middle",_.x=D*c+o.cx,_.y=D*v+o.cy;var V=0;L==="radial"?V=l.normalizeRadian(-u)+(M?Math.PI:0):L==="tangential"?V=l.normalizeRadian(Math.PI/2-u)+(M?Math.PI:0):l.isNumber(L)&&(V=L*Math.PI/180),_.rotation=l.normalizeRadian(V)});function y(x,m){var S=x.get(m);return S==null?n.get(m):S}f.dirtyStyle()},t})(l.Sector),Lt="sunburstRootToNode",Or="sunburstHighlight",Ms="sunburstUnhighlight";function Vs(r){r.registerAction({type:Lt,update:"updateView"},function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},a);function a(i,n){var o=Ee(t,[Lt],i);if(o){var s=i.getViewRoot();s&&(t.direction=Bt(s,o.node)?"rollUp":"drillDown"),i.resetViewRoot(o.node)}}}),r.registerAction({type:Or,update:"none"},function(t,e,a){t=l.extend({},t),e.eachComponent({mainType:"series",subType:"sunburst",query:t},i);function i(n){var o=Ee(t,[Or],n);o&&(t.dataIndex=o.node.dataIndex)}process.env.NODE_ENV!=="production"&&l.deprecateReplaceLog("sunburstHighlight","highlight"),a.dispatchAction(l.extend(t,{type:"highlight"}))}),r.registerAction({type:Ms,update:"updateView"},function(t,e,a){t=l.extend({},t),process.env.NODE_ENV!=="production"&&l.deprecateReplaceLog("sunburstUnhighlight","downplay"),a.dispatchAction(l.extend(t,{type:"downplay"}))})}var ks=(function(r){l.__extends(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,i,n){var o=this;this.seriesModel=e,this.api=i,this.ecModel=a;var s=e.getData(),u=s.tree.root,c=e.getViewRoot(),v=this.group,h=e.get("renderLabelForZeroData"),f=[];c.eachNode(function(m){f.push(m)});var p=this._oldChildren||[];g(f,p),x(u,c),this._initEvents(),this._oldChildren=f;function g(m,S){if(m.length===0&&S.length===0)return;new I.DataDiffer(S,m,_,_).add(w).update(w).remove(l.curry(w,null)).execute();function _(A){return A.getId()}function w(A,b){var T=A==null?null:m[A],P=b==null?null:S[b];d(T,P)}}function d(m,S){if(!h&&m&&!m.getValue()&&(m=null),m!==u&&S!==u){if(S&&S.piece)m?(S.piece.updateData(!1,m,e,a,i),s.setItemGraphicEl(m.dataIndex,S.piece)):y(S);else if(m){var _=new zr(m,e,a,i);v.add(_),s.setItemGraphicEl(m.dataIndex,_)}}}function y(m){m&&m.piece&&(v.remove(m.piece),m.piece=null)}function x(m,S){S.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,m,e,a,i):(o.virtualPiece=new zr(m,e,a,i),v.add(o.virtualPiece)),S.piece.off("click"),o.virtualPiece.on("click",function(_){o._rootToNode(S.parentNode)})):o.virtualPiece&&(v.remove(o.virtualPiece),o.virtualPiece=null)}},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",function(a){var i=!1,n=e.seriesModel.getViewRoot();n.eachNode(function(o){if(!i&&o.piece&&o.piece===a.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")e._rootToNode(o);else if(s==="link"){var u=o.getModel(),c=u.get("link");if(c){var v=u.get("target",!0)||"_blank";l.windowOpen(c,v)}}i=!0}})})},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:Lt,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,a){var i=a.getData(),n=i.getItemLayout(0);if(n){var o=e[0]-n.cx,s=e[1]-n.cy,u=Math.sqrt(o*o+s*s);return u<=n.r&&u>=n.r0}},t.type="sunburst",t})(l.ChartView),zs=(function(r){l.__extends(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.ignoreStyleOnData=!0,e}return t.prototype.getInitialData=function(e,a){var i={name:e.name,children:e.data};Ua(i);var n=this._levelModels=l.map(e.levels||[],function(u){return new l.Model(u,this,a)},this),o=Ot.createTree(i,this,s);function s(u){u.wrapMethod("getItemModel",function(c,v){var h=o.getNodeByDataIndex(v),f=n[h.depth];return f&&(c.parentModel=f),c})}return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(e){var a=r.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return a.treePathInfo=Xe(i,this),a},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var a=this.getRawData().tree.root;(!e||e!==a&&!a.contains(e))&&(this._viewRoot=a)},t.prototype.enableAriaDecal=function(){ma(this)},t.type="series.sunburst",t.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"},t})(l.SeriesModel);function Ua(r){var t=0;l.each(r.children,function(a){Ua(a);var i=a.value;l.isArray(i)&&(i=i[0]),t+=i});var e=r.value;l.isArray(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),l.isArray(r.value)?r.value[0]=e:r.value=e}var Br=Math.PI/180;function Os(r,t,e){t.eachSeriesByType(r,function(a){var i=a.get("center"),n=a.get("radius");l.isArray(n)||(n=[0,n]),l.isArray(i)||(i=[i,i]);var o=e.getWidth(),s=e.getHeight(),u=Math.min(o,s),c=l.parsePercent(i[0],o),v=l.parsePercent(i[1],s),h=l.parsePercent(n[0],u/2),f=l.parsePercent(n[1],u/2),p=-a.get("startAngle")*Br,g=a.get("minAngle")*Br,d=a.getData().tree.root,y=a.getViewRoot(),x=y.depth,m=a.get("sort");m!=null&&qa(y,m);var S=0;l.each(y.children,function(k){!isNaN(k.getValue())&&S++});var _=y.getValue(),w=Math.PI/(_||S)*2,A=y.depth>0,b=y.height-(A?-1:1),T=(f-h)/(b||1),P=a.get("clockwise"),D=a.get("stillShowZeroSum"),E=P?1:-1,C=function(k,M){if(k){var V=M;if(k!==d){var G=k.getValue(),$=_===0&&D?w:G*w;$<g&&($=g),V=M+E*$;var Z=k.depth-x-(A?-1:1),Y=h+T*Z,te=h+T*(Z+1),Q=a.getLevelModel(k);if(Q){var ie=Q.get("r0",!0),se=Q.get("r",!0),le=Q.get("radius",!0);le!=null&&(ie=le[0],se=le[1]),ie!=null&&(Y=l.parsePercent(ie,u/2)),se!=null&&(te=l.parsePercent(se,u/2))}k.setLayout({angle:$,startAngle:M,endAngle:V,clockwise:P,cx:c,cy:v,r0:Y,r:te})}if(k.children&&k.children.length){var z=0;l.each(k.children,function(N){z+=C(N,M+z)})}return V-M}};if(A){var L=h,R=h+T,O=Math.PI*2;d.setLayout({angle:O,startAngle:p,endAngle:p+O,clockwise:P,cx:c,cy:v,r0:L,r:R})}C(y,p)})}function qa(r,t){var e=r.children||[];r.children=Bs(e,t),e.length&&l.each(r.children,function(a){qa(a,t)})}function Bs(r,t){if(l.isFunction(t)){var e=l.map(r,function(i,n){var o=i.getValue();return{params:{depth:i.depth,height:i.height,dataIndex:i.dataIndex,getValue:function(){return o}},index:n}});return e.sort(function(i,n){return t(i.params,n.params)}),l.map(e,function(i){return r[i.index]})}else{var a=t==="asc";return r.sort(function(i,n){var o=(i.getValue()-n.getValue())*(a?1:-1);return o===0?(i.dataIndex-n.dataIndex)*(a?-1:1):o})}}function Gs(r){var t={};function e(a,i,n){for(var o=a;o&&o.depth>1;)o=o.parentNode;var s=i.getColorFromPalette(o.name||o.dataIndex+"",t);return a.depth>1&&l.isString(s)&&(s=l.lift(s,(a.depth-1)/(n-1)*.5)),s}r.eachSeriesByType("sunburst",function(a){var i=a.getData(),n=i.tree;n.eachNode(function(o){var s=o.getModel(),u=s.getModel("itemStyle").getItemStyle();u.fill||(u.fill=e(o,a,n.root.height));var c=i.ensureUniqueItemVisual(o.dataIndex,"style");l.extend(c,u)})})}function Ws(r){r.registerChartView(ks),r.registerSeriesModel(zs),r.registerLayout(l.curry(Os,"sunburst")),r.registerProcessor(l.curry(_e.dataFilter,"sunburst")),r.registerVisual(Gs),Vs(r)}var Fs=(function(r){l.__extends(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,a,i,n,o){var s=i.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var u=s.polar,c=u.getOtherAxis(s),v=c.getExtent(),h=s.dataToCoord(a),f=n.get("type");if(f&&f!=="none"){var p=I.buildElStyle(n),g=$s[f](s,u,h,v);g.style=p,e.graphicKey=g.type,e.pointer=g}var d=n.get(["label","margin"]),y=Hs(a,i,n,u,d);I.buildLabelElOption(e,i,n,o,y)},t})(I.BaseAxisPointer);function Hs(r,t,e,a,i){var n=t.axis,o=n.dataToCoord(r),s=a.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var u=a.getRadiusAxis().getExtent(),c,v,h;if(n.dim==="radius"){var f=l.create();l.rotate(f,f,s),l.translate(f,f,[a.cx,a.cy]),c=l.applyTransform$1([o,-i],f);var p=t.getModel("axisLabel").get("rotate")||0,g=I.AxisBuilder.innerTextLayout(s,p*Math.PI/180,-1);v=g.textAlign,h=g.textVerticalAlign}else{var d=u[1];c=a.coordToPoint([d+i,o]);var y=a.cx,x=a.cy;v=Math.abs(c[0]-y)/d<.3?"center":c[0]>y?"left":"right",h=Math.abs(c[1]-x)/d<.3?"middle":c[1]>x?"top":"bottom"}return{position:c,align:v,verticalAlign:h}}var $s={line:function(r,t,e,a){return r.dim==="angle"?{type:"Line",shape:I.makeLineShape(t.coordToPoint([a[0],e]),t.coordToPoint([a[1],e]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:e}}},shadow:function(r,t,e,a){var i=Math.max(1,r.getBandWidth()),n=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:I.makeSectorShape(t.cx,t.cy,a[0],a[1],(-e-i/2)*n,(-e+i/2)*n)}:{type:"Sector",shape:I.makeSectorShape(t.cx,t.cy,e-i/2,e+i/2,0,Math.PI*2)}}},Us=(function(r){l.__extends(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.findAxisModel=function(e){var a,i=this.ecModel;return i.eachComponent(e,function(n){n.getCoordSysModel()===this&&(a=n)},this),a},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t})(l.ComponentModel),Ut=(function(r){l.__extends(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",l.SINGLE_REFERRING).models[0]},t.type="polarAxis",t})(l.ComponentModel);l.mixin(Ut,ae.AxisModelCommonMixin);var qs=(function(r){l.__extends(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="angleAxis",t})(Ut),Ys=(function(r){l.__extends(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="radiusAxis",t})(Ut),qt=(function(r){l.__extends(t,r);function t(e,a){return r.call(this,"radius",e,a)||this}return t.prototype.pointToData=function(e,a){return this.polar.pointToData(e,a)[this.dim==="radius"?0:1]},t})(ae.Axis);qt.prototype.dataToRadius=ae.Axis.prototype.dataToCoord;qt.prototype.radiusToData=ae.Axis.prototype.coordToData;var Zs=l.makeInner(),Yt=(function(r){l.__extends(t,r);function t(e,a){return r.call(this,"angle",e,a||[0,360])||this}return t.prototype.pointToData=function(e,a){return this.polar.pointToData(e,a)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,a=e.getLabelModel(),i=e.scale,n=i.getExtent(),o=i.count();if(n[1]-n[0]<1)return 0;var s=n[0],u=e.dataToCoord(s+1)-e.dataToCoord(s),c=Math.abs(u),v=l.getBoundingRect(s==null?"":s+"",a.getFont(),"center","top"),h=Math.max(v.height,7),f=h/c;isNaN(f)&&(f=1/0);var p=Math.max(0,Math.floor(f)),g=Zs(e.model),d=g.lastAutoInterval,y=g.lastTickCount;return d!=null&&y!=null&&Math.abs(d-p)<=1&&Math.abs(y-o)<=1&&d>p?p=d:(g.lastTickCount=o,g.lastAutoInterval=p),p},t})(ae.Axis);Yt.prototype.dataToAngle=ae.Axis.prototype.dataToCoord;Yt.prototype.angleToData=ae.Axis.prototype.coordToData;var Ya=["radius","angle"],Xs=(function(){function r(t){this.dimensions=Ya,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new qt,this._angleAxis=new Yt,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},r.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},r.prototype.getAxis=function(t){var e="_"+t+"Axis";return this[e]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(t){var e=[],a=this._angleAxis,i=this._radiusAxis;return a.scale.type===t&&e.push(a),i.scale.type===t&&e.push(i),e},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(t){var e=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},r.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},r.prototype.pointToData=function(t,e){var a=this.pointToCoord(t);return[this._radiusAxis.radiusToData(a[0],e),this._angleAxis.angleToData(a[1],e)]},r.prototype.pointToCoord=function(t){var e=t[0]-this.cx,a=t[1]-this.cy,i=this.getAngleAxis(),n=i.getExtent(),o=Math.min(n[0],n[1]),s=Math.max(n[0],n[1]);i.inverse?o=s-360:s=o+360;var u=Math.sqrt(e*e+a*a);e/=u,a/=u;for(var c=Math.atan2(-a,e)/Math.PI*180,v=c<o?1:-1;c<o||c>s;)c+=v*360;return[u,c]},r.prototype.coordToPoint=function(t){var e=t[0],a=t[1]/180*Math.PI,i=Math.cos(a)*e+this.cx,n=-Math.sin(a)*e+this.cy;return[i,n]},r.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),a=e.getExtent().slice();a[0]>a[1]&&a.reverse();var i=t.getExtent(),n=Math.PI/180,o=1e-4;return{cx:this.cx,cy:this.cy,r0:a[0],r:a[1],startAngle:-i[0]*n,endAngle:-i[1]*n,clockwise:t.inverse,contain:function(s,u){var c=s-this.cx,v=u-this.cy,h=c*c+v*v,f=this.r,p=this.r0;return f!==p&&h-o<=f*f&&h+o>=p*p}}},r.prototype.convertToPixel=function(t,e,a){var i=Gr(e);return i===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(t,e,a){var i=Gr(e);return i===this?this.pointToData(a):null},r})();function Gr(r){var t=r.seriesModel,e=r.polarModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}function Ks(r,t,e){var a=t.get("center"),i=e.getWidth(),n=e.getHeight();r.cx=l.parsePercent(a[0],i),r.cy=l.parsePercent(a[1],n);var o=r.getRadiusAxis(),s=Math.min(i,n)/2,u=t.get("radius");u==null?u=[0,"100%"]:l.isArray(u)||(u=[0,u]);var c=[l.parsePercent(u[0],s),l.parsePercent(u[1],s)];o.inverse?o.setExtent(c[1],c[0]):o.setExtent(c[0],c[1])}function js(r,t){var e=this,a=e.getAngleAxis(),i=e.getRadiusAxis();if(a.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),r.eachSeries(function(s){if(s.coordinateSystem===e){var u=s.getData();l.each(I.getDataDimensionsOnAxis(u,"radius"),function(c){i.scale.unionExtentFromData(u,c)}),l.each(I.getDataDimensionsOnAxis(u,"angle"),function(c){a.scale.unionExtentFromData(u,c)})}}),I.niceScaleExtent(a.scale,a.model),I.niceScaleExtent(i.scale,i.model),a.type==="category"&&!a.onBand){var n=a.getExtent(),o=360/a.scale.count();a.inverse?n[1]+=o:n[1]-=o,a.setExtent(n[0],n[1])}}function Js(r){return r.mainType==="angleAxis"}function Wr(r,t){var e;if(r.type=t.get("type"),r.scale=I.createScaleByModel(t),r.onBand=t.get("boundaryGap")&&r.type==="category",r.inverse=t.get("inverse"),Js(t)){r.inverse=r.inverse!==t.get("clockwise");var a=t.get("startAngle"),i=(e=t.get("endAngle"))!==null&&e!==void 0?e:a+(r.inverse?-360:360);r.setExtent(a,i)}t.axis=r,r.model=t}var Qs={dimensions:Ya,create:function(r,t){var e=[];return r.eachComponent("polar",function(a,i){var n=new Xs(i+"");n.update=js;var o=n.getRadiusAxis(),s=n.getAngleAxis(),u=a.findAxisModel("radiusAxis"),c=a.findAxisModel("angleAxis");Wr(o,u),Wr(s,c),Ks(n,a,t),e.push(n),a.coordinateSystem=n,n.model=a}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="polar"){var i=a.getReferringComponents("polar",l.SINGLE_REFERRING).models[0];if(process.env.NODE_ENV!=="production"&&!i)throw new Error('Polar "'+l.retrieve(a.get("polarIndex"),a.get("polarId"),0)+'" not found');a.coordinateSystem=i.coordinateSystem}}),e}},el=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function We(r,t,e){t[1]>t[0]&&(t=t.slice().reverse());var a=r.coordToPoint([t[0],e]),i=r.coordToPoint([t[1],e]);return{x1:a[0],y1:a[1],x2:i[0],y2:i[1]}}function Fe(r){var t=r.getRadiusAxis();return t.inverse?0:1}function Fr(r){var t=r[0],e=r[r.length-1];t&&e&&Math.abs(Math.abs(t.coord-e.coord)-360)<1e-4&&r.pop()}var tl=(function(r){l.__extends(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return t.prototype.render=function(e,a){if(this.group.removeAll(),!!e.get("show")){var i=e.axis,n=i.polar,o=n.getRadiusAxis().getExtent(),s=i.getTicksCoords(),u=i.getMinorTicksCoords(),c=l.map(i.getViewLabels(),function(v){v=l.clone(v);var h=i.scale,f=h.type==="ordinal"?h.getRawOrdinalNumber(v.tickValue):v.tickValue;return v.coord=i.dataToCoord(f),v});Fr(c),Fr(s),l.each(el,function(v){e.get([v,"show"])&&(!i.scale.isBlank()||v==="axisLine")&&rl[v](this.group,e,n,s,u,o,c)},this)}},t.type="angleAxis",t})(I.AxisView),rl={axisLine:function(r,t,e,a,i,n){var o=t.getModel(["axisLine","lineStyle"]),s=e.getAngleAxis(),u=Math.PI/180,c=s.getExtent(),v=Fe(e),h=v?0:1,f,p=Math.abs(c[1]-c[0])===360?"Circle":"Arc";n[h]===0?f=new l.graphic[p]({shape:{cx:e.cx,cy:e.cy,r:n[v],startAngle:-c[0]*u,endAngle:-c[1]*u,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):f=new l.Ring({shape:{cx:e.cx,cy:e.cy,r:n[v],r0:n[h]},style:o.getLineStyle(),z2:1,silent:!0}),f.style.fill=null,r.add(f)},axisTick:function(r,t,e,a,i,n){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),u=n[Fe(e)],c=l.map(a,function(v){return new l.Line({shape:We(e,[u,u+s],v.coord)})});r.add(l.mergePath(c,{style:l.defaults(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,t,e,a,i,n){if(i.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),u=(o.get("inside")?-1:1)*s.get("length"),c=n[Fe(e)],v=[],h=0;h<i.length;h++)for(var f=0;f<i[h].length;f++)v.push(new l.Line({shape:We(e,[c,c+u],i[h][f].coord)}));r.add(l.mergePath(v,{style:l.defaults(s.getModel("lineStyle").getLineStyle(),l.defaults(o.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(r,t,e,a,i,n,o){var s=t.getCategories(!0),u=t.getModel("axisLabel"),c=u.get("margin"),v=t.get("triggerEvent");l.each(o,function(h,f){var p=u,g=h.tickValue,d=n[Fe(e)],y=e.coordToPoint([d+c,h.coord]),x=e.cx,m=e.cy,S=Math.abs(y[0]-x)/d<.3?"center":y[0]>x?"left":"right",_=Math.abs(y[1]-m)/d<.3?"middle":y[1]>m?"top":"bottom";if(s&&s[g]){var w=s[g];l.isObject(w)&&w.textStyle&&(p=new l.Model(w.textStyle,u,u.ecModel))}var A=new l.ZRText({silent:I.AxisBuilder.isLabelSilent(t),style:l.createTextStyle(p,{x:y[0],y:y[1],fill:p.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:h.formattedLabel,align:S,verticalAlign:_})});if(r.add(A),v){var b=I.AxisBuilder.makeAxisEventDataBase(t);b.targetType="axisLabel",b.value=h.rawLabel,l.getECData(A).eventData=b}},this)},splitLine:function(r,t,e,a,i,n){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),u=s.get("color"),c=0;u=u instanceof Array?u:[u];for(var v=[],h=0;h<a.length;h++){var f=c++%u.length;v[f]=v[f]||[],v[f].push(new l.Line({shape:We(e,n,a[h].coord)}))}for(var h=0;h<v.length;h++)r.add(l.mergePath(v[h],{style:l.defaults({stroke:u[h%u.length]},s.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(r,t,e,a,i,n){if(i.length){for(var o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),u=[],c=0;c<i.length;c++)for(var v=0;v<i[c].length;v++)u.push(new l.Line({shape:We(e,n,i[c][v].coord)}));r.add(l.mergePath(u,{style:s.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(r,t,e,a,i,n){if(a.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),u=s.get("color"),c=0;u=u instanceof Array?u:[u];for(var v=[],h=Math.PI/180,f=-a[0].coord*h,p=Math.min(n[0],n[1]),g=Math.max(n[0],n[1]),d=t.get("clockwise"),y=1,x=a.length;y<=x;y++){var m=y===x?a[0].coord:a[y].coord,S=c++%u.length;v[S]=v[S]||[],v[S].push(new l.Sector({shape:{cx:e.cx,cy:e.cy,r0:p,r:g,startAngle:f,endAngle:-m*h,clockwise:d},silent:!0})),f=-m*h}for(var y=0;y<v.length;y++)r.add(l.mergePath(v[y],{style:l.defaults({fill:u[y%u.length]},s.getAreaStyle()),silent:!0}))}}},al=["axisLine","axisTickLabel","axisName"],il=["splitLine","splitArea","minorSplitLine"],nl=(function(r){l.__extends(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return t.prototype.render=function(e,a){if(this.group.removeAll(),!!e.get("show")){var i=this._axisGroup,n=this._axisGroup=new l.Group;this.group.add(n);var o=e.axis,s=o.polar,u=s.getAngleAxis(),c=o.getTicksCoords(),v=o.getMinorTicksCoords(),h=u.getExtent()[0],f=o.getExtent(),p=sl(s,e,h),g=new I.AxisBuilder(e,p);l.each(al,g.add,g),n.add(g.getGroup()),l.groupTransition(i,n,e),l.each(il,function(d){e.get([d,"show"])&&!o.scale.isBlank()&&ol[d](this.group,e,s,h,f,c,v)},this)}},t.type="radiusAxis",t})(I.AxisView),ol={splitLine:function(r,t,e,a,i,n){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),u=s.get("color"),c=0,v=e.getAngleAxis(),h=Math.PI/180,f=v.getExtent(),p=Math.abs(f[1]-f[0])===360?"Circle":"Arc";u=u instanceof Array?u:[u];for(var g=[],d=0;d<n.length;d++){var y=c++%u.length;g[y]=g[y]||[],g[y].push(new l.graphic[p]({shape:{cx:e.cx,cy:e.cy,r:Math.max(n[d].coord,0),startAngle:-f[0]*h,endAngle:-f[1]*h,clockwise:v.inverse}}))}for(var d=0;d<g.length;d++)r.add(l.mergePath(g[d],{style:l.defaults({stroke:u[d%u.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(r,t,e,a,i,n,o){if(o.length){for(var s=t.getModel("minorSplitLine"),u=s.getModel("lineStyle"),c=[],v=0;v<o.length;v++)for(var h=0;h<o[v].length;h++)c.push(new l.Circle({shape:{cx:e.cx,cy:e.cy,r:o[v][h].coord}}));r.add(l.mergePath(c,{style:l.defaults({fill:null},u.getLineStyle()),silent:!0}))}},splitArea:function(r,t,e,a,i,n){if(n.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),u=s.get("color"),c=0;u=u instanceof Array?u:[u];for(var v=[],h=n[0].coord,f=1;f<n.length;f++){var p=c++%u.length;v[p]=v[p]||[],v[p].push(new l.Sector({shape:{cx:e.cx,cy:e.cy,r0:h,r:n[f].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),h=n[f].coord}for(var f=0;f<v.length;f++)r.add(l.mergePath(v[f],{style:l.defaults({fill:u[f%u.length]},s.getAreaStyle()),silent:!0}))}}};function sl(r,t,e){return{position:[r.cx,r.cy],rotation:e/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}function Za(r){return r.get("stack")||"__ec_stack_"+r.seriesIndex}function Xa(r,t){return t.dim+r.model.componentIndex}function ll(r,t,e){var a={},i=ul(l.filter(t.getSeriesByType(r),function(n){return!t.isSeriesFiltered(n)&&n.coordinateSystem&&n.coordinateSystem.type==="polar"}));t.eachSeriesByType(r,function(n){if(n.coordinateSystem.type==="polar"){var o=n.getData(),s=n.coordinateSystem,u=s.getBaseAxis(),c=Xa(s,u),v=Za(n),h=i[c][v],f=h.offset,p=h.width,g=s.getOtherAxis(u),d=n.coordinateSystem.cx,y=n.coordinateSystem.cy,x=n.get("barMinHeight")||0,m=n.get("barMinAngle")||0;a[v]=a[v]||[];for(var S=o.mapDimension(g.dim),_=o.mapDimension(u.dim),w=I.isDimensionStacked(o,S),A=u.dim!=="radius"||!n.get("roundCap",!0),b=g.model,T=b.get("startValue"),P=g.dataToCoord(T||0),D=0,E=o.count();D<E;D++){var C=o.get(S,D),L=o.get(_,D),R=C>=0?"p":"n",O=P;w&&(a[v][L]||(a[v][L]={p:P,n:P}),O=a[v][L][R]);var k=void 0,M=void 0,V=void 0,G=void 0;if(g.dim==="radius"){var $=g.dataToCoord(C)-P,Z=u.dataToCoord(L);Math.abs($)<x&&($=($<0?-1:1)*x),k=O,M=O+$,V=Z-f,G=V-p,w&&(a[v][L][R]=M)}else{var Y=g.dataToCoord(C,A)-P,te=u.dataToCoord(L);Math.abs(Y)<m&&(Y=(Y<0?-1:1)*m),k=te+f,M=k+p,V=O,G=O+Y,w&&(a[v][L][R]=G)}o.setItemLayout(D,{cx:d,cy:y,r0:k,r:M,startAngle:-V*Math.PI/180,endAngle:-G*Math.PI/180,clockwise:V>=G})}}})}function ul(r){var t={};l.each(r,function(a,i){var n=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),u=Xa(o,s),c=s.getExtent(),v=s.type==="category"?s.getBandWidth():Math.abs(c[1]-c[0])/n.count(),h=t[u]||{bandWidth:v,remainedWidth:v,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},f=h.stacks;t[u]=h;var p=Za(a);f[p]||h.autoWidthCount++,f[p]=f[p]||{width:0,maxWidth:0};var g=l.parsePercent(a.get("barWidth"),v),d=l.parsePercent(a.get("barMaxWidth"),v),y=a.get("barGap"),x=a.get("barCategoryGap");g&&!f[p].width&&(g=Math.min(h.remainedWidth,g),f[p].width=g,h.remainedWidth-=g),d&&(f[p].maxWidth=d),y!=null&&(h.gap=y),x!=null&&(h.categoryGap=x)});var e={};return l.each(t,function(a,i){e[i]={};var n=a.stacks,o=a.bandWidth,s=l.parsePercent(a.categoryGap,o),u=l.parsePercent(a.gap,1),c=a.remainedWidth,v=a.autoWidthCount,h=(c-s)/(v+(v-1)*u);h=Math.max(h,0),l.each(n,function(d,y){var x=d.maxWidth;x&&x<h&&(x=Math.min(x,c),d.width&&(x=Math.min(x,d.width)),c-=x,d.width=x,v--)}),h=(c-s)/(v+(v-1)*u),h=Math.max(h,0);var f=0,p;l.each(n,function(d,y){d.width||(d.width=h),p=d,f+=d.width*(1+u)}),p&&(f-=p.width*u);var g=-f/2;l.each(n,function(d,y){e[i][y]=e[i][y]||{offset:g,width:d.width},g+=d.width*(1+u)})}),e}var cl={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},vl={splitNumber:5},hl=(function(r){l.__extends(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="polar",t})(l.ComponentView);function fl(r){I.use(I.install$2),I.AxisView.registerAxisPointerClass("PolarAxisPointer",Fs),r.registerCoordinateSystem("polar",Qs),r.registerComponentModel(Us),r.registerComponentView(hl),Se.axisModelCreator(r,"angle",qs,cl),Se.axisModelCreator(r,"radius",Ys,vl),r.registerComponentView(tl),r.registerComponentView(nl),r.registerLayout(l.curry(ll,"bar"))}function Pt(r,t){t=t||{};var e=r.coordinateSystem,a=r.axis,i={},n=a.position,o=a.orient,s=e.getRect(),u=[s.x,s.x+s.width,s.y,s.y+s.height],c={horizontal:{top:u[2],bottom:u[3]},vertical:{left:u[0],right:u[1]}};i.position=[o==="vertical"?c.vertical[n]:u[0],o==="horizontal"?c.horizontal[n]:u[3]];var v={horizontal:0,vertical:1};i.rotation=Math.PI/2*v[o];var h={top:-1,bottom:1,right:1,left:-1};i.labelDirection=i.tickDirection=i.nameDirection=h[n],r.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),l.retrieve(t.labelInside,r.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var f=t.rotate;return f==null&&(f=r.get(["axisLabel","rotate"])),i.labelRotation=n==="top"?-f:f,i.z2=1,i}var pl=["axisLine","axisTickLabel","axisName"],dl=["splitArea","splitLine"],gl=(function(r){l.__extends(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="SingleAxisPointer",e}return t.prototype.render=function(e,a,i,n){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new l.Group;var u=Pt(e),c=new I.AxisBuilder(e,u);l.each(pl,c.add,c),o.add(this._axisGroup),o.add(c.getGroup()),l.each(dl,function(v){e.get([v,"show"])&&yl[v](this,this.group,this._axisGroup,e)},this),l.groupTransition(s,this._axisGroup,e),r.prototype.render.call(this,e,a,i,n)},t.prototype.remove=function(){Se.rectCoordAxisHandleRemove(this)},t.type="singleAxis",t})(I.AxisView),yl={splitLine:function(r,t,e,a){var i=a.axis;if(!i.scale.isBlank()){var n=a.getModel("splitLine"),o=n.getModel("lineStyle"),s=o.get("color");s=s instanceof Array?s:[s];for(var u=o.get("width"),c=a.coordinateSystem.getRect(),v=i.isHorizontal(),h=[],f=0,p=i.getTicksCoords({tickModel:n}),g=[],d=[],y=0;y<p.length;++y){var x=i.toGlobalCoord(p[y].coord);v?(g[0]=x,g[1]=c.y,d[0]=x,d[1]=c.y+c.height):(g[0]=c.x,g[1]=x,d[0]=c.x+c.width,d[1]=x);var m=new l.Line({shape:{x1:g[0],y1:g[1],x2:d[0],y2:d[1]},silent:!0});l.subPixelOptimizeLine(m.shape,u);var S=f++%s.length;h[S]=h[S]||[],h[S].push(m)}for(var _=o.getLineStyle(["color"]),y=0;y<h.length;++y)t.add(l.mergePath(h[y],{style:l.defaults({stroke:s[y%s.length]},_),silent:!0}))}},splitArea:function(r,t,e,a){Se.rectCoordAxisBuildSplitArea(r,e,a,a)}},He=(function(r){l.__extends(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getCoordSysModel=function(){return this},t.type="singleAxis",t.layoutMode="box",t.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}}},t})(l.ComponentModel);l.mixin(He,ae.AxisModelCommonMixin.prototype);var ml=(function(r){l.__extends(t,r);function t(e,a,i,n,o){var s=r.call(this,e,a,i)||this;return s.type=n||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.pointToData=function(e,a){return this.coordinateSystem.pointToData(e)[0]},t})(ae.Axis),Ka=["single"],xl=(function(){function r(t,e,a){this.type="single",this.dimension="single",this.dimensions=Ka,this.axisPointerEnabled=!0,this.model=t,this._init(t,e,a)}return r.prototype._init=function(t,e,a){var i=this.dimension,n=new ml(i,I.createScaleByModel(t),[0,0],t.get("type"),t.get("position")),o=n.type==="category";n.onBand=o&&t.get("boundaryGap"),n.inverse=t.get("inverse"),n.orient=t.get("orient"),t.axis=n,n.model=t,n.coordinateSystem=this,this._axis=n},r.prototype.update=function(t,e){t.eachSeries(function(a){if(a.coordinateSystem===this){var i=a.getData();l.each(i.mapDimensionsAll(this.dimension),function(n){this._axis.scale.unionExtentFromData(i,n)},this),I.niceScaleExtent(this._axis.scale,this._axis.model)}},this)},r.prototype.resize=function(t,e){this._rect=l.getLayoutRect({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:e.getWidth(),height:e.getHeight()}),this._adjustAxis()},r.prototype.getRect=function(){return this._rect},r.prototype._adjustAxis=function(){var t=this._rect,e=this._axis,a=e.isHorizontal(),i=a?[0,t.width]:[0,t.height],n=e.inverse?1:0;e.setExtent(i[n],i[1-n]),this._updateAxisTransform(e,a?t.x:t.y)},r.prototype._updateAxisTransform=function(t,e){var a=t.getExtent(),i=a[0]+a[1],n=t.isHorizontal();t.toGlobalCoord=n?function(o){return o+e}:function(o){return i-o+e},t.toLocalCoord=n?function(o){return o-e}:function(o){return i-o+e}},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(t){var e=this.getRect(),a=this.getAxis(),i=a.orient;return i==="horizontal"?a.contain(a.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:a.contain(a.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},r.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t[e.orient==="horizontal"?0:1]))]},r.prototype.dataToPoint=function(t){var e=this.getAxis(),a=this.getRect(),i=[],n=e.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),i[n]=e.toGlobalCoord(e.dataToCoord(+t)),i[1-n]=n===0?a.y+a.height/2:a.x+a.width/2,i},r.prototype.convertToPixel=function(t,e,a){var i=Hr(e);return i===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(t,e,a){var i=Hr(e);return i===this?this.pointToData(a):null},r})();function Hr(r){var t=r.seriesModel,e=r.singleAxisModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}function Sl(r,t){var e=[];return r.eachComponent("singleAxis",function(a,i){var n=new xl(a,r,t);n.name="single_"+i,n.resize(a,t),a.coordinateSystem=n,e.push(n)}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="singleAxis"){var i=a.getReferringComponents("singleAxis",l.SINGLE_REFERRING).models[0];a.coordinateSystem=i&&i.coordinateSystem}}),e}var _l={create:Sl,dimensions:Ka},$r=["x","y"],wl=["width","height"],Al=(function(r){l.__extends(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,a,i,n,o){var s=i.axis,u=s.coordinateSystem,c=yt(u,1-qe(s)),v=u.dataToPoint(a)[0],h=n.get("type");if(h&&h!=="none"){var f=I.buildElStyle(n),p=bl[h](s,v,c);p.style=f,e.graphicKey=p.type,e.pointer=p}var g=Pt(i);I.buildCartesianSingleLabelElOption(a,e,g,i,n,o)},t.prototype.getHandleTransform=function(e,a,i){var n=Pt(a,{labelInside:!1});n.labelMargin=i.get(["handle","margin"]);var o=I.getTransformedPosition(a.axis,e,n);return{x:o[0],y:o[1],rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,a,i,n){var o=i.axis,s=o.coordinateSystem,u=qe(o),c=yt(s,u),v=[e.x,e.y];v[u]+=a[u],v[u]=Math.min(c[1],v[u]),v[u]=Math.max(c[0],v[u]);var h=yt(s,1-u),f=(h[1]+h[0])/2,p=[f,f];return p[u]=v[u],{x:v[0],y:v[1],rotation:e.rotation,cursorPoint:p,tooltipOption:{verticalAlign:"middle"}}},t})(I.BaseAxisPointer),bl={line:function(r,t,e){var a=I.makeLineShape([t,e[0]],[t,e[1]],qe(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,t,e){var a=r.getBandWidth(),i=e[1]-e[0];return{type:"Rect",shape:I.makeRectShape([t-a/2,e[0]],[a,i],qe(r))}}};function qe(r){return r.isHorizontal()?0:1}function yt(r,t){var e=r.getRect();return[e[$r[t]],e[$r[t]]+e[wl[t]]]}var Dl=(function(r){l.__extends(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="single",t})(l.ComponentView);function Il(r){I.use(I.install$2),I.AxisView.registerAxisPointerClass("SingleAxisPointer",Al),r.registerComponentView(Dl),r.registerComponentView(gl),r.registerComponentModel(He),Se.axisModelCreator(r,"single",He,He.defaultOption),r.registerCoordinateSystem("single",_l)}var Tl=(function(r){l.__extends(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a,i){var n=l.getLayoutParams(e);r.prototype.init.apply(this,arguments),Ur(e,n)},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),Ur(this.option,e)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t})(l.ComponentModel);function Ur(r,t){var e=r.cellSize,a;l.isArray(e)?a=e:a=r.cellSize=[e,e],a.length===1&&(a[1]=a[0]);var i=l.map([0,1],function(n){return l.sizeCalculable(t,n)&&(a[n]="auto"),a[n]!=null&&a[n]!=="auto"});l.mergeLayoutParam(r,t,{type:"box",ignoreSize:i})}var Ll=(function(r){l.__extends(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,i){var n=this.group;n.removeAll();var o=e.coordinateSystem,s=o.getRangeInfo(),u=o.getOrient(),c=a.getLocaleModel();this._renderDayRect(e,s,n),this._renderLines(e,s,u,n),this._renderYearText(e,s,u,n),this._renderMonthText(e,c,u,n),this._renderWeekText(e,c,s,u,n)},t.prototype._renderDayRect=function(e,a,i){for(var n=e.coordinateSystem,o=e.getModel("itemStyle").getItemStyle(),s=n.getCellWidth(),u=n.getCellHeight(),c=a.start.time;c<=a.end.time;c=n.getNextNDay(c,1).time){var v=n.dataToRect([c],!1).tl,h=new l.Rect({shape:{x:v[0],y:v[1],width:s,height:u},cursor:"default",style:o});i.add(h)}},t.prototype._renderLines=function(e,a,i,n){var o=this,s=e.coordinateSystem,u=e.getModel(["splitLine","lineStyle"]).getLineStyle(),c=e.get(["splitLine","show"]),v=u.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var h=a.start,f=0;h.time<=a.end.time;f++){g(h.formatedDate),f===0&&(h=s.getDateInfo(a.start.y+"-"+a.start.m));var p=h.date;p.setMonth(p.getMonth()+1),h=s.getDateInfo(p)}g(s.getNextNDay(a.end.time,1).formatedDate);function g(d){o._firstDayOfMonth.push(s.getDateInfo(d)),o._firstDayPoints.push(s.dataToRect([d],!1).tl);var y=o._getLinePointsOfOneWeek(e,d,i);o._tlpoints.push(y[0]),o._blpoints.push(y[y.length-1]),c&&o._drawSplitline(y,u,n)}c&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,v,i),u,n),c&&this._drawSplitline(o._getEdgesPoints(o._blpoints,v,i),u,n)},t.prototype._getEdgesPoints=function(e,a,i){var n=[e[0].slice(),e[e.length-1].slice()],o=i==="horizontal"?0:1;return n[0][o]=n[0][o]-a/2,n[1][o]=n[1][o]+a/2,n},t.prototype._drawSplitline=function(e,a,i){var n=new l.Polyline({z2:20,shape:{points:e},style:a});i.add(n)},t.prototype._getLinePointsOfOneWeek=function(e,a,i){for(var n=e.coordinateSystem,o=n.getDateInfo(a),s=[],u=0;u<7;u++){var c=n.getNextNDay(o.time,u),v=n.dataToRect([c.time],!1);s[2*c.day]=v.tl,s[2*c.day+1]=v[i==="horizontal"?"bl":"tr"]}return s},t.prototype._formatterLabel=function(e,a){return l.isString(e)&&e?l.formatTplSimple(e,a):l.isFunction(e)?e(a):a.nameMap},t.prototype._yearTextPositionControl=function(e,a,i,n,o){var s=a[0],u=a[1],c=["center","bottom"];n==="bottom"?(u+=o,c=["center","top"]):n==="left"?s-=o:n==="right"?(s+=o,c=["center","top"]):u-=o;var v=0;return(n==="left"||n==="right")&&(v=Math.PI/2),{rotation:v,x:s,y:u,style:{align:c[0],verticalAlign:c[1]}}},t.prototype._renderYearText=function(e,a,i,n){var o=e.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),u=o.get("position");u||(u=i!=="horizontal"?"top":"left");var c=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],v=(c[0][0]+c[1][0])/2,h=(c[0][1]+c[1][1])/2,f=i==="horizontal"?0:1,p={top:[v,c[f][1]],bottom:[v,c[1-f][1]],left:[c[1-f][0],h],right:[c[f][0],h]},g=a.start.y;+a.end.y>+a.start.y&&(g=g+"-"+a.end.y);var d=o.get("formatter"),y={start:a.start.y,end:a.end.y,nameMap:g},x=this._formatterLabel(d,y),m=new l.ZRText({z2:30,style:l.createTextStyle(o,{text:x}),silent:o.get("silent")});m.attr(this._yearTextPositionControl(m,p[u],i,u,s)),n.add(m)}},t.prototype._monthTextPositionControl=function(e,a,i,n,o){var s="left",u="top",c=e[0],v=e[1];return i==="horizontal"?(v=v+o,a&&(s="center"),n==="start"&&(u="bottom")):(c=c+o,a&&(u="middle"),n==="start"&&(s="right")),{x:c,y:v,align:s,verticalAlign:u}},t.prototype._renderMonthText=function(e,a,i,n){var o=e.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),u=o.get("margin"),c=o.get("position"),v=o.get("align"),h=[this._tlpoints,this._blpoints];(!s||l.isString(s))&&(s&&(a=l.getLocaleModel(s)||a),s=a.get(["time","monthAbbr"])||[]);var f=c==="start"?0:1,p=i==="horizontal"?0:1;u=c==="start"?-u:u;for(var g=v==="center",d=o.get("silent"),y=0;y<h[f].length-1;y++){var x=h[f][y].slice(),m=this._firstDayOfMonth[y];if(g){var S=this._firstDayPoints[y];x[p]=(S[p]+h[0][y+1][p])/2}var _=o.get("formatter"),w=s[+m.m-1],A={yyyy:m.y,yy:(m.y+"").slice(2),MM:m.m,M:+m.m,nameMap:w},b=this._formatterLabel(_,A),T=new l.ZRText({z2:30,style:l.extend(l.createTextStyle(o,{text:b}),this._monthTextPositionControl(x,g,i,c,u)),silent:d});n.add(T)}}},t.prototype._weekTextPositionControl=function(e,a,i,n,o){var s="center",u="middle",c=e[0],v=e[1],h=i==="start";return a==="horizontal"?(c=c+n+(h?1:-1)*o[0]/2,s=h?"right":"left"):(v=v+n+(h?1:-1)*o[1]/2,u=h?"bottom":"top"),{x:c,y:v,align:s,verticalAlign:u}},t.prototype._renderWeekText=function(e,a,i,n,o){var s=e.getModel("dayLabel");if(s.get("show")){var u=e.coordinateSystem,c=s.get("position"),v=s.get("nameMap"),h=s.get("margin"),f=u.getFirstDayOfWeek();if(!v||l.isString(v)){v&&(a=l.getLocaleModel(v)||a);var p=a.get(["time","dayOfWeekShort"]);v=p||l.map(a.get(["time","dayOfWeekAbbr"]),function(A){return A[0]})}var g=u.getNextNDay(i.end.time,7-i.lweek).time,d=[u.getCellWidth(),u.getCellHeight()];h=l.parsePercent(h,Math.min(d[1],d[0])),c==="start"&&(g=u.getNextNDay(i.start.time,-(7+i.fweek)).time,h=-h);for(var y=s.get("silent"),x=0;x<7;x++){var m=u.getNextNDay(g,x),S=u.dataToRect([m.time],!1).center,_=x;_=Math.abs((x+f)%7);var w=new l.ZRText({z2:30,style:l.extend(l.createTextStyle(s,{text:v[_]}),this._weekTextPositionControl(S,n,c,h,d)),silent:y});o.add(w)}}},t.type="calendar",t})(l.ComponentView),mt=864e5,Pl=(function(){function r(t,e,a){this.type="calendar",this.dimensions=r.dimensions,this.getDimensionsInfo=r.getDimensionsInfo,this._model=t}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(t){t=l.parseDate(t);var e=t.getFullYear(),a=t.getMonth()+1,i=a<10?"0"+a:""+a,n=t.getDate(),o=n<10?"0"+n:""+n,s=t.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:e+"",m:i,d:o,day:s,time:t.getTime(),formatedDate:e+"-"+i+"-"+o,date:t}},r.prototype.getNextNDay=function(t,e){return e=e||0,e===0?this.getDateInfo(t):(t=new Date(this.getDateInfo(t).time),t.setDate(t.getDate()+e),this.getDateInfo(t))},r.prototype.update=function(t,e){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var a=this._rangeInfo.weeks||1,i=["width","height"],n=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[a,7]:[7,a];l.each([0,1],function(h){v(n,h)&&(o[i[h]]=n[h]*s[h])});var u={width:e.getWidth(),height:e.getHeight()},c=this._rect=l.getLayoutRect(o,u);l.each([0,1],function(h){v(n,h)||(n[h]=c[i[h]]/s[h])});function v(h,f){return h[f]!=null&&h[f]!=="auto"}this._sw=n[0],this._sh=n[1]},r.prototype.dataToPoint=function(t,e){l.isArray(t)&&(t=t[0]),e==null&&(e=!0);var a=this.getDateInfo(t),i=this._rangeInfo,n=a.formatedDate;if(e&&!(a.time>=i.start.time&&a.time<i.end.time+mt))return[NaN,NaN];var o=a.day,s=this._getRangeInfo([i.start.time,n]).nthWeek;return this._orient==="vertical"?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]:[this._rect.x+s*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},r.prototype.pointToData=function(t){var e=this.pointToDate(t);return e&&e.time},r.prototype.dataToRect=function(t,e){var a=this.dataToPoint(t,e);return{contentShape:{x:a[0]-(this._sw-this._lineWidth)/2,y:a[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:a,tl:[a[0]-this._sw/2,a[1]-this._sh/2],tr:[a[0]+this._sw/2,a[1]-this._sh/2],br:[a[0]+this._sw/2,a[1]+this._sh/2],bl:[a[0]-this._sw/2,a[1]+this._sh/2]}},r.prototype.pointToDate=function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,a=Math.floor((t[1]-this._rect.y)/this._sh)+1,i=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(a,e-1,i):this._getDateByWeeksAndDay(e,a-1,i)},r.prototype.convertToPixel=function(t,e,a){var i=qr(e);return i===this?i.dataToPoint(a):null},r.prototype.convertFromPixel=function(t,e,a){var i=qr(e);return i===this?i.pointToData(a):null},r.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},r.prototype._initRangeOption=function(){var t=this._model.get("range"),e;if(l.isArray(t)&&t.length===1&&(t=t[0]),l.isArray(t))e=t;else{var a=t.toString();if(/^\d{4}$/.test(a)&&(e=[a+"-01-01",a+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(a)){var i=this.getDateInfo(a),n=i.date;n.setMonth(n.getMonth()+1);var o=this.getNextNDay(n,-1);e=[i.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(a)&&(e=[a,a])}if(!e)return process.env.NODE_ENV!=="production"&&l.logError("Invalid date range."),t;var s=this._getRangeInfo(e);return s.start.time>s.end.time&&e.reverse(),e},r.prototype._getRangeInfo=function(t){var e=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],a;e[0].time>e[1].time&&(a=!0,e.reverse());var i=Math.floor(e[1].time/mt)-Math.floor(e[0].time/mt)+1,n=new Date(e[0].time),o=n.getDate(),s=e[1].date.getDate();n.setDate(o+i-1);var u=n.getDate();if(u!==s)for(var c=n.getTime()-e[1].time>0?1:-1;(u=n.getDate())!==s&&(n.getTime()-e[1].time)*c>0;)i-=c,n.setDate(u-c);var v=Math.floor((i+e[0].day+6)/7),h=a?-v+1:v-1;return a&&e.reverse(),{range:[e[0].formatedDate,e[1].formatedDate],start:e[0],end:e[1],allDay:i,weeks:v,nthWeek:h,fweek:e[0].day,lweek:e[1].day}},r.prototype._getDateByWeeksAndDay=function(t,e,a){var i=this._getRangeInfo(a);if(t>i.weeks||t===0&&e<i.fweek||t===i.weeks&&e>i.lweek)return null;var n=(t-1)*7-i.fweek+e,o=new Date(i.start.time);return o.setDate(+i.start.d+n),this.getDateInfo(o)},r.create=function(t,e){var a=[];return t.eachComponent("calendar",function(i){var n=new r(i);a.push(n),i.coordinateSystem=n}),t.eachSeries(function(i){i.get("coordinateSystem")==="calendar"&&(i.coordinateSystem=a[i.get("calendarIndex")||0])}),a},r.dimensions=["time","value"],r})();function qr(r){var t=r.calendarModel,e=r.seriesModel,a=t?t.coordinateSystem:e?e.coordinateSystem:null;return a}function Cl(r){r.registerComponentModel(Tl),r.registerComponentView(Ll),r.registerCoordinateSystem("calendar",Pl)}var El=(function(r){l.__extends(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,a,i){return new t(e,a,i)},t.type="markPoint",t.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},t})(de.MarkerModel);function Yr(r,t,e){var a=t.coordinateSystem;r.each(function(i){var n=r.getItemModel(i),o,s=l.parsePercent(n.get("x"),e.getWidth()),u=l.parsePercent(n.get("y"),e.getHeight());if(!isNaN(s)&&!isNaN(u))o=[s,u];else if(t.getMarkerPosition)o=t.getMarkerPosition(r.getValues(r.dimensions,i));else if(a){var c=r.get(a.dimensions[0],i),v=r.get(a.dimensions[1],i);o=a.dataToPoint([c,v])}isNaN(s)||(o[0]=s),isNaN(u)||(o[1]=u),r.setItemLayout(i,o)})}var Nl=(function(r){l.__extends(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,a,i){a.eachSeries(function(n){var o=de.MarkerModel.getMarkerModelFromSeries(n,"markPoint");o&&(Yr(o.getData(),n,i),this.markerGroupMap.get(n.id).updateLayout())},this)},t.prototype.renderSeries=function(e,a,i,n){var o=e.coordinateSystem,s=e.id,u=e.getData(),c=this.markerGroupMap,v=c.get(s)||c.set(s,new Mt.SymbolDraw),h=Rl(o,e,a);a.setData(h),Yr(a.getData(),e,n),h.each(function(f){var p=h.getItemModel(f),g=p.getShallow("symbol"),d=p.getShallow("symbolSize"),y=p.getShallow("symbolRotate"),x=p.getShallow("symbolOffset"),m=p.getShallow("symbolKeepAspect");if(l.isFunction(g)||l.isFunction(d)||l.isFunction(y)||l.isFunction(x)){var S=a.getRawValue(f),_=a.getDataParams(f);l.isFunction(g)&&(g=g(S,_)),l.isFunction(d)&&(d=d(S,_)),l.isFunction(y)&&(y=y(S,_)),l.isFunction(x)&&(x=x(S,_))}var w=p.getModel("itemStyle").getItemStyle(),A=l.getVisualFromData(u,"color");w.fill||(w.fill=A),h.setItemVisual(f,{symbol:g,symbolSize:d,symbolRotate:y,symbolOffset:x,symbolKeepAspect:m,style:w})}),v.updateData(h),this.group.add(v.group),h.eachItemGraphicEl(function(f){f.traverse(function(p){l.getECData(p).dataModel=a})}),this.markKeep(v),v.group.silent=a.get("silent")||e.get("silent")},t.type="markPoint",t})(de.MarkerView);function Rl(r,t,e){var a;r?a=l.map(r&&r.dimensions,function(s){var u=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return l.extend(l.extend({},u),{name:s,ordinalMeta:null})}):a=[{name:"value",type:"float"}];var i=new I.SeriesData(a,e),n=l.map(e.get("data"),l.curry(de.dataTransform,t));r&&(n=l.filter(n,l.curry(de.dataFilter,r)));var o=de.createMarkerDimValueGetter(!!r,a);return i.initData(n,null,o),i}function Ml(r){r.registerComponentModel(El),r.registerComponentView(Nl),r.registerPreprocessor(function(t){de.checkMarkerInSeries(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var Vl={label:{enabled:!0},decal:{show:!1}},Zr=l.makeInner(),kl={};function zl(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var a=l.clone(Vl);l.merge(a.label,r.getLocaleModel().get("aria"),!1),l.merge(e.option,a,!1),i(),n();function i(){var c=e.getModel("decal"),v=c.get("show");if(v){var h=l.createHashMap();r.eachSeries(function(f){if(!f.isColorBySeries()){var p=h.get(f.type);p||(p={},h.set(f.type,p)),Zr(f).scope=p}}),r.eachRawSeries(function(f){if(r.isSeriesFiltered(f))return;if(l.isFunction(f.enableAriaDecal)){f.enableAriaDecal();return}var p=f.getData();if(f.isColorBySeries()){var m=l.getDecalFromPalette(f.ecModel,f.name,kl,r.getSeriesCount()),S=p.getVisual("decal");p.setVisual("decal",_(S,m))}else{var g=f.getRawData(),d={},y=Zr(f).scope;p.each(function(w){var A=p.getRawIndex(w);d[A]=w});var x=g.count();g.each(function(w){var A=d[w],b=g.getName(w)||w+"",T=l.getDecalFromPalette(f.ecModel,b,y,x),P=p.getItemVisual(A,"decal");p.setItemVisual(A,"decal",_(P,T))})}function _(w,A){var b=w?l.extend(l.extend({},A),w):A;return b.dirty=!0,b}})}}function n(){var c=t.getZr().dom;if(c){var v=r.getLocaleModel().get("aria"),h=e.getModel("label");if(h.option=l.defaults(h.option,v),!!h.get("enabled")){if(c.setAttribute("role","img"),h.get("description")){c.setAttribute("aria-label",h.get("description"));return}var f=r.getSeriesCount(),p=h.get(["data","maxCount"])||10,g=h.get(["series","maxCount"])||10,d=Math.min(f,g),y;if(!(f<1)){var x=s();if(x){var m=h.get(["general","withTitle"]);y=o(m,{title:x})}else y=h.get(["general","withoutTitle"]);var S=[],_=f>1?h.get(["series","multiple","prefix"]):h.get(["series","single","prefix"]);y+=o(_,{seriesCount:f}),r.eachSeries(function(T,P){if(P<d){var D=void 0,E=T.get("name"),C=E?"withName":"withoutName";D=f>1?h.get(["series","multiple",C]):h.get(["series","single",C]),D=o(D,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:u(T.subType)});var L=T.getData();if(L.count()>p){var R=h.get(["data","partialData"]);D+=o(R,{displayCnt:p})}else D+=h.get(["data","allData"]);for(var O=h.get(["data","separator","middle"]),k=h.get(["data","separator","end"]),M=h.get(["data","excludeDimensionId"]),V=[],G=0;G<L.count();G++)if(G<p){var $=L.getName(G),Z=M?l.filter(L.getValues(G),function(te,Q){return l.indexOf(M,Q)===-1}):L.getValues(G),Y=h.get(["data",$?"withName":"withoutName"]);V.push(o(Y,{name:$,value:Z.join(O)}))}D+=V.join(O)+k,S.push(D)}});var w=h.getModel(["series","multiple","separator"]),A=w.get("middle"),b=w.get("end");y+=S.join(A)+b,c.setAttribute("aria-label",y)}}}}function o(c,v){if(!l.isString(c))return c;var h=c;return l.each(v,function(f,p){h=h.replace(new RegExp("\\{\\s*"+p+"\\s*\\}","g"),f)}),h}function s(){var c=r.get("title");return c&&c.length&&(c=c[0]),c&&c.text}function u(c){var v=r.getLocaleModel().get(["series","typeNames"]);return v[c]||v.chart}}function Ol(r){if(!(!r||!r.aria)){var t=r.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},l.each(["description","general","series","data"],function(e){t[e]!=null&&(t.label[e]=t[e])})}}function Bl(r){r.registerPreprocessor(Ol),r.registerVisual(r.PRIORITY.VISUAL.ARIA,zl)}var Xr={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Gl=(function(){function r(t){var e=this._condVal=l.isString(t)?new RegExp(t):l.isRegExp(t)?t:null;if(e==null){var a="";process.env.NODE_ENV!=="production"&&(a=l.makePrintable("Illegal regexp",t,"in")),l.throwError(a)}}return r.prototype.evaluate=function(t){var e=typeof t;return l.isString(e)?this._condVal.test(t):l.isNumber(e)?this._condVal.test(t+""):!1},r})(),Wl=(function(){function r(){}return r.prototype.evaluate=function(){return this.value},r})(),Fl=(function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0},r})(),Hl=(function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1},r})(),$l=(function(){function r(){}return r.prototype.evaluate=function(){return!this.child.evaluate()},r})(),Ul=(function(){function r(){}return r.prototype.evaluate=function(){for(var t=!!this.valueParser,e=this.getValue,a=e(this.valueGetterParam),i=t?this.valueParser(a):null,n=0;n<this.subCondList.length;n++)if(!this.subCondList[n].evaluate(t?i:a))return!1;return!0},r})();function Zt(r,t){if(r===!0||r===!1){var e=new Wl;return e.value=r,e}var a="";return ja(r)||(process.env.NODE_ENV!=="production"&&(a=l.makePrintable("Illegal config. Expect a plain object but actually",r)),l.throwError(a)),r.and?Kr("and",r,t):r.or?Kr("or",r,t):r.not?ql(r,t):Yl(r,t)}function Kr(r,t,e){var a=t[r],i="";process.env.NODE_ENV!=="production"&&(i=l.makePrintable('"and"/"or" condition should only be `'+r+": [...]` and must not be empty array.","Illegal condition:",t)),l.isArray(a)||l.throwError(i),a.length||l.throwError(i);var n=r==="and"?new Fl:new Hl;return n.children=l.map(a,function(o){return Zt(o,e)}),n.children.length||l.throwError(i),n}function ql(r,t){var e=r.not,a="";process.env.NODE_ENV!=="production"&&(a=l.makePrintable('"not" condition should only be `not: {}`.',"Illegal condition:",r)),ja(e)||l.throwError(a);var i=new $l;return i.child=Zt(e,t),i.child||l.throwError(a),i}function Yl(r,t){for(var e="",a=t.prepareGetValue(r),i=[],n=l.keys(r),o=r.parser,s=o?l.getRawValueParser(o):null,u=0;u<n.length;u++){var c=n[u];if(!(c==="parser"||t.valueGetterAttrMap.get(c))){var v=l.hasOwn(Xr,c)?Xr[c]:c,h=r[c],f=s?s(h):h,p=l.createFilterComparator(v,f)||v==="reg"&&new Gl(f);p||(process.env.NODE_ENV!=="production"&&(e=l.makePrintable('Illegal relational operation: "'+c+'" in condition:',r)),l.throwError(e)),i.push(p)}}i.length||(process.env.NODE_ENV!=="production"&&(e=l.makePrintable("Relational condition must have at least one operator.","Illegal condition:",r)),l.throwError(e));var g=new Ul;return g.valueGetterParam=a,g.valueParser=s,g.getValue=t.getValue,g.subCondList=i,g}function ja(r){return l.isObject(r)&&!l.isArrayLike(r)}var Zl=(function(){function r(t,e){this._cond=Zt(t,e)}return r.prototype.evaluate=function(){return this._cond.evaluate()},r})();function Xl(r,t){return new Zl(r,t)}var Kl={type:"echarts:filter",transform:function(r){for(var t=r.upstream,e,a=Xl(r.config,{valueGetterAttrMap:l.createHashMap({dimension:!0}),prepareGetValue:function(s){var u="",c=s.dimension;l.hasOwn(s,"dimension")||(process.env.NODE_ENV!=="production"&&(u=l.makePrintable('Relation condition must has prop "dimension" specified.',"Illegal condition:",s)),l.throwError(u));var v=t.getDimensionInfo(c);return v||(process.env.NODE_ENV!=="production"&&(u=l.makePrintable("Can not find dimension info via: "+c+`.
2
+ `,"Existing dimensions: ",t.cloneAllDimensionInfo(),`.
3
+ `,"Illegal condition:",s,`.
4
+ `)),l.throwError(u)),{dimIdx:v.index}},getValue:function(s){return t.retrieveValueFromItem(e,s.dimIdx)}}),i=[],n=0,o=t.count();n<o;n++)e=t.getRawDataItem(n),a.evaluate()&&i.push(e);return{data:i}}},Ct="";process.env.NODE_ENV!=="production"&&(Ct=["Valid config is like:",'{ dimension: "age", order: "asc" }','or [{ dimension: "age", order: "asc"], { dimension: "date", order: "desc" }]'].join(" "));var jl={type:"echarts:sort",transform:function(r){var t=r.upstream,e=r.config,a="",i=l.normalizeToArray(e);i.length||(process.env.NODE_ENV!=="production"&&(a="Empty `config` in sort transform."),l.throwError(a));var n=[];l.each(i,function(v){var h=v.dimension,f=v.order,p=v.parser,g=v.incomparable;if(h==null&&(process.env.NODE_ENV!=="production"&&(a='Sort transform config must has "dimension" specified.'+Ct),l.throwError(a)),f!=="asc"&&f!=="desc"&&(process.env.NODE_ENV!=="production"&&(a='Sort transform config must has "order" specified.'+Ct),l.throwError(a)),g&&g!=="min"&&g!=="max"){var d="";process.env.NODE_ENV!=="production"&&(d='incomparable must be "min" or "max" rather than "'+g+'".'),l.throwError(d)}if(f!=="asc"&&f!=="desc"){var y="";process.env.NODE_ENV!=="production"&&(y='order must be "asc" or "desc" rather than "'+f+'".'),l.throwError(y)}var x=t.getDimensionInfo(h);x||(process.env.NODE_ENV!=="production"&&(a=l.makePrintable("Can not find dimension info via: "+h+`.
5
+ `,"Existing dimensions: ",t.cloneAllDimensionInfo(),`.
6
+ `,"Illegal config:",v,`.
7
+ `)),l.throwError(a));var m=p?l.getRawValueParser(p):null;p&&!m&&(process.env.NODE_ENV!=="production"&&(a=l.makePrintable("Invalid parser name "+p+`.
8
+ `,"Illegal config:",v,`.
9
+ `)),l.throwError(a)),n.push({dimIdx:x.index,parser:m,comparator:new l.SortOrderComparator(f,g)})});var o=t.sourceFormat;o!==l.SOURCE_FORMAT_ARRAY_ROWS&&o!==l.SOURCE_FORMAT_OBJECT_ROWS&&(process.env.NODE_ENV!=="production"&&(a='sourceFormat "'+o+'" is not supported yet'),l.throwError(a));for(var s=[],u=0,c=t.count();u<c;u++)s.push(t.getRawDataItem(u));return s.sort(function(v,h){for(var f=0;f<n.length;f++){var p=n[f],g=t.retrieveValueFromItem(v,p.dimIdx),d=t.retrieveValueFromItem(h,p.dimIdx);p.parser&&(g=p.parser(g),d=p.parser(d));var y=p.comparator.evaluate(g,d);if(y!==0)return y}return 0}),{data:s}}};function Jl(r){r.registerTransform(Kl),r.registerTransform(jl)}var xt=Math.sin,St=Math.cos,Ja=Math.PI,ce=Math.PI*2,Ql=180/Ja,Qa=(function(){function r(){}return r.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},r.prototype.moveTo=function(t,e){this._add("M",t,e)},r.prototype.lineTo=function(t,e){this._add("L",t,e)},r.prototype.bezierCurveTo=function(t,e,a,i,n,o){this._add("C",t,e,a,i,n,o)},r.prototype.quadraticCurveTo=function(t,e,a,i){this._add("Q",t,e,a,i)},r.prototype.arc=function(t,e,a,i,n,o){this.ellipse(t,e,a,a,0,i,n,o)},r.prototype.ellipse=function(t,e,a,i,n,o,s,u){var c=s-o,v=!u,h=Math.abs(c),f=l.isAroundZero(h-ce)||(v?c>=ce:-c>=ce),p=c>0?c%ce:c%ce+ce,g=!1;f?g=!0:l.isAroundZero(h)?g=!1:g=p>=Ja==!!v;var d=t+a*St(o),y=e+i*xt(o);this._start&&this._add("M",d,y);var x=Math.round(n*Ql);if(f){var m=1/this._p,S=(v?1:-1)*(ce-m);this._add("A",a,i,x,1,+v,t+a*St(o+S),e+i*xt(o+S)),m>.01&&this._add("A",a,i,x,0,+v,d,y)}else{var _=t+a*St(s),w=e+i*xt(s);this._add("A",a,i,x,+g,+v,_,w)}},r.prototype.rect=function(t,e,a,i){this._add("M",t,e),this._add("l",a,0),this._add("l",0,i),this._add("l",-a,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(t,e,a,i,n,o,s,u,c){for(var v=[],h=this._p,f=1;f<arguments.length;f++){var p=arguments[f];if(isNaN(p)){this._invalid=!0;return}v.push(Math.round(p*h)/h)}this._d.push(t+v.join(" ")),this._start=t==="Z"},r.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},r.prototype.getStr=function(){return this._str},r})(),Xt="none",eu=Math.round;function tu(r){var t=r.fill;return t!=null&&t!==Xt}function ru(r){var t=r.stroke;return t!=null&&t!==Xt}var Et=["lineCap","miterLimit","lineJoin"],au=l.map(Et,function(r){return"stroke-"+r.toLowerCase()});function iu(r,t,e,a){var i=t.opacity==null?1:t.opacity;if(e instanceof l.ZRImage){r("opacity",i);return}if(tu(t)){var n=l.normalizeColor(t.fill);r("fill",n.color);var o=t.fillOpacity!=null?t.fillOpacity*n.opacity*i:n.opacity*i;o<1&&r("fill-opacity",o)}else r("fill",Xt);if(ru(t)){var s=l.normalizeColor(t.stroke);r("stroke",s.color);var u=t.strokeNoScale?e.getLineScale():1,c=u?(t.lineWidth||0)/u:0,v=t.strokeOpacity!=null?t.strokeOpacity*s.opacity*i:s.opacity*i,h=t.strokeFirst;if(c!==1&&r("stroke-width",c),h&&r("paint-order",h?"stroke":"fill"),v<1&&r("stroke-opacity",v),t.lineDash){var f=l.getLineDash(e),p=f[0],g=f[1];p&&(g=eu(g||0),r("stroke-dasharray",p.join(",")),(g||a)&&r("stroke-dashoffset",g))}for(var d=0;d<Et.length;d++){var y=Et[d];if(t[y]!==l.DEFAULT_PATH_STYLE[y]){var x=t[y]||l.DEFAULT_PATH_STYLE[y];x&&r(au[d],x)}}}}var ei="http://www.w3.org/2000/svg",ti="http://www.w3.org/1999/xlink",nu="http://www.w3.org/2000/xmlns/",ou="http://www.w3.org/XML/1998/namespace",jr="ecmeta_";function ri(r){return document.createElementNS(ei,r)}function U(r,t,e,a,i){return{tag:r,attrs:e||{},children:a,text:i,key:t}}function su(r,t){var e=[];if(t)for(var a in t){var i=t[a],n=a;i!==!1&&(i!==!0&&i!=null&&(n+='="'+i+'"'),e.push(n))}return"<"+r+" "+e.join(" ")+">"}function lu(r){return"</"+r+">"}function Kt(r,t){t=t||{};var e=t.newline?`
10
+ `:"";function a(i){var n=i.children,o=i.tag,s=i.attrs,u=i.text;return su(o,s)+(o!=="style"?l.encodeHTML(u):u||"")+(n?""+e+l.map(n,function(c){return a(c)}).join(e)+e:"")+lu(o)}return a(r)}function uu(r,t,e){e=e||{};var a=e.newline?`
11
+ `:"",i=" {"+a,n=a+"}",o=l.map(l.keys(r),function(u){return u+i+l.map(l.keys(r[u]),function(c){return c+":"+r[u][c]+";"}).join(a)+n}).join(a),s=l.map(l.keys(t),function(u){return"@keyframes "+u+i+l.map(l.keys(t[u]),function(c){return c+i+l.map(l.keys(t[u][c]),function(v){var h=t[u][c][v];return v==="d"&&(h='path("'+h+'")'),v+":"+h+";"}).join(a)+n}).join(a)+n}).join(a);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(a)}function Nt(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Jr(r,t,e,a){return U("svg","root",{width:r,height:t,xmlns:ei,"xmlns:xlink":ti,version:"1.1",baseProfile:"full",viewBox:a?"0 0 "+r+" "+t:!1},e)}var cu=0;function ai(){return cu++}var Qr={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"},he="transform-origin";function vu(r,t,e){var a=l.extend({},r.shape);l.extend(a,t),r.buildPath(e,a);var i=new Qa;return i.reset(l.getPathPrecision(r)),e.rebuildPath(i,1),i.generateStr(),i.getStr()}function hu(r,t){var e=t.originX,a=t.originY;(e||a)&&(r[he]=e+"px "+a+"px")}var fu={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function ii(r,t){var e=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[e]=r,e}function pu(r,t,e){var a=r.shape.paths,i={},n,o;if(l.each(a,function(u){var c=Nt(e.zrId);c.animation=!0,je(u,{},c,!0);var v=c.cssAnims,h=c.cssNodes,f=l.keys(v),p=f.length;if(p){o=f[p-1];var g=v[o];for(var d in g){var y=g[d];i[d]=i[d]||{d:""},i[d].d+=y.d||""}for(var x in h){var m=h[x].animation;m.indexOf(o)>=0&&(n=m)}}}),!!n){t.d=!1;var s=ii(i,e);return n.replace(o,s)}}function ea(r){return l.isString(r)?Qr[r]?"cubic-bezier("+Qr[r]+")":l.createCubicEasingFunc(r)?r:"":""}function je(r,t,e,a){var i=r.animators,n=i.length,o=[];if(r instanceof l.CompoundPath){var s=pu(r,t,e);if(s)o.push(s);else if(!n)return}else if(!n)return;for(var u={},c=0;c<n;c++){var v=i[c],h=[v.getMaxTime()/1e3+"s"],f=ea(v.getClip().easing),p=v.getDelay();f?h.push(f):h.push("linear"),p&&h.push(p/1e3+"s"),v.getLoop()&&h.push("infinite");var g=h.join(" ");u[g]=u[g]||[g,[]],u[g][1].push(v)}function d(m){var S=m[1],_=S.length,w={},A={},b={},T="animation-timing-function";function P(z,N,W){for(var B=z.getTracks(),F=z.getMaxTime(),q=0;q<B.length;q++){var K=B[q];if(K.needsAnimate()){var H=K.keyframes,X=K.propName;if(W&&(X=W(X)),X)for(var ee=0;ee<H.length;ee++){var re=H[ee],ue=Math.round(re.time/F*100)+"%",we=ea(re.easing),tr=re.rawValue;(l.isString(tr)||l.isNumber(tr))&&(N[ue]=N[ue]||{},N[ue][X]=re.rawValue,we&&(N[ue][T]=we))}}}}for(var D=0;D<_;D++){var E=S[D],C=E.targetName;C?C==="shape"&&P(E,A):!a&&P(E,w)}for(var L in w){var R={};l.copyTransform(R,r),l.extend(R,w[L]);var O=l.getSRTTransformString(R),k=w[L][T];b[L]=O?{transform:O}:{},hu(b[L],R),k&&(b[L][T]=k)}var M,V=!0;for(var L in A){b[L]=b[L]||{};var G=!M,k=A[L][T];G&&(M=new l.PathProxy);var $=M.len();M.reset(),b[L].d=vu(r,A[L],M);var Z=M.len();if(!G&&$!==Z){V=!1;break}k&&(b[L][T]=k)}if(!V)for(var L in b)delete b[L].d;if(!a)for(var D=0;D<_;D++){var E=S[D],C=E.targetName;C==="style"&&P(E,b,function(B){return fu[B]})}for(var Y=l.keys(b),te=!0,Q,D=1;D<Y.length;D++){var ie=Y[D-1],se=Y[D];if(b[ie][he]!==b[se][he]){te=!1;break}Q=b[ie][he]}if(te&&Q){for(var L in b)b[L][he]&&delete b[L][he];t[he]=Q}if(l.filter(Y,function(z){return l.keys(b[z]).length>0}).length){var le=ii(b,e);return le+" "+m[0]+" both"}}for(var y in u){var s=d(u[y]);s&&o.push(s)}if(o.length){var x=e.zrId+"-cls-"+ai();e.cssNodes["."+x]={animation:o.join(",")},t.class=x}}function du(r,t,e){if(!r.ignore)if(r.isSilent()){var a={"pointer-events":"none"};ta(a,t,e)}else{var i=r.states.emphasis&&r.states.emphasis.style?r.states.emphasis.style:{},n=i.fill;if(!n){var o=r.style&&r.style.fill,s=r.states.select&&r.states.select.style&&r.states.select.style.fill,u=r.currentStates.indexOf("select")>=0&&s||o;u&&(n=l.liftColor(u))}var c=i.lineWidth;if(c){var v=!i.strokeNoScale&&r.transform?r.transform[0]:1;c=c/v}var a={cursor:"pointer"};n&&(a.fill=n),i.stroke&&(a.stroke=i.stroke),c&&(a["stroke-width"]=c),ta(a,t,e)}}function ta(r,t,e,a){var i=JSON.stringify(r),n=e.cssStyleCache[i];n||(n=e.zrId+"-cls-"+ai(),e.cssStyleCache[i]=n,e.cssNodes["."+n+":hover"]=r),t.class=t.class?t.class+" "+n:n}var Me=Math.round;function ni(r){return r&&l.isString(r.src)}function oi(r){return r&&l.isFunction(r.toDataURL)}function jt(r,t,e,a){iu(function(i,n){var o=i==="fill"||i==="stroke";o&&l.isGradient(n)?li(t,r,i,a):o&&l.isPattern(n)?ui(e,r,i,a):r[i]=n,o&&a.ssr&&n==="none"&&(r["pointer-events"]="visible")},t,e,!1),wu(e,r,a)}function Jt(r,t){var e=l.getElementSSRData(t);e&&(e.each(function(a,i){a!=null&&(r[(jr+i).toLowerCase()]=a+"")}),t.isSilent()&&(r[jr+"silent"]="true"))}function ra(r){return l.isAroundZero(r[0]-1)&&l.isAroundZero(r[1])&&l.isAroundZero(r[2])&&l.isAroundZero(r[3]-1)}function gu(r){return l.isAroundZero(r[4])&&l.isAroundZero(r[5])}function Qt(r,t,e){if(t&&!(gu(t)&&ra(t))){var a=1e4;r.transform=ra(t)?"translate("+Me(t[4]*a)/a+" "+Me(t[5]*a)/a+")":l.getMatrixStr(t)}}function aa(r,t,e){for(var a=r.points,i=[],n=0;n<a.length;n++)i.push(Me(a[n][0]*e)/e),i.push(Me(a[n][1]*e)/e);t.points=i.join(" ")}function ia(r){return!r.smooth}function yu(r){var t=l.map(r,function(e){return typeof e=="string"?[e,e]:e});return function(e,a,i){for(var n=0;n<t.length;n++){var o=t[n],s=e[o[0]];s!=null&&(a[o[1]]=Me(s*i)/i)}}}var mu={circle:[yu(["cx","cy","r"])],polyline:[aa,ia],polygon:[aa,ia]};function xu(r){for(var t=r.animators,e=0;e<t.length;e++)if(t[e].targetName==="shape")return!0;return!1}function si(r,t){var e=r.style,a=r.shape,i=mu[r.type],n={},o=t.animation,s="path",u=r.style.strokePercent,c=t.compress&&l.getPathPrecision(r)||4;if(i&&!t.willUpdate&&!(i[1]&&!i[1](a))&&!(o&&xu(r))&&!(u<1)){s=r.type;var v=Math.pow(10,c);i[0](a,n,v)}else{var h=!r.path||r.shapeChanged();r.path||r.createPathProxy();var f=r.path;h&&(f.beginPath(),r.buildPath(f,r.shape),r.pathUpdated());var p=f.getVersion(),g=r,d=g.__svgPathBuilder;(g.__svgPathVersion!==p||!d||u!==g.__svgPathStrokePercent)&&(d||(d=g.__svgPathBuilder=new Qa),d.reset(c),f.rebuildPath(d,u),d.generateStr(),g.__svgPathVersion=p,g.__svgPathStrokePercent=u),n.d=d.getStr()}return Qt(n,r.transform),jt(n,e,r,t),Jt(n,r),t.animation&&je(r,n,t),t.emphasis&&du(r,n,t),U(s,r.id+"",n)}function Su(r,t){var e=r.style,a=e.image;if(a&&!l.isString(a)&&(ni(a)?a=a.src:oi(a)&&(a=a.toDataURL())),!!a){var i=e.x||0,n=e.y||0,o=e.width,s=e.height,u={href:a,width:o,height:s};return i&&(u.x=i),n&&(u.y=n),Qt(u,r.transform),jt(u,e,r,t),Jt(u,r),t.animation&&je(r,u,t),U("image",r.id+"",u)}}function _u(r,t){var e=r.style,a=e.text;if(a!=null&&(a+=""),!(!a||isNaN(e.x)||isNaN(e.y))){var i=e.font||l.DEFAULT_FONT,n=e.x||0,o=l.adjustTextY(e.y||0,l.getLineHeight(i),e.textBaseline),s=l.TEXT_ALIGN_TO_ANCHOR[e.textAlign]||e.textAlign,u={"dominant-baseline":"central","text-anchor":s};if(l.hasSeparateFont(e)){var c="",v=e.fontStyle,h=l.parseFontSize(e.fontSize);if(!parseFloat(h))return;var f=e.fontFamily||l.DEFAULT_FONT_FAMILY,p=e.fontWeight;c+="font-size:"+h+";font-family:"+f+";",v&&v!=="normal"&&(c+="font-style:"+v+";"),p&&p!=="normal"&&(c+="font-weight:"+p+";"),u.style=c}else u.style="font: "+i;return a.match(/\s/)&&(u["xml:space"]="preserve"),n&&(u.x=n),o&&(u.y=o),Qt(u,r.transform),jt(u,e,r,t),Jt(u,r),t.animation&&je(r,u,t),U("text",r.id+"",u,void 0,a)}}function na(r,t){if(r instanceof l.Path)return si(r,t);if(r instanceof l.ZRImage)return Su(r,t);if(r instanceof l.TSpan)return _u(r,t)}function wu(r,t,e){var a=r.style;if(l.hasShadow(a)){var i=l.getShadowKey(r),n=e.shadowCache,o=n[i];if(!o){var s=r.getGlobalScale(),u=s[0],c=s[1];if(!u||!c)return;var v=a.shadowOffsetX||0,h=a.shadowOffsetY||0,f=a.shadowBlur,p=l.normalizeColor(a.shadowColor),g=p.opacity,d=p.color,y=f/2/u,x=f/2/c,m=y+" "+x;o=e.zrId+"-s"+e.shadowIdx++,e.defs[o]=U("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[U("feDropShadow","",{dx:v/u,dy:h/c,stdDeviation:m,"flood-color":d,"flood-opacity":g})]),n[i]=o}t.filter=l.getIdURL(o)}}function li(r,t,e,a){var i=r[e],n,o={gradientUnits:i.global?"userSpaceOnUse":"objectBoundingBox"};if(l.isLinearGradient(i))n="linearGradient",o.x1=i.x,o.y1=i.y,o.x2=i.x2,o.y2=i.y2;else if(l.isRadialGradient(i))n="radialGradient",o.cx=l.retrieve2(i.x,.5),o.cy=l.retrieve2(i.y,.5),o.r=l.retrieve2(i.r,.5);else{process.env.NODE_ENV!=="production"&&l.logError("Illegal gradient type.");return}for(var s=i.colorStops,u=[],c=0,v=s.length;c<v;++c){var h=l.round4(s[c].offset)*100+"%",f=s[c].color,p=l.normalizeColor(f),g=p.color,d=p.opacity,y={offset:h};y["stop-color"]=g,d<1&&(y["stop-opacity"]=d),u.push(U("stop",c+"",y))}var x=U(n,"",o,u),m=Kt(x),S=a.gradientCache,_=S[m];_||(_=a.zrId+"-g"+a.gradientIdx++,S[m]=_,o.id=_,a.defs[_]=U(n,_,o,u)),t[e]=l.getIdURL(_)}function ui(r,t,e,a){var i=r.style[e],n=r.getBoundingRect(),o={},s=i.repeat,u=s==="no-repeat",c=s==="repeat-x",v=s==="repeat-y",h;if(l.isImagePattern(i)){var f=i.imageWidth,p=i.imageHeight,g=void 0,d=i.image;if(l.isString(d)?g=d:ni(d)?g=d.src:oi(d)&&(g=d.toDataURL()),typeof Image=="undefined"){var y="Image width/height must been given explictly in svg-ssr renderer.";l.assert(f,y),l.assert(p,y)}else if(f==null||p==null){var x=function(D,E){if(D){var C=D.elm,L=f||E.width,R=p||E.height;D.tag==="pattern"&&(c?(R=1,L/=n.width):v&&(L=1,R/=n.height)),D.attrs.width=L,D.attrs.height=R,C&&(C.setAttribute("width",L),C.setAttribute("height",R))}},m=l.createOrUpdateImage(g,null,r,function(D){u||x(A,D),x(h,D)});m&&m.width&&m.height&&(f=f||m.width,p=p||m.height)}h=U("image","img",{href:g,width:f,height:p}),o.width=f,o.height=p}else i.svgElement&&(h=l.clone(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(h){var S,_;u?S=_=1:c?(_=1,S=o.width/n.width):v?(S=1,_=o.height/n.height):o.patternUnits="userSpaceOnUse",S!=null&&!isNaN(S)&&(o.width=S),_!=null&&!isNaN(_)&&(o.height=_);var w=l.getSRTTransformString(i);w&&(o.patternTransform=w);var A=U("pattern","",o,[h]),b=Kt(A),T=a.patternCache,P=T[b];P||(P=a.zrId+"-p"+a.patternIdx++,T[b]=P,o.id=P,A=a.defs[P]=U("pattern",P,o,[h])),t[e]=l.getIdURL(P)}}function Au(r,t,e){var a=e.clipPathCache,i=e.defs,n=a[r.id];if(!n){n=e.zrId+"-c"+e.clipPathIdx++;var o={id:n};a[r.id]=n,i[n]=U("clipPath",n,o,[si(r,e)])}t["clip-path"]=l.getIdURL(n)}function oa(r){return document.createTextNode(r)}function fe(r,t,e){r.insertBefore(t,e)}function sa(r,t){r.removeChild(t)}function la(r,t){r.appendChild(t)}function ci(r){return r.parentNode}function vi(r){return r.nextSibling}function _t(r,t){r.textContent=t}var ua=58,bu=120,Du=U("","");function Rt(r){return r===void 0}function ne(r){return r!==void 0}function Iu(r,t,e){for(var a={},i=t;i<=e;++i){var n=r[i].key;n!==void 0&&(process.env.NODE_ENV!=="production"&&a[n]!=null&&console.error("Duplicate key "+n),a[n]=i)}return a}function Le(r,t){var e=r.key===t.key,a=r.tag===t.tag;return a&&e}function Ve(r){var t,e=r.children,a=r.tag;if(ne(a)){var i=r.elm=ri(a);if(er(Du,r),l.isArray(e))for(t=0;t<e.length;++t){var n=e[t];n!=null&&la(i,Ve(n))}else ne(r.text)&&!l.isObject(r.text)&&la(i,oa(r.text))}else r.elm=oa(r.text);return r.elm}function hi(r,t,e,a,i){for(;a<=i;++a){var n=e[a];n!=null&&fe(r,Ve(n),t)}}function Ye(r,t,e,a){for(;e<=a;++e){var i=t[e];if(i!=null)if(ne(i.tag)){var n=ci(i.elm);sa(n,i.elm)}else sa(r,i.elm)}}function er(r,t){var e,a=t.elm,i=r&&r.attrs||{},n=t.attrs||{};if(i!==n){for(e in n){var o=n[e],s=i[e];s!==o&&(o===!0?a.setAttribute(e,""):o===!1?a.removeAttribute(e):e==="style"?a.style.cssText=o:e.charCodeAt(0)!==bu?a.setAttribute(e,o):e==="xmlns:xlink"||e==="xmlns"?a.setAttributeNS(nu,e,o):e.charCodeAt(3)===ua?a.setAttributeNS(ou,e,o):e.charCodeAt(5)===ua?a.setAttributeNS(ti,e,o):a.setAttribute(e,o))}for(e in i)e in n||a.removeAttribute(e)}}function Tu(r,t,e){for(var a=0,i=0,n=t.length-1,o=t[0],s=t[n],u=e.length-1,c=e[0],v=e[u],h,f,p,g;a<=n&&i<=u;)o==null?o=t[++a]:s==null?s=t[--n]:c==null?c=e[++i]:v==null?v=e[--u]:Le(o,c)?(me(o,c),o=t[++a],c=e[++i]):Le(s,v)?(me(s,v),s=t[--n],v=e[--u]):Le(o,v)?(me(o,v),fe(r,o.elm,vi(s.elm)),o=t[++a],v=e[--u]):Le(s,c)?(me(s,c),fe(r,s.elm,o.elm),s=t[--n],c=e[++i]):(Rt(h)&&(h=Iu(t,a,n)),f=h[c.key],Rt(f)?fe(r,Ve(c),o.elm):(p=t[f],p.tag!==c.tag?fe(r,Ve(c),o.elm):(me(p,c),t[f]=void 0,fe(r,p.elm,o.elm))),c=e[++i]);(a<=n||i<=u)&&(a>n?(g=e[u+1]==null?null:e[u+1].elm,hi(r,g,e,i,u)):Ye(r,t,a,n))}function me(r,t){var e=t.elm=r.elm,a=r.children,i=t.children;r!==t&&(er(r,t),Rt(t.text)?ne(a)&&ne(i)?a!==i&&Tu(e,a,i):ne(i)?(ne(r.text)&&_t(e,""),hi(e,null,i,0,i.length-1)):ne(a)?Ye(e,a,0,a.length-1):ne(r.text)&&_t(e,""):r.text!==t.text&&(ne(a)&&Ye(e,a,0,a.length-1),_t(e,t.text)))}function Lu(r,t){if(Le(r,t))me(r,t);else{var e=r.elm,a=ci(e);Ve(t),a!==null&&(fe(a,t.elm,vi(e)),Ye(a,[r],0,0))}return t}var Pu=0,Cu=(function(){function r(t,e,a){if(this.type="svg",this.refreshHover=ca("refreshHover"),this.configLayer=ca("configLayer"),this.storage=e,this._opts=a=l.extend({},a),this.root=t,this._id="zr"+Pu++,this._oldVNode=Jr(a.width,a.height),t&&!a.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var n=this._svgDom=this._oldVNode.elm=ri("svg");er(null,this._oldVNode),i.appendChild(n),t.appendChild(i)}this.resize(a.width,a.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",Lu(this._oldVNode,t),this._oldVNode=t}},r.prototype.renderOneToVNode=function(t){return na(t,Nt(this._id))},r.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),a=this._width,i=this._height,n=Nt(this._id);n.animation=t.animation,n.willUpdate=t.willUpdate,n.compress=t.compress,n.emphasis=t.emphasis,n.ssr=this._opts.ssr;var o=[],s=this._bgVNode=Eu(a,i,this._backgroundColor,n);s&&o.push(s);var u=t.compress?null:this._mainVNode=U("g","main",{},[]);this._paintList(e,n,u?u.children:o),u&&o.push(u);var c=l.map(l.keys(n.defs),function(f){return n.defs[f]});if(c.length&&o.push(U("defs","defs",{},c)),t.animation){var v=uu(n.cssNodes,n.cssAnims,{newline:!0});if(v){var h=U("style","stl",{},[],v);o.push(h)}}return Jr(a,i,o,t.useViewBox)},r.prototype.renderToString=function(t){return t=t||{},Kt(this.renderToVNode({animation:l.retrieve2(t.cssAnimation,!0),emphasis:l.retrieve2(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:l.retrieve2(t.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(t,e,a){for(var i=t.length,n=[],o=0,s,u,c=0,v=0;v<i;v++){var h=t[v];if(!h.invisible){var f=h.__clipPaths,p=f&&f.length||0,g=u&&u.length||0,d=void 0;for(d=Math.max(p-1,g-1);d>=0&&!(f&&u&&f[d]===u[d]);d--);for(var y=g-1;y>d;y--)o--,s=n[o-1];for(var x=d+1;x<p;x++){var m={};Au(f[x],m,e);var S=U("g","clip-g-"+c++,m,[]);(s?s.children:a).push(S),n[o++]=S,s=S}u=f;var _=na(h,e);_&&(s?s.children:a).push(_)}}},r.prototype.resize=function(t,e){var a=this._opts,i=this.root,n=this._viewport;if(t!=null&&(a.width=t),e!=null&&(a.height=e),i&&n&&(n.style.display="none",t=l.getSize(i,0,a),e=l.getSize(i,1,a),n.style.display=""),this._width!==t||this._height!==e){if(this._width=t,this._height=e,n){var o=n.style;o.width=t+"px",o.height=e+"px"}if(l.isPattern(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",t),s.setAttribute("height",e));var u=this._bgVNode&&this._bgVNode.elm;u&&(u.setAttribute("width",t),u.setAttribute("height",e))}}},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(t){var e=this.renderToString(),a="data:image/svg+xml;";return t?(e=l.encodeBase64(e),e&&a+"base64,"+e):a+"charset=UTF-8,"+encodeURIComponent(e)},r})();function ca(r){return function(){process.env.NODE_ENV!=="production"&&l.logError('In SVG mode painter not support method "'+r+'"')}}function Eu(r,t,e,a){var i;if(e&&e!=="none")if(i=U("rect","bg",{width:r,height:t,x:"0",y:"0"}),l.isGradient(e))li({fill:e},i.attrs,"fill",a);else if(l.isPattern(e))ui({style:{fill:e},dirty:l.noop,getBoundingRect:function(){return{width:r,height:t}}},i.attrs,"fill",a);else{var n=l.normalizeColor(e),o=n.color,s=n.opacity;i.attrs.fill=o,s<1&&(i.attrs["fill-opacity"]=s)}return i}function Nu(r){r.registerPainter("svg",Cu)}I.use([I.install$1]);I.use([Nu]);I.use([va.install,wt.install,pe.install,fi.install,pi.install,Oi,sn,Gn,io,gi.install,fo,Yo,kt.install,is,oe.install,J.install$1,ps,mi.install,Ds,Es,Ws,Si.install]);I.use(_i.install);I.use(fl);I.use(J.install);I.use(Il);I.use(Ra);I.use(Cl);I.use(wi.install);I.use(oe.install$1);I.use(I.install);I.use(I.install$2);I.use(oe.install$2);I.use(Ai.install);I.use(bi.install);I.use(Ml);I.use(Ce.install);I.use(Di.install);I.use(Ii.install);I.use(zt.install);I.use(zt.install$1);I.use(zt.install$2);I.use(Ze.install);I.use(Ze.install$1);I.use(Ze.install$2);I.use(Bl);I.use(Jl);I.use(Ti.install);I.use(Li.installUniversalTransition);I.use(da);exports.installLabelLayout=da;