anyfile-cli 0.0.0-stage → 0.2.1

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 (354) hide show
  1. package/LICENSE +177 -0
  2. package/README.md +55 -2
  3. package/SKILL.md +101 -0
  4. package/chunks/browser-probe-5STDX455.mjs +17 -0
  5. package/chunks/browser-probe-F5RX44T3.mjs +24 -0
  6. package/chunks/chunk-2C34VMNV.mjs +108 -0
  7. package/chunks/chunk-3OZ56PUH.mjs +97 -0
  8. package/chunks/chunk-3YRWCQGV.mjs +38 -0
  9. package/chunks/chunk-53MJMIN4.mjs +23 -0
  10. package/chunks/chunk-5LOC7IST.mjs +372 -0
  11. package/chunks/chunk-5XTYLZF3.mjs +559 -0
  12. package/chunks/chunk-5ZHDYRGV.mjs +64 -0
  13. package/chunks/chunk-6CQL4K2K.mjs +21 -0
  14. package/chunks/chunk-6EVJJFOH.mjs +243 -0
  15. package/chunks/chunk-6NWSQGYE.mjs +68 -0
  16. package/chunks/chunk-7O5JLQE7.mjs +1 -0
  17. package/chunks/chunk-A6AQI6DF.mjs +321 -0
  18. package/chunks/chunk-AYF63UBE.mjs +79 -0
  19. package/chunks/chunk-B27PR6Q4.mjs +17 -0
  20. package/chunks/chunk-BP7LORL4.mjs +13 -0
  21. package/chunks/chunk-BVCRJLCD.mjs +109 -0
  22. package/chunks/chunk-CLSEE3VA.mjs +28 -0
  23. package/chunks/chunk-CO2ZAQIK.mjs +52 -0
  24. package/chunks/chunk-CQWM5GMU.mjs +167 -0
  25. package/chunks/chunk-CZFFYCMJ.mjs +136 -0
  26. package/chunks/chunk-D3CS6TIK.mjs +419 -0
  27. package/chunks/chunk-DJLFVMDJ.mjs +807 -0
  28. package/chunks/chunk-DJXVCKIO.mjs +30 -0
  29. package/chunks/chunk-EMXODK3K.mjs +94 -0
  30. package/chunks/chunk-EOJ7ZCDK.mjs +227 -0
  31. package/chunks/chunk-H4TBN22D.mjs +100 -0
  32. package/chunks/chunk-HI7TURZM.mjs +2256 -0
  33. package/chunks/chunk-HUSX3ZU3.mjs +58 -0
  34. package/chunks/chunk-IC3G2XE2.mjs +436 -0
  35. package/chunks/chunk-IGEGIF35.mjs +2034 -0
  36. package/chunks/chunk-IZGTVZHE.mjs +90 -0
  37. package/chunks/chunk-J4G7LUPA.mjs +117 -0
  38. package/chunks/chunk-JBAJW66L.mjs +4220 -0
  39. package/chunks/chunk-JKQUF2MM.mjs +438 -0
  40. package/chunks/chunk-KAMPC5TK.mjs +131 -0
  41. package/chunks/chunk-KSKEMJVC.mjs +145 -0
  42. package/chunks/chunk-LRHHRZLE.mjs +29 -0
  43. package/chunks/chunk-M37ZOAUG.mjs +93 -0
  44. package/chunks/chunk-MG7LUDXO.mjs +187 -0
  45. package/chunks/chunk-NGVHHTQD.mjs +125 -0
  46. package/chunks/chunk-NQ7J2NH6.mjs +50 -0
  47. package/chunks/chunk-NUMNHVSI.mjs +60 -0
  48. package/chunks/chunk-ORJ3DN65.mjs +58 -0
  49. package/chunks/chunk-QOUEBPPL.mjs +15 -0
  50. package/chunks/chunk-QR3Y3UKM.mjs +194 -0
  51. package/chunks/chunk-RFKYE7SE.mjs +50 -0
  52. package/chunks/chunk-SH57XOAV.mjs +33 -0
  53. package/chunks/chunk-TB5ISPA4.mjs +1 -0
  54. package/chunks/chunk-UGAU3V4V.mjs +206 -0
  55. package/chunks/chunk-WDN6NMVU.mjs +36 -0
  56. package/chunks/chunk-WWTLSPEG.mjs +3999 -0
  57. package/chunks/chunk-XDW56XVX.mjs +69 -0
  58. package/chunks/chunk-XRT7TAAY.mjs +27 -0
  59. package/chunks/chunk-XTW4HNIJ.mjs +418 -0
  60. package/chunks/chunk-YPLWNGCC.mjs +17 -0
  61. package/chunks/chunk-ZBR7RQQE.mjs +64 -0
  62. package/chunks/chunk-ZUHJIGHP.mjs +300 -0
  63. package/chunks/deflate-IINN6MRE.mjs +19 -0
  64. package/chunks/jpeg-N3DSYEAQ.mjs +964 -0
  65. package/chunks/jxl_oxide_wasm-3UN6G3YN.mjs +589 -0
  66. package/chunks/lerc-5LP7Q554.mjs +2086 -0
  67. package/chunks/lzw-Z2ZZBEWD.mjs +137 -0
  68. package/chunks/packbits-3S2JASDB.mjs +34 -0
  69. package/chunks/pdf.worker-PUGU2NS2.mjs +67416 -0
  70. package/chunks/probe-22WNVZ3I.mjs +17 -0
  71. package/chunks/probe-2P4CTFCY.mjs +14 -0
  72. package/chunks/probe-2QBNDPYK.mjs +18 -0
  73. package/chunks/probe-34TOVXUI.mjs +11 -0
  74. package/chunks/probe-3W2HOWBM.mjs +20 -0
  75. package/chunks/probe-42OBMD35.mjs +23 -0
  76. package/chunks/probe-43RVHUBG.mjs +17 -0
  77. package/chunks/probe-4O362IEX.mjs +18 -0
  78. package/chunks/probe-4WF34ZXS.mjs +11 -0
  79. package/chunks/probe-5ZITS3T5.mjs +40 -0
  80. package/chunks/probe-5ZS5DHFP.mjs +21 -0
  81. package/chunks/probe-62RFYKCP.mjs +14 -0
  82. package/chunks/probe-64JTFRH4.mjs +41 -0
  83. package/chunks/probe-6YJQJJ3R.mjs +518 -0
  84. package/chunks/probe-6YMOOV53.mjs +39 -0
  85. package/chunks/probe-BYBD2WAK.mjs +239 -0
  86. package/chunks/probe-CZZNJOHV.mjs +20 -0
  87. package/chunks/probe-DJMPK6HU.mjs +11 -0
  88. package/chunks/probe-FMWIF4LX.mjs +33 -0
  89. package/chunks/probe-FYPH6CYY.mjs +206 -0
  90. package/chunks/probe-G6PPXKBE.mjs +15 -0
  91. package/chunks/probe-GJ5OUOQ3.mjs +32 -0
  92. package/chunks/probe-H6J7TUY2.mjs +95 -0
  93. package/chunks/probe-IGZ47OE3.mjs +68 -0
  94. package/chunks/probe-IL5HO3OK.mjs +46 -0
  95. package/chunks/probe-INYCDZHO.mjs +27 -0
  96. package/chunks/probe-JFH545GO.mjs +11 -0
  97. package/chunks/probe-JZYDRITV.mjs +18 -0
  98. package/chunks/probe-K3WW5O5K.mjs +26 -0
  99. package/chunks/probe-KB4T466L.mjs +70 -0
  100. package/chunks/probe-KY7SIIXD.mjs +13 -0
  101. package/chunks/probe-L2P263WT.mjs +16 -0
  102. package/chunks/probe-LEP3RQPD.mjs +11 -0
  103. package/chunks/probe-M2QWULOI.mjs +119 -0
  104. package/chunks/probe-M7AYZBD3.mjs +35 -0
  105. package/chunks/probe-MEN3BMBB.mjs +22 -0
  106. package/chunks/probe-MNIGKDWT.mjs +163 -0
  107. package/chunks/probe-NFVFWB4M.mjs +56 -0
  108. package/chunks/probe-NJGSTL6R.mjs +161 -0
  109. package/chunks/probe-O73EHWT3.mjs +14 -0
  110. package/chunks/probe-OG2XYCG2.mjs +25 -0
  111. package/chunks/probe-OTKJKTNS.mjs +10 -0
  112. package/chunks/probe-OZKO3C2V.mjs +27 -0
  113. package/chunks/probe-PBL4KITG.mjs +12 -0
  114. package/chunks/probe-PEFZNH2T.mjs +21 -0
  115. package/chunks/probe-R4SSEXES.mjs +27 -0
  116. package/chunks/probe-RCAUVV27.mjs +29 -0
  117. package/chunks/probe-RPGBKGPI.mjs +20 -0
  118. package/chunks/probe-S2I46SEO.mjs +10 -0
  119. package/chunks/probe-SGDD4U4Q.mjs +165 -0
  120. package/chunks/probe-SPQO5LHI.mjs +9 -0
  121. package/chunks/probe-TBR6UGRZ.mjs +19 -0
  122. package/chunks/probe-TNKNILAW.mjs +21 -0
  123. package/chunks/probe-TVRJBPXH.mjs +48 -0
  124. package/chunks/probe-UESMTUQ5.mjs +33 -0
  125. package/chunks/probe-VDXFEZ5Q.mjs +16 -0
  126. package/chunks/probe-VX7JCDW6.mjs +39 -0
  127. package/chunks/probe-W7M55OPE.mjs +64 -0
  128. package/chunks/probe-XUBTIWGE.mjs +13 -0
  129. package/chunks/probe-ZF7KIRHO.mjs +36 -0
  130. package/chunks/raw-JJRPYAXO.mjs +16 -0
  131. package/chunks/tiff-metadata-7MWLNVW2.mjs +2990 -0
  132. package/chunks/webimage-D6XSCCTJ.mjs +56 -0
  133. package/chunks/zip-reader-YUGANW4Z.mjs +92 -0
  134. package/chunks/zstd-AH2S24PU.mjs +121 -0
  135. package/cli-main.mjs +297 -0
  136. package/cli.mjs +3 -0
  137. package/extractors/apple-plist.mjs +145 -0
  138. package/extractors/archive-metadata-viewer.mjs +1401 -0
  139. package/extractors/bittorrent-metadata.mjs +369 -0
  140. package/extractors/calendar-contacts.mjs +328 -0
  141. package/extractors/camera-raw.mjs +201 -0
  142. package/extractors/chm-reader.mjs +1842 -0
  143. package/extractors/comic-book-reader.mjs +307 -0
  144. package/extractors/design-source.mjs +1801 -0
  145. package/extractors/dev-array-viewer.mjs +825 -0
  146. package/extractors/dev-native-binary-viewer.mjs +1661 -0
  147. package/extractors/dev-source-map-viewer.mjs +416 -0
  148. package/extractors/dev-wasm-viewer.mjs +506 -0
  149. package/extractors/dicom.mjs +383 -0
  150. package/extractors/djvu-reader.mjs +337 -0
  151. package/extractors/duckdb-data.mjs +49174 -0
  152. package/extractors/epub-reader.mjs +222 -0
  153. package/extractors/excel-workbook.mjs +27057 -0
  154. package/extractors/fictionbook-reader.mjs +362 -0
  155. package/extractors/font-viewer.mjs +441 -0
  156. package/extractors/general-raster.mjs +444 -0
  157. package/extractors/hdr-image.mjs +1685 -0
  158. package/extractors/http-archive.mjs +306 -0
  159. package/extractors/ifc.mjs +341 -0
  160. package/extractors/iwork.mjs +640 -0
  161. package/extractors/microsoft-project.mjs +174 -0
  162. package/extractors/mind-map.mjs +607 -0
  163. package/extractors/ml-weights.mjs +649 -0
  164. package/extractors/modern-raster.mjs +620 -0
  165. package/extractors/ofd-reader.mjs +973 -0
  166. package/extractors/outlook-pst.mjs +997 -0
  167. package/extractors/pdfjs-pdf.mjs +32056 -0
  168. package/extractors/photoshop-document.mjs +17448 -0
  169. package/extractors/safe-svg.mjs +163 -0
  170. package/extractors/scientific-data.mjs +2041 -0
  171. package/extractors/sqlite-database.mjs +333 -0
  172. package/extractors/statistical-data.mjs +297 -0
  173. package/extractors/visio.mjs +141 -0
  174. package/extractors/x509-certificate.mjs +588 -0
  175. package/extractors/xps-reader.mjs +896 -0
  176. package/index.mjs +83 -0
  177. package/licenses/dicom-parser/1.8.21/LICENSE +21 -0
  178. package/licenses/libraw-wasm/1.6.0/COPYRIGHT.LibRaw +27 -0
  179. package/licenses/libraw-wasm/1.6.0/LICENSE.Emscripten +102 -0
  180. package/licenses/libraw-wasm/1.6.0/LICENSE.LibRaw-CDDL-1.0 +340 -0
  181. package/licenses/libraw-wasm/1.6.0/LICENSE.Little-CMS-MIT +22 -0
  182. package/licenses/libraw-wasm/1.6.0/LICENSE.libpng +134 -0
  183. package/licenses/libraw-wasm/1.6.0/LICENSE.libraw-wasm-ISC +15 -0
  184. package/licenses/libraw-wasm/1.6.0/LICENSE.zlib +22 -0
  185. package/licenses/libraw-wasm/1.6.0/NOTICE.IJG-libjpeg +49 -0
  186. package/licenses/libraw-wasm/1.6.0/SOURCE.md +25 -0
  187. package/licenses/libraw-wasm/1.6.0/THIRD_PARTY_NOTICES.md +14 -0
  188. package/licenses/mediabunny/1.55.3/MPL-2.0.txt +373 -0
  189. package/licenses/mediabunny/1.55.3/SOURCE.md +16 -0
  190. package/licenses/openskp/1.3.0/LICENSE +21 -0
  191. package/package.json +34 -4
  192. package/renderer-host/assets/ColladaComposer-TCm9fgZa.js +1 -0
  193. package/renderer-host/assets/ColladaParser-BHTzbhBz.js +3 -0
  194. package/renderer-host/assets/FBXLoader-D1vDnL3o.js +8 -0
  195. package/renderer-host/assets/agent-CKvDbj87.js +1 -0
  196. package/renderer-host/assets/amf-BkE--DNX.js +1 -0
  197. package/renderer-host/assets/animation-Dt0WW2cB.js +1 -0
  198. package/renderer-host/assets/archive-client-CL5yOgwH.js +1 -0
  199. package/renderer-host/assets/archive.worker-CcLnJ9FC.js +1 -0
  200. package/renderer-host/assets/audio-visualizer-CiyGNhY2.js +1 -0
  201. package/renderer-host/assets/basedecoder-BuG7fe0q.js +1 -0
  202. package/renderer-host/assets/book-source-28BQcBKR.js +1 -0
  203. package/renderer-host/assets/book-worker-DUt14LJO.js +1 -0
  204. package/renderer-host/assets/browser-C0pGRq_c.js +1 -0
  205. package/renderer-host/assets/client-CU2ERPtk.js +1 -0
  206. package/renderer-host/assets/container-inspection-ekEPWWcy.js +1 -0
  207. package/renderer-host/assets/data-table-OJQe3aN5.js +1 -0
  208. package/renderer-host/assets/decode-hBroL8C1.js +1 -0
  209. package/renderer-host/assets/decode-tiff-CP1xdrF_.js +5 -0
  210. package/renderer-host/assets/decoder-worker-B0sdTVlF.js +1 -0
  211. package/renderer-host/assets/decoder-worker-CBiHE971.js +3 -0
  212. package/renderer-host/assets/decoder-worker-Cr5oP97p.js +5 -0
  213. package/renderer-host/assets/decoder-worker-DIdLFebY.js +11 -0
  214. package/renderer-host/assets/decoder-worker-DLeuEYxq.js +1 -0
  215. package/renderer-host/assets/decoder.worker-BXAaF0Qj.js +1 -0
  216. package/renderer-host/assets/decoder.worker-yaM6uups.js +1 -0
  217. package/renderer-host/assets/deflate-DPjr4M2G.js +1 -0
  218. package/renderer-host/assets/deflate-S3QmZI-f.js +1 -0
  219. package/renderer-host/assets/dual-track-playback-CxjGms-W.js +1 -0
  220. package/renderer-host/assets/ext-searchbox-BIdon51Z.js +164 -0
  221. package/renderer-host/assets/ffmpeg-playback-DzCJz9Ny.js +1 -0
  222. package/renderer-host/assets/gltf-PozNLKNg.js +1 -0
  223. package/renderer-host/assets/hdf5.worker-BO3TrRup.js +1 -0
  224. package/renderer-host/assets/heif-worker-CC9DI3ZR.js +1 -0
  225. package/renderer-host/assets/id3-uzaDmDwy.js +1 -0
  226. package/renderer-host/assets/ifc.worker-KIbgAIsy.js +1 -0
  227. package/renderer-host/assets/image-load-SK3ULGWm.js +1 -0
  228. package/renderer-host/assets/index-DtiyOy_J.js +2 -0
  229. package/renderer-host/assets/jpeg-AGQ46WDa.js +1 -0
  230. package/renderer-host/assets/jpeg-Dm0yBuYB.js +1 -0
  231. package/renderer-host/assets/jszip.min-DCdQ6XWv.js +2 -0
  232. package/renderer-host/assets/jxl_oxide_wasm-BJKDqoXP.js +1 -0
  233. package/renderer-host/assets/jxl_oxide_wasm_bg-C5JqlrFv.wasm +0 -0
  234. package/renderer-host/assets/kernel.worker-B58X9XWu.js +1 -0
  235. package/renderer-host/assets/kernel.worker-BcQYKb39.js +8 -0
  236. package/renderer-host/assets/kernel.worker-BdWmPdqg.js +1 -0
  237. package/renderer-host/assets/kernel.worker-C7qxomuK.js +1 -0
  238. package/renderer-host/assets/kernel.worker-D88TbQnz.js +1 -0
  239. package/renderer-host/assets/laz-Lt10LsWd.js +1 -0
  240. package/renderer-host/assets/lerc-BxVqCKaH.js +3 -0
  241. package/renderer-host/assets/lerc-Cuor-Zm2.js +1 -0
  242. package/renderer-host/assets/lzw-D2FslT4L.js +1 -0
  243. package/renderer-host/assets/lzw-DODNa9l5.js +1 -0
  244. package/renderer-host/assets/mediabunny-viewer-BniHVEWJ.js +16 -0
  245. package/renderer-host/assets/model-Drd3vqcF.js +1 -0
  246. package/renderer-host/assets/obj-B3p81LL2.js +9 -0
  247. package/renderer-host/assets/off-QQbiKPTX.js +1 -0
  248. package/renderer-host/assets/ogg-probe-C2TT74FL.js +1 -0
  249. package/renderer-host/assets/ogg-viewer-Dc8K-tas.js +9 -0
  250. package/renderer-host/assets/packbits-DCimUQ1T.js +1 -0
  251. package/renderer-host/assets/paged-C8AQD7sX.js +319 -0
  252. package/renderer-host/assets/pako.esm-0UYEm1Jg.js +2 -0
  253. package/renderer-host/assets/pako.esm-CtVA0R7W.js +1 -0
  254. package/renderer-host/assets/pdf.worker.min-CHFwMXne.mjs +29 -0
  255. package/renderer-host/assets/ply-C3_RRA7n.js +2 -0
  256. package/renderer-host/assets/points.worker-CA8v75dl.js +2 -0
  257. package/renderer-host/assets/probe-asf-C_UpCBly.js +14 -0
  258. package/renderer-host/assets/range-reader-BMfLhWcp.js +1 -0
  259. package/renderer-host/assets/raw-A-vJRPpa.js +1 -0
  260. package/renderer-host/assets/resource-cache-CHocY8K3.js +1 -0
  261. package/renderer-host/assets/resources-6AmS6O5e.js +1 -0
  262. package/renderer-host/assets/rolldown-runtime-Dd_uD5pT.js +1 -0
  263. package/renderer-host/assets/safe-content-CWHf8jex.js +1 -0
  264. package/renderer-host/assets/sanitize-D56ODnaM.js +1 -0
  265. package/renderer-host/assets/scene-adapter-CaCLr1am.js +1 -0
  266. package/renderer-host/assets/scene.worker-CJViWLYo.js +24 -0
  267. package/renderer-host/assets/scene.worker-D7koFZY8.js +2 -0
  268. package/renderer-host/assets/skp-adapter-jl6q24fW.js +1 -0
  269. package/renderer-host/assets/skp.worker-D9ujTXFV.js +1 -0
  270. package/renderer-host/assets/src-1Won7FxU.js +88 -0
  271. package/renderer-host/assets/src-3RoHqOkA.js +7 -0
  272. package/renderer-host/assets/src-4zBOL6Jt.js +1 -0
  273. package/renderer-host/assets/src-6v8-hoR3.js +24 -0
  274. package/renderer-host/assets/src-8Jx9gbII.js +1 -0
  275. package/renderer-host/assets/src-B1WA0dRu.js +64 -0
  276. package/renderer-host/assets/src-B5ijbemo.js +9 -0
  277. package/renderer-host/assets/src-B8DH2GJe.js +17 -0
  278. package/renderer-host/assets/src-B9t_iEO3.js +58 -0
  279. package/renderer-host/assets/src-BCC58C0X.js +1 -0
  280. package/renderer-host/assets/src-BCwENs26.js +1 -0
  281. package/renderer-host/assets/src-BEirBh4c.js +27 -0
  282. package/renderer-host/assets/src-BHR6n7Fj.js +1 -0
  283. package/renderer-host/assets/src-BIlLq0QT.js +169 -0
  284. package/renderer-host/assets/src-BKlK1jcN.js +1 -0
  285. package/renderer-host/assets/src-BN0FUJhs.js +8 -0
  286. package/renderer-host/assets/src-BWElAdlq.js +52 -0
  287. package/renderer-host/assets/src-BXg11IjY.js +4 -0
  288. package/renderer-host/assets/src-BbBdnTjJ.js +2 -0
  289. package/renderer-host/assets/src-BbFZbZsL.js +2 -0
  290. package/renderer-host/assets/src-BdPbFRd-.js +24 -0
  291. package/renderer-host/assets/src-BpbGaBrT.js +182 -0
  292. package/renderer-host/assets/src-BwIl76_H.js +7 -0
  293. package/renderer-host/assets/src-C2e6QJIj.js +10 -0
  294. package/renderer-host/assets/src-C2gNidHF.js +989 -0
  295. package/renderer-host/assets/src-C9Uz3C-q.js +432 -0
  296. package/renderer-host/assets/src-CBUhG6W5.js +7 -0
  297. package/renderer-host/assets/src-CQDGi3Qa.js +10 -0
  298. package/renderer-host/assets/src-CRLCRg0N.js +21 -0
  299. package/renderer-host/assets/src-CS5rqxBy.js +10 -0
  300. package/renderer-host/assets/src-CWZdSJQw.js +7 -0
  301. package/renderer-host/assets/src-CXnpsVpU.js +27 -0
  302. package/renderer-host/assets/src-CnhXvqQY.js +8 -0
  303. package/renderer-host/assets/src-CpExg0ZA.js +9 -0
  304. package/renderer-host/assets/src-CrLmL3wU.js +5 -0
  305. package/renderer-host/assets/src-CrYEJ5uz.js +2 -0
  306. package/renderer-host/assets/src-D-iIkSqZ.js +222 -0
  307. package/renderer-host/assets/src-D6sH9uTT.js +23 -0
  308. package/renderer-host/assets/src-D8zHDJh_.js +10 -0
  309. package/renderer-host/assets/src-D9OFaPNV.js +1 -0
  310. package/renderer-host/assets/src-DCI_ff7c.js +1 -0
  311. package/renderer-host/assets/src-DCrbiTpH.js +18 -0
  312. package/renderer-host/assets/src-DK8DvtMd.js +115 -0
  313. package/renderer-host/assets/src-DWGlOVjt.js +17 -0
  314. package/renderer-host/assets/src-DbvEX_Ct.js +6 -0
  315. package/renderer-host/assets/src-Dezc2dj1.js +1 -0
  316. package/renderer-host/assets/src-Dh5VD1lL.js +11 -0
  317. package/renderer-host/assets/src-DlwABqw5.js +1 -0
  318. package/renderer-host/assets/src-DlxETlTh.js +44 -0
  319. package/renderer-host/assets/src-Dmd6BvBh.js +387 -0
  320. package/renderer-host/assets/src-DpgvaJNJ.js +24 -0
  321. package/renderer-host/assets/src-DpjRB2sv.js +1 -0
  322. package/renderer-host/assets/src-Dvn41FR7.js +90 -0
  323. package/renderer-host/assets/src-DwcPYp7X.js +1 -0
  324. package/renderer-host/assets/src-HUxhcDlO.js +2 -0
  325. package/renderer-host/assets/src-Jhqg3J8L.js +2 -0
  326. package/renderer-host/assets/src-MO5bLsLj.js +4126 -0
  327. package/renderer-host/assets/src-N8XBQaK4.js +20 -0
  328. package/renderer-host/assets/src-XZ_0U972.js +1 -0
  329. package/renderer-host/assets/src-Y6mXl4vh.js +29 -0
  330. package/renderer-host/assets/src-b9aXVJde.js +100 -0
  331. package/renderer-host/assets/src-d2U6neq8.js +37 -0
  332. package/renderer-host/assets/src-hCrza_Lf.js +1 -0
  333. package/renderer-host/assets/src-jUGjKzOV.js +1 -0
  334. package/renderer-host/assets/src-rJN_jaC5.js +1 -0
  335. package/renderer-host/assets/src-vOBd-1zk.js +5 -0
  336. package/renderer-host/assets/src-wrrVkfrK.js +1 -0
  337. package/renderer-host/assets/src-yCrAObB-.js +1 -0
  338. package/renderer-host/assets/src-zrBiCtay.js +7 -0
  339. package/renderer-host/assets/stl-adapter-CLkWHoOn.js +1 -0
  340. package/renderer-host/assets/stl.worker-C-anHijM.js +1 -0
  341. package/renderer-host/assets/three-mf-BSrcsdQD.js +2 -0
  342. package/renderer-host/assets/webimage-zQMH-_zR.js +1 -0
  343. package/renderer-host/assets/webm-14HHwfWy.js +1 -0
  344. package/renderer-host/assets/worker-QK2gViTu.js +1 -0
  345. package/renderer-host/assets/x6-dng-worker-CNf3zUP-.js +1 -0
  346. package/renderer-host/assets/xml.browser-CC8-XAyN.js +1 -0
  347. package/renderer-host/assets/zip-core-base-DD8akpjq.js +1 -0
  348. package/renderer-host/assets/zip-core-custom-CfPFs1lw.js +1 -0
  349. package/renderer-host/assets/zip-source-CLF3Hfcg.js +1 -0
  350. package/renderer-host/assets/zstd-CmwSLjHB.js +1 -0
  351. package/renderer-host/assets/zstd-i4Jwubnx.js +1 -0
  352. package/renderer-host/index.html +65 -0
  353. package/vendor-manifest.json +1433 -0
  354. package/worker.mjs +262 -0
@@ -0,0 +1,100 @@
1
+ import{i as e,n as t}from"./rolldown-runtime-Dd_uD5pT.js";import{t as n}from"./src-rJN_jaC5.js";import{t as r}from"./agent-CKvDbj87.js";import{a as i,l as a,o}from"./index-DtiyOy_J.js";import{t as s}from"./jszip.min-DCdQ6XWv.js";var c=function(e,t){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},c(e,t)};function l(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);c(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var u=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),d=new(function(){function e(){this.browser=new u,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<`u`}return e}());typeof wx==`object`&&typeof wx.getSystemInfoSync==`function`?(d.wxa=!0,d.touchEventsSupported=!0):typeof document>`u`&&typeof self<`u`?d.worker=!0:!d.hasGlobalWindow||`Deno`in window||typeof navigator<`u`&&typeof navigator.userAgent==`string`&&navigator.userAgent.indexOf(`Node.js`)>-1?(d.node=!0,d.svgSupported=!0):f(navigator.userAgent,d);function f(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);if(r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),a&&(n.edge=!0,n.version=a[1],n.newEdge=+a[1].split(`.`)[0]>18),o&&(n.weChat=!0),t.svgSupported=typeof SVGRect<`u`,t.touchEventsSupported=`ontouchstart`in window&&!n.ie&&!n.edge,t.pointerEventsSupported=`onpointerdown`in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported=typeof document<`u`){var s=document.documentElement.style;t.transform3dSupported=(n.ie&&`transition`in s||n.edge||`WebKitCSSMatrix`in window&&`m11`in new WebKitCSSMatrix||`MozPerspective`in s)&&!(`OTransition`in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}}var p=`12px sans-serif`,m=20,h=100,g=`007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N`;function _(e){var t={};if(typeof JSON>`u`)return t;for(var n=0;n<e.length;n++){var r=String.fromCharCode(n+32);t[r]=(e.charCodeAt(n)-m)/h}return t}var v=_(g),y={createCanvas:function(){return typeof document<`u`&&document.createElement(`canvas`)},measureText:(function(){var e,t;return function(n,r){if(!e){var i=y.createCanvas();e=i&&i.getContext(`2d`)}if(e)return t!==r&&(t=e.font=r||`12px sans-serif`),e.measureText(n);n||=``,r||=`12px sans-serif`;var a=/((?:\d+)?\.?\d*)px/.exec(r),o=a&&+a[1]||12,s=0;if(r.indexOf(`mono`)>=0)s=o*n.length;else for(var c=0;c<n.length;c++){var l=v[n[c]];s+=l==null?o:l*o}return{width:s}}})(),loadImage:function(e,t,n){var r=new Image;return r.onload=t,r.onerror=n,r.src=e,r},getTime:function(){return Date.now?Date.now():+new Date}},b=re([`Function`,`RegExp`,`Date`,`Error`,`CanvasGradient`,`CanvasPattern`,`Image`,`Canvas`],function(e,t){return e[`[object `+t+`]`]=!0,e},{}),x=re([`Int8`,`Uint8`,`Uint8Clamped`,`Int16`,`Uint16`,`Int32`,`Uint32`,`Float32`,`Float64`],function(e,t){return e[`[object `+t+`Array]`]=!0,e},{}),S=Object.prototype.toString,C=Array.prototype,w=C.forEach,T=C.filter,E=C.slice,D=C.map,O=function(){}.constructor,k=O?O.prototype:null,A=`__proto__`,j=2311,M=2**53-1;function N(){return j>=M&&(j=0),j++}function P(){var e=[...arguments];typeof console<`u`&&console.error.apply(console,e)}function F(e){if(typeof e!=`object`||!e)return e;var t=e,n=S.call(e);if(n===`[object Array]`){if(!Oe(e)){t=[];for(var r=0,i=e.length;r<i;r++)t[r]=F(e[r])}}else if(x[n]){if(!Oe(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var r=0,i=e.length;r<i;r++)t[r]=e[r]}}}else if(!b[n]&&!Oe(e)&&!ge(e))for(var o in t={},e)e.hasOwnProperty(o)&&o!==A&&(t[o]=F(e[o]));return t}function I(e,t,n){if(!pe(t)||!pe(e))return n?F(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==A){var i=e[r],a=t[r];pe(a)&&pe(i)&&!U(a)&&!U(i)&&!ge(a)&&!ge(i)&&!me(a)&&!me(i)&&!Oe(a)&&!Oe(i)?I(i,a,n):(n||!(r in e))&&(e[r]=F(t[r]))}return e}function L(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==A&&(e[n]=t[n]);return e}function R(e,t,n){e||={};for(var r=0;r<n.length;r++){var i=n[r];e[i]=t[i]}return e}function z(e,t,n){for(var r=oe(t),i=0,a=r.length;i<a;i++){var o=r[i];(n?t[o]!=null:e[o]==null)&&(e[o]=t[o])}return e}y.createCanvas;function B(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n}return-1}function ee(e,t){var n=e.prototype;function r(){}for(var i in r.prototype=t.prototype,e.prototype=new r,n)n.hasOwnProperty(i)&&(e.prototype[i]=n[i]);e.prototype.constructor=e,e.superClass=t}function te(e,t,n){if(e=`prototype`in e?e.prototype:e,t=`prototype`in t?t.prototype:t,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(t),i=0;i<r.length;i++){var a=r[i];a!==`constructor`&&(n?t[a]!=null:e[a]==null)&&(e[a]=t[a])}else z(e,t,n)}function ne(e){return!e||typeof e==`string`?!1:typeof e.length==`number`}function V(e,t,n){if(e&&t){if(e.forEach&&e.forEach===w)e.forEach(t,n);else if(e.length===+e.length)for(var r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(n,e[a],a,e)}}function H(e,t,n){if(!e)return[];if(!t)return Se(e);if(e.map&&e.map===D)return e.map(t,n);for(var r=[],i=0,a=e.length;i<a;i++)r.push(t.call(n,e[i],i,e));return r}function re(e,t,n,r){if(e&&t){for(var i=0,a=e.length;i<a;i++)n=t.call(r,n,e[i],i,e);return n}}function ie(e,t,n){if(!e)return[];if(!t)return Se(e);if(e.filter&&e.filter===T)return e.filter(t,n);for(var r=[],i=0,a=e.length;i<a;i++)t.call(n,e[i],i,e)&&r.push(e[i]);return r}function ae(e,t,n){if(e&&t){for(var r=0,i=e.length;r<i;r++)if(t.call(n,e[r],r,e))return e[r]}}function oe(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}function se(e,t){var n=[...arguments].slice(2);return function(){return e.apply(t,n.concat(E.call(arguments)))}}var ce=k&&ue(k.bind)?k.call.bind(k.bind):se;function le(e){var t=[...arguments].slice(1);return function(){return e.apply(this,t.concat(E.call(arguments)))}}function U(e){return Array.isArray?Array.isArray(e):S.call(e)===`[object Array]`}function ue(e){return typeof e==`function`}function W(e){return typeof e==`string`}function de(e){return S.call(e)===`[object String]`}function fe(e){return typeof e==`number`}function pe(e){var t=typeof e;return t===`function`||!!e&&t===`object`}function me(e){return!!b[S.call(e)]}function he(e){return!!x[S.call(e)]}function ge(e){return typeof e==`object`&&typeof e.nodeType==`number`&&typeof e.ownerDocument==`object`}function _e(e){return e.colorStops!=null}function ve(e){return e.image!=null}function ye(e){return e!==e}function be(){for(var e=[...arguments],t=0,n=e.length;t<n;t++)if(e[t]!=null)return e[t]}function G(e,t){return e??t}function xe(e,t,n){return e??t??n}function Se(e){var t=[...arguments].slice(1);return E.apply(e,t)}function Ce(e){if(typeof e==`number`)return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function we(e,t){if(!e)throw Error(t)}function Te(e){return e==null?null:typeof e.trim==`function`?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``)}var Ee=`__ec_primitive__`;function De(e){e[Ee]=!0}function Oe(e){return e[Ee]}var ke=function(){function e(){this.data={}}return e.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},e.prototype.has=function(e){return this.data.hasOwnProperty(e)},e.prototype.get=function(e){return this.data[e]},e.prototype.set=function(e,t){return this.data[e]=t,this},e.prototype.keys=function(){return oe(this.data)},e.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},e}(),Ae=typeof Map==`function`;function je(){return Ae?new Map:new ke}var Me=function(){function e(t){var n=U(t);this.data=je();var r=this;t instanceof e?t.each(i):t&&V(t,i);function i(e,t){n?r.set(e,t):r.set(t,e)}}return e.prototype.hasKey=function(e){return this.data.has(e)},e.prototype.get=function(e){return this.data.get(e)},e.prototype.set=function(e,t){return this.data.set(e,t),t},e.prototype.each=function(e,t){this.data.forEach(function(n,r){e.call(t,n,r)})},e.prototype.keys=function(){var e=this.data.keys();return Ae?Array.from(e):e},e.prototype.removeKey=function(e){this.data.delete(e)},e}();function Ne(e){return new Me(e)}function Pe(e,t){for(var n=new e.constructor(e.length+t.length),r=0;r<e.length;r++)n[r]=e[r];for(var i=e.length,r=0;r<t.length;r++)n[r+i]=t[r];return n}function Fe(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&L(n,t),n}function Ie(e){var t=e.style;t.webkitUserSelect=`none`,t.userSelect=`none`,t.webkitTapHighlightColor=`rgba(0,0,0,0)`,t[`-webkit-touch-callout`]=`none`}function K(e,t){return e.hasOwnProperty(t)}function Le(){}var Re=180/Math.PI;function ze(e,t){return e??=0,t??=0,[e,t]}function Be(e,t){return e[0]=t[0],e[1]=t[1],e}function Ve(e){return[e[0],e[1]]}function He(e,t,n){return e[0]=t,e[1]=n,e}function Ue(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function We(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function Ge(e){return Math.sqrt(Ke(e))}function Ke(e){return e[0]*e[0]+e[1]*e[1]}function qe(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function Je(e,t){var n=Ge(t);return n===0?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function Ye(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var Xe=Ye;function Ze(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var Qe=Ze;function $e(e,t,n,r){return e[0]=t[0]+r*(n[0]-t[0]),e[1]=t[1]+r*(n[1]-t[1]),e}function et(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e}function tt(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function nt(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var rt=function(){function e(e,t){this.target=e,this.topTarget=t&&t.topTarget}return e}(),it=function(){function e(e){this.handler=e,e.on(`mousedown`,this._dragStart,this),e.on(`mousemove`,this._drag,this),e.on(`mouseup`,this._dragEnd,this)}return e.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new rt(t,e),`dragstart`,e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,r=e.offsetY,i=n-this._x,a=r-this._y;this._x=n,this._y=r,t.drift(i,a,e),this.handler.dispatchToElement(new rt(t,e),`drag`,e.event);var o=this.handler.findHover(n,r,t).target,s=this._dropTarget;this._dropTarget=o,t!==o&&(s&&o!==s&&this.handler.dispatchToElement(new rt(s,e),`dragleave`,e.event),o&&o!==s&&this.handler.dispatchToElement(new rt(o,e),`dragenter`,e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new rt(t,e),`dragend`,e.event),this._dropTarget&&this.handler.dispatchToElement(new rt(this._dropTarget,e),`drop`,e.event),this._draggingTarget=null,this._dropTarget=null},e}(),at=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,r){this._$handlers||={};var i=this._$handlers;if(typeof t==`function`&&(r=n,n=t,t=null),!n||!e)return this;var a=this._$eventProcessor;t!=null&&a&&a.normalizeQuery&&(t=a.normalizeQuery(t)),i[e]||(i[e]=[]);for(var o=0;o<i[e].length;o++)if(i[e][o].h===n)return this;var s={h:n,query:t,ctx:r||this,callAtLast:n.zrEventfulCallAtLast},c=i[e].length-1,l=i[e][c];return l&&l.callAtLast?i[e].splice(c,0,s):i[e].push(s),this},e.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},e.prototype.off=function(e,t){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var r=[],i=0,a=n[e].length;i<a;i++)n[e][i].h!==t&&r.push(n[e][i]);n[e]=r}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},e.prototype.trigger=function(e){var t=[...arguments].slice(1);if(!this._$handlers)return this;var n=this._$handlers[e],r=this._$eventProcessor;if(n)for(var i=t.length,a=n.length,o=0;o<a;o++){var s=n[o];if(!(r&&r.filter&&s.query!=null&&!r.filter(e,s.query)))switch(i){case 0:s.h.call(s.ctx);break;case 1:s.h.call(s.ctx,t[0]);break;case 2:s.h.call(s.ctx,t[0],t[1]);break;default:s.h.apply(s.ctx,t)}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e.prototype.triggerWithContext=function(e){var t=[...arguments].slice(1);if(!this._$handlers)return this;var n=this._$handlers[e],r=this._$eventProcessor;if(n)for(var i=t.length,a=t[i-1],o=n.length,s=0;s<o;s++){var c=n[s];if(!(r&&r.filter&&c.query!=null&&!r.filter(e,c.query)))switch(i){case 0:c.h.call(a);break;case 1:c.h.call(a,t[0]);break;case 2:c.h.call(a,t[0],t[1]);break;default:c.h.apply(a,t.slice(1,i-1))}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e}(),ot=Math.log(2);function st(e,t,n,r,i,a){var o=r+`-`+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var c=Math.round(Math.log((1<<s)-1&~i)/ot);return e[n][c]}for(var l=r|1<<n,u=n+1;r&1<<u;)u++;for(var d=0,f=0,p=0;f<s;f++){var m=1<<f;m&i||(d+=(p%2?-1:1)*e[n][f]*st(e,t-1,u,l,i|m,a),p++)}return a[o]=d,d}function ct(e,t){var n=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],r={},i=st(n,8,0,0,0,r);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]??(a[s]=0),a[s]+=((o+s)%2?-1:1)*st(n,7,+(o===0),1<<o,1<<s,r)/i*t[o];return function(e,t,n){var r=t*a[6]+n*a[7]+1;e[0]=(t*a[0]+n*a[1]+a[2])/r,e[1]=(t*a[3]+n*a[4]+a[5])/r}}}var lt=`___zrEVENTSAVED`,ut=[];function dt(e,t,n,r,i){return pt(ut,t,r,i,!0)&&pt(e,n,ut[0],ut[1])}function ft(e,t){e&&n(e),t&&n(t);function n(e){var t=e[lt];t&&(t.clearMarkers&&t.clearMarkers(),delete e[lt])}}function pt(e,t,n,r,i){if(t.getBoundingClientRect&&d.domSupported&&!gt(t)){var a=t[lt]||(t[lt]={}),o=ht(mt(t,a),a,i);if(o)return o(e,n,r),!0}return!1}function mt(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var r=[`left`,`right`],i=[`top`,`bottom`],a=0;a<4;a++){var o=document.createElement(`div`),s=o.style,c=a%2,l=(a>>1)%2;s.cssText=[`position: absolute`,`visibility: hidden`,`padding: 0`,`margin: 0`,`border-width: 0`,`user-select: none`,`width:0`,`height:0`,r[c]+`:0`,i[l]+`:0`,r[1-c]+`:auto`,i[1-l]+`:auto`,``].join(`!important;`),e.appendChild(o),n.push(o)}return t.clearMarkers=function(){V(n,function(e){e.parentNode&&e.parentNode.removeChild(e)})},n}function ht(e,t,n){for(var r=n?`invTrans`:`trans`,i=t[r],a=t.srcCoords,o=[],s=[],c=!0,l=0;l<4;l++){var u=e[l].getBoundingClientRect(),d=2*l,f=u.left,p=u.top;o.push(f,p),c=c&&a&&f===a[d]&&p===a[d+1],s.push(e[l].offsetLeft,e[l].offsetTop)}return c&&i?i:(t.srcCoords=o,t[r]=n?ct(s,o):ct(o,s))}function gt(e){return e.nodeName.toUpperCase()===`CANVAS`}var _t=/([&<>"'])/g,vt={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`};function yt(e){return e==null?``:(e+``).replace(_t,function(e,t){return vt[t]})}var bt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,xt=[],St=d.browser.firefox&&+d.browser.version.split(`.`)[0]<39;function Ct(e,t,n,r){return n||={},r?wt(e,t,n):St&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX==null?wt(e,t,n):(n.zrX=t.offsetX,n.zrY=t.offsetY),n}function wt(e,t,n){if(d.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(gt(e)){var a=e.getBoundingClientRect();n.zrX=r-a.left,n.zrY=i-a.top;return}if(pt(xt,e,r,i)){n.zrX=xt[0],n.zrY=xt[1];return}}n.zrX=n.zrY=0}function Tt(e){return e||window.event}function Et(e,t,n){if(t=Tt(t),t.zrX!=null)return t;var r=t.type;if(r&&r.indexOf(`touch`)>=0){var i=r===`touchend`?t.changedTouches[0]:t.targetTouches[0];i&&Ct(e,i,t,n)}else{Ct(e,t,t,n);var a=Dt(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var o=t.button;return t.which==null&&o!==void 0&&bt.test(t.type)&&(t.which=o&1?1:o&2?3:o&4?2:0),t}function Dt(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(n==null||r==null)return t;var i=Math.abs(r===0?n:r),a=r>0?-1:r<0?1:n>0?-1:1;return 3*i*a}function Ot(e,t,n,r){e.addEventListener(t,n,r)}function kt(e,t,n,r){e.removeEventListener(t,n,r)}var At=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},jt=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var r=e.touches;if(r){for(var i={points:[],touches:[],target:t,event:e},a=0,o=r.length;a<o;a++){var s=r[a],c=Ct(n,s,{});i.points.push([c.zrX,c.zrY]),i.touches.push(s)}this._track.push(i)}},e.prototype._recognize=function(e){for(var t in Pt)if(Pt.hasOwnProperty(t)){var n=Pt[t](this._track,e);if(n)return n}},e}();function Mt(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function Nt(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var Pt={pinch:function(e,t){var n=e.length;if(n){var r=(e[n-1]||{}).points,i=(e[n-2]||{}).points||r;if(i&&i.length>1&&r&&r.length>1){var a=Mt(r)/Mt(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=Nt(r);return t.pinchX=o[0],t.pinchY=o[1],{type:`pinch`,target:e[0].target,event:t}}}}};function Ft(){return[1,0,0,1,0,0]}function It(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function Lt(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function Rt(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],a=t[0]*n[2]+t[2]*n[3],o=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],c=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=c,e}function zt(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function Bt(e,t,n,r){r===void 0&&(r=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],c=t[3],l=t[5],u=Math.sin(n),d=Math.cos(n);return e[0]=i*d+s*u,e[1]=-i*u+s*d,e[2]=a*d+c*u,e[3]=-a*u+d*c,e[4]=d*(o-r[0])+u*(l-r[1])+r[0],e[5]=d*(l-r[1])-u*(o-r[0])+r[1],e}function Vt(e,t,n){var r=n[0],i=n[1];return e[0]=t[0]*r,e[1]=t[1]*i,e[2]=t[2]*r,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*i,e}function Ht(e,t){var n=t[0],r=t[2],i=t[4],a=t[1],o=t[3],s=t[5],c=n*o-a*r;return c?(c=1/c,e[0]=o*c,e[1]=-a*c,e[2]=-r*c,e[3]=n*c,e[4]=(r*s-o*i)*c,e[5]=(a*i-n*s)*c,e):null}var Ut=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,n){e.x=t,e.y=n},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},e.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},e.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},e.scaleAndAdd=function(e,t,n,r){e.x=t.x+n.x*r,e.y=t.y+n.y*r},e.lerp=function(e,t,n,r){var i=1-r;e.x=i*t.x+r*n.x,e.y=i*t.y+r*n.y},e}(),Wt=Math.min,Gt=Math.max,Kt=Math.abs,qt=[`x`,`y`],Jt=[`width`,`height`],Yt=new Ut,Xt=new Ut,Zt=new Ut,Qt=new Ut,$t=hn(),en=$t.minTv,tn=$t.maxTv,nn=[0,0],rn=function(){function e(e,t,n,r){on(this,e,t,n,r)}return e.set=function(e,t,n,r,i){return r<0&&(t+=r,r=-r),i<0&&(n+=i,i=-i),e.x=t,e.y=n,e.width=r,e.height=i,e},e.prototype.union=function(e){var t=Wt(e.x,this.x),n=Wt(e.y,this.y);this.width=isFinite(this.x)&&isFinite(this.width)?Gt(e.x+e.width,this.x+this.width)-t:e.width,this.height=isFinite(this.y)&&isFinite(this.height)?Gt(e.y+e.height,this.y+this.height)-n:e.height,this.x=t,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){return cn(Ft(),this,e)},e.prototype.intersect=function(t,n,r){return e.intersect(this,t,n,r)},e.intersect=function(t,n,r,i){r&&Ut.set(r,0,0);var a=i&&i.outIntersectRect||null,o=i&&i.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!t||!n)return!1;t instanceof e||(t=on(dn,t.x,t.y,t.width,t.height)),n instanceof e||(n=on(fn,n.x,n.y,n.width,n.height));var s=!!r;$t.reset(i,s);var c=$t.touchThreshold,l=t.x+c,u=t.x+t.width-c,d=t.y+c,f=t.y+t.height-c,p=n.x+c,m=n.x+n.width-c,h=n.y+c,g=n.y+n.height-c;if(l>u||d>f||p>m||h>g)return!1;var _=!(u<p||m<l||f<h||g<d);return(s||a)&&(nn[0]=1/0,nn[1]=0,mn(l,u,p,m,0,s,a,o),mn(d,f,h,g,1,s,a,o),s&&Ut.copy(r,_?$t.useDir?$t.dirMinTv:en:tn)),_},e.contain=function(e,t,n){return t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},e.prototype.contain=function(t,n){return e.contain(this,t,n)},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(e){sn(this,e)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t?t.x:0,t?t.y:0,t?t.width:0,t?t.height:0)},e.copy=function(e,t){return e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height,e},e.applyTransform=function(e,t,n){if(!n){e!==t&&sn(e,t);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var r=n[0],i=n[3],a=n[4],o=n[5];e.x=t.x*r+a,e.y=t.y*i+o,e.width=t.width*r,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Yt.x=Zt.x=t.x,Yt.y=Qt.y=t.y,Xt.x=Qt.x=t.x+t.width,Xt.y=Zt.y=t.y+t.height,Yt.transform(n),Qt.transform(n),Xt.transform(n),Zt.transform(n),e.x=Wt(Yt.x,Xt.x,Zt.x,Qt.x),e.y=Wt(Yt.y,Xt.y,Zt.y,Qt.y);var s=Gt(Yt.x,Xt.x,Zt.x,Qt.x),c=Gt(Yt.y,Xt.y,Zt.y,Qt.y);e.width=s-e.x,e.height=c-e.y},e.calculateTransform=function(e,t,n){var r=n.width/t.width,i=n.height/t.height;return e=It(e||[]),zt(e,e,He(pn,-t.x,-t.y)),Vt(e,e,He(pn,r,i)),zt(e,e,He(pn,n.x,n.y)),e},e}(),an=rn.create,on=rn.set,sn=rn.copy,cn=rn.calculateTransform,ln=rn.applyTransform,un=rn.contain,dn=new rn(0,0,0,0),fn=new rn(0,0,0,0),pn=[];function mn(e,t,n,r,i,a,o,s){var c=Kt(t-n),l=Kt(r-e),u=Wt(c,l),d=qt[i],f=qt[1-i],p=Jt[i];t<n||r<e?c<l?(a&&(tn[d]=-c),s&&(o[d]=t,o[p]=0)):(a&&(tn[d]=l),s&&(o[d]=e,o[p]=0)):(o&&(o[d]=Gt(e,n),o[p]=Wt(t,r)-o[d]),a&&(u<nn[0]||$t.useDir)&&(nn[0]=Wt(u,nn[0]),(c<l||!$t.bidirectional)&&(en[d]=c,en[f]=0,$t.useDir&&$t.calcDirMTV()),(c>=l||!$t.bidirectional)&&(en[d]=-l,en[f]=0,$t.useDir&&$t.calcDirMTV())))}function hn(){var e=0,t=new Ut,n=new Ut,r={minTv:new Ut,maxTv:new Ut,useDir:!1,dirMinTv:new Ut,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,a){r.touchThreshold=0,i&&i.touchThreshold!=null&&(r.touchThreshold=Gt(0,i.touchThreshold)),r.negativeSize=!1,a&&(r.minTv.set(1/0,1/0),r.maxTv.set(0,0),r.useDir=!1,i&&i.direction!=null&&(r.useDir=!0,r.dirMinTv.copy(r.minTv),n.copy(r.minTv),e=i.direction,r.bidirectional=i.bidirectional==null||!!i.bidirectional,r.bidirectional||t.set(Math.cos(e),Math.sin(e))))},calcDirMTV:function(){var a=r.minTv,o=r.dirMinTv,s=a.y*a.y+a.x*a.x,c=Math.sin(e),l=Math.cos(e),u=c*a.y+l*a.x;if(i(u)){i(a.x)&&i(a.y)&&o.set(0,0);return}if(n.x=s*l/u,n.y=s*c/u,i(n.x)&&i(n.y)){o.set(0,0);return}(r.bidirectional||t.dot(n)>0)&&n.len()<o.len()&&o.copy(n)}};function i(e){return Kt(e)<1e-10}return r}var gn=`silent`;function _n(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:vn}}function vn(){At(this.event)}var yn=function(e){l(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.handler=null,t}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(at),bn=function(){function e(e,t){this.x=e,this.y=t}return e}(),xn=[`click`,`dblclick`,`mousewheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],Sn=new rn(0,0,0,0),Cn=function(e){l(t,e);function t(t,n,r,i,a){var o=e.call(this)||this;return o._hovered=new bn(0,0),o.storage=t,o.painter=n,o.painterRoot=i,o._pointerSize=a,r||=new yn,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new it(o),o}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(V(xn,function(t){e.on&&e.on(t,this[t],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,r=En(this,t,n),i=this._hovered,a=i.target;a&&!a.__zr&&(i=this.findHover(i.x,i.y),a=i.target);var o=this._hovered=r?new bn(t,n):this.findHover(t,n),s=o.target,c=this.proxy;c.setCursor&&c.setCursor(s?s.cursor:`default`),a&&s!==a&&this.dispatchToElement(i,`mouseout`,e),this.dispatchToElement(o,`mousemove`,e),s&&s!==a&&this.dispatchToElement(o,`mouseover`,e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;t!==`only_globalout`&&this.dispatchToElement(this._hovered,`mouseout`,e),t!==`no_globalout`&&this.trigger(`globalout`,{type:`globalout`,event:e})},t.prototype.resize=function(){this._hovered=new bn(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){e||={};var r=e.target;if(!(r&&r.silent)){for(var i=`on`+t,a=_n(t,e,n);r&&(r[i]&&(a.cancelBubble=!!r[i].call(r,a)),r.trigger(t,a),r=r.__hostTarget?r.__hostTarget:r.parent,!a.cancelBubble););a.cancelBubble||(this.trigger(t,a),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(e){typeof e[i]==`function`&&e[i].call(e,a),e.trigger&&e.trigger(t,a)}))}},t.prototype.findHover=function(e,t,n){var r=this.storage.getDisplayList(),i=new bn(e,t);if(Tn(r,i,e,t,n),this._pointerSize&&!i.target){for(var a=[],o=this._pointerSize,s=o/2,c=new rn(e-s,t-s,o,o),l=r.length-1;l>=0;l--){var u=r[l];u!==n&&!u.ignore&&!u.ignoreCoarsePointer&&(!u.parent||!u.parent.ignoreCoarsePointer)&&(Sn.copy(u.getBoundingRect()),u.transform&&Sn.applyTransform(u.transform),Sn.intersect(c)&&a.push(u))}if(a.length){for(var d=4,f=Math.PI/12,p=Math.PI*2,m=0;m<s;m+=d)for(var h=0;h<p;h+=f)if(Tn(a,i,e+m*Math.cos(h),t+m*Math.sin(h),n),i.target)return i}}return i},t.prototype.processGesture=function(e,t){this._gestureMgr||=new jt;var n=this._gestureMgr;t===`start`&&n.clear();var r=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(t===`end`&&n.clear(),r){var i=r.type;e.gestureEvent=i;var a=new bn;a.target=r.target,this.dispatchToElement(a,i,r.event)}},t}(at);V([`click`,`mousedown`,`mouseup`,`mousewheel`,`dblclick`,`contextmenu`],function(e){Cn.prototype[e]=function(t){var n=t.zrX,r=t.zrY,i=En(this,n,r),a,o;if((e!==`mouseup`||!i)&&(a=this.findHover(n,r),o=a.target),e===`mousedown`)this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e===`mouseup`)this._upEl=o;else if(e===`click`){if(this._downEl!==this._upEl||!this._downPoint||Xe(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function wn(e,t,n){if(e[e.rectHover?`rectContain`:`contain`](t,n)){for(var r=e,i=void 0,a=!1;r;){if(r.ignoreClip&&(a=!0),!a){var o=r.getClipPath();if(o&&!o.contain(t,n))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s?r.ignoreHostSilent?null:s:r.parent}return!i||gn}return!1}function Tn(e,t,n,r,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=wn(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==gn)){t.target=o;break}}}function En(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var Dn=32,On=7;function kn(e){for(var t=0;e>=Dn;)t|=e&1,e>>=1;return e+t}function An(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i<n&&r(e[i],e[i-1])<0;)i++;jn(e,t,i)}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function jn(e,t,n){for(n--;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}function Mn(e,t,n,r,i){for(r===t&&r++;r<n;r++){for(var a=e[r],o=t,s=r,c;o<s;)c=o+s>>>1,i(a,e[c])<0?s=c:o=c+1;var l=r-o;switch(l){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;l>0;)e[o+l]=e[o+l-1],l--}e[o]=a}}function Nn(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])>0){for(s=r-i;c<s&&a(e,t[n+i+c])>0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}else{for(s=i+1;c<s&&a(e,t[n+i-c])<=0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s);var l=o;o=i-c,c=i-l}for(o++;o<c;){var u=o+(c-o>>>1);a(e,t[n+u])>0?o=u+1:c=u}return c}function Pn(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])<0){for(s=i+1;c<s&&a(e,t[n+i-c])<0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s);var l=o;o=i-c,c=i-l}else{for(s=r-i;c<s&&a(e,t[n+i+c])>=0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}for(o++;o<c;){var u=o+(c-o>>>1);a(e,t[n+u])<0?c=u:o=u+1}return c}function Fn(e,t){var n=On,r,i,a=0,o=[];r=[],i=[];function s(e,t){r[a]=e,i[a]=t,a+=1}function c(){for(;a>1;){var e=a-2;if(e>=1&&i[e-1]<=i[e]+i[e+1]||e>=2&&i[e-2]<=i[e]+i[e-1])i[e-1]<i[e+1]&&e--;else if(i[e]>i[e+1])break;u(e)}}function l(){for(;a>1;){var e=a-2;e>0&&i[e-1]<i[e+1]&&e--,u(e)}}function u(n){var o=r[n],s=i[n],c=r[n+1],l=i[n+1];i[n]=s+l,n===a-3&&(r[n+1]=r[n+2],i[n+1]=i[n+2]),a--;var u=Pn(e[c],e,o,s,0,t);o+=u,s-=u,s!==0&&(l=Nn(e[o+s-1],e,c,l,l-1,t),l!==0&&(s<=l?d(o,s,c,l):f(o,s,c,l)))}function d(r,i,a,s){var c=0;for(c=0;c<i;c++)o[c]=e[r+c];var l=0,u=a,d=r;if(e[d++]=e[u++],--s===0){for(c=0;c<i;c++)e[d+c]=o[l+c];return}if(i===1){for(c=0;c<s;c++)e[d+c]=e[u+c];e[d+s]=o[l];return}for(var f=n,p,m,h;;){p=0,m=0,h=!1;do if(t(e[u],o[l])<0){if(e[d++]=e[u++],m++,p=0,--s===0){h=!0;break}}else if(e[d++]=o[l++],p++,m=0,--i===1){h=!0;break}while((p|m)<f);if(h)break;do{if(p=Pn(e[u],o,l,i,0,t),p!==0){for(c=0;c<p;c++)e[d+c]=o[l+c];if(d+=p,l+=p,i-=p,i<=1){h=!0;break}}if(e[d++]=e[u++],--s===0){h=!0;break}if(m=Nn(o[l],e,u,s,0,t),m!==0){for(c=0;c<m;c++)e[d+c]=e[u+c];if(d+=m,u+=m,s-=m,s===0){h=!0;break}}if(e[d++]=o[l++],--i===1){h=!0;break}f--}while(p>=On||m>=On);if(h)break;f<0&&(f=0),f+=2}if(n=f,n<1&&(n=1),i===1){for(c=0;c<s;c++)e[d+c]=e[u+c];e[d+s]=o[l]}else if(i===0)throw Error();else for(c=0;c<i;c++)e[d+c]=o[l+c]}function f(r,i,a,s){var c=0;for(c=0;c<s;c++)o[c]=e[a+c];var l=r+i-1,u=s-1,d=a+s-1,f=0,p=0;if(e[d--]=e[l--],--i===0){for(f=d-(s-1),c=0;c<s;c++)e[f+c]=o[c];return}if(s===1){for(d-=i,l-=i,p=d+1,f=l+1,c=i-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u];return}for(var m=n;;){var h=0,g=0,_=!1;do if(t(o[u],e[l])<0){if(e[d--]=e[l--],h++,g=0,--i===0){_=!0;break}}else if(e[d--]=o[u--],g++,h=0,--s===1){_=!0;break}while((h|g)<m);if(_)break;do{if(h=i-Pn(o[u],e,r,i,i-1,t),h!==0){for(d-=h,l-=h,i-=h,p=d+1,f=l+1,c=h-1;c>=0;c--)e[p+c]=e[f+c];if(i===0){_=!0;break}}if(e[d--]=o[u--],--s===1){_=!0;break}if(g=s-Nn(e[l],o,0,s,s-1,t),g!==0){for(d-=g,u-=g,s-=g,p=d+1,f=u+1,c=0;c<g;c++)e[p+c]=o[f+c];if(s<=1){_=!0;break}}if(e[d--]=e[l--],--i===0){_=!0;break}m--}while(h>=On||g>=On);if(_)break;m<0&&(m=0),m+=2}if(n=m,n<1&&(n=1),s===1){for(d-=i,l-=i,p=d+1,f=l+1,c=i-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u]}else if(s===0)throw Error();else for(f=d-(s-1),c=0;c<s;c++)e[f+c]=o[c]}return{mergeRuns:c,forceMergeRuns:l,pushRun:s}}function In(e,t,n,r){n||=0,r||=e.length;var i=r-n;if(!(i<2)){var a=0;if(i<Dn){a=An(e,n,r,t),Mn(e,n,r,n+a,t);return}var o=Fn(e,t),s=kn(i);do{if(a=An(e,n,r,t),a<s){var c=i;c>s&&(c=s),Mn(e,n,n+c,n+a,t),a=c}o.pushRun(n,a),o.mergeRuns(),i-=a,n+=a}while(i!==0);o.forceMergeRuns()}}var Ln=!1;function Rn(){Ln||(Ln=!0,console.warn(`z / z2 / zlevel of displayable is invalid, which may cause unexpected errors`))}function zn(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Bn=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=zn}return e.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},e.prototype.getDisplayList=function(e,t){t||=!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(t),n},e.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,r=0,i=t.length;r<i;r++)this._updateAndAddDisplayable(t[r],null,e);n.length=this._displayListLen,In(n,zn)},e.prototype._updateAndAddDisplayable=function(e,t,n){if(!(e.ignore&&!n)){e.beforeUpdate(),e.update(),e.afterUpdate();var r=e.getClipPath(),i=t&&t.length,a=0,o=e.__clipPaths;if(!e.ignoreClip&&(i||r)){if(o||=e.__clipPaths=[],i)for(var s=0;s<t.length;s++)o[a++]=t[s];for(var c=r,l=e;c;)c.parent=l,c.updateTransform(),o[a++]=c,l=c,c=c.getClipPath()}if(o&&(o.length=a),e.childrenRef){for(var u=e.childrenRef(),d=0;d<u.length;d++){var f=u[d];e.__dirty&&(f.__dirty|=1),this._updateAndAddDisplayable(f,o,n)}e.__dirty=0}else{var p=e;isNaN(p.z)&&(Rn(),p.z=0),isNaN(p.z2)&&(Rn(),p.z2=0),isNaN(p.zlevel)&&(Rn(),p.zlevel=0),this._displayList[this._displayListLen++]=p}var m=e.getDecalElement&&e.getDecalElement();m&&this._updateAndAddDisplayable(m,o,n);var h=e.getTextGuideLine();h&&this._updateAndAddDisplayable(h,o,n);var g=e.getTextContent();g&&this._updateAndAddDisplayable(g,o,n)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,n=e.length;t<n;t++)this.delRoot(e[t]);return}var r=B(this._roots,e);r>=0&&this._roots.splice(r,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),Vn=d.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)},Hn={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:1024**(e-1)},exponentialOut:function(e){return e===1?1:1-2**(-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*1024**(e-1):.5*(-(2**(-10*(e-1)))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)))},elasticOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*2**(-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?-.5*(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)):n*2**(-10*--e)*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-Hn.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?Hn.bounceIn(e*2)*.5:Hn.bounceOut(e*2-1)*.5+.5}},Un=Math.pow,Wn=Math.sqrt,Gn=1e-8,Kn=1e-4,qn=Wn(3),Jn=1/3,Yn=ze(),Xn=ze(),Zn=ze();function Qn(e){return e>-Gn&&e<Gn}function $n(e){return e>Gn||e<-Gn}function er(e,t,n,r,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*r+3*a*n)}function tr(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function nr(e,t,n,r,i,a){var o=r+3*(t-n)-e,s=3*(n-t*2+e),c=3*(t-e),l=e-i,u=s*s-3*o*c,d=s*c-9*o*l,f=c*c-3*s*l,p=0;if(Qn(u)&&Qn(d)){if(Qn(s))a[0]=0;else{var m=-c/s;m>=0&&m<=1&&(a[p++]=m)}}else{var h=d*d-4*u*f;if(Qn(h)){var g=d/u,m=-s/o+g,_=-g/2;m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_)}else if(h>0){var v=Wn(h),y=u*s+1.5*o*(-d+v),b=u*s+1.5*o*(-d-v);y=y<0?-Un(-y,Jn):Un(y,Jn),b=b<0?-Un(-b,Jn):Un(b,Jn);var m=(-s-(y+b))/(3*o);m>=0&&m<=1&&(a[p++]=m)}else{var x=(2*u*s-3*o*d)/(2*Wn(u*u*u)),S=Math.acos(x)/3,C=Wn(u),w=Math.cos(S),m=(-s-2*C*w)/(3*o),_=(-s+C*(w+qn*Math.sin(S)))/(3*o),T=(-s+C*(w-qn*Math.sin(S)))/(3*o);m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_),T>=0&&T<=1&&(a[p++]=T)}}return p}function rr(e,t,n,r,i){var a=6*n-12*t+6*e,o=9*t+3*r-3*e-9*n,s=3*t-3*e,c=0;if(Qn(o)){if($n(a)){var l=-s/a;l>=0&&l<=1&&(i[c++]=l)}}else{var u=a*a-4*o*s;if(Qn(u))i[0]=-a/(2*o);else if(u>0){var d=Wn(u),l=(-a+d)/(2*o),f=(-a-d)/(2*o);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function ir(e,t,n,r,i,a){var o=(t-e)*i+e,s=(n-t)*i+t,c=(r-n)*i+n,l=(s-o)*i+o,u=(c-s)*i+s,d=(u-l)*i+l;a[0]=e,a[1]=o,a[2]=l,a[3]=d,a[4]=d,a[5]=u,a[6]=c,a[7]=r}function ar(e,t,n,r,i,a,o,s,c,l,u){var d,f=.005,p=1/0,m,h,g,_;Yn[0]=c,Yn[1]=l;for(var v=0;v<1;v+=.05)Xn[0]=er(e,n,i,o,v),Xn[1]=er(t,r,a,s,v),g=Qe(Yn,Xn),g<p&&(d=v,p=g);p=1/0;for(var y=0;y<32&&!(f<Kn);y++)m=d-f,h=d+f,Xn[0]=er(e,n,i,o,m),Xn[1]=er(t,r,a,s,m),g=Qe(Xn,Yn),m>=0&&g<p?(d=m,p=g):(Zn[0]=er(e,n,i,o,h),Zn[1]=er(t,r,a,s,h),_=Qe(Zn,Yn),h<=1&&_<p?(d=h,p=_):f*=.5);return u&&(u[0]=er(e,n,i,o,d),u[1]=er(t,r,a,s,d)),Wn(p)}function or(e,t,n,r,i,a,o,s,c){for(var l=e,u=t,d=0,f=1/c,p=1;p<=c;p++){var m=p*f,h=er(e,n,i,o,m),g=er(t,r,a,s,m),_=h-l,v=g-u;d+=Math.sqrt(_*_+v*v),l=h,u=g}return d}function sr(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function cr(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function lr(e,t,n,r,i){var a=e-2*t+n,o=2*(t-e),s=e-r,c=0;if(Qn(a)){if($n(o)){var l=-s/o;l>=0&&l<=1&&(i[c++]=l)}}else{var u=o*o-4*a*s;if(Qn(u)){var l=-o/(2*a);l>=0&&l<=1&&(i[c++]=l)}else if(u>0){var d=Wn(u),l=(-o+d)/(2*a),f=(-o-d)/(2*a);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function ur(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function dr(e,t,n,r,i){var a=(t-e)*r+e,o=(n-t)*r+t,s=(o-a)*r+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=n}function fr(e,t,n,r,i,a,o,s,c){var l,u=.005,d=1/0;Yn[0]=o,Yn[1]=s;for(var f=0;f<1;f+=.05){Xn[0]=sr(e,n,i,f),Xn[1]=sr(t,r,a,f);var p=Qe(Yn,Xn);p<d&&(l=f,d=p)}d=1/0;for(var m=0;m<32&&!(u<Kn);m++){var h=l-u,g=l+u;Xn[0]=sr(e,n,i,h),Xn[1]=sr(t,r,a,h);var p=Qe(Xn,Yn);if(h>=0&&p<d)l=h,d=p;else{Zn[0]=sr(e,n,i,g),Zn[1]=sr(t,r,a,g);var _=Qe(Zn,Yn);g<=1&&_<d?(l=g,d=_):u*=.5}}return c&&(c[0]=sr(e,n,i,l),c[1]=sr(t,r,a,l)),Wn(d)}function pr(e,t,n,r,i,a,o){for(var s=e,c=t,l=0,u=1/o,d=1;d<=o;d++){var f=d*u,p=sr(e,n,i,f),m=sr(t,r,a,f),h=p-s,g=m-c;l+=Math.sqrt(h*h+g*g),s=p,c=m}return l}var mr=/cubic-bezier\(([0-9,\.e ]+)\)/;function hr(e){var t=e&&mr.exec(e);if(t){var n=t[1].split(`,`),r=+Te(n[0]),i=+Te(n[1]),a=+Te(n[2]),o=+Te(n[3]);if(isNaN(r+i+a+o))return;var s=[];return function(e){return e<=0?0:e>=1?1:nr(0,r,a,1,e,s)&&er(0,i,o,1,s[0])}}}var gr=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Le,this.ondestroy=e.ondestroy||Le,this.onrestart=e.onrestart||Le,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||=(this._startTime=e+this._delay,!0),this._paused){this._pausedTime+=t;return}var n=this._life,r=e-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var a=this.easingFunc,o=a?a(i):i;if(this.onframe(o),i===1){if(this.loop){var s=r%n;this._startTime=e-s,this._pausedTime=0,this.onrestart()}else return!0}return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=ue(e)?e:Hn[e]||hr(e)},e}(),_r=function(){function e(e){this.value=e}return e}(),vr=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new _r(e);return this.insertEntry(t),t},e.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},e.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),yr=function(){function e(e){this._list=new vr,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var n=this._list,r=this._map,i=null;if(r[e]==null){var a=n.len(),o=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var s=n.head;n.remove(s),delete r[s.key],i=s.value,this._lastRemovedEntry=s}o?o.value=t:o=new _r(t),o.key=e,n.insertEntry(o),r[e]=o}return i},e.prototype.get=function(e){var t=this._map[e],n=this._list;if(t!=null)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),br={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function xr(e){return e=Math.round(e),e<0?0:e>255?255:e}function Sr(e){return e=Math.round(e),e<0?0:e>360?360:e}function Cr(e){return e<0?0:e>1?1:e}function wr(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?xr(parseFloat(t)/100*255):xr(parseInt(t,10))}function Tr(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?Cr(parseFloat(t)/100):Cr(parseFloat(t))}function Er(e,t,n){return n<0?n+=1:n>1&&--n,n*6<1?e+(t-e)*n*6:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function Dr(e,t,n){return e+(t-e)*n}function Or(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function kr(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var Ar=new yr(20),jr=null;function Mr(e,t){jr&&kr(jr,t),jr=Ar.put(e,jr||t.slice())}function Nr(e,t){if(e){t||=[];var n=Ar.get(e);if(n)return kr(t,n);e+=``;var r=e.replace(/ /g,``).toLowerCase();if(r in br)return kr(t,br[r]),Mr(e,t),t;var i=r.length;if(r.charAt(0)===`#`){if(i===4||i===5){var a=parseInt(r.slice(1,4),16);if(!(a>=0&&a<=4095)){Or(t,0,0,0,1);return}return Or(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(r.slice(4),16)/15:1),Mr(e,t),t}if(i===7||i===9){var a=parseInt(r.slice(1,7),16);if(!(a>=0&&a<=16777215)){Or(t,0,0,0,1);return}return Or(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(r.slice(7),16)/255:1),Mr(e,t),t}return}var o=r.indexOf(`(`),s=r.indexOf(`)`);if(o!==-1&&s+1===i){var c=r.substr(0,o),l=r.substr(o+1,s-(o+1)).split(`,`),u=1;switch(c){case`rgba`:if(l.length!==4)return l.length===3?Or(t,+l[0],+l[1],+l[2],1):Or(t,0,0,0,1);u=Tr(l.pop());case`rgb`:if(l.length>=3)return Or(t,wr(l[0]),wr(l[1]),wr(l[2]),l.length===3?u:Tr(l[3])),Mr(e,t),t;Or(t,0,0,0,1);return;case`hsla`:if(l.length!==4){Or(t,0,0,0,1);return}return l[3]=Tr(l[3]),Pr(l,t),Mr(e,t),t;case`hsl`:if(l.length!==3){Or(t,0,0,0,1);return}return Pr(l,t),Mr(e,t),t;default:return}}Or(t,0,0,0,1)}}function Pr(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=Tr(e[1]),i=Tr(e[2]),a=i<=.5?i*(r+1):i+r-i*r,o=i*2-a;return t||=[],Or(t,xr(Er(o,a,n+1/3)*255),xr(Er(o,a,n)*255),xr(Er(o,a,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Fr(e){if(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=a-i,s=(a+i)/2,c,l;if(o===0)c=0,l=0;else{l=s<.5?o/(a+i):o/(2-a-i);var u=((a-t)/6+o/2)/o,d=((a-n)/6+o/2)/o,f=((a-r)/6+o/2)/o;t===a?c=f-d:n===a?c=1/3+u-f:r===a&&(c=2/3+d-u),c<0&&(c+=1),c>1&&--c}var p=[c*360,l,s];return e[3]!=null&&p.push(e[3]),p}}function Ir(e,t){var n=Nr(e);if(n){for(var r=0;r<3;r++)t<0?n[r]=n[r]*(1-t)|0:n[r]=(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return zr(n,n.length===4?`rgba`:`rgb`)}}function Lr(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=Nr(t[i]),s=Nr(t[a]),c=r-i,l=zr([xr(Dr(o[0],s[0],c)),xr(Dr(o[1],s[1],c)),xr(Dr(o[2],s[2],c)),Cr(Dr(o[3],s[3],c))],`rgba`);return n?{color:l,leftIndex:i,rightIndex:a,value:r}:l}}function Rr(e,t,n,r){var i=Nr(e);if(e)return i=Fr(i),t!=null&&(i[0]=Sr(ue(t)?t(i[0]):t)),n!=null&&(i[1]=Tr(ue(n)?n(i[1]):n)),r!=null&&(i[2]=Tr(ue(r)?r(i[2]):r)),zr(Pr(i),`rgba`)}function zr(e,t){if(!(!e||!e.length)){var n=e[0]+`,`+e[1]+`,`+e[2];return(t===`rgba`||t===`hsva`||t===`hsla`)&&(n+=`,`+e[3]),t+`(`+n+`)`}}function Br(e,t){var n=Nr(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var Vr=new yr(100);function Hr(e){if(W(e)){var t=Vr.get(e);return t||(t=Ir(e,-.1),Vr.put(e,t)),t}if(_e(e)){var n=L({},e);return n.colorStops=H(e.colorStops,function(e){return{offset:e.offset,color:Ir(e.color,-.1)}}),n}return e}function Ur(e){return e.type===`linear`}function Wr(e){return e.type===`radial`}(function(){return typeof Buffer<`u`&&typeof Buffer.from==`function`?function(e){return Buffer.from(e).toString(`base64`)}:typeof btoa==`function`&&typeof unescape==`function`&&typeof encodeURIComponent==`function`?function(e){return btoa(unescape(encodeURIComponent(e)))}:function(e){return null}})();var Gr=Array.prototype.slice;function Kr(e,t,n){return(t-e)*n+e}function qr(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=Kr(t[a],n[a],r);return e}function Jr(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=Kr(t[o][s],n[o][s],r)}return e}function Yr(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+n[a]*r;return e}function Xr(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+n[o][s]*r}return e}function Zr(e,t){for(var n=e.length,r=t.length,i=n>r?t:e,a=Math.min(n,r),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(n,r);s++)i.push({offset:o.offset,color:o.color.slice()})}function Qr(e,t,n){var r=e,i=t;if(!(!r.push||!i.push)){var a=r.length,o=i.length;if(a!==o){if(a>o)r.length=o;else for(var s=a;s<o;s++)r.push(n===1?i[s]:Gr.call(i[s]))}for(var c=r[0]&&r[0].length,s=0;s<r.length;s++)if(n===1)isNaN(r[s])&&(r[s]=i[s]);else for(var l=0;l<c;l++)isNaN(r[s][l])&&(r[s][l]=i[s][l])}}function $r(e){if(ne(e)){var t=e.length;if(ne(e[0])){for(var n=[],r=0;r<t;r++)n.push(Gr.call(e[r]));return n}return Gr.call(e)}return e}function ei(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],`rgba(`+e.join(`,`)+`)`}function ti(e){return ne(e&&e[0])?2:1}var ni=0,ri=1,ii=2,ai=3,oi=4,si=5,ci=6;function li(e){return e===oi||e===si}function ui(e){return e===ri||e===ii}var di=[0,0,0,0],fi=function(){function e(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var r=this.keyframes,i=r.length,a=!1,o=ci,s=t;if(ne(t)){var c=ti(t);o=c,(c===1&&!fe(t[0])||c===2&&!fe(t[0][0]))&&(a=!0)}else if(fe(t)&&!ye(t))o=ni;else if(W(t)){if(!isNaN(+t))o=ni;else{var l=Nr(t);l&&(s=l,o=ai)}}else if(_e(t)){var u=L({},s);u.colorStops=H(t.colorStops,function(e){return{offset:e.offset,color:Nr(e.color)}}),Ur(t)?o=oi:Wr(t)&&(o=si),s=u}i===0?this.valType=o:(o!==this.valType||o===ci)&&(a=!0),this.discrete=this.discrete||a;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=ue(n)?n:Hn[n]||hr(n)),r.push(d),d},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort(function(e,t){return e.time-t.time});for(var r=this.valType,i=n.length,a=n[i-1],o=this.discrete,s=ui(r),c=li(r),l=0;l<i;l++){var u=n[l],d=u.value,f=a.value;u.percent=u.time/e,o||(s&&l!==i-1?Qr(d,f,r):c&&Zr(d.colorStops,f.colorStops))}if(!o&&r!==si&&t&&this.needsAnimate()&&t.needsAnimate()&&r===t.valType&&!t._finished){this._additiveTrack=t;for(var p=n[0].value,l=0;l<i;l++)r===ni?n[l].additiveValue=n[l].value-p:r===ai?n[l].additiveValue=Yr([],n[l].value,p,-1):ui(r)&&(n[l].additiveValue=r===ri?Yr([],n[l].value,p,-1):Xr([],n[l].value,p,-1))}},e.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,r=n?`additiveValue`:`value`,i=this.valType,a=this.keyframes,o=a.length,s=this.propName,c=i===ai,l,u=this._lastFr,d=Math.min,f,p;if(o===1)f=p=a[0];else{if(t<0)l=0;else if(t<this._lastFrP){for(l=d(u+1,o-1);l>=0&&!(a[l].percent<=t);l--);l=d(l,o-2)}else{for(l=u;l<o&&!(a[l].percent>t);l++);l=d(l-1,o-2)}p=a[l+1],f=a[l]}if(f&&p){this._lastFr=l,this._lastFrP=t;var m=p.percent-f.percent,h=m===0?1:d((t-f.percent)/m,1);p.easingFunc&&(h=p.easingFunc(h));var g=n?this._additiveValue:c?di:e[s];if((ui(i)||c)&&!g&&(g=this._additiveValue=[]),this.discrete)e[s]=h<1?f.rawValue:p.rawValue;else if(ui(i))i===ri?qr(g,f[r],p[r],h):Jr(g,f[r],p[r],h);else if(li(i)){var _=f[r],v=p[r],y=i===oi;e[s]={type:y?`linear`:`radial`,x:Kr(_.x,v.x,h),y:Kr(_.y,v.y,h),colorStops:H(_.colorStops,function(e,t){var n=v.colorStops[t];return{offset:Kr(e.offset,n.offset,h),color:ei(qr([],e.color,n.color,h))}}),global:v.global},y?(e[s].x2=Kr(_.x2,v.x2,h),e[s].y2=Kr(_.y2,v.y2,h)):e[s].r=Kr(_.r,v.r,h)}else if(c)qr(g,f[r],p[r],h),n||(e[s]=ei(g));else{var b=Kr(f[r],p[r],h);n?this._additiveValue=b:e[s]=b}n&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,r=this._additiveValue;t===ni?e[n]=e[n]+r:t===ai?(Nr(e[n],di),Yr(di,di,r,1),e[n]=ei(di)):t===ri?Yr(e[n],e[n],r,1):t===ii&&Xr(e[n],e[n],r,1)},e}(),pi=function(){function e(e,t,n,r){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&r){P(`Can' use additive animation on looped animation.`);return}this._additiveAnimators=r,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,oe(t),n)},e.prototype.whenWithKeys=function(e,t,n,r){for(var i=this._tracks,a=0;a<n.length;a++){var o=n[a],s=i[o];if(!s){s=i[o]=new fi(o);var c=void 0,l=this._getAdditiveTrack(o);if(l){var u=l.keyframes,d=u[u.length-1];c=d&&d.value,l.valType===ai&&c&&(c=ei(c))}else c=this._target[o];if(c==null)continue;e>0&&s.addKeyframe(0,$r(c),r),this._trackKeys.push(o)}s.addKeyframe(e,$r(t[o]),r)}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n<t;n++)e[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var n=0;n<t.length;n++)t[n].call(this)},e.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},e.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var r=0;r<n.length;r++){var i=n[r].getTrack(e);i&&(t=i)}return t},e.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,n=[],r=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var a=this._trackKeys[i],o=this._tracks[a],s=this._getAdditiveTrack(a),c=o.keyframes,l=c.length;if(o.prepare(r,s),o.needsAnimate()){if(!this._allowDiscrete&&o.discrete){var u=c[l-1];u&&(t._target[o.propName]=u.rawValue),o.setFinished()}else n.push(o)}}if(n.length||this._force){var d=new gr({life:r,loop:this._loop,delay:this._delay||0,onframe:function(e){t._started=2;var r=t._additiveAnimators;if(r){for(var i=!1,a=0;a<r.length;a++)if(r[a]._clip){i=!0;break}i||(t._additiveAnimators=null)}for(var a=0;a<n.length;a++)n[a].step(t._target,e);var o=t._onframeCbs;if(o)for(var a=0;a<o.length;a++)o[a](t._target,e)},ondestroy:function(){t._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),e&&d.setEasing(e)}else this._doneCallback();return this}},e.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},e.prototype.delay=function(e){return this._delay=e,this},e.prototype.during=function(e){return e&&(this._onframeCbs||=[],this._onframeCbs.push(e)),this},e.prototype.done=function(e){return e&&(this._doneCbs||=[],this._doneCbs.push(e)),this},e.prototype.aborted=function(e){return e&&(this._abortedCbs||=[],this._abortedCbs.push(e)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(e){return this._tracks[e]},e.prototype.getTracks=function(){var e=this;return H(this._trackKeys,function(t){return e._tracks[t]})},e.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,r=this._trackKeys,i=0;i<e.length;i++){var a=n[e[i]];a&&!a.isFinished()&&(t?a.step(this._target,1):this._started===1&&a.step(this._target,0),a.setFinished())}for(var o=!0,i=0;i<r.length;i++)if(!n[r[i]].isFinished()){o=!1;break}return o&&this._abortedCallback(),o},e.prototype.saveTo=function(e,t,n){if(e){t||=this._trackKeys;for(var r=0;r<t.length;r++){var i=t[r],a=this._tracks[i];if(!(!a||a.isFinished())){var o=a.keyframes,s=o[n?0:o.length-1];s&&(e[i]=$r(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t||=oe(e);for(var n=0;n<t.length;n++){var r=t[n],i=this._tracks[r];if(i){var a=i.keyframes;if(a.length>1){var o=a.pop();i.addKeyframe(o.time,e[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}();function mi(){return new Date().getTime()}var hi=function(e){l(t,e);function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t||={},n.stage=t.stage||{},n}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){for(var t=mi()-this._pausedTime,n=t-this._time,r=this._head;r;){var i=r.next;r.step(t,n)?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=t,e||(this.trigger(`frame`,n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function t(){e._running&&(Vn(t),!e._paused&&e.update())}Vn(t)},t.prototype.start=function(){this._running||(this._time=mi(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||=(this._pauseStart=mi(),!0)},t.prototype.resume=function(){this._paused&&=(this._pausedTime+=mi()-this._pauseStart,!1)},t.prototype.clear=function(){for(var e=this._head;e;){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,t){t||={},this.start();var n=new pi(e,t.loop);return this.addAnimator(n),n},t}(at),gi=300,_i=d.domSupported,vi=(function(){var e=[`click`,`dblclick`,`mousewheel`,`wheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],t=[`touchstart`,`touchend`,`touchmove`],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1};return{mouse:e,touch:t,pointer:H(e,function(e){var t=e.replace(`mouse`,`pointer`);return n.hasOwnProperty(t)?t:e})}})(),yi={mouse:[`mousemove`,`mouseup`],pointer:[`pointermove`,`pointerup`]},bi=!1;function xi(e){var t=e.pointerType;return t===`pen`||t===`touch`}function Si(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function Ci(e){e&&(e.zrByTouch=!0)}function wi(e,t){return Et(e.dom,new Ei(e,t),!0)}function Ti(e,t){for(var n=t,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var Ei=function(){function e(e,t){this.stopPropagation=Le,this.stopImmediatePropagation=Le,this.preventDefault=Le,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),Di={mousedown:function(e){e=Et(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger(`mousedown`,e)},mousemove:function(e){e=Et(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger(`mousemove`,e)},mouseup:function(e){e=Et(this.dom,e),this.__togglePointerCapture(!1),this.trigger(`mouseup`,e)},mouseout:function(e){e=Et(this.dom,e);var t=e.toElement||e.relatedTarget;Ti(this,t)||(this.__pointerCapturing&&(e.zrEventControl=`no_globalout`),this.trigger(`mouseout`,e))},wheel:function(e){bi=!0,e=Et(this.dom,e),this.trigger(`mousewheel`,e)},mousewheel:function(e){bi||(e=Et(this.dom,e),this.trigger(`mousewheel`,e))},touchstart:function(e){e=Et(this.dom,e),Ci(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,`start`),Di.mousemove.call(this,e),Di.mousedown.call(this,e)},touchmove:function(e){e=Et(this.dom,e),Ci(e),this.handler.processGesture(e,`change`),Di.mousemove.call(this,e)},touchend:function(e){e=Et(this.dom,e),Ci(e),this.handler.processGesture(e,`end`),Di.mouseup.call(this,e),+new Date-this.__lastTouchMoment<gi&&Di.click.call(this,e)},pointerdown:function(e){Di.mousedown.call(this,e)},pointermove:function(e){xi(e)||Di.mousemove.call(this,e)},pointerup:function(e){Di.mouseup.call(this,e)},pointerout:function(e){xi(e)||Di.mouseout.call(this,e)}};V([`click`,`dblclick`,`contextmenu`],function(e){Di[e]=function(t){t=Et(this.dom,t),this.trigger(e,t)}});var Oi={pointermove:function(e){xi(e)||Oi.mousemove.call(this,e)},pointerup:function(e){Oi.mouseup.call(this,e)},mousemove:function(e){this.trigger(`mousemove`,e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger(`mouseup`,e),t&&(e.zrEventControl=`only_globalout`,this.trigger(`mouseout`,e))}};function ki(e,t){var n=t.domHandlers;d.pointerEventsSupported?V(vi.pointer,function(r){ji(t,r,function(t){n[r].call(e,t)})}):(d.touchEventsSupported&&V(vi.touch,function(r){ji(t,r,function(i){n[r].call(e,i),Si(t)})}),V(vi.mouse,function(r){ji(t,r,function(i){i=Tt(i),t.touching||n[r].call(e,i)})}))}function Ai(e,t){d.pointerEventsSupported?V(yi.pointer,n):d.touchEventsSupported||V(yi.mouse,n);function n(n){function r(r){r=Tt(r),Ti(e,r.target)||(r=wi(e,r),t.domHandlers[n].call(e,r))}ji(t,n,r,{capture:!0})}}function ji(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,Ot(e.domTarget,t,n,r)}function Mi(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&kt(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var Ni=function(){function e(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return e}(),Pi=function(e){l(t,e);function t(t,n){var r=e.call(this)||this;return r.__pointerCapturing=!1,r.dom=t,r.painterRoot=n,r._localHandlerScope=new Ni(t,Di),_i&&(r._globalHandlerScope=new Ni(document,Oi)),ki(r,r._localHandlerScope),r}return t.prototype.dispose=function(){Mi(this._localHandlerScope),_i&&Mi(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||`default`)},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,_i&&+this.__pointerCapturing^e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?Ai(this,t):Mi(t)}},t}(at),Fi=1;d.hasGlobalWindow&&(Fi=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Ii=Fi,Li=.4,Ri=`#333`,zi=`#ccc`,Bi=`#eee`,Vi=It,Hi=5e-5;function Ui(e){return e>Hi||e<-Hi}var Wi=[],Gi=[],Ki=Ft(),qi=Math.abs,Ji=function(){function e(){}return e.prototype.getLocalTransform=function(e){return Yi(this,e)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return Ui(this.rotation)||Ui(this.x)||Ui(this.y)||Ui(this.scaleX-1)||Ui(this.scaleY-1)||Ui(this.skewX)||Ui(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;if(!(t||e)){n&&(Vi(n),this.invTransform=null);return}n||=Ft(),t?this.getLocalTransform(n):Vi(n),e&&(t?Rt(n,e,n):Lt(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n),this.invTransform=this.invTransform||Ft(),Ht(this.invTransform,n)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(Wi);var n=Wi[0]<0?-1:1,r=Wi[1]<0?-1:1,i=((Wi[0]-n)*t+n)/Wi[0]||0,a=((Wi[1]-r)*t+r)/Wi[1]||0;e[0]*=i,e[1]*=i,e[2]*=a,e[3]*=a}},e.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],r=Math.atan2(e[1],e[0]),i=Math.PI/2+r-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||Ft(),Rt(Gi,e.invTransform,t),t=Gi);var n=this.originX,r=this.originY;(n||r)&&(Ki[4]=n,Ki[5]=r,Rt(Gi,t,Ki),Gi[4]-=n,Gi[5]-=r,t=Gi),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e||=[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&et(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&et(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&qi(e[0]-1)>1e-10&&qi(e[3]-1)>1e-10?Math.sqrt(qi(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){Qi(this,e)},e.getLocalTransform=function(e,t){t||=[];var n=e.originX||0,r=e.originY||0,i=e.scaleX,a=e.scaleY,o=e.anchorX,s=e.anchorY,c=e.rotation||0,l=e.x,u=e.y,d=e.skewX?Math.tan(e.skewX):0,f=e.skewY?Math.tan(-e.skewY):0;if(n||r||o||s){var p=n+o,m=r+s;t[4]=-p*i-d*m*a,t[5]=-m*a-f*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=a,t[1]=f*i,t[2]=d*a,c&&Bt(t,t,c),t[4]+=n+l,t[5]+=r+u,t},e.initDefaultProps=(function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),e}(),Yi=Ji.getLocalTransform;function Xi(){return new Ji}var Zi=[`x`,`y`,`originX`,`originY`,`anchorX`,`anchorY`,`rotation`,`scaleX`,`scaleY`,`skewX`,`skewY`];function Qi(e,t){return R(e,t,Zi)}function $i(e){ea||=new yr(100),e||=`12px sans-serif`;var t=ea.get(e);return t||(t={font:e,strWidthCache:new yr(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:y.measureText(`国`,e).width,asciiCharWidth:y.measureText(`a`,e).width},ea.put(e,t)),t}var ea;function ta(e){if(!(na>=ra)){e||=`12px sans-serif`;for(var t=[],n=+new Date,r=0;r<=127;r++)t[r]=y.measureText(String.fromCharCode(r),e).width;var i=+new Date-n;return i>16?na=ra:i>2&&na++,t}}var na=0,ra=5;function ia(e,t){return e.asciiWidthMapTried||=(e.asciiWidthMap=ta(e.font),!0),0<=t&&t<=127?e.asciiWidthMap==null?e.asciiCharWidth:e.asciiWidthMap[t]:e.stWideCharWidth}function aa(e,t){var n=e.strWidthCache,r=n.get(t);return r??(r=y.measureText(t,e.font).width,n.put(t,r)),r}function oa(e,t,n,r){var i=aa($i(t),e),a=ua(t);return new rn(ca(0,i,n),la(0,a,r),i,a)}function sa(e,t,n,r){var i=((e||``)+``).split(`
2
+ `);if(i.length===1)return oa(i[0],t,n,r);for(var a=new rn(0,0,0,0),o=0;o<i.length;o++){var s=oa(i[o],t,n,r);o===0?a.copy(s):a.union(s)}return a}function ca(e,t,n,r){return n===`right`?r?e+=t:e-=t:n===`center`&&(r?e+=t/2:e-=t/2),e}function la(e,t,n,r){return n===`middle`?r?e+=t/2:e-=t/2:n===`bottom`&&(r?e+=t:e-=t),e}function ua(e){return $i(e).stWideCharWidth}function da(e,t){return typeof e==`string`?e.lastIndexOf(`%`)>=0?parseFloat(e)/100*t:parseFloat(e):e}function fa(e,t,n){var r=t.position||`inside`,i=t.distance==null?5:t.distance,a=n.height,o=n.width,s=a/2,c=n.x,l=n.y,u=`left`,d=`top`;if(r instanceof Array)c+=da(r[0],n.width),l+=da(r[1],n.height),u=null,d=null;else switch(r){case`left`:c-=i,l+=s,u=`right`,d=`middle`;break;case`right`:c+=i+o,l+=s,d=`middle`;break;case`top`:c+=o/2,l-=i,u=`center`,d=`bottom`;break;case`bottom`:c+=o/2,l+=a+i,u=`center`;break;case`inside`:c+=o/2,l+=s,u=`center`,d=`middle`;break;case`insideLeft`:c+=i,l+=s,d=`middle`;break;case`insideRight`:c+=o-i,l+=s,u=`right`,d=`middle`;break;case`insideTop`:c+=o/2,l+=i,u=`center`;break;case`insideBottom`:c+=o/2,l+=a-i,u=`center`,d=`bottom`;break;case`insideTopLeft`:c+=i,l+=i;break;case`insideTopRight`:c+=o-i,l+=i,u=`right`;break;case`insideBottomLeft`:c+=i,l+=a-i,d=`bottom`;break;case`insideBottomRight`:c+=o-i,l+=a-i,u=`right`,d=`bottom`}return e||={},e.x=c,e.y=l,e.align=u,e.verticalAlign=d,e}var pa=`__zr_normal__`,ma=Zi.concat([`ignore`]),ha=re(Zi,function(e,t){return e[t]=!0,e},{ignore:!1}),ga={},_a=new rn(0,0,0,0),va=[],ya=function(){function e(e){this.id=N(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,n){switch(this.draggable){case`horizontal`:t=0;break;case`vertical`:e=0}var r=this.transform;r||=this.transform=[1,0,0,1,0,0],r[4]+=e,r[5]+=t,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||={};var n=this.textConfig,r=n.local,i=t.innerTransformable,a=void 0,o=void 0,s=!1;i.parent=r?this:null;var c=!1;i.copyTransform(t);var l=n.position!=null,u=n.autoOverflowArea,d=void 0;if((u||l)&&(d=_a,n.layoutRect?d.copy(n.layoutRect):d.copy(this.getBoundingRect()),r||d.applyTransform(this.transform)),l){this.calculateTextPosition?this.calculateTextPosition(ga,n,d):fa(ga,n,d),i.x=ga.x,i.y=ga.y,a=ga.align,o=ga.verticalAlign;var f=n.origin;if(f&&n.rotation!=null){var p=void 0,m=void 0;f===`center`?(p=d.width*.5,m=d.height*.5):(p=da(f[0],d.width),m=da(f[1],d.height)),c=!0,i.originX=-i.x+p+(r?0:d.x),i.originY=-i.y+m+(r?0:d.y)}}n.rotation!=null&&(i.rotation=n.rotation);var h=n.offset;h&&(i.x+=h[0],i.y+=h[1],c||(i.originX=-h[0],i.originY=-h[1]));var g=this._innerTextDefaultStyle||={};if(u){var _=g.overflowRect=g.overflowRect||new rn(0,0,0,0);i.getLocalTransform(va),Ht(va,va),rn.copy(_,d),_.applyTransform(va)}else g.overflowRect=null;var v=n.inside==null?typeof n.position==`string`&&n.position.indexOf(`inside`)>=0:n.inside,y=void 0,b=void 0,x=void 0;v&&this.canBeInsideText()?(y=n.insideFill,b=n.insideStroke,(y==null||y===`auto`)&&(y=this.getInsideTextFill()),(b==null||b===`auto`)&&(b=this.getInsideTextStroke(y),x=!0)):(y=n.outsideFill,b=n.outsideStroke,(y==null||y===`auto`)&&(y=this.getOutsideFill()),(b==null||b===`auto`)&&(b=this.getOutsideStroke(y),x=!0)),y||=`#000`,(y!==g.fill||b!==g.stroke||x!==g.autoStroke||a!==g.align||o!==g.verticalAlign)&&(s=!0,g.fill=y,g.stroke=b,g.autoStroke=x,g.align=a,g.verticalAlign=o,t.setDefaultTextStyle(g)),t.__dirty|=1,s&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return`#fff`},e.prototype.getInsideTextStroke=function(e){return`#000`},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?zi:Ri},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n=typeof t==`string`&&Nr(t);n||=[255,255,255,1];for(var r=n[3],i=this.__zr.isDarkMode(),a=0;a<3;a++)n[a]=n[a]*r+(i?0:255)*(1-r);return n[3]=1,zr(n,`rgba`)},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){e===`textConfig`?this.setTextConfig(t):e===`textContent`?this.setTextContent(t):e===`clipPath`?this.setClipPath(t):e===`extra`?(this.extra=this.extra||{},L(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if(typeof e==`string`)this.attrKV(e,t);else if(pe(e))for(var n=oe(e),r=0;r<n.length;r++){var i=n[r];this.attrKV(i,e[i])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var r=this.animators[n],i=r.__fromStateTransition;if(!(r.getLoop()||i&&i!==`__zr_normal__`)){var a=r.targetName,o=a?t[a]:t;r.saveTo(o)}}},e.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||=this._normalState={},e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,ma)},e.prototype._savePrimaryToNormal=function(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];e[i]!=null&&!(i in t)&&(t[i]=this[i])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(pa,!1,e)},e.prototype.useState=function(e,t,n,r){var i=e===pa;if(!(!this.hasState()&&i)){var a=this.currentStates,o=this.stateTransition;if(!(B(a,e)>=0&&(t||a.length===1))){var s;if(this.stateProxy&&!i&&(s=this.stateProxy(e)),s||=this.states&&this.states[e],!s&&!i){P(`State `+e+` not exists.`);return}i||this.saveCurrentToNormalState(s);var c=this._textContent,l=Da(this,c,s,r);l&&!this.__inHover&&(this.__inHover=l),this._applyStateObj(e,s,this._normalState,t,ka(this,n,o),o);var u=this._textGuide;return c&&c.useState(e,t,n,!!l),u&&u.useState(e,t,n,!!l),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this.__inHover=0,this.__dirty&=-2),s}}},e.prototype.useStates=function(e,t,n){if(!e.length)this.clearStates();else{var r=[],i=this.currentStates,a=e.length,o=a===i.length;if(o){for(var s=0;s<a;s++)if(e[s]!==i[s]){o=!1;break}}if(o)return;for(var s=0;s<a;s++){var c=e[s],l=void 0;this.stateProxy&&(l=this.stateProxy(c,e)),l||=this.states[c],l&&r.push(l)}var u=r[a-1],d=this._textContent,f=Da(this,d,u,n);f&&!this.__inHover&&(this.__inHover=f);var p=this._mergeStates(r),m=this.stateTransition;this.saveCurrentToNormalState(p),this._applyStateObj(e.join(`,`),p,this._normalState,!1,ka(this,t,m),m);var h=this._textGuide;d&&d.useStates(e,t,!!f),h&&h.useStates(e,t,!!f),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!f&&this.__inHover&&(this.__inHover=0,this.__dirty&=-2)}},e.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var t=e.__hostTarget;e=t?e.ignoreHostSilent?null:t:e.parent}return!1},e.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},e.prototype.removeState=function(e){var t=B(this.currentStates,e);if(t>=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var r=this.currentStates.slice(),i=B(r,e),a=B(r,t)>=0;i>=0?a?r.splice(i,1):r[i]=t:n&&!a&&r.push(t),this.useStates(r)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t={},n,r=0;r<e.length;r++){var i=e[r];L(t,i),i.textConfig&&(n||={},L(n,i.textConfig))}return n&&(t.textConfig=n),t},e.prototype._applyStateObj=function(e,t,n,r,i,a){if(this.__inHover!==1){var o=!(t&&r);t&&t.textConfig?(this.textConfig=L({},r?this.textConfig:n.textConfig),L(this.textConfig,t.textConfig)):o&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},c=!1,l=0;l<ma.length;l++){var u=ma[l],d=i&&ha[u];t&&t[u]!=null?d?(c=!0,s[u]=t[u]):this[u]=t[u]:o&&n[u]!=null&&(d?(c=!0,s[u]=n[u]):this[u]=n[u])}if(!i)for(var l=0;l<this.animators.length;l++){var f=this.animators[l],p=f.targetName;f.getLoop()||f.__changeFinalValue(p?(t||n)[p]:t||n)}c&&this._transitionState(e,s,a)}},e.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},e.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},e.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new Ji,this._attachComponent(e),this._textContent=e,this.markRedraw())},e.prototype.setTextConfig=function(e){this.textConfig||={},L(this.textConfig,e),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=1;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},e.prototype.animate=function(e,t,n){var r=new pi(e?this[e]:this,t,n);return e&&(r.targetName=e),this.addAnimator(r,e),r},e.prototype.addAnimator=function(e,t){var n=this.__zr,r=this;e.during(function(){r.updateDuringAnimation(t)}).done(function(){var t=r.animators,n=B(t,e);n>=0&&t.splice(n,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,r=n.length,i=[],a=0;a<r;a++){var o=n[a];!e||e===o.scope?o.stop(t):i.push(o)}return this.animators=i,this},e.prototype.animateTo=function(e,t,n){ba(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){ba(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,r){for(var i=ba(this,t,n,r),a=0;a<i.length;a++)i[a].__fromStateTransition=e},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=(function(){var t=e.prototype;t.type=`element`,t.name=``,t.ignore=t.silent=t.ignoreHostSilent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=!1,t.__inHover=0,t.__dirty=1;function n(e,n,r,i){Object.defineProperty(t,e,{get:function(){if(!this[n]){var e=this[n]=[];a(this,e)}return this[n]},set:function(e){this[r]=e[0],this[i]=e[1],this[n]=e,a(this,e)}});function a(e,t){Object.defineProperty(t,0,{get:function(){return e[r]},set:function(t){e[r]=t}}),Object.defineProperty(t,1,{get:function(){return e[i]},set:function(t){e[i]=t}})}}Object.defineProperty&&(n(`position`,`_legacyPos`,`x`,`y`),n(`scale`,`_legacyScale`,`scaleX`,`scaleY`),n(`origin`,`_legacyOrigin`,`originX`,`originY`))})(),e}();te(ya,at),te(ya,Ji);function ba(e,t,n,r,i){n||={};var a=[];Ea(e,``,e,t,n,r,a,i);var o=a.length,s=!1,c=n.done,l=n.aborted,u=function(){s=!0,o--,o<=0&&(s?c&&c():l&&l())},d=function(){o--,o<=0&&(s?c&&c():l&&l())};o||c&&c(),a.length>0&&n.during&&a[0].during(function(e,t){n.during(t)});for(var f=0;f<a.length;f++){var p=a[f];u&&p.done(u),d&&p.aborted(d),n.force&&p.duration(n.duration),p.start(n.easing)}return a}function xa(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function Sa(e){return ne(e[0])}function Ca(e,t,n){if(ne(t[n])){if(ne(e[n])||(e[n]=[]),he(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),xa(e[n],t[n],r))}else{var i=t[n],a=e[n],o=i.length;if(Sa(i))for(var s=i[0].length,c=0;c<o;c++)a[c]?xa(a[c],i[c],s):a[c]=Array.prototype.slice.call(i[c]);else xa(a,i,o);a.length=i.length}}else e[n]=t[n]}function wa(e,t){return e===t||ne(e)&&ne(t)&&Ta(e,t)}function Ta(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function Ea(e,t,n,r,i,a,o,s){for(var c=oe(r),l=i.duration,u=i.delay,d=i.additive,f=i.setToFinal,p=!pe(a),m=e.animators,h=[],g=0;g<c.length;g++){var _=c[g],v=r[_];if(v!=null&&n[_]!=null&&(p||a[_])){if(pe(v)&&!ne(v)&&!_e(v)){if(t){s||(n[_]=v,e.updateDuringAnimation(t));continue}Ea(e,_,n[_],v,i,a&&a[_],o,s)}else h.push(_)}else s||(n[_]=v,e.updateDuringAnimation(t),h.push(_))}var y=h.length;if(!d&&y)for(var b=0;b<m.length;b++){var x=m[b];if(x.targetName===t&&x.stopTracks(h)){var S=B(m,x);m.splice(S,1)}}if(i.force||(h=ie(h,function(e){return!wa(r[e],n[e])}),y=h.length),y>0||i.force&&!o.length){var C=void 0,w=void 0,T=void 0;if(s){w={},f&&(C={});for(var b=0;b<y;b++){var _=h[b];w[_]=n[_],f?C[_]=r[_]:n[_]=r[_]}}else if(f){T={};for(var b=0;b<y;b++){var _=h[b];T[_]=$r(n[_]),Ca(n,r,_)}}var x=new pi(n,!1,!1,d?ie(m,function(e){return e.targetName===t}):null);x.targetName=t,i.scope&&(x.scope=i.scope),f&&C&&x.whenWithKeys(0,C,h),T&&x.whenWithKeys(0,T,h),x.whenWithKeys(l??500,s?w:r,h).delay(u||0),e.addAnimator(x,t),o.push(x)}}function Da(e,t,n,r){return!(n&&n.hoverLayer||r)||Oa(e)||t&&Oa(t)?0:1}function Oa(e){return e.type===`text`||e.type===`tspan`}function ka(e,t,n){return!t&&!e.__inHover&&n&&n.duration>0}var Aa=function(e){l(t,e);function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var t=this._children,n=0;n<t.length;n++)if(t[n].name===e)return t[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,t){if(e&&e!==this&&e.parent!==this&&t&&t.parent===this){var n=this._children,r=n.indexOf(t);r>=0&&(n.splice(r,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=B(this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,r=n[t];if(e&&e!==this&&e.parent!==this&&e!==r){n[t]=e,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,r=B(n,e);return r<0?this:(n.splice(r,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n<e.length;n++){var r=e[n];t&&r.removeSelfFromZr(t),r.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,t){for(var n=this._children,r=0;r<n.length;r++){var i=n[r];e.call(t,i,r)}return this},t.prototype.traverse=function(e,t){for(var n=0;n<this._children.length;n++){var r=this._children[n],i=e.call(t,r);r.isGroup&&!i&&r.traverse(e,t)}return this},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].addSelfToZr(t)},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].removeSelfFromZr(t)},t.prototype.getBoundingRect=function(e){for(var t=new rn(0,0,0,0),n=e||this._children,r=[],i=null,a=0;a<n.length;a++){var o=n[a];if(!(o.ignore||o.invisible)){var s=o.getBoundingRect(),c=o.getLocalTransform(r);c?(rn.applyTransform(t,s,c),i||=t.clone(),i.union(t)):(i||=s.clone(),i.union(s))}}return i||t},t}(ya);Aa.prototype.type=`group`;var ja={},Ma={};function Na(e){delete Ma[e]}function Pa(e){if(!e)return!1;if(typeof e==`string`)return Br(e,1)<Li;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=Br(t[i].color,1);return n/=r,n<Li}return!1}var Fa=function(){function e(e,t,n){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,n||={},this.dom=t,this.id=e;var i=new Bn,a=n.renderer||`canvas`;ja[a]||(a=oe(ja)[0]),n.useDirtyRect=n.useDirtyRect!=null&&n.useDirtyRect;var o=new ja[a](t,i,n,e),s=n.ssr||o.ssrOnly;this.storage=i,this.painter=o;var c=!d.node&&!d.worker&&!s?new Pi(o.getViewportRoot(),o.root):null,l=n.useCoarsePointer,u=l==null||l===`auto`?d.touchEventsSupported:!!l,f=44,p;u&&(p=G(n.pointerSize,f)),this.handler=new Cn(i,o,c,o.root,p),this.animation=new hi({stage:{update:s?null:function(){return r._flush(!1)}}}),s||this.animation.start()}return e.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},e.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},e.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=Pa(e))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(e){this._darkMode=e},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(e){this._disposed||this._refresh({animUpdate:!e,refresh:!0,refreshHover:!1})},e.prototype._refresh=function(e){e.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:e.refresh,refreshHover:e.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!0)},e.prototype._flush=function(e){var t,n=mi(),r=this._needsRefresh,i=this._needsRefreshHover;(r||i)&&(t=!0,this._refresh({animUpdate:e,refresh:r,refreshHover:i}));var a=mi();t?(this._stillFrameAccum=0,this.trigger(`rendered`,{elapsedTime:a-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},e.prototype.resize=function(e){this._disposed||(e||={},this.painter.resize(e.width,e.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},e.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},e.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof Aa&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,Na(this.id))},e}();function Ia(e,t){var n=new Fa(N(),e,t);return Ma[n.id]=n,n}function La(e,t){ja[e]=t}var Ra=1e-4,za=20;function Ba(e){return e.replace(/^\s+|\s+$/g,``)}var Va=Math.min,Ha=Math.max,Ua=Math.abs,Wa=Math.round,Ga=Math.floor,Ka=Math.ceil,qa=Math.pow,Ja=Math.log,Ya=Math.LN10,Xa=Math.PI,Za=Math.random;function Qa(e,t,n,r){var i=t[0],a=t[1],o=n[0],s=n[1],c=a-i,l=s-o;if(c===0)return l===0?o:(o+s)/2;if(r){if(c>0){if(e<=i)return o;if(e>=a)return s}else if(e>=i)return o;else if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/c*l+o}var $a=eo;function eo(e,t,n){switch(e){case`center`:case`middle`:e=`50%`;break;case`left`:case`top`:e=`0%`;break;case`right`:case`bottom`:e=`100%`}return to(e,t,n)}function to(e,t,n){return W(e)?no(e)?parseFloat(e)/100*t+(n||0):parseFloat(e):e==null?NaN:+e}function no(e){return!!Ba(e).match(/%$/)}function ro(e,t,n){return isNaN(t)?n?``+e:+e:(t=Va(Ha(0,t),za),e=(+e).toFixed(t),n?e:+e)}function io(e){return e.sort(function(e,t){return e-t}),e}function ao(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(Wa(e*t)/t===e)return n}return oo(e)}function oo(e){var t=e.toString().toLowerCase(),n=t.indexOf(`e`),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,a=t.indexOf(`.`);return Ha(0,(a<0?0:i-1-a)-r)}function so(e,t,n){var r=Ua(e[1]-e[0]);if(!isFinite(r)||r===0)return NaN;var i=Ja(2*Ua(n||1)*Ua(r))/Ya,a=Ja(Ua(t))/Ya,o=Ha(0,Ka(-i+a));return isFinite(o)||(o=NaN),o}function co(e,t){var n=re(e,function(e,t){return e+(isNaN(t)?0:t)},0);if(n===0)return[];for(var r=qa(10,t),i=H(e,function(e){return(isNaN(e)?0:e)/n*r*100}),a=r*100,o=H(i,function(e){return Ga(e)}),s=re(o,function(e,t){return e+t},0),c=H(i,function(e,t){return e-o[t]});s<a;){for(var l=-1/0,u=null,d=0,f=c.length;d<f;++d)c[d]>l&&(l=c[d],u=d);++o[u],c[u]=0,++s}return H(o,function(e){return e/r})}function lo(e,t){var n=Ha(ao(e),ao(t)),r=e+t;return n>za?r:ro(r,n)}var uo=qa(2,53)-1;function fo(e){var t=Xa*2;return(e%t+t)%t}function po(e){return e>-Ra&&e<Ra}var mo=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function ho(e){if(e instanceof Date)return e;if(W(e)){var t=mo.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return t[8].toUpperCase()!==`Z`&&(n-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}return new Date(+t[1],(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}return e==null?new Date(NaN):new Date(Wa(e))}function go(e){return qa(10,_o(e))}function _o(e){if(e===0)return 0;var t=Ga(Ja(e)/Ya);return e/qa(10,t)>=10&&t++,t}function vo(e,t){var n=_o(e),r=qa(10,n),i=e/r;return e=(t===2?1:t?i<1.5?1:i<2.5?2:i<4?3:i<7?5:10:i<1?1:i<2?2:i<3?3:i<5?5:10)*r,ro(e,-n)}function yo(e){var t=parseFloat(e);return t==e&&(t!==0||!W(e)||e.indexOf(`x`)<=0)?t:NaN}function bo(e){return!isNaN(yo(e))}function xo(){return Wa(Za()*9)}function So(e,t){return t===0?e:So(t,e%t)}function Co(e,t){return e==null?t:t==null?e:e*t/So(e,t)}function wo(e){return e!=null&&isFinite(e)}var To=`[ECharts] `,Eo={},Do=typeof console<`u`&&console.warn&&console.log;function Oo(e,t,n){if(Do){if(n){if(Eo[t])return;Eo[t]=!0}console[e](To+t)}}function ko(e,t){Oo(`error`,e,t)}function Ao(e){throw Error(e)}function jo(e,t,n){return(t-e)*n+e}var Mo=`series\0`,No=`\0_ec_\0`;function Po(e){return e instanceof Array?e:e==null?[]:[e]}function Fo(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var r=0,i=n.length;r<i;r++){var a=n[r];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}var Io=`fontStyle.fontWeight.fontSize.fontFamily.rich.tag.color.textBorderColor.textBorderWidth.width.height.lineHeight.align.verticalAlign.baseline.shadowColor.shadowBlur.shadowOffsetX.shadowOffsetY.textShadowColor.textShadowBlur.textShadowOffsetX.textShadowOffsetY.backgroundColor.borderColor.borderWidth.borderRadius.padding`.split(`.`);function Lo(e){return pe(e)&&!U(e)&&!(e instanceof Date)?e.value:e}function Ro(e){return pe(e)&&!(e instanceof Array)}function zo(e,t,n){var r=n===`normalMerge`,i=n===`replaceMerge`,a=n===`replaceAll`;e||=[],t=(t||[]).slice();var o=Ne();V(t,function(e,n){if(!pe(e)){t[n]=null;return}});var s=Bo(e,o,n);return(r||i)&&Vo(s,e,o,t),r&&Ho(s,t),r||i?Uo(s,t,i):a&&Wo(s,t),Go(s),s}function Bo(e,t,n){var r=[];if(n===`replaceAll`)return r;for(var i=0;i<e.length;i++){var a=e[i];a&&a.id!=null&&t.set(a.id,i),r.push({existing:n===`replaceMerge`||Xo(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return r}function Vo(e,t,n,r){V(r,function(i,a){if(!(!i||i.id==null)){var o=qo(i.id),s=n.get(o);if(s!=null){var c=e[s];we(!c.newOption,`Duplicated option on id "`+o+`".`),c.newOption=i,c.existing=t[s],r[a]=null}}})}function Ho(e,t){V(t,function(n,r){if(!(!n||n.name==null))for(var i=0;i<e.length;i++){var a=e[i].existing;if(!e[i].newOption&&a&&(a.id==null||n.id==null)&&!Xo(n)&&!Xo(a)&&Ko(`name`,a,n)){e[i].newOption=n,t[r]=null;return}}})}function Uo(e,t,n){V(t,function(t){if(t){for(var r,i=0;(r=e[i])&&(r.newOption||Xo(r.existing)||r.existing&&t.id!=null&&!Ko(`id`,t,r.existing));)i++;r?(r.newOption=t,r.brandNew=n):e.push({newOption:t,brandNew:n,existing:null,keyInfo:null}),i++}})}function Wo(e,t){V(t,function(t){e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function Go(e){var t=Ne();V(e,function(e){var n=e.existing;n&&t.set(n.id,e)}),V(e,function(e){var n=e.newOption;we(!n||n.id==null||!t.get(n.id)||t.get(n.id)===e,`id duplicates: `+(n&&n.id)),n&&n.id!=null&&t.set(n.id,e),!e.keyInfo&&(e.keyInfo={})}),V(e,function(e,n){var r=e.existing,i=e.newOption,a=e.keyInfo;if(pe(i)){if(a.name=i.name==null?r?r.name:Mo+n:qo(i.name),r)a.id=qo(r.id);else if(i.id!=null)a.id=qo(i.id);else{var o=0;do a.id=`\0`+a.name+`\0`+o++;while(t.get(a.id))}t.set(a.id,e)}})}function Ko(e,t,n){var r=Jo(t[e],null),i=Jo(n[e],null);return r!=null&&i!=null&&r===i}function qo(e){return Jo(e,``)}function Jo(e,t){return e==null?t:W(e)?e:fe(e)||de(e)?e+``:t}function Yo(e){var t=e.name;return!!(t&&t.indexOf(Mo))}function Xo(e){return e&&e.id!=null&&qo(e.id).indexOf(No)===0}function Zo(e,t,n){V(e,function(e){var r=e.newOption;pe(r)&&(e.keyInfo.mainType=t,e.keyInfo.subType=Qo(t,r,e.existing,n))})}function Qo(e,t,n,r){return t.type?t.type:n?n.subType:r.determineSubType(e,t)}function $o(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return U(t.dataIndex)?H(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return U(t.name)?H(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name)}function es(){var e=`__ec_inner_`+ts++;return function(t){return t[e]||(t[e]={})}}var ts=xo();function ns(e,t,n){var r=rs(t,n),i=r.mainTypeSpecified,a=r.queryOptionMap,o=r.others,s=n?n.defaultMainType:null;return!i&&s&&a.set(s,{}),a.each(function(t,r){var i=as(e,r,t,{useDefault:s===r,enableAll:n&&n.enableAll!=null?n.enableAll:!0,enableNone:n&&n.enableNone!=null?n.enableNone:!0});o[r+`Models`]=i.models,o[r+`Model`]=i.models[0]}),o}function rs(e,t){var n;if(W(e)){var r={};r[e+`Index`]=0,n=r}else n=e;var i=Ne(),a={},o=!1;return V(n,function(e,n){if(n===`dataIndex`||n===`dataIndexInside`){a[n]=e;return}var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=r[1],c=(r[2]||``).toLowerCase();if(!(!s||!c||t&&t.includeMainTypes&&B(t.includeMainTypes,s)<0)){o||=!!s;var l=i.get(s)||i.set(s,{});l[c]=e}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var is={useDefault:!0,enableAll:!1,enableNone:!1};function as(e,t,n,r){r||=is;var i=n.index,a=n.id,o=n.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var c=void 0;return s.models=r.useDefault&&(c=e.getComponent(t))?[c]:[],s}if(i===`none`||i===!1){if(r.enableNone)return s.models=[],s;i=-1}return i===`all`&&(i=r.enableAll?a=o=null:-1),s.models=e.queryComponents({mainType:t,index:i,id:a,name:o}),s}function os(e,t,n){var r={};r[t+`Id`]=e[t+`Id`],r[t+`Index`]=e[t+`Index`],r[t+`Name`]=e[t+`Name`];var i={mainType:t,query:r};return n&&(i.subType=n),i}function ss(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function cs(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function ls(e){return e===`auto`?d.domSupported?`html`:`richText`:e||`html`}function us(e,t,n,r,i){var a=t==null||t===`auto`;if(r==null)return r;if(fe(r)){var o=jo(n||0,r,i);return ro(o,a?Math.max(ao(n||0),ao(r)):t)}if(W(r))return i<1?n:r;for(var s=[],c=n,l=r,u=Math.max(c?c.length:0,l.length),d=0;d<u;++d){var f=e.getDimensionInfo(d);if(f&&f.type===`ordinal`)s[d]=(i<1&&c?c:l)[d];else{var p=c&&c[d]?c[d]:0,m=l[d],o=jo(p,m,i);s[d]=ro(o,a?Math.max(ao(p),ao(m)):t)}}return s}(function(){function e(){}return e.prototype.reset=function(e,t,n,r){return this._list=e,this._step=r||=1,this._idx=t,this._end=n??(r>0?e.length:0),this.item=null,this.key=NaN,this},e.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)&&(this.item=this._list[this._idx],this.key=this._idx+=this._step,!0)},e})();function ds(){return[1/0,-1/0]}function fs(e,t){gs(t)&&(t<e[0]&&(e[0]=t),t>e[1]&&(e[1]=t))}function ps(e,t){gs(t)&&t<e[0]&&(e[0]=t)}function ms(e,t){gs(t)&&t>e[1]&&(e[1]=t)}function hs(e,t){_s(t[0],t[1])&&(t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]))}function gs(e){return e!=null&&isFinite(e)}function _s(e,t){return gs(e)&&gs(t)&&e<=t}function vs(e){var t=e[1]-e[0];return isFinite(t)&&t>=0}function ys(e){_s(e[0],e[1])&&e[0]>e[1]&&(e[0]=e[1])}function bs(){var e=`__ec_once_`+xs++;return function(t,n){K(t,e)||(t[e]=1,n())}}var xs=xo();function Ss(e,t,n){var r=Ne(),i=0;V(e,function(a){var o=t(a),s=r.get(o)||0;n&&n(a,s),!s&&!n&&(e[i++]=a),r.set(o,s+1)}),n||(e.length=i)}function Cs(e){return e.value+``}function ws(e){return e+``}function Ts(e,t){return G(t,!0)?e.seriesIndex+2:0}function Es(e,t,n){var r=e.getData().count();return{progressiveRender:n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,large:e.get(`large`)&&r>=e.get(`largeThreshold`),modDataCount:e.get(`progressiveChunkMode`)===`mod`?e.getData().count():null}}function Ds(e,t){return{seriesType:e,overallReset:t}}function Os(e){return{overallReset:e}}var ks=`.`,As=`___EC__COMPONENT__CONTAINER___`,js=`___EC__EXTENDED_CLASS___`;function Ms(e){var t={main:``,sub:``};if(e){var n=e.split(ks);t.main=n[0]||``,t.sub=n[1]||``}return t}function Ns(e){we(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),`componentType "`+e+`" illegal`)}function Ps(e){return!!(e&&e[js])}function Fs(e,t){e.$constructor=e,e.extend=function(e){var t=this,n;return Is(t)?n=function(e){l(t,e);function t(){return e.apply(this,arguments)||this}return t}(t):(n=function(){(e.$constructor||t).apply(this,arguments)},ee(n,this)),L(n.prototype,e),n[js]=!0,n.extend=this.extend,n.superCall=Bs,n.superApply=Vs,n.superClass=t,n}}function Is(e){return ue(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function Ls(e,t){e.extend=t.extend}var Rs=Math.round(Math.random()*10);function zs(e){var t=[`__\0is_clz`,Rs++].join(`_`);e.prototype[t]=!0,e.isInstance=function(e){return!!(e&&e[t])}}function Bs(e,t){var n=[...arguments].slice(2);return this.superClass.prototype[t].apply(e,n)}function Vs(e,t,n){return this.superClass.prototype[t].apply(e,n)}function Hs(e){var t={};e.registerClass=function(e){var r=e.type||e.prototype.type;if(r){Ns(r),e.prototype.type=r;var i=Ms(r);if(!i.sub)t[i.main]=e;else if(i.sub!==As){var a=n(i);a[i.sub]=e}}return e},e.getClass=function(e,n,r){var i=t[e];if(i&&i[As]&&(i=n?i[n]:null),r&&!i)throw Error(n?`Component `+e+`.`+(n||``)+` is used but not imported.`:e+`.type should be specified.`);return i},e.getClassesByMainType=function(e){var n=Ms(e),r=[],i=t[n.main];return i&&i[As]?V(i,function(e,t){t!==As&&r.push(e)}):r.push(i),r},e.hasClass=function(e){return!!t[Ms(e).main]},e.getAllClassMainTypes=function(){var e=[];return V(t,function(t,n){e.push(n)}),e},e.hasSubTypes=function(e){var n=t[Ms(e).main];return n&&n[As]};function n(e){var n=t[e.main];return(!n||!n[As])&&(n=t[e.main]={},n[As]=!0),n}}function Us(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t||=!1,function(n,r,i){for(var a={},o=0;o<e.length;o++){var s=e[o][1];if(!(r&&B(r,s)>=0||i&&B(i,s)<0)){var c=n.getShallow(s,t);c!=null&&(a[e[o][0]]=c)}}return a}}var Ws=Us([[`fill`,`color`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`opacity`],[`shadowColor`]]),Gs=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return Ws(this,e,t)},e}(),Ks=new yr(50);function qs(e){if(typeof e==`string`){var t=Ks.get(e);return t&&t.image}return e}function Js(e,t,n,r,i){if(!e)return t;if(typeof e==`string`){if(t&&t.__zrImageSrc===e||!n)return t;var a=Ks.get(e),o={hostEl:n,cb:r,cbPayload:i};return a?(t=a.image,!Xs(t)&&a.pending.push(o)):(t=y.loadImage(e,Ys,Ys),t.__zrImageSrc=e,Ks.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}return e}function Ys(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function Xs(e){return e&&e.width&&e.height}var Zs=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Qs(e,t,n,r,i,a){if(!n){e.text=``,e.isTruncated=!1;return}var o=(t+``).split(`
3
+ `);a=$s(n,r,i,a);for(var s=!1,c={},l=0,u=o.length;l<u;l++)ec(c,o[l],a),o[l]=c.textLine,s||=c.isTruncated;e.text=o.join(`
4
+ `),e.isTruncated=s}function $s(e,t,n,r){r||={};var i=L({},r);n=G(n,`...`),i.maxIterations=G(r.maxIterations,2);var a=i.minChar=G(r.minChar,0),o=i.fontMeasureInfo=$i(t),s=o.asciiCharWidth;i.placeholder=G(r.placeholder,``);for(var c=e=Math.max(0,e-1),l=0;l<a&&c>=s;l++)c-=s;var u=aa(o,n);return u>c&&(n=``,u=0),c=e-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=c,i.containerWidth=e,i}function ec(e,t,n){var r=n.containerWidth,i=n.contentWidth,a=n.fontMeasureInfo;if(!r){e.textLine=``,e.isTruncated=!1;return}var o=aa(a,t);if(o<=r){e.textLine=t,e.isTruncated=!1;return}for(var s=0;;s++){if(o<=i||s>=n.maxIterations){t+=n.ellipsis;break}var c=s===0?tc(t,i,a):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,c),o=aa(a,t)}t===``&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}function tc(e,t,n){for(var r=0,i=0,a=e.length;i<a&&r<t;i++)r+=ia(n,e.charCodeAt(i));return i}function nc(e,t,n,r){var i=hc(e),a=t.overflow,o=t.padding,s=o?o[1]+o[3]:0,c=o?o[0]+o[2]:0,l=t.font,u=a===`truncate`,d=ua(l),f=G(t.lineHeight,d),p=t.lineOverflow===`truncate`,m=!1,h=t.width;h==null&&n!=null&&(h=n-s);var g=t.height;g==null&&r!=null&&(g=r-c);var _=h!=null&&(a===`break`||a===`breakAll`)?i?dc(i,t.font,h,a===`breakAll`,0).lines:[]:i?i.split(`
5
+ `):[],v=_.length*f;if(g??=v,v>g&&p){var y=Math.floor(g/f);m||=_.length>y,_=_.slice(0,y),v=_.length*f}if(i&&u&&h!=null)for(var b=$s(h,l,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),x={},S=0;S<_.length;S++)ec(x,_[S],b),_[S]=x.textLine,m||=x.isTruncated;for(var C=g,w=0,T=$i(l),S=0;S<_.length;S++)w=Math.max(aa(T,_[S]),w);h??=w;var E=h;return C+=c,E+=s,{lines:_,height:g,outerWidth:E,outerHeight:C,lineHeight:f,calculatedLineHeight:d,contentWidth:w,contentHeight:v,width:h,isTruncated:m}}var rc=function(){function e(){}return e}(),ic=function(){function e(e){this.tokens=[],e&&(this.tokens=e)}return e}(),ac=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return e}();function oc(e,t,n,r,i){var a=new ac,o=hc(e);if(!o)return a;var s=t.padding,c=s?s[1]+s[3]:0,l=s?s[0]+s[2]:0,u=t.width;u==null&&n!=null&&(u=n-c);var d=t.height;d==null&&r!=null&&(d=r-l);for(var f=t.overflow,p=(f===`break`||f===`breakAll`)&&u!=null?{width:u,accumWidth:0,breakAll:f===`breakAll`}:null,m=Zs.lastIndex=0,h;(h=Zs.exec(o))!=null;){var g=h.index;g>m&&sc(a,o.substring(m,g),t,p),sc(a,h[2],t,p,h[1]),m=Zs.lastIndex}m<o.length&&sc(a,o.substring(m,o.length),t,p);var _=[],v=0,y=0,b=f===`truncate`,x=t.lineOverflow===`truncate`,S={};function C(e,t,n){e.width=t,e.lineHeight=n,v+=n,y=Math.max(y,t)}outer:for(var w=0;w<a.lines.length;w++){for(var T=a.lines[w],E=0,D=0,O=0;O<T.tokens.length;O++){var k=T.tokens[O],A=k.styleName&&t.rich[k.styleName]||{},j=k.textPadding=A.padding,M=j?j[1]+j[3]:0,N=k.font=A.font||t.font;k.contentHeight=ua(N);var P=G(A.height,k.contentHeight);if(k.innerHeight=P,j&&(P+=j[0]+j[2]),k.height=P,k.lineHeight=xe(A.lineHeight,t.lineHeight,P),k.align=A&&A.align||i,k.verticalAlign=A&&A.verticalAlign||`middle`,x&&d!=null&&v+k.lineHeight>d){var F=a.lines.length;O>0?(T.tokens=T.tokens.slice(0,O),C(T,D,E),a.lines=a.lines.slice(0,w+1)):a.lines=a.lines.slice(0,w),a.isTruncated=a.isTruncated||a.lines.length<F;break outer}var I=A.width,L=I==null||I===`auto`;if(typeof I==`string`&&I.charAt(I.length-1)===`%`)k.percentWidth=I,_.push(k),k.contentWidth=aa($i(N),k.text);else{if(L){var R=A.backgroundColor,z=R&&R.image;z&&(z=qs(z),Xs(z)&&(k.width=Math.max(k.width,z.width*P/z.height)))}var B=b&&u!=null?u-D:null;B!=null&&B<k.width?!L||B<M?(k.text=``,k.width=k.contentWidth=0):(Qs(S,k.text,B-M,N,t.ellipsis,{minChar:t.truncateMinChar}),k.text=S.text,a.isTruncated=a.isTruncated||S.isTruncated,k.width=k.contentWidth=aa($i(N),k.text)):k.contentWidth=aa($i(N),k.text)}k.width+=M,D+=k.width,A&&(E=Math.max(E,k.lineHeight))}C(T,D,E)}a.outerWidth=a.width=G(u,y),a.outerHeight=a.height=G(d,v),a.contentHeight=v,a.contentWidth=y,a.outerWidth+=c,a.outerHeight+=l;for(var w=0;w<_.length;w++){var k=_[w],ee=k.percentWidth;k.width=parseInt(ee,10)/100*a.width}return a}function sc(e,t,n,r,i){var a=t===``,o=i&&n.rich[i]||{},s=e.lines,c=o.font||n.font,l=!1,u,d;if(r){var f=o.padding,p=f?f[1]+f[3]:0;if(o.width!=null&&o.width!==`auto`){var m=da(o.width,r.width)+p;s.length>0&&m+r.accumWidth>r.width&&(u=t.split(`
6
+ `),l=!0),r.accumWidth=m}else{var h=dc(t,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=h.accumWidth+p,d=h.linesWidths,u=h.lines}}u||=t.split(`
7
+ `);for(var g=$i(c),_=0;_<u.length;_++){var v=u[_],y=new rc;if(y.styleName=i,y.text=v,y.isLineHolder=!v&&!a,y.width=typeof o.width==`number`?o.width:d?d[_]:aa(g,v),!_&&!l){var b=(s[s.length-1]||(s[0]=new ic)).tokens,x=b.length;x===1&&b[0].isLineHolder?b[0]=y:(v||!x||a)&&b.push(y)}else s.push(new ic([y]))}}function cc(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var lc=re(`,&?/;] `.split(``),function(e,t){return e[t]=!0,e},{});function uc(e){return!cc(e)||!!lc[e]}function dc(e,t,n,r,i){for(var a=[],o=[],s=``,c=``,l=0,u=0,d=$i(t),f=0;f<e.length;f++){var p=e.charAt(f);if(p===`
8
+ `){c&&(s+=c,u+=l),a.push(s),o.push(u),s=``,c=``,l=0,u=0;continue}var m=ia(d,p.charCodeAt(0)),h=!r&&!uc(p);if(a.length?u+m>n:i+u+m>n){u?(s||c)&&(h?(s||(s=c,c=``,l=0,u=l),a.push(s),o.push(u-l),c+=p,l+=m,s=``,u=l):(c&&(s+=c,c=``,l=0),a.push(s),o.push(u),s=p,u=m)):h?(a.push(c),o.push(l),c=p,l=m):(a.push(p),o.push(m));continue}u+=m,h?(c+=p,l+=m):(c&&(s+=c,c=``,l=0),s+=p)}return c&&(s+=c),s&&(a.push(s),o.push(u)),a.length===1&&(u+=i),{accumWidth:u,lines:a,linesWidths:o}}function fc(e,t,n,r,i,a){if(e.baseX=n,e.baseY=r,e.outerWidth=e.outerHeight=null,t){var o=t.width*2,s=t.height*2;rn.set(pc,ca(n,o,i),la(r,s,a),o,s),rn.intersect(t,pc,null,mc);var c=mc.outIntersectRect;e.outerWidth=c.width,e.outerHeight=c.height,e.baseX=ca(c.x,c.width,i,!0),e.baseY=la(c.y,c.height,a,!0)}}var pc=new rn(0,0,0,0),mc={outIntersectRect:{},clamp:!0};function hc(e){return e==null?e=``:e+=``}function gc(e){var t=hc(e.text),n=e.font;return _c(e,aa($i(n),t),ua(n),null)}function _c(e,t,n,r){var i=new rn(ca(e.x||0,t,e.textAlign),la(e.y||0,n,e.textBaseline),t,n),a=r??(vc(e)?e.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function vc(e){var t=e.stroke;return t!=null&&t!==`none`&&e.lineWidth>0}var yc=`__zr_style_`+Math.round(Math.random()*10),bc={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:`#000`,opacity:1,blend:`source-over`},xc={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};bc[yc]=!0;var Sc=[`z`,`z2`,`invisible`],Cc=[`invisible`],wc=function(e){l(t,e);function t(t){return e.call(this,t)||this}return t.prototype._init=function(t){for(var n=oe(t),r=0;r<n.length;r++){var i=n[r];i===`style`?this.useStyle(t[i]):e.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(e){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,t,n,r){var i=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&Dc(this,e,t)||i&&!i[0]&&!i[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length){for(var a=0;a<this.__clipPaths.length;++a)if(this.__clipPaths[a].isZeroArea())return!1}if(r&&this.parent)for(var o=this.parent;o;){if(o.ignore)return!1;o=o.parent}return!0},t.prototype.contain=function(e,t){return this.rectContain(e,t)},t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.rectContain=function(e,t){var n=this.transformCoordToLocal(e,t);return this.getBoundingRect().contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var t=this.transform,n=this.getBoundingRect(),r=this.style,i=r.shadowBlur||0,a=r.shadowOffsetX||0,o=r.shadowOffsetY||0;e=this._paintRect||=new rn(0,0,0,0),t?rn.applyTransform(e,n,t):e.copy(n),(i||a||o)&&(e.width+=i*2+Math.abs(a),e.height+=i*2+Math.abs(o),e.x=Math.min(e.x,e.x+a-i),e.y=Math.min(e.y,e.y+o-i));var s=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-s),e.y=Math.floor(e.y-s),e.width=Math.ceil(e.width+1+s*2),e.height=Math.ceil(e.height+1+s*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new rn(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate(`style`,e)},t.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(t,n){t===`style`?this.style?this.setStyle(n):this.useStyle(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setStyle=function(e,t){return typeof e==`string`?this.style[e]=t:L(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=2,this._rect&&=null},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&2)},t.prototype.styleUpdated=function(){this.__dirty&=-3},t.prototype.createStyle=function(e){return Fe(bc,e)},t.prototype.useStyle=function(e){e[yc]||(e=this.createStyle(e)),this.style=e,this.dirtyStyle()},t.prototype._useHoverStyle=function(e){this.__hoverStyle=e},t.prototype.isStyleObject=function(e){return e[yc]},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,n,Sc)},t.prototype._applyStateObj=function(t,n,r,i,a,o){e.prototype._applyStateObj.call(this,t,n,r,i,a,o);var s=!(n&&i),c=this.__inHover===1,l;if(n&&n.style?a?i?l=n.style:(l=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(l,n.style)):(l=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(l,n.style)):s&&(l=r.style),l){if(a){var u=this.style;if(this.style=this.createStyle(s?{}:u),s)for(var d=oe(u),f=0;f<d.length;f++){var p=d[f];p in l&&(l[p]=l[p],this.style[p]=u[p])}for(var m=oe(l),f=0;f<m.length;f++){var p=m[f];this.style[p]=this.style[p]}this._transitionState(t,{style:l},o,this.getAnimationStyleProps())}else c?this._useHoverStyle(l):this.useStyle(l)}if(!c)for(var h=this.__inHover?Cc:Sc,f=0;f<h.length;f++){var p=h[f];n&&n[p]!=null?this[p]=n[p]:s&&r[p]!=null&&(this[p]=r[p])}},t.prototype._mergeStates=function(t){for(var n=e.prototype._mergeStates.call(this,t),r,i=0;i<t.length;i++){var a=t[i];a.style&&(r||={},this._mergeStyle(r,a.style))}return r&&(n.style=r),n},t.prototype._mergeStyle=function(e,t){return L(e,t),e},t.prototype.getAnimationStyleProps=function(){return xc},t.initDefaultProps=(function(){var e=t.prototype;e.type=`displayable`,e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor=`pointer`,e.rectHover=!1,e.incremental=0,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=3})(),t}(ya),Tc=new rn(0,0,0,0),Ec=new rn(0,0,0,0);function Dc(e,t,n){return Tc.copy(e.getBoundingRect()),e.transform&&Tc.applyTransform(e.transform),Ec.width=t,Ec.height=n,!Tc.intersect(Ec)}var Oc=Math.min,kc=Math.max,Ac=Math.sin,jc=Math.cos,Mc=Math.PI*2,Nc=ze(),Pc=ze(),Fc=ze();function Ic(e,t,n,r,i,a){i[0]=Oc(e,n),i[1]=Oc(t,r),a[0]=kc(e,n),a[1]=kc(t,r)}var Lc=[],Rc=[];function zc(e,t,n,r,i,a,o,s,c,l){var u=rr,d=er,f=u(e,n,i,o,Lc);c[0]=1/0,c[1]=1/0,l[0]=-1/0,l[1]=-1/0;for(var p=0;p<f;p++){var m=d(e,n,i,o,Lc[p]);c[0]=Oc(m,c[0]),l[0]=kc(m,l[0])}f=u(t,r,a,s,Rc);for(var p=0;p<f;p++){var h=d(t,r,a,s,Rc[p]);c[1]=Oc(h,c[1]),l[1]=kc(h,l[1])}c[0]=Oc(e,c[0]),l[0]=kc(e,l[0]),c[0]=Oc(o,c[0]),l[0]=kc(o,l[0]),c[1]=Oc(t,c[1]),l[1]=kc(t,l[1]),c[1]=Oc(s,c[1]),l[1]=kc(s,l[1])}function Bc(e,t,n,r,i,a,o,s){var c=ur,l=sr,u=kc(Oc(c(e,n,i),1),0),d=kc(Oc(c(t,r,a),1),0),f=l(e,n,i,u),p=l(t,r,a,d);o[0]=Oc(e,i,f),o[1]=Oc(t,a,p),s[0]=kc(e,i,f),s[1]=kc(t,a,p)}function Vc(e,t,n,r,i,a,o,s,c){var l=tt,u=nt,d=Math.abs(i-a);if(d%Mc<1e-4&&d>1e-4){s[0]=e-n,s[1]=t-r,c[0]=e+n,c[1]=t+r;return}if(Nc[0]=jc(i)*n+e,Nc[1]=Ac(i)*r+t,Pc[0]=jc(a)*n+e,Pc[1]=Ac(a)*r+t,l(s,Nc,Pc),u(c,Nc,Pc),i%=Mc,i<0&&(i+=Mc),a%=Mc,a<0&&(a+=Mc),i>a&&!o?a+=Mc:i<a&&o&&(i+=Mc),o){var f=a;a=i,i=f}for(var p=0;p<a;p+=Math.PI/2)p>i&&(Fc[0]=jc(p)*n+e,Fc[1]=Ac(p)*r+t,l(s,Fc,s),u(c,Fc,c))}var Hc={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Uc=[],Wc=[],Gc=[],Kc=[],qc=[],Jc=[],Yc=Math.min,Xc=Math.max,Zc=Math.cos,Qc=Math.sin,$c=Math.abs,el=Math.PI,tl=el*2,nl=typeof Float32Array<`u`,rl=[];function il(e){return Math.round(e/el*1e8)/1e8%2*el}function al(e,t){var n=il(e[0]);n<0&&(n+=tl);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=tl?i=n+tl:t&&n-i>=tl?i=n-tl:!t&&n>i?i=n+(tl-il(n-i)):t&&n<i&&(i=n-(tl-il(i-n))),e[0]=n,e[1]=i}var ol=function(){function e(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(e,t,n){n||=0,n>0&&(this._ux=$c(n/Ii/e)||0,this._uy=$c(n/Ii/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(Hc.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=$c(e-this._xi),r=$c(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(Hc.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var a=n*n+r*r;a>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=a)}return this},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){return this._drawPendingPt(),this.addData(Hc.C,e,t,n,r,i,a),this._ctx&&this._ctx.bezierCurveTo(e,t,n,r,i,a),this._xi=i,this._yi=a,this},e.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(Hc.Q,e,t,n,r),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,r),this._xi=n,this._yi=r,this},e.prototype.arc=function(e,t,n,r,i,a){this._drawPendingPt(),rl[0]=r,rl[1]=i,al(rl,a),r=rl[0],i=rl[1];var o=i-r;return this.addData(Hc.A,e,t,n,n,r,o,0,+!a),this._ctx&&this._ctx.arc(e,t,n,r,i,a),this._xi=Zc(i)*n+e,this._yi=Qc(i)*n+t,this},e.prototype.arcTo=function(e,t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},e.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(Hc.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(Hc.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){if(this._saveData){var t=e.length;!(this.data&&this.data.length===t)&&nl&&(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t}},e.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var t=e.length,n=0,r=this._len,i=0;i<t;i++)n+=e[i].len();var a=this.data;if(nl&&(a instanceof Float32Array||!a)&&(this.data=new Float32Array(r+n),r>0&&a))for(var o=0;o<r;o++)this.data[o]=a[o];for(var i=0;i<t;i++)for(var s=e[i].data,o=0;o<s.length;o++)this.data[r++]=s[o];this._len=r}},e.prototype.addData=function(e,t,n,r,i,a,o,s,c){if(this._saveData){var l=this.data;this._len+arguments.length>l.length&&(this._expandData(),l=this.data);for(var u=0;u<arguments.length;u++)l[this._len++]=arguments[u]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,nl&&this._len>11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){Gc[0]=Gc[1]=qc[0]=qc[1]=Number.MAX_VALUE,Kc[0]=Kc[1]=Jc[0]=Jc[1]=-Number.MAX_VALUE;var e=this.data,t=0,n=0,r=0,i=0,a;for(a=0;a<this._len;){var o=e[a++],s=a===1;switch(s&&(t=e[a],n=e[a+1],r=t,i=n),o){case Hc.M:t=r=e[a++],n=i=e[a++],qc[0]=r,qc[1]=i,Jc[0]=r,Jc[1]=i;break;case Hc.L:Ic(t,n,e[a],e[a+1],qc,Jc),t=e[a++],n=e[a++];break;case Hc.C:zc(t,n,e[a++],e[a++],e[a++],e[a++],e[a],e[a+1],qc,Jc),t=e[a++],n=e[a++];break;case Hc.Q:Bc(t,n,e[a++],e[a++],e[a],e[a+1],qc,Jc),t=e[a++],n=e[a++];break;case Hc.A:var c=e[a++],l=e[a++],u=e[a++],d=e[a++],f=e[a++],p=e[a++]+f;a+=1;var m=!e[a++];s&&(r=Zc(f)*u+c,i=Qc(f)*d+l),Vc(c,l,u,d,f,p,m,qc,Jc),t=Zc(p)*u+c,n=Qc(p)*d+l;break;case Hc.R:r=t=e[a++],i=n=e[a++];var h=e[a++],g=e[a++];Ic(r,i,r+h,i+g,qc,Jc);break;case Hc.Z:t=r,n=i}tt(Gc,Gc,qc),nt(Kc,Kc,Jc)}return a===0&&(Gc[0]=Gc[1]=Kc[0]=Kc[1]=0),new rn(Gc[0],Gc[1],Kc[0]-Gc[0],Kc[1]-Gc[1])},e.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,r=this._uy,i=0,a=0,o=0,s=0;this._pathSegLen||=[];for(var c=this._pathSegLen,l=0,u=0,d=0;d<t;){var f=e[d++],p=d===1;p&&(i=e[d],a=e[d+1],o=i,s=a);var m=-1;switch(f){case Hc.M:i=o=e[d++],a=s=e[d++];break;case Hc.L:var h=e[d++],g=e[d++],_=h-i,v=g-a;($c(_)>n||$c(v)>r||d===t-1)&&(m=Math.sqrt(_*_+v*v),i=h,a=g);break;case Hc.C:var y=e[d++],b=e[d++],h=e[d++],g=e[d++],x=e[d++],S=e[d++];m=or(i,a,y,b,h,g,x,S,10),i=x,a=S;break;case Hc.Q:var y=e[d++],b=e[d++],h=e[d++],g=e[d++];m=pr(i,a,y,b,h,g,10),i=h,a=g;break;case Hc.A:var C=e[d++],w=e[d++],T=e[d++],E=e[d++],D=e[d++],O=e[d++],k=O+D;d+=1,p&&(o=Zc(D)*T+C,s=Qc(D)*E+w),m=Xc(T,E)*Yc(tl,Math.abs(O)),i=Zc(k)*T+C,a=Qc(k)*E+w;break;case Hc.R:o=i=e[d++],s=a=e[d++];var A=e[d++],j=e[d++];m=A*2+j*2;break;case Hc.Z:var _=o-i,v=s-a;m=Math.sqrt(_*_+v*v),i=o,a=s}m>=0&&(c[u++]=m,l+=m)}return this._pathLen=l,l},e.prototype.rebuildPath=function(e,t){var n=this.data,r=this._ux,i=this._uy,a=this._len,o,s,c,l,u,d,f=t<1,p,m,h=0,g=0,_,v=0,y,b;if(!(f&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,m=this._pathLen,_=t*m,!_)))lo:for(var x=0;x<a;){var S=n[x++],C=x===1;switch(C&&(c=n[x],l=n[x+1],o=c,s=l),S!==Hc.L&&v>0&&(e.lineTo(y,b),v=0),S){case Hc.M:o=c=n[x++],s=l=n[x++],e.moveTo(c,l);break;case Hc.L:u=n[x++],d=n[x++];var w=$c(u-c),T=$c(d-l);if(w>r||T>i){if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+u*D,l*(1-D)+d*D);break lo}h+=E}e.lineTo(u,d),c=u,l=d,v=0}else{var O=w*w+T*T;O>v&&(y=u,b=d,v=O)}break;case Hc.C:var k=n[x++],A=n[x++],j=n[x++],M=n[x++],N=n[x++],P=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;ir(c,k,j,N,D,Uc),ir(l,A,M,P,D,Wc),e.bezierCurveTo(Uc[1],Wc[1],Uc[2],Wc[2],Uc[3],Wc[3]);break lo}h+=E}e.bezierCurveTo(k,A,j,M,N,P),c=N,l=P;break;case Hc.Q:var k=n[x++],A=n[x++],j=n[x++],M=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;dr(c,k,j,D,Uc),dr(l,A,M,D,Wc),e.quadraticCurveTo(Uc[1],Wc[1],Uc[2],Wc[2]);break lo}h+=E}e.quadraticCurveTo(k,A,j,M),c=j,l=M;break;case Hc.A:var F=n[x++],I=n[x++],L=n[x++],R=n[x++],z=n[x++],B=n[x++],ee=n[x++],te=!n[x++],ne=L>R?L:R,V=$c(L-R)>.001,H=z+B,re=!1;if(f){var E=p[g++];h+E>_&&(H=z+B*(_-h)/E,re=!0),h+=E}if(V&&e.ellipse?e.ellipse(F,I,L,R,ee,z,H,te):e.arc(F,I,ne,z,H,te),re)break lo;C&&(o=Zc(z)*L+F,s=Qc(z)*R+I),c=Zc(H)*L+F,l=Qc(H)*R+I;break;case Hc.R:o=c=n[x],s=l=n[x+1],u=n[x++],d=n[x++];var ie=n[x++],ae=n[x++];if(f){var E=p[g++];if(h+E>_){var oe=_-h;e.moveTo(u,d),e.lineTo(u+Yc(oe,ie),d),oe-=ie,oe>0&&e.lineTo(u+ie,d+Yc(oe,ae)),oe-=ae,oe>0&&e.lineTo(u+Xc(ie-oe,0),d+ae),oe-=ie,oe>0&&e.lineTo(u,d+Xc(ae-oe,0));break lo}h+=E}e.rect(u,d,ie,ae);break;case Hc.Z:if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+o*D,l*(1-D)+s*D);break lo}h+=E}e.closePath(),c=o,l=s}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.prototype.canSave=function(){return!!this._saveData},e.CMD=Hc,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e}();function sl(e,t,n,r,i,a,o){if(i===0)return!1;var s=i,c=0,l=e;if(o>t+s&&o>r+s||o<t-s&&o<r-s||a>e+s&&a>n+s||a<e-s&&a<n-s)return!1;if(e!==n)c=(t-r)/(e-n),l=(e*r-n*t)/(e-n);else return Math.abs(a-e)<=s/2;var u=c*a-o+l;return u*u/(c*c+1)<=s/2*s/2}function cl(e,t,n,r,i,a,o,s,c,l,u){if(c===0)return!1;var d=c;return u>t+d&&u>r+d&&u>a+d&&u>s+d||u<t-d&&u<r-d&&u<a-d&&u<s-d||l>e+d&&l>n+d&&l>i+d&&l>o+d||l<e-d&&l<n-d&&l<i-d&&l<o-d?!1:ar(e,t,n,r,i,a,o,s,l,u,null)<=d/2}function ll(e,t,n,r,i,a,o,s,c){if(o===0)return!1;var l=o;return c>t+l&&c>r+l&&c>a+l||c<t-l&&c<r-l&&c<a-l||s>e+l&&s>n+l&&s>i+l||s<e-l&&s<n-l&&s<i-l?!1:fr(e,t,n,r,i,a,s,c,null)<=l/2}var ul=Math.PI*2;function dl(e){return e%=ul,e<0&&(e+=ul),e}var fl=Math.PI*2;function pl(e,t,n,r,i,a,o,s,c){if(o===0)return!1;var l=o;s-=e,c-=t;var u=Math.sqrt(s*s+c*c);if(u-l>n||u+l<n)return!1;if(Math.abs(r-i)%fl<1e-4)return!0;if(a){var d=r;r=dl(i),i=dl(d)}else r=dl(r),i=dl(i);r>i&&(i+=fl);var f=Math.atan2(c,s);return f<0&&(f+=fl),f>=r&&f<=i||f+fl>=r&&f+fl<=i}function ml(e,t,n,r,i,a){if(a>t&&a>r||a<t&&a<r||r===t)return 0;var o=(a-t)/(r-t),s=r<t?1:-1;(o===1||o===0)&&(s=r<t?.5:-.5);var c=o*(n-e)+e;return c===i?1/0:c>i?s:0}var hl=ol.CMD,gl=Math.PI*2,_l=1e-4;function vl(e,t){return Math.abs(e-t)<_l}var yl=[-1,-1,-1],bl=[-1,-1];function xl(){var e=bl[0];bl[0]=bl[1],bl[1]=e}function Sl(e,t,n,r,i,a,o,s,c,l){if(l>t&&l>r&&l>a&&l>s||l<t&&l<r&&l<a&&l<s)return 0;var u=nr(t,r,a,s,l,yl);if(u===0)return 0;for(var d=0,f=-1,p=void 0,m=void 0,h=0;h<u;h++){var g=yl[h],_=g===0||g===1?.5:1;er(e,n,i,o,g)<c||(f<0&&(f=rr(t,r,a,s,bl),bl[1]<bl[0]&&f>1&&xl(),p=er(t,r,a,s,bl[0]),f>1&&(m=er(t,r,a,s,bl[1]))),f===2?g<bl[0]?d+=p<t?_:-_:g<bl[1]?d+=m<p?_:-_:d+=s<m?_:-_:g<bl[0]?d+=p<t?_:-_:d+=s<p?_:-_)}return d}function Cl(e,t,n,r,i,a,o,s){if(s>t&&s>r&&s>a||s<t&&s<r&&s<a)return 0;var c=lr(t,r,a,s,yl);if(c===0)return 0;var l=ur(t,r,a);if(l>=0&&l<=1){for(var u=0,d=sr(t,r,a,l),f=0;f<c;f++){var p=yl[f]===0||yl[f]===1?.5:1,m=sr(e,n,i,yl[f]);m<o||(yl[f]<l?u+=d<t?p:-p:u+=a<d?p:-p)}return u}var p=yl[0]===0||yl[0]===1?.5:1,m=sr(e,n,i,yl[0]);return m<o?0:a<t?p:-p}function wl(e,t,n,r,i,a,o,s){if(s-=t,s>n||s<-n)return 0;var c=Math.sqrt(n*n-s*s);yl[0]=-c,yl[1]=c;var l=Math.abs(r-i);if(l<1e-4)return 0;if(l>=gl-1e-4){r=0,i=gl;var u=a?1:-1;return o>=yl[0]+e&&o<=yl[1]+e?u:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=gl,i+=gl);for(var f=0,p=0;p<2;p++){var m=yl[p];if(m+e>o){var h=Math.atan2(s,m),u=a?1:-1;h<0&&(h=gl+h),(h>=r&&h<=i||h+gl>=r&&h+gl<=i)&&(h>Math.PI/2&&h<Math.PI*1.5&&(u=-u),f+=u)}}return f}function Tl(e,t,n,r,i){for(var a=e.data,o=e.len(),s=0,c=0,l=0,u=0,d=0,f,p,m=0;m<o;){var h=a[m++],g=m===1;switch(h===hl.M&&m>1&&(n||(s+=ml(c,l,u,d,r,i))),g&&(c=a[m],l=a[m+1],u=c,d=l),h){case hl.M:u=a[m++],d=a[m++],c=u,l=d;break;case hl.L:if(n){if(sl(c,l,a[m],a[m+1],t,r,i))return!0}else s+=ml(c,l,a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case hl.C:if(n){if(cl(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=Sl(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case hl.Q:if(n){if(ll(c,l,a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=Cl(c,l,a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case hl.A:var _=a[m++],v=a[m++],y=a[m++],b=a[m++],x=a[m++],S=a[m++];m+=1;var C=!!(1-a[m++]);f=Math.cos(x)*y+_,p=Math.sin(x)*b+v,g?(u=f,d=p):s+=ml(c,l,f,p,r,i);var w=(r-_)*b/y+_;if(n){if(pl(_,v,b,x,x+S,C,t,w,i))return!0}else s+=wl(_,v,b,x,x+S,C,w,i);c=Math.cos(x+S)*y+_,l=Math.sin(x+S)*b+v;break;case hl.R:u=c=a[m++],d=l=a[m++];var T=a[m++],E=a[m++];if(f=u+T,p=d+E,n){if(sl(u,d,f,d,t,r,i)||sl(f,d,f,p,t,r,i)||sl(f,p,u,p,t,r,i)||sl(u,p,u,d,t,r,i))return!0}else s+=ml(f,d,f,p,r,i),s+=ml(u,p,u,d,r,i);break;case hl.Z:if(n){if(sl(c,l,u,d,t,r,i))return!0}else s+=ml(c,l,u,d,r,i);c=u,l=d}}return!n&&!vl(l,d)&&(s+=ml(c,l,u,d,r,i)||0),s!==0}function El(e,t,n){return Tl(e,0,!1,t,n)}function Dl(e,t,n,r){return Tl(e,t,!0,n,r)}var Ol=z({fill:`#000`,stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:`butt`,miterLimit:10,strokeNoScale:!1,strokeFirst:!1},bc),kl={style:z({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},xc.style)},Al=Zi.concat([`invisible`,`culling`,`z`,`z2`,`zlevel`,`parent`]),jl=function(e){l(t,e);function t(t){return e.call(this,t)||this}return t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(e){n.buildPath(e,n.shape)}),i.silent=!0;var a=i.style;for(var o in r)a[o]!==r[o]&&(a[o]=r[o]);a.fill=r.fill?r.decal:null,a.decal=null,a.shadowColor=null,r.strokeFirst&&(a.stroke=null);for(var s=0;s<Al.length;++s)i[Al[s]]=this[Al[s]];i.__dirty|=1}else this._decalEl&&=null},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(t){var n=oe(t);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var i=0;i<n.length;i++){var a=n[i],o=t[a];a===`style`?this.style?L(this.style,o):this.useStyle(o):a===`shape`?L(this.shape,o):e.prototype.attrKV.call(this,a,o)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if(e!==`none`){if(W(e)){var t=Br(e,0);return t>.5?Ri:t>.2?Bi:zi}if(e)return zi}return Ri},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(W(t)){var n=this.__zr;if(!!(n&&n.isDarkMode())==Br(e,0)<.4)return t}},t.prototype.buildPath=function(e,t,n){},t.prototype.pathUpdated=function(){this.__dirty&=-5},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new ol(!1)},t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&4)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),e=i.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var a=this._rectStroke||=e.clone();if(this.__dirty||n){a.copy(e);var o=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;s=Math.max(s,c??4)}o>1e-10&&(a.width+=s/o,a.height+=s/o,a.x-=s/o/2,a.y-=s/o/2)}return a}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),i=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var a=this.path;if(this.hasStroke()){var o=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),Dl(a,o/s,e,t)))return!0}if(this.hasFill())return El(a,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&=null,this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate(`shape`,e)},t.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():e===`shape`?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){t===`shape`?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||=this.shape={},typeof e==`string`?n[e]=t:L(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&4)},t.prototype.createStyle=function(e){return Fe(Ol,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=L({},this.shape))},t.prototype._applyStateObj=function(t,n,r,i,a,o){if(e.prototype._applyStateObj.call(this,t,n,r,i,a,o),this.__inHover!==1){var s=!(n&&i),c;if(n&&n.shape?a?i?c=n.shape:(c=L({},r.shape),L(c,n.shape)):(c=L({},i?this.shape:r.shape),L(c,n.shape)):s&&(c=r.shape),c){if(a){this.shape=L({},this.shape);for(var l={},u=oe(c),d=0;d<u.length;d++){var f=u[d];typeof c[f]==`object`?this.shape[f]=c[f]:l[f]=c[f]}this._transitionState(t,{shape:l},o)}else this.shape=c,this.dirtyShape()}}},t.prototype._mergeStates=function(t){for(var n=e.prototype._mergeStates.call(this,t),r,i=0;i<t.length;i++){var a=t[i];a.shape&&(r||={},this._mergeStyle(r,a.shape))}return r&&(n.shape=r),n},t.prototype.getAnimationStyleProps=function(){return kl},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(t){l(n,t);function n(n){var r=t.call(this,n)||this;return e.init&&e.init.call(r,n),r}return n.prototype.getDefaultStyle=function(){return F(e.style)},n.prototype.getDefaultShape=function(){return F(e.shape)},n}(t);for(var r in e)typeof e[r]==`function`&&(n.prototype[r]=e[r]);return n},t.initDefaultProps=(function(){var e=t.prototype;e.type=`path`,e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=7})(),t}(wc),Ml=z({strokeFirst:!0,font:p,x:0,y:0,textAlign:`left`,textBaseline:`top`,miterLimit:2},Ol),Nl=function(e){l(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){return vc(this.style)},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.createStyle=function(e){return Fe(Ml,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){return this._rect||=gc(this.style),this._rect},t.initDefaultProps=(function(){var e=t.prototype;e.dirtyRectTolerance=10})(),t}(wc);Nl.prototype.type=`tspan`;var Pl=z({x:0,y:0},bc),Fl={style:z({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},xc.style)};function Il(e){return!!(e&&typeof e!=`string`&&e.width&&e.height)}var Ll=function(e){l(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return Fe(Pl,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(n!=null)return n;var r=Il(t.image)?t.image:this.__image;if(!r)return 0;var i=e===`width`?`height`:`width`,a=t[i];return a==null?r[e]:r[e]/r[i]*a},t.prototype.getWidth=function(){return this._getSize(`width`)},t.prototype.getHeight=function(){return this._getSize(`height`)},t.prototype.getAnimationStyleProps=function(){return Fl},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||=new rn(e.x||0,e.y||0,this.getWidth(),this.getHeight()),this._rect},t}(wc);Ll.prototype.type=`image`;function Rl(e,t){var n=t.x,r=t.y,i=t.width,a=t.height,o=t.r,s,c,l,u;i<0&&(n+=i,i=-i),a<0&&(r+=a,a=-a),typeof o==`number`?s=c=l=u=o:o instanceof Array?o.length===1?s=c=l=u=o[0]:o.length===2?(s=l=o[0],c=u=o[1]):o.length===3?(s=o[0],c=u=o[1],l=o[2]):(s=o[0],c=o[1],l=o[2],u=o[3]):s=c=l=u=0;var d;s+c>i&&(d=s+c,s*=i/d,c*=i/d),l+u>i&&(d=l+u,l*=i/d,u*=i/d),c+l>a&&(d=c+l,c*=a/d,l*=a/d),s+u>a&&(d=s+u,s*=a/d,u*=a/d),e.moveTo(n+s,r),e.lineTo(n+i-c,r),c!==0&&e.arc(n+i-c,r+c,c,-Math.PI/2,0),e.lineTo(n+i,r+a-l),l!==0&&e.arc(n+i-l,r+a-l,l,0,Math.PI/2),e.lineTo(n+u,r+a),u!==0&&e.arc(n+u,r+a-u,u,Math.PI/2,Math.PI),e.lineTo(n,r+s),s!==0&&e.arc(n+s,r+s,s,Math.PI,Math.PI*1.5),e.closePath()}var zl=Math.round;function Bl(e,t,n){if(t){var r=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=r,e.x2=i,e.y1=a,e.y2=o;var s=n&&n.lineWidth;return s?(zl(r*2)===zl(i*2)&&(e.x1=e.x2=Hl(r,s,!0)),zl(a*2)===zl(o*2)&&(e.y1=e.y2=Hl(a,s,!0)),e):e}}function Vl(e,t,n){if(t){var r=t.x,i=t.y,a=t.width,o=t.height;e.x=r,e.y=i,e.width=a,e.height=o;var s=n&&n.lineWidth;return s?(e.x=Hl(r,s,!0),e.y=Hl(i,s,!0),e.width=Math.max(Hl(r+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Hl(i+o,s,!1)-e.y,o===0?0:1),e):e}}function Hl(e,t,n){if(!t)return e;var r=zl(e*2);return(r+zl(t))%2==0?r/2:(r+(n?1:-1))/2}var Ul=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),Wl={},Gl=function(e){l(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Ul},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=Vl(Wl,t,this.style);n=o.x,r=o.y,i=o.width,a=o.height,o.r=t.r,t=o}else n=t.x,r=t.y,i=t.width,a=t.height;t.r?Rl(e,t):e.rect(n,r,i,a)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(jl);Gl.prototype.type=`rect`;var Kl={fill:`#000`},ql=2,Jl={},Yl={style:z({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},xc.style)},Xl=function(e){l(t,e);function t(t){var n=e.call(this)||this;return n.type=`text`,n._children=[],n._defaultStyle=Kl,n.attr(t),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var n=this._children[t];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(t){var n=this.innerTransformable;return n?n.getLocalTransform(t):e.prototype.getLocalTransform.call(this,t)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,ru(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=t},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new rn(0,0,0,0),t=this._children,n=[],r=null,i=0;i<t.length;i++){var a=t[i],o=a.getBoundingRect(),s=a.getLocalTransform(n);s?(e.copy(o),e.applyTransform(s),r||=e.clone(),r.union(e)):(r||=o.clone(),r.union(o))}this._rect=r||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||Kl},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,t){if(!t)return e;var n=t.rich,r=e.rich||n&&{};return L(e,t),n&&r?(this._mergeRich(r,n),e.rich=r):r&&(e.rich=r),e},t.prototype._mergeRich=function(e,t){for(var n=oe(t),r=0;r<n.length;r++){var i=n[r];e[i]=e[i]||{},L(e[i],t[i])}},t.prototype.getAnimationStyleProps=function(){return Yl},t.prototype._getOrCreateChild=function(e){var t=this._children[this._childCursor];return(!t||!(t instanceof e))&&(t=new e),this._children[this._childCursor++]=t,t.__zr=this.__zr,t.parent=this,t},t.prototype._updatePlainTexts=function(){var e=this.style,t=e.font||`12px sans-serif`,n=e.padding,r=this._defaultStyle,i=e.x||0,a=e.y||0,o=e.align||r.align||`left`,s=e.verticalAlign||r.verticalAlign||`top`;fc(Jl,r.overflowRect,i,a,o,s),i=Jl.baseX,a=Jl.baseY;var c=nc(cu(e),e,Jl.outerWidth,Jl.outerHeight),l=lu(e),u=!!e.backgroundColor,d=c.outerHeight,f=c.outerWidth,p=c.lines,m=c.lineHeight;this.isTruncated=!!c.isTruncated;var h=i,g=la(a,c.contentHeight,s);if(l||n){var _=ca(i,f,o),v=la(a,d,s);l&&this._renderBackground(e,e,_,v,f,d)}g+=m/2,n&&(h=su(i,o,n),s===`top`?g+=n[0]:s===`bottom`&&(g-=n[2]));for(var y=0,b=!1,x=!1,S=ou(`fill`in e?e.fill:(x=!0,r.fill)),C=au(`stroke`in e?e.stroke:!u&&(!r.autoStroke||x)?(y=ql,b=!0,r.stroke):null),w=e.textShadowBlur>0,T=0;T<p.length;T++){var E=this._getOrCreateChild(Nl),D=E.createStyle();E.useStyle(D),D.text=p[T],D.x=h,D.y=g,o&&(D.textAlign=o),D.textBaseline=`middle`,D.opacity=e.opacity,D.strokeFirst=!0,w&&(D.shadowBlur=e.textShadowBlur||0,D.shadowColor=e.textShadowColor||`transparent`,D.shadowOffsetX=e.textShadowOffsetX||0,D.shadowOffsetY=e.textShadowOffsetY||0),D.stroke=C,D.fill=S,C&&(D.lineWidth=e.lineWidth||y,D.lineDash=e.lineDash,D.lineDashOffset=e.lineDashOffset||0),D.font=t,tu(D,e),g+=m,E.setBoundingRect(_c(D,c.contentWidth,c.calculatedLineHeight,b?0:null))}},t.prototype._updateRichTexts=function(){var e=this.style,t=this._defaultStyle,n=e.align||t.align,r=e.verticalAlign||t.verticalAlign,i=e.x||0,a=e.y||0;fc(Jl,t.overflowRect,i,a,n,r),i=Jl.baseX,a=Jl.baseY;var o=oc(cu(e),e,Jl.outerWidth,Jl.outerHeight,n),s=o.width,c=o.outerWidth,l=o.outerHeight,u=e.padding;this.isTruncated=!!o.isTruncated;var d=ca(i,c,n),f=la(a,l,r),p=d,m=f;u&&(p+=u[3],m+=u[0]);var h=p+s;lu(e)&&this._renderBackground(e,e,d,f,c,l);for(var g=!!e.backgroundColor,_=0;_<o.lines.length;_++){for(var v=o.lines[_],y=v.tokens,b=y.length,x=v.lineHeight,S=v.width,C=0,w=p,T=h,E=b-1,D=void 0;C<b&&(D=y[C],!D.align||D.align===`left`);)this._placeToken(D,e,x,m,w,`left`,g),S-=D.width,w+=D.width,C++;for(;E>=0&&(D=y[E],D.align===`right`);)this._placeToken(D,e,x,m,T,`right`,g),S-=D.width,T-=D.width,E--;for(w+=(s-(w-p)-(h-T)-S)/2;C<=E;)D=y[C],this._placeToken(D,e,x,m,w+D.width/2,`center`,g),w+=D.width,C++;m+=x}},t.prototype._placeToken=function(e,t,n,r,i,a,o){var s=t.rich[e.styleName]||{};s.text=e.text;var c=e.verticalAlign,l=r+n/2;c===`top`?l=r+e.height/2:c===`bottom`&&(l=r+n-e.height/2),!e.isLineHolder&&lu(s)&&this._renderBackground(s,t,a===`right`?i-e.width:a===`center`?i-e.width/2:i,l-e.height/2,e.width,e.height);var u=!!s.backgroundColor,d=e.textPadding;d&&(i=su(i,a,d),l-=e.height/2-d[0]-e.innerHeight/2);var f=this._getOrCreateChild(Nl),p=f.createStyle();f.useStyle(p);var m=this._defaultStyle,h=!1,g=0,_=!1,v=ou(`fill`in s?s.fill:`fill`in t?t.fill:(h=!0,m.fill)),y=au(`stroke`in s?s.stroke:`stroke`in t?t.stroke:!u&&!o&&(!m.autoStroke||h)?(g=ql,_=!0,m.stroke):null),b=s.textShadowBlur>0||t.textShadowBlur>0;p.text=e.text,p.x=i,p.y=l,b&&(p.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,p.shadowColor=s.textShadowColor||t.textShadowColor||`transparent`,p.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,p.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),p.textAlign=a,p.textBaseline=`middle`,p.font=e.font||`12px sans-serif`,p.opacity=xe(s.opacity,t.opacity,1),tu(p,s),y&&(p.lineWidth=xe(s.lineWidth,t.lineWidth,g),p.lineDash=G(s.lineDash,t.lineDash),p.lineDashOffset=t.lineDashOffset||0,p.stroke=y),v&&(p.fill=v),f.setBoundingRect(_c(p,e.contentWidth,e.contentHeight,_?0:null))},t.prototype._renderBackground=function(e,t,n,r,i,a){var o=e.backgroundColor,s=e.borderWidth,c=e.borderColor,l=o&&o.image,u=o&&!l,d=e.borderRadius,f=this,p,m;if(u||e.lineHeight||s&&c){p=this._getOrCreateChild(Gl),p.useStyle(p.createStyle()),p.style.fill=null;var h=p.shape;h.x=n,h.y=r,h.width=i,h.height=a,h.r=d,p.dirtyShape()}if(u){var g=p.style;g.fill=o||null,g.fillOpacity=G(e.fillOpacity,1)}else if(l){m=this._getOrCreateChild(Ll),m.onload=function(){f.dirtyStyle()};var _=m.style;_.image=o.image,_.x=n,_.y=r,_.width=i,_.height=a}if(s&&c){var g=p.style;g.lineWidth=s,g.stroke=c,g.strokeOpacity=G(e.strokeOpacity,1),g.lineDash=e.borderDash,g.lineDashOffset=e.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(g.strokeFirst=!0,g.lineWidth*=2)}var v=(p||m).style;v.shadowBlur=e.shadowBlur||0,v.shadowColor=e.shadowColor||`transparent`,v.shadowOffsetX=e.shadowOffsetX||0,v.shadowOffsetY=e.shadowOffsetY||0,v.opacity=xe(e.opacity,t.opacity,1)},t.makeFont=function(e){var t=``;return nu(e)&&(t=[e.fontStyle,e.fontWeight,eu(e.fontSize),e.fontFamily||`sans-serif`].join(` `)),t&&Te(t)||e.textFont||e.font},t}(wc),Zl={left:!0,right:1,center:1},Ql={top:1,bottom:1,middle:1},$l=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`];function eu(e){return typeof e==`string`&&(e.indexOf(`px`)!==-1||e.indexOf(`rem`)!==-1||e.indexOf(`em`)!==-1)?e:isNaN(+e)?`12px`:e+`px`}function tu(e,t){for(var n=0;n<$l.length;n++){var r=$l[n],i=t[r];i!=null&&(e[r]=i)}}function nu(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function ru(e){return iu(e),V(e.rich,iu),e}function iu(e){if(e){e.font=Xl.makeFont(e);var t=e.align;t===`middle`&&(t=`center`),e.align=t==null||Zl[t]?t:`left`;var n=e.verticalAlign;n===`center`&&(n=`middle`),e.verticalAlign=n==null||Ql[n]?n:`top`,e.padding&&=Ce(e.padding)}}function au(e,t){return e==null||t<=0||e===`transparent`||e===`none`?null:e.image||e.colorStops?`#000`:e}function ou(e){return e==null||e===`none`?null:e.image||e.colorStops?`#000`:e}function su(e,t,n){return t===`right`?e-n[1]:t===`center`?e+n[3]/2-n[1]/2:e+n[3]}function cu(e){var t=e.text;return t!=null&&(t+=``),t}function lu(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var uu=es(),du=function(e,t,n,r){if(r){var i=uu(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,i.ssrType=`chart`,r.type===`group`&&r.traverse(function(r){var i=uu(r);i.seriesIndex=e,i.dataIndex=n,i.dataType=t,i.ssrType=`chart`})}},fu=Ne([`tooltip`,`label`,`itemName`,`itemId`,`itemGroupId`,`itemChildGroupId`,`seriesName`]),pu=`original`,mu=`arrayRows`,hu=`objectRows`,gu=`keyedColumns`,_u=`typedArray`,vu=`unknown`,yu=`column`,bu=[`getDom`,`getZr`,`getWidth`,`getHeight`,`getDevicePixelRatio`,`dispatchAction`,`isSSR`,`isDisposed`,`on`,`off`,`getDataURL`,`getConnectedDataURL`,`getOption`,`getId`,`updateLabelLayout`],xu=function(){function e(e){V(bu,function(t){this[t]=ce(e[t],e)},this)}return e}();function Su(e,t){return t.mainType===`series`?e.getViewOfSeriesModel(t):e.getViewOfComponentModel(t)}var Cu=1,wu={},Tu=es(),Eu=es(),Du=[`emphasis`,`blur`,`select`],Ou=[`normal`,`emphasis`,`blur`,`select`],ku=`highlight`,Au=`downplay`,ju=`select`,Mu=`unselect`,Nu=`toggleSelect`,Pu=`selectchanged`;function Fu(e){return e!=null&&e!==`none`}function Iu(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function Lu(e){Iu(e,`emphasis`,2)}function Ru(e){e.hoverState===2&&Iu(e,`normal`,0)}function zu(e){Iu(e,`blur`,1)}function Bu(e){e.hoverState===1&&Iu(e,`normal`,0)}function Vu(e){e.selected=!0}function Hu(e){e.selected=!1}function Uu(e,t,n){t(e,n)}function Wu(e,t,n){Uu(e,t,n),e.isGroup&&e.traverse(function(e){Uu(e,t,n)})}function Gu(e,t){switch(t){case`emphasis`:e.hoverState=2;break;case`normal`:e.hoverState=0;break;case`blur`:e.hoverState=1;break;case`select`:e.selected=!0}}function Ku(e,t,n,r){for(var i=e.style,a={},o=0;o<t.length;o++){var s=t[o];a[s]=i[s]??(r&&r[s])}for(var o=0;o<e.animators.length;o++){var c=e.animators[o];c.__fromStateTransition&&c.__fromStateTransition.indexOf(n)<0&&c.targetName===`style`&&c.saveTo(a,t)}return a}function qu(e,t,n,r){var i=n&&B(n,`select`)>=0,a=!1;if(e instanceof jl){var o=Tu(e),s=i&&o.selectFill||o.normalFill,c=i&&o.selectStroke||o.normalStroke;if(Fu(s)||Fu(c)){r||={};var l=r.style||{};l.fill===`inherit`?(a=!0,r=L({},r),l=L({},l),l.fill=s):!Fu(l.fill)&&Fu(s)?(a=!0,r=L({},r),l=L({},l),l.fill=Hr(s)):!Fu(l.stroke)&&Fu(c)&&(a||(r=L({},r),l=L({},l)),l.stroke=Hr(c)),r.style=l}}if(r&&r.z2==null){a||(r=L({},r));var u=e.z2EmphasisLift;r.z2=e.z2+(u??10)}return r}function Ju(e,t,n){if(n&&n.z2==null){n=L({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??9)}return n}function Yu(e,t,n){var r=B(e.currentStates,t)>=0,i=e.style.opacity,a=r?null:Ku(e,[`opacity`],t,{opacity:1});n||={};var o=n.style||{};return o.opacity??(n=L({},n),o=L({opacity:r?i:a.opacity*.1},o),n.style=o),n}function Xu(e,t){var n=this.states[e];if(this.style){if(e===`emphasis`)return qu(this,e,t,n);if(e===`blur`)return Yu(this,e,n);if(e===`select`)return Ju(this,e,n)}return n}function Zu(e){e.stateProxy=Xu;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=Xu),n&&(n.stateProxy=Xu)}function Qu(e,t){!od(e,t)&&!e.__highByOuter&&Wu(e,Lu)}function $u(e,t){!od(e,t)&&!e.__highByOuter&&Wu(e,Ru)}function ed(e,t){e.__highByOuter|=1<<(t||0),Wu(e,Lu)}function td(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Wu(e,Ru)}function nd(e){Wu(e,zu)}function rd(e){Wu(e,Bu)}function id(e){Wu(e,Vu)}function ad(e){Wu(e,Hu)}function od(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function sd(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(t,i){var a=Eu(i),o=Su(e,i),s=t===`series`;!s&&r.push(o),a.isBlured&&(o.group.traverse(function(e){Bu(e)}),s&&n.push(i)),a.isBlured=!1}),V(r,function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)})}function cd(e,t,n,r){var i=r.getModel();n||=`coordinateSystem`;function a(e,t){for(var n=0;n<t.length;n++){var r=e.getItemGraphicEl(t[n]);r&&rd(r)}}if(e!=null&&!(!t||t===`none`)){var o=i.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var c=[];i.eachSeries(function(e){var i=o===e,l=e.coordinateSystem;if(l&&l.master&&(l=l.master),!(n===`series`&&!i||n===`coordinateSystem`&&!(l&&s?l===s:i)||t===`series`&&i)){if(r.getViewOfSeriesModel(e).group.traverse(function(e){e.__highByOuter&&i&&t===`self`||zu(e)}),ne(t))a(e.getData(),t);else if(pe(t))for(var u=oe(t),d=0;d<u.length;d++)a(e.getData(u[d]),t[u[d]]);c.push(e),Eu(e).isBlured=!0}}),i.eachComponent(function(e,t){if(e!==`series`){var n=r.getViewOfComponentModel(t);n&&n.toggleBlurSeries&&n.toggleBlurSeries(c,!0,i)}})}}function ld(e,t,n){if(e!=null&&t!=null){var r=n.getModel().getComponent(e,t);if(r){Eu(r).isBlured=!0;var i=n.getViewOfComponentModel(r);!i||!i.focusBlurEnabled||i.group.traverse(function(e){zu(e)})}}}function ud(e,t,n){var r=e.seriesIndex,i=e.getData(t.dataType);if(i){var a=$o(i,t);a=(U(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),c=0;!o&&c<s;)o=i.getItemGraphicEl(c++);if(o){var l=uu(o);cd(r,l.focus,l.blurScope,n)}else{var u=e.get([`emphasis`,`focus`]),d=e.get([`emphasis`,`blurScope`]);u!=null&&cd(r,u,d,n)}}}function dd(e,t,n,r){var i={focusSelf:!1,dispatchers:null};if(e==null||e===`series`||t==null||n==null)return i;var a=r.getModel().getComponent(e,t);if(!a)return i;var o=r.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(n),c,l=0;l<s.length;l++)if(uu(s[l]).focus===`self`){c=!0;break}return{focusSelf:c,dispatchers:s}}function fd(e,t,n){var r=uu(e),i=dd(r.componentMainType,r.componentIndex,r.componentHighDownName,n),a=i.dispatchers,o=i.focusSelf;a?(o&&ld(r.componentMainType,r.componentIndex,n),V(a,function(e){return Qu(e,t)})):(cd(r.seriesIndex,r.focus,r.blurScope,n),r.focus===`self`&&ld(r.componentMainType,r.componentIndex,n),Qu(e,t))}function pd(e,t,n){sd(n);var r=uu(e),i=dd(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?V(i,function(e){return $u(e,t)}):$u(e,t)}function md(e,t,n){if(Dd(t)){var r=t.dataType,i=$o(e.getData(r),t);U(i)||(i=[i]),e[t.type===`toggleSelect`?`toggleSelect`:t.type===`select`?`select`:`unselect`](i,r)}}function hd(e){V(e.getAllData(),function(t){var n=t.data,r=t.type;n.eachItemGraphicEl(function(t,n){e.isSelected(n,r)?id(t):ad(t)})})}function gd(e){var t=[];return e.eachSeries(function(e){V(e.getAllData(),function(n){n.data;var r=n.type,i=e.getSelectedDataIndices();if(i.length>0){var a={dataIndex:i,seriesIndex:e.seriesIndex};r!=null&&(a.dataType=r),t.push(a)}})}),t}function _d(e,t,n){wd(e,!0),Wu(e,Zu),bd(e,t,n)}function vd(e){wd(e,!1)}function yd(e,t,n,r){r?vd(e):_d(e,t,n)}function bd(e,t,n){var r=uu(e);t==null?r.focus&&=null:(r.focus=t,r.blurScope=n)}var xd=[`emphasis`,`blur`,`select`],Sd={itemStyle:`getItemStyle`,lineStyle:`getLineStyle`,areaStyle:`getAreaStyle`};function Cd(e,t,n,r){n||=`itemStyle`;for(var i=0;i<xd.length;i++){var a=xd[i],o=t.getModel([a,n]),s=e.ensureState(a);s.style=r?r(o):o[Sd[n]]()}}function wd(e,t){var n=t===!1,r=e;e.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!n||r.__highDownDispatcher)&&(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function Td(e){return!!(e&&e.__highDownDispatcher)}function Ed(e){var t=wu[e];return t==null&&Cu<=32&&(t=wu[e]=Cu++),t}function Dd(e){var t=e.type;return t===`select`||t===`unselect`||t===`toggleSelect`}function Od(e){var t=e.type;return t===`highlight`||t===`downplay`}function kd(e){var t=Tu(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null}var Ad=ol.CMD,jd=[[],[],[]],Md=Math.sqrt,Nd=Math.atan2;function Pd(e,t){if(t){var n=e.data,r=e.len(),i,a,o,s,c,l,u=Ad.M,d=Ad.C,f=Ad.L,p=Ad.R,m=Ad.A,h=Ad.Q;for(o=0,s=0;o<r;){switch(i=n[o++],s=o,a=0,i){case u:a=1;break;case f:a=1;break;case d:a=3;break;case h:a=2;break;case m:var g=t[4],_=t[5],v=Md(t[0]*t[0]+t[1]*t[1]),y=Md(t[2]*t[2]+t[3]*t[3]),b=Nd(-t[1]/y,t[0]/v);n[o]*=v,n[o++]+=g,n[o]*=y,n[o++]+=_,n[o++]*=v,n[o++]*=y,n[o++]+=b,n[o++]+=b,o+=2,s=o;break;case p:l[0]=n[o++],l[1]=n[o++],et(l,l,t),n[s++]=l[0],n[s++]=l[1],l[0]+=n[o++],l[1]+=n[o++],et(l,l,t),n[s++]=l[0],n[s++]=l[1]}for(c=0;c<a;c++){var x=jd[c];x[0]=n[o++],x[1]=n[o++],et(x,x,t),n[s++]=x[0],n[s++]=x[1]}}e.increaseVersion()}}var Fd=Math.sqrt,Id=Math.sin,Ld=Math.cos,Rd=Math.PI;function zd(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Bd(e,t){return(e[0]*t[0]+e[1]*t[1])/(zd(e)*zd(t))}function Vd(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(Bd(e,t))}function Hd(e,t,n,r,i,a,o,s,c,l,u){var d=Rd/180*c,f=Ld(d)*(e-n)/2+Id(d)*(t-r)/2,p=-1*Id(d)*(e-n)/2+Ld(d)*(t-r)/2,m=f*f/(o*o)+p*p/(s*s);m>1&&(o*=Fd(m),s*=Fd(m));var h=(i===a?-1:1)*Fd((o*o*(s*s)-o*o*(p*p)-s*s*(f*f))/(o*o*(p*p)+s*s*(f*f)))||0,g=h*o*p/s,_=h*-s*f/o,v=(e+n)/2+Ld(d)*g-Id(d)*_,y=(t+r)/2+Id(d)*g+Ld(d)*_,b=Vd([1,0],[(f-g)/o,(p-_)/s]),x=[(f-g)/o,(p-_)/s],S=[(-1*f-g)/o,(-1*p-_)/s],C=Vd(x,S);if(Bd(x,S)<=-1&&(C=Rd),Bd(x,S)>=1&&(C=0),C<0){var w=Math.round(C/Rd*1e6)/1e6;C=Rd*2+w%2*Rd}u.addData(l,v,y,o,s,b,C,d,a)}var Ud=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Wd=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Gd(e){var t=new ol;if(!e)return t;var n=0,r=0,i=n,a=r,o,s=ol.CMD,c=e.match(Ud);if(!c)return t;for(var l=0;l<c.length;l++){for(var u=c[l],d=u.charAt(0),f=void 0,p=u.match(Wd)||[],m=p.length,h=0;h<m;h++)p[h]=parseFloat(p[h]);for(var g=0;g<m;){var _=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=n,T=r,E=void 0,D=void 0;switch(d){case`l`:n+=p[g++],r+=p[g++],f=s.L,t.addData(f,n,r);break;case`L`:n=p[g++],r=p[g++],f=s.L,t.addData(f,n,r);break;case`m`:n+=p[g++],r+=p[g++],f=s.M,t.addData(f,n,r),i=n,a=r,d=`l`;break;case`M`:n=p[g++],r=p[g++],f=s.M,t.addData(f,n,r),i=n,a=r,d=`L`;break;case`h`:n+=p[g++],f=s.L,t.addData(f,n,r);break;case`H`:n=p[g++],f=s.L,t.addData(f,n,r);break;case`v`:r+=p[g++],f=s.L,t.addData(f,n,r);break;case`V`:r=p[g++],f=s.L,t.addData(f,n,r);break;case`C`:f=s.C,t.addData(f,p[g++],p[g++],p[g++],p[g++],p[g++],p[g++]),n=p[g-2],r=p[g-1];break;case`c`:f=s.C,t.addData(f,p[g++]+n,p[g++]+r,p[g++]+n,p[g++]+r,p[g++]+n,p[g++]+r),n+=p[g-2],r+=p[g-1];break;case`S`:_=n,v=r,E=t.len(),D=t.data,o===s.C&&(_+=n-D[E-4],v+=r-D[E-3]),f=s.C,w=p[g++],T=p[g++],n=p[g++],r=p[g++],t.addData(f,_,v,w,T,n,r);break;case`s`:_=n,v=r,E=t.len(),D=t.data,o===s.C&&(_+=n-D[E-4],v+=r-D[E-3]),f=s.C,w=n+p[g++],T=r+p[g++],n+=p[g++],r+=p[g++],t.addData(f,_,v,w,T,n,r);break;case`Q`:w=p[g++],T=p[g++],n=p[g++],r=p[g++],f=s.Q,t.addData(f,w,T,n,r);break;case`q`:w=p[g++]+n,T=p[g++]+r,n+=p[g++],r+=p[g++],f=s.Q,t.addData(f,w,T,n,r);break;case`T`:_=n,v=r,E=t.len(),D=t.data,o===s.Q&&(_+=n-D[E-4],v+=r-D[E-3]),n=p[g++],r=p[g++],f=s.Q,t.addData(f,_,v,n,r);break;case`t`:_=n,v=r,E=t.len(),D=t.data,o===s.Q&&(_+=n-D[E-4],v+=r-D[E-3]),n+=p[g++],r+=p[g++],f=s.Q,t.addData(f,_,v,n,r);break;case`A`:y=p[g++],b=p[g++],x=p[g++],S=p[g++],C=p[g++],w=n,T=r,n=p[g++],r=p[g++],f=s.A,Hd(w,T,n,r,S,C,y,b,x,f,t);break;case`a`:y=p[g++],b=p[g++],x=p[g++],S=p[g++],C=p[g++],w=n,T=r,n+=p[g++],r+=p[g++],f=s.A,Hd(w,T,n,r,S,C,y,b,x,f,t)}}(d===`z`||d===`Z`)&&(f=s.Z,t.addData(f),n=i,r=a),o=f}return t.toStatic(),t}var Kd=function(e){l(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t}(jl);function qd(e){return e.setData!=null}function Jd(e,t){var n=Gd(e),r=L({},t);return r.buildPath=function(e){var t=qd(e);if(t&&e.canSave()){e.appendPath(n);var r=e.getContext();r&&e.rebuildPath(r,1)}else{var r=t?e.getContext():e;r&&n.rebuildPath(r,1)}},r.applyTransform=function(e){Pd(n,e),this.dirtyShape()},r}function Yd(e,t){return new Kd(Jd(e,t))}function Xd(e,t){var n=Jd(e,t);return function(e){l(t,e);function t(t){var r=e.call(this,t)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return t}(Kd)}function Zd(e,t){for(var n=[],r=e.length,i=0;i<r;i++){var a=e[i];n.push(a.getUpdatedPathProxy(!0))}var o=new jl(t);return o.createPathProxy(),o.buildPath=function(e){if(qd(e)){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t,1)}},o}var Qd=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),$d=function(e){l(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Qd},t.prototype.buildPath=function(e,t){e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,Math.PI*2)},t}(jl);$d.prototype.type=`circle`;var ef=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),tf=function(e){l(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new ef},t.prototype.buildPath=function(e,t){var n=.5522848,r=t.cx,i=t.cy,a=t.rx,o=t.ry,s=a*n,c=o*n;e.moveTo(r-a,i),e.bezierCurveTo(r-a,i-c,r-s,i-o,r,i-o),e.bezierCurveTo(r+s,i-o,r+a,i-c,r+a,i),e.bezierCurveTo(r+a,i+c,r+s,i+o,r,i+o),e.bezierCurveTo(r-s,i+o,r-a,i+c,r-a,i),e.closePath()},t}(jl);tf.prototype.type=`ellipse`;var nf=Math.PI,rf=nf*2,af=Math.sin,of=Math.cos,sf=Math.acos,cf=Math.atan2,lf=Math.abs,uf=Math.sqrt,df=Math.max,ff=Math.min,pf=1e-4;function mf(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=d*c-u*l;if(!(f*f<pf))return f=(u*(t-a)-d*(e-i))/f,[e+f*c,t+f*l]}function hf(e,t,n,r,i,a,o){var s=e-n,c=t-r,l=(o?a:-a)/uf(s*s+c*c),u=l*c,d=-l*s,f=e+u,p=t+d,m=n+u,h=r+d,g=(f+m)/2,_=(p+h)/2,v=m-f,y=h-p,b=v*v+y*y,x=i-a,S=f*h-m*p,C=(y<0?-1:1)*uf(df(0,x*x*b-S*S)),w=(S*y-v*C)/b,T=(-S*v-y*C)/b,E=(S*y+v*C)/b,D=(-S*v+y*C)/b,O=w-g,k=T-_,A=E-g,j=D-_;return O*O+k*k>A*A+j*j&&(w=E,T=D),{cx:w,cy:T,x0:-u,y0:-d,x1:w*(i/x-1),y1:T*(i/x-1)}}function gf(e){var t;if(U(e)){var n=e.length;if(!n)return e;t=n===1?[e[0],e[0],0,0]:n===2?[e[0],e[0],e[1],e[1]]:n===3?e.concat(e[2]):e}else t=[e,e,e,e];return t}function _f(e,t){var n,r=df(t.r,0),i=df(t.r0||0,0),a=r>0;if(!(!a&&!(i>0))){if(a||(r=i,i=0),i>r){var o=r;r=i,i=o}var s=t.startAngle,c=t.endAngle;if(!(isNaN(s)||isNaN(c))){var l=t.cx,u=t.cy,d=!!t.clockwise,f=lf(c-s),p=f>rf&&f%rf;if(p>pf&&(f=p),!(r>pf))e.moveTo(l,u);else if(f>rf-pf)e.moveTo(l+r*of(s),u+r*af(s)),e.arc(l,u,r,s,c,!d),i>pf&&(e.moveTo(l+i*of(c),u+i*af(c)),e.arc(l,u,i,c,s,d));else{var m=void 0,h=void 0,g=void 0,_=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=void 0,T=void 0,E=void 0,D=void 0,O=void 0,k=void 0,A=r*of(s),j=r*af(s),M=i*of(c),N=i*af(c),P=f>pf;if(P){var F=t.cornerRadius;F&&(n=gf(F),m=n[0],h=n[1],g=n[2],_=n[3]);var I=lf(r-i)/2;if(v=ff(I,g),y=ff(I,_),b=ff(I,m),x=ff(I,h),w=S=df(v,y),T=C=df(b,x),(S>pf||C>pf)&&(E=r*of(c),D=r*af(c),O=i*of(s),k=i*af(s),f<nf)){var L=mf(A,j,O,k,E,D,M,N);if(L){var R=A-L[0],z=j-L[1],B=E-L[0],ee=D-L[1],te=1/af(sf((R*B+z*ee)/(uf(R*R+z*z)*uf(B*B+ee*ee)))/2),ne=uf(L[0]*L[0]+L[1]*L[1]);w=ff(S,(r-ne)/(te+1)),T=ff(C,(i-ne)/(te-1))}}}if(!P)e.moveTo(l+A,u+j);else if(w>pf){var V=ff(g,w),H=ff(_,w),re=hf(O,k,A,j,r,V,d),ie=hf(E,D,M,N,r,H,d);e.moveTo(l+re.cx+re.x0,u+re.cy+re.y0),w<S&&V===H?e.arc(l+re.cx,u+re.cy,w,cf(re.y0,re.x0),cf(ie.y0,ie.x0),!d):(V>0&&e.arc(l+re.cx,u+re.cy,V,cf(re.y0,re.x0),cf(re.y1,re.x1),!d),e.arc(l,u,r,cf(re.cy+re.y1,re.cx+re.x1),cf(ie.cy+ie.y1,ie.cx+ie.x1),!d),H>0&&e.arc(l+ie.cx,u+ie.cy,H,cf(ie.y1,ie.x1),cf(ie.y0,ie.x0),!d))}else e.moveTo(l+A,u+j),e.arc(l,u,r,s,c,!d);if(!(i>pf)||!P)e.lineTo(l+M,u+N);else if(T>pf){var V=ff(m,T),H=ff(h,T),re=hf(M,N,E,D,i,-H,d),ie=hf(A,j,O,k,i,-V,d);e.lineTo(l+re.cx+re.x0,u+re.cy+re.y0),T<C&&V===H?e.arc(l+re.cx,u+re.cy,T,cf(re.y0,re.x0),cf(ie.y0,ie.x0),!d):(H>0&&e.arc(l+re.cx,u+re.cy,H,cf(re.y0,re.x0),cf(re.y1,re.x1),!d),e.arc(l,u,i,cf(re.cy+re.y1,re.cx+re.x1),cf(ie.cy+ie.y1,ie.cx+ie.x1),d),V>0&&e.arc(l+ie.cx,u+ie.cy,V,cf(ie.y1,ie.x1),cf(ie.y0,ie.x0),!d))}else e.lineTo(l+M,u+N),e.arc(l,u,i,c,s,d)}e.closePath()}}}var vf=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e}(),yf=function(e){l(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new vf},t.prototype.buildPath=function(e,t){_f(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(jl);yf.prototype.type=`sector`;var bf=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),xf=function(e){l(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new bf},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.PI*2;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,i,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,i,!0)},t}(jl);xf.prototype.type=`ring`;function Sf(e,t,n,r){var i=[],a=[],o=[],s=[],c,l,u,d;if(r){u=[1/0,1/0],d=[-1/0,-1/0];for(var f=0,p=e.length;f<p;f++)tt(u,u,e[f]),nt(d,d,e[f]);tt(u,u,r[0]),nt(d,d,r[1])}for(var f=0,p=e.length;f<p;f++){var m=e[f];if(n)c=e[f?f-1:p-1],l=e[(f+1)%p];else if(f===0||f===p-1){i.push(Ve(e[f]));continue}else c=e[f-1],l=e[f+1];We(a,l,c),qe(a,a,t);var h=Ye(m,c),g=Ye(m,l),_=h+g;_!==0&&(h/=_,g/=_),qe(o,a,-h),qe(s,a,g);var v=Ue([],m,o),y=Ue([],m,s);r&&(nt(v,v,u),tt(v,v,d),nt(y,y,u),tt(y,y,d)),i.push(v),i.push(y)}return n&&i.push(i.shift()),i}function Cf(e,t,n){var r=t.smooth,i=t.points;if(i&&i.length>=2){if(r){var a=Sf(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(n?o:o-1);s++){var c=a[s*2],l=a[s*2+1],u=i[(s+1)%o];e.bezierCurveTo(c[0],c[1],l[0],l[1],u[0],u[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,d=i.length;s<d;s++)e.lineTo(i[s][0],i[s][1])}n&&e.closePath()}}var wf=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),Tf=function(e){l(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new wf},t.prototype.buildPath=function(e,t){Cf(e,t,!0)},t}(jl);Tf.prototype.type=`polygon`;var Ef=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),Df=function(e){l(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new Ef},t.prototype.buildPath=function(e,t){Cf(e,t,!1)},t}(jl);Df.prototype.type=`polyline`;var Of={},kf=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),Af=function(e){l(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new kf},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=Bl(Of,t,this.style);n=o.x1,r=o.y1,i=o.x2,a=o.y2}else n=t.x1,r=t.y1,i=t.x2,a=t.y2;var s=t.percent;s!==0&&(e.moveTo(n,r),s<1&&(i=n*(1-s)+i*s,a=r*(1-s)+a*s),e.lineTo(i,a))},t.prototype.pointAt=function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]},t}(jl);Af.prototype.type=`line`;var jf=[],Mf=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e}();function Nf(e,t,n){var r=e.cpx2,i=e.cpy2;return r!=null||i!=null?[(n?tr:er)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?tr:er)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?cr:sr)(e.x1,e.cpx1,e.x2,t),(n?cr:sr)(e.y1,e.cpy1,e.y2,t)]}var Pf=function(e){l(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new Mf},t.prototype.buildPath=function(e,t){var n=t.x1,r=t.y1,i=t.x2,a=t.y2,o=t.cpx1,s=t.cpy1,c=t.cpx2,l=t.cpy2,u=t.percent;u!==0&&(e.moveTo(n,r),c==null||l==null?(u<1&&(dr(n,o,i,u,jf),o=jf[1],i=jf[2],dr(r,s,a,u,jf),s=jf[1],a=jf[2]),e.quadraticCurveTo(o,s,i,a)):(u<1&&(ir(n,o,c,i,u,jf),o=jf[1],c=jf[2],i=jf[3],ir(r,s,l,a,u,jf),s=jf[1],l=jf[2],a=jf[3]),e.bezierCurveTo(o,s,c,l,i,a)))},t.prototype.pointAt=function(e){return Nf(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t=Nf(this.shape,e,!0);return Je(t,t)},t}(jl);Pf.prototype.type=`bezier-curve`;var Ff=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),If=function(e){l(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new Ff},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r,0),a=t.startAngle,o=t.endAngle,s=t.clockwise,c=Math.cos(a),l=Math.sin(a);e.moveTo(c*i+n,l*i+r),e.arc(n,r,i,a,o,!s)},t}(jl);If.prototype.type=`arc`;var Lf=function(e){l(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`compound`,t}return t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,t=this.shapeChanged(),n=0;n<e.length;n++)t||=e[n].shapeChanged();t&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(t[0],t[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,t){for(var n=t.paths||[],r=0;r<n.length;r++)n[r].buildPath(e,n[r].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),jl.prototype.getBoundingRect.call(this)},t}(jl),Rf=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}(),zf=function(e){l(t,e);function t(t,n,r,i,a,o){var s=e.call(this,a)||this;return s.x=t??0,s.y=n??0,s.x2=r??1,s.y2=i??0,s.type=`linear`,s.global=o||!1,s}return t}(Rf),Bf=function(e){l(t,e);function t(t,n,r,i,a){var o=e.call(this,i)||this;return o.x=t??.5,o.y=n??.5,o.r=r??.5,o.type=`radial`,o.global=a||!1,o}return t}(Rf),Vf=Math.min,Hf=Math.max,Uf=Math.abs,Wf=[0,0],Gf=[0,0],Kf=hn(),qf=Kf.minTv,Jf=Kf.maxTv,Yf=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Ut;for(var n=0;n<2;n++)this._axes[n]=new Ut;e&&this.fromBoundingRect(e,t)}return e.prototype.fromBoundingRect=function(e,t){var n=this._corners,r=this._axes,i=e.x,a=e.y,o=i+e.width,s=a+e.height;if(n[0].set(i,a),n[1].set(o,a),n[2].set(o,s),n[3].set(i,s),t)for(var c=0;c<4;c++)n[c].transform(t);Ut.sub(r[0],n[1],n[0]),Ut.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(var c=0;c<2;c++)this._origin[c]=r[c].dot(n[0])},e.prototype.intersect=function(e,t,n){var r=!0,i=!t;return t&&Ut.set(t,0,0),Kf.reset(n,!i),!this._intersectCheckOneSide(this,e,i,1)&&(r=!1,i)||!this._intersectCheckOneSide(e,this,i,-1)&&(r=!1,i)||!i&&!Kf.negativeSize&&Ut.copy(t,r?Kf.useDir?Kf.dirMinTv:qf:Jf),r},e.prototype._intersectCheckOneSide=function(e,t,n,r){for(var i=!0,a=0;a<2;a++){var o=e._axes[a];if(e._getProjMinMaxOnAxis(a,e._corners,Wf),e._getProjMinMaxOnAxis(a,t._corners,Gf),Kf.negativeSize||Wf[1]<Gf[0]||Wf[0]>Gf[1]){if(i=!1,Kf.negativeSize||n)return i;var s=Uf(Gf[0]-Wf[1]),c=Uf(Wf[0]-Gf[1]);Vf(s,c)>Jf.len()&&(s<c?Ut.scale(Jf,o,-s*r):Ut.scale(Jf,o,c*r))}else if(!n){var s=Uf(Gf[0]-Wf[1]),c=Uf(Wf[0]-Gf[1]);(Kf.useDir||Vf(s,c)<qf.len())&&((s<c||!Kf.bidirectional)&&(Ut.scale(qf,o,s*r),Kf.useDir&&Kf.calcDirMTV()),(s>=c||!Kf.bidirectional)&&(Ut.scale(qf,o,-c*r),Kf.useDir&&Kf.calcDirMTV()))}}return i},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var r=this._axes[e],i=this._origin,a=t[0].dot(r)+i[e],o=a,s=a,c=1;c<t.length;c++){var l=t[c].dot(r)+i[e];o=Vf(l,o),s=Hf(l,s)}n[0]=o+Kf.touchThreshold,n[1]=s-Kf.touchThreshold,Kf.negativeSize=n[1]<n[0]},e}(),Xf=[],Zf=function(e){l(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.notClear=!0,t.incremental=1,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.useStyle=function(){this.style={}},t.prototype._useHoverStyle=function(){this.__hoverStyle=null},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,t){t||=!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],t)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var t=this._cursor;t<this._displayables.length;t++)e&&e(this._displayables[t]);for(var t=0;t<this._temporaryDisplayables.length;t++)e&&e(this._temporaryDisplayables[t])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var t=this._displayables[e];t.parent=this,t.update(),t.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var t=this._temporaryDisplayables[e];t.parent=this,t.update(),t.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new rn(1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var n=this._displayables[t],r=n.getBoundingRect().clone();n.needLocalTransform()&&r.applyTransform(n.getLocalTransform(Xf)),e.union(r)}this._rect=e}return this._rect},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t);if(this.getBoundingRect().contain(n[0],n[1])){for(var r=0;r<this._displayables.length;r++)if(this._displayables[r].contain(e,t))return!0}return!1},t}(wc),Qf=es();function $f(e,t,n,r,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),c=e===`update`;if(s){var l=void 0,u=void 0,d=void 0;return r?(l=G(r.duration,200),u=G(r.easing,`cubicOut`),d=0):(l=t.getShallow(c?`animationDurationUpdate`:`animationDuration`),u=t.getShallow(c?`animationEasingUpdate`:`animationEasing`),d=t.getShallow(c?`animationDelayUpdate`:`animationDelay`)),a&&(a.duration!=null&&(l=a.duration),a.easing!=null&&(u=a.easing),a.delay!=null&&(d=a.delay)),ue(d)&&(d=d(n,i)),ue(l)&&(l=l(n)),{duration:l||0,delay:d,easing:u}}return null}function ep(e,t,n,r,i,a,o){var s=!1,c;ue(i)?(o=a,a=i,i=null):pe(i)&&(a=i.cb,o=i.during,s=i.isFrom,c=i.removeOpt,i=i.dataIndex);var l=e===`leave`;l||t.stopAnimation(`leave`);var u=$f(e,r,i,l?c||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,i):null);if(u&&u.duration>0){var d=u.duration,f=u.delay,p=u.easing,m={duration:d,delay:f||0,easing:p,done:a,force:!!a||!!o,setToFinal:!l,scope:e,during:o};s?t.animateFrom(n,m):t.animateTo(n,m)}else t.stopAnimation(),!s&&t.attr(n),o&&o(1),a&&a()}function tp(e,t,n,r,i,a){ep(`update`,e,t,n,r,i,a)}function np(e,t,n,r,i,a){ep(`enter`,e,t,n,r,i,a)}function rp(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++)if(e.animators[t].scope===`leave`)return!0;return!1}function ip(e,t,n,r,i,a){rp(e)||ep(`leave`,e,t,n,r,i,a)}function ap(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),ip(e,{style:{opacity:0}},t,n,r)}function op(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(e){e.isGroup||ap(e,t,n,r)}):ap(e,t,n,r)}function sp(e){Qf(e).oldStyle=e.style}var cp=t({Arc:()=>If,BezierCurve:()=>Pf,BoundingRect:()=>rn,Circle:()=>$d,CompoundPath:()=>Lf,Ellipse:()=>tf,Group:()=>Aa,HOVER_LAYER_FOR_INCREMENTAL:()=>2,HOVER_LAYER_FROM_THRESHOLD:()=>1,HOVER_LAYER_NO:()=>0,Image:()=>Ll,IncrementalDisplayable:()=>Zf,Line:()=>Af,LinearGradient:()=>zf,OrientedBoundingRect:()=>Yf,Path:()=>jl,Point:()=>Ut,Polygon:()=>Tf,Polyline:()=>Df,RadialGradient:()=>Bf,Rect:()=>Gl,Ring:()=>xf,Sector:()=>yf,Text:()=>Xl,WH:()=>dp,XY:()=>up,applyTransform:()=>Ep,calcZ2Range:()=>Yp,clipPointsByRect:()=>jp,clipRectByRect:()=>Mp,createIcon:()=>Np,decomposeTransform:()=>$p,ensureCopyRect:()=>Kp,ensureCopyTransform:()=>qp,expandOrShrinkRect:()=>Rp,extendPath:()=>mp,extendShape:()=>fp,getCurrentCanvasPainter:()=>tm,getShapeClass:()=>gp,getTransform:()=>Tp,groupTransition:()=>Ap,initProps:()=>np,isBoundingRectAxisAligned:()=>Wp,isElementRemoved:()=>rp,lineLineIntersect:()=>Fp,linePolygonIntersect:()=>Pp,makeImage:()=>vp,makePath:()=>_p,mergePath:()=>bp,payloadDisableAnimation:()=>Qp,registerShape:()=>hp,removeElement:()=>ip,removeElementWithFadeOut:()=>op,resizePath:()=>xp,retrieveZInfo:()=>Jp,setTooltipConfig:()=>Vp,subPixelOptimize:()=>wp,subPixelOptimizeLine:()=>Sp,subPixelOptimizeRect:()=>Cp,transformDirection:()=>Dp,traverseElements:()=>Up,traverseUpdateZ:()=>Xp,updateProps:()=>tp}),lp={},up=[`x`,`y`],dp=[`width`,`height`];function fp(e){return jl.extend(e)}var pp=Xd;function mp(e,t){return pp(e,t)}function hp(e,t){lp[e]=t}function gp(e){if(lp.hasOwnProperty(e))return lp[e]}function _p(e,t,n,r){var i=Yd(e,t);return n&&(r===`center`&&(n=yp(n,i.getBoundingRect())),xp(i,n)),i}function vp(e,t,n){var r=new Ll({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if(n===`center`){var i={width:e.width,height:e.height};r.setStyle(yp(t,i))}}});return r}function yp(e,t){var n=t.width/t.height,r=e.height*n,i;r<=e.width?i=e.height:(r=e.width,i=r/n);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-r/2,y:o-i/2,width:r,height:i}}var bp=Zd;function xp(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}function Sp(e,t){return Bl(e,e,{lineWidth:t}),e}function Cp(e,t){return Vl(e,e,t),e}var wp=Hl;function Tp(e,t){for(var n=It([]);e&&e!==t;)Rt(n,e.getLocalTransform(),n),e=e.parent;return n}function Ep(e,t,n){return t&&!ne(t)&&(t=Ji.getLocalTransform(t)),n&&(t=Ht([],t)),et([],e,t)}function Dp(e,t,n){var r=t[4]===0||t[5]===0||t[0]===0?1:Ua(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:Ua(2*t[4]/t[2]),a=[e===`left`?-r:e===`right`?r:0,e===`top`?-i:e===`bottom`?i:0];return a=Ep(a,t,n),Ua(a[0])>Ua(a[1])?a[0]>0?`right`:`left`:a[1]>0?`bottom`:`top`}function Op(e){return!e.isGroup}function kp(e){return e.shape!=null}function Ap(e,t,n){if(!e||!t)return;function r(e){var t={};return e.traverse(function(e){Op(e)&&e.anid&&(t[e.anid]=e)}),t}function i(e){var t={x:e.x,y:e.y,rotation:e.rotation};return kp(e)&&(t.shape=F(e.shape)),t}var a=r(e);t.traverse(function(e){if(Op(e)&&e.anid){var t=a[e.anid];if(t){var r=i(e);e.attr(i(t)),tp(e,r,n,uu(e).dataIndex)}}})}function jp(e,t){return H(e,function(e){var n=e[0];n=Ha(n,t.x),n=Va(n,t.x+t.width);var r=e[1];return r=Ha(r,t.y),r=Va(r,t.y+t.height),[n,r]})}function Mp(e,t){var n=Ha(e.x,t.x),r=Va(e.x+e.width,t.x+t.width),i=Ha(e.y,t.y),a=Va(e.y+e.height,t.y+t.height);if(r>=n&&a>=i)return{x:n,y:i,width:r-n,height:a-i}}function Np(e,t,n){var r=L({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n||={x:-1,y:-1,width:2,height:2},e)return e.indexOf(`image://`)===0?(i.image=e.slice(8),z(i,n),new Ll(r)):_p(e.replace(`path://`,``),r,n,`center`)}function Pp(e,t,n,r,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(Fp(e,t,n,r,s[0],s[1],o[0],o[1]))return!0;o=s}}function Fp(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=Ip(u,d,c,l);if(Lp(f))return!1;var p=e-i,m=t-a,h=Ip(p,m,c,l)/f;if(h<0||h>1)return!1;var g=Ip(p,m,u,d)/f;return!(g<0||g>1)}function Ip(e,t,n,r){return e*r-n*t}function Lp(e){return e<=1e-6&&e>=-1e-6}function Rp(e,t,n,r,i){return t==null?e:(fe(t)?zp[0]=zp[1]=zp[2]=zp[3]=t:(zp[0]=t[0],zp[1]=t[1],zp[2]=t[2],zp[3]=t[3]),r&&(zp[0]=Ha(0,zp[0]),zp[1]=Ha(0,zp[1]),zp[2]=Ha(0,zp[2]),zp[3]=Ha(0,zp[3])),n&&(zp[0]=-zp[0],zp[1]=-zp[1],zp[2]=-zp[2],zp[3]=-zp[3]),Bp(e,zp,`x`,`width`,3,1,i&&i[0]||0),Bp(e,zp,`y`,`height`,0,2,i&&i[1]||0),e)}var zp=[0,0,0,0];function Bp(e,t,n,r,i,a,o){var s=t[a]+t[i],c=e[r];e[r]+=s,o=Ha(0,Va(o,c)),e[r]<o?(e[r]=o,e[n]+=t[i]>=0?-t[i]:t[a]>=0?c+t[a]:Ua(s)>1e-8?(c-o)*t[i]/s:0):e[n]-=t[i]}function Vp(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=W(t)?{formatter:t}:t,a=n.mainType,o=n.componentIndex,s={componentType:a,name:r,$vars:[`name`]};s[a+`Index`]=o;var c=e.formatterParamsExtra;c&&V(oe(c),function(e){K(s,e)||(s[e]=c[e],s.$vars.push(e))});var l=uu(e.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:r,option:z({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function Hp(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function Up(e,t){if(e){if(U(e))for(var n=0;n<e.length;n++)Hp(e[n],t);else Hp(e,t)}}function Wp(e){return!e||Ua(e[1])<Gp&&Ua(e[2])<Gp||Ua(e[0])<Gp&&Ua(e[3])<Gp}var Gp=1e-5;function Kp(e,t){return e?rn.copy(e,t):t.clone()}function qp(e,t){return t?Lt(e||Ft(),t):void 0}function Jp(e){return{z:e.get(`z`)||0,zlevel:e.get(`zlevel`)||0}}function Yp(e){var t=-1/0,n=1/0;Hp(e,function(e){r(e),r(e.getTextContent()),r(e.getTextGuideLine())});function r(e){if(!(!e||e.isGroup)){var t=e.currentStates;if(t.length)for(var n=0;n<t.length;n++)i(e.states[t[n]]);i(e)}}function i(e){if(e){var r=e.z2;r>t&&(t=r),r<n&&(n=r)}}return n>t&&(n=t=0),{min:n,max:t}}function Xp(e,t,n){Zp(e,t,n,-1/0)}function Zp(e,t,n,r){if(e.ignoreModelZ)return r;var i=e.getTextContent(),a=e.getTextGuideLine();if(e.isGroup)for(var o=e.childrenRef(),s=0;s<o.length;s++)r=Ha(Zp(o[s],t,n,r),r);else e.z=t,e.zlevel=n,r=Ha(e.z2||0,r);if(i&&(i.z=t,i.zlevel=n,isFinite(r)&&(i.z2=r+2)),a){var c=e.textGuideLineConfig;a.z=t,a.zlevel=n,isFinite(r)&&(a.z2=r+(c&&c.showAbove?1:-1))}return r}function Qp(e){return e.animation={duration:0},e}function $p(e,t){return t?Lt(em.transform,t):It(em.transform),em.decomposeTransform(),Qi(e,em),e}var em=new Ji;em.transform=Ft();function tm(e){var t=e.getZr().painter;return t.getType()===`canvas`?t:null}hp(`circle`,$d),hp(`ellipse`,tf),hp(`sector`,yf),hp(`ring`,xf),hp(`polygon`,Tf),hp(`polyline`,Df),hp(`rect`,Gl),hp(`line`,Af),hp(`bezierCurve`,Pf),hp(`arc`,If);var nm={};function rm(e,t){for(var n=0;n<Du.length;n++){var r=Du[n],i=t[r],a=e.ensureState(r);a.style=a.style||{},a.style.text=i}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function im(e,t,n){var r=e.labelFetcher,i=e.labelDataIndex,a=e.labelDimIndex,o=t.normal,s;r&&(s=r.getFormattedLabel(i,`normal`,null,a,o&&o.get(`formatter`),n==null?null:{interpolatedValue:n})),s??=ue(e.defaultText)?e.defaultText(i,e,n):e.defaultText;for(var c={normal:s},l=0;l<Du.length;l++){var u=Du[l],d=t[u];c[u]=G(r?r.getFormattedLabel(i,u,null,a,d&&d.get(`formatter`)):null,s)}return c}function am(e,t,n,r){n||=nm;for(var i=e instanceof Xl,a=!1,o=0;o<Ou.length;o++){var s=t[Ou[o]];if(s&&s.getShallow(`show`)){a=!0;break}}var c=i?e:e.getTextContent();if(a){i||(c||(c=new Xl,e.setTextContent(c)),e.stateProxy&&(c.stateProxy=e.stateProxy));var l=im(n,t),u=t.normal,d=!!u.getShallow(`show`),f=sm(u,r&&r.normal,n,!1,!i);f.text=l.normal,i||e.setTextConfig(cm(u,n,!1));for(var o=0;o<Du.length;o++){var p=Du[o],s=t[p];if(s){var m=c.ensureState(p),h=!!G(s.getShallow(`show`),d);if(h!==d&&(m.ignore=!h),m.style=sm(s,r&&r[p],n,!0,!i),m.style.text=l[p],!i){var g=e.ensureState(p);g.textConfig=cm(s,n,!0)}}}c.silent=!!u.getShallow(`silent`),c.style.x!=null&&(f.x=c.style.x),c.style.y!=null&&(f.y=c.style.y),c.ignore=!d,c.useStyle(f),c.dirty(),n.enableTextSetter&&(gm(c).setLabelText=function(e){var r=im(n,t,e);rm(c,r)})}else c&&(c.ignore=!0);e.dirty()}function om(e,t){t||=`label`;for(var n={normal:e.getModel(t)},r=0;r<Du.length;r++){var i=Du[r];n[i]=e.getModel([i,t])}return n}function sm(e,t,n,r,i){var a={};return lm(a,e,n,r,i),t&&L(a,t),a}function cm(e,t,n){t||={};var r={},i,a=e.getShallow(`rotate`),o=G(e.getShallow(`distance`),n?null:5),s=e.getShallow(`offset`);return i=e.getShallow(`position`)||(n?null:`inside`),i===`outside`&&(i=t.defaultOutsidePosition||`top`),i!=null&&(r.position=i),s!=null&&(r.offset=s),a!=null&&(a*=Math.PI/180,r.rotation=a),o!=null&&(r.distance=o),r.outsideFill=e.get(`color`)===`inherit`?t.inheritColor||null:`auto`,t.autoOverflowArea!=null&&(r.autoOverflowArea=t.autoOverflowArea),t.layoutRect!=null&&(r.layoutRect=t.layoutRect),r}function lm(e,t,n,r,i){n||=nm;var a=t.ecModel,o=a&&a.option.textStyle,s=um(t),c;if(s){c={};var l=`richInheritPlainLabel`,u=G(t.get(l),a?a.get(l):void 0);for(var d in s)if(s.hasOwnProperty(d)){var f=t.getModel([`rich`,d]);mm(c[d]={},f,o,t,u,n,r,i,!1,!0)}}c&&(e.rich=c);var p=t.get(`overflow`);p&&(e.overflow=p);var m=t.get(`lineOverflow`);m&&(e.lineOverflow=m);var h=e,g=t.get(`minMargin`);if(g!=null)g=fe(g)?g/2:0,h.margin=[g,g,g,g],h.__marginType=ym.minMargin;else{var _=t.get(`textMargin`);_!=null&&(h.margin=Ce(_),h.__marginType=ym.textMargin)}mm(e,t,o,null,null,n,r,i,!0,!1)}function um(e){for(var t;e&&e!==e.ecModel;){var n=(e.option||nm).rich;if(n){t||={};for(var r=oe(n),i=0;i<r.length;i++){var a=r[i];t[a]=1}}e=e.parentModel}return t}var dm=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`textShadowColor`,`textShadowBlur`,`textShadowOffsetX`,`textShadowOffsetY`],fm=[`align`,`lineHeight`,`width`,`height`,`tag`,`verticalAlign`,`ellipsis`],pm=[`padding`,`borderWidth`,`borderRadius`,`borderDashOffset`,`backgroundColor`,`borderColor`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`];function mm(e,t,n,r,i,a,o,s,c,l){n=!o&&n||nm;var u=a&&a.inheritColor,d=t.getShallow(`color`),f=t.getShallow(`textBorderColor`),p=G(t.getShallow(`opacity`),n.opacity);(d===`inherit`||d===`auto`)&&(d=u||null),(f===`inherit`||f===`auto`)&&(f=u||null),s||(d||=n.color,f||=n.textBorderColor),d!=null&&(e.fill=d),f!=null&&(e.stroke=f);var m=G(t.getShallow(`textBorderWidth`),n.textBorderWidth);m!=null&&(e.lineWidth=m);var h=G(t.getShallow(`textBorderType`),n.textBorderType);h!=null&&(e.lineDash=h);var g=G(t.getShallow(`textBorderDashOffset`),n.textBorderDashOffset);g!=null&&(e.lineDashOffset=g),!o&&p==null&&!l&&(p=a&&a.defaultOpacity),p!=null&&(e.opacity=p),!o&&!s&&e.fill==null&&a.inheritColor&&(e.fill=a.inheritColor);for(var _=0;_<dm.length;_++){var v=dm[_],y=i!==!1&&r?xe(t.getShallow(v),r.getShallow(v),n[v]):G(t.getShallow(v),n[v]);y!=null&&(e[v]=y)}for(var _=0;_<fm.length;_++){var v=fm[_],y=t.getShallow(v);y!=null&&(e[v]=y)}if(e.verticalAlign==null){var b=t.getShallow(`baseline`);b!=null&&(e.verticalAlign=b)}if(!c||!a.disableBox){for(var _=0;_<pm.length;_++){var v=pm[_],y=t.getShallow(v);y!=null&&(e[v]=y)}var x=t.getShallow(`borderType`);x!=null&&(e.borderDash=x),(e.backgroundColor===`auto`||e.backgroundColor===`inherit`)&&u&&(e.backgroundColor=u),(e.borderColor===`auto`||e.borderColor===`inherit`)&&u&&(e.borderColor=u)}}function hm(e,t){var n=t&&t.getModel(`textStyle`);return Te([e.fontStyle||n&&n.getShallow(`fontStyle`)||``,e.fontWeight||n&&n.getShallow(`fontWeight`)||``,(e.fontSize||n&&n.getShallow(`fontSize`)||12)+`px`,e.fontFamily||n&&n.getShallow(`fontFamily`)||`sans-serif`].join(` `))}var gm=es();function _m(e,t,n,r){if(e){var i=gm(e);i.prevValue=i.value,i.value=n;var a=t.normal;i.valueAnimation=a.get(`valueAnimation`),i.valueAnimation&&(i.precision=a.get(`precision`),i.defaultInterpolatedText=r,i.statesModels=t)}}function vm(e,t,n,r,i){var a=gm(e);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=G(a.interpolatedValue,a.prevValue),c=a.value;function l(r){var l=us(n,a.precision,s,c,r);a.interpolatedValue=r===1?null:l,rm(e,im({labelDataIndex:t,labelFetcher:i,defaultText:o?o(l):l+``},a.statesModels,l))}e.percent=0,(a.prevValue==null?np:tp)(e,{percent:1},r,t,null,l)}var ym={minMargin:1,textMargin:2},bm=[`textStyle`,`color`],xm=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`padding`,`lineHeight`,`rich`,`width`,`height`,`overflow`],Sm=new Xl,Cm=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow(`color`)||(!e&&t?t.get(bm):null)},e.prototype.getFont=function(){return hm({fontStyle:this.getShallow(`fontStyle`),fontWeight:this.getShallow(`fontWeight`),fontSize:this.getShallow(`fontSize`),fontFamily:this.getShallow(`fontFamily`)},this.ecModel)},e.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow(`verticalAlign`)||this.getShallow(`baseline`)},n=0;n<xm.length;n++)t[xm[n]]=this.getShallow(xm[n]);return Sm.useStyle(t),Sm.update(),Sm.getBoundingRect()},e}(),wm=[[`lineWidth`,`width`],[`stroke`,`color`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`type`],[`lineDashOffset`,`dashOffset`],[`lineCap`,`cap`],[`lineJoin`,`join`],[`miterLimit`]],Tm=Us(wm),Em=function(){function e(){}return e.prototype.getLineStyle=function(e){return Tm(this,e)},e}(),Dm=[[`fill`,`color`],[`stroke`,`borderColor`],[`lineWidth`,`borderWidth`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`borderType`],[`lineDashOffset`,`borderDashOffset`],[`lineCap`,`borderCap`],[`lineJoin`,`borderJoin`],[`miterLimit`,`borderMiterLimit`]],Om=Us(Dm),km=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return Om(this,e,t)},e}(),Am=function(){function e(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return e.prototype.init=function(e,t,n){},e.prototype.mergeOption=function(e,t){I(this.option,e,!0)},e.prototype.get=function(e,t){return e==null?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},e.prototype.getShallow=function(e,t){var n=this.option,r=n==null?n:n[e];if(r==null&&!t){var i=this.parentModel;i&&(r=i.getShallow(e))}return r},e.prototype.getModel=function(t,n){var r=t!=null,i=r?this.parsePath(t):null,a=r?this._doGet(i):this.option;return n||=this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new e(a,n,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var e=this.constructor;return new e(F(this.option))},e.prototype.parsePath=function(e){return typeof e==`string`?e.split(`.`):e},e.prototype.resolveParentPath=function(e){return e},e.prototype.isAnimationEnabled=function(){if(!d.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var r=0;r<e.length&&!(e[r]&&(n=n&&typeof n==`object`?n[e[r]]:null,n==null));r++);return n==null&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},e}();Fs(Am),zs(Am),te(Am,Em),te(Am,km),te(Am,Gs),te(Am,Cm);var jm=Math.round(Math.random()*10);function Mm(e){return[e||``,jm++].join(`_`)}function Nm(e){var t={};e.registerSubTypeDefaulter=function(e,n){var r=Ms(e);t[r.main]=n},e.determineSubType=function(n,r){var i=r.type;if(!i){var a=Ms(n).main;e.hasSubTypes(n)&&t[a]&&(i=t[a](r))}return i}}function Pm(e,t){e.topologicalTravel=function(e,t,r,i){if(!e.length)return;var a=n(t),o=a.graph,s=a.noEntryList,c={};for(V(e,function(e){c[e]=!0});s.length;){var l=s.pop(),u=o[l],d=!!c[l];d&&(r.call(i,l,u.originalDeps.slice()),delete c[l]),V(u.successor,d?p:f)}V(c,function(){throw Error(``)});function f(e){o[e].entryCount--,o[e].entryCount===0&&s.push(e)}function p(e){c[e]=!0,f(e)}};function n(e){var n={},a=[];return V(e,function(o){var s=r(n,o),c=i(s.originalDeps=t(o),e);s.entryCount=c.length,s.entryCount===0&&a.push(o),V(c,function(e){B(s.predecessor,e)<0&&s.predecessor.push(e);var t=r(n,e);B(t.successor,e)<0&&t.successor.push(o)})}),{graph:n,noEntryList:a}}function r(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}function i(e,t){var n=[];return V(e,function(e){B(t,e)>=0&&n.push(e)}),n}}function Fm(e,t){return I(I({},e,!0),t,!0)}var Im={time:{month:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],monthAbbr:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],dayOfWeek:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],dayOfWeekAbbr:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`]},legend:{selector:{all:`All`,inverse:`Inv`}},toolbox:{brush:{title:{rect:`Box Select`,polygon:`Lasso Select`,lineX:`Horizontally Select`,lineY:`Vertically Select`,keep:`Keep Selections`,clear:`Clear Selections`}},dataView:{title:`Data View`,lang:[`Data View`,`Close`,`Refresh`]},dataZoom:{title:{zoom:`Zoom`,back:`Zoom Reset`}},magicType:{title:{line:`Switch to Line Chart`,bar:`Switch to Bar Chart`,stack:`Stack`,tiled:`Tile`}},restore:{title:`Restore`},saveAsImage:{title:`Save as Image`,lang:[`Right Click to Save Image`]}},series:{typeNames:{pie:`Pie chart`,bar:`Bar chart`,line:`Line chart`,scatter:`Scatter plot`,effectScatter:`Ripple scatter plot`,radar:`Radar chart`,tree:`Tree`,treemap:`Treemap`,boxplot:`Boxplot`,candlestick:`Candlestick`,k:`K line chart`,heatmap:`Heat map`,map:`Map`,parallel:`Parallel coordinate map`,lines:`Line graph`,graph:`Relationship graph`,sankey:`Sankey diagram`,funnel:`Funnel chart`,gauge:`Gauge`,pictorialBar:`Pictorial bar`,themeRiver:`Theme River Map`,sunburst:`Sunburst`,custom:`Custom chart`,chart:`Chart`}},aria:{general:{withTitle:`This is a chart about "{title}"`,withoutTitle:`This is a chart`},series:{single:{prefix:``,withName:` with type {seriesType} named {seriesName}.`,withoutName:` with type {seriesType}.`},multiple:{prefix:`. It consists of {seriesCount} series count.`,withName:` The {seriesId} series is a {seriesType} representing {seriesName}.`,withoutName:` The {seriesId} series is a {seriesType}.`,separator:{middle:``,end:``}}},data:{allData:`The data is as follows: `,partialData:`The first {displayCnt} items are: `,withName:`the data for {name} is {value}`,withoutName:`{value}`,separator:{middle:`, `,end:`. `}}}},Lm={time:{month:[`一月`,`二月`,`三月`,`四月`,`五月`,`六月`,`七月`,`八月`,`九月`,`十月`,`十一月`,`十二月`],monthAbbr:[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`],dayOfWeek:[`星期日`,`星期一`,`星期二`,`星期三`,`星期四`,`星期五`,`星期六`],dayOfWeekAbbr:[`日`,`一`,`二`,`三`,`四`,`五`,`六`]},legend:{selector:{all:`全选`,inverse:`反选`}},toolbox:{brush:{title:{rect:`矩形选择`,polygon:`圈选`,lineX:`横向选择`,lineY:`纵向选择`,keep:`保持选择`,clear:`清除选择`}},dataView:{title:`数据视图`,lang:[`数据视图`,`关闭`,`刷新`]},dataZoom:{title:{zoom:`区域缩放`,back:`区域缩放还原`}},magicType:{title:{line:`切换为折线图`,bar:`切换为柱状图`,stack:`切换为堆叠`,tiled:`切换为平铺`}},restore:{title:`还原`},saveAsImage:{title:`保存为图片`,lang:[`右键另存为图片`]}},series:{typeNames:{pie:`饼图`,bar:`柱状图`,line:`折线图`,scatter:`散点图`,effectScatter:`涟漪散点图`,radar:`雷达图`,tree:`树图`,treemap:`矩形树图`,boxplot:`箱型图`,candlestick:`K线图`,k:`K线图`,heatmap:`热力图`,map:`地图`,parallel:`平行坐标图`,lines:`线图`,graph:`关系图`,sankey:`桑基图`,funnel:`漏斗图`,gauge:`仪表盘图`,pictorialBar:`象形柱图`,themeRiver:`主题河流图`,sunburst:`旭日图`,custom:`自定义图表`,chart:`图表`}},aria:{general:{withTitle:`这是一个关于“{title}”的图表。`,withoutTitle:`这是一个图表,`},series:{single:{prefix:``,withName:`图表类型是{seriesType},表示{seriesName}。`,withoutName:`图表类型是{seriesType}。`},multiple:{prefix:`它由{seriesCount}个图表系列组成。`,withName:`第{seriesId}个系列是一个表示{seriesName}的{seriesType},`,withoutName:`第{seriesId}个系列是一个{seriesType},`,separator:{middle:`;`,end:`。`}}},data:{allData:`其数据是——`,partialData:`其中,前{displayCnt}项是——`,withName:`{name}的数据是{value}`,withoutName:`{value}`,separator:{middle:`,`,end:``}}}},Rm=`ZH`,zm=`EN`,Bm=zm,Vm={},Hm={},Um=d.domSupported?function(){return(document.documentElement.lang||navigator.language||navigator.browserLanguage||Bm).toUpperCase().indexOf(Rm)>-1?Rm:Bm}():Bm;function Wm(e,t){e=e.toUpperCase(),Hm[e]=new Am(t),Vm[e]=t}function Gm(e){if(W(e)){var t=Vm[e.toUpperCase()]||{};return e===Rm||e===zm?F(t):I(F(t),F(Vm[Bm]),!1)}return I(F(e),F(Vm[Bm]),!1)}function Km(e){return Hm[e]}function qm(){return Hm[Bm]}Wm(zm,Im),Wm(Rm,Lm);var Jm=null;function Ym(){return Jm}function Xm(e,t){var n=Ym(),r=t.breakOption,i=t.breakParsed;return!i&&n&&(i=n.parseAxisBreakOption(r,e)),i}function Zm(e){var t=e.brk;return t?t.breaks:[]}function Qm(e){var t=e.brk;return t?t.hasBreaks():!1}var $m=1e3,eh=$m*60,th=eh*60,nh=th*24,rh=nh*365,ih={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},ah={year:`{yyyy}`,month:`{MMM}`,day:`{d}`,hour:`{HH}:{mm}`,minute:`{HH}:{mm}`,second:`{HH}:{mm}:{ss}`,millisecond:`{HH}:{mm}:{ss} {SSS}`},oh=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}`,sh=`{yyyy}-{MM}-{dd}`,ch={year:`{yyyy}`,month:`{yyyy}-{MM}`,day:sh,hour:sh+` `+ah.hour,minute:sh+` `+ah.minute,second:sh+` `+ah.second,millisecond:oh},lh=[`year`,`month`,`day`,`hour`,`minute`,`second`,`millisecond`],uh=[`year`,`half-year`,`quarter`,`month`,`week`,`half-week`,`day`,`half-day`,`quarter-day`,`hour`,`minute`,`second`,`millisecond`];function dh(e){return!W(e)&&!ue(e)?fh(e):e}function fh(e){e||={};var t={},n=!0;return V(lh,function(t){n&&=e[t]==null}),V(lh,function(r,i){var a=e[r];t[r]={};for(var o=null,s=i;s>=0;s--){var c=lh[s],l=pe(a)&&!U(a)?a[c]:a,u=void 0;U(l)?(u=l.slice(),o=u[0]||``):W(l)?(o=l,u=[o]):(o==null?o=ah[r]:ih[c].test(o)||(o=t[c][c][0]+` `+o),u=[o],n&&(u[1]=`{primary|`+o+`}`)),t[r][c]=u}}),t}function ph(e,t){return e+=``,`0000`.substr(0,t-e.length)+e}function mh(e){switch(e){case`half-year`:case`quarter`:return`month`;case`week`:case`half-week`:return`day`;case`half-day`:case`quarter-day`:return`hour`;default:return e}}function hh(e){return e===mh(e)}function gh(e){switch(e){case`year`:case`month`:return`day`;case`millisecond`:return`millisecond`;default:return`second`}}function _h(e,t,n,r){var i=ho(e),a=i[xh(n)](),o=i[Sh(n)]()+1,s=Math.floor((o-1)/3)+1,c=i[Ch(n)](),l=i[`get`+(n?`UTC`:``)+`Day`](),u=i[wh(n)](),d=(u-1)%12+1,f=i[Th(n)](),p=i[Eh(n)](),m=i[Dh(n)](),h=u>=12?`pm`:`am`,g=h.toUpperCase(),_=(r instanceof Am?r:Km(r||Um)||qm()).getModel(`time`),v=_.get(`month`),y=_.get(`monthAbbr`),b=_.get(`dayOfWeek`),x=_.get(`dayOfWeekAbbr`);return(t||``).replace(/{a}/g,h+``).replace(/{A}/g,g+``).replace(/{yyyy}/g,a+``).replace(/{yy}/g,ph(a%100+``,2)).replace(/{Q}/g,s+``).replace(/{MMMM}/g,v[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,ph(o,2)).replace(/{M}/g,o+``).replace(/{dd}/g,ph(c,2)).replace(/{d}/g,c+``).replace(/{eeee}/g,b[l]).replace(/{ee}/g,x[l]).replace(/{e}/g,l+``).replace(/{HH}/g,ph(u,2)).replace(/{H}/g,u+``).replace(/{hh}/g,ph(d+``,2)).replace(/{h}/g,d+``).replace(/{mm}/g,ph(f,2)).replace(/{m}/g,f+``).replace(/{ss}/g,ph(p,2)).replace(/{s}/g,p+``).replace(/{SSS}/g,ph(m,3)).replace(/{S}/g,m+``)}function vh(e,t,n,r,i){var a=null;if(W(n))a=n;else if(ue(n)){var o={time:e.time,level:e.time?e.time.level:0},s=Ym();s&&s.makeAxisLabelFormatterParamBreak(o,e.break),a=n(e.value,t,o)}else{var c=e.time;if(c){var l=n[c.lowerTimeUnit][c.upperTimeUnit];a=l[Math.min(c.level,l.length-1)]||``}else{var u=yh(e.value,i);a=n[u][u][0]}}return _h(new Date(e.value),a,i,r)}function yh(e,t){var n=ho(e),r=n[Sh(t)]()+1,i=n[Ch(t)](),a=n[wh(t)](),o=n[Th(t)](),s=n[Eh(t)](),c=n[Dh(t)]()===0,l=c&&s===0,u=l&&o===0,d=u&&a===0,f=d&&i===1;return f&&r===1?`year`:f?`month`:d?`day`:u?`hour`:l?`minute`:c?`second`:`millisecond`}function bh(e,t,n){switch(t){case`year`:e[kh(n)](0);case`month`:e[Ah(n)](1);case`day`:e[jh(n)](0);case`hour`:e[Mh(n)](0);case`minute`:e[Nh(n)](0);case`second`:e[Ph(n)](0)}return e}function xh(e){return e?`getUTCFullYear`:`getFullYear`}function Sh(e){return e?`getUTCMonth`:`getMonth`}function Ch(e){return e?`getUTCDate`:`getDate`}function wh(e){return e?`getUTCHours`:`getHours`}function Th(e){return e?`getUTCMinutes`:`getMinutes`}function Eh(e){return e?`getUTCSeconds`:`getSeconds`}function Dh(e){return e?`getUTCMilliseconds`:`getMilliseconds`}function Oh(e){return e?`setUTCFullYear`:`setFullYear`}function kh(e){return e?`setUTCMonth`:`setMonth`}function Ah(e){return e?`setUTCDate`:`setDate`}function jh(e){return e?`setUTCHours`:`setHours`}function Mh(e){return e?`setUTCMinutes`:`setMinutes`}function Nh(e){return e?`setUTCSeconds`:`setSeconds`}function Ph(e){return e?`setUTCMilliseconds`:`setMilliseconds`}function Fh(e){if(!bo(e))return W(e)?e:`-`;var t=(e+``).split(`.`);return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,`$1,`)+(t.length>1?`.`+t[1]:``)}function Ih(e,t){return e=(e||``).toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var Lh=Ce;function Rh(e,t,n){var r=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}`;function i(e){return e&&Te(e)?e:`-`}function a(e){return wo(e)}var o=t===`time`,s=e instanceof Date;if(o||s){var c=o?ho(e):e;if(!isNaN(+c))return _h(c,r,n);if(s)return`-`}if(t===`ordinal`)return de(e)?i(e):fe(e)&&a(e)?e+``:`-`;var l=yo(e);return a(l)?Fh(l):de(e)?i(e):typeof e==`boolean`?e+``:`-`}var zh=[`a`,`b`,`c`,`d`,`e`,`f`,`g`],Bh=function(e,t){return`{`+e+(t??``)+`}`};function Vh(e,t,n){U(t)||(t=[t]);var r=t.length;if(!r)return``;for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=zh[a];e=e.replace(Bh(o),Bh(o,0))}for(var s=0;s<r;s++)for(var c=0;c<i.length;c++){var l=t[s][i[c]];e=e.replace(Bh(zh[c],s),n?yt(l):l)}return e}function Hh(e,t){var n=W(e)?{color:e,extraCssText:t}:e||{},r=n.color,i=n.type;t=n.extraCssText;var a=n.renderMode||`html`;return r?a===`html`?i===`subItem`?`<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:`+yt(r)+`;`+(t||``)+`"></span>`:`<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:`+yt(r)+`;`+(t||``)+`"></span>`:{renderMode:a,content:`{`+(n.markerId||`markerX`)+`|} `,style:i===`subItem`?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}:``}function Uh(e,t){return t||=`transparent`,W(e)?e:pe(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function Wh(e,t){if(t===`_blank`||t===`blank`){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var Gh={},Kh={},qh=function(){function e(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return e.prototype.create=function(e,t){this._nonSeriesBoxMasterList=n(Gh,!0),this._normalMasterList=n(Kh,!1);function n(n,r){var i=[];return V(n,function(n,r){var a=n.create(e,t);i=i.concat(a||[])}),i}},e.prototype.update=function(e,t){V(this._normalMasterList,function(n){n.update&&n.update(e,t)})},e.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},e.register=function(e,t){if(e===`matrix`||e===`calendar`){Gh[e]=t;return}Kh[e]=t},e.get=function(e){return Kh[e]||Gh[e]},e}();function Jh(e){return!!Gh[e]}function Yh(e){Xh.set(e.fullType,{getCoord2:void 0}).getCoord2=e.getCoord2}var Xh=Ne();function Zh(e){var t=e.getShallow(`coord`,!0),n=1;if(t==null){var r=Xh.get(e.type);r&&r.getCoord2&&(n=2,t=r.getCoord2(e))}return{coord:t,from:n}}function Qh(e,t){var n=e.getShallow(`coordinateSystem`),r=e.getShallow(`coordinateSystemUsage`,!0),i=0;if(n){var a=e.mainType===`series`;r??=a?`data`:`box`,r===`data`?(i=1,a||(i=0)):r===`box`&&(i=2,!a&&!Jh(n)&&(i=0))}return{coordSysType:n,kind:i}}function $h(e){var t=e.targetModel,n=e.coordSysType,r=e.coordSysProvider,i=e.isDefaultDataCoordSys;e.allowNotFound;var a=Qh(t,!0),o=a.kind,s=a.coordSysType;if(i&&o!==1&&(o=1,s=n),o===0||s!==n)return 0;var c=r(n,t);return c?(o===1?t.coordinateSystem=c:t.boxCoordinateSystem=c,o):0}var eg=V,tg=[`left`,`right`,`top`,`bottom`,`width`,`height`],ng=[[`width`,`left`,`right`],[`height`,`top`,`bottom`]];function rg(e,t,n,r,i){var a=0,o=0;r??=1/0,i??=1/0;var s=0;t.eachChild(function(c,l){var u=c.getBoundingRect(),d=t.childAt(l+1),f=d&&d.getBoundingRect(),p,m;if(e===`horizontal`){var h=u.width+(f?-f.x+u.x:0);p=a+h,p>r||c.newline?(a=0,p=h,o+=s+n,s=u.height):s=Math.max(s,u.height)}else{var g=u.height+(f?-f.y+u.y:0);m=o+g,m>i||c.newline?(a+=s+n,o=0,m=g,s=u.width):s=Math.max(s,u.width)}c.newline||(c.x=a,c.y=o,c.markRedraw(),e===`horizontal`?a=p+n:o=m+n)})}var ig=rg;le(rg,`vertical`),le(rg,`horizontal`);function ag(e,t){return{left:e.getShallow(`left`,t),top:e.getShallow(`top`,t),right:e.getShallow(`right`,t),bottom:e.getShallow(`bottom`,t),width:e.getShallow(`width`,t),height:e.getShallow(`height`,t)}}function og(e,t){var n=ug(e,t,{enableLayoutOnlyByCenter:!0}),r=e.getBoxLayoutParams(),i,a;if(n.type===lg.point)a=n.refPoint,i=cg(r,{width:t.getWidth(),height:t.getHeight()});else{var o=e.get(`center`),s=U(o)?o:[o,o];i=cg(r,n.refContainer),a=n.boxCoordFrom===2?n.refPoint:[$a(s[0],i.width)+i.x,$a(s[1],i.height)+i.y]}return{viewRect:i,center:a}}function sg(e,t){var n=og(e,t),r=n.viewRect,i=n.center,a=e.get(`radius`);U(a)||(a=[0,a]);var o=$a(r.width,t.getWidth()),s=$a(r.height,t.getHeight()),c=Math.min(o,s),l=$a(a[0],c/2),u=$a(a[1],c/2);return{cx:i[0],cy:i[1],r0:l,r:u,viewRect:r}}function cg(e,t,n){n=Lh(n||0);var r=t.width,i=t.height,a=$a(e.left,r),o=$a(e.top,i),s=$a(e.right,r),c=$a(e.bottom,i),l=$a(e.width,r),u=$a(e.height,i),d=n[2]+n[0],f=n[1]+n[3],p=e.aspect;switch(isNaN(l)&&(l=r-s-f-a),isNaN(u)&&(u=i-c-d-o),p!=null&&(isNaN(l)&&isNaN(u)&&(p>r/i?l=r*.8:u=i*.8),isNaN(l)&&(l=p*u),isNaN(u)&&(u=l/p)),isNaN(a)&&(a=r-s-l-f),isNaN(o)&&(o=i-c-u-d),e.left||e.right){case`center`:a=r/2-l/2-n[3];break;case`right`:a=r-l-f}switch(e.top||e.bottom){case`middle`:case`center`:o=i/2-u/2-n[0];break;case`bottom`:o=i-u-d}a||=0,o||=0,isNaN(l)&&(l=r-f-a-(s||0)),isNaN(u)&&(u=i-d-o-(c||0));var m=new rn((t.x||0)+a+n[3],(t.y||0)+o+n[0],l,u);return m.margin=n,m}var lg={rect:1,point:2};function ug(e,t,n){var r,i,a,o=e.boxCoordinateSystem,s;if(o){var c=Zh(e),l=c.coord,u=c.from;if(o.dataToLayout){a=lg.rect,s=u;var d=o.dataToLayout(l);r=d.contentRect||d.rect}else n&&n.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=lg.point,s=u,i=o.dataToPoint(l))}return a??=lg.rect,a===lg.rect&&(r||={x:0,y:0,width:t.getWidth(),height:t.getHeight()},i=[r.x+r.width/2,r.y+r.height/2]),{type:a,refContainer:r,refPoint:i,boxCoordFrom:s}}function dg(e,t,n,r,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],c=i&&i.boundingMode||`all`;if(a||=e,a.x=e.x,a.y=e.y,!o&&!s)return!1;var l;if(c===`raw`)l=e.type===`group`?new rn(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(l=e.getBoundingRect(),e.needLocalTransform()){var u=e.getLocalTransform();l=l.clone(),l.applyTransform(u)}var d=cg(z({width:l.width,height:l.height},t),n,r),f=o?d.x-l.x:0,p=s?d.y-l.y:0;return c===`raw`?(a.x=f,a.y=p):(a.x+=f,a.y+=p),a===e&&e.markRedraw(),!0}function fg(e){var t=e.layoutMode||e.constructor.layoutMode;return pe(t)?t:t?{type:t}:null}function pg(e,t,n){var r=n&&n.ignoreSize;!U(r)&&(r=[r,r]);var i=o(ng[0],0),a=o(ng[1],1);c(ng[0],e,i),c(ng[1],e,a);function o(n,i){var a={},o=0,c={},l=0,u=2;if(eg(n,function(t){c[t]=e[t]}),eg(n,function(e){K(t,e)&&(a[e]=c[e]=t[e]),s(a,e)&&o++,s(c,e)&&l++}),r[i])return s(t,n[1])?c[n[2]]=null:s(t,n[2])&&(c[n[1]]=null),c;if(l===u||!o)return c;if(o>=u)return a;for(var d=0;d<n.length;d++){var f=n[d];if(!K(a,f)&&K(e,f)){a[f]=e[f];break}}return a}function s(e,t){return e[t]!=null&&e[t]!==`auto`}function c(e,t,n){eg(e,function(e){t[e]=n[e]})}}function mg(e){return hg({},e)}function hg(e,t){return t&&e&&eg(tg,function(n){K(t,n)&&(e[n]=t[n])}),e}var gg=es(),_g=function(e){l(t,e);function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.uid=Mm(`ec_cpt_model`),i}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=fg(this),r=n?mg(e):{};I(e,t.getTheme().get(this.mainType)),I(e,this.getDefaultOption()),n&&pg(e,r,n)},t.prototype.mergeOption=function(e,t){I(this.option,e,!0);var n=fg(this);n&&pg(this.option,e,n)},t.prototype.optionUpdated=function(e,t){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!Ps(e))return e.defaultOption;var t=gg(this);if(!t.defaultOption){for(var n=[],r=e;r;){var i=r.prototype.defaultOption;i&&n.push(i),r=r.superClass}for(var a={},o=n.length-1;o>=0;o--)a=I(a,n[o],!0);t.defaultOption=a}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+`Index`,r=e+`Id`;return as(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){return ag(this,!1)},t.prototype.getZLevelKey=function(){return``},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type=`component`,e.id=``,e.name=``,e.mainType=``,e.subType=``,e.componentIndex=0}(),t}(Am);Ls(_g,Am),Hs(_g),Nm(_g),Pm(_g,vg);function vg(e){var t=[];return V(_g.getClassesByMainType(e),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=H(t,function(e){return Ms(e).main}),e!==`dataset`&&B(t,`dataset`)<=0&&t.unshift(`dataset`),t}var q={color:{},darkColor:{},size:{}},yg=q.color={theme:[`#5070dd`,`#b6d634`,`#505372`,`#ff994d`,`#0ca8df`,`#ffd10a`,`#fb628b`,`#785db0`,`#3fbe95`],neutral00:`#fff`,neutral05:`#f4f7fd`,neutral10:`#e8ebf0`,neutral15:`#dbdee4`,neutral20:`#cfd2d7`,neutral25:`#c3c5cb`,neutral30:`#b7b9be`,neutral35:`#aaacb2`,neutral40:`#9ea0a5`,neutral45:`#929399`,neutral50:`#86878c`,neutral55:`#797b7f`,neutral60:`#6d6e73`,neutral65:`#616266`,neutral70:`#54555a`,neutral75:`#48494d`,neutral80:`#3c3c41`,neutral85:`#303034`,neutral90:`#232328`,neutral95:`#17171b`,neutral99:`#000`,accent05:`#eff1f9`,accent10:`#e0e4f2`,accent15:`#d0d6ec`,accent20:`#c0c9e6`,accent25:`#b1bbdf`,accent30:`#a1aed9`,accent35:`#91a0d3`,accent40:`#8292cc`,accent45:`#7285c6`,accent50:`#6578ba`,accent55:`#5c6da9`,accent60:`#536298`,accent65:`#4a5787`,accent70:`#404c76`,accent75:`#374165`,accent80:`#2e3654`,accent85:`#252b43`,accent90:`#1b2032`,accent95:`#121521`,transparent:`rgba(0,0,0,0)`,highlight:`rgba(255,231,130,0.8)`};for(var bg in L(yg,{primary:yg.neutral80,secondary:yg.neutral70,tertiary:yg.neutral60,quaternary:yg.neutral50,disabled:yg.neutral20,border:yg.neutral30,borderTint:yg.neutral20,borderShade:yg.neutral40,background:yg.neutral05,backgroundTint:`rgba(234,237,245,0.5)`,backgroundTransparent:`rgba(255,255,255,0)`,backgroundShade:yg.neutral10,shadow:`rgba(0,0,0,0.2)`,shadowTint:`rgba(129,130,136,0.2)`,axisLine:yg.neutral70,axisLineTint:yg.neutral40,axisTick:yg.neutral70,axisTickMinor:yg.neutral60,axisLabel:yg.neutral70,axisSplitLine:yg.neutral15,axisMinorSplitLine:yg.neutral05}),yg)if(yg.hasOwnProperty(bg)){var xg=yg[bg];bg===`theme`?q.darkColor.theme=yg.theme.slice():bg===`highlight`?q.darkColor.highlight=`rgba(255,231,130,0.4)`:bg.indexOf(`accent`)===0?q.darkColor[bg]=Rr(xg,null,function(e){return e*.5},function(e){return Math.min(1,1.3-e)}):q.darkColor[bg]=Rr(xg,null,function(e){return e*.9},function(e){return 1-e**1.5})}q.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var Sg=``;typeof navigator<`u`&&(Sg=navigator.platform||``);var Cg=`rgba(0, 0, 0, 0.2)`,wg=q.color.theme[0],Tg=Rr(wg,null,null,.9),Eg={darkMode:`auto`,colorBy:`series`,color:q.color.theme,gradientColor:[Tg,wg],aria:{decal:{decals:[{color:Cg,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Cg,symbol:`circle`,dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Cg,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Cg,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Cg,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Cg,symbol:`triangle`,dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Sg.match(/^Win/)?`Microsoft YaHei`:`sans-serif`,fontSize:12,fontStyle:`normal`,fontWeight:`normal`},blendMode:null,stateAnimation:{duration:300,easing:`cubicOut`},animation:`auto`,animationDuration:1e3,animationDurationUpdate:500,animationEasing:`cubicInOut`,animationEasingUpdate:`cubicInOut`,animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},Dg={Must:1,Might:2,Not:3},Og=es();function kg(e){Og(e).datasetMap=Ne()}function Ag(e,t,n){var r={},i=Mg(t);if(!i||!e)return r;var a=[],o=[],s=t.ecModel,c=Og(s).datasetMap,l=i.uid+`_`+n.seriesLayoutBy,u,d;e=e.slice(),V(e,function(t,n){var i=pe(t)?t:e[n]={name:t};i.type===`ordinal`&&u==null&&(u=n,d=m(i)),r[i.name]=[]});var f=c.get(l)||c.set(l,{categoryWayDim:d,valueWayDim:0});V(e,function(e,t){var n=e.name,i=m(e);if(u==null){var s=f.valueWayDim;p(r[n],s,i),p(o,s,i),f.valueWayDim+=i}else if(u===t)p(r[n],0,i),p(a,0,i);else{var s=f.categoryWayDim;p(r[n],s,i),p(o,s,i),f.categoryWayDim+=i}});function p(e,t,n){for(var r=0;r<n;r++)e.push(t+r)}function m(e){var t=e.dimsDef;return t?t.length:1}return a.length&&(r.itemName=a),o.length&&(r.seriesName=o),r}function jg(e,t,n){var r={};if(!Mg(e))return r;var i=t.sourceFormat,a=t.dimensionsDefine,o;(i===`objectRows`||i===`keyedColumns`)&&V(a,function(e,t){(pe(e)?e.name:e)===`name`&&(o=t)});var s=function(){for(var e={},r={},s=[],c=0,l=Math.min(5,n);c<l;c++){var u=Fg(t.data,i,t.seriesLayoutBy,a,t.startIndex,c);s.push(u);var d=u===Dg.Not;if(d&&e.v==null&&c!==o&&(e.v=c),(e.n==null||e.n===e.v||!d&&s[e.n]===Dg.Not)&&(e.n=c),f(e)&&s[e.n]!==Dg.Not)return e;d||(u===Dg.Might&&r.v==null&&c!==o&&(r.v=c),(r.n==null||r.n===r.v)&&(r.n=c))}function f(e){return e.v!=null&&e.n!=null}return f(e)?e:f(r)?r:null}();if(s){r.value=[s.v];var c=o??s.n;r.itemName=[c],r.seriesName=[c]}return r}function Mg(e){if(!e.get(`data`,!0))return as(e.ecModel,`dataset`,{index:e.get(`datasetIndex`,!0),id:e.get(`datasetId`,!0)},is).models[0]}function Ng(e){return!e.get(`transform`,!0)&&!e.get(`fromTransformResult`,!0)?[]:as(e.ecModel,`dataset`,{index:e.get(`fromDatasetIndex`,!0),id:e.get(`fromDatasetId`,!0)},is).models}function Pg(e,t){return Fg(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function Fg(e,t,n,r,i,a){var o,s=5;if(he(e))return Dg.Not;var c,l;if(r){var u=r[a];pe(u)?(c=u.name,l=u.type):W(u)&&(c=u)}if(l!=null)return l===`ordinal`?Dg.Must:Dg.Not;if(t===`arrayRows`){var d=e;if(n===`row`){for(var f=d[a],p=0;p<(f||[]).length&&p<s;p++)if((o=b(f[i+p]))!=null)return o}else for(var p=0;p<d.length&&p<s;p++){var m=d[i+p];if(m&&(o=b(m[a]))!=null)return o}}else if(t===`objectRows`){var h=e;if(!c)return Dg.Not;for(var p=0;p<h.length&&p<s;p++){var g=h[p];if(g&&(o=b(g[c]))!=null)return o}}else if(t===`keyedColumns`){var _=e;if(!c)return Dg.Not;var f=_[c];if(!f||he(f))return Dg.Not;for(var p=0;p<f.length&&p<s;p++)if((o=b(f[p]))!=null)return o}else if(t===`original`)for(var v=e,p=0;p<v.length&&p<s;p++){var g=v[p],y=Lo(g);if(!U(y))return Dg.Not;if((o=b(y[a]))!=null)return o}function b(e){var t=W(e);if(e!=null&&isFinite(Number(e))&&e!==``)return t?Dg.Might:Dg.Not;if(t&&e!==`-`)return Dg.Must}return Dg.Not}var Ig=Ne();function Lg(e,t,n){var r=Ig.get(t);if(!r)return n;var i=r(e);return i?n.concat(i):n}var Rg=es();es();var zg=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var r=Po(this.get(`color`,!0)),i=this.get(`colorLayer`,!0);return Vg(this,Rg,r,i,e,t,n)},e.prototype.clearColorPalette=function(){Hg(this,Rg)},e}();function Bg(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r].length>t)return e[r];return e[n-1]}function Vg(e,t,n,r,i,a,o){a||=e;var s=t(a),c=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(i))return l[i];var u=o==null||!r?n:Bg(r,o);if(u||=n,!(!u||!u.length)){var d=u[c];return i&&(l[i]=d),s.paletteIdx=(c+1)%u.length,d}}function Hg(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Ug,Wg,Gg,Kg=`\0_ec_inner`,qg=1,Jg=function(e){l(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(e,t,n,r,i,a){r||={},this.option=null,this._theme=new Am(r),this._locale=new Am(i),this._optionManager=a},t.prototype.setOption=function(e,t,n){var r=$g(t);this._optionManager.setOption(e,n,r),this._resetOption(null,r)},t.prototype.resetOption=function(e,t){return this._resetOption(e,$g(t))},t.prototype._resetOption=function(e,t){var n=!1,r=this._optionManager;if(!e||e===`recreate`){var i=r.mountOption(e===`recreate`);!this.option||e===`recreate`?Gg(this,i):(this.restoreData(),this._mergeOption(i,t)),n=!0}if((e===`timeline`||e===`media`)&&this.restoreData(),!e||e===`recreate`||e===`timeline`){var a=r.getTimelineOption(this);a&&(n=!0,this._mergeOption(a,t))}if(!e||e===`recreate`||e===`media`){var o=r.getMediaOption(this);o.length&&V(o,function(e){n=!0,this._mergeOption(e,t)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,t){var n=this.option,r=this._componentsMap,i=this._componentsCount,a=[],o=Ne(),s=t&&t.replaceMergeMainTypeMap;kg(this),V(e,function(e,t){e!=null&&(_g.hasClass(t)?t&&(a.push(t),o.set(t,!0)):n[t]=n[t]==null?F(e):I(n[t],e,!0))}),s&&s.each(function(e,t){_g.hasClass(t)&&!o.get(t)&&(a.push(t),o.set(t,!0))}),_g.topologicalTravel(a,_g.getAllClassMainTypes(),c,this);function c(t){var a=Lg(this,t,Po(e[t])),o=r.get(t),c=zo(o,a,o?s&&s.get(t)?`replaceMerge`:`normalMerge`:`replaceAll`);Zo(c,t,_g),n[t]=null,r.set(t,null),i.set(t,0);var l=[],u=[],d=0,f;V(c,function(e,n){var r=e.existing,i=e.newOption;if(!i)r&&(r.mergeOption({},this),r.optionUpdated({},!1));else{var a=t===`series`,o=_g.getClass(t,e.keyInfo.subType,!a);if(!o)return;if(t===`tooltip`){if(f)return;f=!0}if(r&&r.constructor===o)r.name=e.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=L({componentIndex:n},e.keyInfo);r=new o(i,this,this,s),L(r,s),e.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}r?(l.push(r.option),u.push(r),d++):(l.push(void 0),u.push(void 0))},this),n[t]=l,r.set(t,u),i.set(t,d),t===`series`&&Ug(this)}this._seriesIndices||Ug(this)},t.prototype.getOption=function(){var e=F(this.option);return V(e,function(t,n){if(_g.hasClass(n)){for(var r=Po(t),i=r.length,a=!1,o=i-1;o>=0;o--)r[o]&&!Xo(r[o])?a=!0:(r[o]=null,!a&&i--);r.length=i,e[n]=r}}),delete e[Kg],e},t.prototype.setTheme=function(e){this._theme=new Am(e),this._resetOption(`recreate`,null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var r=n[t||0];if(r)return r;if(t==null){for(var i=0;i<n.length;i++)if(n[i])return n[i]}}},t.prototype.queryComponents=function(e){var t=e.mainType;if(!t)return[];var n=e.index,r=e.id,i=e.name,a=this._componentsMap.get(t);if(!a||!a.length)return[];var o;return n==null?o=r==null?i==null?ie(a,function(e){return!!e}):Zg(`name`,i,a):Zg(`id`,r,a):(o=[],V(Po(n),function(e){a[e]&&o.push(a[e])})),Qg(o,e)},t.prototype.findComponents=function(e){var t=e.query,n=e.mainType,r=i(t);return a(Qg(r?this.queryComponents(r):ie(this._componentsMap.get(n),function(e){return!!e}),e));function i(e){var t=n+`Index`,r=n+`Id`,i=n+`Name`;return e&&(e[t]!=null||e[r]!=null||e[i]!=null)?{mainType:n,index:e[t],id:e[r],name:e[i]}:null}function a(t){return e.filter?ie(t,e.filter):t}},t.prototype.eachComponent=function(e,t,n){var r=this._componentsMap;if(ue(e)){var i=t,a=e;r.each(function(e,t){for(var n=0;e&&n<e.length;n++){var r=e[n];r&&a.call(i,t,r,r.componentIndex)}})}else for(var o=W(e)?r.get(e):pe(e)?this.findComponents(e):null,s=0;o&&s<o.length;s++){var c=o[s];c&&t.call(n,c,c.componentIndex)}},t.prototype.getSeriesByName=function(e){var t=Jo(e,null);return ie(this._componentsMap.get(`series`),function(e){return!!e&&t!=null&&e.name===t})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get(`series`)[e]},t.prototype.getSeriesByType=function(e){return ie(this._componentsMap.get(`series`),function(t){return!!t&&t.subType===e})},t.prototype.getSeries=function(){return ie(this._componentsMap.get(`series`),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get(`series`)},t.prototype.eachSeries=function(e,t){Wg(this),V(this._seriesIndices,function(n){var r=this._componentsMap.get(`series`)[n];e.call(t,r,n)},this)},t.prototype.eachRawSeries=function(e,t){V(this._componentsMap.get(`series`),function(n){n&&e.call(t,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,t,n){Wg(this),V(this._seriesIndices,function(r){var i=this._componentsMap.get(`series`)[r];i.subType===e&&t.call(n,i,r)},this)},t.prototype.eachRawSeriesByType=function(e,t,n){return V(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return Wg(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){Wg(this);var n=[];V(this._seriesIndices,function(r){var i=this._componentsMap.get(`series`)[r];e.call(t,i,r)&&n.push(r)},this),this._seriesIndices=n,this._seriesIndicesMap=Ne(n)},t.prototype.restoreData=function(e){Ug(this);var t=this._componentsMap,n=[];t.each(function(e,t){_g.hasClass(t)&&n.push(t)}),_g.topologicalTravel(n,_g.getAllClassMainTypes(),function(n){V(t.get(n),function(t){t&&(n!==`series`||!Yg(t,e))&&t.restoreData()})})},t.internalField=function(){Ug=function(e){var t=e._seriesIndices=[];V(e._componentsMap.get(`series`),function(e){e&&t.push(e.componentIndex)}),e._seriesIndicesMap=Ne(t)},Wg=function(e){},Gg=function(e,t){e.option={},e.option[Kg]=qg,e._componentsMap=Ne({series:[]}),e._componentsCount=Ne();var n=t.aria;pe(n)&&n.enabled==null&&(n.enabled=!0),Xg(t,e._theme.option),I(t,Eg,!1),e._mergeOption(t,null)}}(),t}(Am);function Yg(e,t){if(t){var n=t.seriesIndex,r=t.seriesId,i=t.seriesName;return n!=null&&e.componentIndex!==n||r!=null&&e.id!==r||i!=null&&e.name!==i}}function Xg(e,t){var n=e.color&&!e.colorLayer;V(t,function(t,r){r===`colorLayer`&&n||r===`color`&&e.color||_g.hasClass(r)||(typeof t==`object`?e[r]=e[r]?I(e[r],t,!1):F(t):e[r]??(e[r]=t))})}function Zg(e,t,n){if(U(t)){var r=Ne();return V(t,function(e){e!=null&&Jo(e,null)!=null&&r.set(e,!0)}),ie(n,function(t){return t&&r.get(t[e])})}var i=Jo(t,null);return ie(n,function(t){return t&&i!=null&&t[e]===i})}function Qg(e,t){return t.hasOwnProperty(`subType`)?ie(e,function(e){return e&&e.subType===t.subType}):e}function $g(e){var t=Ne();return e&&V(Po(e.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}te(Jg,zg);var e_=/^(min|max)?(.+)$/,t_=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(V(Po(e.series),function(e){e&&e.data&&he(e.data)&&De(e.data)}),V(Po(e.dataset),function(e){e&&e.source&&he(e.source)&&De(e.source)})),e=F(e);var r=this._optionBackup,i=n_(e,t,!r);this._newBaseOption=i.baseOption,r?(i.timelineOptions.length&&(r.timelineOptions=i.timelineOptions),i.mediaList.length&&(r.mediaList=i.mediaList),i.mediaDefault&&(r.mediaDefault=i.mediaDefault)):this._optionBackup=i},e.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],F(e?t.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var r=e.getComponent(`timeline`);r&&(t=F(n[r.getCurrentIndex()]))}return t},e.prototype.getMediaOption=function(e){var t=this._api.getWidth(),n=this._api.getHeight(),r=this._mediaList,i=this._mediaDefault,a=[],o=[];if(!r.length&&!i)return o;for(var s=0,c=r.length;s<c;s++)r_(r[s].query,t,n)&&a.push(s);return!a.length&&i&&(a=[-1]),a.length&&!a_(a,this._currentMediaIndices)&&(o=H(a,function(e){return F(e===-1?i.option:r[e].option)})),this._currentMediaIndices=a,o},e}();function n_(e,t,n){var r=[],i,a,o=e.baseOption,s=e.timeline,c=e.options,l=e.media,u=!!e.media,d=!!(c||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((d||u)&&(e.options=e.media=null),a=e),u&&U(l)&&V(l,function(e){e&&e.option&&(e.query?r.push(e):i||=e)}),f(a),V(c,function(e){return f(e)}),V(r,function(e){return f(e.option)});function f(e){V(t,function(t){t(e,n)})}return{baseOption:a,timelineOptions:c||[],mediaDefault:i,mediaList:r}}function r_(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return V(e,function(e,t){var n=t.match(e_);if(!(!n||!n[1]||!n[2])){var a=n[1];i_(r[n[2].toLowerCase()],e,a)||(i=!1)}}),i}function i_(e,t,n){return n===`min`?e>=t:n===`max`?e<=t:e===t}function a_(e,t){return e.join(`,`)===t.join(`,`)}var o_=V,s_=pe,c_=[`areaStyle`,`lineStyle`,`nodeStyle`,`linkStyle`,`chordStyle`,`label`,`labelLine`];function l_(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=c_.length;n<r;n++){var i=c_[n],a=t.normal,o=t.emphasis;a&&a[i]&&(e[i]=e[i]||{},e[i].normal?I(e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&(e[i]=e[i]||{},e[i].emphasis?I(e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function u_(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var r=e[t].normal,i=e[t].emphasis;r&&(n?(e[t].normal=e[t].emphasis=null,z(e[t],r)):e[t]=r),i&&(e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function d_(e){u_(e,`itemStyle`),u_(e,`lineStyle`),u_(e,`areaStyle`),u_(e,`label`),u_(e,`labelLine`),u_(e,`upperLabel`),u_(e,`edgeLabel`)}function f_(e,t){var n=s_(e)&&e[t],r=s_(n)&&n.textStyle;if(r)for(var i=0,a=Io.length;i<a;i++){var o=Io[i];r.hasOwnProperty(o)&&(n[o]=r[o])}}function p_(e){e&&(d_(e),f_(e,`label`),e.emphasis&&f_(e.emphasis,`label`))}function m_(e){if(s_(e)){l_(e),d_(e),f_(e,`label`),f_(e,`upperLabel`),f_(e,`edgeLabel`),e.emphasis&&(f_(e.emphasis,`label`),f_(e.emphasis,`upperLabel`),f_(e.emphasis,`edgeLabel`));var t=e.markPoint;t&&(l_(t),p_(t));var n=e.markLine;n&&(l_(n),p_(n));var r=e.markArea;r&&p_(r);var i=e.data;if(e.type===`graph`){i||=e.nodes;var a=e.links||e.edges;if(a&&!he(a))for(var o=0;o<a.length;o++)p_(a[o]);V(e.categories,function(e){d_(e)})}if(i&&!he(i))for(var o=0;o<i.length;o++)p_(i[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)p_(s[o]);if(n=e.markLine,n&&n.data)for(var c=n.data,o=0;o<c.length;o++)U(c[o])?(p_(c[o][0]),p_(c[o][1])):p_(c[o]);e.type===`gauge`?(f_(e,`axisLabel`),f_(e,`title`),f_(e,`detail`)):e.type===`treemap`?(u_(e.breadcrumb,`itemStyle`),V(e.levels,function(e){d_(e)})):e.type===`tree`&&d_(e.leaves)}}function h_(e){return U(e)?e:e?[e]:[]}function g_(e){return(U(e)?e[0]:e)||{}}function __(e,t){o_(h_(e.series),function(e){s_(e)&&m_(e)});var n=[`xAxis`,`yAxis`,`radiusAxis`,`angleAxis`,`singleAxis`,`parallelAxis`,`radar`];t&&n.push(`valueAxis`,`categoryAxis`,`logAxis`,`timeAxis`),o_(n,function(t){o_(h_(e[t]),function(e){e&&(f_(e,`axisLabel`),f_(e.axisPointer,`label`))})}),o_(h_(e.parallel),function(e){var t=e&&e.parallelAxisDefault;f_(t,`axisLabel`),f_(t&&t.axisPointer,`label`)}),o_(h_(e.calendar),function(e){u_(e,`itemStyle`),f_(e,`dayLabel`),f_(e,`monthLabel`),f_(e,`yearLabel`)}),o_(h_(e.radar),function(e){f_(e,`name`),e.name&&e.axisName==null&&(e.axisName=e.name,delete e.name),e.nameGap!=null&&e.axisNameGap==null&&(e.axisNameGap=e.nameGap,delete e.nameGap)}),o_(h_(e.geo),function(e){s_(e)&&(p_(e),o_(h_(e.regions),function(e){p_(e)}))}),o_(h_(e.timeline),function(e){p_(e),u_(e,`label`),u_(e,`itemStyle`),u_(e,`controlStyle`,!0);var t=e.data;U(t)&&V(t,function(e){pe(e)&&(u_(e,`label`),u_(e,`itemStyle`))})}),o_(h_(e.toolbox),function(e){u_(e,`iconStyle`),o_(e.feature,function(e){u_(e,`iconStyle`)})}),f_(g_(e.axisPointer),`label`),f_(g_(e.tooltip).axisPointer,`label`)}function v_(e,t){for(var n=t.split(`,`),r=e,i=0;i<n.length&&(r&&=r[n[i]],r!=null);i++);return r}function y_(e,t,n,r){for(var i=t.split(`,`),a=e,o,s=0;s<i.length-1;s++)o=i[s],a[o]??(a[o]={}),a=a[o];(r||a[i[s]]==null)&&(a[i[s]]=n)}function b_(e){e&&V(x_,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var x_=[[`x`,`left`],[`y`,`top`],[`x2`,`right`],[`y2`,`bottom`]],S_=[`grid`,`geo`,`parallel`,`legend`,`toolbox`,`title`,`visualMap`,`dataZoom`,`timeline`],C_=[[`borderRadius`,`barBorderRadius`],[`borderColor`,`barBorderColor`],[`borderWidth`,`barBorderWidth`]];function w_(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<C_.length;n++){var r=C_[n][1],i=C_[n][0];t[r]!=null&&(t[i]=t[r])}}function T_(e){e&&e.alignTo===`edge`&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function E_(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function D_(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus??(e.emphasis.focus=`adjacency`))}function O_(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&O_(e[n].children,t)}function k_(e,t){__(e,t),e.series=Po(e.series),V(e.series,function(e){if(pe(e)){var t=e.type;if(t===`line`)e.clipOverflow!=null&&(e.clip=e.clipOverflow);else if(t===`pie`||t===`gauge`){e.clockWise!=null&&(e.clockwise=e.clockWise),T_(e.label);var n=e.data;if(n&&!he(n))for(var r=0;r<n.length;r++)T_(n[r]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(t===`gauge`){var i=v_(e,`pointer.color`);i!=null&&y_(e,`itemStyle.color`,i)}else if(t===`bar`){w_(e),w_(e.backgroundStyle),w_(e.emphasis);var n=e.data;if(n&&!he(n))for(var r=0;r<n.length;r++)typeof n[r]==`object`&&(w_(n[r]),w_(n[r]&&n[r].emphasis))}else if(t===`sunburst`){var a=e.highlightPolicy;a&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=a)),E_(e),O_(e.data,E_)}else t===`graph`||t===`sankey`?D_(e):t===`map`&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&z(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),b_(e)}}),e.dataRange&&(e.visualMap=e.dataRange),V(S_,function(t){var n=e[t];n&&(U(n)||(n=[n]),V(n,function(e){b_(e)}))})}var A_=Os(j_);function j_(e){var t=Ne();e.eachSeries(function(e){var n=e.get(`stack`);if(n){var r=t.get(n)||t.set(n,[]),i=e.getData(),a={stackResultDimension:i.getCalculationInfo(`stackResultDimension`),stackedOverDimension:i.getCalculationInfo(`stackedOverDimension`),stackedDimension:i.getCalculationInfo(`stackedDimension`),stackedByDimension:i.getCalculationInfo(`stackedByDimension`),isStackedByIndex:i.getCalculationInfo(`isStackedByIndex`),data:i,seriesModel:e};if(!a.stackedDimension||!(a.isStackedByIndex||a.stackedByDimension))return;r.push(a)}}),t.each(function(e){e.length!==0&&((e[0].seriesModel.get(`stackOrder`)||`seriesAsc`)===`seriesDesc`&&e.reverse(),V(e,function(t,n){t.data.setCalculationInfo(`stackedOnSeries`,n>0?e[n-1].seriesModel:null)}),M_(e))})}function M_(e){V(e,function(t,n){var r=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,c=t.seriesModel.get(`stackStrategy`)||`samesign`;o.modify(a,function(a,l,u){var d=o.get(t.stackedDimension,u);if(isNaN(d))return i;var f,p;s?p=o.getRawIndex(u):f=o.get(t.stackedByDimension,u);for(var m=NaN,h=n-1;h>=0;h--){var g=e[h];if(s||(p=g.data.rawIndexOf(g.stackedByDimension,f)),p>=0){var _=g.data.getByRawIndex(g.stackResultDimension,p);if(c===`all`||c===`positive`&&_>0||c===`negative`&&_<0||c===`samesign`&&d>=0&&_>0||c===`samesign`&&d<=0&&_<0){d=lo(d,_),m=_;break}}}return r[0]=d,r[1]=m,r})})}var N_=function(){function e(e){this.data=e.data||(e.sourceFormat===`keyedColumns`?{}:[]),this.sourceFormat=e.sourceFormat||`unknown`,this.seriesLayoutBy=e.seriesLayoutBy||`column`,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;n<t.length;n++){var r=t[n];r.type==null&&Pg(this,n)===Dg.Must&&(r.type=`ordinal`)}}return e}();function P_(e){return e instanceof N_}function F_(e,t,n){n||=R_(e);var r=t.seriesLayoutBy,i=z_(e,n,r,t.sourceHeader,t.dimensions);return new N_({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:F(t)})}function I_(e){return new N_({data:e,sourceFormat:he(e)?_u:pu})}function L_(e){return new N_({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:F(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function R_(e){var t=vu;if(he(e))t=_u;else if(U(e)){e.length===0&&(t=mu);for(var n=0,r=e.length;n<r;n++){var i=e[n];if(i!=null){if(U(i)||he(i)){t=mu;break}if(pe(i)){t=hu;break}}}}else if(pe(e)){for(var a in e)if(K(e,a)&&ne(e[a])){t=gu;break}}return t}function z_(e,t,n,r,i){var a,o;if(!e)return{dimensionsDefine:V_(i),startIndex:o,dimensionsDetectedCount:a};if(t===`arrayRows`){var s=e;r===`auto`||r==null?H_(function(e){e!=null&&e!==`-`&&(W(e)?o??=1:o=0)},n,s,10):o=fe(r)?r:+!!r,!i&&o===1&&(i=[],H_(function(e,t){i[t]=e==null?``:e+``},n,s,1/0)),a=i?i.length:n===`row`?s.length:s[0]?s[0].length:null}else if(t===`objectRows`)i||=B_(e);else if(t===`keyedColumns`)i||(i=[],V(e,function(e,t){i.push(t)}));else if(t===`original`){var c=Lo(e[0]);a=U(c)&&c.length||1}return{startIndex:o,dimensionsDefine:V_(i),dimensionsDetectedCount:a}}function B_(e){for(var t=0,n;t<e.length&&!(n=e[t++]););if(n)return oe(n)}function V_(e){if(e){var t=Ne();return H(e,function(e,n){e=pe(e)?e:{name:e};var r={name:e.name,displayName:e.displayName,type:e.type};if(r.name==null)return r;r.name+=``,r.displayName??=r.name;var i=t.get(r.name);return i?r.name+=`-`+i.count++:t.set(r.name,{count:1}),r})}}function H_(e,t,n,r){if(t===`row`)for(var i=0;i<n.length&&i<r;i++)e(n[i]?n[i][0]:null,i);else for(var a=n[0]||[],i=0;i<a.length&&i<r;i++)e(a[i],i)}function U_(e){var t=e.sourceFormat;return t===`objectRows`||t===`keyedColumns`}var W_,G_,K_,q_,J_,Y_,X_=function(){function e(e,t){var n=P_(e)?e:I_(e);this._source=n;var r=this._data=n.data,i=n.sourceFormat;n.seriesLayoutBy,i===`typedArray`&&(this._offset=0,this._dimSize=t,this._data=r),Y_(this,r,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(e,t){},e.prototype.appendData=function(e){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var e;Y_=function(e,i,a){var o=a.sourceFormat,s=a.seriesLayoutBy,c=a.startIndex,l=a.dimensionsDefine,u=J_[sv(o,s)];L(e,u),o===`typedArray`?(e.getItem=t,e.count=r,e.fillStorage=n):(e.getItem=ce(ev(o,s),null,i,c,l),e.count=ce(rv(o,s),null,i,c,l))};var t=function(e,t){e-=this._offset,t||=[];for(var n=this._data,r=this._dimSize,i=r*e,a=0;a<r;a++)t[a]=n[i+a];return t},n=function(e,t,n,r){for(var i=this._data,a=this._dimSize,o=0;o<a;o++){for(var s=r[o],c=s[0]==null?1/0:s[0],l=s[1]==null?-1/0:s[1],u=t-e,d=n[o],f=0;f<u;f++){var p=i[f*a+o];d[e+f]=p,p<c&&(c=p),p>l&&(l=p)}s[0]=c,s[1]=l}},r=function(){return this._data?this._data.length/this._dimSize:0};J_=(e={},e[mu+`_`+yu]={pure:!0,appendData:i},e[mu+`_row`]={pure:!0,appendData:function(){throw Error(`Do not support appendData when set seriesLayoutBy: "row".`)}},e[hu]={pure:!0,appendData:i},e[gu]={pure:!0,appendData:function(e){var t=this._data;V(e,function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])})}},e[pu]={appendData:i},e[_u]={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}}(),e}(),Z_=function(e){U(e)||ko(`series.data or dataset.source must be an array.`)};W_={},W_[mu+`_`+yu]=Z_,W_[mu+`_row`]=Z_,W_[hu]=Z_,W_[gu]=function(e,t){for(var n=0;n<t.length;n++)t[n].name??ko(`dimension name must not be null/undefined.`)},W_[pu]=Z_;var Q_=function(e,t,n,r){return e[r]},$_=(G_={},G_[mu+`_`+yu]=function(e,t,n,r){return e[r+t]},G_[mu+`_row`]=function(e,t,n,r,i){r+=t;for(var a=i||[],o=e,s=0;s<o.length;s++){var c=o[s];a[s]=c?c[r]:null}return a},G_[hu]=Q_,G_[gu]=function(e,t,n,r,i){for(var a=i||[],o=0;o<n.length;o++){var s=n[o].name,c=s==null?null:e[s];a[o]=c?c[r]:null}return a},G_[pu]=Q_,G_);function ev(e,t){return $_[sv(e,t)]}var tv=function(e,t,n){return e.length},nv=(K_={},K_[mu+`_`+yu]=function(e,t,n){return Math.max(0,e.length-t)},K_[mu+`_row`]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},K_[hu]=tv,K_[gu]=function(e,t,n){var r=n[0].name,i=r==null?null:e[r];return i?i.length:0},K_[pu]=tv,K_);function rv(e,t){return nv[sv(e,t)]}var iv=function(e,t,n){return e[t]},av=(q_={},q_[mu]=iv,q_[hu]=function(e,t,n){return e[n]},q_[gu]=iv,q_[pu]=function(e,t,n){var r=Lo(e);return r instanceof Array?r[t]:r},q_[_u]=iv,q_);function ov(e){return av[e]}function sv(e,t){return e===`arrayRows`?e+`_`+t:e}function cv(e,t,n){if(e){var r=e.getRawDataItem(t);if(r!=null){var i=e.getStore(),a=i.getSource().sourceFormat;if(n!=null){var o=e.getDimensionIndex(n),s=i.getDimensionProperty(o);return ov(a)(r,o,s)}var c=r;return a===`original`&&(c=Lo(r)),c}}}var lv=/\{@(.+?)\}/g,uv=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),r=this.getRawValue(e,t),i=n.getRawIndex(e),a=n.getName(e),o=n.getRawDataItem(e),s=n.getItemVisual(e,`style`),c=s&&s[n.getItemVisual(e,`drawType`)||`fill`],l=s&&s.stroke,u=this.mainType,d=u===`series`,f=n.userOutput&&n.userOutput.get();return{componentType:u,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:a,dataIndex:i,data:o,dataType:t,value:r,color:c,borderColor:l,dimensionNames:f?f.fullDimensions:null,encode:f?f.encode:null,$vars:[`seriesName`,`name`,`value`]}},e.prototype.getFormattedLabel=function(e,t,n,r,i,a){t||=`normal`;var o=this.getData(n),s=this.getDataParams(e,n);if(a&&(s.value=a.interpolatedValue),r!=null&&U(s.value)&&(s.value=s.value[r]),i||=o.getItemModel(e).get(t===`normal`?[`label`,`formatter`]:[t,`label`,`formatter`]),ue(i))return s.status=t,s.dimensionIndex=r,i(s);if(W(i))return Vh(i,s).replace(lv,function(t,n){var r=n.length,i=n;i.charAt(0)===`[`&&i.charAt(r-1)===`]`&&(i=+i.slice(1,r-1));var s=cv(o,e,i);if(a&&U(a.interpolatedValue)){var c=o.getDimensionIndex(i);c>=0&&(s=a.interpolatedValue[c])}return s==null?``:s+``})},e.prototype.getRawValue=function(e,t){return cv(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function dv(e){var t,n;return pe(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function fv(e){return new pv(e)}var pv=function(){function e(e){e||={},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t=this._upstream,n=e&&e.skip;if(this._dirty&&t){var r=this.context;r.data=r.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var a=l(this._modBy),o=this._modDataCount||0,s=l(e&&e.modBy),c=e&&e.modDataCount||0;(a!==s||o!==c)&&(i=`reset`);function l(e){return!(e>=1)&&(e=1),e}var u;(this._dirty||i===`reset`)&&(this._dirty=!1,u=this._doReset(n)),this._modBy=s,this._modDataCount=c;var d=e&&e.step;if(this._dueEnd=t?t._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,p=Math.min(d==null?1/0:this._dueIndex+d,this._dueEnd);if(!n&&(u||f<p)){var m=this._progress;if(U(m))for(var h=0;h<m.length;h++)this._doProgress(m[h],f,p,s,c);else this._doProgress(m,f,p,s,c)}this._dueIndex=p;var g=this._settedOutputEnd==null?p:this._settedOutputEnd;this._outputDueEnd=g}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd==null?this._dueEnd:this._settedOutputEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(e,t,n,r,i){mv.reset(t,n,r,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:mv.next},this.context)},e.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var t,n;!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(n=t.forceFirstProgress,t=t.progress),U(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},e.prototype.dispose=function(){this._disposed||=(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},e}(),mv=function(){var e,t,n,r,i,a={reset:function(c,l,u,d){t=c,e=l,n=u,r=d,i=Math.ceil(r/n),a.next=n>1&&r>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var a=t%i*n+Math.ceil(t/i),o=t>=e?null:a<r?a:t;return t++,o}}();function hv(e,t){var n=t&&t.type;return n===`ordinal`?e:(n===`time`&&!fe(e)&&e!=null&&e!==`-`&&(e=+ho(e)),e==null||e===``?NaN:Number(e))}Ne({number:function(e){return parseFloat(e)},time:function(e){return+ho(e)},trim:function(e){return W(e)?Te(e):e}});var gv={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}};(function(){function e(e,t){fe(t)||Ao(``),this._opFn=gv[e],this._rvalFloat=yo(t)}return e.prototype.evaluate=function(e){return fe(e)?this._opFn(e,this._rvalFloat):this._opFn(yo(e),this._rvalFloat)},e})();var _v=function(){function e(e,t){var n=e===`desc`;this._resultLT=n?1:-1,t??=n?`min`:`max`,this._incomparable=t===`min`?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=fe(e)?e:yo(e),r=fe(t)?t:yo(t),i=isNaN(n),a=isNaN(r);if(i&&(n=this._incomparable),a&&(r=this._incomparable),i&&a){var o=W(e),s=W(t);o&&(n=s?e:0),s&&(r=o?t:0)}return n<r?this._resultLT:n>r?-this._resultLT:0},e}();(function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=yo(t)}return e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n!==this._rvalTypeof&&(n===`number`||this._rvalTypeof===`number`)&&(t=yo(e)===this._rvalFloat)}return this._isEQ?t:!t},e})();function vv(e){var t=``,n=-1/0,r=-1/0,i=1/0,a=1/0;return e&&(e.g!=null&&(t+=`G`+e.g,n=e.g),e.ge!=null&&(t+=`GE`+e.ge,r=e.ge),e.l!=null&&(t+=`L`+e.l,i=e.l),e.le!=null&&(t+=`LE`+e.le,a=e.le)),{key:t,g:n,ge:r,l:i,le:a}}function yv(e,t){return t>e.g&&t>=e.ge&&t<e.l&&t<=e.le}var bv=function(){function e(){}return e.prototype.getRawData=function(){throw Error(`not supported`)},e.prototype.getRawDataItem=function(e){throw Error(`not supported`)},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(e){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(e,t){},e.prototype.retrieveValueFromItem=function(e,t){},e.prototype.convertValue=function(e,t){return hv(e,t)},e}();function xv(e,t){var n=new bv,r=e.data,i=n.sourceFormat=e.sourceFormat,a=e.startIndex;e.seriesLayoutBy!==`column`&&Ao(``);var o=[],s={},c=e.dimensionsDefine;if(c)V(c,function(e,t){var n=e.name,r={index:t,name:n,displayName:e.displayName};o.push(r),n!=null&&(K(s,n)&&Ao(``),s[n]=r)});else for(var l=0;l<e.dimensionsDetectedCount;l++)o.push({index:l});var u=ev(i,yu);t.__isBuiltIn&&(n.getRawDataItem=function(e){return u(r,a,o,e)},n.getRawData=ce(Sv,null,e)),n.cloneRawData=ce(Cv,null,e),n.count=ce(rv(i,yu),null,r,a,o);var d=ov(i);n.retrieveValue=function(e,t){return f(u(r,a,o,e),t)};var f=n.retrieveValueFromItem=function(e,t){if(e!=null){var n=o[t];if(n)return d(e,t,n.name)}};return n.getDimensionInfo=ce(wv,null,o,s),n.cloneAllDimensionInfo=ce(Tv,null,o),n}function Sv(e){var t=e.sourceFormat;return Av(t)||Ao(``),e.data}function Cv(e){var t=e.sourceFormat,n=e.data;if(Av(t)||Ao(``),t===`arrayRows`){for(var r=[],i=0,a=n.length;i<a;i++)r.push(n[i].slice());return r}if(t===`objectRows`){for(var r=[],i=0,a=n.length;i<a;i++)r.push(L({},n[i]));return r}}function wv(e,t,n){if(n!=null){if(fe(n)||!isNaN(n)&&!K(t,n))return e[n];if(K(t,n))return t[n]}}function Tv(e){return F(e)}var Ev=Ne();function Dv(e){e=F(e);var t=e.type,n=``;t||Ao(n);var r=t.split(`:`);r.length!==2&&Ao(n);var i=!1;r[0]===`echarts`&&(t=r[1],i=!0),e.__isBuiltIn=i,Ev.set(t,e)}function Ov(e,t,n){var r=Po(e),i=r.length;i||Ao(``);for(var a=0,o=i;a<o;a++){var s=r[a];t=kv(s,t,n,i===1?null:a),a!==o-1&&(t.length=Math.max(t.length,1))}return t}function kv(e,t,n,r){var i=``;t.length||Ao(i),pe(e)||Ao(i);var a=e.type,o=Ev.get(a);o||Ao(i);var s=H(t,function(e){return xv(e,o)});return H(Po(o.transform({upstream:s[0],upstreamList:s,config:F(e.config)})),function(e,n){var r=``;pe(e)||Ao(r),e.data||Ao(r),Av(R_(e.data))||Ao(r);var i,a=t[0];if(a&&n===0&&!e.dimensions){var o=a.startIndex;o&&(e.data=a.data.slice(0,o).concat(e.data)),i={seriesLayoutBy:yu,sourceHeader:o,dimensions:a.metaRawOption.dimensions}}else i={seriesLayoutBy:yu,sourceHeader:0,dimensions:e.dimensions};return F_(e.data,i,null)})}function Av(e){return e===`arrayRows`||e===`objectRows`}var jv=typeof Uint32Array>`u`?Array:Uint32Array,Mv=typeof Uint16Array>`u`?Array:Uint16Array,Nv=typeof Int32Array>`u`?Array:Int32Array,Pv=typeof Float64Array>`u`?Array:Float64Array,Fv={float:Pv,int:Nv,ordinal:Array,number:Array,time:Pv},Iv;function Lv(e){return e>65535?jv:Mv}function Rv(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function zv(e,t,n,r,i){var a=Fv[n||`float`];if(i){var o=e[t],s=o&&o.length;if(s!==r){for(var c=new a(r),l=0;l<s;l++)c[l]=o[l];e[t]=c}}else e[t]=new a(r)}var Bv=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Ne()}return e.prototype.initData=function(e,t,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=e.getSource(),i=this.defaultDimValueGetter=Iv[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],U_(r),this._dimensions=H(t,function(e){return{type:e.type,property:e.property}}),this._initDataFromProvider(0,e.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(e,t){var n=this._calcDimNameToIdx,r=this._dimensions,i=n.get(e);if(i!=null){if(r[i].type===t)return i}else i=r.length;return r[i]={type:t},n.set(e,i),this._chunks[i]=new Fv[t||`float`](this._rawCount),this._rawExtent[i]=ds(),i},e.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],r=this._dimensions[e],i=this._rawExtent,a=r.ordinalOffset||0,o=n.length;a===0&&(i[e]=ds());for(var s=i[e],c=a;c<o;c++){var l=n[c]=t.parseAndCollect(n[c]);isNaN(l)||(s[0]=Math.min(l,s[0]),s[1]=Math.max(l,s[1]))}r.ordinalMeta=t,r.ordinalOffset=o,r.type=`ordinal`},e.prototype.getOrdinalMeta=function(e){return this._dimensions[e].ordinalMeta},e.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},e.prototype.appendData=function(e){var t=this._provider,n=this.count();t.appendData(e);var r=t.count();return t.persistent||(r+=n),n<r&&this._initDataFromProvider(n,r,!0),[n,r]},e.prototype.appendValues=function(e,t){for(var n=this._chunks,r=this._dimensions,i=r.length,a=this._rawExtent,o=this.count(),s=o+Math.max(e.length,t||0),c=0;c<i;c++){var l=r[c];zv(n,c,l.type,s,!0)}for(var u=[],d=o;d<s;d++)for(var f=d-o,p=0;p<i;p++){var l=r[p],m=Iv.arrayRows.call(this,e[f]||u,l.property,f,p);n[p][d]=m;var h=a[p];m<h[0]&&(h[0]=m),m>h[1]&&(h[1]=m)}return this._rawCount=this._count=s,{start:o,end:s}},e.prototype._initDataFromProvider=function(e,t,n){for(var r=this._provider,i=this._chunks,a=this._dimensions,o=a.length,s=this._rawExtent,c=H(a,function(e){return e.property}),l=0;l<o;l++){var u=a[l];s[l]||(s[l]=ds()),zv(i,l,u.type,t,n)}if(r.fillStorage)r.fillStorage(e,t,i,s);else for(var d=[],f=e;f<t;f++){d=r.getItem(f,d);for(var p=0;p<o;p++){var m=i[p],h=this._dimValueGetter(d,c[p],f,p);m[f]=h;var g=s[p];h<g[0]&&(g[0]=h),h>g[1]&&(g[1]=h)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},e.prototype.getValues=function(e,t){var n=[],r=[];if(t==null){t=e,e=[];for(var i=0;i<this._dimensions.length;i++)r.push(i)}else r=e;for(var i=0,a=r.length;i<a;i++)n.push(this.get(r[i],t));return n},e.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},e.prototype.getSum=function(e){var t=this._chunks[e],n=0;if(t)for(var r=0,i=this.count();r<i;r++){var a=this.get(e,r);isNaN(a)||(n+=a)}return n},e.prototype.getMedian=function(e){var t=[];this.each([e],function(e){isNaN(e)||t.push(e)}),io(t);var n=this.count();return n===0?0:n%2==1?t[(n-1)/2]:(t[n/2]+t[n/2-1])/2},e.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(n!=null&&n<this._count&&n===e)return e;for(var r=0,i=this._count-1;r<=i;){var a=(r+i)/2|0;if(t[a]<e)r=a+1;else if(t[a]>e)i=a-1;else return a}return-1},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,r=this._count;if(n===Array){e=new n(r);for(var i=0;i<r;i++)e[i]=t[i]}else e=new n(t.buffer,0,r)}else{var n=Lv(this._rawCount);e=new n(this.count());for(var i=0;i<e.length;i++)e[i]=i}return e},e.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),r=n.count(),i=new(Lv(n._rawCount))(r),a=[],o=e.length,s=0,c=e[0],l=n._chunks,u=0;u<r;u++){var d=void 0,f=n.getRawIndex(u);if(o===0)d=t(u);else if(o===1){var p=l[c][f];d=t(p,u)}else{for(var m=0;m<o;m++)a[m]=l[e[m]][f];a[m]=u,d=t.apply(null,a)}d&&(i[s++]=f)}return s<r&&(n._indices=i),n._count=s,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var r=oe(e),i=r.length;if(!i)return this;var a=t.count(),o=new(Lv(t._rawCount))(a),s=0,c=r[0],l=e[c][0],u=e[c][1],d=t._chunks,f=!1;if(!t._indices){var p=0;if(i===1){for(var m=d[r[0]],h=0;h<n;h++){var g=m[h];(g>=l&&g<=u||isNaN(g))&&(o[s++]=p),p++}f=!0}else if(i===2){for(var m=d[r[0]],_=d[r[1]],v=e[r[1]][0],y=e[r[1]][1],h=0;h<n;h++){var g=m[h],b=_[h];(g>=l&&g<=u||isNaN(g))&&(b>=v&&b<=y||isNaN(b))&&(o[s++]=p),p++}f=!0}}if(!f){if(i===1)for(var h=0;h<a;h++){var x=t.getRawIndex(h),g=d[r[0]][x];(g>=l&&g<=u||isNaN(g))&&(o[s++]=x)}else for(var h=0;h<a;h++){for(var S=!0,x=t.getRawIndex(h),C=0;C<i;C++){var w=r[C],g=d[w][x];(g<e[w][0]||g>e[w][1])&&(S=!1)}S&&(o[s++]=t.getRawIndex(h))}}return s<a&&(t._indices=o),t._count=s,t._extent=[],t._updateGetRawIdx(),t},e.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},e.prototype.modify=function(e,t){this._updateDims(this,e,t)},e.prototype._updateDims=function(e,t,n){for(var r=e._chunks,i=[],a=t.length,o=e.count(),s=[],c=e._rawExtent,l=0;l<t.length;l++)c[t[l]]=ds();for(var u=0;u<o;u++){for(var d=e.getRawIndex(u),f=0;f<a;f++)s[f]=r[t[f]][d];s[a]=u;var p=n&&n.apply(null,s);if(p!=null){typeof p!=`object`&&(i[0]=p,p=i);for(var l=0;l<p.length;l++){var m=t[l],h=p[l],g=c[m],_=r[m];_&&(_[d]=h),h<g[0]&&(g[0]=h),h>g[1]&&(g[1]=h)}}}},e.prototype.lttbDownSample=function(e,t){var n=this.clone([e],!0),r=n._chunks[e],i=this.count(),a=0,o=Math.floor(1/t),s=this.getRawIndex(0),c,l,u,d=new(Lv(this._rawCount))(Math.min((Math.ceil(i/o)+2)*2,i));d[a++]=s;for(var f=1;f<i-1;f+=o){for(var p=Math.min(f+o,i-1),m=Math.min(f+o*2,i),h=(m+p)/2,g=0,_=p;_<m;_++){var v=this.getRawIndex(_),y=r[v];isNaN(y)||(g+=y)}g/=m-p;var b=f,x=Math.min(f+o,i),S=f-1,C=r[s];c=-1,u=b;for(var w=-1,T=0,_=b;_<x;_++){var v=this.getRawIndex(_),y=r[v];if(isNaN(y)){T++,w<0&&(w=v);continue}l=Math.abs((S-h)*(y-C)-(S-_)*(g-C)),l>c&&(c=l,u=v)}T>0&&T<x-b&&(d[a++]=Math.min(w,u),u=Math.max(w,u)),d[a++]=u,s=u}return d[a++]=this.getRawIndex(i-1),n._count=a,n._indices=d,n.getRawIndex=this._getRawIdx,n},e.prototype.minmaxDownSample=function(e,t){for(var n=this.clone([e],!0),r=n._chunks,i=Math.floor(1/t),a=r[e],o=this.count(),s=new(Lv(this._rawCount))(Math.ceil(o/i)*2),c=0,l=0;l<o;l+=i){var u=l,d=a[this.getRawIndex(u)],f=l,p=a[this.getRawIndex(f)],m=i;l+i>o&&(m=o-l);for(var h=0;h<m;h++){var g=a[this.getRawIndex(l+h)];g<d&&(d=g,u=l+h),g>p&&(p=g,f=l+h)}var _=this.getRawIndex(u),v=this.getRawIndex(f);u<f?(s[c++]=_,s[c++]=v):(s[c++]=v,s[c++]=_)}return n._count=c,n._indices=s,n._updateGetRawIdx(),n},e.prototype.downSample=function(e,t,n,r){for(var i=this.clone([e],!0),a=i._chunks,o=[],s=Math.floor(1/t),c=a[e],l=this.count(),u=i._rawExtent[e]=ds(),d=new(Lv(this._rawCount))(Math.ceil(l/s)),f=0,p=0;p<l;p+=s){s>l-p&&(s=l-p,o.length=s);for(var m=0;m<s;m++){var h=this.getRawIndex(p+m);o[m]=c[h]}var g=n(o),_=this.getRawIndex(Math.min(p+r(o,g)||0,l-1));c[_]=g,g<u[0]&&(u[0]=g),g>u[1]&&(u[1]=g),d[f++]=_}return i._count=f,i._indices=d,i._updateGetRawIdx(),i},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,r=this._chunks,i=0,a=this.count();i<a;i++){var o=this.getRawIndex(i);switch(n){case 0:t(i);break;case 1:t(r[e[0]][o],i);break;case 2:t(r[e[0]][o],r[e[1]][o],i);break;default:for(var s=0,c=[];s<n;s++)c[s]=r[e[s]][o];c[s]=i,t.apply(null,c)}}},e.prototype.getDataExtent=function(e,t){var n=this._chunks[e],r=ds();if(!n)return r;var i=this.count();if(!this._indices&&!t)return this._rawExtent[e].slice();var a=this._extent,o=a[e]||(a[e]={}),s=vv(t),c=s.key,l=o[c];if(l)return l.slice();for(var u=r[0],d=r[1],f=0;f<i;f++){var p=n[this.getRawIndex(f)];(!t||yv(s,p))&&(p<u&&(u=p),p>d&&(d=p))}return o[c]=[u,d]},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],r=this._chunks,i=0;i<r.length;i++)n.push(r[i][t]);return n},e.prototype.clone=function(t,n){var r=new e,i=this._chunks,a=t&&re(t,function(e,t){return e[t]=!0,e},{});if(a)for(var o=0;o<i.length;o++)r._chunks[o]=a[o]?Rv(i[o]):i[o];else r._chunks=i;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},e.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=F(this._extent),e._rawExtent=F(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var n=this._indices.length;t=new e(n);for(var r=0;r<n;r++)t[r]=this._indices[r]}else t=new e(this._indices);return t}return null},e.prototype._getRawIdxIdentity=function(e){return e},e.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,r){return hv(e[r],this._dimensions[r])}Iv={arrayRows:e,objectRows:function(e,t,n,r){return hv(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(e.value==null?e:e.value);return hv(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}(),Vv=function(){function e(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+`_`+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),n=!!t.length,r,i;if(Hv(e)){var a=e,o=void 0,s=void 0,c=void 0;if(n){var l=t[0];l.prepareSource(),c=l.getSource(),o=c.data,s=c.sourceFormat,i=[l._getVersionSign()]}else o=a.get(`data`,!0),s=he(o)?_u:pu,i=[];var u=this._getSourceMetaRawOption()||{},d=c&&c.metaRawOption||{},f=G(u.seriesLayoutBy,d.seriesLayoutBy)||null,p=G(u.sourceHeader,d.sourceHeader),m=G(u.dimensions,d.dimensions);r=f!==d.seriesLayoutBy||!!p!=!!d.sourceHeader||m?[F_(o,{seriesLayoutBy:f,sourceHeader:p,dimensions:m},s)]:[]}else{var h=e;if(n){var g=this._applyTransform(t);r=g.sourceList,i=g.upstreamSignList}else r=[F_(h.get(`source`,!0),this._getSourceMetaRawOption(),null)],i=[]}this._setLocalSource(r,i)},e.prototype._applyTransform=function(e){var t=this._sourceHost,n=t.get(`transform`,!0),r=t.get(`fromTransformResult`,!0);r!=null&&e.length!==1&&Uv(``);var i,a=[],o=[];return V(e,function(e){e.prepareSource();var t=e.getSource(r||0);r!=null&&!t&&Uv(``),a.push(t),o.push(e._getVersionSign())}),n?i=Ov(n,a,{datasetIndex:t.componentIndex}):r!=null&&(i=[L_(a[0])]),{sourceList:i,upstreamSignList:o}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},e.prototype.getSource=function(e){e||=0;var t=this._sourceList[e];if(!t){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return t},e.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},e.prototype._innerGetDataStore=function(e,t,n){var r=0,i=this._storeList,a=i[r];a||=i[r]={};var o=a[n];if(!o){var s=this._getUpstreamSourceManagers()[0];Hv(this._sourceHost)&&s?o=s._innerGetDataStore(e,t,n):(o=new Bv,o.initData(new X_(t,e.length),e)),a[n]=o}return o},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Hv(e)){var t=Mg(e);return t?[t.getSourceManager()]:[]}return H(Ng(e),function(e){return e.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,n,r;if(Hv(e))t=e.get(`seriesLayoutBy`,!0),n=e.get(`sourceHeader`,!0),r=e.get(`dimensions`,!0);else if(!this._getUpstreamSourceManagers().length){var i=e;t=i.get(`seriesLayoutBy`,!0),n=i.get(`sourceHeader`,!0),r=i.get(`dimensions`,!0)}return{seriesLayoutBy:t,sourceHeader:n,dimensions:r}},e}();function Hv(e){return e.mainType===`series`}function Uv(e){throw Error(e)}var Wv=`line-height:1`;function Gv(e){var t=e.lineHeight;return t==null?Wv:`line-height:`+yt(t+``)+`px`}function Kv(e,t){var n=e.color||q.color.tertiary,r=e.fontSize||12,i=e.fontWeight||`400`,a=e.color||q.color.secondary,o=e.fontSize||14,s=e.fontWeight||`900`;return t===`html`?{nameStyle:`font-size:`+yt(r+``)+`px;color:`+yt(n)+`;font-weight:`+yt(i+``),valueStyle:`font-size:`+yt(o+``)+`px;color:`+yt(a)+`;font-weight:`+yt(s+``)}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var qv=[0,10,20,30],Jv=[``,`
9
+ `,`
10
+
11
+ `,`
12
+
13
+
14
+ `];function Yv(e,t){return t.type=e,t}function Xv(e){return e.type===`section`}function Zv(e){return Xv(e)?$v:ey}function Qv(e){if(Xv(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return V(e.blocks,function(e){var n=Qv(e);n>=t&&(t=n+ +(r&&(!n||Xv(e)&&!e.noHeader)))}),t}return 0}function $v(e,t,n,r){var i=t.noHeader,a=ny(Qv(t)),o=[],s=t.blocks||[];we(!s||U(s)),s||=[];var c=e.orderMode;if(t.sortBlocks&&c){s=s.slice();var l={valueAsc:`asc`,valueDesc:`desc`};if(K(l,c)){var u=new _v(l[c],null);s.sort(function(e,t){return u.evaluate(e.sortParam,t.sortParam)})}else c===`seriesDesc`&&s.reverse()}V(s,function(n,i){var s=t.valueFormatter,c=Zv(n)(s?L(L({},e),{valueFormatter:s}):e,n,i>0?a.html:0,r);c!=null&&o.push(c)});var d=e.renderMode===`richText`?o.join(a.richText):ry(r,o.join(``),i?n:a.html);if(i)return d;var f=Rh(t.header,`ordinal`,e.useUTC),p=Kv(r,e.renderMode).nameStyle,m=Gv(r);return e.renderMode===`richText`?oy(e,f,p)+a.richText+d:ry(r,`<div style="`+p+`;`+m+`;">`+yt(f)+`</div>`+d,n)}function ey(e,t,n,r){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,c=t.name,l=e.useUTC,u=t.valueFormatter||e.valueFormatter||function(e){return e=U(e)?e:[e],H(e,function(e,t){return Rh(e,U(p)?p[t]:p,l)})};if(!(a&&o)){var d=s?``:e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||q.color.secondary,i),f=a?``:Rh(c,`ordinal`,l),p=t.valueType,m=o?[]:u(t.value,t.rawDataIndex),h=!s||!a,g=!s&&a,_=Kv(r,i),v=_.nameStyle,y=_.valueStyle;return i===`richText`?(s?``:d)+(a?``:oy(e,f,v))+(o?``:sy(e,m,h,g,y)):ry(r,(s?``:d)+(a?``:iy(f,!s,v))+(o?``:ay(m,h,g,y)),n)}}function ty(e,t,n,r,i,a){if(e)return Zv(e)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter},e,0,a)}function ny(e){return{html:qv[e],richText:Jv[e]}}function ry(e,t,n){var r=`<div style="clear:both"></div>`,i=`margin: `+n+`px 0 0`,a=Gv(e);return`<div style="`+i+`;`+a+`;">`+t+r+`</div>`}function iy(e,t,n){var r=t?`margin-left:2px`:``;return`<span style="`+n+`;`+r+`">`+yt(e)+`</span>`}function ay(e,t,n,r){var i=t?`float:right;margin-left:`+(n?`10px`:`20px`):``;return e=U(e)?e:[e],`<span style="`+i+`;`+r+`">`+H(e,function(e){return yt(e)}).join(`&nbsp;&nbsp;`)+`</span>`}function oy(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function sy(e,t,n,r,i){var a=[i],o=r?10:20;return n&&a.push({padding:[0,0,0,o],align:`right`}),e.markupStyleCreator.wrapRichTextStyle(U(t)?t.join(` `):t,a)}function cy(e,t){var n=e.getData().getItemVisual(t,`style`)[e.visualDrawType];return Uh(n)}function ly(e,t){return e.get(`padding`)??(t===`richText`?[8,10]:10)}var uy=function(){function e(){this.richTextStyles={},this._nextStyleNameId=xo()}return e.prototype._generateStyleName=function(){return`__EC_aUTo_`+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var r=n===`richText`?this._generateStyleName():null,i=Hh({color:t,type:e,renderMode:n,markerId:r});return W(i)?i:(this.richTextStyles[r]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};U(t)?V(t,function(e){return L(n,e)}):L(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,`{`+r+`|`+e+`}`},e}();function dy(e){var t=e.series,n=e.dataIndex,r=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll(`defaultedTooltip`),o=a.length,s=t.getRawValue(n),c=U(s),l=cy(t,n),u,d,f,p;if(o>1||c&&!o){var m=fy(s,t,n,a,l);u=m.inlineValues,d=m.inlineValueTypes,f=m.blocks,p=m.inlineValues[0]}else if(o){var h=i.getDimensionInfo(a[0]);p=u=cv(i,n,a[0]),d=h.type}else p=u=c?s[0]:s;var g=Yo(t),_=g&&t.name||``,v=i.getName(n),y=r?_:v;return Yv(`section`,{header:_,noHeader:r||!g,sortParam:p,blocks:[Yv(`nameValue`,{markerType:`item`,markerColor:l,name:y,noName:!Te(y),value:u,valueType:d,rawDataIndex:i.getRawIndex(n)})].concat(f||[])})}function fy(e,t,n,r,i){var a=t.getData(),o=re(e,function(e,t,n){var r=a.getDimensionInfo(n);return e||=r&&r.tooltip!==!1&&r.displayName!=null},!1),s=[],c=[],l=[];r.length?V(r,function(e){u(cv(a,n,e),e)}):V(e,u);function u(e,t){var n=a.getDimensionInfo(t);!n||n.otherDims.tooltip===!1||(o?l.push(Yv(`nameValue`,{markerType:`subItem`,markerColor:i,name:n.displayName,value:e,valueType:n.type})):(s.push(e),c.push(n.type)))}return{inlineValues:s,inlineValueTypes:c,blocks:l}}var py=es();function my(e,t){return e.getName(t)||e.getId(t)}var hy=function(e){l(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=fv({count:vy,reset:yy}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(py(this).sourceManager=new Vv(this)).prepareSource();var r=this.getInitialData(e,n);xy(r,this),this.dataTask.context.data=r,py(this).dataBeforeProcessed=r,gy(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=fg(this),r=n?mg(e):{},i=this.subType;_g.hasClass(i)&&(i+=`Series`),I(e,t.getTheme().get(this.subType)),I(e,this.getDefaultOption()),Fo(e,`label`,[`show`]),this.fillDataTextStyle(e.data),n&&pg(e,r,n)},t.prototype.mergeOption=function(e,t){e=I(this.option,e,!0),this.fillDataTextStyle(e.data);var n=fg(this);n&&pg(this.option,e,n);var r=py(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);xy(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,py(this).dataBeforeProcessed=i,gy(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(e){if(e&&!he(e))for(var t=[`show`],n=0;n<e.length;n++)e[n]&&e[n].label&&Fo(e[n],`label`,t)},t.prototype.getInitialData=function(e,t){},t.prototype.appendData=function(e){this.getRawData().appendData(e.data)},t.prototype.getData=function(e){var t=Cy(this);if(t){var n=t.context.data;return e==null||!n.getLinkedData?n:n.getLinkedData(e)}return py(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var t=Cy(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}py(this).data=e},t.prototype.getEncode=function(){var e=this.get(`encode`,!0);if(e)return Ne(e)},t.prototype.getSourceManager=function(){return py(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return py(this).dataBeforeProcessed},t.prototype.getColorBy=function(){return this.get(`colorBy`)||`series`},t.prototype.isColorBySeries=function(){return this.getColorBy()===`series`},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.indicesOfNearest=function(e,t,n,r){var i=this.getData(),a=this.coordinateSystem,o=a&&a.getAxis(e);if(!a||!o)return[];var s=o.dataToCoord(n);r??=1/0;for(var c=[],l=1/0,u=-1,d=0,f=i.getDimensionIndex(t),p=i.getStore(),m=0,h=p.count();m<h;m++){var g=p.get(f,m),_=s-o.dataToCoord(g),v=Math.abs(_);v<=r&&((v<l||v===l&&_>=0&&u<0)&&(l=v,u=_,d=0),_===u&&(c[d++]=m))}return c.length=d,c},t.prototype.formatTooltip=function(e,t,n){return dy({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(d.node&&!(e&&e.ssr))return!1;var t=this.getShallow(`animation`);return t&&this.getData().count()>this.getShallow(`animationThreshold`)&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var r=this.ecModel,i=zg.prototype.getColorFromPalette.call(this,e,t,n);return i||=r.getColorFromPalette(e,t,n),i},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get(`progressive`)},t.prototype.getProgressiveThreshold=function(){return this.get(`progressiveThreshold`)},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(t);if(r===`series`||n===`all`){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var a=0;a<e.length;a++){var o=e[a],s=my(i,o);n[s]=!1,this._selectedDataIndicesMap[s]=-1}}},t.prototype.toggleSelect=function(e,t){for(var n=[],r=0;r<e.length;r++)n[0]=e[r],this.isSelected(e[r],t)?this.unselect(n,t):this.select(n,t)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap===`all`)return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,t=oe(e),n=[],r=0;r<t.length;r++){var i=e[t[r]];i>=0&&n.push(i)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(t);return(n===`all`||n[my(r,e)])&&!r.getItemModel(e).get([`select`,`disabled`])},t.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var e=this.option.universalTransition;return e?e===!0||e&&e.enabled:!1},t.prototype._innerSelect=function(e,t){var n,r,i=this.option,a=i.selectedMode,o=t.length;if(!(!a||!o)){if(a===`series`)i.selectedMap=`all`;else if(a===`multiple`){pe(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,c=0;c<o;c++){var l=t[c],u=my(e,l);s[u]=!0,this._selectedDataIndicesMap[u]=e.getRawIndex(l)}}else if(a===`single`||a===!0){var d=t[o-1],u=my(e,d);i.selectedMap=(n={},n[u]=!0,n),this._selectedDataIndicesMap=(r={},r[u]=e.getRawIndex(d),r)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var t=[];e.hasItemOption&&e.each(function(n){var r=e.getRawDataItem(n);r&&r.selected&&t.push(n)}),t.length>0&&this._innerSelect(e,t)}},t.registerClass=function(e){return _g.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type=`series.__base__`,e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol=`circle`,e.visualStyleAccessPath=`itemStyle`,e.visualDrawType=`fill`}(),t}(_g);te(hy,uv),te(hy,zg),Ls(hy,_g);function gy(e){var t=e.name;Yo(e)||(e.name=_y(e)||t)}function _y(e){var t=e.getRawData(),n=t.mapDimensionsAll(`seriesName`),r=[];return V(n,function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)}),r.join(` `)}function vy(e){return e.model.getRawData().count()}function yy(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),by}function by(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function xy(e,t){V(Pe(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,le(Sy,t))})}function Sy(e,t){var n=Cy(e);return n&&n.setOutputEnd((t||this).count()),t}function Cy(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}var wy=function(){function e(){this.group=new Aa,this.uid=Mm(`viewComponent`)}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){},e.prototype.updateLayout=function(e,t,n,r){},e.prototype.updateVisual=function(e,t,n,r){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();Fs(wy),Hs(wy);function Ty(){var e=es();return function(t){var n=e(t),r=t.pipelineContext,i=!!n.large,a=!!n.progressiveRender,o=n.large=!!(r&&r.large),s=n.progressiveRender=!!(r&&r.progressiveRender);return(i!==o||a!==s)&&`reset`}}var Ey=es(),Dy=Ty(),Oy=function(){function e(){this.group=new Aa,this.uid=Mm(`viewChart`),this.renderTask=fv({plan:jy,reset:My}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.highlight=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&Ay(i,r,`emphasis`)},e.prototype.downplay=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&Ay(i,r,`normal`)},e.prototype.remove=function(e,t){this.group.removeAll()},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateVisual=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.eachRendered=function(e){Up(this.group,e)},e.markUpdateMethod=function(e,t){Ey(e).updateMethod=t},e.protoInitialize=function(){var t=e.prototype;t.type=`chart`}(),e}();function ky(e,t,n){e&&Td(e)&&(t===`emphasis`?ed:td)(e,n)}function Ay(e,t,n){var r=$o(e,t),i=t&&t.highlightKey!=null?Ed(t.highlightKey):null;r==null?e.eachItemGraphicEl(function(e){ky(e,n,i)}):V(Po(r),function(t){ky(e.getItemGraphicEl(t),n,i)})}Fs(Oy,[`dispose`]),Hs(Oy);function jy(e){return Dy(e.model)}function My(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&Ey(i).updateMethod,c=a?`incrementalPrepareRender`:s&&o[s]?s:`render`;return c!==`render`&&o[c](t,n,r,i),Ny[c]}var Ny={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},Py=`\0__throttleOriginMethod`,Fy=`\0__throttleRate`,Iy=`\0__throttleType`;function Ly(e,t,n){var r,i=0,a=0,o=null,s,c,l,u;t||=0;function d(){a=new Date().getTime(),o=null,e.apply(c,l||[])}var f=function(){var e=[...arguments];r=new Date().getTime(),c=this,l=e;var f=u||t,p=u||n;u=null,s=r-(p?i:a)-f,clearTimeout(o),p?o=setTimeout(d,f):s>=0?d():o=setTimeout(d,-s),i=r};return f.clear=function(){o&&=(clearTimeout(o),null)},f.debounceNextCall=function(e){u=e},f}function Ry(e,t,n,r){var i=e[t];if(i){var a=i[Py]||i,o=i[Iy];if(i[Fy]!==n||o!==r){if(n==null||!r)return e[t]=a;i=e[t]=Ly(a,n,r===`debounce`),i[Py]=a,i[Iy]=r,i[Fy]=n}return i}}function zy(e,t){var n=e[t];n&&n[Py]&&(n.clear&&n.clear(),e[t]=n[Py])}var By=es(),Vy={itemStyle:Us(Dm,!0),lineStyle:Us(wm,!0)},Hy={lineStyle:`stroke`,itemStyle:`fill`};function Uy(e,t){return e.visualStyleMapper||Vy[t]||(console.warn(`Unknown style type '`+t+`'.`),Vy.itemStyle)}function Wy(e,t){return e.visualDrawType||Hy[t]||(console.warn(`Unknown style type '`+t+`'.`),`fill`)}var Gy={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=e.getModel(r),a=Uy(e,r)(i),o=i.getShallow(`decal`);o&&(n.setVisual(`decal`,o),o.dirty=!0);var s=Wy(e,r),c=a[s],l=ue(c)?c:null,u=a.fill===`auto`||a.stroke===`auto`;if(!a[s]||l||u){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[s]||(a[s]=d,n.setVisual(`colorFromPalette`,!0)),a.fill=a.fill===`auto`||ue(a.fill)?d:a.fill,a.stroke=a.stroke===`auto`||ue(a.stroke)?d:a.stroke}if(n.setVisual(`style`,a),n.setVisual(`drawType`,s),!t.isSeriesFiltered(e)&&l)return n.setVisual(`colorFromPalette`,!1),{dataEach:function(t,n){var r=e.getDataParams(n),i=L({},a);i[s]=l(r),t.setItemVisual(n,`style`,i)}}}},Ky=new Am,qy={createOnAllSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=Uy(e,r),a=n.getVisual(`drawType`);return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){Ky.option=n[r];var o=i(Ky);L(e.ensureUniqueItemVisual(t,`style`),o),Ky.option.decal&&(e.setItemVisual(t,`decal`,Ky.option.decal),Ky.option.decal.dirty=!0),a in o&&e.setItemVisual(t,`colorFromPalette`,!1)}}:null}}}},Jy={performRawSeries:!0,overallReset:function(e){var t=Ne();e.eachSeries(function(e){if(!e.isColorBySeries()){var n=e.type+`-`+e.getColorBy();By(e).scope=t.get(n)||t.set(n,{})}}),e.eachSeries(function(e){if(!e.isColorBySeries()){var t=e.getRawData(),n={},r=e.getData(),i=By(e).scope,a=Wy(e,e.visualStyleAccessPath||`itemStyle`);r.each(function(e){var t=r.getRawIndex(e);n[t]=e}),t.each(function(o){var s=n[o];if(r.getItemVisual(s,`colorFromPalette`)){var c=r.ensureUniqueItemVisual(s,`style`),l=t.getName(o)||o+``,u=t.count();c[a]=e.getColorFromPalette(l,i,u)}})}})}},Yy=Math.PI;function Xy(e,t){t||={},z(t,{text:`loading`,textColor:q.color.primary,fontSize:12,fontWeight:`normal`,fontStyle:`normal`,fontFamily:`sans-serif`,maskColor:`rgba(255,255,255,0.8)`,showSpinner:!0,color:q.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Aa,r=new Gl({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i=new Xl({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new Gl({style:{fill:`none`},textContent:i,textConfig:{position:`right`,distance:10},zlevel:t.zlevel,z:10001});n.add(a);var o;return t.showSpinner&&(o=new If({shape:{startAngle:-Yy/2,endAngle:-Yy/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:`round`,lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Yy*3/2}).start(`circularInOut`),o.animateShape(!0).when(1e3,{startAngle:Yy*3/2}).delay(300).start(`circularInOut`),n.add(o)),n.resize=function(){var n=i.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,c=(e.getWidth()-s*2-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:s),l=e.getHeight()/2;t.showSpinner&&o.setShape({cx:c,cy:l}),a.setShape({x:c-s,y:l-s,width:s*2,height:s*2}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var Zy=function(){function e(e,t,n,r){this._stageTaskMap=Ne(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(e){var t=e.overallTask;t&&t.dirty()})},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),r=n.context,i=!t&&n.progressiveEnabled&&(!r||r.progressiveRender)&&e.__idxInPipeline>n.blockIndex?n.step:null,a=r&&r.modDataCount;return{step:i,modBy:a==null?null:Math.ceil(a/i),modDataCount:a}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid);e.pipelineContext=n.context=e.__preparePipelineContext?e.__preparePipelineContext(t,n):Es(e,t,n)},e.prototype.restorePipelines=function(e,t){var n=this,r=n._pipelineMap=Ne();t.eachSeries(function(t){var i=e.painter.type===`canvas`&&t.getProgressive(),a=t.uid;r.set(a,{id:a,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),n._pipe(t,t.dataTask)})},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;V(this._allHandlers,function(r){var i=e.get(r.uid)||e.set(r.uid,{});we(!(r.reset&&r.overallReset),``),r.reset&&this._createSeriesStageTask(r,i,t,n),r.overallReset&&this._createOverallStageTask(r,i,t,n)},this)},e.prototype.prepareView=function(e,t,n,r){var i=e.renderTask,a=i.context;a.model=t,a.ecModel=n,a.api=r,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,r){r||={};var i=!1,a=this;V(e,function(e,s){if(!(r.visualType&&r.visualType!==e.visualType)){var c=a._stageTaskMap.get(e.uid),l=c.seriesTaskMap,u=c.overallTask;if(u){var d,f=u.agentStubMap;f.each(function(e){o(r,e)&&(e.dirty(),d=!0)}),d&&u.dirty(),a.updatePayload(u,n);var p=a.getPerformArgs(u,r.block);f.each(function(e){e.perform(p)}),u.perform(p)&&(i=!0)}else l&&l.each(function(s,c){o(r,s)&&s.dirty();var l=a.getPerformArgs(s,r.block);l.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),a.updatePayload(s,n),s.perform(l)&&(i=!0)})}});function o(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(e){t=e.dataTask.perform()||t}),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},e.prototype.updatePayload=function(e,t){t!==`remain`&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,r){var i=this,a=t.seriesTaskMap,o=t.seriesTaskMap=Ne(),s=e.seriesType,c=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(l):s?n.eachRawSeriesByType(s,l):c&&c(n,r).each(l);function l(t){var s=t.uid,c=o.set(s,a&&a.get(s)||fv({plan:nb,reset:rb,count:ob}));c.context={model:t,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(t,c)}},e.prototype._createOverallStageTask=function(e,t,n,r){var i=this,a=t.overallTask=t.overallTask||fv({reset:Qy});a.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var o=a.agentStubMap,s=a.agentStubMap=Ne(),c=e.seriesType,l=e.getTargetSeries,u=e.dirtyOnOverallProgress,d=!1;we(!e.createOnAllSeries,``),c?n.eachRawSeriesByType(c,f):l?l(n,r).each(f):V(n.getSeries(),f);function f(e){var t=e.uid,n=s.set(t,o&&o.get(t)||(d=!0,fv({reset:$y,onDirty:tb})));n.context={model:e,dirtyOnOverallProgress:u},n.agent=a,n.__block=u,i._pipe(e,n)}d&&a.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=t),r.tail&&r.tail.pipe(t),r.tail=t,t.__idxInPipeline=r.count++,t.__pipeline=r},e.wrapStageHandler=function(e,t){return ue(e)&&(e={overallReset:e,seriesType:sb(e)}),e.uid=Mm(`stageHandler`),t&&(e.visualType=t),e},e}();function Qy(e){e.overallReset(e.ecModel,e.api,e.payload)}function $y(e){return e.dirtyOnOverallProgress&&eb}function eb(){this.agent.dirty(),this.getDownstream().dirty()}function tb(){this.agent&&this.agent.dirty()}function nb(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function rb(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Po(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?H(t,function(e,t){return ab(t)}):ib}var ib=ab(0);function ab(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a<t.end;a++)i.dataEach(r,a);else i&&i.progress&&i.progress(t,r)}}function ob(e){return e.data.count()}function sb(e){ub=null;try{e(cb,lb)}catch{}return ub}var cb={},lb={},ub;db(cb,Jg),db(lb,xu),cb.eachSeriesByType=cb.eachRawSeriesByType=function(e){ub=e},cb.eachComponent=function(e){e.mainType===`series`&&e.subType&&(ub=e.subType)};function db(e,t){for(var n in t.prototype)e[n]=Le}var J=q.darkColor,fb=J.background,pb=function(){return{axisLine:{lineStyle:{color:J.axisLine}},splitLine:{lineStyle:{color:J.axisSplitLine}},splitArea:{areaStyle:{color:[J.backgroundTint,J.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:J.axisMinorSplitLine}},axisLabel:{color:J.axisLabel},axisName:{}}},mb={label:{color:J.secondary},itemStyle:{borderColor:J.borderTint},dividerLineStyle:{color:J.border}},hb={darkMode:!0,color:J.theme,backgroundColor:fb,axisPointer:{lineStyle:{color:J.border},crossStyle:{color:J.borderShade},label:{color:J.tertiary}},legend:{textStyle:{color:J.secondary},pageTextStyle:{color:J.tertiary}},textStyle:{color:J.secondary},title:{textStyle:{color:J.primary},subtextStyle:{color:J.quaternary}},toolbox:{iconStyle:{borderColor:J.accent50},feature:{dataView:{backgroundColor:fb,textColor:J.primary,textareaColor:J.background,textareaBorderColor:J.border,buttonColor:J.accent50,buttonTextColor:J.neutral00}}},tooltip:{backgroundColor:J.neutral20,defaultBorderColor:J.border,textStyle:{color:J.tertiary}},dataZoom:{borderColor:J.accent10,textStyle:{color:J.tertiary},brushStyle:{color:J.backgroundTint},handleStyle:{color:J.neutral00,borderColor:J.accent20},moveHandleStyle:{color:J.accent40},emphasis:{handleStyle:{borderColor:J.accent50}},dataBackground:{lineStyle:{color:J.accent30},areaStyle:{color:J.accent20}},selectedDataBackground:{lineStyle:{color:J.accent50},areaStyle:{color:J.accent30}}},visualMap:{textStyle:{color:J.secondary},handleStyle:{borderColor:J.neutral30}},timeline:{lineStyle:{color:J.accent10},label:{color:J.tertiary},controlStyle:{color:J.accent30,borderColor:J.accent30}},calendar:{itemStyle:{color:J.neutral00,borderColor:J.neutral20},dayLabel:{color:J.tertiary},monthLabel:{color:J.secondary},yearLabel:{color:J.secondary}},matrix:{x:mb,y:mb,backgroundColor:{borderColor:J.axisLine},body:{itemStyle:{borderColor:J.borderTint}}},timeAxis:pb(),logAxis:pb(),valueAxis:pb(),categoryAxis:pb(),line:{symbol:`circle`},graph:{color:J.theme},gauge:{title:{color:J.secondary},axisLine:{lineStyle:{color:[[1,J.neutral05]]}},axisLabel:{color:J.axisLabel},detail:{color:J.primary}},candlestick:{itemStyle:{color:`#f64e56`,color0:`#54ea92`,borderColor:`#f64e56`,borderColor0:`#54ea92`}},funnel:{itemStyle:{borderColor:J.background}},radar:function(){var e=pb();return e.axisName={color:J.axisLabel},e.axisLine.lineStyle.color=J.neutral20,e}(),treemap:{breadcrumb:{itemStyle:{color:J.neutral20,textStyle:{color:J.secondary}},emphasis:{itemStyle:{color:J.neutral30}}}},sunburst:{itemStyle:{borderColor:J.background}},map:{itemStyle:{borderColor:J.border,areaColor:J.neutral10},label:{color:J.tertiary},emphasis:{label:{color:J.primary},itemStyle:{areaColor:J.highlight}},select:{label:{color:J.primary},itemStyle:{areaColor:J.highlight}}},geo:{itemStyle:{borderColor:J.border,areaColor:J.neutral10},emphasis:{label:{color:J.primary},itemStyle:{areaColor:J.highlight}},select:{label:{color:J.primary},itemStyle:{color:J.highlight}}}};hb.categoryAxis.splitLine.show=!1;var gb=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},r={};if(W(e)){var i=Ms(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var a=[`Index`,`Name`,`Id`],o={name:1,dataIndex:1,dataType:1};V(e,function(e,i){for(var s=!1,c=0;c<a.length;c++){var l=a[c],u=i.lastIndexOf(l);if(u>0&&u===i.length-l.length){var d=i.slice(0,u);d!==`data`&&(t.mainType=d,t[l.toLowerCase()]=e,s=!0)}}o.hasOwnProperty(i)&&(n[i]=e,s=!0),s||(r[i]=e)})}return{cptQuery:t,dataQuery:n,otherQuery:r}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,a=n.model,o=n.view;if(!a||!o)return!0;var s=t.cptQuery,c=t.dataQuery;return l(s,a,`mainType`)&&l(s,a,`subType`)&&l(s,a,`index`,`componentIndex`)&&l(s,a,`name`)&&l(s,a,`id`)&&l(c,i,`name`)&&l(c,i,`dataIndex`)&&l(c,i,`dataType`)&&(!o.filterForExposedEvent||o.filterForExposedEvent(e,t.otherQuery,r,i));function l(e,t,n,r){return e[n]==null||t[r||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),_b=[`symbol`,`symbolSize`,`symbolRotate`,`symbolOffset`],vb=_b.concat([`symbolKeepAspect`]),yb={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual(`legendIcon`,e.legendIcon),!e.hasSymbolVisual)return;for(var r={},i={},a=!1,o=0;o<_b.length;o++){var s=_b[o],c=e.get(s);ue(c)?(a=!0,i[s]=c):r[s]=c}if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(L({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get(`symbolKeepAspect`)},r)),t.isSeriesFiltered(e))return;var l=oe(i);function u(t,n){for(var r=e.getRawValue(n),a=e.getDataParams(n),o=0;o<l.length;o++){var s=l[o];t.setItemVisual(n,s,i[s](r,a))}}return{dataEach:a?u:null}}},bb={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var n=e.getData();function r(e,t){for(var n=e.getItemModel(t),r=0;r<vb.length;r++){var i=vb[r],a=n.getShallow(i,!0);a!=null&&e.setItemVisual(t,i,a)}}return{dataEach:n.hasItemOption?r:null}}};function xb(e,t,n){switch(n){case`color`:return e.getItemVisual(t,`style`)[e.getVisual(`drawType`)];case`opacity`:return e.getItemVisual(t,`style`).opacity;case`symbol`:case`symbolSize`:case`liftZ`:return e.getItemVisual(t,n)}}function Sb(e,t){switch(t){case`color`:return e.getVisual(`style`)[e.getVisual(`drawType`)];case`opacity`:return e.getVisual(`style`).opacity;case`symbol`:case`symbolSize`:case`liftZ`:return e.getVisual(t)}}function Cb(e,t){function n(t,n){var r=[];return t.eachComponent({mainType:`series`,subType:e,query:n},function(e){r.push(e.seriesIndex)}),r}V([[e+`ToggleSelect`,`toggleSelect`],[e+`Select`,`select`],[e+`UnSelect`,`unselect`]],function(e){t(e[0],function(t,r,i){t=L({},t),i.dispatchAction(L(t,{type:e[1],seriesIndex:n(r,t)}))})})}function wb(e,t,n,r,i){var a=e+t;n.isSilent(a)||r.eachComponent({mainType:`series`,subType:`pie`},function(e){for(var t=e.seriesIndex,r=e.option.selectedMap,o=i.selected,s=0;s<o.length;s++)if(o[s].seriesIndex===t){var c=e.getData(),l=$o(c,i.fromActionPayload);n.trigger(a,{type:a,seriesId:e.id,name:U(l)?c.getName(l[0]):c.getName(l),selected:W(r)?r:L({},r)})}})}function Tb(e,t,n){e.on(`selectchanged`,function(e){var r=n.getModel();e.isFromClick?(wb(`map`,`selectchanged`,t,r,e),wb(`pie`,`selectchanged`,t,r,e)):e.fromAction===`select`?(wb(`map`,`selected`,t,r,e),wb(`pie`,`selected`,t,r,e)):e.fromAction===`unselect`&&(wb(`map`,`unselected`,t,r,e),wb(`pie`,`unselected`,t,r,e))})}function Eb(e,t,n){for(var r;e&&!(t(e)&&(r=e,n));)e=e.__hostTarget||e.parent;return r}var Db=new at,Ob={};function kb(e,t){Ob[e]=t}function Ab(e){return Ob[e]}var jb={};function Mb(e,t){jb[e]=t}function Nb(e){return jb[e]}var Pb=es();function Fb(e){Pb(e).prepare={}}function Ib(e){Pb(e).fullUpdate={}}function Lb(e){return Pb(e).prepare}function Rb(e){return Pb(e).fullUpdate}var zb=Math.round(Math.random()*9),Bb=typeof Object.defineProperty==`function`,Vb=function(){function e(){this._id=`__ec_inner_`+zb++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return Bb?Object.defineProperty(n,this._id,{value:t,enumerable:!1,configurable:!0}):n[this._id]=t,this},e.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},e.prototype.has=function(e){return!!this._guard(e)[this._id]},e.prototype._guard=function(e){if(e!==Object(e))throw TypeError(`Value of WeakMap is not a non-null object.`);return e},e}(),Hb=jl.extend({type:`triangle`,shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r+a),e.lineTo(n-i,r+a),e.closePath()}}),Ub={line:Af,rect:Gl,roundRect:Gl,square:Gl,circle:$d,diamond:jl.extend({type:`diamond`,shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r),e.lineTo(n,r+a),e.lineTo(n-i,r),e.closePath()}}),pin:jl.extend({type:`pin`,shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,r=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),c=r-a+o+s,l=Math.asin(s/o),u=Math.cos(l)*o,d=Math.sin(l),f=Math.cos(l),p=o*.6,m=o*.7;e.moveTo(n-u,c+s),e.arc(n,c,o,Math.PI-l,Math.PI*2+l),e.bezierCurveTo(n+u-d*p,c+s+f*p,n,r-m,n,r),e.bezierCurveTo(n,r-m,n-u+d*p,c+s+f*p,n-u,c+s),e.closePath()}}),arrow:jl.extend({type:`arrow`,shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,r=t.width,i=t.x,a=t.y,o=r/3*2;e.moveTo(i,a),e.lineTo(i+o,a+n),e.lineTo(i,a+n/4*3),e.lineTo(i-o,a+n),e.lineTo(i,a),e.closePath()}}),triangle:Hb},Wb={line:function(e,t,n,r,i){i.x1=e,i.y1=t+r/2,i.x2=e+n,i.y2=t+r/2},rect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r},roundRect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(e,t,n,r,i){var a=Math.min(n,r);i.x=e,i.y=t,i.width=a,i.height=a},circle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.r=Math.min(n,r)/2},diamond:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r},pin:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},arrow:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},triangle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r}},Gb={};V(Ub,function(e,t){Gb[t]=new e});var Kb=jl.extend({type:`symbol`,shape:{symbolType:``,x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=fa(e,t,n),i=this.shape;return i&&i.symbolType===`pin`&&t.position===`inside`&&(r.y=n.y+n.height*.4),r},buildPath:function(e,t,n){var r=t.symbolType;if(r!==`none`){var i=Gb[r];i||=(r=`rect`,Gb[r]),Wb[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function qb(e,t){if(this.type!==`image`){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||q.color.neutral00,n.lineWidth=2):this.shape.symbolType===`line`?n.stroke=e:n.fill=e,this.markRedraw()}}function Jb(e,t,n,r,i,a,o){var s=e.indexOf(`empty`)===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var c=e.indexOf(`image://`)===0?vp(e.slice(8),new rn(t,n,r,i),o?`center`:`cover`):e.indexOf(`path://`)===0?_p(e.slice(7),{},new rn(t,n,r,i),o?`center`:`cover`):new Kb({shape:{symbolType:e,x:t,y:n,width:r,height:i}});return c.__isEmptyBrush=s,c.setColor=qb,a&&c.setColor(a),c}function Yb(e){return U(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function Xb(e,t){if(e!=null)return U(e)||(e=[e,e]),[$a(e[0],t[0])||0,$a(G(e[1],e[0]),t[1])||0]}function Zb(e){return isFinite(e)}function Qb(e,t,n){var r=t.x==null?0:t.x,i=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;return t.global||(r=r*n.width+n.x,i=i*n.width+n.x,a=a*n.height+n.y,o=o*n.height+n.y),r=Zb(r)?r:0,i=Zb(i)?i:1,a=Zb(a)?a:0,o=Zb(o)?o:0,e.createLinearGradient(r,a,i,o)}function $b(e,t,n){var r=n.width,i=n.height,a=Math.min(r,i),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,c=t.r==null?.5:t.r;return t.global||(o=o*r+n.x,s=s*i+n.y,c*=a),o=Zb(o)?o:.5,s=Zb(s)?s:.5,c=c>=0&&Zb(c)?c:.5,e.createRadialGradient(o,s,0,o,s,c)}function ex(e,t,n){for(var r=t.type===`radial`?$b(e,t,n):Qb(e,t,n),i=t.colorStops,a=0;a<i.length;a++)r.addColorStop(i[a].offset,i[a].color);return r}function tx(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}function nx(e){return parseInt(e,10)}function rx(e,t,n){var r=[`width`,`height`][t],i=[`clientWidth`,`clientHeight`][t],a=[`paddingLeft`,`paddingTop`][t],o=[`paddingRight`,`paddingBottom`][t];if(n[r]!=null&&n[r]!==`auto`)return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(e);return(e[i]||nx(s[r])||nx(e.style[r]))-(nx(s[a])||0)-(nx(s[o])||0)||0}function ix(e,t){return!e||e===`solid`||!(t>0)?null:e===`dashed`?[4*t,2*t]:e===`dotted`?[t]:fe(e)?[e]:U(e)?e:null}function ax(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&ix(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(n=H(n,function(e){return e/i}),r/=i)}return[n,r]}var ox=new ol(!0);function sx(e){var t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))}function cx(e){return typeof e==`string`&&e!==`none`}function lx(e){var t=e.fill;return t!=null&&t!==`none`}function ux(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function dx(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function fx(e,t,n){var r=Js(t.image,t.__image,n);if(Xs(r)){var i=e.createPattern(r,t.repeat||`repeat`);if(typeof DOMMatrix==`function`&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*Re),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function px(e,t,n,r,i){var a,o=sx(n),s=lx(n),c=n.strokePercent,l=c<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var d=t.path||ox,f=t.__dirty;if(!r){var p=n.fill,m=n.stroke,h=s&&!!p.colorStops,g=o&&!!m.colorStops,_=s&&!!p.image,v=o&&!!m.image,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0;(h||g)&&(C=t.getBoundingRect()),h&&(y=f?ex(e,p,C):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(b=f?ex(e,m,C):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),_&&(x=f||!t.__canvasFillPattern?fx(e,p,t):t.__canvasFillPattern,t.__canvasFillPattern=x),v&&(S=f||!t.__canvasStrokePattern?fx(e,m,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),h?e.fillStyle=y:_&&(x?e.fillStyle=x:s=!1),g?e.strokeStyle=b:v&&(S?e.strokeStyle=S:o=!1)}var w=t.getGlobalScale();d.setScale(w[0],w[1],t.segmentIgnoreThreshold);var T,E;e.setLineDash&&n.lineDash&&(a=ax(t),T=a[0],E=a[1]);var D=!0;(u||f&4)&&(d.setDPR(e.dpr),l?d.setContext(null):(d.setContext(e),D=!1),d.reset(),t.buildPath(d,t.shape,r),d.toStatic(),t.pathUpdated()),D&&d.rebuildPath(e,l?c:1),T&&(e.setLineDash(T),e.lineDashOffset=E),r?(i.batchFill=s,i.batchStroke=o):n.strokeFirst?(o&&dx(e,n),s&&ux(e,n)):(s&&ux(e,n),o&&dx(e,n)),T&&e.setLineDash([])}function mx(e,t,n){var r=t.__image=Js(n.image,t.__image,t,t.onload);if(!(!r||!Xs(r))){var i=n.x||0,a=n.y||0,o=t.getWidth(),s=t.getHeight(),c=r.width/r.height;if(o==null&&s!=null?o=s*c:s==null&&o!=null?s=o/c:o==null&&s==null&&(o=r.width,s=r.height),n.sWidth&&n.sHeight){var l=n.sx||0,u=n.sy||0;e.drawImage(r,l,u,n.sWidth,n.sHeight,i,a,o,s)}else if(n.sx&&n.sy){var l=n.sx,u=n.sy,d=o-l,f=s-u;e.drawImage(r,l,u,d,f,i,a,o,s)}else e.drawImage(r,i,a,o,s)}}function hx(e,t,n){var r,i=n.text;if(i!=null&&(i+=``),i){e.font=n.font||`12px sans-serif`,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var a=void 0,o=void 0;e.setLineDash&&n.lineDash&&(r=ax(t),a=r[0],o=r[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),n.strokeFirst?(sx(n)&&e.strokeText(i,n.x,n.y),lx(n)&&e.fillText(i,n.x,n.y)):(lx(n)&&e.fillText(i,n.x,n.y),sx(n)&&e.strokeText(i,n.x,n.y)),a&&e.setLineDash([])}}var gx=[`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],_x=[[`lineCap`,`butt`],[`lineJoin`,`miter`],[`miterLimit`,10]];function vx(e,t,n,r,i){var a=!1;if(!r&&(n||={},t===n))return!1;if(r||t.opacity!==n.opacity){Ax(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?bc.opacity:o}(r||t.blend!==n.blend)&&(a||=(Ax(e,i),!0),e.globalCompositeOperation=t.blend||bc.blend);for(var s=0;s<gx.length;s++){var c=gx[s];(r||t[c]!==n[c])&&(a||=(Ax(e,i),!0),e[c]=e.dpr*(t[c]||0))}return(r||t.shadowColor!==n.shadowColor)&&(a||=(Ax(e,i),!0),e.shadowColor=t.shadowColor||bc.shadowColor),a}function yx(e,t,n,r,i){var a=t.style,o=r?null:n&&n.style||{};if(a===o)return!1;var s=vx(e,a,o,r,i);if((r||a.fill!==o.fill)&&(s||=(Ax(e,i),!0),cx(a.fill)&&(e.fillStyle=a.fill)),(r||a.stroke!==o.stroke)&&(s||=(Ax(e,i),!0),cx(a.stroke)&&(e.strokeStyle=a.stroke)),(r||a.opacity!==o.opacity)&&(s||=(Ax(e,i),!0),e.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var c=a.lineWidth/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==c&&(s||=(Ax(e,i),!0),e.lineWidth=c)}for(var l=0;l<_x.length;l++){var u=_x[l],d=u[0];(r||a[d]!==o[d])&&(s||=(Ax(e,i),!0),e[d]=a[d]||u[1])}return s}function bx(e,t,n,r,i){return vx(e,t.style,n&&n.style,r,i)}function xx(e,t){var n=t.transform,r=e.dpr||1;n?e.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):e.setTransform(r,0,0,r,0,0)}function Sx(e,t,n){for(var r=!1,i=0;i<e.length;i++){var a=e[i];r||=a.isZeroArea(),xx(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}n.allClipped=r}function Cx(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}var Tx=1,Ex=2,Dx=3,Ox=4;function kx(e){var t=lx(e),n=sx(e);return!(e.lineDash||!(+t^n)||t&&typeof e.fill!=`string`||n&&typeof e.stroke!=`string`||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function Ax(e,t){t.batchFill&&(t.batchFill=!1,e.fill()),t.batchStroke&&(t.batchStroke=!1,e.stroke())}function jx(e,t){var n={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};Mx(e,t,n),Nx(e,n)}function Mx(e,t,n){var r=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){t.__dirty&=-2,t.__isRendered=!1;return}var i=t.__clipPaths,a=n.prevElClipPaths,o=t.style,s=!1,c=!1;if((!a||tx(i,a))&&(a&&(Ax(e,n),e.restore(),c=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),i&&i.length&&(Ax(e,n),e.save(),Sx(i,e,n),s=!0,n.prevElClipPaths=i)),n.allClipped){t.__dirty&=-2,t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(n.beforeBrushParam),t.innerBeforeBrush();var l=n.prevEl;l||(c=s=!0);var u=t instanceof jl&&t.autoBatch&&kx(o);s||Cx(r,l.transform)?(Ax(e,n),xx(e,t)):u||Ax(e,n),t instanceof jl?(n.lastDrawType!==Tx&&(c=!0,n.lastDrawType=Tx),yx(e,t,l,c,n),(!u||!n.batchFill&&!n.batchStroke)&&e.beginPath(),px(e,t,o,u,n)):t instanceof Nl?(n.lastDrawType!==Dx&&(c=!0,n.lastDrawType=Dx),yx(e,t,l,c,n),hx(e,t,o)):t instanceof Ll?(n.lastDrawType!==Ex&&(c=!0,n.lastDrawType=Ex),bx(e,t,l,c,n),mx(e,t,o)):t.getTemporalDisplayables&&(n.lastDrawType!==Ox&&(c=!0,n.lastDrawType=Ox),Px(e,t,n)),t.innerAfterBrush(),t.afterBrush&&(u&&Ax(e,n),t.afterBrush()),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}function Nx(e,t){Ax(e,t),t.prevElClipPaths&&e.restore()}function Px(e,t,n){var r=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover,beforeBrushParam:{}},o,s;for(o=t.getCursor(),s=r.length;o<s;o++){var c=r[o];c.beforeBrush&&c.beforeBrush(n.beforeBrushParam),c.innerBeforeBrush(),Mx(e,c,a),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}Nx(e,a);for(var l=0,u=i.length;l<u;l++){var c=i[l];c.beforeBrush&&c.beforeBrush(n.beforeBrushParam),c.innerBeforeBrush(),Mx(e,c,a),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}Nx(e,a),t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var Fx=new Vb,Ix=new yr(100),Lx=[`symbol`,`symbolSize`,`symbolKeepAspect`,`color`,`backgroundColor`,`dashArrayX`,`dashArrayY`,`maxTileWidth`,`maxTileHeight`];function Rx(e,t){if(e===`none`)return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i=r.painter.type===`svg`;e.dirty&&Fx.delete(e);var a=Fx.get(e);if(a)return a;var o=z(e,{symbol:`rect`,symbolSize:1,symbolKeepAspect:!0,color:`rgba(0, 0, 0, 0.2)`,backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor===`none`&&(o.backgroundColor=null);var s={repeat:`repeat`};return c(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/n,Fx.set(e,s),e.dirty=!1,s;function c(e){for(var t=[n],a=!0,s=0;s<Lx.length;++s){var c=o[Lx[s]];if(c!=null&&!U(c)&&!W(c)&&!fe(c)&&typeof c!=`boolean`){a=!1;break}t.push(c)}var l;if(a){l=t.join(`,`)+(i?`-svg`:``);var u=Ix.get(l);u&&(i?e.svgElement=u:e.image=u)}var d=Bx(o.dashArrayX),f=Vx(o.dashArrayY),p=zx(o.symbol),m=Hx(d),h=Ux(f),g=!i&&y.createCanvas(),_=i&&{tag:`g`,attrs:{},key:`dcl`,children:[]},v=x(),b;g&&(g.width=v.width*n,g.height=v.height*n,b=g.getContext(`2d`)),S(),a&&Ix.put(l,g||_),e.image=g,e.svgElement=_,e.svgWidth=v.width,e.svgHeight=v.height;function x(){for(var e=1,t=0,n=m.length;t<n;++t)e=Co(e,m[t]);for(var r=1,t=0,n=p.length;t<n;++t)r=Co(r,p[t].length);e*=r;var i=h*m.length*p.length;return{width:Math.max(1,Math.min(e,o.maxTileWidth)),height:Math.max(1,Math.min(i,o.maxTileHeight))}}function S(){b&&(b.clearRect(0,0,g.width,g.height),o.backgroundColor&&(b.fillStyle=o.backgroundColor,b.fillRect(0,0,g.width,g.height)));for(var e=0,t=0;t<f.length;++t)e+=f[t];if(e<=0)return;for(var a=-h,s=0,c=0,l=0;a<v.height;){if(s%2==0){for(var u=c/2%p.length,m=0,y=0,x=0;m<v.width*2;){for(var S=0,t=0;t<d[l].length;++t)S+=d[l][t];if(S<=0)break;if(y%2==0){var C=(1-o.symbolSize)*.5,w=m+d[l][y]*C,T=a+f[s]*C,E=d[l][y]*o.symbolSize,D=f[s]*o.symbolSize,O=x/2%p[u].length;k(w,T,E,D,p[u][O])}m+=d[l][y],++x,++y,y===d[l].length&&(y=0)}++l,l===d.length&&(l=0)}a+=f[s],++c,++s,s===f.length&&(s=0)}function k(e,t,a,s,c){var l=i?1:n,u=Jb(c,e*l,t*l,a*l,s*l,o.color,o.symbolKeepAspect);if(i){var d=r.painter.renderOneToVNode(u);d&&_.children.push(d)}else jx(b,u)}}}}function zx(e){if(!e||e.length===0)return[[`rect`]];if(W(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!W(e[n])){t=!1;break}if(t)return zx([e]);for(var r=[],n=0;n<e.length;++n)W(e[n])?r.push([e[n]]):r.push(e[n]);return r}function Bx(e){if(!e||e.length===0)return[[0,0]];if(fe(e)){var t=Math.ceil(e);return[[t,t]]}for(var n=!0,r=0;r<e.length;++r)if(!fe(e[r])){n=!1;break}if(n)return Bx([e]);for(var i=[],r=0;r<e.length;++r)if(fe(e[r])){var t=Math.ceil(e[r]);i.push([t,t])}else{var t=H(e[r],function(e){return Math.ceil(e)});t.length%2==1?i.push(t.concat(t)):i.push(t)}return i}function Vx(e){if(!e||typeof e==`object`&&e.length===0)return[0,0];if(fe(e)){var t=Math.ceil(e);return[t,t]}var n=H(e,function(e){return Math.ceil(e)});return e.length%2?n.concat(n):n}function Hx(e){return H(e,function(e){return Ux(e)})}function Ux(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2==1?t*2:t}var Wx=Os(Gx);function Gx(e,t){e.eachRawSeries(function(n){if(!e.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each(function(e){var n=r.getItemVisual(e,`decal`);if(n){var i=r.ensureUniqueItemVisual(e,`style`);i.decal=Rx(n,t)}});var i=r.getVisual(`decal`);if(i){var a=r.getVisual(`style`);a.decal=Rx(i,t)}}})}var Kx=1,qx=800,Jx=900,Yx=920,Xx=1e3,Zx=2e3,Qx=5e3,$x=1e3,eS=1100,tS=2e3,nS=3e3,rS=4e3,iS=4500,aS=4600,oS=5e3,sS=6e3,cS=7e3,lS={PROCESSOR:{SERIES_FILTER:qx,AXIS_STATISTICS:Yx,FILTER:Xx,STATISTIC:Qx,STATISTICS:Qx},VISUAL:{LAYOUT:$x,PROGRESSIVE_LAYOUT:eS,GLOBAL:tS,CHART:nS,POST_CHART_LAYOUT:aS,COMPONENT:rS,BRUSH:oS,CHART_ITEM:iS,ARIA:sS,DECAL:cS}},uS=`__flagInMainProcess`,dS=`__mainProcessVersion`,fS=`__pendingUpdate`,pS=`__needsUpdateStatus`,mS=/^[a-zA-Z0-9_]+$/,hS=`__connectUpdateStatus`,gS=0,_S=1,vS=2;function yS(e){return function(){var t=[...arguments];if(this.isDisposed()){this.id;return}return xS(this,e,t)}}function bS(e){return function(){var t=[...arguments];return xS(this,e,t)}}function xS(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),at.prototype[t].apply(e,n)}var SS=function(e){l(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(at),CS=SS.prototype;CS.on=bS(`on`),CS.off=bS(`off`);var wS,TS,ES,DS,OS,kS,AS,jS,MS,NS,PS,FS,IS,LS,RS,zS,BS,VS,HS,US=function(e){l(t,e);function t(t,n,r){var i=e.call(this,new gb)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],r||={},i.__v_skip=!0,i._dom=t;var a=`canvas`,o=`auto`,s=!1;i[dS]=1,r.ssr;var c=i._zr=Ia(t,{renderer:r.renderer||a,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:G(r.useDirtyRect,s),useCoarsePointer:G(r.useCoarsePointer,o),pointerSize:r.pointerSize});i._ssr=r.ssr,i._throttledZrFlush=Ly(ce(c.flush,c),17),i._updateTheme(n),i._locale=Gm(r.locale||Um),i._coordSysMgr=new qh;var l=i._api=RS(i);function u(e,t){return e.__prio-t.__prio}return In(ZS,u),In(YS,u),i._scheduler=new Zy(i,l,YS,ZS),i._messageCenter=new SS,i._initEvents(),i.resize=ce(i.resize,i),c.animation.on(`frame`,i._onframe,i),NS(c,i),PS(c,i),De(i),i}return t.prototype._onframe=function(){if(!this._disposed){var e=this._scheduler,t=this._model,n=this._api;if(VS(this),this[fS]){var r=this[fS].silent;this[uS]=!0,HS(this);try{wS(this),DS.update.call(this,null,this[fS].updateParams)}catch(e){throw this[uS]=!1,this[fS]=null,e}this._zr.flush(),this[uS]=!1,this[fS]=null,jS.call(this,r),MS.call(this,r)}else if(e.unfinished){var i=Kx;do{e.unfinished=!1;var a=y.getTime();e.performSeriesTasks(t),e.performDataProcessorTasks(t),kS(this,t),e.performVisualTasks(t),LS(this,this._model,n,`remain`,{}),i-=y.getTime()-a}while(i>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,t,n){if(!this[uS]){if(this._disposed){this.id;return}var r,i,a;if(pe(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,a=t.transition,t=t.notMerge),this[uS]=!0,HS(this),!this._model||t){var o=new t_(this._api),s=this._theme,c=this._model=new Jg;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,s,this._locale,o)}this._model.setOption(e,{replaceMerge:i},XS);var l={seriesTransition:a,optionChanged:!0};if(n)this[fS]={silent:r,updateParams:l},this[uS]=!1,this.getZr().wakeUp();else{try{wS(this),DS.update.call(this,null,l)}catch(e){throw this[fS]=null,this[uS]=!1,e}this._ssr||this._zr.flush(),this[fS]=null,this[uS]=!1,jS.call(this,r),MS.call(this,r)}}},t.prototype.setTheme=function(e,t){if(!this[uS]){if(this._disposed){this.id;return}var n=this._model;if(n){var r=t&&t.silent,i=null;this[fS]&&(r??=this[fS].silent,i=this[fS].updateParams,this[fS]=null),this[uS]=!0,HS(this);try{this._updateTheme(e),n.setTheme(this._theme),wS(this),DS.update.call(this,{type:`setTheme`},i)}catch(e){throw this[uS]=!1,e}this[uS]=!1,jS.call(this,r),MS.call(this,r)}}},t.prototype._updateTheme=function(e){W(e)&&(e=QS[e]),e&&(e=F(e),e&&k_(e,!0),this._theme=e)},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||d.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){return e||={},this._zr.painter.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get(`backgroundColor`),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){return e||={},this._zr.painter.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){var e=this._zr;return V(e.storage.getDisplayList(),function(e){e.stopAnimation(null,!0)}),e.painter.toDataURL()},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e||={};var t=e.excludeComponents,n=this._model,r=[],i=this;V(t,function(e){n.eachComponent({mainType:e},function(e){var t=i._componentsMap[e.__viewId];t.group.ignore||(r.push(t),t.group.ignore=!0)})});var a=this._zr.painter.getType()===`svg`?this.getSvgDataURL():this.renderToCanvas(e).toDataURL(`image/`+(e&&e.type||`png`));return V(r,function(e){e.group.ignore=!1}),a},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var t=e.type===`svg`,n=this.group,r=Math.min,i=Math.max,a=1/0;if(tC[n]){var o=a,s=a,c=-a,l=-a,u=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();V(eC,function(a,d){if(a.group===n){var f=t?a.getZr().painter.getSvgDom().innerHTML:a.renderToCanvas(F(e)),p=a.getDom().getBoundingClientRect();o=r(p.left,o),s=r(p.top,s),c=i(p.right,c),l=i(p.bottom,l),u.push({dom:f,left:p.left,top:p.top})}}),o*=d,s*=d,c*=d,l*=d;var f=c-o,p=l-s,m=y.createCanvas(),h=Ia(m,{renderer:t?`svg`:`canvas`});if(h.resize({width:f,height:p}),t){var g=``;return V(u,function(e){var t=e.left-o,n=e.top-s;g+=`<g transform="translate(`+t+`,`+n+`)">`+e.dom+`</g>`}),h.painter.getSvgRoot().innerHTML=g,e.connectedBackgroundColor&&h.painter.setBackgroundColor(e.connectedBackgroundColor),h.refreshImmediately(),h.painter.toDataURL()}return e.connectedBackgroundColor&&h.add(new Gl({shape:{x:0,y:0,width:f,height:p},style:{fill:e.connectedBackgroundColor}})),V(u,function(e){var t=new Ll({style:{x:e.left*d-o,y:e.top*d-s,image:e.dom}});h.add(t)}),h.refreshImmediately(),m.toDataURL(`image/`+(e&&e.type||`png`))}return this.getDataURL(e)},t.prototype.convertToPixel=function(e,t,n){return OS(this,`convertToPixel`,e,t,n)},t.prototype.convertToLayout=function(e,t,n){return OS(this,`convertToLayout`,e,t,n)},t.prototype.convertFromPixel=function(e,t,n){return OS(this,`convertFromPixel`,e,t,n)},t.prototype.containPixel=function(e,t){if(this._disposed){this.id;return}var n=this._model,r;return V(ns(n,e),function(e,n){n.indexOf(`Models`)>=0&&V(e,function(e){var i=e.coordinateSystem;if(i&&i.containPoint)r||=!!i.containPoint(t);else if(n===`seriesModels`){var a=this._chartsMap[e.__viewId];a&&a.containPoint&&(r||=a.containPoint(t,e))}},this)},this),!!r},t.prototype.getVisual=function(e,t){var n=this._model,r=ns(n,e,{defaultMainType:`series`}),i=r.seriesModel.getData(),a=r.hasOwnProperty(`dataIndexInside`)?r.dataIndexInside:r.hasOwnProperty(`dataIndex`)?i.indexOfRawIndex(r.dataIndex):null;return a==null?Sb(i,t):xb(i,a,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;V(GS,function(t){var n=function(n){var r=e.getModel(),i=n.target,a;if(t===`globalout`?a={}:i&&Eb(i,function(e){var t=uu(e);if(t&&t.dataIndex!=null){var n=t.dataModel||r.getSeriesByIndex(t.seriesIndex);return a=n&&n.getDataParams(t.dataIndex,t.dataType,i)||{},!0}if(t.eventData)return a=L({},t.eventData),!0},!0),a){var o=a.componentType,s=a.componentIndex;(o===`markLine`||o===`markPoint`||o===`markArea`)&&(o=`series`,s=a.seriesIndex);var c=o&&s!=null&&r.getComponent(o,s),l=c&&e[c.mainType===`series`?`_chartsMap`:`_componentsMap`][c.__viewId];a.event=n,a.type=t,e._$eventProcessor.eventInfo={targetEl:i,packedEvent:a,model:c,view:l},e.trigger(t,a)}};n.zrEventfulCallAtLast=!0,e._zr.on(t,n,e)});var t=this._messageCenter;V(JS,function(n,r){t.on(r,function(t){e.trigger(r,t)})}),Tb(t,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0,this.getDom()&&ss(this.getDom(),rC,``);var e=this,t=e._api,n=e._model;V(e._componentsViews,function(e){e.dispose(n,t)}),V(e._chartsViews,function(e){e.dispose(n,t)}),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete eC[e.id]},t.prototype.resize=function(e){if(!this[uS]){if(this._disposed){this.id;return}this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption(`media`),r=e&&e.silent;this[fS]&&(r??=this[fS].silent,n=!0,this[fS]=null),this[uS]=!0,HS(this);try{n&&wS(this),DS.update.call(this,{type:`resize`,animation:L({duration:0},e&&e.animation)})}catch(e){throw this[uS]=!1,e}this[uS]=!1,jS.call(this,r),MS.call(this,r)}}},t.prototype.showLoading=function(e,t){if(this._disposed){this.id;return}if(pe(e)&&(t=e,e=``),e||=`default`,this.hideLoading(),$S[e]){var n=$S[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var t=L({},e);return t.type=qS[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed){this.id;return}if(pe(t)||(t={silent:!!t}),KS[e.type]&&this._model){if(this[uS]){this._pendingActions.push(e);return}var n=t.silent;AS.call(this,e,n);var r=t.flush;r?this._zr.flush():r!==!1&&d.browser.weChat&&this._throttledZrFlush(),jS.call(this,n),MS.call(this,n)}},t.prototype.updateLabelLayout=function(){Db.trigger(`series:layoutlabels`,this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var t=e.seriesIndex;this.getModel().getSeriesByIndex(t).appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){wS=function(e){Fb(e._model);var t=e._scheduler;t.restorePipelines(e._zr,e._model),t.prepareStageTasks(),TS(e,!0),TS(e,!1),t.plan()},TS=function(e,t){for(var n=e._model,r=e._scheduler,i=t?e._componentsViews:e._chartsViews,a=t?e._componentsMap:e._chartsMap,o=e._zr,s=e._api,c=0;c<i.length;c++)i[c].__alive=!1;t?n.eachComponent(function(e,t){e!==`series`&&l(t)}):n.eachSeries(l);function l(e){var c=e.__requireNewView;e.__requireNewView=!1;var l=`_ec_`+e.id+`_`+e.type,u=!c&&a[l];if(!u){var d=Ms(e.type);u=new(t?wy.getClass(d.main,d.sub):Oy.getClass(d.sub)),u.init(n,s),a[l]=u,i.push(u),o.add(u.group)}e.__viewId=u.__id=l,u.__alive=!0,u.__model=e,u.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},!t&&r.prepareView(u,e,n,s)}for(var c=0;c<i.length;){var u=i[c];u.__alive?c++:(!t&&u.renderTask.dispose(),o.remove(u.group),u.dispose(n,s),i.splice(c,1),a[u.__id]===u&&delete a[u.__id],u.__id=u.group.__ecComponentInfo=null)}},ES=function(e,t,n,r,i){var a=e._model;if(a.setUpdatePayload(n),!r){V([].concat(e._componentsViews,e._chartsViews),l);return}var o=os(n,r,i),s=n.excludeSeriesId,c;s!=null&&(c=Ne(),V(Po(s),function(e){var t=Jo(e,null);t!=null&&c.set(t,!0)})),a&&a.eachComponent(o,function(t){if(!(c&&c.get(t.id)!=null)){if(Od(n)){if(t instanceof hy)n.type===`highlight`&&!n.notBlur&&!t.get([`emphasis`,`disabled`])&&ud(t,n,e._api);else{var r=dd(t.mainType,t.componentIndex,n.name,e._api),i=r.focusSelf,a=r.dispatchers;n.type===`highlight`&&i&&!n.notBlur&&ld(t.mainType,t.componentIndex,e._api),a&&V(a,function(e){n.type===`highlight`?ed(e):td(e)})}}else Dd(n)&&t instanceof hy&&(md(t,n,e._api),hd(t),BS(e))}},e),a&&a.eachComponent(o,function(t){c&&c.get(t.id)!=null||l(e[r===`series`?`_chartsMap`:`_componentsMap`][t.__viewId])},e);function l(r){r&&r.__alive&&r[t]&&r[t](r.__model,a,e._api,n)}},DS={prepareAndUpdate:function(e){wS(this),DS.update.call(this,e,e&&{optionChanged:e.newOption!=null})},update:function(e,n){var r=this._model,i=this._api,a=this._zr,o=this._coordSysMgr,s=this._scheduler;if(r){Ib(r),r.setUpdatePayload(e),s.restoreData(r,e),s.performSeriesTasks(r),o.create(r,i),Db.trigger(`coordsys:aftercreate`,r,i),s.performDataProcessorTasks(r,e),kS(this,r),o.update(r,i),t(r),s.performVisualTasks(r,e);var c=r.get(`backgroundColor`)||`transparent`;a.setBackgroundColor(c);var l=r.get(`darkMode`);l!=null&&l!==`auto`&&a.setDarkMode(l),FS(this,r,i,e,n),Db.trigger(`afterupdate`,r,i)}},updateTransform:function(e){var t=this,n=t._model,r=t._api;if(n){n.setUpdatePayload(e);var i=[];n.eachComponent(function(a,o){if(a!==`series`){var s=t.getViewOfComponentModel(o);if(s&&s.__alive){if(s.updateTransform){var c=s.updateTransform(o,n,r,e);c&&c.update&&i.push(s)}else i.push(s)}}});var a=Ne();n.eachSeries(function(i){var o=t._chartsMap[i.__viewId],s=i.pipelineContext;if(o.updateTransform&&!s.progressiveRender){var c=o.updateTransform(i,n,r,e);c&&c.update&&a.set(i.uid,1)}else a.set(i.uid,1)}),t._scheduler.performVisualTasks(n,e,{setDirty:!0,dirtyMap:a}),LS(t,n,r,e,{},a),Db.trigger(`afterupdate`,n,r)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),Oy.markUpdateMethod(e,`updateView`),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),FS(this,n,this._api,e,{}),Db.trigger(`afterupdate`,n,this._api))},updateVisual:function(e){var n=this,r=this._model;r&&(r.setUpdatePayload(e),r.eachSeries(function(e){e.getData().clearAllVisual()}),Oy.markUpdateMethod(e,`updateVisual`),t(r),this._scheduler.performVisualTasks(r,e,{visualType:`visual`,setDirty:!0}),r.eachComponent(function(t,i){if(t!==`series`){var a=n.getViewOfComponentModel(i);a&&a.__alive&&a.updateVisual(i,r,n._api,e)}}),r.eachSeries(function(t){n._chartsMap[t.__viewId].updateVisual(t,r,n._api,e)}),Db.trigger(`afterupdate`,r,this._api))},updateLayout:function(e){DS.update.call(this,e)}};function e(e,t,n,r,i){if(e._disposed){e.id;return}for(var a=e._model,o=e._coordSysMgr.getCoordinateSystems(),s,c=ns(a,n),l=0;l<o.length;l++){var u=o[l];if(u[t]&&(s=u[t](a,c,r,i))!=null)return s}}OS=e,kS=function(e,t){var n=e._chartsMap,r=e._scheduler;t.eachSeries(function(e){r.updateStreamModes(e,n[e.__viewId])})},AS=function(e,t){var n=this,r=this.getModel(),i=e.type,a=e.escapeConnect,o=KS[i],s=(o.update||`update`).split(`:`),c=s.pop(),l=s[0]!=null&&Ms(s[0]);this[uS]=!0,HS(this);var u=[e],d=!1;e.batch&&(d=!0,u=H(e.batch,function(t){return t=z(L({},t),e),t.batch=null,t}));var f=[],p,m=[],h=o.nonRefinedEventType,g=Dd(e),_=Od(e);if(_&&sd(this._api),V(u,function(t){var i=o.action(t,r,n._api);if(o.refineEvent?m.push(i):p=i,p||=L({},t),p.type=h,f.push(p),_){var a=rs(e),s=a.queryOptionMap,u=a.mainTypeSpecified?s.keys()[0]:`series`;ES(n,c,t,u),BS(n)}else g?(ES(n,c,t,`series`),BS(n)):l&&ES(n,c,t,l.main,l.sub)}),c!==`none`&&!_&&!g&&!l)try{this[fS]?(wS(this),DS.update.call(this,e),this[fS]=null):DS[c].call(this,e)}catch(e){throw this[uS]=!1,e}if(p=d?{type:h,escapeConnect:a,batch:f}:f[0],this[uS]=!1,!t){var v=void 0;if(o.refineEvent){var y=o.refineEvent(m,e,r,this._api).eventContent;we(pe(y)),v=z({type:o.refinedEventType},y),v.fromAction=e.type,v.fromActionPayload=e,v.escapeConnect=!0}var b=this._messageCenter;b.trigger(p.type,p),v&&b.trigger(v.type,v)}},jS=function(e){for(var t=this._pendingActions;t.length;){var n=t.shift();AS.call(this,n,e)}},MS=function(e){!e&&this.trigger(`updated`)},NS=function(e,t){e.on(`rendered`,function(n){t.trigger(`rendered`,n),e.animation.isFinished()&&!t[fS]&&!t._scheduler.unfinished&&!t._pendingActions.length?t.trigger(`finished`):e.refresh()})},PS=function(e,t){e.on(`mouseover`,function(e){var n=e.target,r=Eb(n,Td);r&&(fd(r,e,t._api),BS(t))}).on(`mouseout`,function(e){var n=e.target,r=Eb(n,Td);r&&(pd(r,e,t._api),BS(t))}).on(`click`,function(e){var n=e.target,r=Eb(n,function(e){return uu(e).dataIndex!=null},!0);if(r){var i=r.selected?`unselect`:`select`,a=uu(r);t._api.dispatchAction({type:i,dataType:a.dataType,dataIndexInside:a.dataIndex,seriesIndex:a.seriesIndex,isFromClick:!0})}})};function t(e){e.clearColorPalette(),e.eachSeries(function(e){e.clearColorPalette()})}function n(e){var t=[],n=[],r=!1;if(e.eachComponent(function(e,i){var a=i.get(`zlevel`)||0,o=i.get(`z`)||0,s=i.getZLevelKey();r||=!!s,(e===`series`?n:t).push({zlevel:a,z:o,idx:i.componentIndex,type:e,key:s})}),r){var i=t.concat(n),a,o;In(i,function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel}),V(i,function(t){var n=e.getComponent(t.type,t.idx),r=t.zlevel,i=t.key;a!=null&&(r=Math.max(a,r)),i?(r===a&&i!==o&&r++,o=i):o&&=(r===a&&r++,``),a=r,n.setZLevel(r)})}}FS=function(e,t,r,i,a){n(t),IS(e,t,r,i,a),V(e._chartsViews,function(e){e.__alive=!1}),LS(e,t,r,i,a),V(e._chartsViews,function(e){e.__alive||e.remove(t,r)})},IS=function(e,t,n,r,i,a){V(a||e._componentsViews,function(e){var i=e.__model;s(i,e),e.render(i,t,n,r),o(i,e),c(i,e)})},LS=function(e,t,n,r,l,u){var d=e._scheduler;l=L(l||{},{updatedSeries:t.getSeries()}),Db.trigger(`series:beforeupdate`,t,n,l);var f=!1;t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];n.__alive=!0;var i=n.renderTask;d.updatePayload(i,r),s(t,n),u&&u.get(t.uid)&&i.dirty(),i.perform(d.getPerformArgs(i))&&(f=!0),n.group.silent=!!t.get(`silent`),a(t,n),hd(t)}),d.unfinished=f||d.unfinished,Db.trigger(`series:layoutlabels`,t,n,l),Db.trigger(`series:transition`,t,n,l),t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];o(t,n),c(t,n)}),i(e,t),Db.trigger(`series:afterupdate`,t,n,l)},BS=function(e){e[pS]=!0,e.getZr().wakeUp()},HS=function(e){e[dS]=(e[dS]+1)%1e6},VS=function(e){e[pS]&&(e.getZr().storage.traverse(function(e){rp(e)||r(e)}),e[pS]=!1)};function r(e){for(var t=[],n=e.currentStates,r=0;r<n.length;r++){var i=n[r];i!==`emphasis`&&i!==`blur`&&i!==`select`&&t.push(i)}e.selected&&e.states.select&&t.push(`select`),e.hoverState===2&&e.states.emphasis?t.push(`emphasis`):e.hoverState===1&&e.states.blur&&t.push(`blur`),e.useStates(t)}function i(e,t){var n=e._zr;if(n.painter.type===`canvas`){var r=n.storage,i=0;r.traverse(function(e){e.isGroup||i++});var a=i>G(t.get(`hoverLayerThreshold`),Eg.hoverLayerThreshold)&&!d.node&&!d.worker;(e._usingTHL||a)&&(t.eachSeries(function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered(function(e){var t=e.states.emphasis;t&&t.hoverLayer!==2&&(t.hoverLayer=+!!a)})}}),e._usingTHL=a)}}function a(e,t){var n=e.get(`blendMode`)||null;t.eachRendered(function(e){e.isGroup||(e.style.blend=n)})}function o(e,t){if(!e.preventAutoZ){var n=Jp(e);t.eachRendered(function(e){return Xp(e,n.z,n.zlevel),!0})}}function s(e,t){t.eachRendered(function(e){if(!rp(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&=null,t&&t.stateTransition&&(t.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&=null}})}function c(e,t){var n=e.getModel(`stateAnimation`),i=e.isAnimationEnabled(),a=n.get(`duration`),o=a>0?{duration:a,delay:n.get(`delay`),easing:n.get(`easing`)}:null;t.eachRendered(function(e){if(e.states&&e.states.emphasis){if(rp(e))return;if(e instanceof jl&&kd(e),e.__dirty){var t=e.prevStates;t&&e.useStates(t)}if(i){e.stateTransition=o;var n=e.getTextContent(),a=e.getTextGuideLine();n&&(n.stateTransition=o),a&&(a.stateTransition=o)}e.__dirty&&r(e)}})}RS=function(e){return new(function(t){l(n,t);function n(){return t!==null&&t.apply(this,arguments)||this}return n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(n!=null)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){ed(t,n),BS(e)},n.prototype.leaveEmphasis=function(t,n){td(t,n),BS(e)},n.prototype.enterBlur=function(t){nd(t),BS(e)},n.prototype.leaveBlur=function(t){rd(t),BS(e)},n.prototype.enterSelect=function(t){id(t),BS(e)},n.prototype.leaveSelect=function(t){ad(t),BS(e)},n.prototype.getModel=function(){return e.getModel()},n.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},n.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},n.prototype.getECUpdateCycleVersion=function(){return e[dS]},n.prototype.usingTHL=function(){return e._usingTHL},n}(xu))(e)},zS=function(e){function t(e,t){for(var n=0;n<e.length;n++){var r=e[n];r[hS]=t}}V(qS,function(n,r){e._messageCenter.on(r,function(n){if(tC[e.group]&&e[hS]!==gS){if(n&&n.escapeConnect)return;var r=e.makeActionFromEvent(n),i=[];V(eC,function(t){t!==e&&t.group===e.group&&i.push(t)}),t(i,gS),V(i,function(e){e[hS]!==_S&&e.dispatchAction(r)}),t(i,vS)}})})}}(),t}(at),WS=US.prototype;WS.on=yS(`on`),WS.off=yS(`off`),WS.one=function(e,t,n){var r=this;function i(){var n=[...arguments];t&&t.apply&&t.apply(this,n),r.off(e,i)}this.on.call(this,e,i,n)};var GS=[`click`,`dblclick`,`mouseover`,`mouseout`,`mousemove`,`mousedown`,`mouseup`,`globalout`,`contextmenu`],KS={},qS={},JS={},YS=[],XS=[],ZS=[],QS={},$S={},eC={},tC={},nC=new Date-0;new Date-0;var rC=`_echarts_instance_`;function iC(e,t,n){var r=!(n&&n.ssr);if(r){var i=aC(e);if(i)return i}var a=new US(e,t,n);return a.id=`ec_`+nC++,eC[a.id]=a,r&&ss(e,rC,a.id),zS(a),Db.trigger(`afterinit`,a),a}function aC(e){return eC[cs(e,rC)]}function oC(e,t){QS[e]=t}function sC(e){B(XS,e)<0&&XS.push(e)}function cC(e,t){_C(YS,e,t,Zx)}function lC(e){dC(`afterinit`,e)}function uC(e){dC(`afterupdate`,e)}function dC(e,t){Db.on(e,t)}function fC(e,t,n){var r,i,a,o,s;ue(t)&&(n=t,t=``),pe(e)?(r=e.type,i=e.event,o=e.update,s=e.publishNonRefinedEvent,n||=e.action,a=e.refineEvent):(r=e,i=t);function c(e){return e.toLowerCase()}i=c(i||r);var l=a?c(r):i;KS[r]||(we(mS.test(r)&&mS.test(i)),a&&we(i!==r),KS[r]={actionType:r,refinedEventType:i,nonRefinedEventType:l,update:o,action:n,refineEvent:a},JS[i]=1,a&&s&&(JS[l]=1),qS[l]=r)}function pC(e,t){qh.register(e,t)}function mC(e,t){_C(ZS,e,t,$x,`layout`,!0)}function hC(e,t){_C(ZS,e,t,nS,`visual`,!0)}var gC=[];function _C(e,t,n,r,i,a){if((ue(t)||pe(t))&&(n=t,t=r),!(B(gC,n)>=0)){gC.push(n);var o=Zy.wrapStageHandler(n,i);o.__prio=t,o.__raw=n,e.push(o)}}function vC(e,t){$S[e]=t}function yC(e,t,n){var r=Ab(`registerMap`);r&&r(e,t,n)}var bC=Dv;hC(tS,Gy),hC(iS,qy),hC(iS,Jy),hC(tS,yb),hC(iS,bb),hC(cS,Wx),sC(k_),cC(Jx,A_),vC(`default`,Xy),fC({type:ku,event:ku,update:ku},Le),fC({type:Au,event:Au,update:Au},Le),fC({type:ju,event:Pu,update:ju,action:Le,refineEvent:xC,publishNonRefinedEvent:!0}),fC({type:Mu,event:Pu,update:Mu,action:Le,refineEvent:xC,publishNonRefinedEvent:!0}),fC({type:Nu,event:Pu,update:Nu,action:Le,refineEvent:xC,publishNonRefinedEvent:!0});function xC(e,t,n,r){return{eventContent:{selected:gd(n),isFromClick:t.isFromClick||!1}}}oC(`default`,{}),oC(`dark`,hb);function SC(e){return e==null?0:e.length||1}function CC(e){return e}var wC=function(){function e(e,t,n,r,i,a){this._old=e,this._new=t,this._oldKeyGetter=n||CC,this._newKeyGetter=r||CC,this.context=i,this._diffModeMultiple=a===`multiple`}return e.prototype.add=function(e){return this._add=e,this},e.prototype.update=function(e){return this._update=e,this},e.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},e.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},e.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},e.prototype.remove=function(e){return this._remove=e,this},e.prototype.execute=function(){this[this._diffModeMultiple?`_executeMultiple`:`_executeOneToOne`]()},e.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},r=Array(e.length),i=Array(t.length);this._initIndexMap(e,null,r,`_oldKeyGetter`),this._initIndexMap(t,n,i,`_newKeyGetter`);for(var a=0;a<e.length;a++){var o=r[a],s=n[o],c=SC(s);if(c>1){var l=s.shift();s.length===1&&(n[o]=s[0]),this._update&&this._update(l,a)}else c===1?(n[o]=null,this._update&&this._update(s,a)):this._remove&&this._remove(a)}this._performRestAdd(i,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},r={},i=[],a=[];this._initIndexMap(e,n,i,`_oldKeyGetter`),this._initIndexMap(t,r,a,`_newKeyGetter`);for(var o=0;o<i.length;o++){var s=i[o],c=n[s],l=r[s],u=SC(c),d=SC(l);if(u>1&&d===1)this._updateManyToOne&&this._updateManyToOne(l,c),r[s]=null;else if(u===1&&d>1)this._updateOneToMany&&this._updateOneToMany(l,c),r[s]=null;else if(u===1&&d===1)this._update&&this._update(l,c),r[s]=null;else if(u>1&&d>1)this._updateManyToMany&&this._updateManyToMany(l,c),r[s]=null;else if(u>1)for(var f=0;f<u;f++)this._remove&&this._remove(c[f]);else this._remove&&this._remove(c)}this._performRestAdd(a,r)},e.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=t[r],a=SC(i);if(a>1)for(var o=0;o<a;o++)this._add&&this._add(i[o]);else a===1&&this._add&&this._add(i);t[r]=null}},e.prototype._initIndexMap=function(e,t,n,r){for(var i=this._diffModeMultiple,a=0;a<e.length;a++){var o=`_ec_`+this[r](e[a],a);if(i||(n[a]=o),t){var s=t[o],c=SC(s);c===0?(t[o]=a,i&&n.push(o)):c===1?t[o]=[s,a]:s.push(a)}}},e}(),TC=function(){function e(e,t){this._encode=e,this._schema=t}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||=this._schema?this._schema.makeOutputDimensionNames():[],this._cachedDimNames},e}();function EC(e,t){var n={},r=n.encode={},i=Ne(),a=[],o=[],s={};V(e.dimensions,function(t){var n=e.getDimensionInfo(t),c=n.coordDim;if(c){var l=n.coordDimIndex;DC(r,c)[l]=t,n.isExtraCoord||(i.set(c,1),kC(n.type)&&(a[0]=t),DC(s,c)[l]=e.getDimensionIndex(n.name)),n.defaultTooltip&&o.push(t)}fu.each(function(e,t){var i=DC(r,t),a=n.otherDims[t];a!=null&&a!==!1&&(i[a]=n.name)})});var c=[],l={};i.each(function(e,t){var n=r[t];l[t]=n[0],c=c.concat(n)}),n.dataDimsOnCoord=c,n.dataDimIndicesOnCoord=H(c,function(t){return e.getDimensionInfo(t).storeDimIndex}),n.encodeFirstDimNotExtra=l;var u=r.label;u&&u.length&&(a=u.slice());var d=r.tooltip;return d&&d.length?o=d.slice():o.length||(o=a.slice()),r.defaultedLabel=a,r.defaultedTooltip=o,n.userOutput=new TC(s,t),n}function DC(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function OC(e){return e===`category`?`ordinal`:e===`time`?`time`:`float`}function kC(e){return e!==`ordinal`&&e!==`time`}var AC=function(){function e(e){this.otherDims={},e!=null&&L(this,e)}return e}(),jC=es(),MC={float:`f`,int:`i`,ordinal:`o`,number:`n`,time:`t`},NC=function(){function e(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||=IC(this.source))},e.prototype.getSourceDimensionIndex=function(e){return G(this._dimNameMap.get(e),-1)},e.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},e.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=U_(this.source),n=!LC(e),r=``,i=[],a=0,o=0;a<e;a++){var s=void 0,c=void 0,l=void 0,u=this.dimensions[o];if(u&&u.storeDimIndex===a)s=t?u.name:null,c=u.type,l=u.ordinalMeta,o++;else{var d=this.getSourceDimension(a);d&&(s=t?d.name:null,c=d.type)}i.push({property:s,type:c,ordinalMeta:l}),t&&s!=null&&(!u||!u.isCalculationCoord)&&(r+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),r+=`$`,r+=MC[c]||`f`,l&&(r+=l.uid),r+=`$`}var f=this.source;return{dimensions:i,hash:[f.seriesLayoutBy,f.startIndex,r].join(`$$`)}},e.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var r=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===t)i.isCalculationCoord||(r=i.name),n++;else{var a=this.getSourceDimension(t);a&&(r=a.name)}e.push(r)}return e},e.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function PC(e){return e instanceof NC}function FC(e){for(var t=Ne(),n=0;n<(e||[]).length;n++){var r=e[n],i=pe(r)?r.name:r;i!=null&&t.get(i)==null&&t.set(i,n)}return t}function IC(e){var t=jC(e);return t.dimNameMap||=FC(e.dimensionsDefine)}function LC(e){return e>30}var RC=pe,zC=H,BC=typeof Int32Array>`u`?Array:Int32Array,VC=`e\0\0`,HC=-1,UC=[`hasItemOption`,`_nameList`,`_idList`,`_invertedIndicesMap`,`_dimSummary`,`userOutput`,`_rawData`,`_dimValueGetter`,`_nameDimIdx`,`_idDimIdx`,`_nameRepeatCount`],WC=[`_approximateExtent`],GC,KC,qC,JC,YC,XC,ZC,QC=function(){function e(e,t){this.type=`list`,this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=[`cloneShallow`,`downSample`,`minmaxDownSample`,`lttbDownSample`,`map`],this.CHANGABLE_METHODS=[`filterSelf`,`selectRange`],this.DOWNSAMPLE_METHODS=[`downSample`,`minmaxDownSample`,`lttbDownSample`];var n,r=!1;PC(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(r=!0,n=e),n||=[`x`,`y`];for(var i={},a=[],o={},s=!1,c={},l=0;l<n.length;l++){var u=n[l],d=W(u)?new AC({name:u}):u instanceof AC?u:new AC(u),f=d.name;d.type=d.type||`float`,d.coordDim||(d.coordDim=f,d.coordDimIndex=0);var p=d.otherDims=d.otherDims||{};a.push(f),i[f]=d,c[f]!=null&&(s=!0),d.createInvertedIndices&&(o[f]=[]),r&&(d.storeDimIndex=l),p.itemName===0&&(this._nameDimIdx=d.storeDimIndex),p.itemId===0&&(this._idDimIdx=d.storeDimIndex)}if(this.dimensions=a,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=t,this._invertedIndicesMap=o,this._dimOmitted){var m=this._dimIdxToName=Ne();V(a,function(e){m.set(i[e].storeDimIndex,e)})}}return e.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(t==null)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var n=this._dimIdxToName.get(t);if(n!=null)return n;var r=this._schema.getSourceDimension(t);if(r)return r.name},e.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(t!=null)return t;if(e==null)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},e.prototype._recognizeDimIndex=function(e){if(fe(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},e.prototype._getStoreDimIndex=function(e){return this.getDimensionIndex(e)},e.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},e.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(e){return t.hasOwnProperty(e)?t[e]:void 0}:function(e){return t[e]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(t==null)return n.encodeFirstDimNotExtra[e];var r=n.encode[e];return r?r[t]:null},e.prototype.mapDimensionsAll=function(e){return(this._dimSummary.encode[e]||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(e,t,n){var r=this,i;if(e instanceof Bv&&(i=e),!i){var a=this.dimensions,o=P_(e)||ne(e)?new X_(e,a.length):e;i=new Bv;var s=zC(a,function(e){return{type:r._dimInfos[e].type,property:e}});i.initData(o,s,n)}this._store=i,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=EC(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},e.prototype.appendValues=function(e,t){var n=this._store.appendValues(e,t&&t.length),r=n.start,i=n.end,a=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var o=r;o<i;o++){var s=o-r;this._nameList[o]=t[s],a&&ZC(this,o)}},e.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var r=this._dimInfos[t[n]];r.ordinalMeta&&e.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==`typedArray`&&!e.fillStorage},e.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,i=this._idList;if(n.getSource().sourceFormat===`original`&&!n.pure)for(var a=[],o=e;o<t;o++){var s=n.getItem(o,a);if(!this.hasItemOption&&Ro(s)&&(this.hasItemOption=!0),s){var c=s.name;r[o]==null&&c!=null&&(r[o]=Jo(c,null));var l=s.id;i[o]==null&&l!=null&&(i[o]=Jo(l,null))}}if(this._shouldMakeIdFromName())for(var o=e;o<t;o++)ZC(this,o);GC(this)}},e.prototype.getApproximateExtent=function(e,t){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e),t)},e.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},e.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},e.prototype.setCalculationInfo=function(e,t){RC(e)?L(this._calculationInfo,e):this._calculationInfo[e]=t},e.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return n==null&&this._nameDimIdx!=null&&(n=qC(this,this._nameDimIdx,t)),n??=``,n},e.prototype._getCategory=function(e,t){var n=this._store.get(e,t),r=this._store.getOrdinalMeta(e);return r?r.categories[n]:n},e.prototype.getId=function(e){return KC(this,this.getRawIndex(e))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.get(r.storeDimIndex,t)},e.prototype.getByRawIndex=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.getByRawIndex(r.storeDimIndex,t)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e),null)},e.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},e.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},e.prototype.getValues=function(e,t){var n=this,r=this._store;return U(e)?r.getValues(zC(e,function(e){return n._getStoreDimIndex(e)}),t):r.getValues(e)},e.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,r=t.length;n<r;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},e.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;t++)if(this.getName(t)===e)return t;return-1},e.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},e.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},e.prototype.rawIndexOf=function(e,t){var n=e&&this._invertedIndicesMap[e],r=n&&n[t];return r==null||isNaN(r)?HC:r},e.prototype.each=function(e,t,n){ue(e)&&(n=t,t=e,e=[]);var r=n||this,i=zC(JC(e),this._getStoreDimIndex,this);this._store.each(i,r?ce(t,r):t)},e.prototype.filterSelf=function(e,t,n){ue(e)&&(n=t,t=e,e=[]);var r=n||this,i=zC(JC(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?ce(t,r):t),this},e.prototype.selectRange=function(e){var t=this,n={},r=oe(e),i=[];return V(r,function(r){var a=t._getStoreDimIndex(r);n[a]=e[r],i.push(a)}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(e,t,n){ue(e)&&(n=t,t=e,e=[]),n||=this;var r=[];return this.each(e,function(){r.push(t&&t.apply(this,arguments))},n),r},e.prototype.map=function(e,t,n,r){var i=n||r||this,a=zC(JC(e),this._getStoreDimIndex,this),o=XC(this);return o._store=this._store.map(a,i?ce(t,i):t),o},e.prototype.modify=function(e,t,n,r){var i=n||r||this,a=zC(JC(e),this._getStoreDimIndex,this);this._store.modify(a,i?ce(t,i):t)},e.prototype.downSample=function(e,t,n,r){var i=XC(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,n,r),i},e.prototype.minmaxDownSample=function(e,t){var n=XC(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),n},e.prototype.lttbDownSample=function(e,t){var n=XC(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},e.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},e.prototype.getItemModel=function(e){var t=this.hostModel;return new Am(this.getRawDataItem(e),t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new wC(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(t){return KC(e,t)},function(e){return KC(t,e)})},e.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},e.prototype.setVisual=function(e,t){this._visual=this._visual||{},RC(e)?L(this._visual,e):this._visual[e]=t},e.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e];return(n&&n[t])??this.getVisual(t)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];r||=n[e]={};var i=r[t];return i??(i=this.getVisual(t),U(i)?i=i.slice():RC(i)&&(i=L({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,RC(t)?L(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){RC(e)?L(this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?L(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){du(this.hostModel&&this.hostModel.seriesIndex,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){V(this._graphicEls,function(n,r){n&&e&&e.call(t,n,r)})},e.prototype.cloneShallow=function(t){return t||=new e(this._schema?this._schema:zC(this.dimensions,this._getDimInfo,this),this.hostModel),YC(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];ue(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(Se(arguments)))})},e.internalField=function(){GC=function(e){var t=e._invertedIndicesMap;V(t,function(n,r){var i=e._dimInfos[r],a=i.ordinalMeta,o=e._store;if(a){n=t[r]=new BC(a.categories.length);for(var s=0;s<n.length;s++)n[s]=HC;for(var s=0;s<o.count();s++)n[o.get(i.storeDimIndex,s)]=s}})},qC=function(e,t,n){return Jo(e._getCategory(t,n),null)},KC=function(e,t){var n=e._idList[t];return n==null&&e._idDimIdx!=null&&(n=qC(e,e._idDimIdx,t)),n??=VC+t,n},JC=function(e){return U(e)||(e=e==null?[]:[e]),e},XC=function(t){var n=new e(t._schema?t._schema:zC(t.dimensions,t._getDimInfo,t),t.hostModel);return YC(n,t),n},YC=function(e,t){V(UC.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,V(WC,function(n){e[n]=F(t[n])}),e._calculationInfo=L({},t._calculationInfo)},ZC=function(e,t){var n=e._nameList,r=e._idList,i=e._nameDimIdx,a=e._idDimIdx,o=n[t],s=r[t];if(o==null&&i!=null&&(n[t]=o=qC(e,i,t)),s==null&&a!=null&&(r[t]=s=qC(e,a,t)),s==null&&o!=null){var c=e._nameRepeatCount,l=c[o]=(c[o]||0)+1;s=o,l>1&&(s+=`__ec__`+l),r[t]=s}}}(),e}();function $C(e,t){P_(e)||(e=I_(e)),t||={};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=Ne(),a=[],o=ew(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&LC(o),c=r===e.dimensionsDefine,l=c?IC(e):FC(r),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(e,o));for(var d=Ne(u),f=new Nv(o),p=0;p<f.length;p++)f[p]=-1;function m(e){var t=f[e];if(t<0){var n=r[e],i=pe(n)?n:{name:n},o=new AC,s=i.name;return s!=null&&l.get(s)!=null&&(o.name=o.displayName=s),i.type!=null&&(o.type=i.type),i.displayName!=null&&(o.displayName=i.displayName),f[e]=a.length,o.storeDimIndex=e,a.push(o),o}return a[t]}if(!s)for(var p=0;p<o;p++)m(p);d.each(function(e,t){var n=Po(e).slice();if(n.length===1&&!W(n[0])&&n[0]<0){d.set(t,!1);return}var r=d.set(t,[]);V(n,function(e,n){var i=W(e)?l.get(e):e;i!=null&&i<o&&(r[n]=i,g(m(i),t,n))})});var h=0;V(n,function(e){var t,n,r,i;if(W(e))t=e,i={};else{i=e,t=i.name;var a=i.ordinalMeta;i.ordinalMeta=null,i=L({},i),i.ordinalMeta=a,n=i.dimsDef,r=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null}var s=d.get(t);if(s!==!1){if(s=Po(s),!s.length)for(var l=0;l<(n&&n.length||1);l++){for(;h<o&&m(h).coordDim!=null;)h++;h<o&&s.push(h++)}V(s,function(e,a){var o=m(e);if(c&&i.type!=null&&(o.type=i.type),g(z(o,i),t,a),o.name==null&&n){var s=n[a];!pe(s)&&(s={name:s}),o.name=o.displayName=s.name,o.defaultTooltip=s.defaultTooltip}r&&z(o.otherDims,r)})}});function g(e,t,n){fu.get(t)==null?(e.coordDim=t,e.coordDimIndex=n,i.set(t,!0)):e.otherDims[t]=n}var _=t.generateCoord,v=t.generateCoordCount,y=v!=null;v=_?v||1:0;var b=_||`value`;function x(e){e.name??=e.coordDim}if(s)V(a,function(e){x(e)}),a.sort(function(e,t){return e.storeDimIndex-t.storeDimIndex});else for(var S=0;S<o;S++){var C=m(S);C.coordDim??(C.coordDim=tw(b,i,y),C.coordDimIndex=0,(!_||v<=0)&&(C.isExtraCoord=!0),v--),x(C),C.type==null&&(Pg(e,S)===Dg.Must||C.isExtraCoord&&(C.otherDims.itemName!=null||C.otherDims.seriesName!=null))&&(C.type=`ordinal`)}return Ss(a,function(e){return e.name},function(e,t){t>0&&(e.name+=t-1)}),new NC({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function ew(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return V(t,function(e){var t;pe(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))}),i}function tw(e,t,n){if(n||t.hasKey(e)){for(var r=0;t.hasKey(e+r);)r++;e+=r}return t.set(e,!0),e}var nw=function(){function e(e){this.coordSysDims=[],this.axisMap=Ne(),this.categoryAxisMap=Ne(),this.coordSysName=e}return e}();function rw(e){var t=e.get(`coordinateSystem`),n=new nw(t),r=iw[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var iw={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents(`xAxis`,is).models[0],a=e.getReferringComponents(`yAxis`,is).models[0];t.coordSysDims=[`x`,`y`],n.set(`x`,i),n.set(`y`,a),aw(i)&&(r.set(`x`,i),t.firstCategoryDimIndex=0),aw(a)&&(r.set(`y`,a),t.firstCategoryDimIndex??=1)},singleAxis:function(e,t,n,r){var i=e.getReferringComponents(`singleAxis`,is).models[0];t.coordSysDims=[`single`],n.set(`single`,i),aw(i)&&(r.set(`single`,i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents(`polar`,is).models[0],a=i.findAxisModel(`radiusAxis`),o=i.findAxisModel(`angleAxis`);t.coordSysDims=[`radius`,`angle`],n.set(`radius`,a),n.set(`angle`,o),aw(a)&&(r.set(`radius`,a),t.firstCategoryDimIndex=0),aw(o)&&(r.set(`angle`,o),t.firstCategoryDimIndex??=1)},geo:function(e,t,n,r){t.coordSysDims=[`lng`,`lat`]},parallel:function(e,t,n,r){var i=e.ecModel,a=i.getComponent(`parallel`,e.get(`parallelIndex`)),o=t.coordSysDims=a.dimensions.slice();V(a.parallelAxisIndex,function(e,a){var s=i.getComponent(`parallelAxis`,e),c=o[a];n.set(c,s),aw(s)&&(r.set(c,s),t.firstCategoryDimIndex??=a)})},matrix:function(e,t,n,r){var i=e.getReferringComponents(`matrix`,is).models[0];t.coordSysDims=[`x`,`y`];var a=i.getDimensionModel(`x`),o=i.getDimensionModel(`y`);n.set(`x`,a),n.set(`y`,o),r.set(`x`,a),r.set(`y`,o)}};function aw(e){return e.get(`type`)===`category`}function ow(e,t,n){n||={};var r=n.byIndex,i=n.stackedCoordDimension,a,o,s;sw(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var c=!!(e&&e.get(`stack`)),l,u,d,f,p=!0;function m(e){return e.type!==`ordinal`&&e.type!==`time`}if(V(a,function(e,t){W(e)&&(a[t]=e={name:e}),m(e)||(p=!1)}),V(a,function(e,t){c&&!e.isExtraCoord&&(!r&&!l&&e.ordinalMeta&&(l=e),!u&&m(e)&&(!p||e.coordDim!==`x`&&e.coordDim!==`angle`)&&(!i||i===e.coordDim)&&(u=e))}),u&&!r&&!l&&(r=!0),u){d=`__\0ecstackresult_`+e.id,f=`__\0ecstackedover_`+e.id,l&&(l.createInvertedIndices=!0);var h=u.coordDim,g=u.type,_=0;V(a,function(e){e.coordDim===h&&_++});var v={name:d,coordDim:h,coordDimIndex:_,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:f,coordDim:f,coordDimIndex:_+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(v.storeDimIndex=s.ensureCalculationDimension(f,g),y.storeDimIndex=s.ensureCalculationDimension(d,g)),o.appendCalculationDimension(v),o.appendCalculationDimension(y)):(a.push(v),a.push(y))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:r,stackedOverDimension:f,stackResultDimension:d}}function sw(e){return!PC(e.schema)}function cw(e,t){return!!t&&t===e.getCalculationInfo(`stackedDimension`)}function lw(e,t){return cw(e,t)?e.getCalculationInfo(`stackResultDimension`):t}function uw(e,t){var n=e.get(`coordinateSystem`),r=qh.get(n),i;return t&&t.coordSysDims&&(i=H(t.coordSysDims,function(e){var n={name:e},r=t.axisMap.get(e);return r&&(n.type=OC(r.get(`type`))),n})),i||=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||[`x`,`y`],i}function dw(e,t,n){var r,i;return n&&V(e,function(e,a){var o=e.coordDim,s=n.categoryAxisMap.get(o);s&&(r??=a,e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),e.otherDims.itemName!=null&&(i=!0)}),!i&&r!=null&&(e[r].otherDims.itemName=0),r}function fw(e,t,n){n||={};var r=t.getSourceManager(),i,a=!1;e?(a=!0,i=I_(e)):(i=r.getSource(),a=i.sourceFormat===pu);var o=rw(t),s=uw(t,o),c=n.useEncodeDefaulter,l=ue(c)?c:c?le(Ag,s,t):null,u={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},d=$C(i,u),f=dw(d.dimensions,n.createInvertedIndices,o),p=a?null:r.getSharedDataStore(d),m=ow(t,{schema:d,store:p}),h=new QC(d,t);h.setCalculationInfo(m);var g=f!=null&&pw(i)?function(e,t,n,r){return r===f?n:this.defaultDimValueGetter(e,t,n,r)}:null;return h.hasItemOption=!1,h.initData(a?i:p,null,g),h}function pw(e){if(e.sourceFormat===`original`)return!U(Lo(mw(e.data||[])))}function mw(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var hw=function(){function e(){}return e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();Hs(hw);var gw=0,_w=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++gw,this._onCollect=e.onCollect}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&H(r,vw);return new e({categories:i,needCollect:!i,deduplication:n.dedplication!==!1})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!W(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,this._onCollect&&this._onCollect(e,t),t;var r=this._getOrCreateMap();return t=r.get(e),t??(n?(t=this.categories.length,this.categories[t]=e,r.set(e,t),this._onCollect&&this._onCollect(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||=Ne(this.categories)},e}();function vw(e){return pe(e)&&e.value!=null?e.value:e+``}var yw=oe({needTransform:1,normalize:1,scale:1,transformIn:1,transformOut:1,contain:1,getExtent:1,getExtentUnsafe:1,setExtent:1,setExtent2:1,getFilter:1,sanitize:1,getDefaultStartValue:1,freeze:1});function bw(e,t,n){var r;e||={};var i=Ym();if(i){var a=i.createBreakScaleMapper(t,n);a.hasBreaks()&&(V(yw,function(t){a[t]&&(e[t]=ce(a[t],a))}),r=a)}return r??Dw(e,n),{brk:r,mapper:e}}function xw(e,t){V(yw,function(n){e[n]=t[n]})}function Sw(e,t){e.freeze=Le}function Cw(e){return e.getExtentUnsafe(0,2)}function ww(e,t){return e.getExtentUnsafe(1,t)||e.getExtentUnsafe(0,t)}function Tw(e){var t=ww(e,3);return t[1]-t[0]}function Ew(e){var t=e.getExtentUnsafe(0,3);return t[1]-t[0]}function Dw(e,t){var n=e||{},r=[];return n._extents=r,r[0]=t?t.slice():ds(),L(n,Ow),n}var Ow={needTransform:function(){return!1},normalize:function(e){var t=this._extents[1]||this._extents[0];return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])},scale:function(e){var t=this._extents[1]||this._extents[0];return e*(t[1]-t[0])+t[0]},transformIn:function(e){return e},transformOut:function(e){return e},contain:function(e){var t=ww(this,null);return e>=t[0]&&e<=t[1]},getExtent:function(){return this._extents[0].slice()},getExtentUnsafe:function(e){return this._extents[e]},setExtent:function(e,t){kw(this._extents,0,e,t)},setExtent2:function(e,t,n){var r=this._extents;r[e]||(r[e]=r[0].slice()),kw(r,e,t,n)},freeze:function(){}};function kw(e,t,n,r){_s(n,r)&&(e[t][0]=n,e[t][1]=r)}function Aw(e){return jw(e)||Nw(e)}function jw(e){return e.type===`interval`}function Mw(e){return e.type===`time`}function Nw(e){return e.type===`log`}function Pw(e){return e.type===`ordinal`}function Fw(e){var t=_o(e),n=qa(10,t),r=Wa(e/n);return r?r===2?r=3:r===3?r=5:r*=2:r=1,ro(r*n,-t)}function Iw(e){return ao(e)+2}function Lw(e,t){return Ja(e)/Ja(t)}function Rw(e,t,n){var r=n&&n.lookup;if(r){for(var i=0;i<r.from.length;i++)if(e===r.from[i])return r.to[i]}return qa(t,e)}function zw(e,t,n){var r=e.slice();if(r[0]===r[1]){var i=n&&n.ctnShp;if(r[0]!==0){var a=Ua(r[0]);t[1]||(r[1]+=a/2),r[0]-=a/2}else i&&(r[0]=-1),r[1]=1}return(!gs(r[0])||!gs(r[1]))&&(r[0]=0,r[1]=1),r[1]<r[0]&&r.reverse(),r}function Bw(e,t){return[e[0]!==t[0],e[1]!==t[1]]}function Vw(e,t){return e||=t,Wa(Ha(e,1))}function Hw(e,t,n){var r=Cw(e),i=r[0],a=e.count(),o=Math.max((t||0)+1,1);i!==0&&o>1&&a/o>2&&(i=Math.round(Math.ceil(i/o)*o)),i!==r[0]&&c(r[0],!0,!0);for(var s=i;s<=r[1];s+=o)c(s,!1,s===r[0]||s===r[1]);s-o!==r[1]&&c(r[1],!0,!0);function c(e,t,r){n({value:e,offInterval:t},r)}}var Uw=function(e){l(t,e);function t(n){var r=e.call(this)||this;r.type=`ordinal`,r.parse=t.parse,xw(r,t.decoratedMethods);var i=n.ordinalMeta;i||=new _w({}),U(i)&&(i=new _w({categories:H(i,function(e){return pe(e)?e.value:e})})),r._ordinalMeta=i;var a=bw(null,null,n.extent||[0,i.categories.length-1]);return r._mapper=a.mapper,Sw(r,a.mapper),r}return t.parse=function(e){return e==null?e=NaN:W(e)?(e=this._ordinalMeta.getOrdinal(e),e??=NaN):e=Wa(e),e},t.prototype.getTicks=function(){var e=[];return Hw(this,0,function(t){e.push(t)}),e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,a=this._ordinalMeta.categories.length,o=Va(a,t.length);i<o;++i){var s=n[i]=t[i];r[s]=i}for(var c=0;i<a;++i){for(;r[c]!=null;)c++;n[i]=c,r[c]=i}},t.prototype._getTickNumber=function(e){var t=this._ticksByOrdinalNumber;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getRawOrdinalNumber=function(e){var t=this._ordinalNumbersByTick;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var t=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[t];return n==null?``:n+``}},t.prototype.count=function(){var e=Cw(this._mapper);return e[1]-e[0]+1},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.type=`ordinal`,t.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(e){return this._mapper.contain(this._getTickNumber(e))&&e>=0&&e<this._ordinalMeta.categories.length},normalize:function(e){return this._mapper.normalize(this._getTickNumber(e))},scale:function(e){return this.getRawOrdinalNumber(Wa(this._mapper.scale(e)))},transformIn:function(e,t){return this._mapper.transformIn(this._getTickNumber(e),t)},transformOut:function(e,t){return this.getRawOrdinalNumber(this._mapper.transformOut(e,t))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(e,t){return this._mapper.getExtentUnsafe(e,t)},setExtent:function(e,t){return this._mapper.setExtent(e,t)},setExtent2:function(e,t,n){return this._mapper.setExtent2(e,t,n)}},t}(hw);hw.registerClass(Uw);function Ww(e,t,n,r){for(var i=e.getTicks({expandToNicedExtent:!0}),a=[],o=e.getExtent(),s=1;s<i.length;s++){var c=i[s],l=i[s-1];if(!(l.break||c.break)){for(var u=0,d=[],f=(c.value-l.value)/t,p=Iw(f);u<t-1;){var m=ro(l.value+(u+1)*f,p);m>o[0]&&m<o[1]&&d.push(m),u++}var h=Ym();h&&h.pruneTicksByBreak(`auto`,d,n,function(e){return e},r,o),a.push(d)}}return a}var Gw=function(e){l(t,e);function t(n){var r=e.call(this)||this;return r.type=`interval`,r.parse=t.parse,n||={},r.brk=bw(r,Xm(r,n),null).brk,r._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},r}return t.parse=function(e){return e==null||e===``?NaN:Number(e)},t.prototype.getConfig=function(){return F(this._cfg)},t.prototype.setConfig=function(e){var t=Cw(this);this._cfg=e=F(e),e.niceExtent??(e.niceExtent=t.slice()),e.intervalPrecision??(e.intervalPrecision=Iw(e.interval))},t.prototype.getTicks=function(e){e||={};var t=this._cfg,n=t.interval,r=Cw(this),i=t.niceExtent,a=t.intervalPrecision,o=Ym(),s=this.brk,c=o&&s,l=[];if(!n)return l;if(e.breakTicks===`only_break`&&c)return o.addBreaksToTicks(l,s.breaks,r),l;var u=3e3;r[0]<i[0]&&l.push({value:e.expandToNicedExtent?ro(i[0]-n,a):r[0]});for(var d=function(e,t){return Wa((t-e)/n)},f=t.intervalCount,p=i[0],m=0;;m++){if(f==null){if(p>i[1]||!isFinite(p)||!isFinite(i[1]))break}else{if(m>f)break;p=Va(p,i[1]),m===f&&(p=i[1])}if(l.push({value:p}),p=ro(p+n,a),s){var h=s.calcNiceTickMultiple(p,d);h>=0&&(p=ro(p+h*n,a))}if(l.length>0&&p===l[l.length-1].value)break;if(l.length>u)return[]}var g=l.length?l[l.length-1].value:i[1];return r[1]>g&&l.push({value:e.expandToNicedExtent?ro(g+n,a):r[1]}),c&&o.pruneTicksByBreak(e.pruneByBreak,l,s.breaks,function(e){return e.value},t.interval,r),c&&e.breakTicks!==`none`&&o.addBreaksToTicks(l,s.breaks,r),l},t.prototype.getMinorTicks=function(e){return Ww(this,e,Zm(this),this._cfg.interval)},t.prototype.getLabel=function(e,t){if(e==null)return``;var n=t&&t.precision;return n==null?n=ao(e.value)||0:n===`auto`&&(n=this._cfg.intervalPrecision),Fh(ro(e.value,n,!0))},t.type=`interval`,t}(hw);hw.registerClass(Gw);var Kw=function(e,t,n,r){for(;n<r;){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n},qw=function(e){l(t,e);function t(n){var r=e.call(this)||this;return r.type=`time`,r.parse=t.parse,r._locale=n.locale,r._useUTC=n.useUTC,r._interval=0,r.brk=bw(r,Xm(r,n),null).brk,r}return t.prototype.getLabel=function(e){return _h(e.value,ch[gh(mh(this._minLevelUnit))]||ch.second,this._useUTC,this._locale)},t.prototype.getFormattedLabel=function(e,t,n){return vh(e,t,n,this._locale,this._useUTC)},t.prototype.getTicks=function(e){e||={};var t=this._interval,n=Cw(this),r=Ym(),i=this.brk,a=r&&i,o=[];if(!t)return o;var s=this._useUTC;if(a&&e.breakTicks===`only_break`)return Ym().addBreaksToTicks(o,i.breaks,n),o;o=rT(this._minLevelUnit,this._approxInterval,s,n,Ew(this),i);var c=lh.length-1,l=0;return V(o,function(e){e.time&&(c=Math.min(c,B(lh,e.time.upperTimeUnit)),l=Math.max(l,e.time.level))}),a&&Ym().pruneTicksByBreak(e.pruneByBreak,o,i.breaks,function(e){return e.value},this._approxInterval,n),a&&e.breakTicks!==`none`&&Ym().addBreaksToTicks(o,i.breaks,n,function(e){for(var t=Math.max(B(lh,yh(e.vmin,s)),B(lh,yh(e.vmax,s))),n=0,r=0;r<lh.length;r++)if(!Yw(lh[r],e.vmin,e.vmax,s)){n=r;break}var i=Math.min(n,c);return{level:l,lowerTimeUnit:lh[Math.max(i,t)],upperTimeUnit:lh[i]}}),o},t.prototype.getMinorTicks=function(e){return Ww(this,e,Zm(this),this._interval)},t.prototype.setTimeInterval=function(e){this._interval=e.interval,this._approxInterval=e.approxInterval,this._minLevelUnit=e.minLevelUnit},t.parse=function(e){return fe(e)?Math.round(e):+ho(e)},t.type=`time`,t}(hw),Jw=[[`second`,$m],[`minute`,eh],[`hour`,th],[`quarter-day`,th*6],[`half-day`,th*12],[`day`,nh*1.2],[`half-week`,nh*3.5],[`week`,nh*7],[`month`,nh*31],[`quarter`,nh*95],[`half-year`,rh/2],[`year`,rh]];function Yw(e,t,n,r){return bh(new Date(t),e,r).getTime()===bh(new Date(n),e,r).getTime()}function Xw(e,t){return e/=nh,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function Zw(e){var t=30*nh;return e/=t,e>6?6:e>3?3:e>2?2:1}function Qw(e){return e/=th,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function $w(e,t){return e/=t?eh:$m,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function eT(e){return Ha(vo(e,!0),1)}function tT(e,t,n){var r=Math.max(0,B(lh,t)-1);return bh(new Date(e),lh[r],n).getTime()}function nT(e,t){var n=new Date(0);n[e](1);var r=n.getTime();n[e](1+t);var i=n.getTime()-r;return function(e,t){return Math.max(0,Math.round((t-e)/i))}}function rT(e,t,n,r,i,a){var o=uh,s=0;function c(e,t,n,i,o,c,l){for(var u=nT(o,e),d=t,f=new Date(d);d<n&&d<=r[1]&&(l.push({value:d}),!(s++>3e3));)if(f[o](f[i]()+e),d=f.getTime(),a){var p=a.calcNiceTickMultiple(d,u);p>0&&(f[o](f[i]()+p*e),d=f.getTime())}l.push({value:d,notAdd:d>r[1]})}function l(e,i,a){var o=[],s=!i.length;if(!Yw(mh(e),r[0],r[1],n)){s&&(i=[{value:tT(r[0],e,n)},{value:r[1]}]);for(var l=0;l<i.length-1;l++){var u=i[l].value,d=i[l+1].value;if(u!==d){var f=void 0,p=void 0,m=void 0,h=!1;switch(e){case`year`:f=Math.max(1,Math.round(t/nh/365)),p=xh(n),m=Oh(n);break;case`half-year`:case`quarter`:case`month`:f=Zw(t),p=Sh(n),m=kh(n);break;case`week`:case`half-week`:case`day`:f=Xw(t,31),p=Ch(n),m=Ah(n),h=!0;break;case`half-day`:case`quarter-day`:case`hour`:f=Qw(t),p=wh(n),m=jh(n);break;case`minute`:f=$w(t,!0),p=Th(n),m=Mh(n);break;case`second`:f=$w(t,!1),p=Eh(n),m=Nh(n);break;case`millisecond`:f=eT(t),p=Dh(n),m=Ph(n)}d>=r[0]&&u<=r[1]&&c(f,u,d,p,m,h,o),e===`year`&&a.length>1&&l===0&&a.unshift({value:a[0].value-f})}}for(var l=0;l<o.length;l++)a.push(o[l])}}for(var u=[],d=[],f=0,p=0,m=0;m<o.length;++m){var h=mh(o[m]);if(hh(o[m])&&(l(o[m],u[u.length-1]||[],d),h!==(o[m+1]?mh(o[m+1]):null))){if(d.length){p=f,d.sort(function(e,t){return e.value-t.value});for(var g=[],_=0;_<d.length;++_){var v=d[_].value;(_===0||d[_-1].value!==v)&&(g.push(d[_]),v>=r[0]&&v<=r[1]&&f++)}var y=i/t;if(f>y*1.5&&p>y/1.5||(u.push(g),f>y||e===o[m]))break}d=[]}}for(var b=ie(H(u,function(e){return ie(e,function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd})}),function(e){return e.length>0}),x=b.length-1,S=[],m=0;m<b.length;++m)for(var C=b[m],w=0;w<C.length;++w){var T=yh(C[w].value,n);S.push({value:C[w].value,time:{level:x-m,upperTimeUnit:T,lowerTimeUnit:T}})}Ss(S,Cs,null),S.sort(function(e,t){return e.value-t.value});var E=S[0],D=S[S.length-1],O=yh(r[0],n),k=yh(r[1],n);return(!E||E.value>r[0])&&S.unshift({value:r[0],time:{level:0,upperTimeUnit:O,lowerTimeUnit:O},notNice:!0}),(!D||D.value<r[1])&&S.push({value:r[1],time:{level:0,upperTimeUnit:k,lowerTimeUnit:k},notNice:!0}),S}var iT=function(e,t){var n=e.getExtent();if(n[0]===n[1]&&(n[0]-=nh,n[1]+=nh),n[1]===-1/0&&n[0]===1/0){var r=new Date;n[1]=+new Date(r.getFullYear(),r.getMonth(),r.getDate()),n[0]=n[1]-nh}e.setExtent(n[0],n[1]);var i=Vw(t.splitNumber,10),a=Ew(e)/i,o=t.minInterval,s=t.maxInterval;o!=null&&a<o&&(a=o),s!=null&&a>s&&(a=s);var c=Jw.length,l=Math.min(Kw(Jw,a,0,c),c-1),u=Jw[l][1],d=Jw[Math.max(l-1,0)][0];e.setTimeInterval({approxInterval:a,interval:u,minLevelUnit:d})};hw.registerClass(qw);var aT=0,oT=1,sT=2,cT=function(e){l(t,e);function t(n){var r=e.call(this)||this;r.type=`log`,r.parse=Gw.parse,r.base=n.logBase||10;var i=[],a=[],o=r._lookup={from:i,to:a};i[aT]=i[oT]=a[aT]=a[oT]=NaN,xw(r,t.mapperMethods);var s=Ym(),c=n.breakOption,l={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(c,r,{noNegative:!0},sT,l),r.powStub=new Gw({breakParsed:l.original}),r.intervalStub=new Gw({breakParsed:l.transformed}),Sw(r,r.intervalStub),r}return t.prototype.getTicks=function(e){var t=this.base,n=this.powStub,r=Ym(),i=this.intervalStub,a={lookup:{from:i.getExtent(),to:n.getExtent()}};return H(i.getTicks(e||{}),function(e){var i=e.value,o=Rw(i,t,a),s;if(r){var c=r.getTicksBreakOutwardTransform(this,e,Zm(n),this._lookup);c&&(s=c.vBreak,o=c.tickVal)}return{value:o,break:s}},this)},t.prototype.getMinorTicks=function(e){return Ww(this,e,Zm(this.powStub),this.intervalStub.getConfig().interval)},t.prototype.getLabel=function(e,t){return this.intervalStub.getLabel(e,t)},t.type=`log`,t.mapperMethods={needTransform:function(){return!0},normalize:function(e){return this.intervalStub.normalize(Lw(e,this.base))},scale:function(e){return Rw(this.intervalStub.scale(e),this.base,null)},transformIn:function(e,t){return e=Lw(e,this.base),t&&t.depth===2?e:this.intervalStub.transformIn(e,t)},transformOut:function(e,t){var n=t?t.depth:null;return lT.depth=n,uT.lookup=this._lookup,Rw(n===2?e:this.intervalStub.transformOut(e,lT),this.base,uT)},contain:function(e){return this.powStub.contain(e)},setExtent:function(e,t){this.setExtent2(0,e,t)},setExtent2:function(e,t,n){if(!(!_s(t,n)||t<=0||n<=0)){var r=dT,i=dT;if(e===0){var a=this._lookup;r=a.to,i=a.from}this.powStub.setExtent2(e,r[aT]=t,r[oT]=n);var o=this.base;this.intervalStub.setExtent2(e,i[aT]=Lw(t,o),i[oT]=Lw(n,o))}},getFilter:function(){return{g:0}},sanitize:function(e,t){return _s(t[0],t[1])&&wo(e)&&e<=0&&(e=t[0]),e},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(e,t){return t===null?this.powStub.getExtentUnsafe(e,null):this.intervalStub.getExtentUnsafe(e,t)}},t}(hw);hw.registerClass(cT);var lT={},uT={},dT=[],fT={value:1,category:1,time:1,log:1},pT=es();function mT(e){var t=e.get(`type`);return(t==null||!K(fT,t)&&!hw.getClass(t))&&(t=`value`),t}function hT(e,t,n){var r=Ym(),i;switch(r&&(i=ET(e,t,n)),t){case`category`:return new Uw({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:ds()});case`time`:return new qw({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get(`useUTC`),breakOption:i});case`log`:return new cT({logBase:e.get(`logBase`),breakOption:i});case`value`:return new Gw({breakOption:i});default:return new((hw.getClass(t))||Gw)({})}}function gT(e,t,n){var r=n?ww(e,null):e.getExtentUnsafe(0,null),i=r[0],a=r[1];return _s(i,a)?i===t||a===t?2:i<t&&a>t?1:3:3}function _T(e){pT(e).noOnMyZero=!0}function vT(e){return pT(e).noOnMyZero}function yT(e){var t=e.getLabelModel().get(`formatter`);if(e.type===`time`){var n=dh(t);return function(t,r){return e.scale.getFormattedLabel(t,r,n)}}if(W(t))return function(n){var r=e.scale.getLabel(n);return t.replace(`{value}`,r??``)};if(ue(t)){if(e.type===`category`)return function(n,r){return t(bT(e,n),n.value-e.scale.getExtent()[0],null)};var r=Ym();return function(n,i){var a=null;return r&&(a=r.makeAxisLabelFormatterParamBreak(a,n.break)),t(bT(e,n),i,a)}}return function(t){return e.scale.getLabel(t)}}function bT(e,t){var n=e.scale;return Pw(n)?n.getLabel(t):t.value}function xT(e){return e.get(`interval`)??`auto`}function ST(e){return e.type===`category`&&xT(e.getLabelModel())===0}function CT(e,t){var n={};return V(e.mapDimensionsAll(t),function(t){n[lw(e,t)]=!0}),oe(n)}function wT(e){return e===`middle`||e===`center`}function TT(e){return e.getShallow(`show`)}function ET(e,t,n){var r=e.get(`breaks`,!0);if(r!=null)return!Ym()||!n||!DT(t)?void 0:r}function DT(e){return e!==`category`}function OT(e,t,n,r,i,a){var o=Nw(e),s=o?e.intervalStub:e;if(s.setExtent(r[0],r[1]),o){var c=e.powStub,l={depth:2},u=e.transformOut(r[0],l),d=e.transformOut(r[1],l),f=Bw(n,r);t[0]&&!f[0]&&(u=i[0]),t[1]&&!f[1]&&(d=i[1]),c.setExtent(u,d)}s.setConfig(a)}function kT(e,t){return Pw(e)?e.getRawOrdinalNumber(t.value):t.value}function AT(e,t){return Pw(e)&&!!t.get(`boundaryGap`)}var jT=function(){function e(){}return e.prototype.needIncludeZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}(),MT=bs(),NT=es(),PT=es();function FT(e,t){var n=e.model,r=NT(Rb(n.ecModel)).keyed,i=r&&r.get(t);return i&&i.get(n.uid)}function IT(e,t){return zT(FT(e,t))}function LT(e,t){var n=[];return RT(e.model.ecModel,function(e){for(var r=0;r<t.length;r++)t[r]&&e.serByIdx[t[r].seriesIndex]&&n.push(zT(e))}),n}function RT(e,t){var n=NT(Rb(e)).keyed;n&&n.each(function(e,n){e.each(function(e,r){t(e,n,r)})})}function zT(e){return{liPosMinGap:e?e.liPosMinGap:void 0}}function BT(e,t){var n=e.model.ecModel,r=NT(Rb(n)).axSer;r&&HT(n,r.get(e.model.uid),t)}function VT(e,t,n){var r=FT(e,t);r&&HT(e.model.ecModel,r.sers,n)}function HT(e,t,n){if(t)for(var r=0;r<t.length;r++){var i=t[r];e.isSeriesFiltered(i)||n(i)}}function UT(e,t,n){var r=NT(Rb(e)).keyed,i=r&&r.get(t);i&&i.each(function(e){n(e.axis)})}function WT(e,t){var n=e.model,r=NT(Rb(n.ecModel)).keys;r&&V(r.get(n.uid),function(e){t(e)})}function GT(e){var t=PT(Lb(e)),n=t.keyed||=Ne();RT(e,function(t,r,i){var a=n.get(r)||n.set(r,Ne()),o=a.get(i)||a.set(i,{});t.metrics.liPosMinGap&&qT.liPosMinGap(e,t,o)})}function KT(e,t){qT[e]=t}var qT={};function JT(e,t,n){if(e){var r=t.ecModel,i=NT(Rb(r)),a=e.model.uid,o=i.axSer||=Ne();(o.get(a)||o.set(a,[])).push(t);var s=t.subType,c=t.getBaseAxis()===e,l=ZT.get(YT(s,c,n))||ZT.get(YT(s,c,null));if(l){var u=i.keyed||=Ne(),d=i.keys||=Ne(),f=l.key,p=u.get(f)||u.set(f,Ne()),m=p.get(a);m||(m=p.set(a,{axis:e,sers:[],serByIdx:[]}),m.metrics=l.getMetrics(e),(d.get(a)||d.set(a,[])).push(f)),m.sers.push(t),m.serByIdx[t.seriesIndex]=t}}}function YT(e,t,n){return e+`|&`+G(t,!0)+`|&`+(n||``)}function XT(e,t){var n=YT(t.seriesType,t.baseAxis,t.coordSysType);ZT.set(n,t),MT(e,function(){e.registerProcessor(e.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:GT})})}var ZT=Ne(),QT=es(),$T=3,eE=function(){function e(e,t,n,r,i){var a=Pw(e),o=a?t.getCategories().length:null,s;if(a){var c=t.getCategories(!0);s=c&&!c.length}var l=n.slice();(jw(e)||Nw(e)||Mw(e))&&(ps(l,nE(e,t.get(`dataMin`,!0))),ms(l,nE(e,t.get(`dataMax`,!0)))),vs(l)||(l[0]=l[1]=NaN);var u=[],d=[!1,!1],f=t.get(`min`,!0);f===`dataMin`?(u[0]=l[0],d[0]=!0):(u[0]=nE(e,ue(f)?f({min:l[0],max:l[1]}):f),d[0]=u[0]!=null);var p=t.get(`max`,!0);p===`dataMax`?(u[1]=l[1],d[1]=!0):(u[1]=nE(e,ue(p)?p({min:l[0],max:l[1]}):p),d[1]=u[1]!=null);var m=rE(e,t),h=a?null:l[1]-l[0]||Math.abs(l[0]);u[0]??=a?s?l[0]:o?0:NaN:l[0]-m[0]*h,u[1]??=a?s?l[1]:o?o-1:NaN:l[1]+m[1]*h,!gs(u[0])&&(u[0]=NaN),!gs(u[1])&&(u[1]=NaN);var g=s||ye(u[0])||ye(u[1])||a&&!o,_=jw(e),v=_&&t.needIncludeZero&&t.needIncludeZero();v&&(u[0]>0&&u[1]>0&&!d[0]&&(u[0]=0),u[0]<0&&u[1]<0&&!d[1]&&(u[1]=0));var y=!1;u[0]>u[1]&&(u.reverse(),y=!0);var b=nE(e,t.get(`startValue`,!0)),x=b!=null;!wo(b)&&r&&(b=e.getDefaultStartValue?e.getDefaultStartValue():0),wo(b)&&(x||!_||v)&&(b<u[0]&&!d[0]?(u[0]=b,d[0]=!0):b>u[1]&&!d[1]&&(u[1]=b,d[1]=!0)),tE(this._i={scale:e,dataMM:l,noZoomEffMM:u,zoomMM:[],fixMM:d,zoomFixMM:[!1,!1],startValue:b,isBlank:g,incl0:v,tggAxInv:y,ctnShp:i},u)}return e.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},e.prototype.makeFinal=function(){var e=this._i,t=e.zoomMM,n=e.noZoomEffMM,r=e.zoomFixMM,i=e.fixMM,a={fixMM:i,zoomFixMM:r,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:n.slice()},o=a.effMM;return t[0]!=null&&(o[0]=t[0],i[0]=r[0]=!0),t[1]!=null&&(o[1]=t[1],i[1]=r[1]=!0),tE(e,o),a},e.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},e.prototype.setZoomMM=function(e,t){this._i.zoomMM[e]=t},e}();function tE(e,t){var n=e.scale,r=e.dataMM;n.sanitize&&(t[0]=n.sanitize(t[0],r),t[1]=n.sanitize(t[1],r),ys(t))}function nE(e,t){return t==null?null:ye(t)?NaN:e.parse(t)}function rE(e,t){var n;if(Pw(e))n=[0,0];else{var r=t.get(`boundaryGap`);typeof r==`boolean`&&(r=null),n=U(r)?r:[r,r]}return[iE(n[0]),iE(n[1])]}function iE(e){return da(typeof e==`boolean`?0:e,1)||0}function aE(e){var t=QT(e.scale);return t.extent||=ds(),t}function oE(e,t){aE(e).dimIdxInCoord=t.get(e.dim)}function sE(e,t){var n=e.scale,r=e.model,i=e.dim;n.rawExtentInfo||cE(n,e,i,r,t)}function cE(e,t,n,r,i){var a=aE(t),o=a.extent,s=!1;BT(t,function(r){if(r.boxCoordinateSystem){var i=Zh(r).coord,c=a.dimIdxInCoord;if(c>=0&&U(i)){var l=i[c];l!=null&&!U(l)&&fs(o,e.parse(l))}}else if(r.coordinateSystem){var u=r.getData();if(u){var d=e.getFilter?e.getFilter():null;V(CT(u,n),function(e){hs(o,u.getApproximateExtent(e,d))})}r.__requireStartValue&&r.__requireStartValue(t)&&(s=!0)}});var c=mE(e,t,r);uE(e,new eE(e,r,o,s,c),i),a.extent=null}function lE(e,t){var n=e.scale;uE(n,new eE(n,e.model,t,!1,!1),$T)}function uE(e,t,n){e.rawExtentInfo=t,t.from=n}function dE(e,t){fE.set(e,t)}var fE=Ne();function pE(e,t,n,r,i){e.rawExtentInfo||lE({scale:e,model:t},i||ds());var a=e.rawExtentInfo.makeFinal(),o=a.effMM;return e.setExtent(o[0],o[1]),e.setBlank(a.isBlank),r&&a.tggAxInv&&n&&!n.get(`legacyMinMaxDontInverseAxis`)&&(r.inverse=!r.inverse),a}function mE(e,t,n){var r=AT(e,n),i=n.get(`containShape`,!0);if(i==null&&!r&&(i=!0),!i)return!1;var a=!1;return WT(t,function(e){a=!!fE.get(e)||a}),a}function hE(e,t,n,r){if(n.ctnShp){var i;if(WT(e,function(t){var n=fE.get(t);if(n){var a=n(e,r);a&&(i||=[0,0],ps(i,a[0]),ms(i,a[1]),_T(e))}}),i){var a=t.getExtent();if(Pw(t))e.onBand||t.setExtent2(1,Va(a[0],a[0]+i[0]),Ha(a[1],a[1]+i[1]));else{var o=a.slice();n.zoomFixMM[0]||(o[0]=Va(o[0],t.transformOut(t.transformIn(o[0],null)+i[0],null))),n.zoomFixMM[1]||(o[1]=Ha(o[1],t.transformOut(t.transformIn(o[1],null)+i[1],null))),(o[0]<a[0]||o[1]>a[1])&&t.setExtent2(1,o[0],o[1])}}}}function gE(e,t){var n=Nw(e),r=n?e.intervalStub:e,i=t.fixMinMax||[],a=n?e.getExtent():null,o=r.getExtent(),s=zw(o,i,t.rawExtentResult);r.setExtent(s[0],s[1]),s=r.getExtent();var c=n?vE(r,t):_E(r,t),l=c.intervalPrecision,u=c.interval,d=t.userInterval;d!=null&&(c.interval=d,c.intervalPrecision=Iw(d)),i[0]||(s[0]=ro(Ga(s[0]/u)*u,l)),i[1]||(s[1]=ro(Ka(s[1]/u)*u,l)),d!=null&&(c.niceExtent=s.slice()),OT(e,i,o,s,a,c)}function _E(e,t){var n=Vw(t.splitNumber,5),r=Ew(e),i=t.minInterval,a=t.maxInterval,o=vo(r/n,!0);i!=null&&o<i&&(o=i),a!=null&&o>a&&(o=a);var s=Iw(o),c=e.getExtent(),l=[ro(Ka(c[0]/o)*o,s),ro(Ga(c[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:l}}function vE(e,t){var n=Vw(t.splitNumber,10),r=e.getExtent(),i=Ew(e),a=Ha(go(i),1);n/i*a<=.5&&(a*=10);var o=Iw(a),s=[ro(Ka(r[0]/a)*a,o),ro(Ga(r[1]/a)*a,o)];return{intervalPrecision:o,interval:a,niceExtent:s}}function yE(e){var t=e.scale,n=e.model,r=n.axis,i=n.ecModel;bE(t,n,r,i,null)}function bE(e,t,n,r,i){var a=pE(e,t,r,n,i),o=jw(e)||Mw(e);xE(e,{splitNumber:t.get(`splitNumber`),fixMinMax:a.fixMM,userInterval:t.get(`interval`),minInterval:o?t.get(`minInterval`):null,maxInterval:o?t.get(`maxInterval`):null,rawExtentResult:a}),n&&r&&hE(n,e,a,r)}function xE(e,t){SE[e.type](e,t)}var SE={interval:gE,log:gE,time:iT,ordinal:Le},CE=[],wE={registerPreprocessor:sC,registerProcessor:cC,registerPostInit:lC,registerPostUpdate:uC,registerUpdateLifecycle:dC,registerAction:fC,registerCoordinateSystem:pC,registerLayout:mC,registerVisual:hC,registerTransform:bC,registerLoading:vC,registerMap:yC,registerImpl:kb,PRIORITY:lS,ComponentModel:_g,ComponentView:wy,SeriesModel:hy,ChartView:Oy,registerComponentModel:function(e){_g.registerClass(e)},registerComponentView:function(e){wy.registerClass(e)},registerSeriesModel:function(e){hy.registerClass(e)},registerChartView:function(e){Oy.registerClass(e)},registerCustomSeries:function(e,t){Mb(e,t)},registerSubTypeDefaulter:function(e,t){_g.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){La(e,t)}};function TE(e){if(U(e)){V(e,function(e){TE(e)});return}B(CE,e)>=0||(CE.push(e),ue(e)&&(e={install:e}),e.install(wE))}var EE=es(),DE=es(),OE={estimate:1,determine:2};function kE(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function AE(e,t){var n=e.getLabelModel().get(`customValues`);if(n){var r=e.scale;return{labels:H(ME(n,r),function(t,n){return{formattedLabel:yT(e)(t,n),rawLabel:r.getLabel(t),tick:t}})}}return e.type===`category`?NE(e,t):IE(e)}function jE(e,t,n){var r=e.scale,i=e.getTickModel().get(`customValues`);return i?{ticks:ME(i,r)}:e.type===`category`?FE(e,t):{ticks:r.getTicks(n)}}function ME(e,t){var n=t.getExtent(),r=[];return V(e,function(e){e=t.parse(e),e>=n[0]&&e<=n[1]&&r.push(e)}),Ss(r,ws,null),io(r),H(r,function(e){return{value:e}})}function NE(e,t){var n=e.getLabelModel(),r=PE(e,n,t);return!n.get(`show`)||e.scale.isBlank()?{labels:[]}:r}function PE(e,t,n){var r=RE(e),i=xT(t),a=n.kind===OE.estimate;if(!a){var o=BE(r,i);if(o)return o}var s,c;ue(i)?s=qE(e,i,!1):(c=i===`auto`?HE(e,n):i,s=qE(e,c,!1));var l={labels:s,labelCategoryInterval:c};return a?n.out.noPxChangeTryDetermine.push(function(){return VE(r,i,l),!0}):VE(r,i,l),l}function FE(e,t){var n=LE(e),r=xT(t),i=BE(n,r);if(i)return i;var a,o;if((!t.get(`show`)||e.scale.isBlank())&&(a=[]),ue(r))a=qE(e,r,!0);else if(r===`auto`){var s=PE(e,e.getLabelModel(),kE(OE.determine));o=s.labelCategoryInterval,a=H(s.labels,function(e){return e.tick})}else o=r,a=qE(e,o,!0);return VE(n,r,{ticks:a,tickCategoryInterval:o})}function IE(e){var t=e.scale.getTicks(),n=yT(e);return{labels:H(t,function(t,r){return{formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tick:t}})}}var LE=zE(`axisTick`),RE=zE(`axisLabel`);function zE(e){return function(t){return DE(t)[e]||(DE(t)[e]={list:[]})}}function BE(e,t){for(var n=0;n<e.list.length;n++)if(e.list[n].key===t)return e.list[n].value}function VE(e,t,n){return e.list.push({key:t,value:n}),n}function HE(e,t){if(t.kind===OE.estimate){var n=e.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return DE(e).autoInterval=n,!0}),n}return DE(e).autoInterval??(DE(e).autoInterval=e.calculateCategoryInterval(t))}function UE(e,t){var n=t.kind,r=KE(e),i=yT(e),a=(r.axisRotate-r.labelRotate)/180*Math.PI,o=e.scale,s=o.getExtent(),c=o.count();if(s[1]-s[0]<1)return 0;var l=1,u=40;c>u&&(l=Math.max(1,Math.floor(c/u)));for(var d=s[0],f=e.dataToCoord(d+1)-e.dataToCoord(d),p=Math.abs(f*Math.cos(a)),m=Math.abs(f*Math.sin(a)),h=0,g=0;d<=s[1];d+=l){var _=0,v=0,y=sa(i({value:d}),r.font,`center`,`top`);_=y.width*1.3,v=y.height*1.3,h=Math.max(h,_,7),g=Math.max(g,v,7)}var b=h/p,x=g/m;isNaN(b)&&(b=1/0),isNaN(x)&&(x=1/0);var S=Math.max(0,Math.floor(Math.min(b,x)));return n===OE.estimate?(t.out.noPxChangeTryDetermine.push(ce(WE,null,e,S,c)),S):GE(e,S,c)??S}function WE(e,t,n){return GE(e,t,n)==null}function GE(e,t,n){var r=EE(e.model),i=e.getExtent(),a=r.lastAutoInterval,o=r.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-t)<=1&&Math.abs(o-n)<=1&&a>t&&r.axisExtent0===i[0]&&r.axisExtent1===i[1])return a;r.lastTickCount=n,r.lastAutoInterval=t,r.axisExtent0=i[0],r.axisExtent1=i[1]}function KE(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get(`rotate`)||0,font:t.getFont()}}function qE(e,t,n){var r=yT(e),i=e.scale,a=[],o=ue(t);return Hw(i,o?0:t,function(e,s){var c=i.getLabel(e);if(o){var l=!!t(e.value,c);if(e.offInterval=!l,!l&&!s)return}a.push(n?e:{formattedLabel:r(e),rawLabel:c,tick:e})}),a}var JE=.8;function YE(e,t){t||={};var n={w:NaN,w2:NaN},r=e.scale,i=t.fromStat,a=t.min,o=Tw(r);wo(o)||(o=NaN);var s=e.getExtent(),c=Ua(s[1]-s[0]);return Pw(r)?XE(n,e,o,c):i&&ZE(n,e,o,c,i),a!=null&&(n.w=wo(n.w)?Ha(a,n.w):a),n}function XE(e,t,n,r){var i=t.onBand,a=n+ +!!i;a===0&&(a=1),e.w=r/a,!i&&n&&r&&(e.w2=e.w*n/r)}function ZE(e,t,n,r,i){var a=!1,o=-1/0;V(i.key?[IT(t,i.key)]:LT(t,i.sers||[]),function(e){var t=e.liPosMinGap;t!=null&&(t>0?(t>o&&(o=t),a=!1):t===-2&&(a=!0))}),wo(n)&&n>0&&wo(o)?(e.w=r/n*o,e.w2=o):a&&(e.w=r*JE,e.w2=e.w*n/r)}var QE=[0,1],$E=function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]);return e>=n&&e<=r},e.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this.scale;return e=n.normalize(n.parse(e)),Qa(e,QE,eD(this),t)},e.prototype.coordToData=function(e,t){var n=Qa(e,eD(this),QE,t);return this.scale.scale(n)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){e||={};var t=e.tickModel||this.getTickModel(),n=H(jE(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}).ticks,function(e){return{coord:this.dataToCoord(kT(this.scale,e)),tick:e}},this),r=t.get(`alignWithLabel`),i=tD(this,n,r);return H(n,function(e){return{coord:e.coord,tickValue:e.tick.value,onBand:i}})},e.prototype.getMinorTicksCoords=function(){if(Pw(this.scale))return[];var e=this.model.getModel(`minorTick`).get(`splitNumber`);return e>0&&e<100||(e=5),H(this.scale.getMinorTicks(e),function(e){return H(e,function(e){return{coord:this.dataToCoord(e),tickValue:e}},this)},this)},e.prototype.getViewLabels=function(e){return e||=kE(OE.determine),AE(this,e).labels},e.prototype.getLabelModel=function(){return this.model.getModel(`axisLabel`)},e.prototype.getTickModel=function(){return this.model.getModel(`axisTick`)},e.prototype.getBandWidth=function(){return YE(this,{min:1}).w},e.prototype.calculateCategoryInterval=function(e){return e||=kE(OE.determine),UE(this,e)},e}();function eD(e){var t=e.getExtent();if(e.onBand){var n=(t[1]-t[0])/e.scale.count()/2;t[0]+=n,t[1]-=n}return t}function tD(e,t,n){var r=t.length;if(!e.onBand||n||!r)return!1;var i=YE(e).w;if(!i)return!1;V(t,function(e){e.coord-=i/2});var a=e.scale.getExtent(),o=t[r-1];return o.tick.offInterval&&t.pop(),t.push({coord:o.coord+i,tick:{value:a[1]+1}}),!0}var nD=Math.PI*2,rD=ol.CMD,iD=[`top`,`right`,`bottom`,`left`];function aD(e,t,n,r,i){var a=n.width,o=n.height;switch(e){case`top`:r.set(n.x+a/2,n.y-t),i.set(0,-1);break;case`bottom`:r.set(n.x+a/2,n.y+o+t),i.set(0,1);break;case`left`:r.set(n.x-t,n.y+o/2),i.set(-1,0);break;case`right`:r.set(n.x+a+t,n.y+o/2),i.set(1,0)}}function oD(e,t,n,r,i,a,o,s,c){o-=e,s-=t;var l=Math.sqrt(o*o+s*s);o/=l,s/=l;var u=o*n+e,d=s*n+t;if(Math.abs(r-i)%nD<1e-4)return c[0]=u,c[1]=d,l-n;if(a){var f=r;r=dl(i),i=dl(f)}else r=dl(r),i=dl(i);r>i&&(i+=nD);var p=Math.atan2(s,o);if(p<0&&(p+=nD),p>=r&&p<=i||p+nD>=r&&p+nD<=i)return c[0]=u,c[1]=d,l-n;var m=n*Math.cos(r)+e,h=n*Math.sin(r)+t,g=n*Math.cos(i)+e,_=n*Math.sin(i)+t,v=(m-o)*(m-o)+(h-s)*(h-s),y=(g-o)*(g-o)+(_-s)*(_-s);return v<y?(c[0]=m,c[1]=h,Math.sqrt(v)):(c[0]=g,c[1]=_,Math.sqrt(y))}function sD(e,t,n,r,i,a,o,s){var c=i-e,l=a-t,u=n-e,d=r-t,f=Math.sqrt(u*u+d*d);u/=f,d/=f;var p=(c*u+l*d)/f;s&&(p=Math.min(Math.max(p,0),1)),p*=f;var m=o[0]=e+p*u,h=o[1]=t+p*d;return Math.sqrt((m-i)*(m-i)+(h-a)*(h-a))}function cD(e,t,n,r,i,a,o){n<0&&(e+=n,n=-n),r<0&&(t+=r,r=-r);var s=e+n,c=t+r,l=o[0]=Math.min(Math.max(i,e),s),u=o[1]=Math.min(Math.max(a,t),c);return Math.sqrt((l-i)*(l-i)+(u-a)*(u-a))}var lD=[];function uD(e,t,n){var r=cD(t.x,t.y,t.width,t.height,e.x,e.y,lD);return n.set(lD[0],lD[1]),r}function dD(e,t,n){for(var r=0,i=0,a=0,o=0,s,c,l=1/0,u=t.data,d=e.x,f=e.y,p=0;p<u.length;){var m=u[p++];p===1&&(r=u[p],i=u[p+1],a=r,o=i);var h=l;switch(m){case rD.M:a=u[p++],o=u[p++],r=a,i=o;break;case rD.L:h=sD(r,i,u[p],u[p+1],d,f,lD,!0),r=u[p++],i=u[p++];break;case rD.C:h=ar(r,i,u[p++],u[p++],u[p++],u[p++],u[p],u[p+1],d,f,lD),r=u[p++],i=u[p++];break;case rD.Q:h=fr(r,i,u[p++],u[p++],u[p],u[p+1],d,f,lD),r=u[p++],i=u[p++];break;case rD.A:var g=u[p++],_=u[p++],v=u[p++],y=u[p++],b=u[p++],x=u[p++];p+=1;var S=!!(1-u[p++]);s=Math.cos(b)*v+g,c=Math.sin(b)*y+_,p<=1&&(a=s,o=c);var C=(d-g)*y/v+g;h=oD(g,_,y,b,b+x,S,C,f,lD),r=Math.cos(b+x)*v+g,i=Math.sin(b+x)*y+_;break;case rD.R:a=r=u[p++],o=i=u[p++];var w=u[p++],T=u[p++];h=cD(a,o,w,T,d,f,lD);break;case rD.Z:h=sD(r,i,a,o,d,f,lD,!0),r=a,i=o}h<l&&(l=h,n.set(lD[0],lD[1]))}return l}var fD=new Ut,pD=new Ut,mD=new Ut,hD=new Ut,gD=new Ut;function _D(e,t){if(e){var n=e.getTextGuideLine(),r=e.getTextContent();if(r&&n){var i=e.textGuideLineConfig||{},a=[[0,0],[0,0],[0,0]],o=i.candidates||iD,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var c=1/0,l=i.anchor,u=e.getComputedTransform(),d=u&&Ht([],u),f=t.get(`length2`)||0;l&&mD.copy(l);for(var p=0;p<o.length;p++){var m=o[p];aD(m,0,s,fD,hD),Ut.scaleAndAdd(pD,fD,hD,f),pD.transform(d);var h=e.getBoundingRect(),g=l?l.distance(pD):e instanceof jl?dD(pD,e.path,mD):uD(pD,h,mD);g<c&&(c=g,pD.transform(u),mD.transform(u),mD.toArray(a[0]),pD.toArray(a[1]),fD.toArray(a[2]))}bD(a,t.get(`minTurnAngle`)),n.setShape({points:a})}}}var vD=[],yD=new Ut;function bD(e,t){if(t<=180&&t>0){t=t/180*Math.PI,fD.fromArray(e[0]),pD.fromArray(e[1]),mD.fromArray(e[2]),Ut.sub(hD,fD,pD),Ut.sub(gD,mD,pD);var n=hD.len(),r=gD.len();if(!(n<.001||r<.001)){hD.scale(1/n),gD.scale(1/r);var i=hD.dot(gD);if(Math.cos(t)<i){var a=sD(pD.x,pD.y,mD.x,mD.y,fD.x,fD.y,vD,!1);yD.fromArray(vD),yD.scaleAndAdd(gD,a/Math.tan(Math.PI-t));var o=mD.x===pD.x?(yD.y-pD.y)/(mD.y-pD.y):(yD.x-pD.x)/(mD.x-pD.x);if(isNaN(o))return;o<0?Ut.copy(yD,pD):o>1&&Ut.copy(yD,mD),yD.toArray(e[1])}}}}function xD(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,fD.fromArray(e[0]),pD.fromArray(e[1]),mD.fromArray(e[2]),Ut.sub(hD,pD,fD),Ut.sub(gD,mD,pD);var r=hD.len(),i=gD.len();if(!(r<.001||i<.001)&&(hD.scale(1/r),gD.scale(1/i),hD.dot(t)<Math.cos(n))){var a=sD(pD.x,pD.y,mD.x,mD.y,fD.x,fD.y,vD,!1);yD.fromArray(vD);var o=Math.PI/2,s=o+Math.acos(gD.dot(t))-n;if(s>=o)Ut.copy(yD,mD);else{yD.scaleAndAdd(gD,a/Math.tan(Math.PI/2-s));var c=mD.x===pD.x?(yD.y-pD.y)/(mD.y-pD.y):(yD.x-pD.x)/(mD.x-pD.x);if(isNaN(c))return;c<0?Ut.copy(yD,pD):c>1&&Ut.copy(yD,mD)}yD.toArray(e[1])}}}function SD(e,t,n,r){var i=n===`normal`,a=i?e:e.ensureState(n);a.ignore=t;var o=r.get(`smooth`);o=o===!0?.3:Math.max(+o,0)||0,a.shape=a.shape||{},a.shape.smooth=o;var s=r.getModel(`lineStyle`).getLineStyle();i?e.useStyle(s):a.style=s}function CD(e,t){var n=t.smooth,r=t.points;if(r){if(e.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=Xe(r[0],r[1]),a=Xe(r[1],r[2]);if(!i||!a){e.lineTo(r[1][0],r[1][1]),e.lineTo(r[2][0],r[2][1]);return}var o=Math.min(i,a)*n,s=$e([],r[1],r[0],o/i),c=$e([],r[1],r[2],o/a),l=$e([],s,c,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],l[0],l[1]),e.bezierCurveTo(c[0],c[1],c[0],c[1],r[2][0],r[2][1])}else for(var u=1;u<r.length;u++)e.lineTo(r[u][0],r[u][1])}}function wD(e,t,n){var r=e.getTextGuideLine(),i=e.getTextContent();if(!i){r&&e.removeTextGuideLine();return}for(var a=t.normal,o=a.get(`show`),s=i.ignore,c=0;c<Ou.length;c++){var l=Ou[c],u=t[l],d=l===`normal`;if(u){var f=u.get(`show`);if((d?s:G(i.states[l]&&i.states[l].ignore,s))||!G(f,o)){var p=d?r:r&&r.states[l];p&&(p.ignore=!0),r&&SD(r,!0,l,u);continue}r||(r=new Df,e.setTextGuideLine(r),!d&&(s||!o)&&SD(r,!0,`normal`,t.normal),e.stateProxy&&(r.stateProxy=e.stateProxy)),SD(r,!1,l,u)}}if(r){z(r.style,n),r.style.fill=null;var m=a.get(`showAbove`),h=e.textGuideLineConfig=e.textGuideLineConfig||{};h.showAbove=m||!1,r.buildPath=CD}}function TD(e,t){t||=`labelLine`;for(var n={normal:e.getModel(t)},r=0;r<Du.length;r++){var i=Du[r];n[i]=e.getModel([i,t])}return n}var ED=[`label`,`labelLine`,`layoutOption`,`priority`,`defaultAttr`,`marginForce`,`minMarginForce`,`marginDefault`,`suggestIgnore`],DD=1,OD=2,kD=DD|OD;function AD(e,t,n){n||=kD,t?e.dirty|=n:e.dirty&=~n}function jD(e,t){return t||=kD,e.dirty==null||!!(e.dirty&t)}function MD(e){if(e)return jD(e)&&ND(e,e.label,e),e}function ND(e,t,n){var r=t.getComputedTransform();e.transform=qp(e.transform,r);var i=e.localRect=Kp(e.localRect,t.getBoundingRect()),a=t.style,o=a.margin,s=n&&n.marginForce,c=n&&n.minMarginForce,l=n&&n.marginDefault,u=a.__marginType;u==null&&l&&(o=l,u=ym.textMargin);for(var d=0;d<4;d++)PD[d]=u===ym.minMargin&&c&&c[d]!=null?c[d]:s&&s[d]!=null?s[d]:o?o[d]:0;u===ym.textMargin&&Rp(i,PD,!1,!1);var f=e.rect=Kp(e.rect,i);return r&&f.applyTransform(r),u===ym.minMargin&&Rp(f,PD,!1,!1),e.axisAligned=Wp(r),(e.label=e.label||{}).ignore=t.ignore,AD(e,!1),AD(e,!0,OD),e}var PD=[0,0,0,0];function FD(e,t,n){return e.transform=qp(e.transform,n),e.localRect=Kp(e.localRect,t),e.rect=Kp(e.rect,t),n&&e.rect.applyTransform(n),e.axisAligned=Wp(n),e.obb=void 0,(e.label=e.label||{}).ignore=!1,e}function ID(e,t){if(e){e.label.x+=t.x,e.label.y+=t.y,e.label.markRedraw();var n=e.transform;n&&(n[4]+=t.x,n[5]+=t.y);var r=e.rect;r&&(r.x+=t.x,r.y+=t.y);var i=e.obb;i&&i.fromBoundingRect(e.localRect,n)}}function LD(e,t){for(var n=0;n<ED.length;n++){var r=ED[n];e[r]??(e[r]=t[r])}return MD(e)}function RD(e){var t=e.obb;return(!t||jD(e,OD))&&(e.obb=t||=new Yf,t.fromBoundingRect(e.localRect,e.transform),AD(e,!1,OD)),t}function zD(e,t,n,r,i){var a=e.length,o=up[t],s=dp[t];if(a<2)return!1;e.sort(function(e,t){return e.rect[o]-t.rect[o]});for(var c=0,l,u=!1,d=0,f=0;f<a;f++){var p=e[f],m=p.rect;l=m[o]-c,l<0&&(m[o]-=l,p.label[o]-=l,u=!0);var h=Math.max(-l,0);d+=h,c=m[o]+m[s]}d>0&&i&&S(-d/a,0,a);var g=e[0],_=e[a-1],v,y;b(),v<0&&C(-v,.8),y<0&&C(y,.8),b(),x(v,y,1),x(y,v,-1),b(),v<0&&w(-v),y<0&&w(y);function b(){v=g.rect[o]-n,y=r-_.rect[o]-_.rect[s]}function x(e,t,n){if(e<0){var r=Math.min(t,-e);if(r>0){S(r*n,0,a);var i=r+e;i<0&&C(-i*n,1)}else C(-e*n,1)}}function S(t,n,r){t!==0&&(u=!0);for(var i=n;i<r;i++){var a=e[i],s=a.rect;s[o]+=t,a.label[o]+=t}}function C(t,n){for(var r=[],i=0,c=1;c<a;c++){var l=e[c-1].rect,u=Math.max(e[c].rect[o]-l[o]-l[s],0);r.push(u),i+=u}if(i){var d=Math.min(Math.abs(t)/i,n);if(t>0)for(var c=0;c<a-1;c++){var f=r[c]*d;S(f,0,c+1)}else for(var c=a-1;c>0;c--){var f=r[c-1]*d;S(-f,c,a)}}}function w(e){var t=e<0?-1:1;e=Math.abs(e);for(var n=Math.ceil(e/(a-1)),r=0;r<a-1;r++)if(t>0?S(n,0,r+1):S(-n,a-r-1,a),e-=n,e<=0)return}return u}function BD(e){for(var t=0;t<e.length;t++){var n=e[t],r=n.defaultAttr,i=n.labelLine;n.label.attr(`ignore`,r.ignore),i&&i.attr(`ignore`,r.labelGuideIgnore)}}function VD(e){var t=[];e.sort(function(e,t){return+!!t.suggestIgnore-!!e.suggestIgnore||t.priority-e.priority});function n(e){if(!e.ignore){var t=e.ensureState(`emphasis`);t.ignore??=!1}e.ignore=!0}for(var r=0;r<e.length;r++){var i=MD(e[r]);if(!i.label.ignore){for(var a=i.label,o=i.labelLine,s=!1,c=0;c<t.length;c++)if(HD(i,t[c],null,{touchThreshold:.05})){s=!0;break}s?(n(a),o&&n(o)):t.push(i)}}}function HD(e,t,n,r){return!e||!t||e.label&&e.label.ignore||t.label&&t.label.ignore||!e.rect.intersect(t.rect,n,r)?!1:e.axisAligned&&t.axisAligned?!0:RD(e).intersect(RD(t),n,r)}function UD(e){if(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].slice());return t}}function WD(e,t){var n=e.label,r=t&&t.getTextGuideLine();return{dataIndex:e.dataIndex,dataType:e.dataType,seriesIndex:e.seriesModel.seriesIndex,text:e.label.style.text,rect:e.hostRect,labelRect:e.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:UD(r&&r.shape.points)}}var GD=[`align`,`verticalAlign`,`width`,`height`,`fontSize`],KD=new Ji,qD=es(),JD=es();function YD(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];t[i]!=null&&(e[i]=t[i])}}var XD=[`x`,`y`,`rotation`],ZD=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(e,t,n,r,i){var a=r.style,o=r.__hostTarget.textConfig||{},s=r.getComputedTransform(),c=r.getBoundingRect().plain();rn.applyTransform(c,c,s),s?KD.setLocalTransform(s):(KD.x=KD.y=KD.rotation=KD.originX=KD.originY=0,KD.scaleX=KD.scaleY=1),KD.rotation=dl(KD.rotation);var l=r.__hostTarget,u;if(l){u=l.getBoundingRect().plain();var d=l.getComputedTransform();rn.applyTransform(u,u,d)}var f=u&&l.getTextGuideLine();this._labelList.push({label:r,labelLine:f,seriesModel:n,dataIndex:e,dataType:t,layoutOptionOrCb:i,layoutOption:null,rect:c,hostRect:u,priority:u?u.width*u.height:0,defaultAttr:{ignore:r.ignore,labelGuideIgnore:f&&f.ignore,x:KD.x,y:KD.y,scaleX:KD.scaleX,scaleY:KD.scaleY,rotation:KD.rotation,style:{x:a.x,y:a.y,align:a.align,verticalAlign:a.verticalAlign,width:a.width,height:a.height,fontSize:a.fontSize},cursor:r.cursor,attachedPos:o.position,attachedRot:o.rotation}})},e.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var n=e.__model,r=n.get(`labelLayout`);(ue(r)||oe(r).length)&&e.group.traverse(function(e){if(e.ignore)return!0;var i=e.getTextContent(),a=uu(e);i&&!i.disableLabelLayout&&t._addLabel(a.dataIndex,a.dataType,n,i,r)})},e.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),n=e.getHeight();function r(e,t){return function(){_D(e,t)}}for(var i=0;i<this._labelList.length;i++){var a=this._labelList[i],o=a.label,s=o.__hostTarget,c=a.defaultAttr,l=void 0;l=ue(a.layoutOptionOrCb)?a.layoutOptionOrCb(WD(a,s)):a.layoutOptionOrCb,l||={},a.layoutOption=l;var u=Math.PI/180;s&&s.setTextConfig({local:!1,position:l.x!=null||l.y!=null?null:c.attachedPos,rotation:l.rotate==null?c.attachedRot:l.rotate*u,offset:[l.dx||0,l.dy||0]});var d=!1;if(l.x==null?(o.x=c.x,o.setStyle(`x`,c.style.x)):(o.x=$a(l.x,t),o.setStyle(`x`,0),d=!0),l.y==null?(o.y=c.y,o.setStyle(`y`,c.style.y)):(o.y=$a(l.y,n),o.setStyle(`y`,0),d=!0),l.labelLinePoints){var f=s.getTextGuideLine();f&&(f.setShape({points:l.labelLinePoints}),d=!1)}var p=qD(o);p.needsUpdateLabelLine=d,o.rotation=l.rotate==null?c.rotation:l.rotate*u,o.scaleX=c.scaleX,o.scaleY=c.scaleY;for(var m=0;m<GD.length;m++){var h=GD[m];o.setStyle(h,l[h]==null?c.style[h]:l[h])}if(l.draggable){if(o.draggable=!0,o.cursor=`move`,s){var g=a.seriesModel;a.dataIndex!=null&&(g=a.seriesModel.getData(a.dataType).getItemModel(a.dataIndex)),o.on(`drag`,r(s,g.getModel(`labelLine`)))}}else o.off(`drag`),o.cursor=c.cursor}},e.prototype.layout=function(e){var t=e.getWidth(),n=e.getHeight(),r=[];V(this._labelList,function(e){e.defaultAttr.ignore||r.push(LD({},e))});var i=ie(r,function(e){return e.layoutOption.moveOverlap===`shiftX`}),a=ie(r,function(e){return e.layoutOption.moveOverlap===`shiftY`});zD(i,0,0,t),zD(a,1,0,n);var o=ie(r,function(e){return e.layoutOption.hideOverlap});BD(o),VD(o)},e.prototype.processLabelsOverall=function(){var e=this;V(this._chartViewList,function(t){var n=t.__model,r=t.ignoreLabelLineUpdate,i=n.isAnimationEnabled();t.group.traverse(function(t){if(t.ignore&&!t.forceLabelAnimation)return!0;var a=!r,o=t.getTextContent();!a&&o&&(a=qD(o).needsUpdateLabelLine),a&&e._updateLabelLine(t,n),i&&e._animateLabels(t,n)})})},e.prototype._updateLabelLine=function(e,t){var n=e.getTextContent(),r=uu(e),i=r.dataIndex;if(n&&i!=null){var a=t.getData(r.dataType),o=a.getItemModel(i),s={},c=a.getItemVisual(i,`style`);c&&(s.stroke=c[a.getVisual(`drawType`)]);var l=o.getModel(`labelLine`);wD(e,TD(o),s),_D(e,l)}},e.prototype._animateLabels=function(e,t){var n=e.getTextContent(),r=e.getTextGuideLine();if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!rp(e))){var i=qD(n),a=i.oldLayout,o=uu(e),s=o.dataIndex,c={x:n.x,y:n.y,rotation:n.rotation},l=t.getData(o.dataType);if(a){n.attr(a);var u=e.prevStates;u&&(B(u,`select`)>=0&&n.attr(i.oldLayoutSelect),B(u,`emphasis`)>=0&&n.attr(i.oldLayoutEmphasis)),tp(n,c,t,s)}else if(n.attr(c),!gm(n).valueAnimation){var d=G(n.style.opacity,1);n.style.opacity=0,np(n,{style:{opacity:d}},t,s)}if(i.oldLayout=c,n.states.select){var f=i.oldLayoutSelect={};YD(f,c,XD),YD(f,n.states.select,XD)}if(n.states.emphasis){var p=i.oldLayoutEmphasis={};YD(p,c,XD),YD(p,n.states.emphasis,XD)}vm(n,s,l,t,t)}if(r&&!r.ignore&&!r.invisible){var i=JD(r),a=i.oldLayout,m={points:r.shape.points};a?(r.attr({shape:a}),tp(r,{shape:m},t)):(r.setShape(m),r.style.strokePercent=0,np(r,{style:{strokePercent:1}},t)),i.oldLayout=m}},e}(),QD=es();function $D(e){e.registerUpdateLifecycle(`series:beforeupdate`,function(e,t,n){var r=QD(t).labelManager;r||=QD(t).labelManager=new ZD,r.clearLabels()}),e.registerUpdateLifecycle(`series:layoutlabels`,function(e,t,n){var r=QD(t).labelManager;V(n.updatedSeries,function(e){r.addLabelsOfSeries(t.getViewOfSeriesModel(e))}),r.updateLayoutConfig(t),r.layout(t),r.processLabelsOverall()})}var eO=function(e){l(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.getInitialData=function(e){return fw(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var t=new Aa,n=Jb(`line`,0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);t.add(n),n.setStyle(e.lineStyle);var r=this.getData().getVisual(`symbol`),i=this.getData().getVisual(`symbolRotate`),a=r===`none`?`circle`:r,o=e.itemHeight*.8,s=Jb(a,(e.itemWidth-o)/2,(e.itemHeight-o)/2,o,o,e.itemStyle.fill);return t.add(s),s.setStyle(e.itemStyle),s.rotation=(e.iconRotate===`inherit`?i:e.iconRotate||0)*Math.PI/180,s.setOrigin([e.itemWidth/2,e.itemHeight/2]),a.indexOf(`empty`)>-1&&(s.style.stroke=s.style.fill,s.style.fill=q.color.neutral00,s.style.lineWidth=2),t},t.type=`series.line`,t.dependencies=[`grid`,`polar`],t.defaultOption={z:3,coordinateSystem:`cartesian2d`,legendHoverLink:!0,clip:!0,label:{position:`top`},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:`solid`},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:`emptyCircle`,symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:`auto`,connectNulls:!1,sampling:`none`,animationEasing:`linear`,progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:`clone`},triggerLineEvent:!1,triggerEvent:!1},t}(hy);function tO(e,t){var n=e.mapDimensionsAll(`defaultedLabel`),r=n.length;if(r===1){var i=cv(e,t,n[0]);return i==null?null:i+``}if(r){for(var a=[],o=0;o<n.length;o++)a.push(cv(e,t,n[o]));return a.join(` `)}}function nO(e,t){var n=e.mapDimensionsAll(`defaultedLabel`);if(!U(t))return t+``;for(var r=[],i=0;i<n.length;i++){var a=e.getDimensionIndex(n[i]);a>=0&&r.push(t[a])}return r.join(` `)}var rO=function(e){l(t,e);function t(t,n,r,i){var a=e.call(this)||this;return a.updateData(t,n,r,i),a}return t.prototype._createSymbol=function(e,t,n,r,i,a){this.removeAll();var o=Jb(e,-1,-1,2,2,null,a);o.attr({z2:G(i,100),culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),o.drift=iO,this._symbolType=e,this.add(o)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){ed(this.childAt(0))},t.prototype.downplay=function(){td(this.childAt(0))},t.prototype.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},t.prototype.setDraggable=function(e,t){var n=this.childAt(0);n.draggable=e,n.cursor=!t&&e?`move`:n.cursor},t.prototype.updateData=function(e,n,r,i){this.silent=!1;var a=e.getItemVisual(n,`symbol`)||`circle`,o=e.hostModel,s=t.getSymbolSize(e,n),c=t.getSymbolZ2(e,n),l=a!==this._symbolType,u=i&&i.disableAnimation;if(l){var d=e.getItemVisual(n,`symbolKeepAspect`);this._createSymbol(a,e,n,s,c,d)}else{var f=this.childAt(0);f.silent=!1;var p={scaleX:s[0]/2,scaleY:s[1]/2};u?f.attr(p):tp(f,p,o,n),sp(f)}if(this._updateCommon(e,n,s,r,i),l){var f=this.childAt(0);if(!u){var p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:f.style.opacity}};f.scaleX=f.scaleY=0,f.style.opacity=0,np(f,p,o,n)}}u&&this.childAt(0).stopAnimation(`leave`)},t.prototype._updateCommon=function(e,t,n,r,i){var a=this.childAt(0),o=e.hostModel,s,c,l,u,d,f,p,m,h;if(r&&(s=r.emphasisItemStyle,c=r.blurItemStyle,l=r.selectItemStyle,u=r.focus,d=r.blurScope,p=r.labelStatesModels,m=r.hoverScale,h=r.cursorStyle,f=r.emphasisDisabled),!r||e.hasItemOption){var g=r&&r.itemModel?r.itemModel:e.getItemModel(t),_=g.getModel(`emphasis`);s=_.getModel(`itemStyle`).getItemStyle(),l=g.getModel([`select`,`itemStyle`]).getItemStyle(),c=g.getModel([`blur`,`itemStyle`]).getItemStyle(),u=_.get(`focus`),d=_.get(`blurScope`),f=_.get(`disabled`),p=om(g),m=_.getShallow(`scale`),h=g.getShallow(`cursor`)}var v=e.getItemVisual(t,`symbolRotate`);a.attr(`rotation`,(v||0)*Math.PI/180||0);var y=Xb(e.getItemVisual(t,`symbolOffset`),n);y&&(a.x=y[0],a.y=y[1]),h&&a.attr(`cursor`,h);var b=e.getItemVisual(t,`style`),x=b.fill;if(a instanceof Ll){var S=a.style;a.useStyle(L({image:S.image,x:S.x,y:S.y,width:S.width,height:S.height},b))}else a.__isEmptyBrush?a.useStyle(L({},b)):a.useStyle(b),a.style.decal=null,a.setColor(x,i&&i.symbolInnerColor),a.style.strokeNoScale=!0;var C=e.getItemVisual(t,`liftZ`),w=this._z2;C==null?w!=null&&(a.z2=w,this._z2=null):w??(this._z2=a.z2,a.z2+=C);var T=i&&i.useNameLabel;am(a,p,{labelFetcher:o,labelDataIndex:t,defaultText:E,inheritColor:x,defaultOpacity:b.opacity});function E(t){return T?e.getName(t):tO(e,t)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var D=a.ensureState(`emphasis`);D.style=s,a.ensureState(`select`).style=l,a.ensureState(`blur`).style=c;var O=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;D.scaleX=this._sizeX*O,D.scaleY=this._sizeY*O,this.setSymbolScale(1),yd(this,u,d,f)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,n){var r=this.childAt(0),i=uu(this).dataIndex,a=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var o=r.getTextContent();o&&ip(o,{style:{opacity:0}},t,{dataIndex:i,removeOpt:a,cb:function(){r.removeTextContent()}})}else r.removeTextContent();ip(r,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:i,cb:e,removeOpt:a})},t.getSymbolSize=function(e,t){return Yb(e.getItemVisual(t,`symbolSize`))},t.getSymbolZ2=function(e,t){return e.getItemVisual(t,`z2`)},t}(Aa);function iO(e,t){this.parent.drift(e,t)}function aO(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r&&r.isIgnore&&r.isIgnore(n))&&!(r&&r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&e.getItemVisual(n,`symbol`)!==`none`}function oO(e){return e!=null&&!pe(e)&&(e={isIgnore:e}),e||{}}function sO(e){var t=e.hostModel,n=t.getModel(`emphasis`);return{emphasisItemStyle:n.getModel(`itemStyle`).getItemStyle(),blurItemStyle:t.getModel([`blur`,`itemStyle`]).getItemStyle(),selectItemStyle:t.getModel([`select`,`itemStyle`]).getItemStyle(),focus:n.get(`focus`),blurScope:n.get(`blurScope`),emphasisDisabled:n.get(`disabled`),hoverScale:n.get(`scale`),labelStatesModels:om(t),cursorStyle:t.get(`cursor`)}}function cO(e,t,n,r,i,a,o){var s=new e(t,n,r,i);return s.setPosition(a),t.setItemGraphicEl(n,s),o.add(s),s}var lO=function(){function e(e){this.group=new Aa,this._SymbolCtor=e||rO}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=oO(t);var n=this.group,r=e.hostModel,i=this._data,a=this._SymbolCtor,o=t.disableAnimation,s=this._seriesScope=sO(e),c={disableAnimation:o},l=t.getSymbolPoint||function(t){return e.getItemLayout(t)};i||n.removeAll(),e.diff(i).add(function(r){var i=l(r);aO(e,i,r,t)&&cO(a,e,r,s,c,i,n)}).update(function(u,d){var f=i.getItemGraphicEl(d),p=l(u);if(!aO(e,p,u,t)){n.remove(f);return}var m=e.getItemVisual(u,`symbol`)||`circle`,h=f&&f.getSymbolType&&f.getSymbolType();if(!f||h&&h!==m)n.remove(f),f=new a(e,u,s,c),f.setPosition(p);else{f.updateData(e,u,s,c);var g={x:p[0],y:p[1]};o?f.attr(g):tp(f,g,r)}n.add(f),e.setItemGraphicEl(u,f)}).remove(function(e){var t=i.getItemGraphicEl(e);t&&t.fadeOut(function(){n.remove(t)},r)}).execute(),this._getSymbolPoint=l,this._data=e},e.prototype.updateLayout=function(e){var t=this._data;if(t)for(var n=this,r=t.getStore(),i=0,a=r.count();i<a;i++){var o=t.getItemGraphicEl(i),s=n._getSymbolPoint(i);aO(t,s,i,e)?(o||=cO(n._SymbolCtor,t,i,n._seriesScope,{disableAnimation:!0},s,n.group),o.stopAnimation(),o.setPosition(s),o.markRedraw()):o&&(n.group.remove(o),t.setItemGraphicEl(i,null))}},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=sO(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n,r){this._progressiveEls=[],r=oO(r);function i(e){e.isGroup||(e.incremental=n,e.ensureState(`emphasis`).hoverLayer=2)}for(var a=e.start;a<e.end;a++){var o=t.getItemLayout(a);if(aO(t,o,a,r)){var s=new this._SymbolCtor(t,a,this._seriesScope);s.traverse(i),s.setPosition(o),this.group.add(s),t.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},e.prototype.eachRendered=function(e){Up(this._progressiveEls||this.group,e)},e.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(e){e.fadeOut(function(){t.remove(e)},n.hostModel)}):t.removeAll()},e}();function uO(e,t,n){var r=e.getBaseAxis(),i=e.getOtherAxis(r),a=dO(i,n),o=r.dim,s=i.dim,c=t.mapDimension(s),l=t.mapDimension(o),u=+(s===`x`||s===`radius`),d=H(e.dimensions,function(e){return t.mapDimension(e)}),f=!1,p=t.getCalculationInfo(`stackResultDimension`);return cw(t,d[0])&&(f=!0,d[0]=p),cw(t,d[1])&&(f=!0,d[1]=p),{dataDimsForPoint:d,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!f,valueDim:c,baseDim:l,baseDataOffset:u,stackedOverDimension:t.getCalculationInfo(`stackedOverDimension`)}}function dO(e,t){var n=0,r=e.scale.getExtent();return t===`start`?n=r[0]:t===`end`?n=r[1]:fe(t)&&!isNaN(t)?n=t:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]),n}function fO(e,t,n,r){var i=NaN;e.stacked&&(i=n.get(n.getCalculationInfo(`stackedOverDimension`),r)),isNaN(i)&&(i=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=n.get(e.baseDim,r),o[1-a]=i,t.dataToPoint(o)}function pO(e,t){return!isFinite(e)||!isFinite(t)}var mO=typeof Float32Array<`u`?Float32Array:void 0,hO=typeof Float64Array<`u`?Float64Array:void 0;function gO(e){return _O({ctor:mO},e).arr}function _O(e,t){var n=e.arr,r=e.ctor;if(t>uo&&(t=uo),!n||e.typed&&n.length<t){var i=void 0;if(r)try{i=new r(t),e.typed=!0,n&&i.set(n)}catch{}if(!i&&(i=[],e.typed=!1,n))for(var a=0,o=n.length;a<o;a++)i[a]=n[a];e.arr=i}return e}function vO(e,t){var n=[];return t.diff(e).add(function(e){n.push({cmd:`+`,idx:e})}).update(function(e,t){n.push({cmd:`=`,idx:t,idx1:e})}).remove(function(e){n.push({cmd:`-`,idx:e})}).execute(),n}function yO(e,t,n,r,i,a,o,s){for(var c=vO(e,t),l=[],u=[],d=[],f=[],p=[],m=[],h=[],g=uO(i,t,o),_=e.getLayout(`points`)||[],v=t.getLayout(`points`)||[],y=0;y<c.length;y++){var b=c[y],x=!0,S=void 0,C=void 0;switch(b.cmd){case`=`:S=b.idx*2,C=b.idx1*2;var w=_[S],T=_[S+1],E=v[C],D=v[C+1];(isNaN(w)||isNaN(T))&&(w=E,T=D),l.push(w,T),u.push(E,D),d.push(n[S],n[S+1]),f.push(r[C],r[C+1]),h.push(t.getRawIndex(b.idx1));break;case`+`:var O=b.idx,k=g.dataDimsForPoint,A=i.dataToPoint([t.get(k[0],O),t.get(k[1],O)]);C=O*2,l.push(A[0],A[1]),u.push(v[C],v[C+1]);var j=fO(g,i,t,O);d.push(j[0],j[1]),f.push(r[C],r[C+1]),h.push(t.getRawIndex(O));break;case`-`:x=!1}x&&(p.push(b),m.push(m.length))}m.sort(function(e,t){return h[e]-h[t]});for(var M=l.length,N=gO(M),P=gO(M),F=gO(M),I=gO(M),L=[],y=0;y<m.length;y++){var R=m[y],z=y*2,B=R*2;N[z]=l[B],N[z+1]=l[B+1],P[z]=u[B],P[z+1]=u[B+1],F[z]=d[B],F[z+1]=d[B+1],I[z]=f[B],I[z+1]=f[B+1],L[y]=p[R]}return{current:N,next:P,stackedOnCurrent:F,stackedOnNext:I,status:L}}var bO=Math.min,xO=Math.max;function SO(e,t,n,r,i,a,o,s,c){for(var l,u,d,f,p,m,h=n,g=0;g<r;g++){var _=t[h*2],v=t[h*2+1];if(h>=i||h<0)break;if(pO(_,v)){if(c){h+=a;continue}break}if(h===n)e[a>0?`moveTo`:`lineTo`](_,v),d=_,f=v;else{var y=_-l,b=v-u;if(y*y+b*b<.5){h+=a;continue}if(o>0){for(var x=h+a,S=t[x*2],C=t[x*2+1];S===_&&C===v&&g<r;)g++,x+=a,h+=a,S=t[x*2],C=t[x*2+1],_=t[h*2],v=t[h*2+1],y=_-l,b=v-u;var w=g+1;if(c)for(;pO(S,C)&&w<r;)w++,x+=a,S=t[x*2],C=t[x*2+1];var T=.5,E=0,D=0,O=void 0,k=void 0;if(w>=r||pO(S,C))p=_,m=v;else{E=S-l,D=C-u;var A=_-l,j=S-_,M=v-u,N=C-v,P=void 0,F=void 0;if(s===`x`){P=Math.abs(A),F=Math.abs(j);var I=E>0?1:-1;p=_-I*P*o,m=v,O=_+I*F*o,k=v}else if(s===`y`){P=Math.abs(M),F=Math.abs(N);var L=D>0?1:-1;p=_,m=v-L*P*o,O=_,k=v+L*F*o}else P=Math.sqrt(A*A+M*M),F=Math.sqrt(j*j+N*N),T=F/(F+P),p=_-E*o*(1-T),m=v-D*o*(1-T),O=_+E*o*T,k=v+D*o*T,O=bO(O,xO(S,_)),k=bO(k,xO(C,v)),O=xO(O,bO(S,_)),k=xO(k,bO(C,v)),E=O-_,D=k-v,p=_-E*P/F,m=v-D*P/F,p=bO(p,xO(l,_)),m=bO(m,xO(u,v)),p=xO(p,bO(l,_)),m=xO(m,bO(u,v)),E=_-p,D=v-m,O=_+E*F/P,k=v+D*F/P}e.bezierCurveTo(d,f,p,m,_,v),d=O,f=k}else e.lineTo(_,v)}l=_,u=v,h+=a}return g}var CO=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),wO=function(e){l(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`ec-polyline`,n}return t.prototype.getDefaultStyle=function(){return{stroke:q.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new CO},t.prototype.buildPath=function(e,t){var n=t.points,r=0,i=n.length/2;if(t.connectNulls){for(;i>0&&pO(n[i*2-2],n[i*2-1]);i--);for(;r<i&&pO(n[r*2],n[r*2+1]);r++);}for(;r<i;)r+=SO(e,n,r,i,i,1,t.smooth,t.smoothMonotone,t.connectNulls)+1},t.prototype.getPointOn=function(e,t){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n=this.path.data,r=ol.CMD,i,a,o=t===`x`,s=[],c=0;c<n.length;){var l=n[c++],u=void 0,d=void 0,f=void 0,p=void 0,m=void 0,h=void 0,g=void 0;switch(l){case r.M:i=n[c++],a=n[c++];break;case r.L:if(u=n[c++],d=n[c++],g=o?(e-i)/(u-i):(e-a)/(d-a),g<=1&&g>=0){var _=o?(d-a)*g+a:(u-i)*g+i;return o?[e,_]:[_,e]}i=u,a=d;break;case r.C:u=n[c++],d=n[c++],f=n[c++],p=n[c++],m=n[c++],h=n[c++];var v=o?nr(i,u,f,m,e,s):nr(a,d,p,h,e,s);if(v>0)for(var y=0;y<v;y++){var b=s[y];if(b<=1&&b>=0){var _=o?er(a,d,p,h,b):er(i,u,f,m,b);return o?[e,_]:[_,e]}}i=m,a=h}}},t}(jl),TO=function(e){l(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(CO),EO=function(e){l(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`ec-polygon`,n}return t.prototype.getDefaultShape=function(){return new TO},t.prototype.buildPath=function(e,t){var n=t.points,r=t.stackedOnPoints,i=0,a=n.length/2,o=t.smoothMonotone;if(t.connectNulls){for(;a>0&&pO(n[a*2-2],n[a*2-1]);a--);for(;i<a&&pO(n[i*2],n[i*2+1]);i++);}for(;i<a;){var s=SO(e,n,i,a,a,1,t.smooth,o,t.connectNulls);SO(e,r,i+s-1,s,a,-1,t.stackedOnSmooth,o,t.connectNulls),i+=s+1,e.closePath()}},t}(jl);function DO(e,t,n,r,i){var a=e.getArea(),o=a.x,s=a.y,c=a.width,l=a.height,u=n.get([`lineStyle`,`width`])||0;o-=u/2,s-=u/2,c+=u,l+=u,c=Math.ceil(c),o!==Math.floor(o)&&(o=Math.floor(o),c++);var d=new Gl({shape:{x:o,y:s,width:c,height:l}});if(t){var f=e.getBaseAxis(),p=f.isHorizontal(),m=f.inverse;p?(m&&(d.shape.x+=c),d.shape.width=0):(m||(d.shape.y+=l),d.shape.height=0);var h=ue(i)?function(e){i(e,d)}:null;np(d,{shape:{width:c,height:l,x:o,y:s}},n,null,r,h)}return d}function OO(e,t,n){var r=e.getArea(),i=ro(r.r0,1),a=ro(r.r,1),o=new yf({shape:{cx:ro(e.cx,1),cy:ro(e.cy,1),r0:i,r:a,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});return t&&(e.getBaseAxis().dim===`angle`?o.shape.endAngle=r.startAngle:o.shape.r=i,np(o,{shape:{endAngle:r.endAngle,r:a}},n)),o}function kO(e,t,n,r,i){return e?e.type===`polar`?OO(e,t,n):e.type===`cartesian2d`?DO(e,t,n,r,i):null:null}function AO(e,t,n){e?t.setClipPath(n):t.removeClipPath()}function jO(e){var t=e.coordinateSystem;if(e.get(`clip`,!0)&&t&&(!t.shouldClip||t.shouldClip()))return t.getArea&&t.getArea(.1)}function MO(e,t){return e.type===t}function NO(e,t,n,r){return e&&(e.legacy||e.legacy!==!1&&!n&&!r&&t!==`tspan`&&(t===`text`||K(e,`text`)))}function PO(e,t,n){var r=e,i,a,o;if(t===`text`)o=r;else{o={},K(r,`text`)&&(o.text=r.text),K(r,`rich`)&&(o.rich=r.rich),K(r,`textFill`)&&(o.fill=r.textFill),K(r,`textStroke`)&&(o.stroke=r.textStroke),K(r,`fontFamily`)&&(o.fontFamily=r.fontFamily),K(r,`fontSize`)&&(o.fontSize=r.fontSize),K(r,`fontStyle`)&&(o.fontStyle=r.fontStyle),K(r,`fontWeight`)&&(o.fontWeight=r.fontWeight),a={type:`text`,style:o,silent:!0},i={};var s=K(r,`textPosition`);n?i.position=s?r.textPosition:`inside`:s&&(i.position=r.textPosition),K(r,`textPosition`)&&(i.position=r.textPosition),K(r,`textOffset`)&&(i.offset=r.textOffset),K(r,`textRotation`)&&(i.rotation=r.textRotation),K(r,`textDistance`)&&(i.distance=r.textDistance)}return FO(o,e),V(o.rich,function(e){FO(e,e)}),{textConfig:i,textContent:a}}function FO(e,t){t&&(t.font=t.textFont||t.font,K(t,`textStrokeWidth`)&&(e.lineWidth=t.textStrokeWidth),K(t,`textAlign`)&&(e.align=t.textAlign),K(t,`textVerticalAlign`)&&(e.verticalAlign=t.textVerticalAlign),K(t,`textLineHeight`)&&(e.lineHeight=t.textLineHeight),K(t,`textWidth`)&&(e.width=t.textWidth),K(t,`textHeight`)&&(e.height=t.textHeight),K(t,`textBackgroundColor`)&&(e.backgroundColor=t.textBackgroundColor),K(t,`textPadding`)&&(e.padding=t.textPadding),K(t,`textBorderColor`)&&(e.borderColor=t.textBorderColor),K(t,`textBorderWidth`)&&(e.borderWidth=t.textBorderWidth),K(t,`textBorderRadius`)&&(e.borderRadius=t.textBorderRadius),K(t,`textBoxShadowColor`)&&(e.shadowColor=t.textBoxShadowColor),K(t,`textBoxShadowBlur`)&&(e.shadowBlur=t.textBoxShadowBlur),K(t,`textBoxShadowOffsetX`)&&(e.shadowOffsetX=t.textBoxShadowOffsetX),K(t,`textBoxShadowOffsetY`)&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function IO(e,t,n){var r=e;r.textPosition=r.textPosition||n.position||`inside`,n.offset!=null&&(r.textOffset=n.offset),n.rotation!=null&&(r.textRotation=n.rotation),n.distance!=null&&(r.textDistance=n.distance);var i=r.textPosition.indexOf(`inside`)>=0,a=e.fill||q.color.neutral99;LO(r,t);var o=r.textFill==null;return i?o&&(r.textFill=n.insideFill||q.color.neutral00,!r.textStroke&&n.insideStroke&&(r.textStroke=n.insideStroke),!r.textStroke&&(r.textStroke=a),r.textStrokeWidth??=2):(o&&(r.textFill=e.fill||n.outsideFill||q.color.neutral00),!r.textStroke&&n.outsideStroke&&(r.textStroke=n.outsideStroke)),r.text=t.text,r.rich=t.rich,V(t.rich,function(e){LO(e,e)}),r}function LO(e,t){t&&(K(t,`fill`)&&(e.textFill=t.fill),K(t,`stroke`)&&(e.textStroke=t.fill),K(t,`lineWidth`)&&(e.textStrokeWidth=t.lineWidth),K(t,`font`)&&(e.font=t.font),K(t,`fontStyle`)&&(e.fontStyle=t.fontStyle),K(t,`fontWeight`)&&(e.fontWeight=t.fontWeight),K(t,`fontSize`)&&(e.fontSize=t.fontSize),K(t,`fontFamily`)&&(e.fontFamily=t.fontFamily),K(t,`align`)&&(e.textAlign=t.align),K(t,`verticalAlign`)&&(e.textVerticalAlign=t.verticalAlign),K(t,`lineHeight`)&&(e.textLineHeight=t.lineHeight),K(t,`width`)&&(e.textWidth=t.width),K(t,`height`)&&(e.textHeight=t.height),K(t,`backgroundColor`)&&(e.textBackgroundColor=t.backgroundColor),K(t,`padding`)&&(e.textPadding=t.padding),K(t,`borderColor`)&&(e.textBorderColor=t.borderColor),K(t,`borderWidth`)&&(e.textBorderWidth=t.borderWidth),K(t,`borderRadius`)&&(e.textBorderRadius=t.borderRadius),K(t,`shadowColor`)&&(e.textBoxShadowColor=t.shadowColor),K(t,`shadowBlur`)&&(e.textBoxShadowBlur=t.shadowBlur),K(t,`shadowOffsetX`)&&(e.textBoxShadowOffsetX=t.shadowOffsetX),K(t,`shadowOffsetY`)&&(e.textBoxShadowOffsetY=t.shadowOffsetY),K(t,`textShadowColor`)&&(e.textShadowColor=t.textShadowColor),K(t,`textShadowBlur`)&&(e.textShadowBlur=t.textShadowBlur),K(t,`textShadowOffsetX`)&&(e.textShadowOffsetX=t.textShadowOffsetX),K(t,`textShadowOffsetY`)&&(e.textShadowOffsetY=t.textShadowOffsetY))}function RO(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function zO(e){for(var t=ds(),n=ds(),r=0;r<e.length;){var i=e[r++],a=e[r++];pO(i,a)||(fs(t,i),fs(n,a))}return[t,n]}function BO(e,t){var n=zO(e),r=n[0],i=n[1],a=zO(t),o=a[0],s=a[1];return Math.max(Math.abs(r[0]-o[0]),Math.abs(i[0]-s[0]),Math.abs(r[1]-o[1]),Math.abs(i[1]-s[1]))}function VO(e){return fe(e)?e:e?.5:0}function HO(e,t,n){if(n.valueDim==null)return[];for(var r=t.count(),i=gO(r*2),a=0;a<r;a++){var o=fO(n,e,t,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function UO(e,t,n,r,i){var a=n.getBaseAxis(),o=a.dim===`x`||a.dim===`radius`?0:1,s=[],c=0,l=[],u=[],d=[],f=[];if(i){for(c=0;c<e.length;c+=2){var p=t||e;pO(p[c],p[c+1])||f.push(e[c],e[c+1])}e=f}for(c=0;c<e.length-2;c+=2)switch(d[0]=e[c+2],d[1]=e[c+3],u[0]=e[c],u[1]=e[c+1],s.push(u[0],u[1]),r){case`end`:l[o]=d[o],l[1-o]=u[1-o],s.push(l[0],l[1]);break;case`middle`:var m=(u[o]+d[o])/2,h=[];l[o]=h[o]=m,l[1-o]=u[1-o],h[1-o]=d[1-o],s.push(l[0],l[1]),s.push(h[0],h[1]);break;default:l[o]=u[o],l[1-o]=d[1-o],s.push(l[0],l[1])}return s.push(e[c++],e[c++]),s}function WO(e,t){var n=[],r=e.length,i,a;function o(e,t,n){var r=e.coord;return{coord:n,color:Lr((n-r)/(t.coord-r),[e.color,t.color])}}for(var s=0;s<r;s++){var c=e[s],l=c.coord;if(l<0)i=c;else if(l>t){a?n.push(o(a,c,t)):i&&n.push(o(i,c,0),o(i,c,t));break}else i&&=(n.push(o(i,c,0)),null),n.push(c),a=c}return n}function GO(e,t,n){var r=e.getVisual(`visualMeta`);if(!(!r||!r.length||!e.count())&&t.type===`cartesian2d`){for(var i,a,o=r.length-1;o>=0;o--){var s=e.getDimensionInfo(r[o].dimension);if(i=s&&s.coordDim,i===`x`||i===`y`){a=r[o];break}}if(a){var c=t.getAxis(i),l=H(a.stops,function(e){return{coord:c.toGlobalCoord(c.dataToCoord(e.value)),color:e.color}}),u=l.length,d=a.outerColors.slice();u&&l[0].coord>l[u-1].coord&&(l.reverse(),d.reverse());var f=WO(l,i===`x`?n.getWidth():n.getHeight()),p=f.length;if(!p&&u)return l[0].coord<0?d[1]?d[1]:l[u-1].color:d[0]?d[0]:l[0].color;var m=10,h=f[0].coord-m,g=f[p-1].coord+m,_=g-h;if(_<.001)return`transparent`;V(f,function(e){e.offset=(e.coord-h)/_}),f.push({offset:p?f[p-1].offset:.5,color:d[1]||`transparent`}),f.unshift({offset:p?f[0].offset:.5,color:d[0]||`transparent`});var v=new zf(0,0,0,0,f,!0);return v[i]=h,v[i+`2`]=g,v}}}function KO(e,t,n){var r=e.get(`showAllSymbol`),i=r===`auto`;if(!(r&&!i)){var a=n.getAxesByScale(`ordinal`)[0];if(a&&!(i&&qO(a,t))){var o=t.mapDimension(a.dim),s={};return V(a.getViewLabels(),function(e){e.tick.offInterval||(s[kT(a.scale,e.tick)]=1)}),function(e){return!s.hasOwnProperty(t.get(o,e))}}}}function qO(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(rO.getSymbolSize(t,o)[+!!e.isHorizontal()]*1.5>r)return!1;return!0}function JO(e){for(var t=e.length/2;t>0&&pO(e[t*2-2],e[t*2-1]);t--);return t-1}function YO(e,t){return[e[t*2],e[t*2+1]]}function XO(e,t,n){for(var r=e.length/2,i=n===`x`?0:1,a,o,s=0,c=-1,l=0;l<r;l++)if(o=e[l*2+i],!pO(o,e[l*2+1-i])){if(l===0){a=o;continue}if(a<=t&&o>=t||a>=t&&o<=t){c=l;break}s=l,a=o}return{range:[s,c],t:(t-a)/(o-a)}}function ZO(e){if(e.get([`endLabel`,`show`]))return!0;for(var t=0;t<Du.length;t++)if(e.get([Du[t],`endLabel`,`show`]))return!0;return!1}function QO(e,t,n,r){if(MO(t,`cartesian2d`)){var i=r.getModel(`endLabel`),a=i.get(`valueAnimation`),o=r.getData(),s={lastFrameIndex:0},c=ZO(r)?function(n,r){e._endLabelOnDuring(n,r,o,s,a,i,t)}:null,l=t.getBaseAxis().isHorizontal(),u=DO(t,n,r,function(){var t=e._endLabel;t&&n&&s.originalX!=null&&t.attr({x:s.originalX,y:s.originalY})},c);if(!r.get(`clip`,!0)){var d=u.shape,f=Math.max(d.width,d.height);l?(d.y-=f,d.height+=f*2):(d.x-=f,d.width+=f*2)}return c&&c(1,u),u}return OO(t,n,r)}function $O(e,t){var n=t.getBaseAxis(),r=n.isHorizontal(),i=n.inverse,a=r?i?`right`:`left`:`center`,o=r?`middle`:i?`top`:`bottom`;return{normal:{align:e.get(`align`)||a,verticalAlign:e.get(`verticalAlign`)||o}}}var ek=function(e){l(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var e=new Aa,t=new lO;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e,this._changePolyState=ce(this._changePolyState,this)},t.prototype.render=function(e,t,n){var r=e.coordinateSystem,i=this.group,a=e.getData(),o=e.getModel(`lineStyle`),s=e.getModel(`areaStyle`),c=a.getLayout(`points`)||[],l=r.type===`polar`,u=this._coordSys,d=this._symbolDraw,f=this._polyline,p=this._polygon,m=this._lineGroup,h=!t.ssr&&e.get(`animation`),g=!s.isEmpty(),_=s.get(`origin`),v=uO(r,a,_),y=g&&HO(r,a,v),b=e.get(`showSymbol`),x=e.get(`connectNulls`),S=b&&!l&&KO(e,a,r),C=this._data;C&&C.eachItemGraphicEl(function(e,t){e.__temp&&(i.remove(e),C.setItemGraphicEl(t,null))}),b||d.remove(),i.add(m);var w=!l&&e.get(`step`),T;r&&r.getArea&&e.get(`clip`,!0)&&(T=r.getArea(),T.width==null?T.r0&&(T.r0-=.5,T.r+=.5):(T.x-=.1,T.y-=.1,T.width+=.2,T.height+=.2)),this._clipShapeForSymbol=T;var E=GO(a,r,n)||a.getVisual(`style`)[a.getVisual(`drawType`)];if(!(f&&u.type===r.type&&w===this._step))b&&d.updateData(a,{isIgnore:S,clipShape:T,disableAnimation:!0,getSymbolPoint:function(e){return[c[e*2],c[e*2+1]]}}),h&&this._initSymbolLabelAnimation(a,r,T),w&&(y&&=UO(y,c,r,w,x),c=UO(c,null,r,w,x)),f=this._newPolyline(c),g?p=this._newPolygon(c,y):p&&=(m.remove(p),this._polygon=null),l||this._initOrUpdateEndLabel(e,r,Uh(E)),m.setClipPath(QO(this,r,!0,e));else{g&&!p?p=this._newPolygon(c,y):p&&!g&&(m.remove(p),p=this._polygon=null),l||this._initOrUpdateEndLabel(e,r,Uh(E));var D=m.getClipPath();D?np(D,{shape:QO(this,r,!1,e).shape},e):m.setClipPath(QO(this,r,!0,e)),b&&d.updateData(a,{isIgnore:S,clipShape:T,disableAnimation:!0,getSymbolPoint:function(e){return[c[e*2],c[e*2+1]]}}),(!RO(this._stackedOnPoints,y)||!RO(this._points,c))&&(h?this._doUpdateAnimation(a,y,r,n,w,_,x):(w&&(y&&=UO(y,c,r,w,x),c=UO(c,null,r,w,x)),f.setShape({points:c}),p&&p.setShape({points:c,stackedOnPoints:y})))}var O=e.getModel(`emphasis`),k=O.get(`focus`),A=O.get(`blurScope`),j=O.get(`disabled`);if(f.useStyle(z(o.getLineStyle(),{fill:`none`,stroke:E,lineJoin:`bevel`})),Cd(f,e,`lineStyle`),f.style.lineWidth>0&&e.get([`emphasis`,`lineStyle`,`width`])===`bolder`){var M=f.getState(`emphasis`).style;M.lineWidth=+f.style.lineWidth+1}uu(f).seriesIndex=e.seriesIndex,yd(f,k,A,j);var N=VO(e.get(`smooth`)),P=e.get(`smoothMonotone`);if(f.setShape({smooth:N,smoothMonotone:P,connectNulls:x}),p){var F=a.getCalculationInfo(`stackedOnSeries`),I=0;p.useStyle(z(s.getAreaStyle(),{fill:E,opacity:.7,lineJoin:`bevel`,decal:a.getVisual(`style`).decal})),F&&(I=VO(F.get(`smooth`))),p.setShape({smooth:N,stackedOnSmooth:I,smoothMonotone:P,connectNulls:x}),Cd(p,e,`areaStyle`),uu(p).seriesIndex=e.seriesIndex,yd(p,k,A,j)}var L=this._changePolyState;a.eachItemGraphicEl(function(e){e&&(e.onHoverStateChange=L)}),this._polyline.onHoverStateChange=L,this._data=a,this._coordSys=r,this._stackedOnPoints=y,this._points=c,this._step=w,this._valueOrigin=_;var R=e.get(`triggerEvent`),B=e.get(`triggerLineEvent`),ee=B===!0||R===!0||R===`line`,te=B===!0||R===!0||R===`area`;this.packEventData(e,f,ee),p&&this.packEventData(e,p,te)},t.prototype.packEventData=function(e,t,n){uu(t).eventData=n?{componentType:`series`,componentSubType:`line`,componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:`line`,selfType:t===this._polygon?`area`:`line`}:null},t.prototype.highlight=function(e,t,n,r){var i=e.getData(),a=$o(i,r);if(this._changePolyState(`emphasis`),!(a instanceof Array)&&a!=null&&a>=0){var o=i.getLayout(`points`),s=i.getItemGraphicEl(a);if(!s){var c=o[a*2],l=o[a*2+1];if(pO(c,l)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,l))return;var u=e.get(`zlevel`)||0,d=e.get(`z`)||0;s=new rO(i,a),s.x=c,s.y=l,s.setZ(u,d);var f=s.getSymbolPath().getTextContent();f&&(f.zlevel=u,f.z=d,f.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(a,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else Oy.prototype.highlight.call(this,e,t,n,r)},t.prototype.downplay=function(e,t,n,r){var i=e.getData(),a=$o(i,r);if(this._changePolyState(`normal`),a!=null&&a>=0){var o=i.getItemGraphicEl(a);o&&(o.__temp?(i.setItemGraphicEl(a,null),this.group.remove(o)):o.downplay())}else Oy.prototype.downplay.call(this,e,t,n,r)},t.prototype._changePolyState=function(e){var t=this._polygon;Gu(this._polyline,e),t&&Gu(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new wO({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new EO({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,t,n){var r,i,a=t.getBaseAxis(),o=a.inverse;t.type===`cartesian2d`?(r=a.isHorizontal(),i=!1):t.type===`polar`&&(r=a.dim===`angle`,i=!0);var s=e.hostModel,c=s.get(`animationDuration`);ue(c)&&(c=c(null));var l=s.get(`animationDelay`)||0,u=ue(l)?l(null):l;e.eachItemGraphicEl(function(e,a){var s=e;if(s){var d=[e.x,e.y],f=void 0,p=void 0,m=void 0;if(n){if(i){var h=n,g=t.pointToCoord(d);r?(f=h.startAngle,p=h.endAngle,m=-g[1]/180*Math.PI):(f=h.r0,p=h.r,m=g[0])}else{var _=n;r?(f=_.x,p=_.x+_.width,m=e.x):(f=_.y+_.height,p=_.y,m=e.y)}}var v=p===f?0:(m-f)/(p-f);o&&(v=1-v);var y=ue(l)?l(a):c*v+u,b=s.getSymbolPath(),x=b.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:y}),x&&x.animateFrom({style:{opacity:0}},{duration:300,delay:y}),b.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,t,n){var r=e.getModel(`endLabel`);if(ZO(e)){var i=e.getData(),a=this._polyline,o=i.getLayout(`points`);if(!o){a.removeTextContent(),this._endLabel=null;return}var s=this._endLabel;s||(s=this._endLabel=new Xl({z2:200}),s.ignoreClip=!0,a.setTextContent(this._endLabel),a.disableLabelAnimation=!0);var c=JO(o);c>=0&&(am(a,om(e,`endLabel`),{inheritColor:n,labelFetcher:e,labelDataIndex:c,defaultText:function(e,t,n){return n==null?tO(i,e):nO(i,n)},enableTextSetter:!0},$O(r,t)),a.textConfig.position=null)}else this._endLabel&&=(this._polyline.removeTextContent(),null)},t.prototype._endLabelOnDuring=function(e,t,n,r,i,a,o){var s=this._endLabel,c=this._polyline;if(s){e<1&&r.originalX==null&&(r.originalX=s.x,r.originalY=s.y);var l=n.getLayout(`points`),u=n.hostModel,d=u.get(`connectNulls`),f=a.get(`precision`),p=a.get(`distance`)||0,m=o.getBaseAxis(),h=m.isHorizontal(),g=m.inverse,_=t.shape,v=g?h?_.x:_.y+_.height:h?_.x+_.width:_.y,y=(h?p:0)*(g?-1:1),b=(h?0:-p)*(g?-1:1),x=h?`x`:`y`,S=XO(l,v,x),C=S.range,w=C[1]-C[0],T=void 0;if(w>=1){if(w>1&&!d){var E=YO(l,C[0]);s.attr({x:E[0]+y,y:E[1]+b}),i&&(T=u.getRawValue(C[0]))}else{var E=c.getPointOn(v,x);E&&s.attr({x:E[0]+y,y:E[1]+b});var D=u.getRawValue(C[0]),O=u.getRawValue(C[1]);i&&(T=us(n,f,D,O,S.t))}r.lastFrameIndex=C[0]}else{var k=e===1||r.lastFrameIndex>0?C[0]:0,E=YO(l,k);i&&(T=u.getRawValue(k)),s.attr({x:E[0]+y,y:E[1]+b})}if(i){var A=gm(s);typeof A.setLabelText==`function`&&A.setLabelText(T)}}},t.prototype._doUpdateAnimation=function(e,t,n,r,i,a,o){var s=this._polyline,c=this._polygon,l=e.hostModel,u=yO(this._data,e,this._stackedOnPoints,t,this._coordSys,n,this._valueOrigin,a),d=u.current,f=u.stackedOnCurrent,p=u.next,m=u.stackedOnNext;if(i&&(f=UO(u.stackedOnCurrent,u.current,n,i,o),d=UO(u.current,null,n,i,o),m=UO(u.stackedOnNext,u.next,n,i,o),p=UO(u.next,null,n,i,o)),BO(d,p)>3e3||c&&BO(f,m)>3e3){s.stopAnimation(),s.setShape({points:p}),c&&(c.stopAnimation(),c.setShape({points:p,stackedOnPoints:m}));return}s.shape.__points=u.current,s.shape.points=d;var h={shape:{points:p}};u.current!==d&&(h.shape.__points=u.next),s.stopAnimation(),tp(s,h,l),c&&(c.setShape({points:d,stackedOnPoints:f}),c.stopAnimation(),tp(c,{shape:{stackedOnPoints:m}},l),s.shape.points!==c.shape.points&&(c.shape.points=s.shape.points));for(var g=[],_=u.status,v=0;v<_.length;v++)if(_[v].cmd===`=`){var y=e.getItemGraphicEl(_[v].idx1);y&&g.push({el:y,ptIdx:v})}s.animators&&s.animators.length&&s.animators[0].during(function(){c&&c.dirtyShape();for(var e=s.shape.__points,t=0;t<g.length;t++){var n=g[t].el,r=g[t].ptIdx*2;n.x=e[r],n.y=e[r+1],n.markRedraw()}})},t.prototype.remove=function(e){var t=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(e,r){e.__temp&&(t.remove(e),n.setItemGraphicEl(r,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type=`line`,t}(Oy);function tk(e,t){return{seriesType:e,plan:Ty(),reset:function(e){var n=e.getData(),r=e.coordinateSystem,i=e.pipelineContext,a=t||i.large;if(r){var o=H(r.dimensions,function(e){return n.mapDimension(e)}).slice(0,2),s=o.length,c=n.getCalculationInfo(`stackResultDimension`);cw(n,o[0])&&(o[0]=c),cw(n,o[1])&&(o[1]=c);var l=n.getStore(),u=n.getDimensionIndex(o[0]),d=n.getDimensionIndex(o[1]);return s&&{progress:function(e,t){for(var n=e.end-e.start,i=a&&gO(n*s),o=[],c=[],f=e.start,p=0;f<e.end;f++){var m=void 0;if(s===1){var h=l.get(u,f);m=r.dataToPoint(h,null,c)}else o[0]=l.get(u,f),o[1]=l.get(d,f),m=r.dataToPoint(o,null,c);a?(i[p++]=m[0],i[p++]=m[1]):t.setItemLayout(f,m.slice())}a&&(t.setLayout(`points`,i),t.setLayout(`pointsRange`,{start:e.start,end:e.end}))}}}}}}var nk={average:function(e){for(var t=0,n=0,r=0;r<e.length;r++)isNaN(e[r])||(t+=e[r],n++);return n===0?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},rk=function(e){return Math.round(e.length/2)};function ik(e){return{seriesType:e,reset:function(e,t,n){var r=e.getData(),i=e.get(`sampling`),a=e.coordinateSystem,o=r.count();if(o>10&&a.type===`cartesian2d`&&i){var s=a.getBaseAxis(),c=a.getOtherAxis(s),l=s.getExtent(),u=n.getDevicePixelRatio(),d=Math.abs(l[1]-l[0])*(u||1),f=Math.round(o/d);if(isFinite(f)&&f>1){i===`lttb`?e.setData(r.lttbDownSample(r.mapDimension(c.dim),1/f)):i===`minmax`&&e.setData(r.minmaxDownSample(r.mapDimension(c.dim),1/f));var p=void 0;W(i)?p=nk[i]:ue(i)&&(p=i),p&&e.setData(r.downSample(r.mapDimension(c.dim),1/f,p,rk))}}}}}function ak(e){e.registerChartView(ek),e.registerSeriesModel(eO),e.registerLayout(tk(`line`,!0)),e.registerVisual({seriesType:`line`,reset:function(e){var t=e.getData(),n=e.getModel(`lineStyle`).getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual(`style`).fill),t.setVisual(`legendLineStyle`,n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,ik(`line`))}var ok=function(e){l(t,e);function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.index=0,o.type=i||`value`,o.position=a||`bottom`,o}return t.prototype.isHorizontal=function(){var e=this.position;return e===`top`||e===`bottom`},t.prototype.getGlobalExtent=function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e[this.dim===`x`?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if(this.type!==`category`)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}($E),sk=null;function ck(){return sk}var lk=`expandAxisBreak`,uk=Math.PI,dk=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],fk=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],pk=es(),mk=es(),hk=function(){function e(e){this.recordMap={},this.resolveAxisNameOverlap=e}return e.prototype.ensureRecord=function(e){var t=e.axis.dim,n=e.componentIndex,r=this.recordMap,i=r[t]||(r[t]=[]);return i[n]||(i[n]={ready:{}})},e}();function gk(e,t,n,r){var i=n.axis,a=t.ensureRecord(n),o=[],s,c=Bk(e.axisName)&&wT(e.nameLocation);V(r,function(e){var t=MD(e);if(!(!t||t.label.ignore)){o.push(t);var n=a.transGroup;c&&(n.transform?Ht(_k,n.transform):It(_k),t.transform&&Rt(_k,_k,t.transform),rn.copy(vk,t.localRect),vk.applyTransform(_k),s?s.union(vk):rn.copy(s=new rn(0,0,0,0),vk))}});var l=Math.abs(a.dirVec.x)>.1?`x`:`y`,u=a.transGroup[l];if(o.sort(function(e,t){return Math.abs(e.label[l]-u)-Math.abs(t.label[l]-u)}),c&&s){var d=i.getExtent(),f=Math.min(d[0],d[1]),p=Math.max(d[0],d[1])-f;s.union(new rn(f,0,p,1))}a.stOccupiedRect=s,a.labelInfoList=o}var _k=Ft(),vk=new rn(0,0,0,0),yk=function(e,t,n,r,i,a){if(wT(e.nameLocation)){var o=a.stOccupiedRect;o&&bk(FD({},o,a.transGroup.transform),r,i)}else xk(a.labelInfoList,a.dirVec,r,i)};function bk(e,t,n){var r=new Ut;HD(e,t,r,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&ID(t,r)}function xk(e,t,n,r){for(var i=Ut.dot(r,t)>=0,a=0,o=e.length;a<o;a++){var s=e[i?a:o-1-a];s.label.ignore||bk(s,n,r)}}var Sk=function(){function e(e,t,n,r){this.group=new Aa,this._axisModel=e,this._api=t,this._local={},this._shared=r||new hk(yk),this._resetCfgDetermined(n)}return e.prototype.updateCfg=function(e){var t=this._cfg.raw;t.position=e.position,t.labelOffset=e.labelOffset,this._resetCfgDetermined(t)},e.prototype.__getRawCfg=function(){return this._cfg.raw},e.prototype._resetCfgDetermined=function(e){var t=this._axisModel,n=t.getDefaultOption?t.getDefaultOption():{},r=G(e.axisName,t.get(`name`)),i=t.get(`nameMoveOverlap`);(i==null||i===`auto`)&&(i=G(e.defaultNameMoveOverlap,!0));var a={raw:e,position:e.position,rotation:e.rotation,nameDirection:G(e.nameDirection,1),tickDirection:G(e.tickDirection,1),labelDirection:G(e.labelDirection,1),labelOffset:G(e.labelOffset,0),silent:G(e.silent,!0),axisName:r,nameLocation:xe(t.get(`nameLocation`),n.nameLocation,`end`),shouldNameMoveOverlap:Bk(r)&&i,optionHideOverlap:t.get([`axisLabel`,`hideOverlap`]),showMinorTicks:t.get([`minorTick`,`show`])};this._cfg=a;var o=new Aa({x:a.position[0],y:a.position[1],rotation:a.rotation});o.updateTransform(),this._transformGroup=o;var s=this._shared.ensureRecord(t);s.transGroup=this._transformGroup,s.dirVec=new Ut(Math.cos(-a.rotation),Math.sin(-a.rotation))},e.prototype.build=function(e,t){var n=this;return e||={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0},V(Ck,function(r){e[r]&&wk[r](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,t||{})}),this},e.innerTextLayout=function(e,t,n){var r=fo(t-e),i,a;return po(r)?(a=n>0?`top`:`bottom`,i=`center`):po(r-uk)?(a=n>0?`bottom`:`top`,i=`center`):(a=`middle`,i=r>0&&r<uk?n>0?`right`:`left`:n>0?`left`:`right`),{rotation:r,textAlign:i,textVerticalAlign:a}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+`Index`]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get(`tooltip`);return e.get(`silent`)||!(e.get(`triggerEvent`)||t&&t.show)},e}(),Ck=[`axisLine`,`axisTickLabelEstimate`,`axisTickLabelDetermine`,`axisName`],wk={axisLine:function(e,t,n,r,i,a,o){var s=r.get([`axisLine`,`show`]);if(s===`auto`&&(s=!0,e.raw.axisLineAutoShow!=null&&(s=!!e.raw.axisLineAutoShow)),s){var c=r.axis.getExtent(),l=a.transform,u=[c[0],0],d=[c[1],0],f=u[0]>d[0];l&&(et(u,u,l),et(d,d,l));var p=L({lineCap:`round`},r.getModel([`axisLine`,`lineStyle`]).getLineStyle()),m={strokeContainThreshold:e.raw.strokeContainThreshold||5,silent:!0,z2:1,style:p};if(r.get([`axisLine`,`breakLine`])&&Qm(r.axis.scale))ck().buildAxisBreakLine(r,i,a,m);else{var h=new Af(L({shape:{x1:u[0],y1:u[1],x2:d[0],y2:d[1]}},m));Sp(h.shape,h.style.lineWidth),h.anid=`line`,i.add(h)}var g=r.get([`axisLine`,`symbol`]);if(g!=null){var _=r.get([`axisLine`,`symbolSize`]);W(g)&&(g=[g,g]),(W(_)||fe(_))&&(_=[_,_]);var v=Xb(r.get([`axisLine`,`symbolOffset`])||0,_),y=_[0],b=_[1];V([{rotate:e.rotation+Math.PI/2,offset:v[0],r:0},{rotate:e.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((u[0]-d[0])*(u[0]-d[0])+(u[1]-d[1])*(u[1]-d[1]))}],function(t,n){if(g[n]!==`none`&&g[n]!=null){var r=Jb(g[n],-y/2,-b/2,y,b,p.stroke,!0),a=t.r+t.offset,o=f?d:u;r.attr({rotation:t.rotate,x:o[0]+a*Math.cos(e.rotation),y:o[1]-a*Math.sin(e.rotation),silent:!0,z2:11}),i.add(r)}})}}},axisTickLabelEstimate:function(e,t,n,r,i,a,o,s){Nk(t,i,s)&&Tk(e,t,n,r,i,a,o,OE.estimate)},axisTickLabelDetermine:function(e,t,n,r,i,a,o,s){Nk(t,i,s)&&Tk(e,t,n,r,i,a,o,OE.determine);var c=jk(e,i,a,r);Ok(e,t.labelLayoutList,c),Mk(e,i,a,r,e.tickDirection)},axisName:function(e,t,n,r,i,a,o,s){var c=n.ensureRecord(r);t.nameEl&&=(i.remove(t.nameEl),c.nameLayout=c.nameLocation=null);var l=e.axisName;if(Bk(l)){var u=e.nameLocation,d=e.nameDirection,f=r.getModel(`nameTextStyle`),p=r.get(`nameGap`)||0,m=r.axis.getExtent(),h=r.axis.inverse?-1:1,g=new Ut(0,0),_=new Ut(0,0);u===`start`?(g.x=m[0]-h*p,_.x=-h):u===`end`?(g.x=m[1]+h*p,_.x=h):(g.x=(m[0]+m[1])/2,g.y=e.labelOffset+d*p,_.y=d);var v=Ft();_.transform(Bt(v,v,e.rotation));var y=r.get(`nameRotate`);y!=null&&(y=y*uk/180);var b,x;wT(u)?b=Sk.innerTextLayout(e.rotation,y??e.rotation,d):(b=Ek(e.rotation,u,y||0,m),x=e.raw.axisNameAvailableWidth,x!=null&&(x=Math.abs(x/Math.sin(b.rotation)),!isFinite(x)&&(x=null)));var S=f.getFont(),C=r.get(`nameTruncate`,!0)||{},w=C.ellipsis,T=be(e.raw.nameTruncateMaxWidth,C.maxWidth,x),E=s.nameMarginLevel||0,D=new Xl({x:g.x,y:g.y,rotation:b.rotation,silent:Sk.isLabelSilent(r),style:sm(f,{text:l,font:S,overflow:`truncate`,width:T,ellipsis:w,fill:f.getTextColor()||r.get([`axisLine`,`lineStyle`,`color`]),align:f.get(`align`)||b.textAlign,verticalAlign:f.get(`verticalAlign`)||b.textVerticalAlign}),z2:1});if(Vp({el:D,componentModel:r,itemName:l}),D.__fullText=l,D.anid=`name`,r.get(`triggerEvent`)){var O=Sk.makeAxisEventDataBase(r);O.targetType=`axisName`,O.name=l,uu(D).eventData=O}a.add(D),D.updateTransform(),t.nameEl=D;var k=c.nameLayout=MD({label:D,priority:D.z2,defaultAttr:{ignore:D.ignore},marginDefault:wT(u)?dk[E]:fk[E]});if(c.nameLocation=u,i.add(D),D.decomposeTransform(),e.shouldNameMoveOverlap&&k){var A=n.ensureRecord(r);n.resolveAxisNameOverlap(e,n,r,k,_,A)}}}};function Tk(e,t,n,r,i,a,o,s){Fk(t)||Pk(e,t,i,s,r,o);var c=t.labelLayoutList;Lk(e,r,c,a),Hk(r,e.rotation,c);var l=e.optionHideOverlap;Dk(r,c,l),l&&VD(ie(c,function(e){return e&&!e.label.ignore})),gk(e,n,r,c)}function Ek(e,t,n,r){var i=fo(n-e),a,o,s=r[0]>r[1],c=t===`start`&&!s||t!==`start`&&s;return po(i-uk/2)?(o=c?`bottom`:`top`,a=`center`):po(i-uk*1.5)?(o=c?`top`:`bottom`,a=`center`):(o=`middle`,a=i<uk*1.5&&i>uk/2?c?`left`:`right`:c?`right`:`left`),{rotation:i,textAlign:a,textVerticalAlign:o}}function Dk(e,t,n){var r=e.axis,i=e.get([`axisLabel`,`customValues`]);if(ST(r))return;function a(e,a,o){var s=MD(t[a]),c=MD(t[o]),l=r.scale;if(!(!s||!c)){if(e==null){if(!n&&i)return;var u=pk(s.label).labelInfo.tick;if(Mw(l)&&u.notNice||Pw(l)&&u.offInterval){kk(s.label);return}}if(e===!1||s.suggestIgnore){kk(s.label);return}if(c.suggestIgnore){kk(c.label);return}var d=.1;if(!n){var f=[0,0,0,0];s=LD({marginForce:f},s),c=LD({marginForce:f},c)}HD(s,c,null,{touchThreshold:d})&&kk(e?c.label:s.label)}}var o=e.get([`axisLabel`,`showMinLabel`]),s=e.get([`axisLabel`,`showMaxLabel`]),c=t.length;a(o,0,1),a(s,c-1,c-2)}function Ok(e,t,n){e.showMinorTicks||V(t,function(e){if(e&&e.label.ignore)for(var t=0;t<n.length;t++){var r=n[t],i=mk(r),a=pk(e.label);if(i.tickValue!=null&&!i.onBand&&i.tickValue===a.labelInfo.tick.value){kk(r);return}}})}function kk(e){e&&(e.ignore=!0)}function Ak(e,t,n,r,i){for(var a=[],o=[],s=[],c=0;c<e.length;c++){var l=e[c].coord;o[0]=l,o[1]=0,s[0]=l,s[1]=n,t&&(et(o,o,t),et(s,s,t));var u=new Af({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});Sp(u.shape,u.style.lineWidth),u.anid=i+`_`+e[c].tickValue,a.push(u);var d=mk(u);d.onBand=!!e[c].onBand,d.tickValue=e[c].tickValue}return a}function jk(e,t,n,r){var i=r.axis,a=r.getModel(`axisTick`),o=a.get(`show`);if(o===`auto`&&(o=!0,e.raw.axisTickAutoShow!=null&&(o=!!e.raw.axisTickAutoShow)),!o||i.scale.isBlank())return[];for(var s=a.getModel(`lineStyle`),c=e.tickDirection*a.get(`length`),l=Ak(i.getTicksCoords(),n.transform,c,z(s.getLineStyle(),{stroke:r.get([`axisLine`,`lineStyle`,`color`])}),`ticks`),u=0;u<l.length;u++)t.add(l[u]);return l}function Mk(e,t,n,r,i){var a=r.axis,o=r.getModel(`minorTick`);if(!(!e.showMinorTicks||a.scale.isBlank())){var s=a.getMinorTicksCoords();if(s.length)for(var c=o.getModel(`lineStyle`),l=i*o.get(`length`),u=z(c.getLineStyle(),z(r.getModel(`axisTick`).getLineStyle(),{stroke:r.get([`axisLine`,`lineStyle`,`color`])})),d=0;d<s.length;d++)for(var f=Ak(s[d],n.transform,l,u,`minorticks_`+d),p=0;p<f.length;p++)t.add(f[p])}}function Nk(e,t,n){if(Fk(e)){var r=e.axisLabelsCreationContext.out.noPxChangeTryDetermine;if(n.noPxChange){for(var i=!0,a=0;a<r.length;a++)i&&=r[a]();if(i)return!1}r.length&&(t.remove(e.labelGroup),Ik(e,null,null,null))}return!0}function Pk(e,t,n,r,i,a){var o=i.axis,s=be(e.raw.axisLabelShow,i.get([`axisLabel`,`show`])),c=new Aa;n.add(c);var l=kE(r);if(!s||o.scale.isBlank()){Ik(t,[],c,l);return}var u=i.getModel(`axisLabel`),d=o.getViewLabels(l),f=(be(e.raw.labelRotate,u.get(`rotate`))||0)*uk/180,p=Sk.innerTextLayout(e.rotation,f,e.labelDirection),m=i.getCategories&&i.getCategories(!0),h=[],g=i.get(`triggerEvent`),_=1/0,v=-1/0;V(d,function(e,t){var n=e.tick,r=e.formattedLabel,s=e.rawLabel,l=u,f=kT(o.scale,n);if(m&&m[f]){var y=m[f];pe(y)&&y.textStyle&&(l=new Am(y.textStyle,u,i.ecModel))}var b=l.getTextColor()||i.get([`axisLine`,`lineStyle`,`color`]),x=l.getShallow(`align`,!0)||p.textAlign,S=G(l.getShallow(`alignMinLabel`,!0),x),C=G(l.getShallow(`alignMaxLabel`,!0),x),w=l.getShallow(`verticalAlign`,!0)||l.getShallow(`baseline`,!0)||p.textVerticalAlign,T=G(l.getShallow(`verticalAlignMinLabel`,!0),w),E=G(l.getShallow(`verticalAlignMaxLabel`,!0),w),D=10+(n.time?.level||0);_=Math.min(_,D),v=Math.max(v,D);var O=new Xl({x:0,y:0,rotation:0,silent:Sk.isLabelSilent(i),z2:D,style:sm(l,{text:r,align:t===0?S:t===d.length-1?C:x,verticalAlign:t===0?T:t===d.length-1?E:w,fill:ue(b)?b(o.type===`category`?s:o.type===`value`?f+``:f,t):b})});O.anid=`label_`+f;var k=pk(O);if(k.labelInfo=e,k.layoutRotation=p.rotation,Vp({el:O,componentModel:i,itemName:r,formatterParamsExtra:{isTruncated:function(){return O.isTruncated},value:s,tickIndex:t}}),g){var A=Sk.makeAxisEventDataBase(i);A.targetType=`axisLabel`,A.value=s,A.tickIndex=t;var j=e.tick.break;if(j){var M=j.parsedBreak;A.break={start:M.vmin,end:M.vmax}}o.type===`category`&&(A.dataIndex=f),uu(O).eventData=A,j&&Vk(i,a,O,j)}h.push(O),c.add(O)}),Ik(t,H(h,function(e){return{label:e,priority:pk(e).labelInfo.tick.break?e.z2+(v-_+1):e.z2,defaultAttr:{ignore:e.ignore}}}),c,l)}function Fk(e){return!!e.labelLayoutList}function Ik(e,t,n,r){e.labelLayoutList=t,e.labelGroup=n,e.axisLabelsCreationContext=r}function Lk(e,t,n,r){var i=t.get([`axisLabel`,`margin`]);V(n,function(n,a){var o=MD(n);if(o){var s=o.label,c=pk(s);o.suggestIgnore=s.ignore,s.ignore=!1,Qi(Rk,zk);var l=t.axis;Rk.x=l.dataToCoord(kT(l.scale,c.labelInfo.tick)),Rk.y=e.labelOffset+e.labelDirection*i,Rk.rotation=c.layoutRotation,r.add(Rk),Rk.updateTransform(),r.remove(Rk),Rk.decomposeTransform(),Qi(s,Rk),s.markRedraw(),AD(o,!0),MD(o)}})}var Rk=new Gl,zk=new Gl;function Bk(e){return!!e}function Vk(e,t,n,r){n.on(`click`,function(n){var i={type:lk,breaks:[{start:r.parsedBreak.breakOption.start,end:r.parsedBreak.breakOption.end}]};i[e.axis.dim+`AxisIndex`]=e.componentIndex,t.dispatchAction(i)})}function Hk(e,t,n){var r=Ym();if(r){var i=r.retrieveAxisBreakPairs(n,function(e){return e&&pk(e.label).labelInfo.tick.break},!0),a=e.get([`breakLabelLayout`,`moveOverlap`],!0);(a===!0||a===`auto`)&&V(i,function(r){ck().adjustBreakLabelPair(e.axis.inverse,t,[MD(n[r[0]]),MD(n[r[1]])])})}}function Uk(e,t,n){n||={};var r=t.axis,i={},a=r.getAxesOnZeroOf()[0],o=r.position,s=a?`onZero`:o,c=r.dim,l=[e.x,e.x+e.width,e.y,e.y+e.height],u={left:0,right:1,top:0,bottom:1,onZero:2},d=t.get(`offset`)||0,f=c===`x`?[l[2]-d,l[3]+d]:[l[0]-d,l[1]+d];if(a){var p=a.toGlobalCoord(a.dataToCoord(0));f[u.onZero]=Math.max(Math.min(p,f[1]),f[0])}i.position=[c===`y`?f[u[s]]:l[0],c===`x`?f[u[s]]:l[3]],i.rotation=Math.PI/2*(c===`x`?0:1),i.labelDirection=i.tickDirection=i.nameDirection={top:-1,bottom:1,left:-1,right:1}[o],i.labelOffset=a?f[u[o]]-f[u.onZero]:0,t.get([`axisTick`,`inside`])&&(i.tickDirection=-i.tickDirection),be(n.labelInside,t.get([`axisLabel`,`inside`]))&&(i.labelDirection=-i.labelDirection);var m=t.get([`axisLabel`,`rotate`]);return i.labelRotate=s===`top`?-m:m,i.z2=1,i}function Wk(e){return e.coordinateSystem&&e.coordinateSystem.type===`cartesian2d`}function Gk(e){var t={xAxisModel:null,yAxisModel:null};return V(t,function(n,r){var i=r.replace(/Model$/,``);t[r]=e.getReferringComponents(i,is).models[0]}),t}function Kk(e,t,n,r,i,a){for(var o=Uk(e,n),s=!1,c=!1,l=0;l<t.length;l++)Aw(t[l].getOtherAxis(n.axis).scale)&&(s=c=!0,n.axis.type===`category`&&n.axis.onBand&&(c=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=c,o.defaultNameMoveOverlap=a,new Sk(n,r,o,i)}function qk(e,t,n){var r=Uk(t,n);e.updateCfg(r)}function Jk(){KT(`liPosMinGap`,Yk)}function Yk(e,t,n){var r=Ne(),i=n.serUids,a=n.liPosMinGap,o,s=t.axis,c=s.scale,l=c.needTransform(),u=c.getFilter?c.getFilter():null,d=vv(u);function f(n){HT(e,t.sers,function(e){var t=e.getRawData(),r=t.getDimensionIndex(t.mapDimension(s.dim));r>=0&&n(r,e,t.getStore())})}var p=0;if(f(function(e,t,n){r.set(t.uid,1),(!i||!i.hasKey(t.uid))&&(o=!0),p+=n.count()}),(!i||i.keys().length!==r.keys().length)&&(o=!0),!o&&a!=null){t.liPosMinGap=a;return}_O(Xk,p);var m=0;f(function(e,t,n){for(var r=0,i=n.count();r<i;++r){var a=n.get(e,r);isFinite(a)&&(!u||yv(d,a))&&(l&&(a=c.transformIn(a,null)),Xk.arr[m++]=a)}});var h=Xk.typed?Xk.arr.subarray(0,m):(Xk.arr.length=m,Xk.arr);Xk.typed?h.sort():io(h);for(var g=1/0,_=1;_<m;++_){var v=h[_]-h[_-1];v>0&&v<g&&(g=v)}n.liPosMinGap=t.liPosMinGap=wo(g)?g:m>0?-2:-1,n.serUids=r}var Xk=_O({ctor:hO},50);function Zk(e){return function(t,n){var r=YE(t,{fromStat:{key:e}});if(wo(r.w2))return[-r.w2/2,r.w2/2]}}function Qk(e){return e+`|&`}function $k(e,t){return e+`|&`+t}function eA(e){return Jk(),{liPosMinGap:!Pw(e.scale)}}function tA(e,t,n,r){XT(e,{key:t,seriesType:n,coordSysType:r,getMetrics:eA})}function nA(e){return e.scale.rawExtentInfo.makeRenderInfo().startValue}var rA={left:0,right:0,top:0,bottom:0},iA=[`25%`,`25%`],aA=`cartesian2d`,oA=function(e){l(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(t,n){var r=mg(t.outerBounds);e.prototype.mergeDefaultAndTheme.apply(this,arguments),r&&t.outerBounds&&pg(t.outerBounds,r)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&pg(this.option.outerBounds,t.outerBounds)},t.type=`grid`,t.dependencies=[`xAxis`,`yAxis`],t.layoutMode=`box`,t.defaultOption={show:!1,z:0,left:`15%`,top:65,right:`10%`,bottom:80,containLabel:!1,outerBoundsMode:`auto`,outerBounds:rA,outerBoundsContain:`all`,outerBoundsClampWidth:iA[0],outerBoundsClampHeight:iA[1],backgroundColor:q.color.transparent,borderWidth:1,borderColor:q.color.neutral30},t}(_g),sA=bs(),cA=`__ec_stack_`;function lA(e){return e.get(`stack`)||cA+e.seriesIndex}function uA(e){if(Pw(e.axis.scale)){for(var t=YE(e.axis),n=[],r=0;r<e.count;r++)n.push(z({stackId:cA+r},e));for(var i=pA({bandWidthResult:t,seriesInfo:n}),a=[],r=0;r<e.count;r++){var o=i[cA+r];o.offsetCenter=o.offset+o.width/2,a.push(o)}return a}}function dA(e,t){var n=fA(e,t);return n.columnMap=pA(n),n}function fA(e,t){var n=$k(t,aA),r=[],i=YE(e,{fromStat:{key:n},min:1});return VT(e,n,function(e){r.push({barWidth:$a(e.get(`barWidth`),i.w),barMaxWidth:$a(e.get(`barMaxWidth`),i.w),barMinWidth:$a(e.get(`barMinWidth`)||(gA(e)?.5:1),i.w),barGap:e.get(`barGap`),barCategoryGap:e.get(`barCategoryGap`),defaultBarGap:e.get(`defaultBarGap`),stackId:lA(e)})}),{bandWidthResult:i,seriesInfo:r}}function pA(e){var t=e.bandWidthResult.w,n=t,r=0,i,a,o=[],s={};V(e.seriesInfo,function(e,t){t||(a=e.defaultBarGap||0);var c=e.stackId;K(s,c)||r++;var l=s[c];l||(l=s[c]={width:0,maxWidth:0},o.push(c));var u=e.barWidth;u&&!l.width&&(l.width=u,u=Va(n,u),n-=u);var d=e.barMaxWidth;d&&(l.maxWidth=d);var f=e.barMinWidth;f&&(l.minWidth=f);var p=e.barGap;p!=null&&(a=p);var m=e.barCategoryGap;m!=null&&(i=m)}),i??=Ha(35-o.length*4,15)+`%`;var c=$a(i,t),l=$a(a,1),u=(n-c)/(r+(r-1)*l);u=Ha(u,0),V(o,function(e){var t=s[e],i=t.maxWidth,a=t.minWidth;if(t.width){var o=t.width;i&&(o=Va(o,i)),a&&(o=Ha(o,a)),t.width=o,n-=o+l*o,r--}else{var o=u;i&&i<o&&(o=Va(i,n)),a&&a>o&&(o=a),o!==u&&(t.width=o,n-=o+l*o,r--)}}),u=(n-c)/(r+(r-1)*l),u=Ha(u,0);var d=0,f;V(o,function(e){var t=s[e];t.width||=u,f=t,d+=t.width*(1+l)}),f&&(d-=f.width*l);var p={},m=-d/2;return V(o,function(e){var n=s[e];p[e]=p[e]||{bandWidth:t,offset:m,width:n.width},m+=n.width*(1+l)}),p}function mA(e){return{seriesType:e,overallReset:function(t){var n=$k(e,aA);UT(t,n,function(t){var r=dA(t,e);VT(t,n,function(e){var t=r.columnMap[lA(e)];e.getData().setLayout({bandWidth:t.bandWidth,offset:t.offset,size:t.width})})})}}}function hA(e){return{seriesType:e,plan:Ty(),reset:function(e){if(Wk(e)){var t=e.getData(),n=e.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),a=t.getDimensionIndex(t.mapDimension(i.dim)),o=t.getDimensionIndex(t.mapDimension(r.dim)),s=e.get(`showBackground`,!0),c=t.mapDimension(i.dim),l=t.getCalculationInfo(`stackResultDimension`),u=cw(t,c)&&!!t.getCalculationInfo(`stackedOnSeries`),d=i.isHorizontal(),f=i.toGlobalCoord(i.dataToCoord(nA(i))),p=gA(e),m=e.get(`barMinHeight`)||0,h=l&&t.getDimensionIndex(l),g=t.getLayout(`size`),_=t.getLayout(`offset`);return{progress:function(e,t){for(var r=e.count,i=p&&gO(r*3),c=p&&s&&gO(r*3),l=p&&gO(r),v=n.master.getRect(),y=d?v.width:v.height,b,x=t.getStore(),S=0;(b=e.next())!=null;){var C=x.get(u?h:a,b),w=x.get(o,b),T=f,E=void 0;u&&(E=+C-x.get(a,b));var D=void 0,O=void 0,k=void 0,A=void 0;if(d){var j=n.dataToPoint([C,w]);u&&(T=n.dataToPoint([E,w])[0]),D=T,O=j[1]+_,k=j[0]-T,A=g,Ua(k)<m&&(k=(k<0?-1:1)*m)}else{var j=n.dataToPoint([w,C]);u&&(T=n.dataToPoint([w,E])[1]),D=j[0]+_,O=T,k=g,A=j[1]-T,Ua(A)<m&&(A=(A<=0?-1:1)*m)}p?(i[S]=D,i[S+1]=O,i[S+2]=d?k:A,c&&(c[S]=d?v.x:D,c[S+1]=d?O:v.y,c[S+2]=y),l[b]=b):t.setItemLayout(b,{x:D,y:O,width:k,height:A}),S+=3}p&&t.setLayout({largePoints:i,largeDataIndices:l,largeBackgroundPoints:c,valueAxisHorizontal:d})}}}}}}function gA(e){return e.pipelineContext&&e.pipelineContext.large}function _A(e){return Zk($k(e,aA))}function vA(e){sA(e,function(){function t(t){var n=$k(t,aA);tA(e,n,t,aA),dE(n,_A(t))}t(`bar`),t(`pictorialBar`)})}var yA=function(e){l(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(e,t){return fw(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,t,n){var r=this.coordinateSystem;if(r&&r.clampData){var i=r.clampData(e),a=r.dataToPoint(i);if(n)V(r.getAxes(),function(e,n){if(e.type===`category`&&t!=null){var r=e.getTicksCoords(),o=e.getTickModel().get(`alignWithLabel`),s=i[n],c=t[n]===`x1`||t[n]===`y1`;if(c&&!o&&(s+=1),r.length<2)return;if(r.length===2){a[n]=e.toGlobalCoord(e.getExtent()[+!!c]);return}for(var l=void 0,u=void 0,d=1,f=0;f<r.length;f++){var p=r[f].coord,m=f===r.length-1?r[f-1].tickValue+d:r[f].tickValue;if(m===s){u=p;break}if(m<s)l=p;else if(l!=null&&m>s){u=(p+l)/2;break}f===1&&(d=m-r[0].tickValue)}u??(l?l&&(u=r[r.length-1].coord):u=r[0].coord),a[n]=e.toGlobalCoord(u)}});else{var o=this.getData(),s=o.getLayout(`offset`),c=o.getLayout(`size`),l=+!r.getBaseAxis().isHorizontal();a[l]+=s+c/2}return a}return[NaN,NaN]},t.prototype.__requireStartValue=function(e){return this.getBaseAxis()!==e},t.type=`series.__base_bar__`,t.defaultOption={z:2,coordinateSystem:`cartesian2d`,legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:`mod`,defaultBarGap:`10%`},t}(hy);hy.registerClass(yA);var bA=function(e){l(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(){return fw(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get(`realtimeSort`,!0)||null})},t.prototype.getProgressive=function(){return this.get(`large`)?this.get(`progressive`):!1},t.prototype.__preparePipelineContext=function(e,t){var n=Es(this,e,t);return n.progressiveRender&&(n.large=!0),n},t.prototype.brushSelector=function(e,t,n){return n.rect(t.getItemLayout(e))},t.type=`series.bar`,t.dependencies=[`grid`,`polar`],t.defaultOption=Fm(yA.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:`rgba(180, 180, 180, 0.2)`,borderColor:null,borderWidth:0,borderType:`solid`,borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:q.color.primary,borderWidth:2}},realtimeSort:!1}),t}(yA),xA=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),SA=function(e){l(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`sausage`,n}return t.prototype.getDefaultShape=function(){return new xA},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r0||0,0),a=Math.max(t.r,0),o=(a-i)*.5,s=i+o,c=t.startAngle,l=t.endAngle,u=t.clockwise,d=Math.PI*2,f=u?l-c<d:c-l<d;f||(c=l-(u?d:-d));var p=Math.cos(c),m=Math.sin(c),h=Math.cos(l),g=Math.sin(l);f?(e.moveTo(p*i+n,m*i+r),e.arc(p*s+n,m*s+r,o,-Math.PI+c,c,!u)):e.moveTo(p*a+n,m*a+r),e.arc(n,r,a,c,l,!u),e.arc(h*s+n,g*s+r,o,l-Math.PI*2,l-Math.PI,!u),i!==0&&e.arc(n,r,i,l,c,u)},t}(jl);function CA(e,t){t||={};var n=t.isRoundCap;return function(t,r,i){var a=r.position;if(!a||a instanceof Array)return fa(t,r,i);var o=e(a),s=r.distance==null?5:r.distance,c=this.shape,l=c.cx,u=c.cy,d=c.r,f=c.r0,p=(d+f)/2,m=c.startAngle,h=c.endAngle,g=(m+h)/2,_=n?Math.abs(d-f)/2:0,v=Math.cos,y=Math.sin,b=l+d*v(m),x=u+d*y(m),S=`left`,C=`top`;switch(o){case`startArc`:b=l+(f-s)*v(g),x=u+(f-s)*y(g),S=`center`,C=`top`;break;case`insideStartArc`:b=l+(f+s)*v(g),x=u+(f+s)*y(g),S=`center`,C=`bottom`;break;case`startAngle`:b=l+p*v(m)+TA(m,s+_,!1),x=u+p*y(m)+EA(m,s+_,!1),S=`right`,C=`middle`;break;case`insideStartAngle`:b=l+p*v(m)+TA(m,-s+_,!1),x=u+p*y(m)+EA(m,-s+_,!1),S=`left`,C=`middle`;break;case`middle`:b=l+p*v(g),x=u+p*y(g),S=`center`,C=`middle`;break;case`endArc`:b=l+(d+s)*v(g),x=u+(d+s)*y(g),S=`center`,C=`bottom`;break;case`insideEndArc`:b=l+(d-s)*v(g),x=u+(d-s)*y(g),S=`center`,C=`top`;break;case`endAngle`:b=l+p*v(h)+TA(h,s+_,!0),x=u+p*y(h)+EA(h,s+_,!0),S=`left`,C=`middle`;break;case`insideEndAngle`:b=l+p*v(h)+TA(h,-s+_,!0),x=u+p*y(h)+EA(h,-s+_,!0),S=`right`,C=`middle`;break;default:return fa(t,r,i)}return t||={},t.x=b,t.y=x,t.align=S,t.verticalAlign=C,t}}function wA(e,t,n,r){if(fe(r)){e.setTextConfig({rotation:r});return}if(U(t)){e.setTextConfig({rotation:0});return}var i=e.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/2,c,l=n(t);switch(l){case`startArc`:case`insideStartArc`:case`middle`:case`insideEndArc`:case`endArc`:c=s;break;case`startAngle`:case`insideStartAngle`:c=a;break;case`endAngle`:case`insideEndAngle`:c=o;break;default:e.setTextConfig({rotation:0});return}var u=Math.PI*1.5-c;l===`middle`&&u>Math.PI/2&&u<Math.PI*1.5&&(u-=Math.PI),e.setTextConfig({rotation:u})}function TA(e,t,n){return t*Math.sin(e)*(n?-1:1)}function EA(e,t,n){return t*Math.cos(e)*(n?1:-1)}function DA(e,t,n){var r=e.get(`borderRadius`);if(r==null)return n?{cornerRadius:0}:null;U(r)||(r=[r,r,r,r]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:H(r,function(e){return da(e,i)})}}var OA=Math.max,kA=Math.min,AA=function(e){l(t,e);function t(){var t=e.call(this)||this;return t.type=`bar`,t._isFirstFrame=!0,t}return t.prototype.render=function(e,t,n,r){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var i=e.get(`coordinateSystem`);(i===`cartesian2d`||i===`polar`)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n,r))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,t){this._progressiveEls=[],this._incrementalRenderLarge(e,t)},t.prototype.eachRendered=function(e){Up(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;(this._isLargeDraw==null||t!==this._isLargeDraw)&&(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e,t,n,r){var i=this.group,a=e.getData(),o=this._data,s=e.coordinateSystem,c=s.getBaseAxis(),l;s.type===`cartesian2d`?l=c.isHorizontal():s.type===`polar`&&(l=c.dim===`angle`);var u=e.isAnimationEnabled()?e:null,d=NA(e,s);d&&this._enableRealtimeSort(d,a,n);var f=e.get(`clip`,!0)||d,p=s.getArea();i.removeClipPath();var m=e.get(`roundCap`,!0),h=e.get(`showBackground`,!0),g=e.getModel(`backgroundStyle`),_=g.get(`borderRadius`)||0,v=[],y=this._backgroundEls,b=r&&r.isInitSort,x=r&&r.type===`changeAxisOrder`;function S(e){var t=zA[s.type](a,e);if(!t)return null;var n=XA(s,l,t);return n.useStyle(g.getItemStyle()),s.type===`cartesian2d`?n.setShape(`r`,_):n.setShape(`cornerRadius`,_),v[e]=n,n}a.diff(o).add(function(t){var n=a.getItemModel(t),r=zA[s.type](a,t,n);if(r&&(h&&S(t),!(!a.hasValue(t)||!RA[s.type](r)))){var o=!1;f&&(o=jA[s.type](p,r));var g=MA[s.type](e,a,t,r,l,u,c.model,!1,m);d&&(g.forceLabelAnimation=!0),HA(g,a,t,n,r,e,l,s.type===`polar`),b?g.attr({shape:r}):d?PA(d,u,g,r,t,l,!1,!1):np(g,{shape:r},e,t),a.setItemGraphicEl(t,g),i.add(g),g.ignore=o}}).update(function(t,n){var r=a.getItemModel(t),C=zA[s.type](a,t,r);if(C){if(h){var w=void 0;y.length===0?w=S(n):(w=y[n],w.useStyle(g.getItemStyle()),s.type===`cartesian2d`?w.setShape(`r`,_):w.setShape(`cornerRadius`,_),v[t]=w);var T=zA[s.type](a,t),E=YA(l,T,s);tp(w,{shape:E},u,t)}var D=o.getItemGraphicEl(n);if(!a.hasValue(t)||!RA[s.type](C)){i.remove(D);return}var O=!1;if(f&&(O=jA[s.type](p,C),O&&i.remove(D)),D&&(D.type===`sector`&&m||D.type===`sausage`&&!m)&&(D&&op(D,e,n),D=null),D?sp(D):D=MA[s.type](e,a,t,C,l,u,c.model,!0,m),d&&(D.forceLabelAnimation=!0),x){var k=D.getTextContent();if(k){var A=gm(k);A.prevValue!=null&&(A.prevValue=A.value)}}else HA(D,a,t,r,C,e,l,s.type===`polar`);b?D.attr({shape:C}):d?PA(d,u,D,C,t,l,!0,x):tp(D,{shape:C},e,t,null),a.setItemGraphicEl(t,D),D.ignore=O,i.add(D)}}).remove(function(t){var n=o.getItemGraphicEl(t);n&&op(n,e,t)}).execute();var C=this._backgroundGroup||=new Aa;C.removeAll();for(var w=0;w<v.length;++w)C.add(v[w]);i.add(C),this._backgroundEls=v,this._data=a},t.prototype._renderLarge=function(e,t,n){this._clear(),KA(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,t){this._removeBackground(),KA(t,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var t=e.get(`clip`,!0)&&kO(e.coordinateSystem,!1,e),n=this.group;t?n.setClipPath(t):n.removeClipPath()},t.prototype._enableRealtimeSort=function(e,t,n){var r=this;if(t.count()){var i=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(t,e,n),this._isFirstFrame=!1;else{var a=function(e){var n=t.getItemGraphicEl(e),r=n&&n.shape;return r&&Math.abs(i.isHorizontal()?r.height:r.width)||0};this._onRendered=function(){r._updateSortWithinSameData(t,a,i,n)},n.getZr().on(`rendered`,this._onRendered)}}},t.prototype._dataSort=function(e,t,n){var r=[];return e.each(e.mapDimension(t.dim),function(e,t){var i=n(t);i??=NaN,r.push({dataIndex:t,mappedValue:i,ordinalNumber:e})}),r.sort(function(e,t){return t.mappedValue-e.mappedValue}),{ordinalNumbers:H(r,function(e){return e.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,t,n){for(var r=n.scale,i=e.mapDimension(n.dim),a=Number.MAX_VALUE,o=0,s=r.getOrdinalMeta().categories.length;o<s;++o){var c=e.rawIndexOf(i,r.getRawOrdinalNumber(o)),l=c<0?Number.MIN_VALUE:t(e.indexOfRawIndex(c));if(l>a)return!0;a=l}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,r=n.getExtent(),i=Math.max(0,r[0]),a=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=a;++i)if(e.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,r){if(this._isOrderChangedWithinSameData(e,t,n)){var i=this._dataSort(e,n,t);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:`changeAxisOrder`,componentType:n.dim+`Axis`,axisId:n.index,sortInfo:i}))}},t.prototype._dispatchInitSort=function(e,t,n){var r=t.baseAxis,i=this._dataSort(e,r,function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)});n.dispatchAction({type:`changeAxisOrder`,componentType:r.dim+`Axis`,isInitSort:!0,axisId:r.index,sortInfo:i})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&=(e.getZr().off(`rendered`,this._onRendered),null)},t.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(t){op(t,e,uu(t).dataIndex)})):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type=`bar`,t}(Oy),jA={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=OA(t.x,e.x),s=kA(t.x+t.width,i),c=OA(t.y,e.y),l=kA(t.y+t.height,a),u=s<o,d=l<c;return t.x=u&&o>i?s:o,t.y=d&&c>a?l:c,t.width=u?0:s-o,t.height=d?0:l-c,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),u||d},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}var i=kA(t.r,e.r),a=OA(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}return o}},MA={cartesian2d:function(e,t,n,r,i,a,o,s,c){var l=new Gl({shape:L({},r),z2:1});if(l.__dataIndex=n,l.name=`item`,a){var u=l.shape,d=i?`height`:`width`;u[d]=0}return l},polar:function(e,t,n,r,i,a,o,s,c){var l=!i&&c?SA:yf,u=new l({shape:r,z2:1});if(u.name=`item`,u.calculateTextPosition=CA(VA(i),{isRoundCap:l===SA}),a){var d=u.shape,f=i?`r`:`endAngle`,p={};d[f]=i?r.r0:r.startAngle,p[f]=r[f],(s?tp:np)(u,{shape:p},a)}return u}};function NA(e,t){var n=e.get(`realtimeSort`,!0),r=t.getBaseAxis();if(n&&r.type===`category`&&t.type===`cartesian2d`)return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}function PA(e,t,n,r,i,a,o,s){var c,l;a?(l={x:r.x,width:r.width},c={y:r.y,height:r.height}):(l={y:r.y,height:r.height},c={x:r.x,width:r.width}),s||(o?tp:np)(n,{shape:c},t,i,null);var u=t?e.baseAxis.model:null;(o?tp:np)(n,{shape:l},u,i)}function FA(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return!0;return!1}var IA=[`x`,`y`,`width`,`height`],LA=[`cx`,`cy`,`r`,`startAngle`,`endAngle`],RA={cartesian2d:function(e){return!FA(e,IA)},polar:function(e){return!FA(e,LA)}},zA={cartesian2d:function(e,t,n){var r=e.getItemLayout(t);if(!r)return null;var i=n?UA(n,r):0,a=r.width>0?1:-1,o=r.height>0?1:-1;return{x:r.x+a*i/2,y:r.y+o*i/2,width:r.width-a*i,height:r.height-o*i}},polar:function(e,t,n){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function BA(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function VA(e){return function(e){var t=e?`Arc`:`Angle`;return function(e){switch(e){case`start`:case`insideStart`:case`end`:case`insideEnd`:return e+t;default:return e}}}(e)}function HA(e,t,n,r,i,a,o,s){var c=t.getItemVisual(n,`style`);if(!s){var l=r.get([`itemStyle`,`borderRadius`])||0;e.setShape(`r`,l)}else if(!a.get(`roundCap`)){var u=e.shape;L(u,DA(r.getModel(`itemStyle`),u,!0)),e.setShape(u)}e.useStyle(c);var d=r.getShallow(`cursor`);d&&e.attr(`cursor`,d);var f=s?o?i.r>=i.r0?`endArc`:`startArc`:i.endAngle>=i.startAngle?`endAngle`:`startAngle`:o?ZA(i,a.coordinateSystem):QA(i,a.coordinateSystem),p=om(r);am(e,p,{labelFetcher:a,labelDataIndex:n,defaultText:tO(a.getData(),n),inheritColor:c.fill,defaultOpacity:c.opacity,defaultOutsidePosition:f});var m=e.getTextContent();if(s&&m){var h=r.get([`label`,`position`]);e.textConfig.inside=h===`middle`||null,wA(e,h===`outside`?f:h,VA(o),r.get([`label`,`rotate`]))}_m(m,p,a.getRawValue(n),function(e){return nO(t,e)});var g=r.getModel([`emphasis`]);yd(e,g.get(`focus`),g.get(`blurScope`),g.get(`disabled`)),Cd(e,r),BA(i)&&(e.style.fill=`none`,e.style.stroke=`none`,V(e.states,function(e){e.style&&(e.style.fill=e.style.stroke=`none`)}))}function UA(e,t){var n=e.get([`itemStyle`,`borderColor`]);if(!n||n===`none`)return 0;var r=e.get([`itemStyle`,`borderWidth`])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,i,a)}var WA=function(){function e(){}return e}(),GA=function(e){l(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`largeBar`,n}return t.prototype.getDefaultShape=function(){return new WA},t.prototype.buildPath=function(e,t){for(var n=t.points,r=this.baseDimIdx,i=1-this.baseDimIdx,a=[],o=[],s=this.barWidth,c=0;c<n.length;c+=3)o[r]=s,o[i]=n[c+2],a[r]=n[c+r],a[i]=n[c+i],e.rect(a[0],a[1],o[0],o[1])},t}(jl);function KA(e,t,n,r){var i=e.getData(),a=+!!i.getLayout(`valueAxisHorizontal`),o=i.getLayout(`largeDataIndices`),s=i.getLayout(`size`),c=e.getModel(`backgroundStyle`),l=i.getLayout(`largeBackgroundPoints`),u=r?Ts(e):0;if(l){var d=new GA({shape:{points:l},incremental:u,silent:!0,z2:0});d.baseDimIdx=a,d.largeDataIndices=o,d.barWidth=s,d.useStyle(c.getItemStyle()),t.add(d),n&&n.push(d)}var f=new GA({shape:{points:i.getLayout(`largePoints`)},incremental:u,ignoreCoarsePointer:!0,z2:1});f.baseDimIdx=a,f.largeDataIndices=o,f.barWidth=s,t.add(f),f.useStyle(i.getVisual(`style`)),f.style.stroke=null,uu(f).seriesIndex=e.seriesIndex,e.get(`silent`)||(f.on(`mousedown`,qA),f.on(`mousemove`,qA)),n&&n.push(f)}var qA=Ly(function(e){var t=this,n=JA(t,e.offsetX,e.offsetY);uu(t).dataIndex=n>=0?n:null},30,!1);function JA(e,t,n){for(var r=e.baseDimIdx,i=1-r,a=e.shape.points,o=e.largeDataIndices,s=[],c=[],l=e.barWidth,u=0,d=a.length/3;u<d;u++){var f=u*3;if(c[r]=l,c[i]=a[f+2],s[r]=a[f+r],s[i]=a[f+i],c[i]<0&&(s[i]+=c[i],c[i]=-c[i]),t>=s[0]&&t<=s[0]+c[0]&&n>=s[1]&&n<=s[1]+c[1])return o[u]}return-1}function YA(e,t,n){if(MO(n,`cartesian2d`)){var r=t,i=n.getArea();return{x:e?r.x:i.x,y:e?i.y:r.y,width:e?r.width:i.width,height:e?i.height:r.height}}var i=n.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}function XA(e,t,n){return new(e.type===`polar`?yf:Gl)({shape:YA(t,n,e),silent:!0,z2:0})}function ZA(e,t){return e.height===0?t.getOtherAxis(t.getBaseAxis()).inverse?`bottom`:`top`:e.height>0?`bottom`:`top`}function QA(e,t){return e.width===0?t.getOtherAxis(t.getBaseAxis()).inverse?`left`:`right`:e.width>=0?`right`:`left`}function $A(e){e.registerChartView(AA),e.registerSeriesModel(bA),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,mA(`bar`)),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,hA(`bar`)),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,ik(`bar`)),e.registerAction({type:`changeAxisOrder`,event:`changeAxisOrder`,update:`update`},function(e,t){var n=e.componentType||`series`;t.eachComponent({mainType:n,query:e},function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)})}),vA(e)}function ej(e){return{seriesType:e,reset:function(e,t){var n=t.findComponents({mainType:`legend`});if(!(!n||!n.length)){var r=e.getData();r.filterSelf(function(e){for(var t=r.getName(e),i=0;i<n.length;i++)if(!n[i].isSelected(t))return!1;return!0})}}}}function tj(e,t,n){t=U(t)&&{coordDimensions:t}||L({encodeDefine:e.getEncode()},t);var r=e.getSource(),i=$C(r,t).dimensions,a=new QC(i,e);return a.initData(r,n),a}var nj=function(){function e(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return e.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},e.prototype.containName=function(e){return this._getRawData().indexOfName(e)>=0},e.prototype.indexOfName=function(e){return this._getDataWithEncodedVisual().indexOfName(e)},e.prototype.getItemVisual=function(e,t){return this._getDataWithEncodedVisual().getItemVisual(e,t)},e}(),rj=es(),ij=function(e){l(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new nj(ce(this.getData,this),ce(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return tj(this,{coordDimensions:[`value`],encodeDefaulter:le(jg,this)})},t.prototype.getDataParams=function(t){var n=this.getData(),r=rj(n),i=r.seats;if(!i){var a=[];n.each(n.mapDimension(`value`),function(e){a.push(e)}),i=r.seats=co(a,n.hostModel.get(`percentPrecision`))}var o=e.prototype.getDataParams.call(this,t);return o.percent=i[t]||0,o.$vars.push(`percent`),o},t.prototype._defaultLabelLine=function(e){Fo(e,`labelLine`,[`show`]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type=`series.pie`,t.defaultOption={z:2,legendHoverLink:!0,colorBy:`data`,center:[`50%`,`50%`],radius:[0,`50%`],clockwise:!0,startAngle:90,endAngle:`auto`,padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:`box`,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:`truncate`,position:`outer`,alignTo:`none`,edgeDistance:`25%`,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:`solid`}},itemStyle:{borderWidth:1,borderJoin:`round`},showEmptyCircle:!0,emptyCircleStyle:{color:`lightgray`,opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:`expansion`,animationDuration:1e3,animationTypeUpdate:`transition`,animationEasingUpdate:`cubicInOut`,animationDurationUpdate:500,animationEasing:`cubicInOut`},t}(hy);Yh({fullType:ij.type,getCoord2:function(e){return e.getShallow(`center`)}});var aj=Math.PI/180;function oj(e,t,n,r,i,a,o,s,c,l){if(e.length<2)return;function u(e){for(var a=e.rB,o=a*a,s=0;s<e.list.length;s++){var c=e.list[s],l=Math.abs(c.label.y-n),u=r+c.len,d=u*u,f=t+(Math.sqrt(Math.abs((1-l*l/o)*d))+c.len2)*i,p=f-c.label.x;cj(c,c.targetTextWidth-p*i,!0),c.label.x=f}}function d(e){for(var a={list:[],maxY:0},o={list:[],maxY:0},s=0;s<e.length;s++)if(e[s].labelAlignTo===`none`){var c=e[s],l=c.label.y>n?o:a,d=Math.abs(c.label.y-n);if(d>=l.maxY){var f=c.label.x-t-c.len2*i,p=r+c.len;l.rB=Math.abs(f)<p?Math.sqrt(d*d/(1-f*f/p/p)):p,l.maxY=d}l.list.push(c)}u(a),u(o)}for(var f=e.length,p=0;p<f;p++)if(e[p].position===`outer`&&e[p].labelAlignTo===`labelLine`){var m=e[p].label.x-l;e[p].linePoints[1][0]+=m,e[p].label.x=l}zD(e,1,c,c+o)&&d(e)}function sj(e,t,n,r,i,a,o,s){for(var c=[],l=[],u=Number.MAX_VALUE,d=-Number.MAX_VALUE,f=0;f<e.length;f++){var p=e[f].label;fj(e[f])||(p.x<t?(u=Math.min(u,p.x),c.push(e[f])):(d=Math.max(d,p.x),l.push(e[f])))}for(var f=0;f<e.length;f++){var m=e[f];if(!fj(m)&&m.linePoints){if(m.labelStyleWidth!=null)continue;var p=m.label,h=m.linePoints,g=void 0;g=m.labelAlignTo===`edge`?p.x<t?h[2][0]-m.labelDistance-o-m.edgeDistance:o+i-m.edgeDistance-h[2][0]-m.labelDistance:m.labelAlignTo===`labelLine`?p.x<t?u-o-m.bleedMargin:o+i-d-m.bleedMargin:p.x<t?p.x-o-m.bleedMargin:o+i-p.x-m.bleedMargin,m.targetTextWidth=g,cj(m,g,!1)}}oj(l,t,n,r,1,i,a,o,s,d),oj(c,t,n,r,-1,i,a,o,s,u);for(var f=0;f<e.length;f++){var m=e[f];if(!fj(m)&&m.linePoints){var p=m.label,h=m.linePoints,_=m.labelAlignTo===`edge`,v=p.style.padding,y=v?v[1]+v[3]:0,b=p.style.backgroundColor?0:y,x=m.rect.width+b,S=h[1][0]-h[2][0];_?p.x<t?h[2][0]=o+m.edgeDistance+x+m.labelDistance:h[2][0]=o+i-m.edgeDistance-x-m.labelDistance:(p.x<t?h[2][0]=p.x+m.labelDistance:h[2][0]=p.x-m.labelDistance,h[1][0]=h[2][0]+S),h[1][1]=h[2][1]=p.y}}}function cj(e,t,n){if(e.labelStyleWidth==null){var r=e.label,i=r.style,a=e.rect,o=i.backgroundColor,s=i.padding,c=s?s[1]+s[3]:0,l=i.overflow,u=a.width+(o?0:c);if(t<u||n){if(l&&l.match(`break`)){r.setStyle(`backgroundColor`,null),r.setStyle(`width`,t-c);var d=r.getBoundingRect();r.setStyle(`width`,Math.ceil(d.width)),r.setStyle(`backgroundColor`,o)}else{var f=t-c,p=t<u?f:n?f>e.unconstrainedWidth?null:f:null;r.setStyle(`width`,p)}lj(a,r)}}}function lj(e,t){dj.rect=e,ND(dj,t,uj)}var uj={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},dj={};function fj(e){return e.position===`center`}function pj(e){var t=e.getData(),n=[],r,i,a=!1,o=(e.get(`minShowLabelAngle`)||0)*aj,s=t.getLayout(`viewRect`),c=t.getLayout(`r`),l=s.width,u=s.x,d=s.y,f=s.height;function p(e){e.ignore=!0}function m(e){if(!e.ignore)return!0;for(var t in e.states)if(e.states[t].ignore===!1)return!0;return!1}t.each(function(e){var s=t.getItemGraphicEl(e),d=s.shape,h=s.getTextContent(),g=s.getTextGuideLine(),_=t.getItemModel(e),v=_.getModel(`label`),y=v.get(`position`)||_.get([`emphasis`,`label`,`position`]),b=v.get(`distanceToLabelLine`),x=v.get(`alignTo`),S=$a(v.get(`edgeDistance`),l),C=v.get(`bleedMargin`);C??=Math.min(l,f)>200?10:2;var w=_.getModel(`labelLine`),T=w.get(`length`);T=$a(T,l);var E=w.get(`length2`);if(E=$a(E,l),Math.abs(d.endAngle-d.startAngle)<o){V(h.states,p),h.ignore=!0,g&&(V(g.states,p),g.ignore=!0);return}if(m(h)){var D=(d.startAngle+d.endAngle)/2,O=Math.cos(D),k=Math.sin(D),A,j,M,N;r=d.cx,i=d.cy;var P=y===`inside`||y===`inner`;if(y===`center`)A=d.cx,j=d.cy,N=`center`;else{var F=(P?(d.r+d.r0)/2*O:d.r*O)+r,I=(P?(d.r+d.r0)/2*k:d.r*k)+i;if(A=F+O*3,j=I+k*3,!P){var L=F+O*(T+c-d.r),R=I+k*(T+c-d.r),z=L+(O<0?-1:1)*E,B=R;A=x===`edge`?O<0?u+S:u+l-S:z+(O<0?-b:b),j=B,M=[[F,I],[L,R],[z,B]]}N=P?`center`:x===`edge`?O>0?`right`:`left`:O>0?`left`:`right`}var ee=Math.PI,te=0,ne=v.get(`rotate`);if(fe(ne))te=ee/180*ne;else if(y===`center`)te=0;else if(ne===`radial`||ne===!0)te=O<0?-D+ee:-D;else if(ne===`tangential`||ne===`tangential-noflip`&&y!==`outside`&&y!==`outer`){var H=Math.atan2(O,k);H<0&&(H=ee*2+H),k>0&&ne!==`tangential-noflip`&&(H=ee+H),te=H-ee}if(a=!!te,h.x=A,h.y=j,h.rotation=te,h.setStyle({verticalAlign:`middle`}),P){h.setStyle({align:N});var re=h.states.select;re&&(re.x+=h.x,re.y+=h.y)}else{var ie=new rn(0,0,0,0);lj(ie,h),n.push({label:h,labelLine:g,position:y,len:T,len2:E,minTurnAngle:w.get(`minTurnAngle`),maxSurfaceAngle:w.get(`maxSurfaceAngle`),surfaceNormal:new Ut(O,k),linePoints:M,textAlign:N,labelDistance:b,labelAlignTo:x,edgeDistance:S,bleedMargin:C,rect:ie,unconstrainedWidth:ie.width,labelStyleWidth:h.style.width})}s.setTextConfig({inside:P})}}),!a&&e.get(`avoidLabelOverlap`)&&sj(n,r,i,c,l,f,u,d);for(var h=0;h<n.length;h++){var g=n[h],_=g.label,v=g.labelLine,y=isNaN(_.x)||isNaN(_.y);if(_){_.setStyle({align:g.textAlign}),y&&(V(_.states,p),_.ignore=!0);var b=_.states.select;b&&(b.x+=_.x,b.y+=_.y)}if(v){var x=g.linePoints;y||!x?(V(v.states,p),v.ignore=!0):(bD(x,g.minTurnAngle),xD(x,g.surfaceNormal,g.maxSurfaceAngle),v.setShape({points:x}),_.__hostTarget.textGuideLineConfig={anchor:new Ut(x[0][0],x[0][1])})}}}var mj=Math.PI*2,hj=Math.PI/180,gj=Ds(`pie`,_j);function _j(e,t){e.eachSeriesByType(`pie`,function(e){var n=e.getData(),r=n.mapDimension(`value`),i=sg(e,t),a=i.cx,o=i.cy,s=i.r,c=i.r0,l=i.viewRect,u=-e.get(`startAngle`)*hj,d=e.get(`endAngle`),f=e.get(`padAngle`)*hj;d=d===`auto`?u-mj:-d*hj;var p=e.get(`minAngle`)*hj+f,m=0;n.each(r,function(e){!isNaN(e)&&m++});var h=n.getSum(r),g=Math.PI/(h||m)*2,_=e.get(`clockwise`),v=e.get(`roseType`),y=e.get(`stillShowZeroSum`),b=n.getDataExtent(r);b[0]=0;var x=_?1:-1,S=[u,d],C=x*f/2;al(S,!_),u=S[0],d=S[1];var w=vj(e);w.startAngle=u,w.endAngle=d,w.clockwise=_,w.cx=a,w.cy=o,w.r=s,w.r0=c;var T=Math.abs(d-u),E=T,D=0,O=u;if(n.setLayout({viewRect:l,r:s}),n.each(r,function(e,t){var r;if(isNaN(e)){n.setItemLayout(t,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:a,cy:o,r0:c,r:v?NaN:s});return}r=v===`area`?T/m:h===0&&y?g:e*g,r<p?(r=p,E-=p):D+=e;var i=O+x*r,l=0,u=0;f>r?(l=O+x*r/2,u=l):(l=O+C,u=i-C),n.setItemLayout(t,{angle:r,startAngle:l,endAngle:u,clockwise:_,cx:a,cy:o,r0:c,r:v?Qa(e,b,[c,s]):s}),O=i}),E<mj&&m){if(E<=.001){var k=T/m;n.each(r,function(e,t){if(!isNaN(e)){var r=n.getItemLayout(t);r.angle=k;var i=0,a=0;k<f?(i=u+x*(t+1/2)*k,a=i):(i=u+x*t*k+C,a=u+x*(t+1)*k-C),r.startAngle=i,r.endAngle=a}})}else g=E/D,O=u,n.each(r,function(e,t){if(!isNaN(e)){var r=n.getItemLayout(t),i=r.angle===p?p:e*g,a=0,o=0;i<f?(a=O+x*i/2,o=a):(a=O+C,o=O+x*i-C),r.startAngle=a,r.endAngle=o,O+=x*i}})}})}var vj=es(),yj=function(e){l(t,e);function t(t,n,r){var i=e.call(this)||this;i.z2=2;var a=new Xl;return i.setTextContent(a),i.updateData(t,n,r,!0),i}return t.prototype.updateData=function(e,t,n,r){var i=this,a=e.hostModel,o=e.getItemModel(t),s=o.getModel(`emphasis`),c=e.getItemLayout(t),l=L(DA(o.getModel(`itemStyle`),c,!0),c);if(isNaN(l.startAngle)){i.setShape(l);return}if(r){i.setShape(l);var u=a.getShallow(`animationType`);a.ecModel.ssr?(np(i,{scaleX:0,scaleY:0},a,{dataIndex:t,isFrom:!0}),i.originX=l.cx,i.originY=l.cy):u===`scale`?(i.shape.r=c.r0,np(i,{shape:{r:c.r}},a,t)):n==null?(i.shape.endAngle=c.startAngle,tp(i,{shape:{endAngle:c.endAngle}},a,t)):(i.setShape({startAngle:n,endAngle:n}),np(i,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},a,t))}else sp(i),tp(i,{shape:l},a,t);i.useStyle(e.getItemVisual(t,`style`)),Cd(i,o);var d=(c.startAngle+c.endAngle)/2,f=a.get(`selectedOffset`),p=Math.cos(d)*f,m=Math.sin(d)*f,h=o.getShallow(`cursor`);h&&i.attr(`cursor`,h),this._updateLabel(a,e,t),i.ensureState(`emphasis`).shape=L({r:c.r+(s.get(`scale`)&&s.get(`scaleSize`)||0)},DA(s.getModel(`itemStyle`),c)),L(i.ensureState(`select`),{x:p,y:m,shape:DA(o.getModel([`select`,`itemStyle`]),c)}),L(i.ensureState(`blur`),{shape:DA(o.getModel([`blur`,`itemStyle`]),c)});var g=i.getTextGuideLine(),_=i.getTextContent();g&&L(g.ensureState(`select`),{x:p,y:m}),L(_.ensureState(`select`),{x:p,y:m}),yd(this,s.get(`focus`),s.get(`blurScope`),s.get(`disabled`))},t.prototype._updateLabel=function(e,t,n){var r=this,i=t.getItemModel(n),a=i.getModel(`labelLine`),o=t.getItemVisual(n,`style`),s=o&&o.fill,c=o&&o.opacity;am(r,om(i),{labelFetcher:t.hostModel,labelDataIndex:n,inheritColor:s,defaultOpacity:c,defaultText:e.getFormattedLabel(n,`normal`)||t.getName(n)});var l=r.getTextContent();r.setTextConfig({position:null,rotation:null}),l.attr({z2:10});var u=i.get([`label`,`position`]);if(u!==`outside`&&u!==`outer`)r.removeTextGuideLine();else{var d=this.getTextGuideLine();d||(d=new Df,this.setTextGuideLine(d)),wD(this,TD(i),{stroke:s,opacity:xe(a.get([`lineStyle`,`opacity`]),c,1)})}},t}(yf),bj=function(e){l(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`pie`,t.ignoreLabelLineUpdate=!0,t}return t.prototype.render=function(e,t,n,r){var i=e.getData(),a=this._data,o=this.group,s;if(!a&&i.count()>0){for(var c=i.getItemLayout(0),l=1;isNaN(c&&c.startAngle)&&l<i.count();++l)c=i.getItemLayout(l);c&&(s=c.startAngle)}if(this._emptyCircleSector&&o.remove(this._emptyCircleSector),i.count()===0&&e.get(`showEmptyCircle`)){var u=new yf({shape:F(vj(e))});u.useStyle(e.getModel(`emptyCircleStyle`).getItemStyle()),this._emptyCircleSector=u,o.add(u)}i.diff(a).add(function(e){var t=new yj(i,e,s);i.setItemGraphicEl(e,t),o.add(t)}).update(function(e,t){var n=a.getItemGraphicEl(t);n.updateData(i,e,s),n.off(`click`),o.add(n),i.setItemGraphicEl(e,n)}).remove(function(t){op(a.getItemGraphicEl(t),e,t)}).execute(),pj(e),e.get(`animationTypeUpdate`)!==`expansion`&&(this._data=i)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,t){var n=t.getData().getItemLayout(0);if(n){var r=e[0]-n.cx,i=e[1]-n.cy,a=Math.sqrt(r*r+i*i);return a<=n.r&&a>=n.r0}},t.type=`pie`,t}(Oy);function xj(e){return{seriesType:e,reset:function(e,t){var n=e.getData();n.filterSelf(function(e){var t=n.mapDimension(`value`),r=n.get(t,e);return!(fe(r)&&!isNaN(r)&&r<0)})}}}function Sj(e){e.registerChartView(bj),e.registerSeriesModel(ij),Cb(`pie`,e.registerAction),e.registerLayout(gj),e.registerProcessor(ej(`pie`)),e.registerProcessor(xj(`pie`))}var Cj=function(e){l(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.getInitialData=function(e,t){return fw(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){return this.option.progressive??(this.option.large?5e3:this.get(`progressive`))},t.prototype.getProgressiveThreshold=function(){return this.option.progressiveThreshold??(this.option.large?1e4:this.get(`progressiveThreshold`))},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:``},t.type=`series.scatter`,t.dependencies=[`grid`,`polar`,`geo`,`singleAxis`,`calendar`,`matrix`],t.defaultOption={coordinateSystem:`cartesian2d`,z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:q.color.primary}},universalTransition:{divideShape:`clone`}},t}(hy),wj=4,Tj=function(){function e(){}return e}(),Ej=function(e){l(t,e);function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new Tj},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.beforeBrush=function(e){e&&!e.contentRetained&&this.reset()},t.prototype.buildPath=function(e,t){var n=t.points,r=t.size,i=this.symbolProxy,a=i.shape,o=e.getContext?e.getContext():e,s=o&&r[0]<wj,c=this.softClipShape,l;if(s){this._ctx=o;return}for(this._ctx=null,l=this._off;l<n.length;){var u=n[l++],d=n[l++];isNaN(u)||isNaN(d)||c&&!c.contain(u,d)||(a.x=u-r[0]/2,a.y=d-r[1]/2,a.width=r[0],a.height=r[1],i.buildPath(e,a,!0))}this.incremental&&(this._off=l,this.notClear=!0)},t.prototype.afterBrush=function(){var e=this.shape,t=e.points,n=e.size,r=this._ctx,i=this.softClipShape,a;if(r){for(a=this._off;a<t.length;){var o=t[a++],s=t[a++];isNaN(o)||isNaN(s)||i&&!i.contain(o,s)||r.fillRect(o-n[0]/2,s-n[1]/2,n[0],n[1])}this.incremental&&(this._off=a,this.notClear=!0)}},t.prototype.findDataIndex=function(e,t){for(var n=this.shape,r=n.points,i=n.size,a=Math.max(i[0],4),o=Math.max(i[1],4),s=r.length/2-1;s>=0;s--){var c=s*2,l=r[c]-a/2,u=r[c+1]-o/2;if(e>=l&&t>=u&&e<=l+a&&t<=u+o)return s}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect();return e=n[0],t=n[1],r.contain(e,t)?(this.hoverDataIdx=this.findDataIndex(e,t))>=0:(this.hoverDataIdx=-1,!1)},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,n=t.points,r=t.size,i=r[0],a=r[1],o=1/0,s=1/0,c=-1/0,l=-1/0,u=0;u<n.length;){var d=n[u++],f=n[u++];o=Math.min(d,o),c=Math.max(d,c),s=Math.min(f,s),l=Math.max(f,l)}e=this._rect=new rn(o-i/2,s-a/2,c-o+i,l-s+a)}return e},t}(jl),Dj=function(){function e(){this.group=new Aa}return e.prototype.updateData=function(e,t){this._clear(),this._data=e;var n=this._create();n.setShape({points:e.getLayout(`points`)}),this._setCommon(n,e,t)},e.prototype.updateLayout=function(e){var t=this._data;if(t){var n=t.getLayout(`points`);this.group.eachChild(function(e){if(e.startIndex!=null){var t=(e.endIndex-e.startIndex)*2,r=e.startIndex*4*2;n=new Float32Array(n.buffer,r,t)}e.setShape(`points`,n),e.reset(),e.stopAnimation()})}},e.prototype.incrementalPrepareUpdate=function(e){this._clear()},e.prototype.incrementalUpdate=function(e,t,n,r){var i=this._newAdded[0],a=t.getLayout(`points`),o=i&&i.shape.points;if(o&&o.length<2e4){var s=o.length,c=new Float32Array(s+a.length);c.set(o),c.set(a,s),i.endIndex=e.end,i.setShape({points:c})}else{this._newAdded=[];var l=this._create();l.startIndex=e.start,l.endIndex=e.end,l.incremental=n,l.setShape({points:a}),this._setCommon(l,t,r)}},e.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},e.prototype._create=function(){var e=new Ej({cursor:`default`});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},e.prototype._setCommon=function(e,t,n){var r=t.hostModel;n||={};var i=t.getVisual(`symbolSize`);e.setShape(`size`,i instanceof Array?i:[i,i]),e.softClipShape=n.clipShape||null,e.symbolProxy=Jb(t.getVisual(`symbol`),0,0,0,0),e.setColor=e.symbolProxy.setColor;var a=e.shape.size[0]<wj;e.useStyle(r.getModel(`itemStyle`).getItemStyle(a?[`color`,`shadowBlur`,`shadowColor`]:[`color`]));var o=t.getVisual(`style`),s=o&&o.fill;s&&e.setColor(s);var c=uu(e);c.seriesIndex=r.seriesIndex,e.on(`mousemove`,function(t){c.dataIndex=null;var n=e.hoverDataIdx;n>=0&&(c.dataIndex=n+(e.startIndex||0))})},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),Oj=function(e){l(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=e.getData();this._updateSymbolDraw(r,e).updateData(r,kj(e)),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var r=e.getData();this._updateSymbolDraw(r,e).incrementalPrepareUpdate(r),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._symbolDraw.incrementalUpdate(e,t.getData(),Ts(t),kj(t)),this._finished=e.end===t.getData().count()},t.prototype.updateTransform=function(e,t,n){var r=e.getData();if(this.group.dirty(),this._finished){var i=tk(``).reset(e,t,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout(kj(e))}else return{update:!0}},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._updateSymbolDraw=function(e,t){var n=this._symbolDraw,r=t.pipelineContext.large;return(!n||r!==this._isLargeDraw)&&(n&&n.remove(),n=this._symbolDraw=r?new Dj:new lO,this._isLargeDraw=r,this.group.removeAll()),this.group.add(n.group),n},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type=`scatter`,t}(Oy);function kj(e){return{clipShape:jO(e)}}var Aj=function(e){l(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents(`grid`,is).models[0]},t.type=`cartesian2dAxis`,t}(_g);te(Aj,jT);var jj={show:!0,z:0,inverse:!1,name:``,nameLocation:`end`,nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:`...`,placeholder:`.`},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:`auto`,onZeroAxisIndex:null,lineStyle:{color:q.color.axisLine,width:1,type:`solid`},symbol:[`none`,`none`],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:q.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:q.color.axisSplitLine,width:1,type:`solid`}},splitArea:{show:!1,areaStyle:{color:[q.color.backgroundTint,q.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:q.color.neutral00,borderColor:q.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:`auto`}},Mj=I({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:`auto`,show:`auto`},axisLabel:{interval:`auto`}},jj),Nj=I({boundaryGap:[0,0],axisLine:{show:`auto`},axisTick:{show:`auto`},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:q.color.axisMinorSplitLine,width:1}}},jj),Pj={category:Mj,value:Nj,time:I({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:`bold`}}},splitLine:{show:!1}},Nj),log:z({logBase:10},Nj)};function Fj(e,t,n,r){V(fT,function(i,a){var o=I(I({},Pj[a],!0),r,!0),s=function(e){l(n,e);function n(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t+`Axis.`+a,n}return n.prototype.mergeDefaultAndTheme=function(e,t){var n=fg(this),r=n?mg(e):{};I(e,t.getTheme().get(a+`Axis`)),I(e,this.getDefaultOption()),e.type=Ij(e),n&&pg(e,r,n)},n.prototype.optionUpdated=function(){this.option.type===`category`&&(this.__ordinalMeta=_w.createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if(t.type===`category`)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.prototype.updateAxisBreaks=function(e){var t=ck();return t?t.updateModelAxisBreak(this,e):{breaks:[]}},n.type=t+`Axis.`+a,n.defaultOption=o,n}(n);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+`Axis`,Ij)}function Ij(e){return e.type||(e.data?`category`:`value`)}var Lj=function(){function e(e){this.type=`cartesian`,this._dimList=[],this._axes={},this.name=e||``}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return H(this._dimList,function(e){return this._axes[e]},this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),ie(this.getAxes(),function(t){return t.scale.type===e})},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}(),Rj=[`x`,`y`];function zj(e){return(e.type===`interval`||e.type===`time`)&&!Qm(e)}var Bj=function(e){l(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=aA,t.dimensions=Rj,t}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis(`x`).scale,t=this.getAxis(`y`).scale;if(!(!zj(e)||!zj(t))){var n=ww(e,null),r=ww(t,null),i=this.dataToPoint([n[0],r[0]]),a=this.dataToPoint([n[1],r[1]]),o=n[1]-n[0],s=r[1]-r[0];if(!(!o||!s)){var c=(a[0]-i[0])/o,l=(a[1]-i[1])/s,u=i[0]-n[0]*c,d=i[1]-r[0]*l,f=this._transform=[c,0,0,l,u,d];this._invTransform=Ht([],f)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale(`ordinal`)[0]||this.getAxesByScale(`time`)[0]||this.getAxis(`x`)},t.prototype.containPoint=function(e){var t=this.getAxis(`x`),n=this.getAxis(`y`);return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis(`x`).containData(e[0])&&this.getAxis(`y`).containData(e[1])},t.prototype.containZone=function(e,t){var n=this.dataToPoint(e),r=this.dataToPoint(t),i=this.getArea(),a=new rn(n[0],n[1],r[0]-n[0],r[1]-n[1]);return i.intersect(a)},t.prototype.dataToPoint=function(e,t,n){n||=[];var r=e[0],i=e[1];if(this._transform&&r!=null&&isFinite(r)&&i!=null&&isFinite(i))return et(n,e,this._transform);var a=this.getAxis(`x`),o=this.getAxis(`y`);return n[0]=a.toGlobalCoord(a.dataToCoord(r,t)),n[1]=o.toGlobalCoord(o.dataToCoord(i,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis(`x`).scale,r=this.getAxis(`y`).scale,i=n.getExtent(),a=r.getExtent(),o=n.parse(e[0]),s=r.parse(e[1]);return t||=[],t[0]=Math.min(Math.max(Math.min(i[0],i[1]),o),Math.max(i[0],i[1])),t[1]=Math.min(Math.max(Math.min(a[0],a[1]),s),Math.max(a[0],a[1])),t},t.prototype.pointToData=function(e,t,n){if(n||=[],this._invTransform)return et(n,e,this._invTransform);var r=this.getAxis(`x`),i=this.getAxis(`y`);return n[0]=r.coordToData(r.toLocalCoord(e[0]),t),n[1]=i.coordToData(i.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim===`x`?`y`:`x`)},t.prototype.getArea=function(e){e||=0;var t=this.getAxis(`x`).getGlobalExtent(),n=this.getAxis(`y`).getGlobalExtent(),r=Math.min(t[0],t[1])-e,i=Math.min(n[0],n[1])-e;return new rn(r,i,Math.max(t[0],t[1])-r+e,Math.max(n[0],n[1])-i+e)},t}(Lj);function Vj(e,t){var n=e.scale,r=e.model,i=pE(n,r,r.ecModel,e,null),a=Nw(n),o=Nw(t)?t.intervalStub:t,s=a?n.intervalStub:n,c=n.base,l=o.getTicks(),u=o.getTicks({expandToNicedExtent:!0}),d=l.length-1,f,p,m;if(d===1)f=p=0,m=1;else if(d===2){var h=Ua(l[0].value-l[1].value),g=Ua(l[1].value-l[2].value);f=p=0,h===g?m=2:(m=1,h<g?f=h/g:p=g/h)}else{var _=o.getConfig().interval;f=(1-(l[0].value-u[0].value)/_)%1,p=(1-(u[d].value-l[d].value)/_)%1,m=d-+!!f-!!p}var v=i.zoomFixMM,y=v[0]||v[1],b=[i.fixMM[0]||y,i.fixMM[1]||y],x=n.getExtent(),S=s.getExtent(),C=zw(S,b),w,T,E,D,O,k;function A(e){for(var t=50,n=0;n<t&&!e();n++)E=a?E*Ha(c,2):Fw(E),D=Iw(E)}function j(){w=ro(k-E*f,D)}function M(){T=ro(O+E*p,D)}function N(){k=f?ro(w+E*f,D):w}function P(){O=p?ro(T-E*p,D):T}if(b[0]&&b[1]){w=C[0],T=C[1],E=(T-w)/(m+f+p);var F=e.getExtent(),I=Ua(F[1]-F[0]);D=so([T,w],I,.5/m),N(),P(),wo(D)&&(E=ro(E,D))}else{var L=C[1]-C[0];E=a?Ha(go(L),1):vo(L/m,2),D=Iw(E),b[0]?(w=C[0],A(function(){if(N(),O=ro(k+E*m,D),M(),T>=C[1])return!0})):b[1]?(T=C[1],A(function(){if(P(),k=ro(O-E*m,D),j(),w<=C[0])return!0})):A(function(){k=ro(Ka(C[0]/E)*E,D),O=ro(Ga(C[1]/E)*E,D);var e=Wa((O-k)/E);if(e<=m){var t=m-e,n=void 0,r=i.incl0||a;if(r&&C[0]===0)n=[0,t];else if(r&&C[1]===0)n=[t,0];else{var o=Ga(t/2);n=t%2==0?[o,o]:w+T<C[0]+C[1]?[o,o+1]:[o+1,o]}if(k=ro(k-E*n[0],D),O=ro(O+E*n[1],D),j(),M(),w<=C[0]&&T>=C[1])return!0}})}OT(n,b,S,[w,T],x,{interval:E,intervalCount:m,intervalPrecision:D,niceExtent:[k,O]})}var Hj=[[3,1],[0,2]],Uj=function(){function e(e,t,n){this.type=`grid`,this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Rj,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;V(this._axesList,function(e){sE(e,1);var t=e.scale;Pw(t)&&t.setSortInfo(e.model.get(`categorySortInfo`))});function r(e){for(var t=oe(e),n=[],r=t.length-1;r>=0;r--){var i=e[+t[r]];i.__alignTo?n.push(i):yE(i)}V(n,function(e){Jj(e,e.__alignTo)?yE(e):Vj(e,e.__alignTo.scale)})}r(n.x),r(n.y);var i={};V(n.x,function(e){Gj(n,`y`,e,i)}),V(n.y,function(e){Gj(n,`x`,e,i)}),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var r=ug(e,t),i=this._rect=cg(e.getBoxLayoutParams(),r.refContainer),a=this._axesMap,o=this._coordsList,s=e.get(`containLabel`);if(Xj(a,i),!n){var c=eM(i,o,a,s,t),l=void 0;if(s)Qj?(Qj(this._axesList,i),Xj(a,i)):l=$j(i.clone(),`axisLabel`,null,i,a,c,r);else{var u=nM(e,i,r),d=u.outerBoundsRect,f=u.parsedOuterBoundsContain,p=u.outerBoundsClamp;d&&(l=$j(d,f,p,i,a,c,r))}tM(i,a,OE.determine,null,l,r),V(this._coordsList,function(e){e.calcAffineTransform()})}},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(n!=null)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var n=`x`+e+`y`+t;return this._coordsMap[n]}pe(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var r=0,i=this._coordsList;r<i.length;r++)if(i[r].getAxis(`x`).index===e||i[r].getAxis(`y`).index===t)return i[r]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.dataToPoint(n):r.axis?r.axis.toGlobalCoord(r.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.pointToData(n):r.axis?r.axis.coordToData(r.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(e){var t=e.seriesModel,n=e.xAxisModel||t&&t.getReferringComponents(`xAxis`,is).models[0],r=e.yAxisModel||t&&t.getReferringComponents(`yAxis`,is).models[0],i=e.gridModel,a=this._coordsList,o,s;return t?(o=t.coordinateSystem,B(a,o)<0&&(o=null)):n&&r?o=this.getCartesian(n.componentIndex,r.componentIndex):n?s=this.getAxis(`x`,n.componentIndex):r?s=this.getAxis(`y`,r.componentIndex):i&&i.coordinateSystem===this&&(o=this._coordsList[0]),{cartesian:o,axis:s}},e.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},e.prototype._initCartesian=function(e,t,n){var r=this,i=this,a={left:!1,right:!1,top:!1,bottom:!1},o={x:{},y:{}},s={x:0,y:0};if(t.eachComponent(`xAxis`,c(`x`),this),t.eachComponent(`yAxis`,c(`y`),this),!s.x||!s.y){this._axesMap={},this._axesList=[];return}this._axesMap=o,V(o.x,function(t,n){V(o.y,function(i,a){var o=`x`+n+`y`+a,s=new Bj(o);s.master=r,s.model=e,r._coordsMap[o]=s,r._coordsList.push(s),s.addAxis(t),s.addAxis(i)})}),qj(o.x),qj(o.y);function c(t){return function(n,r){if(Wj(n,e)){var c=n.get(`position`);t===`x`?c!==`top`&&c!==`bottom`&&(c=a.bottom?`top`:`bottom`):c!==`left`&&c!==`right`&&(c=a.left?`right`:`left`),a[c]=!0;var l=mT(n),u=new ok(t,hT(n,l,!0),[0,0],l,c);u.onBand=AT(u.scale,n),u.inverse=n.get(`inverse`),n.axis=u,u.model=n,u.grid=i,u.index=r,i._axesList.push(u),o[t][r]=u,s[t]++}}}},e.prototype.getTooltipAxes=function(e){var t=[],n=[];return V(this.getCartesians(),function(r){var i=e!=null&&e!==`auto`?r.getAxis(e):r.getBaseAxis(),a=r.getOtherAxis(i);B(t,i)<0&&t.push(i),B(n,a)<0&&n.push(a)}),{baseAxes:t,otherAxes:n}},e.create=function(t,n){var r=[];return t.eachComponent(`grid`,function(i,a){var o=new e(i,t,n);o.name=`grid_`+a,o.resize(i,n,!0),i.coordinateSystem=o,r.push(o),V(o._axesList,function(t){oE(t,e.dimIdxMap)})}),t.eachSeries(function(e){var t,n;$h({targetModel:e,coordSysType:aA,coordSysProvider:r});function r(){var r=Gk(e),i=r.xAxisModel,a=r.yAxisModel;return t=i.axis,n=a.axis,i.getCoordSysModel().coordinateSystem.getCartesian(i.componentIndex,a.componentIndex)}t&&n&&(JT(t,e,aA),JT(n,e,aA))},this),r},e.dimensions=Rj,e.dimIdxMap=FC(Rj),e}();function Wj(e,t){return e.getCoordSysModel()===t}function Gj(e,t,n,r){n.getAxesOnZeroOf=function(){return a?[a]:[]};var i=e[t],a,o=n.model,s=o.get([`axisLine`,`onZero`]),c=o.get([`axisLine`,`onZeroAxisIndex`]);if(!s)return;if(c!=null)Kj(s,i[c])&&(a=i[c]);else for(var l in i)if(K(i,l)&&Kj(s,i[l])&&!r[u(i[l])]){a=i[l];break}a&&(r[u(a)]=!0);function u(e){return e.dim+`_`+e.index}}function Kj(e,t){if(!t)return!1;var n=t.scale,r=gT(n,0,!1),i=t&&t.type!==`category`&&t.type!==`time`&&r!==3;return i&&e===`auto`&&vT(t)&&(i=!1),i}function qj(e){for(var t=oe(e),n,r=[],i=t.length-1;i>=0;i--){var a=e[+t[i]];Aw(a.scale)&&ET(a.model,a.type,!0)==null&&(a.model.get(`alignTicks`)&&a.model.get(`interval`)==null?r.push(a):n=a)}n||=r.pop(),n&&V(r,function(e){e.__alignTo=n})}function Jj(e,t){return Qm(e.scale)||Qm(t.scale)||t.scale.getTicks().length<2}function Yj(e,t){var n=e.getExtent(),r=n[0]+n[1];e.toGlobalCoord=e.dim===`x`?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord=e.dim===`x`?function(e){return e-t}:function(e){return r-e+t}}function Xj(e,t){V(e.x,function(e){return Zj(e,t.x,t.width)}),V(e.y,function(e){return Zj(e,t.y,t.height)})}function Zj(e,t,n){var r=[0,n],i=+!!e.inverse;e.setExtent(r[i],r[1-i]),Yj(e,t)}var Qj;function $j(e,t,n,r,i,a,o){tM(r,i,OE.estimate,t,!1,o);var s=[0,0,0,0];l(0),l(1),u(r,0,NaN),u(r,1,NaN);var c=ae(s,function(e){return e>0})==null;return Rp(r,s,!0,!0,n),Xj(i,r),c;function l(e){V(i[up[e]],function(t){if(TT(t.model)){var n=a.ensureRecord(t.model),r=n.labelInfoList;if(r)for(var i=0;i<r.length;i++){var o=r[i],s=t.scale.normalize(kT(t.scale,pk(o.label).labelInfo.tick));s=e===1?1-s:s,u(o.rect,e,s),u(o.rect,1-e,NaN)}var c=n.nameLayout;if(c){var s=wT(n.nameLocation)?.5:NaN;u(c.rect,e,s),u(c.rect,1-e,NaN)}}})}function u(t,n,r){var i=e[up[n]]-t[up[n]],a=t[dp[n]]+t[up[n]]-(e[dp[n]]+e[up[n]]);i=d(i,1-r),a=d(a,r);var o=Hj[n][0],c=Hj[n][1];s[o]=Ha(s[o],i),s[c]=Ha(s[c],a)}function d(e,t){return e>0&&!ye(t)&&t>1e-4&&(e/=t),e}}function eM(e,t,n,r,i){var a=new hk(rM);return V(n,function(n){return V(n,function(n){if(TT(n.model)){var o=!r;n.axisBuilder=Kk(e,t,n.model,i,a,o)}})}),a}function tM(e,t,n,r,i,a){var o=n===OE.determine;V(t,function(t){return V(t,function(t){TT(t.model)&&(qk(t.axisBuilder,e,t.model),t.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};c(0),c(1);function c(t){s[up[1-t]]=e[dp[t]]<=a.refContainer[dp[t]]*.5?0:1-t==1?2:1}V(t,function(e,t){return V(e,function(e){TT(e.model)&&((r===`all`||o)&&e.axisBuilder.build({axisName:!0},{nameMarginLevel:s[t]}),o&&e.axisBuilder.build({axisLine:!0}))})})}function nM(e,t,n){var r,i=e.get(`outerBoundsMode`,!0);i===`same`?r=t.clone():(i==null||i===`auto`)&&(r=cg(e.get(`outerBounds`,!0)||rA,n.refContainer));var a=e.get(`outerBoundsContain`,!0),o=a==null||a===`auto`||B([`all`,`axisLabel`],a)<0?`all`:a,s=[to(G(e.get(`outerBoundsClampWidth`,!0),iA[0]),t.width),to(G(e.get(`outerBoundsClampHeight`,!0),iA[1]),t.height)];return{outerBoundsRect:r,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var rM=function(e,t,n,r,i,a){var o=n.axis.dim===`x`?`y`:`x`;yk(e,t,n,r,i,a),wT(e.nameLocation)||V(t.recordMap[o],function(e){e&&e.labelInfoList&&e.dirVec&&xk(e.labelInfoList,e.dirVec,r,i)})};function iM(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return aM(n,e,t),n.seriesInvolved&&sM(n,e),n}function aM(e,t,n){var r=t.getComponent(`tooltip`),i=t.getComponent(`axisPointer`),a=i.get(`link`,!0)||[],o=[];V(n.getCoordinateSystems(),function(n){if(!n.axisPointerEnabled)return;var s=mM(n.model),c=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var l=n.model.getModel(`tooltip`,r);if(V(n.getAxes(),le(p,!1,null)),n.getTooltipAxes&&r&&l.get(`show`)){var u=l.get(`trigger`)===`axis`,d=l.get([`axisPointer`,`type`])===`cross`,f=n.getTooltipAxes(l.get([`axisPointer`,`axis`]));(u||d)&&V(f.baseAxes,le(p,!d||`cross`,u)),d&&V(f.otherAxes,le(p,`cross`,!1))}function p(r,s,u){var d=u.model.getModel(`axisPointer`,i),f=d.get(`show`);if(!(!f||f===`auto`&&!r&&!pM(d))){s??=d.get(`triggerTooltip`),d=r?oM(u,l,i,t,r,s):d;var p=d.get(`snap`),m=d.get(`triggerEmphasis`),h=mM(u.model),g=s||p||u.type===`category`,_=e.axesInfo[h]={key:h,axis:u,coordSys:n,axisPointerModel:d,triggerTooltip:s,triggerEmphasis:m,involveSeries:g,snap:p,useHandle:pM(d),seriesModels:[],linkGroup:null};c[h]=_,e.seriesInvolved=e.seriesInvolved||g;var v=cM(a,u);if(v!=null){var y=o[v]||(o[v]={axesInfo:{}});y.axesInfo[h]=_,y.mapper=a[v].mapper,_.linkGroup=y}}}})}function oM(e,t,n,r,i,a){var o=t.getModel(`axisPointer`),s=[`type`,`snap`,`lineStyle`,`shadowStyle`,`label`,`animation`,`animationDurationUpdate`,`animationEasingUpdate`,`z`],c={};V(s,function(e){c[e]=F(o.get(e))}),c.snap=e.type!==`category`&&!!a,o.get(`type`)===`cross`&&(c.type=`line`);var l=c.label||={};if(l.show??=!1,i===`cross`&&(l.show=o.get([`label`,`show`])??!0,!a)){var u=c.lineStyle=o.get(`crossStyle`);u&&z(l,u.textStyle)}return e.model.getModel(`axisPointer`,new Am(c,n,r))}function sM(e,t){t.eachSeries(function(t){var n=t.coordinateSystem,r=t.get([`tooltip`,`trigger`],!0),i=t.get([`tooltip`,`show`],!0);!n||!n.model||r===`none`||r===!1||r===`item`||i===!1||t.get([`axisPointer`,`show`],!0)===!1||V(e.coordSysAxesInfo[mM(n.model)],function(e){var r=e.axis;n.getAxis(r.dim)===r&&(e.seriesModels.push(t),e.seriesDataCount??=0,e.seriesDataCount+=t.getData().count())})})}function cM(e,t){for(var n=t.model,r=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(lM(a[r+`AxisId`],n.id)||lM(a[r+`AxisIndex`],n.componentIndex)||lM(a[r+`AxisName`],n.name))return i}}function lM(e,t){return e===`all`||U(e)&&B(e,t)>=0||e===t}function uM(e){var t=dM(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,a=n.get(`status`),o=n.get(`value`);o!=null&&(o=r.parse(o));var s=pM(n);a??(i.status=s?`show`:`hide`);var c=r.getExtent();(o==null||o>c[1])&&(o=c[1]),o<c[0]&&(o=c[0]),i.value=o,s&&(i.status=t.axis.scale.isBlank()?`hide`:`show`)}}function dM(e){var t=(e.ecModel.getComponent(`axisPointer`)||{}).coordSysAxesInfo;return t&&t.axesInfo[mM(e)]}function fM(e){var t=dM(e);return t&&t.axisPointerModel}function pM(e){return!!e.get([`handle`,`show`])}function mM(e){return e.type+`||`+e.id}var hM={},gM=function(e){l(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(t,n,r,i){this.axisPointerClass&&uM(t),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,r,!0)},t.prototype.updateAxisPointer=function(e,t,n,r){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,t){var n=this._axisPointer;n&&n.remove(t)},t.prototype.dispose=function(t,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,r){var i=t.getAxisPointerClass(this.axisPointerClass);if(i){var a=fM(e);a?(this._axisPointer||=new i).render(e,a,n,r):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,t){hM[e]=t},t.getAxisPointerClass=function(e){return e&&hM[e]},t.type=`axis`,t}(wy),_M=es();function vM(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var a=n.getModel(`splitArea`),o=a.getModel(`areaStyle`),s=o.get(`color`),c=r.coordinateSystem.getRect(),l=i.getTicksCoords({tickModel:a,breakTicks:`none`,pruneByBreak:`preserve_extent_bound`});if(l.length){var u=s.length,d=_M(e).splitAreaColors,f=Ne(),p=0;if(d)for(var m=0;m<l.length;m++){var h=d.get(l[m].tickValue);if(h!=null){p=(h+(u-1)*m)%u;break}}var g=i.toGlobalCoord(l[0].coord),_=o.getAreaStyle();s=U(s)?s:[s];for(var m=1;m<l.length;m++){var v=i.toGlobalCoord(l[m].coord),y=void 0,b=void 0,x=void 0,S=void 0;i.isHorizontal()?(y=g,b=c.y,x=v-y,S=c.height,g=y+x):(y=c.x,b=g,x=c.width,S=v-b,g=b+S);var C=l[m-1].tickValue;C!=null&&f.set(C,p),t.add(new Gl({anid:C==null?null:`area_`+C,shape:{x:y,y:b,width:x,height:S},style:z({fill:s[p]},_),autoBatch:!0,silent:!0})),p=(p+1)%u}_M(e).splitAreaColors=f}}}function yM(e){_M(e).splitAreaColors=null}var bM=[`splitArea`,`splitLine`,`minorSplitLine`,`breakArea`],xM=function(e){l(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass=`CartesianAxisPointer`,n}return t.prototype.render=function(t,n,r,i){this.group.removeAll();var a=this._axisGroup;this._axisGroup=new Aa,this.group.add(this._axisGroup),TT(t)&&(this._axisGroup.add(t.axis.axisBuilder.group),V(bM,function(e){t.get([e,`show`])&&SM[e](this,this._axisGroup,t,t.getCoordSysModel(),r)},this),i&&i.type===`changeAxisOrder`&&i.isInitSort||Ap(a,this._axisGroup,t),e.prototype.render.call(this,t,n,r,i))},t.prototype.remove=function(){yM(this)},t.type=`cartesianAxis`,t}(gM),SM={splitLine:function(e,t,n,r,i){var a=n.axis;if(!a.scale.isBlank()){var o=n.getModel(`splitLine`),s=o.getModel(`lineStyle`),c=s.get(`color`),l=o.get(`showMinLine`)!==!1,u=o.get(`showMaxLine`)!==!1;c=U(c)?c:[c];for(var d=r.coordinateSystem.getRect(),f=a.isHorizontal(),p=0,m=a.getTicksCoords({tickModel:o,breakTicks:`none`,pruneByBreak:`preserve_extent_bound`}),h=[],g=[],_=s.getLineStyle(),v=0;v<m.length;v++){var y=a.toGlobalCoord(m[v].coord);if(!(v===0&&!l||v===m.length-1&&!u)){var b=m[v].tickValue;f?(h[0]=y,h[1]=d.y,g[0]=y,g[1]=d.y+d.height):(h[0]=d.x,h[1]=y,g[0]=d.x+d.width,g[1]=y);var x=p++%c.length,S=new Af({anid:b==null?null:`line_`+b,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:g[0],y2:g[1]},style:z({stroke:c[x]},_),silent:!0});Sp(S.shape,_.lineWidth),t.add(S)}}}},minorSplitLine:function(e,t,n,r,i){var a=n.axis,o=n.getModel(`minorSplitLine`).getModel(`lineStyle`),s=r.coordinateSystem.getRect(),c=a.isHorizontal(),l=a.getMinorTicksCoords();if(l.length)for(var u=[],d=[],f=o.getLineStyle(),p=0;p<l.length;p++)for(var m=0;m<l[p].length;m++){var h=a.toGlobalCoord(l[p][m].coord);c?(u[0]=h,u[1]=s.y,d[0]=h,d[1]=s.y+s.height):(u[0]=s.x,u[1]=h,d[0]=s.x+s.width,d[1]=h);var g=new Af({anid:`minor_line_`+l[p][m].tickValue,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:d[0],y2:d[1]},style:f,silent:!0});Sp(g.shape,f.lineWidth),t.add(g)}},splitArea:function(e,t,n,r,i){vM(e,t,n,r)},breakArea:function(e,t,n,r,i){var a=ck(),o=n.axis.scale;a&&o.type!==`ordinal`&&a.rectCoordBuildBreakAxis(t,e,n,r.coordinateSystem.getRect(),i)}},CM=function(e){l(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`xAxis`,t}(xM),wM=function(e){l(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=CM.type,t}return t.type=`yAxis`,t}(xM),TM=function(e){l(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`grid`,t}return t.prototype.render=function(e,t){this.group.removeAll(),e.get(`show`)&&this.group.add(new Gl({shape:e.coordinateSystem.getRect(),style:z({fill:e.get(`backgroundColor`)},e.getItemStyle()),silent:!0,z2:-1}))},t.type=`grid`,t}(wy),EM={offset:0};function DM(e){e.registerComponentView(TM),e.registerComponentModel(oA),e.registerCoordinateSystem(`cartesian2d`,Uj),Fj(e,`x`,Aj,EM),Fj(e,`y`,Aj,EM),e.registerComponentView(CM),e.registerComponentView(wM),e.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function OM(e){TE(DM),e.registerSeriesModel(Cj),e.registerChartView(Oj),e.registerLayout(tk(`scatter`))}function kM(e){var t=e.polar;if(t){U(t)||(t=[t]);var n=[];V(t,function(t,r){t.indicator?(t.type&&!t.shape&&(t.shape=t.type),e.radar=e.radar||[],U(e.radar)||(e.radar=[e.radar]),e.radar.push(t)):n.push(t)}),e.polar=n}V(e.series,function(e){e&&e.type===`radar`&&e.polarIndex&&(e.radarIndex=e.polarIndex)})}var AM=`radar`,jM=function(e){l(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new nj(ce(this.getData,this),ce(this.getRawData,this))},t.prototype.getInitialData=function(e,t){return tj(this,{generateCoord:`indicator_`,generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.coordinateSystem.getIndicatorAxes(),a=this.getData().getName(e),o=a===``?this.name:a,s=cy(this,e);return Yv(`section`,{header:o,sortBlocks:!0,blocks:H(i,function(t){var n=r.get(r.mapDimension(t.dim),e);return Yv(`nameValue`,{markerType:`subItem`,markerColor:s,name:t.name,value:n,sortParam:n})})})},t.prototype.getTooltipPosition=function(e){if(e!=null){for(var t=this.getData(),n=this.coordinateSystem,r=t.getValues(H(n.dimensions,function(e){return t.mapDimension(e)}),e),i=0,a=r.length;i<a;i++)if(!isNaN(r[i])){var o=n.getIndicatorAxes();return n.coordToPoint(o[i].dataToCoord(r[i]),i)}}},t.type=`series.`+AM,t.dependencies=[`radar`],t.defaultOption={z:2,colorBy:`data`,coordinateSystem:`radar`,legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:`solid`,join:`round`},label:{position:`top`},symbolSize:8},t}(hy),MM=function(e){l(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=AM,t}return t.prototype.render=function(e,t,n){var r=e.coordinateSystem,i=this.group,a=e.getData(),o=this._data;function s(e,t){var n=e.getItemVisual(t,`symbol`)||`circle`;if(n!==`none`){var r=Yb(e.getItemVisual(t,`symbolSize`)),i=Jb(n,-1,-1,2,2),a=e.getItemVisual(t,`symbolRotate`)||0;return i.attr({style:{strokeNoScale:!0},z2:100,scaleX:r[0]/2,scaleY:r[1]/2,rotation:a*Math.PI/180||0}),i}}function c(t,n,r,i,a,o){r.removeAll();for(var c=0;c<n.length-1;c++){var l=s(i,a);l&&(l.__dimIdx=c,t[c]?(l.setPosition(t[c]),cp[o?`initProps`:`updateProps`](l,{x:n[c][0],y:n[c][1]},e,a)):l.setPosition(n[c]),r.add(l))}}function l(e){return H(e,function(e){return[r.cx,r.cy]})}a.diff(o).add(function(t){var n=a.getItemLayout(t);if(n){var r=new Tf,i=new Df,o={shape:{points:n}};r.shape.points=l(n),i.shape.points=l(n),np(r,o,e,t),np(i,o,e,t);var s=new Aa,u=new Aa;s.add(i),s.add(r),s.add(u),c(i.shape.points,n,u,a,t,!0),a.setItemGraphicEl(t,s)}}).update(function(t,n){var r=o.getItemGraphicEl(n),i=r.childAt(0),s=r.childAt(1),l=r.childAt(2),u={shape:{points:a.getItemLayout(t)}};u.shape.points&&(c(i.shape.points,u.shape.points,l,a,t,!1),sp(s),sp(i),tp(i,u,e),tp(s,u,e),a.setItemGraphicEl(t,r))}).remove(function(e){i.remove(o.getItemGraphicEl(e))}).execute(),a.eachItemGraphicEl(function(e,t){var n=a.getItemModel(t),r=e.childAt(0),o=e.childAt(1),s=e.childAt(2),c=a.getItemVisual(t,`style`),l=c.fill;i.add(e),r.useStyle(z(n.getModel(`lineStyle`).getLineStyle(),{fill:`none`,stroke:l})),Cd(r,n,`lineStyle`),Cd(o,n,`areaStyle`);var u=n.getModel(`areaStyle`),d=u.isEmpty()&&u.parentModel.isEmpty();o.ignore=d,V([`emphasis`,`select`,`blur`],function(e){var t=n.getModel([e,`areaStyle`]),i=t.isEmpty()&&t.parentModel.isEmpty();o.ensureState(e).ignore=i&&d;var a=n.getModel([e,`lineStyle`]).getLineStyle();r.ensureState(e).style=a;var c=t.getAreaStyle();o.ensureState(e).style=c;var l=n.getModel([e,`itemStyle`]).getItemStyle();s.eachChild(function(t){t.ensureState(e).style=F(l)})}),o.useStyle(z(n.getModel(`areaStyle`).getAreaStyle(),{fill:l,opacity:.7,decal:c.decal}));var f=n.getModel(`emphasis`);s.eachChild(function(e){if(e instanceof Ll){var r=e.style;e.useStyle(L({image:r.image,x:r.x,y:r.y,width:r.width,height:r.height},c))}else e.useStyle(c),e.setColor(l),e.style.strokeNoScale=!0;var i=a.getStore().get(a.getDimensionIndex(e.__dimIdx),t);(i==null||isNaN(i))&&(i=``),am(e,om(n),{labelFetcher:a.hostModel,labelDataIndex:t,labelDimIndex:e.__dimIdx,defaultText:i,inheritColor:l,defaultOpacity:c.opacity})}),yd(e,f.get(`focus`),f.get(`blurScope`),f.get(`disabled`))}),this._data=a},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type=AM,t}(Oy),NM=Pj.value,PM=`radar`,FM=PM,IM=PM;function LM(e,t){return z({show:t},e)}var RM=function(e){l(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(){var e=this.get(`boundaryGap`),t=this.get(`splitNumber`),n=this.get(`clockwise`),r=this.get(`scale`),i=this.get(`axisLine`),a=this.get(`axisTick`),o=this.get(`axisLabel`),s=this.get(`axisName`),c=this.get([`axisName`,`show`]),l=this.get([`axisName`,`formatter`]),u=this.get(`axisNameGap`),d=this.get(`triggerEvent`),f=H(this.get(`indicator`)||[],function(f){f.max!=null&&f.max>0&&!f.min?f.min=0:f.min!=null&&f.min<0&&!f.max&&(f.max=0);var p=s;f.color!=null&&(p=z({color:f.color},s));var m=I(F(f),{boundaryGap:e,splitNumber:t,clockwise:n,scale:r,axisLine:i,axisTick:a,axisLabel:o,name:f.text,showName:c,nameLocation:`end`,nameGap:u,nameTextStyle:p,triggerEvent:d},!1);if(W(l)){var h=m.name;m.name=l.replace(`{value}`,h??``)}else ue(l)&&(m.name=l(m.name,m));var g=new Am(m,null,this.ecModel);return te(g,jT.prototype),g.mainType=`radar`,g.componentIndex=this.componentIndex,g.uid=Mm(`ec_radar`),g},this);this._indicatorModels=f},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type=FM,t.defaultOption={z:0,center:[`50%`,`50%`],radius:`50%`,startAngle:90,clockwise:!1,axisName:{show:!0,color:q.color.axisLabel},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:`polygon`,axisLine:I({lineStyle:{color:q.color.neutral20}},NM.axisLine),axisLabel:LM(NM.axisLabel,!1),axisTick:LM(NM.axisTick,!1),splitLine:LM(NM.splitLine,!0),splitArea:LM(NM.splitArea,!0),indicator:[]},t}(_g),zM=function(e){l(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){this.group.removeAll(),this._buildAxes(e,n),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e,t){var n=e.coordinateSystem;V(H(n.getIndicatorAxes(),function(e){var r=e.model.get(`showName`)?e.name:``;return new Sk(e.model,t,{axisName:r,position:[n.cx,n.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}),function(e){e.build(),this.group.add(e.group)},this)},t.prototype._buildSplitLineAndArea=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes();if(!n.length)return;var r=e.get(`shape`),i=e.getModel(`splitLine`),a=e.getModel(`splitArea`),o=i.getModel(`lineStyle`),s=a.getModel(`areaStyle`),c=i.get(`show`),l=a.get(`show`),u=o.get(`color`),d=s.get(`color`),f=U(u)?u:[u],p=U(d)?d:[d],m=[],h=[];function g(e,t,n){var r=n%t.length;return e[r]=e[r]||[],r}if(r===`circle`)for(var _=n[0].getTicksCoords(),v=t.cx,y=t.cy,b=0;b<_.length;b++){if(c){var x=g(m,f,b);m[x].push(new $d({shape:{cx:v,cy:y,r:_[b].coord}}))}if(l&&b<_.length-1){var x=g(h,p,b);h[x].push(new xf({shape:{cx:v,cy:y,r0:_[b].coord,r:_[b+1].coord}}))}}else for(var S,C=H(n,function(e,n){var r=e.getTicksCoords();return S=S==null?r.length-1:Math.min(r.length-1,S),H(r,function(e){return t.coordToPoint(e.coord,n)})}),w=[],b=0;b<=S;b++){for(var T=[],E=0;E<n.length;E++)T.push(C[E][b]);if(T[0]&&T.push(T[0].slice()),c){var x=g(m,f,b);m[x].push(new Df({shape:{points:T}}))}if(l&&w){var x=g(h,p,b-1);h[x].push(new Tf({shape:{points:T.concat(w)}}))}w=T.slice().reverse()}var D=o.getLineStyle(),O=s.getAreaStyle();V(h,function(e,t){this.group.add(bp(e,{style:z({stroke:`none`,fill:p[t%p.length]},O),silent:!0}))},this),V(m,function(e,t){this.group.add(bp(e,{style:z({fill:`none`,stroke:f[t%f.length]},D),silent:!0}))},this)},t.type=`radar`,t}(wy),BM=function(e){l(t,e);function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.type=`value`,i.angle=0,i.name=``,i}return t}($E),VM=function(){function e(e,t,n){this.type=PM,this.dimensions=[],this._model=e,this._indicatorAxes=H(e.getIndicatorModels(),function(e,t){var n=`indicator_`+t,r=new BM(n,new Gw);return r.name=e.get(`name`),r.model=e,e.axis=r,this.dimensions.push(n),r},this),this.resize(e,n)}return e.prototype.getIndicatorAxes=function(){return this._indicatorAxes},e.prototype.dataToPoint=function(e,t){var n=this._indicatorAxes[t];return this.coordToPoint(n.dataToCoord(e),t)},e.prototype.coordToPoint=function(e,t){var n=this._indicatorAxes[t].angle;return[this.cx+e*Math.cos(n),this.cy-e*Math.sin(n)]},e.prototype.pointToData=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,r=Math.sqrt(t*t+n*n);t/=r,n/=r;for(var i=Math.atan2(-n,t),a=1/0,o,s=-1,c=0;c<this._indicatorAxes.length;c++){var l=this._indicatorAxes[c],u=Math.abs(i-l.angle);u<a&&(o=l,s=c,a=u)}return[s,+(o&&o.coordToData(r))]},e.prototype.resize=function(e,t){var n=ug(e,t).refContainer,r=e.get(`center`),i=e.get(`clockwise`)||!1,a=Math.min(n.width,n.height)/2;this.cx=$a(r[0],n.width)+n.x,this.cy=$a(r[1],n.height)+n.y,this.startAngle=e.get(`startAngle`)*Math.PI/180;var o=e.get(`radius`);(W(o)||fe(o))&&(o=[0,o]),this.r0=$a(o[0],a),this.r=$a(o[1],a);var s=i?-1:1;V(this._indicatorAxes,function(e,t){e.setExtent(this.r0,this.r);var n=this.startAngle+s*t*Math.PI*2/this._indicatorAxes.length;n=Math.atan2(Math.sin(n),Math.cos(n)),e.angle=n},this)},e.prototype.update=function(e,t){var n=this._indicatorAxes,r=this._model,i=Vw(r.get(`splitNumber`),5),a=new Gw;a.setExtent(0,i),a.setConfig({interval:1}),V(n,function(e){sE(e,1),Vj(e,a)})},e.prototype.convertToPixel=function(e,t,n){return console.warn(`Not implemented.`),null},e.prototype.convertFromPixel=function(e,t,n){return console.warn(`Not implemented.`),null},e.prototype.containPoint=function(e){return console.warn(`Not implemented.`),!1},e.create=function(t,n){var r=[];return t.eachComponent(FM,function(i){var a=new e(i,t,n);r.push(a),i.coordinateSystem=a}),t.eachSeriesByType(IM,function(e){if(e.get(`coordinateSystem`)===`radar`){var t=e.coordinateSystem=r[e.get(`radarIndex`)||0];t&&V(t.getIndicatorAxes(),function(t){JT(t,e,PM)})}}),r},e.dimensions=[],e}();function HM(e){e.registerCoordinateSystem(`radar`,VM),e.registerComponentModel(RM),e.registerComponentView(zM),e.registerVisual({seriesType:`radar`,reset:function(e){var t=e.getData();t.each(function(e){t.setItemVisual(e,`legendIcon`,`roundRect`)}),t.setVisual(`legendIcon`,`roundRect`)}})}var UM=Ds(AM,WM);function WM(e){e.eachSeriesByType(AM,function(e){var t=e.getData(),n=[],r=e.coordinateSystem;if(r){var i=r.getIndicatorAxes();V(i,function(e,a){t.each(t.mapDimension(i[a].dim),function(e,t){n[t]=n[t]||[];var i=r.dataToPoint(e,a);n[t][a]=GM(i)?i:KM(r)})}),t.each(function(e){var i=ae(n[e],function(e){return GM(e)})||KM(r);n[e].push(i.slice()),t.setItemLayout(e,n[e])})}})}function GM(e){return!isNaN(e[0])&&!isNaN(e[1])}function KM(e){return[e.cx,e.cy]}function qM(e){TE(HM),e.registerChartView(MM),e.registerSeriesModel(jM),e.registerLayout(UM),e.registerProcessor(ej(`radar`)),e.registerPreprocessor(kM)}function JM(e){return e}var YM=`view`;(function(e){l(t,e);function t(t,n,r){var i=e.call(this)||this;i.type=YM,i.dimensions=[`x`,`y`];var a=JM(i);a.invertY=t,a.lgCt=n,a.lgGeo=r;var o=a.trans=[];return o[0]=Xi(),o[1]=Xi(),o[2]=Xi(),a.mtRaw=Ft(),a.mtRawInv=Ft(),a.mtOverall=Ft(),a.mtOverallInv=Ft(),a.zoom=1,i}return t.prototype.getBoundingRect=function(){return QM(null,this)},t.prototype.getViewRect=function(){return $M(null,this)},t.prototype.getRoamTransform=function(){return Yi(JM(this).trans[1])},t.prototype.dataToPoint=function(e,t,n){var r=t?JM(this).mtRaw:JM(this).mtOverall;return n||=[],r?et(n,e,r):Be(n,e)},t.prototype.pointToData=function(e,t,n){n||=[];var r=JM(this).mtOverallInv;return r?et(n,e,r):Be(n,e)},t.prototype.convertToPixel=function(e,t,n){var r=eN(t);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var r=eN(t);return r===this?r.pointToData(n):null},t.prototype.containPoint=function(e){var t=JM(this);return sn(XM,t.dataRect),ln(XM,XM,t.mtOverall),un(XM,e[0],e[1])},t.dimensions=[`x`,`y`],t})(Ji);var XM=an();function ZM(e){return JM(e).zoom}function QM(e,t){return sn(e||an(),JM(t).dataRect)}function $M(e,t){return sn(e||an(),JM(t).viewRect)}an();function eN(e){var t=e.seriesModel;return t?t.coordinateSystem:null}Xi(),Xi();var tN=function(){function e(){}return e.prototype._hasEncodeRule=function(e){var t=this.getEncode();return t&&t.get(e)!=null},e.prototype.getInitialData=function(e,t){var n,r=t.getComponent(`xAxis`,this.get(`xAxisIndex`)),i=t.getComponent(`yAxis`,this.get(`yAxisIndex`)),a=r.get(`type`),o=i.get(`type`),s,c=e.layout;a===`category`?(c=`horizontal`,n=r.getOrdinalMeta(),s=!this._hasEncodeRule(`x`)):o===`category`&&(c=`vertical`,n=i.getOrdinalMeta(),s=!this._hasEncodeRule(`y`)),c||=o===`time`?`vertical`:`horizontal`,this._layout=c;var l=[`x`,`y`],u=c===`horizontal`?0:1,d=this._baseAxisDim=l[u],f=l[1-u],p=[r,i],m=p[u].get(`type`),h=p[1-u].get(`type`),g=e.data;if(g&&s){var _=[];V(g,function(e,t){var n;U(e)?(n=e.slice(),e.unshift(t)):U(e.value)?(n=L({},e),n.value=n.value.slice(),e.value.unshift(t)):n=e,_.push(n)}),e.data=_}var v=this.defaultValueDimensions,y=[{name:d,type:OC(m),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:[`base`]},{name:f,type:OC(h),dimsDef:v.slice()}];return tj(this,{coordDimensions:y,dimensionsCount:v.length+1,encodeDefaulter:le(Ag,y,this)})},e.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+`Axis`,this.get(e+`AxisIndex`)).axis},e.prototype.getWhiskerBoxesLayout=function(){return this._layout},e}();function nN(e,t){for(var n=t.ends.length,r=0,i=0;i<n;i++)e.contain(t.ends[i][0],t.ends[i][1])&&r++;return r?+(r<n):2}var rN=`candlestick`,iN=function(e){l(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:`open`,defaultTooltip:!0},{name:`close`,defaultTooltip:!0},{name:`lowest`,defaultTooltip:!0},{name:`highest`,defaultTooltip:!0}],n}return t.prototype.getShadowDim=function(){return`open`},t.prototype.brushSelector=function(e,t,n){var r=t.getItemLayout(e);return r&&n.rect(r.brushRect)},t.type=`series.`+rN,t.dependencies=[`xAxis`,`yAxis`,`grid`],t.defaultOption={z:2,coordinateSystem:`cartesian2d`,legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:`#eb5454`,color0:`#47b262`,borderColor:`#eb5454`,borderColor0:`#47b262`,borderColorDoji:null,borderWidth:1},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:`mod`,animationEasing:`linear`,animationDuration:300},t}(hy);te(iN,tN,!0);var aN=[`itemStyle`,`borderColor`],oN=[`itemStyle`,`borderColor0`],sN=[`itemStyle`,`borderColorDoji`],cN=[`itemStyle`,`color`],lN=[`itemStyle`,`color0`];function uN(e,t){return t.get(e>0?cN:lN)}function dN(e,t){return t.get(e===0?sN:e>0?aN:oN)}var fN={seriesType:rN,plan:Ty(),performRawSeries:!0,reset:function(e,t){if(!t.isSeriesFiltered(e))return!e.pipelineContext.large&&{progress:function(e,t){for(var n;(n=e.next())!=null;){var r=t.getItemModel(n),i=t.getItemLayout(n).sign,a=r.getItemStyle();a.fill=uN(i,r),a.stroke=dN(i,r)||a.fill,L(t.ensureUniqueItemVisual(n,`style`),a)}}}}},pN=[`color`,`borderColor`],mN=function(e){l(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,t,n){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,t,n,r){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,t):this._incrementalRenderNormal(e,t)},t.prototype.eachRendered=function(e){Up(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;(this._isLargeDraw==null||t!==this._isLargeDraw)&&(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e){var t=e.getData(),n=this._data,r=this.group,i=t.getLayout(`isSimpleBox`),a=e.get(`clip`,!0),o=e.coordinateSystem,s=o.getArea&&o.getArea(),c=a&&kO(o,!1,e);this._data||r.removeAll();var l=bN(e);t.diff(n).add(function(n){if(t.hasValue(n)){var o=t.getItemLayout(n),u=a?nN(s,o):0;if(u===2)return;var d=_N(o,n,l,!0);np(d,{shape:{points:o.ends}},e,n),AO(u===1,d,c),vN(d,t,n,i),r.add(d),t.setItemGraphicEl(n,d)}}).update(function(o,u){var d=n.getItemGraphicEl(u);if(!t.hasValue(o)){r.remove(d);return}var f=t.getItemLayout(o),p=a?nN(s,f):0;if(p===2){r.remove(d);return}d?(tp(d,{shape:{points:f.ends}},e,o),sp(d)):d=_N(f,o,l),vN(d,t,o,i),AO(p===1,d,c),r.add(d),t.setItemGraphicEl(o,d)}).remove(function(e){var t=n.getItemGraphicEl(e);t&&r.remove(t)}).execute(),this._data=t},t.prototype._renderLarge=function(e){this._clear(),CN(e,this.group);var t=e.get(`clip`,!0)?kO(e.coordinateSystem,!1,e):null;AO(!!t,this.group,t)},t.prototype._incrementalRenderNormal=function(e,t){for(var n=t.getData(),r=n.getLayout(`isSimpleBox`),i=bN(t),a;(a=e.next())!=null;){var o=_N(n.getItemLayout(a),a,i);vN(o,n,a,r),o.incremental=Ts(t),this.group.add(o),this._progressiveEls.push(o)}},t.prototype._incrementalRenderLarge=function(e,t){CN(t,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),AO(!1,this.group,null),this._data=null},t.type=rN,t}(Oy),hN=function(){function e(){}return e}(),gN=function(e){l(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`normalCandlestickBox`,n}return t.prototype.getDefaultShape=function(){return new hN},t.prototype.buildPath=function(e,t){var n=t.points;this.__simpleBox?(e.moveTo(n[4][0],n[4][1]),e.lineTo(n[6][0],n[6][1])):(e.moveTo(n[0][0],n[0][1]),e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]),e.lineTo(n[3][0],n[3][1]),e.closePath(),e.moveTo(n[4][0],n[4][1]),e.lineTo(n[5][0],n[5][1]),e.moveTo(n[6][0],n[6][1]),e.lineTo(n[7][0],n[7][1]))},t}(jl);function _N(e,t,n,r){var i=e.ends;return new gN({shape:{points:r?yN(i,n,e):i},z2:100})}function vN(e,t,n,r){var i=t.getItemModel(n);e.useStyle(t.getItemVisual(n,`style`)),e.style.strokeNoScale=!0;var a=i.getShallow(`cursor`);a&&e.attr(`cursor`,a),e.__simpleBox=r,Cd(e,i);var o=t.getItemLayout(n).sign;V(e.states,function(e,t){var n=i.getModel(t),r=uN(o,n),a=dN(o,n)||r,s=e.style||={};r&&(s.fill=r),a&&(s.stroke=a)});var s=i.getModel(`emphasis`);yd(e,s.get(`focus`),s.get(`blurScope`),s.get(`disabled`))}function yN(e,t,n){return H(e,function(e){return e=e.slice(),e[t]=n.initBaseline,e})}function bN(e){return+(e.getWhiskerBoxesLayout()===`horizontal`)}var xN=function(){function e(){}return e}(),SN=function(e){l(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`largeCandlestickBox`,n}return t.prototype.getDefaultShape=function(){return new xN},t.prototype.buildPath=function(e,t){for(var n=t.points,r=0;r<n.length;)if(this.__sign===n[r++]){var i=n[r++];e.moveTo(i,n[r++]),e.lineTo(i,n[r++])}else r+=3},t}(jl);function CN(e,t,n,r){var i=e.getData(),a=i.getLayout(`largePoints`),o=new SN({shape:{points:a},__sign:1,ignoreCoarsePointer:!0});t.add(o);var s=new SN({shape:{points:a},__sign:-1,ignoreCoarsePointer:!0});t.add(s);var c=new SN({shape:{points:a},__sign:0,ignoreCoarsePointer:!0});t.add(c),wN(1,o,e,i),wN(-1,s,e,i),wN(0,c,e,i),r&&(o.incremental=Ts(e),s.incremental=Ts(e),c.incremental=Ts(e)),n&&n.push(o,s,c)}function wN(e,t,n,r){var i=dN(e,n)||uN(e,n),a=n.getModel(`itemStyle`).getItemStyle(pN);t.useStyle(a),t.style.fill=null,t.style.stroke=i;var o=n.get(`cursor`);o&&t.attr(`cursor`,o)}function TN(e){!e||!U(e.series)||V(e.series,function(e){pe(e)&&e.type===`k`&&(e.type=rN)})}var EN=bs(),DN={seriesType:rN,plan:Ty(),reset:function(e){var t=e.coordinateSystem,n=e.getData(),r=kN(e,n),i=e.getWhiskerBoxesLayout()===`horizontal`?0:1,a=1-i,o=[`x`,`y`],s=n.getDimensionIndex(n.mapDimension(o[i])),c=H(n.mapDimensionsAll(o[a]),n.getDimensionIndex,n),l=c[0],u=c[1],d=c[2],f=c[3];if(n.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),s<0||c.length<4)return;return{progress:e.pipelineContext.large?m:p};function p(e,n){for(var o,c=n.getStore();(o=e.next())!=null;){var p=c.get(s,o),m=c.get(l,o),h=c.get(u,o),g=c.get(d,o),_=c.get(f,o),v=Va(m,h),y=Ha(m,h),b=E(v,p),x=E(y,p),S=E(g,p),C=E(_,p),w=[];D(w,x,0),D(w,b,1),w.push(k(C),k(x),k(S),k(b));var T=!!n.getItemModel(o).get([`itemStyle`,`borderColorDoji`]);n.setItemLayout(o,{sign:ON(c,o,m,h,u,T),initBaseline:m>h?x[a]:b[a],ends:w,brushRect:O(g,_,p)})}function E(e,n){var r=[];return r[i]=n,r[a]=e,isNaN(n)||isNaN(e)?[NaN,NaN]:t.dataToPoint(r)}function D(e,t,n){var a=t.slice(),o=t.slice();a[i]=wp(a[i]+r/2,1,!1),o[i]=wp(o[i]-r/2,1,!0),n?e.push(a,o):e.push(o,a)}function O(e,t,n){var o=E(e,n),s=E(t,n);return o[i]-=r/2,s[i]-=r/2,{x:o[0],y:o[1],width:a?r:s[0]-o[0],height:a?s[1]-o[1]:r}}function k(e){return e[i]=wp(e[i],1),e}}function m(n,r){for(var o=gO(n.count*4),c=0,p,m=[],h=[],g,_=r.getStore(),v=!!e.get([`itemStyle`,`borderColorDoji`]);(g=n.next())!=null;){var y=_.get(s,g),b=_.get(l,g),x=_.get(u,g),S=_.get(d,g),C=_.get(f,g);if(isNaN(y)||isNaN(S)||isNaN(C)){o[c++]=NaN,c+=3;continue}o[c++]=ON(_,g,b,x,u,v),m[i]=y,m[a]=S,p=t.dataToPoint(m,null,h),o[c++]=p?p[0]:NaN,o[c++]=p?p[1]:NaN,m[a]=C,p=t.dataToPoint(m,null,h),o[c++]=p?p[1]:NaN}r.setLayout(`largePoints`,o)}}};function ON(e,t,n,r,i,a){return n>r?-1:n<r?1:a?0:t>0?e.get(i,t-1)<=r?1:-1:1}function kN(e,t){var n=YE(e.getBaseAxis(),{fromStat:{key:Qk(rN)},min:1}).w,r=$a(G(e.get(`barMaxWidth`),n),n),i=$a(G(e.get(`barMinWidth`),1),n),a=e.get(`barWidth`);return a==null?Ha(Va(n/2,r),i):$a(a,n)}function AN(e){EN(e,function(){var t=Qk(rN);XT(e,{key:t,seriesType:rN,getMetrics:eA}),dE(t,Zk(t))})}function jN(e){e.registerChartView(mN),e.registerSeriesModel(iN),e.registerPreprocessor(TN),e.registerVisual(fN),e.registerLayout(DN),AN(e)}var MN={color:`fill`,borderColor:`stroke`},NN={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},PN=es(),FN=function(e){l(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get(`zlevel`,!0),this.currentZ=this.get(`z`,!0)},t.prototype.getInitialData=function(e,t){return fw(null,this)},t.prototype.getDataParams=function(t,n,r){var i=e.prototype.getDataParams.call(this,t,n);return r&&(i.info=PN(r).info),i},t.type=`series.custom`,t.dependencies=[`grid`,`polar`,`geo`,`singleAxis`,`calendar`,`matrix`],t.defaultOption={coordinateSystem:`cartesian2d`,z:2,legendHoverLink:!0,clip:!1},t}(hy);function IN(e,t){return t||=[0,0],H([`x`,`y`],function(n,r){var i=this.getAxis(n),a=t[r],o=e[r]/2;return i.type===`category`?YE(i).w:Math.abs(i.dataToCoord(a-o)-i.dataToCoord(a+o))},this)}function LN(e){var t=e.master.getRect();return{coordSys:{type:`cartesian2d`,x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:ce(IN,e)}}}function RN(e,t){return t||=[0,0],H([0,1],function(n){var r=t[n],i=e[n]/2,a=[],o=[];return a[n]=r-i,o[n]=r+i,a[1-n]=o[1-n]=t[1-n],Math.abs(this.dataToPoint(a)[n]-this.dataToPoint(o)[n])},this)}function zN(e){var t=e.view,n=t.getBoundingRect();return{coordSys:{type:`geo`,x:n.x,y:n.y,width:n.width,height:n.height,zoom:ZM(t)},api:{coord:function(t){return e.dataToPoint(t)},size:ce(RN,e)}}}function BN(e,t){var n=this.getAxis(),r=t instanceof Array?t[0]:t,i=(e instanceof Array?e[0]:e)/2;return n.type===`category`?YE(n).w:Math.abs(n.dataToCoord(r-i)-n.dataToCoord(r+i))}function VN(e){var t=e.getRect();return{coordSys:{type:`singleAxis`,x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:ce(BN,e)}}}function HN(e,t){return t||=[0,0],H([`Radius`,`Angle`],function(n,r){var i=`get`+n+`Axis`,a=this[i](),o=t[r],s=e[r]/2,c=a.type===`category`?YE(a).w:Math.abs(a.dataToCoord(o-s)-a.dataToCoord(o+s));return n===`Angle`&&(c=c*Math.PI/180),c},this)}function UN(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),r=t.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:`polar`,cx:e.cx,cy:e.cy,r:r[1],r0:r[0]},api:{coord:function(r){var i=t.dataToRadius(r[0]),a=n.dataToAngle(r[1]),o=e.coordToPoint([i,a]);return o.push(i,a*Math.PI/180),o},size:ce(HN,e)}}}function WN(e){var t=e.getRect(),n=e.getRangeInfo();return{coordSys:{type:`calendar`,x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(t,n){return e.dataToPoint(t,n)},layout:function(t,n){return e.dataToLayout(t,n)}}}}function GN(e){var t=e.getRect();return{coordSys:{type:`matrix`,x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t,n){return e.dataToPoint(t,n)},layout:function(t,n){return e.dataToLayout(t,n)}}}}var KN={position:[`x`,`y`],scale:[`scaleX`,`scaleY`],origin:[`originX`,`originY`]},qN=oe(KN);re(Zi,function(e,t){return e[t]=1,e},{}),Zi.join(`, `);var JN=[``,`style`,`shape`,`extra`],YN=es();function XN(e,t,n,r,i){var a=e+`Animation`,o=$f(e,r,i)||{},s=YN(t).userDuring;return o.duration>0&&(o.during=s?ce(oP,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),L(o,n[a]),o}function ZN(e,t,n,r){r||={};var i=r.dataIndex,a=r.isInit,o=r.clearStyle,s=n.isAnimationEnabled(),c=YN(e),l=t.style;c.userDuring=t.during;var u={},d={};if(uP(e,t,d),e.type===`compound`)for(var f=e.shape.paths,p=t.shape.paths,m=0;m<p.length;m++){var h=p[m];cP(`shape`,h,f[m])}else cP(`shape`,t,d),cP(`extra`,t,d);if(!a&&s&&(lP(e,t,u),sP(`shape`,e,t,u),sP(`extra`,e,t,u),dP(e,t,l,u)),d.style=l,tP(e,d,o),rP(e,t),s){if(a){var g={};V(JN,function(e){var n=e?t[e]:t;n&&n.enterFrom&&(e&&(g[e]=g[e]||{}),L(e?g[e]:g,n.enterFrom))});var _=XN(`enter`,e,t,n,i);_.duration>0&&e.animateFrom(g,_)}else nP(e,t,i||0,n,u)}QN(e,t),l?e.dirty():e.markRedraw()}function QN(e,t){for(var n=YN(e).leaveToProps,r=0;r<JN.length;r++){var i=JN[r],a=i?t[i]:t;a&&a.leaveTo&&(n||=YN(e).leaveToProps={},i&&(n[i]=n[i]||{}),L(i?n[i]:n,a.leaveTo))}}function $N(e,t,n,r){if(e){var i=e.parent,a=YN(e).leaveToProps;if(a){var o=XN(`update`,e,t,n,0);o.done=function(){i&&i.remove(e),r&&r()},e.animateTo(a,o)}else i&&i.remove(e),r&&r()}}function eP(e){return e===`all`}function tP(e,t,n){var r=t.style;if(!e.isGroup&&r){if(n){e.useStyle({});for(var i=e.animators,a=0;a<i.length;a++){var o=i[a];o.targetName===`style`&&o.changeTarget(e.style)}}e.setStyle(r)}t&&(t.style=null,t&&e.attr(t),t.style=r)}function nP(e,t,n,r,i){if(i){var a=XN(`update`,e,t,r,n);a.duration>0&&e.animateFrom(i,a)}}function rP(e,t){K(t,`silent`)&&(e.silent=t.silent),K(t,`ignore`)&&(e.ignore=t.ignore),e instanceof wc&&K(t,`invisible`)&&(e.invisible=t.invisible),e instanceof jl&&K(t,`autoBatch`)&&(e.autoBatch=t.autoBatch)}var iP={},aP={setTransform:function(e,t){return iP.el[e]=t,this},getTransform:function(e){return iP.el[e]},setShape:function(e,t){var n=iP.el,r=n.shape||={};return r[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){var t=iP.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=iP.el,r=n.style;return r&&(r[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){var t=iP.el.style;if(t)return t[e]},setExtra:function(e,t){var n=iP.el.extra||(iP.el.extra={});return n[e]=t,this},getExtra:function(e){var t=iP.el.extra;if(t)return t[e]}};function oP(){var e=this,t=e.el;if(t){var n=YN(t).userDuring,r=e.userDuring;if(n!==r){e.el=e.userDuring=null;return}iP.el=t,r(aP)}}function sP(e,t,n,r){var i=n[e];if(i){var a=t[e],o;if(a){var s=n.transition,c=i.transition;if(c){if(!o&&(o=r[e]={}),eP(c))L(o,a);else for(var l=Po(c),u=0;u<l.length;u++){var d=l[u],f=a[d];o[d]=f}}else if(eP(s)||B(s,e)>=0){!o&&(o=r[e]={});for(var p=oe(a),u=0;u<p.length;u++){var d=p[u],f=a[d];fP(i[d],f)&&(o[d]=f)}}}}}function cP(e,t,n){var r=t[e];if(r)for(var i=n[e]={},a=oe(r),o=0;o<a.length;o++){var s=a[o];i[s]=$r(r[s])}}function lP(e,t,n){for(var r=t.transition,i=eP(r)?Zi:Po(r||[]),a=0;a<i.length;a++){var o=i[a];o!==`style`&&o!==`shape`&&o!==`extra`&&(n[o]=e[o])}}function uP(e,t,n){for(var r=0;r<qN.length;r++){var i=qN[r],a=KN[i],o=t[i];o&&(n[a[0]]=o[0],n[a[1]]=o[1])}for(var r=0;r<Zi.length;r++){var s=Zi[r];t[s]!=null&&(n[s]=t[s])}}function dP(e,t,n,r){if(n){var i=e.style,a;if(i){var o=n.transition,s=t.transition;if(o&&!eP(o)){var c=Po(o);!a&&(a=r.style={});for(var l=0;l<c.length;l++){var u=c[l],d=i[u];a[u]=d}}else if(e.getAnimationStyleProps&&(eP(s)||eP(o)||B(s,`style`)>=0)){var f=e.getAnimationStyleProps(),p=f?f.style:null;if(p){!a&&(a=r.style={});for(var m=oe(n),l=0;l<m.length;l++){var u=m[l];if(p[u]){var d=i[u];a[u]=d}}}}}}}function fP(e,t){return ne(e)?e!==t:e!=null&&isFinite(e)}var pP=es(),mP=[`percent`,`easing`,`shape`,`style`,`extra`];function hP(e){e.stopAnimation(`keyframe`),e.attr(pP(e))}function gP(e,t,n){if(!(!n.isAnimationEnabled()||!t)){if(U(t)){V(t,function(t){gP(e,t,n)});return}var r=t.keyframes,i=t.duration;if(n&&i==null){var a=$f(`enter`,n,0);i=a&&a.duration}if(!(!r||!i)){var o=pP(e);V(JN,function(n){if(!(n&&!e[n])){var a;r.sort(function(e,t){return e.percent-t.percent}),V(r,function(r){var s=e.animators,c=n?r[n]:r;if(c){var l=oe(c);if(n||(l=ie(l,function(e){return B(mP,e)<0})),l.length){a||(a=e.animate(n,t.loop,!0),a.scope=`keyframe`);for(var u=0;u<s.length;u++)s[u]!==a&&s[u].targetName===a.targetName&&s[u].stopTracks(l);n&&(o[n]=o[n]||{});var d=n?o[n]:o;V(l,function(t){d[t]=((n?e[n]:e)||{})[t]}),a.whenWithKeys(i*r.percent,c,l,r.easing)}}}),a&&a.delay(t.delay||0).duration(i).start(t.easing)}})}}}var _P=`emphasis`,vP=`normal`,yP=`blur`,bP=`select`,xP=[vP,_P,yP,bP],SP={normal:[`itemStyle`],emphasis:[_P,`itemStyle`],blur:[yP,`itemStyle`],select:[bP,`itemStyle`]},CP={normal:[`label`],emphasis:[_P,`label`],blur:[yP,`label`],select:[bP,`label`]},wP=[`x`,`y`],TP=`e\0\0`,EP={normal:{},emphasis:{},blur:{},select:{}},DP={cartesian2d:LN,geo:zN,single:VN,polar:UN,calendar:WN,matrix:GN};function OP(e){return e instanceof jl}function kP(e){return e instanceof wc}function AP(e,t){t.copyTransform(e),kP(t)&&kP(e)&&(t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel,t.invisible=e.invisible,t.ignore=e.ignore,OP(t)&&OP(e)&&t.setShape(e.shape))}var jP=function(e){l(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n,r){this._progressiveEls=null;var i=this._data,a=e.getData(),o=this.group,s=LP(e,a,t,n);i||o.removeAll(),a.diff(i).add(function(t){zP(n,null,t,s(t,r),e,o,a)}).remove(function(t){var n=i.getItemGraphicEl(t);n&&$N(n,PN(n).option,e)}).update(function(t,c){zP(n,i.getItemGraphicEl(c),t,s(t,r),e,o,a)}).execute();var c=e.get(`clip`,!0)?kO(e.coordinateSystem,!1,e):null;c?o.setClipPath(c):o.removeClipPath(),this._data=a},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(e,t,n,r,i){var a=t.getData(),o=LP(t,a,n,r),s=this._progressiveEls=[];function c(e){e.isGroup||(e.incremental=Ts(t),e.ensureState(`emphasis`).hoverLayer=2)}for(var l=e.start;l<e.end;l++){var u=zP(null,null,l,o(l,i),t,this.group,a);u&&(u.traverse(c),s.push(u))}},t.prototype.eachRendered=function(e){Up(this._progressiveEls||this.group,e)},t.prototype.filterForExposedEvent=function(e,t,n,r){var i=t.element;if(i==null||n.name===i)return!0;for(;(n=n.__hostTarget||n.parent)&&n!==this.group;)if(n.name===i)return!0;return!1},t.type=`custom`,t}(Oy);function MP(e){var t=e.type,n;if(t===`path`){var r=e.shape,i=r.width!=null&&r.height!=null?{x:r.x||0,y:r.y||0,width:r.width,height:r.height}:null,a=$P(r);n=_p(a,null,i,r.layout||`center`),PN(n).customPathData=a}else if(t===`image`)n=new Ll({}),PN(n).customImagePath=e.style.image;else if(t===`text`)n=new Xl({});else if(t===`group`)n=new Aa;else if(t===`compoundPath`){var r=e.shape;if(!r||!r.paths){var o=``;Ao(o)}n=new Lf({shape:{paths:H(r.paths,function(e){if(e.type===`path`)return _p(e.shape.pathData,e,null);var t=gp(e.type);return t||Ao(``),new t})}})}else{var s=gp(t);if(!s){var o=``;Ao(o)}n=new s}return PN(n).customGraphicType=t,n.name=e.name,n.z2EmphasisLift=1,n.z2SelectLift=1,n}function NP(e,t,n,r,i,a,o){hP(t);var s=i&&i.normal.cfg;s&&t.setTextConfig(s),r&&r.transition==null&&(r.transition=wP);var c=r&&r.style;if(c){if(t.type===`text`){var l=c;K(l,`textFill`)&&(l.fill=l.textFill),K(l,`textStroke`)&&(l.stroke=l.textStroke)}var u=void 0,d=OP(t)?c.decal:null;e&&d&&(d.dirty=!0,u=Rx(d,e)),c.__decalPattern=u}if(kP(t)&&c){var u=c.__decalPattern;u&&(c.decal=u)}ZN(t,r,a,{dataIndex:n,isInit:o,clearStyle:!0}),gP(t,r.keyframeAnimation,a)}function PP(e,t,n,r,i){var a=t.isGroup?null:t,o=i&&i[e].cfg;if(a){var s=a.ensureState(e);if(r===!1){var c=a.getState(e);c&&(c.style=null)}else s.style=r||null;o&&(s.textConfig=o),Zu(a)}}function FP(e,t,n){if(!e.isGroup){var r=e,i=n.currentZ,a=n.currentZLevel;r.z=i,r.zlevel=a;var o=t.z2;o!=null&&(r.z2=o||0);for(var s=0;s<xP.length;s++)IP(r,t,xP[s])}}function IP(e,t,n){var r=n===vP,i=r?t:GP(t,n),a=i?i.z2:null,o;a!=null&&(o=r?e:e.ensureState(n),o.z2=a||0)}function LP(e,t,n,r){var i=e.get(`renderItem`);if(typeof i==`string`){var a=Nb(i);a&&(i=a)}var o=e.coordinateSystem,s={};o&&(s=o.prepareCustoms?o.prepareCustoms(o):DP[o.type](o));for(var c=z({getWidth:r.getWidth,getHeight:r.getHeight,getZr:r.getZr,getDevicePixelRatio:r.getDevicePixelRatio,value:x,style:C,ordinalRawValue:S,styleEmphasis:w,visual:D,barLayout:O,currentSeriesIndices:k,font:A},s.api||{}),l={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:s.coordSys,dataInsideLength:t.count(),encode:RP(e.getData()),itemPayload:e.get(`itemPayload`)||{}},u,d,f={},p={},m={},h={},g=0;g<xP.length;g++){var _=xP[g];m[_]=e.getModel(SP[_]),h[_]=e.getModel(CP[_])}function v(e){return e===u?d||=t.getItemModel(e):t.getItemModel(e)}function y(e,n){return t.hasItemOption?e===u?f[n]||(f[n]=v(e).getModel(SP[n])):v(e).getModel(SP[n]):m[n]}function b(e,n){return t.hasItemOption?e===u?p[n]||(p[n]=v(e).getModel(CP[n])):v(e).getModel(CP[n]):h[n]}return function(e,n){return u=e,d=null,f={},p={},i&&i(z({dataIndexInside:e,dataIndex:t.getRawIndex(e),actionType:n?n.type:null},l),c)};function x(e,n){return n??=u,t.getStore().get(t.getDimensionIndex(e||0),n)}function S(e,n){n??=u,e||=0;var r=t.getDimensionInfo(e);if(!r){var i=t.getDimensionIndex(e);return i>=0?t.getStore().get(i,n):void 0}var a=t.get(r.name,n),o=r&&r.ordinalMeta;return o?o.categories[a]:a}function C(n,r){r??=u;var i=t.getItemVisual(r,`style`),a=i&&i.fill,o=i&&i.opacity,s=y(r,vP).getItemStyle();a!=null&&(s.fill=a),o!=null&&(s.opacity=o);var c={inheritColor:W(a)?a:q.color.neutral99},l=b(r,vP),d=sm(l,null,c,!1,!0);d.text=l.getShallow(`show`)?G(e.getFormattedLabel(r,vP),tO(t,r)):null;var f=cm(l,c,!1);return E(n,s),s=IO(s,d,f),n&&T(s,n),s.legacy=!0,s}function w(n,r){r??=u;var i=y(r,_P).getItemStyle(),a=b(r,_P),o=sm(a,null,null,!0,!0);o.text=a.getShallow(`show`)?xe(e.getFormattedLabel(r,_P),e.getFormattedLabel(r,vP),tO(t,r)):null;var s=cm(a,null,!0);return E(n,i),i=IO(i,o,s),n&&T(i,n),i.legacy=!0,i}function T(e,t){for(var n in t)K(t,n)&&(e[n]=t[n])}function E(e,t){e&&(e.textFill&&(t.textFill=e.textFill),e.textPosition&&(t.textPosition=e.textPosition))}function D(e,n){if(n??=u,K(MN,e)){var r=t.getItemVisual(n,`style`);return r?r[MN[e]]:null}if(K(NN,e))return t.getItemVisual(n,e)}function O(e){if(o.type===`cartesian2d`)return uA(z({axis:o.getBaseAxis()},e))}function k(){return n.getCurrentSeriesIndices()}function A(e){return hm(e,n)}}function RP(e){var t={};return V(e.dimensions,function(n){var r=e.getDimensionInfo(n);if(!r.isExtraCoord){var i=r.coordDim,a=t[i]=t[i]||[];a[r.coordDimIndex]=e.getDimensionIndex(n)}}),t}function zP(e,t,n,r,i,a,o){if(!r){a.remove(t);return}var s=BP(e,t,n,r,i,a);return s&&o.setItemGraphicEl(n,s),s&&yd(s,r.focus,r.blurScope,r.emphasisDisabled),s}function BP(e,t,n,r,i,a){var o=-1,s=t;t&&VP(t,r,i)&&(o=B(a.childrenRef(),t),t=null);var c=!t,l=t;l?l.clearStates():(l=MP(r),s&&AP(s,l)),r.morph===!1?l.disableMorphing=!0:l.disableMorphing&&(l.disableMorphing=!1),r.tooltipDisabled&&(l.tooltipDisabled=!0),EP.normal.cfg=EP.normal.conOpt=EP.emphasis.cfg=EP.emphasis.conOpt=EP.blur.cfg=EP.blur.conOpt=EP.select.cfg=EP.select.conOpt=null,EP.isLegacy=!1,UP(l,n,r,i,c,EP),HP(l,n,r,i,c),NP(e,l,n,r,EP,i,c),K(r,`info`)&&(PN(l).info=r.info);for(var u=0;u<xP.length;u++){var d=xP[u];if(d!==vP){var f=GP(r,d),p=KP(r,f,d);PP(d,l,f,p,EP)}}return FP(l,r,i),r.type===`group`&&qP(e,l,n,r,i),o>=0?a.replaceAt(l,o):a.add(l),l}function VP(e,t,n){var r=PN(e),i=t.type,a=t.shape,o=t.style;return n.isUniversalTransitionEnabled()||i!=null&&i!==r.customGraphicType||i===`path`&&eF(a)&&$P(a)!==r.customPathData||i===`image`&&K(o,`image`)&&o.image!==r.customImagePath}function HP(e,t,n,r,i){var a=n.clipPath;if(a===!1)e&&e.getClipPath()&&e.removeClipPath();else if(a){var o=e.getClipPath();o&&VP(o,a,r)&&(o=null),o||(o=MP(a),e.setClipPath(o)),NP(null,o,t,a,null,r,i)}}function UP(e,t,n,r,i,a){if(!(e.isGroup||e.type===`compoundPath`)){WP(n,null,a),WP(n,_P,a);var o=a.normal.conOpt,s=a.emphasis.conOpt,c=a.blur.conOpt,l=a.select.conOpt;if(o!=null||s!=null||l!=null||c!=null){var u=e.getTextContent();if(o===!1)u&&e.removeTextContent();else{o=a.normal.conOpt=o||{type:`text`},u?u.clearStates():(u=MP(o),e.setTextContent(u)),NP(null,u,t,o,null,r,i);for(var d=o&&o.style,f=0;f<xP.length;f++){var p=xP[f];if(p!==vP){var m=a[p].conOpt;PP(p,u,m,KP(o,m,p),null)}}d?u.dirty():u.markRedraw()}}}}function WP(e,t,n){var r=t?GP(e,t):e,i=t?KP(e,r,_P):e.style,a=e.type,o=r?r.textConfig:null,s=e.textContent,c=s?t?GP(s,t):s:null;if(i&&(n.isLegacy||NO(i,a,!!o,!!c))){n.isLegacy=!0;var l=PO(i,a,!t);!o&&l.textConfig&&(o=l.textConfig),!c&&l.textContent&&(c=l.textContent)}if(!t&&c){var u=c;!u.type&&(u.type=`text`)}var d=t?n[t]:n.normal;d.cfg=o,d.conOpt=c}function GP(e,t){return t?e?e[t]:null:e}function KP(e,t,n){var r=t&&t.style;return r==null&&n===_P&&e&&(r=e.styleEmphasis),r}function qP(e,t,n,r,i){var a=r.children,o=a?a.length:0,s=r.$mergeChildren,c=s===`byName`||r.diffChildrenByName,l=s===!1;if(!(!o&&!c&&!l)){if(c){YP({api:e,oldChildren:t.children()||[],newChildren:a||[],dataIndex:n,seriesModel:i,group:t});return}l&&t.removeAll();for(var u=0;u<o;u++){var d=a[u],f=t.childAt(u);d?(d.ignore??=!1,BP(e,f,n,d,i,t)):f.ignore=!0}for(var p=t.childCount()-1;p>=u;p--)JP(t,t.childAt(p),i)}}function JP(e,t,n){t&&$N(t,PN(e).option,n)}function YP(e){new wC(e.oldChildren,e.newChildren,XP,XP,e).add(ZP).update(ZP).remove(QP).execute()}function XP(e,t){return(e&&e.name)??TP+t}function ZP(e,t){var n=this.context,r=e==null?null:n.newChildren[e],i=t==null?null:n.oldChildren[t];BP(n.api,i,n.dataIndex,r,n.seriesModel,n.group)}function QP(e){var t=this.context,n=t.oldChildren[e];n&&$N(n,PN(n).option,t.seriesModel)}function $P(e){return e&&(e.pathData||e.d)}function eF(e){return e&&(K(e,`pathData`)||K(e,`d`))}function tF(e){e.registerChartView(jP),e.registerSeriesModel(FN)}var nF=es(),rF=F,iF=ce,aF=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,r){var i=t.get(`value`),a=t.get(`status`);if(this._axisModel=e,this._axisPointerModel=t,this._api=n,!(!r&&this._lastValue===i&&this._lastStatus===a)){this._lastValue=i,this._lastStatus=a;var o=this._group,s=this._handle;if(!a||a===`hide`){o&&o.hide(),s&&s.hide();return}o&&o.show(),s&&s.show();var c={};this.makeElOption(c,i,e,t,n);var l=c.graphicKey;l!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=l;var u=this._moveAnimation=this.determineAnimation(e,t);if(!o)o=this._group=new Aa,this.createPointerEl(o,c,e,t),this.createLabelEl(o,c,e,t),n.getZr().add(o);else{var d=le(oF,t,u);this.updatePointerEl(o,c,d),this.updateLabelEl(o,c,d,t)}uF(o,t,!0),this._renderHandle(i)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get(`animation`),r=e.axis,i=r.type===`category`,a=t.get(`snap`);if(!a&&!i)return!1;if(n===`auto`||n==null){var o=this.animationThreshold;if(i&&YE(r).w>o)return!0;if(a){var s=dM(e).seriesDataCount,c=r.getExtent();return Math.abs(c[0]-c[1])/s>o}return!1}return n===!0},e.prototype.makeElOption=function(e,t,n,r,i){},e.prototype.createPointerEl=function(e,t,n,r){var i=t.pointer;if(i){var a=nF(e).pointerEl=new cp[i.type](rF(t.pointer));e.add(a)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=nF(e).labelEl=new Xl(rF(t.label));e.add(i),cF(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=nF(e).pointerEl;r&&t.pointer&&(r.setStyle(t.pointer.style),n(r,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,r){var i=nF(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),cF(i,r))},e.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,n=this._api.getZr(),r=this._handle,i=t.getModel(`handle`),a=t.get(`status`);if(!i.get(`show`)||!a||a===`hide`){r&&n.remove(r),this._handle=null;return}var o;this._handle||(o=!0,r=this._handle=Np(i.get(`icon`),{cursor:`move`,draggable:!0,onmousemove:function(e){At(e.event)},onmousedown:iF(this._onHandleDragMove,this,0,0),drift:iF(this._onHandleDragMove,this),ondragend:iF(this._onHandleDragEnd,this)}),n.add(r)),uF(r,t,!1),r.setStyle(i.getItemStyle(null,[`color`,`borderColor`,`borderWidth`,`opacity`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`]));var s=i.get(`size`);U(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,Ry(this,`_doDispatchAxisPointer`,i.get(`throttle`)||0,`fixRate`),this._moveHandleToValue(e,o)}},e.prototype._moveHandleToValue=function(e,t){oF(this._axisPointerModel,!t&&this._moveAnimation,this._handle,lF(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(lF(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(lF(r)),nF(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){if(this._handle){var e=this._payloadInfo,t=this._axisModel;this._api.dispatchAction({type:`updateAxisPointer`,x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:t.axis.dim,axisIndex:t.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get(`value`);this._moveHandleToValue(e),this._api.dispatchAction({type:`hideTip`})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,r=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),r&&t.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),zy(this,`_doDispatchAxisPointer`)},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},e}();function oF(e,t,n,r){sF(nF(n).lastProp,r)||(nF(n).lastProp=r,t?tp(n,r,e):(n.stopAnimation(),n.attr(r)))}function sF(e,t){if(pe(e)&&pe(t)){var n=!0;return V(t,function(t,r){n&&=sF(e[r],t)}),!!n}return e===t}function cF(e,t){e[t.get([`label`,`show`])?`show`:`hide`]()}function lF(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function uF(e,t,n){var r=t.get(`z`),i=t.get(`zlevel`);e&&e.traverse(function(e){e.type!==`group`&&(r!=null&&(e.z=r),i!=null&&(e.zlevel=i),e.silent=n)})}function dF(e){var t=e.get(`type`),n=e.getModel(t+`Style`),r;return t===`line`?(r=n.getLineStyle(),r.fill=null):t===`shadow`&&(r=n.getAreaStyle(),r.stroke=null),r}function fF(e,t,n,r,i){var a=mF(n.get(`value`),t.axis,t.ecModel,n.get(`seriesDataIndices`),{precision:n.get([`label`,`precision`]),formatter:n.get([`label`,`formatter`])}),o=n.getModel(`label`),s=Lh(o.get(`padding`)||0),c=o.getFont(),l=sa(a,c),u=i.position,d=l.width+s[1]+s[3],f=l.height+s[0]+s[2],p=i.align;p===`right`&&(u[0]-=d),p===`center`&&(u[0]-=d/2);var m=i.verticalAlign;m===`bottom`&&(u[1]-=f),m===`middle`&&(u[1]-=f/2),pF(u,d,f,r);var h=o.get(`backgroundColor`);(!h||h===`auto`)&&(h=t.get([`axisLine`,`lineStyle`,`color`])),e.label={x:u[0],y:u[1],style:sm(o,{text:a,font:c,fill:o.getTextColor(),padding:s,backgroundColor:h}),z2:10}}function pF(e,t,n,r){var i=r.getWidth(),a=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,a)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function mF(e,t,n,r,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:bT(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};V(r,function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,i=t&&t.getDataParams(r);i&&s.seriesData.push(i)}),W(o)?a=o.replace(`{value}`,a):ue(o)&&(a=o(s))}return a}function hF(e,t,n){var r=Ft();return Bt(r,r,n.rotation),zt(r,r,n.position),Ep([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function gF(e,t,n,r,i,a){var o=Sk.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get([`label`,`margin`]),fF(t,r,i,a,{position:hF(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function _F(e,t,n){return n||=0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function vF(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function yF(e,t,n){return YE(e,{fromStat:{sers:H(t,function(e){return n.getSeriesByIndex(e.seriesIndex)})},min:1}).w}function bF(e,t,n){return[Ha(Va(t[0],t[1]),e-n/2),Va(e+n/2,Ha(t[0],t[1]))]}var xF=function(e){l(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis,o=a.grid,s=r.get(`type`),c=a.getGlobalExtent(),l=SF(o,a).getOtherAxis(a).getGlobalExtent(),u=a.toGlobalCoord(a.dataToCoord(t,!0));if(s&&s!==`none`){var d=dF(r),f=CF[s](a,u,c,l,r.get(`seriesDataIndices`),r.ecModel);f.style=d,e.graphicKey=f.type,e.pointer=f}gF(t,e,Uk(o.getRect(),n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=Uk(t.axis.grid.getRect(),t,{labelInside:!1});r.labelMargin=n.get([`handle`,`margin`]);var i=hF(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,a=i.grid,o=i.getGlobalExtent(!0),s=SF(a,i).getOtherAxis(i).getGlobalExtent(),c=i.dim===`x`?0:1,l=[e.x,e.y];l[c]+=t[c],l[c]=Va(o[1],l[c]),l[c]=Ha(o[0],l[c]);var u=(s[1]+s[0])/2,d=[u,u];return d[c]=l[c],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:d,tooltipOption:[{verticalAlign:`middle`},{align:`center`}][c]}},t}(aF);function SF(e,t){var n={};return n[t.dim+`AxisIndex`]=t.index,e.getCartesian(n)}var CF={line:function(e,t,n,r){return{type:`Line`,subPixelOptimize:!0,shape:_F([t,r[0]],[t,r[1]],wF(e))}},shadow:function(e,t,n,r,i,a){var o=yF(e,i,a),s=r[1]-r[0],c=bF(t,n,o),l=c[0],u=c[1];return{type:`Rect`,shape:vF([l,r[0]],[u-l,s],wF(e))}}};function wF(e){return e.dim===`x`?0:1}var TF=function(e){l(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`axisPointer`,t.defaultOption={show:`auto`,z:50,type:`line`,snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:q.color.border,width:1,type:`dashed`},shadowStyle:{color:q.color.shadowTint},label:{show:!0,formatter:null,precision:`auto`,margin:3,color:q.color.neutral00,padding:[5,7,5,7],backgroundColor:q.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:`M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z`,size:45,margin:50,color:q.color.accent40,throttle:40}},t}(_g),EF=es(),DF=V;function OF(e,t,n){if(!d.node){var r=t.getZr();EF(r).records||(EF(r).records={}),kF(r,t);var i=EF(r).records[e]||(EF(r).records[e]={});i.handler=n}}function kF(e,t){if(EF(e).initialized)return;EF(e).initialized=!0,n(`click`,le(MF,`click`)),n(`mousemove`,le(MF,`mousemove`)),n(`mousewheel`,le(MF,`mousewheel`)),n(`globalout`,jF);function n(n,r){e.on(n,function(n){var i=NF(t);DF(EF(e).records,function(e){e&&r(e,n,i.dispatchAction)}),AF(i.pendings,t)})}}function AF(e,t){var n=e.showTip.length,r=e.hideTip.length,i;n?i=e.showTip[n-1]:r&&(i=e.hideTip[r-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function jF(e,t,n){e.handler(`leave`,null,n)}function MF(e,t,n,r){t.handler(e,n,r)}function NF(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}function PF(e,t){if(!d.node){var n=t.getZr();(EF(n).records||{})[e]&&(EF(n).records[e]=null)}}var FF=function(e){l(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=t.getComponent(`tooltip`),i=e.get(`triggerOn`)||r&&r.get(`triggerOn`)||`mousemove|click|mousewheel`;OF(`axisPointer`,n,function(e,t,n){i!==`none`&&(e===`leave`||i.indexOf(e)>=0)&&n({type:`updateAxisPointer`,currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})})},t.prototype.remove=function(e,t){PF(`axisPointer`,t)},t.prototype.dispose=function(e,t){PF(`axisPointer`,t)},t.type=`axisPointer`,t}(wy);function IF(e,t){var n=[],r=e.seriesIndex,i;if(r==null||!(i=t.getSeriesByIndex(r)))return{point:[]};var a=i.getData(),o=$o(a,e);if(o==null||o<0||U(o))return{point:[]};var s=a.getItemGraphicEl(o),c=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(o)||[];else if(c&&c.dataToPoint){if(e.isStacked){var l=c.getBaseAxis(),u=c.getOtherAxis(l).dim,d=l.dim,f=+(u===`x`||u===`radius`),p=a.mapDimension(d),m=[];m[f]=a.get(p,o),m[1-f]=a.get(a.getCalculationInfo(`stackResultDimension`),o),n=c.dataToPoint(m)||[]}else n=c.dataToPoint(a.getValues(H(c.dimensions,function(e){return a.mapDimension(e)}),o))||[]}else if(s){var h=s.getBoundingRect().clone();h.applyTransform(s.transform),n=[h.x+h.width/2,h.y+h.height/2]}return{point:n,el:s}}var LF=es();function RF(e,t,n){var r=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||ce(n.dispatchAction,n),s=t.getComponent(`axisPointer`).coordSysAxesInfo;if(s){JF(i)&&(i=IF({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var c=JF(i),l=a.axesInfo,u=s.axesInfo,d=r===`leave`||JF(i),f={},p={},m={list:[],map:{}},h={showPointer:le(VF,p),showTooltip:le(HF,m)};V(s.coordSysMap,function(e,t){var n=c||e.containPoint(i);V(s.coordSysAxesInfo[t],function(e,t){var r=e.axis,a=KF(l,e);if(!d&&n&&(!l||a)){var o=a&&a.value;o==null&&!c&&(o=r.pointToData(i)),o!=null&&zF(e,o,h,!1,f)}})});var g={};return V(u,function(e,t){var n=e.linkGroup;n&&!p[t]&&V(n.axesInfo,function(t,r){var i=p[r];if(t!==e&&i){var a=i.value;n.mapper&&(a=e.axis.scale.parse(n.mapper(a,qF(t),qF(e)))),g[e.key]=a}})}),V(g,function(e,t){zF(u[t],e,h,!0,f)}),UF(p,u,f),WF(m,i,e,o),GF(u,o,n),f}}function zF(e,t,n,r,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){n.showPointer(e,t);return}var o=BF(t,e),s=o.payloadBatch,c=o.snapToValue;s[0]&&i.seriesIndex==null&&L(i,s[0]),!r&&e.snap&&a.containData(c)&&c!=null&&(t=c),n.showPointer(e,t,s),n.showTooltip(e,o,c)}}function BF(e,t){var n=t.axis,r=n.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return V(t.seriesModels,function(t,c){var l=t.getData().mapDimensionsAll(r),u,d;if(t.getAxisTooltipData){var f=t.getAxisTooltipData(l,e,n);d=f.dataIndices,u=f.nestestValue}else{if(d=t.indicesOfNearest(r,l[0],e,n.type===`category`?.5:null),!d.length)return;u=t.getData().get(l[0],d[0])}if(wo(u)){var p=e-u,m=Math.abs(p);m<=o&&((m<o||p>=0&&s<0)&&(o=m,s=p,i=u,a.length=0),V(d,function(e){a.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:a,snapToValue:i}}function VF(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function HF(e,t,n,r){var i=n.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var c=t.coordSys.model,l=mM(c),u=e.map[l];u||(u=e.map[l]={coordSysId:c.id,coordSysIndex:c.componentIndex,coordSysType:c.type,coordSysMainType:c.mainType,dataByAxis:[]},e.list.push(u)),u.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get([`label`,`precision`]),formatter:s.get([`label`,`formatter`])},seriesDataIndices:i.slice()})}}function UF(e,t,n){var r=n.axesInfo=[];V(t,function(t,n){var i=t.axisPointerModel.option,a=e[n];a?(!t.useHandle&&(i.status=`show`),i.value=a.value,i.seriesDataIndices=(a.payloadBatch||[]).slice()):!t.useHandle&&(i.status=`hide`),i.status===`show`&&r.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})})}function WF(e,t,n,r){if(JF(t)||!e.list.length){r({type:`hideTip`});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:`showTip`,escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function GF(e,t,n){var r=n.getZr(),i=`axisPointerLastHighlights`,a=LF(r)[i]||{},o=LF(r)[i]={};V(e,function(e,t){var n=e.axisPointerModel.option;n.status===`show`&&e.triggerEmphasis&&V(n.seriesDataIndices,function(e){o[e.seriesIndex+`|`+e.dataIndex]=e})});var s=[],c=[];function l(e){return{seriesIndex:e.seriesIndex,dataIndex:e.dataIndex}}V(a,function(e,t){!o[t]&&c.push(l(e))}),V(o,function(e,t){!a[t]&&s.push(l(e))}),c.length&&n.dispatchAction({type:`downplay`,escapeConnect:!0,notBlur:!0,batch:c}),s.length&&n.dispatchAction({type:`highlight`,escapeConnect:!0,notBlur:!0,batch:s})}function KF(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}function qF(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+`AxisIndex`]=t.componentIndex,n.axisName=n[r+`AxisName`]=t.name,n.axisId=n[r+`AxisId`]=t.id,n}function JF(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function YF(e){gM.registerAxisPointerClass(`CartesianAxisPointer`,xF),e.registerComponentModel(TF),e.registerComponentView(FF),e.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!U(t)&&(e.axisPointer.link=[t])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,t){e.getComponent(`axisPointer`).coordSysAxesInfo=iM(e,t)}}),e.registerAction({type:`updateAxisPointer`,event:`updateAxisPointer`,update:`:updateAxisPointer`},RF)}function XF(e){TE(DM),TE(YF)}function ZF(e,t){var n=e.existing;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),t.parentId==null){var r=t.parentOption;r?t.parentId=r.id:n&&(t.parentId=n.parentId)}t.parentOption=null}function QF(e,t){var n;return V(t,function(t){e[t]!=null&&e[t]!==`auto`&&(n=!0)}),n}function $F(e,t,n){var r=L({},n),i=e[t],a=n.$action||`merge`;a===`merge`?i?(I(i,r,!0),pg(i,r,{ignoreSize:!0}),hg(n,i),nI(n,i),nI(n,i,`shape`),nI(n,i,`style`),nI(n,i,`extra`),n.clipPath=i.clipPath):e[t]=r:a===`replace`?e[t]=r:a===`remove`&&i&&(e[t]=null)}var eI=[`transition`,`enterFrom`,`leaveTo`],tI=eI.concat([`enterAnimation`,`updateAnimation`,`leaveAnimation`]);function nI(e,t,n){if(n&&(!e[n]&&t[n]&&(e[n]={}),e=e[n],t=t[n]),!(!e||!t))for(var r=n?eI:tI,i=0;i<r.length;i++){var a=r[i];e[a]==null&&t[a]!=null&&(e[a]=t[a])}}function rI(e,t){if(e&&(e.hv=t.hv=[QF(t,[`left`,`right`]),QF(t,[`top`,`bottom`])],e.type===`group`)){var n=e,r=t;n.width??=r.width=0,n.height??=r.height=0}}var iI=function(e){l(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.preventAutoZ=!0,n}return t.prototype.mergeOption=function(t,n){var r=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,t,n),this.option.elements=r},t.prototype.optionUpdated=function(e,t){var n=this.option,r=(t?n:e).elements,i=n.elements=t?[]:n.elements,a=[];this._flatten(r,a,null);var o=zo(i,a,`normalMerge`),s=this._elOptionsToUpdate=[];V(o,function(e,t){var n=e.newOption;n&&(s.push(n),ZF(e,n),$F(i,t,n),rI(i[t],n))},this),n.elements=ie(i,function(e){return e&&delete e.$action,e!=null})},t.prototype._flatten=function(e,t,n){V(e,function(e){if(e){n&&(e.parentOption=n),t.push(e);var r=e.children;r&&r.length&&this._flatten(r,t,e),delete e.children}},this)},t.prototype.useElOptionsToUpdate=function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e},t.type=`graphic`,t.defaultOption={elements:[]},t}(_g),aI={path:null,compoundPath:null,group:Aa,image:Ll,text:Xl},oI=es(),sI=function(e){l(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){this._elMap=Ne()},t.prototype.render=function(e,t,n){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,n)},t.prototype._updateElements=function(e){var t=e.useElOptionsToUpdate();if(t){var n=this._elMap,r=this.group,i=e.get(`z`),a=e.get(`zlevel`);V(t,function(t){var o=Jo(t.id,null),s=o==null?null:n.get(o),c=Jo(t.parentId,null),l=c==null?r:n.get(c),u=t.type,d=t.style;u===`text`&&d&&t.hv&&t.hv[1]&&(d.textVerticalAlign=d.textBaseline=d.verticalAlign=d.align=null);var f=t.textContent,p=t.textConfig;if(d&&NO(d,u,!!p,!!f)){var m=PO(d,u,!0);!p&&m.textConfig&&(p=t.textConfig=m.textConfig),!f&&m.textContent&&(f=m.textContent)}var h=fI(t),g=t.$action||`merge`,_=g===`merge`,v=g===`replace`;if(_){var y=!s,b=s;y?b=lI(o,l,t.type,n):(b&&(oI(b).isNew=!1),hP(b)),b&&(ZN(b,h,e,{isInit:y}),dI(b,t,i,a))}else if(v){uI(s,t,n,e);var x=lI(o,l,t.type,n);x&&(ZN(x,h,e,{isInit:!0}),dI(x,t,i,a))}else g===`remove`&&(QN(s,t),uI(s,t,n,e));var S=n.get(o);if(S&&f){if(_){var C=S.getTextContent();C?C.attr(f):S.setTextContent(new Xl(f))}else v&&S.setTextContent(new Xl(f))}if(S){var w=t.clipPath;if(w){var T=w.type,E=void 0,y=!1;if(_){var D=S.getClipPath();y=!D||oI(D).type!==T,E=y?cI(T):D}else v&&(y=!0,E=cI(T));S.setClipPath(E),ZN(E,w,e,{isInit:y}),gP(E,w.keyframeAnimation,e)}var O=oI(S);S.setTextConfig(p),O.option=t,pI(S,e,t),Vp({el:S,componentModel:e,itemName:S.name,itemTooltipOption:t.tooltip}),gP(S,t.keyframeAnimation,e)}})}},t.prototype._relocate=function(e,t){for(var n=e.option.elements,r=this.group,i=this._elMap,a=t.getWidth(),o=t.getHeight(),s=[`x`,`y`],c=0;c<n.length;c++){var l=n[c],u=Jo(l.id,null),d=u==null?null:i.get(u);if(!(!d||!d.isGroup)){var f=d.parent,p=f===r,m=oI(d),h=oI(f);m.width=$a(m.option.width,p?a:h.width)||0,m.height=$a(m.option.height,p?o:h.height)||0}}for(var c=n.length-1;c>=0;c--){var l=n[c],u=Jo(l.id,null),d=u==null?null:i.get(u);if(d){var f=d.parent,h=oI(f),g=f===r?{width:a,height:o}:{width:h.width,height:h.height},_={},v=dg(d,l,g,null,{hv:l.hv,boundingMode:l.bounding},_);if(!oI(d).isNew&&v){for(var y=l.transition,b={},x=0;x<s.length;x++){var S=s[x],C=_[S];y&&(eP(y)||B(y,S)>=0)?b[S]=C:d[S]=C}tp(d,b,e,0)}else d.attr(_)}}},t.prototype._clear=function(){var e=this,t=this._elMap;t.each(function(n){uI(n,oI(n).option,t,e._lastGraphicModel)}),this._elMap=Ne()},t.prototype.dispose=function(){this._clear()},t.type=`graphic`,t}(wy);function cI(e){var t=new(K(aI,e)?aI[e]:gp(e))({});return oI(t).type=e,t}function lI(e,t,n,r){var i=cI(n);return t.add(i),r.set(e,i),oI(i).id=e,oI(i).isNew=!0,i}function uI(e,t,n,r){e&&e.parent&&(e.type===`group`&&e.traverse(function(e){uI(e,t,n,r)}),$N(e,t,r),n.removeKey(oI(e).id))}function dI(e,t,n,r){e.isGroup||V([[`cursor`,wc.prototype.cursor],[`zlevel`,r||0],[`z`,n||0],[`z2`,0]],function(n){var r=n[0];K(t,r)?e[r]=G(t[r],n[1]):e[r]??(e[r]=n[1])}),V(oe(t),function(n){if(n.indexOf(`on`)===0){var r=t[n];e[n]=ue(r)?r:null}}),K(t,`draggable`)&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function fI(e){return e=L({},e),V([`id`,`parentId`,`$action`,`hv`,`bounding`,`textContent`,`clipPath`].concat(tg),function(t){delete e[t]}),e}function pI(e,t,n){var r=uu(e).eventData;!e.silent&&!e.ignore&&!r&&(r=uu(e).eventData={componentType:`graphic`,componentIndex:t.componentIndex,name:e.name}),r&&(r.info=n.info)}function mI(e){e.registerComponentModel(iI),e.registerComponentView(sI),e.registerPreprocessor(function(e){var t=e.graphic;U(t)?e.graphic=!t[0]||!t[0].elements?[{elements:t}]:[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}function hI(e,t){var n=Lh(t.get(`padding`)),r=t.getItemStyle([`color`,`opacity`]);return r.fill=t.get(`backgroundColor`),new Gl({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get(`borderRadius`)},style:r,silent:!0,z2:-1})}var gI=function(e){l(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`tooltip`,t.dependencies=[`axisPointer`],t.defaultOption={z:60,show:!0,showContent:!0,trigger:`item`,triggerOn:`mousemove|click|mousewheel`,alwaysShowContent:!1,renderMode:`auto`,confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:q.color.neutral00,shadowBlur:10,shadowColor:`rgba(0, 0, 0, .2)`,shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:q.color.border,padding:null,extraCssText:``,axisPointer:{type:`line`,axis:`auto`,animation:`auto`,animationDurationUpdate:200,animationEasingUpdate:`exponentialOut`,crossStyle:{color:q.color.borderShade,width:1,type:`dashed`,textStyle:{}}},textStyle:{color:q.color.tertiary,fontSize:14}},t}(_g);function _I(e){var t=e.get(`confine`);return t==null?e.get(`renderMode`)===`richText`:!!t}function vI(e){if(d.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n<r;n++)if(e[n]in t)return e[n]}}var yI=vI([`transform`,`webkitTransform`,`OTransform`,`MozTransform`,`msTransform`]),bI=vI([`webkitTransition`,`transition`,`OTransition`,`MozTransition`,`msTransition`]);function xI(e,t){if(!e)return t;t=Ih(t,!0);var n=e.indexOf(t);return e=n===-1?t:`-`+e.slice(0,n)+`-`+t,e.toLowerCase()}function SI(e,t){var n=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return n?t?n[t]:n:null}var CI=xI(bI,`transition`),wI=xI(yI,`transform`),TI=`position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;`+(d.transform3dSupported?`will-change:transform;`:``);function EI(e){return e=e===`left`?`right`:e===`right`?`left`:e===`top`?`bottom`:`top`,e}function DI(e,t,n){if(!W(n)||n===`inside`)return``;var r=e.get(`backgroundColor`),i=e.get(`borderWidth`);t=Uh(t);var a=EI(n),o=Math.max(Math.round(i)*1.5,6),s=``,c=wI+`:`,l;B([`left`,`right`],a)>-1?(s+=`top:50%`,c+=`translateY(-50%) rotate(`+(l=a===`left`?-225:-45)+`deg)`):(s+=`left:50%`,c+=`translateX(-50%) rotate(`+(l=a===`top`?225:45)+`deg)`);var u=l*Math.PI/180,d=o+i,f=d*Math.abs(Math.cos(u))+d*Math.abs(Math.sin(u)),p=Math.round(((f-Math.SQRT2*i)/2+Math.SQRT2*i-(f-d)/2)*100)/100;s+=`;`+a+`:-`+p+`px`;var m=t+` solid `+i+`px;`;return`<div style="`+[`position:absolute;width:`+o+`px;height:`+o+`px;z-index:-1;`,s+`;`+c+`;`,`border-bottom:`+m,`border-right:`+m,`background-color:`+r+`;`].join(``)+`"></div>`}function OI(e,t,n){var r=`cubic-bezier(0.23,1,0.32,1)`,i=``,a=``;return n&&(i=` `+e/2+`s `+r,a=`opacity`+i+`,visibility`+i),t||(i=` `+e+`s `+r,a+=(a.length?`,`:``)+(d.transformSupported?``+wI+i:`,left`+i+`,top`+i)),CI+`:`+a}function kI(e,t,n){var r=e.toFixed(0)+`px`,i=t.toFixed(0)+`px`;if(!d.transformSupported)return n?`top:`+i+`;left:`+r+`;`:[[`top`,i],[`left`,r]];var a=d.transform3dSupported,o=`translate`+(a?`3d`:``)+`(`+r+`,`+i+(a?`,0`:``)+`)`;return n?`top:0;left:0;`+wI+`:`+o+`;`:[[`top`,0],[`left`,0],[yI,o]]}function AI(e){var t=[],n=e.get(`fontSize`),r=e.getTextColor();r&&t.push(`color:`+r),t.push(`font:`+e.getFont());var i=G(e.get(`lineHeight`),Math.round(n*3/2));n&&t.push(`line-height:`+i+`px`);var a=e.get(`textShadowColor`),o=e.get(`textShadowBlur`)||0,s=e.get(`textShadowOffsetX`)||0,c=e.get(`textShadowOffsetY`)||0;return a&&o&&t.push(`text-shadow:`+s+`px `+c+`px `+o+`px `+a),V([`decoration`,`align`],function(n){var r=e.get(n);r&&t.push(`text-`+n+`:`+r)}),t.join(`;`)}function jI(e,t,n,r){var i=[],a=e.get(`transitionDuration`),o=e.get(`backgroundColor`),s=e.get(`shadowBlur`),c=e.get(`shadowColor`),l=e.get(`shadowOffsetX`),u=e.get(`shadowOffsetY`),d=e.getModel(`textStyle`),f=ly(e,`html`),p=l+`px `+u+`px `+s+`px `+c;return i.push(`box-shadow:`+p),t&&a>0&&i.push(OI(a,n,r)),o&&i.push(`background-color:`+o),V([`width`,`color`,`radius`],function(t){var n=`border-`+t,r=Ih(n),a=e.get(r);a!=null&&i.push(n+`:`+a+(t===`color`?``:`px`))}),i.push(AI(d)),f!=null&&i.push(`padding:`+Lh(f).join(`px `)+`px`),i.join(`;`)+`;`}function MI(e,t,n,r,i){var a=t&&t.painter;if(n){var o=a&&a.getViewportRoot();o&&dt(e,o,n,r,i)}else{e[0]=r,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var NI=function(){function e(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,d.wxa)return null;var n=document.createElement(`div`);n.domBelongToZr=!0,this.el=n;var r=this._zr=e.getZr(),i=t.appendTo,a=i&&(W(i)?document.querySelector(i):ge(i)?i:ue(i)&&i(e.getDom()));MI(this._styleCoord,r,a,e.getWidth()/2,e.getHeight()/2),(a||e.getDom()).appendChild(n),this._api=e,this._container=a;var o=this;n.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},n.onmousemove=function(e){if(e||=window.event,!o._enterable){var t=r.handler;Et(r.painter.getViewportRoot(),e,!0),t.dispatch(`mousemove`,e)}},n.onmouseleave=function(){o._inContent=!1,o._enterable&&o._show&&o.hideLater(o._hideDelay)}}return e.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=SI(t,`position`),r=t.style;r.position!==`absolute`&&n!==`absolute`&&(r.position=`relative`)}var i=e.get(`alwaysShowContent`);i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=e.get(`displayTransition`)&&e.get(`transitionDuration`)>0,this.el.className=e.get(`className`)||``},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=TI+jI(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+kI(i[0],i[1],!0)+(`border-color:`+Uh(t)+`;`)+(e.get(`extraCssText`)||``)+(`;pointer-events:`+(this._enterable?`auto`:`none`)):r.display=`none`,this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,r,i){var a=this.el;if(e==null){a.innerHTML=``;return}var o=``;if(W(i)&&n.get(`trigger`)===`item`&&!_I(n)&&(o=DI(n,r,i)),W(e))a.innerHTML=e+o;else if(e){a.innerHTML=``,U(e)||(e=[e]);for(var s=0;s<e.length;s++)ge(e[s])&&e[s].parentNode!==a&&a.appendChild(e[s]);if(o&&a.childNodes.length){var c=document.createElement(`div`);c.innerHTML=o,a.appendChild(c)}}},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},e.prototype.moveTo=function(e,t){if(this.el){var n=this._styleCoord;if(MI(n,this._zr,this._container,e,t),n[0]!=null&&n[1]!=null){var r=this.el.style;V(kI(n[0],n[1]),function(e){r[e[0]]=e[1]})}}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){var e=this,t=this.el.style;this._enableDisplayTransition?(t.visibility=`hidden`,t.opacity=`0`):t.display=`none`,d.transform3dSupported&&(t.willChange=``),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},e.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(ce(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;ft(e&&e.painter&&e.painter.getViewportRoot(),this._container);var t=this.el;if(t){t.onmouseenter=t.onmousemove=t.onmouseleave=null;var n=t.parentNode;n&&n.removeChild(t)}this.el=this._container=null},e}(),PI=function(){function e(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),LI(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return e.prototype.update=function(e){var t=e.get(`alwaysShowContent`);t&&this._moveIfResized(),this._alwaysShowContent=t},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(e,t,n,r,i){var a=this;pe(e)&&Ao(``),this.el&&this._zr.remove(this.el);var o=n.getModel(`textStyle`);this.el=new Xl({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:o.get(`textShadowColor`),fill:n.get([`textStyle`,`color`]),padding:ly(n,`richText`),verticalAlign:`top`,align:`left`},z:n.get(`z`)}),V([`backgroundColor`,`borderRadius`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],function(e){a.el.style[e]=n.get(e)}),V([`textShadowBlur`,`textShadowOffsetX`,`textShadowOffsetY`],function(e){a.el.style[e]=o.get(e)||0}),this._zr.add(this.el);var s=this;this.el.on(`mouseover`,function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0}),this.el.on(`mouseout`,function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1})},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),n=II(e.style);return[t.width+n.left+n.right,t.height+n.top+n.bottom]},e.prototype.moveTo=function(e,t){var n=this.el;if(n){var r=this._styleCoord;LI(r,this._zr,e,t),e=r[0],t=r[1];var i=n.style,a=FI(i.borderWidth||0),o=II(i);n.x=e+a+o.left,n.y=t+a+o.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(ce(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function FI(e){return Math.max(0,e)}function II(e){var t=FI(e.shadowBlur||0),n=FI(e.shadowOffsetX||0),r=FI(e.shadowOffsetY||0);return{left:FI(t-n),right:FI(t+n),top:FI(t-r),bottom:FI(t+r)}}function LI(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var RI=new Gl({shape:{x:-1,y:-1,width:2,height:2}}),zI=function(e){l(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(e,t){if(!(d.node||!t.getDom())){var n=e.getComponent(`tooltip`),r=this._renderMode=ls(n.get(`renderMode`));this._tooltipContent=r===`richText`?new PI(t):new NI(t,{appendTo:n.get(`appendToBody`,!0)?`body`:n.get(`appendTo`,!0)})}},t.prototype.render=function(e,t,n){if(!(d.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=n;var r=this._tooltipContent;r.update(e),r.setEnterable(e.get(`enterable`)),this._initGlobalListener(),this._keepShow(),this._renderMode!==`richText`&&e.get(`transitionDuration`)?Ry(this,`_updatePosition`,50,`fixRate`):zy(this,`_updatePosition`)}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel.get(`triggerOn`);OF(`itemTooltip`,this._api,ce(function(t,n,r){e!==`none`&&(e.indexOf(t)>=0?this._tryShow(n,r):t===`leave`&&this._hide(r))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,r=e.get(`triggerOn`);if(e.get(`trigger`)!==`axis`&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&r!==`none`&&r!==`click`){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&i.manuallyShowTip(e,t,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,t,n,r){if(!(r.from===this.uid||d.node||!n.getDom())){var i=VI(r,n);this._ticket=``;var a=r.dataByCoordSys,o=KI(r,t,n);if(o){var s=o.el.getBoundingRect().clone();s.applyTransform(o.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:o.el,position:r.position,positionDefault:`bottom`},i)}else if(r.tooltip&&r.x!=null&&r.y!=null){var c=RI;c.x=r.x,c.y=r.y,c.update(),uu(c).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:c},i)}else if(a)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:a,tooltipOption:r.tooltipOption},i);else if(r.seriesIndex!=null){if(this._manuallyAxisShowTip(e,t,n,r))return;var l=IF(r,t),u=l.point[0],f=l.point[1];u!=null&&f!=null&&this._tryShow({offsetX:u,offsetY:f,target:l.el,position:r.position,positionDefault:`bottom`},i)}else r.x!=null&&r.y!=null&&(n.dispatchAction({type:`updateAxisPointer`,x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},t.prototype.manuallyHideTip=function(e,t,n,r){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get(`hideDelay`)),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,r.from!==this.uid&&this._hide(VI(r,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,r){var i=r.seriesIndex,a=r.dataIndex,o=t.getComponent(`axisPointer`).coordSysAxesInfo;if(i!=null&&a!=null&&o!=null){var s=t.getSeriesByIndex(i);if(s&&BI([s.getData().getItemModel(a),s,(s.coordinateSystem||{}).model],this._tooltipModel).get(`trigger`)===`axis`)return n.dispatchAction({type:`updateAxisPointer`,seriesIndex:i,dataIndex:a,position:r.position}),!0}},t.prototype._tryShow=function(e,t){var n=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,e);else if(n){if(uu(n).ssrType===`legend`)return;this._lastDataByCoordSys=null,this._cbParamsList=null;var i,a;Eb(n,function(e){if(e.tooltipDisabled)return i=a=null,!0;i||a||(uu(e).dataIndex==null?uu(e).tooltipConfig!=null&&(a=e):i=e)},!0),i?this._showSeriesItemTooltip(e,i,t):a?this._showComponentItemTooltip(e,a,t):this._hide(t)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get(`showDelay`);t=ce(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,r=this._tooltipModel,i=[t.offsetX,t.offsetY],a=BI([t.tooltipOption],r),o=this._renderMode,s=[],c=Yv(`section`,{blocks:[],noHeader:!0}),l=[],u=new uy;V(e,function(e){V(e.dataByAxis,function(e){var t=n.getComponent(e.axisDim+`Axis`,e.axisIndex),i=e.value,a=t.axis,d=a.scale.parse(i);if(!(!t||i==null)){var f=mF(i,a,n,e.seriesDataIndices,e.valueLabelOpt),p=Yv(`section`,{header:f,noHeader:!Te(f),sortBlocks:!0,blocks:[]});c.blocks.push(p),V(e.seriesDataIndices,function(i){var a=n.getSeriesByIndex(i.seriesIndex),c=i.dataIndexInside,m=a.getDataParams(c);if(!(m.dataIndex<0)){m.axisDim=e.axisDim,m.axisIndex=e.axisIndex,m.axisType=e.axisType,m.axisId=e.axisId,m.axisValue=bT(t.axis,{value:d}),m.axisValueLabel=f,m.marker=u.makeTooltipMarker(`item`,Uh(m.color),o);var h=dv(a.formatTooltip(c,!0,null)),g=h.frag;if(g){var _=BI([a],r).get(`valueFormatter`);p.blocks.push(_?L({valueFormatter:_},g):g)}h.text&&l.push(h.text),s.push(m)}})}})}),c.blocks.reverse(),l.reverse();var d=t.position,f=ty(c,u,o,a.get(`order`),n.get(`useUTC`),a.get(`textStyle`));f&&l.unshift(f);var p=o===`richText`?`
15
+
16
+ `:`<br/>`,m=l.join(p);this._showOrMove(a,function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(a,d,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(a,m,s,Math.random()+``,i[0],i[1],d,null,u)})},t.prototype._showSeriesItemTooltip=function(e,t,n){var r=this._ecModel,i=uu(t),a=i.seriesIndex,o=r.getSeriesByIndex(a),s=i.dataModel||o,c=i.dataIndex,l=i.dataType,u=s.getData(l),d=this._renderMode,f=e.positionDefault,p=BI([u.getItemModel(c),s,o&&(o.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),m=p.get(`trigger`);if(m==null||m===`item`){var h=s.getDataParams(c,l),g=new uy;h.marker=g.makeTooltipMarker(`item`,Uh(h.color),d);var _=dv(s.formatTooltip(c,!1,l)),v=p.get(`order`),y=p.get(`valueFormatter`),b=_.frag,x=b?ty(y?L({valueFormatter:y},b):b,g,d,v,r.get(`useUTC`),p.get(`textStyle`)):_.text,S=`item_`+s.name+`_`+c;this._showOrMove(p,function(){this._showTooltipContent(p,x,h,S,e.offsetX,e.offsetY,e.position,e.target,g)}),n({type:`showTip`,dataIndexInside:c,dataIndex:u.getRawIndex(c),seriesIndex:a,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var r=this._renderMode===`html`,i=uu(t),a=i.tooltipConfig.option||{},o=a.encodeHTMLContent;if(W(a)){var s=a;a={content:s,formatter:s},o=!0}o&&r&&a.content&&(a=F(a),a.content=yt(a.content));var c=[a],l=this._ecModel.getComponent(i.componentMainType,i.componentIndex);l&&c.push(l),c.push({formatter:a.content});var u=e.positionDefault,d=BI(c,this._tooltipModel,u?{position:u}:null),f=d.get(`content`),p=Math.random()+``,m=new uy;this._showOrMove(d,function(){var n=F(d.get(`formatterParams`)||{});this._showTooltipContent(d,f,n,p,e.offsetX,e.offsetY,e.position,t,m)}),n({type:`showTip`,from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,r,i,a,o,s,c){if(this._ticket=``,!(!e.get(`showContent`)||!e.get(`show`))){var l=this._tooltipContent;l.setEnterable(e.get(`enterable`));var u=e.get(`formatter`);o||=e.get(`position`);var d=t,f=this._getNearestPoint([i,a],n,e.get(`trigger`),e.get(`borderColor`),e.get(`defaultBorderColor`,!0)).color;if(u){if(W(u)){var p=e.ecModel.get(`useUTC`),m=U(n)?n[0]:n,h=m&&m.axisType&&m.axisType.indexOf(`time`)>=0;d=u,h&&(d=_h(m.axisValue,d,p)),d=Vh(d,n,!0)}else if(ue(u)){var g=ce(function(t,r){t===this._ticket&&(l.setContent(r,c,e,f,o),this._updatePosition(e,o,i,a,l,n,s))},this);this._ticket=r,d=u(n,r,g)}else d=u}l.setContent(d,c,e,f,o),l.show(e,f),this._updatePosition(e,o,i,a,l,n,s)}},t.prototype._getNearestPoint=function(e,t,n,r,i){if(n===`axis`||U(t))return{color:r||i};if(!U(t))return{color:r||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,r,i,a,o){var s=this._api.getWidth(),c=this._api.getHeight();t||=e.get(`position`);var l=i.getSize(),u=e.get(`align`),d=e.get(`verticalAlign`),f=o&&o.getBoundingRect().clone();if(o&&f.applyTransform(o.transform),ue(t)&&(t=t([n,r],a,i.el,f,{viewSize:[s,c],contentSize:l.slice()})),U(t))n=$a(t[0],s),r=$a(t[1],c);else if(pe(t)){var p=t;p.width=l[0],p.height=l[1];var m=cg(p,{width:s,height:c});n=m.x,r=m.y,u=null,d=null}else if(W(t)&&o){var h=WI(t,f,l,e.get(`borderWidth`));n=h[0],r=h[1]}else{var h=HI(n,r,i,s,c,u?null:20,d?null:20);n=h[0],r=h[1]}if(u&&(n-=GI(u)?l[0]/2:u===`right`?l[0]:0),d&&(r-=GI(d)?l[1]/2:d===`bottom`?l[1]:0),_I(e)){var h=UI(n,r,i,s,c);n=h[0],r=h[1]}i.moveTo(n,r)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===e.length;return i&&V(n,function(n,a){var o=n.dataByAxis||[],s=(e[a]||{}).dataByAxis||[];i&&=o.length===s.length,i&&V(o,function(e,n){var a=s[n]||{},o=e.seriesDataIndices||[],c=a.seriesDataIndices||[];i=i&&e.value===a.value&&e.axisType===a.axisType&&e.axisId===a.axisId&&o.length===c.length,i&&V(o,function(e,t){var n=c[t];i=i&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex}),r&&V(e.seriesDataIndices,function(e){var n=e.seriesIndex,a=t[n],o=r[n];a&&o&&o.data!==a.data&&(i=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=t,!!i},t.prototype._hide=function(e){this._lastDataByCoordSys=null,this._cbParamsList=null,e({type:`hideTip`,from:this.uid})},t.prototype.dispose=function(e,t){d.node||!t.getDom()||(zy(this,`_updatePosition`),this._tooltipContent.dispose(),PF(`itemTooltip`,t),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},t.type=`tooltip`,t}(wy);function BI(e,t,n){var r=t.ecModel,i;n?(i=new Am(n,r,r),i=new Am(t.option,i,r)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof Am&&(o=o.get(`tooltip`,!0)),W(o)&&(o={formatter:o}),o&&(i=new Am(o,i,r)))}return i}function VI(e,t){return e.dispatchAction||ce(t.dispatchAction,t)}function HI(e,t,n,r,i,a,o){var s=n.getSize(),c=s[0],l=s[1];return a!=null&&(e+c+a+2>r?e-=c+a:e+=a),o!=null&&(t+l+o>i?t-=l+o:t+=o),[e,t]}function UI(e,t,n,r,i){var a=n.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,r)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function WI(e,t,n,r){var i=n[0],a=n[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,c=0,l=t.width,u=t.height;switch(e){case`inside`:s=t.x+l/2-i/2,c=t.y+u/2-a/2;break;case`top`:s=t.x+l/2-i/2,c=t.y-a-o;break;case`bottom`:s=t.x+l/2-i/2,c=t.y+u+o;break;case`left`:s=t.x-i-o,c=t.y+u/2-a/2;break;case`right`:s=t.x+l+o,c=t.y+u/2-a/2}return[s,c]}function GI(e){return e===`center`||e===`middle`}function KI(e,t,n){var r=rs(e).queryOptionMap,i=r.keys()[0];if(!(!i||i===`series`)){var a=as(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a){var o=n.getViewOfComponentModel(a),s;if(o.group.traverse(function(t){var n=uu(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0}),s)return{componentMainType:i,componentIndex:a.componentIndex,el:s}}}}function qI(e){TE(YF),e.registerComponentModel(gI),e.registerComponentView(zI),e.registerAction({type:`showTip`,event:`showTip`,update:`tooltip:manuallyShowTip`},Le),e.registerAction({type:`hideTip`,event:`hideTip`,update:`tooltip:manuallyHideTip`},Le)}var JI=function(e){l(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:`box`,ignoreSize:!0},n}return t.type=`title`,t.defaultOption={z:6,show:!0,text:``,target:`blank`,subtext:``,subtarget:`blank`,left:`center`,top:q.size.m,backgroundColor:q.color.transparent,borderColor:q.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:`bold`,color:q.color.primary},subtextStyle:{fontSize:12,color:q.color.quaternary}},t}(_g),YI=function(e){l(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get(`show`)){var r=this.group,i=e.getModel(`textStyle`),a=e.getModel(`subtextStyle`),o=e.get(`textAlign`),s=G(e.get(`textBaseline`),e.get(`textVerticalAlign`)),c=new Xl({style:sm(i,{text:e.get(`text`),fill:i.getTextColor()},{disableBox:!0}),z2:10}),l=c.getBoundingRect(),u=e.get(`subtext`),d=new Xl({style:sm(a,{text:u,fill:a.getTextColor(),y:l.height+e.get(`itemGap`),verticalAlign:`top`},{disableBox:!0}),z2:10}),f=e.get(`link`),p=e.get(`sublink`),m=e.get(`triggerEvent`,!0);c.silent=!f&&!m,d.silent=!p&&!m,f&&c.on(`click`,function(){Wh(f,`_`+e.get(`target`))}),p&&d.on(`click`,function(){Wh(p,`_`+e.get(`subtarget`))}),uu(c).eventData=uu(d).eventData=m?{componentType:`title`,componentIndex:e.componentIndex}:null,r.add(c),u&&r.add(d);var h=r.getBoundingRect(),g=e.getBoxLayoutParams();g.width=h.width,g.height=h.height;var _=cg(g,ug(e,n).refContainer,e.get(`padding`));o||(o=e.get(`left`)||e.get(`right`),o===`middle`&&(o=`center`),o===`right`?_.x+=_.width:o===`center`&&(_.x+=_.width/2)),s||(s=e.get(`top`)||e.get(`bottom`),s===`center`&&(s=`middle`),s===`bottom`?_.y+=_.height:s===`middle`&&(_.y+=_.height/2),s||=`top`),r.x=_.x,r.y=_.y,r.markRedraw();var v={align:o,verticalAlign:s};c.setStyle(v),d.setStyle(v),h=r.getBoundingRect();var y=_.margin,b=e.getItemStyle([`color`,`opacity`]);b.fill=e.get(`backgroundColor`);var x=new Gl({shape:{x:h.x-y[3],y:h.y-y[0],width:h.width+y[1]+y[3],height:h.height+y[0]+y[2],r:e.get(`borderRadius`)},style:b,subPixelOptimize:!0,silent:!0});r.add(x)}},t.type=`title`,t}(wy);function XI(e){e.registerComponentModel(JI),e.registerComponentView(YI)}var ZI=function(e,t){if(t===`all`)return{type:`all`,title:e.getLocaleModel().get([`legend`,`selector`,`all`])};if(t===`inverse`)return{type:`inverse`,title:e.getLocaleModel().get([`legend`,`selector`,`inverse`])}},QI=function(e){l(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:`box`,ignoreSize:!0},n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},t.prototype._updateSelector=function(e){var t=e.selector,n=this.ecModel;t===!0&&(t=e.selector=[`all`,`inverse`]),U(t)&&V(t,function(e,r){W(e)&&(e={type:e}),t[r]=I(e,ZI(n,e.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get(`selectedMode`)===`single`){for(var t=!1,n=0;n<e.length;n++){var r=e[n].get(`name`);if(this.isSelected(r)){this.select(r),t=!0;break}}!t&&this.select(e[0].get(`name`))}},t.prototype._updateData=function(e){var t=[],n=[];e.eachRawSeries(function(r){var i=r.name;n.push(i);var a;if(r.legendVisualProvider){var o=r.legendVisualProvider.getAllNames();e.isSeriesFiltered(r)||(n=n.concat(o)),o.length?t=t.concat(o):a=!0}else a=!0;a&&Yo(r)&&t.push(r.name)}),this._availableNames=n;var r=this.get(`data`)||t,i=Ne(),a=H(r,function(e){return(W(e)||fe(e))&&(e={name:e}),i.get(e.name)?null:(i.set(e.name,!0),new Am(e,this,this.ecModel))},this);this._data=ie(a,function(e){return!!e})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var t=this.option.selected;if(this.get(`selectedMode`)===`single`){var n=this._data;V(n,function(e){t[e.get(`name`)]=!1})}t[e]=!0},t.prototype.unSelect=function(e){this.get(`selectedMode`)!==`single`&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var t=this.option.selected;t.hasOwnProperty(e)||(t[e]=!0),this[t[e]?`unSelect`:`select`](e)},t.prototype.allSelect=function(){var e=this._data,t=this.option.selected;V(e,function(e){t[e.get(`name`,!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,t=this.option.selected;V(e,function(e){var n=e.get(`name`,!0);t.hasOwnProperty(n)||(t[n]=!0),t[n]=!t[n]})},t.prototype.isSelected=function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&B(this._availableNames,e)>=0},t.prototype.getOrient=function(){return this.get(`orient`)===`vertical`?{index:1,name:`vertical`}:{index:0,name:`horizontal`}},t.type=`legend.plain`,t.dependencies=[`series`],t.defaultOption={z:4,show:!0,orient:`horizontal`,left:`center`,bottom:q.size.m,align:`auto`,backgroundColor:q.color.transparent,borderColor:q.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:`inherit`,symbolKeepAspect:!0,inactiveColor:q.color.disabled,inactiveBorderColor:q.color.disabled,inactiveBorderWidth:`auto`,itemStyle:{color:`inherit`,opacity:`inherit`,borderColor:`inherit`,borderWidth:`auto`,borderCap:`inherit`,borderJoin:`inherit`,borderDashOffset:`inherit`,borderMiterLimit:`inherit`},lineStyle:{width:`auto`,color:`inherit`,inactiveColor:q.color.disabled,inactiveWidth:2,opacity:`inherit`,type:`inherit`,cap:`inherit`,join:`inherit`,dashOffset:`inherit`,miterLimit:`inherit`},textStyle:{color:q.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:`sans-serif`,color:q.color.tertiary,borderWidth:1,borderColor:q.color.border},emphasis:{selectorLabel:{show:!0,color:q.color.quaternary}},selectorPosition:`auto`,selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t}(_g),$I=le,eL=V,tL=Aa,nL=function(e){l(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return t.prototype.init=function(){this.group.add(this._contentGroup=new tL),this.group.add(this._selectorGroup=new tL),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get(`show`,!0)){var i=e.get(`align`),a=e.get(`orient`);(!i||i===`auto`)&&(i=e.get(`left`)===`right`&&a===`vertical`?`right`:`left`);var o=e.get(`selector`,!0),s=e.get(`selectorPosition`,!0);o&&(!s||s===`auto`)&&(s=a===`horizontal`?`end`:`start`),this.renderInner(i,e,t,n,o,a,s);var c=ug(e,n).refContainer,l=e.getBoxLayoutParams(),u=e.get(`padding`),d=cg(l,c,u),f=this.layoutInner(e,i,d,r,o,s),p=cg(z({width:f.width,height:f.height},l),c,u);this.group.x=p.x-f.x,this.group.y=p.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=hI(f,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,r,i,a,o){var s=this.getContentGroup(),c=Ne(),l=t.get(`selectedMode`),u=t.get(`triggerEvent`),d=[];n.eachRawSeries(function(e){!e.get(`legendHoverLink`)&&d.push(e.id)}),eL(t.getData(),function(i,a){var o=this,f=i.get(`name`);if(!this.newlineDisabled&&(f===``||f===`
17
+ `)){var p=new tL;p.newline=!0,s.add(p);return}var m=n.getSeriesByName(f)[0];if(!c.get(f)){if(m){var h=m.getData(),g=h.getVisual(`legendLineStyle`)||{},_=h.getVisual(`legendIcon`),v=h.getVisual(`style`),y=this._createItem(m,f,a,i,t,e,g,v,_,l,r);y.on(`click`,$I(aL,f,null,r,d)).on(`mouseover`,$I(oL,m.name,null,r,d)).on(`mouseout`,$I(sL,m.name,null,r,d)),n.ssr&&y.eachChild(function(e){var t=uu(e);t.seriesIndex=m.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&y.eachChild(function(e){o.packEventData(e,t,m,a,f)}),c.set(f,!0)}else n.eachRawSeries(function(o){var s=this;if(!c.get(f)&&o.legendVisualProvider){var p=o.legendVisualProvider;if(!p.containName(f))return;var m=p.indexOfName(f),h=p.getItemVisual(m,`style`),g=p.getItemVisual(m,`legendIcon`),_=Nr(h.fill);_&&_[3]===0&&(_[3]=.2,h=L(L({},h),{fill:zr(_,`rgba`)}));var v=this._createItem(o,f,a,i,t,e,{},h,g,l,r);v.on(`click`,$I(aL,null,f,r,d)).on(`mouseover`,$I(oL,null,f,r,d)).on(`mouseout`,$I(sL,null,f,r,d)),n.ssr&&v.eachChild(function(e){var t=uu(e);t.seriesIndex=o.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&v.eachChild(function(e){s.packEventData(e,t,o,a,f)}),c.set(f,!0)}},this)}},this),i&&this._createSelector(i,t,r,a,o)},t.prototype.packEventData=function(e,t,n,r,i){var a={componentType:`legend`,componentIndex:t.componentIndex,dataIndex:r,value:i,seriesIndex:n.seriesIndex};uu(e).eventData=a},t.prototype._createSelector=function(e,t,n,r,i){var a=this.getSelectorGroup();eL(e,function(e){var r=e.type,i=new Xl({style:{x:0,y:0,align:`center`,verticalAlign:`middle`},onclick:function(){n.dispatchAction({type:r===`all`?`legendAllSelect`:`legendInverseSelect`,legendId:t.id})}});a.add(i),am(i,{normal:t.getModel(`selectorLabel`),emphasis:t.getModel([`emphasis`,`selectorLabel`])},{defaultText:e.title}),_d(i)})},t.prototype._createItem=function(e,t,n,r,i,a,o,s,c,l,u){var d=e.visualDrawType,f=i.get(`itemWidth`),p=i.get(`itemHeight`),m=i.isSelected(t),h=r.get(`symbolRotate`),g=r.get(`symbolKeepAspect`),_=r.get(`icon`);c=_||c||`roundRect`;var v=rL(c,r,o,s,d,m,u),y=new tL,b=r.getModel(`textStyle`);if(ue(e.getLegendIcon)&&(!_||_===`inherit`))y.add(e.getLegendIcon({itemWidth:f,itemHeight:p,icon:c,iconRotate:h,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}));else{var x=_===`inherit`&&e.getData().getVisual(`symbol`)?h===`inherit`?e.getData().getVisual(`symbolRotate`):h:0;y.add(iL({itemWidth:f,itemHeight:p,icon:c,iconRotate:x,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}))}var S=a===`left`?f+5:-5,C=a,w=i.get(`formatter`),T=t;W(w)&&w?T=w.replace(`{name}`,t??``):ue(w)&&(T=w(t));var E=m?b.getTextColor():r.get(`inactiveColor`);y.add(new Xl({style:sm(b,{text:T,x:S,y:p/2,fill:E,align:C,verticalAlign:`middle`},{inheritColor:E})}));var D=new Gl({shape:y.getBoundingRect(),style:{fill:`transparent`}}),O=r.getModel(`tooltip`);return O.get(`show`)&&Vp({el:D,componentModel:i,itemName:t,itemTooltipOption:O.option}),y.add(D),y.eachChild(function(e){e.silent=!0}),D.silent=!l,this.getContentGroup().add(y),_d(y),y.__legendDataIndex=n,y},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getContentGroup(),s=this.getSelectorGroup();ig(e.get(`orient`),o,e.get(`itemGap`),n.width,n.height);var c=o.getBoundingRect(),l=[-c.x,-c.y];if(s.markRedraw(),o.markRedraw(),i){ig(`horizontal`,s,e.get(`selectorItemGap`,!0));var u=s.getBoundingRect(),d=[-u.x,-u.y],f=e.get(`selectorButtonGap`,!0),p=e.getOrient().index,m=p===0?`width`:`height`,h=p===0?`height`:`width`,g=p===0?`y`:`x`;a===`end`?d[p]+=c[m]+f:l[p]+=u[m]+f,d[1-p]+=c[h]/2-u[h]/2,s.x=d[0],s.y=d[1],o.x=l[0],o.y=l[1];var _={x:0,y:0};return _[m]=c[m]+f+u[m],_[h]=Math.max(c[h],u[h]),_[g]=Math.min(0,u[g]+d[1-p]),_}return o.x=l[0],o.y=l[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type=`legend.plain`,t}(wy);function rL(e,t,n,r,i,a,o){function s(e,t){e.lineWidth===`auto`&&(e.lineWidth=t.lineWidth>0?2:0),eL(e,function(n,r){e[r]===`inherit`&&(e[r]=t[r])})}var c=t.getModel(`itemStyle`),l=c.getItemStyle(),u=e.lastIndexOf(`empty`,0)===0?`fill`:`stroke`,d=c.getShallow(`decal`);l.decal=!d||d===`inherit`?r.decal:Rx(d,o),l.fill===`inherit`&&(l.fill=r[i]),l.stroke===`inherit`&&(l.stroke=r[u]),l.opacity===`inherit`&&(l.opacity=(i===`fill`?r:n).opacity),s(l,r);var f=t.getModel(`lineStyle`),p=f.getLineStyle();if(s(p,n),l.fill===`auto`&&(l.fill=r.fill),l.stroke===`auto`&&(l.stroke=r.fill),p.stroke===`auto`&&(p.stroke=r.fill),!a){var m=t.get(`inactiveBorderWidth`),h=l[u];l.lineWidth=m===`auto`?r.lineWidth>0&&h?2:0:l.lineWidth,l.fill=t.get(`inactiveColor`),l.stroke=t.get(`inactiveBorderColor`),p.stroke=f.get(`inactiveColor`),p.lineWidth=f.get(`inactiveWidth`)}return{itemStyle:l,lineStyle:p}}function iL(e){var t=e.icon||`roundRect`,n=Jb(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf(`empty`)>-1&&(n.style.stroke=n.style.fill,n.style.fill=q.color.neutral00,n.style.lineWidth=2),n}function aL(e,t,n,r){sL(e,t,n,r),n.dispatchAction({type:`legendToggleSelect`,name:e??t}),oL(e,t,n,r)}function oL(e,t,n,r){n.usingTHL()||n.dispatchAction({type:`highlight`,seriesName:e,name:t,excludeSeriesId:r})}function sL(e,t,n,r){n.usingTHL()||n.dispatchAction({type:`downplay`,seriesName:e,name:t,excludeSeriesId:r})}function cL(e,t,n){var r=e===`allSelect`||e===`inverseSelect`,i={},a=[];n.eachComponent({mainType:`legend`,query:t},function(n){r?n[e]():n[e](t.name),lL(n,i),a.push(n.componentIndex)});var o={};return n.eachComponent(`legend`,function(e){V(i,function(t,n){e[t?`select`:`unSelect`](n)}),lL(e,o)}),r?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function lL(e,t){var n=t||{};return V(e.getData(),function(t){var r=t.get(`name`);if(r!==`
18
+ `&&r!==``){var i=e.isSelected(r);n[r]=K(n,r)?n[r]&&i:i}}),n}function uL(e){e.registerAction(`legendToggleSelect`,`legendselectchanged`,le(cL,`toggleSelected`)),e.registerAction(`legendAllSelect`,`legendselectall`,le(cL,`allSelect`)),e.registerAction(`legendInverseSelect`,`legendinverseselect`,le(cL,`inverseSelect`)),e.registerAction(`legendSelect`,`legendselected`,le(cL,`select`)),e.registerAction(`legendUnSelect`,`legendunselected`,le(cL,`unSelect`))}var dL=Os(fL);function fL(e){var t=e.findComponents({mainType:`legend`});t&&t.length&&e.filterSeries(function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0})}function pL(e){e.registerComponentModel(QI),e.registerComponentView(nL),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,dL),e.registerSubTypeDefaulter(`legend`,function(){return`plain`}),uL(e)}var mL=function(e){l(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(t,n,r){var i=mg(t);e.prototype.init.call(this,t,n,r),hL(this,t,i)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),hL(this,this.option,t)},t.type=`legend.scroll`,t.defaultOption=Fm(QI.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:`end`,pageFormatter:`{current}/{total}`,pageIcons:{horizontal:[`M0,0L12,-10L12,10z`,`M0,0L-12,-10L-12,10z`],vertical:[`M0,0L20,0L10,-20z`,`M0,0L20,0L10,20z`]},pageIconColor:q.color.accent50,pageIconInactiveColor:q.color.accent10,pageIconSize:15,pageTextStyle:{color:q.color.tertiary},animationDurationUpdate:800}),t}(QI);function hL(e,t,n){var r=e.getOrient(),i=[1,1];i[r.index]=0,pg(t,n,{type:`box`,ignoreSize:!!i})}var gL=Aa,_L=[`width`,`height`],vL=[`x`,`y`],yL=function(e){l(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new gL),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new gL)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(t,n,r,i,a,o,s){var c=this;e.prototype.renderInner.call(this,t,n,r,i,a,o,s);var l=this._controllerGroup,u=n.get(`pageIconSize`,!0),d=U(u)?u:[u,u];p(`pagePrev`,0);var f=n.getModel(`pageTextStyle`);l.add(new Xl({name:`pageText`,style:{text:`xx/xx`,fill:f.getTextColor(),font:f.getFont(),verticalAlign:`middle`,align:`center`},silent:!0})),p(`pageNext`,1);function p(e,t){var r=e+`DataIndex`,a=Np(n.get(`pageIcons`,!0)[n.getOrient().name][t],{onclick:ce(c._pageGo,c,r,n,i)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});a.name=e,l.add(a)}},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getSelectorGroup(),s=e.getOrient().index,c=_L[s],l=vL[s],u=_L[1-s],d=vL[1-s];i&&ig(`horizontal`,o,e.get(`selectorItemGap`,!0));var f=e.get(`selectorButtonGap`,!0),p=o.getBoundingRect(),m=[-p.x,-p.y],h=F(n);i&&(h[c]=n[c]-p[c]-f);var g=this._layoutContentAndController(e,r,h,s,c,u,d,l);if(i){if(a===`end`)m[s]+=g[c]+f;else{var _=p[c]+f;m[s]-=_,g[l]-=_}g[c]+=p[c]+f,m[1-s]+=g[d]+g[u]/2-p[u]/2,g[u]=Math.max(g[u],p[u]),g[d]=Math.min(g[d],p[d]+m[1-s]),o.x=m[0],o.y=m[1],o.markRedraw()}return g},t.prototype._layoutContentAndController=function(e,t,n,r,i,a,o,s){var c=this.getContentGroup(),l=this._containerGroup,u=this._controllerGroup;ig(e.get(`orient`),c,e.get(`itemGap`),r?n.width:null,r?null:n.height),ig(`horizontal`,u,e.get(`pageButtonItemGap`,!0));var d=c.getBoundingRect(),f=u.getBoundingRect(),p=this._showController=d[i]>n[i],m=[-d.x,-d.y];t||(m[r]=c[s]);var h=[0,0],g=[-f.x,-f.y],_=G(e.get(`pageButtonGap`,!0),e.get(`itemGap`,!0));p&&(e.get(`pageButtonPosition`,!0)===`end`?g[r]+=n[i]-f[i]:h[r]+=f[i]+_),g[1-r]+=d[a]/2-f[a]/2,c.setPosition(m),l.setPosition(h),u.setPosition(g);var v={x:0,y:0};if(v[i]=p?n[i]:d[i],v[a]=Math.max(d[a],f[a]),v[o]=Math.min(0,f[o]+g[1-r]),l.__rectSize=n[i],p){var y={x:0,y:0};y[i]=Math.max(n[i]-f[i]-_,0),y[a]=v[a],l.setClipPath(new Gl({shape:y})),l.__rectSize=y[i]}else u.eachChild(function(e){e.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(e);return b.pageIndex!=null&&tp(c,{x:b.contentPosition[0],y:b.contentPosition[1]},p?e:null),this._updatePageInfoView(e,b),v},t.prototype._pageGo=function(e,t,n){var r=this._getPageInfo(t)[e];r!=null&&n.dispatchAction({type:`legendScroll`,scrollDataIndex:r,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;V([`pagePrev`,`pageNext`],function(r){var i=t[r+`DataIndex`]!=null,a=n.childOfName(r);a&&(a.setStyle(`fill`,i?e.get(`pageIconColor`,!0):e.get(`pageIconInactiveColor`,!0)),a.cursor=i?`pointer`:`default`)});var r=n.childOfName(`pageText`),i=e.get(`pageFormatter`),a=t.pageIndex,o=a==null?0:a+1,s=t.pageCount;r&&i&&r.setStyle(`text`,W(i)?i.replace(`{current}`,o==null?``:o+``).replace(`{total}`,s==null?``:s+``):i({current:o,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get(`scrollDataIndex`,!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=e.getOrient().index,a=_L[i],o=vL[i],s=this._findTargetItemIndex(t),c=n.children(),l=c[s],u=c.length,d=+!!u,f={contentPosition:[n.x,n.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!l)return f;var p=v(l);f.contentPosition[i]=-p.s;for(var m=s+1,h=p,g=p,_=null;m<=u;++m)_=v(c[m]),(!_&&g.e>h.s+r||_&&!y(_,h.s))&&(h=g.i>h.i?g:_,h&&(f.pageNextDataIndex??=h.i,++f.pageCount)),g=_;for(var m=s-1,h=p,g=p,_=null;m>=-1;--m)_=v(c[m]),(!_||!y(g,_.s))&&h.i<g.i&&(g=h,f.pagePrevDataIndex??=h.i,++f.pageCount,++f.pageIndex),h=_;return f;function v(e){if(e){var t=e.getBoundingRect(),n=t[o]+e[o];return{s:n,e:n+t[a],i:e.__legendDataIndex}}}function y(e,t){return e.e>=t&&e.s<=t+r}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var t,n=this.getContentGroup(),r;return n.eachChild(function(n,i){var a=n.__legendDataIndex;r==null&&a!=null&&(r=i),a===e&&(t=i)}),t??r},t.type=`legend.scroll`,t}(nL);function bL(e){e.registerAction(`legendScroll`,`legendscroll`,function(e,t){var n=e.scrollDataIndex;n!=null&&t.eachComponent({mainType:`legend`,subType:`scroll`,query:e},function(e){e.setScrollDataIndex(n)})})}function xL(e){TE(pL),e.registerComponentModel(mL),e.registerComponentView(yL),bL(e)}function SL(e){TE(pL),TE(xL)}function CL(e,t,n){var r=y.createCanvas(),i=t.getWidth(),a=t.getHeight(),o=r.style;return o&&(o.position=`absolute`,o.left=`0`,o.top=`0`,o.width=i+`px`,o.height=a+`px`,r.setAttribute(`data-zr-dom-id`,e)),r.width=i*n,r.height=a*n,r}function wL(e){return!e.__cursors.get(0)}function TL(e){var t=e.__cursors.get(0);return{startIdx:t?t.startIdx:0,endIdx:t?t.endIdx:0}}var EL=function(e){l(t,e);function t(t,n,r){var i=e.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.zlevel=0,i.zlevel2=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__prevIdx={startIdx:0,endIdx:0};var a;r||=Ii,typeof t==`string`?a=CL(t,n,r):pe(t)&&(a=t,t=a.id),i.id=t,i.dom=a;var o=a.style;return o&&(Ie(a),a.onselectstart=function(){return!1},o.padding=`0`,o.margin=`0`,o.borderWidth=`0`),i.painter=n,i.dpr=r,i}return t.prototype.afterBrush=function(){this.__prevIdx=TL(this)},t.prototype.initContext=function(){this.ctx=this.dom.getContext(`2d`),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=CL(`back-`+this.id,this.painter,e),this.ctxBack=this.domBack.getContext(`2d`),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,t,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i=[],a=this.maxRepaintRectCount,o=!1,s=new rn(0,0,0,0);function c(e){if(!(!e.isFinite()||e.isZero())){if(i.length===0){var t=new rn(0,0,0,0);t.copy(e),i.push(t)}else{for(var n=!1,r=1/0,c=0,l=0;l<i.length;++l){var u=i[l];if(u.intersect(e)){var d=new rn(0,0,0,0);d.copy(u),d.union(e),i[l]=d,n=!0;break}if(o){s.copy(e),s.union(u);var f=e.width*e.height,p=u.width*u.height,m=s.width*s.height-f-p;m<r&&(r=m,c=l)}}if(o&&(i[c].union(e),n=!0),!n){var t=new rn(0,0,0,0);t.copy(e),i.push(t)}o||=i.length>=a}}}for(var l=TL(this),u=l.startIdx;u<l.endIdx;++u){var d=e[u];if(d){var f=d.shouldBePainted(n,r,!0,!0),p=d.__isRendered&&(d.__dirty&1||!f)?d.getPrevPaintRect():null;p&&c(p);var m=f&&(d.__dirty&1||!d.__isRendered)?d.getPaintRect():null;m&&c(m)}}for(var h=this.__prevIdx,u=h.startIdx;u<h.endIdx;++u){var d=t[u],f=d&&d.shouldBePainted(n,r,!0,!0);if(d&&(!f||!d.__zr)&&d.__isRendered){var p=d.getPrevPaintRect();p&&c(p)}}var g;do{g=!1;for(var u=0;u<i.length;){if(i[u].isZero()){i.splice(u,1);continue}for(var _=u+1;_<i.length;)i[u].intersect(i[_])?(g=!0,i[u].union(i[_]),i.splice(_,1)):_++;u++}}while(g);return this._paintRects=i,i},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,t){var n=this.dpr,r=this.dom,i=r.style,a=this.domBack;i&&(i.width=e+`px`,i.height=t+`px`),r.width=e*n,r.height=t*n,a&&(a.width=e*n,a.height=t*n,n!==1&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,t,n){var r=this.dom,i=this.ctx,a=r.width,o=r.height;t||=this.clearColor;var s=this.motionBlur&&!e,c=this.lastFrameAlpha,l=this.dpr,u=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation=`copy`,this.ctxBack.drawImage(r,0,0,a/l,o/l));var d=this.domBack;function f(e,n,r,a){if(i.clearRect(e,n,r,a),t&&t!==`transparent`){var o=void 0;_e(t)?(o=(t.global||t.__width===r&&t.__height===a)&&t.__canvasGradient||ex(i,t,{x:0,y:0,width:r,height:a}),t.__canvasGradient=o,t.__width=r,t.__height=a):ve(t)&&(t.scaleX=t.scaleX||l,t.scaleY=t.scaleY||l,o=fx(i,t,{dirty:function(){u.setUnpainted(),u.painter.refresh()}})),i.save(),i.fillStyle=o||t,i.fillRect(e,n,r,a),i.restore()}s&&(i.save(),i.globalAlpha=c,i.drawImage(d,e,n,r,a),i.restore())}!n||s?f(0,0,a,o):n.length&&V(n,function(e){f(e.x*l,e.y*l,e.width*l,e.height*l)})},t}(at),DL=1e5,OL=314159,kL=void 0,AL=1,jL=2;function ML(e){return e?e.__builtin__?!0:typeof e.resize==`function`&&typeof e.refresh==`function`:!1}function NL(e,t){var n=document.createElement(`div`);return n.style.cssText=[`position:relative`,`width:`+e+`px`,`height:`+t+`px`,`padding:0`,`margin:0`,`border-width:0`].join(`;`)+`;`,n}function PL(e,t,n,r){var i=new EL(e,t,t.dpr);return i.zlevel=n,i.zlevel2=r,i.__builtin__=!0,FL(i),i}function FL(e){e.__cursorStack=[],e.__cursors=Ne()}function IL(e){return e.startIdx=e.drawIdx=e.endIdx=e.endIdxNew=0,e.used=!1,e.first=e.last=NaN,e.notClearIdx=-1,e}function LL(e,t){var n=e.__cursors,r=+t;return n.get(r)||(e.__cursorStack.push(r),n.set(r,IL({key:r})))}function RL(e,t){for(var n=e.__cursorStack,r=0;r<n.length;r++)t(e.__cursors.get(n[r]))}function zL(e,t){var n=e.layers;return n[t]||(n[t]=[,,,])}function BL(e,t,n){for(var r=e.layerStack,i=0;i<r.length;i++){var a=r[i].zl,o=r[i].zl2,s=e.layers[a][o];(!n||(!(n&VL)||s.__builtin__)&&(!(n&HL)||!s.__builtin__)&&(!(n&UL)||s!==e.hoverlayer))&&t(s,a,o,i)}}var VL=1,HL=2,UL=4,WL=VL|UL,GL=function(){function e(e,t,n,r){this.type=`canvas`,this._prevDisplayList=[],this._layerConfig={},this._needsManuallyCompositing=!1,this.type=`canvas`,this._i={layerStack:[],layers:[]};var i=!e.nodeName||e.nodeName.toUpperCase()===`CANVAS`;if(this._opts=n=L({},n||{}),this.dpr=n.devicePixelRatio||Ii,this._singleCanvas=i,this.root=e,e.style&&(Ie(e),e.innerHTML=``),this.storage=t,this._prevDisplayList=[],i){var a=e,o=a.width,s=a.height;n.width!=null&&(o=n.width),n.height!=null&&(s=n.height),this.dpr=n.devicePixelRatio||1,a.width=o*this.dpr,a.height=s*this.dpr,this._width=o,this._height=s;var c=PL(a,this,OL,0);c.initContext(),this._insertLayer(c,OL,0,!0),this._domRoot=e}else{this._width=rx(e,0,n),this._height=rx(e,1,n);var l=this._domRoot=NL(this._width,this._height);e.appendChild(l)}}return e.prototype.getType=function(){return`canvas`},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.refresh=function(e){var t=e&&!pe(e)?{paintAll:!!e}:e||{},n=G(t.refresh,!0),r=G(t.refreshHover,!1);if(r&&(this._hoverLayerDirty=jL),!n)return r&&this._paintHoverList(this.storage.getDisplayList(!1)),this;var i=this.storage.getDisplayList(!0);this._updateLayerStatus(i,t.paintAll),this._redrawId=Math.random();var a=this._prevDisplayList;this._paintList(i,a,this._redrawId);var o=this._backgroundColor;return BL(this._i,function(e,t,n,r){e.refresh&&e.refresh(r===0?o:null)},HL),this._opts.useDirtyRect&&(this._prevDisplayList=i.slice()),this},e.prototype._paintHoverList=function(e){var t=this._i.hoverlayer,n=this._hoverLayerDirty;if(this._hoverLayerDirty=kL,n!==kL&&(!t&&n===jL&&(t=this._i.hoverlayer=this._ensureLayer(DL)),t)){t.clear();for(var r={inHover:!0,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},i,a=0,o=e.length;a<o;a++){var s=e[a];if(s.__inHover){i||(i=t.ctx,i.save());var c=s.__hoverStyle,l=void 0;c&&(l=s.style,s.style=c),Mx(i,s,r),c&&(s.style=l)}}i&&(Nx(i,r),i.restore())}},e.prototype.getHoverLayer=function(){return this._ensureLayer(DL)},e.prototype.paintOne=function(e,t){jx(e,t)},e.prototype._paintList=function(e,t,n){if(this._redrawId===n){var r=this._doPaintList(e,t);if(this._needsManuallyCompositing&&this._compositeManually(),r)BL(this._i,function(e){e.afterBrush&&e.afterBrush()},WL),this._paintHoverList(e);else{var i=this;Vn(function(){i._paintList(e,t,n)})}}},e.prototype._compositeManually=function(){var e=this._ensureLayer(OL).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),BL(this._i,function(r){r.virtual&&e.drawImage(r.dom,0,0,t,n)},VL)},e.prototype._doPaintList=function(e,t){var n=this,r=!0;return BL(this._i,function(i){var a=!1;if(RL(i,function(e){(e.drawIdx<e.endIdx||e.notClearIdx>=0)&&(a=!0)}),!(!a&&!i.__dirty)){var o=n._opts.useDirtyRect&&!wL(i)?i.createRepaintRects(e,t,n._width,n._height):null,s=n._i.layerStack[0],c=!0;if(i.__dirty){c=!1,i.__dirty=!1;var l=i.zlevel===s.zl&&i.zlevel2===s.zl2?n._backgroundColor:null;i.clear(!1,l,o)}RL(i,function(t){var a=n._paintPerCursor(i,t,e,o,c);r&&=a})}},WL),d.wxa&&BL(this._i,function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()}),r},e.prototype._paintPerCursor=function(e,t,n,r,i){var a=e.ctx;if(r){if(!r.length)t.drawIdx=t.endIdx;else for(var o=this.dpr,s=0;s<r.length;++s){var c=r[s];a.save(),a.beginPath(),a.rect(c.x*o,c.y*o,c.width*o,c.height*o),a.clip(),this._paintPerCursorInRect(e,t,n,c,i),a.restore()}}else a.save(),this._paintPerCursorInRect(e,t,n,null,i),a.restore();return t.drawIdx>=t.endIdx},e.prototype._paintPerCursorInRect=function(e,t,n,r,i){for(var a={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:i}},o=e.ctx,s=wL(e),c=s&&y.getTime(),l=t.drawIdx,u=t.notClearIdx,d=u>=0?Math.min(u,l):l;d<t.endIdx;d++){var f=n[d];if(!(d<l&&!f.notClear)){if(f.__inHover&&(this._hoverLayerDirty=jL),r!=null){var p=f.getPaintRect();p&&p.intersect(r)&&(Mx(o,f,a),f.setPrevPaintRect(p))}else Mx(o,f,a);if(s&&y.getTime()-c>15){d++;break}}}Nx(o,a),t.drawIdx=Math.max(d,l)},e.prototype.getLayer=function(e,t){return this._ensureLayer(e,0,t)},e.prototype._ensureLayer=function(e,t,n){t||=0;var r=this._singleCanvas;r&&!this._needsManuallyCompositing&&(e=OL,t=0);var i=zL(this._i,e)[t];return i||(i=PL(`zr_`+e+`.`+t,this,e,t),this._layerConfig[e]&&I(i,this._layerConfig[e],!0),(n||r&&e!==OL)&&(i.virtual=!0),this._insertLayer(i,e,t,!1),i.initContext()),i},e.prototype.insertLayer=function(e,t){this._insertLayer(t,e,0,!1)},e.prototype._insertLayer=function(e,t,n,r){var i=this._i,a=i.layers,o=i.layerStack,s=this._domRoot,c=null;if(!(a[t]&&a[t][n])&&ML(e)){for(var l=o.length,u=0;u<l&&(o[u].zl<t||o[u].zl===t&&o[u].zl2<n);)u++;if(u>0&&(c=zL(i,o[u-1].zl)[o[u-1].zl2]),o.splice(u,0,{zl:t,zl2:n}),zL(i,t)[n]=e,!r&&!e.virtual){if(c){var d=c.dom;d.nextSibling?s.insertBefore(e.dom,d.nextSibling):s.appendChild(e.dom)}else s.firstChild?s.insertBefore(e.dom,s.firstChild):s.appendChild(e.dom)}e.painter||=this}},e.prototype.eachLayer=function(e,t){return BL(this._i,function(n,r){e.call(t,n,r)})},e.prototype.eachBuiltinLayer=function(e,t){return BL(this._i,function(n,r){e.call(t,n,r)},VL)},e.prototype.eachOtherLayer=function(e,t){return BL(this._i,function(n,r){e.call(t,n,r)},HL)},e.prototype.getLayers=function(){var e={};return BL(this._i,function(t,n,r){e[t.id]=t}),e},e.prototype._updateLayerStatus=function(e,t){var n=this;if(n._singleCanvas)for(var r=1;r<e.length;r++){var i=e[r];if(i.zlevel!==e[r-1].zlevel||i.incremental){n._needsManuallyCompositing=!0;break}}BL(n._i,function(e){e.__dirty=!1,RL(e,function(e){e.used=!1,e.endIdxNew=0,e.notClearIdx=-1})},WL);for(var a,o=null,s=null,c=!1,l=0,u=e.length;l<u;l++){var i=e[l],d=i.zlevel,f=i.incremental,p=void 0;if(a!==d&&(a=d,c=!1),f?(c=!0,p=1):p=c?2:0,(!o||d!==o.zlevel||p!==o.zlevel2)&&(o=n._ensureLayer(d,p),s=null,!o.__builtin__)){P(`ZLevel `+d+` has been used by unknown layer `+o.id);continue}if((!s||f!==s.key)&&(s=LL(o,f),!s.used)){if(s.used=!0,!t&&s.first===i.id){var m=l-s.startIdx;s.startIdx=l,s.drawIdx+=m,s.endIdx+=m}else o.__dirty=!0,s.first=i.id,s.startIdx=s.drawIdx=l,s.endIdx=l+1}s.endIdxNew=l+1,i.__dirty&1&&!i.__inHover&&((!f||!i.notClear&&l<s.drawIdx)&&(o.__dirty=!0),f&&i.notClear&&s.notClearIdx<0&&(s.notClearIdx=l))}BL(n._i,function(t){for(var r=t.__cursorStack,i=t.__cursors,a=r.length-1;a>=0;a--){var o=i.get(r[a]);if(!o.used)t.__dirty=!0,i.removeKey(r[a]),r.splice(a,1);else{var s=o.endIdxNew;(wL(t)?s<o.drawIdx:s!==o.endIdx||!s||e[s-1].id!==o.last)&&(t.__dirty=!0),o.endIdx=o.endIdxNew,o.last=s?e[s-1].id:NaN}}t.__dirty&&(RL(t,function(e){e.drawIdx=e.startIdx}),n._hoverLayerDirty===kL&&(n._hoverLayerDirty=AL))},WL)},e.prototype.clear=function(){return BL(this._i,function(e){e.clear(),FL(e)},VL),this},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,BL(this._i,function(e){e.setUnpainted()})},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?I(n[e],t,!0):n[e]=t,BL(this._i,function(e,t){I(e,n[t],!0)})}},e.prototype.delLayer=function(e){for(var t=this._i.layerStack,n=this._i.layers,r=t.length-1;r>=0;r--){var i=t[r];if(i.zl===e){var a=n[e][i.zl2];if(a.__builtin__)continue;if(t.splice(r,1),n[e][i.zl2]=void 0,!a.virtual){var o=a.dom.parentNode;o&&o.removeChild(a.dom)}}}},e.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display=`none`;var r=this._opts,i=this.root;e!=null&&(r.width=e),t!=null&&(r.height=t),e=rx(i,0,r),t=rx(i,1,r),n.style.display=``,(this._width!==e||t!==this._height)&&(n.style.width=e+`px`,n.style.height=t+`px`,BL(this._i,function(n){n.resize(e,t)}),this.refresh({paintAll:!0})),this._width=e,this._height=t}else{if(e==null||t==null)return;this._width=e,this._height=t,this._ensureLayer(OL).resize(e,t)}return this},e.prototype.clearLayer=function(e){V(this._i.layers[e],function(e){e&&!e.__builtin__&&e.clear()})},e.prototype.dispose=function(){this.root.innerHTML=``,this.root=this.storage=this._domRoot=this._i=null},e.prototype.getRenderedCanvas=function(e){if(e||={},this._singleCanvas&&!this._compositeManually)return this._i.layers[OL][0].dom;var t=new EL(`image`,this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var n=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var r=t.dom.width,i=t.dom.height;BL(this._i,function(e){e.__builtin__?n.drawImage(e.dom,0,0,r,i):e.renderToCanvas&&(n.save(),e.renderToCanvas(n),n.restore())})}else{for(var a={inHover:!1,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},o=this.storage.getDisplayList(!0),s=0,c=o.length;s<c;s++){var l=o[s];Mx(n,l,a)}Nx(n,a)}return t.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();function KL(e){e.registerPainter(`canvas`,GL)}var qL=e(s(),1);function JL(e){return{png:`image/png`,jpg:`image/jpeg`,jpeg:`image/jpeg`,gif:`image/gif`,svg:`image/svg+xml`,bmp:`image/bmp`,tiff:`image/tiff`,tif:`image/tiff`,emf:`image/x-emf`,wmf:`image/x-wmf`,webp:`image/webp`,mp4:`video/mp4`,m4v:`video/mp4`,webm:`video/webm`,avi:`video/x-msvideo`,mp3:`audio/mpeg`,wav:`audio/wav`,m4a:`audio/mp4`,ogg:`audio/ogg`}[e.split(`.`).pop()?.toLowerCase()||``]||`application/octet-stream`}function YL(e){let t=e.search(/[?#]/);return t>=0?e.slice(0,t):e}function XL(e){let t=[];for(let n of e.replace(/\\/g,`/`).split(`/`))if(!(!n||n===`.`)){if(n===`..`){t.pop();continue}t.push(n)}return t}function ZL(e){try{return decodeURIComponent(e)}catch{return e}}function QL(e){let t=XL(YL(e)),n=t.lastIndexOf(`media`);return(n>=0&&n<t.length-1?t.slice(n+1):t.slice(-1)).join(`/`)}function $L(e){return`ppt/media/${QL(e).split(`/`).map(ZL).join(`/`)}`}function eR(e){let t=QL(e),n=$L(e),r=`ppt/media/${t}`;return n===r?[n]:[n,r]}function tR(e,t){for(let n of eR(e)){let e=t.get(n);if(e)return{mediaPath:n,data:e}}}async function nR(e,t,n){return tR(e,t)||n?.resolve(e)}function rR(e,t,n){let r=n.get(e);if(!r){let i=JL(e),a=new Blob([t],{type:i});r=URL.createObjectURL(a),n.set(e,r)}return r}var iR=Object.freeze({maxEntries:4e3,maxEntryUncompressedBytes:33554432,maxTotalUncompressedBytes:268435456,maxMediaBytes:201326592,maxConcurrency:8});function aR(e){throw Error(`PPTX zip limit exceeded: ${e}`)}function oR(e){return e.startsWith(`ppt/media/`)}function sR(e){return e.split(`/`).map(e=>{try{return decodeURIComponent(e)}catch{return e}}).join(`/`)}function cR(e,t,n){e.set(t,n);let r=sR(t);r!==t&&!e.has(r)&&e.set(r,n)}function lR(e){let t=e._data?.uncompressedSize;return typeof t==`number`&&Number.isFinite(t)?t:void 0}function uR(e){return new TextEncoder().encode(e).byteLength}var dR=class{constructor(e,t,n,r){this.entries=e,this.media=t,this.state=n,this.totalBytes=r,this.inflight=new Map,this.loadedPaths=new Set,this.totalCount=new Set(Array.from(e.values(),e=>e.path)).size}get loadedBytes(){let e=0;for(let t of this.loadedPaths)e+=this.media.get(t)?.byteLength??0;return e}get loadedCount(){return this.loadedPaths.size}async resolve(e){for(let t of eR(e)){let e=this.media.get(t);if(e)return{mediaPath:t,data:e}}for(let t of eR(e)){let e=this.entries.get(t);if(e)return{mediaPath:t,data:await this.readEntry(e)}}}async readEntry(e){let t=this.inflight.get(e.path);t||(t=mR(e.path,e.file,this.state).then(t=>(cR(this.media,e.path,t),this.loadedPaths.add(e.path),t)),this.inflight.set(e.path,t));try{return await t}finally{this.inflight.delete(e.path)}}};function fR(e,t,n){if(n.limits.maxEntryUncompressedBytes!==void 0&&t>n.limits.maxEntryUncompressedBytes&&aR(`${e} is ${t} bytes > maxEntryUncompressedBytes ${n.limits.maxEntryUncompressedBytes}`),n.knownSizeByPath.has(e))return;n.unknownTotalBytes+=t;let r=n.knownTotalBytes+n.unknownTotalBytes;if(n.limits.maxTotalUncompressedBytes!==void 0&&r>n.limits.maxTotalUncompressedBytes&&aR(`total uncompressed bytes ${r} > maxTotalUncompressedBytes ${n.limits.maxTotalUncompressedBytes}`),oR(e)){n.unknownMediaBytes+=t;let e=n.knownMediaBytes+n.unknownMediaBytes;n.limits.maxMediaBytes!==void 0&&e>n.limits.maxMediaBytes&&aR(`media bytes ${e} > maxMediaBytes ${n.limits.maxMediaBytes}`)}}async function pR(e,t,n){let r=await t.async(`string`);return fR(e,uR(r),n),r}async function mR(e,t,n){let r=await t.async(`uint8array`);return fR(e,r.byteLength,n),r}async function hR(e,t,n){n.knownSizeByPath.has(e)||n.limits.maxEntryUncompressedBytes===void 0&&n.limits.maxTotalUncompressedBytes===void 0||fR(e,(await t.async(`uint8array`)).byteLength,n)}async function gR(e,t,n){if(e.length===0)return;let r=Math.min(t,e.length),i=0,a=Array.from({length:r},async()=>{for(;;){let t=i++;if(t>=e.length)return;await n(e[t])}});await Promise.all(a)}async function _R(e,t={}){return yR(e,t,{lazyMedia:!1})}async function vR(e,t={}){return yR(e,t,{lazyMedia:!0})}async function yR(e,t,n){let r=t.maxConcurrency??8;(!Number.isInteger(r)||r<1)&&aR(`maxConcurrency ${t.maxConcurrency} must be an integer >= 1`);let i=await qL.default.loadAsync(e),a=Object.entries(i.files).filter(([,e])=>!e.dir);t.maxEntries!==void 0&&a.length>t.maxEntries&&aR(`entries ${a.length} > maxEntries ${t.maxEntries}`);let o=new Map,s=0,c=0;for(let[e,n]of a){let r=e.replace(/\\/g,`/`),i=lR(n);i!==void 0&&(o.set(r,i),t.maxEntryUncompressedBytes!==void 0&&i>t.maxEntryUncompressedBytes&&aR(`${r} is ${i} bytes > maxEntryUncompressedBytes ${t.maxEntryUncompressedBytes}`),s+=i,t.maxTotalUncompressedBytes!==void 0&&s>t.maxTotalUncompressedBytes&&aR(`total uncompressed bytes ${s} > maxTotalUncompressedBytes ${t.maxTotalUncompressedBytes}`),oR(r)&&(c+=i,t.maxMediaBytes!==void 0&&c>t.maxMediaBytes&&aR(`media bytes ${c} > maxMediaBytes ${t.maxMediaBytes}`)))}let l={contentTypes:``,presentation:``,presentationRels:``,slides:new Map,slideRels:new Map,slideLayouts:new Map,slideLayoutRels:new Map,slideMasters:new Map,slideMasterRels:new Map,themes:new Map,themeOverrides:new Map,media:new Map,charts:new Map,chartRels:new Map,chartStyles:new Map,chartColors:new Map,diagramDrawings:new Map},u={limits:t,knownSizeByPath:o,knownTotalBytes:s,knownMediaBytes:c,unknownTotalBytes:0,unknownMediaBytes:0},d=new Map;return await gR(a,r,async([e,t])=>{let r=e.replace(/\\/g,`/`);if(r===`[Content_Types].xml`){l.contentTypes=await pR(r,t,u);return}if(r===`ppt/presentation.xml`){l.presentation=await pR(r,t,u);return}if(r===`ppt/_rels/presentation.xml.rels`){l.presentationRels=await pR(r,t,u);return}if(r===`ppt/tableStyles.xml`){l.tableStyles=await pR(r,t,u);return}if(oR(r)){if(n.lazyMedia){cR(d,r,{path:r,file:t});return}let e=await mR(r,t,u);cR(l.media,r,e);return}if(/^ppt\/slides\/_rels\/[^/]+\.xml\.rels$/.test(r)){cR(l.slideRels,r,await pR(r,t,u));return}if(/^ppt\/slides\/[^/]+\.xml$/.test(r)){cR(l.slides,r,await pR(r,t,u));return}if(/^ppt\/slideLayouts\/_rels\/[^/]+\.xml\.rels$/.test(r)){cR(l.slideLayoutRels,r,await pR(r,t,u));return}if(/^ppt\/slideLayouts\/[^/]+\.xml$/.test(r)){cR(l.slideLayouts,r,await pR(r,t,u));return}if(/^ppt\/slideMasters\/_rels\/[^/]+\.xml\.rels$/.test(r)){cR(l.slideMasterRels,r,await pR(r,t,u));return}if(/^ppt\/slideMasters\/[^/]+\.xml$/.test(r)){cR(l.slideMasters,r,await pR(r,t,u));return}if(/^ppt\/theme\/(?!themeOverride[^/]*\.xml$)[^/]+\.xml$/.test(r)){cR(l.themes,r,await pR(r,t,u));return}if(/^ppt\/theme\/themeOverride[^/]*\.xml$/.test(r)){l.themeOverrides&&cR(l.themeOverrides,r,await pR(r,t,u));return}if(/^ppt\/charts\/_rels\/[^/]+\.xml\.rels$/.test(r)){l.chartRels&&cR(l.chartRels,r,await pR(r,t,u));return}if(/^ppt\/charts\/(?!style[^/]*\.xml$)(?!colors[^/]*\.xml$)[^/]+\.xml$/.test(r)){cR(l.charts,r,await pR(r,t,u));return}if(/^ppt\/charts\/style[^/]*\.xml$/.test(r)){cR(l.chartStyles,r,await pR(r,t,u));return}if(/^ppt\/charts\/colors[^/]*\.xml$/.test(r)){cR(l.chartColors,r,await pR(r,t,u));return}if(/^ppt\/diagrams\/[^/]+\.xml$/.test(r)){cR(l.diagramDrawings,r,await pR(r,t,u));return}await hR(r,t,u)}),n.lazyMedia&&(l.mediaResolver=new dR(d,l.media,u,c)),l}var bR=class e{constructor(e){this.el=e}attr(e){if(!this.el)return;if(this.el.hasAttribute(e))return this.el.getAttribute(e);let t=e.indexOf(`:`),n=t>=0?e.slice(t+1):e,r=t>=0?this.resolveAttributeNamespace(e.slice(0,t)):void 0;for(let e=0;e<this.el.attributes.length;e++){let i=this.el.attributes[e];if(i.localName===n&&(t<0||(r?i.namespaceURI===r:i.namespaceURI!==null)))return i.value}}resolveAttributeNamespace(e){return this.el?.lookupNamespaceURI(e)??(e===`r`?`http://schemas.openxmlformats.org/officeDocument/2006/relationships`:void 0)}numAttr(e){let t=this.attr(e);if(t===void 0)return;let n=Number(t);return Number.isNaN(n)?void 0:n}child(t){if(!this.el)return new e(null);let n=this.el.children;for(let r=0;r<n.length;r++)if(n[r].localName===t)return new e(n[r]);return new e(null)}children(t){if(!this.el)return[];let n=[],r=this.el.children;for(let i=0;i<r.length;i++)(t===void 0||r[i].localName===t)&&n.push(new e(r[i]));return n}text(){return this.el?this.el.textContent??``:``}exists(){return this.el!==null}allChildren(){return this.children()}get localName(){return this.el?.localName??``}get element(){return this.el}};function xR(e){let t=new DOMParser().parseFromString(e,`application/xml`),n=t.querySelector(`parsererror`);return n?(console.warn(`XML parse error:`,n.textContent),new bR(null)):new bR(t.documentElement)}function SR(e){return e?.trim().toLowerCase()===`external`}function CR(e){let t=e.search(/[?#]/);return t>=0?e.slice(0,t):e}function wR(e){try{return decodeURIComponent(e)}catch{return e}}function TR(e){let t=new Map;if(!e)return t;let n=xR(e);if(!n.exists())return t;let r=n.children(`Relationship`);for(let e of r){let n=e.attr(`Id`),r=e.attr(`Type`),i=e.attr(`Target`),a=e.attr(`TargetMode`);n&&r!==void 0&&i!==void 0&&t.set(n,{type:r,target:i,targetMode:a})}return t}function ER(e,t){let n=CR(t);if(n.startsWith(`/`))return n.slice(1).replace(/\\/g,`/`).split(`/`).map(wR).join(`/`);let r=e.replace(/\\/g,`/`).split(`/`).filter(Boolean),i=n.replace(/\\/g,`/`).split(`/`).filter(Boolean).map(wR),a=[...r];for(let e of i)e===`..`?a.pop():e!==`.`&&a.push(e);return a.join(`/`)}function Y(e){return e/914400*96}function DR(e){return e/6e4}function OR(e){return e/1e5}function kR(e){return e*96/72}var AR=[`dk1`,`dk2`,`lt1`,`lt2`,`accent1`,`accent2`,`accent3`,`accent4`,`accent5`,`accent6`,`hlink`,`folHlink`];function jR(e){let t=e.child(`srgbClr`);if(t.exists())return t.attr(`val`);let n=e.child(`sysClr`);if(n.exists())return n.attr(`lastClr`)??n.attr(`val`)}function MR(e){let t={};for(let n of e.children(`font`)){let e=n.attr(`script`),r=n.attr(`typeface`);e&&r&&(t[e]=r)}let n={latin:e.child(`latin`).attr(`typeface`)??``,ea:e.child(`ea`).attr(`typeface`)??``,cs:e.child(`cs`).attr(`typeface`)??``};return Object.keys(t).length>0&&(n.scripts=t),n}function NR(e){let t=e.child(`themeElements`),n=t.exists()?t:e,r=n.child(`clrScheme`),i=new Map;for(let e of AR){let t=r.child(e);if(t.exists()){let n=jR(t);n!==void 0&&i.set(e,n)}}let a=n.child(`fontScheme`),o=MR(a.child(`majorFont`)),s=MR(a.child(`minorFont`)),c=n.child(`fmtScheme`);return{colorScheme:i,majorFont:o,minorFont:s,fillStyles:c.child(`fillStyleLst`).allChildren(),bgFillStyles:c.child(`bgFillStyleLst`).allChildren(),lineStyles:c.child(`lnStyleLst`).allChildren(),effectStyles:c.child(`effectStyleLst`).allChildren()}}function PR(e){for(let t of[`nvSpPr`,`nvPicPr`,`nvGraphicFramePr`,`nvCxnSpPr`]){let n=e.child(t);if(n.exists()&&n.child(`nvPr`).child(`ph`).exists())return!0}return!1}function FR(e){let t=e.child(`spPr`).child(`xfrm`),n=t.exists()?t:e.child(`xfrm`);if(!n.exists())return null;let r=n.child(`off`),i=n.child(`ext`);return{offX:r.numAttr(`x`)??0,offY:r.numAttr(`y`)??0,cx:i.numAttr(`cx`)??0,cy:i.numAttr(`cy`)??0}}function IR(e){let t=e.child(`grpSpPr`);if(!t.exists())return null;let n=t.child(`xfrm`);if(!n.exists())return null;let r=n.child(`off`),i=n.child(`ext`),a=n.child(`chOff`),o=n.child(`chExt`),s=r.numAttr(`x`)??0,c=r.numAttr(`y`)??0,l=i.numAttr(`cx`)??0,u=i.numAttr(`cy`)??0,d=a.exists()?a.numAttr(`x`)??0:0,f=a.exists()?a.numAttr(`y`)??0:0,p=o.exists()?o.numAttr(`cx`)??l:l,m=o.exists()?o.numAttr(`cy`)??u:u;return{offX:s,offY:c,cx:l,cy:u,chOffX:d,chOffY:f,chExtCx:p>0?p:1,chExtCy:m>0?m:1}}function LR(e,t){let n=[];for(let r of e.allChildren()){if(r.localName===`grpSp`){let e=IR(r);if(e&&e.chExtCx>0&&e.chExtCy>0){let i=e.cx/e.chExtCx,a=e.cy/e.chExtCy,o=e.offX-e.chOffX*i,s=e.offY-e.chOffY*a,c=t?{offX:t.offX+o*t.scaleX,offY:t.offY+s*t.scaleY,scaleX:t.scaleX*i,scaleY:t.scaleY*a}:{offX:o,offY:s,scaleX:i,scaleY:a};n.push(...LR(r,c))}else n.push(...LR(r,t));continue}if(!PR(r))continue;let e=FR(r);if(!e){n.push({node:r});continue}if(t){let i=t.offX+e.offX*t.scaleX,a=t.offY+e.offY*t.scaleY,o=e.cx*t.scaleX,s=e.cy*t.scaleY;n.push({node:r,absoluteXfrm:{position:{x:Y(i),y:Y(a)},size:{w:Y(o),h:Y(s)}}})}else n.push({node:r,absoluteXfrm:{position:{x:Y(e.offX),y:Y(e.offY)},size:{w:Y(e.cx),h:Y(e.cy)}}})}return n}function RR(e){let t=new Map,n=e.element;if(!n)return t;let r=n.attributes;for(let e=0;e<r.length;e++){let n=r[e];t.set(n.localName,n.value)}return t}function zR(e){let t=e.child(`cSld`),n=t.child(`bg`),r=n.exists()?n:void 0,i=t.child(`spTree`),a=RR(e.child(`clrMap`)),o=e.child(`txStyles`),s=o.child(`titleStyle`),c=o.child(`bodyStyle`),l=o.child(`otherStyle`),u=e.child(`defaultTextStyle`),d=LR(i,null),f=d.map(e=>e.node);return{colorMap:a,background:r,textStyles:{titleStyle:s.exists()?s:void 0,bodyStyle:c.exists()?c:void 0,otherStyle:l.exists()?l:void 0},defaultTextStyle:u.exists()?u:void 0,placeholders:f,placeholderEntries:d,spTree:i,rels:new Map}}var BR=new Set([`1`,`true`,`t`,`on`]),VR=new Set([`0`,`false`,`f`,`off`]);function HR(e,t=!1){if(e===void 0)return t;let n=e.trim().toLowerCase();return BR.has(n)?!0:!VR.has(n)&&t}function UR(e){return HR(e,!0)}function WR(e){for(let t of[`nvSpPr`,`nvPicPr`,`nvGraphicFramePr`,`nvCxnSpPr`]){let n=e.child(t);if(n.exists()&&n.child(`nvPr`).child(`ph`).exists())return!0}return!1}function GR(e){let t=e.child(`spPr`).child(`xfrm`),n=t.exists()?t:e.child(`xfrm`);if(!n.exists())return null;let r=n.child(`off`),i=n.child(`ext`);return{offX:r.numAttr(`x`)??0,offY:r.numAttr(`y`)??0,cx:i.numAttr(`cx`)??0,cy:i.numAttr(`cy`)??0}}function KR(e){let t=e.child(`grpSpPr`);if(!t.exists())return null;let n=t.child(`xfrm`);if(!n.exists())return null;let r=n.child(`off`),i=n.child(`ext`),a=n.child(`chOff`),o=n.child(`chExt`),s=r.numAttr(`x`)??0,c=r.numAttr(`y`)??0,l=i.numAttr(`cx`)??0,u=i.numAttr(`cy`)??0,d=a.exists()?a.numAttr(`x`)??0:0,f=a.exists()?a.numAttr(`y`)??0:0,p=o.exists()?o.numAttr(`cx`)??l:l,m=o.exists()?o.numAttr(`cy`)??u:u;return{offX:s,offY:c,cx:l,cy:u,chOffX:d,chOffY:f,chExtCx:p>0?p:1,chExtCy:m>0?m:1}}function qR(e,t){let n=[];for(let r of e.allChildren()){if(r.localName===`grpSp`){let e=KR(r);if(e&&e.chExtCx>0&&e.chExtCy>0){let i=e.cx/e.chExtCx,a=e.cy/e.chExtCy,o=e.offX-e.chOffX*i,s=e.offY-e.chOffY*a,c=qR(r,t?{offX:t.offX+o*t.scaleX,offY:t.offY+s*t.scaleY,scaleX:t.scaleX*i,scaleY:t.scaleY*a}:{offX:o,offY:s,scaleX:i,scaleY:a});n.push(...c)}else n.push(...qR(r,t));continue}if(!WR(r))continue;let e=GR(r);if(!e){n.push({node:r});continue}if(t){let i=t.offX+e.offX*t.scaleX,a=t.offY+e.offY*t.scaleY,o=e.cx*t.scaleX,s=e.cy*t.scaleY;n.push({node:r,absoluteXfrm:{position:{x:Y(i),y:Y(a)},size:{w:Y(o),h:Y(s)}}})}else n.push({node:r,absoluteXfrm:{position:{x:Y(e.offX),y:Y(e.offY)},size:{w:Y(e.cx),h:Y(e.cy)}}})}return n}function JR(e){let t=new Map,n=e.element;if(!n)return t;let r=n.attributes;for(let e=0;e<r.length;e++){let n=r[e];t.set(n.localName,n.value)}return t}function YR(e){let t=e.child(`cSld`),n=t.child(`bg`),r=n.exists()?n:void 0,i=t.child(`spTree`),a,o=e.child(`clrMapOvr`);if(o.exists()){let e=o.child(`overrideClrMapping`);e.exists()&&(a=JR(e))}let s=qR(i,null),c=UR(e.attr(`showMasterSp`));return{colorMapOverride:a,background:r,placeholders:s,spTree:i,rels:new Map,showMasterSp:c}}function XR(e){for(let t of[`nvSpPr`,`nvPicPr`,`nvGrpSpPr`,`nvGraphicFramePr`,`nvCxnSpPr`]){let n=e.child(t);if(n.exists())return{cNvPr:n.child(`cNvPr`),nvPr:n.child(`nvPr`)}}return{cNvPr:e.child(`cNvPr`),nvPr:e.child(`nvPr`)}}function ZR(e){let t=e.child(`spPr`);if(t.exists()){let e=t.child(`xfrm`);if(e.exists())return e}let n=e.child(`grpSpPr`);if(n.exists()){let e=n.child(`xfrm`);if(e.exists())return e}let r=e.child(`xfrm`);return r.exists()?r:e.child(`__nonexistent__`)}function QR(e){let t=e.child(`ph`);if(t.exists())return{type:t.attr(`type`),idx:t.numAttr(`idx`)}}function $R(e){let{cNvPr:t,nvPr:n}=XR(e),r=t.attr(`id`)??``,i=t.attr(`name`)??``,a=ZR(e),o=a.child(`off`),s=a.child(`ext`),c={x:Y(o.numAttr(`x`)??0),y:Y(o.numAttr(`y`)??0)},l={w:Y(s.numAttr(`cx`)??0),h:Y(s.numAttr(`cy`)??0)},u=DR(a.numAttr(`rot`)??0),d=HR(a.attr(`flipH`)),f=HR(a.attr(`flipV`)),p=QR(n),m,h=t.child(`hlinkClick`);return h.exists()&&(m={action:h.attr(`action`)??void 0,rId:h.attr(`id`)??h.attr(`r:id`)??void 0,tooltip:h.attr(`tooltip`)??void 0}),{id:r,name:i,position:c,size:l,rotation:u,flipH:d,flipV:f,placeholder:p,hlinkClick:m,source:e}}function ez(e){let t=e.child(`pPr`),n=t.numAttr(`lvl`)??0,r=[];for(let t of e.children(`r`)){let e=t.child(`rPr`),n=t.child(`t`);r.push({text:n.text(),properties:e.exists()?e:void 0})}for(let t of e.allChildren())t.localName;let i=[];for(let t of e.allChildren()){let e=t.localName;if(e===`r`){let e=t.child(`rPr`),n=t.child(`t`);i.push({text:n.text(),properties:e.exists()?e:void 0})}else if(e===`br`){let e=t.child(`rPr`);i.push({text:`
19
+ `,properties:e.exists()?e:void 0})}else if(e===`tab`)i.push({text:` `});else if(e===`fld`){let e=t.child(`rPr`),n=t.child(`t`);i.push({text:n.text(),properties:e.exists()?e:void 0})}}let a=e.child(`endParaRPr`);return{properties:t.exists()?t:void 0,runs:i.length>0?i:r,level:n,endParaRPr:a.exists()?a:void 0}}function tz(e){if(!e.exists())return;let t=e.child(`bodyPr`),n=e.child(`lstStyle`),r=[];for(let t of e.children(`p`))r.push(ez(t));return{bodyProperties:t.exists()?t:void 0,listStyle:n.exists()?n:void 0,paragraphs:r}}var nz=[`solidFill`,`gradFill`,`blipFill`,`pattFill`,`grpFill`,`noFill`];function rz(e){for(let t of nz){let n=e.child(t);if(n.exists())return n}}function iz(e){let t=new Map;for(let n of e.children(`gd`)){let e=n.attr(`name`),r=n.attr(`fmla`)??``;if(!e)continue;let i=r.match(/val\s+(-?\d+)/);if(i)t.set(e,Number(i[1]));else{let n=Number(r);Number.isNaN(n)||t.set(e,n)}}return t}function az(e){let t=$R(e),n=e.child(`spPr`),r=n.child(`prstGeom`),i=r.attr(`prst`),a=iz(r.child(`avLst`)),o=n.child(`custGeom`),s=o.exists()?o:void 0,c=rz(n),l=n.child(`ln`),u=l.exists()?l:void 0,d,f;if(l.exists()){let e=l.child(`headEnd`);if(e.exists()){let t=e.attr(`type`);t&&t!==`none`&&(d={type:t,w:e.attr(`w`),len:e.attr(`len`)})}let t=l.child(`tailEnd`);if(t.exists()){let e=t.attr(`type`);e&&e!==`none`&&(f={type:e,w:t.attr(`w`),len:t.attr(`len`)})}}let p=tz(e.child(`txBody`)),m,h=e.child(`txXfrm`);if(h.exists()){let e=h.child(`off`),t=h.child(`ext`),r=n.child(`xfrm`),i=r.child(`off`),a=r.child(`ext`),o=i.numAttr(`x`)??0,s=i.numAttr(`y`)??0,c=a.numAttr(`cx`)??0,l=a.numAttr(`cy`)??0,u=e.numAttr(`x`)??0,d=e.numAttr(`y`)??0,f=t.numAttr(`cx`)??0,p=t.numAttr(`cy`)??0;if(c>0&&l>0){let e=DR(h.numAttr(`rot`)??0),t=u-o,n=d-s,r=Math.abs(Math.round(e))%360==180,i=r?c-(t+f):t,a=r?l-(n+p):n;m={x:Y(i),y:Y(a),w:Y(f),h:Y(p),rotation:e}}}return{...t,nodeType:`shape`,presetGeometry:i,adjustments:a,customGeometry:s,fill:c,line:u,headEnd:d,tailEnd:f,textBody:p,textBoxBounds:m}}var oz=1e5;function sz(e){let t=$R(e),n=e.child(`blipFill`),r=n.child(`blip`),i=r.attr(`embed`)??r.attr(`r:embed`),a=r.attr(`link`)??r.attr(`r:link`),o=n.child(`srcRect`),s;if(o.exists()){let e=o.numAttr(`t`),t=o.numAttr(`b`),n=o.numAttr(`l`),r=o.numAttr(`r`);(e!==void 0||t!==void 0||n!==void 0||r!==void 0)&&(s={top:(e??0)/oz,bottom:(t??0)/oz,left:(n??0)/oz,right:(r??0)/oz})}let c=e.child(`spPr`),l=c.child(`solidFill`),u=c.child(`gradFill`),d=l.exists()?l:u.exists()?u:void 0,f=c.child(`ln`),p=f.exists()?f:void 0,m=c.child(`prstGeom`),h=m.exists()?m.attr(`prst`):void 0,g=c.child(`custGeom`),_=g.exists()?g:void 0,v=e.child(`nvPicPr`).child(`nvPr`),y=v.child(`videoFile`),b=v.child(`audioFile`),x=y.exists(),S=b.exists(),C;return x?C=y.attr(`link`)??y.attr(`r:link`):S&&(C=b.attr(`link`)??b.attr(`r:link`)),{...t,nodeType:`picture`,blipEmbed:i,blipLink:a,crop:s,fill:d,line:p,presetGeometry:h,customGeometry:_,isVideo:x||void 0,isAudio:S||void 0,mediaRId:C}}function cz(e){let t=e.numAttr(`gridSpan`)??1,n=e.numAttr(`rowSpan`)??1,r=HR(e.attr(`hMerge`)),i=HR(e.attr(`vMerge`)),a=tz(e.child(`txBody`)),o=e.child(`tcPr`);return{gridSpan:t,rowSpan:n,hMerge:r,vMerge:i,textBody:a,properties:o.exists()?o:void 0}}function lz(e){let t=Y(e.numAttr(`h`)??0),n=[];for(let t of e.children(`tc`))n.push(cz(t));return{height:t,cells:n}}function uz(e){return e.child(`graphic`).child(`graphicData`).child(`tbl`)}function dz(e){let t=e.child(`tableStyleId`);if(t.exists())return t.text()||t.attr(`val`)||void 0;let n=e.child(`tblStyle`);return n.exists()?n.attr(`val`)??(n.text()||void 0):e.attr(`tblStyle`)??void 0}function fz(e){let t=$R(e),n=uz(e),r=n.child(`tblGrid`),i=[];for(let e of r.children(`gridCol`))i.push(Y(e.numAttr(`w`)??0));let a=[];for(let e of n.children(`tr`))a.push(lz(e));let o=n.child(`tblPr`),s=dz(o);return{...t,nodeType:`table`,columns:i,rows:a,properties:o.exists()?o:void 0,tableStyleId:s}}var pz=new Set([`sp`,`pic`,`grpSp`,`graphicFrame`,`cxnSp`]);function mz(e){let t=$R(e),n=e.child(`grpSpPr`).child(`xfrm`),r=n.child(`chOff`),i=n.child(`chExt`),a=r.exists()?{x:Y(r.numAttr(`x`)??0),y:Y(r.numAttr(`y`)??0)}:{x:0,y:0},o=(()=>{if(!i.exists())return{w:t.size.w,h:t.size.h};let e=i.numAttr(`cx`),n=i.numAttr(`cy`);return{w:e!==void 0&&e>0?Y(e):t.size.w,h:n!==void 0&&n>0?Y(n):t.size.h}})(),s=[];for(let t of e.allChildren())pz.has(t.localName)&&s.push(t);return{...t,nodeType:`group`,childOffset:a,childExtent:o,children:s}}function hz(e,t,n){let r=$R(e),i=e.child(`graphic`).child(`graphicData`),a;for(let e of i.allChildren())if(e.localName===`chart`){a=e.attr(`r:id`)||e.attr(`id`);break}if(!a)return;let o=t.get(a);if(!o)return;let s=ER(n.substring(0,n.lastIndexOf(`/`)),o.target);return{...r,nodeType:`chart`,chartPath:s}}var gz=new Set([`sp`,`pic`,`grpSp`,`graphicFrame`,`cxnSp`]),_z=[`nvSpPr`,`nvPicPr`,`nvGrpSpPr`,`nvGraphicFramePr`,`nvCxnSpPr`];function vz(e){for(let t of _z){let n=e.child(t);if(n.exists()&&n.child(`nvPr`).child(`ph`).exists())return!0}return!1}function yz(e){return e.child(`graphic`).child(`graphicData`).child(`tbl`).exists()}function bz(e){return(e.child(`graphic`).child(`graphicData`).attr(`uri`)||``).includes(`chart`)}function xz(e){return(e.child(`graphic`).child(`graphicData`).attr(`uri`)||``).includes(`diagram`)}function Sz(e){if(!e)return``;let t=e.lastIndexOf(`/`);return t>=0?e.substring(0,t):``}function Cz(e){let t=e.child(`graphic`).child(`graphicData`);if(!(t.attr(`uri`)||``).includes(`ole`))return null;let n=e=>{let t=e.child(`blipFill`).child(`blip`);return!!(t.attr(`embed`)??t.attr(`r:embed`)??t.attr(`link`)??t.attr(`r:link`))},r=t.child(`oleObj`);if(r.exists()){let e=r.child(`pic`);if(e.exists()&&n(e))return e}let i=t.child(`AlternateContent`);if(!i.exists())return null;for(let e of[`Fallback`,`Choice`]){let t=i.child(e).child(`oleObj`);if(!t.exists())continue;let r=t.child(`pic`);if(r.exists()&&n(r))return r}return null}function wz(e){let t=Cz(e);if(!t)return;let n=$R(e),r=sz(t);if(!(!r.blipEmbed&&!r.blipLink))return{...r,...n,nodeType:`picture`,source:t}}function Tz(e,t){let n=xR(t).child(`spTree`),r=[];if(n.exists())for(let e of n.allChildren())gz.has(e.localName)&&r.push(e);return{...e,nodeType:`group`,childOffset:{x:0,y:0},childExtent:{w:Math.max(1,e.size.w),h:Math.max(1,e.size.h)},children:r}}function Ez(e,t){if(!t.diagramDrawings)return;let n=$R(e),r=Sz(t.partPath),i=Array.from(t.rels.values()).filter(e=>e.type.includes(`diagramDrawing`)||e.target.includes(`diagrams/drawing`)).map(e=>{let t=e.target.match(/drawing(\d+)/);return{target:e.target,num:t?Number.parseInt(t[1],10):void 0}}),a=e.child(`graphic`).child(`graphicData`).child(`relIds`);if(a.exists()){let e=a.attr(`r:dm`)??a.attr(`dm`),n=(e?t.rels.get(e):void 0)?.target.match(/data(\d+)/)?.[1];if(n){let e=Number.parseInt(n,10);i.sort((t,n)=>(t.num===void 0?1/0:Math.abs(t.num-e))-(n.num===void 0?1/0:Math.abs(n.num-e)))}}for(let e of i){let i=ER(r,e.target),a=t.diagramDrawings.get(i);if(a)return Tz(n,a)}}function Dz(e,t){if(!(t.skipPlaceholders&&vz(e)))switch(e.localName){case`sp`:case`cxnSp`:return az(e);case`pic`:return sz(e);case`grpSp`:return mz(e);case`graphicFrame`:return yz(e)?fz(e):bz(e)?hz(e,t.rels,t.partPath??``):xz(e)?Ez(e,t):wz(e);default:return}}function Oz(e){return HR(e,!0)}function kz(e){for(let[,t]of e)if(t.type.includes(`slideLayout`))return t.target;return``}function Az(e,t,n,r=``,i){let a=e.child(`cSld`),o=a.child(`bg`),s=o.exists()?o:void 0,c=a.child(`spTree`),l=[];for(let e of c.allChildren()){let t=Dz(e,{rels:n,partPath:r,diagramDrawings:i});t&&l.push(t)}let u=kz(n),d=Oz(e.attr(`showMasterSp`));return{index:t,hidden:!Oz(e.attr(`show`)),nodes:l,background:s,layoutIndex:u,rels:n,slidePath:r,showMasterSp:d,nodesMaterialized:!0}}function jz(e,t,n,r=``){return{index:t,nodes:[],layoutIndex:kz(n),rels:n,slidePath:r,showMasterSp:!0,sourceXml:e,nodesMaterialized:!1}}function Mz(e,t){if(e.nodesMaterialized)return;if(!e.sourceXml){e.nodesMaterialized=!0;return}let n=e.layoutIndex,r=Az(xR(e.sourceXml),e.index,e.rels,e.slidePath,t);e.hidden=r.hidden,e.nodes=r.nodes,e.background=r.background,e.layoutIndex=n||r.layoutIndex,e.showMasterSp=r.showMasterSp,e.nodesMaterialized=!0,e.sourceXml=void 0}function Nz(e){let t=e.lastIndexOf(`/`);return t>=0?e.substring(0,t):``}function Pz(e){return`${Nz(e)}/_rels/${e.substring(e.lastIndexOf(`/`)+1)}.rels`}function Fz(e){return e.includes(`wps`)||e.includes(`kso`)||e.includes(`Kingsoft`)||e.includes(`WPS`)}function Iz(e,t){for(let[,n]of e)if(n.type.includes(t))return n}function Lz(e,t){let n=[];for(let[r,i]of e)i.type.includes(t)&&n.push([r,i]);return n}function Rz(e,t={}){let n=xR(e.presentation),r=TR(e.presentationRels),i=n.child(`sldSz`),a=Y(i.numAttr(`cx`)??9144e3),o=Y(i.numAttr(`cy`)??6858e3),s=Fz(e.presentation),c=n.child(`defaultTextStyle`),l=new Map;for(let[t,n]of e.themes){let e=xR(n);l.set(t,NR(e))}let u=new Map,d=new Map;for(let[t,n]of e.slideMasters){let r=zR(xR(n)),i=Pz(t),a=e.slideMasterRels.get(i);if(a){let e=TR(a);r.rels=e;let n=Iz(e,`theme`);if(n){let e=ER(Nz(t),n.target);d.set(t,e)}}u.set(t,r)}let f=new Map,p=new Map;for(let[t,n]of e.slideLayouts){let r=YR(xR(n)),i=Pz(t),a=e.slideLayoutRels.get(i);if(a){let e=TR(a);r.rels=e;let n=Iz(e,`slideMaster`);if(n){let e=ER(Nz(t),n.target);p.set(t,e)}}f.set(t,r)}let m=new Map,h=new Map,g=new Map,_=new Map;for(let[t,n]of e.charts){let r=xR(n);r.exists()&&m.set(t,r);let i=Pz(t),a=e.chartRels?.get(i);if(!a)continue;let o=TR(a),s=Iz(o,`chartStyle`);if(s){let n=ER(Nz(t),s.target),r=e.chartStyles?.get(n);if(r){let e=xR(r);e.exists()&&g.set(t,e)}}let c=Iz(o,`chartColorStyle`);if(c){let n=ER(Nz(t),c.target),r=e.chartColors?.get(n);if(r){let e=xR(r);e.exists()&&_.set(t,e)}}let l=Iz(o,`themeOverride`);if(!l)continue;let u=ER(Nz(t),l.target),d=e.themeOverrides?.get(u)??e.themes.get(u);if(!d)continue;let f=xR(d);f.exists()&&h.set(t,NR(f))}let v=n.child(`sldIdLst`),y=[];for(let e of v.children(`sldId`)){let t=e.attr(`r:id`)??e.attr(`id`);if(t){let e=r.get(t);if(e){let t=ER(`ppt`,e.target);y.push(t)}}}if(y.length===0){let e=Lz(r,`slide`);e.sort((e,t)=>(parseInt(e[0].replace(/\D/g,``),10)||0)-(parseInt(t[0].replace(/\D/g,``),10)||0));for(let[,t]of e)if(t.type.includes(`/slide`)&&!t.type.includes(`slideLayout`)&&!t.type.includes(`slideMaster`)){let e=ER(`ppt`,t.target);y.push(e)}}let b=[],x=new Map;for(let n=0;n<y.length;n++){let r=y[n],i=e.slides.get(r);if(!i)continue;let a=Pz(r),o=e.slideRels.get(a),s=o?TR(o):new Map,c=t.lazySlides?jz(i,n,s,r):Az(xR(i),n,s,r,e.diagramDrawings);if(c.layoutIndex){let e=ER(Nz(r),c.layoutIndex);c.layoutIndex=e,x.set(n,e)}b.push(c)}let S;if(e.tableStyles){let t=xR(e.tableStyles);t.exists()&&(S=t)}let C={width:a,height:o,slides:b,layouts:f,masters:u,themes:l,slideToLayout:x,layoutToMaster:p,masterToTheme:d,media:e.media,mediaResolver:e.mediaResolver,tableStyles:S,defaultTextStyle:c.exists()?c:void 0,charts:m,diagramDrawings:e.diagramDrawings,chartThemes:h,chartStyles:g,chartColorStyles:_,isWps:s};return t.lazySlides||Uz(C),C}function zz(e){for(let t of[`nvSpPr`,`nvPicPr`,`nvGrpSpPr`,`nvGraphicFramePr`,`nvCxnSpPr`]){let n=e.child(t);if(n.exists()){let e=n.child(`nvPr`).child(`ph`);if(e.exists()){let t=e.attr(`type`),n=e.attr(`idx`),r=n===void 0?void 0:Number(n);return{type:t,idx:r!==void 0&&!isNaN(r)?r:void 0}}}}return{}}function Bz(e){let t=e.child(`spPr`).child(`xfrm`),n=t.exists()?t:e.child(`xfrm`);if(n.exists()){let e=n.child(`off`),t=n.child(`ext`),r=e.numAttr(`x`),i=t.numAttr(`cx`);if(r!==void 0&&i!==void 0)return{position:{x:Y(e.numAttr(`x`)??0),y:Y(e.numAttr(`y`)??0)},size:{w:Y(t.numAttr(`cx`)??0),h:Y(t.numAttr(`cy`)??0)}}}}function Vz(e,t,n){let r;for(let i of e){let e=zz(i.node);if(t!==void 0&&e.type===t&&n!==void 0&&e.idx===n||(t!==void 0&&e.type===t&&!r&&(r=i),n!==void 0&&e.idx===n&&t===void 0&&e.type===void 0))return i}if(t===void 0&&n!==void 0){for(let t of e)if(zz(t.node).idx===n)return t}return r}function Hz(e){return e.placeholderEntries??e.placeholders.map(e=>({node:e}))}function Uz(e){for(let t=0;t<e.slides.length;t++)Wz(e,e.slides[t])}function Wz(e,t){if(t.placeholderInheritanceResolved)return;let n=e.slideToLayout.get(t.index)||t.layoutIndex,r=n?e.layouts.get(n):void 0,i=n?e.layoutToMaster.get(n):void 0,a=i?e.masters.get(i):void 0;Zz(t.nodes,r,a),t.placeholderInheritanceResolved=!0}function Gz(e,t){Mz(t,e.diagramDrawings),Wz(e,t)}function Kz(e){let t=e.child(`txBody`);if(!t.exists())return;let n=t.child(`bodyPr`);return n.exists()?n:void 0}function qz(e,t){if(e.type)return;let n=zz(t);n.type&&(e.type=n.type)}function Jz(e,t){let n=t.childExtent.w>0?t.size.w/t.childExtent.w:1,r=t.childExtent.h>0?t.size.h/t.childExtent.h:1;return n===0||r===0?e:{position:{x:t.childOffset.x+(e.position.x-t.position.x)/n,y:t.childOffset.y+(e.position.y-t.position.y)/r},size:{w:e.size.w/n,h:e.size.h/r}}}function Yz(e,t){return t.parentGroup?Jz(e,t.parentGroup):e}function Xz(e,t,n,r={}){if(!e.placeholder)return;let{type:i,idx:a}=e.placeholder,o=()=>n?Vz(Hz(n),e.placeholder?.type??i,a):void 0,s=e.size.w===0&&e.size.h===0,c=e.position.y<5;if(t){let n=Vz(t.placeholders,i,a);if(n){qz(e.placeholder,n.node);let t=n.absoluteXfrm??Bz(n.node);if(t){let n=Yz(t,r);s?(e.position=n.position,e.size=n.size):c&&(e.position=n.position)}if(`textBody`in e&&e.textBody){let t=Kz(n.node);t&&(e.textBody.layoutBodyProperties=t)}if(t){let t=o();if(t&&(qz(e.placeholder,t.node),`textBody`in e&&e.textBody&&!e.textBody.layoutBodyProperties)){let n=Kz(t.node);n&&(e.textBody.layoutBodyProperties=n)}return}}}let l=o();if(l){qz(e.placeholder,l.node);let t=l.absoluteXfrm??Bz(l.node);if(t){let n=Yz(t,r);s?(e.position=n.position,e.size=n.size):c&&(e.position=n.position)}if(`textBody`in e&&e.textBody&&!e.textBody.layoutBodyProperties){let t=Kz(l.node);t&&(e.textBody.layoutBodyProperties=t)}}}function Zz(e,t,n){for(let r of e)r.nodeType===`group`&&`children`in r,Xz(r,t,n)}function Qz(e,t,n,r,i,a){let o=e.slideToLayout.get(t.index)||``,s=e.layoutToMaster.get(o)||``,c=e.masterToTheme.get(s)||``,l=e.layouts.get(o)||{placeholders:[],spTree:{},rels:new Map,showMasterSp:!0},u=e.masters.get(s)||{colorMap:new Map,textStyles:{},placeholders:[],spTree:{},rels:new Map};return{presentation:e,slide:t,theme:e.themes.get(c)||{colorScheme:new Map,majorFont:{latin:`Calibri`,ea:``,cs:``},minorFont:{latin:`Calibri`,ea:``,cs:``},fillStyles:[],bgFillStyles:[],lineStyles:[],effectStyles:[]},master:u,layout:l,partPath:t.slidePath,layoutPath:o,masterPath:s,mediaUrlCache:n??new Map,colorCache:new Map,pdfjs:i,signal:a,chartInstances:r}}function $z(e){let t=e.replace(/^#/,``);if(t.length!==6&&t.length!==3)return{r:0,g:0,b:0};let n=t.length===3?t[0]+t[0]+t[1]+t[1]+t[2]+t[2]:t,r=parseInt(n,16);return{r:r>>16&255,g:r>>8&255,b:r&255}}function eB(e,t,n){let r=e=>Math.max(0,Math.min(255,Math.round(e)));return`#`+[r(e),r(t),r(n)].map(e=>e.toString(16).padStart(2,`0`)).join(``)}function tB(e,t,n){let r=e/255,i=t/255,a=n/255,o=Math.max(r,i,a),s=Math.min(r,i,a),c=(o+s)/2,l=0,u=0;if(o!==s){let e=o-s;switch(u=c>.5?e/(2-o-s):e/(o+s),o){case r:l=((i-a)/e+(i<a?6:0))*60;break;case i:l=((a-r)/e+2)*60;break;case a:l=((r-i)/e+4)*60}}return{h:l,s:u,l:c}}function nB(e,t,n){if(e=(e%360+360)%360,t=Math.max(0,Math.min(1,t)),n=Math.max(0,Math.min(1,n)),t===0){let e=Math.round(n*255);return{r:e,g:e,b:e}}let r=(e,t,n)=>(n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e),i=n<.5?n*(1+t):n+t-n*t,a=2*n-i,o=e/360;return{r:Math.round(r(a,i,o+1/3)*255),g:Math.round(r(a,i,o)*255),b:Math.round(r(a,i,o-1/3)*255)}}function rB(e){let t=e/255;return t<=.04045?t/12.92:((t+.055)/1.055)**2.4}function iB(e){let t=e<=.0031308?e*12.92:1.055*e**.4166666666666667-.055;return Math.max(0,Math.min(255,Math.round(t*255)))}function aB(e,t){let{r:n,g:r,b:i}=$z(e),a=t/1e5,o=rB(n),s=rB(r),c=rB(i);return eB(iB(o*a+1*(1-a)),iB(s*a+1*(1-a)),iB(c*a+1*(1-a)))}function oB(e,t){let{r:n,g:r,b:i}=$z(e),a=t/1e5;return eB(iB(rB(n)*a),iB(rB(r)*a),iB(rB(i)*a))}function sB(e,t){let{r:n,g:r,b:i}=$z(e),{h:a,s:o,l:s}=tB(n,r,i),c=nB(a,o,Math.max(0,Math.min(1,t/1e5*s)));return eB(c.r,c.g,c.b)}function cB(e,t){let{r:n,g:r,b:i}=$z(e),{h:a,s:o,l:s}=tB(n,r,i),c=nB(a,o,Math.max(0,Math.min(1,s+t/1e5)));return eB(c.r,c.g,c.b)}function lB(e,t){let{r:n,g:r,b:i}=$z(e),{h:a,s:o,l:s}=tB(n,r,i),c=nB(a,Math.max(0,Math.min(1,t/1e5*o)),s);return eB(c.r,c.g,c.b)}function uB(e,t){let{r:n,g:r,b:i}=$z(e),{h:a,s:o,l:s}=tB(n,r,i),c=nB(t/1e5*a%360,o,s);return eB(c.r,c.g,c.b)}function dB(e,t){let{r:n,g:r,b:i}=$z(e),{h:a,s:o,l:s}=tB(n,r,i),c=nB(((a+t/6e4)%360+360)%360,o,s);return eB(c.r,c.g,c.b)}function fB(e,t){let{r:n,g:r,b:i}=$z(e),{h:a,s:o,l:s}=tB(n,r,i),c=nB(a,Math.max(0,Math.min(1,o+t/1e5)),s);return eB(c.r,c.g,c.b)}function pB(e){return e/1e5*255}function mB(e,t,n){let r=$z(e);return r[t]=n(r[t]),eB(r.r,r.g,r.b)}function hB(e,t,n){return mB(e,t,e=>n/1e5*e)}function gB(e,t,n){return mB(e,t,e=>e+pB(n))}function _B(e,t,n){return mB(e,t,()=>pB(n))}function vB(e,t){let{r:n,g:r,b:i}=$z(e),{h:a,s:o}=tB(n,r,i),s=nB(a,o,t/1e5);return eB(s.r,s.g,s.b)}function yB(e,t){let{r:n,g:r,b:i}=$z(e),{h:a,l:o}=tB(n,r,i),s=nB(a,t/1e5,o);return eB(s.r,s.g,s.b)}function bB(e,t){let{r:n,g:r,b:i}=$z(e),{s:a,l:o}=tB(n,r,i),s=nB(t/6e4,a,o);return eB(s.r,s.g,s.b)}function xB(e){let{r:t,g:n,b:r}=$z(e);return eB(255-t,255-n,255-r)}function SB(e){let{r:t,g:n,b:r}=$z(e),i=.2126*t+.7152*n+.0722*r;return eB(i,i,i)}function CB(e){let{r:t,g:n,b:r}=$z(e),{h:i,s:a,l:o}=tB(t,n,r),s=nB(i+180,a,o);return eB(s.r,s.g,s.b)}function wB(e){let{r:t,g:n,b:r}=$z(e);return eB(rB(t)*255,rB(n)*255,rB(r)*255)}function TB(e){let{r:t,g:n,b:r}=$z(e);return eB(iB(t/255),iB(n/255),iB(r/255))}function EB(e){return Math.max(0,Math.min(1,e/1e5))}function DB(e,t){let n=e,r=1;for(let e of t)switch(e.name.startsWith(`a:`)?e.name.slice(2):e.name){case`tint`:n=aB(n,e.val);break;case`shade`:n=oB(n,e.val);break;case`red`:n=_B(n,`r`,e.val);break;case`green`:n=_B(n,`g`,e.val);break;case`blue`:n=_B(n,`b`,e.val);break;case`redMod`:n=hB(n,`r`,e.val);break;case`greenMod`:n=hB(n,`g`,e.val);break;case`blueMod`:n=hB(n,`b`,e.val);break;case`redOff`:n=gB(n,`r`,e.val);break;case`greenOff`:n=gB(n,`g`,e.val);break;case`blueOff`:n=gB(n,`b`,e.val);break;case`lum`:n=vB(n,e.val);break;case`lumMod`:n=sB(n,e.val);break;case`lumOff`:n=cB(n,e.val);break;case`sat`:n=yB(n,e.val);break;case`satMod`:n=lB(n,e.val);break;case`hue`:n=bB(n,e.val);break;case`hueMod`:n=uB(n,e.val);break;case`hueOff`:n=dB(n,e.val);break;case`satOff`:n=fB(n,e.val);break;case`inv`:n=xB(n);break;case`gray`:n=SB(n);break;case`comp`:n=CB(n);break;case`gamma`:n=wB(n);break;case`invGamma`:n=TB(n);break;case`alpha`:r=EB(e.val);break;case`alphaMod`:case`alphaModFix`:r=Math.max(0,Math.min(1,r*(e.val/1e5)));break;case`alphaOff`:r=Math.max(0,Math.min(1,r+e.val/1e5))}return{color:n,alpha:r}}var OB={black:`#000000`,white:`#FFFFFF`,red:`#FF0000`,green:`#008000`,blue:`#0000FF`,yellow:`#FFFF00`,cyan:`#00FFFF`,magenta:`#FF00FF`,orange:`#FFA500`,purple:`#800080`,brown:`#A52A2A`,pink:`#FFC0CB`,gray:`#808080`,grey:`#808080`,lime:`#00FF00`,navy:`#000080`,teal:`#008080`,maroon:`#800000`,olive:`#808000`,silver:`#C0C0C0`,aqua:`#00FFFF`,fuchsia:`#FF00FF`,aliceBlue:`#F0F8FF`,antiqueWhite:`#FAEBD7`,aquamarine:`#7FFFD4`,azure:`#F0FFFF`,beige:`#F5F5DC`,bisque:`#FFE4C4`,blanchedAlmond:`#FFEBCD`,blueViolet:`#8A2BE2`,burlyWood:`#DEB887`,cadetBlue:`#5F9EA0`,chartreuse:`#7FFF00`,chocolate:`#D2691E`,coral:`#FF7F50`,cornflowerBlue:`#6495ED`,cornsilk:`#FFF8DC`,crimson:`#DC143C`,darkBlue:`#00008B`,darkCyan:`#008B8B`,darkGoldenrod:`#B8860B`,darkGray:`#A9A9A9`,darkGrey:`#A9A9A9`,darkGreen:`#006400`,darkKhaki:`#BDB76B`,darkMagenta:`#8B008B`,darkOliveGreen:`#556B2F`,darkOrange:`#FF8C00`,darkOrchid:`#9932CC`,darkRed:`#8B0000`,darkSalmon:`#E9967A`,darkSeaGreen:`#8FBC8F`,darkSlateBlue:`#483D8B`,darkSlateGray:`#2F4F4F`,darkSlateGrey:`#2F4F4F`,darkTurquoise:`#00CED1`,darkViolet:`#9400D3`,deepPink:`#FF1493`,deepSkyBlue:`#00BFFF`,dimGray:`#696969`,dimGrey:`#696969`,dodgerBlue:`#1E90FF`,firebrick:`#B22222`,floralWhite:`#FFFAF0`,forestGreen:`#228B22`,gainsboro:`#DCDCDC`,ghostWhite:`#F8F8FF`,gold:`#FFD700`,goldenrod:`#DAA520`,greenYellow:`#ADFF2F`,honeydew:`#F0FFF0`,hotPink:`#FF69B4`,indianRed:`#CD5C5C`,indigo:`#4B0082`,ivory:`#FFFFF0`,khaki:`#F0E68C`,lavender:`#E6E6FA`,lavenderBlush:`#FFF0F5`,lawnGreen:`#7CFC00`,lemonChiffon:`#FFFACD`,lightBlue:`#ADD8E6`,lightCoral:`#F08080`,lightCyan:`#E0FFFF`,lightGoldenrodYellow:`#FAFAD2`,lightGray:`#D3D3D3`,lightGrey:`#D3D3D3`,lightGreen:`#90EE90`,lightPink:`#FFB6C1`,lightSalmon:`#FFA07A`,lightSeaGreen:`#20B2AA`,lightSkyBlue:`#87CEFA`,lightSlateGray:`#778899`,lightSlateGrey:`#778899`,lightSteelBlue:`#B0C4DE`,lightYellow:`#FFFFE0`,limeGreen:`#32CD32`,linen:`#FAF0E6`,mediumAquamarine:`#66CDAA`,mediumBlue:`#0000CD`,mediumOrchid:`#BA55D3`,mediumPurple:`#9370DB`,mediumSeaGreen:`#3CB371`,mediumSlateBlue:`#7B68EE`,mediumSpringGreen:`#00FA9A`,mediumTurquoise:`#48D1CC`,mediumVioletRed:`#C71585`,midnightBlue:`#191970`,mintCream:`#F5FFFA`,mistyRose:`#FFE4E1`,moccasin:`#FFE4B5`,navajoWhite:`#FFDEAD`,oldLace:`#FDF5E6`,oliveDrab:`#6B8E23`,orangeRed:`#FF4500`,orchid:`#DA70D6`,paleGoldenrod:`#EEE8AA`,paleGreen:`#98FB98`,paleTurquoise:`#AFEEEE`,paleVioletRed:`#DB7093`,papayaWhip:`#FFEFD5`,peachPuff:`#FFDAB9`,peru:`#CD853F`,plum:`#DDA0DD`,powderBlue:`#B0E0E6`,rosyBrown:`#BC8F8F`,royalBlue:`#4169E1`,saddleBrown:`#8B4513`,salmon:`#FA8072`,sandyBrown:`#F4A460`,seaGreen:`#2E8B57`,seaShell:`#FFF5EE`,sienna:`#A0522D`,skyBlue:`#87CEEB`,slateBlue:`#6A5ACD`,slateGray:`#708090`,slateGrey:`#708090`,snow:`#FFFAFA`,springGreen:`#00FF7F`,steelBlue:`#4682B4`,tan:`#D2B48C`,thistle:`#D8BFD8`,tomato:`#FF6347`,turquoise:`#40E0D0`,violet:`#EE82EE`,wheat:`#F5DEB3`,whiteSmoke:`#F5F5F5`,yellowGreen:`#9ACD32`};function kB(e){if(OB[e]!==void 0)return OB[e];let t=e.toLowerCase();for(let[e,n]of Object.entries(OB))if(e.toLowerCase()===t)return n}function AB(e){let t=[e.localName,e.attr(`val`)??``];for(let n of e.allChildren()){let e=n.localName,r=n.attr(`val`)??n.attr(`amt`);e&&t.push(`${e}:${r??``}`);for(let e of n.allChildren()){let n=e.localName,r=e.attr(`val`)??e.attr(`amt`);n&&t.push(`${n}:${r??``}`)}}return t.join(`|`)}function jB(e){let t=[];for(let n of e.allChildren()){let e=n.localName,r=n.numAttr(`val`)??n.numAttr(`amt`);r!==void 0&&e?t.push({name:e,val:r}):(e===`inv`||e===`gray`||e===`comp`||e===`gamma`||e===`invGamma`)&&t.push({name:e,val:0})}return t}function MB(e,t){let n=e;if(t.layout.colorMapOverride){let r=t.layout.colorMapOverride.get(e);r&&(n=r)}if(n===e){let r=t.master.colorMap.get(e);r&&(n=r)}return t.theme.colorScheme.get(n)||t.theme.colorScheme.get(e)||`000000`}function NB(e,t){let n=AB(e),r=t.colorCache.get(n);if(r)return r;let i=PB(e,t);return t.colorCache.set(n,i),i}function PB(e,t,n){for(let r of e.allChildren()){let e=r.localName,i=jB(r);switch(e){case`srgbClr`:return DB(r.attr(`val`)||`000000`,i);case`schemeClr`:{let e=r.attr(`val`)||`tx1`;if(e.toLowerCase()===`phclr`&&n!=null&&n.exists()){let e=NB(n,t),r=DB(e.color.startsWith(`#`)?e.color.slice(1):e.color,i);return{color:r.color,alpha:r.alpha*e.alpha}}return DB(MB(e,t),i)}case`sysClr`:return DB(r.attr(`lastClr`)||r.attr(`val`)||`000000`,i);case`prstClr`:return DB((kB(r.attr(`val`)||`black`)||`#000000`).replace(`#`,``),i);case`hslClr`:{let e=nB((r.numAttr(`hue`)??0)/6e4,(r.numAttr(`sat`)??0)/1e5,(r.numAttr(`lum`)??0)/1e5);return DB(eB(e.r,e.g,e.b).replace(`#`,``),i)}case`scrgbClr`:return DB(eB(Math.round((r.numAttr(`r`)??0)/1e5*255),Math.round((r.numAttr(`g`)??0)/1e5*255),Math.round((r.numAttr(`b`)??0)/1e5*255)).replace(`#`,``),i)}}let r=e.localName;if(r===`srgbClr`)return DB(e.attr(`val`)||`000000`,jB(e));if(r===`schemeClr`){let r=e.attr(`val`)||`tx1`;if(r.toLowerCase()===`phclr`&&n!=null&&n.exists()){let r=NB(n,t),i=DB(r.color.startsWith(`#`)?r.color.slice(1):r.color,jB(e));return{color:i.color,alpha:i.alpha*r.alpha}}return DB(MB(r,t),jB(e))}if(r===`sysClr`)return DB(e.attr(`lastClr`)||e.attr(`val`)||`000000`,jB(e));if(r===`prstClr`)return DB((kB(e.attr(`val`)||`black`)||`#000000`).replace(`#`,``),jB(e));if(r===`hslClr`){let t=nB((e.numAttr(`hue`)??0)/6e4,(e.numAttr(`sat`)??0)/1e5,(e.numAttr(`lum`)??0)/1e5);return DB(eB(t.r,t.g,t.b).replace(`#`,``),jB(e))}return r===`scrgbClr`?DB(eB(Math.round((e.numAttr(`r`)??0)/1e5*255),Math.round((e.numAttr(`g`)??0)/1e5*255),Math.round((e.numAttr(`b`)??0)/1e5*255)).replace(`#`,``),jB(e)):{color:`#000000`,alpha:1}}function FB(e,t){let{color:n,alpha:r}=NB(e,t);return IB(n,r)}function IB(e,t){let n=e.startsWith(`#`)?e:`#${e}`,{r,g:i,b:a}=$z(n);return t>=1?n:`rgba(${r},${i},${a},${t.toFixed(3)})`}function LB(e,t,n){return n!=null&&n.exists()?PB(e,t,n):NB(e,t)}function RB(e,t){let n=e.child(`solidFill`);if(n.exists()){let{color:e,alpha:r}=NB(n,t);return IB(e,r)}let r=e.child(`gradFill`);if(r.exists())return BB(r,t);if(e.child(`blipFill`).exists())return``;let i=e.child(`pattFill`);return i.exists()?zB(i,t):e.child(`grpFill`).exists()?t.groupFillNode?RB(t.groupFillNode,t):``:e.child(`noFill`).exists()?`transparent`:``}function zB(e,t,n){let r=e.attr(`prst`)??`solid`,i=`#000000`,a=`#ffffff`,o=e.child(`fgClr`);if(o.exists()){let{color:e,alpha:r}=LB(o,t,n);i=IB(e,r)}let s=e.child(`bgClr`);if(s.exists()){let{color:e,alpha:r}=LB(s,t,n);a=IB(e,r)}let c=e=>`${e} 0 0 / 8px 8px, ${a}`,l=(e,t)=>`${e} 0 0 / 8px 8px, ${t} 0 0 / 8px 8px, ${a}`;switch(r){case`solid`:case`solidDmnd`:return i;case`pct5`:case`pct10`:case`pct20`:case`pct25`:return c(`radial-gradient(${i} 1px, transparent 1px)`);case`pct30`:case`pct40`:case`pct50`:return c(`radial-gradient(${i} 1.5px, transparent 1.5px)`);case`pct60`:case`pct70`:case`pct75`:case`pct80`:case`pct90`:return c(`radial-gradient(${i} 2.5px, transparent 2.5px)`);case`horz`:case`ltHorz`:case`narHorz`:case`dkHorz`:return c(`repeating-linear-gradient(0deg, ${i} 0px, ${i} 1px, transparent 1px, transparent 8px)`);case`vert`:case`ltVert`:case`narVert`:case`dkVert`:return c(`repeating-linear-gradient(90deg, ${i} 0px, ${i} 1px, transparent 1px, transparent 8px)`);case`dnDiag`:case`ltDnDiag`:case`narDnDiag`:case`dkDnDiag`:case`wdDnDiag`:return c(`repeating-linear-gradient(45deg, ${i} 0px, ${i} 1px, transparent 1px, transparent 8px)`);case`upDiag`:case`ltUpDiag`:case`narUpDiag`:case`dkUpDiag`:case`wdUpDiag`:return c(`repeating-linear-gradient(-45deg, ${i} 0px, ${i} 1px, transparent 1px, transparent 8px)`);case`smGrid`:case`lgGrid`:case`cross`:return l(`repeating-linear-gradient(0deg, ${i} 0px, ${i} 1px, transparent 1px, transparent 8px)`,`repeating-linear-gradient(90deg, ${i} 0px, ${i} 1px, transparent 1px, transparent 8px)`);case`smCheck`:case`lgCheck`:case`diagCross`:case`openDmnd`:return l(`repeating-linear-gradient(45deg, ${i} 0px, ${i} 1px, transparent 1px, transparent 8px)`,`repeating-linear-gradient(-45deg, ${i} 0px, ${i} 1px, transparent 1px, transparent 8px)`);case`dotGrid`:case`dotDmnd`:return c(`radial-gradient(${i} 1px, transparent 1px)`);case`trellis`:case`weave`:return l(`repeating-linear-gradient(45deg, ${i} 0px, ${i} 2px, transparent 2px, transparent 8px)`,`repeating-linear-gradient(-45deg, ${i} 0px, ${i} 2px, transparent 2px, transparent 8px)`);case`dashDnDiag`:case`dashUpDiag`:case`dashHorz`:case`dashVert`:return c(`repeating-linear-gradient(${r.includes(`Dn`)?`45deg`:r.includes(`Up`)?`-45deg`:r.includes(`Horz`)?`0deg`:`90deg`}, ${i} 0px, ${i} 3px, transparent 3px, transparent 8px)`);case`sphere`:case`shingle`:case`plaid`:case`divot`:case`zigZag`:return c(`radial-gradient(${i} 2px, transparent 2px)`);default:return a}}function BB(e,t,n){let r=e.child(`gsLst`),i=[];for(let e of r.children(`gs`)){let r=OR(e.numAttr(`pos`)??0)*100,{color:a,alpha:o}=LB(e,t,n);i.push({position:r,color:IB(a,o)})}if(i.length===0)return``;i.sort((e,t)=>e.position-t.position);let a=JB(i),o=e.child(`lin`);if(o.exists())return`linear-gradient(${((DR(o.numAttr(`ang`)??0)+90)%360).toFixed(1)}deg, ${a})`;let s=e.child(`path`);if(s.exists()){let e=s.attr(`path`);if(e===`circle`||e===`shape`||e===`rect`){let t=UB(s),{cx:n,cy:r}=WB(t),a=JB(qB({stops:i,cx:n,cy:r,fillToRect:t}));return e===`rect`?`radial-gradient(closest-side at ${(n*100).toFixed(1)}% ${(r*100).toFixed(1)}%, ${a})`:`radial-gradient(ellipse at ${(n*100).toFixed(1)}% ${(r*100).toFixed(1)}%, ${a})`}}return`linear-gradient(180deg, ${a})`}function VB(e,t,n){let r=Y(e.numAttr(`w`)??0),i=`transparent`,a=e.child(`solidFill`);if(a.exists()){let e=a.child(`schemeClr`);if(e.exists()&&(e.attr(`val`)??``).toLowerCase()===`phclr`&&n&&n.exists()){let r=NB(n,t),a=DB(r.color.startsWith(`#`)?r.color.slice(1):r.color,jB(e));i=IB(a.color,a.alpha*r.alpha)}else{let e=NB(a,t);i=IB(e.color,e.alpha)}}else if(n&&n.exists()&&(n.numAttr(`idx`)??0)>0){let e=n.numAttr(`idx`)??0;if(e>0&&t.theme.lineStyles&&t.theme.lineStyles.length>=e){let a=t.theme.lineStyles[e-1];r===0&&(r=Y(a.numAttr(`w`)??0));let o=NB(n,t);i=IB(o.color,o.alpha)}else{let a=NB(n,t);i=IB(a.color,a.alpha),r===0&&e>0&&(r=e*.75)}}if(r===0&&n&&n.exists()){let e=n.numAttr(`idx`)??0;e>0&&t.theme.lineStyles&&t.theme.lineStyles.length>=e?r=Y(t.theme.lineStyles[e-1].numAttr(`w`)??0):e>0&&(r=e*.75)}r===0&&i!==`transparent`&&!e.child(`noFill`).exists()&&(r=1);let o=`solid`,s=`solid`,c=e.child(`prstDash`);if(c.exists()){let e=c.attr(`val`)||`solid`;s=e,o=HB(e)}if(o===`solid`&&n&&n.exists()){let e=n.numAttr(`idx`)??0;if(e>0&&t.theme.lineStyles&&t.theme.lineStyles.length>=e){let n=t.theme.lineStyles[e-1].child(`prstDash`);n.exists()&&(s=n.attr(`val`)||`solid`,o=HB(s))}}return{width:r,color:i,dash:o,dashKind:s}}function HB(e){switch(e){case`solid`:return`solid`;case`dot`:case`sysDot`:return`dotted`;case`dash`:case`sysDash`:case`lgDash`:return`dashed`;case`dashDot`:case`lgDashDot`:case`lgDashDotDot`:case`sysDashDot`:case`sysDashDotDot`:return`dashed`;default:return`solid`}}function UB(e){let t=e.child(`fillToRect`);if(t.exists())return{l:(t.numAttr(`l`)??0)/1e5,t:(t.numAttr(`t`)??0)/1e5,r:(t.numAttr(`r`)??0)/1e5,b:(t.numAttr(`b`)??0)/1e5}}function WB(e){return e?{cx:(e.l+(1-e.r))/2,cy:(e.t+(1-e.b))/2}:{cx:.5,cy:.5}}function GB(e){return Math.max(0,Math.min(1,e))}function KB(e,t={}){let n=e.fillToRect;if(!n)return 0;let r=Math.max(0,1-n.l-n.r),i=Math.max(0,1-n.t-n.b);if(r<=0&&i<=0)return 0;let a=e.cx??.5,o=e.cy??.5,s=Math.max(Math.abs(a),Math.abs(1-a)),c=Math.max(Math.abs(o),Math.abs(1-o));if(t.axis===`x`)return s>0?GB(r/2/s):0;if(t.axis===`y`)return c>0?GB(i/2/c):0;let l=t.width??1,u=t.height??1,d=Math.hypot(r/2*l,i/2*u),f=Math.hypot(s*l,c*u);return f>0?GB(d/f):0}function qB(e,t={}){let n=KB(e,t);return n<=0?e.stops:e.stops.map(e=>({...e,position:n*100+e.position*(1-n)}))}function JB(e){return e.map(e=>`${e.color} ${e.position.toFixed(1)}%`).join(`, `)}function YB(e,t,n){let r=e.child(`gsLst`),i=[];for(let e of r.children(`gs`)){let r=OR(e.numAttr(`pos`)??0)*100,{color:a,alpha:o}=LB(e,t,n);i.push({position:r,color:IB(a,o)})}if(i.length===0)return null;i.sort((e,t)=>e.position-t.position);let a=e.child(`lin`);if(a.exists())return{type:`linear`,stops:i,angle:DR(a.numAttr(`ang`)??0),colorInterpolation:`linearRGB`};let o=e.child(`path`);if(o.exists()){let e=o.attr(`path`);if(e===`circle`||e===`shape`||e===`rect`){let t=UB(o),{cx:n,cy:r}=WB(t);return{type:`radial`,stops:i,angle:0,cx:n,cy:r,pathType:e,fillToRect:t,colorInterpolation:`linearRGB`}}}return{type:`linear`,stops:i,angle:0,colorInterpolation:`linearRGB`}}function XB(e,t){let n=e.child(`gradFill`);return!n.exists()&&e.child(`grpFill`).exists()&&t.groupFillNode&&(n=t.groupFillNode.child(`gradFill`)),n.exists()?YB(n,t):null}function ZB(e,t){let n=e.numAttr(`idx`)??0;return $B(e,t,t.theme.fillStyles,n)}function QB(e,t){let n=e.numAttr(`idx`)??0;return n>=1001?$B(e,t,t.theme.bgFillStyles??[],n-1e3):$B(e,t,t.theme.fillStyles,n)}function $B(e,t,n,r){if(r<=0||(n?.length??0)<r)return{fillCss:FB(e,t),gradientFillData:null};let i=n?.[r-1];if(!(i!=null&&i.exists()))return{fillCss:FB(e,t),gradientFillData:null};if(i.localName===`solidFill`){let n=LB(i,t,e);return{fillCss:IB(n.color,n.alpha),gradientFillData:null}}return i.localName===`gradFill`?{fillCss:BB(i,t,e),gradientFillData:YB(i,t,e)}:i.localName===`pattFill`?{fillCss:zB(i,t,e),gradientFillData:null}:i.localName===`noFill`?{fillCss:`transparent`,gradientFillData:null}:{fillCss:FB(e,t),gradientFillData:null}}function eV(e,t){let n=e.child(`gradFill`);if(!n.exists())return null;let r=n.child(`gsLst`),i=[];for(let e of r.children(`gs`)){let n=OR(e.numAttr(`pos`)??0)*100,{color:r,alpha:a}=NB(e,t),o=IB(r,a);i.push({position:n,color:o})}if(i.length===0)return null;i.sort((e,t)=>e.position-t.position);let a=n.child(`lin`),o=0;a.exists()&&(o=DR(a.numAttr(`ang`)??0));let s=Y(e.numAttr(`w`)??0);return s<=0&&(s=1),{stops:i,angle:o,width:s,colorInterpolation:`linearRGB`}}var tV=new Set([`http:`,`https:`,`mailto:`]),nV=new Set([`http:`,`https:`]);function rV(e){try{return new URL(e).protocol.toLowerCase()}catch{return}}function iV(e){let t=rV(e);return t!==void 0&&tV.has(t)}function aV(e){let t=rV(e);return t!==void 0&&nV.has(t)}var oV=128;function sV(e,t){if(!(t>0))return e;let n=e.trim();if(!n)return`${100/t}%`;if(n.length>oV)return e;let r=cV(n);return r?`${r.value/t}${r.unit||`%`}`:e}function cV(e){let t=0;(e[t]===`-`||e[t]===`+`)&&t++;let n=0;for(;mV(e.charCodeAt(t));)t++,n++;if(e[t]===`.`)for(t++;mV(e.charCodeAt(t));)t++,n++;if(n===0)return null;if(e[t]===`e`||e[t]===`E`){let n=t;t++,(e[t]===`-`||e[t]===`+`)&&t++;let r=0;for(;mV(e.charCodeAt(t));)t++,r++;r===0&&(t=n)}let r=Number(e.slice(0,t));if(!Number.isFinite(r))return null;let i=e.slice(t);return pV(i)?{value:r,unit:i}:null}function lV(e){let t=uV(e);if(t<0)return null;let n=e.slice(t+1).trim();return fV(n)?{imageLayers:dV(e.slice(0,t)),color:n}:null}function uV(e){let t=0;for(let n=e.length-1;n>=0;n--){let r=e[n];if(r===`)`)t++;else if(r===`(`)t>0&&t--;else if(r===`,`&&t===0)return n}return-1}function dV(e){return e.split(`0 0 / 8px 8px`).join(``).trimEnd()}function fV(e){if(!e)return!1;if(e[0]===`#`){let t=e.length-1;if(![3,4,6,8].includes(t))return!1;for(let t=1;t<e.length;t++)if(!gV(e.charCodeAt(t)))return!1;return!0}let t=e.toLowerCase();if(t.startsWith(`rgb(`)||t.startsWith(`rgba(`))return e.endsWith(`)`)&&!e.slice(0,-1).includes(`)`);for(let t=0;t<e.length;t++)if(!hV(e.charCodeAt(t)))return!1;return!0}function pV(e){if(!e||e===`%`)return!0;for(let t=0;t<e.length;t++)if(!hV(e.charCodeAt(t)))return!1;return!0}function mV(e){return e>=48&&e<=57}function hV(e){return e>=65&&e<=90||e>=97&&e<=122}function gV(e){return mV(e)||e>=65&&e<=70||e>=97&&e<=102}var _V=0;function vV(e,t,n,r){return`rgb(${Math.round(e*r+255*(1-r))},${Math.round(t*r+255*(1-r))},${Math.round(n*r+255*(1-r))})`}function yV(e,t){if(t.includes(`gradient`)&&t.includes(` 0 0 / `)){let n=lV(t);if(n){e.style.backgroundImage=n.imageLayers,e.style.backgroundSize=`8px 8px`,e.style.backgroundRepeat=`repeat`,e.style.backgroundColor=n.color;return}}t.includes(`gradient`)||t.startsWith(`url(`)||t.includes(`repeating-`)?e.style.background=t:e.style.backgroundColor=t}function bV(e){let t=e*Math.PI/180;return{x1:50-50*Math.cos(t),y1:50-50*Math.sin(t),x2:50+50*Math.cos(t),y2:50+50*Math.sin(t)}}function xV(e,t){for(let n of t){let t=document.createElementNS(`http://www.w3.org/2000/svg`,`stop`);t.setAttribute(`offset`,`${n.position}%`),t.setAttribute(`stop-color`,n.color),e.appendChild(t)}}function SV(e,t,n,r){let i=`http://www.w3.org/2000/svg`,a=document.createElementNS(i,`svg`);a.setAttribute(`data-pptx-background-gradient`,`true`),a.setAttribute(`viewBox`,`0 0 ${n} ${r}`),a.setAttribute(`width`,`100%`),a.setAttribute(`height`,`100%`),a.style.position=`absolute`,a.style.left=`0`,a.style.top=`0`,a.style.width=`100%`,a.style.height=`100%`,a.style.pointerEvents=`none`,a.style.display=`block`;let o=document.createElementNS(i,`defs`);a.appendChild(o);let s=`bg-grad-${++_V}`;if(t.type===`radial`&&t.pathType===`rect`){let e=t.cx??.5,c=t.cy??.5,l=(e,n)=>{let r=qB(t,{axis:n}),i=[];for(let t of r){let n=t.position/100;i.push({offset:e-n*e,color:t.color}),i.push({offset:e+n*(1-e),color:t.color})}return i.sort((e,t)=>e.offset-t.offset)},u=`${s}-h`,d=document.createElementNS(i,`linearGradient`);d.setAttribute(`id`,u),d.setAttribute(`color-interpolation`,t.colorInterpolation??`linearRGB`),d.setAttribute(`x1`,`0%`),d.setAttribute(`y1`,`0%`),d.setAttribute(`x2`,`100%`),d.setAttribute(`y2`,`0%`);for(let t of l(e,`x`)){let e=document.createElementNS(i,`stop`);e.setAttribute(`offset`,`${(t.offset*100).toFixed(2)}%`),e.setAttribute(`stop-color`,t.color),d.appendChild(e)}o.appendChild(d);let f=`${s}-v`,p=document.createElementNS(i,`linearGradient`);p.setAttribute(`id`,f),p.setAttribute(`color-interpolation`,t.colorInterpolation??`linearRGB`),p.setAttribute(`x1`,`0%`),p.setAttribute(`y1`,`0%`),p.setAttribute(`x2`,`0%`),p.setAttribute(`y2`,`100%`);for(let e of l(c,`y`)){let t=document.createElementNS(i,`stop`);t.setAttribute(`offset`,`${(e.offset*100).toFixed(2)}%`),t.setAttribute(`stop-color`,e.color),p.appendChild(t)}o.appendChild(p);let m=document.createElementNS(i,`g`);m.setAttribute(`style`,`isolation: isolate`);let h=document.createElementNS(i,`rect`);h.setAttribute(`width`,String(n)),h.setAttribute(`height`,String(r)),h.setAttribute(`fill`,`black`),m.appendChild(h);for(let e of[u,f]){let t=document.createElementNS(i,`rect`);t.setAttribute(`width`,String(n)),t.setAttribute(`height`,String(r)),t.setAttribute(`fill`,`url(#${e})`),t.setAttribute(`style`,`mix-blend-mode: lighten`),m.appendChild(t)}a.appendChild(m)}else if(t.type===`radial`){let e=document.createElementNS(i,`radialGradient`);e.setAttribute(`id`,s),e.setAttribute(`color-interpolation`,t.colorInterpolation??`linearRGB`),e.setAttribute(`gradientUnits`,`userSpaceOnUse`);let c=t.cx??.5,l=t.cy??.5;e.setAttribute(`cx`,String(c*n)),e.setAttribute(`cy`,String(l*r));let u=Math.max(c,1-c),d=Math.max(l,1-l);e.setAttribute(`r`,String(Math.hypot(u*n,d*r))),xV(e,qB(t,{width:n,height:r})),o.appendChild(e);let f=document.createElementNS(i,`rect`);f.setAttribute(`width`,String(n)),f.setAttribute(`height`,String(r)),f.setAttribute(`fill`,`url(#${s})`),a.appendChild(f)}else{let e=document.createElementNS(i,`linearGradient`);e.setAttribute(`id`,s),e.setAttribute(`color-interpolation`,t.colorInterpolation??`linearRGB`),e.setAttribute(`gradientUnits`,`userSpaceOnUse`);let c=bV(t.angle);e.setAttribute(`x1`,String(c.x1/100*n)),e.setAttribute(`y1`,String(c.y1/100*r)),e.setAttribute(`x2`,String(c.x2/100*n)),e.setAttribute(`y2`,String(c.y2/100*r)),xV(e,t.stops),o.appendChild(e);let l=document.createElementNS(i,`rect`);l.setAttribute(`width`,String(n)),l.setAttribute(`height`,String(r)),l.setAttribute(`fill`,`url(#${s})`),a.appendChild(l)}e.style.position||(e.style.position=`relative`),e.style.background=``,e.querySelectorAll(`svg[data-pptx-background-gradient="true"]`).forEach(e=>{e.remove()}),e.insertBefore(a,e.firstChild)}function CV(e,t,n){return wV(XB(e,t),t,n)}function wV(e,t,n){return e!=null&&e.pathType?(SV(n,e,t.presentation.width,t.presentation.height),!0):!1}function TV(e,t){let n,r=e.slide.rels;if(e.slide.background?(n=e.slide.background,r=e.slide.rels):e.layout.background?(n=e.layout.background,r=e.layout.rels):e.master.background&&(n=e.master.background,r=e.master.rels),!n){t.style.backgroundColor=`#FFFFFF`;return}let i=n.child(`bgPr`);if(i.exists()){EV(i,e,t,r);return}let a=n.child(`bgRef`);if(a.exists()){DV(a,e,t);return}t.style.backgroundColor=`#FFFFFF`}function EV(e,t,n,r){let i=e.child(`solidFill`);if(i.exists()){let{color:e,alpha:r}=NB(i,t),a=e.startsWith(`#`)?e:`#${e}`;if(r<1){let{r:e,g:t,b:i}=$z(a);n.style.backgroundColor=vV(e,t,i,r)}else n.style.backgroundColor=a;return}if(e.child(`gradFill`).exists()){if(CV(e,t,n))return;let r=RB(e,t);r&&(n.style.background=r);return}if(e.child(`pattFill`).exists()){let r=RB(e,t);r&&yV(n,r);return}let a=e.child(`blipFill`);if(a.exists()){OV(a,t,n,r);return}if(e.child(`noFill`).exists()){n.style.backgroundColor=`#FFFFFF`;return}}function DV(e,t,n){let r=e.numAttr(`idx`)??0;if(r>=1001&&r-1e3<=(t.theme.bgFillStyles?.length??0)||r>0&&r<=(t.theme.fillStyles?.length??0)){let{fillCss:r,gradientFillData:i}=QB(e,t);if(wV(i,t,n))return;yV(n,r);return}let{color:i,alpha:a}=NB(e,t);if(i&&i!==`#000000`){let e=i.startsWith(`#`)?i:`#${i}`;if(a<1){let{r:t,g:r,b:i}=$z(e);n.style.backgroundColor=vV(t,r,i,a)}else n.style.backgroundColor=e}else n.style.backgroundColor=`#FFFFFF`}function OV(e,t,n,r){var i;let a=e.child(`blip`),o=a.attr(`embed`)??a.attr(`r:embed`),s=a.attr(`link`)??a.attr(`r:link`),c=o??s;if(!c)return;let l=(r??t.slide.rels).get(c);if(!l)return;let u;if(SR(l.targetMode)){if(!aV(l.target))return;u=l.target}else{let r=tR(l.target,t.presentation.media);if(!r){if(t.presentation.mediaResolver){let r=nR(l.target,t.presentation.media,t.presentation.mediaResolver).then(r=>{r&&kV(e,n,rR(r.mediaPath,r.data,t.mediaUrlCache))}).catch(()=>{});(i=t.asyncTasks)==null||i.push(r),t.asyncTasks}return}let{mediaPath:a,data:o}=r;u=rR(a,o,t.mediaUrlCache)}kV(e,n,u)}function kV(e,t,n){let r=PV(e.child(`blip`));if(r<1||e.child(`srcRect`).exists()){AV(e,t,n,r);return}t.style.backgroundImage=`url("${n}")`;let i=e.child(`stretch`);i.exists()&&(LV(t,i.child(`fillRect`)),t.style.backgroundRepeat=`no-repeat`),e.child(`tile`).exists()&&(t.style.backgroundRepeat=`repeat`,t.style.backgroundSize=`auto`)}function AV(e,t,n,r){t.style.position||(t.style.position=`relative`),t.style.backgroundImage=``,t.querySelectorAll(`[data-pptx-background-image="true"]`).forEach(e=>{e.remove()});let i=document.createElement(`div`);i.setAttribute(`data-pptx-background-image`,`true`),i.style.position=`absolute`,i.style.pointerEvents=`none`,i.style.opacity=`${Number(r.toFixed(4))}`;let a=e.child(`stretch`);MV(i,a.exists()?a.child(`fillRect`):new bR(null));let o=e.child(`srcRect`);if(o.exists()){i.style.overflow=`hidden`;let e=document.createElement(`div`);e.setAttribute(`data-pptx-background-crop`,`true`),e.style.position=`absolute`,e.style.backgroundImage=`url("${n}")`,e.style.backgroundSize=`100% 100%`,e.style.backgroundRepeat=`no-repeat`,NV(e,o),i.appendChild(e),t.insertBefore(i,t.firstChild);return}i.style.backgroundImage=`url("${n}")`,a.exists()&&(i.style.backgroundSize=`100% 100%`,i.style.backgroundRepeat=`no-repeat`),e.child(`tile`).exists()&&(i.style.backgroundRepeat=`repeat`,i.style.backgroundSize=`auto`),t.insertBefore(i,t.firstChild)}function jV(e){if(!e.exists())return{left:0,top:0,width:100,height:100};let t=FV(e,`l`),n=FV(e,`t`),r=FV(e,`r`),i=FV(e,`b`);return{left:t,top:n,width:100-t-r,height:100-n-i}}function MV(e,t){let n=jV(t);e.style.left=`${n.left}%`,e.style.top=`${n.top}%`,e.style.width=`${n.width}%`,e.style.height=`${n.height}%`}function NV(e,t){let n=FV(t,`l`)/100,r=FV(t,`t`)/100,i=FV(t,`r`)/100,a=FV(t,`b`)/100,o=1-n-i,s=1-r-a;if(o<=.001||s<=.001){e.style.left=`0%`,e.style.top=`0%`,e.style.width=`100%`,e.style.height=`100%`;return}let c=1/o,l=1/s;e.style.left=`${-n*c*100}%`,e.style.top=`${-r*l*100}%`,e.style.width=`${c*100}%`,e.style.height=`${l*100}%`}function PV(e){let t=1,n=e.child(`alphaModFix`);n.exists()&&(t*=(n.numAttr(`amt`)??1e5)/1e5);let r=e.child(`alphaMod`);r.exists()&&(t*=(r.numAttr(`val`)??1e5)/1e5);let i=e.child(`alphaOff`);return i.exists()&&(t+=(i.numAttr(`val`)??0)/1e5),Math.max(0,Math.min(1,t))}function FV(e,t){return(e.numAttr(t)??0)/1e3}function IV(e,t){let n=e+t;return Math.abs(n)<1e-4?0:e/n*100}function LV(e,t){if(!t.exists()){e.style.backgroundSize=`100% 100%`,e.style.backgroundPosition=``;return}let n=FV(t,`l`),r=FV(t,`t`),i=FV(t,`r`),a=FV(t,`b`),o=100-n-i,s=100-r-a;e.style.backgroundSize=`${o}% ${s}%`,e.style.backgroundPosition=`${IV(n,i)}% ${IV(r,a)}%`}function RV(e,t){let n=(e?.bodyProperties)?.child(t);if(n!=null&&n.exists())return n;let r=(e?.layoutBodyProperties)?.child(t);if(r!=null&&r.exists())return r}var zV=/^\+(mj|mn)-(lt|ea|cs)$/,BV={lt:`latin`,ea:`ea`,cs:`cs`},VV=[`Hans`,`Hant`,`Jpan`,`Hang`];function HV(e){return Array.isArray(e)?e.filter(e=>typeof e==`string`&&e.length>0):typeof e==`string`&&e.length>0?[e]:[]}function UV(e){let t=e.toLowerCase();if(t.startsWith(`zh`))return/-(tw|hk|mo)\b/.test(t)?`Hant`:`Hans`;if(t.startsWith(`ja`))return`Jpan`;if(t.startsWith(`ko`))return`Hang`;if(t.startsWith(`ar`))return`Arab`;if(t.startsWith(`he`))return`Hebr`;if(t.startsWith(`th`))return`Thai`;if(t.startsWith(`hi`)||t.startsWith(`mr`)||t.startsWith(`ne`))return`Deva`}function WV(e,t){if(e){for(let n of HV(t)){let t=UV(n);if(t&&e[t])return e[t]}for(let t of VV)if(e[t])return e[t]}}function GV(e,t,n){let r=e.match(zV);if(!r)return e;let i=r[1],a=r[2],o=i===`mj`?t.theme.majorFont:t.theme.minorFont,s=o[BV[a]];if(s)return s;if(a===`ea`){let e=WV(o.scripts,n);if(e)return e}return o.latin||o.ea||o.cs||e}function KV(e,t,n){let r=new Set,i=[];for(let a of e){if(!a)continue;let e=GV(a,t,n).trim();if(!e)continue;let o=e.toLowerCase();r.has(o)||(r.add(o),i.push(e))}return i}var qV=new Set([`serif`,`sans-serif`,`monospace`,`cursive`,`fantasy`,`system-ui`,`ui-serif`,`ui-sans-serif`,`ui-monospace`,`emoji`,`math`,`fangsong`]),JV=[`PingFang SC`,`Hiragino Sans GB`,`Noto Sans CJK SC`,`Source Han Sans SC`,`Arial Unicode MS`,`sans-serif`],YV=new Set([`microsoft yahei`,`microsoft yahei ui`,`微软雅黑`,`dengxian`,`等线`,`simhei`,`黑体`,`heiti sc`]),XV={calibri:[`Calibri`,`Aptos`,`Carlito`,`system-ui`,`Arial`,`Helvetica`,`sans-serif`],"calibri light":[`Calibri Light`,`Aptos Display`,`Aptos`,`Carlito`,`system-ui`,`Arial`,`Helvetica`,`sans-serif`],aptos:[`Aptos`,`system-ui`,`Arial`,`Helvetica`,`sans-serif`],"aptos display":[`Aptos Display`,`Aptos`,`system-ui`,`Arial`,`Helvetica`,`sans-serif`],"microsoft yahei":[`Microsoft YaHei`,`微软雅黑`],"microsoft yahei ui":[`Microsoft YaHei UI`,`Microsoft YaHei`,`微软雅黑`],微软雅黑:[`微软雅黑`,`Microsoft YaHei`],dengxian:[`DengXian`,`等线`],等线:[`等线`,`DengXian`],simhei:[`SimHei`,`黑体`],黑体:[`黑体`,`SimHei`],"heiti sc":[`Heiti SC`,`黑体`,`SimHei`]};function ZV(e){return e.trim().replace(/^['"]|['"]$/g,``).toLowerCase()}function QV(e){let t=ZV(e);return qV.has(t)?t:`"${e.trim().replace(/\\/g,`\\\\`).replace(/"/g,`\\"`)}"`}function $V(e){return XV[ZV(e)]??[e.trim()]}function eH(e){let t=Array.isArray(e)?e.flatMap($V):$V(e),n=t.some(e=>YV.has(ZV(e)))?[...t,...JV]:t,r=new Set;return n.filter(e=>{let t=ZV(e);return!r.has(t)&&(r.add(t),!0)}).map(QV).join(`, `)}function tH(e){let t=e.replace(/\\/g,`/`),n=t.lastIndexOf(`/`);return n>=0?t.slice(0,n):``}function nH(e){let t=e.search(/[?#]/);return t>=0?e.slice(0,t):e}function rH(e){return nH(e).replace(/\\/g,`/`).replace(/^\/+/,``)}function iH(e,t){if(SR(t.targetMode))return;let n=rH(ER(tH(e.slide.slidePath||`ppt/slides/slide1.xml`),t.target)),r=e.presentation.slides.findIndex(e=>rH(e.slidePath||``)===n);if(r>=0)return r;let i=nH(t.target).match(/(?:^|[\\/])slide(\d+)\.xml$/i);if(i)return parseInt(i[1],10)-1}function aH(e){let t=e.slide.index;if(t>=0&&t<e.presentation.slides.length)return t;let n=rH(e.slide.slidePath||``),r=e.presentation.slides.findIndex(e=>rH(e.slidePath||``)===n);return r>=0?r:0}function oH(e){try{return decodeURIComponent(e.replace(/\+/g,` `))}catch{return e}}function sH(e,t){let n=t.toLowerCase();for(let t of e.split(`&`)){let[e,...r]=t.split(`=`);if(oH(e).toLowerCase()===n)return oH(r.join(`=`))}}function cH(e,t){let n=t.match(/^ppaction:\/\/hlinkshowjump\?(.+)$/i);if(!n)return;let r=sH(n[1],`jump`)?.toLowerCase(),i=e.presentation.slides.length;if(i!==0)switch(r){case`firstslide`:return 0;case`lastslide`:return i-1;case`nextslide`:{let t=aH(e)+1;return t<i?t:void 0}case`previousslide`:{let t=aH(e)-1;return t>=0?t:void 0}default:return}}function lH(e,t,n){if(t?.toLowerCase()===`ppaction://hlinksldjump`&&n)return iH(e,n);if(t)return cH(e,t)}function uH(e){return`Go to slide ${e+1}`}function dH(e){if(!e)return;let t=e.trim();if(!(t.length===0||t.length>32))return/^[+-]?(?:\d+(?:[.,]\d+)?|\d{1,3}(?:,\d{3})+(?:\.\d+)?)\s*(?:%|[A-Za-z]{1,4})?$/.test(t)?t:void 0}function fH(e){return dH(e)!==void 0}function pH(e,t){t&&e.appendChild(document.createTextNode(t.replace(/ {2}/g,` \xA0`)))}function mH(e){let t=new Map,n=1;for(let r=0;r<e.length;r++){if(t.has(r))continue;let i=``,a=-1;for(let t=r;t<e.length&&t<r+4;t++){let n=e[t].text;if(n===void 0||n===`
20
+ `||n.includes(` `)||(i+=n,i.trim().length>32))break;t>r&&fH(i)&&(a=t)}if(a>r){let e=n++;for(let n=r;n<=a;n++)t.set(n,e);r=a}}return t}function hH(e,t){if(!e||!e.exists())return new bR(null);let n=e.child(`lvl${t+1}pPr`);return n.exists()?n:e.child(`defPPr`)}function gH(e){if(!e||!e.type)return`other`;let t=e.type;return t===`title`||t===`ctrTitle`?`title`:t===`body`||t===`subTitle`||t===`obj`||t===`dt`||t===`ftr`||t===`sldNum`?`body`:`other`}function _H(e,t){for(let n of e){let e,r=n.child(`nvSpPr`);if(r.exists()&&(e=r.child(`nvPr`).child(`ph`)),!e||!e.exists()){let t=n.child(`nvPicPr`);t.exists()&&(e=t.child(`nvPr`).child(`ph`))}if(!e||!e.exists())continue;let i=e.attr(`type`),a=e.numAttr(`idx`);if(t.idx!==void 0&&a===t.idx||t.type&&i===t.type)return n}}function vH(e){let t=e.child(`txBody`);if(!t.exists())return;let n=t.child(`lstStyle`);return n.exists()?n:void 0}function yH(e,t){if(!t.exists())return;let n=t.attr(`algn`);n&&(e.align=n);let r=t.attr(`rtl`);r!==void 0&&(e.rtl=HR(r));let i=t.numAttr(`marL`);i!==void 0&&(e.marginLeft=Y(i));let a=t.numAttr(`indent`);a!==void 0&&(e.textIndent=Y(a));let o=t.numAttr(`defTabSz`);o!==void 0&&(e.defaultTabSize=Y(o));let s=t.child(`lnSpc`);if(s.exists()){let t=s.child(`spcPct`);if(t.exists()){let n=t.numAttr(`val`);n!==void 0&&(e.lineHeight=`${(n/1e5).toFixed(3)}`)}let n=s.child(`spcPts`);if(n.exists()){let t=n.numAttr(`val`);t!==void 0&&(e.lineHeight=`${t/100}pt`,e.lineHeightAbsolute=!0)}}let c=t.child(`spcBef`);if(c.exists()){let t=c.child(`spcPts`);if(t.exists()){let n=t.numAttr(`val`);n!==void 0&&(e.spaceBefore=n/100)}let n=c.child(`spcPct`);if(n.exists()){let t=n.numAttr(`val`);t!==void 0&&(e.spaceBeforePct=t/1e5)}}let l=t.child(`spcAft`);if(l.exists()){let t=l.child(`spcPts`);if(t.exists()){let n=t.numAttr(`val`);n!==void 0&&(e.spaceAfter=n/100)}let n=l.child(`spcPct`);if(n.exists()){let t=n.numAttr(`val`);t!==void 0&&(e.spaceAfterPct=t/1e5)}}let u=t.child(`buChar`);u.exists()&&(e.bulletChar=u.attr(`char`)||``,e.bulletNone=!1);let d=t.child(`buAutoNum`);if(d.exists()){e.bulletAutoNum=d.attr(`type`)||`arabicPeriod`;let t=d.numAttr(`startAt`);t!==void 0&&(e.bulletAutoNumStartAt=t),e.bulletNone=!1}t.child(`buNone`).exists()&&(e.bulletNone=!0,e.bulletChar=void 0,e.bulletAutoNum=void 0);let f=t.child(`buFont`);f.exists()&&(e.bulletFont=f.attr(`typeface`));let p=t.child(`buSzPct`);if(p.exists()){let t=p.numAttr(`val`);t!==void 0&&(e.bulletSizePct=t/1e5,e.bulletSizePt=void 0)}let m=t.child(`buSzPts`);if(m.exists()){let t=m.numAttr(`val`);t!==void 0&&(e.bulletSizePt=t/100,e.bulletSizePct=void 0)}t.child(`buSzTx`).exists()&&(e.bulletSizePct=void 0,e.bulletSizePt=void 0),t.child(`buClrTx`).exists()&&(e.bulletColorFollowsText=!0,e.bulletColorNode=void 0);let h=t.child(`buClr`);h.exists()&&(e.bulletColorNode=h,e.bulletColorFollowsText=!1);let g=t.child(`defRPr`);g.exists()&&(e.defRPr=g,e.defRPrs??=[],e.defRPrs.push(g))}function bH(e){if(!(e!=null&&e.exists()))return`none`;if(e.child(`gradFill`).exists())return`explicit`;let t=e.child(`solidFill`);if(!t.exists())return`none`;let n=t.child(`schemeClr`).attr(`val`);return n===`tx1`||n===`tx2`?`defaultTextScheme`:`explicit`}function xH(e,t,n){if(!t.exists())return;let r=t.numAttr(`sz`);r!==void 0&&(e.fontSize=r/100);let i=t.attr(`b`);i!==void 0&&(e.bold=HR(i));let a=t.attr(`i`);a!==void 0&&(e.italic=HR(a));let o=t.attr(`u`);o!==void 0&&o!==`none`&&(e.underline=!0),o===`none`&&(e.underline=!1);let s=t.attr(`strike`);s!==void 0&&s!==`noStrike`&&(e.strikethrough=!0),s===`noStrike`&&(e.strikethrough=!1);let c=t.child(`highlight`);c.exists()&&(e.highlightColor=FB(c,n));let l=t.child(`uFill`);if(l.exists()){let t=l.child(`solidFill`);t.exists()&&(e.underlineColor=FB(t,n),e.underlineFollowsText=!1)}t.child(`uFillTx`).exists()&&(e.underlineFollowsText=!0,e.underlineColor=void 0);let u=t.child(`solidFill`);if(u.exists()){delete e.textGradientCss,delete e.textPatternCss,delete e.textNoFill;let{color:t,alpha:r}=NB(u,n),i=t.startsWith(`#`)?t:`#${t}`;if(r<1){let{r:t,g:n,b:a}=wH(i);e.color=`rgba(${t},${n},${a},${r.toFixed(3)})`}else e.color=i}let d=t.child(`gradFill`);if(d.exists()){delete e.color,delete e.textPatternCss,delete e.textNoFill;let t=LH(d,n);t&&(e.textGradientCss=t)}if(t.child(`pattFill`).exists()){delete e.color,delete e.textGradientCss,delete e.textNoFill;let r=RB(t,n);r&&(e.textPatternCss=r)}let f=[],p=[t.attr(`lang`),t.attr(`altLang`)];for(let e of[`latin`,`ea`,`cs`]){let r=t.child(e);if(!r.exists())continue;let i=r.attr(`typeface`);i&&f.push(GV(i,n,p))}f.length>0&&(e.fontFamily=f[0],e.fontFamilyStack=f);let m=t.child(`hlinkClick`);if(m.exists()){let t=m.attr(`id`)??m.attr(`r:id`),r=t?n.slide.rels.get(t):void 0,i=lH(n,m.attr(`action`),r);i!==void 0&&n.onNavigate?(e.hlinkSlideIndex=i,e.hlinkTooltip=m.attr(`tooltip`),e.underline===void 0&&(e.underline=!0)):r&&SR(r.targetMode)&&iV(r.target)&&(e.hlinkClick=r.target,e.underline===void 0&&(e.underline=!0))}let h=t.numAttr(`spc`);h!==void 0&&(e.letterSpacingPt=h/100);let g=t.numAttr(`kern`);g!==void 0&&(e.kern=g/100);let _=t.attr(`cap`);_!==void 0&&(e.cap=_);let v=t.numAttr(`baseline`);v!==void 0&&(e.baseline=v);let y=t.child(`effectLst`),b=y.child(`outerShdw`);if(b.exists()){let t=DH(b,n);t&&OH(e,t)}let x=y.child(`glow`);if(x.exists()){let t=EH(x,n);t&&OH(e,t)}t.child(`noFill`).exists()&&(delete e.color,delete e.textGradientCss,delete e.textPatternCss,e.textNoFill=!0);let S=t.child(`ln`);if(S.exists()&&!S.child(`noFill`).exists()){let t=S.numAttr(`w`);e.textOutlineWidth=t?Y(t):.75;let r=S.child(`solidFill`);if(r.exists()){let{color:t,alpha:i}=NB(r,n);e.textOutlineColor=TH(t,i)}let i=S.child(`gradFill`);i.exists()&&(e.textOutlineGradientCss=LH(i,n))}}function SH(e,t,n){for(let r of t.defRPrs??[])xH(e,r,n)}function CH(e,t){let n={};return SH(n,e,t),n}function wH(e){let t=e.replace(/^#/,``),n=parseInt(t.length===3?t[0]+t[0]+t[1]+t[1]+t[2]+t[2]:t,16);return{r:n>>16&255,g:n>>8&255,b:n&255}}function TH(e,t){let n=e.startsWith(`#`)?e:`#${e}`;if(t>=1)return n;let{r,g:i,b:a}=wH(n);return`rgba(${r},${i},${a},${t.toFixed(3)})`}function EH(e,t){let n=Y(e.numAttr(`rad`)??0);if(!(n>0))return;let{color:r,alpha:i}=NB(e,t);if(!(!r||i<=0))return`0px 0px ${n.toFixed(1)}px ${TH(r,i)}`}function DH(e,t){let n=Y(e.numAttr(`dist`)??0),r=Y(e.numAttr(`blurRad`)??0),i=(e.numAttr(`dir`)??0)/6e4,a=n*Math.cos(i*Math.PI/180),o=n*Math.sin(i*Math.PI/180),{color:s,alpha:c}=NB(e,t);if(!(!s||c<=0))return`${a.toFixed(1)}px ${o.toFixed(1)}px ${r.toFixed(1)}px ${TH(s,c)}`}function OH(e,t){e.textShadow=e.textShadow?`${e.textShadow}, ${t}`:t}function kH(e,t){if(!(e!=null&&e.exists()))return;let n={};return xH(n,e,t),n.color}function AH(e){if(!e)return;let t=e.trim().toLowerCase();if(t.startsWith(`#`)){let{r:e,g:n,b:r}=wH(t);return`${e},${n},${r},1`}let n=t.match(/^rgba?\(([^)]+)\)$/);if(!n)return t;let r=n[1].split(`,`).map(e=>e.trim());if(r.length<3)return t;let[i,a,o]=r,s=r[3]??`1`;return`${Number(i)},${Number(a)},${Number(o)},${Number(s)}`}function jH(e,t){let n=AH(e),r=AH(t);return n!==void 0&&n===r}function MH(e){return e?.child(`solidFill`).child(`srgbClr`).exists()??!1}function NH(e){return e?.child(`hlinkClick`).exists()??!1}function PH(e){return!!e.hlinkClick||e.hlinkSlideIndex!==void 0}function FH(e,t,n,r){if(!n)return!1;for(let i of t.runs)if(!(i===e||NH(i.properties))&&jH(n,kH(i.properties,r)))return!0;return jH(n,kH(t.endParaRPr,r))}function IH(e,t,n,r,i,a){return PH(n)?!i||r===`defaultTextScheme`?!0:r!==`explicit`||!MH(e.properties)?!1:FH(e,t,n.color,a):!1}function LH(e,t){let n=e.child(`gsLst`),r=[];for(let e of n.children(`gs`)){let n=OR(e.numAttr(`pos`)??0)*100,{color:i,alpha:a}=NB(e,t);r.push({position:n,color:TH(i,a)})}if(r.length===0)return``;r.sort((e,t)=>e.position-t.position);let i=r.map(e=>`${e.color} ${e.position.toFixed(1)}%`).join(`, `),a=e.child(`lin`);return a.exists()?`linear-gradient(${((DR(a.numAttr(`ang`)??0)+90)%360).toFixed(1)}deg, ${i})`:`linear-gradient(180deg, ${i})`}function RH(e,t){if(e.style.background=t,!e.style.background&&t.includes(` 0 0 / 8px 8px, `)){let n=t.split(` 0 0 / 8px 8px, `),r=n[n.length-1]?.trim(),i=n.slice(0,-1).map(e=>e.trim());i.length>0&&(e.style.backgroundImage=i.join(`, `),e.style.backgroundSize=i.map(()=>`8px 8px`).join(`, `)),r&&(e.style.backgroundColor=r)}e.style.webkitBackgroundClip=`text`,e.style.backgroundClip=`text`,e.style.color=`transparent`}function zH(e,t){switch(e){case`arabicPeriod`:return`${t}.`;case`arabicParenR`:return`${t})`;case`arabicParenBoth`:return`(${t})`;case`arabicPlain`:return`${t}`;case`romanUcPeriod`:return`${BH(t)}.`;case`romanLcPeriod`:return`${BH(t).toLowerCase()}.`;case`alphaUcPeriod`:return`${String.fromCharCode(64+((t-1)%26+1))}.`;case`alphaLcPeriod`:return`${String.fromCharCode(96+((t-1)%26+1))}.`;case`alphaUcParenR`:return`${String.fromCharCode(64+((t-1)%26+1))})`;case`alphaLcParenR`:return`${String.fromCharCode(96+((t-1)%26+1))})`;default:return`${t}.`}}function BH(e){let t=[1e3,900,500,400,100,90,50,40,10,9,5,4,1],n=[`M`,`CM`,`D`,`CD`,`C`,`XC`,`L`,`XL`,`X`,`IX`,`V`,`IV`,`I`],r=``,i=e;for(let e=0;e<t.length;e++)for(;i>=t[e];)r+=n[e],i-=t[e];return r}function VH(e,t,n,r,i){let a=gH(t),o=1,s=0,c=RV(e,`normAutofit`);if(c!=null&&c.exists()){let e=c.numAttr(`fontScale`);e!==void 0&&(o=e/1e5);let t=c.numAttr(`lnSpcReduction`);t!==void 0&&(s=t/1e5)}let l=new Map,u=e.paragraphs.map((e,t)=>({index:t,visible:e.runs.some(e=>e.text!=null&&e.text.length>0)})).filter(e=>e.visible).map(e=>e.index),d=u[0],f=u[u.length-1],p=u.length===1?u[0]:void 0;for(let[c,u]of e.paragraphs.entries()){let m=document.createElement(`div`);m.style.width=`100%`,m.style.minWidth=`0px`,m.style.maxWidth=`100%`,m.style.boxSizing=`border-box`,m.style.overflowWrap=`anywhere`;let h=u.level;i!=null&&i.isVerticalText&&(m.style.wordBreak=`keep-all`);let g=u.runs.some(e=>e.text===`
21
+ `),_=i?.compactSingleLineSpacing&&c===p&&!g,v={};if(yH(v,hH(n.presentation.defaultTextStyle,h)),yH(v,hH(n.master.defaultTextStyle,h)),yH(v,hH(a===`title`?n.master.textStyles.titleStyle:a===`body`?n.master.textStyles.bodyStyle:n.master.textStyles.otherStyle,h)),t){let e=_H(n.master.placeholders,t);e&&yH(v,hH(vH(e),h))}if(t){let e=_H(n.layout.placeholders.map(e=>e.node),t);e&&yH(v,hH(vH(e),h))}if(yH(v,hH(e.listStyle,h)),u.properties&&yH(v,u.properties),v.align){let e={l:`left`,ctr:`center`,r:`right`,just:`justify`,justLow:`justify`,dist:`justify`,thaiDist:`justify`};m.style.textAlign=e[v.align]||`left`}v.rtl!==void 0&&(m.style.direction=v.rtl?`rtl`:`ltr`),v.marginLeft!==void 0&&(m.style.paddingLeft=`${v.marginLeft}px`),v.textIndent!==void 0&&(m.style.textIndent=`${v.textIndent}px`);let y=v.lineHeight??i?.defaultLineHeight;if(y){if(s>0){let e=parseFloat(y);isNaN(e)||(y=y.includes(`pt`)?`${(e*(1-s)).toFixed(2)}pt`:`${(e*(1-s)).toFixed(3)}`)}i!=null&&i.isVerticalText&&!v.lineHeightAbsolute?y=`1`:_&&v.lineHeightAbsolute&&(y=`normal`),m.style.lineHeight=y}let b=12,x=CH(v,n);if(x.fontSize!==void 0&&(b=x.fontSize),u.runs.length>0&&u.runs[0].properties){let e=u.runs[0].properties.numAttr(`sz`);e!==void 0&&(b=e/100)}else if(u.runs.length===0&&u.endParaRPr){let e=u.endParaRPr.numAttr(`sz`);e!==void 0&&(b=e/100)}m.style.fontSize=`${b*o}pt`;let S=i?.trimOuterParagraphSpacing&&c===d,C=i?.trimOuterParagraphSpacing&&c===f;S?m.style.marginTop=`0px`:v.spaceBefore===void 0?v.spaceBeforePct!==void 0&&(m.style.marginTop=`${v.spaceBeforePct*b}pt`):m.style.marginTop=`${v.spaceBefore}pt`,C?m.style.marginBottom=`0px`:v.spaceAfter===void 0?v.spaceAfterPct!==void 0&&(m.style.marginBottom=`${v.spaceAfterPct*b}pt`):m.style.marginBottom=`${v.spaceAfter}pt`;let w=!u.runs.some(e=>e.text!=null&&e.text.length>0)||t?.type===`sldNum`||t?.type===`dt`||t?.type===`ftr`||t?.type===`title`||t?.type===`ctrTitle`||t?.type===`subTitle`,T=``;if(!w&&v.bulletNone!==!0){if(v.bulletChar)T=v.bulletChar;else if(v.bulletAutoNum){let e=`${h}:${v.bulletAutoNum}`,t=v.bulletAutoNumStartAt??l.get(e)??1;T=zH(v.bulletAutoNum,t),l.set(e,t+1)}}if(T){let t=document.createElement(`span`);t.textContent=T+` `;let r=v.marginLeft,a=v.textIndent;if(r!==void 0&&r>0&&a!==void 0&&a<0){let e=Math.max(0,r+a),n=Math.max(0,r-e);m.style.textIndent=`0px`,v.align===`ctr`||v.align===`r`?(m.style.paddingLeft=`0px`,t.style.display=`inline-block`,t.style.width=`${n}px`,t.style.whiteSpace=`pre`):(m.style.position=`relative`,t.style.position=`absolute`,t.style.left=`${e}px`,t.style.top=`0px`,t.style.width=`${n}px`,t.style.whiteSpace=`pre`)}v.bulletFont&&(t.style.fontFamily=eH(GV(v.bulletFont,n)));let s=v.bulletSizePt??b*(v.bulletSizePct??1);t.style.fontSize=`${s*o}pt`;let c;if(v.bulletColorNode&&v.bulletColorNode.exists()&&(c=FB(v.bulletColorNode,n)),c===void 0&&(c=(()=>{let e=u.runs.find(e=>e.text!=null&&e.text.length>0);if(!e)return;let t=CH(v,n);return e.properties&&xH(t,e.properties,n),t.color??i?.fontRefColor??i?.cellTextColor??(t.textNoFill?`transparent`:void 0)})()),c===void 0&&e.listStyle){let t=hH(e.listStyle,h);if(t.exists()){let e=t.child(`defRPr`);if(e.exists()){let t={};xH(t,e,n),t.color!==void 0&&(c=t.color)}}}t.style.color=c??i?.fontRefColor??i?.cellTextColor??`#000000`,m.appendChild(t)}let E=mH(u.runs),D=new Map;if(u.runs.length===0&&m.appendChild(document.createElement(`br`)),u.runs.some(e=>e.text?.includes(` `))){let e=v.defaultTabSize??96;m.style.tabSize=`${e}px`}let O=v.lineHeightAbsolute&&g&&y,k=null;O&&(k=document.createElement(`div`),k.style.height=y,k.style.overflow=`visible`,m.appendChild(k));for(let[t,r]of u.runs.entries()){if(r.text===`
22
+ `){O?(k=document.createElement(`div`),k.style.height=y,k.style.overflow=`visible`,m.appendChild(k)):m.appendChild(document.createElement(`br`));continue}let a={};if(SH(a,v,n),r.properties&&xH(a,r.properties,n),a.color===void 0&&e.listStyle){let t=hH(e.listStyle,h);if(t.exists()){let e=t.child(`defRPr`);if(e.exists()){let t={};xH(t,e,n),t.color!==void 0&&(a.color=t.color)}}}let s;if(a.hlinkSlideIndex!==void 0){let e=document.createElement(`span`),t=a.hlinkSlideIndex;e.setAttribute(`role`,`link`),e.tabIndex=0,e.title=a.hlinkTooltip||uH(t),e.style.cursor=`pointer`,e.addEventListener(`click`,e=>{var r;e.stopPropagation(),(r=n.onNavigate)==null||r.call(n,{slideIndex:t})}),e.addEventListener(`keydown`,e=>{var r;e.key!==`Enter`&&e.key!==` `||(e.preventDefault(),e.stopPropagation(),(r=n.onNavigate)==null||r.call(n,{slideIndex:t}))}),s=e}else if(a.hlinkClick){let e=document.createElement(`a`);e.href=a.hlinkClick,e.target=`_blank`,e.rel=`noopener noreferrer`,s=e}else s=document.createElement(`span`);let c=dH(r.text),l=!!a.textGradientCss||!!a.textPatternCss||!!a.textNoFill||a.textOutlineWidth!==void 0||!!a.textOutlineColor||!!a.textOutlineGradientCss,d=!!r.text&&!!c&&r.text!==c&&!l;if(r.text&&r.text.includes(` `))s.textContent=r.text,s.style.whiteSpace=`pre`;else if(d){let e=r.text.indexOf(c),t=e+c.length;pH(s,r.text.slice(0,e));let n=document.createElement(`span`);n.textContent=c,n.style.whiteSpace=`nowrap`,s.appendChild(n),pH(s,r.text.slice(t))}else if(r.text&&/ {2}/.test(r.text)){let e=r.text.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/ {2}/g,` \xA0`);s.innerHTML=e}else s.textContent=r.text;c&&(r.text===c||r.text&&r.text!==c&&l)&&(s.style.whiteSpace=`nowrap`);let f=a.fontSize||12;s.style.fontSize=`${f*o}pt`,(r.properties?.attr(`b`)===void 0?i?.cellTextBold??a.bold:a.bold)&&(s.style.fontWeight=`bold`),(r.properties?.attr(`i`)===void 0?i?.cellTextItalic??a.italic:a.italic)&&(s.style.fontStyle=`italic`);let p=[];a.underline&&p.push(`underline`),a.strikethrough&&p.push(`line-through`),p.length>0&&(s.style.textDecoration=p.join(` `)),a.highlightColor&&(s.style.backgroundColor=a.highlightColor);let g=bH(r.properties),_=g!==`none`,b;if(b=i!=null&&i.fontRefColor?_?a.color:i.fontRefColor:i!=null&&i.cellTextColor&&!_?i.cellTextColor:a.color,IH(r,u,a,g,_,n)){let e=n.theme.colorScheme.get(`hlink`);e&&(b=e.startsWith(`#`)?e:`#${e}`)}if(b?s.style.color=b:s.style.color=`#000000`,a.underlineFollowsText&&b&&(s.style.textDecorationColor=b),a.underlineColor&&(s.style.textDecorationColor=a.underlineColor),a.textShadow&&(s.style.textShadow=a.textShadow),a.textGradientCss&&RH(s,a.textGradientCss),a.textPatternCss&&RH(s,a.textPatternCss),a.textNoFill||a.textOutlineWidth){let e=a.textOutlineWidth??.75;if(a.textNoFill&&a.textOutlineGradientCss){s.style.color=`transparent`,s.style.webkitTextStrokeWidth=`${e}px`,s.style.webkitTextStrokeColor=`#ffffff`,s.style.paintOrder=`stroke fill`;let t=a.textOutlineGradientCss;s.style.maskImage=t,s.style.webkitMaskImage=t}else a.textNoFill&&a.textOutlineColor?(s.style.color=`transparent`,s.style.webkitTextStrokeWidth=`${e}px`,s.style.webkitTextStrokeColor=a.textOutlineColor,s.style.paintOrder=`stroke fill`):a.textNoFill?s.style.color=`transparent`:a.textOutlineColor&&(s.style.webkitTextStrokeWidth=`${e}px`,s.style.webkitTextStrokeColor=a.textOutlineColor,s.style.paintOrder=`stroke fill`)}let x=r.properties?.child(`latin`).exists()||r.properties?.child(`ea`).exists()||r.properties?.child(`cs`).exists()?a.fontFamilyStack??a.fontFamily:i?.cellTextFontFamily??a.fontFamilyStack??a.fontFamily;if(x){let e=Array.isArray(x)?x.map(e=>GV(e,n)):GV(x,n);s.style.fontFamily=eH(e)}else{let e=n.theme.minorFont.latin||n.theme.minorFont.ea;e&&(s.style.fontFamily=eH(e))}if(a.letterSpacingPt!==void 0&&(s.style.letterSpacing=`${a.letterSpacingPt}pt`),a.kern!==void 0){let e=(a.fontSize||12)*o;s.style.fontKerning=e>=a.kern?`normal`:`none`}if(a.cap===`all`?s.style.textTransform=`uppercase`:a.cap===`small`&&(s.style.fontVariant=`small-caps`),a.baseline!==void 0&&a.baseline!==0){let e=a.baseline/1e3;s.style.verticalAlign=`${e}%`,Math.abs(e)>=20&&(s.style.fontSize=`${f*o*.65}pt`)}let S=k??m,C=E.get(t);if(C!==void 0){let e=D.get(C);e||(e=document.createElement(`span`),e.style.whiteSpace=`nowrap`,D.set(C,e),S.appendChild(e)),e.appendChild(s)}else S.appendChild(s)}if(u.endParaRPr&&u.runs[u.runs.length-1]?.text===`
23
+ `){let e=u.endParaRPr.numAttr(`sz`);if(e!==void 0){let t=document.createElement(`span`);t.textContent=`​`,t.style.fontSize=`${e/100*o}pt`,(k??m).appendChild(t)}}r.appendChild(m)}}function HH(e){let t=0,n=0;for(let r of e.allChildren()){if(r.localName===`moveTo`||r.localName===`lnTo`){let e=r.child(`pt`);t=Math.max(t,e.numAttr(`x`)??0),n=Math.max(n,e.numAttr(`y`)??0);continue}if(r.localName===`cubicBezTo`||r.localName===`quadBezTo`){for(let e of r.children(`pt`))t=Math.max(t,e.numAttr(`x`)??0),n=Math.max(n,e.numAttr(`y`)??0);continue}r.localName===`arcTo`&&(t=Math.max(t,r.numAttr(`wR`)??0),n=Math.max(n,r.numAttr(`hR`)??0))}return{w:Math.max(1,t),h:Math.max(1,n)}}function UH(e,t,n,r){let i=e.child(`pathLst`);if(!i.exists())return``;let a=i.children(`path`),o=[];for(let e of a){let i=HH(e),a=e.numAttr(`w`)??r?.w??i.w,s=e.numAttr(`h`)??r?.h??i.h,c=a>0?t/a:1,l=s>0?n/s:1,u=0,d=0,f=e.allChildren();for(let e of f)switch(e.localName){case`moveTo`:{let t=e.child(`pt`),n=(t.numAttr(`x`)??0)*c,r=(t.numAttr(`y`)??0)*l;o.push(`M${n},${r}`),u=n,d=r;break}case`lnTo`:{let t=e.child(`pt`),n=(t.numAttr(`x`)??0)*c,r=(t.numAttr(`y`)??0)*l;o.push(`L${n},${r}`),u=n,d=r;break}case`cubicBezTo`:{let t=e.children(`pt`);if(t.length>=3){let e=(t[0].numAttr(`x`)??0)*c,n=(t[0].numAttr(`y`)??0)*l,r=(t[1].numAttr(`x`)??0)*c,i=(t[1].numAttr(`y`)??0)*l,a=(t[2].numAttr(`x`)??0)*c,s=(t[2].numAttr(`y`)??0)*l;o.push(`C${e},${n} ${r},${i} ${a},${s}`),u=a,d=s}break}case`quadBezTo`:{let t=e.children(`pt`);if(t.length>=2){let e=(t[0].numAttr(`x`)??0)*c,n=(t[0].numAttr(`y`)??0)*l,r=(t[1].numAttr(`x`)??0)*c,i=(t[1].numAttr(`y`)??0)*l;o.push(`Q${e},${n} ${r},${i}`),u=r,d=i}break}case`arcTo`:{let t=e.numAttr(`wR`)??0,n=e.numAttr(`hR`)??0,r=t*c,i=n*l,a=e.numAttr(`stAng`)??0,s=e.numAttr(`swAng`)??0,f=a/6e4,p=s/6e4;if(r===0||i===0||p===0)break;let m=f*Math.PI/180,h=Math.atan2(t*Math.sin(m),n*Math.cos(m)),g=(f+p)*Math.PI/180,_=Math.atan2(t*Math.sin(g),n*Math.cos(g)),v=u/c,y=d/l,b=v-t*Math.cos(h),x=y-n*Math.sin(h),S=(b+t*Math.cos(_))*c,C=(x+n*Math.sin(_))*l,w=+(Math.abs(p)>180),T=+(p>0);o.push(`A${r},${i} 0 ${w},${T} ${S},${C}`),u=S,d=C;break}case`close`:o.push(`Z`)}}return o.join(` `)}function WH(e,t,n,r,i,a,o){let s=i*Math.PI/180,c=a*Math.PI/180,l=e+n*Math.cos(s),u=t+r*Math.sin(s),d=e+n*Math.cos(c),f=t+r*Math.sin(c),p=((a-i)%360+360)%360;return p===0&&i!==a&&(p=360),`M${l},${u} A${n},${r} 0 ${+(p>180)},1 ${d},${f}`}function GH(e,t,n){return(e?.get(t)??n)/1e5}function KH(e,t,n){return e?.get(t)??n}function qH(e,t,n,r=.4){let i=e/2,a=t/2,o=e/2,s=t/2,c=o*r,l=s*r,u=n*2,d=[];for(let e=0;e<u;e++){let t=2*Math.PI*e/u-Math.PI/2,n=e%2==0,r=n?o:c,f=n?s:l,p=i+r*Math.cos(t),m=a+f*Math.sin(t);d.push(e===0?`M${p},${m}`:`L${p},${m}`)}return d.push(`Z`),d.join(` `)}function JH(e,t){let n=e.match(/[MLAZ]|-?\d*\.?\d+(?:e[-+]?\d+)?/gi);if(!n)return e;let r=[],i=0;for(;i<n.length;){let a=n[i++];if(!a)break;if(r.push(a),a!==`Z`){if(a===`M`||a===`L`){let e=Number(n[i++]),a=Number(n[i++]);r.push(String(t-e),String(a));continue}if(a===`A`){let e=n[i++],a=n[i++],o=n[i++],s=n[i++],c=Number(n[i++]),l=Number(n[i++]),u=Number(n[i++]);r.push(e,a,o,s,String(+!c),String(t-l),String(u));continue}return e}}return r.join(` `)}function YH(e,t){let n=e.match(/[MLAZ]|-?\d*\.?\d+(?:e[-+]?\d+)?/gi);if(!n)return e;let r=[],i=0;for(;i<n.length;){let e=n[i++];if(!e)break;if(r.push(e),e!==`Z`){if(e===`M`||e===`L`){let e=Number(n[i++]),a=Number(n[i++]);r.push(String(e),String(t-a));continue}if(e===`A`){let e=n[i++],a=n[i++],o=n[i++],s=n[i++],c=Number(n[i++]),l=Number(n[i++]),u=Number(n[i++]);r.push(e,a,o,s,String(+!c),String(l),String(t-u))}}}return r.join(` `)}var X=new Map;X.set(`rect`,(e,t)=>`M0,0 L${e},0 L${e},${t} L0,${t} Z`),X.set(`roundRect`,(e,t,n)=>{let r=GH(n,`adj`,16667),i=Math.min(e,t)*r;return[`M${i},0`,`L${e-i},0`,`A${i},${i} 0 0,1 ${e},${i}`,`L${e},${t-i}`,`A${i},${i} 0 0,1 ${e-i},${t}`,`L${i},${t}`,`A${i},${i} 0 0,1 0,${t-i}`,`L0,${i}`,`A${i},${i} 0 0,1 ${i},0`,`Z`].join(` `)}),X.set(`plaque`,(e,t,n)=>{let r=Math.min(Math.max(KH(n,`adj`,16667),0),5e4),i=Math.min(e,t)*r/1e5,a=e-i,o=t-i,s=Z(0,i,i,i,90,-90),c=Z(a,0,i,i,180,-90),l=Z(e,o,i,i,270,-90),u=Z(i,t,i,i,0,-90);return[`M0,${i}`,s.svg,`L${a},0`,c.svg,`L${e},${o}`,l.svg,`L${i},${t}`,u.svg,`Z`].join(` `)}),X.set(`cornerTabs`,(e,t)=>{let n=Math.sqrt(e*e+t*t)/20;return[`M0,0 L${n},0 L0,${n} Z`,`M${e},0 L${e-n},0 L${e},${n} Z`,`M${e},${t} L${e-n},${t} L${e},${t-n} Z`,`M0,${t} L${n},${t} L0,${t-n} Z`].join(` `)}),X.set(`squareTabs`,(e,t)=>{let n=Math.sqrt(e*e+t*t)/20;return[`M0,0 L${n},0 L${n},${n} L0,${n} Z`,`M${e-n},0 L${e},0 L${e},${n} L${e-n},${n} Z`,`M0,${t-n} L${n},${t-n} L${n},${t} L0,${t} Z`,`M${e-n},${t-n} L${e},${t-n} L${e},${t} L${e-n},${t} Z`].join(` `)}),X.set(`plaqueTabs`,(e,t)=>{let n=Math.sqrt(e*e+t*t)/20;return[`M0,0 L${n},0 A${n},${n} 0 0,1 0,${n} Z`,`M${e},0 L${e-n},0 A${n},${n} 0 0,0 ${e},${n} Z`,`M0,${t} L0,${t-n} A${n},${n} 0 0,1 ${n},${t} Z`,`M${e},${t} L${e-n},${t} A${n},${n} 0 0,1 ${e},${t-n} Z`].join(` `)}),X.set(`ellipse`,(e,t)=>{let n=e/2,r=t/2;return[`M${e},${r}`,`A${n},${r} 0 1,1 0,${r}`,`A${n},${r} 0 1,1 ${e},${r}`,`Z`].join(` `)}),X.set(`triangle`,(e,t,n)=>`M${e*GH(n,`adj`,5e4)},0 L${e},${t} L0,${t} Z`),X.set(`isosTriangle`,(e,t,n)=>`M${e*GH(n,`adj`,5e4)},0 L${e},${t} L0,${t} Z`),X.set(`rtTriangle`,(e,t)=>`M0,0 L${e},${t} L0,${t} Z`),X.set(`diamond`,(e,t)=>{let n=e/2,r=t/2;return`M${n},0 L${e},${r} L${n},${t} L0,${r} Z`}),X.set(`pentagon`,(e,t)=>{let n=e/2,r=n*105146/1e5,i=t/2*110557/1e5,a=i,o=r*Math.cos(18*Math.PI/180),s=r*Math.cos(54*Math.PI/180),c=i*Math.sin(18*Math.PI/180),l=i*Math.sin(54*Math.PI/180);return[`M${n-o},${a-c}`,`L${n},0`,`L${n+o},${a-c}`,`L${n+s},${a+l}`,`L${n-s},${a+l}`,`Z`].join(` `)}),X.set(`hexagon`,(e,t,n)=>{let r=Math.min(e,t),i=Math.min(Math.max(KH(n,`adj`,25e3),0),r>0?5e4*e/r:5e4),a=t/2*115470/1e5,o=r*i/1e5,s=e-o,c=t/2,l=a*Math.sin(60*Math.PI/180),u=c-l,d=c+l;return[`M0,${c}`,`L${o},${u}`,`L${s},${u}`,`L${e},${c}`,`L${s},${d}`,`L${o},${d}`,`Z`].join(` `)}),X.set(`octagon`,(e,t,n)=>{let r=Math.min(e,t)*Math.min(Math.max(KH(n,`adj`,29289),0),5e4)/1e5,i=e-r,a=t-r;return[`M0,${r}`,`L${r},0`,`L${i},0`,`L${e},${r}`,`L${e},${a}`,`L${i},${t}`,`L${r},${t}`,`L0,${a}`,`Z`].join(` `)}),X.set(`heptagon`,(e,t)=>{let n=e/2,r=n*102572/1e5,i=t/2*105210/1e5,a=t/2*105210/1e5,o=r*97493/1e5,s=r*78183/1e5,c=r*43388/1e5,l=i*62349/1e5,u=i*22252/1e5,d=i*90097/1e5;return[`M${n-o},${a+u}`,`L${n-s},${a-l}`,`L${n},0`,`L${n+s},${a-l}`,`L${n+o},${a+u}`,`L${n+c},${a+d}`,`L${n-c},${a+d}`,`Z`].join(` `)}),X.set(`decagon`,(e,t)=>{let n=e/2,r=t/2,i=r*105146/1e5,a=n*Math.cos(36*Math.PI/180),o=n*Math.cos(72*Math.PI/180),s=i*Math.sin(72*Math.PI/180),c=i*Math.sin(36*Math.PI/180);return[`M0,${r}`,`L${n-a},${r-c}`,`L${n-o},${r-s}`,`L${n+o},${r-s}`,`L${n+a},${r-c}`,`L${e},${r}`,`L${n+a},${r+c}`,`L${n+o},${r+s}`,`L${n-o},${r+s}`,`L${n-a},${r+c}`,`Z`].join(` `)}),X.set(`dodecagon`,(e,t)=>{let n=e*2894/21600,r=e*7906/21600,i=e*13694/21600,a=e*18706/21600,o=t*2894/21600,s=t*7906/21600,c=t*13694/21600,l=t*18706/21600;return[`M0,${s}`,`L${n},${o}`,`L${r},0`,`L${i},0`,`L${a},${o}`,`L${e},${s}`,`L${e},${c}`,`L${a},${l}`,`L${i},${t}`,`L${r},${t}`,`L${n},${l}`,`L0,${c}`,`Z`].join(` `)}),X.set(`parallelogram`,(e,t,n)=>{let r=Math.min(e,t),i=r>0?1e5*e/r:1e5,a=r*Math.min(Math.max(KH(n,`adj`,25e3),0),i)/1e5;return`M0,${t} L${a},0 L${e},0 L${e-a},${t} Z`}),X.set(`trapezoid`,(e,t,n)=>{let r=Math.min(e,t),i=r>0?5e4*e/r:5e4,a=r*Math.min(Math.max(KH(n,`adj`,25e3),0),i)/1e5;return`M0,${t} L${a},0 L${e-a},0 L${e},${t} Z`}),X.set(`nonIsoscelesTrapezoid`,(e,t,n)=>{let r=Math.min(e,t),i=r>0?5e4*e/r:5e4,a=Math.min(Math.max(KH(n,`adj1`,25e3),0),i),o=Math.min(Math.max(KH(n,`adj2`,25e3),0),i);return`M0,${t} L${r*a/1e5},0 L${e-r*o/1e5},0 L${e},${t} Z`}),X.set(`corner`,(e,t,n)=>{let r=Math.min(e,t),i=Math.min(Math.max(GH(n,`adj1`,5e4),0),1),a=r*Math.min(Math.max(GH(n,`adj2`,5e4),0),1),o=t-r*i;return[`M0,0`,`L${a},0`,`L${a},${o}`,`L${e},${o}`,`L${e},${t}`,`L0,${t}`,`Z`].join(` `)}),X.set(`diagStripe`,(e,t,n)=>{let r=Math.min(Math.max(GH(n,`adj`,5e4),0),1),i=e*r;return[`M0,${t*r}`,`L${i},0`,`L${e},0`,`L0,${t}`,`Z`].join(` `)}),X.set(`star4`,(e,t,n)=>{let r=GH(n,`adj`,12500)*2;return qH(e,t,4,Math.min(Math.max(r,0),1))}),X.set(`star5`,(e,t,n)=>{let r=n?.get(`adj`)??19098,i=Math.min(Math.max(r,0),5e4),a=110557,o=e/2*105146/1e5,s=t/2*a/1e5,c=t/2*a/1e5,l=o*i/5e4,u=s*i/5e4,d=e/2,f=2*Math.PI/5,p=f/2,m=-Math.PI/2,h=[];for(let e=0;e<5;e++){let t=m+f*e,n=t+p,r=d+o*Math.cos(t),i=c+s*Math.sin(t),a=d+l*Math.cos(n),g=c+u*Math.sin(n);h.push(e===0?`M${r},${i}`:`L${r},${i}`),h.push(`L${a},${g}`)}return h.push(`Z`),h.join(` `)}),X.set(`star6`,(e,t,n)=>{let r=n?.get(`adj`)??28868,i=Math.min(Math.max(r,0),5e4),a=e/2*115470/1e5,o=t/2,s=a*i/5e4,c=o*i/5e4,l=e/2,u=t/2,d=2*Math.PI/6,f=d/2,p=-Math.PI/2,m=[];for(let e=0;e<6;e++){let t=p+d*e,n=t+f,r=l+a*Math.cos(t),i=u+o*Math.sin(t),h=l+s*Math.cos(n),g=u+c*Math.sin(n);m.push(e===0?`M${r},${i}`:`L${r},${i}`),m.push(`L${h},${g}`)}return m.push(`Z`),m.join(` `)}),X.set(`star7`,(e,t,n)=>{let r=n?.get(`adj`)??34601,i=Math.min(Math.max(r,0),5e4),a=e/2*102572/1e5,o=t/2*105210/1e5,s=o,c=a*i/5e4,l=o*i/5e4,u=e/2,d=2*Math.PI/7,f=d/2,p=-Math.PI/2,m=[];for(let e=0;e<7;e++){let t=p+d*e,n=t+f,r=u+a*Math.cos(t),i=s+o*Math.sin(t),h=u+c*Math.cos(n),g=s+l*Math.sin(n);m.push(e===0?`M${r},${i}`:`L${r},${i}`),m.push(`L${h},${g}`)}return m.push(`Z`),m.join(` `)}),X.set(`star8`,(e,t,n)=>{let r=GH(n,`adj`,37500)*2;return qH(e,t,8,Math.min(Math.max(r,0),1))}),X.set(`star10`,(e,t,n)=>{let r=n?.get(`adj`)??42533,i=Math.min(Math.max(r,0),5e4),a=e/2*105146/1e5,o=t/2,s=a*i/5e4,c=o*i/5e4,l=e/2,u=t/2,d=2*Math.PI/10,f=d/2,p=-Math.PI/2,m=[];for(let e=0;e<10;e++){let t=p+d*e,n=t+f,r=l+a*Math.cos(t),i=u+o*Math.sin(t),h=l+s*Math.cos(n),g=u+c*Math.sin(n);m.push(e===0?`M${r},${i}`:`L${r},${i}`),m.push(`L${h},${g}`)}return m.push(`Z`),m.join(` `)}),X.set(`star12`,(e,t,n)=>{let r=GH(n,`adj`,37500)*2;return qH(e,t,12,Math.min(Math.max(r,0),1))}),X.set(`star16`,(e,t,n)=>{let r=GH(n,`adj`,37500)*2;return qH(e,t,16,Math.min(Math.max(r,0),1))}),X.set(`star24`,(e,t,n)=>{let r=GH(n,`adj`,37500)*2;return qH(e,t,24,Math.min(Math.max(r,0),1))}),X.set(`star32`,(e,t,n)=>{let r=GH(n,`adj`,37500)*2;return qH(e,t,32,Math.min(Math.max(r,0),1))}),X.set(`line`,(e,t)=>e===0?`M0.5,0 L0.5,${t||1}`:t===0?`M0,0.5 L${e||1},0.5`:`M0,0 L${e},${t}`),X.set(`lineInv`,(e,t)=>e===0?`M0.5,0 L0.5,${t||1}`:t===0?`M0,0.5 L${e||1},0.5`:`M${e},0 L0,${t}`),X.set(`straightConnector1`,(e,t)=>e===0?`M0.5,0 L0.5,${t||1}`:t===0?`M0,0.5 L${e||1},0.5`:`M0,0 L${e},${t}`),X.set(`bentConnector2`,(e,t)=>`M0,0 L${e},0 L${e},${t}`),X.set(`bentConnector3`,(e,t,n)=>{let r=e*GH(n,`adj1`,5e4);return`M0,0 L${r},0 L${r},${t} L${e},${t}`}),X.set(`bentConnector4`,(e,t,n)=>{let r=GH(n,`adj1`,5e4),i=GH(n,`adj2`,5e4),a=e*r,o=t*i;return`M0,0 L${a},0 L${a},${o} L${e},${o} L${e},${t}`}),X.set(`curvedConnector2`,(e,t)=>`M0,0 C${e/2},0 ${e},${t/2} ${e},${t}`),X.set(`curvedConnector3`,(e,t,n)=>{let r=e*GH(n,`adj1`,5e4),i=r/2,a=(e+r)/2,o=t/2;return`M0,0 C${i},0 ${r},${t/4} ${r},${o} C${r},${t*3/4} ${a},${t} ${e},${t}`}),X.set(`curvedConnector4`,(e,t,n)=>{let r=e*GH(n,`adj1`,5e4),i=t*GH(n,`adj2`,5e4),a=r/2,o=(e+r)/2,s=(r+o)/2,c=(o+e)/2,l=i/2,u=l/2,d=(l+i)/2,f=(t+i)/2;return[`M0,0`,`C${a},0 ${r},${u} ${r},${l}`,`C${r},${d} ${s},${i} ${o},${i}`,`C${c},${i} ${e},${f} ${e},${t}`].join(` `)}),X.set(`curvedConnector5`,(e,t,n)=>{let r=e*GH(n,`adj1`,5e4),i=t*GH(n,`adj2`,5e4),a=e*GH(n,`adj3`,5e4),o=(r+a)/2,s=r/2,c=(r+o)/2,l=(a+o)/2,u=(a+e)/2,d=i/2,f=d/2,p=(d+i)/2,m=(t+i)/2,h=(m+i)/2,g=(m+t)/2;return[`M0,0`,`C${s},0 ${r},${f} ${r},${d}`,`C${r},${p} ${c},${i} ${o},${i}`,`C${l},${i} ${a},${h} ${a},${m}`,`C${a},${g} ${u},${t} ${e},${t}`].join(` `)}),X.set(`bentConnector5`,(e,t,n)=>{let r=GH(n,`adj1`,5e4),i=GH(n,`adj2`,5e4),a=GH(n,`adj3`,5e4),o=e*r,s=t*i,c=e*a;return`M0,0 L${o},0 L${o},${s} L${c},${s} L${c},${t} L${e},${t}`}),X.set(`rightArrow`,(e,t,n)=>{let r=GH(n,`adj1`,5e4),i=GH(n,`adj2`,5e4),a=Math.min(e,t),o=t*r/2,s=a*i,c=t/2,l=e-s;return[`M0,${c-o}`,`L${l},${c-o}`,`L${l},0`,`L${e},${c}`,`L${l},${t}`,`L${l},${c+o}`,`L0,${c+o}`,`Z`].join(` `)}),X.set(`leftArrow`,(e,t,n)=>{let r=GH(n,`adj1`,5e4),i=GH(n,`adj2`,5e4),a=Math.min(e,t),o=t*r/2,s=a*i,c=t/2;return[`M${e},${c-o}`,`L${s},${c-o}`,`L${s},0`,`L0,${c}`,`L${s},${t}`,`L${s},${c+o}`,`L${e},${c+o}`,`Z`].join(` `)}),X.set(`upArrow`,(e,t,n)=>{let r=GH(n,`adj1`,5e4),i=GH(n,`adj2`,5e4),a=e*r/2,o=t*i,s=e/2;return[`M${s-a},${t}`,`L${s-a},${o}`,`L0,${o}`,`L${s},0`,`L${e},${o}`,`L${s+a},${o}`,`L${s+a},${t}`,`Z`].join(` `)}),X.set(`downArrow`,(e,t,n)=>{let r=GH(n,`adj1`,5e4),i=GH(n,`adj2`,5e4),a=e*r/2,o=t*i,s=e/2,c=t-o;return[`M${s-a},0`,`L${s+a},0`,`L${s+a},${c}`,`L${e},${c}`,`L${s},${t}`,`L0,${c}`,`L${s-a},${c}`,`Z`].join(` `)}),X.set(`downArrowCallout`,(e,t,n)=>{let r=n?.get(`adj1`)??25e3,i=n?.get(`adj2`)??25e3,a=n?.get(`adj3`)??25e3,o=n?.get(`adj4`)??64977,s=Math.min(e,t),c=Math.max(0,Math.min(i,5e4*e/Math.max(s,1))),l=Math.max(0,Math.min(r,c*2)),u=Math.max(0,Math.min(a,1e5*t/Math.max(s,1))),d=u*s/Math.max(t,1),f=Math.max(0,Math.min(o,1e5-d)),p=e/2,m=s*c/1e5,h=s*l/2e5,g=p-m,_=p-h,v=p+h,y=p+m,b=t-s*u/1e5,x=t*f/1e5;return[`M0,0`,`L${e},0`,`L${e},${x}`,`L${v},${x}`,`L${v},${b}`,`L${y},${b}`,`L${p},${t}`,`L${g},${b}`,`L${_},${b}`,`L${_},${x}`,`L0,${x}`,`Z`].join(` `)}),X.set(`rightArrowCallout`,(e,t,n)=>{let r=Math.min(e,t),i=5e4*t/Math.max(r,1),a=Math.max(0,Math.min(n?.get(`adj2`)??25e3,i)),o=Math.max(0,Math.min(n?.get(`adj1`)??25e3,a*2)),s=1e5*e/Math.max(r,1),c=Math.max(0,Math.min(n?.get(`adj3`)??25e3,s)),l=c*r/Math.max(e,1),u=Math.max(0,Math.min(n?.get(`adj4`)??64977,1e5-l)),d=t/2,f=r*a/1e5,p=r*o/2e5,m=d-f,h=d-p,g=d+p,_=d+f,v=e-r*c/1e5,y=e*u/1e5;return[`M0,0`,`L${y},0`,`L${y},${h}`,`L${v},${h}`,`L${v},${m}`,`L${e},${d}`,`L${v},${_}`,`L${v},${g}`,`L${y},${g}`,`L${y},${t}`,`L0,${t}`,`Z`].join(` `)}),X.set(`leftArrowCallout`,(e,t,n)=>{let r=Math.min(e,t),i=5e4*t/Math.max(r,1),a=Math.max(0,Math.min(n?.get(`adj2`)??25e3,i)),o=Math.max(0,Math.min(n?.get(`adj1`)??25e3,a*2)),s=1e5*e/Math.max(r,1),c=Math.max(0,Math.min(n?.get(`adj3`)??25e3,s)),l=c*r/Math.max(e,1),u=Math.max(0,Math.min(n?.get(`adj4`)??64977,1e5-l)),d=t/2,f=r*a/1e5,p=r*o/2e5,m=d-f,h=d-p,g=d+p,_=d+f,v=r*c/1e5,y=e-e*u/1e5;return[`M0,${d}`,`L${v},${m}`,`L${v},${h}`,`L${y},${h}`,`L${y},0`,`L${e},0`,`L${e},${t}`,`L${y},${t}`,`L${y},${g}`,`L${v},${g}`,`L${v},${_}`,`Z`].join(` `)}),X.set(`upArrowCallout`,(e,t,n)=>{let r=Math.min(e,t),i=5e4*e/Math.max(r,1),a=Math.max(0,Math.min(n?.get(`adj2`)??25e3,i)),o=Math.max(0,Math.min(n?.get(`adj1`)??25e3,a*2)),s=1e5*t/Math.max(r,1),c=Math.max(0,Math.min(n?.get(`adj3`)??25e3,s)),l=c*r/Math.max(t,1),u=Math.max(0,Math.min(n?.get(`adj4`)??64977,1e5-l)),d=e/2,f=r*a/1e5,p=r*o/2e5,m=d-f,h=d-p,g=d+p,_=d+f,v=r*c/1e5,y=t-t*u/1e5;return[`M0,${y}`,`L${h},${y}`,`L${h},${v}`,`L${m},${v}`,`L${d},0`,`L${_},${v}`,`L${g},${v}`,`L${g},${y}`,`L${e},${y}`,`L${e},${t}`,`L0,${t}`,`Z`].join(` `)}),X.set(`upDownArrowCallout`,(e,t,n)=>{let r=n?.get(`adj1`)??25e3,i=n?.get(`adj2`)??25e3,a=n?.get(`adj3`)??25e3,o=n?.get(`adj4`)??48123,s=Math.min(e,t),c=Math.max(0,Math.min(i,5e4*e/Math.max(s,1))),l=Math.max(0,Math.min(r,c*2)),u=Math.max(0,Math.min(a,5e4*t/Math.max(s,1))),d=u*s/Math.max(t,1),f=Math.max(0,Math.min(o,1e5-d-d)),p=s*c/1e5,m=s*l/2e5,h=e/2,g=h-p,_=h-m,v=h+m,y=h+p,b=s*u/1e5,x=t*f/2e5,S=t/2-x,C=t/2+x,w=t-b;return[`M${h},0`,`L${y},${b}`,`L${v},${b}`,`L${v},${S}`,`L${e},${S}`,`L${e},${C}`,`L${v},${C}`,`L${v},${w}`,`L${y},${w}`,`L${h},${t}`,`L${g},${w}`,`L${_},${w}`,`L${_},${C}`,`L0,${C}`,`L0,${S}`,`L${_},${S}`,`L${_},${b}`,`L${g},${b}`,`Z`].join(` `)}),X.set(`leftRightArrowCallout`,(e,t,n)=>{let r=n?.get(`adj1`)??25e3,i=n?.get(`adj2`)??25e3,a=n?.get(`adj3`)??25e3,o=n?.get(`adj4`)??48123,s=Math.min(e,t),c=Math.max(0,Math.min(i,5e4*t/Math.max(s,1))),l=Math.max(0,Math.min(r,c*2)),u=Math.max(0,Math.min(a,5e4*e/Math.max(s,1))),d=u*s/Math.max(e,1),f=Math.max(0,Math.min(o,1e5-d-d)),p=s*c/1e5,m=s*l/2e5,h=t/2,g=h-p,_=h-m,v=h+m,y=h+p,b=s*u/1e5,x=e*f/2e5,S=e/2-x,C=e/2+x,w=e-b;return[`M0,${h}`,`L${b},${g}`,`L${b},${_}`,`L${S},${_}`,`L${S},0`,`L${C},0`,`L${C},${_}`,`L${w},${_}`,`L${w},${g}`,`L${e},${h}`,`L${w},${y}`,`L${w},${v}`,`L${C},${v}`,`L${C},${t}`,`L${S},${t}`,`L${S},${v}`,`L${b},${v}`,`L${b},${y}`,`Z`].join(` `)}),X.set(`uturnArrow`,(e,t,n)=>{let r=n?.get(`adj1`)??25e3,i=n?.get(`adj2`)??25e3,a=n?.get(`adj3`)??25e3,o=n?.get(`adj4`)??43750,s=n?.get(`adj5`)??75e3,c=Math.min(e,t),l=Math.max(0,Math.min(i,25e3)),u=Math.max(0,Math.min(r,l*2)),d=1e5-u*c/Math.max(t,1),f=Math.max(0,Math.min(a,d*t/Math.max(c,1))),p=(f+u)*c/Math.max(t,1),m=Math.max(p,Math.min(s,1e5)),h=c*u/1e5,g=c*l/1e5,_=g-h/2,v=t*m/1e5,y=v-c*f/1e5,b=e-_,x=Math.min(b/2,y),S=c*Math.max(0,Math.min(o,1e5*x/Math.max(c,1)))/1e5,C=Math.max(S-h,0),w=h+C,T=e-g,E=T-g,D=E+_,O=b-S,k=D-C;return[`M0,${t}`,`L0,${S}`,S>.1?`A${S},${S} 0 0,1 ${S},0`:`L0,0`,`L${O},0`,S>.1?`A${S},${S} 0 0,1 ${b},${S}`:`L${b},0`,`L${b},${y}`,`L${e},${y}`,`L${T},${v}`,`L${E},${y}`,`L${D},${y}`,`L${D},${w}`,C>.1?`A${C},${C} 0 0,0 ${k},${h}`:`L${k},${h}`,`L${w},${h}`,C>.1?`A${C},${C} 0 0,0 ${h},${w}`:`L${h},${w}`,`L${h},${t}`,`Z`].join(` `)}),X.set(`leftRightArrow`,(e,t,n)=>{let r=Math.min(e,t),i=t/2,a=r>0?5e4*e/r:0,o=Math.min(Math.max(n?.get(`adj1`)??5e4,0),1e5),s=r*Math.min(Math.max(n?.get(`adj2`)??5e4,0),a)/1e5,c=e-s,l=t*o/2e5,u=i,d=u-l,f=u+l;return[`M0,${u}`,`L${s},0`,`L${s},${d}`,`L${c},${d}`,`L${c},0`,`L${e},${u}`,`L${c},${t}`,`L${c},${f}`,`L${s},${f}`,`L${s},${t}`,`Z`].join(` `)}),X.set(`leftUpArrow`,(e,t,n)=>{let r=Math.max(0,Math.min(n?.get(`adj2`)??25e3,5e4)),i=r*2,a=Math.max(0,Math.min(n?.get(`adj1`)??25e3,i)),o=1e5-i,s=Math.max(0,Math.min(n?.get(`adj3`)??25e3,o)),c=Math.min(e,t),l=c*s/1e5,u=c*r/5e4,d=e-u,f=t-u,p=c*r/1e5,m=e-p,h=t-p,g=c*a/2e5,_=m-g,v=m+g,y=h-g,b=h+g;return[`M0,${h}`,`L${l},${f}`,`L${l},${y}`,`L${_},${y}`,`L${_},${l}`,`L${d},${l}`,`L${m},0`,`L${e},${l}`,`L${v},${l}`,`L${v},${b}`,`L${l},${b}`,`L${l},${t}`,`Z`].join(` `)}),X.set(`upDownArrow`,(e,t,n)=>{let r=n?.get(`adj1`)??5e4,i=n?.get(`adj2`)??5e4,a=Math.min(e,t),o=5e4*t/Math.max(a,1),s=Math.max(0,Math.min(i,o)),c=a*Math.max(0,Math.min(r,1e5))/2e5,l=a*s/1e5,u=e/2;return[`M${u},0`,`L${e},${l}`,`L${u+c},${l}`,`L${u+c},${t-l}`,`L${e},${t-l}`,`L${u},${t}`,`L0,${t-l}`,`L${u-c},${t-l}`,`L${u-c},${l}`,`L0,${l}`,`Z`].join(` `)}),X.set(`notchedRightArrow`,(e,t,n)=>{let r=GH(n,`adj1`,5e4),i=GH(n,`adj2`,5e4),a=Math.min(e,t),o=t*r/2,s=a*i,c=t/2,l=e-s,u=c>0?o*s/c:0;return[`M0,${c-o}`,`L${l},${c-o}`,`L${l},0`,`L${e},${c}`,`L${l},${t}`,`L${l},${c+o}`,`L0,${c+o}`,`L${u},${c}`,`Z`].join(` `)}),X.set(`chevron`,(e,t,n)=>{let r=GH(n,`adj`,5e4),i=Math.min(e,t)*r;return[`M0,0`,`L${e-i},0`,`L${e},${t/2}`,`L${e-i},${t}`,`L0,${t}`,`L${i},${t/2}`,`Z`].join(` `)}),X.set(`homePlate`,(e,t,n)=>{let r=GH(n,`adj`,5e4),i=e-Math.min(e,t)*r;return[`M0,0`,`L${i},0`,`L${e},${t/2}`,`L${i},${t}`,`L0,${t}`,`Z`].join(` `)}),X.set(`stripedRightArrow`,(e,t,n)=>{let r=Math.min(e,t),i=r>0?84375*e/r:84375,a=Math.min(Math.max(KH(n,`adj1`,5e4),0),1e5),o=Math.min(Math.max(KH(n,`adj2`,5e4),0),i),s=t*a/2e5,c=e-r*o/1e5,l=t/2,u=l-s,d=l+s,f=r/32,p=r/16,m=r/8,h=r*5/32;return[`M0,${u} L${f},${u} L${f},${d} L0,${d} Z`,`M${p},${u} L${m},${u} L${m},${d} L${p},${d} Z`,`M${h},${u}`,`L${c},${u}`,`L${c},0`,`L${e},${l}`,`L${c},${t}`,`L${c},${d}`,`L${h},${d}`,`Z`].join(` `)}),X.set(`bentArrow`,(e,t,n)=>{let r=Math.min(e,t),i=Math.max(0,Math.min(n?.get(`adj2`)??25e3,5e4)),a=i*2,o=Math.max(0,Math.min(n?.get(`adj1`)??25e3,a)),s=Math.max(0,Math.min(n?.get(`adj3`)??25e3,5e4)),c=r*o/1e5,l=r*i/1e5,u=l-c/2,d=r*s/1e5,f=e-d,p=t-u,m=Math.min(f,p),h=m>0?1e5*m/r:0,g=r*Math.max(0,Math.min(n?.get(`adj4`)??43750,h))/1e5,_=Math.max(g-c,0),v=c+_,y=e-d,b=u+c,x=b+u,S=u+g,C=b+_,w=[`M0,${t}`,`L0,${S}`];return g>.1?w.push(`A${g},${g} 0 0,1 ${g},${u}`):w.push(`L0,${u}`),w.push(`L${y},${u}`,`L${y},0`,`L${e},${l}`,`L${y},${x}`,`L${y},${b}`,`L${v},${b}`),_>.1?w.push(`A${_},${_} 0 0,0 ${c},${C}`):w.push(`L${c},${b}`),w.push(`L${c},${t}`,`Z`),w.join(` `)}),X.set(`bentUpArrow`,(e,t,n)=>{let r=Math.max(0,Math.min(n?.get(`adj1`)??25e3,5e4)),i=Math.max(0,Math.min(n?.get(`adj2`)??25e3,5e4)),a=Math.max(0,Math.min(n?.get(`adj3`)??25e3,5e4)),o=Math.min(e,t),s=o*a/1e5,c=e-o*i/5e4,l=e-o*i/1e5,u=o*r/2e5,d=l-u,f=l+u,p=t-o*r/1e5;return[`M0,${p}`,`L${d},${p}`,`L${d},${s}`,`L${c},${s}`,`L${l},0`,`L${e},${s}`,`L${f},${s}`,`L${f},${t}`,`L0,${t}`,`Z`].join(` `)}),X.set(`curvedRightArrow`,(e,t,n)=>{let r=n?.get(`adj1`)??25e3,i=n?.get(`adj2`)??5e4,a=n?.get(`adj3`)??25e3,o=1e5,s=t/2,c=e,l=t,u=Math.max(Math.min(e,t),1),d=5e4*t/u,f=Math.max(0,Math.min(i,d)),p=u*Math.max(0,Math.min(r,f))/o,m=u*f/o,h=s-(p+m)/4,g=h*2,_=g*g,v=p*p,y=Math.max(_-v,0),b=Math.sqrt(y)*e/Math.max(g,1e-6),x=o*b/u,S=u*Math.max(0,Math.min(a,x))/o,C=h+p,w=e*e,T=S*S,E=Math.max(w-T,0),D=Math.sqrt(E)*h/Math.max(e,1e-6),O=h+D,k=C+D,A=(m-p)/2,j=O-A,M=k+A,N=l-m/2,P=c-S,F=Math.atan(D/Math.max(S,1e-6)),I=Math.PI-F,L=-F,R=p/2,z=Math.atan2(R,Math.max(b,1e-6))-Math.PI/2,B=I*180/Math.PI,ee=L*180/Math.PI,te=F*180/Math.PI,ne=z*180/Math.PI,V=(e,t,n,r,i,a)=>{let o=i*Math.PI/180,s=a*Math.PI/180,c=e+n*Math.cos(o),l=t+r*Math.sin(o),u=e+n*Math.cos(s),d=t+r*Math.sin(s),f=a-i;return`M${c},${l} A${n},${r} 0 ${+(Math.abs(f)>180)},${+(f>=0)} ${u},${d}`};return[`M0,${h}`,V(e,h,e,h,180,180+ee).replace(`M`,`L`),`L${P},${O}`,`L${P},${j}`,`L${c},${N}`,`L${P},${M}`,`L${P},${k}`,V(e,C,e,h,B,B+te).replace(`M`,`L`),`Z`,V(e,h,e,h,180,270),`L${c},${p}`,V(e,C,e,h,270,270+ne).replace(`M`,`L`),`Z`].join(` `)}),X.set(`curvedLeftArrow`,(e,t,n)=>JH(X.get(`curvedRightArrow`)(e,t,n),e));function XH(e){let t=e.indexOf(`Z`);return t===-1?{outer:e,remainder:``}:{outer:e.slice(0,t+1).trim(),remainder:e.slice(t+1).trim()}}function ZH(e,t,n,r){let i=X.get(e)(t,n,r),{outer:a,remainder:o}=XH(i);return o?e===`curvedRightArrow`?[{d:o,fill:`norm`,stroke:!0},{d:a,fill:`norm`,stroke:!0}]:[{d:a,fill:`norm`,stroke:!0},{d:o,fill:`norm`,stroke:!0}]:[{d:i,fill:`norm`,stroke:!0}]}function QH(e,t,n,r){let i=X.get(`curvedDownArrow`)(t,n,r),{outer:a,remainder:o}=XH(i),s=o?[{d:o,fill:`norm`,stroke:!0},{d:a,fill:`norm`,stroke:!0}]:[{d:i,fill:`norm`,stroke:!0}];return e===`curvedDownArrow`?s:s.map(e=>({...e,d:YH(e.d,n)})).reverse()}X.set(`curvedUpArrow`,(e,t,n)=>{let r=(e,t,n,r,i,a)=>{let o=i*Math.PI/180,s=a*Math.PI/180,c=e+n*Math.cos(o),l=t+r*Math.sin(o),u=e+n*Math.cos(s),d=t+r*Math.sin(s),f=a-i;return`M${c},${l} A${n},${r} 0 ${+(Math.abs(f)>180)},${+(f>=0)} ${u},${d}`},i=Math.min(e,t),a=e/2,o=n?.get(`adj1`)??25e3,s=n?.get(`adj2`)??5e4,c=n?.get(`adj3`)??25e3,l=5e4*e/Math.max(i,1),u=Math.max(0,Math.min(s,l)),d=i*Math.max(0,Math.min(o,1e5))/1e5,f=i*u/1e5,p=a-(d+f)/4,m=p*2,h=Math.sqrt(Math.max(m*m-d*d,0))*t/Math.max(m,1),g=1e5*h/Math.max(i,1),_=i*Math.max(0,Math.min(c,g))/1e5,v=p+d,y=Math.sqrt(Math.max(t*t-_*_,0))*p/Math.max(t,1),b=p+y,x=v+y,S=(f-d)/2,C=b-S,w=x+S,T=e-f/2,E=_,D=Math.atan2(y,_),O=Math.atan2(d/2,h),k=Math.PI/2-O,A=O-D,j=Math.PI/2-D,M=k*180/Math.PI,N=A*180/Math.PI,P=j*180/Math.PI,F=D*180/Math.PI;return[r(p,0,p,t,M,M+N),`L${b},${E}`,`L${C},${E}`,`L${T},0`,`L${w},${E}`,`L${x},${E}`,r(v,0,p,t,P,P+F).replace(`M`,`L`),`L${p},${t}`,r(p,0,p,t,90,180).replace(`M`,`L`),`L${d},0`,r(v,0,p,t,180,90).replace(`M`,`L`),`Z`].join(` `)}),X.set(`curvedDownArrow`,(e,t,n)=>{let r=(e,t,n,r,i,a)=>{let o=i*Math.PI/180,s=a*Math.PI/180,c=e+n*Math.cos(o),l=t+r*Math.sin(o),u=e+n*Math.cos(s),d=t+r*Math.sin(s),f=a-i;return`M${c},${l} A${n},${r} 0 ${+(Math.abs(f)>180)},${+(f>=0)} ${u},${d}`},i=Math.min(e,t),a=e/2,o=n?.get(`adj1`)??25e3,s=n?.get(`adj2`)??5e4,c=n?.get(`adj3`)??25e3,l=5e4*e/Math.max(i,1),u=Math.max(0,Math.min(s,l)),d=i*Math.max(0,Math.min(o,1e5))/1e5,f=i*u/1e5,p=a-(d+f)/4,m=p*2,h=Math.sqrt(Math.max(m*m-d*d,0))*t/Math.max(m,1),g=1e5*h/Math.max(i,1),_=i*Math.max(0,Math.min(c,g))/1e5,v=p+d,y=Math.sqrt(Math.max(t*t-_*_,0))*p/Math.max(t,1),b=p+y,x=v+y,S=(f-d)/2,C=b-S,w=x+S,T=e-f/2,E=t-_,D=Math.atan2(y,_)*180/Math.PI,O=Math.atan2(d/2,h)*180/Math.PI,k=270+D,A=270-O,j=O-90,M=90+O;return[`M${T},${t}`,`L${C},${E}`,`L${b},${E}`,r(p,t,p,t,k,k-D).replace(`M`,`L`),`L${v},0`,r(v,t,p,t,270,270+D).replace(`M`,`L`),`L${b+d},${E}`,`L${w},${E}`,`Z`,`M${v},0`,r(v,t,p,t,A,A+j).replace(`M`,`L`),r(p,t,p,t,180,180+M).replace(`M`,`L`),`Z`].join(` `)});function $H(e,t,n,r=!1,i=`circularArrow`){let a=e/2,o=t/2,s=e/2,c=t/2,l=Math.min(e,t),u=e=>e/6e4*Math.PI/180,d=(e,t)=>e*Math.sin(u(t)),f=(e,t)=>e*Math.cos(u(t)),p=(e,t,n)=>e*Math.cos(Math.atan2(n,t)),m=(e,t,n)=>e*Math.sin(Math.atan2(n,t)),h=(e,t)=>Math.atan2(t,e)*180/Math.PI*6e4,g=(e,t,n)=>Math.sqrt(e*e+t*t+n*n),_=i===`leftCircularArrow`,v=n?.get(`adj1`)??12500,y=n?.get(`adj2`)??(_?-1142319:1142319),b=n?.get(`adj3`)??(_?1142319:20457681),x=n?.get(`adj4`)??108e5,S=n?.get(`adj5`)??12500,C=Math.max(0,Math.min(S,25e3)),w=C*2,T=Math.max(0,Math.min(v,w)),E=Math.max(1,Math.min(b,21599999)),D=Math.max(0,Math.min(x,21599999)),O=l*T/1e5,k=l*C/1e5,A=O/2,j=s+A-k,M=c+A-k,N=j-O,P=M-O,F=N+A,I=P+A,L=d(F,E),R=f(I,E),z=p(F,R,L),B=m(I,R,L),ee=a+z,te=o+B,ne=Math.min(N,P),V=z*z,H=B*B,re=ne*ne,ie=V-re,ae=H-re,oe=H===0?0:ie*ae/V,se=1-(H===0?0:oe/H),ce=Math.sqrt(Math.max(0,se)),le=z===0?0:ie/z,U=B===0?0:le/B,ue=h(1,U===0?0:(1+ce)/U),W=ue+216e5,de=(ue>=0?ue:W)-E,fe=de+216e5,pe=de>=0?de:fe,me=pe-108e5,he=pe-216e5,ge=Math.abs(me>=0?he:pe),_e;if(_){let e=-ge,t=-Math.abs(y);_e=Math.max(e,Math.min(t,0))}else _e=Math.max(0,Math.min(y,ge));let ve=E+_e,ye=d(F,ve),be=f(I,ve),G=p(F,be,ye),xe=m(I,be,ye),Se=a+G,Ce=o+xe,we=d(j,D),Te=f(M,D),Ee=p(j,Te,we),De=m(M,Te,we),Oe=a+Ee,ke=o+De,Ae=f(k,ve),je=d(k,ve),Me=ee+Ae,Ne=te+je,Pe=ee-Ae,Fe=te-je,Ie=Pe-a,K=Fe-o,Le=Me-a,Re=Ne-o,ze=Math.min(j,M),Be=j===0?0:Ie*ze/j,Ve=M===0?0:K*ze/M,He=j===0?0:Le*ze/j,Ue=M===0?0:Re*ze/M,We=He-Be,Ge=Ue-Ve,Ke=g(We,Ge,0),qe=Be*Ue-He*Ve,Je=ze*ze,Ye=Ke*Ke,Xe=Je*Ye-qe*qe,Ze=Math.sqrt(Math.max(Xe,0)),Qe=Ge*-1>=0?-1:1,$e=Qe*We*Ze,et=qe*Ge,tt=Ye===0?0:(et+$e)/Ye,nt=et-$e,rt=Ye===0?0:nt/Ye,it=Math.abs(Ge)*Ze,at=qe*We*-1,ot=Ye===0?0:(at+it)/Ye,st=at-it,ct=Ye===0?0:st/Ye,lt=He-tt,ut=He-rt,dt=Ue-ot,ft=Ue-ct,pt=g(lt,dt,0),mt=g(ut,ft,0)-pt,ht=mt>=0?tt:rt,gt=mt>=0?ot:ct,_t=ze===0?0:ht*j/ze,vt=ze===0?0:gt*M/ze,yt=a+_t,bt=o+vt,xt=N===0?0:Ie*ne/N,St=P===0?0:K*ne/P,Ct=N===0?0:Le*ne/N,wt=P===0?0:Re*ne/P,Tt=Ct-xt,Et=wt-St,Dt=g(Tt,Et,0),Ot=xt*wt-Ct*St,kt=ne*ne,At=Dt*Dt,jt=kt*At-Ot*Ot,Mt=Math.sqrt(Math.max(jt,0)),Nt=Qe*Tt*Mt,Pt=Ot*Et,Ft=At===0?0:(Pt+Nt)/At,It=Pt-Nt,Lt=At===0?0:It/At,Rt=Math.abs(Et)*Mt,zt=Ot*Tt*-1,Bt=At===0?0:(zt+Rt)/At,Vt=zt-Rt,Ht=At===0?0:Vt/At,Ut=xt-Ft,Wt=xt-Lt,Gt=St-Bt,Kt=St-Ht,qt=g(Ut,Gt,0),Jt=g(Wt,Kt,0)-qt,Yt=Jt>=0?Ft:Lt,Xt=Jt>=0?Bt:Ht,Zt=ne===0?0:Yt*N/ne,Qt=ne===0?0:Xt*P/ne,$t=a+Zt,en=o+Qt,tn=h(Zt,Qt),nn=tn+216e5,rn=tn>=0?tn:nn,an=D-rn,on,sn;if(_){let e=an>=0?an:an+216e5;on=rn+e,sn=-e}else on=rn,sn=an>=0?an-216e5:an;let cn=g(yt-$t,bt-en,0)/2-k,ln=cn>=0?yt:Me,un=cn>=0?bt:Ne,dn=cn>=0?$t:Pe,fn=cn>=0?en:Fe,pn=h(_t,vt),mn=pn+216e5,hn=(pn>=0?pn:mn)-D,gn,_n;if(_){let e=hn>=0?hn-216e5:hn;gn=D+e,_n=-e}else{let e=hn>=0?hn:hn+216e5;gn=D,_n=e}let vn=gn+_n,yn=d(j,vn),bn=f(M,vn),xn=a+p(j,bn,yn),Sn=o+m(M,bn,yn),Cn=on+sn,wn=d(N,Cn),Tn=f(P,Cn),En=a+p(N,Tn,wn),Dn=o+m(P,Tn,wn),On=+(Math.abs(_n/6e4)>180),kn=+(_n>0),An=+(Math.abs(sn/6e4)>180),jn=+(sn>0);if(_){let e=d(N,D),t=f(P,D),n=a+p(N,t,e),r=o+m(P,t,e);return[`M${Oe},${ke}`,`L${n},${r}`,`A${N},${P} 0 ${An},${jn} ${En},${Dn}`,`L${dn},${fn}`,`L${Se},${Ce}`,`L${ln},${un}`,`L${yt},${bt}`,`A${j},${M} 0 ${On},${kn} ${xn},${Sn}`,`Z`].join(` `)}return[`M${Oe},${ke}`,`A${j},${M} 0 ${On},${kn} ${xn},${Sn}`,`L${ln},${un}`,`L${Se},${Ce}`,`L${dn},${fn}`,`L${$t},${en}`,`A${N},${P} 0 ${An},${jn} ${En},${Dn}`,`Z`].join(` `)}X.set(`circularArrow`,(e,t,n)=>$H(e,t,n,!1,`circularArrow`)),X.set(`leftCircularArrow`,(e,t,n)=>$H(e,t,n,!1,`leftCircularArrow`)),X.set(`leftRightCircularArrow`,(e,t,n)=>{let r=e/400,i=t/280,a=(e,t)=>({x:e*r,y:t*i}),o=a(35,140),s=a(19.9536,89.9471),c=a(33.4296,89.9471),l=a(74.6127,28.1974),u=a(182.5744,.5489),d=a(274.5688,28.1924),f=a(315.4978,40.4912),p=a(348.2481,62.4743),m=a(366.5707,89.9471),h=a(380.0463,89.9471),g=a(365,140),_=a(310.0463,89.9471),v=a(320.9838,89.9471),y=a(274.3848,50.3095),b=a(182.4425,40.5864),x=a(115.6249,68.2298),S=a(101.3589,74.1319),C=a(88.9651,81.4842),w=a(79.0159,89.947),T=a(89.9536,89.9471);return[`M${o.x},${o.y}`,`L${s.x},${s.y}`,`L${c.x},${c.y}`,`C${l.x},${l.y} ${u.x},${u.y} ${d.x},${d.y}`,`C${f.x},${f.y} ${p.x},${p.y} ${m.x},${m.y}`,`L${h.x},${h.y}`,`L${g.x},${g.y}`,`L${_.x},${_.y}`,`L${v.x},${v.y}`,`C${y.x},${y.y} ${b.x},${b.y} ${x.x},${x.y}`,`C${S.x},${S.y} ${C.x},${C.y} ${w.x},${w.y}`,`L${T.x},${T.y}`,`Z`].join(` `)}),X.set(`quadArrow`,(e,t,n)=>{let r=n?.get(`adj1`)??22500,i=n?.get(`adj2`)??22500,a=n?.get(`adj3`)??22500,o=t/2,s=e/2,c=Math.min(e,t),l=Math.max(0,Math.min(i,5e4)),u=Math.max(0,Math.min(r,2*l)),d=c*Math.max(0,Math.min(a,(1e5-2*l)/2))/1e5,f=c*l/1e5,p=s-f,m=s+f,h=c*u/2e5,g=s-h,_=s+h,v=e-d,y=o-f,b=o+f,x=o-h,S=o+h,C=t-d;return[`M0,${o}`,`L${d},${y}`,`L${d},${x}`,`L${g},${x}`,`L${g},${d}`,`L${p},${d}`,`L${s},0`,`L${m},${d}`,`L${_},${d}`,`L${_},${x}`,`L${v},${x}`,`L${v},${y}`,`L${e},${o}`,`L${v},${b}`,`L${v},${S}`,`L${_},${S}`,`L${_},${C}`,`L${m},${C}`,`L${s},${t}`,`L${p},${C}`,`L${g},${C}`,`L${g},${S}`,`L${d},${S}`,`L${d},${b}`,`Z`].join(` `)}),X.set(`quadArrowCallout`,(e,t,n)=>{let r=Math.min(e,t),i=e/2,a=t/2,o=Math.max(0,Math.min(n?.get(`adj2`)??18515,5e4)),s=Math.max(0,Math.min(n?.get(`adj1`)??18515,o*2)),c=5e4-o,l=Math.max(0,Math.min(n?.get(`adj3`)??18515,c)),u=l*2,d=Math.max(s,Math.min(n?.get(`adj4`)??48123,1e5-u)),f=r*o/1e5,p=r*s/2e5,m=r*l/1e5,h=e*d/2e5,g=t*d/2e5,_=e-m,v=i-h,y=i+h,b=i-f,x=i+f,S=i-p,C=i+p,w=t-m,T=a-g,E=a+g,D=a-f,O=a+f,k=a-p,A=a+p;return[`M0,${a}`,`L${m},${D}`,`L${m},${k}`,`L${v},${k}`,`L${v},${T}`,`L${S},${T}`,`L${S},${m}`,`L${b},${m}`,`L${i},0`,`L${x},${m}`,`L${C},${m}`,`L${C},${T}`,`L${y},${T}`,`L${y},${k}`,`L${_},${k}`,`L${_},${D}`,`L${e},${a}`,`L${_},${O}`,`L${_},${A}`,`L${y},${A}`,`L${y},${E}`,`L${C},${E}`,`L${C},${w}`,`L${x},${w}`,`L${i},${t}`,`L${b},${w}`,`L${S},${w}`,`L${S},${E}`,`L${v},${E}`,`L${v},${A}`,`L${m},${A}`,`L${m},${O}`,`Z`].join(` `)}),X.set(`leftRightUpArrow`,(e,t,n)=>{let r=Math.max(0,Math.min(n?.get(`adj2`)??25e3,5e4)),i=r*2,a=Math.max(0,Math.min(n?.get(`adj1`)??25e3,i)),o=(1e5-i)/2,s=Math.max(0,Math.min(n?.get(`adj3`)??25e3,o)),c=Math.min(e,t),l=e/2,u=c*s/1e5,d=c*r/1e5,f=l-d,p=l+d,m=c*a/2e5,h=l-m,g=l+m,_=e-u,v=t-c*r/5e4,y=t-d,b=y-m,x=y+m;return[`M0,${y}`,`L${u},${v}`,`L${u},${b}`,`L${h},${b}`,`L${h},${u}`,`L${f},${u}`,`L${l},0`,`L${p},${u}`,`L${g},${u}`,`L${g},${b}`,`L${_},${b}`,`L${_},${v}`,`L${e},${y}`,`L${_},${t}`,`L${_},${x}`,`L${u},${x}`,`L${u},${t}`,`Z`].join(` `)}),X.set(`swooshArrow`,(e,t,n)=>{let r=Math.min(e,t),i=n?.get(`adj1`)??25e3,a=n?.get(`adj2`)??16667,o=Math.max(1,Math.min(i,75e3)),s=7e4*e/r,c=Math.max(0,Math.min(a,s)),l=t*o/1e5,u=r*c/1e5,d=r/8,f=t/6,p=Math.PI/2/14,m=Math.tan(p),h=e-u,g=d,_=d*m,v=h-_,y=l*m,b=g+l,x=h+y,S=x+_,C=b+d,w=C/2+t/20,T=e/6,E=f+f,D=b+f/2,O=e/4;return[`M0,${t}`,`Q${T},${E} ${h},${g}`,`L${v},0`,`L${e},${w}`,`L${S},${C}`,`L${x},${b}`,`Q${O},${D} 0,${t}`,`Z`].join(` `)}),X.set(`flowChartProcess`,(e,t)=>`M0,0 L${e},0 L${e},${t} L0,${t} Z`),X.set(`flowChartDecision`,(e,t)=>{let n=e/2,r=t/2;return`M${n},0 L${e},${r} L${n},${t} L0,${r} Z`}),X.set(`flowChartTerminator`,(e,t)=>{let n=e*3475/21600,r=e*18125/21600,i=n,a=t/2;return[`M${n},0`,`L${r},0`,`A${i},${a} 0 0,1 ${r},${t}`,`L${n},${t}`,`A${i},${a} 0 0,1 ${n},0`,`Z`].join(` `)}),X.set(`flowChartDocument`,(e,t)=>{let n=t*17322/21600,r=n,i=t*23922/21600,a=t*20172/21600;return[`M0,0`,`L${e},0`,`L${e},${n}`,`C${e/2},${r} ${e/2},${i} 0,${a}`,`Z`].join(` `)}),X.set(`flowChartInputOutput`,(e,t)=>{let n=e/5;return`M${n},0 L${e},0 L${e-n},${t} L0,${t} Z`}),X.set(`flowChartPredefinedProcess`,(e,t)=>{let n=e/8;return[`M0,0 L${e},0 L${e},${t} L0,${t} Z`,`M${n},0 L${n},${t}`,`M${e-n},0 L${e-n},${t}`].join(` `)}),X.set(`flowChartAlternateProcess`,(e,t)=>{let n=Math.min(e,t)/6;return[`M${n},0`,`L${e-n},0`,`A${n},${n} 0 0,1 ${e},${n}`,`L${e},${t-n}`,`A${n},${n} 0 0,1 ${e-n},${t}`,`L${n},${t}`,`A${n},${n} 0 0,1 0,${t-n}`,`L0,${n}`,`A${n},${n} 0 0,1 ${n},0`,`Z`].join(` `)}),X.set(`flowChartManualInput`,(e,t)=>`M0,${t*.2} L${e},0 L${e},${t} L0,${t} Z`),X.set(`flowChartManualOperation`,(e,t)=>`M0,0 L${e},0 L${e*4/5},${t} L${e/5},${t} Z`),X.set(`flowChartPreparation`,(e,t)=>{let n=e*.2,r=t/2;return`M${n},0 L${e-n},0 L${e},${r} L${e-n},${t} L${n},${t} L0,${r} Z`}),X.set(`flowChartData`,(e,t)=>{let n=e*.15;return`M${n},0 L${e},0 L${e-n},${t} L0,${t} Z`}),X.set(`flowChartInternalStorage`,(e,t)=>{let n=e/8,r=t/8;return[`M0,0 L${e},0 L${e},${t} L0,${t} Z`,`M${n},0 L${n},${t}`,`M0,${r} L${e},${r}`].join(` `)}),X.set(`flowChartMagneticDisk`,(e,t)=>{let n=t/6,r=n,i=t-n;return[`M0,${r}`,`A${e/2},${n} 0 1,1 ${e},${r}`,`L${e},${i}`,`A${e/2},${n} 0 1,1 0,${i}`,`L0,${r}`,`Z`,`M${e},${r}`,`A${e/2},${n} 0 1,1 0,${r}`].join(` `)}),X.set(`flowChartDelay`,(e,t)=>{let n=e/2,r=Z(n,0,n,t/2,270,180);return[`M0,0`,`L${n},0`,r.svg,`L0,${t}`,`Z`].join(` `)}),X.set(`flowChartDisplay`,(e,t)=>{let n=e/6,r=t/6,i=n,a=r*3,o=Z(5*n,0,i,a,270,180);return[`M0,${3*r}`,`L${n},0`,`L${5*n},0`,o.svg,`L${n},${t}`,`Z`].join(` `)}),X.set(`flowChartExtract`,(e,t)=>`M${e/2},0 L${e},${t} L0,${t} Z`),X.set(`flowChartMerge`,(e,t)=>`M0,0 L${e},0 L${e/2},${t} Z`),X.set(`flowChartOffpageConnector`,(e,t)=>{let n=t*.2;return[`M0,0`,`L${e},0`,`L${e},${t-n}`,`L${e/2},${t}`,`L0,${t-n}`,`Z`].join(` `)}),X.set(`flowChartConnector`,(e,t)=>{let n=e/2,r=t/2;return[`M${e},${r}`,`A${n},${r} 0 1,1 0,${r}`,`A${n},${r} 0 1,1 ${e},${r}`,`Z`].join(` `)}),X.set(`flowChartSort`,(e,t)=>{let n=e/2,r=t/2;return[`M${n},0 L${e},${r} L${n},${t} L0,${r} Z`,`M0,${r} L${e},${r}`].join(` `)}),X.set(`flowChartCollate`,(e,t)=>{let n=e/2,r=t/2;return[`M0,0 L${e},0 L${n},${r} Z`,`M0,${t} L${e},${t} L${n},${r} Z`].join(` `)}),X.set(`flowChartPunchedTape`,(e,t)=>{let n=e/20,r=t/20,i=(e,t,n,r,i,a)=>{let o=i/6e4,s=a/6e4,c=o*Math.PI/180,l=(o+s)*Math.PI/180,u=e-n*Math.cos(c),d=t-r*Math.sin(c),f=u+n*Math.cos(l),p=d+r*Math.sin(l);return{endX:f,endY:p,svg:`A${n},${r} 0 ${+(Math.abs(s)>180)},${+(s>0)} ${f},${p}`}},a=5*n,o=2*r,s=0,c=2*r,l=[`M${s},${c}`],u=i(s,c,a,o,108e5,-108e5);l.push(u.svg),s=u.endX,c=u.endY,u=i(s,c,a,o,108e5,108e5),l.push(u.svg),s=u.endX,c=u.endY;let d=20*n,f=18*r;return l.push(`L${d},${f}`),s=d,c=f,u=i(s,c,a,o,0,-108e5),l.push(u.svg),s=u.endX,c=u.endY,u=i(s,c,a,o,0,108e5),l.push(u.svg),l.push(`Z`),l.join(` `)}),X.set(`flowChartPunchedCard`,(e,t)=>{let n=e/5;return`M0,${t/5} L${n},0 L${e},0 L${e},${t} L0,${t} Z`}),X.set(`flowChartSummingJunction`,(e,t)=>{let n=e/2,r=t/2,i=n*Math.cos(Math.PI/4),a=r*Math.sin(Math.PI/4),o=n-i,s=n+i,c=r-a,l=r+a;return[`M0,${r}`,`A${n},${r} 0 1,1 ${e},${r}`,`A${n},${r} 0 1,1 0,${r}`,`Z`,`M${o},${c} L${s},${l}`,`M${s},${c} L${o},${l}`].join(` `)}),X.set(`flowChartOr`,(e,t)=>{let n=e/2,r=t/2;return[`M0,${r}`,`A${n},${r} 0 1,1 ${e},${r}`,`A${n},${r} 0 1,1 0,${r}`,`Z`,`M${n},0 L${n},${t}`,`M0,${r} L${e},${r}`].join(` `)}),X.set(`flowChartOnlineStorage`,(e,t)=>{let n=e/6;return[`M${n},0`,`L${e},0`,`A${n},${t/2} 0 0,0 ${e},${t}`,`L${n},${t}`,`A${n},${t/2} 0 0,1 ${n},0`,`Z`].join(` `)}),X.set(`flowChartMagneticDrum`,(e,t)=>{let n=e/6,r=e*5/6,i=t/2;return[`M${n},0`,`L${r},0`,`A${n},${i} 0 0,1 ${r},${t}`,`L${n},${t}`,`A${n},${i} 0 0,1 ${n},0`,`Z`,`M${r},${t}`,`A${n},${i} 0 0,1 ${r},0`].join(` `)}),X.set(`flowChartMagneticTape`,(e,t)=>{let n=e/2,r=t/2,i=n,a=r,o=Math.atan2(t,e),s=a+r*Math.sin(Math.PI/4),c=(e,t,n,r,i,a)=>{let o=i*Math.PI/180,s=(i+a)*Math.PI/180,c=e-n*Math.cos(o),l=t-r*Math.sin(o),u=c+n*Math.cos(s),d=l+r*Math.sin(s);return{endX:u,endY:d,svg:`A${n},${r} 0 ${+(Math.abs(a)>180)},${+(a>0)} ${u},${d}`}},l=i,u=t,d=c(l,u,n,r,90,90);l=d.endX,u=d.endY;let f=c(l,u,n,r,180,90);l=f.endX,u=f.endY;let p=c(l,u,n,r,270,90);l=p.endX,u=p.endY;let m=o*180/Math.PI,h=c(l,u,n,r,0,m);return[`M${i},${t}`,d.svg,f.svg,p.svg,h.svg,`L${e},${s}`,`L${e},${t}`,`Z`].join(` `)}),X.set(`flowChartMultidocument`,(e,t)=>{let n=t=>e*t/21600,r=e=>t*e/21600;return[`M0,${r(20782)}`,`C${n(9298)},${r(23542)} ${n(9298)},${r(18022)} ${n(18595)},${r(18022)}`,`L${n(18595)},${r(3675)} L0,${r(3675)} Z`,`M${n(1532)},${r(3675)} L${n(1532)},${r(1815)} L${n(2e4)},${r(1815)}`,`L${n(2e4)},${r(16252)}`,`C${n(19298)},${r(16252)} ${n(18595)},${r(16352)} ${n(18595)},${r(16352)}`,`L${n(18595)},${r(3675)} Z`,`M${n(2972)},${r(1815)} L${n(2972)},0 L${e},0`,`L${e},${r(14392)}`,`C${n(20800)},${r(14392)} ${n(2e4)},${r(14467)} ${n(2e4)},${r(14467)}`,`L${n(2e4)},${r(1815)} Z`].join(` `)}),X.set(`wedgeRectCallout`,(e,t,n)=>{let r=e/2,i=t/2,a=e*(n?.get(`adj1`)??-20833)/1e5,o=t*(n?.get(`adj2`)??62500)/1e5,s=r+a,c=i+o,l=a*t/e,u=Math.abs(o)-Math.abs(l),d=e*(a>=0?7:2)/12,f=e*(a>=0?10:5)/12,p=t*(o>=0?7:2)/12,m=t*(o>=0?10:5)/12,h=u>0||a>=0?0:s,g=u>0?o>=0?d:s:d,_=u>0?e:a>=0?s:e,v=u>0&&o>=0?s:d,y=u>0||a>=0?p:c,b=u>0?o>=0?0:c:0,x=u>0?p:a>=0?c:p,S=u>0&&o>=0?c:t;return[`M0,0`,`L${d},0`,`L${g},${b}`,`L${f},0`,`L${e},0`,`L${e},${p}`,`L${_},${x}`,`L${e},${m}`,`L${e},${t}`,`L${f},${t}`,`L${v},${S}`,`L${d},${t}`,`L0,${t}`,`L0,${m}`,`L${h},${y}`,`L0,${p}`,`Z`].join(` `)}),X.set(`wedgeRoundRectCallout`,(e,t,n)=>{let r=e/2,i=t/2,a=Math.min(e,t),o=e*(n?.get(`adj1`)??-20833)/1e5,s=t*(n?.get(`adj2`)??62500)/1e5,c=a*(n?.get(`adj3`)??16667)/1e5,l=r+o,u=i+s,d=o*t/e,f=Math.abs(s)-Math.abs(d),p=e-c,m=t-c,h=e*(o>=0?7:2)/12,g=e*(o>=0?10:5)/12,_=t*(s>=0?7:2)/12,v=t*(s>=0?10:5)/12,y=f>0||o>=0?0:l,b=f>0?s>=0?h:l:h,x=f>0?e:o>=0?l:e,S=f>0&&s>=0?l:h,C=f>0||o>=0?_:u,w=f>0?s>=0?0:u:0,T=f>0?_:o>=0?u:_,E=f>0&&s>=0?u:t;return[`M0,${c}`,`A${c},${c} 0 0,1 ${c},0`,`L${h},0`,`L${b},${w}`,`L${g},0`,`L${p},0`,`A${c},${c} 0 0,1 ${e},${c}`,`L${e},${_}`,`L${x},${T}`,`L${e},${v}`,`L${e},${m}`,`A${c},${c} 0 0,1 ${p},${t}`,`L${g},${t}`,`L${S},${E}`,`L${h},${t}`,`L${c},${t}`,`A${c},${c} 0 0,1 0,${m}`,`L0,${v}`,`L${y},${C}`,`L0,${_}`,`Z`].join(` `)}),X.set(`wedgeEllipseCallout`,(e,t,n)=>{let r=GH(n,`adj1`,-20833),i=GH(n,`adj2`,62500),a=e/2,o=t/2,s=a+e*r,c=o+t*i,l=Math.atan2(c-o,s-a),u=.15;return[WH(a,o,a,o,(l+u)*180/Math.PI,(l-u+2*Math.PI)*180/Math.PI),`L${s},${c}`,`Z`].join(` `)}),X.set(`cloudCallout`,(e,t,n)=>{let r=GH(n,`adj1`,-20833),i=GH(n,`adj2`,62500),a=e/2+e*r,o=t/2+t*i,s=X.get(`cloud`)(e,t),c=e/2,l=t/2,u=a-c,d=o-l,f=Math.min(e,t)*.04,p=Math.min(e,t)*.025,m=c+u*.5,h=l+d*.5,g=c+u*.75,_=l+d*.75;return[s,`M${m+f},${h} A${f},${f} 0 1,1 ${m-f},${h} A${f},${f} 0 1,1 ${m+f},${h} Z`,`M${g+p},${_} A${p},${p} 0 1,1 ${g-p},${_} A${p},${p} 0 1,1 ${g+p},${_} Z`].join(` `)}),X.set(`borderCallout1`,(e,t,n)=>{let r=t*(n?.get(`adj1`)??18750)/1e5,i=e*(n?.get(`adj2`)??-8333)/1e5,a=t*(n?.get(`adj3`)??112500)/1e5;return`M0,0 L${e},0 L${e},${t} L0,${t} Z M${i},${r} L${e*(n?.get(`adj4`)??-38333)/1e5},${a}`}),X.set(`cube`,(e,t,n)=>{let r=GH(n,`adj`,25e3),i=Math.min(e,t)*r;return[`M0,${i} L${e-i},${i} L${e-i},${t} L0,${t} Z`,`M0,${i} L${i},0 L${e},0 L${e-i},${i} Z`,`M${e-i},${i} L${e},0 L${e},${t-i} L${e-i},${t} Z`].join(` `)}),X.set(`plus`,(e,t,n)=>{let r=Math.min(e,t)*Math.min(Math.max(KH(n,`adj`,25e3),0),5e4)/1e5,i=e-r,a=t-r;return[`M0,${r}`,`L${r},${r}`,`L${r},0`,`L${i},0`,`L${i},${r}`,`L${e},${r}`,`L${e},${a}`,`L${i},${a}`,`L${i},${t}`,`L${r},${t}`,`L${r},${a}`,`L0,${a}`,`Z`].join(` `)}),X.set(`heart`,(e,t)=>{let n=e/2,r=t/4,i=t/3,a=e*49/48,o=e*10/48,s=n-a,c=n-o,l=n+o,u=n+a,d=-i;return[`M${n},${r}`,`C${l},${d} ${u},${r} ${n},${t}`,`C${s},${r} ${c},${d} ${n},${r}`,`Z`].join(` `)}),X.set(`cloud`,(e,t)=>{let n=e/43200,r=t/43200,i=[[6753,9190,-11429249,7426832],[5333,7267,-8646143,5396714],[4365,5945,-8748475,5983381],[4857,6595,-7859164,7034504],[5333,7273,-4722533,6541615],[6775,9220,-2776035,7816140],[5785,7867,37501,6842e3],[6752,9215,1347096,6910353],[7720,10543,3974558,4542661],[4360,5918,-16496525,8804134],[4345,5945,-14809710,9151131]],a=3900*n,o=14370*r,s=[`M${a},${o}`],c=3900,l=14370;for(let[e,t,u,d]of i){let i=u/6e4,f=d/6e4,p=i*Math.PI/180,m=Math.atan2(e*Math.sin(p),t*Math.cos(p)),h=(i+f)*Math.PI/180,g=Math.atan2(e*Math.sin(h),t*Math.cos(h)),_=c-e*Math.cos(m),v=l-t*Math.sin(m),y=_+e*Math.cos(g),b=v+t*Math.sin(g),x=y*n,S=b*r,C=e*n,w=t*r,T=+(Math.abs(f)>180),E=+(f>0);s.push(`A${C},${w} 0 ${T},${E} ${x},${S}`),c=y,l=b,a=x,o=S}return s.push(`Z`),s.join(` `)}),X.set(`frame`,(e,t,n)=>{let r=GH(n,`adj1`,12500),i=Math.min(e,t)*r;return[`M0,0 L${e},0 L${e},${t} L0,${t} Z`,`M${i},${i} L${i},${t-i} L${e-i},${t-i} L${e-i},${i} Z`].join(` `)}),X.set(`halfFrame`,(e,t,n)=>{let r=n?.get(`adj1`)??33333,i=n?.get(`adj2`)??33333,a=Math.min(e,t),o=a*Math.max(0,Math.min(i,1e5*e/Math.max(a,1)))/1e5,s=t-t*o/Math.max(e,1),c=a*Math.max(0,Math.min(r,1e5*s/Math.max(a,1)))/1e5,l=e-c*e/Math.max(t,1),u=t-o*t/Math.max(e,1);return[`M0,0`,`L${e},0`,`L${l},${c}`,`L${o},${c}`,`L${o},${u}`,`L0,${t}`,`Z`].join(` `)}),X.set(`donut`,(e,t,n)=>{let r=Math.min(e,t)*Math.min(Math.max(KH(n,`adj`,25e3),0),5e4)/1e5,i=e/2,a=t/2,o=Math.max(0,i-r),s=Math.max(0,a-r);return[`M0,${a}`,`A${i},${a} 0 1,1 ${e},${a}`,`A${i},${a} 0 1,1 0,${a}`,`Z`,`M${r},${a}`,`A${o},${s} 0 1,0 ${e-r},${a}`,`A${o},${s} 0 1,0 ${r},${a}`,`Z`].join(` `)}),X.set(`noSmoking`,(e,t,n)=>{let r=Math.min(e,t)*Math.min(Math.max(KH(n,`adj`,18750),0),5e4)/1e5,i=e/2,a=t/2,o=e/2,s=t/2,c=i-r,l=a-r,u=Math.atan2(t,e),d=l*Math.cos(u),f=c*Math.sin(u),p=Math.sqrt(d*d+f*f)||1,m=c*l/p,h=r/2,g=Math.atan2(h,m),_=g*2,v=-(Math.PI-_),y=u-g,b=y-Math.PI,x=e=>{let t=l*Math.cos(e),n=c*Math.sin(e),r=Math.sqrt(t*t+n*n)||1,i=c*l/r;return{x:o+i*Math.cos(e),y:s+i*Math.sin(e)}},S=x(y),C=x(b),w=y+v,T=b+v,E=x(w),D=x(T),O=+(Math.abs(v)>Math.PI),k=+(v>0);return[`M0,${s}`,`A${i},${a} 0 1,1 ${e},${s}`,`A${i},${a} 0 1,1 0,${s}`,`Z`,`M${S.x},${S.y}`,`A${c},${l} 0 ${O},${k} ${E.x},${E.y}`,`Z`,`M${C.x},${C.y}`,`A${c},${l} 0 ${O},${k} ${D.x},${D.y}`,`Z`].join(` `)}),X.set(`blockArc`,(e,t,n)=>{let r=n?.get(`adj1`)??108e5,i=n?.get(`adj2`)??0,a=n?.get(`adj3`)??25e3,o=Math.min(Math.max(r/6e4,0),360),s=Math.min(Math.max(i/6e4,0),360),c=(s-o+360)%360||360,l=o+c,u=s-c,d=e/2,f=t/2,p=Math.min(e,t)*Math.max(0,Math.min(a,5e4))/1e5,m=Math.max(1,d-p),h=Math.max(1,f-p),g=(e,t,n,r,i)=>{let a=i*Math.PI/180;return{x:e+n*Math.cos(a),y:t+r*Math.sin(a)}},_=g(d,f,d,f,o),v=g(d,f,d,f,l),y=g(d,f,m,h,s),b=g(d,f,m,h,u),x=+(c>180);return[`M${_.x},${_.y}`,`A${d},${f} 0 ${x},1 ${v.x},${v.y}`,`L${y.x},${y.y}`,`A${m},${h} 0 ${x},0 ${b.x},${b.y}`,`Z`].join(` `)}),X.set(`gear6`,(e,t,n)=>eU(e,t,6,n?.get(`adj1`)??15e3,n?.get(`adj2`)??3526)),X.set(`gear9`,(e,t,n)=>eU(e,t,9,n?.get(`adj1`)??1e4,n?.get(`adj2`)??1763));function eU(e,t,n,r,i){let a=e/2,o=t/2,s=Math.min(e,t),c=n===6?5358:2679,l=Math.min(Math.max(r,0),2e4),u=Math.min(Math.max(i,0),c),d=s*l/1e5,f=s*u/1e5,p=e/2-d,m=t/2-d;if(p<=0||m<=0)return`M0,0 L${e},0 L${e},${t} L0,${t} Z`;let h=d/2+f/2,g=Math.atan2(h,Math.min(p,m)),_=n===6?[330,30,90,150,210,270]:[310,350,30,70,110,150,190,230,270],v=[];for(let e=0;e<_.length;e++){let t=_[e]*Math.PI/180,n=t-g,r=t+g,i=a+p*Math.cos(n),s=o+m*Math.sin(n),c=a+p*Math.cos(r),l=o+m*Math.sin(r),u=c-i,h=l-s,y=Math.sqrt(u*u+h*h),b=Math.cos(t),x=Math.sin(t),S=b,C=x;y>0&&(S=-h/y,C=u/y),S*b+C*x<0&&(S=-S,C=-C);let w=y>0?u/y:0,T=y>0?h/y:0,E=i+w*f,D=s+T*f,O=c-w*f,k=l-T*f,A=E+S*d,j=D+C*d,M=O+S*d,N=k+C*d;if(e===0){let e=_[_.length-1]*Math.PI/180+g,t=a+p*Math.cos(e),n=o+m*Math.sin(e);v.push(`M${t},${n}`),v.push(`A${p},${m} 0 0,1 ${i},${s}`)}if(v.push(`L${A},${j}`),v.push(`L${M},${N}`),v.push(`L${c},${l}`),e<_.length-1){let t=_[e+1]*Math.PI/180-g,n=a+p*Math.cos(t),r=o+m*Math.sin(t);v.push(`A${p},${m} 0 0,1 ${n},${r}`)}}return v.push(`Z`),v.join(` `)}X.set(`mathPlus`,(e,t,n)=>{let r=Math.min(e,t),i=Math.min(Math.max(KH(n,`adj`,23520),0),73490),a=e*73490/2e5,o=t*73490/2e5,s=r*i/2e5,c=e/2,l=t/2,u=c-a,d=c-s,f=c+s,p=c+a,m=l-o,h=l-s,g=l+s,_=l+o;return[`M${u},${h}`,`L${d},${h}`,`L${d},${m}`,`L${f},${m}`,`L${f},${h}`,`L${p},${h}`,`L${p},${g}`,`L${f},${g}`,`L${f},${_}`,`L${d},${_}`,`L${d},${g}`,`L${u},${g}`,`Z`].join(` `)}),X.set(`mathMinus`,(e,t,n)=>{let r=t*Math.min(Math.max(KH(n,`adj1`,23520),0),1e5)/2e5,i=e*73490/2e5,a=e/2,o=t/2,s=a-i,c=a+i,l=o-r,u=o+r;return`M${s},${l} L${c},${l} L${c},${u} L${s},${u} Z`}),X.set(`mathMultiply`,(e,t,n)=>{let r=Math.min(e,t),i=e/2,a=t/2,o=r*Math.min(Math.max(KH(n,`adj1`,23520),0),51965)/1e5,s=Math.atan2(t,e),c=Math.sin(s),l=Math.cos(s),u=c/l,d=Math.sqrt(e*e+t*t),f=d-d*51965/1e5,p=l*f/2,m=c*f/2,h=c*o/2,g=l*o/2,_=p-h,v=m+g,y=p+h,b=m-g,x=(i-y)*u+b,S=e-y,C=e-_,w=(a-v)/u,T=C-w,E=_+w,D=t-v,O=t-b,k=t-x;return[`M${_},${v}`,`L${y},${b}`,`L${i},${x}`,`L${S},${b}`,`L${C},${v}`,`L${T},${a}`,`L${C},${D}`,`L${S},${O}`,`L${i},${k}`,`L${y},${O}`,`L${_},${D}`,`L${E},${a}`,`Z`].join(` `)}),X.set(`mathDivide`,(e,t,n)=>{let r=n?.get(`adj1`)??23520,i=n?.get(`adj2`)??5880,a=n?.get(`adj3`)??11760,o=Math.min(Math.max(r,1e3),36745),s=Math.min((73490-o)/4,36745*e/Math.max(t,1)),c=Math.min(Math.max(a,1e3),s),l=73490-4*c-o,u=Math.min(Math.max(i,0),l),d=e/2,f=t/2,p=t*o/2e5,m=t*u/1e5,h=t*c/1e5,g=e*73490/2e5,_=f-p,v=f+p,y=_-(m+h)-h,b=t-y,x=d-g,S=d+g;return[`M${d+h},${y+h} A${h},${h} 0 1,1 ${d-h},${y+h} A${h},${h} 0 1,1 ${d+h},${y+h} Z`,`M${d+h},${b-h} A${h},${h} 0 1,1 ${d-h},${b-h} A${h},${h} 0 1,1 ${d+h},${b-h} Z`,`M${x},${_} L${S},${_} L${S},${v} L${x},${v} Z`].join(` `)}),X.set(`mathEqual`,(e,t,n)=>{let r=n?.get(`adj1`)??23520,i=n?.get(`adj2`)??11760,a=Math.min(Math.max(r,0),36745),o=1e5-a*2,s=Math.min(Math.max(i,0),Math.max(o,0)),c=t*a/1e5,l=t*s/2e5,u=e*73490/2e5,d=e/2,f=t/2,p=f-l,m=f+l,h=p-c,g=m+c,_=d-u,v=d+u;return[`M${_},${h} L${v},${h} L${v},${p} L${_},${p} Z`,`M${_},${m} L${v},${m} L${v},${g} L${_},${g} Z`].join(` `)}),X.set(`mathNotEqual`,(e,t,n)=>{let r=n?.get(`adj1`)??23520,i=n?.get(`adj2`),a=n?.get(`adj3`)??11760,o=e/2,s=t/2,c=t/2,l=Math.min(Math.max(r,0),5e4),u=(()=>{if(i===void 0)return 110*Math.PI/180;let e=i/6e4*Math.PI/180,t=70*Math.PI/180,n=110*Math.PI/180;return Math.min(Math.max(e,t),n)})(),d=1e5-l*2,f=Math.min(Math.max(a,0),d),p=t*l/1e5,m=t*f/2e5,h=e*73490/2e5,g=o-h,_=o+h,v=s-m,y=s+m,b=v-p,x=y+p,S=u-Math.PI/2,C=c*Math.tan(S),w=Math.hypot(C,c)||1,T=w*p/c,E=T/2,D=o+C-E,O=D-C*b/c,k=D-C*v/c,A=D-C*y/c,j=D-C*x/c,M=D+T,N=O+T,P=k+T,F=A+T,I=j+T,L=p*c/w,R=S>0?D+L:M,z=S>0?D:M-L,B=p*C/w,ee=S>0?B:0,te=S>0?0:-B,ne=e-R,V=e-z,H=t-ee,re=t-te;return[`M${g},${b}`,`L${O},${b}`,`L${z},${te}`,`L${R},${ee}`,`L${N},${b}`,`L${_},${b}`,`L${_},${v}`,`L${P},${v}`,`L${F},${y}`,`L${_},${y}`,`L${_},${x}`,`L${I},${x}`,`L${V},${re}`,`L${ne},${H}`,`L${j},${x}`,`L${g},${x}`,`L${g},${y}`,`L${A},${y}`,`L${k},${v}`,`L${g},${v}`,`Z`].join(` `)}),X.set(`round1Rect`,(e,t,n)=>{let r=GH(n,`adj`,16667),i=Math.min(e,t)*r;return[`M0,0`,`L${e-i},0`,`A${i},${i} 0 0,1 ${e},${i}`,`L${e},${t}`,`L0,${t}`,`Z`].join(` `)}),X.set(`round2SameRect`,(e,t,n)=>{let r=GH(n,`adj1`,16667),i=GH(n,`adj2`,0),a=Math.min(e,t)*r,o=Math.min(e,t)*i;return[`M${a},0`,`L${e-a},0`,`A${a},${a} 0 0,1 ${e},${a}`,`L${e},${t-o}`,`A${o},${o} 0 0,1 ${e-o},${t}`,`L${o},${t}`,`A${o},${o} 0 0,1 0,${t-o}`,`L0,${a}`,`A${a},${a} 0 0,1 ${a},0`,`Z`].join(` `)}),X.set(`round2DiagRect`,(e,t,n)=>{let r=GH(n,`adj1`,16667),i=GH(n,`adj2`,0),a=Math.min(e,t)*r,o=Math.min(e,t)*i;return[`M${a},0`,`L${e},0`,`L${e},${t-o}`,`A${o},${o} 0 0,1 ${e-o},${t}`,`L0,${t}`,`L0,${a}`,`A${a},${a} 0 0,1 ${a},0`,`Z`].join(` `)}),X.set(`snip1Rect`,(e,t,n)=>{let r=GH(n,`adj`,16667),i=Math.min(e,t)*r;return`M0,0 L${e-i},0 L${e},${i} L${e},${t} L0,${t} Z`}),X.set(`snip2SameRect`,(e,t,n)=>{let r=GH(n,`adj1`,16667),i=GH(n,`adj2`,0),a=Math.min(e,t)*r,o=Math.min(e,t)*i;return`M${a},0 L${e-a},0 L${e},${a} L${e},${t-o} L${e-o},${t} L${o},${t} L0,${t-o} L0,${a} Z`}),X.set(`snip2DiagRect`,(e,t,n)=>{let r=Math.min(e,t),i=Math.min(Math.max(n?.get(`adj1`)??0,0),5e4),a=Math.min(Math.max(n?.get(`adj2`)??16667,0),5e4),o=r*i/1e5,s=e-o,c=t-o,l=r*a/1e5;return`M${o},0 L${e-l},0 L${e},${l} L${e},${c} L${s},${t} L${l},${t} L0,${t-l} L0,${o} Z`}),X.set(`snipRoundRect`,(e,t,n)=>{let r=GH(n,`adj1`,16667),i=GH(n,`adj2`,16667),a=Math.min(e,t)*r,o=Math.min(e,t)*i;return[`M${a},0`,`L${e-o},0`,`L${e},${o}`,`L${e},${t}`,`L0,${t}`,`L0,${a}`,`A${a},${a} 0 0,1 ${a},0`,`Z`].join(` `)}),X.set(`bevel`,(e,t,n)=>{let r=GH(n,`adj`,12500),i=Math.min(e,t)*r;return[`M0,0 L${e},0 L${e},${t} L0,${t} Z`,`M${i},${i} L${i},${t-i} L${e-i},${t-i} L${e-i},${i} Z`,`M0,0 L${e},0 L${e-i},${i} L${i},${i} Z`,`M${e},0 L${e},${t} L${e-i},${t-i} L${e-i},${i} Z`,`M${e},${t} L0,${t} L${i},${t-i} L${e-i},${t-i} Z`,`M0,${t} L0,0 L${i},${i} L${i},${t-i} Z`].join(` `)}),X.set(`foldedCorner`,(e,t,n)=>{let r=GH(n,`adj`,16667),i=Math.min(e,t)*r*.7;return[`M0,0 L${e},0 L${e},${t} L0,${t} Z`,`M${e-i},${t} L${e},${t} L${e},${t-i}`].join(` `)}),X.set(`sun`,(e,t,n)=>{let r=n?.get(`adj`)??25e3,i=Math.min(Math.max(r,12500),46875),a=5e4-i,o=a*30274/32768,s=a*12540/32768,c=5e4-o,l=5e4-s,u=c*3/4,d=l*3/4,f=u+3662,p=d+3662,m=d+12500,h=1e5-u,g=1e5-f,_=1e5-p,v=1e5-m,y=e/2,b=t/2,x=e*18436/21600,S=t*3163/21600,C=e*3163/21600,w=t*18436/21600,T=(e,t)=>t*e/1e5,E=T(u,e),D=T(f,e),O=T(p,e),k=T(m,e),A=T(h,e),j=T(g,e),M=T(_,e),N=T(v,e),P=T(a,e),F=T(a,t),I=T(u,t),L=T(f,t),R=T(p,t),z=T(m,t),B=T(h,t),ee=T(g,t),te=T(_,t),ne=T(v,t),V=T(i,e);return[`M${e},${b} L${A},${ne} L${A},${z} Z`,`M${x},${S} L${j},${R} L${M},${L} Z`,`M${y},0 L${N},${I} L${k},${I} Z`,`M${C},${S} L${O},${L} L${D},${R} Z`,`M0,${b} L${E},${z} L${E},${ne} Z`,`M${C},${w} L${D},${te} L${O},${ee} Z`,`M${y},${t} L${k},${B} L${N},${B} Z`,`M${x},${w} L${M},${ee} L${j},${te} Z`,`M${V},${b}`,`A${P},${F} 0 1,1 ${V+2*P},${b}`,`A${P},${F} 0 1,1 ${V},${b}`,`Z`].join(` `)}),X.set(`moon`,(e,t,n)=>{if(e<=0||t<=0)return`M0,0 L${e},0 L${e},${t} L0,${t} Z`;let r=Math.min(e,t),i=t/2,a=r*Math.min(Math.max(n?.get(`adj`)??5e4,0),87500)/1e5,o=r-a;if(o<=0)return`M0,0 L${e},0 L${e},${t} L0,${t} Z`;let s=a*e/r,c=(2*r*r-a*a)/o,l=(c-a)*e/r,u=(c/2-a)*i/r,d=(l-s)/2;return[`M${e},${t}`,`A${e},${i} 0 0,1 ${e},0`,`A${d},${u} 0 0,0 ${e},${t}`,`Z`].join(` `)}),X.set(`lightningBolt`,(e,t)=>[`M${e*.3895},${t*0}`,`L${e*0},${t*.1821}`,`L${e*.3425},${t*.3845}`,`L${e*.2265},${t*.4452}`,`L${e*.5497},${t*.6391}`,`L${e*.453},${t*.683}`,`L${e*.9972},${t*.9983}`,`L${e*.6796},${t*.5919}`,`L${e*.7624},${t*.5514}`,`L${e*.5138},${t*.3153}`,`L${e*.5939},${t*.2816}`,`Z`].join(` `)),X.set(`bracketPair`,(e,t,n)=>{let r=Math.min(e,t)*Math.min(Math.max(KH(n,`adj`,16667),0),5e4)/1e5,i=e-r,a=t-r;return[`M${r},${t}`,`A${r},${r} 0 0,1 0,${a}`,`L0,${r}`,`A${r},${r} 0 0,1 ${r},0`,`M${i},0`,`A${r},${r} 0 0,1 ${e},${r}`,`L${e},${a}`,`A${r},${r} 0 0,1 ${i},${t}`].join(` `)}),X.set(`bracePair`,(e,t,n)=>{let r=GH(n,`adj`,8333),i=Math.min(e,t)*r,a=t/2;return[`M${i*2},0`,`A${i},${i} 0 0,0 ${i},${i}`,`L${i},${a-i}`,`A${i},${i} 0 0,1 0,${a}`,`A${i},${i} 0 0,1 ${i},${a+i}`,`L${i},${t-i}`,`A${i},${i} 0 0,0 ${i*2},${t}`,`M${e-i*2},0`,`A${i},${i} 0 0,1 ${e-i},${i}`,`L${e-i},${a-i}`,`A${i},${i} 0 0,0 ${e},${a}`,`A${i},${i} 0 0,0 ${e-i},${a+i}`,`L${e-i},${t-i}`,`A${i},${i} 0 0,1 ${e-i*2},${t}`].join(` `)}),X.set(`leftBracket`,(e,t,n)=>{let r=Math.min(e,t),i=r>0?5e4*t/r:0,a=r*Math.max(0,Math.min(n?.get(`adj`)??8333,i))/1e5,o=e=>e/6e4,s=(e,t,n,r,i,a)=>{let s=o(i)*Math.PI/180,c=o(a)*Math.PI/180,l=e-n*Math.cos(s),u=t-r*Math.sin(s),d=l+n*Math.cos(s+c),f=u+r*Math.sin(s+c);return{cmd:`A${n},${r} 0 ${+(Math.abs(o(a))>180)},1 ${d},${f}`,x:d,y:f}},c=s(e,t,e,a,54e5,54e5),l=s(0,a,e,a,108e5,54e5);return[`M${e},${t}`,c.cmd,`L0,${a}`,l.cmd].join(` `)}),X.set(`rightBracket`,(e,t,n)=>{let r=Math.min(e,t),i=r>0?5e4*t/r:0,a=r*Math.max(0,Math.min(n?.get(`adj`)??8333,i))/1e5,o=t-a,s=e=>e/6e4,c=(e,t,n,r,i,a)=>{let o=s(i)*Math.PI/180,c=s(a)*Math.PI/180,l=e-n*Math.cos(o),u=t-r*Math.sin(o),d=l+n*Math.cos(o+c),f=u+r*Math.sin(o+c);return{cmd:`A${n},${r} 0 ${+(Math.abs(s(a))>180)},1 ${d},${f}`,x:d,y:f}},l=c(0,0,e,a,162e5,54e5),u=c(e,o,e,a,0,54e5);return[`M0,0`,l.cmd,`L${e},${o}`,u.cmd].join(` `)}),X.set(`leftBrace`,(e,t,n)=>{let r=Math.min(e,t),i=Math.max(0,Math.min(n?.get(`adj2`)??5e4,1e5)),a=1e5-i,o=Math.min(a,i)/2,s=r>0?o*t/r:0,c=r*Math.max(0,Math.min(n?.get(`adj1`)??8333,s))/1e5,l=t*i/1e5+c,u=e/2,d=e/2,f=e=>e/6e4,p=(e,t,n,r,i,a)=>{let o=f(i)*Math.PI/180,s=f(a)*Math.PI/180,c=e-n*Math.cos(o),l=t-r*Math.sin(o),u=c+n*Math.cos(o+s),d=l+r*Math.sin(o+s);return{cmd:`A${n},${r} 0 ${+(Math.abs(f(a))>180)},${+(a>=0)} ${u},${d}`,x:u,y:d}},m=e,h=t,g=p(m,h,u,c,54e5,54e5);m=g.x,h=g.y;let _=p(d,l,u,c,0,-54e5),v=p(_.x,_.y,u,c,54e5,-54e5),y=p(d,c,u,c,108e5,54e5);return[`M${e},${t}`,g.cmd,`L${d},${l}`,_.cmd,v.cmd,`L${d},${c}`,y.cmd].join(` `)}),X.set(`rightBrace`,(e,t,n)=>{let r=Math.min(e,t),i=Math.max(0,Math.min(n?.get(`adj2`)??5e4,1e5)),a=1e5-i,o=Math.min(a,i)/2,s=r>0?o*t/r:0,c=r*Math.max(0,Math.min(n?.get(`adj1`)??8333,s))/1e5,l=t*i/1e5-c,u=t-c,d=e/2,f=e/2,p=e=>e/6e4,m=(e,t,n,r,i,a)=>{let o=p(i)*Math.PI/180,s=p(a)*Math.PI/180,c=e-n*Math.cos(o),l=t-r*Math.sin(o),u=c+n*Math.cos(o+s),d=l+r*Math.sin(o+s);return{cmd:`A${n},${r} 0 ${+(Math.abs(p(a))>180)},${+(a>=0)} ${u},${d}`,x:u,y:d}},h=m(0,0,d,c,162e5,54e5),g=m(f,l,d,c,108e5,-54e5),_=m(g.x,g.y,d,c,162e5,-54e5),v=m(f,u,d,c,0,54e5);return[`M0,0`,h.cmd,`L${f},${l}`,g.cmd,_.cmd,`L${f},${u}`,v.cmd].join(` `)}),X.set(`actionButtonBlank`,(e,t)=>`M0,0 L${e},0 L${e},${t} L0,${t} Z`);var tU=new Map;tU.set(`actionButtonForwardNext`,(e,t)=>{let n=e/2,r=t/2,i=Math.min(e,t)*.3;return`M${n-i*.5},${r-i} L${n+i},${r} L${n-i*.5},${r+i} Z`}),tU.set(`actionButtonBackPrevious`,(e,t)=>{let n=e/2,r=t/2,i=Math.min(e,t)*.3;return`M${n+i*.5},${r-i} L${n-i},${r} L${n+i*.5},${r+i} Z`}),tU.set(`actionButtonReturn`,(e,t)=>{let n=e/2,r=t/2,i=Math.min(e,t)*.28,a=i*.22,o=r+i*.4,s=r-i*.4,c=n-i*.6,l=n+i*.6,u=(o-s)/2;return[`M${c},${o}`,`L${l},${o}`,`A${u},${u} 0 0,1 ${l},${s}`,`L${c+i*.15},${s}`,`L${c+i*.15},${s+a}`,`L${l-a*.3},${s+a}`,`A${u-a},${u-a} 0 0,0 ${l-a*.3},${o-a}`,`L${c},${o-a}`,`Z`,`M${c-i*.3},${s+a/2}`,`L${c+i*.15},${s-i*.2}`,`L${c+i*.15},${s+a+i*.2}`,`Z`].join(` `)}),tU.set(`actionButtonBeginning`,(e,t)=>{let n=e/2,r=t/2,i=Math.min(e,t)*.28;return[`M${n-i},${r-i} L${n-i+i*.2},${r-i} L${n-i+i*.2},${r+i} L${n-i},${r+i} Z`,`M${n+i},${r-i} L${n-i+i*.35},${r} L${n+i},${r+i} Z`].join(` `)}),tU.set(`actionButtonEnd`,(e,t)=>{let n=e/2,r=t/2,i=Math.min(e,t)*.28;return[`M${n+i-i*.2},${r-i} L${n+i},${r-i} L${n+i},${r+i} L${n+i-i*.2},${r+i} Z`,`M${n-i},${r-i} L${n+i-i*.35},${r} L${n-i},${r+i} Z`].join(` `)}),tU.set(`actionButtonInformation`,(e,t)=>{let n=e/2,r=t/2,i=Math.min(e,t)*.28;return[`M${n-i*.1},${r-i*.65} L${n+i*.1},${r-i*.65} L${n+i*.1},${r-i*.4} L${n-i*.1},${r-i*.4} Z`,`M${n-i*.12},${r-i*.2} L${n+i*.12},${r-i*.2} L${n+i*.12},${r+i*.65} L${n-i*.12},${r+i*.65} Z`].join(` `)}),tU.set(`actionButtonDocument`,(e,t)=>{let n=e/2,r=t/2,i=Math.min(e,t)*.28,a=i*.7,o=i,s=i*.3;return[`M${n-a},${r-o}`,`L${n+a-s},${r-o} L${n+a},${r-o+s}`,`L${n+a},${r+o} L${n-a},${r+o} Z`,`M${n+a-s},${r-o} L${n+a-s},${r-o+s} L${n+a},${r-o+s}`].join(` `)});function nU(e,t,n){let r=e.toLowerCase();return(tU.get(r)??tU.get(e))?.(t,n)}X.set(`wave`,(e,t,n)=>{let r=Math.min(Math.max(KH(n,`adj1`,12500),0),2e4),i=Math.min(Math.max(KH(n,`adj2`,0),-1e4),1e4),a=t*r/1e5,o=a*10/3,s=a-o,c=a+o,l=t-a,u=l-o,d=l+o,f=e*i/5e4,p=f<0?0:f,m=f<0?f:0,h=-p,g=e-m,_=h+(g-h)/3,v=(_+g)/2,y=m,b=e+p,x=y+(b-y)/3,S=(x+b)/2;return[`M${h},${a}`,`C${_},${s} ${v},${c} ${g},${a}`,`L${b},${l}`,`C${S},${d} ${x},${u} ${y},${l}`,`Z`].join(` `)}),X.set(`doubleWave`,(e,t,n)=>{let r=Math.min(Math.max(KH(n,`adj1`,6250),0),12500),i=Math.min(Math.max(KH(n,`adj2`,0),-1e4),1e4),a=t*r/1e5,o=a*10/3,s=a-o,c=a+o,l=t-a,u=l-o,d=l+o,f=e*i/5e4,p=f<0?0:f,m=f<0?f:0,h=-p,g=e-m,_=(g-h)/6,v=h+_,y=h+(g-h)/3,b=(h+g)/2,x=b+_,S=(x+g)/2,C=m,w=e+p,T=(w-C)/6,E=C+T,D=C+(w-C)/3,O=(C+w)/2,k=O+T,A=(k+w)/2;return[`M${h},${a}`,`C${v},${s} ${y},${c} ${b},${a}`,`C${x},${s} ${S},${c} ${g},${a}`,`L${w},${l}`,`C${A},${d} ${k},${u} ${O},${l}`,`C${D},${d} ${E},${u} ${C},${l}`,`Z`].join(` `)}),X.set(`irregularSeal1`,(e,t)=>{let n=t=>e*t/21600,r=e=>t*e/21600;return[`M${n(10800)},${r(5800)}`,`L${n(14522)},0`,`L${n(14155)},${r(5325)}`,`L${n(18380)},${r(4457)}`,`L${n(16702)},${r(7315)}`,`L${n(21097)},${r(8137)}`,`L${n(17607)},${r(10475)}`,`L${n(21600)},${r(13290)}`,`L${n(16837)},${r(12942)}`,`L${n(18145)},${r(18095)}`,`L${n(14020)},${r(14457)}`,`L${n(13247)},${r(19737)}`,`L${n(10532)},${r(14935)}`,`L${n(8485)},${r(21600)}`,`L${n(7715)},${r(15627)}`,`L${n(4762)},${r(17617)}`,`L${n(5667)},${r(13937)}`,`L${n(135)},${r(14587)}`,`L${n(3722)},${r(11775)}`,`L0,${r(8615)}`,`L${n(4627)},${r(7617)}`,`L${n(370)},${r(2295)}`,`L${n(7312)},${r(6320)}`,`L${n(8352)},${r(2295)}`,`Z`].join(` `)}),X.set(`irregularSeal2`,(e,t)=>[`M${e*11462/21600},${t*4342/21600}`,`L${e*14790/21600},0`,`L${e*14525/21600},${t*5777/21600}`,`L${e*18007/21600},${t*3172/21600}`,`L${e*16380/21600},${t*6532/21600}`,`L${e},${t*6645/21600}`,`L${e*16985/21600},${t*9402/21600}`,`L${e*18270/21600},${t*11290/21600}`,`L${e*16380/21600},${t*12310/21600}`,`L${e*18877/21600},${t*15632/21600}`,`L${e*14640/21600},${t*14350/21600}`,`L${e*14942/21600},${t*17370/21600}`,`L${e*12180/21600},${t*15935/21600}`,`L${e*11612/21600},${t*18842/21600}`,`L${e*9872/21600},${t*17370/21600}`,`L${e*8700/21600},${t*19712/21600}`,`L${e*7527/21600},${t*18125/21600}`,`L${e*4917/21600},${t}`,`L${e*4805/21600},${t*18240/21600}`,`L${e*1285/21600},${t*17825/21600}`,`L${e*3330/21600},${t*15370/21600}`,`L0,${t*12877/21600}`,`L${e*3935/21600},${t*11592/21600}`,`L${e*1172/21600},${t*8270/21600}`,`L${e*5372/21600},${t*7817/21600}`,`L${e*4502/21600},${t*3625/21600}`,`L${e*8550/21600},${t*6382/21600}`,`L${e*9722/21600},${t*1887/21600}`,`Z`].join(` `)),X.set(`teardrop`,(e,t)=>{let n=e/2,r=t/2;return[`M${e},${r}`,`A${n},${r} 0 1,1 ${n},0`,`L${e},0`,`L${e},${r}`,`Z`].join(` `)}),X.set(`pie`,(e,t,n)=>{let r=n?.get(`adj1`)??0,i=n?.get(`adj2`)??162e5,a=r/6e4%360,o=i/6e4%360,s=((o-a)%360+360)%360;s===0&&a!==o&&(s=360);let c=e/2,l=t/2,u=e=>e*Math.PI/180,d=e=>Math.atan2(Math.sin(u(e))/l,Math.cos(u(e))/c),f=d(a),p=d(o),m=c+c*Math.cos(f),h=l+l*Math.sin(f),g=c+c*Math.cos(p),_=l+l*Math.sin(p),v=+(s>180);return[`M${c},${l}`,`L${m},${h}`,`A${c},${l} 0 ${v},1 ${g},${_}`,`Z`].join(` `)}),X.set(`pieWedge`,(e,t)=>[`M0,${t}`,`A${e},${t} 0 0,1 ${e},0`,`L${e},${t}`,`Z`].join(` `)),X.set(`arc`,(e,t,n)=>{let r=n?.get(`adj1`)??162e5,i=n?.get(`adj2`)??0,a=r/6e4,o=i/6e4,s=e/2,c=t/2,l=e=>e*Math.PI/180,u=e=>Math.atan2(Math.sin(l(e))/c,Math.cos(l(e))/s),d=u(a),f=u(o),p=s+s*Math.cos(d),m=c+c*Math.sin(d),h=s+s*Math.cos(f),g=c+c*Math.sin(f),_=((o-a)%360+360)%360;return _===0&&a!==o&&(_=360),`M${p},${m} A${s},${c} 0 ${+(_>180)},1 ${h},${g}`}),X.set(`chord`,(e,t,n)=>{let r=n?.get(`adj1`)??27e5,i=n?.get(`adj2`)??162e5,a=r/6e4,o=i/6e4,s=e/2,c=t/2,l=e/2,u=t/2,d=e=>e*Math.PI/180,f=e=>Math.atan2(Math.sin(d(e))/u,Math.cos(d(e))/l),p=f(a),m=f(o),h=s+l*Math.cos(p),g=c+u*Math.sin(p),_=s+l*Math.cos(m),v=c+u*Math.sin(m),y=((o-a)%360+360)%360;return y===0&&a!==o&&(y=360),y===0?`M${s-l},${c} A${l},${u} 0 1,1 ${s+l},${c} A${l},${u} 0 1,1 ${s-l},${c} Z`:`M${h},${g} A${l},${u} 0 ${+(y>180)},1 ${_},${v} Z`}),X.set(`funnel`,(e,t)=>{let n=Math.min(e,t),r=e/2,i=t/4,a=e/2,o=t,s=n/20,c=r-s,l=i-s,u=8*Math.PI/180,d=r*Math.cos(u),f=i*Math.sin(u),p=Math.atan2(f,d),m=Math.PI-p,h=Math.PI+2*p,g=Math.PI-2*p,_=r/4,v=i/4,y=i*Math.cos(m),b=r*Math.sin(m),x=Math.sqrt(y*y+b*b),S=r*i/x,C=S*Math.cos(m),w=S*Math.sin(m),T=a+C,E=i+w,D=m+h,O=i*Math.cos(D),k=r*Math.sin(D),A=Math.sqrt(O*O+k*k),j=r*i/A,M=j*Math.cos(D),N=j*Math.sin(D),P=a+M,F=i+N,I=o-v,L=v*Math.cos(p),R=_*Math.sin(p),z=Math.sqrt(L*L+R*R),B=_*v/z,ee=B*Math.cos(p),te=B*Math.sin(p),ne=a+ee,V=I+te,H=p+g,re=v*Math.cos(H),ie=_*Math.sin(H),ae=Math.sqrt(re*re+ie*ie),oe=_*v/ae,se=oe*Math.cos(H),ce=oe*Math.sin(H),le=a+se,U=I+ce,ue=h*180/Math.PI,W=+(Math.abs(ue)>180),de=+(h>0),fe=g*180/Math.PI,pe=+(Math.abs(fe)>180),me=+(g>0),he=[`M${T},${E}`,`A${r},${i} 0 ${W},${de} ${P},${F}`,`L${ne},${V}`,`A${_},${v} 0 ${pe},${me} ${le},${U}`,`Z`].join(` `),ge=r-c,_e=r+c;return`${he} ${[`M${ge},${i}`,`A${c},${l} 0 1,0 ${_e},${i}`,`A${c},${l} 0 1,0 ${ge},${i}`,`Z`].join(` `)}`}),new Map().set(`can`,(e,t)=>{let n=t*.1,r=e/2;return[{path:[`M0,${n}`,`A${r},${n} 0 0,1 ${e},${n}`,`A${r},${n} 0 0,1 0,${n}`,`Z`].join(` `),fillModifier:`lighten`}]});var rU=new Map;function iU(e,t){let n=Math.min(e,t),r=e/2,i=t/2,a=n*3/8;return{ss:n,hc:r,vc:i,dx2:a,g9:i-a,g10:i+a,g11:r-a,g12:r+a,g13:n*3/4}}var aU=(e,t)=>`M0,0 L${e},0 L${e},${t} L0,${t} Z`;rU.set(`actionButtonForwardNext`,(e,t)=>{let{g9:n,g10:r,g11:i,g12:a,vc:o}=iU(e,t),s=`M${a},${o} L${i},${n} L${i},${r} Z`;return[{d:`${aU(e,t)} ${s}`,fill:`norm`,stroke:!1},{d:s,fill:`darken`,stroke:!1},{d:s,fill:`none`,stroke:!0},{d:aU(e,t),fill:`none`,stroke:!0}]}),rU.set(`actionButtonForward`,(e,t)=>{let n=rU.get(`actionButtonForwardNext`);return n?n(e,t):[]}),rU.set(`actionButtonBackPrevious`,(e,t)=>{let{g9:n,g10:r,g11:i,g12:a,vc:o}=iU(e,t),s=`M${i},${o} L${a},${n} L${a},${r} Z`;return[{d:`${aU(e,t)} ${s}`,fill:`norm`,stroke:!1},{d:s,fill:`darken`,stroke:!1},{d:s,fill:`none`,stroke:!0},{d:aU(e,t),fill:`none`,stroke:!0}]}),rU.set(`actionButtonBeginning`,(e,t)=>{let{g9:n,g10:r,g11:i,g12:a,g13:o,vc:s}=iU(e,t),c=o/8,l=o/4,u=i+c,d=`${`M${i+l},${s} L${a},${n} L${a},${r} Z`} ${`M${u},${n} L${i},${n} L${i},${r} L${u},${r} Z`}`;return[{d:`${aU(e,t)} ${d}`,fill:`norm`,stroke:!1},{d,fill:`darken`,stroke:!1},{d,fill:`none`,stroke:!0},{d:aU(e,t),fill:`none`,stroke:!0}]}),rU.set(`actionButtonEnd`,(e,t)=>{let{g9:n,g10:r,g11:i,g12:a,g13:o,vc:s}=iU(e,t),c=o*3/4,l=o*7/8,u=i+c,d=i+l,f=`${`M${u},${s} L${i},${n} L${i},${r} Z`} ${`M${d},${n} L${a},${n} L${a},${r} L${d},${r} Z`}`;return[{d:`${aU(e,t)} ${f}`,fill:`norm`,stroke:!1},{d:f,fill:`darken`,stroke:!1},{d:f,fill:`none`,stroke:!0},{d:aU(e,t),fill:`none`,stroke:!0}]}),rU.set(`actionButtonReturn`,(e,t)=>{let{g9:n,g10:r,g11:i,g12:a,g13:o,hc:s}=iU(e,t),c=o*7/8,l=o*3/4,u=o*5/8,d=o*3/8,f=o/4,p=o/8,m=n+l,h=n+u,g=n+f,_=i+c,v=i+l,y=i+u,b=i+d,x=i+f,S=[`M${a},${g}`,`L${v},${n}`,`L${s},${g}`,`L${y},${g}`,`L${y},${h}`,`A${p},${p} 0 0,1 ${y-p},${m}`,`L${b},${m}`,`A${p},${p} 0 0,1 ${x},${h}`,`L${x},${g}`,`L${i},${g}`,`L${i},${h}`,`A${d},${d} 0 0,0 ${b},${r}`,`L${s},${r}`,`A${d},${d} 0 0,0 ${s+d},${r-d}`,`L${_},${g}`,`Z`].join(` `),C=[`M${a},${g}`,`L${_},${g}`,`L${_},${h}`,`A${d},${d} 0 0,1 ${i+o/2},${r}`,`L${b},${r}`,`A${d},${d} 0 0,1 ${i},${h}`,`L${i},${g}`,`L${x},${g}`,`L${x},${h}`,`A${p},${p} 0 0,0 ${b},${m}`,`L${s},${m}`,`A${p},${p} 0 0,0 ${y},${h}`,`L${y},${g}`,`L${s},${g}`,`L${v},${n}`,`Z`].join(` `);return[{d:`${aU(e,t)} ${S}`,fill:`norm`,stroke:!1},{d:S,fill:`darken`,stroke:!1},{d:C,fill:`none`,stroke:!0},{d:aU(e,t),fill:`none`,stroke:!0}]}),rU.set(`actionButtonSound`,(e,t)=>{let{g9:n,g10:r,g11:i,g12:a,g13:o,vc:s}=iU(e,t),c=o/8,l=o*5/16,u=o*5/8,d=o*11/16,f=o*3/4,p=o*7/8,m=n+c,h=n+l,g=n+d,_=n+p,v=i+l,y=i+u,b=i+f,x=`M${i},${h} L${i},${g} L${v},${g} L${y},${r} L${y},${n} L${v},${h} Z`,S=`${`M${i},${h} L${v},${h} L${y},${n} L${y},${r} L${v},${g} L${i},${g} Z`} ${`M${b},${h} L${a},${m}`} ${`M${b},${s} L${a},${s}`} ${`M${b},${g} L${a},${_}`}`;return[{d:`${aU(e,t)} ${x}`,fill:`norm`,stroke:!1},{d:x,fill:`darken`,stroke:!1},{d:S,fill:`none`,stroke:!0},{d:aU(e,t),fill:`none`,stroke:!0}]}),rU.set(`actionButtonInformation`,(e,t)=>{let{g9:n,g10:r,g11:i,g13:a,hc:o,dx2:s}=iU(e,t),c=a/32,l=a*5/16,u=a*3/8,d=a*13/32,f=a*19/32,p=a*11/16,m=a*13/16,h=a*7/8,g=a*3/32,_=n+c,v=n+l,y=n+u,b=n+m,x=n+h,S=i+l,C=i+d,w=i+f,T=i+p,E=`M${o},${n} A${s},${s} 0 1,1 ${o},${r} A${s},${s} 0 1,1 ${o},${n} Z`,D=`${`M${o},${_} A${g},${g} 0 1,1 ${o},${_+g*2} A${g},${g} 0 1,1 ${o},${_} Z`} ${`M${S},${v} L${T},${v} L${T},${y} L${w},${y} L${w},${b} L${T},${b} L${T},${x} L${S},${x} L${S},${b} L${C},${b} L${C},${y} L${S},${y} Z`}`;return[{d:`${aU(e,t)} ${E}`,fill:`norm`,stroke:!1},{d:`${E} ${D}`,fill:`darken`,stroke:!1},{d:D,fill:`lighten`,stroke:!1},{d:`${E} ${D}`,fill:`none`,stroke:!0},{d:aU(e,t),fill:`none`,stroke:!0}]}),rU.set(`actionButtonHome`,(e,t)=>{let{g9:n,g10:r,g11:i,g12:a,g13:o,hc:s,vc:c}=iU(e,t),l=o/16,u=o/8,d=o*3/16,f=o*5/16,p=o*7/16,m=o*9/16,h=o*11/16,g=o*3/4,_=o*13/16,v=o*7/8,y=n+l,b=n+d,x=n+f,S=n+g,C=i+u,w=i+p,T=i+m,E=i+h,D=i+_,O=i+v,k=`M${s},${n} L${i},${c} L${C},${c} L${C},${r} L${O},${r} L${O},${c} L${a},${c} L${D},${x} L${D},${y} L${E},${y} L${E},${b} Z`,A=`M${D},${x} L${D},${y} L${E},${y} L${E},${b} Z`,j=`M${C},${c} L${C},${r} L${w},${r} L${w},${S} L${T},${S} L${T},${r} L${O},${r} L${O},${c} Z`,M=`M${s},${n} L${i},${c} L${a},${c} Z`,N=`M${w},${S} L${T},${S} L${T},${r} L${w},${r} Z`,P=`M${s},${n} L${E},${b} L${E},${y} L${D},${y} L${D},${x} L${a},${c} L${O},${c} L${O},${r} L${C},${r} L${C},${c} L${i},${c} Z M${E},${b} L${D},${x} M${O},${c} L${C},${c} M${w},${r} L${w},${S} L${T},${S} L${T},${r}`;return[{d:`${aU(e,t)} ${k}`,fill:`norm`,stroke:!1},{d:`${A} ${j}`,fill:`darkenLess`,stroke:!1},{d:`${M} ${N}`,fill:`darken`,stroke:!1},{d:P,fill:`none`,stroke:!0},{d:aU(e,t),fill:`none`,stroke:!0}]}),rU.set(`actionButtonHelp`,(e,t)=>{let{g9:n,g11:r,g13:i,hc:a}=iU(e,t),o=i/7,s=i*3/14,c=i*2/7,l=i*3/7,u=i*4/7,d=i*17/28,f=i*21/28,p=i*11/14,m=i/14,h=i*3/28,g=n+c,_=n+d,v=n+f,y=n+p,b=r+s,x=r+l,S=r+u,C=(e,t,n,r,i,a)=>{let o=i*Math.PI/180,s=(i+a)*Math.PI/180,c=e-n*Math.cos(o),l=t-r*Math.sin(o),u=c+n*Math.cos(s),d=l+r*Math.sin(s);return{endX:u,endY:d,svg:`A${n},${r} 0 ${+(Math.abs(a)>180)},${+(a>0)} ${u},${d}`}},w=b,T=g,E=C(w,T,c,c,180,180);w=E.endX,T=E.endY;let D=C(w,T,o,s,0,90);w=D.endX,T=D.endY;let O=C(w,T,m,h,270,-90),k=C(x,_,o,s,180,90),A=C(k.endX,k.endY,m,h,90,-90),j=C(A.endX,A.endY,o,o,0,-180),M=`M${a},${y} A${h},${h} 0 1,1 ${a},${y+h*2} A${h},${h} 0 1,1 ${a},${y} Z`,N=`${`M${b},${g} ${E.svg} ${D.svg} ${O.svg} L${S},${v} L${x},${v} L${x},${_} ${k.svg} ${A.svg} ${j.svg} Z`} ${M}`;return[{d:`${aU(e,t)} ${N}`,fill:`norm`,stroke:!1},{d:N,fill:`darken`,stroke:!1},{d:N,fill:`none`,stroke:!0},{d:aU(e,t),fill:`none`,stroke:!0}]}),rU.set(`actionButtonDocument`,(e,t)=>{let n=Math.min(e,t),r=e/2,i=t/2,a=n*3/8,o=n*9/32,s=i-a,c=i+a,l=r-o,u=r+o,d=n*3/16,f=u-d,p=s+d,m=`M${l},${s} L${f},${s} L${u},${p} L${u},${c} L${l},${c} Z`,h=`M${f},${s} L${f},${p} L${u},${p} Z`,g=`${m} M${u},${p} L${f},${p} L${f},${s}`;return[{d:`${aU(e,t)} ${m}`,fill:`norm`,stroke:!1},{d:m,fill:`darkenLess`,stroke:!1},{d:h,fill:`darken`,stroke:!1},{d:g,fill:`none`,stroke:!0},{d:aU(e,t),fill:`none`,stroke:!0}]}),rU.set(`actionButtonMovie`,(e,t)=>{let{g9:n,g11:r,g12:i,g13:a}=iU(e,t),o=a*1455/21600,s=a*1905/21600,c=a*2325/21600,l=a*16155/21600,u=a*17010/21600,d=a*19335/21600,f=a*19725/21600,p=a*20595/21600,m=a*5280/21600,h=a*5730/21600,g=a*6630/21600,_=a*7492/21600,v=a*9067/21600,y=a*9555/21600,b=a*13342/21600,x=a*14580/21600,S=a*15592/21600,C=r+o,w=r+s,T=r+c,E=r+l,D=r+u,O=r+d,k=r+f,A=r+p,j=n+m,M=n+h,N=n+g,P=n+_,F=n+v,I=n+y,L=n+b,R=n+x,z=n+S,B=[`M${r},${j}`,`L${r},${I}`,`L${C},${I}`,`L${w},${F}`,`L${T},${F}`,`L${T},${z}`,`L${D},${z}`,`L${D},${L}`,`L${O},${L}`,`L${A},${R}`,`L${i},${R}`,`L${i},${N}`,`L${A},${N}`,`L${k},${P}`,`L${D},${P}`,`L${D},${N}`,`L${E},${M}`,`L${w},${M}`,`L${C},${j}`,`Z`].join(` `);return[{d:`${aU(e,t)} ${B}`,fill:`norm`,stroke:!1},{d:B,fill:`darken`,stroke:!1},{d:B,fill:`none`,stroke:!0},{d:aU(e,t),fill:`none`,stroke:!0}]}),rU.set(`flowChartOfflineStorage`,(e,t)=>{let n=`M0,0 L${e},0 L${e/2},${t} Z`,r=t*4/5,i=`M${e*2/5},${r} L${e*3/5},${r}`;return[{d:n,fill:`norm`,stroke:!1},{d:i,fill:`none`,stroke:!0},{d:n,fill:`none`,stroke:!0}]}),rU.set(`cube`,(e,t,n)=>{let r=Math.min(Math.max(GH(n,`adj`,25e3),0),.45),i=Math.min(e,t)*r,a=[`M0,${i}`,`L${e-i},${i}`,`L${e-i},${t}`,`L0,${t}`,`Z`].join(` `),o=[`M0,${i}`,`L${i},0`,`L${e},0`,`L${e-i},${i}`,`Z`].join(` `),s=[`M${e-i},${i}`,`L${e},0`,`L${e},${t-i}`,`L${e-i},${t}`,`Z`].join(` `);return[{d:a,fill:`norm`,stroke:!0},{d:o,fill:`lightenLess`,stroke:!0},{d:s,fill:`darkenLess`,stroke:!0}]}),rU.set(`bevel`,(e,t,n)=>{let r=Math.min(Math.max(GH(n,`adj`,12500),0),.45),i=Math.min(e,t)*r,a=`M${i},${i} L${e-i},${i} L${e-i},${t-i} L${i},${t-i} Z`,o=`M0,0 L${e},0 L${e-i},${i} L${i},${i} Z`,s=`M0,${t} L${i},${t-i} L${e-i},${t-i} L${e},${t} Z`,c=`M0,0 L${i},${i} L${i},${t-i} L0,${t} Z`,l=`M${e},0 L${e},${t} L${e-i},${t-i} L${e-i},${i} Z`;return[{d:a,fill:`norm`,stroke:!0},{d:o,fill:`lightenLess`,stroke:!0},{d:l,fill:`darken`,stroke:!0},{d:s,fill:`darken`,stroke:!0},{d:c,fill:`lighten`,stroke:!0}]}),rU.set(`leftRightRibbon`,(e,t,n)=>{let r=Math.min(e,t),i=e/2,a=e/32,o=e/2,s=t/2,c=Math.min(Math.max((n?.get(`adj3`)??16667)/1e5,0),.33333),l=1-c,u=Math.min(Math.max((n?.get(`adj1`)??5e4)/1e5,0),l),d=(i-a)/r,f=r*Math.min(Math.max((n?.get(`adj2`)??5e4)/1e5,0),d),p=e-f,m=t*u/2,h=-t*c/2,g=s+h-m,_=s+m-h,v=g+m,y=t-v,b=v*2,x=t-b,S=b-g,C=t-S,w=c*r/4,T=o-a,E=o+a,D=g+w,O=C-w,k=(e,t,n,r,i,a)=>{let o=i*Math.PI/180,s=(i+a)*Math.PI/180,c=e-n*Math.cos(o),l=t-r*Math.sin(o),u=c+n*Math.cos(s),d=l+r*Math.sin(s);return{endX:u,endY:d,svg:`A${n},${r} 0 ${+(Math.abs(a)>180)},${+(a>0)} ${u},${d}`}},A=k(o,g,a,w,270,180),j=k(A.endX,A.endY,a,w,270,-180),M=k(o,_,a,w,90,90),N=[`M0,${v}`,`L${f},0`,`L${f},${g}`,`L${o},${g}`,A.svg,j.svg,`L${p},${C}`,`L${p},${x}`,`L${e},${y}`,`L${p},${t}`,`L${p},${_}`,`L${o},${_}`,M.svg,`L${T},${S}`,`L${f},${S}`,`L${f},${b}`,`Z`].join(` `),P=k(E,D,a,w,0,90),F=k(P.endX,P.endY,a,w,270,-180),I=[`M${E},${D}`,P.svg,F.svg,`L${E},${C}`,`Z`].join(` `),L=[N,`M${E},${D} L${E},${C}`,`M${T},${O} L${T},${S}`].join(` `);return[{d:N,fill:`norm`,stroke:!1},{d:I,fill:`darkenLess`,stroke:!1},{d:L,fill:`none`,stroke:!0}]}),rU.set(`ellipseRibbon`,(e,t,n)=>{let r=n?.get(`adj1`)??25e3,i=n?.get(`adj2`)??5e4,a=n?.get(`adj3`)??12500,o=Math.max(0,Math.min(r,1e5)),s=Math.max(25e3,Math.min(i,75e3)),c=o-(1e5-o)/2,l=Math.max(Math.max(0,c),Math.min(a,o)),u=e*s/2e5,d=e/2-u,f=d+e/8,p=e-f,m=e-d,h=e-e/8,g=t*l/1e5,_=e>0?4*g/e:0,v=t=>_*(t-t*t/e),y=v(f),b=f/2,x=_*b,S=e-b,C=t*o/1e5,w=C-g,T=v(d),E=T+w,D=g+w-E+g+w,O=t-C,k=(g*14/16+O)/2,A=T+O,j=E+O,M=d/2,N=_*M+O,P=e-M,F=D+O,I=y+w,L=C+C-I,R=e/2,z=e/8,B=[`M0,0`,`Q${b},${x} ${f},${y}`,`L${d},${E}`,`Q${R},${D} ${m},${E}`,`L${p},${y}`,`Q${S},${x} ${e},0`,`L${h},${k}`,`L${e},${O}`,`Q${P},${N} ${m},${A}`,`L${m},${j}`,`Q${R},${F} ${d},${j}`,`L${d},${A}`,`Q${M},${N} 0,${O}`,`L${z},${k}`,`Z`].join(` `),ee=[`M${f},${I}`,`L${f},${y}`,`L${d},${E}`,`Q${R},${D} ${m},${E}`,`L${p},${y}`,`L${p},${I}`,`Q${R},${L} ${f},${I}`,`Z`].join(` `),te=[`M0,0`,`Q${b},${x} ${f},${y}`,`L${d},${E}`,`Q${R},${D} ${m},${E}`,`L${p},${y}`,`Q${S},${x} ${e},0`,`L${h},${k}`,`L${e},${O}`,`Q${P},${N} ${m},${A}`,`L${m},${j}`,`Q${R},${F} ${d},${j}`,`L${d},${A}`,`Q${M},${N} 0,${O}`,`L${z},${k}`,`Z`,`M${d},${A} L${d},${E}`,`M${m},${E} L${m},${A}`,`M${f},${y} L${f},${I}`,`M${p},${I} L${p},${y}`].join(` `);return[{d:B,fill:`norm`,stroke:!1},{d:ee,fill:`darkenLess`,stroke:!1},{d:te,fill:`none`,stroke:!0}]}),rU.set(`ellipseRibbon2`,(e,t,n)=>{let r=n?.get(`adj1`)??25e3,i=n?.get(`adj2`)??5e4,a=n?.get(`adj3`)??12500,o=Math.max(0,Math.min(r,1e5)),s=Math.max(25e3,Math.min(i,75e3)),c=o-(1e5-o)/2,l=Math.max(Math.max(0,c),Math.min(a,o)),u=t,d=e*s/2e5,f=e/2-d,p=f+e/8,m=e-p,h=e-f,g=e-e/8,_=t*l/1e5,v=e>0?4*_/e:0,y=v*(p-p*p/e),b=u-y,x=p/2,S=u-v*x,C=e-x,w=t*o/1e5,T=w-_,E=v*(f-f*f/e),D=E+T,O=u-D,k=_+T-D+_+T,A=u-k,j=u-w,M=u-(_*14/16+j)/2,N=u-(E+j),P=u-(D+j),F=f/2,I=u-(v*F+j),L=e-F,R=u-(k+j),z=y+T,B=u-z,ee=u-(w+w-z),te=e/2,ne=e/8,V=[`M0,${u}`,`Q${x},${S} ${p},${b}`,`L${f},${O}`,`Q${te},${A} ${h},${O}`,`L${m},${b}`,`Q${C},${S} ${e},${u}`,`L${g},${M}`,`L${e},${w}`,`Q${L},${I} ${h},${N}`,`L${h},${P}`,`Q${te},${R} ${f},${P}`,`L${f},${N}`,`Q${F},${I} 0,${w}`,`L${ne},${M}`,`Z`].join(` `),H=[`M${p},${B}`,`L${p},${b}`,`L${f},${O}`,`Q${te},${A} ${h},${O}`,`L${m},${b}`,`L${m},${B}`,`Q${te},${ee} ${p},${B}`,`Z`].join(` `),re=[`M0,${u}`,`L${ne},${M}`,`L0,${w}`,`Q${F},${I} ${f},${N}`,`L${f},${P}`,`Q${te},${R} ${h},${P}`,`L${h},${N}`,`Q${L},${I} ${e},${w}`,`L${g},${M}`,`L${e},${u}`,`Q${C},${S} ${m},${b}`,`L${h},${O}`,`Q${te},${A} ${f},${O}`,`L${p},${b}`,`Q${x},${S} 0,${u}`,`Z`,`M${f},${O} L${f},${N}`,`M${h},${N} L${h},${O}`,`M${p},${B} L${p},${b}`,`M${m},${b} L${m},${B}`].join(` `);return[{d:V,fill:`norm`,stroke:!1},{d:H,fill:`darkenLess`,stroke:!1},{d:re,fill:`none`,stroke:!0}]}),rU.set(`smileyFace`,(e,t,n)=>{let r=e/2,i=t/2,a=e/2,o=t/2,s=n?.get(`adj`)??4653,c=Math.max(-4653,Math.min(s,4653)),l=e*6215/21600,u=e*13135/21600,d=t*7570/21600,f=e*1125/21600,p=t*1125/21600,m=e*4969/21699,h=e*16640/21600,g=t*16515/21600,_=t*c/1e5,v=g-_,y=g+_+t*c/5e4,b=`M${e},${o} A${r},${i} 0 1,1 0,${o} A${r},${i} 0 1,1 ${e},${o} Z`,x=`M${(l+f).toFixed(2)},${d.toFixed(2)} A${f.toFixed(2)},${p.toFixed(2)} 0 1,1 ${(l-f).toFixed(2)},${d.toFixed(2)} A${f.toFixed(2)},${p.toFixed(2)} 0 1,1 ${(l+f).toFixed(2)},${d.toFixed(2)} Z`,S=`M${(u+f).toFixed(2)},${d.toFixed(2)} A${f.toFixed(2)},${p.toFixed(2)} 0 1,1 ${(u-f).toFixed(2)},${d.toFixed(2)} A${f.toFixed(2)},${p.toFixed(2)} 0 1,1 ${(u+f).toFixed(2)},${d.toFixed(2)} Z`,C=`M${m.toFixed(2)},${v.toFixed(2)} Q${a.toFixed(2)},${y.toFixed(2)} ${h.toFixed(2)},${v.toFixed(2)}`,w=`M${e},${o} A${r},${i} 0 1,1 0,${o} A${r},${i} 0 1,1 ${e},${o} Z`;return[{d:b,fill:`norm`,stroke:!1},{d:`${x} ${S}`,fill:`darkenLess`,stroke:!1},{d:C,fill:`none`,stroke:!0},{d:w,fill:`none`,stroke:!0}]}),rU.set(`foldedCorner`,(e,t,n)=>{let r=GH(n,`adj`,16667),i=Math.min(e,t)*r*.7,a=`M0,0 L${e},0 L${e},${t-i} L${e-i},${t} L0,${t} Z`,o=`M${e-i},${t} L${e-i},${t-i} L${e},${t-i} Z`,s=`M${e-i},${t} L${e-i},${t-i}`;return[{d:a,fill:`norm`,stroke:!0},{d:o,fill:`darkenLess`,stroke:!1},{d:s,fill:`none`,stroke:!0}]}),rU.set(`can`,(e,t,n)=>{let r=Math.min(e,t),i=5e4*t/r,a=r*Math.min(Math.max(n?.get(`adj`)??25e3,0),i)/2e5,o=t-a,s=e/2,c=(e,t,n,r,i,a)=>{let o=i*Math.PI/180,s=(i+a)*Math.PI/180,c=e-n*Math.cos(o),l=t-r*Math.sin(o),u=c+n*Math.cos(s),d=l+r*Math.sin(s);return{endX:u,endY:d,svg:`A${n},${r} 0 ${+(Math.abs(a)>180)},${+(a>0)} ${u},${d}`}},l=c(0,a,s,a,180,-180),u=c(e,o,s,a,0,180),d=`M0,${a} ${l.svg} L${e},${o} ${u.svg} Z`,f=c(0,a,s,a,180,180),p=c(f.endX,f.endY,s,a,0,180),m=`M0,${a} ${f.svg} ${p.svg} Z`,h=c(e,a,s,a,0,180),g=c(h.endX,h.endY,s,a,180,180),_=c(e,o,s,a,0,180),v=`M${e},${a} ${h.svg} ${g.svg} L${e},${o} ${_.svg} L0,${a}`;return[{d,fill:`norm`,stroke:!1},{d:m,fill:`lighten`,stroke:!1},{d:v,fill:`none`,stroke:!0}]}),rU.set(`curvedrightarrow`,(e,t,n)=>ZH(`curvedRightArrow`,e,t,n)),rU.set(`curvedleftarrow`,(e,t,n)=>ZH(`curvedLeftArrow`,e,t,n)),rU.set(`curveduparrow`,(e,t,n)=>QH(`curvedUpArrow`,e,t,n)),rU.set(`curveddownarrow`,(e,t,n)=>QH(`curvedDownArrow`,e,t,n)),rU.set(`bordercallout1`,(e,t,n)=>{let r=t*(n?.get(`adj1`)??18750)/1e5,i=e*(n?.get(`adj2`)??-8333)/1e5,a=t*(n?.get(`adj3`)??112500)/1e5,o=e*(n?.get(`adj4`)??-38333)/1e5;return[{d:`M0,0 L${e},0 L${e},${t} L0,${t} Z`,fill:`norm`,stroke:!0},{d:`M${i},${r} L${o},${a}`,fill:`none`,stroke:!0}]}),rU.set(`accentcallout1`,(e,t,n)=>{let r=t*(n?.get(`adj1`)??18750)/1e5,i=e*(n?.get(`adj2`)??-8333)/1e5,a=t*(n?.get(`adj3`)??112500)/1e5,o=e*(n?.get(`adj4`)??-38333)/1e5;return[{d:`M0,0 L${e},0 L${e},${t} L0,${t} Z`,fill:`norm`,stroke:!1},{d:`M${i},0 L${i},${t}`,fill:`none`,stroke:!0},{d:`M${i},${r} L${o},${a}`,fill:`none`,stroke:!0}]}),rU.set(`accentcallout2`,(e,t,n)=>{let r=t*(n?.get(`adj1`)??18750)/1e5,i=e*(n?.get(`adj2`)??-8333)/1e5,a=t*(n?.get(`adj3`)??18750)/1e5,o=e*(n?.get(`adj4`)??-16667)/1e5,s=t*(n?.get(`adj5`)??112500)/1e5,c=e*(n?.get(`adj6`)??-46667)/1e5;return[{d:`M0,0 L${e},0 L${e},${t} L0,${t} Z`,fill:`norm`,stroke:!1},{d:`M${i},0 L${i},${t}`,fill:`none`,stroke:!0},{d:`M${i},${r} L${o},${a} L${c},${s}`,fill:`none`,stroke:!0}]}),rU.set(`accentcallout3`,(e,t,n)=>{let r=t*(n?.get(`adj1`)??18750)/1e5,i=e*(n?.get(`adj2`)??-8333)/1e5,a=t*(n?.get(`adj3`)??18750)/1e5,o=e*(n?.get(`adj4`)??-16667)/1e5,s=t*(n?.get(`adj5`)??1e5)/1e5,c=e*(n?.get(`adj6`)??-16667)/1e5,l=t*(n?.get(`adj7`)??112963)/1e5,u=e*(n?.get(`adj8`)??-8333)/1e5;return[{d:`M0,0 L${e},0 L${e},${t} L0,${t} Z`,fill:`norm`,stroke:!1},{d:`M${i},0 L${i},${t}`,fill:`none`,stroke:!0},{d:`M${i},${r} L${o},${a} L${c},${s} L${u},${l}`,fill:`none`,stroke:!0}]}),rU.set(`callout1`,(e,t,n)=>{let r=t*(n?.get(`adj1`)??18750)/1e5,i=e*(n?.get(`adj2`)??-8333)/1e5,a=t*(n?.get(`adj3`)??112500)/1e5,o=e*(n?.get(`adj4`)??-38333)/1e5;return[{d:`M0,0 L${e},0 L${e},${t} L0,${t} Z`,fill:`norm`,stroke:!1},{d:`M${i},${r} L${o},${a}`,fill:`none`,stroke:!0}]}),rU.set(`callout2`,(e,t,n)=>{let r=t*(n?.get(`adj1`)??18750)/1e5,i=e*(n?.get(`adj2`)??-8333)/1e5,a=t*(n?.get(`adj3`)??18750)/1e5,o=e*(n?.get(`adj4`)??-16667)/1e5,s=t*(n?.get(`adj5`)??112500)/1e5,c=e*(n?.get(`adj6`)??-46667)/1e5;return[{d:`M0,0 L${e},0 L${e},${t} L0,${t} Z`,fill:`norm`,stroke:!1},{d:`M${i},${r} L${o},${a} L${c},${s}`,fill:`none`,stroke:!0}]}),rU.set(`callout3`,(e,t,n)=>{let r=t*(n?.get(`adj1`)??18750)/1e5,i=e*(n?.get(`adj2`)??-8333)/1e5,a=t*(n?.get(`adj3`)??18750)/1e5,o=e*(n?.get(`adj4`)??-16667)/1e5,s=t*(n?.get(`adj5`)??1e5)/1e5,c=e*(n?.get(`adj6`)??-16667)/1e5,l=t*(n?.get(`adj7`)??112963)/1e5,u=e*(n?.get(`adj8`)??-8333)/1e5;return[{d:`M0,0 L${e},0 L${e},${t} L0,${t} Z`,fill:`norm`,stroke:!1},{d:`M${i},${r} L${o},${a} L${c},${s} L${u},${l}`,fill:`none`,stroke:!0}]}),rU.set(`bordercallout2`,(e,t,n)=>{let r=t*(n?.get(`adj1`)??18750)/1e5,i=e*(n?.get(`adj2`)??-8333)/1e5,a=t*(n?.get(`adj3`)??18750)/1e5,o=e*(n?.get(`adj4`)??-16667)/1e5,s=t*(n?.get(`adj5`)??112500)/1e5,c=e*(n?.get(`adj6`)??-46667)/1e5;return[{d:`M0,0 L${e},0 L${e},${t} L0,${t} Z`,fill:`norm`,stroke:!0},{d:`M${i},${r} L${o},${a} L${c},${s}`,fill:`none`,stroke:!0}]}),rU.set(`bordercallout3`,(e,t,n)=>{let r=t*(n?.get(`adj1`)??18750)/1e5,i=e*(n?.get(`adj2`)??-8333)/1e5,a=t*(n?.get(`adj3`)??18750)/1e5,o=e*(n?.get(`adj4`)??-16667)/1e5,s=t*(n?.get(`adj5`)??1e5)/1e5,c=e*(n?.get(`adj6`)??-16667)/1e5,l=t*(n?.get(`adj7`)??112963)/1e5,u=e*(n?.get(`adj8`)??-8333)/1e5;return[{d:`M0,0 L${e},0 L${e},${t} L0,${t} Z`,fill:`norm`,stroke:!0},{d:`M${i},${r} L${o},${a} L${c},${s} L${u},${l}`,fill:`none`,stroke:!0}]}),rU.set(`accentbordercallout1`,(e,t,n)=>{let r=t*(n?.get(`adj1`)??18750)/1e5,i=e*(n?.get(`adj2`)??-8333)/1e5,a=t*(n?.get(`adj3`)??112500)/1e5,o=e*(n?.get(`adj4`)??-38333)/1e5;return[{d:`M0,0 L${e},0 L${e},${t} L0,${t} Z`,fill:`norm`,stroke:!0},{d:`M${i},0 L${i},${t}`,fill:`none`,stroke:!0},{d:`M${i},${r} L${o},${a}`,fill:`none`,stroke:!0}]}),rU.set(`accentbordercallout2`,(e,t,n)=>{let r=t*(n?.get(`adj1`)??18750)/1e5,i=e*(n?.get(`adj2`)??-8333)/1e5,a=t*(n?.get(`adj3`)??18750)/1e5,o=e*(n?.get(`adj4`)??-16667)/1e5,s=t*(n?.get(`adj5`)??112500)/1e5,c=e*(n?.get(`adj6`)??-46667)/1e5;return[{d:`M0,0 L${e},0 L${e},${t} L0,${t} Z`,fill:`norm`,stroke:!0},{d:`M${i},0 L${i},${t}`,fill:`none`,stroke:!0},{d:`M${i},${r} L${o},${a} L${c},${s}`,fill:`none`,stroke:!0}]}),rU.set(`accentbordercallout3`,(e,t,n)=>{let r=t*(n?.get(`adj1`)??18750)/1e5,i=e*(n?.get(`adj2`)??-8333)/1e5,a=t*(n?.get(`adj3`)??18750)/1e5,o=e*(n?.get(`adj4`)??-16667)/1e5,s=t*(n?.get(`adj5`)??1e5)/1e5,c=e*(n?.get(`adj6`)??-16667)/1e5,l=t*(n?.get(`adj7`)??112963)/1e5,u=e*(n?.get(`adj8`)??-8333)/1e5;return[{d:`M0,0 L${e},0 L${e},${t} L0,${t} Z`,fill:`norm`,stroke:!0},{d:`M${i},0 L${i},${t}`,fill:`none`,stroke:!0},{d:`M${i},${r} L${o},${a} L${c},${s} L${u},${l}`,fill:`none`,stroke:!0}]}),rU.set(`chartx`,(e,t)=>[{d:`M0,0 L${e},0 L${e},${t} L0,${t} Z`,fill:`norm`,stroke:!1},{d:`M0,0 L${e},${t} M${e},0 L0,${t}`,fill:`none`,stroke:!0}]),rU.set(`chartplus`,(e,t)=>{let n=e/2,r=t/2;return[{d:`M0,0 L${e},0 L${e},${t} L0,${t} Z`,fill:`norm`,stroke:!1},{d:`M${n},0 L${n},${t} M0,${r} L${e},${r}`,fill:`none`,stroke:!0}]}),rU.set(`chartstar`,(e,t)=>{let n=e/2;return[{d:`M0,0 L${e},0 L${e},${t} L0,${t} Z`,fill:`norm`,stroke:!1},{d:`M0,0 L${e},${t} M${e},0 L0,${t} M${n},0 L${n},${t}`,fill:`none`,stroke:!0}]});function Z(e,t,n,r,i,a){let o=i*Math.PI/180,s=e-n*Math.cos(o),c=t-r*Math.sin(o),l=(i+a)*Math.PI/180,u=s+n*Math.cos(l),d=c+r*Math.sin(l);return{svg:`A${n},${r} 0 ${+(Math.abs(a)>180)},${+(a>=0)} ${u},${d}`,x:u,y:d}}rU.set(`ribbon`,(e,t,n)=>{let r=n?.get(`adj1`)??16667,i=n?.get(`adj2`)??5e4,a=Math.min(Math.max(r,0),33333),o=Math.min(Math.max(i,25e3),75e3),s=e/2,c=e/8,l=e/32,u=e-c,d=e*o/2e5,f=s-d,p=s+d,m=f+l,h=p-l,g=f+c,_=p-c,v=g-l,y=_+l,b=t*a/2e5,x=t*a/1e5,S=t-x,C=S/2,w=t*a/4e5,T=t-w,E=x-w,D,O,k,A=[];D=0,O=0,A.push(`M0,0`),A.push(`L${v},0`),D=v,O=0,k=Z(D,O,l,w,270,180),A.push(k.svg),D=k.x,O=k.y,A.push(`L${m},${b}`),D=m,O=b,k=Z(D,O,l,w,270,-180),A.push(k.svg),D=k.x,O=k.y,A.push(`L${h},${x}`),D=h,O=x,k=Z(D,O,l,w,90,-180),A.push(k.svg),D=k.x,O=k.y,A.push(`L${y},${b}`),D=y,O=b,k=Z(D,O,l,w,90,180),A.push(k.svg),D=k.x,O=k.y,A.push(`L${e},0`),A.push(`L${u},${C}`),A.push(`L${e},${S}`),A.push(`L${p},${S}`),A.push(`L${p},${T}`),D=p,O=T,k=Z(D,O,l,w,0,90),A.push(k.svg),D=k.x,O=k.y,A.push(`L${m},${t}`),D=m,O=t,k=Z(D,O,l,w,90,90),A.push(k.svg),D=k.x,O=k.y,A.push(`L${f},${S}`),A.push(`L0,${S}`),A.push(`L${c},${C}`),A.push(`Z`);let j=[];D=g,O=w,j.push(`M${D},${O}`),k=Z(D,O,l,w,0,90),j.push(k.svg),D=k.x,O=k.y,j.push(`L${m},${b}`),D=m,O=b,k=Z(D,O,l,w,270,-180),j.push(k.svg),D=k.x,O=k.y,j.push(`L${g},${x}`),j.push(`Z`),D=_,O=w,j.push(`M${D},${O}`),k=Z(D,O,l,w,180,-90),j.push(k.svg),D=k.x,O=k.y,j.push(`L${h},${b}`),D=h,O=b,k=Z(D,O,l,w,270,180),j.push(k.svg),D=k.x,O=k.y,j.push(`L${_},${x}`),j.push(`Z`);let M=[];return D=0,O=0,M.push(`M0,0`),M.push(`L${v},0`),D=v,O=0,k=Z(D,O,l,w,270,180),M.push(k.svg),D=k.x,O=k.y,M.push(`L${m},${b}`),D=m,O=b,k=Z(D,O,l,w,270,-180),M.push(k.svg),D=k.x,O=k.y,M.push(`L${h},${x}`),D=h,O=x,k=Z(D,O,l,w,90,-180),M.push(k.svg),D=k.x,O=k.y,M.push(`L${y},${b}`),D=y,O=b,k=Z(D,O,l,w,90,180),M.push(k.svg),D=k.x,O=k.y,M.push(`L${e},0`),M.push(`L${u},${C}`),M.push(`L${e},${S}`),M.push(`L${p},${S}`),M.push(`L${p},${T}`),D=p,O=T,k=Z(D,O,l,w,0,90),M.push(k.svg),D=k.x,O=k.y,M.push(`L${m},${t}`),D=m,O=t,k=Z(D,O,l,w,90,90),M.push(k.svg),D=k.x,O=k.y,M.push(`L${f},${S}`),M.push(`L0,${S}`),M.push(`L${c},${C}`),M.push(`Z`),M.push(`M${g},${w} L${g},${x}`),M.push(`M${_},${x} L${_},${w}`),M.push(`M${f},${S} L${f},${E}`),M.push(`M${p},${E} L${p},${S}`),[{d:A.join(` `),fill:`norm`,stroke:!1},{d:j.join(` `),fill:`darkenLess`,stroke:!1},{d:M.join(` `),fill:`none`,stroke:!0}]}),rU.set(`ribbon2`,(e,t,n)=>{let r=n?.get(`adj1`)??16667,i=n?.get(`adj2`)??5e4,a=Math.min(Math.max(r,0),33333),o=Math.min(Math.max(i,25e3),75e3),s=e/2,c=e/8,l=e/32,u=e-c,d=e*o/2e5,f=s-d,p=s+d,m=f+l,h=p-l,g=f+c,_=p-c,v=g-l,y=_+l,b=t-t*a/2e5,x=t*a/1e5,S=t-x,C=x,w=(C+t)/2,T=t*a/4e5,E=t-T,D=b-T,O,k,A,j=[];j.push(`M0,${t}`),j.push(`L${v},${t}`),O=v,k=t,A=Z(O,k,l,T,90,-180),j.push(A.svg),O=A.x,k=A.y,j.push(`L${m},${b}`),O=m,k=b,A=Z(O,k,l,T,90,180),j.push(A.svg),O=A.x,k=A.y,j.push(`L${h},${S}`),O=h,k=S,A=Z(O,k,l,T,270,180),j.push(A.svg),O=A.x,k=A.y,j.push(`L${y},${b}`),O=y,k=b,A=Z(O,k,l,T,270,-180),j.push(A.svg),O=A.x,k=A.y,j.push(`L${e},${t}`),j.push(`L${u},${w}`),j.push(`L${e},${C}`),j.push(`L${p},${C}`),j.push(`L${p},${T}`),O=p,k=T,A=Z(O,k,l,T,0,-90),j.push(A.svg),O=A.x,k=A.y,j.push(`L${m},0`),O=m,k=0,A=Z(O,k,l,T,270,-90),j.push(A.svg),O=A.x,k=A.y,j.push(`L${f},${C}`),j.push(`L0,${C}`),j.push(`L${c},${w}`),j.push(`Z`);let M=[];O=g,k=E,M.push(`M${O},${k}`),A=Z(O,k,l,T,0,-90),M.push(A.svg),O=A.x,k=A.y,M.push(`L${m},${b}`),O=m,k=b,A=Z(O,k,l,T,90,180),M.push(A.svg),O=A.x,k=A.y,M.push(`L${g},${S}`),M.push(`Z`),O=_,k=E,M.push(`M${O},${k}`),A=Z(O,k,l,T,180,90),M.push(A.svg),O=A.x,k=A.y,M.push(`L${h},${b}`),O=h,k=b,A=Z(O,k,l,T,90,-180),M.push(A.svg),O=A.x,k=A.y,M.push(`L${_},${S}`),M.push(`Z`);let N=[];return N.push(`M0,${t}`),N.push(`L${c},${w}`),N.push(`L0,${C}`),N.push(`L${f},${C}`),N.push(`L${f},${T}`),O=f,k=T,A=Z(O,k,l,T,180,90),N.push(A.svg),O=A.x,k=A.y,N.push(`L${h},0`),O=h,k=0,A=Z(O,k,l,T,270,90),N.push(A.svg),O=A.x,k=A.y,N.push(`L${p},${C}`),N.push(`L${e},${C}`),N.push(`L${u},${w}`),N.push(`L${e},${t}`),N.push(`L${y},${t}`),O=y,k=t,A=Z(O,k,l,T,90,180),N.push(A.svg),O=A.x,k=A.y,N.push(`L${h},${b}`),O=h,k=b,A=Z(O,k,l,T,90,-180),N.push(A.svg),O=A.x,k=A.y,N.push(`L${m},${S}`),O=m,k=S,A=Z(O,k,l,T,270,-180),N.push(A.svg),O=A.x,k=A.y,N.push(`L${v},${b}`),O=v,k=b,A=Z(O,k,l,T,270,180),N.push(A.svg),O=A.x,k=A.y,N.push(`Z`),N.push(`M${g},${S} L${g},${E}`),N.push(`M${_},${E} L${_},${S}`),N.push(`M${f},${D} L${f},${C}`),N.push(`M${p},${C} L${p},${D}`),[{d:j.join(` `),fill:`norm`,stroke:!1},{d:M.join(` `),fill:`darkenLess`,stroke:!1},{d:N.join(` `),fill:`none`,stroke:!0}]}),rU.set(`horizontalscroll`,(e,t,n)=>{let r=n?.get(`adj`)??12500,i=Math.min(e,t)*Math.min(Math.max(r,0),25e3)/1e5,a=i/2,o=i/4,s=i+a,c=i+i,l=t-i,u=t-a,d=l-a,f=e-i,p=e-a,m=[],h,g;h=e,g=a,m.push(`M${h},${g}`);let _=Z(h,g,a,a,0,90);m.push(_.svg),h=_.x,g=_.y,m.push(`L${p},${a}`),_=Z(p,a,o,o,0,180),m.push(_.svg),h=_.x,g=_.y,m.push(`L${f},${i}`),m.push(`L${a},${i}`),h=a,g=i,_=Z(h,g,a,a,270,-90),m.push(_.svg),h=_.x,g=_.y,m.push(`L0,${u}`),h=0,g=u,_=Z(h,g,a,a,180,-180),m.push(_.svg),h=_.x,g=_.y,m.push(`L${i},${l}`),m.push(`L${p},${l}`),h=p,g=l,_=Z(h,g,a,a,90,-90),m.push(_.svg),m.push(`Z`),h=a,g=c,m.push(`M${h},${g}`),_=Z(h,g,a,a,90,-90),m.push(_.svg),h=_.x,g=_.y,_=Z(h,g,o,o,0,-180),m.push(_.svg),m.push(`Z`);let v=[];h=a,g=c,v.push(`M${h},${g}`),_=Z(h,g,a,a,90,-90),v.push(_.svg),h=_.x,g=_.y,_=Z(h,g,o,o,0,-180),v.push(_.svg),v.push(`Z`),h=p,g=i,v.push(`M${h},${g}`),_=Z(h,g,a,a,90,-270),v.push(_.svg),h=_.x,g=_.y,_=Z(h,g,o,o,180,-180),v.push(_.svg),v.push(`Z`);let y=[];return h=0,g=s,y.push(`M${h},${g}`),_=Z(h,g,a,a,180,90),y.push(_.svg),h=_.x,g=_.y,y.push(`L${f},${i}`),y.push(`L${f},${a}`),h=f,g=a,_=Z(h,g,a,a,180,180),y.push(_.svg),h=_.x,g=_.y,y.push(`L${e},${d}`),h=e,g=d,_=Z(h,g,a,a,0,90),y.push(_.svg),h=_.x,g=_.y,y.push(`L${i},${l}`),y.push(`L${i},${u}`),h=i,g=u,_=Z(h,g,a,a,0,180),y.push(_.svg),y.push(`Z`),y.push(`M${f},${i}`),y.push(`L${p},${i}`),h=p,g=i,_=Z(h,g,a,a,90,-90),y.push(_.svg),y.push(`M${p},${i}`),y.push(`L${p},${a}`),h=p,g=a,_=Z(h,g,o,o,0,180),y.push(_.svg),y.push(`M${a},${c}`),y.push(`L${a},${s}`),h=a,g=s,_=Z(h,g,o,o,180,180),y.push(_.svg),h=_.x,g=_.y,_=Z(h,g,a,a,0,180),y.push(_.svg),y.push(`M${i},${s}`),y.push(`L${i},${l}`),[{d:m.join(` `),fill:`norm`,stroke:!1},{d:v.join(` `),fill:`darkenLess`,stroke:!1},{d:y.join(` `),fill:`none`,stroke:!0}]}),rU.set(`verticalscroll`,(e,t,n)=>{let r=n?.get(`adj`)??12500,i=Math.min(e,t)*Math.min(Math.max(r,0),25e3)/1e5,a=i/2,o=i/4,s=i+a,c=i+i,l=e-i,u=e-a,d=t-i,f=t-a,p=[],m,h;m=a,h=t,p.push(`M${m},${h}`);let g=Z(m,h,a,a,90,-90);p.push(g.svg),m=g.x,h=g.y,p.push(`L${a},${f}`),m=a,h=f,g=Z(m,h,o,o,90,-180),p.push(g.svg),m=g.x,h=g.y,p.push(`L${i},${d}`),p.push(`L${i},${a}`),m=i,h=a,g=Z(m,h,a,a,180,90),p.push(g.svg),m=g.x,h=g.y,p.push(`L${u},0`),m=u,h=0,g=Z(m,h,a,a,270,180),p.push(g.svg),m=g.x,h=g.y,p.push(`L${l},${i}`),p.push(`L${l},${f}`),m=l,h=f,g=Z(m,h,a,a,0,90),p.push(g.svg),p.push(`Z`),m=c,h=a,p.push(`M${m},${h}`),g=Z(m,h,a,a,0,90),p.push(g.svg),m=g.x,h=g.y,g=Z(m,h,o,o,90,180),p.push(g.svg),p.push(`Z`);let _=[];m=c,h=a,_.push(`M${m},${h}`),g=Z(m,h,a,a,0,90),_.push(g.svg),m=g.x,h=g.y,g=Z(m,h,o,o,90,180),_.push(g.svg),_.push(`Z`),m=i,h=f,_.push(`M${m},${h}`),g=Z(m,h,a,a,0,270),_.push(g.svg),m=g.x,h=g.y,g=Z(m,h,o,o,270,180),_.push(g.svg),_.push(`Z`);let v=[];return m=i,h=d,v.push(`M${m},${h}`),v.push(`L${i},${a}`),m=i,h=a,g=Z(m,h,a,a,180,90),v.push(g.svg),m=g.x,h=g.y,v.push(`L${u},0`),m=u,h=0,g=Z(m,h,a,a,270,180),v.push(g.svg),m=g.x,h=g.y,v.push(`L${l},${i}`),v.push(`L${l},${f}`),m=l,h=f,g=Z(m,h,a,a,0,90),v.push(g.svg),m=g.x,h=g.y,v.push(`L${a},${t}`),m=a,h=t,g=Z(m,h,a,a,90,180),v.push(g.svg),v.push(`Z`),v.push(`M${s},0`),m=s,h=0,g=Z(m,h,a,a,270,180),v.push(g.svg),m=g.x,h=g.y,g=Z(m,h,o,o,90,180),v.push(g.svg),m=g.x,h=g.y,v.push(`L${c},${a}`),v.push(`M${l},${i}`),v.push(`L${s},${i}`),v.push(`M${a},${d}`),m=a,h=d,g=Z(m,h,o,o,270,180),v.push(g.svg),m=g.x,h=g.y,v.push(`L${i},${f}`),v.push(`M${a},${t}`),m=a,h=t,g=Z(m,h,a,a,90,-90),v.push(g.svg),m=g.x,h=g.y,v.push(`L${i},${d}`),[{d:p.join(` `),fill:`norm`,stroke:!1},{d:_.join(` `),fill:`darkenLess`,stroke:!1},{d:v.join(` `),fill:`none`,stroke:!0}]});function oU(e,t,n,r){let i=e.toLowerCase(),a=rU.get(i)??rU.get(e);return a?a(t,n,r):null}function sU(e,t,n,r){if(e===`textNoShape`||e.toLowerCase()===`textnoshape`)return``;let i=e.toLowerCase(),a=X.get(i)??X.get(e);return a?a(t,n,r):(console.warn(`Unknown preset shape: "${e}", falling back to rectangle`),`M0,0 L${t},0 L${t},${n} L0,${n} Z`)}var cU=1e5;function lU(e,t,n,r,i){if(!e||!r&&!i)return e;let a=uU(e);if(!a)return e;let o=[],s=0,c=e=>{if(s+e>a.length)return null;let t=a.slice(s,s+e).map(Number);return t.some(e=>!Number.isFinite(e))?null:(s+=e,t)},l=(e,a)=>{let o=r?t-e:e,s=i?n-a:a;return`${gU(o)},${gU(s)}`};for(;s<a.length;){let u=a[s++];if(u===`Z`||u===`z`){o.push(`Z`);continue}let d=u===`C`?6:u===`Q`?4:u===`A`?7:2;if(u!==`M`&&u!==`L`&&u!==`C`&&u!==`Q`&&u!==`A`)return e;let f=c(d);if(!f)return e;if(u===`M`||u===`L`)o.push(`${u}${l(f[0],f[1])}`);else if(u===`C`)o.push(`C${l(f[0],f[1])} ${l(f[2],f[3])} ${l(f[4],f[5])}`);else if(u===`Q`)o.push(`Q${l(f[0],f[1])} ${l(f[2],f[3])}`);else{let[e,a,s,c,l,u,d]=f,p=r===i?l:+!l,m=r?t-u:u,h=i?n-d:d;o.push(`A${gU(e)},${gU(a)} ${gU(r===i?s:-s)} ${c},${p} ${gU(m)},${gU(h)}`)}}return o.join(` `)}function uU(e,t=cU){if(!e||e.length>t)return null;let n=[],r=0;for(;r<e.length;){let t=e.charCodeAt(r);if(vU(t)){r++;continue}if(bU(t)){n.push(e[r++]);continue}let i=_U(e,r);if(i>r){n.push(e.slice(r,i)),r=i;continue}r++}return n}function dU(e){let t=uU(e);if(!t||t.length!==6||t[0]!==`M`||t[3]!==`L`)return null;let n=hU(t,1),r=hU(t,4);return n&&r?{start:n,end:r}:null}function fU(e){let t=uU(e);if(!t||t.length<3||t[0]!==`M`)return null;let n=[],r=1,i=hU(t,r);if(!i)return null;for(n.push(i),r+=2;r<t.length;){if(t[r++]!==`L`)return null;let e=hU(t,r);if(!e)return null;n.push(e),r+=2}return n.length>=2?n:null}function pU(e){let t=uU(e);if(!t||t.length<8||t[0]!==`M`)return null;let n=hU(t,1);if(!n)return null;let r=[],i=3;for(;i<t.length;){if(t[i++]!==`C`)return null;let e=hU(t,i),n=hU(t,i+2),a=hU(t,i+4);if(!e||!n||!a)return null;r.push({c1:e,c2:n,end:a}),i+=6}return r.length>0?{start:n,segments:r}:null}function mU(e){let t=uU(e);if(!t||t.length!==11||t[0]!==`M`||t[3]!==`A`)return null;let n=hU(t,1),r=Number(t[4]),i=Number(t[5]),a=Number(t[6]),o=+!!Number(t[7]),s=+!!Number(t[8]),c=hU(t,9);return!n||!c||!Number.isFinite(r)||!Number.isFinite(i)||!Number.isFinite(a)?null:{start:n,arc:{rx:r,ry:i,xAxisRotation:a,largeArc:o,sweep:s,end:c}}}function hU(e,t){if(t+1>=e.length)return null;let n=Number(e[t]),r=Number(e[t+1]);return!Number.isFinite(n)||!Number.isFinite(r)?null:{x:n,y:r}}function gU(e){return String(Number.isInteger(e)?e:Number(e.toFixed(6)))}function _U(e,t){let n=t;(e[n]===`-`||e[n]===`+`)&&n++;let r=0;for(;yU(e.charCodeAt(n));)n++,r++;if(e[n]===`.`)for(n++;yU(e.charCodeAt(n));)n++,r++;if(r===0)return t;if(e[n]===`e`||e[n]===`E`){let t=n;n++,(e[n]===`-`||e[n]===`+`)&&n++;let r=0;for(;yU(e.charCodeAt(n));)n++,r++;if(r===0)return t}return n}function vU(e){return e===44||e===32||e===9||e===10||e===13||e===12}function yU(e){return e>=48&&e<=57}function bU(e){return e>=65&&e<=90||e>=97&&e<=122}function xU(e){for(let t of e.paragraphs)for(let e of t.runs)if(e.text!=null&&e.text.trim().length>0)return!0;return!1}function SU(e){let t=0;for(let n of e.paragraphs)if(n.runs.some(e=>e.text!=null&&e.text.length>0)&&(t++,t>1||n.runs.some(e=>e.text===`
24
+ `)))return!1;return t===1}function CU(e){let t=e.paragraphs.filter(e=>e.runs.some(e=>e.text!=null&&e.text.length>0));return t.length!==0&&t.every(e=>e.properties?.attr(`algn`)===`ctr`)}var wU=36;function TU(e){let t=e.paragraphs.flatMap(e=>e.runs.map(e=>e.text??``)).join(``).replace(/\s+/g,``);return Array.from(t).length}function EU(e){let t=TU(e);return t>0&&t<=wU}function DU(e){return e.paragraphs.filter(e=>e.runs.some(e=>e.text!=null&&e.text.length>0)).length}function OU(e){return e.paragraphs.some(e=>{let t=e.properties;return t?.child(`lnSpc`).exists()||t?.child(`spcBef`).exists()||t?.child(`spcAft`).exists()})}function kU(e,t){let n=[t.properties,e.listStyle?.child(`lvl${t.level+1}pPr`),e.listStyle?.child(`defPPr`)];for(let e of n)if(e!=null&&e.exists()){if(e.child(`buNone`).exists())return!1;if(e.child(`buChar`).exists()||e.child(`buAutoNum`).exists()||e.child(`buBlip`).exists())return!0}return!1}function AU(e){return e.paragraphs.some(t=>t.runs.some(e=>e.text!=null&&e.text.length>0)&&kU(e,t))}function jU(e){return e?.type===`title`||e?.type===`ctrTitle`}function MU(e,t){e.style.transform=`${e.style.transform||``} ${t}`.trim()}function NU(e,t){let n=e.style.filter.trim();e.style.filter=n?`${n} ${t}`:t}function PU(e){return String(Number.isInteger(e)?e:Number(e.toFixed(6)))}function FU(e,t){let n=Y(e.numAttr(`rad`)??0);if(!(n>0))return;let{color:r,alpha:i}=NB(e,t);if(!r||i<=0)return;let{r:a,g:o,b:s}=$z(r.startsWith(`#`)?r:`#${r}`);return`drop-shadow(0px 0px ${n.toFixed(1)}px rgba(${a},${o},${s},${i.toFixed(3)}))`}function IU(e,t,n){let r=FU(t,n);r&&NU(e,r)}function LU(e,t){return sV(e,t)}function RU(e,t,n=!1,r=`vertical-rl`){e.style.writingMode=r,e.style.justifyContent=`center`,e.style.alignItems=t===`b`?`flex-end`:t===`ctr`?`center`:`flex-start`,n&&(e.style.textOrientation=`upright`,e.style.whiteSpace=`normal`)}var zU=1.1,BU=1.25,VU=1,HU=.9,UU=.9;function WU(e){let t=(e.bodyProperties?.child(`prstTxWarp`))?.attr(`prst`);return t===`textArchDown`||t===`textArchUp`?t:null}function GU(e){let t=``,n=0;for(let r of e.paragraphs){let e=r.runs.filter(e=>e.text!=null&&e.text.length>0);if(e.length!==0){if(n++,n>1||e.some(e=>e.text===`
25
+ `))return null;t+=e.map(e=>e.text).join(``)}}return t.length>0?t:null}function KU(e){for(let t of e.paragraphs)for(let e of t.runs)if(e.text!=null&&e.text.length>0)return e.properties}function qU(e,t,n){let r=Math.min(Math.max(t*.04,4),18),i=r,a=Math.max(i,t-r);if(e===`textArchDown`){let e=n*.36;return`M${i},${e} Q${t/2},${n*.9} ${a},${e}`}let o=n*.66;return`M${i},${o} Q${t/2},${n*.08} ${a},${o}`}function JU(e,t){if(!e.textBody)return null;let n=WU(e.textBody);if(!n)return null;let r=GU(e.textBody);if(!r)return null;let i=KU(e.textBody),a=i?.numAttr(`sz`)===void 0?12:i.numAttr(`sz`)/100,o=KV([i?.child(`latin`).attr(`typeface`),i?.child(`ea`).attr(`typeface`),i?.child(`cs`).attr(`typeface`)],t,[i?.attr(`lang`),i?.attr(`altLang`)]),s=HR(i?.attr(`b`))?`bold`:void 0,c=i?.child(`solidFill`),l=c!=null&&c.exists()?FB(c,t):`#000000`,u=`http://www.w3.org/2000/svg`,d=document.createElementNS(u,`svg`);d.setAttribute(`viewBox`,`0 0 ${e.size.w} ${e.size.h}`),d.setAttribute(`width`,String(e.size.w)),d.setAttribute(`height`,String(e.size.h)),d.style.position=`absolute`,d.style.left=`0`,d.style.top=`0`,d.style.overflow=`visible`;let f=document.createElementNS(u,`defs`),p=document.createElementNS(u,`path`),m=`text-warp-${++tW}`;p.setAttribute(`id`,m),p.setAttribute(`d`,qU(n,e.size.w,e.size.h)),p.setAttribute(`fill`,`none`),f.appendChild(p),d.appendChild(f);let h=document.createElementNS(u,`text`);h.setAttribute(`font-size`,`${a}pt`),o.length>0&&h.setAttribute(`font-family`,eH(o)),s&&h.setAttribute(`font-weight`,s),h.setAttribute(`fill`,l),h.setAttribute(`dominant-baseline`,`middle`);let g=document.createElementNS(u,`textPath`);return g.setAttribute(`href`,`#${m}`),g.setAttribute(`startOffset`,`50%`),g.setAttribute(`text-anchor`,`middle`),g.setAttribute(`xml:space`,`preserve`),g.textContent=r,h.appendChild(g),d.appendChild(h),d}function YU(e,t){let n=e.child(`blip`),r=n.attr(`embed`)??n.attr(`r:embed`),i=n.attr(`link`)??n.attr(`r:link`),a=r??i;if(!a)return null;let o=t.slide.rels.get(a);if(!o)return null;if(SR(o.targetMode))return aV(o.target)?o.target:null;let s=tR(o.target,t.presentation.media);if(!s)return null;let{mediaPath:c,data:l}=s;return rR(c,l,t.mediaUrlCache)}async function XU(e,t){let n=e.child(`blip`),r=n.attr(`embed`)??n.attr(`r:embed`),i=n.attr(`link`)??n.attr(`r:link`),a=r??i;if(!a)return null;let o=t.slide.rels.get(a);if(!o)return null;if(SR(o.targetMode))return aV(o.target)?o.target:null;let s=await nR(o.target,t.presentation.media,t.presentation.mediaResolver);if(!s)return null;let{mediaPath:c,data:l}=s;return rR(c,l,t.mediaUrlCache)}function ZU(e,t){return(e.numAttr(t)??0)/1e3}function QU(e,t){let n=e.child(`stretch`);if(!n.exists())return{x:0,y:0,w:t.w,h:t.h,preserveAspectRatio:`xMidYMid slice`};let r=n.child(`fillRect`),i=r.exists()?ZU(r,`l`):0,a=r.exists()?ZU(r,`t`):0,o=r.exists()?ZU(r,`r`):0,s=r.exists()?ZU(r,`b`):0;return{x:t.w*(i/100),y:t.h*(a/100),w:t.w*((100-i-o)/100),h:t.h*((100-a-s)/100),preserveAspectRatio:`none`}}function $U(e,t,n,r,i,a,o,s){let c=`shape-clip-${++tW}`,l=document.createElementNS(e,`clipPath`);l.setAttribute(`id`,c);let u=document.createElementNS(e,`path`);u.setAttribute(`d`,i),l.appendChild(u),n.appendChild(l);let d=document.createElementNS(e,`image`),f=QU(r,a);d.setAttributeNS(`http://www.w3.org/1999/xlink`,`href`,o),d.setAttribute(`x`,String(f.x)),d.setAttribute(`y`,String(f.y)),d.setAttribute(`width`,String(f.w)),d.setAttribute(`height`,String(f.h)),d.setAttribute(`clip-path`,`url(#${c})`),d.setAttribute(`preserveAspectRatio`,f.preserveAspectRatio),n.parentNode||t.appendChild(n),s?.parentNode===t?t.insertBefore(d,s):t.appendChild(d)}var eW=0,tW=0;function nW(e,t,n,r,i){let a=`shape-shadow-${++tW}`,o=document.createElementNS(e,`filter`),s=Math.max(Math.abs(i.dx),Math.abs(i.dy))+i.blur*4+4;o.setAttribute(`id`,a),o.setAttribute(`filterUnits`,`userSpaceOnUse`),o.setAttribute(`x`,String(-s)),o.setAttribute(`y`,String(-s)),o.setAttribute(`width`,String(r.w+s*2)),o.setAttribute(`height`,String(r.h+s*2));let c=document.createElementNS(e,`feDropShadow`);c.setAttribute(`dx`,i.dx.toFixed(1)),c.setAttribute(`dy`,i.dy.toFixed(1)),c.setAttribute(`stdDeviation`,Math.max(0,i.blur/2).toFixed(2)),c.setAttribute(`flood-color`,`rgb(${i.color.r},${i.color.g},${i.color.b})`),c.setAttribute(`flood-opacity`,i.opacity.toFixed(4)),o.appendChild(c),t.appendChild(o),!t.parentNode&&n.ownerSVGElement&&n.ownerSVGElement.insertBefore(t,n.ownerSVGElement.firstChild),n.setAttribute(`filter`,`url(#${a})`)}function rW(e,t,n,r,i){let a=`shape-inner-shadow-${++tW}`,o=document.createElementNS(e,`filter`),s=Math.max(Math.abs(i.dx),Math.abs(i.dy))+i.blur*4+4;o.setAttribute(`id`,a),o.setAttribute(`filterUnits`,`userSpaceOnUse`),o.setAttribute(`x`,String(-s)),o.setAttribute(`y`,String(-s)),o.setAttribute(`width`,String(r.w+s*2)),o.setAttribute(`height`,String(r.h+s*2));let c=document.createElementNS(e,`feOffset`);c.setAttribute(`in`,`SourceAlpha`),c.setAttribute(`dx`,i.dx.toFixed(1)),c.setAttribute(`dy`,i.dy.toFixed(1)),c.setAttribute(`result`,`innerOffset`),o.appendChild(c);let l=document.createElementNS(e,`feGaussianBlur`);l.setAttribute(`in`,`innerOffset`),l.setAttribute(`stdDeviation`,Math.max(0,i.blur/2).toFixed(2)),l.setAttribute(`result`,`innerBlur`),o.appendChild(l);let u=document.createElementNS(e,`feComposite`);u.setAttribute(`in`,`innerBlur`),u.setAttribute(`in2`,`SourceAlpha`),u.setAttribute(`operator`,`in`),u.setAttribute(`result`,`innerMask`),o.appendChild(u);let d=document.createElementNS(e,`feFlood`);d.setAttribute(`flood-color`,`rgb(${i.color.r},${i.color.g},${i.color.b})`),d.setAttribute(`flood-opacity`,i.opacity.toFixed(4)),d.setAttribute(`result`,`innerColor`),o.appendChild(d);let f=document.createElementNS(e,`feComposite`);f.setAttribute(`in`,`innerColor`),f.setAttribute(`in2`,`innerMask`),f.setAttribute(`operator`,`in`),f.setAttribute(`result`,`innerShadow`),o.appendChild(f);let p=document.createElementNS(e,`feMerge`),m=document.createElementNS(e,`feMergeNode`);m.setAttribute(`in`,`SourceGraphic`);let h=document.createElementNS(e,`feMergeNode`);h.setAttribute(`in`,`innerShadow`),p.appendChild(m),p.appendChild(h),o.appendChild(p),t.appendChild(o),!t.parentNode&&n.ownerSVGElement&&n.ownerSVGElement.insertBefore(t,n.ownerSVGElement.firstChild),n.setAttribute(`filter`,`url(#${a})`)}function iW(e,t,n,r,i){let a=`shape-soft-edge-${++tW}`,o=document.createElementNS(e,`filter`),s=Math.max(i*4+4,r.w,r.h);o.setAttribute(`id`,a),o.setAttribute(`filterUnits`,`userSpaceOnUse`),o.setAttribute(`x`,String(-s)),o.setAttribute(`y`,String(-s)),o.setAttribute(`width`,String(r.w+s*2)),o.setAttribute(`height`,String(r.h+s*2));let c=document.createElementNS(e,`feGaussianBlur`);c.setAttribute(`in`,`SourceGraphic`),c.setAttribute(`stdDeviation`,Math.max(0,i/2).toFixed(2)),o.appendChild(c),t.appendChild(o),!t.parentNode&&n.ownerSVGElement&&n.ownerSVGElement.insertBefore(t,n.ownerSVGElement.firstChild);let l=n.parentNode;if(!l)return;let u=document.createElementNS(e,`g`);u.setAttribute(`filter`,`url(#${a})`),l.insertBefore(u,n),u.appendChild(n)}function aW(e,t){let n=Math.max(t,1);switch(e){case`dot`:case`sysDot`:return`${n},${n*2}`;case`dash`:case`sysDash`:return`${n*4},${n*2}`;case`lgDash`:return`${n*8},${n*3}`;case`dashDot`:case`sysDashDot`:return`${n*4},${n*2},${n},${n*2}`;case`lgDashDot`:return`${n*8},${n*3},${n},${n*3}`;case`lgDashDotDot`:case`sysDashDotDot`:return`${n*8},${n*3},${n},${n*2},${n},${n*2}`;default:return null}}function oW(e,t,n,r){if(!n.exists())return null;let i=n.attr(`prst`)??`solid`;if(i===`solid`||i===`solidDmnd`)return null;let a=n.child(`fgClr`),o=n.child(`bgClr`),s=a.exists()?FB(a,r):`#000000`,c=o.exists()?FB(o,r):`#ffffff`,l=`shape-pattern-${++tW}`,u=document.createElementNS(e,`pattern`);u.setAttribute(`id`,l),u.setAttribute(`patternUnits`,`userSpaceOnUse`),u.setAttribute(`width`,`8`),u.setAttribute(`height`,`8`);let d=document.createElementNS(e,`rect`);d.setAttribute(`width`,`8`),d.setAttribute(`height`,`8`),d.setAttribute(`fill`,c),u.appendChild(d);let f=!1,p=(t,n,r,i,a)=>{let o=document.createElementNS(e,`line`);o.setAttribute(`x1`,String(t)),o.setAttribute(`y1`,String(n)),o.setAttribute(`x2`,String(r)),o.setAttribute(`y2`,String(i)),o.setAttribute(`stroke`,s),o.setAttribute(`stroke-width`,`1`),a&&o.setAttribute(`stroke-dasharray`,a),u.appendChild(o),f=!0},m=(t,n,r)=>{let i=document.createElementNS(e,`circle`);i.setAttribute(`cx`,String(t)),i.setAttribute(`cy`,String(n)),i.setAttribute(`r`,String(r)),i.setAttribute(`fill`,s),u.appendChild(i),f=!0},h=1/2,g=0;switch(i){case`pct5`:case`pct10`:case`pct20`:case`pct25`:m(4,4,.75);break;case`pct30`:case`pct40`:case`pct50`:case`dotGrid`:case`dotDmnd`:m(4,4,1);break;case`pct60`:case`pct70`:case`pct75`:case`pct80`:case`pct90`:case`sphere`:case`shingle`:case`plaid`:case`divot`:case`zigZag`:m(4,4,1.5);break;case`horz`:case`ltHorz`:case`narHorz`:case`dkHorz`:p(0,h,8,h);break;case`vert`:case`ltVert`:case`narVert`:case`dkVert`:p(h,0,h,8);break;case`dnDiag`:case`ltDnDiag`:case`narDnDiag`:case`dkDnDiag`:case`wdDnDiag`:p(0,8,8,0);break;case`upDiag`:case`ltUpDiag`:case`narUpDiag`:case`dkUpDiag`:case`wdUpDiag`:p(0,0,8,8);break;case`smGrid`:case`lgGrid`:case`cross`:g=-3,p(0,h,8,h),p(h,0,h,8);break;case`smCheck`:case`lgCheck`:case`diagCross`:case`openDmnd`:case`trellis`:case`weave`:p(0,8,8,0),p(0,0,8,8);break;case`dashHorz`:p(0,h,8,h,`3,2`);break;case`dashVert`:p(h,0,h,8,`3,2`);break;case`dashDnDiag`:p(0,8,8,0,`3,2`);break;case`dashUpDiag`:p(0,0,8,8,`3,2`);break;default:return null}return f?(g!==0&&u.setAttribute(`y`,String(g)),t.appendChild(u),l):null}function sW(e){if(!e)return null;let t=e.trim();if(t.startsWith(`#`))return $z(t);let n=t.match(/rgba?\(([^)]+)\)/i);if(!n)return null;let r=n[1].split(`,`).map(e=>Number.parseFloat(e.trim()));return r.length<3||r.some(e=>Number.isNaN(e))?null:{r:Math.max(0,Math.min(255,r[0])),g:Math.max(0,Math.min(255,r[1])),b:Math.max(0,Math.min(255,r[2]))}}function cW(e,t,n){let r=Math.max(0,Math.min(1,n));return eB(e.r+(t.r-e.r)*r,e.g+(t.g-e.g)*r,e.b+(t.b-e.b)*r)}function lW(e){let t=e*Math.PI/180,n=Math.round(50+50*Math.cos(t)),r=Math.round(50+50*Math.sin(t)),i=Math.round(50-50*Math.cos(t)),a=Math.round(50-50*Math.sin(t));return{x1:`${i}%`,y1:`${a}%`,x2:`${n}%`,y2:`${r}%`}}function uW(e){switch(e){case`sm`:return .5;case`lg`:return 1.5;default:return 1}}function dW(e,t){let n=uW(e.w),r=uW(e.len),i=Math.max(t*3,10),a=Math.max(t*2.5,7.5);return{markerW:i*r,markerH:a*n}}function fW(e,t){return e.type!==`triangle`&&e.type!==`arrow`&&e.type!==`stealth`?0:dW(e,t).markerW}function pW(e,t){return e.type!==`triangle`&&e.type!==`arrow`&&e.type!==`stealth`?0:dW(e,t).markerW}function mW(e){if(!e)return!0;let t=e.trim().toLowerCase();if(t===`transparent`)return!0;let n=t.match(/^rgba\([^,]+,[^,]+,[^,]+,\s*([0-9.]+)\)$/);return n?Number(n[1])<=.001:!1}function hW(e,t,n){if(e.length===0)return n;let r=t===`start`?0:e.length-1,i=t===`start`?1:-1,a=e[r]?.color;if(a&&!mW(a))return a;for(let t=r;t>=0&&t<e.length;t+=i){let n=e[t]?.color;if(n&&!mW(n))return n}return a||n}function gW(e,t,n){return{x:e.x+(t.x-e.x)*n,y:e.y+(t.y-e.y)*n}}function _W(e,t,n,r,i){let a=gW(e,t,i),o=gW(t,n,i),s=gW(n,r,i);return gW(gW(a,o,i),gW(o,s,i),i)}function vW(e,t,n,r,i){let a=0,o=e;for(let s=1;s<=24;s++){let c=_W(e,t,n,r,i*s/24);a+=Math.hypot(c.x-o.x,c.y-o.y),o=c}return a}function yW(e){return pU(e)}function bW(e,t){let n=[`M${PU(e.x)},${PU(e.y)}`];for(let e of t)n.push([`C${PU(e.c1.x)},${PU(e.c1.y)}`,`${PU(e.c2.x)},${PU(e.c2.y)}`,`${PU(e.end.x)},${PU(e.end.y)}`].join(` `));return n.join(` `)}function xW(e){return mU(e)}function SW(e,t,n,r){let i=e*n+t*r,a=Math.hypot(e,t)*Math.hypot(n,r),o=Math.acos(Math.min(1,Math.max(-1,a>0?i/a:1)));return e*r-t*n<0?-o:o}function CW(e,t){if(t.xAxisRotation!==0)return null;let n=Math.abs(t.rx),r=Math.abs(t.ry);if(!(n>0)||!(r>0))return null;let i=(e.x-t.end.x)/2,a=(e.y-t.end.y)/2,o=i*i/(n*n)+a*a/(r*r);if(o>1){let e=Math.sqrt(o);n*=e,r*=e}let s=n*n,c=r*r,l=i*i,u=a*a,d=s*u+c*l;if(!(d>0))return null;let f=(t.largeArc===t.sweep?-1:1)*Math.sqrt(Math.max(0,(s*c-s*u-c*l)/d)),p=f*n*a/r,m=-f*r*i/n,h={x:(e.x+t.end.x)/2+p,y:(e.y+t.end.y)/2+m},g=(i-p)/n,_=(a-m)/r,v=(-i-p)/n,y=(-a-m)/r,b=Math.atan2(_,g),x=SW(g,_,v,y);return t.sweep===0&&x>0&&(x-=Math.PI*2),t.sweep===1&&x<0&&(x+=Math.PI*2),{center:h,rx:n,ry:r,startAngle:b,deltaAngle:x,xAxisRotation:t.xAxisRotation,sweep:t.sweep}}function wW(e,t){let n=e.startAngle+e.deltaAngle*t;return{x:e.center.x+e.rx*Math.cos(n),y:e.center.y+e.ry*Math.sin(n)}}function TW(e,t){let n=0,r=wW(e,0);for(let i=1;i<=24;i++){let a=wW(e,t*i/24);n+=Math.hypot(a.x-r.x,a.y-r.y),r=a}return n}function EW(e,t,n,r){let i=+(Math.abs(t.deltaAngle*n)>Math.PI);return[`M${PU(e.x)},${PU(e.y)}`,`A${PU(t.rx)},${PU(t.ry)}`,PU(t.xAxisRotation),`${i},${t.sweep}`,`${PU(r.x)},${PU(r.y)}`].join(` `)}function DW(e,t){let n=yW(e);if(!n)return e;let r=n.start,i=n.segments[0],a=i.c1,o=i.c2,s=i.end,c=vW(r,a,o,s,1);if(!(c>0))return e;let l=Math.min(t,c*.95),u=0,d=1;for(let e=0;e<24;e++){let e=(u+d)/2;vW(r,a,o,s,e)<l?u=e:d=e}let f=d,p=gW(r,a,f),m=gW(a,o,f),h=gW(o,s,f),g=gW(p,m,f),_=gW(m,h,f),v=gW(g,_,f),y=n.segments.slice();return y[0]={c1:_,c2:h,end:s},bW(v,y)}function OW(e,t){let n=xW(e);if(!n)return null;let r=CW(n.start,n.arc);if(!r)return null;let i=TW(r,1);if(!(i>0))return null;let a=Math.min(t,i*.95),o=0,s=1;for(let e=0;e<24;e++){let e=(o+s)/2;TW(r,e)<a?o=e:s=e}let c=s;return EW(wW(r,c),r,1-c,n.arc.end)}function kW(e,t){let n=yW(e);if(!n)return null;let r=n.segments.length-1,i=r===0?n.start:n.segments[r-1].end,a=n.segments[r],o=vW(i,a.c1,a.c2,a.end,1);if(!(o>0))return null;let s=o-Math.min(t,o*.95),c=0,l=1;for(let e=0;e<24;e++){let e=(c+l)/2;vW(i,a.c1,a.c2,a.end,e)<s?c=e:l=e}let u=l,d=gW(i,a.c1,u),f=gW(a.c1,a.c2,u),p=gW(a.c2,a.end,u),m=gW(d,f,u),h=gW(m,gW(f,p,u),u),g=n.segments.slice();return g[r]={c1:d,c2:m,end:h},bW(n.start,g)}function AW(e,t){let n=xW(e);if(!n)return null;let r=CW(n.start,n.arc);if(!r)return null;let i=TW(r,1);if(!(i>0))return null;let a=i-Math.min(t,i*.95),o=0,s=1;for(let e=0;e<24;e++){let e=(o+s)/2;TW(r,e)<a?o=e:s=e}let c=s;return EW(n.start,r,c,wW(r,c))}function jW(e,t){if(!(t>0))return e;let n=dU(e);if(!n)return IW(e,t)??OW(e,t)??DW(e,t);let r=n.start.x,i=n.start.y,a=n.end.x,o=n.end.y,s=a-r,c=o-i,l=Math.hypot(s,c);if(!(l>0))return e;let u=Math.min(t,l*.95);return`M${r+s/l*u},${i+c/l*u} L${a},${o}`}function MW(e,t){if(!(t>0))return e;let n=dU(e);if(!n)return LW(e,t)??kW(e,t)??AW(e,t)??e;let r=n.start.x,i=n.start.y,a=n.end.x,o=n.end.y,s=a-r,c=o-i,l=Math.hypot(s,c);if(!(l>0))return e;let u=Math.min(t,l*.95);return`M${r},${i} L${a-s/l*u},${o-c/l*u}`}function NW(e){return fU(e)}function PW(e){return e.map((e,t)=>`${t===0?`M`:`L`}${PU(e.x)},${PU(e.y)}`).join(` `)}function FW(e,t){return Math.hypot(t.x-e.x,t.y-e.y)}function IW(e,t){let n=NW(e);if(!n||n.length<3)return null;let r=n[0],i=n[1],a=i.x-r.x,o=i.y-r.y,s=Math.hypot(a,o);return s>t?PW([{x:r.x+a/s*t,y:r.y+o/s*t},...n.slice(1)]):null}function LW(e,t){let n=NW(e);if(!n||n.length<3)return null;let r=n[n.length-1],i=n[n.length-2],a=r.x-i.x,o=r.y-i.y,s=Math.hypot(a,o);if(!(s>t))return null;let c={x:r.x-a/s*t,y:r.y-o/s*t};return PW([...n.slice(0,-1),c])}var RW=2,zW=4;function BW(e,t,n,r){if(!n&&!r)return e;let i=NW(e);if(!i||i.length<3)return e;let a=Math.min(Math.max(RW,t*1.5),zW),o=i.slice();if(n&&o.length>=3){let e=FW(o[0],o[1]),t=FW(o[1],o[2]);e<=a&&t>a&&(o=o.slice(1))}if(r&&o.length>=3){let e=o.length-1,t=FW(o[e-1],o[e]),n=FW(o[e-2],o[e-1]);t<=a&&n>a&&(o=o.slice(0,-1))}return o.length===i.length?e:PW(o)}function VW(e,t,n,r,i){let a=document.createElementNS(e,`marker`),o=`arrow-marker-${++eW}`;a.setAttribute(`id`,o),a.setAttribute(`markerUnits`,`userSpaceOnUse`),a.setAttribute(`orient`,`auto`);let{markerW:s,markerH:c}=dW(t,r);switch(t.type){case`triangle`:case`arrow`:{a.setAttribute(`viewBox`,`0 0 10 10`),a.setAttribute(`refX`,i?`10`:`0`),a.setAttribute(`refY`,`5`),a.setAttribute(`markerWidth`,String(s)),a.setAttribute(`markerHeight`,String(c));let t=document.createElementNS(e,`polygon`);i?t.setAttribute(`points`,`0,5 10,0 10,10`):t.setAttribute(`points`,`10,5 0,0 0,10`),t.setAttribute(`fill`,n),a.appendChild(t);break}case`stealth`:{a.setAttribute(`viewBox`,`0 0 10 10`),a.setAttribute(`refX`,i?`10`:`0`),a.setAttribute(`refY`,`5`),a.setAttribute(`markerWidth`,String(s)),a.setAttribute(`markerHeight`,String(c));let t=document.createElementNS(e,`path`);i?t.setAttribute(`d`,`M0,5 L10,0 L7,5 L10,10 Z`):t.setAttribute(`d`,`M10,5 L0,0 L3,5 L0,10 Z`),t.setAttribute(`fill`,n),a.appendChild(t);break}case`diamond`:{a.setAttribute(`viewBox`,`0 0 10 10`),a.setAttribute(`refX`,`5`),a.setAttribute(`refY`,`5`),a.setAttribute(`markerWidth`,String(s)),a.setAttribute(`markerHeight`,String(c));let t=document.createElementNS(e,`polygon`);t.setAttribute(`points`,`5,0 10,5 5,10 0,5`),t.setAttribute(`fill`,n),a.appendChild(t);break}case`oval`:{a.setAttribute(`viewBox`,`0 0 10 10`),a.setAttribute(`refX`,`5`),a.setAttribute(`refY`,`5`),a.setAttribute(`markerWidth`,String(s)),a.setAttribute(`markerHeight`,String(c));let t=document.createElementNS(e,`circle`);t.setAttribute(`cx`,`5`),t.setAttribute(`cy`,`5`),t.setAttribute(`r`,`4`),t.setAttribute(`fill`,n),a.appendChild(t);break}default:return null}return a._markerId=o,a}function HW(e){let t={},n=e.child(`headEnd`);if(n.exists()){let e=n.attr(`type`);e&&e!==`none`&&(t.headEnd={type:e,w:n.attr(`w`),len:n.attr(`len`)})}let r=e.child(`tailEnd`);if(r.exists()){let e=r.attr(`type`);e&&e!==`none`&&(t.tailEnd={type:e,w:r.attr(`w`),len:r.attr(`len`)})}return t}var UW=new WeakMap;function WW(e){return!e||e.size===0?``:Array.from(e.entries()).sort(([e],[t])=>e.localeCompare(t)).map(([e,t])=>`${e}:${t}`).join(`|`)}function GW(e,t,n,r){let i=WW(e.adjustments),a=UW.get(e);if(a&&a.effectivePreset===t&&a.w===n&&a.h===r&&a.adjustmentKey===i)return{pathD:a.pathD,multiPaths:a.multiPaths};let o=oU(t,n,r,e.adjustments),s=o?o[0]?.d??``:sU(t,n,r,e.adjustments);return UW.set(e,{effectivePreset:t,w:n,h:r,adjustmentKey:i,pathD:s,multiPaths:o}),{pathD:s,multiPaths:o}}function KW(e,t){var n,r,i,a;let o=document.createElement(`div`);o.style.position=`absolute`,o.style.left=`${e.position.x}px`,o.style.top=`${e.position.y}px`,o.style.width=`${e.size.w}px`;let s=e.presetGeometry?.toLowerCase()??``,c=new Set([`arc`]),l=!!s&&(s===`line`||s===`lineinv`||s.startsWith(`straightconnector`)||s.startsWith(`bentconnector`)||s.startsWith(`curvedconnector`)||c.has(s)),u=e.source.localName===`cxnSp`,d=e.size.w>0&&e.size.h<1||e.size.w<1&&e.size.h>0,f=l||u||d,p=f&&e.size.h<1?1:e.size.h,m=f&&e.size.w<1?1:e.size.w;o.style.height=`${p}px`,e.size.w===0&&(o.style.width=`${m}px`),o.style.overflow=`visible`;let h=[];e.rotation!==0&&h.push(`rotate(${e.rotation}deg)`),e.flipH&&!f&&h.push(`scaleX(-1)`),e.flipV&&!f&&h.push(`scaleY(-1)`),h.length>0&&(o.style.transform=h.join(` `));let g=e.size.w,_=e.size.h,v=g,y=_,b=e.source.child(`style`),x=b.exists()?b.child(`lnRef`):void 0,S=b.exists()?b.child(`fillRef`):void 0,C=``,w=null;if(e.presetGeometry){let t=e.presetGeometry;u&&t===`line`&&(t=`straightConnector1`);let n=GW(e,t,v,y);C=n.pathD,w=n.multiPaths}else if(e.customGeometry){let t=e.source.child(`spPr`).child(`xfrm`).child(`ext`),n={w:t.numAttr(`cx`)??0,h:t.numAttr(`cy`)??0};C=UH(e.customGeometry,v,y,n)}!C&&f&&((n=e.line)!=null&&n.exists()||x!=null&&x.exists()&&(x.numAttr(`idx`)??0)>0&&(t.theme.lineStyles?.length??0)>=(x.numAttr(`idx`)??0))&&(C=sU(u?`straightConnector1`:`line`,v,y,void 0)),C&&f&&(e.flipH||e.flipV)&&(C=lU(C,v,y,e.flipH,e.flipV));let T=e.source.child(`spPr`),E=``,D=e.fill?XB(T,t):null;if(e.fill&&e.fill.exists()){if(e.fill.localName===`solidFill`){let n=e.fill.child(`srgbClr`).exists()?e.fill.child(`srgbClr`):e.fill.child(`schemeClr`).exists()?e.fill.child(`schemeClr`):e.fill.child(`scrgbClr`).exists()?e.fill.child(`scrgbClr`):e.fill.child(`sysClr`).exists()?e.fill.child(`sysClr`):void 0;n!=null&&n.exists()&&(E=FB(n,t))}E||=RB(T,t)}if(!E){let e=T.child(`solidFill`);if(e.exists()){let n=e.child(`srgbClr`).exists()?e.child(`srgbClr`):e.child(`schemeClr`).exists()?e.child(`schemeClr`):e.child(`scrgbClr`).exists()?e.child(`scrgbClr`):e.child(`sysClr`).exists()?e.child(`sysClr`):void 0;n!=null&&n.exists()&&(E=FB(n,t))}}if(!E&&S&&S.exists()&&(S.numAttr(`idx`)??0)>0){let e=ZB(S,t);E=e.fillCss,D||=e.gradientFillData}f&&(E=``,D=null);let O=`none`,k=0,A=``,j=`solid`,M=``,N=``,P=null,F=e.line&&e.line.child(`noFill`).exists(),I=e.line&&!F,L=!I&&!F&&x!=null&&x.exists()&&(x.numAttr(`idx`)??0)>0&&(t.theme.lineStyles?.length??0)>=(x.numAttr(`idx`)??0)?t.theme.lineStyles[(x.numAttr(`idx`)??1)-1]:void 0,R=I?e.line:L;if(F&&(R=void 0),R!=null&&R.exists()){if(P=eV(R,t),!P){let e=VB(R,t,x);O=e.color,k=e.width,A=e.dash,j=e.dashKind}let e=R.attr(`cap`);e===`rnd`?M=`round`:e===`sq`?M=`square`:e===`flat`&&(M=`butt`),R.child(`round`).exists()?N=`round`:R.child(`bevel`).exists()?N=`bevel`:R.child(`miter`).exists()&&(N=`miter`)}F&&(O=`none`,k=0,P=null);let z=e.presetGeometry?.toLowerCase()===`circulararrow`;if(z&&(O=`none`,k=0,P=null,!E)){let e=T.child(`solidFill`);if(e.exists()){let n=e.child(`srgbClr`).exists()?e.child(`srgbClr`):e.child(`schemeClr`).exists()?e.child(`schemeClr`):e.child(`scrgbClr`).exists()?e.child(`scrgbClr`):e.child(`sysClr`).exists()?e.child(`sysClr`):void 0;n!=null&&n.exists()&&(E=FB(n,t))}}let B=null,ee=null,te=null,ne=null;if(C){let n=`http://www.w3.org/2000/svg`,a=document.createElementNS(n,`svg`),s=f?m:g,c=f?p:_;a.setAttribute(`viewBox`,`0 0 ${s} ${c}`),a.setAttribute(`width`,String(s)),a.setAttribute(`height`,String(c)),a.style.position=`absolute`,a.style.left=`0`,a.style.top=`0`,a.style.overflow=`visible`;let l=T.child(`blipFill`),u=l.exists()?YU(l,t):null;if(u){$U(n,a,document.createElementNS(n,`defs`),l,C,{w:s,h:c},u);let e=w&&w[0]?.stroke===!1;if(!z&&!e&&!P&&k>0&&O!==`none`&&O!==`transparent`){let e=document.createElementNS(n,`path`);e.setAttribute(`d`,C),e.setAttribute(`fill`,`none`),e.setAttribute(`stroke`,O),e.setAttribute(`stroke-width`,String(k)),M&&e.setAttribute(`stroke-linecap`,M),N&&e.setAttribute(`stroke-linejoin`,N);let t=aW(j,k);t?e.setAttribute(`stroke-dasharray`,t):A===`dashed`?e.setAttribute(`stroke-dasharray`,`${k*4},${k*2}`):A===`dotted`&&e.setAttribute(`stroke-dasharray`,`${k},${k*2}`),a.appendChild(e)}o.appendChild(a)}else{let u=document.createElementNS(n,`defs`),d=document.createElementNS(n,`path`);d.setAttribute(`d`,C),B=n,ee=u,te=d,ne={w:s,h:c};let p=e.presetGeometry?.toLowerCase();if(p===`curveduparrow`||p===`curveddownarrow`?(d.setAttribute(`fill-rule`,`evenodd`),d.setAttribute(`stroke-linejoin`,`round`)):p===`funnel`&&d.setAttribute(`fill-rule`,`evenodd`),E){let e=T.child(`pattFill`),r=e.exists()?oW(n,u,e,t):null;if(r)d.setAttribute(`fill`,`url(#${r})`);else if(D&&D.stops.length>0){let e=`grad-fill-${++tW}`;if(D.type===`radial`&&D.pathType===`rect`){let t=D.cx??.5,r=D.cy??.5,i=(e,t)=>{let n=qB(D,{axis:t}),r=[];for(let t of n){let n=t.position/100,i=e-n*e,a=e+n*(1-e);r.push({offset:i,color:t.color}),r.push({offset:a,color:t.color})}return r.sort((e,t)=>e.offset-t.offset),r},a=`${e}-h`,o=document.createElementNS(n,`linearGradient`);o.setAttribute(`id`,a),o.setAttribute(`color-interpolation`,D.colorInterpolation??`linearRGB`),o.setAttribute(`x1`,`0%`),o.setAttribute(`y1`,`0%`),o.setAttribute(`x2`,`100%`),o.setAttribute(`y2`,`0%`);for(let e of i(t,`x`)){let t=document.createElementNS(n,`stop`);t.setAttribute(`offset`,`${(e.offset*100).toFixed(2)}%`),t.setAttribute(`stop-color`,e.color),o.appendChild(t)}u.appendChild(o);let s=`${e}-v`,c=document.createElementNS(n,`linearGradient`);c.setAttribute(`id`,s),c.setAttribute(`color-interpolation`,D.colorInterpolation??`linearRGB`),c.setAttribute(`x1`,`0%`),c.setAttribute(`y1`,`0%`),c.setAttribute(`x2`,`0%`),c.setAttribute(`y2`,`100%`);for(let e of i(r,`y`)){let t=document.createElementNS(n,`stop`);t.setAttribute(`offset`,`${(e.offset*100).toFixed(2)}%`),t.setAttribute(`stop-color`,e.color),c.appendChild(t)}u.appendChild(c);let l=`${e}-clip`,f=document.createElementNS(n,`clipPath`);f.setAttribute(`id`,l);let p=document.createElementNS(n,`path`);p.setAttribute(`d`,C),f.appendChild(p),u.appendChild(f);let m=document.createElementNS(n,`g`);m.setAttribute(`clip-path`,`url(#${l})`),m.setAttribute(`style`,`isolation: isolate`);let h=document.createElementNS(n,`rect`);h.setAttribute(`width`,`100%`),h.setAttribute(`height`,`100%`),h.setAttribute(`fill`,`black`),m.appendChild(h);let g=document.createElementNS(n,`path`);g.setAttribute(`d`,C),g.setAttribute(`fill`,`url(#${a})`),g.setAttribute(`style`,`mix-blend-mode: lighten`),m.appendChild(g);let _=document.createElementNS(n,`path`);_.setAttribute(`d`,C),_.setAttribute(`fill`,`url(#${s})`),_.setAttribute(`style`,`mix-blend-mode: lighten`),m.appendChild(_),d.setAttribute(`fill`,`none`),d.__rectBlendGroup=m}else if(D.type===`radial`){let t=document.createElementNS(n,`radialGradient`);t.setAttribute(`id`,e),t.setAttribute(`color-interpolation`,D.colorInterpolation??`linearRGB`),t.setAttribute(`gradientUnits`,`userSpaceOnUse`);let r=D.cx??.5,i=D.cy??.5;t.setAttribute(`cx`,String(r*s)),t.setAttribute(`cy`,String(i*c));let a=Math.max(r,1-r),o=Math.max(i,1-i);t.setAttribute(`r`,String(Math.hypot(a*s,o*c)));for(let e of qB(D,{width:s,height:c})){let r=document.createElementNS(n,`stop`);r.setAttribute(`offset`,`${e.position}%`),r.setAttribute(`stop-color`,e.color),t.appendChild(r)}u.appendChild(t)}else{let t=document.createElementNS(n,`linearGradient`);t.setAttribute(`id`,e),t.setAttribute(`color-interpolation`,D.colorInterpolation??`linearRGB`),t.setAttribute(`gradientUnits`,`userSpaceOnUse`);let r=lW(D.angle);t.setAttribute(`x1`,String(parseFloat(r.x1)/100*s)),t.setAttribute(`y1`,String(parseFloat(r.y1)/100*c)),t.setAttribute(`x2`,String(parseFloat(r.x2)/100*s)),t.setAttribute(`y2`,String(parseFloat(r.y2)/100*c));for(let e of D.stops){let r=document.createElementNS(n,`stop`);r.setAttribute(`offset`,`${e.position}%`),r.setAttribute(`stop-color`,e.color),t.appendChild(r)}u.appendChild(t)}D.type===`radial`&&D.pathType===`rect`||d.setAttribute(`fill`,`url(#${e})`)}else E===`transparent`?d.setAttribute(`fill`,`none`):E.includes(`gradient`)?(o.style.background=E,d.setAttribute(`fill`,`transparent`)):d.setAttribute(`fill`,E)}else d.setAttribute(`fill`,`none`);if(z){if(!E||E===`none`||E===`transparent`){let n=[`srgbClr`,`schemeClr`,`scrgbClr`,`sysClr`,`hslClr`,`prstClr`],i=``,a=T.child(`solidFill`);if(a.exists()){for(let e of a.allChildren())if(n.includes(e.localName)){i=FB(e,t);break}}if(!i&&(r=e.fill)!=null&&r.exists()){for(let r of e.fill.allChildren())if(n.includes(r.localName)){i=FB(r,t);break}}i&&d.setAttribute(`fill`,i)}d.setAttribute(`stroke`,`none`)}let m=e.headEnd,h=e.tailEnd;if((!m||!h)&&R!=null&&R.exists()){let e=HW(R);!m&&e.headEnd&&(m=e.headEnd),!h&&e.tailEnd&&(h=e.tailEnd)}let g=P?hW(P.stops,`start`,`black`):O,_=P?hW(P.stops,`end`,g):O,b=P?P.width:k;f&&(m||h)&&b<=0&&(b=1);let x=f&&(m||h)?`butt`:M;if(f&&(m||h)&&b>0&&(C=BW(C,b,!!m,!!h),d.setAttribute(`d`,C)),f&&m&&b>0){let e=fW(m,b);e>0&&(C=jW(C,e),d.setAttribute(`d`,C))}if(f&&h&&b>0){let e=pW(h,b);e>0&&(C=MW(C,e),d.setAttribute(`d`,C))}let I=w&&w[0]?.stroke===!1;if(!z&&!I&&P&&P.stops.length>0){let e=`grad-stroke-${++tW}`,t=document.createElementNS(n,`linearGradient`);if(t.setAttribute(`id`,e),t.setAttribute(`color-interpolation`,P.colorInterpolation??`linearRGB`),t.setAttribute(`gradientUnits`,`userSpaceOnUse`),f||s<=1||c<=1){let e=P.angle*Math.PI/180,n=Math.cos(e),r=Math.sin(e),i=s/2,a=c/2,o=Math.max(s,c)/2;t.setAttribute(`x1`,String(i-o*n)),t.setAttribute(`y1`,String(a-o*r)),t.setAttribute(`x2`,String(i+o*n)),t.setAttribute(`y2`,String(a+o*r))}else{let e=lW(P.angle);t.setAttribute(`x1`,String(parseFloat(e.x1)/100*s)),t.setAttribute(`y1`,String(parseFloat(e.y1)/100*c)),t.setAttribute(`x2`,String(parseFloat(e.x2)/100*s)),t.setAttribute(`y2`,String(parseFloat(e.y2)/100*c))}for(let e of P.stops){let r=document.createElementNS(n,`stop`);r.setAttribute(`offset`,`${e.position}%`),r.setAttribute(`stop-color`,e.color),t.appendChild(r)}u.appendChild(t);let r=f||s<=1||c<=1?Math.max(P.width,1):P.width;d.setAttribute(`stroke`,`url(#${e})`),d.setAttribute(`stroke-width`,String(r)),x&&d.setAttribute(`stroke-linecap`,x),N&&d.setAttribute(`stroke-linejoin`,N)}else if(!z&&!I&&b>0&&O!==`transparent`){d.setAttribute(`stroke`,O),d.setAttribute(`stroke-width`,String(b)),x&&d.setAttribute(`stroke-linecap`,x),N&&d.setAttribute(`stroke-linejoin`,N);let e=aW(j,b);e?d.setAttribute(`stroke-dasharray`,e):A===`dashed`?d.setAttribute(`stroke-dasharray`,`${b*4},${b*2}`):A===`dotted`&&d.setAttribute(`stroke-dasharray`,`${b},${b*2}`)}else d.setAttribute(`stroke`,`none`);if(b>0&&(m||h)){if(m){let e=VW(n,m,g,b,!0);e&&(u.appendChild(e),d.setAttribute(`marker-start`,`url(#${e._markerId})`))}if(h){let e=VW(n,h,_,b,!1);e&&(u.appendChild(e),d.setAttribute(`marker-end`,`url(#${e._markerId})`))}}if(d.__rectBlendGroup&&(a.appendChild(d.__rectBlendGroup),delete d.__rectBlendGroup),a.appendChild(d),l.exists()&&t.presentation.mediaResolver){let e=XU(l,t).then(e=>{e&&$U(n,a,u,l,C,{w:s,h:c},e,d)}).catch(()=>{});(i=t.asyncTasks)==null||i.push(e),t.asyncTasks}if(w&&w.length>1){let r=d.getAttribute(`fill`)??``,i=e.presetGeometry?.toLowerCase()??``,o=sW(r&&!r.startsWith(`url(`)?r:S!=null&&S.exists()?FB(S,t):D?.stops[0]?.color??E),l=(e,t)=>{if(D?.type!==`linear`||D.stops.length===0)return;let r=`grad-fill-detail-${++tW}`,i=document.createElementNS(n,`linearGradient`);i.setAttribute(`id`,r),i.setAttribute(`gradientUnits`,`userSpaceOnUse`),i.setAttribute(`color-interpolation`,D.colorInterpolation??`sRGB`);let a=lW(D.angle);i.setAttribute(`x1`,String(parseFloat(a.x1)/100*s)),i.setAttribute(`y1`,String(parseFloat(a.y1)/100*c)),i.setAttribute(`x2`,String(parseFloat(a.x2)/100*s)),i.setAttribute(`y2`,String(parseFloat(a.y2)/100*c));for(let r of D.stops){let a=document.createElementNS(n,`stop`);a.setAttribute(`offset`,`${r.position}%`);let o=sW(r.color);a.setAttribute(`stop-color`,o?cW(o,t,e):r.color),i.appendChild(a)}return u.appendChild(i),`url(#${r})`};for(let t=1;t<w.length;t++){let d=w[t],f=document.createElementNS(n,`path`);if(f.setAttribute(`d`,d.d),d.fill===`none`)f.setAttribute(`fill`,`none`);else if(d.fill===`darkenLess`)f.setAttribute(`fill`,l(.15,{r:0,g:0,b:0})||(o?cW(o,{r:0,g:0,b:0},.15):`rgba(0,0,0,0.15)`));else if(d.fill===`darken`)f.setAttribute(`fill`,l(.3,{r:0,g:0,b:0})||(o?cW(o,{r:0,g:0,b:0},.3):`rgba(0,0,0,0.3)`));else if(d.fill===`lightenLess`)f.setAttribute(`fill`,l(.18,{r:255,g:255,b:255})||(o?cW(o,{r:255,g:255,b:255},.18):`rgba(255,255,255,0.15)`));else if(d.fill===`lighten`){let e;if(i===`can`&&D?.type===`linear`&&D.stops.length>0){let t=`grad-fill-face-${++tW}`,r=document.createElementNS(n,`linearGradient`);r.setAttribute(`id`,t),r.setAttribute(`gradientUnits`,`userSpaceOnUse`),r.setAttribute(`color-interpolation`,`sRGB`);let i=lW(D.angle);r.setAttribute(`x1`,String(parseFloat(i.x1)/100*s)),r.setAttribute(`y1`,String(parseFloat(i.y1)/100*c)),r.setAttribute(`x2`,String(parseFloat(i.x2)/100*s)),r.setAttribute(`y2`,String(parseFloat(i.y2)/100*c));for(let e of D.stops){let t=document.createElementNS(n,`stop`);t.setAttribute(`offset`,`${e.position}%`),t.setAttribute(`stop-color`,aB(e.color,65e3)),r.appendChild(t)}u.appendChild(r),e=`url(#${t})`}else i===`can`&&r.startsWith(`url(`)&&(e=r);let t=i===`can`?void 0:l(.3,{r:255,g:255,b:255});f.setAttribute(`fill`,e||t||(o?cW(o,{r:255,g:255,b:255},.3):`rgba(255,255,255,0.3)`))}else f.setAttribute(`fill`,r||`none`);if(d.stroke&&b>0&&O!==`transparent`){f.setAttribute(`stroke`,O);let t=e.presetGeometry?.toLowerCase()===`bordercallout1`&&d.fill===`none`,r=d.strokeWidthScale&&Number.isFinite(d.strokeWidthScale)&&d.strokeWidthScale>0?b*d.strokeWidthScale:b,i=t?Math.max(r,2.4):r;if(f.setAttribute(`stroke-width`,String(i)),t&&f.setAttribute(`stroke-linecap`,`round`),d.maskToMainOutlineBandScale&&d.maskToMainOutlineBandScale>0&&d.maskToMainOutlineBandScale<1){let e=`shape-detail-band-mask-${++tW}`,t=document.createElementNS(n,`mask`);t.setAttribute(`id`,e),t.setAttribute(`maskUnits`,`userSpaceOnUse`),t.setAttribute(`maskContentUnits`,`userSpaceOnUse`);let r=document.createElementNS(n,`rect`);r.setAttribute(`x`,`0`),r.setAttribute(`y`,`0`),r.setAttribute(`width`,String(s)),r.setAttribute(`height`,String(c)),r.setAttribute(`fill`,`black`),t.appendChild(r);let i=document.createElementNS(n,`path`);i.setAttribute(`d`,C),i.setAttribute(`fill`,`white`),i.setAttribute(`stroke`,`none`),t.appendChild(i);let a=d.maskToMainOutlineBandScale,o=document.createElementNS(n,`path`);o.setAttribute(`d`,C),o.setAttribute(`fill`,`black`),o.setAttribute(`stroke`,`none`);let l=s*(1-a)/2,p=c*(1-a)/2;o.setAttribute(`transform`,`translate(${l} ${p}) scale(${a})`),t.appendChild(o),u.appendChild(t),f.setAttribute(`mask`,`url(#${e})`)}else if(d.maskToMainOutline){let e=`shape-detail-mask-${++tW}`,t=document.createElementNS(n,`mask`);t.setAttribute(`id`,e),t.setAttribute(`maskUnits`,`userSpaceOnUse`),t.setAttribute(`maskContentUnits`,`userSpaceOnUse`);let r=document.createElementNS(n,`rect`);r.setAttribute(`x`,`0`),r.setAttribute(`y`,`0`),r.setAttribute(`width`,String(s)),r.setAttribute(`height`,String(c)),r.setAttribute(`fill`,`black`),t.appendChild(r);let a=document.createElementNS(n,`path`);a.setAttribute(`d`,C),a.setAttribute(`fill`,`none`),a.setAttribute(`stroke`,`white`);let o=Math.max(i*(d.maskStrokeScale&&d.maskStrokeScale>0?d.maskStrokeScale:3),i);a.setAttribute(`stroke-width`,String(o)),a.setAttribute(`stroke-linecap`,`round`),a.setAttribute(`stroke-linejoin`,`round`),t.appendChild(a),u.appendChild(t),f.setAttribute(`mask`,`url(#${e})`)}}else if(d.stroke&&!F){let e=o?cW(o,{r:0,g:0,b:0},.55):`#666666`;f.setAttribute(`stroke`,e),f.setAttribute(`stroke-width`,`1`)}else f.setAttribute(`stroke`,`none`);a.appendChild(f)}}if(u.children.length>0&&!u.parentNode&&a.insertBefore(u,a.firstChild),z&&(d.setAttribute(`stroke`,`none`),d.removeAttribute(`stroke-width`),d.removeAttribute(`marker-start`),d.removeAttribute(`marker-end`)),e.presetGeometry&&!w){let t=nU(e.presetGeometry,v,y);if(t){let e=document.createElementNS(n,`path`);e.setAttribute(`d`,t);let r=`#333333`;if(E&&E!==`transparent`&&E!==`none`){let e=E.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})/i);if(e){let t=parseInt(e[1],16),n=parseInt(e[2],16),i=parseInt(e[3],16);r=eB(Math.round(t*.5),Math.round(n*.5),Math.round(i*.5))}}e.setAttribute(`fill`,r),e.setAttribute(`stroke`,`none`),a.appendChild(e)}}o.appendChild(a)}}else E&&E!==`transparent`&&(E.includes(`gradient`)?o.style.background=E:o.style.backgroundColor=E);if(e.textBody&&e.textBody.paragraphs.length>0&&xU(e.textBody)){let n=JU(e,t);if(n)o.appendChild(n);else{let n=document.createElement(`div`);n.style.position=`absolute`,e.textBoxBounds?(n.style.left=`${e.textBoxBounds.x}px`,n.style.top=`${e.textBoxBounds.y}px`,n.style.width=`${e.textBoxBounds.w}px`,n.style.height=`${e.textBoxBounds.h}px`):(n.style.left=`0`,n.style.top=`0`,n.style.width=`100%`,n.style.height=`100%`),n.style.display=`flex`,n.style.flexDirection=`column`,n.style.boxSizing=`border-box`;let r=RV(e.textBody,`spAutoFit`)?.exists(),i=RV(e.textBody,`normAutofit`),s=i?.exists(),c=RV(e.textBody,`noAutofit`)?.exists(),l=e.textBody.bodyProperties,u=e.textBody.layoutBodyProperties,d=(l?l.attr(`wrap`):void 0)??(u?u.attr(`wrap`):void 0),f=(l?l.attr(`horzOverflow`):void 0)??(u?u.attr(`horzOverflow`):void 0),p=(l?l.attr(`vertOverflow`):void 0)??(u?u.attr(`vertOverflow`):void 0),m=r&&!s&&f===`overflow`,h=r&&!s&&p===`overflow`,g=!r&&!s&&!c&&SU(e.textBody)&&!AU(e.textBody)&&(d===`none`||d===void 0&&EU(e.textBody)),_=c&&jU(e.placeholder)&&SU(e.textBody);n.style.overflowX=`visible`,n.style.overflowY=`visible`;let v=!1;if(s&&i){n.style.overflowX=`hidden`,n.style.overflowY=`hidden`;let e=i.numAttr(`lnSpcReduction`)??0;if(v=!0,e>0){let t=1-e/1e5;n.style.lineHeight=`${t}`}}if(r&&!s){if(m===h){let e=m?`visible`:`hidden`;n.style.overflowX=e,n.style.overflowY=e}else n.style.overflowX=m?`visible`:`clip`,n.style.overflowY=h?`visible`:`clip`;v=!m||!h}g&&(n.style.overflowX=`hidden`,n.style.overflowY=`hidden`,v=!0),_&&(v=!0);let y=!1,b,x=!!r&&!s&&SU(e.textBody),S=CU(e.textBody);{l&&d===`none`&&(n.style.whiteSpace=`nowrap`);let t=l?l.attr(`anchor`):void 0,r=u?u.attr(`anchor`):void 0,i=t||r,a=t!==void 0||r!==void 0;b=i;let o=(l?l.attr(`vert`):null)||(u?u.attr(`vert`):null);i===`t`?n.style.justifyContent=`flex-start`:i===`ctr`?n.style.justifyContent=`center`:i===`b`?n.style.justifyContent=`flex-end`:n.style.justifyContent=`flex-start`;let s=(l?l.numAttr(`lIns`):void 0)??(u?u.numAttr(`lIns`):void 0),c=(l?l.numAttr(`tIns`):void 0)??(u?u.numAttr(`tIns`):void 0),f=(l?l.numAttr(`rIns`):void 0)??(u?u.numAttr(`rIns`):void 0),p=(l?l.numAttr(`bIns`):void 0)??(u?u.numAttr(`bIns`):void 0),m=Y(s===void 0?91440:s),h=Y(c===void 0?45720:c),_=Y(f===void 0?91440:f),v=Y(p===void 0?45720:p),C=e.textBoxBounds?.h??e.size.h,w=g&&!o&&i===`ctr`&&C>0&&h+v>=C,T=w?0:h,E=w?0:v;n.style.paddingLeft=`${m}px`,n.style.paddingTop=`${T}px`,n.style.paddingRight=`${_}px`,n.style.paddingBottom=`${E}px`,o===`eaVert`?(RU(n,b),y=!0):o===`wordArtVert`?(RU(n,b,!0,`vertical-lr`),y=!0):o===`vert`?(RU(n,b),y=!0):o===`vert270`&&(RU(n,b),MU(n,`rotate(180deg)`),y=!0),x&&!a&&!y&&S&&(n.style.justifyContent=`center`)}if((a=e.textBoxBounds)!=null&&a.rotation&&e.textBoxBounds.rotation!==0&&(MU(n,`rotate(${e.textBoxBounds.rotation}deg)`),n.style.transformOrigin=`center center`),e.flipH||e.flipV){let e=n.style.transform||``;n.style.transform=`${e} scaleX(-1)`.trim()}let C,w=e.source.child(`style`);if(w.exists()){let e=w.child(`fontRef`);e.exists()&&e.allChildren().length>0&&(C=FB(e,t))}let T=C||y||r&&!s?{...C?{fontRefColor:C}:{},...y?{isVerticalText:y}:{},...r&&!s?(()=>{let t=DU(e.textBody),n=!OU(e.textBody)&&d!==`none`&&(t>1||TU(e.textBody)>wU);return{trimOuterParagraphSpacing:!0,...x&&!y&&(d===`none`||S)?{compactSingleLineSpacing:!0,defaultLineHeight:`1`}:n?{defaultLineHeight:`1.1`}:{}}})():{}}:void 0;if(VH(e.textBody,e.placeholder,t,n,T),o.appendChild(n),v){let e=n.style.transform,i=n.style.transformOrigin,a=n.style.width,c=n.style.height,l=n.style.whiteSpace,u=n.style.overflowY,f=()=>{var f;n.style.transform=e,n.style.transformOrigin=i,n.style.width=a,n.style.height=c,n.style.whiteSpace=l,n.style.overflowY=u;let p=o.isConnected,v=o.style.visibility,b=(f=t.measurementRoot)!=null&&f.isConnected?t.measurementRoot:document.body;p||(o.style.visibility=`hidden`,b.appendChild(o));let C=n.style.justifyContent,w=n.style.whiteSpace;n.style.justifyContent=`flex-start`;let T=n.clientWidth,E=n.clientHeight,D=n.scrollHeight,O=n.scrollWidth,k=O,A=D,j=T>0&&O<=T+VU,M=E>0&&(D<=E||!h&&j&&D<=E*(x?BU:zU)),N=T>0&&E>0&&j&&M,P=r&&!s&&!h&&j&&M&&D>E&&E>0,F=g&&j&&D>E&&E>0,I=!y&&!m&&!N&&(!j||!M||x||g||_),L=!1;I&&(n.style.whiteSpace=`nowrap`,k=n.scrollWidth,A=n.scrollHeight,L=!0,n.style.whiteSpace=w),n.style.justifyContent=C,p||(o.parentNode===b&&b.removeChild(o),o.style.visibility=v);let R=1,z=_||g,B=r&&!s&&d!==`none`&&L&&!M&&k<=T+VU&&A<=E;if(B&&(n.style.whiteSpace=`nowrap`),!m&&k>T+VU&&T>0){let e=T/k;(!r||s||r&&!s&&!M&&A<=E&&e>=UU||r&&!s&&x&&(d===void 0||d===`none`||S)||g||_)&&(!_||e>=HU)&&(R=Math.min(R,e))}let ee=r&&!s&&R<1&&A<=E&&!M;ee&&(n.style.whiteSpace=`nowrap`),!z&&!B&&!ee&&!h&&!M&&A>E&&E>0&&(R=Math.min(R,E/A)),!z&&!B&&!ee&&!h&&R===1&&!M&&D>E&&E>0&&(R=E/D),R<1?(n.style.transform||(n.style.transformOrigin=`top left`),MU(n,`scale(${R})`),n.style.width=LU(a,R),n.style.height=LU(c,R)):(P||F)&&(n.style.overflowY=`visible`)},p=()=>{typeof requestAnimationFrame==`function`?requestAnimationFrame(()=>requestAnimationFrame(f)):setTimeout(f,0)};f(),p(),document.fonts?.status===`loading`&&document.fonts.ready&&document.fonts.ready.then(()=>p()).catch(()=>{})}}}let V=T.child(`effectLst`);if(!V.exists()){let n=e.source.child(`style`).child(`effectRef`).numAttr(`idx`)??0;if(n>0&&(t.theme.effectStyles?.length??0)>=n){let e=t.theme.effectStyles[n-1];if(e.exists()){let t=e.child(`effectLst`);t.exists()&&(V=t)}}}if(V.exists()){let n=V.child(`outerShdw`);if(n.exists()){let r=n.numAttr(`dir`)??0,i=n.numAttr(`dist`)??0,a=n.numAttr(`blurRad`)??0,s=n.numAttr(`sx`),c=n.numAttr(`sy`),l=n.attr(`algn`),u=r/6e4,d=Y(i),p=Y(a),m=d*Math.cos(u*Math.PI/180),h=d*Math.sin(u*Math.PI/180),g=`rgba(0,0,0,0.4)`,_={r:0,g:0,b:0},{color:v,alpha:y}=NB(n,t);if(v){let{r:e,g:t,b:n}=$z(v.startsWith(`#`)?v:`#${v}`);_={r:e,g:t,b:n},g=`rgba(${e},${t},${n},${y.toFixed(3)})`}if(s!=null&&c!=null&&s>0&&c>0){let t=s/1e5,n=c/1e5,r=e.size?.w??100,i=e.size?.h??100,a=r,u=i;if(f||r<=1||i<=1){let t=e.line?.numAttr(`w`)??12700,n=Math.max(1,Y(t));a=n,u=n}let d=a*(t-1)/2,b=u*(n-1)/2,x=Math.max(0,(d+b)/2),S=0,C=0;if(l){let e=l.toLowerCase();(e===`t`||e===`tl`||e===`tr`)&&(C=u*(n-1)/2),(e===`b`||e===`bl`||e===`br`)&&(C=-u*(n-1)/2),(e===`l`||e===`tl`||e===`bl`)&&(S=a*(t-1)/2),(e===`r`||e===`tr`||e===`br`)&&(S=-a*(t-1)/2)}let w=x>0?Math.min(p,x*3):p,T=y;if(x>0&&p>0&&x<p&&(T=x/p*y),T>=.01){let e=m+S,t=h+C,n=g;if(v){let{r:e,g:t,b:r}=$z(v.startsWith(`#`)?v:`#${v}`);_={r:e,g:t,b:r},n=`rgba(${e},${t},${r},${T.toFixed(4)})`}!f&&B&&ee&&te&&ne?nW(B,ee,te,ne,{dx:e,dy:t,blur:w,color:_,opacity:T}):o.style.boxShadow=`${e.toFixed(1)}px ${t.toFixed(1)}px ${w.toFixed(1)}px ${x.toFixed(1)}px ${n}`}}else!f&&B&&ee&&te&&ne?nW(B,ee,te,ne,{dx:m,dy:h,blur:p,color:_,opacity:y}):NU(o,`drop-shadow(${m.toFixed(1)}px ${h.toFixed(1)}px ${p.toFixed(1)}px ${g})`)}let r=V.child(`glow`);r.exists()&&IU(o,r,t);let i=V.child(`softEdge`);if(i.exists()&&!f&&B&&ee&&te&&ne){let e=Y(i.numAttr(`rad`)??0);e>0&&iW(B,ee,te,ne,e)}let a=V.child(`innerShdw`);if(a.exists()&&!f&&B&&ee&&te&&ne){let e=a.numAttr(`dir`)??0,n=Y(a.numAttr(`dist`)??0),r=Y(a.numAttr(`blurRad`)??0),i=e/6e4,o=n*Math.cos(i*Math.PI/180),s=n*Math.sin(i*Math.PI/180),{color:c,alpha:l}=NB(a,t);if(c&&l>0){let e=c.startsWith(`#`)?c:`#${c}`;rW(B,ee,te,ne,{dx:o,dy:s,blur:r,color:$z(e),opacity:l})}}let s=V.child(`reflection`);if(s.exists()){let e=Y(s.numAttr(`dist`)??0),t=(s.numAttr(`stA`)??5e4)/1e5,n=(s.numAttr(`endA`)??0)/1e5,r=Math.max(0,Math.min(100,(s.numAttr(`stPos`)??0)/1e3)),i=Math.max(0,Math.min(100,(s.numAttr(`endPos`)??1e5)/1e3)),a=`linear-gradient(to bottom, rgba(255,255,255,${t.toFixed(3)}) ${r.toFixed(1)}%, rgba(255,255,255,${n.toFixed(3)}) ${i.toFixed(1)}%)`,c=`below ${e.toFixed(1)}px ${a}`;o.style.setProperty(`-webkit-box-reflect`,c),o.style.webkitBoxReflect=c}}if(e.hlinkClick&&t.onNavigate){let{action:n,rId:r}=e.hlinkClick,i=r?t.slide.rels.get(r):void 0,a=lH(t,n,i);a===void 0?r&&i&&SR(i.targetMode)&&iV(i.target)&&(o.style.cursor=`pointer`,o.title=e.hlinkClick.tooltip||i.target,o.addEventListener(`click`,e=>{e.stopPropagation(),t.onNavigate({url:i.target})})):(o.style.cursor=`pointer`,o.title=e.hlinkClick.tooltip||uH(a),o.addEventListener(`click`,e=>{e.stopPropagation(),t.onNavigate({slideIndex:a})}))}return o}var qW=14,JW=70,YW=81,XW=1128875079,ZW=2,QW=1073741828,$W=1179469088,eG=[37,80,68,70],tG=[37,37,69,79,70],nG=0,rG=16777216;function iG(e){if(e.length<44)return{type:`unsupported`};let t=new DataView(e.buffer,e.byteOffset,e.byteLength);if(t.getUint32(40,!0)!==$W)return{type:`unsupported`};let n=0,r=0;for(;n+8<=e.length;){let i=t.getUint32(n,!0),a=t.getUint32(n+4,!0);if(a<8||n+a>e.length||(r++,i===qW))break;if(i===JW&&a>16){let r=aG(e,t,n,a);if(r)return r}if(i===YW&&a>80){let r=cG(e,t,n);if(r)return r}n+=a}return r<=2?{type:`empty`}:{type:`unsupported`}}function aG(e,t,n,r){if(n+16>e.length)return null;if(t.getUint32(n+12,!0)===XW&&n+20<=e.length){let i=t.getUint32(n+16,!0);if(i===ZW){let t=sG(e.subarray(n+8,n+r));if(t)return{type:`pdf`,data:t}}if(i===QW&&n+24<=e.length){let r=oG(e,t,n);if(r)return r}}if(r>100){let t=sG(e.subarray(n+8,n+r));if(t)return{type:`pdf`,data:t}}return null}function oG(e,t,n,r){if(n+40>e.length)return null;let i=t.getUint32(n+36,!0),a=n+40;for(let r=0;r<i&&r<10;r++){let i=a+r*16;if(i+16>e.length)break;let o=t.getUint32(i+8,!0),s=n+t.getUint32(i+12,!0);if(s+o>e.length||o===0)continue;let c=sG(e.subarray(s,s+o));if(c)return{type:`pdf`,data:c}}return null}function sG(e){let t=lG(e,eG);if(t===-1)return null;let n=-1;for(let r=e.length-tG.length;r>=t;r--)if(uG(e,r,tG)){n=r+tG.length;break}return n===-1&&(n=e.length),e.slice(t,n)}function cG(e,t,n,r){if(n+80>e.length)return null;let i=t.getUint32(n+48,!0),a=t.getUint32(n+52,!0),o=t.getUint32(n+56,!0),s=t.getUint32(n+60,!0);if(a===0||s===0)return null;let c=n+i;if(c+40>e.length)return null;let l=t.getInt32(c+4,!0),u=t.getInt32(c+8,!0),d=t.getUint16(c+14,!0);if(t.getUint32(c+16,!0)!==nG||d!==24&&d!==32)return null;let f=Math.abs(l),p=Math.abs(u);if(f===0||p===0||f>8192||p>8192||f*p>rG)return null;let m=n+o;if(m+s>e.length)return null;let h=d/8,g=Math.ceil(f*h/4)*4,_=g*p;if(s<_)return null;let v=e.subarray(m,m+_),y=u<0,b=new ImageData(f,p);for(let e=0;e<p;e++){let t=(y?e:p-1-e)*g,n=e*f*4;for(let e=0;e<f;e++){let r=t+e*h;if(r+h>v.length)break;b.data[n+e*4+0]=v[r+2],b.data[n+e*4+1]=v[r+1],b.data[n+e*4+2]=v[r+0],b.data[n+e*4+3]=d===32?v[r+3]:255}}return{type:`bitmap`,imageData:b}}function lG(e,t){let n=e.length-t.length;for(let r=0;r<=n;r++)if(uG(e,r,t))return r;return-1}function uG(e,t,n){for(let r=0;r<n.length;r++)if(e[t+r]!==n[r])return!1;return!0}var dG=`pdfjs-dist/build/pdf.min.mjs`,fG=`pdfjs-dist/build/pdf.worker.min.mjs`,pG=null,mG=null;function hG(e){try{let t=import.meta.resolve;if(typeof t==`function`)return t(e)}catch{}return null}function gG(e,t){if(!e||typeof e!=`object`)return null;let n=e[t];return typeof n==`string`&&n.trim()||null}function _G(){return pG===null?(pG=hG(dG)??``,pG||null):pG}function vG(){return mG===null?(mG=hG(fG)??``,mG||null):mG}function yG(e){return e===!1?null:gG(e,`moduleUrl`)??_G()}function bG(e){return e===!1?null:gG(e,`workerUrl`)??vG()}var xG=`
26
+ let pdfjsLib = null;
27
+
28
+ // PDF.js resolves its nested worker through browser window APIs. Aliasing
29
+ // this isolated worker global keeps it on the real-worker path; otherwise its
30
+ // fake-worker fallback would bind to this worker's message port.
31
+ globalThis.window = globalThis;
32
+
33
+ self.onmessage = async (e) => {
34
+ const { id, pdfData, width, height, pdfjsUrl, pdfWorkerUrl } = e.data;
35
+ try {
36
+ if (!pdfjsLib) {
37
+ pdfjsLib = await import(pdfjsUrl);
38
+ pdfjsLib.GlobalWorkerOptions.workerSrc = pdfWorkerUrl;
39
+ }
40
+
41
+ const loadingTask = pdfjsLib.getDocument({ data: pdfData });
42
+ let doc = null;
43
+ try {
44
+ doc = await loadingTask.promise;
45
+ if (doc.numPages < 1) {
46
+ self.postMessage({ id, error: 'no pages' });
47
+ return;
48
+ }
49
+ const page = await doc.getPage(1);
50
+ const vp = page.getViewport({ scale: 1 });
51
+ const scale = Math.max(width / vp.width, height / vp.height);
52
+ const svp = page.getViewport({ scale });
53
+
54
+ const canvas = new OffscreenCanvas(Math.ceil(svp.width), Math.ceil(svp.height));
55
+ const ctx = canvas.getContext('2d', { alpha: true });
56
+ await page.render({ canvasContext: ctx, viewport: svp, background: 'rgba(0,0,0,0)' }).promise;
57
+
58
+ const blob = await canvas.convertToBlob({ type: 'image/png' });
59
+ self.postMessage({ id, blob });
60
+ } finally {
61
+ if (typeof loadingTask.destroy === 'function') {
62
+ await loadingTask.destroy();
63
+ } else if (doc && typeof doc.destroy === 'function') {
64
+ await doc.destroy();
65
+ }
66
+ }
67
+ } catch (err) {
68
+ self.postMessage({ id, error: String(err) });
69
+ }
70
+ };
71
+ `,SG=15e3,CG=4,wG=0,TG=[];function EG(){for(;wG<CG;){let e=TG.shift();if(!e)return;e.start()}}function DG(e,t){return t!=null&&t.aborted?Promise.resolve(null):new Promise(n=>{let r=!1,i=!1,a=e=>{i||(i=!0,n(e))},o={start:()=>{i||(r=!0,t?.removeEventListener(`abort`,o.cancel),wG+=1,Promise.resolve().then(e).then(a,()=>a(null)).finally(()=>{--wG,EG()}))},cancel:()=>{if(r||i)return;let e=TG.indexOf(o);e>=0&&TG.splice(e,1),t?.removeEventListener(`abort`,o.cancel),a(null)}};t?.addEventListener(`abort`,o.cancel,{once:!0}),TG.push(o),EG()})}function OG(e,t,n,r,i,a){return a!=null&&a.aborted?Promise.resolve(null):new Promise(o=>{let s=null,c,l=!1,u=e=>{l||(l=!0,c!==void 0&&clearTimeout(c),a?.removeEventListener(`abort`,d),s&&=(s.onmessage=null,s.onerror=null,s.terminate(),null),o(e))},d=()=>u(null);try{let o=new Blob([xG],{type:`text/javascript`}),l=URL.createObjectURL(o);try{s=new Worker(l,{type:`module`})}finally{URL.revokeObjectURL(l)}s.onmessage=e=>{let{blob:t,error:n}=e.data;u(n?null:t??null)},s.onerror=()=>u(null),a?.addEventListener(`abort`,d,{once:!0});let f=e.slice();s.postMessage({id:1,pdfData:f,width:t,height:n,pdfjsUrl:r,pdfWorkerUrl:i},[f.buffer]),c=setTimeout(()=>u(null),SG)}catch{u(null)}})}async function kG(e,t,n,r,i){if(i!=null&&i.aborted)return null;let a=yG(r),o=bG(r);if(!a||!o||typeof OffscreenCanvas>`u`||typeof Worker>`u`)return null;try{let r=await DG(()=>OG(e,t,n,a,o,i),i);if(r&&!(i!=null&&i.aborted))return URL.createObjectURL(r)}catch{}return null}function AG(e){return(e.split(`.`).pop()?.toLowerCase()||``)===`wmf`}function jG(e){return(e.split(`.`).pop()?.toLowerCase()||``)===`emf`}var MG=0;function NG(e,t){if(SR(e.targetMode))return aV(e.target)?e.target:void 0;let n=tR(e.target,t.presentation.media);if(!n)return;let{mediaPath:r,data:i}=n;if(!AG(r))return rR(r,i,t.mediaUrlCache)}function PG(e,t){var n;let r=document.createElement(`div`);r.style.position=`absolute`,r.style.left=`${e.position.x}px`,r.style.top=`${e.position.y}px`,r.style.width=`${e.size.w}px`,r.style.height=`${e.size.h}px`,r.style.overflow=`hidden`;let i=BG(e),a=[];if(e.rotation!==0&&a.push(`rotate(${e.rotation}deg)`),e.flipH&&!i&&a.push(`scaleX(-1)`),e.flipV&&!i&&a.push(`scaleY(-1)`),a.length>0&&(r.style.transform=a.join(` `)),UG(r,e,t),e.isVideo)return rK(e,t,r),r;if(e.isAudio)return iK(e,t,r),r;let o=e.blipEmbed,s;if(o){let i=t.slide.rels.get(o);if(!i)return oK(r,`Missing image reference`),r;if(SR(i.targetMode)){if(s=aV(i.target)?i.target:void 0,!s)return oK(r,`Image not found`),r}else{let a=$L(i.target);if(AG(a))return sK(r,a),r;let o=tR(i.target,t.presentation.media);if(!o){if(t.presentation.mediaResolver){let a=nR(i.target,t.presentation.media,t.presentation.mediaResolver).then(n=>{if(!n){oK(r,`Image not found`);return}FG(e,t,r,n.mediaPath,n.data)}).catch(()=>{oK(r,`Image not found`)});return(n=t.asyncTasks)==null||n.push(a),t.asyncTasks,r}return oK(r,`Image not found`),r}return FG(e,t,r,o.mediaPath,o.data),r}}else if(e.blipLink){if(s=aK(e.blipLink,t),!s)return oK(r,`Image not found`),r}else return oK(r,`No image data`),r;return IG(e,t,r,s),r}function FG(e,t,n,r,i){if(jG(r)){cK(i instanceof Uint8Array?i:new Uint8Array(i),e,t,n,r);return}IG(e,t,n,rR(r,i,t.mediaUrlCache))}function IG(e,t,n,r){let i=e.source.child(`blipFill`),a=i.child(`blip`),o=nK(a);if(i.child(`tile`).exists()){n.style.backgroundImage=`url("${r}")`,n.style.backgroundRepeat=`repeat`,n.style.backgroundSize=`auto`,o<1&&(n.style.opacity=`${Number(o.toFixed(4))}`);return}let s=document.createElement(`img`);s.src=r,s.style.width=`100%`,s.style.height=`100%`,s.style.objectFit=`fill`,s.style.display=`block`,s.draggable=!1;let c=e.source.child(`blipFill`).child(`stretch`).child(`fillRect`),l=c.exists()?RG(c):void 0,u=BG(e);if(u){HG(e,n,r,u,l),o<1&&(n.style.opacity=`${Number(o.toFixed(4))}`);return}if(l&&zG(s,l),e.crop){let{top:t,right:n,bottom:r,left:i}=e.crop,a=1-i-n,o=1-t-r;if(a>.001&&o>.001){let n=1/a,r=1/o,c=e.size.w*((l?.width??100)/100),u=e.size.h*((l?.height??100)/100);s.style.width=`${(n*c).toFixed(4)}px`,s.style.height=`${(r*u).toFixed(4)}px`,s.style.marginLeft=`${(-i*n*c).toFixed(4)}px`,s.style.marginTop=`${(-t*r*u).toFixed(4)}px`}}o<1&&(n.style.opacity=`${Number(o.toFixed(4))}`),a.child(`grayscl`).exists()&&ZG(s,`grayscale(1)`);let d=a.child(`duotone`);d.exists()&&fK(d,t,s);let f=a.child(`lum`);f.exists()&&pK(f,s);let p=a.child(`biLevel`);p.exists()&&mK(p,s),n.appendChild(s)}function LG(e,t){return(e.numAttr(t)??0)/1e3}function RG(e){let t=LG(e,`l`),n=LG(e,`t`),r=LG(e,`r`),i=LG(e,`b`);return{left:t,top:n,width:100-t-r,height:100-n-i}}function zG(e,t){e.style.position=`absolute`,e.style.left=`${t.left}%`,e.style.top=`${t.top}%`,e.style.width=`${t.width}%`,e.style.height=`${t.height}%`}function BG(e){let t=e.source.child(`spPr`).child(`custGeom`),n=e.customGeometry??(t.exists()?t:void 0);if(n!=null&&n.exists()){let t=e.source.child(`spPr`).child(`xfrm`).child(`ext`),r={w:t.numAttr(`cx`)??0,h:t.numAttr(`cy`)??0};return UH(n,e.size.w,e.size.h,r)||void 0}let r=e.source.child(`spPr`).child(`prstGeom`).attr(`prst`),i=e.presetGeometry??r;return!i||i===`rect`?void 0:sU(i,e.size.w,e.size.h)||void 0}function VG(e){if(e.flipH&&e.flipV)return`translate(${e.size.w} ${e.size.h}) scale(-1 -1)`;if(e.flipH)return`translate(${e.size.w} 0) scale(-1 1)`;if(e.flipV)return`translate(0 ${e.size.h}) scale(1 -1)`}function HG(e,t,n,r,i){let a=`http://www.w3.org/2000/svg`,o=document.createElementNS(a,`svg`);o.setAttribute(`viewBox`,`0 0 ${e.size.w} ${e.size.h}`),o.setAttribute(`width`,`100%`),o.setAttribute(`height`,`100%`),o.style.display=`block`,o.style.overflow=`hidden`;let s=`picture-clip-${MG++}`,c=document.createElementNS(a,`defs`),l=document.createElementNS(a,`clipPath`);l.setAttribute(`id`,s),l.setAttribute(`clipPathUnits`,`userSpaceOnUse`);let u=document.createElementNS(a,`path`);u.setAttribute(`d`,r);let d=VG(e);d&&u.setAttribute(`transform`,d),l.appendChild(u),c.appendChild(l),o.appendChild(c);let f=document.createElementNS(a,`image`);f.setAttribute(`href`,n),f.setAttribute(`preserveAspectRatio`,`none`),d&&f.setAttribute(`transform`,d);let p=document.createElementNS(a,`g`);p.setAttribute(`clip-path`,`url(#${s})`);let m=(i?.left??0)/100*e.size.w,h=(i?.top??0)/100*e.size.h,g=(i?.width??100)/100*e.size.w,_=(i?.height??100)/100*e.size.h;if(e.crop){let{top:t,right:n,bottom:r,left:a}=e.crop,o=1-a-n,s=1-t-r;if(o>.001&&s>.001){let n=1/o,r=1/s;g*=n,_*=r,m+=-a*n*((i?.width??100)/100)*e.size.w,h+=-t*r*((i?.height??100)/100)*e.size.h}}f.setAttribute(`x`,String(m)),f.setAttribute(`y`,String(h)),f.setAttribute(`width`,String(g)),f.setAttribute(`height`,String(_)),t.appendChild(o),o.appendChild(p),p.appendChild(f)}function UG(e,t,n){WG(e,t,n),qG(e,t,n),JG(e,t,n),tK(e,t,n)}function WG(e,t,n){let r=RB(t.source.child(`spPr`),n);r&&GG(e,r)}function GG(e,t){if(KG(e),t.includes(`gradient`)&&t.includes(` 0 0 / `)){let n=lV(t);if(n){e.style.backgroundImage=n.imageLayers,e.style.backgroundSize=`8px 8px`,e.style.backgroundRepeat=`repeat`,e.style.backgroundColor=n.color;return}}t.includes(`gradient`)||t.startsWith(`url(`)||t.includes(`repeating-`)?e.style.background=t:e.style.backgroundColor=t}function KG(e){e.style.background=``,e.style.backgroundColor=``,e.style.backgroundImage=``,e.style.backgroundRepeat=``,e.style.backgroundSize=``}function qG(e,t,n){let r=t.source.child(`style`).child(`lnRef`);if(t.line?.child(`noFill`).exists()??!1)return;let i=t.line?.exists()??!1,a=!i&&r.exists()&&(r.numAttr(`idx`)??0)>0&&(n.theme.lineStyles?.length??0)>=(r.numAttr(`idx`)??0)?n.theme.lineStyles[(r.numAttr(`idx`)??1)-1]:void 0,o=i?t.line:a;if(!(o!=null&&o.exists()))return;let s=VB(o,n,r);s.width<=0||s.color===`transparent`||(e.style.boxSizing=`border-box`,e.style.border=`${s.width}px ${s.dash} ${s.color}`)}function JG(e,t,n){let r=t.source.child(`spPr`).child(`effectLst`);if(!r.exists())return;let i=r.child(`outerShdw`);i.exists()&&YG(e,t,i,n);let a=r.child(`glow`);a.exists()&&QG(e,a,n);let o=r.child(`softEdge`);o.exists()&&$G(e,t,o);let s=r.child(`reflection`);s.exists()&&eK(e,s)}function YG(e,t,n,r){let i=n.numAttr(`dir`)??0,a=Y(n.numAttr(`dist`)??0),o=Y(n.numAttr(`blurRad`)??0),s=i/6e4,c=a*Math.cos(s*Math.PI/180),l=a*Math.sin(s*Math.PI/180),u=XG(n,r,`rgba(0,0,0,0.4)`),d=n.numAttr(`sx`),f=n.numAttr(`sy`);if(d!=null&&f!=null&&d>0&&f>0){let n=d/1e5,r=f/1e5,i=t.size.w*(n-1)/2,a=t.size.h*(r-1)/2,s=Math.max(0,(i+a)/2);e.style.boxShadow=`${c.toFixed(1)}px ${l.toFixed(1)}px ${o.toFixed(1)}px ${s.toFixed(1)}px ${u}`;return}ZG(e,`drop-shadow(${c.toFixed(1)}px ${l.toFixed(1)}px ${o.toFixed(1)}px ${u})`)}function XG(e,t,n){let{color:r,alpha:i}=NB(e,t);if(!r)return n;let{r:a,g:o,b:s}=$z(r.startsWith(`#`)?r:`#${r}`);return`rgba(${a},${o},${s},${i.toFixed(3)})`}function ZG(e,t){let n=e.style.filter.trim();e.style.filter=n?`${n} ${t}`:t}function QG(e,t,n){let r=Y(t.numAttr(`rad`)??0);if(!(r>0))return;let{color:i,alpha:a}=NB(t,n);if(!i||a<=0)return;let{r:o,g:s,b:c}=$z(i.startsWith(`#`)?i:`#${i}`);ZG(e,`drop-shadow(0px 0px ${r.toFixed(1)}px rgba(${o},${s},${c},${a.toFixed(3)}))`)}function $G(e,t,n){let r=Y(n.numAttr(`rad`)??0);if(!(r>0))return;let i=Math.max(0,Math.min(t.size.w,t.size.h)/2),a=`${Number((i>0?Math.min(r,i):r).toFixed(4))}px`,o=`var(--pptx-soft-edge-radius)`,s=[`linear-gradient(to right, transparent 0, black ${o}, black calc(100% - ${o}), transparent 100%)`,`linear-gradient(to bottom, transparent 0, black ${o}, black calc(100% - ${o}), transparent 100%)`].join(`, `);e.style.setProperty(`--pptx-soft-edge-radius`,a),e.style.setProperty(`-webkit-mask-image`,s),e.style.setProperty(`mask-image`,s),e.style.setProperty(`-webkit-mask-size`,`100% 100%`),e.style.setProperty(`mask-size`,`100% 100%`),e.style.setProperty(`-webkit-mask-repeat`,`no-repeat`),e.style.setProperty(`mask-repeat`,`no-repeat`),e.style.setProperty(`-webkit-mask-composite`,`source-in`),e.style.setProperty(`mask-composite`,`intersect`);let c=e.style;c.webkitMaskImage=s,c.maskImage=s,c.webkitMaskComposite=`source-in`,c.maskComposite=`intersect`}function eK(e,t){let n=Y(t.numAttr(`dist`)??0),r=(t.numAttr(`stA`)??5e4)/1e5,i=(t.numAttr(`endA`)??0)/1e5,a=Math.max(0,Math.min(100,(t.numAttr(`stPos`)??0)/1e3)),o=Math.max(0,Math.min(100,(t.numAttr(`endPos`)??1e5)/1e3)),s=`linear-gradient(to bottom, rgba(255,255,255,${r.toFixed(3)}) ${a.toFixed(1)}%, rgba(255,255,255,${i.toFixed(3)}) ${o.toFixed(1)}%)`,c=`below ${n.toFixed(1)}px ${s}`;e.style.setProperty(`-webkit-box-reflect`,c),e.style.webkitBoxReflect=c}function tK(e,t,n){if(!t.hlinkClick||!n.onNavigate)return;let{action:r,rId:i}=t.hlinkClick,a=i?n.slide.rels.get(i):void 0,o=lH(n,r,a);if(o!==void 0){e.style.cursor=`pointer`,e.title=t.hlinkClick.tooltip||uH(o),e.addEventListener(`click`,e=>{e.stopPropagation(),n.onNavigate({slideIndex:o})});return}i&&(!a||!SR(a.targetMode)||!iV(a.target)||(e.style.cursor=`pointer`,e.title=t.hlinkClick.tooltip||a.target,e.addEventListener(`click`,e=>{e.stopPropagation(),n.onNavigate({url:a.target})})))}function nK(e){let t=1,n=e.child(`alphaModFix`);n.exists()&&(t*=(n.numAttr(`amt`)??1e5)/1e5);let r=e.child(`alphaMod`);r.exists()&&(t*=(r.numAttr(`val`)??1e5)/1e5);let i=e.child(`alphaOff`);return i.exists()&&(t+=(i.numAttr(`val`)??0)/1e5),Math.max(0,Math.min(1,t))}function rK(e,t,n){let r=aK(e.mediaRId,t),i;if(e.blipEmbed){let n=t.slide.rels.get(e.blipEmbed);n&&(i=NG(n,t))}if(r){let e=document.createElement(`video`);e.src=r,e.preload=`none`,e.controls=!0,e.style.width=`100%`,e.style.height=`100%`,e.style.objectFit=`contain`,e.style.backgroundColor=`#000`,i&&(e.poster=i),n.appendChild(e)}else if(i){let e=document.createElement(`img`);e.src=i,e.style.width=`100%`,e.style.height=`100%`,e.style.objectFit=`fill`,n.appendChild(e);let t=document.createElement(`div`);t.style.position=`absolute`,t.style.inset=`0`,t.style.display=`flex`,t.style.alignItems=`center`,t.style.justifyContent=`center`,t.style.backgroundColor=`rgba(0,0,0,0.3)`,t.style.color=`#fff`,t.style.fontSize=`24px`,t.textContent=`▶`,n.appendChild(t)}else oK(n,`Video`)}function iK(e,t,n){let r=aK(e.mediaRId,t);if(r){if(e.blipEmbed){let r=t.slide.rels.get(e.blipEmbed);if(r){let e=NG(r,t);if(e){let t=document.createElement(`img`);t.src=e,t.style.width=`100%`,t.style.height=`calc(100% - 32px)`,t.style.objectFit=`contain`,n.appendChild(t)}}}let i=document.createElement(`audio`);i.src=r,i.preload=`none`,i.controls=!0,i.style.width=`100%`,i.style.position=`absolute`,i.style.bottom=`0`,i.style.left=`0`,n.appendChild(i)}else oK(n,`Audio`)}function aK(e,t){if(!e)return;let n=t.slide.rels.get(e);if(!n)return;if(SR(n.targetMode))return aV(n.target)?n.target:void 0;let r=tR(n.target,t.presentation.media);if(!r)return;let{mediaPath:i,data:a}=r;return rR(i,a,t.mediaUrlCache)}function oK(e,t){let n=document.createElement(`div`);n.style.width=`100%`,n.style.height=`100%`,n.style.display=`flex`,n.style.alignItems=`center`,n.style.justifyContent=`center`,n.style.backgroundColor=`#f0f0f0`,n.style.color=`#888`,n.style.fontSize=`12px`,n.style.border=`1px dashed #ccc`,n.textContent=t,e.appendChild(n)}function sK(e,t){let n=t.split(`.`).pop()?.toUpperCase()||`Unknown`,r=document.createElement(`div`);r.style.width=`100%`,r.style.height=`100%`,r.style.display=`flex`,r.style.flexDirection=`column`,r.style.alignItems=`center`,r.style.justifyContent=`center`,r.style.backgroundColor=`#f5f5f5`,r.style.color=`#999`,r.style.fontSize=`11px`,r.style.border=`1px dashed #ddd`;let i=document.createElement(`div`);i.style.fontSize=`24px`,i.style.marginBottom=`4px`,i.textContent=`🖼`;let a=document.createElement(`div`);a.textContent=`Unsupported format: ${n}`,r.appendChild(i),r.appendChild(a),e.appendChild(r)}function cK(e,t,n,r,i){let a=iG(e);switch(a.type){case`pdf`:lK(a.data,r,t,n,i);break;case`bitmap`:uK(a.imageData,r,n,i)}}function lK(e,t,n,r,i){var a;let o=`${i}:emf-pdf`,s=r.mediaUrlCache.get(o);if(s){t.appendChild(dK(s));return}let c=kG(e,n.size.w,n.size.h,r.pdfjs,r.signal).then(e=>{var n;if(e){if((n=r.signal)!=null&&n.aborted){URL.revokeObjectURL(e);return}r.mediaUrlCache.set(o,e),t.appendChild(dK(e))}}).catch(()=>{});(a=r.asyncTasks)==null||a.push(c)}function uK(e,t,n,r){var i;let a=`${r}:emf-bitmap`,o=n.mediaUrlCache.get(a);if(o){t.appendChild(dK(o));return}let s=document.createElement(`canvas`);s.width=e.width,s.height=e.height;let c=s.getContext(`2d`);if(!c)return;c.putImageData(e,0,0);let l=new Promise(e=>{s.toBlob(r=>{if(r){let e=URL.createObjectURL(r);n.mediaUrlCache.set(a,e),t.appendChild(dK(e))}e()},`image/png`)});(i=n.asyncTasks)==null||i.push(l)}function dK(e){let t=document.createElement(`img`);return t.src=e,t.style.width=`100%`,t.style.height=`100%`,t.style.objectFit=`fill`,t.style.display=`block`,t.draggable=!1,t}function fK(e,t,n,r){let i=e.allChildren();if(i.length<2)return;let{color:a}=NB(i[0],t),{color:o}=NB(i[1],t);if(!a||!o)return;let s=a.startsWith(`#`)?a:`#${a}`,c=o.startsWith(`#`)?o:`#${o}`,l=$z(s),u=$z(c),d=()=>{let e=n.naturalWidth,t=n.naturalHeight;if(!e||!t)return;let r=document.createElement(`canvas`);r.width=e,r.height=t;let i=r.getContext(`2d`);if(!i)return;i.drawImage(n,0,0);let a=i.getImageData(0,0,e,t),o=a.data;for(let e=0;e<o.length;e+=4){let t=(.2126*o[e]+.7152*o[e+1]+.0722*o[e+2])/255;o[e]=Math.round(l.r+(u.r-l.r)*t),o[e+1]=Math.round(l.g+(u.g-l.g)*t),o[e+2]=Math.round(l.b+(u.b-l.b)*t)}i.putImageData(a,0,0),n.src=r.toDataURL()};n.complete&&n.naturalWidth?d():n.addEventListener(`load`,d,{once:!0})}function pK(e,t){let n=(e.numAttr(`bright`)??0)/1e5,r=(e.numAttr(`contrast`)??0)/1e5;if(n===0&&r===0)return;let i=()=>{let e=t.naturalWidth,i=t.naturalHeight;if(!e||!i)return;let a=document.createElement(`canvas`);a.width=e,a.height=i;let o=a.getContext(`2d`);if(!o)return;o.drawImage(t,0,0);let s=o.getImageData(0,0,e,i),c=s.data;for(let e=0;e<c.length;e+=4)for(let t=0;t<3;t++){let i=c[e+t]/255;r!==0&&(i=.5+(i-.5)*(1+r)),i+=n,c[e+t]=Math.round(Math.max(0,Math.min(255,i*255)))}o.putImageData(s,0,0),t.src=a.toDataURL()};t.complete&&t.naturalWidth?i():t.addEventListener(`load`,i,{once:!0})}function mK(e,t){let n=(e.numAttr(`thresh`)??5e4)/1e5,r=()=>{let e=t.naturalWidth,r=t.naturalHeight;if(!e||!r)return;let i=document.createElement(`canvas`);i.width=e,i.height=r;let a=i.getContext(`2d`);if(!a)return;a.drawImage(t,0,0);let o=a.getImageData(0,0,e,r),s=o.data;for(let e=0;e<s.length;e+=4){let t=(.2126*s[e]+.7152*s[e+1]+.0722*s[e+2])/255>=n?255:0;s[e]=t,s[e+1]=t,s[e+2]=t}a.putImageData(o,0,0),t.src=i.toDataURL()};t.complete&&t.naturalWidth?r():t.addEventListener(`load`,r,{once:!0})}var hK=new Map([[`{2D5ABB26-0587-4C30-8999-92F81FD0307C}`,[`Themed-Style-1`,``]],[`{3C2FFA5D-87B4-456A-9821-1D502468CF0F}`,[`Themed-Style-1`,`accent1`]],[`{284E427A-3D55-4303-BF80-6455036E1DE7}`,[`Themed-Style-1`,`accent2`]],[`{69C7853C-536D-4A76-A0AE-DD22124D55A5}`,[`Themed-Style-1`,`accent3`]],[`{775DCB02-9BB8-47FD-8907-85C794F793BA}`,[`Themed-Style-1`,`accent4`]],[`{35758FB7-9AC5-4552-8A53-C91805E547FA}`,[`Themed-Style-1`,`accent5`]],[`{08FB837D-C827-4EFA-A057-4D05807E0F7C}`,[`Themed-Style-1`,`accent6`]],[`{5940675A-B579-460E-94D1-54222C63F5DA}`,[`Themed-Style-2`,``]],[`{D113A9D2-9D6B-4929-AA2D-F23B5EE8CBE7}`,[`Themed-Style-2`,`accent1`]],[`{18603FDC-E32A-4AB5-989C-0864C3EAD2B8}`,[`Themed-Style-2`,`accent2`]],[`{306799F8-075E-4A3A-A7F6-7FBC6576F1A4}`,[`Themed-Style-2`,`accent3`]],[`{E269D01E-BC32-4049-B463-5C60D7B0CCD2}`,[`Themed-Style-2`,`accent4`]],[`{327F97BB-C833-4FB7-BDE5-3F7075034690}`,[`Themed-Style-2`,`accent5`]],[`{638B1855-1B75-4FBE-930C-398BA8C253C6}`,[`Themed-Style-2`,`accent6`]],[`{9D7B26C5-4107-4FEC-AEDC-1716B250A1EF}`,[`Light-Style-1`,``]],[`{3B4B98B0-60AC-42C2-AFA5-B58CD77FA1E5}`,[`Light-Style-1`,`accent1`]],[`{0E3FDE45-AF77-4B5C-9715-49D594BDF05E}`,[`Light-Style-1`,`accent2`]],[`{C083E6E3-FA7D-4D7B-A595-EF9225AFEA82}`,[`Light-Style-1`,`accent3`]],[`{D27102A9-8310-4765-A935-A1911B00CA55}`,[`Light-Style-1`,`accent4`]],[`{5FD0F851-EC5A-4D38-B0AD-8093EC10F338}`,[`Light-Style-1`,`accent5`]],[`{68D230F3-CF80-4859-8CE7-A43EE81993B5}`,[`Light-Style-1`,`accent6`]],[`{7E9639D4-E3E2-4D34-9284-5A2195B3D0D7}`,[`Light-Style-2`,``]],[`{69012ECD-51FC-41F1-AA8D-1B2483CD663E}`,[`Light-Style-2`,`accent1`]],[`{72833802-FEF1-4C79-8D5D-14CF1EAF98D9}`,[`Light-Style-2`,`accent2`]],[`{F2DE63D5-997A-4646-A377-4702673A728D}`,[`Light-Style-2`,`accent3`]],[`{17292A2E-F333-43FB-9621-5CBBE7FDCDCB}`,[`Light-Style-2`,`accent4`]],[`{5A111915-BE36-4E01-A7E5-04B1672EAD32}`,[`Light-Style-2`,`accent5`]],[`{912C8C85-51F0-491E-9774-3900AFEF0FD7}`,[`Light-Style-2`,`accent6`]],[`{616DA210-FB5B-4158-B5E0-FEB733F419BA}`,[`Light-Style-3`,``]],[`{BC89EF96-8CEA-46FF-86C4-4CE0E7609802}`,[`Light-Style-3`,`accent1`]],[`{5DA37D80-6434-44D0-A028-1B22A696006F}`,[`Light-Style-3`,`accent2`]],[`{8799B23B-EC83-4686-B30A-512413B5E67A}`,[`Light-Style-3`,`accent3`]],[`{ED083AE6-46FA-4A59-8FB0-9F97EB10719F}`,[`Light-Style-3`,`accent4`]],[`{BDBED569-4797-4DF1-A0F4-6AAB3CD982D8}`,[`Light-Style-3`,`accent5`]],[`{E8B1032C-EA38-4F05-BA0D-38AFFFC7BED3}`,[`Light-Style-3`,`accent6`]],[`{793D81CF-94F2-401A-BA57-92F5A7B2D0C5}`,[`Medium-Style-1`,``]],[`{B301B821-A1FF-4177-AEE7-76D212191A09}`,[`Medium-Style-1`,`accent1`]],[`{9DCAF9ED-07DC-4A11-8D7F-57B35C25682E}`,[`Medium-Style-1`,`accent2`]],[`{1FECB4D8-DB02-4DC6-A0A2-4F2EBAE1DC90}`,[`Medium-Style-1`,`accent3`]],[`{1E171933-4619-4E11-9A3F-F7608DF75F80}`,[`Medium-Style-1`,`accent4`]],[`{FABFCF23-3B69-468F-B69F-88F6DE6A72F2}`,[`Medium-Style-1`,`accent5`]],[`{10A1B5D5-9B99-4C35-A422-299274C87663}`,[`Medium-Style-1`,`accent6`]],[`{073A0DAA-6AF3-43AB-8588-CEC1D06C72B9}`,[`Medium-Style-2`,``]],[`{5C22544A-7EE6-4342-B048-85BDC9FD1C3A}`,[`Medium-Style-2`,`accent1`]],[`{21E4AEA4-8DFA-4A89-87EB-49C32662AFE0}`,[`Medium-Style-2`,`accent2`]],[`{F5AB1C69-6EDB-4FF4-983F-18BD219EF322}`,[`Medium-Style-2`,`accent3`]],[`{00A15C55-8517-42AA-B614-E9B94910E393}`,[`Medium-Style-2`,`accent4`]],[`{7DF18680-E054-41AD-8BC1-D1AEF772440D}`,[`Medium-Style-2`,`accent5`]],[`{93296810-A885-4BE3-A3E7-6D5BEEA58F35}`,[`Medium-Style-2`,`accent6`]],[`{8EC20E35-A176-4012-BC5E-935CFFF8708E}`,[`Medium-Style-3`,``]],[`{6E25E649-3F16-4E02-A733-19D2CDBF48F0}`,[`Medium-Style-3`,`accent1`]],[`{85BE263C-DBD7-4A20-BB59-AAB30ACAA65A}`,[`Medium-Style-3`,`accent2`]],[`{EB344D84-9AFB-497E-A393-DC336BA19D2E}`,[`Medium-Style-3`,`accent3`]],[`{EB9631B5-78F2-41C9-869B-9F39066F8104}`,[`Medium-Style-3`,`accent4`]],[`{74C1A8A3-306A-4EB7-A6B1-4F7E0EB9C5D6}`,[`Medium-Style-3`,`accent5`]],[`{2A488322-F2BA-4B5B-9748-0D474271808F}`,[`Medium-Style-3`,`accent6`]],[`{D7AC3CCA-C797-4891-BE02-D94E43425B78}`,[`Medium-Style-4`,``]],[`{69CF1AB2-1976-4502-BF36-3FF5EA218861}`,[`Medium-Style-4`,`accent1`]],[`{8A107856-5554-42FB-B03E-39F5DBC370BA}`,[`Medium-Style-4`,`accent2`]],[`{0505E3EF-67EA-436B-97B2-0124C06EBD24}`,[`Medium-Style-4`,`accent3`]],[`{C4B1156A-380E-4F78-BDF5-A606A8083BF9}`,[`Medium-Style-4`,`accent4`]],[`{22838BEF-8BB2-4498-84A7-C5851F593DF1}`,[`Medium-Style-4`,`accent5`]],[`{16D9F66E-5EB9-4882-86FB-DCBF35E3C3E4}`,[`Medium-Style-4`,`accent6`]],[`{E8034E78-7F5D-4C2E-B375-FC64B27BC917}`,[`Dark-Style-1`,``]],[`{125E5076-3810-47DD-B79F-674D7AD40C01}`,[`Dark-Style-1`,`accent1`]],[`{37CE84F3-28C3-443E-9E96-99CF82512B78}`,[`Dark-Style-1`,`accent2`]],[`{D03447BB-5D67-496B-8E87-E561075AD55C}`,[`Dark-Style-1`,`accent3`]],[`{E929F9F4-4A8F-4326-A1B4-22849713DDAB}`,[`Dark-Style-1`,`accent4`]],[`{8FD4443E-F989-4FC4-A0C8-D5A2AF1F390B}`,[`Dark-Style-1`,`accent5`]],[`{AF606853-7671-496A-8E4F-DF71F8EC918B}`,[`Dark-Style-1`,`accent6`]],[`{5202B0CA-FC54-4496-8BCA-5EF66A818D29}`,[`Dark-Style-2`,``]],[`{0660B408-B3CF-4A94-85FC-2B1E0A45F4A2}`,[`Dark-Style-2`,`accent1`]],[`{91EBBBCC-DAD2-459C-BE2E-F6DE35CF9A28}`,[`Dark-Style-2`,`accent3`]],[`{46F890A9-2807-4EBB-B81D-B2AA78EC7F39}`,[`Dark-Style-2`,`accent5`]]]),gK=`xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"`;function _K(e,t){return`<a:fill><a:solidFill><a:schemeClr val="${e}">${t?`<a:${t}/>`:``}</a:schemeClr></a:solidFill></a:fill>`}function Q(e,t){return`<a:ln w="12700"><a:solidFill><a:schemeClr val="${e}">${t?`<a:${t}/>`:``}</a:schemeClr></a:solidFill></a:ln>`}function vK(e,t){return`<a:tcTxStyle${t?` b="on"`:``}>${e?`<a:schemeClr val="${e}"/>`:``}</a:tcTxStyle>`}function $(e,t){if(!t.textColor&&!t.bold&&!t.fill&&!t.borders)return``;let n=[`<a:${e}>`];if((t.textColor||t.bold)&&n.push(vK(t.textColor??``,t.bold)),n.push(`<a:tcStyle>`),t.fill&&n.push(t.fill),t.borders){n.push(`<a:tcBdr>`);for(let[e,r]of Object.entries(t.borders))n.push(`<a:${e}>${r}</a:${e}>`);n.push(`</a:tcBdr>`)}return n.push(`</a:tcStyle>`),n.push(`</a:${e}>`),n.join(``)}function yK(e,t){let n=e!==``,r=n?e:`tx1`,i=[];if(n){let e={left:Q(r),right:Q(r),top:Q(r),bottom:Q(r),insideH:Q(r),insideV:Q(r)};i.push($(`wholeTbl`,{textColor:`dk1`,borders:e}));let t=_K(r,`alpha val="40000"`);i.push($(`band1H`,{fill:t})),i.push($(`band1V`,{fill:t})),i.push($(`firstRow`,{textColor:`lt1`,bold:!0,fill:_K(r),borders:{left:Q(r),right:Q(r),top:Q(r),bottom:Q(`lt1`)}})),i.push($(`lastRow`,{bold:!0,borders:{left:Q(r),right:Q(r),top:Q(r),bottom:Q(r)}}));let n={left:Q(r),right:Q(r),top:Q(r),bottom:Q(r),insideH:Q(r)};i.push($(`firstCol`,{bold:!0,borders:n})),i.push($(`lastCol`,{bold:!0,borders:n}))}else{i.push($(`wholeTbl`,{textColor:`tx1`}));let e=_K(`tx1`,`alpha val="40000"`);i.push($(`band1H`,{fill:e})),i.push($(`band1V`,{fill:e}))}return AK(t,`Themed-Style-1`,i.join(``))}function bK(e,t){let n=e!==``,r=[];if(n){let n=e,i=`<a:tblBg><a:fillRef idx="1"><a:schemeClr val="${n}"/></a:fillRef></a:tblBg>`,a={left:Q(n,`tint val="50000"`),right:Q(n,`tint val="50000"`),top:Q(n,`tint val="50000"`),bottom:Q(n,`tint val="50000"`)};r.push($(`wholeTbl`,{textColor:`lt1`,borders:a}));let o=_K(`lt1`,`alpha val="20000"`);return r.push($(`band1H`,{fill:o})),r.push($(`band1V`,{fill:o})),r.push($(`firstRow`,{textColor:`lt1`,bold:!0,borders:{bottom:Q(`lt1`)}})),r.push($(`lastRow`,{bold:!0,borders:{top:Q(`lt1`)}})),r.push($(`firstCol`,{bold:!0,borders:{right:Q(`lt1`)}})),r.push($(`lastCol`,{bold:!0,borders:{left:Q(`lt1`)}})),AK(t,`Themed-Style-2`,i+r.join(``))}{let e={left:Q(`tx1`,`tint val="50000"`),right:Q(`tx1`,`tint val="50000"`),top:Q(`tx1`,`tint val="50000"`),bottom:Q(`tx1`,`tint val="50000"`),insideH:Q(`tx1`),insideV:Q(`tx1`)};r.push($(`wholeTbl`,{borders:e}));let n=_K(`tx1`,`alpha val="20000"`);return r.push($(`band1H`,{fill:n})),r.push($(`band1V`,{fill:n})),AK(t,`Themed-Style-2`,r.join(``))}}function xK(e,t){let n=e||`tx1`,r=[];r.push($(`wholeTbl`,{textColor:`tx1`,borders:{top:Q(n),bottom:Q(n)}}));let i=_K(n,`alpha val="20000"`);return r.push($(`band1H`,{fill:i})),r.push($(`band1V`,{fill:i})),r.push($(`firstRow`,{textColor:`tx1`,bold:!0,borders:{bottom:Q(n)}})),r.push($(`lastRow`,{bold:!0,borders:{top:Q(n)}})),r.push($(`firstCol`,{textColor:`tx1`,bold:!0})),r.push($(`lastCol`,{textColor:`tx1`,bold:!0})),AK(t,`Light-Style-1`,r.join(``))}function SK(e,t){let n=e||`tx1`,r=[];return r.push($(`wholeTbl`,{textColor:`tx1`,borders:{left:Q(n),right:Q(n),top:Q(n),bottom:Q(n)}})),r.push($(`band1H`,{borders:{top:Q(n),bottom:Q(n)}})),r.push($(`band1V`,{borders:{left:Q(n),right:Q(n)}})),r.push($(`band2V`,{borders:{left:Q(n),right:Q(n)}})),r.push($(`firstRow`,{textColor:`bg1`,bold:!0,fill:_K(n)})),r.push($(`lastRow`,{bold:!0,borders:{top:Q(n)}})),r.push($(`firstCol`,{bold:!0})),r.push($(`lastCol`,{bold:!0})),AK(t,`Light-Style-2`,r.join(``))}function CK(e,t){let n=e||`tx1`,r=[];r.push($(`wholeTbl`,{textColor:`tx1`,borders:{left:Q(n),right:Q(n),top:Q(n),bottom:Q(n),insideH:Q(n),insideV:Q(n)}}));let i=_K(n,`alpha val="20000"`);return r.push($(`band1H`,{fill:i})),r.push($(`band1V`,{fill:i})),r.push($(`firstRow`,{textColor:n,bold:!0,borders:{bottom:Q(n)}})),r.push($(`lastRow`,{bold:!0,borders:{top:Q(n)}})),r.push($(`firstCol`,{bold:!0})),r.push($(`lastCol`,{bold:!0})),AK(t,`Light-Style-3`,r.join(``))}function wK(e,t){let n=e||`dk1`,r=[];r.push($(`wholeTbl`,{textColor:`dk1`,fill:_K(`lt1`),borders:{left:Q(n),right:Q(n),top:Q(n),bottom:Q(n),insideH:Q(n)}}));let i=_K(n,`tint val="20000"`);return r.push($(`band1H`,{fill:i})),r.push($(`band1V`,{fill:i})),r.push($(`firstRow`,{textColor:`lt1`,bold:!0,fill:_K(n)})),r.push($(`lastRow`,{bold:!0,fill:_K(`lt1`),borders:{top:Q(n)}})),r.push($(`firstCol`,{bold:!0})),r.push($(`lastCol`,{bold:!0})),AK(t,`Medium-Style-1`,r.join(``))}function TK(e,t){let n=e||`dk1`,r=[];r.push($(`wholeTbl`,{textColor:`dk1`,fill:_K(n,`tint val="20000"`),borders:{left:Q(`lt1`),right:Q(`lt1`),top:Q(`lt1`),bottom:Q(`lt1`),insideH:Q(`lt1`),insideV:Q(`lt1`)}}));let i=_K(n,`tint val="40000"`);return r.push($(`band1H`,{fill:i})),r.push($(`band1V`,{fill:i})),r.push($(`firstRow`,{textColor:`lt1`,bold:!0,fill:_K(n),borders:{bottom:Q(`lt1`)}})),r.push($(`lastRow`,{textColor:`lt1`,bold:!0,fill:_K(n),borders:{top:Q(`lt1`)}})),r.push($(`firstCol`,{textColor:`lt1`,bold:!0,fill:_K(n)})),r.push($(`lastCol`,{textColor:`lt1`,bold:!0,fill:_K(n)})),AK(t,`Medium-Style-2`,r.join(``))}function EK(e,t){let n=e||`dk1`,r=[];r.push($(`wholeTbl`,{textColor:`dk1`,fill:_K(`lt1`),borders:{top:Q(`dk1`),bottom:Q(`dk1`)}}));let i=_K(`dk1`,`tint val="20000"`);return r.push($(`band1H`,{fill:i})),r.push($(`band1V`,{fill:i})),r.push($(`firstRow`,{textColor:`lt1`,bold:!0,fill:_K(n),borders:{bottom:Q(`dk1`)}})),r.push($(`lastRow`,{bold:!0,fill:_K(`lt1`),borders:{top:Q(`dk1`)}})),r.push($(`firstCol`,{textColor:`lt1`,bold:!0,fill:_K(n)})),r.push($(`lastCol`,{textColor:`lt1`,bold:!0,fill:_K(n)})),AK(t,`Medium-Style-3`,r.join(``))}function DK(e,t){let n=e||`dk1`,r=[];r.push($(`wholeTbl`,{textColor:`dk1`,fill:_K(n,`tint val="20000"`),borders:{left:Q(n),right:Q(n),top:Q(n),bottom:Q(n),insideH:Q(n),insideV:Q(n)}}));let i=_K(n,`tint val="40000"`);return r.push($(`band1H`,{fill:i})),r.push($(`band1V`,{fill:i})),r.push($(`firstRow`,{textColor:n,bold:!0,fill:_K(n,`tint val="20000"`)})),r.push($(`lastRow`,{bold:!0,fill:_K(`dk1`,`tint val="20000"`),borders:{top:Q(`dk1`)}})),r.push($(`firstCol`,{bold:!0})),r.push($(`lastCol`,{bold:!0})),AK(t,`Medium-Style-4`,r.join(``))}function OK(e,t){let n=e!==``,r=n?e:`dk1`,i=n?`shade`:`tint`,a=[];a.push($(`wholeTbl`,{textColor:`dk1`,fill:_K(r,`${i} val="20000"`)}));let o=_K(r,`${i} val="40000"`);return a.push($(`band1H`,{fill:o})),a.push($(`band1V`,{fill:o})),a.push($(`firstRow`,{textColor:`lt1`,bold:!0,fill:_K(`dk1`),borders:{bottom:Q(`lt1`)}})),a.push($(`lastRow`,{bold:!0,fill:_K(r),borders:{top:Q(`lt1`)}})),a.push($(`firstCol`,{bold:!0,fill:_K(r,`${i} val="60000"`),borders:{right:Q(`lt1`)}})),a.push($(`lastCol`,{bold:!0,fill:_K(r,`${i} val="60000"`),borders:{left:Q(`lt1`)}})),AK(t,`Dark-Style-1`,a.join(``))}function kK(e,t){let n=e||`dk1`,r=[],i;i=e===``?`dk1`:e===`accent1`?`accent2`:e===`accent3`?`accent4`:e===`accent5`?`accent6`:n,r.push($(`wholeTbl`,{textColor:`dk1`,fill:_K(n,`tint val="20000"`)}));let a=_K(n,`tint val="40000"`);return r.push($(`band1H`,{fill:a})),r.push($(`band1V`,{fill:a})),r.push($(`firstRow`,{textColor:`lt1`,bold:!0,fill:_K(i)})),r.push($(`lastRow`,{bold:!0,fill:_K(n,`tint val="20000"`),borders:{top:Q(`dk1`)}})),r.push($(`firstCol`,{bold:!0})),r.push($(`lastCol`,{bold:!0})),AK(t,`Dark-Style-2`,r.join(``))}function AK(e,t,n){return`<a:tblStyle ${gK} styleId="${e}" styleName="${t}">${n}</a:tblStyle>`}var jK={"Themed-Style-1":yK,"Themed-Style-2":bK,"Light-Style-1":xK,"Light-Style-2":SK,"Light-Style-3":CK,"Medium-Style-1":wK,"Medium-Style-2":TK,"Medium-Style-3":EK,"Medium-Style-4":DK,"Dark-Style-1":OK,"Dark-Style-2":kK},MK=new Map;function NK(e){let t=MK.get(e);if(t)return t;let n=hK.get(e);if(!n)return;let[r,i]=n,a=jK[r];if(!a)return;let o=xR(a(i,e));if(o.exists())return MK.set(e,o),o}hK.size;function PK(e,t){if(FK(e),t.includes(`gradient`)&&t.includes(` 0 0 / `)){let n=lV(t);if(n){e.style.backgroundImage=n.imageLayers,e.style.backgroundSize=`8px 8px`,e.style.backgroundRepeat=`repeat`,e.style.backgroundColor=n.color;return}}t.includes(`gradient`)||t.startsWith(`url(`)||t.includes(`repeating-`)?e.style.background=t:e.style.backgroundColor=t}function FK(e){e.style.background=``,e.style.backgroundColor=``,e.style.backgroundImage=``,e.style.backgroundRepeat=``,e.style.backgroundSize=``}function IK(e,t){if(!e||!t.presentation.tableStyles)return;let n=t.presentation.tableStyles;for(let t of n.children(`tblStyle`))if(t.attr(`styleId`)===e)return t;for(let t of n.children())if(t.localName===`tblStyle`&&t.attr(`styleId`)===e)return t;return NK(e)}function LK(e,t,n,r,i,a){let o=[],s=(e,t)=>{if(!a)return!1;let n=a.attr(e);if(n!==void 0)return HR(n);let r=a.child(t);return r.exists()?HR(r.attr(`val`),!0):!1},c=s(`bandRow`,`bandRow`),l=s(`bandCol`,`bandCol`),u=s(`firstRow`,`firstRow`),d=s(`lastRow`,`lastRow`),f=s(`firstCol`,`firstCol`),p=s(`lastCol`,`lastCol`),m=e.child(`wholeTbl`);if(m.exists()&&o.push(m),c){let n=u?t-1:t;if(n>=0&&n%2==1){let t=e.child(`band2H`);t.exists()&&o.push(t)}else if(n>=0&&n%2==0){let t=e.child(`band1H`);t.exists()&&o.push(t)}}if(l){if(n%2==1){let t=e.child(`band2V`);t.exists()&&o.push(t)}else{let t=e.child(`band1V`);t.exists()&&o.push(t)}}if(u&&t===0){let t=e.child(`firstRow`);t.exists()&&o.push(t)}if(d&&t===r-1){let t=e.child(`lastRow`);t.exists()&&o.push(t)}if(f&&n===0){let t=e.child(`firstCol`);t.exists()&&o.push(t)}if(p&&n===i-1){let t=e.child(`lastCol`);t.exists()&&o.push(t)}return o}function RK(e,t){for(let n=e.length-1;n>=0;n--){let r=e[n].child(`tcTxStyle`);if(!r.exists())continue;let i={},a=r.attr(`b`);a!==void 0&&(i.bold=HR(a));let o=r.attr(`i`);o!==void 0&&(i.italic=HR(o));for(let e of r.allChildren()){let n=e.localName;if(n===`schemeClr`||n===`solidFill`||n===`srgbClr`||n===`scrgbClr`||n===`prstClr`||n===`sysClr`){let{color:n,alpha:r}=NB(e,t),a=n.startsWith(`#`)?n:`#${n}`;if(r<1){let{r:e,g:t,b:n}=$z(a);i.color=`rgba(${e},${t},${n},${r.toFixed(3)})`}else i.color=a;break}}let s=r.child(`font`);if(s.exists()){let e=KV([s.child(`latin`).attr(`typeface`),s.child(`ea`).attr(`typeface`),s.child(`cs`).attr(`typeface`)],t);e.length>0&&(i.fontFamily=e)}if(!i.fontFamily){let e=r.child(`fontRef`);if(e.exists()){let n=e.attr(`idx`);if(n===`major`){let e=KV([`+mj-lt`,`+mj-ea`,`+mj-cs`],t);e.length>0&&(i.fontFamily=e)}else if(n===`minor`){let e=KV([`+mn-lt`,`+mn-ea`,`+mn-cs`],t);e.length>0&&(i.fontFamily=e)}}}return i}}function zK(e,t,n){let r=t.child(`fill`);if(!r.exists())return!1;if(r.child(`noFill`).exists())return FK(e),e.style.background=`transparent`,!0;let i=r.child(`solidFill`);if(i.exists()){FK(e);let{color:t,alpha:r}=NB(i,n),a=t.startsWith(`#`)?t:`#${t}`;if(r<1){let{r:t,g:n,b:i}=$z(a);e.style.backgroundColor=`rgba(${t},${n},${i},${r.toFixed(3)})`}else e.style.backgroundColor=a;return!0}let a=RB(r,n);if(a)return PK(e,a),!0;let o=r.child(`fillRef`);if(o.exists()){let{fillCss:t}=ZB(o,n);return PK(e,t),!0}return!1}function BK(e,t,n,r,i,a,o){let s=t.child(`tcBdr`);if(!s.exists())return;let c=[[`top`,`borderTop`],[`bottom`,`borderBottom`],[`left`,`borderLeft`],[`right`,`borderRight`]];s.child(`insideH`).exists()&&r!==void 0&&a!==void 0&&(r<a-1&&c.push([`insideH`,`borderBottom`]),r>0&&c.push([`insideH`,`borderTop`])),s.child(`insideV`).exists()&&i!==void 0&&o!==void 0&&(i<o-1&&c.push([`insideV`,`borderRight`]),i>0&&c.push([`insideV`,`borderLeft`]));for(let[t,r]of c){let i=s.child(t);if(!i.exists())continue;let a=i.child(`ln`);if(a.exists()){if(a.child(`noFill`).exists())continue;let t=VB(a,n);t.width>0&&t.color!==`transparent`&&(e.style[r]=`${Math.max(t.width,.5)}px ${t.dash} ${t.color}`);continue}let o=i.child(`lnRef`);if(o.exists()){let t=o.numAttr(`idx`)??0;if(t===0)continue;let{color:i,alpha:a}=NB(o,n),s=i.startsWith(`#`)?i:`#${i}`,c=1;n.theme.lineStyles&&n.theme.lineStyles.length>=t&&(c=Y(n.theme.lineStyles[t-1].numAttr(`w`)??12700));let l=a<1?`rgba(${$z(s).r},${$z(s).g},${$z(s).b},${a.toFixed(3)})`:s;c>0&&(e.style[r]=`${Math.max(c,.5)}px solid ${l}`)}}}function VK(e,t,n){let r=t.child(`tblBg`);if(!r.exists())return;let i=r.child(`fillRef`);if(i.exists()){let{fillCss:t}=ZB(i,n);PK(e,t);return}let a=r.child(`solidFill`);if(a.exists()){FK(e);let{color:t,alpha:r}=NB(a,n),i=t.startsWith(`#`)?t:`#${t}`;if(r<1){let{r:t,g:n,b:a}=$z(i);e.style.backgroundColor=`rgba(${t},${n},${a},${r.toFixed(3)})`}else e.style.backgroundColor=i;return}let o=RB(r,n);o&&PK(e,o)}function HK(e){let t=[];return e.flipH&&t.push(`scaleX(-1)`),e.flipV&&t.push(`scaleY(-1)`),t.join(` `)}function UK(e,t){let n=document.createElement(`div`);n.style.position=`absolute`,n.style.left=`${e.position.x}px`,n.style.top=`${e.position.y}px`,n.style.width=`${e.size.w}px`,n.style.height=`${e.size.h}px`,n.style.overflow=`hidden`;let r=[];e.rotation!==0&&r.push(`rotate(${e.rotation}deg)`),e.flipH&&r.push(`scaleX(-1)`),e.flipV&&r.push(`scaleY(-1)`),r.length>0&&(n.style.transform=r.join(` `));let i=IK(e.tableStyleId,t),a=e.properties,o=e.rows.length,s=e.columns.length,c=document.createElement(`table`);c.style.borderCollapse=`collapse`,c.style.width=`100%`,c.style.height=`100%`,c.style.tableLayout=`fixed`,i&&VK(c,i,t);let l=e.columns.reduce((e,t)=>e+t,0);if(l>0&&e.columns.length>0){let t=document.createElement(`colgroup`);for(let n of e.columns){let e=document.createElement(`col`);e.style.width=`${n/l*100}%`,t.appendChild(e)}c.appendChild(t)}let u=e.rows.reduce((e,t)=>e+t.height,0),d=document.createElement(`tbody`),f=0;for(let n=0;n<e.rows.length;n++){let r=e.rows[n],c=document.createElement(`tr`);r.height>0&&u>0&&(c.style.height=`${r.height/u*100}%`),f=0;for(let l of r.cells){if(l.hMerge||l.vMerge){l.vMerge&&!l.hMerge&&(f+=l.gridSpan);continue}let r=document.createElement(`td`);r.style.overflow=`hidden`,l.gridSpan>1&&(r.colSpan=l.gridSpan),l.rowSpan>1&&(r.rowSpan=l.rowSpan);let u=[];if(i){u=LK(i,n,f,o,s,a);for(let e of u){let i=e.child(`tcStyle`);i.exists()&&(zK(r,i,t),BK(r,i,t,n,f,o,s))}}WK(r,l,t);let d=u.length>0?RK(u,t):void 0;if(l.textBody){let n=HK(e)?document.createElement(`div`):r,i=HK(e);i&&n!==r&&(n.style.width=`100%`,n.style.height=`100%`,n.style.transform=i,n.style.transformOrigin=`center center`);let a={defaultLineHeight:`1`,trimOuterParagraphSpacing:!0,...d?{cellTextColor:d.color,cellTextBold:d.bold,cellTextItalic:d.italic,cellTextFontFamily:d.fontFamily}:{}};VH(l.textBody,void 0,t,n,a),n!==r&&r.appendChild(n)}c.appendChild(r),f+=l.gridSpan}d.appendChild(c)}return c.appendChild(d),n.appendChild(c),n}function WK(e,t,n){let r=t.properties;if(r?.attr(`horzOverflow`)===`overflow`&&(e.style.overflow=`visible`),r){if(r.child(`noFill`).exists())FK(e),e.style.background=`transparent`;else if(r.child(`solidFill`).exists()){let t=r.child(`solidFill`);FK(e);let{color:i,alpha:a}=NB(t,n),o=i.startsWith(`#`)?i:`#${i}`;if(a<1){let{r:t,g:n,b:r}=$z(o);e.style.backgroundColor=`rgba(${t},${n},${r},${a.toFixed(3)})`}else e.style.backgroundColor=o}else{let t=RB(r,n);t&&PK(e,t)}GK(e,r,`lnT`,`borderTop`,n),GK(e,r,`lnB`,`borderBottom`,n),GK(e,r,`lnL`,`borderLeft`,n),GK(e,r,`lnR`,`borderRight`,n)}let i=r?.numAttr(`marL`),a=r?.numAttr(`marR`),o=r?.numAttr(`marT`),s=r?.numAttr(`marB`),c=91440;e.style.paddingLeft=`${Y(i??c)}px`,e.style.paddingRight=`${Y(a??c)}px`,e.style.paddingTop=`${Y(o??45720)}px`,e.style.paddingBottom=`${Y(s??45720)}px`;let l=r?.attr(`anchor`),u={t:`top`,ctr:`middle`,b:`bottom`};e.style.verticalAlign=u[l||`t`]||`top`}function GK(e,t,n,r,i){let a=t.child(n);if(!a.exists())return;if(a.child(`noFill`).exists()){e.style[r]=`none`;return}let o=VB(a,i);o.width>0&&o.color!==`transparent`&&(e.style[r]=`${Math.max(o.width,.5)}px ${o.dash} ${o.color}`)}function KK(e){return e.nodeType!==`table`&&e.nodeType!==`chart`}function qK(e){let t=(e%360+360)%360;return Math.abs(t-90)<1e-4||Math.abs(t-270)<1e-4}function JK(e,t,n,r){if(e.nodeType!==`shape`)return;let i=e;if(!i.textBoxBounds)return;let a=r?n:t,o=r?t:n,s=i.textBoxBounds;i.textBoxBounds={...s,x:s.x*a,y:s.y*o,w:s.w*a,h:s.h*o}}function YK(e,t,n){let{color:r,alpha:i}=NB(e,t);if(!r)return n;let{r:a,g:o,b:s}=$z(r.startsWith(`#`)?r:`#${r}`);return`rgba(${a},${o},${s},${i.toFixed(3)})`}function XK(e,t,n,r){let i=n.numAttr(`dir`)??0,a=Y(n.numAttr(`dist`)??0),o=Y(n.numAttr(`blurRad`)??0),s=i/6e4,c=a*Math.cos(s*Math.PI/180),l=a*Math.sin(s*Math.PI/180),u=YK(n,r,`rgba(0,0,0,0.4)`),d=n.numAttr(`sx`),f=n.numAttr(`sy`);if(d!=null&&f!=null&&d>0&&f>0){let n=d/1e5,r=f/1e5,i=t.size.w*(n-1)/2,a=t.size.h*(r-1)/2,s=Math.max(0,(i+a)/2);e.style.boxShadow=`${c.toFixed(1)}px ${l.toFixed(1)}px ${o.toFixed(1)}px ${s.toFixed(1)}px ${u}`;return}e.style.filter=`drop-shadow(${c.toFixed(1)}px ${l.toFixed(1)}px ${o.toFixed(1)}px ${u})`}function ZK(e,t){let n=Y(t.numAttr(`dist`)??0),r=(t.numAttr(`stA`)??5e4)/1e5,i=(t.numAttr(`endA`)??0)/1e5,a=Math.max(0,Math.min(100,(t.numAttr(`stPos`)??0)/1e3)),o=Math.max(0,Math.min(100,(t.numAttr(`endPos`)??1e5)/1e3)),s=`linear-gradient(to bottom, rgba(255,255,255,${r.toFixed(3)}) ${a.toFixed(1)}%, rgba(255,255,255,${i.toFixed(3)}) ${o.toFixed(1)}%)`,c=`below ${n.toFixed(1)}px ${s}`;e.style.setProperty(`-webkit-box-reflect`,c),e.style.webkitBoxReflect=c}function QK(e,t,n,r){let i=r.child(`effectLst`);if(!i.exists())return;let a=i.child(`outerShdw`);a.exists()&&XK(e,t,a,n);let o=i.child(`reflection`);o.exists()&&ZK(e,o)}function $K(e,t,n){let r=document.createElement(`div`);r.style.position=`absolute`,r.style.left=`${e.position.x}px`,r.style.top=`${e.position.y}px`,r.style.width=`${e.size.w}px`,r.style.height=`${e.size.h}px`;let i=[];e.rotation!==0&&i.push(`rotate(${e.rotation}deg)`),i.length>0&&(r.style.transform=i.join(` `),r.style.transformOrigin=`center center`);let a=e.childOffset,o=e.childExtent,s=e.size.w,c=e.size.h,l=e.source.child(`grpSpPr`),u={...t};if(l.exists()){QK(r,e,t,l);for(let e of[`solidFill`,`gradFill`,`blipFill`,`pattFill`])if(l.child(e).exists()){u.groupFillNode=l;break}!u.groupFillNode&&l.child(`grpFill`).exists()&&t.groupFillNode&&(u.groupFillNode=t.groupFillNode)}let d=new Map,f=n=>(d.has(n)||d.set(n,eq(e.children[n],t,e)),d.get(n)),p=null,m=null;if(e.children.length===6&&o.w>0&&o.h>0){let t=e=>e.child(`spPr`).child(`prstGeom`).attr(`prst`),n=e.children.slice(0,3).every(e=>t(e)===`pie`),r=e.children.slice(3,6).every(e=>t(e)===`circularArrow`);if(n&&r){let e=[0,1,2].map(e=>f(e)).filter(Boolean);if(e.length===3){let t=Math.max(...e.map(e=>e.size.w)),n=Math.max(...e.map(e=>e.size.h)),r=Math.min(t,n,o.w,o.h),i=a.x+o.w/2,l=a.y+o.h/2,u=i-r/2,d=l-r/2;p={x:(u-a.x)/o.w*s,y:(d-a.y)/o.h*c,w:r/o.w*s,h:r/o.h*c};let f=e[0].size;e.every(e=>Math.abs(e.size.w-f.w)<.01&&Math.abs(e.size.h-f.h)<.01)&&(m=new Map(e.map((e,t)=>[t,{x:(e.position.x+e.size.w/2-i)/o.w*s,y:(e.position.y+e.size.h/2-l)/o.h*c}])))}}}let h=(p?[3,4,5,0,1,2]:void 0)??e.children.map((e,t)=>t);for(let t of h)try{let i=f(t);if(!i)continue;if(o.w>0&&o.h>0){let e=s/o.w,t=c/o.h,n=qK(i.rotation),r=i.position,l=i.size;if(n){let n=r.x+(l.w-l.h)/2,o=r.y+(l.h-l.w)/2,s={w:l.w*t,h:l.h*e};i.position={x:(n-a.x)*e-(s.w-s.h)/2,y:(o-a.y)*t-(s.h-s.w)/2},i.size=s}else i.position={x:(r.x-a.x)*e,y:(r.y-a.y)*t},i.size={w:l.w*e,h:l.h*t};JK(i,e,t,n)}if(e.flipH&&(i.position={...i.position,x:s-i.position.x-i.size.w},KK(i)&&(i.flipH=!i.flipH)),e.flipV&&(i.position={...i.position,y:c-i.position.y-i.size.h},KK(i)&&(i.flipV=!i.flipV)),p&&t<3&&i.nodeType===`shape`){let e=i.size.w,n=i.size.h,r=m?.get(t)??{x:0,y:0};i.position={x:p.x+r.x,y:p.y+r.y},i.size={w:p.w,h:p.h};let a=i;if(e>0&&n>0&&a.textBoxBounds){let t=a.textBoxBounds;a.textBoxBounds={x:t.x/e*p.w,y:t.y/n*p.h,w:t.w/e*p.w,h:t.h/n*p.h}}}let l=n(i,u);r.appendChild(l)}catch{let e=document.createElement(`div`);e.style.position=`absolute`,e.style.border=`1px dashed #ff6b6b`,e.style.backgroundColor=`rgba(255,107,107,0.1)`,e.style.fontSize=`10px`,e.style.color=`#cc0000`,e.style.display=`flex`,e.style.alignItems=`center`,e.style.justifyContent=`center`,e.style.padding=`2px`,e.textContent=`Group child error`,r.appendChild(e)}return r}function eq(e,t,n){let r=Dz(e,{rels:t.slide.rels,partPath:t.partPath??t.slide.slidePath,diagramDrawings:t.presentation.diagramDrawings,skipPlaceholders:t.skipPlaceholderChildren});return r&&Xz(r,t.layout,t.master,{parentGroup:n}),r}var tq=1e4;function nq(e){let t=e.child(`ptCount`).numAttr(`val`),n=-1;for(let t of e.children(`pt`)){let e=t.numAttr(`idx`);e!==void 0&&Number.isInteger(e)&&e>=0&&e<tq&&(n=Math.max(n,e))}let r=n+1;if(t===void 0||!Number.isFinite(t)||t<0)return r;let i=Math.floor(t);return i>tq?r:Math.min(Math.max(i,r),tq)}function rq(e,t){return e!==void 0&&Number.isInteger(e)&&e>=0&&e<t&&e<tq}function iq(e){let t=e.child(`strRef`).exists()?e.child(`strRef`).child(`strCache`):e.child(`strCache`);if(!t.exists()){let t=e.child(`numRef`).exists()?e.child(`numRef`).child(`numCache`):e.child(`numCache`);return t.exists()?fq(t):[]}let n=nq(t),r=Array(n).fill(``);for(let e of t.children(`pt`)){let t=e.numAttr(`idx`);rq(t,n)&&(r[t]=e.child(`v`).text())}return r}function aq(e){let t=e.child(`numRef`).exists()?e.child(`numRef`).child(`numCache`):e.child(`numCache`);if(!t.exists())return;let n=t.child(`formatCode`);return n.exists()&&n.text()||void 0}function oq(e){let t=[],n=``,r=!1;for(let i=0;i<e.length;i++){let a=e[i];if(a===`"`){r=!r,n+=a;continue}if(a===`;`&&!r){t.push(n),n=``;continue}n+=a}return t.push(n),t}function sq(e){let t=e.replace(/\[[^\]]+\]/g,``),n=``;for(let e=0;e<t.length;e++){let r=t[e];if(r===`"`){for(e++;e<t.length&&t[e]!==`"`;)e++;continue}if(r===`\\`){e+1<t.length&&(n+=t[++e]);continue}if(r===`_`||r===`*`){e++;continue}n+=r}return n.trim()}function cq(e,t){let n=oq(t),r=e<0&&n.length>1,i=sq(r?n[1]:n[0]);if(!/[#0]/.test(i)||!i.includes(`,`)&&n.length===1)return;let a=i.match(/\.(0+|#+)/),o=a?a[1].length:0,s=i.includes(`,`),c=(r?Math.abs(e):e).toLocaleString(`en-US`,{useGrouping:s,minimumFractionDigits:a!=null&&a[1].includes(`0`)?o:0,maximumFractionDigits:o});return r?i.includes(`(`)&&i.includes(`)`)?`(${c})`:i.includes(`-`)?`-${c}`:c:c}function lq(e,t){if(!t||t===`General`)return Number.isInteger(e)?String(e):parseFloat(e.toFixed(2)).toString();if(t.includes(`%`)){let n=t.match(/0\.(0+)%/),r=n?n[1].length:0;return`${(e*100).toFixed(r)}%`}let n=cq(e,t);if(n!==void 0)return n;let r=t.match(/\.(0+|#+)/);if(r){let t=r[1].length;return parseFloat(e.toFixed(t)).toString()}return/^[#0,]+$/.test(t.replace(/[[\]"\\]/g,``))?Math.round(e).toString():Number.isInteger(e)?String(e):parseFloat(e.toFixed(2)).toString()}function uq(e){return dq(e).values}function dq(e){let t=e.child(`numRef`).exists()?e.child(`numRef`).child(`numCache`):e.child(`numCache`);if(!t.exists())return{values:[],blankIndices:new Set};let n=nq(t),r=Array(n).fill(0),i=new Set;for(let e=0;e<n;e++)i.add(e);for(let e of t.children(`pt`)){let t=e.numAttr(`idx`);if(rq(t,n)){let n=e.child(`v`).text().trim(),a=parseFloat(n);n!==``&&!isNaN(a)&&(r[t]=a,i.delete(t))}}return{values:r,blankIndices:i}}function fq(e){let t=nq(e),n=Array(t).fill(``),r=e.child(`formatCode`).text(),i=r&&/[yYmMdD]/.test(r)&&!/[#0]/.test(r);for(let r of e.children(`pt`)){let e=r.numAttr(`idx`);if(rq(e,t)){let t=r.child(`v`).text();n[e]=i&&t?pq(parseFloat(t)):t}}return n}function pq(e){if(!Number.isFinite(e)||e<1)return String(e);let t=e>59?e-1:e,n=new Date(Date.UTC(1899,11,31)+t*864e5);return`${n.getUTCFullYear()}/${n.getUTCMonth()+1}/${n.getUTCDate()}`}function mq(e){return e.exists()?hq(e.attr(`val`),!0):!1}function hq(e,t){return HR(e,t)}TE([$A,jN,tF,ak,Sj,qM,OM,YF,mI,XF,SL,HM,XI,qI,$D,KL]);function gq(e,t){try{let{color:n}=NB(e,t);return n.startsWith(`#`)?n:`#${n}`}catch{return}}function _q(e,t){let n=e.numAttr(`pos`);if(n!==void 0)for(let r of e.allChildren()){let i=r.localName;if(i===`srgbClr`||i===`schemeClr`||i===`sysClr`||i===`prstClr`)try{let r=NB(e,t);return{color:r.color.startsWith(`#`)?r.color:`#${r.color}`,alpha:r.alpha,pos:n/1e5}}catch{if(i===`sysClr`){let e=r.attr(`lastClr`);if(e){let t=r.child(`alpha`),i=t.exists()?(t.numAttr(`val`)??1e5)/1e5:1;return{color:`#${e}`,alpha:i,pos:n/1e5}}}return}}}function vq(e,t){let n=e.child(`spPr`);if(!n.exists())return;let r=n.child(`solidFill`);if(r.exists()){let e=gq(r,t);if(e)return e}let i=n.child(`gradFill`);if(i.exists()){let e=wq(i,t);if(e)return e}let a=n.child(`ln`);if(a.exists()){let e=a.child(`solidFill`);if(e.exists()){let n=gq(e,t);if(n)return n}}}function yq(e){let t=e.child(`spPr`).child(`ln`).numAttr(`w`);if(!(t===void 0||t<=0))return Math.max(1,Number((t/12700).toFixed(3)))}function bq(e){return Number(kR(e).toFixed(3))}function xq(e){return e.child(`spPr`).child(`ln`).child(`noFill`).exists()}function Sq(e){return e===`dotted`?`dotted`:e===`dashed`?`dashed`:`solid`}function Cq(e,t){if(!e.exists()||e.child(`noFill`).exists())return;let n=VB(e,t);if(!(n.width<=0||n.color===`transparent`))return{color:n.color,width:Math.max(n.width,.5),type:Sq(n.dash)}}function wq(e,t){let n=e.child(`gsLst`);if(!n.exists())return;let r=[];for(let e of n.children(`gs`)){let n=_q(e,t);if(n){let e=n.color.replace(`#`,``),t=parseInt(e.substring(0,2),16),i=parseInt(e.substring(2,4),16),a=parseInt(e.substring(4,6),16);r.push({offset:n.pos,color:`rgba(${t},${i},${a},${n.alpha})`})}}if(r.length<2)return;r.sort((e,t)=>e.offset-t.offset);let i=e.child(`lin`),a=(i.exists()?i.numAttr(`ang`)??54e5:54e5)/6e4*Math.PI/180;return new zf(.5-.5*Math.cos(a),.5-.5*Math.sin(a),.5+.5*Math.cos(a),.5+.5*Math.sin(a),r)}function Tq(e,t){let n=e.children(`dPt`);if(n.length===0)return;let r=[];for(let e of n){let n=e.child(`idx`).numAttr(`val`);if(n===void 0)continue;let i=e.child(`spPr`);if(!i.exists())continue;let a={},o=i.child(`solidFill`);if(o.exists()){let e=gq(o,t);e&&(a.color=e)}let s=Cq(i.child(`ln`),t);if(s&&(a.borderColor=s.color,a.borderWidth=s.width,a.borderType=s.type),Object.keys(a).length>0){for(;r.length<=n;)r.push(void 0);r[n]=a}}return r.length>0?r:void 0}var Eq=Symbol(`pptxExplicitFontSize`),Dq=`#000000`,Oq=10,kq=`#898989`,Aq={color:kq,width:1,type:`solid`},jq={color:`#868686`,width:1,type:`solid`},Mq=[`accent1`,`accent2`,`accent3`,`accent4`,`accent5`,`accent6`];function Nq(e){return e[Eq]=!0,e}function Pq(e){return!!(e&&typeof e==`object`&&e[Eq])}var Fq=[`barChart`,`bar3DChart`,`lineChart`,`line3DChart`,`areaChart`,`area3DChart`,`pieChart`,`pie3DChart`,`doughnutChart`,`radarChart`,`scatterChart`,`bubbleChart`,`stockChart`,`surface3DChart`];function Iq(e){let t=e.child(`tx`);if(!t.exists())return;let n=t.child(`rich`);if(n.exists()){let e=[];for(let t of n.children(`p`)){let n=[];for(let e of t.allChildren()){if(e.localName===`br`){n.push(`
72
+ `);continue}if(e.localName!==`r`&&e.localName!==`fld`)continue;let t=e.child(`t`).text();t&&n.push(t)}let r=n.join(``);r&&e.push(r)}if(e.length>0)return e.join(`
73
+ `)}let r=t.child(`strRef`);if(r.exists()){let e=r.child(`strCache`).children(`pt`);if(e.length>0)return e[0].child(`v`).text()}}function Lq(e){return e.replace(/\\/g,`\\\\`).replace(/\{/g,`\\{`).replace(/\}/g,`\\}`).replace(/\|/g,`\\|`)}function Rq(e){if(!e)return;let t={...e.color?{color:e.color}:{},...e.fontSize===void 0?{}:{fontSize:e.fontSize},...e.fontFamily?{fontFamily:e.fontFamily}:{},...e.textShadowColor?{textShadowColor:e.textShadowColor}:{},...e.textShadowBlur===void 0?{}:{textShadowBlur:e.textShadowBlur},...e.textShadowOffsetX===void 0?{}:{textShadowOffsetX:e.textShadowOffsetX},...e.textShadowOffsetY===void 0?{}:{textShadowOffsetY:e.textShadowOffsetY}};return e.bold!==void 0&&(t.fontWeight=e.bold?`bold`:`normal`),Object.keys(t).length>0?t:void 0}function zq(e,t){let n=e.child(`txPr`);if(n.exists())for(let e of n.children(`p`)){let n=e.child(`pPr`);if(!n.exists())continue;let r=n.child(`defRPr`);if(!r.exists())continue;let i=r.child(`solidFill`);if(i.exists())return gq(i,t)}}function Bq(e){let t=e.replace(/^#/,``),n=t.length===3?t[0]+t[0]+t[1]+t[1]+t[2]+t[2]:t,r=parseInt(n,16);return{r:r>>16&255,g:r>>8&255,b:r&255}}function Vq(e,t){let n=e.startsWith(`#`)?e:`#${e}`;if(t>=1)return n;let{r,g:i,b:a}=Bq(n);return`rgba(${r},${i},${a},${t.toFixed(3)})`}function Hq(e,t){let n=e.child(`effectLst`).child(`outerShdw`);if(n.exists())try{let{color:e,alpha:r}=NB(n,t);if(!e||r<=0)return;let i=Y(n.numAttr(`dist`)??0),a=Y(n.numAttr(`blurRad`)??0),o=(n.numAttr(`dir`)??0)/6e4,s=i*Math.cos(o*Math.PI/180),c=i*Math.sin(o*Math.PI/180);return{textShadowColor:Vq(e,r),textShadowBlur:a,textShadowOffsetX:s,textShadowOffsetY:c}}catch{return}}function Uq(e,t){if(!e.exists())return;let n={},r=e.child(`solidFill`);if(r.exists()){let e=gq(r,t);e&&(n.color=e)}let i=e.numAttr(`sz`);i!==void 0&&i>0&&(n.fontSize=Math.round(i/100),n[Eq]=!0);let a=e.attr(`b`);a!==void 0&&(n.bold=HR(a));let o=KV([e.child(`latin`).attr(`typeface`),e.child(`ea`).attr(`typeface`),e.child(`cs`).attr(`typeface`)],t,[e.attr(`lang`),e.attr(`altLang`)]);o.length>0&&(n.fontFamily=eH(o));let s=Hq(e,t);return s&&Object.assign(n,s),n.color||n.fontSize!==void 0||n.bold!==void 0||n.fontFamily!==void 0||n.textShadowColor!==void 0?n:void 0}function Wq(e,t){for(let n of e.children(`p`)){let e=n.child(`pPr`);if(!e.exists())continue;let r=Uq(e.child(`defRPr`),t);if(r)return r}}function Gq(e,t){let n=e.child(`txPr`);if(n.exists())return Wq(n,t)}function Kq(e,t){return Gq(e,t)??Wq(e.child(`tx`).child(`rich`),t)}function qq(e,t){let n=e.child(`tx`).child(`rich`);if(!n.exists())return;let r=[],i={},a=0;for(let e of n.children(`p`)){let n=[];for(let r of e.allChildren()){if(r.localName===`br`){n.push(`
74
+ `);continue}if(r.localName!==`r`&&r.localName!==`fld`)continue;let e=r.child(`t`).text();if(!e)continue;let o=Rq(Uq(r.child(`rPr`),t));if(!o){n.push(Lq(e));continue}let s=`r${a++}`;i[s]=o,n.push(`{${s}|${Lq(e)}}`)}let o=n.join(``);o&&r.push(o)}if(Object.keys(i).length!==0)return{text:r.join(`
75
+ `),rich:i}}function Jq(e){let t=KV([`+mn-lt`,`+mn-ea`,`+mj-lt`,`+mj-ea`],e);return t.length>0?eH(t):void 0}var Yq={deleted:!1,tickLblPos:`nextTo`,hasMajorGridlines:!1,orientation:`minMax`};function Xq(e,t){return e.theme.colorScheme.get(t)?.replace(`#`,``).toUpperCase()}function Zq(e){if(Xq(e,`accent1`)===`4F81BD`&&Xq(e,`accent2`)===`C0504D`)return`#000000`}function Qq(e,t){let n=e.child(`txPr`);if(n.exists())for(let e of n.children(`p`)){let n=e.child(`pPr`);if(!n.exists())continue;let r=n.child(`defRPr`);if(!r.exists())continue;let i=r.child(`solidFill`);if(i.exists())return gq(i,t)}}function $q(e,t){let n=e.child(`spPr`).child(`ln`);if(!n.exists())return;let r=n.child(`solidFill`);if(r.exists())return gq(r,t)}function eJ(e,t){return Cq(e.child(`majorGridlines`).child(`spPr`).child(`ln`),t)}function tJ(e){let t=(e.child(`tx`).child(`rich`).child(`bodyPr`).exists()?e.child(`tx`).child(`rich`).child(`bodyPr`):e.child(`txPr`).child(`bodyPr`)).numAttr(`rot`);if(t===void 0)return;let n=t/6e4;return Number(n.toFixed(3))}function nJ(e,t){let n=e.child(`title`);if(!n.exists())return{};let r=Iq(n);return r?{title:r,titleStyle:Kq(n,t),titleRotation:tJ(n)}:{}}function rJ(e,t){if(!e.exists())return{...Yq};let n=mq(e.child(`delete`)),r=e.child(`tickLblPos`).attr(`val`)||`nextTo`,i=e.child(`crosses`).attr(`val`),a=e.child(`numFmt`),o=a.exists()&&a.attr(`formatCode`)||void 0,s=e.child(`scaling`),c=s.child(`min`),l=s.child(`max`),u=c.exists()?parseFloat(c.attr(`val`)||``):void 0,d=l.exists()?parseFloat(l.attr(`val`)||``):void 0,f=e.child(`majorGridlines`).exists(),p=e.child(`majorTickMark`).attr(`val`),m=s.child(`orientation`).attr(`val`)||`minMax`,h=Gq(e,t),g=h?.color??Qq(e,t),_=h?.fontSize,v=Zq(t),y=$q(e,t)??v,b=f?eJ(e,t)??(v?{...Aq,color:v}:void 0):void 0,x=nJ(e,t);return{deleted:n,tickLblPos:r,crosses:i,numFmt:o&&o!==`General`?o:void 0,min:u!==void 0&&!isNaN(u)?u:void 0,max:d!==void 0&&!isNaN(d)?d:void 0,hasMajorGridlines:f,majorTickMark:p,orientation:m,...x,labelColor:g,labelFontSize:_,lineColor:y,majorGridlineStyle:b}}function iJ(e){return e!=null&&e.exists()?e.children(`axId`).map(e=>e.attr(`val`)).filter(e=>e!==void 0&&e!==``):[]}function aJ(e,t,n){var r;if(n){for(let r of t){let t=e.children(r).find(e=>e.child(`axId`).attr(`val`)===n);if(t)return t}return new bR(null)}for(let n of t){let t=e.children(n);if((r=t[0])!=null&&r.exists())return t[0]}return new bR(null)}function oJ(e,t,n){let r=iJ(n),i=r[0],a=r[1],o=aJ(e,[`valAx`],a),s=aJ(e,[`catAx`,`dateAx`],i);return{valueAxis:rJ(o,t),categoryAxis:rJ(s,t)}}function sJ(e,t){let n=e.children(`valAx`),r={...Yq},i={...Yq};for(let e of n){let n=e.child(`axPos`).attr(`val`)??``,a=rJ(e,t);n===`b`||n===`t`?r=a:(n===`l`||n===`r`)&&(i=a)}return n.length===1&&(i=rJ(n[0],t)),{xAxis:r,yAxis:i}}function cJ(e,t,n){var r,i;if(t.deleted){e.axisLabel={...e.axisLabel||{},show:!1},e.axisLine={show:!1},e.axisTick={show:!1},n===`value`&&(e.splitLine={show:!1});return}if(t.orientation===`maxMin`&&(e.inverse=!0),t.crosses===`autoZero`&&(e.axisLine={...e.axisLine||{},onZero:!0}),t.title){e.name=t.title,e.nameLocation=`middle`,e.nameGap=n===`value`?42:28,t.titleRotation!==void 0&&(e.nameRotate=t.titleRotation);let a={};(r=t.titleStyle)!=null&&r.color&&(a.color=t.titleStyle.color),t.titleStyle?.fontSize!==void 0&&(a.fontSize=t.titleStyle.fontSize),(i=t.titleStyle)!=null&&i.fontFamily&&(a.fontFamily=t.titleStyle.fontFamily),t.titleStyle?.bold!==void 0&&(a.fontWeight=t.titleStyle.bold?`bold`:`normal`),Object.keys(a).length>0&&(e.nameTextStyle=a)}if(t.tickLblPos===`none`&&(e.axisLabel={...e.axisLabel||{},show:!1}),t.majorTickMark===`none`)e.axisTick={...e.axisTick||{},show:!1};else if(!t.deleted){let n=e.axisTick||{},r=n.lineStyle||{};r.color===void 0&&(e.axisTick={...n,lineStyle:{...r,color:t.lineColor??kq}})}if(n===`value`&&(t.min!==void 0&&(e.min=t.min),t.max!==void 0&&(e.max=t.max)),n===`value`&&!t.deleted&&t.tickLblPos!==`none`){let n=e.axisLabel||{};if(!n.formatter){let r=t.numFmt;e.axisLabel={...n,formatter:e=>lq(e,r)}}}if(!t.deleted&&t.tickLblPos!==`none`){let t=e.axisLabel||{};t.fontSize===void 0&&(e.axisLabel={...t,fontSize:Oq})}if(n===`value`){if(!t.hasMajorGridlines)e.splitLine={show:!1};else if(t.majorGridlineStyle){let n=e.splitLine||{},r=n.lineStyle||{};e.splitLine={...n,show:!0,lineStyle:{...r,...t.majorGridlineStyle}}}else{let t=e.splitLine||{},n=t.lineStyle||{};e.splitLine={...t,show:!0,lineStyle:{...Aq,...n}}}}if(t.labelColor||!t.deleted){let n=e.axisLabel||{},r=t.labelColor??(n.color===void 0?Dq:void 0);r&&(e.axisLabel={...n,color:r})}if(t.labelFontSize!==void 0&&(e.axisLabel={...e.axisLabel||{},fontSize:t.labelFontSize}),t.lineColor||!t.deleted){let n=e.axisLine||{},r=n.lineStyle||{},i=t.lineColor??(r.color===void 0?kq:void 0);i&&(e.axisLine={...n,show:n.show??!0,lineStyle:{...r,color:i}})}}function lJ(e,t){return mq(e.child(t))}function uJ(e){let t=e.child(`layout`).child(`manualLayout`);if(!t.exists())return;let n={},r=t.child(`x`).numAttr(`val`),i=t.child(`y`).numAttr(`val`),a=t.child(`w`).numAttr(`val`),o=t.child(`h`).numAttr(`val`);return r!==void 0&&(n.x=r),i!==void 0&&(n.y=i),a!==void 0&&(n.width=a),o!==void 0&&(n.height=o),Object.keys(n).length>0?n:void 0}function dJ(e,t){let n=e.child(`dLbls`);if(!n.exists())return;let r=lJ(n,`showVal`),i=lJ(n,`showCatName`),a=lJ(n,`showSerName`),o=lJ(n,`showPercent`),s=lJ(n,`showLeaderLines`),c=n.child(`dLblPos`),l=c.exists()&&c.attr(`val`)||void 0,u=uJ(n),d=Gq(n,t),f=d?.color??zq(n,t),p=d?.fontSize,m=d?.bold,h=pJ(n,t);if(!(!r&&!i&&!a&&!o))return{showVal:r,showCatName:i,showSerName:a,showPercent:o,position:l,showLeaderLines:s,manualLayout:u,color:f,fontSize:p,bold:m,...h}}function fJ(e,t){let n=e.child(t);if(n.exists())return mq(n)}function pJ(e,t){let n={},r=e.child(`spPr`);if(r.exists()){let e=r.child(`solidFill`);if(e.exists()){let r=gq(e,t);r&&(n.backgroundColor=r)}let i=r.child(`ln`);if(i.exists()&&!i.child(`noFill`).exists()){let e=i.child(`solidFill`);if(e.exists()){let r=gq(e,t);r&&(n.borderColor=r)}let r=i.numAttr(`w`);r!==void 0&&r>0?n.borderWidth=Math.max(1,Y(r)):n.borderColor&&(n.borderWidth=1)}}let i=e.child(`txPr`).child(`bodyPr`);if(i.exists()){let e=Y(i.numAttr(`tIns`)??0),t=Y(i.numAttr(`rIns`)??0),r=Y(i.numAttr(`bIns`)??0),a=Y(i.numAttr(`lIns`)??0);(e||t||r||a)&&(n.padding=[e,t,r,a])}return n}function mJ(e,t){let n=new Map;if(!e.exists())return n;for(let r of e.children(`dLbl`)){let e=r.child(`idx`).numAttr(`val`);if(e===void 0)continue;let i=Gq(r,t),a=r.child(`dLblPos`),o={},s=fJ(r,`delete`),c=fJ(r,`showVal`),l=fJ(r,`showCatName`),u=fJ(r,`showSerName`),d=fJ(r,`showPercent`),f=fJ(r,`showLeaderLines`),p=uJ(r);if(c!==void 0&&(o.showVal=c),l!==void 0&&(o.showCatName=l),u!==void 0&&(o.showSerName=u),d!==void 0&&(o.showPercent=d),s===!0&&(o.deleted=!0,o.showVal=!1,o.showCatName=!1,o.showSerName=!1,o.showPercent=!1),f!==void 0&&(o.showLeaderLines=f),p&&(o.manualLayout=p),a.exists()&&(o.position=a.attr(`val`)||void 0),i!=null&&i.color)o.color=i.color;else{let e=zq(r,t);e&&(o.color=e)}i?.fontSize!==void 0&&(o.fontSize=i.fontSize),i?.bold!==void 0&&(o.bold=i.bold),Object.assign(o,pJ(r,t)),Object.keys(o).length>0&&n.set(e,o)}return n}function hJ(e){let t=e.child(`strRef`);if(t.exists()){let e=t.child(`strCache`).children(`pt`);if(e.length>0)return e[0].child(`v`).text()}let n=e.child(`v`);return n.exists()?n.text():``}function gJ(e,t){let n=Array(t).fill(0),r=!1,i=e.child(`explosion`).numAttr(`val`)??0;i>0&&(n.fill(i),r=!0);let a=e.children(`dPt`);for(let e of a){let t=e.child(`idx`).numAttr(`val`);if(t===void 0)continue;let i=e.child(`explosion`).numAttr(`val`);i!==void 0&&i>0&&(n[t]=i,r=!0)}return r?n:void 0}function _J(e,t){let n=[];for(let r of e.children(`ser`)){let e=hJ(r.child(`tx`)),i=r.child(`order`).numAttr(`val`)??n.length,a=iq(r.child(`cat`)),o=r.child(`val`),s=dq(o),c=s.values,l=s.blankIndices,u=aq(o),d=r.child(`xVal`),f=r.child(`yVal`),p;if(f.exists()){let e=dq(f);e.values.length>0&&(c.length=0,c.push(...e.values),l=e.blankIndices)}if(d.exists()&&(p=uq(d),a.length===0)){let e=iq(d);e.length>0&&a.push(...e)}let m=r.child(`bubbleSize`),h=m.exists()?uq(m):void 0,g=vq(r,t),_=yq(r),v=xq(r),y=Tq(r,t),b=y?.map(e=>e?.color),x=r.child(`invertIfNegative`),S=x.exists()?mq(x):void 0,C=r.child(`marker`),w=C.child(`symbol`).attr(`val`),T=C.child(`size`).numAttr(`val`),E=T===void 0?void 0:bq(T),D=r.child(`smooth`),O=D.exists()?mq(D):void 0;n.push({name:e,order:i,categories:a,values:c,xValues:p,bubbleSizes:h,colorHex:g,dataPointColors:b,dataPointStyles:y,formatCode:u,blankIndices:l,invertIfNegative:S,markerSymbol:w,markerSize:E,smooth:O,lineWidth:_,lineNoFill:v})}return n.sort((e,t)=>e.order-t.order),n}function vJ(e){let t=e.child(`dTable`);return t.exists()?{showKeys:hq(t.child(`showKeys`).attr(`val`),!0)}:void 0}function yJ(e,t){var n;let r=document.createElement(`table`);r.style.width=`100%`,r.style.borderCollapse=`collapse`,r.style.fontSize=`10px`,r.style.marginTop=`8px`;let{seriesArr:i,showKeys:a,formatCode:o}=e,s=i.find(e=>e.categories.length>0)?.categories||[],c=o,l=document.createElement(`thead`),u=document.createElement(`tr`),d=document.createElement(`th`);d.style.border=`1px solid #ccc`,d.style.padding=`2px 6px`,d.style.textAlign=`left`,d.style.fontWeight=`bold`,u.appendChild(d);for(let e=0;e<s.length;e++){let t=document.createElement(`th`);t.style.border=`1px solid #ccc`,t.style.padding=`2px 6px`,t.style.textAlign=`right`,t.style.fontWeight=`bold`,t.textContent=s[e]??``,u.appendChild(t)}l.appendChild(u),r.appendChild(l);let f=document.createElement(`tbody`);for(let e=0;e<i.length;e++){let r=i[e],o=document.createElement(`tr`),l=document.createElement(`td`);if(l.style.border=`1px solid #ccc`,l.style.padding=`2px 6px`,l.style.textAlign=`left`,l.style.fontWeight=`bold`,a&&t&&t[e]){let n=document.createElement(`span`);n.style.display=`inline-block`,n.style.width=`8px`,n.style.height=`8px`,n.style.marginRight=`4px`,n.style.verticalAlign=`middle`,n.style.backgroundColor=t[e],l.appendChild(n)}l.appendChild(document.createTextNode(r.name||``)),o.appendChild(l);for(let e=0;e<s.length;e++){let t=document.createElement(`td`);t.style.border=`1px solid #ccc`,t.style.padding=`2px 6px`,t.style.textAlign=`right`;let i=r.values[e];t.textContent=i!==void 0&&!((n=r.blankIndices)!=null&&n.has(e))?lq(i,c??r.formatCode):``,o.appendChild(t)}f.appendChild(o)}return r.appendChild(f),r}function bJ(e){let t=e.child(`clrMapOvr`);if(!t.exists())return;let n=t.element,r=t.child(`overrideClrMapping`);if(r.exists()&&r.element)n=r.element;else if(t.child(`masterClrMapping`).exists())return;if(!n)return;let i=n.attributes,a=new Map;for(let e=0;e<i.length;e++){let t=i[e];a.set(t.localName,t.value)}return a.size>0?a:void 0}function xJ(e,t){let n=bJ(e);return n?{...t,layout:{...t.layout,colorMapOverride:n},colorCache:new Map}:t}function SJ(e){let t=e.child(`style`).numAttr(`val`);if(t!==void 0)return t;let n=e.child(`AlternateContent`);if(n.exists())for(let e of n.allChildren()){let t=e.child(`style`).numAttr(`val`);if(t!==void 0)return t}}var CJ=new Set([`srgbClr`,`schemeClr`,`sysClr`,`prstClr`,`hslClr`,`scrgbClr`]);function wJ(e,t){if(!e.element||!CJ.has(e.localName))return;let n=e.element.ownerDocument.createElementNS(e.element.namespaceURI,`solidFill`);return n.appendChild(e.element.cloneNode(!0)),gq(new bR(n),t)}function TJ(e,t){if(!(e!=null&&e.exists()))return[];let n=[];for(let r of e.allChildren()){let e=wJ(r,t);e&&n.push(e)}return n}function EJ(e){return Mq.map(t=>e.theme.colorScheme.get(t)).filter(e=>!!e).map(e=>e.startsWith(`#`)?e:`#${e}`)}function DJ(e,t){let n=e.replace(`#`,``);if(!/^[0-9a-fA-F]{6}$/.test(n))return e;let r=e=>Math.max(0,Math.min(255,Math.round(parseInt(n.slice(e,e+2),16)*t)));return`#${[r(0),r(2),r(4)].map(e=>e.toString(16).padStart(2,`0`)).join(``)}`}function OJ(e,t={}){let n=EJ(e);return t.darken===!1?n:n.map(e=>DJ(e,.88))}function kJ(e,t,n){if(n){let e=TJ(t.presentation.chartColorStyles?.get(n),t);if(e.length>0)return e}let r=EJ(t);return r.length===0?void 0:(SJ(e),r)}function AJ(e){let t=Math.round(e*1e4)/100;return`${Number.isInteger(t)?t.toFixed(0):t}%`.replace(/\.0%$/,`%`)}function jJ(e,t){let n=e.child(`legend`);if(!n.exists())return;let r=n.child(`legendPos`),i=r.exists()&&r.attr(`val`)||`r`,a=[`b`,`t`,`l`,`r`,`tr`].includes(i)?i:`r`,o=mq(n.child(`overlay`)),s={confine:!0},c;switch(a){case`b`:c={...s,bottom:`5%`,orient:`horizontal`};break;case`t`:c={...s,top:`14%`,orient:`horizontal`};break;case`l`:c={...s,left:`2%`,top:`middle`,orient:`vertical`};break;case`r`:c={...s,right:`2%`,top:`middle`,orient:`vertical`};break;case`tr`:c={...s,top:`14%`,right:`2%`,orient:`vertical`};break;default:c={...s,right:`2%`,top:`middle`,orient:`vertical`}}return{option:c,position:a,overlay:o,textStyle:(()=>{let e=Gq(n,t);if(!e)return;let r={...e.color?{color:e.color}:{},...e.fontSize===void 0?{}:{fontSize:e.fontSize},...e.bold===!0?{fontWeight:`bold`}:{},...e.fontFamily?{fontFamily:e.fontFamily}:{},...e.textShadowColor?{textShadowColor:e.textShadowColor}:{},...e.textShadowBlur===void 0?{}:{textShadowBlur:e.textShadowBlur},...e.textShadowOffsetX===void 0?{}:{textShadowOffsetX:e.textShadowOffsetX},...e.textShadowOffsetY===void 0?{}:{textShadowOffsetY:e.textShadowOffsetY}};return Pq(e)&&(r[Eq]=!0),r})(),manualLayout:MJ(n)}}function MJ(e){let t=e.child(`layout`).child(`manualLayout`);if(!t.exists())return{};let n={},r=t.child(`x`).numAttr(`val`),i=t.child(`y`).numAttr(`val`),a=t.child(`w`).numAttr(`val`),o=t.child(`h`).numAttr(`val`);return r!==void 0&&(n.left=AJ(r)),i!==void 0&&(n.top=AJ(i)),a!==void 0&&(n.width=AJ(a)),o!==void 0&&(n.height=AJ(o)),n}function NJ(e){return e?.position===`t`||e?.position===`tr`}function PJ(e,t){let n=NJ(t),r=t?.overlay??!1;return e?n&&!r?52:68:n&&!r?32:20}function FJ(e,t){if(NJ(t))return e?26:6}function IJ(e){if(!e||e.overlay||!e.option||typeof e.option!=`object`)return`none`;let t=e.option;return t.bottom===void 0?t.top!==void 0&&t.left===void 0&&t.right===void 0?`top`:t.left===void 0?t.right===void 0?`none`:`right`:`left`:`bottom`}function LJ(e){if(e){let t=e.option;if(t&&t.bottom!==void 0)return 35}return 20}function RJ(e,t,n,r,i){if(!e)return{show:!1};let a=t?.manualLayout??{},o=a.top===void 0?n===void 0?void 0:n:a.top,s=i.fontSize??10,c=r.some(e=>typeof e==`object`&&e.icon),l=c&&r.every(e=>typeof e==`object`&&typeof e.icon==`string`&&e.icon===r[0].icon)?r[0].icon:void 0,u=l!==void 0&&!l.startsWith(`path://`),d=u?r.map(e=>typeof e==`string`?e:e.name):r,f=r.some(e=>typeof e==`object`&&typeof e.icon==`string`&&e.icon.startsWith(`path://`));return{...e,...a,...o===void 0?{}:{top:o},...u?{icon:l}:c?{}:{icon:`rect`},itemWidth:f?Math.max(24,Math.round(s*2.2)):s,itemHeight:f?Math.max(8,Math.round(s*.9)):s,data:d,textStyle:i}}function zJ(e){return e?Array.isArray(e)?e[0]??null:e:null}function BJ(e,t){return typeof e==`string`?e:t}function VJ(e,t){let n=e?.lineStyle??{},r=e?.itemStyle??{};return(typeof n.color==`string`?n.color:void 0)??(typeof r.color==`string`?r.color:void 0)??t}function HJ(){return`path://M2 4.5 L22 4.5`}function UJ(e){let t=e;return(Array.isArray(t.radar)?t.radar:t.radar?[t.radar]:[]).filter(e=>typeof e==`object`&&!!e).map(e=>{let t=e.name??={};return t.textStyle??={}})}function WJ(e){let t=e;return(Array.isArray(t.radar)?t.radar:t.radar?[t.radar]:[]).filter(e=>typeof e==`object`&&!!e).flatMap(e=>e.indicator??[]).map(e=>e.axisLabel).filter(e=>!!e)}function GJ(e,t){var n,r,i;let a=e;(n=a.title?.textStyle)!=null&&n.fontSize&&a.title.textStyle.fontSize<=14&&(a.title.textStyle.fontSize=t);for(let n of UJ(e)){let e=n.fontSize;(typeof e!=`number`||e<=10)&&(n.fontSize=t)}for(let n of WJ(e)){let e=n.fontSize;(typeof e!=`number`||e<=10)&&(n.fontSize=t)}let o=Array.isArray(a.series)?a.series:a.series?[a.series]:[];for(let e of o)(r=e?.label)!=null&&r.fontSize&&e.label.fontSize<=10&&!Pq(e.label)&&(e.label.fontSize=t);let s=e=>{if(!(e!=null&&e.axisLabel))return;let n=e.axisLabel.fontSize;(n===void 0||n<=10)&&(e.axisLabel.fontSize=t)},c=Array.isArray(a.xAxis)?a.xAxis:a.xAxis?[a.xAxis]:[],l=Array.isArray(a.yAxis)?a.yAxis:a.yAxis?[a.yAxis]:[];for(let e of[...c,...l])s(e);if((i=a.legend)!=null&&i.textStyle){let e=a.legend.textStyle.fontSize;(e===void 0||e<=10)&&!Pq(a.legend.textStyle)&&(a.legend.textStyle.fontSize=t)}}function KJ(e,t){var n,r,i;let a=e;(n=a.title)!=null&&n.textStyle&&!a.title.textStyle.fontFamily&&(a.title.textStyle.fontFamily=t),(r=a.title)!=null&&r.textStyle&&!a.title.textStyle.fontWeight&&(a.title.textStyle.fontWeight=`bold`);let o=e=>{if(!e)return;let n=e.axisLabel??={};n.fontFamily||=t},s=Array.isArray(a.xAxis)?a.xAxis:a.xAxis?[a.xAxis]:[],c=Array.isArray(a.yAxis)?a.yAxis:a.yAxis?[a.yAxis]:[];for(let e of[...s,...c])o(e);(i=a.legend)!=null&&i.textStyle&&!a.legend.textStyle.fontFamily&&(a.legend.textStyle.fontFamily=t);for(let n of UJ(e))n.fontFamily||=t;for(let n of WJ(e))n.fontFamily||=t}function qJ(e){var t;let n=e;(t=n.title)!=null&&t.textStyle&&n.title.textStyle.color===void 0&&(n.title.textStyle.color=Dq);let r=Array.isArray(n.legend)?n.legend:n.legend?[n.legend]:[];for(let e of r){if(!e||e.show===!1)continue;let t=e.textStyle??={};t.color===void 0&&(t.color=Dq)}let i=Array.isArray(n.xAxis)?n.xAxis:n.xAxis?[n.xAxis]:[],a=Array.isArray(n.yAxis)?n.yAxis:n.yAxis?[n.yAxis]:[];for(let e of[...i,...a]){if(!(e!=null&&e.name))continue;let t=e.nameTextStyle??={};t.color===void 0&&(t.color=Dq)}for(let t of UJ(e))t.color===void 0&&(t.color=Dq);for(let t of WJ(e))t.color===void 0&&(t.color=Dq)}function JJ(e,t,n){let r=e;if(!r.grid||!r.legend||r.legend.show===!1)return;let i=t.child(`legend`);if(!i.exists()||mq(i.child(`overlay`)))return;let a=i.child(`legendPos`).attr(`val`)||`r`;if(a===`r`||a===`l`){let e=r.legend.data;if(!e||e.length===0)return;let i=e.map(e=>typeof e==`string`?e:e.name),o=r.legend?.textStyle?.fontSize??n??12,s=Number(r.legend?.itemWidth)||o,c=0;for(let e of i){let t=0;for(let n of e)t+=n.charCodeAt(0)>11904?o:o*.55;t>c&&(c=t)}let l=s+8+c+14,u=t.child(`plotArea`).child(`lineChart`).exists(),d=Array.isArray(r.series)?r.series.length:+!!r.series,f=Array.isArray(r.xAxis)?r.xAxis[0]:r.xAxis,p=Array.isArray(f?.data)?f.data.length:0,m=Math.max(84,Math.round(l+(u?a===`r`&&u&&d===1&&p>=20?-10:0:18)));if(typeof r.grid.left==`string`&&r.grid.left.includes(`%`)||typeof r.grid.right==`string`&&r.grid.right.includes(`%`))return;a===`r`?r.grid.right=m:r.grid.left=m}}function YJ(e,t,n){if(typeof e==`number`&&Number.isFinite(e))return e;if(typeof e==`string`){let n=e.trim();if(n.endsWith(`%`))return t*parseFloat(n)/100;let r=parseFloat(n);if(Number.isFinite(r))return r}return n}function XJ(e,t,n){if(!t)return;let r=n===`x`?t.w:t.h,i=Array.isArray(e)?e[0]:e;if(!i)return r;let a=n===`x`?`left`:`top`,o=n===`x`?`right`:`bottom`,s=YJ(i[a],r,0),c=YJ(i[o],r,0);return Math.max(0,r-s-c)}function ZJ(e,t,n,r,i,a=2.6){let o=XJ(i,r,n);if(o===void 0||o<=0)return t;let s=e.axisLabel??{},c=typeof s.fontSize==`number`?s.fontSize:12,l=Math.max(28,c*a),u=Math.max(2,Math.floor(o/l)+1);return Math.max(1,Math.min(t,u-1))}function QJ(e,t){let n=e;if(!n.xAxis&&!n.yAxis)return;let r=[],i=[],a=[],o=Array.isArray(n.series)?n.series:n.series?[n.series]:[],s=new Map,c=[],l=new Map,u=(e,t)=>{l.has(e)||l.set(e,[]),l.get(e).push(...t)};for(let e of o){if(!e.data)continue;let t=[];for(let n of e.data)if(typeof n==`number`)t.push(n);else if(n&&typeof n==`object`&&`value`in n&&typeof n.value==`number`)t.push(n.value);else if(Array.isArray(n)){n.length>=2&&typeof n[0]==`number`&&typeof n[1]==`number`&&(i.push(n[0]),a.push(n[1]));for(let e of n)typeof e==`number`&&t.push(e)}else t.push(0);let n=typeof e.yAxisIndex==`number`&&Number.isFinite(e.yAxisIndex)?e.yAxisIndex:0;if(e.stack){let r=`${n}:${String(e.stack)}`;s.has(r)||s.set(r,{axisIndex:n,values:[]}),s.get(r).values.push(t)}else c.push(...t),u(n,t)}for(let e of s.values()){let t=[],n=Math.max(...e.values.map(e=>e.length));for(let i=0;i<n;i++){let n=0;for(let t of e.values)n+=t[i]??0;t.push(n),r.push(n)}u(e.axisIndex,t)}r.push(...c);let d=o.some(e=>e.type===`bar`),f=o.some(e=>e.type&&e.type!==`bar`),p=d&&!f,m=p?10:8,h=p?2.6:2;if(r.length===0)return;let g=i.length>0&&a.length>0&&(Array.isArray(n.xAxis)?n.xAxis[0]:n.xAxis)?.type===`value`&&(Array.isArray(n.yAxis)?n.yAxis[0]:n.yAxis)?.type===`value`,_=(e,t,n)=>{if(!e||e.type!==`value`||t.length===0||e.min!==void 0&&e.max!==void 0)return;let r=Math.min(...t),i=Math.max(...t),a=tY(i,r,n);if(e.max===void 0){let t=$J(i,r,n);t>i&&t-i<a*.25&&(t+=a),e.max=t}e.min===void 0&&r>=0&&(e.min=0),e.interval===void 0&&(e.interval=a)},v=e=>{if(e.length===0)return 8;let t=Math.min(...e);return Math.max(...e)-Math.min(0,t)<=3?3:8};if(g){let e=Array.isArray(n.xAxis)?n.xAxis:[n.xAxis],t=Array.isArray(n.yAxis)?n.yAxis:[n.yAxis];e.forEach(e=>_(e,i,v(i))),t.forEach(e=>_(e,a,v(a)));return}let y=(e,i,a)=>{e&&(Array.isArray(e)?e:[e]).forEach((e,o)=>{if(!e||e.type!==`value`||e.min!==void 0&&e.max!==void 0)return;let s=a?.get(o)??r;if(s.length===0)return;let c=Math.min(...s),l=Math.max(...s),u=ZJ(e,m,i,t,n.grid,h),d=tY(l,c,u);if(e.max===void 0){let t=$J(l,c,u);u>1&&t>l&&t-l<d*.25&&(t+=d),e.max=t}e.min===void 0&&c>=0?e.min=0:e.min===void 0&&c<0&&(e.min=eY(l,c,u)),e.interval===void 0&&(e.interval=d)})};y(n.xAxis,`x`),y(n.yAxis,`y`,l)}function $J(e,t,n=5){let r=tY(e,t,n),i=Math.ceil(e/r)*r;return i<=e?i+r:i}function eY(e,t,n=5){let r=tY(e,t,n),i=Math.floor(t/r)*r;return i>=t?i-r:i}function tY(e,t,n=5){if(e===0&&t===0)return 1;let r=e-Math.min(0,t);if(r===0)return e>0?e*1.2:1;let i=r/n,a=10**Math.floor(Math.log10(i)),o=i/a,s;return s=o<=1?a:o<=2?2*a:o<=5?5*a:10*a,s}function nY(e){let t=e.child(`txPr`);if(t.exists())for(let e of t.children(`p`)){let t=e.child(`pPr`);if(!t.exists())continue;let n=t.child(`defRPr`);if(!n.exists())continue;let r=n.numAttr(`sz`);if(r!==void 0&&r>0)return Math.round(r/100*(96/72))}}function rY(e,t,n){let r,i,a=e.child(`spPr`);if(a.exists()&&!a.child(`noFill`).exists()){let e=a.child(`solidFill`);r=e.exists()?gq(e,n):`#ffffff`}let o=t.child(`plotArea`);if(o.exists()){let e=o.child(`spPr`);if(e.exists()&&!e.child(`noFill`).exists()){let t=e.child(`solidFill`);t.exists()&&(i=gq(t,n))}}return{chartBg:r,plotAreaBg:i}}function iY(e,t){let n=Cq(e.child(`spPr`).child(`ln`),t);if(n)return{borderColor:n.color,borderWidth:n.width,borderStyle:n.type}}function aY(e,t,n,r,i=2,a,o){if(e===`none`)return null;let s=`http://www.w3.org/2000/svg`,c=document.createElementNS(s,`svg`);c.setAttribute(`width`,String(n)),c.setAttribute(`height`,String(r)),c.setAttribute(`viewBox`,`0 0 ${n} ${r}`),c.style.display=`block`;let l=e??`rect`;if(l.startsWith(`path://`)){let e=document.createElementNS(s,`path`);if(e.setAttribute(`d`,l.slice(7)),e.setAttribute(`fill`,`none`),e.setAttribute(`stroke`,t),e.setAttribute(`stroke-width`,String(i)),e.setAttribute(`stroke-linecap`,`round`),c.appendChild(e),a&&a!==`none`){let e=n/2,i=r/2,l=Math.min(n,r,o===void 0?Math.max(3,r*.55):Math.max(3,o));if(a===`diamond`){let n=document.createElementNS(s,`path`);n.setAttribute(`d`,`M${e} ${i-l/2} L${e+l/2} ${i} L${e} ${i+l/2} L${e-l/2} ${i} Z`),n.setAttribute(`fill`,t),c.appendChild(n)}else if(a===`rect`){let n=document.createElementNS(s,`rect`);n.setAttribute(`x`,String(e-l/2)),n.setAttribute(`y`,String(i-l/2)),n.setAttribute(`width`,String(l)),n.setAttribute(`height`,String(l)),n.setAttribute(`fill`,t),c.appendChild(n)}else if(a===`triangle`){let n=document.createElementNS(s,`path`);n.setAttribute(`d`,`M${e} ${i-l/2} L${e+l/2} ${i+l/2} L${e-l/2} ${i+l/2} Z`),n.setAttribute(`fill`,t),c.appendChild(n)}else{let n=document.createElementNS(s,`circle`);n.setAttribute(`cx`,String(e)),n.setAttribute(`cy`,String(i)),n.setAttribute(`r`,String(l/2)),n.setAttribute(`fill`,t),c.appendChild(n)}}return c}if(l===`diamond`){let e=document.createElementNS(s,`path`);return e.setAttribute(`d`,`M${n/2} 1 L${n-1} ${r/2} L${n/2} ${r-1} L1 ${r/2} Z`),e.setAttribute(`fill`,t),c.appendChild(e),c}if(l===`circle`){let e=document.createElementNS(s,`circle`);return e.setAttribute(`cx`,String(n/2)),e.setAttribute(`cy`,String(r/2)),e.setAttribute(`r`,String(Math.max(2,Math.min(n,r)/2-1))),e.setAttribute(`fill`,t),c.appendChild(e),c}let u=document.createElementNS(s,`rect`);return u.setAttribute(`x`,`1`),u.setAttribute(`y`,`1`),u.setAttribute(`width`,String(Math.max(2,n-2))),u.setAttribute(`height`,String(Math.max(2,r-2))),u.setAttribute(`fill`,t),c.appendChild(u),c}function oY(e,t){if(typeof e==`number`)return`${e}px`;let n=e.trim();if(n.endsWith(`%`)){let e=Number.parseFloat(n.slice(0,-1));if(!Number.isNaN(e))return`${e/100*t}px`}return n}function sY(e,t){var n;let r=zJ(e.legend);if(!r||r.show===!1)return null;let i=r.orient===`vertical`,a=r.orient===`horizontal`||r.orient===void 0,o=r.top!==void 0||r.bottom!==void 0||r.left!==void 0||r.right!==void 0;if(i&&r.left===void 0&&r.right===void 0||a&&!o)return null;let s=Array.isArray(e.color)?e.color.filter(e=>typeof e==`string`):[],c=r.data??[],l=Array.isArray(e.series)?e.series:e.series?[e.series]:[],u=l.length===1&&l[0]?.type===`radar`?l[0]:void 0,d=Array.isArray(u?.data)?u.data:void 0,f=c.map((e,t)=>{let n=typeof e==`string`?e:e.name,i=typeof e==`string`?void 0:e.icon,a=typeof e==`string`?void 0:e.marker,o=typeof e==`string`?void 0:e;if(!n)return null;let c=l.findIndex(e=>e?.name===n),u=d?.findIndex(e=>e.name===n)??-1,f=c>=0?l[c]:l[t],p=d&&u>=0?d[u]:d?.[t]??void 0,m=d?p??o??f:o??f,h=p??f,g=p??f??o,_={...h?.lineStyle??{},...o?.lineStyle??{}},v=VJ(m,s[c>=0?c:t]??`#2f6f8f`),y=typeof _.width==`number`&&Number.isFinite(_.width)?Math.max(1,_.width):2,b=g?.symbolSize,x=typeof b==`number`&&Number.isFinite(b)?Math.max(3,b):void 0;return{name:n,icon:i??r.icon,marker:a,markerSize:x,color:v,lineWidth:y}}).filter(e=>e!==null);if(f.length===0)return null;let p=document.createElement(`div`);p.className=`pptx-chart-custom-legend`,p.style.position=`absolute`,p.style.display=`flex`,p.style.flexDirection=i?`column`:`row`,p.style.gap=i?`6px`:`12px`,p.style.pointerEvents=`none`,p.style.zIndex=`1`,p.style.whiteSpace=`nowrap`,r.left!==void 0&&(p.style.left=oY(r.left,t.w)),r.right!==void 0&&(p.style.right=oY(r.right,t.w)),r.width!==void 0&&(p.style.width=oY(r.width,t.w)),r.height!==void 0&&(p.style.height=oY(r.height,t.h)),(r.width!==void 0||r.height!==void 0)&&(p.style.boxSizing=`border-box`,a?(p.style.alignItems=`center`,r.width!==void 0&&(p.style.justifyContent=`center`)):(r.width!==void 0&&(p.style.alignItems=`center`),r.height!==void 0&&(p.style.justifyContent=`center`))),r.orient===`vertical`&&(r.left!==void 0||r.right!==void 0)?r.top===`middle`?(p.style.top=`${t.h/2}px`,p.style.transform=`translateY(-50%)`):r.top===void 0?r.bottom===void 0&&(p.style.top=`${t.h/2}px`,p.style.transform=`translateY(-50%)`):p.style.top=oY(r.top,t.h):r.top!==void 0&&(p.style.top=oY(r.top,t.h)),r.bottom!==void 0&&(p.style.bottom=oY(r.bottom,t.h)),a&&r.left===void 0&&r.right===void 0&&(p.style.left=`50%`,p.style.transform=`translateX(-50%)`);let m=r.textStyle?.fontSize??10,h=r.itemWidth??m,g=r.itemHeight??m;for(let e of f){let t=document.createElement(`div`);t.style.display=`flex`,t.style.alignItems=`center`,t.style.gap=`6px`;let i=e.marker&&e.marker!==`none`?e.markerSize:void 0,a=i===void 0?h:Math.max(h,Math.ceil(i)),o=i===void 0?g:Math.max(g,Math.ceil(i)),s=aY(e.icon,e.color,a,o,e.lineWidth,e.marker,i);s&&t.appendChild(s);let c=document.createElement(`span`);c.textContent=e.name,c.style.color=r.textStyle?.color??`#000000`,c.style.fontSize=`${m}px`,(n=r.textStyle)!=null&&n.fontFamily&&(c.style.fontFamily=r.textStyle.fontFamily),r.textStyle?.fontWeight!==void 0&&(c.style.fontWeight=String(r.textStyle.fontWeight)),t.appendChild(c),p.appendChild(t)}return p}function cY(e,t){let n=e.child(`autoTitleDeleted`);if(mq(n))return;let r=e.child(`title`);return r.exists()?Iq(r):n.exists()&&!mq(n)&&t&&t.length===1&&t[0].name?t[0].name:void 0}function lY(e,t,n,r){let i=cY(e,t);if(!i)return;let a=e.child(`title`),o=qq(a,n),s=Rq(Kq(a,n)),c=uY(e);return{text:o?.text??i,left:`center`,...c,textStyle:{fontSize:r,...s??{},...o?{rich:o.rich}:{}}}}function uY(e){let t=e.child(`title`).child(`layout`).child(`manualLayout`);if(!t.exists())return{};let n={},r=t.child(`x`).numAttr(`val`),i=t.child(`y`).numAttr(`val`);return r!==void 0&&(n.left=AJ(r)),i!==void 0&&(n.top=AJ(i)),n}function dY(e,t,n,r=50,i=!1){let a=IJ(e),o=[`50%`,`55%`],s=n?78:82;if(a===`right`?t&&i?(o=[`45%`,`55%`],s=76):t?(o=[`39%`,`54%`],s=87):(o=[`38%`,`55%`],s=82):a===`left`?(o=[`62%`,`55%`],s=82):a===`top`?o=[`50%`,`60%`]:a===`bottom`&&(o=[`50%`,`45%`]),(a===`top`||a===`bottom`)&&(s-=4),!t)return{center:o,radius:`${s}%`};let c=Math.round(Math.min(Math.max(r,10),90)/100*s);return{center:o,radius:[`${c}%`,`${s}%`]}}function fY(e,t=!1){return t?e:Math.round(e*.5)}function pY(e){if(!(e===void 0||!Number.isFinite(e)))return((90-e)%360+360)%360}var mY={circle:`circle`,square:`rect`,diamond:`diamond`,triangle:`triangle`,none:`none`,star:`circle`,dash:`circle`,dot:`circle`,plus:`circle`,x:`circle`};function hY(e){if(e)return mY[e]??`circle`}var gY=[`diamond`,`rect`,`triangle`,`circle`],_Y=[`diamond`,`square`,`triangle`,`circle`],vY=bq(9),yY=vY,bY=120;function xY(e,t){return e===`lineMarker`||e===`smoothMarker`?gY[t%gY.length]:`circle`}function SY(e){return _Y[e%_Y.length]}function CY(e,t=24){if(e.length<3)return e;for(let t=1;t<e.length;t++)if(e[t][0]<=e[t-1][0])return e;let n=e.length,r=Array(n-1);for(let t=0;t<n-1;t++)r[t]=(e[t+1][1]-e[t][1])/(e[t+1][0]-e[t][0]);let i=Array(n);i[0]=r[0],i[n-1]=r[n-2]*1.2;for(let e=1;e<n-1;e++)i[e]=(r[e-1]+r[e])/2*.3;let a=[[e[0][0],e[0][1]]];for(let r=0;r<n-1;r++){let[n,o]=e[r],[s,c]=e[r+1],l=s-n,u=i[r],d=i[r+1];for(let e=1;e<=t;e++){let r=e/t,i=2*r**3-3*r**2+1,s=r**3-2*r**2+r,f=-2*r**3+3*r**2,p=r**3-r**2,m=n+l*r,h=i*o+s*l*u+f*c+p*l*d;a.push([Number(m.toFixed(4)),Number(h.toFixed(4))])}}return a}function wY(e){return e.left!==void 0||e.top!==void 0||e.width!==void 0||e.height!==void 0}function TY(e,t){switch(e){case`outEnd`:return`top`;case`inEnd`:return`insideTop`;case`ctr`:return`inside`;case`inBase`:return`insideBottom`;default:return t?`inside`:`top`}}function EY(e){switch(e){case`l`:return`left`;case`r`:return`right`;case`b`:return`bottom`;case`ctr`:return`top`;default:return`top`}}function DY(e){return{...e.backgroundColor?{backgroundColor:e.backgroundColor}:{},...e.borderColor?{borderColor:e.borderColor}:{},...e.borderWidth===void 0?{}:{borderWidth:e.borderWidth},...e.padding?{padding:e.padding}:{}}}function OY(e){let t=e?.fontSize;if(t!==void 0)return`font-size: ${t}px; line-height: ${Math.max(t+5,Math.round(t*1.45))}px;`}function kY(e,t=`clustered`){let n=e.child(`grouping`);return n.exists()&&n.attr(`val`)||t}function AY(e){return e===`stacked`||e===`percentStacked`}function jY(e){return e===`percentStacked`}function MY(e){let t=Math.max(0,...e.map(e=>e.values.length)),n=Array(t).fill(0);for(let r of e)for(let e=0;e<t;e++)n[e]+=Math.max(r.values[e]??0,0);return e.map(e=>e.values.map((e,t)=>{let r=n[t]??0;return r===0?0:Number((Math.max(e,0)/r).toFixed(6))}))}function NY(e){e.min=0,e.max=1,e.interval=.1,e.axisLabel={...e.axisLabel||{},formatter:e=>lq(e,`0%`)}}function PY(e,t){let{r:n,g:r,b:i}=$z(e),{h:a,s:o,l:s}=tB(n,r,i),c=nB(a+(t.hueOffset??0),Math.min(1,o*t.saturationScale),Math.max(0,Math.min(1,s+t.lightnessOffset)));return eB(c.r,c.g,c.b)}function FY(e){return new zf(0,0,0,1,[{offset:0,color:PY(e,{saturationScale:1.95,lightnessOffset:.217})},{offset:1,color:PY(e,{hueOffset:-5,saturationScale:1.7,lightnessOffset:-.128})}])}function IY(e,t){var n;if(!t)return e.flatMap(e=>e.values.filter((t,n)=>{var r;return!((r=e.blankIndices)!=null&&r.has(n))}));let r=Math.max(0,...e.map(e=>e.values.length)),i=[];for(let t=0;t<r;t++){let r=0,a=!1;for(let i of e)(n=i.blankIndices)!=null&&n.has(t)||(r+=i.values[t]??0,a=!0);a&&i.push(r)}return i}function LY(e,t,n){let r=IY(t,n).filter(e=>Number.isFinite(e));if(r.length===0)return;let i=Math.min(...r),a=Math.max(...r),o=tY(a,i,8);if(e.min===void 0&&i>=0&&(e.min=0),e.interval===void 0&&(e.interval=o),e.max===void 0){if(n)e.max=Math.ceil(a/o)*o+o;else{let t=$J(a,i,8);t>a&&t-a<o*.25&&(t+=o),e.max=t}}}function RY(e){switch(e){case`ctr`:case`inEnd`:case`inBase`:return`inside`;default:return`outside`}}function zY(e,t){if(!(!e&&!t))return{showVal:e?.showVal??!1,showCatName:e?.showCatName??!1,showSerName:e?.showSerName??!1,showPercent:e?.showPercent??!1,position:e?.position,showLeaderLines:e?.showLeaderLines,manualLayout:e?.manualLayout,color:e?.color,fontSize:e?.fontSize,bold:e?.bold,backgroundColor:e?.backgroundColor,borderColor:e?.borderColor,borderWidth:e?.borderWidth,padding:e?.padding,...t}}function BY(e,t){let n=e?.child(`dLbls`);return n!=null&&n.exists()?n:t.child(`dLbls`)}function VY(e){return!!(e&&!e.deleted&&(e.showVal||e.showCatName||e.showSerName||e.showPercent))}function HY(e){let t=e.child(`dispBlanksAs`).attr(`val`);return t===`zero`||t===`span`?t:`gap`}function UY(e,t,n,r){var i;return(i=e.blankIndices)!=null&&i.has(t)?r===`zero`?0:null:n}function WY(e){let t=e[0]?.formatCode;if(t)return e.every(e=>e.formatCode===t)?t:void 0}function GY(e,t,n){if(!e||!VY(e))return;let r=e,i={show:!0,formatter:e=>{let i=[];return r.showSerName&&n&&i.push(n),r.showCatName&&i.push(e.name),r.showVal&&i.push(lq(e.value,t)),r.showPercent&&i.push(`${e.percent}%`),i.join(` `)},fontSize:r.fontSize??10,...r.bold===!0?{fontWeight:`bold`}:{},...r.color?{color:r.color}:{},position:RY(r.position),...DY(r)};return r.fontSize===void 0?i:Nq(i)}function KY(e){return e.size===0?void 0:t=>{if(t.dataIndex===void 0)return;let n=e.get(t.dataIndex);if(!n)return;let r=t.rect,i={};return n.x!==void 0&&(i.x=r?r.x+r.width*n.x:AJ(n.x)),n.y!==void 0&&(i.y=r?r.y+r.height*n.y:AJ(n.y)),n.width!==void 0&&(i.width=r?r.width*n.width:AJ(n.width)),n.height!==void 0&&(i.height=r?r.height*n.height:AJ(n.height)),i}}function qY(e){let t=new Set,n=[];for(let r of e)for(let e of r.categories)t.has(e)||(t.add(e),n.push(e));return n}function JY(e,t,n){if(!Array.isArray(e)||n<=1)return e;let r=Number.parseFloat(e[0]),i=Number.parseFloat(e[1]);if(!Number.isFinite(r)||!Number.isFinite(i)||i<=r)return e;let a=(i-r-1*(n-1))/n,o=Math.round(r+t*(a+1)),s=Math.round(o+a);return[`${o}%`,`${s}%`]}function YY(e,t,n,r){let i=e.child(`barDir`).attr(`val`)||e.attr(`barDir`)||`col`,a=kY(e),o=i===`bar`,s=e.child(`gapWidth`).numAttr(`val`)??150,c=e.child(`overlap`).numAttr(`val`),l=n.find(e=>e.categories.length>0)?.categories||[],u=lY(t,n,r,12),d=jJ(t,r),f=d?.option,p={fontSize:10,...d?.textStyle??{}},m=AY(a),h=jY(a),g=h?MY(n):void 0,_=HY(t),v=e.child(`varyColors`),y=n.length===1&&n[0].values.length>1&&!m&&!h&&!n[0].colorHex,b=v.exists()?mq(v):y,x=OJ(r,{darken:!o}),S=dJ(e,r);if(!S){let t=e.children(`ser`)[0];t!=null&&t.exists()&&(S=dJ(t,r))}let C=e.children(`ser`).map((e,t)=>({ser:e,order:e.child(`order`).numAttr(`val`)??t})).sort((e,t)=>e.order-t.order).map(e=>e.ser),w=n.map((t,i)=>{let a=t.formatCode,o=dJ(C[i]??e,r)??S,l=e=>{if(!(e!=null&&e.showVal))return;let t={show:!0,position:TY(e.position,m),fontSize:e.fontSize??9,...e.color?{color:e.color}:{},...e.bold===!0?{fontWeight:`bold`}:{},...DY(e),formatter:e=>{let t=e?.value,n=t&&typeof t==`object`&&`value`in t?t.value:t;return n===0||n===null?``:lq(n,h?`0%`:a)}};return e.fontSize===void 0?t:Nq(t)},u=l(o),d=mJ(BY(C[i],e),r),f=(g?.[i]??t.values).map((e,n)=>{let r=d.get(n),i=t.values[n]??e,a=UY(t,n,e,_),s=t.dataPointStyles?.[n],c;s?c={...s.color?{color:s.color}:{},...s.borderColor?{borderColor:s.borderColor}:{},...s.borderWidth===void 0?{}:{borderWidth:s.borderWidth},...s.borderType?{borderType:s.borderType}:{}}:t.invertIfNegative!==!1&&i<0?c={color:`#FFFFFF`,borderColor:`#000000`,borderWidth:1}:b&&!t.colorHex&&x.length>0&&(c={color:x[n%x.length]});let u;if(r!=null&&r.deleted)u={show:!1};else if(r){let e={showVal:o?.showVal??!1,showCatName:o?.showCatName??!1,showSerName:o?.showSerName??!1,showPercent:o?.showPercent??!1,position:o?.position,showLeaderLines:o?.showLeaderLines,manualLayout:o?.manualLayout,color:o?.color,fontSize:o?.fontSize,bold:o?.bold,backgroundColor:o?.backgroundColor,borderColor:o?.borderColor,borderWidth:o?.borderWidth,padding:o?.padding,...r};u=l(e)}return!c&&!u?a:{value:a,...c?{itemStyle:c}:{},...u?{label:u}:{}}});return{type:`bar`,name:t.name,data:f,stack:m?`total`:void 0,itemStyle:t.colorHex?{color:t.colorHex}:void 0,label:u,...t.formatCode?{tooltip:{valueFormatter:e=>lq(e,h?`0%`:t.formatCode)}}:{},barGap:c===void 0?`0%`:`${-c}%`,barCategoryGap:s===void 0?void 0:`${Math.round(s*100/(100*(m?1:n.length)+s))}%`}}),{valueAxis:T,categoryAxis:E}=oJ(t.child(`plotArea`),r,e),D={type:`category`,data:l,axisLabel:{interval:0,rotate:0,fontSize:10}};cJ(D,E,`category`);let O=WY(n),k=(h?`0%`:void 0)||T.numFmt||(O!=null&&O.includes(`%`)?O:void 0),A={type:`value`,...k?{axisLabel:{formatter:e=>lq(e,k)}}:{}};h&&NY(A),cJ(A,T,`value`);let j=!!u,M=o&&j?60:PJ(j,d),N=FJ(j,d),P=o?15:T.deleted?4:18,F=o?28:10,I=k||O,L=LJ(d),R=oX(t),z=!wY(R);return{title:u,tooltip:{trigger:`axis`,textStyle:p,extraCssText:OY(p),...I?{valueFormatter:e=>lq(Array.isArray(e)?e[0]:e,I)}:{}},legend:RJ(f,d,N,n.map(e=>e.name),p),grid:{containLabel:z,left:P,right:F,top:M,bottom:L,...R},xAxis:o?A:D,yAxis:o?D:A,series:w}}function XY(e,t,n,r,i,a){let o=n.find(e=>e.categories.length>0)?.categories||[],s=lY(t,n,r,14),c=jJ(t,r),l=c?.option,u={fontSize:10,...c?.textStyle??{}},d=kY(e,`standard`),f=AY(d),p=jY(d),m=p?MY(n):void 0,h=HY(t),g=dJ(e,r);if(!g){let t=e.children(`ser`)[0];t!=null&&t.exists()&&(g=dJ(t,r))}let _=e.children(`ser`).map((e,t)=>({ser:e,order:e.child(`order`).numAttr(`val`)??t})).sort((e,t)=>e.order-t.order).map(e=>e.ser),v=e.child(`marker`),y=v.exists()?mq(v):void 0,b=(e,t)=>e.colorHex??a?.[t%a.length],x=(e,t)=>{let n=b(e,t);return typeof n==`string`?n:void 0},S=n.map((t,n)=>{let a=b(t,n),o=hY(t.markerSymbol??(y===!0?SY(n):y===!1?`none`:void 0)),s=o===void 0?void 0:o!==`none`,c=t.lineWidth??3,l={...a?{color:a}:{},width:c,cap:`round`,join:`round`,...t.lineNoFill?{opacity:0}:{}},u=t.formatCode,d=dJ(_[n]??e,r)??g,v=e=>{if(!e||!VY(e))return;let t=e,n={show:!0,position:EY(t.position),fontSize:t.fontSize??9,...t.color?{color:t.color}:{},...t.bold===!0?{fontWeight:`bold`}:{},...DY(t),formatter:e=>{let n=e?.value,r=n&&typeof n==`object`&&`value`in n?n.value:n,i=[];return t.showSerName&&e!=null&&e.seriesName&&i.push(e.seriesName),t.showCatName&&e!=null&&e.name&&i.push(e.name),t.showVal&&typeof r==`number`&&i.push(lq(r,p?`0%`:u)),t.showPercent&&typeof e?.percent==`number`&&i.push(`${e.percent}%`),i.join(` `)}};return t.fontSize===void 0?n:Nq(n)},x=v(d),S=mJ(BY(_[n],e),r),C=new Map,w=(m?.[n]??t.values).map((e,n)=>{let r=UY(t,n,e,h),i=S.get(n);if(!i)return r;i.manualLayout&&C.set(n,i.manualLayout);let a=i.deleted?{show:!1}:v(zY(d,i));return a?{value:r,label:a}:r}),T=!!(x!=null&&x.show&&o===`none`),E=T?`circle`:o&&o!==`none`?o:void 0,D=T?0:t.markerSize??(t.markerSymbol===void 0&&y===!0?vY:void 0),O=T?!0:i&&o===void 0?!1:s,k=O===!0&&E!==void 0&&E!==`none`&&D!==0;return{type:`line`,name:t.name,data:w,stack:f?`total`:void 0,areaStyle:i?{...a?{color:a}:{},opacity:1}:void 0,itemStyle:a?{color:a}:void 0,lineStyle:l,label:x,labelLayout:KY(C),connectNulls:h===`span`,...t.smooth?{smooth:!0}:{},...t.formatCode?{tooltip:{valueFormatter:e=>lq(e,p?`0%`:t.formatCode)}}:{},endLabel:{show:!1},...E?{symbol:E}:{},...D===void 0?{}:{symbolSize:D},...O===void 0?{}:{showSymbol:O},...k?{showAllSymbol:!0}:{},z:3}}),{valueAxis:C,categoryAxis:w}=oJ(t.child(`plotArea`),r,e),T=WY(n),E=(p?`0%`:void 0)||C.numFmt||(T!=null&&T.includes(`%`)?T:void 0),D={type:`value`,...E?{axisLabel:{formatter:e=>lq(e,E)}}:{}};p&&NY(D),cJ(D,C,`value`),!p&&i&&LY(D,n,f);let O={type:`category`,data:o,...i?{boundaryGap:!1}:{},axisLabel:{interval:0,rotate:0}};cJ(O,w,`category`);let k=PJ(!!s,c),A=FJ(!!s,c),j=C.deleted?4:18,M=E||T,N=LJ(c),P=oX(t),F=!wY(P),I=n.map((e,t)=>({series:e,idx:t})),L=f||p?[...I].reverse():I;return{title:s,tooltip:{trigger:`axis`,textStyle:u,extraCssText:OY(u),...M?{valueFormatter:e=>lq(Array.isArray(e)?e[0]:e,M)}:{}},legend:RJ(l,c,A,i?L.map(({series:e,idx:t})=>{let n=x(e,t);return n?{name:e.name,itemStyle:{color:n}}:e.name}):L.map(({series:e,idx:t})=>{let n=hY(e.markerSymbol??(y===!0?SY(t):y===!1?`none`:void 0)),r=x(e,t),i=r?{lineStyle:{color:r},itemStyle:{color:r}}:{};return n&&n!==`none`?{name:e.name,icon:HJ(),marker:n,...i}:{name:e.name,icon:HJ(),...i}}),u),grid:{containLabel:F,left:j,right:10,top:k,bottom:N,...P},xAxis:O,yAxis:D,series:S}}function ZY(e,t,n,r,i){let a=lY(t,n,i,12),o=jJ(t,i),s=o?.option,c={fontSize:10,...o?.textStyle??{}},l=r?n:n.slice(0,1);if(l.length===0)return{title:a};let u=e.children(`ser`).map((e,t)=>({ser:e,order:e.child(`order`).numAttr(`val`)??t})).sort((e,t)=>e.order-t.order).map(e=>e.ser),d=l.map((t,n)=>{let r=u[n],a=(r!=null&&r.exists()?dJ(r,i):void 0)??dJ(e,i),o=BY(r,e),s=r?.exists()&&r.child(`dLbls`).exists()||e.child(`dLbls`).exists(),c=mJ(o,i),l=[...c.values()].some(e=>VY(zY(a,e)));return{series:t,serNode:r,sharedLabels:a,pointOverrides:c,labelsExplicitlyOff:s&&!a&&!l,explosions:r?gJ(r,t.categories.length):void 0}}),f=dY(o,r,d.some(e=>!e.labelsExplicitlyOff&&(VY(e.sharedLabels)||[...e.pointOverrides.values()].some(t=>VY(zY(e.sharedLabels,t))))),r?e.child(`holeSize`).numAttr(`val`)??50:50,d.some(e=>e.explosions?.some(e=>e>0))),p=pY(e.child(`firstSliceAng`).numAttr(`val`)),m=d.map((e,t)=>{var n;let i=new Map,a=e.series.categories.map((t,n)=>{var a,o;let s=e.pointOverrides.get(n),c=zY(e.sharedLabels,s);c!=null&&c.manualLayout&&i.set(n,c.manualLayout);let l={name:t||`Item ${n+1}`,value:e.series.values[n]??0},u=e.series.dataPointStyles?.[n];return u?l.itemStyle={...u.color?{color:u.color}:{},...u.borderColor?{borderColor:u.borderColor}:{},...u.borderWidth===void 0?{}:{borderWidth:u.borderWidth},...u.borderType?{borderType:u.borderType}:{}}:(a=e.series.dataPointColors)!=null&&a[n]&&(l.itemStyle={color:e.series.dataPointColors[n]}),(o=e.explosions)!=null&&o[n]&&e.explosions[n]>0&&(l.selected=!0,l.selectedOffset=fY(e.explosions[n],r)),s!=null&&s.deleted?l.label={show:!1}:s&&VY(c)&&(l.label=GY(c,e.series.formatCode,e.series.name)),l}),o=GY(e.sharedLabels,e.series.formatCode,e.series.name),s=!!((n=e.sharedLabels)!=null&&n.showLeaderLines)||[...e.pointOverrides.values()].some(e=>e.showLeaderLines===!0),c=e.explosions&&Math.max(...e.explosions.map(e=>fY(e,r)));return{type:`pie`,name:e.series.name,radius:r?JY(f.radius,t,d.length):f.radius,center:f.center,data:a,selectedMode:e.explosions?`multiple`:!1,...c?{selectedOffset:c}:{},...p===void 0?{}:{startAngle:p,clockwise:!0},label:o??{show:!1},labelLine:{show:s},labelLayout:KY(i)}}),h=FJ(!!a,o),g=WY(l),_=r?qY(l):l[0].categories;return{title:a,tooltip:{trigger:`item`,...g?{valueFormatter:e=>lq(Array.isArray(e)?e[0]:e,g)}:{}},legend:RJ(s,o,h,_,c),series:m}}function QY(e,t,n,r,i,a){let o=lY(t,n,r,12),s=jJ(t,r),c=s?.option,l={fontSize:10,...s?.textStyle??{}},u=n.find(e=>e.categories.length>0)?.categories||[],d=t.child(`plotArea`),{valueAxis:f}=oJ(d,r),p;if(f.max!==void 0)p=f.max;else{let e=0,t=0;for(let r of n)for(let n of r.values)n>e&&(e=n),n<t&&(t=n);let r=tY(e,t,5);p=Math.ceil(e/r)*r||100}let m=!f.deleted&&f.tickLblPos!==`none`,h=e.child(`radarStyle`).attr(`val`),g=m?{show:!0,formatter:e=>lq(e,f.numFmt),color:f.labelColor??`#000000`,...f.labelFontSize===void 0?{}:{fontSize:f.labelFontSize}}:void 0,_=h===`filled`?{radarZ:4,seriesZ:2}:{radarZ:void 0,seriesZ:void 0},v=e.children(`axId`)[1]?.attr(`val`),y=d.children(`valAx`).find(e=>e.child(`axId`).attr(`val`)===v)??d.child(`valAx`),b=y.child(`majorGridlines`).child(`spPr`).exists(),x=y.child(`spPr`).child(`ln`).exists(),S=f.hasMajorGridlines&&(h!==`filled`||b)?{show:!0,lineStyle:{...jq,...b?f.majorGridlineStyle??{}:{}}}:{show:!1},C=f.deleted?{show:!1}:{show:!0,lineStyle:{color:x?f.lineColor??jq.color:jq.color}},w=(u.length>1?[u[0],...u.slice(1).reverse()]:u).map((e,t)=>({name:e,max:p,...f.min===void 0?{}:{min:f.min},...t===0&&g?{axisLabel:g}:{}})),T=NJ(s)&&!(s!=null&&s.overlay),E=sX(t,a),D=E?.center??(T?[`50%`,`66%`]:h===`filled`?[`50%`,`55%`]:[`50%`,`50%`]),O=E?.radius??(T?`58%`:h===`filled`?`76%`:`86%`),k=n.map((e,t)=>{let n=e.values.length>1?[e.values[0],...e.values.slice(1).reverse()]:e.values,r=hY(e.markerSymbol),a=h===`marker`||r!==void 0&&r!==`none`,o=h===`filled`,s=e.colorHex??i?.[t%i.length],c=typeof s==`string`?FY(s):s,l=o?{...c?{color:c}:{},opacity:.75}:void 0;return{name:e.name,value:n,...s?{lineStyle:{color:s,width:e.lineWidth??3,cap:`round`,join:`round`,...e.lineNoFill?{opacity:0}:{}},itemStyle:{color:s}}:{lineStyle:{width:e.lineWidth??3,cap:`round`,join:`round`,...e.lineNoFill?{opacity:0}:{}}},...l?{areaStyle:l}:{},...r&&r!==`none`?{symbol:r}:{},...a?{}:{symbol:`none`},...e.markerSize?{symbolSize:e.markerSize}:{},...a?{symbolSize:e.markerSize??6}:{}}});return{title:o,tooltip:{},legend:RJ(c,s,FJ(!!o,s),n.map(e=>{let t=hY(e.markerSymbol);return e.lineNoFill&&t&&t!==`none`?{name:e.name,icon:t}:{name:e.name,icon:HJ(),...t&&t!==`none`?{marker:t}:{}}}),l),radar:{..._.radarZ===void 0?{}:{z:_.radarZ},indicator:w,radius:O,center:D,splitNumber:5,splitLine:S,axisLine:C,splitArea:{show:!1}},series:[{type:`radar`,..._.seriesZ===void 0?{}:{z:_.seriesZ},data:k}]}}function $Y(e,t,n,r){let i=lY(t,n,r,14),a=jJ(t,r),o=a?.option,s={fontSize:10,...a?.textStyle??{}},c=e.child(`scatterStyle`).attr(`val`)??`lineMarker`,l=c===`lineMarker`||c===`line`||c===`smoothMarker`||c===`smooth`,u=c===`smoothMarker`||c===`smooth`,d=c===`line`||c===`smooth`,f=n.map((e,t)=>{let n=e.values.map((t,n)=>[e.xValues&&n<e.xValues.length?e.xValues[n]:n,t]),r=hY(e.markerSymbol)??xY(c,t),i=!d&&r!==`none`;if((l||e.smooth)&&!e.lineNoFill){let t=e.smooth??u?CY(n):n,a=e.lineWidth??3;return{type:`line`,name:e.name,data:t,smooth:!1,showSymbol:i,...i?{symbol:r,symbolSize:e.markerSize??yY}:{},...e.colorHex?{lineStyle:{color:e.colorHex,width:a,cap:`round`,join:`round`},itemStyle:{color:e.colorHex}}:{lineStyle:{width:a,cap:`round`,join:`round`}}}}return{type:`scatter`,name:e.name,data:n,symbol:i?r:`none`,symbolSize:i?e.markerSize??yY:0,itemStyle:e.colorHex?{color:e.colorHex}:void 0}}),p=n.map((e,t)=>{let n=hY(e.markerSymbol)??xY(c,t),r=!d&&n!==`none`;return(l||e.smooth)&&!e.lineNoFill?r&&n?{name:e.name,icon:n}:{name:e.name,icon:HJ()}:n&&n!==`none`?{name:e.name,icon:n}:e.name}),{xAxis:m,yAxis:h}=sJ(t.child(`plotArea`),r),g=PJ(!!i,a),_=FJ(!!i,a),v=oX(t),y=!wY(v),b=h.deleted?4:18,x=g,S=Math.max(LJ(a),20),C={type:`value`},w={type:`value`};return cJ(C,m,`value`),cJ(w,h,`value`),{title:i,tooltip:{trigger:`item`},legend:RJ(o,a,_,p,s),grid:{containLabel:y,left:b,right:10,top:x,bottom:S,...v},xAxis:C,yAxis:w,series:f}}function eX(e,t,n){if(e.max!==void 0||t.length===0)return;let r=t.map((e,t)=>({value:e,bubbleSize:n[t]??0})).filter(({value:e})=>Number.isFinite(e));if(r.length===0)return;let i=Math.min(...r.map(({value:e})=>e)),a=Math.max(...r.map(({value:e})=>e)),o=a-Math.min(0,i)<=3?3:8,s=tY(a,i,o),c=$J(a,i,o);c>a&&c-a<s*.25&&(c+=s);let l=Math.max(...r.map(({bubbleSize:e})=>e)),u=Math.max(...r.filter(({value:e})=>Math.abs(e-a)<1e-9).map(({bubbleSize:e})=>e),0);l>0&&u/l>=.75&&(c+=s),e.max=c,e.min===void 0&&i>=0&&(e.min=0),e.interval===void 0&&(e.interval=s)}function tX(e,t,n,r){let i=lY(t,n,r,14),a=jJ(t,r),o=a?.option,s={fontSize:10,...a?.textStyle??{}},c=Math.max(e.child(`bubbleScale`).numAttr(`val`)??100,0)/100*bY,l=-1/0;for(let e of n)if(e.bubbleSizes)for(let t of e.bubbleSizes)t>l&&(l=t);let u=l>0?l:1,d=n.map(e=>{let t=e.values.map((t,n)=>[e.xValues&&n<e.xValues.length?e.xValues[n]:n,t,e.bubbleSizes&&n<e.bubbleSizes.length?e.bubbleSizes[n]:0]);return{type:`scatter`,name:e.name,data:t,symbolSize:e=>{let t=Math.max(Number(e[2])||0,0);return Math.sqrt(t/u)*c},itemStyle:e.colorHex?{color:e.colorHex}:void 0}}),{xAxis:f,yAxis:p}=sJ(t.child(`plotArea`),r),m=PJ(!!i,a),h=FJ(!!i,a),g=oX(t),_=!wY(g),v=p.deleted?4:18,y=m,b=Math.max(LJ(a),20),x={type:`value`},S={type:`value`};cJ(x,f,`value`),cJ(S,p,`value`);let C=n.flatMap(e=>e.values.map((t,n)=>({x:e.xValues&&n<e.xValues.length?e.xValues[n]:n,y:t,bubbleSize:e.bubbleSizes&&n<e.bubbleSizes.length?e.bubbleSizes[n]:0})));return eX(x,C.map(e=>e.x),C.map(e=>e.bubbleSize)),eX(S,C.map(e=>e.y),C.map(e=>e.bubbleSize)),{title:i,tooltip:{trigger:`item`,formatter:e=>{let t=e;return`${t.seriesName}<br/>x: ${t.value[0]}, y: ${t.value[1]}, size: ${t.value[2]}`}},legend:RJ(o,a,h,n.map(e=>({name:e.name,icon:`circle`})),s),grid:{containLabel:_,left:v,right:10,top:y,bottom:b,...g},xAxis:x,yAxis:S,series:d}}function nX(e){return/^\d{4}[/-]\d{1,2}[/-]\d{1,2}$/.test(e.trim())}function rX(e){switch(e){case`dot`:case`circle`:return`circle`;case`square`:return`rect`;case`diamond`:case`triangle`:return e;case`none`:case void 0:return`none`;default:return`circle`}}function iX(e,t,n,r){let i=lY(t,n,r,14),a=jJ(t,r),o=n.find(e=>e.categories.length>0)?.categories||[],s=o.length||Math.max(...n.map(e=>e.values.length),0),c=[];if(n.length>=4)for(let e=0;e<s;e++)c.push([n[0].values[e]??0,n[3].values[e]??0,n[2].values[e]??0,n[1].values[e]??0]);else if(n.length>=3)for(let e=0;e<s;e++){let t=n[2].values[e]??0;c.push([t,t,n[1].values[e]??0,n[0].values[e]??0])}else for(let e=0;e<s;e++){let t=n[0]?.values[e]??0;c.push([0,t,0,t])}let{valueAxis:l,categoryAxis:u}=oJ(t.child(`plotArea`),r,e),d=PJ(!!i,a),f=oX(t),p=!wY(f),m={type:`category`,data:o,axisLabel:{interval:0,rotate:0,fontSize:10},splitLine:{show:!1}};cJ(m,u,`category`);let h=o.length>=3&&o.every(e=>nX(e))&&!u.deleted&&u.tickLblPos!==`none`;if(h){let e=m.axisLabel||{};m.axisLabel={...e,rotate:45,margin:Math.max(Number(e.margin)||0,10)}}let g={type:`value`};cJ(g,l,`value`);let _=c.flatMap(e=>[e[2],e[3]]).filter(e=>Number.isFinite(e));if(_.length>0){let e=Math.min(..._),t=Math.max(..._);if(g.min===void 0&&e>=0&&(g.min=0),g.interval===void 0&&(g.interval=tY(t,e,7)),g.max===void 0){let n=Number(g.interval)||tY(t,e,7);g.max=Math.ceil(t/n)*n+n}}let v=a?.option,y={fontSize:10,...a?.textStyle??{}},b=FJ(!!i,a),x=Math.max(LJ(a),h?56:0),S=n.length>=3&&n.length<4,C=S?n.slice(0,3).map((e,t)=>({name:e.name,icon:t===2?rX(e.markerSymbol):`none`})):n.map(e=>e.name),w=S?[{type:`custom`,name:n[2].name,coordinateSystem:`cartesian2d`,data:Array.from({length:s},(e,t)=>[t,n[0].values[t]??0,n[1].values[t]??0,n[2].values[t]??0]),renderItem:(e,t)=>{let r=t.value(0),i=t.value(1),a=t.value(2),o=t.value(3),s=t.coord([r,i]),c=t.coord([r,a]),l=t.coord([r,o]),u=Math.max(8,t.size([1,0])[0]||12),d=Math.min(4,Math.max(2,Math.round(u*.04))),f=BJ(n[0].colorHex,`#000000`),p=BJ(n[2].colorHex,`#00B050`);return{type:`group`,children:[{type:`line`,shape:{x1:s[0],y1:s[1],x2:c[0],y2:c[1]},style:{stroke:f,lineWidth:1}},{type:`line`,shape:{x1:l[0],y1:l[1],x2:l[0]+d,y2:l[1]},style:{stroke:p,lineWidth:1}}]}},silent:!0}]:[{type:`candlestick`,name:n.length>=3?n[2].name:n[0]?.name,data:c,itemStyle:{color:BJ(n[n.length>=4?3:2]?.colorHex,`#ec0000`),color0:BJ(n[0]?.colorHex,`#00da3c`),borderColor:BJ(n[n.length>=4?3:2]?.colorHex,`#ec0000`),borderColor0:BJ(n[0]?.colorHex,`#00da3c`)}}];return{title:i,tooltip:{trigger:`axis`,axisPointer:{type:`cross`}},legend:RJ(v,a,b,C,y),grid:{containLabel:p,left:24,right:10,top:d,bottom:x,...f},xAxis:m,yAxis:g,series:w}}function aX(e){let t=e.child(`plotArea`).child(`layout`).child(`manualLayout`);return t.exists()?{x:t.child(`x`).numAttr(`val`),y:t.child(`y`).numAttr(`val`),w:t.child(`w`).numAttr(`val`),h:t.child(`h`).numAttr(`val`)}:{}}function oX(e){let t=aX(e),n={};return t.x!==void 0&&(n.left=AJ(t.x)),t.y!==void 0&&(n.top=AJ(t.y)),t.w!==void 0&&(n.width=AJ(t.w)),t.h!==void 0&&(n.height=AJ(t.h)),n}function sX(e,t){let{x:n,y:r,w:i,h:a}=aX(e);if(n===void 0||r===void 0||i===void 0||a===void 0)return;let o=n+i/2,s=r+a/2;return t?{center:[o*t.w,s*t.h],radius:Math.min(i*t.w,a*t.h)/2}:{center:[AJ(o),AJ(s)],radius:AJ(Math.min(i,a)/2)}}function cX(e,t,n){if(!n)return;let{x:r=0,y:i=0,w:a=1,h:o=1}=aX(e);return{type:`rect`,silent:!0,z:-10,left:r*n.w,top:i*n.h,shape:{width:a*n.w,height:o*n.h},style:{fill:t,stroke:`none`}}}function lX(e,t){let n=e.graphic;if(!n){e.graphic=t;return}e.graphic=Array.isArray(n)?[t,...n]:[t,n]}function uX(e,t,n,r,i,a,o){switch(e){case`barChart`:case`bar3DChart`:return YY(t,n,r,i);case`lineChart`:case`line3DChart`:return XY(t,n,r,i,!1,a);case`areaChart`:case`area3DChart`:case`surface3DChart`:return XY(t,n,r,i,!0,a);case`pieChart`:case`pie3DChart`:return ZY(t,n,r,!1,i);case`doughnutChart`:return ZY(t,n,r,!0,i);case`radarChart`:return QY(t,n,r,i,a,o);case`scatterChart`:return $Y(t,n,r,i);case`bubbleChart`:return tX(t,n,r,i);case`stockChart`:return iX(t,n,r,i);default:return}}function dX(e){return e===`barChart`||e===`bar3DChart`||e===`lineChart`||e===`line3DChart`||e===`areaChart`||e===`area3DChart`||e===`stockChart`||e===`surface3DChart`}function fX(e,t){let n=zJ(e),r=zJ(t);if(!n)return t;if(!r)return e;let i=[...n.data??[],...r.data??[]],a=new Set,o=i.filter(e=>{let t=typeof e==`string`?e:e.name;return!a.has(t)&&(a.add(t),!0)}),s={...n,data:o};return o.some(e=>typeof e==`object`&&e.icon)&&delete s.icon,s}function pX(e){return e===void 0?[]:Array.isArray(e)?e:[e]}function mX(e,t,n){if(typeof e==`number`&&Number.isFinite(e))return e;if(typeof e==`string`){if(e.endsWith(`%`)){let r=parseFloat(e);return Number.isFinite(r)?t*r/100:n}let r=parseFloat(e);return Number.isFinite(r)?r:n}return n}function hX(e,t,n,r){if(typeof e?.width==`string`&&n===`left`&&e.width.endsWith(`%`))return t*parseFloat(e.width)/100;if(typeof e?.height==`string`&&n===`top`&&e.height.endsWith(`%`))return t*parseFloat(e.height)/100;if(typeof e?.width==`number`&&n===`left`)return e.width;if(typeof e?.height==`number`&&n===`top`)return e.height;let i=mX(e?.[n],t,0),a=mX(e?.[r],t,0);return Math.max(0,t-i-a)}function gX(e){return typeof e.min==`number`&&typeof e.max==`number`&&e.min<0&&e.max>0}function _X(e,t,n){if(!t||e.type!==`category`||t.type!==`value`||e.axisLine?.onZero!==!0||!gX(t)||n<=0)return!1;let r=n*((0-t.min)/(t.max-t.min)),i=e.axisLabel??={},a=Math.max(6,Math.round(i.fontSize??10));return i.margin=-Math.round(Math.max(0,r-a)),e.z=Math.max(e.z??0,20),!0}function vX(e,t){let n=pX(e.grid)[0],r=pX(e.xAxis),i=pX(e.yAxis),a=hX(n,t.h,`top`,`bottom`),o=hX(n,t.w,`left`,`right`),s=!1;r.forEach((e,t)=>{s=_X(e,i[t]??i[0],a)||s}),i.forEach((e,t)=>{s=_X(e,r[t]??r[0],o)||s}),s&&n&&(n.containLabel=!1,n.left=Math.max(mX(n.left,t.w,0),48))}function yX(e){return iJ(e)[1]}function bX(e,t,n,r){let i=Array.isArray(e.series)?e.series:[],a=Array.isArray(t.series)?t.series:[],o=yX(n),s=yX(r);if(o!==void 0&&s!==void 0&&o!==s){let n=pX(e.yAxis),r=pX(t.yAxis),o=n.length;return{...e,legend:fX(e.legend,t.legend),yAxis:[...n,...r],series:[...i,...a.map(e=>({...e,yAxisIndex:e.yAxisIndex===void 0?o:e.yAxisIndex}))]}}return{...e,legend:fX(e.legend,t.legend),series:[...i,...a]}}function xX(e,t,n,r){let i=xJ(e,t),a=kJ(e,i,n),o=e.child(`chart`),s=o.child(`plotArea`);if(!s.exists())return{option:{title:{text:`Unsupported chart`,left:`center`}},chartFrameStyle:iY(e,i)};let{chartBg:c,plotAreaBg:l}=rY(e,o,i),u=iY(e,i),d=Fq.flatMap(e=>s.children(e).map(t=>{let n=_J(t,i);return n.length===0?null:{typeName:e,chartTypeNode:t,seriesArr:n}})).filter(e=>e!==null);for(let[t,n]of d.entries()){let f=uX(n.typeName,n.chartTypeNode,o,n.seriesArr,i,a,r);if(!f)continue;if(t===0&&d.length>1&&dX(n.typeName))for(let e of d.slice(1)){if(!dX(e.typeName))continue;let t=uX(e.typeName,e.chartTypeNode,o,e.seriesArr,i,a,r);t&&(f=bX(f,t,n.chartTypeNode,e.chartTypeNode))}let p=nY(e);p&&GJ(f,p);let m=Jq(i);if(m&&KJ(f,m),qJ(f),JJ(f,o,p),QJ(f,r),c&&(f.backgroundColor=c),a&&a.length>0&&(f.color=a),l){if(f.grid)f.grid.backgroundColor=l,f.grid.show=!0;else{let e=cX(o,l,r);e&&lX(f,e)}}let h=t===0&&d.length>1&&dX(n.typeName)?d.filter(e=>dX(e.typeName)).flatMap(e=>e.seriesArr).sort((e,t)=>e.order-t.order):n.seriesArr,g=vJ(s),_=g?{seriesArr:h,showKeys:g.showKeys}:void 0;return{option:f,dataTable:_,chartFrameStyle:u}}return{option:{title:{text:`Unsupported chart type`,left:`center`,textStyle:{fontSize:12}}},chartFrameStyle:u}}function SX(e,t){var n;let r=document.createElement(`div`);r.style.position=`absolute`,r.style.left=`${e.position.x}px`,r.style.top=`${e.position.y}px`,r.style.width=`${e.size.w}px`,r.style.height=`${e.size.h}px`,r.style.overflow=`hidden`,r.style.display=`flex`,r.style.flexDirection=`column`;let i=t.presentation.charts?.get(e.chartPath);if(!i)return r.style.border=`1px dashed #ccc`,r.style.display=`flex`,r.style.alignItems=`center`,r.style.justifyContent=`center`,r.style.color=`#999`,r.style.fontSize=`12px`,r.textContent=`Chart not found`,r;let a=document.createElement(`div`);a.style.width=`100%`,a.style.flex=`1`,a.style.minWidth=`0`,a.style.minHeight=`0`,a.style.overflow=`hidden`,r.appendChild(a);let o=t.presentation.chartThemes?.get(e.chartPath),{option:s,dataTable:c,chartFrameStyle:l}=xX(i,o?{...t,theme:o,colorCache:new Map}:t,e.chartPath,e.size);vX(s,e.size),l&&(r.style.boxSizing=`border-box`,l.borderColor&&l.borderWidth&&l.borderStyle&&(r.style.border=`${l.borderWidth}px ${l.borderStyle} ${l.borderColor}`));let u=sY(s,e.size),d=zJ(s.legend);if(u&&d&&(d.show=!1,r.appendChild(u)),c){let e=c.seriesArr.map(e=>e.colorHex).filter(Boolean),t=yJ(c,e.length>0?e:void 0);r.appendChild(t)}let f=t.chartInstances,p=new Promise(e=>{let t=()=>{CX(a,s,f),e()};requestAnimationFrame(()=>{if(!a.isConnected){e();return}if(a.offsetWidth===0||a.offsetHeight===0){if(typeof ResizeObserver>`u`){t();return}let n=new ResizeObserver(e=>{if(!a.isConnected){n.disconnect();return}let{width:r,height:i}=e[0]?.contentRect??{width:0,height:0};r>0&&i>0&&(n.disconnect(),t())});n.observe(a),e();return}t()})});return(n=t.asyncTasks)==null||n.push(p),r}function CX(e,t,n){try{let r=iC(e);if(r.setOption(t),n?.add(r),typeof ResizeObserver>`u`)return;let i=new ResizeObserver(()=>{e.isConnected?r.resize():(i.disconnect(),r.isDisposed()||r.dispose(),n?.delete(r))});i.observe(e)}catch(t){console.warn(`Failed to initialize ECharts:`,t),e.style.display=`flex`,e.style.alignItems=`center`,e.style.justifyContent=`center`,e.style.color=`#999`,e.style.fontSize=`12px`,e.textContent=`Chart render error`}}function wX(e,t){switch(e.nodeType){case`shape`:return KW(e,t);case`picture`:return PG(e,t);case`table`:return UK(e,t);case`group`:return $K(e,t,wX);case`chart`:return SX(e,t);default:{let t=document.createElement(`div`);return t.style.position=`absolute`,t.style.left=`${e.position.x}px`,t.style.top=`${e.position.y}px`,t.style.width=`${e.size.w}px`,t.style.height=`${e.size.h}px`,t}}}function TX(e){let t=document.createElement(`div`);return t.style.position=`absolute`,t.style.left=`${e.position.x}px`,t.style.top=`${e.position.y}px`,t.style.width=`${e.size.w}px`,t.style.height=`${e.size.h}px`,t.style.border=`2px dashed #ff4444`,t.style.backgroundColor=`rgba(255,68,68,0.08)`,t.style.display=`flex`,t.style.alignItems=`center`,t.style.justifyContent=`center`,t.style.color=`#cc0000`,t.style.fontSize=`11px`,t.style.fontFamily=`monospace`,t.style.overflow=`hidden`,t.style.boxSizing=`border-box`,t.style.padding=`4px`,t.textContent=`Render Error`,t.title=`Failed to render node: ${e.id} (${e.name})`,t}var EX=new WeakMap;function DX(e,t,n,r){let i=[];if(!e||!e.exists||!e.exists())return i;let a={rels:t??new Map,partPath:n,diagramDrawings:r};for(let t of e.allChildren())if(!vz(t))try{let e=Dz(t,a);e&&(e.size.w>0||e.size.h>0)&&i.push(e)}catch{}return i}function OX(e,t,n,r){let i=EX.get(e);if(i&&i.rels===t&&i.partPath===n&&i.diagramDrawings===r)return i.nodes;let a=DX(e,t,n,r);return EX.set(e,{nodes:a,rels:t,partPath:n,diagramDrawings:r}),a}function kX(e){if(e.isConnected)return()=>{};let t={position:e.style.position,left:e.style.left,top:e.style.top,visibility:e.style.visibility,pointerEvents:e.style.pointerEvents,contain:e.style.contain};return e.style.position=`fixed`,e.style.left=`-100000px`,e.style.top=`0`,e.style.visibility=`hidden`,e.style.pointerEvents=`none`,e.style.contain=`layout style paint`,document.body.appendChild(e),()=>{e.parentNode===document.body&&document.body.removeChild(e),e.style.position=t.position,e.style.left=t.left,e.style.top=t.top,e.style.visibility=t.visibility,e.style.pointerEvents=t.pointerEvents,e.style.contain=t.contain}}function AX(e,t,n){var r,i;Gz(e,t);let a=!!(n!=null&&n.mediaUrlCache),o=n?.chartInstances??new Set,s=[],c=new AbortController,l=Qz(e,t,n?.mediaUrlCache,o,n?.pdfjs,c.signal);l.asyncTasks=s,n!=null&&n.onNavigate&&(l.onNavigate=n.onNavigate);let u=document.createElement(`div`);u.style.position=`relative`,u.style.width=`${e.width}px`,u.style.height=`${e.height}px`,u.style.overflow=`hidden`,u.style.backgroundColor=`#FFFFFF`,l.measurementRoot=u;let d=kX(u);try{try{TV(l,u)}catch(e){(r=n?.onNodeError)==null||r.call(n,`__background__`,e)}if(t.showMasterSp&&l.layout.showMasterSp){let t={...l,slide:{...l.slide,rels:l.master.rels},partPath:l.masterPath,skipPlaceholderChildren:!0},n=OX(l.master.spTree,l.master.rels,l.masterPath,e.diagramDrawings);for(let e of n)try{let n=wX(e,t);u.appendChild(n)}catch{}}if(t.showMasterSp){let t={...l,slide:{...l.slide,rels:l.layout.rels},partPath:l.layoutPath,skipPlaceholderChildren:!0},n=OX(l.layout.spTree,l.layout.rels,l.layoutPath,e.diagramDrawings);for(let e of n)try{let n=wX(e,t);u.appendChild(n)}catch{}}for(let e of t.nodes)try{let t=wX(e,l);u.appendChild(t)}catch(t){(i=n?.onNodeError)==null||i.call(n,e.id,t),u.appendChild(TX(e))}}finally{d()}let f=!1,p=l.mediaUrlCache,m=Promise.allSettled(s).then(()=>{}),h=()=>{if(!f){if(f=!0,c.abort(),o)for(let e of o)!e.isDisposed()&&u.contains(e.getDom())&&(e.dispose(),o.delete(e));if(!a){for(let e of p.values())URL.revokeObjectURL(e);p.clear()}}};return{element:u,ready:m,dispose:h,[Symbol.dispose](){h()}}}var jX={includeShapes:!0,includeTables:!0,includeGroups:!0},MX={offsetX:0,offsetY:0,scaleX:1,scaleY:1},NX=e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),PX=e=>e?e.paragraphs.map(e=>e.runs.map(e=>e.text).join(``)).join(`
76
+ `):``,FX=e=>PX(e.textBody),IX=(e,t=MX)=>({x:t.offsetX+e.position.x*t.scaleX,y:t.offsetY+e.position.y*t.scaleY,w:e.size.w*t.scaleX,h:e.size.h*t.scaleY}),LX=e=>e.trim().length>0,RX=e=>e!==void 0&&/[A-Za-z0-9_]/.test(e),zX=(e,t,n)=>!RX(e[t-1])&&!RX(e[n]),BX=e=>{let t=(e%360+360)%360;return Math.abs(t-90)<1e-4||Math.abs(t-270)<1e-4},VX=(e,t,n,r)=>{let i=Math.max(0,t-r),a=Math.min(e.length,n+r),o=i>0?`...`:``,s=a<e.length?`...`:``;return`${o}${e.slice(i,a)}${s}`},HX=(e,t,n=!1,r)=>{let i=Dz(e,{...t,skipPlaceholders:n});return i&&Xz(i,t.layout,t.master,{parentGroup:r}),i},UX=(e,t,n)=>{if(e.childExtent.w<=0||e.childExtent.h<=0)return{offsetX:n.offsetX+e.position.x*n.scaleX,offsetY:n.offsetY+e.position.y*n.scaleY,scaleX:n.scaleX,scaleY:n.scaleY};let r=e.childExtent.w>0?e.size.w/e.childExtent.w:1,i=e.childExtent.h>0?e.size.h/e.childExtent.h:1;if(BX(t.rotation)){let a=t.position.x+(t.size.w-t.size.h)/2,o=t.position.y+(t.size.h-t.size.w)/2,s={w:t.size.w*i,h:t.size.h*r},c={x:(a-e.childOffset.x)*r-(s.w-s.h)/2,y:(o-e.childOffset.y)*i-(s.h-s.w)/2},l=n.scaleX*i,u=n.scaleY*r;return{offsetX:n.offsetX+(e.position.x+c.x)*n.scaleX-t.position.x*l,offsetY:n.offsetY+(e.position.y+c.y)*n.scaleY-t.position.y*u,scaleX:l,scaleY:u}}return{offsetX:n.offsetX+(e.position.x-e.childOffset.x*r)*n.scaleX,offsetY:n.offsetY+(e.position.y-e.childOffset.y*i)*n.scaleY,scaleX:n.scaleX*r,scaleY:n.scaleY*i}},WX=(e,t,n,r,i)=>{let a=PX(n.textBody);LX(a)&&e.push({slideIndex:t,nodeId:n.id,nodePath:r,nodeType:n.nodeType,textKind:`shape`,text:a,bounds:IX(n,i)})},GX=(e,t,n,r,i)=>{n.rows.forEach((a,o)=>{a.cells.forEach((a,s)=>{let c=FX(a);LX(c)&&e.push({slideIndex:t,nodeId:n.id,nodePath:`${r}/rows/${o}/cells/${s}`,nodeType:n.nodeType,textKind:`table-cell`,text:c,bounds:IX(n,i),rowIndex:o,cellIndex:s})})})},KX=(e,t,n,r,i,a,o=MX,s=!1)=>{if(!(s&&n.placeholder))switch(n.nodeType){case`shape`:i.includeShapes&&WX(e,t,n,r,o);break;case`table`:i.includeTables&&GX(e,t,n,r,o);break;case`group`:if(!i.includeGroups)break;{let c=n;n.children.forEach((n,l)=>{try{let u=HX(n,a,s,c);if(!u)return;let d=UX(c,u,o);KX(e,t,u,`${r}/children/${l}/${u.id||u.name||String(l)}`,i,a,d,s)}catch{}})}}},qX=(e,t,n,r,i,a)=>{n!=null&&n.exists()&&n.allChildren().forEach((n,o)=>{if(!vz(n))try{let s=HX(n,a,!0);if(!s)return;KX(e,t,s,`slides/${t}/${r}/nodes/${s.id||s.name||String(o)}`,i,a,MX,!0)}catch{}})},JX=(e,t)=>{let n={...jX,...t},r=[];return e.slides.forEach((t,i)=>{Gz(e,t);let a=e.slideToLayout.get(t.index)||t.layoutIndex,o=e.layouts.get(a),s=a?e.layoutToMaster.get(a):``,c=s?e.masters.get(s):void 0;t.showMasterSp&&(o!=null&&o.showMasterSp&&c&&qX(r,i,c.spTree,`master`,n,{rels:c.rels,partPath:s,diagramDrawings:e.diagramDrawings,layout:o,master:c}),o&&qX(r,i,o.spTree,`layout`,n,{rels:o.rels,partPath:a,diagramDrawings:e.diagramDrawings,layout:o,master:c})),t.nodes.forEach((a,s)=>{let l=a.id||a.name||String(s);KX(r,i,a,`slides/${i}/nodes/${l}`,n,{rels:t.rels,partPath:t.slidePath,diagramDrawings:e.diagramDrawings,layout:o,master:c})})}),r},YX=(e,t)=>{if(e instanceof RegExp){let t=new Set(e.flags.split(``));return t.add(`g`),new RegExp(e.source,[...t].join(``))}if(!e)return null;let n=t.useRegex?e:NX(e),r=t.matchCase?`g`:`gi`;return new RegExp(n,r)},XX=(e,t,n={})=>{let r=YX(t,n);if(!r)return[];let i=n.snippetRadius??32,a=[];for(let t of e){r.lastIndex=0;let e;for(;(e=r.exec(t.text))!==null;){let o=e[0];if(o.length===0){r.lastIndex+=1;continue}let s=e.index,c=s+o.length;n.wholeWord&&!zX(t.text,s,c)||a.push({...t,matchStart:s,matchEnd:c,snippet:VX(t.text,s,c,i)})}}return a},ZX=class e extends EventTarget{constructor(e,t){super(),this.presentation=null,this.mediaUrlCache=new Map,this.chartInstances=new Set,this.currentSlide=0,this._isRendering=!1,this.zoomFactor=1,this.renderChain=Promise.resolve(),this.renderGeneration=0,this.suppressScrollChange=!1,this.resizeRafId=null,this.lastMeasuredContainerWidth=0,this.mountedSlides=new Set,this.slideHandles=new Map,this.searchHighlightHandles=new Set,this.textIndexCache=null,this.activeRenderMode=null,this.listOptions={windowed:!1,batchSize:12,initialSlides:4,overscanViewport:1.5,showSlideLabels:!1},this.container=e,this.viewerOptions=t??{};let n=this.normalizeZoomPercent(t?.zoomPercent??100);if(this._fitMode=t?.fitMode??`contain`,this.zoomFactor=n/100,t!=null&&t.onSlideChange){let e=t.onSlideChange;this.addEventListener(`slidechange`,(t=>e(t.detail.index)))}if(t!=null&&t.onSlideRendered){let e=t.onSlideRendered;this.addEventListener(`sliderendered`,(t=>e(t.detail.index,t.detail.element)))}if(t!=null&&t.onSlideError){let e=t.onSlideError;this.addEventListener(`slideerror`,(t=>e(t.detail.index,t.detail.error)))}if(t!=null&&t.onSlideUnmounted){let e=t.onSlideUnmounted;this.addEventListener(`slideunmounted`,(t=>e(t.detail.index)))}if(t!=null&&t.onNodeError){let e=t.onNodeError;this.addEventListener(`nodeerror`,(t=>e(t.detail.nodeId,t.detail.error)))}if(t!=null&&t.onRenderStart){let e=t.onRenderStart;this.addEventListener(`renderstart`,()=>e())}if(t!=null&&t.onRenderComplete){let e=t.onRenderComplete;this.addEventListener(`rendercomplete`,()=>e())}}emitRenderStart(){this._isRendering=!0,this.dispatchEvent(new Event(`renderstart`))}emitRenderComplete(){this._isRendering=!1,this.dispatchEvent(new Event(`rendercomplete`))}emitSlideChange(e){this.dispatchEvent(new CustomEvent(`slidechange`,{detail:{index:e}}))}emitSlideRendered(e,t){this.dispatchEvent(new CustomEvent(`sliderendered`,{detail:{index:e,element:t}}))}emitSlideError(e,t){this.dispatchEvent(new CustomEvent(`slideerror`,{detail:{index:e,error:t}}))}emitSlideUnmounted(e){this.dispatchEvent(new CustomEvent(`slideunmounted`,{detail:{index:e}}))}emitNodeError(e,t){this.dispatchEvent(new CustomEvent(`nodeerror`,{detail:{nodeId:e,error:t}}))}load(e){this.renderGeneration++,this._isRendering=!1,this.unloadRenderedState(),this.presentation=e,this.currentSlide=0,this.textIndexCache=null,this.setupAdaptiveResize()}async renderList(e){this.activeRenderMode=`list`,this.listOptions={windowed:e?.windowed??!1,batchSize:this.normalizeBatchSize(e?.batchSize??12),initialSlides:this.normalizePositiveInt(e?.initialSlides??4,4),overscanViewport:this.normalizePositiveFloat(e?.overscanViewport??1.5,1.5),showSlideLabels:e?.showSlideLabels??!1},await this.queueRender()}async renderSlide(e){this.activeRenderMode=`slide`,e!==void 0&&this.presentation&&(this.currentSlide=Math.max(0,Math.min(e,this.presentation.slides.length-1))),await this.queueRender()}async open(e,t){let n=t?.signal,r=()=>{if(n!=null&&n.aborted)throw new DOMException(`Preview aborted`,`AbortError`)};r(),this.destroy();let i=await QX(e);r();let a=t?.lazyMedia??this.viewerOptions.lazyMedia??!1?await vR(i,this.viewerOptions.zipLimits):await _R(i,this.viewerOptions.zipLimits);r();let o=t?.lazySlides??this.viewerOptions.lazySlides??!1?Rz(a,{lazySlides:!0}):Rz(a);r(),this.load(o),(t?.renderMode??`list`)===`slide`?await this.renderSlide(0):await this.renderList(t?.listOptions),r()}static async open(t,n,r){let i=new e(n,r);return await i.open(t,{renderMode:r?.renderMode,listOptions:r?.listOptions,signal:r?.signal,lazyMedia:r?.lazyMedia,lazySlides:r?.lazySlides}),i}async goToSlide(e,t){var n;if(!this.presentation)return;let r=this.currentSlide;if(this.currentSlide=Math.max(0,Math.min(e,this.presentation.slides.length-1)),this.currentSlide!==r&&this.emitSlideChange(this.currentSlide),this.activeRenderMode===`slide`){let{scale:e,displayWidth:t,displayHeight:n}=this.getDisplayMetrics();this.renderSingleSlide(e,t,n)}else{this.suppressScrollChange=!0,await new Promise(e=>requestAnimationFrame(()=>{this.suppressScrollChange=!1,e()})),(n=this.ensureListSlideMountedFn)==null||n.call(this,this.currentSlide);let e=this.container.querySelector(`[data-slide-index="${this.currentSlide}"]`);e&&typeof e.scrollIntoView==`function`&&e.scrollIntoView(t??{behavior:`smooth`,block:`center`})}}async setZoom(e){let t=this.normalizeZoomPercent(e)/100;t!==this.zoomFactor&&(this.zoomFactor=t,await this.queueRender())}async setFitMode(e){this._fitMode!==e&&(this._fitMode=e,e===`none`&&(this.lastMeasuredContainerWidth=0),await this.queueRender())}get presentationData(){return this.presentation}get slideCount(){return this.presentation?.slides.length??0}get slideWidth(){return this.presentation?.width??0}get slideHeight(){return this.presentation?.height??0}get currentSlideIndex(){return this.currentSlide}get isRendering(){return this._isRendering}get zoomPercent(){return this.zoomFactor*100}get fitMode(){return this._fitMode}on(e,t){return this.addEventListener(e,t),this}off(e,t){return this.removeEventListener(e,t),this}isSlideMounted(e){return this.mountedSlides.has(e)}getMountedSlides(){return[...this.mountedSlides].sort((e,t)=>e-t)}renderSlideToContainer(e,t,n){if(!this.presentation)return null;let r=this.presentation.slides[e];if(!r)return null;let i=AX(this.presentation,r,{onNodeError:(e,t)=>this.emitNodeError(e,t),onNavigate:e=>this.handleNavigate(e),mediaUrlCache:this.mediaUrlCache,pdfjs:this.viewerOptions.pdfjs,chartInstances:this.chartInstances});return n!==void 0&&n!==1&&(i.element.style.transform=`scale(${n})`,i.element.style.transformOrigin=`top left`),t.appendChild(i.element),this.emitSlideRendered(e,i.element),i}searchText(e,t){return this.presentation?XX(this.getTextIndex(t),e,t):[]}renderThumbnailToContainer(e,t,n){if(!this.presentation||!this.presentation.slides[e])return null;let r=this.getThumbnailScale(n),i=this.presentation.width*r,a=this.presentation.height*r,o=document.createElement(`div`);o.dataset.slideIndex=String(e),o.dataset.pptxThumbnail=`true`,o.style.cssText=`
77
+ width: ${i}px;
78
+ height: ${a}px;
79
+ overflow: hidden;
80
+ position: relative;
81
+ background: #fff;
82
+ contain: layout paint style;
83
+ `,t.appendChild(o);let s=this.renderSlideToContainer(e,o,r);if(!s)return o.remove(),null;let c=!1,l=()=>{c||(c=!0,s.dispose(),o.remove())};return{element:o,ready:s.ready,dispose:l,[Symbol.dispose](){l()}}}async highlightSearchResult(e,t){if(!this.presentation||!this.presentation.slides[e.slideIndex])return null;await this.prepareSearchHighlightTarget(e.slideIndex,t);let n=this.findRenderedSlideElement(e.slideIndex);if(!n)return null;getComputedStyle(n).position===`static`&&(n.style.position=`relative`);let r=document.createElement(`div`);r.className=`pptx-search-highlight`,t!=null&&t.className&&r.classList.add(...t.className.split(/\s+/).filter(Boolean)),r.dataset.pptxSearchHighlight=`true`,this.applySearchHighlightStyle(r,e,t),n.appendChild(r);let i=!1,a={element:r,result:e,dispose:()=>{i||(i=!0,r.remove(),this.searchHighlightHandles.delete(a))},[Symbol.dispose](){this.dispose()}};return this.searchHighlightHandles.add(a),a}clearSearchHighlights(){for(let e of[...this.searchHighlightHandles])e.dispose();this.searchHighlightHandles.clear()}afterSingleSlideRender(){}destroy(){this.renderGeneration++,this._isRendering=!1,this.teardownAdaptiveResize(),this.unloadRenderedState(),this.presentation=null}unloadRenderedState(){var e,t;this.clearSearchHighlights(),(e=this.cleanupScrollObserver)==null||e.call(this),this.cleanupScrollObserver=void 0,(t=this.cleanupListMount)==null||t.call(this),this.cleanupListMount=void 0,this.ensureListSlideMountedFn=void 0,this.mountedSlides.clear();for(let e of this.slideHandles.values())e.dispose();this.slideHandles.clear(),this.textIndexCache=null,this.disposeAllCharts();for(let e of this.mediaUrlCache.values())URL.revokeObjectURL(e);this.mediaUrlCache.clear(),this.container.innerHTML=``,this.activeRenderMode=null}[Symbol.dispose](){this.destroy()}normalizeZoomPercent(e){return Number.isFinite(e)?Math.max(10,Math.min(400,e)):100}normalizeBatchSize(e){return Number.isInteger(e)&&e>0?e:12}normalizePositiveInt(e,t){return Number.isInteger(e)&&e>0?e:t}normalizePositiveFloat(e,t){return Number.isFinite(e)&&e>0?e:t}toCssLength(e,t){return e===void 0?t:typeof e==`number`?`${e}px`:e}async prepareSearchHighlightTarget(e,t){var n;let r=t?.scrollIntoView;if(r!==!1){await this.goToSlide(e,typeof r==`object`?r:{behavior:`smooth`,block:`center`});return}if(this.activeRenderMode===`slide`&&this.currentSlide!==e){await this.goToSlide(e);return}this.activeRenderMode===`list`&&((n=this.ensureListSlideMountedFn)==null||n.call(this,e))}findRenderedSlideElement(e){if(this.activeRenderMode===`list`){let t=this.container.querySelector(`[data-slide-index="${e}"]`)?.firstElementChild?.firstElementChild;return t instanceof HTMLElement?t:null}let t=this.container.firstElementChild?.firstElementChild;return t instanceof HTMLElement?t:null}applySearchHighlightStyle(e,t,n){let r=Number.isFinite(n?.padding)?Math.max(0,n.padding):0;if(e.style.position=`absolute`,e.style.pointerEvents=`none`,e.style.boxSizing=`border-box`,e.style.left=`${t.bounds.x-r}px`,e.style.top=`${t.bounds.y-r}px`,e.style.width=`${t.bounds.w+r*2}px`,e.style.height=`${t.bounds.h+r*2}px`,e.style.zIndex=String(n?.zIndex??1e4),e.style.borderStyle=`solid`,e.style.borderWidth=this.toCssLength(n?.borderWidth,`3px`),e.style.borderColor=n?.borderColor??`rgba(255, 214, 102, 0.95)`,e.style.borderRadius=this.toCssLength(n?.borderRadius,`6px`),e.style.background=n?.backgroundColor??`rgba(255, 214, 102, 0.16)`,e.style.boxShadow=n?.boxShadow??`0 0 0 2px rgba(17, 17, 34, 0.45)`,n!=null&&n.style)for(let[t,r]of Object.entries(n.style))r!==void 0&&e.style.setProperty(t,String(r))}getTextIndex(e){let t=JSON.stringify({includeShapes:e?.includeShapes??!0,includeTables:e?.includeTables??!0,includeGroups:e?.includeGroups??!0});if(this.textIndexCache?.key===t)return this.textIndexCache.entries;let n=this.presentation?JX(this.presentation,e):[];return this.textIndexCache={key:t,entries:n},n}getThumbnailScale(e){if(!this.presentation)return 1;if(e?.scale!==void 0&&Number.isFinite(e.scale)&&e.scale>0)return e.scale;let t=e?.width!==void 0&&Number.isFinite(e.width)&&e.width>0?e.width/this.presentation.width:void 0,n=e?.height!==void 0&&Number.isFinite(e.height)&&e.height>0?e.height/this.presentation.height:void 0;return t!==void 0&&n!==void 0?Math.min(t,n):t===void 0?n===void 0?180/this.presentation.width:n:t}getDisplayMetrics(){if(!this.presentation)return{scale:1,displayWidth:0,displayHeight:0};let e=this.viewerOptions.width??(this.container.clientWidth||960);this._fitMode===`contain`&&this.viewerOptions.width===void 0&&(this.lastMeasuredContainerWidth=e);let t=(this._fitMode===`contain`?e/this.presentation.width:1)*this.zoomFactor;return{scale:t,displayWidth:this.presentation.width*t,displayHeight:this.presentation.height*t}}async queueRender(){let e=++this.renderGeneration;return this.renderChain=this.renderChain.catch(()=>{}).then(async()=>{var t,n;if(!this.isRenderStale(e)){this.emitRenderStart();try{if(this.isRenderStale(e))return;let{scale:r,displayWidth:i,displayHeight:a}=this.getDisplayMetrics();(t=this.cleanupScrollObserver)==null||t.call(this),this.cleanupScrollObserver=void 0,(n=this.cleanupListMount)==null||n.call(this),this.cleanupListMount=void 0,this.ensureListSlideMountedFn=void 0,this.clearSearchHighlights(),this.mountedSlides.clear();for(let e of this.slideHandles.values())e.dispose();if(this.slideHandles.clear(),this.disposeAllCharts(),this.container.innerHTML=``,this.container.style.position=`relative`,this.activeRenderMode===`slide`?this.renderSingleSlide(r,i,a):this.listOptions.windowed?await this.renderAllSlidesWindowed(r,i,a,e):await this.renderAllSlidesFull(r,i,a,e),this.isRenderStale(e))return;this.activeRenderMode!==`slide`&&this.correctListMetricsIfNeeded(),this.emitSlideChange(this.currentSlide)}finally{this.emitRenderComplete()}}}),this.renderChain}isRenderStale(e){return e!==this.renderGeneration||!this.presentation}handleContainerResize(){if(!this.presentation||this._fitMode!==`contain`||this.viewerOptions.width!==void 0)return;let e=this.container.clientWidth||0;!e||e===this.lastMeasuredContainerWidth||(this.lastMeasuredContainerWidth=e,this.resizeRafId!==null&&cancelAnimationFrame(this.resizeRafId),this.resizeRafId=requestAnimationFrame(()=>{this.resizeRafId=null,this.queueRender()}))}setupAdaptiveResize(){if(this.teardownAdaptiveResize(),typeof ResizeObserver<`u`){let e=new ResizeObserver(()=>this.handleContainerResize());e.observe(this.container),this.resizeObserver=e;return}this.windowResizeHandler=()=>this.handleContainerResize(),window.addEventListener(`resize`,this.windowResizeHandler)}teardownAdaptiveResize(){var e;(e=this.resizeObserver)==null||e.disconnect(),this.resizeObserver=void 0,this.windowResizeHandler&&=(window.removeEventListener(`resize`,this.windowResizeHandler),void 0),this.resizeRafId!==null&&(cancelAnimationFrame(this.resizeRafId),this.resizeRafId=null)}disposeAllCharts(){for(let e of this.chartInstances)e.isDisposed()||e.dispose();this.chartInstances.clear()}createListSlideItem(e,t,n){let r=document.createElement(`div`);r.dataset.slideIndex=String(e),r.style.cssText=`width: fit-content; margin: 0 auto 20px;`;let i=document.createElement(`div`);if(i.style.cssText=`
84
+ width: ${t}px;
85
+ height: ${n}px;
86
+ box-shadow: 0 2px 8px rgba(0,0,0,0.15);
87
+ overflow: hidden;
88
+ position: relative;
89
+ background: #fff;
90
+ `,r.appendChild(i),this.listOptions.showSlideLabels){let t=document.createElement(`div`);t.style.cssText=`text-align: center; padding: 4px; font-size: 12px; color: #666;`,t.textContent=`Slide ${e+1}`,r.appendChild(t)}return{item:r,wrapper:i}}mountListSlide(e,t,n,r,i){if(!this.presentation||t.dataset.mounted===`1`)return;t.dataset.mounted=`1`,t.innerHTML=``,this.mountedSlides.add(e);let a=this.presentation.slides[e];try{let r=AX(this.presentation,a,{onNodeError:(e,t)=>this.emitNodeError(e,t),onNavigate:e=>this.handleNavigate(e),mediaUrlCache:this.mediaUrlCache,pdfjs:this.viewerOptions.pdfjs,chartInstances:this.chartInstances});this.slideHandles.set(e,r),r.element.style.transform=`scale(${n})`,r.element.style.transformOrigin=`top left`,t.appendChild(r.element),this.emitSlideRendered(e,r.element)}catch(n){this.emitSlideError(e,n),t.style.background=`#fff3f3`,t.style.display=`flex`,t.style.alignItems=`center`,t.style.justifyContent=`center`,t.style.border=`2px dashed #ff6b6b`,t.style.color=`#cc0000`,t.style.fontSize=`14px`,t.textContent=`Slide ${e+1}: Render Error - ${n instanceof Error?n.message:String(n)}`}}unmountListSlide(e,t,n){if(t.dataset.mounted!==`1`)return;t.dataset.mounted=`0`,this.mountedSlides.delete(e);let r=this.slideHandles.get(e);r&&(r.dispose(),this.slideHandles.delete(e)),t.innerHTML=``,t.style.background=`#fff`,t.style.display=``,t.style.alignItems=``,t.style.justifyContent=``,t.style.border=``,t.style.color=``,t.style.fontSize=``,t.style.height=`${n}px`,this.emitSlideUnmounted(e)}async renderAllSlidesFull(e,t,n,r){if(!this.presentation)return;let i=this.listOptions.batchSize,a=document.createDocumentFragment();for(let o=0;o<this.presentation.slides.length;o++){if(this.isRenderStale(r))return;let{item:s,wrapper:c}=this.createListSlideItem(o,t,n);if(this.mountListSlide(o,c,e,t,n),a.appendChild(s),(o+1)%i===0&&(this.container.appendChild(a),a=document.createDocumentFragment(),await new Promise(e=>requestAnimationFrame(()=>e())),this.isRenderStale(r)))return}this.isRenderStale(r)||(a.childNodes.length>0&&this.container.appendChild(a),this.setupScrollSlideTracking())}async renderAllSlidesWindowed(e,t,n,r){if(!this.presentation)return;let i=this.listOptions.batchSize,a=document.createDocumentFragment(),o=[];for(let e=0;e<this.presentation.slides.length;e++){if(this.isRenderStale(r))return;let{item:s,wrapper:c}=this.createListSlideItem(e,t,n);if(o.push(c),a.appendChild(s),(e+1)%i===0&&(this.container.appendChild(a),a=document.createDocumentFragment(),await new Promise(e=>requestAnimationFrame(()=>e())),this.isRenderStale(r)))return}if(this.isRenderStale(r))return;a.childNodes.length>0&&this.container.appendChild(a);let s=r=>{r<0||r>=o.length||this.mountListSlide(r,o[r],e,t,n)},c=e=>{e<0||e>=o.length||this.unmountListSlide(e,o[e],n)},l=this.listOptions.initialSlides;for(let e=0;e<Math.min(l,o.length);e++)s(e);this.ensureListSlideMountedFn=s;let u=window.IntersectionObserver;if(!u){for(let e=l;e<o.length;e++)s(e);this.setupScrollSlideTracking();return}let d=this.viewerOptions.scrollContainer??null,f=this.listOptions.overscanViewport,p=d?d.clientHeight:window.innerHeight,m=new u(e=>{for(let t of e){let e=t.target.parentElement,n=Number(e?.dataset.slideIndex??`-1`);Number.isNaN(n)||n<0||(t.isIntersecting?s(n):c(n))}},{root:d,rootMargin:`${Math.round(p*f)}px 0px`,threshold:0});o.forEach(e=>{m.observe(e)}),this.cleanupListMount=()=>{m.disconnect(),this.ensureListSlideMountedFn=void 0},this.setupScrollSlideTracking()}setupScrollSlideTracking(){if(this.activeRenderMode===`slide`)return;let e=window.IntersectionObserver;if(!e)return;let t=this.container.querySelectorAll(`[data-slide-index]`);if(!t.length)return;let n=new Map,r=new e(e=>{for(let t of e){let e=Number(t.target.dataset.slideIndex??`-1`);Number.isNaN(e)||e<0||n.set(e,t.intersectionRatio)}if(this.suppressScrollChange)return;let t=-1,r=-1;for(let[e,i]of n)i>r&&(r=i,t=e);t>=0&&t!==this.currentSlide&&(this.currentSlide=t,this.emitSlideChange(t))},{root:this.viewerOptions.scrollContainer??null,threshold:[0,.25,.5,.75,1]});t.forEach(e=>r.observe(e)),this.cleanupScrollObserver=()=>{r.disconnect()}}renderSingleSlide(e,t,n){if(!this.presentation)return;let r=this.presentation.slides[this.currentSlide];if(!r)return;for(let e of this.slideHandles.values())e.dispose();this.slideHandles.clear(),this.disposeAllCharts(),this.container.innerHTML=``,this.mountedSlides.clear(),this.mountedSlides.add(this.currentSlide);let i=document.createElement(`div`);i.style.cssText=`
91
+ width: ${t}px; height: ${n}px;
92
+ margin: 0 auto; overflow: hidden; position: relative;
93
+ box-shadow: 0 2px 8px rgba(0,0,0,0.15);
94
+ `;try{let t=AX(this.presentation,r,{onNodeError:(e,t)=>this.emitNodeError(e,t),onNavigate:e=>this.handleNavigate(e),mediaUrlCache:this.mediaUrlCache,pdfjs:this.viewerOptions.pdfjs,chartInstances:this.chartInstances});this.slideHandles.set(this.currentSlide,t),t.element.style.transform=`scale(${e})`,t.element.style.transformOrigin=`top left`,i.appendChild(t.element),this.emitSlideRendered(this.currentSlide,t.element)}catch(e){this.emitSlideError(this.currentSlide,e),i.style.background=`#fff3f3`,i.style.display=`flex`,i.style.alignItems=`center`,i.style.justifyContent=`center`,i.style.border=`2px dashed #ff6b6b`,i.style.color=`#cc0000`,i.style.fontSize=`14px`,i.textContent=`Slide ${this.currentSlide+1}: Render Error - ${e instanceof Error?e.message:String(e)}`}this.container.appendChild(i),this.afterSingleSlideRender()}correctListMetricsIfNeeded(){if(!this.presentation||this._fitMode!==`contain`||this.viewerOptions.width!==void 0)return;let e=this.container.clientWidth||0;if(!e||e===this.lastMeasuredContainerWidth)return;this.lastMeasuredContainerWidth=e;let t=e/this.presentation.width*this.zoomFactor,n=this.presentation.width*t,r=this.presentation.height*t,i=this.container.querySelectorAll(`[data-slide-index]`);for(let e of i){let i=e.firstElementChild;if(!i)continue;i.style.width=`${n}px`,i.style.height=`${r}px`;let a=i.firstElementChild;a&&(a.style.transform=`scale(${t})`)}}handleNavigate(e){e.slideIndex===void 0?e.url&&iV(e.url)&&window.open(e.url,`_blank`,`noopener,noreferrer`):this.goToSlide(e.slideIndex)}};async function QX(e){if(e instanceof ArrayBuffer)return e;if(e instanceof Uint8Array){let t=new Uint8Array(e.byteLength);return t.set(e),t.buffer}let t=e;if(typeof t.arrayBuffer==`function`)return t.arrayBuffer();if(typeof FileReader<`u`)return new Promise((e,n)=>{let r=new FileReader;r.onload=()=>e(r.result),r.onerror=()=>n(r.error??Error(`Failed to read Blob input`)),r.readAsArrayBuffer(t)});if(typeof Response<`u`)return new Response(t).arrayBuffer();throw Error(`Blob preview input is not supported in this runtime`)}var $X=16e6,eZ=960,tZ=540;function nZ(e,t){let n=e?.trim()??``;if(!n){if(t<1)throw new r(`target-not-found`,`Presentation contains no slides.`);return 0}let i=Number(/^(?:(?:slide|page):)?([1-9]\d*)$/.exec(n)?.[1]??NaN);if(!(i>=1&&i<=t))throw new r(`target-not-found`,`PowerPoint slide target "${e}" is out of range (1..${t}).`);return i-1}function rZ(e){let t=[];for(let n of e.querySelectorAll(`style`))n.textContent&&t.push(n.textContent);return t.join(`
95
+ `)}function iZ(e,t){let n=e.querySelectorAll(`img`),r=t.querySelectorAll(`img`);for(let e=0;e<Math.min(n.length,r.length);e+=1){let t=n[e],i=r[e];if(!t.complete||t.naturalWidth===0||!i.src.startsWith(`blob:`))continue;let a=document.createElement(`canvas`);a.width=t.naturalWidth,a.height=t.naturalHeight;let o=a.getContext(`2d`);if(o)try{o.drawImage(t,0,0),i.src=a.toDataURL(`image/png`)}catch{}a.width=0,a.height=0}}async function aZ(e,t,n,r,i,a,s,c){if(typeof XMLSerializer>`u`||typeof Image>`u`)return!1;let l=t.cloneNode(!0);iZ(t,l);let u=document.createElement(`div`);if(u.setAttribute(`xmlns`,`http://www.w3.org/1999/xhtml`),u.style.width=`${r}px`,u.style.height=`${i}px`,u.style.background=`#ffffff`,u.style.overflow=`hidden`,n){let e=document.createElement(`style`);e.textContent=n,u.append(e)}u.append(l);let d=`<svg xmlns="http://www.w3.org/2000/svg" width="${r}" height="${i}"><foreignObject width="100%" height="100%">${new XMLSerializer().serializeToString(u)}</foreignObject></svg>`,f=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(d)}`;return await new Promise((t,n)=>{if(c.aborted){n(o());return}let r=new Image,i=()=>{c.removeEventListener(`abort`,l),r.onload=null,r.onerror=null},l=()=>{i(),n(o())};c.addEventListener(`abort`,l,{once:!0}),r.onload=()=>{i();try{e.drawImage(r,0,0,a,s),t(!0)}catch{t(!1)}},r.onerror=()=>{i(),t(!1)},r.src=f})}function oZ(e,t,n,r){e.fillStyle=`#ffffff`,e.fillRect(0,0,n,r),e.fillStyle=`#111827`;let i=Math.max(12,Math.round(n/44));e.font=`${i}px system-ui, sans-serif`;let a=(t.textContent??``).split(/\r?\n/).map(e=>e.trim()).filter(Boolean),o=Math.max(16,Math.round(n*.06)),s=Math.round(i*1.4),c=o+i;for(let t of a){if(c>r-o)break;e.fillText(t.slice(0,100),o,c),c+=s}}async function sZ(e,t,n,a,s){if(a.signal?.aborted)throw o();if(s.aborted)throw new i(`open-failed`,`PowerPoint viewer has been disposed.`);if(!Number.isFinite(a.maxDimension)||a.maxDimension<1)throw new r(`invalid-argument`,`maxDimension must be a positive number.`);let c=typeof n.slideCount==`number`&&n.slideCount>0?n.slideCount:t.children.length,l=Math.max(0,c),u=nZ(a.target,l),d=Math.max(1,Math.round(typeof n.slideWidth==`number`&&n.slideWidth>0?n.slideWidth:eZ)),f=Math.max(1,Math.round(typeof n.slideHeight==`number`&&n.slideHeight>0?n.slideHeight:tZ)),p=Math.round(a.maxDimension),m=Math.min(1,p/Math.max(d,f)),h=d*m*f*m;h>$X&&(m*=Math.sqrt($X/h));let g=Math.max(1,Math.min(p,Math.round(d*m))),_=Math.max(1,Math.min(p,Math.round(f*m))),v=a.signal&&typeof AbortSignal.any==`function`?AbortSignal.any([s,a.signal]):a.signal??s,y=null,b,x=document.createElement(`canvas`);try{let r;typeof n.renderSlideToContainer==`function`?(b=document.createElement(`div`),y=n.renderSlideToContainer(u,b,1),r=b):r=t.children[u]??t;let c=x.getContext(`2d`,{alpha:!1});if(!c)throw new i(`unsupported-environment`,`Canvas 2D is unavailable.`);x.width=g,x.height=_,c.fillStyle=`#ffffff`,c.fillRect(0,0,g,_);let l=rZ(e),p=await aZ(c,r,l,d,f,g,_,v);if(a.signal?.aborted)throw o();if(s.aborted)throw new i(`open-failed`,`PowerPoint viewer has been disposed.`);return p||oZ(c,r,g,_),await new Promise((e,t)=>{if(typeof x.toBlob!=`function`){t(new i(`unsupported-environment`,`Canvas PNG export is unavailable.`));return}x.toBlob(n=>{n?e(n):t(new i(`open-failed`,`Failed to encode the PowerPoint slide as PNG.`))},`image/png`)})}finally{y?.dispose(),b?.remove(),x.width=0,x.height=0}}var cZ={protocolVersion:2,id:`powerpoint-presentation`,name:{en:`PowerPoint viewer`,"zh-CN":`PowerPoint 查看器`},formats:[{name:{en:`PowerPoint Open XML presentation`,"zh-CN":`PowerPoint Open XML 演示文稿`},extensions:[`.pptx`],mimeTypes:[`application/vnd.openxmlformats-officedocument.presentationml.presentation`]}],workspaceAccess:`none`},lZ=134217728;function uZ(e){return n(e,{"zh-CN":{reading:`正在读取 PowerPoint 演示文稿…`,rendering:`正在渲染幻灯片…`,invalid:`文件内容不是有效的 PPTX 演示文稿。`,tooLarge:`PowerPoint 演示文稿超过浏览器安全资源上限。`,ready:`PowerPoint 演示文稿已打开`},en:{reading:`Reading PowerPoint presentation…`,rendering:`Rendering slides…`,invalid:`The file is not a valid PPTX presentation.`,tooLarge:`The PowerPoint presentation exceeds the browser-safe resource limit.`,ready:`PowerPoint presentation opened`}})}function dZ(e){let t=document.createElement(`div`);t.className=`anyfile-powerpoint-viewer`;let n=document.createElement(`style`);n.textContent=`
96
+ .anyfile-powerpoint-viewer { display:flex; min-height:100%; width:100%; flex-direction:column; overflow:hidden; background:#e5e7eb; color:#111827; font-family:var(--viewer-font-family,system-ui); }
97
+ .anyfile-powerpoint-viewer__toolbar { display:flex; min-height:48px; align-items:center; padding:8px 14px; border-bottom:1px solid var(--viewer-border,#d1d5db); background:var(--viewer-background,#fff); }
98
+ .anyfile-powerpoint-viewer__name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
99
+ .anyfile-powerpoint-viewer__slides { min-height:560px; flex:1; overflow:auto; padding:24px; }
100
+ `;let r=document.createElement(`div`);r.className=`anyfile-powerpoint-viewer__toolbar`;let i=document.createElement(`strong`);i.className=`anyfile-powerpoint-viewer__name`,i.textContent=e,i.title=e,r.append(i);let a=document.createElement(`div`);return a.className=`anyfile-powerpoint-viewer__slides`,t.append(n,r,a),{root:t,slides:a}}async function fZ(e){let{container:t,file:n,reportProgress:r,signal:s}=e,c=uZ(e.locale),{root:l,slides:u}=dZ(n.name),d=!1,f,p=()=>{d||(d=!0,s.removeEventListener(`abort`,p),f?.destroy(),l.remove())};try{if(s.aborted)throw o();if(n.size>lZ)throw new i(`resource-limit`,c.tooLarge);r({stage:`reading`,message:c.reading,loaded:0,total:n.size});let m=(await a(n.slice(0,n.size),s)).buffer,h=new Uint8Array(m,0,Math.min(4,m.byteLength));if(h[0]!==80||h[1]!==75||h[2]!==3||h[3]!==4)throw new i(`invalid-file`,c.invalid);if(t.append(l),s.addEventListener(`abort`,p,{once:!0}),r({stage:`rendering`,message:c.rendering,loaded:n.size,total:n.size}),f=await ZX.open(m,u,{fitMode:`contain`,lazyMedia:!0,lazySlides:!0,listOptions:{batchSize:4,initialSlides:4,windowed:!0},pdfjs:!1,renderMode:`list`,scrollContainer:u,signal:s,zipLimits:iR}),s.aborted||d)throw f.destroy(),f=void 0,o();return r({stage:`ready`,message:c.ready}),e.reportPreview?.({outcome:`success`,kind:`static`}),{dispose:p,captureImage(e){return d||!f?Promise.reject(new i(`open-failed`,`PowerPoint viewer has been disposed.`)):sZ(l,u,f,e,s)}}}catch(e){throw p(),e instanceof i||e instanceof DOMException&&e.name===`AbortError`?e:new i(`invalid-file`,c.invalid,{cause:e})}}var pZ={manifest:cZ,open:fZ};export{cZ as powerpointManifest,pZ as powerpointViewer};